vue-hiprint
Version:
vue3版本hiprint支持跨域批量打印
1,641 lines • 1.41 MB
JavaScript
(function(Be,St){typeof exports=="object"&&typeof module<"u"?module.exports=St(require("element-plus"),require("vue")):typeof define=="function"&&define.amd?define(["element-plus","vue"],St):(Be=typeof globalThis<"u"?globalThis:Be||self,Be.PrintDesign=St(Be.ElementPlus,Be.Vue))})(this,function(elementPlus,vue){"use strict";var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(Be){return Be&&Be.__esModule&&Object.prototype.hasOwnProperty.call(Be,"default")?Be.default:Be}var jquery={exports:{}};/*!
* jQuery JavaScript Library v3.6.0
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2021-03-02T17:08Z
*/var hasRequiredJquery;function requireJquery(){return hasRequiredJquery||(hasRequiredJquery=1,function(Be){(function(St,Ae){Be.exports=St.document?Ae(St,!0):function(Ee){if(!Ee.document)throw new Error("jQuery requires a window with a document");return Ae(Ee)}})(typeof window<"u"?window:commonjsGlobal,function(St,Ae){var Ee=[],Ce=Object.getPrototypeOf,_e=Ee.slice,Te=Ee.flat?function(Pe){return Ee.flat.call(Pe)}:function(Pe){return Ee.concat.apply([],Pe)},Se=Ee.push,xe=Ee.indexOf,Fe={},Ue=Fe.toString,Re=Fe.hasOwnProperty,He=Re.toString,$e=He.call(Object),ze={},Ve=function(De){return typeof De=="function"&&typeof De.nodeType!="number"&&typeof De.item!="function"},ir=function(De){return De!=null&&De===De.window},Ze=St.document,ar={type:!0,src:!0,nonce:!0,noModule:!0};function cr(Pe,De,qe){qe=qe||Ze;var tr,lr,fr=qe.createElement("script");if(fr.text=Pe,De)for(tr in ar)lr=De[tr]||De.getAttribute&&De.getAttribute(tr),lr&&fr.setAttribute(tr,lr);qe.head.appendChild(fr).parentNode.removeChild(fr)}function Xe(Pe){return Pe==null?Pe+"":typeof Pe=="object"||typeof Pe=="function"?Fe[Ue.call(Pe)]||"object":typeof Pe}var or="3.6.0",Oe=function(Pe,De){return new Oe.fn.init(Pe,De)};Oe.fn=Oe.prototype={jquery:or,constructor:Oe,length:0,toArray:function(){return _e.call(this)},get:function(Pe){return Pe==null?_e.call(this):Pe<0?this[Pe+this.length]:this[Pe]},pushStack:function(Pe){var De=Oe.merge(this.constructor(),Pe);return De.prevObject=this,De},each:function(Pe){return Oe.each(this,Pe)},map:function(Pe){return this.pushStack(Oe.map(this,function(De,qe){return Pe.call(De,qe,De)}))},slice:function(){return this.pushStack(_e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(Oe.grep(this,function(Pe,De){return(De+1)%2}))},odd:function(){return this.pushStack(Oe.grep(this,function(Pe,De){return De%2}))},eq:function(Pe){var De=this.length,qe=+Pe+(Pe<0?De:0);return this.pushStack(qe>=0&&qe<De?[this[qe]]:[])},end:function(){return this.prevObject||this.constructor()},push:Se,sort:Ee.sort,splice:Ee.splice},Oe.extend=Oe.fn.extend=function(){var Pe,De,qe,tr,lr,fr,Br=arguments[0]||{},$r=1,Rr=arguments.length,en=!1;for(typeof Br=="boolean"&&(en=Br,Br=arguments[$r]||{},$r++),typeof Br!="object"&&!Ve(Br)&&(Br={}),$r===Rr&&(Br=this,$r--);$r<Rr;$r++)if((Pe=arguments[$r])!=null)for(De in Pe)tr=Pe[De],!(De==="__proto__"||Br===tr)&&(en&&tr&&(Oe.isPlainObject(tr)||(lr=Array.isArray(tr)))?(qe=Br[De],lr&&!Array.isArray(qe)?fr=[]:!lr&&!Oe.isPlainObject(qe)?fr={}:fr=qe,lr=!1,Br[De]=Oe.extend(en,fr,tr)):tr!==void 0&&(Br[De]=tr));return Br},Oe.extend({expando:"jQuery"+(or+Math.random()).replace(/\D/g,""),isReady:!0,error:function(Pe){throw new Error(Pe)},noop:function(){},isPlainObject:function(Pe){var De,qe;return!Pe||Ue.call(Pe)!=="[object Object]"?!1:(De=Ce(Pe),De?(qe=Re.call(De,"constructor")&&De.constructor,typeof qe=="function"&&He.call(qe)===$e):!0)},isEmptyObject:function(Pe){var De;for(De in Pe)return!1;return!0},globalEval:function(Pe,De,qe){cr(Pe,{nonce:De&&De.nonce},qe)},each:function(Pe,De){var qe,tr=0;if(Je(Pe))for(qe=Pe.length;tr<qe&&De.call(Pe[tr],tr,Pe[tr])!==!1;tr++);else for(tr in Pe)if(De.call(Pe[tr],tr,Pe[tr])===!1)break;return Pe},makeArray:function(Pe,De){var qe=De||[];return Pe!=null&&(Je(Object(Pe))?Oe.merge(qe,typeof Pe=="string"?[Pe]:Pe):Se.call(qe,Pe)),qe},inArray:function(Pe,De,qe){return De==null?-1:xe.call(De,Pe,qe)},merge:function(Pe,De){for(var qe=+De.length,tr=0,lr=Pe.length;tr<qe;tr++)Pe[lr++]=De[tr];return Pe.length=lr,Pe},grep:function(Pe,De,qe){for(var tr,lr=[],fr=0,Br=Pe.length,$r=!qe;fr<Br;fr++)tr=!De(Pe[fr],fr),tr!==$r&&lr.push(Pe[fr]);return lr},map:function(Pe,De,qe){var tr,lr,fr=0,Br=[];if(Je(Pe))for(tr=Pe.length;fr<tr;fr++)lr=De(Pe[fr],fr,qe),lr!=null&&Br.push(lr);else for(fr in Pe)lr=De(Pe[fr],fr,qe),lr!=null&&Br.push(lr);return Te(Br)},guid:1,support:ze}),typeof Symbol=="function"&&(Oe.fn[Symbol.iterator]=Ee[Symbol.iterator]),Oe.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(Pe,De){Fe["[object "+De+"]"]=De.toLowerCase()});function Je(Pe){var De=!!Pe&&"length"in Pe&&Pe.length,qe=Xe(Pe);return Ve(Pe)||ir(Pe)?!1:qe==="array"||De===0||typeof De=="number"&&De>0&&De-1 in Pe}var Ye=function(Pe){var De,qe,tr,lr,fr,Br,$r,Rr,en,cn,Fn,un,dn,ai,vi,oi,Ji,Zi,EA,Ni="sizzle"+1*new Date,fi=Pe.document,lA=0,Ci=0,Di=ho(),Me=ho(),hr=ho(),Ir=ho(),Hr=function(Cr,Nr){return Cr===Nr&&(Fn=!0),0},rn={}.hasOwnProperty,hn=[],xn=hn.pop,kn=hn.push,ri=hn.push,Ei=hn.slice,di=function(Cr,Nr){for(var jr=0,vn=Cr.length;jr<vn;jr++)if(Cr[jr]===Nr)return jr;return-1},xi="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ci="[\\x20\\t\\r\\n\\f]",Qi="(?:\\\\[\\da-fA-F]{1,6}"+ci+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",nA="\\["+ci+"*("+Qi+")(?:"+ci+"*([*^$|!~]?=)"+ci+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Qi+"))|)"+ci+"*\\]",uA=":("+Qi+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+nA+")*)|.*)\\)|)",cA=new RegExp(ci+"+","g"),LA=new RegExp("^"+ci+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ci+"+$","g"),HA=new RegExp("^"+ci+"*,"+ci+"*"),XA=new RegExp("^"+ci+"*([>+~]|"+ci+")"+ci+"*"),Ca=new RegExp(ci+"|>"),la=new RegExp(uA),ua=new RegExp("^"+Qi+"$"),fo={ID:new RegExp("^#("+Qi+")"),CLASS:new RegExp("^\\.("+Qi+")"),TAG:new RegExp("^("+Qi+"|[*])"),ATTR:new RegExp("^"+nA),PSEUDO:new RegExp("^"+uA),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ci+"*(even|odd|(([+-]|)(\\d*)n|)"+ci+"*(?:([+-]|)"+ci+"*(\\d+)|))"+ci+"*\\)|)","i"),bool:new RegExp("^(?:"+xi+")$","i"),needsContext:new RegExp("^"+ci+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ci+"*((?:-\\d)?\\d*)"+ci+"*\\)|)(?=[^-]|$)","i")},ca=/HTML$/i,fa=/^(?:input|select|textarea|button)$/i,Vo=/^h\d$/i,iA=/^[^{]+\{\s*\[native \w/,Ko=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,wo=/[+~]/,NA=new RegExp("\\\\[\\da-fA-F]{1,6}"+ci+"?|\\\\([^\\r\\n\\f])","g"),MA=function(Cr,Nr){var jr="0x"+Cr.slice(1)-65536;return Nr||(jr<0?String.fromCharCode(jr+65536):String.fromCharCode(jr>>10|55296,jr&1023|56320))},CA=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Ta=function(Cr,Nr){return Nr?Cr==="\0"?"�":Cr.slice(0,-1)+"\\"+Cr.charCodeAt(Cr.length-1).toString(16)+" ":"\\"+Cr},jo=function(){un()},Sa=Wi(function(Cr){return Cr.disabled===!0&&Cr.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{ri.apply(hn=Ei.call(fi.childNodes),fi.childNodes),hn[fi.childNodes.length].nodeType}catch{ri={apply:hn.length?function(Nr,jr){kn.apply(Nr,Ei.call(jr))}:function(Nr,jr){for(var vn=Nr.length,tn=0;Nr[vn++]=jr[tn++];);Nr.length=vn-1}}}function Si(Cr,Nr,jr,vn){var tn,yn,Sn,Qn,Dn,ni,Kn,qn=Nr&&Nr.ownerDocument,li=Nr?Nr.nodeType:9;if(jr=jr||[],typeof Cr!="string"||!Cr||li!==1&&li!==9&&li!==11)return jr;if(!vn&&(un(Nr),Nr=Nr||dn,vi)){if(li!==11&&(Dn=Ko.exec(Cr)))if(tn=Dn[1]){if(li===9)if(Sn=Nr.getElementById(tn)){if(Sn.id===tn)return jr.push(Sn),jr}else return jr;else if(qn&&(Sn=qn.getElementById(tn))&&EA(Nr,Sn)&&Sn.id===tn)return jr.push(Sn),jr}else{if(Dn[2])return ri.apply(jr,Nr.getElementsByTagName(Cr)),jr;if((tn=Dn[3])&&qe.getElementsByClassName&&Nr.getElementsByClassName)return ri.apply(jr,Nr.getElementsByClassName(tn)),jr}if(qe.qsa&&!Ir[Cr+" "]&&(!oi||!oi.test(Cr))&&(li!==1||Nr.nodeName.toLowerCase()!=="object")){if(Kn=Cr,qn=Nr,li===1&&(Ca.test(Cr)||XA.test(Cr))){for(qn=wo.test(Cr)&&YA(Nr.parentNode)||Nr,(qn!==Nr||!qe.scope)&&((Qn=Nr.getAttribute("id"))?Qn=Qn.replace(CA,Ta):Nr.setAttribute("id",Qn=Ni)),ni=Br(Cr),yn=ni.length;yn--;)ni[yn]=(Qn?"#"+Qn:":scope")+" "+GA(ni[yn]);Kn=ni.join(",")}try{return ri.apply(jr,qn.querySelectorAll(Kn)),jr}catch{Ir(Cr,!0)}finally{Qn===Ni&&Nr.removeAttribute("id")}}}return Rr(Cr.replace(LA,"$1"),Nr,jr,vn)}function ho(){var Cr=[];function Nr(jr,vn){return Cr.push(jr+" ")>tr.cacheLength&&delete Nr[Cr.shift()],Nr[jr+" "]=vn}return Nr}function $A(Cr){return Cr[Ni]=!0,Cr}function RA(Cr){var Nr=dn.createElement("fieldset");try{return!!Cr(Nr)}catch{return!1}finally{Nr.parentNode&&Nr.parentNode.removeChild(Nr),Nr=null}}function oo(Cr,Nr){for(var jr=Cr.split("|"),vn=jr.length;vn--;)tr.attrHandle[jr[vn]]=Nr}function Bo(Cr,Nr){var jr=Nr&&Cr,vn=jr&&Cr.nodeType===1&&Nr.nodeType===1&&Cr.sourceIndex-Nr.sourceIndex;if(vn)return vn;if(jr){for(;jr=jr.nextSibling;)if(jr===Nr)return-1}return Cr?1:-1}function QA(Cr){return function(Nr){var jr=Nr.nodeName.toLowerCase();return jr==="input"&&Nr.type===Cr}}function _A(Cr){return function(Nr){var jr=Nr.nodeName.toLowerCase();return(jr==="input"||jr==="button")&&Nr.type===Cr}}function po(Cr){return function(Nr){return"form"in Nr?Nr.parentNode&&Nr.disabled===!1?"label"in Nr?"label"in Nr.parentNode?Nr.parentNode.disabled===Cr:Nr.disabled===Cr:Nr.isDisabled===Cr||Nr.isDisabled!==!Cr&&Sa(Nr)===Cr:Nr.disabled===Cr:"label"in Nr?Nr.disabled===Cr:!1}}function TA(Cr){return $A(function(Nr){return Nr=+Nr,$A(function(jr,vn){for(var tn,yn=Cr([],jr.length,Nr),Sn=yn.length;Sn--;)jr[tn=yn[Sn]]&&(jr[tn]=!(vn[tn]=jr[tn]))})})}function YA(Cr){return Cr&&typeof Cr.getElementsByTagName<"u"&&Cr}qe=Si.support={},fr=Si.isXML=function(Cr){var Nr=Cr&&Cr.namespaceURI,jr=Cr&&(Cr.ownerDocument||Cr).documentElement;return!ca.test(Nr||jr&&jr.nodeName||"HTML")},un=Si.setDocument=function(Cr){var Nr,jr,vn=Cr?Cr.ownerDocument||Cr:fi;return vn==dn||vn.nodeType!==9||!vn.documentElement||(dn=vn,ai=dn.documentElement,vi=!fr(dn),fi!=dn&&(jr=dn.defaultView)&&jr.top!==jr&&(jr.addEventListener?jr.addEventListener("unload",jo,!1):jr.attachEvent&&jr.attachEvent("onunload",jo)),qe.scope=RA(function(tn){return ai.appendChild(tn).appendChild(dn.createElement("div")),typeof tn.querySelectorAll<"u"&&!tn.querySelectorAll(":scope fieldset div").length}),qe.attributes=RA(function(tn){return tn.className="i",!tn.getAttribute("className")}),qe.getElementsByTagName=RA(function(tn){return tn.appendChild(dn.createComment("")),!tn.getElementsByTagName("*").length}),qe.getElementsByClassName=iA.test(dn.getElementsByClassName),qe.getById=RA(function(tn){return ai.appendChild(tn).id=Ni,!dn.getElementsByName||!dn.getElementsByName(Ni).length}),qe.getById?(tr.filter.ID=function(tn){var yn=tn.replace(NA,MA);return function(Sn){return Sn.getAttribute("id")===yn}},tr.find.ID=function(tn,yn){if(typeof yn.getElementById<"u"&&vi){var Sn=yn.getElementById(tn);return Sn?[Sn]:[]}}):(tr.filter.ID=function(tn){var yn=tn.replace(NA,MA);return function(Sn){var Qn=typeof Sn.getAttributeNode<"u"&&Sn.getAttributeNode("id");return Qn&&Qn.value===yn}},tr.find.ID=function(tn,yn){if(typeof yn.getElementById<"u"&&vi){var Sn,Qn,Dn,ni=yn.getElementById(tn);if(ni){if(Sn=ni.getAttributeNode("id"),Sn&&Sn.value===tn)return[ni];for(Dn=yn.getElementsByName(tn),Qn=0;ni=Dn[Qn++];)if(Sn=ni.getAttributeNode("id"),Sn&&Sn.value===tn)return[ni]}return[]}}),tr.find.TAG=qe.getElementsByTagName?function(tn,yn){if(typeof yn.getElementsByTagName<"u")return yn.getElementsByTagName(tn);if(qe.qsa)return yn.querySelectorAll(tn)}:function(tn,yn){var Sn,Qn=[],Dn=0,ni=yn.getElementsByTagName(tn);if(tn==="*"){for(;Sn=ni[Dn++];)Sn.nodeType===1&&Qn.push(Sn);return Qn}return ni},tr.find.CLASS=qe.getElementsByClassName&&function(tn,yn){if(typeof yn.getElementsByClassName<"u"&&vi)return yn.getElementsByClassName(tn)},Ji=[],oi=[],(qe.qsa=iA.test(dn.querySelectorAll))&&(RA(function(tn){var yn;ai.appendChild(tn).innerHTML="<a id='"+Ni+"'></a><select id='"+Ni+"-\r\\' msallowcapture=''><option selected=''></option></select>",tn.querySelectorAll("[msallowcapture^='']").length&&oi.push("[*^$]="+ci+`*(?:''|"")`),tn.querySelectorAll("[selected]").length||oi.push("\\["+ci+"*(?:value|"+xi+")"),tn.querySelectorAll("[id~="+Ni+"-]").length||oi.push("~="),yn=dn.createElement("input"),yn.setAttribute("name",""),tn.appendChild(yn),tn.querySelectorAll("[name='']").length||oi.push("\\["+ci+"*name"+ci+"*="+ci+`*(?:''|"")`),tn.querySelectorAll(":checked").length||oi.push(":checked"),tn.querySelectorAll("a#"+Ni+"+*").length||oi.push(".#.+[+~]"),tn.querySelectorAll("\\\f"),oi.push("[\\r\\n\\f]")}),RA(function(tn){tn.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var yn=dn.createElement("input");yn.setAttribute("type","hidden"),tn.appendChild(yn).setAttribute("name","D"),tn.querySelectorAll("[name=d]").length&&oi.push("name"+ci+"*[*^$|!~]?="),tn.querySelectorAll(":enabled").length!==2&&oi.push(":enabled",":disabled"),ai.appendChild(tn).disabled=!0,tn.querySelectorAll(":disabled").length!==2&&oi.push(":enabled",":disabled"),tn.querySelectorAll("*,:x"),oi.push(",.*:")})),(qe.matchesSelector=iA.test(Zi=ai.matches||ai.webkitMatchesSelector||ai.mozMatchesSelector||ai.oMatchesSelector||ai.msMatchesSelector))&&RA(function(tn){qe.disconnectedMatch=Zi.call(tn,"*"),Zi.call(tn,"[s!='']:x"),Ji.push("!=",uA)}),oi=oi.length&&new RegExp(oi.join("|")),Ji=Ji.length&&new RegExp(Ji.join("|")),Nr=iA.test(ai.compareDocumentPosition),EA=Nr||iA.test(ai.contains)?function(tn,yn){var Sn=tn.nodeType===9?tn.documentElement:tn,Qn=yn&&yn.parentNode;return tn===Qn||!!(Qn&&Qn.nodeType===1&&(Sn.contains?Sn.contains(Qn):tn.compareDocumentPosition&&tn.compareDocumentPosition(Qn)&16))}:function(tn,yn){if(yn){for(;yn=yn.parentNode;)if(yn===tn)return!0}return!1},Hr=Nr?function(tn,yn){if(tn===yn)return Fn=!0,0;var Sn=!tn.compareDocumentPosition-!yn.compareDocumentPosition;return Sn||(Sn=(tn.ownerDocument||tn)==(yn.ownerDocument||yn)?tn.compareDocumentPosition(yn):1,Sn&1||!qe.sortDetached&&yn.compareDocumentPosition(tn)===Sn?tn==dn||tn.ownerDocument==fi&&EA(fi,tn)?-1:yn==dn||yn.ownerDocument==fi&&EA(fi,yn)?1:cn?di(cn,tn)-di(cn,yn):0:Sn&4?-1:1)}:function(tn,yn){if(tn===yn)return Fn=!0,0;var Sn,Qn=0,Dn=tn.parentNode,ni=yn.parentNode,Kn=[tn],qn=[yn];if(!Dn||!ni)return tn==dn?-1:yn==dn?1:Dn?-1:ni?1:cn?di(cn,tn)-di(cn,yn):0;if(Dn===ni)return Bo(tn,yn);for(Sn=tn;Sn=Sn.parentNode;)Kn.unshift(Sn);for(Sn=yn;Sn=Sn.parentNode;)qn.unshift(Sn);for(;Kn[Qn]===qn[Qn];)Qn++;return Qn?Bo(Kn[Qn],qn[Qn]):Kn[Qn]==fi?-1:qn[Qn]==fi?1:0}),dn},Si.matches=function(Cr,Nr){return Si(Cr,null,null,Nr)},Si.matchesSelector=function(Cr,Nr){if(un(Cr),qe.matchesSelector&&vi&&!Ir[Nr+" "]&&(!Ji||!Ji.test(Nr))&&(!oi||!oi.test(Nr)))try{var jr=Zi.call(Cr,Nr);if(jr||qe.disconnectedMatch||Cr.document&&Cr.document.nodeType!==11)return jr}catch{Ir(Nr,!0)}return Si(Nr,dn,null,[Cr]).length>0},Si.contains=function(Cr,Nr){return(Cr.ownerDocument||Cr)!=dn&&un(Cr),EA(Cr,Nr)},Si.attr=function(Cr,Nr){(Cr.ownerDocument||Cr)!=dn&&un(Cr);var jr=tr.attrHandle[Nr.toLowerCase()],vn=jr&&rn.call(tr.attrHandle,Nr.toLowerCase())?jr(Cr,Nr,!vi):void 0;return vn!==void 0?vn:qe.attributes||!vi?Cr.getAttribute(Nr):(vn=Cr.getAttributeNode(Nr))&&vn.specified?vn.value:null},Si.escape=function(Cr){return(Cr+"").replace(CA,Ta)},Si.error=function(Cr){throw new Error("Syntax error, unrecognized expression: "+Cr)},Si.uniqueSort=function(Cr){var Nr,jr=[],vn=0,tn=0;if(Fn=!qe.detectDuplicates,cn=!qe.sortStable&&Cr.slice(0),Cr.sort(Hr),Fn){for(;Nr=Cr[tn++];)Nr===Cr[tn]&&(vn=jr.push(tn));for(;vn--;)Cr.splice(jr[vn],1)}return cn=null,Cr},lr=Si.getText=function(Cr){var Nr,jr="",vn=0,tn=Cr.nodeType;if(tn){if(tn===1||tn===9||tn===11){if(typeof Cr.textContent=="string")return Cr.textContent;for(Cr=Cr.firstChild;Cr;Cr=Cr.nextSibling)jr+=lr(Cr)}else if(tn===3||tn===4)return Cr.nodeValue}else for(;Nr=Cr[vn++];)jr+=lr(Nr);return jr},tr=Si.selectors={cacheLength:50,createPseudo:$A,match:fo,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(Cr){return Cr[1]=Cr[1].replace(NA,MA),Cr[3]=(Cr[3]||Cr[4]||Cr[5]||"").replace(NA,MA),Cr[2]==="~="&&(Cr[3]=" "+Cr[3]+" "),Cr.slice(0,4)},CHILD:function(Cr){return Cr[1]=Cr[1].toLowerCase(),Cr[1].slice(0,3)==="nth"?(Cr[3]||Si.error(Cr[0]),Cr[4]=+(Cr[4]?Cr[5]+(Cr[6]||1):2*(Cr[3]==="even"||Cr[3]==="odd")),Cr[5]=+(Cr[7]+Cr[8]||Cr[3]==="odd")):Cr[3]&&Si.error(Cr[0]),Cr},PSEUDO:function(Cr){var Nr,jr=!Cr[6]&&Cr[2];return fo.CHILD.test(Cr[0])?null:(Cr[3]?Cr[2]=Cr[4]||Cr[5]||"":jr&&la.test(jr)&&(Nr=Br(jr,!0))&&(Nr=jr.indexOf(")",jr.length-Nr)-jr.length)&&(Cr[0]=Cr[0].slice(0,Nr),Cr[2]=jr.slice(0,Nr)),Cr.slice(0,3))}},filter:{TAG:function(Cr){var Nr=Cr.replace(NA,MA).toLowerCase();return Cr==="*"?function(){return!0}:function(jr){return jr.nodeName&&jr.nodeName.toLowerCase()===Nr}},CLASS:function(Cr){var Nr=Di[Cr+" "];return Nr||(Nr=new RegExp("(^|"+ci+")"+Cr+"("+ci+"|$)"))&&Di(Cr,function(jr){return Nr.test(typeof jr.className=="string"&&jr.className||typeof jr.getAttribute<"u"&&jr.getAttribute("class")||"")})},ATTR:function(Cr,Nr,jr){return function(vn){var tn=Si.attr(vn,Cr);return tn==null?Nr==="!=":Nr?(tn+="",Nr==="="?tn===jr:Nr==="!="?tn!==jr:Nr==="^="?jr&&tn.indexOf(jr)===0:Nr==="*="?jr&&tn.indexOf(jr)>-1:Nr==="$="?jr&&tn.slice(-jr.length)===jr:Nr==="~="?(" "+tn.replace(cA," ")+" ").indexOf(jr)>-1:Nr==="|="?tn===jr||tn.slice(0,jr.length+1)===jr+"-":!1):!0}},CHILD:function(Cr,Nr,jr,vn,tn){var yn=Cr.slice(0,3)!=="nth",Sn=Cr.slice(-4)!=="last",Qn=Nr==="of-type";return vn===1&&tn===0?function(Dn){return!!Dn.parentNode}:function(Dn,ni,Kn){var qn,li,bi,si,tA,AA,yA=yn!==Sn?"nextSibling":"previousSibling",ki=Dn.parentNode,Eo=Qn&&Dn.nodeName.toLowerCase(),gA=!Kn&&!Qn,Xi=!1;if(ki){if(yn){for(;yA;){for(si=Dn;si=si[yA];)if(Qn?si.nodeName.toLowerCase()===Eo:si.nodeType===1)return!1;AA=yA=Cr==="only"&&!AA&&"nextSibling"}return!0}if(AA=[Sn?ki.firstChild:ki.lastChild],Sn&&gA){for(si=ki,bi=si[Ni]||(si[Ni]={}),li=bi[si.uniqueID]||(bi[si.uniqueID]={}),qn=li[Cr]||[],tA=qn[0]===lA&&qn[1],Xi=tA&&qn[2],si=tA&&ki.childNodes[tA];si=++tA&&si&&si[yA]||(Xi=tA=0)||AA.pop();)if(si.nodeType===1&&++Xi&&si===Dn){li[Cr]=[lA,tA,Xi];break}}else if(gA&&(si=Dn,bi=si[Ni]||(si[Ni]={}),li=bi[si.uniqueID]||(bi[si.uniqueID]={}),qn=li[Cr]||[],tA=qn[0]===lA&&qn[1],Xi=tA),Xi===!1)for(;(si=++tA&&si&&si[yA]||(Xi=tA=0)||AA.pop())&&!((Qn?si.nodeName.toLowerCase()===Eo:si.nodeType===1)&&++Xi&&(gA&&(bi=si[Ni]||(si[Ni]={}),li=bi[si.uniqueID]||(bi[si.uniqueID]={}),li[Cr]=[lA,Xi]),si===Dn)););return Xi-=tn,Xi===vn||Xi%vn===0&&Xi/vn>=0}}},PSEUDO:function(Cr,Nr){var jr,vn=tr.pseudos[Cr]||tr.setFilters[Cr.toLowerCase()]||Si.error("unsupported pseudo: "+Cr);return vn[Ni]?vn(Nr):vn.length>1?(jr=[Cr,Cr,"",Nr],tr.setFilters.hasOwnProperty(Cr.toLowerCase())?$A(function(tn,yn){for(var Sn,Qn=vn(tn,Nr),Dn=Qn.length;Dn--;)Sn=di(tn,Qn[Dn]),tn[Sn]=!(yn[Sn]=Qn[Dn])}):function(tn){return vn(tn,0,jr)}):vn}},pseudos:{not:$A(function(Cr){var Nr=[],jr=[],vn=$r(Cr.replace(LA,"$1"));return vn[Ni]?$A(function(tn,yn,Sn,Qn){for(var Dn,ni=vn(tn,null,Qn,[]),Kn=tn.length;Kn--;)(Dn=ni[Kn])&&(tn[Kn]=!(yn[Kn]=Dn))}):function(tn,yn,Sn){return Nr[0]=tn,vn(Nr,null,Sn,jr),Nr[0]=null,!jr.pop()}}),has:$A(function(Cr){return function(Nr){return Si(Cr,Nr).length>0}}),contains:$A(function(Cr){return Cr=Cr.replace(NA,MA),function(Nr){return(Nr.textContent||lr(Nr)).indexOf(Cr)>-1}}),lang:$A(function(Cr){return ua.test(Cr||"")||Si.error("unsupported lang: "+Cr),Cr=Cr.replace(NA,MA).toLowerCase(),function(Nr){var jr;do if(jr=vi?Nr.lang:Nr.getAttribute("xml:lang")||Nr.getAttribute("lang"))return jr=jr.toLowerCase(),jr===Cr||jr.indexOf(Cr+"-")===0;while((Nr=Nr.parentNode)&&Nr.nodeType===1);return!1}}),target:function(Cr){var Nr=Pe.location&&Pe.location.hash;return Nr&&Nr.slice(1)===Cr.id},root:function(Cr){return Cr===ai},focus:function(Cr){return Cr===dn.activeElement&&(!dn.hasFocus||dn.hasFocus())&&!!(Cr.type||Cr.href||~Cr.tabIndex)},enabled:po(!1),disabled:po(!0),checked:function(Cr){var Nr=Cr.nodeName.toLowerCase();return Nr==="input"&&!!Cr.checked||Nr==="option"&&!!Cr.selected},selected:function(Cr){return Cr.parentNode&&Cr.parentNode.selectedIndex,Cr.selected===!0},empty:function(Cr){for(Cr=Cr.firstChild;Cr;Cr=Cr.nextSibling)if(Cr.nodeType<6)return!1;return!0},parent:function(Cr){return!tr.pseudos.empty(Cr)},header:function(Cr){return Vo.test(Cr.nodeName)},input:function(Cr){return fa.test(Cr.nodeName)},button:function(Cr){var Nr=Cr.nodeName.toLowerCase();return Nr==="input"&&Cr.type==="button"||Nr==="button"},text:function(Cr){var Nr;return Cr.nodeName.toLowerCase()==="input"&&Cr.type==="text"&&((Nr=Cr.getAttribute("type"))==null||Nr.toLowerCase()==="text")},first:TA(function(){return[0]}),last:TA(function(Cr,Nr){return[Nr-1]}),eq:TA(function(Cr,Nr,jr){return[jr<0?jr+Nr:jr]}),even:TA(function(Cr,Nr){for(var jr=0;jr<Nr;jr+=2)Cr.push(jr);return Cr}),odd:TA(function(Cr,Nr){for(var jr=1;jr<Nr;jr+=2)Cr.push(jr);return Cr}),lt:TA(function(Cr,Nr,jr){for(var vn=jr<0?jr+Nr:jr>Nr?Nr:jr;--vn>=0;)Cr.push(vn);return Cr}),gt:TA(function(Cr,Nr,jr){for(var vn=jr<0?jr+Nr:jr;++vn<Nr;)Cr.push(vn);return Cr})}},tr.pseudos.nth=tr.pseudos.eq;for(De in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})tr.pseudos[De]=QA(De);for(De in{submit:!0,reset:!0})tr.pseudos[De]=_A(De);function Po(){}Po.prototype=tr.filters=tr.pseudos,tr.setFilters=new Po,Br=Si.tokenize=function(Cr,Nr){var jr,vn,tn,yn,Sn,Qn,Dn,ni=Me[Cr+" "];if(ni)return Nr?0:ni.slice(0);for(Sn=Cr,Qn=[],Dn=tr.preFilter;Sn;){(!jr||(vn=HA.exec(Sn)))&&(vn&&(Sn=Sn.slice(vn[0].length)||Sn),Qn.push(tn=[])),jr=!1,(vn=XA.exec(Sn))&&(jr=vn.shift(),tn.push({value:jr,type:vn[0].replace(LA," ")}),Sn=Sn.slice(jr.length));for(yn in tr.filter)(vn=fo[yn].exec(Sn))&&(!Dn[yn]||(vn=Dn[yn](vn)))&&(jr=vn.shift(),tn.push({value:jr,type:yn,matches:vn}),Sn=Sn.slice(jr.length));if(!jr)break}return Nr?Sn.length:Sn?Si.error(Cr):Me(Cr,Qn).slice(0)};function GA(Cr){for(var Nr=0,jr=Cr.length,vn="";Nr<jr;Nr++)vn+=Cr[Nr].value;return vn}function Wi(Cr,Nr,jr){var vn=Nr.dir,tn=Nr.next,yn=tn||vn,Sn=jr&&yn==="parentNode",Qn=Ci++;return Nr.first?function(Dn,ni,Kn){for(;Dn=Dn[vn];)if(Dn.nodeType===1||Sn)return Cr(Dn,ni,Kn);return!1}:function(Dn,ni,Kn){var qn,li,bi,si=[lA,Qn];if(Kn){for(;Dn=Dn[vn];)if((Dn.nodeType===1||Sn)&&Cr(Dn,ni,Kn))return!0}else for(;Dn=Dn[vn];)if(Dn.nodeType===1||Sn)if(bi=Dn[Ni]||(Dn[Ni]={}),li=bi[Dn.uniqueID]||(bi[Dn.uniqueID]={}),tn&&tn===Dn.nodeName.toLowerCase())Dn=Dn[vn]||Dn;else{if((qn=li[yn])&&qn[0]===lA&&qn[1]===Qn)return si[2]=qn[2];if(li[yn]=si,si[2]=Cr(Dn,ni,Kn))return!0}return!1}}function Oo(Cr){return Cr.length>1?function(Nr,jr,vn){for(var tn=Cr.length;tn--;)if(!Cr[tn](Nr,jr,vn))return!1;return!0}:Cr[0]}function xA(Cr,Nr,jr){for(var vn=0,tn=Nr.length;vn<tn;vn++)Si(Cr,Nr[vn],jr);return jr}function FA(Cr,Nr,jr,vn,tn){for(var yn,Sn=[],Qn=0,Dn=Cr.length,ni=Nr!=null;Qn<Dn;Qn++)(yn=Cr[Qn])&&(!jr||jr(yn,vn,tn))&&(Sn.push(yn),ni&&Nr.push(Qn));return Sn}function bo(Cr,Nr,jr,vn,tn,yn){return vn&&!vn[Ni]&&(vn=bo(vn)),tn&&!tn[Ni]&&(tn=bo(tn,yn)),$A(function(Sn,Qn,Dn,ni){var Kn,qn,li,bi=[],si=[],tA=Qn.length,AA=Sn||xA(Nr||"*",Dn.nodeType?[Dn]:Dn,[]),yA=Cr&&(Sn||!Nr)?FA(AA,bi,Cr,Dn,ni):AA,ki=jr?tn||(Sn?Cr:tA||vn)?[]:Qn:yA;if(jr&&jr(yA,ki,Dn,ni),vn)for(Kn=FA(ki,si),vn(Kn,[],Dn,ni),qn=Kn.length;qn--;)(li=Kn[qn])&&(ki[si[qn]]=!(yA[si[qn]]=li));if(Sn){if(tn||Cr){if(tn){for(Kn=[],qn=ki.length;qn--;)(li=ki[qn])&&Kn.push(yA[qn]=li);tn(null,ki=[],Kn,ni)}for(qn=ki.length;qn--;)(li=ki[qn])&&(Kn=tn?di(Sn,li):bi[qn])>-1&&(Sn[Kn]=!(Qn[Kn]=li))}}else ki=FA(ki===Qn?ki.splice(tA,ki.length):ki),tn?tn(null,Qn,ki,ni):ri.apply(Qn,ki)})}function Go(Cr){for(var Nr,jr,vn,tn=Cr.length,yn=tr.relative[Cr[0].type],Sn=yn||tr.relative[" "],Qn=yn?1:0,Dn=Wi(function(qn){return qn===Nr},Sn,!0),ni=Wi(function(qn){return di(Nr,qn)>-1},Sn,!0),Kn=[function(qn,li,bi){var si=!yn&&(bi||li!==en)||((Nr=li).nodeType?Dn(qn,li,bi):ni(qn,li,bi));return Nr=null,si}];Qn<tn;Qn++)if(jr=tr.relative[Cr[Qn].type])Kn=[Wi(Oo(Kn),jr)];else{if(jr=tr.filter[Cr[Qn].type].apply(null,Cr[Qn].matches),jr[Ni]){for(vn=++Qn;vn<tn&&!tr.relative[Cr[vn].type];vn++);return bo(Qn>1&&Oo(Kn),Qn>1&&GA(Cr.slice(0,Qn-1).concat({value:Cr[Qn-2].type===" "?"*":""})).replace(LA,"$1"),jr,Qn<vn&&Go(Cr.slice(Qn,vn)),vn<tn&&Go(Cr=Cr.slice(vn)),vn<tn&&GA(Cr))}Kn.push(jr)}return Oo(Kn)}function ha(Cr,Nr){var jr=Nr.length>0,vn=Cr.length>0,tn=function(yn,Sn,Qn,Dn,ni){var Kn,qn,li,bi=0,si="0",tA=yn&&[],AA=[],yA=en,ki=yn||vn&&tr.find.TAG("*",ni),Eo=lA+=yA==null?1:Math.random()||.1,gA=ki.length;for(ni&&(en=Sn==dn||Sn||ni);si!==gA&&(Kn=ki[si])!=null;si++){if(vn&&Kn){for(qn=0,!Sn&&Kn.ownerDocument!=dn&&(un(Kn),Qn=!vi);li=Cr[qn++];)if(li(Kn,Sn||dn,Qn)){Dn.push(Kn);break}ni&&(lA=Eo)}jr&&((Kn=!li&&Kn)&&bi--,yn&&tA.push(Kn))}if(bi+=si,jr&&si!==bi){for(qn=0;li=Nr[qn++];)li(tA,AA,Sn,Qn);if(yn){if(bi>0)for(;si--;)tA[si]||AA[si]||(AA[si]=xn.call(Dn));AA=FA(AA)}ri.apply(Dn,AA),ni&&!yn&&AA.length>0&&bi+Nr.length>1&&Si.uniqueSort(Dn)}return ni&&(lA=Eo,en=yA),tA};return jr?$A(tn):tn}return $r=Si.compile=function(Cr,Nr){var jr,vn=[],tn=[],yn=hr[Cr+" "];if(!yn){for(Nr||(Nr=Br(Cr)),jr=Nr.length;jr--;)yn=Go(Nr[jr]),yn[Ni]?vn.push(yn):tn.push(yn);yn=hr(Cr,ha(tn,vn)),yn.selector=Cr}return yn},Rr=Si.select=function(Cr,Nr,jr,vn){var tn,yn,Sn,Qn,Dn,ni=typeof Cr=="function"&&Cr,Kn=!vn&&Br(Cr=ni.selector||Cr);if(jr=jr||[],Kn.length===1){if(yn=Kn[0]=Kn[0].slice(0),yn.length>2&&(Sn=yn[0]).type==="ID"&&Nr.nodeType===9&&vi&&tr.relative[yn[1].type]){if(Nr=(tr.find.ID(Sn.matches[0].replace(NA,MA),Nr)||[])[0],Nr)ni&&(Nr=Nr.parentNode);else return jr;Cr=Cr.slice(yn.shift().value.length)}for(tn=fo.needsContext.test(Cr)?0:yn.length;tn--&&(Sn=yn[tn],!tr.relative[Qn=Sn.type]);)if((Dn=tr.find[Qn])&&(vn=Dn(Sn.matches[0].replace(NA,MA),wo.test(yn[0].type)&&YA(Nr.parentNode)||Nr))){if(yn.splice(tn,1),Cr=vn.length&&GA(yn),!Cr)return ri.apply(jr,vn),jr;break}}return(ni||$r(Cr,Kn))(vn,Nr,!vi,jr,!Nr||wo.test(Cr)&&YA(Nr.parentNode)||Nr),jr},qe.sortStable=Ni.split("").sort(Hr).join("")===Ni,qe.detectDuplicates=!!Fn,un(),qe.sortDetached=RA(function(Cr){return Cr.compareDocumentPosition(dn.createElement("fieldset"))&1}),RA(function(Cr){return Cr.innerHTML="<a href='#'></a>",Cr.firstChild.getAttribute("href")==="#"})||oo("type|href|height|width",function(Cr,Nr,jr){if(!jr)return Cr.getAttribute(Nr,Nr.toLowerCase()==="type"?1:2)}),(!qe.attributes||!RA(function(Cr){return Cr.innerHTML="<input/>",Cr.firstChild.setAttribute("value",""),Cr.firstChild.getAttribute("value")===""}))&&oo("value",function(Cr,Nr,jr){if(!jr&&Cr.nodeName.toLowerCase()==="input")return Cr.defaultValue}),RA(function(Cr){return Cr.getAttribute("disabled")==null})||oo(xi,function(Cr,Nr,jr){var vn;if(!jr)return Cr[Nr]===!0?Nr.toLowerCase():(vn=Cr.getAttributeNode(Nr))&&vn.specified?vn.value:null}),Si}(St);Oe.find=Ye,Oe.expr=Ye.selectors,Oe.expr[":"]=Oe.expr.pseudos,Oe.uniqueSort=Oe.unique=Ye.uniqueSort,Oe.text=Ye.getText,Oe.isXMLDoc=Ye.isXML,Oe.contains=Ye.contains,Oe.escapeSelector=Ye.escape;var rr=function(Pe,De,qe){for(var tr=[],lr=qe!==void 0;(Pe=Pe[De])&&Pe.nodeType!==9;)if(Pe.nodeType===1){if(lr&&Oe(Pe).is(qe))break;tr.push(Pe)}return tr},vr=function(Pe,De){for(var qe=[];Pe;Pe=Pe.nextSibling)Pe.nodeType===1&&Pe!==De&&qe.push(Pe);return qe},er=Oe.expr.match.needsContext;function Ar(Pe,De){return Pe.nodeName&&Pe.nodeName.toLowerCase()===De.toLowerCase()}var gr=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function mr(Pe,De,qe){return Ve(De)?Oe.grep(Pe,function(tr,lr){return!!De.call(tr,lr,tr)!==qe}):De.nodeType?Oe.grep(Pe,function(tr){return tr===De!==qe}):typeof De!="string"?Oe.grep(Pe,function(tr){return xe.call(De,tr)>-1!==qe}):Oe.filter(De,Pe,qe)}Oe.filter=function(Pe,De,qe){var tr=De[0];return qe&&(Pe=":not("+Pe+")"),De.length===1&&tr.nodeType===1?Oe.find.matchesSelector(tr,Pe)?[tr]:[]:Oe.find.matches(Pe,Oe.grep(De,function(lr){return lr.nodeType===1}))},Oe.fn.extend({find:function(Pe){var De,qe,tr=this.length,lr=this;if(typeof Pe!="string")return this.pushStack(Oe(Pe).filter(function(){for(De=0;De<tr;De++)if(Oe.contains(lr[De],this))return!0}));for(qe=this.pushStack([]),De=0;De<tr;De++)Oe.find(Pe,lr[De],qe);return tr>1?Oe.uniqueSort(qe):qe},filter:function(Pe){return this.pushStack(mr(this,Pe||[],!1))},not:function(Pe){return this.pushStack(mr(this,Pe||[],!0))},is:function(Pe){return!!mr(this,typeof Pe=="string"&&er.test(Pe)?Oe(Pe):Pe||[],!1).length}});var Ur,Lr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Mr=Oe.fn.init=function(Pe,De,qe){var tr,lr;if(!Pe)return this;if(qe=qe||Ur,typeof Pe=="string")if(Pe[0]==="<"&&Pe[Pe.length-1]===">"&&Pe.length>=3?tr=[null,Pe,null]:tr=Lr.exec(Pe),tr&&(tr[1]||!De))if(tr[1]){if(De=De instanceof Oe?De[0]:De,Oe.merge(this,Oe.parseHTML(tr[1],De&&De.nodeType?De.ownerDocument||De:Ze,!0)),gr.test(tr[1])&&Oe.isPlainObject(De))for(tr in De)Ve(this[tr])?this[tr](De[tr]):this.attr(tr,De[tr]);return this}else return lr=Ze.getElementById(tr[2]),lr&&(this[0]=lr,this.length=1),this;else return!De||De.jquery?(De||qe).find(Pe):this.constructor(De).find(Pe);else{if(Pe.nodeType)return this[0]=Pe,this.length=1,this;if(Ve(Pe))return qe.ready!==void 0?qe.ready(Pe):Pe(Oe)}return Oe.makeArray(Pe,this)};Mr.prototype=Oe.fn,Ur=Oe(Ze);var Qr=/^(?:parents|prev(?:Until|All))/,Dr={children:!0,contents:!0,next:!0,prev:!0};Oe.fn.extend({has:function(Pe){var De=Oe(Pe,this),qe=De.length;return this.filter(function(){for(var tr=0;tr<qe;tr++)if(Oe.contains(this,De[tr]))return!0})},closest:function(Pe,De){var qe,tr=0,lr=this.length,fr=[],Br=typeof Pe!="string"&&Oe(Pe);if(!er.test(Pe)){for(;tr<lr;tr++)for(qe=this[tr];qe&&qe!==De;qe=qe.parentNode)if(qe.nodeType<11&&(Br?Br.index(qe)>-1:qe.nodeType===1&&Oe.find.matchesSelector(qe,Pe))){fr.push(qe);break}}return this.pushStack(fr.length>1?Oe.uniqueSort(fr):fr)},index:function(Pe){return Pe?typeof Pe=="string"?xe.call(Oe(Pe),this[0]):xe.call(this,Pe.jquery?Pe[0]:Pe):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(Pe,De){return this.pushStack(Oe.uniqueSort(Oe.merge(this.get(),Oe(Pe,De))))},addBack:function(Pe){return this.add(Pe==null?this.prevObject:this.prevObject.filter(Pe))}});function Xr(Pe,De){for(;(Pe=Pe[De])&&Pe.nodeType!==1;);return Pe}Oe.each({parent:function(Pe){var De=Pe.parentNode;return De&&De.nodeType!==11?De:null},parents:function(Pe){return rr(Pe,"parentNode")},parentsUntil:function(Pe,De,qe){return rr(Pe,"parentNode",qe)},next:function(Pe){return Xr(Pe,"nextSibling")},prev:function(Pe){return Xr(Pe,"previousSibling")},nextAll:function(Pe){return rr(Pe,"nextSibling")},prevAll:function(Pe){return rr(Pe,"previousSibling")},nextUntil:function(Pe,De,qe){return rr(Pe,"nextSibling",qe)},prevUntil:function(Pe,De,qe){return rr(Pe,"previousSibling",qe)},siblings:function(Pe){return vr((Pe.parentNode||{}).firstChild,Pe)},children:function(Pe){return vr(Pe.firstChild)},contents:function(Pe){return Pe.contentDocument!=null&&Ce(Pe.contentDocument)?Pe.contentDocument:(Ar(Pe,"template")&&(Pe=Pe.content||Pe),Oe.merge([],Pe.childNodes))}},function(Pe,De){Oe.fn[Pe]=function(qe,tr){var lr=Oe.map(this,De,qe);return Pe.slice(-5)!=="Until"&&(tr=qe),tr&&typeof tr=="string"&&(lr=Oe.filter(tr,lr)),this.length>1&&(Dr[Pe]||Oe.uniqueSort(lr),Qr.test(Pe)&&lr.reverse()),this.pushStack(lr)}});var sn=/[^\x20\t\r\n\f]+/g;function ur(Pe){var De={};return Oe.each(Pe.match(sn)||[],function(qe,tr){De[tr]=!0}),De}Oe.Callbacks=function(Pe){Pe=typeof Pe=="string"?ur(Pe):Oe.extend({},Pe);var De,qe,tr,lr,fr=[],Br=[],$r=-1,Rr=function(){for(lr=lr||Pe.once,tr=De=!0;Br.length;$r=-1)for(qe=Br.shift();++$r<fr.length;)fr[$r].apply(qe[0],qe[1])===!1&&Pe.stopOnFalse&&($r=fr.length,qe=!1);Pe.memory||(qe=!1),De=!1,lr&&(qe?fr=[]:fr="")},en={add:function(){return fr&&(qe&&!De&&($r=fr.length-1,Br.push(qe)),function cn(Fn){Oe.each(Fn,function(un,dn){Ve(dn)?(!Pe.unique||!en.has(dn))&&fr.push(dn):dn&&dn.length&&Xe(dn)!=="string"&&cn(dn)})}(arguments),qe&&!De&&Rr()),this},remove:function(){return Oe.each(arguments,function(cn,Fn){for(var un;(un=Oe.inArray(Fn,fr,un))>-1;)fr.splice(un,1),un<=$r&&$r--}),this},has:function(cn){return cn?Oe.inArray(cn,fr)>-1:fr.length>0},empty:function(){return fr&&(fr=[]),this},disable:function(){return lr=Br=[],fr=qe="",this},disabled:function(){return!fr},lock:function(){return lr=Br=[],!qe&&!De&&(fr=qe=""),this},locked:function(){return!!lr},fireWith:function(cn,Fn){return lr||(Fn=Fn||[],Fn=[cn,Fn.slice?Fn.slice():Fn],Br.push(Fn),De||Rr()),this},fire:function(){return en.fireWith(this,arguments),this},fired:function(){return!!tr}};return en};function _r(Pe){return Pe}function Fr(Pe){throw Pe}function Pr(Pe,De,qe,tr){var lr;try{Pe&&Ve(lr=Pe.promise)?lr.call(Pe).done(De).fail(qe):Pe&&Ve(lr=Pe.then)?lr.call(Pe,De,qe):De.apply(void 0,[Pe].slice(tr))}catch(fr){qe.apply(void 0,[fr])}}Oe.extend({Deferred:function(Pe){var De=[["notify","progress",Oe.Callbacks("memory"),Oe.Callbacks("memory"),2],["resolve","done",Oe.Callbacks("once memory"),Oe.Callbacks("once memory"),0,"resolved"],["reject","fail",Oe.Callbacks("once memory"),Oe.Callbacks("once memory"),1,"rejected"]],qe="pending",tr={state:function(){return qe},always:function(){return lr.done(arguments).fail(arguments),this},catch:function(fr){return tr.then(null,fr)},pipe:function(){var fr=arguments;return Oe.Deferred(function(Br){Oe.each(De,function($r,Rr){var en=Ve(fr[Rr[4]])&&fr[Rr[4]];lr[Rr[1]](function(){var cn=en&&en.apply(this,arguments);cn&&Ve(cn.promise)?cn.promise().progress(Br.notify).done(Br.resolve).fail(Br.reject):Br[Rr[0]+"With"](this,en?[cn]:arguments)})}),fr=null}).promise()},then:function(fr,Br,$r){var Rr=0;function en(cn,Fn,un,dn){return function(){var ai=this,vi=arguments,oi=function(){var Zi,EA;if(!(cn<Rr)){if(Zi=un.apply(ai,vi),Zi===Fn.promise())throw new TypeError("Thenable self-resolution");EA=Zi&&(typeof Zi=="object"||typeof Zi=="function")&&Zi.then,Ve(EA)?dn?EA.call(Zi,en(Rr,Fn,_r,dn),en(Rr,Fn,Fr,dn)):(Rr++,EA.call(Zi,en(Rr,Fn,_r,dn),en(Rr,Fn,Fr,dn),en(Rr,Fn,_r,Fn.notifyWith))):(un!==_r&&(ai=void 0,vi=[Zi]),(dn||Fn.resolveWith)(ai,vi))}},Ji=dn?oi:function(){try{oi()}catch(Zi){Oe.Deferred.exceptionHook&&Oe.Deferred.exceptionHook(Zi,Ji.stackTrace),cn+1>=Rr&&(un!==Fr&&(ai=void 0,vi=[Zi]),Fn.rejectWith(ai,vi))}};cn?Ji():(Oe.Deferred.getStackHook&&(Ji.stackTrace=Oe.Deferred.getStackHook()),St.setTimeout(Ji))}}return Oe.Deferred(function(cn){De[0][3].add(en(0,cn,Ve($r)?$r:_r,cn.notifyWith)),De[1][3].add(en(0,cn,Ve(fr)?fr:_r)),De[2][3].add(en(0,cn,Ve(Br)?Br:Fr))}).promise()},promise:function(fr){return fr!=null?Oe.extend(fr,tr):tr}},lr={};return Oe.each(De,function(fr,Br){var $r=Br[2],Rr=Br[5];tr[Br[1]]=$r.add,Rr&&$r.add(function(){qe=Rr},De[3-fr][2].disable,De[3-fr][3].disable,De[0][2].lock,De[0][3].lock),$r.add(Br[3].fire),lr[Br[0]]=function(){return lr[Br[0]+"With"](this===lr?void 0:this,arguments),this},lr[Br[0]+"With"]=$r.fireWith}),tr.promise(lr),Pe&&Pe.call(lr,lr),lr},when:function(Pe){var De=arguments.length,qe=De,tr=Array(qe),lr=_e.call(arguments),fr=Oe.Deferred(),Br=function($r){return function(Rr){tr[$r]=this,lr[$r]=arguments.length>1?_e.call(arguments):Rr,--De||fr.resolveWith(tr,lr)}};if(De<=1&&(Pr(Pe,fr.done(Br(qe)).resolve,fr.reject,!De),fr.state()==="pending"||Ve(lr[qe]&&lr[qe].then)))return fr.then();for(;qe--;)Pr(lr[qe],Br(qe),fr.reject);return fr.promise()}});var kr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Oe.Deferred.exceptionHook=function(Pe,De){St.console&&St.console.warn&&Pe&&kr.test(Pe.name)&&St.console.warn("jQuery.Deferred exception: "+Pe.message,Pe.stack,De)},Oe.readyException=function(Pe){St.setTimeout(function(){throw Pe})};var Vr=Oe.Deferred();Oe.fn.ready=function(Pe){return Vr.then(Pe).catch(function(De){Oe.readyException(De)}),this},Oe.extend({isReady:!1,readyWait:1,ready:function(Pe){(Pe===!0?--Oe.readyWait:Oe.isReady)||(Oe.isReady=!0,!(Pe!==!0&&--Oe.readyWait>0)&&Vr.resolveWith(Ze,[Oe]))}}),Oe.ready.then=Vr.then;function nn(){Ze.removeEventListener("DOMContentLoaded",nn),St.removeEventListener("load",nn),Oe.ready()}Ze.readyState==="complete"||Ze.readyState!=="loading"&&!Ze.documentElement.doScroll?St.setTimeout(Oe.ready):(Ze.addEventListener("DOMContentLoaded",nn),St.addEventListener("load",nn));var Jr=function(Pe,De,qe,tr,lr,fr,Br){var $r=0,Rr=Pe.length,en=qe==null;if(Xe(qe)==="object"){lr=!0;for($r in qe)Jr(Pe,De,$r,qe[$r],!0,fr,Br)}else if(tr!==void 0&&(lr=!0,Ve(tr)||(Br=!0),en&&(Br?(De.call(Pe,tr),De=null):(en=De,De=function(cn,Fn,un){return en.call(Oe(cn),un)})),De))for(;$r<Rr;$r++)De(Pe[$r],qe,Br?tr:tr.call(Pe[$r],$r,De(Pe[$r],qe)));return lr?Pe:en?De.call(Pe):Rr?De(Pe[0],qe):fr},wn=/^-ms-/,Cn=/-([a-z])/g;function On(Pe,De){return De.toUpperCase()}function In(Pe){return Pe.replace(wn,"ms-").replace(Cn,On)}var Xn=function(Pe){return Pe.nodeType===1||Pe.nodeType===9||!+Pe.nodeType};function fn(){this.expando=Oe.expando+fn.uid++}fn.uid=1,fn.prototype={cache:function(Pe){var De=Pe[this.expando];return De||(De={},Xn(Pe)&&(Pe.nodeType?Pe[this.expando]=De:Object.defineProperty(Pe,this.expando,{value:De,configurable:!0}))),De},set:function(Pe,De,qe){var tr,lr=this.cache(Pe);if(typeof De=="string")lr[In(De)]=qe;else for(tr in De)lr[In(tr)]=De[tr];return lr},get:function(Pe,De){return De===void 0?this.cache(Pe):Pe[this.expando]&&Pe[this.expando][In(De)]},access:function(Pe,De,qe){return De===void 0||De&&typeof De=="string"&&qe===void 0?this.get(Pe,De):(this.set(Pe,De,qe),qe!==void 0?qe:De)},remove:function(Pe,De){var qe,tr=Pe[this.expando];if(tr!==void 0){if(De!==void 0)for(Array.isArray(De)?De=De.map(In):(De=In(De),De=De in tr?[De]:De.match(sn)||[]),qe=De.length;qe--;)delete tr[De[qe]];(De===void 0||Oe.isEmptyObject(tr))&&(Pe.nodeType?Pe[this.expando]=void 0:delete Pe[this.expando])}},hasData:function(Pe){var De=Pe[this.expando];return De!==void 0&&!Oe.isEmptyObject(De)}};var Sr=new fn,ti=new fn,Yn=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Tn=/[A-Z]/g;function Nn(Pe){return Pe==="true"?!0:Pe==="false"?!1:Pe==="null"?null:Pe===+Pe+""?+Pe:Yn.test(Pe)?JSON.parse(Pe):Pe}function Rn(Pe,De,qe){var tr;if(qe===void 0&&Pe.nodeType===1)if(tr="data-"+De.replace(Tn,"-$&").toLowerCase(),qe=Pe.getAttribute(tr),typeof qe=="string"){try{qe=Nn(qe)}catch{}ti.set(Pe,De,qe)}else qe=void 0;return qe}Oe.extend({hasData:function(Pe){return ti.hasData(Pe)||Sr.hasData(Pe)},data:function(Pe,De,qe){return ti.access(Pe,De,qe)},removeData:function(Pe,De){ti.remove(Pe,De)},_data:function(Pe,De,qe){return Sr.access(Pe,De,qe)},_removeData:function(Pe,De){Sr.remove(Pe,De)}}),Oe.fn.extend({data:function(Pe,De){var qe,tr,lr,fr=this[0],Br=fr&&fr.attributes;if(Pe===void 0){if(this.length&&(lr=ti.get(fr),fr.nodeType===1&&!Sr.get(fr,"hasDataAttrs"))){for(qe=Br.length;qe--;)Br[qe]&&(tr=Br[qe].name,tr.indexOf("data-")===0&&(tr=In(tr.slice(5)),Rn(fr,tr,lr[tr])));Sr.set(fr,"hasDataAttrs",!0)}return lr}return typeof Pe=="object"?this.each(function(){ti.set(this,Pe)}):Jr(this,function($r){var Rr;if(fr&&$r===void 0)return Rr=ti.get(fr,Pe),Rr!==void 0||(Rr=Rn(fr,Pe),Rr!==void 0)?Rr:void 0;this.each(function(){ti.set(this,Pe,$r)})},null,De,arguments.length>1,null,!0)},removeData:function(Pe){return this.each(function(){ti.remove(this,Pe)})}}),Oe.extend({queue:function(Pe,De,qe){var tr;if(Pe)return De=(De||"fx")+"queue",tr=Sr.get(Pe,De),qe&&(!tr||Array.isArray(qe)?tr=Sr.access(Pe,De,Oe.makeArray(qe)):tr.push(qe)),tr||[]},dequeue:function(Pe,De){De=De||"fx";var qe=Oe.queue(Pe,De),tr=qe.length,lr=qe.shift(),fr=Oe._queueHooks(Pe,De),Br=function(){Oe.dequeue(Pe,De)};lr==="inprogress"&&(lr=qe.shift(),tr--),lr&&(De==="fx"&&qe.unshift("inprogress"),delete fr.stop,lr.call(Pe,Br,fr)),!tr&&fr&&fr.empty.fire()},_queueHooks:function(Pe,De){var qe=De+"queueHooks";return Sr.get(Pe,qe)||Sr.access(Pe,qe,{empty:Oe.Callbacks("once memory").add(function(){Sr.remove(Pe,[De+"queue",qe])})})}}),Oe.fn.extend({queue:function(Pe,De){var qe=2;return typeof Pe!="string"&&(De=Pe,Pe="fx",qe--),arguments.length<qe?Oe.queue(this[0],Pe):De===void 0?this:this.each(function(){var tr=Oe.queue(this,Pe,De);Oe._queueHooks(this,Pe),Pe==="fx"&&tr[0]!=="inprogress"&&Oe.dequeue(this,Pe)})},dequeue:function(Pe){return this.each(function(){Oe.dequeue(this,Pe)})},clearQueue:function(Pe){return this.queue(Pe||"fx",[])},promise:function(Pe,De){var qe,tr=1,lr=Oe.Deferred(),fr=this,Br=this.length,$r=function(){--tr||lr.resolveWith(fr,[fr])};for(typeof Pe!="string"&&(De=Pe,Pe=void 0),Pe=Pe||"fx";Br--;)qe=Sr.get(fr[Br],Pe+"queueHooks"),qe&&qe.empty&&(tr++,qe.empty.add($r));return $r(),lr.promise(De)}});var $n=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,zn=new RegExp("^(?:([+-])=|)("+$n+")([a-z%]*)$","i"),Gn=["Top","Right","Bottom","Left"],ii=Ze.documentElement,ui=function(Pe){return Oe.contains(Pe.ownerDocument,Pe)},mi={composed:!0};ii.getRootNode&&(ui=function(Pe){return Oe.contains(Pe.ownerDocument,Pe)||Pe.getRootNode(mi)===Pe.ownerDocument});var yi=function(Pe,De){return Pe=De||Pe,Pe.style.display==="none"||Pe.style.display===""&&ui(Pe)&&Oe.css(Pe,"display")==="none"};function Ai(Pe,De,qe,tr){var lr,fr,Br=20,$r=tr?function(){return tr.cur()}:function(){return Oe.css(Pe,De,"")},Rr=$r(),en=qe&&qe[3]||(Oe.cssNumber[De]?"":"px"),cn=Pe.nodeType&&(Oe.cssNumber[De]||en!=="px"&&+Rr)&&zn.exec(Oe.css(Pe,De));if(cn&&cn[3]!==en){for(Rr=Rr/2,en=en||cn[3],cn=+Rr||1;Br--;)Oe.style(Pe,De,cn+en),(1-fr)*(1-(fr=$r()/Rr||.5))<=0&&(Br=0),cn=cn/fr;cn=cn*2,Oe.style(Pe,De,cn+en),qe=qe||[]}return qe&&(cn=+cn||+Rr||0,lr=qe[1]?cn+(qe[1]+1)*qe[2]:+qe[2],tr&&(tr.unit=en,tr.start=cn,tr.end=lr)),lr}var hi={};function Hn(Pe){var De,qe=Pe.ownerDocument,tr=Pe.nodeName,lr=hi[tr];return lr||(De=qe.body.appendChild(qe.createElement(tr)),lr=Oe.css(De,"display"),De.parentNode.removeChild(De),lr==="none"&&(lr="block"),hi[tr]=lr,lr)}function Oi(Pe,De){for(var qe,tr,lr=[],fr=0,Br=Pe.length;fr<Br;fr++)tr=Pe[fr],tr.style&&(qe=tr.style.display,De?(qe==="none"&&(lr[fr]=Sr.get(tr,"display")||null,lr[fr]||(tr.style.display="")),tr.style.display===""&&yi(tr)&&(lr[fr]=Hn(tr))):qe!=="none"&&(lr[fr]="none",Sr.set(tr,"display",qe)));for(fr=0;fr<Br;fr++)lr[fr]!=null&&(Pe[fr].style.display=lr[fr]);return Pe}Oe.fn.extend({show:function(){return Oi(this,!0)},hide:function(){return Oi(this)},toggle:function(Pe){return typeof Pe=="boolean"?Pe?this.show():this.hide():this.each(function(){yi(this)?Oe(this).show():Oe(this).hide()})}});var wi=/^(?:checkbox|radio)$/i,br=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ke=/^$|^module$|\/(?:java|ecma)script/i;(function(){var Pe=Ze.createDocumentFragment(),De=Pe.appendChild(Ze.createElement("div")),qe=Ze.createElement("input");qe.setAttribute("type","radio"),qe.setAttribute("checked","checked"),qe.setAttribute("name","t"),De.appendChild(qe),ze.checkClone=De.cloneNode(!0).cloneNode(!0).lastChild.checked,De.innerHTML="<textarea>x</textarea>",ze.noCloneChecked=!!De.cloneNode(!0).lastChild.defaultValue,De.innerHTML="<option></option>",ze.option=!!De.lastChild})();var je={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};je.tbody=je.tfoot=je.colgroup=je.caption=je.thead,je.th=je.td,ze.option||(je.optgroup=je.option=[1,"<select multiple='multiple'>","</select>"]);function sr(Pe,De){var qe;return typeof Pe.getElementsByTagName<"u"?qe=Pe.getElementsByTagName(De||"*"):typeof Pe.querySelectorAll<"u"?qe=Pe.querySelectorAll(De||"*"):qe=[],De===void 0||De&&Ar(Pe,De)?Oe.merge([Pe],qe):qe}function dr(Pe,De){for(var qe=0,tr=Pe.length;qe<tr;qe++)Sr.set(Pe[qe],"globalEval",!De||Sr.get(De[qe],"globalEval"))}var Or=/<|&#?\w+;/;function qr(Pe,De,qe,tr,lr){for(var fr,Br,$r,Rr,en,cn,Fn=De.createDocumentFragment(),un=[],dn=0,ai=Pe.length;dn<ai;dn++)if(fr=Pe[dn],fr||fr===0)if(Xe(fr)==="object")Oe.merge(un,fr.nodeType?[fr]:fr);else if(!Or.test(fr))un.push(De.createTextNode(fr));else{for(Br=Br||Fn.appendChild(De.createElement("div")),$r=(br.exec(fr)||["",""])[1].toLowerCase(),Rr=je[$r]||je._default,Br.innerHTML=Rr[1]+Oe.htmlPrefilter(fr)+Rr[2],cn=Rr[0];cn--;)Br=Br.lastChild;Oe.merge(un,Br.childNodes),Br=Fn.firstChild,Br.textContent=""}for(Fn.textContent="",dn=0;fr=un[dn++];){if(tr&&Oe.inArray(fr,tr)>-1){lr&&lr.push(fr);continue}if(en=ui(fr),Br=sr(Fn.appendChild(fr),"script"),en&&dr(Br),qe)for(cn=0;fr=Br[cn++];)Ke.test(fr.type||"")&&qe.push(fr)}return Fn}var gn=/^([^.]*)(?:\.(.+)|)/;function mn(){return!0}function Ln(){return!1}function We(Pe,De){return Pe===ke()==(De==="focus")}function ke(){try{return Ze.activeElement}catch{}}function Wr(Pe,De,qe,tr,lr,fr){var Br,$r;if(typeof De=="object"){typeof qe!="string"&&(tr=tr||qe,qe=void 0);for($r in De)Wr(Pe,$r,qe,tr,De[$r],fr);return Pe}if(tr==null&&lr==null?(lr=qe,tr=qe=void 0):lr==null&&(typeof qe=="string"?(lr=tr,tr=void 0):(lr=tr,tr=qe,qe=void 0)),lr===!1)lr=Ln;else if(!lr)return Pe;return fr===1&&(Br=lr,lr=function(Rr){return Oe().off(Rr),Br.apply(this,arguments)},lr.guid=Br.guid||(Br.guid=Oe.guid++)),Pe.each(function(){Oe.event.add(this,De,lr,tr,qe)})}Oe.event={global:{},add:function(Pe,De,qe,tr,lr){var fr,Br,$r,Rr,en,cn,Fn,un,dn,ai,vi,oi=Sr.get(Pe);if(Xn(Pe))for(qe.handler&&(fr=qe,qe=fr.handler,lr=fr.selector),lr&&Oe.find.matchesSelector(ii,lr),qe.guid||(qe.guid=Oe.guid++),(Rr=oi.events)||(Rr=oi.events=Object.create(null)),(Br=oi.handle)||(Br=oi.handle=function(Ji){return typeof Oe<"u"&&Oe.event.triggered!==Ji.type?Oe.event.dispatch.apply(Pe,arguments):void 0}),De=(De||"").match(sn)||[""],en=De.length;en--;)$r=gn.exec(De[en])||[],dn=vi=$r[1],ai=($r[2]||"").split(".").sort(),dn&&(Fn=Oe.event.special[dn]||{},dn=(lr?Fn.delegateType:Fn.bindType)||dn,Fn=Oe.event.special[dn]||{},cn=Oe.extend({type:dn,origType:vi,data:tr,handler:qe,guid:qe.guid,selector:lr,needsContext:lr&&Oe.expr.match.needsContext.test(lr),namespace:ai.join(".")},fr),(un=Rr[dn])||(un=Rr[dn]=[],un.delegateCount=0,(!Fn.setup||Fn.setup.call(Pe,tr,ai,Br)===!1)&&Pe.addEventListener&&Pe.addEventListener(dn,Br)),Fn.add&&(Fn.add.call(Pe,cn),cn.handler.guid||(cn.handler.guid=qe.guid)),lr?un.splice(un.delegateCount++,0,cn):un.push(cn),Oe.event.global[dn]=!0)},remove:function(Pe,De,qe,tr,lr){var fr,Br,$r,Rr,en,cn,Fn,un,dn,ai,vi,oi=Sr.hasData(Pe)&&Sr.get(Pe);if(!(!oi||!(Rr=oi.events))){for(De=(De||"").match(sn)||[""],en=De.length;en--;){if($r=gn.exec(De[en])||[],dn=vi=$r[1],ai=($r[2]||"").split(".").sort(),!dn){for(dn in Rr)Oe.event.remove(Pe,dn+De[en],qe,tr,!0);continue}for(Fn=Oe.event.special[dn]||{},dn=(tr?Fn.delegateType:Fn.bindType)||dn,un=Rr[dn]||[],$r=$r[2]&&new RegExp("(^|\\.)"+ai.join("\\.(?:.*\\.|)")+"(\\.|$)"),Br=fr=un.length;fr--;)cn=un[fr],(lr||vi===cn.origType)&&(!qe||qe.guid===cn.guid)&&(!$r||$r.test(cn.namespace))&&(!tr||tr===cn.selector||tr==="**"&&cn.selector)&&(un.splice(fr,1),cn.selector&&un.delegateCount--,Fn.remove&&Fn.remove.call(Pe,cn));Br&&!un.length&&((!Fn.teardown||Fn.teardown.call(Pe,ai,oi.handle)===!1)&&Oe.removeEvent(Pe,dn,oi.handle),delete Rr[dn])}Oe.isEmptyObject(Rr)&&Sr.remove(Pe,"handle events")}},dispatch:function(Pe){var De,qe,tr,lr,fr,Br,$r=new Array(arguments.length),Rr=Oe.event.fix(Pe),en=(Sr.get(this,"events")||Object.create(null))[Rr.type]||[],cn=Oe.event.special[Rr.type]||{};for($r[0]=Rr,De=1;De<arguments.length;De++)$r[De]=arguments[De];if(Rr.delegateTarget=this,!(cn.preDispatch&&cn.preDispatch.call(this,Rr)===!1)){for(Br=Oe.event.handlers.call(this,Rr,en),De=0;(lr=Br[De++])&&!Rr.isPropagationStopped();)for(Rr.currentTarget=lr.elem,qe=0;(fr=lr.handlers[qe++])&&!Rr.isImmediatePropagationStopped();)(!Rr.rnamespace||fr.namespace===!1||Rr.rnamespace.test(fr.namespace))&&(Rr.handleObj=fr,Rr.data=fr.data,tr=((Oe.event.special[fr.origType]||{}).handle||fr.handler).apply(lr.elem,$r),tr!==void 0&&(Rr.result=tr)===!1&&(Rr.preventDefault(),Rr.stopPropagation()));return cn.postDispatch&&cn.postDispatch.call(this,Rr),Rr.result}},handlers:function(Pe,De){var qe,tr,lr,fr,Br,$r=[],Rr=De.delegateCount,en=Pe.target;if(Rr&&en.nodeType&&!(Pe.type==="click"&&Pe.button>=1)){for(;en!==this;en=en.parentNode||this)if(en.nodeType===1&&!(Pe.type==="click"&&en.disabled===!0)){for(fr=[],Br={},qe=0;qe<Rr;qe++)tr=De[qe],lr=tr.selector+" ",Br[lr]===void 0&&(Br[lr]=tr.needsContext?Oe(lr,this).index(en)>-1:Oe.find(lr,this,null,[en]).length),Br[lr]&&fr.push(tr);fr.length&&$r.push({elem:en,handlers:fr})}}return en=this,Rr<De.length&&$r.push({elem:en,handlers:De.slice(Rr)}),$r},addProp:function(Pe,De){Object.defineProperty(Oe.Event.prototype,Pe,{enumerable:!0,configurable:!0,get:Ve(De)?function(){if(this.originalEvent)return De(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[Pe]},set:function(qe){Object.defineProperty(this,Pe,{enumerable:!0,configurable:!0,writable:!0,value:qe})}})},fix:function(Pe){return Pe[Oe.expando]?Pe:new Oe.Event(Pe)},special:{load:{noBubble:!0},click:{setup:function(Pe){var De=this||Pe;return wi.test(De.type)&&De.click&&Ar(De,"input")&&Bn(De,"click",mn),!1},trigger:function(Pe){var De=this||Pe;return wi.test(De.type)&&De.click&&Ar(De,"input")&&Bn(De,"click"),!0},_default:function(Pe){var De=Pe.target;return wi.test(De.type)&&De.click&&Ar(De,"input")&&Sr.get(De,"click")||Ar(De,"a")}},beforeunload:{postDispatch:function(Pe){Pe.result!==void 0&&Pe.originalEvent&&(Pe.originalEvent.returnValue=Pe.result)}}}};function Bn(Pe,De,qe){if(!qe){Sr.get(Pe,De)===void 0&&Oe.event.add(Pe,De,mn);return}Sr.set(Pe,De,!1),Oe.event.add(Pe,De,{namespace:!1,handler:function(tr){var lr,fr,Br=Sr.get(this,De);if(tr.isTrigger&1&&this[De]){if(Br.length)(Oe.event.special[De]||{}).delegateType&&tr.stopPropagation();else if(Br=_e.call(arguments),Sr.set(this,De,Br),lr=qe(this,De),this[De](),fr=Sr.get(this,De),Br!==fr||lr?Sr.set(this,De,!1):fr={},Br!==fr)return tr.stopImmediatePropagation(),tr.preventDefault(),fr&&fr.value}else Br.length&&(Sr.set(this,De,{value:Oe.event.trigger(Oe.extend(Br[0],Oe.Event.prototype),Br.slice(1),this)}),tr.stopImmediatePropagation())}})}Oe.removeEvent=function(Pe,De,qe){Pe.removeEventListener&&Pe.removeEventListener(De,qe)},Oe.Event=function(Pe,De){if(!(this instanceof Oe.Event))return new Oe.Event(Pe,De);Pe&&Pe.type?(this.originalEvent=Pe,this.type=Pe.type,this.isDefaultPrevented=Pe.defaultPrevented||Pe.defaultPrevented===void 0&&Pe.returnValue===!1?mn:Ln,this.target=Pe.target&&Pe.target.nodeType===3?Pe.target.parentNode:Pe.target,this.currentTarget=Pe.currentTarget,this.relatedTarget=Pe.relatedTarget):this.type=Pe,De&&Oe.extend(this,De),this.timeStamp=Pe&&Pe.timeStamp||Date.now(),this[Oe.expando]=!0},Oe.Event.prototype={constructor:Oe.Event,isDefaultPrevented:Ln,isPropagationStopped:Ln,isImmediatePropagationStopped:Ln,isSimulated:!1,preventDefault:function(){var Pe=this.originalEvent;this.isDefaultPrevented=mn,Pe&&!this.isSimulated&&Pe.preventDefault()},stopPropagation:function(){var Pe=this.originalEvent;this.isPropagationStopped=mn,Pe&&!this.isSimulated&&Pe.stopPropagation()},stopImmediatePropagation:function(){var Pe=this.originalEvent;this.isImmediatePropagationStopped=mn,Pe&&!this.isSimulated&&Pe.stopImmediatePropagation(),this.stopPropagation()}},Oe.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},Oe.event.addProp),Oe.each({focus:"focusin",blur:"focusout"},function(Pe,De){Oe.event.special[Pe]={setup:function(){return Bn(this,Pe,We),!1},trigger:function(){return Bn(this,Pe),!0},_default:function(){return!0},delegateType:De}}),Oe.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(Pe,De){Oe.event.special[Pe]={delegateType:De,bindType:De,handle:function(qe){var tr,lr=this,fr=qe.relatedTarget,Br=qe.handleObj;return(!fr||fr!==lr&&!Oe.contains(lr,fr))&&(qe.type=Br.origType,tr=Br.handler.apply(this,arguments),qe.type=De),tr}}}),Oe.fn.extend({on:function(Pe,De,qe,tr){return Wr(this,Pe,De,qe,tr)},one:function(Pe,De,qe,tr){return Wr(this,Pe,De,qe,tr,1)},off:function(Pe,De,qe){var tr,lr;if(Pe&&Pe.preventDefault&&Pe.handleObj)return tr=Pe.handleObj,Oe(Pe.delegateTarget).off(tr.namespace?tr.origType+"."+tr.namespace:tr.origType,tr.selector,tr.handler),this;if(typeof Pe=="object"){for(lr in Pe)this.off(lr,De,Pe[lr]);return this}return(De===!1||typeof De=="function")&&(qe=De,De=void 0),qe===!1&&(qe=Ln),this.each(function(){Oe.event.remove(this,Pe,qe,De)})}});var Jn=/<script|<style|<link/i,pi=/checked\s*(?:[^=]|=\s*.checked.)/i,Mn=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Fi(Pe,De){return Ar(Pe,"table")&&Ar(De.nodeType!==11?De:De.firstChild,"tr")&&Oe(Pe).children("tbody")[0]||Pe}function Ui(Pe){return Pe.type=(Pe.getAttribute("type")!==null)+"/"+Pe.type,Pe}function Ki(Pe){return(Pe.type||"").slice(0,5)==="true/"?Pe.type=Pe.type.slice(5):Pe.removeAttribute("type"),Pe}function Gi(Pe,De){var qe,tr,lr,fr,Br,$r,Rr;if(De.nodeType===1){if(Sr.hasData(Pe)&&(fr=Sr.get(Pe),Rr=fr.events,Rr)){Sr.remove(De,"handle events");for(lr in Rr)for(qe=0,tr=Rr[lr].length;qe<tr;qe++)Oe.event.add(De,lr,Rr[lr][qe])}ti.hasData(Pe)&&(Br=ti.access(Pe),$r=Oe.extend({},Br),ti.set(De,$r))}}function Ii(Pe,De){var qe=De.nodeName.toLowerCase();qe==="input"&&wi.test(Pe.type)?De.checked=Pe.checked:(qe==="input"||qe==="textarea")&&(De.defaultValue=Pe.defaultValue)}function Yi(Pe,De,qe,tr){De=Te(De);var lr,fr,Br,$r,Rr,en,cn=0,Fn=Pe.length,un=Fn-1,dn=De[0],ai=Ve(dn);if(ai||Fn>1&&typeof dn=="string"&&!ze.checkClone&&pi.test(dn))return Pe.each(function(vi){var oi=Pe.eq(vi);ai&&(De[0]=dn.call(this,vi,oi.html())),Yi(oi,De,qe,tr)});if(Fn&&(lr=qr(De,Pe[0].ownerDocument,!1,Pe,tr),fr=lr.firstChild,lr.childNodes.length===1&&(lr=fr),fr||tr)){for(Br=Oe.map(sr(lr,"script"),Ui),$r=Br.length;cn<Fn;cn++)Rr=lr,cn!==un&&(Rr=Oe.clone(Rr,!0,!0),$r&&Oe.merge(Br,sr(Rr,"script"))),qe.call(Pe[cn],Rr,cn);if($r)for(en=Br[Br.length-1].ownerDocument,Oe.map(Br,Ki),cn=0;cn<$r;cn++)Rr=Br[cn],Ke.test(Rr.type||"")&&!Sr.access(Rr,"globalEval")&&Oe.contains(en,Rr)&&(Rr.src&&(Rr.type||"").toLowerCase()!=="module"?Oe._evalUrl&&!Rr.noModule&&Oe._evalUrl(Rr.src,{nonce:Rr.nonce||Rr.getAttribute("nonce")},en):cr(Rr.textContent.replace(Mn,""),Rr,en))}return Pe}function to(Pe,De,qe){for(var tr,lr=De?Oe.filter(De,Pe):Pe,fr=0;(tr=lr[fr])!=null;fr++)!qe&&tr.nodeType===1&&Oe.cleanData(sr(tr)),tr.parentNode&&(qe&&ui(tr)&&dr(sr(tr,"script")),tr.parentNode.removeChild(tr));return Pe}Oe.extend({htmlPrefilter:function(Pe){return Pe},clone:function(Pe,De,qe){var tr,lr,fr,Br,$r=Pe.cloneNode(!0),Rr=ui(Pe);if(!ze.noCloneChecked&&(Pe.nodeType===1||Pe.nodeType===11)&&!Oe.isXMLDoc(Pe))for(Br=sr($r),fr=sr(Pe),tr=0,lr=fr.length;tr<lr;tr++)Ii(fr[tr],Br[tr]);if(De)if(qe)for(fr=fr||sr(Pe),Br=Br||sr($r),tr=0,lr=fr.length;tr<lr;tr++)Gi(fr[tr],Br[tr]);else Gi(Pe,$r);return Br=sr($r,"script"),Br.length>0&&dr(Br,!Rr&&sr(Pe,"script")),$r},cleanData:function(Pe){for(var De,qe,tr,lr=Oe.event.special,fr=0;(qe=Pe[fr])!==void 0;fr++)if(Xn(qe)){if(De=qe[Sr.expando]){if(De.events)for(tr in De.events)lr[tr]?Oe.event.remove(qe,tr):Oe.removeEvent(qe,tr,De.handle);qe[Sr.expando]=void 0}qe[ti.expando]&&(qe[ti.expando]=void 0)}}}),Oe.fn.extend({detach:function(Pe){return to(this,Pe,!0)},remove:function(Pe){return to(this,Pe)},text:function(Pe){return Jr(this,function(De){return De===void 0?Oe.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=De)})},null,Pe,arguments.length)},append:function(){return Yi(this,arguments,function(Pe){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var De=Fi(this,Pe);De.appendChild(Pe)}})},prepend:function(){return Yi(this,arguments,function(Pe){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var De=Fi(this,Pe);De.insertBefore(Pe,De.firstChild)}})},before:function(){return Yi(this,arguments,function(Pe){this.parentNode&&this.parentNode.insertBefore(Pe,this)})},after:function(){return Yi(this,arguments,function(Pe){this.parentNode&&this.parentNode.insertBefore(Pe,this.nextSibling)})},empty:function(){for(var Pe,De=0;(Pe=this[De])!=null;De++)Pe.nodeType===1&&(Oe.cleanData(sr(Pe,!1)),Pe.textContent="");return this},clone:function(Pe,De){return Pe=Pe??!1,De=De??Pe,this.map(function(){return Oe.clone(this,Pe,De)})},html:function(Pe){return Jr(this,function(De){var qe=this[0]||{},tr=0,lr=this.length;if(De===void 0&&qe.nodeType===1)return qe.innerHTML;if(typeof De=="string"&&!Jn.test(De)&&!je[(br.exec(De)||["",""])[1].toLowerCase()]){De=Oe.htmlPrefilter(De);try{for(;tr<lr;tr++)qe=this[tr]||{},qe.nodeType===1&&(Oe.cleanData(sr(qe,!1)),qe.innerHTML=De);qe=0}catch{}}qe&&this.empty().append(De)},null,Pe,arguments.length)},replaceWith:function(){var Pe=[];return Yi(this,arguments,function(De){var qe=this.parentNode;Oe.inArray(this,Pe)<0&&(Oe.cleanData(sr(this)),qe&&qe.replaceChild(De,this))},Pe)}}),Oe.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(Pe,De){Oe.fn[Pe]=function(qe){for(var tr,lr=[],fr=Oe(qe),Br=fr.length-1,$r=0;$r<=Br;$r++)tr=$r===Br?this:this.clone(!0),Oe(fr[$r])[De](tr),Se.apply(lr,tr.get());return this.pushStack(lr)}});var PA=new RegExp("^("+$n+")(?!px)[a-z%]+$","i"),pA=function(Pe){var De=Pe.ownerDocument.defaultView;return(!De||!De.opener)&&(De=St),De.getComputedStyle(Pe)},sA=function(Pe,De,qe){var tr,lr,fr={};for(lr in De)fr[lr]=Pe.style[lr],Pe.style[lr]=De[lr];tr=qe.call(Pe);for(lr in De)Pe.style[lr]=fr[lr];return tr},rA=new RegExp(Gn.join("|"),"i");(function(){function Pe(){if(en){Rr.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",en.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ii.appendChild(Rr).appendChild(en);var cn=St.getComputedStyle(en);qe=cn.top!=="1%",$r=De(cn.marginLeft)===12,en.style.right="60%",fr=De(cn.right)===36,tr=De(cn.width)===36,en.style.position="absolute",lr=De(en.offsetWidth/3)===12,ii.removeChild(Rr),en=null}}function De(cn){return Math.round(parseFloat(cn))}var qe,tr,lr,fr,Br,$r,Rr=Ze.createElement("div"),en=Ze.createElement("div");en.style&&(en.style.backgroundClip="content-box",en.cloneNode(!0).style.backgroundClip="",ze.clearCloneStyle=en.style.backgroundClip==="content-box",Oe.extend(ze,{boxSizingReliable:function(){return Pe(),tr},pixelBoxStyles:function(){return Pe(),fr},pixelPosition:function(){return Pe(),qe},reliableMarginLeft:function(){return Pe(),$r},scrollboxSize:function(){return Pe(),lr},reliableTrDimensions:function(){var cn,Fn,un,dn;return Br==null&&(cn=Ze.createElement("table"),Fn=Ze.createElement("tr"),un=Ze.createElement("div"),cn.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Fn.style.cssText="border:1px solid",Fn.style.height="1px",un.style.height="9px",un.style.display="block",ii.appendChild(cn).appendChild(Fn).appendChild(un),dn=St.getComputedStyle(Fn),Br=parseInt(dn.height,10)+parseInt(dn.borderTopWidth,10)+parseInt(dn.borderBottomWidth,10)===Fn.offsetHeight,ii.removeChild(cn)),Br}}))})();function dA(Pe,De,qe){var tr,lr,fr,Br,$r=Pe.style;return qe=qe||pA(Pe),qe&&(Br=qe.getPropertyValue(De)||qe[De],Br===""&&!ui(Pe)&&(Br=Oe.style(Pe,De)),!ze.pixelBoxStyles()&&PA.test(Br)&&rA.test(De)&&(tr=$r.width,lr=$r.minWidth,fr=$r.maxWidth,$r.minWidth=$r.maxWidth=$r.width=Br,Br=qe.width,$r.width=tr,$r.minWidth=lr,$r.maxWidth=fr)),Br!==void 0?Br+"":Br}function vA(Pe,De){return{get:function(){if(Pe()){delete this.get;return}return(this.get=De).apply(this,arguments)}}}var OA=["Webkit","Moz","ms"],WA=Ze.createElement("div").style,lo={};function ei(Pe){for(var De=Pe[0].toUpperCase()+Pe.slice(1),qe=OA.length;qe--;)if(Pe=OA[qe]+De,Pe in WA)return Pe}function Kr(Pe){var De=Oe.cssProps[Pe]||lo[Pe];return De||(Pe in WA?Pe:lo[Pe]=ei(Pe)||Pe)}var Un=/^(none|table(?!-c[ea]).+)/,Vn=/^--/,Pi={position:"absolute",visibility:"hidden",display:"block"},aA={letterSpacing:"0",fontWeight:"400"};function qi(Pe,De,qe){var tr=zn.exec(De);return tr?Math.max(0,tr[2]-(qe||0))+(tr[3]||"px"):De}function zi(Pe,De,qe,tr,lr,fr){var Br=De==="width"?1:0,$r=0,Rr=0;if(qe===(tr?"border":"content"))return 0;for(;Br<4;Br+=2)qe==="margin"&&(Rr+=Oe.css(Pe,qe+Gn[Br],!0,lr)),tr?(qe==="content"&&(Rr-=Oe.css(Pe,"padding"+Gn[Br],!0,lr)),qe!=="margin"&&(Rr-=Oe.css(Pe,"border"+Gn[Br]+"Width",!0,lr))):(Rr+=Oe.css(Pe,"padding"+Gn[Br],!0,lr),qe!=="padding"?Rr+=Oe.css(Pe,"border"+Gn[Br]+"Width",!0,lr):$r+=Oe.css(Pe,"border"+Gn[Br]+"Width",!0,lr));return!tr&&fr>=0&&(Rr+=Math.max(0,Math.ceil(Pe["offset"+De[0].toUpperCase()+De.slice(1)]-fr-Rr-$r-.5))||0),Rr}function VA(Pe,De,qe){var tr=pA(Pe),lr=!ze.boxSizingReliable()||qe,fr=lr&&Oe.css(Pe,"boxSizing",!1,tr)==="border-box",Br=fr,$r=dA(Pe,De,tr),Rr="offset"+De[0].toUpperCase()+De.slice(1);if(PA.test($r)){if(!qe)return $r;$r="auto"}return(!ze.boxSizingReliable()&&fr||!ze.reliableTrDimensions()&&Ar(Pe,"tr")||$r==="auto"||!parseFloat($r)&&Oe.css(Pe,"display",!1,tr)==="inline")&&Pe.getClientRects().length&&(fr=Oe.css(Pe,"boxSizing",!1,tr)==="border-box",Br=Rr in Pe,Br&&($r=Pe[Rr])),$r=parseFloat($r)||0,$r+zi(Pe,De,qe||(fr?"border":"content"),Br,tr,$r)+"px"}Oe.extend({cssHooks:{opacity:{get:function(Pe,De){if(De){var qe=dA(Pe,"opacity");return qe===""?"1":qe}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(Pe,De,qe,tr){if(!(!Pe||Pe.nodeType===3||Pe.nodeType===8||!Pe.style)){var lr,fr,Br,$r=In(De),Rr=Vn.test(De),en=Pe.style;if(Rr||(De=Kr($r)),Br=Oe.cssHooks[De]||Oe.cssHooks[$r],qe!==void 0){if(fr=typeof qe,fr==="string"&&(lr=zn.exec(qe))&&lr[1]&&(qe=Ai(Pe,De,lr),fr="number"),qe==null||qe!==qe)return;fr==="number"&&!Rr&&(qe+=lr&&lr[3]||(Oe.cssNumber[$r]?"":"px")),!ze.clearCloneStyle&&qe===""&&De.indexOf("background")===0&&(en[De]="inherit"),(!Br||!("set"in Br)||(qe=Br.set(Pe,qe,tr))!==void 0)&&(Rr?en.setProperty(De,qe):en[De]=qe)}else return Br&&"get"in Br&&(lr=Br.get(Pe,!1,tr))!==void 0?lr:en[De]}},css:function(Pe,De,qe,tr){var lr,fr,Br,$r=In(De),Rr=Vn.test(De);return Rr||(De=Kr($r)),Br=Oe.cssHooks[De]||Oe.cssHooks[$r],Br&&"get"in Br&&(lr=Br.get(Pe,!0,qe)),lr===void 0&&(lr=dA(Pe,De,tr)),lr==="normal"&&De in aA&&(lr=aA[De]),qe===""||qe?(fr=parseFloat(lr),qe===!0||isFinite(fr)?fr||0:lr):lr}}),Oe.each(["height","width"],function(Pe,De){Oe.cssHooks[De]={get:function(qe,tr,lr){if(tr)return Un.test(Oe.css(qe,"display"))&&(!qe.getClientRects().length||!qe.getBoundingClientRect().width)?sA(qe,Pi,function(){return VA(qe,De,lr)}):VA(qe,De,lr)},set:function(qe,tr,lr){var fr,Br=pA(qe),$r=!ze.scrollboxSize()&&Br.position==="absolute",Rr=$r||lr,en=Rr&&Oe.css(qe,"boxSizing",!1,Br)==="border-box",cn=lr?zi(qe,De,lr,en,Br):0;return en&&$r&&(cn-=Math.ceil(qe["offset"+De[0].toUpperCase()+De.slice(1)]-parseFloat(Br[De])-zi(qe,De,"border",!1,Br)-.5)),cn&&(fr=zn.exec(tr))&&(fr[3]||"px")!=="px"&&(qe.style[De]=tr,tr=Oe.css(qe,De)),qi(qe,tr,cn)}}}),Oe.cssHooks.marginLeft=vA(ze.reliableMarginLeft,function(Pe,De){if(De)return(parseFloat(dA(Pe,"marginLeft"))||Pe.getBoundingClientRect().left-sA(Pe,{marginLeft:0},function(){return Pe.getBoundingClientRect().left}))+"px"}),Oe.each({margin:"",padding:"",border:"Width"},function(Pe,De){Oe.cssHooks[Pe+De]={expand:function(qe){for(var tr=0,lr={},fr=typeof qe=="string"?qe.split(" "):[qe];tr<4;tr++)lr[Pe+Gn[tr]+De]=fr[tr]||fr[tr-2]||fr[0];return lr}},Pe!=="margin"&&(Oe.cssHooks[Pe+De].set=qi)}),Oe.fn.extend({css:function(Pe,De){return Jr(this,function(qe,tr,lr){var fr,Br,$r={},Rr=0;if(Array.isArray(tr)){for(fr=pA(qe),Br=tr.length;Rr<Br;Rr++)$r[tr[Rr]]=Oe.css(qe,tr[Rr],!1,fr);return $r}return lr!==void 0?Oe.style(qe,tr,lr):Oe.css(qe,tr)},Pe,De,arguments.length>1)}});function Ti(Pe,De,qe,tr,lr){return new Ti.prototype.init(Pe,De,qe,tr,lr)}Oe.Tween=Ti,Ti.prototype={constructor:Ti,init:function(Pe,De,qe,tr,lr,fr){this.elem=Pe,this.prop=qe,this.easing=lr||Oe.easing._default,this.options=De,this.start=this.now=this.cur(),this.end=tr,this.unit=fr||(Oe.cssNumber[qe]?"":"px")},cur:function(){var Pe=Ti.propHooks[this.prop];return Pe&&Pe.get?Pe.get(this):Ti.propHooks._default.get(this)},run:function(Pe){var De,qe=Ti.propHooks[this.prop];return this.options.duration?this.pos=De=Oe.easing[this.easing](Pe,this.options.duration*Pe,0,1,this.options.duration):this.pos=De=Pe,this.now=(this.end-this.start)*De+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),qe&&qe.set?qe.set(this):Ti.propHooks._default.set(this),this}},Ti.prototype.init.prototype=Ti.prototype,Ti.propHooks={_default:{get:function(Pe){var De;return Pe.elem.nodeType!==1||Pe.elem[Pe.prop]!=null&&Pe.elem.style[Pe.prop]==null?Pe.elem[Pe.prop]:(De=Oe.css(Pe.elem,Pe.prop,""),!De||De==="auto"?0:De)},set:function(Pe){Oe.fx.step[Pe.prop]?Oe.fx.step[Pe.prop](Pe):Pe.elem.nodeType===1&&(Oe.cssHooks[Pe.prop]||Pe.elem.style[Kr(Pe.prop)]!=null)?Oe.style(Pe.elem,Pe.prop,Pe.now+Pe.unit):Pe.elem[Pe.prop]=Pe.now}}},Ti.propHooks.scrollTop=Ti.propHooks.scrollLeft={set:function(Pe){Pe.elem.nodeType&&Pe.elem.parentNode&&(Pe.elem[Pe.prop]=Pe.now)}},Oe.easing={linear:function(Pe){return Pe},swing:function(Pe){return .5-Math.cos(Pe*Math.PI)/2},_default:"swing"},Oe.fx=Ti.prototype.init,Oe.fx.step={};var KA,eo,da=/^(?:toggle|show|hide)$/,$o=/queueHooks$/;function ta(){eo&&(Ze.hidden===!1&&St.requestAnimationFrame?St.requestAnimationFrame(ta):St.setTimeout(ta,Oe.fx.interval),Oe.fx.tick())}function eA(){return St.setTimeout(function(){KA=void 0}),KA=Date.now()}function _o(Pe,De){var qe,tr=0,lr={height:Pe};for(De=De?1:0;tr<4;tr+=2-De)qe=Gn[tr],lr["margin"+qe]=lr["padding"+qe]=Pe;return De&&(lr.opacity=lr.width=Pe),lr}function ea(Pe,De,qe){for(var tr,lr=(DA.tweeners[De]||[]).concat(DA.tweeners["*"]),fr=0,Br=lr.length;fr<Br;fr++)if(tr=lr[fr].call(qe,De,Pe))return tr}function ga(Pe,De,qe){var tr,lr,fr,Br,$r,Rr,en,cn,Fn="width"in De||"height"in De,un=this,dn={},ai=Pe.style,vi=Pe.nodeType&&yi(Pe),oi=Sr.get(Pe,"fxshow");qe.queue||(Br=Oe._queueHooks(Pe,"fx"),Br.unqueued==null&&(Br.unqueued=0,$r=Br.empty.fire,Br.empty.fire=function(){Br.unqueued||$r()}),Br.unqueued++,un.always(function(){un.always(function(){Br.unqueued--,Oe.queue(Pe,"fx").length||Br.empty.fire()})}));for(tr in De)if(lr=De[tr],da.test(lr)){if(delete De[tr],fr=fr||lr==="toggle",lr===(vi?"hide":"show"))if(lr==="show"&&oi&&oi[tr]!==void 0)vi=!0;else continue;dn[tr]=oi&&oi[tr]||Oe.style(Pe,tr)}if(Rr=!Oe.isEmptyObject(De),!(!Rr&&Oe.isEmptyObject(dn))){Fn&&Pe.nodeType===1&&(qe.overflow=[ai.overflow,ai.overflowX,ai.overflowY],en=oi&&oi.display,en==null&&(en=Sr.get(Pe,"display")),cn=Oe.css(Pe,"display"),cn==="none"&&(en?cn=en:(Oi([Pe],!0),en=Pe.style.display||en,cn=Oe.css(Pe,"display"),Oi([Pe]))),(cn==="inline"||cn==="inline-block"&&en!=null)&&Oe.css(Pe,"float")==="none"&&(Rr||(un.done(function(){ai.display=en}),en==null&&(cn=ai.display,en=cn==="none"?"":cn)),ai.display="inline-block")),qe.overflow&&(ai.overflow="hidden",un.always(function(){ai.overflow=qe.overflow[0],ai.overflowX=qe.overflow[1],ai.overflowY=qe.overflow[2]})),Rr=!1;for(tr in dn)Rr||(oi?"hidden"in oi&&(vi=oi.hidden):oi=Sr.access(Pe,"fxshow",{display:en}),fr&&(oi.hidden=!vi),vi&&Oi([Pe],!0),un.done(function(){vi||Oi([Pe]),Sr.remove(Pe,"fxshow");for(tr in dn)Oe.style(Pe,tr,dn[tr])})),Rr=ea(vi?oi[tr]:0,tr,un),tr in oi||(oi[tr]=Rr.start,vi&&(Rr.end=Rr.start,Rr.start=0))}}function ra(Pe,De){var qe,tr,lr,fr,Br;for(qe in Pe)if(tr=In(qe),lr=De[tr],fr=Pe[qe],Array.isArray(fr)&&(lr=fr[1],fr=Pe[qe]=fr[0]),qe!==tr&&(Pe[tr]=fr,delete Pe[qe]),Br=Oe.cssHooks[tr],Br&&"expand"in Br){fr=Br.expand(fr),delete Pe[tr];for(qe in fr)qe in Pe||(Pe[qe]=fr[qe],De[qe]=lr)}else De[tr]=lr}function DA(Pe,De,qe){var tr,lr,fr=0,Br=DA.prefilters.length,$r=Oe.Deferred().always(function(){delete Rr.elem}),Rr=function(){if(lr)return!1;for(var Fn=KA||eA(),un=Math.max(0,en.startTime+en.duration-Fn),dn=un/en.duration||0,ai=1-dn,vi=0,oi=en.tweens.length;vi<oi;vi++)en.tweens[vi].run(ai);return $r.notifyWith(Pe,[en,ai,un]),ai<1&&oi?un:(oi||$r.notifyWith(Pe,[en,1,0]),$r.resolveWith(Pe,[en]),!1)},en=$r.promise({elem:Pe,props:Oe.extend({},De),opts:Oe.extend(!0,{specialEasing:{},easing:Oe.easing._default},qe),originalProperties:De,originalOptions:qe,startTime:KA||eA(),duration:qe.duration,tweens:[],createTween:function(Fn,un){var dn=Oe.Tween(Pe,en.opts,Fn,un,en.opts.specialEasing[Fn]||en.opts.easing);return en.tweens.push(dn),dn},stop:function(Fn){var un=0,dn=Fn?en.tweens.length:0;if(lr)return this;for(lr=!0;un<dn;un++)en.tweens[un].run(1);return Fn?($r.notifyWith(Pe,[en,1,0]),$r.resolveWith(Pe,[en,Fn])):$r.rejectWith(Pe,[en,Fn]),this}}),cn=en.props;for(ra(cn,en.opts.specialEasing);fr<Br;fr++)if(tr=DA.prefilters[fr].call(en,Pe,cn,en.opts),tr)return Ve(tr.stop)&&(Oe._queueHooks(en.elem,en.opts.queue).stop=tr.stop.bind(tr)),tr;return Oe.map(cn,ea,en),Ve(en.opts.start)&&en.opts.start.call(Pe,en),en.progress(en.opts.progress).done(en.opts.done,en.opts.complete).fail(en.opts.fail).always(en.opts.always),Oe.fx.timer(Oe.extend(Rr,{elem:Pe,anim:en,queue:en.opts.queue})),en}Oe.Animation=Oe.extend(DA,{tweeners:{"*":[function(Pe,De){var qe=this.createTween(Pe,De);return Ai(qe.elem,Pe,zn.exec(De),qe),qe}]},tweener:function(Pe,De){Ve(Pe)?(De=Pe,Pe=["*"]):Pe=Pe.match(sn);for(var qe,tr=0,lr=Pe.length;tr<lr;tr++)qe=Pe[tr],DA.tweeners[qe]=DA.tweeners[qe]||[],DA.tweeners[qe].unshift(De)},prefilters:[ga],prefilter:function(Pe,De){De?DA.prefilters.unshift(Pe):DA.prefilters.push(Pe)}}),Oe.speed=function(Pe,De,qe){var tr=Pe&&typeof Pe=="object"?Oe.extend({},Pe):{complete:qe||!qe&&De||Ve(Pe)&&Pe,duration:Pe,easing:qe&&De||De&&!Ve(De)&&De};return Oe.fx.off?tr.duration=0:typeof tr.duration!="number"&&(tr.duration in Oe.fx.speeds?tr.duration=Oe.fx.speeds[tr.duration]:tr.duration=Oe.fx.speeds._default),(tr.queue==null||tr.queue===!0)&&(tr.queue="fx"),tr.old=tr.complete,tr.complete=function(){Ve(tr.old)&&tr.old.call(this),tr.queue&&Oe.dequeue(this,tr.queue)},tr},Oe.fn.extend({fadeTo:function(Pe,De,qe,tr){return this.filter(yi).css("opacity",0).show().end().animate({opacity:De},Pe,qe,tr)},animate:function(Pe,De,qe,tr){var lr=Oe.isEmptyObject(Pe),fr=Oe.speed(De,qe,tr),Br=function(){var $r=DA(this,Oe.extend({},Pe),fr);(lr||Sr.get(this,"finish"))&&$r.stop(!0)};return Br.finish=Br,lr||fr.queue===!1?this.each(Br):this.queue(fr.queue,Br)},stop:function(Pe,De,qe){var tr=function(lr){var fr=lr.stop;delete lr.stop,fr(qe)};return typeof Pe!="string"&&(qe=De,De=Pe,Pe=void 0),De&&this.queue(Pe||"fx",[]),this.each(function(){var lr=!0,fr=Pe!=null&&Pe+"queueHooks",Br=Oe.timers,$r=Sr.get(this);if(fr)$r[fr]&&$r[fr].stop&&tr($r[fr]);else for(fr in $r)$r[fr]&&$r[fr].stop&&$o.test(fr)&&tr($r[fr]);for(fr=Br.length;fr--;)Br[fr].elem===this&&(Pe==null||Br[fr].queue===Pe)&&(Br[fr].anim.stop(qe),lr=!1,Br.splice(fr,1));(lr||!qe)&&Oe.dequeue(this,Pe)})},finish:function(Pe){return Pe!==!1&&(Pe=Pe||"fx"),this.each(function(){var De,qe=Sr.get(this),tr=qe[Pe+"queue"],lr=qe[Pe+"queueHooks"],fr=Oe.timers,Br=tr?tr.length:0;for(qe.finish=!0,Oe.queue(this,Pe,[]),lr&&lr.stop&&lr.stop.call(this,!0),De=fr.length;De--;)fr[De].elem===this&&fr[De].queue===Pe&&(fr[De].anim.stop(!0),fr.splice(De,1));for(De=0;De<Br;De++)tr[De]&&tr[De].finish&&tr[De].finish.call(this);delete qe.finish})}}),Oe.each(["toggle","show","hide"],function(Pe,De){var qe=Oe.fn[De];Oe.fn[De]=function(tr,lr,fr){return tr==null||typeof tr=="boolean"?qe.apply(this,arguments):this.animate(_o(De,!0),tr,lr,fr)}}),Oe.each({slideDown:_o("show"),slideUp:_o("hide"),slideToggle:_o("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(Pe,De){Oe.fn[Pe]=function(qe,tr,lr){return this.animate(De,qe,tr,lr)}}),Oe.timers=[],Oe.fx.tick=function(){var Pe,De=0,qe=Oe.timers;for(KA=Date.now();De<qe.length;De++)Pe=qe[De],!Pe()&&qe[De]===Pe&&qe.splice(De--,1);qe.length||Oe.fx.stop(),KA=void 0},Oe.fx.timer=function(Pe){Oe.timers.push(Pe),Oe.fx.start()},Oe.fx.interval=13,Oe.fx.start=function(){eo||(eo=!0,ta())},Oe.fx.stop=function(){eo=null},Oe.fx.speeds={slow:600,fast:200,_default:400},Oe.fn.delay=function(Pe,De){return Pe=Oe.fx&&Oe.fx.speeds[Pe]||Pe,De=De||"fx",this.queue(De,function(qe,tr){var lr=St.setTimeout(qe,Pe);tr.stop=function(){St.clearTimeout(lr)}})},function(){var Pe=Ze.createElement("input"),De=Ze.createElement("select"),qe=De.appendChild(Ze.createElement("option"));Pe.type="checkbox",ze.checkOn=Pe.value!=="",ze.optSelected=qe.selected,Pe=Ze.createElement("input"),Pe.value="t",Pe.type="radio",ze.radioValue=Pe.value==="t"}();var jA,ro=Oe.expr.attrHandle;Oe.fn.extend({attr:function(Pe,De){return Jr(this,Oe.attr,Pe,De,arguments.length>1)},removeAttr:function(Pe){return this.each(function(){Oe.removeAttr(this,Pe)})}}),Oe.extend({attr:function(Pe,De,qe){var tr,lr,fr=Pe.nodeType;if(!(fr===3||fr===8||fr===2)){if(typeof Pe.getAttribute>"u")return Oe.prop(Pe,De,qe);if((fr!==1||!Oe.isXMLDoc(Pe))&&(lr=Oe.attrHooks[De.toLowerCase()]||(Oe.expr.match.bool.test(De)?jA:void 0)),qe!==void 0){if(qe===null){Oe.removeAttr(Pe,De);return}return lr&&"set"in lr&&(tr=lr.set(Pe,qe,De))!==void 0?tr:(Pe.setAttribute(De,qe+""),qe)}return lr&&"get"in lr&&(tr=lr.get(Pe,De))!==null?tr:(tr=Oe.find.attr(Pe,De),tr??void 0)}},attrHooks:{type:{set:function(Pe,De){if(!ze.radioValue&&De==="radio"&&Ar(Pe,"input")){var qe=Pe.value;return Pe.setAttribute("type",De),qe&&(Pe.value=qe),De}}}},removeAttr:function(Pe,De){var qe,tr=0,lr=De&&De.match(sn);if(lr&&Pe.nodeType===1)for(;qe=lr[tr++];)Pe.removeAttribute(qe)}}),jA={set:function(Pe,De,qe){return De===!1?Oe.removeAttr(Pe,qe):Pe.setAttribute(qe,qe),qe}},Oe.each(Oe.expr.match.bool.source.match(/\w+/g),function(Pe,De){var qe=ro[De]||Oe.find.attr;ro[De]=function(tr,lr,fr){var Br,$r,Rr=lr.toLowerCase();return fr||($r=ro[Rr],ro[Rr]=Br,Br=qe(tr,lr,fr)!=null?Rr:null,ro[Rr]=$r),Br}});var UA=/^(?:input|select|textarea|button)$/i,na=/^(?:a|area)$/i;Oe.fn.extend({prop:function(Pe,De){return Jr(this,Oe.prop,Pe,De,arguments.length>1)},removeProp:function(Pe){return this.each(function(){delete this[Oe.propFix[Pe]||Pe]})}}),Oe.extend({prop:function(Pe,De,qe){var tr,lr,fr=Pe.nodeType;if(!(fr===3||fr===8||fr===2))return(fr!==1||!Oe.isXMLDoc(Pe))&&(De=Oe.propFix[De]||De,lr=Oe.propHooks[De]),qe!==void 0?lr&&"set"in lr&&(tr=lr.set(Pe,qe,De))!==void 0?tr:Pe[De]=qe:lr&&"get"in lr&&(tr=lr.get(Pe,De))!==null?tr:Pe[De]},propHooks:{tabIndex:{get:function(Pe){var De=Oe.find.attr(Pe,"tabindex");return De?parseInt(De,10):UA.test(Pe.nodeName)||na.test(Pe.nodeName)&&Pe.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ze.optSelected||(Oe.propHooks.selected={get:function(Pe){var De=Pe.parentNode;return De&&De.parentNode&&De.parentNode.selectedIndex,null},set:function(Pe){var De=Pe.parentNode;De&&(De.selectedIndex,De.parentNode&&De.parentNode.selectedIndex)}}),Oe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Oe.propFix[this.toLowerCase()]=this});function no(Pe){var De=Pe.match(sn)||[];return De.join(" ")}function uo(Pe){return Pe.getAttribute&&Pe.getAttribute("class")||""}function Ro(Pe){return Array.isArray(Pe)?Pe:typeof Pe=="string"?Pe.match(sn)||[]:[]}Oe.fn.extend({addClass:function(Pe){var De,qe,tr,lr,fr,Br,$r,Rr=0;if(Ve(Pe))return this.each(function(en){Oe(this).addClass(Pe.call(this,en,uo(this)))});if(De=Ro(Pe),De.length){for(;qe=this[Rr++];)if(lr=uo(qe),tr=qe.nodeType===1&&" "+no(lr)+" ",tr){for(Br=0;fr=De[Br++];)tr.indexOf(" "+fr+" ")<0&&(tr+=fr+" ");$r=no(tr),lr!==$r&&qe.setAttribute("class",$r)}}return this},removeClass:function(Pe){var De,qe,tr,lr,fr,Br,$r,Rr=0;if(Ve(Pe))return this.each(function(en){Oe(this).removeClass(Pe.call(this,en,uo(this)))});if(!arguments.length)return this.attr("class","");if(De=Ro(Pe),De.length){for(;qe=this[Rr++];)if(lr=uo(qe),tr=qe.nodeType===1&&" "+no(lr)+" ",tr){for(Br=0;fr=De[Br++];)for(;tr.indexOf(" "+fr+" ")>-1;)tr=tr.replace(" "+fr+" "," ");$r=no(tr),lr!==$r&&qe.setAttribute("class",$r)}}return this},toggleClass:function(Pe,De){var qe=typeof Pe,tr=qe==="string"||Array.isArray(Pe);return typeof De=="boolean"&&tr?De?this.addClass(Pe):this.removeClass(Pe):Ve(Pe)?this.each(function(lr){Oe(this).toggleClass(Pe.call(this,lr,uo(this),De),De)}):this.each(function(){var lr,fr,Br,$r;if(tr)for(fr=0,Br=Oe(this),$r=Ro(Pe);lr=$r[fr++];)Br.hasClass(lr)?Br.removeClass(lr):Br.addClass(lr);else(Pe===void 0||qe==="boolean")&&(lr=uo(this),lr&&Sr.set(this,"__className__",lr),this.setAttribute&&this.setAttribute("class",lr||Pe===!1?"":Sr.get(this,"__className__")||""))})},hasClass:function(Pe){var De,qe,tr=0;for(De=" "+Pe+" ";qe=this[tr++];)if(qe.nodeType===1&&(" "+no(uo(qe))+" ").indexOf(De)>-1)return!0;return!1}});var Ua=/\r/g;Oe.fn.extend({val:function(Pe){var De,qe,tr,lr=this[0];return arguments.length?(tr=Ve(Pe),this.each(function(fr){var Br;this.nodeType===1&&(tr?Br=Pe.call(this,fr,Oe(this).val()):Br=Pe,Br==null?Br="":typeof Br=="number"?Br+="":Array.isArray(Br)&&(Br=Oe.map(Br,function($r){return $r==null?"":$r+""})),De=Oe.valHooks[this.type]||Oe.valHooks[this.nodeName.toLowerCase()],(!De||!("set"in De)||De.set(this,Br,"value")===void 0)&&(this.value=Br))})):lr?(De=Oe.valHooks[lr.type]||Oe.valHooks[lr.nodeName.toLowerCase()],De&&"get"in De&&(qe=De.get(lr,"value"))!==void 0?qe:(qe=lr.value,typeof qe=="string"?qe.replace(Ua,""):qe??"")):void 0}}),Oe.extend({valHooks:{option:{get:function(Pe){var De=Oe.find.attr(Pe,"value");return De??no(Oe.text(Pe))}},select:{get:function(Pe){var De,qe,tr,lr=Pe.options,fr=Pe.selectedIndex,Br=Pe.type==="select-one",$r=Br?null:[],Rr=Br?fr+1:lr.length;for(fr<0?tr=Rr:tr=Br?fr:0;tr<Rr;tr++)if(qe=lr[tr],(qe.selected||tr===fr)&&!qe.disabled&&(!qe.parentNode.disabled||!Ar(qe.parentNode,"optgroup"))){if(De=Oe(qe).val(),Br)return De;$r.push(De)}return $r},set:function(Pe,De){for(var qe,tr,lr=Pe.options,fr=Oe.makeArray(De),Br=lr.length;Br--;)tr=lr[Br],(tr.selected=Oe.inArray(Oe.valHooks.option.get(tr),fr)>-1)&&(qe=!0);return qe||(Pe.selectedIndex=-1),fr}}}}),Oe.each(["radio","checkbox"],function(){Oe.valHooks[this]={set:function(Pe,De){if(Array.isArray(De))return Pe.checked=Oe.inArray(Oe(Pe).val(),De)>-1}},ze.checkOn||(Oe.valHooks[this].get=function(Pe){return Pe.getAttribute("value")===null?"on":Pe.value})}),ze.focusin="onfocusin"in St;var ia=/^(?:focusinfocus|focusoutblur)$/,va=function(Pe){Pe.stopPropagation()};Oe.extend(Oe.event,{trigger:function(Pe,De,qe,tr){var lr,fr,Br,$r,Rr,en,cn,Fn,un=[qe||Ze],dn=Re.call(Pe,"type")?Pe.type:Pe,ai=Re.call(Pe,"namespace")?Pe.namespace.split("."):[];if(fr=Fn=Br=qe=qe||Ze,!(qe.nodeType===3||qe.nodeType===8)&&!ia.test(dn+Oe.event.triggered)&&(dn.indexOf(".")>-1&&(ai=dn.split("."),dn=ai.shift(),ai.sort()),Rr=dn.indexOf(":")<0&&"on"+dn,Pe=Pe[Oe.expando]?Pe:new Oe.Event(dn,typeof Pe=="object"&&Pe),Pe.isTrigger=tr?2:3,Pe.namespace=ai.join("."),Pe.rnamespace=Pe.namespace?new RegExp("(^|\\.)"+ai.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,Pe.result=void 0,Pe.target||(Pe.target=qe),De=De==null?[Pe]:Oe.makeArray(De,[Pe]),cn=Oe.event.special[dn]||{},!(!tr&&cn.trigger&&cn.trigger.apply(qe,De)===!1))){if(!tr&&!cn.noBubble&&!ir(qe)){for($r=cn.delegateType||dn,ia.test($r+dn)||(fr=fr.parentNode);fr;fr=fr.parentNode)un.push(fr),Br=fr;Br===(qe.ownerDocument||Ze)&&un.push(Br.defaultView||Br.parentWindow||St)}for(lr=0;(fr=un[lr++])&&!Pe.isPropagationStopped();)Fn=fr,Pe.type=lr>1?$r:cn.bindType||dn,en=(Sr.get(fr,"events")||Object.create(null))[Pe.type]&&Sr.get(fr,"handle"),en&&en.apply(fr,De),en=Rr&&fr[Rr],en&&en.apply&&Xn(fr)&&(Pe.result=en.apply(fr,De),Pe.result===!1&&Pe.preventDefault());return Pe.type=dn,!tr&&!Pe.isDefaultPrevented()&&(!cn._default||cn._default.apply(un.pop(),De)===!1)&&Xn(qe)&&Rr&&Ve(qe[dn])&&!ir(qe)&&(Br=qe[Rr],Br&&(qe[Rr]=null),Oe.event.triggered=dn,Pe.isPropagationStopped()&&Fn.addEventListener(dn,va),qe[dn](),Pe.isPropagationStopped()&&Fn.removeEventListener(dn,va),Oe.event.triggered=void 0,Br&&(qe[Rr]=Br)),Pe.result}},simulate:function(Pe,De,qe){var tr=Oe.extend(new Oe.Event,qe,{type:Pe,isSimulated:!0});Oe.event.trigger(tr,null,De)}}),Oe.fn.extend({trigger:function(Pe,De){return this.each(function(){Oe.event.trigger(Pe,De,this)})},triggerHandler:function(Pe,De){var qe=this[0];if(qe)return Oe.event.trigger(Pe,De,qe,!0)}}),ze.focusin||Oe.each({focus:"focusin",blur:"focusout"},function(Pe,De){var qe=function(tr){Oe.event.simulate(De,tr.target,Oe.event.fix(tr))};Oe.event.special[De]={setup:function(){var tr=this.ownerDocument||this.document||this,lr=Sr.access(tr,De);lr||tr.addEventListener(Pe,qe,!0),Sr.access(tr,De,(lr||0)+1)},teardown:function(){var tr=this.ownerDocument||this.document||this,lr=Sr.access(tr,De)-1;lr?Sr.access(tr,De,lr):(tr.removeEventListener(Pe,qe,!0),Sr.remove(tr,De))}}});var co=St.location,ma={guid:Date.now()},Aa=/\?/;Oe.parseXML=function(Pe){var De,qe;if(!Pe||typeof Pe!="string")return null;try{De=new St.DOMParser().parseFromString(Pe,"text/xml")}catch{}return qe=De&&De.getElementsByTagName("parsererror")[0],(!De||qe)&&Oe.error("Invalid XML: "+(qe?Oe.map(qe.childNodes,function(tr){return tr.textContent}).join(`
`):Pe)),De};var La=/\[\]$/,io=/\r?\n/g,Qo=/^(?:submit|button|image|reset|file)$/i,Do=/^(?:input|select|textarea|keygen)/i;function Ho(Pe,De,qe,tr){var lr;if(Array.isArray(De))Oe.each(De,function(fr,Br){qe||La.test(Pe)?tr(Pe,Br):Ho(Pe+"["+(typeof Br=="object"&&Br!=null?fr:"")+"]",Br,qe,tr)});else if(!qe&&Xe(De)==="object")for(lr in De)Ho(Pe+"["+lr+"]",De[lr],qe,tr);else tr(Pe,De)}Oe.param=function(Pe,De){var qe,tr=[],lr=function(fr,Br){var $r=Ve(Br)?Br():Br;tr[tr.length]=encodeURIComponent(fr)+"="+encodeURIComponent($r??"")};if(Pe==null)return"";if(Array.isArray(Pe)||Pe.jquery&&!Oe.isPlainObject(Pe))Oe.each(Pe,function(){lr(this.name,this.value)});else for(qe in Pe)Ho(qe,Pe[qe],De,lr);return tr.join("&")},Oe.fn.extend({serialize:function(){return Oe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var Pe=Oe.prop(this,"elements");return Pe?Oe.makeArray(Pe):this}).filter(function(){var Pe=this.type;return this.name&&!Oe(this).is(":disabled")&&Do.test(this.nodeName)&&!Qo.test(Pe)&&(this.checked||!wi.test(Pe))}).map(function(Pe,De){var qe=Oe(this).val();return qe==null?null:Array.isArray(qe)?Oe.map(qe,function(tr){return{name:De.name,value:tr.replace(io,`\r
`)}}):{name:De.name,value:qe.replace(io,`\r
`)}}).get()}});var mA=/%20/g,Na=/#.*$/,ya=/([?&])_=[^&]*/,Bi=/^(.*?):[ \t]*([^\r\n]*)$/mg,$a=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ra=/^(?:GET|HEAD)$/,Ao=/^\/\//,oa={},Mo={},To="*/".concat("*"),So=Ze.createElement("a");So.href=co.href;function wa(Pe){return function(De,qe){typeof De!="string"&&(qe=De,De="*");var tr,lr=0,fr=De.toLowerCase().match(sn)||[];if(Ve(qe))for(;tr=fr[lr++];)tr[0]==="+"?(tr=tr.slice(1)||"*",(Pe[tr]=Pe[tr]||[]).unshift(qe)):(Pe[tr]=Pe[tr]||[]).push(qe)}}function Ba(Pe,De,qe,tr){var lr={},fr=Pe===Mo;function Br($r){var Rr;return lr[$r]=!0,Oe.each(Pe[$r]||[],function(en,cn){var Fn=cn(De,qe,tr);if(typeof Fn=="string"&&!fr&&!lr[Fn])return De.dataTypes.unshift(Fn),Br(Fn),!1;if(fr)return!(Rr=Fn)}),Rr}return Br(De.dataTypes[0])||!lr["*"]&&Br("*")}function aa(Pe,De){var qe,tr,lr=Oe.ajaxSettings.flatOptions||{};for(qe in De)De[qe]!==void 0&&((lr[qe]?Pe:tr||(tr={}))[qe]=De[qe]);return tr&&Oe.extend(!0,Pe,tr),Pe}function sa(Pe,De,qe){for(var tr,lr,fr,Br,$r=Pe.contents,Rr=Pe.dataTypes;Rr[0]==="*";)Rr.shift(),tr===void 0&&(tr=Pe.mimeType||De.getResponseHeader("Content-Type"));if(tr){for(lr in $r)if($r[lr]&&$r[lr].test(tr)){Rr.unshift(lr);break}}if(Rr[0]in qe)fr=Rr[0];else{for(lr in qe){if(!Rr[0]||Pe.converters[lr+" "+Rr[0]]){fr=lr;break}Br||(Br=lr)}fr=fr||Br}if(fr)return fr!==Rr[0]&&Rr.unshift(fr),qe[fr]}function xo(Pe,De,qe,tr){var lr,fr,Br,$r,Rr,en={},cn=Pe.dataTypes.slice();if(cn[1])for(Br in Pe.converters)en[Br.toLowerCase()]=Pe.converters[Br];for(fr=cn.shift();fr;)if(Pe.responseFields[fr]&&(qe[Pe.responseFields[fr]]=De),!Rr&&tr&&Pe.dataFilter&&(De=Pe.dataFilter(De,Pe.dataType)),Rr=fr,fr=cn.shift(),fr){if(fr==="*")fr=Rr;else if(Rr!=="*"&&Rr!==fr){if(Br=en[Rr+" "+fr]||en["* "+fr],!Br){for(lr in en)if($r=lr.split(" "),$r[1]===fr&&(Br=en[Rr+" "+$r[0]]||en["* "+$r[0]],Br)){Br===!0?Br=en[lr]:en[lr]!==!0&&(fr=$r[0],cn.unshift($r[1]));break}}if(Br!==!0)if(Br&&Pe.throws)De=Br(De);else try{De=Br(De)}catch(Fn){return{state:"parsererror",error:Br?Fn:"No conversion from "+Rr+" to "+fr}}}}return{state:"success",data:De}}Oe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:co.href,type:"GET",isLocal:$a.test(co.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":To,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Oe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(Pe,De){return De?aa(aa(Pe,Oe.ajaxSettings),De):aa(Oe.ajaxSettings,Pe)},ajaxPrefilter:wa(oa),ajaxTransport:wa(Mo),ajax:function(Pe,De){typeof Pe=="object"&&(De=Pe,Pe=void 0),De=De||{};var qe,tr,lr,fr,Br,$r,Rr,en,cn,Fn,un=Oe.ajaxSetup({},De),dn=un.context||un,ai=un.context&&(dn.nodeType||dn.jquery)?Oe(dn):Oe.event,vi=Oe.Deferred(),oi=Oe.Callbacks("once memory"),Ji=un.statusCode||{},Zi={},EA={},Ni="canceled",fi={readyState:0,getResponseHeader:function(Ci){var Di;if(Rr){if(!fr)for(fr={};Di=Bi.exec(lr);)fr[Di[1].toLowerCase()+" "]=(fr[Di[1].toLowerCase()+" "]||[]).concat(Di[2]);Di=fr[Ci.toLowerCase()+" "]}return Di==null?null:Di.join(", ")},getAllResponseHeaders:function(){return Rr?lr:null},setRequestHeader:function(Ci,Di){return Rr==null&&(Ci=EA[Ci.toLowerCase()]=EA[Ci.toLowerCase()]||Ci,Zi[Ci]=Di),this},overrideMimeType:function(Ci){return Rr==null&&(un.mimeType=Ci),this},statusCode:function(Ci){var Di;if(Ci)if(Rr)fi.always(Ci[fi.status]);else for(Di in Ci)Ji[Di]=[Ji[Di],Ci[Di]];return this},abort:function(Ci){var Di=Ci||Ni;return qe&&qe.abort(Di),lA(0,Di),this}};if(vi.promise(fi),un.url=((Pe||un.url||co.href)+"").replace(Ao,co.protocol+"//"),un.type=De.method||De.type||un.method||un.type,un.dataTypes=(un.dataType||"*").toLowerCase().match(sn)||[""],un.crossDomain==null){$r=Ze.createElement("a");try{$r.href=un.url,$r.href=$r.href,un.crossDomain=So.protocol+"//"+So.host!=$r.protocol+"//"+$r.host}catch{un.crossDomain=!0}}if(un.data&&un.processData&&typeof un.data!="string"&&(un.data=Oe.param(un.data,un.traditional)),Ba(oa,un,De,fi),Rr)return fi;en=Oe.event&&un.global,en&&Oe.active++===0&&Oe.event.trigger("ajaxStart"),un.type=un.type.toUpperCase(),un.hasContent=!Ra.test(un.type),tr=un.url.replace(Na,""),un.hasContent?un.data&&un.processData&&(un.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(un.data=un.data.replace(mA,"+")):(Fn=un.url.slice(tr.length),un.data&&(un.processData||typeof un.data=="string")&&(tr+=(Aa.test(tr)?"&":"?")+un.data,delete un.data),un.cache===!1&&(tr=tr.replace(ya,"$1"),Fn=(Aa.test(tr)?"&":"?")+"_="+ma.guid+++Fn),un.url=tr+Fn),un.ifModified&&(Oe.lastModified[tr]&&fi.setRequestHeader("If-Modified-Since",Oe.lastModified[tr]),Oe.etag[tr]&&fi.setRequestHeader("If-None-Match",Oe.etag[tr])),(un.data&&un.hasContent&&un.contentType!==!1||De.contentType)&&fi.setRequestHeader("Content-Type",un.contentType),fi.setRequestHeader("Accept",un.dataTypes[0]&&un.accepts[un.dataTypes[0]]?un.accepts[un.dataTypes[0]]+(un.dataTypes[0]!=="*"?", "+To+"; q=0.01":""):un.accepts["*"]);for(cn in un.headers)fi.setRequestHeader(cn,un.headers[cn]);if(un.beforeSend&&(un.beforeSend.call(dn,fi,un)===!1||Rr))return fi.abort();if(Ni="abort",oi.add(un.complete),fi.done(un.success),fi.fail(un.error),qe=Ba(Mo,un,De,fi),!qe)lA(-1,"No Transport");else{if(fi.readyState=1,en&&ai.trigger("ajaxSend",[fi,un]),Rr)return fi;un.async&&un.timeout>0&&(Br=St.setTimeout(function(){fi.abort("timeout")},un.timeout));try{Rr=!1,qe.send(Zi,lA)}catch(Ci){if(Rr)throw Ci;lA(-1,Ci)}}function lA(Ci,Di,Me,hr){var Ir,Hr,rn,hn,xn,kn=Di;Rr||(Rr=!0,Br&&St.clearTimeout(Br),qe=void 0,lr=hr||"",fi.readyState=Ci>0?4:0,Ir=Ci>=200&&Ci<300||Ci===304,Me&&(hn=sa(un,fi,Me)),!Ir&&Oe.inArray("script",un.dataTypes)>-1&&Oe.inArray("json",un.dataTypes)<0&&(un.converters["text script"]=function(){}),hn=xo(un,hn,fi,Ir),Ir?(un.ifModified&&(xn=fi.getResponseHeader("Last-Modified"),xn&&(Oe.lastModified[tr]=xn),xn=fi.getResponseHeader("etag"),xn&&(Oe.etag[tr]=xn)),Ci===204||un.type==="HEAD"?kn="nocontent":Ci===304?kn="notmodified":(kn=hn.state,Hr=hn.data,rn=hn.error,Ir=!rn)):(rn=kn,(Ci||!kn)&&(kn="error",Ci<0&&(Ci=0))),fi.status=Ci,fi.statusText=(Di||kn)+"",Ir?vi.resolveWith(dn,[Hr,kn,fi]):vi.rejectWith(dn,[fi,kn,rn]),fi.statusCode(Ji),Ji=void 0,en&&ai.trigger(Ir?"ajaxSuccess":"ajaxError",[fi,un,Ir?Hr:rn]),oi.fireWith(dn,[fi,kn]),en&&(ai.trigger("ajaxComplete",[fi,un]),--Oe.active||Oe.event.trigger("ajaxStop")))}return fi},getJSON:function(Pe,De,qe){return Oe.get(Pe,De,qe,"json")},getScript:function(Pe,De){return Oe.get(Pe,void 0,De,"script")}}),Oe.each(["get","post"],function(Pe,De){Oe[De]=function(qe,tr,lr,fr){return Ve(tr)&&(fr=fr||lr,lr=tr,tr=void 0),Oe.ajax(Oe.extend({url:qe,type:De,dataType:fr,data:tr,success:lr},Oe.isPlainObject(qe)&&qe))}}),Oe.ajaxPrefilter(function(Pe){var De;for(De in Pe.headers)De.toLowerCase()==="content-type"&&(Pe.contentType=Pe.headers[De]||"")}),Oe._evalUrl=function(Pe,De,qe){return Oe.ajax({url:Pe,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(tr){Oe.globalEval(tr,De,qe)}})},Oe.fn.extend({wrapAll:function(Pe){var De;return this[0]&&(Ve(Pe)&&(Pe=Pe.call(this[0])),De=Oe(Pe,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&De.insertBefore(this[0]),De.map(function(){for(var qe=this;qe.firstElementChild;)qe=qe.firstElementChild;return qe}).append(this)),this},wrapInner:function(Pe){return Ve(Pe)?this.each(function(De){Oe(this).wrapInner(Pe.call(this,De))}):this.each(function(){var De=Oe(this),qe=De.contents();qe.length?qe.wrapAll(Pe):De.append(Pe)})},wrap:function(Pe){var De=Ve(Pe);return this.each(function(qe){Oe(this).wrapAll(De?Pe.call(this,qe):Pe)})},unwrap:function(Pe){return this.parent(Pe).not("body").each(function(){Oe(this).replaceWith(this.childNodes)}),this}}),Oe.expr.pseudos.hidden=function(Pe){return!Oe.expr.pseudos.visible(Pe)},Oe.expr.pseudos.visible=function(Pe){return!!(Pe.offsetWidth||Pe.offsetHeight||Pe.getClientRects().length)},Oe.ajaxSettings.xhr=function(){try{return new St.XMLHttpRequest}catch{}};var mo={0:200,1223:204},Fo=Oe.ajaxSettings.xhr();ze.cors=!!Fo&&"withCredentials"in Fo,ze.ajax=Fo=!!Fo,Oe.ajaxTransport(function(Pe){var De,qe;if(ze.cors||Fo&&!Pe.crossDomain)return{send:function(tr,lr){var fr,Br=Pe.xhr();if(Br.open(Pe.type,Pe.url,Pe.async,Pe.username,Pe.password),Pe.xhrFields)for(fr in Pe.xhrFields)Br[fr]=Pe.xhrFields[fr];Pe.mimeType&&Br.overrideMimeType&&Br.overrideMimeType(Pe.mimeType),!Pe.crossDomain&&!tr["X-Requested-With"]&&(tr["X-Requested-With"]="XMLHttpRequest");for(fr in tr)Br.setRequestHeader(fr,tr[fr]);De=function($r){return function(){De&&(De=qe=Br.onload=Br.onerror=Br.onabort=Br.ontimeout=Br.onreadystatechange=null,$r==="abort"?Br.abort():$r==="error"?typeof Br.status!="number"?lr(0,"error"):lr(Br.status,Br.statusText):lr(mo[Br.status]||Br.status,Br.statusText,(Br.responseType||"text")!=="text"||typeof Br.responseText!="string"?{binary:Br.response}:{text:Br.responseText},Br.getAllResponseHeaders()))}},Br.onload=De(),qe=Br.onerror=Br.ontimeout=De("error"),Br.onabort!==void 0?Br.onabort=qe:Br.onreadystatechange=function(){Br.readyState===4&&St.setTimeout(function(){De&&qe()})},De=De("abort");try{Br.send(Pe.hasContent&&Pe.data||null)}catch($r){if(De)throw $r}},abort:function(){De&&De()}}}),Oe.ajaxPrefilter(function(Pe){Pe.crossDomain&&(Pe.contents.script=!1)}),Oe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(Pe){return Oe.globalEval(Pe),Pe}}}),Oe.ajaxPrefilter("script",function(Pe){Pe.cache===void 0&&(Pe.cache=!1),Pe.crossDomain&&(Pe.type="GET")}),Oe.ajaxTransport("script",function(Pe){if(Pe.crossDomain||Pe.scriptAttrs){var De,qe;return{send:function(tr,lr){De=Oe("<script>").attr(Pe.scriptAttrs||{}).prop({charset:Pe.scriptCharset,src:Pe.url}).on("load error",qe=function(fr){De.remove(),qe=null,fr&&lr(fr.type==="error"?404:200,fr.type)}),Ze.head.appendChild(De[0])},abort:function(){qe&&qe()}}}});var yo=[],Io=/(=)\?(?=&|$)|\?\?/;Oe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var Pe=yo.pop()||Oe.expando+"_"+ma.guid++;return this[Pe]=!0,Pe}}),Oe.ajaxPrefilter("json jsonp",function(Pe,De,qe){var tr,lr,fr,Br=Pe.jsonp!==!1&&(Io.test(Pe.url)?"url":typeof Pe.data=="string"&&(Pe.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Io.test(Pe.data)&&"data");if(Br||Pe.dataTypes[0]==="jsonp")return tr=Pe.jsonpCallback=Ve(Pe.jsonpCallback)?Pe.jsonpCallback():Pe.jsonpCallback,Br?Pe[Br]=Pe[Br].replace(Io,"$1"+tr):Pe.jsonp!==!1&&(Pe.url+=(Aa.test(Pe.url)?"&":"?")+Pe.jsonp+"="+tr),Pe.converters["script json"]=function(){return fr||Oe.error(tr+" was not called"),fr[0]},Pe.dataTypes[0]="json",lr=St[tr],St[tr]=function(){fr=arguments},qe.always(function(){lr===void 0?Oe(St).removeProp(tr):St[tr]=lr,Pe[tr]&&(Pe.jsonpCallback=De.jsonpCallback,yo.push(tr)),fr&&Ve(lr)&&lr(fr[0]),fr=lr=void 0}),"script"}),ze.createHTMLDocument=function(){var Pe=Ze.implementation.createHTMLDocument("").body;return Pe.innerHTML="<form></form><form></form>",Pe.childNodes.length===2}(),Oe.parseHTML=function(Pe,De,qe){if(typeof Pe!="string")return[];typeof De=="boolean"&&(qe=De,De=!1);var tr,lr,fr;return De||(ze.createHTMLDocument?(De=Ze.implementation.createHTMLDocument(""),tr=De.createElement("base"),tr.href=Ze.location.href,De.head.appendChild(tr)):De=Ze),lr=gr.exec(Pe),fr=!qe&&[],lr?[De.createElement(lr[1])]:(lr=qr([Pe],De,fr),fr&&fr.length&&Oe(fr).remove(),Oe.merge([],lr.childNodes))},Oe.fn.load=function(Pe,De,qe){var tr,lr,fr,Br=this,$r=Pe.indexOf(" ");return $r>-1&&(tr=no(Pe.slice($r)),Pe=Pe.slice(0,$r)),Ve(De)?(qe=De,De=void 0):De&&typeof De=="object"&&(lr="POST"),Br.length>0&&Oe.ajax({url:Pe,type:lr||"GET",dataType:"html",data:De}).done(function(Rr){fr=arguments,Br.html(tr?Oe("<div>").append(Oe.parseHTML(Rr)).find(tr):Rr)}).always(qe&&function(Rr,en){Br.each(function(){qe.apply(this,fr||[Rr.responseText,en,Rr])})}),this},Oe.expr.pseudos.animated=function(Pe){return Oe.grep(Oe.timers,function(De){return Pe===De.elem}).length},Oe.offset={setOffset:function(Pe,De,qe){var tr,lr,fr,Br,$r,Rr,en,cn=Oe.css(Pe,"position"),Fn=Oe(Pe),un={};cn==="static"&&(Pe.style.position="relative"),$r=Fn.offset(),fr=Oe.css(Pe,"top"),Rr=Oe.css(Pe,"left"),en=(cn==="absolute"||cn==="fixed")&&(fr+Rr).indexOf("auto")>-1,en?(tr=Fn.position(),Br=tr.top,lr=tr.left):(Br=parseFloat(fr)||0,lr=parseFloat(Rr)||0),Ve(De)&&(De=De.call(Pe,qe,Oe.extend({},$r))),De.top!=null&&(un.top=De.top-$r.top+Br),De.left!=null&&(un.left=De.left-$r.left+lr),"using"in De?De.using.call(Pe,un):Fn.css(un)}},Oe.fn.extend({offset:function(Pe){if(arguments.length)return Pe===void 0?this:this.each(function(lr){Oe.offset.setOffset(this,Pe,lr)});var De,qe,tr=this[0];if(tr)return tr.getClientRects().length?(De=tr.getBoundingClientRect(),qe=tr.ownerDocument.defaultView,{top:De.top+qe.pageYOffset,left:De.left+qe.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var Pe,De,qe,tr=this[0],lr={top:0,left:0};if(Oe.css(tr,"position")==="fixed")De=tr.getBoundingClientRect();else{for(De=this.offset(),qe=tr.ownerDocument,Pe=tr.offsetParent||qe.documentElement;Pe&&(Pe===qe.body||Pe===qe.documentElement)&&Oe.css(Pe,"position")==="static";)Pe=Pe.parentNode;Pe&&Pe!==tr&&Pe.nodeType===1&&(lr=Oe(Pe).offset(),lr.top+=Oe.css(Pe,"borderTopWidth",!0),lr.left+=Oe.css(Pe,"borderLeftWidth",!0))}return{top:De.top-lr.top-Oe.css(tr,"marginTop",!0),left:De.left-lr.left-Oe.css(tr,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var Pe=this.offsetParent;Pe&&Oe.css(Pe,"position")==="static";)Pe=Pe.offsetParent;return Pe||ii})}}),Oe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(Pe,De){var qe=De==="pageYOffset";Oe.fn[Pe]=function(tr){return Jr(this,function(lr,fr,Br){var $r;if(ir(lr)?$r=lr:lr.nodeType===9&&($r=lr.defaultView),Br===void 0)return $r?$r[De]:lr[fr];$r?$r.scrollTo(qe?$r.pageXOffset:Br,qe?Br:$r.pageYOffset):lr[fr]=Br},Pe,tr,arguments.length)}}),Oe.each(["top","left"],function(Pe,De){Oe.cssHooks[De]=vA(ze.pixelPosition,function(qe,tr){if(tr)return tr=dA(qe,De),PA.test(tr)?Oe(qe).position()[De]+"px":tr})}),Oe.each({Height:"height",Width:"width"},function(Pe,De){Oe.each({padding:"inner"+Pe,content:De,"":"outer"+Pe},function(qe,tr){Oe.fn[tr]=function(lr,fr){var Br=arguments.length&&(qe||typeof lr!="boolean"),$r=qe||(lr===!0||fr===!0?"margin":"border");return Jr(this,function(Rr,en,cn){var Fn;return ir(Rr)?tr.indexOf("outer")===0?Rr["inner"+Pe]:Rr.document.documentElement["client"+Pe]:Rr.nodeType===9?(Fn=Rr.documentElement,Math.max(Rr.body["scroll"+Pe],Fn["scroll"+Pe],Rr.body["offset"+Pe],Fn["offset"+Pe],Fn["client"+Pe])):cn===void 0?Oe.css(Rr,en,$r):Oe.style(Rr,en,cn,$r)},De,Br?lr:void 0,Br)}})}),Oe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(Pe,De){Oe.fn[De]=function(qe){return this.on(De,qe)}}),Oe.fn.extend({bind:function(Pe,De,qe){return this.on(Pe,null,De,qe)},unbind:function(Pe,De){return this.off(Pe,null,De)},delegate:function(Pe,De,qe,tr){return this.on(De,Pe,qe,tr)},undelegate:function(Pe,De,qe){return arguments.length===1?this.off(Pe,"**"):this.off(De,Pe||"**",qe)},hover:function(Pe,De){return this.mouseenter(Pe).mouseleave(De||Pe)}}),Oe.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(Pe,De){Oe.fn[De]=function(qe,tr){return arguments.length>0?this.on(De,null,qe,tr):this.trigger(De)}});var ko=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;Oe.proxy=function(Pe,De){var qe,tr,lr;if(typeof De=="string"&&(qe=Pe[De],De=Pe,Pe=qe),!!Ve(Pe))return tr=_e.call(arguments,2),lr=function(){return Pe.apply(De||this,tr.concat(_e.call(arguments)))},lr.guid=Pe.guid=Pe.guid||Oe.guid++,lr},Oe.holdReady=function(Pe){Pe?Oe.readyWait++:Oe.ready(!0)},Oe.isArray=Array.isArray,Oe.parseJSON=JSON.parse,Oe.nodeName=Ar,Oe.isFunction=Ve,Oe.isWindow=ir,Oe.camelCase=In,Oe.type=Xe,Oe.now=Date.now,Oe.isNumeric=function(Pe){var De=Oe.type(Pe);return(De==="number"||De==="string")&&!isNaN(Pe-parseFloat(Pe))},Oe.trim=function(Pe){return Pe==null?"":(Pe+"").replace(ko,"")};var ba=St.jQuery,Ea=St.$;return Oe.noConflict=function(Pe){return St.$===Oe&&(St.$=Ea),Pe&&St.jQuery===Oe&&(St.jQuery=ba),Oe},typeof Ae>"u"&&(St.jQuery=St.$=Oe),Oe})}(jquery)),jquery.exports}var jqueryExports=requireJquery();const $$g=getDefaultExportFromCjs(jqueryExports),hiprint$1="",printLock="";window.$=$$g,window.jQuery=$$g,function(Be){Be.fn.hiwprint=function(_e){var Te=document.getElementById("hiwprint_iframe");Te&&Te.parentNode.removeChild(Te);var Se=Be.extend({},Be.fn.hiwprint.defaults,_e),xe=this,Fe=Be('<iframe id="hiwprint_iframe" style="visibility: hidden; height: 0; width: 0; position: absolute;"></iframe>'),Ue="";Se.importCss&&(Be("link[media=print]").length>0?Be("link[media=print]").each(function(){Ue+='<link rel="stylesheet" type="text/css" media="print" href="'+Be(this).attr("href")+'">'}):Be("link").each(function(){Ue+='<link rel="stylesheet" type="text/css" media="print" href="'+Be(this).attr("href")+'">'})),Fe[0].srcdoc='<!DOCTYPE html><html><head><title></title><meta charset="UTF-8">'+Ue+"</head><body></body></html>",Fe[0].onload=function(){var Re=Fe[0].contentWindow||Fe[0].contentDocument;Re.document&&(Re=Re.document),Fe.attr("srcdoc")||Re.write('<!DOCTYPE html><html><head><title></title><meta charset="UTF-8">'+Ue+"</head><body></body></html>"),Se.printContainer?Re.body.innerHTML=xe[0].outerHTML:Re.body.innerHTML=xe.html(),Ce(Re,function(){St(Fe[0])})},Fe.appendTo("body")},Be.fn.hiwprint.defaults={importCss:!0,printContainer:!0};function St(_e){try{if(_e.focus(),Ee()||Ae())try{_e.contentWindow.document.execCommand("print",!1,null)}catch{_e.contentWindow.print()}else _e.contentWindow.print()}catch(Te){console.log(Te)}}function Ae(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode}function Ee(){return!Ae()&&!!window.StyleMedia}function Ce(_e,Te,Se){Se===void 0&&(Se=0);for(var xe=_e.getElementsByTagName("img"),Fe=!0,Ue=0;Ue<xe.length;Ue++){var Re=xe[Ue];Re.src&&Re.src!==window.location.href&&Re.src.indexOf("base64")==-1&&(!Re||typeof Re.naturalWidth>"u"||Re.naturalWidth===0||!Re.complete)&&(console.log(Re.complete),Re.complete||(Fe=!1))}Se++,!Fe&&Se<10?setTimeout(function(){Ce(_e,Te,Se)},500):Te()}}(jQuery);var jquery_minicolors_min={exports:{}};(function(Be,St){(function(Ae){Be.exports=Ae(requireJquery())})(function(Ae){function Ee(Oe){var Je=Oe.parent();Oe.removeData("minicolors-initialized").removeData("minicolors-settings").removeProp("size").removeClass("minicolors-input"),Je.before(Oe).remove()}function Ce(Oe){var Je=Oe.parent(),Ye=Je.find(".minicolors-panel"),rr=Oe.data("minicolors-settings");!Oe.data("minicolors-initialized")||Oe.prop("disabled")||Je.hasClass("minicolors-inline")||Je.hasClass("minicolors-focus")||(_e(),Je.addClass("minicolors-focus"),Ye.animate?Ye.stop(!0,!0).fadeIn(rr.showSpeed,function(){rr.show&&rr.show.call(Oe.get(0))}):(Ye.show(),rr.show&&rr.show.call(Oe.get(0))))}function _e(){Ae(".minicolors-focus").each(function(){var Oe=Ae(this),Je=Oe.find(".minicolors-input"),Ye=Oe.find(".minicolors-panel"),rr=Je.data("minicolors-settings");Ye.animate?Ye.fadeOut(rr.hideSpeed,function(){rr.hide&&rr.hide.call(Je.get(0)),Oe.removeClass("minicolors-focus")}):(Ye.hide(),rr.hide&&rr.hide.call(Je.get(0)),Oe.removeClass("minicolors-focus"))})}function Te(Oe,Je,Ye){var rr,vr,er,Ar,gr,mr=Oe.parents(".minicolors").find(".minicolors-input"),Ur=mr.data("minicolors-settings"),Lr=Oe.find("[class$=-picker]"),Mr=Oe.offset().left,Qr=Oe.offset().top,Dr=Math.round(Je.pageX-Mr),Xr=Math.round(Je.pageY-Qr),sn=Ye?Ur.animationSpeed:0;Je.originalEvent.changedTouches&&(Dr=Je.originalEvent.changedTouches[0].pageX-Mr,Xr=Je.originalEvent.changedTouches[0].pageY-Qr),Dr<0&&(Dr=0),Xr<0&&(Xr=0),Dr>Oe.width()&&(Dr=Oe.width()),Xr>Oe.height()&&(Xr=Oe.height()),Oe.parent().is(".minicolors-slider-wheel")&&Lr.parent().is(".minicolors-grid")&&(rr=75-Dr,vr=75-Xr,er=Math.sqrt(rr*rr+vr*vr),(Ar=Math.atan2(vr,rr))<0&&(Ar+=2*Math.PI),75<er&&(Dr=(er=75)-75*Math.cos(Ar),Xr=75-75*Math.sin(Ar)),Dr=Math.round(Dr),Xr=Math.round(Xr)),gr={top:Xr+"px"},Oe.is(".minicolors-grid")&&(gr.left=Dr+"px"),Lr.animate?Lr.stop(!0).animate(gr,sn,Ur.animationEasing,function(){Se(mr,Oe)}):(Lr.css(gr),Se(mr,Oe))}function Se(Oe,Je){function Ye(wn,Cn){var On,In;return wn.length&&Cn?(On=wn.offset().left,In=wn.offset().top,{x:On-Cn.offset().left+wn.outerWidth()/2,y:In-Cn.offset().top+wn.outerHeight()/2}):null}var rr,vr,er,Ar,gr,mr,Ur,Lr=Oe.val(),Mr=Oe.attr("data-opacity"),Qr=Oe.parent(),Dr=Oe.data("minicolors-settings"),Xr=Qr.find(".minicolors-input-swatch"),sn=Qr.find(".minicolors-grid"),ur=Qr.find(".minicolors-slider"),_r=Qr.find(".minicolors-opacity-slider"),Fr=sn.find("[class$=-picker]"),Pr=ur.find("[class$=-picker]"),kr=_r.find("[class$=-picker]"),Vr=Ye(Fr,sn),nn=Ye(Pr,ur),Jr=Ye(kr,_r);if(Je.is(".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider")){switch(Dr.control){case"wheel":Ar=sn.width()/2-Vr.x,gr=sn.height()/2-Vr.y,mr=Math.sqrt(Ar*Ar+gr*gr),(Ur=Math.atan2(gr,Ar))<0&&(Ur+=2*Math.PI),75<mr&&(mr=75,Vr.x=69-75*Math.cos(Ur),Vr.y=69-75*Math.sin(Ur)),vr=Ve(mr/.75,0,100),Lr=Xe({h:rr=Ve(180*Ur/Math.PI,0,360),s:vr,b:er=Ve(100-Math.floor(nn.y*(100/ur.height())),0,100)}),ur.css("backgroundColor",Xe({h:rr,s:vr,b:100}));break;case"saturation":Lr=Xe({h:rr=Ve(parseInt(Vr.x*(360/sn.width()),10),0,360),s:vr=Ve(100-Math.floor(nn.y*(100/ur.height())),0,100),b:er=Ve(100-Math.floor(Vr.y*(100/sn.height())),0,100)}),ur.css("backgroundColor",Xe({h:rr,s:100,b:er})),Qr.find(".minicolors-grid-inner").css("opacity",vr/100);break;case"brightness":Lr=Xe({h:rr=Ve(parseInt(Vr.x*(360/sn.width()),10),0,360),s:vr=Ve(100-Math.floor(Vr.y*(100/sn.height())),0,100),b:er=Ve(100-Math.floor(nn.y*(100/ur.height())),0,100)}),ur.css("backgroundColor",Xe({h:rr,s:vr,b:100})),Qr.find(".minicolors-grid-inner").css("opacity",1-er/100);break;default:Lr=Xe({h:rr=Ve(360-parseInt(nn.y*(360/ur.height()),10),0,360),s:vr=Ve(Math.floor(Vr.x*(100/sn.width())),0,100),b:er=Ve(100-Math.floor(Vr.y*(100/sn.height())),0,100)}),sn.css("backgroundColor",Xe({h:rr,s:100,b:100}))}xe(Oe,Lr,Mr=Dr.opacity?parseFloat(1-Jr.y/_r.height()).toFixed(2):1)}else Xr.find("span").css({backgroundColor:Lr,opacity:String(Mr)}),Ue(Oe,Lr,Mr)}function xe(Oe,Je,Ye){var rr,vr=Oe.parent(),er=Oe.data("minicolors-settings"),Ar=vr.find(".minicolors-input-swatch");er.opacity&&Oe.attr("data-opacity",Ye),Je=er.format==="rgb"?(rr=ir(Je)?$e(Je,!0):or(He(Je,!0)),Ye=Oe.attr("data-opacity")===""?1:Ve(parseFloat(Oe.attr("data-opacity")).toFixed(2),0,1),!isNaN(Ye)&&er.opacity||(Ye=1),Oe.minicolors("rgbObject").a<=1&&rr&&er.opacity?"rgba("+rr.r+", "+rr.g+", "+rr.b+", "+parseFloat(Ye)+")":"rgb("+rr.r+", "+rr.g+", "+rr.b+")"):(ir(Je)&&(Je=ar(Je)),Re(Je,er.letterCase)),Oe.val(Je),Ar.find("span").css({backgroundColor:Je,opacity:String(Ye)}),Ue(Oe,Je,Ye)}function Fe(Oe,Je){var Ye,rr,vr,er,Ar,gr,mr,Ur,Lr,Mr,Qr=Oe.parent(),Dr=Oe.data("minicolors-settings"),Xr=Qr.find(".minicolors-input-swatch"),sn=Qr.find(".minicolors-grid"),ur=Qr.find(".minicolors-slider"),_r=Qr.find(".minicolors-opacity-slider"),Fr=sn.find("[class$=-picker]"),Pr=ur.find("[class$=-picker]"),kr=_r.find("[class$=-picker]");switch(ir(Oe.val())?(Ye=ar(Oe.val()),(Ar=Ve(parseFloat(Ze(Oe.val())).toFixed(2),0,1))&&Oe.attr("data-opacity",Ar)):Ye=Re(He(Oe.val(),!0),Dr.letterCase),rr=function(Vr){var nn=function(Jr){var wn={h:0,s:0,b:0},Cn=Math.min(Jr.r,Jr.g,Jr.b),On=Math.max(Jr.r,Jr.g,Jr.b),In=On-Cn;return wn.b=On,wn.s=On!==0?255*In/On:0,wn.s!==0?Jr.r===On?wn.h=(Jr.g-Jr.b)/In:Jr.g===On?wn.h=2+(Jr.b-Jr.r)/In:wn.h=4+(Jr.r-Jr.g)/In:wn.h=-1,wn.h*=60,wn.h<0&&(wn.h+=360),wn.s*=.39215686274509803,wn.b*=.39215686274509803,wn}(or(Vr));return nn.s===0&&(nn.h=360),nn}(Ye=Ye||Re(ze(Dr.defaultValue,!0),Dr.letterCase)),er=Dr.keywords?Ae.map(Dr.keywords.split(","),function(Vr){return Vr.toLowerCase().trim()}):[],gr=Oe.val()!==""&&-1<Ae.inArray(Oe.val().toLowerCase(),er)?Re(Oe.val()):ir(Oe.val())?$e(Oe.val()):Ye,Je||Oe.val(gr),Dr.opacity&&(vr=Oe.attr("data-opacity")===""?1:Ve(parseFloat(Oe.attr("data-opacity")).toFixed(2),0,1),isNaN(vr)&&(vr=1),Oe.attr("data-opacity",vr),Xr.find("span").css("opacity",String(vr)),Ur=Ve(_r.height()-_r.height()*vr,0,_r.height()),kr.css("top",Ur+"px")),Oe.val().toLowerCase()==="transparent"&&Xr.find("span").css("opacity",String(0)),Xr.find("span").css("backgroundColor",Ye),Dr.control){case"wheel":Lr=Ve(Math.ceil(.75*rr.s),0,sn.height()/2),Mr=rr.h*Math.PI/180,mr=Ve(75-Math.cos(Mr)*Lr,0,sn.width()),Ur=Ve(75-Math.sin(Mr)*Lr,0,sn.height()),Fr.css({top:Ur+"px",left:mr+"px"}),Ur=150-rr.b/(100/sn.height()),Ye===""&&(Ur=0),Pr.css("top",Ur+"px"),ur.css("backgroundColor",Xe({h:rr.h,s:rr.s,b:100}));break;case"saturation":mr=Ve(5*rr.h/12,0,150),Ur=Ve(sn.height()-Math.ceil(rr.b/(100/sn.height())),0,sn.height()),Fr.css({top:Ur+"px",left:mr+"px"}),Ur=Ve(ur.height()-rr.s*(ur.height()/100),0,ur.height()),Pr.css("top",Ur+"px"),ur.css("backgroundColor",Xe({h:rr.h,s:100,b:rr.b})),Qr.find(".minicolors-grid-inner").css("opacity",rr.s/100);break;case"brightness":mr=Ve(5*rr.h/12,0,150),Ur=Ve(sn.height()-Math.ceil(rr.s/(100/sn.height())),0,sn.height()),Fr.css({top:Ur+"px",left:mr+"px"}),Ur=Ve(ur.height()-rr.b*(ur.height()/100),0,ur.height()),Pr.css("top",Ur+"px"),ur.css("backgroundColor",Xe({h:rr.h,s:rr.s,b:100})),Qr.find(".minicolors-grid-inner").css("opacity",1-rr.b/100);break;default:mr=Ve(Math.ceil(rr.s/(100/sn.width())),0,sn.width()),Ur=Ve(sn.height()-Math.ceil(rr.b/(100/sn.height())),0,sn.height()),Fr.css({top:Ur+"px",left:mr+"px"}),Ur=Ve(ur.height()-rr.h/(360/ur.height()),0,ur.height()),Pr.css("top",Ur+"px"),sn.css("backgroundColor",Xe({h:rr.h,s:100,b:100}))}Oe.data("minicolors-initialized")&&Ue(Oe,gr,vr)}function Ue(Oe,Je,Ye){var rr,vr,er,Ar=Oe.data("minicolors-settings"),gr=Oe.data("minicolors-lastChange");if(!gr||gr.value!==Je||gr.opacity!==Ye){if(Oe.data("minicolors-lastChange",{value:Je,opacity:Ye}),Ar.swatches&&Ar.swatches.length!==0){for(rr=ir(Je)?$e(Je,!0):or(Je),vr=-1,er=0;er<Ar.swatches.length;++er)if(rr.r===Ar.swatches[er].r&&rr.g===Ar.swatches[er].g&&rr.b===Ar.swatches[er].b&&rr.a===Ar.swatches[er].a){vr=er;break}Oe.parent().find(".minicolors-swatches .minicolors-swatch").removeClass("selected"),vr!==-1&&Oe.parent().find(".minicolors-swatches .minicolors-swatch").eq(er).addClass("selected")}Ar.change&&(Ar.changeDelay?(clearTimeout(Oe.data("minicolors-changeTimeout")),Oe.data("minicolors-changeTimeout",setTimeout(function(){Ar.change.call(Oe.get(0),Je,Ye)},Ar.changeDelay))):Ar.change.call(Oe.get(0),Je,Ye)),Oe.trigger("change").trigger("input")}}function Re(Oe,Je){return Je==="uppercase"?Oe.toUpperCase():Oe.toLowerCase()}function He(Oe,Je){return!(Oe=Oe.replace(/^#/g,"")).match(/^[A-F0-9]{3,6}/gi)||Oe.length!==3&&Oe.length!==6?"":(Oe.length===3&&Je&&(Oe=Oe[0]+Oe[0]+Oe[1]+Oe[1]+Oe[2]+Oe[2]),"#"+Oe)}function $e(Oe,Je){var Ye=Oe.replace(/[^\d,.]/g,"").split(",");return Ye[0]=Ve(parseInt(Ye[0],10),0,255),Ye[1]=Ve(parseInt(Ye[1],10),0,255),Ye[2]=Ve(parseInt(Ye[2],10),0,255),Ye[3]!==void 0&&(Ye[3]=Ve(parseFloat(Ye[3],10),0,1)),Je?Ye[3]!==void 0?{r:Ye[0],g:Ye[1],b:Ye[2],a:Ye[3]}:{r:Ye[0],g:Ye[1],b:Ye[2]}:Ye[3]!==void 0&&Ye[3]<=1?"rgba("+Ye[0]+", "+Ye[1]+", "+Ye[2]+", "+Ye[3]+")":"rgb("+Ye[0]+", "+Ye[1]+", "+Ye[2]+")"}function ze(Oe,Je){return ir(Oe)?$e(Oe):He(Oe,Je)}function Ve(Oe,Je,Ye){return Oe<Je&&(Oe=Je),Ye<Oe&&(Oe=Ye),Oe}function ir(Oe){var Je=Oe.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return!(!Je||Je.length!==4)}function Ze(Oe){return(Oe=Oe.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+(\.\d{1,2})?|\.\d{1,2})[\s+]?/i))&&Oe.length===6?Oe[4]:"1"}function ar(Oe){return(Oe=Oe.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&Oe.length===4?"#"+("0"+parseInt(Oe[1],10).toString(16)).slice(-2)+("0"+parseInt(Oe[2],10).toString(16)).slice(-2)+("0"+parseInt(Oe[3],10).toString(16)).slice(-2):""}function cr(Oe){var Je=[Oe.r.toString(16),Oe.g.toString(16),Oe.b.toString(16)];return Ae.each(Je,function(Ye,rr){rr.length===1&&(Je[Ye]="0"+rr)}),"#"+Je.join("")}function Xe(Oe){return cr((Je=Oe,er={},Ar=Math.round(Je.h),gr=Math.round(255*Je.s/100),mr=Math.round(255*Je.b/100),gr===0?er.r=er.g=er.b=mr:(vr=Ar%60*((Ye=mr)-(rr=(255-gr)*mr/255))/60,Ar===360&&(Ar=0),Ar<60?(er.r=Ye,er.b=rr,er.g=rr+vr):Ar<120?(er.g=Ye,er.b=rr,er.r=Ye-vr):Ar<180?(er.g=Ye,er.r=rr,er.b=rr+vr):Ar<240?(er.b=Ye,er.r=rr,er.g=Ye-vr):Ar<300?(er.b=Ye,er.g=rr,er.r=rr+vr):Ar<360?(er.r=Ye,er.g=rr,er.b=Ye-vr):(er.r=0,er.g=0,er.b=0)),{r:Math.round(er.r),g:Math.round(er.g),b:Math.round(er.b)}));var Je,Ye,rr,vr,er,Ar,gr,mr}function or(Oe){return{r:(Oe=parseInt(-1<Oe.indexOf("#")?Oe.substring(1):Oe,16))>>16,g:(65280&Oe)>>8,b:255&Oe}}Ae.minicolors={defaults:{animationSpeed:50,animationEasing:"swing",change:null,changeDelay:0,control:"hue",defaultValue:"",format:"hex",hide:null,hideSpeed:100,inline:!1,keywords:"",letterCase:"lowercase",opacity:!1,position:"bottom",show:null,showSpeed:100,theme:"default",swatches:[]}},Ae.extend(Ae.fn,{minicolors:function(Oe,Je){switch(Oe){case"destroy":return Ae(this).each(function(){Ee(Ae(this))}),Ae(this);case"hide":return _e(),Ae(this);case"opacity":return Je===void 0?Ae(this).attr("data-opacity"):(Ae(this).each(function(){Fe(Ae(this).attr("data-opacity",Je))}),Ae(this));case"rgbObject":return function(Ye){var rr,vr=Ae(Ye).attr("data-opacity");{var er;rr=ir(Ae(Ye).val())?$e(Ae(Ye).val(),!0):(er=He(Ae(Ye).val(),!0),or(er))}return rr?(vr!==void 0&&Ae.extend(rr,{a:parseFloat(vr)}),rr):null}(Ae(this));case"rgbString":case"rgbaString":return function(Ye,rr){var vr,er=Ae(Ye).attr("data-opacity");{var Ar;vr=ir(Ae(Ye).val())?$e(Ae(Ye).val(),!0):(Ar=He(Ae(Ye).val(),!0),or(Ar))}return vr?(er===void 0&&(er=1),rr?"rgba("+vr.r+", "+vr.g+", "+vr.b+", "+parseFloat(er)+")":"rgb("+vr.r+", "+vr.g+", "+vr.b+")"):null}(Ae(this),Oe==="rgbaString");case"settings":return Je===void 0?Ae(this).data("minicolors-settings"):(Ae(this).each(function(){var Ye=Ae(this).data("minicolors-settings")||{};Ee(Ae(this)),Ae(this).minicolors(Ae.extend(!0,Ye,Je))}),Ae(this));case"show":return Ce(Ae(this).eq(0)),Ae(this);case"value":return Je===void 0?Ae(this).val():(Ae(this).each(function(){typeof Je=="object"&&Je!==null?(Je.opacity!==void 0&&Ae(this).attr("data-opacity",Ve(Je.opacity,0,1)),Je.color&&Ae(this).val(Je.color)):Ae(this).val(Je),Fe(Ae(this))}),Ae(this));default:return Oe!=="create"&&(Je=Oe),Ae(this).each(function(){(function(Ye,rr){var vr,er,Ar,gr,mr,Ur,Lr,Mr=Ae('<div class="minicolors" />'),Qr=Ae.minicolors.defaults;if(!Ye.data("minicolors-initialized")){if(rr=Ae.extend(!0,{},Qr,rr),Mr.addClass("minicolors-theme-"+rr.theme).toggleClass("minicolors-with-opacity",rr.opacity),rr.position!==void 0&&Ae.each(rr.position.split(" "),function(){Mr.addClass("minicolors-position-"+this)}),er=rr.format==="rgb"?rr.opacity?"25":"20":rr.keywords?"11":"7",Ye.addClass("minicolors-input").data("minicolors-initialized",!1).data("minicolors-settings",rr).prop("size",er).wrap(Mr).after('<div class="minicolors-panel minicolors-slider-'+rr.control+'"><div class="minicolors-slider minicolors-sprite"><div class="minicolors-picker"></div></div><div class="minicolors-opacity-slider minicolors-sprite"><div class="minicolors-picker"></div></div><div class="minicolors-grid minicolors-sprite"><div class="minicolors-grid-inner"></div><div class="minicolors-picker"><div></div></div></div></div>'),rr.inline||(Ye.after('<span class="minicolors-swatch minicolors-sprite minicolors-input-swatch"><span class="minicolors-swatch-color"></span></span>'),Ye.next(".minicolors-input-swatch").on("click",function(Dr){Dr.preventDefault(),Ye.trigger("focus")})),(Ur=Ye.parent().find(".minicolors-panel")).on("selectstart",function(){return!1}).end(),rr.swatches&&rr.swatches.length!==0)for(Ur.addClass("minicolors-with-swatches"),Ar=Ae('<ul class="minicolors-swatches"></ul>').appendTo(Ur),Lr=0;Lr<rr.swatches.length;++Lr)gr=typeof rr.swatches[Lr]=="object"?(vr=rr.swatches[Lr].name,rr.swatches[Lr].color):(vr="",rr.swatches[Lr]),gr=ir(mr=gr)?$e(gr,!0):or(He(gr,!0)),Ae('<li class="minicolors-swatch minicolors-sprite"><span class="minicolors-swatch-color"></span></li>').attr("title",vr).appendTo(Ar).data("swatch-color",mr).find(".minicolors-swatch-color").css({backgroundColor:mr!=="transparent"?cr(gr):"transparent",opacity:String(gr.a)}),rr.swatches[Lr]=gr;rr.inline&&Ye.parent().addClass("minicolors-inline"),Fe(Ye,!1),Ye.data("minicolors-initialized",!0)}})(Ae(this),Je)}),Ae(this)}}}),Ae([document]).on("mousedown.minicolors touchstart.minicolors",function(Oe){Ae(Oe.target).parents().add(Oe.target).hasClass("minicolors")||_e()}).on("mousedown.minicolors touchstart.minicolors",".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider",function(Oe){var Je=Ae(this);Oe.preventDefault(),Ae(Oe.delegateTarget).data("minicolors-target",Je),Te(Je,Oe,!0)}).on("mousemove.minicolors touchmove.minicolors",function(Oe){var Je=Ae(Oe.delegateTarget).data("minicolors-target");Je&&Te(Je,Oe)}).on("mouseup.minicolors touchend.minicolors",function(){Ae(this).removeData("minicolors-target")}).on("click.minicolors",".minicolors-swatches li",function(Oe){Oe.preventDefault();var Je=Ae(this),Ye=Je.parents(".minicolors").find(".minicolors-input"),rr=Je.data("swatch-color");xe(Ye,rr,Ze(rr)),Fe(Ye)}).on("mousedown.minicolors touchstart.minicolors",".minicolors-input-swatch",function(Oe){var Je=Ae(this).parent().find(".minicolors-input");Oe.preventDefault(),Ce(Je)}).on("focus.minicolors",".minicolors-input",function(){var Oe=Ae(this);Oe.data("minicolors-initialized")&&Ce(Oe)}).on("blur.minicolors",".minicolors-input",function(){var Oe,Je,Ye,rr,vr,er=Ae(this),Ar=er.data("minicolors-settings");er.data("minicolors-initialized")&&(Oe=Ar.keywords?Ae.map(Ar.keywords.split(","),function(gr){return gr.toLowerCase().trim()}):[],vr=er.val()!==""&&-1<Ae.inArray(er.val().toLowerCase(),Oe)?er.val():(Ye=ir(er.val())?$e(er.val(),!0):(Je=He(er.val(),!0))?or(Je):null)===null?Ar.defaultValue:Ar.format==="rgb"?Ar.opacity?$e("rgba("+Ye.r+","+Ye.g+","+Ye.b+","+er.attr("data-opacity")+")"):$e("rgb("+Ye.r+","+Ye.g+","+Ye.b+")"):cr(Ye),rr=Ar.opacity?er.attr("data-opacity"):1,vr.toLowerCase()==="transparent"&&(rr=0),er.closest(".minicolors").find(".minicolors-input-swatch > span").css("opacity",String(rr)),er.val(vr),er.val()===""&&er.val(ze(Ar.defaultValue,!0)),er.val(Re(er.val(),Ar.letterCase)))}).on("keydown.minicolors",".minicolors-input",function(Oe){var Je=Ae(this);if(Je.data("minicolors-initialized"))switch(Oe.which){case 9:_e();break;case 13:case 27:_e(),Je.blur()}}).on("keyup.minicolors",".minicolors-input",function(){var Oe=Ae(this);Oe.data("minicolors-initialized")&&Fe(Oe,!0)}).on("paste.minicolors",".minicolors-input",function(){var Oe=Ae(this);Oe.data("minicolors-initialized")&&setTimeout(function(){Fe(Oe,!0)},1)})})})(jquery_minicolors_min);var barcodes={},CODE39$1={},Barcode$1={};Object.defineProperty(Barcode$1,"__esModule",{value:!0});function _classCallCheck$t(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}var Barcode=function Be(St,Ae){_classCallCheck$t(this,Be),this.data=St,this.text=Ae.text||St,this.options=Ae};Barcode$1.default=Barcode,Object.defineProperty(CODE39$1,"__esModule",{value:!0}),CODE39$1.CODE39=void 0;var _createClass$l=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_Barcode2$b=Barcode$1,_Barcode3$b=_interopRequireDefault$x(_Barcode2$b);function _interopRequireDefault$x(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$s(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$n(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$n(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var CODE39=function(Be){_inherits$n(St,Be);function St(Ae,Ee){return _classCallCheck$s(this,St),Ae=Ae.toUpperCase(),Ee.mod43&&(Ae+=getCharacter(mod43checksum(Ae))),_possibleConstructorReturn$n(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return _createClass$l(St,[{key:"encode",value:function(){for(var Ee=getEncoding("*"),Ce=0;Ce<this.data.length;Ce++)Ee+=getEncoding(this.data[Ce])+"0";return Ee+=getEncoding("*"),{data:Ee,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),St}(_Barcode3$b.default),characters=["0","1","2","3","4","5","6","7","8","9","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","-","."," ","$","/","+","%","*"],encodings=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function getEncoding(Be){return getBinary(characterValue(Be))}function getBinary(Be){return encodings[Be].toString(2)}function getCharacter(Be){return characters[Be]}function characterValue(Be){return characters.indexOf(Be)}function mod43checksum(Be){for(var St=0,Ae=0;Ae<Be.length;Ae++)St+=characterValue(Be[Ae]);return St=St%43,St}CODE39$1.CODE39=CODE39;var CODE128$2={},CODE128_AUTO={},CODE128$1={},constants$2={};Object.defineProperty(constants$2,"__esModule",{value:!0});var _SET_BY_CODE;function _defineProperty$1(Be,St,Ae){return St in Be?Object.defineProperty(Be,St,{value:Ae,enumerable:!0,configurable:!0,writable:!0}):Be[St]=Ae,Be}var SET_A=constants$2.SET_A=0,SET_B=constants$2.SET_B=1,SET_C=constants$2.SET_C=2;constants$2.SHIFT=98;var START_A=constants$2.START_A=103,START_B=constants$2.START_B=104,START_C=constants$2.START_C=105;constants$2.MODULO=103,constants$2.STOP=106,constants$2.FNC1=207,constants$2.SET_BY_CODE=(_SET_BY_CODE={},_defineProperty$1(_SET_BY_CODE,START_A,SET_A),_defineProperty$1(_SET_BY_CODE,START_B,SET_B),_defineProperty$1(_SET_BY_CODE,START_C,SET_C),_SET_BY_CODE),constants$2.SWAP={101:SET_A,100:SET_B,99:SET_C},constants$2.A_START_CHAR=String.fromCharCode(208),constants$2.B_START_CHAR=String.fromCharCode(209),constants$2.C_START_CHAR=String.fromCharCode(210),constants$2.A_CHARS="[\0-_È-Ï]",constants$2.B_CHARS="[ -È-Ï]",constants$2.C_CHARS="(Ï*[0-9]{2}Ï*)",constants$2.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],Object.defineProperty(CODE128$1,"__esModule",{value:!0});var _createClass$k=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_Barcode2$a=Barcode$1,_Barcode3$a=_interopRequireDefault$w(_Barcode2$a),_constants$a=constants$2;function _interopRequireDefault$w(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$r(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$m(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$m(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var CODE128=function(Be){_inherits$m(St,Be);function St(Ae,Ee){_classCallCheck$r(this,St);var Ce=_possibleConstructorReturn$m(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae.substring(1),Ee));return Ce.bytes=Ae.split("").map(function(_e){return _e.charCodeAt(0)}),Ce}return _createClass$k(St,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var Ee=this.bytes,Ce=Ee.shift()-105,_e=_constants$a.SET_BY_CODE[Ce];if(_e===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&Ee.unshift(_constants$a.FNC1);var Te=St.next(Ee,1,_e);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:St.getBar(Ce)+Te.result+St.getBar((Te.checksum+Ce)%_constants$a.MODULO)+St.getBar(_constants$a.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var Ee=this.options.ean128||!1;return typeof Ee=="string"&&(Ee=Ee.toLowerCase()==="true"),Ee}}],[{key:"getBar",value:function(Ee){return _constants$a.BARS[Ee]?_constants$a.BARS[Ee].toString():""}},{key:"correctIndex",value:function(Ee,Ce){if(Ce===_constants$a.SET_A){var _e=Ee.shift();return _e<32?_e+64:_e-32}else return Ce===_constants$a.SET_B?Ee.shift()-32:(Ee.shift()-48)*10+Ee.shift()-48}},{key:"next",value:function(Ee,Ce,_e){if(!Ee.length)return{result:"",checksum:0};var Te=void 0,Se=void 0;if(Ee[0]>=200){Se=Ee.shift()-105;var xe=_constants$a.SWAP[Se];xe!==void 0?Te=St.next(Ee,Ce+1,xe):((_e===_constants$a.SET_A||_e===_constants$a.SET_B)&&Se===_constants$a.SHIFT&&(Ee[0]=_e===_constants$a.SET_A?Ee[0]>95?Ee[0]-96:Ee[0]:Ee[0]<32?Ee[0]+96:Ee[0]),Te=St.next(Ee,Ce+1,_e))}else Se=St.correctIndex(Ee,_e),Te=St.next(Ee,Ce+1,_e);var Fe=St.getBar(Se),Ue=Se*Ce;return{result:Fe+Te.result,checksum:Ue+Te.checksum}}}]),St}(_Barcode3$a.default);CODE128$1.default=CODE128;var auto={};Object.defineProperty(auto,"__esModule",{value:!0});var _constants$9=constants$2,matchSetALength=function(St){return St.match(new RegExp("^"+_constants$9.A_CHARS+"*"))[0].length},matchSetBLength=function(St){return St.match(new RegExp("^"+_constants$9.B_CHARS+"*"))[0].length},matchSetC=function(St){return St.match(new RegExp("^"+_constants$9.C_CHARS+"*"))[0]};function autoSelectFromAB(Be,St){var Ae=St?_constants$9.A_CHARS:_constants$9.B_CHARS,Ee=Be.match(new RegExp("^("+Ae+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(Ee)return Ee[1]+String.fromCharCode(204)+autoSelectFromC(Be.substring(Ee[1].length));var Ce=Be.match(new RegExp("^"+Ae+"+"))[0];return Ce.length===Be.length?Be:Ce+String.fromCharCode(St?205:206)+autoSelectFromAB(Be.substring(Ce.length),!St)}function autoSelectFromC(Be){var St=matchSetC(Be),Ae=St.length;if(Ae===Be.length)return Be;Be=Be.substring(Ae);var Ee=matchSetALength(Be)>=matchSetBLength(Be);return St+String.fromCharCode(Ee?206:205)+autoSelectFromAB(Be,Ee)}auto.default=function(Be){var St=void 0,Ae=matchSetC(Be).length;if(Ae>=2)St=_constants$9.C_START_CHAR+autoSelectFromC(Be);else{var Ee=matchSetALength(Be)>matchSetBLength(Be);St=(Ee?_constants$9.A_START_CHAR:_constants$9.B_START_CHAR)+autoSelectFromAB(Be,Ee)}return St.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(Ce,_e){return String.fromCharCode(203)+_e})},Object.defineProperty(CODE128_AUTO,"__esModule",{value:!0});var _CODE2$4=CODE128$1,_CODE3$3=_interopRequireDefault$v(_CODE2$4),_auto=auto,_auto2=_interopRequireDefault$v(_auto);function _interopRequireDefault$v(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$q(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$l(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$l(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var CODE128AUTO=function(Be){_inherits$l(St,Be);function St(Ae,Ee){if(_classCallCheck$q(this,St),/^[\x00-\x7F\xC8-\xD3]+$/.test(Ae))var Ce=_possibleConstructorReturn$l(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,(0,_auto2.default)(Ae),Ee));else var Ce=_possibleConstructorReturn$l(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee));return _possibleConstructorReturn$l(Ce)}return St}(_CODE3$3.default);CODE128_AUTO.default=CODE128AUTO;var CODE128A$1={};Object.defineProperty(CODE128A$1,"__esModule",{value:!0});var _createClass$j=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_CODE2$3=CODE128$1,_CODE3$2=_interopRequireDefault$u(_CODE2$3),_constants$8=constants$2;function _interopRequireDefault$u(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$p(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$k(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$k(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var CODE128A=function(Be){_inherits$k(St,Be);function St(Ae,Ee){return _classCallCheck$p(this,St),_possibleConstructorReturn$k(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,_constants$8.A_START_CHAR+Ae,Ee))}return _createClass$j(St,[{key:"valid",value:function(){return new RegExp("^"+_constants$8.A_CHARS+"+$").test(this.data)}}]),St}(_CODE3$2.default);CODE128A$1.default=CODE128A;var CODE128B$1={};Object.defineProperty(CODE128B$1,"__esModule",{value:!0});var _createClass$i=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_CODE2$2=CODE128$1,_CODE3$1=_interopRequireDefault$t(_CODE2$2),_constants$7=constants$2;function _interopRequireDefault$t(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$o(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$j(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$j(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var CODE128B=function(Be){_inherits$j(St,Be);function St(Ae,Ee){return _classCallCheck$o(this,St),_possibleConstructorReturn$j(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,_constants$7.B_START_CHAR+Ae,Ee))}return _createClass$i(St,[{key:"valid",value:function(){return new RegExp("^"+_constants$7.B_CHARS+"+$").test(this.data)}}]),St}(_CODE3$1.default);CODE128B$1.default=CODE128B;var CODE128C$1={};Object.defineProperty(CODE128C$1,"__esModule",{value:!0});var _createClass$h=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_CODE2$1=CODE128$1,_CODE3=_interopRequireDefault$s(_CODE2$1),_constants$6=constants$2;function _interopRequireDefault$s(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$n(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$i(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$i(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var CODE128C=function(Be){_inherits$i(St,Be);function St(Ae,Ee){return _classCallCheck$n(this,St),_possibleConstructorReturn$i(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,_constants$6.C_START_CHAR+Ae,Ee))}return _createClass$h(St,[{key:"valid",value:function(){return new RegExp("^"+_constants$6.C_CHARS+"+$").test(this.data)}}]),St}(_CODE3.default);CODE128C$1.default=CODE128C,Object.defineProperty(CODE128$2,"__esModule",{value:!0}),CODE128$2.CODE128C=CODE128$2.CODE128B=CODE128$2.CODE128A=CODE128$2.CODE128=void 0;var _CODE128_AUTO=CODE128_AUTO,_CODE128_AUTO2=_interopRequireDefault$r(_CODE128_AUTO),_CODE128A=CODE128A$1,_CODE128A2=_interopRequireDefault$r(_CODE128A),_CODE128B=CODE128B$1,_CODE128B2=_interopRequireDefault$r(_CODE128B),_CODE128C=CODE128C$1,_CODE128C2=_interopRequireDefault$r(_CODE128C);function _interopRequireDefault$r(Be){return Be&&Be.__esModule?Be:{default:Be}}CODE128$2.CODE128=_CODE128_AUTO2.default,CODE128$2.CODE128A=_CODE128A2.default,CODE128$2.CODE128B=_CODE128B2.default,CODE128$2.CODE128C=_CODE128C2.default;var EAN_UPC={},EAN13$1={},constants$1={};Object.defineProperty(constants$1,"__esModule",{value:!0}),constants$1.SIDE_BIN="101",constants$1.MIDDLE_BIN="01010",constants$1.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},constants$1.EAN2_STRUCTURE=["LL","LG","GL","GG"],constants$1.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],constants$1.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var EAN$1={},encoder={};Object.defineProperty(encoder,"__esModule",{value:!0});var _constants$5=constants$1,encode$3=function(St,Ae,Ee){var Ce=St.split("").map(function(Te,Se){return _constants$5.BINARIES[Ae[Se]]}).map(function(Te,Se){return Te?Te[St[Se]]:""});if(Ee){var _e=St.length-1;Ce=Ce.map(function(Te,Se){return Se<_e?Te+Ee:Te})}return Ce.join("")};encoder.default=encode$3,Object.defineProperty(EAN$1,"__esModule",{value:!0});var _createClass$g=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_constants$4=constants$1,_encoder$4=encoder,_encoder2$4=_interopRequireDefault$q(_encoder$4),_Barcode2$9=Barcode$1,_Barcode3$9=_interopRequireDefault$q(_Barcode2$9);function _interopRequireDefault$q(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$m(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$h(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$h(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var EAN=function(Be){_inherits$h(St,Be);function St(Ae,Ee){_classCallCheck$m(this,St);var Ce=_possibleConstructorReturn$h(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee));return Ce.fontSize=!Ee.flat&&Ee.fontSize>Ee.width*10?Ee.width*10:Ee.fontSize,Ce.guardHeight=Ee.height+Ce.fontSize/2+Ee.textMargin,Ce}return _createClass$g(St,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(Ee,Ce){return this.text.substr(Ee,Ce)}},{key:"leftEncode",value:function(Ee,Ce){return(0,_encoder2$4.default)(Ee,Ce)}},{key:"rightText",value:function(Ee,Ce){return this.text.substr(Ee,Ce)}},{key:"rightEncode",value:function(Ee,Ce){return(0,_encoder2$4.default)(Ee,Ce)}},{key:"encodeGuarded",value:function(){var Ee={fontSize:this.fontSize},Ce={height:this.guardHeight};return[{data:_constants$4.SIDE_BIN,options:Ce},{data:this.leftEncode(),text:this.leftText(),options:Ee},{data:_constants$4.MIDDLE_BIN,options:Ce},{data:this.rightEncode(),text:this.rightText(),options:Ee},{data:_constants$4.SIDE_BIN,options:Ce}]}},{key:"encodeFlat",value:function(){var Ee=[_constants$4.SIDE_BIN,this.leftEncode(),_constants$4.MIDDLE_BIN,this.rightEncode(),_constants$4.SIDE_BIN];return{data:Ee.join(""),text:this.text}}}]),St}(_Barcode3$9.default);EAN$1.default=EAN,Object.defineProperty(EAN13$1,"__esModule",{value:!0});var _createClass$f=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_get$1=function Be(St,Ae,Ee){St===null&&(St=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(St,Ae);if(Ce===void 0){var _e=Object.getPrototypeOf(St);return _e===null?void 0:Be(_e,Ae,Ee)}else{if("value"in Ce)return Ce.value;var Te=Ce.get;return Te===void 0?void 0:Te.call(Ee)}},_constants$3=constants$1,_EAN2$2=EAN$1,_EAN3$2=_interopRequireDefault$p(_EAN2$2);function _interopRequireDefault$p(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$l(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$g(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$g(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var checksum$4=function(St){var Ae=St.substr(0,12).split("").map(function(Ee){return+Ee}).reduce(function(Ee,Ce,_e){return _e%2?Ee+Ce*3:Ee+Ce},0);return(10-Ae%10)%10},EAN13=function(Be){_inherits$g(St,Be);function St(Ae,Ee){_classCallCheck$l(this,St),Ae.search(/^[0-9]{12}$/)!==-1&&(Ae+=checksum$4(Ae));var Ce=_possibleConstructorReturn$g(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee));return Ce.lastChar=Ee.lastChar,Ce}return _createClass$f(St,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===checksum$4(this.data)}},{key:"leftText",value:function(){return _get$1(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var Ee=this.data.substr(1,6),Ce=_constants$3.EAN13_STRUCTURE[this.data[0]];return _get$1(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"leftEncode",this).call(this,Ee,Ce)}},{key:"rightText",value:function(){return _get$1(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var Ee=this.data.substr(7,6);return _get$1(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"rightEncode",this).call(this,Ee,"RRRRRR")}},{key:"encodeGuarded",value:function(){var Ee=_get$1(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(Ee.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(Ee.push({data:"00"}),Ee.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),Ee}}]),St}(_EAN3$2.default);EAN13$1.default=EAN13;var EAN8$1={};Object.defineProperty(EAN8$1,"__esModule",{value:!0});var _createClass$e=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_get=function Be(St,Ae,Ee){St===null&&(St=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(St,Ae);if(Ce===void 0){var _e=Object.getPrototypeOf(St);return _e===null?void 0:Be(_e,Ae,Ee)}else{if("value"in Ce)return Ce.value;var Te=Ce.get;return Te===void 0?void 0:Te.call(Ee)}},_EAN2$1=EAN$1,_EAN3$1=_interopRequireDefault$o(_EAN2$1);function _interopRequireDefault$o(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$k(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$f(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$f(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var checksum$3=function(St){var Ae=St.substr(0,7).split("").map(function(Ee){return+Ee}).reduce(function(Ee,Ce,_e){return _e%2?Ee+Ce:Ee+Ce*3},0);return(10-Ae%10)%10},EAN8=function(Be){_inherits$f(St,Be);function St(Ae,Ee){return _classCallCheck$k(this,St),Ae.search(/^[0-9]{7}$/)!==-1&&(Ae+=checksum$3(Ae)),_possibleConstructorReturn$f(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return _createClass$e(St,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===checksum$3(this.data)}},{key:"leftText",value:function(){return _get(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var Ee=this.data.substr(0,4);return _get(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"leftEncode",this).call(this,Ee,"LLLL")}},{key:"rightText",value:function(){return _get(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var Ee=this.data.substr(4,4);return _get(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"rightEncode",this).call(this,Ee,"RRRR")}}]),St}(_EAN3$1.default);EAN8$1.default=EAN8;var EAN5$1={};Object.defineProperty(EAN5$1,"__esModule",{value:!0});var _createClass$d=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_constants$2=constants$1,_encoder$3=encoder,_encoder2$3=_interopRequireDefault$n(_encoder$3),_Barcode2$8=Barcode$1,_Barcode3$8=_interopRequireDefault$n(_Barcode2$8);function _interopRequireDefault$n(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$j(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$e(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$e(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var checksum$2=function(St){var Ae=St.split("").map(function(Ee){return+Ee}).reduce(function(Ee,Ce,_e){return _e%2?Ee+Ce*9:Ee+Ce*3},0);return Ae%10},EAN5=function(Be){_inherits$e(St,Be);function St(Ae,Ee){return _classCallCheck$j(this,St),_possibleConstructorReturn$e(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return _createClass$d(St,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var Ee=_constants$2.EAN5_STRUCTURE[checksum$2(this.data)];return{data:"1011"+(0,_encoder2$3.default)(this.data,Ee,"01"),text:this.text}}}]),St}(_Barcode3$8.default);EAN5$1.default=EAN5;var EAN2$1={};Object.defineProperty(EAN2$1,"__esModule",{value:!0});var _createClass$c=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_constants$1=constants$1,_encoder$2=encoder,_encoder2$2=_interopRequireDefault$m(_encoder$2),_Barcode2$7=Barcode$1,_Barcode3$7=_interopRequireDefault$m(_Barcode2$7);function _interopRequireDefault$m(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$i(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$d(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$d(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var EAN2=function(Be){_inherits$d(St,Be);function St(Ae,Ee){return _classCallCheck$i(this,St),_possibleConstructorReturn$d(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return _createClass$c(St,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var Ee=_constants$1.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,_encoder2$2.default)(this.data,Ee,"01"),text:this.text}}}]),St}(_Barcode3$7.default);EAN2$1.default=EAN2;var UPC$1={};Object.defineProperty(UPC$1,"__esModule",{value:!0});var _createClass$b=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}();UPC$1.checksum=checksum$1;var _encoder$1=encoder,_encoder2$1=_interopRequireDefault$l(_encoder$1),_Barcode2$6=Barcode$1,_Barcode3$6=_interopRequireDefault$l(_Barcode2$6);function _interopRequireDefault$l(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$h(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$c(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$c(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var UPC=function(Be){_inherits$c(St,Be);function St(Ae,Ee){_classCallCheck$h(this,St),Ae.search(/^[0-9]{11}$/)!==-1&&(Ae+=checksum$1(Ae));var Ce=_possibleConstructorReturn$c(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee));return Ce.displayValue=Ee.displayValue,Ee.fontSize>Ee.width*10?Ce.fontSize=Ee.width*10:Ce.fontSize=Ee.fontSize,Ce.guardHeight=Ee.height+Ce.fontSize/2+Ee.textMargin,Ce}return _createClass$b(St,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==checksum$1(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var Ee="";return Ee+="101",Ee+=(0,_encoder2$1.default)(this.data.substr(0,6),"LLLLLL"),Ee+="01010",Ee+=(0,_encoder2$1.default)(this.data.substr(6,6),"RRRRRR"),Ee+="101",{data:Ee,text:this.text}}},{key:"guardedEncoding",value:function(){var Ee=[];return this.displayValue&&Ee.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),Ee.push({data:"101"+(0,_encoder2$1.default)(this.data[0],"L"),options:{height:this.guardHeight}}),Ee.push({data:(0,_encoder2$1.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),Ee.push({data:"01010",options:{height:this.guardHeight}}),Ee.push({data:(0,_encoder2$1.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),Ee.push({data:(0,_encoder2$1.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&Ee.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),Ee}}]),St}(_Barcode3$6.default);function checksum$1(Be){var St=0,Ae;for(Ae=1;Ae<11;Ae+=2)St+=parseInt(Be[Ae]);for(Ae=0;Ae<11;Ae+=2)St+=parseInt(Be[Ae])*3;return(10-St%10)%10}UPC$1.default=UPC;var UPCE$1={};Object.defineProperty(UPCE$1,"__esModule",{value:!0});var _createClass$a=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_encoder=encoder,_encoder2=_interopRequireDefault$k(_encoder),_Barcode2$5=Barcode$1,_Barcode3$5=_interopRequireDefault$k(_Barcode2$5),_UPC$1=UPC$1;function _interopRequireDefault$k(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$g(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$b(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$b(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var EXPANSIONS=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],PARITIES=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],UPCE=function(Be){_inherits$b(St,Be);function St(Ae,Ee){_classCallCheck$g(this,St);var Ce=_possibleConstructorReturn$b(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee));if(Ce.isValid=!1,Ae.search(/^[0-9]{6}$/)!==-1)Ce.middleDigits=Ae,Ce.upcA=expandToUPCA(Ae,"0"),Ce.text=Ee.text||""+Ce.upcA[0]+Ae+Ce.upcA[Ce.upcA.length-1],Ce.isValid=!0;else if(Ae.search(/^[01][0-9]{7}$/)!==-1)if(Ce.middleDigits=Ae.substring(1,Ae.length-1),Ce.upcA=expandToUPCA(Ce.middleDigits,Ae[0]),Ce.upcA[Ce.upcA.length-1]===Ae[Ae.length-1])Ce.isValid=!0;else return _possibleConstructorReturn$b(Ce);else return _possibleConstructorReturn$b(Ce);return Ce.displayValue=Ee.displayValue,Ee.fontSize>Ee.width*10?Ce.fontSize=Ee.width*10:Ce.fontSize=Ee.fontSize,Ce.guardHeight=Ee.height+Ce.fontSize/2+Ee.textMargin,Ce}return _createClass$a(St,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var Ee="";return Ee+="101",Ee+=this.encodeMiddleDigits(),Ee+="010101",{data:Ee,text:this.text}}},{key:"guardedEncoding",value:function(){var Ee=[];return this.displayValue&&Ee.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),Ee.push({data:"101",options:{height:this.guardHeight}}),Ee.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),Ee.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&Ee.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),Ee}},{key:"encodeMiddleDigits",value:function(){var Ee=this.upcA[0],Ce=this.upcA[this.upcA.length-1],_e=PARITIES[parseInt(Ce)][parseInt(Ee)];return(0,_encoder2.default)(this.middleDigits,_e)}}]),St}(_Barcode3$5.default);function expandToUPCA(Be,St){for(var Ae=parseInt(Be[Be.length-1]),Ee=EXPANSIONS[Ae],Ce="",_e=0,Te=0;Te<Ee.length;Te++){var Se=Ee[Te];Se==="X"?Ce+=Be[_e++]:Ce+=Se}return Ce=""+St+Ce,""+Ce+(0,_UPC$1.checksum)(Ce)}UPCE$1.default=UPCE,Object.defineProperty(EAN_UPC,"__esModule",{value:!0}),EAN_UPC.UPCE=EAN_UPC.UPC=EAN_UPC.EAN2=EAN_UPC.EAN5=EAN_UPC.EAN8=EAN_UPC.EAN13=void 0;var _EAN=EAN13$1,_EAN2=_interopRequireDefault$j(_EAN),_EAN3=EAN8$1,_EAN4=_interopRequireDefault$j(_EAN3),_EAN5=EAN5$1,_EAN6=_interopRequireDefault$j(_EAN5),_EAN7=EAN2$1,_EAN8=_interopRequireDefault$j(_EAN7),_UPC=UPC$1,_UPC2=_interopRequireDefault$j(_UPC),_UPCE=UPCE$1,_UPCE2=_interopRequireDefault$j(_UPCE);function _interopRequireDefault$j(Be){return Be&&Be.__esModule?Be:{default:Be}}EAN_UPC.EAN13=_EAN2.default,EAN_UPC.EAN8=_EAN4.default,EAN_UPC.EAN5=_EAN6.default,EAN_UPC.EAN2=_EAN8.default,EAN_UPC.UPC=_UPC2.default,EAN_UPC.UPCE=_UPCE2.default;var ITF$2={},ITF$1={},constants={};Object.defineProperty(constants,"__esModule",{value:!0}),constants.START_BIN="1010",constants.END_BIN="11101",constants.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"],Object.defineProperty(ITF$1,"__esModule",{value:!0});var _createClass$9=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_constants=constants,_Barcode2$4=Barcode$1,_Barcode3$4=_interopRequireDefault$i(_Barcode2$4);function _interopRequireDefault$i(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$f(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$a(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$a(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var ITF=function(Be){_inherits$a(St,Be);function St(){return _classCallCheck$f(this,St),_possibleConstructorReturn$a(this,(St.__proto__||Object.getPrototypeOf(St)).apply(this,arguments))}return _createClass$9(St,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var Ee=this,Ce=this.data.match(/.{2}/g).map(function(_e){return Ee.encodePair(_e)}).join("");return{data:_constants.START_BIN+Ce+_constants.END_BIN,text:this.text}}},{key:"encodePair",value:function(Ee){var Ce=_constants.BINARIES[Ee[1]];return _constants.BINARIES[Ee[0]].split("").map(function(_e,Te){return(_e==="1"?"111":"1")+(Ce[Te]==="1"?"000":"0")}).join("")}}]),St}(_Barcode3$4.default);ITF$1.default=ITF;var ITF14$1={};Object.defineProperty(ITF14$1,"__esModule",{value:!0});var _createClass$8=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_ITF2$1=ITF$1,_ITF3$1=_interopRequireDefault$h(_ITF2$1);function _interopRequireDefault$h(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$e(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$9(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$9(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var checksum=function(St){var Ae=St.substr(0,13).split("").map(function(Ee){return parseInt(Ee,10)}).reduce(function(Ee,Ce,_e){return Ee+Ce*(3-_e%2*2)},0);return Math.ceil(Ae/10)*10-Ae},ITF14=function(Be){_inherits$9(St,Be);function St(Ae,Ee){return _classCallCheck$e(this,St),Ae.search(/^[0-9]{13}$/)!==-1&&(Ae+=checksum(Ae)),_possibleConstructorReturn$9(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return _createClass$8(St,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===checksum(this.data)}}]),St}(_ITF3$1.default);ITF14$1.default=ITF14,Object.defineProperty(ITF$2,"__esModule",{value:!0}),ITF$2.ITF14=ITF$2.ITF=void 0;var _ITF$1=ITF$1,_ITF2=_interopRequireDefault$g(_ITF$1),_ITF3=ITF14$1,_ITF4=_interopRequireDefault$g(_ITF3);function _interopRequireDefault$g(Be){return Be&&Be.__esModule?Be:{default:Be}}ITF$2.ITF=_ITF2.default,ITF$2.ITF14=_ITF4.default;var MSI$2={},MSI$1={};Object.defineProperty(MSI$1,"__esModule",{value:!0});var _createClass$7=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_Barcode2$3=Barcode$1,_Barcode3$3=_interopRequireDefault$f(_Barcode2$3);function _interopRequireDefault$f(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$d(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$8(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$8(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var MSI=function(Be){_inherits$8(St,Be);function St(Ae,Ee){return _classCallCheck$d(this,St),_possibleConstructorReturn$8(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return _createClass$7(St,[{key:"encode",value:function(){for(var Ee="110",Ce=0;Ce<this.data.length;Ce++){var _e=parseInt(this.data[Ce]),Te=_e.toString(2);Te=addZeroes(Te,4-Te.length);for(var Se=0;Se<Te.length;Se++)Ee+=Te[Se]=="0"?"100":"110"}return Ee+="1001",{data:Ee,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),St}(_Barcode3$3.default);function addZeroes(Be,St){for(var Ae=0;Ae<St;Ae++)Be="0"+Be;return Be}MSI$1.default=MSI;var MSI10$1={},checksums={};Object.defineProperty(checksums,"__esModule",{value:!0}),checksums.mod10=mod10,checksums.mod11=mod11;function mod10(Be){for(var St=0,Ae=0;Ae<Be.length;Ae++){var Ee=parseInt(Be[Ae]);(Ae+Be.length)%2===0?St+=Ee:St+=Ee*2%10+Math.floor(Ee*2/10)}return(10-St%10)%10}function mod11(Be){for(var St=0,Ae=[2,3,4,5,6,7],Ee=0;Ee<Be.length;Ee++){var Ce=parseInt(Be[Be.length-1-Ee]);St+=Ae[Ee%Ae.length]*Ce}return(11-St%11)%11}Object.defineProperty(MSI10$1,"__esModule",{value:!0});var _MSI2$4=MSI$1,_MSI3$4=_interopRequireDefault$e(_MSI2$4),_checksums$3=checksums;function _interopRequireDefault$e(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$c(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$7(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$7(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var MSI10=function(Be){_inherits$7(St,Be);function St(Ae,Ee){return _classCallCheck$c(this,St),_possibleConstructorReturn$7(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae+(0,_checksums$3.mod10)(Ae),Ee))}return St}(_MSI3$4.default);MSI10$1.default=MSI10;var MSI11$1={};Object.defineProperty(MSI11$1,"__esModule",{value:!0});var _MSI2$3=MSI$1,_MSI3$3=_interopRequireDefault$d(_MSI2$3),_checksums$2=checksums;function _interopRequireDefault$d(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$b(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$6(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$6(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var MSI11=function(Be){_inherits$6(St,Be);function St(Ae,Ee){return _classCallCheck$b(this,St),_possibleConstructorReturn$6(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae+(0,_checksums$2.mod11)(Ae),Ee))}return St}(_MSI3$3.default);MSI11$1.default=MSI11;var MSI1010$1={};Object.defineProperty(MSI1010$1,"__esModule",{value:!0});var _MSI2$2=MSI$1,_MSI3$2=_interopRequireDefault$c(_MSI2$2),_checksums$1=checksums;function _interopRequireDefault$c(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$a(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$5(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$5(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var MSI1010=function(Be){_inherits$5(St,Be);function St(Ae,Ee){return _classCallCheck$a(this,St),Ae+=(0,_checksums$1.mod10)(Ae),Ae+=(0,_checksums$1.mod10)(Ae),_possibleConstructorReturn$5(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return St}(_MSI3$2.default);MSI1010$1.default=MSI1010;var MSI1110$1={};Object.defineProperty(MSI1110$1,"__esModule",{value:!0});var _MSI2$1=MSI$1,_MSI3$1=_interopRequireDefault$b(_MSI2$1),_checksums=checksums;function _interopRequireDefault$b(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$9(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$4(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$4(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var MSI1110=function(Be){_inherits$4(St,Be);function St(Ae,Ee){return _classCallCheck$9(this,St),Ae+=(0,_checksums.mod11)(Ae),Ae+=(0,_checksums.mod10)(Ae),_possibleConstructorReturn$4(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return St}(_MSI3$1.default);MSI1110$1.default=MSI1110,Object.defineProperty(MSI$2,"__esModule",{value:!0}),MSI$2.MSI1110=MSI$2.MSI1010=MSI$2.MSI11=MSI$2.MSI10=MSI$2.MSI=void 0;var _MSI$1=MSI$1,_MSI2=_interopRequireDefault$a(_MSI$1),_MSI3=MSI10$1,_MSI4=_interopRequireDefault$a(_MSI3),_MSI5=MSI11$1,_MSI6=_interopRequireDefault$a(_MSI5),_MSI7=MSI1010$1,_MSI8=_interopRequireDefault$a(_MSI7),_MSI9=MSI1110$1,_MSI10=_interopRequireDefault$a(_MSI9);function _interopRequireDefault$a(Be){return Be&&Be.__esModule?Be:{default:Be}}MSI$2.MSI=_MSI2.default,MSI$2.MSI10=_MSI4.default,MSI$2.MSI11=_MSI6.default,MSI$2.MSI1010=_MSI8.default,MSI$2.MSI1110=_MSI10.default;var pharmacode$1={};Object.defineProperty(pharmacode$1,"__esModule",{value:!0}),pharmacode$1.pharmacode=void 0;var _createClass$6=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_Barcode2$2=Barcode$1,_Barcode3$2=_interopRequireDefault$9(_Barcode2$2);function _interopRequireDefault$9(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$8(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$3(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$3(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var pharmacode=function(Be){_inherits$3(St,Be);function St(Ae,Ee){_classCallCheck$8(this,St);var Ce=_possibleConstructorReturn$3(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee));return Ce.number=parseInt(Ae,10),Ce}return _createClass$6(St,[{key:"encode",value:function(){for(var Ee=this.number,Ce="";!isNaN(Ee)&&Ee!=0;)Ee%2===0?(Ce="11100"+Ce,Ee=(Ee-2)/2):(Ce="100"+Ce,Ee=(Ee-1)/2);return Ce=Ce.slice(0,-2),{data:Ce,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),St}(_Barcode3$2.default);pharmacode$1.pharmacode=pharmacode;var codabar$1={};Object.defineProperty(codabar$1,"__esModule",{value:!0}),codabar$1.codabar=void 0;var _createClass$5=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_Barcode2$1=Barcode$1,_Barcode3$1=_interopRequireDefault$8(_Barcode2$1);function _interopRequireDefault$8(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$7(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$2(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$2(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var codabar=function(Be){_inherits$2(St,Be);function St(Ae,Ee){_classCallCheck$7(this,St),Ae.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(Ae="A"+Ae+"A");var Ce=_possibleConstructorReturn$2(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae.toUpperCase(),Ee));return Ce.text=Ce.options.text||Ce.text.replace(/[A-D]/g,""),Ce}return _createClass$5(St,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var Ee=[],Ce=this.getEncodings(),_e=0;_e<this.data.length;_e++)Ee.push(Ce[this.data.charAt(_e)]),_e!==this.data.length-1&&Ee.push("0");return{text:this.text,data:Ee.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),St}(_Barcode3$1.default);codabar$1.codabar=codabar;var GenericBarcode$1={};Object.defineProperty(GenericBarcode$1,"__esModule",{value:!0}),GenericBarcode$1.GenericBarcode=void 0;var _createClass$4=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_Barcode2=Barcode$1,_Barcode3=_interopRequireDefault$7(_Barcode2);function _interopRequireDefault$7(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$6(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$1(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$1(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var GenericBarcode=function(Be){_inherits$1(St,Be);function St(Ae,Ee){return _classCallCheck$6(this,St),_possibleConstructorReturn$1(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return _createClass$4(St,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),St}(_Barcode3.default);GenericBarcode$1.GenericBarcode=GenericBarcode,Object.defineProperty(barcodes,"__esModule",{value:!0});var _CODE=CODE39$1,_CODE2=CODE128$2,_EAN_UPC=EAN_UPC,_ITF=ITF$2,_MSI=MSI$2,_pharmacode=pharmacode$1,_codabar=codabar$1,_GenericBarcode=GenericBarcode$1;barcodes.default={CODE39:_CODE.CODE39,CODE128:_CODE2.CODE128,CODE128A:_CODE2.CODE128A,CODE128B:_CODE2.CODE128B,CODE128C:_CODE2.CODE128C,EAN13:_EAN_UPC.EAN13,EAN8:_EAN_UPC.EAN8,EAN5:_EAN_UPC.EAN5,EAN2:_EAN_UPC.EAN2,UPC:_EAN_UPC.UPC,UPCE:_EAN_UPC.UPCE,ITF14:_ITF.ITF14,ITF:_ITF.ITF,MSI:_MSI.MSI,MSI10:_MSI.MSI10,MSI11:_MSI.MSI11,MSI1010:_MSI.MSI1010,MSI1110:_MSI.MSI1110,pharmacode:_pharmacode.pharmacode,codabar:_codabar.codabar,GenericBarcode:_GenericBarcode.GenericBarcode};var merge={};Object.defineProperty(merge,"__esModule",{value:!0});var _extends=Object.assign||function(Be){for(var St=1;St<arguments.length;St++){var Ae=arguments[St];for(var Ee in Ae)Object.prototype.hasOwnProperty.call(Ae,Ee)&&(Be[Ee]=Ae[Ee])}return Be};merge.default=function(Be,St){return _extends({},Be,St)};var linearizeEncodings$1={};Object.defineProperty(linearizeEncodings$1,"__esModule",{value:!0}),linearizeEncodings$1.default=linearizeEncodings;function linearizeEncodings(Be){var St=[];function Ae(Ee){if(Array.isArray(Ee))for(var Ce=0;Ce<Ee.length;Ce++)Ae(Ee[Ce]);else Ee.text=Ee.text||"",Ee.data=Ee.data||"",St.push(Ee)}return Ae(Be),St}var fixOptions$1={};Object.defineProperty(fixOptions$1,"__esModule",{value:!0}),fixOptions$1.default=fixOptions;function fixOptions(Be){return Be.marginTop=Be.marginTop||Be.margin,Be.marginBottom=Be.marginBottom||Be.margin,Be.marginRight=Be.marginRight||Be.margin,Be.marginLeft=Be.marginLeft||Be.margin,Be}var getRenderProperties$1={},getOptionsFromElement$1={},optionsFromStrings$1={};Object.defineProperty(optionsFromStrings$1,"__esModule",{value:!0}),optionsFromStrings$1.default=optionsFromStrings;function optionsFromStrings(Be){var St=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var Ae in St)St.hasOwnProperty(Ae)&&(Ae=St[Ae],typeof Be[Ae]=="string"&&(Be[Ae]=parseInt(Be[Ae],10)));return typeof Be.displayValue=="string"&&(Be.displayValue=Be.displayValue!="false"),Be}var defaults$1={};Object.defineProperty(defaults$1,"__esModule",{value:!0});var defaults={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};defaults$1.default=defaults,Object.defineProperty(getOptionsFromElement$1,"__esModule",{value:!0});var _optionsFromStrings$1=optionsFromStrings$1,_optionsFromStrings2$1=_interopRequireDefault$6(_optionsFromStrings$1),_defaults$1=defaults$1,_defaults2$1=_interopRequireDefault$6(_defaults$1);function _interopRequireDefault$6(Be){return Be&&Be.__esModule?Be:{default:Be}}function getOptionsFromElement(Be){var St={};for(var Ae in _defaults2$1.default)_defaults2$1.default.hasOwnProperty(Ae)&&(Be.hasAttribute("jsbarcode-"+Ae.toLowerCase())&&(St[Ae]=Be.getAttribute("jsbarcode-"+Ae.toLowerCase())),Be.hasAttribute("data-"+Ae.toLowerCase())&&(St[Ae]=Be.getAttribute("data-"+Ae.toLowerCase())));return St.value=Be.getAttribute("jsbarcode-value")||Be.getAttribute("data-value"),St=(0,_optionsFromStrings2$1.default)(St),St}getOptionsFromElement$1.default=getOptionsFromElement;var renderers={},canvas={},shared$5={};Object.defineProperty(shared$5,"__esModule",{value:!0}),shared$5.getTotalWidthOfEncodings=shared$5.calculateEncodingAttributes=shared$5.getBarcodePadding=shared$5.getEncodingHeight=shared$5.getMaximumHeightOfEncodings=void 0;var _merge$3=merge,_merge2$3=_interopRequireDefault$5(_merge$3);function _interopRequireDefault$5(Be){return Be&&Be.__esModule?Be:{default:Be}}function getEncodingHeight(Be,St){return St.height+(St.displayValue&&Be.text.length>0?St.fontSize+St.textMargin:0)+St.marginTop+St.marginBottom}function getBarcodePadding(Be,St,Ae){if(Ae.displayValue&&St<Be){if(Ae.textAlign=="center")return Math.floor((Be-St)/2);if(Ae.textAlign=="left")return 0;if(Ae.textAlign=="right")return Math.floor(Be-St)}return 0}function calculateEncodingAttributes(Be,St,Ae){for(var Ee=0;Ee<Be.length;Ee++){var Ce=Be[Ee],_e=(0,_merge2$3.default)(St,Ce.options),Te;_e.displayValue?Te=messureText(Ce.text,_e,Ae):Te=0;var Se=Ce.data.length*_e.width;Ce.width=Math.ceil(Math.max(Te,Se)),Ce.height=getEncodingHeight(Ce,_e),Ce.barcodePadding=getBarcodePadding(Te,Se,_e)}}function getTotalWidthOfEncodings(Be){for(var St=0,Ae=0;Ae<Be.length;Ae++)St+=Be[Ae].width;return St}function getMaximumHeightOfEncodings(Be){for(var St=0,Ae=0;Ae<Be.length;Ae++)Be[Ae].height>St&&(St=Be[Ae].height);return St}function messureText(Be,St,Ae){var Ee;if(Ae)Ee=Ae;else if(typeof document<"u")Ee=document.createElement("canvas").getContext("2d");else return 0;Ee.font=St.fontOptions+" "+St.fontSize+"px "+St.font;var Ce=Ee.measureText(Be);if(!Ce)return 0;var _e=Ce.width;return _e}shared$5.getMaximumHeightOfEncodings=getMaximumHeightOfEncodings,shared$5.getEncodingHeight=getEncodingHeight,shared$5.getBarcodePadding=getBarcodePadding,shared$5.calculateEncodingAttributes=calculateEncodingAttributes,shared$5.getTotalWidthOfEncodings=getTotalWidthOfEncodings,Object.defineProperty(canvas,"__esModule",{value:!0});var _createClass$3=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_merge$2=merge,_merge2$2=_interopRequireDefault$4(_merge$2),_shared$1=shared$5;function _interopRequireDefault$4(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$5(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}var CanvasRenderer$1=function(){function Be(St,Ae,Ee){_classCallCheck$5(this,Be),this.canvas=St,this.encodings=Ae,this.options=Ee}return _createClass$3(Be,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var Ae=0;Ae<this.encodings.length;Ae++){var Ee=(0,_merge2$2.default)(this.options,this.encodings[Ae].options);this.drawCanvasBarcode(Ee,this.encodings[Ae]),this.drawCanvasText(Ee,this.encodings[Ae]),this.moveCanvasDrawing(this.encodings[Ae])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var Ae=this.canvas.getContext("2d");Ae.save(),(0,_shared$1.calculateEncodingAttributes)(this.encodings,this.options,Ae);var Ee=(0,_shared$1.getTotalWidthOfEncodings)(this.encodings),Ce=(0,_shared$1.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=Ee+this.options.marginLeft+this.options.marginRight,this.canvas.height=Ce,Ae.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(Ae.fillStyle=this.options.background,Ae.fillRect(0,0,this.canvas.width,this.canvas.height)),Ae.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(Ae,Ee){var Ce=this.canvas.getContext("2d"),_e=Ee.data,Te;Ae.textPosition=="top"?Te=Ae.marginTop+Ae.fontSize+Ae.textMargin:Te=Ae.marginTop,Ce.fillStyle=Ae.lineColor;for(var Se=0;Se<_e.length;Se++){var xe=Se*Ae.width+Ee.barcodePadding;_e[Se]==="1"?Ce.fillRect(xe,Te,Ae.width,Ae.height):_e[Se]&&Ce.fillRect(xe,Te,Ae.width,Ae.height*_e[Se])}}},{key:"drawCanvasText",value:function(Ae,Ee){var Ce=this.canvas.getContext("2d"),_e=Ae.fontOptions+" "+Ae.fontSize+"px "+Ae.font;if(Ae.displayValue){var Te,Se;Ae.textPosition=="top"?Se=Ae.marginTop+Ae.fontSize-Ae.textMargin:Se=Ae.height+Ae.textMargin+Ae.marginTop+Ae.fontSize,Ce.font=_e,Ae.textAlign=="left"||Ee.barcodePadding>0?(Te=0,Ce.textAlign="left"):Ae.textAlign=="right"?(Te=Ee.width-1,Ce.textAlign="right"):(Te=Ee.width/2,Ce.textAlign="center"),Ce.fillText(Ee.text,Te,Se)}}},{key:"moveCanvasDrawing",value:function(Ae){var Ee=this.canvas.getContext("2d");Ee.translate(Ae.width,0)}},{key:"restoreCanvas",value:function(){var Ae=this.canvas.getContext("2d");Ae.restore()}}]),Be}();canvas.default=CanvasRenderer$1;var svg$2={};Object.defineProperty(svg$2,"__esModule",{value:!0});var _createClass$2=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_merge$1=merge,_merge2$1=_interopRequireDefault$3(_merge$1),_shared=shared$5;function _interopRequireDefault$3(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$4(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}var svgns="http://www.w3.org/2000/svg",SVGRenderer=function(){function Be(St,Ae,Ee){_classCallCheck$4(this,Be),this.svg=St,this.encodings=Ae,this.options=Ee,this.document=Ee.xmlDocument||document}return _createClass$2(Be,[{key:"render",value:function(){var Ae=this.options.marginLeft;this.prepareSVG();for(var Ee=0;Ee<this.encodings.length;Ee++){var Ce=this.encodings[Ee],_e=(0,_merge2$1.default)(this.options,Ce.options),Te=this.createGroup(Ae,_e.marginTop,this.svg);this.setGroupOptions(Te,_e),this.drawSvgBarcode(Te,_e,Ce),this.drawSVGText(Te,_e,Ce),Ae+=Ce.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,_shared.calculateEncodingAttributes)(this.encodings,this.options);var Ae=(0,_shared.getTotalWidthOfEncodings)(this.encodings),Ee=(0,_shared.getMaximumHeightOfEncodings)(this.encodings),Ce=Ae+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(Ce,Ee),this.options.background&&this.drawRect(0,0,Ce,Ee,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(Ae,Ee,Ce){var _e=Ce.data,Te;Ee.textPosition=="top"?Te=Ee.fontSize+Ee.textMargin:Te=0;for(var Se=0,xe=0,Fe=0;Fe<_e.length;Fe++)xe=Fe*Ee.width+Ce.barcodePadding,_e[Fe]==="1"?Se++:Se>0&&(this.drawRect(xe-Ee.width*Se,Te,Ee.width*Se,Ee.height,Ae),Se=0);Se>0&&this.drawRect(xe-Ee.width*(Se-1),Te,Ee.width*Se,Ee.height,Ae)}},{key:"drawSVGText",value:function(Ae,Ee,Ce){var _e=this.document.createElementNS(svgns,"text");if(Ee.displayValue){var Te,Se;_e.setAttribute("style","font:"+Ee.fontOptions+" "+Ee.fontSize+"px "+Ee.font),Ee.textPosition=="top"?Se=Ee.fontSize-Ee.textMargin:Se=Ee.height+Ee.textMargin+Ee.fontSize,Ee.textAlign=="left"||Ce.barcodePadding>0?(Te=0,_e.setAttribute("text-anchor","start")):Ee.textAlign=="right"?(Te=Ce.width-1,_e.setAttribute("text-anchor","end")):(Te=Ce.width/2,_e.setAttribute("text-anchor","middle")),_e.setAttribute("x",Te),_e.setAttribute("y",Se),_e.appendChild(this.document.createTextNode(Ce.text)),Ae.appendChild(_e)}}},{key:"setSvgAttributes",value:function(Ae,Ee){var Ce=this.svg;Ce.setAttribute("width",Ae+"px"),Ce.setAttribute("height",Ee+"px"),Ce.setAttribute("x","0px"),Ce.setAttribute("y","0px"),Ce.setAttribute("viewBox","0 0 "+Ae+" "+Ee),Ce.setAttribute("xmlns",svgns),Ce.setAttribute("version","1.1"),Ce.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(Ae,Ee,Ce){var _e=this.document.createElementNS(svgns,"g");return _e.setAttribute("transform","translate("+Ae+", "+Ee+")"),Ce.appendChild(_e),_e}},{key:"setGroupOptions",value:function(Ae,Ee){Ae.setAttribute("style","fill:"+Ee.lineColor+";")}},{key:"drawRect",value:function(Ae,Ee,Ce,_e,Te){var Se=this.document.createElementNS(svgns,"rect");return Se.setAttribute("x",Ae),Se.setAttribute("y",Ee),Se.setAttribute("width",Ce),Se.setAttribute("height",_e),Te.appendChild(Se),Se}}]),Be}();svg$2.default=SVGRenderer;var object={};Object.defineProperty(object,"__esModule",{value:!0});var _createClass$1=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}();function _classCallCheck$3(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}var ObjectRenderer=function(){function Be(St,Ae,Ee){_classCallCheck$3(this,Be),this.object=St,this.encodings=Ae,this.options=Ee}return _createClass$1(Be,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),Be}();object.default=ObjectRenderer,Object.defineProperty(renderers,"__esModule",{value:!0});var _canvas=canvas,_canvas2=_interopRequireDefault$2(_canvas),_svg=svg$2,_svg2=_interopRequireDefault$2(_svg),_object=object,_object2=_interopRequireDefault$2(_object);function _interopRequireDefault$2(Be){return Be&&Be.__esModule?Be:{default:Be}}renderers.default={CanvasRenderer:_canvas2.default,SVGRenderer:_svg2.default,ObjectRenderer:_object2.default};var exceptions={};Object.defineProperty(exceptions,"__esModule",{value:!0});function _classCallCheck$2(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var InvalidInputException=function(Be){_inherits(St,Be);function St(Ae,Ee){_classCallCheck$2(this,St);var Ce=_possibleConstructorReturn(this,(St.__proto__||Object.getPrototypeOf(St)).call(this));return Ce.name="InvalidInputException",Ce.symbology=Ae,Ce.input=Ee,Ce.message='"'+Ce.input+'" is not a valid input for '+Ce.symbology,Ce}return St}(Error),InvalidElementException=function(Be){_inherits(St,Be);function St(){_classCallCheck$2(this,St);var Ae=_possibleConstructorReturn(this,(St.__proto__||Object.getPrototypeOf(St)).call(this));return Ae.name="InvalidElementException",Ae.message="Not supported type to render on",Ae}return St}(Error),NoElementException=function(Be){_inherits(St,Be);function St(){_classCallCheck$2(this,St);var Ae=_possibleConstructorReturn(this,(St.__proto__||Object.getPrototypeOf(St)).call(this));return Ae.name="NoElementException",Ae.message="No element to render on.",Ae}return St}(Error);exceptions.InvalidInputException=InvalidInputException,exceptions.InvalidElementException=InvalidElementException,exceptions.NoElementException=NoElementException,Object.defineProperty(getRenderProperties$1,"__esModule",{value:!0});var _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Be){return typeof Be}:function(Be){return Be&&typeof Symbol=="function"&&Be.constructor===Symbol&&Be!==Symbol.prototype?"symbol":typeof Be},_getOptionsFromElement=getOptionsFromElement$1,_getOptionsFromElement2=_interopRequireDefault$1(_getOptionsFromElement),_renderers=renderers,_renderers2=_interopRequireDefault$1(_renderers),_exceptions$1=exceptions;function _interopRequireDefault$1(Be){return Be&&Be.__esModule?Be:{default:Be}}function getRenderProperties(Be){if(typeof Be=="string")return querySelectedRenderProperties(Be);if(Array.isArray(Be)){for(var St=[],Ae=0;Ae<Be.length;Ae++)St.push(getRenderProperties(Be[Ae]));return St}else{if(typeof HTMLCanvasElement<"u"&&Be instanceof HTMLImageElement)return newCanvasRenderProperties(Be);if(Be&&Be.nodeName&&Be.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&Be instanceof SVGElement)return{element:Be,options:(0,_getOptionsFromElement2.default)(Be),renderer:_renderers2.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&Be instanceof HTMLCanvasElement)return{element:Be,options:(0,_getOptionsFromElement2.default)(Be),renderer:_renderers2.default.CanvasRenderer};if(Be&&Be.getContext)return{element:Be,renderer:_renderers2.default.CanvasRenderer};if(Be&&(typeof Be>"u"?"undefined":_typeof$4(Be))==="object"&&!Be.nodeName)return{element:Be,renderer:_renderers2.default.ObjectRenderer};throw new _exceptions$1.InvalidElementException}}function querySelectedRenderProperties(Be){var St=document.querySelectorAll(Be);if(St.length!==0){for(var Ae=[],Ee=0;Ee<St.length;Ee++)Ae.push(getRenderProperties(St[Ee]));return Ae}}function newCanvasRenderProperties(Be){var St=document.createElement("canvas");return{element:St,options:(0,_getOptionsFromElement2.default)(Be),renderer:_renderers2.default.CanvasRenderer,afterRender:function(){Be.setAttribute("src",St.toDataURL())}}}getRenderProperties$1.default=getRenderProperties;var ErrorHandler$1={};Object.defineProperty(ErrorHandler$1,"__esModule",{value:!0});var _createClass=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}();function _classCallCheck$1(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}var ErrorHandler=function(){function Be(St){_classCallCheck$1(this,Be),this.api=St}return _createClass(Be,[{key:"handleCatch",value:function(Ae){if(Ae.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw Ae.message;else throw Ae;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(Ae){try{var Ee=Ae.apply(void 0,arguments);return this.api._options.valid(!0),Ee}catch(Ce){return this.handleCatch(Ce),this.api}}}]),Be}();ErrorHandler$1.default=ErrorHandler;var _barcodes=barcodes,_barcodes2=_interopRequireDefault(_barcodes),_merge=merge,_merge2=_interopRequireDefault(_merge),_linearizeEncodings=linearizeEncodings$1,_linearizeEncodings2=_interopRequireDefault(_linearizeEncodings),_fixOptions=fixOptions$1,_fixOptions2=_interopRequireDefault(_fixOptions),_getRenderProperties=getRenderProperties$1,_getRenderProperties2=_interopRequireDefault(_getRenderProperties),_optionsFromStrings=optionsFromStrings$1,_optionsFromStrings2=_interopRequireDefault(_optionsFromStrings),_ErrorHandler=ErrorHandler$1,_ErrorHandler2=_interopRequireDefault(_ErrorHandler),_exceptions=exceptions,_defaults=defaults$1,_defaults2=_interopRequireDefault(_defaults);function _interopRequireDefault(Be){return Be&&Be.__esModule?Be:{default:Be}}var API=function(){},JsBarcode=function(St,Ae,Ee){var Ce=new API;if(typeof St>"u")throw Error("No element to render on was provided.");return Ce._renderProperties=(0,_getRenderProperties2.default)(St),Ce._encodings=[],Ce._options=_defaults2.default,Ce._errorHandler=new _ErrorHandler2.default(Ce),typeof Ae<"u"&&(Ee=Ee||{},Ee.format||(Ee.format=autoSelectBarcode()),Ce.options(Ee)[Ee.format](Ae,Ee).render()),Ce};JsBarcode.getModule=function(Be){return _barcodes2.default[Be]};for(var name in _barcodes2.default)_barcodes2.default.hasOwnProperty(name)&®isterBarcode(_barcodes2.default,name);function registerBarcode(Be,St){API.prototype[St]=API.prototype[St.toUpperCase()]=API.prototype[St.toLowerCase()]=function(Ae,Ee){var Ce=this;return Ce._errorHandler.wrapBarcodeCall(function(){Ee.text=typeof Ee.text>"u"?void 0:""+Ee.text;var _e=(0,_merge2.default)(Ce._options,Ee);_e=(0,_optionsFromStrings2.default)(_e);var Te=Be[St],Se=encode$2(Ae,Te,_e);return Ce._encodings.push(Se),Ce})}}function encode$2(Be,St,Ae){Be=""+Be;var Ee=new St(Be,Ae);if(!Ee.valid())throw new _exceptions.InvalidInputException(Ee.constructor.name,Be);var Ce=Ee.encode();Ce=(0,_linearizeEncodings2.default)(Ce);for(var _e=0;_e<Ce.length;_e++)Ce[_e].options=(0,_merge2.default)(Ae,Ce[_e].options);return Ce}function autoSelectBarcode(){return _barcodes2.default.CODE128?"CODE128":Object.keys(_barcodes2.default)[0]}API.prototype.options=function(Be){return this._options=(0,_merge2.default)(this._options,Be),this},API.prototype.blank=function(Be){var St=new Array(Be+1).join("0");return this._encodings.push({data:St}),this},API.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var Be;for(var St in this._renderProperties){Be=this._renderProperties[St];var Ae=(0,_merge2.default)(this._options,Be.options);Ae.format=="auto"&&(Ae.format=autoSelectBarcode()),this._errorHandler.wrapBarcodeCall(function(){var Ee=Ae.value,Ce=_barcodes2.default[Ae.format.toUpperCase()],_e=encode$2(Ee,Ce,Ae);render(Be,_e,Ae)})}}},API.prototype.render=function(){if(!this._renderProperties)throw new _exceptions.NoElementException;if(Array.isArray(this._renderProperties))for(var Be=0;Be<this._renderProperties.length;Be++)render(this._renderProperties[Be],this._encodings,this._options);else render(this._renderProperties,this._encodings,this._options);return this},API.prototype._defaults=_defaults2.default;function render(Be,St,Ae){St=(0,_linearizeEncodings2.default)(St);for(var Ee=0;Ee<St.length;Ee++)St[Ee].options=(0,_merge2.default)(Ae,St[Ee].options),(0,_fixOptions2.default)(St[Ee].options);(0,_fixOptions2.default)(Ae);var Ce=Be.renderer,_e=new Ce(Be.element,St,Ae);_e.render(),Be.afterRender&&Be.afterRender()}typeof window<"u"&&(window.JsBarcode=JsBarcode),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(Be,St){var Ae=[];return jQuery(this).each(function(){Ae.push(this)}),JsBarcode(Ae,Be,St)});var JsBarcode_1=JsBarcode;const JsBarcode$1=getDefaultExportFromCjs(JsBarcode_1);(function(){function Be(Xe){this.mode=Ae.MODE_8BIT_BYTE,this.data=Xe,this.parsedData=[];for(var or=0,Oe=this.data.length;or<Oe;or++){var Je=[],Ye=this.data.charCodeAt(or);Ye>65536?(Je[0]=240|(Ye&1835008)>>>18,Je[1]=128|(Ye&258048)>>>12,Je[2]=128|(Ye&4032)>>>6,Je[3]=128|Ye&63):Ye>2048?(Je[0]=224|(Ye&61440)>>>12,Je[1]=128|(Ye&4032)>>>6,Je[2]=128|Ye&63):Ye>128?(Je[0]=192|(Ye&1984)>>>6,Je[1]=128|Ye&63):Je[0]=Ye,this.parsedData.push(Je)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}Be.prototype={getLength:function(Xe){return this.parsedData.length},write:function(Xe){for(var or=0,Oe=this.parsedData.length;or<Oe;or++)Xe.put(this.parsedData[or],8)}};function St(Xe,or){this.typeNumber=Xe,this.errorCorrectLevel=or,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}St.prototype={addData:function(Xe){var or=new Be(Xe);this.dataList.push(or),this.dataCache=null},isDark:function(Xe,or){if(Xe<0||this.moduleCount<=Xe||or<0||this.moduleCount<=or)throw new Error(Xe+","+or);return this.modules[Xe][or]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(Xe,or){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var Oe=0;Oe<this.moduleCount;Oe++){this.modules[Oe]=new Array(this.moduleCount);for(var Je=0;Je<this.moduleCount;Je++)this.modules[Oe][Je]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(Xe,or),this.typeNumber>=7&&this.setupTypeNumber(Xe),this.dataCache==null&&(this.dataCache=St.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,or)},setupPositionProbePattern:function(Xe,or){for(var Oe=-1;Oe<=7;Oe++)if(!(Xe+Oe<=-1||this.moduleCount<=Xe+Oe))for(var Je=-1;Je<=7;Je++)or+Je<=-1||this.moduleCount<=or+Je||(0<=Oe&&Oe<=6&&(Je==0||Je==6)||0<=Je&&Je<=6&&(Oe==0||Oe==6)||2<=Oe&&Oe<=4&&2<=Je&&Je<=4?this.modules[Xe+Oe][or+Je]=!0:this.modules[Xe+Oe][or+Je]=!1)},getBestMaskPattern:function(){for(var Xe=0,or=0,Oe=0;Oe<8;Oe++){this.makeImpl(!0,Oe);var Je=_e.getLostPoint(this);(Oe==0||Xe>Je)&&(Xe=Je,or=Oe)}return or},createMovieClip:function(Xe,or,Oe){var Je=Xe.createEmptyMovieClip(or,Oe),Ye=1;this.make();for(var rr=0;rr<this.modules.length;rr++)for(var vr=rr*Ye,er=0;er<this.modules[rr].length;er++){var Ar=er*Ye,gr=this.modules[rr][er];gr&&(Je.beginFill(0,100),Je.moveTo(Ar,vr),Je.lineTo(Ar+Ye,vr),Je.lineTo(Ar+Ye,vr+Ye),Je.lineTo(Ar,vr+Ye),Je.endFill())}return Je},setupTimingPattern:function(){for(var Xe=8;Xe<this.moduleCount-8;Xe++)this.modules[Xe][6]==null&&(this.modules[Xe][6]=Xe%2==0);for(var or=8;or<this.moduleCount-8;or++)this.modules[6][or]==null&&(this.modules[6][or]=or%2==0)},setupPositionAdjustPattern:function(){for(var Xe=_e.getPatternPosition(this.typeNumber),or=0;or<Xe.length;or++)for(var Oe=0;Oe<Xe.length;Oe++){var Je=Xe[or],Ye=Xe[Oe];if(this.modules[Je][Ye]==null)for(var rr=-2;rr<=2;rr++)for(var vr=-2;vr<=2;vr++)rr==-2||rr==2||vr==-2||vr==2||rr==0&&vr==0?this.modules[Je+rr][Ye+vr]=!0:this.modules[Je+rr][Ye+vr]=!1}},setupTypeNumber:function(Xe){for(var or=_e.getBCHTypeNumber(this.typeNumber),Oe=0;Oe<18;Oe++){var Je=!Xe&&(or>>Oe&1)==1;this.modules[Math.floor(Oe/3)][Oe%3+this.moduleCount-8-3]=Je}for(var Oe=0;Oe<18;Oe++){var Je=!Xe&&(or>>Oe&1)==1;this.modules[Oe%3+this.moduleCount-8-3][Math.floor(Oe/3)]=Je}},setupTypeInfo:function(Xe,or){for(var Oe=this.errorCorrectLevel<<3|or,Je=_e.getBCHTypeInfo(Oe),Ye=0;Ye<15;Ye++){var rr=!Xe&&(Je>>Ye&1)==1;Ye<6?this.modules[Ye][8]=rr:Ye<8?this.modules[Ye+1][8]=rr:this.modules[this.moduleCount-15+Ye][8]=rr}for(var Ye=0;Ye<15;Ye++){var rr=!Xe&&(Je>>Ye&1)==1;Ye<8?this.modules[8][this.moduleCount-Ye-1]=rr:Ye<9?this.modules[8][15-Ye-1+1]=rr:this.modules[8][15-Ye-1]=rr}this.modules[this.moduleCount-8][8]=!Xe},mapData:function(Xe,or){for(var Oe=-1,Je=this.moduleCount-1,Ye=7,rr=0,vr=this.moduleCount-1;vr>0;vr-=2)for(vr==6&&vr--;;){for(var er=0;er<2;er++)if(this.modules[Je][vr-er]==null){var Ar=!1;rr<Xe.length&&(Ar=(Xe[rr]>>>Ye&1)==1);var gr=_e.getMask(or,Je,vr-er);gr&&(Ar=!Ar),this.modules[Je][vr-er]=Ar,Ye--,Ye==-1&&(rr++,Ye=7)}if(Je+=Oe,Je<0||this.moduleCount<=Je){Je-=Oe,Oe=-Oe;break}}}},St.PAD0=236,St.PAD1=17,St.createData=function(Xe,or,Oe){for(var Je=Fe.getRSBlocks(Xe,or),Ye=new Ue,rr=0;rr<Oe.length;rr++){var vr=Oe[rr];Ye.put(vr.mode,4),Ye.put(vr.getLength(),_e.getLengthInBits(vr.mode,Xe)),vr.write(Ye)}for(var er=0,rr=0;rr<Je.length;rr++)er+=Je[rr].dataCount;if(Ye.getLengthInBits()>er*8)throw new Error("code length overflow. ("+Ye.getLengthInBits()+">"+er*8+")");for(Ye.getLengthInBits()+4<=er*8&&Ye.put(0,4);Ye.getLengthInBits()%8!=0;)Ye.putBit(!1);for(;!(Ye.getLengthInBits()>=er*8||(Ye.put(St.PAD0,8),Ye.getLengthInBits()>=er*8));)Ye.put(St.PAD1,8);return St.createBytes(Ye,Je)},St.createBytes=function(Xe,or){for(var Oe=0,Je=0,Ye=0,rr=new Array(or.length),vr=new Array(or.length),er=0;er<or.length;er++){var Ar=or[er].dataCount,gr=or[er].totalCount-Ar;Je=Math.max(Je,Ar),Ye=Math.max(Ye,gr),rr[er]=new Array(Ar);for(var mr=0;mr<rr[er].length;mr++)rr[er][mr]=255&Xe.buffer[mr+Oe];Oe+=Ar;var Ur=_e.getErrorCorrectPolynomial(gr),Lr=new xe(rr[er],Ur.getLength()-1),Mr=Lr.mod(Ur);vr[er]=new Array(Ur.getLength()-1);for(var mr=0;mr<vr[er].length;mr++){var Qr=mr+Mr.getLength()-vr[er].length;vr[er][mr]=Qr>=0?Mr.get(Qr):0}}for(var Dr=0,mr=0;mr<or.length;mr++)Dr+=or[mr].totalCount;for(var Xr=new Array(Dr),sn=0,mr=0;mr<Je;mr++)for(var er=0;er<or.length;er++)mr<rr[er].length&&(Xr[sn++]=rr[er][mr]);for(var mr=0;mr<Ye;mr++)for(var er=0;er<or.length;er++)mr<vr[er].length&&(Xr[sn++]=vr[er][mr]);return Xr};for(var Ae={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},Ee={L:1,M:0,Q:3,H:2},Ce={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},_e={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(Xe){for(var or=Xe<<10;_e.getBCHDigit(or)-_e.getBCHDigit(_e.G15)>=0;)or^=_e.G15<<_e.getBCHDigit(or)-_e.getBCHDigit(_e.G15);return(Xe<<10|or)^_e.G15_MASK},getBCHTypeNumber:function(Xe){for(var or=Xe<<12;_e.getBCHDigit(or)-_e.getBCHDigit(_e.G18)>=0;)or^=_e.G18<<_e.getBCHDigit(or)-_e.getBCHDigit(_e.G18);return Xe<<12|or},getBCHDigit:function(Xe){for(var or=0;Xe!=0;)or++,Xe>>>=1;return or},getPatternPosition:function(Xe){return _e.PATTERN_POSITION_TABLE[Xe-1]},getMask:function(Xe,or,Oe){switch(Xe){case Ce.PATTERN000:return(or+Oe)%2==0;case Ce.PATTERN001:return or%2==0;case Ce.PATTERN010:return Oe%3==0;case Ce.PATTERN011:return(or+Oe)%3==0;case Ce.PATTERN100:return(Math.floor(or/2)+Math.floor(Oe/3))%2==0;case Ce.PATTERN101:return or*Oe%2+or*Oe%3==0;case Ce.PATTERN110:return(or*Oe%2+or*Oe%3)%2==0;case Ce.PATTERN111:return(or*Oe%3+(or+Oe)%2)%2==0;default:throw new Error("bad maskPattern:"+Xe)}},getErrorCorrectPolynomial:function(Xe){for(var or=new xe([1],0),Oe=0;Oe<Xe;Oe++)or=or.multiply(new xe([1,Te.gexp(Oe)],0));return or},getLengthInBits:function(Xe,or){if(1<=or&&or<10)switch(Xe){case Ae.MODE_NUMBER:return 10;case Ae.MODE_ALPHA_NUM:return 9;case Ae.MODE_8BIT_BYTE:return 8;case Ae.MODE_KANJI:return 8;default:throw new Error("mode:"+Xe)}else if(or<27)switch(Xe){case Ae.MODE_NUMBER:return 12;case Ae.MODE_ALPHA_NUM:return 11;case Ae.MODE_8BIT_BYTE:return 16;case Ae.MODE_KANJI:return 10;default:throw new Error("mode:"+Xe)}else if(or<41)switch(Xe){case Ae.MODE_NUMBER:return 14;case Ae.MODE_ALPHA_NUM:return 13;case Ae.MODE_8BIT_BYTE:return 16;case Ae.MODE_KANJI:return 12;default:throw new Error("mode:"+Xe)}else throw new Error("type:"+or)},getLostPoint:function(Xe){for(var or=Xe.getModuleCount(),Oe=0,Je=0;Je<or;Je++)for(var Ye=0;Ye<or;Ye++){for(var rr=0,vr=Xe.isDark(Je,Ye),er=-1;er<=1;er++)if(!(Je+er<0||or<=Je+er))for(var Ar=-1;Ar<=1;Ar++)Ye+Ar<0||or<=Ye+Ar||er==0&&Ar==0||vr==Xe.isDark(Je+er,Ye+Ar)&&rr++;rr>5&&(Oe+=3+rr-5)}for(var Je=0;Je<or-1;Je++)for(var Ye=0;Ye<or-1;Ye++){var gr=0;Xe.isDark(Je,Ye)&&gr++,Xe.isDark(Je+1,Ye)&&gr++,Xe.isDark(Je,Ye+1)&&gr++,Xe.isDark(Je+1,Ye+1)&&gr++,(gr==0||gr==4)&&(Oe+=3)}for(var Je=0;Je<or;Je++)for(var Ye=0;Ye<or-6;Ye++)Xe.isDark(Je,Ye)&&!Xe.isDark(Je,Ye+1)&&Xe.isDark(Je,Ye+2)&&Xe.isDark(Je,Ye+3)&&Xe.isDark(Je,Ye+4)&&!Xe.isDark(Je,Ye+5)&&Xe.isDark(Je,Ye+6)&&(Oe+=40);for(var Ye=0;Ye<or;Ye++)for(var Je=0;Je<or-6;Je++)Xe.isDark(Je,Ye)&&!Xe.isDark(Je+1,Ye)&&Xe.isDark(Je+2,Ye)&&Xe.isDark(Je+3,Ye)&&Xe.isDark(Je+4,Ye)&&!Xe.isDark(Je+5,Ye)&&Xe.isDark(Je+6,Ye)&&(Oe+=40);for(var mr=0,Ye=0;Ye<or;Ye++)for(var Je=0;Je<or;Je++)Xe.isDark(Je,Ye)&&mr++;var Ur=Math.abs(100*mr/or/or-50)/5;return Oe+=Ur*10,Oe}},Te={glog:function(Xe){if(Xe<1)throw new Error("glog("+Xe+")");return Te.LOG_TABLE[Xe]},gexp:function(Xe){for(;Xe<0;)Xe+=255;for(;Xe>=256;)Xe-=255;return Te.EXP_TABLE[Xe]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},Se=0;Se<8;Se++)Te.EXP_TABLE[Se]=1<<Se;for(var Se=8;Se<256;Se++)Te.EXP_TABLE[Se]=Te.EXP_TABLE[Se-4]^Te.EXP_TABLE[Se-5]^Te.EXP_TABLE[Se-6]^Te.EXP_TABLE[Se-8];for(var Se=0;Se<255;Se++)Te.LOG_TABLE[Te.EXP_TABLE[Se]]=Se;function xe(Xe,or){if(Xe.length==null)throw new Error(Xe.length+"/"+or);for(var Oe=0;Oe<Xe.length&&Xe[Oe]==0;)Oe++;this.num=new Array(Xe.length-Oe+or);for(var Je=0;Je<Xe.length-Oe;Je++)this.num[Je]=Xe[Je+Oe]}xe.prototype={get:function(Xe){return this.num[Xe]},getLength:function(){return this.num.length},multiply:function(Xe){for(var or=new Array(this.getLength()+Xe.getLength()-1),Oe=0;Oe<this.getLength();Oe++)for(var Je=0;Je<Xe.getLength();Je++)or[Oe+Je]^=Te.gexp(Te.glog(this.get(Oe))+Te.glog(Xe.get(Je)));return new xe(or,0)},mod:function(Xe){if(this.getLength()-Xe.getLength()<0)return this;for(var or=Te.glog(this.get(0))-Te.glog(Xe.get(0)),Oe=new Array(this.getLength()),Je=0;Je<this.getLength();Je++)Oe[Je]=this.get(Je);for(var Je=0;Je<Xe.getLength();Je++)Oe[Je]^=Te.gexp(Te.glog(Xe.get(Je))+or);return new xe(Oe,0).mod(Xe)}};function Fe(Xe,or){this.totalCount=Xe,this.dataCount=or}Fe.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],Fe.getRSBlocks=function(Xe,or){var Oe=Fe.getRsBlockTable(Xe,or);if(Oe==null)throw new Error("bad rs block @ typeNumber:"+Xe+"/errorCorrectLevel:"+or);for(var Je=Oe.length/3,Ye=[],rr=0;rr<Je;rr++)for(var vr=Oe[rr*3+0],er=Oe[rr*3+1],Ar=Oe[rr*3+2],gr=0;gr<vr;gr++)Ye.push(new Fe(er,Ar));return Ye},Fe.getRsBlockTable=function(Xe,or){switch(or){case Ee.L:return Fe.RS_BLOCK_TABLE[(Xe-1)*4+0];case Ee.M:return Fe.RS_BLOCK_TABLE[(Xe-1)*4+1];case Ee.Q:return Fe.RS_BLOCK_TABLE[(Xe-1)*4+2];case Ee.H:return Fe.RS_BLOCK_TABLE[(Xe-1)*4+3];default:return}};function Ue(){this.buffer=[],this.length=0}Ue.prototype={get:function(Xe){var or=Math.floor(Xe/8);return(this.buffer[or]>>>7-Xe%8&1)==1},put:function(Xe,or){for(var Oe=0;Oe<or;Oe++)this.putBit((Xe>>>or-Oe-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(Xe){var or=Math.floor(this.length/8);this.buffer.length<=or&&this.buffer.push(0),Xe&&(this.buffer[or]|=128>>>this.length%8),this.length++}};var Re=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function He(){return typeof CanvasRenderingContext2D<"u"}function $e(){var Xe=!1,or=navigator.userAgent;if(/android/i.test(or)){Xe=!0;var Oe=or.toString().match(/android ([0-9]\.[0-9])/i);Oe&&Oe[1]&&(Xe=parseFloat(Oe[1]))}return Xe}var ze=function(){var Xe=function(or,Oe){this._el=or,this._htOption=Oe};return Xe.prototype.draw=function(or){var Oe=this._htOption,Je=this._el,Ye=or.getModuleCount();Math.floor(Oe.width/Ye),Math.floor(Oe.height/Ye),this.clear();function rr(mr,Ur){var Lr=document.createElementNS("http://www.w3.org/2000/svg",mr);for(var Mr in Ur)Ur.hasOwnProperty(Mr)&&Lr.setAttribute(Mr,Ur[Mr]);return Lr}var vr=rr("svg",{viewBox:"0 0 "+String(Ye)+" "+String(Ye),width:"100%",height:"100%",fill:Oe.colorLight});vr.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),Je.appendChild(vr),vr.appendChild(rr("rect",{fill:Oe.colorLight,width:"100%",height:"100%"})),vr.appendChild(rr("rect",{fill:Oe.colorDark,width:"1",height:"1",id:"template"}));for(var er=0;er<Ye;er++)for(var Ar=0;Ar<Ye;Ar++)if(or.isDark(er,Ar)){var gr=rr("use",{x:String(Ar),y:String(er)});gr.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),vr.appendChild(gr)}},Xe.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},Xe}(),Ve=document.documentElement.tagName.toLowerCase()==="svg",ir=Ve?ze:He()?function(){function Xe(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}if(this&&this._android&&this._android<=2.1){var or=1/window.devicePixelRatio,Oe=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(rr,vr,er,Ar,gr,mr,Ur,Lr,Mr){if("nodeName"in rr&&/img/i.test(rr.nodeName))for(var Qr=arguments.length-1;Qr>=1;Qr--)arguments[Qr]=arguments[Qr]*or;else typeof Lr>"u"&&(arguments[1]*=or,arguments[2]*=or,arguments[3]*=or,arguments[4]*=or);Oe.apply(this,arguments)}}function Je(rr,vr){var er=this;if(er._fFail=vr,er._fSuccess=rr,er._bSupportDataURI===null){var Ar=document.createElement("img"),gr=function(){er._bSupportDataURI=!1,er._fFail&&er._fFail.call(er)},mr=function(){er._bSupportDataURI=!0,er._fSuccess&&er._fSuccess.call(er)};Ar.onabort=gr,Ar.onerror=gr,Ar.onload=mr,Ar.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";return}else er._bSupportDataURI===!0&&er._fSuccess?er._fSuccess.call(er):er._bSupportDataURI===!1&&er._fFail&&er._fFail.call(er)}var Ye=function(rr,vr){this._bIsPainted=!1,this._android=$e(),this._htOption=vr,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=vr.width,this._elCanvas.height=vr.height,rr.appendChild(this._elCanvas),this._el=rr,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return Ye.prototype.draw=function(rr){var vr=this._elImage,er=this._oContext,Ar=this._htOption,gr=rr.getModuleCount(),mr=Ar.width/gr,Ur=Ar.height/gr,Lr=Math.round(mr),Mr=Math.round(Ur);vr.style.display="none",this.clear();for(var Qr=0;Qr<gr;Qr++)for(var Dr=0;Dr<gr;Dr++){var Xr=rr.isDark(Qr,Dr),sn=Dr*mr,ur=Qr*Ur;er.strokeStyle=Xr?Ar.colorDark:Ar.colorLight,er.lineWidth=1,er.fillStyle=Xr?Ar.colorDark:Ar.colorLight,er.fillRect(sn,ur,mr,Ur),er.strokeRect(Math.floor(sn)+.5,Math.floor(ur)+.5,Lr,Mr),er.strokeRect(Math.ceil(sn)-.5,Math.ceil(ur)-.5,Lr,Mr)}this._bIsPainted=!0},Ye.prototype.makeImage=function(){this._bIsPainted&&Je.call(this,Xe)},Ye.prototype.isPainted=function(){return this._bIsPainted},Ye.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},Ye.prototype.round=function(rr){return rr&&Math.floor(rr*1e3)/1e3},Ye}():function(){var Xe=function(or,Oe){this._el=or,this._htOption=Oe};return Xe.prototype.draw=function(or){for(var Oe=this._htOption,Je=this._el,Ye=or.getModuleCount(),rr=Math.floor(Oe.width/Ye),vr=Math.floor(Oe.height/Ye),er=['<table style="border:0;border-collapse:collapse;">'],Ar=0;Ar<Ye;Ar++){er.push("<tr>");for(var gr=0;gr<Ye;gr++)er.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+rr+"px;height:"+vr+"px;background-color:"+(or.isDark(Ar,gr)?Oe.colorDark:Oe.colorLight)+';"></td>');er.push("</tr>")}er.push("</table>"),Je.innerHTML=er.join("");var mr=Je.childNodes[0],Ur=(Oe.width-mr.offsetWidth)/2,Lr=(Oe.height-mr.offsetHeight)/2;Ur>0&&Lr>0&&(mr.style.margin=Lr+"px "+Ur+"px")},Xe.prototype.clear=function(){this._el.innerHTML=""},Xe}();function Ze(Xe,or){for(var Oe=1,Je=ar(Xe),Ye=0,rr=Re.length;Ye<=rr;Ye++){var vr=0;switch(or){case Ee.L:vr=Re[Ye][0];break;case Ee.M:vr=Re[Ye][1];break;case Ee.Q:vr=Re[Ye][2];break;case Ee.H:vr=Re[Ye][3];break}if(Je<=vr)break;Oe++}if(Oe>Re.length)throw new Error("Too long data");return Oe}function ar(Xe){var or=encodeURI(Xe).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return or.length+(or.length!=Xe?3:0)}var cr=function(Xe,or){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:Ee.H},typeof or=="string"&&(or={text:or}),or)for(var Oe in or)this._htOption[Oe]=or[Oe];typeof Xe=="string"&&(Xe=document.getElementById(Xe)),this._htOption.useSVG&&(ir=ze),this._android=$e(),this._el=Xe,this._oQRCode=null,this._oDrawing=new ir(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)};cr.prototype.makeCode=function(Xe){this._oQRCode=new St(Ze(Xe,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(Xe),this._oQRCode.make(),this._el.title=Xe,this._oDrawing.draw(this._oQRCode),this.makeImage()},cr.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},cr.prototype.clear=function(){this._oDrawing.clear()},cr.CorrectLevel=Ee,window.QRCode=cr})();const PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0",PACKET_TYPES.close="1",PACKET_TYPES.ping="2",PACKET_TYPES.pong="3",PACKET_TYPES.message="4",PACKET_TYPES.upgrade="5",PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(Be=>{PACKET_TYPES_REVERSE[PACKET_TYPES[Be]]=Be});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=Be=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Be):Be&&Be.buffer instanceof ArrayBuffer,encodePacket=({type:Be,data:St},Ae,Ee)=>withNativeBlob$1&&St instanceof Blob?Ae?Ee(St):encodeBlobAsBase64(St,Ee):withNativeArrayBuffer$2&&(St instanceof ArrayBuffer||isView$1(St))?Ae?Ee(St):encodeBlobAsBase64(new Blob([St]),Ee):Ee(PACKET_TYPES[Be]+(St||"")),encodeBlobAsBase64=(Be,St)=>{const Ae=new FileReader;return Ae.onload=function(){const Ee=Ae.result.split(",")[1];St("b"+(Ee||""))},Ae.readAsDataURL(Be)},chars$4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$5=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let Be=0;Be<chars$4.length;Be++)lookup$5[chars$4.charCodeAt(Be)]=Be;const decode$3=Be=>{let St=Be.length*.75,Ae=Be.length,Ee,Ce=0,_e,Te,Se,xe;Be[Be.length-1]==="="&&(St--,Be[Be.length-2]==="="&&St--);const Fe=new ArrayBuffer(St),Ue=new Uint8Array(Fe);for(Ee=0;Ee<Ae;Ee+=4)_e=lookup$5[Be.charCodeAt(Ee)],Te=lookup$5[Be.charCodeAt(Ee+1)],Se=lookup$5[Be.charCodeAt(Ee+2)],xe=lookup$5[Be.charCodeAt(Ee+3)],Ue[Ce++]=_e<<2|Te>>4,Ue[Ce++]=(Te&15)<<4|Se>>2,Ue[Ce++]=(Se&3)<<6|xe&63;return Fe},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(Be,St)=>{if(typeof Be!="string")return{type:"message",data:mapBinary(Be,St)};const Ae=Be.charAt(0);return Ae==="b"?{type:"message",data:decodeBase64Packet(Be.substring(1),St)}:PACKET_TYPES_REVERSE[Ae]?Be.length>1?{type:PACKET_TYPES_REVERSE[Ae],data:Be.substring(1)}:{type:PACKET_TYPES_REVERSE[Ae]}:ERROR_PACKET},decodeBase64Packet=(Be,St)=>{if(withNativeArrayBuffer$1){const Ae=decode$3(Be);return mapBinary(Ae,St)}else return{base64:!0,data:Be}},mapBinary=(Be,St)=>{switch(St){case"blob":return Be instanceof ArrayBuffer?new Blob([Be]):Be;case"arraybuffer":default:return Be}},SEPARATOR=String.fromCharCode(30),encodePayload=(Be,St)=>{const Ae=Be.length,Ee=new Array(Ae);let Ce=0;Be.forEach((_e,Te)=>{encodePacket(_e,!1,Se=>{Ee[Te]=Se,++Ce===Ae&&St(Ee.join(SEPARATOR))})})},decodePayload=(Be,St)=>{const Ae=Be.split(SEPARATOR),Ee=[];for(let Ce=0;Ce<Ae.length;Ce++){const _e=decodePacket(Ae[Ce],St);if(Ee.push(_e),_e.type==="error")break}return Ee},protocol$1=4;function Emitter(Be){if(Be)return mixin(Be)}function mixin(Be){for(var St in Emitter.prototype)Be[St]=Emitter.prototype[St];return Be}Emitter.prototype.on=Emitter.prototype.addEventListener=function(Be,St){return this._callbacks=this._callbacks||{},(this._callbacks["$"+Be]=this._callbacks["$"+Be]||[]).push(St),this},Emitter.prototype.once=function(Be,St){function Ae(){this.off(Be,Ae),St.apply(this,arguments)}return Ae.fn=St,this.on(Be,Ae),this},Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(Be,St){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var Ae=this._callbacks["$"+Be];if(!Ae)return this;if(arguments.length==1)return delete this._callbacks["$"+Be],this;for(var Ee,Ce=0;Ce<Ae.length;Ce++)if(Ee=Ae[Ce],Ee===St||Ee.fn===St){Ae.splice(Ce,1);break}return Ae.length===0&&delete this._callbacks["$"+Be],this},Emitter.prototype.emit=function(Be){this._callbacks=this._callbacks||{};for(var St=new Array(arguments.length-1),Ae=this._callbacks["$"+Be],Ee=1;Ee<arguments.length;Ee++)St[Ee-1]=arguments[Ee];if(Ae){Ae=Ae.slice(0);for(var Ee=0,Ce=Ae.length;Ee<Ce;++Ee)Ae[Ee].apply(this,St)}return this},Emitter.prototype.emitReserved=Emitter.prototype.emit,Emitter.prototype.listeners=function(Be){return this._callbacks=this._callbacks||{},this._callbacks["$"+Be]||[]},Emitter.prototype.hasListeners=function(Be){return!!this.listeners(Be).length};const globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function pick(Be,...St){return St.reduce((Ae,Ee)=>(Be.hasOwnProperty(Ee)&&(Ae[Ee]=Be[Ee]),Ae),{})}const NATIVE_SET_TIMEOUT=setTimeout,NATIVE_CLEAR_TIMEOUT=clearTimeout;function installTimerFunctions(Be,St){St.useNativeTimers?(Be.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),Be.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(Be.setTimeoutFn=setTimeout.bind(globalThisShim),Be.clearTimeoutFn=clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(Be){return typeof Be=="string"?utf8Length(Be):Math.ceil((Be.byteLength||Be.size)*BASE64_OVERHEAD)}function utf8Length(Be){let St=0,Ae=0;for(let Ee=0,Ce=Be.length;Ee<Ce;Ee++)St=Be.charCodeAt(Ee),St<128?Ae+=1:St<2048?Ae+=2:St<55296||St>=57344?Ae+=3:(Ee++,Ae+=4);return Ae}class TransportError extends Error{constructor(St,Ae,Ee){super(St),this.description=Ae,this.context=Ee,this.type="TransportError"}}class Transport extends Emitter{constructor(St){super(),this.writable=!1,installTimerFunctions(this,St),this.opts=St,this.query=St.query,this.readyState="",this.socket=St.socket}onError(St,Ae,Ee){return super.emitReserved("error",new TransportError(St,Ae,Ee)),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(St){this.readyState==="open"&&this.write(St)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(St){const Ae=decodePacket(St,this.socket.binaryType);this.onPacket(Ae)}onPacket(St){super.emitReserved("packet",St)}onClose(St){this.readyState="closed",super.emitReserved("close",St)}}const alphabet="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),length=64,map={};let seed=0,i$7=0,prev;function encode$1(Be){let St="";do St=alphabet[Be%length]+St,Be=Math.floor(Be/length);while(Be>0);return St}function yeast(){const Be=encode$1(+new Date);return Be!==prev?(seed=0,prev=Be):Be+"."+encode$1(seed++)}for(;i$7<length;i$7++)map[alphabet[i$7]]=i$7;function encode(Be){let St="";for(let Ae in Be)Be.hasOwnProperty(Ae)&&(St.length&&(St+="&"),St+=encodeURIComponent(Ae)+"="+encodeURIComponent(Be[Ae]));return St}function decode$2(Be){let St={},Ae=Be.split("&");for(let Ee=0,Ce=Ae.length;Ee<Ce;Ee++){let _e=Ae[Ee].split("=");St[decodeURIComponent(_e[0])]=decodeURIComponent(_e[1])}return St}let value=!1;try{value=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch(Be){}const hasCORS=value;function XHR(Be){const St=Be.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!St||hasCORS))return new XMLHttpRequest}catch{}if(!St)try{return new globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function empty(){}const hasXHR2=function(){return new XHR({xdomain:!1}).responseType!=null}();class Polling extends Transport{constructor(St){if(super(St),this.polling=!1,typeof location<"u"){const Ee=location.protocol==="https:";let Ce=location.port;Ce||(Ce=Ee?"443":"80"),this.xd=typeof location<"u"&&St.hostname!==location.hostname||Ce!==St.port,this.xs=St.secure!==Ee}const Ae=St&&St.forceBase64;this.supportsBinary=hasXHR2&&!Ae}get name(){return"polling"}doOpen(){this.poll()}pause(St){this.readyState="pausing";const Ae=()=>{this.readyState="paused",St()};if(this.polling||!this.writable){let Ee=0;this.polling&&(Ee++,this.once("pollComplete",function(){--Ee||Ae()})),this.writable||(Ee++,this.once("drain",function(){--Ee||Ae()}))}else Ae()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(St){const Ae=Ee=>{if(this.readyState==="opening"&&Ee.type==="open"&&this.onOpen(),Ee.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(Ee)};decodePayload(St,this.socket.binaryType).forEach(Ae),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const St=()=>{this.write([{type:"close"}])};this.readyState==="open"?St():this.once("open",St)}write(St){this.writable=!1,encodePayload(St,Ae=>{this.doWrite(Ae,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let St=this.query||{};const Ae=this.opts.secure?"https":"http";let Ee="";this.opts.timestampRequests!==!1&&(St[this.opts.timestampParam]=yeast()),!this.supportsBinary&&!St.sid&&(St.b64=1),this.opts.port&&(Ae==="https"&&Number(this.opts.port)!==443||Ae==="http"&&Number(this.opts.port)!==80)&&(Ee=":"+this.opts.port);const Ce=encode(St),_e=this.opts.hostname.indexOf(":")!==-1;return Ae+"://"+(_e?"["+this.opts.hostname+"]":this.opts.hostname)+Ee+this.opts.path+(Ce.length?"?"+Ce:"")}request(St={}){return Object.assign(St,{xd:this.xd,xs:this.xs},this.opts),new Request(this.uri(),St)}doWrite(St,Ae){const Ee=this.request({method:"POST",data:St});Ee.on("success",Ae),Ee.on("error",(Ce,_e)=>{this.onError("xhr post error",Ce,_e)})}doPoll(){const St=this.request();St.on("data",this.onData.bind(this)),St.on("error",(Ae,Ee)=>{this.onError("xhr poll error",Ae,Ee)}),this.pollXhr=St}}class Request extends Emitter{constructor(St,Ae){super(),installTimerFunctions(this,Ae),this.opts=Ae,this.method=Ae.method||"GET",this.uri=St,this.async=Ae.async!==!1,this.data=Ae.data!==void 0?Ae.data:null,this.create()}create(){const St=pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");St.xdomain=!!this.opts.xd,St.xscheme=!!this.opts.xs;const Ae=this.xhr=new XHR(St);try{Ae.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){Ae.setDisableHeaderCheck&&Ae.setDisableHeaderCheck(!0);for(let Ee in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(Ee)&&Ae.setRequestHeader(Ee,this.opts.extraHeaders[Ee])}}catch{}if(this.method==="POST")try{Ae.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{Ae.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in Ae&&(Ae.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(Ae.timeout=this.opts.requestTimeout),Ae.onreadystatechange=()=>{Ae.readyState===4&&(Ae.status===200||Ae.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof Ae.status=="number"?Ae.status:0)},0))},Ae.send(this.data)}catch(Ee){this.setTimeoutFn(()=>{this.onError(Ee)},0);return}typeof document<"u"&&(this.index=Request.requestsCount++,Request.requests[this.index]=this)}onError(St){this.emitReserved("error",St,this.xhr),this.cleanup(!0)}cleanup(St){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=empty,St)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Request.requests[this.index],this.xhr=null}}onLoad(){const St=this.xhr.responseText;St!==null&&(this.emitReserved("data",St),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Request.requestsCount=0,Request.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const Be="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(Be,unloadHandler,!1)}}function unloadHandler(){for(let Be in Request.requests)Request.requests.hasOwnProperty(Be)&&Request.requests[Be].abort()}const nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?St=>Promise.resolve().then(St):(St,Ae)=>Ae(St,0))(),WebSocket=globalThisShim.WebSocket||globalThisShim.MozWebSocket,usingBrowserWebSocket=!0,defaultBinaryType="arraybuffer",isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WS extends Transport{constructor(St){super(St),this.supportsBinary=!St.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const St=this.uri(),Ae=this.opts.protocols,Ee=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(Ee.headers=this.opts.extraHeaders);try{this.ws=usingBrowserWebSocket&&!isReactNative?Ae?new WebSocket(St,Ae):new WebSocket(St):new WebSocket(St,Ae,Ee)}catch(Ce){return this.emitReserved("error",Ce)}this.ws.binaryType=this.socket.binaryType||defaultBinaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=St=>this.onClose({description:"websocket connection closed",context:St}),this.ws.onmessage=St=>this.onData(St.data),this.ws.onerror=St=>this.onError("websocket error",St)}write(St){this.writable=!1;for(let Ae=0;Ae<St.length;Ae++){const Ee=St[Ae],Ce=Ae===St.length-1;encodePacket(Ee,this.supportsBinary,_e=>{const Te={};try{usingBrowserWebSocket&&this.ws.send(_e)}catch{}Ce&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let St=this.query||{};const Ae=this.opts.secure?"wss":"ws";let Ee="";this.opts.port&&(Ae==="wss"&&Number(this.opts.port)!==443||Ae==="ws"&&Number(this.opts.port)!==80)&&(Ee=":"+this.opts.port),this.opts.timestampRequests&&(St[this.opts.timestampParam]=yeast()),this.supportsBinary||(St.b64=1);const Ce=encode(St),_e=this.opts.hostname.indexOf(":")!==-1;return Ae+"://"+(_e?"["+this.opts.hostname+"]":this.opts.hostname)+Ee+this.opts.path+(Ce.length?"?"+Ce:"")}check(){return!!WebSocket}}const transports={websocket:WS,polling:Polling},re$1=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse$1(Be){const St=Be,Ae=Be.indexOf("["),Ee=Be.indexOf("]");Ae!=-1&&Ee!=-1&&(Be=Be.substring(0,Ae)+Be.substring(Ae,Ee).replace(/:/g,";")+Be.substring(Ee,Be.length));let Ce=re$1.exec(Be||""),_e={},Te=14;for(;Te--;)_e[parts[Te]]=Ce[Te]||"";return Ae!=-1&&Ee!=-1&&(_e.source=St,_e.host=_e.host.substring(1,_e.host.length-1).replace(/;/g,":"),_e.authority=_e.authority.replace("[","").replace("]","").replace(/;/g,":"),_e.ipv6uri=!0),_e.pathNames=pathNames(_e,_e.path),_e.queryKey=queryKey(_e,_e.query),_e}function pathNames(Be,St){const Ae=/\/{2,9}/g,Ee=St.replace(Ae,"/").split("/");return(St.slice(0,1)=="/"||St.length===0)&&Ee.splice(0,1),St.slice(-1)=="/"&&Ee.splice(Ee.length-1,1),Ee}function queryKey(Be,St){const Ae={};return St.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(Ee,Ce,_e){Ce&&(Ae[Ce]=_e)}),Ae}let Socket$1=class Oa extends Emitter{constructor(St,Ae={}){super(),St&&typeof St=="object"&&(Ae=St,St=null),St?(St=parse$1(St),Ae.hostname=St.host,Ae.secure=St.protocol==="https"||St.protocol==="wss",Ae.port=St.port,St.query&&(Ae.query=St.query)):Ae.host&&(Ae.hostname=parse$1(Ae.host).host),installTimerFunctions(this,Ae),this.secure=Ae.secure!=null?Ae.secure:typeof location<"u"&&location.protocol==="https:",Ae.hostname&&!Ae.port&&(Ae.port=this.secure?"443":"80"),this.hostname=Ae.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=Ae.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=Ae.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},Ae),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=decode$2(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(St){const Ae=Object.assign({},this.opts.query);Ae.EIO=protocol$1,Ae.transport=St,this.id&&(Ae.sid=this.id);const Ee=Object.assign({},this.opts.transportOptions[St],this.opts,{query:Ae,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new transports[St](Ee)}open(){let St;if(this.opts.rememberUpgrade&&Oa.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)St="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else St=this.transports[0];this.readyState="opening";try{St=this.createTransport(St)}catch{this.transports.shift(),this.open();return}St.open(),this.setTransport(St)}setTransport(St){this.transport&&this.transport.removeAllListeners(),this.transport=St,St.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",Ae=>this.onClose("transport close",Ae))}probe(St){let Ae=this.createTransport(St),Ee=!1;Oa.priorWebsocketSuccess=!1;const Ce=()=>{Ee||(Ae.send([{type:"ping",data:"probe"}]),Ae.once("packet",Re=>{if(!Ee)if(Re.type==="pong"&&Re.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",Ae),!Ae)return;Oa.priorWebsocketSuccess=Ae.name==="websocket",this.transport.pause(()=>{Ee||this.readyState!=="closed"&&(Ue(),this.setTransport(Ae),Ae.send([{type:"upgrade"}]),this.emitReserved("upgrade",Ae),Ae=null,this.upgrading=!1,this.flush())})}else{const He=new Error("probe error");He.transport=Ae.name,this.emitReserved("upgradeError",He)}}))};function _e(){Ee||(Ee=!0,Ue(),Ae.close(),Ae=null)}const Te=Re=>{const He=new Error("probe error: "+Re);He.transport=Ae.name,_e(),this.emitReserved("upgradeError",He)};function Se(){Te("transport closed")}function xe(){Te("socket closed")}function Fe(Re){Ae&&Re.name!==Ae.name&&_e()}const Ue=()=>{Ae.removeListener("open",Ce),Ae.removeListener("error",Te),Ae.removeListener("close",Se),this.off("close",xe),this.off("upgrading",Fe)};Ae.once("open",Ce),Ae.once("error",Te),Ae.once("close",Se),this.once("close",xe),this.once("upgrading",Fe),Ae.open()}onOpen(){if(this.readyState="open",Oa.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let St=0;const Ae=this.upgrades.length;for(;St<Ae;St++)this.probe(this.upgrades[St])}}onPacket(St){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",St),this.emitReserved("heartbeat"),St.type){case"open":this.onHandshake(JSON.parse(St.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const Ae=new Error("server error");Ae.code=St.data,this.onError(Ae);break;case"message":this.emitReserved("data",St.data),this.emitReserved("message",St.data);break}}onHandshake(St){this.emitReserved("handshake",St),this.id=St.sid,this.transport.query.sid=St.sid,this.upgrades=this.filterUpgrades(St.upgrades),this.pingInterval=St.pingInterval,this.pingTimeout=St.pingTimeout,this.maxPayload=St.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const St=this.getWritablePackets();this.transport.send(St),this.prevBufferLen=St.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let Ae=1;for(let Ee=0;Ee<this.writeBuffer.length;Ee++){const Ce=this.writeBuffer[Ee].data;if(Ce&&(Ae+=byteLength(Ce)),Ee>0&&Ae>this.maxPayload)return this.writeBuffer.slice(0,Ee);Ae+=2}return this.writeBuffer}write(St,Ae,Ee){return this.sendPacket("message",St,Ae,Ee),this}send(St,Ae,Ee){return this.sendPacket("message",St,Ae,Ee),this}sendPacket(St,Ae,Ee,Ce){if(typeof Ae=="function"&&(Ce=Ae,Ae=void 0),typeof Ee=="function"&&(Ce=Ee,Ee=null),this.readyState==="closing"||this.readyState==="closed")return;Ee=Ee||{},Ee.compress=Ee.compress!==!1;const _e={type:St,data:Ae,options:Ee};this.emitReserved("packetCreate",_e),this.writeBuffer.push(_e),Ce&&this.once("flush",Ce),this.flush()}close(){const St=()=>{this.onClose("forced close"),this.transport.close()},Ae=()=>{this.off("upgrade",Ae),this.off("upgradeError",Ae),St()},Ee=()=>{this.once("upgrade",Ae),this.once("upgradeError",Ae)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?Ee():St()}):this.upgrading?Ee():St()),this}onError(St){Oa.priorWebsocketSuccess=!1,this.emitReserved("error",St),this.onClose("transport error",St)}onClose(St,Ae){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",St,Ae),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(St){const Ae=[];let Ee=0;const Ce=St.length;for(;Ee<Ce;Ee++)~this.transports.indexOf(St[Ee])&&Ae.push(St[Ee]);return Ae}};Socket$1.protocol=protocol$1;function url(Be,St="",Ae){let Ee=Be;Ae=Ae||typeof location<"u"&&location,Be==null&&(Be=Ae.protocol+"//"+Ae.host),typeof Be=="string"&&(Be.charAt(0)==="/"&&(Be.charAt(1)==="/"?Be=Ae.protocol+Be:Be=Ae.host+Be),/^(https?|wss?):\/\//.test(Be)||(typeof Ae<"u"?Be=Ae.protocol+"//"+Be:Be="https://"+Be),Ee=parse$1(Be)),Ee.port||(/^(http|ws)$/.test(Ee.protocol)?Ee.port="80":/^(http|ws)s$/.test(Ee.protocol)&&(Ee.port="443")),Ee.path=Ee.path||"/";const _e=Ee.host.indexOf(":")!==-1?"["+Ee.host+"]":Ee.host;return Ee.id=Ee.protocol+"://"+_e+":"+Ee.port+St,Ee.href=Ee.protocol+"://"+_e+(Ae&&Ae.port===Ee.port?"":":"+Ee.port),Ee}const withNativeArrayBuffer=typeof ArrayBuffer=="function",isView=Be=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Be):Be.buffer instanceof ArrayBuffer,toString$c=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString$c.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString$c.call(File)==="[object FileConstructor]";function isBinary(Be){return withNativeArrayBuffer&&(Be instanceof ArrayBuffer||isView(Be))||withNativeBlob&&Be instanceof Blob||withNativeFile&&Be instanceof File}function hasBinary(Be,St){if(!Be||typeof Be!="object")return!1;if(Array.isArray(Be)){for(let Ae=0,Ee=Be.length;Ae<Ee;Ae++)if(hasBinary(Be[Ae]))return!0;return!1}if(isBinary(Be))return!0;if(Be.toJSON&&typeof Be.toJSON=="function"&&arguments.length===1)return hasBinary(Be.toJSON(),!0);for(const Ae in Be)if(Object.prototype.hasOwnProperty.call(Be,Ae)&&hasBinary(Be[Ae]))return!0;return!1}function deconstructPacket(Be){const St=[],Ae=Be.data,Ee=Be;return Ee.data=_deconstructPacket(Ae,St),Ee.attachments=St.length,{packet:Ee,buffers:St}}function _deconstructPacket(Be,St){if(!Be)return Be;if(isBinary(Be)){const Ae={_placeholder:!0,num:St.length};return St.push(Be),Ae}else if(Array.isArray(Be)){const Ae=new Array(Be.length);for(let Ee=0;Ee<Be.length;Ee++)Ae[Ee]=_deconstructPacket(Be[Ee],St);return Ae}else if(typeof Be=="object"&&!(Be instanceof Date)){const Ae={};for(const Ee in Be)Object.prototype.hasOwnProperty.call(Be,Ee)&&(Ae[Ee]=_deconstructPacket(Be[Ee],St));return Ae}return Be}function reconstructPacket(Be,St){return Be.data=_reconstructPacket(Be.data,St),delete Be.attachments,Be}function _reconstructPacket(Be,St){if(!Be)return Be;if(Be&&Be._placeholder===!0){if(typeof Be.num=="number"&&Be.num>=0&&Be.num<St.length)return St[Be.num];throw new Error("illegal attachments")}else if(Array.isArray(Be))for(let Ae=0;Ae<Be.length;Ae++)Be[Ae]=_reconstructPacket(Be[Ae],St);else if(typeof Be=="object")for(const Ae in Be)Object.prototype.hasOwnProperty.call(Be,Ae)&&(Be[Ae]=_reconstructPacket(Be[Ae],St));return Be}const RESERVED_EVENTS$1=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],protocol=5;var PacketType;(function(Be){Be[Be.CONNECT=0]="CONNECT",Be[Be.DISCONNECT=1]="DISCONNECT",Be[Be.EVENT=2]="EVENT",Be[Be.ACK=3]="ACK",Be[Be.CONNECT_ERROR=4]="CONNECT_ERROR",Be[Be.BINARY_EVENT=5]="BINARY_EVENT",Be[Be.BINARY_ACK=6]="BINARY_ACK"})(PacketType||(PacketType={}));class Encoder{constructor(St){this.replacer=St}encode(St){return(St.type===PacketType.EVENT||St.type===PacketType.ACK)&&hasBinary(St)?this.encodeAsBinary({type:St.type===PacketType.EVENT?PacketType.BINARY_EVENT:PacketType.BINARY_ACK,nsp:St.nsp,data:St.data,id:St.id}):[this.encodeAsString(St)]}encodeAsString(St){let Ae=""+St.type;return(St.type===PacketType.BINARY_EVENT||St.type===PacketType.BINARY_ACK)&&(Ae+=St.attachments+"-"),St.nsp&&St.nsp!=="/"&&(Ae+=St.nsp+","),St.id!=null&&(Ae+=St.id),St.data!=null&&(Ae+=JSON.stringify(St.data,this.replacer)),Ae}encodeAsBinary(St){const Ae=deconstructPacket(St),Ee=this.encodeAsString(Ae.packet),Ce=Ae.buffers;return Ce.unshift(Ee),Ce}}function isObject$c(Be){return Object.prototype.toString.call(Be)==="[object Object]"}class Decoder extends Emitter{constructor(St){super(),this.reviver=St}add(St){let Ae;if(typeof St=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");Ae=this.decodeString(St);const Ee=Ae.type===PacketType.BINARY_EVENT;Ee||Ae.type===PacketType.BINARY_ACK?(Ae.type=Ee?PacketType.EVENT:PacketType.ACK,this.reconstructor=new BinaryReconstructor(Ae),Ae.attachments===0&&super.emitReserved("decoded",Ae)):super.emitReserved("decoded",Ae)}else if(isBinary(St)||St.base64)if(this.reconstructor)Ae=this.reconstructor.takeBinaryData(St),Ae&&(this.reconstructor=null,super.emitReserved("decoded",Ae));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+St)}decodeString(St){let Ae=0;const Ee={type:Number(St.charAt(0))};if(PacketType[Ee.type]===void 0)throw new Error("unknown packet type "+Ee.type);if(Ee.type===PacketType.BINARY_EVENT||Ee.type===PacketType.BINARY_ACK){const _e=Ae+1;for(;St.charAt(++Ae)!=="-"&&Ae!=St.length;);const Te=St.substring(_e,Ae);if(Te!=Number(Te)||St.charAt(Ae)!=="-")throw new Error("Illegal attachments");Ee.attachments=Number(Te)}if(St.charAt(Ae+1)==="/"){const _e=Ae+1;for(;++Ae&&!(St.charAt(Ae)===","||Ae===St.length););Ee.nsp=St.substring(_e,Ae)}else Ee.nsp="/";const Ce=St.charAt(Ae+1);if(Ce!==""&&Number(Ce)==Ce){const _e=Ae+1;for(;++Ae;){const Te=St.charAt(Ae);if(Te==null||Number(Te)!=Te){--Ae;break}if(Ae===St.length)break}Ee.id=Number(St.substring(_e,Ae+1))}if(St.charAt(++Ae)){const _e=this.tryParse(St.substr(Ae));if(Decoder.isPayloadValid(Ee.type,_e))Ee.data=_e;else throw new Error("invalid payload")}return Ee}tryParse(St){try{return JSON.parse(St,this.reviver)}catch{return!1}}static isPayloadValid(St,Ae){switch(St){case PacketType.CONNECT:return isObject$c(Ae);case PacketType.DISCONNECT:return Ae===void 0;case PacketType.CONNECT_ERROR:return typeof Ae=="string"||isObject$c(Ae);case PacketType.EVENT:case PacketType.BINARY_EVENT:return Array.isArray(Ae)&&(typeof Ae[0]=="number"||typeof Ae[0]=="string"&&RESERVED_EVENTS$1.indexOf(Ae[0])===-1);case PacketType.ACK:case PacketType.BINARY_ACK:return Array.isArray(Ae)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class BinaryReconstructor{constructor(St){this.packet=St,this.buffers=[],this.reconPack=St}takeBinaryData(St){if(this.buffers.push(St),this.buffers.length===this.reconPack.attachments){const Ae=reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),Ae}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const parser=Object.freeze(Object.defineProperty({__proto__:null,Decoder,Encoder,get PacketType(){return PacketType},protocol},Symbol.toStringTag,{value:"Module"}));function on(Be,St,Ae){return Be.on(St,Ae),function(){Be.off(St,Ae)}}const RESERVED_EVENTS=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Socket extends Emitter{constructor(St,Ae,Ee){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=St,this.nsp=Ae,Ee&&Ee.auth&&(this.auth=Ee.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const St=this.io;this.subs=[on(St,"open",this.onopen.bind(this)),on(St,"packet",this.onpacket.bind(this)),on(St,"error",this.onerror.bind(this)),on(St,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...St){return St.unshift("message"),this.emit.apply(this,St),this}emit(St,...Ae){if(RESERVED_EVENTS.hasOwnProperty(St))throw new Error('"'+St+'" is a reserved event name');Ae.unshift(St);const Ee={type:PacketType.EVENT,data:Ae};if(Ee.options={},Ee.options.compress=this.flags.compress!==!1,typeof Ae[Ae.length-1]=="function"){const Te=this.ids++,Se=Ae.pop();this._registerAckCallback(Te,Se),Ee.id=Te}const Ce=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!Ce||!this.connected)||(this.connected?(this.notifyOutgoingListeners(Ee),this.packet(Ee)):this.sendBuffer.push(Ee)),this.flags={},this}_registerAckCallback(St,Ae){const Ee=this.flags.timeout;if(Ee===void 0){this.acks[St]=Ae;return}const Ce=this.io.setTimeoutFn(()=>{delete this.acks[St];for(let _e=0;_e<this.sendBuffer.length;_e++)this.sendBuffer[_e].id===St&&this.sendBuffer.splice(_e,1);Ae.call(this,new Error("operation has timed out"))},Ee);this.acks[St]=(..._e)=>{this.io.clearTimeoutFn(Ce),Ae.apply(this,[null,..._e])}}packet(St){St.nsp=this.nsp,this.io._packet(St)}onopen(){typeof this.auth=="function"?this.auth(St=>{this.packet({type:PacketType.CONNECT,data:St})}):this.packet({type:PacketType.CONNECT,data:this.auth})}onerror(St){this.connected||this.emitReserved("connect_error",St)}onclose(St,Ae){this.connected=!1,delete this.id,this.emitReserved("disconnect",St,Ae)}onpacket(St){if(St.nsp===this.nsp)switch(St.type){case PacketType.CONNECT:if(St.data&&St.data.sid){const Ce=St.data.sid;this.onconnect(Ce)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(St);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(St);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const Ee=new Error(St.data.message);Ee.data=St.data.data,this.emitReserved("connect_error",Ee);break}}onevent(St){const Ae=St.data||[];St.id!=null&&Ae.push(this.ack(St.id)),this.connected?this.emitEvent(Ae):this.receiveBuffer.push(Object.freeze(Ae))}emitEvent(St){if(this._anyListeners&&this._anyListeners.length){const Ae=this._anyListeners.slice();for(const Ee of Ae)Ee.apply(this,St)}super.emit.apply(this,St)}ack(St){const Ae=this;let Ee=!1;return function(...Ce){Ee||(Ee=!0,Ae.packet({type:PacketType.ACK,id:St,data:Ce}))}}onack(St){const Ae=this.acks[St.id];typeof Ae=="function"&&(Ae.apply(this,St.data),delete this.acks[St.id])}onconnect(St){this.id=St,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(St=>this.emitEvent(St)),this.receiveBuffer=[],this.sendBuffer.forEach(St=>{this.notifyOutgoingListeners(St),this.packet(St)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(St=>St()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(St){return this.flags.compress=St,this}get volatile(){return this.flags.volatile=!0,this}timeout(St){return this.flags.timeout=St,this}onAny(St){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(St),this}prependAny(St){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(St),this}offAny(St){if(!this._anyListeners)return this;if(St){const Ae=this._anyListeners;for(let Ee=0;Ee<Ae.length;Ee++)if(St===Ae[Ee])return Ae.splice(Ee,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(St){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(St),this}prependAnyOutgoing(St){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(St),this}offAnyOutgoing(St){if(!this._anyOutgoingListeners)return this;if(St){const Ae=this._anyOutgoingListeners;for(let Ee=0;Ee<Ae.length;Ee++)if(St===Ae[Ee])return Ae.splice(Ee,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(St){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const Ae=this._anyOutgoingListeners.slice();for(const Ee of Ae)Ee.apply(this,St.data)}}}function Backoff(Be){Be=Be||{},this.ms=Be.min||100,this.max=Be.max||1e4,this.factor=Be.factor||2,this.jitter=Be.jitter>0&&Be.jitter<=1?Be.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var Be=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var St=Math.random(),Ae=Math.floor(St*this.jitter*Be);Be=Math.floor(St*10)&1?Be+Ae:Be-Ae}return Math.min(Be,this.max)|0},Backoff.prototype.reset=function(){this.attempts=0},Backoff.prototype.setMin=function(Be){this.ms=Be},Backoff.prototype.setMax=function(Be){this.max=Be},Backoff.prototype.setJitter=function(Be){this.jitter=Be};class Manager extends Emitter{constructor(St,Ae){var Ee;super(),this.nsps={},this.subs=[],St&&typeof St=="object"&&(Ae=St,St=void 0),Ae=Ae||{},Ae.path=Ae.path||"/socket.io",this.opts=Ae,installTimerFunctions(this,Ae),this.reconnection(Ae.reconnection!==!1),this.reconnectionAttempts(Ae.reconnectionAttempts||1/0),this.reconnectionDelay(Ae.reconnectionDelay||1e3),this.reconnectionDelayMax(Ae.reconnectionDelayMax||5e3),this.randomizationFactor((Ee=Ae.randomizationFactor)!==null&&Ee!==void 0?Ee:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(Ae.timeout==null?2e4:Ae.timeout),this._readyState="closed",this.uri=St;const Ce=Ae.parser||parser;this.encoder=new Ce.Encoder,this.decoder=new Ce.Decoder,this._autoConnect=Ae.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(St){return arguments.length?(this._reconnection=!!St,this):this._reconnection}reconnectionAttempts(St){return St===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=St,this)}reconnectionDelay(St){var Ae;return St===void 0?this._reconnectionDelay:(this._reconnectionDelay=St,(Ae=this.backoff)===null||Ae===void 0||Ae.setMin(St),this)}randomizationFactor(St){var Ae;return St===void 0?this._randomizationFactor:(this._randomizationFactor=St,(Ae=this.backoff)===null||Ae===void 0||Ae.setJitter(St),this)}reconnectionDelayMax(St){var Ae;return St===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=St,(Ae=this.backoff)===null||Ae===void 0||Ae.setMax(St),this)}timeout(St){return arguments.length?(this._timeout=St,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(St){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const Ae=this.engine,Ee=this;this._readyState="opening",this.skipReconnect=!1;const Ce=on(Ae,"open",function(){Ee.onopen(),St&&St()}),_e=on(Ae,"error",Te=>{Ee.cleanup(),Ee._readyState="closed",this.emitReserved("error",Te),St?St(Te):Ee.maybeReconnectOnOpen()});if(this._timeout!==!1){const Te=this._timeout;Te===0&&Ce();const Se=this.setTimeoutFn(()=>{Ce(),Ae.close(),Ae.emit("error",new Error("timeout"))},Te);this.opts.autoUnref&&Se.unref(),this.subs.push(function(){clearTimeout(Se)})}return this.subs.push(Ce),this.subs.push(_e),this}connect(St){return this.open(St)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const St=this.engine;this.subs.push(on(St,"ping",this.onping.bind(this)),on(St,"data",this.ondata.bind(this)),on(St,"error",this.onerror.bind(this)),on(St,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(St){this.decoder.add(St)}ondecoded(St){this.emitReserved("packet",St)}onerror(St){this.emitReserved("error",St)}socket(St,Ae){let Ee=this.nsps[St];return Ee||(Ee=new Socket(this,St,Ae),this.nsps[St]=Ee),Ee}_destroy(St){const Ae=Object.keys(this.nsps);for(const Ee of Ae)if(this.nsps[Ee].active)return;this._close()}_packet(St){const Ae=this.encoder.encode(St);for(let Ee=0;Ee<Ae.length;Ee++)this.engine.write(Ae[Ee],St.options)}cleanup(){this.subs.forEach(St=>St()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(St,Ae){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",St,Ae),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const St=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const Ae=this.backoff.duration();this._reconnecting=!0;const Ee=this.setTimeoutFn(()=>{St.skipReconnect||(this.emitReserved("reconnect_attempt",St.backoff.attempts),!St.skipReconnect&&St.open(Ce=>{Ce?(St._reconnecting=!1,St.reconnect(),this.emitReserved("reconnect_error",Ce)):St.onreconnect()}))},Ae);this.opts.autoUnref&&Ee.unref(),this.subs.push(function(){clearTimeout(Ee)})}}onreconnect(){const St=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",St)}}const cache={};function lookup$4(Be,St){typeof Be=="object"&&(St=Be,Be=void 0),St=St||{};const Ae=url(Be,St.path||"/socket.io"),Ee=Ae.source,Ce=Ae.id,_e=Ae.path,Te=cache[Ce]&&_e in cache[Ce].nsps,Se=St.forceNew||St["force new connection"]||St.multiplex===!1||Te;let xe;return Se?xe=new Manager(Ee,St):(cache[Ce]||(cache[Ce]=new Manager(Ee,St)),xe=cache[Ce]),Ae.query&&!St.query&&(St.query=Ae.queryKey),xe.socket(Ae.path,St)}Object.assign(lookup$4,{Manager,Socket,io:lookup$4,connect:lookup$4});function _typeof$3(Be){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(St){return typeof St}:function(St){return St&&typeof Symbol=="function"&&St.constructor===Symbol&&St!==Symbol.prototype?"symbol":typeof St},_typeof$3(Be)}var u8=Uint8Array,u16=Uint16Array,i32=Int32Array,fleb=new u8([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,0,0,0]),fdeb=new u8([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,0,0]),clim=new u8([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),freb=function(Be,St){for(var Ae=new u16(31),Ee=0;Ee<31;++Ee)Ae[Ee]=St+=1<<Be[Ee-1];for(var Ce=new i32(Ae[30]),Ee=1;Ee<30;++Ee)for(var _e=Ae[Ee];_e<Ae[Ee+1];++_e)Ce[_e]=_e-Ae[Ee]<<5|Ee;return{b:Ae,r:Ce}},_a=freb(fleb,2),fl=_a.b,revfl=_a.r;fl[28]=258,revfl[258]=28;for(var _b=freb(fdeb,0),fd=_b.b,revfd=_b.r,rev=new u16(32768),i$6=0;i$6<32768;++i$6){var x$1=(i$6&43690)>>1|(i$6&21845)<<1;x$1=(x$1&52428)>>2|(x$1&13107)<<2,x$1=(x$1&61680)>>4|(x$1&3855)<<4,rev[i$6]=((x$1&65280)>>8|(x$1&255)<<8)>>1}for(var hMap=function(Be,St,Ae){for(var Ee=Be.length,Ce=0,_e=new u16(St);Ce<Ee;++Ce)Be[Ce]&&++_e[Be[Ce]-1];var Te=new u16(St);for(Ce=1;Ce<St;++Ce)Te[Ce]=Te[Ce-1]+_e[Ce-1]<<1;var Se;if(Ae){Se=new u16(1<<St);var xe=15-St;for(Ce=0;Ce<Ee;++Ce)if(Be[Ce])for(var Fe=Ce<<4|Be[Ce],Ue=St-Be[Ce],Re=Te[Be[Ce]-1]++<<Ue,He=Re|(1<<Ue)-1;Re<=He;++Re)Se[rev[Re]>>xe]=Fe}else for(Se=new u16(Ee),Ce=0;Ce<Ee;++Ce)Be[Ce]&&(Se[Ce]=rev[Te[Be[Ce]-1]++]>>15-Be[Ce]);return Se},flt=new u8(288),i$6=0;i$6<144;++i$6)flt[i$6]=8;for(var i$6=144;i$6<256;++i$6)flt[i$6]=9;for(var i$6=256;i$6<280;++i$6)flt[i$6]=7;for(var i$6=280;i$6<288;++i$6)flt[i$6]=8;for(var fdt=new u8(32),i$6=0;i$6<32;++i$6)fdt[i$6]=5;var flm=hMap(flt,9,0),flrm=hMap(flt,9,1),fdm=hMap(fdt,5,0),fdrm=hMap(fdt,5,1),max$2=function(Be){for(var St=Be[0],Ae=1;Ae<Be.length;++Ae)Be[Ae]>St&&(St=Be[Ae]);return St},bits=function(Be,St,Ae){var Ee=St/8|0;return(Be[Ee]|Be[Ee+1]<<8)>>(St&7)&Ae},bits16=function(Be,St){var Ae=St/8|0;return(Be[Ae]|Be[Ae+1]<<8|Be[Ae+2]<<16)>>(St&7)},shft=function(Be){return(Be+7)/8|0},slc=function(Be,St,Ae){return(St==null||St<0)&&(St=0),(Ae==null||Ae>Be.length)&&(Ae=Be.length),new u8(Be.subarray(St,Ae))},ec=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],err=function(Be,St,Ae){var Ee=new Error(St||ec[Be]);if(Ee.code=Be,Error.captureStackTrace&&Error.captureStackTrace(Ee,err),!Ae)throw Ee;return Ee},inflt=function(Be,St,Ae,Ee){var Ce=Be.length,_e=Ee?Ee.length:0;if(!Ce||St.f&&!St.l)return Ae||new u8(0);var Te=!Ae,Se=Te||St.i!=2,xe=St.i;Te&&(Ae=new u8(Ce*3));var Fe=function(Cn){var On=Ae.length;if(Cn>On){var In=new u8(Math.max(On*2,Cn));In.set(Ae),Ae=In}},Ue=St.f||0,Re=St.p||0,He=St.b||0,$e=St.l,ze=St.d,Ve=St.m,ir=St.n,Ze=Ce*8;do{if(!$e){Ue=bits(Be,Re,1);var ar=bits(Be,Re+1,3);if(Re+=3,ar)if(ar==1)$e=flrm,ze=fdrm,Ve=9,ir=5;else if(ar==2){var Oe=bits(Be,Re,31)+257,Je=bits(Be,Re+10,15)+4,Ye=Oe+bits(Be,Re+5,31)+1;Re+=14;for(var rr=new u8(Ye),vr=new u8(19),er=0;er<Je;++er)vr[clim[er]]=bits(Be,Re+er*3,7);Re+=Je*3;for(var Ar=max$2(vr),gr=(1<<Ar)-1,mr=hMap(vr,Ar,1),er=0;er<Ye;){var Ur=mr[bits(Be,Re,gr)];Re+=Ur&15;var cr=Ur>>4;if(cr<16)rr[er++]=cr;else{var Lr=0,Mr=0;for(cr==16?(Mr=3+bits(Be,Re,3),Re+=2,Lr=rr[er-1]):cr==17?(Mr=3+bits(Be,Re,7),Re+=3):cr==18&&(Mr=11+bits(Be,Re,127),Re+=7);Mr--;)rr[er++]=Lr}}var Qr=rr.subarray(0,Oe),Dr=rr.subarray(Oe);Ve=max$2(Qr),ir=max$2(Dr),$e=hMap(Qr,Ve,1),ze=hMap(Dr,ir,1)}else err(1);else{var cr=shft(Re)+4,Xe=Be[cr-4]|Be[cr-3]<<8,or=cr+Xe;if(or>Ce){xe&&err(0);break}Se&&Fe(He+Xe),Ae.set(Be.subarray(cr,or),He),St.b=He+=Xe,St.p=Re=or*8,St.f=Ue;continue}if(Re>Ze){xe&&err(0);break}}Se&&Fe(He+131072);for(var Xr=(1<<Ve)-1,sn=(1<<ir)-1,ur=Re;;ur=Re){var Lr=$e[bits16(Be,Re)&Xr],_r=Lr>>4;if(Re+=Lr&15,Re>Ze){xe&&err(0);break}if(Lr||err(2),_r<256)Ae[He++]=_r;else if(_r==256){ur=Re,$e=null;break}else{var Fr=_r-254;if(_r>264){var er=_r-257,Pr=fleb[er];Fr=bits(Be,Re,(1<<Pr)-1)+fl[er],Re+=Pr}var kr=ze[bits16(Be,Re)&sn],Vr=kr>>4;kr||err(3),Re+=kr&15;var Dr=fd[Vr];if(Vr>3){var Pr=fdeb[Vr];Dr+=bits16(Be,Re)&(1<<Pr)-1,Re+=Pr}if(Re>Ze){xe&&err(0);break}Se&&Fe(He+131072);var nn=He+Fr;if(He<Dr){var Jr=_e-Dr,wn=Math.min(Dr,nn);for(Jr+He<0&&err(3);He<wn;++He)Ae[He]=Ee[Jr+He]}for(;He<nn;++He)Ae[He]=Ae[He-Dr]}}St.l=$e,St.p=ur,St.b=He,St.f=Ue,$e&&(Ue=1,St.m=Ve,St.d=ze,St.n=ir)}while(!Ue);return He!=Ae.length&&Te?slc(Ae,0,He):Ae.subarray(0,He)},wbits=function(Be,St,Ae){Ae<<=St&7;var Ee=St/8|0;Be[Ee]|=Ae,Be[Ee+1]|=Ae>>8},wbits16=function(Be,St,Ae){Ae<<=St&7;var Ee=St/8|0;Be[Ee]|=Ae,Be[Ee+1]|=Ae>>8,Be[Ee+2]|=Ae>>16},hTree=function(Be,St){for(var Ae=[],Ee=0;Ee<Be.length;++Ee)Be[Ee]&&Ae.push({s:Ee,f:Be[Ee]});var Ce=Ae.length,_e=Ae.slice();if(!Ce)return{t:et$1,l:0};if(Ce==1){var Te=new u8(Ae[0].s+1);return Te[Ae[0].s]=1,{t:Te,l:1}}Ae.sort(function(or,Oe){return or.f-Oe.f}),Ae.push({s:-1,f:25001});var Se=Ae[0],xe=Ae[1],Fe=0,Ue=1,Re=2;for(Ae[0]={s:-1,f:Se.f+xe.f,l:Se,r:xe};Ue!=Ce-1;)Se=Ae[Ae[Fe].f<Ae[Re].f?Fe++:Re++],xe=Ae[Fe!=Ue&&Ae[Fe].f<Ae[Re].f?Fe++:Re++],Ae[Ue++]={s:-1,f:Se.f+xe.f,l:Se,r:xe};for(var He=_e[0].s,Ee=1;Ee<Ce;++Ee)_e[Ee].s>He&&(He=_e[Ee].s);var $e=new u16(He+1),ze=ln(Ae[Ue-1],$e,0);if(ze>St){var Ee=0,Ve=0,ir=ze-St,Ze=1<<ir;for(_e.sort(function(Oe,Je){return $e[Je.s]-$e[Oe.s]||Oe.f-Je.f});Ee<Ce;++Ee){var ar=_e[Ee].s;if($e[ar]>St)Ve+=Ze-(1<<ze-$e[ar]),$e[ar]=St;else break}for(Ve>>=ir;Ve>0;){var cr=_e[Ee].s;$e[cr]<St?Ve-=1<<St-$e[cr]++-1:++Ee}for(;Ee>=0&&Ve;--Ee){var Xe=_e[Ee].s;$e[Xe]==St&&(--$e[Xe],++Ve)}ze=St}return{t:new u8($e),l:ze}},ln=function(Be,St,Ae){return Be.s==-1?Math.max(ln(Be.l,St,Ae+1),ln(Be.r,St,Ae+1)):St[Be.s]=Ae},lc=function(Be){for(var St=Be.length;St&&!Be[--St];);for(var Ae=new u16(++St),Ee=0,Ce=Be[0],_e=1,Te=function(xe){Ae[Ee++]=xe},Se=1;Se<=St;++Se)if(Be[Se]==Ce&&Se!=St)++_e;else{if(!Ce&&_e>2){for(;_e>138;_e-=138)Te(32754);_e>2&&(Te(_e>10?_e-11<<5|28690:_e-3<<5|12305),_e=0)}else if(_e>3){for(Te(Ce),--_e;_e>6;_e-=6)Te(8304);_e>2&&(Te(_e-3<<5|8208),_e=0)}for(;_e--;)Te(Ce);_e=1,Ce=Be[Se]}return{c:Ae.subarray(0,Ee),n:St}},clen=function(Be,St){for(var Ae=0,Ee=0;Ee<St.length;++Ee)Ae+=Be[Ee]*St[Ee];return Ae},wfblk=function(Be,St,Ae){var Ee=Ae.length,Ce=shft(St+2);Be[Ce]=Ee&255,Be[Ce+1]=Ee>>8,Be[Ce+2]=Be[Ce]^255,Be[Ce+3]=Be[Ce+1]^255;for(var _e=0;_e<Ee;++_e)Be[Ce+_e+4]=Ae[_e];return(Ce+4+Ee)*8},wblk=function(Be,St,Ae,Ee,Ce,_e,Te,Se,xe,Fe,Ue){wbits(St,Ue++,Ae),++Ce[256];for(var Re=hTree(Ce,15),He=Re.t,$e=Re.l,ze=hTree(_e,15),Ve=ze.t,ir=ze.l,Ze=lc(He),ar=Ze.c,cr=Ze.n,Xe=lc(Ve),or=Xe.c,Oe=Xe.n,Je=new u16(19),Ye=0;Ye<ar.length;++Ye)++Je[ar[Ye]&31];for(var Ye=0;Ye<or.length;++Ye)++Je[or[Ye]&31];for(var rr=hTree(Je,7),vr=rr.t,er=rr.l,Ar=19;Ar>4&&!vr[clim[Ar-1]];--Ar);var gr=Fe+5<<3,mr=clen(Ce,flt)+clen(_e,fdt)+Te,Ur=clen(Ce,He)+clen(_e,Ve)+Te+14+3*Ar+clen(Je,vr)+2*Je[16]+3*Je[17]+7*Je[18];if(xe>=0&&gr<=mr&&gr<=Ur)return wfblk(St,Ue,Be.subarray(xe,xe+Fe));var Lr,Mr,Qr,Dr;if(wbits(St,Ue,1+(Ur<mr)),Ue+=2,Ur<mr){Lr=hMap(He,$e,0),Mr=He,Qr=hMap(Ve,ir,0),Dr=Ve;var Xr=hMap(vr,er,0);wbits(St,Ue,cr-257),wbits(St,Ue+5,Oe-1),wbits(St,Ue+10,Ar-4),Ue+=14;for(var Ye=0;Ye<Ar;++Ye)wbits(St,Ue+3*Ye,vr[clim[Ye]]);Ue+=3*Ar;for(var sn=[ar,or],ur=0;ur<2;++ur)for(var _r=sn[ur],Ye=0;Ye<_r.length;++Ye){var Fr=_r[Ye]&31;wbits(St,Ue,Xr[Fr]),Ue+=vr[Fr],Fr>15&&(wbits(St,Ue,_r[Ye]>>5&127),Ue+=_r[Ye]>>12)}}else Lr=flm,Mr=flt,Qr=fdm,Dr=fdt;for(var Ye=0;Ye<Se;++Ye){var Pr=Ee[Ye];if(Pr>255){var Fr=Pr>>18&31;wbits16(St,Ue,Lr[Fr+257]),Ue+=Mr[Fr+257],Fr>7&&(wbits(St,Ue,Pr>>23&31),Ue+=fleb[Fr]);var kr=Pr&31;wbits16(St,Ue,Qr[kr]),Ue+=Dr[kr],kr>3&&(wbits16(St,Ue,Pr>>5&8191),Ue+=fdeb[kr])}else wbits16(St,Ue,Lr[Pr]),Ue+=Mr[Pr]}return wbits16(St,Ue,Lr[256]),Ue+Mr[256]},deo=new i32([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),et$1=new u8(0),dflt=function(Be,St,Ae,Ee,Ce,_e){var Te=_e.z||Be.length,Se=new u8(Ee+Te+5*(1+Math.ceil(Te/7e3))+Ce),xe=Se.subarray(Ee,Se.length-Ce),Fe=_e.l,Ue=(_e.r||0)&7;if(St){Ue&&(xe[0]=_e.r>>3);for(var Re=deo[St-1],He=Re>>13,$e=Re&8191,ze=(1<<Ae)-1,Ve=_e.p||new u16(32768),ir=_e.h||new u16(ze+1),Ze=Math.ceil(Ae/3),ar=2*Ze,cr=function(Xn){return(Be[Xn]^Be[Xn+1]<<Ze^Be[Xn+2]<<ar)&ze},Xe=new i32(25e3),or=new u16(288),Oe=new u16(32),Je=0,Ye=0,rr=_e.i||0,vr=0,er=_e.w||0,Ar=0;rr+2<Te;++rr){var gr=cr(rr),mr=rr&32767,Ur=ir[gr];if(Ve[mr]=Ur,ir[gr]=mr,er<=rr){var Lr=Te-rr;if((Je>7e3||vr>24576)&&(Lr>423||!Fe)){Ue=wblk(Be,xe,0,Xe,or,Oe,Ye,vr,Ar,rr-Ar,Ue),vr=Je=Ye=0,Ar=rr;for(var Mr=0;Mr<286;++Mr)or[Mr]=0;for(var Mr=0;Mr<30;++Mr)Oe[Mr]=0}var Qr=2,Dr=0,Xr=$e,sn=mr-Ur&32767;if(Lr>2&&gr==cr(rr-sn))for(var ur=Math.min(He,Lr)-1,_r=Math.min(32767,rr),Fr=Math.min(258,Lr);sn<=_r&&--Xr&&mr!=Ur;){if(Be[rr+Qr]==Be[rr+Qr-sn]){for(var Pr=0;Pr<Fr&&Be[rr+Pr]==Be[rr+Pr-sn];++Pr);if(Pr>Qr){if(Qr=Pr,Dr=sn,Pr>ur)break;for(var kr=Math.min(sn,Pr-2),Vr=0,Mr=0;Mr<kr;++Mr){var nn=rr-sn+Mr&32767,Jr=Ve[nn],wn=nn-Jr&32767;wn>Vr&&(Vr=wn,Ur=nn)}}}mr=Ur,Ur=Ve[mr],sn+=mr-Ur&32767}if(Dr){Xe[vr++]=268435456|revfl[Qr]<<18|revfd[Dr];var Cn=revfl[Qr]&31,On=revfd[Dr]&31;Ye+=fleb[Cn]+fdeb[On],++or[257+Cn],++Oe[On],er=rr+Qr,++Je}else Xe[vr++]=Be[rr],++or[Be[rr]]}}for(rr=Math.max(rr,er);rr<Te;++rr)Xe[vr++]=Be[rr],++or[Be[rr]];Ue=wblk(Be,xe,Fe,Xe,or,Oe,Ye,vr,Ar,rr-Ar,Ue),Fe||(_e.r=Ue&7|xe[Ue/8|0]<<3,Ue-=7,_e.h=ir,_e.p=Ve,_e.i=rr,_e.w=er)}else{for(var rr=_e.w||0;rr<Te+Fe;rr+=65535){var In=rr+65535;In>=Te&&(xe[Ue/8|0]=Fe,In=Te),Ue=wfblk(xe,Ue+1,Be.subarray(rr,In))}_e.i=Te}return slc(Se,0,Ee+shft(Ue)+Ce)},adler=function(){var Be=1,St=0;return{p:function(Ae){for(var Ee=Be,Ce=St,_e=Ae.length|0,Te=0;Te!=_e;){for(var Se=Math.min(Te+2655,_e);Te<Se;++Te)Ce+=Ee+=Ae[Te];Ee=(Ee&65535)+15*(Ee>>16),Ce=(Ce&65535)+15*(Ce>>16)}Be=Ee,St=Ce},d:function(){return Be%=65521,St%=65521,(Be&255)<<24|(Be&65280)<<8|(St&255)<<8|St>>8}}},dopt=function(Be,St,Ae,Ee,Ce){if(!Ce&&(Ce={l:1},St.dictionary)){var _e=St.dictionary.subarray(-32768),Te=new u8(_e.length+Be.length);Te.set(_e),Te.set(Be,_e.length),Be=Te,Ce.w=_e.length}return dflt(Be,St.level==null?6:St.level,St.mem==null?Ce.l?Math.ceil(Math.max(8,Math.min(13,Math.log(Be.length)))*1.5):20:12+St.mem,Ae,Ee,Ce)},wbytes=function(Be,St,Ae){for(;Ae;++St)Be[St]=Ae,Ae>>>=8},zlh=function(Be,St){var Ae=St.level,Ee=Ae==0?0:Ae<6?1:Ae==9?3:2;if(Be[0]=120,Be[1]=Ee<<6|(St.dictionary&&32),Be[1]|=31-(Be[0]<<8|Be[1])%31,St.dictionary){var Ce=adler();Ce.p(St.dictionary),wbytes(Be,2,Ce.d())}},zls=function(Be,St){return((Be[0]&15)!=8||Be[0]>>4>7||(Be[0]<<8|Be[1])%31)&&err(6,"invalid zlib data"),(Be[1]>>5&1)==+!St&&err(6,"invalid zlib data: "+(Be[1]&32?"need":"unexpected")+" dictionary"),(Be[1]>>3&4)+2};function zlibSync(Be,St){St||(St={});var Ae=adler();Ae.p(Be);var Ee=dopt(Be,St,St.dictionary?6:2,4);return zlh(Ee,St),wbytes(Ee,Ee.length-4,Ae.d()),Ee}function unzlibSync(Be,St){return inflt(Be.subarray(zls(Be,St&&St.dictionary),-4),{i:2},St&&St.out,St&&St.dictionary)}var td=typeof TextDecoder<"u"&&new TextDecoder,tds=0;try{td.decode(et$1,{stream:!0}),tds=1}catch(Be){}/** @license
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.5.2 Built on 2024-09-17T13:29:57.859Z
* CommitID 00000000
*
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
* 2015-2021 yWorks GmbH, http://www.yworks.com
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
* 2010 Aaron Spike, https://github.com/acspike
* 2012 Willow Systems Corporation, https://github.com/willowsystems
* 2012 Pablo Hess, https://github.com/pablohess
* 2012 Florian Jenett, https://github.com/fjenett
* 2013 Warren Weckesser, https://github.com/warrenweckesser
* 2013 Youssef Beddad, https://github.com/lifof
* 2013 Lee Driscoll, https://github.com/lsdriscoll
* 2013 Stefan Slonevskiy, https://github.com/stefslon
* 2013 Jeremy Morel, https://github.com/jmorel
* 2013 Christoph Hartmann, https://github.com/chris-rock
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
* 2014 James Makes, https://github.com/dollaruw
* 2014 Diego Casorran, https://github.com/diegocr
* 2014 Steven Spungin, https://github.com/Flamenco
* 2014 Kenneth Glassey, https://github.com/Gavvers
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Contributor(s):
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
* kim3er, mfo, alnorth, Flamenco
*/var n$1=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function i$5(){n$1.console&&typeof n$1.console.log=="function"&&n$1.console.log.apply(n$1.console,arguments)}var a$2={log:i$5,warn:function(Be){n$1.console&&(typeof n$1.console.warn=="function"?n$1.console.warn.apply(n$1.console,arguments):i$5.call(null,arguments))},error:function(Be){n$1.console&&(typeof n$1.console.error=="function"?n$1.console.error.apply(n$1.console,arguments):i$5(Be))}};function o$1(Be,St,Ae){var Ee=new XMLHttpRequest;Ee.open("GET",Be),Ee.responseType="blob",Ee.onload=function(){l$1(Ee.response,St,Ae)},Ee.onerror=function(){a$2.error("could not download file")},Ee.send()}function s$1(Be){var St=new XMLHttpRequest;St.open("HEAD",Be,!1);try{St.send()}catch{}return St.status>=200&&St.status<=299}function c$2(Be){try{Be.dispatchEvent(new MouseEvent("click"))}catch{var St=document.createEvent("MouseEvents");St.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Be.dispatchEvent(St)}}var u$2,h$1,l$1=n$1.saveAs||((typeof window>"u"?"undefined":_typeof$3(window))!=="object"||window!==n$1?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(Be,St,Ae){var Ee=n$1.URL||n$1.webkitURL,Ce=document.createElement("a");St=St||Be.name||"download",Ce.download=St,Ce.rel="noopener",typeof Be=="string"?(Ce.href=Be,Ce.origin!==location.origin?s$1(Ce.href)?o$1(Be,St,Ae):c$2(Ce,Ce.target="_blank"):c$2(Ce)):(Ce.href=Ee.createObjectURL(Be),setTimeout(function(){Ee.revokeObjectURL(Ce.href)},4e4),setTimeout(function(){c$2(Ce)},0))}:"msSaveOrOpenBlob"in navigator?function(Be,St,Ae){if(St=St||Be.name||"download",typeof Be=="string")if(s$1(Be))o$1(Be,St,Ae);else{var Ee=document.createElement("a");Ee.href=Be,Ee.target="_blank",setTimeout(function(){c$2(Ee)})}else navigator.msSaveOrOpenBlob(function(Ce,_e){return _e===void 0?_e={autoBom:!1}:_typeof$3(_e)!=="object"&&(a$2.warn("Deprecated: Expected third argument to be a object"),_e={autoBom:!_e}),_e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Ce.type)?new Blob([String.fromCharCode(65279),Ce],{type:Ce.type}):Ce}(Be,Ae),St)}:function(Be,St,Ae,Ee){if((Ee=Ee||open("","_blank"))&&(Ee.document.title=Ee.document.body.innerText="downloading..."),typeof Be=="string")return o$1(Be,St,Ae);var Ce=Be.type==="application/octet-stream",_e=/constructor/i.test(n$1.HTMLElement)||n$1.safari,Te=/CriOS\/[\d]+/.test(navigator.userAgent);if((Te||Ce&&_e)&&(typeof FileReader>"u"?"undefined":_typeof$3(FileReader))==="object"){var Se=new FileReader;Se.onloadend=function(){var Ue=Se.result;Ue=Te?Ue:Ue.replace(/^data:[^;]*;/,"data:attachment/file;"),Ee?Ee.location.href=Ue:location=Ue,Ee=null},Se.readAsDataURL(Be)}else{var xe=n$1.URL||n$1.webkitURL,Fe=xe.createObjectURL(Be);Ee?Ee.location=Fe:location.href=Fe,Ee=null,setTimeout(function(){xe.revokeObjectURL(Fe)},4e4)}});/**
* A class to parse color values
* @author Stoyan Stefanov <sstoo@gmail.com>
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
* @license Use it if you like it
*/function f$2(Be){var St;Be=Be||"",this.ok=!1,Be.charAt(0)=="#"&&(Be=Be.substr(1,6)),Be={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[Be=(Be=Be.replace(/ /g,"")).toLowerCase()]||Be;for(var Ae=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(Se){return[parseInt(Se[1]),parseInt(Se[2]),parseInt(Se[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(Se){return[parseInt(Se[1],16),parseInt(Se[2],16),parseInt(Se[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(Se){return[parseInt(Se[1]+Se[1],16),parseInt(Se[2]+Se[2],16),parseInt(Se[3]+Se[3],16)]}}],Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee].re,_e=Ae[Ee].process,Te=Ce.exec(Be);Te&&(St=_e(Te),this.r=St[0],this.g=St[1],this.b=St[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var Se=this.r.toString(16),xe=this.g.toString(16),Fe=this.b.toString(16);return Se.length==1&&(Se="0"+Se),xe.length==1&&(xe="0"+xe),Fe.length==1&&(Fe="0"+Fe),"#"+Se+xe+Fe}}/**
* @license
* Joseph Myers does not specify a particular license for his work.
*
* Author: Joseph Myers
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
*
* Modified by: Owen Leong
*/function d(Be,St){var Ae=Be[0],Ee=Be[1],Ce=Be[2],_e=Be[3];Ae=g(Ae,Ee,Ce,_e,St[0],7,-680876936),_e=g(_e,Ae,Ee,Ce,St[1],12,-389564586),Ce=g(Ce,_e,Ae,Ee,St[2],17,606105819),Ee=g(Ee,Ce,_e,Ae,St[3],22,-1044525330),Ae=g(Ae,Ee,Ce,_e,St[4],7,-176418897),_e=g(_e,Ae,Ee,Ce,St[5],12,1200080426),Ce=g(Ce,_e,Ae,Ee,St[6],17,-1473231341),Ee=g(Ee,Ce,_e,Ae,St[7],22,-45705983),Ae=g(Ae,Ee,Ce,_e,St[8],7,1770035416),_e=g(_e,Ae,Ee,Ce,St[9],12,-1958414417),Ce=g(Ce,_e,Ae,Ee,St[10],17,-42063),Ee=g(Ee,Ce,_e,Ae,St[11],22,-1990404162),Ae=g(Ae,Ee,Ce,_e,St[12],7,1804603682),_e=g(_e,Ae,Ee,Ce,St[13],12,-40341101),Ce=g(Ce,_e,Ae,Ee,St[14],17,-1502002290),Ae=m$2(Ae,Ee=g(Ee,Ce,_e,Ae,St[15],22,1236535329),Ce,_e,St[1],5,-165796510),_e=m$2(_e,Ae,Ee,Ce,St[6],9,-1069501632),Ce=m$2(Ce,_e,Ae,Ee,St[11],14,643717713),Ee=m$2(Ee,Ce,_e,Ae,St[0],20,-373897302),Ae=m$2(Ae,Ee,Ce,_e,St[5],5,-701558691),_e=m$2(_e,Ae,Ee,Ce,St[10],9,38016083),Ce=m$2(Ce,_e,Ae,Ee,St[15],14,-660478335),Ee=m$2(Ee,Ce,_e,Ae,St[4],20,-405537848),Ae=m$2(Ae,Ee,Ce,_e,St[9],5,568446438),_e=m$2(_e,Ae,Ee,Ce,St[14],9,-1019803690),Ce=m$2(Ce,_e,Ae,Ee,St[3],14,-187363961),Ee=m$2(Ee,Ce,_e,Ae,St[8],20,1163531501),Ae=m$2(Ae,Ee,Ce,_e,St[13],5,-1444681467),_e=m$2(_e,Ae,Ee,Ce,St[2],9,-51403784),Ce=m$2(Ce,_e,Ae,Ee,St[7],14,1735328473),Ae=v$1(Ae,Ee=m$2(Ee,Ce,_e,Ae,St[12],20,-1926607734),Ce,_e,St[5],4,-378558),_e=v$1(_e,Ae,Ee,Ce,St[8],11,-2022574463),Ce=v$1(Ce,_e,Ae,Ee,St[11],16,1839030562),Ee=v$1(Ee,Ce,_e,Ae,St[14],23,-35309556),Ae=v$1(Ae,Ee,Ce,_e,St[1],4,-1530992060),_e=v$1(_e,Ae,Ee,Ce,St[4],11,1272893353),Ce=v$1(Ce,_e,Ae,Ee,St[7],16,-155497632),Ee=v$1(Ee,Ce,_e,Ae,St[10],23,-1094730640),Ae=v$1(Ae,Ee,Ce,_e,St[13],4,681279174),_e=v$1(_e,Ae,Ee,Ce,St[0],11,-358537222),Ce=v$1(Ce,_e,Ae,Ee,St[3],16,-722521979),Ee=v$1(Ee,Ce,_e,Ae,St[6],23,76029189),Ae=v$1(Ae,Ee,Ce,_e,St[9],4,-640364487),_e=v$1(_e,Ae,Ee,Ce,St[12],11,-421815835),Ce=v$1(Ce,_e,Ae,Ee,St[15],16,530742520),Ae=b(Ae,Ee=v$1(Ee,Ce,_e,Ae,St[2],23,-995338651),Ce,_e,St[0],6,-198630844),_e=b(_e,Ae,Ee,Ce,St[7],10,1126891415),Ce=b(Ce,_e,Ae,Ee,St[14],15,-1416354905),Ee=b(Ee,Ce,_e,Ae,St[5],21,-57434055),Ae=b(Ae,Ee,Ce,_e,St[12],6,1700485571),_e=b(_e,Ae,Ee,Ce,St[3],10,-1894986606),Ce=b(Ce,_e,Ae,Ee,St[10],15,-1051523),Ee=b(Ee,Ce,_e,Ae,St[1],21,-2054922799),Ae=b(Ae,Ee,Ce,_e,St[8],6,1873313359),_e=b(_e,Ae,Ee,Ce,St[15],10,-30611744),Ce=b(Ce,_e,Ae,Ee,St[6],15,-1560198380),Ee=b(Ee,Ce,_e,Ae,St[13],21,1309151649),Ae=b(Ae,Ee,Ce,_e,St[4],6,-145523070),_e=b(_e,Ae,Ee,Ce,St[11],10,-1120210379),Ce=b(Ce,_e,Ae,Ee,St[2],15,718787259),Ee=b(Ee,Ce,_e,Ae,St[9],21,-343485551),Be[0]=_$2(Ae,Be[0]),Be[1]=_$2(Ee,Be[1]),Be[2]=_$2(Ce,Be[2]),Be[3]=_$2(_e,Be[3])}function p$1(Be,St,Ae,Ee,Ce,_e){return St=_$2(_$2(St,Be),_$2(Ee,_e)),_$2(St<<Ce|St>>>32-Ce,Ae)}function g(Be,St,Ae,Ee,Ce,_e,Te){return p$1(St&Ae|~St&Ee,Be,St,Ce,_e,Te)}function m$2(Be,St,Ae,Ee,Ce,_e,Te){return p$1(St&Ee|Ae&~Ee,Be,St,Ce,_e,Te)}function v$1(Be,St,Ae,Ee,Ce,_e,Te){return p$1(St^Ae^Ee,Be,St,Ce,_e,Te)}function b(Be,St,Ae,Ee,Ce,_e,Te){return p$1(Ae^(St|~Ee),Be,St,Ce,_e,Te)}function y$1(Be){var St,Ae=Be.length,Ee=[1732584193,-271733879,-1732584194,271733878];for(St=64;St<=Be.length;St+=64)d(Ee,w(Be.substring(St-64,St)));Be=Be.substring(St-64);var Ce=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(St=0;St<Be.length;St++)Ce[St>>2]|=Be.charCodeAt(St)<<(St%4<<3);if(Ce[St>>2]|=128<<(St%4<<3),St>55)for(d(Ee,Ce),St=0;St<16;St++)Ce[St]=0;return Ce[14]=8*Ae,d(Ee,Ce),Ee}function w(Be){var St,Ae=[];for(St=0;St<64;St+=4)Ae[St>>2]=Be.charCodeAt(St)+(Be.charCodeAt(St+1)<<8)+(Be.charCodeAt(St+2)<<16)+(Be.charCodeAt(St+3)<<24);return Ae}u$2=n$1.atob.bind(n$1),h$1=n$1.btoa.bind(n$1);var N$1="0123456789abcdef".split("");function L$1(Be){for(var St="",Ae=0;Ae<4;Ae++)St+=N$1[Be>>8*Ae+4&15]+N$1[Be>>8*Ae&15];return St}function A$1(Be){return String.fromCharCode((255&Be)>>0,(65280&Be)>>8,(16711680&Be)>>16,(4278190080&Be)>>24)}function x(Be){return y$1(Be).map(A$1).join("")}var S=function(Be){for(var St=0;St<Be.length;St++)Be[St]=L$1(Be[St]);return Be.join("")}(y$1("hello"))!="5d41402abc4b2a76b9719d911017c592";function _$2(Be,St){if(S){var Ae=(65535&Be)+(65535&St);return(Be>>16)+(St>>16)+(Ae>>16)<<16|65535&Ae}return Be+St&4294967295}/**
* @license
* FPDF is released under a permissive license: there is no usage restriction.
* You may embed it freely in your application (commercial or not), with or
* without modifications.
*
* Reference: http://www.fpdf.org/en/script/script37.php
*/function P(Be,St){var Ae,Ee,Ce,_e;if(Be!==Ae){for(var Te=(Ce=Be,_e=1+(256/Be.length>>0),new Array(_e+1).join(Ce)),Se=[],xe=0;xe<256;xe++)Se[xe]=xe;var Fe=0;for(xe=0;xe<256;xe++){var Ue=Se[xe];Fe=(Fe+Ue+Te.charCodeAt(xe))%256,Se[xe]=Se[Fe],Se[Fe]=Ue}Ae=Be,Ee=Se}else Se=Ee;var Re=St.length,He=0,$e=0,ze="";for(xe=0;xe<Re;xe++)$e=($e+(Ue=Se[He=(He+1)%256]))%256,Se[He]=Se[$e],Se[$e]=Ue,Te=Se[(Se[He]+Se[$e])%256],ze+=String.fromCharCode(St.charCodeAt(xe)^Te);return ze}/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
* Author: Owen Leong (@owenl131)
* Date: 15 Oct 2020
* References:
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
* http://www.fpdf.org/en/script/script37.php
*/var k={print:4,modify:8,copy:16,"annot-forms":32};function I(Be,St,Ae,Ee){this.v=1,this.r=2;var Ce=192;Be.forEach(function(Se){if(k.perm!==void 0)throw new Error("Invalid permission: "+Se);Ce+=k[Se]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var _e=(St+this.padding).substr(0,32),Te=(Ae+this.padding).substr(0,32);this.O=this.processOwnerPassword(_e,Te),this.P=-(1+(255^Ce)),this.encryptionKey=x(_e+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Ee)).substr(0,5),this.U=P(this.encryptionKey,this.padding)}function F$1(Be){if(/[^\u0000-\u00ff]/.test(Be))throw new Error("Invalid PDF Name Object: "+Be+", Only accept ASCII characters.");for(var St="",Ae=Be.length,Ee=0;Ee<Ae;Ee++){var Ce=Be.charCodeAt(Ee);Ce<33||Ce===35||Ce===37||Ce===40||Ce===41||Ce===47||Ce===60||Ce===62||Ce===91||Ce===93||Ce===123||Ce===125||Ce>126?St+="#"+("0"+Ce.toString(16)).slice(-2):St+=Be[Ee]}return St}function C(Be){if(_typeof$3(Be)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var St={};this.subscribe=function(Ae,Ee,Ce){if(Ce=Ce||!1,typeof Ae!="string"||typeof Ee!="function"||typeof Ce!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");St.hasOwnProperty(Ae)||(St[Ae]={});var _e=Math.random().toString(35);return St[Ae][_e]=[Ee,!!Ce],_e},this.unsubscribe=function(Ae){for(var Ee in St)if(St[Ee][Ae])return delete St[Ee][Ae],Object.keys(St[Ee]).length===0&&delete St[Ee],!0;return!1},this.publish=function(Ae){if(St.hasOwnProperty(Ae)){var Ee=Array.prototype.slice.call(arguments,1),Ce=[];for(var _e in St[Ae]){var Te=St[Ae][_e];try{Te[0].apply(Be,Ee)}catch(Se){n$1.console&&a$2.error("jsPDF PubSub Error",Se.message,Se)}Te[1]&&Ce.push(_e)}Ce.length&&Ce.forEach(this.unsubscribe)}},this.getTopics=function(){return St}}function j(Be){if(!(this instanceof j))return new j(Be);var St="opacity,stroke-opacity".split(",");for(var Ae in Be)Be.hasOwnProperty(Ae)&&St.indexOf(Ae)>=0&&(this[Ae]=Be[Ae]);this.id="",this.objectNumber=-1}function O$1(Be,St){this.gState=Be,this.matrix=St,this.id="",this.objectNumber=-1}function B(Be,St,Ae,Ee,Ce){if(!(this instanceof B))return new B(Be,St,Ae,Ee,Ce);this.type=Be==="axial"?2:3,this.coords=St,this.colors=Ae,O$1.call(this,Ee,Ce)}function M(Be,St,Ae,Ee,Ce){if(!(this instanceof M))return new M(Be,St,Ae,Ee,Ce);this.boundingBox=Be,this.xStep=St,this.yStep=Ae,this.stream="",this.cloneIndex=0,O$1.call(this,Ee,Ce)}function E$1(Be){var St,Ae=typeof arguments[0]=="string"?arguments[0]:"p",Ee=arguments[1],Ce=arguments[2],_e=arguments[3],Te=[],Se=1,xe=16,Fe="S",Ue=null;_typeof$3(Be=Be||{})==="object"&&(Ae=Be.orientation,Ee=Be.unit||Ee,Ce=Be.format||Ce,_e=Be.compress||Be.compressPdf||_e,(Ue=Be.encryption||null)!==null&&(Ue.userPassword=Ue.userPassword||"",Ue.ownerPassword=Ue.ownerPassword||"",Ue.userPermissions=Ue.userPermissions||[]),Se=typeof Be.userUnit=="number"?Math.abs(Be.userUnit):1,Be.precision!==void 0&&(St=Be.precision),Be.floatPrecision!==void 0&&(xe=Be.floatPrecision),Fe=Be.defaultPathOperation||"S"),Te=Be.filters||(_e===!0?["FlateEncode"]:Te),Ee=Ee||"mm",Ae=(""+(Ae||"P")).toLowerCase();var Re=Be.putOnlyUsedFonts||!1,He={},$e={internal:{},__private__:{}};$e.__private__.PubSub=C;var ze="1.3",Ve=$e.__private__.getPdfVersion=function(){return ze};$e.__private__.setPdfVersion=function(Me){ze=Me};var ir={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};$e.__private__.getPageFormats=function(){return ir};var Ze=$e.__private__.getPageFormat=function(Me){return ir[Me]};Ce=Ce||"a4";var ar={COMPAT:"compat",ADVANCED:"advanced"},cr=ar.COMPAT;function Xe(){this.saveGraphicsState(),Sr(new Mn(Hn,0,0,-Hn,0,Ci()*Hn).toString()+" cm"),this.setFontSize(this.getFontSize()/Hn),Fe="n",cr=ar.ADVANCED}function or(){this.restoreGraphicsState(),Fe="S",cr=ar.COMPAT}var Oe=$e.__private__.combineFontStyleAndFontWeight=function(Me,hr){if(Me=="bold"&&hr=="normal"||Me=="bold"&&hr==400||Me=="normal"&&hr=="italic"||Me=="bold"&&hr=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return hr&&(Me=hr==400||hr==="normal"?Me==="italic"?"italic":"normal":hr!=700&&hr!=="bold"||Me!=="normal"?(hr==700?"bold":hr)+""+Me:"bold"),Me};$e.advancedAPI=function(Me){var hr=cr===ar.COMPAT;return hr&&Xe.call(this),typeof Me!="function"||(Me(this),hr&&or.call(this)),this},$e.compatAPI=function(Me){var hr=cr===ar.ADVANCED;return hr&&or.call(this),typeof Me!="function"||(Me(this),hr&&Xe.call(this)),this},$e.isAdvancedAPI=function(){return cr===ar.ADVANCED};var Je,Ye=function(Me){if(cr!==ar.ADVANCED)throw new Error(Me+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},rr=$e.roundToPrecision=$e.__private__.roundToPrecision=function(Me,hr){var Ir=St||hr;if(isNaN(Me)||isNaN(Ir))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Me.toFixed(Ir).replace(/0+$/,"")};Je=$e.hpf=$e.__private__.hpf=typeof xe=="number"?function(Me){if(isNaN(Me))throw new Error("Invalid argument passed to jsPDF.hpf");return rr(Me,xe)}:xe==="smart"?function(Me){if(isNaN(Me))throw new Error("Invalid argument passed to jsPDF.hpf");return rr(Me,Me>-1&&Me<1?16:5)}:function(Me){if(isNaN(Me))throw new Error("Invalid argument passed to jsPDF.hpf");return rr(Me,16)};var vr=$e.f2=$e.__private__.f2=function(Me){if(isNaN(Me))throw new Error("Invalid argument passed to jsPDF.f2");return rr(Me,2)},er=$e.__private__.f3=function(Me){if(isNaN(Me))throw new Error("Invalid argument passed to jsPDF.f3");return rr(Me,3)},Ar=$e.scale=$e.__private__.scale=function(Me){if(isNaN(Me))throw new Error("Invalid argument passed to jsPDF.scale");return cr===ar.COMPAT?Me*Hn:cr===ar.ADVANCED?Me:void 0},gr=function(Me){return cr===ar.COMPAT?Ci()-Me:cr===ar.ADVANCED?Me:void 0},mr=function(Me){return Ar(gr(Me))};$e.__private__.setPrecision=$e.setPrecision=function(Me){typeof parseInt(Me,10)=="number"&&(St=parseInt(Me,10))};var Ur,Lr="00000000000000000000000000000000",Mr=$e.__private__.getFileId=function(){return Lr},Qr=$e.__private__.setFileId=function(Me){return Lr=Me!==void 0&&/^[a-fA-F0-9]{32}$/.test(Me)?Me.toUpperCase():Lr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),Ue!==null&&(mA=new I(Ue.userPermissions,Ue.userPassword,Ue.ownerPassword,Lr)),Lr};$e.setFileId=function(Me){return Qr(Me),this},$e.getFileId=function(){return Mr()};var Dr=$e.__private__.convertDateToPDFDate=function(Me){var hr=Me.getTimezoneOffset(),Ir=hr<0?"+":"-",Hr=Math.floor(Math.abs(hr/60)),rn=Math.abs(hr%60),hn=[Ir,Fr(Hr),"'",Fr(rn),"'"].join("");return["D:",Me.getFullYear(),Fr(Me.getMonth()+1),Fr(Me.getDate()),Fr(Me.getHours()),Fr(Me.getMinutes()),Fr(Me.getSeconds()),hn].join("")},Xr=$e.__private__.convertPDFDateToDate=function(Me){var hr=parseInt(Me.substr(2,4),10),Ir=parseInt(Me.substr(6,2),10)-1,Hr=parseInt(Me.substr(8,2),10),rn=parseInt(Me.substr(10,2),10),hn=parseInt(Me.substr(12,2),10),xn=parseInt(Me.substr(14,2),10);return new Date(hr,Ir,Hr,rn,hn,xn,0)},sn=$e.__private__.setCreationDate=function(Me){var hr;if(Me===void 0&&(Me=new Date),Me instanceof Date)hr=Dr(Me);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(Me))throw new Error("Invalid argument passed to jsPDF.setCreationDate");hr=Me}return Ur=hr},ur=$e.__private__.getCreationDate=function(Me){var hr=Ur;return Me==="jsDate"&&(hr=Xr(Ur)),hr};$e.setCreationDate=function(Me){return sn(Me),this},$e.getCreationDate=function(Me){return ur(Me)};var _r,Fr=$e.__private__.padd2=function(Me){return("0"+parseInt(Me)).slice(-2)},Pr=$e.__private__.padd2Hex=function(Me){return("00"+(Me=Me.toString())).substr(Me.length)},kr=0,Vr=[],nn=[],Jr=0,wn=[],Cn=[],On=!1,In=nn,Xn=function(){kr=0,Jr=0,nn=[],Vr=[],wn=[],PA=Ii(),pA=Ii()};$e.__private__.setCustomOutputDestination=function(Me){On=!0,In=Me};var fn=function(Me){On||(In=Me)};$e.__private__.resetCustomOutputDestination=function(){On=!1,In=nn};var Sr=$e.__private__.out=function(Me){return Me=Me.toString(),Jr+=Me.length+1,In.push(Me),In},ti=$e.__private__.write=function(Me){return Sr(arguments.length===1?Me.toString():Array.prototype.join.call(arguments," "))},Yn=$e.__private__.getArrayBuffer=function(Me){for(var hr=Me.length,Ir=new ArrayBuffer(hr),Hr=new Uint8Array(Ir);hr--;)Hr[hr]=Me.charCodeAt(hr);return Ir},Tn=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];$e.__private__.getStandardFonts=function(){return Tn};var Nn=Be.fontSize||16;$e.__private__.setFontSize=$e.setFontSize=function(Me){return Nn=cr===ar.ADVANCED?Me/Hn:Me,this};var Rn,$n=$e.__private__.getFontSize=$e.getFontSize=function(){return cr===ar.COMPAT?Nn:Nn*Hn},zn=Be.R2L||!1;$e.__private__.setR2L=$e.setR2L=function(Me){return zn=Me,this},$e.__private__.getR2L=$e.getR2L=function(){return zn};var Gn,ii=$e.__private__.setZoomMode=function(Me){var hr=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Me))Rn=Me;else if(isNaN(Me)){if(hr.indexOf(Me)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Me+'" is not recognized.');Rn=Me}else Rn=parseInt(Me,10)};$e.__private__.getZoomMode=function(){return Rn};var ui,mi=$e.__private__.setPageMode=function(Me){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Me)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Me+'" is not recognized.');Gn=Me};$e.__private__.getPageMode=function(){return Gn};var yi=$e.__private__.setLayoutMode=function(Me){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Me)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Me+'" is not recognized.');ui=Me};$e.__private__.getLayoutMode=function(){return ui},$e.__private__.setDisplayMode=$e.setDisplayMode=function(Me,hr,Ir){return ii(Me),yi(hr),mi(Ir),this};var Ai={title:"",subject:"",author:"",keywords:"",creator:""};$e.__private__.getDocumentProperty=function(Me){if(Object.keys(Ai).indexOf(Me)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Ai[Me]},$e.__private__.getDocumentProperties=function(){return Ai},$e.__private__.setDocumentProperties=$e.setProperties=$e.setDocumentProperties=function(Me){for(var hr in Ai)Ai.hasOwnProperty(hr)&&Me[hr]&&(Ai[hr]=Me[hr]);return this},$e.__private__.setDocumentProperty=function(Me,hr){if(Object.keys(Ai).indexOf(Me)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Ai[Me]=hr};var hi,Hn,Oi,wi,br,Ke={},je={},sr=[],dr={},Or={},qr={},gn={},mn=null,Ln=0,We=[],ke=new C($e),Wr=Be.hotfixes||[],Bn={},Jn={},pi=[],Mn=function Me(hr,Ir,Hr,rn,hn,xn){if(!(this instanceof Me))return new Me(hr,Ir,Hr,rn,hn,xn);isNaN(hr)&&(hr=1),isNaN(Ir)&&(Ir=0),isNaN(Hr)&&(Hr=0),isNaN(rn)&&(rn=1),isNaN(hn)&&(hn=0),isNaN(xn)&&(xn=0),this._matrix=[hr,Ir,Hr,rn,hn,xn]};Object.defineProperty(Mn.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Me){this._matrix[0]=Me}}),Object.defineProperty(Mn.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Me){this._matrix[1]=Me}}),Object.defineProperty(Mn.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Me){this._matrix[2]=Me}}),Object.defineProperty(Mn.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Me){this._matrix[3]=Me}}),Object.defineProperty(Mn.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Me){this._matrix[4]=Me}}),Object.defineProperty(Mn.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Me){this._matrix[5]=Me}}),Object.defineProperty(Mn.prototype,"a",{get:function(){return this._matrix[0]},set:function(Me){this._matrix[0]=Me}}),Object.defineProperty(Mn.prototype,"b",{get:function(){return this._matrix[1]},set:function(Me){this._matrix[1]=Me}}),Object.defineProperty(Mn.prototype,"c",{get:function(){return this._matrix[2]},set:function(Me){this._matrix[2]=Me}}),Object.defineProperty(Mn.prototype,"d",{get:function(){return this._matrix[3]},set:function(Me){this._matrix[3]=Me}}),Object.defineProperty(Mn.prototype,"e",{get:function(){return this._matrix[4]},set:function(Me){this._matrix[4]=Me}}),Object.defineProperty(Mn.prototype,"f",{get:function(){return this._matrix[5]},set:function(Me){this._matrix[5]=Me}}),Object.defineProperty(Mn.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Mn.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Mn.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Mn.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Mn.prototype.join=function(Me){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Je).join(Me)},Mn.prototype.multiply=function(Me){var hr=Me.sx*this.sx+Me.shy*this.shx,Ir=Me.sx*this.shy+Me.shy*this.sy,Hr=Me.shx*this.sx+Me.sy*this.shx,rn=Me.shx*this.shy+Me.sy*this.sy,hn=Me.tx*this.sx+Me.ty*this.shx+this.tx,xn=Me.tx*this.shy+Me.ty*this.sy+this.ty;return new Mn(hr,Ir,Hr,rn,hn,xn)},Mn.prototype.decompose=function(){var Me=this.sx,hr=this.shy,Ir=this.shx,Hr=this.sy,rn=this.tx,hn=this.ty,xn=Math.sqrt(Me*Me+hr*hr),kn=(Me/=xn)*Ir+(hr/=xn)*Hr;Ir-=Me*kn,Hr-=hr*kn;var ri=Math.sqrt(Ir*Ir+Hr*Hr);return kn/=ri,Me*(Hr/=ri)<hr*(Ir/=ri)&&(Me=-Me,hr=-hr,kn=-kn,xn=-xn),{scale:new Mn(xn,0,0,ri,0,0),translate:new Mn(1,0,0,1,rn,hn),rotate:new Mn(Me,hr,-hr,Me,0,0),skew:new Mn(1,0,kn,1,0,0)}},Mn.prototype.toString=function(Me){return this.join(" ")},Mn.prototype.inversed=function(){var Me=this.sx,hr=this.shy,Ir=this.shx,Hr=this.sy,rn=this.tx,hn=this.ty,xn=1/(Me*Hr-hr*Ir),kn=Hr*xn,ri=-hr*xn,Ei=-Ir*xn,di=Me*xn;return new Mn(kn,ri,Ei,di,-kn*rn-Ei*hn,-ri*rn-di*hn)},Mn.prototype.applyToPoint=function(Me){var hr=Me.x*this.sx+Me.y*this.shx+this.tx,Ir=Me.x*this.shy+Me.y*this.sy+this.ty;return new vi(hr,Ir)},Mn.prototype.applyToRectangle=function(Me){var hr=this.applyToPoint(Me),Ir=this.applyToPoint(new vi(Me.x+Me.w,Me.y+Me.h));return new oi(hr.x,hr.y,Ir.x-hr.x,Ir.y-hr.y)},Mn.prototype.clone=function(){var Me=this.sx,hr=this.shy,Ir=this.shx,Hr=this.sy,rn=this.tx,hn=this.ty;return new Mn(Me,hr,Ir,Hr,rn,hn)},$e.Matrix=Mn;var Fi=$e.matrixMult=function(Me,hr){return hr.multiply(Me)},Ui=new Mn(1,0,0,1,0,0);$e.unitMatrix=$e.identityMatrix=Ui;var Ki=function(Me,hr){if(!Or[Me]){var Ir=(hr instanceof B?"Sh":"P")+(Object.keys(dr).length+1).toString(10);hr.id=Ir,Or[Me]=Ir,dr[Ir]=hr,ke.publish("addPattern",hr)}};$e.ShadingPattern=B,$e.TilingPattern=M,$e.addShadingPattern=function(Me,hr){return Ye("addShadingPattern()"),Ki(Me,hr),this},$e.beginTilingPattern=function(Me){Ye("beginTilingPattern()"),Zi(Me.boundingBox[0],Me.boundingBox[1],Me.boundingBox[2]-Me.boundingBox[0],Me.boundingBox[3]-Me.boundingBox[1],Me.matrix)},$e.endTilingPattern=function(Me,hr){Ye("endTilingPattern()"),hr.stream=Cn[_r].join(`
`),Ki(Me,hr),ke.publish("endTilingPattern",hr),pi.pop().restore()};var Gi=$e.__private__.newObject=function(){var Me=Ii();return Yi(Me,!0),Me},Ii=$e.__private__.newObjectDeferred=function(){return kr++,Vr[kr]=function(){return Jr},kr},Yi=function(Me,hr){return hr=typeof hr=="boolean"&&hr,Vr[Me]=Jr,hr&&Sr(Me+" 0 obj"),Me},to=$e.__private__.newAdditionalObject=function(){var Me={objId:Ii(),content:""};return wn.push(Me),Me},PA=Ii(),pA=Ii(),sA=$e.__private__.decodeColorString=function(Me){var hr=Me.split(" ");if(hr.length!==2||hr[1]!=="g"&&hr[1]!=="G")hr.length===5&&(hr[4]==="k"||hr[4]==="K")&&(hr=[(1-hr[0])*(1-hr[3]),(1-hr[1])*(1-hr[3]),(1-hr[2])*(1-hr[3]),"r"]);else{var Ir=parseFloat(hr[0]);hr=[Ir,Ir,Ir,"r"]}for(var Hr="#",rn=0;rn<3;rn++)Hr+=("0"+Math.floor(255*parseFloat(hr[rn])).toString(16)).slice(-2);return Hr},rA=$e.__private__.encodeColorString=function(Me){var hr;typeof Me=="string"&&(Me={ch1:Me});var Ir=Me.ch1,Hr=Me.ch2,rn=Me.ch3,hn=Me.ch4,xn=Me.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Ir=="string"&&Ir.charAt(0)!=="#"){var kn=new f$2(Ir);if(kn.ok)Ir=kn.toHex();else if(!/^\d*\.?\d*$/.test(Ir))throw new Error('Invalid color "'+Ir+'" passed to jsPDF.encodeColorString.')}if(typeof Ir=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Ir)&&(Ir="#"+Ir[1]+Ir[1]+Ir[2]+Ir[2]+Ir[3]+Ir[3]),typeof Ir=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Ir)){var ri=parseInt(Ir.substr(1),16);Ir=ri>>16&255,Hr=ri>>8&255,rn=255&ri}if(Hr===void 0||hn===void 0&&Ir===Hr&&Hr===rn)if(typeof Ir=="string")hr=Ir+" "+xn[0];else switch(Me.precision){case 2:hr=vr(Ir/255)+" "+xn[0];break;case 3:default:hr=er(Ir/255)+" "+xn[0]}else if(hn===void 0||_typeof$3(hn)==="object"){if(hn&&!isNaN(hn.a)&&hn.a===0)return hr=["1.","1.","1.",xn[1]].join(" ");if(typeof Ir=="string")hr=[Ir,Hr,rn,xn[1]].join(" ");else switch(Me.precision){case 2:hr=[vr(Ir/255),vr(Hr/255),vr(rn/255),xn[1]].join(" ");break;default:case 3:hr=[er(Ir/255),er(Hr/255),er(rn/255),xn[1]].join(" ")}}else if(typeof Ir=="string")hr=[Ir,Hr,rn,hn,xn[2]].join(" ");else switch(Me.precision){case 2:hr=[vr(Ir),vr(Hr),vr(rn),vr(hn),xn[2]].join(" ");break;case 3:default:hr=[er(Ir),er(Hr),er(rn),er(hn),xn[2]].join(" ")}return hr},dA=$e.__private__.getFilters=function(){return Te},vA=$e.__private__.putStream=function(Me){var hr=(Me=Me||{}).data||"",Ir=Me.filters||dA(),Hr=Me.alreadyAppliedFilters||[],rn=Me.addLength1||!1,hn=hr.length,xn=Me.objectId,kn=function(uA){return uA};if(Ue!==null&&xn===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");Ue!==null&&(kn=mA.encryptor(xn,0));var ri={};Ir===!0&&(Ir=["FlateEncode"]);var Ei=Me.additionalKeyValues||[],di=(ri=E$1.API.processDataByFilters!==void 0?E$1.API.processDataByFilters(hr,Ir):{data:hr,reverseChain:[]}).reverseChain+(Array.isArray(Hr)?Hr.join(" "):Hr.toString());if(ri.data.length!==0&&(Ei.push({key:"Length",value:ri.data.length}),rn===!0&&Ei.push({key:"Length1",value:hn})),di.length!=0)if(di.split("/").length-1==1)Ei.push({key:"Filter",value:di});else{Ei.push({key:"Filter",value:"["+di+"]"});for(var xi=0;xi<Ei.length;xi+=1)if(Ei[xi].key==="DecodeParms"){for(var ci=[],Qi=0;Qi<ri.reverseChain.split("/").length-1;Qi+=1)ci.push("null");ci.push(Ei[xi].value),Ei[xi].value="["+ci.join(" ")+"]"}}Sr("<<");for(var nA=0;nA<Ei.length;nA++)Sr("/"+Ei[nA].key+" "+Ei[nA].value);Sr(">>"),ri.data.length!==0&&(Sr("stream"),Sr(kn(ri.data)),Sr("endstream"))},OA=$e.__private__.putPage=function(Me){var hr=Me.number,Ir=Me.data,Hr=Me.objId,rn=Me.contentsObjId;Yi(Hr,!0),Sr("<</Type /Page"),Sr("/Parent "+Me.rootDictionaryObjId+" 0 R"),Sr("/Resources "+Me.resourceDictionaryObjId+" 0 R"),Sr("/MediaBox ["+parseFloat(Je(Me.mediaBox.bottomLeftX))+" "+parseFloat(Je(Me.mediaBox.bottomLeftY))+" "+Je(Me.mediaBox.topRightX)+" "+Je(Me.mediaBox.topRightY)+"]"),Me.cropBox!==null&&Sr("/CropBox ["+Je(Me.cropBox.bottomLeftX)+" "+Je(Me.cropBox.bottomLeftY)+" "+Je(Me.cropBox.topRightX)+" "+Je(Me.cropBox.topRightY)+"]"),Me.bleedBox!==null&&Sr("/BleedBox ["+Je(Me.bleedBox.bottomLeftX)+" "+Je(Me.bleedBox.bottomLeftY)+" "+Je(Me.bleedBox.topRightX)+" "+Je(Me.bleedBox.topRightY)+"]"),Me.trimBox!==null&&Sr("/TrimBox ["+Je(Me.trimBox.bottomLeftX)+" "+Je(Me.trimBox.bottomLeftY)+" "+Je(Me.trimBox.topRightX)+" "+Je(Me.trimBox.topRightY)+"]"),Me.artBox!==null&&Sr("/ArtBox ["+Je(Me.artBox.bottomLeftX)+" "+Je(Me.artBox.bottomLeftY)+" "+Je(Me.artBox.topRightX)+" "+Je(Me.artBox.topRightY)+"]"),typeof Me.userUnit=="number"&&Me.userUnit!==1&&Sr("/UserUnit "+Me.userUnit),ke.publish("putPage",{objId:Hr,pageContext:We[hr],pageNumber:hr,page:Ir}),Sr("/Contents "+rn+" 0 R"),Sr(">>"),Sr("endobj");var hn=Ir.join(`
`);return cr===ar.ADVANCED&&(hn+=`
Q`),Yi(rn,!0),vA({data:hn,filters:dA(),objectId:rn}),Sr("endobj"),Hr},WA=$e.__private__.putPages=function(){var Me,hr,Ir=[];for(Me=1;Me<=Ln;Me++)We[Me].objId=Ii(),We[Me].contentsObjId=Ii();for(Me=1;Me<=Ln;Me++)Ir.push(OA({number:Me,data:Cn[Me],objId:We[Me].objId,contentsObjId:We[Me].contentsObjId,mediaBox:We[Me].mediaBox,cropBox:We[Me].cropBox,bleedBox:We[Me].bleedBox,trimBox:We[Me].trimBox,artBox:We[Me].artBox,userUnit:We[Me].userUnit,rootDictionaryObjId:PA,resourceDictionaryObjId:pA}));Yi(PA,!0),Sr("<</Type /Pages");var Hr="/Kids [";for(hr=0;hr<Ln;hr++)Hr+=Ir[hr]+" 0 R ";Sr(Hr+"]"),Sr("/Count "+Ln),Sr(">>"),Sr("endobj"),ke.publish("postPutPages")},lo=function(Me){ke.publish("putFont",{font:Me,out:Sr,newObject:Gi,putStream:vA}),Me.isAlreadyPutted!==!0&&(Me.objectNumber=Gi(),Sr("<<"),Sr("/Type /Font"),Sr("/BaseFont /"+F$1(Me.postScriptName)),Sr("/Subtype /Type1"),typeof Me.encoding=="string"&&Sr("/Encoding /"+Me.encoding),Sr("/FirstChar 32"),Sr("/LastChar 255"),Sr(">>"),Sr("endobj"))},ei=function(){for(var Me in Ke)Ke.hasOwnProperty(Me)&&(Re===!1||Re===!0&&He.hasOwnProperty(Me))&&lo(Ke[Me])},Kr=function(Me){Me.objectNumber=Gi();var hr=[];hr.push({key:"Type",value:"/XObject"}),hr.push({key:"Subtype",value:"/Form"}),hr.push({key:"BBox",value:"["+[Je(Me.x),Je(Me.y),Je(Me.x+Me.width),Je(Me.y+Me.height)].join(" ")+"]"}),hr.push({key:"Matrix",value:"["+Me.matrix.toString()+"]"});var Ir=Me.pages[1].join(`
`);vA({data:Ir,additionalKeyValues:hr,objectId:Me.objectNumber}),Sr("endobj")},Un=function(){for(var Me in Bn)Bn.hasOwnProperty(Me)&&Kr(Bn[Me])},Vn=function(Me,hr){var Ir,Hr=[],rn=1/(hr-1);for(Ir=0;Ir<1;Ir+=rn)Hr.push(Ir);if(Hr.push(1),Me[0].offset!=0){var hn={offset:0,color:Me[0].color};Me.unshift(hn)}if(Me[Me.length-1].offset!=1){var xn={offset:1,color:Me[Me.length-1].color};Me.push(xn)}for(var kn="",ri=0,Ei=0;Ei<Hr.length;Ei++){for(Ir=Hr[Ei];Ir>Me[ri+1].offset;)ri++;var di=Me[ri].offset,xi=(Ir-di)/(Me[ri+1].offset-di),ci=Me[ri].color,Qi=Me[ri+1].color;kn+=Pr(Math.round((1-xi)*ci[0]+xi*Qi[0]).toString(16))+Pr(Math.round((1-xi)*ci[1]+xi*Qi[1]).toString(16))+Pr(Math.round((1-xi)*ci[2]+xi*Qi[2]).toString(16))}return kn.trim()},Pi=function(Me,hr){hr||(hr=21);var Ir=Gi(),Hr=Vn(Me.colors,hr),rn=[];rn.push({key:"FunctionType",value:"0"}),rn.push({key:"Domain",value:"[0.0 1.0]"}),rn.push({key:"Size",value:"["+hr+"]"}),rn.push({key:"BitsPerSample",value:"8"}),rn.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),rn.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),vA({data:Hr,additionalKeyValues:rn,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Ir}),Sr("endobj"),Me.objectNumber=Gi(),Sr("<< /ShadingType "+Me.type),Sr("/ColorSpace /DeviceRGB");var hn="/Coords ["+Je(parseFloat(Me.coords[0]))+" "+Je(parseFloat(Me.coords[1]))+" ";Me.type===2?hn+=Je(parseFloat(Me.coords[2]))+" "+Je(parseFloat(Me.coords[3])):hn+=Je(parseFloat(Me.coords[2]))+" "+Je(parseFloat(Me.coords[3]))+" "+Je(parseFloat(Me.coords[4]))+" "+Je(parseFloat(Me.coords[5])),Sr(hn+="]"),Me.matrix&&Sr("/Matrix ["+Me.matrix.toString()+"]"),Sr("/Function "+Ir+" 0 R"),Sr("/Extend [true true]"),Sr(">>"),Sr("endobj")},aA=function(Me,hr){var Ir=Ii(),Hr=Gi();hr.push({resourcesOid:Ir,objectOid:Hr}),Me.objectNumber=Hr;var rn=[];rn.push({key:"Type",value:"/Pattern"}),rn.push({key:"PatternType",value:"1"}),rn.push({key:"PaintType",value:"1"}),rn.push({key:"TilingType",value:"1"}),rn.push({key:"BBox",value:"["+Me.boundingBox.map(Je).join(" ")+"]"}),rn.push({key:"XStep",value:Je(Me.xStep)}),rn.push({key:"YStep",value:Je(Me.yStep)}),rn.push({key:"Resources",value:Ir+" 0 R"}),Me.matrix&&rn.push({key:"Matrix",value:"["+Me.matrix.toString()+"]"}),vA({data:Me.stream,additionalKeyValues:rn,objectId:Me.objectNumber}),Sr("endobj")},qi=function(Me){var hr;for(hr in dr)dr.hasOwnProperty(hr)&&(dr[hr]instanceof B?Pi(dr[hr]):dr[hr]instanceof M&&aA(dr[hr],Me))},zi=function(Me){for(var hr in Me.objectNumber=Gi(),Sr("<<"),Me)switch(hr){case"opacity":Sr("/ca "+vr(Me[hr]));break;case"stroke-opacity":Sr("/CA "+vr(Me[hr]))}Sr(">>"),Sr("endobj")},VA=function(){var Me;for(Me in qr)qr.hasOwnProperty(Me)&&zi(qr[Me])},Ti=function(){for(var Me in Sr("/XObject <<"),Bn)Bn.hasOwnProperty(Me)&&Bn[Me].objectNumber>=0&&Sr("/"+Me+" "+Bn[Me].objectNumber+" 0 R");ke.publish("putXobjectDict"),Sr(">>")},KA=function(){mA.oid=Gi(),Sr("<<"),Sr("/Filter /Standard"),Sr("/V "+mA.v),Sr("/R "+mA.r),Sr("/U <"+mA.toHexString(mA.U)+">"),Sr("/O <"+mA.toHexString(mA.O)+">"),Sr("/P "+mA.P),Sr(">>"),Sr("endobj")},eo=function(){for(var Me in Sr("/Font <<"),Ke)Ke.hasOwnProperty(Me)&&(Re===!1||Re===!0&&He.hasOwnProperty(Me))&&Sr("/"+Me+" "+Ke[Me].objectNumber+" 0 R");Sr(">>")},da=function(){if(Object.keys(dr).length>0){for(var Me in Sr("/Shading <<"),dr)dr.hasOwnProperty(Me)&&dr[Me]instanceof B&&dr[Me].objectNumber>=0&&Sr("/"+Me+" "+dr[Me].objectNumber+" 0 R");ke.publish("putShadingPatternDict"),Sr(">>")}},$o=function(Me){if(Object.keys(dr).length>0){for(var hr in Sr("/Pattern <<"),dr)dr.hasOwnProperty(hr)&&dr[hr]instanceof $e.TilingPattern&&dr[hr].objectNumber>=0&&dr[hr].objectNumber<Me&&Sr("/"+hr+" "+dr[hr].objectNumber+" 0 R");ke.publish("putTilingPatternDict"),Sr(">>")}},ta=function(){if(Object.keys(qr).length>0){var Me;for(Me in Sr("/ExtGState <<"),qr)qr.hasOwnProperty(Me)&&qr[Me].objectNumber>=0&&Sr("/"+Me+" "+qr[Me].objectNumber+" 0 R");ke.publish("putGStateDict"),Sr(">>")}},eA=function(Me){Yi(Me.resourcesOid,!0),Sr("<<"),Sr("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),eo(),da(),$o(Me.objectOid),ta(),Ti(),Sr(">>"),Sr("endobj")},_o=function(){var Me=[];ei(),VA(),Un(),qi(Me),ke.publish("putResources"),Me.forEach(eA),eA({resourcesOid:pA,objectOid:Number.MAX_SAFE_INTEGER}),ke.publish("postPutResources")},ea=function(){ke.publish("putAdditionalObjects");for(var Me=0;Me<wn.length;Me++){var hr=wn[Me];Yi(hr.objId,!0),Sr(hr.content),Sr("endobj")}ke.publish("postPutAdditionalObjects")},ga=function(Me){je[Me.fontName]=je[Me.fontName]||{},je[Me.fontName][Me.fontStyle]=Me.id},ra=function(Me,hr,Ir,Hr,rn){var hn={id:"F"+(Object.keys(Ke).length+1).toString(10),postScriptName:Me,fontName:hr,fontStyle:Ir,encoding:Hr,isStandardFont:rn||!1,metadata:{}};return ke.publish("addFont",{font:hn,instance:this}),Ke[hn.id]=hn,ga(hn),hn.id},DA=function(Me){for(var hr=0,Ir=Tn.length;hr<Ir;hr++){var Hr=ra.call(this,Me[hr][0],Me[hr][1],Me[hr][2],Tn[hr][3],!0);Re===!1&&(He[Hr]=!0);var rn=Me[hr][0].split("-");ga({id:Hr,fontName:rn[0],fontStyle:rn[1]||""})}ke.publish("addFonts",{fonts:Ke,dictionary:je})},jA=function(Me){return Me.foo=function(){try{return Me.apply(this,arguments)}catch(Hr){var hr=Hr.stack||"";~hr.indexOf(" at ")&&(hr=hr.split(" at ")[1]);var Ir="Error in function "+hr.split(`
`)[0].split("<")[0]+": "+Hr.message;if(!n$1.console)throw new Error(Ir);n$1.console.error(Ir,Hr),n$1.alert&&alert(Ir)}},Me.foo.bar=Me,Me.foo},ro=function(Me,hr){var Ir,Hr,rn,hn,xn,kn,ri,Ei,di;if(rn=(hr=hr||{}).sourceEncoding||"Unicode",xn=hr.outputEncoding,(hr.autoencode||xn)&&Ke[hi].metadata&&Ke[hi].metadata[rn]&&Ke[hi].metadata[rn].encoding&&(hn=Ke[hi].metadata[rn].encoding,!xn&&Ke[hi].encoding&&(xn=Ke[hi].encoding),!xn&&hn.codePages&&(xn=hn.codePages[0]),typeof xn=="string"&&(xn=hn[xn]),xn)){for(ri=!1,kn=[],Ir=0,Hr=Me.length;Ir<Hr;Ir++)(Ei=xn[Me.charCodeAt(Ir)])?kn.push(String.fromCharCode(Ei)):kn.push(Me[Ir]),kn[Ir].charCodeAt(0)>>8&&(ri=!0);Me=kn.join("")}for(Ir=Me.length;ri===void 0&&Ir!==0;)Me.charCodeAt(Ir-1)>>8&&(ri=!0),Ir--;if(!ri)return Me;for(kn=hr.noBOM?[]:[254,255],Ir=0,Hr=Me.length;Ir<Hr;Ir++){if((di=(Ei=Me.charCodeAt(Ir))>>8)>>8)throw new Error("Character at position "+Ir+" of string '"+Me+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");kn.push(di),kn.push(Ei-(di<<8))}return String.fromCharCode.apply(void 0,kn)},UA=$e.__private__.pdfEscape=$e.pdfEscape=function(Me,hr){return ro(Me,hr).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},na=$e.__private__.beginPage=function(Me){Cn[++Ln]=[],We[Ln]={objId:0,contentsObjId:0,userUnit:Number(Se),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Me[0]),topRightY:Number(Me[1])}},Ro(Ln),fn(Cn[_r])},no=function(Me,hr){var Ir,Hr,rn;switch(Ae=hr||Ae,typeof Me=="string"&&(Ir=Ze(Me.toLowerCase()),Array.isArray(Ir)&&(Hr=Ir[0],rn=Ir[1])),Array.isArray(Me)&&(Hr=Me[0]*Hn,rn=Me[1]*Hn),isNaN(Hr)&&(Hr=Ce[0],rn=Ce[1]),(Hr>14400||rn>14400)&&(a$2.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Hr=Math.min(14400,Hr),rn=Math.min(14400,rn)),Ce=[Hr,rn],Ae.substr(0,1)){case"l":rn>Hr&&(Ce=[rn,Hr]);break;case"p":Hr>rn&&(Ce=[rn,Hr])}na(Ce),ba(Io),Sr(Br),un!==0&&Sr(un+" J"),dn!==0&&Sr(dn+" j"),ke.publish("addPage",{pageNumber:Ln})},uo=function(Me){Me>0&&Me<=Ln&&(Cn.splice(Me,1),We.splice(Me,1),Ln--,_r>Ln&&(_r=Ln),this.setPage(_r))},Ro=function(Me){Me>0&&Me<=Ln&&(_r=Me)},Ua=$e.__private__.getNumberOfPages=$e.getNumberOfPages=function(){return Cn.length-1},ia=function(Me,hr,Ir){var Hr,rn=void 0;return Ir=Ir||{},Me=Me!==void 0?Me:Ke[hi].fontName,hr=hr!==void 0?hr:Ke[hi].fontStyle,Hr=Me.toLowerCase(),je[Hr]!==void 0&&je[Hr][hr]!==void 0?rn=je[Hr][hr]:je[Me]!==void 0&&je[Me][hr]!==void 0?rn=je[Me][hr]:Ir.disableWarning===!1&&a$2.warn("Unable to look up font label for font '"+Me+"', '"+hr+"'. Refer to getFontList() for available fonts."),rn||Ir.noFallback||(rn=je.times[hr])==null&&(rn=je.times.normal),rn},va=$e.__private__.putInfo=function(){var Me=Gi(),hr=function(Hr){return Hr};for(var Ir in Ue!==null&&(hr=mA.encryptor(Me,0)),Sr("<<"),Sr("/Producer ("+UA(hr("jsPDF "+E$1.version))+")"),Ai)Ai.hasOwnProperty(Ir)&&Ai[Ir]&&Sr("/"+Ir.substr(0,1).toUpperCase()+Ir.substr(1)+" ("+UA(hr(Ai[Ir]))+")");Sr("/CreationDate ("+UA(hr(Ur))+")"),Sr(">>"),Sr("endobj")},co=$e.__private__.putCatalog=function(Me){var hr=(Me=Me||{}).rootDictionaryObjId||PA;switch(Gi(),Sr("<<"),Sr("/Type /Catalog"),Sr("/Pages "+hr+" 0 R"),Rn||(Rn="fullwidth"),Rn){case"fullwidth":Sr("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Sr("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Sr("/OpenAction [3 0 R /Fit]");break;case"original":Sr("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Ir=""+Rn;Ir.substr(Ir.length-1)==="%"&&(Rn=parseInt(Rn)/100),typeof Rn=="number"&&Sr("/OpenAction [3 0 R /XYZ null null "+vr(Rn)+"]")}switch(ui||(ui="continuous"),ui){case"continuous":Sr("/PageLayout /OneColumn");break;case"single":Sr("/PageLayout /SinglePage");break;case"two":case"twoleft":Sr("/PageLayout /TwoColumnLeft");break;case"tworight":Sr("/PageLayout /TwoColumnRight")}Gn&&Sr("/PageMode /"+Gn),ke.publish("putCatalog"),Sr(">>"),Sr("endobj")},ma=$e.__private__.putTrailer=function(){Sr("trailer"),Sr("<<"),Sr("/Size "+(kr+1)),Sr("/Root "+kr+" 0 R"),Sr("/Info "+(kr-1)+" 0 R"),Ue!==null&&Sr("/Encrypt "+mA.oid+" 0 R"),Sr("/ID [ <"+Lr+"> <"+Lr+"> ]"),Sr(">>")},Aa=$e.__private__.putHeader=function(){Sr("%PDF-"+ze),Sr("%ºß¬à")},La=$e.__private__.putXRef=function(){var Me="0000000000";Sr("xref"),Sr("0 "+(kr+1)),Sr("0000000000 65535 f ");for(var hr=1;hr<=kr;hr++)typeof Vr[hr]=="function"?Sr((Me+Vr[hr]()).slice(-10)+" 00000 n "):Vr[hr]!==void 0?Sr((Me+Vr[hr]).slice(-10)+" 00000 n "):Sr("0000000000 00000 n ")},io=$e.__private__.buildDocument=function(){Xn(),fn(nn),ke.publish("buildDocument"),Aa(),WA(),ea(),_o(),Ue!==null&&KA(),va(),co();var Me=Jr;return La(),ma(),Sr("startxref"),Sr(""+Me),Sr("%%EOF"),fn(Cn[_r]),nn.join(`
`)},Qo=$e.__private__.getBlob=function(Me){return new Blob([Yn(Me)],{type:"application/pdf"})},Do=$e.output=$e.__private__.output=jA(function(Me,hr){switch(typeof(hr=hr||{})=="string"?hr={filename:hr}:hr.filename=hr.filename||"generated.pdf",Me){case void 0:return io();case"save":$e.save(hr.filename);break;case"arraybuffer":return Yn(io());case"blob":return Qo(io());case"bloburi":case"bloburl":if(n$1.URL!==void 0&&typeof n$1.URL.createObjectURL=="function")return n$1.URL&&n$1.URL.createObjectURL(Qo(io()))||void 0;a$2.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Ir="",Hr=io();try{Ir=h$1(Hr)}catch{Ir=h$1(unescape(encodeURIComponent(Hr)))}return"data:application/pdf;filename="+hr.filename+";base64,"+Ir;case"pdfobjectnewwindow":if(Object.prototype.toString.call(n$1)==="[object Window]"){var rn="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",hn=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';hr.pdfObjectUrl&&(rn=hr.pdfObjectUrl,hn="");var xn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+rn+'"'+hn+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(hr)+");<\/script></body></html>",kn=n$1.open();return kn!==null&&kn.document.write(xn),kn}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(n$1)==="[object Window]"){var ri='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(hr.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+hr.filename+'" width="500px" height="400px" /></body></html>',Ei=n$1.open();if(Ei!==null){Ei.document.write(ri);var di=this;Ei.document.documentElement.querySelector("#pdfViewer").onload=function(){Ei.document.title=hr.filename,Ei.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(di.output("bloburl"))}}return Ei}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(n$1)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var xi='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",hr)+'"></iframe></body></html>',ci=n$1.open();if(ci!==null&&(ci.document.write(xi),ci.document.title=hr.filename),ci||typeof safari>"u")return ci;break;case"datauri":case"dataurl":return n$1.document.location.href=this.output("datauristring",hr);default:return null}}),Ho=function(Me){return Array.isArray(Wr)===!0&&Wr.indexOf(Me)>-1};switch(Ee){case"pt":Hn=1;break;case"mm":Hn=72/25.4;break;case"cm":Hn=72/2.54;break;case"in":Hn=72;break;case"px":Hn=Ho("px_scaling")==1?.75:96/72;break;case"pc":case"em":Hn=12;break;case"ex":Hn=6;break;default:if(typeof Ee!="number")throw new Error("Invalid unit: "+Ee);Hn=Ee}var mA=null;sn(),Qr();var Na=function(Me){return Ue!==null?mA.encryptor(Me,0):function(hr){return hr}},ya=$e.__private__.getPageInfo=$e.getPageInfo=function(Me){if(isNaN(Me)||Me%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:We[Me].objId,pageNumber:Me,pageContext:We[Me]}},Bi=$e.__private__.getPageInfoByObjId=function(Me){if(isNaN(Me)||Me%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var hr in We)if(We[hr].objId===Me)break;return ya(hr)},$a=$e.__private__.getCurrentPageInfo=$e.getCurrentPageInfo=function(){return{objId:We[_r].objId,pageNumber:_r,pageContext:We[_r]}};$e.addPage=function(){return no.apply(this,arguments),this},$e.setPage=function(){return Ro.apply(this,arguments),fn.call(this,Cn[_r]),this},$e.insertPage=function(Me){return this.addPage(),this.movePage(_r,Me),this},$e.movePage=function(Me,hr){var Ir,Hr;if(Me>hr){Ir=Cn[Me],Hr=We[Me];for(var rn=Me;rn>hr;rn--)Cn[rn]=Cn[rn-1],We[rn]=We[rn-1];Cn[hr]=Ir,We[hr]=Hr,this.setPage(hr)}else if(Me<hr){Ir=Cn[Me],Hr=We[Me];for(var hn=Me;hn<hr;hn++)Cn[hn]=Cn[hn+1],We[hn]=We[hn+1];Cn[hr]=Ir,We[hr]=Hr,this.setPage(hr)}return this},$e.deletePage=function(){return uo.apply(this,arguments),this},$e.__private__.text=$e.text=function(Me,hr,Ir,Hr,rn){var hn,xn,kn,ri,Ei,di,xi,ci,Qi,nA=(Hr=Hr||{}).scope||this;if(typeof Me=="number"&&typeof hr=="number"&&(typeof Ir=="string"||Array.isArray(Ir))){var uA=Ir;Ir=hr,hr=Me,Me=uA}if(arguments[3]instanceof Mn?(Ye("The transform parameter of text() with a Matrix value"),Qi=rn):(kn=arguments[4],ri=arguments[5],_typeof$3(xi=arguments[3])==="object"&&xi!==null||(typeof kn=="string"&&(ri=kn,kn=null),typeof xi=="string"&&(ri=xi,xi=null),typeof xi=="number"&&(kn=xi,xi=null),Hr={flags:xi,angle:kn,align:ri})),isNaN(hr)||isNaN(Ir)||Me==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Me.length===0)return nA;var cA="",LA=!1,HA=typeof Hr.lineHeightFactor=="number"?Hr.lineHeightFactor:yo,XA=nA.internal.scaleFactor;function Ca(Kn){return Kn=Kn.split(" ").join(Array(Hr.TabLen||9).join(" ")),UA(Kn,xi)}function la(Kn){for(var qn,li=Kn.concat(),bi=[],si=li.length;si--;)typeof(qn=li.shift())=="string"?bi.push(qn):Array.isArray(Kn)&&(qn.length===1||qn[1]===void 0&&qn[2]===void 0)?bi.push(qn[0]):bi.push([qn[0],qn[1],qn[2]]);return bi}function ua(Kn,qn){var li;if(typeof Kn=="string")li=qn(Kn)[0];else if(Array.isArray(Kn)){for(var bi,si,tA=Kn.concat(),AA=[],yA=tA.length;yA--;)typeof(bi=tA.shift())=="string"?AA.push(qn(bi)[0]):Array.isArray(bi)&&typeof bi[0]=="string"&&(si=qn(bi[0],bi[1],bi[2]),AA.push([si[0],si[1],si[2]]));li=AA}return li}var fo=!1,ca=!0;if(typeof Me=="string")fo=!0;else if(Array.isArray(Me)){var fa=Me.concat();xn=[];for(var Vo,iA=fa.length;iA--;)(typeof(Vo=fa.shift())!="string"||Array.isArray(Vo)&&typeof Vo[0]!="string")&&(ca=!1);fo=ca}if(fo===!1)throw new Error('Type of text must be string or Array. "'+Me+'" is not recognized.');typeof Me=="string"&&(Me=Me.match(/[\r?\n]/)?Me.split(/\r\n|\r|\n/g):[Me]);var Ko=Nn/nA.internal.scaleFactor,wo=Ko*(HA-1);switch(Hr.baseline){case"bottom":Ir-=wo;break;case"top":Ir+=Ko-wo;break;case"hanging":Ir+=Ko-2*wo;break;case"middle":Ir+=Ko/2-wo}if((di=Hr.maxWidth||0)>0&&(typeof Me=="string"?Me=nA.splitTextToSize(Me,di):Object.prototype.toString.call(Me)==="[object Array]"&&(Me=Me.reduce(function(Kn,qn){return Kn.concat(nA.splitTextToSize(qn,di))},[]))),hn={text:Me,x:hr,y:Ir,options:Hr,mutex:{pdfEscape:UA,activeFontKey:hi,fonts:Ke,activeFontSize:Nn}},ke.publish("preProcessText",hn),Me=hn.text,kn=(Hr=hn.options).angle,!(Qi instanceof Mn)&&kn&&typeof kn=="number"){kn*=Math.PI/180,Hr.rotationDirection===0&&(kn=-kn),cr===ar.ADVANCED&&(kn=-kn);var NA=Math.cos(kn),MA=Math.sin(kn);Qi=new Mn(NA,MA,-MA,NA,0,0)}else kn&&kn instanceof Mn&&(Qi=kn);cr!==ar.ADVANCED||Qi||(Qi=Ui),(Ei=Hr.charSpace||cn)!==void 0&&(cA+=Je(Ar(Ei))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(ci=Hr.horizontalScale)!==void 0&&(cA+=Je(100*ci)+` Tz
`),Hr.lang;var CA=-1,Ta=Hr.renderingMode!==void 0?Hr.renderingMode:Hr.stroke,jo=nA.internal.getCurrentPageInfo().pageContext;switch(Ta){case 0:case!1:case"fill":CA=0;break;case 1:case!0:case"stroke":CA=1;break;case 2:case"fillThenStroke":CA=2;break;case 3:case"invisible":CA=3;break;case 4:case"fillAndAddForClipping":CA=4;break;case 5:case"strokeAndAddPathForClipping":CA=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":CA=6;break;case 7:case"addToPathForClipping":CA=7}var Sa=jo.usedRenderingMode!==void 0?jo.usedRenderingMode:-1;CA!==-1?cA+=CA+` Tr
`:Sa!==-1&&(cA+=`0 Tr
`),CA!==-1&&(jo.usedRenderingMode=CA),ri=Hr.align||"left";var Si,ho=Nn*HA,$A=nA.internal.pageSize.getWidth(),RA=Ke[hi];Ei=Hr.charSpace||cn,di=Hr.maxWidth||0,xi=Object.assign({autoencode:!0,noBOM:!0},Hr.flags);var oo=[],Bo=function(Kn){return nA.getStringUnitWidth(Kn,{font:RA,charSpace:Ei,fontSize:Nn,doKerning:!1})*Nn/XA};if(Object.prototype.toString.call(Me)==="[object Array]"){var QA;xn=la(Me),ri!=="left"&&(Si=xn.map(Bo));var _A,po=0;if(ri==="right"){hr-=Si[0],Me=[],iA=xn.length;for(var TA=0;TA<iA;TA++)TA===0?(_A=qe(hr),QA=tr(Ir)):(_A=Ar(po-Si[TA]),QA=-ho),Me.push([xn[TA],_A,QA]),po=Si[TA]}else if(ri==="center"){hr-=Si[0]/2,Me=[],iA=xn.length;for(var YA=0;YA<iA;YA++)YA===0?(_A=qe(hr),QA=tr(Ir)):(_A=Ar((po-Si[YA])/2),QA=-ho),Me.push([xn[YA],_A,QA]),po=Si[YA]}else if(ri==="left"){Me=[],iA=xn.length;for(var Po=0;Po<iA;Po++)Me.push(xn[Po])}else if(ri==="justify"&&RA.encoding==="Identity-H"){Me=[],iA=xn.length,di=di!==0?di:$A;for(var GA=0,Wi=0;Wi<iA;Wi++)if(QA=Wi===0?tr(Ir):-ho,_A=Wi===0?qe(hr):GA,Wi<iA-1){var Oo=Ar((di-Si[Wi])/(xn[Wi].split(" ").length-1)),xA=xn[Wi].split(" ");Me.push([xA[0]+" ",_A,QA]),GA=0;for(var FA=1;FA<xA.length;FA++){var bo=(Bo(xA[FA-1]+" "+xA[FA])-Bo(xA[FA]))*XA+Oo;FA==xA.length-1?Me.push([xA[FA],bo,0]):Me.push([xA[FA]+" ",bo,0]),GA-=bo}}else Me.push([xn[Wi],_A,QA]);Me.push(["",GA,0])}else{if(ri!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(Me=[],iA=xn.length,di=di!==0?di:$A,Wi=0;Wi<iA;Wi++)QA=Wi===0?tr(Ir):-ho,_A=Wi===0?qe(hr):0,Wi<iA-1?oo.push(Je(Ar((di-Si[Wi])/(xn[Wi].split(" ").length-1)))):oo.push(0),Me.push([xn[Wi],_A,QA])}}var Go=typeof Hr.R2L=="boolean"?Hr.R2L:zn;Go===!0&&(Me=ua(Me,function(Kn,qn,li){return[Kn.split("").reverse().join(""),qn,li]})),hn={text:Me,x:hr,y:Ir,options:Hr,mutex:{pdfEscape:UA,activeFontKey:hi,fonts:Ke,activeFontSize:Nn}},ke.publish("postProcessText",hn),Me=hn.text,LA=hn.mutex.isHex||!1;var ha=Ke[hi].encoding;ha!=="WinAnsiEncoding"&&ha!=="StandardEncoding"||(Me=ua(Me,function(Kn,qn,li){return[Ca(Kn),qn,li]})),xn=la(Me),Me=[];for(var Cr,Nr,jr,vn=0,tn=1,yn=Array.isArray(xn[0])?tn:vn,Sn="",Qn=function(Kn,qn,li){var bi="";return li instanceof Mn?(li=typeof Hr.angle=="number"?Fi(li,new Mn(1,0,0,1,Kn,qn)):Fi(new Mn(1,0,0,1,Kn,qn),li),cr===ar.ADVANCED&&(li=Fi(new Mn(1,0,0,-1,0,0),li)),bi=li.join(" ")+` Tm
`):bi=Je(Kn)+" "+Je(qn)+` Td
`,bi},Dn=0;Dn<xn.length;Dn++){switch(Sn="",yn){case tn:jr=(LA?"<":"(")+xn[Dn][0]+(LA?">":")"),Cr=parseFloat(xn[Dn][1]),Nr=parseFloat(xn[Dn][2]);break;case vn:jr=(LA?"<":"(")+xn[Dn]+(LA?">":")"),Cr=qe(hr),Nr=tr(Ir)}oo!==void 0&&oo[Dn]!==void 0&&(Sn=oo[Dn]+` Tw
`),Dn===0?Me.push(Sn+Qn(Cr,Nr,Qi)+jr):yn===vn?Me.push(Sn+jr):yn===tn&&Me.push(Sn+Qn(Cr,Nr,Qi)+jr)}Me=yn===vn?Me.join(` Tj
T* `):Me.join(` Tj
`),Me+=` Tj
`;var ni=`BT
/`;return ni+=hi+" "+Nn+` Tf
`,ni+=Je(Nn*HA)+` TL
`,ni+=Rr+`
`,ni+=cA,ni+=Me,Sr(ni+="ET"),He[hi]=!0,nA};var Ra=$e.__private__.clip=$e.clip=function(Me){return Sr(Me==="evenodd"?"W*":"W"),this};$e.clipEvenOdd=function(){return Ra("evenodd")},$e.__private__.discardPath=$e.discardPath=function(){return Sr("n"),this};var Ao=$e.__private__.isValidStyle=function(Me){var hr=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Me)!==-1&&(hr=!0),hr};$e.__private__.setDefaultPathOperation=$e.setDefaultPathOperation=function(Me){return Ao(Me)&&(Fe=Me),this};var oa=$e.__private__.getStyle=$e.getStyle=function(Me){var hr=Fe;switch(Me){case"D":case"S":hr="S";break;case"F":hr="f";break;case"FD":case"DF":hr="B";break;case"f":case"f*":case"B":case"B*":hr=Me}return hr},Mo=$e.close=function(){return Sr("h"),this};$e.stroke=function(){return Sr("S"),this},$e.fill=function(Me){return To("f",Me),this},$e.fillEvenOdd=function(Me){return To("f*",Me),this},$e.fillStroke=function(Me){return To("B",Me),this},$e.fillStrokeEvenOdd=function(Me){return To("B*",Me),this};var To=function(Me,hr){_typeof$3(hr)==="object"?Ba(hr,Me):Sr(Me)},So=function(Me){Me===null||cr===ar.ADVANCED&&Me===void 0||(Me=oa(Me),Sr(Me))};function wa(Me,hr,Ir,Hr,rn){var hn=new M(hr||this.boundingBox,Ir||this.xStep,Hr||this.yStep,this.gState,rn||this.matrix);hn.stream=this.stream;var xn=Me+"$$"+this.cloneIndex+++"$$";return Ki(xn,hn),hn}var Ba=function(Me,hr){var Ir=Or[Me.key],Hr=dr[Ir];if(Hr instanceof B)Sr("q"),Sr(aa(hr)),Hr.gState&&$e.setGState(Hr.gState),Sr(Me.matrix.toString()+" cm"),Sr("/"+Ir+" sh"),Sr("Q");else if(Hr instanceof M){var rn=new Mn(1,0,0,-1,0,Ci());Me.matrix&&(rn=rn.multiply(Me.matrix||Ui),Ir=wa.call(Hr,Me.key,Me.boundingBox,Me.xStep,Me.yStep,rn).id),Sr("q"),Sr("/Pattern cs"),Sr("/"+Ir+" scn"),Hr.gState&&$e.setGState(Hr.gState),Sr(hr),Sr("Q")}},aa=function(Me){switch(Me){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},sa=$e.moveTo=function(Me,hr){return Sr(Je(Ar(Me))+" "+Je(mr(hr))+" m"),this},xo=$e.lineTo=function(Me,hr){return Sr(Je(Ar(Me))+" "+Je(mr(hr))+" l"),this},mo=$e.curveTo=function(Me,hr,Ir,Hr,rn,hn){return Sr([Je(Ar(Me)),Je(mr(hr)),Je(Ar(Ir)),Je(mr(Hr)),Je(Ar(rn)),Je(mr(hn)),"c"].join(" ")),this};$e.__private__.line=$e.line=function(Me,hr,Ir,Hr,rn){if(isNaN(Me)||isNaN(hr)||isNaN(Ir)||isNaN(Hr)||!Ao(rn))throw new Error("Invalid arguments passed to jsPDF.line");return cr===ar.COMPAT?this.lines([[Ir-Me,Hr-hr]],Me,hr,[1,1],rn||"S"):this.lines([[Ir-Me,Hr-hr]],Me,hr,[1,1]).stroke()},$e.__private__.lines=$e.lines=function(Me,hr,Ir,Hr,rn,hn){var xn,kn,ri,Ei,di,xi,ci,Qi,nA,uA,cA,LA;if(typeof Me=="number"&&(LA=Ir,Ir=hr,hr=Me,Me=LA),Hr=Hr||[1,1],hn=hn||!1,isNaN(hr)||isNaN(Ir)||!Array.isArray(Me)||!Array.isArray(Hr)||!Ao(rn)||typeof hn!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(sa(hr,Ir),xn=Hr[0],kn=Hr[1],Ei=Me.length,uA=hr,cA=Ir,ri=0;ri<Ei;ri++)(di=Me[ri]).length===2?(uA=di[0]*xn+uA,cA=di[1]*kn+cA,xo(uA,cA)):(xi=di[0]*xn+uA,ci=di[1]*kn+cA,Qi=di[2]*xn+uA,nA=di[3]*kn+cA,uA=di[4]*xn+uA,cA=di[5]*kn+cA,mo(xi,ci,Qi,nA,uA,cA));return hn&&Mo(),So(rn),this},$e.path=function(Me){for(var hr=0;hr<Me.length;hr++){var Ir=Me[hr],Hr=Ir.c;switch(Ir.op){case"m":sa(Hr[0],Hr[1]);break;case"l":xo(Hr[0],Hr[1]);break;case"c":mo.apply(this,Hr);break;case"h":Mo()}}return this},$e.__private__.rect=$e.rect=function(Me,hr,Ir,Hr,rn){if(isNaN(Me)||isNaN(hr)||isNaN(Ir)||isNaN(Hr)||!Ao(rn))throw new Error("Invalid arguments passed to jsPDF.rect");return cr===ar.COMPAT&&(Hr=-Hr),Sr([Je(Ar(Me)),Je(mr(hr)),Je(Ar(Ir)),Je(Ar(Hr)),"re"].join(" ")),So(rn),this},$e.__private__.triangle=$e.triangle=function(Me,hr,Ir,Hr,rn,hn,xn){if(isNaN(Me)||isNaN(hr)||isNaN(Ir)||isNaN(Hr)||isNaN(rn)||isNaN(hn)||!Ao(xn))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Ir-Me,Hr-hr],[rn-Ir,hn-Hr],[Me-rn,hr-hn]],Me,hr,[1,1],xn,!0),this},$e.__private__.roundedRect=$e.roundedRect=function(Me,hr,Ir,Hr,rn,hn,xn){if(isNaN(Me)||isNaN(hr)||isNaN(Ir)||isNaN(Hr)||isNaN(rn)||isNaN(hn)||!Ao(xn))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var kn=4/3*(Math.SQRT2-1);return rn=Math.min(rn,.5*Ir),hn=Math.min(hn,.5*Hr),this.lines([[Ir-2*rn,0],[rn*kn,0,rn,hn-hn*kn,rn,hn],[0,Hr-2*hn],[0,hn*kn,-rn*kn,hn,-rn,hn],[2*rn-Ir,0],[-rn*kn,0,-rn,-hn*kn,-rn,-hn],[0,2*hn-Hr],[0,-hn*kn,rn*kn,-hn,rn,-hn]],Me+rn,hr,[1,1],xn,!0),this},$e.__private__.ellipse=$e.ellipse=function(Me,hr,Ir,Hr,rn){if(isNaN(Me)||isNaN(hr)||isNaN(Ir)||isNaN(Hr)||!Ao(rn))throw new Error("Invalid arguments passed to jsPDF.ellipse");var hn=4/3*(Math.SQRT2-1)*Ir,xn=4/3*(Math.SQRT2-1)*Hr;return sa(Me+Ir,hr),mo(Me+Ir,hr-xn,Me+hn,hr-Hr,Me,hr-Hr),mo(Me-hn,hr-Hr,Me-Ir,hr-xn,Me-Ir,hr),mo(Me-Ir,hr+xn,Me-hn,hr+Hr,Me,hr+Hr),mo(Me+hn,hr+Hr,Me+Ir,hr+xn,Me+Ir,hr),So(rn),this},$e.__private__.circle=$e.circle=function(Me,hr,Ir,Hr){if(isNaN(Me)||isNaN(hr)||isNaN(Ir)||!Ao(Hr))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Me,hr,Ir,Ir,Hr)},$e.setFont=function(Me,hr,Ir){return Ir&&(hr=Oe(hr,Ir)),hi=ia(Me,hr,{disableWarning:!1}),this};var Fo=$e.__private__.getFont=$e.getFont=function(){return Ke[ia.apply($e,arguments)]};$e.__private__.getFontList=$e.getFontList=function(){var Me,hr,Ir={};for(Me in je)if(je.hasOwnProperty(Me))for(hr in Ir[Me]=[],je[Me])je[Me].hasOwnProperty(hr)&&Ir[Me].push(hr);return Ir},$e.addFont=function(Me,hr,Ir,Hr,rn){var hn=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&hn.indexOf(arguments[3])!==-1?rn=arguments[3]:arguments[3]&&hn.indexOf(arguments[3])==-1&&(Ir=Oe(Ir,Hr)),rn=rn||"Identity-H",ra.call(this,Me,hr,Ir,rn)};var yo,Io=Be.lineWidth||.200025,ko=$e.__private__.getLineWidth=$e.getLineWidth=function(){return Io},ba=$e.__private__.setLineWidth=$e.setLineWidth=function(Me){return Io=Me,Sr(Je(Ar(Me))+" w"),this};$e.__private__.setLineDash=E$1.API.setLineDash=E$1.API.setLineDashPattern=function(Me,hr){if(Me=Me||[],hr=hr||0,isNaN(hr)||!Array.isArray(Me))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Me=Me.map(function(Ir){return Je(Ar(Ir))}).join(" "),hr=Je(Ar(hr)),Sr("["+Me+"] "+hr+" d"),this};var Ea=$e.__private__.getLineHeight=$e.getLineHeight=function(){return Nn*yo};$e.__private__.getLineHeight=$e.getLineHeight=function(){return Nn*yo};var Pe=$e.__private__.setLineHeightFactor=$e.setLineHeightFactor=function(Me){return typeof(Me=Me||1.15)=="number"&&(yo=Me),this},De=$e.__private__.getLineHeightFactor=$e.getLineHeightFactor=function(){return yo};Pe(Be.lineHeight);var qe=$e.__private__.getHorizontalCoordinate=function(Me){return Ar(Me)},tr=$e.__private__.getVerticalCoordinate=function(Me){return cr===ar.ADVANCED?Me:We[_r].mediaBox.topRightY-We[_r].mediaBox.bottomLeftY-Ar(Me)},lr=$e.__private__.getHorizontalCoordinateString=$e.getHorizontalCoordinateString=function(Me){return Je(qe(Me))},fr=$e.__private__.getVerticalCoordinateString=$e.getVerticalCoordinateString=function(Me){return Je(tr(Me))},Br=Be.strokeColor||"0 G";$e.__private__.getStrokeColor=$e.getDrawColor=function(){return sA(Br)},$e.__private__.setStrokeColor=$e.setDrawColor=function(Me,hr,Ir,Hr){return Br=rA({ch1:Me,ch2:hr,ch3:Ir,ch4:Hr,pdfColorType:"draw",precision:2}),Sr(Br),this};var $r=Be.fillColor||"0 g";$e.__private__.getFillColor=$e.getFillColor=function(){return sA($r)},$e.__private__.setFillColor=$e.setFillColor=function(Me,hr,Ir,Hr){return $r=rA({ch1:Me,ch2:hr,ch3:Ir,ch4:Hr,pdfColorType:"fill",precision:2}),Sr($r),this};var Rr=Be.textColor||"0 g",en=$e.__private__.getTextColor=$e.getTextColor=function(){return sA(Rr)};$e.__private__.setTextColor=$e.setTextColor=function(Me,hr,Ir,Hr){return Rr=rA({ch1:Me,ch2:hr,ch3:Ir,ch4:Hr,pdfColorType:"text",precision:3}),this};var cn=Be.charSpace,Fn=$e.__private__.getCharSpace=$e.getCharSpace=function(){return parseFloat(cn||0)};$e.__private__.setCharSpace=$e.setCharSpace=function(Me){if(isNaN(Me))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return cn=Me,this};var un=0;$e.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},$e.__private__.setLineCap=$e.setLineCap=function(Me){var hr=$e.CapJoinStyles[Me];if(hr===void 0)throw new Error("Line cap style of '"+Me+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return un=hr,Sr(hr+" J"),this};var dn=0;$e.__private__.setLineJoin=$e.setLineJoin=function(Me){var hr=$e.CapJoinStyles[Me];if(hr===void 0)throw new Error("Line join style of '"+Me+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return dn=hr,Sr(hr+" j"),this},$e.__private__.setLineMiterLimit=$e.__private__.setMiterLimit=$e.setLineMiterLimit=$e.setMiterLimit=function(Me){if(Me=Me||0,isNaN(Me))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Sr(Je(Ar(Me))+" M"),this},$e.GState=j,$e.setGState=function(Me){(Me=typeof Me=="string"?qr[gn[Me]]:ai(null,Me)).equals(mn)||(Sr("/"+Me.id+" gs"),mn=Me)};var ai=function(Me,hr){if(!Me||!gn[Me]){var Ir=!1;for(var Hr in qr)if(qr.hasOwnProperty(Hr)&&qr[Hr].equals(hr)){Ir=!0;break}if(Ir)hr=qr[Hr];else{var rn="GS"+(Object.keys(qr).length+1).toString(10);qr[rn]=hr,hr.id=rn}return Me&&(gn[Me]=hr.id),ke.publish("addGState",hr),hr}};$e.addGState=function(Me,hr){return ai(Me,hr),this},$e.saveGraphicsState=function(){return Sr("q"),sr.push({key:hi,size:Nn,color:Rr}),this},$e.restoreGraphicsState=function(){Sr("Q");var Me=sr.pop();return hi=Me.key,Nn=Me.size,Rr=Me.color,mn=null,this},$e.setCurrentTransformationMatrix=function(Me){return Sr(Me.toString()+" cm"),this},$e.comment=function(Me){return Sr("#"+Me),this};var vi=function(Me,hr){var Ir=Me||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Ir},set:function(hn){isNaN(hn)||(Ir=parseFloat(hn))}});var Hr=hr||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Hr},set:function(hn){isNaN(hn)||(Hr=parseFloat(hn))}});var rn="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return rn},set:function(hn){rn=hn.toString()}}),this},oi=function(Me,hr,Ir,Hr){vi.call(this,Me,hr),this.type="rect";var rn=Ir||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return rn},set:function(xn){isNaN(xn)||(rn=parseFloat(xn))}});var hn=Hr||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return hn},set:function(xn){isNaN(xn)||(hn=parseFloat(xn))}}),this},Ji=function(){this.page=Ln,this.currentPage=_r,this.pages=Cn.slice(0),this.pagesContext=We.slice(0),this.x=Oi,this.y=wi,this.matrix=br,this.width=fi(_r),this.height=Ci(_r),this.outputDestination=In,this.id="",this.objectNumber=-1};Ji.prototype.restore=function(){Ln=this.page,_r=this.currentPage,We=this.pagesContext,Cn=this.pages,Oi=this.x,wi=this.y,br=this.matrix,lA(_r,this.width),Di(_r,this.height),In=this.outputDestination};var Zi=function(Me,hr,Ir,Hr,rn){pi.push(new Ji),Ln=_r=0,Cn=[],Oi=Me,wi=hr,br=rn,na([Ir,Hr])},EA=function(Me){if(Jn[Me])pi.pop().restore();else{var hr=new Ji,Ir="Xo"+(Object.keys(Bn).length+1).toString(10);hr.id=Ir,Jn[Me]=Ir,Bn[Ir]=hr,ke.publish("addFormObject",hr),pi.pop().restore()}};for(var Ni in $e.beginFormObject=function(Me,hr,Ir,Hr,rn){return Zi(Me,hr,Ir,Hr,rn),this},$e.endFormObject=function(Me){return EA(Me),this},$e.doFormObject=function(Me,hr){var Ir=Bn[Jn[Me]];return Sr("q"),Sr(hr.toString()+" cm"),Sr("/"+Ir.id+" Do"),Sr("Q"),this},$e.getFormObject=function(Me){var hr=Bn[Jn[Me]];return{x:hr.x,y:hr.y,width:hr.width,height:hr.height,matrix:hr.matrix}},$e.save=function(Me,hr){return Me=Me||"generated.pdf",(hr=hr||{}).returnPromise=hr.returnPromise||!1,hr.returnPromise===!1?(l$1(Qo(io()),Me),typeof l$1.unload=="function"&&n$1.setTimeout&&setTimeout(l$1.unload,911),this):new Promise(function(Ir,Hr){try{var rn=l$1(Qo(io()),Me);typeof l$1.unload=="function"&&n$1.setTimeout&&setTimeout(l$1.unload,911),Ir(rn)}catch(hn){Hr(hn.message)}})},E$1.API)E$1.API.hasOwnProperty(Ni)&&(Ni==="events"&&E$1.API.events.length?function(Me,hr){var Ir,Hr,rn;for(rn=hr.length-1;rn!==-1;rn--)Ir=hr[rn][0],Hr=hr[rn][1],Me.subscribe.apply(Me,[Ir].concat(typeof Hr=="function"?[Hr]:Hr))}(ke,E$1.API.events):$e[Ni]=E$1.API[Ni]);var fi=$e.getPageWidth=function(Me){return(We[Me=Me||_r].mediaBox.topRightX-We[Me].mediaBox.bottomLeftX)/Hn},lA=$e.setPageWidth=function(Me,hr){We[Me].mediaBox.topRightX=hr*Hn+We[Me].mediaBox.bottomLeftX},Ci=$e.getPageHeight=function(Me){return(We[Me=Me||_r].mediaBox.topRightY-We[Me].mediaBox.bottomLeftY)/Hn},Di=$e.setPageHeight=function(Me,hr){We[Me].mediaBox.topRightY=hr*Hn+We[Me].mediaBox.bottomLeftY};return $e.internal={pdfEscape:UA,getStyle:oa,getFont:Fo,getFontSize:$n,getCharSpace:Fn,getTextColor:en,getLineHeight:Ea,getLineHeightFactor:De,getLineWidth:ko,write:ti,getHorizontalCoordinate:qe,getVerticalCoordinate:tr,getCoordinateString:lr,getVerticalCoordinateString:fr,collections:{},newObject:Gi,newAdditionalObject:to,newObjectDeferred:Ii,newObjectDeferredBegin:Yi,getFilters:dA,putStream:vA,events:ke,scaleFactor:Hn,pageSize:{getWidth:function(){return fi(_r)},setWidth:function(Me){lA(_r,Me)},getHeight:function(){return Ci(_r)},setHeight:function(Me){Di(_r,Me)}},encryptionOptions:Ue,encryption:mA,getEncryptor:Na,output:Do,getNumberOfPages:Ua,pages:Cn,out:Sr,f2:vr,f3:er,getPageInfo:ya,getPageInfoByObjId:Bi,getCurrentPageInfo:$a,getPDFVersion:Ve,Point:vi,Rectangle:oi,Matrix:Mn,hasHotfix:Ho},Object.defineProperty($e.internal.pageSize,"width",{get:function(){return fi(_r)},set:function(Me){lA(_r,Me)},enumerable:!0,configurable:!0}),Object.defineProperty($e.internal.pageSize,"height",{get:function(){return Ci(_r)},set:function(Me){Di(_r,Me)},enumerable:!0,configurable:!0}),DA.call($e,Tn),hi="F1",no(Ce,Ae),ke.publish("initialized"),$e}I.prototype.lsbFirstWord=function(Be){return String.fromCharCode(Be>>0&255,Be>>8&255,Be>>16&255,Be>>24&255)},I.prototype.toHexString=function(Be){return Be.split("").map(function(St){return("0"+(255&St.charCodeAt(0)).toString(16)).slice(-2)}).join("")},I.prototype.hexToBytes=function(Be){for(var St=[],Ae=0;Ae<Be.length;Ae+=2)St.push(String.fromCharCode(parseInt(Be.substr(Ae,2),16)));return St.join("")},I.prototype.processOwnerPassword=function(Be,St){return P(x(St).substr(0,5),Be)},I.prototype.encryptor=function(Be,St){var Ae=x(this.encryptionKey+String.fromCharCode(255&Be,Be>>8&255,Be>>16&255,255&St,St>>8&255)).substr(0,10);return function(Ee){return P(Ae,Ee)}},j.prototype.equals=function(Be){var St,Ae="id,objectNumber,equals";if(!Be||_typeof$3(Be)!==_typeof$3(this))return!1;var Ee=0;for(St in this)if(!(Ae.indexOf(St)>=0)){if(this.hasOwnProperty(St)&&!Be.hasOwnProperty(St)||this[St]!==Be[St])return!1;Ee++}for(St in Be)Be.hasOwnProperty(St)&&Ae.indexOf(St)<0&&Ee--;return Ee===0},E$1.API={events:[]},E$1.version="2.5.2";var q=E$1.API,D=1,R=function(Be){return Be.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},T$2=function(Be){return Be.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},U$1=function(Be){return Be.toFixed(2)},z$1=function(Be){return Be.toFixed(5)};q.__acroform__={};var H=function(Be,St){Be.prototype=Object.create(St.prototype),Be.prototype.constructor=Be},W=function(Be){return Be*D},V$1=function(Be){var St=new ut,Ae=At.internal.getHeight(Be)||0,Ee=At.internal.getWidth(Be)||0;return St.BBox=[0,0,Number(U$1(Ee)),Number(U$1(Ae))],St},G=q.__acroform__.setBit=function(Be,St){if(Be=Be||0,St=St||0,isNaN(Be)||isNaN(St))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Be|=1<<St},Y=q.__acroform__.clearBit=function(Be,St){if(Be=Be||0,St=St||0,isNaN(Be)||isNaN(St))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Be&=~(1<<St)},J=q.__acroform__.getBit=function(Be,St){if(isNaN(Be)||isNaN(St))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return Be&1<<St?1:0},X=q.__acroform__.getBitForPdf=function(Be,St){if(isNaN(Be)||isNaN(St))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return J(Be,St-1)},K=q.__acroform__.setBitForPdf=function(Be,St){if(isNaN(Be)||isNaN(St))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return G(Be,St-1)},Z$1=q.__acroform__.clearBitForPdf=function(Be,St){if(isNaN(Be)||isNaN(St))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Y(Be,St-1)},$$f=q.__acroform__.calculateCoordinates=function(Be,St){var Ae=St.internal.getHorizontalCoordinate,Ee=St.internal.getVerticalCoordinate,Ce=Be[0],_e=Be[1],Te=Be[2],Se=Be[3],xe={};return xe.lowerLeft_X=Ae(Ce)||0,xe.lowerLeft_Y=Ee(_e+Se)||0,xe.upperRight_X=Ae(Ce+Te)||0,xe.upperRight_Y=Ee(_e)||0,[Number(U$1(xe.lowerLeft_X)),Number(U$1(xe.lowerLeft_Y)),Number(U$1(xe.upperRight_X)),Number(U$1(xe.upperRight_Y))]},Q=function(Be){if(Be.appearanceStreamContent)return Be.appearanceStreamContent;if(Be.V||Be.DV){var St=[],Ae=Be._V||Be.DV,Ee=tt(Be,Ae),Ce=Be.scope.internal.getFont(Be.fontName,Be.fontStyle).id;St.push("/Tx BMC"),St.push("q"),St.push("BT"),St.push(Be.scope.__private__.encodeColorString(Be.color)),St.push("/"+Ce+" "+U$1(Ee.fontSize)+" Tf"),St.push("1 0 0 1 0 0 Tm"),St.push(Ee.text),St.push("ET"),St.push("Q"),St.push("EMC");var _e=V$1(Be);return _e.scope=Be.scope,_e.stream=St.join(`
`),_e}},tt=function(Be,St){var Ae=Be.fontSize===0?Be.maxFontSize:Be.fontSize,Ee={text:"",fontSize:""},Ce=(St=(St=St.substr(0,1)=="("?St.substr(1):St).substr(St.length-1)==")"?St.substr(0,St.length-1):St).split(" ");Ce=Be.multiline?Ce.map(function(er){return er.split(`
`)}):Ce.map(function(er){return[er]});var _e=Ae,Te=At.internal.getHeight(Be)||0;Te=Te<0?-Te:Te;var Se=At.internal.getWidth(Be)||0;Se=Se<0?-Se:Se;var xe=function(er,Ar,gr){if(er+1<Ce.length){var mr=Ar+" "+Ce[er+1][0];return et(mr,Be,gr).width<=Se-4}return!1};_e++;t:for(;_e>0;){St="",_e--;var Fe,Ue,Re=et("3",Be,_e).height,He=Be.multiline?Te-_e:(Te-Re)/2,$e=He+=2,ze=0,Ve=0,ir=0;if(_e<=0){St=`(...) Tj
`,St+="% Width of Text: "+et(St,Be,_e=12).width+", FieldWidth:"+Se+`
`;break}for(var Ze="",ar=0,cr=0;cr<Ce.length;cr++)if(Ce.hasOwnProperty(cr)){var Xe=!1;if(Ce[cr].length!==1&&ir!==Ce[cr].length-1){if((Re+2)*(ar+2)+2>Te)continue t;Ze+=Ce[cr][ir],Xe=!0,Ve=cr,cr--}else{Ze=(Ze+=Ce[cr][ir]+" ").substr(Ze.length-1)==" "?Ze.substr(0,Ze.length-1):Ze;var or=parseInt(cr),Oe=xe(or,Ze,_e),Je=cr>=Ce.length-1;if(Oe&&!Je){Ze+=" ",ir=0;continue}if(Oe||Je){if(Je)Ve=or;else if(Be.multiline&&(Re+2)*(ar+2)+2>Te)continue t}else{if(!Be.multiline||(Re+2)*(ar+2)+2>Te)continue t;Ve=or}}for(var Ye="",rr=ze;rr<=Ve;rr++){var vr=Ce[rr];if(Be.multiline){if(rr===Ve){Ye+=vr[ir]+" ",ir=(ir+1)%vr.length;continue}if(rr===ze){Ye+=vr[vr.length-1]+" ";continue}}Ye+=vr[0]+" "}switch(Ye=Ye.substr(Ye.length-1)==" "?Ye.substr(0,Ye.length-1):Ye,Ue=et(Ye,Be,_e).width,Be.textAlign){case"right":Fe=Se-Ue-2;break;case"center":Fe=(Se-Ue)/2;break;case"left":default:Fe=2}St+=U$1(Fe)+" "+U$1($e)+` Td
`,St+="("+R(Ye)+`) Tj
`,St+=-U$1(Fe)+` 0 Td
`,$e=-(_e+2),Ue=0,ze=Xe?Ve:Ve+1,ar++,Ze=""}break}return Ee.text=St,Ee.fontSize=_e,Ee},et=function(Be,St,Ae){var Ee=St.scope.internal.getFont(St.fontName,St.fontStyle),Ce=St.scope.getStringUnitWidth(Be,{font:Ee,fontSize:parseFloat(Ae),charSpace:0})*parseFloat(Ae);return{height:St.scope.getStringUnitWidth("3",{font:Ee,fontSize:parseFloat(Ae),charSpace:0})*parseFloat(Ae)*1.5,width:Ce}},rt={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},nt=function(Be,St){var Ae={type:"reference",object:Be};St.internal.getPageInfo(Be.page).pageContext.annotations.find(function(Ee){return Ee.type===Ae.type&&Ee.object===Ae.object})===void 0&&St.internal.getPageInfo(Be.page).pageContext.annotations.push(Ae)},it=function(Be,St){for(var Ae in Be)if(Be.hasOwnProperty(Ae)){var Ee=Ae,Ce=Be[Ae];St.internal.newObjectDeferredBegin(Ce.objId,!0),_typeof$3(Ce)==="object"&&typeof Ce.putStream=="function"&&Ce.putStream(),delete Be[Ee]}},at=function(Be,St){if(St.scope=Be,Be.internal!==void 0&&(Be.internal.acroformPlugin===void 0||Be.internal.acroformPlugin.isInitialized===!1)){if(lt.FieldNum=0,Be.internal.acroformPlugin=JSON.parse(JSON.stringify(rt)),Be.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");D=Be.internal.scaleFactor,Be.internal.acroformPlugin.acroFormDictionaryRoot=new ht,Be.internal.acroformPlugin.acroFormDictionaryRoot.scope=Be,Be.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Be.internal.events.subscribe("postPutResources",function(){(function(Ae){Ae.internal.events.unsubscribe(Ae.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Ae.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Ae.internal.acroformPlugin.printedOut=!0})(Be)}),Be.internal.events.subscribe("buildDocument",function(){(function(Ae){Ae.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Ee=Ae.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var Ce in Ee)if(Ee.hasOwnProperty(Ce)){var _e=Ee[Ce];_e.objId=void 0,_e.hasAnnotation&&nt(_e,Ae)}})(Be)}),Be.internal.events.subscribe("putCatalog",function(){(function(Ae){if(Ae.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Ae.internal.write("/AcroForm "+Ae.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(Be)}),Be.internal.events.subscribe("postPutPages",function(Ae){(function(Ee,Ce){var _e=!Ee;for(var Te in Ee||(Ce.internal.newObjectDeferredBegin(Ce.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),Ce.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Ee=Ee||Ce.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Ee.hasOwnProperty(Te)){var Se=Ee[Te],xe=[],Fe=Se.Rect;if(Se.Rect&&(Se.Rect=$$f(Se.Rect,Ce)),Ce.internal.newObjectDeferredBegin(Se.objId,!0),Se.DA=At.createDefaultAppearanceStream(Se),_typeof$3(Se)==="object"&&typeof Se.getKeyValueListForStream=="function"&&(xe=Se.getKeyValueListForStream()),Se.Rect=Fe,Se.hasAppearanceStream&&!Se.appearanceStreamContent){var Ue=Q(Se);xe.push({key:"AP",value:"<</N "+Ue+">>"}),Ce.internal.acroformPlugin.xForms.push(Ue)}if(Se.appearanceStreamContent){var Re="";for(var He in Se.appearanceStreamContent)if(Se.appearanceStreamContent.hasOwnProperty(He)){var $e=Se.appearanceStreamContent[He];if(Re+="/"+He+" ",Re+="<<",Object.keys($e).length>=1||Array.isArray($e)){for(var Te in $e)if($e.hasOwnProperty(Te)){var ze=$e[Te];typeof ze=="function"&&(ze=ze.call(Ce,Se)),Re+="/"+Te+" "+ze+" ",Ce.internal.acroformPlugin.xForms.indexOf(ze)>=0||Ce.internal.acroformPlugin.xForms.push(ze)}}else typeof(ze=$e)=="function"&&(ze=ze.call(Ce,Se)),Re+="/"+Te+" "+ze,Ce.internal.acroformPlugin.xForms.indexOf(ze)>=0||Ce.internal.acroformPlugin.xForms.push(ze);Re+=">>"}xe.push({key:"AP",value:`<<
`+Re+">>"})}Ce.internal.putStream({additionalKeyValues:xe,objectId:Se.objId}),Ce.internal.out("endobj")}_e&&it(Ce.internal.acroformPlugin.xForms,Ce)})(Ae,Be)}),Be.internal.acroformPlugin.isInitialized=!0}},ot=q.__acroform__.arrayToPdfArray=function(Be,St,Ae){var Ee=function(Te){return Te};if(Array.isArray(Be)){for(var Ce="[",_e=0;_e<Be.length;_e++)switch(_e!==0&&(Ce+=" "),_typeof$3(Be[_e])){case"boolean":case"number":case"object":Ce+=Be[_e].toString();break;case"string":Be[_e].substr(0,1)!=="/"?(St!==void 0&&Ae&&(Ee=Ae.internal.getEncryptor(St)),Ce+="("+R(Ee(Be[_e].toString()))+")"):Ce+=Be[_e].toString()}return Ce+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},st=function(Be,St,Ae){var Ee=function(Ce){return Ce};return St!==void 0&&Ae&&(Ee=Ae.internal.getEncryptor(St)),(Be=Be||"").toString(),Be="("+R(Ee(Be))+")"},ct=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(Be){this._objId=Be}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ct.prototype.toString=function(){return this.objId+" 0 R"},ct.prototype.putStream=function(){var Be=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:Be,objectId:this.objId}),this.scope.internal.out("endobj")},ct.prototype.getKeyValueListForStream=function(){var Be=[],St=Object.getOwnPropertyNames(this).filter(function(_e){return _e!="content"&&_e!="appearanceStreamContent"&&_e!="scope"&&_e!="objId"&&_e.substring(0,1)!="_"});for(var Ae in St)if(Object.getOwnPropertyDescriptor(this,St[Ae]).configurable===!1){var Ee=St[Ae],Ce=this[Ee];Ce&&(Array.isArray(Ce)?Be.push({key:Ee,value:ot(Ce,this.objId,this.scope)}):Ce instanceof ct?(Ce.scope=this.scope,Be.push({key:Ee,value:Ce.objId+" 0 R"})):typeof Ce!="function"&&Be.push({key:Ee,value:Ce}))}return Be};var ut=function(){ct.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var Be,St=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return St},set:function(Ae){St=Ae}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(Ae){Be=Ae.trim()},get:function(){return Be||null}})};H(ut,ct);var ht=function(){ct.call(this);var Be,St=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return St.length>0?St:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return St}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Be){var Ae=function(Ee){return Ee};return this.scope&&(Ae=this.scope.internal.getEncryptor(this.objId)),"("+R(Ae(Be))+")"}},set:function(Ae){Be=Ae}})};H(ht,ct);var lt=function Be(){ct.call(this);var St=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return St},set:function(Ze){if(isNaN(Ze))throw new Error('Invalid value "'+Ze+'" for attribute F supplied.');St=Ze}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!X(St,3)},set:function(Ze){Ze?this.F=K(St,3):this.F=Z$1(St,3)}});var Ae=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return Ae},set:function(Ze){if(isNaN(Ze))throw new Error('Invalid value "'+Ze+'" for attribute Ff supplied.');Ae=Ze}});var Ee=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Ee.length!==0)return Ee},set:function(Ze){Ee=Ze!==void 0?Ze:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Ee||isNaN(Ee[0])?0:Ee[0]},set:function(Ze){Ee[0]=Ze}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Ee||isNaN(Ee[1])?0:Ee[1]},set:function(Ze){Ee[1]=Ze}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Ee||isNaN(Ee[2])?0:Ee[2]},set:function(Ze){Ee[2]=Ze}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Ee||isNaN(Ee[3])?0:Ee[3]},set:function(Ze){Ee[3]=Ze}});var Ce="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return Ce},set:function(Ze){switch(Ze){case"/Btn":case"/Tx":case"/Ch":case"/Sig":Ce=Ze;break;default:throw new Error('Invalid value "'+Ze+'" for attribute FT supplied.')}}});var _e=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!_e||_e.length<1){if(this instanceof yt)return;_e="FieldObject"+Be.FieldNum++}var Ze=function(ar){return ar};return this.scope&&(Ze=this.scope.internal.getEncryptor(this.objId)),"("+R(Ze(_e))+")"},set:function(Ze){_e=Ze.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return _e},set:function(Ze){_e=Ze}});var Te="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return Te},set:function(Ze){Te=Ze}});var Se="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Se},set:function(Ze){Se=Ze}});var xe=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return xe},set:function(Ze){xe=Ze}});var Fe=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Fe===void 0?50/D:Fe},set:function(Ze){Fe=Ze}});var Ue="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Ue},set:function(Ze){Ue=Ze}});var Re="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Re||this instanceof yt||this instanceof Nt))return st(Re,this.objId,this.scope)},set:function(Ze){Ze=Ze.toString(),Re=Ze}});var He=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(He)return this instanceof mt?He:st(He,this.objId,this.scope)},set:function(Ze){Ze=Ze.toString(),He=this instanceof mt?Ze:Ze.substr(0,1)==="("?T$2(Ze.substr(1,Ze.length-2)):T$2(Ze)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof mt?T$2(He.substr(1,He.length-1)):He},set:function(Ze){Ze=Ze.toString(),He=this instanceof mt?"/"+Ze:Ze}});var $e=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if($e)return $e},set:function(Ze){this.V=Ze}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if($e)return this instanceof mt?$e:st($e,this.objId,this.scope)},set:function(Ze){Ze=Ze.toString(),$e=this instanceof mt?Ze:Ze.substr(0,1)==="("?T$2(Ze.substr(1,Ze.length-2)):T$2(Ze)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof mt?T$2($e.substr(1,$e.length-1)):$e},set:function(Ze){Ze=Ze.toString(),$e=this instanceof mt?"/"+Ze:Ze}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var ze,Ve=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Ve},set:function(Ze){Ze=!!Ze,Ve=Ze}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(ze)return ze},set:function(Ze){ze=Ze}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,1)},set:function(Ze){Ze?this.Ff=K(this.Ff,1):this.Ff=Z$1(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,2)},set:function(Ze){Ze?this.Ff=K(this.Ff,2):this.Ff=Z$1(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,3)},set:function(Ze){Ze?this.Ff=K(this.Ff,3):this.Ff=Z$1(this.Ff,3)}});var ir=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(ir!==null)return ir},set:function(Ze){if([0,1,2].indexOf(Ze)===-1)throw new Error('Invalid value "'+Ze+'" for attribute Q supplied.');ir=Ze}}),Object.defineProperty(this,"textAlign",{get:function(){var Ze;switch(ir){case 0:default:Ze="left";break;case 1:Ze="center";break;case 2:Ze="right"}return Ze},configurable:!0,enumerable:!0,set:function(Ze){switch(Ze){case"right":case 2:ir=2;break;case"center":case 1:ir=1;break;case"left":case 0:default:ir=0}}})};H(lt,ct);var ft=function(){lt.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Be=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Be},set:function(Ae){Be=Ae}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Be},set:function(Ae){Be=Ae}});var St=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return ot(St,this.objId,this.scope)},set:function(Ae){var Ee,Ce;Ce=[],typeof(Ee=Ae)=="string"&&(Ce=function(_e,Te,Se){Se||(Se=1);for(var xe,Fe=[];xe=Te.exec(_e);)Fe.push(xe[Se]);return Fe}(Ee,/\((.*?)\)/g)),St=Ce}}),this.getOptions=function(){return St},this.setOptions=function(Ae){St=Ae,this.sort&&St.sort()},this.addOption=function(Ae){Ae=(Ae=Ae||"").toString(),St.push(Ae),this.sort&&St.sort()},this.removeOption=function(Ae,Ee){for(Ee=Ee||!1,Ae=(Ae=Ae||"").toString();St.indexOf(Ae)!==-1&&(St.splice(St.indexOf(Ae),1),Ee!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,18)},set:function(Ae){Ae?this.Ff=K(this.Ff,18):this.Ff=Z$1(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,19)},set:function(Ae){this.combo===!0&&(Ae?this.Ff=K(this.Ff,19):this.Ff=Z$1(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,20)},set:function(Ae){Ae?(this.Ff=K(this.Ff,20),St.sort()):this.Ff=Z$1(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,22)},set:function(Ae){Ae?this.Ff=K(this.Ff,22):this.Ff=Z$1(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,23)},set:function(Ae){Ae?this.Ff=K(this.Ff,23):this.Ff=Z$1(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,27)},set:function(Ae){Ae?this.Ff=K(this.Ff,27):this.Ff=Z$1(this.Ff,27)}}),this.hasAppearanceStream=!1};H(ft,lt);var dt=function(){ft.call(this),this.fontName="helvetica",this.combo=!1};H(dt,ft);var pt=function(){dt.call(this),this.combo=!0};H(pt,dt);var gt=function(){pt.call(this),this.edit=!0};H(gt,pt);var mt=function(){lt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,15)},set:function(Ae){Ae?this.Ff=K(this.Ff,15):this.Ff=Z$1(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,16)},set:function(Ae){Ae?this.Ff=K(this.Ff,16):this.Ff=Z$1(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,17)},set:function(Ae){Ae?this.Ff=K(this.Ff,17):this.Ff=Z$1(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,26)},set:function(Ae){Ae?this.Ff=K(this.Ff,26):this.Ff=Z$1(this.Ff,26)}});var Be,St={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Ae=function(_e){return _e};if(this.scope&&(Ae=this.scope.internal.getEncryptor(this.objId)),Object.keys(St).length!==0){var Ee,Ce=[];for(Ee in Ce.push("<<"),St)Ce.push("/"+Ee+" ("+R(Ae(St[Ee]))+")");return Ce.push(">>"),Ce.join(`
`)}},set:function(Ae){_typeof$3(Ae)==="object"&&(St=Ae)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return St.CA||""},set:function(Ae){typeof Ae=="string"&&(St.CA=Ae)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Be},set:function(Ae){Be=Ae}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Be.substr(1,Be.length-1)},set:function(Ae){Be="/"+Ae}})};H(mt,lt);var vt=function(){mt.call(this),this.pushButton=!0};H(vt,mt);var bt=function(){mt.call(this),this.radio=!0,this.pushButton=!1;var Be=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Be},set:function(St){Be=St!==void 0?St:[]}})};H(bt,mt);var yt=function(){var Be,St;lt.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Be},set:function(Ce){Be=Ce}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return St},set:function(Ce){St=Ce}});var Ae,Ee={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Ce=function(Se){return Se};this.scope&&(Ce=this.scope.internal.getEncryptor(this.objId));var _e,Te=[];for(_e in Te.push("<<"),Ee)Te.push("/"+_e+" ("+R(Ce(Ee[_e]))+")");return Te.push(">>"),Te.join(`
`)},set:function(Ce){_typeof$3(Ce)==="object"&&(Ee=Ce)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Ee.CA||""},set:function(Ce){typeof Ce=="string"&&(Ee.CA=Ce)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Ae},set:function(Ce){Ae=Ce}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Ae.substr(1,Ae.length-1)},set:function(Ce){Ae="/"+Ce}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=At.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};H(yt,lt),bt.prototype.setAppearance=function(Be){if(!("createAppearanceStream"in Be)||!("getCA"in Be))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var St in this.Kids)if(this.Kids.hasOwnProperty(St)){var Ae=this.Kids[St];Ae.appearanceStreamContent=Be.createAppearanceStream(Ae.optionName),Ae.caption=Be.getCA()}},bt.prototype.createOption=function(Be){var St=new yt;return St.Parent=this,St.optionName=Be,this.Kids.push(St),xt.call(this.scope,St),St};var wt=function(){mt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=At.CheckBox.createAppearanceStream()};H(wt,mt);var Nt=function(){lt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,13)},set:function(St){St?this.Ff=K(this.Ff,13):this.Ff=Z$1(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,21)},set:function(St){St?this.Ff=K(this.Ff,21):this.Ff=Z$1(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,23)},set:function(St){St?this.Ff=K(this.Ff,23):this.Ff=Z$1(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,24)},set:function(St){St?this.Ff=K(this.Ff,24):this.Ff=Z$1(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,25)},set:function(St){St?this.Ff=K(this.Ff,25):this.Ff=Z$1(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,26)},set:function(St){St?this.Ff=K(this.Ff,26):this.Ff=Z$1(this.Ff,26)}});var Be=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Be},set:function(St){Be=St}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Be},set:function(St){Number.isInteger(St)&&(Be=St)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};H(Nt,lt);var Lt=function(){Nt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,14)},set:function(Be){Be?this.Ff=K(this.Ff,14):this.Ff=Z$1(this.Ff,14)}}),this.password=!0};H(Lt,Nt);var At={CheckBox:{createAppearanceStream:function(){return{N:{On:At.CheckBox.YesNormal},D:{On:At.CheckBox.YesPushDown,Off:At.CheckBox.OffPushDown}}},YesPushDown:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=[],Ee=Be.scope.internal.getFont(Be.fontName,Be.fontStyle).id,Ce=Be.scope.__private__.encodeColorString(Be.color),_e=tt(Be,Be.caption);return Ae.push("0.749023 g"),Ae.push("0 0 "+U$1(At.internal.getWidth(Be))+" "+U$1(At.internal.getHeight(Be))+" re"),Ae.push("f"),Ae.push("BMC"),Ae.push("q"),Ae.push("0 0 1 rg"),Ae.push("/"+Ee+" "+U$1(_e.fontSize)+" Tf "+Ce),Ae.push("BT"),Ae.push(_e.text),Ae.push("ET"),Ae.push("Q"),Ae.push("EMC"),St.stream=Ae.join(`
`),St},YesNormal:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=Be.scope.internal.getFont(Be.fontName,Be.fontStyle).id,Ee=Be.scope.__private__.encodeColorString(Be.color),Ce=[],_e=At.internal.getHeight(Be),Te=At.internal.getWidth(Be),Se=tt(Be,Be.caption);return Ce.push("1 g"),Ce.push("0 0 "+U$1(Te)+" "+U$1(_e)+" re"),Ce.push("f"),Ce.push("q"),Ce.push("0 0 1 rg"),Ce.push("0 0 "+U$1(Te-1)+" "+U$1(_e-1)+" re"),Ce.push("W"),Ce.push("n"),Ce.push("0 g"),Ce.push("BT"),Ce.push("/"+Ae+" "+U$1(Se.fontSize)+" Tf "+Ee),Ce.push(Se.text),Ce.push("ET"),Ce.push("Q"),St.stream=Ce.join(`
`),St},OffPushDown:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=[];return Ae.push("0.749023 g"),Ae.push("0 0 "+U$1(At.internal.getWidth(Be))+" "+U$1(At.internal.getHeight(Be))+" re"),Ae.push("f"),St.stream=Ae.join(`
`),St}},RadioButton:{Circle:{createAppearanceStream:function(Be){var St={D:{Off:At.RadioButton.Circle.OffPushDown},N:{}};return St.N[Be]=At.RadioButton.Circle.YesNormal,St.D[Be]=At.RadioButton.Circle.YesPushDown,St},getCA:function(){return"l"},YesNormal:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=[],Ee=At.internal.getWidth(Be)<=At.internal.getHeight(Be)?At.internal.getWidth(Be)/4:At.internal.getHeight(Be)/4;Ee=Number((.9*Ee).toFixed(5));var Ce=At.internal.Bezier_C,_e=Number((Ee*Ce).toFixed(5));return Ae.push("q"),Ae.push("1 0 0 1 "+z$1(At.internal.getWidth(Be)/2)+" "+z$1(At.internal.getHeight(Be)/2)+" cm"),Ae.push(Ee+" 0 m"),Ae.push(Ee+" "+_e+" "+_e+" "+Ee+" 0 "+Ee+" c"),Ae.push("-"+_e+" "+Ee+" -"+Ee+" "+_e+" -"+Ee+" 0 c"),Ae.push("-"+Ee+" -"+_e+" -"+_e+" -"+Ee+" 0 -"+Ee+" c"),Ae.push(_e+" -"+Ee+" "+Ee+" -"+_e+" "+Ee+" 0 c"),Ae.push("f"),Ae.push("Q"),St.stream=Ae.join(`
`),St},YesPushDown:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=[],Ee=At.internal.getWidth(Be)<=At.internal.getHeight(Be)?At.internal.getWidth(Be)/4:At.internal.getHeight(Be)/4;Ee=Number((.9*Ee).toFixed(5));var Ce=Number((2*Ee).toFixed(5)),_e=Number((Ce*At.internal.Bezier_C).toFixed(5)),Te=Number((Ee*At.internal.Bezier_C).toFixed(5));return Ae.push("0.749023 g"),Ae.push("q"),Ae.push("1 0 0 1 "+z$1(At.internal.getWidth(Be)/2)+" "+z$1(At.internal.getHeight(Be)/2)+" cm"),Ae.push(Ce+" 0 m"),Ae.push(Ce+" "+_e+" "+_e+" "+Ce+" 0 "+Ce+" c"),Ae.push("-"+_e+" "+Ce+" -"+Ce+" "+_e+" -"+Ce+" 0 c"),Ae.push("-"+Ce+" -"+_e+" -"+_e+" -"+Ce+" 0 -"+Ce+" c"),Ae.push(_e+" -"+Ce+" "+Ce+" -"+_e+" "+Ce+" 0 c"),Ae.push("f"),Ae.push("Q"),Ae.push("0 g"),Ae.push("q"),Ae.push("1 0 0 1 "+z$1(At.internal.getWidth(Be)/2)+" "+z$1(At.internal.getHeight(Be)/2)+" cm"),Ae.push(Ee+" 0 m"),Ae.push(Ee+" "+Te+" "+Te+" "+Ee+" 0 "+Ee+" c"),Ae.push("-"+Te+" "+Ee+" -"+Ee+" "+Te+" -"+Ee+" 0 c"),Ae.push("-"+Ee+" -"+Te+" -"+Te+" -"+Ee+" 0 -"+Ee+" c"),Ae.push(Te+" -"+Ee+" "+Ee+" -"+Te+" "+Ee+" 0 c"),Ae.push("f"),Ae.push("Q"),St.stream=Ae.join(`
`),St},OffPushDown:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=[],Ee=At.internal.getWidth(Be)<=At.internal.getHeight(Be)?At.internal.getWidth(Be)/4:At.internal.getHeight(Be)/4;Ee=Number((.9*Ee).toFixed(5));var Ce=Number((2*Ee).toFixed(5)),_e=Number((Ce*At.internal.Bezier_C).toFixed(5));return Ae.push("0.749023 g"),Ae.push("q"),Ae.push("1 0 0 1 "+z$1(At.internal.getWidth(Be)/2)+" "+z$1(At.internal.getHeight(Be)/2)+" cm"),Ae.push(Ce+" 0 m"),Ae.push(Ce+" "+_e+" "+_e+" "+Ce+" 0 "+Ce+" c"),Ae.push("-"+_e+" "+Ce+" -"+Ce+" "+_e+" -"+Ce+" 0 c"),Ae.push("-"+Ce+" -"+_e+" -"+_e+" -"+Ce+" 0 -"+Ce+" c"),Ae.push(_e+" -"+Ce+" "+Ce+" -"+_e+" "+Ce+" 0 c"),Ae.push("f"),Ae.push("Q"),St.stream=Ae.join(`
`),St}},Cross:{createAppearanceStream:function(Be){var St={D:{Off:At.RadioButton.Cross.OffPushDown},N:{}};return St.N[Be]=At.RadioButton.Cross.YesNormal,St.D[Be]=At.RadioButton.Cross.YesPushDown,St},getCA:function(){return"8"},YesNormal:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=[],Ee=At.internal.calculateCross(Be);return Ae.push("q"),Ae.push("1 1 "+U$1(At.internal.getWidth(Be)-2)+" "+U$1(At.internal.getHeight(Be)-2)+" re"),Ae.push("W"),Ae.push("n"),Ae.push(U$1(Ee.x1.x)+" "+U$1(Ee.x1.y)+" m"),Ae.push(U$1(Ee.x2.x)+" "+U$1(Ee.x2.y)+" l"),Ae.push(U$1(Ee.x4.x)+" "+U$1(Ee.x4.y)+" m"),Ae.push(U$1(Ee.x3.x)+" "+U$1(Ee.x3.y)+" l"),Ae.push("s"),Ae.push("Q"),St.stream=Ae.join(`
`),St},YesPushDown:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=At.internal.calculateCross(Be),Ee=[];return Ee.push("0.749023 g"),Ee.push("0 0 "+U$1(At.internal.getWidth(Be))+" "+U$1(At.internal.getHeight(Be))+" re"),Ee.push("f"),Ee.push("q"),Ee.push("1 1 "+U$1(At.internal.getWidth(Be)-2)+" "+U$1(At.internal.getHeight(Be)-2)+" re"),Ee.push("W"),Ee.push("n"),Ee.push(U$1(Ae.x1.x)+" "+U$1(Ae.x1.y)+" m"),Ee.push(U$1(Ae.x2.x)+" "+U$1(Ae.x2.y)+" l"),Ee.push(U$1(Ae.x4.x)+" "+U$1(Ae.x4.y)+" m"),Ee.push(U$1(Ae.x3.x)+" "+U$1(Ae.x3.y)+" l"),Ee.push("s"),Ee.push("Q"),St.stream=Ee.join(`
`),St},OffPushDown:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=[];return Ae.push("0.749023 g"),Ae.push("0 0 "+U$1(At.internal.getWidth(Be))+" "+U$1(At.internal.getHeight(Be))+" re"),Ae.push("f"),St.stream=Ae.join(`
`),St}}},createDefaultAppearanceStream:function(Be){var St=Be.scope.internal.getFont(Be.fontName,Be.fontStyle).id,Ae=Be.scope.__private__.encodeColorString(Be.color);return"/"+St+" "+Be.fontSize+" Tf "+Ae}};At.internal={Bezier_C:.551915024494,calculateCross:function(Be){var St=At.internal.getWidth(Be),Ae=At.internal.getHeight(Be),Ee=Math.min(St,Ae);return{x1:{x:(St-Ee)/2,y:(Ae-Ee)/2+Ee},x2:{x:(St-Ee)/2+Ee,y:(Ae-Ee)/2},x3:{x:(St-Ee)/2,y:(Ae-Ee)/2},x4:{x:(St-Ee)/2+Ee,y:(Ae-Ee)/2+Ee}}}},At.internal.getWidth=function(Be){var St=0;return _typeof$3(Be)==="object"&&(St=W(Be.Rect[2])),St},At.internal.getHeight=function(Be){var St=0;return _typeof$3(Be)==="object"&&(St=W(Be.Rect[3])),St};var xt=q.addField=function(Be){if(at(this,Be),!(Be instanceof lt))throw new Error("Invalid argument passed to jsPDF.addField.");var St;return(St=Be).scope.internal.acroformPlugin.printedOut&&(St.scope.internal.acroformPlugin.printedOut=!1,St.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),St.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(St),Be.page=Be.scope.internal.getCurrentPageInfo().pageNumber,this};q.AcroFormChoiceField=ft,q.AcroFormListBox=dt,q.AcroFormComboBox=pt,q.AcroFormEditBox=gt,q.AcroFormButton=mt,q.AcroFormPushButton=vt,q.AcroFormRadioButton=bt,q.AcroFormCheckBox=wt,q.AcroFormTextField=Nt,q.AcroFormPasswordField=Lt,q.AcroFormAppearance=At,q.AcroForm={ChoiceField:ft,ListBox:dt,ComboBox:pt,EditBox:gt,Button:mt,PushButton:vt,RadioButton:bt,CheckBox:wt,TextField:Nt,PasswordField:Lt,Appearance:At},E$1.AcroForm={ChoiceField:ft,ListBox:dt,ComboBox:pt,EditBox:gt,Button:mt,PushButton:vt,RadioButton:bt,CheckBox:wt,TextField:Nt,PasswordField:Lt,Appearance:At};function _t(Be){return Be.reduce(function(St,Ae,Ee){return St[Ae]=Ee,St},{})}(function(Be){Be.__addimage__={};var St="UNKNOWN",Ae={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},Ee=Be.__addimage__.getImageFileTypeByImageData=function(er,Ar){var gr,mr,Ur,Lr,Mr,Qr=St;if((Ar=Ar||St)==="RGBA"||er.data!==void 0&&er.data instanceof Uint8ClampedArray&&"height"in er&&"width"in er)return"RGBA";if(Oe(er))for(Mr in Ae)for(Ur=Ae[Mr],gr=0;gr<Ur.length;gr+=1){for(Lr=!0,mr=0;mr<Ur[gr].length;mr+=1)if(Ur[gr][mr]!==void 0&&Ur[gr][mr]!==er[mr]){Lr=!1;break}if(Lr===!0){Qr=Mr;break}}else for(Mr in Ae)for(Ur=Ae[Mr],gr=0;gr<Ur.length;gr+=1){for(Lr=!0,mr=0;mr<Ur[gr].length;mr+=1)if(Ur[gr][mr]!==void 0&&Ur[gr][mr]!==er.charCodeAt(mr)){Lr=!1;break}if(Lr===!0){Qr=Mr;break}}return Qr===St&&Ar!==St&&(Qr=Ar),Qr},Ce=function er(Ar){for(var gr=this.internal.write,mr=this.internal.putStream,Ur=(0,this.internal.getFilters)();Ur.indexOf("FlateEncode")!==-1;)Ur.splice(Ur.indexOf("FlateEncode"),1);Ar.objectId=this.internal.newObject();var Lr=[];if(Lr.push({key:"Type",value:"/XObject"}),Lr.push({key:"Subtype",value:"/Image"}),Lr.push({key:"Width",value:Ar.width}),Lr.push({key:"Height",value:Ar.height}),Ar.colorSpace===ir.INDEXED?Lr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Ar.palette.length/3-1)+" "+("sMask"in Ar&&Ar.sMask!==void 0?Ar.objectId+2:Ar.objectId+1)+" 0 R]"}):(Lr.push({key:"ColorSpace",value:"/"+Ar.colorSpace}),Ar.colorSpace===ir.DEVICE_CMYK&&Lr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Lr.push({key:"BitsPerComponent",value:Ar.bitsPerComponent}),"decodeParameters"in Ar&&Ar.decodeParameters!==void 0&&Lr.push({key:"DecodeParms",value:"<<"+Ar.decodeParameters+">>"}),"transparency"in Ar&&Array.isArray(Ar.transparency)){for(var Mr="",Qr=0,Dr=Ar.transparency.length;Qr<Dr;Qr++)Mr+=Ar.transparency[Qr]+" "+Ar.transparency[Qr]+" ";Lr.push({key:"Mask",value:"["+Mr+"]"})}Ar.sMask!==void 0&&Lr.push({key:"SMask",value:Ar.objectId+1+" 0 R"});var Xr=Ar.filter!==void 0?["/"+Ar.filter]:void 0;if(mr({data:Ar.data,additionalKeyValues:Lr,alreadyAppliedFilters:Xr,objectId:Ar.objectId}),gr("endobj"),"sMask"in Ar&&Ar.sMask!==void 0){var sn="/Predictor "+Ar.predictor+" /Colors 1 /BitsPerComponent "+Ar.bitsPerComponent+" /Columns "+Ar.width,ur={width:Ar.width,height:Ar.height,colorSpace:"DeviceGray",bitsPerComponent:Ar.bitsPerComponent,decodeParameters:sn,data:Ar.sMask};"filter"in Ar&&(ur.filter=Ar.filter),er.call(this,ur)}if(Ar.colorSpace===ir.INDEXED){var _r=this.internal.newObject();mr({data:Ye(new Uint8Array(Ar.palette)),objectId:_r}),gr("endobj")}},_e=function(){var er=this.internal.collections.addImage_images;for(var Ar in er)Ce.call(this,er[Ar])},Te=function(){var er,Ar=this.internal.collections.addImage_images,gr=this.internal.write;for(var mr in Ar)gr("/I"+(er=Ar[mr]).index,er.objectId,"0","R")},Se=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",_e),this.internal.events.subscribe("putXobjectDict",Te))},xe=function(){var er=this.internal.collections.addImage_images;return Se.call(this),er},Fe=function(){return Object.keys(this.internal.collections.addImage_images).length},Ue=function(er){return typeof Be["process"+er.toUpperCase()]=="function"},Re=function(er){return _typeof$3(er)==="object"&&er.nodeType===1},He=function(er,Ar){if(er.nodeName==="IMG"&&er.hasAttribute("src")){var gr=""+er.getAttribute("src");if(gr.indexOf("data:image/")===0)return u$2(unescape(gr).split("base64,").pop());var mr=Be.loadFile(gr,!0);if(mr!==void 0)return mr}if(er.nodeName==="CANVAS"){if(er.width===0||er.height===0)throw new Error("Given canvas must have data. Canvas width: "+er.width+", height: "+er.height);var Ur;switch(Ar){case"PNG":Ur="image/png";break;case"WEBP":Ur="image/webp";break;case"JPEG":case"JPG":default:Ur="image/jpeg"}return u$2(er.toDataURL(Ur,1).split("base64,").pop())}},$e=function(er){var Ar=this.internal.collections.addImage_images;if(Ar){for(var gr in Ar)if(er===Ar[gr].alias)return Ar[gr]}},ze=function(er,Ar,gr){return er||Ar||(er=-96,Ar=-96),er<0&&(er=-1*gr.width*72/er/this.internal.scaleFactor),Ar<0&&(Ar=-1*gr.height*72/Ar/this.internal.scaleFactor),er===0&&(er=Ar*gr.width/gr.height),Ar===0&&(Ar=er*gr.height/gr.width),[er,Ar]},Ve=function(er,Ar,gr,mr,Ur,Lr){var Mr=ze.call(this,gr,mr,Ur),Qr=this.internal.getCoordinateString,Dr=this.internal.getVerticalCoordinateString,Xr=xe.call(this);if(gr=Mr[0],mr=Mr[1],Xr[Ur.index]=Ur,Lr){Lr*=Math.PI/180;var sn=Math.cos(Lr),ur=Math.sin(Lr),_r=function(Pr){return Pr.toFixed(4)},Fr=[_r(sn),_r(ur),_r(-1*ur),_r(sn),0,0,"cm"]}this.internal.write("q"),Lr?(this.internal.write([1,"0","0",1,Qr(er),Dr(Ar+mr),"cm"].join(" ")),this.internal.write(Fr.join(" ")),this.internal.write([Qr(gr),"0","0",Qr(mr),"0","0","cm"].join(" "))):this.internal.write([Qr(gr),"0","0",Qr(mr),Qr(er),Dr(Ar+mr),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Ur.index+" Do"),this.internal.write("Q")},ir=Be.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};Be.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var Ze=Be.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},ar=Be.__addimage__.sHashCode=function(er){var Ar,gr,mr=0;if(typeof er=="string")for(gr=er.length,Ar=0;Ar<gr;Ar++)mr=(mr<<5)-mr+er.charCodeAt(Ar),mr|=0;else if(Oe(er))for(gr=er.byteLength/2,Ar=0;Ar<gr;Ar++)mr=(mr<<5)-mr+er[Ar],mr|=0;return mr},cr=Be.__addimage__.validateStringAsBase64=function(er){(er=er||"").toString().trim();var Ar=!0;return er.length===0&&(Ar=!1),er.length%4!=0&&(Ar=!1),/^[A-Za-z0-9+/]+$/.test(er.substr(0,er.length-2))===!1&&(Ar=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(er.substr(-2))===!1&&(Ar=!1),Ar},Xe=Be.__addimage__.extractImageFromDataUrl=function(er){var Ar=(er=er||"").split("base64,"),gr=null;if(Ar.length===2){var mr=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(Ar[0]);Array.isArray(mr)&&(gr={mimeType:mr[1],charset:mr[2],data:Ar[1]})}return gr},or=Be.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};Be.__addimage__.isArrayBuffer=function(er){return or()&&er instanceof ArrayBuffer};var Oe=Be.__addimage__.isArrayBufferView=function(er){return or()&&typeof Uint32Array<"u"&&(er instanceof Int8Array||er instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&er instanceof Uint8ClampedArray||er instanceof Int16Array||er instanceof Uint16Array||er instanceof Int32Array||er instanceof Uint32Array||er instanceof Float32Array||er instanceof Float64Array)},Je=Be.__addimage__.binaryStringToUint8Array=function(er){for(var Ar=er.length,gr=new Uint8Array(Ar),mr=0;mr<Ar;mr++)gr[mr]=er.charCodeAt(mr);return gr},Ye=Be.__addimage__.arrayBufferToBinaryString=function(er){for(var Ar="",gr=Oe(er)?er:new Uint8Array(er),mr=0;mr<gr.length;mr+=8192)Ar+=String.fromCharCode.apply(null,gr.subarray(mr,mr+8192));return Ar};Be.addImage=function(){var er,Ar,gr,mr,Ur,Lr,Mr,Qr,Dr;if(typeof arguments[1]=="number"?(Ar=St,gr=arguments[1],mr=arguments[2],Ur=arguments[3],Lr=arguments[4],Mr=arguments[5],Qr=arguments[6],Dr=arguments[7]):(Ar=arguments[1],gr=arguments[2],mr=arguments[3],Ur=arguments[4],Lr=arguments[5],Mr=arguments[6],Qr=arguments[7],Dr=arguments[8]),_typeof$3(er=arguments[0])==="object"&&!Re(er)&&"imageData"in er){var Xr=er;er=Xr.imageData,Ar=Xr.format||Ar||St,gr=Xr.x||gr||0,mr=Xr.y||mr||0,Ur=Xr.w||Xr.width||Ur,Lr=Xr.h||Xr.height||Lr,Mr=Xr.alias||Mr,Qr=Xr.compression||Qr,Dr=Xr.rotation||Xr.angle||Dr}var sn=this.internal.getFilters();if(Qr===void 0&&sn.indexOf("FlateEncode")!==-1&&(Qr="SLOW"),isNaN(gr)||isNaN(mr))throw new Error("Invalid coordinates passed to jsPDF.addImage");Se.call(this);var ur=rr.call(this,er,Ar,Mr,Qr);return Ve.call(this,gr,mr,Ur,Lr,ur,Dr),this};var rr=function(er,Ar,gr,mr){var Ur,Lr,Mr;if(typeof er=="string"&&Ee(er)===St){er=unescape(er);var Qr=vr(er,!1);(Qr!==""||(Qr=Be.loadFile(er,!0))!==void 0)&&(er=Qr)}if(Re(er)&&(er=He(er,Ar)),Ar=Ee(er,Ar),!Ue(Ar))throw new Error("addImage does not support files of type '"+Ar+"', please ensure that a plugin for '"+Ar+"' support is added.");if(((Mr=gr)==null||Mr.length===0)&&(gr=function(Dr){return typeof Dr=="string"||Oe(Dr)?ar(Dr):Oe(Dr.data)?ar(Dr.data):null}(er)),(Ur=$e.call(this,gr))||(or()&&(er instanceof Uint8Array||Ar==="RGBA"||(Lr=er,er=Je(er))),Ur=this["process"+Ar.toUpperCase()](er,Fe.call(this),gr,function(Dr){return Dr&&typeof Dr=="string"&&(Dr=Dr.toUpperCase()),Dr in Be.image_compression?Dr:Ze.NONE}(mr),Lr)),!Ur)throw new Error("An unknown error occurred whilst processing the image.");return Ur},vr=Be.__addimage__.convertBase64ToBinaryString=function(er,Ar){var gr;Ar=typeof Ar!="boolean"||Ar;var mr,Ur="";if(typeof er=="string"){mr=(gr=Xe(er))!==null?gr.data:er;try{Ur=u$2(mr)}catch(Lr){if(Ar)throw cr(mr)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Lr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Ur};Be.getImageProperties=function(er){var Ar,gr,mr="";if(Re(er)&&(er=He(er)),typeof er=="string"&&Ee(er)===St&&((mr=vr(er,!1))===""&&(mr=Be.loadFile(er)||""),er=mr),gr=Ee(er),!Ue(gr))throw new Error("addImage does not support files of type '"+gr+"', please ensure that a plugin for '"+gr+"' support is added.");if(!or()||er instanceof Uint8Array||(er=Je(er)),!(Ar=this["process"+gr.toUpperCase()](er)))throw new Error("An unknown error occurred whilst processing the image");return Ar.fileType=gr,Ar}})(E$1.API),function(Be){var St=function(Ae){if(Ae!==void 0&&Ae!="")return!0};E$1.API.events.push(["addPage",function(Ae){this.internal.getPageInfo(Ae.pageNumber).pageContext.annotations=[]}]),Be.events.push(["putPage",function(Ae){for(var Ee,Ce,_e,Te=this.internal.getCoordinateString,Se=this.internal.getVerticalCoordinateString,xe=this.internal.getPageInfoByObjId(Ae.objId),Fe=Ae.pageContext.annotations,Ue=!1,Re=0;Re<Fe.length&&!Ue;Re++)switch((Ee=Fe[Re]).type){case"link":(St(Ee.options.url)||St(Ee.options.pageNumber))&&(Ue=!0);break;case"reference":case"text":case"freetext":Ue=!0}if(Ue!=0){this.internal.write("/Annots [");for(var He=0;He<Fe.length;He++){Ee=Fe[He];var $e=this.internal.pdfEscape,ze=this.internal.getEncryptor(Ae.objId);switch(Ee.type){case"reference":this.internal.write(" "+Ee.object.objId+" 0 R ");break;case"text":var Ve=this.internal.newAdditionalObject(),ir=this.internal.newAdditionalObject(),Ze=this.internal.getEncryptor(Ve.objId),ar=Ee.title||"Note";_e="<</Type /Annot /Subtype /Text "+(Ce="/Rect ["+Te(Ee.bounds.x)+" "+Se(Ee.bounds.y+Ee.bounds.h)+" "+Te(Ee.bounds.x+Ee.bounds.w)+" "+Se(Ee.bounds.y)+"] ")+"/Contents ("+$e(Ze(Ee.contents))+")",_e+=" /Popup "+ir.objId+" 0 R",_e+=" /P "+xe.objId+" 0 R",_e+=" /T ("+$e(Ze(ar))+") >>",Ve.content=_e;var cr=Ve.objId+" 0 R";_e="<</Type /Annot /Subtype /Popup "+(Ce="/Rect ["+Te(Ee.bounds.x+30)+" "+Se(Ee.bounds.y+Ee.bounds.h)+" "+Te(Ee.bounds.x+Ee.bounds.w+30)+" "+Se(Ee.bounds.y)+"] ")+" /Parent "+cr,Ee.open&&(_e+=" /Open true"),_e+=" >>",ir.content=_e,this.internal.write(Ve.objId,"0 R",ir.objId,"0 R");break;case"freetext":Ce="/Rect ["+Te(Ee.bounds.x)+" "+Se(Ee.bounds.y)+" "+Te(Ee.bounds.x+Ee.bounds.w)+" "+Se(Ee.bounds.y+Ee.bounds.h)+"] ";var Xe=Ee.color||"#000000";_e="<</Type /Annot /Subtype /FreeText "+Ce+"/Contents ("+$e(ze(Ee.contents))+")",_e+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Xe+")",_e+=" /Border [0 0 0]",_e+=" >>",this.internal.write(_e);break;case"link":if(Ee.options.name){var or=this.annotations._nameMap[Ee.options.name];Ee.options.pageNumber=or.page,Ee.options.top=or.y}else Ee.options.top||(Ee.options.top=0);if(Ce="/Rect ["+Ee.finalBounds.x+" "+Ee.finalBounds.y+" "+Ee.finalBounds.w+" "+Ee.finalBounds.h+"] ",_e="",Ee.options.url)_e="<</Type /Annot /Subtype /Link "+Ce+"/Border [0 0 0] /A <</S /URI /URI ("+$e(ze(Ee.options.url))+") >>";else if(Ee.options.pageNumber)switch(_e="<</Type /Annot /Subtype /Link "+Ce+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Ee.options.pageNumber).objId+" 0 R",Ee.options.magFactor=Ee.options.magFactor||"XYZ",Ee.options.magFactor){case"Fit":_e+=" /Fit]";break;case"FitH":_e+=" /FitH "+Ee.options.top+"]";break;case"FitV":Ee.options.left=Ee.options.left||0,_e+=" /FitV "+Ee.options.left+"]";break;case"XYZ":default:var Oe=Se(Ee.options.top);Ee.options.left=Ee.options.left||0,Ee.options.zoom===void 0&&(Ee.options.zoom=0),_e+=" /XYZ "+Ee.options.left+" "+Oe+" "+Ee.options.zoom+"]"}_e!=""&&(_e+=" >>",this.internal.write(_e))}}this.internal.write("]")}}]),Be.createAnnotation=function(Ae){var Ee=this.internal.getCurrentPageInfo();switch(Ae.type){case"link":this.link(Ae.bounds.x,Ae.bounds.y,Ae.bounds.w,Ae.bounds.h,Ae);break;case"text":case"freetext":Ee.pageContext.annotations.push(Ae)}},Be.link=function(Ae,Ee,Ce,_e,Te){var Se=this.internal.getCurrentPageInfo(),xe=this.internal.getCoordinateString,Fe=this.internal.getVerticalCoordinateString;Se.pageContext.annotations.push({finalBounds:{x:xe(Ae),y:Fe(Ee),w:xe(Ae+Ce),h:Fe(Ee+_e)},options:Te,type:"link"})},Be.textWithLink=function(Ae,Ee,Ce,_e){var Te,Se,xe=this.getTextWidth(Ae),Fe=this.internal.getLineHeight()/this.internal.scaleFactor;if(_e.maxWidth!==void 0){Se=_e.maxWidth;var Ue=this.splitTextToSize(Ae,Se).length;Te=Math.ceil(Fe*Ue)}else Se=xe,Te=Fe;return this.text(Ae,Ee,Ce,_e),Ce+=.2*Fe,_e.align==="center"&&(Ee-=xe/2),_e.align==="right"&&(Ee-=xe),this.link(Ee,Ce-Fe,Se,Te,_e),xe},Be.getTextWidth=function(Ae){var Ee=this.internal.getFontSize();return this.getStringUnitWidth(Ae)*Ee/this.internal.scaleFactor}}(E$1.API),function(Be){var St={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},Ae={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},Ee={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Ce=[1570,1571,1573,1575];Be.__arabicParser__={};var _e=Be.__arabicParser__.isInArabicSubstitutionA=function(Ve){return St[Ve.charCodeAt(0)]!==void 0},Te=Be.__arabicParser__.isArabicLetter=function(Ve){return typeof Ve=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Ve)},Se=Be.__arabicParser__.isArabicEndLetter=function(Ve){return Te(Ve)&&_e(Ve)&&St[Ve.charCodeAt(0)].length<=2},xe=Be.__arabicParser__.isArabicAlfLetter=function(Ve){return Te(Ve)&&Ce.indexOf(Ve.charCodeAt(0))>=0};Be.__arabicParser__.arabicLetterHasIsolatedForm=function(Ve){return Te(Ve)&&_e(Ve)&&St[Ve.charCodeAt(0)].length>=1};var Fe=Be.__arabicParser__.arabicLetterHasFinalForm=function(Ve){return Te(Ve)&&_e(Ve)&&St[Ve.charCodeAt(0)].length>=2};Be.__arabicParser__.arabicLetterHasInitialForm=function(Ve){return Te(Ve)&&_e(Ve)&&St[Ve.charCodeAt(0)].length>=3};var Ue=Be.__arabicParser__.arabicLetterHasMedialForm=function(Ve){return Te(Ve)&&_e(Ve)&&St[Ve.charCodeAt(0)].length==4},Re=Be.__arabicParser__.resolveLigatures=function(Ve){var ir=0,Ze=Ae,ar="",cr=0;for(ir=0;ir<Ve.length;ir+=1)Ze[Ve.charCodeAt(ir)]!==void 0?(cr++,typeof(Ze=Ze[Ve.charCodeAt(ir)])=="number"&&(ar+=String.fromCharCode(Ze),Ze=Ae,cr=0),ir===Ve.length-1&&(Ze=Ae,ar+=Ve.charAt(ir-(cr-1)),ir-=cr-1,cr=0)):(Ze=Ae,ar+=Ve.charAt(ir-cr),ir-=cr,cr=0);return ar};Be.__arabicParser__.isArabicDiacritic=function(Ve){return Ve!==void 0&&Ee[Ve.charCodeAt(0)]!==void 0};var He=Be.__arabicParser__.getCorrectForm=function(Ve,ir,Ze){return Te(Ve)?_e(Ve)===!1?-1:!Fe(Ve)||!Te(ir)&&!Te(Ze)||!Te(Ze)&&Se(ir)||Se(Ve)&&!Te(ir)||Se(Ve)&&xe(ir)||Se(Ve)&&Se(ir)?0:Ue(Ve)&&Te(ir)&&!Se(ir)&&Te(Ze)&&Fe(Ze)?3:Se(Ve)||!Te(Ze)?1:2:-1},$e=function(Ve){var ir=0,Ze=0,ar=0,cr="",Xe="",or="",Oe=(Ve=Ve||"").split("\\s+"),Je=[];for(ir=0;ir<Oe.length;ir+=1){for(Je.push(""),Ze=0;Ze<Oe[ir].length;Ze+=1)cr=Oe[ir][Ze],Xe=Oe[ir][Ze-1],or=Oe[ir][Ze+1],Te(cr)?(ar=He(cr,Xe,or),Je[ir]+=ar!==-1?String.fromCharCode(St[cr.charCodeAt(0)][ar]):cr):Je[ir]+=cr;Je[ir]=Re(Je[ir])}return Je.join(" ")},ze=Be.__arabicParser__.processArabic=Be.processArabic=function(){var Ve,ir=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,Ze=[];if(Array.isArray(ir)){var ar=0;for(Ze=[],ar=0;ar<ir.length;ar+=1)Array.isArray(ir[ar])?Ze.push([$e(ir[ar][0]),ir[ar][1],ir[ar][2]]):Ze.push([$e(ir[ar])]);Ve=Ze}else Ve=$e(ir);return typeof arguments[0]=="string"?Ve:(arguments[0].text=Ve,arguments[0])};Be.events.push(["preProcessText",ze])}(E$1.API),E$1.API.autoPrint=function(Be){var St;switch((Be=Be||{}).variant=Be.variant||"non-conform",Be.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){St=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+St+" 0 R")})}return this},function(Be){var St=function(){var Ae=void 0;Object.defineProperty(this,"pdf",{get:function(){return Ae},set:function(Se){Ae=Se}});var Ee=150;Object.defineProperty(this,"width",{get:function(){return Ee},set:function(Se){Ee=isNaN(Se)||Number.isInteger(Se)===!1||Se<0?150:Se,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Ee+1)}});var Ce=300;Object.defineProperty(this,"height",{get:function(){return Ce},set:function(Se){Ce=isNaN(Se)||Number.isInteger(Se)===!1||Se<0?300:Se,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=Ce+1)}});var _e=[];Object.defineProperty(this,"childNodes",{get:function(){return _e},set:function(Se){_e=Se}});var Te={};Object.defineProperty(this,"style",{get:function(){return Te},set:function(Se){Te=Se}}),Object.defineProperty(this,"parentNode",{})};St.prototype.getContext=function(Ae,Ee){var Ce;if((Ae=Ae||"2d")!=="2d")return null;for(Ce in Ee)this.pdf.context2d.hasOwnProperty(Ce)&&(this.pdf.context2d[Ce]=Ee[Ce]);return this.pdf.context2d._canvas=this,this.pdf.context2d},St.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Be.events.push(["initialized",function(){this.canvas=new St,this.canvas.pdf=this}])}(E$1.API),function(Be){var St={left:0,top:0,bottom:0,right:0},Ae=!1,Ee=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},St),this.internal.__cell__.margins.width=this.getPageWidth(),Ce.call(this))},Ce=function(){this.internal.__cell__.lastCell=new _e,this.internal.__cell__.pages=1},_e=function(){var xe=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return xe},set:function(Ve){xe=Ve}});var Fe=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Fe},set:function(Ve){Fe=Ve}});var Ue=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Ue},set:function(Ve){Ue=Ve}});var Re=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Re},set:function(Ve){Re=Ve}});var He=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return He},set:function(Ve){He=Ve}});var $e=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return $e},set:function(Ve){$e=Ve}});var ze=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return ze},set:function(Ve){ze=Ve}}),this};_e.prototype.clone=function(){return new _e(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},_e.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Be.setHeaderFunction=function(xe){return Ee.call(this),this.internal.__cell__.headerFunction=typeof xe=="function"?xe:void 0,this},Be.getTextDimensions=function(xe,Fe){Ee.call(this);var Ue=(Fe=Fe||{}).fontSize||this.getFontSize(),Re=Fe.font||this.getFont(),He=Fe.scaleFactor||this.internal.scaleFactor,$e=0,ze=0,Ve=0,ir=this;if(!Array.isArray(xe)&&typeof xe!="string"){if(typeof xe!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");xe=String(xe)}var Ze=Fe.maxWidth;Ze>0?typeof xe=="string"?xe=this.splitTextToSize(xe,Ze):Object.prototype.toString.call(xe)==="[object Array]"&&(xe=xe.reduce(function(cr,Xe){return cr.concat(ir.splitTextToSize(Xe,Ze))},[])):xe=Array.isArray(xe)?xe:[xe];for(var ar=0;ar<xe.length;ar++)$e<(Ve=this.getStringUnitWidth(xe[ar],{font:Re})*Ue)&&($e=Ve);return $e!==0&&(ze=xe.length),{w:$e/=He,h:Math.max((ze*Ue*this.getLineHeightFactor()-Ue*(this.getLineHeightFactor()-1))/He,0)}},Be.cellAddPage=function(){Ee.call(this),this.addPage();var xe=this.internal.__cell__.margins||St;return this.internal.__cell__.lastCell=new _e(xe.left,xe.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var Te=Be.cell=function(){var xe;xe=arguments[0]instanceof _e?arguments[0]:new _e(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Ee.call(this);var Fe=this.internal.__cell__.lastCell,Ue=this.internal.__cell__.padding,Re=this.internal.__cell__.margins||St,He=this.internal.__cell__.tableHeaderRow,$e=this.internal.__cell__.printHeaders;return Fe.lineNumber!==void 0&&(Fe.lineNumber===xe.lineNumber?(xe.x=(Fe.x||0)+(Fe.width||0),xe.y=Fe.y||0):Fe.y+Fe.height+xe.height+Re.bottom>this.getPageHeight()?(this.cellAddPage(),xe.y=Re.top,$e&&He&&(this.printHeaderRow(xe.lineNumber,!0),xe.y+=He[0].height)):xe.y=Fe.y+Fe.height||xe.y),xe.text[0]!==void 0&&(this.rect(xe.x,xe.y,xe.width,xe.height,Ae===!0?"FD":void 0),xe.align==="right"?this.text(xe.text,xe.x+xe.width-Ue,xe.y+Ue,{align:"right",baseline:"top"}):xe.align==="center"?this.text(xe.text,xe.x+xe.width/2,xe.y+Ue,{align:"center",baseline:"top",maxWidth:xe.width-Ue-Ue}):this.text(xe.text,xe.x+Ue,xe.y+Ue,{align:"left",baseline:"top",maxWidth:xe.width-Ue-Ue})),this.internal.__cell__.lastCell=xe,this};Be.table=function(xe,Fe,Ue,Re,He){if(Ee.call(this),!Ue)throw new Error("No data for PDF table.");var $e,ze,Ve,ir,Ze=[],ar=[],cr=[],Xe={},or={},Oe=[],Je=[],Ye=(He=He||{}).autoSize||!1,rr=He.printHeaders!==!1,vr=He.css&&He.css["font-size"]!==void 0?16*He.css["font-size"]:He.fontSize||12,er=He.margins||Object.assign({width:this.getPageWidth()},St),Ar=typeof He.padding=="number"?He.padding:3,gr=He.headerBackgroundColor||"#c8c8c8",mr=He.headerTextColor||"#000";if(Ce.call(this),this.internal.__cell__.printHeaders=rr,this.internal.__cell__.margins=er,this.internal.__cell__.table_font_size=vr,this.internal.__cell__.padding=Ar,this.internal.__cell__.headerBackgroundColor=gr,this.internal.__cell__.headerTextColor=mr,this.setFontSize(vr),Re==null)ar=Ze=Object.keys(Ue[0]),cr=Ze.map(function(){return"left"});else if(Array.isArray(Re)&&_typeof$3(Re[0])==="object")for(Ze=Re.map(function(Xr){return Xr.name}),ar=Re.map(function(Xr){return Xr.prompt||Xr.name||""}),cr=Re.map(function(Xr){return Xr.align||"left"}),$e=0;$e<Re.length;$e+=1)or[Re[$e].name]=Re[$e].width*(19.049976/25.4);else Array.isArray(Re)&&typeof Re[0]=="string"&&(ar=Ze=Re,cr=Ze.map(function(){return"left"}));if(Ye||Array.isArray(Re)&&typeof Re[0]=="string")for($e=0;$e<Ze.length;$e+=1){for(Xe[ir=Ze[$e]]=Ue.map(function(Xr){return Xr[ir]}),this.setFont(void 0,"bold"),Oe.push(this.getTextDimensions(ar[$e],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),ze=Xe[ir],this.setFont(void 0,"normal"),Ve=0;Ve<ze.length;Ve+=1)Oe.push(this.getTextDimensions(ze[Ve],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);or[ir]=Math.max.apply(null,Oe)+Ar+Ar,Oe=[]}if(rr){var Ur={};for($e=0;$e<Ze.length;$e+=1)Ur[Ze[$e]]={},Ur[Ze[$e]].text=ar[$e],Ur[Ze[$e]].align=cr[$e];var Lr=Se.call(this,Ur,or);Je=Ze.map(function(Xr){return new _e(xe,Fe,or[Xr],Lr,Ur[Xr].text,void 0,Ur[Xr].align)}),this.setTableHeaderRow(Je),this.printHeaderRow(1,!1)}var Mr=Re.reduce(function(Xr,sn){return Xr[sn.name]=sn.align,Xr},{});for($e=0;$e<Ue.length;$e+=1){"rowStart"in He&&He.rowStart instanceof Function&&He.rowStart({row:$e,data:Ue[$e]},this);var Qr=Se.call(this,Ue[$e],or);for(Ve=0;Ve<Ze.length;Ve+=1){var Dr=Ue[$e][Ze[Ve]];"cellStart"in He&&He.cellStart instanceof Function&&He.cellStart({row:$e,col:Ve,data:Dr},this),Te.call(this,new _e(xe,Fe,or[Ze[Ve]],Qr,Dr,$e+2,Mr[Ze[Ve]]))}}return this.internal.__cell__.table_x=xe,this.internal.__cell__.table_y=Fe,this};var Se=function(xe,Fe){var Ue=this.internal.__cell__.padding,Re=this.internal.__cell__.table_font_size,He=this.internal.scaleFactor;return Object.keys(xe).map(function($e){var ze=xe[$e];return this.splitTextToSize(ze.hasOwnProperty("text")?ze.text:ze,Fe[$e]-Ue-Ue)},this).map(function($e){return this.getLineHeightFactor()*$e.length*Re/He+Ue+Ue},this).reduce(function($e,ze){return Math.max($e,ze)},0)};Be.setTableHeaderRow=function(xe){Ee.call(this),this.internal.__cell__.tableHeaderRow=xe},Be.printHeaderRow=function(xe,Fe){if(Ee.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Ue;if(Ae=!0,typeof this.internal.__cell__.headerFunction=="function"){var Re=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new _e(Re[0],Re[1],Re[2],Re[3],void 0,-1)}this.setFont(void 0,"bold");for(var He=[],$e=0;$e<this.internal.__cell__.tableHeaderRow.length;$e+=1){Ue=this.internal.__cell__.tableHeaderRow[$e].clone(),Fe&&(Ue.y=this.internal.__cell__.margins.top||0,He.push(Ue)),Ue.lineNumber=xe;var ze=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),Te.call(this,Ue),this.setTextColor(ze)}He.length>0&&this.setTableHeaderRow(He),this.setFont(void 0,"normal"),Ae=!1}}(E$1.API);var Pt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},kt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],It=_t(kt),Ft=[100,200,300,400,500,600,700,800,900],Ct=_t(Ft);function jt(Be){var St=Be.family.replace(/"|'/g,"").toLowerCase(),Ae=function(_e){return Pt[_e=_e||"normal"]?_e:"normal"}(Be.style),Ee=function(_e){if(!_e)return 400;if(typeof _e=="number")return _e>=100&&_e<=900&&_e%100==0?_e:400;if(/^\d00$/.test(_e))return parseInt(_e);switch(_e){case"bold":return 700;case"normal":default:return 400}}(Be.weight),Ce=function(_e){return typeof It[_e=_e||"normal"]=="number"?_e:"normal"}(Be.stretch);return{family:St,style:Ae,weight:Ee,stretch:Ce,src:Be.src||[],ref:Be.ref||{name:St,style:[Ce,Ae,Ee].join(" ")}}}function Ot(Be,St,Ae,Ee){var Ce;for(Ce=Ae;Ce>=0&&Ce<St.length;Ce+=Ee)if(Be[St[Ce]])return Be[St[Ce]];for(Ce=Ae;Ce>=0&&Ce<St.length;Ce-=Ee)if(Be[St[Ce]])return Be[St[Ce]]}var Bt={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Mt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Et(Be){return[Be.stretch,Be.style,Be.weight,Be.family].join(" ")}function qt(Be,St,Ae){for(var Ee=(Ae=Ae||{}).defaultFontFamily||"times",Ce=Object.assign({},Bt,Ae.genericFontFamilies||{}),_e=null,Te=null,Se=0;Se<St.length;++Se)if(Ce[(_e=jt(St[Se])).family]&&(_e.family=Ce[_e.family]),Be.hasOwnProperty(_e.family)){Te=Be[_e.family];break}if(!(Te=Te||Be[Ee]))throw new Error("Could not find a font-family for the rule '"+Et(_e)+"' and default family '"+Ee+"'.");if(Te=function(xe,Fe){if(Fe[xe])return Fe[xe];var Ue=It[xe],Re=Ue<=It.normal?-1:1,He=Ot(Fe,kt,Ue,Re);if(!He)throw new Error("Could not find a matching font-stretch value for "+xe);return He}(_e.stretch,Te),Te=function(xe,Fe){if(Fe[xe])return Fe[xe];for(var Ue=Pt[xe],Re=0;Re<Ue.length;++Re)if(Fe[Ue[Re]])return Fe[Ue[Re]];throw new Error("Could not find a matching font-style for "+xe)}(_e.style,Te),!(Te=function(xe,Fe){if(Fe[xe])return Fe[xe];if(xe===400&&Fe[500])return Fe[500];if(xe===500&&Fe[400])return Fe[400];var Ue=Ct[xe],Re=Ot(Fe,Ft,Ue,xe<400?-1:1);if(!Re)throw new Error("Could not find a matching font-weight for value "+xe);return Re}(_e.weight,Te)))throw new Error("Failed to resolve a font for the rule '"+Et(_e)+"'.");return Te}function Dt(Be){return Be.trimLeft()}function Rt(Be,St){for(var Ae=0;Ae<Be.length;){if(Be.charAt(Ae)===St)return[Be.substring(0,Ae),Be.substring(Ae+1)];Ae+=1}return null}function Tt(Be){var St=Be.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return St===null?null:[St[0],Be.substring(St[0].length)]}var Ut,zt,Ht,Wt=["times"];(function(Be){var St,Ae,Ee,Ce,_e,Te,Se,xe,Fe,Ue=function(ur){return ur=ur||{},this.isStrokeTransparent=ur.isStrokeTransparent||!1,this.strokeOpacity=ur.strokeOpacity||1,this.strokeStyle=ur.strokeStyle||"#000000",this.fillStyle=ur.fillStyle||"#000000",this.isFillTransparent=ur.isFillTransparent||!1,this.fillOpacity=ur.fillOpacity||1,this.font=ur.font||"10px sans-serif",this.textBaseline=ur.textBaseline||"alphabetic",this.textAlign=ur.textAlign||"left",this.lineWidth=ur.lineWidth||1,this.lineJoin=ur.lineJoin||"miter",this.lineCap=ur.lineCap||"butt",this.path=ur.path||[],this.transform=ur.transform!==void 0?ur.transform.clone():new xe,this.globalCompositeOperation=ur.globalCompositeOperation||"normal",this.globalAlpha=ur.globalAlpha||1,this.clip_path=ur.clip_path||[],this.currentPoint=ur.currentPoint||new Te,this.miterLimit=ur.miterLimit||10,this.lastPoint=ur.lastPoint||new Te,this.lineDashOffset=ur.lineDashOffset||0,this.lineDash=ur.lineDash||[],this.margin=ur.margin||[0,0,0,0],this.prevPageLastElemOffset=ur.prevPageLastElemOffset||0,this.ignoreClearRect=typeof ur.ignoreClearRect!="boolean"||ur.ignoreClearRect,this};Be.events.push(["initialized",function(){this.context2d=new Re(this),St=this.internal.f2,Ae=this.internal.getCoordinateString,Ee=this.internal.getVerticalCoordinateString,Ce=this.internal.getHorizontalCoordinate,_e=this.internal.getVerticalCoordinate,Te=this.internal.Point,Se=this.internal.Rectangle,xe=this.internal.Matrix,Fe=new Ue}]);var Re=function(ur){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var _r=ur;Object.defineProperty(this,"pdf",{get:function(){return _r}});var Fr=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Fr},set:function(fn){Fr=!!fn}});var Pr=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Pr},set:function(fn){Pr=!!fn}});var kr=0;Object.defineProperty(this,"posX",{get:function(){return kr},set:function(fn){isNaN(fn)||(kr=fn)}});var Vr=0;Object.defineProperty(this,"posY",{get:function(){return Vr},set:function(fn){isNaN(fn)||(Vr=fn)}}),Object.defineProperty(this,"margin",{get:function(){return Fe.margin},set:function(fn){var Sr;typeof fn=="number"?Sr=[fn,fn,fn,fn]:((Sr=new Array(4))[0]=fn[0],Sr[1]=fn.length>=2?fn[1]:Sr[0],Sr[2]=fn.length>=3?fn[2]:Sr[0],Sr[3]=fn.length>=4?fn[3]:Sr[1]),Fe.margin=Sr}});var nn=!1;Object.defineProperty(this,"autoPaging",{get:function(){return nn},set:function(fn){nn=fn}});var Jr=0;Object.defineProperty(this,"lastBreak",{get:function(){return Jr},set:function(fn){Jr=fn}});var wn=[];Object.defineProperty(this,"pageBreaks",{get:function(){return wn},set:function(fn){wn=fn}}),Object.defineProperty(this,"ctx",{get:function(){return Fe},set:function(fn){fn instanceof Ue&&(Fe=fn)}}),Object.defineProperty(this,"path",{get:function(){return Fe.path},set:function(fn){Fe.path=fn}});var Cn=[];Object.defineProperty(this,"ctxStack",{get:function(){return Cn},set:function(fn){Cn=fn}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(fn){var Sr;Sr=He(fn),this.ctx.fillStyle=Sr.style,this.ctx.isFillTransparent=Sr.a===0,this.ctx.fillOpacity=Sr.a,this.pdf.setFillColor(Sr.r,Sr.g,Sr.b,{a:Sr.a}),this.pdf.setTextColor(Sr.r,Sr.g,Sr.b,{a:Sr.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(fn){var Sr=He(fn);this.ctx.strokeStyle=Sr.style,this.ctx.isStrokeTransparent=Sr.a===0,this.ctx.strokeOpacity=Sr.a,Sr.a===0?this.pdf.setDrawColor(255,255,255):(Sr.a,this.pdf.setDrawColor(Sr.r,Sr.g,Sr.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(fn){["butt","round","square"].indexOf(fn)!==-1&&(this.ctx.lineCap=fn,this.pdf.setLineCap(fn))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(fn){isNaN(fn)||(this.ctx.lineWidth=fn,this.pdf.setLineWidth(fn))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(fn){["bevel","round","miter"].indexOf(fn)!==-1&&(this.ctx.lineJoin=fn,this.pdf.setLineJoin(fn))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(fn){isNaN(fn)||(this.ctx.miterLimit=fn,this.pdf.setMiterLimit(fn))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(fn){this.ctx.textBaseline=fn}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(fn){["right","end","center","left","start"].indexOf(fn)!==-1&&(this.ctx.textAlign=fn)}});var On=null;function In(fn,Sr){if(On===null){var ti=function(Yn){var Tn=[];return Object.keys(Yn).forEach(function(Nn){Yn[Nn].forEach(function(Rn){var $n=null;switch(Rn){case"bold":$n={family:Nn,weight:"bold"};break;case"italic":$n={family:Nn,style:"italic"};break;case"bolditalic":$n={family:Nn,weight:"bold",style:"italic"};break;case"":case"normal":$n={family:Nn}}$n!==null&&($n.ref={name:Nn,style:Rn},Tn.push($n))})}),Tn}(fn.getFontList());On=function(Yn){for(var Tn={},Nn=0;Nn<Yn.length;++Nn){var Rn=jt(Yn[Nn]),$n=Rn.family,zn=Rn.stretch,Gn=Rn.style,ii=Rn.weight;Tn[$n]=Tn[$n]||{},Tn[$n][zn]=Tn[$n][zn]||{},Tn[$n][zn][Gn]=Tn[$n][zn][Gn]||{},Tn[$n][zn][Gn][ii]=Rn}return Tn}(ti.concat(Sr))}return On}var Xn=null;Object.defineProperty(this,"fontFaces",{get:function(){return Xn},set:function(fn){On=null,Xn=fn}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(fn){var Sr;if(this.ctx.font=fn,(Sr=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(fn))!==null){var ti=Sr[1],Yn=(Sr[2],Sr[3]),Tn=Sr[4],Nn=(Sr[5],Sr[6]),Rn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Tn)[2];Tn=Math.floor(Rn==="px"?parseFloat(Tn)*this.pdf.internal.scaleFactor:Rn==="em"?parseFloat(Tn)*this.pdf.getFontSize():parseFloat(Tn)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Tn);var $n=function(Ai){var hi,Hn,Oi=[],wi=Ai.trim();if(wi==="")return Wt;if(wi in Mt)return[Mt[wi]];for(;wi!=="";){switch(Hn=null,hi=(wi=Dt(wi)).charAt(0)){case'"':case"'":Hn=Rt(wi.substring(1),hi);break;default:Hn=Tt(wi)}if(Hn===null||(Oi.push(Hn[0]),(wi=Dt(Hn[1]))!==""&&wi.charAt(0)!==","))return Wt;wi=wi.replace(/^,/,"")}return Oi}(Nn);if(this.fontFaces){var zn=qt(In(this.pdf,this.fontFaces),$n.map(function(Ai){return{family:Ai,stretch:"normal",weight:Yn,style:ti}}));this.pdf.setFont(zn.ref.name,zn.ref.style)}else{var Gn="";(Yn==="bold"||parseInt(Yn,10)>=700||ti==="bold")&&(Gn="bold"),ti==="italic"&&(Gn+="italic"),Gn.length===0&&(Gn="normal");for(var ii="",ui={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},mi=0;mi<$n.length;mi++){if(this.pdf.internal.getFont($n[mi],Gn,{noFallback:!0,disableWarning:!0})!==void 0){ii=$n[mi];break}if(Gn==="bolditalic"&&this.pdf.internal.getFont($n[mi],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ii=$n[mi],Gn="bold";else if(this.pdf.internal.getFont($n[mi],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ii=$n[mi],Gn="normal";break}}if(ii===""){for(var yi=0;yi<$n.length;yi++)if(ui[$n[yi]]){ii=ui[$n[yi]];break}}ii=ii===""?"Times":ii,this.pdf.setFont(ii,Gn)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(fn){this.ctx.globalCompositeOperation=fn}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(fn){this.ctx.globalAlpha=fn}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(fn){this.ctx.lineDashOffset=fn,sn.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(fn){this.ctx.lineDash=fn,sn.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(fn){this.ctx.ignoreClearRect=!!fn}})};Re.prototype.setLineDash=function(ur){this.lineDash=ur},Re.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Re.prototype.fill=function(){Xe.call(this,"fill",!1)},Re.prototype.stroke=function(){Xe.call(this,"stroke",!1)},Re.prototype.beginPath=function(){this.path=[{type:"begin"}]},Re.prototype.moveTo=function(ur,_r){if(isNaN(ur)||isNaN(_r))throw a$2.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Fr=this.ctx.transform.applyToPoint(new Te(ur,_r));this.path.push({type:"mt",x:Fr.x,y:Fr.y}),this.ctx.lastPoint=new Te(ur,_r)},Re.prototype.closePath=function(){var ur=new Te(0,0),_r=0;for(_r=this.path.length-1;_r!==-1;_r--)if(this.path[_r].type==="begin"&&_typeof$3(this.path[_r+1])==="object"&&typeof this.path[_r+1].x=="number"){ur=new Te(this.path[_r+1].x,this.path[_r+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new Te(ur.x,ur.y)},Re.prototype.lineTo=function(ur,_r){if(isNaN(ur)||isNaN(_r))throw a$2.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Fr=this.ctx.transform.applyToPoint(new Te(ur,_r));this.path.push({type:"lt",x:Fr.x,y:Fr.y}),this.ctx.lastPoint=new Te(Fr.x,Fr.y)},Re.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Xe.call(this,null,!0)},Re.prototype.quadraticCurveTo=function(ur,_r,Fr,Pr){if(isNaN(Fr)||isNaN(Pr)||isNaN(ur)||isNaN(_r))throw a$2.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var kr=this.ctx.transform.applyToPoint(new Te(Fr,Pr)),Vr=this.ctx.transform.applyToPoint(new Te(ur,_r));this.path.push({type:"qct",x1:Vr.x,y1:Vr.y,x:kr.x,y:kr.y}),this.ctx.lastPoint=new Te(kr.x,kr.y)},Re.prototype.bezierCurveTo=function(ur,_r,Fr,Pr,kr,Vr){if(isNaN(kr)||isNaN(Vr)||isNaN(ur)||isNaN(_r)||isNaN(Fr)||isNaN(Pr))throw a$2.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var nn=this.ctx.transform.applyToPoint(new Te(kr,Vr)),Jr=this.ctx.transform.applyToPoint(new Te(ur,_r)),wn=this.ctx.transform.applyToPoint(new Te(Fr,Pr));this.path.push({type:"bct",x1:Jr.x,y1:Jr.y,x2:wn.x,y2:wn.y,x:nn.x,y:nn.y}),this.ctx.lastPoint=new Te(nn.x,nn.y)},Re.prototype.arc=function(ur,_r,Fr,Pr,kr,Vr){if(isNaN(ur)||isNaN(_r)||isNaN(Fr)||isNaN(Pr)||isNaN(kr))throw a$2.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Vr=!!Vr,!this.ctx.transform.isIdentity){var nn=this.ctx.transform.applyToPoint(new Te(ur,_r));ur=nn.x,_r=nn.y;var Jr=this.ctx.transform.applyToPoint(new Te(0,Fr)),wn=this.ctx.transform.applyToPoint(new Te(0,0));Fr=Math.sqrt(Math.pow(Jr.x-wn.x,2)+Math.pow(Jr.y-wn.y,2))}Math.abs(kr-Pr)>=2*Math.PI&&(Pr=0,kr=2*Math.PI),this.path.push({type:"arc",x:ur,y:_r,radius:Fr,startAngle:Pr,endAngle:kr,counterclockwise:Vr})},Re.prototype.arcTo=function(ur,_r,Fr,Pr,kr){throw new Error("arcTo not implemented.")},Re.prototype.rect=function(ur,_r,Fr,Pr){if(isNaN(ur)||isNaN(_r)||isNaN(Fr)||isNaN(Pr))throw a$2.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(ur,_r),this.lineTo(ur+Fr,_r),this.lineTo(ur+Fr,_r+Pr),this.lineTo(ur,_r+Pr),this.lineTo(ur,_r),this.lineTo(ur+Fr,_r),this.lineTo(ur,_r)},Re.prototype.fillRect=function(ur,_r,Fr,Pr){if(isNaN(ur)||isNaN(_r)||isNaN(Fr)||isNaN(Pr))throw a$2.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!$e.call(this)){var kr={};this.lineCap!=="butt"&&(kr.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(kr.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(ur,_r,Fr,Pr),this.fill(),kr.hasOwnProperty("lineCap")&&(this.lineCap=kr.lineCap),kr.hasOwnProperty("lineJoin")&&(this.lineJoin=kr.lineJoin)}},Re.prototype.strokeRect=function(ur,_r,Fr,Pr){if(isNaN(ur)||isNaN(_r)||isNaN(Fr)||isNaN(Pr))throw a$2.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");ze.call(this)||(this.beginPath(),this.rect(ur,_r,Fr,Pr),this.stroke())},Re.prototype.clearRect=function(ur,_r,Fr,Pr){if(isNaN(ur)||isNaN(_r)||isNaN(Fr)||isNaN(Pr))throw a$2.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(ur,_r,Fr,Pr))},Re.prototype.save=function(ur){ur=typeof ur!="boolean"||ur;for(var _r=this.pdf.internal.getCurrentPageInfo().pageNumber,Fr=0;Fr<this.pdf.internal.getNumberOfPages();Fr++)this.pdf.setPage(Fr+1),this.pdf.internal.out("q");if(this.pdf.setPage(_r),ur){this.ctx.fontSize=this.pdf.internal.getFontSize();var Pr=new Ue(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Pr}},Re.prototype.restore=function(ur){ur=typeof ur!="boolean"||ur;for(var _r=this.pdf.internal.getCurrentPageInfo().pageNumber,Fr=0;Fr<this.pdf.internal.getNumberOfPages();Fr++)this.pdf.setPage(Fr+1),this.pdf.internal.out("Q");this.pdf.setPage(_r),ur&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},Re.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var He=function(ur){var _r,Fr,Pr,kr;if(ur.isCanvasGradient===!0&&(ur=ur.getColor()),!ur)return{r:0,g:0,b:0,a:0,style:ur};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(ur))_r=0,Fr=0,Pr=0,kr=0;else{var Vr=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(ur);if(Vr!==null)_r=parseInt(Vr[1]),Fr=parseInt(Vr[2]),Pr=parseInt(Vr[3]),kr=1;else if((Vr=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(ur))!==null)_r=parseInt(Vr[1]),Fr=parseInt(Vr[2]),Pr=parseInt(Vr[3]),kr=parseFloat(Vr[4]);else{if(kr=1,typeof ur=="string"&&ur.charAt(0)!=="#"){var nn=new f$2(ur);ur=nn.ok?nn.toHex():"#000000"}ur.length===4?(_r=ur.substring(1,2),_r+=_r,Fr=ur.substring(2,3),Fr+=Fr,Pr=ur.substring(3,4),Pr+=Pr):(_r=ur.substring(1,3),Fr=ur.substring(3,5),Pr=ur.substring(5,7)),_r=parseInt(_r,16),Fr=parseInt(Fr,16),Pr=parseInt(Pr,16)}}return{r:_r,g:Fr,b:Pr,a:kr,style:ur}},$e=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},ze=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Re.prototype.fillText=function(ur,_r,Fr,Pr){if(isNaN(_r)||isNaN(Fr)||typeof ur!="string")throw a$2.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Pr=isNaN(Pr)?void 0:Pr,!$e.call(this)){var kr=Qr(this.ctx.transform.rotation),Vr=this.ctx.transform.scaleX;Ar.call(this,{text:ur,x:_r,y:Fr,scale:Vr,angle:kr,align:this.textAlign,maxWidth:Pr})}},Re.prototype.strokeText=function(ur,_r,Fr,Pr){if(isNaN(_r)||isNaN(Fr)||typeof ur!="string")throw a$2.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!ze.call(this)){Pr=isNaN(Pr)?void 0:Pr;var kr=Qr(this.ctx.transform.rotation),Vr=this.ctx.transform.scaleX;Ar.call(this,{text:ur,x:_r,y:Fr,scale:Vr,renderingMode:"stroke",angle:kr,align:this.textAlign,maxWidth:Pr})}},Re.prototype.measureText=function(ur){if(typeof ur!="string")throw a$2.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var _r=this.pdf,Fr=this.pdf.internal.scaleFactor,Pr=_r.internal.getFontSize(),kr=_r.getStringUnitWidth(ur)*Pr/_r.internal.scaleFactor,Vr=function(nn){var Jr=(nn=nn||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Jr}}),this};return new Vr({width:kr*=Math.round(96*Fr/72*1e4)/1e4})},Re.prototype.scale=function(ur,_r){if(isNaN(ur)||isNaN(_r))throw a$2.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Fr=new xe(ur,0,0,_r,0,0);this.ctx.transform=this.ctx.transform.multiply(Fr)},Re.prototype.rotate=function(ur){if(isNaN(ur))throw a$2.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var _r=new xe(Math.cos(ur),Math.sin(ur),-Math.sin(ur),Math.cos(ur),0,0);this.ctx.transform=this.ctx.transform.multiply(_r)},Re.prototype.translate=function(ur,_r){if(isNaN(ur)||isNaN(_r))throw a$2.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Fr=new xe(1,0,0,1,ur,_r);this.ctx.transform=this.ctx.transform.multiply(Fr)},Re.prototype.transform=function(ur,_r,Fr,Pr,kr,Vr){if(isNaN(ur)||isNaN(_r)||isNaN(Fr)||isNaN(Pr)||isNaN(kr)||isNaN(Vr))throw a$2.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var nn=new xe(ur,_r,Fr,Pr,kr,Vr);this.ctx.transform=this.ctx.transform.multiply(nn)},Re.prototype.setTransform=function(ur,_r,Fr,Pr,kr,Vr){ur=isNaN(ur)?1:ur,_r=isNaN(_r)?0:_r,Fr=isNaN(Fr)?0:Fr,Pr=isNaN(Pr)?1:Pr,kr=isNaN(kr)?0:kr,Vr=isNaN(Vr)?0:Vr,this.ctx.transform=new xe(ur,_r,Fr,Pr,kr,Vr)};var Ve=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Re.prototype.drawImage=function(ur,_r,Fr,Pr,kr,Vr,nn,Jr,wn){var Cn=this.pdf.getImageProperties(ur),On=1,In=1,Xn=1,fn=1;Pr!==void 0&&Jr!==void 0&&(Xn=Jr/Pr,fn=wn/kr,On=Cn.width/Pr*Jr/Pr,In=Cn.height/kr*wn/kr),Vr===void 0&&(Vr=_r,nn=Fr,_r=0,Fr=0),Pr!==void 0&&Jr===void 0&&(Jr=Pr,wn=kr),Pr===void 0&&Jr===void 0&&(Jr=Cn.width,wn=Cn.height);for(var Sr,ti=this.ctx.transform.decompose(),Yn=Qr(ti.rotate.shx),Tn=new xe,Nn=(Tn=(Tn=(Tn=Tn.multiply(ti.translate)).multiply(ti.skew)).multiply(ti.scale)).applyToRectangle(new Se(Vr-_r*Xn,nn-Fr*fn,Pr*On,kr*In)),Rn=ir.call(this,Nn),$n=[],zn=0;zn<Rn.length;zn+=1)$n.indexOf(Rn[zn])===-1&&$n.push(Rn[zn]);if(cr($n),this.autoPaging)for(var Gn=$n[0],ii=$n[$n.length-1],ui=Gn;ui<ii+1;ui++){this.pdf.setPage(ui);var mi=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],yi=ui===1?this.posY+this.margin[0]:this.margin[0],Ai=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],hi=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Hn=ui===1?0:Ai+(ui-2)*hi;if(this.ctx.clip_path.length!==0){var Oi=this.path;Sr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=ar(Sr,this.posX+this.margin[3],-Hn+yi+this.ctx.prevPageLastElemOffset),or.call(this,"fill",!0),this.path=Oi}var wi=JSON.parse(JSON.stringify(Nn));wi=ar([wi],this.posX+this.margin[3],-Hn+yi+this.ctx.prevPageLastElemOffset)[0];var br=(ui>Gn||ui<ii)&&Ve.call(this);br&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],mi,hi,null).clip().discardPath()),this.pdf.addImage(ur,"JPEG",wi.x,wi.y,wi.w,wi.h,null,null,Yn),br&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(ur,"JPEG",Nn.x,Nn.y,Nn.w,Nn.h,null,null,Yn)};var ir=function(ur,_r,Fr){var Pr=[];_r=_r||this.pdf.internal.pageSize.width,Fr=Fr||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var kr=this.posY+this.ctx.prevPageLastElemOffset;switch(ur.type){default:case"mt":case"lt":Pr.push(Math.floor((ur.y+kr)/Fr)+1);break;case"arc":Pr.push(Math.floor((ur.y+kr-ur.radius)/Fr)+1),Pr.push(Math.floor((ur.y+kr+ur.radius)/Fr)+1);break;case"qct":var Vr=Dr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,ur.x1,ur.y1,ur.x,ur.y);Pr.push(Math.floor((Vr.y+kr)/Fr)+1),Pr.push(Math.floor((Vr.y+Vr.h+kr)/Fr)+1);break;case"bct":var nn=Xr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,ur.x1,ur.y1,ur.x2,ur.y2,ur.x,ur.y);Pr.push(Math.floor((nn.y+kr)/Fr)+1),Pr.push(Math.floor((nn.y+nn.h+kr)/Fr)+1);break;case"rect":Pr.push(Math.floor((ur.y+kr)/Fr)+1),Pr.push(Math.floor((ur.y+ur.h+kr)/Fr)+1)}for(var Jr=0;Jr<Pr.length;Jr+=1)for(;this.pdf.internal.getNumberOfPages()<Pr[Jr];)Ze.call(this);return Pr},Ze=function(){var ur=this.fillStyle,_r=this.strokeStyle,Fr=this.font,Pr=this.lineCap,kr=this.lineWidth,Vr=this.lineJoin;this.pdf.addPage(),this.fillStyle=ur,this.strokeStyle=_r,this.font=Fr,this.lineCap=Pr,this.lineWidth=kr,this.lineJoin=Vr},ar=function(ur,_r,Fr){for(var Pr=0;Pr<ur.length;Pr++)switch(ur[Pr].type){case"bct":ur[Pr].x2+=_r,ur[Pr].y2+=Fr;case"qct":ur[Pr].x1+=_r,ur[Pr].y1+=Fr;case"mt":case"lt":case"arc":default:ur[Pr].x+=_r,ur[Pr].y+=Fr}return ur},cr=function(ur){return ur.sort(function(_r,Fr){return _r-Fr})},Xe=function(ur,_r){for(var Fr,Pr,kr=this.fillStyle,Vr=this.strokeStyle,nn=this.lineCap,Jr=this.lineWidth,wn=Math.abs(Jr*this.ctx.transform.scaleX),Cn=this.lineJoin,On=JSON.parse(JSON.stringify(this.path)),In=JSON.parse(JSON.stringify(this.path)),Xn=[],fn=0;fn<In.length;fn++)if(In[fn].x!==void 0)for(var Sr=ir.call(this,In[fn]),ti=0;ti<Sr.length;ti+=1)Xn.indexOf(Sr[ti])===-1&&Xn.push(Sr[ti]);for(var Yn=0;Yn<Xn.length;Yn++)for(;this.pdf.internal.getNumberOfPages()<Xn[Yn];)Ze.call(this);if(cr(Xn),this.autoPaging)for(var Tn=Xn[0],Nn=Xn[Xn.length-1],Rn=Tn;Rn<Nn+1;Rn++){this.pdf.setPage(Rn),this.fillStyle=kr,this.strokeStyle=Vr,this.lineCap=nn,this.lineWidth=wn,this.lineJoin=Cn;var $n=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],zn=Rn===1?this.posY+this.margin[0]:this.margin[0],Gn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ii=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ui=Rn===1?0:Gn+(Rn-2)*ii;if(this.ctx.clip_path.length!==0){var mi=this.path;Fr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=ar(Fr,this.posX+this.margin[3],-ui+zn+this.ctx.prevPageLastElemOffset),or.call(this,ur,!0),this.path=mi}if(Pr=JSON.parse(JSON.stringify(On)),this.path=ar(Pr,this.posX+this.margin[3],-ui+zn+this.ctx.prevPageLastElemOffset),_r===!1||Rn===0){var yi=(Rn>Tn||Rn<Nn)&&Ve.call(this);yi&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],$n,ii,null).clip().discardPath()),or.call(this,ur,_r),yi&&this.pdf.restoreGraphicsState()}this.lineWidth=Jr}else this.lineWidth=wn,or.call(this,ur,_r),this.lineWidth=Jr;this.path=On},or=function(ur,_r){if((ur!=="stroke"||_r||!ze.call(this))&&(ur==="stroke"||_r||!$e.call(this))){for(var Fr,Pr,kr=[],Vr=this.path,nn=0;nn<Vr.length;nn++){var Jr=Vr[nn];switch(Jr.type){case"begin":kr.push({begin:!0});break;case"close":kr.push({close:!0});break;case"mt":kr.push({start:Jr,deltas:[],abs:[]});break;case"lt":var wn=kr.length;if(Vr[nn-1]&&!isNaN(Vr[nn-1].x)&&(Fr=[Jr.x-Vr[nn-1].x,Jr.y-Vr[nn-1].y],wn>0)){for(;wn>=0;wn--)if(kr[wn-1].close!==!0&&kr[wn-1].begin!==!0){kr[wn-1].deltas.push(Fr),kr[wn-1].abs.push(Jr);break}}break;case"bct":Fr=[Jr.x1-Vr[nn-1].x,Jr.y1-Vr[nn-1].y,Jr.x2-Vr[nn-1].x,Jr.y2-Vr[nn-1].y,Jr.x-Vr[nn-1].x,Jr.y-Vr[nn-1].y],kr[kr.length-1].deltas.push(Fr);break;case"qct":var Cn=Vr[nn-1].x+2/3*(Jr.x1-Vr[nn-1].x),On=Vr[nn-1].y+2/3*(Jr.y1-Vr[nn-1].y),In=Jr.x+2/3*(Jr.x1-Jr.x),Xn=Jr.y+2/3*(Jr.y1-Jr.y),fn=Jr.x,Sr=Jr.y;Fr=[Cn-Vr[nn-1].x,On-Vr[nn-1].y,In-Vr[nn-1].x,Xn-Vr[nn-1].y,fn-Vr[nn-1].x,Sr-Vr[nn-1].y],kr[kr.length-1].deltas.push(Fr);break;case"arc":kr.push({deltas:[],abs:[],arc:!0}),Array.isArray(kr[kr.length-1].abs)&&kr[kr.length-1].abs.push(Jr)}}Pr=_r?null:ur==="stroke"?"stroke":"fill";for(var ti=!1,Yn=0;Yn<kr.length;Yn++)if(kr[Yn].arc)for(var Tn=kr[Yn].abs,Nn=0;Nn<Tn.length;Nn++){var Rn=Tn[Nn];Rn.type==="arc"?Ye.call(this,Rn.x,Rn.y,Rn.radius,Rn.startAngle,Rn.endAngle,Rn.counterclockwise,void 0,_r,!ti):gr.call(this,Rn.x,Rn.y),ti=!0}else if(kr[Yn].close===!0)this.pdf.internal.out("h"),ti=!1;else if(kr[Yn].begin!==!0){var $n=kr[Yn].start.x,zn=kr[Yn].start.y;mr.call(this,kr[Yn].deltas,$n,zn),ti=!0}Pr&&rr.call(this,Pr),_r&&vr.call(this)}},Oe=function(ur){var _r=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Fr=_r*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return ur-Fr;case"top":return ur+_r-Fr;case"hanging":return ur+_r-2*Fr;case"middle":return ur+_r/2-Fr;case"ideographic":return ur;case"alphabetic":default:return ur}},Je=function(ur){return ur+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Re.prototype.createLinearGradient=function(){var ur=function(){};return ur.colorStops=[],ur.addColorStop=function(_r,Fr){this.colorStops.push([_r,Fr])},ur.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},ur.isCanvasGradient=!0,ur},Re.prototype.createPattern=function(){return this.createLinearGradient()},Re.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Ye=function(ur,_r,Fr,Pr,kr,Vr,nn,Jr,wn){for(var Cn=Lr.call(this,Fr,Pr,kr,Vr),On=0;On<Cn.length;On++){var In=Cn[On];On===0&&(wn?er.call(this,In.x1+ur,In.y1+_r):gr.call(this,In.x1+ur,In.y1+_r)),Ur.call(this,ur,_r,In.x2,In.y2,In.x3,In.y3,In.x4,In.y4)}Jr?vr.call(this):rr.call(this,nn)},rr=function(ur){switch(ur){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},vr=function(){this.pdf.clip(),this.pdf.discardPath()},er=function(ur,_r){this.pdf.internal.out(Ae(ur)+" "+Ee(_r)+" m")},Ar=function(ur){var _r;switch(ur.align){case"right":case"end":_r="right";break;case"center":_r="center";break;case"left":case"start":default:_r="left"}var Fr=this.pdf.getTextDimensions(ur.text),Pr=Oe.call(this,ur.y),kr=Je.call(this,Pr)-Fr.h,Vr=this.ctx.transform.applyToPoint(new Te(ur.x,Pr)),nn=this.ctx.transform.decompose(),Jr=new xe;Jr=(Jr=(Jr=Jr.multiply(nn.translate)).multiply(nn.skew)).multiply(nn.scale);for(var wn,Cn,On,In=this.ctx.transform.applyToRectangle(new Se(ur.x,Pr,Fr.w,Fr.h)),Xn=Jr.applyToRectangle(new Se(ur.x,kr,Fr.w,Fr.h)),fn=ir.call(this,Xn),Sr=[],ti=0;ti<fn.length;ti+=1)Sr.indexOf(fn[ti])===-1&&Sr.push(fn[ti]);if(cr(Sr),this.autoPaging)for(var Yn=Sr[0],Tn=Sr[Sr.length-1],Nn=Yn;Nn<Tn+1;Nn++){this.pdf.setPage(Nn);var Rn=Nn===1?this.posY+this.margin[0]:this.margin[0],$n=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],zn=this.pdf.internal.pageSize.height-this.margin[2],Gn=zn-this.margin[0],ii=this.pdf.internal.pageSize.width-this.margin[1],ui=ii-this.margin[3],mi=Nn===1?0:$n+(Nn-2)*Gn;if(this.ctx.clip_path.length!==0){var yi=this.path;wn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=ar(wn,this.posX+this.margin[3],-1*mi+Rn),or.call(this,"fill",!0),this.path=yi}var Ai=ar([JSON.parse(JSON.stringify(Xn))],this.posX+this.margin[3],-mi+Rn+this.ctx.prevPageLastElemOffset)[0];ur.scale>=.01&&(Cn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Cn*ur.scale),On=this.lineWidth,this.lineWidth=On*ur.scale);var hi=this.autoPaging!=="text";if(hi||Ai.y+Ai.h<=zn){if(hi||Ai.y>=Rn&&Ai.x<=ii){var Hn=hi?ur.text:this.pdf.splitTextToSize(ur.text,ur.maxWidth||ii-Ai.x)[0],Oi=ar([JSON.parse(JSON.stringify(In))],this.posX+this.margin[3],-mi+Rn+this.ctx.prevPageLastElemOffset)[0],wi=hi&&(Nn>Yn||Nn<Tn)&&Ve.call(this);wi&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ui,Gn,null).clip().discardPath()),this.pdf.text(Hn,Oi.x,Oi.y,{angle:ur.angle,align:_r,renderingMode:ur.renderingMode}),wi&&this.pdf.restoreGraphicsState()}}else Ai.y<zn&&(this.ctx.prevPageLastElemOffset+=zn-Ai.y);ur.scale>=.01&&(this.pdf.setFontSize(Cn),this.lineWidth=On)}else ur.scale>=.01&&(Cn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Cn*ur.scale),On=this.lineWidth,this.lineWidth=On*ur.scale),this.pdf.text(ur.text,Vr.x+this.posX,Vr.y+this.posY,{angle:ur.angle,align:_r,renderingMode:ur.renderingMode,maxWidth:ur.maxWidth}),ur.scale>=.01&&(this.pdf.setFontSize(Cn),this.lineWidth=On)},gr=function(ur,_r,Fr,Pr){Fr=Fr||0,Pr=Pr||0,this.pdf.internal.out(Ae(ur+Fr)+" "+Ee(_r+Pr)+" l")},mr=function(ur,_r,Fr){return this.pdf.lines(ur,_r,Fr,null,null)},Ur=function(ur,_r,Fr,Pr,kr,Vr,nn,Jr){this.pdf.internal.out([St(Ce(Fr+ur)),St(_e(Pr+_r)),St(Ce(kr+ur)),St(_e(Vr+_r)),St(Ce(nn+ur)),St(_e(Jr+_r)),"c"].join(" "))},Lr=function(ur,_r,Fr,Pr){for(var kr=2*Math.PI,Vr=Math.PI/2;_r>Fr;)_r-=kr;var nn=Math.abs(Fr-_r);nn<kr&&Pr&&(nn=kr-nn);for(var Jr=[],wn=Pr?-1:1,Cn=_r;nn>1e-5;){var On=Cn+wn*Math.min(nn,Vr);Jr.push(Mr.call(this,ur,Cn,On)),nn-=Math.abs(On-Cn),Cn=On}return Jr},Mr=function(ur,_r,Fr){var Pr=(Fr-_r)/2,kr=ur*Math.cos(Pr),Vr=ur*Math.sin(Pr),nn=kr,Jr=-Vr,wn=nn*nn+Jr*Jr,Cn=wn+nn*kr+Jr*Vr,On=4/3*(Math.sqrt(2*wn*Cn)-Cn)/(nn*Vr-Jr*kr),In=nn-On*Jr,Xn=Jr+On*nn,fn=In,Sr=-Xn,ti=Pr+_r,Yn=Math.cos(ti),Tn=Math.sin(ti);return{x1:ur*Math.cos(_r),y1:ur*Math.sin(_r),x2:In*Yn-Xn*Tn,y2:In*Tn+Xn*Yn,x3:fn*Yn-Sr*Tn,y3:fn*Tn+Sr*Yn,x4:ur*Math.cos(Fr),y4:ur*Math.sin(Fr)}},Qr=function(ur){return 180*ur/Math.PI},Dr=function(ur,_r,Fr,Pr,kr,Vr){var nn=ur+.5*(Fr-ur),Jr=_r+.5*(Pr-_r),wn=kr+.5*(Fr-kr),Cn=Vr+.5*(Pr-Vr),On=Math.min(ur,kr,nn,wn),In=Math.max(ur,kr,nn,wn),Xn=Math.min(_r,Vr,Jr,Cn),fn=Math.max(_r,Vr,Jr,Cn);return new Se(On,Xn,In-On,fn-Xn)},Xr=function(ur,_r,Fr,Pr,kr,Vr,nn,Jr){var wn,Cn,On,In,Xn,fn,Sr,ti,Yn,Tn,Nn,Rn,$n,zn,Gn=Fr-ur,ii=Pr-_r,ui=kr-Fr,mi=Vr-Pr,yi=nn-kr,Ai=Jr-Vr;for(Cn=0;Cn<41;Cn++)Yn=(Sr=(On=ur+(wn=Cn/40)*Gn)+wn*((Xn=Fr+wn*ui)-On))+wn*(Xn+wn*(kr+wn*yi-Xn)-Sr),Tn=(ti=(In=_r+wn*ii)+wn*((fn=Pr+wn*mi)-In))+wn*(fn+wn*(Vr+wn*Ai-fn)-ti),Cn==0?(Nn=Yn,Rn=Tn,$n=Yn,zn=Tn):(Nn=Math.min(Nn,Yn),Rn=Math.min(Rn,Tn),$n=Math.max($n,Yn),zn=Math.max(zn,Tn));return new Se(Math.round(Nn),Math.round(Rn),Math.round($n-Nn),Math.round(zn-Rn))},sn=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var ur,_r,Fr=(ur=this.ctx.lineDash,_r=this.ctx.lineDashOffset,JSON.stringify({lineDash:ur,lineDashOffset:_r}));this.prevLineDash!==Fr&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Fr)}}})(E$1.API),function(Be){var St=function(_e){var Te,Se,xe,Fe,Ue,Re,He,$e,ze,Ve;for(Se=[],xe=0,Fe=(_e+=Te="\0\0\0\0".slice(_e.length%4||4)).length;Fe>xe;xe+=4)(Ue=(_e.charCodeAt(xe)<<24)+(_e.charCodeAt(xe+1)<<16)+(_e.charCodeAt(xe+2)<<8)+_e.charCodeAt(xe+3))!==0?(Re=(Ue=((Ue=((Ue=((Ue=(Ue-(Ve=Ue%85))/85)-(ze=Ue%85))/85)-($e=Ue%85))/85)-(He=Ue%85))/85)%85,Se.push(Re+33,He+33,$e+33,ze+33,Ve+33)):Se.push(122);return function(ir,Ze){for(var ar=Ze;ar>0;ar--)ir.pop()}(Se,Te.length),String.fromCharCode.apply(String,Se)+"~>"},Ae=function(_e){var Te,Se,xe,Fe,Ue,Re=String,He="length",$e=255,ze="charCodeAt",Ve="slice",ir="replace";for(_e[Ve](-2),_e=_e[Ve](0,-2)[ir](/\s/g,"")[ir]("z","!!!!!"),xe=[],Fe=0,Ue=(_e+=Te="uuuuu"[Ve](_e[He]%5||5))[He];Ue>Fe;Fe+=5)Se=52200625*(_e[ze](Fe)-33)+614125*(_e[ze](Fe+1)-33)+7225*(_e[ze](Fe+2)-33)+85*(_e[ze](Fe+3)-33)+(_e[ze](Fe+4)-33),xe.push($e&Se>>24,$e&Se>>16,$e&Se>>8,$e&Se);return function(Ze,ar){for(var cr=ar;cr>0;cr--)Ze.pop()}(xe,Te[He]),Re.fromCharCode.apply(Re,xe)},Ee=function(_e){var Te=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((_e=_e.replace(/\s/g,"")).indexOf(">")!==-1&&(_e=_e.substr(0,_e.indexOf(">"))),_e.length%2&&(_e+="0"),Te.test(_e)===!1)return"";for(var Se="",xe=0;xe<_e.length;xe+=2)Se+=String.fromCharCode("0x"+(_e[xe]+_e[xe+1]));return Se},Ce=function(_e){for(var Te=new Uint8Array(_e.length),Se=_e.length;Se--;)Te[Se]=_e.charCodeAt(Se);return _e=(Te=zlibSync(Te)).reduce(function(xe,Fe){return xe+String.fromCharCode(Fe)},"")};Be.processDataByFilters=function(_e,Te){var Se=0,xe=_e||"",Fe=[];for(typeof(Te=Te||[])=="string"&&(Te=[Te]),Se=0;Se<Te.length;Se+=1)switch(Te[Se]){case"ASCII85Decode":case"/ASCII85Decode":xe=Ae(xe),Fe.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":xe=St(xe),Fe.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":xe=Ee(xe),Fe.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":xe=xe.split("").map(function(Ue){return("0"+Ue.charCodeAt().toString(16)).slice(-2)}).join("")+">",Fe.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":xe=Ce(xe),Fe.push("/FlateDecode");break;default:throw new Error('The filter: "'+Te[Se]+'" is not implemented')}return{data:xe,reverseChain:Fe.reverse().join(" ")}}}(E$1.API),function(Be){Be.loadFile=function(St,Ae,Ee){return function(Ce,_e,Te){_e=_e!==!1,Te=typeof Te=="function"?Te:function(){};var Se=void 0;try{Se=function(xe,Fe,Ue){var Re=new XMLHttpRequest,He=0,$e=function(ze){var Ve=ze.length,ir=[],Ze=String.fromCharCode;for(He=0;He<Ve;He+=1)ir.push(Ze(255&ze.charCodeAt(He)));return ir.join("")};if(Re.open("GET",xe,!Fe),Re.overrideMimeType("text/plain; charset=x-user-defined"),Fe===!1&&(Re.onload=function(){Re.status===200?Ue($e(this.responseText)):Ue(void 0)}),Re.send(null),Fe&&Re.status===200)return $e(Re.responseText)}(Ce,_e,Te)}catch{}return Se}(St,Ae,Ee)},Be.loadImageFile=Be.loadFile}(E$1.API),function(Be){function St(){return(n$1.html2canvas?Promise.resolve(n$1.html2canvas):Promise.resolve().then(()=>html2canvas_esm)).catch(function(Te){return Promise.reject(new Error("Could not load html2canvas: "+Te))}).then(function(Te){return Te.default?Te.default:Te})}function Ae(){return(n$1.DOMPurify?Promise.resolve(n$1.DOMPurify):Promise.resolve().then(()=>purify_es)).catch(function(Te){return Promise.reject(new Error("Could not load dompurify: "+Te))}).then(function(Te){return Te.default?Te.default:Te})}var Ee=function(Te){var Se=_typeof$3(Te);return Se==="undefined"?"undefined":Se==="string"||Te instanceof String?"string":Se==="number"||Te instanceof Number?"number":Se==="function"||Te instanceof Function?"function":Te&&Te.constructor===Array?"array":Te&&Te.nodeType===1?"element":Se==="object"?"object":"unknown"},Ce=function(Te,Se){var xe=document.createElement(Te);for(var Fe in Se.className&&(xe.className=Se.className),Se.innerHTML&&Se.dompurify&&(xe.innerHTML=Se.dompurify.sanitize(Se.innerHTML)),Se.style)xe.style[Fe]=Se.style[Fe];return xe},_e=function Te(Se){var xe=Object.assign(Te.convert(Promise.resolve()),JSON.parse(JSON.stringify(Te.template))),Fe=Te.convert(Promise.resolve(),xe);return Fe=(Fe=Fe.setProgress(1,Te,1,[Te])).set(Se)};(_e.prototype=Object.create(Promise.prototype)).constructor=_e,_e.convert=function(Te,Se){return Te.__proto__=Se||_e.prototype,Te},_e.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},_e.prototype.from=function(Te,Se){return this.then(function(){switch(Se=Se||function(xe){switch(Ee(xe)){case"string":return"string";case"element":return xe.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(Te)){case"string":return this.then(Ae).then(function(xe){return this.set({src:Ce("div",{innerHTML:Te,dompurify:xe})})});case"element":return this.set({src:Te});case"canvas":return this.set({canvas:Te});case"img":return this.set({img:Te});default:return this.error("Unknown source type.")}})},_e.prototype.to=function(Te){switch(Te){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},_e.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var Te={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},Se=function xe(Fe,Ue){for(var Re=Fe.nodeType===3?document.createTextNode(Fe.nodeValue):Fe.cloneNode(!1),He=Fe.firstChild;He;He=He.nextSibling)Ue!==!0&&He.nodeType===1&&He.nodeName==="SCRIPT"||Re.appendChild(xe(He,Ue));return Fe.nodeType===1&&(Fe.nodeName==="CANVAS"?(Re.width=Fe.width,Re.height=Fe.height,Re.getContext("2d").drawImage(Fe,0,0)):Fe.nodeName!=="TEXTAREA"&&Fe.nodeName!=="SELECT"||(Re.value=Fe.value),Re.addEventListener("load",function(){Re.scrollTop=Fe.scrollTop,Re.scrollLeft=Fe.scrollLeft},!0)),Re}(this.prop.src,this.opt.html2canvas.javascriptEnabled);Se.tagName==="BODY"&&(Te.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=Ce("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Ce("div",{className:"html2pdf__container",style:Te}),this.prop.container.appendChild(Se),this.prop.container.firstChild.appendChild(Ce("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},_e.prototype.toCanvas=function(){var Te=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Te).then(St).then(function(Se){var xe=Object.assign({},this.opt.html2canvas);return delete xe.onrendered,Se(this.prop.container,xe)}).then(function(Se){(this.opt.html2canvas.onrendered||function(){})(Se),this.prop.canvas=Se,document.body.removeChild(this.prop.overlay)})},_e.prototype.toContext2d=function(){var Te=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Te).then(St).then(function(Se){var xe=this.opt.jsPDF,Fe=this.opt.fontFaces,Ue=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,Re=Object.assign({async:!0,allowTaint:!0,scale:Ue,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete Re.onrendered,xe.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,xe.context2d.posX=this.opt.x,xe.context2d.posY=this.opt.y,xe.context2d.margin=this.opt.margin,xe.context2d.fontFaces=Fe,Fe)for(var He=0;He<Fe.length;++He){var $e=Fe[He],ze=$e.src.find(function(Ve){return Ve.format==="truetype"});ze&&xe.addFont(ze.url,$e.ref.name,$e.ref.style)}return Re.windowHeight=Re.windowHeight||0,Re.windowHeight=Re.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Re.windowHeight,xe.context2d.save(!0),Se(this.prop.container,Re)}).then(function(Se){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Se),this.prop.canvas=Se,document.body.removeChild(this.prop.overlay)})},_e.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var Te=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Te})},_e.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},_e.prototype.output=function(Te,Se,xe){return(xe=xe||"pdf").toLowerCase()==="img"||xe.toLowerCase()==="image"?this.outputImg(Te,Se):this.outputPdf(Te,Se)},_e.prototype.outputPdf=function(Te,Se){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(Te,Se)})},_e.prototype.outputImg=function(Te){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(Te){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+Te+'" is not supported.'}})},_e.prototype.save=function(Te){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(Te?{filename:Te}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},_e.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},_e.prototype.set=function(Te){if(Ee(Te)!=="object")return this;var Se=Object.keys(Te||{}).map(function(xe){if(xe in _e.template.prop)return function(){this.prop[xe]=Te[xe]};switch(xe){case"margin":return this.setMargin.bind(this,Te.margin);case"jsPDF":return function(){return this.opt.jsPDF=Te.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Te.pageSize);default:return function(){this.opt[xe]=Te[xe]}}},this);return this.then(function(){return this.thenList(Se)})},_e.prototype.get=function(Te,Se){return this.then(function(){var xe=Te in _e.template.prop?this.prop[Te]:this.opt[Te];return Se?Se(xe):xe})},_e.prototype.setMargin=function(Te){return this.then(function(){switch(Ee(Te)){case"number":Te=[Te,Te,Te,Te];case"array":if(Te.length===2&&(Te=[Te[0],Te[1],Te[0],Te[1]]),Te.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=Te}).then(this.setPageSize)},_e.prototype.setPageSize=function(Te){function Se(xe,Fe){return Math.floor(xe*Fe/72*96)}return this.then(function(){(Te=Te||E$1.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(Te.inner={width:Te.width-this.opt.margin[1]-this.opt.margin[3],height:Te.height-this.opt.margin[0]-this.opt.margin[2]},Te.inner.px={width:Se(Te.inner.width,Te.k),height:Se(Te.inner.height,Te.k)},Te.inner.ratio=Te.inner.height/Te.inner.width),this.prop.pageSize=Te})},_e.prototype.setProgress=function(Te,Se,xe,Fe){return Te!=null&&(this.progress.val=Te),Se!=null&&(this.progress.state=Se),xe!=null&&(this.progress.n=xe),Fe!=null&&(this.progress.stack=Fe),this.progress.ratio=this.progress.val/this.progress.state,this},_e.prototype.updateProgress=function(Te,Se,xe,Fe){return this.setProgress(Te?this.progress.val+Te:null,Se||null,xe?this.progress.n+xe:null,Fe?this.progress.stack.concat(Fe):null)},_e.prototype.then=function(Te,Se){var xe=this;return this.thenCore(Te,Se,function(Fe,Ue){return xe.updateProgress(null,null,1,[Fe]),Promise.prototype.then.call(this,function(Re){return xe.updateProgress(null,Fe),Re}).then(Fe,Ue).then(function(Re){return xe.updateProgress(1),Re})})},_e.prototype.thenCore=function(Te,Se,xe){xe=xe||Promise.prototype.then,Te&&(Te=Te.bind(this)),Se&&(Se=Se.bind(this));var Fe=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:_e.convert(Object.assign({},this),Promise.prototype),Ue=xe.call(Fe,Te,Se);return _e.convert(Ue,this.__proto__)},_e.prototype.thenExternal=function(Te,Se){return Promise.prototype.then.call(this,Te,Se)},_e.prototype.thenList=function(Te){var Se=this;return Te.forEach(function(xe){Se=Se.thenCore(xe)}),Se},_e.prototype.catch=function(Te){Te&&(Te=Te.bind(this));var Se=Promise.prototype.catch.call(this,Te);return _e.convert(Se,this)},_e.prototype.catchExternal=function(Te){return Promise.prototype.catch.call(this,Te)},_e.prototype.error=function(Te){return this.then(function(){throw new Error(Te)})},_e.prototype.using=_e.prototype.set,_e.prototype.saveAs=_e.prototype.save,_e.prototype.export=_e.prototype.output,_e.prototype.run=_e.prototype.then,E$1.getPageSize=function(Te,Se,xe){if(_typeof$3(Te)==="object"){var Fe=Te;Te=Fe.orientation,Se=Fe.unit||Se,xe=Fe.format||xe}Se=Se||"mm",xe=xe||"a4",Te=(""+(Te||"P")).toLowerCase();var Ue,Re=(""+xe).toLowerCase(),He={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(Se){case"pt":Ue=1;break;case"mm":Ue=72/25.4;break;case"cm":Ue=72/2.54;break;case"in":Ue=72;break;case"px":Ue=.75;break;case"pc":case"em":Ue=12;break;case"ex":Ue=6;break;default:throw"Invalid unit: "+Se}var $e,ze=0,Ve=0;if(He.hasOwnProperty(Re))ze=He[Re][1]/Ue,Ve=He[Re][0]/Ue;else try{ze=xe[1],Ve=xe[0]}catch{throw new Error("Invalid format: "+xe)}if(Te==="p"||Te==="portrait")Te="p",Ve>ze&&($e=Ve,Ve=ze,ze=$e);else{if(Te!=="l"&&Te!=="landscape")throw"Invalid orientation: "+Te;Te="l",ze>Ve&&($e=Ve,Ve=ze,ze=$e)}return{width:Ve,height:ze,unit:Se,k:Ue,orientation:Te}},Be.html=function(Te,Se){(Se=Se||{}).callback=Se.callback||function(){},Se.html2canvas=Se.html2canvas||{},Se.html2canvas.canvas=Se.html2canvas.canvas||this.canvas,Se.jsPDF=Se.jsPDF||this,Se.fontFaces=Se.fontFaces?Se.fontFaces.map(jt):null;var xe=new _e(Se);return Se.worker?xe:xe.from(Te).doCallback()}}(E$1.API),E$1.API.addJS=function(Be){return Ht=Be,this.internal.events.subscribe("postPutResources",function(){Ut=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Ut+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),zt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ht+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Ut!==void 0&&zt!==void 0&&this.internal.out("/Names <</JavaScript "+Ut+" 0 R>>")}),this},function(Be){var St;Be.events.push(["postPutResources",function(){var Ae=this,Ee=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Ce=Ae.outline.render().split(/\r\n/),_e=0;_e<Ce.length;_e++){var Te=Ce[_e],Se=Ee.exec(Te);if(Se!=null){var xe=Se[1];Ae.internal.newObjectDeferredBegin(xe,!1)}Ae.internal.write(Te)}if(this.outline.createNamedDestinations){var Fe=this.internal.pages.length,Ue=[];for(_e=0;_e<Fe;_e++){var Re=Ae.internal.newObject();Ue.push(Re);var He=Ae.internal.getPageInfo(_e+1);Ae.internal.write("<< /D["+He.objId+" 0 R /XYZ null null null]>> endobj")}var $e=Ae.internal.newObject();for(Ae.internal.write("<< /Names [ "),_e=0;_e<Ue.length;_e++)Ae.internal.write("(page_"+(_e+1)+")"+Ue[_e]+" 0 R");Ae.internal.write(" ] >>","endobj"),St=Ae.internal.newObject(),Ae.internal.write("<< /Dests "+$e+" 0 R"),Ae.internal.write(">>","endobj")}}]),Be.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+St+" 0 R"))}]),Be.events.push(["initialized",function(){var Ae=this;Ae.outline={createNamedDestinations:!1,root:{children:[]}},Ae.outline.add=function(Ee,Ce,_e){var Te={title:Ce,options:_e,children:[]};return Ee==null&&(Ee=this.root),Ee.children.push(Te),Te},Ae.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=Ae,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},Ae.outline.genIds_r=function(Ee){Ee.id=Ae.internal.newObjectDeferred();for(var Ce=0;Ce<Ee.children.length;Ce++)this.genIds_r(Ee.children[Ce])},Ae.outline.renderRoot=function(Ee){this.objStart(Ee),this.line("/Type /Outlines"),Ee.children.length>0&&(this.line("/First "+this.makeRef(Ee.children[0])),this.line("/Last "+this.makeRef(Ee.children[Ee.children.length-1]))),this.line("/Count "+this.count_r({count:0},Ee)),this.objEnd()},Ae.outline.renderItems=function(Ee){for(var Ce=this.ctx.pdf.internal.getVerticalCoordinateString,_e=0;_e<Ee.children.length;_e++){var Te=Ee.children[_e];this.objStart(Te),this.line("/Title "+this.makeString(Te.title)),this.line("/Parent "+this.makeRef(Ee)),_e>0&&this.line("/Prev "+this.makeRef(Ee.children[_e-1])),_e<Ee.children.length-1&&this.line("/Next "+this.makeRef(Ee.children[_e+1])),Te.children.length>0&&(this.line("/First "+this.makeRef(Te.children[0])),this.line("/Last "+this.makeRef(Te.children[Te.children.length-1])));var Se=this.count=this.count_r({count:0},Te);if(Se>0&&this.line("/Count "+Se),Te.options&&Te.options.pageNumber){var xe=Ae.internal.getPageInfo(Te.options.pageNumber);this.line("/Dest ["+xe.objId+" 0 R /XYZ 0 "+Ce(0)+" 0]")}this.objEnd()}for(var Fe=0;Fe<Ee.children.length;Fe++)this.renderItems(Ee.children[Fe])},Ae.outline.line=function(Ee){this.ctx.val+=Ee+`\r
`},Ae.outline.makeRef=function(Ee){return Ee.id+" 0 R"},Ae.outline.makeString=function(Ee){return"("+Ae.internal.pdfEscape(Ee)+")"},Ae.outline.objStart=function(Ee){this.ctx.val+=`\r
`+Ee.id+` 0 obj\r
<<\r
`},Ae.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},Ae.outline.count_r=function(Ee,Ce){for(var _e=0;_e<Ce.children.length;_e++)Ee.count++,this.count_r(Ee,Ce.children[_e]);return Ee.count}}])}(E$1.API),function(Be){var St=[192,193,194,195,196,197,198,199];Be.processJPEG=function(Ae,Ee,Ce,_e,Te,Se){var xe,Fe=this.decode.DCT_DECODE,Ue=null;if(typeof Ae=="string"||this.__addimage__.isArrayBuffer(Ae)||this.__addimage__.isArrayBufferView(Ae)){switch(Ae=Te||Ae,Ae=this.__addimage__.isArrayBuffer(Ae)?new Uint8Array(Ae):Ae,(xe=function(Re){for(var He,$e=256*Re.charCodeAt(4)+Re.charCodeAt(5),ze=Re.length,Ve={width:0,height:0,numcomponents:1},ir=4;ir<ze;ir+=2){if(ir+=$e,St.indexOf(Re.charCodeAt(ir+1))!==-1){He=256*Re.charCodeAt(ir+5)+Re.charCodeAt(ir+6),Ve={width:256*Re.charCodeAt(ir+7)+Re.charCodeAt(ir+8),height:He,numcomponents:Re.charCodeAt(ir+9)};break}$e=256*Re.charCodeAt(ir+2)+Re.charCodeAt(ir+3)}return Ve}(Ae=this.__addimage__.isArrayBufferView(Ae)?this.__addimage__.arrayBufferToBinaryString(Ae):Ae)).numcomponents){case 1:Se=this.color_spaces.DEVICE_GRAY;break;case 4:Se=this.color_spaces.DEVICE_CMYK;break;case 3:Se=this.color_spaces.DEVICE_RGB}Ue={data:Ae,width:xe.width,height:xe.height,colorSpace:Se,bitsPerComponent:8,filter:Fe,index:Ee,alias:Ce}}return Ue}}(E$1.API);var Vt,Gt,Yt,Jt,Xt,Kt=function(){var Be,St,Ae;function Ee(_e){var Te,Se,xe,Fe,Ue,Re,He,$e,ze,Ve,ir,Ze,ar,cr;for(this.data=_e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Re=null;;){switch(Te=this.readUInt32(),ze=(function(){var Xe,or;for(or=[],Xe=0;Xe<4;++Xe)or.push(String.fromCharCode(this.data[this.pos++]));return or}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(Te);break;case"fcTL":Re&&this.animation.frames.push(Re),this.pos+=4,Re={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Ue=this.readUInt16(),Fe=this.readUInt16()||100,Re.delay=1e3*Ue/Fe,Re.disposeOp=this.data[this.pos++],Re.blendOp=this.data[this.pos++],Re.data=[];break;case"IDAT":case"fdAT":for(ze==="fdAT"&&(this.pos+=4,Te-=4),_e=(Re!=null?Re.data:void 0)||this.imgData,Ze=0;0<=Te?Ze<Te:Ze>Te;0<=Te?++Ze:--Ze)_e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(xe=this.palette.length/3,this.transparency.indexed=this.read(Te),this.transparency.indexed.length>xe)throw new Error("More transparent colors than palette size");if((Ve=xe-this.transparency.indexed.length)>0)for(ar=0;0<=Ve?ar<Ve:ar>Ve;0<=Ve?++ar:--ar)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(Te)[0];break;case 2:this.transparency.rgb=this.read(Te)}break;case"tEXt":He=(ir=this.read(Te)).indexOf(0),$e=String.fromCharCode.apply(String,ir.slice(0,He)),this.text[$e]=String.fromCharCode.apply(String,ir.slice(He+1));break;case"IEND":return Re&&this.animation.frames.push(Re),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(cr=this.colorType)===4||cr===6,Se=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*Se,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=Te}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Ee.prototype.read=function(_e){var Te,Se;for(Se=[],Te=0;0<=_e?Te<_e:Te>_e;0<=_e?++Te:--Te)Se.push(this.data[this.pos++]);return Se},Ee.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Ee.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Ee.prototype.decodePixels=function(_e){var Te=this.pixelBitlength/8,Se=new Uint8Array(this.width*this.height*Te),xe=0,Fe=this;if(_e==null&&(_e=this.imgData),_e.length===0)return new Uint8Array(0);function Ue(Re,He,$e,ze){var Ve,ir,Ze,ar,cr,Xe,or,Oe,Je,Ye,rr,vr,er,Ar,gr,mr,Ur,Lr,Mr,Qr,Dr,Xr=Math.ceil((Fe.width-Re)/$e),sn=Math.ceil((Fe.height-He)/ze),ur=Fe.width==Xr&&Fe.height==sn;for(Ar=Te*Xr,vr=ur?Se:new Uint8Array(Ar*sn),Xe=_e.length,er=0,ir=0;er<sn&&xe<Xe;){switch(_e[xe++]){case 0:for(ar=Ur=0;Ur<Ar;ar=Ur+=1)vr[ir++]=_e[xe++];break;case 1:for(ar=Lr=0;Lr<Ar;ar=Lr+=1)Ve=_e[xe++],cr=ar<Te?0:vr[ir-Te],vr[ir++]=(Ve+cr)%256;break;case 2:for(ar=Mr=0;Mr<Ar;ar=Mr+=1)Ve=_e[xe++],Ze=(ar-ar%Te)/Te,gr=er&&vr[(er-1)*Ar+Ze*Te+ar%Te],vr[ir++]=(gr+Ve)%256;break;case 3:for(ar=Qr=0;Qr<Ar;ar=Qr+=1)Ve=_e[xe++],Ze=(ar-ar%Te)/Te,cr=ar<Te?0:vr[ir-Te],gr=er&&vr[(er-1)*Ar+Ze*Te+ar%Te],vr[ir++]=(Ve+Math.floor((cr+gr)/2))%256;break;case 4:for(ar=Dr=0;Dr<Ar;ar=Dr+=1)Ve=_e[xe++],Ze=(ar-ar%Te)/Te,cr=ar<Te?0:vr[ir-Te],er===0?gr=mr=0:(gr=vr[(er-1)*Ar+Ze*Te+ar%Te],mr=Ze&&vr[(er-1)*Ar+(Ze-1)*Te+ar%Te]),or=cr+gr-mr,Oe=Math.abs(or-cr),Ye=Math.abs(or-gr),rr=Math.abs(or-mr),Je=Oe<=Ye&&Oe<=rr?cr:Ye<=rr?gr:mr,vr[ir++]=(Ve+Je)%256;break;default:throw new Error("Invalid filter algorithm: "+_e[xe-1])}if(!ur){var _r=((He+er*ze)*Fe.width+Re)*Te,Fr=er*Ar;for(ar=0;ar<Xr;ar+=1){for(var Pr=0;Pr<Te;Pr+=1)Se[_r++]=vr[Fr++];_r+=($e-1)*Te}}er++}}return _e=unzlibSync(_e),Fe.interlaceMethod==1?(Ue(0,0,8,8),Ue(4,0,8,8),Ue(0,4,4,8),Ue(2,0,4,4),Ue(0,2,2,4),Ue(1,0,2,2),Ue(0,1,1,2)):Ue(0,0,1,1),Se},Ee.prototype.decodePalette=function(){var _e,Te,Se,xe,Fe,Ue,Re,He,$e;for(Se=this.palette,Ue=this.transparency.indexed||[],Fe=new Uint8Array((Ue.length||0)+Se.length),xe=0,_e=0,Te=Re=0,He=Se.length;Re<He;Te=Re+=3)Fe[xe++]=Se[Te],Fe[xe++]=Se[Te+1],Fe[xe++]=Se[Te+2],Fe[xe++]=($e=Ue[_e++])!=null?$e:255;return Fe},Ee.prototype.copyToImageData=function(_e,Te){var Se,xe,Fe,Ue,Re,He,$e,ze,Ve,ir,Ze;if(xe=this.colors,Ve=null,Se=this.hasAlphaChannel,this.palette.length&&(Ve=(Ze=this._decodedPalette)!=null?Ze:this._decodedPalette=this.decodePalette(),xe=4,Se=!0),ze=(Fe=_e.data||_e).length,Re=Ve||Te,Ue=He=0,xe===1)for(;Ue<ze;)$e=Ve?4*Te[Ue/4]:He,ir=Re[$e++],Fe[Ue++]=ir,Fe[Ue++]=ir,Fe[Ue++]=ir,Fe[Ue++]=Se?Re[$e++]:255,He=$e;else for(;Ue<ze;)$e=Ve?4*Te[Ue/4]:He,Fe[Ue++]=Re[$e++],Fe[Ue++]=Re[$e++],Fe[Ue++]=Re[$e++],Fe[Ue++]=Se?Re[$e++]:255,He=$e},Ee.prototype.decode=function(){var _e;return _e=new Uint8Array(this.width*this.height*4),this.copyToImageData(_e,this.decodePixels()),_e};var Ce=function(){if(Object.prototype.toString.call(n$1)==="[object Window]"){try{St=n$1.document.createElement("canvas"),Ae=St.getContext("2d")}catch{return!1}return!0}return!1};return Ce(),Be=function(_e){var Te;if(Ce()===!0)return Ae.width=_e.width,Ae.height=_e.height,Ae.clearRect(0,0,_e.width,_e.height),Ae.putImageData(_e,0,0),(Te=new Image).src=St.toDataURL(),Te;throw new Error("This method requires a Browser with Canvas-capability.")},Ee.prototype.decodeFrames=function(_e){var Te,Se,xe,Fe,Ue,Re,He,$e;if(this.animation){for($e=[],Se=Ue=0,Re=(He=this.animation.frames).length;Ue<Re;Se=++Ue)Te=He[Se],xe=_e.createImageData(Te.width,Te.height),Fe=this.decodePixels(new Uint8Array(Te.data)),this.copyToImageData(xe,Fe),Te.imageData=xe,$e.push(Te.image=Be(xe));return $e}},Ee.prototype.renderFrame=function(_e,Te){var Se,xe,Fe;return Se=(xe=this.animation.frames)[Te],Fe=xe[Te-1],Te===0&&_e.clearRect(0,0,this.width,this.height),(Fe!=null?Fe.disposeOp:void 0)===1?_e.clearRect(Fe.xOffset,Fe.yOffset,Fe.width,Fe.height):(Fe!=null?Fe.disposeOp:void 0)===2&&_e.putImageData(Fe.imageData,Fe.xOffset,Fe.yOffset),Se.blendOp===0&&_e.clearRect(Se.xOffset,Se.yOffset,Se.width,Se.height),_e.drawImage(Se.image,Se.xOffset,Se.yOffset)},Ee.prototype.animate=function(_e){var Te,Se,xe,Fe,Ue,Re,He=this;return Se=0,Re=this.animation,Fe=Re.numFrames,xe=Re.frames,Ue=Re.numPlays,(Te=function(){var $e,ze;if($e=Se++%Fe,ze=xe[$e],He.renderFrame(_e,$e),Fe>1&&Se/Fe<Ue)return He.animation._timeout=setTimeout(Te,ze.delay)})()},Ee.prototype.stopAnimation=function(){var _e;return clearTimeout((_e=this.animation)!=null?_e._timeout:void 0)},Ee.prototype.render=function(_e){var Te,Se;return _e._png&&_e._png.stopAnimation(),_e._png=this,_e.width=this.width,_e.height=this.height,Te=_e.getContext("2d"),this.animation?(this.decodeFrames(Te),this.animate(Te)):(Se=Te.createImageData(this.width,this.height),this.copyToImageData(Se,this.decodePixels()),Te.putImageData(Se,0,0))},Ee}();/**
* @license
*
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*//**
* @license
* (c) Dean McNamee <dean@gmail.com>, 2013.
*
* https://github.com/deanm/omggif
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
* including animation and compression. It does not rely on any specific
* underlying system, so should run in the browser, Node, or Plask.
*/function Zt(Be){var St=0;if(Be[St++]!==71||Be[St++]!==73||Be[St++]!==70||Be[St++]!==56||(Be[St++]+1&253)!=56||Be[St++]!==97)throw new Error("Invalid GIF 87a/89a header.");var Ae=Be[St++]|Be[St++]<<8,Ee=Be[St++]|Be[St++]<<8,Ce=Be[St++],_e=Ce>>7,Te=1<<(7&Ce)+1;Be[St++],Be[St++];var Se=null,xe=null;_e&&(Se=St,xe=Te,St+=3*Te);var Fe=!0,Ue=[],Re=0,He=null,$e=0,ze=null;for(this.width=Ae,this.height=Ee;Fe&&St<Be.length;)switch(Be[St++]){case 33:switch(Be[St++]){case 255:if(Be[St]!==11||Be[St+1]==78&&Be[St+2]==69&&Be[St+3]==84&&Be[St+4]==83&&Be[St+5]==67&&Be[St+6]==65&&Be[St+7]==80&&Be[St+8]==69&&Be[St+9]==50&&Be[St+10]==46&&Be[St+11]==48&&Be[St+12]==3&&Be[St+13]==1&&Be[St+16]==0)St+=14,ze=Be[St++]|Be[St++]<<8,St++;else for(St+=12;;){if(!((er=Be[St++])>=0))throw Error("Invalid block size");if(er===0)break;St+=er}break;case 249:if(Be[St++]!==4||Be[St+4]!==0)throw new Error("Invalid graphics extension block.");var Ve=Be[St++];Re=Be[St++]|Be[St++]<<8,He=Be[St++],!(1&Ve)&&(He=null),$e=Ve>>2&7,St++;break;case 254:for(;;){if(!((er=Be[St++])>=0))throw Error("Invalid block size");if(er===0)break;St+=er}break;default:throw new Error("Unknown graphic control label: 0x"+Be[St-1].toString(16))}break;case 44:var ir=Be[St++]|Be[St++]<<8,Ze=Be[St++]|Be[St++]<<8,ar=Be[St++]|Be[St++]<<8,cr=Be[St++]|Be[St++]<<8,Xe=Be[St++],or=Xe>>6&1,Oe=1<<(7&Xe)+1,Je=Se,Ye=xe,rr=!1;Xe>>7&&(rr=!0,Je=St,Ye=Oe,St+=3*Oe);var vr=St;for(St++;;){var er;if(!((er=Be[St++])>=0))throw Error("Invalid block size");if(er===0)break;St+=er}Ue.push({x:ir,y:Ze,width:ar,height:cr,has_local_palette:rr,palette_offset:Je,palette_size:Ye,data_offset:vr,data_length:St-vr,transparent_index:He,interlaced:!!or,delay:Re,disposal:$e});break;case 59:Fe=!1;break;default:throw new Error("Unknown gif block: 0x"+Be[St-1].toString(16))}this.numFrames=function(){return Ue.length},this.loopCount=function(){return ze},this.frameInfo=function(Ar){if(Ar<0||Ar>=Ue.length)throw new Error("Frame index out of range.");return Ue[Ar]},this.decodeAndBlitFrameBGRA=function(Ar,gr){var mr=this.frameInfo(Ar),Ur=mr.width*mr.height,Lr=new Uint8Array(Ur);$t(Be,mr.data_offset,Lr,Ur);var Mr=mr.palette_offset,Qr=mr.transparent_index;Qr===null&&(Qr=256);var Dr=mr.width,Xr=Ae-Dr,sn=Dr,ur=4*(mr.y*Ae+mr.x),_r=4*((mr.y+mr.height)*Ae+mr.x),Fr=ur,Pr=4*Xr;mr.interlaced===!0&&(Pr+=4*Ae*7);for(var kr=8,Vr=0,nn=Lr.length;Vr<nn;++Vr){var Jr=Lr[Vr];if(sn===0&&(sn=Dr,(Fr+=Pr)>=_r&&(Pr=4*Xr+4*Ae*(kr-1),Fr=ur+(Dr+Xr)*(kr<<1),kr>>=1)),Jr===Qr)Fr+=4;else{var wn=Be[Mr+3*Jr],Cn=Be[Mr+3*Jr+1],On=Be[Mr+3*Jr+2];gr[Fr++]=On,gr[Fr++]=Cn,gr[Fr++]=wn,gr[Fr++]=255}--sn}},this.decodeAndBlitFrameRGBA=function(Ar,gr){var mr=this.frameInfo(Ar),Ur=mr.width*mr.height,Lr=new Uint8Array(Ur);$t(Be,mr.data_offset,Lr,Ur);var Mr=mr.palette_offset,Qr=mr.transparent_index;Qr===null&&(Qr=256);var Dr=mr.width,Xr=Ae-Dr,sn=Dr,ur=4*(mr.y*Ae+mr.x),_r=4*((mr.y+mr.height)*Ae+mr.x),Fr=ur,Pr=4*Xr;mr.interlaced===!0&&(Pr+=4*Ae*7);for(var kr=8,Vr=0,nn=Lr.length;Vr<nn;++Vr){var Jr=Lr[Vr];if(sn===0&&(sn=Dr,(Fr+=Pr)>=_r&&(Pr=4*Xr+4*Ae*(kr-1),Fr=ur+(Dr+Xr)*(kr<<1),kr>>=1)),Jr===Qr)Fr+=4;else{var wn=Be[Mr+3*Jr],Cn=Be[Mr+3*Jr+1],On=Be[Mr+3*Jr+2];gr[Fr++]=wn,gr[Fr++]=Cn,gr[Fr++]=On,gr[Fr++]=255}--sn}}}function $t(Be,St,Ae,Ee){for(var Ce=Be[St++],_e=1<<Ce,Te=_e+1,Se=Te+1,xe=Ce+1,Fe=(1<<xe)-1,Ue=0,Re=0,He=0,$e=Be[St++],ze=new Int32Array(4096),Ve=null;;){for(;Ue<16&&$e!==0;)Re|=Be[St++]<<Ue,Ue+=8,$e===1?$e=Be[St++]:--$e;if(Ue<xe)break;var ir=Re&Fe;if(Re>>=xe,Ue-=xe,ir!==_e){if(ir===Te)break;for(var Ze=ir<Se?ir:Ve,ar=0,cr=Ze;cr>_e;)cr=ze[cr]>>8,++ar;var Xe=cr;if(He+ar+(Ze!==ir?1:0)>Ee)return void a$2.log("Warning, gif stream longer than expected.");Ae[He++]=Xe;var or=He+=ar;for(Ze!==ir&&(Ae[He++]=Xe),cr=Ze;ar--;)cr=ze[cr],Ae[--or]=255&cr,cr>>=8;Ve!==null&&Se<4096&&(ze[Se++]=Ve<<8|Xe,Se>=Fe+1&&xe<12&&(++xe,Fe=Fe<<1|1)),Ve=ir}else Se=Te+1,Fe=(1<<(xe=Ce+1))-1,Ve=null}return He!==Ee&&a$2.log("Warning, gif stream shorter than expected."),Ae}/**
* @license
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function Qt(Be){var St,Ae,Ee,Ce,_e,Te=Math.floor,Se=new Array(64),xe=new Array(64),Fe=new Array(64),Ue=new Array(64),Re=new Array(65535),He=new Array(65535),$e=new Array(64),ze=new Array(64),Ve=[],ir=0,Ze=7,ar=new Array(64),cr=new Array(64),Xe=new Array(64),or=new Array(256),Oe=new Array(2048),Je=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Ye=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],rr=[0,1,2,3,4,5,6,7,8,9,10,11],vr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],er=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Ar=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],gr=[0,1,2,3,4,5,6,7,8,9,10,11],mr=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Ur=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Lr(ur,_r){for(var Fr=0,Pr=0,kr=new Array,Vr=1;Vr<=16;Vr++){for(var nn=1;nn<=ur[Vr];nn++)kr[_r[Pr]]=[],kr[_r[Pr]][0]=Fr,kr[_r[Pr]][1]=Vr,Pr++,Fr++;Fr*=2}return kr}function Mr(ur){for(var _r=ur[0],Fr=ur[1]-1;Fr>=0;)_r&1<<Fr&&(ir|=1<<Ze),Fr--,--Ze<0&&(ir==255?(Qr(255),Qr(0)):Qr(ir),Ze=7,ir=0)}function Qr(ur){Ve.push(ur)}function Dr(ur){Qr(ur>>8&255),Qr(255&ur)}function Xr(ur,_r,Fr,Pr,kr){for(var Vr,nn=kr[0],Jr=kr[240],wn=function(Tn,Nn){var Rn,$n,zn,Gn,ii,ui,mi,yi,Ai,hi,Hn=0;for(Ai=0;Ai<8;++Ai){Rn=Tn[Hn],$n=Tn[Hn+1],zn=Tn[Hn+2],Gn=Tn[Hn+3],ii=Tn[Hn+4],ui=Tn[Hn+5],mi=Tn[Hn+6];var Oi=Rn+(yi=Tn[Hn+7]),wi=Rn-yi,br=$n+mi,Ke=$n-mi,je=zn+ui,sr=zn-ui,dr=Gn+ii,Or=Gn-ii,qr=Oi+dr,gn=Oi-dr,mn=br+je,Ln=br-je;Tn[Hn]=qr+mn,Tn[Hn+4]=qr-mn;var We=.707106781*(Ln+gn);Tn[Hn+2]=gn+We,Tn[Hn+6]=gn-We;var ke=.382683433*((qr=Or+sr)-(Ln=Ke+wi)),Wr=.5411961*qr+ke,Bn=1.306562965*Ln+ke,Jn=.707106781*(mn=sr+Ke),pi=wi+Jn,Mn=wi-Jn;Tn[Hn+5]=Mn+Wr,Tn[Hn+3]=Mn-Wr,Tn[Hn+1]=pi+Bn,Tn[Hn+7]=pi-Bn,Hn+=8}for(Hn=0,Ai=0;Ai<8;++Ai){Rn=Tn[Hn],$n=Tn[Hn+8],zn=Tn[Hn+16],Gn=Tn[Hn+24],ii=Tn[Hn+32],ui=Tn[Hn+40],mi=Tn[Hn+48];var Fi=Rn+(yi=Tn[Hn+56]),Ui=Rn-yi,Ki=$n+mi,Gi=$n-mi,Ii=zn+ui,Yi=zn-ui,to=Gn+ii,PA=Gn-ii,pA=Fi+to,sA=Fi-to,rA=Ki+Ii,dA=Ki-Ii;Tn[Hn]=pA+rA,Tn[Hn+32]=pA-rA;var vA=.707106781*(dA+sA);Tn[Hn+16]=sA+vA,Tn[Hn+48]=sA-vA;var OA=.382683433*((pA=PA+Yi)-(dA=Gi+Ui)),WA=.5411961*pA+OA,lo=1.306562965*dA+OA,ei=.707106781*(rA=Yi+Gi),Kr=Ui+ei,Un=Ui-ei;Tn[Hn+40]=Un+WA,Tn[Hn+24]=Un-WA,Tn[Hn+8]=Kr+lo,Tn[Hn+56]=Kr-lo,Hn++}for(Ai=0;Ai<64;++Ai)hi=Tn[Ai]*Nn[Ai],$e[Ai]=hi>0?hi+.5|0:hi-.5|0;return $e}(ur,_r),Cn=0;Cn<64;++Cn)ze[Je[Cn]]=wn[Cn];var On=ze[0]-Fr;Fr=ze[0],On==0?Mr(Pr[0]):(Mr(Pr[He[Vr=32767+On]]),Mr(Re[Vr]));for(var In=63;In>0&&ze[In]==0;)In--;if(In==0)return Mr(nn),Fr;for(var Xn,fn=1;fn<=In;){for(var Sr=fn;ze[fn]==0&&fn<=In;)++fn;var ti=fn-Sr;if(ti>=16){Xn=ti>>4;for(var Yn=1;Yn<=Xn;++Yn)Mr(Jr);ti&=15}Vr=32767+ze[fn],Mr(kr[(ti<<4)+He[Vr]]),Mr(Re[Vr]),fn++}return In!=63&&Mr(nn),Fr}function sn(ur){ur=Math.min(Math.max(ur,1),100),_e!=ur&&(function(_r){for(var Fr=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Pr=0;Pr<64;Pr++){var kr=Te((Fr[Pr]*_r+50)/100);kr=Math.min(Math.max(kr,1),255),Se[Je[Pr]]=kr}for(var Vr=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],nn=0;nn<64;nn++){var Jr=Te((Vr[nn]*_r+50)/100);Jr=Math.min(Math.max(Jr,1),255),xe[Je[nn]]=Jr}for(var wn=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Cn=0,On=0;On<8;On++)for(var In=0;In<8;In++)Fe[Cn]=1/(Se[Je[Cn]]*wn[On]*wn[In]*8),Ue[Cn]=1/(xe[Je[Cn]]*wn[On]*wn[In]*8),Cn++}(ur<50?Math.floor(5e3/ur):Math.floor(200-2*ur)),_e=ur)}this.encode=function(ur,_r){_r&&sn(_r),Ve=new Array,ir=0,Ze=7,Dr(65496),Dr(65504),Dr(16),Qr(74),Qr(70),Qr(73),Qr(70),Qr(0),Qr(1),Qr(1),Qr(0),Dr(1),Dr(1),Qr(0),Qr(0),function(){Dr(65499),Dr(132),Qr(0);for(var $n=0;$n<64;$n++)Qr(Se[$n]);Qr(1);for(var zn=0;zn<64;zn++)Qr(xe[zn])}(),function($n,zn){Dr(65472),Dr(17),Qr(8),Dr(zn),Dr($n),Qr(3),Qr(1),Qr(17),Qr(0),Qr(2),Qr(17),Qr(1),Qr(3),Qr(17),Qr(1)}(ur.width,ur.height),function(){Dr(65476),Dr(418),Qr(0);for(var $n=0;$n<16;$n++)Qr(Ye[$n+1]);for(var zn=0;zn<=11;zn++)Qr(rr[zn]);Qr(16);for(var Gn=0;Gn<16;Gn++)Qr(vr[Gn+1]);for(var ii=0;ii<=161;ii++)Qr(er[ii]);Qr(1);for(var ui=0;ui<16;ui++)Qr(Ar[ui+1]);for(var mi=0;mi<=11;mi++)Qr(gr[mi]);Qr(17);for(var yi=0;yi<16;yi++)Qr(mr[yi+1]);for(var Ai=0;Ai<=161;Ai++)Qr(Ur[Ai])}(),Dr(65498),Dr(12),Qr(3),Qr(1),Qr(0),Qr(2),Qr(17),Qr(3),Qr(17),Qr(0),Qr(63),Qr(0);var Fr=0,Pr=0,kr=0;ir=0,Ze=7,this.encode.displayName="_encode_";for(var Vr,nn,Jr,wn,Cn,On,In,Xn,fn,Sr=ur.data,ti=ur.width,Yn=ur.height,Tn=4*ti,Nn=0;Nn<Yn;){for(Vr=0;Vr<Tn;){for(Cn=Tn*Nn+Vr,In=-1,Xn=0,fn=0;fn<64;fn++)On=Cn+(Xn=fn>>3)*Tn+(In=4*(7&fn)),Nn+Xn>=Yn&&(On-=Tn*(Nn+1+Xn-Yn)),Vr+In>=Tn&&(On-=Vr+In-Tn+4),nn=Sr[On++],Jr=Sr[On++],wn=Sr[On++],ar[fn]=(Oe[nn]+Oe[Jr+256>>0]+Oe[wn+512>>0]>>16)-128,cr[fn]=(Oe[nn+768>>0]+Oe[Jr+1024>>0]+Oe[wn+1280>>0]>>16)-128,Xe[fn]=(Oe[nn+1280>>0]+Oe[Jr+1536>>0]+Oe[wn+1792>>0]>>16)-128;Fr=Xr(ar,Fe,Fr,St,Ee),Pr=Xr(cr,Ue,Pr,Ae,Ce),kr=Xr(Xe,Ue,kr,Ae,Ce),Vr+=32}Nn+=8}if(Ze>=0){var Rn=[];Rn[1]=Ze+1,Rn[0]=(1<<Ze+1)-1,Mr(Rn)}return Dr(65497),new Uint8Array(Ve)},Be=Be||50,function(){for(var ur=String.fromCharCode,_r=0;_r<256;_r++)or[_r]=ur(_r)}(),St=Lr(Ye,rr),Ae=Lr(Ar,gr),Ee=Lr(vr,er),Ce=Lr(mr,Ur),function(){for(var ur=1,_r=2,Fr=1;Fr<=15;Fr++){for(var Pr=ur;Pr<_r;Pr++)He[32767+Pr]=Fr,Re[32767+Pr]=[],Re[32767+Pr][1]=Fr,Re[32767+Pr][0]=Pr;for(var kr=-(_r-1);kr<=-ur;kr++)He[32767+kr]=Fr,Re[32767+kr]=[],Re[32767+kr][1]=Fr,Re[32767+kr][0]=_r-1+kr;ur<<=1,_r<<=1}}(),function(){for(var ur=0;ur<256;ur++)Oe[ur]=19595*ur,Oe[ur+256>>0]=38470*ur,Oe[ur+512>>0]=7471*ur+32768,Oe[ur+768>>0]=-11059*ur,Oe[ur+1024>>0]=-21709*ur,Oe[ur+1280>>0]=32768*ur+8421375,Oe[ur+1536>>0]=-27439*ur,Oe[ur+1792>>0]=-5329*ur}(),sn(Be)}/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function te(Be,St){if(this.pos=0,this.buffer=Be,this.datav=new DataView(Be.buffer),this.is_with_alpha=!!St,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function ee(Be){function St(Ye){if(!Ye)throw Error("assert :P")}function Ae(Ye,rr,vr){for(var er=0;4>er;er++)if(Ye[rr+er]!=vr.charCodeAt(er))return!0;return!1}function Ee(Ye,rr,vr,er,Ar){for(var gr=0;gr<Ar;gr++)Ye[rr+gr]=vr[er+gr]}function Ce(Ye,rr,vr,er){for(var Ar=0;Ar<er;Ar++)Ye[rr+Ar]=vr}function _e(Ye){return new Int32Array(Ye)}function Te(Ye,rr){for(var vr=[],er=0;er<Ye;er++)vr.push(new rr);return vr}function Se(Ye,rr){var vr=[];return function er(Ar,gr,mr){for(var Ur=mr[gr],Lr=0;Lr<Ur&&(Ar.push(mr.length>gr+1?[]:new rr),!(mr.length<gr+1));Lr++)er(Ar[Lr],gr+1,mr)}(vr,0,Ye),vr}var xe=function(){var Ye=this;function rr(Ie,Qe){for(var Ge=1<<Qe-1>>>0;Ie&Ge;)Ge>>>=1;return Ge?(Ie&Ge-1)+Ge:Ie}function vr(Ie,Qe,Ge,nr,pr){St(!(nr%Ge));do Ie[Qe+(nr-=Ge)]=pr;while(0<nr)}function er(Ie,Qe,Ge,nr,pr){if(St(2328>=pr),512>=pr)var yr=_e(512);else if((yr=_e(pr))==null)return 0;return function(wr,Er,Tr,xr,Gr,An){var an,Zr,_n=Er,pn=1<<Tr,zr=_e(16),Yr=_e(16);for(St(Gr!=0),St(xr!=null),St(wr!=null),St(0<Tr),Zr=0;Zr<Gr;++Zr){if(15<xr[Zr])return 0;++zr[xr[Zr]]}if(zr[0]==Gr)return 0;for(Yr[1]=0,an=1;15>an;++an){if(zr[an]>1<<an)return 0;Yr[an+1]=Yr[an]+zr[an]}for(Zr=0;Zr<Gr;++Zr)an=xr[Zr],0<xr[Zr]&&(An[Yr[an]++]=Zr);if(Yr[15]==1)return(xr=new Ar).g=0,xr.value=An[0],vr(wr,_n,1,pn,xr),pn;var bn,Pn=-1,En=pn-1,Zn=0,jn=1,gi=1,Wn=1<<Tr;for(Zr=0,an=1,Gr=2;an<=Tr;++an,Gr<<=1){if(jn+=gi<<=1,0>(gi-=zr[an]))return 0;for(;0<zr[an];--zr[an])(xr=new Ar).g=an,xr.value=An[Zr++],vr(wr,_n+Zn,Gr,Wn,xr),Zn=rr(Zn,an)}for(an=Tr+1,Gr=2;15>=an;++an,Gr<<=1){if(jn+=gi<<=1,0>(gi-=zr[an]))return 0;for(;0<zr[an];--zr[an]){if(xr=new Ar,(Zn&En)!=Pn){for(_n+=Wn,bn=1<<(Pn=an)-Tr;15>Pn&&!(0>=(bn-=zr[Pn]));)++Pn,bn<<=1;pn+=Wn=1<<(bn=Pn-Tr),wr[Er+(Pn=Zn&En)].g=bn+Tr,wr[Er+Pn].value=_n-Er-Pn}xr.g=an-Tr,xr.value=An[Zr++],vr(wr,_n+(Zn>>Tr),Gr,Wn,xr),Zn=rr(Zn,an)}}return jn!=2*Yr[15]-1?0:pn}(Ie,Qe,Ge,nr,pr,yr)}function Ar(){this.value=this.g=0}function gr(){this.value=this.g=0}function mr(){this.G=Te(5,Ar),this.H=_e(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=Te(iA,gr)}function Ur(Ie,Qe,Ge,nr){St(Ie!=null),St(Qe!=null),St(2147483648>nr),Ie.Ca=254,Ie.I=0,Ie.b=-8,Ie.Ka=0,Ie.oa=Qe,Ie.pa=Ge,Ie.Jd=Qe,Ie.Yc=Ge+nr,Ie.Zc=4<=nr?Ge+nr-4+1:Ge,Vr(Ie)}function Lr(Ie,Qe){for(var Ge=0;0<Qe--;)Ge|=Jr(Ie,128)<<Qe;return Ge}function Mr(Ie,Qe){var Ge=Lr(Ie,Qe);return nn(Ie)?-Ge:Ge}function Qr(Ie,Qe,Ge,nr){var pr,yr=0;for(St(Ie!=null),St(Qe!=null),St(4294967288>nr),Ie.Sb=nr,Ie.Ra=0,Ie.u=0,Ie.h=0,4<nr&&(nr=4),pr=0;pr<nr;++pr)yr+=Qe[Ge+pr]<<8*pr;Ie.Ra=yr,Ie.bb=nr,Ie.oa=Qe,Ie.pa=Ge}function Dr(Ie){for(;8<=Ie.u&&Ie.bb<Ie.Sb;)Ie.Ra>>>=8,Ie.Ra+=Ie.oa[Ie.pa+Ie.bb]<<NA-8>>>0,++Ie.bb,Ie.u-=8;Fr(Ie)&&(Ie.h=1,Ie.u=0)}function Xr(Ie,Qe){if(St(0<=Qe),!Ie.h&&Qe<=wo){var Ge=_r(Ie)&Ko[Qe];return Ie.u+=Qe,Dr(Ie),Ge}return Ie.h=1,Ie.u=0}function sn(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function ur(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function _r(Ie){return Ie.Ra>>>(Ie.u&NA-1)>>>0}function Fr(Ie){return St(Ie.bb<=Ie.Sb),Ie.h||Ie.bb==Ie.Sb&&Ie.u>NA}function Pr(Ie,Qe){Ie.u=Qe,Ie.h=Fr(Ie)}function kr(Ie){Ie.u>=MA&&(St(Ie.u>=MA),Dr(Ie))}function Vr(Ie){St(Ie!=null&&Ie.oa!=null),Ie.pa<Ie.Zc?(Ie.I=(Ie.oa[Ie.pa++]|Ie.I<<8)>>>0,Ie.b+=8):(St(Ie!=null&&Ie.oa!=null),Ie.pa<Ie.Yc?(Ie.b+=8,Ie.I=Ie.oa[Ie.pa++]|Ie.I<<8):Ie.Ka?Ie.b=0:(Ie.I<<=8,Ie.b+=8,Ie.Ka=1))}function nn(Ie){return Lr(Ie,1)}function Jr(Ie,Qe){var Ge=Ie.Ca;0>Ie.b&&Vr(Ie);var nr=Ie.b,pr=Ge*Qe>>>8,yr=(Ie.I>>>nr>pr)+0;for(yr?(Ge-=pr,Ie.I-=pr+1<<nr>>>0):Ge=pr+1,nr=Ge,pr=0;256<=nr;)pr+=8,nr>>=8;return nr=7^pr+CA[nr],Ie.b-=nr,Ie.Ca=(Ge<<nr)-1,yr}function wn(Ie,Qe,Ge){Ie[Qe+0]=Ge>>24&255,Ie[Qe+1]=Ge>>16&255,Ie[Qe+2]=Ge>>8&255,Ie[Qe+3]=Ge>>0&255}function Cn(Ie,Qe){return Ie[Qe+0]<<0|Ie[Qe+1]<<8}function On(Ie,Qe){return Cn(Ie,Qe)|Ie[Qe+2]<<16}function In(Ie,Qe){return Cn(Ie,Qe)|Cn(Ie,Qe+2)<<16}function Xn(Ie,Qe){var Ge=1<<Qe;return St(Ie!=null),St(0<Qe),Ie.X=_e(Ge),Ie.X==null?0:(Ie.Mb=32-Qe,Ie.Xa=Qe,1)}function fn(Ie,Qe){St(Ie!=null),St(Qe!=null),St(Ie.Xa==Qe.Xa),Ee(Qe.X,0,Ie.X,0,1<<Qe.Xa)}function Sr(){this.X=[],this.Xa=this.Mb=0}function ti(Ie,Qe,Ge,nr){St(Ge!=null),St(nr!=null);var pr=Ge[0],yr=nr[0];return pr==0&&(pr=(Ie*yr+Qe/2)/Qe),yr==0&&(yr=(Qe*pr+Ie/2)/Ie),0>=pr||0>=yr?0:(Ge[0]=pr,nr[0]=yr,1)}function Yn(Ie,Qe){return Ie+(1<<Qe)-1>>>Qe}function Tn(Ie,Qe){return((4278255360&Ie)+(4278255360&Qe)>>>0&4278255360)+((16711935&Ie)+(16711935&Qe)>>>0&16711935)>>>0}function Nn(Ie,Qe){Ye[Qe]=function(Ge,nr,pr,yr,wr,Er,Tr){var xr;for(xr=0;xr<wr;++xr){var Gr=Ye[Ie](Er[Tr+xr-1],pr,yr+xr);Er[Tr+xr]=Tn(Ge[nr+xr],Gr)}}}function Rn(){this.ud=this.hd=this.jd=0}function $n(Ie,Qe){return((4278124286&(Ie^Qe))>>>1)+(Ie&Qe)>>>0}function zn(Ie){return 0<=Ie&&256>Ie?Ie:0>Ie?0:255<Ie?255:void 0}function Gn(Ie,Qe){return zn(Ie+(Ie-Qe+.5>>1))}function ii(Ie,Qe,Ge){return Math.abs(Qe-Ge)-Math.abs(Ie-Ge)}function ui(Ie,Qe,Ge,nr,pr,yr,wr){for(nr=yr[wr-1],Ge=0;Ge<pr;++Ge)yr[wr+Ge]=nr=Tn(Ie[Qe+Ge],nr)}function mi(Ie,Qe,Ge,nr,pr){var yr;for(yr=0;yr<Ge;++yr){var wr=Ie[Qe+yr],Er=wr>>8&255,Tr=16711935&(Tr=(Tr=16711935&wr)+((Er<<16)+Er));nr[pr+yr]=(4278255360&wr)+Tr>>>0}}function yi(Ie,Qe){Qe.jd=Ie>>0&255,Qe.hd=Ie>>8&255,Qe.ud=Ie>>16&255}function Ai(Ie,Qe,Ge,nr,pr,yr){var wr;for(wr=0;wr<nr;++wr){var Er=Qe[Ge+wr],Tr=Er>>>8,xr=Er,Gr=255&(Gr=(Gr=Er>>>16)+((Ie.jd<<24>>24)*(Tr<<24>>24)>>>5));xr=255&(xr=(xr=xr+((Ie.hd<<24>>24)*(Tr<<24>>24)>>>5))+((Ie.ud<<24>>24)*(Gr<<24>>24)>>>5)),pr[yr+wr]=(4278255360&Er)+(Gr<<16)+xr}}function hi(Ie,Qe,Ge,nr,pr){Ye[Qe]=function(yr,wr,Er,Tr,xr,Gr,An,an,Zr){for(Tr=An;Tr<an;++Tr)for(An=0;An<Zr;++An)xr[Gr++]=pr(Er[nr(yr[wr++])])},Ye[Ie]=function(yr,wr,Er,Tr,xr,Gr,An){var an=8>>yr.b,Zr=yr.Ea,_n=yr.K[0],pn=yr.w;if(8>an)for(yr=(1<<yr.b)-1,pn=(1<<an)-1;wr<Er;++wr){var zr,Yr=0;for(zr=0;zr<Zr;++zr)zr&yr||(Yr=nr(Tr[xr++])),Gr[An++]=pr(_n[Yr&pn]),Yr>>=an}else Ye["VP8LMapColor"+Ge](Tr,xr,_n,pn,Gr,An,wr,Er,Zr)}}function Hn(Ie,Qe,Ge,nr,pr){for(Ge=Qe+Ge;Qe<Ge;){var yr=Ie[Qe++];nr[pr++]=yr>>16&255,nr[pr++]=yr>>8&255,nr[pr++]=yr>>0&255}}function Oi(Ie,Qe,Ge,nr,pr){for(Ge=Qe+Ge;Qe<Ge;){var yr=Ie[Qe++];nr[pr++]=yr>>16&255,nr[pr++]=yr>>8&255,nr[pr++]=yr>>0&255,nr[pr++]=yr>>24&255}}function wi(Ie,Qe,Ge,nr,pr){for(Ge=Qe+Ge;Qe<Ge;){var yr=(wr=Ie[Qe++])>>16&240|wr>>12&15,wr=wr>>0&240|wr>>28&15;nr[pr++]=yr,nr[pr++]=wr}}function br(Ie,Qe,Ge,nr,pr){for(Ge=Qe+Ge;Qe<Ge;){var yr=(wr=Ie[Qe++])>>16&248|wr>>13&7,wr=wr>>5&224|wr>>3&31;nr[pr++]=yr,nr[pr++]=wr}}function Ke(Ie,Qe,Ge,nr,pr){for(Ge=Qe+Ge;Qe<Ge;){var yr=Ie[Qe++];nr[pr++]=yr>>0&255,nr[pr++]=yr>>8&255,nr[pr++]=yr>>16&255}}function je(Ie,Qe,Ge,nr,pr,yr){if(yr==0)for(Ge=Qe+Ge;Qe<Ge;)wn(nr,((yr=Ie[Qe++])[0]>>24|yr[1]>>8&65280|yr[2]<<8&16711680|yr[3]<<24)>>>0),pr+=32;else Ee(nr,pr,Ie,Qe,Ge)}function sr(Ie,Qe){Ye[Qe][0]=Ye[Ie+"0"],Ye[Qe][1]=Ye[Ie+"1"],Ye[Qe][2]=Ye[Ie+"2"],Ye[Qe][3]=Ye[Ie+"3"],Ye[Qe][4]=Ye[Ie+"4"],Ye[Qe][5]=Ye[Ie+"5"],Ye[Qe][6]=Ye[Ie+"6"],Ye[Qe][7]=Ye[Ie+"7"],Ye[Qe][8]=Ye[Ie+"8"],Ye[Qe][9]=Ye[Ie+"9"],Ye[Qe][10]=Ye[Ie+"10"],Ye[Qe][11]=Ye[Ie+"11"],Ye[Qe][12]=Ye[Ie+"12"],Ye[Qe][13]=Ye[Ie+"13"],Ye[Qe][14]=Ye[Ie+"0"],Ye[Qe][15]=Ye[Ie+"0"]}function dr(Ie){return Ie==ls||Ie==us||Ie==za||Ie==cs}function Or(){this.eb=[],this.size=this.A=this.fb=0}function qr(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function gn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Or,this.f.kb=new qr,this.sd=null}function mn(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Ln(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function We(Ie){return alert("todo:WebPSamplerProcessPlane"),Ie.T}function ke(Ie,Qe){var Ge=Ie.T,nr=Qe.ba.f.RGBA,pr=nr.eb,yr=nr.fb+Ie.ka*nr.A,wr=ao[Qe.ba.S],Er=Ie.y,Tr=Ie.O,xr=Ie.f,Gr=Ie.N,An=Ie.ea,an=Ie.W,Zr=Qe.cc,_n=Qe.dc,pn=Qe.Mc,zr=Qe.Nc,Yr=Ie.ka,bn=Ie.ka+Ie.T,Pn=Ie.U,En=Pn+1>>1;for(Yr==0?wr(Er,Tr,null,null,xr,Gr,An,an,xr,Gr,An,an,pr,yr,null,null,Pn):(wr(Qe.ec,Qe.fc,Er,Tr,Zr,_n,pn,zr,xr,Gr,An,an,pr,yr-nr.A,pr,yr,Pn),++Ge);Yr+2<bn;Yr+=2)Zr=xr,_n=Gr,pn=An,zr=an,Gr+=Ie.Rc,an+=Ie.Rc,yr+=2*nr.A,wr(Er,(Tr+=2*Ie.fa)-Ie.fa,Er,Tr,Zr,_n,pn,zr,xr,Gr,An,an,pr,yr-nr.A,pr,yr,Pn);return Tr+=Ie.fa,Ie.j+bn<Ie.o?(Ee(Qe.ec,Qe.fc,Er,Tr,Pn),Ee(Qe.cc,Qe.dc,xr,Gr,En),Ee(Qe.Mc,Qe.Nc,An,an,En),Ge--):1&bn||wr(Er,Tr,null,null,xr,Gr,An,an,xr,Gr,An,an,pr,yr+nr.A,null,null,Pn),Ge}function Wr(Ie,Qe,Ge){var nr=Ie.F,pr=[Ie.J];if(nr!=null){var yr=Ie.U,wr=Qe.ba.S,Er=wr==qa||wr==za;Qe=Qe.ba.f.RGBA;var Tr=[0],xr=Ie.ka;Tr[0]=Ie.T,Ie.Kb&&(xr==0?--Tr[0]:(--xr,pr[0]-=Ie.width),Ie.j+Ie.ka+Ie.T==Ie.o&&(Tr[0]=Ie.o-Ie.j-xr));var Gr=Qe.eb;xr=Qe.fb+xr*Qe.A,Ie=qn(nr,pr[0],Ie.width,yr,Tr,Gr,xr+(Er?0:3),Qe.A),St(Ge==Tr),Ie&&dr(wr)&&ni(Gr,xr,Er,yr,Tr,Qe.A)}return 0}function Bn(Ie){var Qe=Ie.ma,Ge=Qe.ba.S,nr=11>Ge,pr=Ge==ja||Ge==Ga||Ge==qa||Ge==ss||Ge==12||dr(Ge);if(Qe.memory=null,Qe.Ib=null,Qe.Jb=null,Qe.Nd=null,!ca(Qe.Oa,Ie,pr?11:12))return 0;if(pr&&dr(Ge)&&xn(),Ie.da)alert("todo:use_scaling");else{if(nr){if(Qe.Ib=We,Ie.Kb){if(Ge=Ie.U+1>>1,Qe.memory=_e(Ie.U+2*Ge),Qe.memory==null)return 0;Qe.ec=Qe.memory,Qe.fc=0,Qe.cc=Qe.ec,Qe.dc=Qe.fc+Ie.U,Qe.Mc=Qe.cc,Qe.Nc=Qe.dc+Ge,Qe.Ib=ke,xn()}}else alert("todo:EmitYUV");pr&&(Qe.Jb=Wr,nr&&rn())}if(nr&&!Ls){for(Ie=0;256>Ie;++Ie)vl[Ie]=89858*(Ie-128)+Xa>>Wa,wl[Ie]=-22014*(Ie-128)+Xa,yl[Ie]=-45773*(Ie-128),ml[Ie]=113618*(Ie-128)+Xa>>Wa;for(Ie=Da;Ie<ps;++Ie)Qe=76283*(Ie-16)+Xa>>Wa,Bl[Ie-Da]=HA(Qe,255),bl[Ie-Da]=HA(Qe+8>>4,15);Ls=1}return 1}function Jn(Ie){var Qe=Ie.ma,Ge=Ie.U,nr=Ie.T;return St(!(1&Ie.ka)),0>=Ge||0>=nr?0:(Ge=Qe.Ib(Ie,Qe),Qe.Jb!=null&&Qe.Jb(Ie,Qe,Ge),Qe.Dc+=Ge,1)}function pi(Ie){Ie.ma.memory=null}function Mn(Ie,Qe,Ge,nr){return Xr(Ie,8)!=47?0:(Qe[0]=Xr(Ie,14)+1,Ge[0]=Xr(Ie,14)+1,nr[0]=Xr(Ie,1),Xr(Ie,3)!=0?0:!Ie.h)}function Fi(Ie,Qe){if(4>Ie)return Ie+1;var Ge=Ie-2>>1;return(2+(1&Ie)<<Ge)+Xr(Qe,Ge)+1}function Ui(Ie,Qe){return 120<Qe?Qe-120:1<=(Ge=((Ge=rl[Qe-1])>>4)*Ie+(8-(15&Ge)))?Ge:1;var Ge}function Ki(Ie,Qe,Ge){var nr=_r(Ge),pr=Ie[Qe+=255&nr].g-8;return 0<pr&&(Pr(Ge,Ge.u+8),nr=_r(Ge),Qe+=Ie[Qe].value,Qe+=nr&(1<<pr)-1),Pr(Ge,Ge.u+Ie[Qe].g),Ie[Qe].value}function Gi(Ie,Qe,Ge){return Ge.g+=Ie.g,Ge.value+=Ie.value<<Qe>>>0,St(8>=Ge.g),Ie.g}function Ii(Ie,Qe,Ge){var nr=Ie.xc;return St((Qe=nr==0?0:Ie.vc[Ie.md*(Ge>>nr)+(Qe>>nr)])<Ie.Wb),Ie.Ya[Qe]}function Yi(Ie,Qe,Ge,nr){var pr=Ie.ab,yr=Ie.c*Qe,wr=Ie.C;Qe=wr+Qe;var Er=Ge,Tr=nr;for(nr=Ie.Ta,Ge=Ie.Ua;0<pr--;){var xr=Ie.gc[pr],Gr=wr,An=Qe,an=Er,Zr=Tr,_n=(Tr=nr,Er=Ge,xr.Ea);switch(St(Gr<An),St(An<=xr.nc),xr.hc){case 2:Sa(an,Zr,(An-Gr)*_n,Tr,Er);break;case 0:var pn=Gr,zr=An,Yr=Tr,bn=Er,Pn=(Wn=xr).Ea;pn==0&&(Ta(an,Zr,null,null,1,Yr,bn),ui(an,Zr+1,0,0,Pn-1,Yr,bn+1),Zr+=Pn,bn+=Pn,++pn);for(var En=1<<Wn.b,Zn=En-1,jn=Yn(Pn,Wn.b),gi=Wn.K,Wn=Wn.w+(pn>>Wn.b)*jn;pn<zr;){var Ri=gi,Hi=Wn,$i=1;for(jo(an,Zr,Yr,bn-Pn,1,Yr,bn);$i<Pn;){var Li=($i&~Zn)+En;Li>Pn&&(Li=Pn),(0,oo[Ri[Hi++]>>8&15])(an,Zr+ +$i,Yr,bn+$i-Pn,Li-$i,Yr,bn+$i),$i=Li}Zr+=Pn,bn+=Pn,++pn&Zn||(Wn+=jn)}An!=xr.nc&&Ee(Tr,Er-_n,Tr,Er+(An-Gr-1)*_n,_n);break;case 1:for(_n=an,zr=Zr,Pn=(an=xr.Ea)-(bn=an&~(Yr=(Zr=1<<xr.b)-1)),pn=Yn(an,xr.b),En=xr.K,xr=xr.w+(Gr>>xr.b)*pn;Gr<An;){for(Zn=En,jn=xr,gi=new Rn,Wn=zr+bn,Ri=zr+an;zr<Wn;)yi(Zn[jn++],gi),Bo(gi,_n,zr,Zr,Tr,Er),zr+=Zr,Er+=Zr;zr<Ri&&(yi(Zn[jn++],gi),Bo(gi,_n,zr,Pn,Tr,Er),zr+=Pn,Er+=Pn),++Gr&Yr||(xr+=pn)}break;case 3:if(an==Tr&&Zr==Er&&0<xr.b){for(zr=Tr,an=_n=Er+(An-Gr)*_n-(bn=(An-Gr)*Yn(xr.Ea,xr.b)),Zr=Tr,Yr=Er,pn=[],bn=(Pn=bn)-1;0<=bn;--bn)pn[bn]=Zr[Yr+bn];for(bn=Pn-1;0<=bn;--bn)zr[an+bn]=pn[bn];Si(xr,Gr,An,Tr,_n,Tr,Er)}else Si(xr,Gr,An,an,Zr,Tr,Er)}Er=nr,Tr=Ge}Tr!=Ge&&Ee(nr,Ge,Er,Tr,yr)}function to(Ie,Qe){var Ge=Ie.V,nr=Ie.Ba+Ie.c*Ie.C,pr=Qe-Ie.C;if(St(Qe<=Ie.l.o),St(16>=pr),0<pr){var yr=Ie.l,wr=Ie.Ta,Er=Ie.Ua,Tr=yr.width;if(Yi(Ie,pr,Ge,nr),pr=Er=[Er],St((Ge=Ie.C)<(nr=Qe)),St(yr.v<yr.va),nr>yr.o&&(nr=yr.o),Ge<yr.j){var xr=yr.j-Ge;Ge=yr.j,pr[0]+=xr*Tr}if(Ge>=nr?Ge=0:(pr[0]+=4*yr.v,yr.ka=Ge-yr.j,yr.U=yr.va-yr.v,yr.T=nr-Ge,Ge=1),Ge){if(Er=Er[0],11>(Ge=Ie.ca).S){var Gr=Ge.f.RGBA,An=(nr=Ge.S,pr=yr.U,yr=yr.T,xr=Gr.eb,Gr.A),an=yr;for(Gr=Gr.fb+Ie.Ma*Gr.A;0<an--;){var Zr=wr,_n=Er,pn=pr,zr=xr,Yr=Gr;switch(nr){case Ka:QA(Zr,_n,pn,zr,Yr);break;case ja:_A(Zr,_n,pn,zr,Yr);break;case ls:_A(Zr,_n,pn,zr,Yr),ni(zr,Yr,0,pn,1,0);break;case Cs:YA(Zr,_n,pn,zr,Yr);break;case Ga:je(Zr,_n,pn,zr,Yr,1);break;case us:je(Zr,_n,pn,zr,Yr,1),ni(zr,Yr,0,pn,1,0);break;case qa:je(Zr,_n,pn,zr,Yr,0);break;case za:je(Zr,_n,pn,zr,Yr,0),ni(zr,Yr,1,pn,1,0);break;case ss:po(Zr,_n,pn,zr,Yr);break;case cs:po(Zr,_n,pn,zr,Yr),Kn(zr,Yr,pn,1,0);break;case _s:TA(Zr,_n,pn,zr,Yr);break;default:St(0)}Er+=Tr,Gr+=An}Ie.Ma+=yr}else alert("todo:EmitRescaledRowsYUVA");St(Ie.Ma<=Ge.height)}}Ie.C=Qe,St(Ie.C<=Ie.i)}function PA(Ie){var Qe;if(0<Ie.ua)return 0;for(Qe=0;Qe<Ie.Wb;++Qe){var Ge=Ie.Ya[Qe].G,nr=Ie.Ya[Qe].H;if(0<Ge[1][nr[1]+0].g||0<Ge[2][nr[2]+0].g||0<Ge[3][nr[3]+0].g)return 0}return 1}function pA(Ie,Qe,Ge,nr,pr,yr){if(Ie.Z!=0){var wr=Ie.qd,Er=Ie.rd;for(St(zo[Ie.Z]!=null);Qe<Ge;++Qe)zo[Ie.Z](wr,Er,nr,pr,nr,pr,yr),wr=nr,Er=pr,pr+=yr;Ie.qd=wr,Ie.rd=Er}}function sA(Ie,Qe){var Ge=Ie.l.ma,nr=Ge.Z==0||Ge.Z==1?Ie.l.j:Ie.C;if(nr=Ie.C<nr?nr:Ie.C,St(Qe<=Ie.l.o),Qe>nr){var pr=Ie.l.width,yr=Ge.ca,wr=Ge.tb+pr*nr,Er=Ie.V,Tr=Ie.Ba+Ie.c*nr,xr=Ie.gc;St(Ie.ab==1),St(xr[0].hc==3),$A(xr[0],nr,Qe,Er,Tr,yr,wr),pA(Ge,nr,Qe,yr,wr,pr)}Ie.C=Ie.Ma=Qe}function rA(Ie,Qe,Ge,nr,pr,yr,wr){var Er=Ie.$/nr,Tr=Ie.$%nr,xr=Ie.m,Gr=Ie.s,An=Ge+Ie.$,an=An;pr=Ge+nr*pr;var Zr=Ge+nr*yr,_n=280+Gr.ua,pn=Ie.Pb?Er:16777216,zr=0<Gr.ua?Gr.Wa:null,Yr=Gr.wc,bn=An<Zr?Ii(Gr,Tr,Er):null;St(Ie.C<yr),St(Zr<=pr);var Pn=!1;t:for(;;){for(;Pn||An<Zr;){var En=0;if(Er>=pn){var Zn=An-Ge;St((pn=Ie).Pb),pn.wd=pn.m,pn.xd=Zn,0<pn.s.ua&&fn(pn.s.Wa,pn.s.vb),pn=Er+il}if(Tr&Yr||(bn=Ii(Gr,Tr,Er)),St(bn!=null),bn.Qb&&(Qe[An]=bn.qb,Pn=!0),!Pn)if(kr(xr),bn.jc){En=xr,Zn=Qe;var jn=An,gi=bn.pd[_r(En)&iA-1];St(bn.jc),256>gi.g?(Pr(En,En.u+gi.g),Zn[jn]=gi.value,En=0):(Pr(En,En.u+gi.g-256),St(256<=gi.value),En=gi.value),En==0&&(Pn=!0)}else En=Ki(bn.G[0],bn.H[0],xr);if(xr.h)break;if(Pn||256>En){if(!Pn)if(bn.nd)Qe[An]=(bn.qb|En<<8)>>>0;else{if(kr(xr),Pn=Ki(bn.G[1],bn.H[1],xr),kr(xr),Zn=Ki(bn.G[2],bn.H[2],xr),jn=Ki(bn.G[3],bn.H[3],xr),xr.h)break;Qe[An]=(jn<<24|Pn<<16|En<<8|Zn)>>>0}if(Pn=!1,++An,++Tr>=nr&&(Tr=0,++Er,wr!=null&&Er<=yr&&!(Er%16)&&wr(Ie,Er),zr!=null))for(;an<An;)En=Qe[an++],zr.X[(506832829*En&4294967295)>>>zr.Mb]=En}else if(280>En){if(En=Fi(En-256,xr),Zn=Ki(bn.G[4],bn.H[4],xr),kr(xr),Zn=Ui(nr,Zn=Fi(Zn,xr)),xr.h)break;if(An-Ge<Zn||pr-An<En)break t;for(jn=0;jn<En;++jn)Qe[An+jn]=Qe[An+jn-Zn];for(An+=En,Tr+=En;Tr>=nr;)Tr-=nr,++Er,wr!=null&&Er<=yr&&!(Er%16)&&wr(Ie,Er);if(St(An<=pr),Tr&Yr&&(bn=Ii(Gr,Tr,Er)),zr!=null)for(;an<An;)En=Qe[an++],zr.X[(506832829*En&4294967295)>>>zr.Mb]=En}else{if(!(En<_n))break t;for(Pn=En-280,St(zr!=null);an<An;)En=Qe[an++],zr.X[(506832829*En&4294967295)>>>zr.Mb]=En;En=An,St(!(Pn>>>(Zn=zr).Xa)),Qe[En]=Zn.X[Pn],Pn=!0}Pn||St(xr.h==Fr(xr))}if(Ie.Pb&&xr.h&&An<pr)St(Ie.m.h),Ie.a=5,Ie.m=Ie.wd,Ie.$=Ie.xd,0<Ie.s.ua&&fn(Ie.s.vb,Ie.s.Wa);else{if(xr.h)break t;wr!=null&&wr(Ie,Er>yr?yr:Er),Ie.a=0,Ie.$=An-Ge}return 1}return Ie.a=3,0}function dA(Ie){St(Ie!=null),Ie.vc=null,Ie.yc=null,Ie.Ya=null;var Qe=Ie.Wa;Qe!=null&&(Qe.X=null),Ie.vb=null,St(Ie!=null)}function vA(){var Ie=new EA;return Ie==null?null:(Ie.a=0,Ie.xb=xs,sr("Predictor","VP8LPredictors"),sr("Predictor","VP8LPredictors_C"),sr("PredictorAdd","VP8LPredictorsAdd"),sr("PredictorAdd","VP8LPredictorsAdd_C"),Sa=mi,Bo=Ai,QA=Hn,_A=Oi,po=wi,TA=br,YA=Ke,Ye.VP8LMapColor32b=ho,Ye.VP8LMapColor8b=RA,Ie)}function OA(Ie,Qe,Ge,nr,pr){var yr=1,wr=[Ie],Er=[Qe],Tr=nr.m,xr=nr.s,Gr=null,An=0;t:for(;;){if(Ge)for(;yr&&Xr(Tr,1);){var an=wr,Zr=Er,_n=nr,pn=1,zr=_n.m,Yr=_n.gc[_n.ab],bn=Xr(zr,2);if(_n.Oc&1<<bn)yr=0;else{switch(_n.Oc|=1<<bn,Yr.hc=bn,Yr.Ea=an[0],Yr.nc=Zr[0],Yr.K=[null],++_n.ab,St(4>=_n.ab),bn){case 0:case 1:Yr.b=Xr(zr,3)+2,pn=OA(Yn(Yr.Ea,Yr.b),Yn(Yr.nc,Yr.b),0,_n,Yr.K),Yr.K=Yr.K[0];break;case 3:var Pn,En=Xr(zr,8)+1,Zn=16<En?0:4<En?1:2<En?2:3;if(an[0]=Yn(Yr.Ea,Zn),Yr.b=Zn,Pn=pn=OA(En,1,0,_n,Yr.K)){var jn,gi=En,Wn=Yr,Ri=1<<(8>>Wn.b),Hi=_e(Ri);if(Hi==null)Pn=0;else{var $i=Wn.K[0],Li=Wn.w;for(Hi[0]=Wn.K[0][0],jn=1;jn<1*gi;++jn)Hi[jn]=Tn($i[Li+jn],Hi[jn-1]);for(;jn<4*Ri;++jn)Hi[jn]=0;Wn.K[0]=null,Wn.K[0]=Hi,Pn=1}}pn=Pn;break;case 2:break;default:St(0)}yr=pn}}if(wr=wr[0],Er=Er[0],yr&&Xr(Tr,1)&&!(yr=1<=(An=Xr(Tr,4))&&11>=An)){nr.a=3;break t}var ji;if(ji=yr)e:{var Vi,_i,fA,qA=nr,hA=wr,zA=Er,Mi=An,JA=Ge,ZA=qA.m,wA=qA.s,IA=[null],kA=1,so=0,Co=nl[Mi];r:for(;;){if(JA&&Xr(ZA,1)){var bA=Xr(ZA,3)+2,Lo=Yn(hA,bA),pa=Yn(zA,bA),xa=Lo*pa;if(!OA(Lo,pa,0,qA,IA))break r;for(IA=IA[0],wA.xc=bA,Vi=0;Vi<xa;++Vi){var Wo=IA[Vi]>>8&65535;IA[Vi]=Wo,Wo>=kA&&(kA=Wo+1)}}if(ZA.h)break r;for(_i=0;5>_i;++_i){var oA=Ts[_i];!_i&&0<Mi&&(oA+=1<<Mi),so<oA&&(so=oA)}var ds=Te(kA*Co,Ar),Rs=kA,Qs=Te(Rs,mr);if(Qs==null)var Ja=null;else St(65536>=Rs),Ja=Qs;var Ha=_e(so);if(Ja==null||Ha==null||ds==null){qA.a=1;break r}var Za=ds;for(Vi=fA=0;Vi<kA;++Vi){var vo=Ja[Vi],Fa=vo.G,Ia=vo.H,Ds=0,ts=1,Hs=0;for(_i=0;5>_i;++_i){oA=Ts[_i],Fa[_i]=Za,Ia[_i]=fA,!_i&&0<Mi&&(oA+=1<<Mi);i:{var es,gs=oA,rs=qA,Ma=Ha,_l=Za,Tl=fA,vs=0,Xo=rs.m,Sl=Xr(Xo,1);if(Ce(Ma,0,0,gs),Sl){var xl=Xr(Xo,1)+1,Fl=Xr(Xo,1),Ms=Xr(Xo,Fl==0?1:8);Ma[Ms]=1,xl==2&&(Ma[Ms=Xr(Xo,8)]=1);var ns=1}else{var ks=_e(19),Vs=Xr(Xo,4)+4;if(19<Vs){rs.a=3;var is=0;break i}for(es=0;es<Vs;++es)ks[el[es]]=Xr(Xo,3);var ms=void 0,ka=void 0,Ks=rs,Il=ks,As=gs,js=Ma,ys=0,Yo=Ks.m,Gs=8,qs=Te(128,Ar);n:for(;er(qs,0,7,Il,19);){if(Xr(Yo,1)){var Pl=2+2*Xr(Yo,3);if((ms=2+Xr(Yo,Pl))>As)break n}else ms=As;for(ka=0;ka<As&&ms--;){kr(Yo);var zs=qs[0+(127&_r(Yo))];Pr(Yo,Yo.u+zs.g);var Pa=zs.value;if(16>Pa)js[ka++]=Pa,Pa!=0&&(Gs=Pa);else{var Ol=Pa==16,Ws=Pa-16,Ul=Zs[Ws],Xs=Xr(Yo,Js[Ws])+Ul;if(ka+Xs>As)break n;for(var Ll=Ol?Gs:0;0<Xs--;)js[ka++]=Ll}}ys=1;break n}ys||(Ks.a=3),ns=ys}(ns=ns&&!Xo.h)&&(vs=er(_l,Tl,8,Ma,gs)),ns&&vs!=0?is=vs:(rs.a=3,is=0)}if(is==0)break r;if(ts&&tl[_i]==1&&(ts=Za[fA].g==0),Ds+=Za[fA].g,fA+=is,3>=_i){var Va,ws=Ha[0];for(Va=1;Va<oA;++Va)Ha[Va]>ws&&(ws=Ha[Va]);Hs+=ws}}if(vo.nd=ts,vo.Qb=0,ts&&(vo.qb=(Fa[3][Ia[3]+0].value<<24|Fa[1][Ia[1]+0].value<<16|Fa[2][Ia[2]+0].value)>>>0,Ds==0&&256>Fa[0][Ia[0]+0].value&&(vo.Qb=1,vo.qb+=Fa[0][Ia[0]+0].value<<8)),vo.jc=!vo.Qb&&6>Hs,vo.jc){var os,No=vo;for(os=0;os<iA;++os){var Jo=os,Zo=No.pd[Jo],as=No.G[0][No.H[0]+Jo];256<=as.value?(Zo.g=as.g+256,Zo.value=as.value):(Zo.g=0,Zo.value=0,Jo>>=Gi(as,8,Zo),Jo>>=Gi(No.G[1][No.H[1]+Jo],16,Zo),Jo>>=Gi(No.G[2][No.H[2]+Jo],0,Zo),Gi(No.G[3][No.H[3]+Jo],24,Zo))}}}wA.vc=IA,wA.Wb=kA,wA.Ya=Ja,wA.yc=ds,ji=1;break e}ji=0}if(!(yr=ji)){nr.a=3;break t}if(0<An){if(xr.ua=1<<An,!Xn(xr.Wa,An)){nr.a=1,yr=0;break t}}else xr.ua=0;var Bs=nr,Ys=wr,Nl=Er,bs=Bs.s,Es=bs.xc;if(Bs.c=Ys,Bs.i=Nl,bs.md=Yn(Ys,Es),bs.wc=Es==0?-1:(1<<Es)-1,Ge){nr.xb=cl;break t}if((Gr=_e(wr*Er))==null){nr.a=1,yr=0;break t}yr=(yr=rA(nr,Gr,0,wr,Er,Er,null))&&!Tr.h;break t}return yr?(pr!=null?pr[0]=Gr:(St(Gr==null),St(Ge)),nr.$=0,Ge||dA(xr)):dA(xr),yr}function WA(Ie,Qe){var Ge=Ie.c*Ie.i,nr=Ge+Qe+16*Qe;return St(Ie.c<=Qe),Ie.V=_e(nr),Ie.V==null?(Ie.Ta=null,Ie.Ua=0,Ie.a=1,0):(Ie.Ta=Ie.V,Ie.Ua=Ie.Ba+Ge+Qe,1)}function lo(Ie,Qe){var Ge=Ie.C,nr=Qe-Ge,pr=Ie.V,yr=Ie.Ba+Ie.c*Ge;for(St(Qe<=Ie.l.o);0<nr;){var wr=16<nr?16:nr,Er=Ie.l.ma,Tr=Ie.l.width,xr=Tr*wr,Gr=Er.ca,An=Er.tb+Tr*Ge,an=Ie.Ta,Zr=Ie.Ua;Yi(Ie,wr,pr,yr),li(an,Zr,Gr,An,xr),pA(Er,Ge,Ge+wr,Gr,An,Tr),nr-=wr,pr+=wr*Ie.c,Ge+=wr}St(Ge==Qe),Ie.C=Ie.Ma=Qe}function ei(){this.ub=this.yd=this.td=this.Rb=0}function Kr(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Un(){this.Fb=this.Bb=this.Cb=0,this.Zb=_e(4),this.Lb=_e(4)}function Vn(){this.Yb=function(){var Ie=[];return function Qe(Ge,nr,pr){for(var yr=pr[nr],wr=0;wr<yr&&(Ge.push(pr.length>nr+1?[]:0),!(pr.length<nr+1));wr++)Qe(Ge[wr],nr+1,pr)}(Ie,0,[3,11]),Ie}()}function Pi(){this.jb=_e(3),this.Wc=Se([4,8],Vn),this.Xc=Se([4,17],Vn)}function aA(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new _e(4),this.od=new _e(4)}function qi(){this.ld=this.La=this.dd=this.tc=0}function zi(){this.Na=this.la=0}function VA(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ti(){this.ad=_e(384),this.Za=0,this.Ob=_e(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function KA(){this.uc=this.M=this.Nb=0,this.wa=Array(new qi),this.Y=0,this.ya=Array(new Ti),this.aa=0,this.l=new $o}function eo(){this.y=_e(16),this.f=_e(8),this.ea=_e(8)}function da(){this.cb=this.a=0,this.sc="",this.m=new sn,this.Od=new ei,this.Kc=new Kr,this.ed=new aA,this.Qa=new Un,this.Ic=this.$c=this.Aa=0,this.D=new KA,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=Te(8,sn),this.ia=0,this.pb=Te(4,VA),this.Pa=new Pi,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new eo),this.Hd=0,this.rb=Array(new zi),this.sb=0,this.wa=Array(new qi),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ti),this.L=this.aa=0,this.gd=Se([4,2],qi),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function $o(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function ta(){var Ie=new da;return Ie!=null&&(Ie.a=0,Ie.sc="OK",Ie.cb=0,Ie.Xb=0,Qa||(Qa=ga)),Ie}function eA(Ie,Qe,Ge){return Ie.a==0&&(Ie.a=Qe,Ie.sc=Ge,Ie.cb=0),0}function _o(Ie,Qe,Ge){return 3<=Ge&&Ie[Qe+0]==157&&Ie[Qe+1]==1&&Ie[Qe+2]==42}function ea(Ie,Qe){if(Ie==null)return 0;if(Ie.a=0,Ie.sc="OK",Qe==null)return eA(Ie,2,"null VP8Io passed to VP8GetHeaders()");var Ge=Qe.data,nr=Qe.w,pr=Qe.ha;if(4>pr)return eA(Ie,7,"Truncated header.");var yr=Ge[nr+0]|Ge[nr+1]<<8|Ge[nr+2]<<16,wr=Ie.Od;if(wr.Rb=!(1&yr),wr.td=yr>>1&7,wr.yd=yr>>4&1,wr.ub=yr>>5,3<wr.td)return eA(Ie,3,"Incorrect keyframe parameters.");if(!wr.yd)return eA(Ie,4,"Frame not displayable.");nr+=3,pr-=3;var Er=Ie.Kc;if(wr.Rb){if(7>pr)return eA(Ie,7,"cannot parse picture header");if(!_o(Ge,nr,pr))return eA(Ie,3,"Bad code word");Er.c=16383&(Ge[nr+4]<<8|Ge[nr+3]),Er.Td=Ge[nr+4]>>6,Er.i=16383&(Ge[nr+6]<<8|Ge[nr+5]),Er.Ud=Ge[nr+6]>>6,nr+=7,pr-=7,Ie.za=Er.c+15>>4,Ie.Ub=Er.i+15>>4,Qe.width=Er.c,Qe.height=Er.i,Qe.Da=0,Qe.j=0,Qe.v=0,Qe.va=Qe.width,Qe.o=Qe.height,Qe.da=0,Qe.ib=Qe.width,Qe.hb=Qe.height,Qe.U=Qe.width,Qe.T=Qe.height,Ce((yr=Ie.Pa).jb,0,255,yr.jb.length),St((yr=Ie.Qa)!=null),yr.Cb=0,yr.Bb=0,yr.Fb=1,Ce(yr.Zb,0,0,yr.Zb.length),Ce(yr.Lb,0,0,yr.Lb)}if(wr.ub>pr)return eA(Ie,7,"bad partition length");Ur(yr=Ie.m,Ge,nr,wr.ub),nr+=wr.ub,pr-=wr.ub,wr.Rb&&(Er.Ld=nn(yr),Er.Kd=nn(yr)),Er=Ie.Qa;var Tr,xr=Ie.Pa;if(St(yr!=null),St(Er!=null),Er.Cb=nn(yr),Er.Cb){if(Er.Bb=nn(yr),nn(yr)){for(Er.Fb=nn(yr),Tr=0;4>Tr;++Tr)Er.Zb[Tr]=nn(yr)?Mr(yr,7):0;for(Tr=0;4>Tr;++Tr)Er.Lb[Tr]=nn(yr)?Mr(yr,6):0}if(Er.Bb)for(Tr=0;3>Tr;++Tr)xr.jb[Tr]=nn(yr)?Lr(yr,8):255}else Er.Bb=0;if(yr.Ka)return eA(Ie,3,"cannot parse segment header");if((Er=Ie.ed).zd=nn(yr),Er.Tb=Lr(yr,6),Er.wb=Lr(yr,3),Er.Pc=nn(yr),Er.Pc&&nn(yr)){for(xr=0;4>xr;++xr)nn(yr)&&(Er.vd[xr]=Mr(yr,6));for(xr=0;4>xr;++xr)nn(yr)&&(Er.od[xr]=Mr(yr,6))}if(Ie.L=Er.Tb==0?0:Er.zd?1:2,yr.Ka)return eA(Ie,3,"cannot parse filter header");var Gr=pr;if(pr=Tr=nr,nr=Tr+Gr,Er=Gr,Ie.Xb=(1<<Lr(Ie.m,2))-1,Gr<3*(xr=Ie.Xb))Ge=7;else{for(Tr+=3*xr,Er-=3*xr,Gr=0;Gr<xr;++Gr){var An=Ge[pr+0]|Ge[pr+1]<<8|Ge[pr+2]<<16;An>Er&&(An=Er),Ur(Ie.Jc[+Gr],Ge,Tr,An),Tr+=An,Er-=An,pr+=3}Ur(Ie.Jc[+xr],Ge,Tr,Er),Ge=Tr<nr?0:5}if(Ge!=0)return eA(Ie,Ge,"cannot parse partitions");for(Ge=Lr(Tr=Ie.m,7),pr=nn(Tr)?Mr(Tr,4):0,nr=nn(Tr)?Mr(Tr,4):0,Er=nn(Tr)?Mr(Tr,4):0,xr=nn(Tr)?Mr(Tr,4):0,Tr=nn(Tr)?Mr(Tr,4):0,Gr=Ie.Qa,An=0;4>An;++An){if(Gr.Cb){var an=Gr.Zb[An];Gr.Fb||(an+=Ge)}else{if(0<An){Ie.pb[An]=Ie.pb[0];continue}an=Ge}var Zr=Ie.pb[An];Zr.Sc[0]=fs[HA(an+pr,127)],Zr.Sc[1]=hs[HA(an+0,127)],Zr.Eb[0]=2*fs[HA(an+nr,127)],Zr.Eb[1]=101581*hs[HA(an+Er,127)]>>16,8>Zr.Eb[1]&&(Zr.Eb[1]=8),Zr.Qc[0]=fs[HA(an+xr,117)],Zr.Qc[1]=hs[HA(an+Tr,127)],Zr.lc=an+Tr}if(!wr.Rb)return eA(Ie,4,"Not a key frame.");for(nn(yr),wr=Ie.Pa,Ge=0;4>Ge;++Ge){for(pr=0;8>pr;++pr)for(nr=0;3>nr;++nr)for(Er=0;11>Er;++Er)xr=Jr(yr,ll[Ge][pr][nr][Er])?Lr(yr,8):al[Ge][pr][nr][Er],wr.Wc[Ge][pr].Yb[nr][Er]=xr;for(pr=0;17>pr;++pr)wr.Xc[Ge][pr]=wr.Wc[Ge][ul[pr]]}return Ie.kc=nn(yr),Ie.kc&&(Ie.Bd=Lr(yr,8)),Ie.cb=1}function ga(Ie,Qe,Ge,nr,pr,yr,wr){var Er=Qe[pr].Yb[Ge];for(Ge=0;16>pr;++pr){if(!Jr(Ie,Er[Ge+0]))return pr;for(;!Jr(Ie,Er[Ge+1]);)if(Er=Qe[++pr].Yb[0],Ge=0,pr==16)return 16;var Tr=Qe[pr+1].Yb;if(Jr(Ie,Er[Ge+2])){var xr=Ie,Gr=0;if(Jr(xr,(an=Er)[(An=Ge)+3]))if(Jr(xr,an[An+6])){for(Er=0,An=2*(Gr=Jr(xr,an[An+8]))+(an=Jr(xr,an[An+9+Gr])),Gr=0,an=Al[An];an[Er];++Er)Gr+=Gr+Jr(xr,an[Er]);Gr+=3+(8<<An)}else Jr(xr,an[An+7])?(Gr=7+2*Jr(xr,165),Gr+=Jr(xr,145)):Gr=5+Jr(xr,159);else Gr=Jr(xr,an[An+4])?3+Jr(xr,an[An+5]):2;Er=Tr[2]}else Gr=1,Er=Tr[1];Tr=wr+ol[pr],0>(xr=Ie).b&&Vr(xr);var An,an=xr.b,Zr=(An=xr.Ca>>1)-(xr.I>>an)>>31;--xr.b,xr.Ca+=Zr,xr.Ca|=1,xr.I-=(An+1&Zr)<<an,yr[Tr]=((Gr^Zr)-Zr)*nr[(0<pr)+0]}return 16}function ra(Ie){var Qe=Ie.rb[Ie.sb-1];Qe.la=0,Qe.Na=0,Ce(Ie.zc,0,0,Ie.zc.length),Ie.ja=0}function DA(Ie,Qe){if(Ie==null)return 0;if(Qe==null)return eA(Ie,2,"NULL VP8Io parameter in VP8Decode().");if(!Ie.cb&&!ea(Ie,Qe))return 0;if(St(Ie.cb),Qe.ac==null||Qe.ac(Qe)){Qe.ob&&(Ie.L=0);var Ge=Ya[Ie.L];if(Ie.L==2?(Ie.yb=0,Ie.zb=0):(Ie.yb=Qe.v-Ge>>4,Ie.zb=Qe.j-Ge>>4,0>Ie.yb&&(Ie.yb=0),0>Ie.zb&&(Ie.zb=0)),Ie.Va=Qe.o+15+Ge>>4,Ie.Hb=Qe.va+15+Ge>>4,Ie.Hb>Ie.za&&(Ie.Hb=Ie.za),Ie.Va>Ie.Ub&&(Ie.Va=Ie.Ub),0<Ie.L){var nr=Ie.ed;for(Ge=0;4>Ge;++Ge){var pr;if(Ie.Qa.Cb){var yr=Ie.Qa.Lb[Ge];Ie.Qa.Fb||(yr+=nr.Tb)}else yr=nr.Tb;for(pr=0;1>=pr;++pr){var wr=Ie.gd[Ge][pr],Er=yr;if(nr.Pc&&(Er+=nr.vd[0],pr&&(Er+=nr.od[0])),0<(Er=0>Er?0:63<Er?63:Er)){var Tr=Er;0<nr.wb&&(Tr=4<nr.wb?Tr>>2:Tr>>1)>9-nr.wb&&(Tr=9-nr.wb),1>Tr&&(Tr=1),wr.dd=Tr,wr.tc=2*Er+Tr,wr.ld=40<=Er?2:15<=Er?1:0}else wr.tc=0;wr.La=pr}}}Ge=0}else eA(Ie,6,"Frame setup failed"),Ge=Ie.a;if(Ge=Ge==0){if(Ge){Ie.$c=0,0<Ie.Aa||(Ie.Ic=Cl);t:{Ge=Ie.Ic,nr=4*(Tr=Ie.za);var xr=32*Tr,Gr=Tr+1,An=0<Ie.L?Tr*(0<Ie.Aa?2:1):0,an=(Ie.Aa==2?2:1)*Tr;if((wr=nr+832+(pr=3*(16*Ge+Ya[Ie.L])/2*xr)+(yr=Ie.Fa!=null&&0<Ie.Fa.length?Ie.Kc.c*Ie.Kc.i:0))!=wr)Ge=0;else{if(wr>Ie.Vb){if(Ie.Vb=0,Ie.Ec=_e(wr),Ie.Fc=0,Ie.Ec==null){Ge=eA(Ie,1,"no memory during frame initialization.");break t}Ie.Vb=wr}wr=Ie.Ec,Er=Ie.Fc,Ie.Ac=wr,Ie.Bc=Er,Er+=nr,Ie.Gd=Te(xr,eo),Ie.Hd=0,Ie.rb=Te(Gr+1,zi),Ie.sb=1,Ie.wa=An?Te(An,qi):null,Ie.Y=0,Ie.D.Nb=0,Ie.D.wa=Ie.wa,Ie.D.Y=Ie.Y,0<Ie.Aa&&(Ie.D.Y+=Tr),St(!0),Ie.oc=wr,Ie.pc=Er,Er+=832,Ie.ya=Te(an,Ti),Ie.aa=0,Ie.D.ya=Ie.ya,Ie.D.aa=Ie.aa,Ie.Aa==2&&(Ie.D.aa+=Tr),Ie.R=16*Tr,Ie.B=8*Tr,Tr=(xr=Ya[Ie.L])*Ie.R,xr=xr/2*Ie.B,Ie.sa=wr,Ie.ta=Er+Tr,Ie.qa=Ie.sa,Ie.ra=Ie.ta+16*Ge*Ie.R+xr,Ie.Ha=Ie.qa,Ie.Ia=Ie.ra+8*Ge*Ie.B+xr,Ie.$c=0,Er+=pr,Ie.mb=yr?wr:null,Ie.nb=yr?Er:null,St(Er+yr<=Ie.Fc+Ie.Vb),ra(Ie),Ce(Ie.Ac,Ie.Bc,0,nr),Ge=1}}if(Ge){if(Qe.ka=0,Qe.y=Ie.sa,Qe.O=Ie.ta,Qe.f=Ie.qa,Qe.N=Ie.ra,Qe.ea=Ie.Ha,Qe.Vd=Ie.Ia,Qe.fa=Ie.R,Qe.Rc=Ie.B,Qe.F=null,Qe.J=0,!yA){for(Ge=-255;255>=Ge;++Ge)bi[255+Ge]=0>Ge?-Ge:Ge;for(Ge=-1020;1020>=Ge;++Ge)si[1020+Ge]=-128>Ge?-128:127<Ge?127:Ge;for(Ge=-112;112>=Ge;++Ge)tA[112+Ge]=-16>Ge?-16:15<Ge?15:Ge;for(Ge=-255;510>=Ge;++Ge)AA[255+Ge]=0>Ge?0:255<Ge?255:Ge;yA=1}Po=va,GA=uo,Oo=Ro,xA=Ua,FA=ia,Wi=no,bo=$r,Go=Rr,ha=Fn,Cr=un,Nr=en,jr=cn,vn=dn,tn=ai,yn=De,Sn=qe,Qn=tr,Dn=lr,go[0]=Ao,go[1]=ma,go[2]=$a,go[3]=Ra,go[4]=oa,go[5]=To,go[6]=Mo,go[7]=So,go[8]=Ba,go[9]=wa,qo[0]=Ho,qo[1]=La,qo[2]=io,qo[3]=Qo,qo[4]=mA,qo[5]=Na,qo[6]=ya,Uo[0]=mo,Uo[1]=Aa,Uo[2]=aa,Uo[3]=sa,Uo[4]=yo,Uo[5]=Fo,Uo[6]=Io,Ge=1}else Ge=0}Ge&&(Ge=function(Zr,_n){for(Zr.M=0;Zr.M<Zr.Va;++Zr.M){var pn,zr=Zr.Jc[Zr.M&Zr.Xb],Yr=Zr.m,bn=Zr;for(pn=0;pn<bn.za;++pn){var Pn=Yr,En=bn,Zn=En.Ac,jn=En.Bc+4*pn,gi=En.zc,Wn=En.ya[En.aa+pn];if(En.Qa.Bb?Wn.$b=Jr(Pn,En.Pa.jb[0])?2+Jr(Pn,En.Pa.jb[2]):Jr(Pn,En.Pa.jb[1]):Wn.$b=0,En.kc&&(Wn.Ad=Jr(Pn,En.Bd)),Wn.Za=!Jr(Pn,145)+0,Wn.Za){var Ri=Wn.Ob,Hi=0;for(En=0;4>En;++En){var $i,Li=gi[0+En];for($i=0;4>$i;++$i){Li=sl[Zn[jn+$i]][Li];for(var ji=Ss[Jr(Pn,Li[0])];0<ji;)ji=Ss[2*ji+Jr(Pn,Li[ji])];Li=-ji,Zn[jn+$i]=Li}Ee(Ri,Hi,Zn,jn,4),Hi+=4,gi[0+En]=Li}}else Li=Jr(Pn,156)?Jr(Pn,128)?1:3:Jr(Pn,163)?2:0,Wn.Ob[0]=Li,Ce(Zn,jn,Li,4),Ce(gi,0,Li,4);Wn.Dd=Jr(Pn,142)?Jr(Pn,114)?Jr(Pn,183)?1:3:2:0}if(bn.m.Ka)return eA(Zr,7,"Premature end-of-partition0 encountered.");for(;Zr.ja<Zr.za;++Zr.ja){if(bn=zr,Pn=(Yr=Zr).rb[Yr.sb-1],Zn=Yr.rb[Yr.sb+Yr.ja],pn=Yr.ya[Yr.aa+Yr.ja],jn=Yr.kc?pn.Ad:0)Pn.la=Zn.la=0,pn.Za||(Pn.Na=Zn.Na=0),pn.Hc=0,pn.Gc=0,pn.ia=0;else{var Vi,_i;if(Pn=Zn,Zn=bn,jn=Yr.Pa.Xc,gi=Yr.ya[Yr.aa+Yr.ja],Wn=Yr.pb[gi.$b],En=gi.ad,Ri=0,Hi=Yr.rb[Yr.sb-1],Li=$i=0,Ce(En,Ri,0,384),gi.Za)var fA=0,qA=jn[3];else{ji=_e(16);var hA=Pn.Na+Hi.Na;if(hA=Qa(Zn,jn[1],hA,Wn.Eb,0,ji,0),Pn.Na=Hi.Na=(0<hA)+0,1<hA)Po(ji,0,En,Ri);else{var zA=ji[0]+3>>3;for(ji=0;256>ji;ji+=16)En[Ri+ji]=zA}fA=1,qA=jn[0]}var Mi=15&Pn.la,JA=15&Hi.la;for(ji=0;4>ji;++ji){var ZA=1&JA;for(zA=_i=0;4>zA;++zA)Mi=Mi>>1|(ZA=(hA=Qa(Zn,qA,hA=ZA+(1&Mi),Wn.Sc,fA,En,Ri))>fA)<<7,_i=_i<<2|(3<hA?3:1<hA?2:En[Ri+0]!=0),Ri+=16;Mi>>=4,JA=JA>>1|ZA<<7,$i=($i<<8|_i)>>>0}for(qA=Mi,fA=JA>>4,Vi=0;4>Vi;Vi+=2){for(_i=0,Mi=Pn.la>>4+Vi,JA=Hi.la>>4+Vi,ji=0;2>ji;++ji){for(ZA=1&JA,zA=0;2>zA;++zA)hA=ZA+(1&Mi),Mi=Mi>>1|(ZA=0<(hA=Qa(Zn,jn[2],hA,Wn.Qc,0,En,Ri)))<<3,_i=_i<<2|(3<hA?3:1<hA?2:En[Ri+0]!=0),Ri+=16;Mi>>=2,JA=JA>>1|ZA<<5}Li|=_i<<4*Vi,qA|=Mi<<4<<Vi,fA|=(240&JA)<<Vi}Pn.la=qA,Hi.la=fA,gi.Hc=$i,gi.Gc=Li,gi.ia=43690&Li?0:Wn.ia,jn=!($i|Li)}if(0<Yr.L&&(Yr.wa[Yr.Y+Yr.ja]=Yr.gd[pn.$b][pn.Za],Yr.wa[Yr.Y+Yr.ja].La|=!jn),bn.Ka)return eA(Zr,7,"Premature end-of-file encountered.")}if(ra(Zr),Yr=_n,bn=1,pn=(zr=Zr).D,Pn=0<zr.L&&zr.M>=zr.zb&&zr.M<=zr.Va,zr.Aa==0)t:{if(pn.M=zr.M,pn.uc=Pn,ua(zr,pn),bn=1,pn=(_i=zr.D).Nb,Pn=(Li=Ya[zr.L])*zr.R,Zn=Li/2*zr.B,ji=16*pn*zr.R,zA=8*pn*zr.B,jn=zr.sa,gi=zr.ta-Pn+ji,Wn=zr.qa,En=zr.ra-Zn+zA,Ri=zr.Ha,Hi=zr.Ia-Zn+zA,JA=(Mi=_i.M)==0,$i=Mi>=zr.Va-1,zr.Aa==2&&ua(zr,_i),_i.uc)for(ZA=(hA=zr).D.M,St(hA.D.uc),_i=hA.yb;_i<hA.Hb;++_i){fA=_i,qA=ZA;var wA=(IA=(oA=hA).D).Nb;Vi=oA.R;var IA=IA.wa[IA.Y+fA],kA=oA.sa,so=oA.ta+16*wA*Vi+16*fA,Co=IA.dd,bA=IA.tc;if(bA!=0)if(St(3<=bA),oA.L==1)0<fA&&Sn(kA,so,Vi,bA+4),IA.La&&Dn(kA,so,Vi,bA),0<qA&&yn(kA,so,Vi,bA+4),IA.La&&Qn(kA,so,Vi,bA);else{var Lo=oA.B,pa=oA.qa,xa=oA.ra+8*wA*Lo+8*fA,Wo=oA.Ha,oA=oA.Ia+8*wA*Lo+8*fA;wA=IA.ld,0<fA&&(Go(kA,so,Vi,bA+4,Co,wA),Cr(pa,xa,Wo,oA,Lo,bA+4,Co,wA)),IA.La&&(jr(kA,so,Vi,bA,Co,wA),tn(pa,xa,Wo,oA,Lo,bA,Co,wA)),0<qA&&(bo(kA,so,Vi,bA+4,Co,wA),ha(pa,xa,Wo,oA,Lo,bA+4,Co,wA)),IA.La&&(Nr(kA,so,Vi,bA,Co,wA),vn(pa,xa,Wo,oA,Lo,bA,Co,wA))}}if(zr.ia&&alert("todo:DitherRow"),Yr.put!=null){if(_i=16*Mi,Mi=16*(Mi+1),JA?(Yr.y=zr.sa,Yr.O=zr.ta+ji,Yr.f=zr.qa,Yr.N=zr.ra+zA,Yr.ea=zr.Ha,Yr.W=zr.Ia+zA):(_i-=Li,Yr.y=jn,Yr.O=gi,Yr.f=Wn,Yr.N=En,Yr.ea=Ri,Yr.W=Hi),$i||(Mi-=Li),Mi>Yr.o&&(Mi=Yr.o),Yr.F=null,Yr.J=null,zr.Fa!=null&&0<zr.Fa.length&&_i<Mi&&(Yr.J=Di(zr,Yr,_i,Mi-_i),Yr.F=zr.mb,Yr.F==null&&Yr.F.length==0)){bn=eA(zr,3,"Could not decode alpha data.");break t}_i<Yr.j&&(Li=Yr.j-_i,_i=Yr.j,St(!(1&Li)),Yr.O+=zr.R*Li,Yr.N+=zr.B*(Li>>1),Yr.W+=zr.B*(Li>>1),Yr.F!=null&&(Yr.J+=Yr.width*Li)),_i<Mi&&(Yr.O+=Yr.v,Yr.N+=Yr.v>>1,Yr.W+=Yr.v>>1,Yr.F!=null&&(Yr.J+=Yr.v),Yr.ka=_i-Yr.j,Yr.U=Yr.va-Yr.v,Yr.T=Mi-_i,bn=Yr.put(Yr))}pn+1!=zr.Ic||$i||(Ee(zr.sa,zr.ta-Pn,jn,gi+16*zr.R,Pn),Ee(zr.qa,zr.ra-Zn,Wn,En+8*zr.B,Zn),Ee(zr.Ha,zr.Ia-Zn,Ri,Hi+8*zr.B,Zn))}if(!bn)return eA(Zr,6,"Output aborted.")}return 1}(Ie,Qe)),Qe.bc!=null&&Qe.bc(Qe),Ge&=1}return Ge?(Ie.cb=0,Ge):0}function jA(Ie,Qe,Ge,nr,pr){pr=Ie[Qe+Ge+32*nr]+(pr>>3),Ie[Qe+Ge+32*nr]=-256&pr?0>pr?0:255:pr}function ro(Ie,Qe,Ge,nr,pr,yr){jA(Ie,Qe,0,Ge,nr+pr),jA(Ie,Qe,1,Ge,nr+yr),jA(Ie,Qe,2,Ge,nr-yr),jA(Ie,Qe,3,Ge,nr-pr)}function UA(Ie){return(20091*Ie>>16)+Ie}function na(Ie,Qe,Ge,nr){var pr,yr=0,wr=_e(16);for(pr=0;4>pr;++pr){var Er=Ie[Qe+0]+Ie[Qe+8],Tr=Ie[Qe+0]-Ie[Qe+8],xr=(35468*Ie[Qe+4]>>16)-UA(Ie[Qe+12]),Gr=UA(Ie[Qe+4])+(35468*Ie[Qe+12]>>16);wr[yr+0]=Er+Gr,wr[yr+1]=Tr+xr,wr[yr+2]=Tr-xr,wr[yr+3]=Er-Gr,yr+=4,Qe++}for(pr=yr=0;4>pr;++pr)Er=(Ie=wr[yr+0]+4)+wr[yr+8],Tr=Ie-wr[yr+8],xr=(35468*wr[yr+4]>>16)-UA(wr[yr+12]),jA(Ge,nr,0,0,Er+(Gr=UA(wr[yr+4])+(35468*wr[yr+12]>>16))),jA(Ge,nr,1,0,Tr+xr),jA(Ge,nr,2,0,Tr-xr),jA(Ge,nr,3,0,Er-Gr),yr++,nr+=32}function no(Ie,Qe,Ge,nr){var pr=Ie[Qe+0]+4,yr=35468*Ie[Qe+4]>>16,wr=UA(Ie[Qe+4]),Er=35468*Ie[Qe+1]>>16;ro(Ge,nr,0,pr+wr,Ie=UA(Ie[Qe+1]),Er),ro(Ge,nr,1,pr+yr,Ie,Er),ro(Ge,nr,2,pr-yr,Ie,Er),ro(Ge,nr,3,pr-wr,Ie,Er)}function uo(Ie,Qe,Ge,nr,pr){na(Ie,Qe,Ge,nr),pr&&na(Ie,Qe+16,Ge,nr+4)}function Ro(Ie,Qe,Ge,nr){GA(Ie,Qe+0,Ge,nr,1),GA(Ie,Qe+32,Ge,nr+128,1)}function Ua(Ie,Qe,Ge,nr){var pr;for(Ie=Ie[Qe+0]+4,pr=0;4>pr;++pr)for(Qe=0;4>Qe;++Qe)jA(Ge,nr,Qe,pr,Ie)}function ia(Ie,Qe,Ge,nr){Ie[Qe+0]&&xA(Ie,Qe+0,Ge,nr),Ie[Qe+16]&&xA(Ie,Qe+16,Ge,nr+4),Ie[Qe+32]&&xA(Ie,Qe+32,Ge,nr+128),Ie[Qe+48]&&xA(Ie,Qe+48,Ge,nr+128+4)}function va(Ie,Qe,Ge,nr){var pr,yr=_e(16);for(pr=0;4>pr;++pr){var wr=Ie[Qe+0+pr]+Ie[Qe+12+pr],Er=Ie[Qe+4+pr]+Ie[Qe+8+pr],Tr=Ie[Qe+4+pr]-Ie[Qe+8+pr],xr=Ie[Qe+0+pr]-Ie[Qe+12+pr];yr[0+pr]=wr+Er,yr[8+pr]=wr-Er,yr[4+pr]=xr+Tr,yr[12+pr]=xr-Tr}for(pr=0;4>pr;++pr)wr=(Ie=yr[0+4*pr]+3)+yr[3+4*pr],Er=yr[1+4*pr]+yr[2+4*pr],Tr=yr[1+4*pr]-yr[2+4*pr],xr=Ie-yr[3+4*pr],Ge[nr+0]=wr+Er>>3,Ge[nr+16]=xr+Tr>>3,Ge[nr+32]=wr-Er>>3,Ge[nr+48]=xr-Tr>>3,nr+=64}function co(Ie,Qe,Ge){var nr,pr=Qe-32,yr=gA,wr=255-Ie[pr-1];for(nr=0;nr<Ge;++nr){var Er,Tr=yr,xr=wr+Ie[Qe-1];for(Er=0;Er<Ge;++Er)Ie[Qe+Er]=Tr[xr+Ie[pr+Er]];Qe+=32}}function ma(Ie,Qe){co(Ie,Qe,4)}function Aa(Ie,Qe){co(Ie,Qe,8)}function La(Ie,Qe){co(Ie,Qe,16)}function io(Ie,Qe){var Ge;for(Ge=0;16>Ge;++Ge)Ee(Ie,Qe+32*Ge,Ie,Qe-32,16)}function Qo(Ie,Qe){var Ge;for(Ge=16;0<Ge;--Ge)Ce(Ie,Qe,Ie[Qe-1],16),Qe+=32}function Do(Ie,Qe,Ge){var nr;for(nr=0;16>nr;++nr)Ce(Qe,Ge+32*nr,Ie,16)}function Ho(Ie,Qe){var Ge,nr=16;for(Ge=0;16>Ge;++Ge)nr+=Ie[Qe-1+32*Ge]+Ie[Qe+Ge-32];Do(nr>>5,Ie,Qe)}function mA(Ie,Qe){var Ge,nr=8;for(Ge=0;16>Ge;++Ge)nr+=Ie[Qe-1+32*Ge];Do(nr>>4,Ie,Qe)}function Na(Ie,Qe){var Ge,nr=8;for(Ge=0;16>Ge;++Ge)nr+=Ie[Qe+Ge-32];Do(nr>>4,Ie,Qe)}function ya(Ie,Qe){Do(128,Ie,Qe)}function Bi(Ie,Qe,Ge){return Ie+2*Qe+Ge+2>>2}function $a(Ie,Qe){var Ge,nr=Qe-32;for(nr=new Uint8Array([Bi(Ie[nr-1],Ie[nr+0],Ie[nr+1]),Bi(Ie[nr+0],Ie[nr+1],Ie[nr+2]),Bi(Ie[nr+1],Ie[nr+2],Ie[nr+3]),Bi(Ie[nr+2],Ie[nr+3],Ie[nr+4])]),Ge=0;4>Ge;++Ge)Ee(Ie,Qe+32*Ge,nr,0,nr.length)}function Ra(Ie,Qe){var Ge=Ie[Qe-1],nr=Ie[Qe-1+32],pr=Ie[Qe-1+64],yr=Ie[Qe-1+96];wn(Ie,Qe+0,16843009*Bi(Ie[Qe-1-32],Ge,nr)),wn(Ie,Qe+32,16843009*Bi(Ge,nr,pr)),wn(Ie,Qe+64,16843009*Bi(nr,pr,yr)),wn(Ie,Qe+96,16843009*Bi(pr,yr,yr))}function Ao(Ie,Qe){var Ge,nr=4;for(Ge=0;4>Ge;++Ge)nr+=Ie[Qe+Ge-32]+Ie[Qe-1+32*Ge];for(nr>>=3,Ge=0;4>Ge;++Ge)Ce(Ie,Qe+32*Ge,nr,4)}function oa(Ie,Qe){var Ge=Ie[Qe-1+0],nr=Ie[Qe-1+32],pr=Ie[Qe-1+64],yr=Ie[Qe-1-32],wr=Ie[Qe+0-32],Er=Ie[Qe+1-32],Tr=Ie[Qe+2-32],xr=Ie[Qe+3-32];Ie[Qe+0+96]=Bi(nr,pr,Ie[Qe-1+96]),Ie[Qe+1+96]=Ie[Qe+0+64]=Bi(Ge,nr,pr),Ie[Qe+2+96]=Ie[Qe+1+64]=Ie[Qe+0+32]=Bi(yr,Ge,nr),Ie[Qe+3+96]=Ie[Qe+2+64]=Ie[Qe+1+32]=Ie[Qe+0+0]=Bi(wr,yr,Ge),Ie[Qe+3+64]=Ie[Qe+2+32]=Ie[Qe+1+0]=Bi(Er,wr,yr),Ie[Qe+3+32]=Ie[Qe+2+0]=Bi(Tr,Er,wr),Ie[Qe+3+0]=Bi(xr,Tr,Er)}function Mo(Ie,Qe){var Ge=Ie[Qe+1-32],nr=Ie[Qe+2-32],pr=Ie[Qe+3-32],yr=Ie[Qe+4-32],wr=Ie[Qe+5-32],Er=Ie[Qe+6-32],Tr=Ie[Qe+7-32];Ie[Qe+0+0]=Bi(Ie[Qe+0-32],Ge,nr),Ie[Qe+1+0]=Ie[Qe+0+32]=Bi(Ge,nr,pr),Ie[Qe+2+0]=Ie[Qe+1+32]=Ie[Qe+0+64]=Bi(nr,pr,yr),Ie[Qe+3+0]=Ie[Qe+2+32]=Ie[Qe+1+64]=Ie[Qe+0+96]=Bi(pr,yr,wr),Ie[Qe+3+32]=Ie[Qe+2+64]=Ie[Qe+1+96]=Bi(yr,wr,Er),Ie[Qe+3+64]=Ie[Qe+2+96]=Bi(wr,Er,Tr),Ie[Qe+3+96]=Bi(Er,Tr,Tr)}function To(Ie,Qe){var Ge=Ie[Qe-1+0],nr=Ie[Qe-1+32],pr=Ie[Qe-1+64],yr=Ie[Qe-1-32],wr=Ie[Qe+0-32],Er=Ie[Qe+1-32],Tr=Ie[Qe+2-32],xr=Ie[Qe+3-32];Ie[Qe+0+0]=Ie[Qe+1+64]=yr+wr+1>>1,Ie[Qe+1+0]=Ie[Qe+2+64]=wr+Er+1>>1,Ie[Qe+2+0]=Ie[Qe+3+64]=Er+Tr+1>>1,Ie[Qe+3+0]=Tr+xr+1>>1,Ie[Qe+0+96]=Bi(pr,nr,Ge),Ie[Qe+0+64]=Bi(nr,Ge,yr),Ie[Qe+0+32]=Ie[Qe+1+96]=Bi(Ge,yr,wr),Ie[Qe+1+32]=Ie[Qe+2+96]=Bi(yr,wr,Er),Ie[Qe+2+32]=Ie[Qe+3+96]=Bi(wr,Er,Tr),Ie[Qe+3+32]=Bi(Er,Tr,xr)}function So(Ie,Qe){var Ge=Ie[Qe+0-32],nr=Ie[Qe+1-32],pr=Ie[Qe+2-32],yr=Ie[Qe+3-32],wr=Ie[Qe+4-32],Er=Ie[Qe+5-32],Tr=Ie[Qe+6-32],xr=Ie[Qe+7-32];Ie[Qe+0+0]=Ge+nr+1>>1,Ie[Qe+1+0]=Ie[Qe+0+64]=nr+pr+1>>1,Ie[Qe+2+0]=Ie[Qe+1+64]=pr+yr+1>>1,Ie[Qe+3+0]=Ie[Qe+2+64]=yr+wr+1>>1,Ie[Qe+0+32]=Bi(Ge,nr,pr),Ie[Qe+1+32]=Ie[Qe+0+96]=Bi(nr,pr,yr),Ie[Qe+2+32]=Ie[Qe+1+96]=Bi(pr,yr,wr),Ie[Qe+3+32]=Ie[Qe+2+96]=Bi(yr,wr,Er),Ie[Qe+3+64]=Bi(wr,Er,Tr),Ie[Qe+3+96]=Bi(Er,Tr,xr)}function wa(Ie,Qe){var Ge=Ie[Qe-1+0],nr=Ie[Qe-1+32],pr=Ie[Qe-1+64],yr=Ie[Qe-1+96];Ie[Qe+0+0]=Ge+nr+1>>1,Ie[Qe+2+0]=Ie[Qe+0+32]=nr+pr+1>>1,Ie[Qe+2+32]=Ie[Qe+0+64]=pr+yr+1>>1,Ie[Qe+1+0]=Bi(Ge,nr,pr),Ie[Qe+3+0]=Ie[Qe+1+32]=Bi(nr,pr,yr),Ie[Qe+3+32]=Ie[Qe+1+64]=Bi(pr,yr,yr),Ie[Qe+3+64]=Ie[Qe+2+64]=Ie[Qe+0+96]=Ie[Qe+1+96]=Ie[Qe+2+96]=Ie[Qe+3+96]=yr}function Ba(Ie,Qe){var Ge=Ie[Qe-1+0],nr=Ie[Qe-1+32],pr=Ie[Qe-1+64],yr=Ie[Qe-1+96],wr=Ie[Qe-1-32],Er=Ie[Qe+0-32],Tr=Ie[Qe+1-32],xr=Ie[Qe+2-32];Ie[Qe+0+0]=Ie[Qe+2+32]=Ge+wr+1>>1,Ie[Qe+0+32]=Ie[Qe+2+64]=nr+Ge+1>>1,Ie[Qe+0+64]=Ie[Qe+2+96]=pr+nr+1>>1,Ie[Qe+0+96]=yr+pr+1>>1,Ie[Qe+3+0]=Bi(Er,Tr,xr),Ie[Qe+2+0]=Bi(wr,Er,Tr),Ie[Qe+1+0]=Ie[Qe+3+32]=Bi(Ge,wr,Er),Ie[Qe+1+32]=Ie[Qe+3+64]=Bi(nr,Ge,wr),Ie[Qe+1+64]=Ie[Qe+3+96]=Bi(pr,nr,Ge),Ie[Qe+1+96]=Bi(yr,pr,nr)}function aa(Ie,Qe){var Ge;for(Ge=0;8>Ge;++Ge)Ee(Ie,Qe+32*Ge,Ie,Qe-32,8)}function sa(Ie,Qe){var Ge;for(Ge=0;8>Ge;++Ge)Ce(Ie,Qe,Ie[Qe-1],8),Qe+=32}function xo(Ie,Qe,Ge){var nr;for(nr=0;8>nr;++nr)Ce(Qe,Ge+32*nr,Ie,8)}function mo(Ie,Qe){var Ge,nr=8;for(Ge=0;8>Ge;++Ge)nr+=Ie[Qe+Ge-32]+Ie[Qe-1+32*Ge];xo(nr>>4,Ie,Qe)}function Fo(Ie,Qe){var Ge,nr=4;for(Ge=0;8>Ge;++Ge)nr+=Ie[Qe+Ge-32];xo(nr>>3,Ie,Qe)}function yo(Ie,Qe){var Ge,nr=4;for(Ge=0;8>Ge;++Ge)nr+=Ie[Qe-1+32*Ge];xo(nr>>3,Ie,Qe)}function Io(Ie,Qe){xo(128,Ie,Qe)}function ko(Ie,Qe,Ge){var nr=Ie[Qe-Ge],pr=Ie[Qe+0],yr=3*(pr-nr)+ki[1020+Ie[Qe-2*Ge]-Ie[Qe+Ge]],wr=Eo[112+(yr+4>>3)];Ie[Qe-Ge]=gA[255+nr+Eo[112+(yr+3>>3)]],Ie[Qe+0]=gA[255+pr-wr]}function ba(Ie,Qe,Ge,nr){var pr=Ie[Qe+0],yr=Ie[Qe+Ge];return Xi[255+Ie[Qe-2*Ge]-Ie[Qe-Ge]]>nr||Xi[255+yr-pr]>nr}function Ea(Ie,Qe,Ge,nr){return 4*Xi[255+Ie[Qe-Ge]-Ie[Qe+0]]+Xi[255+Ie[Qe-2*Ge]-Ie[Qe+Ge]]<=nr}function Pe(Ie,Qe,Ge,nr,pr){var yr=Ie[Qe-3*Ge],wr=Ie[Qe-2*Ge],Er=Ie[Qe-Ge],Tr=Ie[Qe+0],xr=Ie[Qe+Ge],Gr=Ie[Qe+2*Ge],An=Ie[Qe+3*Ge];return 4*Xi[255+Er-Tr]+Xi[255+wr-xr]>nr?0:Xi[255+Ie[Qe-4*Ge]-yr]<=pr&&Xi[255+yr-wr]<=pr&&Xi[255+wr-Er]<=pr&&Xi[255+An-Gr]<=pr&&Xi[255+Gr-xr]<=pr&&Xi[255+xr-Tr]<=pr}function De(Ie,Qe,Ge,nr){var pr=2*nr+1;for(nr=0;16>nr;++nr)Ea(Ie,Qe+nr,Ge,pr)&&ko(Ie,Qe+nr,Ge)}function qe(Ie,Qe,Ge,nr){var pr=2*nr+1;for(nr=0;16>nr;++nr)Ea(Ie,Qe+nr*Ge,1,pr)&&ko(Ie,Qe+nr*Ge,1)}function tr(Ie,Qe,Ge,nr){var pr;for(pr=3;0<pr;--pr)De(Ie,Qe+=4*Ge,Ge,nr)}function lr(Ie,Qe,Ge,nr){var pr;for(pr=3;0<pr;--pr)qe(Ie,Qe+=4,Ge,nr)}function fr(Ie,Qe,Ge,nr,pr,yr,wr,Er){for(yr=2*yr+1;0<pr--;){if(Pe(Ie,Qe,Ge,yr,wr))if(ba(Ie,Qe,Ge,Er))ko(Ie,Qe,Ge);else{var Tr=Ie,xr=Qe,Gr=Ge,An=Tr[xr-2*Gr],an=Tr[xr-Gr],Zr=Tr[xr+0],_n=Tr[xr+Gr],pn=Tr[xr+2*Gr],zr=27*(bn=ki[1020+3*(Zr-an)+ki[1020+An-_n]])+63>>7,Yr=18*bn+63>>7,bn=9*bn+63>>7;Tr[xr-3*Gr]=gA[255+Tr[xr-3*Gr]+bn],Tr[xr-2*Gr]=gA[255+An+Yr],Tr[xr-Gr]=gA[255+an+zr],Tr[xr+0]=gA[255+Zr-zr],Tr[xr+Gr]=gA[255+_n-Yr],Tr[xr+2*Gr]=gA[255+pn-bn]}Qe+=nr}}function Br(Ie,Qe,Ge,nr,pr,yr,wr,Er){for(yr=2*yr+1;0<pr--;){if(Pe(Ie,Qe,Ge,yr,wr))if(ba(Ie,Qe,Ge,Er))ko(Ie,Qe,Ge);else{var Tr=Ie,xr=Qe,Gr=Ge,An=Tr[xr-Gr],an=Tr[xr+0],Zr=Tr[xr+Gr],_n=Eo[112+((pn=3*(an-An))+4>>3)],pn=Eo[112+(pn+3>>3)],zr=_n+1>>1;Tr[xr-2*Gr]=gA[255+Tr[xr-2*Gr]+zr],Tr[xr-Gr]=gA[255+An+pn],Tr[xr+0]=gA[255+an-_n],Tr[xr+Gr]=gA[255+Zr-zr]}Qe+=nr}}function $r(Ie,Qe,Ge,nr,pr,yr){fr(Ie,Qe,Ge,1,16,nr,pr,yr)}function Rr(Ie,Qe,Ge,nr,pr,yr){fr(Ie,Qe,1,Ge,16,nr,pr,yr)}function en(Ie,Qe,Ge,nr,pr,yr){var wr;for(wr=3;0<wr;--wr)Br(Ie,Qe+=4*Ge,Ge,1,16,nr,pr,yr)}function cn(Ie,Qe,Ge,nr,pr,yr){var wr;for(wr=3;0<wr;--wr)Br(Ie,Qe+=4,1,Ge,16,nr,pr,yr)}function Fn(Ie,Qe,Ge,nr,pr,yr,wr,Er){fr(Ie,Qe,pr,1,8,yr,wr,Er),fr(Ge,nr,pr,1,8,yr,wr,Er)}function un(Ie,Qe,Ge,nr,pr,yr,wr,Er){fr(Ie,Qe,1,pr,8,yr,wr,Er),fr(Ge,nr,1,pr,8,yr,wr,Er)}function dn(Ie,Qe,Ge,nr,pr,yr,wr,Er){Br(Ie,Qe+4*pr,pr,1,8,yr,wr,Er),Br(Ge,nr+4*pr,pr,1,8,yr,wr,Er)}function ai(Ie,Qe,Ge,nr,pr,yr,wr,Er){Br(Ie,Qe+4,1,pr,8,yr,wr,Er),Br(Ge,nr+4,1,pr,8,yr,wr,Er)}function vi(){this.ba=new gn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Ln,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function oi(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Ji(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Zi(){this.ua=0,this.Wa=new Sr,this.vb=new Sr,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new mr,this.yc=new Ar}function EA(){this.xb=this.a=0,this.l=new $o,this.ca=new gn,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new ur,this.Pb=0,this.wd=new ur,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Zi,this.ab=0,this.gc=Te(4,Ji),this.Oc=0}function Ni(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new $o,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function fi(Ie,Qe,Ge,nr,pr,yr,wr){for(Ie=Ie==null?0:Ie[Qe+0],Qe=0;Qe<wr;++Qe)pr[yr+Qe]=Ie+Ge[nr+Qe]&255,Ie=pr[yr+Qe]}function lA(Ie,Qe,Ge,nr,pr,yr,wr){var Er;if(Ie==null)fi(null,null,Ge,nr,pr,yr,wr);else for(Er=0;Er<wr;++Er)pr[yr+Er]=Ie[Qe+Er]+Ge[nr+Er]&255}function Ci(Ie,Qe,Ge,nr,pr,yr,wr){if(Ie==null)fi(null,null,Ge,nr,pr,yr,wr);else{var Er,Tr=Ie[Qe+0],xr=Tr,Gr=Tr;for(Er=0;Er<wr;++Er)xr=Gr+(Tr=Ie[Qe+Er])-xr,Gr=Ge[nr+Er]+(-256&xr?0>xr?0:255:xr)&255,xr=Tr,pr[yr+Er]=Gr}}function Di(Ie,Qe,Ge,nr){var pr=Qe.width,yr=Qe.o;if(St(Ie!=null&&Qe!=null),0>Ge||0>=nr||Ge+nr>yr)return null;if(!Ie.Cc){if(Ie.ga==null){var wr;if(Ie.ga=new Ni,(wr=Ie.ga==null)||(wr=Qe.width*Qe.o,St(Ie.Gb.length==0),Ie.Gb=_e(wr),Ie.Uc=0,Ie.Gb==null?wr=0:(Ie.mb=Ie.Gb,Ie.nb=Ie.Uc,Ie.rc=null,wr=1),wr=!wr),!wr){wr=Ie.ga;var Er=Ie.Fa,Tr=Ie.P,xr=Ie.qc,Gr=Ie.mb,An=Ie.nb,an=Tr+1,Zr=xr-1,_n=wr.l;if(St(Er!=null&&Gr!=null&&Qe!=null),zo[0]=null,zo[1]=fi,zo[2]=lA,zo[3]=Ci,wr.ca=Gr,wr.tb=An,wr.c=Qe.width,wr.i=Qe.height,St(0<wr.c&&0<wr.i),1>=xr)Qe=0;else if(wr.$a=Er[Tr+0]>>0&3,wr.Z=Er[Tr+0]>>2&3,wr.Lc=Er[Tr+0]>>4&3,Tr=Er[Tr+0]>>6&3,0>wr.$a||1<wr.$a||4<=wr.Z||1<wr.Lc||Tr)Qe=0;else if(_n.put=Jn,_n.ac=Bn,_n.bc=pi,_n.ma=wr,_n.width=Qe.width,_n.height=Qe.height,_n.Da=Qe.Da,_n.v=Qe.v,_n.va=Qe.va,_n.j=Qe.j,_n.o=Qe.o,wr.$a)t:{St(wr.$a==1),Qe=vA();e:for(;;){if(Qe==null){Qe=0;break t}if(St(wr!=null),wr.mc=Qe,Qe.c=wr.c,Qe.i=wr.i,Qe.l=wr.l,Qe.l.ma=wr,Qe.l.width=wr.c,Qe.l.height=wr.i,Qe.a=0,Qr(Qe.m,Er,an,Zr),!OA(wr.c,wr.i,1,Qe,null)||(Qe.ab==1&&Qe.gc[0].hc==3&&PA(Qe.s)?(wr.ic=1,Er=Qe.c*Qe.i,Qe.Ta=null,Qe.Ua=0,Qe.V=_e(Er),Qe.Ba=0,Qe.V==null?(Qe.a=1,Qe=0):Qe=1):(wr.ic=0,Qe=WA(Qe,wr.c)),!Qe))break e;Qe=1;break t}wr.mc=null,Qe=0}else Qe=Zr>=wr.c*wr.i;wr=!Qe}if(wr)return null;Ie.ga.Lc!=1?Ie.Ga=0:nr=yr-Ge}St(Ie.ga!=null),St(Ge+nr<=yr);t:{if(Qe=(Er=Ie.ga).c,yr=Er.l.o,Er.$a==0){if(an=Ie.rc,Zr=Ie.Vc,_n=Ie.Fa,Tr=Ie.P+1+Ge*Qe,xr=Ie.mb,Gr=Ie.nb+Ge*Qe,St(Tr<=Ie.P+Ie.qc),Er.Z!=0)for(St(zo[Er.Z]!=null),wr=0;wr<nr;++wr)zo[Er.Z](an,Zr,_n,Tr,xr,Gr,Qe),an=xr,Zr=Gr,Gr+=Qe,Tr+=Qe;else for(wr=0;wr<nr;++wr)Ee(xr,Gr,_n,Tr,Qe),an=xr,Zr=Gr,Gr+=Qe,Tr+=Qe;Ie.rc=an,Ie.Vc=Zr}else{if(St(Er.mc!=null),Qe=Ge+nr,St((wr=Er.mc)!=null),St(Qe<=wr.i),wr.C>=Qe)Qe=1;else if(Er.ic||rn(),Er.ic){Er=wr.V,an=wr.Ba,Zr=wr.c;var pn=wr.i,zr=(_n=1,Tr=wr.$/Zr,xr=wr.$%Zr,Gr=wr.m,An=wr.s,wr.$),Yr=Zr*pn,bn=Zr*Qe,Pn=An.wc,En=zr<bn?Ii(An,xr,Tr):null;St(zr<=Yr),St(Qe<=pn),St(PA(An));e:for(;;){for(;!Gr.h&&zr<bn;){if(xr&Pn||(En=Ii(An,xr,Tr)),St(En!=null),kr(Gr),256>(pn=Ki(En.G[0],En.H[0],Gr)))Er[an+zr]=pn,++zr,++xr>=Zr&&(xr=0,++Tr<=Qe&&!(Tr%16)&&sA(wr,Tr));else{if(!(280>pn)){_n=0;break e}pn=Fi(pn-256,Gr);var Zn,jn=Ki(En.G[4],En.H[4],Gr);if(kr(Gr),!(zr>=(jn=Ui(Zr,jn=Fi(jn,Gr)))&&Yr-zr>=pn)){_n=0;break e}for(Zn=0;Zn<pn;++Zn)Er[an+zr+Zn]=Er[an+zr+Zn-jn];for(zr+=pn,xr+=pn;xr>=Zr;)xr-=Zr,++Tr<=Qe&&!(Tr%16)&&sA(wr,Tr);zr<bn&&xr&Pn&&(En=Ii(An,xr,Tr))}St(Gr.h==Fr(Gr))}sA(wr,Tr>Qe?Qe:Tr);break e}!_n||Gr.h&&zr<Yr?(_n=0,wr.a=Gr.h?5:3):wr.$=zr,Qe=_n}else Qe=rA(wr,wr.V,wr.Ba,wr.c,wr.i,Qe,lo);if(!Qe){nr=0;break t}}Ge+nr>=yr&&(Ie.Cc=1),nr=1}if(!nr)return null;if(Ie.Cc&&((nr=Ie.ga)!=null&&(nr.mc=null),Ie.ga=null,0<Ie.Ga))return alert("todo:WebPDequantizeLevels"),null}return Ie.nb+Ge*pr}function Me(Ie,Qe,Ge,nr,pr,yr){for(;0<pr--;){var wr,Er=Ie,Tr=Qe+(Ge?1:0),xr=Ie,Gr=Qe+(Ge?0:3);for(wr=0;wr<nr;++wr){var An=xr[Gr+4*wr];An!=255&&(An*=32897,Er[Tr+4*wr+0]=Er[Tr+4*wr+0]*An>>23,Er[Tr+4*wr+1]=Er[Tr+4*wr+1]*An>>23,Er[Tr+4*wr+2]=Er[Tr+4*wr+2]*An>>23)}Qe+=yr}}function hr(Ie,Qe,Ge,nr,pr){for(;0<nr--;){var yr;for(yr=0;yr<Ge;++yr){var wr=Ie[Qe+2*yr+0],Er=15&(xr=Ie[Qe+2*yr+1]),Tr=4369*Er,xr=(240&xr|xr>>4)*Tr>>16;Ie[Qe+2*yr+0]=(240&wr|wr>>4)*Tr>>16&240|(15&wr|wr<<4)*Tr>>16>>4&15,Ie[Qe+2*yr+1]=240&xr|Er}Qe+=pr}}function Ir(Ie,Qe,Ge,nr,pr,yr,wr,Er){var Tr,xr,Gr=255;for(xr=0;xr<pr;++xr){for(Tr=0;Tr<nr;++Tr){var An=Ie[Qe+Tr];yr[wr+4*Tr]=An,Gr&=An}Qe+=Ge,wr+=Er}return Gr!=255}function Hr(Ie,Qe,Ge,nr,pr){var yr;for(yr=0;yr<pr;++yr)Ge[nr+yr]=Ie[Qe+yr]>>8}function rn(){ni=Me,Kn=hr,qn=Ir,li=Hr}function hn(Ie,Qe,Ge){Ye[Ie]=function(nr,pr,yr,wr,Er,Tr,xr,Gr,An,an,Zr,_n,pn,zr,Yr,bn,Pn){var En,Zn=Pn-1>>1,jn=Er[Tr+0]|xr[Gr+0]<<16,gi=An[an+0]|Zr[_n+0]<<16;St(nr!=null);var Wn=3*jn+gi+131074>>2;for(Qe(nr[pr+0],255&Wn,Wn>>16,pn,zr),yr!=null&&(Wn=3*gi+jn+131074>>2,Qe(yr[wr+0],255&Wn,Wn>>16,Yr,bn)),En=1;En<=Zn;++En){var Ri=Er[Tr+En]|xr[Gr+En]<<16,Hi=An[an+En]|Zr[_n+En]<<16,$i=jn+Ri+gi+Hi+524296,Li=$i+2*(Ri+gi)>>3;Wn=Li+jn>>1,jn=($i=$i+2*(jn+Hi)>>3)+Ri>>1,Qe(nr[pr+2*En-1],255&Wn,Wn>>16,pn,zr+(2*En-1)*Ge),Qe(nr[pr+2*En-0],255&jn,jn>>16,pn,zr+(2*En-0)*Ge),yr!=null&&(Wn=$i+gi>>1,jn=Li+Hi>>1,Qe(yr[wr+2*En-1],255&Wn,Wn>>16,Yr,bn+(2*En-1)*Ge),Qe(yr[wr+2*En+0],255&jn,jn>>16,Yr,bn+(2*En+0)*Ge)),jn=Ri,gi=Hi}1&Pn||(Wn=3*jn+gi+131074>>2,Qe(nr[pr+Pn-1],255&Wn,Wn>>16,pn,zr+(Pn-1)*Ge),yr!=null&&(Wn=3*gi+jn+131074>>2,Qe(yr[wr+Pn-1],255&Wn,Wn>>16,Yr,bn+(Pn-1)*Ge)))}}function xn(){ao[Ka]=hl,ao[ja]=Fs,ao[Cs]=pl,ao[Ga]=Is,ao[qa]=Ps,ao[ss]=Os,ao[_s]=dl,ao[ls]=Fs,ao[us]=Is,ao[za]=Ps,ao[cs]=Os}function kn(Ie){return Ie&~gl?0>Ie?0:255:Ie>>Us}function ri(Ie,Qe){return kn((19077*Ie>>8)+(26149*Qe>>8)-14234)}function Ei(Ie,Qe,Ge){return kn((19077*Ie>>8)-(6419*Qe>>8)-(13320*Ge>>8)+8708)}function di(Ie,Qe){return kn((19077*Ie>>8)+(33050*Qe>>8)-17685)}function xi(Ie,Qe,Ge,nr,pr){nr[pr+0]=ri(Ie,Ge),nr[pr+1]=Ei(Ie,Qe,Ge),nr[pr+2]=di(Ie,Qe)}function ci(Ie,Qe,Ge,nr,pr){nr[pr+0]=di(Ie,Qe),nr[pr+1]=Ei(Ie,Qe,Ge),nr[pr+2]=ri(Ie,Ge)}function Qi(Ie,Qe,Ge,nr,pr){var yr=Ei(Ie,Qe,Ge);Qe=yr<<3&224|di(Ie,Qe)>>3,nr[pr+0]=248&ri(Ie,Ge)|yr>>5,nr[pr+1]=Qe}function nA(Ie,Qe,Ge,nr,pr){var yr=240&di(Ie,Qe)|15;nr[pr+0]=240&ri(Ie,Ge)|Ei(Ie,Qe,Ge)>>4,nr[pr+1]=yr}function uA(Ie,Qe,Ge,nr,pr){nr[pr+0]=255,xi(Ie,Qe,Ge,nr,pr+1)}function cA(Ie,Qe,Ge,nr,pr){ci(Ie,Qe,Ge,nr,pr),nr[pr+3]=255}function LA(Ie,Qe,Ge,nr,pr){xi(Ie,Qe,Ge,nr,pr),nr[pr+3]=255}function HA(Ie,Qe){return 0>Ie?0:Ie>Qe?Qe:Ie}function XA(Ie,Qe,Ge){Ye[Ie]=function(nr,pr,yr,wr,Er,Tr,xr,Gr,An){for(var an=Gr+(-2&An)*Ge;Gr!=an;)Qe(nr[pr+0],yr[wr+0],Er[Tr+0],xr,Gr),Qe(nr[pr+1],yr[wr+0],Er[Tr+0],xr,Gr+Ge),pr+=2,++wr,++Tr,Gr+=2*Ge;1&An&&Qe(nr[pr+0],yr[wr+0],Er[Tr+0],xr,Gr)}}function Ca(Ie,Qe,Ge){return Ge==0?Ie==0?Qe==0?6:5:Qe==0?4:0:Ge}function la(Ie,Qe,Ge,nr,pr){switch(Ie>>>30){case 3:GA(Qe,Ge,nr,pr,0);break;case 2:Wi(Qe,Ge,nr,pr);break;case 1:xA(Qe,Ge,nr,pr)}}function ua(Ie,Qe){var Ge,nr,pr=Qe.M,yr=Qe.Nb,wr=Ie.oc,Er=Ie.pc+40,Tr=Ie.oc,xr=Ie.pc+584,Gr=Ie.oc,An=Ie.pc+600;for(Ge=0;16>Ge;++Ge)wr[Er+32*Ge-1]=129;for(Ge=0;8>Ge;++Ge)Tr[xr+32*Ge-1]=129,Gr[An+32*Ge-1]=129;for(0<pr?wr[Er-1-32]=Tr[xr-1-32]=Gr[An-1-32]=129:(Ce(wr,Er-32-1,127,21),Ce(Tr,xr-32-1,127,9),Ce(Gr,An-32-1,127,9)),nr=0;nr<Ie.za;++nr){var an=Qe.ya[Qe.aa+nr];if(0<nr){for(Ge=-1;16>Ge;++Ge)Ee(wr,Er+32*Ge-4,wr,Er+32*Ge+12,4);for(Ge=-1;8>Ge;++Ge)Ee(Tr,xr+32*Ge-4,Tr,xr+32*Ge+4,4),Ee(Gr,An+32*Ge-4,Gr,An+32*Ge+4,4)}var Zr=Ie.Gd,_n=Ie.Hd+nr,pn=an.ad,zr=an.Hc;if(0<pr&&(Ee(wr,Er-32,Zr[_n].y,0,16),Ee(Tr,xr-32,Zr[_n].f,0,8),Ee(Gr,An-32,Zr[_n].ea,0,8)),an.Za){var Yr=wr,bn=Er-32+16;for(0<pr&&(nr>=Ie.za-1?Ce(Yr,bn,Zr[_n].y[15],4):Ee(Yr,bn,Zr[_n+1].y,0,4)),Ge=0;4>Ge;Ge++)Yr[bn+128+Ge]=Yr[bn+256+Ge]=Yr[bn+384+Ge]=Yr[bn+0+Ge];for(Ge=0;16>Ge;++Ge,zr<<=2)Yr=wr,bn=Er+Ns[Ge],go[an.Ob[Ge]](Yr,bn),la(zr,pn,16*+Ge,Yr,bn)}else if(Yr=Ca(nr,pr,an.Ob[0]),qo[Yr](wr,Er),zr!=0)for(Ge=0;16>Ge;++Ge,zr<<=2)la(zr,pn,16*+Ge,wr,Er+Ns[Ge]);for(Ge=an.Gc,Yr=Ca(nr,pr,an.Dd),Uo[Yr](Tr,xr),Uo[Yr](Gr,An),zr=pn,Yr=Tr,bn=xr,255&(an=Ge>>0)&&(170&an?Oo(zr,256,Yr,bn):FA(zr,256,Yr,bn)),an=Gr,zr=An,255&(Ge>>=8)&&(170&Ge?Oo(pn,320,an,zr):FA(pn,320,an,zr)),pr<Ie.Ub-1&&(Ee(Zr[_n].y,0,wr,Er+480,16),Ee(Zr[_n].f,0,Tr,xr+224,8),Ee(Zr[_n].ea,0,Gr,An+224,8)),Ge=8*yr*Ie.B,Zr=Ie.sa,_n=Ie.ta+16*nr+16*yr*Ie.R,pn=Ie.qa,an=Ie.ra+8*nr+Ge,zr=Ie.Ha,Yr=Ie.Ia+8*nr+Ge,Ge=0;16>Ge;++Ge)Ee(Zr,_n+Ge*Ie.R,wr,Er+32*Ge,16);for(Ge=0;8>Ge;++Ge)Ee(pn,an+Ge*Ie.B,Tr,xr+32*Ge,8),Ee(zr,Yr+Ge*Ie.B,Gr,An+32*Ge,8)}}function fo(Ie,Qe,Ge,nr,pr,yr,wr,Er,Tr){var xr=[0],Gr=[0],An=0,an=Tr!=null?Tr.kd:0,Zr=Tr??new oi;if(Ie==null||12>Ge)return 7;Zr.data=Ie,Zr.w=Qe,Zr.ha=Ge,Qe=[Qe],Ge=[Ge],Zr.gb=[Zr.gb];t:{var _n=Qe,pn=Ge,zr=Zr.gb;if(St(Ie!=null),St(pn!=null),St(zr!=null),zr[0]=0,12<=pn[0]&&!Ae(Ie,_n[0],"RIFF")){if(Ae(Ie,_n[0]+8,"WEBP")){zr=3;break t}var Yr=In(Ie,_n[0]+4);if(12>Yr||4294967286<Yr){zr=3;break t}if(an&&Yr>pn[0]-8){zr=7;break t}zr[0]=Yr,_n[0]+=12,pn[0]-=12}zr=0}if(zr!=0)return zr;for(Yr=0<Zr.gb[0],Ge=Ge[0];;){t:{var bn=Ie;pn=Qe,zr=Ge;var Pn=xr,En=Gr,Zn=_n=[0];if((Wn=An=[An])[0]=0,8>zr[0])zr=7;else{if(!Ae(bn,pn[0],"VP8X")){if(In(bn,pn[0]+4)!=10){zr=3;break t}if(18>zr[0]){zr=7;break t}var jn=In(bn,pn[0]+8),gi=1+On(bn,pn[0]+12);if(2147483648<=gi*(bn=1+On(bn,pn[0]+15))){zr=3;break t}Zn!=null&&(Zn[0]=jn),Pn!=null&&(Pn[0]=gi),En!=null&&(En[0]=bn),pn[0]+=18,zr[0]-=18,Wn[0]=1}zr=0}}if(An=An[0],_n=_n[0],zr!=0)return zr;if(pn=!!(2&_n),!Yr&&An)return 3;if(yr!=null&&(yr[0]=!!(16&_n)),wr!=null&&(wr[0]=pn),Er!=null&&(Er[0]=0),wr=xr[0],_n=Gr[0],An&&pn&&Tr==null){zr=0;break}if(4>Ge){zr=7;break}if(Yr&&An||!Yr&&!An&&!Ae(Ie,Qe[0],"ALPH")){Ge=[Ge],Zr.na=[Zr.na],Zr.P=[Zr.P],Zr.Sa=[Zr.Sa];t:{jn=Ie,zr=Qe,Yr=Ge;var Wn=Zr.gb;Pn=Zr.na,En=Zr.P,Zn=Zr.Sa,gi=22,St(jn!=null),St(Yr!=null),bn=zr[0];var Ri=Yr[0];for(St(Pn!=null),St(Zn!=null),Pn[0]=null,En[0]=null,Zn[0]=0;;){if(zr[0]=bn,Yr[0]=Ri,8>Ri){zr=7;break t}var Hi=In(jn,bn+4);if(4294967286<Hi){zr=3;break t}var $i=8+Hi+1&-2;if(gi+=$i,0<Wn&&gi>Wn){zr=3;break t}if(!Ae(jn,bn,"VP8 ")||!Ae(jn,bn,"VP8L")){zr=0;break t}if(Ri[0]<$i){zr=7;break t}Ae(jn,bn,"ALPH")||(Pn[0]=jn,En[0]=bn+8,Zn[0]=Hi),bn+=$i,Ri-=$i}}if(Ge=Ge[0],Zr.na=Zr.na[0],Zr.P=Zr.P[0],Zr.Sa=Zr.Sa[0],zr!=0)break}Ge=[Ge],Zr.Ja=[Zr.Ja],Zr.xa=[Zr.xa];t:if(Wn=Ie,zr=Qe,Yr=Ge,Pn=Zr.gb[0],En=Zr.Ja,Zn=Zr.xa,jn=zr[0],bn=!Ae(Wn,jn,"VP8 "),gi=!Ae(Wn,jn,"VP8L"),St(Wn!=null),St(Yr!=null),St(En!=null),St(Zn!=null),8>Yr[0])zr=7;else{if(bn||gi){if(Wn=In(Wn,jn+4),12<=Pn&&Wn>Pn-12){zr=3;break t}if(an&&Wn>Yr[0]-8){zr=7;break t}En[0]=Wn,zr[0]+=8,Yr[0]-=8,Zn[0]=gi}else Zn[0]=5<=Yr[0]&&Wn[jn+0]==47&&!(Wn[jn+4]>>5),En[0]=Yr[0];zr=0}if(Ge=Ge[0],Zr.Ja=Zr.Ja[0],Zr.xa=Zr.xa[0],Qe=Qe[0],zr!=0)break;if(4294967286<Zr.Ja)return 3;if(Er==null||pn||(Er[0]=Zr.xa?2:1),wr=[wr],_n=[_n],Zr.xa){if(5>Ge){zr=7;break}Er=wr,an=_n,pn=yr,Ie==null||5>Ge?Ie=0:5<=Ge&&Ie[Qe+0]==47&&!(Ie[Qe+4]>>5)?(Yr=[0],Wn=[0],Pn=[0],Qr(En=new ur,Ie,Qe,Ge),Mn(En,Yr,Wn,Pn)?(Er!=null&&(Er[0]=Yr[0]),an!=null&&(an[0]=Wn[0]),pn!=null&&(pn[0]=Pn[0]),Ie=1):Ie=0):Ie=0}else{if(10>Ge){zr=7;break}Er=_n,Ie==null||10>Ge||!_o(Ie,Qe+3,Ge-3)?Ie=0:(an=Ie[Qe+0]|Ie[Qe+1]<<8|Ie[Qe+2]<<16,pn=16383&(Ie[Qe+7]<<8|Ie[Qe+6]),Ie=16383&(Ie[Qe+9]<<8|Ie[Qe+8]),1&an||3<(an>>1&7)||!(an>>4&1)||an>>5>=Zr.Ja||!pn||!Ie?Ie=0:(wr&&(wr[0]=pn),Er&&(Er[0]=Ie),Ie=1))}if(!Ie||(wr=wr[0],_n=_n[0],An&&(xr[0]!=wr||Gr[0]!=_n)))return 3;Tr!=null&&(Tr[0]=Zr,Tr.offset=Qe-Tr.w,St(4294967286>Qe-Tr.w),St(Tr.offset==Tr.ha-Ge));break}return zr==0||zr==7&&An&&Tr==null?(yr!=null&&(yr[0]|=Zr.na!=null&&0<Zr.na.length),nr!=null&&(nr[0]=wr),pr!=null&&(pr[0]=_n),0):zr}function ca(Ie,Qe,Ge){var nr=Qe.width,pr=Qe.height,yr=0,wr=0,Er=nr,Tr=pr;if(Qe.Da=Ie!=null&&0<Ie.Da,Qe.Da&&(Er=Ie.cd,Tr=Ie.bd,yr=Ie.v,wr=Ie.j,11>Ge||(yr&=-2,wr&=-2),0>yr||0>wr||0>=Er||0>=Tr||yr+Er>nr||wr+Tr>pr))return 0;if(Qe.v=yr,Qe.j=wr,Qe.va=yr+Er,Qe.o=wr+Tr,Qe.U=Er,Qe.T=Tr,Qe.da=Ie!=null&&0<Ie.da,Qe.da){if(!ti(Er,Tr,Ge=[Ie.ib],yr=[Ie.hb]))return 0;Qe.ib=Ge[0],Qe.hb=yr[0]}return Qe.ob=Ie!=null&&Ie.ob,Qe.Kb=Ie==null||!Ie.Sd,Qe.da&&(Qe.ob=Qe.ib<3*nr/4&&Qe.hb<3*pr/4,Qe.Kb=0),1}function fa(Ie){if(Ie==null)return 2;if(11>Ie.S){var Qe=Ie.f.RGBA;Qe.fb+=(Ie.height-1)*Qe.A,Qe.A=-Qe.A}else Qe=Ie.f.kb,Ie=Ie.height,Qe.O+=(Ie-1)*Qe.fa,Qe.fa=-Qe.fa,Qe.N+=(Ie-1>>1)*Qe.Ab,Qe.Ab=-Qe.Ab,Qe.W+=(Ie-1>>1)*Qe.Db,Qe.Db=-Qe.Db,Qe.F!=null&&(Qe.J+=(Ie-1)*Qe.lb,Qe.lb=-Qe.lb);return 0}function Vo(Ie,Qe,Ge,nr){if(nr==null||0>=Ie||0>=Qe)return 2;if(Ge!=null){if(Ge.Da){var pr=Ge.cd,yr=Ge.bd,wr=-2&Ge.v,Er=-2&Ge.j;if(0>wr||0>Er||0>=pr||0>=yr||wr+pr>Ie||Er+yr>Qe)return 2;Ie=pr,Qe=yr}if(Ge.da){if(!ti(Ie,Qe,pr=[Ge.ib],yr=[Ge.hb]))return 2;Ie=pr[0],Qe=yr[0]}}nr.width=Ie,nr.height=Qe;t:{var Tr=nr.width,xr=nr.height;if(Ie=nr.S,0>=Tr||0>=xr||!(Ie>=Ka&&13>Ie))Ie=2;else{if(0>=nr.Rd&&nr.sd==null){wr=yr=pr=Qe=0;var Gr=(Er=Tr*$s[Ie])*xr;if(11>Ie||(yr=(xr+1)/2*(Qe=(Tr+1)/2),Ie==12&&(wr=(pr=Tr)*xr)),(xr=_e(Gr+2*yr+wr))==null){Ie=1;break t}nr.sd=xr,11>Ie?((Tr=nr.f.RGBA).eb=xr,Tr.fb=0,Tr.A=Er,Tr.size=Gr):((Tr=nr.f.kb).y=xr,Tr.O=0,Tr.fa=Er,Tr.Fd=Gr,Tr.f=xr,Tr.N=0+Gr,Tr.Ab=Qe,Tr.Cd=yr,Tr.ea=xr,Tr.W=0+Gr+yr,Tr.Db=Qe,Tr.Ed=yr,Ie==12&&(Tr.F=xr,Tr.J=0+Gr+2*yr),Tr.Tc=wr,Tr.lb=pr)}if(Qe=1,pr=nr.S,yr=nr.width,wr=nr.height,pr>=Ka&&13>pr)if(11>pr)Ie=nr.f.RGBA,Qe&=(Er=Math.abs(Ie.A))*(wr-1)+yr<=Ie.size,Qe&=Er>=yr*$s[pr],Qe&=Ie.eb!=null;else{Ie=nr.f.kb,Er=(yr+1)/2,Gr=(wr+1)/2,Tr=Math.abs(Ie.fa),xr=Math.abs(Ie.Ab);var An=Math.abs(Ie.Db),an=Math.abs(Ie.lb),Zr=an*(wr-1)+yr;Qe&=Tr*(wr-1)+yr<=Ie.Fd,Qe&=xr*(Gr-1)+Er<=Ie.Cd,Qe=(Qe&=An*(Gr-1)+Er<=Ie.Ed)&Tr>=yr&xr>=Er&An>=Er,Qe&=Ie.y!=null,Qe&=Ie.f!=null,Qe&=Ie.ea!=null,pr==12&&(Qe&=an>=yr,Qe&=Zr<=Ie.Tc,Qe&=Ie.F!=null)}else Qe=0;Ie=Qe?0:2}}return Ie!=0||Ge!=null&&Ge.fd&&(Ie=fa(nr)),Ie}var iA=64,Ko=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],wo=24,NA=32,MA=8,CA=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Nn("Predictor0","PredictorAdd0"),Ye.Predictor0=function(){return 4278190080},Ye.Predictor1=function(Ie){return Ie},Ye.Predictor2=function(Ie,Qe,Ge){return Qe[Ge+0]},Ye.Predictor3=function(Ie,Qe,Ge){return Qe[Ge+1]},Ye.Predictor4=function(Ie,Qe,Ge){return Qe[Ge-1]},Ye.Predictor5=function(Ie,Qe,Ge){return $n($n(Ie,Qe[Ge+1]),Qe[Ge+0])},Ye.Predictor6=function(Ie,Qe,Ge){return $n(Ie,Qe[Ge-1])},Ye.Predictor7=function(Ie,Qe,Ge){return $n(Ie,Qe[Ge+0])},Ye.Predictor8=function(Ie,Qe,Ge){return $n(Qe[Ge-1],Qe[Ge+0])},Ye.Predictor9=function(Ie,Qe,Ge){return $n(Qe[Ge+0],Qe[Ge+1])},Ye.Predictor10=function(Ie,Qe,Ge){return $n($n(Ie,Qe[Ge-1]),$n(Qe[Ge+0],Qe[Ge+1]))},Ye.Predictor11=function(Ie,Qe,Ge){var nr=Qe[Ge+0];return 0>=ii(nr>>24&255,Ie>>24&255,(Qe=Qe[Ge-1])>>24&255)+ii(nr>>16&255,Ie>>16&255,Qe>>16&255)+ii(nr>>8&255,Ie>>8&255,Qe>>8&255)+ii(255&nr,255&Ie,255&Qe)?nr:Ie},Ye.Predictor12=function(Ie,Qe,Ge){var nr=Qe[Ge+0];return(zn((Ie>>24&255)+(nr>>24&255)-((Qe=Qe[Ge-1])>>24&255))<<24|zn((Ie>>16&255)+(nr>>16&255)-(Qe>>16&255))<<16|zn((Ie>>8&255)+(nr>>8&255)-(Qe>>8&255))<<8|zn((255&Ie)+(255&nr)-(255&Qe)))>>>0},Ye.Predictor13=function(Ie,Qe,Ge){var nr=Qe[Ge-1];return(Gn((Ie=$n(Ie,Qe[Ge+0]))>>24&255,nr>>24&255)<<24|Gn(Ie>>16&255,nr>>16&255)<<16|Gn(Ie>>8&255,nr>>8&255)<<8|Gn(Ie>>0&255,nr>>0&255))>>>0};var Ta=Ye.PredictorAdd0;Ye.PredictorAdd1=ui,Nn("Predictor2","PredictorAdd2"),Nn("Predictor3","PredictorAdd3"),Nn("Predictor4","PredictorAdd4"),Nn("Predictor5","PredictorAdd5"),Nn("Predictor6","PredictorAdd6"),Nn("Predictor7","PredictorAdd7"),Nn("Predictor8","PredictorAdd8"),Nn("Predictor9","PredictorAdd9"),Nn("Predictor10","PredictorAdd10"),Nn("Predictor11","PredictorAdd11"),Nn("Predictor12","PredictorAdd12"),Nn("Predictor13","PredictorAdd13");var jo=Ye.PredictorAdd2;hi("ColorIndexInverseTransform","MapARGB","32b",function(Ie){return Ie>>8&255},function(Ie){return Ie}),hi("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(Ie){return Ie},function(Ie){return Ie>>8&255});var Sa,Si=Ye.ColorIndexInverseTransform,ho=Ye.MapARGB,$A=Ye.VP8LColorIndexInverseTransformAlpha,RA=Ye.MapAlpha,oo=Ye.VP8LPredictorsAdd=[];oo.length=16,(Ye.VP8LPredictors=[]).length=16,(Ye.VP8LPredictorsAdd_C=[]).length=16,(Ye.VP8LPredictors_C=[]).length=16;var Bo,QA,_A,po,TA,YA,Po,GA,Wi,Oo,xA,FA,bo,Go,ha,Cr,Nr,jr,vn,tn,yn,Sn,Qn,Dn,ni,Kn,qn,li,bi=_e(511),si=_e(2041),tA=_e(225),AA=_e(767),yA=0,ki=si,Eo=tA,gA=AA,Xi=bi,Ka=0,ja=1,Cs=2,Ga=3,qa=4,ss=5,_s=6,ls=7,us=8,za=9,cs=10,Js=[2,3,7],Zs=[3,3,11],Ts=[280,256,256,256,40],tl=[0,1,1,1,0],el=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],rl=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],nl=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],il=8,fs=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],hs=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Qa=null,Al=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],ol=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Ss=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],al=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],sl=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],ll=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],ul=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],qo=[],go=[],Uo=[],cl=1,xs=2,zo=[],ao=[];hn("UpsampleRgbLinePair",xi,3),hn("UpsampleBgrLinePair",ci,3),hn("UpsampleRgbaLinePair",LA,4),hn("UpsampleBgraLinePair",cA,4),hn("UpsampleArgbLinePair",uA,4),hn("UpsampleRgba4444LinePair",nA,2),hn("UpsampleRgb565LinePair",Qi,2);var hl=Ye.UpsampleRgbLinePair,pl=Ye.UpsampleBgrLinePair,Fs=Ye.UpsampleRgbaLinePair,Is=Ye.UpsampleBgraLinePair,Ps=Ye.UpsampleArgbLinePair,Os=Ye.UpsampleRgba4444LinePair,dl=Ye.UpsampleRgb565LinePair,Wa=16,Xa=1<<Wa-1,Da=-227,ps=482,Us=6,gl=(256<<Us)-1,Ls=0,vl=_e(256),ml=_e(256),yl=_e(256),wl=_e(256),Bl=_e(ps-Da),bl=_e(ps-Da);XA("YuvToRgbRow",xi,3),XA("YuvToBgrRow",ci,3),XA("YuvToRgbaRow",LA,4),XA("YuvToBgraRow",cA,4),XA("YuvToArgbRow",uA,4),XA("YuvToRgba4444Row",nA,2),XA("YuvToRgb565Row",Qi,2);var Ns=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ya=[0,2,8],El=[8,7,6,4,4,2,2,2,1,1,1,1],Cl=1;this.WebPDecodeRGBA=function(Ie,Qe,Ge,nr,pr){var yr=ja,wr=new vi,Er=new gn;wr.ba=Er,Er.S=yr,Er.width=[Er.width],Er.height=[Er.height];var Tr=Er.width,xr=Er.height,Gr=new mn;if(Gr==null||Ie==null)var An=2;else St(Gr!=null),An=fo(Ie,Qe,Ge,Gr.width,Gr.height,Gr.Pd,Gr.Qd,Gr.format,null);if(An!=0?Tr=0:(Tr!=null&&(Tr[0]=Gr.width[0]),xr!=null&&(xr[0]=Gr.height[0]),Tr=1),Tr){Er.width=Er.width[0],Er.height=Er.height[0],nr!=null&&(nr[0]=Er.width),pr!=null&&(pr[0]=Er.height);t:{if(nr=new $o,(pr=new oi).data=Ie,pr.w=Qe,pr.ha=Ge,pr.kd=1,Qe=[0],St(pr!=null),((Ie=fo(pr.data,pr.w,pr.ha,null,null,null,Qe,null,pr))==0||Ie==7)&&Qe[0]&&(Ie=4),(Qe=Ie)==0){if(St(wr!=null),nr.data=pr.data,nr.w=pr.w+pr.offset,nr.ha=pr.ha-pr.offset,nr.put=Jn,nr.ac=Bn,nr.bc=pi,nr.ma=wr,pr.xa){if((Ie=vA())==null){wr=1;break t}if(function(an,Zr){var _n=[0],pn=[0],zr=[0];e:for(;;){if(an==null)return 0;if(Zr==null)return an.a=2,0;if(an.l=Zr,an.a=0,Qr(an.m,Zr.data,Zr.w,Zr.ha),!Mn(an.m,_n,pn,zr)){an.a=3;break e}if(an.xb=xs,Zr.width=_n[0],Zr.height=pn[0],!OA(_n[0],pn[0],1,an,null))break e;return 1}return St(an.a!=0),0}(Ie,nr)){if(nr=(Qe=Vo(nr.width,nr.height,wr.Oa,wr.ba))==0){e:{nr=Ie;r:for(;;){if(nr==null){nr=0;break e}if(St(nr.s.yc!=null),St(nr.s.Ya!=null),St(0<nr.s.Wb),St((Ge=nr.l)!=null),St((pr=Ge.ma)!=null),nr.xb!=0){if(nr.ca=pr.ba,nr.tb=pr.tb,St(nr.ca!=null),!ca(pr.Oa,Ge,Ga)){nr.a=2;break r}if(!WA(nr,Ge.width)||Ge.da)break r;if((Ge.da||dr(nr.ca.S))&&rn(),11>nr.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),nr.ca.f.kb.F!=null&&rn()),nr.Pb&&0<nr.s.ua&&nr.s.vb.X==null&&!Xn(nr.s.vb,nr.s.Wa.Xa)){nr.a=1;break r}nr.xb=0}if(!rA(nr,nr.V,nr.Ba,nr.c,nr.i,Ge.o,to))break r;pr.Dc=nr.Ma,nr=1;break e}St(nr.a!=0),nr=0}nr=!nr}nr&&(Qe=Ie.a)}else Qe=Ie.a}else{if((Ie=new ta)==null){wr=1;break t}if(Ie.Fa=pr.na,Ie.P=pr.P,Ie.qc=pr.Sa,ea(Ie,nr)){if((Qe=Vo(nr.width,nr.height,wr.Oa,wr.ba))==0){if(Ie.Aa=0,Ge=wr.Oa,St((pr=Ie)!=null),Ge!=null){if(0<(Tr=0>(Tr=Ge.Md)?0:100<Tr?255:255*Tr/100)){for(xr=Gr=0;4>xr;++xr)12>(An=pr.pb[xr]).lc&&(An.ia=Tr*El[0>An.lc?0:An.lc]>>3),Gr|=An.ia;Gr&&(alert("todo:VP8InitRandom"),pr.ia=1)}pr.Ga=Ge.Id,100<pr.Ga?pr.Ga=100:0>pr.Ga&&(pr.Ga=0)}DA(Ie,nr)||(Qe=Ie.a)}}else Qe=Ie.a}Qe==0&&wr.Oa!=null&&wr.Oa.fd&&(Qe=fa(wr.ba))}wr=Qe}yr=wr!=0?null:11>yr?Er.f.RGBA.eb:Er.f.kb.y}else yr=null;return yr};var $s=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Fe(Ye,rr){for(var vr="",er=0;er<4;er++)vr+=String.fromCharCode(Ye[rr++]);return vr}function Ue(Ye,rr){return(Ye[rr+0]<<0|Ye[rr+1]<<8|Ye[rr+2]<<16)>>>0}function Re(Ye,rr){return(Ye[rr+0]<<0|Ye[rr+1]<<8|Ye[rr+2]<<16|Ye[rr+3]<<24)>>>0}new xe;var He=[0],$e=[0],ze=[],Ve=new xe,ir=Be,Ze=function(Ye,rr){var vr={},er=0,Ar=!1,gr=0,mr=0;if(vr.frames=[],!function(_r,Fr,Pr,kr){for(var Vr=0;Vr<kr;Vr++)if(_r[Fr+Vr]!=Pr.charCodeAt(Vr))return!0;return!1}(Ye,rr,"RIFF",4)){var Ur,Lr;for(Re(Ye,rr+=4),rr+=8;rr<Ye.length;){var Mr=Fe(Ye,rr),Qr=Re(Ye,rr+=4);rr+=4;var Dr=Qr+(1&Qr);switch(Mr){case"VP8 ":case"VP8L":vr.frames[er]===void 0&&(vr.frames[er]={}),(ur=vr.frames[er]).src_off=Ar?mr:rr-8,ur.src_size=gr+Qr+8,er++,Ar&&(Ar=!1,gr=0,mr=0);break;case"VP8X":(ur=vr.header={}).feature_flags=Ye[rr];var Xr=rr+4;ur.canvas_width=1+Ue(Ye,Xr),Xr+=3,ur.canvas_height=1+Ue(Ye,Xr),Xr+=3;break;case"ALPH":Ar=!0,gr=Dr+8,mr=rr-8;break;case"ANIM":(ur=vr.header).bgcolor=Re(Ye,rr),Xr=rr+4,ur.loop_count=(Ur=Ye)[(Lr=Xr)+0]<<0|Ur[Lr+1]<<8,Xr+=2;break;case"ANMF":var sn,ur;(ur=vr.frames[er]={}).offset_x=2*Ue(Ye,rr),rr+=3,ur.offset_y=2*Ue(Ye,rr),rr+=3,ur.width=1+Ue(Ye,rr),rr+=3,ur.height=1+Ue(Ye,rr),rr+=3,ur.duration=Ue(Ye,rr),rr+=3,sn=Ye[rr++],ur.dispose=1&sn,ur.blend=sn>>1&1}Mr!="ANMF"&&(rr+=Dr)}return vr}}(ir,0);Ze.response=ir,Ze.rgbaoutput=!0,Ze.dataurl=!1;var ar=Ze.header?Ze.header:null,cr=Ze.frames?Ze.frames:null;if(ar){ar.loop_counter=ar.loop_count,He=[ar.canvas_height],$e=[ar.canvas_width];for(var Xe=0;Xe<cr.length&&cr[Xe].blend!=0;Xe++);}var or=cr[0],Oe=Ve.WebPDecodeRGBA(ir,or.src_off,or.src_size,$e,He);or.rgba=Oe,or.imgwidth=$e[0],or.imgheight=He[0];for(var Je=0;Je<$e[0]*He[0]*4;Je++)ze[Je]=Oe[Je];return this.width=$e,this.height=He,this.data=ze,this}(function(Be){var St=function(){return typeof zlibSync=="function"},Ae=function(He,$e,ze,Ve){var ir=4,Ze=Te;switch(Ve){case Be.image_compression.FAST:ir=1,Ze=_e;break;case Be.image_compression.MEDIUM:ir=6,Ze=Se;break;case Be.image_compression.SLOW:ir=9,Ze=xe}He=Ee(He,$e,ze,Ze);var ar=zlibSync(He,{level:ir});return Be.__addimage__.arrayBufferToBinaryString(ar)},Ee=function(He,$e,ze,Ve){for(var ir,Ze,ar,cr=He.length/$e,Xe=new Uint8Array(He.length+cr),or=Ue(),Oe=0;Oe<cr;Oe+=1){if(ar=Oe*$e,ir=He.subarray(ar,ar+$e),Ve)Xe.set(Ve(ir,ze,Ze),ar+Oe);else{for(var Je,Ye=or.length,rr=[];Je<Ye;Je+=1)rr[Je]=or[Je](ir,ze,Ze);var vr=Re(rr.concat());Xe.set(rr[vr],ar+Oe)}Ze=ir}return Xe},Ce=function(He){var $e=Array.apply([],He);return $e.unshift(0),$e},_e=function(He,$e){var ze,Ve=[],ir=He.length;Ve[0]=1;for(var Ze=0;Ze<ir;Ze+=1)ze=He[Ze-$e]||0,Ve[Ze+1]=He[Ze]-ze+256&255;return Ve},Te=function(He,$e,ze){var Ve,ir=[],Ze=He.length;ir[0]=2;for(var ar=0;ar<Ze;ar+=1)Ve=ze&&ze[ar]||0,ir[ar+1]=He[ar]-Ve+256&255;return ir},Se=function(He,$e,ze){var Ve,ir,Ze=[],ar=He.length;Ze[0]=3;for(var cr=0;cr<ar;cr+=1)Ve=He[cr-$e]||0,ir=ze&&ze[cr]||0,Ze[cr+1]=He[cr]+256-(Ve+ir>>>1)&255;return Ze},xe=function(He,$e,ze){var Ve,ir,Ze,ar,cr=[],Xe=He.length;cr[0]=4;for(var or=0;or<Xe;or+=1)Ve=He[or-$e]||0,ir=ze&&ze[or]||0,Ze=ze&&ze[or-$e]||0,ar=Fe(Ve,ir,Ze),cr[or+1]=He[or]-ar+256&255;return cr},Fe=function(He,$e,ze){if(He===$e&&$e===ze)return He;var Ve=Math.abs($e-ze),ir=Math.abs(He-ze),Ze=Math.abs(He+$e-ze-ze);return Ve<=ir&&Ve<=Ze?He:ir<=Ze?$e:ze},Ue=function(){return[Ce,_e,Te,Se,xe]},Re=function(He){var $e=He.map(function(ze){return ze.reduce(function(Ve,ir){return Ve+Math.abs(ir)},0)});return $e.indexOf(Math.min.apply(null,$e))};Be.processPNG=function(He,$e,ze,Ve){var ir,Ze,ar,cr,Xe,or,Oe,Je,Ye,rr,vr,er,Ar,gr,mr,Ur=this.decode.FLATE_DECODE,Lr="";if(this.__addimage__.isArrayBuffer(He)&&(He=new Uint8Array(He)),this.__addimage__.isArrayBufferView(He)){if(He=(ar=new Kt(He)).imgData,Ze=ar.bits,ir=ar.colorSpace,Xe=ar.colors,[4,6].indexOf(ar.colorType)!==-1){if(ar.bits===8){Ye=(Je=ar.pixelBitlength==32?new Uint32Array(ar.decodePixels().buffer):ar.pixelBitlength==16?new Uint16Array(ar.decodePixels().buffer):new Uint8Array(ar.decodePixels().buffer)).length,vr=new Uint8Array(Ye*ar.colors),rr=new Uint8Array(Ye);var Mr,Qr=ar.pixelBitlength-ar.bits;for(gr=0,mr=0;gr<Ye;gr++){for(Ar=Je[gr],Mr=0;Mr<Qr;)vr[mr++]=Ar>>>Mr&255,Mr+=ar.bits;rr[gr]=Ar>>>Mr&255}}if(ar.bits===16){Ye=(Je=new Uint32Array(ar.decodePixels().buffer)).length,vr=new Uint8Array(Ye*(32/ar.pixelBitlength)*ar.colors),rr=new Uint8Array(Ye*(32/ar.pixelBitlength)),er=ar.colors>1,gr=0,mr=0;for(var Dr=0;gr<Ye;)Ar=Je[gr++],vr[mr++]=Ar>>>0&255,er&&(vr[mr++]=Ar>>>16&255,Ar=Je[gr++],vr[mr++]=Ar>>>0&255),rr[Dr++]=Ar>>>16&255;Ze=8}Ve!==Be.image_compression.NONE&&St()?(He=Ae(vr,ar.width*ar.colors,ar.colors,Ve),Oe=Ae(rr,ar.width,1,Ve)):(He=vr,Oe=rr,Ur=void 0)}if(ar.colorType===3&&(ir=this.color_spaces.INDEXED,or=ar.palette,ar.transparency.indexed)){var Xr=ar.transparency.indexed,sn=0;for(gr=0,Ye=Xr.length;gr<Ye;++gr)sn+=Xr[gr];if((sn/=255)===Ye-1&&Xr.indexOf(0)!==-1)cr=[Xr.indexOf(0)];else if(sn!==Ye){for(Je=ar.decodePixels(),rr=new Uint8Array(Je.length),gr=0,Ye=Je.length;gr<Ye;gr++)rr[gr]=Xr[Je[gr]];Oe=Ae(rr,ar.width,1)}}var ur=function(_r){var Fr;switch(_r){case Be.image_compression.FAST:Fr=11;break;case Be.image_compression.MEDIUM:Fr=13;break;case Be.image_compression.SLOW:Fr=14;break;default:Fr=12}return Fr}(Ve);return Ur===this.decode.FLATE_DECODE&&(Lr="/Predictor "+ur+" "),Lr+="/Colors "+Xe+" /BitsPerComponent "+Ze+" /Columns "+ar.width,(this.__addimage__.isArrayBuffer(He)||this.__addimage__.isArrayBufferView(He))&&(He=this.__addimage__.arrayBufferToBinaryString(He)),(Oe&&this.__addimage__.isArrayBuffer(Oe)||this.__addimage__.isArrayBufferView(Oe))&&(Oe=this.__addimage__.arrayBufferToBinaryString(Oe)),{alias:ze,data:He,index:$e,filter:Ur,decodeParameters:Lr,transparency:cr,palette:or,sMask:Oe,predictor:ur,width:ar.width,height:ar.height,bitsPerComponent:Ze,colorSpace:ir}}}})(E$1.API),function(Be){Be.processGIF89A=function(St,Ae,Ee,Ce){var _e=new Zt(St),Te=_e.width,Se=_e.height,xe=[];_e.decodeAndBlitFrameRGBA(0,xe);var Fe={data:xe,width:Te,height:Se},Ue=new Qt(100).encode(Fe,100);return Be.processJPEG.call(this,Ue,Ae,Ee,Ce)},Be.processGIF87A=Be.processGIF89A}(E$1.API),te.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var Be=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(Be);for(var St=0;St<Be;St++){var Ae=this.datav.getUint8(this.pos++,!0),Ee=this.datav.getUint8(this.pos++,!0),Ce=this.datav.getUint8(this.pos++,!0),_e=this.datav.getUint8(this.pos++,!0);this.palette[St]={red:Ce,green:Ee,blue:Ae,quad:_e}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},te.prototype.parseBGR=function(){this.pos=this.offset;try{var Be="bit"+this.bitPP,St=this.width*this.height*4;this.data=new Uint8Array(St),this[Be]()}catch(Ae){a$2.log("bit decode error:"+Ae)}},te.prototype.bit1=function(){var Be,St=Math.ceil(this.width/8),Ae=St%4;for(Be=this.height-1;Be>=0;Be--){for(var Ee=this.bottom_up?Be:this.height-1-Be,Ce=0;Ce<St;Ce++)for(var _e=this.datav.getUint8(this.pos++,!0),Te=Ee*this.width*4+8*Ce*4,Se=0;Se<8&&8*Ce+Se<this.width;Se++){var xe=this.palette[_e>>7-Se&1];this.data[Te+4*Se]=xe.blue,this.data[Te+4*Se+1]=xe.green,this.data[Te+4*Se+2]=xe.red,this.data[Te+4*Se+3]=255}Ae!==0&&(this.pos+=4-Ae)}},te.prototype.bit4=function(){for(var Be=Math.ceil(this.width/2),St=Be%4,Ae=this.height-1;Ae>=0;Ae--){for(var Ee=this.bottom_up?Ae:this.height-1-Ae,Ce=0;Ce<Be;Ce++){var _e=this.datav.getUint8(this.pos++,!0),Te=Ee*this.width*4+2*Ce*4,Se=_e>>4,xe=15&_e,Fe=this.palette[Se];if(this.data[Te]=Fe.blue,this.data[Te+1]=Fe.green,this.data[Te+2]=Fe.red,this.data[Te+3]=255,2*Ce+1>=this.width)break;Fe=this.palette[xe],this.data[Te+4]=Fe.blue,this.data[Te+4+1]=Fe.green,this.data[Te+4+2]=Fe.red,this.data[Te+4+3]=255}St!==0&&(this.pos+=4-St)}},te.prototype.bit8=function(){for(var Be=this.width%4,St=this.height-1;St>=0;St--){for(var Ae=this.bottom_up?St:this.height-1-St,Ee=0;Ee<this.width;Ee++){var Ce=this.datav.getUint8(this.pos++,!0),_e=Ae*this.width*4+4*Ee;if(Ce<this.palette.length){var Te=this.palette[Ce];this.data[_e]=Te.red,this.data[_e+1]=Te.green,this.data[_e+2]=Te.blue,this.data[_e+3]=255}else this.data[_e]=255,this.data[_e+1]=255,this.data[_e+2]=255,this.data[_e+3]=255}Be!==0&&(this.pos+=4-Be)}},te.prototype.bit15=function(){for(var Be=this.width%3,St=parseInt("11111",2),Ae=this.height-1;Ae>=0;Ae--){for(var Ee=this.bottom_up?Ae:this.height-1-Ae,Ce=0;Ce<this.width;Ce++){var _e=this.datav.getUint16(this.pos,!0);this.pos+=2;var Te=(_e&St)/St*255|0,Se=(_e>>5&St)/St*255|0,xe=(_e>>10&St)/St*255|0,Fe=_e>>15?255:0,Ue=Ee*this.width*4+4*Ce;this.data[Ue]=xe,this.data[Ue+1]=Se,this.data[Ue+2]=Te,this.data[Ue+3]=Fe}this.pos+=Be}},te.prototype.bit16=function(){for(var Be=this.width%3,St=parseInt("11111",2),Ae=parseInt("111111",2),Ee=this.height-1;Ee>=0;Ee--){for(var Ce=this.bottom_up?Ee:this.height-1-Ee,_e=0;_e<this.width;_e++){var Te=this.datav.getUint16(this.pos,!0);this.pos+=2;var Se=(Te&St)/St*255|0,xe=(Te>>5&Ae)/Ae*255|0,Fe=(Te>>11)/St*255|0,Ue=Ce*this.width*4+4*_e;this.data[Ue]=Fe,this.data[Ue+1]=xe,this.data[Ue+2]=Se,this.data[Ue+3]=255}this.pos+=Be}},te.prototype.bit24=function(){for(var Be=this.height-1;Be>=0;Be--){for(var St=this.bottom_up?Be:this.height-1-Be,Ae=0;Ae<this.width;Ae++){var Ee=this.datav.getUint8(this.pos++,!0),Ce=this.datav.getUint8(this.pos++,!0),_e=this.datav.getUint8(this.pos++,!0),Te=St*this.width*4+4*Ae;this.data[Te]=_e,this.data[Te+1]=Ce,this.data[Te+2]=Ee,this.data[Te+3]=255}this.pos+=this.width%4}},te.prototype.bit32=function(){for(var Be=this.height-1;Be>=0;Be--)for(var St=this.bottom_up?Be:this.height-1-Be,Ae=0;Ae<this.width;Ae++){var Ee=this.datav.getUint8(this.pos++,!0),Ce=this.datav.getUint8(this.pos++,!0),_e=this.datav.getUint8(this.pos++,!0),Te=this.datav.getUint8(this.pos++,!0),Se=St*this.width*4+4*Ae;this.data[Se]=_e,this.data[Se+1]=Ce,this.data[Se+2]=Ee,this.data[Se+3]=Te}},te.prototype.getData=function(){return this.data},function(Be){Be.processBMP=function(St,Ae,Ee,Ce){var _e=new te(St,!1),Te=_e.width,Se=_e.height,xe={data:_e.getData(),width:Te,height:Se},Fe=new Qt(100).encode(xe,100);return Be.processJPEG.call(this,Fe,Ae,Ee,Ce)}}(E$1.API),ee.prototype.getData=function(){return this.data},function(Be){Be.processWEBP=function(St,Ae,Ee,Ce){var _e=new ee(St),Te=_e.width,Se=_e.height,xe={data:_e.getData(),width:Te,height:Se},Fe=new Qt(100).encode(xe,100);return Be.processJPEG.call(this,Fe,Ae,Ee,Ce)}}(E$1.API),E$1.API.processRGBA=function(Be,St,Ae){for(var Ee=Be.data,Ce=Ee.length,_e=new Uint8Array(Ce/4*3),Te=new Uint8Array(Ce/4),Se=0,xe=0,Fe=0;Fe<Ce;Fe+=4){var Ue=Ee[Fe],Re=Ee[Fe+1],He=Ee[Fe+2],$e=Ee[Fe+3];_e[Se++]=Ue,_e[Se++]=Re,_e[Se++]=He,Te[xe++]=$e}var ze=this.__addimage__.arrayBufferToBinaryString(_e);return{alpha:this.__addimage__.arrayBufferToBinaryString(Te),data:ze,index:St,alias:Ae,colorSpace:"DeviceRGB",bitsPerComponent:8,width:Be.width,height:Be.height}},E$1.API.setLanguage=function(Be){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[Be]!==void 0&&(this.internal.languageSettings.languageCode=Be,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Vt=E$1.API,Gt=Vt.getCharWidthsArray=function(Be,St){var Ae,Ee,Ce=(St=St||{}).font||this.internal.getFont(),_e=St.fontSize||this.internal.getFontSize(),Te=St.charSpace||this.internal.getCharSpace(),Se=St.widths?St.widths:Ce.metadata.Unicode.widths,xe=Se.fof?Se.fof:1,Fe=St.kerning?St.kerning:Ce.metadata.Unicode.kerning,Ue=Fe.fof?Fe.fof:1,Re=St.doKerning!==!1,He=0,$e=Be.length,ze=0,Ve=Se[0]||xe,ir=[];for(Ae=0;Ae<$e;Ae++)Ee=Be.charCodeAt(Ae),typeof Ce.metadata.widthOfString=="function"?ir.push((Ce.metadata.widthOfGlyph(Ce.metadata.characterToGlyph(Ee))+Te*(1e3/_e)||0)/1e3):(He=Re&&_typeof$3(Fe[Ee])==="object"&&!isNaN(parseInt(Fe[Ee][ze],10))?Fe[Ee][ze]/Ue:0,ir.push((Se[Ee]||Ve)/xe+He)),ze=Ee;return ir},Yt=Vt.getStringUnitWidth=function(Be,St){var Ae=(St=St||{}).fontSize||this.internal.getFontSize(),Ee=St.font||this.internal.getFont(),Ce=St.charSpace||this.internal.getCharSpace();return Vt.processArabic&&(Be=Vt.processArabic(Be)),typeof Ee.metadata.widthOfString=="function"?Ee.metadata.widthOfString(Be,Ae,Ce)/Ae:Gt.apply(this,arguments).reduce(function(_e,Te){return _e+Te},0)},Jt=function(Be,St,Ae,Ee){for(var Ce=[],_e=0,Te=Be.length,Se=0;_e!==Te&&Se+St[_e]<Ae;)Se+=St[_e],_e++;Ce.push(Be.slice(0,_e));var xe=_e;for(Se=0;_e!==Te;)Se+St[_e]>Ee&&(Ce.push(Be.slice(xe,_e)),Se=0,xe=_e),Se+=St[_e],_e++;return xe!==_e&&Ce.push(Be.slice(xe,_e)),Ce},Xt=function(Be,St,Ae){Ae||(Ae={});var Ee,Ce,_e,Te,Se,xe,Fe,Ue=[],Re=[Ue],He=Ae.textIndent||0,$e=0,ze=0,Ve=Be.split(" "),ir=Gt.apply(this,[" ",Ae])[0];if(xe=Ae.lineIndent===-1?Ve[0].length+2:Ae.lineIndent||0){var Ze=Array(xe).join(" "),ar=[];Ve.map(function(Xe){(Xe=Xe.split(/\s*\n/)).length>1?ar=ar.concat(Xe.map(function(or,Oe){return(Oe&&or.length?`
`:"")+or})):ar.push(Xe[0])}),Ve=ar,xe=Yt.apply(this,[Ze,Ae])}for(_e=0,Te=Ve.length;_e<Te;_e++){var cr=0;if(Ee=Ve[_e],xe&&Ee[0]==`
`&&(Ee=Ee.substr(1),cr=1),He+$e+(ze=(Ce=Gt.apply(this,[Ee,Ae])).reduce(function(Xe,or){return Xe+or},0))>St||cr){if(ze>St){for(Se=Jt.apply(this,[Ee,Ce,St-(He+$e),St]),Ue.push(Se.shift()),Ue=[Se.pop()];Se.length;)Re.push([Se.shift()]);ze=Ce.slice(Ee.length-(Ue[0]?Ue[0].length:0)).reduce(function(Xe,or){return Xe+or},0)}else Ue=[Ee];Re.push(Ue),He=ze+xe,$e=ir}else Ue.push(Ee),He+=$e+ze,$e=ir}return Fe=xe?function(Xe,or){return(or?Ze:"")+Xe.join(" ")}:function(Xe){return Xe.join(" ")},Re.map(Fe)},Vt.splitTextToSize=function(Be,St,Ae){var Ee,Ce=(Ae=Ae||{}).fontSize||this.internal.getFontSize(),_e=(function(Ue){if(Ue.widths&&Ue.kerning)return{widths:Ue.widths,kerning:Ue.kerning};var Re=this.internal.getFont(Ue.fontName,Ue.fontStyle);return Re.metadata.Unicode?{widths:Re.metadata.Unicode.widths||{0:1},kerning:Re.metadata.Unicode.kerning||{}}:{font:Re.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,Ae);Ee=Array.isArray(Be)?Be:String(Be).split(/\r?\n/);var Te=1*this.internal.scaleFactor*St/Ce;_e.textIndent=Ae.textIndent?1*Ae.textIndent*this.internal.scaleFactor/Ce:0,_e.lineIndent=Ae.lineIndent;var Se,xe,Fe=[];for(Se=0,xe=Ee.length;Se<xe;Se++)Fe=Fe.concat(Xt.apply(this,[Ee[Se],Te,_e]));return Fe},function(Be){Be.__fontmetrics__=Be.__fontmetrics__||{};for(var St="klmnopqrstuvwxyz",Ae={},Ee={},Ce=0;Ce<St.length;Ce++)Ae[St[Ce]]="0123456789abcdef"[Ce],Ee["0123456789abcdef"[Ce]]=St[Ce];var _e=function(Re){return"0x"+parseInt(Re,10).toString(16)},Te=Be.__fontmetrics__.compress=function(Re){var He,$e,ze,Ve,ir=["{"];for(var Ze in Re){if(He=Re[Ze],isNaN(parseInt(Ze,10))?$e="'"+Ze+"'":(Ze=parseInt(Ze,10),$e=($e=_e(Ze).slice(2)).slice(0,-1)+Ee[$e.slice(-1)]),typeof He=="number")He<0?(ze=_e(He).slice(3),Ve="-"):(ze=_e(He).slice(2),Ve=""),ze=Ve+ze.slice(0,-1)+Ee[ze.slice(-1)];else{if(_typeof$3(He)!=="object")throw new Error("Don't know what to do with value type "+_typeof$3(He)+".");ze=Te(He)}ir.push($e+ze)}return ir.push("}"),ir.join("")},Se=Be.__fontmetrics__.uncompress=function(Re){if(typeof Re!="string")throw new Error("Invalid argument passed to uncompress.");for(var He,$e,ze,Ve,ir={},Ze=1,ar=ir,cr=[],Xe="",or="",Oe=Re.length-1,Je=1;Je<Oe;Je+=1)(Ve=Re[Je])=="'"?He?(ze=He.join(""),He=void 0):He=[]:He?He.push(Ve):Ve=="{"?(cr.push([ar,ze]),ar={},ze=void 0):Ve=="}"?(($e=cr.pop())[0][$e[1]]=ar,ze=void 0,ar=$e[0]):Ve=="-"?Ze=-1:ze===void 0?Ae.hasOwnProperty(Ve)?(Xe+=Ae[Ve],ze=parseInt(Xe,16)*Ze,Ze=1,Xe=""):Xe+=Ve:Ae.hasOwnProperty(Ve)?(or+=Ae[Ve],ar[ze]=parseInt(or,16)*Ze,Ze=1,ze=void 0,or=""):or+=Ve;return ir},xe={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Se("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Fe={Unicode:{Courier:xe,"Courier-Bold":xe,"Courier-BoldOblique":xe,"Courier-Oblique":xe,Helvetica:xe,"Helvetica-Bold":xe,"Helvetica-BoldOblique":xe,"Helvetica-Oblique":xe,"Times-Roman":xe,"Times-Bold":xe,"Times-BoldItalic":xe,"Times-Italic":xe}},Ue={Unicode:{"Courier-Oblique":Se("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Se("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":Se("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:Se("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Se("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Se("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:Se("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Se("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":Se("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:Se("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Se("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Se("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":Se("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":Se("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};Be.events.push(["addFont",function(Re){var He=Re.font,$e=Ue.Unicode[He.postScriptName];$e&&(He.metadata.Unicode={},He.metadata.Unicode.widths=$e.widths,He.metadata.Unicode.kerning=$e.kerning);var ze=Fe.Unicode[He.postScriptName];ze&&(He.metadata.Unicode.encoding=ze,He.encoding=ze.codePages[0])}])}(E$1.API),function(Be){var St=function(Ae){for(var Ee=Ae.length,Ce=new Uint8Array(Ee),_e=0;_e<Ee;_e++)Ce[_e]=Ae.charCodeAt(_e);return Ce};Be.API.events.push(["addFont",function(Ae){var Ee=void 0,Ce=Ae.font,_e=Ae.instance;if(!Ce.isStandardFont){if(_e===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Ce.postScriptName+"').");if(typeof(Ee=_e.existsFileInVFS(Ce.postScriptName)===!1?_e.loadFile(Ce.postScriptName):_e.getFileFromVFS(Ce.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Ce.postScriptName+"').");(function(Te,Se){Se=/^\x00\x01\x00\x00/.test(Se)?St(Se):St(u$2(Se)),Te.metadata=Be.API.TTFFont.open(Se),Te.metadata.Unicode=Te.metadata.Unicode||{encoding:{},kerning:{},widths:[]},Te.metadata.glyIdsUsed=[0]})(Ce,Ee)}}])}(E$1),function(Be){function St(){return(n$1.canvg?Promise.resolve(n$1.canvg):Promise.resolve().then(()=>index_es)).catch(function(Ae){return Promise.reject(new Error("Could not load canvg: "+Ae))}).then(function(Ae){return Ae.default?Ae.default:Ae})}E$1.API.addSvgAsImage=function(Ae,Ee,Ce,_e,Te,Se,xe,Fe){if(isNaN(Ee)||isNaN(Ce))throw a$2.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(_e)||isNaN(Te))throw a$2.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Ue=document.createElement("canvas");Ue.width=_e,Ue.height=Te;var Re=Ue.getContext("2d");Re.fillStyle="#fff",Re.fillRect(0,0,Ue.width,Ue.height);var He={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},$e=this;return St().then(function(ze){return ze.fromString(Re,Ae,He)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(ze){return ze.render(He)}).then(function(){$e.addImage(Ue.toDataURL("image/jpeg",1),Ee,Ce,_e,Te,xe,Fe)})}}(),E$1.API.putTotalPages=function(Be){var St,Ae=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(St=new RegExp(Be,"g"),Ae=this.internal.getNumberOfPages()):(St=new RegExp(this.pdfEscape16(Be,this.internal.getFont()),"g"),Ae=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Ee=1;Ee<=this.internal.getNumberOfPages();Ee++)for(var Ce=0;Ce<this.internal.pages[Ee].length;Ce++)this.internal.pages[Ee][Ce]=this.internal.pages[Ee][Ce].replace(St,Ae);return this},E$1.API.viewerPreferences=function(Be,St){var Ae;Be=Be||{},St=St||!1;var Ee,Ce,_e,Te={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},Se=Object.keys(Te),xe=[],Fe=0,Ue=0,Re=0;function He(ze,Ve){var ir,Ze=!1;for(ir=0;ir<ze.length;ir+=1)ze[ir]===Ve&&(Ze=!0);return Ze}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(Te)),this.internal.viewerpreferences.isSubscribed=!1),Ae=this.internal.viewerpreferences.configuration,Be==="reset"||St===!0){var $e=Se.length;for(Re=0;Re<$e;Re+=1)Ae[Se[Re]].value=Ae[Se[Re]].defaultValue,Ae[Se[Re]].explicitSet=!1}if(_typeof$3(Be)==="object"){for(Ce in Be)if(_e=Be[Ce],He(Se,Ce)&&_e!==void 0){if(Ae[Ce].type==="boolean"&&typeof _e=="boolean")Ae[Ce].value=_e;else if(Ae[Ce].type==="name"&&He(Ae[Ce].valueSet,_e))Ae[Ce].value=_e;else if(Ae[Ce].type==="integer"&&Number.isInteger(_e))Ae[Ce].value=_e;else if(Ae[Ce].type==="array"){for(Fe=0;Fe<_e.length;Fe+=1)if(Ee=!0,_e[Fe].length===1&&typeof _e[Fe][0]=="number")xe.push(String(_e[Fe]-1));else if(_e[Fe].length>1){for(Ue=0;Ue<_e[Fe].length;Ue+=1)typeof _e[Fe][Ue]!="number"&&(Ee=!1);Ee===!0&&xe.push([_e[Fe][0]-1,_e[Fe][1]-1].join(" "))}Ae[Ce].value="["+xe.join(" ")+"]"}else Ae[Ce].value=Ae[Ce].defaultValue;Ae[Ce].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var ze,Ve=[];for(ze in Ae)Ae[ze].explicitSet===!0&&(Ae[ze].type==="name"?Ve.push("/"+ze+" /"+Ae[ze].value):Ve.push("/"+ze+" "+Ae[ze].value));Ve.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+Ve.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=Ae,this},function(Be){var St=function(){var Ee='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',Ce=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),_e=unescape(encodeURIComponent(Ee)),Te=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),Se=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),xe=unescape(encodeURIComponent("</x:xmpmeta>")),Fe=_e.length+Te.length+Se.length+Ce.length+xe.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Fe+" >>"),this.internal.write("stream"),this.internal.write(Ce+_e+Te+Se+xe),this.internal.write("endstream"),this.internal.write("endobj")},Ae=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Be.addMetadata=function(Ee,Ce){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Ee,namespaceuri:Ce||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Ae),this.internal.events.subscribe("postPutResources",St)),this}}(E$1.API),function(Be){var St=Be.API,Ae=St.pdfEscape16=function(_e,Te){for(var Se,xe=Te.metadata.Unicode.widths,Fe=["","0","00","000","0000"],Ue=[""],Re=0,He=_e.length;Re<He;++Re){if(Se=Te.metadata.characterToGlyph(_e.charCodeAt(Re)),Te.metadata.glyIdsUsed.push(Se),Te.metadata.toUnicode[Se]=_e.charCodeAt(Re),xe.indexOf(Se)==-1&&(xe.push(Se),xe.push([parseInt(Te.metadata.widthOfGlyph(Se),10)])),Se=="0")return Ue.join("");Se=Se.toString(16),Ue.push(Fe[4-Se.length],Se)}return Ue.join("")},Ee=function(_e){var Te,Se,xe,Fe,Ue,Re,He;for(Ue=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
/Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,xe=[],Re=0,He=(Se=Object.keys(_e).sort(function($e,ze){return $e-ze})).length;Re<He;Re++)Te=Se[Re],xe.length>=100&&(Ue+=`
`+xe.length+` beginbfchar
`+xe.join(`
`)+`
endbfchar`,xe=[]),_e[Te]!==void 0&&_e[Te]!==null&&typeof _e[Te].toString=="function"&&(Fe=("0000"+_e[Te].toString(16)).slice(-4),Te=("0000"+(+Te).toString(16)).slice(-4),xe.push("<"+Te+"><"+Fe+">"));return xe.length&&(Ue+=`
`+xe.length+` beginbfchar
`+xe.join(`
`)+`
endbfchar
`),Ue+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};St.events.push(["putFont",function(_e){(function(Te){var Se=Te.font,xe=Te.out,Fe=Te.newObject,Ue=Te.putStream;if(Se.metadata instanceof Be.API.TTFFont&&Se.encoding==="Identity-H"){for(var Re=Se.metadata.Unicode.widths,He=Se.metadata.subset.encode(Se.metadata.glyIdsUsed,1),$e="",ze=0;ze<He.length;ze++)$e+=String.fromCharCode(He[ze]);var Ve=Fe();Ue({data:$e,addLength1:!0,objectId:Ve}),xe("endobj");var ir=Fe();Ue({data:Ee(Se.metadata.toUnicode),addLength1:!0,objectId:ir}),xe("endobj");var Ze=Fe();xe("<<"),xe("/Type /FontDescriptor"),xe("/FontName /"+F$1(Se.fontName)),xe("/FontFile2 "+Ve+" 0 R"),xe("/FontBBox "+Be.API.PDFObject.convert(Se.metadata.bbox)),xe("/Flags "+Se.metadata.flags),xe("/StemV "+Se.metadata.stemV),xe("/ItalicAngle "+Se.metadata.italicAngle),xe("/Ascent "+Se.metadata.ascender),xe("/Descent "+Se.metadata.decender),xe("/CapHeight "+Se.metadata.capHeight),xe(">>"),xe("endobj");var ar=Fe();xe("<<"),xe("/Type /Font"),xe("/BaseFont /"+F$1(Se.fontName)),xe("/FontDescriptor "+Ze+" 0 R"),xe("/W "+Be.API.PDFObject.convert(Re)),xe("/CIDToGIDMap /Identity"),xe("/DW 1000"),xe("/Subtype /CIDFontType2"),xe("/CIDSystemInfo"),xe("<<"),xe("/Supplement 0"),xe("/Registry (Adobe)"),xe("/Ordering ("+Se.encoding+")"),xe(">>"),xe(">>"),xe("endobj"),Se.objectNumber=Fe(),xe("<<"),xe("/Type /Font"),xe("/Subtype /Type0"),xe("/ToUnicode "+ir+" 0 R"),xe("/BaseFont /"+F$1(Se.fontName)),xe("/Encoding /"+Se.encoding),xe("/DescendantFonts ["+ar+" 0 R]"),xe(">>"),xe("endobj"),Se.isAlreadyPutted=!0}})(_e)}]),St.events.push(["putFont",function(_e){(function(Te){var Se=Te.font,xe=Te.out,Fe=Te.newObject,Ue=Te.putStream;if(Se.metadata instanceof Be.API.TTFFont&&Se.encoding==="WinAnsiEncoding"){for(var Re=Se.metadata.rawData,He="",$e=0;$e<Re.length;$e++)He+=String.fromCharCode(Re[$e]);var ze=Fe();Ue({data:He,addLength1:!0,objectId:ze}),xe("endobj");var Ve=Fe();Ue({data:Ee(Se.metadata.toUnicode),addLength1:!0,objectId:Ve}),xe("endobj");var ir=Fe();xe("<<"),xe("/Descent "+Se.metadata.decender),xe("/CapHeight "+Se.metadata.capHeight),xe("/StemV "+Se.metadata.stemV),xe("/Type /FontDescriptor"),xe("/FontFile2 "+ze+" 0 R"),xe("/Flags 96"),xe("/FontBBox "+Be.API.PDFObject.convert(Se.metadata.bbox)),xe("/FontName /"+F$1(Se.fontName)),xe("/ItalicAngle "+Se.metadata.italicAngle),xe("/Ascent "+Se.metadata.ascender),xe(">>"),xe("endobj"),Se.objectNumber=Fe();for(var Ze=0;Ze<Se.metadata.hmtx.widths.length;Ze++)Se.metadata.hmtx.widths[Ze]=parseInt(Se.metadata.hmtx.widths[Ze]*(1e3/Se.metadata.head.unitsPerEm));xe("<</Subtype/TrueType/Type/Font/ToUnicode "+Ve+" 0 R/BaseFont/"+F$1(Se.fontName)+"/FontDescriptor "+ir+" 0 R/Encoding/"+Se.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Be.API.PDFObject.convert(Se.metadata.hmtx.widths)+">>"),xe("endobj"),Se.isAlreadyPutted=!0}})(_e)}]);var Ce=function(_e){var Te,Se=_e.text||"",xe=_e.x,Fe=_e.y,Ue=_e.options||{},Re=_e.mutex||{},He=Re.pdfEscape,$e=Re.activeFontKey,ze=Re.fonts,Ve=$e,ir="",Ze=0,ar="",cr=ze[Ve].encoding;if(ze[Ve].encoding!=="Identity-H")return{text:Se,x:xe,y:Fe,options:Ue,mutex:Re};for(ar=Se,Ve=$e,Array.isArray(Se)&&(ar=Se[0]),Ze=0;Ze<ar.length;Ze+=1)ze[Ve].metadata.hasOwnProperty("cmap")&&(Te=ze[Ve].metadata.cmap.unicode.codeMap[ar[Ze].charCodeAt(0)]),Te||ar[Ze].charCodeAt(0)<256&&ze[Ve].metadata.hasOwnProperty("Unicode")?ir+=ar[Ze]:ir+="";var Xe="";return parseInt(Ve.slice(1))<14||cr==="WinAnsiEncoding"?Xe=He(ir,Ve).split("").map(function(or){return or.charCodeAt(0).toString(16)}).join(""):cr==="Identity-H"&&(Xe=Ae(ir,ze[Ve])),Re.isHex=!0,{text:Xe,x:xe,y:Fe,options:Ue,mutex:Re}};St.events.push(["postProcessText",function(_e){var Te=_e.text||"",Se=[],xe={text:Te,x:_e.x,y:_e.y,options:_e.options,mutex:_e.mutex};if(Array.isArray(Te)){var Fe=0;for(Fe=0;Fe<Te.length;Fe+=1)Array.isArray(Te[Fe])&&Te[Fe].length===3?Se.push([Ce(Object.assign({},xe,{text:Te[Fe][0]})).text,Te[Fe][1],Te[Fe][2]]):Se.push(Ce(Object.assign({},xe,{text:Te[Fe]})).text);_e.text=Se}else _e.text=Ce(Object.assign({},xe,{text:Te})).text}])}(E$1),function(Be){var St=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};Be.existsFileInVFS=function(Ae){return St.call(this),this.internal.vFS[Ae]!==void 0},Be.addFileToVFS=function(Ae,Ee){return St.call(this),this.internal.vFS[Ae]=Ee,this},Be.getFileFromVFS=function(Ae){return St.call(this),this.internal.vFS[Ae]!==void 0?this.internal.vFS[Ae]:null}}(E$1.API),function(Be){Be.__bidiEngine__=Be.prototype.__bidiEngine__=function(Ee){var Ce,_e,Te,Se,xe,Fe,Ue,Re=St,He=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],$e=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],ze={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Ve={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},ir=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],Ze=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),ar=!1,cr=0;this.__bidiEngine__={};var Xe=function(er){var Ar=er.charCodeAt(),gr=Ar>>8,mr=Ve[gr];return mr!==void 0?Re[256*mr+(255&Ar)]:gr===252||gr===253?"AL":Ze.test(gr)?"L":gr===8?"R":"N"},or=function(er){for(var Ar,gr=0;gr<er.length;gr++){if((Ar=Xe(er.charAt(gr)))==="L")return!1;if(Ar==="R")return!0}return!1},Oe=function(er,Ar,gr,mr){var Ur,Lr,Mr,Qr,Dr=Ar[mr];switch(Dr){case"L":case"R":ar=!1;break;case"N":case"AN":break;case"EN":ar&&(Dr="AN");break;case"AL":ar=!0,Dr="R";break;case"WS":Dr="N";break;case"CS":mr<1||mr+1>=Ar.length||(Ur=gr[mr-1])!=="EN"&&Ur!=="AN"||(Lr=Ar[mr+1])!=="EN"&&Lr!=="AN"?Dr="N":ar&&(Lr="AN"),Dr=Lr===Ur?Lr:"N";break;case"ES":Dr=(Ur=mr>0?gr[mr-1]:"B")==="EN"&&mr+1<Ar.length&&Ar[mr+1]==="EN"?"EN":"N";break;case"ET":if(mr>0&&gr[mr-1]==="EN"){Dr="EN";break}if(ar){Dr="N";break}for(Mr=mr+1,Qr=Ar.length;Mr<Qr&&Ar[Mr]==="ET";)Mr++;Dr=Mr<Qr&&Ar[Mr]==="EN"?"EN":"N";break;case"NSM":if(Te&&!Se){for(Qr=Ar.length,Mr=mr+1;Mr<Qr&&Ar[Mr]==="NSM";)Mr++;if(Mr<Qr){var Xr=er[mr],sn=Xr>=1425&&Xr<=2303||Xr===64286;if(Ur=Ar[Mr],sn&&(Ur==="R"||Ur==="AL")){Dr="R";break}}}Dr=mr<1||(Ur=Ar[mr-1])==="B"?"N":gr[mr-1];break;case"B":ar=!1,Ce=!0,Dr=cr;break;case"S":_e=!0,Dr="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":ar=!1;break;case"BN":Dr="N"}return Dr},Je=function(er,Ar,gr){var mr=er.split("");return gr&&Ye(mr,gr,{hiLevel:cr}),mr.reverse(),Ar&&Ar.reverse(),mr.join("")},Ye=function(er,Ar,gr){var mr,Ur,Lr,Mr,Qr,Dr=-1,Xr=er.length,sn=0,ur=[],_r=cr?$e:He,Fr=[];for(ar=!1,Ce=!1,_e=!1,Ur=0;Ur<Xr;Ur++)Fr[Ur]=Xe(er[Ur]);for(Lr=0;Lr<Xr;Lr++){if(Qr=sn,ur[Lr]=Oe(er,Fr,ur,Lr),mr=240&(sn=_r[Qr][ze[ur[Lr]]]),sn&=15,Ar[Lr]=Mr=_r[sn][5],mr>0)if(mr===16){for(Ur=Dr;Ur<Lr;Ur++)Ar[Ur]=1;Dr=-1}else Dr=-1;if(_r[sn][6])Dr===-1&&(Dr=Lr);else if(Dr>-1){for(Ur=Dr;Ur<Lr;Ur++)Ar[Ur]=Mr;Dr=-1}Fr[Lr]==="B"&&(Ar[Lr]=0),gr.hiLevel|=Mr}_e&&function(Pr,kr,Vr){for(var nn=0;nn<Vr;nn++)if(Pr[nn]==="S"){kr[nn]=cr;for(var Jr=nn-1;Jr>=0&&Pr[Jr]==="WS";Jr--)kr[Jr]=cr}}(Fr,Ar,Xr)},rr=function(er,Ar,gr,mr,Ur){if(!(Ur.hiLevel<er)){if(er===1&&cr===1&&!Ce)return Ar.reverse(),void(gr&&gr.reverse());for(var Lr,Mr,Qr,Dr,Xr=Ar.length,sn=0;sn<Xr;){if(mr[sn]>=er){for(Qr=sn+1;Qr<Xr&&mr[Qr]>=er;)Qr++;for(Dr=sn,Mr=Qr-1;Dr<Mr;Dr++,Mr--)Lr=Ar[Dr],Ar[Dr]=Ar[Mr],Ar[Mr]=Lr,gr&&(Lr=gr[Dr],gr[Dr]=gr[Mr],gr[Mr]=Lr);sn=Qr}sn++}}},vr=function(er,Ar,gr){var mr=er.split(""),Ur={hiLevel:cr};return gr||(gr=[]),Ye(mr,gr,Ur),function(Lr,Mr,Qr){if(Qr.hiLevel!==0&&Ue)for(var Dr,Xr=0;Xr<Lr.length;Xr++)Mr[Xr]===1&&(Dr=ir.indexOf(Lr[Xr]))>=0&&(Lr[Xr]=ir[Dr+1])}(mr,gr,Ur),rr(2,mr,Ar,gr,Ur),rr(1,mr,Ar,gr,Ur),mr.join("")};return this.__bidiEngine__.doBidiReorder=function(er,Ar,gr){if(function(Ur,Lr){if(Lr)for(var Mr=0;Mr<Ur.length;Mr++)Lr[Mr]=Mr;Se===void 0&&(Se=or(Ur)),Fe===void 0&&(Fe=or(Ur))}(er,Ar),Te||!xe||Fe)if(Te&&xe&&Se^Fe)cr=Se?1:0,er=Je(er,Ar,gr);else if(!Te&&xe&&Fe)cr=Se?1:0,er=vr(er,Ar,gr),er=Je(er,Ar);else if(!Te||Se||xe||Fe){if(Te&&!xe&&Se^Fe)er=Je(er,Ar),Se?(cr=0,er=vr(er,Ar,gr)):(cr=1,er=vr(er,Ar,gr),er=Je(er,Ar));else if(Te&&Se&&!xe&&Fe)cr=1,er=vr(er,Ar,gr),er=Je(er,Ar);else if(!Te&&!xe&&Se^Fe){var mr=Ue;Se?(cr=1,er=vr(er,Ar,gr),cr=0,Ue=!1,er=vr(er,Ar,gr),Ue=mr):(cr=0,er=vr(er,Ar,gr),er=Je(er,Ar),cr=1,Ue=!1,er=vr(er,Ar,gr),Ue=mr,er=Je(er,Ar))}}else cr=0,er=vr(er,Ar,gr);else cr=Se?1:0,er=vr(er,Ar,gr);return er},this.__bidiEngine__.setOptions=function(er){er&&(Te=er.isInputVisual,xe=er.isOutputVisual,Se=er.isInputRtl,Fe=er.isOutputRtl,Ue=er.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Ee),this.__bidiEngine__};var St=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],Ae=new Be.__bidiEngine__({isInputVisual:!0});Be.API.events.push(["postProcessText",function(Ee){var Ce=Ee.text,_e=(Ee.x,Ee.y,Ee.options||{}),Te=(Ee.mutex,_e.lang,[]);if(_e.isInputVisual=typeof _e.isInputVisual!="boolean"||_e.isInputVisual,Ae.setOptions(_e),Object.prototype.toString.call(Ce)==="[object Array]"){var Se=0;for(Te=[],Se=0;Se<Ce.length;Se+=1)Object.prototype.toString.call(Ce[Se])==="[object Array]"?Te.push([Ae.doBidiReorder(Ce[Se][0]),Ce[Se][1],Ce[Se][2]]):Te.push([Ae.doBidiReorder(Ce[Se])]);Ee.text=Te}else Ee.text=Ae.doBidiReorder(Ce);Ae.setOptions({isInputVisual:!0})}])}(E$1),E$1.API.TTFFont=function(){function Be(St){var Ae;if(this.rawData=St,Ae=this.contents=new ne(St),this.contents.pos=4,Ae.readString(4)==="ttcf")throw new Error("TTCF not supported.");Ae.pos=0,this.parse(),this.subset=new Le(this),this.registerTTF()}return Be.open=function(St){return new Be(St)},Be.prototype.parse=function(){return this.directory=new ie(this.contents),this.head=new se(this),this.name=new pe(this),this.cmap=new ue(this),this.toUnicode={},this.hhea=new he(this),this.maxp=new ge(this),this.hmtx=new me(this),this.post=new fe(this),this.os2=new le(this),this.loca=new Ne(this),this.glyf=new be(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},Be.prototype.registerTTF=function(){var St,Ae,Ee,Ce,_e;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var Te,Se,xe,Fe;for(Fe=[],Te=0,Se=(xe=this.bbox).length;Te<Se;Te++)St=xe[Te],Fe.push(Math.round(St*this.scaleFactor));return Fe}).call(this),this.stemV=0,this.post.exists?(Ee=255&(Ce=this.post.italic_angle),32768&(Ae=Ce>>16)&&(Ae=-(1+(65535^Ae))),this.italicAngle=+(Ae+"."+Ee)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(_e=this.familyClass)===1||_e===2||_e===3||_e===4||_e===5||_e===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},Be.prototype.characterToGlyph=function(St){var Ae;return((Ae=this.cmap.unicode)!=null?Ae.codeMap[St]:void 0)||0},Be.prototype.widthOfGlyph=function(St){var Ae;return Ae=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(St).advance*Ae},Be.prototype.widthOfString=function(St,Ae,Ee){var Ce,_e,Te,Se;for(Te=0,_e=0,Se=(St=""+St).length;0<=Se?_e<Se:_e>Se;_e=0<=Se?++_e:--_e)Ce=St.charCodeAt(_e),Te+=this.widthOfGlyph(this.characterToGlyph(Ce))+Ee*(1e3/Ae)||0;return Te*(Ae/1e3)},Be.prototype.lineHeight=function(St,Ae){var Ee;return Ae==null&&(Ae=!1),Ee=Ae?this.lineGap:0,(this.ascender+Ee-this.decender)/1e3*St},Be}();var re,ne=function(){function Be(St){this.data=St??[],this.pos=0,this.length=this.data.length}return Be.prototype.readByte=function(){return this.data[this.pos++]},Be.prototype.writeByte=function(St){return this.data[this.pos++]=St},Be.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},Be.prototype.writeUInt32=function(St){return this.writeByte(St>>>24&255),this.writeByte(St>>16&255),this.writeByte(St>>8&255),this.writeByte(255&St)},Be.prototype.readInt32=function(){var St;return(St=this.readUInt32())>=2147483648?St-4294967296:St},Be.prototype.writeInt32=function(St){return St<0&&(St+=4294967296),this.writeUInt32(St)},Be.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},Be.prototype.writeUInt16=function(St){return this.writeByte(St>>8&255),this.writeByte(255&St)},Be.prototype.readInt16=function(){var St;return(St=this.readUInt16())>=32768?St-65536:St},Be.prototype.writeInt16=function(St){return St<0&&(St+=65536),this.writeUInt16(St)},Be.prototype.readString=function(St){var Ae,Ee;for(Ee=[],Ae=0;0<=St?Ae<St:Ae>St;Ae=0<=St?++Ae:--Ae)Ee[Ae]=String.fromCharCode(this.readByte());return Ee.join("")},Be.prototype.writeString=function(St){var Ae,Ee,Ce;for(Ce=[],Ae=0,Ee=St.length;0<=Ee?Ae<Ee:Ae>Ee;Ae=0<=Ee?++Ae:--Ae)Ce.push(this.writeByte(St.charCodeAt(Ae)));return Ce},Be.prototype.readShort=function(){return this.readInt16()},Be.prototype.writeShort=function(St){return this.writeInt16(St)},Be.prototype.readLongLong=function(){var St,Ae,Ee,Ce,_e,Te,Se,xe;return St=this.readByte(),Ae=this.readByte(),Ee=this.readByte(),Ce=this.readByte(),_e=this.readByte(),Te=this.readByte(),Se=this.readByte(),xe=this.readByte(),128&St?-1*(72057594037927940*(255^St)+281474976710656*(255^Ae)+1099511627776*(255^Ee)+4294967296*(255^Ce)+16777216*(255^_e)+65536*(255^Te)+256*(255^Se)+(255^xe)+1):72057594037927940*St+281474976710656*Ae+1099511627776*Ee+4294967296*Ce+16777216*_e+65536*Te+256*Se+xe},Be.prototype.writeLongLong=function(St){var Ae,Ee;return Ae=Math.floor(St/4294967296),Ee=4294967295&St,this.writeByte(Ae>>24&255),this.writeByte(Ae>>16&255),this.writeByte(Ae>>8&255),this.writeByte(255&Ae),this.writeByte(Ee>>24&255),this.writeByte(Ee>>16&255),this.writeByte(Ee>>8&255),this.writeByte(255&Ee)},Be.prototype.readInt=function(){return this.readInt32()},Be.prototype.writeInt=function(St){return this.writeInt32(St)},Be.prototype.read=function(St){var Ae,Ee;for(Ae=[],Ee=0;0<=St?Ee<St:Ee>St;Ee=0<=St?++Ee:--Ee)Ae.push(this.readByte());return Ae},Be.prototype.write=function(St){var Ae,Ee,Ce,_e;for(_e=[],Ee=0,Ce=St.length;Ee<Ce;Ee++)Ae=St[Ee],_e.push(this.writeByte(Ae));return _e},Be}(),ie=function(){var Be;function St(Ae){var Ee,Ce,_e;for(this.scalarType=Ae.readInt(),this.tableCount=Ae.readShort(),this.searchRange=Ae.readShort(),this.entrySelector=Ae.readShort(),this.rangeShift=Ae.readShort(),this.tables={},Ce=0,_e=this.tableCount;0<=_e?Ce<_e:Ce>_e;Ce=0<=_e?++Ce:--Ce)Ee={tag:Ae.readString(4),checksum:Ae.readInt(),offset:Ae.readInt(),length:Ae.readInt()},this.tables[Ee.tag]=Ee}return St.prototype.encode=function(Ae){var Ee,Ce,_e,Te,Se,xe,Fe,Ue,Re,He,$e,ze,Ve;for(Ve in $e=Object.keys(Ae).length,xe=Math.log(2),Re=16*Math.floor(Math.log($e)/xe),Te=Math.floor(Re/xe),Ue=16*$e-Re,(Ce=new ne).writeInt(this.scalarType),Ce.writeShort($e),Ce.writeShort(Re),Ce.writeShort(Te),Ce.writeShort(Ue),_e=16*$e,Fe=Ce.pos+_e,Se=null,ze=[],Ae)for(He=Ae[Ve],Ce.writeString(Ve),Ce.writeInt(Be(He)),Ce.writeInt(Fe),Ce.writeInt(He.length),ze=ze.concat(He),Ve==="head"&&(Se=Fe),Fe+=He.length;Fe%4;)ze.push(0),Fe++;return Ce.write(ze),Ee=2981146554-Be(Ce.data),Ce.pos=Se+8,Ce.writeUInt32(Ee),Ce.data},Be=function(Ae){var Ee,Ce,_e,Te;for(Ae=ve.call(Ae);Ae.length%4;)Ae.push(0);for(_e=new ne(Ae),Ce=0,Ee=0,Te=Ae.length;Ee<Te;Ee=Ee+=4)Ce+=_e.readUInt32();return 4294967295&Ce},St}(),ae={}.hasOwnProperty,oe=function(Be,St){for(var Ae in St)ae.call(St,Ae)&&(Be[Ae]=St[Ae]);function Ee(){this.constructor=Be}return Ee.prototype=St.prototype,Be.prototype=new Ee,Be.__super__=St.prototype,Be};re=function(){function Be(St){var Ae;this.file=St,Ae=this.file.directory.tables[this.tag],this.exists=!!Ae,Ae&&(this.offset=Ae.offset,this.length=Ae.length,this.parse(this.file.contents))}return Be.prototype.parse=function(){},Be.prototype.encode=function(){},Be.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},Be}();var se=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="head",St.prototype.parse=function(Ae){return Ae.pos=this.offset,this.version=Ae.readInt(),this.revision=Ae.readInt(),this.checkSumAdjustment=Ae.readInt(),this.magicNumber=Ae.readInt(),this.flags=Ae.readShort(),this.unitsPerEm=Ae.readShort(),this.created=Ae.readLongLong(),this.modified=Ae.readLongLong(),this.xMin=Ae.readShort(),this.yMin=Ae.readShort(),this.xMax=Ae.readShort(),this.yMax=Ae.readShort(),this.macStyle=Ae.readShort(),this.lowestRecPPEM=Ae.readShort(),this.fontDirectionHint=Ae.readShort(),this.indexToLocFormat=Ae.readShort(),this.glyphDataFormat=Ae.readShort()},St.prototype.encode=function(Ae){var Ee;return(Ee=new ne).writeInt(this.version),Ee.writeInt(this.revision),Ee.writeInt(this.checkSumAdjustment),Ee.writeInt(this.magicNumber),Ee.writeShort(this.flags),Ee.writeShort(this.unitsPerEm),Ee.writeLongLong(this.created),Ee.writeLongLong(this.modified),Ee.writeShort(this.xMin),Ee.writeShort(this.yMin),Ee.writeShort(this.xMax),Ee.writeShort(this.yMax),Ee.writeShort(this.macStyle),Ee.writeShort(this.lowestRecPPEM),Ee.writeShort(this.fontDirectionHint),Ee.writeShort(Ae),Ee.writeShort(this.glyphDataFormat),Ee.data},St}(),ce=function(){function Be(St,Ae){var Ee,Ce,_e,Te,Se,xe,Fe,Ue,Re,He,$e,ze,Ve,ir,Ze,ar,cr;switch(this.platformID=St.readUInt16(),this.encodingID=St.readShort(),this.offset=Ae+St.readInt(),Re=St.pos,St.pos=this.offset,this.format=St.readUInt16(),this.length=St.readUInt16(),this.language=St.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(xe=0;xe<256;++xe)this.codeMap[xe]=St.readByte();break;case 4:for($e=St.readUInt16(),He=$e/2,St.pos+=6,_e=function(){var Xe,or;for(or=[],xe=Xe=0;0<=He?Xe<He:Xe>He;xe=0<=He?++Xe:--Xe)or.push(St.readUInt16());return or}(),St.pos+=2,Ve=function(){var Xe,or;for(or=[],xe=Xe=0;0<=He?Xe<He:Xe>He;xe=0<=He?++Xe:--Xe)or.push(St.readUInt16());return or}(),Fe=function(){var Xe,or;for(or=[],xe=Xe=0;0<=He?Xe<He:Xe>He;xe=0<=He?++Xe:--Xe)or.push(St.readUInt16());return or}(),Ue=function(){var Xe,or;for(or=[],xe=Xe=0;0<=He?Xe<He:Xe>He;xe=0<=He?++Xe:--Xe)or.push(St.readUInt16());return or}(),Ce=(this.length-St.pos+this.offset)/2,Se=function(){var Xe,or;for(or=[],xe=Xe=0;0<=Ce?Xe<Ce:Xe>Ce;xe=0<=Ce?++Xe:--Xe)or.push(St.readUInt16());return or}(),xe=Ze=0,cr=_e.length;Ze<cr;xe=++Ze)for(ir=_e[xe],Ee=ar=ze=Ve[xe];ze<=ir?ar<=ir:ar>=ir;Ee=ze<=ir?++ar:--ar)Ue[xe]===0?Te=Ee+Fe[xe]:(Te=Se[Ue[xe]/2+(Ee-ze)-(He-xe)]||0)!==0&&(Te+=Fe[xe]),this.codeMap[Ee]=65535&Te}St.pos=Re}return Be.encode=function(St,Ae){var Ee,Ce,_e,Te,Se,xe,Fe,Ue,Re,He,$e,ze,Ve,ir,Ze,ar,cr,Xe,or,Oe,Je,Ye,rr,vr,er,Ar,gr,mr,Ur,Lr,Mr,Qr,Dr,Xr,sn,ur,_r,Fr,Pr,kr,Vr,nn,Jr,wn,Cn,On;switch(mr=new ne,Te=Object.keys(St).sort(function(In,Xn){return In-Xn}),Ae){case"macroman":for(Ve=0,ir=function(){var In=[];for(ze=0;ze<256;++ze)In.push(0);return In}(),ar={0:0},_e={},Ur=0,Dr=Te.length;Ur<Dr;Ur++)ar[Jr=St[Ce=Te[Ur]]]==null&&(ar[Jr]=++Ve),_e[Ce]={old:St[Ce],new:ar[St[Ce]]},ir[Ce]=ar[St[Ce]];return mr.writeUInt16(1),mr.writeUInt16(0),mr.writeUInt32(12),mr.writeUInt16(0),mr.writeUInt16(262),mr.writeUInt16(0),mr.write(ir),{charMap:_e,subtable:mr.data,maxGlyphID:Ve+1};case"unicode":for(Ar=[],Re=[],cr=0,ar={},Ee={},Ze=Fe=null,Lr=0,Xr=Te.length;Lr<Xr;Lr++)ar[or=St[Ce=Te[Lr]]]==null&&(ar[or]=++cr),Ee[Ce]={old:or,new:ar[or]},Se=ar[or]-Ce,Ze!=null&&Se===Fe||(Ze&&Re.push(Ze),Ar.push(Ce),Fe=Se),Ze=Ce;for(Ze&&Re.push(Ze),Re.push(65535),Ar.push(65535),vr=2*(rr=Ar.length),Ye=2*Math.pow(Math.log(rr)/Math.LN2,2),He=Math.log(Ye/2)/Math.LN2,Je=2*rr-Ye,xe=[],Oe=[],$e=[],ze=Mr=0,sn=Ar.length;Mr<sn;ze=++Mr){if(er=Ar[ze],Ue=Re[ze],er===65535){xe.push(0),Oe.push(0);break}if(er-(gr=Ee[er].new)>=32768)for(xe.push(0),Oe.push(2*($e.length+rr-ze)),Ce=Qr=er;er<=Ue?Qr<=Ue:Qr>=Ue;Ce=er<=Ue?++Qr:--Qr)$e.push(Ee[Ce].new);else xe.push(gr-er),Oe.push(0)}for(mr.writeUInt16(3),mr.writeUInt16(1),mr.writeUInt32(12),mr.writeUInt16(4),mr.writeUInt16(16+8*rr+2*$e.length),mr.writeUInt16(0),mr.writeUInt16(vr),mr.writeUInt16(Ye),mr.writeUInt16(He),mr.writeUInt16(Je),Vr=0,ur=Re.length;Vr<ur;Vr++)Ce=Re[Vr],mr.writeUInt16(Ce);for(mr.writeUInt16(0),nn=0,_r=Ar.length;nn<_r;nn++)Ce=Ar[nn],mr.writeUInt16(Ce);for(wn=0,Fr=xe.length;wn<Fr;wn++)Se=xe[wn],mr.writeUInt16(Se);for(Cn=0,Pr=Oe.length;Cn<Pr;Cn++)Xe=Oe[Cn],mr.writeUInt16(Xe);for(On=0,kr=$e.length;On<kr;On++)Ve=$e[On],mr.writeUInt16(Ve);return{charMap:Ee,subtable:mr.data,maxGlyphID:cr+1}}},Be}(),ue=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="cmap",St.prototype.parse=function(Ae){var Ee,Ce,_e;for(Ae.pos=this.offset,this.version=Ae.readUInt16(),_e=Ae.readUInt16(),this.tables=[],this.unicode=null,Ce=0;0<=_e?Ce<_e:Ce>_e;Ce=0<=_e?++Ce:--Ce)Ee=new ce(Ae,this.offset),this.tables.push(Ee),Ee.isUnicode&&this.unicode==null&&(this.unicode=Ee);return!0},St.encode=function(Ae,Ee){var Ce,_e;return Ee==null&&(Ee="macroman"),Ce=ce.encode(Ae,Ee),(_e=new ne).writeUInt16(0),_e.writeUInt16(1),Ce.table=_e.data.concat(Ce.subtable),Ce},St}(),he=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="hhea",St.prototype.parse=function(Ae){return Ae.pos=this.offset,this.version=Ae.readInt(),this.ascender=Ae.readShort(),this.decender=Ae.readShort(),this.lineGap=Ae.readShort(),this.advanceWidthMax=Ae.readShort(),this.minLeftSideBearing=Ae.readShort(),this.minRightSideBearing=Ae.readShort(),this.xMaxExtent=Ae.readShort(),this.caretSlopeRise=Ae.readShort(),this.caretSlopeRun=Ae.readShort(),this.caretOffset=Ae.readShort(),Ae.pos+=8,this.metricDataFormat=Ae.readShort(),this.numberOfMetrics=Ae.readUInt16()},St}(),le=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="OS/2",St.prototype.parse=function(Ae){if(Ae.pos=this.offset,this.version=Ae.readUInt16(),this.averageCharWidth=Ae.readShort(),this.weightClass=Ae.readUInt16(),this.widthClass=Ae.readUInt16(),this.type=Ae.readShort(),this.ySubscriptXSize=Ae.readShort(),this.ySubscriptYSize=Ae.readShort(),this.ySubscriptXOffset=Ae.readShort(),this.ySubscriptYOffset=Ae.readShort(),this.ySuperscriptXSize=Ae.readShort(),this.ySuperscriptYSize=Ae.readShort(),this.ySuperscriptXOffset=Ae.readShort(),this.ySuperscriptYOffset=Ae.readShort(),this.yStrikeoutSize=Ae.readShort(),this.yStrikeoutPosition=Ae.readShort(),this.familyClass=Ae.readShort(),this.panose=function(){var Ee,Ce;for(Ce=[],Ee=0;Ee<10;++Ee)Ce.push(Ae.readByte());return Ce}(),this.charRange=function(){var Ee,Ce;for(Ce=[],Ee=0;Ee<4;++Ee)Ce.push(Ae.readInt());return Ce}(),this.vendorID=Ae.readString(4),this.selection=Ae.readShort(),this.firstCharIndex=Ae.readShort(),this.lastCharIndex=Ae.readShort(),this.version>0&&(this.ascent=Ae.readShort(),this.descent=Ae.readShort(),this.lineGap=Ae.readShort(),this.winAscent=Ae.readShort(),this.winDescent=Ae.readShort(),this.codePageRange=function(){var Ee,Ce;for(Ce=[],Ee=0;Ee<2;Ee=++Ee)Ce.push(Ae.readInt());return Ce}(),this.version>1))return this.xHeight=Ae.readShort(),this.capHeight=Ae.readShort(),this.defaultChar=Ae.readShort(),this.breakChar=Ae.readShort(),this.maxContext=Ae.readShort()},St}(),fe=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="post",St.prototype.parse=function(Ae){var Ee,Ce,_e;switch(Ae.pos=this.offset,this.format=Ae.readInt(),this.italicAngle=Ae.readInt(),this.underlinePosition=Ae.readShort(),this.underlineThickness=Ae.readShort(),this.isFixedPitch=Ae.readInt(),this.minMemType42=Ae.readInt(),this.maxMemType42=Ae.readInt(),this.minMemType1=Ae.readInt(),this.maxMemType1=Ae.readInt(),this.format){case 65536:break;case 131072:var Te;for(Ce=Ae.readUInt16(),this.glyphNameIndex=[],Te=0;0<=Ce?Te<Ce:Te>Ce;Te=0<=Ce?++Te:--Te)this.glyphNameIndex.push(Ae.readUInt16());for(this.names=[],_e=[];Ae.pos<this.offset+this.length;)Ee=Ae.readByte(),_e.push(this.names.push(Ae.readString(Ee)));return _e;case 151552:return Ce=Ae.readUInt16(),this.offsets=Ae.read(Ce);case 196608:break;case 262144:return this.map=(function(){var Se,xe,Fe;for(Fe=[],Te=Se=0,xe=this.file.maxp.numGlyphs;0<=xe?Se<xe:Se>xe;Te=0<=xe?++Se:--Se)Fe.push(Ae.readUInt32());return Fe}).call(this)}},St}(),de=function(Be,St){this.raw=Be,this.length=Be.length,this.platformID=St.platformID,this.encodingID=St.encodingID,this.languageID=St.languageID},pe=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="name",St.prototype.parse=function(Ae){var Ee,Ce,_e,Te,Se,xe,Fe,Ue,Re,He,$e;for(Ae.pos=this.offset,Ae.readShort(),Ee=Ae.readShort(),xe=Ae.readShort(),Ce=[],Te=0;0<=Ee?Te<Ee:Te>Ee;Te=0<=Ee?++Te:--Te)Ce.push({platformID:Ae.readShort(),encodingID:Ae.readShort(),languageID:Ae.readShort(),nameID:Ae.readShort(),length:Ae.readShort(),offset:this.offset+xe+Ae.readShort()});for(Fe={},Te=Re=0,He=Ce.length;Re<He;Te=++Re)_e=Ce[Te],Ae.pos=_e.offset,Ue=Ae.readString(_e.length),Se=new de(Ue,_e),Fe[$e=_e.nameID]==null&&(Fe[$e]=[]),Fe[_e.nameID].push(Se);this.strings=Fe,this.copyright=Fe[0],this.fontFamily=Fe[1],this.fontSubfamily=Fe[2],this.uniqueSubfamily=Fe[3],this.fontName=Fe[4],this.version=Fe[5];try{this.postscriptName=Fe[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=Fe[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Fe[7],this.manufacturer=Fe[8],this.designer=Fe[9],this.description=Fe[10],this.vendorUrl=Fe[11],this.designerUrl=Fe[12],this.license=Fe[13],this.licenseUrl=Fe[14],this.preferredFamily=Fe[15],this.preferredSubfamily=Fe[17],this.compatibleFull=Fe[18],this.sampleText=Fe[19]},St}(),ge=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="maxp",St.prototype.parse=function(Ae){return Ae.pos=this.offset,this.version=Ae.readInt(),this.numGlyphs=Ae.readUInt16(),this.maxPoints=Ae.readUInt16(),this.maxContours=Ae.readUInt16(),this.maxCompositePoints=Ae.readUInt16(),this.maxComponentContours=Ae.readUInt16(),this.maxZones=Ae.readUInt16(),this.maxTwilightPoints=Ae.readUInt16(),this.maxStorage=Ae.readUInt16(),this.maxFunctionDefs=Ae.readUInt16(),this.maxInstructionDefs=Ae.readUInt16(),this.maxStackElements=Ae.readUInt16(),this.maxSizeOfInstructions=Ae.readUInt16(),this.maxComponentElements=Ae.readUInt16(),this.maxComponentDepth=Ae.readUInt16()},St}(),me=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="hmtx",St.prototype.parse=function(Ae){var Ee,Ce,_e,Te,Se,xe,Fe;for(Ae.pos=this.offset,this.metrics=[],Ee=0,xe=this.file.hhea.numberOfMetrics;0<=xe?Ee<xe:Ee>xe;Ee=0<=xe?++Ee:--Ee)this.metrics.push({advance:Ae.readUInt16(),lsb:Ae.readInt16()});for(_e=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Ue,Re;for(Re=[],Ee=Ue=0;0<=_e?Ue<_e:Ue>_e;Ee=0<=_e?++Ue:--Ue)Re.push(Ae.readInt16());return Re}(),this.widths=(function(){var Ue,Re,He,$e;for($e=[],Ue=0,Re=(He=this.metrics).length;Ue<Re;Ue++)Te=He[Ue],$e.push(Te.advance);return $e}).call(this),Ce=this.widths[this.widths.length-1],Fe=[],Ee=Se=0;0<=_e?Se<_e:Se>_e;Ee=0<=_e?++Se:--Se)Fe.push(this.widths.push(Ce));return Fe},St.prototype.forGlyph=function(Ae){return Ae in this.metrics?this.metrics[Ae]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[Ae-this.metrics.length]}},St}(),ve=[].slice,be=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="glyf",St.prototype.parse=function(){return this.cache={}},St.prototype.glyphFor=function(Ae){var Ee,Ce,_e,Te,Se,xe,Fe,Ue,Re,He;return Ae in this.cache?this.cache[Ae]:(Te=this.file.loca,Ee=this.file.contents,Ce=Te.indexOf(Ae),(_e=Te.lengthOf(Ae))===0?this.cache[Ae]=null:(Ee.pos=this.offset+Ce,Se=(xe=new ne(Ee.read(_e))).readShort(),Ue=xe.readShort(),He=xe.readShort(),Fe=xe.readShort(),Re=xe.readShort(),this.cache[Ae]=Se===-1?new we(xe,Ue,He,Fe,Re):new ye(xe,Se,Ue,He,Fe,Re),this.cache[Ae]))},St.prototype.encode=function(Ae,Ee,Ce){var _e,Te,Se,xe,Fe;for(Se=[],Te=[],xe=0,Fe=Ee.length;xe<Fe;xe++)_e=Ae[Ee[xe]],Te.push(Se.length),_e&&(Se=Se.concat(_e.encode(Ce)));return Te.push(Se.length),{table:Se,offsets:Te}},St}(),ye=function(){function Be(St,Ae,Ee,Ce,_e,Te){this.raw=St,this.numberOfContours=Ae,this.xMin=Ee,this.yMin=Ce,this.xMax=_e,this.yMax=Te,this.compound=!1}return Be.prototype.encode=function(){return this.raw.data},Be}(),we=function(){function Be(St,Ae,Ee,Ce,_e){var Te,Se;for(this.raw=St,this.xMin=Ae,this.yMin=Ee,this.xMax=Ce,this.yMax=_e,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],Te=this.raw;Se=Te.readShort(),this.glyphOffsets.push(Te.pos),this.glyphIDs.push(Te.readUInt16()),32&Se;)Te.pos+=1&Se?4:2,128&Se?Te.pos+=8:64&Se?Te.pos+=4:8&Se&&(Te.pos+=2)}return Be.prototype.encode=function(){var St,Ae,Ee;for(Ae=new ne(ve.call(this.raw.data)),St=0,Ee=this.glyphIDs.length;St<Ee;++St)Ae.pos=this.glyphOffsets[St];return Ae.data},Be}(),Ne=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="loca",St.prototype.parse=function(Ae){var Ee,Ce;return Ae.pos=this.offset,Ee=this.file.head.indexToLocFormat,this.offsets=Ee===0?(function(){var _e,Te;for(Te=[],Ce=0,_e=this.length;Ce<_e;Ce+=2)Te.push(2*Ae.readUInt16());return Te}).call(this):(function(){var _e,Te;for(Te=[],Ce=0,_e=this.length;Ce<_e;Ce+=4)Te.push(Ae.readUInt32());return Te}).call(this)},St.prototype.indexOf=function(Ae){return this.offsets[Ae]},St.prototype.lengthOf=function(Ae){return this.offsets[Ae+1]-this.offsets[Ae]},St.prototype.encode=function(Ae,Ee){for(var Ce=new Uint32Array(this.offsets.length),_e=0,Te=0,Se=0;Se<Ce.length;++Se)if(Ce[Se]=_e,Te<Ee.length&&Ee[Te]==Se){++Te,Ce[Se]=_e;var xe=this.offsets[Se],Fe=this.offsets[Se+1]-xe;Fe>0&&(_e+=Fe)}for(var Ue=new Array(4*Ce.length),Re=0;Re<Ce.length;++Re)Ue[4*Re+3]=255&Ce[Re],Ue[4*Re+2]=(65280&Ce[Re])>>8,Ue[4*Re+1]=(16711680&Ce[Re])>>16,Ue[4*Re]=(4278190080&Ce[Re])>>24;return Ue},St}(),Le=function(){function Be(St){this.font=St,this.subset={},this.unicodes={},this.next=33}return Be.prototype.generateCmap=function(){var St,Ae,Ee,Ce,_e;for(Ae in Ce=this.font.cmap.tables[0].codeMap,St={},_e=this.subset)Ee=_e[Ae],St[Ae]=Ce[Ee];return St},Be.prototype.glyphsFor=function(St){var Ae,Ee,Ce,_e,Te,Se,xe;for(Ce={},Te=0,Se=St.length;Te<Se;Te++)Ce[_e=St[Te]]=this.font.glyf.glyphFor(_e);for(_e in Ae=[],Ce)(Ee=Ce[_e])!=null&&Ee.compound&&Ae.push.apply(Ae,Ee.glyphIDs);if(Ae.length>0)for(_e in xe=this.glyphsFor(Ae))Ee=xe[_e],Ce[_e]=Ee;return Ce},Be.prototype.encode=function(St,Ae){var Ee,Ce,_e,Te,Se,xe,Fe,Ue,Re,He,$e,ze,Ve,ir,Ze;for(Ce in Ee=ue.encode(this.generateCmap(),"unicode"),Te=this.glyphsFor(St),$e={0:0},Ze=Ee.charMap)$e[(xe=Ze[Ce]).old]=xe.new;for(ze in He=Ee.maxGlyphID,Te)ze in $e||($e[ze]=He++);return Ue=function(ar){var cr,Xe;for(cr in Xe={},ar)Xe[ar[cr]]=cr;return Xe}($e),Re=Object.keys(Ue).sort(function(ar,cr){return ar-cr}),Ve=function(){var ar,cr,Xe;for(Xe=[],ar=0,cr=Re.length;ar<cr;ar++)Se=Re[ar],Xe.push(Ue[Se]);return Xe}(),_e=this.font.glyf.encode(Te,Ve,$e),Fe=this.font.loca.encode(_e.offsets,Ve),ir={cmap:this.font.cmap.raw(),glyf:_e.table,loca:Fe,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(Ae)},this.font.os2.exists&&(ir["OS/2"]=this.font.os2.raw()),this.font.directory.encode(ir)},Be}();E$1.API.PDFObject=function(){var Be;function St(){}return Be=function(Ae,Ee){return(Array(Ee+1).join("0")+Ae).slice(-Ee)},St.convert=function(Ae){var Ee,Ce,_e,Te;if(Array.isArray(Ae))return"["+function(){var Se,xe,Fe;for(Fe=[],Se=0,xe=Ae.length;Se<xe;Se++)Ee=Ae[Se],Fe.push(St.convert(Ee));return Fe}().join(" ")+"]";if(typeof Ae=="string")return"/"+Ae;if(Ae!=null&&Ae.isString)return"("+Ae+")";if(Ae instanceof Date)return"(D:"+Be(Ae.getUTCFullYear(),4)+Be(Ae.getUTCMonth(),2)+Be(Ae.getUTCDate(),2)+Be(Ae.getUTCHours(),2)+Be(Ae.getUTCMinutes(),2)+Be(Ae.getUTCSeconds(),2)+"Z)";if({}.toString.call(Ae)==="[object Object]"){for(Ce in _e=["<<"],Ae)Te=Ae[Ce],_e.push("/"+Ce+" "+St.convert(Te));return _e.push(">>"),_e.join(`
`)}return""+Ae},St}();/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var extendStatics=function(Be,St){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,Ee){Ae.__proto__=Ee}||function(Ae,Ee){for(var Ce in Ee)Object.prototype.hasOwnProperty.call(Ee,Ce)&&(Ae[Ce]=Ee[Ce])},extendStatics(Be,St)};function __extends(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Class extends value "+String(St)+" is not a constructor or null");extendStatics(Be,St);function Ae(){this.constructor=Be}Be.prototype=St===null?Object.create(St):(Ae.prototype=St.prototype,new Ae)}var __assign=function(){return __assign=Object.assign||function(St){for(var Ae,Ee=1,Ce=arguments.length;Ee<Ce;Ee++){Ae=arguments[Ee];for(var _e in Ae)Object.prototype.hasOwnProperty.call(Ae,_e)&&(St[_e]=Ae[_e])}return St},__assign.apply(this,arguments)};function __awaiter(Be,St,Ae,Ee){function Ce(_e){return _e instanceof Ae?_e:new Ae(function(Te){Te(_e)})}return new(Ae||(Ae=Promise))(function(_e,Te){function Se(Ue){try{Fe(Ee.next(Ue))}catch(Re){Te(Re)}}function xe(Ue){try{Fe(Ee.throw(Ue))}catch(Re){Te(Re)}}function Fe(Ue){Ue.done?_e(Ue.value):Ce(Ue.value).then(Se,xe)}Fe((Ee=Ee.apply(Be,St||[])).next())})}function __generator(Be,St){var Ae={label:0,sent:function(){if(_e[0]&1)throw _e[1];return _e[1]},trys:[],ops:[]},Ee,Ce,_e,Te;return Te={next:Se(0),throw:Se(1),return:Se(2)},typeof Symbol=="function"&&(Te[Symbol.iterator]=function(){return this}),Te;function Se(Fe){return function(Ue){return xe([Fe,Ue])}}function xe(Fe){if(Ee)throw new TypeError("Generator is already executing.");for(;Ae;)try{if(Ee=1,Ce&&(_e=Fe[0]&2?Ce.return:Fe[0]?Ce.throw||((_e=Ce.return)&&_e.call(Ce),0):Ce.next)&&!(_e=_e.call(Ce,Fe[1])).done)return _e;switch(Ce=0,_e&&(Fe=[Fe[0]&2,_e.value]),Fe[0]){case 0:case 1:_e=Fe;break;case 4:return Ae.label++,{value:Fe[1],done:!1};case 5:Ae.label++,Ce=Fe[1],Fe=[0];continue;case 7:Fe=Ae.ops.pop(),Ae.trys.pop();continue;default:if(_e=Ae.trys,!(_e=_e.length>0&&_e[_e.length-1])&&(Fe[0]===6||Fe[0]===2)){Ae=0;continue}if(Fe[0]===3&&(!_e||Fe[1]>_e[0]&&Fe[1]<_e[3])){Ae.label=Fe[1];break}if(Fe[0]===6&&Ae.label<_e[1]){Ae.label=_e[1],_e=Fe;break}if(_e&&Ae.label<_e[2]){Ae.label=_e[2],Ae.ops.push(Fe);break}_e[2]&&Ae.ops.pop(),Ae.trys.pop();continue}Fe=St.call(Be,Ae)}catch(Ue){Fe=[6,Ue],Ce=0}finally{Ee=_e=0}if(Fe[0]&5)throw Fe[1];return{value:Fe[0]?Fe[1]:void 0,done:!0}}}function __spreadArray(Be,St,Ae){if(Ae||arguments.length===2)for(var Ee=0,Ce=St.length,_e;Ee<Ce;Ee++)(_e||!(Ee in St))&&(_e||(_e=Array.prototype.slice.call(St,0,Ee)),_e[Ee]=St[Ee]);return Be.concat(_e||St)}for(var Bounds=function(){function Be(St,Ae,Ee,Ce){this.left=St,this.top=Ae,this.width=Ee,this.height=Ce}return Be.prototype.add=function(St,Ae,Ee,Ce){return new Be(this.left+St,this.top+Ae,this.width+Ee,this.height+Ce)},Be.fromClientRect=function(St,Ae){return new Be(Ae.left+St.windowBounds.left,Ae.top+St.windowBounds.top,Ae.width,Ae.height)},Be.fromDOMRectList=function(St,Ae){var Ee=Array.from(Ae).find(function(Ce){return Ce.width!==0});return Ee?new Be(Ee.left+St.windowBounds.left,Ee.top+St.windowBounds.top,Ee.width,Ee.height):Be.EMPTY},Be.EMPTY=new Be(0,0,0,0),Be}(),parseBounds=function(Be,St){return Bounds.fromClientRect(Be,St.getBoundingClientRect())},parseDocumentSize=function(Be){var St=Be.body,Ae=Be.documentElement;if(!St||!Ae)throw new Error("Unable to get document size");var Ee=Math.max(Math.max(St.scrollWidth,Ae.scrollWidth),Math.max(St.offsetWidth,Ae.offsetWidth),Math.max(St.clientWidth,Ae.clientWidth)),Ce=Math.max(Math.max(St.scrollHeight,Ae.scrollHeight),Math.max(St.offsetHeight,Ae.offsetHeight),Math.max(St.clientHeight,Ae.clientHeight));return new Bounds(0,0,Ee,Ce)},toCodePoints$1=function(Be){for(var St=[],Ae=0,Ee=Be.length;Ae<Ee;){var Ce=Be.charCodeAt(Ae++);if(Ce>=55296&&Ce<=56319&&Ae<Ee){var _e=Be.charCodeAt(Ae++);(_e&64512)===56320?St.push(((Ce&1023)<<10)+(_e&1023)+65536):(St.push(Ce),Ae--)}else St.push(Ce)}return St},fromCodePoint$1=function(){for(var Be=[],St=0;St<arguments.length;St++)Be[St]=arguments[St];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Be);var Ae=Be.length;if(!Ae)return"";for(var Ee=[],Ce=-1,_e="";++Ce<Ae;){var Te=Be[Ce];Te<=65535?Ee.push(Te):(Te-=65536,Ee.push((Te>>10)+55296,Te%1024+56320)),(Ce+1===Ae||Ee.length>16384)&&(_e+=String.fromCharCode.apply(String,Ee),Ee.length=0)}return _e},chars$2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$2=typeof Uint8Array>"u"?[]:new Uint8Array(256),i$2=0;i$2<chars$2.length;i$2++)lookup$2[chars$2.charCodeAt(i$2)]=i$2;for(var chars$1$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1$1=typeof Uint8Array>"u"?[]:new Uint8Array(256),i$1$1=0;i$1$1<chars$1$1.length;i$1$1++)lookup$1$1[chars$1$1.charCodeAt(i$1$1)]=i$1$1;for(var decode$1=function(Be){var St=Be.length*.75,Ae=Be.length,Ee,Ce=0,_e,Te,Se,xe;Be[Be.length-1]==="="&&(St--,Be[Be.length-2]==="="&&St--);var Fe=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(St):new Array(St),Ue=Array.isArray(Fe)?Fe:new Uint8Array(Fe);for(Ee=0;Ee<Ae;Ee+=4)_e=lookup$1$1[Be.charCodeAt(Ee)],Te=lookup$1$1[Be.charCodeAt(Ee+1)],Se=lookup$1$1[Be.charCodeAt(Ee+2)],xe=lookup$1$1[Be.charCodeAt(Ee+3)],Ue[Ce++]=_e<<2|Te>>4,Ue[Ce++]=(Te&15)<<4|Se>>2,Ue[Ce++]=(Se&3)<<6|xe&63;return Fe},polyUint16Array$1=function(Be){for(var St=Be.length,Ae=[],Ee=0;Ee<St;Ee+=2)Ae.push(Be[Ee+1]<<8|Be[Ee]);return Ae},polyUint32Array$1=function(Be){for(var St=Be.length,Ae=[],Ee=0;Ee<St;Ee+=4)Ae.push(Be[Ee+3]<<24|Be[Ee+2]<<16|Be[Ee+1]<<8|Be[Ee]);return Ae},UTRIE2_SHIFT_2$1=5,UTRIE2_SHIFT_1$1=6+5,UTRIE2_INDEX_SHIFT$1=2,UTRIE2_SHIFT_1_2$1=UTRIE2_SHIFT_1$1-UTRIE2_SHIFT_2$1,UTRIE2_LSCP_INDEX_2_OFFSET$1=65536>>UTRIE2_SHIFT_2$1,UTRIE2_DATA_BLOCK_LENGTH$1=1<<UTRIE2_SHIFT_2$1,UTRIE2_DATA_MASK$1=UTRIE2_DATA_BLOCK_LENGTH$1-1,UTRIE2_LSCP_INDEX_2_LENGTH$1=1024>>UTRIE2_SHIFT_2$1,UTRIE2_INDEX_2_BMP_LENGTH$1=UTRIE2_LSCP_INDEX_2_OFFSET$1+UTRIE2_LSCP_INDEX_2_LENGTH$1,UTRIE2_UTF8_2B_INDEX_2_OFFSET$1=UTRIE2_INDEX_2_BMP_LENGTH$1,UTRIE2_UTF8_2B_INDEX_2_LENGTH$1=32,UTRIE2_INDEX_1_OFFSET$1=UTRIE2_UTF8_2B_INDEX_2_OFFSET$1+UTRIE2_UTF8_2B_INDEX_2_LENGTH$1,UTRIE2_OMITTED_BMP_INDEX_1_LENGTH$1=65536>>UTRIE2_SHIFT_1$1,UTRIE2_INDEX_2_BLOCK_LENGTH$1=1<<UTRIE2_SHIFT_1_2$1,UTRIE2_INDEX_2_MASK$1=UTRIE2_INDEX_2_BLOCK_LENGTH$1-1,slice16$1=function(Be,St,Ae){return Be.slice?Be.slice(St,Ae):new Uint16Array(Array.prototype.slice.call(Be,St,Ae))},slice32$1=function(Be,St,Ae){return Be.slice?Be.slice(St,Ae):new Uint32Array(Array.prototype.slice.call(Be,St,Ae))},createTrieFromBase64$1=function(Be,St){var Ae=decode$1(Be),Ee=Array.isArray(Ae)?polyUint32Array$1(Ae):new Uint32Array(Ae),Ce=Array.isArray(Ae)?polyUint16Array$1(Ae):new Uint16Array(Ae),_e=24,Te=slice16$1(Ce,_e/2,Ee[4]/2),Se=Ee[5]===2?slice16$1(Ce,(_e+Ee[4])/2):slice32$1(Ee,Math.ceil((_e+Ee[4])/4));return new Trie$1(Ee[0],Ee[1],Ee[2],Ee[3],Te,Se)},Trie$1=function(){function Be(St,Ae,Ee,Ce,_e,Te){this.initialValue=St,this.errorValue=Ae,this.highStart=Ee,this.highValueIndex=Ce,this.index=_e,this.data=Te}return Be.prototype.get=function(St){var Ae;if(St>=0){if(St<55296||St>56319&&St<=65535)return Ae=this.index[St>>UTRIE2_SHIFT_2$1],Ae=(Ae<<UTRIE2_INDEX_SHIFT$1)+(St&UTRIE2_DATA_MASK$1),this.data[Ae];if(St<=65535)return Ae=this.index[UTRIE2_LSCP_INDEX_2_OFFSET$1+(St-55296>>UTRIE2_SHIFT_2$1)],Ae=(Ae<<UTRIE2_INDEX_SHIFT$1)+(St&UTRIE2_DATA_MASK$1),this.data[Ae];if(St<this.highStart)return Ae=UTRIE2_INDEX_1_OFFSET$1-UTRIE2_OMITTED_BMP_INDEX_1_LENGTH$1+(St>>UTRIE2_SHIFT_1$1),Ae=this.index[Ae],Ae+=St>>UTRIE2_SHIFT_2$1&UTRIE2_INDEX_2_MASK$1,Ae=this.index[Ae],Ae=(Ae<<UTRIE2_INDEX_SHIFT$1)+(St&UTRIE2_DATA_MASK$1),this.data[Ae];if(St<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Be}(),chars$3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$3=typeof Uint8Array>"u"?[]:new Uint8Array(256),i$3=0;i$3<chars$3.length;i$3++)lookup$3[chars$3.charCodeAt(i$3)]=i$3;var base64$1="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",LETTER_NUMBER_MODIFIER=50,BK=1,CR$1=2,LF$1=3,CM=4,NL=5,WJ=7,ZW=8,GL=9,SP=10,ZWJ$1=11,B2=12,BA=13,BB=14,HY=15,CB=16,CL=17,CP=18,EX=19,IN=20,NS=21,OP=22,QU=23,IS=24,NU=25,PO=26,PR=27,SY=28,AI=29,AL=30,CJ=31,EB=32,EM=33,H2=34,H3=35,HL=36,ID=37,JL=38,JV=39,JT=40,RI$1=41,SA=42,XX=43,ea_OP=[9001,65288],BREAK_MANDATORY="!",BREAK_NOT_ALLOWED$1="×",BREAK_ALLOWED$1="÷",UnicodeTrie$1=createTrieFromBase64$1(base64$1),ALPHABETICS=[AL,HL],HARD_LINE_BREAKS=[BK,CR$1,LF$1,NL],SPACE$1=[SP,ZW],PREFIX_POSTFIX=[PR,PO],LINE_BREAKS=HARD_LINE_BREAKS.concat(SPACE$1),KOREAN_SYLLABLE_BLOCK=[JL,JV,JT,H2,H3],HYPHEN=[HY,BA],codePointsToCharacterClasses=function(Be,St){St===void 0&&(St="strict");var Ae=[],Ee=[],Ce=[];return Be.forEach(function(_e,Te){var Se=UnicodeTrie$1.get(_e);if(Se>LETTER_NUMBER_MODIFIER?(Ce.push(!0),Se-=LETTER_NUMBER_MODIFIER):Ce.push(!1),["normal","auto","loose"].indexOf(St)!==-1&&[8208,8211,12316,12448].indexOf(_e)!==-1)return Ee.push(Te),Ae.push(CB);if(Se===CM||Se===ZWJ$1){if(Te===0)return Ee.push(Te),Ae.push(AL);var xe=Ae[Te-1];return LINE_BREAKS.indexOf(xe)===-1?(Ee.push(Ee[Te-1]),Ae.push(xe)):(Ee.push(Te),Ae.push(AL))}if(Ee.push(Te),Se===CJ)return Ae.push(St==="strict"?NS:ID);if(Se===SA||Se===AI)return Ae.push(AL);if(Se===XX)return _e>=131072&&_e<=196605||_e>=196608&&_e<=262141?Ae.push(ID):Ae.push(AL);Ae.push(Se)}),[Ee,Ae,Ce]},isAdjacentWithSpaceIgnored=function(Be,St,Ae,Ee){var Ce=Ee[Ae];if(Array.isArray(Be)?Be.indexOf(Ce)!==-1:Be===Ce)for(var _e=Ae;_e<=Ee.length;){_e++;var Te=Ee[_e];if(Te===St)return!0;if(Te!==SP)break}if(Ce===SP)for(var _e=Ae;_e>0;){_e--;var Se=Ee[_e];if(Array.isArray(Be)?Be.indexOf(Se)!==-1:Be===Se)for(var xe=Ae;xe<=Ee.length;){xe++;var Te=Ee[xe];if(Te===St)return!0;if(Te!==SP)break}if(Se!==SP)break}return!1},previousNonSpaceClassType=function(Be,St){for(var Ae=Be;Ae>=0;){var Ee=St[Ae];if(Ee===SP)Ae--;else return Ee}return 0},_lineBreakAtIndex=function(Be,St,Ae,Ee,Ce){if(Ae[Ee]===0)return BREAK_NOT_ALLOWED$1;var _e=Ee-1;if(Array.isArray(Ce)&&Ce[_e]===!0)return BREAK_NOT_ALLOWED$1;var Te=_e-1,Se=_e+1,xe=St[_e],Fe=Te>=0?St[Te]:0,Ue=St[Se];if(xe===CR$1&&Ue===LF$1)return BREAK_NOT_ALLOWED$1;if(HARD_LINE_BREAKS.indexOf(xe)!==-1)return BREAK_MANDATORY;if(HARD_LINE_BREAKS.indexOf(Ue)!==-1||SPACE$1.indexOf(Ue)!==-1)return BREAK_NOT_ALLOWED$1;if(previousNonSpaceClassType(_e,St)===ZW)return BREAK_ALLOWED$1;if(UnicodeTrie$1.get(Be[_e])===ZWJ$1||(xe===EB||xe===EM)&&UnicodeTrie$1.get(Be[Se])===ZWJ$1||xe===WJ||Ue===WJ||xe===GL||[SP,BA,HY].indexOf(xe)===-1&&Ue===GL||[CL,CP,EX,IS,SY].indexOf(Ue)!==-1||previousNonSpaceClassType(_e,St)===OP||isAdjacentWithSpaceIgnored(QU,OP,_e,St)||isAdjacentWithSpaceIgnored([CL,CP],NS,_e,St)||isAdjacentWithSpaceIgnored(B2,B2,_e,St))return BREAK_NOT_ALLOWED$1;if(xe===SP)return BREAK_ALLOWED$1;if(xe===QU||Ue===QU)return BREAK_NOT_ALLOWED$1;if(Ue===CB||xe===CB)return BREAK_ALLOWED$1;if([BA,HY,NS].indexOf(Ue)!==-1||xe===BB||Fe===HL&&HYPHEN.indexOf(xe)!==-1||xe===SY&&Ue===HL||Ue===IN||ALPHABETICS.indexOf(Ue)!==-1&&xe===NU||ALPHABETICS.indexOf(xe)!==-1&&Ue===NU||xe===PR&&[ID,EB,EM].indexOf(Ue)!==-1||[ID,EB,EM].indexOf(xe)!==-1&&Ue===PO||ALPHABETICS.indexOf(xe)!==-1&&PREFIX_POSTFIX.indexOf(Ue)!==-1||PREFIX_POSTFIX.indexOf(xe)!==-1&&ALPHABETICS.indexOf(Ue)!==-1||[PR,PO].indexOf(xe)!==-1&&(Ue===NU||[OP,HY].indexOf(Ue)!==-1&&St[Se+1]===NU)||[OP,HY].indexOf(xe)!==-1&&Ue===NU||xe===NU&&[NU,SY,IS].indexOf(Ue)!==-1)return BREAK_NOT_ALLOWED$1;if([NU,SY,IS,CL,CP].indexOf(Ue)!==-1)for(var Re=_e;Re>=0;){var He=St[Re];if(He===NU)return BREAK_NOT_ALLOWED$1;if([SY,IS].indexOf(He)!==-1)Re--;else break}if([PR,PO].indexOf(Ue)!==-1)for(var Re=[CL,CP].indexOf(xe)!==-1?Te:_e;Re>=0;){var He=St[Re];if(He===NU)return BREAK_NOT_ALLOWED$1;if([SY,IS].indexOf(He)!==-1)Re--;else break}if(JL===xe&&[JL,JV,H2,H3].indexOf(Ue)!==-1||[JV,H2].indexOf(xe)!==-1&&[JV,JT].indexOf(Ue)!==-1||[JT,H3].indexOf(xe)!==-1&&Ue===JT||KOREAN_SYLLABLE_BLOCK.indexOf(xe)!==-1&&[IN,PO].indexOf(Ue)!==-1||KOREAN_SYLLABLE_BLOCK.indexOf(Ue)!==-1&&xe===PR||ALPHABETICS.indexOf(xe)!==-1&&ALPHABETICS.indexOf(Ue)!==-1||xe===IS&&ALPHABETICS.indexOf(Ue)!==-1||ALPHABETICS.concat(NU).indexOf(xe)!==-1&&Ue===OP&&ea_OP.indexOf(Be[Se])===-1||ALPHABETICS.concat(NU).indexOf(Ue)!==-1&&xe===CP)return BREAK_NOT_ALLOWED$1;if(xe===RI$1&&Ue===RI$1){for(var $e=Ae[_e],ze=1;$e>0&&($e--,St[$e]===RI$1);)ze++;if(ze%2!==0)return BREAK_NOT_ALLOWED$1}return xe===EB&&Ue===EM?BREAK_NOT_ALLOWED$1:BREAK_ALLOWED$1},cssFormattedClasses=function(Be,St){St||(St={lineBreak:"normal",wordBreak:"normal"});var Ae=codePointsToCharacterClasses(Be,St.lineBreak),Ee=Ae[0],Ce=Ae[1],_e=Ae[2];(St.wordBreak==="break-all"||St.wordBreak==="break-word")&&(Ce=Ce.map(function(Se){return[NU,AL,SA].indexOf(Se)!==-1?ID:Se}));var Te=St.wordBreak==="keep-all"?_e.map(function(Se,xe){return Se&&Be[xe]>=19968&&Be[xe]<=40959}):void 0;return[Ee,Ce,Te]},Break=function(){function Be(St,Ae,Ee,Ce){this.codePoints=St,this.required=Ae===BREAK_MANDATORY,this.start=Ee,this.end=Ce}return Be.prototype.slice=function(){return fromCodePoint$1.apply(void 0,this.codePoints.slice(this.start,this.end))},Be}(),LineBreaker=function(Be,St){var Ae=toCodePoints$1(Be),Ee=cssFormattedClasses(Ae,St),Ce=Ee[0],_e=Ee[1],Te=Ee[2],Se=Ae.length,xe=0,Fe=0;return{next:function(){if(Fe>=Se)return{done:!0,value:null};for(var Ue=BREAK_NOT_ALLOWED$1;Fe<Se&&(Ue=_lineBreakAtIndex(Ae,_e,Ce,++Fe,Te))===BREAK_NOT_ALLOWED$1;);if(Ue!==BREAK_NOT_ALLOWED$1||Fe===Se){var Re=new Break(Ae,Ue,xe,Fe);return xe=Fe,{value:Re,done:!1}}return{done:!0,value:null}}}},FLAG_UNRESTRICTED=1,FLAG_ID=2,FLAG_INTEGER=4,FLAG_NUMBER=8,LINE_FEED=10,SOLIDUS=47,REVERSE_SOLIDUS=92,CHARACTER_TABULATION=9,SPACE=32,QUOTATION_MARK=34,EQUALS_SIGN=61,NUMBER_SIGN=35,DOLLAR_SIGN=36,PERCENTAGE_SIGN=37,APOSTROPHE=39,LEFT_PARENTHESIS=40,RIGHT_PARENTHESIS=41,LOW_LINE=95,HYPHEN_MINUS=45,EXCLAMATION_MARK=33,LESS_THAN_SIGN=60,GREATER_THAN_SIGN=62,COMMERCIAL_AT=64,LEFT_SQUARE_BRACKET=91,RIGHT_SQUARE_BRACKET=93,CIRCUMFLEX_ACCENT=61,LEFT_CURLY_BRACKET=123,QUESTION_MARK=63,RIGHT_CURLY_BRACKET=125,VERTICAL_LINE=124,TILDE=126,CONTROL=128,REPLACEMENT_CHARACTER=65533,ASTERISK=42,PLUS_SIGN=43,COMMA=44,COLON=58,SEMICOLON=59,FULL_STOP=46,NULL=0,BACKSPACE=8,LINE_TABULATION=11,SHIFT_OUT=14,INFORMATION_SEPARATOR_ONE=31,DELETE=127,EOF=-1,ZERO=48,a$1=97,e$1=101,f$1=102,u$1=117,z=122,A=65,E=69,F=70,U=85,Z=90,isDigit=function(Be){return Be>=ZERO&&Be<=57},isSurrogateCodePoint=function(Be){return Be>=55296&&Be<=57343},isHex=function(Be){return isDigit(Be)||Be>=A&&Be<=F||Be>=a$1&&Be<=f$1},isLowerCaseLetter=function(Be){return Be>=a$1&&Be<=z},isUpperCaseLetter=function(Be){return Be>=A&&Be<=Z},isLetter=function(Be){return isLowerCaseLetter(Be)||isUpperCaseLetter(Be)},isNonASCIICodePoint=function(Be){return Be>=CONTROL},isWhiteSpace=function(Be){return Be===LINE_FEED||Be===CHARACTER_TABULATION||Be===SPACE},isNameStartCodePoint=function(Be){return isLetter(Be)||isNonASCIICodePoint(Be)||Be===LOW_LINE},isNameCodePoint=function(Be){return isNameStartCodePoint(Be)||isDigit(Be)||Be===HYPHEN_MINUS},isNonPrintableCodePoint=function(Be){return Be>=NULL&&Be<=BACKSPACE||Be===LINE_TABULATION||Be>=SHIFT_OUT&&Be<=INFORMATION_SEPARATOR_ONE||Be===DELETE},isValidEscape=function(Be,St){return Be!==REVERSE_SOLIDUS?!1:St!==LINE_FEED},isIdentifierStart=function(Be,St,Ae){return Be===HYPHEN_MINUS?isNameStartCodePoint(St)||isValidEscape(St,Ae):isNameStartCodePoint(Be)?!0:!!(Be===REVERSE_SOLIDUS&&isValidEscape(Be,St))},isNumberStart=function(Be,St,Ae){return Be===PLUS_SIGN||Be===HYPHEN_MINUS?isDigit(St)?!0:St===FULL_STOP&&isDigit(Ae):isDigit(Be===FULL_STOP?St:Be)},stringToNumber=function(Be){var St=0,Ae=1;(Be[St]===PLUS_SIGN||Be[St]===HYPHEN_MINUS)&&(Be[St]===HYPHEN_MINUS&&(Ae=-1),St++);for(var Ee=[];isDigit(Be[St]);)Ee.push(Be[St++]);var Ce=Ee.length?parseInt(fromCodePoint$1.apply(void 0,Ee),10):0;Be[St]===FULL_STOP&&St++;for(var _e=[];isDigit(Be[St]);)_e.push(Be[St++]);var Te=_e.length,Se=Te?parseInt(fromCodePoint$1.apply(void 0,_e),10):0;(Be[St]===E||Be[St]===e$1)&&St++;var xe=1;(Be[St]===PLUS_SIGN||Be[St]===HYPHEN_MINUS)&&(Be[St]===HYPHEN_MINUS&&(xe=-1),St++);for(var Fe=[];isDigit(Be[St]);)Fe.push(Be[St++]);var Ue=Fe.length?parseInt(fromCodePoint$1.apply(void 0,Fe),10):0;return Ae*(Ce+Se*Math.pow(10,-Te))*Math.pow(10,xe*Ue)},LEFT_PARENTHESIS_TOKEN={type:2},RIGHT_PARENTHESIS_TOKEN={type:3},COMMA_TOKEN={type:4},SUFFIX_MATCH_TOKEN={type:13},PREFIX_MATCH_TOKEN={type:8},COLUMN_TOKEN={type:21},DASH_MATCH_TOKEN={type:9},INCLUDE_MATCH_TOKEN={type:10},LEFT_CURLY_BRACKET_TOKEN={type:11},RIGHT_CURLY_BRACKET_TOKEN={type:12},SUBSTRING_MATCH_TOKEN={type:14},BAD_URL_TOKEN={type:23},BAD_STRING_TOKEN={type:1},CDO_TOKEN={type:25},CDC_TOKEN={type:24},COLON_TOKEN={type:26},SEMICOLON_TOKEN={type:27},LEFT_SQUARE_BRACKET_TOKEN={type:28},RIGHT_SQUARE_BRACKET_TOKEN={type:29},WHITESPACE_TOKEN={type:31},EOF_TOKEN={type:32},Tokenizer=function(){function Be(){this._value=[]}return Be.prototype.write=function(St){this._value=this._value.concat(toCodePoints$1(St))},Be.prototype.read=function(){for(var St=[],Ae=this.consumeToken();Ae!==EOF_TOKEN;)St.push(Ae),Ae=this.consumeToken();return St},Be.prototype.consumeToken=function(){var St=this.consumeCodePoint();switch(St){case QUOTATION_MARK:return this.consumeStringToken(QUOTATION_MARK);case NUMBER_SIGN:var Ae=this.peekCodePoint(0),Ee=this.peekCodePoint(1),Ce=this.peekCodePoint(2);if(isNameCodePoint(Ae)||isValidEscape(Ee,Ce)){var _e=isIdentifierStart(Ae,Ee,Ce)?FLAG_ID:FLAG_UNRESTRICTED,Te=this.consumeName();return{type:5,value:Te,flags:_e}}break;case DOLLAR_SIGN:if(this.peekCodePoint(0)===EQUALS_SIGN)return this.consumeCodePoint(),SUFFIX_MATCH_TOKEN;break;case APOSTROPHE:return this.consumeStringToken(APOSTROPHE);case LEFT_PARENTHESIS:return LEFT_PARENTHESIS_TOKEN;case RIGHT_PARENTHESIS:return RIGHT_PARENTHESIS_TOKEN;case ASTERISK:if(this.peekCodePoint(0)===EQUALS_SIGN)return this.consumeCodePoint(),SUBSTRING_MATCH_TOKEN;break;case PLUS_SIGN:if(isNumberStart(St,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(St),this.consumeNumericToken();break;case COMMA:return COMMA_TOKEN;case HYPHEN_MINUS:var Se=St,xe=this.peekCodePoint(0),Fe=this.peekCodePoint(1);if(isNumberStart(Se,xe,Fe))return this.reconsumeCodePoint(St),this.consumeNumericToken();if(isIdentifierStart(Se,xe,Fe))return this.reconsumeCodePoint(St),this.consumeIdentLikeToken();if(xe===HYPHEN_MINUS&&Fe===GREATER_THAN_SIGN)return this.consumeCodePoint(),this.consumeCodePoint(),CDC_TOKEN;break;case FULL_STOP:if(isNumberStart(St,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(St),this.consumeNumericToken();break;case SOLIDUS:if(this.peekCodePoint(0)===ASTERISK)for(this.consumeCodePoint();;){var Ue=this.consumeCodePoint();if(Ue===ASTERISK&&(Ue=this.consumeCodePoint(),Ue===SOLIDUS))return this.consumeToken();if(Ue===EOF)return this.consumeToken()}break;case COLON:return COLON_TOKEN;case SEMICOLON:return SEMICOLON_TOKEN;case LESS_THAN_SIGN:if(this.peekCodePoint(0)===EXCLAMATION_MARK&&this.peekCodePoint(1)===HYPHEN_MINUS&&this.peekCodePoint(2)===HYPHEN_MINUS)return this.consumeCodePoint(),this.consumeCodePoint(),CDO_TOKEN;break;case COMMERCIAL_AT:var Re=this.peekCodePoint(0),He=this.peekCodePoint(1),$e=this.peekCodePoint(2);if(isIdentifierStart(Re,He,$e)){var Te=this.consumeName();return{type:7,value:Te}}break;case LEFT_SQUARE_BRACKET:return LEFT_SQUARE_BRACKET_TOKEN;case REVERSE_SOLIDUS:if(isValidEscape(St,this.peekCodePoint(0)))return this.reconsumeCodePoint(St),this.consumeIdentLikeToken();break;case RIGHT_SQUARE_BRACKET:return RIGHT_SQUARE_BRACKET_TOKEN;case CIRCUMFLEX_ACCENT:if(this.peekCodePoint(0)===EQUALS_SIGN)return this.consumeCodePoint(),PREFIX_MATCH_TOKEN;break;case LEFT_CURLY_BRACKET:return LEFT_CURLY_BRACKET_TOKEN;case RIGHT_CURLY_BRACKET:return RIGHT_CURLY_BRACKET_TOKEN;case u$1:case U:var ze=this.peekCodePoint(0),Ve=this.peekCodePoint(1);return ze===PLUS_SIGN&&(isHex(Ve)||Ve===QUESTION_MARK)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(St),this.consumeIdentLikeToken();case VERTICAL_LINE:if(this.peekCodePoint(0)===EQUALS_SIGN)return this.consumeCodePoint(),DASH_MATCH_TOKEN;if(this.peekCodePoint(0)===VERTICAL_LINE)return this.consumeCodePoint(),COLUMN_TOKEN;break;case TILDE:if(this.peekCodePoint(0)===EQUALS_SIGN)return this.consumeCodePoint(),INCLUDE_MATCH_TOKEN;break;case EOF:return EOF_TOKEN}return isWhiteSpace(St)?(this.consumeWhiteSpace(),WHITESPACE_TOKEN):isDigit(St)?(this.reconsumeCodePoint(St),this.consumeNumericToken()):isNameStartCodePoint(St)?(this.reconsumeCodePoint(St),this.consumeIdentLikeToken()):{type:6,value:fromCodePoint$1(St)}},Be.prototype.consumeCodePoint=function(){var St=this._value.shift();return typeof St>"u"?-1:St},Be.prototype.reconsumeCodePoint=function(St){this._value.unshift(St)},Be.prototype.peekCodePoint=function(St){return St>=this._value.length?-1:this._value[St]},Be.prototype.consumeUnicodeRangeToken=function(){for(var St=[],Ae=this.consumeCodePoint();isHex(Ae)&&St.length<6;)St.push(Ae),Ae=this.consumeCodePoint();for(var Ee=!1;Ae===QUESTION_MARK&&St.length<6;)St.push(Ae),Ae=this.consumeCodePoint(),Ee=!0;if(Ee){var Ce=parseInt(fromCodePoint$1.apply(void 0,St.map(function(xe){return xe===QUESTION_MARK?ZERO:xe})),16),_e=parseInt(fromCodePoint$1.apply(void 0,St.map(function(xe){return xe===QUESTION_MARK?F:xe})),16);return{type:30,start:Ce,end:_e}}var Te=parseInt(fromCodePoint$1.apply(void 0,St),16);if(this.peekCodePoint(0)===HYPHEN_MINUS&&isHex(this.peekCodePoint(1))){this.consumeCodePoint(),Ae=this.consumeCodePoint();for(var Se=[];isHex(Ae)&&Se.length<6;)Se.push(Ae),Ae=this.consumeCodePoint();var _e=parseInt(fromCodePoint$1.apply(void 0,Se),16);return{type:30,start:Te,end:_e}}else return{type:30,start:Te,end:Te}},Be.prototype.consumeIdentLikeToken=function(){var St=this.consumeName();return St.toLowerCase()==="url"&&this.peekCodePoint(0)===LEFT_PARENTHESIS?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===LEFT_PARENTHESIS?(this.consumeCodePoint(),{type:19,value:St}):{type:20,value:St}},Be.prototype.consumeUrlToken=function(){var St=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===EOF)return{type:22,value:""};var Ae=this.peekCodePoint(0);if(Ae===APOSTROPHE||Ae===QUOTATION_MARK){var Ee=this.consumeStringToken(this.consumeCodePoint());return Ee.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===EOF||this.peekCodePoint(0)===RIGHT_PARENTHESIS)?(this.consumeCodePoint(),{type:22,value:Ee.value}):(this.consumeBadUrlRemnants(),BAD_URL_TOKEN)}for(;;){var Ce=this.consumeCodePoint();if(Ce===EOF||Ce===RIGHT_PARENTHESIS)return{type:22,value:fromCodePoint$1.apply(void 0,St)};if(isWhiteSpace(Ce))return this.consumeWhiteSpace(),this.peekCodePoint(0)===EOF||this.peekCodePoint(0)===RIGHT_PARENTHESIS?(this.consumeCodePoint(),{type:22,value:fromCodePoint$1.apply(void 0,St)}):(this.consumeBadUrlRemnants(),BAD_URL_TOKEN);if(Ce===QUOTATION_MARK||Ce===APOSTROPHE||Ce===LEFT_PARENTHESIS||isNonPrintableCodePoint(Ce))return this.consumeBadUrlRemnants(),BAD_URL_TOKEN;if(Ce===REVERSE_SOLIDUS)if(isValidEscape(Ce,this.peekCodePoint(0)))St.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),BAD_URL_TOKEN;else St.push(Ce)}},Be.prototype.consumeWhiteSpace=function(){for(;isWhiteSpace(this.peekCodePoint(0));)this.consumeCodePoint()},Be.prototype.consumeBadUrlRemnants=function(){for(;;){var St=this.consumeCodePoint();if(St===RIGHT_PARENTHESIS||St===EOF)return;isValidEscape(St,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Be.prototype.consumeStringSlice=function(St){for(var Ae=5e4,Ee="";St>0;){var Ce=Math.min(Ae,St);Ee+=fromCodePoint$1.apply(void 0,this._value.splice(0,Ce)),St-=Ce}return this._value.shift(),Ee},Be.prototype.consumeStringToken=function(St){var Ae="",Ee=0;do{var Ce=this._value[Ee];if(Ce===EOF||Ce===void 0||Ce===St)return Ae+=this.consumeStringSlice(Ee),{type:0,value:Ae};if(Ce===LINE_FEED)return this._value.splice(0,Ee),BAD_STRING_TOKEN;if(Ce===REVERSE_SOLIDUS){var _e=this._value[Ee+1];_e!==EOF&&_e!==void 0&&(_e===LINE_FEED?(Ae+=this.consumeStringSlice(Ee),Ee=-1,this._value.shift()):isValidEscape(Ce,_e)&&(Ae+=this.consumeStringSlice(Ee),Ae+=fromCodePoint$1(this.consumeEscapedCodePoint()),Ee=-1))}Ee++}while(!0)},Be.prototype.consumeNumber=function(){var St=[],Ae=FLAG_INTEGER,Ee=this.peekCodePoint(0);for((Ee===PLUS_SIGN||Ee===HYPHEN_MINUS)&&St.push(this.consumeCodePoint());isDigit(this.peekCodePoint(0));)St.push(this.consumeCodePoint());Ee=this.peekCodePoint(0);var Ce=this.peekCodePoint(1);if(Ee===FULL_STOP&&isDigit(Ce))for(St.push(this.consumeCodePoint(),this.consumeCodePoint()),Ae=FLAG_NUMBER;isDigit(this.peekCodePoint(0));)St.push(this.consumeCodePoint());Ee=this.peekCodePoint(0),Ce=this.peekCodePoint(1);var _e=this.peekCodePoint(2);if((Ee===E||Ee===e$1)&&((Ce===PLUS_SIGN||Ce===HYPHEN_MINUS)&&isDigit(_e)||isDigit(Ce)))for(St.push(this.consumeCodePoint(),this.consumeCodePoint()),Ae=FLAG_NUMBER;isDigit(this.peekCodePoint(0));)St.push(this.consumeCodePoint());return[stringToNumber(St),Ae]},Be.prototype.consumeNumericToken=function(){var St=this.consumeNumber(),Ae=St[0],Ee=St[1],Ce=this.peekCodePoint(0),_e=this.peekCodePoint(1),Te=this.peekCodePoint(2);if(isIdentifierStart(Ce,_e,Te)){var Se=this.consumeName();return{type:15,number:Ae,flags:Ee,unit:Se}}return Ce===PERCENTAGE_SIGN?(this.consumeCodePoint(),{type:16,number:Ae,flags:Ee}):{type:17,number:Ae,flags:Ee}},Be.prototype.consumeEscapedCodePoint=function(){var St=this.consumeCodePoint();if(isHex(St)){for(var Ae=fromCodePoint$1(St);isHex(this.peekCodePoint(0))&&Ae.length<6;)Ae+=fromCodePoint$1(this.consumeCodePoint());isWhiteSpace(this.peekCodePoint(0))&&this.consumeCodePoint();var Ee=parseInt(Ae,16);return Ee===0||isSurrogateCodePoint(Ee)||Ee>1114111?REPLACEMENT_CHARACTER:Ee}return St===EOF?REPLACEMENT_CHARACTER:St},Be.prototype.consumeName=function(){for(var St="";;){var Ae=this.consumeCodePoint();if(isNameCodePoint(Ae))St+=fromCodePoint$1(Ae);else if(isValidEscape(Ae,this.peekCodePoint(0)))St+=fromCodePoint$1(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(Ae),St}},Be}(),Parser$1=function(){function Be(St){this._tokens=St}return Be.create=function(St){var Ae=new Tokenizer;return Ae.write(St),new Be(Ae.read())},Be.parseValue=function(St){return Be.create(St).parseComponentValue()},Be.parseValues=function(St){return Be.create(St).parseComponentValues()},Be.prototype.parseComponentValue=function(){for(var St=this.consumeToken();St.type===31;)St=this.consumeToken();if(St.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(St);var Ae=this.consumeComponentValue();do St=this.consumeToken();while(St.type===31);if(St.type===32)return Ae;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Be.prototype.parseComponentValues=function(){for(var St=[];;){var Ae=this.consumeComponentValue();if(Ae.type===32)return St;St.push(Ae),St.push()}},Be.prototype.consumeComponentValue=function(){var St=this.consumeToken();switch(St.type){case 11:case 28:case 2:return this.consumeSimpleBlock(St.type);case 19:return this.consumeFunction(St)}return St},Be.prototype.consumeSimpleBlock=function(St){for(var Ae={type:St,values:[]},Ee=this.consumeToken();;){if(Ee.type===32||isEndingTokenFor(Ee,St))return Ae;this.reconsumeToken(Ee),Ae.values.push(this.consumeComponentValue()),Ee=this.consumeToken()}},Be.prototype.consumeFunction=function(St){for(var Ae={name:St.value,values:[],type:18};;){var Ee=this.consumeToken();if(Ee.type===32||Ee.type===3)return Ae;this.reconsumeToken(Ee),Ae.values.push(this.consumeComponentValue())}},Be.prototype.consumeToken=function(){var St=this._tokens.shift();return typeof St>"u"?EOF_TOKEN:St},Be.prototype.reconsumeToken=function(St){this._tokens.unshift(St)},Be}(),isDimensionToken=function(Be){return Be.type===15},isNumberToken=function(Be){return Be.type===17},isIdentToken=function(Be){return Be.type===20},isStringToken=function(Be){return Be.type===0},isIdentWithValue=function(Be,St){return isIdentToken(Be)&&Be.value===St},nonWhiteSpace=function(Be){return Be.type!==31},nonFunctionArgSeparator=function(Be){return Be.type!==31&&Be.type!==4},parseFunctionArgs=function(Be){var St=[],Ae=[];return Be.forEach(function(Ee){if(Ee.type===4){if(Ae.length===0)throw new Error("Error parsing function args, zero tokens for arg");St.push(Ae),Ae=[];return}Ee.type!==31&&Ae.push(Ee)}),Ae.length&&St.push(Ae),St},isEndingTokenFor=function(Be,St){return St===11&&Be.type===12||St===28&&Be.type===29?!0:St===2&&Be.type===3},isLength=function(Be){return Be.type===17||Be.type===15},isLengthPercentage=function(Be){return Be.type===16||isLength(Be)},parseLengthPercentageTuple=function(Be){return Be.length>1?[Be[0],Be[1]]:[Be[0]]},ZERO_LENGTH={type:17,number:0,flags:FLAG_INTEGER},FIFTY_PERCENT={type:16,number:50,flags:FLAG_INTEGER},HUNDRED_PERCENT={type:16,number:100,flags:FLAG_INTEGER},getAbsoluteValueForTuple=function(Be,St,Ae){var Ee=Be[0],Ce=Be[1];return[getAbsoluteValue(Ee,St),getAbsoluteValue(typeof Ce<"u"?Ce:Ee,Ae)]},getAbsoluteValue=function(Be,St){if(Be.type===16)return Be.number/100*St;if(isDimensionToken(Be))switch(Be.unit){case"rem":case"em":return 16*Be.number;case"px":default:return Be.number}return Be.number},DEG="deg",GRAD="grad",RAD="rad",TURN="turn",angle={name:"angle",parse:function(Be,St){if(St.type===15)switch(St.unit){case DEG:return Math.PI*St.number/180;case GRAD:return Math.PI/200*St.number;case RAD:return St.number;case TURN:return Math.PI*2*St.number}throw new Error("Unsupported angle type")}},isAngle=function(Be){return Be.type===15&&(Be.unit===DEG||Be.unit===GRAD||Be.unit===RAD||Be.unit===TURN)},parseNamedSide=function(Be){var St=Be.filter(isIdentToken).map(function(Ae){return Ae.value}).join(" ");switch(St){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ZERO_LENGTH,ZERO_LENGTH];case"to top":case"bottom":return deg(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ZERO_LENGTH,HUNDRED_PERCENT];case"to right":case"left":return deg(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[HUNDRED_PERCENT,HUNDRED_PERCENT];case"to bottom":case"top":return deg(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[HUNDRED_PERCENT,ZERO_LENGTH];case"to left":case"right":return deg(270)}return 0},deg=function(Be){return Math.PI*Be/180},color$1={name:"color",parse:function(Be,St){if(St.type===18){var Ae=SUPPORTED_COLOR_FUNCTIONS[St.name];if(typeof Ae>"u")throw new Error('Attempting to parse an unsupported color function "'+St.name+'"');return Ae(Be,St.values)}if(St.type===5){if(St.value.length===3){var Ee=St.value.substring(0,1),Ce=St.value.substring(1,2),_e=St.value.substring(2,3);return pack(parseInt(Ee+Ee,16),parseInt(Ce+Ce,16),parseInt(_e+_e,16),1)}if(St.value.length===4){var Ee=St.value.substring(0,1),Ce=St.value.substring(1,2),_e=St.value.substring(2,3),Te=St.value.substring(3,4);return pack(parseInt(Ee+Ee,16),parseInt(Ce+Ce,16),parseInt(_e+_e,16),parseInt(Te+Te,16)/255)}if(St.value.length===6){var Ee=St.value.substring(0,2),Ce=St.value.substring(2,4),_e=St.value.substring(4,6);return pack(parseInt(Ee,16),parseInt(Ce,16),parseInt(_e,16),1)}if(St.value.length===8){var Ee=St.value.substring(0,2),Ce=St.value.substring(2,4),_e=St.value.substring(4,6),Te=St.value.substring(6,8);return pack(parseInt(Ee,16),parseInt(Ce,16),parseInt(_e,16),parseInt(Te,16)/255)}}if(St.type===20){var Se=COLORS[St.value.toUpperCase()];if(typeof Se<"u")return Se}return COLORS.TRANSPARENT}},isTransparent=function(Be){return(255&Be)===0},asString=function(Be){var St=255&Be,Ae=255&Be>>8,Ee=255&Be>>16,Ce=255&Be>>24;return St<255?"rgba("+Ce+","+Ee+","+Ae+","+St/255+")":"rgb("+Ce+","+Ee+","+Ae+")"},pack=function(Be,St,Ae,Ee){return(Be<<24|St<<16|Ae<<8|Math.round(Ee*255)<<0)>>>0},getTokenColorValue=function(Be,St){if(Be.type===17)return Be.number;if(Be.type===16){var Ae=St===3?1:255;return St===3?Be.number/100*Ae:Math.round(Be.number/100*Ae)}return 0},rgb=function(Be,St){var Ae=St.filter(nonFunctionArgSeparator);if(Ae.length===3){var Ee=Ae.map(getTokenColorValue),Ce=Ee[0],_e=Ee[1],Te=Ee[2];return pack(Ce,_e,Te,1)}if(Ae.length===4){var Se=Ae.map(getTokenColorValue),Ce=Se[0],_e=Se[1],Te=Se[2],xe=Se[3];return pack(Ce,_e,Te,xe)}return 0};function hue2rgb(Be,St,Ae){return Ae<0&&(Ae+=1),Ae>=1&&(Ae-=1),Ae<1/6?(St-Be)*Ae*6+Be:Ae<1/2?St:Ae<2/3?(St-Be)*6*(2/3-Ae)+Be:Be}var hsl=function(Be,St){var Ae=St.filter(nonFunctionArgSeparator),Ee=Ae[0],Ce=Ae[1],_e=Ae[2],Te=Ae[3],Se=(Ee.type===17?deg(Ee.number):angle.parse(Be,Ee))/(Math.PI*2),xe=isLengthPercentage(Ce)?Ce.number/100:0,Fe=isLengthPercentage(_e)?_e.number/100:0,Ue=typeof Te<"u"&&isLengthPercentage(Te)?getAbsoluteValue(Te,1):1;if(xe===0)return pack(Fe*255,Fe*255,Fe*255,1);var Re=Fe<=.5?Fe*(xe+1):Fe+xe-Fe*xe,He=Fe*2-Re,$e=hue2rgb(He,Re,Se+1/3),ze=hue2rgb(He,Re,Se),Ve=hue2rgb(He,Re,Se-1/3);return pack($e*255,ze*255,Ve*255,Ue)},SUPPORTED_COLOR_FUNCTIONS={hsl,hsla:hsl,rgb,rgba:rgb},parseColor=function(Be,St){return color$1.parse(Be,Parser$1.create(St).parseComponentValue())},COLORS={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},backgroundClip={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(Be,St){return St.map(function(Ae){if(isIdentToken(Ae))switch(Ae.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},backgroundColor={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},parseColorStop=function(Be,St){var Ae=color$1.parse(Be,St[0]),Ee=St[1];return Ee&&isLengthPercentage(Ee)?{color:Ae,stop:Ee}:{color:Ae,stop:null}},processColorStops=function(Be,St){var Ae=Be[0],Ee=Be[Be.length-1];Ae.stop===null&&(Ae.stop=ZERO_LENGTH),Ee.stop===null&&(Ee.stop=HUNDRED_PERCENT);for(var Ce=[],_e=0,Te=0;Te<Be.length;Te++){var Se=Be[Te].stop;if(Se!==null){var xe=getAbsoluteValue(Se,St);xe>_e?Ce.push(xe):Ce.push(_e),_e=xe}else Ce.push(null)}for(var Fe=null,Te=0;Te<Ce.length;Te++){var Ue=Ce[Te];if(Ue===null)Fe===null&&(Fe=Te);else if(Fe!==null){for(var Re=Te-Fe,He=Ce[Fe-1],$e=(Ue-He)/(Re+1),ze=1;ze<=Re;ze++)Ce[Fe+ze-1]=$e*ze;Fe=null}}return Be.map(function(Ve,ir){var Ze=Ve.color;return{color:Ze,stop:Math.max(Math.min(1,Ce[ir]/St),0)}})},getAngleFromCorner=function(Be,St,Ae){var Ee=St/2,Ce=Ae/2,_e=getAbsoluteValue(Be[0],St)-Ee,Te=Ce-getAbsoluteValue(Be[1],Ae);return(Math.atan2(Te,_e)+Math.PI*2)%(Math.PI*2)},calculateGradientDirection=function(Be,St,Ae){var Ee=typeof Be=="number"?Be:getAngleFromCorner(Be,St,Ae),Ce=Math.abs(St*Math.sin(Ee))+Math.abs(Ae*Math.cos(Ee)),_e=St/2,Te=Ae/2,Se=Ce/2,xe=Math.sin(Ee-Math.PI/2)*Se,Fe=Math.cos(Ee-Math.PI/2)*Se;return[Ce,_e-Fe,_e+Fe,Te-xe,Te+xe]},distance=function(Be,St){return Math.sqrt(Be*Be+St*St)},findCorner=function(Be,St,Ae,Ee,Ce){var _e=[[0,0],[0,St],[Be,0],[Be,St]];return _e.reduce(function(Te,Se){var xe=Se[0],Fe=Se[1],Ue=distance(Ae-xe,Ee-Fe);return(Ce?Ue<Te.optimumDistance:Ue>Te.optimumDistance)?{optimumCorner:Se,optimumDistance:Ue}:Te},{optimumDistance:Ce?1/0:-1/0,optimumCorner:null}).optimumCorner},calculateRadius=function(Be,St,Ae,Ee,Ce){var _e=0,Te=0;switch(Be.size){case 0:Be.shape===0?_e=Te=Math.min(Math.abs(St),Math.abs(St-Ee),Math.abs(Ae),Math.abs(Ae-Ce)):Be.shape===1&&(_e=Math.min(Math.abs(St),Math.abs(St-Ee)),Te=Math.min(Math.abs(Ae),Math.abs(Ae-Ce)));break;case 2:if(Be.shape===0)_e=Te=Math.min(distance(St,Ae),distance(St,Ae-Ce),distance(St-Ee,Ae),distance(St-Ee,Ae-Ce));else if(Be.shape===1){var Se=Math.min(Math.abs(Ae),Math.abs(Ae-Ce))/Math.min(Math.abs(St),Math.abs(St-Ee)),xe=findCorner(Ee,Ce,St,Ae,!0),Fe=xe[0],Ue=xe[1];_e=distance(Fe-St,(Ue-Ae)/Se),Te=Se*_e}break;case 1:Be.shape===0?_e=Te=Math.max(Math.abs(St),Math.abs(St-Ee),Math.abs(Ae),Math.abs(Ae-Ce)):Be.shape===1&&(_e=Math.max(Math.abs(St),Math.abs(St-Ee)),Te=Math.max(Math.abs(Ae),Math.abs(Ae-Ce)));break;case 3:if(Be.shape===0)_e=Te=Math.max(distance(St,Ae),distance(St,Ae-Ce),distance(St-Ee,Ae),distance(St-Ee,Ae-Ce));else if(Be.shape===1){var Se=Math.max(Math.abs(Ae),Math.abs(Ae-Ce))/Math.max(Math.abs(St),Math.abs(St-Ee)),Re=findCorner(Ee,Ce,St,Ae,!1),Fe=Re[0],Ue=Re[1];_e=distance(Fe-St,(Ue-Ae)/Se),Te=Se*_e}break}return Array.isArray(Be.size)&&(_e=getAbsoluteValue(Be.size[0],Ee),Te=Be.size.length===2?getAbsoluteValue(Be.size[1],Ce):_e),[_e,Te]},linearGradient=function(Be,St){var Ae=deg(180),Ee=[];return parseFunctionArgs(St).forEach(function(Ce,_e){if(_e===0){var Te=Ce[0];if(Te.type===20&&Te.value==="to"){Ae=parseNamedSide(Ce);return}else if(isAngle(Te)){Ae=angle.parse(Be,Te);return}}var Se=parseColorStop(Be,Ce);Ee.push(Se)}),{angle:Ae,stops:Ee,type:1}},prefixLinearGradient=function(Be,St){var Ae=deg(180),Ee=[];return parseFunctionArgs(St).forEach(function(Ce,_e){if(_e===0){var Te=Ce[0];if(Te.type===20&&["top","left","right","bottom"].indexOf(Te.value)!==-1){Ae=parseNamedSide(Ce);return}else if(isAngle(Te)){Ae=(angle.parse(Be,Te)+deg(270))%deg(360);return}}var Se=parseColorStop(Be,Ce);Ee.push(Se)}),{angle:Ae,stops:Ee,type:1}},webkitGradient=function(Be,St){var Ae=deg(180),Ee=[],Ce=1,_e=0,Te=3,Se=[];return parseFunctionArgs(St).forEach(function(xe,Fe){var Ue=xe[0];if(Fe===0){if(isIdentToken(Ue)&&Ue.value==="linear"){Ce=1;return}else if(isIdentToken(Ue)&&Ue.value==="radial"){Ce=2;return}}if(Ue.type===18){if(Ue.name==="from"){var Re=color$1.parse(Be,Ue.values[0]);Ee.push({stop:ZERO_LENGTH,color:Re})}else if(Ue.name==="to"){var Re=color$1.parse(Be,Ue.values[0]);Ee.push({stop:HUNDRED_PERCENT,color:Re})}else if(Ue.name==="color-stop"){var He=Ue.values.filter(nonFunctionArgSeparator);if(He.length===2){var Re=color$1.parse(Be,He[1]),$e=He[0];isNumberToken($e)&&Ee.push({stop:{type:16,number:$e.number*100,flags:$e.flags},color:Re})}}}}),Ce===1?{angle:(Ae+deg(180))%deg(360),stops:Ee,type:Ce}:{size:Te,shape:_e,stops:Ee,position:Se,type:Ce}},CLOSEST_SIDE="closest-side",FARTHEST_SIDE="farthest-side",CLOSEST_CORNER="closest-corner",FARTHEST_CORNER="farthest-corner",CIRCLE="circle",ELLIPSE="ellipse",COVER="cover",CONTAIN="contain",radialGradient=function(Be,St){var Ae=0,Ee=3,Ce=[],_e=[];return parseFunctionArgs(St).forEach(function(Te,Se){var xe=!0;if(Se===0){var Fe=!1;xe=Te.reduce(function(Re,He){if(Fe)if(isIdentToken(He))switch(He.value){case"center":return _e.push(FIFTY_PERCENT),Re;case"top":case"left":return _e.push(ZERO_LENGTH),Re;case"right":case"bottom":return _e.push(HUNDRED_PERCENT),Re}else(isLengthPercentage(He)||isLength(He))&&_e.push(He);else if(isIdentToken(He))switch(He.value){case CIRCLE:return Ae=0,!1;case ELLIPSE:return Ae=1,!1;case"at":return Fe=!0,!1;case CLOSEST_SIDE:return Ee=0,!1;case COVER:case FARTHEST_SIDE:return Ee=1,!1;case CONTAIN:case CLOSEST_CORNER:return Ee=2,!1;case FARTHEST_CORNER:return Ee=3,!1}else if(isLength(He)||isLengthPercentage(He))return Array.isArray(Ee)||(Ee=[]),Ee.push(He),!1;return Re},xe)}if(xe){var Ue=parseColorStop(Be,Te);Ce.push(Ue)}}),{size:Ee,shape:Ae,stops:Ce,position:_e,type:2}},prefixRadialGradient=function(Be,St){var Ae=0,Ee=3,Ce=[],_e=[];return parseFunctionArgs(St).forEach(function(Te,Se){var xe=!0;if(Se===0?xe=Te.reduce(function(Ue,Re){if(isIdentToken(Re))switch(Re.value){case"center":return _e.push(FIFTY_PERCENT),!1;case"top":case"left":return _e.push(ZERO_LENGTH),!1;case"right":case"bottom":return _e.push(HUNDRED_PERCENT),!1}else if(isLengthPercentage(Re)||isLength(Re))return _e.push(Re),!1;return Ue},xe):Se===1&&(xe=Te.reduce(function(Ue,Re){if(isIdentToken(Re))switch(Re.value){case CIRCLE:return Ae=0,!1;case ELLIPSE:return Ae=1,!1;case CONTAIN:case CLOSEST_SIDE:return Ee=0,!1;case FARTHEST_SIDE:return Ee=1,!1;case CLOSEST_CORNER:return Ee=2,!1;case COVER:case FARTHEST_CORNER:return Ee=3,!1}else if(isLength(Re)||isLengthPercentage(Re))return Array.isArray(Ee)||(Ee=[]),Ee.push(Re),!1;return Ue},xe)),xe){var Fe=parseColorStop(Be,Te);Ce.push(Fe)}}),{size:Ee,shape:Ae,stops:Ce,position:_e,type:2}},isLinearGradient=function(Be){return Be.type===1},isRadialGradient=function(Be){return Be.type===2},image={name:"image",parse:function(Be,St){if(St.type===22){var Ae={url:St.value,type:0};return Be.cache.addImage(St.value),Ae}if(St.type===18){var Ee=SUPPORTED_IMAGE_FUNCTIONS[St.name];if(typeof Ee>"u")throw new Error('Attempting to parse an unsupported image function "'+St.name+'"');return Ee(Be,St.values)}throw new Error("Unsupported image type "+St.type)}};function isSupportedImage(Be){return!(Be.type===20&&Be.value==="none")&&(Be.type!==18||!!SUPPORTED_IMAGE_FUNCTIONS[Be.name])}var SUPPORTED_IMAGE_FUNCTIONS={"linear-gradient":linearGradient,"-moz-linear-gradient":prefixLinearGradient,"-ms-linear-gradient":prefixLinearGradient,"-o-linear-gradient":prefixLinearGradient,"-webkit-linear-gradient":prefixLinearGradient,"radial-gradient":radialGradient,"-moz-radial-gradient":prefixRadialGradient,"-ms-radial-gradient":prefixRadialGradient,"-o-radial-gradient":prefixRadialGradient,"-webkit-radial-gradient":prefixRadialGradient,"-webkit-gradient":webkitGradient},backgroundImage={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(Be,St){if(St.length===0)return[];var Ae=St[0];return Ae.type===20&&Ae.value==="none"?[]:St.filter(function(Ee){return nonFunctionArgSeparator(Ee)&&isSupportedImage(Ee)}).map(function(Ee){return image.parse(Be,Ee)})}},backgroundOrigin={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(Be,St){return St.map(function(Ae){if(isIdentToken(Ae))switch(Ae.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},backgroundPosition={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(Be,St){return parseFunctionArgs(St).map(function(Ae){return Ae.filter(isLengthPercentage)}).map(parseLengthPercentageTuple)}},backgroundRepeat={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(Be,St){return parseFunctionArgs(St).map(function(Ae){return Ae.filter(isIdentToken).map(function(Ee){return Ee.value}).join(" ")}).map(parseBackgroundRepeat)}},parseBackgroundRepeat=function(Be){switch(Be){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},BACKGROUND_SIZE;(function(Be){Be.AUTO="auto",Be.CONTAIN="contain",Be.COVER="cover"})(BACKGROUND_SIZE||(BACKGROUND_SIZE={}));var backgroundSize={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(Be,St){return parseFunctionArgs(St).map(function(Ae){return Ae.filter(isBackgroundSizeInfoToken)})}},isBackgroundSizeInfoToken=function(Be){return isIdentToken(Be)||isLengthPercentage(Be)},borderColorForSide=function(Be){return{name:"border-"+Be+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},borderTopColor=borderColorForSide("top"),borderRightColor=borderColorForSide("right"),borderBottomColor=borderColorForSide("bottom"),borderLeftColor=borderColorForSide("left"),borderRadiusForSide=function(Be){return{name:"border-radius-"+Be,initialValue:"0 0",prefix:!1,type:1,parse:function(St,Ae){return parseLengthPercentageTuple(Ae.filter(isLengthPercentage))}}},borderTopLeftRadius=borderRadiusForSide("top-left"),borderTopRightRadius=borderRadiusForSide("top-right"),borderBottomRightRadius=borderRadiusForSide("bottom-right"),borderBottomLeftRadius=borderRadiusForSide("bottom-left"),borderStyleForSide=function(Be){return{name:"border-"+Be+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(St,Ae){switch(Ae){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},borderTopStyle=borderStyleForSide("top"),borderRightStyle=borderStyleForSide("right"),borderBottomStyle=borderStyleForSide("bottom"),borderLeftStyle=borderStyleForSide("left"),borderWidthForSide=function(Be){return{name:"border-"+Be+"-width",initialValue:"0",type:0,prefix:!1,parse:function(St,Ae){return isDimensionToken(Ae)?Ae.number:0}}},borderTopWidth=borderWidthForSide("top"),borderRightWidth=borderWidthForSide("right"),borderBottomWidth=borderWidthForSide("bottom"),borderLeftWidth=borderWidthForSide("left"),color={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},direction={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(Be,St){switch(St){case"rtl":return 1;case"ltr":default:return 0}}},display={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(Be,St){return St.filter(isIdentToken).reduce(function(Ae,Ee){return Ae|parseDisplayValue(Ee.value)},0)}},parseDisplayValue=function(Be){switch(Be){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},float={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(Be,St){switch(St){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},letterSpacing={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(Be,St){return St.type===20&&St.value==="normal"?0:St.type===17||St.type===15?St.number:0}},LINE_BREAK;(function(Be){Be.NORMAL="normal",Be.STRICT="strict"})(LINE_BREAK||(LINE_BREAK={}));var lineBreak={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(Be,St){switch(St){case"strict":return LINE_BREAK.STRICT;case"normal":default:return LINE_BREAK.NORMAL}}},lineHeight={name:"line-height",initialValue:"normal",prefix:!1,type:4},computeLineHeight=function(Be,St){return isIdentToken(Be)&&Be.value==="normal"?1.2*St:Be.type===17?St*Be.number:isLengthPercentage(Be)?getAbsoluteValue(Be,St):St},listStyleImage={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(Be,St){return St.type===20&&St.value==="none"?null:image.parse(Be,St)}},listStylePosition={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(Be,St){switch(St){case"inside":return 0;case"outside":default:return 1}}},listStyleType={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(Be,St){switch(St){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},marginForSide=function(Be){return{name:"margin-"+Be,initialValue:"0",prefix:!1,type:4}},marginTop=marginForSide("top"),marginRight=marginForSide("right"),marginBottom=marginForSide("bottom"),marginLeft=marginForSide("left"),overflow={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(Be,St){return St.filter(isIdentToken).map(function(Ae){switch(Ae.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},overflowWrap={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(Be,St){switch(St){case"break-word":return"break-word";case"normal":default:return"normal"}}},paddingForSide=function(Be){return{name:"padding-"+Be,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},paddingTop=paddingForSide("top"),paddingRight=paddingForSide("right"),paddingBottom=paddingForSide("bottom"),paddingLeft=paddingForSide("left"),textAlign={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(Be,St){switch(St){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},position={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(Be,St){switch(St){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},textShadow={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Be,St){return St.length===1&&isIdentWithValue(St[0],"none")?[]:parseFunctionArgs(St).map(function(Ae){for(var Ee={color:COLORS.TRANSPARENT,offsetX:ZERO_LENGTH,offsetY:ZERO_LENGTH,blur:ZERO_LENGTH},Ce=0,_e=0;_e<Ae.length;_e++){var Te=Ae[_e];isLength(Te)?(Ce===0?Ee.offsetX=Te:Ce===1?Ee.offsetY=Te:Ee.blur=Te,Ce++):Ee.color=color$1.parse(Be,Te)}return Ee})}},textTransform={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(Be,St){switch(St){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},transform$1={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(Be,St){if(St.type===20&&St.value==="none")return null;if(St.type===18){var Ae=SUPPORTED_TRANSFORM_FUNCTIONS[St.name];if(typeof Ae>"u")throw new Error('Attempting to parse an unsupported transform function "'+St.name+'"');return Ae(St.values)}return null}},matrix=function(Be){var St=Be.filter(function(Ae){return Ae.type===17}).map(function(Ae){return Ae.number});return St.length===6?St:null},matrix3d=function(Be){var St=Be.filter(function(xe){return xe.type===17}).map(function(xe){return xe.number}),Ae=St[0],Ee=St[1];St[2],St[3];var Ce=St[4],_e=St[5];St[6],St[7],St[8],St[9],St[10],St[11];var Te=St[12],Se=St[13];return St[14],St[15],St.length===16?[Ae,Ee,Ce,_e,Te,Se]:null},SUPPORTED_TRANSFORM_FUNCTIONS={matrix,matrix3d},DEFAULT_VALUE={type:16,number:50,flags:FLAG_INTEGER},DEFAULT=[DEFAULT_VALUE,DEFAULT_VALUE],transformOrigin={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(Be,St){var Ae=St.filter(isLengthPercentage);return Ae.length!==2?DEFAULT:[Ae[0],Ae[1]]}},visibility={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(Be,St){switch(St){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},WORD_BREAK;(function(Be){Be.NORMAL="normal",Be.BREAK_ALL="break-all",Be.KEEP_ALL="keep-all"})(WORD_BREAK||(WORD_BREAK={}));for(var wordBreak={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(Be,St){switch(St){case"break-all":return WORD_BREAK.BREAK_ALL;case"keep-all":return WORD_BREAK.KEEP_ALL;case"normal":default:return WORD_BREAK.NORMAL}}},zIndex={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(Be,St){if(St.type===20)return{auto:!0,order:0};if(isNumberToken(St))return{auto:!1,order:St.number};throw new Error("Invalid z-index number parsed")}},time={name:"time",parse:function(Be,St){if(St.type===15)switch(St.unit.toLowerCase()){case"s":return 1e3*St.number;case"ms":return St.number}throw new Error("Unsupported time type")}},opacity={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(Be,St){return isNumberToken(St)?St.number:1}},textDecorationColor={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},textDecorationLine={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(Be,St){return St.filter(isIdentToken).map(function(Ae){switch(Ae.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(Ae){return Ae!==0})}},fontFamily={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(Be,St){var Ae=[],Ee=[];return St.forEach(function(Ce){switch(Ce.type){case 20:case 0:Ae.push(Ce.value);break;case 17:Ae.push(Ce.number.toString());break;case 4:Ee.push(Ae.join(" ")),Ae.length=0;break}}),Ae.length&&Ee.push(Ae.join(" ")),Ee.map(function(Ce){return Ce.indexOf(" ")===-1?Ce:"'"+Ce+"'"})}},fontSize={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},fontWeight={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(Be,St){if(isNumberToken(St))return St.number;if(isIdentToken(St))switch(St.value){case"bold":return 700;case"normal":default:return 400}return 400}},fontVariant={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(Be,St){return St.filter(isIdentToken).map(function(Ae){return Ae.value})}},fontStyle={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(Be,St){switch(St){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},contains=function(Be,St){return(Be&St)!==0},content={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(Be,St){if(St.length===0)return[];var Ae=St[0];return Ae.type===20&&Ae.value==="none"?[]:St}},counterIncrement={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(Be,St){if(St.length===0)return null;var Ae=St[0];if(Ae.type===20&&Ae.value==="none")return null;for(var Ee=[],Ce=St.filter(nonWhiteSpace),_e=0;_e<Ce.length;_e++){var Te=Ce[_e],Se=Ce[_e+1];if(Te.type===20){var xe=Se&&isNumberToken(Se)?Se.number:1;Ee.push({counter:Te.value,increment:xe})}}return Ee}},counterReset={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(Be,St){if(St.length===0)return[];for(var Ae=[],Ee=St.filter(nonWhiteSpace),Ce=0;Ce<Ee.length;Ce++){var _e=Ee[Ce],Te=Ee[Ce+1];if(isIdentToken(_e)&&_e.value!=="none"){var Se=Te&&isNumberToken(Te)?Te.number:0;Ae.push({counter:_e.value,reset:Se})}}return Ae}},duration={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(Be,St){return St.filter(isDimensionToken).map(function(Ae){return time.parse(Be,Ae)})}},quotes={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(Be,St){if(St.length===0)return null;var Ae=St[0];if(Ae.type===20&&Ae.value==="none")return null;var Ee=[],Ce=St.filter(isStringToken);if(Ce.length%2!==0)return null;for(var _e=0;_e<Ce.length;_e+=2){var Te=Ce[_e].value,Se=Ce[_e+1].value;Ee.push({open:Te,close:Se})}return Ee}},getQuote=function(Be,St,Ae){if(!Be)return"";var Ee=Be[Math.min(St,Be.length-1)];return Ee?Ae?Ee.open:Ee.close:""},boxShadow={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Be,St){return St.length===1&&isIdentWithValue(St[0],"none")?[]:parseFunctionArgs(St).map(function(Ae){for(var Ee={color:255,offsetX:ZERO_LENGTH,offsetY:ZERO_LENGTH,blur:ZERO_LENGTH,spread:ZERO_LENGTH,inset:!1},Ce=0,_e=0;_e<Ae.length;_e++){var Te=Ae[_e];isIdentWithValue(Te,"inset")?Ee.inset=!0:isLength(Te)?(Ce===0?Ee.offsetX=Te:Ce===1?Ee.offsetY=Te:Ce===2?Ee.blur=Te:Ee.spread=Te,Ce++):Ee.color=color$1.parse(Be,Te)}return Ee})}},paintOrder={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(Be,St){var Ae=[0,1,2],Ee=[];return St.filter(isIdentToken).forEach(function(Ce){switch(Ce.value){case"stroke":Ee.push(1);break;case"fill":Ee.push(0);break;case"markers":Ee.push(2);break}}),Ae.forEach(function(Ce){Ee.indexOf(Ce)===-1&&Ee.push(Ce)}),Ee}},webkitTextStrokeColor={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},webkitTextStrokeWidth={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(Be,St){return isDimensionToken(St)?St.number:0}},CSSParsedDeclaration=function(){function Be(St,Ae){var Ee,Ce;this.animationDuration=parse(St,duration,Ae.animationDuration),this.backgroundClip=parse(St,backgroundClip,Ae.backgroundClip),this.backgroundColor=parse(St,backgroundColor,Ae.backgroundColor),this.backgroundImage=parse(St,backgroundImage,Ae.backgroundImage),this.backgroundOrigin=parse(St,backgroundOrigin,Ae.backgroundOrigin),this.backgroundPosition=parse(St,backgroundPosition,Ae.backgroundPosition),this.backgroundRepeat=parse(St,backgroundRepeat,Ae.backgroundRepeat),this.backgroundSize=parse(St,backgroundSize,Ae.backgroundSize),this.borderTopColor=parse(St,borderTopColor,Ae.borderTopColor),this.borderRightColor=parse(St,borderRightColor,Ae.borderRightColor),this.borderBottomColor=parse(St,borderBottomColor,Ae.borderBottomColor),this.borderLeftColor=parse(St,borderLeftColor,Ae.borderLeftColor),this.borderTopLeftRadius=parse(St,borderTopLeftRadius,Ae.borderTopLeftRadius),this.borderTopRightRadius=parse(St,borderTopRightRadius,Ae.borderTopRightRadius),this.borderBottomRightRadius=parse(St,borderBottomRightRadius,Ae.borderBottomRightRadius),this.borderBottomLeftRadius=parse(St,borderBottomLeftRadius,Ae.borderBottomLeftRadius),this.borderTopStyle=parse(St,borderTopStyle,Ae.borderTopStyle),this.borderRightStyle=parse(St,borderRightStyle,Ae.borderRightStyle),this.borderBottomStyle=parse(St,borderBottomStyle,Ae.borderBottomStyle),this.borderLeftStyle=parse(St,borderLeftStyle,Ae.borderLeftStyle),this.borderTopWidth=parse(St,borderTopWidth,Ae.borderTopWidth),this.borderRightWidth=parse(St,borderRightWidth,Ae.borderRightWidth),this.borderBottomWidth=parse(St,borderBottomWidth,Ae.borderBottomWidth),this.borderLeftWidth=parse(St,borderLeftWidth,Ae.borderLeftWidth),this.boxShadow=parse(St,boxShadow,Ae.boxShadow),this.color=parse(St,color,Ae.color),this.direction=parse(St,direction,Ae.direction),this.display=parse(St,display,Ae.display),this.float=parse(St,float,Ae.cssFloat),this.fontFamily=parse(St,fontFamily,Ae.fontFamily),this.fontSize=parse(St,fontSize,Ae.fontSize),this.fontStyle=parse(St,fontStyle,Ae.fontStyle),this.fontVariant=parse(St,fontVariant,Ae.fontVariant),this.fontWeight=parse(St,fontWeight,Ae.fontWeight),this.letterSpacing=parse(St,letterSpacing,Ae.letterSpacing),this.lineBreak=parse(St,lineBreak,Ae.lineBreak),this.lineHeight=parse(St,lineHeight,Ae.lineHeight),this.listStyleImage=parse(St,listStyleImage,Ae.listStyleImage),this.listStylePosition=parse(St,listStylePosition,Ae.listStylePosition),this.listStyleType=parse(St,listStyleType,Ae.listStyleType),this.marginTop=parse(St,marginTop,Ae.marginTop),this.marginRight=parse(St,marginRight,Ae.marginRight),this.marginBottom=parse(St,marginBottom,Ae.marginBottom),this.marginLeft=parse(St,marginLeft,Ae.marginLeft),this.opacity=parse(St,opacity,Ae.opacity);var _e=parse(St,overflow,Ae.overflow);this.overflowX=_e[0],this.overflowY=_e[_e.length>1?1:0],this.overflowWrap=parse(St,overflowWrap,Ae.overflowWrap),this.paddingTop=parse(St,paddingTop,Ae.paddingTop),this.paddingRight=parse(St,paddingRight,Ae.paddingRight),this.paddingBottom=parse(St,paddingBottom,Ae.paddingBottom),this.paddingLeft=parse(St,paddingLeft,Ae.paddingLeft),this.paintOrder=parse(St,paintOrder,Ae.paintOrder),this.position=parse(St,position,Ae.position),this.textAlign=parse(St,textAlign,Ae.textAlign),this.textDecorationColor=parse(St,textDecorationColor,(Ee=Ae.textDecorationColor)!==null&&Ee!==void 0?Ee:Ae.color),this.textDecorationLine=parse(St,textDecorationLine,(Ce=Ae.textDecorationLine)!==null&&Ce!==void 0?Ce:Ae.textDecoration),this.textShadow=parse(St,textShadow,Ae.textShadow),this.textTransform=parse(St,textTransform,Ae.textTransform),this.transform=parse(St,transform$1,Ae.transform),this.transformOrigin=parse(St,transformOrigin,Ae.transformOrigin),this.visibility=parse(St,visibility,Ae.visibility),this.webkitTextStrokeColor=parse(St,webkitTextStrokeColor,Ae.webkitTextStrokeColor),this.webkitTextStrokeWidth=parse(St,webkitTextStrokeWidth,Ae.webkitTextStrokeWidth),this.wordBreak=parse(St,wordBreak,Ae.wordBreak),this.zIndex=parse(St,zIndex,Ae.zIndex)}return Be.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},Be.prototype.isTransparent=function(){return isTransparent(this.backgroundColor)},Be.prototype.isTransformed=function(){return this.transform!==null},Be.prototype.isPositioned=function(){return this.position!==0},Be.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},Be.prototype.isFloating=function(){return this.float!==0},Be.prototype.isInlineLevel=function(){return contains(this.display,4)||contains(this.display,33554432)||contains(this.display,268435456)||contains(this.display,536870912)||contains(this.display,67108864)||contains(this.display,134217728)},Be}(),CSSParsedPseudoDeclaration=function(){function Be(St,Ae){this.content=parse(St,content,Ae.content),this.quotes=parse(St,quotes,Ae.quotes)}return Be}(),CSSParsedCounterDeclaration=function(){function Be(St,Ae){this.counterIncrement=parse(St,counterIncrement,Ae.counterIncrement),this.counterReset=parse(St,counterReset,Ae.counterReset)}return Be}(),parse=function(Be,St,Ae){var Ee=new Tokenizer,Ce=Ae!==null&&typeof Ae<"u"?Ae.toString():St.initialValue;Ee.write(Ce);var _e=new Parser$1(Ee.read());switch(St.type){case 2:var Te=_e.parseComponentValue();return St.parse(Be,isIdentToken(Te)?Te.value:St.initialValue);case 0:return St.parse(Be,_e.parseComponentValue());case 1:return St.parse(Be,_e.parseComponentValues());case 4:return _e.parseComponentValue();case 3:switch(St.format){case"angle":return angle.parse(Be,_e.parseComponentValue());case"color":return color$1.parse(Be,_e.parseComponentValue());case"image":return image.parse(Be,_e.parseComponentValue());case"length":var Se=_e.parseComponentValue();return isLength(Se)?Se:ZERO_LENGTH;case"length-percentage":var xe=_e.parseComponentValue();return isLengthPercentage(xe)?xe:ZERO_LENGTH;case"time":return time.parse(Be,_e.parseComponentValue())}break}},elementDebuggerAttribute="data-html2canvas-debug",getElementDebugType=function(Be){var St=Be.getAttribute(elementDebuggerAttribute);switch(St){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},isDebugging=function(Be,St){var Ae=getElementDebugType(Be);return Ae===1||St===Ae},ElementContainer=function(){function Be(St,Ae){if(this.context=St,this.textNodes=[],this.elements=[],this.flags=0,isDebugging(Ae,3))debugger;this.styles=new CSSParsedDeclaration(St,window.getComputedStyle(Ae,null)),isHTMLElementNode(Ae)&&(this.styles.animationDuration.some(function(Ee){return Ee>0})&&(Ae.style.animationDuration="0s"),this.styles.transform!==null&&(Ae.style.transform="none")),this.bounds=parseBounds(this.context,Ae),isDebugging(Ae,4)&&(this.flags|=16)}return Be}(),base64="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",chars$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256),i$1$2=0;i$1$2<chars$1.length;i$1$2++)lookup$1[chars$1.charCodeAt(i$1$2)]=i$1$2;for(var decode=function(Be){var St=Be.length*.75,Ae=Be.length,Ee,Ce=0,_e,Te,Se,xe;Be[Be.length-1]==="="&&(St--,Be[Be.length-2]==="="&&St--);var Fe=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(St):new Array(St),Ue=Array.isArray(Fe)?Fe:new Uint8Array(Fe);for(Ee=0;Ee<Ae;Ee+=4)_e=lookup$1[Be.charCodeAt(Ee)],Te=lookup$1[Be.charCodeAt(Ee+1)],Se=lookup$1[Be.charCodeAt(Ee+2)],xe=lookup$1[Be.charCodeAt(Ee+3)],Ue[Ce++]=_e<<2|Te>>4,Ue[Ce++]=(Te&15)<<4|Se>>2,Ue[Ce++]=(Se&3)<<6|xe&63;return Fe},polyUint16Array=function(Be){for(var St=Be.length,Ae=[],Ee=0;Ee<St;Ee+=2)Ae.push(Be[Ee+1]<<8|Be[Ee]);return Ae},polyUint32Array=function(Be){for(var St=Be.length,Ae=[],Ee=0;Ee<St;Ee+=4)Ae.push(Be[Ee+3]<<24|Be[Ee+2]<<16|Be[Ee+1]<<8|Be[Ee]);return Ae},UTRIE2_SHIFT_2=5,UTRIE2_SHIFT_1=6+5,UTRIE2_INDEX_SHIFT=2,UTRIE2_SHIFT_1_2=UTRIE2_SHIFT_1-UTRIE2_SHIFT_2,UTRIE2_LSCP_INDEX_2_OFFSET=65536>>UTRIE2_SHIFT_2,UTRIE2_DATA_BLOCK_LENGTH=1<<UTRIE2_SHIFT_2,UTRIE2_DATA_MASK=UTRIE2_DATA_BLOCK_LENGTH-1,UTRIE2_LSCP_INDEX_2_LENGTH=1024>>UTRIE2_SHIFT_2,UTRIE2_INDEX_2_BMP_LENGTH=UTRIE2_LSCP_INDEX_2_OFFSET+UTRIE2_LSCP_INDEX_2_LENGTH,UTRIE2_UTF8_2B_INDEX_2_OFFSET=UTRIE2_INDEX_2_BMP_LENGTH,UTRIE2_UTF8_2B_INDEX_2_LENGTH=32,UTRIE2_INDEX_1_OFFSET=UTRIE2_UTF8_2B_INDEX_2_OFFSET+UTRIE2_UTF8_2B_INDEX_2_LENGTH,UTRIE2_OMITTED_BMP_INDEX_1_LENGTH=65536>>UTRIE2_SHIFT_1,UTRIE2_INDEX_2_BLOCK_LENGTH=1<<UTRIE2_SHIFT_1_2,UTRIE2_INDEX_2_MASK=UTRIE2_INDEX_2_BLOCK_LENGTH-1,slice16=function(Be,St,Ae){return Be.slice?Be.slice(St,Ae):new Uint16Array(Array.prototype.slice.call(Be,St,Ae))},slice32=function(Be,St,Ae){return Be.slice?Be.slice(St,Ae):new Uint32Array(Array.prototype.slice.call(Be,St,Ae))},createTrieFromBase64=function(Be,St){var Ae=decode(Be),Ee=Array.isArray(Ae)?polyUint32Array(Ae):new Uint32Array(Ae),Ce=Array.isArray(Ae)?polyUint16Array(Ae):new Uint16Array(Ae),_e=24,Te=slice16(Ce,_e/2,Ee[4]/2),Se=Ee[5]===2?slice16(Ce,(_e+Ee[4])/2):slice32(Ee,Math.ceil((_e+Ee[4])/4));return new Trie(Ee[0],Ee[1],Ee[2],Ee[3],Te,Se)},Trie=function(){function Be(St,Ae,Ee,Ce,_e,Te){this.initialValue=St,this.errorValue=Ae,this.highStart=Ee,this.highValueIndex=Ce,this.index=_e,this.data=Te}return Be.prototype.get=function(St){var Ae;if(St>=0){if(St<55296||St>56319&&St<=65535)return Ae=this.index[St>>UTRIE2_SHIFT_2],Ae=(Ae<<UTRIE2_INDEX_SHIFT)+(St&UTRIE2_DATA_MASK),this.data[Ae];if(St<=65535)return Ae=this.index[UTRIE2_LSCP_INDEX_2_OFFSET+(St-55296>>UTRIE2_SHIFT_2)],Ae=(Ae<<UTRIE2_INDEX_SHIFT)+(St&UTRIE2_DATA_MASK),this.data[Ae];if(St<this.highStart)return Ae=UTRIE2_INDEX_1_OFFSET-UTRIE2_OMITTED_BMP_INDEX_1_LENGTH+(St>>UTRIE2_SHIFT_1),Ae=this.index[Ae],Ae+=St>>UTRIE2_SHIFT_2&UTRIE2_INDEX_2_MASK,Ae=this.index[Ae],Ae=(Ae<<UTRIE2_INDEX_SHIFT)+(St&UTRIE2_DATA_MASK),this.data[Ae];if(St<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Be}(),chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup=typeof Uint8Array>"u"?[]:new Uint8Array(256),i$4=0;i$4<chars.length;i$4++)lookup[chars.charCodeAt(i$4)]=i$4;var Prepend=1,CR=2,LF=3,Control=4,Extend=5,SpacingMark=7,L=8,V=9,T$1=10,LV=11,LVT=12,ZWJ=13,Extended_Pictographic=14,RI=15,toCodePoints=function(Be){for(var St=[],Ae=0,Ee=Be.length;Ae<Ee;){var Ce=Be.charCodeAt(Ae++);if(Ce>=55296&&Ce<=56319&&Ae<Ee){var _e=Be.charCodeAt(Ae++);(_e&64512)===56320?St.push(((Ce&1023)<<10)+(_e&1023)+65536):(St.push(Ce),Ae--)}else St.push(Ce)}return St},fromCodePoint=function(){for(var Be=[],St=0;St<arguments.length;St++)Be[St]=arguments[St];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Be);var Ae=Be.length;if(!Ae)return"";for(var Ee=[],Ce=-1,_e="";++Ce<Ae;){var Te=Be[Ce];Te<=65535?Ee.push(Te):(Te-=65536,Ee.push((Te>>10)+55296,Te%1024+56320)),(Ce+1===Ae||Ee.length>16384)&&(_e+=String.fromCharCode.apply(String,Ee),Ee.length=0)}return _e},UnicodeTrie=createTrieFromBase64(base64),BREAK_NOT_ALLOWED="×",BREAK_ALLOWED="÷",codePointToClass=function(Be){return UnicodeTrie.get(Be)},_graphemeBreakAtIndex=function(Be,St,Ae){var Ee=Ae-2,Ce=St[Ee],_e=St[Ae-1],Te=St[Ae];if(_e===CR&&Te===LF)return BREAK_NOT_ALLOWED;if(_e===CR||_e===LF||_e===Control||Te===CR||Te===LF||Te===Control)return BREAK_ALLOWED;if(_e===L&&[L,V,LV,LVT].indexOf(Te)!==-1||(_e===LV||_e===V)&&(Te===V||Te===T$1)||(_e===LVT||_e===T$1)&&Te===T$1||Te===ZWJ||Te===Extend||Te===SpacingMark||_e===Prepend)return BREAK_NOT_ALLOWED;if(_e===ZWJ&&Te===Extended_Pictographic){for(;Ce===Extend;)Ce=St[--Ee];if(Ce===Extended_Pictographic)return BREAK_NOT_ALLOWED}if(_e===RI&&Te===RI){for(var Se=0;Ce===RI;)Se++,Ce=St[--Ee];if(Se%2===0)return BREAK_NOT_ALLOWED}return BREAK_ALLOWED},GraphemeBreaker=function(Be){var St=toCodePoints(Be),Ae=St.length,Ee=0,Ce=0,_e=St.map(codePointToClass);return{next:function(){if(Ee>=Ae)return{done:!0,value:null};for(var Te=BREAK_NOT_ALLOWED;Ee<Ae&&(Te=_graphemeBreakAtIndex(St,_e,++Ee))===BREAK_NOT_ALLOWED;);if(Te!==BREAK_NOT_ALLOWED||Ee===Ae){var Se=fromCodePoint.apply(null,St.slice(Ce,Ee));return Ce=Ee,{value:Se,done:!1}}return{done:!0,value:null}}}},splitGraphemes=function(Be){for(var St=GraphemeBreaker(Be),Ae=[],Ee;!(Ee=St.next()).done;)Ee.value&&Ae.push(Ee.value.slice());return Ae},testRangeBounds=function(Be){var St=123;if(Be.createRange){var Ae=Be.createRange();if(Ae.getBoundingClientRect){var Ee=Be.createElement("boundtest");Ee.style.height=St+"px",Ee.style.display="block",Be.body.appendChild(Ee),Ae.selectNode(Ee);var Ce=Ae.getBoundingClientRect(),_e=Math.round(Ce.height);if(Be.body.removeChild(Ee),_e===St)return!0}}return!1},testIOSLineBreak=function(Be){var St=Be.createElement("boundtest");St.style.width="50px",St.style.display="block",St.style.fontSize="12px",St.style.letterSpacing="0px",St.style.wordSpacing="0px",Be.body.appendChild(St);var Ae=Be.createRange();St.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var Ee=St.firstChild,Ce=toCodePoints$1(Ee.data).map(function(xe){return fromCodePoint$1(xe)}),_e=0,Te={},Se=Ce.every(function(xe,Fe){Ae.setStart(Ee,_e),Ae.setEnd(Ee,_e+xe.length);var Ue=Ae.getBoundingClientRect();_e+=xe.length;var Re=Ue.x>Te.x||Ue.y>Te.y;return Te=Ue,Fe===0?!0:Re});return Be.body.removeChild(St),Se},testCORS=function(){return typeof new Image().crossOrigin<"u"},testResponseType=function(){return typeof new XMLHttpRequest().responseType=="string"},testSVG=function(Be){var St=new Image,Ae=Be.createElement("canvas"),Ee=Ae.getContext("2d");if(!Ee)return!1;St.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{Ee.drawImage(St,0,0),Ae.toDataURL()}catch{return!1}return!0},isGreenPixel=function(Be){return Be[0]===0&&Be[1]===255&&Be[2]===0&&Be[3]===255},testForeignObject=function(Be){var St=Be.createElement("canvas"),Ae=100;St.width=Ae,St.height=Ae;var Ee=St.getContext("2d");if(!Ee)return Promise.reject(!1);Ee.fillStyle="rgb(0, 255, 0)",Ee.fillRect(0,0,Ae,Ae);var Ce=new Image,_e=St.toDataURL();Ce.src=_e;var Te=createForeignObjectSVG(Ae,Ae,0,0,Ce);return Ee.fillStyle="red",Ee.fillRect(0,0,Ae,Ae),loadSerializedSVG$1(Te).then(function(Se){Ee.drawImage(Se,0,0);var xe=Ee.getImageData(0,0,Ae,Ae).data;Ee.fillStyle="red",Ee.fillRect(0,0,Ae,Ae);var Fe=Be.createElement("div");return Fe.style.backgroundImage="url("+_e+")",Fe.style.height=Ae+"px",isGreenPixel(xe)?loadSerializedSVG$1(createForeignObjectSVG(Ae,Ae,0,0,Fe)):Promise.reject(!1)}).then(function(Se){return Ee.drawImage(Se,0,0),isGreenPixel(Ee.getImageData(0,0,Ae,Ae).data)}).catch(function(){return!1})},createForeignObjectSVG=function(Be,St,Ae,Ee,Ce){var _e="http://www.w3.org/2000/svg",Te=document.createElementNS(_e,"svg"),Se=document.createElementNS(_e,"foreignObject");return Te.setAttributeNS(null,"width",Be.toString()),Te.setAttributeNS(null,"height",St.toString()),Se.setAttributeNS(null,"width","100%"),Se.setAttributeNS(null,"height","100%"),Se.setAttributeNS(null,"x",Ae.toString()),Se.setAttributeNS(null,"y",Ee.toString()),Se.setAttributeNS(null,"externalResourcesRequired","true"),Te.appendChild(Se),Se.appendChild(Ce),Te},loadSerializedSVG$1=function(Be){return new Promise(function(St,Ae){var Ee=new Image;Ee.onload=function(){return St(Ee)},Ee.onerror=Ae,Ee.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Be))})},FEATURES={get SUPPORT_RANGE_BOUNDS(){var Be=testRangeBounds(document);return Object.defineProperty(FEATURES,"SUPPORT_RANGE_BOUNDS",{value:Be}),Be},get SUPPORT_WORD_BREAKING(){var Be=FEATURES.SUPPORT_RANGE_BOUNDS&&testIOSLineBreak(document);return Object.defineProperty(FEATURES,"SUPPORT_WORD_BREAKING",{value:Be}),Be},get SUPPORT_SVG_DRAWING(){var Be=testSVG(document);return Object.defineProperty(FEATURES,"SUPPORT_SVG_DRAWING",{value:Be}),Be},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Be=typeof Array.from=="function"&&typeof window.fetch=="function"?testForeignObject(document):Promise.resolve(!1);return Object.defineProperty(FEATURES,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Be}),Be},get SUPPORT_CORS_IMAGES(){var Be=testCORS();return Object.defineProperty(FEATURES,"SUPPORT_CORS_IMAGES",{value:Be}),Be},get SUPPORT_RESPONSE_TYPE(){var Be=testResponseType();return Object.defineProperty(FEATURES,"SUPPORT_RESPONSE_TYPE",{value:Be}),Be},get SUPPORT_CORS_XHR(){var Be="withCredentials"in new XMLHttpRequest;return Object.defineProperty(FEATURES,"SUPPORT_CORS_XHR",{value:Be}),Be},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var Be=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(FEATURES,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:Be}),Be}},TextBounds=function(){function Be(St,Ae){this.text=St,this.bounds=Ae}return Be}(),parseTextBounds=function(Be,St,Ae,Ee){var Ce=breakText(St,Ae),_e=[],Te=0;return Ce.forEach(function(Se){if(Ae.textDecorationLine.length||Se.trim().length>0)if(FEATURES.SUPPORT_RANGE_BOUNDS){var xe=createRange(Ee,Te,Se.length).getClientRects();if(xe.length>1){var Fe=segmentGraphemes(Se),Ue=0;Fe.forEach(function(He){_e.push(new TextBounds(He,Bounds.fromDOMRectList(Be,createRange(Ee,Ue+Te,He.length).getClientRects()))),Ue+=He.length})}else _e.push(new TextBounds(Se,Bounds.fromDOMRectList(Be,xe)))}else{var Re=Ee.splitText(Se.length);_e.push(new TextBounds(Se,getWrapperBounds(Be,Ee))),Ee=Re}else FEATURES.SUPPORT_RANGE_BOUNDS||(Ee=Ee.splitText(Se.length));Te+=Se.length}),_e},getWrapperBounds=function(Be,St){var Ae=St.ownerDocument;if(Ae){var Ee=Ae.createElement("html2canvaswrapper");Ee.appendChild(St.cloneNode(!0));var Ce=St.parentNode;if(Ce){Ce.replaceChild(Ee,St);var _e=parseBounds(Be,Ee);return Ee.firstChild&&Ce.replaceChild(Ee.firstChild,Ee),_e}}return Bounds.EMPTY},createRange=function(Be,St,Ae){var Ee=Be.ownerDocument;if(!Ee)throw new Error("Node has no owner document");var Ce=Ee.createRange();return Ce.setStart(Be,St),Ce.setEnd(Be,St+Ae),Ce},segmentGraphemes=function(Be){if(FEATURES.SUPPORT_NATIVE_TEXT_SEGMENTATION){var St=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(St.segment(Be)).map(function(Ae){return Ae.segment})}return splitGraphemes(Be)},segmentWords=function(Be,St){if(FEATURES.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Ae=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(Ae.segment(Be)).map(function(Ee){return Ee.segment})}return breakWords(Be,St)},breakText=function(Be,St){return St.letterSpacing!==0?segmentGraphemes(Be):segmentWords(Be,St)},wordSeparators=[32,160,4961,65792,65793,4153,4241],breakWords=function(Be,St){for(var Ae=LineBreaker(Be,{lineBreak:St.lineBreak,wordBreak:St.overflowWrap==="break-word"?"break-word":St.wordBreak}),Ee=[],Ce,_e=function(){if(Ce.value){var Te=Ce.value.slice(),Se=toCodePoints$1(Te),xe="";Se.forEach(function(Fe){wordSeparators.indexOf(Fe)===-1?xe+=fromCodePoint$1(Fe):(xe.length&&Ee.push(xe),Ee.push(fromCodePoint$1(Fe)),xe="")}),xe.length&&Ee.push(xe)}};!(Ce=Ae.next()).done;)_e();return Ee},TextContainer=function(){function Be(St,Ae,Ee){this.text=transform(Ae.data,Ee.textTransform),this.textBounds=parseTextBounds(St,this.text,Ee,Ae)}return Be}(),transform=function(Be,St){switch(St){case 1:return Be.toLowerCase();case 3:return Be.replace(CAPITALIZE,capitalize);case 2:return Be.toUpperCase();default:return Be}},CAPITALIZE=/(^|\s|:|-|\(|\))([a-z])/g,capitalize=function(Be,St,Ae){return Be.length>0?St+Ae.toUpperCase():Be},ImageElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;return Ce.src=Ee.currentSrc||Ee.src,Ce.intrinsicWidth=Ee.naturalWidth,Ce.intrinsicHeight=Ee.naturalHeight,Ce.context.cache.addImage(Ce.src),Ce}return St}(ElementContainer),CanvasElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;return Ce.canvas=Ee,Ce.intrinsicWidth=Ee.width,Ce.intrinsicHeight=Ee.height,Ce}return St}(ElementContainer),SVGElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this,_e=new XMLSerializer,Te=parseBounds(Ae,Ee);return Ee.setAttribute("width",Te.width+"px"),Ee.setAttribute("height",Te.height+"px"),Ce.svg="data:image/svg+xml,"+encodeURIComponent(_e.serializeToString(Ee)),Ce.intrinsicWidth=Ee.width.baseVal.value,Ce.intrinsicHeight=Ee.height.baseVal.value,Ce.context.cache.addImage(Ce.svg),Ce}return St}(ElementContainer),LIElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;return Ce.value=Ee.value,Ce}return St}(ElementContainer),OLElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;return Ce.start=Ee.start,Ce.reversed=typeof Ee.reversed=="boolean"&&Ee.reversed===!0,Ce}return St}(ElementContainer),CHECKBOX_BORDER_RADIUS=[{type:15,flags:0,unit:"px",number:3}],RADIO_BORDER_RADIUS=[{type:16,flags:0,number:50}],reformatInputBounds=function(Be){return Be.width>Be.height?new Bounds(Be.left+(Be.width-Be.height)/2,Be.top,Be.height,Be.height):Be.width<Be.height?new Bounds(Be.left,Be.top+(Be.height-Be.width)/2,Be.width,Be.width):Be},getInputValue=function(Be){var St=Be.type===PASSWORD?new Array(Be.value.length+1).join("•"):Be.value;return St.length===0?Be.placeholder||"":St},CHECKBOX="checkbox",RADIO="radio",PASSWORD="password",INPUT_COLOR=707406591,InputElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;switch(Ce.type=Ee.type.toLowerCase(),Ce.checked=Ee.checked,Ce.value=getInputValue(Ee),(Ce.type===CHECKBOX||Ce.type===RADIO)&&(Ce.styles.backgroundColor=3739148031,Ce.styles.borderTopColor=Ce.styles.borderRightColor=Ce.styles.borderBottomColor=Ce.styles.borderLeftColor=2779096575,Ce.styles.borderTopWidth=Ce.styles.borderRightWidth=Ce.styles.borderBottomWidth=Ce.styles.borderLeftWidth=1,Ce.styles.borderTopStyle=Ce.styles.borderRightStyle=Ce.styles.borderBottomStyle=Ce.styles.borderLeftStyle=1,Ce.styles.backgroundClip=[0],Ce.styles.backgroundOrigin=[0],Ce.bounds=reformatInputBounds(Ce.bounds)),Ce.type){case CHECKBOX:Ce.styles.borderTopRightRadius=Ce.styles.borderTopLeftRadius=Ce.styles.borderBottomRightRadius=Ce.styles.borderBottomLeftRadius=CHECKBOX_BORDER_RADIUS;break;case RADIO:Ce.styles.borderTopRightRadius=Ce.styles.borderTopLeftRadius=Ce.styles.borderBottomRightRadius=Ce.styles.borderBottomLeftRadius=RADIO_BORDER_RADIUS;break}return Ce}return St}(ElementContainer),SelectElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this,_e=Ee.options[Ee.selectedIndex||0];return Ce.value=_e&&_e.text||"",Ce}return St}(ElementContainer),TextareaElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;return Ce.value=Ee.value,Ce}return St}(ElementContainer),IFrameElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;Ce.src=Ee.src,Ce.width=parseInt(Ee.width,10)||0,Ce.height=parseInt(Ee.height,10)||0,Ce.backgroundColor=Ce.styles.backgroundColor;try{if(Ee.contentWindow&&Ee.contentWindow.document&&Ee.contentWindow.document.documentElement){Ce.tree=parseTree(Ae,Ee.contentWindow.document.documentElement);var _e=Ee.contentWindow.document.documentElement?parseColor(Ae,getComputedStyle(Ee.contentWindow.document.documentElement).backgroundColor):COLORS.TRANSPARENT,Te=Ee.contentWindow.document.body?parseColor(Ae,getComputedStyle(Ee.contentWindow.document.body).backgroundColor):COLORS.TRANSPARENT;Ce.backgroundColor=isTransparent(_e)?isTransparent(Te)?Ce.styles.backgroundColor:Te:_e}}catch{}return Ce}return St}(ElementContainer),LIST_OWNERS=["OL","UL","MENU"],parseNodeTree=function(Be,St,Ae,Ee){for(var Ce=St.firstChild,_e=void 0;Ce;Ce=_e)if(_e=Ce.nextSibling,isTextNode(Ce)&&Ce.data.trim().length>0)Ae.textNodes.push(new TextContainer(Be,Ce,Ae.styles));else if(isElementNode(Ce))if(isSlotElement(Ce)&&Ce.assignedNodes)Ce.assignedNodes().forEach(function(Se){return parseNodeTree(Be,Se,Ae,Ee)});else{var Te=createContainer(Be,Ce);Te.styles.isVisible()&&(createsRealStackingContext(Ce,Te,Ee)?Te.flags|=4:createsStackingContext(Te.styles)&&(Te.flags|=2),LIST_OWNERS.indexOf(Ce.tagName)!==-1&&(Te.flags|=8),Ae.elements.push(Te),Ce.slot,Ce.shadowRoot?parseNodeTree(Be,Ce.shadowRoot,Te,Ee):!isTextareaElement(Ce)&&!isSVGElement(Ce)&&!isSelectElement(Ce)&&parseNodeTree(Be,Ce,Te,Ee))}},createContainer=function(Be,St){return isImageElement(St)?new ImageElementContainer(Be,St):isCanvasElement(St)?new CanvasElementContainer(Be,St):isSVGElement(St)?new SVGElementContainer(Be,St):isLIElement(St)?new LIElementContainer(Be,St):isOLElement(St)?new OLElementContainer(Be,St):isInputElement(St)?new InputElementContainer(Be,St):isSelectElement(St)?new SelectElementContainer(Be,St):isTextareaElement(St)?new TextareaElementContainer(Be,St):isIFrameElement(St)?new IFrameElementContainer(Be,St):new ElementContainer(Be,St)},parseTree=function(Be,St){var Ae=createContainer(Be,St);return Ae.flags|=4,parseNodeTree(Be,St,Ae,Ae),Ae},createsRealStackingContext=function(Be,St,Ae){return St.styles.isPositionedWithZIndex()||St.styles.opacity<1||St.styles.isTransformed()||isBodyElement(Be)&&Ae.styles.isTransparent()},createsStackingContext=function(Be){return Be.isPositioned()||Be.isFloating()},isTextNode=function(Be){return Be.nodeType===Node.TEXT_NODE},isElementNode=function(Be){return Be.nodeType===Node.ELEMENT_NODE},isHTMLElementNode=function(Be){return isElementNode(Be)&&typeof Be.style<"u"&&!isSVGElementNode(Be)},isSVGElementNode=function(Be){return typeof Be.className=="object"},isLIElement=function(Be){return Be.tagName==="LI"},isOLElement=function(Be){return Be.tagName==="OL"},isInputElement=function(Be){return Be.tagName==="INPUT"},isHTMLElement=function(Be){return Be.tagName==="HTML"},isSVGElement=function(Be){return Be.tagName==="svg"},isBodyElement=function(Be){return Be.tagName==="BODY"},isCanvasElement=function(Be){return Be.tagName==="CANVAS"},isVideoElement=function(Be){return Be.tagName==="VIDEO"},isImageElement=function(Be){return Be.tagName==="IMG"},isIFrameElement=function(Be){return Be.tagName==="IFRAME"},isStyleElement=function(Be){return Be.tagName==="STYLE"},isScriptElement=function(Be){return Be.tagName==="SCRIPT"},isTextareaElement=function(Be){return Be.tagName==="TEXTAREA"},isSelectElement=function(Be){return Be.tagName==="SELECT"},isSlotElement=function(Be){return Be.tagName==="SLOT"},isCustomElement=function(Be){return Be.tagName.indexOf("-")>0},CounterState=function(){function Be(){this.counters={}}return Be.prototype.getCounterValue=function(St){var Ae=this.counters[St];return Ae&&Ae.length?Ae[Ae.length-1]:1},Be.prototype.getCounterValues=function(St){var Ae=this.counters[St];return Ae||[]},Be.prototype.pop=function(St){var Ae=this;St.forEach(function(Ee){return Ae.counters[Ee].pop()})},Be.prototype.parse=function(St){var Ae=this,Ee=St.counterIncrement,Ce=St.counterReset,_e=!0;Ee!==null&&Ee.forEach(function(Se){var xe=Ae.counters[Se.counter];xe&&Se.increment!==0&&(_e=!1,xe.length||xe.push(1),xe[Math.max(0,xe.length-1)]+=Se.increment)});var Te=[];return _e&&Ce.forEach(function(Se){var xe=Ae.counters[Se.counter];Te.push(Se.counter),xe||(xe=Ae.counters[Se.counter]=[]),xe.push(Se.reset)}),Te},Be}(),ROMAN_UPPER={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},ARMENIAN={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},HEBREW={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},GEORGIAN={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},createAdditiveCounter=function(Be,St,Ae,Ee,Ce,_e){return Be<St||Be>Ae?createCounterText(Be,Ce,_e.length>0):Ee.integers.reduce(function(Te,Se,xe){for(;Be>=Se;)Be-=Se,Te+=Ee.values[xe];return Te},"")+_e},createCounterStyleWithSymbolResolver=function(Be,St,Ae,Ee){var Ce="";do Ae||Be--,Ce=Ee(Be)+Ce,Be/=St;while(Be*St>=St);return Ce},createCounterStyleFromRange=function(Be,St,Ae,Ee,Ce){var _e=Ae-St+1;return(Be<0?"-":"")+(createCounterStyleWithSymbolResolver(Math.abs(Be),_e,Ee,function(Te){return fromCodePoint$1(Math.floor(Te%_e)+St)})+Ce)},createCounterStyleFromSymbols=function(Be,St,Ae){Ae===void 0&&(Ae=". ");var Ee=St.length;return createCounterStyleWithSymbolResolver(Math.abs(Be),Ee,!1,function(Ce){return St[Math.floor(Ce%Ee)]})+Ae},CJK_ZEROS=1,CJK_TEN_COEFFICIENTS=2,CJK_TEN_HIGH_COEFFICIENTS=4,CJK_HUNDRED_COEFFICIENTS=8,createCJKCounter=function(Be,St,Ae,Ee,Ce,_e){if(Be<-9999||Be>9999)return createCounterText(Be,4,Ce.length>0);var Te=Math.abs(Be),Se=Ce;if(Te===0)return St[0]+Se;for(var xe=0;Te>0&&xe<=4;xe++){var Fe=Te%10;Fe===0&&contains(_e,CJK_ZEROS)&&Se!==""?Se=St[Fe]+Se:Fe>1||Fe===1&&xe===0||Fe===1&&xe===1&&contains(_e,CJK_TEN_COEFFICIENTS)||Fe===1&&xe===1&&contains(_e,CJK_TEN_HIGH_COEFFICIENTS)&&Be>100||Fe===1&&xe>1&&contains(_e,CJK_HUNDRED_COEFFICIENTS)?Se=St[Fe]+(xe>0?Ae[xe-1]:"")+Se:Fe===1&&xe>0&&(Se=Ae[xe-1]+Se),Te=Math.floor(Te/10)}return(Be<0?Ee:"")+Se},CHINESE_INFORMAL_MULTIPLIERS="十百千萬",CHINESE_FORMAL_MULTIPLIERS="拾佰仟萬",JAPANESE_NEGATIVE="マイナス",KOREAN_NEGATIVE="마이너스",createCounterText=function(Be,St,Ae){var Ee=Ae?". ":"",Ce=Ae?"、":"",_e=Ae?", ":"",Te=Ae?" ":"";switch(St){case 0:return"•"+Te;case 1:return"◦"+Te;case 2:return"◾"+Te;case 5:var Se=createCounterStyleFromRange(Be,48,57,!0,Ee);return Se.length<4?"0"+Se:Se;case 4:return createCounterStyleFromSymbols(Be,"〇一二三四五六七八九",Ce);case 6:return createAdditiveCounter(Be,1,3999,ROMAN_UPPER,3,Ee).toLowerCase();case 7:return createAdditiveCounter(Be,1,3999,ROMAN_UPPER,3,Ee);case 8:return createCounterStyleFromRange(Be,945,969,!1,Ee);case 9:return createCounterStyleFromRange(Be,97,122,!1,Ee);case 10:return createCounterStyleFromRange(Be,65,90,!1,Ee);case 11:return createCounterStyleFromRange(Be,1632,1641,!0,Ee);case 12:case 49:return createAdditiveCounter(Be,1,9999,ARMENIAN,3,Ee);case 35:return createAdditiveCounter(Be,1,9999,ARMENIAN,3,Ee).toLowerCase();case 13:return createCounterStyleFromRange(Be,2534,2543,!0,Ee);case 14:case 30:return createCounterStyleFromRange(Be,6112,6121,!0,Ee);case 15:return createCounterStyleFromSymbols(Be,"子丑寅卯辰巳午未申酉戌亥",Ce);case 16:return createCounterStyleFromSymbols(Be,"甲乙丙丁戊己庚辛壬癸",Ce);case 17:case 48:return createCJKCounter(Be,"零一二三四五六七八九",CHINESE_INFORMAL_MULTIPLIERS,"負",Ce,CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS|CJK_HUNDRED_COEFFICIENTS);case 47:return createCJKCounter(Be,"零壹貳參肆伍陸柒捌玖",CHINESE_FORMAL_MULTIPLIERS,"負",Ce,CJK_ZEROS|CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS|CJK_HUNDRED_COEFFICIENTS);case 42:return createCJKCounter(Be,"零一二三四五六七八九",CHINESE_INFORMAL_MULTIPLIERS,"负",Ce,CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS|CJK_HUNDRED_COEFFICIENTS);case 41:return createCJKCounter(Be,"零壹贰叁肆伍陆柒捌玖",CHINESE_FORMAL_MULTIPLIERS,"负",Ce,CJK_ZEROS|CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS|CJK_HUNDRED_COEFFICIENTS);case 26:return createCJKCounter(Be,"〇一二三四五六七八九","十百千万",JAPANESE_NEGATIVE,Ce,0);case 25:return createCJKCounter(Be,"零壱弐参四伍六七八九","拾百千万",JAPANESE_NEGATIVE,Ce,CJK_ZEROS|CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS);case 31:return createCJKCounter(Be,"영일이삼사오육칠팔구","십백천만",KOREAN_NEGATIVE,_e,CJK_ZEROS|CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS);case 33:return createCJKCounter(Be,"零一二三四五六七八九","十百千萬",KOREAN_NEGATIVE,_e,0);case 32:return createCJKCounter(Be,"零壹貳參四五六七八九","拾百千",KOREAN_NEGATIVE,_e,CJK_ZEROS|CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS);case 18:return createCounterStyleFromRange(Be,2406,2415,!0,Ee);case 20:return createAdditiveCounter(Be,1,19999,GEORGIAN,3,Ee);case 21:return createCounterStyleFromRange(Be,2790,2799,!0,Ee);case 22:return createCounterStyleFromRange(Be,2662,2671,!0,Ee);case 22:return createAdditiveCounter(Be,1,10999,HEBREW,3,Ee);case 23:return createCounterStyleFromSymbols(Be,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return createCounterStyleFromSymbols(Be,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return createCounterStyleFromRange(Be,3302,3311,!0,Ee);case 28:return createCounterStyleFromSymbols(Be,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",Ce);case 29:return createCounterStyleFromSymbols(Be,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",Ce);case 34:return createCounterStyleFromRange(Be,3792,3801,!0,Ee);case 37:return createCounterStyleFromRange(Be,6160,6169,!0,Ee);case 38:return createCounterStyleFromRange(Be,4160,4169,!0,Ee);case 39:return createCounterStyleFromRange(Be,2918,2927,!0,Ee);case 40:return createCounterStyleFromRange(Be,1776,1785,!0,Ee);case 43:return createCounterStyleFromRange(Be,3046,3055,!0,Ee);case 44:return createCounterStyleFromRange(Be,3174,3183,!0,Ee);case 45:return createCounterStyleFromRange(Be,3664,3673,!0,Ee);case 46:return createCounterStyleFromRange(Be,3872,3881,!0,Ee);case 3:default:return createCounterStyleFromRange(Be,48,57,!0,Ee)}},IGNORE_ATTRIBUTE="data-html2canvas-ignore",DocumentCloner=function(){function Be(St,Ae,Ee){if(this.context=St,this.options=Ee,this.scrolledElements=[],this.referenceElement=Ae,this.counters=new CounterState,this.quoteDepth=0,!Ae.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Ae.ownerDocument.documentElement,!1)}return Be.prototype.toIFrame=function(St,Ae){var Ee=this,Ce=createIFrameContainer(St,Ae);if(!Ce.contentWindow)return Promise.reject("Unable to find iframe window");var _e=St.defaultView.pageXOffset,Te=St.defaultView.pageYOffset,Se=Ce.contentWindow,xe=Se.document,Fe=iframeLoader(Ce).then(function(){return __awaiter(Ee,void 0,void 0,function(){var Ue,Re;return __generator(this,function(He){switch(He.label){case 0:return this.scrolledElements.forEach(restoreNodeScroll),Se&&(Se.scrollTo(Ae.left,Ae.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Se.scrollY!==Ae.top||Se.scrollX!==Ae.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Se.scrollX-Ae.left,Se.scrollY-Ae.top,0,0))),Ue=this.options.onclone,Re=this.clonedReferenceElement,typeof Re>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:xe.fonts&&xe.fonts.ready?[4,xe.fonts.ready]:[3,2];case 1:He.sent(),He.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,imagesReady(xe)]:[3,4];case 3:He.sent(),He.label=4;case 4:return typeof Ue=="function"?[2,Promise.resolve().then(function(){return Ue(xe,Re)}).then(function(){return Ce})]:[2,Ce]}})})});return xe.open(),xe.write(serializeDoctype(document.doctype)+"<html></html>"),restoreOwnerScroll(this.referenceElement.ownerDocument,_e,Te),xe.replaceChild(xe.adoptNode(this.documentElement),xe.documentElement),xe.close(),Fe},Be.prototype.createElementClone=function(St){if(isDebugging(St,2))debugger;if(isCanvasElement(St))return this.createCanvasClone(St);if(isVideoElement(St))return this.createVideoClone(St);if(isStyleElement(St))return this.createStyleClone(St);var Ae=St.cloneNode(!1);return isImageElement(Ae)&&(isImageElement(St)&&St.currentSrc&&St.currentSrc!==St.src&&(Ae.src=St.currentSrc,Ae.srcset=""),Ae.loading==="lazy"&&(Ae.loading="eager")),isCustomElement(Ae)?this.createCustomElementClone(Ae):Ae},Be.prototype.createCustomElementClone=function(St){var Ae=document.createElement("html2canvascustomelement");return copyCSSStyles(St.style,Ae),Ae},Be.prototype.createStyleClone=function(St){try{var Ae=St.sheet;if(Ae&&Ae.cssRules){var Ee=[].slice.call(Ae.cssRules,0).reduce(function(_e,Te){return Te&&typeof Te.cssText=="string"?_e+Te.cssText:_e},""),Ce=St.cloneNode(!1);return Ce.textContent=Ee,Ce}}catch(_e){if(this.context.logger.error("Unable to access cssRules property",_e),_e.name!=="SecurityError")throw _e}return St.cloneNode(!1)},Be.prototype.createCanvasClone=function(St){var Ae;if(this.options.inlineImages&&St.ownerDocument){var Ee=St.ownerDocument.createElement("img");try{return Ee.src=St.toDataURL(),Ee}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",St)}}var Ce=St.cloneNode(!1);try{Ce.width=St.width,Ce.height=St.height;var _e=St.getContext("2d"),Te=Ce.getContext("2d");if(Te)if(!this.options.allowTaint&&_e)Te.putImageData(_e.getImageData(0,0,St.width,St.height),0,0);else{var Se=(Ae=St.getContext("webgl2"))!==null&&Ae!==void 0?Ae:St.getContext("webgl");if(Se){var xe=Se.getContextAttributes();(xe==null?void 0:xe.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",St)}Te.drawImage(St,0,0)}return Ce}catch{this.context.logger.info("Unable to clone canvas as it is tainted",St)}return Ce},Be.prototype.createVideoClone=function(St){var Ae=St.ownerDocument.createElement("canvas");Ae.width=St.offsetWidth,Ae.height=St.offsetHeight;var Ee=Ae.getContext("2d");try{return Ee&&(Ee.drawImage(St,0,0,Ae.width,Ae.height),this.options.allowTaint||Ee.getImageData(0,0,Ae.width,Ae.height)),Ae}catch{this.context.logger.info("Unable to clone video as it is tainted",St)}var Ce=St.ownerDocument.createElement("canvas");return Ce.width=St.offsetWidth,Ce.height=St.offsetHeight,Ce},Be.prototype.appendChildNode=function(St,Ae,Ee){(!isElementNode(Ae)||!isScriptElement(Ae)&&!Ae.hasAttribute(IGNORE_ATTRIBUTE)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(Ae)))&&(!this.options.copyStyles||!isElementNode(Ae)||!isStyleElement(Ae))&&St.appendChild(this.cloneNode(Ae,Ee))},Be.prototype.cloneChildNodes=function(St,Ae,Ee){for(var Ce=this,_e=St.shadowRoot?St.shadowRoot.firstChild:St.firstChild;_e;_e=_e.nextSibling)if(isElementNode(_e)&&isSlotElement(_e)&&typeof _e.assignedNodes=="function"){var Te=_e.assignedNodes();Te.length&&Te.forEach(function(Se){return Ce.appendChildNode(Ae,Se,Ee)})}else this.appendChildNode(Ae,_e,Ee)},Be.prototype.cloneNode=function(St,Ae){if(isTextNode(St))return document.createTextNode(St.data);if(!St.ownerDocument)return St.cloneNode(!1);var Ee=St.ownerDocument.defaultView;if(Ee&&isElementNode(St)&&(isHTMLElementNode(St)||isSVGElementNode(St))){var Ce=this.createElementClone(St);Ce.style.transitionProperty="none";var _e=Ee.getComputedStyle(St),Te=Ee.getComputedStyle(St,":before"),Se=Ee.getComputedStyle(St,":after");this.referenceElement===St&&isHTMLElementNode(Ce)&&(this.clonedReferenceElement=Ce),isBodyElement(Ce)&&createPseudoHideStyles(Ce);var xe=this.counters.parse(new CSSParsedCounterDeclaration(this.context,_e)),Fe=this.resolvePseudoContent(St,Ce,Te,PseudoElementType.BEFORE);isCustomElement(St)&&(Ae=!0),isVideoElement(St)||this.cloneChildNodes(St,Ce,Ae),Fe&&Ce.insertBefore(Fe,Ce.firstChild);var Ue=this.resolvePseudoContent(St,Ce,Se,PseudoElementType.AFTER);return Ue&&Ce.appendChild(Ue),this.counters.pop(xe),(_e&&(this.options.copyStyles||isSVGElementNode(St))&&!isIFrameElement(St)||Ae)&©CSSStyles(_e,Ce),(St.scrollTop!==0||St.scrollLeft!==0)&&this.scrolledElements.push([Ce,St.scrollLeft,St.scrollTop]),(isTextareaElement(St)||isSelectElement(St))&&(isTextareaElement(Ce)||isSelectElement(Ce))&&(Ce.value=St.value),Ce}return St.cloneNode(!1)},Be.prototype.resolvePseudoContent=function(St,Ae,Ee,Ce){var _e=this;if(Ee){var Te=Ee.content,Se=Ae.ownerDocument;if(!(!Se||!Te||Te==="none"||Te==="-moz-alt-content"||Ee.display==="none")){this.counters.parse(new CSSParsedCounterDeclaration(this.context,Ee));var xe=new CSSParsedPseudoDeclaration(this.context,Ee),Fe=Se.createElement("html2canvaspseudoelement");copyCSSStyles(Ee,Fe),xe.content.forEach(function(Re){if(Re.type===0)Fe.appendChild(Se.createTextNode(Re.value));else if(Re.type===22){var He=Se.createElement("img");He.src=Re.value,He.style.opacity="1",Fe.appendChild(He)}else if(Re.type===18){if(Re.name==="attr"){var $e=Re.values.filter(isIdentToken);$e.length&&Fe.appendChild(Se.createTextNode(St.getAttribute($e[0].value)||""))}else if(Re.name==="counter"){var ze=Re.values.filter(nonFunctionArgSeparator),Ve=ze[0],ir=ze[1];if(Ve&&isIdentToken(Ve)){var Ze=_e.counters.getCounterValue(Ve.value),ar=ir&&isIdentToken(ir)?listStyleType.parse(_e.context,ir.value):3;Fe.appendChild(Se.createTextNode(createCounterText(Ze,ar,!1)))}}else if(Re.name==="counters"){var cr=Re.values.filter(nonFunctionArgSeparator),Ve=cr[0],Xe=cr[1],ir=cr[2];if(Ve&&isIdentToken(Ve)){var or=_e.counters.getCounterValues(Ve.value),Oe=ir&&isIdentToken(ir)?listStyleType.parse(_e.context,ir.value):3,Je=Xe&&Xe.type===0?Xe.value:"",Ye=or.map(function(er){return createCounterText(er,Oe,!1)}).join(Je);Fe.appendChild(Se.createTextNode(Ye))}}}else if(Re.type===20)switch(Re.value){case"open-quote":Fe.appendChild(Se.createTextNode(getQuote(xe.quotes,_e.quoteDepth++,!0)));break;case"close-quote":Fe.appendChild(Se.createTextNode(getQuote(xe.quotes,--_e.quoteDepth,!1)));break;default:Fe.appendChild(Se.createTextNode(Re.value))}}),Fe.className=PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+PSEUDO_HIDE_ELEMENT_CLASS_AFTER;var Ue=Ce===PseudoElementType.BEFORE?" "+PSEUDO_HIDE_ELEMENT_CLASS_BEFORE:" "+PSEUDO_HIDE_ELEMENT_CLASS_AFTER;return isSVGElementNode(Ae)?Ae.className.baseValue+=Ue:Ae.className+=Ue,Fe}}},Be.destroy=function(St){return St.parentNode?(St.parentNode.removeChild(St),!0):!1},Be}(),PseudoElementType;(function(Be){Be[Be.BEFORE=0]="BEFORE",Be[Be.AFTER=1]="AFTER"})(PseudoElementType||(PseudoElementType={}));var createIFrameContainer=function(Be,St){var Ae=Be.createElement("iframe");return Ae.className="html2canvas-container",Ae.style.visibility="hidden",Ae.style.position="fixed",Ae.style.left="-10000px",Ae.style.top="0px",Ae.style.border="0",Ae.width=St.width.toString(),Ae.height=St.height.toString(),Ae.scrolling="no",Ae.setAttribute(IGNORE_ATTRIBUTE,"true"),Be.body.appendChild(Ae),Ae},imageReady=function(Be){return new Promise(function(St){if(Be.complete){St();return}if(!Be.src){St();return}Be.onload=St,Be.onerror=St})},imagesReady=function(Be){return Promise.all([].slice.call(Be.images,0).map(imageReady))},iframeLoader=function(Be){return new Promise(function(St,Ae){var Ee=Be.contentWindow;if(!Ee)return Ae("No window assigned for iframe");var Ce=Ee.document;Ee.onload=Be.onload=function(){Ee.onload=Be.onload=null;var _e=setInterval(function(){Ce.body.childNodes.length>0&&Ce.readyState==="complete"&&(clearInterval(_e),St(Be))},50)}})},ignoredStyleProperties=["all","d","content"],copyCSSStyles=function(Be,St){for(var Ae=Be.length-1;Ae>=0;Ae--){var Ee=Be.item(Ae);ignoredStyleProperties.indexOf(Ee)===-1&&St.style.setProperty(Ee,Be.getPropertyValue(Ee))}return St},serializeDoctype=function(Be){var St="";return Be&&(St+="<!DOCTYPE ",Be.name&&(St+=Be.name),Be.internalSubset&&(St+=Be.internalSubset),Be.publicId&&(St+='"'+Be.publicId+'"'),Be.systemId&&(St+='"'+Be.systemId+'"'),St+=">"),St},restoreOwnerScroll=function(Be,St,Ae){Be&&Be.defaultView&&(St!==Be.defaultView.pageXOffset||Ae!==Be.defaultView.pageYOffset)&&Be.defaultView.scrollTo(St,Ae)},restoreNodeScroll=function(Be){var St=Be[0],Ae=Be[1],Ee=Be[2];St.scrollLeft=Ae,St.scrollTop=Ee},PSEUDO_BEFORE=":before",PSEUDO_AFTER=":after",PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before",PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after",PSEUDO_HIDE_ELEMENT_STYLE=`{
content: "" !important;
display: none !important;
}`,createPseudoHideStyles=function(Be){createStyles(Be,"."+PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+PSEUDO_BEFORE+PSEUDO_HIDE_ELEMENT_STYLE+`
.`+PSEUDO_HIDE_ELEMENT_CLASS_AFTER+PSEUDO_AFTER+PSEUDO_HIDE_ELEMENT_STYLE)},createStyles=function(Be,St){var Ae=Be.ownerDocument;if(Ae){var Ee=Ae.createElement("style");Ee.textContent=St,Be.appendChild(Ee)}},CacheStorage=function(){function Be(){}return Be.getOrigin=function(St){var Ae=Be._link;return Ae?(Ae.href=St,Ae.href=Ae.href,Ae.protocol+Ae.hostname+Ae.port):"about:blank"},Be.isSameOrigin=function(St){return Be.getOrigin(St)===Be._origin},Be.setContext=function(St){Be._link=St.document.createElement("a"),Be._origin=Be.getOrigin(St.location.href)},Be._origin="about:blank",Be}(),Cache=function(){function Be(St,Ae){this.context=St,this._options=Ae,this._cache={}}return Be.prototype.addImage=function(St){var Ae=Promise.resolve();return this.has(St)||(isBlobImage(St)||isRenderable(St))&&(this._cache[St]=this.loadImage(St)).catch(function(){}),Ae},Be.prototype.match=function(St){return this._cache[St]},Be.prototype.loadImage=function(St){return __awaiter(this,void 0,void 0,function(){var Ae,Ee,Ce,_e,Te=this;return __generator(this,function(Se){switch(Se.label){case 0:return Ae=CacheStorage.isSameOrigin(St),Ee=!isInlineImage(St)&&this._options.useCORS===!0&&FEATURES.SUPPORT_CORS_IMAGES&&!Ae,Ce=!isInlineImage(St)&&!Ae&&!isBlobImage(St)&&typeof this._options.proxy=="string"&&FEATURES.SUPPORT_CORS_XHR&&!Ee,!Ae&&this._options.allowTaint===!1&&!isInlineImage(St)&&!isBlobImage(St)&&!Ce&&!Ee?[2]:(_e=St,Ce?[4,this.proxy(_e)]:[3,2]);case 1:_e=Se.sent(),Se.label=2;case 2:return this.context.logger.debug("Added image "+St.substring(0,256)),[4,new Promise(function(xe,Fe){var Ue=new Image;Ue.onload=function(){return xe(Ue)},Ue.onerror=Fe,(isInlineBase64Image(_e)||Ee)&&(Ue.crossOrigin="anonymous"),Ue.src=_e,Ue.complete===!0&&setTimeout(function(){return xe(Ue)},500),Te._options.imageTimeout>0&&setTimeout(function(){return Fe("Timed out ("+Te._options.imageTimeout+"ms) loading image")},Te._options.imageTimeout)})];case 3:return[2,Se.sent()]}})})},Be.prototype.has=function(St){return typeof this._cache[St]<"u"},Be.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Be.prototype.proxy=function(St){var Ae=this,Ee=this._options.proxy;if(!Ee)throw new Error("No proxy defined");var Ce=St.substring(0,256);return new Promise(function(_e,Te){var Se=FEATURES.SUPPORT_RESPONSE_TYPE?"blob":"text",xe=new XMLHttpRequest;xe.onload=function(){if(xe.status===200)if(Se==="text")_e(xe.response);else{var Re=new FileReader;Re.addEventListener("load",function(){return _e(Re.result)},!1),Re.addEventListener("error",function(He){return Te(He)},!1),Re.readAsDataURL(xe.response)}else Te("Failed to proxy resource "+Ce+" with status code "+xe.status)},xe.onerror=Te;var Fe=Ee.indexOf("?")>-1?"&":"?";if(xe.open("GET",""+Ee+Fe+"url="+encodeURIComponent(St)+"&responseType="+Se),Se!=="text"&&xe instanceof XMLHttpRequest&&(xe.responseType=Se),Ae._options.imageTimeout){var Ue=Ae._options.imageTimeout;xe.timeout=Ue,xe.ontimeout=function(){return Te("Timed out ("+Ue+"ms) proxying "+Ce)}}xe.send()})},Be}(),INLINE_SVG=/^data:image\/svg\+xml/i,INLINE_BASE64=/^data:image\/.*;base64,/i,INLINE_IMG=/^data:image\/.*/i,isRenderable=function(Be){return FEATURES.SUPPORT_SVG_DRAWING||!isSVG(Be)},isInlineImage=function(Be){return INLINE_IMG.test(Be)},isInlineBase64Image=function(Be){return INLINE_BASE64.test(Be)},isBlobImage=function(Be){return Be.substr(0,4)==="blob"},isSVG=function(Be){return Be.substr(-3).toLowerCase()==="svg"||INLINE_SVG.test(Be)},Vector=function(){function Be(St,Ae){this.type=0,this.x=St,this.y=Ae}return Be.prototype.add=function(St,Ae){return new Be(this.x+St,this.y+Ae)},Be}(),lerp=function(Be,St,Ae){return new Vector(Be.x+(St.x-Be.x)*Ae,Be.y+(St.y-Be.y)*Ae)},BezierCurve=function(){function Be(St,Ae,Ee,Ce){this.type=1,this.start=St,this.startControl=Ae,this.endControl=Ee,this.end=Ce}return Be.prototype.subdivide=function(St,Ae){var Ee=lerp(this.start,this.startControl,St),Ce=lerp(this.startControl,this.endControl,St),_e=lerp(this.endControl,this.end,St),Te=lerp(Ee,Ce,St),Se=lerp(Ce,_e,St),xe=lerp(Te,Se,St);return Ae?new Be(this.start,Ee,Te,xe):new Be(xe,Se,_e,this.end)},Be.prototype.add=function(St,Ae){return new Be(this.start.add(St,Ae),this.startControl.add(St,Ae),this.endControl.add(St,Ae),this.end.add(St,Ae))},Be.prototype.reverse=function(){return new Be(this.end,this.endControl,this.startControl,this.start)},Be}(),isBezierCurve=function(Be){return Be.type===1},BoundCurves=function(){function Be(St){var Ae=St.styles,Ee=St.bounds,Ce=getAbsoluteValueForTuple(Ae.borderTopLeftRadius,Ee.width,Ee.height),_e=Ce[0],Te=Ce[1],Se=getAbsoluteValueForTuple(Ae.borderTopRightRadius,Ee.width,Ee.height),xe=Se[0],Fe=Se[1],Ue=getAbsoluteValueForTuple(Ae.borderBottomRightRadius,Ee.width,Ee.height),Re=Ue[0],He=Ue[1],$e=getAbsoluteValueForTuple(Ae.borderBottomLeftRadius,Ee.width,Ee.height),ze=$e[0],Ve=$e[1],ir=[];ir.push((_e+xe)/Ee.width),ir.push((ze+Re)/Ee.width),ir.push((Te+Ve)/Ee.height),ir.push((Fe+He)/Ee.height);var Ze=Math.max.apply(Math,ir);Ze>1&&(_e/=Ze,Te/=Ze,xe/=Ze,Fe/=Ze,Re/=Ze,He/=Ze,ze/=Ze,Ve/=Ze);var ar=Ee.width-xe,cr=Ee.height-He,Xe=Ee.width-Re,or=Ee.height-Ve,Oe=Ae.borderTopWidth,Je=Ae.borderRightWidth,Ye=Ae.borderBottomWidth,rr=Ae.borderLeftWidth,vr=getAbsoluteValue(Ae.paddingTop,St.bounds.width),er=getAbsoluteValue(Ae.paddingRight,St.bounds.width),Ar=getAbsoluteValue(Ae.paddingBottom,St.bounds.width),gr=getAbsoluteValue(Ae.paddingLeft,St.bounds.width);this.topLeftBorderDoubleOuterBox=_e>0||Te>0?getCurvePoints(Ee.left+rr/3,Ee.top+Oe/3,_e-rr/3,Te-Oe/3,CORNER.TOP_LEFT):new Vector(Ee.left+rr/3,Ee.top+Oe/3),this.topRightBorderDoubleOuterBox=_e>0||Te>0?getCurvePoints(Ee.left+ar,Ee.top+Oe/3,xe-Je/3,Fe-Oe/3,CORNER.TOP_RIGHT):new Vector(Ee.left+Ee.width-Je/3,Ee.top+Oe/3),this.bottomRightBorderDoubleOuterBox=Re>0||He>0?getCurvePoints(Ee.left+Xe,Ee.top+cr,Re-Je/3,He-Ye/3,CORNER.BOTTOM_RIGHT):new Vector(Ee.left+Ee.width-Je/3,Ee.top+Ee.height-Ye/3),this.bottomLeftBorderDoubleOuterBox=ze>0||Ve>0?getCurvePoints(Ee.left+rr/3,Ee.top+or,ze-rr/3,Ve-Ye/3,CORNER.BOTTOM_LEFT):new Vector(Ee.left+rr/3,Ee.top+Ee.height-Ye/3),this.topLeftBorderDoubleInnerBox=_e>0||Te>0?getCurvePoints(Ee.left+rr*2/3,Ee.top+Oe*2/3,_e-rr*2/3,Te-Oe*2/3,CORNER.TOP_LEFT):new Vector(Ee.left+rr*2/3,Ee.top+Oe*2/3),this.topRightBorderDoubleInnerBox=_e>0||Te>0?getCurvePoints(Ee.left+ar,Ee.top+Oe*2/3,xe-Je*2/3,Fe-Oe*2/3,CORNER.TOP_RIGHT):new Vector(Ee.left+Ee.width-Je*2/3,Ee.top+Oe*2/3),this.bottomRightBorderDoubleInnerBox=Re>0||He>0?getCurvePoints(Ee.left+Xe,Ee.top+cr,Re-Je*2/3,He-Ye*2/3,CORNER.BOTTOM_RIGHT):new Vector(Ee.left+Ee.width-Je*2/3,Ee.top+Ee.height-Ye*2/3),this.bottomLeftBorderDoubleInnerBox=ze>0||Ve>0?getCurvePoints(Ee.left+rr*2/3,Ee.top+or,ze-rr*2/3,Ve-Ye*2/3,CORNER.BOTTOM_LEFT):new Vector(Ee.left+rr*2/3,Ee.top+Ee.height-Ye*2/3),this.topLeftBorderStroke=_e>0||Te>0?getCurvePoints(Ee.left+rr/2,Ee.top+Oe/2,_e-rr/2,Te-Oe/2,CORNER.TOP_LEFT):new Vector(Ee.left+rr/2,Ee.top+Oe/2),this.topRightBorderStroke=_e>0||Te>0?getCurvePoints(Ee.left+ar,Ee.top+Oe/2,xe-Je/2,Fe-Oe/2,CORNER.TOP_RIGHT):new Vector(Ee.left+Ee.width-Je/2,Ee.top+Oe/2),this.bottomRightBorderStroke=Re>0||He>0?getCurvePoints(Ee.left+Xe,Ee.top+cr,Re-Je/2,He-Ye/2,CORNER.BOTTOM_RIGHT):new Vector(Ee.left+Ee.width-Je/2,Ee.top+Ee.height-Ye/2),this.bottomLeftBorderStroke=ze>0||Ve>0?getCurvePoints(Ee.left+rr/2,Ee.top+or,ze-rr/2,Ve-Ye/2,CORNER.BOTTOM_LEFT):new Vector(Ee.left+rr/2,Ee.top+Ee.height-Ye/2),this.topLeftBorderBox=_e>0||Te>0?getCurvePoints(Ee.left,Ee.top,_e,Te,CORNER.TOP_LEFT):new Vector(Ee.left,Ee.top),this.topRightBorderBox=xe>0||Fe>0?getCurvePoints(Ee.left+ar,Ee.top,xe,Fe,CORNER.TOP_RIGHT):new Vector(Ee.left+Ee.width,Ee.top),this.bottomRightBorderBox=Re>0||He>0?getCurvePoints(Ee.left+Xe,Ee.top+cr,Re,He,CORNER.BOTTOM_RIGHT):new Vector(Ee.left+Ee.width,Ee.top+Ee.height),this.bottomLeftBorderBox=ze>0||Ve>0?getCurvePoints(Ee.left,Ee.top+or,ze,Ve,CORNER.BOTTOM_LEFT):new Vector(Ee.left,Ee.top+Ee.height),this.topLeftPaddingBox=_e>0||Te>0?getCurvePoints(Ee.left+rr,Ee.top+Oe,Math.max(0,_e-rr),Math.max(0,Te-Oe),CORNER.TOP_LEFT):new Vector(Ee.left+rr,Ee.top+Oe),this.topRightPaddingBox=xe>0||Fe>0?getCurvePoints(Ee.left+Math.min(ar,Ee.width-Je),Ee.top+Oe,ar>Ee.width+Je?0:Math.max(0,xe-Je),Math.max(0,Fe-Oe),CORNER.TOP_RIGHT):new Vector(Ee.left+Ee.width-Je,Ee.top+Oe),this.bottomRightPaddingBox=Re>0||He>0?getCurvePoints(Ee.left+Math.min(Xe,Ee.width-rr),Ee.top+Math.min(cr,Ee.height-Ye),Math.max(0,Re-Je),Math.max(0,He-Ye),CORNER.BOTTOM_RIGHT):new Vector(Ee.left+Ee.width-Je,Ee.top+Ee.height-Ye),this.bottomLeftPaddingBox=ze>0||Ve>0?getCurvePoints(Ee.left+rr,Ee.top+Math.min(or,Ee.height-Ye),Math.max(0,ze-rr),Math.max(0,Ve-Ye),CORNER.BOTTOM_LEFT):new Vector(Ee.left+rr,Ee.top+Ee.height-Ye),this.topLeftContentBox=_e>0||Te>0?getCurvePoints(Ee.left+rr+gr,Ee.top+Oe+vr,Math.max(0,_e-(rr+gr)),Math.max(0,Te-(Oe+vr)),CORNER.TOP_LEFT):new Vector(Ee.left+rr+gr,Ee.top+Oe+vr),this.topRightContentBox=xe>0||Fe>0?getCurvePoints(Ee.left+Math.min(ar,Ee.width+rr+gr),Ee.top+Oe+vr,ar>Ee.width+rr+gr?0:xe-rr+gr,Fe-(Oe+vr),CORNER.TOP_RIGHT):new Vector(Ee.left+Ee.width-(Je+er),Ee.top+Oe+vr),this.bottomRightContentBox=Re>0||He>0?getCurvePoints(Ee.left+Math.min(Xe,Ee.width-(rr+gr)),Ee.top+Math.min(cr,Ee.height+Oe+vr),Math.max(0,Re-(Je+er)),He-(Ye+Ar),CORNER.BOTTOM_RIGHT):new Vector(Ee.left+Ee.width-(Je+er),Ee.top+Ee.height-(Ye+Ar)),this.bottomLeftContentBox=ze>0||Ve>0?getCurvePoints(Ee.left+rr+gr,Ee.top+or,Math.max(0,ze-(rr+gr)),Ve-(Ye+Ar),CORNER.BOTTOM_LEFT):new Vector(Ee.left+rr+gr,Ee.top+Ee.height-(Ye+Ar))}return Be}(),CORNER;(function(Be){Be[Be.TOP_LEFT=0]="TOP_LEFT",Be[Be.TOP_RIGHT=1]="TOP_RIGHT",Be[Be.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Be[Be.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(CORNER||(CORNER={}));var getCurvePoints=function(Be,St,Ae,Ee,Ce){var _e=4*((Math.sqrt(2)-1)/3),Te=Ae*_e,Se=Ee*_e,xe=Be+Ae,Fe=St+Ee;switch(Ce){case CORNER.TOP_LEFT:return new BezierCurve(new Vector(Be,Fe),new Vector(Be,Fe-Se),new Vector(xe-Te,St),new Vector(xe,St));case CORNER.TOP_RIGHT:return new BezierCurve(new Vector(Be,St),new Vector(Be+Te,St),new Vector(xe,Fe-Se),new Vector(xe,Fe));case CORNER.BOTTOM_RIGHT:return new BezierCurve(new Vector(xe,St),new Vector(xe,St+Se),new Vector(Be+Te,Fe),new Vector(Be,Fe));case CORNER.BOTTOM_LEFT:default:return new BezierCurve(new Vector(xe,Fe),new Vector(xe-Te,Fe),new Vector(Be,St+Se),new Vector(Be,St))}},calculateBorderBoxPath=function(Be){return[Be.topLeftBorderBox,Be.topRightBorderBox,Be.bottomRightBorderBox,Be.bottomLeftBorderBox]},calculateContentBoxPath=function(Be){return[Be.topLeftContentBox,Be.topRightContentBox,Be.bottomRightContentBox,Be.bottomLeftContentBox]},calculatePaddingBoxPath=function(Be){return[Be.topLeftPaddingBox,Be.topRightPaddingBox,Be.bottomRightPaddingBox,Be.bottomLeftPaddingBox]},TransformEffect=function(){function Be(St,Ae,Ee){this.offsetX=St,this.offsetY=Ae,this.matrix=Ee,this.type=0,this.target=6}return Be}(),ClipEffect=function(){function Be(St,Ae){this.path=St,this.target=Ae,this.type=1}return Be}(),OpacityEffect=function(){function Be(St){this.opacity=St,this.type=2,this.target=6}return Be}(),isTransformEffect=function(Be){return Be.type===0},isClipEffect=function(Be){return Be.type===1},isOpacityEffect=function(Be){return Be.type===2},equalPath=function(Be,St){return Be.length===St.length?Be.some(function(Ae,Ee){return Ae===St[Ee]}):!1},transformPath=function(Be,St,Ae,Ee,Ce){return Be.map(function(_e,Te){switch(Te){case 0:return _e.add(St,Ae);case 1:return _e.add(St+Ee,Ae);case 2:return _e.add(St+Ee,Ae+Ce);case 3:return _e.add(St,Ae+Ce)}return _e})},StackingContext=function(){function Be(St){this.element=St,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return Be}(),ElementPaint=function(){function Be(St,Ae){if(this.container=St,this.parent=Ae,this.effects=[],this.curves=new BoundCurves(this.container),this.container.styles.opacity<1&&this.effects.push(new OpacityEffect(this.container.styles.opacity)),this.container.styles.transform!==null){var Ee=this.container.bounds.left+this.container.styles.transformOrigin[0].number,Ce=this.container.bounds.top+this.container.styles.transformOrigin[1].number,_e=this.container.styles.transform;this.effects.push(new TransformEffect(Ee,Ce,_e))}if(this.container.styles.overflowX!==0){var Te=calculateBorderBoxPath(this.curves),Se=calculatePaddingBoxPath(this.curves);equalPath(Te,Se)?this.effects.push(new ClipEffect(Te,6)):(this.effects.push(new ClipEffect(Te,2)),this.effects.push(new ClipEffect(Se,4)))}}return Be.prototype.getEffects=function(St){for(var Ae=[2,3].indexOf(this.container.styles.position)===-1,Ee=this.parent,Ce=this.effects.slice(0);Ee;){var _e=Ee.effects.filter(function(xe){return!isClipEffect(xe)});if(Ae||Ee.container.styles.position!==0||!Ee.parent){if(Ce.unshift.apply(Ce,_e),Ae=[2,3].indexOf(Ee.container.styles.position)===-1,Ee.container.styles.overflowX!==0){var Te=calculateBorderBoxPath(Ee.curves),Se=calculatePaddingBoxPath(Ee.curves);equalPath(Te,Se)||Ce.unshift(new ClipEffect(Se,6))}}else Ce.unshift.apply(Ce,_e);Ee=Ee.parent}return Ce.filter(function(xe){return contains(xe.target,St)})},Be}(),parseStackTree=function(Be,St,Ae,Ee){Be.container.elements.forEach(function(Ce){var _e=contains(Ce.flags,4),Te=contains(Ce.flags,2),Se=new ElementPaint(Ce,Be);contains(Ce.styles.display,2048)&&Ee.push(Se);var xe=contains(Ce.flags,8)?[]:Ee;if(_e||Te){var Fe=_e||Ce.styles.isPositioned()?Ae:St,Ue=new StackingContext(Se);if(Ce.styles.isPositioned()||Ce.styles.opacity<1||Ce.styles.isTransformed()){var Re=Ce.styles.zIndex.order;if(Re<0){var He=0;Fe.negativeZIndex.some(function(ze,Ve){return Re>ze.element.container.styles.zIndex.order?(He=Ve,!1):He>0}),Fe.negativeZIndex.splice(He,0,Ue)}else if(Re>0){var $e=0;Fe.positiveZIndex.some(function(ze,Ve){return Re>=ze.element.container.styles.zIndex.order?($e=Ve+1,!1):$e>0}),Fe.positiveZIndex.splice($e,0,Ue)}else Fe.zeroOrAutoZIndexOrTransformedOrOpacity.push(Ue)}else Ce.styles.isFloating()?Fe.nonPositionedFloats.push(Ue):Fe.nonPositionedInlineLevel.push(Ue);parseStackTree(Se,Ue,_e?Ue:Ae,xe)}else Ce.styles.isInlineLevel()?St.inlineLevel.push(Se):St.nonInlineLevel.push(Se),parseStackTree(Se,St,Ae,xe);contains(Ce.flags,8)&&processListItems(Ce,xe)})},processListItems=function(Be,St){for(var Ae=Be instanceof OLElementContainer?Be.start:1,Ee=Be instanceof OLElementContainer?Be.reversed:!1,Ce=0;Ce<St.length;Ce++){var _e=St[Ce];_e.container instanceof LIElementContainer&&typeof _e.container.value=="number"&&_e.container.value!==0&&(Ae=_e.container.value),_e.listValue=createCounterText(Ae,_e.container.styles.listStyleType,!0),Ae+=Ee?-1:1}},parseStackingContexts=function(Be){var St=new ElementPaint(Be,null),Ae=new StackingContext(St),Ee=[];return parseStackTree(St,Ae,Ae,Ee),processListItems(St.container,Ee),Ae},parsePathForBorder=function(Be,St){switch(St){case 0:return createPathFromCurves(Be.topLeftBorderBox,Be.topLeftPaddingBox,Be.topRightBorderBox,Be.topRightPaddingBox);case 1:return createPathFromCurves(Be.topRightBorderBox,Be.topRightPaddingBox,Be.bottomRightBorderBox,Be.bottomRightPaddingBox);case 2:return createPathFromCurves(Be.bottomRightBorderBox,Be.bottomRightPaddingBox,Be.bottomLeftBorderBox,Be.bottomLeftPaddingBox);case 3:default:return createPathFromCurves(Be.bottomLeftBorderBox,Be.bottomLeftPaddingBox,Be.topLeftBorderBox,Be.topLeftPaddingBox)}},parsePathForBorderDoubleOuter=function(Be,St){switch(St){case 0:return createPathFromCurves(Be.topLeftBorderBox,Be.topLeftBorderDoubleOuterBox,Be.topRightBorderBox,Be.topRightBorderDoubleOuterBox);case 1:return createPathFromCurves(Be.topRightBorderBox,Be.topRightBorderDoubleOuterBox,Be.bottomRightBorderBox,Be.bottomRightBorderDoubleOuterBox);case 2:return createPathFromCurves(Be.bottomRightBorderBox,Be.bottomRightBorderDoubleOuterBox,Be.bottomLeftBorderBox,Be.bottomLeftBorderDoubleOuterBox);case 3:default:return createPathFromCurves(Be.bottomLeftBorderBox,Be.bottomLeftBorderDoubleOuterBox,Be.topLeftBorderBox,Be.topLeftBorderDoubleOuterBox)}},parsePathForBorderDoubleInner=function(Be,St){switch(St){case 0:return createPathFromCurves(Be.topLeftBorderDoubleInnerBox,Be.topLeftPaddingBox,Be.topRightBorderDoubleInnerBox,Be.topRightPaddingBox);case 1:return createPathFromCurves(Be.topRightBorderDoubleInnerBox,Be.topRightPaddingBox,Be.bottomRightBorderDoubleInnerBox,Be.bottomRightPaddingBox);case 2:return createPathFromCurves(Be.bottomRightBorderDoubleInnerBox,Be.bottomRightPaddingBox,Be.bottomLeftBorderDoubleInnerBox,Be.bottomLeftPaddingBox);case 3:default:return createPathFromCurves(Be.bottomLeftBorderDoubleInnerBox,Be.bottomLeftPaddingBox,Be.topLeftBorderDoubleInnerBox,Be.topLeftPaddingBox)}},parsePathForBorderStroke=function(Be,St){switch(St){case 0:return createStrokePathFromCurves(Be.topLeftBorderStroke,Be.topRightBorderStroke);case 1:return createStrokePathFromCurves(Be.topRightBorderStroke,Be.bottomRightBorderStroke);case 2:return createStrokePathFromCurves(Be.bottomRightBorderStroke,Be.bottomLeftBorderStroke);case 3:default:return createStrokePathFromCurves(Be.bottomLeftBorderStroke,Be.topLeftBorderStroke)}},createStrokePathFromCurves=function(Be,St){var Ae=[];return isBezierCurve(Be)?Ae.push(Be.subdivide(.5,!1)):Ae.push(Be),isBezierCurve(St)?Ae.push(St.subdivide(.5,!0)):Ae.push(St),Ae},createPathFromCurves=function(Be,St,Ae,Ee){var Ce=[];return isBezierCurve(Be)?Ce.push(Be.subdivide(.5,!1)):Ce.push(Be),isBezierCurve(Ae)?Ce.push(Ae.subdivide(.5,!0)):Ce.push(Ae),isBezierCurve(Ee)?Ce.push(Ee.subdivide(.5,!0).reverse()):Ce.push(Ee),isBezierCurve(St)?Ce.push(St.subdivide(.5,!1).reverse()):Ce.push(St),Ce},paddingBox=function(Be){var St=Be.bounds,Ae=Be.styles;return St.add(Ae.borderLeftWidth,Ae.borderTopWidth,-(Ae.borderRightWidth+Ae.borderLeftWidth),-(Ae.borderTopWidth+Ae.borderBottomWidth))},contentBox=function(Be){var St=Be.styles,Ae=Be.bounds,Ee=getAbsoluteValue(St.paddingLeft,Ae.width),Ce=getAbsoluteValue(St.paddingRight,Ae.width),_e=getAbsoluteValue(St.paddingTop,Ae.width),Te=getAbsoluteValue(St.paddingBottom,Ae.width);return Ae.add(Ee+St.borderLeftWidth,_e+St.borderTopWidth,-(St.borderRightWidth+St.borderLeftWidth+Ee+Ce),-(St.borderTopWidth+St.borderBottomWidth+_e+Te))},calculateBackgroundPositioningArea=function(Be,St){return Be===0?St.bounds:Be===2?contentBox(St):paddingBox(St)},calculateBackgroundPaintingArea=function(Be,St){return Be===0?St.bounds:Be===2?contentBox(St):paddingBox(St)},calculateBackgroundRendering=function(Be,St,Ae){var Ee=calculateBackgroundPositioningArea(getBackgroundValueForIndex(Be.styles.backgroundOrigin,St),Be),Ce=calculateBackgroundPaintingArea(getBackgroundValueForIndex(Be.styles.backgroundClip,St),Be),_e=calculateBackgroundSize(getBackgroundValueForIndex(Be.styles.backgroundSize,St),Ae,Ee),Te=_e[0],Se=_e[1],xe=getAbsoluteValueForTuple(getBackgroundValueForIndex(Be.styles.backgroundPosition,St),Ee.width-Te,Ee.height-Se),Fe=calculateBackgroundRepeatPath(getBackgroundValueForIndex(Be.styles.backgroundRepeat,St),xe,_e,Ee,Ce),Ue=Math.round(Ee.left+xe[0]),Re=Math.round(Ee.top+xe[1]);return[Fe,Ue,Re,Te,Se]},isAuto=function(Be){return isIdentToken(Be)&&Be.value===BACKGROUND_SIZE.AUTO},hasIntrinsicValue=function(Be){return typeof Be=="number"},calculateBackgroundSize=function(Be,St,Ae){var Ee=St[0],Ce=St[1],_e=St[2],Te=Be[0],Se=Be[1];if(!Te)return[0,0];if(isLengthPercentage(Te)&&Se&&isLengthPercentage(Se))return[getAbsoluteValue(Te,Ae.width),getAbsoluteValue(Se,Ae.height)];var xe=hasIntrinsicValue(_e);if(isIdentToken(Te)&&(Te.value===BACKGROUND_SIZE.CONTAIN||Te.value===BACKGROUND_SIZE.COVER)){if(hasIntrinsicValue(_e)){var Fe=Ae.width/Ae.height;return Fe<_e!=(Te.value===BACKGROUND_SIZE.COVER)?[Ae.width,Ae.width/_e]:[Ae.height*_e,Ae.height]}return[Ae.width,Ae.height]}var Ue=hasIntrinsicValue(Ee),Re=hasIntrinsicValue(Ce),He=Ue||Re;if(isAuto(Te)&&(!Se||isAuto(Se))){if(Ue&&Re)return[Ee,Ce];if(!xe&&!He)return[Ae.width,Ae.height];if(He&&xe){var $e=Ue?Ee:Ce*_e,ze=Re?Ce:Ee/_e;return[$e,ze]}var Ve=Ue?Ee:Ae.width,ir=Re?Ce:Ae.height;return[Ve,ir]}if(xe){var Ze=0,ar=0;return isLengthPercentage(Te)?Ze=getAbsoluteValue(Te,Ae.width):isLengthPercentage(Se)&&(ar=getAbsoluteValue(Se,Ae.height)),isAuto(Te)?Ze=ar*_e:(!Se||isAuto(Se))&&(ar=Ze/_e),[Ze,ar]}var cr=null,Xe=null;if(isLengthPercentage(Te)?cr=getAbsoluteValue(Te,Ae.width):Se&&isLengthPercentage(Se)&&(Xe=getAbsoluteValue(Se,Ae.height)),cr!==null&&(!Se||isAuto(Se))&&(Xe=Ue&&Re?cr/Ee*Ce:Ae.height),Xe!==null&&isAuto(Te)&&(cr=Ue&&Re?Xe/Ce*Ee:Ae.width),cr!==null&&Xe!==null)return[cr,Xe];throw new Error("Unable to calculate background-size for element")},getBackgroundValueForIndex=function(Be,St){var Ae=Be[St];return typeof Ae>"u"?Be[0]:Ae},calculateBackgroundRepeatPath=function(Be,St,Ae,Ee,Ce){var _e=St[0],Te=St[1],Se=Ae[0],xe=Ae[1];switch(Be){case 2:return[new Vector(Math.round(Ee.left),Math.round(Ee.top+Te)),new Vector(Math.round(Ee.left+Ee.width),Math.round(Ee.top+Te)),new Vector(Math.round(Ee.left+Ee.width),Math.round(xe+Ee.top+Te)),new Vector(Math.round(Ee.left),Math.round(xe+Ee.top+Te))];case 3:return[new Vector(Math.round(Ee.left+_e),Math.round(Ee.top)),new Vector(Math.round(Ee.left+_e+Se),Math.round(Ee.top)),new Vector(Math.round(Ee.left+_e+Se),Math.round(Ee.height+Ee.top)),new Vector(Math.round(Ee.left+_e),Math.round(Ee.height+Ee.top))];case 1:return[new Vector(Math.round(Ee.left+_e),Math.round(Ee.top+Te)),new Vector(Math.round(Ee.left+_e+Se),Math.round(Ee.top+Te)),new Vector(Math.round(Ee.left+_e+Se),Math.round(Ee.top+Te+xe)),new Vector(Math.round(Ee.left+_e),Math.round(Ee.top+Te+xe))];default:return[new Vector(Math.round(Ce.left),Math.round(Ce.top)),new Vector(Math.round(Ce.left+Ce.width),Math.round(Ce.top)),new Vector(Math.round(Ce.left+Ce.width),Math.round(Ce.height+Ce.top)),new Vector(Math.round(Ce.left),Math.round(Ce.height+Ce.top))]}},SMALL_IMAGE="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",SAMPLE_TEXT="Hidden Text",FontMetrics=function(){function Be(St){this._data={},this._document=St}return Be.prototype.parseMetrics=function(St,Ae){var Ee=this._document.createElement("div"),Ce=this._document.createElement("img"),_e=this._document.createElement("span"),Te=this._document.body;Ee.style.visibility="hidden",Ee.style.fontFamily=St,Ee.style.fontSize=Ae,Ee.style.margin="0",Ee.style.padding="0",Ee.style.whiteSpace="nowrap",Te.appendChild(Ee),Ce.src=SMALL_IMAGE,Ce.width=1,Ce.height=1,Ce.style.margin="0",Ce.style.padding="0",Ce.style.verticalAlign="baseline",_e.style.fontFamily=St,_e.style.fontSize=Ae,_e.style.margin="0",_e.style.padding="0",_e.appendChild(this._document.createTextNode(SAMPLE_TEXT)),Ee.appendChild(_e),Ee.appendChild(Ce);var Se=Ce.offsetTop-_e.offsetTop+2;Ee.removeChild(_e),Ee.appendChild(this._document.createTextNode(SAMPLE_TEXT)),Ee.style.lineHeight="normal",Ce.style.verticalAlign="super";var xe=Ce.offsetTop-Ee.offsetTop+2;return Te.removeChild(Ee),{baseline:Se,middle:xe}},Be.prototype.getMetrics=function(St,Ae){var Ee=St+" "+Ae;return typeof this._data[Ee]>"u"&&(this._data[Ee]=this.parseMetrics(St,Ae)),this._data[Ee]},Be}(),Renderer=function(){function Be(St,Ae){this.context=St,this.options=Ae}return Be}(),MASK_OFFSET=1e4,CanvasRenderer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;return Ce._activeEffects=[],Ce.canvas=Ee.canvas?Ee.canvas:document.createElement("canvas"),Ce.ctx=Ce.canvas.getContext("2d"),Ee.canvas||(Ce.canvas.width=Math.floor(Ee.width*Ee.scale),Ce.canvas.height=Math.floor(Ee.height*Ee.scale),Ce.canvas.style.width=Ee.width+"px",Ce.canvas.style.height=Ee.height+"px"),Ce.fontMetrics=new FontMetrics(document),Ce.ctx.scale(Ce.options.scale,Ce.options.scale),Ce.ctx.translate(-Ee.x,-Ee.y),Ce.ctx.textBaseline="bottom",Ce._activeEffects=[],Ce.context.logger.debug("Canvas renderer initialized ("+Ee.width+"x"+Ee.height+") with scale "+Ee.scale),Ce}return St.prototype.applyEffects=function(Ae){for(var Ee=this;this._activeEffects.length;)this.popEffect();Ae.forEach(function(Ce){return Ee.applyEffect(Ce)})},St.prototype.applyEffect=function(Ae){this.ctx.save(),isOpacityEffect(Ae)&&(this.ctx.globalAlpha=Ae.opacity),isTransformEffect(Ae)&&(this.ctx.translate(Ae.offsetX,Ae.offsetY),this.ctx.transform(Ae.matrix[0],Ae.matrix[1],Ae.matrix[2],Ae.matrix[3],Ae.matrix[4],Ae.matrix[5]),this.ctx.translate(-Ae.offsetX,-Ae.offsetY)),isClipEffect(Ae)&&(this.path(Ae.path),this.ctx.clip()),this._activeEffects.push(Ae)},St.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},St.prototype.renderStack=function(Ae){return __awaiter(this,void 0,void 0,function(){var Ee;return __generator(this,function(Ce){switch(Ce.label){case 0:return Ee=Ae.element.container.styles,Ee.isVisible()?[4,this.renderStackContent(Ae)]:[3,2];case 1:Ce.sent(),Ce.label=2;case 2:return[2]}})})},St.prototype.renderNode=function(Ae){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(Ee){switch(Ee.label){case 0:if(contains(Ae.container.flags,16))debugger;return Ae.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Ae)]:[3,3];case 1:return Ee.sent(),[4,this.renderNodeContent(Ae)];case 2:Ee.sent(),Ee.label=3;case 3:return[2]}})})},St.prototype.renderTextWithLetterSpacing=function(Ae,Ee,Ce){var _e=this;if(Ee===0)this.ctx.fillText(Ae.text,Ae.bounds.left,Ae.bounds.top+Ce);else{var Te=segmentGraphemes(Ae.text);Te.reduce(function(Se,xe){return _e.ctx.fillText(xe,Se,Ae.bounds.top+Ce),Se+_e.ctx.measureText(xe).width},Ae.bounds.left)}},St.prototype.createFontStyle=function(Ae){var Ee=Ae.fontVariant.filter(function(Te){return Te==="normal"||Te==="small-caps"}).join(""),Ce=fixIOSSystemFonts(Ae.fontFamily).join(", "),_e=isDimensionToken(Ae.fontSize)?""+Ae.fontSize.number+Ae.fontSize.unit:Ae.fontSize.number+"px";return[[Ae.fontStyle,Ee,Ae.fontWeight,_e,Ce].join(" "),Ce,_e]},St.prototype.renderTextNode=function(Ae,Ee){return __awaiter(this,void 0,void 0,function(){var Ce,_e,Te,Se,xe,Fe,Ue,Re,He=this;return __generator(this,function($e){return Ce=this.createFontStyle(Ee),_e=Ce[0],Te=Ce[1],Se=Ce[2],this.ctx.font=_e,this.ctx.direction=Ee.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",xe=this.fontMetrics.getMetrics(Te,Se),Fe=xe.baseline,Ue=xe.middle,Re=Ee.paintOrder,Ae.textBounds.forEach(function(ze){Re.forEach(function(Ve){switch(Ve){case 0:He.ctx.fillStyle=asString(Ee.color),He.renderTextWithLetterSpacing(ze,Ee.letterSpacing,Fe);var ir=Ee.textShadow;ir.length&&ze.text.trim().length&&(ir.slice(0).reverse().forEach(function(Ze){He.ctx.shadowColor=asString(Ze.color),He.ctx.shadowOffsetX=Ze.offsetX.number*He.options.scale,He.ctx.shadowOffsetY=Ze.offsetY.number*He.options.scale,He.ctx.shadowBlur=Ze.blur.number,He.renderTextWithLetterSpacing(ze,Ee.letterSpacing,Fe)}),He.ctx.shadowColor="",He.ctx.shadowOffsetX=0,He.ctx.shadowOffsetY=0,He.ctx.shadowBlur=0),Ee.textDecorationLine.length&&(He.ctx.fillStyle=asString(Ee.textDecorationColor||Ee.color),Ee.textDecorationLine.forEach(function(Ze){switch(Ze){case 1:He.ctx.fillRect(ze.bounds.left,Math.round(ze.bounds.top+Fe),ze.bounds.width,1);break;case 2:He.ctx.fillRect(ze.bounds.left,Math.round(ze.bounds.top),ze.bounds.width,1);break;case 3:He.ctx.fillRect(ze.bounds.left,Math.ceil(ze.bounds.top+Ue),ze.bounds.width,1);break}}));break;case 1:Ee.webkitTextStrokeWidth&&ze.text.trim().length&&(He.ctx.strokeStyle=asString(Ee.webkitTextStrokeColor),He.ctx.lineWidth=Ee.webkitTextStrokeWidth,He.ctx.lineJoin=window.chrome?"miter":"round",He.ctx.strokeText(ze.text,ze.bounds.left,ze.bounds.top+Fe)),He.ctx.strokeStyle="",He.ctx.lineWidth=0,He.ctx.lineJoin="miter";break}})}),[2]})})},St.prototype.renderReplacedElement=function(Ae,Ee,Ce){if(Ce&&Ae.intrinsicWidth>0&&Ae.intrinsicHeight>0){var _e=contentBox(Ae),Te=calculatePaddingBoxPath(Ee);this.path(Te),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Ce,0,0,Ae.intrinsicWidth,Ae.intrinsicHeight,_e.left,_e.top,_e.width,_e.height),this.ctx.restore()}},St.prototype.renderNodeContent=function(Ae){return __awaiter(this,void 0,void 0,function(){var Ee,Ce,_e,Te,Se,xe,ar,ar,Fe,Ue,Re,He,Xe,$e,ze,or,Ve,ir,Ze,ar,cr,Xe,or;return __generator(this,function(Oe){switch(Oe.label){case 0:this.applyEffects(Ae.getEffects(4)),Ee=Ae.container,Ce=Ae.curves,_e=Ee.styles,Te=0,Se=Ee.textNodes,Oe.label=1;case 1:return Te<Se.length?(xe=Se[Te],[4,this.renderTextNode(xe,_e)]):[3,4];case 2:Oe.sent(),Oe.label=3;case 3:return Te++,[3,1];case 4:if(!(Ee instanceof ImageElementContainer))return[3,8];Oe.label=5;case 5:return Oe.trys.push([5,7,,8]),[4,this.context.cache.match(Ee.src)];case 6:return ar=Oe.sent(),this.renderReplacedElement(Ee,Ce,ar),[3,8];case 7:return Oe.sent(),this.context.logger.error("Error loading image "+Ee.src),[3,8];case 8:if(Ee instanceof CanvasElementContainer&&this.renderReplacedElement(Ee,Ce,Ee.canvas),!(Ee instanceof SVGElementContainer))return[3,12];Oe.label=9;case 9:return Oe.trys.push([9,11,,12]),[4,this.context.cache.match(Ee.svg)];case 10:return ar=Oe.sent(),this.renderReplacedElement(Ee,Ce,ar),[3,12];case 11:return Oe.sent(),this.context.logger.error("Error loading svg "+Ee.svg.substring(0,255)),[3,12];case 12:return Ee instanceof IFrameElementContainer&&Ee.tree?(Fe=new St(this.context,{scale:this.options.scale,backgroundColor:Ee.backgroundColor,x:0,y:0,width:Ee.width,height:Ee.height}),[4,Fe.render(Ee.tree)]):[3,14];case 13:Ue=Oe.sent(),Ee.width&&Ee.height&&this.ctx.drawImage(Ue,0,0,Ee.width,Ee.height,Ee.bounds.left,Ee.bounds.top,Ee.bounds.width,Ee.bounds.height),Oe.label=14;case 14:if(Ee instanceof InputElementContainer&&(Re=Math.min(Ee.bounds.width,Ee.bounds.height),Ee.type===CHECKBOX?Ee.checked&&(this.ctx.save(),this.path([new Vector(Ee.bounds.left+Re*.39363,Ee.bounds.top+Re*.79),new Vector(Ee.bounds.left+Re*.16,Ee.bounds.top+Re*.5549),new Vector(Ee.bounds.left+Re*.27347,Ee.bounds.top+Re*.44071),new Vector(Ee.bounds.left+Re*.39694,Ee.bounds.top+Re*.5649),new Vector(Ee.bounds.left+Re*.72983,Ee.bounds.top+Re*.23),new Vector(Ee.bounds.left+Re*.84,Ee.bounds.top+Re*.34085),new Vector(Ee.bounds.left+Re*.39363,Ee.bounds.top+Re*.79)]),this.ctx.fillStyle=asString(INPUT_COLOR),this.ctx.fill(),this.ctx.restore()):Ee.type===RADIO&&Ee.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Ee.bounds.left+Re/2,Ee.bounds.top+Re/2,Re/4,0,Math.PI*2,!0),this.ctx.fillStyle=asString(INPUT_COLOR),this.ctx.fill(),this.ctx.restore())),isTextInputElement(Ee)&&Ee.value.length){switch(He=this.createFontStyle(_e),Xe=He[0],$e=He[1],ze=this.fontMetrics.getMetrics(Xe,$e).baseline,this.ctx.font=Xe,this.ctx.fillStyle=asString(_e.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=canvasTextAlign(Ee.styles.textAlign),or=contentBox(Ee),Ve=0,Ee.styles.textAlign){case 1:Ve+=or.width/2;break;case 2:Ve+=or.width;break}ir=or.add(Ve,0,0,-or.height/2+1),this.ctx.save(),this.path([new Vector(or.left,or.top),new Vector(or.left+or.width,or.top),new Vector(or.left+or.width,or.top+or.height),new Vector(or.left,or.top+or.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new TextBounds(Ee.value,ir),_e.letterSpacing,ze),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!contains(Ee.styles.display,2048))return[3,20];if(Ee.styles.listStyleImage===null)return[3,19];if(Ze=Ee.styles.listStyleImage,Ze.type!==0)return[3,18];ar=void 0,cr=Ze.url,Oe.label=15;case 15:return Oe.trys.push([15,17,,18]),[4,this.context.cache.match(cr)];case 16:return ar=Oe.sent(),this.ctx.drawImage(ar,Ee.bounds.left-(ar.width+10),Ee.bounds.top),[3,18];case 17:return Oe.sent(),this.context.logger.error("Error loading list-style-image "+cr),[3,18];case 18:return[3,20];case 19:Ae.listValue&&Ee.styles.listStyleType!==-1&&(Xe=this.createFontStyle(_e)[0],this.ctx.font=Xe,this.ctx.fillStyle=asString(_e.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",or=new Bounds(Ee.bounds.left,Ee.bounds.top+getAbsoluteValue(Ee.styles.paddingTop,Ee.bounds.width),Ee.bounds.width,computeLineHeight(_e.lineHeight,_e.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new TextBounds(Ae.listValue,or),_e.letterSpacing,computeLineHeight(_e.lineHeight,_e.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Oe.label=20;case 20:return[2]}})})},St.prototype.renderStackContent=function(Ae){return __awaiter(this,void 0,void 0,function(){var Ee,Ce,Ze,_e,Te,Ze,Se,xe,Ze,Fe,Ue,Ze,Re,He,Ze,$e,ze,Ze,Ve,ir,Ze;return __generator(this,function(ar){switch(ar.label){case 0:if(contains(Ae.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(Ae.element)];case 1:ar.sent(),Ee=0,Ce=Ae.negativeZIndex,ar.label=2;case 2:return Ee<Ce.length?(Ze=Ce[Ee],[4,this.renderStack(Ze)]):[3,5];case 3:ar.sent(),ar.label=4;case 4:return Ee++,[3,2];case 5:return[4,this.renderNodeContent(Ae.element)];case 6:ar.sent(),_e=0,Te=Ae.nonInlineLevel,ar.label=7;case 7:return _e<Te.length?(Ze=Te[_e],[4,this.renderNode(Ze)]):[3,10];case 8:ar.sent(),ar.label=9;case 9:return _e++,[3,7];case 10:Se=0,xe=Ae.nonPositionedFloats,ar.label=11;case 11:return Se<xe.length?(Ze=xe[Se],[4,this.renderStack(Ze)]):[3,14];case 12:ar.sent(),ar.label=13;case 13:return Se++,[3,11];case 14:Fe=0,Ue=Ae.nonPositionedInlineLevel,ar.label=15;case 15:return Fe<Ue.length?(Ze=Ue[Fe],[4,this.renderStack(Ze)]):[3,18];case 16:ar.sent(),ar.label=17;case 17:return Fe++,[3,15];case 18:Re=0,He=Ae.inlineLevel,ar.label=19;case 19:return Re<He.length?(Ze=He[Re],[4,this.renderNode(Ze)]):[3,22];case 20:ar.sent(),ar.label=21;case 21:return Re++,[3,19];case 22:$e=0,ze=Ae.zeroOrAutoZIndexOrTransformedOrOpacity,ar.label=23;case 23:return $e<ze.length?(Ze=ze[$e],[4,this.renderStack(Ze)]):[3,26];case 24:ar.sent(),ar.label=25;case 25:return $e++,[3,23];case 26:Ve=0,ir=Ae.positiveZIndex,ar.label=27;case 27:return Ve<ir.length?(Ze=ir[Ve],[4,this.renderStack(Ze)]):[3,30];case 28:ar.sent(),ar.label=29;case 29:return Ve++,[3,27];case 30:return[2]}})})},St.prototype.mask=function(Ae){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(Ae.slice(0).reverse()),this.ctx.closePath()},St.prototype.path=function(Ae){this.ctx.beginPath(),this.formatPath(Ae),this.ctx.closePath()},St.prototype.formatPath=function(Ae){var Ee=this;Ae.forEach(function(Ce,_e){var Te=isBezierCurve(Ce)?Ce.start:Ce;_e===0?Ee.ctx.moveTo(Te.x,Te.y):Ee.ctx.lineTo(Te.x,Te.y),isBezierCurve(Ce)&&Ee.ctx.bezierCurveTo(Ce.startControl.x,Ce.startControl.y,Ce.endControl.x,Ce.endControl.y,Ce.end.x,Ce.end.y)})},St.prototype.renderRepeat=function(Ae,Ee,Ce,_e){this.path(Ae),this.ctx.fillStyle=Ee,this.ctx.translate(Ce,_e),this.ctx.fill(),this.ctx.translate(-Ce,-_e)},St.prototype.resizeImage=function(Ae,Ee,Ce){var _e;if(Ae.width===Ee&&Ae.height===Ce)return Ae;var Te=(_e=this.canvas.ownerDocument)!==null&&_e!==void 0?_e:document,Se=Te.createElement("canvas");Se.width=Math.max(1,Ee),Se.height=Math.max(1,Ce);var xe=Se.getContext("2d");return xe.drawImage(Ae,0,0,Ae.width,Ae.height,0,0,Ee,Ce),Se},St.prototype.renderBackgroundImage=function(Ae){return __awaiter(this,void 0,void 0,function(){var Ee,Ce,_e,Te,Se,xe;return __generator(this,function(Fe){switch(Fe.label){case 0:Ee=Ae.styles.backgroundImage.length-1,Ce=function(Ue){var Re,He,$e,vr,Lr,Mr,gr,mr,Ye,ze,vr,Lr,Mr,gr,mr,Ve,ir,Ze,ar,cr,Xe,or,Oe,Je,Ye,rr,vr,er,Ar,gr,mr,Ur,Lr,Mr,Qr,Dr,Xr,sn,ur,_r,Fr,Pr;return __generator(this,function(kr){switch(kr.label){case 0:if(Ue.type!==0)return[3,5];Re=void 0,He=Ue.url,kr.label=1;case 1:return kr.trys.push([1,3,,4]),[4,_e.context.cache.match(He)];case 2:return Re=kr.sent(),[3,4];case 3:return kr.sent(),_e.context.logger.error("Error loading background-image "+He),[3,4];case 4:return Re&&($e=calculateBackgroundRendering(Ae,Ee,[Re.width,Re.height,Re.width/Re.height]),vr=$e[0],Lr=$e[1],Mr=$e[2],gr=$e[3],mr=$e[4],Ye=_e.ctx.createPattern(_e.resizeImage(Re,gr,mr),"repeat"),_e.renderRepeat(vr,Ye,Lr,Mr)),[3,6];case 5:isLinearGradient(Ue)?(ze=calculateBackgroundRendering(Ae,Ee,[null,null,null]),vr=ze[0],Lr=ze[1],Mr=ze[2],gr=ze[3],mr=ze[4],Ve=calculateGradientDirection(Ue.angle,gr,mr),ir=Ve[0],Ze=Ve[1],ar=Ve[2],cr=Ve[3],Xe=Ve[4],or=document.createElement("canvas"),or.width=gr,or.height=mr,Oe=or.getContext("2d"),Je=Oe.createLinearGradient(Ze,cr,ar,Xe),processColorStops(Ue.stops,ir).forEach(function(Vr){return Je.addColorStop(Vr.stop,asString(Vr.color))}),Oe.fillStyle=Je,Oe.fillRect(0,0,gr,mr),gr>0&&mr>0&&(Ye=_e.ctx.createPattern(or,"repeat"),_e.renderRepeat(vr,Ye,Lr,Mr))):isRadialGradient(Ue)&&(rr=calculateBackgroundRendering(Ae,Ee,[null,null,null]),vr=rr[0],er=rr[1],Ar=rr[2],gr=rr[3],mr=rr[4],Ur=Ue.position.length===0?[FIFTY_PERCENT]:Ue.position,Lr=getAbsoluteValue(Ur[0],gr),Mr=getAbsoluteValue(Ur[Ur.length-1],mr),Qr=calculateRadius(Ue,Lr,Mr,gr,mr),Dr=Qr[0],Xr=Qr[1],Dr>0&&Xr>0&&(sn=_e.ctx.createRadialGradient(er+Lr,Ar+Mr,0,er+Lr,Ar+Mr,Dr),processColorStops(Ue.stops,Dr*2).forEach(function(Vr){return sn.addColorStop(Vr.stop,asString(Vr.color))}),_e.path(vr),_e.ctx.fillStyle=sn,Dr!==Xr?(ur=Ae.bounds.left+.5*Ae.bounds.width,_r=Ae.bounds.top+.5*Ae.bounds.height,Fr=Xr/Dr,Pr=1/Fr,_e.ctx.save(),_e.ctx.translate(ur,_r),_e.ctx.transform(1,0,0,Fr,0,0),_e.ctx.translate(-ur,-_r),_e.ctx.fillRect(er,Pr*(Ar-_r)+_r,gr,mr*Pr),_e.ctx.restore()):_e.ctx.fill())),kr.label=6;case 6:return Ee--,[2]}})},_e=this,Te=0,Se=Ae.styles.backgroundImage.slice(0).reverse(),Fe.label=1;case 1:return Te<Se.length?(xe=Se[Te],[5,Ce(xe)]):[3,4];case 2:Fe.sent(),Fe.label=3;case 3:return Te++,[3,1];case 4:return[2]}})})},St.prototype.renderSolidBorder=function(Ae,Ee,Ce){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(_e){return this.path(parsePathForBorder(Ce,Ee)),this.ctx.fillStyle=asString(Ae),this.ctx.fill(),[2]})})},St.prototype.renderDoubleBorder=function(Ae,Ee,Ce,_e){return __awaiter(this,void 0,void 0,function(){var Te,Se;return __generator(this,function(xe){switch(xe.label){case 0:return Ee<3?[4,this.renderSolidBorder(Ae,Ce,_e)]:[3,2];case 1:return xe.sent(),[2];case 2:return Te=parsePathForBorderDoubleOuter(_e,Ce),this.path(Te),this.ctx.fillStyle=asString(Ae),this.ctx.fill(),Se=parsePathForBorderDoubleInner(_e,Ce),this.path(Se),this.ctx.fill(),[2]}})})},St.prototype.renderNodeBackgroundAndBorders=function(Ae){return __awaiter(this,void 0,void 0,function(){var Ee,Ce,_e,Te,Se,xe,Fe,Ue,Re=this;return __generator(this,function(He){switch(He.label){case 0:return this.applyEffects(Ae.getEffects(2)),Ee=Ae.container.styles,Ce=!isTransparent(Ee.backgroundColor)||Ee.backgroundImage.length,_e=[{style:Ee.borderTopStyle,color:Ee.borderTopColor,width:Ee.borderTopWidth},{style:Ee.borderRightStyle,color:Ee.borderRightColor,width:Ee.borderRightWidth},{style:Ee.borderBottomStyle,color:Ee.borderBottomColor,width:Ee.borderBottomWidth},{style:Ee.borderLeftStyle,color:Ee.borderLeftColor,width:Ee.borderLeftWidth}],Te=calculateBackgroundCurvedPaintingArea(getBackgroundValueForIndex(Ee.backgroundClip,0),Ae.curves),Ce||Ee.boxShadow.length?(this.ctx.save(),this.path(Te),this.ctx.clip(),isTransparent(Ee.backgroundColor)||(this.ctx.fillStyle=asString(Ee.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Ae.container)]):[3,2];case 1:He.sent(),this.ctx.restore(),Ee.boxShadow.slice(0).reverse().forEach(function($e){Re.ctx.save();var ze=calculateBorderBoxPath(Ae.curves),Ve=$e.inset?0:MASK_OFFSET,ir=transformPath(ze,-Ve+($e.inset?1:-1)*$e.spread.number,($e.inset?1:-1)*$e.spread.number,$e.spread.number*($e.inset?-2:2),$e.spread.number*($e.inset?-2:2));$e.inset?(Re.path(ze),Re.ctx.clip(),Re.mask(ir)):(Re.mask(ze),Re.ctx.clip(),Re.path(ir)),Re.ctx.shadowOffsetX=$e.offsetX.number+Ve,Re.ctx.shadowOffsetY=$e.offsetY.number,Re.ctx.shadowColor=asString($e.color),Re.ctx.shadowBlur=$e.blur.number,Re.ctx.fillStyle=$e.inset?asString($e.color):"rgba(0,0,0,1)",Re.ctx.fill(),Re.ctx.restore()}),He.label=2;case 2:Se=0,xe=0,Fe=_e,He.label=3;case 3:return xe<Fe.length?(Ue=Fe[xe],Ue.style!==0&&!isTransparent(Ue.color)&&Ue.width>0?Ue.style!==2?[3,5]:[4,this.renderDashedDottedBorder(Ue.color,Ue.width,Se,Ae.curves,2)]:[3,11]):[3,13];case 4:return He.sent(),[3,11];case 5:return Ue.style!==3?[3,7]:[4,this.renderDashedDottedBorder(Ue.color,Ue.width,Se,Ae.curves,3)];case 6:return He.sent(),[3,11];case 7:return Ue.style!==4?[3,9]:[4,this.renderDoubleBorder(Ue.color,Ue.width,Se,Ae.curves)];case 8:return He.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Ue.color,Se,Ae.curves)];case 10:He.sent(),He.label=11;case 11:Se++,He.label=12;case 12:return xe++,[3,3];case 13:return[2]}})})},St.prototype.renderDashedDottedBorder=function(Ae,Ee,Ce,_e,Te){return __awaiter(this,void 0,void 0,function(){var Se,xe,Fe,Ue,Re,He,$e,ze,Ve,ir,Ze,ar,cr,Xe,or,Oe,or,Oe;return __generator(this,function(Je){return this.ctx.save(),Se=parsePathForBorderStroke(_e,Ce),xe=parsePathForBorder(_e,Ce),Te===2&&(this.path(xe),this.ctx.clip()),isBezierCurve(xe[0])?(Fe=xe[0].start.x,Ue=xe[0].start.y):(Fe=xe[0].x,Ue=xe[0].y),isBezierCurve(xe[1])?(Re=xe[1].end.x,He=xe[1].end.y):(Re=xe[1].x,He=xe[1].y),Ce===0||Ce===2?$e=Math.abs(Fe-Re):$e=Math.abs(Ue-He),this.ctx.beginPath(),Te===3?this.formatPath(Se):this.formatPath(xe.slice(0,2)),ze=Ee<3?Ee*3:Ee*2,Ve=Ee<3?Ee*2:Ee,Te===3&&(ze=Ee,Ve=Ee),ir=!0,$e<=ze*2?ir=!1:$e<=ze*2+Ve?(Ze=$e/(2*ze+Ve),ze*=Ze,Ve*=Ze):(ar=Math.floor(($e+Ve)/(ze+Ve)),cr=($e-ar*ze)/(ar-1),Xe=($e-(ar+1)*ze)/ar,Ve=Xe<=0||Math.abs(Ve-cr)<Math.abs(Ve-Xe)?cr:Xe),ir&&(Te===3?this.ctx.setLineDash([0,ze+Ve]):this.ctx.setLineDash([ze,Ve])),Te===3?(this.ctx.lineCap="round",this.ctx.lineWidth=Ee):this.ctx.lineWidth=Ee*2+1.1,this.ctx.strokeStyle=asString(Ae),this.ctx.stroke(),this.ctx.setLineDash([]),Te===2&&(isBezierCurve(xe[0])&&(or=xe[3],Oe=xe[0],this.ctx.beginPath(),this.formatPath([new Vector(or.end.x,or.end.y),new Vector(Oe.start.x,Oe.start.y)]),this.ctx.stroke()),isBezierCurve(xe[1])&&(or=xe[1],Oe=xe[2],this.ctx.beginPath(),this.formatPath([new Vector(or.end.x,or.end.y),new Vector(Oe.start.x,Oe.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},St.prototype.render=function(Ae){return __awaiter(this,void 0,void 0,function(){var Ee;return __generator(this,function(Ce){switch(Ce.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=asString(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),Ee=parseStackingContexts(Ae),[4,this.renderStack(Ee)];case 1:return Ce.sent(),this.applyEffects([]),[2,this.canvas]}})})},St}(Renderer),isTextInputElement=function(Be){return Be instanceof TextareaElementContainer||Be instanceof SelectElementContainer?!0:Be instanceof InputElementContainer&&Be.type!==RADIO&&Be.type!==CHECKBOX},calculateBackgroundCurvedPaintingArea=function(Be,St){switch(Be){case 0:return calculateBorderBoxPath(St);case 2:return calculateContentBoxPath(St);case 1:default:return calculatePaddingBoxPath(St)}},canvasTextAlign=function(Be){switch(Be){case 1:return"center";case 2:return"right";case 0:default:return"left"}},iOSBrokenFonts=["-apple-system","system-ui"],fixIOSSystemFonts=function(Be){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?Be.filter(function(St){return iOSBrokenFonts.indexOf(St)===-1}):Be},ForeignObjectRenderer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;return Ce.canvas=Ee.canvas?Ee.canvas:document.createElement("canvas"),Ce.ctx=Ce.canvas.getContext("2d"),Ce.options=Ee,Ce.canvas.width=Math.floor(Ee.width*Ee.scale),Ce.canvas.height=Math.floor(Ee.height*Ee.scale),Ce.canvas.style.width=Ee.width+"px",Ce.canvas.style.height=Ee.height+"px",Ce.ctx.scale(Ce.options.scale,Ce.options.scale),Ce.ctx.translate(-Ee.x,-Ee.y),Ce.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+Ee.width+"x"+Ee.height+" at "+Ee.x+","+Ee.y+") with scale "+Ee.scale),Ce}return St.prototype.render=function(Ae){return __awaiter(this,void 0,void 0,function(){var Ee,Ce;return __generator(this,function(_e){switch(_e.label){case 0:return Ee=createForeignObjectSVG(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,Ae),[4,loadSerializedSVG(Ee)];case 1:return Ce=_e.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=asString(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(Ce,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},St}(Renderer),loadSerializedSVG=function(Be){return new Promise(function(St,Ae){var Ee=new Image;Ee.onload=function(){St(Ee)},Ee.onerror=Ae,Ee.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Be))})},Logger=function(){function Be(St){var Ae=St.id,Ee=St.enabled;this.id=Ae,this.enabled=Ee,this.start=Date.now()}return Be.prototype.debug=function(){for(var St=[],Ae=0;Ae<arguments.length;Ae++)St[Ae]=arguments[Ae];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,__spreadArray([this.id,this.getTime()+"ms"],St)):this.info.apply(this,St))},Be.prototype.getTime=function(){return Date.now()-this.start},Be.prototype.info=function(){for(var St=[],Ae=0;Ae<arguments.length;Ae++)St[Ae]=arguments[Ae];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,__spreadArray([this.id,this.getTime()+"ms"],St))},Be.prototype.warn=function(){for(var St=[],Ae=0;Ae<arguments.length;Ae++)St[Ae]=arguments[Ae];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,__spreadArray([this.id,this.getTime()+"ms"],St)):this.info.apply(this,St))},Be.prototype.error=function(){for(var St=[],Ae=0;Ae<arguments.length;Ae++)St[Ae]=arguments[Ae];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,__spreadArray([this.id,this.getTime()+"ms"],St)):this.info.apply(this,St))},Be.instances={},Be}(),Context=function(){function Be(St,Ae){var Ee;this.windowBounds=Ae,this.instanceName="#"+Be.instanceCount++,this.logger=new Logger({id:this.instanceName,enabled:St.logging}),this.cache=(Ee=St.cache)!==null&&Ee!==void 0?Ee:new Cache(this,St)}return Be.instanceCount=1,Be}(),html2canvas=function(Be,St){return St===void 0&&(St={}),renderElement(Be,St)};typeof window<"u"&&CacheStorage.setContext(window);var renderElement=function(Be,St){return __awaiter(void 0,void 0,void 0,function(){var Ae,Ee,Ce,_e,Te,Se,xe,Fe,Ue,Re,He,$e,ze,Ve,ir,Ze,ar,cr,Xe,or,Je,Oe,Je,Ye,rr,vr,er,Ar,gr,mr,Ur,Lr,Mr,Qr,Dr,Xr,sn,ur,_r,Fr;return __generator(this,function(Pr){switch(Pr.label){case 0:if(!Be||typeof Be!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(Ae=Be.ownerDocument,!Ae)throw new Error("Element is not attached to a Document");if(Ee=Ae.defaultView,!Ee)throw new Error("Document is not attached to a Window");return Ce={allowTaint:(Ye=St.allowTaint)!==null&&Ye!==void 0?Ye:!1,imageTimeout:(rr=St.imageTimeout)!==null&&rr!==void 0?rr:15e3,proxy:St.proxy,useCORS:(vr=St.useCORS)!==null&&vr!==void 0?vr:!1},_e=__assign({logging:(er=St.logging)!==null&&er!==void 0?er:!0,cache:St.cache},Ce),Te={windowWidth:(Ar=St.windowWidth)!==null&&Ar!==void 0?Ar:Ee.innerWidth,windowHeight:(gr=St.windowHeight)!==null&&gr!==void 0?gr:Ee.innerHeight,scrollX:(mr=St.scrollX)!==null&&mr!==void 0?mr:Ee.pageXOffset,scrollY:(Ur=St.scrollY)!==null&&Ur!==void 0?Ur:Ee.pageYOffset},Se=new Bounds(Te.scrollX,Te.scrollY,Te.windowWidth,Te.windowHeight),xe=new Context(_e,Se),Fe=(Lr=St.foreignObjectRendering)!==null&&Lr!==void 0?Lr:!1,Ue={allowTaint:(Mr=St.allowTaint)!==null&&Mr!==void 0?Mr:!1,onclone:St.onclone,ignoreElements:St.ignoreElements,inlineImages:Fe,copyStyles:Fe},xe.logger.debug("Starting document clone with size "+Se.width+"x"+Se.height+" scrolled to "+-Se.left+","+-Se.top),Re=new DocumentCloner(xe,Be,Ue),He=Re.clonedReferenceElement,He?[4,Re.toIFrame(Ae,Se)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return $e=Pr.sent(),ze=isBodyElement(He)||isHTMLElement(He)?parseDocumentSize(He.ownerDocument):parseBounds(xe,He),Ve=ze.width,ir=ze.height,Ze=ze.left,ar=ze.top,cr=parseBackgroundColor(xe,He,St.backgroundColor),Xe={canvas:St.canvas,backgroundColor:cr,scale:(Dr=(Qr=St.scale)!==null&&Qr!==void 0?Qr:Ee.devicePixelRatio)!==null&&Dr!==void 0?Dr:1,x:((Xr=St.x)!==null&&Xr!==void 0?Xr:0)+Ze,y:((sn=St.y)!==null&&sn!==void 0?sn:0)+ar,width:(ur=St.width)!==null&&ur!==void 0?ur:Math.ceil(Ve),height:(_r=St.height)!==null&&_r!==void 0?_r:Math.ceil(ir)},Fe?(xe.logger.debug("Document cloned, using foreign object rendering"),Je=new ForeignObjectRenderer(xe,Xe),[4,Je.render(He)]):[3,3];case 2:return or=Pr.sent(),[3,5];case 3:return xe.logger.debug("Document cloned, element located at "+Ze+","+ar+" with size "+Ve+"x"+ir+" using computed rendering"),xe.logger.debug("Starting DOM parsing"),Oe=parseTree(xe,He),cr===Oe.styles.backgroundColor&&(Oe.styles.backgroundColor=COLORS.TRANSPARENT),xe.logger.debug("Starting renderer for element at "+Xe.x+","+Xe.y+" with size "+Xe.width+"x"+Xe.height),Je=new CanvasRenderer(xe,Xe),[4,Je.render(Oe)];case 4:or=Pr.sent(),Pr.label=5;case 5:return(!((Fr=St.removeContainer)!==null&&Fr!==void 0)||Fr)&&(DocumentCloner.destroy($e)||xe.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),xe.logger.debug("Finished rendering"),[2,or]}})})},parseBackgroundColor=function(Be,St,Ae){var Ee=St.ownerDocument,Ce=Ee.documentElement?parseColor(Be,getComputedStyle(Ee.documentElement).backgroundColor):COLORS.TRANSPARENT,_e=Ee.body?parseColor(Be,getComputedStyle(Ee.body).backgroundColor):COLORS.TRANSPARENT,Te=typeof Ae=="string"?parseColor(Be,Ae):Ae===null?COLORS.TRANSPARENT:4294967295;return St===Ee.documentElement?isTransparent(Ce)?isTransparent(_e)?Te:_e:Ce:Te};const html2canvas_esm=Object.freeze(Object.defineProperty({__proto__:null,default:html2canvas},Symbol.toStringTag,{value:"Module"}));function defaultTypeProvider(Be,St=[]){return function(Ae){var Ee=function(Ce){Ce.addPrintElementTypes("defaultModule",[new Be.PrintElementTypeGroup("常规",[{tid:"defaultModule.text",title:"文本",data:"",type:"text"},{tid:"defaultModule.image",title:"图片",data:"",type:"image"},{tid:"defaultModule.longText",title:"长文",data:"155123456789",type:"longText"},{tid:"defaultModule.table",field:"table",title:"表格",type:"table",groupFields:["name"],groupFooterFormatter:function(_e,Te){return"这里自定义统计脚信息"},columns:[[{title:"行号",fixed:!0,rowspan:2,field:"id",width:70},{title:"人员信息",colspan:2},{title:"销售统计",colspan:2}],[{title:"姓名",align:"left",field:"name",width:100},{title:"性别",field:"gender",width:100},{title:"销售数量",field:"count",width:100},{title:"销售金额",field:"amount",width:100}]]},{tid:"defaultModule.tableCustom",title:"表格",type:"tableCustom"}]),new Be.PrintElementTypeGroup("辅助",[{tid:"defaultModule.hline",title:"横线",type:"hline"},{tid:"defaultModule.vline",title:"竖线",type:"vline"},{tid:"defaultModule.rect",title:"矩形",type:"rect"},{tid:"defaultModule.oval",title:"椭圆",type:"oval"}]),new Be.PrintElementTypeGroup("数据字段",St)])};return{addElementTypes:Ee}}}var customData=[{PRINT_NUM:"11",ITEM_SKU:"00001105103",ITEM_CD:"00001",SPEC_COLOR_VAL_NM:"白色BS",SPEC_SIZE_VAL_NM:"M",ITEM_NM:"53029-9508外套",ITEM_PRICE:1399,SUPPLIER_CDNM:"53029",ITEM_SEASON:"0004",PRODUCT_STANDARD:"",PRO_ACCESSORY:"",ITEM_STYLE_NM:null,PRODUCT_SAFETY_INDICATOR:null,PRODUCT_SAFETY_INDICATOR_NM:null,ITEM_MNEMONIC_CD:"00001105103",ITEM_CATG_NM:"外套",BRAND_NM:"美丽穿",PH:"1841530299508",data:[{test1:"111",test2:"222",test3:"333",test4:"444",test5:"555"}]}],customPrintJson={panels:[{index:0,paperType:"B5",height:176,width:250,paperHeader:49.5,paperFooter:498.8976377952756,printElements:[{options:{left:27,top:97.5,height:36,width:616.5,columns:[[{title:"颜色",field:"test1",width:122.83028908964343,colspan:1,rowspan:2,checked:!0},{title:"M",field:"test2",width:125.39580769230773,colspan:2,rowspan:1,checked:!0},{title:"L",field:"test3",width:100,colspan:2,rowspan:1,checked:!0}],[{title:"数量",field:"test4",width:184.09613244361276,colspan:1,rowspan:1,checked:!0},{title:"单价",field:"test5",width:88.36069762246913,colspan:1,rowspan:1,checked:!0},{title:"数量",field:"test2",width:98.18798818965527,colspan:1,rowspan:1,checked:!0},{title:"单价",field:"test2",width:123.02489265461939,colspan:1,rowspan:1,checked:!0}]]},printElementType:{title:"表格",type:"tableCustom"}}],paperNumberLeft:678,paperNumberTop:476,paperNumberDisabled:!0}]};window.io=lookup$4;function _instanceof(Be,St){return St!=null&&typeof Symbol<"u"&&St[Symbol.hasInstance]?!!St[Symbol.hasInstance](Be):Be instanceof St}function _typeof$2(Be){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(Ae){return typeof Ae}:_typeof$2=function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},_typeof$2(Be)}var hiprint=function(Be){var St={};function Ae(Ee){if(St[Ee])return St[Ee].exports;var Ce=St[Ee]={i:Ee,l:!1,exports:{}};return Be[Ee].call(Ce.exports,Ce,Ce.exports,Ae),Ce.l=!0,Ce.exports}return Ae.m=Be,Ae.c=St,Ae.d=function(Ee,Ce,_e){Ae.o(Ee,Ce)||Object.defineProperty(Ee,Ce,{enumerable:!0,get:_e})},Ae.r=function(Ee){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(Ee,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Ee,"__esModule",{value:!0})},Ae.t=function(Ee,Ce){if(1&Ce&&(Ee=Ae(Ee)),8&Ce||4&Ce&&_typeof$2(Ee)=="object"&&Ee&&Ee.__esModule)return Ee;var _e=Object.create(null);if(Ae.r(_e),Object.defineProperty(_e,"default",{enumerable:!0,value:Ee}),2&Ce&&typeof Ee!="string")for(var Te in Ee)Ae.d(_e,Te,(function(Se){return Ee[Se]}).bind(null,Te));return _e},Ae.n=function(Ee){var Ce=Ee&&Ee.__esModule?function(){return Ee.default}:function(){return Ee};return Ae.d(Ce,"a",Ce),Ce},Ae.o=function(Ee,Ce){return Object.prototype.hasOwnProperty.call(Ee,Ce)},Ae.p="/",Ae(Ae.s=21)}([function(Be,St,Ae){var Ee;Ae.d(St,"a",function(){return hinnn}),window.hinnn={},hinnn.event=(Ee={},{on:function(_e,Te){Ee[_e]||(Ee[_e]=[]),Ee[_e].push(Te)},id:0,off:function(_e,Te){var Se=Ee[_e];if(Se){for(var xe=-1,Fe=0;Fe<Se.length;Fe++)if(Se[Fe]===Te){xe=Fe;break}xe<0||Ee[_e].splice(xe,1)}},trigger:function(_e){var Te=Ee[_e];if(Te&&Te.length)for(var Se=Array.prototype.slice.call(arguments,1),xe=0;xe<Te.length;xe++)Te[xe].apply(this,Se)},clear:function(_e){Ee[_e]=[]},getId:function(){return this.id+=1,this.id},getNameWithId:function(_e){return _e+"-"+this.getId()}}),hinnn.form={serialize:function(_e){var Te=$$g(_e).serializeArray(),Se={};return $$g.each(Te,function(){Se[this.name]?Object.prototype.toString.call(Se[this.name])=="[object Array]"?Se[this.name].push(this.value):Se[this.name]=[Se[this.name],this.value]:Se[this.name]=this.value}),Se}},hinnn.pt={toPx:function(_e){return _e*(this.getDpi()/72)},dpi:0,getDpi:function(){if(!this.dpi){var _e=document.createElement("DIV");_e.style.cssText="width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden",document.body.appendChild(_e),this.dpi=_e.offsetHeight}return this.dpi}},hinnn.px={toPt:function(_e){return _e*(72/this.getDpi())},dpi:0,getDpi:function(){if(!this.dpi){var _e=document.createElement("DIV");_e.style.cssText="width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden",document.body.appendChild(_e),this.dpi=_e.offsetHeight}return this.dpi}},hinnn.mm={toPt:function(_e){return 72/25.4*_e},toPx:function(_e){return hinnn.pt.toPx(hinnn.mm.toPt(_e))}},hinnn.throttle=function(Ce,_e,Te){var Se,xe,Fe,Ue=null,Re=0;Te||(Te={});var He=function(){Re=Te.leading===!1?0:_.now(),Ue=null,Fe=Ce.apply(Se,xe),Ue||(Se=xe=null)};return function(){var $e=_.now();Re||Te.leading!==!1||(Re=$e);var ze=_e-($e-Re);return Se=this,xe=arguments,ze<=0||ze>_e?(Ue&&(clearTimeout(Ue),Ue=null),Re=$e,Fe=Ce.apply(Se,xe),Ue||(Se=xe=null)):Ue||Te.trailing===!1||(Ue=setTimeout(He,ze)),Fe}},hinnn.debounce=function(Ce,_e,Te){var Se,xe,Fe,Ue,Re,He=function $e(){var ze=_.now()-Ue;ze<_e&&ze>=0?Se=setTimeout($e,_e-ze):(Se=null,Te||(Re=Ce.apply(Fe,xe),Se||(Fe=xe=null)))};return function(){Fe=this,xe=arguments,Ue=_.now();var $e=Te&&!Se;return Se||(Se=setTimeout(He,_e)),$e&&(Re=Ce.apply(Fe,xe),Fe=xe=null),Re}},hinnn.toUtf8=function(Ce){var _e,Te,Se,xe;for(_e="",Se=Ce.length,Te=0;Te<Se;Te++)(xe=Ce.charCodeAt(Te))>=1&&xe<=127?_e+=Ce.charAt(Te):xe>2047?(_e+=String.fromCharCode(224|xe>>12&15),_e+=String.fromCharCode(128|xe>>6&63),_e+=String.fromCharCode(128|xe>>0&63)):(_e+=String.fromCharCode(192|xe>>6&31),_e+=String.fromCharCode(128|xe>>0&63));return _e},hinnn.groupBy=function(Ce,_e,Te){var Se={};return Ce.forEach(function(xe){var Fe=JSON.stringify(Te(xe));Se[Fe]||(Se[Fe]={rows:[]},_e.forEach(function(Ue){Se[Fe][Ue]=xe[Ue]})),Se[Fe].rows.push(xe)}),Object.keys(Se).map(function(xe){return Se[xe]})},hinnn.orderBy=function(Ce,_e){if(Ce.length<=1)return Ce;var Te=Math.floor(Ce.length/2),Se=Ce.splice(Te,1)[0],xe=[],Fe=[],Ue=!0,Re=!1,He=void 0;try{for(var $e=Ce[Symbol.iterator](),ze;!(Ue=(ze=$e.next()).done);Ue=!0){var Ve=ze.value;_e(Ve)<_e(Se)?xe.push(Ve):Fe.push(Ve)}}catch(ir){Re=!0,He=ir}finally{try{!Ue&&$e.return!=null&&$e.return()}finally{if(Re)throw He}}return this.orderBy(xe,_e).concat([Se],this.orderBy(Fe,_e))},hinnn.dateFormat=function(Ce,_e){if(Ce)try{var Te=typeof Ce=="string"?new Date(Ce):Ce,Se={"M+":Te.getMonth()+1,"d+":Te.getDate(),"H+":Te.getHours(),"m+":Te.getMinutes(),"s+":Te.getSeconds(),"q+":Math.floor((Te.getMonth()+3)/3),S:Te.getMilliseconds()};for(var xe in/(y+)/.test(_e)&&(_e=_e.replace(RegExp.$1,(Te.getFullYear()+"").substr(4-RegExp.$1.length))),Se)new RegExp("("+xe+")").test(_e)&&(_e=_e.replace(RegExp.$1,RegExp.$1.length==1?Se[xe]:("00"+Se[xe]).substr((""+Se[xe]).length)));return _e}catch(Fe){return console.log(Fe),""}return""}},function(Be,St,Ae){Ae.d(St,"a",function(){return Ce});var Ee=Ae(9),Ce=function(){function _e(){this.providers=[],this.movingDistance=1.5,this.paperHeightTrim=1,this.text={supportOptions:[{name:"title",hidden:!1,title:""},{name:"field",hidden:!1},{name:"testData",hidden:!1},{name:"dataType",hidden:!1},{name:"fontFamily",hidden:!1},{name:"fontSize",hidden:!1},{name:"fontWeight",hidden:!1},{name:"letterSpacing",hidden:!1},{name:"color",hidden:!1},{name:"textDecoration",hidden:!1},{name:"textAlign",hidden:!1},{name:"textContentVerticalAlign",hidden:!1},{name:"lineHeight",hidden:!1},{name:"textType",hidden:!1},{name:"barcodeMode",hidden:!1},{name:"hideTitle",hidden:!1},{name:"showInPage",hidden:!1},{name:"unShowInPage",hidden:!1},{name:"fixed",hidden:!1},{name:"axis",hidden:!1},{name:"transform",hidden:!1},{name:"optionsGroup",hidden:!1},{name:"borderLeft",hidden:!1},{name:"borderTop",hidden:!1},{name:"borderRight",hidden:!1},{name:"borderBottom",hidden:!1},{name:"borderWidth",hidden:!1},{name:"borderColor",hidden:!1},{name:"contentPaddingLeft",hidden:!1},{name:"contentPaddingTop",hidden:!1},{name:"contentPaddingRight",hidden:!1},{name:"contentPaddingBottom",hidden:!1},{name:"backgroundColor",hidden:!1},{name:"formatter",hidden:!1},{name:"styler",hidden:!1}],default:{fontFamily:void 0,fontSize:void 0,fontWeight:"",letterSpacing:void 0,textAlign:void 0,textType:"text",hideTitle:!1,height:9.75,lineHeight:void 0,width:120}},this.image={supportOptions:[{name:"field",hidden:!1},{name:"src",hidden:!1},{name:"showInPage",hidden:!1},{name:"fixed",hidden:!1},{name:"axis",hidden:!1},{name:"transform",hidden:!1},{name:"formatter",hidden:!1},{name:"styler",hidden:!1}],default:{}},this.longText={supportOptions:[{name:"title",hidden:!1},{name:"field",hidden:!1},{name:"testData",hidden:!1},{name:"fontFamily",hidden:!1},{name:"fontSize",hidden:!1},{name:"fontWeight",hidden:!1},{name:"letterSpacing",hidden:!1},{name:"textAlign",hidden:!1},{name:"lineHeight",hidden:!1},{name:"color",hidden:!1},{name:"hideTitle",hidden:!1},{name:"longTextIndent",hidden:!1},{name:"leftSpaceRemoved",hidden:!1},{name:"showInPage",hidden:!1},{name:"unShowInPage",hidden:!1},{name:"fixed",hidden:!1},{name:"axis",hidden:!1},{name:"lHeight",hidden:!1},{name:"transform",hidden:!1},{name:"optionsGroup",hidden:!1},{name:"borderLeft",hidden:!1},{name:"borderTop",hidden:!1},{name:"borderRight",hidden:!1},{name:"borderBottom",hidden:!1},{name:"borderWidth",hidden:!1},{name:"borderColor",hidden:!1},{name:"contentPaddingLeft",hidden:!1},{name:"contentPaddingTop",hidden:!1},{name:"contentPaddingRight",hidden:!1},{name:"contentPaddingBottom",hidden:!1},{name:"backgroundColor",hidden:!1},{name:"formatter",hidden:!1},{name:"styler",hidden:!1}],default:{fontFamily:void 0,fontSize:void 0,fontWeight:"",letterSpacing:void 0,textAlign:void 0,hideTitle:!1,height:42,lineHeight:void 0,width:550}},this.table={supportOptions:[{name:"field",hidden:!1},{name:"fontFamily",hidden:!1},{name:"fontSize",hidden:!1},{name:"lineHeight",hidden:!1},{name:"textAlign",hidden:!1},{name:"gridColumns",hidden:!1},{name:"gridColumnsGutter",hidden:!1},{name:"tableBorder",hidden:!1},{name:"tableHeaderBorder",hidden:!1},{name:"tableHeaderCellBorder",hidden:!1},{name:"tableHeaderRowHeight",hidden:!1},{name:"tableHeaderBackground",hidden:!1},{name:"tableHeaderFontSize",hidden:!1},{name:"tableHeaderFontWeight",hidden:!1},{name:"tableBodyRowHeight",hidden:!1},{name:"tableBodyRowBorder",hidden:!1},{name:"tableBodyCellBorder",hidden:!1},{name:"axis",hidden:!1},{name:"lHeight",hidden:!1},{name:"autoCompletion",hidden:!1},{name:"columns",hidden:!1},{name:"styler",hidden:!1},{name:"rowStyler",hidden:!1},{name:"tableFooterRepeat",hidden:!1},{name:"footerFormatter",hidden:!1},{name:"gridColumnsFooterFormatter",hidden:!1}],default:{fontFamily:void 0,fontSize:void 0,fontWeight:"",textAlign:void 0,tableBorder:void 0,tableHeaderBorder:void 0,tableHeaderCellBorder:void 0,tableHeaderBackground:void 0,tableHeaderRowHeight:void 0,tableHeaderFontWeight:void 0,tableBodyCellBorder:void 0,tableBodyRowHeight:void 0,letterSpacing:"",lineHeight:void 0,width:550}},this.tableCustom={supportOptions:[{name:"field",hidden:!1},{name:"fontFamily",hidden:!1},{name:"fontSize",hidden:!1},{name:"textAlign",hidden:!1},{name:"tableBorder",hidden:!1},{name:"tableHeaderBorder",hidden:!1},{name:"tableHeaderCellBorder",hidden:!1},{name:"tableHeaderRowHeight",hidden:!1},{name:"tableHeaderFontSize",hidden:!1},{name:"tableHeaderFontWeight",hidden:!1},{name:"tableHeaderBackground",hidden:!1},{name:"tableBodyRowHeight",hidden:!1},{name:"tableBodyRowBorder",hidden:!1},{name:"tableBodyCellBorder",hidden:!1},{name:"axis",hidden:!1},{name:"lHeight",hidden:!1},{name:"autoCompletion",hidden:!1},{name:"tableFooterRepeat",hidden:!1}],default:{fontFamily:void 0,fontSize:void 0,fontWeight:"",textAlign:void 0,tableBorder:void 0,tableHeaderBorder:void 0,tableHeaderCellBorder:void 0,tableHeaderBackground:void 0,tableHeaderRowHeight:void 0,tableHeaderFontWeight:void 0,tableBodyCellBorder:void 0,tableBodyRowHeight:void 0,letterSpacing:"",lineHeight:void 0,width:550}},this.hline={supportOptions:[{name:"borderColor",hidden:!1},{name:"borderWidth",hidden:!1},{name:"showInPage",hidden:!1},{name:"fixed",hidden:!1},{name:"axis",hidden:!1},{name:"transform",hidden:!1},{name:"borderStyle",hidden:!1}],default:{borderWidth:.75,height:9,width:90}},this.vline={supportOptions:[{name:"borderColor",hidden:!1},{name:"borderWidth",hidden:!1},{name:"showInPage",hidden:!1},{name:"fixed",hidden:!1},{name:"axis",hidden:!1},{name:"transform",hidden:!1},{name:"borderStyle",hidden:!1}],default:{borderWidth:void 0,height:90,width:9}},this.rect={supportOptions:[{name:"borderColor",hidden:!1},{name:"borderWidth",hidden:!1},{name:"showInPage",hidden:!1},{name:"fixed",hidden:!1},{name:"axis",hidden:!1},{name:"transform",hidden:!1},{name:"borderStyle",hidden:!1}],default:{borderWidth:void 0,height:90,width:90}},this.oval={supportOptions:[{name:"borderColor",hidden:!1},{name:"borderWidth",hidden:!1},{name:"showInPage",hidden:!1},{name:"fixed",hidden:!1},{name:"axis",hidden:!1},{name:"transform",hidden:!1},{name:"borderStyle",hidden:!1}],default:{borderWidth:void 0,height:90,width:90}},this.html={supportOptions:[{name:"showInPage",hidden:!1},{name:"unShowInPage",hidden:!1},{name:"fixed",hidden:!1},{name:"axis",hidden:!1},{name:"formatter",hidden:!1}],default:{height:90,width:90}},this.tableColumn={supportOptions:[{name:"title",hidden:!1},{name:"align",hidden:!1},{name:"halign",hidden:!1},{name:"vAlign",hidden:!1},{name:"paddingLeft",hidden:!1},{name:"paddingRight",hidden:!1},{name:"formatter2",hidden:!1},{name:"styler2",hidden:!1}],default:{height:90,width:90}}}return _e.prototype.init=function(Te){Te&&$$g.extend(this,Te)},Object.defineProperty(_e,"instance",{get:function(){return _e._instance||(_e._instance=new _e,window.HIPRINT_CONFIG&&$$g.extend(_e._instance,HIPRINT_CONFIG),_e._instance.optionItems&&_e._instance.optionItems.forEach(function(Se){Ee.a.registerItem(Se)})),_e._instance},enumerable:!0,configurable:!0}),_e}()},function(Be,St,Ae){var Ee=function(){function _e(Te){this.printElement=Te}return _e.prototype.updatePosition=function(Te,Se){this.left=Te,this.top=Se},_e}();Ae.d(St,"a",function(){return Ce});var Ce=function(){function _e(){this.printTemplateContainer={},this.A1={width:841,height:594},this.A2={width:420,height:594},this.A3={width:420,height:297},this.A4={width:210,height:297},this.A5={width:210,height:148},this.A6={width:105,height:148},this.A7={width:105,height:74},this.A8={width:52,height:74},this.B1={width:1e3,height:707},this.B2={width:500,height:707},this.B3={width:500,height:353},this.B4={width:250,height:353},this.B5={width:250,height:176},this.B6={width:125,height:176},this.B7={width:125,height:88},this.B8={width:62,height:88},this.dragLengthCNum=function(Te,Se){var xe=.75*Te;return Se&&(Se=Se),Math.round(xe/Se)*Se}}return Object.defineProperty(_e,"instance",{get:function(){return this._instance||(this._instance=new _e),this._instance},enumerable:!0,configurable:!0}),_e.prototype.getDragingPrintElement=function(){return _e.instance.dragingPrintElement},_e.prototype.setDragingPrintElement=function(Te){_e.instance.dragingPrintElement=new Ee(Te)},_e.prototype.guid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(Te){var Se=16*Math.random()|0;return(Te=="x"?Se:3&Se|8).toString(16)})},_e.prototype.imageToBase64=function(Te){if($$g(Te).attr("src").indexOf("base64")==-1)try{var Se=document.createElement("canvas"),xe=new Image;xe.src=Te.attr("src"),Se.width=xe.width,Se.height=xe.height,Se.getContext("2d").drawImage(xe,0,0),Te.attr("src",Se.toDataURL("image/png"))}catch{try{this.xhrLoadImage(Te)}catch(Ue){console.log(Ue)}}},_e.prototype.xhrLoadImage=function(Te){},_e.prototype.transformImg=function(Te){var Se=this;Te.map(function(xe,Fe){Se.imageToBase64($$g(Fe))})},_e.prototype.getPrintTemplateById=function(Te){return _e.instance.printTemplateContainer[Te]},_e.prototype.setPrintTemplateById=function(Te,Se){return _e.instance.printTemplateContainer[Te]=Se},_e}()},function(Be,St,Ae){var Ee=function(){return function(){}}();Ae.d(St,"a",function(){return Ce});var Ce=function(){function _e(Te){Te=Te||{},this.left=Te.left,this.top=Te.top,this.topInDesign=this.top,this.height=Te.height,this.width=Te.width,this.init(Te)}return _e.prototype.setDefault=function(Te){this.defaultOptions=Te,this.initSize()},_e.prototype.initSize=function(){this.width||this.setWidth(this.defaultOptions.width),this.height||this.setHeight(this.defaultOptions.height)},_e.prototype.initSizeByHtml=function(Te,Se){this.width||this.setWidth(Te),this.height||this.setHeight(Se)},_e.prototype.getLeft=function(){return this.left},_e.prototype.displayLeft=function(){return this.left+"pt"},_e.prototype.setLeft=function(Te){Te!=null&&(this.left=Te)},_e.prototype.getTop=function(){return this.top},_e.prototype.getTopInDesign=function(){return this.topInDesign},_e.prototype.displayTop=function(){return this.top+"pt"},_e.prototype.setTop=function(Te){Te!=null&&(this.top=Te)},_e.prototype.copyDesignTopFromTop=function(){this.topInDesign=this.top},_e.prototype.getHeight=function(){return this.height},_e.prototype.displayHeight=function(){return this.height+"pt"},_e.prototype.setHeight=function(Te){Te!=null&&(this.height=Te)},_e.prototype.getWidth=function(){return this.width},_e.prototype.displayWidth=function(){return this.width+"pt"},_e.prototype.setWidth=function(Te){Te!=null&&(this.width=Te)},_e.prototype.getValueFromOptionsOrDefault=function(Te){return this[Te]==null?this.defaultOptions[Te]:this[Te]},_e.prototype.getPrintElementOptionEntity=function(){var Te=new Ee,Se=this;return Object.keys(this).filter(function(xe){return xe!="topInDesign"}).forEach(function(xe){if(typeof Se[xe]!="number"&&typeof Se[xe]!="string"&&_typeof$2(Se[xe])!=_typeof$2(!0)||(Te[xe]=Se[xe]),xe=="style"){Te.style={};var Fe=Se[xe];Fe&&Object.keys(Fe).forEach(function(Ue){typeof Fe[Ue]!="number"&&typeof Fe[Ue]!="string"||(Te.style[Ue]=Fe[Ue])})}}),Te},_e.prototype.init=function(Te){var Se=this;Te&&Object.keys(Te).forEach(function(xe){Se[xe]=Te[xe]})},_e}()},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return BasePrintElement});var _entity_PrintElementEntity__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(17),_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1),_print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9),_dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(0),_PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8),_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(2),BasePrintElement=function(){function BasePrintElement(Be){this.printElementType=Be,this.id=_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.guid()}return BasePrintElement.prototype.getConfigOptionsByName=function(Be){return _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance[Be]},BasePrintElement.prototype.getProxyTarget=function(Be){Be&&this.SetProxyTargetOption(Be);var St=this.getData(),Ae=this.createTarget(this.getTitle(),St);return this.updateTargetSize(Ae),this.css(Ae,St),Ae},BasePrintElement.prototype.SetProxyTargetOption=function(Be){this.options.getPrintElementOptionEntity(),$$g.extend(this.options,Be)},BasePrintElement.prototype.showInPage=function(Be,St){var Ae=this.options.showInPage,Ee=this.options.unShowInPage;if(Ae){if(Ae=="first")return Be==0;if(Be==St-1&&Ee=="last")return!1;if(Ae=="odd")return(Be!=0||Ee!="first")&&Be%2==0;if(Ae=="even")return Be%2==1;if(Ae=="last")return Be==St-1}return(Be!=0||Ee!="first")&&(Be!=St-1||Ee!="last")},BasePrintElement.prototype.setTemplateId=function(Be){this.templateId=Be},BasePrintElement.prototype.setPanel=function(Be){this.panel=Be},BasePrintElement.prototype.getField=function(){return this.options.field||this.printElementType.field},BasePrintElement.prototype.getTitle=function(){return this.printElementType.title},BasePrintElement.prototype.updateSizeAndPositionOptions=function(Be,St,Ae,Ee){this.options.setLeft(Be),this.options.setTop(St),this.options.copyDesignTopFromTop(),this.options.setWidth(Ae),this.options.setHeight(Ee),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__.a.event.trigger("hiprintTemplateDataChanged_"+this.templateId)},BasePrintElement.prototype.initSizeByHtml=function(Be){if(Be&&Be.length){this.createTempContainer();var St=Be.clone();this.getTempContainer().append(St),this.options.initSizeByHtml(parseInt(_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__.a.px.toPt(St.width()).toString()),parseInt(_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__.a.px.toPt(St.height()).toString())),this.removeTempContainer()}},BasePrintElement.prototype.updateTargetSize=function(Be){Be.css("width",this.options.displayWidth()),Be.css("height",this.options.displayHeight())},BasePrintElement.prototype.updateTargetWidth=function(Be){Be.css("width",this.options.displayWidth())},BasePrintElement.prototype.getDesignTarget=function(Be){var St=this;return this.designTarget=this.getHtml(Be)[0].target,this.designPaper=Be,this.designTarget.click(function(){_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__.a.event.trigger(St.getPrintElementSelectEventKey(),{printElement:St})}),this.designTarget},BasePrintElement.prototype.getPrintElementSelectEventKey=function(){return"PrintElementSelectEventKey_"+this.templateId},BasePrintElement.prototype.design=function(Be,St){var Ae=this;this.designTarget.hidraggable({axis:Ae.options.axis&&Be&&Be.axisEnabled?Ae.options.axis:void 0,onDrag:function(Ce,_e,Te){Ae.updateSizeAndPositionOptions(_e,Te),Ae.createLineOfPosition(St)},moveUnit:"pt",minMove:_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance,onBeforeDrag:function(Ce){_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging=!0,Ae.designTarget.focus(),Ae.createLineOfPosition(St)},onStopDrag:function(Ce){_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging=!1,Ae.removeLineOfPosition()}}),this.designTarget.hireizeable({showPoints:Ae.getReizeableShowPoints(),onBeforeResize:function(){_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging=!0},onResize:function(Ce,_e,Te,Se,xe){Ae.onResize(Ce,_e,Te,Se,xe),Ae.createLineOfPosition(St)},onStopResize:function(){_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging=!1,Ae.removeLineOfPosition()}}),this.bingCopyEvent(this.designTarget),this.bingKeyboardMoveEvent(this.designTarget,St)},BasePrintElement.prototype.getPrintElementEntity=function(Be){return Be?new _entity_PrintElementEntity__WEBPACK_IMPORTED_MODULE_0__.a(void 0,this.options.getPrintElementOptionEntity(),this.printElementType.getPrintElementTypeEntity()):new _entity_PrintElementEntity__WEBPACK_IMPORTED_MODULE_0__.a(this.printElementType.tid,this.options.getPrintElementOptionEntity())},BasePrintElement.prototype.submitOption=function(){var Be=this;this.getPrintElementOptionItems().forEach(function(St){var Ae=St.getValue();Ae&&_typeof$2(Ae)=="object"?Object.keys(Ae).forEach(function(Ee){Be.options[Ee]=Ae[Ee]}):Be.options[St.name]=Ae}),this.updateDesignViewFromOptions(),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__.a.event.trigger("hiprintTemplateDataChanged_"+this.templateId)},BasePrintElement.prototype.getReizeableShowPoints=function(){return["s","e"]},BasePrintElement.prototype.onResize=function(Be,St,Ae,Ee,Ce){this.updateSizeAndPositionOptions(Ce,Ee,Ae,St)},BasePrintElement.prototype.getOrderIndex=function(){return this.options.getTop()},BasePrintElement.prototype.getHtml=function(Be,St,Ae){var Ee=0;this.setCurrenttemplateData(St);var Ce=[],_e=this.getBeginPrintTopInPaperByReferenceElement(Be),Te=Be.getPaperFooter(Ee);this.isHeaderOrFooter()||this.isFixed()||_e>Te&&(Ce.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:void 0,printLine:void 0})),_e=_e-Te+Be.paperHeader,Ee++,Te=Be.getPaperFooter(Ee));var Se=this.getData(St),xe=this.createTarget(this.getTitle(),Se,Ae);return this.updateTargetSize(xe),this.css(xe,Se),xe.css("position","absolute"),xe.css("left",this.options.displayLeft()),xe.css("top",_e+"pt"),Ce.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:xe,printLine:_e+this.options.getHeight()})),Ce},BasePrintElement.prototype.getHtml2=function(Be,St,Ae){var Ee=0;this.setCurrenttemplateData(St);var Ce=[],_e=this.getBeginPrintTopInPaperByReferenceElement(Be),Te=Be.getPaperFooter(Ee);this.isHeaderOrFooter()||this.isFixed()||(_e>Te&&(Ce.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:void 0,printLine:void 0})),_e=_e-Te+Be.paperHeader,Ee++,Te=Be.getPaperFooter(Ee)),_e<=Te&&_e+this.options.getHeight()>Te&&(Ce.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:void 0,printLine:void 0})),_e=Be.paperHeader,Ee++,Te=Be.getPaperFooter(Ee)));var Se=this.getData(St),xe=this.createTarget(this.getTitle(),Se);return this.updateTargetSize(xe),this.css(xe,Se),xe.css("position","absolute"),xe.css("left",this.options.displayLeft()),xe.css("top",_e+"pt"),Ce.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:xe,printLine:_e+this.options.getHeight(),referenceElement:new _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__.a({top:this.options.getTop(),left:this.options.getLeft(),height:this.options.getHeight(),width:this.options.getWidth(),beginPrintPaperIndex:Be.index,bottomInLastPaper:_e+this.options.getHeight(),printTopInPaper:_e})})),Ce},BasePrintElement.prototype.getBeginPrintTopInPaperByReferenceElement=function(Be){var St=this.options.getTop();return this.isHeaderOrFooter()||this.isFixed()?St:Be.referenceElement.isPositionLeftOrRight(St)?Be.referenceElement.printTopInPaper+(St-Be.referenceElement.top):Be.referenceElement.bottomInLastPaper+(St-(Be.referenceElement.top+Be.referenceElement.height))},BasePrintElement.prototype.css=function(Be,St){var Ae=this,Ee=this.getConfigOptions();if(Ee){var Ce=Ee.supportOptions;Ce&&Ce.forEach(function(_e){var Te=_print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(_e.name);Te&&Te.css&&Te.css(Be,Ae.options.getValueFromOptionsOrDefault(_e.name))})}this.stylerCss(Be,St)},BasePrintElement.prototype.stylerCss=function(Be,St){var Ae=this.getStyler();if(Ae){var Ee=Ae(St,this.options,Be,this._currenttemplateData);Ee&&Object.keys(Ee).forEach(function(Ce){Be.css(Ce,Ee[Ce])})}},BasePrintElement.prototype.getData=function(Be){return Be?Be[this.getField()]||"":this.printElementType.getData()},BasePrintElement.prototype.getPrintElementOptionItems=function(){if(this._printElementOptionItems)return this._printElementOptionItems;var Be=[],St=this.getConfigOptions();if(St){var Ae=St.supportOptions;Ae&&Ae.filter(function(Ee){return!Ee.hidden}).forEach(function(Ee){var Ce=_print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(Ee.name);Be.push(Ce)})}return this._printElementOptionItems=this.filterOptionItems(Be.concat()),this._printElementOptionItems},BasePrintElement.prototype.getPrintElementOptionItemsByName=function(Be){var St=[],Ae=this.getConfigOptionsByName(Be);if(Ae){var Ee=Ae.supportOptions;Ee&&Ee.filter(function(Ce){return!Ce.hidden}).forEach(function(Ce){var _e=_print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(Ce.name);St.push(_e)})}return St.concat()},BasePrintElement.prototype.filterOptionItems=function(Be){return this.printElementType.field?Be.filter(function(St){return St.name!="field"}):Be},BasePrintElement.prototype.createTempContainer=function(){this.removeTempContainer(),$$g("body").append($$g('<div class="hiprint_temp_Container hiprint-printPaper" style="overflow:hidden;height: 0px;box-sizing: border-box;"></div>'))},BasePrintElement.prototype.removeTempContainer=function(){$$g(".hiprint_temp_Container").remove()},BasePrintElement.prototype.getTempContainer=function(){return $$g(".hiprint_temp_Container")},BasePrintElement.prototype.isHeaderOrFooter=function(){return this.options.getTopInDesign()<this.panel.paperHeader||this.options.getTopInDesign()>=this.panel.paperFooter},BasePrintElement.prototype.delete=function(){this.designTarget&&this.designTarget.remove()},BasePrintElement.prototype.setCurrenttemplateData=function(Be){this._currenttemplateData=Be},BasePrintElement.prototype.isFixed=function(){return this.options.fixed},BasePrintElement.prototype.onRendered=function(Be,St){this.printElementType&&this.printElementType.onRendered&&this.printElementType.onRendered(St,this.options,Be.getTarget())},BasePrintElement.prototype.createLineOfPosition=function(Be){var St=$$g(".toplineOfPosition"+this.id),Ae=$$g(".leftlineOfPosition"+this.id),Ee=$$g(".rightlineOfPosition"+this.id),Ce=$$g(".bottomlineOfPosition"+this.id);if(St.length?St.css("top",this.options.displayTop()):((St=$$g('<div class="toplineOfPosition'+this.id+'" style="border:0;border-top:1px dashed rgb(169, 169, 169);position: absolute; width: 100%;"></div>')).css("top",this.options.displayTop()),St.css("width",Be.displayWidth()),this.designTarget.parents(".hiprint-printPaper-content").append(St)),Ae.length)Ae.css("left",this.options.displayLeft());else{var _e=$$g('<div class="leftlineOfPosition'+this.id+'" style="border:0;border-left:1px dashed rgb(169, 169, 169);position: absolute;height: 100%;"></div>');_e.css("left",this.options.displayLeft()),_e.css("height",Be.displayHeight()),this.designTarget.parents(".hiprint-printPaper-content").append(_e)}if(Ee.length)Ee.css("left",this.options.getLeft()+this.options.getWidth()+"pt");else{var Te=$$g('<div class="rightlineOfPosition'+this.id+'" style="border:0;border-left:1px dashed rgb(169, 169, 169);position: absolute;height: 100%;"></div>');Te.css("left",this.options.getLeft()+this.options.getWidth()+"pt"),Te.css("height",Be.displayHeight()),this.designTarget.parents(".hiprint-printPaper-content").append(Te)}if(Ce.length)Ce.css("top",this.options.getTop()+this.options.getHeight()+"pt");else{var Se=$$g('<div class="bottomlineOfPosition'+this.id+'" style="border:0;border-top:1px dashed rgb(169, 169, 169);position: absolute;width: 100%;"></div>');Se.css("top",this.options.getTop()+this.options.getHeight()+"pt"),Se.css("width",Be.displayWidth()),this.designTarget.parents(".hiprint-printPaper-content").append(Se)}},BasePrintElement.prototype.removeLineOfPosition=function(){$$g(".toplineOfPosition"+this.id).remove(),$$g(".leftlineOfPosition"+this.id).remove(),$$g(".rightlineOfPosition"+this.id).remove(),$$g(".bottomlineOfPosition"+this.id).remove()},BasePrintElement.prototype.getFields=function(){var Be=this.printElementType.getFields();return Be||(Be=_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.getPrintTemplateById(this.templateId).getFields())},BasePrintElement.prototype.bingCopyEvent=function(Be){},BasePrintElement.prototype.getFormatter=function(){var formatter=void 0;if(this.printElementType.formatter&&(formatter=this.printElementType.formatter),this.options.formatter)try{var s="formatter="+this.options.formatter;eval(s)}catch(Be){console.log(Be)}return formatter},BasePrintElement.prototype.getStyler=function(){var fnstyler=void 0;if(this.printElementType.styler&&(fnstyler=this.printElementType.styler),this.options.styler)try{var s="fnstyler="+this.options.styler;eval(s)}catch(Be){console.log(Be)}return fnstyler},BasePrintElement.prototype.bingKeyboardMoveEvent=function(Be,St){var Ae=this,Ee=void 0,Ce=void 0;Be.attr("tabindex","1"),Be.keydown(function(_e){switch(_e.keyCode){case 37:Ee=Ae.options.getLeft(),Ae.updateSizeAndPositionOptions(Ee-_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance),Be.css("left",Ae.options.displayLeft()),Ae.createLineOfPosition(St),_e.preventDefault();break;case 38:Ce=Ae.options.getTop(),Ae.updateSizeAndPositionOptions(void 0,Ce-_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance),Be.css("top",Ae.options.displayTop()),Ae.createLineOfPosition(St),_e.preventDefault();break;case 39:Ee=Ae.options.getLeft(),Ae.updateSizeAndPositionOptions(Ee+_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance),Be.css("left",Ae.options.displayLeft()),Ae.createLineOfPosition(St),_e.preventDefault();break;case 40:Ce=Ae.options.getTop(),Ae.updateSizeAndPositionOptions(void 0,Ce+_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance),Be.css("top",Ae.options.displayTop()),Ae.createLineOfPosition(St),_e.preventDefault()}})},BasePrintElement.prototype.inRect=function(Be){var St=this.designTarget.offset().left,Ae=this.designTarget.offset().top;return Be.minX<St&&Be.minY<Ae&&Be.maxX>St&&Be.maxY>Ae},BasePrintElement.prototype.multipleSelect=function(Be){Be?this.designTarget.addClass("multipleSelect"):this.designTarget.removeClass("multipleSelect")},BasePrintElement.prototype.updatePositionByMultipleSelect=function(Be,St){this.updateSizeAndPositionOptions(Be+this.options.getLeft(),St+this.options.getTop()),this.designTarget.css("left",this.options.displayLeft()),this.designTarget.css("top",this.options.displayTop())},BasePrintElement}()},function(Be,St,Ae){var Ee=function(){function Ve(){}return Ve.prototype.init=function(ir){this.target=$$g('<input type="text" class="hitable-editor-text" value="" />'),ir.getTarget().append(this.target),this.target.focus()},Ve.prototype.getValue=function(){return this.target.val()},Ve.prototype.setValue=function(ir){this.target.val(ir)},Ve.prototype.destroy=function(){this.target.remove()},Ve}(),Ce=function(){function Ve(){this.text=new Ee}return Object.defineProperty(Ve,"Instance",{get:function(){return Ve._instance||(Ve._instance=new Ve),Ve._instance},enumerable:!0,configurable:!0}),Ve}(),_e=function(){function Ve(){}return Object.defineProperty(Ve,"Instance",{get:function(){return Ce._instance||(Ve._instance=new Ve),Ve._instance},enumerable:!0,configurable:!0}),Ve.prototype.createEditor=function(ir){return $$g.extend({},Ce.Instance[ir])},Ve}(),Te=Ae(10),Se=Ae(14),xe=Ae(11),Fe=function(){function Ve(){}return Ve.prototype.init=function(ir,Ze){var ar=this;this.tableOptions=Ze,this.title=ir.title,this.field=ir.field,ir.getTarget().unbind("dblclick.hitable").bind("dblclick.hitable",function(){ir.isEditing=!0,ar.beginEdit(ir)})},Ve.prototype.getDisplayHtml=function(){return this.title},Ve.prototype.beginEdit=function(ir){var Ze=this;this.editor=_e.Instance.createEditor("text"),ir.getTarget().html(""),this.editor.init(ir),(this.title||this.field)&&(this.tableOptions.options.isEnableEditField?this.editor.setValue((this.title||"")+"#"+(this.field||"")):this.editor.setValue(this.title||"")),$$g(this.editor.target).keydown(function(ar){ar.keyCode==13&&Ze.endEdit(ir)}),$$g(this.editor.target).blur(function(ar){Ze.endEdit(ir)}),this.tableOptions.editingCell&&this.tableOptions.editingCell.id!=ir.id&&this.tableOptions.editingCell.innerElement.endEdit(this.tableOptions.editingCell),this.tableOptions.editingCell=ir},Ve.prototype.endEdit=function(ir){var Ze=this.editor.getValue();if(Ze)if(this.tableOptions.options.isEnableEditField){var ar=Ze.split("#");ir.title=this.title=ar[0],ar.length>0&&(ir.field=this.field=ar[1])}else ir.title=this.title=Ze;else this.tableOptions.options.isEnableEditField?(ir.title=this.title="",ir.field=this.field=""):ir.title=this.title="";this.editor.destroy(),ir.getTarget().html(this.title)},Ve}(),Ue=function(){return function(Ve){this.title=Ve.title,this.field=Ve.field,this.width=Ve.width,this.align=Ve.align,this.halign=Ve.halign,this.vAlign=Ve.vAlign,this.colspan=Ve.colspan,this.rowspan=Ve.rowspan,this.checked=Ve.checked,this.columnId=Ve.columnId,this.formatter2=Ve.formatter2,this.styler2=Ve.styler2}}(),Re=function(){function Ve(){this.id=xe.a.createId()}return Ve.prototype.init=function(ir,Ze,ar,cr){this.isHead=cr,this.rowId=ar,this.isEditing=!1;var Xe=/^[0-9]*$/;this.target=ir,this.tableOptions=Ze;var or=this.target.attr("colspan");this.colspan=Xe.test(or)?parseInt(or):1;var Oe=this.target.attr("rowspan");this.rowspan=Xe.test(Oe)?parseInt(Oe):1,this.initEvent(),this.isHead&&this.initInnerEelement()},Ve.prototype.beginEdit=function(){if(!this.isEditing&&this.tableOptions.isEnableEdit&&this.tableOptions.onBeforEdit(this)){var ir=this.getValue();this.editor=_e.Instance.createEditor("text"),this.isEditing=!0,this.tableOptions.editingCell=this,this.target.html(""),this.editor.init(this),this.editor.setValue(ir)}},Ve.prototype.endEdit=function(){this.isEditing=!1;var ir=this.editor.getValue();this.editor.destroy(),this.target.html(ir)},Ve.prototype.getTarget=function(){return this.target},Ve.prototype.getValue=function(){return this.target.html()},Ve.prototype.setValue=function(ir){},Ve.prototype.initInnerEelement=function(){this.innerElement=new Fe,this.innerElement.init(this,this.tableOptions)},Ve.prototype.initEvent=function(){},Ve.prototype.isXYinCell=function(ir,Ze){var ar=new Te.b({x:ir,y:Ze,height:0,width:0});return this.isOverlap(ar)},Ve.prototype.getTableRect=function(){return new Te.b({x:this.target.offset().left,y:this.target.offset().top,height:this.target[0].offsetHeight,width:this.target[0].offsetWidth})},Ve.prototype.isOverlap=function(ir){var Ze=this.getTableRect();return ir.x+ir.width>Ze.x&&Ze.x+Ze.width>ir.x&&ir.y+ir.height>Ze.y&&Ze.y+Ze.height>ir.y},Ve.prototype.isInRect=function(ir){var Ze=ir.rect,ar=this.getTableRect();if(Ze.x+Ze.width>ar.x&&ar.x+ar.width>Ze.x&&Ze.y+Ze.height>ar.y&&ar.y+ar.height>Ze.y){var cr=Se.a.mergeRect(Ze,ar);return JSON.stringify(Ze)==JSON.stringify(cr)||(ir.changed=!0,ir.rect=cr,!0)}return!1},Ve.prototype.isSelected=function(){return this.target.hasClass("selected")},Ve.prototype.select=function(){this.target.addClass("selected")},Ve.prototype.isHeader=function(){return!1},Ve.prototype.setAlign=function(ir){this.align=ir,ir?this.target.css("text-align",ir):this.target[0].style.textAlign=""},Ve.prototype.setVAlign=function(ir){this.vAlign=ir,ir?this.target.css("vertical-align",ir):this.target[0].style.verticalAlign=""},Ve.prototype.getEntity=function(){return new Ue(this)},Ve}();Ae.d(St,"a",function(){return ze});var He,$e=(He=function(ir,Ze){return(He=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(ar,cr){ar.__proto__=cr}||function(ar,cr){for(var Xe in cr)cr.hasOwnProperty(Xe)&&(ar[Xe]=cr[Xe])})(ir,Ze)},function(Ve,ir){function Ze(){this.constructor=Ve}He(Ve,ir),Ve.prototype=ir===null?Object.create(ir):(Ze.prototype=ir.prototype,new Ze)}),ze=function(Ve){function ir(Ze){var ar=this;return Ze=Ze||{},(ar=Ve.call(this)||this).width=Ze.width?parseFloat(Ze.width.toString()):100,ar.title=Ze.title,ar.descTitle=Ze.descTitle,ar.field=Ze.field,ar.fixed=Ze.fixed,ar.rowspan=Ze.rowspan?parseInt(Ze.rowspan):1,ar.colspan=Ze.colspan?parseInt(Ze.colspan):1,ar.align=Ze.align,ar.halign=Ze.halign,ar.vAlign=Ze.vAlign,ar.formatter=Ze.formatter,ar.styler=Ze.styler,ar.formatter2=Ze.formatter2,ar.styler2=Ze.styler2,ar.checkbox=Ze.checkbox,ar.checked=Ze.checked!=0,ar.columnId=Ze.columnId||Ze.field,ar}return $e(ir,Ve),ir.prototype.css=function(Ze){},ir}(Re)},function(Be,St,Ae){Ae.d(St,"a",function(){return Ee});var Ee=function(){return function(Ce){this.printLine=Ce.printLine,this.target=Ce.target,this.referenceElement=Ce.referenceElement}}()},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return TableExcelHelper});var _ReconsitutionTableColumns__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(19),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),TableExcelHelper=function(){function TableExcelHelper(){}return TableExcelHelper.createTableHead=function(Be,St){for(var Ae=TableExcelHelper.reconsitutionTableColumnTree(Be),Ee=$$g("<thead></thead>"),Ce=TableExcelHelper.getColumnsWidth(Ae,St),_e=function(xe){var Fe=$$g("<tr></tr>");Ae[xe].forEach(function(Ue){var Re=$$g("<td></td>");Ue.id&&Re.attr("id",Ue.id),Ue.columnId&&Re.attr("column-id",Ue.columnId),(Ue.align||Ue.halign)&&Re.css("text-align",Ue.halign||Ue.align),Ue.vAlign&&Re.css("vertical-align",Ue.vAlign),Ue.colspan>1&&Re.attr("colspan",Ue.colspan),Ue.rowspan>1&&Re.attr("rowspan",Ue.rowspan),Re.html(Ue.title),Ce[Ue.id]?(Ue.hasWidth=!0,Ue.targetWidth=Ce[Ue.id],Re.attr("haswidth","haswidth"),Re.css("width",Ce[Ue.id]+"pt")):Ue.hasWidth=!1,Fe.append(Re)}),Ee.append(Fe)},Te=0;Te<Ae.totalLayer;Te++)_e(Te);return TableExcelHelper.syncTargetWidthToOption(Be),Ee},TableExcelHelper.createTableFooter=function(Be,St,Ae,Ee,Ce,_e){var Te=$$g("<tfoot></tfoot>"),Se=this.getFooterFormatter(Ae,Ee);return Se&&Te.append(Se(Ae,St,Ce,_e)),Te},TableExcelHelper.createTableRow=function(Be,St,Ae,Ee){var Ce=TableExcelHelper.reconsitutionTableColumnTree(Be),_e=$$g("<tbody></tbody>");return St||(St=[]),Ee.groupFields.length?_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_1__.a.groupBy(St,Ee.groupFields,function(Te){var Se={};return Ee.groupFields.forEach(function(xe){return Se[xe]=Te[xe]}),Se}).forEach(function(Te){if(Ee.groupFormatter){var Se=$$g("<tr><td colspan="+Ce.colspan+"></td></tr>");Se.find("td").append(Ee.groupFormatter(Te,Ae)),_e.append(Se)}if(Te.rows.forEach(function(Fe){var Ue=TableExcelHelper.createRowTarget(Ce,Fe,Ae,Ee);_e.append(Ue)}),Ee.groupFooterFormatter){var xe=$$g("<tr><td colspan="+Ce.colspan+"></td></tr>");xe.find("td").append(Ee.groupFooterFormatter(Te,Ae)),_e.append(xe)}}):St.forEach(function(Te){var Se=TableExcelHelper.createRowTarget(Ce,Te,Ae,Ee);_e.append(Se)}),_e},TableExcelHelper.createRowTarget=function(Be,St,Ae,Ee){var Ce=$$g("<tr></tr>");Ce.data("rowData",St),Be.rowColumns.forEach(function(Se,xe){var Fe=$$g("<td></td>");Se.field&&Fe.attr("field",Se.field),Se.align&&Fe.css("text-align",Se.align),Se.vAlign&&Fe.css("vertical-align",Se.vAlign);var Ue=TableExcelHelper.getColumnFormatter(Se),Re=Ue?Ue(St[Se.field],St,xe,Ae):St[Se.field];Fe.html(Re);var He=TableExcelHelper.getColumnStyler(Se);if(He){var $e=He(St[Se.field],St,xe,Ae);$e&&Object.keys($e).forEach(function(ze){Fe.css(ze,$e[ze])})}Ce.append(Fe)});var _e=TableExcelHelper.getRowStyler(Ae,Ee);if(_e){var Te=_e(St,Ae);Te&&Object.keys(Te).forEach(function(Se){Ce.css(Se,Te[Se])})}return Ce},TableExcelHelper.createEmptyRowTarget=function(Be){var St=TableExcelHelper.reconsitutionTableColumnTree(Be),Ae=$$g("<tr></tr>");return St.rowColumns.forEach(function(Ee,Ce){var _e=$$g("<td></td>");Ee.field&&_e.attr("field",Ee.field),Ee.align&&_e.css("text-align",Ee.align),Ee.vAlign&&_e.css("vertical-align",Ee.vAlign),Ae.append(_e)}),Ae},TableExcelHelper.getColumnsWidth=function(Be,St){var Ae={},Ee=TableExcelHelper.allAutoWidth(Be),Ce=TableExcelHelper.allFixedWidth(Be);return Be.rowColumns.forEach(function(_e){if(_e.fixed)Ae[_e.id]=_e.width;else{var Te=St-Ce,Se=_e.width/Ee*(Te>0?Te:0);Ae[_e.id]=Se}}),Ae},TableExcelHelper.resizeTableCellWidth=function(Be,St,Ae){var Ee=TableExcelHelper.reconsitutionTableColumnTree(St),Ce=TableExcelHelper.getColumnsWidth(Ee,Ae);Be.find("thead tr td[haswidth]").map(function(_e,Te){var Se=$$g(Te).attr("id"),xe=Ce[Se];$$g(Te).css("width",xe+"pt")})},TableExcelHelper.allAutoWidth=function(Be){var St=0;return Be.rowColumns.forEach(function(Ae){St+=Ae.fixed?0:Ae.width}),St},TableExcelHelper.allFixedWidth=function(Be){var St=0;return Be.rowColumns.forEach(function(Ae){St+=Ae.fixed?Ae.width:0}),St},TableExcelHelper.reconsitutionTableColumnTree=function(Be,St,Ae){var Ee=St||new _ReconsitutionTableColumns__WEBPACK_IMPORTED_MODULE_0__.a;Ee.colspan=0;for(var Ce=function(Se){Ee.totalLayer=Se+1,Ee[Se]=Be[Se].columns,Se==0&&Be[Se].columns.forEach(function(xe){Se==0&&(Ee.colspan+=xe.colspan)})},_e=0;_e<Be.length;_e++)Ce(_e);return Ee.rowColumns=TableExcelHelper.getOrderdColumns(Ee),Ee},TableExcelHelper.syncTargetWidthToOption=function(Be){Be.forEach(function(St){St.columns.forEach(function(Ae){Ae.hasWidth&&(Ae.width=Ae.targetWidth)})})},TableExcelHelper.getFooterFormatter=function(options,tablePrintElementType){var footerFormatter=void 0;if(tablePrintElementType.footerFormatter&&(footerFormatter=tablePrintElementType.footerFormatter),options.footerFormatter)try{var s="footerFormatter="+options.footerFormatter;eval(s)}catch(Be){console.log(Be)}return footerFormatter},TableExcelHelper.getRowStyler=function(options,tablePrintElementType){var rowStyler=void 0;if(tablePrintElementType.rowStyler&&(rowStyler=tablePrintElementType.rowStyler),options.rowStyler)try{var s="rowStyler="+options.rowStyler;eval(s)}catch(Be){console.log(Be)}return rowStyler},TableExcelHelper.getColumnStyler=function(column){var styler=void 0;if(column.styler&&(styler=column.styler),column.styler2)try{var s="styler="+column.styler2;eval(s)}catch(Be){console.log(Be)}return styler},TableExcelHelper.getColumnFormatter=function(column){var formatter=void 0;if(column.formatter&&(formatter=column.formatter),column.formatter2)try{var s="formatter="+column.formatter2;eval(s)}catch(Be){console.log(Be)}return formatter},TableExcelHelper.getOrderdColumns=function(Be){for(var St={},Ae=function(_e){Be[_e].forEach(function(Te){for(var Se=0;Se<Te.rowspan;Se++)St[_e+Se]=St[_e+Se]?St[_e+Se]:[],St[_e+Se].push(Te)})},Ee=0;Ee<Be.totalLayer;Ee++)Ae(Ee);return St[Be.totalLayer-1]},TableExcelHelper}()},function(Be,St,Ae){Ae.d(St,"a",function(){return Ee});var Ee=function(){function Ce(_e){this.top=_e.top,this.left=_e.left,this.height=_e.height,this.width=_e.width,this.bottomInLastPaper=_e.bottomInLastPaper,this.beginPrintPaperIndex=_e.beginPrintPaperIndex,this.printTopInPaper=_e.printTopInPaper,this.endPrintPaperIndex=_e.endPrintPaperIndex}return Ce.prototype.isPositionLeftOrRight=function(_e){return this.top<=_e&&this.top+this.height>_e},Ce}()},function(Be,St,Ae){var Ee=function(){function We(){this.name="lineHeight"}return We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("line-height",Wr+"pt"),"line-height:"+Wr+"pt";ke[0].style.lineHeight=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
字体行高
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="6" >6pt</option>
<option value="6.75" >6.75pt</option>
<option value="7.5" >7.5pt</option>
<option value="8.25" >8.25pt</option>
<option value="9" >9pt</option>
<option value="9.75" >9.75pt</option>
<option value="10.5" >10.5pt</option>
<option value="11.25" >11.25pt</option>
<option value="12" >12pt</option>
<option value="12.75" >12.75pt</option>
<option value="13.5" >13pt</option>
<option value="14.25" >14.25pt</option>
<option value="15" >15pt</option>
<option value="15.75" >15.75pt</option>
<option value="16.5" >16.5pt</option>
<option value="17.25" >17.25pt</option>
<option value="18" >18pt</option>
<option value="18.75" >18.75pt</option>
<option value="19.5" >19.5pt</option>
<option value="20.25" >20.25pt</option>
<option value="21" >21pt</option>
<option value="21.75" >21.75pt</option>
<option value="22.5" >22.5pt</option>
<option value="23.25" >23.25pt</option>
<option value="24" >24pt</option>
<option value="24.75" >24.75pt</option>
<option value="25.5" >25.5pt</option>
<option value="26.25" >26.25pt</option>
<option value="27" >27pt</option>
<option value="27.75" >27.75pt</option>
<option value="28.5" >28.5pt</option>
<option value="29.25" >29.25pt</option>
<option value="30" >30pt</option>
<option value="30.75" >30.75pt</option>
<option value="31.5" >31.5pt</option>
<option value="32.25" >32.25pt</option>
<option value="33" >33pt</option>
<option value="33.75" >33.75pt</option>
<option value="34.5" >34.5pt</option>
<option value="35.25" >35.25pt</option>
<option value="36" >36pt</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Ce=function(){function We(){this.name="fontFamily"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
字体
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="SimSun" >宋体</option>
<option value="Microsoft YaHei" >微软雅黑</option>
</select>
</div>
</div>`),this.target},We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("font-family",Wr),"font-family:"+Wr;ke[0].style.fontFamily=""}return null},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),_e=function(){function We(){this.name="fontSize"}return We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("font-size",Wr+"pt"),"font-size:"+Wr+"pt";ke[0].style.fontSize=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
字体大小
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="6" >6pt</option>
<option value="6.75" >6.75pt</option>
<option value="7.5" >7.5pt</option>
<option value="8.25" >8.25pt</option>
<option value="9" >9pt</option>
<option value="9.75" >9.75pt</option>
<option value="10.5" >10.5pt</option>
<option value="11.25" >11.25pt</option>
<option value="12" >12pt</option>
<option value="12.75" >12.75pt</option>
<option value="13.5" >13.5pt</option>
<option value="14.25" >14.25pt</option>
<option value="15" >15pt</option>
<option value="15.75" >15.75pt</option>
<option value="16.5" >16.5pt</option>
<option value="17.25" >17.25pt</option>
<option value="18" >18pt</option>
<option value="18.75" >18.75pt</option>
<option value="19.5" >19.5pt</option>
<option value="20.25" >20.25pt</option>
<option value="21" >21pt</option>
<option value="21.75" >21.75pt</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Te=function(){function We(){this.name="fontWeight"}return We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("font-weight",Wr),"font-weight:"+Wr;ke[0].style.fontWeight=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
字体粗细
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="lighter" >更细</option>
<option value="bold" >粗体</option>
<option value="bolder" >粗体+</option>
<option value="100" >100</option>
<option value="200" >200</option>
<option value="300" >300</option>
<option value="400" >400</option>
<option value="500" >500</option>
<option value="600" >600</option>
<option value="700" >700</option>
<option value="800" >800</option>
<option value="900" >900</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Se=function(){function We(){this.name="letterSpacing"}return We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("letter-spacing",Wr+"pt"),"letter-spacing:"+Wr+"pt";ke[0].style.letterSpacing=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
字间距
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="0.75" >0.75pt</option>
<option value="1.5" >1.5pt</option>
<option value="2.25" >2.25pt</option>
<option value="3" >3pt</option>
<option value="3.75" >3.75pt</option>
<option value="4.5" >4.5pt</option>
<option value="5.25" >5.25pt</option>
<option value="6" >6pt</option>
<option value="6.75" >6.75pt</option>
<option value="7.5" >7.5pt</option>
<option value="8.25" >8.25pt</option>
<option value="9" >9pt</option>
<option value="9.75" >9.75pt</option>
<option value="10.5" >10.5pt</option>
<option value="11.25" >11.25pt</option>
<option value="12" >12pt</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),xe=function(){function We(){this.name="textAlign"}return We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("text-align",Wr),Wr=="justify"?(ke.css("text-align-last","justify"),ke.css("text-justify","distribute-all-lines")):(ke[0].style.textAlignLast="",ke[0].style.textJustify=""),"text-align:"+Wr;ke[0].style.textAlign="",ke[0].style.textAlignLast="",ke[0].style.textJustify=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
左右对齐
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="" >居左</option>
<option value="center" >居中</option>
<option value="right" >居右</option>
<option value="justify" >两端对齐</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Fe=function(){function We(){this.name="hideTitle"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
标题显示隐藏
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="false" >显示</option>
<option value="true" >隐藏</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){if(this.target.find("select").val()=="true")return!0},We.prototype.setValue=function(ke){this.target.find("select").val((ke??"").toString())},We.prototype.destroy=function(){this.target.remove()},We}(),Ue=function(){function We(){this.name="tableBorder"}return We.prototype.css=function(ke,Wr){if(ke.find("table").length){if(Wr=="border")return ke.find("table").css("border","1px solid"),"border:1px solid";Wr=="noBorder"?ke.find("table").css("border","0px solid"):ke.find("table")[0].style.border=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
表格边框
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="border" >有边框</option>
<option value="noBorder" >无边框</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Re=function(){function We(){this.name="tableHeaderBorder"}return We.prototype.css=function(ke,Wr){if(ke.find("thead tr").length){if(Wr=="border")return ke.find("thead tr").css("border","1px solid"),"border:1pt solid";Wr=="noBorder"?ke.find("thead tr").css("border","0px solid"):Wr=="topBorder"?(ke.find("thead tr").css("border","0px solid"),ke.find("thead tr").css("border-top","1px solid")):Wr=="bottomBorder"?(ke.find("thead tr").css("border","0px solid"),ke.find("thead tr").css("border-bottom","1px solid")):Wr=="topBottomBorder"?(ke.find("thead tr").css("border","0px solid"),ke.find("thead tr").css("border-top","1px solid"),ke.find("thead tr").css("border-bottom","1px solid")):ke.find("thead tr").map(function(Bn,Jn){Jn.style.border=""})}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
表头边框
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="border" >有边框</option>
<option value="noBorder" >无边框</option>
<option value="topBorder" >上边框</option>
<option value="bottomBorder" >下边框</option>
<option value="topBottomBorder" >上下边框</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),He=function(){function We(){this.name="tableHeaderCellBorder"}return We.prototype.css=function(ke,Wr){if(ke.find("thead tr td").length){if(Wr=="border")return ke.find("thead tr td").css("border","1px solid"),"border:1px solid";Wr=="noBorder"?ke.find("thead tr td").css("border","0px solid"):ke.find("thead tr td").map(function(Bn,Jn){Jn.style.border=""})}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
表头单元格边框
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="border" >有边框</option>
<option value="noBorder" >无边框</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),$e=function(){function We(){this.name="tableHeaderRowHeight"}return We.prototype.css=function(ke,Wr){if(ke.find("thead tr td").length){if(Wr)return ke.find("thead tr td:not([rowspan])").css("height",Wr+"pt"),"height:"+Wr+"pt";ke.find("thead tr td").map(function(Bn,Jn){Jn.style.height=""})}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
表头行高
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="6" >6pt</option>
<option value="6.75" >6.75pt</option>
<option value="7.5" >7.5pt</option>
<option value="8.25" >8.25pt</option>
<option value="9" >9pt</option>
<option value="9.75" >9.75pt</option>
<option value="10.5" >10.5pt</option>
<option value="11.25" >11.25pt</option>
<option value="12" >12pt</option>
<option value="12.75" >12.75pt</option>
<option value="13.5" >13.5pt</option>
<option value="14.25" >14.25pt</option>
<option value="15" >15pt</option>
<option value="15.75" >15.75pt</option>
<option value="16.5" >16.5pt</option>
<option value="17.25" >17.25pt</option>
<option value="18" >18pt</option>
<option value="18.75" >18.75pt</option>
<option value="19.5" >19.5pt</option>
<option value="20.25" >20.25pt</option>
<option value="21" >21pt</option>
<option value="21.75" >21.75pt</option>
<option value="22.5" >22.5pt</option>
<option value="23.25" >23.25pt</option>
<option value="24" >24pt</option>
<option value="24.75" >24.75pt</option>
<option value="25.5" >25.5pt</option>
<option value="26.25" >26.25pt</option>
<option value="27" >27pt</option>
<option value="27.75" >27.75pt</option>
<option value="28.5" >28.5pt</option>
<option value="29.25" >29.25pt</option>
<option value="30" >30pt</option>
<option value="30.75" >30.75pt</option>
<option value="31.5" >31.5pt</option>
<option value="32.25" >32.25pt</option>
<option value="33" >33pt</option>
<option value="33.75" >33.75pt</option>
<option value="34.5" >34.5pt</option>
<option value="35.25" >35.25pt</option>
<option value="36" >36pt</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),ze=function(){function We(){this.name="tableHeaderFontSize"}return We.prototype.css=function(ke,Wr){if(ke.find("thead").length){if(Wr)return ke.find("thead").css("font-size",Wr+"pt"),"font-size:"+Wr+"pt";ke.find("thead").map(function(Bn,Jn){Jn.style.fontSize=""})}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
表头字体大小
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="6" >6pt</option>
<option value="6.75" >6.75pt</option>
<option value="7.5" >7.5pt</option>
<option value="8.25" >8.25pt</option>
<option value="9" >9pt</option>
<option value="9.75" >9.75pt</option>
<option value="10.5" >10.5pt</option>
<option value="11.25" >11.25pt</option>
<option value="12" >12pt</option>
<option value="12.75" >12.75pt</option>
<option value="13.5" >13.5pt</option>
<option value="14.25" >14.25pt</option>
<option value="15" >15pt</option>
<option value="15.75" >15.75pt</option>
<option value="16.5" >16.5pt</option>
<option value="17.25" >17.25pt</option>
<option value="18" >18pt</option>
<option value="18.75" >18.75pt</option>
<option value="19.5" >19.5pt</option>
<option value="20.25" >20.25pt</option>
<option value="21" >21pt</option>
<option value="21.75" >21.75pt</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Ve=function(){function We(){this.name="tableHeaderFontWeight"}return We.prototype.css=function(ke,Wr){if(ke.find("thead").length){if(Wr)return ke.find("thead tr td").css("font-weight",Wr),"font-weight:"+Wr;ke.find("thead tr td").map(function(Bn,Jn){Jn.style.fontWeight=""})}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
表头字体粗细
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="lighter" >更细</option>
<option value="bold" >粗体</option>
<option value="bolder" >粗体+</option>
<option value="100" >100</option>
<option value="200" >200</option>
<option value="300" >300</option>
<option value="400" >400</option>
<option value="500" >500</option>
<option value="600" >600</option>
<option value="700" >700</option>
<option value="800" >800</option>
<option value="900" >900</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),ir=function(){function We(){this.name="tableBodyCellBorder"}return We.prototype.css=function(ke,Wr){if(ke.find("tbody tr td").length){if(Wr=="border")return ke.find("tbody tr td").css("border","1px solid"),"border:1px solid";Wr=="noBorder"?ke.find("tbody tr td").css("border","0px solid"):ke.find("tbody tr td").map(function(Bn,Jn){Jn.style.border=""})}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
表体单元格
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="border" >有边框</option>
<option value="noBorder" >无边框</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Ze=function(){function We(){this.name="tableBodyRowHeight"}return We.prototype.css=function(ke,Wr){if(ke.find("tbody tr td").length){if(Wr)return ke.find("tbody tr td:not([rowspan])").css("height",Wr+"pt"),"height:"+Wr+"pt";ke.find("tbody tr td").map(function(Bn,Jn){Jn.style.height=""})}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
表体行高
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="6" >6pt</option>
<option value="6.75" >6.75pt</option>
<option value="7.5" >7.5pt</option>
<option value="8.25" >8.25pt</option>
<option value="9" >9pt</option>
<option value="9.75" >9.75pt</option>
<option value="10.5" >10.5pt</option>
<option value="11.25" >11.25pt</option>
<option value="12" >12pt</option>
<option value="12.75" >12.75pt</option>
<option value="13.5" >13.5pt</option>
<option value="14.25" >14.25pt</option>
<option value="15" >15pt</option>
<option value="15.75" >15.75pt</option>
<option value="16.5" >16.5pt</option>
<option value="17.25" >17.25pt</option>
<option value="18" >18pt</option>
<option value="18.75" >18.75pt</option>
<option value="19.5" >19.5pt</option>
<option value="20.25" >20.25pt</option>
<option value="21" >21pt</option>
<option value="21.75" >21.75pt</option>
<option value="22.5" >22.5pt</option>
<option value="23.25" >23.25pt</option>
<option value="24" >24pt</option>
<option value="24.75" >24.75pt</option>
<option value="25.5" >25.5pt</option>
<option value="26.25" >26.25pt</option>
<option value="27" >27pt</option>
<option value="27.75" >27.75pt</option>
<option value="28.5" >28.5pt</option>
<option value="29.25" >29.25pt</option>
<option value="30" >30pt</option>
<option value="30.75" >30.75pt</option>
<option value="31.5" >31.5pt</option>
<option value="32.25" >32.25pt</option>
<option value="33" >33pt</option>
<option value="33.75" >33.75pt</option>
<option value="34.5" >34.5pt</option>
<option value="35.25" >35.25pt</option>
<option value="36" >36pt</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),ar=function(){function We(){this.name="tableHeaderBackground"}return We.prototype.css=function(ke,Wr){if(ke.find("thead").length){if(Wr)return ke.find("thead").css("background",Wr),"background:"+Wr;ke.find("thead").map(function(Bn,Jn){Jn.style.background=""})}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
表头背景
</div>
<div class="hiprint-option-item-field">
<input type="text" class="auto-submit" />
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("input").minicolors({defaultValue:ke||"",theme:"bootstrap"}),this.target.find("input").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),cr=function(){function We(){this.name="borderWidth"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
边框大小
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="0.75" >0.75pt</option>
<option value="1.5" >1.5pt</option>
<option value="2.25" >2.25pt</option>
<option value="3" >3pt</option>
<option value="3.75" >3.75pt</option>
<option value="4.5" >4.5pt</option>
<option value="5.25" >5.25pt</option>
<option value="6" >6pt</option>
<option value="6.75" >6.75pt</option>
</select>
</div>
</div>`),this.target},We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("border-width",Wr+"pt"),"border-width:"+Wr+"pt";ke[0].style.borderWidth=""}return null},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Xe=function(){function We(){this.name="barcodeMode"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
条形码格式
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="CODE128A" >CODE128A</option>
<option value="CODE128B" >CODE128B</option>
<option value="CODE128C" >CODE128C</option>
<option value="CODE39" >CODE39</option>
<option value="EAN-13" >EAN-13</option>
<option value="EAN-8" >EAN-8</option>
<option value="EAN-5" >EAN-5</option>
<option value="EAN-2" >EAN-2</option>
<option value="UPC(A)" >UPC(A)</option>
<option value="ITF" >ITF</option>
<option value="ITF-14" >ITF-14</option>
<option value="MSI" >MSI</option>
<option value="MSI10" >MSI10</option>
<option value="MSI11" >MSI11</option>
<option value="MSI1010" >MSI1010</option>
<option value="MSI1110" >MSI1110</option>
<option value="Pharmacode" >Pharmacode</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();return ke||void 0},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),or=function(){function We(){this.name="color"}return We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("color",Wr),"color:"+Wr;ke[0].style.color=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
字体颜色
</div>
<div class="hiprint-option-item-field">
<input type="text" class="auto-submit"/>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("input").minicolors({defaultValue:ke||"",theme:"bootstrap"}),this.target.find("input").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Oe=function(){function We(){this.name="textDecoration"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
文本修饰
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="underline" >下划线。</option>
<option value="overline" >上划线</option>
<option value="line-through" >穿梭线</option>
</select>
</div>
</div>`),this.target},We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("text-decoration",Wr),"text-decoration:"+Wr;ke[0].style.textDecoration=""}return null},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Je=function(){function We(){this.name="field"}return We.prototype.createTarget=function(ke){var Wr=void 0;if(ke&&(Wr=ke.getFields()),Wr){this.isSelect=!0;var Bn=` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
字段名
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >请选择字段</option>`;Wr.forEach(function(Jn,pi){Bn+=' <option value="'+(Jn.field||"")+'" >'+(Jn.text||"")+"</option>"}),Bn+=` </select>
</div>
</div>`,this.target=$$g(Bn)}else this.isSelect=!1,this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
字段名
</div>
<div class="hiprint-option-item-field">
<input type="text" placeholder="请输入字段名" class="auto-submit">
</div>
</div>`);return this.target},We.prototype.getValue=function(){return(this.isSelect?this.target.find("select").val():this.target.find("input").val())||void 0},We.prototype.setValue=function(ke){this.isSelect?ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>"),this.target.find("select").val(ke)):this.target.find("input").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Ye=function(){function We(){this.name="title"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
标题
</div>
<div class="hiprint-option-item-field">
<textarea style="height:50px;" placeholder="请输入标题" class="auto-submit"></textarea>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("textarea").val();if(ke)return ke},We.prototype.setValue=function(ke){this.target.find("textarea").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),rr=function(){function We(){this.name="testData"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
测试数据
</div>
<div class="hiprint-option-item-field">
<input type="text" placeholder="仅字段名称存在时有效" class="auto-submit" >
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("input").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),vr=function(){function We(){this.name="src"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
图片地址
</div>
<div class="hiprint-option-item-field">
<input type="text" placeholder="请输入图片地址" class="auto-submit">
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("input").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),er=function(){function We(){this.name="borderColor"}return We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("border-color",Wr),"border-color:"+Wr;ke[0].style.borderColor=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
边框颜色
</div>
<div class="hiprint-option-item-field">
<input type="text" class="auto-submit" />
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("input").minicolors({defaultValue:ke||"",theme:"bootstrap"}),this.target.find("input").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Ar=function(){function We(){this.name="paperNumberFormat"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
页码格式
</div>
<div class="hiprint-option-item-field">
<input type="text" placeholder="paperNo-paperCount" class="auto-submit">
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("input").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),gr=function(){function We(){this.name="paperNumberDisabled"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
启用/禁用
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="false" >启用</option>
<option value="true" >禁用</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){if(this.target.find("select").val()=="true")return!0},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),mr=function(){function We(){this.name="longTextIndent"}return We.prototype.css=function(ke,Wr){return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
每行缩进
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="6" >6pt</option>
<option value="6.75" >6.75pt</option>
<option value="7.5" >7.5pt</option>
<option value="8.25" >8.25pt</option>
<option value="9" >9pt</option>
<option value="9.75" >9.75pt</option>
<option value="10.5" >10.5pt</option>
<option value="11.25" >11.25pt</option>
<option value="12" >12pt</option>
<option value="12.75" >12.75pt</option>
<option value="13.5" >13pt</option>
<option value="14.25" >14.25pt</option>
<option value="15" >15pt</option>
<option value="15.75" >15.75pt</option>
<option value="16.5" >16.5pt</option>
<option value="17.25" >17.25pt</option>
<option value="18" >18pt</option>
<option value="18.75" >18.75pt</option>
<option value="19.5" >19.5pt</option>
<option value="20.25" >20.25pt</option>
<option value="21" >21pt</option>
<option value="21.75" >21.75pt</option>
<option value="22.5" >22.5pt</option>
<option value="23.25" >23.25pt</option>
<option value="24" >24pt</option>
<option value="24.75" >24.75pt</option>
<option value="25.5" >25.5pt</option>
<option value="26.25" >26.25pt</option>
<option value="27" >27pt</option>
<option value="27.75" >27.75pt</option>
<option value="28.5" >28.5pt</option>
<option value="29.25" >29.25pt</option>
<option value="30" >30pt</option>
<option value="30.75" >30.75pt</option>
<option value="31.5" >31.5pt</option>
<option value="32.25" >32.25pt</option>
<option value="33" >33pt</option>
<option value="33.75" >33.75pt</option>
<option value="34.5" >34.5pt</option>
<option value="35.25" >35.25pt</option>
<option value="36" >36pt</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Ur=function(){function We(){this.name="showInPage"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
显示规则
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="first" >首页</option>
<option value="odd" >奇数页</option>
<option value="even" >偶数页</option>
<option value="last" >尾页</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Lr=function(){function We(){this.name="panelPaperRule"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
打印规则
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="odd" >保持奇数</option>
<option value="even" >保持偶数</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Mr=function(){function We(){this.name="leftSpaceRemoved"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
移除段落左侧空白
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="true" >移除</option>
<option value="false" >不移除</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){if(this.target.find("select").val()=="false")return!1},We.prototype.setValue=function(ke){this.target.find("select").val((ke??"").toString())},We.prototype.destroy=function(){this.target.remove()},We}(),Qr=function(){function We(){this.name="firstPaperFooter"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
首页页尾
</div>
<div class="hiprint-option-item-field">
<input type="text" placeholder="首页页尾" class="auto-submit">
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){this.target.find("input").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Dr=function(){function We(){this.name="lastPaperFooter"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
尾页页尾
</div>
<div class="hiprint-option-item-field">
<input type="text" placeholder="尾页页尾" class="auto-submit">
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){this.target.find("input").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Xr=function(){function We(){this.name="evenPaperFooter"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
偶数页页尾
</div>
<div class="hiprint-option-item-field">
<input type="text" placeholder="偶数页页尾" class="auto-submit">
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){this.target.find("input").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),sn=function(){function We(){this.name="oddPaperFooter"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
奇数页页尾
</div>
<div class="hiprint-option-item-field">
<input type="text" placeholder="奇数页页尾" class="auto-submit" >
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){this.target.find("input").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),ur=function(){function We(){this.name="fixed"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
位置固定
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="false" >否</option>
<option value="true" >是</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){if(this.target.find("select").val()=="true")return!0},We.prototype.setValue=function(ke){this.target.find("select").val((ke??"").toString())},We.prototype.destroy=function(){this.target.remove()},We}(),_r=function(){function We(){this.name="axis"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
拖动方向
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="v" >横向</option>
<option value="h" >竖向</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();return ke||void 0},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Fr=function(){function We(){this.name="leftOffset"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
左偏移
</div>
<div class="hiprint-option-item-field">
<input type="text" placeholder="偏移量pt" class="auto-submit" >
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){this.target.find("input").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Pr=function(){function We(){this.name="lHeight"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
最低高度
</div>
<div class="hiprint-option-item-field">
<input type="text" placeholder="文本过短或为空时的高度" class="auto-submit">
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){this.target.find("input").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),kr=function(){function We(){this.name="unShowInPage"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
隐藏规则
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="first" >首页</option>
<option value="last" >尾页</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Vr=function(){function We(){this.name="tableBodyRowBorder"}return We.prototype.css=function(ke,Wr){if(ke.find("tbody tr").length){if(Wr=="border")return ke.find("tbody tr").css("border","1px solid"),"border:1pt solid";Wr=="noBorder"?ke.find("tbody tr").css("border","0px solid"):Wr=="topBorder"?(ke.find("tbody tr").css("border","0px solid"),ke.find("tbody tr").css("border-top","1px solid")):Wr=="bottomBorder"?(ke.find("tbody tr").css("border","0px solid"),ke.find("tbody tr").css("border-bottom","1px solid")):Wr=="topBottomBorder"?(ke.find("tbody tr").css("border","0px solid"),ke.find("tbody tr").css("border-top","1px solid"),ke.find("tbody tr").css("border-bottom","1px solid")):ke.find("tbody tr").map(function(Bn,Jn){Jn.style.border=""})}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
表体行边框
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="border" >有边框</option>
<option value="noBorder" >无边框</option>
<option value="topBorder" >上边框</option>
<option value="bottomBorder" >下边框</option>
<option value="topBottomBorder" >上下边框</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),nn=function(){function We(){this.name="transform"}return We.prototype.css=function(ke,Wr){if(ke&&ke.length){var Bn=ke.find(".hiprint-printElement-content");if(Wr)return Bn.css("transform","rotate("+Wr+"deg)"),Bn.css("-ms-transform","rotate("+Wr+"deg)"),Bn.css("-moz-transform","rotate("+Wr+"deg)"),Bn.css("-webkit-transform","rotate("+Wr+"deg)"),Bn.css("-o-transform","rotate("+Wr+"deg)"),"transform:rotate("+Wr+"deg)";Bn.length&&(Bn[0].style.transform="")}return null},We.prototype.createTarget=function(){return this.target=$$g(`<div class="hiprint-option-item">
<div class="hiprint-option-item-label">
旋转角度
</div>
<div class="hiprint-option-item-field">
<input type="text" class="auto-submit"/>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){this.target.find("input").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Jr=function(){function We(){this.name="optionsGroup"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
边框设置
</div>
</div>`),this.target},We.prototype.getValue=function(){},We.prototype.setValue=function(ke){},We.prototype.destroy=function(){this.target.remove()},We}(),wn=function(){function We(){this.name="borderTop"}return We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("border-top-style",Wr),"border-top:1px";ke[0].style.borderTopStyle="",ke[0].style.borderTopWidth=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
上边框
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >否</option>
<option value="solid" >实线</option>
<option value="dotted" >虚线</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Cn=function(){function We(){this.name="borderLeft"}return We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("border-left-style",Wr),"border-left:1px";ke[0].style.borderLeftStyle="",ke[0].style.borderLeftWidth=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
左边框
</div>
<div class="hiprint-option-item-field">
<select>
<option value="" >否</option>
<option value="solid" >实线</option>
<option value="dotted" >虚线</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),On=function(){function We(){this.name="borderRight"}return We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("border-right-style",Wr),"border-right:1px";ke[0].style.borderRightStyle="",ke[0].style.borderRightWidth=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
右边框
</div>
<div class="hiprint-option-item-field">
<select>
<option value="" >否</option>
<option value="solid" >实线</option>
<option value="dotted" >虚线</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),In=function(){function We(){this.name="borderBottom"}return We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("border-bottom-style",Wr),"border-bottom-style:1px solid";ke[0].style.borderBottomStyle="",ke[0].style.borderBottomWidth=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
下边框
</div>
<div class="hiprint-option-item-field">
<select>
<option value="" >否</option>
<option value="solid" >实线</option>
<option value="dotted" >虚线</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Xn=function(){function We(){this.name="contentPaddingLeft"}return We.prototype.css=function(ke,Wr){var Bn=ke.find(".hiprint-printElement-content");if(Bn&&Bn.length){if(Wr)return Bn.css("padding-left",Wr+"pt"),"padding-left";Bn[0].style.paddingLeft=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
左内边距
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="0.75" >0.75pt</option>
<option value="1.5" >1.5pt</option>
<option value="2.25" >2.25pt</option>
<option value="3" >3pt</option>
<option value="3.75" >3.75pt</option>
<option value="4.5" >4.5pt</option>
<option value="5.25" >5.25pt</option>
<option value="6" >6pt</option>
<option value="6.75" >6.75pt</option>
<option value="7.5" >7.5pt</option>
<option value="8.25" >8.25pt</option>
<option value="9" >9pt</option>
<option value="9.75" >9.75pt</option>
<option value="10.5" >10.5pt</option>
<option value="11.25" >11.25pt</option>
<option value="12" >12pt</option>
<option value="12.75" >12.75pt</option>
<option value="13.5" >13.5pt</option>
<option value="14.25" >14.25pt</option>
<option value="15" >15pt</option>
<option value="15.75" >15.75pt</option>
<option value="16.5" >16.5pt</option>
<option value="17.25" >17.25pt</option>
<option value="18" >18pt</option>
<option value="18.75" >18.75pt</option>
<option value="19.5" >19.5pt</option>
<option value="20.25" >20.25pt</option>
<option value="21" >21pt</option>
<option value="21.75" >21.75pt</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),fn=function(){function We(){this.name="contentPaddingTop"}return We.prototype.css=function(ke,Wr){var Bn=ke.find(".hiprint-printElement-content");if(Bn&&Bn.length){if(Wr)return Bn.css("padding-top",Wr+"pt"),"padding-top";Bn[0].style.paddingTop=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
上内边距
</div>
<div class="hiprint-option-item-field">
<select>
<option value="" >默认</option>
<option value="0.75" >0.75pt</option>
<option value="1.5" >1.5pt</option>
<option value="2.25" >2.25pt</option>
<option value="3" >3pt</option>
<option value="3.75" >3.75pt</option>
<option value="4.5" >4.5pt</option>
<option value="5.25" >5.25pt</option>
<option value="6" >6pt</option>
<option value="6.75" >6.75pt</option>
<option value="7.5" >7.5pt</option>
<option value="8.25" >8.25pt</option>
<option value="9" >9pt</option>
<option value="9.75" >9.75pt</option>
<option value="10.5" >10.5pt</option>
<option value="11.25" >11.25pt</option>
<option value="12" >12pt</option>
<option value="12.75" >12.75pt</option>
<option value="13.5" >13.5pt</option>
<option value="14.25" >14.25pt</option>
<option value="15" >15pt</option>
<option value="15.75" >15.75pt</option>
<option value="16.5" >16.5pt</option>
<option value="17.25" >17.25pt</option>
<option value="18" >18pt</option>
<option value="18.75" >18.75pt</option>
<option value="19.5" >19.5pt</option>
<option value="20.25" >20.25pt</option>
<option value="21" >21pt</option>
<option value="21.75" >21.75pt</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Sr=function(){function We(){this.name="contentPaddingRight"}return We.prototype.css=function(ke,Wr){var Bn=ke.find(".hiprint-printElement-content");if(Bn&&Bn.length){if(Wr)return Bn.css("padding-right",Wr+"pt"),"padding-right";Bn[0].style.paddingRight=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
右内边距
</div>
<div class="hiprint-option-item-field">
<select>
<option value="" >默认</option>
<option value="0.75" >0.75pt</option>
<option value="1.5" >1.5pt</option>
<option value="2.25" >2.25pt</option>
<option value="3" >3pt</option>
<option value="3.75" >3.75pt</option>
<option value="4.5" >4.5pt</option>
<option value="5.25" >5.25pt</option>
<option value="6" >6pt</option>
<option value="6.75" >6.75pt</option>
<option value="7.5" >7.5pt</option>
<option value="8.25" >8.25pt</option>
<option value="9" >9pt</option>
<option value="9.75" >9.75pt</option>
<option value="10.5" >10.5pt</option>
<option value="11.25" >11.25pt</option>
<option value="12" >12pt</option>
<option value="12.75" >12.75pt</option>
<option value="13.5" >13.5pt</option>
<option value="14.25" >14.25pt</option>
<option value="15" >15pt</option>
<option value="15.75" >15.75pt</option>
<option value="16.5" >16.5pt</option>
<option value="17.25" >17.25pt</option>
<option value="18" >18pt</option>
<option value="18.75" >18.75pt</option>
<option value="19.5" >19.5pt</option>
<option value="20.25" >20.25pt</option>
<option value="21" >21pt</option>
<option value="21.75" >21.75pt</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),ti=function(){function We(){this.name="contentPaddingBottom"}return We.prototype.css=function(ke,Wr){var Bn=ke.find(".hiprint-printElement-content");if(Bn&&Bn.length){if(Wr)return Bn.css("padding-bottom",Wr+"pt"),"padding-bottom";Bn[0].style.paddingBottom=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
下内边距
</div>
<div class="hiprint-option-item-field">
<select>
<option value="" >默认</option>
<option value="0.75" >0.75pt</option>
<option value="1.5" >1.5pt</option>
<option value="2.25" >2.25pt</option>
<option value="3" >3pt</option>
<option value="3.75" >3.75pt</option>
<option value="4.5" >4.5pt</option>
<option value="5.25" >5.25pt</option>
<option value="6" >6pt</option>
<option value="6.75" >6.75pt</option>
<option value="7.5" >7.5pt</option>
<option value="8.25" >8.25pt</option>
<option value="9" >9pt</option>
<option value="9.75" >9.75pt</option>
<option value="10.5" >10.5pt</option>
<option value="11.25" >11.25pt</option>
<option value="12" >12pt</option>
<option value="12.75" >12.75pt</option>
<option value="13.5" >13.5pt</option>
<option value="14.25" >14.25pt</option>
<option value="15" >15pt</option>
<option value="15.75" >15.75pt</option>
<option value="16.5" >16.5pt</option>
<option value="17.25" >17.25pt</option>
<option value="18" >18pt</option>
<option value="18.75" >18.75pt</option>
<option value="19.5" >19.5pt</option>
<option value="20.25" >20.25pt</option>
<option value="21" >21pt</option>
<option value="21.75" >21.75pt</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Yn=function(){function We(){this.name="borderStyle"}return We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("border-style",Wr),"border-style:1px";ke[0].style.borderStyle=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
边框样式
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="solid" >实线</option>
<option value="dotted" >虚线</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Tn=function(){function We(){this.name="backgroundColor"}return We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("background-color",Wr),"background-color:"+Wr;ke[0].style.backgroundColor=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
背景颜色
</div>
<div class="hiprint-option-item-field">
<input type="text" class="auto-submit"/>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("input").minicolors({defaultValue:ke||"",theme:"bootstrap"}),this.target.find("input").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Nn=function(){function We(){this.name="orient"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
纸张方向(仅自定义纸质有效)
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="1" >纵向</option>
<option value="2" >横向</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Rn=function(){function We(){this.name="textContentVerticalAlign"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
上下对齐
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="middle" >垂直居中</option>
<option value="bottom" >底部</option>
</select>
</div>
</div>`),this.target},We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return Wr==="middle"&&ke.addClass("hiprint-text-content-middle"),Wr==="bottom"&&ke.addClass("hiprint-text-content-bottom"),"";ke.removeClass("hiprint-text-content-middle"),ke.removeClass("hiprint-text-content-bottom")}return null},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),$n=Ae(5),zn=function(){function We(){this.name="columns"}return We.prototype.createTarget=function(){return $$g('<div class="indicator"></div>').appendTo("body"),this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div>
<ul class="hiprint-option-table-selected-columns"> </ul>
</div>
</div>`),this.target},We.prototype.getValue=function(){return this.buildData()},We.prototype.setValue=function(ke,Wr,Bn){var Jn=this,pi=this;this.value=ke,this.options=Wr,this.printElementType=Bn;var Mn=Bn.columns[0].filter(function(Fi){return ke[0].columns.filter(function(Ui){return Fi.columnId==Ui.columnId}).length==0}).map(function(Fi){var Ui=new $n.a(Fi);return Ui.checked=!1,Ui});this.allColumns=ke[0].columns.concat(Mn),ke&&ke.length==1&&(this.target.find("ul").html(this.allColumns.map(function(Fi,Ui){return`<li class="hiprint-option-table-selected-item"> <div class="hi-pretty p-default">
`+(Fi.checked?'<input type="checkbox" checked column-id="'+(Fi.columnId||"")+'" />':'<input type="checkbox" column-id="'+(Fi.columnId||"")+'" />')+`
<div class="state">
<label></label>
</div>
</div><span class="column-title">`+(Fi.title||Fi.descTitle||"")+"</span></li>"}).join("")),this.target.find("input").change(function(){Jn.submit()}),this.printElementType.columnDisplayIndexEditable&&this.target.find("li").hidraggable({revert:!0,handle:".column-title",moveUnit:"pt",deltaX:0,deltaY:0}).hidroppable({onDragOver:function(Ui,Ki){$$g(this).css("border-bottom-color","red")},onDragLeave:function(Ui,Ki){$$g(this).css("border-bottom-color","")},onDrop:function(Ui,Ki){$$g(Ki).insertAfter(this),$$g(this).css("border-bottom-color",""),pi.submit()}}))},We.prototype.buildData=function(){var ke=this,Wr=[];return this.allColumns.filter(function(Bn){Bn.checked=!1}),(this.printElementType.columnDisplayEditable?this.target.find("input:checked"):this.target.find("input")).map(function(Bn,Jn){var pi=$$g(Jn).attr("column-id"),Mn=ke.options.makeColumnObj();if(Mn[pi])Mn[pi].checked=!0,Wr.push(Mn[pi]);else{var Fi=ke.printElementType.getColumnByColumnId(pi);if(Fi){var Ui=new $n.a(Fi);Ui.checked=!0,Wr.push(Ui)}}}),this.value[0].columns=Wr,this.value},We.prototype.destroy=function(){this.target.remove()},We}(),Gn=function(){function We(){this.name="textType"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
打印类型
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="" >文本</option>
<option value="barcode" >条形码</option>
<option value="qrcode" >二维码</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),ii=function(){function We(){this.name="topOffset"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
顶部偏移
</div>
<div class="hiprint-option-item-field">
<input type="text" placeholder="偏移量pt" class="auto-submit">
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){this.target.find("input").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),ui=function(){function We(){this.name="gridColumns"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
一行多组
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="2" >一行二列</option>
<option value="3" >一行三列</option>
<option value="4" >一行四列</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),mi=function(){function We(){this.name="gridColumnsGutter"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
一行多组间隔
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="1.5" >1.5pt</option>
<option value="2.25" >2.25pt</option>
<option value="3" >3pt</option>
<option value="3.75" >3.75pt</option>
<option value="4.5" >4.5pt</option>
<option value="5.25" >5.25pt</option>
<option value="6" >6pt</option>
<option value="6.75" >6.75pt</option>
<option value="7.25" >7.25pt</option>
<option value="8.5" >8.5pt</option>
<option value="9" >9pt</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},We.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.find(".table-grid-row").css("margin-left","-"+Wr+"pt").css("margin-right","-"+Wr+"pt"),ke.find(".tableGridColumnsGutterRow").css("padding-left",Wr+"pt").css("padding-right",Wr+"pt"),null;ke.find(".table-grid-row").map(function(Bn,Jn){Jn.style.marginLeft="",Jn.style.marginRight=""}),ke.find(".tableGridColumnsGutterRow").map(function(Bn,Jn){Jn.style.paddingLeft="",Jn.style.paddingRight=""})}return null},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),yi=function(){function We(){this.name="paddingLeft"}return We.prototype.css=function(ke,Wr){var Bn=ke;if(Bn&&Bn.length){if(Wr)return Bn.css("padding-left",Wr+"pt"),"padding-left";Bn[0].style.paddingLeft=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
左内边距
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="0.75" >0.75pt</option>
<option value="1.5" >1.5pt</option>
<option value="2.25" >2.25pt</option>
<option value="3" >3pt</option>
<option value="3.75" >3.75pt</option>
<option value="4.5" >4.5pt</option>
<option value="5.25" >5.25pt</option>
<option value="6" >6pt</option>
<option value="6.75" >6.75pt</option>
<option value="7.5" >7.5pt</option>
<option value="8.25" >8.25pt</option>
<option value="9" >9pt</option>
<option value="9.75" >9.75pt</option>
<option value="10.5" >10.5pt</option>
<option value="11.25" >11.25pt</option>
<option value="12" >12pt</option>
<option value="12.75" >12.75pt</option>
<option value="13.5" >13.5pt</option>
<option value="14.25" >14.25pt</option>
<option value="15" >15pt</option>
<option value="15.75" >15.75pt</option>
<option value="16.5" >16.5pt</option>
<option value="17.25" >17.25pt</option>
<option value="18" >18pt</option>
<option value="18.75" >18.75pt</option>
<option value="19.5" >19.5pt</option>
<option value="20.25" >20.25pt</option>
<option value="21" >21pt</option>
<option value="21.75" >21.75pt</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Ai=function(){function We(){this.name="paddingRight"}return We.prototype.css=function(ke,Wr){var Bn=ke;if(Bn&&Bn.length){if(Wr)return Bn.css("padding-right",Wr+"pt"),"padding-right";Bn[0].style.paddingRight=""}return null},We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
右内边距
</div>
<div class="hiprint-option-item-field">
<select>
<option value="" >默认</option>
<option value="0.75" >0.75pt</option>
<option value="1.5" >1.5pt</option>
<option value="2.25" >2.25pt</option>
<option value="3" >3pt</option>
<option value="3.75" >3.75pt</option>
<option value="4.5" >4.5pt</option>
<option value="5.25" >5.25pt</option>
<option value="6" >6pt</option>
<option value="6.75" >6.75pt</option>
<option value="7.5" >7.5pt</option>
<option value="8.25" >8.25pt</option>
<option value="9" >9pt</option>
<option value="9.75" >9.75pt</option>
<option value="10.5" >10.5pt</option>
<option value="11.25" >11.25pt</option>
<option value="12" >12pt</option>
<option value="12.75" >12.75pt</option>
<option value="13.5" >13.5pt</option>
<option value="14.25" >14.25pt</option>
<option value="15" >15pt</option>
<option value="15.75" >15.75pt</option>
<option value="16.5" >16.5pt</option>
<option value="17.25" >17.25pt</option>
<option value="18" >18pt</option>
<option value="18.75" >18.75pt</option>
<option value="19.5" >19.5pt</option>
<option value="20.25" >20.25pt</option>
<option value="21" >21pt</option>
<option value="21.75" >21.75pt</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},We.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),hi=function(){function We(){this.name="dataType"}return We.prototype.createTarget=function(){var ke=this;return this.target=$$g(`
<div class="hiprint-option-item-row">
<div class="hiprint-option-item">
<div class="hiprint-option-item-label">
数据类型
</div>
<div class="hiprint-option-item-field">
<select class="hiprint-option-item-datatype">
<option value="" >默认</option>
<option value="datetime" >日期时间</option>
<option value="boolean" >布尔</option>
</select>
</div>
</div>
<div class="hiprint-option-item ">
<div class="hiprint-option-item-label ">
格式
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit hiprint-option-item-datatype-select-format">
<option value="" >默认</option>
</select>
<input class="auto-submit hiprint-option-item-datatype-input-format" type="text" data-type="boolean" placeholder="true:false">
</div>
</div>
</div>
`),$$g(this.target.find(".hiprint-option-item-datatype")).change(function(){var Wr=$$g(ke.target.find(".hiprint-option-item-datatype")).val();ke.loadFormatSelectByDataType(Wr),ke.submit(ke.getValue())}),this.target},We.prototype.getValue=function(){var ke=this.target.find(".hiprint-option-item-datatype").val();if(ke){var Wr=this.target.find(".hiprint-option-item-datatype-format").val();return{dataType:ke,format:Wr||void 0}}return{dataType:void 0,format:void 0}},We.prototype.setValue=function(ke,Wr){this.target.find(".hiprint-option-item-datatype").val(Wr.dataType||""),this.loadFormatSelectByDataType(Wr.dataType),this.target.find(".hiprint-option-item-datatype-format").val(Wr.format||"")},We.prototype.destroy=function(){this.target.remove()},We.prototype.loadFormatSelectByDataType=function(ke){ke==="boolean"?(this.target.find(".hiprint-option-item-datatype-select-format").removeClass("hiprint-option-item-datatype-format").hide().val(""),this.target.find(".hiprint-option-item-datatype-input-format").addClass("hiprint-option-item-datatype-format").show()):ke==="datetime"?(this.target.find(".hiprint-option-item-datatype-select-format").addClass("hiprint-option-item-datatype-format").show(),this.target.find(".hiprint-option-item-datatype-input-format").removeClass("hiprint-option-item-datatype-format").hide().val(""),this.target.find(".hiprint-option-item-datatype-select-format").html(`
<option value="" >默认</option>
<option value="M/d" >M/d</option>
<option value="MM/dd" >MM/dd</option>
<option value="yy/M/d" >yy/M/d</option>
<option value="yy/MM/dd" >yy/MM/dd</option>
<option value="yyyy/M/d" >yyyy/M/d</option>
<option value="yyyy/MM/dd" >yyyy/MM/dd</option>
<option value="yy/M/d H:m" >yy/M/d H:m</option>
<option value="yy/M/d H:m:s" >yy/M/d H:m:s</option>
<option value="yy/M/d HH:mm" >yy/M/d HH:mm</option>
<option value="yy/M/d HH:mm:ss" >yy/M/d HH:mm:ss</option>
<option value="yy/MM/dd H:m" >yy/MM/dd H:m</option>
<option value="yy/MM/dd H:m:s" >yy/MM/dd H:m:s</option>
<option value="yy/MM/dd HH:mm" >yy/MM/dd HH:mm</option>
<option value="yy/MM/dd HH:mm:ss" >yy/MM/dd HH:mm:ss</option>
<option value="yyyy/M/d H:m" >yyyy/M/dd H:m</option>
<option value="yyyy/M/d H:m:s" >yyyy/M/d H:m:s</option>
<option value="yyyy/M/d HH:mm" >yyyy/M/d HH:mm</option>
<option value="yyyy/M/d HH:mm:ss" >yyyy/M/d HH:mm:ss</option>
<option value="yyyy/MM/dd H:m" >yyyy/MM/dd H:m</option>
<option value="yyyy/MM/dd H:m:s" >yyyy/MM/dd H:m:s</option>
<option value="yyyy/MM/dd HH:mm" >yyyy/MM/dd HH:mm</option>
<option value="yyyy/MM/dd HH:mm:ss" >yyyy/MM/dd HH:mm:ss</option>
<option value="M-d" >M-d</option>
<option value="MM-dd" >MM-dd</option>
<option value="yy-M-d" >yy-M-d</option>
<option value="yy-MM-dd" >yy-MM-dd</option>
<option value="yyyy-M-d" >yyyy-M-d</option>
<option value="yyyy-MM-dd" >yyyy-MM-dd</option>
<option value="yy-M-d H:m" >yy-M-d H:m</option>
<option value="yy-M-d H:m:s" >yy-M-d H:m:s</option>
<option value="yy-M-d HH:mm" >yy-M-d HH:mm</option>
<option value="yy-M-d HH:mm:ss" >yy-M-d HH:mm:ss</option>
<option value="yy-MM-dd H:m" >yy-MM-dd H:m</option>
<option value="yy-MM-dd H:m:s" >yy-MM-dd H:m:s</option>
<option value="yy-MM-dd HH:mm" >yy-MM-dd HH:mm</option>
<option value="yy-MM-dd HH:mm:ss" >yy-MM-dd HH:mm:ss</option>
<option value="yyyy-M-d H:m" >yyyy-M-d H:m</option>
<option value="yyyy-M-d H:m:s" >yyyy-M-d H:m:s</option>
<option value="yyyy-M-d HH:mm" >yyyy-M-d HH:mm</option>
<option value="yyyy-M-d HH:mm:ss" >yyyy-M-d HH:mm:ss</option>
<option value="yyyy-MM-dd H:m" >yyyy-MM-dd H:m</option>
<option value="yyyy-MM-dd H:m:s" >yyyy-MM-dd H:m:s</option>
<option value="yyyy-MM-dd HH:mm" >yyyy-MM-dd HH:mm</option>
<option value="yyyy-MM-dd HH:mm:ss" >yyyy-MM-dd HH:mm:ss</option>
`)):(this.target.find(".hiprint-option-item-datatype-select-format").show(),this.target.find(".hiprint-option-item-datatype-input-format").hide().val(""),this.target.find(".hiprint-option-item-datatype-format").html(`
<option value="" >默认</option>
`))},We}(),Hn=function(){function We(){this.name="formatter"}return We.prototype.createTarget=function(){var ke=` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
格式化函数
</div>
<div class="hiprint-option-item-field">
<textarea style="height:80px;" placeholder="`+(this.placeholder||"")+`" class="auto-submit"></textarea>
</div>
</div>`;return this.target=$$g(ke),this.target},We.prototype.getValue=function(){var ke=this.target.find("textarea").val();if(ke)return ke},We.prototype.setValue=function(ke){this.target.find("textarea").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Oi=function(){function We(){this.name="styler"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
样式函数
</div>
<div class="hiprint-option-item-field">
<textarea style="height:80px;" placeholder="function(value, options, target,templateData){}" class="auto-submit"></textarea>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("textarea").val();if(ke)return ke},We.prototype.setValue=function(ke){this.target.find("textarea").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),wi=function(){function We(){this.name="footerFormatter"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
表格脚函数
</div>
<div class="hiprint-option-item-field">
<textarea style="height:80px;" placeholder="function(options,rows,data){ return '<tr></tr>' }; }" class="auto-submit"></textarea>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("textarea").val();if(ke)return ke},We.prototype.setValue=function(ke){this.target.find("textarea").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),br=function(){function We(){this.name="gridColumnsFooterFormatter"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
多组表格脚函数
</div>
<div class="hiprint-option-item-field">
<textarea style="height:80px;" placeholder="function(options,rows,data){ return '' }; }" class="auto-submit"></textarea>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("textarea").val();if(ke)return ke},We.prototype.setValue=function(ke){this.target.find("textarea").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Ke=function(){function We(){this.name="rowStyler"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
行样式函数
</div>
<div class="hiprint-option-item-field">
<textarea style="height:80px;" placeholder="请输入标题" class="auto-submit"></textarea>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("textarea").val();if(ke)return ke},We.prototype.setValue=function(ke){this.target.find("textarea").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),je=function(){function We(){this.name="align"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
单元格左右对齐
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="left" >居左</option>
<option value="center" >居中</option>
<option value="right" >居右</option>
<option value="justify" >两端对齐</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),sr=function(){function We(){this.name="vAlign"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
单元格上下对齐
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="top" >上</option>
<option value="middle" >中</option>
<option value="bottom" >居右</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),dr=function(){function We(){this.name="halign"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
表格头单元格左右对齐
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="left" >居左</option>
<option value="center" >居中</option>
<option value="right" >居右</option>
<option value="justify" >两端对齐</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),Or=function(){function We(){this.name="styler2"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
单元格样式函数
</div>
<div class="hiprint-option-item-field">
<textarea style="height:80px;" placeholder="function(value,row,index,options){ return {color:'red' }; }" class="auto-submit"></textarea>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("textarea").val();if(ke)return ke},We.prototype.setValue=function(ke){this.target.find("textarea").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),qr=function(){function We(){this.name="formatter2"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label">
单元格格式化函数
</div>
<div class="hiprint-option-item-field">
<textarea style="height:80px;" placeholder="function(value,row,index,options){ return ''; }" class="auto-submit"></textarea>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("textarea").val();if(ke)return ke},We.prototype.setValue=function(ke){this.target.find("textarea").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}(),gn=function(){function We(){this.name="autoCompletion"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
自动补全
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="true" >是</option>
<option value="false" >否</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){if(this.target.find("select").val()=="true")return!0},We.prototype.setValue=function(ke){this.target.find("select").val((ke??"").toString())},We.prototype.destroy=function(){this.target.remove()},We}(),mn=function(){function We(){this.name="tableFooterRepeat"}return We.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
<div class="hiprint-option-item-label">
表格脚显示
</div>
<div class="hiprint-option-item-field">
<select class="auto-submit">
<option value="" >默认</option>
<option value="no" >不显示</option>
<option value="page" >每页显示</option>
<option value="last" >最后显示</option>
</select>
</div>
</div>`),this.target},We.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},We.prototype.setValue=function(ke){this.target.find("select").val(ke)},We.prototype.destroy=function(){this.target.remove()},We}();Ae.d(St,"a",function(){return Ln});var Ln=function(){function We(){}return We.init=function(){We.printElementOptionItems||(We.printElementOptionItems={},We._printElementOptionItems.forEach(function(ke){We.printElementOptionItems[ke.name]=ke}))},We.registerItem=function(ke){if(!ke.name)throw new Error("styleItem must have name");We.init(),We.printElementOptionItems[ke.name]=ke},We.getItem=function(ke){return We.init(),We.printElementOptionItems[ke]},We._printElementOptionItems=[new Ce,new _e,new Te,new Se,new Ee,new xe,new Fe,new Gn,new Ue,new Re,new He,new $e,new ze,new Ve,new ir,new Ze,new ar,new cr,new Xe,new or,new Oe,new Je,new Ye,new rr,new vr,new er,new Ar,new gr,new mr,new Ur,new Lr,new Mr,new Qr,new Dr,new Xr,new sn,new ur,new _r,new ii,new Fr,new Pr,new kr,new Vr,new nn,new Jr,new wn,new Cn,new On,new In,new fn,new Xn,new Sr,new ti,new Yn,new Tn,new Nn,new Rn,new zn,new ui,new mi,new yi,new Ai,new hi,new Hn,new Oi,new wi,new br,new Ke,new je,new dr,new sr,new Or,new qr,new gn,new mn],We}()},function(Be,St,Ae){Ae.d(St,"a",function(){return Ce}),Ae.d(St,"b",function(){return _e});var Ee=Ae(14),Ce=function(){function xe(Fe,Ue){this.selectedCells=[],this.rows=Fe,this.tableTatget=Ue}return xe.prototype.clear=function(){this.tableTatget.find("td").removeClass("selected")},xe.prototype.setSingleSelect=function(Fe){this.startCell=Fe,this.selectedCells=[]},xe.prototype.getSingleSelect=function(){if(this.selectedCells.length){if(this.selectedCells.length==1)return this.selectedCells[0].length==1?this.selectedCells[0][0]:void 0;if(this.selectedCells.length>1)return}return this.startCell},xe.prototype.singleSelectByXY=function(Fe,Ue){var Re=this.getCellByXY(Fe,Ue);Re&&(this.clear(),Re&&(Re.cell.select(),this.startCell=Re,this.selectedCells=[]))},xe.prototype.multipleSelectByXY=function(Fe,Ue){this.clear();var Re=[];if(this.startCell){var He=this.getCellByXY(Fe,Ue);if(He){var $e=Ee.a.mergeRect(this.startCell.cell.getTableRect(),He.cell.getTableRect());this.selectByRect(new Te($e),Re)}}this.selectedCells=Re},xe.prototype.selectByRect=function(Fe,Ue){this.rows.forEach(function(Re,He){var $e=[];Re.columns.forEach(function(ze){ze.isInRect(Fe)&&($e.push(new Se(He,ze)),ze.select())}),$e.length&&Ue.push($e)}),Fe.changed&&(Fe.changed=!1,Ue.splice(0,Ue.length),this.selectByRect(Fe,Ue))},xe.prototype.getSelectedCells=function(){return this.selectedCells},xe.prototype.getCellByXY=function(Fe,Ue){var Re;return this.rows.forEach(function(He,$e){var ze=He.columns.filter(function(Ve){return Ve.isXYinCell(Fe,Ue)});ze.length&&(Re=new Se($e,ze[0]))}),Re},xe}(),_e=function(){return function(xe){this.x=xe.x,this.y=xe.y,this.height=xe.height,this.width=xe.width}}(),Te=function(){return function(xe){this.rect=xe}}(),Se=function(){return function(xe,Fe){this.rowIndex=xe,this.cell=Fe}}()},function(Be,St,Ae){Ae.d(St,"a",function(){return Ee});var Ee=function(){function Ce(){}return Ce.createId=function(){return this.id+=1,this.id},Ce.id=1,Ce}()},function(Be,St,Ae){Ae.d(St,"a",function(){return Se});var Ee,Ce=Ae(5),_e=Ae(13),Te=(Ee=function(Fe,Ue){return(Ee=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(Re,He){Re.__proto__=He}||function(Re,He){for(var $e in He)He.hasOwnProperty($e)&&(Re[$e]=He[$e])})(Fe,Ue)},function(xe,Fe){function Ue(){this.constructor=xe}Ee(xe,Fe),xe.prototype=Fe===null?Object.create(Fe):(Ue.prototype=Fe.prototype,new Ue)}),Se=function(xe){function Fe(Ue){var Re=xe.call(this)||this;return Re.columns=[],Ue&&Ue.constructor===Array?(Ue||[]).forEach(function(He){Re.columns.push(new Ce.a(He))}):Ue.columns&&(Ue.columns||[]).forEach(function(He){Re.columns.push(new Ce.a(He))}),Re}return Te(Fe,xe),Fe.prototype.getPrintElementOptionEntity=function(){var Ue=[];return this.columns.forEach(function(Re){Ue.push(Re.getEntity())}),Ue},Fe}(_e.a)},function(Be,St,Ae){Ae.d(St,"a",function(){return _e});var Ee=Ae(11),Ce=Ae(5),_e=function(){function Te(){this.id=Ee.a.createId()}return Te.prototype.init=function(Se,xe,Fe){this.isHead=Fe,this.target=xe||$$g("<tr></tr>"),this.tableOptions=Se,this.initCells(this.columns)},Te.prototype.getTarget=function(){return this.target},Te.prototype.initCells=function(Se){var xe=this;Se?Se.forEach(function(Fe,Ue){Fe.init(xe.target.find("td:eq("+Ue+")"),xe.tableOptions,xe.id,xe.isHead)}):(this.columns=[],this.target.find("td").map(function(Fe,Ue){var Re=new Ce.a;Re.init($$g(Ue),xe.tableOptions,xe.id,xe.isHead),xe.columns.push(Re)}))},Te.prototype.removeCell=function(Se){var xe=this.columns.indexOf(Se);this.columns[xe].getTarget().remove(),this.columns.splice(xe,1)},Te.prototype.createTableCell=function(Se,xe){var Fe=new Ce.a;return Fe.init($$g("<td></td>"),this.tableOptions,this.id,this.isHead),Se>1&&(Fe.getTarget().attr("rowspan",Se),Fe.rowspan=Se),xe>1&&(Fe.getTarget().attr("colspan",xe),Fe.colspan=xe),Fe},Te.prototype.insertToTargetCellLeft=function(Se,xe){var Fe=this.columns.indexOf(Se);Se.getTarget().before(xe.getTarget()),this.columns.splice(Fe,0,xe)},Te.prototype.insertToTargetCellRight=function(Se,xe){var Fe=this.columns.indexOf(Se);this.columns[Fe].getTarget().after(xe.getTarget()),this.columns.splice(Fe+1,0,xe)},Te.prototype.insertCellToFirst=function(Se){this.target.prepend(Se.getTarget()),this.columns.splice(0,0,Se)},Te.prototype.insertCellToLast=function(Se){this.columns.push(Se),this.target.append(Se.getTarget())},Te.prototype.getPrintElementOptionEntity=function(){var Se=[];return this.columns.forEach(function(xe){Se.push(xe.getEntity())}),Se},Te}()},function(Be,St,Ae){Ae.d(St,"a",function(){return Ce});var Ee=Ae(10),Ce=function(){function _e(){}return _e.mergeRect=function(Te,Se){var xe=Math.min(Te.x,Se.x),Fe=Math.min(Te.y,Se.y);return new Ee.b({x:xe,y:Fe,height:Math.max(Te.y+Te.height,Se.y+Se.height)-Fe,width:Math.max(Te.x+Te.width,Se.x+Se.width)-xe})},_e.Rect=function(Te,Se,xe,Fe){return{minX:Te<xe?Te:xe,minY:Se<Fe?Se:Fe,maxX:Te<xe?xe:Te,maxY:Se<Fe?Fe:Se}},_e}()},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return TablePrintElement});var _BasePrintElement__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4),_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1),_dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(6),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(0),_PrintReferenceElement__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(8),_option_TablePrintElementOption__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(18),_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(7),_hitable_HiTale__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(16),_table_GridColumnsStructure__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(20),_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2),__extends=(_extendStatics=function(St,Ae){return(_extendStatics=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(Ee,Ce){Ee.__proto__=Ce}||function(Ee,Ce){for(var _e in Ce)Ce.hasOwnProperty(_e)&&(Ee[_e]=Ce[_e])})(St,Ae)},function(Be,St){function Ae(){this.constructor=Be}_extendStatics(Be,St),Be.prototype=St===null?Object.create(St):(Ae.prototype=St.prototype,new Ae)}),_extendStatics,TablePrintElement=function(_super){function TablePrintElement(Be,St){var Ae=_super.call(this,Be)||this;return Ae.gridColumnsFooterCss="hiprint-gridColumnsFooter",Ae.tableGridRowCss="table-grid-row",Ae.options=new _option_TablePrintElementOption__WEBPACK_IMPORTED_MODULE_5__.a(St,Ae.printElementType),Ae.options.setDefault(new _option_TablePrintElementOption__WEBPACK_IMPORTED_MODULE_5__.a(_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.table.default).getPrintElementOptionEntity()),Ae}return __extends(TablePrintElement,_super),TablePrintElement.prototype.getColumns=function(){return this.options.columns},TablePrintElement.prototype.getColumnByColumnId=function(Be){return this.options.getColumnByColumnId(Be)},TablePrintElement.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){this.css(this.designTarget,this.getData());var Be=this.designTarget.find(".hiprint-printElement-table-content"),St=this.getHtml(this.designPaper);Be.html(""),Be.append(St[0].target.find(".table-grid-row")),this.printElementType.editable&&this.setHitable(),this.setColumnsOptions()}},TablePrintElement.prototype.css=function(Be,St){if((this.getField()||!this.options.content)&&!this.printElementType.formatter)return _super.prototype.css.call(this,Be,St)},TablePrintElement.prototype.getDesignTarget=function(Be){return this.designTarget=this.getHtml(Be)[this.getHtml(Be).length-1].target,this.designPaper=Be,this.designTarget.find("td").hidroppable({accept:".rn-draggable-item",onDrop:function(Ae,Ee){},onDragEnter:function(Ae,Ee){$$g(Ee).removeClass("rn-draggable-item")},onDragLeave:function(Ae,Ee){$$g(Ee).addClass("rn-draggable-item")}}),this.designTarget},TablePrintElement.prototype.getConfigOptions=function(){return _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.table},TablePrintElement.prototype.createTarget=function(Be,St,Ae){for(var Ee=$$g('<div class="hiprint-printElement hiprint-printElement-table" style="position: absolute;"><div class="hiprint-printElement-table-handle"></div><div class="hiprint-printElement-table-content" style="height:100%;width:100%"></span></div>'),Ce=this.createGridColumnsStructure(Ae),_e=0;_e<Ce.gridColumns;_e++)Ce.getByIndex(_e).append(this.getTableHtml(St,Ae));return Ee.find(".hiprint-printElement-table-content").append(Ce.target),Ee},TablePrintElement.prototype.createGridColumnsStructure=function(Be){for(var St=$$g('<div class="hi-grid-row table-grid-row"></div>'),Ae=0;Ae<this.options.getGridColumns();Ae++){var Ee=$$g('<div class="tableGridColumnsGutterRow hi-grid-col" style="width:'+100/this.options.getGridColumns()+'%;"></div>');St.append(Ee)}var Ce=this.getGridColumnsFooterFormatter();if(Ce){var _e=$$g('<div class="hiprint-gridColumnsFooter"></div>');_e.append(Ce(this.options,this.getData(Be),Be,[])),St.append(_e)}return new _table_GridColumnsStructure__WEBPACK_IMPORTED_MODULE_8__.a(this.options.getGridColumns(),St)},TablePrintElement.prototype.createtempEmptyRowsTargetStructure=function(Be){if(this.getField())return this.createTarget(this.printElementType.title,[]);var St=this.createTarget(this.printElementType.title,[]).clone();return St.find(".hiprint-printElement-tableTarget tbody tr").remove(),St},TablePrintElement.prototype.getTableHtml=function(Be,St){var Ae,Ee;if(!this.getField()&&this.options.content)return(Ae=$$g("<div></div>")).append(this.options.content),(Ee=Ae.find("table")).addClass("hiprint-printElement-tableTarget"),Ee;if(this.printElementType.formatter)return(Ae=$$g("<div></div>")).append(this.printElementType.formatter(Be)),(Ee=Ae.find("table")).addClass("hiprint-printElement-tableTarget"),Ee;var Ce=$$g('<table class="hiprint-printElement-tableTarget" style="border-collapse: collapse;"></table>');return Ce.append(_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableHead(this.getColumns(),this.options.getWidth()/this.options.getGridColumns())),Ce.append(_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableRow(this.getColumns(),Be,this.options,this.printElementType)),this.getFooterFormatter()&&(this.options.tableFooterRepeat=="no"||(this.options.tableFooterRepeat=="last"?Ce.find("tbody").append(_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableFooter(this.printElementType.columns,Be,this.options,this.printElementType,St,Be).html()):Ce.append(_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableFooter(this.printElementType.columns,Be,this.options,this.printElementType,St,[])))),Ce},TablePrintElement.prototype.getEmptyRowTarget=function(){return _table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createEmptyRowTarget(this.getColumns())},TablePrintElement.prototype.getHtml=function(Be,St){this.createTempContainer();var Ae=this.getPaperHtmlResult(Be,St);return this.removeTempContainer(),Ae},TablePrintElement.prototype.getPaperHtmlResult=function(Be,St){var Ae=[],Ee=this.getData(St),Ce=this.getTableHtml(Ee,St),_e=this.createtempEmptyRowsTargetStructure(St);St?this.updateTargetWidth(_e):this.updateTargetSize(_e),this.css(_e,Ee),this.css(Ce,Ee),this.getTempContainer().html(""),this.getTempContainer().append(_e);for(var Te,Se=this.getBeginPrintTopInPaperByReferenceElement(Be),xe=0,Fe=!1;!Fe;){var Ue=0,Re=Be.getPaperFooter(xe);xe==0&&Se>Re&&(Se=Se-Re+Be.paperHeader,Ae.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_2__.a({target:void 0,printLine:void 0})),Ue=Be.getContentHeight(xe)-(Se-Be.paperHeader),xe++,Re=Be.getPaperFooter(xe));var He=Ae.length>0?Ae[Ae.length-1].target:void 0,$e=this.getRowsInSpecificHeight(St,Ue>0?Ue:xe==0?Re-Se:Be.getContentHeight(xe),_e,Ce,xe,He);Fe=$e.isEnd;var ze=void 0;$e.target&&($e.target.css("left",this.options.displayLeft()),$e.target[0].height=""),xe==0||Ue>0?($e.target&&(Te=Se,$e.target.css("top",Se+"pt")),ze=Fe&&this.options.lHeight!=null?Se+($e.height>this.options.lHeight?$e.height:this.options.lHeight):Se+$e.height):($e.target&&(Te=Be.paperHeader,$e.target.css("top",Be.paperHeader+"pt")),ze=Be.paperHeader+$e.height),Ae.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_2__.a({target:$e.target,printLine:ze,referenceElement:new _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_4__.a({top:this.options.getTop(),left:this.options.getLeft(),height:this.options.getHeight(),width:this.options.getWidth(),beginPrintPaperIndex:Be.index,bottomInLastPaper:ze,printTopInPaper:Te})})),xe++}return Ae},TablePrintElement.prototype.getRowsInSpecificHeight=function(Be,St,Ae,Ee,Ce,_e){var Te=Ee.find("tbody"),Se=_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.pt.toPx(St);Ae.find(".hiprint-printElement-tableTarget tbody").html("");var xe=Ae.outerHeight();if(xe>Se)return{target:void 0,length:0,height:0,isEnd:!1};for(var Fe=[],Ue=0;Ue<this.options.getGridColumns();Ue++)for(var Re=Ae.find(".hiprint-printElement-tableTarget:eq("+Ue+")"),He=void 0,$e=[];;){if(xe<=Se)if(Te.find("tr").length==0)He={height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(xe),isEnd:!0},Be&&this.options.autoCompletion&&(this.autoCompletion(Se,Re),xe=Ae.outerHeight());else{var ze=Te.find("tr:lt(1)");Re.find("tbody").append(ze);var Ve=ze.data("rowData");Fe.push(Ve),$e.push(Ve),(xe=Ae.outerHeight())>Se&&(Te.prepend(ze),Fe.pop(),$e.pop(),xe=Ae.outerHeight(),He={height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(xe),isEnd:!1})}if(He){this.getFooterFormatter()&&Re.find("tfoot").length&&Re.find("tfoot").html(_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableFooter(this.printElementType.columns,this.getData(Be),this.options,this.printElementType,Be,$e).html());break}}var ir=Ae.find(".hiprint-printElement-tableTarget tbody tr").length,Ze=this.getGridColumnsFooterFormatter();return Ze&&Ae.find(this.gridColumnsFooterCss).html(Ze(this.options,this.getData(Be),Be,Fe)),Te.find("tr").length==0?ir==0&&_e?{target:void 0,length:0,height:0,isEnd:!0}:{target:Ae.clone(),length:ir,height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(xe),isEnd:!0}:{target:Ae.clone(),length:ir,height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(xe),isEnd:!1}},TablePrintElement.prototype.autoCompletion=function(Be,St){for(var Ae,Ee=this.getEmptyRowTarget(),Ce=St.outerHeight();Be>Ce;)Ae=Ee.clone(),St.find("tbody").append(Ae),Ce=St.outerHeight();Ae&&Ae.remove()},TablePrintElement.prototype.getData=function(Be){if(!Be)return[{}];var St=Be[this.getField()];return St?JSON.parse(JSON.stringify(St)):[]},TablePrintElement.prototype.onResize=function(Be,St,Ae,Ee,Ce){_super.prototype.updateSizeAndPositionOptions.call(this,Ce,Ee,Ae,St),_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.resizeTableCellWidth(this.designTarget,this.getColumns(),this.options.getWidth())},TablePrintElement.prototype.getReizeableShowPoints=function(){return["s","e"]},TablePrintElement.prototype.design=function(Be,St){var Ae=this;this.designTarget.hidraggable({handle:this.designTarget.find(".hiprint-printElement-table-handle"),axis:Ae.options.axis&&Be&&Be.axisEnabled?Ae.options.axis:void 0,onDrag:function(Ce,_e,Te){Ae.updateSizeAndPositionOptions(_e,Te),Ae.createLineOfPosition(St)},moveUnit:"pt",minMove:_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance,onBeforeDrag:function(Ce){_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging=!0,Ae.createLineOfPosition(St)},onStopDrag:function(Ce){_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging=!1,Ae.removeLineOfPosition()}}),this.printElementType.editable&&this.setHitable(),this.setColumnsOptions(),this.designTarget.hireizeable({showPoints:Ae.getReizeableShowPoints(),noContainer:!0,onBeforeResize:function(){_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging=!0},onResize:function(Ce,_e,Te,Se,xe){Ae.onResize(Ce,_e,Te,Se,xe),Ae.hitable&&Ae.hitable.updateColumnGrips(),Ae.createLineOfPosition(St)},onStopResize:function(){_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging=!1,Ae.removeLineOfPosition()}}),this.bingKeyboardMoveEvent(this.designTarget,St)},TablePrintElement.prototype.setHitable=function(){var Be=this;this.hitable=new _hitable_HiTale__WEBPACK_IMPORTED_MODULE_7__.a({table:this.designTarget.find(".hiprint-printElement-tableTarget:eq(0)"),rows:this.getColumns(),resizeRow:!1,resizeColumn:!0,trs:this.designTarget.find(".hiprint-printElement-tableTarget:eq(0)").find("tbody tr"),handle:this.designTarget.find(".hiprint-printElement-tableTarget:eq(0)").find("thead"),isEnableEdit:this.printElementType.editable,columnDisplayEditable:this.printElementType.columnDisplayEditable,columnDisplayIndexEditable:this.printElementType.columnDisplayIndexEditable,columnResizable:this.printElementType.columnResizable,columnAlignEditable:this.printElementType.columnAlignEditable,isEnableEditText:this.printElementType.columnTitleEditable,isEnableEditField:!1,isEnableContextMenu:!0,isEnableInsertRow:!1,isEnableDeleteRow:!1,isEnableInsertColumn:!1,isEnableDeleteColumn:!1,isEnableMergeCell:!1}),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.on("updateTable"+this.hitable.id,function(){Be.updateDesignViewFromOptions()})},TablePrintElement.prototype.setColumnsOptions=function(){var Be=this;this.designTarget.find(".hiprint-printElement-tableTarget:eq(0)").find("thead td").bind("click.hiprint",function(St){var Ae=$$g(St.target).attr("column-id"),Ee=Be.getColumnByColumnId(Ae);if(Ee){var Ce=Be.getPrintElementOptionItemsByName("tableColumn");_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger(Be.getPrintElementSelectEventKey(),{printElement:Be,customOptionsInput:[{title:Ee.title+"-列属性",optionItems:Ce,options:Ee,callback:function(Te){Ce.forEach(function(Se){var xe=Se.getValue();Ee[Se.name]=xe})}}]})}else _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger(Be.getPrintElementSelectEventKey(),{printElement:Be})})},TablePrintElement.prototype.filterOptionItems=function(Be){var St=_super.prototype.filterOptionItems.call(this,Be);return this.printElementType.editable&&this.options.columns.length==1?St:Be.filter(function(Ae){return Ae.name!="columns"})},TablePrintElement.prototype.getFooterFormatter=function(){var footerFormatter=void 0;if(this.printElementType.footerFormatter&&(footerFormatter=this.printElementType.footerFormatter),this.options.footerFormatter)try{var s="footerFormatter="+this.options.footerFormatter;eval(s)}catch(Be){console.log(Be)}return footerFormatter},TablePrintElement.prototype.getGridColumnsFooterFormatter=function(){var gridColumnsFooterFormatter=void 0;if(this.printElementType.gridColumnsFooterFormatter&&(gridColumnsFooterFormatter=this.printElementType.gridColumnsFooterFormatter),this.options.gridColumnsFooterFormatter)try{var s="gridColumnsFooterFormatter="+this.options.gridColumnsFooterFormatter;eval(s)}catch(Be){console.log(Be)}return gridColumnsFooterFormatter},TablePrintElement}(_BasePrintElement__WEBPACK_IMPORTED_MODULE_0__.a)},function(Be,St,Ae){var Ee=function(){return function(cr){this.table=cr.table,this.isEnableEdit=cr.isEnableEdit,this.trs=cr.trs,this.resizeRow=cr.resizeRow,this.resizeColumn=cr.resizeColumn,this.isEnableEditField=cr.isEnableEditField,this.isEnableContextMenu=cr.isEnableContextMenu,this.isEnableEditField=cr.isEnableEditField,this.isEnableInsertRow=cr.isEnableInsertRow,this.isEnableDeleteRow=cr.isEnableDeleteRow,this.isEnableInsertColumn=cr.isEnableInsertColumn,this.isEnableDeleteColumn=cr.isEnableDeleteColumn,this.isEnableMergeCell=cr.isEnableMergeCell,this.columnResizable=cr.columnResizable,this.columnAlignEditable=cr.columnAlignEditable}}(),Ce=function(){function cr(Xe){this.options=new Ee(Xe)}return cr.prototype.enableEidt=function(){this.options.isEnableEdit},cr.prototype.disableEdit=function(){this.options.isEnableEdit},cr.prototype.isEnableEdit=function(){return this.options.isEnableEdit},cr}(),_e=Ae(0),Te=function(){return function(cr){this.cell=cr.cell,this.link=cr.link,this.linkType=cr.linkType,this.bottom=cr.bottom,this.rightMost=cr.rightMost,this.rowLevel=cr.rowLevel,this.columnLevel=cr.columnLevel,this.indexInTableGridRow=cr.indexInTableGridRow,this.indexInTableGridColumn=cr.indexInTableGridColumn}}(),Se=Ae(10),xe=function(){function cr(){}return cr.getLeftTableCell=function(Xe,or){var Oe;return Xe.forEach(function(Je,Ye){Je.cell&&Ye<or&&(Oe=Je.cell)}),Oe},cr.getIndex=function(Xe,or){var Oe;return Xe.forEach(function(Je,Ye){Je.cell&&Je.cell.id==or&&(Oe=Ye)}),Oe},cr}(),Fe=Ae(13),Ue=Ae(11),Re=function(){return function(cr,Xe){this.target=cr,this.grips=Xe}}(),He=function(){return function(cr){this.target=cr}}(),$e=function(){return function(){this.rowColumns=[]}}(),ze=function(){function cr(){}return cr.getColumnsWidth=function(Xe,or){var Oe={},Je=cr.allAutoWidth(Xe);return Xe.rowColumns.forEach(function(Ye){var rr=or-0,vr=Ye.width/Je*(rr>0?rr:0);Oe[Ye.id]=vr}),Oe},cr.resizeTableCellWeight=function(Xe){Xe.forEach(function(or){or.columns.forEach(function(Oe){Oe.hasWidth&&$$g(Oe.getTarget()).css("width",Oe.width+"pt")})})},cr.allAutoWidth=function(Xe){var or=0;return Xe.rowColumns.forEach(function(Oe){or+=Oe.width}),or},cr.reconsitutionTableColumnTree=function(Xe,or,Oe){for(var Je=or||new $e,Ye=function(er){Je.totalLayer=er+1,Je[er]=Xe[er].columns,Je.rowColumns=Je.rowColumns.concat(Je[er].filter(function(Ar){return Ar.rowspan==Xe.length-er}))},rr=0;rr<Xe.length;rr++)Ye(rr);return Je},cr}(),Ve=Ae(2),ir=function(){function cr(Xe){this.signature="HiTresizer",this.hitable=Xe,this.rows=Xe.rows,this.target=Xe.target}return cr.prototype.init=function(){this.addResizeRowAndColumn(),this.hitable.optionsCoat.options.resizeColumn&&this.createColumnGrips(),this.hitable.optionsCoat.options.resizeRow&&this.createRowGrips()},cr.prototype.resizeTableCellWidth=function(){ze.resizeTableCellWeight(this.rows)},cr.prototype.addResizeRowAndColumn=function(){},cr.prototype.createColumnGrips=function(){var Xe=this,or=this,Oe=[],Je=$$g('<div class="columngrips"/>');Je.width(this.target.width()),this.rows.forEach(function(Ye){Ye.columns.forEach(function(rr,vr){if(rr.getTarget().attr("haswidth")){var er=$$g('<div class="columngrip"><div class="gripResizer"></div></div>');Je.append(er);var Ar=new He(er);Oe.length>0&&(Oe[Oe.length-1].nextGrip=Ar),Oe.push(Ar),Xe.syncGrips(rr,Ar),$$g(er).hidraggable({axis:"h",onDrag:function(mr,Ur,Lr){},moveUnit:"pt",minMove:1,onBeforeDrag:function(mr){if(Ve.a.instance.draging=!0,!Ar.nextGrip)return!1;or.dragingGrip=Ar,or.dragingGrip.left=parseFloat(or.dragingGrip.target.css("left").replace("px","")),Ar.target.addClass("columngripDraging")},onStopDrag:function(mr){Ve.a.instance.draging=!1;var Ur=parseFloat(or.dragingGrip.target.css("left").replace("px","")),Lr=_e.a.px.toPt(Ur-or.dragingGrip.left);Ar.cell.width=Ar.cell.width+Lr,Ar.nextGrip.cell.width=Ar.nextGrip.cell.width-Lr,Xe.resizeTableCellWidth(),Ar.target.removeClass("columngripDraging"),or.updateColumnGrips()}})}})}),this.target.before(Je),this.cgripContariner=new Re(Je,Oe)},cr.prototype.updateColumnGrips=function(){this.cgripContariner&&(this.cgripContariner.target.remove(),this.createColumnGrips())},cr.prototype.updateRowGrips=function(){this.rgripContariner&&(this.rgripContariner.target.remove(),this.createRowGrips())},cr.prototype.createRowGrips=function(){var Xe=this,or=this,Oe=[],Je=$$g('<div class="rowgrips"/>');this.rows.forEach(function(Ye,rr){var vr=$$g('<div class="rowgrip"><div class="gripResizer"></div></div>');Je.append(vr);var er=new He(vr);Oe.push(er),rr>0&&rr<Xe.rows.length&&$$g(vr).hidraggable({axis:"v",onDrag:function(gr,mr,Ur){},moveUnit:"pt",minMove:1,onBeforeDrag:function(gr){or.dragingGrip=er,or.dragingGrip.top=parseFloat(or.dragingGrip.target.css("top").replace("px","")),er.target.addClass("rowgripDraging")},onStopDrag:function(gr){var mr=parseFloat(or.dragingGrip.target.css("top").replace("px","")),Ur=_e.a.px.toPt(mr-or.dragingGrip.top+or.rows[rr].columns[0].getTarget().height());or.rows[rr].columns[0].getTarget().css("height",Ur+"pt"),or.syncRowGrips(),er.target.removeClass("rowgripDraging")}})}),this.target.before(Je),this.rgripContariner=new Re(Je,Oe),this.syncRowGrips()},cr.prototype.syncGrips=function(Xe,or){var Oe=Xe.getTarget();or.cell=Xe,or.target.css({left:Oe.offset().left-this.target.offset().left+Oe.outerWidth(!1),height:30})},cr.prototype.syncRowGrips=function(){var Xe=this;this.rgripContariner.target.height(this.target.height()),this.rows.forEach(function(or,Oe){var Je=or.columns[0].getTarget();Xe.rgripContariner.grips[Oe].target.css({top:Je.offset().top-Xe.target.offset().top+Je.outerHeight(!1),width:30})})},cr.prototype.addResizerHeadRow=function(){this.target.find("thead").prepend()},cr}(),Ze=function(){function cr(){}return cr.prototype.init=function(){},cr.prototype.updateRowGrips=function(){},cr.prototype.updateColumnGrips=function(){},cr}();Ae.d(St,"a",function(){return ar});var ar=function(){function cr(Xe){this.id=Ue.a.createId(),this.optionsCoat=new Ce(Xe),this.handle=Xe.handle,this.target=Xe.table,this.initRows(Xe.rows),this.init(Xe),this.tableCellSelector=new Se.a(this.rows,this.target),this.resizer=this.optionsCoat.options.columnResizable?new ir(this):new Ze,this.resizer.init()}return cr.prototype.insertRow=function(Xe,or,Oe){var Je=or||this.tableCellSelector.getSingleSelect(),Ye=Je.cell,rr=this.rows[Je.rowIndex],vr=Je.rowIndex,er=this.getCellGrid(),Ar=new Fe.a;if(Ar.init(this.optionsCoat,void 0,rr.isHead),Oe&&Ar.getTarget().addClass(Oe),Xe=="above")er[vr].forEach(function(mr){var Ur=mr.link?mr.link:mr.cell,Lr=Ur.width/Ur.colspan;if(mr.columnLevel==0){var Mr=Ar.createTableCell();Mr.width=Lr,Ar.insertCellToLast(Mr)}else{if(mr.linkType=="column"){var Qr=mr.link.getTarget();mr.link.rowspan+=1,Qr.attr("rowspan",mr.link.rowspan)}mr.linkType}}),this.rows.splice(vr,0,Ar),rr.getTarget().before(Ar.getTarget()),_e.a.event.trigger("newRow"+this.id,Ar);else{var gr=vr+Ye.rowspan-1;er[gr].forEach(function(mr){var Ur=mr.link?mr.link:mr.cell,Lr=Ur.width/Ur.colspan;if(mr.bottom){var Mr=Ar.createTableCell();Mr.width=Lr,Ar.insertCellToLast(Mr)}else{if(mr.cell){var Qr=mr.cell.getTarget();mr.cell.rowspan+=1,Qr.attr("rowspan",mr.cell.rowspan)}mr.linkType=="column"&&(Qr=mr.link.getTarget(),mr.link.rowspan+=1,Qr.attr("rowspan",mr.link.rowspan))}}),this.rows.splice(gr+1,0,Ar),this.rows[gr].getTarget().after(Ar.getTarget()),_e.a.event.trigger("newRow"+this.id,Ar)}},cr.prototype.insertColumn=function(Xe,or,Oe,Je){var Ye=this,rr=this.rows.concat(this.trRows),vr=or||this.tableCellSelector.getSingleSelect(),er=vr.cell,Ar=vr.rowIndex,gr=this.getCellGrid(rr),mr=gr[Ar].filter(function(Mr){return Mr.cell&&Mr.cell.id==er.id||Mr.link&&Mr.link.id==er.id});if(Xe=="left"){var Ur=mr[0].indexInTableGridRow;gr.forEach(function(Mr,Qr){var Dr=Mr[Ur],Xr=Mr.filter(function(Fr,Pr){return Pr>=Ur&&Fr.cell});if(Dr.rowLevel==0){var sn=rr[Qr],ur=rr[Qr].createTableCell();Oe&&ur.getTarget().addClass(Oe),Je!=null&&(ur.width=Je),Xr.length?sn.insertToTargetCellLeft(Xr[0].cell,ur):sn.insertCellToLast(ur),_e.a.event.trigger("newCell"+Ye.id,ur)}else if(Dr.linkType=="row"){var _r=Dr.link.getTarget();Dr.link.colspan+=1,_r.attr("colspan",Dr.link.colspan)}})}else{var Lr=mr[mr.length-1].indexInTableGridRow;gr.forEach(function(Mr,Qr){var Dr=Mr[Lr],Xr=Mr.filter(function(Pr,kr){return kr<=Lr&&Pr.cell});if(Dr.rightMost){var sn=rr[Qr],ur=sn.createTableCell();Oe&&ur.getTarget().addClass(Oe),Je!=null&&(ur.width=Je),Xr.length?sn.insertToTargetCellRight(Xr[Xr.length-1].cell,ur):sn.insertCellToFirst(ur),_e.a.event.trigger("newCell"+Ye.id,ur)}else{var _r=Dr.link||Dr.cell;if(Dr.linkType=="row"){var Fr=_r.getTarget();_r.colspan+=1,Fr.attr("colspan",_r.colspan)}Dr.cell&&(Fr=_r.getTarget(),_r.colspan+=1,Fr.attr("colspan",_r.colspan))}})}},cr.prototype.deleteRow=function(){var Xe=this,or=this.tableCellSelector.getSingleSelect(),Oe=(or.cell,this.rows[or.rowIndex],or.rowIndex),Je=this.getCellGrid(),Ye=this.rows[Oe];Je[Oe].forEach(function(rr,vr){if(rr.cell)if(rr.cell.rowspan==1)Ye.removeCell(rr.cell);else{Ye.removeCell(rr.cell);var er=Je[Oe+1].filter(function(Ur,Lr){return Ur.cell&&Lr>vr}),Ar=Xe.rows[Oe+1],gr=Ar.createTableCell(rr.cell.rowspan-1,rr.cell.colspan);er.length?Ar.insertToTargetCellLeft(er[0].cell,gr):Ar.insertCellToLast(gr)}else if(rr.linkType=="column"){var mr=rr.link;mr.rowspan-=1,mr.getTarget().attr("rowspan",mr.rowspan)}}),Ye.getTarget().remove(),this.rows.splice(Oe,1)},cr.prototype.deleteColums=function(){var Xe=this.rows.concat(this.trRows),or=this.tableCellSelector.getSingleSelect(),Oe=or.cell,Je=or.rowIndex,Ye=this.getCellGrid(Xe),rr=Ye[Je].filter(function(vr){return vr.cell&&vr.cell.id==Oe.id||vr.link&&vr.link.id==Oe.id})[0].indexInTableGridRow;Ye.forEach(function(vr,er){var Ar=vr[rr];Ar.cell?Ar.cell.colspan==1?Xe[er].removeCell(Ar.cell):(Ar.cell.colspan-=1,Ar.cell.getTarget().attr("colspan",Ar.cell.colspan)):Ar.linkType=="row"&&(Ar.link.colspan-=1,Ar.link.getTarget().attr("colspan",Ar.link.colspan))})},cr.prototype.mergeCell=function(){var Xe=this,or=this.tableCellSelector.getSelectedCells();if(or.length!=0){var Oe=or[0][0].cell;or.forEach(function(Je,Ye){Je.forEach(function(rr,vr){Ye==0?vr!=0&&(Oe.colspan+=rr.cell.colspan,Xe.rows[rr.rowIndex].removeCell(rr.cell)):Xe.rows[rr.rowIndex].removeCell(rr.cell),vr==0&&or[0][0].rowIndex+Oe.rowspan-1<rr.rowIndex&&(Oe.rowspan+=rr.cell.rowspan)})}),Oe.getTarget().attr("colspan",Oe.colspan),Oe.getTarget().attr("rowspan",Oe.rowspan),this.tableCellSelector.setSingleSelect(or[0][0])}},cr.prototype.splitCell=function(){var Xe=this.tableCellSelector.getSingleSelect(),or=this.getCellGrid(),Oe=xe.getIndex(or[Xe.rowIndex],Xe.cell.id);if(Xe){for(var Je=Xe.rowIndex;Je<Xe.rowIndex+Xe.cell.rowspan;Je++)for(var Ye=this.rows[Je],rr=Je==Xe.rowIndex?Xe.cell:xe.getLeftTableCell(or[Je],Oe),vr=0;vr<Xe.cell.colspan;vr++)Je==Xe.rowIndex&&vr==0||(rr?Ye.insertToTargetCellRight(rr,Ye.createTableCell()):Ye.insertCellToFirst(Ye.createTableCell()));Xe.cell.rowspan=1,Xe.cell.colspan=1,Xe.cell.getTarget().attr("colspan",Xe.cell.colspan),Xe.cell.getTarget().attr("rowspan",Xe.cell.rowspan)}},cr.prototype.init=function(Xe){var or=this;$$g(this.target).addClass("hitable"),this.optionsCoat.onBeforEdit=function(Oe){return or.optionsCoat.options.onBeforEdit&&Xe.onBeforEdit(Oe)===!1?!1:(or.optionsCoat.editingCell&&or.optionsCoat.editingCell.endEdit(),!0)},$$g(this.target).mousedown(function(Oe){or.optionsCoat.isLeftMouseButtonDown=!0}),$$g(this.target).mouseup(function(Oe){or.optionsCoat.isLeftMouseButtonDown=!1}),this.initContext(),this.target.on("mousemove",function(Oe){Oe.buttons===1&&or.tableCellSelector.multipleSelectByXY(Oe.pageX,Oe.pageY)}).on("mousedown",function(Oe){Oe.buttons===1&&or.tableCellSelector.singleSelectByXY(Oe.pageX,Oe.pageY)})},cr.prototype.initRows=function(Xe){var or=this;if(this.trRows=[],Xe){this.rows=Xe,Xe.forEach(function(Je,Ye){Je.init(or.optionsCoat,or.target.find("tr:eq("+Ye+")"),!0)});var Oe=this.optionsCoat.options.trs;Oe&&this.initRowsByTrs(Oe).forEach(function(Je){or.trRows.push(Je)})}else this.rows=this.initRowsByTrs(this.target.find("tr"))},cr.prototype.initRowsByTrs=function(Xe){var or=this;return Xe.map(function(Oe,Je){var Ye=new Fe.a;return Ye.init(or.optionsCoat,$$g(Je)),Ye}).get()},cr.prototype.enableEidt=function(){this.optionsCoat.enableEidt()},cr.prototype.disableEdit=function(){this.optionsCoat.disableEdit()},cr.prototype.getCellGrid=function(Xe){var or=Xe||this.rows,Oe=this.getColumnStep(),Je=new Array;return or.forEach(function(Ye,rr){Ye.columns.forEach(function(vr,er){for(var Ar=0;Ar<vr.colspan;Ar++)for(var gr=0,mr=!1;gr<Oe&&!mr;){if(Je[rr]=Je[rr]||[],!Je[rr][gr]){Je[rr][gr]=new Te({cell:Ar==0?vr:void 0,link:Ar!=0?vr:void 0,linkType:Ar>0?"row":void 0,rightMost:Ar==vr.colspan-1||void 0,bottom:vr.rowspan-1==0,rowLevel:Ar,columnLevel:0,indexInTableGridRow:gr,indexInTableGridColumn:rr});for(var Ur=rr+1,Lr=1;Lr<vr.rowspan;Lr++)Je[Ur]=Je[Ur]||[],Je[Ur][gr]=new Te({cell:void 0,link:vr,linkType:Ar>0?"rowColumn":"column",rightMost:Ar==vr.colspan-1||void 0,bottom:Lr==vr.rowspan-1,rowLevel:Ar,columnLevel:Lr,indexInTableGridRow:gr,indexInTableGridColumn:Ur}),Ur+=1;mr=!0}gr++}})}),Je},cr.prototype.setAlign=function(Xe){var or=this.tableCellSelector.getSingleSelect();or&&or.cell.setAlign(Xe)},cr.prototype.setVAlign=function(Xe){var or=this.tableCellSelector.getSingleSelect();or&&or.cell.setVAlign(Xe)},cr.prototype.getColumnStep=function(Xe){var or=0;return this.rows.length&&this.rows[Xe||0].columns.forEach(function(Oe){or+=Oe.colspan}),or},cr.prototype.initContext=function(){var Xe=this;if(!this.optionsCoat.options.isEnableContextMenu)return!1;$$g(this.handle).hicontextMenu({menus:[{text:"在上方插入行",enabled:this.optionsCoat.options.isEnableInsertRow,disable:function(){return!Xe.tableCellSelector.getSingleSelect()},callback:function(){Xe.insertRow("above"),Xe.resizer.updateRowGrips(),_e.a.event.trigger("updateTable"+Xe.id)}},{text:"在下方插入行",borderBottom:!0,enabled:this.optionsCoat.options.isEnableInsertRow,disable:function(){return!Xe.tableCellSelector.getSingleSelect()},callback:function(){Xe.insertRow("below"),Xe.resizer.updateRowGrips(),_e.a.event.trigger("updateTable"+Xe.id)}},{text:"向左方插入列",enabled:this.optionsCoat.options.isEnableInsertColumn,disable:function(){return!Xe.tableCellSelector.getSingleSelect()},callback:function(){Xe.insertColumn("left"),Xe.resizer.updateColumnGrips(),_e.a.event.trigger("updateTable"+Xe.id)}},{text:"向右方插入列",enabled:this.optionsCoat.options.isEnableInsertColumn,disable:function(){return!Xe.tableCellSelector.getSingleSelect()},borderBottom:!0,callback:function(){Xe.insertColumn("right"),Xe.resizer.updateColumnGrips(),_e.a.event.trigger("updateTable"+Xe.id)}},{text:"删除行",enabled:this.optionsCoat.options.isEnableDeleteRow,disable:function(){return!Xe.tableCellSelector.getSingleSelect()},callback:function(){Xe.deleteRow(),Xe.resizer.updateRowGrips(),_e.a.event.trigger("updateTable"+Xe.id)}},{text:"删除列",borderBottom:!0,enabled:this.optionsCoat.options.isEnableDeleteColumn,disable:function(){return!Xe.tableCellSelector.getSingleSelect()},callback:function(){Xe.deleteColums(),Xe.resizer.updateColumnGrips(),_e.a.event.trigger("updateTable"+Xe.id)}},{text:"对齐",borderBottom:!0,enabled:this.optionsCoat.options.columnAlignEditable,menus:[{text:"左",callback:function(){Xe.setAlign("left")}},{text:"左右居中",callback:function(){Xe.setAlign("center")}},{text:"右",callback:function(){Xe.setAlign("right")}},{text:"默认",borderBottom:!0,callback:function(){Xe.setAlign("")}},{text:"上",callback:function(){Xe.setVAlign("top")}},{text:"垂直居中",callback:function(){Xe.setVAlign("middle")}},{text:"下",callback:function(){Xe.setVAlign("bottom")}},{text:"默认",callback:function(){Xe.setVAlign("")}}]},{text:"合并单元格",enabled:this.optionsCoat.options.isEnableMergeCell,disable:function(){return Xe.tableCellSelector.getSingleSelect()},callback:function(){Xe.mergeCell(),_e.a.event.trigger("updateTable"+Xe.id)}},{text:"解开单元格",enabled:this.optionsCoat.options.isEnableMergeCell,disable:function(){var Oe=Xe.tableCellSelector.getSingleSelect();return!Oe||Oe.cell.rowspan==1&&Oe.cell.colspan==1},callback:function(){Xe.splitCell(),_e.a.event.trigger("updateTable"+Xe.id)}}].filter(function(or){return or.enabled})})},cr.prototype.getTableWidth=function(){return _e.a.px.toPt(this.target.outerWidth(!1))},cr.prototype.updateColumnGrips=function(){this.resizer.updateColumnGrips()},cr.prototype.updateRowGrips=function(){this.resizer.updateRowGrips()},cr}()},function(Be,St,Ae){Ae.d(St,"a",function(){return Ee});var Ee=function(){return function(Ce,_e,Te){this.tid=Ce,this.options=_e,this.printElementType=Te}}()},function(Be,St,Ae){var Ee=Ae(3),Ce=Ae(12),_e=function(){return function(Ue){this.width=Ue.width,this.title=Ue.title,this.columnId=Ue.columnId,this.fixed=!1,this.rowspan=Ue.rowspan||1,this.colspan=Ue.colspan||1,this.align=Ue.align,this.halign=Ue.halign,this.vAlign=Ue.vAlign,this.formatter2=Ue.formatter2,this.styler2=Ue.styler2}}(),Te=Ae(5);Ae.d(St,"a",function(){return Fe});var Se,xe=(Se=function(Re,He){return(Se=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function($e,ze){$e.__proto__=ze}||function($e,ze){for(var Ve in ze)ze.hasOwnProperty(Ve)&&($e[Ve]=ze[Ve])})(Re,He)},function(Ue,Re){function He(){this.constructor=Ue}Se(Ue,Re),Ue.prototype=Re===null?Object.create(Re):(He.prototype=Re.prototype,new He)}),Fe=function(Ue){function Re(He,$e){var ze=this;return He=He||{},(ze=Ue.call(this,He)||this).lHeight=He.lHeight,ze.autoCompletion=He.autoCompletion,ze.tableFooterRepeat=He.tableFooterRepeat,$e&&(ze.columns=[],$e.editable&&He.columns&&He.columns.length?He.columns.forEach(function(Ve){var ir=[];Ve.forEach(function(Ze){var ar=new _e(Ze),cr=$e.getColumnByColumnId(ar.columnId),Xe=cr?$$g.extend(cr,ar):new Te.a(ar);Xe.checked=!0,ir.push(Xe)}),ze.columns.push(new Ce.a(ir))}):$e.columns.forEach(function(Ve){ze.columns.push(new Ce.a(Ve.filter(function(ir){return ir.checked})))})),ze}return xe(Re,Ue),Re.prototype.getColumnByColumnId=function(He){return this.makeColumnObj()[He]},Re.prototype.makeColumnObj=function(){var He={};return this.columns&&this.columns.forEach(function($e){$e.columns.forEach(function(ze){ze.columnId&&(He[ze.columnId]=ze)})}),He},Re.prototype.getGridColumns=function(){return this.gridColumns||1},Re.prototype.getPrintElementOptionEntity=function(){var He=Ue.prototype.getPrintElementOptionEntity.call(this);return this.columns&&(He.columns=[],this.columns.forEach(function($e){var ze=$e.getPrintElementOptionEntity().filter(function(Ve){return Ve.checked}).map(function(Ve){return new _e(Ve)});He.columns.push(ze)})),He},Re}(Ee.a)},function(Be,St,Ae){Ae.d(St,"a",function(){return Ee});var Ee=function(){return function(){this.rowColumns=[]}}()},function(Be,St,Ae){Ae.d(St,"a",function(){return Ee});var Ee=function(){function Ce(_e,Te){this.gridColumns=_e,this.target=Te}return Ce.prototype.getByIndex=function(_e){return this.target.find(".hi-grid-col:eq("+_e+")")},Ce}()},function(Be,St,Ae){Be.exports=Ae(33)},function(Be,St){(function(Ae){function Ee(xe){var Fe=Ae.data(xe.data.target,"hidraggable"),Ue=Fe.options,Re=Fe.proxy,He=xe.data,$e=He.startLeft+xe.pageX-He.startX,ze=He.startTop+xe.pageY-He.startY;Re&&(Re.parent()[0]==document.body?($e=Ue.deltaX!=null&&Ue.deltaX!=null?xe.pageX+Ue.deltaX:xe.pageX-xe.data.offsetWidth,ze=Ue.deltaY!=null&&Ue.deltaY!=null?xe.pageY+Ue.deltaY:xe.pageY-xe.data.offsetHeight):(Ue.deltaX!=null&&Ue.deltaX!=null&&($e+=xe.data.offsetWidth+Ue.deltaX),Ue.deltaY!=null&&Ue.deltaY!=null&&(ze+=xe.data.offsetHeight+Ue.deltaY))),xe.data.parent!=document.body&&($e+=Ae(xe.data.parent).scrollLeft(),ze+=Ae(xe.data.parent).scrollTop()),Ue.axis=="h"?He.left=$e:(Ue.axis=="v"||(He.left=$e),He.top=ze)}function Ce(xe){var Fe=Ae.data(xe.data.target,"hidraggable"),Ue=Fe.options,Re=Fe.proxy;Re||(Re=Ae(xe.data.target)),Re.css({left:Ae.fn.dragLengthC(xe.data.left,Ue),top:Ae.fn.dragLengthC(xe.data.top,Ue)}),Ae("body").css("cursor",Ue.cursor)}function _e(xe){Ae.fn.hidraggable.isDragging=!0;var Fe=Ae.data(xe.data.target,"hidraggable"),Ue=Fe.options,Re=Ae(".hidroppable").filter(function(){return xe.data.target!=this}).filter(function(){var $e=Ae.data(this,"hidroppable").options.accept;return!$e||Ae($e).filter(function(){return this==xe.data.target}).length>0});Fe.hidroppables=Re;var He=Fe.proxy;return He||(Ue.proxy?(He=Ue.proxy=="clone"?Ae(xe.data.target).clone().insertAfter(xe.data.target):Ue.proxy.call(xe.data.target,xe.data.target),Fe.proxy=He):He=Ae(xe.data.target)),He.css("position","absolute"),Ee(xe),Ce(xe),Ue.onStartDrag.call(xe.data.target,xe),!1}function Te(xe){var Fe=Ae.data(xe.data.target,"hidraggable");Ee(xe),Fe.options.onDrag.call(xe.data.target,xe,Ae.fn.dragLengthCNum(xe.data.left,Fe.options),Ae.fn.dragLengthCNum(xe.data.top,Fe.options))!=0&&Ce(xe);var Ue=xe.data.target;return Fe.hidroppables.each(function(){var Re=Ae(this);if(!Re.hidroppable("options").disabled){var He=Re.offset();xe.pageX>He.left&&xe.pageX<He.left+Re.outerWidth()&&xe.pageY>He.top&&xe.pageY<He.top+Re.outerHeight()?(this.entered||(Ae(this).trigger("_dragenter",[Ue]),this.entered=!0),Ae(this).trigger("_dragover",[Ue])):this.entered&&(Ae(this).trigger("_dragleave",[Ue]),this.entered=!1)}}),!1}function Se(xe){Ae.fn.hidraggable.isDragging=!1,Te(xe);var Fe,Ue,Re=Ae.data(xe.data.target,"hidraggable"),He=Re.proxy,$e=Re.options;$e.revert?Ve()==1?Ae(xe.data.target).css({position:xe.data.startPosition,left:xe.data.startLeft,top:xe.data.startTop}):He?(He.parent()[0]==document.body?(Fe=xe.data.startX-xe.data.offsetWidth,Ue=xe.data.startY-xe.data.offsetHeight):(Fe=xe.data.startLeft,Ue=xe.data.startTop),He.animate({left:Fe,top:Ue},function(){ze()})):Ae(xe.data.target).animate({left:xe.data.startLeft,top:xe.data.startTop},function(){Ae(xe.data.target).css("position",xe.data.startPosition)}):(Ae(xe.data.target).css({position:"absolute",left:Ae.fn.dragLengthC(xe.data.left,$e),top:Ae.fn.dragLengthC(xe.data.top,$e)}),Ve());function ze(){He&&He.remove(),Re.proxy=null}function Ve(){var ir=!1;return Re.hidroppables.each(function(){var Ze=Ae(this);if(!Ze.hidroppable("options").disabled){var ar=Ze.offset();return xe.pageX>ar.left&&xe.pageX<ar.left+Ze.outerWidth()&&xe.pageY>ar.top&&xe.pageY<ar.top+Ze.outerHeight()?($e.revert&&Ae(xe.data.target).css({position:xe.data.startPosition,left:xe.data.startLeft,top:xe.data.startTop}),Ae(this).trigger("_drop",[xe.data.target]),ze(),ir=!0,this.entered=!1,!1):void 0}}),ir||$e.revert||ze(),ir}return $e.onStopDrag.call(xe.data.target,xe),Ae(document).unbind(".hidraggable"),setTimeout(function(){Ae("body").css("cursor","")},100),!1}Ae.fn.hidraggable=function(xe,Fe){return typeof xe=="string"?Ae.fn.hidraggable.methods[xe](this,Fe):this.each(function(){var Ue,Re=Ae.data(this,"hidraggable");Re?(Re.handle.unbind(".hidraggable"),Ue=Ae.extend(Re.options,xe)):Ue=Ae.extend({},Ae.fn.hidraggable.defaults,Ae.fn.hidraggable.parseOptions(this),xe||{});var He=Ue.handle?typeof Ue.handle=="string"?Ae(Ue.handle,this):Ue.handle:Ae(this);function $e(ze){var Ve=Ae.data(ze.data.target,"hidraggable"),ir=Ve.handle,Ze=Ae(ir).offset(),ar=Ae(ir).outerWidth(),cr=Ae(ir).outerHeight(),Xe=ze.pageY-Ze.top,or=Ze.left+ar-ze.pageX,Oe=Ze.top+cr-ze.pageY,Je=ze.pageX-Ze.left;return Math.min(Xe,or,Oe,Je)>Ve.options.edge}Ae.data(this,"hidraggable",{options:Ue,handle:He}),Ue.disabled?Ae(this).css("cursor",""):He.unbind(".hidraggable").bind("mousemove.hidraggable",{target:this},function(ze){if(!Ae.fn.hidraggable.isDragging){var Ve=Ae.data(ze.data.target,"hidraggable").options;$e(ze)?Ae(this).css("cursor",Ve.cursor):Ae(this).css("cursor","")}}).bind("mouseleave.hidraggable",{target:this},function(ze){Ae(this).css("cursor","")}).bind("mousedown.hidraggable",{target:this},function(ze){if($e(ze)!=0){Ae(this).css("cursor","");var Ve=Ae(ze.data.target).position(),ir=Ae(ze.data.target).offset(),Ze={startPosition:Ae(ze.data.target).css("position"),startLeft:Ve.left,startTop:Ve.top,left:Ve.left,top:Ve.top,startX:ze.pageX,startY:ze.pageY,offsetWidth:ze.pageX-ir.left,offsetHeight:ze.pageY-ir.top,target:ze.data.target,parent:Ae(ze.data.target).parent()[0]};Ae.extend(ze.data,Ze),Ae.data(ze.data.target,"hidraggable").options.onBeforeDrag.call(ze.data.target,ze)!=0&&(Ae(document).bind("mousedown.hidraggable",ze.data,_e),Ae(document).bind("mousemove.hidraggable",ze.data,Te),Ae(document).bind("mouseup.hidraggable",ze.data,Se))}})})},Ae.fn.hidraggable.methods={options:function(Fe){return Ae.data(Fe[0],"hidraggable").options},proxy:function(Fe){return Ae.data(Fe[0],"hidraggable").proxy},enable:function(Fe){return Fe.each(function(){Ae(this).hidraggable({disabled:!1})})},disable:function(Fe){return Fe.each(function(){Ae(this).hidraggable({disabled:!0})})}},Ae.fn.hidraggable.parseOptions=function(xe){var Fe=Ae(xe);return Ae.extend({},Ae.hiprintparser.parseOptions(xe,["cursor","handle","axis",{revert:"boolean",deltaX:"number",deltaY:"number",edge:"number"}]),{disabled:!!Fe.attr("disabled")||void 0})},Ae.fn.hidraggable.defaults={proxy:null,revert:!1,cursor:"move",deltaX:null,deltaY:null,handle:null,disabled:!1,edge:0,axis:null,onBeforeDrag:function(Fe){},onStartDrag:function(Fe){},onDrag:function(Fe){},onStopDrag:function(Fe){}},Ae.fn.hidraggable.isDragging=!1})(jQuery)},function(Be,St){(function(Ae){Ae.fn.hidroppable=function(Ee,Ce){return typeof Ee=="string"?Ae.fn.hidroppable.methods[Ee](this,Ce):(Ee=Ee||{},this.each(function(){var _e,Te=Ae.data(this,"hidroppable");Te?Ae.extend(Te.options,Ee):(Ae(_e=this).addClass("hidroppable"),Ae(_e).bind("_dragenter",function(Se,xe){Ae.data(_e,"hidroppable").options.onDragEnter.apply(_e,[Se,xe])}),Ae(_e).bind("_dragleave",function(Se,xe){Ae.data(_e,"hidroppable").options.onDragLeave.apply(_e,[Se,xe])}),Ae(_e).bind("_dragover",function(Se,xe){Ae.data(_e,"hidroppable").options.onDragOver.apply(_e,[Se,xe])}),Ae(_e).bind("_drop",function(Se,xe){Ae.data(_e,"hidroppable").options.onDrop.apply(_e,[Se,xe])}),Ae.data(this,"hidroppable",{options:Ae.extend({},Ae.fn.hidroppable.defaults,Ae.fn.hidroppable.parseOptions(this),Ee)}))}))},Ae.fn.hidroppable.methods={options:function(Ce){return Ae.data(Ce[0],"hidroppable").options},enable:function(Ce){return Ce.each(function(){Ae(this).hidroppable({disabled:!1})})},disable:function(Ce){return Ce.each(function(){Ae(this).hidroppable({disabled:!0})})}},Ae.fn.hidroppable.parseOptions=function(Ee){var Ce=Ae(Ee);return Ae.extend({},Ae.hiprintparser.parseOptions(Ee,["accept"]),{disabled:!!Ce.attr("disabled")||void 0})},Ae.fn.hidroppable.defaults={accept:null,disabled:!1,onDragEnter:function(Ce,_e){},onDragOver:function(Ce,_e){},onDragLeave:function(Ce,_e){},onDrop:function(Ce,_e){}}})(jQuery)},function(Be,St){var Ae;(Ae=jQuery).hiprintparser={parseOptions:function(Ce,_e){var Te=Ae(Ce),Se={},xe=Ae.trim(Te.attr("data-options"));if(xe&&(xe.substring(0,1)!="{"&&(xe="{"+xe+"}"),Se=new Function("return "+xe)()),_e){for(var Fe={},Ue=0;Ue<_e.length;Ue++){var Re=_e[Ue];if(typeof Re=="string")Fe[Re]=Re=="width"||Re=="height"||Re=="left"||Re=="top"?parseInt(Ce.style[Re])||void 0:Te.attr(Re);else for(var He in Re){var $e=Re[He];$e=="boolean"?Fe[He]=Te.attr(He)?Te.attr(He)=="true":void 0:$e=="number"&&(Fe[He]=Te.attr(He)=="0"?0:parseFloat(Te.attr(He))||void 0)}}Ae.extend(Se,Fe)}return Se}},Ae.fn.dragLengthC=function(Ee,Ce){return Ce.moveUnit=="pt"?Ae.fn.dragLengthCNum(Ee,Ce)+"pt":Ae.fn.dragLengthCNum(Ee,Ce)},Ae.fn.dragLengthCNum=function(Ee,Ce){var _e=3;if(Ce.moveUnit=="pt"){var Te=.75*Ee;return Ce.minMove&&(_e=Ce.minMove),Math.round(Te/_e)*_e}return Math.round(Te/_e)*_e}},function(Be,St){var Ae,Ee,Ce;Ae=jQuery,Ee={maxPanelIndex:0},(Ce=function(Te){this.options=Ae.data(Te.target,"hireizeable").options,this.init(Te.target)}).prototype={numHandlerText:function(Te){return this.numHandler(Te)+"pt"},numHandler:function(Te){var Se=1.5,xe=.75*Te;return this.options.minResize&&(Se=this.options.minResize),Math.round(xe/Se)*Se},init:function(Te){this.initResizeBox(Te)},initResizeBox:function(Te){var Se=this;Ae(Te).each(function(){var xe;Ee.maxPanelIndex+=1,Se.options.noContainer?xe=Ae(Te):(xe=Ae("<div panelIndex="+Ee.maxPanelIndex+' class="resize-panel"></div>')).css({width:"100%",height:"100%",top:0,left:0,position:"absolute","background-color":"rgba(0,0,0,0.5)",cursor:"move",display:"none"}),Se.appendHandler(xe,Ae(this));var Fe={name:"n",target:Ae('<div class="n resizebtn" style="cursor: n-resize;top: -12px;margin-left: -4px;left: 50%;"></div>')},Ue={name:"s",target:Ae('<div class="s resizebtn" style="cursor: s-resize;bottom: -12px;margin-left: -4px;left: 50%;"></div>')},Re={name:"w",target:Ae('<div class="w resizebtn" style="cursor: w-resize;left: -12px;margin-top: -4px;top: 50%;"></div>')},He={name:"e",target:Ae('<div class="e resizebtn" style="cursor: e-resize; top: 50%; margin-top:-4px;right: -12px;"></div>')},$e={name:"ne",target:Ae('<div class="ne resizebtn" style="cursor: ne-resize;top: -12px;right: -12px;"></div>')},ze={name:"nw",target:Ae('<div class="nw resizebtn" style=" cursor: nw-resize;top: -12px;left:-12px;"></div>')},Ve={name:"se",target:Ae('<div class="se resizebtn" style="cursor: se-resize;bottom:-12px;right: -12px;"></div>')},ir={name:"sw",target:Ae('<div class="sw resizebtn" style="cursor: sw-resize;bottom: -12px;left: -12px;"></div>')},Ze=function(){var Xe=[],or=Se.options.showPoints;return Ae.each([Fe,Ue,Re,He,$e,ze,Ve,ir],function(Oe,Je){Ae.inArray(Je.name,or)>-1&&Xe.push(Je.target)}),Xe};Se.addHandlerCss(Ze()),Se.appendHandler(Ze(),xe),Se.bindResizeEvent(xe,Ae(this));var ar=Ae(this);Ae(xe).on("mousedown",".resizebtn",function(){ar.addClass("resizeing")}),Ae(".easyui-droppable").on("mouseup",function(){ar.removeClass("resizeing")}),Se.bindTrigger(Ae(this))}),Se.bindHidePanel()},addHandlerCss:function(Te){for(var Se=0;Se<Te.length;Se++)Te[Se].css({position:"absolute",width:"8px",height:"8px",background:"#ff6600","border-radius":"50%"})},appendHandler:function(Te,Se){for(var xe=0;xe<Te.length;xe++)Se.append(Te[xe])},triggerResize:function(Te){Te.siblings().children("div[panelindex]").css({display:"none"}),Te.children("div[panelindex]").css({display:"block"})},bindResizeEvent:function(Te,Se){var xe=this,Fe=0,Ue=0,Re=Te.width(),He=Te.height(),$e=Te.offset().left,ze=Te.offset().top,Ve=xe.options.noContainer?Ae(Se):Te.parent(),ir=!1;Te.on("mousedown",".e",function(rr){Fe=rr.pageX,Re=Te.width(),ir=!0});var Ze=!1;Te.on("mousedown",".s",function(rr){Ue=rr.pageY,He=Te.height(),Ze=!0});var ar=!1;Te.on("mousedown",".w",function(rr){Fe=rr.pageX,Re=Te.width(),ar=!0,$e=Ve.offset().left});var cr=!1;Te.on("mousedown",".n",function(rr){Ue=rr.pageY,He=Te.height(),cr=!0,ze=Ve.offset().top});var Xe=!1;Te.on("mousedown",".ne",function(rr){Fe=rr.pageX,Ue=rr.pageY,Re=Te.width(),He=Te.height(),Xe=!0,ze=Ve.offset().top});var or=!1;Te.on("mousedown",".nw",function(rr){Fe=rr.pageX,Ue=rr.pageY,Re=Te.width(),He=Te.height(),ze=Ve.offset().top,$e=Ve.offset().left,or=!0});var Oe=!1;Te.on("mousedown",".se",function(rr){Fe=rr.pageX,Ue=rr.pageY,Re=Te.width(),He=Te.height(),Oe=!0});var Je=!1;Te.on("mousedown",".sw",function(rr){Fe=rr.pageX,Ue=rr.pageY,Re=Te.width(),He=Te.height(),Je=!0,$e=Ve.offset().left});var Ye=!1;Te.on("mousedown",function(rr){xe.options.onBeforeResize(),Fe=rr.pageX,Ue=rr.pageY,ze=Ve.offset().top,$e=Ve.offset().left,Ye=!1}),Ae(xe.options.stage).on("mousemove",function(rr){if(ir){var vr=rr.pageX-Fe;Te.css({width:"100%"}),Ve.css({width:xe.numHandlerText(Re+vr)}),xe.options.onResize(rr,void 0,xe.numHandler(Re+vr),void 0,void 0)}else if(Ze){var er=rr.pageY-Ue;Te.css({height:"100%"}),Ve.css({height:xe.numHandlerText(He+er)}),xe.options.onResize(rr,xe.numHandler(He+er),void 0,void 0,void 0)}else ar?(vr=rr.pageX-Fe,Te.css({width:"100%"}),Ve.css({width:xe.numHandlerText(Re-vr),left:xe.numHandlerText(xe.options.noDrag?void 0:xe.numHandler($e+vr))}),xe.options.onResize(rr,void 0,xe.numHandler(Re-vr),void 0,xe.options.noDrag?void 0:xe.numHandler($e+vr))):cr?(er=rr.pageY-Ue,Te.css({height:"100%"}),Ve.css({height:xe.numHandlerText(He-er),top:xe.numHandlerText(xe.options.noDrag?void 0:ze+er)}),xe.options.onResize(rr,xe.numHandler(He-er),void 0,xe.options.noDrag?void 0:xe.numHandler(ze+er),void 0)):Xe?(vr=rr.pageX-Fe,er=rr.pageY-Ue,Te.css({height:"100%",width:"100%"}),Ve.css({height:xe.numHandlerText(He-er),top:xe.numHandlerText(xe.options.noDrag?void 0:ze+er),width:xe.numHandlerText(Re+vr)}),xe.options.onResize(rr,xe.numHandler(He-er),xe.numHandler(Re+vr),xe.options.noDrag?void 0:xe.numHandler(ze+er),void 0)):or?(vr=rr.pageX-Fe,er=rr.pageY-Ue,Te.css({height:"100%",width:"100%"}),Ve.css({height:xe.numHandlerText(He-er),top:xe.numHandlerText(xe.options.noDrag?void 0:ze+er),width:xe.numHandlerText(Re-vr),left:xe.numHandlerText(xe.options.noDrag?void 0:$e+vr)}),xe.options.onResize(rr,xe.numHandler(He-er),xe.numHandler(Re-vr),xe.options.noDrag?void 0:xe.numHandler(ze+er),xe.options.noDrag?void 0:xe.numHandler($e+vr))):Oe?(vr=rr.pageX-Fe,er=rr.pageY-Ue,Te.css({width:"100%",height:"100%"}),Ve.css({width:xe.numHandlerText(Re+vr),height:xe.numHandlerText(He+er)}),xe.options.onResize(rr,xe.numHandler(He+er),xe.numHandler(Re+vr),void 0,void 0)):Je?(vr=rr.pageX-Fe,er=rr.pageY-Ue,Te.css({width:"100%",height:"100%"}),Ve.css({width:xe.numHandlerText(Re-vr),left:xe.numHandlerText(xe.options.noDrag?void 0:$e+vr),height:xe.numHandlerText(He+er)}),xe.options.onResize(rr,xe.numHandler(He+er),xe.numHandler(Re-vr),xe.numHandler(otundefinedop),xe.options.noDrag?void 0:xe.numHandler($e+vr))):Ye&&(vr=rr.pageX-Fe,er=rr.pageY-Ue,Ve.css({left:xe.numHandlerText(xe.options.noDrag?void 0:$e+vr),top:xe.numHandlerText(xe.options.noDrag?void 0:ze+er)}),xe.options.onResize(rr,void 0,void 0,xe.options.noDrag?void 0:xe.numHandler(ze+er),xe.options.noDrag?void 0:xe.numHandler($e+vr)))}).on("mouseup",function(rr){ir=!1,Ze=!1,ar=!1,cr=!1,Xe=!1,or=!1,Je=!1,Oe=!1,Ye=!1,xe.options.onStopResize()})},bindTrigger:function(Te){var Se=this;Te.on("click",function(xe){xe.stopPropagation(),Se.triggerResize(Te)})},bindHidePanel:function(Te){if(Ee.maxPanelIndex<2){var Se=this.options.stage;Ae(Se).bind("click",function(xe){xe.stopPropagation(),Ae("div[panelindex]").css({display:"none"})})}}},Ae.fn.extend({hireizeable:function(Te){return this.each(function(){var Se,xe=Ae.data(this,"hireizeable");Se=xe?Ae.extend(xe.options,_1f):Ae.extend({},Ae.fn.hireizeable.defaults,Te||{}),Ae.data(this,"hireizeable",{options:Se}),new Ce({target:this,onResize:function(Ue,Re,He,$e,ze){},onStopResize:function(Ue,Re,He,$e,ze){}})})}}),Ae.fn.hireizeable.defaults={stage:document,reizeUnit:"pt",minResize:1.5,showPoints:["s","e"],noContainer:!1,onBeforeResize:function(Te,Se,xe,Fe,Ue){},onResize:function(Te,Se,xe,Fe,Ue){},onStopResize:function(Te,Se,xe,Fe,Ue){},noDrag:!1}},function(Be,St){var Ae,Ee;jQuery,Ae="connected",Ee="reconnecting",window.hiwebSocket={opened:!1,name:"webSockets",reconnectTimeout:6e4,reconnectWindowSetTimeout:null,reconnectDelay:2e3,supportsKeepAlive:function(){return!0},hasIo:function(_e){return window.io},send:function(_e){try{this.socket.emit("news",_e)}catch(Te){console.log("send data error:"+(_e||"")+JSON.stringify(Te))}},getPrinterList:function(){return this.printerList},start:function(){var _e=this,Te=this;window.WebSocket?this.socket||(this.socket=lookup$4("http://localhost:17521",{reconnectionAttempts:5,extraHeaders:{"Access-Control-Request-Private-Network":!0},origins:"*.*",transports:["websocket","xhr-polling","jsonp-polling","htmlfile","flashsocket"]}),this.socket.on("connect",function(Se){Te.opened=!0,console.log("Websocket opened."),_e.socket.on("successs",function(xe){hinnn.event.trigger("printSuccess_"+xe.templateId,xe)}),_e.socket.on("error",function(xe){hinnn.event.trigger("printError_"+xe.templateId,xe)}),_e.socket.on("printerList",function(xe){Te.printerList=xe}),Te.state=Ae}),this.socket.on("disconnect",function(){Te.opened=!1})):console.log("WebSocket start fail")},reconnect:function(){this.state!==Ae&&this.state!==Ee||(this.stop(),this.ensureReconnectingState()&&(console.log("Websocket reconnecting."),this.start()))},stop:function(){this.socket&&(console.log("Closing the Websocket."),this.socket.close(),this.socket=null)},ensureReconnectingState:function(){return this.state=Ee,this.state===Ee}}},function(Be,St,Ae){var Ee=Ae(28);typeof Ee=="string"&&(Ee=[[Be.i,Ee,""]]);var Ce={hmr:!0,transform:void 0,insertInto:void 0};Ae(30)(Ee,Ce),Ee.locals&&(Be.exports=Ee.locals)},function(Be,St,Ae){(Be.exports=Ae(29)(!1)).push([Be.i,`.hicontextmenu {\r
position: absolute;\r
display: inline-block;\r
width: 215px;\r
padding: 0 0;\r
margin: 0;\r
font-family: inherit;\r
font-size: inherit;\r
list-style-type: none;\r
list-style: none;\r
background: #fff;\r
border: 1px solid #bebebe;\r
border-radius: 2px;\r
font-size: 13px;\r
}\r
\r
.hicontextmenuroot .hicontextmenuitem {\r
position: relative;\r
-webkit-box-sizing: content-box;\r
-moz-box-sizing: content-box;\r
box-sizing: content-box;\r
padding: .2em 12px;\r
color: #2f2f2f;\r
-webkit-user-select: none;\r
-moz-user-select: none;\r
-ms-user-select: none;\r
text-decoration: none;\r
\r
user-select: none;\r
background-color: #fff;\r
\r
}\r
\r
.hicontextmenuroot>.hicontextmenuitem:hover,\r
.hicontextmenuroot .hicontextmenuitem > a:hover {\r
background-color: #f3f3f3;\r
}\r
\r
.hicontextmenuroot .hicontextmenuitem>a {\r
text-decoration: none;\r
color: #363636;\r
line-height: 22px;\r
\r
}\r
\r
.hicontextmenuroot .hicontextsubmenu>ul {\r
display: none;\r
position: absolute;\r
\r
}\r
\r
.hicontextmenuroot .hicontextsubmenu:hover>ul {\r
display: block;\r
left: 100%;\r
top: -1px;\r
margin-left: 0px;\r
}\r
\r
.hicontextmenuroot .borderBottom {\r
border-bottom: 1px solid #efe6e6;\r
}\r
\r
.hicontextmenuroot .disable> a {\r
\r
color: #ccc;\r
\r
}\r
.hicontextmenuroot>.disable:hover,\r
.hicontextmenuroot .disable> a:hover {\r
background-color:#fff;\r
}`,""])},function(Be,St,Ae){Be.exports=function(Ee){var Ce=[];return Ce.toString=function(){return this.map(function(_e){var Te=function(Se,xe){var Fe=Se[1]||"",Ue=Se[3];if(!Ue)return Fe;if(xe&&typeof btoa=="function"){var Re=($e=Ue,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify($e))))+" */"),He=Ue.sources.map(function(ze){return"/*# sourceURL="+Ue.sourceRoot+ze+" */"});return[Fe].concat(He).concat([Re]).join(`
`)}var $e;return[Fe].join(`
`)}(_e,Ee);return _e[2]?"@media "+_e[2]+"{"+Te+"}":Te}).join("")},Ce.i=function(_e,Te){typeof _e=="string"&&(_e=[[null,_e,""]]);for(var Se={},xe=0;xe<this.length;xe++){var Fe=this[xe][0];Fe!=null&&(Se[Fe]=!0)}for(xe=0;xe<_e.length;xe++){var Ue=_e[xe];Ue[0]!=null&&Se[Ue[0]]||(Te&&!Ue[2]?Ue[2]=Te:Te&&(Ue[2]="("+Ue[2]+") and ("+Te+")"),Ce.push(Ue))}},Ce}},function(Be,St,Ae){var Ee,Ce,_e={},Te=(Ee=function(){return window&&document&&document.all&&!window.atob},function(){return Ce===void 0&&(Ce=Ee.apply(this,arguments)),Ce}),Se=function(Oe){var Je={};return function(Ye,rr){if(typeof Ye=="function")return Ye();if(Je[Ye]===void 0){var vr=(function(er,Ar){return Ar?Ar.querySelector(er):document.querySelector(er)}).call(this,Ye,rr);if(window.HTMLIFrameElement&&_instanceof(vr,window.HTMLIFrameElement))try{vr=vr.contentDocument.head}catch{vr=null}Je[Ye]=vr}return Je[Ye]}}(),xe=null,Fe=0,Ue=[],Re=Ae(31);function He(Oe,Je){for(var Ye=0;Ye<Oe.length;Ye++){var rr=Oe[Ye],vr=_e[rr.id];if(vr){vr.refs++;for(var er=0;er<vr.parts.length;er++)vr.parts[er](rr.parts[er]);for(;er<rr.parts.length;er++)vr.parts.push(ar(rr.parts[er],Je))}else{var Ar=[];for(er=0;er<rr.parts.length;er++)Ar.push(ar(rr.parts[er],Je));_e[rr.id]={id:rr.id,refs:1,parts:Ar}}}}function $e(Oe,Je){for(var Ye=[],rr={},vr=0;vr<Oe.length;vr++){var er=Oe[vr],Ar=Je.base?er[0]+Je.base:er[0],gr={css:er[1],media:er[2],sourceMap:er[3]};rr[Ar]?rr[Ar].parts.push(gr):Ye.push(rr[Ar]={id:Ar,parts:[gr]})}return Ye}function ze(Oe,Je){var Ye=Se(Oe.insertInto);if(!Ye)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var rr=Ue[Ue.length-1];if(Oe.insertAt==="top")rr?rr.nextSibling?Ye.insertBefore(Je,rr.nextSibling):Ye.appendChild(Je):Ye.insertBefore(Je,Ye.firstChild),Ue.push(Je);else if(Oe.insertAt==="bottom")Ye.appendChild(Je);else{if(_typeof$2(Oe.insertAt)!="object"||!Oe.insertAt.before)throw new Error(`[Style Loader]
Invalid value for parameter 'insertAt' ('options.insertAt') found.
Must be 'top', 'bottom', or Object.
(https://github.com/webpack-contrib/style-loader#insertat)
`);var vr=Se(Oe.insertAt.before,Ye);Ye.insertBefore(Je,vr)}}function Ve(Oe){if(Oe.parentNode===null)return!1;Oe.parentNode.removeChild(Oe);var Je=Ue.indexOf(Oe);Je>=0&&Ue.splice(Je,1)}function ir(Oe){var Je=document.createElement("style");if(Oe.attrs.type===void 0&&(Oe.attrs.type="text/css"),Oe.attrs.nonce===void 0){var Ye=function(){return Ae.nc}();Ye&&(Oe.attrs.nonce=Ye)}return Ze(Je,Oe.attrs),ze(Oe,Je),Je}function Ze(Oe,Je){Object.keys(Je).forEach(function(Ye){Oe.setAttribute(Ye,Je[Ye])})}function ar(Oe,Je){var Ye,rr,vr,er;if(Je.transform&&Oe.css){if(!(er=typeof Je.transform=="function"?Je.transform(Oe.css):Je.transform.default(Oe.css)))return function(){};Oe.css=er}if(Je.singleton){var Ar=Fe++;Ye=xe||(xe=ir(Je)),rr=or.bind(null,Ye,Ar,!1),vr=or.bind(null,Ye,Ar,!0)}else Oe.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(Ye=function(gr){var mr=document.createElement("link");return gr.attrs.type===void 0&&(gr.attrs.type="text/css"),gr.attrs.rel="stylesheet",Ze(mr,gr.attrs),ze(gr,mr),mr}(Je),rr=(function(gr,mr,Ur){var Lr=Ur.css,Mr=Ur.sourceMap,Qr=mr.convertToAbsoluteUrls===void 0&&Mr;(mr.convertToAbsoluteUrls||Qr)&&(Lr=Re(Lr)),Mr&&(Lr+=`
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(Mr))))+" */");var Dr=new Blob([Lr],{type:"text/css"}),Xr=gr.href;gr.href=URL.createObjectURL(Dr),Xr&&URL.revokeObjectURL(Xr)}).bind(null,Ye,Je),vr=function(){Ve(Ye),Ye.href&&URL.revokeObjectURL(Ye.href)}):(Ye=ir(Je),rr=(function(gr,mr){var Ur=mr.css,Lr=mr.media;if(Lr&&gr.setAttribute("media",Lr),gr.styleSheet)gr.styleSheet.cssText=Ur;else{for(;gr.firstChild;)gr.removeChild(gr.firstChild);gr.appendChild(document.createTextNode(Ur))}}).bind(null,Ye),vr=function(){Ve(Ye)});return rr(Oe),function(gr){if(gr){if(gr.css===Oe.css&&gr.media===Oe.media&&gr.sourceMap===Oe.sourceMap)return;rr(Oe=gr)}else vr()}}Be.exports=function(Oe,Je){if(typeof DEBUG<"u"&&DEBUG&&(typeof document>"u"?"undefined":_typeof$2(document))!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(Je=Je||{}).attrs=_typeof$2(Je.attrs)=="object"?Je.attrs:{},Je.singleton||typeof Je.singleton=="boolean"||(Je.singleton=Te()),Je.insertInto||(Je.insertInto="head"),Je.insertAt||(Je.insertAt="bottom");var Ye=$e(Oe,Je);return He(Ye,Je),function(rr){for(var vr=[],er=0;er<Ye.length;er++){var Ar=Ye[er];(gr=_e[Ar.id]).refs--,vr.push(gr)}for(rr&&He($e(rr,Je),Je),er=0;er<vr.length;er++){var gr;if((gr=vr[er]).refs===0){for(var mr=0;mr<gr.parts.length;mr++)gr.parts[mr]();delete _e[gr.id]}}}};var cr,Xe=(cr=[],function(Oe,Je){return cr[Oe]=Je,cr.filter(Boolean).join(`
`)});function or(Oe,Je,Ye,rr){var vr=Ye?"":rr.css;if(Oe.styleSheet)Oe.styleSheet.cssText=Xe(Je,vr);else{var er=document.createTextNode(vr),Ar=Oe.childNodes;Ar[Je]&&Oe.removeChild(Ar[Je]),Ar.length?Oe.insertBefore(er,Ar[Je]):Oe.appendChild(er)}}},function(Be,St){Be.exports=function(Ae){var Ee=typeof window<"u"&&window.location;if(!Ee)throw new Error("fixUrls requires window.location");if(!Ae||typeof Ae!="string")return Ae;var Ce=Ee.protocol+"//"+Ee.host,_e=Ce+Ee.pathname.replace(/\/[^\/]*$/,"/");return Ae.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(Te,Se){var xe,Fe=Se.trim().replace(/^"(.*)"$/,function(Ue,Re){return Re}).replace(/^'(.*)'$/,function(Ue,Re){return Re});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(Fe)?Te:(xe=Fe.indexOf("//")===0?Fe:Fe.indexOf("/")===0?Ce+Fe:_e+Fe.replace(/^\.\//,""),"url("+JSON.stringify(xe)+")")})}},function(Be,St){var Ae,Ee;Ae=jQuery,(Ee=function(_e,Te){this.init(_e,Te)}).prototype={init:function(_e,Te){this.ele=_e,this.defaults={menu:[{text:"text",menus:[{},{}],callback:function(){}}],target:function(xe){},width:100,itemHeight:28,bgColor:"#fff",color:"#333",fontSize:14,hoverBgColor:"#f5f5f5"},this.opts=Ae.extend(!0,{},this.defaults,Te),this.random=new Date().getTime()+parseInt(1e3*Math.random()),this.eventBind()},renderMenu:function(_e,Te){var Se=this,xe=Te;if(_e&&_e.length){var Fe=$$g('<ul class="hicontextmenu" ></ul>');xe||(xe=Fe).addClass("hicontextmenuroot"),$$g.each(_e,function(Ue,Re){var He=!!Re.disable&&Re.disable(),$e=$$g('<li class="hicontextmenuitem"><a href="javascript:void(0);"><span>'+(Re.text||"")+"</span></a></li>");He&&$e.addClass("disable"),Re.borderBottom&&$e.addClass("borderBottom"),Re.menus&&($e.addClass("hicontextsubmenu"),Se.renderMenu(Re.menus,$e)),Re.callback&&$e.click(function(ze){$$g(this).hasClass("disable")||($$g(".hicontextmenuroot").remove(),Re.callback()),ze.stopPropagation()}),Fe.append($e)}),Te&&Te.append(Fe)}Te||$$g("body").append(xe).find(".hicontextmenuroot").hide()},setPosition:function(_e){$$g(".hicontextmenuroot").css({left:_e.pageX+2,top:_e.pageY+2}).show()},eventBind:function(){var _e=this;this.ele.on("contextmenu",function(Te){$$g(".hicontextmenuroot").remove(),Te.preventDefault(),_e.renderMenu(_e.opts.menus),_e.setPosition(Te),_e.opts.target&&typeof _e.opts.target=="function"&&_e.opts.target(Ae(this))}),Ae("body").on("click",function(){Ae(".hicontextmenuroot").remove()})}},Ae.fn.hicontextMenu=function(Ce){return new Ee(this,Ce),this}},function(Be,St,Ae){Ae.r(St),Ae(22),Ae(23),Ae(24),Ae(25);var Ee,Ce=Ae(0);Ae(26),window.hiLocalStorage=(Ee=window.localStorage||null,{saveLocalData:function(Ke,je){return!(!Ee||!je||(Ee.setItem(Ke,je),0))},getLocalData:function(Ke){return Ee?Ee.getItem(Ke):null},removeItem:function(Ke){Ee&&Ee.removeItem(Ke)}}),Ae(27),Ae(32);var _e,Te=function(){function br(){this.allElementTypes=[]}return Object.defineProperty(br,"instance",{get:function(){return br._instance||(br._instance=new br),br._instance},enumerable:!0,configurable:!0}),br.prototype.addPrintElementTypes=function(Ke,je){var sr=this;this[Ke]?this[Ke]=this[Ke].concat(je):this[Ke]=je,je.forEach(function(dr){sr.allElementTypes=sr.allElementTypes.concat(dr.printElementTypes)})},br.prototype.getElementTypeGroups=function(Ke){return this[this.formatterModule(Ke)]||[]},br.prototype.getElementType=function(Ke){var je=this.allElementTypes.filter(function(sr){return sr.tid==Ke});if(je.length>0)return je[0]},br.prototype.formatterModule=function(Ke){return Ke||"_default"},br}(),Se=Ae(1),xe=Ae(2),Fe=function(){function br(){}return br.prototype.createPrintElementTypeHtml=function(Ke,je){var sr=$$g('<ul class="hiprint-printElement-type"></ul>');return je.forEach(function(dr){var Or=$$g("<li></li>");Or.append('<span class="title">'+dr.name+"</span>");var qr=$$g("<ul></ul>");Or.append(qr),dr.printElementTypes.forEach(function(gn){qr.append('<li><a class="ep-draggable-item" tid="'+gn.tid+'"> '+gn.getText()+" </a></li>")}),sr.append(Or)}),$$g(Ke).append(sr),sr.find(".ep-draggable-item")},br}(),Ue=Ae(5),Re=Ae(15),He=function(){return function(br){this.field=br.field,this.title=br.title,this.type=br.type,this.columns=br.columns}}(),$e=function(){function br(Ke){var je=this;this.text=Ke.text,this.field=Ke.field,this.fields=Ke.fields,this.title=Ke.title,this.tid=Ke.tid,this.data=Ke.data,this.styler=Ke.styler,this.formatter=Ke.formatter,this.type=Ke.type,this.options=Ke.options,this.editable=Ke.editable,this.columnDisplayEditable=Ke.columnDisplayEditable,this.columnDisplayIndexEditable=Ke.columnDisplayIndexEditable,this.columnTitleEditable=Ke.columnTitleEditable,this.columnResizable=Ke.columnResizable,this.columnAlignEditable=Ke.columnAlignEditable,this.columns=[],(Ke.columns||[]).forEach(function(sr,dr){je.columns.push(je.createTableColumnArray(sr))}),this.rowStyler=Ke.rowStyler,this.striped=Ke.striped,this.groupFields=Ke.groupFields||[],this.groupFormatter=Ke.groupFormatter,this.groupFooterFormatter=Ke.groupFooterFormatter,this.footerFormatter=Ke.footerFormatter,this.gridColumnsFooterFormatter=Ke.gridColumnsFooterFormatter,this.columnObj=this.makeColumnObj()}return br.prototype.getText=function(){return this.text||this.title||""},br.prototype.createPrintElement=function(Ke){var je=this;return this.columns&&this.columns.length==0&&(Ke.columns||[]).forEach(function(sr,dr){je.columns.push(je.createTableColumnArray(sr))}),new Re.a(this,Ke)},br.prototype.getData=function(){return[{}]},br.prototype.createTableColumnArray=function(Ke){var je=[];return Ke.forEach(function(sr,dr){je.push(new Ue.a(sr))}),je},br.prototype.getPrintElementTypeEntity=function(){return new He({title:this.title,type:this.type})},br.prototype.getFields=function(){return this.fields},br.prototype.getOptions=function(){return this.options||{}},br.prototype.getColumnByColumnId=function(Ke){return this.columnObj[Ke]},br.prototype.makeColumnObj=function(){var Ke={};return this.columns&&this.columns.forEach(function(je){je.forEach(function(sr){sr.columnId&&(Ke[sr.columnId]=sr)})}),Ke},br}(),ze=Ae(4),Ve=Ae(3),ir=(_e=function(Ke,je){return(_e=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(sr,dr){sr.__proto__=dr}||function(sr,dr){for(var Or in dr)dr.hasOwnProperty(Or)&&(sr[Or]=dr[Or])})(Ke,je)},function(br,Ke){function je(){this.constructor=br}_e(br,Ke),br.prototype=Ke===null?Object.create(Ke):(je.prototype=Ke.prototype,new je)}),Ze=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new Ve.a(sr),dr.options.setDefault(new Ve.a(Se.a.instance.image.default).getPrintElementOptionEntity()),dr}return ir(Ke,br),Ke.prototype.getReizeableShowPoints=function(){return["se"]},Ke.prototype.getData=function(je){var sr="";je?sr=this.getField()?je[this.getField()]||"":this.options.src||this.printElementType.getData():sr=this.options.src||this.printElementType.getData();var dr=this.getFormatter();return dr&&(sr=dr(sr,this.options,this._currenttemplateData)),sr||""},Ke.prototype.createTarget=function(je,sr){var dr=$$g('<div class="hiprint-printElement hiprint-printElement-image" style="position: absolute;"><div class="hiprint-printElement-image-content" style="height:100%;width:100%"></div></div>');return this.updateTargetImage(dr,je,sr),dr},Ke.prototype.initSizeByHtml=function(je){br.prototype.initSizeByHtml.call(this,je),this.css(je,this.getData())},Ke.prototype.getConfigOptions=function(){return Se.a.instance.image},Ke.prototype.updateDesignViewFromOptions=function(){this.designTarget&&(this.css(this.designTarget,this.getData()),this.updateTargetImage(this.designTarget,this.getTitle(),this.getData()))},Ke.prototype.updateTargetImage=function(je,sr,dr){var Or=je.find(".hiprint-printElement-image-content");Or.find("img").length?Or.find("img").attr("src",dr):Or.html('<img style="width:100%;height:100%;" src="'+dr+'">')},Ke.prototype.getHtml=function(je,sr,dr){return this.getHtml2(je,sr,dr)},Ke}(ze.a),ar=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Or){dr.__proto__=Or}||function(dr,Or){for(var qr in Or)Or.hasOwnProperty(qr)&&(dr[qr]=Or[qr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),cr=function(br){function Ke(je){var sr=this;return je=je||{},(sr=br.call(this,je)||this).leftSpaceRemoved=je.leftSpaceRemoved,sr}return ar(Ke,br),Ke.prototype.getHideTitle=function(){return this.hideTitle==null?this.defaultOptions.hideTitle:this.hideTitle},Ke}(Ve.a),Xe=Ae(8),or=function(){function br(Ke,je,sr,dr,Or,qr,gn,mn,Ln,We,ke){this.defaultPaperNumberFormat="paperNo-paperCount",this.printLine=0,this.templateId=Ke,this.width=Ce.a.mm.toPt(je),this.height=Ce.a.mm.toPt(sr),this.mmwidth=je,this.mmheight=sr,this.paperHeader=dr,this.paperFooter=Or,this.contentHeight=Or-dr,this.createTarget(),this.index=We,this.paperNumberLeft=qr||parseInt((this.width-30).toString()),this.paperNumberTop=gn||parseInt((this.height-22).toString()),this.paperNumberDisabled=mn,this.paperNumberFormat=Ln,this.referenceElement=ke?$$g.extend({},ke):new Xe.a({top:0,left:0,height:0,width:0,bottomInLastPaper:0,beginPrintPaperIndex:0,printTopInPaper:0,endPrintPaperIndex:0})}return br.prototype.subscribePaperBaseInfoChanged=function(Ke){this.onPaperBaseInfoChanged=Ke},br.prototype.triggerOnPaperBaseInfoChanged=function(){this.onPaperBaseInfoChanged&&this.onPaperBaseInfoChanged({paperHeader:this.paperHeader,paperFooter:this.paperFooter,paperNumberLeft:this.paperNumberLeft,paperNumberTop:this.paperNumberTop,paperNumberDisabled:this.paperNumberDisabled,paperNumberFormat:this.paperNumberFormat})},br.prototype.setFooter=function(Ke,je,sr,dr){this.firstPaperFooter=Ke,this.evenPaperFooter=je,this.oddPaperFooter=sr,this.lastPaperFooter=dr},br.prototype.setOffset=function(Ke,je){this.setLeftOffset(Ke),this.setTopOffset(je)},br.prototype.setLeftOffset=function(Ke){Ke?this.paperContentTarget.css("left",Ke+"pt"):this.paperContentTarget[0].style.left=""},br.prototype.setTopOffset=function(Ke){Ke?this.paperContentTarget.css("top",Ke+"pt"):this.paperContentTarget[0].style.top=""},br.prototype.createTarget=function(){this.target=$$g('<div class="hiprint-printPaper"><div class="hiprint-printPaper-content"></div></div>'),this.paperContentTarget=this.target.find(".hiprint-printPaper-content"),this.target.css("width",this.mmwidth+"mm"),this.target.css("height",this.mmheight-Se.a.instance.paperHeightTrim+"mm"),this.target.attr("original-height",this.mmheight)},br.prototype.createHeaderLine=function(){var Ke=this;this.headerLinetarget=$$g('<div class="hiprint-headerLine" style="position: absolute;width: 100%;border-top: 1px dashed #c9bebe;height: 7pt;"></div>'),this.headerLinetarget.css("top",(this.paperHeader||-1)+"pt"),this.paperHeader==0&&this.headerLinetarget.addClass("hideheaderLinetarget"),this.paperContentTarget.append(this.headerLinetarget),this.dragHeadLineOrFootLine(this.headerLinetarget,function(je,sr){Ke.paperHeader=sr,Ke.triggerOnPaperBaseInfoChanged()})},br.prototype.createFooterLine=function(){var Ke=this;this.footerLinetarget=$$g('<div class="hiprint-footerLine" style="position: absolute;width: 100%;border-top: 1px dashed #c9bebe;height: 7pt;"></div>'),this.footerLinetarget.css("top",parseInt(this.paperFooter.toString())+"pt"),this.paperFooter==this.height&&(this.footerLinetarget.css("top",this.mmheight-Se.a.instance.paperHeightTrim+"mm"),this.footerLinetarget.addClass("hidefooterLinetarget")),this.paperContentTarget.append(this.footerLinetarget),this.dragHeadLineOrFootLine(this.footerLinetarget,function(je,sr){Ke.paperFooter=sr,Ke.triggerOnPaperBaseInfoChanged()})},br.prototype.createPaperNumber=function(Ke){var je=this,sr=this.target.find(".hiprint-paperNumber");if(sr.length)return sr.html(Ke),sr;var dr=$$g('<span class="hiprint-paperNumber" style="position: absolute">'+Ke+"</span>");return dr.css("top",this.paperNumberTop+"pt"),dr.css("left",this.paperNumberLeft+"pt"),this.paperContentTarget.append(dr),this.dragHeadLineOrFootLine(dr,function(Or,qr){je.paperNumberTop=qr,je.paperNumberLeft=Or,je.triggerOnPaperBaseInfoChanged()},!0),dr},br.prototype.getTarget=function(){return this.target},br.prototype.append=function(Ke){this.paperContentTarget.append(Ke)},br.prototype.updateReferenceElement=function(Ke){Ke&&(this.referenceElement=Ke)},br.prototype.updatePrintLine=function(Ke){Ke>=this.printLine&&(this.printLine=Ke)},br.prototype.design=function(Ke){var je=this;this.createHeaderLine(),this.createFooterLine(),this.target.addClass("design"),this.paperNumberTarget=this.createPaperNumber(this.formatPaperNumber(1,1)),this.createRuler(),this.resetPaperNumber(this.paperNumberTarget),$$g(this.paperNumberTarget).bind("dblclick.hiprint",function(){je.paperNumberDisabled==null&&(je.paperNumberDisabled=!1),je.paperNumberDisabled=!je.paperNumberDisabled,je.resetPaperNumber(je.paperNumberTarget),je.triggerOnPaperBaseInfoChanged()}),$$g(this.paperNumberTarget).bind("click.hiprint",function(){Ce.a.event.trigger("BuildCustomOptionSettingEventKey_"+je.templateId,{options:{paperNumberFormat:je.paperNumberFormat,paperNumberDisabled:je.paperNumberDisabled},callback:function(dr){je.paperNumberDisabled=!!dr.paperNumberDisabled||void 0,je.paperNumberFormat=dr.paperNumberFormat?dr.paperNumberFormat:void 0,je.createPaperNumber(je.formatPaperNumber(1,1)),je.resetPaperNumber(je.paperNumberTarget),je.triggerOnPaperBaseInfoChanged()}})})},br.prototype.resetPaperNumber=function(Ke){this.paperNumberDisabled?Ke.addClass("hiprint-paperNumber-disabled"):Ke.removeClass("hiprint-paperNumber-disabled")},br.prototype.updatePaperNumber=function(Ke,je,sr){var dr=this.createPaperNumber(this.formatPaperNumber(Ke,je));this.paperNumberDisabled?dr.hide():sr&&this.index%2==1&&(dr[0].style.left="",dr.css("right",this.paperNumberLeft+"pt"))},br.prototype.formatPaperNumber=function(Ke,je){return(this.paperNumberFormat?this.paperNumberFormat:this.defaultPaperNumberFormat).replace("paperNo",Ke.toString()).replace("paperCount",je.toString())},br.prototype.dragHeadLineOrFootLine=function(Ke,je,sr){var dr=this;Ke.hidraggable({axis:sr?void 0:"v",onDrag:function(qr,gn,mn){je(gn,mn)},moveUnit:"pt",minMove:Se.a.instance.movingDistance,onBeforeDrag:function(qr){xe.a.instance.draging=!0},onStopDrag:function(qr){xe.a.instance.draging=!1,dr.footerLinetarget.removeClass("hidefooterLinetarget"),dr.headerLinetarget.removeClass("hideheaderLinetarget")}})},br.prototype.resize=function(Ke,je){this.width=Ce.a.mm.toPt(Ke),this.height=Ce.a.mm.toPt(je),this.mmwidth=Ke,this.mmheight=je,this.target.css("width",Ke+"mm"),this.target.css("height",je-Se.a.instance.paperHeightTrim+"mm"),this.target.attr("original-height",this.mmheight),this.paperFooter=this.height,this.footerLinetarget.css("top",this.height+"pt"),this.contentHeight=this.paperFooter-this.paperHeader,this.paperNumberLeft=parseInt((this.width-30).toString()),this.paperNumberTop=parseInt((this.height-22).toString()),this.paperNumberTarget.css("top",this.paperNumberTop+"pt"),this.paperNumberTarget.css("left",this.paperNumberLeft+"pt"),this.triggerOnPaperBaseInfoChanged()},br.prototype.getPaperFooter=function(Ke){var je=this.index+Ke;return je==0?this.firstPaperFooter?this.firstPaperFooter:this.oddPaperFooter?this.oddPaperFooter:this.paperFooter:je%2==0?this.oddPaperFooter?this.oddPaperFooter:this.paperFooter:je%2==1?this.evenPaperFooter?this.evenPaperFooter:this.paperFooter:void 0},br.prototype.getContentHeight=function(Ke){return this.getPaperFooter(Ke)-this.paperHeader},br.prototype.createRuler=function(){this.target.append(`<div class="hiprint_rul_wrapper">
<img class="h_img" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAAPCAYAAAC891QNAAAKxklEQVR4Xu1dPezlQxQ92yE6opGIaOg2QeWjUVjRSCg24qMgQtBItHazq5XoJBtBgYiCROGz0CBRiGRVdKISoRNKcmIudyfze+/tvL27v/Oc1+yX3/ife2buOXPv/OYdAXASwCnof4xjXRyaD/NREQHPq4qozo9pPuZjV/Gk+aiI6vyY5mM+dhVPmo+KqM6PaT7mY1fxpPmoiOr8mOZjPnYVT5qPiqjOj2k+5mNX8aT5qIjq/JjmYz52FU+aj4qozo9pPuZjV/Gk+aiI6vyY5mM+dhVPmo+KqE6OeQTAXwD4q/rHONbFoPkwHxUR8LyqiOr8mOZjPnYVT5qPiqjOj2k+5mNX8aT5qIjq/JjmYz52FU+aj4qozo9pPuZjV/Gk+aiI6vyY5mM+dhVPmo+KqM6PaT7mY1fxpPmoiOr8mOZjPnYVT5qPiqjOj2k+5mNX8aT5qIjq5JhuoE8GrvAxL5DC4E4MbT4mglb4iPkoDO7E0OZjImiFj5iPwuBODG0+JoJW+Ij5KAzuxNDmYyJohY+Yj8LgTgxtPiaCVviI+SgM7sTQ5mMiaIWPmI/C4E4MbT4mglb4iPkoDO7E0OZjImiFj5iPwuBODG0+JoJW+Ij5KAzu+Q6dG+gPAXgLwBkAzwH483wHu8T/fZ5YtwO4HsDbAK5qvx4DcAeAry7xz7ntfx84go9PAfD3/BCPEo4rALwM4Mk0r/h3ajjihgbOpacBvARAFUfMK84nrofvRfkIHGcBHAfwqyCOmwC8C+BoW98PA/hEEAfXxwsATgNQzlfE0eug6jrnlNqmg2vW/CU9Jy7+3D82Lb+xrSH+PfPAD9sE9iL/+y6+hOuemqjIB+fYly2m4a8UccS0yHNLEUf2u+Hl71+xt99lfZwA8KLo+ghd5PwKbbxHkI/Is/QqyvlqtB9UWOe77AcVcfwG4HIAzwN4BQD/rIgj78+V1kc/r7gnUdTzHgfnUe8V1eeVkp5vyldKet7jYP2H+1w1Pe9xXJ1qD8r5alQXXfs637UuqoiDfQM1Pd/Gh8r6GOG4WVDPRziiH6W0P982r1T0fBsOFT0f4eC+Q03PRziuE9TzbfNq9fXEaKDTTEVjkMW2KE5f5FrzXv+7KMRFwSqLHvGwURgY13w4gDjIB3l4NTVBGBw1HPmrAe5rHNwqjIPifWc7YBLrRGlekY8nALzfClW5wKCEI+crYmAiZlFaeX0EL4o4Mh807PzwAJMaHz0OYlDNu9t08HUAj7XDQGvU/JGeM2/FgawwVzzs91Hj6d7273sZiQv88JIvCT38qTUP3gHwoBgfbPrHh40pziNytGYvucQHcURzjc3arIcq64N8sNHJJsgHjZh86E8JRy6UEMNlgvkqr4/ghc0pxfURfHwL4BEAH4rykXGweKKQd3fZDyro+QjHN63w83M6KL729THC8XvTDCU9H+GInKWk50s41PR8aX2o6fmmfMUXWFT0fNP6UNLzTXwo6fk2HCp6vktdVEHPRzi47eBLIUp6PsLBnMs9oJKej3DECwVKer6EQ03Pl9aHmp5vyldKer5pfSjp+SY+lPR8G47V63k00Lmgo/jcF+AucD25bLilN1miwE4h6ZuHZT/MHgP3VzTEz09+2ChQxMFmzrWt8fyUKA6ui1sAXAngTQCKOPKJn3gb6lFBPpivuC54s4EyjhCQnHNV81W8ofZee1tQEUfWwXh7+xrB9RHzKr+B3vPxHYDbWsN5jZq/yxvoNIvx5tofrbHD3LymA3KbcNAmMPah7Wv2YJtwxNp/pt0EooqD/vCXhoE3mijiyDcC8BApG1SKOJiveJjs7vbGsyqO2ArE3oNFYEU+iIM+/oF20wf/rIgjdDAKo58J6SBjvrQfVNLzjIP72fzGmtL66HGo6nmPQ1XPexyqep5xcD3EjQBqet7nK1U9H61zRT3vcajq+UgHFfV8U11USc8zjv4NdCU973Go6nmPQ1XPexyqep5x5BsB1PS8z1eqej5a54p63uNQ1fORDkrouRvoe3S6ix6NQjWLCnzb7ot2vatiQyqfMFFvSDHBftyKhqoN9EPh49Aanflgj+I6H725rdp4jje3WVjnlaI3uIFepHSbh/0/NNCpiZxvfCtSqdCQD2YEi9EEUWpIZRxxiISNc35UG+iHwodyo7NfH/mAUhyYobdXOrjUv7mtvM75hhQ/XwN4Q6SBvm0/qFJw73GQB8UG+giHop6PcGROVNZ5j0NVzw+VD1U9H/GhqOc9DlU9H61zRT0Pn75UF1XR8x4HbzBR1PMRDkU9H+FQ1PMeBw9Qs+6ruD8nln5PqFgvyTiivivR6ATQv5g6qv3w1j6l/Xnmg7/nja/xUpGKbx+tcxk9P8Qr3PtkFUZR6Ypqvil8CsBr6TtdFXEcypXIxBHf2875xZNjkbCU5tWh8DFqoCvywfwbVyvx6xr4UVzn5ONxACcB8ISl8tXnIejBg+JV9KM30Pt5pXRFXL/5yNc7q1zh3vsSYrqr3dbAf1O5anvJX4VxV7gSeWl9vNUWP281eVbkSv1D5aMvuKvOK/ITX9fAt21V1zkP+nyeNujKfOR8q6CDu+wHVXH0DXT+ee1XuI/4UNTzTfNKSc+XcKjp+SHzoajnIz4U9XyEQ1HPl/hQ0/Nd6nAKej7C0TfQFfR8hIPNKLX9+aZ5paTnSzjU9PyQ+egb6Ar7waV8pbY/H+Hgi15q+/MlPmT0PBro/JVFaSaoM+1q5Py2KgH1JzjW/HdRcCee3Pzk96byOqy1Y2NDiqcwjkY3RxRHnlcsSh8TxhGFHn7/I9eI4rw6JD4iX6nPq3yanTnW8+rS5ef8FQehg6p85Mbakg7yIFBoPgtcvAZ9jdqY9TxyGDe4/P4lrpmzTSePtwNna/UqGccJAKdTw5baqMhHXh/x8yviyE110kKfqIjjUPg4FBycV/mGGeYmz6uLqzM578YekGs8fr92PnbdDyri4PrIb6zxDSNFHIp6vm1eqej5CIeinh8yH4p6vjSv1PT8kOeVop7vWodbuw6OcCjq+QiHop5vm1cqer40r6KmpbQ/31SnVuZDUc+X5pWanh/yOpfS89xAT71aqWZ5/NxrLZr75/tvZpkjrYMonrueu9aFHAGv3zUfnHO+cr5yvnK+WuMhIOcm5ybnJucm56aLe3jGedd513nXedd513nX9WfXr1y/+kcLvBYcA8+DPdeCG+h7BtCJyMm47U0sSBYkC5LzqQt2Lti5YOeCnQt2LtjZE9oT2hPaE9oT2hPaE9oT2hPaE9oT2hPaE9oT2hPaE9oTintCN9CdyJ3IncidyMUTuQ/y+CCPD/L8u4hdpHCRwkUKe1t7W3tbe1t7Wzeu3LiyJ7QntCe0J7QntCe0J7QntCe0J7QntCfcyxO6gW5DaUNpQ2lDaUNpQ2lDaUNpQ7mXofRBHh/k8UEeH+RJdsqaYk2xprjO4DqD6wyuM7jO4DqD6wz2hPaE9oT2hPaE9oTSntANdCcxJzEnMekk5qaNmzZu2rhp46bNOdU5FylcpHCRwv7e/t7+3v7ejSs3rty4sie0J7QntCe0J7QntCe0J7QntCe0J9zDE7qBbjNlM2UzZTNlM2UzZTNlM7WHmfJBHh/k8UEeH+TxQR4f5DnXTsK6al1148q1FtdaXGtxrcW1FtdaXGuxJ7QntCe0J7QnFPaEfwNdvyoPYn5mCwAAAABJRU5ErkJggg==" />
<img class="v_img" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAAPCAYAAAC891QNAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAiHSURBVHhe7Z29q21HGYevplLTKSL4UQQkwUYQG1EUtBGba5qkyEeX+NGI9irof2ClvTaCtoqgoEkISAIpTZMiJBCCQsCvSq7vc88emExm7XO2++Tc+S2fB17WmnftzZ3ffWf2b601a+9za8Kdw7bHnDkwZw7MmQNz5sCcOTBnDsyZA3PmwJw5MGcOzJkDc+bAnDkwZw7MmYPlc+897IiIiIiIiIiIiIiIiIiIiPxf4wK6iIiIiIiIiIiIiIiIiIhI4QK6iIiIiIiIiIiIiIiIiIhI4QK6iIiIiIiIiIiIiIiIiIhI4QK6iIiIiIiIiIiIiIiIiIhIkbCA/vmKOxW/rfggieKxCvJJzHTQJl6qeJBEADMd7JOjLinMdDxd8b6L3Rj2XI+96IDbFSlzHPZcj59WkGO74nynT62P7f96poNj5FeGMY+/EQ363I+h1XXM6tHmAvF9EkWiDrZp42prfox9th43w551AP1/6mL3LtbjZtia57SJ1vdkHX09mq5VrwdnOug7/sexRqIO6tD63fw8UQdb2unjivkxzulEHXupx150AP3v/TxRx17q0XyQaPM9WUdfD/b716zGTAd9H/08UUfrM9H8PFEHW9rp42rm59bjZtizDqD/vZ9bj5tha57TJtp8T9bR1+Md64OzBfT3HLY99yr3/oovV3yo4scVX62YvW7GdfflnNyWDuKhit9VvFox45x/97pzMx2PH/Y59kBFG2wjN9G/q+a2dPys4l8V/aQZuYn+XTW393qwz+s/XLF1IXXdfTknN9PRXoeGv17sTrnuvpyTu2xcfboitR5fqHimgtd/s+LfFTOuuy+n5D5TQR/pP3P4YxVb4+oyzu3LyKm5r1U8eojvkRiYvXfGdfSl55TcWA/q0Grwg4o/HPavwin/7si5uVHHJw9b2knjaqaDmyTPVrST4Nl7Z5zbl5FTcnuuR9PxnYonK2bvnXFuX0ZOyc3mObB982J3+t4Z5/Zl5JTcZePq2xWz9844ty8jp+RGHb0Pcvy5w/YqnPLvjpybO6ajn+fEyteDW/Ojh9cRaTpmfk4k6djyDyJNx8zPCevxdt6N3DEdvZ8TafMc2PZ+TiSPq+bnRJKOLT8nUnW0eZ5wH25rfvSk6hj9PFHHzD9SdYx+bj1uLndMR/Pz1HkObJuf72Fc4eeJOmZ+nq6Dvrd5/o71wdW/gY6gNyr+VsHiE4tQiWzpwEi+W/HDiq2FnJU4Vg/6z2Dj2OrMdPy64hsVH6/4VUWqjkZ6PRLZ0tFMI6EWcFk9/l5BfnVmOjBFThg5kW9PJq8GfXyhgjn8jwoMPXF+8LTePyu4CUK/7z/k0hjrQZs5zYkUF+ecKCYw6uhPZtHwi4vd5Rl13FeB1/FwzNcrOJbAXuvR60hi1EEbuJn7l4vdCC6rxyuH7eqMOvDBj1b8vmLVb6fNmOmY+fnq14Nb82MkUcfMz9N0bPlHmo4tP7ceN8MxHT2J8xxGP0+vR/PzNB1bfp6oY+v6nNeseh9ua37MSNMx83NI0rHlH5Ck49j1ufV49zmmYyRJB22YXZ8n16O/Pk/Scez6PE3H6OfT9UH/Bvq9g8FFYY59CzIBBtYTFasuRp3KFyv+dLEbCSeN1IIFQn6WInHBCnodKTdKt+DEMXlMASeLPJX1fMUvK1Y0wqvAIu6PKnjyDLNMH1tyb+AhDJ7e7S/O03irghsMzOk9zANOhDmnevluKw/qwcUTT7nie+NP3qXQ6/gJiWC4uE0eU0A98GzmOR7e3/hJ4/WKz1Xwiyb8usle2Mv1YKqO0c8Tdcz8PHlc9X6eWo/Rz9N1ND9PHVejn6fWY/Tz1HqMfp6qY2Qv90VTdYx+nqhj5ufJ46r389R6jH6erqP5eeq4Gv08tR6jn6fWY/TzVB1bvG19cPUFdCb4RyqYJHz4tp9pAH4OJKUoMx2frfhzBfD3Gzi2OjMdn6j4TQVPl6SwNa74KQcW1lJuls50sLDJT07QfrEi4SJkqx4PV/AtYj6UeRJodWY62O8NPoGZDk4WOZnHHB+p4NjqbI0r4MESFtNXHFf0CX9ofXytYkvHyj7IZ88HKvAI+s0DC+3z6OcV/QM+K+sY6/Gfw5Zv1nNhe7uikaSD9qcqvlIxfj6l6YBvVXDC3pOmg4snzkF4Ur/pgiQdzHMegEMHDyulfF7N6rH18FtaPb5UgXfj4XzDq5Gko39oL8kHRx0zP+f46teDs/kBnBu2m7yJOmZ+nlqP0c9TdUDv56k6Rj9P1DHz89R6jH6eWo/RzxN1zPw8UcfMzxPui87mB/R+nqhj5uep9Rj9PHlc9X6eqmP080QdMz9Prcfo56n1GP08UcfMzxN1bN1vT1sfvAtmztM+TPh2MsUAI9/g+OqMOgj2ybUbWok6GHTtD/C3BZFUHdyAa2MMEnW0NpE8rjjx5WdA0nXQd9pE+1mTRB0E++TajepEHf3n1arjatbHUQdwjHxjNR3Q5nH/kz70uemC1XXM6sE2rR7HxhXR+p6qo+030nT07fRxhUek66Df9J820XwvsR5safefw4k66C/tvXzuNh39WGuvSdBBv5kXHINUHWxpp9ejjSuC/WQdbR8SdfTt9HE1+nmijr7PBJpS68GWdvPzVB178cFRR/8atrQTdND33s9TdbClnV6P0c+TdbR9SNTRt9PH1ejniTrod/MKon1upekAtrSbn6fq2IsPznS088XGajr+Z/YiRB1roY61UMdaqGMt1LEW6lgLdayFOtZCHWuhjrVQx1qoYy3UsRbqWAt1rIU61kIda6GOtVDHWtzxb6CLiIiIiIiIiIiIiIiIiIgU9x22e+CPh2066lgLdayFOtZCHWuhjrVQx1qoYy3UsRbqWAt1rIU61kIda6GOtVDHWqhjLdSxFupYC3WshTqW4dat/wKB2hwSL8nDjQAAAABJRU5ErkJggg==" />
</div>`)},br.prototype.displayHeight=function(){return this.mmheight-Se.a.instance.paperHeightTrim+"mm"},br.prototype.displayWidth=function(){return this.mmwidth+"mm"},br.prototype.getPanelTarget=function(){return this.target.parent(".hiprint-printPanel ")},br}(),Oe=Ae(6),Je=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Or){dr.__proto__=Or}||function(dr,Or){for(var qr in Or)Or.hasOwnProperty(qr)&&(dr[qr]=Or[qr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),Ye=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new cr(sr),dr.options.setDefault(new cr(Se.a.instance.longText.default).getPrintElementOptionEntity()),dr}return Je(Ke,br),Ke.prototype.getDesignTarget=function(je){var sr=br.prototype.getDesignTarget.call(this,je);return sr.find(".hiprint-printElement-longText-content").css("border","1px dashed #cebcbc"),sr},Ke.prototype.getProxyTarget=function(je){je&&this.SetProxyTargetOption(je);var sr=this.getData(),dr=this.createTarget(this.printElementType.getText(!0),sr);return this.updateTargetSize(dr),this.css(dr,sr),dr},Ke.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var je=this.getData(),sr=this.getHtml(this.designPaper)[0].target;this.designTarget.find(".hiprint-printElement-longText-content").html(sr.find(".hiprint-printElement-longText-content").html()),this.css(this.designTarget,je)}},Ke.prototype.getConfigOptions=function(){return Se.a.instance.longText},Ke.prototype.getTitle=function(){return this.options.title||this.printElementType.title},Ke.prototype.getData=function(je){return je?je[this.getField()]||"":this.options.testData||this.printElementType.getData()||""},Ke.prototype.updateTargetText=function(je,sr,dr){var Or=je.find(".hiprint-printElement-longText-content"),qr=this.getText(sr,dr);Or.html(qr)},Ke.prototype.createTarget=function(je,sr){var dr=$$g('<div class="hiprint-printElement hiprint-printElement-longText" style="position: absolute;"><div class="hiprint-printElement-longText-content hiprint-printElement-content" style="height:100%;width:100%"></div></div>');return this.updateTargetText(dr,je,sr),dr},Ke.prototype.getText=function(je,sr){var dr=this.getFormatter();return sr&&(sr=this.options.leftSpaceRemoved!=0?sr.toString().replace(/^\s*/,""):sr),(this.getField()?(this.options.getHideTitle()?"":je?je+":":"")+(dr?dr(je,sr,this.options,this._currenttemplateData):sr):dr?dr(je,je,this.options,this._currenttemplateData):je||"")||""},Ke.prototype.getHtml=function(je,sr){this.setCurrenttemplateData(sr),this.createTempContainer();var dr=this.getPaperHtmlResult(je,sr);return this.removeTempContainer(),dr},Ke.prototype.getHeightByData=function(je){this.createTempContainer();var sr=this.getPaperHtmlResult(new or("",1e3,1e3,0,25e3,0,0,!0,void 0,0,void 0),{},je);return this.removeTempContainer(),sr[0].referenceElement.bottomInLastPaper-sr[0].referenceElement.printTopInPaper},Ke.prototype.getLongTextIndent=function(){return this.options.longTextIndent?'<span class="long-text-indent" style="margin-left:'+this.options.longTextIndent+'pt"></span>':'<span class="long-text-indent"></span>'},Ke.prototype.getPaperHtmlResult=function(je,sr,dr){var Or=this,qr=[],gn=0,mn=dr||this.getData(sr),Ln=this.getText(this.getTitle(),mn),We=this.createTarget(this.getTitle(),this.options.testData||"");this.css(We,mn),sr?this.updateTargetWidth(We):this.updateTargetSize(We),this.getTempContainer().html(""),this.getTempContainer().append(We);var ke=[this.getLongTextIndent()],Wr=Ln.split(new RegExp(`\r|
`,"g"));if(Wr.forEach(function(Ki,Gi){var Ii=Or.options.leftSpaceRemoved!=0?(Ki||"").toString().replace(/^\s*/,""):Ki;ke=ke.concat(Ii.split("")),Gi<Wr.length-1&&ke.push("<br/>"+Or.getLongTextIndent())}),ke.length==0&&(ke=[""]),this.isHeaderOrFooter()||this.isFixed()||!sr)return(Mn=this.getStringBySpecificHeight(ke,25e3,We)).target.css("left",this.options.displayLeft()),Mn.target.css("top",this.options.displayTop()),Mn.target[0].height="",qr.push(new Oe.a({target:Mn.target,printLine:this.options.displayTop()+Mn.height,referenceElement:new Xe.a({top:this.options.getTop(),left:this.options.getLeft(),height:this.options.getHeight(),width:this.options.getWidth(),beginPrintPaperIndex:je.index,bottomInLastPaper:this.options.getTop()+Mn.height,printTopInPaper:this.options.getTop()})})),qr;for(var Bn=this.getBeginPrintTopInPaperByReferenceElement(je);ke.length>0;){var Jn=0,pi=je.getPaperFooter(gn);gn==0&&Bn>pi&&(Bn=Bn-pi+je.paperHeader,qr.push(new Oe.a({target:void 0,printLine:void 0})),gn++,Jn=je.getContentHeight(gn)-(Bn-je.paperHeader),pi=je.getPaperFooter(gn));var Mn=this.getStringBySpecificHeight(ke,Jn>0?Jn:gn==0?pi-Bn:je.getContentHeight(gn),We);ke.splice(0,Mn.length);var Fi=void 0,Ui=void 0;Mn.target.css("left",this.options.displayLeft()),Mn.target[0].height="",gn==0||Jn>0?(Ui=Bn,Mn.target.css("top",Ui+"pt"),Fi=ke.length>0?Bn+Mn.height:this.options.lHeight!=null?Bn+(Mn.height>this.options.lHeight?Mn.height:this.options.lHeight):Bn+Mn.height):(Ui=je.paperHeader,Mn.target.css("top",Ui+"pt"),Fi=Ui+Mn.height),qr.push(new Oe.a({target:Mn.target,printLine:Fi,referenceElement:new Xe.a({top:this.options.getTop(),left:this.options.getLeft(),height:this.options.getHeight(),width:this.options.getWidth(),beginPrintPaperIndex:je.index,bottomInLastPaper:Fi,printTopInPaper:Ui})})),gn++}return qr},Ke.prototype.getStringBySpecificHeight=function(je,sr,dr){var Or=Ce.a.pt.toPx(sr),qr=this.IsPaginationIndex(je,je.length-1,Or,dr);return qr.IsPagination?qr:this.BinarySearch(je,0,je.length-1,Or,dr)},Ke.prototype.BinarySearch=function(je,sr,dr,Or,qr){var gn=Math.floor((sr+dr)/2);if(sr>dr)return qr.find(".hiprint-printElement-longText-content").html(""),{IsPagination:!0,height:0,length:0,target:qr.clone()};var mn=this.IsPaginationIndex(je,gn,Or,qr);return mn.IsPagination?mn:mn.move=="l"?this.BinarySearch(je,sr,gn-1,Or,qr):this.BinarySearch(je,gn+1,dr,Or,qr)},Ke.prototype.IsPaginationIndex=function(je,sr,dr,Or){Or.find(".hiprint-printElement-longText-content").html(je.slice(0,sr+2).join(""));var qr=Or.height();Or.find(".hiprint-printElement-longText-content").html(je.slice(0,sr+1).join(""));var gn=Or.height();return sr>=je.length-1&&gn<dr?{IsPagination:!0,height:Ce.a.px.toPt(gn),length:je.length,target:Or.clone()}:gn<=dr&&qr>=dr?{IsPagination:!0,height:gn,length:sr+1,target:Or.clone()}:gn>=dr?{IsPagination:!1,move:"l"}:qr<=dr?{IsPagination:!1,move:"r"}:{IsPagination:!0,result:1}},Ke}(ze.a),rr=function(){function br(){}return br.replaceEnterAndNewline=function(Ke,je){return Ke.replace(new RegExp(`\r|
|/g`,"g"),je)},br.replaceTab=function(Ke,je){return Ke.replace(new RegExp(" /g","g"),je)},br.replaceEnterAndNewlineAndTab=function(Ke,je){return Ke.replace(new RegExp(`\r|
| |/g`,"g"),je)},br}(),vr=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Or){dr.__proto__=Or}||function(dr,Or){for(var qr in Or)Or.hasOwnProperty(qr)&&(dr[qr]=Or[qr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),er=function(br){function Ke(je){var sr=br.call(this,je)||this;return sr.title&&(sr.title=rr.replaceEnterAndNewlineAndTab(sr.title,"")),sr}return vr(Ke,br),Ke.prototype.getHideTitle=function(){return this.hideTitle==null?this.defaultOptions.hideTitle:this.hideTitle},Ke.prototype.getTextType=function(){return(this.textType==null?this.defaultOptions.textType:this.textType)||"text"},Ke.prototype.getFontSize=function(){return(this.fontSize==null?this.defaultOptions.fontSize:this.fontSize)||9},Ke.prototype.getbarcodeMode=function(){return(this.barcodeMode==null?this.defaultOptions.barcodeMode:this.barcodeMode)||"CODE128"},Ke}(Ve.a),Ar=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Or){dr.__proto__=Or}||function(dr,Or){for(var qr in Or)Or.hasOwnProperty(qr)&&(dr[qr]=Or[qr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),gr=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new er(sr),dr.options.setDefault(new er(Se.a.instance.text.default).getPrintElementOptionEntity()),dr}return Ar(Ke,br),Ke.prototype.getDesignTarget=function(je){return br.prototype.getDesignTarget.call(this,je)},Ke.prototype.getProxyTarget=function(je){je&&this.SetProxyTargetOption(je);var sr=this.getData(),dr=this.createTarget(this.printElementType.getText(!0),sr);return this.updateTargetSize(dr),this.css(dr,sr),dr},Ke.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var je=this.getData();this.css(this.designTarget,je),this.updateTargetText(this.designTarget,this.getTitle(),je)}},Ke.prototype.getConfigOptions=function(){return Se.a.instance.text},Ke.prototype.getTitle=function(){var je=this.options.title||this.printElementType.title||"";return je&&(je=rr.replaceEnterAndNewlineAndTab(je,"")),je},Ke.prototype.getData=function(je){var sr=void 0;if(sr=je?je[this.getField()]||"":this.options.testData||this.printElementType.getData()||"",this.options.format){if(this.options.dataType=="datetime")return Ce.a.dateFormat(sr,this.options.format);if(this.options.dataType=="boolen"){var dr=this.options.format.split(":");if(dr.length>0)return sr===!0||sr==="true"?dr[0]:dr[1]}}return sr},Ke.prototype.updateTargetText=function(je,sr,dr,Or){var qr=this.getFormatter(),gn=je.find(".hiprint-printElement-text-content"),mn="";mn=this.getField()?(this.options.getHideTitle()?"":sr?sr+":":"")+(qr?qr(sr,dr,this.options,this._currenttemplateData,je):dr):dr=qr?qr(sr,sr,this.options,this._currenttemplateData,je):sr;var Ln=this.options.getTextType();if(Ln=="text")gn.html(mn);else{if(Ln=="barcode"){gn.html('<svg width="100%" display="block" height="100%" class="hibarcode_imgcode" preserveAspectRatio="none slice"></svg ><div class="hibarcode_displayValue"></div>');try{dr?(JsBarcode$1(gn.find(".hibarcode_imgcode")[0],dr,{format:this.options.getbarcodeMode(),width:1,textMargin:-1,lineColor:this.options.color||"#000000",margin:0,height:parseInt(Ce.a.pt.toPx(this.options.getHeight()||10).toString()),displayValue:!1}),gn.find(".hibarcode_imgcode").attr("height","100%"),gn.find(".hibarcode_imgcode").attr("width","100%"),this.options.hideTitle||gn.find(".hibarcode_displayValue").html(dr)):gn.html("")}catch(Wr){console.log(Wr),gn.html("此格式不支持该文本")}}if(Ln=="qrcode"){gn.html("");try{if(dr){var We=parseInt(Ce.a.pt.toPx(this.options.getWidth()||300)),ke=parseInt(Ce.a.pt.toPx(this.options.getHeight()||300));new QRCode(gn[0],{width:We,height:ke,colorDark:this.options.color||"#000000",useSVG:!0,correctLevel:QRCode.CorrectLevel.H}).makeCode(dr)}}catch(Wr){console.log(Wr),gn.html("二维码生成失败")}}}},Ke.prototype.onResize=function(je,sr,dr,Or,qr){br.prototype.onResize.call(this,je,sr,dr,Or,qr),this.options.getTextType()!="barcode"&&this.options.getTextType()!="qrcode"||this.updateTargetText(this.designTarget,this.getTitle(),this.getData())},Ke.prototype.createTarget=function(je,sr,dr){var Or=$$g('<div tabindex="1" class="hiprint-printElement hiprint-printElement-text" style="position: absolute;"><div class="hiprint-printElement-text-content hiprint-printElement-content" style="height:100%;width:100%"></div></div>');return this.updateTargetText(Or,je,sr,dr),Or},Ke.prototype.getHtml=function(je,sr,dr){return this.getHtml2(je,sr,dr)},Ke}(ze.a),mr=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Or){dr.__proto__=Or}||function(dr,Or){for(var qr in Or)Or.hasOwnProperty(qr)&&(dr[qr]=Or[qr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),Ur=function(br){function Ke(je){return br.call(this,je)||this}return mr(Ke,br),Ke}(Ve.a),Lr=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Or){dr.__proto__=Or}||function(dr,Or){for(var qr in Or)Or.hasOwnProperty(qr)&&(dr[qr]=Or[qr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),Mr=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new Ur(sr),dr.options.setDefault(new Ur(Se.a.instance.html.default).getPrintElementOptionEntity()),dr}return Lr(Ke,br),Ke.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var je=this.getData();this.css(this.designTarget,je),this.updateTargetHtml()}},Ke.prototype.updateTargetHtml=function(){var je=this.getFormatter();if(je){var sr=je(this.getData(),this.options,this._currenttemplateData);this.designTarget.find(".hiprint-printElement-html-content").html(sr)}},Ke.prototype.getConfigOptions=function(){return Se.a.instance.html},Ke.prototype.createTarget=function(je,sr){var dr=$$g('<div class="hiprint-printElement hiprint-printElement-html" style="position: absolute;"><div class="hiprint-printElement-html-content" style="height:100%;width:100%"></div></div>'),Or=this.getFormatter();if(Or){var qr=Or(this.getData(),this.options,this._currenttemplateData);dr.find(".hiprint-printElement-html-content").append(qr)}else this.options.content&&dr.find(".hiprint-printElement-html-content").append(this.options.content);return dr},Ke.prototype.getHtml=function(je,sr,dr){return this.getHtml2(je,sr,dr)},Ke}(ze.a),Qr=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Or){dr.__proto__=Or}||function(dr,Or){for(var qr in Or)Or.hasOwnProperty(qr)&&(dr[qr]=Or[qr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),Dr=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new Ve.a(sr),dr.options.setDefault(new Ve.a(Se.a.instance.vline.default).getPrintElementOptionEntity()),dr}return Qr(Ke,br),Ke.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var je=this.getData();this.css(this.designTarget,je)}},Ke.prototype.getConfigOptions=function(){return Se.a.instance.hline},Ke.prototype.createTarget=function(je,sr){return $$g('<div class="hiprint-printElement hiprint-printElement-vline" style="border-left:1px solid;position: absolute;"></div>')},Ke.prototype.getReizeableShowPoints=function(){return["s"]},Ke.prototype.getHtml=function(je,sr,dr){return this.getHtml2(je,sr,dr)},Ke}(ze.a),Xr=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Or){dr.__proto__=Or}||function(dr,Or){for(var qr in Or)Or.hasOwnProperty(qr)&&(dr[qr]=Or[qr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),sn=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new Ve.a(sr),dr.options.setDefault(new Ve.a(Se.a.instance.hline.default).getPrintElementOptionEntity()),dr}return Xr(Ke,br),Ke.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var je=this.getData();this.css(this.designTarget,je)}},Ke.prototype.getConfigOptions=function(){return Se.a.instance.hline},Ke.prototype.createTarget=function(je,sr){return $$g('<div class="hiprint-printElement hiprint-printElement-hline" style="border-top:1px solid;position: absolute;"></div>')},Ke.prototype.getReizeableShowPoints=function(){return["e"]},Ke}(ze.a),ur=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Or){dr.__proto__=Or}||function(dr,Or){for(var qr in Or)Or.hasOwnProperty(qr)&&(dr[qr]=Or[qr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),_r=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new Ve.a(sr),dr.options.setDefault(new Ve.a(Se.a.instance.rect.default).getPrintElementOptionEntity()),dr}return ur(Ke,br),Ke.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var je=this.getData();this.css(this.designTarget,je)}},Ke.prototype.getConfigOptions=function(){return Se.a.instance.hline},Ke.prototype.createTarget=function(je,sr){return $$g('<div class="hiprint-printElement hiprint-printElement-rect" style="border:1px solid;position: absolute;"></div>')},Ke.prototype.getHtml=function(je,sr,dr){return this.getHtml2(je,sr,dr)},Ke}(ze.a),Fr=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Or){dr.__proto__=Or}||function(dr,Or){for(var qr in Or)Or.hasOwnProperty(qr)&&(dr[qr]=Or[qr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),Pr=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new Ve.a(sr),dr.options.setDefault(new Ve.a(Se.a.instance.oval.default).getPrintElementOptionEntity()),dr}return Fr(Ke,br),Ke.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var je=this.getData();this.css(this.designTarget,je)}},Ke.prototype.getConfigOptions=function(){return Se.a.instance.hline},Ke.prototype.createTarget=function(je,sr){return $$g('<div class="hiprint-printElement hiprint-printElement-oval" style="border:1px solid;position: absolute;border-radius: 50%;"></div>')},Ke.prototype.getHtml=function(je,sr,dr){return this.getHtml2(je,sr,dr)},Ke}(ze.a),kr=function(){function br(){}return br.createPrintElement=function(Ke,je){return Ke.type=="text"?new gr(Ke,je):Ke.type=="image"?new Ze(Ke,je):Ke.type=="longText"?new Ye(Ke,je):Ke.type=="table"?new Re.a(Ke,je):Ke.type=="html"?new Mr(Ke,je):Ke.type=="vline"?new Dr(Ke,je):Ke.type=="hline"?new sn(Ke,je):Ke.type=="rect"?new _r(Ke,je):Ke.type=="oval"?new Pr(Ke,je):void 0},br}(),Vr=function(){function br(Ke){this.field=Ke.field,this.fields=Ke.fields,this.title=Ke.title,this.text=Ke.text,this.tid=Ke.tid,this.data=Ke.data,this.styler=Ke.styler,this.formatter=Ke.formatter,this.type=Ke.type,this.onRendered=Ke.onRendered,this.options=Ke.options}return br.prototype.getText=function(Ke){return Ke?this.title||this.text||"":this.text||this.title||""},br.prototype.getData=function(){return this.data},br.prototype.createPrintElement=function(Ke){var je={};return $$g.extend(je,Ke||{}),kr.createPrintElement(this,je)},br.prototype.getPrintElementTypeEntity=function(){return new He({title:this.title,type:this.type})},br.prototype.getFields=function(){return this.fields},br.prototype.getOptions=function(){return this.options||{}},br}(),nn=Ae(16),Jr=Ae(12),wn=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Or){dr.__proto__=Or}||function(dr,Or){for(var qr in Or)Or.hasOwnProperty(qr)&&(dr[qr]=Or[qr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),Cn=function(br){function Ke(je){var sr=br.call(this,je)||this;return(je=je||{}).columns?(sr.columns=[],je.columns.forEach(function(dr){sr.columns.push(new Jr.a(dr))})):sr.columns=[new Jr.a({columns:[new Ue.a({width:100}),new Ue.a({width:100})]})],sr.lHeight=je.lHeight,sr.autoCompletion=je.autoCompletion,sr.tableFooterRepeat=je.tableFooterRepeat,sr}return wn(Ke,br),Ke.prototype.getPrintElementOptionEntity=function(){var je=br.prototype.getPrintElementOptionEntity.call(this);return je.columns=[],this.columns.forEach(function(sr){je.columns.push(sr.getPrintElementOptionEntity())}),je},Ke}(Ve.a),On=Ae(7),In=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Or){dr.__proto__=Or}||function(dr,Or){for(var qr in Or)Or.hasOwnProperty(qr)&&(dr[qr]=Or[qr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),Xn=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new Cn(sr),dr.options.setDefault(new Cn(Se.a.instance.tableCustom.default).getPrintElementOptionEntity()),dr.columns=dr.options.columns,dr}return In(Ke,br),Ke.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){this.css(this.designTarget,this.getData());var je=this.designTarget.find(".hiprint-printElement-table-content"),sr=this.getHtml(this.designPaper);je.html(""),je.append(sr[0].target.find(".hiprint-printElement-tableTarget")),this.setHiReizeable()}},Ke.prototype.getDesignTarget=function(je){var sr=this;return this.designTarget=this.getHtml(je)[0].target,this.designPaper=je,this.designTarget.click(function(){Ce.a.event.trigger(sr.getPrintElementSelectEventKey(),{printElement:sr})}),this.designTarget.find("td").hidroppable({accept:".rn-draggable-item",onDrop:function(Or,qr){},onDragEnter:function(Or,qr){$$g(qr).removeClass("rn-draggable-item")},onDragLeave:function(Or,qr){$$g(qr).addClass("rn-draggable-item")}}),this.designTarget},Ke.prototype.getConfigOptions=function(){return Se.a.instance.tableCustom},Ke.prototype.createTarget=function(je,sr,dr){var Or=$$g('<div class="hiprint-printElement hiprint-printElement-table" style="position: absolute;"><div class="hiprint-printElement-table-handle"></div><div class="hiprint-printElement-table-content" style="height:100%;width:100%"></span></div>');return Or.find(".hiprint-printElement-table-content").append(this.getTableHtml(sr,dr)),Or},Ke.prototype.getTableHtml=function(je,sr){var dr=$$g('<table class="hiprint-printElement-tableTarget" style="border-collapse: collapse;width:100%;"></table>');return dr.append(On.a.createTableHead(this.columns,this.options.getWidth())),dr.append(On.a.createTableRow(this.columns,je,this.options,this.printElementType)),this.printElementType.footerFormatter&&(this.options.tableFooterRepeat=="no"||(this.options.tableFooterRepeat=="last"?dr.find("tbody").append(On.a.createTableFooter(this.printElementType.columns,je,this.options,this.printElementType,sr,je).html()):dr.append(On.a.createTableFooter(this.printElementType.columns,je,this.options,this.printElementType,sr,[])))),dr},Ke.prototype.getHtml=function(je,sr){this.setCurrenttemplateData(sr),this.createTempContainer();var dr=this.getPaperHtmlResult(je,sr);return this.removeTempContainer(),dr},Ke.prototype.getPaperHtmlResult=function(je,sr){var dr=[],Or=this.getData(sr),qr=this.getTableHtml(Or,sr),gn=this.createTarget(this.printElementType.title,[],sr);sr?this.updateTargetWidth(gn):this.updateTargetSize(gn),this.css(gn,Or),this.css(qr,Or),this.getTempContainer().html(""),this.getTempContainer().append(gn);for(var mn,Ln=this.getBeginPrintTopInPaperByReferenceElement(je),We=0,ke=!1;!ke;){var Wr=0,Bn=je.getPaperFooter(We);We==0&&Ln>Bn&&(Ln=Ln-Bn+je.paperHeader,dr.push(new Oe.a({target:void 0,printLine:void 0})),We++,Wr=je.getContentHeight(We)-(Ln-je.paperHeader),Bn=je.getPaperFooter(We));var Jn=dr.length>0?dr[dr.length-1].target:void 0,pi=this.getRowsInSpecificHeight(Wr>0?Wr:We==0?Bn-Ln:je.getContentHeight(We),gn,qr,We,Jn,sr);ke=pi.isEnd;var Mn=void 0;pi.target&&(pi.target.css("left",this.options.displayLeft()),pi.target[0].height=""),We==0||Wr>0?(pi.target&&(mn=Ln,pi.target.css("top",Ln+"pt")),Mn=ke&&this.options.lHeight!=null?Ln+(pi.height>this.options.lHeight?pi.height:this.options.lHeight):Ln+pi.height):(pi.target&&(mn=je.paperHeader,pi.target.css("top",je.paperHeader+"pt")),Mn=je.paperHeader+pi.height),dr.push(new Oe.a({target:pi.target,printLine:Mn,referenceElement:new Xe.a({top:this.options.getTop(),left:this.options.getLeft(),height:this.options.getHeight(),width:this.options.getWidth(),beginPrintPaperIndex:je.index,bottomInLastPaper:Mn,printTopInPaper:mn})})),We++}return dr},Ke.prototype.getRowsInSpecificHeight=function(je,sr,dr,Or,qr,gn){var mn=void 0,Ln=dr.find("tbody"),We=Ce.a.pt.toPx(je);sr.find("tbody").html("");for(var ke=sr.outerHeight(),Wr=[];;){if(ke<=We)if(Ln.find("tr").length==0)gn&&this.options.autoCompletion&&(this.autoCompletion(We,sr),ke=sr.outerHeight()),mn={target:sr.clone(),length:sr.find("tbody tr").length,height:Ce.a.px.toPt(ke),isEnd:!0},sr.find("tbody tr").length==0&&qr&&(mn={target:void 0,length:0,height:0,isEnd:!0});else{var Bn=Ln.find("tr:lt(1)");sr.find("tbody").append(Bn),ke=sr.outerHeight();var Jn=Bn.data("rowData");Wr.push(Jn),ke>We&&(Ln.prepend(Bn),Wr.pop(),ke=sr.outerHeight(),mn={target:sr.clone(),length:sr.find("tbody tr").length,height:Ce.a.px.toPt(ke),isEnd:!1})}else mn={target:void 0,length:0,height:0,isEnd:!1};if(mn){this.printElementType.footerFormatter&&sr.find("tfoot")&&sr.find("tfoot").html(On.a.createTableFooter(this.printElementType.columns,this.getData(gn),this.options,this.printElementType,gn,Wr).html());break}}return mn},Ke.prototype.getData=function(je){if(!je)return[{}];var sr=je[this.getField()];return sr?JSON.parse(JSON.stringify(sr)):[]},Ke.prototype.autoCompletion=function(je,sr){for(var dr,Or=this.getEmptyRowTarget(),qr=sr.outerHeight();je>qr;)dr=Or.clone(),sr.find("tbody").append(dr),qr=sr.outerHeight();dr&&dr.remove()},Ke.prototype.getEmptyRowTarget=function(){return On.a.createEmptyRowTarget(this.columns)},Ke.prototype.onResize=function(je,sr,dr,Or,qr){br.prototype.updateSizeAndPositionOptions.call(this,qr,Or,dr,sr),On.a.resizeTableCellWidth(this.designTarget,this.columns,this.options.getWidth())},Ke.prototype.getReizeableShowPoints=function(){return["s","e"]},Ke.prototype.design=function(je,sr){var dr=this;this.designTarget.hidraggable({handle:this.designTarget.find(".hiprint-printElement-table-handle"),axis:dr.options.axis&&je&&je.axisEnabled?dr.options.axis:void 0,onDrag:function(qr,gn,mn){dr.updateSizeAndPositionOptions(gn,mn),dr.createLineOfPosition(sr)},moveUnit:"pt",minMove:Se.a.instance.movingDistance,onBeforeDrag:function(qr){xe.a.instance.draging=!0,dr.createLineOfPosition(sr)},onStopDrag:function(qr){xe.a.instance.draging=!1,dr.removeLineOfPosition()}}),this.setHiReizeable(),this.designTarget.hireizeable({showPoints:dr.getReizeableShowPoints(),noContainer:!0,onBeforeResize:function(){xe.a.instance.draging=!0},onResize:function(qr,gn,mn,Ln,We){dr.onResize(qr,gn,mn,Ln,We),dr.hitable.updateColumnGrips(),dr.createLineOfPosition(sr)},onStopResize:function(){xe.a.instance.draging=!1,dr.removeLineOfPosition()}}),this.bingKeyboardMoveEvent(this.designTarget,sr)},Ke.prototype.setHiReizeable=function(){var je=this;this.hitable=new nn.a({table:this.designTarget.find("table"),rows:this.columns,resizeRow:!1,resizeColumn:!0,trs:$$g(this.designTarget).find("tbody tr"),handle:this.designTarget.find("table thead"),columnDisplayEditable:!0,columnDisplayIndexEditable:!0,columnResizable:!0,columnAlignEditable:!0,isEnableEdit:!0,isEnableEditText:!0,isEnableEditField:!0,isEnableContextMenu:!0,isEnableInsertRow:!0,isEnableDeleteRow:!0,isEnableInsertColumn:!0,isEnableDeleteColumn:!0,isEnableMergeCell:!0}),Ce.a.event.on("updateTable"+this.hitable.id,function(){je.updateDesignViewFromOptions()})},Ke}(ze.a),fn=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Or){dr.__proto__=Or}||function(dr,Or){for(var qr in Or)Or.hasOwnProperty(qr)&&(dr[qr]=Or[qr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),Sr=function(br){function Ke(je){return br.call(this,je)||this}return fn(Ke,br),Ke.prototype.createPrintElement=function(je){return new Xn(this,je)},Ke}($e),ti=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Or){dr.__proto__=Or}||function(dr,Or){for(var qr in Or)Or.hasOwnProperty(qr)&&(dr[qr]=Or[qr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),Yn=function(br){function Ke(je){return br.call(this,je)||this}return ti(Ke,br),Ke.prototype.createPrintElement=function(je){var sr={};return $$g.extend(sr,je||{}),kr.createPrintElement(this,sr)},Ke.prototype.getPrintElementTypeEntity=function(){return new He({title:this.title,type:this.type})},Ke}(Vr),Tn=function(){function br(){}return br.createPrintElementType=function(Ke){return Ke.type=Ke.type||"text",Ke.type=="text"?new Yn(Ke):Ke.type=="table"?new $e(Ke):Ke.type=="tableCustom"?new Sr(Ke):new Vr(Ke)},br}(),Nn=function(){function br(){}return br.getElementTypeGroups=function(Ke){var je=br.formatterModule(Ke);return Te.instance[je]||[]},br.getElementType=function(Ke,je){if(Ke)return Te.instance.getElementType(Ke);Tn.createPrintElementType({type:je})},br.build=function(Ke,je){var sr=br.formatterModule(je),dr=new Fe().createPrintElementTypeHtml(Ke,this.getElementTypeGroups(sr));this.enableDrag(dr)},br.buildByHtml=function(Ke){this.enableDrag(Ke)},br.enableDrag=function(Ke){Ke.hidraggable({revert:!0,proxy:function(sr){var dr=xe.a.instance.getDragingPrintElement(),Or=dr.printElement.getProxyTarget(dr.printElement.printElementType.getOptions());return Or.appendTo("body"),Or.css("z-index","9999"),Or},moveUnit:"pt",minMove:4,onBeforeDrag:function(sr){xe.a.instance.draging=!0;var dr=br.getElementType($$g(sr.data.target).attr("tid"),$$g(sr.data.target).attr("ptype"));return xe.a.instance.setDragingPrintElement(dr.createPrintElement()),!0},onDrag:function(sr,dr,Or){xe.a.instance.getDragingPrintElement().updatePosition(dr,Or)},onStopDrag:function(sr){xe.a.instance.draging=!1}})},br.formatterModule=function(Ke){return Ke||"_default"},br}(),Rn=function(){return function(br,Ke){var je=this;this.name=br,this.printElementTypes=[],Ke.forEach(function(sr){je.printElementTypes.push(Tn.createPrintElementType(sr))})}}(),$n=function(){return function(br){if(this.index=br.index,this.paperType=br.paperType,this.paperType){var Ke=xe.a.instance[this.paperType];br.height?(this.height=br.height,this.width=br.width):(this.height=Ke.height,this.width=Ke.width)}else this.height=br.height,this.width=br.width;this.paperHeader=br.paperHeader||0,this.paperFooter=br.paperFooter||Ce.a.mm.toPt(this.height),this.printElements=br.printElements||[],this.paperNumberLeft=br.paperNumberLeft,this.paperNumberTop=br.paperNumberTop,this.paperNumberDisabled=br.paperNumberDisabled,this.paperNumberFormat=br.paperNumberFormat,this.panelPaperRule=br.panelPaperRule,this.rotate=br.rotate||void 0,this.firstPaperFooter=br.firstPaperFooter,this.evenPaperFooter=br.evenPaperFooter,this.oddPaperFooter=br.oddPaperFooter,this.lastPaperFooter=br.lastPaperFooter,this.topOffset=br.topOffset,this.fontFamily=br.fontFamily,this.leftOffset=br.leftOffset,this.orient=br.orient}}(),zn=function(){function br(Ke,je,sr,dr){this.startX=this.minX=Ke,this.startY=this.minY=je,this.maxX=Ke,this.maxY=je,this.lastLeft=sr,this.lastTop=dr}return br.prototype.updateRect=function(Ke,je){this.minX=this.startX<Ke?this.startX:Ke,this.minY=this.startY<je?this.startY:je,this.maxX=this.startX<Ke?Ke:this.startX,this.maxY=this.startY<je?je:this.startY},br.prototype.updatePositionByMultipleSelect=function(Ke,je){Ke!=null&&(this.lastLeft=this.lastLeft+Ke),je!=null&&(this.lastTop=this.lastTop+je),this.target.css({left:this.lastLeft+"pt",top:this.lastTop+"pt"})},br}(),Gn=function(){function br(Ke,je){this.templateId=je,this.index=Ke.index,this.width=Ke.width,this.height=Ke.height,this.paperType=Ke.paperType,this.paperHeader=Ke.paperHeader,this.paperFooter=Ke.paperFooter,this.initPrintElements(Ke.printElements),this.paperNumberLeft=Ke.paperNumberLeft,this.paperNumberTop=Ke.paperNumberTop,this.paperNumberDisabled=Ke.paperNumberDisabled,this.paperNumberFormat=Ke.paperNumberFormat,this.panelPaperRule=Ke.panelPaperRule,this.firstPaperFooter=Ke.firstPaperFooter,this.evenPaperFooter=Ke.evenPaperFooter,this.oddPaperFooter=Ke.oddPaperFooter,this.lastPaperFooter=Ke.lastPaperFooter,this.topOffset=Ke.topOffset,this.leftOffset=Ke.leftOffset,this.fontFamily=Ke.fontFamily,this.orient=Ke.orient,this.target=this.createTarget(),this.rotate=Ke.rotate}return br.prototype.design=function(Ke){var je=this;this.orderPrintElements(),this.designPaper=this.createNewPage(0),this.target.html(""),this.target.append(this.designPaper.getTarget()),this.droppablePaper(this.designPaper),this.designPaper.design(Ke),this.designPaper.subscribePaperBaseInfoChanged(function(sr){je.paperHeader=sr.paperHeader,je.paperFooter=sr.paperFooter,je.paperNumberLeft=sr.paperNumberLeft,je.paperNumberTop=sr.paperNumberTop,je.paperNumberDisabled=sr.paperNumberDisabled,je.paperNumberFormat=sr.paperNumberFormat}),this.printElements.forEach(function(sr){je.appendDesignPrintElement(je.designPaper,sr),sr.design(Ke,je.designPaper)}),this.target.bind("click.hiprint",function(sr){Ce.a.event.trigger("BuildCustomOptionSettingEventKey_"+je.templateId,{options:{panelPaperRule:je.panelPaperRule,firstPaperFooter:je.firstPaperFooter,evenPaperFooter:je.evenPaperFooter,oddPaperFooter:je.oddPaperFooter,lastPaperFooter:je.lastPaperFooter,leftOffset:je.leftOffset,topOffset:je.topOffset,fontFamily:je.fontFamily,orient:je.orient,paperNumberFormat:je.paperNumberFormat},callback:function(Or){je.panelPaperRule=Or.panelPaperRule,je.firstPaperFooter=Or.firstPaperFooter,je.evenPaperFooter=Or.evenPaperFooter,je.oddPaperFooter=Or.oddPaperFooter,je.lastPaperFooter=Or.lastPaperFooter,je.leftOffset=Or.leftOffset,je.topOffset=Or.topOffset,je.fontFamily=Or.fontFamily,je.orient=Or.orient,je.paperNumberFormat=Or.paperNumberFormat,je.designPaper.setOffset(je.leftOffset,je.topOffset),je.css(je.target)}})}),this.bindBatchMoveElement()},br.prototype.css=function(Ke){this.fontFamily&&Ke.css("fontFamily",this.fontFamily)},br.prototype.getHtml=function(Ke,je,sr,dr,Or){var qr=this;this.orderPrintElements();var gn,mn=sr||[],Ln=dr||this,We=void 0;return dr?(We=mn[mn.length-1],gn=We.getPanelTarget(),We.updateReferenceElement(new Xe.a({top:this.paperHeader,left:0,height:0,width:0,bottomInLastPaper:We.referenceElement.bottomInLastPaper,beginPrintPaperIndex:mn.length-1,printTopInPaper:We.referenceElement.bottomInLastPaper,endPrintPaperIndex:mn.length-1}))):(gn=Ln.createTarget(),We=Ln.createNewPage(mn.length),mn.push(We),gn.append(We.getTarget())),this.printElements.filter(function(ke){return!ke.isFixed()&&!ke.isHeaderOrFooter()}).forEach(function(ke){var Wr=[],Bn=mn[mn.length-1];Bn.referenceElement.isPositionLeftOrRight(ke.options.getTop())?(We=mn[Bn.referenceElement.beginPrintPaperIndex],Wr=ke.getHtml(We,Ke)):(We=mn[Bn.referenceElement.endPrintPaperIndex],Wr=ke.getHtml(We,Ke)),Wr.forEach(function(Jn,pi){Jn.referenceElement&&(Jn.referenceElement.endPrintPaperIndex=Jn.referenceElement.beginPrintPaperIndex+Wr.length-1),pi>0&&(We.index<mn.length-1?We=mn[We.index+1]:(We=Ln.createNewPage(mn.length,We.referenceElement),mn.push(We)),gn.append(We.getTarget())),Jn.target&&(We.append(Jn.target),We.updatePrintLine(Jn.printLine),ke.onRendered(We,Jn.target)),pi==Wr.length-1&&Jn.referenceElement&&We.updateReferenceElement(Jn.referenceElement)})}),Or&&Or.templates.forEach(function(ke,Wr){var Bn=ke.data||{},Jn=ke.options||{};ke.template.printPanels.forEach(function(pi){pi.getHtml(Bn,Jn,sr,qr)})}),!dr&&(this.lastPaperFooter&&mn[mn.length-1].printLine>this.lastPaperFooter&&(We=Ln.createNewPage(mn.length,We.referenceElement),mn.push(We),gn.append(We.getTarget())),this.panelPaperRule&&(this.panelPaperRule=="odd"&&mn.length%2==0&&(We=Ln.createNewPage(mn.length,We.referenceElement),mn.push(We),gn.append(We.getTarget())),this.panelPaperRule=="even"&&mn.length%2==1&&(We=Ln.createNewPage(mn.length,We.referenceElement),mn.push(We),gn.append(We.getTarget()))),mn.forEach(function(ke){ke.updatePaperNumber(ke.index+1,mn.length,je.paperNumberToggleInEven),qr.fillPaperHeaderAndFooter(ke,Ke,mn.length),je&&(je.leftOffset!=null&&ke.setLeftOffset(je.leftOffset),je.topOffset!=null&&ke.setTopOffset(je.topOffset))}),gn.prepend(this.getPrintStyle())),gn},br.prototype.resize=function(Ke,je,sr,dr){this.width=je,this.height=sr,this.paperType=Ke,this.rotate=dr,this.designPaper.resize(je,sr)},br.prototype.rotatePaper=function(){this.rotate==null&&(this.rotate=!1),this.rotate=!this.rotate,this.resize(this.paperType,this.height,this.width,this.rotate)},br.prototype.getTarget=function(){return this.target},br.prototype.enable=function(){this.target.removeClass("hipanel-disable")},br.prototype.disable=function(){this.target.addClass("hipanel-disable")},br.prototype.getPanelEntity=function(Ke){var je=[];return this.printElements.forEach(function(sr){je.push(sr.getPrintElementEntity(Ke))}),new $n({index:this.index,width:this.width,height:this.height,paperType:this.paperType,paperHeader:this.paperHeader,paperFooter:this.paperFooter,paperNumberDisabled:!!this.paperNumberDisabled||void 0,paperNumberFormat:this.paperNumberFormat?this.paperNumberFormat:void 0,panelPaperRule:this.panelPaperRule?this.panelPaperRule:void 0,paperNumberLeft:this.paperNumberLeft,paperNumberTop:this.paperNumberTop,printElements:je,rotate:this.rotate,firstPaperFooter:this.firstPaperFooter,evenPaperFooter:this.evenPaperFooter,oddPaperFooter:this.oddPaperFooter,lastPaperFooter:this.lastPaperFooter,topOffset:this.topOffset,fontFamily:this.fontFamily,orient:this.orient,leftOffset:this.leftOffset})},br.prototype.createTarget=function(){var Ke=$$g('<div class="hiprint-printPanel panel-index-'+this.index+'"></div>');return this.css(Ke),Ke},br.prototype.droppablePaper=function(Ke){var je=this;Ke.getTarget().hidroppable({accept:".ep-draggable-item",onDrop:function(dr,Or){var qr=xe.a.instance.getDragingPrintElement(),gn=qr.printElement;gn.updateSizeAndPositionOptions(je.mathroundToporleft(qr.left-Ce.a.px.toPt(je.target.offset().left)),je.mathroundToporleft(qr.top-Ce.a.px.toPt(je.target.offset().top))),gn.setTemplateId(je.templateId),gn.setPanel(je),je.appendDesignPrintElement(je.designPaper,gn,!0),je.printElements.push(gn),gn.design(void 0,Ke)}})},br.prototype.initPrintElements=function(Ke){var je=this;this.printElements=[],Ke&&Ke.forEach(function(sr){var dr;if(dr=sr.printElementType?Tn.createPrintElementType(sr.printElementType):Te.instance.getElementType(sr.tid)){var Or=dr.createPrintElement(sr.options);Or.setTemplateId(je.templateId),Or.setPanel(je),je.printElements.push(Or)}else console.log("miss "+JSON.stringify(Ke))})},br.prototype.mathroundToporleft=function(Ke){var je=Se.a.instance.movingDistance;return Math.round(Ke/je)*je},br.prototype.appendDesignPrintElement=function(Ke,je,sr){je.setCurrenttemplateData(void 0);var dr=je.getDesignTarget(Ke);dr.addClass("design"),sr&&je.initSizeByHtml(dr),Ke.append(dr)},br.prototype.createNewPage=function(Ke,je){var sr=new or(this.templateId,this.width,this.height,this.paperHeader,this.paperFooter,this.paperNumberLeft,this.paperNumberTop,this.paperNumberDisabled,this.paperNumberFormat,Ke,je);return sr.setFooter(this.firstPaperFooter,this.evenPaperFooter,this.oddPaperFooter,this.lastPaperFooter),sr.setOffset(this.leftOffset,this.topOffset),sr},br.prototype.orderPrintElements=function(){this.printElements=Ce.a.orderBy(this.printElements,function(Ke){return Ke.options.getLeft()}),this.printElements=Ce.a.orderBy(this.printElements,function(Ke){return Ke.options.getTop()})},br.prototype.fillPaperHeaderAndFooter=function(Ke,je,sr){this.printElements.filter(function(dr){return dr.isFixed()||dr.isHeaderOrFooter()}).forEach(function(dr){if(dr.isFixed(),dr.showInPage(Ke.index,sr)){var Or=dr.getHtml(Ke,je);Or.length&&Ke.append(Or[0].target)}})},br.prototype.clear=function(){this.printElements.forEach(function(Ke){Ke.designTarget&&Ke.designTarget.length&&Ke.designTarget.remove()}),this.printElements=[]},br.prototype.insertPrintElementToPanel=function(Ke){var je=this.getPrintElementTypeByEntity(Ke);if(je){var sr=je.createPrintElement(Ke.options);sr.setTemplateId(this.templateId),sr.setPanel(this),this.printElements.push(sr)}},br.prototype.addPrintText=function(Ke){Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="text",this.insertPrintElementToPanel(Ke)},br.prototype.addPrintHtml=function(Ke){Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="html",this.insertPrintElementToPanel(Ke)},br.prototype.addPrintTable=function(Ke){if(Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="table",Ke.options&&Ke.options.columns){var je=$$g.extend({},Ke.options.columns);Ke.printElementType.columns=je.columns,je.columns=void 0}this.insertPrintElementToPanel(Ke)},br.prototype.addPrintImage=function(Ke){Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="image",this.insertPrintElementToPanel(Ke)},br.prototype.addPrintLongText=function(Ke){Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="longText",this.insertPrintElementToPanel(Ke)},br.prototype.addPrintVline=function(Ke){Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="vline",this.insertPrintElementToPanel(Ke)},br.prototype.addPrintHline=function(Ke){Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="hline",this.insertPrintElementToPanel(Ke)},br.prototype.addPrintRect=function(Ke){Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="rect",this.insertPrintElementToPanel(Ke)},br.prototype.addPrintOval=function(Ke){Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="oval",this.insertPrintElementToPanel(Ke)},br.prototype.getPrintElementTypeByEntity=function(Ke){var je;return(je=Ke.tid?Te.instance.getElementType(Ke.tid):Tn.createPrintElementType(Ke.printElementType))||console.log("miss "+JSON.stringify(Ke)),je},br.prototype.getPrintStyle=function(){return` <style printStyle>
@page
{
border:0;
padding:0cm;
margin:0cm;
`+this.getPrintSizeStyle()+`
}
</style>
`},br.prototype.getPrintSizeStyle=function(){return this.paperType?"size:"+this.paperType+" "+(this.height>this.width?"portrait":"landscape")+";":"size:"+this.width+"mm "+this.height+"mm "+(this.orient?this.orient==1?"portrait":"landscape":"")+";"},br.prototype.deletePrintElement=function(Ke){var je=this;this.printElements.filter(function(sr,dr){sr.id==Ke.id&&(Ke.delete(),je.printElements.splice(dr,1))})},br.prototype.getElementByTid=function(Ke){return this.printElements.filter(function(je){return je.printElementType.tid===Ke}).map(function(je,sr){return je})},br.prototype.getElementByName=function(Ke){return this.printElements.filter(function(je){return je.options.name===Ke}).map(function(je,sr){return je})},br.prototype.getFieldsInPanel=function(){var Ke=[];return this.printElements.forEach(function(je){je.options&&je.options.field?Ke.push(je.options.field):je.printElementType.field&&Ke.push(je.printElementType.field)}),Ke},br.prototype.bindBatchMoveElement=function(){var Ke=this;this.designPaper.getTarget().on("mousemove",function(je){xe.a.instance.draging||je.buttons===1&&(Ke.mouseRect.updateRect(je.pageX,je.pageY),Ke.updateRectPanel(Ke.mouseRect))}).on("mousedown",function(je){xe.a.instance.draging||(Ke.mouseRect&&Ke.mouseRect.target&&Ke.mouseRect.target.remove(),je.buttons===1&&(Ke.mouseRect=new zn(je.pageX,je.pageY,xe.a.instance.dragLengthCNum(je.pageX-Ke.designPaper.getTarget().offset().left,Se.a.instance.movingDistance),xe.a.instance.dragLengthCNum(je.pageY-Ke.designPaper.getTarget().offset().top,Se.a.instance.movingDistance))))})},br.prototype.getElementInRect=function(Ke){var je=[];return this.printElements.forEach(function(sr){sr.inRect(Ke)&&je.push(sr)}),je},br.prototype.updateRectPanel=function(Ke){var je=this,sr=this.designPaper.getTarget();this.mouseRect.target||(this.mouseRect.target=$$g('<div tabindex="1" style="z-index:2;position: absolute;opacity:0.2;border: 1px dashed #000;background-color:#31676f;"><span></span></div>'),sr.find(".hiprint-printPaper-content").append(this.mouseRect.target),this.mouseRect.target.focus(),this.bingKeyboardMoveEvent(this.mouseRect.target),this.mouseRect.target.hidraggable({onDrag:function(Or,qr,gn){je.mouseRect.lastLeft=je.mouseRect.lastLeft?je.mouseRect.lastLeft:qr,je.mouseRect.lastTop=je.mouseRect.lastTop?je.mouseRect.lastTop:gn,(je.mouseRect.mouseRectSelectedElement||[]).forEach(function(mn){mn.updatePositionByMultipleSelect(qr-je.mouseRect.lastLeft,gn-je.mouseRect.lastTop)}),je.mouseRect.lastLeft=qr,je.mouseRect.lastTop=gn},moveUnit:"pt",minMove:Se.a.instance.movingDistance,onBeforeDrag:function(Or){je.mouseRect.target.focus(),xe.a.instance.draging=!0,je.mouseRect.mouseRectSelectedElement||(je.mouseRect.mouseRectSelectedElement=je.getElementInRect(je.mouseRect))},onStopDrag:function(Or){xe.a.instance.draging=!1}})),this.mouseRect.target.css({height:Ke.maxY-Ke.minY+"px",width:Ke.maxX-Ke.minX+"px",left:Ke.lastLeft+"pt",top:Ke.lastTop+"pt"})},br.prototype.bingKeyboardMoveEvent=function(Ke){var je=this;Ke.attr("tabindex","1"),Ke.keydown(function(sr){je.mouseRect.mouseRectSelectedElement||(je.mouseRect.mouseRectSelectedElement=je.getElementInRect(je.mouseRect));var dr=je.mouseRect.mouseRectSelectedElement||[];switch(sr.keyCode){case 37:je.mouseRect.updatePositionByMultipleSelect(0-Se.a.instance.movingDistance,0),dr.forEach(function(Or){Or.updatePositionByMultipleSelect(0-Se.a.instance.movingDistance,0)}),sr.preventDefault();break;case 38:je.mouseRect.updatePositionByMultipleSelect(0,0-Se.a.instance.movingDistance),dr.forEach(function(Or){Or.updatePositionByMultipleSelect(0,0-Se.a.instance.movingDistance)}),sr.preventDefault();break;case 39:je.mouseRect.updatePositionByMultipleSelect(Se.a.instance.movingDistance,0),dr.forEach(function(Or){Or.updatePositionByMultipleSelect(Se.a.instance.movingDistance,0)}),sr.preventDefault();break;case 40:je.mouseRect.updatePositionByMultipleSelect(0,Se.a.instance.movingDistance),dr.forEach(function(Or){Or.updatePositionByMultipleSelect(0,Se.a.instance.movingDistance)}),sr.preventDefault()}})},br}(),ii=function(){return function(br){if(br)if(br.panels){this.panels=[];for(var Ke=0;Ke<br.panels.length;Ke++)this.panels.push(new $n(br.panels[Ke]))}else this.panels=[]}}(),ui=Ae(9),mi=function(){function br(Ke,je){var sr=this;this.printElementOptionSettingPanel={},this.printTemplate=Ke,this.settingContainer=$$g(je),Ce.a.event.on(Ke.getPrintElementSelectEventKey(),function(dr){sr.buildSetting(dr)}),Ce.a.event.on(Ke.getBuildCustomOptionSettingEventKey(),function(dr){sr.buildSettingByCustomOptions(dr)})}return br.prototype.init=function(){},br.prototype.buildSetting=function(Ke){var je=this,sr=this,dr=Ke.printElement,Or=Ke.customOptionsInput;this.lastPrintElement&&this.lastPrintElement.getPrintElementOptionItems().forEach(function(Ln){Ln.destroy()}),this.lastPrintElement=void 0,this.settingContainer.html("");var qr=$$g('<div class="hiprint-option-items"></div>');dr.getPrintElementOptionItems().forEach(function(Ln){Ln.submit=function(ke){dr.submitOption()};var We=Ln.createTarget(dr,dr.options,dr.printElementType);je.printElementOptionSettingPanel[Ln.name]=We,qr.append(We),Ln.setValue(dr.options[Ln.name],dr.options,dr.printElementType)});var gn=$$g(`<button class="hiprint-option-item-settingBtn hiprint-option-item-submitBtn"
type="button">确定</button>`),mn=$$g(`<button class="hiprint-option-item-settingBtn hiprint-option-item-deleteBtn"
type="button">删除</button>`);qr.append(gn),qr.append(mn),gn.bind("click.submitOption",function(){dr.submitOption()}),mn.bind("click.deleteBtn",function(){sr.printTemplate.deletePrintElement(dr)}),qr.find(".auto-submit").change(function(Ln){dr.submitOption()}),qr.find(".auto-submit:input").bind("keydown.submitOption",function(Ln){Ln.keyCode==13&&dr.submitOption()}),this.settingContainer.append(qr),Or&&Or.forEach(function(Ln){var We=Ln.callback;Ln.callback=function(ke){We&&(We(ke),dr.submitOption())},je.buildSettingByCustomOptions(Ln,je.settingContainer)}),this.lastPrintElement=dr},br.prototype.buildSettingByCustomOptions=function(Ke,je){var sr=this;this.lastPrintElement&&this.lastPrintElement.getPrintElementOptionItems().forEach(function(mn){mn.destroy()}),this.lastPrintElement=void 0;var dr=je||this.settingContainer;je||this.settingContainer.html("");var Or=[];Ke.optionItems?Or=Ke.optionItems:Object.keys(Ke.options).forEach(function(mn){var Ln=ui.a.getItem(mn);Ln&&Or.push(Ln)});var qr=$$g('<div class="hiprint-option-items"></div>');Ke.title&&qr.append(`<div class="hiprint-option-item hiprint-option-item-row">
<div class="hiprint-option-item-label hiprint-option-title">
`+Ke.title+`
</div>
</div>`),Or.forEach(function(mn){mn.submit=function(Ln){Ke.callback(sr.getValueByOptionItems(Or))},qr.append(mn.createTarget(void 0,Ke.options,void 0)),mn.setValue(Ke.options[mn.name],Ke.options,void 0)});var gn=$$g(`<button class="hiprint-option-item-settingBtn hiprint-option-item-submitBtn"
type="button">确定</button>`);qr.append(gn),gn.bind("click.submitOption",function(){Ke.callback(sr.getValueByOptionItems(Or))}),qr.find(".auto-submit").change(function(mn){Ke.callback(sr.getValueByOptionItems(Or))}),qr.find(".auto-submit:input").bind("keydown.submitOption",function(mn){mn.keyCode==13&&Ke.callback(sr.getValueByOptionItems(Or))}),dr.append(qr)},br.prototype.getValueByOptionItems=function(Ke){var je={};return Ke.forEach(function(sr){je[sr.name]=sr.getValue()}),je},br}(),yi=function(){function br(Ke,je){this.paginationContainer=Ke,this.jqPaginationContainer=$$g(this.paginationContainer),this.template=je}return br.prototype.buildPagination=function(Ke){var je=this.template.getPaneltotal(),sr=this;this.jqPaginationContainer.html("");for(var dr=$$g('<ul class="hiprint-pagination"></ul>'),Or=function(){var Ln=qr,We=$$g("<li><span>"+(Ln+1)+'</span><a href="javascript:void(0);">x</a></li>');We.find("span").click(function(){sr.template.selectPanel(Ln),We.removeClass("selected"),$$g(this).parent("li").addClass("selected")}),We.find("a").click(function(){sr.template.deletePanel(Ln),sr.buildPagination()}),dr.append(We)},qr=0;qr<je;qr++)Or();var gn=$$g("<li><span>+</span></li>");dr.append(gn),this.jqPaginationContainer.append(dr),gn.click(function(){sr.template.addPrintPanel(void 0,!0),sr.buildPagination()})},br}(),Ai=function(){function br(Ke){var je=this;this.tempimageBase64={},this.id=xe.a.instance.guid(),xe.a.instance.setPrintTemplateById(this.id,this);var sr=Ke||{};this.printPanels=[];var dr=new ii(sr.template||[]);sr.template&&dr.panels.forEach(function(Or){je.printPanels.push(new Gn(Or,je.id))}),sr.fields&&(this.fields=sr.fields),sr.settingContainer&&new mi(this,sr.settingContainer),sr.paginationContainer&&(this.printPaginationCreator=new yi(sr.paginationContainer,this),this.printPaginationCreator.buildPagination()),this.initAutoSave()}return br.prototype.design=function(Ke,je){var sr=this;if(je||(je={}),this.printPanels.length==0){var dr=this.createDefaultPanel();this.printPanels.push(dr)}if(!Ke)throw new Error("options.container can not be empty");this.createContainer(Ke),this.printPanels.forEach(function(Or,qr){sr.container.append(Or.getTarget()),qr>0&&Or.disable(),Or.design(je)}),this.selectPanel(0)},br.prototype.getSimpleHtml=function(Ke,je){var sr=this;je||(je={});var dr=$$g('<div class="hiprint-printTemplate"></div>');return Ke&&Ke.constructor===Array?Ke.forEach(function(Or){Or&&sr.printPanels.forEach(function(qr,gn){dr.append(qr.getHtml(Or,je))})}):this.printPanels.forEach(function(Or,qr){dr.append(Or.getHtml(Ke,je))}),je&&je.imgToBase64&&this.transformImg(dr.find("img")),dr},br.prototype.getHtml=function(Ke,je){return Ke||(Ke={}),this.getSimpleHtml(Ke,je)},br.prototype.getJointHtml=function(Ke,je,sr){var dr=$$g('<div class="hiprint-printTemplate"></div>'),Or=[];return this.printPanels.forEach(function(qr,gn){dr.append(qr.getHtml(Ke,je,Or,void 0,sr))}),dr},br.prototype.setPaper=function(Ke,je){if(/^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/.test(Ke))this.editingPanel.resize(void 0,parseFloat(Ke),parseFloat(je),!1);else{var sr=xe.a.instance[Ke];if(!sr)throw new Error("not found pagetype:"+(Ke||""));this.editingPanel.resize(Ke,sr.width,sr.height,!1)}},br.prototype.rotatePaper=function(){this.editingPanel.rotatePaper()},br.prototype.addPrintPanel=function(Ke,je){var sr=Ke?new Gn(new $n(Ke),this.id):this.createDefaultPanel();return Ke&&(Ke.index=this.printPanels.length),je&&(this.container.append(sr.getTarget()),sr.design()),this.printPanels.push(sr),je&&this.selectPanel(sr.index),sr},br.prototype.selectPanel=function(Ke){var je=this;this.printPanels.forEach(function(sr,dr){Ke==dr?(sr.enable(),je.editingPanel=sr):sr.disable()})},br.prototype.deletePanel=function(Ke){this.printPanels[Ke].clear(),this.printPanels[Ke].getTarget().remove(),this.printPanels.splice(Ke,1)},br.prototype.getPaneltotal=function(){return this.printPanels.length},br.prototype.createDefaultPanel=function(){return new Gn(new $n({index:this.printPanels.length,paperType:"A4"}),this.id)},br.prototype.createContainer=function(Ke){Ke?(this.container=$$g(Ke),this.container.addClass("hiprint-printTemplate")):this.container=$$g('<div class="hiprint-printTemplate"></div>')},br.prototype.getJsonTid=function(){var Ke=[];return this.printPanels.forEach(function(je){je.getPanelEntity().printElements.length&&Ke.push(je.getPanelEntity())}),new ii({panels:Ke})},br.prototype.getJson=function(){var Ke=[];return this.printPanels.forEach(function(je){Ke.push(je.getPanelEntity(!0))}),new ii({panels:Ke})},br.prototype.getPrintElementSelectEventKey=function(){return"PrintElementSelectEventKey_"+this.id},br.prototype.getBuildCustomOptionSettingEventKey=function(){return"BuildCustomOptionSettingEventKey_"+this.id},br.prototype.clear=function(){this.printPanels.forEach(function(Ke){if(Ke.clear(),Ke.index>0){var je=Ke.getTarget();je&&je.length&&je.remove()}}),this.printPanels=[this.printPanels[0]],this.printPaginationCreator&&this.printPaginationCreator.buildPagination()},br.prototype.getPaperType=function(Ke){return this.printPanels[0].paperType},br.prototype.getOrient=function(Ke){return Ke==null&&(Ke=0),this.printPanels[Ke].height>this.printPanels[Ke].width?1:2},br.prototype.getPrintStyle=function(Ke){return this.printPanels[Ke].getPrintStyle()},br.prototype.print=function(Ke,je){Ke||(Ke={}),this.getHtml(Ke,je).hiwprint()},br.prototype.print2=function(Ke,je){if(Ke||(Ke={}),je||(je={}),this.clientIsOpened()){var sr=this,dr="";if(je.styleHandler)dr+=je.styleHandler();else{if(!window.__VUE_HOT_MAP__){var Or=$$g("link").toArray().filter(gn=>gn.href.includes("css/app")&&gn.rel==="stylesheet");Or.forEach(gn=>{dr+=gn.outerHTML})}var qr=$$g("style").toArray().filter(gn=>gn.innerHTML.includes(".hiprint"));qr.forEach(gn=>{dr+=gn.outerHTML})}sr.sentToClient(dr,Ke,je)}else alert("连接客户端失败")},br.prototype.imageToBase64=function(Ke){var je=$$g(Ke).attr("src");if(je.indexOf("base64")==-1)try{if(!this.tempimageBase64[je]){var sr=document.createElement("canvas"),dr=new Image;dr.src=Ke.attr("src"),sr.width=dr.width,sr.height=dr.height,sr.getContext("2d").drawImage(dr,0,0),je&&(this.tempimageBase64[je]=sr.toDataURL("image/png"))}Ke.attr("src",this.tempimageBase64[je])}catch{try{this.xhrLoadImage(Ke)}catch(qr){console.log(qr)}}},br.prototype.xhrLoadImage=function(Ke){},br.prototype.sentToClient=function(Ke,je,sr){je||(je={});var dr=$$g.extend({},sr||{});dr.imgToBase64=!0;var Or=Ke+this.getHtml(je,dr)[0].outerHTML;dr.id=xe.a.instance.guid(),dr.html=Or,dr.templateId=this.id,hiwebSocket.send(dr)},br.prototype.printByHtml=function(Ke){$$g(Ke).hiwprint()},br.prototype.printByHtml2=function(Ke,je){if(je||(je={}),this.clientIsOpened()){var sr=this,dr=0,Or={},qr=$$g("link[media=print]").length>0?$$g("link[media=print]"):$$g("link");qr.each(function(gn,mn){var Ln=new XMLHttpRequest;Ln.open("GET",$$g(mn).attr("href")),Ln.onreadystatechange=function(){if(Ln.readyState===4&&Ln.status===200&&(Or[gn+""]='<style rel="stylesheet" type="text/css">'+Ln.responseText+"</style>",++dr==qr.length)){for(var We="",ke=0;ke<qr.length;ke++)We+=Or[ke+""];var Wr=We+$$g(Ke)[0].outerHTML,Bn=$$g.extend({},je||{});Bn.id=xe.a.instance.guid(),Bn.html=Wr,Bn.templateId=sr.id,hiwebSocket.send(Bn)}},Ln.send()})}else alert("连接客户端失败")},br.prototype.deletePrintElement=function(Ke){this.printPanels.forEach(function(je){je.deletePrintElement(Ke)})},br.prototype.transformImg=function(Ke){var je=this;Ke.map(function(sr,dr){je.imageToBase64($$g(dr))})},br.prototype.toPdf=function(Ke,je,sr){var dr=this;if(this.printPanels.length){var Or=Ce.a.mm.toPt(this.printPanels[0].width),qr=Ce.a.mm.toPt(this.printPanels[0].height),gn=$$g.extend({scale:2,width:Ce.a.pt.toPx(Or),x:0,y:0,useCORS:!0},sr||{}),mn=new E$1({orientation:this.getOrient(0)==1?"portrait":"landscape",unit:"pt",format:this.printPanels[0].paperType?this.printPanels[0].paperType.toLocaleLowerCase():[Or,qr]}),Ln=this.getHtml(Ke,sr);this.createTempContainer();var We=this.getTempContainer();this.svg2canvas(Ln),We.html(Ln[0]);var ke=We.find(".hiprint-printPanel .hiprint-printPaper").length;$$g(Ln).css("position:fixed"),html2canvas(Ln[0],gn).then(function(Wr){var Bn=Wr.getContext("2d");Bn.mozImageSmoothingEnabled=!1,Bn.webkitImageSmoothingEnabled=!1,Bn.msImageSmoothingEnabled=!1,Bn.imageSmoothingEnabled=!1;for(var Jn=Wr.toDataURL("image/jpeg"),pi=0;pi<ke;pi++)mn.addImage(Jn,"JPEG",0,0-pi*qr,Or,ke*qr),pi<ke-1&&mn.addPage();dr.removeTempContainer(),je.indexOf(".pdf")>-1?mn.save(je):mn.save(je+".pdf")})}},br.prototype.createTempContainer=function(){this.removeTempContainer(),$$g("body").prepend($$g('<div class="hiprint_temp_Container" style="overflow:hidden;height: 0px;box-sizing: border-box;"></div>'))},br.prototype.removeTempContainer=function(){$$g(".hiprint_temp_Container").remove()},br.prototype.getTempContainer=function(){return $$g(".hiprint_temp_Container")},br.prototype.svg2canvas=function(Ke){Ke.find("svg").each(function(je,sr){var dr=sr.parentNode,Or=document.createElement("canvas"),qr=new XMLSerializer().serializeToString(sr);canvg(Or,qr),$$g(sr).before(Or),dr.removeChild(sr),$$g(Or).css("width","100%"),$$g(Or).css("height","100%")})},br.prototype.on=function(Ke,je){Ce.a.event.on(Ke+"_"+this.id,je)},br.prototype.clientIsOpened=function(){return hiwebSocket.opened},br.prototype.getPrinterList=function(){var Ke=hiwebSocket.getPrinterList();return Ke||[]},br.prototype.getElementByTid=function(Ke,je){return je==null&&(je=0),this.printPanels[je].getElementByTid(Ke)},br.prototype.getElementByName=function(Ke,je){return je==null&&(je=0),this.printPanels[je].getElementByName(Ke)},br.prototype.getPanel=function(Ke){return Ke==null&&(Ke=0),this.printPanels[Ke]},br.prototype.loadAllImages=function(Ke,je,sr){var dr=this;sr==null&&(sr=0);for(var Or=Ke[0].getElementsByTagName("img"),qr=!0,gn=0;gn<Or.length;gn++){var mn=Or[gn];mn.src&&mn.src!==window.location.href&&mn.src.indexOf("base64")==-1&&(mn&&mn.naturalWidth!==void 0&&mn.naturalWidth!==0&&mn.complete||(qr=!1))}sr++,!qr&&sr<10?setTimeout(function(){dr.loadAllImages(Ke,je,sr)},500):je()},br.prototype.setFields=function(Ke){this.fields=Ke},br.prototype.getFields=function(){return this.fields},br.prototype.getFieldsInPanel=function(){var Ke=[];return this.printPanels.forEach(function(je){Ke=Ke.concat(je.getFieldsInPanel())}),Ke},br.prototype.initAutoSave=function(){var Ke=this;this.autoSave&&Ce.a.event.on("hiprintTemplateDataChanged_"+this.id,function(){hiLocalStorage.saveLocalData(Ke.autoSaveKey||"hiprintAutoSave",JSON.stringify(Ke.autoSaveMode==1?Ke.getJson():Ke.getJsonTid()))})},br}();function hi(br){this.getHtml(br).hiwprint()}function Hn(br,Ke,je){$$g.extend({},br||{}).imgToBase64=!0;var sr=new Ai({});sr.on("printSuccess",Ke),sr.on("printError",je),sr.printByHtml2(this.getHtml(br),br.options)}function Oi(br){var Ke=void 0;return br&&br.templates.forEach(function(je,sr){var dr=$$g.extend({},je.options||{});br.imgToBase64&&(dr.imgToBase64=!0),Ke?Ke.append(je.template.getHtml(je.data,dr).html()):Ke=je.template.getHtml(je.data,dr)}),Ke}function wi(br){Se.a.instance.init(br),Se.a.instance.providers.forEach(function(Ke){Ke.addElementTypes(Te.instance)})}Ae.d(St,"init",function(){return wi}),Ae.d(St,"PrintElementTypeManager",function(){return Nn}),Ae.d(St,"PrintElementTypeGroup",function(){return Rn}),Ae.d(St,"PrintTemplate",function(){return Ai}),Ae.d(St,"print",function(){return hi}),Ae.d(St,"print2",function(){return Hn}),Ae.d(St,"getHtml",function(){return Oi}),$$g(document).ready(function(){hiwebSocket.hasIo()&&hiwebSocket.start()})}]),defaultElementTypeProvider=defaultTypeProvider(hiprint);/*! Element Plus Icons Vue v2.3.1 */var delete_vue_vue_type_script_setup_true_lang_default=vue.defineComponent({name:"Delete",__name:"delete",setup(Be){return(St,Ae)=>(vue.openBlock(),vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[vue.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),delete_default=delete_vue_vue_type_script_setup_true_lang_default,document_vue_vue_type_script_setup_true_lang_default=vue.defineComponent({name:"Document",__name:"document",setup(Be){return(St,Ae)=>(vue.openBlock(),vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[vue.createElementVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),document_default=document_vue_vue_type_script_setup_true_lang_default,printer_vue_vue_type_script_setup_true_lang_default=vue.defineComponent({name:"Printer",__name:"printer",setup(Be){return(St,Ae)=>(vue.openBlock(),vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[vue.createElementVNode("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),printer_default=printer_vue_vue_type_script_setup_true_lang_default,refresh_vue_vue_type_script_setup_true_lang_default=vue.defineComponent({name:"Refresh",__name:"refresh",setup(Be){return(St,Ae)=>(vue.openBlock(),vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[vue.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),refresh_default=refresh_vue_vue_type_script_setup_true_lang_default,tickets_vue_vue_type_script_setup_true_lang_default=vue.defineComponent({name:"Tickets",__name:"tickets",setup(Be){return(St,Ae)=>(vue.openBlock(),vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[vue.createElementVNode("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),tickets_default=tickets_vue_vue_type_script_setup_true_lang_default,view_vue_vue_type_script_setup_true_lang_default=vue.defineComponent({name:"View",__name:"view",setup(Be){return(St,Ae)=>(vue.openBlock(),vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[vue.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),view_default=view_vue_vue_type_script_setup_true_lang_default;const index_vue_vue_type_style_index_0_scoped_9bea5ab5_lang="",_export_sfc=(Be,St)=>{const Ae=Be.__vccOpts||Be;for(const[Ee,Ce]of St)Ae[Ee]=Ce;return Ae},_sfc_main={name:"PrintDesign",componentName:"PrintDesign",props:{tempJson:Object,custFields:Array,tempData:Array},data(){return{ElDialog:elementPlus.ElDialog,ElDrawer:elementPlus.ElDrawer,Delete:delete_default,View:view_default,Refresh:refresh_default,Document:document_default,Tickets:tickets_default,Printer:printer_default,hiprintTemplate:null,printData:this.tempData?this.tempData:customData,customPrintJson:this.tempJson?this.tempJson:customPrintJson,previewDialogStatus:!1,paramsDrawerStatus:!1,infoDialogStatus:!1,infoTextarea:"",infoDialogTitle:"",paramsDrawerTitle:"",paperMap:{A3:{width:420,height:296.6},A4:{width:210,height:296.6},A5:{width:210,height:147.6},B3:{width:500,height:352.6},B4:{width:250,height:352.6},B5:{width:250,height:175.6}},currentPaper:{width:null,height:null},otherPaper:{width:"",height:""}}},mounted(){this.createTemp()},computed:{currentPaperType(){let Be=null;if(this.otherPaper.width!==""&&this.otherPaper.height!=="")Be="other";else for(const St in this.paperMap){const Ae=this.paperMap[St],{width:Ee,height:Ce}=this.currentPaper;Ae.width===Ee&&Ae.height===Ce&&(Be=St)}return Be}},methods:{setCurrentPaper(Be){const{width:St,height:Ae}=Be;this.currentPaper.width=St,this.currentPaper.height=Ae},setPaper(Be,St,Ae){try{Be==="other"?St===""&&Ae===""?(this.hiprintTemplate.setPaper("A4",null),this.setCurrentPaper(this.paperMap.A4),this.otherPaper={width:"",height:""}):(this.hiprintTemplate.setPaper(St,Ae),this.setCurrentPaper({width:St,height:Ae})):(this.hiprintTemplate.setPaper(Be,null),this.setCurrentPaper(this.paperMap[Be]),this.otherPaper={width:"",height:""})}catch(Ee){this.$message({message:"操作失败:"+Ee,type:"error"})}},rotatePaper(){try{this.hiprintTemplate.rotatePaper()}catch(Be){this.$message({message:"操作失败:"+Be,type:"error"})}},clearTemplate(){try{this.hiprintTemplate.clear()}catch(Be){this.$message({message:"操作失败:"+Be,type:"error"})}},previewTemplate(){this.previewDialogStatus=!0},handlePreviewOpened(Be){$$g("#preview_content").html(this.hiprintTemplate.getHtml(Be))},printTemplate(Be){this.hiprintTemplate.print(Be)},elementAddEventListen(){const Be=this;window.hinnn.event.on(this.hiprintTemplate.getPrintElementSelectEventKey(),function(St){var Ae,Ee;Be.paramsDrawerTitle=(Ee=(Ae=St==null?void 0:St.printElement)==null?void 0:Ae.printElementType)==null?void 0:Ee.title,Be.paramsDrawerStatus=!0})},handleParamsOpened(){$$g("#params_content").append($$g(".hinnn-layout-sider"))},getJson(){this.infoTextarea=JSON.stringify(this.hiprintTemplate.getJson()),this.infoDialogTitle="预览JSON",this.infoDialogStatus=!0},getHtml(Be){this.infoTextarea=this.hiprintTemplate.getHtml(Be)[0].outerHTML,this.infoDialogTitle="预览HTML",this.infoDialogStatus=!0},getDay(Be){var St=new Date,Ae=St.getTime()+1e3*60*60*24*Be;St.setTime(Ae);var Ee=St.getFullYear(),Ce=St.getMonth(),_e=St.getDate();Ce=this.doHandleMonth(Ce+1),_e=this.doHandleMonth(_e);var Te=St.getHours(),Se=St.getMinutes(),xe=St.getSeconds();return Ee+"-"+Ce+"-"+_e+" "+Te+":"+Se+":"+xe},doHandleMonth(Be){var St=Be;return Be.toString().length===1&&(St="0"+Be),St},createTemp(){var Be=defaultTypeProvider(hiprint,this.custFields);const St=this;hiprint.init({providers:[new Be]}),hiprint.PrintElementTypeManager.buildByHtml($$g(".ep-draggable-item")),this.hiprintTemplate=new hiprint.PrintTemplate({template:this.customPrintJson,settingContainer:"#PrintElementOptionSetting",paginationContainer:".hiprint-printPagination"}),this.hiprintTemplate.design("#hiprint-printTemplate"),St.setCurrentPaper(St.paperMap.A4),St.elementAddEventListen(),$$g(".params_drawer").width($$g(".params_setting_container").width()*1)}}},_hoisted_1={class:"print_template_container"},_hoisted_2={key:0},_hoisted_3=["tid"],_hoisted_4={class:"glyphicon-class"},_hoisted_5={class:"dialog-footer"},_hoisted_6={style:{height:"800px",overflow:"auto"}},_hoisted_7={class:"dialog-footer"};function _sfc_render(Be,St,Ae,Ee,Ce,_e){const Te=vue.resolveComponent("el-row"),Se=vue.resolveComponent("el-col"),xe=vue.resolveComponent("el-aside"),Fe=vue.resolveComponent("el-button"),Ue=vue.resolveComponent("el-button-group"),Re=vue.resolveComponent("el-input"),He=vue.resolveComponent("el-form-item"),$e=vue.resolveComponent("el-form"),ze=vue.resolveComponent("el-popover"),Ve=vue.resolveComponent("el-header"),ir=vue.resolveComponent("ElDrawer"),Ze=vue.resolveComponent("el-main"),ar=vue.resolveComponent("el-container"),cr=vue.resolveComponent("ElDialog");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1,[vue.createVNode(ar,{class:"print_template_main",style:{height:"100vh"}},{default:vue.withCtx(()=>[vue.createVNode(xe,{class:"hi-aside"},{default:vue.withCtx(()=>[vue.createVNode(Te,null,{default:vue.withCtx(()=>[vue.createVNode(Se,{span:24,class:"rect-printElement-types hiprintEpContainer"},{default:vue.withCtx(()=>[vue.createVNode(Te,{class:"drag_item_title"},{default:vue.withCtx(()=>St[23]||(St[23]=[vue.createTextVNode("拖拽组件列表")])),_:1}),vue.createVNode(Te,{style:{height:"100px"}},{default:vue.withCtx(()=>[vue.createVNode(Se,{span:12,class:"drag_item_box"},{default:vue.withCtx(()=>St[24]||(St[24]=[vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:"defaultModule.text",style:""},[vue.createElementVNode("span",{class:"glyphicon glyphicon-text-width","aria-hidden":"true"}),vue.createElementVNode("p",{class:"glyphicon-class"},"文本")])],-1)])),_:1}),vue.createVNode(Se,{span:12,class:"drag_item_box",tid:"defaultModule.text"},{default:vue.withCtx(()=>St[25]||(St[25]=[vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:"defaultModule.image",style:""},[vue.createElementVNode("span",{class:"glyphicon glyphicon-picture","aria-hidden":"true"}),vue.createElementVNode("p",{class:"glyphicon-class"},"图片")])],-1)])),_:1})]),_:1}),vue.createVNode(Te,{style:{height:"100px"}},{default:vue.withCtx(()=>[vue.createVNode(Se,{span:12,class:"drag_item_box",tid:"defaultModule.text"},{default:vue.withCtx(()=>St[26]||(St[26]=[vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:"defaultModule.longText"},[vue.createElementVNode("span",{class:"glyphicon glyphicon-subscript","aria-hidden":"true"}),vue.createElementVNode("p",{class:"glyphicon-class"},"长文")])],-1)])),_:1}),vue.createVNode(Se,{span:12,class:"drag_item_box",tid:"defaultModule.text"},{default:vue.withCtx(()=>St[27]||(St[27]=[vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:"defaultModule.tableCustom",style:""},[vue.createElementVNode("span",{class:"glyphicon glyphicon-th","aria-hidden":"true"}),vue.createElementVNode("p",{class:"glyphicon-class"},"表格")])],-1)])),_:1})]),_:1}),vue.createVNode(Te,{class:"drag_item_title"},{default:vue.withCtx(()=>St[28]||(St[28]=[vue.createTextVNode("辅助")])),_:1}),vue.createVNode(Te,{style:{height:"100px"}},{default:vue.withCtx(()=>[vue.createVNode(Se,{span:12,class:"drag_item_box",tid:"defaultModule.text"},{default:vue.withCtx(()=>St[29]||(St[29]=[vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:"defaultModule.hline",style:""},[vue.createElementVNode("span",{class:"glyphicon glyphicon-resize-horizontal","aria-hidden":"true"}),vue.createElementVNode("p",{class:"glyphicon-class"},"横线")])],-1)])),_:1}),vue.createVNode(Se,{span:12,class:"drag_item_box",tid:"defaultModule.text"},{default:vue.withCtx(()=>St[30]||(St[30]=[vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:"defaultModule.vline",style:""},[vue.createElementVNode("span",{class:"glyphicon glyphicon-resize-vertical","aria-hidden":"true"}),vue.createElementVNode("p",{class:"glyphicon-class"},"竖线")])],-1)])),_:1})]),_:1}),vue.createVNode(Te,{style:{height:"100px"}},{default:vue.withCtx(()=>[vue.createVNode(Se,{span:12,class:"drag_item_box",tid:"defaultModule.text"},{default:vue.withCtx(()=>St[31]||(St[31]=[vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:"defaultModule.rect"},[vue.createElementVNode("span",{class:"glyphicon glyphicon-unchecked","aria-hidden":"true"}),vue.createElementVNode("p",{class:"glyphicon-class"},"矩形")])],-1)])),_:1}),vue.createVNode(Se,{span:12,class:"drag_item_box",tid:"defaultModule.text"},{default:vue.withCtx(()=>St[32]||(St[32]=[vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:"defaultModule.oval"},[vue.createElementVNode("span",{class:"glyphicon glyphicon-record","aria-hidden":"true"}),vue.createElementVNode("p",{class:"glyphicon-class"},"椭圆")])],-1)])),_:1})]),_:1}),Ae.custFields&&Ae.custFields.length>0?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2,[vue.createVNode(Te,{class:"drag_item_title"},{default:vue.withCtx(()=>St[33]||(St[33]=[vue.createTextVNode("数据字段")])),_:1}),vue.createVNode(Te,{style:{height:"42px"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Ae.custFields,(Xe,or)=>(vue.openBlock(),vue.createBlock(Se,{span:12,class:"drag_item_box",tid:"defaultModule.text",key:or},{default:vue.withCtx(()=>[vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:Xe.tid},[vue.createElementVNode("p",_hoisted_4,vue.toDisplayString(Xe.title),1)],8,_hoisted_3)])]),_:2},1024))),128))]),_:1})])):vue.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1}),vue.createVNode(ar,null,{default:vue.withCtx(()=>[vue.createVNode(Ve,{class:"hi-header"},{default:vue.withCtx(()=>[vue.createVNode(Te,{style:{height:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(Se,{span:24,style:{height:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(Ue,null,{default:vue.withCtx(()=>[vue.createVNode(Fe,{type:_e.currentPaperType==="A3"?"primary":"info",onClick:St[0]||(St[0]=Xe=>_e.setPaper("A3"))},{default:vue.withCtx(()=>St[34]||(St[34]=[vue.createTextVNode("A3")])),_:1},8,["type"]),vue.createVNode(Fe,{type:_e.currentPaperType==="A4"?"primary":"info",onClick:St[1]||(St[1]=Xe=>_e.setPaper("A4"))},{default:vue.withCtx(()=>St[35]||(St[35]=[vue.createTextVNode("A4")])),_:1},8,["type"]),vue.createVNode(Fe,{type:_e.currentPaperType==="A5"?"primary":"info",onClick:St[2]||(St[2]=Xe=>_e.setPaper("A5"))},{default:vue.withCtx(()=>St[36]||(St[36]=[vue.createTextVNode("A5")])),_:1},8,["type"]),vue.createVNode(Fe,{type:_e.currentPaperType==="B3"?"primary":"info",onClick:St[3]||(St[3]=Xe=>_e.setPaper("B3"))},{default:vue.withCtx(()=>St[37]||(St[37]=[vue.createTextVNode("B3")])),_:1},8,["type"]),vue.createVNode(Fe,{type:_e.currentPaperType==="B4"?"primary":"info",onClick:St[4]||(St[4]=Xe=>_e.setPaper("B4"))},{default:vue.withCtx(()=>St[38]||(St[38]=[vue.createTextVNode("B4")])),_:1},8,["type"]),vue.createVNode(Fe,{type:_e.currentPaperType==="B5"?"primary":"info",onClick:St[5]||(St[5]=Xe=>_e.setPaper("B5"))},{default:vue.withCtx(()=>St[39]||(St[39]=[vue.createTextVNode("B5")])),_:1},8,["type"])]),_:1}),vue.createVNode(ze,{width:"200px",placement:"bottom",title:"请输入自定义纸张宽高",trigger:"click"},{reference:vue.withCtx(()=>[vue.createVNode(Fe,{type:_e.currentPaperType==="other"?"primary":"info"},{default:vue.withCtx(()=>St[44]||(St[44]=[vue.createTextVNode("自定义纸张")])),_:1},8,["type"])]),default:vue.withCtx(()=>[vue.createVNode($e,{ref:"otherPaperForm","label-position":"left",model:Ce.otherPaper,"label-width":"30px"},{default:vue.withCtx(()=>[vue.createVNode(Te,null,{default:vue.withCtx(()=>[vue.createVNode(Se,{span:24},{default:vue.withCtx(()=>[vue.createVNode(He,{label:"宽"},{default:vue.withCtx(()=>[vue.createVNode(Re,{modelValue:Ce.otherPaper.width,"onUpdate:modelValue":St[6]||(St[6]=Xe=>Ce.otherPaper.width=Xe)},{append:vue.withCtx(()=>St[40]||(St[40]=[vue.createTextVNode("mm")])),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(Te,null,{default:vue.withCtx(()=>[vue.createVNode(Se,{span:24},{default:vue.withCtx(()=>[vue.createVNode(He,{label:"高"},{default:vue.withCtx(()=>[vue.createVNode(Re,{modelValue:Ce.otherPaper.height,"onUpdate:modelValue":St[7]||(St[7]=Xe=>Ce.otherPaper.height=Xe)},{append:vue.withCtx(()=>St[41]||(St[41]=[vue.createTextVNode("mm")])),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(Te,null,{default:vue.withCtx(()=>[vue.createVNode(Se,{span:12},{default:vue.withCtx(()=>[vue.createVNode(Fe,{type:"primary",onClick:St[8]||(St[8]=Xe=>_e.setPaper("other",Ce.otherPaper.width,Ce.otherPaper.height))},{default:vue.withCtx(()=>St[42]||(St[42]=[vue.createTextVNode(" 确定 ")])),_:1})]),_:1}),vue.createVNode(Se,{span:12},{default:vue.withCtx(()=>[vue.createVNode(Fe,{onClick:St[9]||(St[9]=Xe=>_e.setPaper("other","",""))},{default:vue.withCtx(()=>St[43]||(St[43]=[vue.createTextVNode("清空")])),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),vue.createVNode(Ue,null,{default:vue.withCtx(()=>[vue.createVNode(Fe,{type:"info",icon:Ce.Refresh,onClick:_e.rotatePaper},{default:vue.withCtx(()=>St[45]||(St[45]=[vue.createTextVNode("旋转")])),_:1},8,["icon","onClick"]),vue.createVNode(Fe,{type:"info",icon:Ce.Delete,onClick:_e.clearTemplate},{default:vue.withCtx(()=>St[46]||(St[46]=[vue.createTextVNode("清空")])),_:1},8,["icon","onClick"])]),_:1}),vue.createVNode(Ue,null,{default:vue.withCtx(()=>[vue.createVNode(Fe,{type:"info",icon:Ce.View,onClick:St[10]||(St[10]=Xe=>_e.previewTemplate())},{default:vue.withCtx(()=>St[47]||(St[47]=[vue.createTextVNode("快速预览")])),_:1},8,["icon"]),vue.createVNode(Fe,{type:"info",icon:Ce.Document,onClick:St[11]||(St[11]=Xe=>_e.getJson())},{default:vue.withCtx(()=>St[48]||(St[48]=[vue.createTextVNode("预览JSON")])),_:1},8,["icon"]),vue.createVNode(Fe,{type:"info",icon:Ce.Tickets,onClick:St[12]||(St[12]=Xe=>_e.getHtml(Ce.printData))},{default:vue.withCtx(()=>St[49]||(St[49]=[vue.createTextVNode("预览HTML")])),_:1},8,["icon"])]),_:1}),vue.createVNode(Ue,null,{default:vue.withCtx(()=>[vue.createVNode(Fe,{type:"info",icon:Ce.Printer,onClick:St[13]||(St[13]=Xe=>_e.printTemplate(Ce.printData))},{default:vue.withCtx(()=>St[50]||(St[50]=[vue.createTextVNode("打印")])),_:1},8,["icon"])]),_:1}),vue.renderSlot(Be.$slots,"customButton",{},void 0,!0)]),_:3})]),_:3})]),_:3}),vue.createVNode(Ze,{class:"hi-main"},{default:vue.withCtx(()=>[vue.createVNode(Te,null,{default:vue.withCtx(()=>[vue.createVNode(Se,{style:{padding:"20px"},span:18,id:"hiprint-printTemplate",class:"hiprint-printTemplate"}),vue.createVNode(Se,{span:6,style:{display:"none"},class:"params_setting_container"},{default:vue.withCtx(()=>[vue.createVNode(Te,{class:"hinnn-layout-sider",style:{padding:"10px"}},{default:vue.withCtx(()=>St[51]||(St[51]=[vue.createElementVNode("div",{id:"PrintElementOptionSetting"},null,-1)])),_:1})]),_:1})]),_:1}),vue.createVNode(ir,{class:"params_drawer",title:Ce.paramsDrawerTitle??"参数设置",direction:"rtl","modal-class":"transparent-modal",onOpened:_e.handleParamsOpened,modelValue:Ce.paramsDrawerStatus,"onUpdate:modelValue":St[14]||(St[14]=Xe=>Ce.paramsDrawerStatus=Xe)},{default:vue.withCtx(()=>St[52]||(St[52]=[vue.createElementVNode("div",{id:"params_content"},null,-1)])),_:1},8,["title","onOpened","modelValue"])]),_:1})]),_:3})]),_:3}),vue.createVNode(cr,{height:"700","append-to-body":"",class:"preview_dialog",ref:"previewDialog",title:"快速预览",onOpened:St[17]||(St[17]=Xe=>_e.handlePreviewOpened(Ce.printData)),width:Ce.currentPaper.width*1+"mm",modelValue:Ce.previewDialogStatus,"onUpdate:modelValue":St[18]||(St[18]=Xe=>Ce.previewDialogStatus=Xe)},{footer:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5,[vue.createVNode(Fe,{onClick:St[15]||(St[15]=Xe=>Ce.previewDialogStatus=!1)},{default:vue.withCtx(()=>St[53]||(St[53]=[vue.createTextVNode("取 消")])),_:1}),vue.createVNode(Fe,{type:"primary",onClick:St[16]||(St[16]=Xe=>Ce.previewDialogStatus=!1)},{default:vue.withCtx(()=>St[54]||(St[54]=[vue.createTextVNode("确 定")])),_:1})])]),default:vue.withCtx(()=>[St[55]||(St[55]=vue.createElementVNode("div",{id:"preview_content"},null,-1))]),_:1},8,["width","modelValue"]),vue.createVNode(cr,{"append-to-body":"",ref:"infoDialog",title:Ce.infoDialogTitle,"lock-scroll":!0,modelValue:Ce.infoDialogStatus,"onUpdate:modelValue":St[22]||(St[22]=Xe=>Ce.infoDialogStatus=Xe)},{footer:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_7,[vue.createVNode(Fe,{onClick:St[20]||(St[20]=Xe=>Ce.infoDialogStatus=!1)},{default:vue.withCtx(()=>St[56]||(St[56]=[vue.createTextVNode("取 消")])),_:1}),vue.createVNode(Fe,{type:"primary",onClick:St[21]||(St[21]=Xe=>Ce.infoDialogStatus=!1)},{default:vue.withCtx(()=>St[57]||(St[57]=[vue.createTextVNode("复 制")])),_:1})])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_6,[vue.createVNode(Re,{type:"textarea",readonly:!0,autosize:{minRows:15},placeholder:"请输入内容",modelValue:Ce.infoTextarea,"onUpdate:modelValue":St[19]||(St[19]=Xe=>Ce.infoTextarea=Xe)},null,8,["modelValue"])])]),_:1},8,["title","modelValue"])])}const PrintDesign=_export_sfc(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-9bea5ab5"]]),install=Be=>{Be.component(PrintDesign.name,PrintDesign)},index$1={install,PrintDesign,hiprint,defaultElementTypeProvider,customData,customPrintJson};/*! @license DOMPurify 2.5.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.7/LICENSE */function _typeof$1(Be){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(St){return typeof St}:function(St){return St&&typeof Symbol=="function"&&St.constructor===Symbol&&St!==Symbol.prototype?"symbol":typeof St},_typeof$1(Be)}function _setPrototypeOf(Be,St){return _setPrototypeOf=Object.setPrototypeOf||function(Ee,Ce){return Ee.__proto__=Ce,Ee},_setPrototypeOf(Be,St)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(Be,St,Ae){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(Ce,_e,Te){var Se=[null];Se.push.apply(Se,_e);var xe=Function.bind.apply(Ce,Se),Fe=new xe;return Te&&_setPrototypeOf(Fe,Te.prototype),Fe},_construct.apply(null,arguments)}function _toConsumableArray(Be){return _arrayWithoutHoles(Be)||_iterableToArray(Be)||_unsupportedIterableToArray(Be)||_nonIterableSpread()}function _arrayWithoutHoles(Be){if(Array.isArray(Be))return _arrayLikeToArray(Be)}function _iterableToArray(Be){if(typeof Symbol<"u"&&Be[Symbol.iterator]!=null||Be["@@iterator"]!=null)return Array.from(Be)}function _unsupportedIterableToArray(Be,St){if(Be){if(typeof Be=="string")return _arrayLikeToArray(Be,St);var Ae=Object.prototype.toString.call(Be).slice(8,-1);if(Ae==="Object"&&Be.constructor&&(Ae=Be.constructor.name),Ae==="Map"||Ae==="Set")return Array.from(Be);if(Ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ae))return _arrayLikeToArray(Be,St)}}function _arrayLikeToArray(Be,St){(St==null||St>Be.length)&&(St=Be.length);for(var Ae=0,Ee=new Array(St);Ae<St;Ae++)Ee[Ae]=Be[Ae];return Ee}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var hasOwnProperty$1=Object.hasOwnProperty,setPrototypeOf$2=Object.setPrototypeOf,isFrozen=Object.isFrozen,getPrototypeOf$2=Object.getPrototypeOf,getOwnPropertyDescriptor$5=Object.getOwnPropertyDescriptor,freeze=Object.freeze,seal=Object.seal,create$3=Object.create,_ref=typeof Reflect<"u"&&Reflect,apply$3=_ref.apply,construct$1=_ref.construct;apply$3||(apply$3=function(St,Ae,Ee){return St.apply(Ae,Ee)}),freeze||(freeze=function(St){return St}),seal||(seal=function(St){return St}),construct$1||(construct$1=function(St,Ae){return _construct(St,_toConsumableArray(Ae))});var arrayForEach=unapply(Array.prototype.forEach),arrayPop=unapply(Array.prototype.pop),arrayPush=unapply(Array.prototype.push),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf$2=unapply(String.prototype.indexOf),stringTrim$1=unapply(String.prototype.trim),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(Be){return function(St){for(var Ae=arguments.length,Ee=new Array(Ae>1?Ae-1:0),Ce=1;Ce<Ae;Ce++)Ee[Ce-1]=arguments[Ce];return apply$3(Be,St,Ee)}}function unconstruct(Be){return function(){for(var St=arguments.length,Ae=new Array(St),Ee=0;Ee<St;Ee++)Ae[Ee]=arguments[Ee];return construct$1(Be,Ae)}}function addToSet(Be,St,Ae){var Ee;Ae=(Ee=Ae)!==null&&Ee!==void 0?Ee:stringToLowerCase,setPrototypeOf$2&&setPrototypeOf$2(Be,null);for(var Ce=St.length;Ce--;){var _e=St[Ce];if(typeof _e=="string"){var Te=Ae(_e);Te!==_e&&(isFrozen(St)||(St[Ce]=Te),_e=Te)}Be[_e]=!0}return Be}function clone(Be){var St=create$3(null),Ae;for(Ae in Be)apply$3(hasOwnProperty$1,Be,[Ae])===!0&&(St[Ae]=Be[Ae]);return St}function lookupGetter(Be,St){for(;Be!==null;){var Ae=getOwnPropertyDescriptor$5(Be,St);if(Ae){if(Ae.get)return unapply(Ae.get);if(typeof Ae.value=="function")return unapply(Ae.value)}Be=getPrototypeOf$2(Be)}function Ee(Ce){return console.warn("fallback value for",Ce),null}return Ee}var html$1$1=freeze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),svg$1=freeze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),svgFilters=freeze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),svgDisallowed=freeze(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mathMl$1=freeze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),mathMlDisallowed=freeze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),text=freeze(["#text"]),html$3=freeze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),svg=freeze(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mathMl=freeze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xml=freeze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),MUSTACHE_EXPR=seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ERB_EXPR=seal(/<%[\w\W]*|[\w\W]*%>/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),CUSTOM_ELEMENT=seal(/^[a-z][.\w]*(-[.\w]+)+$/i),getGlobal=function Be(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function Be(St,Ae){if(_typeof$1(St)!=="object"||typeof St.createPolicy!="function")return null;var Ee=null,Ce="data-tt-policy-suffix";Ae.currentScript&&Ae.currentScript.hasAttribute(Ce)&&(Ee=Ae.currentScript.getAttribute(Ce));var _e="dompurify"+(Ee?"#"+Ee:"");try{return St.createPolicy(_e,{createHTML:function(Se){return Se},createScriptURL:function(Se){return Se}})}catch{return console.warn("TrustedTypes policy "+_e+" could not be created."),null}};function createDOMPurify(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal(),St=function(Kr){return createDOMPurify(Kr)};if(St.version="2.5.7",St.removed=[],!Be||!Be.document||Be.document.nodeType!==9)return St.isSupported=!1,St;var Ae=Be.document,Ee=Be.document,Ce=Be.DocumentFragment,_e=Be.HTMLTemplateElement,Te=Be.Node,Se=Be.Element,xe=Be.NodeFilter,Fe=Be.NamedNodeMap,Ue=Fe===void 0?Be.NamedNodeMap||Be.MozNamedAttrMap:Fe,Re=Be.HTMLFormElement,He=Be.DOMParser,$e=Be.trustedTypes,ze=Se.prototype,Ve=lookupGetter(ze,"cloneNode"),ir=lookupGetter(ze,"nextSibling"),Ze=lookupGetter(ze,"childNodes"),ar=lookupGetter(ze,"parentNode");if(typeof _e=="function"){var cr=Ee.createElement("template");cr.content&&cr.content.ownerDocument&&(Ee=cr.content.ownerDocument)}var Xe=_createTrustedTypesPolicy($e,Ae),or=Xe?Xe.createHTML(""):"",Oe=Ee,Je=Oe.implementation,Ye=Oe.createNodeIterator,rr=Oe.createDocumentFragment,vr=Oe.getElementsByTagName,er=Ae.importNode,Ar={};try{Ar=clone(Ee).documentMode?Ee.documentMode:{}}catch{}var gr={};St.isSupported=typeof ar=="function"&&Je&&Je.createHTMLDocument!==void 0&&Ar!==9;var mr=MUSTACHE_EXPR,Ur=ERB_EXPR,Lr=TMPLIT_EXPR,Mr=DATA_ATTR,Qr=ARIA_ATTR,Dr=IS_SCRIPT_OR_DATA,Xr=ATTR_WHITESPACE,sn=CUSTOM_ELEMENT,ur=IS_ALLOWED_URI,_r=null,Fr=addToSet({},[].concat(_toConsumableArray(html$1$1),_toConsumableArray(svg$1),_toConsumableArray(svgFilters),_toConsumableArray(mathMl$1),_toConsumableArray(text))),Pr=null,kr=addToSet({},[].concat(_toConsumableArray(html$3),_toConsumableArray(svg),_toConsumableArray(mathMl),_toConsumableArray(xml))),Vr=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),nn=null,Jr=null,wn=!0,Cn=!0,On=!1,In=!0,Xn=!1,fn=!0,Sr=!1,ti=!1,Yn=!1,Tn=!1,Nn=!1,Rn=!1,$n=!0,zn=!1,Gn="user-content-",ii=!0,ui=!1,mi={},yi=null,Ai=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),hi=null,Hn=addToSet({},["audio","video","img","source","image","track"]),Oi=null,wi=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),br="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",je="http://www.w3.org/1999/xhtml",sr=je,dr=!1,Or=null,qr=addToSet({},[br,Ke,je],stringToString),gn,mn=["application/xhtml+xml","text/html"],Ln="text/html",We,ke=null,Wr=Ee.createElement("form"),Bn=function(Kr){return Kr instanceof RegExp||Kr instanceof Function},Jn=function(Kr){ke&&ke===Kr||((!Kr||_typeof$1(Kr)!=="object")&&(Kr={}),Kr=clone(Kr),gn=mn.indexOf(Kr.PARSER_MEDIA_TYPE)===-1?gn=Ln:gn=Kr.PARSER_MEDIA_TYPE,We=gn==="application/xhtml+xml"?stringToString:stringToLowerCase,_r="ALLOWED_TAGS"in Kr?addToSet({},Kr.ALLOWED_TAGS,We):Fr,Pr="ALLOWED_ATTR"in Kr?addToSet({},Kr.ALLOWED_ATTR,We):kr,Or="ALLOWED_NAMESPACES"in Kr?addToSet({},Kr.ALLOWED_NAMESPACES,stringToString):qr,Oi="ADD_URI_SAFE_ATTR"in Kr?addToSet(clone(wi),Kr.ADD_URI_SAFE_ATTR,We):wi,hi="ADD_DATA_URI_TAGS"in Kr?addToSet(clone(Hn),Kr.ADD_DATA_URI_TAGS,We):Hn,yi="FORBID_CONTENTS"in Kr?addToSet({},Kr.FORBID_CONTENTS,We):Ai,nn="FORBID_TAGS"in Kr?addToSet({},Kr.FORBID_TAGS,We):{},Jr="FORBID_ATTR"in Kr?addToSet({},Kr.FORBID_ATTR,We):{},mi="USE_PROFILES"in Kr?Kr.USE_PROFILES:!1,wn=Kr.ALLOW_ARIA_ATTR!==!1,Cn=Kr.ALLOW_DATA_ATTR!==!1,On=Kr.ALLOW_UNKNOWN_PROTOCOLS||!1,In=Kr.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Xn=Kr.SAFE_FOR_TEMPLATES||!1,fn=Kr.SAFE_FOR_XML!==!1,Sr=Kr.WHOLE_DOCUMENT||!1,Tn=Kr.RETURN_DOM||!1,Nn=Kr.RETURN_DOM_FRAGMENT||!1,Rn=Kr.RETURN_TRUSTED_TYPE||!1,Yn=Kr.FORCE_BODY||!1,$n=Kr.SANITIZE_DOM!==!1,zn=Kr.SANITIZE_NAMED_PROPS||!1,ii=Kr.KEEP_CONTENT!==!1,ui=Kr.IN_PLACE||!1,ur=Kr.ALLOWED_URI_REGEXP||ur,sr=Kr.NAMESPACE||je,Vr=Kr.CUSTOM_ELEMENT_HANDLING||{},Kr.CUSTOM_ELEMENT_HANDLING&&Bn(Kr.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Vr.tagNameCheck=Kr.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Kr.CUSTOM_ELEMENT_HANDLING&&Bn(Kr.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Vr.attributeNameCheck=Kr.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Kr.CUSTOM_ELEMENT_HANDLING&&typeof Kr.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Vr.allowCustomizedBuiltInElements=Kr.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Xn&&(Cn=!1),Nn&&(Tn=!0),mi&&(_r=addToSet({},_toConsumableArray(text)),Pr=[],mi.html===!0&&(addToSet(_r,html$1$1),addToSet(Pr,html$3)),mi.svg===!0&&(addToSet(_r,svg$1),addToSet(Pr,svg),addToSet(Pr,xml)),mi.svgFilters===!0&&(addToSet(_r,svgFilters),addToSet(Pr,svg),addToSet(Pr,xml)),mi.mathMl===!0&&(addToSet(_r,mathMl$1),addToSet(Pr,mathMl),addToSet(Pr,xml))),Kr.ADD_TAGS&&(_r===Fr&&(_r=clone(_r)),addToSet(_r,Kr.ADD_TAGS,We)),Kr.ADD_ATTR&&(Pr===kr&&(Pr=clone(Pr)),addToSet(Pr,Kr.ADD_ATTR,We)),Kr.ADD_URI_SAFE_ATTR&&addToSet(Oi,Kr.ADD_URI_SAFE_ATTR,We),Kr.FORBID_CONTENTS&&(yi===Ai&&(yi=clone(yi)),addToSet(yi,Kr.FORBID_CONTENTS,We)),ii&&(_r["#text"]=!0),Sr&&addToSet(_r,["html","head","body"]),_r.table&&(addToSet(_r,["tbody"]),delete nn.tbody),freeze&&freeze(Kr),ke=Kr)},pi=addToSet({},["mi","mo","mn","ms","mtext"]),Mn=addToSet({},["annotation-xml"]),Fi=addToSet({},["title","style","font","a","script"]),Ui=addToSet({},svg$1);addToSet(Ui,svgFilters),addToSet(Ui,svgDisallowed);var Ki=addToSet({},mathMl$1);addToSet(Ki,mathMlDisallowed);var Gi=function(Kr){var Un=ar(Kr);(!Un||!Un.tagName)&&(Un={namespaceURI:sr,tagName:"template"});var Vn=stringToLowerCase(Kr.tagName),Pi=stringToLowerCase(Un.tagName);return Or[Kr.namespaceURI]?Kr.namespaceURI===Ke?Un.namespaceURI===je?Vn==="svg":Un.namespaceURI===br?Vn==="svg"&&(Pi==="annotation-xml"||pi[Pi]):!!Ui[Vn]:Kr.namespaceURI===br?Un.namespaceURI===je?Vn==="math":Un.namespaceURI===Ke?Vn==="math"&&Mn[Pi]:!!Ki[Vn]:Kr.namespaceURI===je?Un.namespaceURI===Ke&&!Mn[Pi]||Un.namespaceURI===br&&!pi[Pi]?!1:!Ki[Vn]&&(Fi[Vn]||!Ui[Vn]):!!(gn==="application/xhtml+xml"&&Or[Kr.namespaceURI]):!1},Ii=function(Kr){arrayPush(St.removed,{element:Kr});try{Kr.parentNode.removeChild(Kr)}catch{try{Kr.outerHTML=or}catch{Kr.remove()}}},Yi=function(Kr,Un){try{arrayPush(St.removed,{attribute:Un.getAttributeNode(Kr),from:Un})}catch{arrayPush(St.removed,{attribute:null,from:Un})}if(Un.removeAttribute(Kr),Kr==="is"&&!Pr[Kr])if(Tn||Nn)try{Ii(Un)}catch{}else try{Un.setAttribute(Kr,"")}catch{}},to=function(Kr){var Un,Vn;if(Yn)Kr="<remove></remove>"+Kr;else{var Pi=stringMatch(Kr,/^[\r\n\t ]+/);Vn=Pi&&Pi[0]}gn==="application/xhtml+xml"&&sr===je&&(Kr='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Kr+"</body></html>");var aA=Xe?Xe.createHTML(Kr):Kr;if(sr===je)try{Un=new He().parseFromString(aA,gn)}catch{}if(!Un||!Un.documentElement){Un=Je.createDocument(sr,"template",null);try{Un.documentElement.innerHTML=dr?or:aA}catch{}}var qi=Un.body||Un.documentElement;return Kr&&Vn&&qi.insertBefore(Ee.createTextNode(Vn),qi.childNodes[0]||null),sr===je?vr.call(Un,Sr?"html":"body")[0]:Sr?Un.documentElement:qi},PA=function(Kr){return Ye.call(Kr.ownerDocument||Kr,Kr,xe.SHOW_ELEMENT|xe.SHOW_COMMENT|xe.SHOW_TEXT|xe.SHOW_PROCESSING_INSTRUCTION|xe.SHOW_CDATA_SECTION,null,!1)},pA=function(Kr){return Kr instanceof Re&&(typeof Kr.nodeName!="string"||typeof Kr.textContent!="string"||typeof Kr.removeChild!="function"||!(Kr.attributes instanceof Ue)||typeof Kr.removeAttribute!="function"||typeof Kr.setAttribute!="function"||typeof Kr.namespaceURI!="string"||typeof Kr.insertBefore!="function"||typeof Kr.hasChildNodes!="function")},sA=function(Kr){return _typeof$1(Te)==="object"?Kr instanceof Te:Kr&&_typeof$1(Kr)==="object"&&typeof Kr.nodeType=="number"&&typeof Kr.nodeName=="string"},rA=function(Kr,Un,Vn){gr[Kr]&&arrayForEach(gr[Kr],function(Pi){Pi.call(St,Un,Vn,ke)})},dA=function(Kr){var Un;if(rA("beforeSanitizeElements",Kr,null),pA(Kr)||regExpTest(/[\u0080-\uFFFF]/,Kr.nodeName))return Ii(Kr),!0;var Vn=We(Kr.nodeName);if(rA("uponSanitizeElement",Kr,{tagName:Vn,allowedTags:_r}),Kr.hasChildNodes()&&!sA(Kr.firstElementChild)&&(!sA(Kr.content)||!sA(Kr.content.firstElementChild))&®ExpTest(/<[/\w]/g,Kr.innerHTML)&®ExpTest(/<[/\w]/g,Kr.textContent)||Vn==="select"&®ExpTest(/<template/i,Kr.innerHTML)||Kr.nodeType===7||fn&&Kr.nodeType===8&®ExpTest(/<[/\w]/g,Kr.data))return Ii(Kr),!0;if(!_r[Vn]||nn[Vn]){if(!nn[Vn]&&OA(Vn)&&(Vr.tagNameCheck instanceof RegExp&®ExpTest(Vr.tagNameCheck,Vn)||Vr.tagNameCheck instanceof Function&&Vr.tagNameCheck(Vn)))return!1;if(ii&&!yi[Vn]){var Pi=ar(Kr)||Kr.parentNode,aA=Ze(Kr)||Kr.childNodes;if(aA&&Pi)for(var qi=aA.length,zi=qi-1;zi>=0;--zi){var VA=Ve(aA[zi],!0);VA.__removalCount=(Kr.__removalCount||0)+1,Pi.insertBefore(VA,ir(Kr))}}return Ii(Kr),!0}return Kr instanceof Se&&!Gi(Kr)||(Vn==="noscript"||Vn==="noembed"||Vn==="noframes")&®ExpTest(/<\/no(script|embed|frames)/i,Kr.innerHTML)?(Ii(Kr),!0):(Xn&&Kr.nodeType===3&&(Un=Kr.textContent,Un=stringReplace(Un,mr," "),Un=stringReplace(Un,Ur," "),Un=stringReplace(Un,Lr," "),Kr.textContent!==Un&&(arrayPush(St.removed,{element:Kr.cloneNode()}),Kr.textContent=Un)),rA("afterSanitizeElements",Kr,null),!1)},vA=function(Kr,Un,Vn){if($n&&(Un==="id"||Un==="name")&&(Vn in Ee||Vn in Wr))return!1;if(!(Cn&&!Jr[Un]&®ExpTest(Mr,Un))){if(!(wn&®ExpTest(Qr,Un))){if(!Pr[Un]||Jr[Un]){if(!(OA(Kr)&&(Vr.tagNameCheck instanceof RegExp&®ExpTest(Vr.tagNameCheck,Kr)||Vr.tagNameCheck instanceof Function&&Vr.tagNameCheck(Kr))&&(Vr.attributeNameCheck instanceof RegExp&®ExpTest(Vr.attributeNameCheck,Un)||Vr.attributeNameCheck instanceof Function&&Vr.attributeNameCheck(Un))||Un==="is"&&Vr.allowCustomizedBuiltInElements&&(Vr.tagNameCheck instanceof RegExp&®ExpTest(Vr.tagNameCheck,Vn)||Vr.tagNameCheck instanceof Function&&Vr.tagNameCheck(Vn))))return!1}else if(!Oi[Un]){if(!regExpTest(ur,stringReplace(Vn,Xr,""))){if(!((Un==="src"||Un==="xlink:href"||Un==="href")&&Kr!=="script"&&stringIndexOf$2(Vn,"data:")===0&&hi[Kr])){if(!(On&&!regExpTest(Dr,stringReplace(Vn,Xr,"")))){if(Vn)return!1}}}}}}return!0},OA=function(Kr){return Kr!=="annotation-xml"&&stringMatch(Kr,sn)},WA=function(Kr){var Un,Vn,Pi,aA;rA("beforeSanitizeAttributes",Kr,null);var qi=Kr.attributes;if(qi){var zi={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Pr};for(aA=qi.length;aA--;){Un=qi[aA];var VA=Un,Ti=VA.name,KA=VA.namespaceURI;if(Vn=Ti==="value"?Un.value:stringTrim$1(Un.value),Pi=We(Ti),zi.attrName=Pi,zi.attrValue=Vn,zi.keepAttr=!0,zi.forceKeepAttr=void 0,rA("uponSanitizeAttribute",Kr,zi),Vn=zi.attrValue,!zi.forceKeepAttr&&(Yi(Ti,Kr),!!zi.keepAttr)){if(!In&®ExpTest(/\/>/i,Vn)){Yi(Ti,Kr);continue}Xn&&(Vn=stringReplace(Vn,mr," "),Vn=stringReplace(Vn,Ur," "),Vn=stringReplace(Vn,Lr," "));var eo=We(Kr.nodeName);if(vA(eo,Pi,Vn)){if(zn&&(Pi==="id"||Pi==="name")&&(Yi(Ti,Kr),Vn=Gn+Vn),fn&®ExpTest(/((--!?|])>)|<\/(style|title)/i,Vn)){Yi(Ti,Kr);continue}if(Xe&&_typeof$1($e)==="object"&&typeof $e.getAttributeType=="function"&&!KA)switch($e.getAttributeType(eo,Pi)){case"TrustedHTML":{Vn=Xe.createHTML(Vn);break}case"TrustedScriptURL":{Vn=Xe.createScriptURL(Vn);break}}try{KA?Kr.setAttributeNS(KA,Ti,Vn):Kr.setAttribute(Ti,Vn),pA(Kr)?Ii(Kr):arrayPop(St.removed)}catch{}}}}rA("afterSanitizeAttributes",Kr,null)}},lo=function ei(Kr){var Un,Vn=PA(Kr);for(rA("beforeSanitizeShadowDOM",Kr,null);Un=Vn.nextNode();)rA("uponSanitizeShadowNode",Un,null),!dA(Un)&&(Un.content instanceof Ce&&ei(Un.content),WA(Un));rA("afterSanitizeShadowDOM",Kr,null)};return St.sanitize=function(ei){var Kr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Un,Vn,Pi,aA,qi;if(dr=!ei,dr&&(ei="<!-->"),typeof ei!="string"&&!sA(ei))if(typeof ei.toString=="function"){if(ei=ei.toString(),typeof ei!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!St.isSupported){if(_typeof$1(Be.toStaticHTML)==="object"||typeof Be.toStaticHTML=="function"){if(typeof ei=="string")return Be.toStaticHTML(ei);if(sA(ei))return Be.toStaticHTML(ei.outerHTML)}return ei}if(ti||Jn(Kr),St.removed=[],typeof ei=="string"&&(ui=!1),ui){if(ei.nodeName){var zi=We(ei.nodeName);if(!_r[zi]||nn[zi])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(ei instanceof Te)Un=to("<!---->"),Vn=Un.ownerDocument.importNode(ei,!0),Vn.nodeType===1&&Vn.nodeName==="BODY"||Vn.nodeName==="HTML"?Un=Vn:Un.appendChild(Vn);else{if(!Tn&&!Xn&&!Sr&&ei.indexOf("<")===-1)return Xe&&Rn?Xe.createHTML(ei):ei;if(Un=to(ei),!Un)return Tn?null:Rn?or:""}Un&&Yn&&Ii(Un.firstChild);for(var VA=PA(ui?ei:Un);Pi=VA.nextNode();)Pi.nodeType===3&&Pi===aA||dA(Pi)||(Pi.content instanceof Ce&&lo(Pi.content),WA(Pi),aA=Pi);if(aA=null,ui)return ei;if(Tn){if(Nn)for(qi=rr.call(Un.ownerDocument);Un.firstChild;)qi.appendChild(Un.firstChild);else qi=Un;return(Pr.shadowroot||Pr.shadowrootmod)&&(qi=er.call(Ae,qi,!0)),qi}var Ti=Sr?Un.outerHTML:Un.innerHTML;return Sr&&_r["!doctype"]&&Un.ownerDocument&&Un.ownerDocument.doctype&&Un.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,Un.ownerDocument.doctype.name)&&(Ti="<!DOCTYPE "+Un.ownerDocument.doctype.name+`>
`+Ti),Xn&&(Ti=stringReplace(Ti,mr," "),Ti=stringReplace(Ti,Ur," "),Ti=stringReplace(Ti,Lr," ")),Xe&&Rn?Xe.createHTML(Ti):Ti},St.setConfig=function(ei){Jn(ei),ti=!0},St.clearConfig=function(){ke=null,ti=!1},St.isValidAttribute=function(ei,Kr,Un){ke||Jn({});var Vn=We(ei),Pi=We(Kr);return vA(Vn,Pi,Un)},St.addHook=function(ei,Kr){typeof Kr=="function"&&(gr[ei]=gr[ei]||[],arrayPush(gr[ei],Kr))},St.removeHook=function(ei){if(gr[ei])return arrayPop(gr[ei])},St.removeHooks=function(ei){gr[ei]&&(gr[ei]=[])},St.removeAllHooks=function(){gr={}},St}var purify=createDOMPurify();const purify_es=Object.freeze(Object.defineProperty({__proto__:null,default:purify},Symbol.toStringTag,{value:"Module"}));var check=function(Be){return Be&&Be.Math===Math&&Be},globalThis_1=check(typeof globalThis=="object"&&globalThis)||check(typeof window=="object"&&window)||check(typeof self=="object"&&self)||check(typeof commonjsGlobal=="object"&&commonjsGlobal)||check(typeof commonjsGlobal=="object"&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$l=function(Be){try{return!!Be()}catch{return!0}},fails$k=fails$l,descriptors=!fails$k(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),fails$j=fails$l,functionBindNative=!fails$j(function(){var Be=(function(){}).bind();return typeof Be!="function"||Be.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$j=Function.prototype.call,functionCall=NATIVE_BIND$3?call$j.bind(call$j):function(){return call$j.apply(call$j,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$4=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$4&&!$propertyIsEnumerable.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function Be(St){var Ae=getOwnPropertyDescriptor$4(this,St);return!!Ae&&Ae.enumerable}:$propertyIsEnumerable;var createPropertyDescriptor$3=function(Be,St){return{enumerable:!(Be&1),configurable:!(Be&2),writable:!(Be&4),value:St}},NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,call$i=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$2&&FunctionPrototype$2.bind.bind(call$i,call$i),functionUncurryThis=NATIVE_BIND$2?uncurryThisWithBind:function(Be){return function(){return call$i.apply(Be,arguments)}},uncurryThis$o=functionUncurryThis,toString$b=uncurryThis$o({}.toString),stringSlice$7=uncurryThis$o("".slice),classofRaw$2=function(Be){return stringSlice$7(toString$b(Be),8,-1)},uncurryThis$n=functionUncurryThis,fails$i=fails$l,classof$8=classofRaw$2,$Object$4=Object,split=uncurryThis$n("".split),indexedObject=fails$i(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(Be){return classof$8(Be)==="String"?split(Be,""):$Object$4(Be)}:$Object$4,isNullOrUndefined$7=function(Be){return Be==null},isNullOrUndefined$6=isNullOrUndefined$7,$TypeError$f=TypeError,requireObjectCoercible$b=function(Be){if(isNullOrUndefined$6(Be))throw new $TypeError$f("Can't call method on "+Be);return Be},IndexedObject$1=indexedObject,requireObjectCoercible$a=requireObjectCoercible$b,toIndexedObject$5=function(Be){return IndexedObject$1(requireObjectCoercible$a(Be))},documentAll=typeof document=="object"&&document.all,isCallable$l=typeof documentAll>"u"&&documentAll!==void 0?function(Be){return typeof Be=="function"||Be===documentAll}:function(Be){return typeof Be=="function"},isCallable$k=isCallable$l,isObject$b=function(Be){return typeof Be=="object"?Be!==null:isCallable$k(Be)},globalThis$m=globalThis_1,isCallable$j=isCallable$l,aFunction=function(Be){return isCallable$j(Be)?Be:void 0},getBuiltIn$7=function(Be,St){return arguments.length<2?aFunction(globalThis$m[Be]):globalThis$m[Be]&&globalThis$m[Be][St]},uncurryThis$m=functionUncurryThis,objectIsPrototypeOf=uncurryThis$m({}.isPrototypeOf),globalThis$l=globalThis_1,navigator$1=globalThis$l.navigator,userAgent$5=navigator$1&&navigator$1.userAgent,environmentUserAgent=userAgent$5?String(userAgent$5):"",globalThis$k=globalThis_1,userAgent$4=environmentUserAgent,process$4=globalThis$k.process,Deno$1=globalThis$k.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,match,version;v8&&(match=v8.split("."),version=match[0]>0&&match[0]<4?1:+(match[0]+match[1])),!version&&userAgent$4&&(match=userAgent$4.match(/Edge\/(\d+)/),(!match||match[1]>=74)&&(match=userAgent$4.match(/Chrome\/(\d+)/),match&&(version=+match[1])));var environmentV8Version=version,V8_VERSION$1=environmentV8Version,fails$h=fails$l,globalThis$j=globalThis_1,$String$5=globalThis$j.String,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$h(function(){var Be=Symbol("symbol detection");return!$String$5(Be)||!(Object(Be)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$1=symbolConstructorDetection,useSymbolAsUid=NATIVE_SYMBOL$1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$6=getBuiltIn$7,isCallable$i=isCallable$l,isPrototypeOf$3=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=USE_SYMBOL_AS_UID$1?function(Be){return typeof Be=="symbol"}:function(Be){var St=getBuiltIn$6("Symbol");return isCallable$i(St)&&isPrototypeOf$3(St.prototype,$Object$3(Be))},$String$4=String,tryToString$4=function(Be){try{return $String$4(Be)}catch{return"Object"}},isCallable$h=isCallable$l,tryToString$3=tryToString$4,$TypeError$e=TypeError,aCallable$9=function(Be){if(isCallable$h(Be))return Be;throw new $TypeError$e(tryToString$3(Be)+" is not a function")},aCallable$8=aCallable$9,isNullOrUndefined$5=isNullOrUndefined$7,getMethod$6=function(Be,St){var Ae=Be[St];return isNullOrUndefined$5(Ae)?void 0:aCallable$8(Ae)},call$h=functionCall,isCallable$g=isCallable$l,isObject$a=isObject$b,$TypeError$d=TypeError,ordinaryToPrimitive$1=function(Be,St){var Ae,Ee;if(St==="string"&&isCallable$g(Ae=Be.toString)&&!isObject$a(Ee=call$h(Ae,Be))||isCallable$g(Ae=Be.valueOf)&&!isObject$a(Ee=call$h(Ae,Be))||St!=="string"&&isCallable$g(Ae=Be.toString)&&!isObject$a(Ee=call$h(Ae,Be)))return Ee;throw new $TypeError$d("Can't convert object to primitive value")},sharedStore={exports:{}},globalThis$i=globalThis_1,defineProperty$5=Object.defineProperty,defineGlobalProperty$3=function(Be,St){try{defineProperty$5(globalThis$i,Be,{value:St,configurable:!0,writable:!0})}catch{globalThis$i[Be]=St}return St},globalThis$h=globalThis_1,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=sharedStore.exports=globalThis$h[SHARED]||defineGlobalProperty$2(SHARED,{});(store$3.versions||(store$3.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"});var sharedStoreExports=sharedStore.exports,store$2=sharedStoreExports,shared$4=function(Be,St){return store$2[Be]||(store$2[Be]=St||{})},requireObjectCoercible$9=requireObjectCoercible$b,$Object$2=Object,toObject$4=function(Be){return $Object$2(requireObjectCoercible$9(Be))},uncurryThis$l=functionUncurryThis,toObject$3=toObject$4,hasOwnProperty=uncurryThis$l({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function Be(St,Ae){return hasOwnProperty(toObject$3(St),Ae)},uncurryThis$k=functionUncurryThis,id$1=0,postfix=Math.random(),toString$a=uncurryThis$k(1 .toString),uid$2=function(Be){return"Symbol("+(Be===void 0?"":Be)+")_"+toString$a(++id$1+postfix,36)},globalThis$g=globalThis_1,shared$3=shared$4,hasOwn$a=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$1=globalThis$g.Symbol,WellKnownSymbolsStore=shared$3("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1.for||Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$i=function(Be){return hasOwn$a(WellKnownSymbolsStore,Be)||(WellKnownSymbolsStore[Be]=NATIVE_SYMBOL&&hasOwn$a(Symbol$1,Be)?Symbol$1[Be]:createWellKnownSymbol("Symbol."+Be)),WellKnownSymbolsStore[Be]},call$g=functionCall,isObject$9=isObject$b,isSymbol$1=isSymbol$2,getMethod$5=getMethod$6,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$h=wellKnownSymbol$i,$TypeError$c=TypeError,TO_PRIMITIVE=wellKnownSymbol$h("toPrimitive"),toPrimitive$2=function(Be,St){if(!isObject$9(Be)||isSymbol$1(Be))return Be;var Ae=getMethod$5(Be,TO_PRIMITIVE),Ee;if(Ae){if(St===void 0&&(St="default"),Ee=call$g(Ae,Be,St),!isObject$9(Ee)||isSymbol$1(Ee))return Ee;throw new $TypeError$c("Can't convert object to primitive value")}return St===void 0&&(St="number"),ordinaryToPrimitive(Be,St)},toPrimitive$1=toPrimitive$2,isSymbol=isSymbol$2,toPropertyKey$3=function(Be){var St=toPrimitive$1(Be,"string");return isSymbol(St)?St:St+""},globalThis$f=globalThis_1,isObject$8=isObject$b,document$3=globalThis$f.document,EXISTS$1=isObject$8(document$3)&&isObject$8(document$3.createElement),documentCreateElement$2=function(Be){return EXISTS$1?document$3.createElement(Be):{}},DESCRIPTORS$a=descriptors,fails$g=fails$l,createElement$1=documentCreateElement$2,ie8DomDefine=!DESCRIPTORS$a&&!fails$g(function(){return Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a!==7}),DESCRIPTORS$9=descriptors,call$f=functionCall,propertyIsEnumerableModule=objectPropertyIsEnumerable,createPropertyDescriptor$2=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,hasOwn$9=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$9?$getOwnPropertyDescriptor$1:function Be(St,Ae){if(St=toIndexedObject$4(St),Ae=toPropertyKey$2(Ae),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(St,Ae)}catch{}if(hasOwn$9(St,Ae))return createPropertyDescriptor$2(!call$f(propertyIsEnumerableModule.f,St,Ae),St[Ae])};var objectDefineProperty={},DESCRIPTORS$8=descriptors,fails$f=fails$l,v8PrototypeDefineBug=DESCRIPTORS$8&&fails$f(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),isObject$7=isObject$b,$String$3=String,$TypeError$b=TypeError,anObject$f=function(Be){if(isObject$7(Be))return Be;throw new $TypeError$b($String$3(Be)+" is not an object")},DESCRIPTORS$7=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$e=anObject$f,toPropertyKey$1=toPropertyKey$3,$TypeError$a=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable";objectDefineProperty.f=DESCRIPTORS$7?V8_PROTOTYPE_DEFINE_BUG$1?function Be(St,Ae,Ee){if(anObject$e(St),Ae=toPropertyKey$1(Ae),anObject$e(Ee),typeof St=="function"&&Ae==="prototype"&&"value"in Ee&&WRITABLE in Ee&&!Ee[WRITABLE]){var Ce=$getOwnPropertyDescriptor(St,Ae);Ce&&Ce[WRITABLE]&&(St[Ae]=Ee.value,Ee={configurable:CONFIGURABLE$1 in Ee?Ee[CONFIGURABLE$1]:Ce[CONFIGURABLE$1],enumerable:ENUMERABLE in Ee?Ee[ENUMERABLE]:Ce[ENUMERABLE],writable:!1})}return $defineProperty(St,Ae,Ee)}:$defineProperty:function Be(St,Ae,Ee){if(anObject$e(St),Ae=toPropertyKey$1(Ae),anObject$e(Ee),IE8_DOM_DEFINE)try{return $defineProperty(St,Ae,Ee)}catch{}if("get"in Ee||"set"in Ee)throw new $TypeError$a("Accessors not supported");return"value"in Ee&&(St[Ae]=Ee.value),St};var DESCRIPTORS$6=descriptors,definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$3,createNonEnumerableProperty$5=DESCRIPTORS$6?function(Be,St,Ae){return definePropertyModule$3.f(Be,St,createPropertyDescriptor$1(1,Ae))}:function(Be,St,Ae){return Be[St]=Ae,Be},makeBuiltIn$3={exports:{}},DESCRIPTORS$5=descriptors,hasOwn$8=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$5&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$8(FunctionPrototype$1,"name"),PROPER=EXISTS&&(function Be(){}).name==="something",CONFIGURABLE=EXISTS&&(!DESCRIPTORS$5||DESCRIPTORS$5&&getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS,PROPER,CONFIGURABLE},uncurryThis$j=functionUncurryThis,isCallable$f=isCallable$l,store$1=sharedStoreExports,functionToString=uncurryThis$j(Function.toString);isCallable$f(store$1.inspectSource)||(store$1.inspectSource=function(Be){return functionToString(Be)});var inspectSource$3=store$1.inspectSource,globalThis$e=globalThis_1,isCallable$e=isCallable$l,WeakMap$1=globalThis$e.WeakMap,weakMapBasicDetection=isCallable$e(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$2=shared$4,uid=uid$2,keys=shared$2("keys"),sharedKey$3=function(Be){return keys[Be]||(keys[Be]=uid(Be))},hiddenKeys$4={},NATIVE_WEAK_MAP=weakMapBasicDetection,globalThis$d=globalThis_1,isObject$6=isObject$b,createNonEnumerableProperty$4=createNonEnumerableProperty$5,hasOwn$7=hasOwnProperty_1,shared$1=sharedStoreExports,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$2=globalThis$d.TypeError,WeakMap=globalThis$d.WeakMap,set$1,get,has,enforce=function(Be){return has(Be)?get(Be):set$1(Be,{})},getterFor=function(Be){return function(St){var Ae;if(!isObject$6(St)||(Ae=get(St)).type!==Be)throw new TypeError$2("Incompatible receiver, "+Be+" required");return Ae}};if(NATIVE_WEAK_MAP||shared$1.state){var store=shared$1.state||(shared$1.state=new WeakMap);store.get=store.get,store.has=store.has,store.set=store.set,set$1=function(Be,St){if(store.has(Be))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return St.facade=Be,store.set(Be,St),St},get=function(Be){return store.get(Be)||{}},has=function(Be){return store.has(Be)}}else{var STATE=sharedKey$2("state");hiddenKeys$3[STATE]=!0,set$1=function(Be,St){if(hasOwn$7(Be,STATE))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return St.facade=Be,createNonEnumerableProperty$4(Be,STATE,St),St},get=function(Be){return hasOwn$7(Be,STATE)?Be[STATE]:{}},has=function(Be){return hasOwn$7(Be,STATE)}}var internalState={set:set$1,get,has,enforce,getterFor},uncurryThis$i=functionUncurryThis,fails$e=fails$l,isCallable$d=isCallable$l,hasOwn$6=hasOwnProperty_1,DESCRIPTORS$4=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,InternalStateModule$2=internalState,enforceInternalState=InternalStateModule$2.enforce,getInternalState$2=InternalStateModule$2.get,$String$2=String,defineProperty$4=Object.defineProperty,stringSlice$6=uncurryThis$i("".slice),replace$3=uncurryThis$i("".replace),join=uncurryThis$i([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$4&&!fails$e(function(){return defineProperty$4(function(){},"length",{value:8}).length!==8}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(Be,St,Ae){stringSlice$6($String$2(St),0,7)==="Symbol("&&(St="["+replace$3($String$2(St),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),Ae&&Ae.getter&&(St="get "+St),Ae&&Ae.setter&&(St="set "+St),(!hasOwn$6(Be,"name")||CONFIGURABLE_FUNCTION_NAME$1&&Be.name!==St)&&(DESCRIPTORS$4?defineProperty$4(Be,"name",{value:St,configurable:!0}):Be.name=St),CONFIGURABLE_LENGTH&&Ae&&hasOwn$6(Ae,"arity")&&Be.length!==Ae.arity&&defineProperty$4(Be,"length",{value:Ae.arity});try{Ae&&hasOwn$6(Ae,"constructor")&&Ae.constructor?DESCRIPTORS$4&&defineProperty$4(Be,"prototype",{writable:!1}):Be.prototype&&(Be.prototype=void 0)}catch{}var Ee=enforceInternalState(Be);return hasOwn$6(Ee,"source")||(Ee.source=join(TEMPLATE,typeof St=="string"?St:"")),Be};Function.prototype.toString=makeBuiltIn$2(function Be(){return isCallable$d(this)&&getInternalState$2(this).source||inspectSource$2(this)},"toString");var makeBuiltInExports=makeBuiltIn$3.exports,isCallable$c=isCallable$l,definePropertyModule$2=objectDefineProperty,makeBuiltIn$1=makeBuiltInExports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$7=function(Be,St,Ae,Ee){Ee||(Ee={});var Ce=Ee.enumerable,_e=Ee.name!==void 0?Ee.name:St;if(isCallable$c(Ae)&&makeBuiltIn$1(Ae,_e,Ee),Ee.global)Ce?Be[St]=Ae:defineGlobalProperty$1(St,Ae);else{try{Ee.unsafe?Be[St]&&(Ce=!0):delete Be[St]}catch{}Ce?Be[St]=Ae:definePropertyModule$2.f(Be,St,{value:Ae,enumerable:!1,configurable:!Ee.nonConfigurable,writable:!Ee.nonWritable})}return Be},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$1=Math.floor,mathTrunc=Math.trunc||function Be(St){var Ae=+St;return(Ae>0?floor$1:ceil)(Ae)},trunc=mathTrunc,toIntegerOrInfinity$4=function(Be){var St=+Be;return St!==St||St===0?0:trunc(St)},toIntegerOrInfinity$3=toIntegerOrInfinity$4,max$1=Math.max,min$5=Math.min,toAbsoluteIndex$1=function(Be,St){var Ae=toIntegerOrInfinity$3(Be);return Ae<0?max$1(Ae+St,0):min$5(Ae,St)},toIntegerOrInfinity$2=toIntegerOrInfinity$4,min$4=Math.min,toLength$6=function(Be){var St=toIntegerOrInfinity$2(Be);return St>0?min$4(St,9007199254740991):0},toLength$5=toLength$6,lengthOfArrayLike$3=function(Be){return toLength$5(Be.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike$2=lengthOfArrayLike$3,createMethod$3=function(Be){return function(St,Ae,Ee){var Ce=toIndexedObject$3(St),_e=lengthOfArrayLike$2(Ce);if(_e===0)return!Be&&-1;var Te=toAbsoluteIndex(Ee,_e),Se;if(Be&&Ae!==Ae){for(;_e>Te;)if(Se=Ce[Te++],Se!==Se)return!0}else for(;_e>Te;Te++)if((Be||Te in Ce)&&Ce[Te]===Ae)return Be||Te||0;return!Be&&-1}},arrayIncludes={includes:createMethod$3(!0),indexOf:createMethod$3(!1)},uncurryThis$h=functionUncurryThis,hasOwn$5=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$2=uncurryThis$h([].push),objectKeysInternal=function(Be,St){var Ae=toIndexedObject$2(Be),Ee=0,Ce=[],_e;for(_e in Ae)!hasOwn$5(hiddenKeys$2,_e)&&hasOwn$5(Ae,_e)&&push$2(Ce,_e);for(;St.length>Ee;)hasOwn$5(Ae,_e=St[Ee++])&&(~indexOf$1(Ce,_e)||push$2(Ce,_e));return Ce},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$2.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function Be(St){return internalObjectKeys$1(St,hiddenKeys$1)};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var getBuiltIn$5=getBuiltIn$7,uncurryThis$g=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,anObject$d=anObject$f,concat$1=uncurryThis$g([].concat),ownKeys$4=getBuiltIn$5("Reflect","ownKeys")||function Be(St){var Ae=getOwnPropertyNamesModule.f(anObject$d(St)),Ee=getOwnPropertySymbolsModule.f;return Ee?concat$1(Ae,Ee(St)):Ae},hasOwn$4=hasOwnProperty_1,ownKeys$3=ownKeys$4,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$1=function(Be,St,Ae){for(var Ee=ownKeys$3(St),Ce=definePropertyModule$1.f,_e=getOwnPropertyDescriptorModule.f,Te=0;Te<Ee.length;Te++){var Se=Ee[Te];!hasOwn$4(Be,Se)&&!(Ae&&hasOwn$4(Ae,Se))&&Ce(Be,Se,_e(St,Se))}},fails$d=fails$l,isCallable$b=isCallable$l,replacement=/#|\.prototype\./,isForced$2=function(Be,St){var Ae=data[normalize(Be)];return Ae===POLYFILL?!0:Ae===NATIVE?!1:isCallable$b(St)?fails$d(St):!!St},normalize=isForced$2.normalize=function(Be){return String(Be).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,globalThis$c=globalThis_1,getOwnPropertyDescriptor$3=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$3=createNonEnumerableProperty$5,defineBuiltIn$6=defineBuiltIn$7,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced$1=isForced_1,_export=function(Be,St){var Ae=Be.target,Ee=Be.global,Ce=Be.stat,_e,Te,Se,xe,Fe,Ue;if(Ee?Te=globalThis$c:Ce?Te=globalThis$c[Ae]||defineGlobalProperty(Ae,{}):Te=globalThis$c[Ae]&&globalThis$c[Ae].prototype,Te)for(Se in St){if(Fe=St[Se],Be.dontCallGetSet?(Ue=getOwnPropertyDescriptor$3(Te,Se),xe=Ue&&Ue.value):xe=Te[Se],_e=isForced$1(Ee?Se:Ae+(Ce?".":"#")+Se,Be.forced),!_e&&xe!==void 0){if(typeof Fe==typeof xe)continue;copyConstructorProperties(Fe,xe)}(Be.sham||xe&&xe.sham)&&createNonEnumerableProperty$3(Fe,"sham",!0),defineBuiltIn$6(Te,Se,Fe,Be)}},globalThis$b=globalThis_1,userAgent$3=environmentUserAgent,classof$7=classofRaw$2,userAgentStartsWith=function(Be){return userAgent$3.slice(0,Be.length)===Be},environment=function(){return userAgentStartsWith("Bun/")?"BUN":userAgentStartsWith("Cloudflare-Workers")?"CLOUDFLARE":userAgentStartsWith("Deno/")?"DENO":userAgentStartsWith("Node.js/")?"NODE":globalThis$b.Bun&&typeof Bun.version=="string"?"BUN":globalThis$b.Deno&&typeof Deno.version=="object"?"DENO":classof$7(globalThis$b.process)==="process"?"NODE":globalThis$b.window&&globalThis$b.document?"BROWSER":"REST"}(),ENVIRONMENT$1=environment,environmentIsNode=ENVIRONMENT$1==="NODE",uncurryThis$f=functionUncurryThis,aCallable$7=aCallable$9,functionUncurryThisAccessor=function(Be,St,Ae){try{return uncurryThis$f(aCallable$7(Object.getOwnPropertyDescriptor(Be,St)[Ae]))}catch{}},isObject$5=isObject$b,isPossiblePrototype$1=function(Be){return isObject$5(Be)||Be===null},isPossiblePrototype=isPossiblePrototype$1,$String$1=String,$TypeError$9=TypeError,aPossiblePrototype$1=function(Be){if(isPossiblePrototype(Be))return Be;throw new $TypeError$9("Can't set "+$String$1(Be)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,isObject$4=isObject$b,requireObjectCoercible$8=requireObjectCoercible$b,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var Be=!1,St={},Ae;try{Ae=uncurryThisAccessor(Object.prototype,"__proto__","set"),Ae(St,[]),Be=St instanceof Array}catch{}return function(Ce,_e){return requireObjectCoercible$8(Ce),aPossiblePrototype(_e),isObject$4(Ce)&&(Be?Ae(Ce,_e):Ce.__proto__=_e),Ce}}():void 0),defineProperty$3=objectDefineProperty.f,hasOwn$3=hasOwnProperty_1,wellKnownSymbol$g=wellKnownSymbol$i,TO_STRING_TAG$2=wellKnownSymbol$g("toStringTag"),setToStringTag$4=function(Be,St,Ae){Be&&!Ae&&(Be=Be.prototype),Be&&!hasOwn$3(Be,TO_STRING_TAG$2)&&defineProperty$3(Be,TO_STRING_TAG$2,{configurable:!0,value:St})},makeBuiltIn=makeBuiltInExports,defineProperty$2=objectDefineProperty,defineBuiltInAccessor$1=function(Be,St,Ae){return Ae.get&&makeBuiltIn(Ae.get,St,{getter:!0}),Ae.set&&makeBuiltIn(Ae.set,St,{setter:!0}),defineProperty$2.f(Be,St,Ae)},getBuiltIn$4=getBuiltIn$7,defineBuiltInAccessor=defineBuiltInAccessor$1,wellKnownSymbol$f=wellKnownSymbol$i,DESCRIPTORS$3=descriptors,SPECIES$3=wellKnownSymbol$f("species"),setSpecies$1=function(Be){var St=getBuiltIn$4(Be);DESCRIPTORS$3&&St&&!St[SPECIES$3]&&defineBuiltInAccessor(St,SPECIES$3,{configurable:!0,get:function(){return this}})},isPrototypeOf$2=objectIsPrototypeOf,$TypeError$8=TypeError,anInstance$1=function(Be,St){if(isPrototypeOf$2(St,Be))return Be;throw new $TypeError$8("Incorrect invocation")},wellKnownSymbol$e=wellKnownSymbol$i,TO_STRING_TAG$1=wellKnownSymbol$e("toStringTag"),test$1={};test$1[TO_STRING_TAG$1]="z";var toStringTagSupport=String(test$1)==="[object z]",TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$a=isCallable$l,classofRaw$1=classofRaw$2,wellKnownSymbol$d=wellKnownSymbol$i,TO_STRING_TAG=wellKnownSymbol$d("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS=classofRaw$1(function(){return arguments}())==="Arguments",tryGet=function(Be,St){try{return Be[St]}catch{}},classof$6=TO_STRING_TAG_SUPPORT?classofRaw$1:function(Be){var St,Ae,Ee;return Be===void 0?"Undefined":Be===null?"Null":typeof(Ae=tryGet(St=$Object$1(Be),TO_STRING_TAG))=="string"?Ae:CORRECT_ARGUMENTS?classofRaw$1(St):(Ee=classofRaw$1(St))==="Object"&&isCallable$a(St.callee)?"Arguments":Ee},uncurryThis$e=functionUncurryThis,fails$c=fails$l,isCallable$9=isCallable$l,classof$5=classof$6,getBuiltIn$3=getBuiltIn$7,inspectSource$1=inspectSource$3,noop$1=function(){},construct=getBuiltIn$3("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$1=uncurryThis$e(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.test(noop$1),isConstructorModern=function Be(St){if(!isCallable$9(St))return!1;try{return construct(noop$1,[],St),!0}catch{return!1}},isConstructorLegacy=function Be(St){if(!isCallable$9(St))return!1;switch(classof$5(St)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$1(constructorRegExp,inspectSource$1(St))}catch{return!0}};isConstructorLegacy.sham=!0;var isConstructor$1=!construct||fails$c(function(){var Be;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){Be=!0})||Be})?isConstructorLegacy:isConstructorModern,isConstructor=isConstructor$1,tryToString$2=tryToString$4,$TypeError$7=TypeError,aConstructor$1=function(Be){if(isConstructor(Be))return Be;throw new $TypeError$7(tryToString$2(Be)+" is not a constructor")},anObject$c=anObject$f,aConstructor=aConstructor$1,isNullOrUndefined$4=isNullOrUndefined$7,wellKnownSymbol$c=wellKnownSymbol$i,SPECIES$2=wellKnownSymbol$c("species"),speciesConstructor$2=function(Be,St){var Ae=anObject$c(Be).constructor,Ee;return Ae===void 0||isNullOrUndefined$4(Ee=anObject$c(Ae)[SPECIES$2])?St:aConstructor(Ee)},NATIVE_BIND$1=functionBindNative,FunctionPrototype=Function.prototype,apply$2=FunctionPrototype.apply,call$e=FunctionPrototype.call,functionApply=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$1?call$e.bind(apply$2):function(){return call$e.apply(apply$2,arguments)}),classofRaw=classofRaw$2,uncurryThis$d=functionUncurryThis,functionUncurryThisClause=function(Be){if(classofRaw(Be)==="Function")return uncurryThis$d(Be)},uncurryThis$c=functionUncurryThisClause,aCallable$6=aCallable$9,NATIVE_BIND=functionBindNative,bind$4=uncurryThis$c(uncurryThis$c.bind),functionBindContext=function(Be,St){return aCallable$6(Be),St===void 0?Be:NATIVE_BIND?bind$4(Be,St):function(){return Be.apply(St,arguments)}},getBuiltIn$2=getBuiltIn$7,html$2=getBuiltIn$2("document","documentElement"),uncurryThis$b=functionUncurryThis,arraySlice$1=uncurryThis$b([].slice),$TypeError$6=TypeError,validateArgumentsLength$1=function(Be,St){if(Be<St)throw new $TypeError$6("Not enough arguments");return Be},userAgent$2=environmentUserAgent,environmentIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),globalThis$a=globalThis_1,apply$1=functionApply,bind$3=functionBindContext,isCallable$8=isCallable$l,hasOwn$2=hasOwnProperty_1,fails$b=fails$l,html$1=html$2,arraySlice=arraySlice$1,createElement=documentCreateElement$2,validateArgumentsLength=validateArgumentsLength$1,IS_IOS$1=environmentIsIos,IS_NODE$3=environmentIsNode,set=globalThis$a.setImmediate,clear=globalThis$a.clearImmediate,process$3=globalThis$a.process,Dispatch=globalThis$a.Dispatch,Function$1=globalThis$a.Function,MessageChannel=globalThis$a.MessageChannel,String$1=globalThis$a.String,counter=0,queue$3={},ONREADYSTATECHANGE="onreadystatechange",$location,defer,channel,port;fails$b(function(){$location=globalThis$a.location});var run=function(Be){if(hasOwn$2(queue$3,Be)){var St=queue$3[Be];delete queue$3[Be],St()}},runner=function(Be){return function(){run(Be)}},eventListener=function(Be){run(Be.data)},globalPostMessageDefer=function(Be){globalThis$a.postMessage(String$1(Be),$location.protocol+"//"+$location.host)};(!set||!clear)&&(set=function(St){validateArgumentsLength(arguments.length,1);var Ae=isCallable$8(St)?St:Function$1(St),Ee=arraySlice(arguments,1);return queue$3[++counter]=function(){apply$1(Ae,void 0,Ee)},defer(counter),counter},clear=function(St){delete queue$3[St]},IS_NODE$3?defer=function(Be){process$3.nextTick(runner(Be))}:Dispatch&&Dispatch.now?defer=function(Be){Dispatch.now(runner(Be))}:MessageChannel&&!IS_IOS$1?(channel=new MessageChannel,port=channel.port2,channel.port1.onmessage=eventListener,defer=bind$3(port.postMessage,port)):globalThis$a.addEventListener&&isCallable$8(globalThis$a.postMessage)&&!globalThis$a.importScripts&&$location&&$location.protocol!=="file:"&&!fails$b(globalPostMessageDefer)?(defer=globalPostMessageDefer,globalThis$a.addEventListener("message",eventListener,!1)):ONREADYSTATECHANGE in createElement("script")?defer=function(Be){html$1.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html$1.removeChild(this),run(Be)}}:defer=function(Be){setTimeout(runner(Be),0)});var task$1={set,clear},globalThis$9=globalThis_1,DESCRIPTORS$2=descriptors,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,safeGetBuiltIn$1=function(Be){if(!DESCRIPTORS$2)return globalThis$9[Be];var St=getOwnPropertyDescriptor$2(globalThis$9,Be);return St&&St.value},Queue$2=function(){this.head=null,this.tail=null};Queue$2.prototype={add:function(Be){var St={item:Be,next:null},Ae=this.tail;Ae?Ae.next=St:this.head=St,this.tail=St},get:function(){var Be=this.head;if(Be){var St=this.head=Be.next;return St===null&&(this.tail=null),Be.item}}};var queue$2=Queue$2,userAgent$1=environmentUserAgent,environmentIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&typeof Pebble<"u",userAgent=environmentUserAgent,environmentIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),globalThis$8=globalThis_1,safeGetBuiltIn=safeGetBuiltIn$1,bind$2=functionBindContext,macrotask=task$1.set,Queue$1=queue$2,IS_IOS=environmentIsIos,IS_IOS_PEBBLE=environmentIsIosPebble,IS_WEBOS_WEBKIT=environmentIsWebosWebkit,IS_NODE$2=environmentIsNode,MutationObserver=globalThis$8.MutationObserver||globalThis$8.WebKitMutationObserver,document$2=globalThis$8.document,process$2=globalThis$8.process,Promise$1=globalThis$8.Promise,microtask$1=safeGetBuiltIn("queueMicrotask"),notify$1,toggle,node$1,promise,then;if(!microtask$1){var queue$1=new Queue$1,flush=function(){var Be,St;for(IS_NODE$2&&(Be=process$2.domain)&&Be.exit();St=queue$1.get();)try{St()}catch(Ae){throw queue$1.head&¬ify$1(),Ae}Be&&Be.enter()};!IS_IOS&&!IS_NODE$2&&!IS_WEBOS_WEBKIT&&MutationObserver&&document$2?(toggle=!0,node$1=document$2.createTextNode(""),new MutationObserver(flush).observe(node$1,{characterData:!0}),notify$1=function(){node$1.data=toggle=!toggle}):!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?(promise=Promise$1.resolve(void 0),promise.constructor=Promise$1,then=bind$2(promise.then,promise),notify$1=function(){then(flush)}):IS_NODE$2?notify$1=function(){process$2.nextTick(flush)}:(macrotask=bind$2(macrotask,globalThis$8),notify$1=function(){macrotask(flush)}),microtask$1=function(Be){queue$1.head||notify$1(),queue$1.add(Be)}}var microtask_1=microtask$1,hostReportErrors$1=function(Be,St){try{arguments.length===1?console.error(Be):console.error(Be,St)}catch{}},perform$3=function(Be){try{return{error:!1,value:Be()}}catch(St){return{error:!0,value:St}}},globalThis$7=globalThis_1,promiseNativeConstructor=globalThis$7.Promise,globalThis$6=globalThis_1,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$7=isCallable$l,isForced=isForced_1,inspectSource=inspectSource$3,wellKnownSymbol$b=wellKnownSymbol$i,ENVIRONMENT=environment,V8_VERSION=environmentV8Version;NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype;var SPECIES$1=wellKnownSymbol$b("species"),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$7(globalThis$6.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",function(){var Be=inspectSource(NativePromiseConstructor$3),St=Be!==String(NativePromiseConstructor$3);if(!St&&V8_VERSION===66)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(Be)){var Ae=new NativePromiseConstructor$3(function(_e){_e(1)}),Ee=function(_e){_e(function(){},function(){})},Ce=Ae.constructor={};if(Ce[SPECIES$1]=Ee,SUBCLASSING=Ae.then(function(){})instanceof Ee,!SUBCLASSING)return!0}return!St&&(ENVIRONMENT==="BROWSER"||ENVIRONMENT==="DENO")&&!NATIVE_PROMISE_REJECTION_EVENT$1}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING},newPromiseCapability$2={},aCallable$5=aCallable$9,$TypeError$5=TypeError,PromiseCapability=function(Be){var St,Ae;this.promise=new Be(function(Ee,Ce){if(St!==void 0||Ae!==void 0)throw new $TypeError$5("Bad Promise constructor");St=Ee,Ae=Ce}),this.resolve=aCallable$5(St),this.reject=aCallable$5(Ae)};newPromiseCapability$2.f=function(Be){return new PromiseCapability(Be)};var $$e=_export,IS_NODE$1=environmentIsNode,globalThis$5=globalThis_1,call$d=functionCall,defineBuiltIn$5=defineBuiltIn$7,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$3=setToStringTag$4,setSpecies=setSpecies$1,aCallable$4=aCallable$9,isCallable$6=isCallable$l,isObject$3=isObject$b,anInstance=anInstance$1,speciesConstructor$1=speciesConstructor$2,task=task$1.set,microtask=microtask_1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue$2,InternalStateModule$1=internalState,NativePromiseConstructor$2=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule$1.getterFor(PROMISE),setInternalState$1=InternalStateModule$1.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$1=globalThis$5.TypeError,document$1=globalThis$5.document,process$1=globalThis$5.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&globalThis$5.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,isThenable=function(Be){var St;return isObject$3(Be)&&isCallable$6(St=Be.then)?St:!1},callReaction=function(Be,St){var Ae=St.value,Ee=St.state===FULFILLED,Ce=Ee?Be.ok:Be.fail,_e=Be.resolve,Te=Be.reject,Se=Be.domain,xe,Fe,Ue;try{Ce?(Ee||(St.rejection===UNHANDLED&&onHandleUnhandled(St),St.rejection=HANDLED),Ce===!0?xe=Ae:(Se&&Se.enter(),xe=Ce(Ae),Se&&(Se.exit(),Ue=!0)),xe===Be.promise?Te(new TypeError$1("Promise-chain cycle")):(Fe=isThenable(xe))?call$d(Fe,xe,_e,Te):_e(xe)):Te(Ae)}catch(Re){Se&&!Ue&&Se.exit(),Te(Re)}},notify=function(Be,St){Be.notified||(Be.notified=!0,microtask(function(){for(var Ae=Be.reactions,Ee;Ee=Ae.get();)callReaction(Ee,Be);Be.notified=!1,St&&!Be.rejection&&onUnhandled(Be)}))},dispatchEvent=function(Be,St,Ae){var Ee,Ce;DISPATCH_EVENT?(Ee=document$1.createEvent("Event"),Ee.promise=St,Ee.reason=Ae,Ee.initEvent(Be,!1,!0),globalThis$5.dispatchEvent(Ee)):Ee={promise:St,reason:Ae},!NATIVE_PROMISE_REJECTION_EVENT&&(Ce=globalThis$5["on"+Be])?Ce(Ee):Be===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",Ae)},onUnhandled=function(Be){call$d(task,globalThis$5,function(){var St=Be.facade,Ae=Be.value,Ee=isUnhandled(Be),Ce;if(Ee&&(Ce=perform$2(function(){IS_NODE$1?process$1.emit("unhandledRejection",Ae,St):dispatchEvent(UNHANDLED_REJECTION,St,Ae)}),Be.rejection=IS_NODE$1||isUnhandled(Be)?UNHANDLED:HANDLED,Ce.error))throw Ce.value})},isUnhandled=function(Be){return Be.rejection!==HANDLED&&!Be.parent},onHandleUnhandled=function(Be){call$d(task,globalThis$5,function(){var St=Be.facade;IS_NODE$1?process$1.emit("rejectionHandled",St):dispatchEvent(REJECTION_HANDLED,St,Be.value)})},bind$1=function(Be,St,Ae){return function(Ee){Be(St,Ee,Ae)}},internalReject=function(Be,St,Ae){Be.done||(Be.done=!0,Ae&&(Be=Ae),Be.value=St,Be.state=REJECTED,notify(Be,!0))},internalResolve=function(Be,St,Ae){if(!Be.done){Be.done=!0,Ae&&(Be=Ae);try{if(Be.facade===St)throw new TypeError$1("Promise can't be resolved itself");var Ee=isThenable(St);Ee?microtask(function(){var Ce={done:!1};try{call$d(Ee,St,bind$1(internalResolve,Ce,Be),bind$1(internalReject,Ce,Be))}catch(_e){internalReject(Ce,_e,Be)}}):(Be.value=St,Be.state=FULFILLED,notify(Be,!1))}catch(Ce){internalReject({done:!1},Ce,Be)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromiseConstructor=function(St){anInstance(this,PromisePrototype),aCallable$4(St),call$d(Internal,this);var Ae=getInternalPromiseState(this);try{St(bind$1(internalResolve,Ae),bind$1(internalReject,Ae))}catch(Ee){internalReject(Ae,Ee)}},PromisePrototype=PromiseConstructor.prototype,Internal=function(St){setInternalState$1(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:null})},Internal.prototype=defineBuiltIn$5(PromisePrototype,"then",function(St,Ae){var Ee=getInternalPromiseState(this),Ce=newPromiseCapability$1(speciesConstructor$1(this,PromiseConstructor));return Ee.parent=!0,Ce.ok=isCallable$6(St)?St:!0,Ce.fail=isCallable$6(Ae)&&Ae,Ce.domain=IS_NODE$1?process$1.domain:void 0,Ee.state===PENDING?Ee.reactions.add(Ce):microtask(function(){callReaction(Ce,Ee)}),Ce.promise}),OwnPromiseCapability=function(){var Be=new Internal,St=getInternalPromiseState(Be);this.promise=Be,this.resolve=bind$1(internalResolve,St),this.reject=bind$1(internalReject,St)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(Be){return Be===PromiseConstructor||Be===PromiseWrapper?new OwnPromiseCapability(Be):newGenericPromiseCapability(Be)},isCallable$6(NativePromiseConstructor$2)&&NativePromisePrototype$1!==Object.prototype)){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$5(NativePromisePrototype$1,"then",function(St,Ae){var Ee=this;return new PromiseConstructor(function(Ce,_e){call$d(nativeThen,Ee,Ce,_e)}).then(St,Ae)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch{}setPrototypeOf$1&&setPrototypeOf$1(NativePromisePrototype$1,PromisePrototype)}$$e({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag$3(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var iterators={},wellKnownSymbol$a=wellKnownSymbol$i,Iterators$4=iterators,ITERATOR$5=wellKnownSymbol$a("iterator"),ArrayPrototype$1=Array.prototype,isArrayIteratorMethod$1=function(Be){return Be!==void 0&&(Iterators$4.Array===Be||ArrayPrototype$1[ITERATOR$5]===Be)},classof$4=classof$6,getMethod$4=getMethod$6,isNullOrUndefined$3=isNullOrUndefined$7,Iterators$3=iterators,wellKnownSymbol$9=wellKnownSymbol$i,ITERATOR$4=wellKnownSymbol$9("iterator"),getIteratorMethod$2=function(Be){if(!isNullOrUndefined$3(Be))return getMethod$4(Be,ITERATOR$4)||getMethod$4(Be,"@@iterator")||Iterators$3[classof$4(Be)]},call$c=functionCall,aCallable$3=aCallable$9,anObject$b=anObject$f,tryToString$1=tryToString$4,getIteratorMethod$1=getIteratorMethod$2,$TypeError$4=TypeError,getIterator$1=function(Be,St){var Ae=arguments.length<2?getIteratorMethod$1(Be):St;if(aCallable$3(Ae))return anObject$b(call$c(Ae,Be));throw new $TypeError$4(tryToString$1(Be)+" is not iterable")},call$b=functionCall,anObject$a=anObject$f,getMethod$3=getMethod$6,iteratorClose$1=function(Be,St,Ae){var Ee,Ce;anObject$a(Be);try{if(Ee=getMethod$3(Be,"return"),!Ee){if(St==="throw")throw Ae;return Ae}Ee=call$b(Ee,Be)}catch(_e){Ce=!0,Ee=_e}if(St==="throw")throw Ae;if(Ce)throw Ee;return anObject$a(Ee),Ae},bind=functionBindContext,call$a=functionCall,anObject$9=anObject$f,tryToString=tryToString$4,isArrayIteratorMethod=isArrayIteratorMethod$1,lengthOfArrayLike$1=lengthOfArrayLike$3,isPrototypeOf$1=objectIsPrototypeOf,getIterator=getIterator$1,getIteratorMethod=getIteratorMethod$2,iteratorClose=iteratorClose$1,$TypeError$3=TypeError,Result=function(Be,St){this.stopped=Be,this.result=St},ResultPrototype=Result.prototype,iterate$2=function(Be,St,Ae){var Ee=Ae&&Ae.that,Ce=!!(Ae&&Ae.AS_ENTRIES),_e=!!(Ae&&Ae.IS_RECORD),Te=!!(Ae&&Ae.IS_ITERATOR),Se=!!(Ae&&Ae.INTERRUPTED),xe=bind(St,Ee),Fe,Ue,Re,He,$e,ze,Ve,ir=function(ar){return Fe&&iteratorClose(Fe,"normal",ar),new Result(!0,ar)},Ze=function(ar){return Ce?(anObject$9(ar),Se?xe(ar[0],ar[1],ir):xe(ar[0],ar[1])):Se?xe(ar,ir):xe(ar)};if(_e)Fe=Be.iterator;else if(Te)Fe=Be;else{if(Ue=getIteratorMethod(Be),!Ue)throw new $TypeError$3(tryToString(Be)+" is not iterable");if(isArrayIteratorMethod(Ue)){for(Re=0,He=lengthOfArrayLike$1(Be);He>Re;Re++)if($e=Ze(Be[Re]),$e&&isPrototypeOf$1(ResultPrototype,$e))return $e;return new Result(!1)}Fe=getIterator(Be,Ue)}for(ze=_e?Be.next:Fe.next;!(Ve=call$a(ze,Fe)).done;){try{$e=Ze(Ve.value)}catch(ar){iteratorClose(Fe,"throw",ar)}if(typeof $e=="object"&&$e&&isPrototypeOf$1(ResultPrototype,$e))return $e}return new Result(!1)},wellKnownSymbol$8=wellKnownSymbol$i,ITERATOR$3=wellKnownSymbol$8("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR$3]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(Be){}var checkCorrectnessOfIteration$1=function(Be,St){try{if(!St&&!SAFE_CLOSING)return!1}catch{return!1}var Ae=!1;try{var Ee={};Ee[ITERATOR$3]=function(){return{next:function(){return{done:Ae=!0}}}},Be(Ee)}catch{}return Ae},NativePromiseConstructor$1=promiseNativeConstructor,checkCorrectnessOfIteration=checkCorrectnessOfIteration$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration(function(Be){NativePromiseConstructor$1.all(Be).then(void 0,function(){})}),$$d=_export,call$9=functionCall,aCallable$2=aCallable$9,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration;$$d({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1},{all:function Be(St){var Ae=this,Ee=newPromiseCapabilityModule$2.f(Ae),Ce=Ee.resolve,_e=Ee.reject,Te=perform$1(function(){var Se=aCallable$2(Ae.resolve),xe=[],Fe=0,Ue=1;iterate$1(St,function(Re){var He=Fe++,$e=!1;Ue++,call$9(Se,Ae,Re).then(function(ze){$e||($e=!0,xe[He]=ze,--Ue||Ce(xe))},_e)}),--Ue||Ce(xe)});return Te.error&&_e(Te.value),Ee.promise}});var $$c=_export,FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$7,isCallable$5=isCallable$l,defineBuiltIn$4=defineBuiltIn$7,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype;if($$c({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(Be){return this.then(void 0,Be)}}),isCallable$5(NativePromiseConstructor)){var method=getBuiltIn$1("Promise").prototype.catch;NativePromisePrototype.catch!==method&&defineBuiltIn$4(NativePromisePrototype,"catch",method,{unsafe:!0})}var $$b=_export,call$8=functionCall,aCallable$1=aCallable$9,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration;$$b({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION},{race:function Be(St){var Ae=this,Ee=newPromiseCapabilityModule$1.f(Ae),Ce=Ee.reject,_e=perform(function(){var Te=aCallable$1(Ae.resolve);iterate(St,function(Se){call$8(Te,Ae,Se).then(Ee.resolve,Ce)})});return _e.error&&Ce(_e.value),Ee.promise}});var $$a=_export,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR;$$a({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function Be(St){var Ae=newPromiseCapabilityModule.f(this),Ee=Ae.reject;return Ee(St),Ae.promise}});var anObject$8=anObject$f,isObject$2=isObject$b,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(Be,St){if(anObject$8(Be),isObject$2(St)&&St.constructor===Be)return St;var Ae=newPromiseCapability.f(Be),Ee=Ae.resolve;return Ee(St),Ae.promise},$$9=_export,getBuiltIn=getBuiltIn$7,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;getBuiltIn("Promise"),$$9({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function Be(St){return promiseResolve(this,St)}});function asyncGeneratorStep(Be,St,Ae,Ee,Ce,_e,Te){try{var Se=Be[_e](Te),xe=Se.value}catch(Fe){return void Ae(Fe)}Se.done?St(xe):Promise.resolve(xe).then(Ee,Ce)}function _asyncToGenerator(Be){return function(){var St=this,Ae=arguments;return new Promise(function(Ee,Ce){var _e=Be.apply(St,Ae);function Te(xe){asyncGeneratorStep(_e,Ee,Ce,Te,Se,"next",xe)}function Se(xe){asyncGeneratorStep(_e,Ee,Ce,Te,Se,"throw",xe)}Te(void 0)})}}var classof$3=classof$6,$String=String,toString$9=function(Be){if(classof$3(Be)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return $String(Be)},anObject$7=anObject$f,regexpFlags$1=function(){var Be=anObject$7(this),St="";return Be.hasIndices&&(St+="d"),Be.global&&(St+="g"),Be.ignoreCase&&(St+="i"),Be.multiline&&(St+="m"),Be.dotAll&&(St+="s"),Be.unicode&&(St+="u"),Be.unicodeSets&&(St+="v"),Be.sticky&&(St+="y"),St},fails$a=fails$l,globalThis$4=globalThis_1,$RegExp$2=globalThis$4.RegExp,UNSUPPORTED_Y$2=fails$a(function(){var Be=$RegExp$2("a","y");return Be.lastIndex=2,Be.exec("abcd")!==null}),MISSED_STICKY=UNSUPPORTED_Y$2||fails$a(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$2||fails$a(function(){var Be=$RegExp$2("^r","gy");return Be.lastIndex=2,Be.exec("str")!==null}),regexpStickyHelpers={BROKEN_CARET,MISSED_STICKY,UNSUPPORTED_Y:UNSUPPORTED_Y$2},objectDefineProperties={},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$1=Object.keys||function Be(St){return internalObjectKeys(St,enumBugKeys$1)},DESCRIPTORS$1=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$6=anObject$f,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$1;objectDefineProperties.f=DESCRIPTORS$1&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function Be(St,Ae){anObject$6(St);for(var Ee=toIndexedObject$1(Ae),Ce=objectKeys(Ae),_e=Ce.length,Te=0,Se;_e>Te;)definePropertyModule.f(St,Se=Ce[Te++],Ee[Se]);return St};var anObject$5=anObject$f,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html=html$2,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$1("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(Be){return LT+SCRIPT+GT+Be+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(Be){Be.write(scriptTag("")),Be.close();var St=Be.parentWindow.Object;return Be=null,St},NullProtoObjectViaIFrame=function(){var Be=documentCreateElement$1("iframe"),St="java"+SCRIPT+":",Ae;return Be.style.display="none",html.appendChild(Be),Be.src=String(St),Ae=Be.contentWindow.document,Ae.open(),Ae.write(scriptTag("document.F=Object")),Ae.close(),Ae.F},activeXDocument,NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch{}NullProtoObject=typeof document<"u"?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var Be=enumBugKeys.length;Be--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[Be]];return NullProtoObject()};hiddenKeys[IE_PROTO$1]=!0;var objectCreate=Object.create||function Be(St,Ae){var Ee;return St!==null?(EmptyConstructor[PROTOTYPE]=anObject$5(St),Ee=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,Ee[IE_PROTO$1]=St):Ee=NullProtoObject(),Ae===void 0?Ee:definePropertiesModule.f(Ee,Ae)},fails$9=fails$l,globalThis$3=globalThis_1,$RegExp$1=globalThis$3.RegExp,regexpUnsupportedDotAll=fails$9(function(){var Be=$RegExp$1(".","s");return!(Be.dotAll&&Be.test(`
`)&&Be.flags==="s")}),fails$8=fails$l,globalThis$2=globalThis_1,$RegExp=globalThis$2.RegExp,regexpUnsupportedNcg=fails$8(function(){var Be=$RegExp("(?<a>b)","g");return Be.exec("b").groups.a!=="b"||"b".replace(Be,"$<a>c")!=="bc"}),call$7=functionCall,uncurryThis$a=functionUncurryThis,toString$8=toString$9,regexpFlags=regexpFlags$1,stickyHelpers$1=regexpStickyHelpers,shared=shared$4,create$2=objectCreate,getInternalState$1=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$3=uncurryThis$a("".charAt),indexOf=uncurryThis$a("".indexOf),replace$2=uncurryThis$a("".replace),stringSlice$5=uncurryThis$a("".slice),UPDATES_LAST_INDEX_WRONG=function(){var Be=/a/,St=/b*/g;return call$7(nativeExec,Be,"a"),call$7(nativeExec,St,"a"),Be.lastIndex!==0||St.lastIndex!==0}(),UNSUPPORTED_Y$1=stickyHelpers$1.BROKEN_CARET,NPCG_INCLUDED=/()??/.exec("")[1]!==void 0,PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y$1||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG;PATCH&&(patchedExec=function(St){var Ae=this,Ee=getInternalState$1(Ae),Ce=toString$8(St),_e=Ee.raw,Te,Se,xe,Fe,Ue,Re,He;if(_e)return _e.lastIndex=Ae.lastIndex,Te=call$7(patchedExec,_e,Ce),Ae.lastIndex=_e.lastIndex,Te;var $e=Ee.groups,ze=UNSUPPORTED_Y$1&&Ae.sticky,Ve=call$7(regexpFlags,Ae),ir=Ae.source,Ze=0,ar=Ce;if(ze&&(Ve=replace$2(Ve,"y",""),indexOf(Ve,"g")===-1&&(Ve+="g"),ar=stringSlice$5(Ce,Ae.lastIndex),Ae.lastIndex>0&&(!Ae.multiline||Ae.multiline&&charAt$3(Ce,Ae.lastIndex-1)!==`
`)&&(ir="(?: "+ir+")",ar=" "+ar,Ze++),Se=new RegExp("^(?:"+ir+")",Ve)),NPCG_INCLUDED&&(Se=new RegExp("^"+ir+"$(?!\\s)",Ve)),UPDATES_LAST_INDEX_WRONG&&(xe=Ae.lastIndex),Fe=call$7(nativeExec,ze?Se:Ae,ar),ze?Fe?(Fe.input=stringSlice$5(Fe.input,Ze),Fe[0]=stringSlice$5(Fe[0],Ze),Fe.index=Ae.lastIndex,Ae.lastIndex+=Fe[0].length):Ae.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&Fe&&(Ae.lastIndex=Ae.global?Fe.index+Fe[0].length:xe),NPCG_INCLUDED&&Fe&&Fe.length>1&&call$7(nativeReplace,Fe[0],Se,function(){for(Ue=1;Ue<arguments.length-2;Ue++)arguments[Ue]===void 0&&(Fe[Ue]=void 0)}),Fe&&$e)for(Fe.groups=Re=create$2(null),Ue=0;Ue<$e.length;Ue++)He=$e[Ue],Re[He[0]]=Fe[He[1]];return Fe});var regexpExec$2=patchedExec,$$8=_export,exec=regexpExec$2;$$8({target:"RegExp",proto:!0,forced:/./.exec!==exec},{exec});var call$6=functionCall,defineBuiltIn$3=defineBuiltIn$7,regexpExec$1=regexpExec$2,fails$7=fails$l,wellKnownSymbol$7=wellKnownSymbol$i,createNonEnumerableProperty$2=createNonEnumerableProperty$5,SPECIES=wellKnownSymbol$7("species"),RegExpPrototype$2=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(Be,St,Ae,Ee){var Ce=wellKnownSymbol$7(Be),_e=!fails$7(function(){var Fe={};return Fe[Ce]=function(){return 7},""[Be](Fe)!==7}),Te=_e&&!fails$7(function(){var Fe=!1,Ue=/a/;return Be==="split"&&(Ue={},Ue.constructor={},Ue.constructor[SPECIES]=function(){return Ue},Ue.flags="",Ue[Ce]=/./[Ce]),Ue.exec=function(){return Fe=!0,null},Ue[Ce](""),!Fe});if(!_e||!Te||Ae){var Se=/./[Ce],xe=St(Ce,""[Be],function(Fe,Ue,Re,He,$e){var ze=Ue.exec;return ze===regexpExec$1||ze===RegExpPrototype$2.exec?_e&&!$e?{done:!0,value:call$6(Se,Ue,Re,He)}:{done:!0,value:call$6(Fe,Re,Ue,He)}:{done:!1}});defineBuiltIn$3(String.prototype,Be,xe[0]),defineBuiltIn$3(RegExpPrototype$2,Ce,xe[1])}Ee&&createNonEnumerableProperty$2(RegExpPrototype$2[Ce],"sham",!0)},uncurryThis$9=functionUncurryThis,toIntegerOrInfinity$1=toIntegerOrInfinity$4,toString$7=toString$9,requireObjectCoercible$7=requireObjectCoercible$b,charAt$2=uncurryThis$9("".charAt),charCodeAt=uncurryThis$9("".charCodeAt),stringSlice$4=uncurryThis$9("".slice),createMethod$2=function(Be){return function(St,Ae){var Ee=toString$7(requireObjectCoercible$7(St)),Ce=toIntegerOrInfinity$1(Ae),_e=Ee.length,Te,Se;return Ce<0||Ce>=_e?Be?"":void 0:(Te=charCodeAt(Ee,Ce),Te<55296||Te>56319||Ce+1===_e||(Se=charCodeAt(Ee,Ce+1))<56320||Se>57343?Be?charAt$2(Ee,Ce):Te:Be?stringSlice$4(Ee,Ce,Ce+2):(Te-55296<<10)+(Se-56320)+65536)}},stringMultibyte={codeAt:createMethod$2(!1),charAt:createMethod$2(!0)},charAt$1=stringMultibyte.charAt,advanceStringIndex$3=function(Be,St,Ae){return St+(Ae?charAt$1(Be,St).length:1)},call$5=functionCall,anObject$4=anObject$f,isCallable$4=isCallable$l,classof$2=classofRaw$2,regexpExec=regexpExec$2,$TypeError$2=TypeError,regexpExecAbstract=function(Be,St){var Ae=Be.exec;if(isCallable$4(Ae)){var Ee=call$5(Ae,Be,St);return Ee!==null&&anObject$4(Ee),Ee}if(classof$2(Be)==="RegExp")return call$5(regexpExec,Be,St);throw new $TypeError$2("RegExp#exec called on incompatible receiver")},call$4=functionCall,fixRegExpWellKnownSymbolLogic$2=fixRegexpWellKnownSymbolLogic,anObject$3=anObject$f,isNullOrUndefined$2=isNullOrUndefined$7,toLength$4=toLength$6,toString$6=toString$9,requireObjectCoercible$6=requireObjectCoercible$b,getMethod$2=getMethod$6,advanceStringIndex$2=advanceStringIndex$3,regExpExec$2=regexpExecAbstract;fixRegExpWellKnownSymbolLogic$2("match",function(Be,St,Ae){return[function(Ce){var _e=requireObjectCoercible$6(this),Te=isNullOrUndefined$2(Ce)?void 0:getMethod$2(Ce,Be);return Te?call$4(Te,Ce,_e):new RegExp(Ce)[Be](toString$6(_e))},function(Ee){var Ce=anObject$3(this),_e=toString$6(Ee),Te=Ae(St,Ce,_e);if(Te.done)return Te.value;if(!Ce.global)return regExpExec$2(Ce,_e);var Se=Ce.unicode;Ce.lastIndex=0;for(var xe=[],Fe=0,Ue;(Ue=regExpExec$2(Ce,_e))!==null;){var Re=toString$6(Ue[0]);xe[Fe]=Re,Re===""&&(Ce.lastIndex=advanceStringIndex$2(_e,toLength$4(Ce.lastIndex),Se)),Fe++}return Fe===0?null:xe}]});var uncurryThis$8=functionUncurryThis,toObject$2=toObject$4,floor=Math.floor,charAt=uncurryThis$8("".charAt),replace$1=uncurryThis$8("".replace),stringSlice$3=uncurryThis$8("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(Be,St,Ae,Ee,Ce,_e){var Te=Ae+Be.length,Se=Ee.length,xe=SUBSTITUTION_SYMBOLS_NO_NAMED;return Ce!==void 0&&(Ce=toObject$2(Ce),xe=SUBSTITUTION_SYMBOLS),replace$1(_e,xe,function(Fe,Ue){var Re;switch(charAt(Ue,0)){case"$":return"$";case"&":return Be;case"`":return stringSlice$3(St,0,Ae);case"'":return stringSlice$3(St,Te);case"<":Re=Ce[stringSlice$3(Ue,1,-1)];break;default:var He=+Ue;if(He===0)return Fe;if(He>Se){var $e=floor(He/10);return $e===0?Fe:$e<=Se?Ee[$e-1]===void 0?charAt(Ue,1):Ee[$e-1]+charAt(Ue,1):Fe}Re=Ee[He-1]}return Re===void 0?"":Re})},apply=functionApply,call$3=functionCall,uncurryThis$7=functionUncurryThis,fixRegExpWellKnownSymbolLogic$1=fixRegexpWellKnownSymbolLogic,fails$6=fails$l,anObject$2=anObject$f,isCallable$3=isCallable$l,isNullOrUndefined$1=isNullOrUndefined$7,toIntegerOrInfinity=toIntegerOrInfinity$4,toLength$3=toLength$6,toString$5=toString$9,requireObjectCoercible$5=requireObjectCoercible$b,advanceStringIndex$1=advanceStringIndex$3,getMethod$1=getMethod$6,getSubstitution=getSubstitution$1,regExpExec$1=regexpExecAbstract,wellKnownSymbol$6=wellKnownSymbol$i,REPLACE=wellKnownSymbol$6("replace"),max=Math.max,min$3=Math.min,concat=uncurryThis$7([].concat),push$1=uncurryThis$7([].push),stringIndexOf$1=uncurryThis$7("".indexOf),stringSlice$2=uncurryThis$7("".slice),maybeToString=function(Be){return Be===void 0?Be:String(Be)},REPLACE_KEEPS_$0=function(){return"a".replace(/./,"$0")==="$0"}(),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=function(){return/./[REPLACE]?/./[REPLACE]("a","$0")==="":!1}(),REPLACE_SUPPORTS_NAMED_GROUPS=!fails$6(function(){var Be=/./;return Be.exec=function(){var St=[];return St.groups={a:"7"},St},"".replace(Be,"$<a>")!=="7"});fixRegExpWellKnownSymbolLogic$1("replace",function(Be,St,Ae){var Ee=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(_e,Te){var Se=requireObjectCoercible$5(this),xe=isNullOrUndefined$1(_e)?void 0:getMethod$1(_e,REPLACE);return xe?call$3(xe,_e,Se,Te):call$3(St,toString$5(Se),_e,Te)},function(Ce,_e){var Te=anObject$2(this),Se=toString$5(Ce);if(typeof _e=="string"&&stringIndexOf$1(_e,Ee)===-1&&stringIndexOf$1(_e,"$<")===-1){var xe=Ae(St,Te,Se,_e);if(xe.done)return xe.value}var Fe=isCallable$3(_e);Fe||(_e=toString$5(_e));var Ue=Te.global,Re;Ue&&(Re=Te.unicode,Te.lastIndex=0);for(var He=[],$e;$e=regExpExec$1(Te,Se),!($e===null||(push$1(He,$e),!Ue));){var ze=toString$5($e[0]);ze===""&&(Te.lastIndex=advanceStringIndex$1(Se,toLength$3(Te.lastIndex),Re))}for(var Ve="",ir=0,Ze=0;Ze<He.length;Ze++){$e=He[Ze];for(var ar=toString$5($e[0]),cr=max(min$3(toIntegerOrInfinity($e.index),Se.length),0),Xe=[],or,Oe=1;Oe<$e.length;Oe++)push$1(Xe,maybeToString($e[Oe]));var Je=$e.groups;if(Fe){var Ye=concat([ar],Xe,cr,Se);Je!==void 0&&push$1(Ye,Je),or=toString$5(apply(_e,void 0,Ye))}else or=getSubstitution(ar,Se,cr,Xe,Je,_e);cr>=ir&&(Ve+=stringSlice$2(Se,ir,cr)+or,ir=cr+ar.length)}return Ve+stringSlice$2(Se,ir)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);var isObject$1=isObject$b,classof$1=classofRaw$2,wellKnownSymbol$5=wellKnownSymbol$i,MATCH$1=wellKnownSymbol$5("match"),isRegexp=function(Be){var St;return isObject$1(Be)&&((St=Be[MATCH$1])!==void 0?!!St:classof$1(Be)==="RegExp")},isRegExp=isRegexp,$TypeError$1=TypeError,notARegexp=function(Be){if(isRegExp(Be))throw new $TypeError$1("The method doesn't accept regular expressions");return Be},wellKnownSymbol$4=wellKnownSymbol$i,MATCH=wellKnownSymbol$4("match"),correctIsRegexpLogic=function(Be){var St=/./;try{"/./"[Be](St)}catch{try{return St[MATCH]=!1,"/./"[Be](St)}catch{}}return!1},$$7=_export,uncurryThis$6=functionUncurryThisClause,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,toLength$2=toLength$6,toString$4=toString$9,notARegExp$2=notARegexp,requireObjectCoercible$4=requireObjectCoercible$b,correctIsRegExpLogic$2=correctIsRegexpLogic,stringSlice$1=uncurryThis$6("".slice),min$2=Math.min,CORRECT_IS_REGEXP_LOGIC$1=correctIsRegExpLogic$2("startsWith"),MDN_POLYFILL_BUG$1=!CORRECT_IS_REGEXP_LOGIC$1&&!!function(){var Be=getOwnPropertyDescriptor$1(String.prototype,"startsWith");return Be&&!Be.writable}();$$7({target:"String",proto:!0,forced:!MDN_POLYFILL_BUG$1&&!CORRECT_IS_REGEXP_LOGIC$1},{startsWith:function Be(St){var Ae=toString$4(requireObjectCoercible$4(this));notARegExp$2(St);var Ee=toLength$2(min$2(arguments.length>1?arguments[1]:void 0,Ae.length)),Ce=toString$4(St);return stringSlice$1(Ae,Ee,Ee+Ce.length)===Ce}});var wellKnownSymbol$3=wellKnownSymbol$i,create$1=objectCreate,defineProperty$1=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$3("unscopables"),ArrayPrototype=Array.prototype;ArrayPrototype[UNSCOPABLES]===void 0&&defineProperty$1(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create$1(null)});var addToUnscopables$1=function(Be){ArrayPrototype[UNSCOPABLES][Be]=!0},fails$5=fails$l,correctPrototypeGetter=!fails$5(function(){function Be(){}return Be.prototype.constructor=null,Object.getPrototypeOf(new Be)!==Be.prototype}),hasOwn$1=hasOwnProperty_1,isCallable$2=isCallable$l,toObject$1=toObject$4,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey("IE_PROTO"),$Object=Object,ObjectPrototype=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(Be){var St=toObject$1(Be);if(hasOwn$1(St,IE_PROTO))return St[IE_PROTO];var Ae=St.constructor;return isCallable$2(Ae)&&St instanceof Ae?Ae.prototype:St instanceof $Object?ObjectPrototype:null},fails$4=fails$l,isCallable$1=isCallable$l,isObject=isObject$b,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$2=defineBuiltIn$7,wellKnownSymbol$2=wellKnownSymbol$i,ITERATOR$2=wellKnownSymbol$2("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator;[].keys&&(arrayIterator=[].keys(),"next"in arrayIterator?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)),PrototypeOfArrayIteratorPrototype!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype)):BUGGY_SAFARI_ITERATORS$1=!0);var NEW_ITERATOR_PROTOTYPE=!isObject(IteratorPrototype$2)||fails$4(function(){var Be={};return IteratorPrototype$2[ITERATOR$2].call(Be)!==Be});NEW_ITERATOR_PROTOTYPE&&(IteratorPrototype$2={}),isCallable$1(IteratorPrototype$2[ITERATOR$2])||defineBuiltIn$2(IteratorPrototype$2,ITERATOR$2,function(){return this});var iteratorsCore={IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$3,setToStringTag$2=setToStringTag$4,Iterators$2=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(Be,St,Ae,Ee){var Ce=St+" Iterator";return Be.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor(+!Ee,Ae)}),setToStringTag$2(Be,Ce,!1),Iterators$2[Ce]=returnThis$1,Be},$$6=_export,call$2=functionCall,FunctionName=functionName,isCallable=isCallable$l,createIteratorConstructor=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,setToStringTag$1=setToStringTag$4,createNonEnumerableProperty$1=createNonEnumerableProperty$5,defineBuiltIn$1=defineBuiltIn$7,wellKnownSymbol$1=wellKnownSymbol$i,Iterators$1=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$2=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$1=wellKnownSymbol$1("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(Be,St,Ae,Ee,Ce,_e,Te){createIteratorConstructor(Ae,St,Ee);var Se=function(Ze){if(Ze===Ce&&He)return He;if(!BUGGY_SAFARI_ITERATORS&&Ze&&Ze in Ue)return Ue[Ze];switch(Ze){case KEYS:return function(){return new Ae(this,Ze)};case VALUES:return function(){return new Ae(this,Ze)};case ENTRIES:return function(){return new Ae(this,Ze)}}return function(){return new Ae(this)}},xe=St+" Iterator",Fe=!1,Ue=Be.prototype,Re=Ue[ITERATOR$1]||Ue["@@iterator"]||Ce&&Ue[Ce],He=!BUGGY_SAFARI_ITERATORS&&Re||Se(Ce),$e=St==="Array"&&Ue.entries||Re,ze,Ve,ir;if($e&&(ze=getPrototypeOf($e.call(new Be)),ze!==Object.prototype&&ze.next&&(getPrototypeOf(ze)!==IteratorPrototype&&(setPrototypeOf?setPrototypeOf(ze,IteratorPrototype):isCallable(ze[ITERATOR$1])||defineBuiltIn$1(ze,ITERATOR$1,returnThis)),setToStringTag$1(ze,xe,!0))),PROPER_FUNCTION_NAME$2&&Ce===VALUES&&Re&&Re.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(Ue,"name",VALUES):(Fe=!0,He=function(){return call$2(Re,this)})),Ce)if(Ve={values:Se(VALUES),keys:_e?He:Se(KEYS),entries:Se(ENTRIES)},Te)for(ir in Ve)(BUGGY_SAFARI_ITERATORS||Fe||!(ir in Ue))&&defineBuiltIn$1(Ue,ir,Ve[ir]);else $$6({target:St,proto:!0,forced:BUGGY_SAFARI_ITERATORS||Fe},Ve);return Ue[ITERATOR$1]!==He&&defineBuiltIn$1(Ue,ITERATOR$1,He,{name:Ce}),Iterators$1[St]=He,Ve},createIterResultObject$1=function(Be,St){return{value:Be,done:St}},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$1,Iterators=iterators,InternalStateModule=internalState,defineProperty=objectDefineProperty.f,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$1,DESCRIPTORS=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(Be,St){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(Be),index:0,kind:St})},function(){var Be=getInternalState(this),St=Be.target,Ae=Be.index++;if(!St||Ae>=St.length)return Be.target=null,createIterResultObject(void 0,!0);switch(Be.kind){case"keys":return createIterResultObject(Ae,!1);case"values":return createIterResultObject(St[Ae],!1)}return createIterResultObject([Ae,St[Ae]],!1)},"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS&&values.name!=="values")try{defineProperty(values,"name",{value:"values"})}catch(Be){}var domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement=documentCreateElement$2,classList=documentCreateElement("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,globalThis$1=globalThis_1,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$5,setToStringTag=setToStringTag$4,wellKnownSymbol=wellKnownSymbol$i,ITERATOR=wellKnownSymbol("iterator"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(Be,St){if(Be){if(Be[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(Be,ITERATOR,ArrayValues)}catch{Be[ITERATOR]=ArrayValues}if(setToStringTag(Be,St,!0),DOMIterables[St]){for(var Ae in ArrayIteratorMethods)if(Be[Ae]!==ArrayIteratorMethods[Ae])try{createNonEnumerableProperty(Be,Ae,ArrayIteratorMethods[Ae])}catch{Be[Ae]=ArrayIteratorMethods[Ae]}}}};for(var COLLECTION_NAME in DOMIterables)handlePrototype(globalThis$1[COLLECTION_NAME]&&globalThis$1[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");function toPrimitive(Be,St){if(_typeof$3(Be)!="object"||!Be)return Be;var Ae=Be[Symbol.toPrimitive];if(Ae!==void 0){var Ee=Ae.call(Be,St||"default");if(_typeof$3(Ee)!="object")return Ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(St==="string"?String:Number)(Be)}function toPropertyKey(Be){var St=toPrimitive(Be,"string");return _typeof$3(St)=="symbol"?St:St+""}function _defineProperty(Be,St,Ae){return(St=toPropertyKey(St))in Be?Object.defineProperty(Be,St,{value:Ae,enumerable:!0,configurable:!0,writable:!0}):Be[St]=Ae,Be}var aCallable=aCallable$9,toObject=toObject$4,IndexedObject=indexedObject,lengthOfArrayLike=lengthOfArrayLike$3,$TypeError=TypeError,REDUCE_EMPTY="Reduce of empty array with no initial value",createMethod$1=function(Be){return function(St,Ae,Ee,Ce){var _e=toObject(St),Te=IndexedObject(_e),Se=lengthOfArrayLike(_e);if(aCallable(Ae),Se===0&&Ee<2)throw new $TypeError(REDUCE_EMPTY);var xe=Be?Se-1:0,Fe=Be?-1:1;if(Ee<2)for(;;){if(xe in Te){Ce=Te[xe],xe+=Fe;break}if(xe+=Fe,Be?xe<0:Se<=xe)throw new $TypeError(REDUCE_EMPTY)}for(;Be?xe>=0:Se>xe;xe+=Fe)xe in Te&&(Ce=Ae(Ce,Te[xe],xe,_e));return Ce}},arrayReduce={left:createMethod$1(!1),right:createMethod$1(!0)},fails$3=fails$l,arrayMethodIsStrict$2=function(Be,St){var Ae=[][Be];return!!Ae&&fails$3(function(){Ae.call(null,St||function(){return 1},1)})},$$5=_export,$reduce=arrayReduce.left,arrayMethodIsStrict$1=arrayMethodIsStrict$2,CHROME_VERSION=environmentV8Version,IS_NODE=environmentIsNode,CHROME_BUG=!IS_NODE&&CHROME_VERSION>79&&CHROME_VERSION<83,FORCED$1=CHROME_BUG||!arrayMethodIsStrict$1("reduce");$$5({target:"Array",proto:!0,forced:FORCED$1},{reduce:function Be(St){var Ae=arguments.length;return $reduce(this,St,Ae,Ae>1?arguments[1]:void 0)}});var $$4=_export,uncurryThis$5=functionUncurryThisClause,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,toLength$1=toLength$6,toString$3=toString$9,notARegExp$1=notARegexp,requireObjectCoercible$3=requireObjectCoercible$b,correctIsRegExpLogic$1=correctIsRegexpLogic,slice=uncurryThis$5("".slice),min$1=Math.min,CORRECT_IS_REGEXP_LOGIC=correctIsRegExpLogic$1("endsWith"),MDN_POLYFILL_BUG=!CORRECT_IS_REGEXP_LOGIC&&!!function(){var Be=getOwnPropertyDescriptor(String.prototype,"endsWith");return Be&&!Be.writable}();$$4({target:"String",proto:!0,forced:!MDN_POLYFILL_BUG&&!CORRECT_IS_REGEXP_LOGIC},{endsWith:function Be(St){var Ae=toString$3(requireObjectCoercible$3(this));notARegExp$1(St);var Ee=arguments.length>1?arguments[1]:void 0,Ce=Ae.length,_e=Ee===void 0?Ce:min$1(toLength$1(Ee),Ce),Te=toString$3(St);return slice(Ae,_e-Te.length,_e)===Te}});var call$1=functionCall,uncurryThis$4=functionUncurryThis,fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,anObject$1=anObject$f,isNullOrUndefined=isNullOrUndefined$7,requireObjectCoercible$2=requireObjectCoercible$b,speciesConstructor=speciesConstructor$2,advanceStringIndex=advanceStringIndex$3,toLength=toLength$6,toString$2=toString$9,getMethod=getMethod$6,regExpExec=regexpExecAbstract,stickyHelpers=regexpStickyHelpers,fails$2=fails$l,UNSUPPORTED_Y=stickyHelpers.UNSUPPORTED_Y,MAX_UINT32=4294967295,min=Math.min,push=uncurryThis$4([].push),stringSlice=uncurryThis$4("".slice),SPLIT_WORKS_WITH_OVERWRITTEN_EXEC=!fails$2(function(){var Be=/(?:)/,St=Be.exec;Be.exec=function(){return St.apply(this,arguments)};var Ae="ab".split(Be);return Ae.length!==2||Ae[0]!=="a"||Ae[1]!=="b"}),BUGGY="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;fixRegExpWellKnownSymbolLogic("split",function(Be,St,Ae){var Ee="0".split(void 0,0).length?function(Ce,_e){return Ce===void 0&&_e===0?[]:call$1(St,this,Ce,_e)}:St;return[function(_e,Te){var Se=requireObjectCoercible$2(this),xe=isNullOrUndefined(_e)?void 0:getMethod(_e,Be);return xe?call$1(xe,_e,Se,Te):call$1(Ee,toString$2(Se),_e,Te)},function(Ce,_e){var Te=anObject$1(this),Se=toString$2(Ce);if(!BUGGY){var xe=Ae(Ee,Te,Se,_e,Ee!==St);if(xe.done)return xe.value}var Fe=speciesConstructor(Te,RegExp),Ue=Te.unicode,Re=(Te.ignoreCase?"i":"")+(Te.multiline?"m":"")+(Te.unicode?"u":"")+(UNSUPPORTED_Y?"g":"y"),He=new Fe(UNSUPPORTED_Y?"^(?:"+Te.source+")":Te,Re),$e=_e===void 0?MAX_UINT32:_e>>>0;if($e===0)return[];if(Se.length===0)return regExpExec(He,Se)===null?[Se]:[];for(var ze=0,Ve=0,ir=[];Ve<Se.length;){He.lastIndex=UNSUPPORTED_Y?0:Ve;var Ze=regExpExec(He,UNSUPPORTED_Y?stringSlice(Se,Ve):Se),ar;if(Ze===null||(ar=min(toLength(He.lastIndex+(UNSUPPORTED_Y?Ve:0)),Se.length))===ze)Ve=advanceStringIndex(Se,Ve,Ue);else{if(push(ir,stringSlice(Se,ze,Ve)),ir.length===$e)return ir;for(var cr=1;cr<=Ze.length-1;cr++)if(push(ir,Ze[cr]),ir.length===$e)return ir;Ve=ze=ar}}return push(ir,stringSlice(Se,ze)),ir}]},BUGGY||!SPLIT_WORKS_WITH_OVERWRITTEN_EXEC,UNSUPPORTED_Y);var raf$1={exports:{}},performanceNow={exports:{}};(function(){var Be,St,Ae,Ee,Ce,_e;typeof performance<"u"&&performance!==null&&performance.now?performanceNow.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(performanceNow.exports=function(){return(Be()-Ce)/1e6},St=process.hrtime,Be=function(){var Te;return Te=St(),Te[0]*1e9+Te[1]},Ee=Be(),_e=process.uptime()*1e9,Ce=Ee-_e):Date.now?(performanceNow.exports=function(){return Date.now()-Ae},Ae=Date.now()):(performanceNow.exports=function(){return new Date().getTime()-Ae},Ae=new Date().getTime())}).call(commonjsGlobal);for(var performanceNowExports=performanceNow.exports,now=performanceNowExports,root=typeof window>"u"?commonjsGlobal:window,vendors=["moz","webkit"],suffix="AnimationFrame",raf=root["request"+suffix],caf=root["cancel"+suffix]||root["cancelRequest"+suffix],i$1=0;!raf&&i$1<vendors.length;i$1++)raf=root[vendors[i$1]+"Request"+suffix],caf=root[vendors[i$1]+"Cancel"+suffix]||root[vendors[i$1]+"CancelRequest"+suffix];if(!raf||!caf){var last=0,id=0,queue=[],frameDuration=1e3/60;raf=function(Be){if(queue.length===0){var St=now(),Ae=Math.max(0,frameDuration-(St-last));last=Ae+St,setTimeout(function(){var Ee=queue.slice(0);queue.length=0;for(var Ce=0;Ce<Ee.length;Ce++)if(!Ee[Ce].cancelled)try{Ee[Ce].callback(last)}catch(_e){setTimeout(function(){throw _e},0)}},Math.round(Ae))}return queue.push({handle:++id,callback:Be,cancelled:!1}),id},caf=function(Be){for(var St=0;St<queue.length;St++)queue[St].handle===Be&&(queue[St].cancelled=!0)}}raf$1.exports=function(Be){return raf.call(root,Be)},raf$1.exports.cancel=function(){caf.apply(root,arguments)},raf$1.exports.polyfill=function(Be){Be||(Be=root),Be.requestAnimationFrame=raf,Be.cancelAnimationFrame=caf};var rafExports=raf$1.exports;const requestAnimationFrame=getDefaultExportFromCjs(rafExports);var whitespaces$2=`
\v\f\r \u2028\u2029\uFEFF`,uncurryThis$3=functionUncurryThis,requireObjectCoercible$1=requireObjectCoercible$b,toString$1=toString$9,whitespaces$1=whitespaces$2,replace=uncurryThis$3("".replace),ltrim=RegExp("^["+whitespaces$1+"]+"),rtrim=RegExp("(^|[^"+whitespaces$1+"])["+whitespaces$1+"]+$"),createMethod=function(Be){return function(St){var Ae=toString$1(requireObjectCoercible$1(St));return Be&1&&(Ae=replace(Ae,ltrim,"")),Be&2&&(Ae=replace(Ae,rtrim,"$1")),Ae}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},PROPER_FUNCTION_NAME$1=functionName.PROPER,fails$1=fails$l,whitespaces=whitespaces$2,non="
",stringTrimForced=function(Be){return fails$1(function(){return!!whitespaces[Be]()||non[Be]()!==non||PROPER_FUNCTION_NAME$1&&whitespaces[Be].name!==Be})},$$3=_export,$trim=stringTrim.trim,forcedStringTrimMethod=stringTrimForced;$$3({target:"String",proto:!0,forced:forcedStringTrimMethod("trim")},{trim:function Be(){return $trim(this)}});var rgbcolor=function(Be){this.ok=!1,this.alpha=1,Be.charAt(0)=="#"&&(Be=Be.substr(1,6)),Be=Be.replace(/ /g,""),Be=Be.toLowerCase();var St={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};Be=St[Be]||Be;for(var Ae=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(xe){return[parseInt(xe[1]),parseInt(xe[2]),parseInt(xe[3]),parseFloat(xe[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(xe){return[parseInt(xe[1]),parseInt(xe[2]),parseInt(xe[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(xe){return[parseInt(xe[1],16),parseInt(xe[2],16),parseInt(xe[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(xe){return[parseInt(xe[1]+xe[1],16),parseInt(xe[2]+xe[2],16),parseInt(xe[3]+xe[3],16)]}}],Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee].re,_e=Ae[Ee].process,Te=Ce.exec(Be);if(Te){var Se=_e(Te);this.r=Se[0],this.g=Se[1],this.b=Se[2],Se.length>3&&(this.alpha=Se[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var xe=this.r.toString(16),Fe=this.g.toString(16),Ue=this.b.toString(16);return xe.length==1&&(xe="0"+xe),Fe.length==1&&(Fe="0"+Fe),Ue.length==1&&(Ue="0"+Ue),"#"+xe+Fe+Ue},this.getHelpXML=function(){for(var xe=new Array,Fe=0;Fe<Ae.length;Fe++)for(var Ue=Ae[Fe].example,Re=0;Re<Ue.length;Re++)xe[xe.length]=Ue[Re];for(var He in St)xe[xe.length]=He;var $e=document.createElement("ul");$e.setAttribute("id","rgbcolor-examples");for(var Fe=0;Fe<xe.length;Fe++)try{var ze=document.createElement("li"),Ve=new RGBColor(xe[Fe]),ir=document.createElement("div");ir.style.cssText="margin: 3px; border: 1px solid black; background:"+Ve.toHex()+"; color:"+Ve.toHex(),ir.appendChild(document.createTextNode("test"));var Ze=document.createTextNode(" "+xe[Fe]+" -> "+Ve.toRGB()+" -> "+Ve.toHex());ze.appendChild(ir),ze.appendChild(Ze),$e.appendChild(ze)}catch{}return $e}};const RGBColor$1=getDefaultExportFromCjs(rgbcolor);var $$2=_export,uncurryThis$2=functionUncurryThisClause,$indexOf=arrayIncludes.indexOf,arrayMethodIsStrict=arrayMethodIsStrict$2,nativeIndexOf=uncurryThis$2([].indexOf),NEGATIVE_ZERO=!!nativeIndexOf&&1/nativeIndexOf([1],1,-0)<0,FORCED=NEGATIVE_ZERO||!arrayMethodIsStrict("indexOf");$$2({target:"Array",proto:!0,forced:FORCED},{indexOf:function Be(St){var Ae=arguments.length>1?arguments[1]:void 0;return NEGATIVE_ZERO?nativeIndexOf(this,St,Ae)||0:$indexOf(this,St,Ae)}});var $$1=_export,uncurryThis$1=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$b,toString=toString$9,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=uncurryThis$1("".indexOf);$$1({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function Be(St){return!!~stringIndexOf(toString(requireObjectCoercible(this)),toString(notARegExp(St)),arguments.length>1?arguments[1]:void 0)}});var classof=classofRaw$2,isArray$1=Array.isArray||function Be(St){return classof(St)==="Array"},$=_export,uncurryThis=functionUncurryThis,isArray=isArray$1,nativeReverse=uncurryThis([].reverse),test=[1,2];$({target:"Array",proto:!0,forced:String(test)===String(test.reverse())},{reverse:function Be(){return isArray(this)&&(this.length=this.length),nativeReverse(this)}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var t=function(Be,St){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,Ee){Ae.__proto__=Ee}||function(Ae,Ee){for(var Ce in Ee)Object.prototype.hasOwnProperty.call(Ee,Ce)&&(Ae[Ce]=Ee[Ce])})(Be,St)};function r(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Class extends value "+String(St)+" is not a constructor or null");function Ae(){this.constructor=Be}t(Be,St),Be.prototype=St===null?Object.create(St):(Ae.prototype=St.prototype,new Ae)}function e(Be){var St="";Array.isArray(Be)||(Be=[Be]);for(var Ae=0;Ae<Be.length;Ae++){var Ee=Be[Ae];if(Ee.type===_$1.CLOSE_PATH)St+="z";else if(Ee.type===_$1.HORIZ_LINE_TO)St+=(Ee.relative?"h":"H")+Ee.x;else if(Ee.type===_$1.VERT_LINE_TO)St+=(Ee.relative?"v":"V")+Ee.y;else if(Ee.type===_$1.MOVE_TO)St+=(Ee.relative?"m":"M")+Ee.x+" "+Ee.y;else if(Ee.type===_$1.LINE_TO)St+=(Ee.relative?"l":"L")+Ee.x+" "+Ee.y;else if(Ee.type===_$1.CURVE_TO)St+=(Ee.relative?"c":"C")+Ee.x1+" "+Ee.y1+" "+Ee.x2+" "+Ee.y2+" "+Ee.x+" "+Ee.y;else if(Ee.type===_$1.SMOOTH_CURVE_TO)St+=(Ee.relative?"s":"S")+Ee.x2+" "+Ee.y2+" "+Ee.x+" "+Ee.y;else if(Ee.type===_$1.QUAD_TO)St+=(Ee.relative?"q":"Q")+Ee.x1+" "+Ee.y1+" "+Ee.x+" "+Ee.y;else if(Ee.type===_$1.SMOOTH_QUAD_TO)St+=(Ee.relative?"t":"T")+Ee.x+" "+Ee.y;else{if(Ee.type!==_$1.ARC)throw new Error('Unexpected command type "'+Ee.type+'" at index '+Ae+".");St+=(Ee.relative?"a":"A")+Ee.rX+" "+Ee.rY+" "+Ee.xRot+" "+ +Ee.lArcFlag+" "+ +Ee.sweepFlag+" "+Ee.x+" "+Ee.y}}return St}function i(Be,St){var Ae=Be[0],Ee=Be[1];return[Ae*Math.cos(St)-Ee*Math.sin(St),Ae*Math.sin(St)+Ee*Math.cos(St)]}function a(){for(var Be=[],St=0;St<arguments.length;St++)Be[St]=arguments[St];for(var Ae=0;Ae<Be.length;Ae++)if(typeof Be[Ae]!="number")throw new Error("assertNumbers arguments["+Ae+"] is not a number. "+typeof Be[Ae]+" == typeof "+Be[Ae]);return!0}var n=Math.PI;function o(Be,St,Ae){Be.lArcFlag=Be.lArcFlag===0?0:1,Be.sweepFlag=Be.sweepFlag===0?0:1;var Ee=Be.rX,Ce=Be.rY,_e=Be.x,Te=Be.y;Ee=Math.abs(Be.rX),Ce=Math.abs(Be.rY);var Se=i([(St-_e)/2,(Ae-Te)/2],-Be.xRot/180*n),xe=Se[0],Fe=Se[1],Ue=Math.pow(xe,2)/Math.pow(Ee,2)+Math.pow(Fe,2)/Math.pow(Ce,2);1<Ue&&(Ee*=Math.sqrt(Ue),Ce*=Math.sqrt(Ue)),Be.rX=Ee,Be.rY=Ce;var Re=Math.pow(Ee,2)*Math.pow(Fe,2)+Math.pow(Ce,2)*Math.pow(xe,2),He=(Be.lArcFlag!==Be.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(Ee,2)*Math.pow(Ce,2)-Re)/Re)),$e=Ee*Fe/Ce*He,ze=-Ce*xe/Ee*He,Ve=i([$e,ze],Be.xRot/180*n);Be.cX=Ve[0]+(St+_e)/2,Be.cY=Ve[1]+(Ae+Te)/2,Be.phi1=Math.atan2((Fe-ze)/Ce,(xe-$e)/Ee),Be.phi2=Math.atan2((-Fe-ze)/Ce,(-xe-$e)/Ee),Be.sweepFlag===0&&Be.phi2>Be.phi1&&(Be.phi2-=2*n),Be.sweepFlag===1&&Be.phi2<Be.phi1&&(Be.phi2+=2*n),Be.phi1*=180/n,Be.phi2*=180/n}function s(Be,St,Ae){a(Be,St,Ae);var Ee=Be*Be+St*St-Ae*Ae;if(0>Ee)return[];if(Ee===0)return[[Be*Ae/(Be*Be+St*St),St*Ae/(Be*Be+St*St)]];var Ce=Math.sqrt(Ee);return[[(Be*Ae+St*Ce)/(Be*Be+St*St),(St*Ae-Be*Ce)/(Be*Be+St*St)],[(Be*Ae-St*Ce)/(Be*Be+St*St),(St*Ae+Be*Ce)/(Be*Be+St*St)]]}var u,h=Math.PI/180;function c$1(Be,St,Ae){return(1-Ae)*Be+Ae*St}function y(Be,St,Ae,Ee){return Be+Math.cos(Ee/180*n)*St+Math.sin(Ee/180*n)*Ae}function p(Be,St,Ae,Ee){var Ce=1e-6,_e=St-Be,Te=Ae-St,Se=3*_e+3*(Ee-Ae)-6*Te,xe=6*(Te-_e),Fe=3*_e;return Math.abs(Se)<Ce?[-Fe/xe]:function(Ue,Re,He){He===void 0&&(He=1e-6);var $e=Ue*Ue/4-Re;if($e<-He)return[];if($e<=He)return[-Ue/2];var ze=Math.sqrt($e);return[-Ue/2-ze,-Ue/2+ze]}(xe/Se,Fe/Se,Ce)}function m$1(Be,St,Ae,Ee,Ce){var _e=1-Ce;return Be*(_e*_e*_e)+St*(3*_e*_e*Ce)+Ae*(3*_e*Ce*Ce)+Ee*(Ce*Ce*Ce)}(function(Be){function St(){return Ce(function(Se,xe,Fe){return Se.relative&&(Se.x1!==void 0&&(Se.x1+=xe),Se.y1!==void 0&&(Se.y1+=Fe),Se.x2!==void 0&&(Se.x2+=xe),Se.y2!==void 0&&(Se.y2+=Fe),Se.x!==void 0&&(Se.x+=xe),Se.y!==void 0&&(Se.y+=Fe),Se.relative=!1),Se})}function Ae(){var Se=NaN,xe=NaN,Fe=NaN,Ue=NaN;return Ce(function(Re,He,$e){return Re.type&_$1.SMOOTH_CURVE_TO&&(Re.type=_$1.CURVE_TO,Se=isNaN(Se)?He:Se,xe=isNaN(xe)?$e:xe,Re.x1=Re.relative?He-Se:2*He-Se,Re.y1=Re.relative?$e-xe:2*$e-xe),Re.type&_$1.CURVE_TO?(Se=Re.relative?He+Re.x2:Re.x2,xe=Re.relative?$e+Re.y2:Re.y2):(Se=NaN,xe=NaN),Re.type&_$1.SMOOTH_QUAD_TO&&(Re.type=_$1.QUAD_TO,Fe=isNaN(Fe)?He:Fe,Ue=isNaN(Ue)?$e:Ue,Re.x1=Re.relative?He-Fe:2*He-Fe,Re.y1=Re.relative?$e-Ue:2*$e-Ue),Re.type&_$1.QUAD_TO?(Fe=Re.relative?He+Re.x1:Re.x1,Ue=Re.relative?$e+Re.y1:Re.y1):(Fe=NaN,Ue=NaN),Re})}function Ee(){var Se=NaN,xe=NaN;return Ce(function(Fe,Ue,Re){if(Fe.type&_$1.SMOOTH_QUAD_TO&&(Fe.type=_$1.QUAD_TO,Se=isNaN(Se)?Ue:Se,xe=isNaN(xe)?Re:xe,Fe.x1=Fe.relative?Ue-Se:2*Ue-Se,Fe.y1=Fe.relative?Re-xe:2*Re-xe),Fe.type&_$1.QUAD_TO){Se=Fe.relative?Ue+Fe.x1:Fe.x1,xe=Fe.relative?Re+Fe.y1:Fe.y1;var He=Fe.x1,$e=Fe.y1;Fe.type=_$1.CURVE_TO,Fe.x1=((Fe.relative?0:Ue)+2*He)/3,Fe.y1=((Fe.relative?0:Re)+2*$e)/3,Fe.x2=(Fe.x+2*He)/3,Fe.y2=(Fe.y+2*$e)/3}else Se=NaN,xe=NaN;return Fe})}function Ce(Se){var xe=0,Fe=0,Ue=NaN,Re=NaN;return function(He){if(isNaN(Ue)&&!(He.type&_$1.MOVE_TO))throw new Error("path must start with moveto");var $e=Se(He,xe,Fe,Ue,Re);return He.type&_$1.CLOSE_PATH&&(xe=Ue,Fe=Re),He.x!==void 0&&(xe=He.relative?xe+He.x:He.x),He.y!==void 0&&(Fe=He.relative?Fe+He.y:He.y),He.type&_$1.MOVE_TO&&(Ue=xe,Re=Fe),$e}}function _e(Se,xe,Fe,Ue,Re,He){return a(Se,xe,Fe,Ue,Re,He),Ce(function($e,ze,Ve,ir){var Ze=$e.x1,ar=$e.x2,cr=$e.relative&&!isNaN(ir),Xe=$e.x!==void 0?$e.x:cr?0:ze,or=$e.y!==void 0?$e.y:cr?0:Ve;function Oe(ur){return ur*ur}$e.type&_$1.HORIZ_LINE_TO&&xe!==0&&($e.type=_$1.LINE_TO,$e.y=$e.relative?0:Ve),$e.type&_$1.VERT_LINE_TO&&Fe!==0&&($e.type=_$1.LINE_TO,$e.x=$e.relative?0:ze),$e.x!==void 0&&($e.x=$e.x*Se+or*Fe+(cr?0:Re)),$e.y!==void 0&&($e.y=Xe*xe+$e.y*Ue+(cr?0:He)),$e.x1!==void 0&&($e.x1=$e.x1*Se+$e.y1*Fe+(cr?0:Re)),$e.y1!==void 0&&($e.y1=Ze*xe+$e.y1*Ue+(cr?0:He)),$e.x2!==void 0&&($e.x2=$e.x2*Se+$e.y2*Fe+(cr?0:Re)),$e.y2!==void 0&&($e.y2=ar*xe+$e.y2*Ue+(cr?0:He));var Je=Se*Ue-xe*Fe;if($e.xRot!==void 0&&(Se!==1||xe!==0||Fe!==0||Ue!==1))if(Je===0)delete $e.rX,delete $e.rY,delete $e.xRot,delete $e.lArcFlag,delete $e.sweepFlag,$e.type=_$1.LINE_TO;else{var Ye=$e.xRot*Math.PI/180,rr=Math.sin(Ye),vr=Math.cos(Ye),er=1/Oe($e.rX),Ar=1/Oe($e.rY),gr=Oe(vr)*er+Oe(rr)*Ar,mr=2*rr*vr*(er-Ar),Ur=Oe(rr)*er+Oe(vr)*Ar,Lr=gr*Ue*Ue-mr*xe*Ue+Ur*xe*xe,Mr=mr*(Se*Ue+xe*Fe)-2*(gr*Fe*Ue+Ur*Se*xe),Qr=gr*Fe*Fe-mr*Se*Fe+Ur*Se*Se,Dr=(Math.atan2(Mr,Lr-Qr)+Math.PI)%Math.PI/2,Xr=Math.sin(Dr),sn=Math.cos(Dr);$e.rX=Math.abs(Je)/Math.sqrt(Lr*Oe(sn)+Mr*Xr*sn+Qr*Oe(Xr)),$e.rY=Math.abs(Je)/Math.sqrt(Lr*Oe(Xr)-Mr*Xr*sn+Qr*Oe(sn)),$e.xRot=180*Dr/Math.PI}return $e.sweepFlag!==void 0&&0>Je&&($e.sweepFlag=+!$e.sweepFlag),$e})}function Te(){return function(Se){var xe={};for(var Fe in Se)xe[Fe]=Se[Fe];return xe}}Be.ROUND=function(Se){function xe(Fe){return Math.round(Fe*Se)/Se}return Se===void 0&&(Se=1e13),a(Se),function(Fe){return Fe.x1!==void 0&&(Fe.x1=xe(Fe.x1)),Fe.y1!==void 0&&(Fe.y1=xe(Fe.y1)),Fe.x2!==void 0&&(Fe.x2=xe(Fe.x2)),Fe.y2!==void 0&&(Fe.y2=xe(Fe.y2)),Fe.x!==void 0&&(Fe.x=xe(Fe.x)),Fe.y!==void 0&&(Fe.y=xe(Fe.y)),Fe.rX!==void 0&&(Fe.rX=xe(Fe.rX)),Fe.rY!==void 0&&(Fe.rY=xe(Fe.rY)),Fe}},Be.TO_ABS=St,Be.TO_REL=function(){return Ce(function(Se,xe,Fe){return Se.relative||(Se.x1!==void 0&&(Se.x1-=xe),Se.y1!==void 0&&(Se.y1-=Fe),Se.x2!==void 0&&(Se.x2-=xe),Se.y2!==void 0&&(Se.y2-=Fe),Se.x!==void 0&&(Se.x-=xe),Se.y!==void 0&&(Se.y-=Fe),Se.relative=!0),Se})},Be.NORMALIZE_HVZ=function(Se,xe,Fe){return Se===void 0&&(Se=!0),xe===void 0&&(xe=!0),Fe===void 0&&(Fe=!0),Ce(function(Ue,Re,He,$e,ze){if(isNaN($e)&&!(Ue.type&_$1.MOVE_TO))throw new Error("path must start with moveto");return xe&&Ue.type&_$1.HORIZ_LINE_TO&&(Ue.type=_$1.LINE_TO,Ue.y=Ue.relative?0:He),Fe&&Ue.type&_$1.VERT_LINE_TO&&(Ue.type=_$1.LINE_TO,Ue.x=Ue.relative?0:Re),Se&&Ue.type&_$1.CLOSE_PATH&&(Ue.type=_$1.LINE_TO,Ue.x=Ue.relative?$e-Re:$e,Ue.y=Ue.relative?ze-He:ze),Ue.type&_$1.ARC&&(Ue.rX===0||Ue.rY===0)&&(Ue.type=_$1.LINE_TO,delete Ue.rX,delete Ue.rY,delete Ue.xRot,delete Ue.lArcFlag,delete Ue.sweepFlag),Ue})},Be.NORMALIZE_ST=Ae,Be.QT_TO_C=Ee,Be.INFO=Ce,Be.SANITIZE=function(Se){Se===void 0&&(Se=0),a(Se);var xe=NaN,Fe=NaN,Ue=NaN,Re=NaN;return Ce(function(He,$e,ze,Ve,ir){var Ze=Math.abs,ar=!1,cr=0,Xe=0;if(He.type&_$1.SMOOTH_CURVE_TO&&(cr=isNaN(xe)?0:$e-xe,Xe=isNaN(Fe)?0:ze-Fe),He.type&(_$1.CURVE_TO|_$1.SMOOTH_CURVE_TO)?(xe=He.relative?$e+He.x2:He.x2,Fe=He.relative?ze+He.y2:He.y2):(xe=NaN,Fe=NaN),He.type&_$1.SMOOTH_QUAD_TO?(Ue=isNaN(Ue)?$e:2*$e-Ue,Re=isNaN(Re)?ze:2*ze-Re):He.type&_$1.QUAD_TO?(Ue=He.relative?$e+He.x1:He.x1,Re=He.relative?ze+He.y1:He.y2):(Ue=NaN,Re=NaN),He.type&_$1.LINE_COMMANDS||He.type&_$1.ARC&&(He.rX===0||He.rY===0||!He.lArcFlag)||He.type&_$1.CURVE_TO||He.type&_$1.SMOOTH_CURVE_TO||He.type&_$1.QUAD_TO||He.type&_$1.SMOOTH_QUAD_TO){var or=He.x===void 0?0:He.relative?He.x:He.x-$e,Oe=He.y===void 0?0:He.relative?He.y:He.y-ze;cr=isNaN(Ue)?He.x1===void 0?cr:He.relative?He.x:He.x1-$e:Ue-$e,Xe=isNaN(Re)?He.y1===void 0?Xe:He.relative?He.y:He.y1-ze:Re-ze;var Je=He.x2===void 0?0:He.relative?He.x:He.x2-$e,Ye=He.y2===void 0?0:He.relative?He.y:He.y2-ze;Ze(or)<=Se&&Ze(Oe)<=Se&&Ze(cr)<=Se&&Ze(Xe)<=Se&&Ze(Je)<=Se&&Ze(Ye)<=Se&&(ar=!0)}return He.type&_$1.CLOSE_PATH&&Ze($e-Ve)<=Se&&Ze(ze-ir)<=Se&&(ar=!0),ar?[]:He})},Be.MATRIX=_e,Be.ROTATE=function(Se,xe,Fe){xe===void 0&&(xe=0),Fe===void 0&&(Fe=0),a(Se,xe,Fe);var Ue=Math.sin(Se),Re=Math.cos(Se);return _e(Re,Ue,-Ue,Re,xe-xe*Re+Fe*Ue,Fe-xe*Ue-Fe*Re)},Be.TRANSLATE=function(Se,xe){return xe===void 0&&(xe=0),a(Se,xe),_e(1,0,0,1,Se,xe)},Be.SCALE=function(Se,xe){return xe===void 0&&(xe=Se),a(Se,xe),_e(Se,0,0,xe,0,0)},Be.SKEW_X=function(Se){return a(Se),_e(1,0,Math.atan(Se),1,0,0)},Be.SKEW_Y=function(Se){return a(Se),_e(1,Math.atan(Se),0,1,0,0)},Be.X_AXIS_SYMMETRY=function(Se){return Se===void 0&&(Se=0),a(Se),_e(-1,0,0,1,Se,0)},Be.Y_AXIS_SYMMETRY=function(Se){return Se===void 0&&(Se=0),a(Se),_e(1,0,0,-1,0,Se)},Be.A_TO_C=function(){return Ce(function(Se,xe,Fe){return _$1.ARC===Se.type?function(Ue,Re,He){var $e,ze,Ve,ir;Ue.cX||o(Ue,Re,He);for(var Ze=Math.min(Ue.phi1,Ue.phi2),ar=Math.max(Ue.phi1,Ue.phi2)-Ze,cr=Math.ceil(ar/90),Xe=new Array(cr),or=Re,Oe=He,Je=0;Je<cr;Je++){var Ye=c$1(Ue.phi1,Ue.phi2,Je/cr),rr=c$1(Ue.phi1,Ue.phi2,(Je+1)/cr),vr=rr-Ye,er=4/3*Math.tan(vr*h/4),Ar=[Math.cos(Ye*h)-er*Math.sin(Ye*h),Math.sin(Ye*h)+er*Math.cos(Ye*h)],gr=Ar[0],mr=Ar[1],Ur=[Math.cos(rr*h),Math.sin(rr*h)],Lr=Ur[0],Mr=Ur[1],Qr=[Lr+er*Math.sin(rr*h),Mr-er*Math.cos(rr*h)],Dr=Qr[0],Xr=Qr[1];Xe[Je]={relative:Ue.relative,type:_$1.CURVE_TO};var sn=function(ur,_r){var Fr=i([ur*Ue.rX,_r*Ue.rY],Ue.xRot),Pr=Fr[0],kr=Fr[1];return[Ue.cX+Pr,Ue.cY+kr]};$e=sn(gr,mr),Xe[Je].x1=$e[0],Xe[Je].y1=$e[1],ze=sn(Dr,Xr),Xe[Je].x2=ze[0],Xe[Je].y2=ze[1],Ve=sn(Lr,Mr),Xe[Je].x=Ve[0],Xe[Je].y=Ve[1],Ue.relative&&(Xe[Je].x1-=or,Xe[Je].y1-=Oe,Xe[Je].x2-=or,Xe[Je].y2-=Oe,Xe[Je].x-=or,Xe[Je].y-=Oe),or=(ir=[Xe[Je].x,Xe[Je].y])[0],Oe=ir[1]}return Xe}(Se,Se.relative?0:xe,Se.relative?0:Fe):Se})},Be.ANNOTATE_ARCS=function(){return Ce(function(Se,xe,Fe){return Se.relative&&(xe=0,Fe=0),_$1.ARC===Se.type&&o(Se,xe,Fe),Se})},Be.CLONE=Te,Be.CALCULATE_BOUNDS=function(){var Se=function(He){var $e={};for(var ze in He)$e[ze]=He[ze];return $e},xe=St(),Fe=Ee(),Ue=Ae(),Re=Ce(function(He,$e,ze){var Ve=Ue(Fe(xe(Se(He))));function ir(Xr){Xr>Re.maxX&&(Re.maxX=Xr),Xr<Re.minX&&(Re.minX=Xr)}function Ze(Xr){Xr>Re.maxY&&(Re.maxY=Xr),Xr<Re.minY&&(Re.minY=Xr)}if(Ve.type&_$1.DRAWING_COMMANDS&&(ir($e),Ze(ze)),Ve.type&_$1.HORIZ_LINE_TO&&ir(Ve.x),Ve.type&_$1.VERT_LINE_TO&&Ze(Ve.y),Ve.type&_$1.LINE_TO&&(ir(Ve.x),Ze(Ve.y)),Ve.type&_$1.CURVE_TO){ir(Ve.x),Ze(Ve.y);for(var ar=0,cr=p($e,Ve.x1,Ve.x2,Ve.x);ar<cr.length;ar++)0<(Dr=cr[ar])&&1>Dr&&ir(m$1($e,Ve.x1,Ve.x2,Ve.x,Dr));for(var Xe=0,or=p(ze,Ve.y1,Ve.y2,Ve.y);Xe<or.length;Xe++)0<(Dr=or[Xe])&&1>Dr&&Ze(m$1(ze,Ve.y1,Ve.y2,Ve.y,Dr))}if(Ve.type&_$1.ARC){ir(Ve.x),Ze(Ve.y),o(Ve,$e,ze);for(var Oe=Ve.xRot/180*Math.PI,Je=Math.cos(Oe)*Ve.rX,Ye=Math.sin(Oe)*Ve.rX,rr=-Math.sin(Oe)*Ve.rY,vr=Math.cos(Oe)*Ve.rY,er=Ve.phi1<Ve.phi2?[Ve.phi1,Ve.phi2]:-180>Ve.phi2?[Ve.phi2+360,Ve.phi1+360]:[Ve.phi2,Ve.phi1],Ar=er[0],gr=er[1],mr=function(Xr){var sn=Xr[0],ur=Xr[1],_r=180*Math.atan2(ur,sn)/Math.PI;return _r<Ar?_r+360:_r},Ur=0,Lr=s(rr,-Je,0).map(mr);Ur<Lr.length;Ur++)(Dr=Lr[Ur])>Ar&&Dr<gr&&ir(y(Ve.cX,Je,rr,Dr));for(var Mr=0,Qr=s(vr,-Ye,0).map(mr);Mr<Qr.length;Mr++){var Dr;(Dr=Qr[Mr])>Ar&&Dr<gr&&Ze(y(Ve.cY,Ye,vr,Dr))}}return He});return Re.minX=1/0,Re.maxX=-1/0,Re.minY=1/0,Re.maxY=-1/0,Re}})(u||(u={}));var O,l=function(){function Be(){}return Be.prototype.round=function(St){return this.transform(u.ROUND(St))},Be.prototype.toAbs=function(){return this.transform(u.TO_ABS())},Be.prototype.toRel=function(){return this.transform(u.TO_REL())},Be.prototype.normalizeHVZ=function(St,Ae,Ee){return this.transform(u.NORMALIZE_HVZ(St,Ae,Ee))},Be.prototype.normalizeST=function(){return this.transform(u.NORMALIZE_ST())},Be.prototype.qtToC=function(){return this.transform(u.QT_TO_C())},Be.prototype.aToC=function(){return this.transform(u.A_TO_C())},Be.prototype.sanitize=function(St){return this.transform(u.SANITIZE(St))},Be.prototype.translate=function(St,Ae){return this.transform(u.TRANSLATE(St,Ae))},Be.prototype.scale=function(St,Ae){return this.transform(u.SCALE(St,Ae))},Be.prototype.rotate=function(St,Ae,Ee){return this.transform(u.ROTATE(St,Ae,Ee))},Be.prototype.matrix=function(St,Ae,Ee,Ce,_e,Te){return this.transform(u.MATRIX(St,Ae,Ee,Ce,_e,Te))},Be.prototype.skewX=function(St){return this.transform(u.SKEW_X(St))},Be.prototype.skewY=function(St){return this.transform(u.SKEW_Y(St))},Be.prototype.xSymmetry=function(St){return this.transform(u.X_AXIS_SYMMETRY(St))},Be.prototype.ySymmetry=function(St){return this.transform(u.Y_AXIS_SYMMETRY(St))},Be.prototype.annotateArcs=function(){return this.transform(u.ANNOTATE_ARCS())},Be}(),T=function(Be){return Be===" "||Be===" "||Be==="\r"||Be===`
`},v=function(Be){return"0".charCodeAt(0)<=Be.charCodeAt(0)&&Be.charCodeAt(0)<="9".charCodeAt(0)},f=function(Be){function St(){var Ae=Be.call(this)||this;return Ae.curNumber="",Ae.curCommandType=-1,Ae.curCommandRelative=!1,Ae.canParseCommandOrComma=!0,Ae.curNumberHasExp=!1,Ae.curNumberHasExpDigits=!1,Ae.curNumberHasDecimal=!1,Ae.curArgs=[],Ae}return r(St,Be),St.prototype.finish=function(Ae){if(Ae===void 0&&(Ae=[]),this.parse(" ",Ae),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return Ae},St.prototype.parse=function(Ae,Ee){var Ce=this;Ee===void 0&&(Ee=[]);for(var _e=function(Re){Ee.push(Re),Ce.curArgs.length=0,Ce.canParseCommandOrComma=!0},Te=0;Te<Ae.length;Te++){var Se=Ae[Te],xe=!(this.curCommandType!==_$1.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),Fe=v(Se)&&(this.curNumber==="0"&&Se==="0"||xe);if(!v(Se)||Fe)if(Se!=="e"&&Se!=="E")if(Se!=="-"&&Se!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(Se!=="."||this.curNumberHasExp||this.curNumberHasDecimal||xe){if(this.curNumber&&this.curCommandType!==-1){var Ue=Number(this.curNumber);if(isNaN(Ue))throw new SyntaxError("Invalid number ending at "+Te);if(this.curCommandType===_$1.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>Ue)throw new SyntaxError('Expected positive number, got "'+Ue+'" at index "'+Te+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+Te+'"')}this.curArgs.push(Ue),this.curArgs.length===N[this.curCommandType]&&(_$1.HORIZ_LINE_TO===this.curCommandType?_e({type:_$1.HORIZ_LINE_TO,relative:this.curCommandRelative,x:Ue}):_$1.VERT_LINE_TO===this.curCommandType?_e({type:_$1.VERT_LINE_TO,relative:this.curCommandRelative,y:Ue}):this.curCommandType===_$1.MOVE_TO||this.curCommandType===_$1.LINE_TO||this.curCommandType===_$1.SMOOTH_QUAD_TO?(_e({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),_$1.MOVE_TO===this.curCommandType&&(this.curCommandType=_$1.LINE_TO)):this.curCommandType===_$1.CURVE_TO?_e({type:_$1.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===_$1.SMOOTH_CURVE_TO?_e({type:_$1.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_$1.QUAD_TO?_e({type:_$1.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_$1.ARC&&_e({type:_$1.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!T(Se))if(Se===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(Se!=="+"&&Se!=="-"&&Se!==".")if(Fe)this.curNumber=Se,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+Te+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+Se+'" at index '+Te+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,Se!=="z"&&Se!=="Z")if(Se==="h"||Se==="H")this.curCommandType=_$1.HORIZ_LINE_TO,this.curCommandRelative=Se==="h";else if(Se==="v"||Se==="V")this.curCommandType=_$1.VERT_LINE_TO,this.curCommandRelative=Se==="v";else if(Se==="m"||Se==="M")this.curCommandType=_$1.MOVE_TO,this.curCommandRelative=Se==="m";else if(Se==="l"||Se==="L")this.curCommandType=_$1.LINE_TO,this.curCommandRelative=Se==="l";else if(Se==="c"||Se==="C")this.curCommandType=_$1.CURVE_TO,this.curCommandRelative=Se==="c";else if(Se==="s"||Se==="S")this.curCommandType=_$1.SMOOTH_CURVE_TO,this.curCommandRelative=Se==="s";else if(Se==="q"||Se==="Q")this.curCommandType=_$1.QUAD_TO,this.curCommandRelative=Se==="q";else if(Se==="t"||Se==="T")this.curCommandType=_$1.SMOOTH_QUAD_TO,this.curCommandRelative=Se==="t";else{if(Se!=="a"&&Se!=="A")throw new SyntaxError('Unexpected character "'+Se+'" at index '+Te+".");this.curCommandType=_$1.ARC,this.curCommandRelative=Se==="a"}else Ee.push({type:_$1.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=Se,this.curNumberHasDecimal=Se==="."}else this.curNumber+=Se,this.curNumberHasDecimal=!0;else this.curNumber+=Se;else this.curNumber+=Se,this.curNumberHasExp=!0;else this.curNumber+=Se,this.curNumberHasExpDigits=this.curNumberHasExp}return Ee},St.prototype.transform=function(Ae){return Object.create(this,{parse:{value:function(Ee,Ce){Ce===void 0&&(Ce=[]);for(var _e=0,Te=Object.getPrototypeOf(this).parse.call(this,Ee);_e<Te.length;_e++){var Se=Te[_e],xe=Ae(Se);Array.isArray(xe)?Ce.push.apply(Ce,xe):Ce.push(xe)}return Ce}}})},St}(l),_$1=function(Be){function St(Ae){var Ee=Be.call(this)||this;return Ee.commands=typeof Ae=="string"?St.parse(Ae):Ae,Ee}return r(St,Be),St.prototype.encode=function(){return St.encode(this.commands)},St.prototype.getBounds=function(){var Ae=u.CALCULATE_BOUNDS();return this.transform(Ae),Ae},St.prototype.transform=function(Ae){for(var Ee=[],Ce=0,_e=this.commands;Ce<_e.length;Ce++){var Te=Ae(_e[Ce]);Array.isArray(Te)?Ee.push.apply(Ee,Te):Ee.push(Te)}return this.commands=Ee,this},St.encode=function(Ae){return e(Ae)},St.parse=function(Ae){var Ee=new f,Ce=[];return Ee.parse(Ae,Ce),Ee.finish(Ce),Ce},St.CLOSE_PATH=1,St.MOVE_TO=2,St.HORIZ_LINE_TO=4,St.VERT_LINE_TO=8,St.LINE_TO=16,St.CURVE_TO=32,St.SMOOTH_CURVE_TO=64,St.QUAD_TO=128,St.SMOOTH_QUAD_TO=256,St.ARC=512,St.LINE_COMMANDS=St.LINE_TO|St.HORIZ_LINE_TO|St.VERT_LINE_TO,St.DRAWING_COMMANDS=St.HORIZ_LINE_TO|St.VERT_LINE_TO|St.LINE_TO|St.CURVE_TO|St.SMOOTH_CURVE_TO|St.QUAD_TO|St.SMOOTH_QUAD_TO|St.ARC,St}(l),N=((O={})[_$1.MOVE_TO]=2,O[_$1.LINE_TO]=2,O[_$1.HORIZ_LINE_TO]=1,O[_$1.VERT_LINE_TO]=1,O[_$1.CLOSE_PATH]=0,O[_$1.QUAD_TO]=4,O[_$1.SMOOTH_QUAD_TO]=2,O[_$1.CURVE_TO]=6,O[_$1.SMOOTH_CURVE_TO]=4,O[_$1.ARC]=7,O),call=functionCall,hasOwn=hasOwnProperty_1,isPrototypeOf=objectIsPrototypeOf,regExpFlags=regexpFlags$1,RegExpPrototype$1=RegExp.prototype,regexpGetFlags=function(Be){var St=Be.flags;return St===void 0&&!("flags"in RegExpPrototype$1)&&!hasOwn(Be,"flags")&&isPrototypeOf(RegExpPrototype$1,Be)?call(regExpFlags,Be):St},PROPER_FUNCTION_NAME=functionName.PROPER,defineBuiltIn=defineBuiltIn$7,anObject=anObject$f,$toString=toString$9,fails=fails$l,getRegExpFlags=regexpGetFlags,TO_STRING="toString",RegExpPrototype=RegExp.prototype,nativeToString=RegExpPrototype[TO_STRING],NOT_GENERIC=fails(function(){return nativeToString.call({source:"a",flags:"b"})!=="/a/b"}),INCORRECT_NAME=PROPER_FUNCTION_NAME&&nativeToString.name!==TO_STRING;(NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn(RegExpPrototype,TO_STRING,function(){var St=anObject(this),Ae=$toString(St.source),Ee=$toString(getRegExpFlags(St));return"/"+Ae+"/"+Ee},{unsafe:!0});function _typeof(Be){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(St){return typeof St}:_typeof=function(St){return St&&typeof Symbol=="function"&&St.constructor===Symbol&&St!==Symbol.prototype?"symbol":typeof St},_typeof(Be)}function _classCallCheck(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}var mulTable=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],shgTable=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function getImageDataFromCanvas(Be,St,Ae,Ee,Ce){if(typeof Be=="string"&&(Be=document.getElementById(Be)),!Be||_typeof(Be)!=="object"||!("getContext"in Be))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var _e=Be.getContext("2d");try{return _e.getImageData(St,Ae,Ee,Ce)}catch(Te){throw new Error("unable to access image data: "+Te)}}function processCanvasRGBA(Be,St,Ae,Ee,Ce,_e){if(!(isNaN(_e)||_e<1)){_e|=0;var Te=getImageDataFromCanvas(Be,St,Ae,Ee,Ce);Te=processImageDataRGBA(Te,St,Ae,Ee,Ce,_e),Be.getContext("2d").putImageData(Te,St,Ae)}}function processImageDataRGBA(Be,St,Ae,Ee,Ce,_e){for(var Te=Be.data,Se=2*_e+1,xe=Ee-1,Fe=Ce-1,Ue=_e+1,Re=Ue*(Ue+1)/2,He=new BlurStack,$e=He,ze,Ve=1;Ve<Se;Ve++)$e=$e.next=new BlurStack,Ve===Ue&&(ze=$e);$e.next=He;for(var ir=null,Ze=null,ar=0,cr=0,Xe=mulTable[_e],or=shgTable[_e],Oe=0;Oe<Ce;Oe++){$e=He;for(var Je=Te[cr],Ye=Te[cr+1],rr=Te[cr+2],vr=Te[cr+3],er=0;er<Ue;er++)$e.r=Je,$e.g=Ye,$e.b=rr,$e.a=vr,$e=$e.next;for(var Ar=0,gr=0,mr=0,Ur=0,Lr=Ue*Je,Mr=Ue*Ye,Qr=Ue*rr,Dr=Ue*vr,Xr=Re*Je,sn=Re*Ye,ur=Re*rr,_r=Re*vr,Fr=1;Fr<Ue;Fr++){var Pr=cr+((xe<Fr?xe:Fr)<<2),kr=Te[Pr],Vr=Te[Pr+1],nn=Te[Pr+2],Jr=Te[Pr+3],wn=Ue-Fr;Xr+=($e.r=kr)*wn,sn+=($e.g=Vr)*wn,ur+=($e.b=nn)*wn,_r+=($e.a=Jr)*wn,Ar+=kr,gr+=Vr,mr+=nn,Ur+=Jr,$e=$e.next}ir=He,Ze=ze;for(var Cn=0;Cn<Ee;Cn++){var On=_r*Xe>>>or;if(Te[cr+3]=On,On!==0){var In=255/On;Te[cr]=(Xr*Xe>>>or)*In,Te[cr+1]=(sn*Xe>>>or)*In,Te[cr+2]=(ur*Xe>>>or)*In}else Te[cr]=Te[cr+1]=Te[cr+2]=0;Xr-=Lr,sn-=Mr,ur-=Qr,_r-=Dr,Lr-=ir.r,Mr-=ir.g,Qr-=ir.b,Dr-=ir.a;var Xn=Cn+_e+1;Xn=ar+(Xn<xe?Xn:xe)<<2,Ar+=ir.r=Te[Xn],gr+=ir.g=Te[Xn+1],mr+=ir.b=Te[Xn+2],Ur+=ir.a=Te[Xn+3],Xr+=Ar,sn+=gr,ur+=mr,_r+=Ur,ir=ir.next;var fn=Ze,Sr=fn.r,ti=fn.g,Yn=fn.b,Tn=fn.a;Lr+=Sr,Mr+=ti,Qr+=Yn,Dr+=Tn,Ar-=Sr,gr-=ti,mr-=Yn,Ur-=Tn,Ze=Ze.next,cr+=4}ar+=Ee}for(var Nn=0;Nn<Ee;Nn++){cr=Nn<<2;var Rn=Te[cr],$n=Te[cr+1],zn=Te[cr+2],Gn=Te[cr+3],ii=Ue*Rn,ui=Ue*$n,mi=Ue*zn,yi=Ue*Gn,Ai=Re*Rn,hi=Re*$n,Hn=Re*zn,Oi=Re*Gn;$e=He;for(var wi=0;wi<Ue;wi++)$e.r=Rn,$e.g=$n,$e.b=zn,$e.a=Gn,$e=$e.next;for(var br=Ee,Ke=0,je=0,sr=0,dr=0,Or=1;Or<=_e;Or++){cr=br+Nn<<2;var qr=Ue-Or;Ai+=($e.r=Rn=Te[cr])*qr,hi+=($e.g=$n=Te[cr+1])*qr,Hn+=($e.b=zn=Te[cr+2])*qr,Oi+=($e.a=Gn=Te[cr+3])*qr,dr+=Rn,Ke+=$n,je+=zn,sr+=Gn,$e=$e.next,Or<Fe&&(br+=Ee)}cr=Nn,ir=He,Ze=ze;for(var gn=0;gn<Ce;gn++){var mn=cr<<2;Te[mn+3]=Gn=Oi*Xe>>>or,Gn>0?(Gn=255/Gn,Te[mn]=(Ai*Xe>>>or)*Gn,Te[mn+1]=(hi*Xe>>>or)*Gn,Te[mn+2]=(Hn*Xe>>>or)*Gn):Te[mn]=Te[mn+1]=Te[mn+2]=0,Ai-=ii,hi-=ui,Hn-=mi,Oi-=yi,ii-=ir.r,ui-=ir.g,mi-=ir.b,yi-=ir.a,mn=Nn+((mn=gn+Ue)<Fe?mn:Fe)*Ee<<2,Ai+=dr+=ir.r=Te[mn],hi+=Ke+=ir.g=Te[mn+1],Hn+=je+=ir.b=Te[mn+2],Oi+=sr+=ir.a=Te[mn+3],ir=ir.next,ii+=Rn=Ze.r,ui+=$n=Ze.g,mi+=zn=Ze.b,yi+=Gn=Ze.a,dr-=Rn,Ke-=$n,je-=zn,sr-=Gn,Ze=Ze.next,cr+=Ee}}return Be}var BlurStack=function Be(){_classCallCheck(this,Be),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function offscreen(){var{DOMParser:Be}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},St={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:Be,createCanvas(Ae,Ee){return new OffscreenCanvas(Ae,Ee)},createImage(Ae){return _asyncToGenerator(function*(){var Ee=yield fetch(Ae),Ce=yield Ee.blob(),_e=yield createImageBitmap(Ce);return _e})()}};return(typeof DOMParser<"u"||typeof Be>"u")&&Reflect.deleteProperty(St,"DOMParser"),St}function node(Be){var{DOMParser:St,canvas:Ae,fetch:Ee}=Be;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:St,fetch:Ee,createCanvas:Ae.createCanvas,createImage:Ae.loadImage}}var index=Object.freeze({__proto__:null,offscreen,node});function compressSpaces(Be){return Be.replace(/(?!\u3000)\s+/gm," ")}function trimLeft(Be){return Be.replace(/^[\n \t]+/,"")}function trimRight(Be){return Be.replace(/[\n \t]+$/,"")}function toNumbers(Be){var St=(Be||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return St.map(parseFloat)}var allUppercase=/^[A-Z-]+$/;function normalizeAttributeName(Be){return allUppercase.test(Be)?Be.toLowerCase():Be}function parseExternalUrl(Be){var St=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(Be)||[];return St[2]||St[3]||St[4]}function normalizeColor(Be){if(!Be.startsWith("rgb"))return Be;var St=3,Ae=Be.replace(/\d+(\.\d+)?/g,(Ee,Ce)=>St--&&Ce?String(Math.round(parseFloat(Ee))):Ee);return Ae}var attributeRegex=/(\[[^\]]+\])/g,idRegex=/(#[^\s+>~.[:]+)/g,classRegex=/(\.[^\s+>~.[:]+)/g,pseudoElementRegex=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,pseudoClassWithBracketsRegex=/(:[\w-]+\([^)]*\))/gi,pseudoClassRegex=/(:[^\s+>~.[:]+)/g,elementRegex=/([^\s+>~.[:]+)/g;function findSelectorMatch(Be,St){var Ae=St.exec(Be);return Ae?[Be.replace(St," "),Ae.length]:[Be,0]}function getSelectorSpecificity(Be){var St=[0,0,0],Ae=Be.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),Ee=0;return[Ae,Ee]=findSelectorMatch(Ae,attributeRegex),St[1]+=Ee,[Ae,Ee]=findSelectorMatch(Ae,idRegex),St[0]+=Ee,[Ae,Ee]=findSelectorMatch(Ae,classRegex),St[1]+=Ee,[Ae,Ee]=findSelectorMatch(Ae,pseudoElementRegex),St[2]+=Ee,[Ae,Ee]=findSelectorMatch(Ae,pseudoClassWithBracketsRegex),St[1]+=Ee,[Ae,Ee]=findSelectorMatch(Ae,pseudoClassRegex),St[1]+=Ee,Ae=Ae.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[Ae,Ee]=findSelectorMatch(Ae,elementRegex),St[2]+=Ee,St.join("")}var PSEUDO_ZERO=1e-8;function vectorMagnitude(Be){return Math.sqrt(Math.pow(Be[0],2)+Math.pow(Be[1],2))}function vectorsRatio(Be,St){return(Be[0]*St[0]+Be[1]*St[1])/(vectorMagnitude(Be)*vectorMagnitude(St))}function vectorsAngle(Be,St){return(Be[0]*St[1]<Be[1]*St[0]?-1:1)*Math.acos(vectorsRatio(Be,St))}function CB1(Be){return Be*Be*Be}function CB2(Be){return 3*Be*Be*(1-Be)}function CB3(Be){return 3*Be*(1-Be)*(1-Be)}function CB4(Be){return(1-Be)*(1-Be)*(1-Be)}function QB1(Be){return Be*Be}function QB2(Be){return 2*Be*(1-Be)}function QB3(Be){return(1-Be)*(1-Be)}class Property{constructor(St,Ae,Ee){this.document=St,this.name=Ae,this.value=Ee,this.isNormalizedColor=!1}static empty(St){return new Property(St,"EMPTY","")}split(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:Ae,name:Ee}=this;return compressSpaces(this.getString()).trim().split(St).map(Ce=>new Property(Ae,Ee,Ce))}hasValue(St){var{value:Ae}=this;return Ae!==null&&Ae!==""&&(St||Ae!==0)&&typeof Ae<"u"}isString(St){var{value:Ae}=this,Ee=typeof Ae=="string";return!Ee||!St?Ee:St.test(Ae)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var St=this.getString();switch(!0){case St.endsWith("px"):case/^[0-9]+$/.test(St):return!0;default:return!1}}setValue(St){return this.value=St,this}getValue(St){return typeof St>"u"||this.hasValue()?this.value:St}getNumber(St){if(!this.hasValue())return typeof St>"u"?0:parseFloat(St);var{value:Ae}=this,Ee=parseFloat(Ae);return this.isString(/%$/)&&(Ee/=100),Ee}getString(St){return typeof St>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(St)}getColor(St){var Ae=this.getString(St);return this.isNormalizedColor||(this.isNormalizedColor=!0,Ae=normalizeColor(Ae),this.value=Ae),Ae}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[Ee,Ce]=typeof St=="boolean"?[void 0,St]:[St],{viewPort:_e}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(_e.computeSize("x"),_e.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(_e.computeSize("x"),_e.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*_e.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*_e.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&Ce):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*_e.computeSize(Ee);default:{var Te=this.getNumber();return Ae&&Te<1?Te*_e.computeSize(Ee):Te}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var St=this.getString(),Ae=/#([^)'"]+)/.exec(St);return Ae&&(Ae=Ae[1]),Ae||(Ae=St),this.document.definitions[Ae]}getFillStyleDefinition(St,Ae){var Ee=this.getDefinition();if(!Ee)return null;if(typeof Ee.createGradient=="function")return Ee.createGradient(this.document.ctx,St,Ae);if(typeof Ee.createPattern=="function"){if(Ee.getHrefAttribute().hasValue()){var Ce=Ee.getAttribute("patternTransform");Ee=Ee.getHrefAttribute().getDefinition(),Ce.hasValue()&&Ee.getAttribute("patternTransform",!0).setValue(Ce.value)}return Ee.createPattern(this.document.ctx,St,Ae)}return null}getTextBaseline(){return this.hasValue()?Property.textBaselineMapping[this.getString()]:null}addOpacity(St){for(var Ae=this.getColor(),Ee=Ae.length,Ce=0,_e=0;_e<Ee&&(Ae[_e]===","&&Ce++,Ce!==3);_e++);if(St.hasValue()&&this.isString()&&Ce!==3){var Te=new RGBColor$1(Ae);Te.ok&&(Te.alpha=St.getNumber(),Ae=Te.toRGBA())}return new Property(this.document,this.name,Ae)}}Property.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class ViewPort{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(St,Ae){this.viewPorts.push({width:St,height:Ae})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:St}=this;return St[St.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(St){return typeof St=="number"?St:St==="x"?this.width:St==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class Point{constructor(St,Ae){this.x=St,this.y=Ae}static parse(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[Ee=Ae,Ce=Ae]=toNumbers(St);return new Point(Ee,Ce)}static parseScale(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[Ee=Ae,Ce=Ee]=toNumbers(St);return new Point(Ee,Ce)}static parsePath(St){for(var Ae=toNumbers(St),Ee=Ae.length,Ce=[],_e=0;_e<Ee;_e+=2)Ce.push(new Point(Ae[_e],Ae[_e+1]));return Ce}angleTo(St){return Math.atan2(St.y-this.y,St.x-this.x)}applyTransform(St){var{x:Ae,y:Ee}=this,Ce=Ae*St[0]+Ee*St[2]+St[4],_e=Ae*St[1]+Ee*St[3]+St[5];this.x=Ce,this.y=_e}}class Mouse{constructor(St){this.screen=St,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:St,onClick:Ae,onMouseMove:Ee}=this,Ce=St.ctx.canvas;Ce.onclick=Ae,Ce.onmousemove=Ee,this.working=!0}}stop(){if(this.working){var St=this.screen.ctx.canvas;this.working=!1,St.onclick=null,St.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:St,events:Ae,eventElements:Ee}=this,{style:Ce}=St.ctx.canvas;Ce&&(Ce.cursor=""),Ae.forEach((_e,Te)=>{for(var{run:Se}=_e,xe=Ee[Te];xe;)Se(xe),xe=xe.parent}),this.events=[],this.eventElements=[]}}checkPath(St,Ae){if(!(!this.working||!Ae)){var{events:Ee,eventElements:Ce}=this;Ee.forEach((_e,Te)=>{var{x:Se,y:xe}=_e;!Ce[Te]&&Ae.isPointInPath&&Ae.isPointInPath(Se,xe)&&(Ce[Te]=St)})}}checkBoundingBox(St,Ae){if(!(!this.working||!Ae)){var{events:Ee,eventElements:Ce}=this;Ee.forEach((_e,Te)=>{var{x:Se,y:xe}=_e;!Ce[Te]&&Ae.isPointInBox(Se,xe)&&(Ce[Te]=St)})}}mapXY(St,Ae){for(var{window:Ee,ctx:Ce}=this.screen,_e=new Point(St,Ae),Te=Ce.canvas;Te;)_e.x-=Te.offsetLeft,_e.y-=Te.offsetTop,Te=Te.offsetParent;return Ee.scrollX&&(_e.x+=Ee.scrollX),Ee.scrollY&&(_e.y+=Ee.scrollY),_e}onClick(St){var{x:Ae,y:Ee}=this.mapXY(St.clientX,St.clientY);this.events.push({type:"onclick",x:Ae,y:Ee,run(Ce){Ce.onClick&&Ce.onClick()}})}onMouseMove(St){var{x:Ae,y:Ee}=this.mapXY(St.clientX,St.clientY);this.events.push({type:"onmousemove",x:Ae,y:Ee,run(Ce){Ce.onMouseMove&&Ce.onMouseMove()}})}}var defaultWindow=typeof window<"u"?window:null,defaultFetch$1=typeof fetch<"u"?fetch.bind(void 0):null;class Screen{constructor(St){var{fetch:Ae=defaultFetch$1,window:Ee=defaultWindow}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=St,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new ViewPort,this.mouse=new Mouse(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=Ee,this.fetch=Ae}wait(St){this.waits.push(St)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var St=this.waits.every(Ae=>Ae());return St&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=St,St}setDefaults(St){St.strokeStyle="rgba(0,0,0,0)",St.lineCap="butt",St.lineJoin="miter",St.miterLimit=4}setViewBox(St){var{document:Ae,ctx:Ee,aspectRatio:Ce,width:_e,desiredWidth:Te,height:Se,desiredHeight:xe,minX:Fe=0,minY:Ue=0,refX:Re,refY:He,clip:$e=!1,clipX:ze=0,clipY:Ve=0}=St,ir=compressSpaces(Ce).replace(/^defer\s/,""),[Ze,ar]=ir.split(" "),cr=Ze||"xMidYMid",Xe=ar||"meet",or=_e/Te,Oe=Se/xe,Je=Math.min(or,Oe),Ye=Math.max(or,Oe),rr=Te,vr=xe;Xe==="meet"&&(rr*=Je,vr*=Je),Xe==="slice"&&(rr*=Ye,vr*=Ye);var er=new Property(Ae,"refX",Re),Ar=new Property(Ae,"refY",He),gr=er.hasValue()&&Ar.hasValue();if(gr&&Ee.translate(-Je*er.getPixels("x"),-Je*Ar.getPixels("y")),$e){var mr=Je*ze,Ur=Je*Ve;Ee.beginPath(),Ee.moveTo(mr,Ur),Ee.lineTo(_e,Ur),Ee.lineTo(_e,Se),Ee.lineTo(mr,Se),Ee.closePath(),Ee.clip()}if(!gr){var Lr=Xe==="meet"&&Je===Oe,Mr=Xe==="slice"&&Ye===Oe,Qr=Xe==="meet"&&Je===or,Dr=Xe==="slice"&&Ye===or;cr.startsWith("xMid")&&(Lr||Mr)&&Ee.translate(_e/2-rr/2,0),cr.endsWith("YMid")&&(Qr||Dr)&&Ee.translate(0,Se/2-vr/2),cr.startsWith("xMax")&&(Lr||Mr)&&Ee.translate(_e-rr,0),cr.endsWith("YMax")&&(Qr||Dr)&&Ee.translate(0,Se-vr)}switch(!0){case cr==="none":Ee.scale(or,Oe);break;case Xe==="meet":Ee.scale(Je,Je);break;case Xe==="slice":Ee.scale(Ye,Ye);break}Ee.translate(-Fe,-Ue)}start(St){var{enableRedraw:Ae=!1,ignoreMouse:Ee=!1,ignoreAnimation:Ce=!1,ignoreDimensions:_e=!1,ignoreClear:Te=!1,forceRedraw:Se,scaleWidth:xe,scaleHeight:Fe,offsetX:Ue,offsetY:Re}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:He,mouse:$e}=this,ze=1e3/He;if(this.frameDuration=ze,this.readyPromise=new Promise(cr=>{this.resolveReady=cr}),this.isReady()&&this.render(St,_e,Te,xe,Fe,Ue,Re),!!Ae){var Ve=Date.now(),ir=Ve,Ze=0,ar=()=>{Ve=Date.now(),Ze=Ve-ir,Ze>=ze&&(ir=Ve-Ze%ze,this.shouldUpdate(Ce,Se)&&(this.render(St,_e,Te,xe,Fe,Ue,Re),$e.runEvents())),this.intervalId=requestAnimationFrame(ar)};Ee||$e.start(),this.intervalId=requestAnimationFrame(ar)}}stop(){this.intervalId&&(requestAnimationFrame.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(St,Ae){if(!St){var{frameDuration:Ee}=this,Ce=this.animations.reduce((_e,Te)=>Te.update(Ee)||_e,!1);if(Ce)return!0}return!!(typeof Ae=="function"&&Ae()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(St,Ae,Ee,Ce,_e,Te,Se){var{CLIENT_WIDTH:xe,CLIENT_HEIGHT:Fe,viewPort:Ue,ctx:Re,isFirstRender:He}=this,$e=Re.canvas;Ue.clear(),$e.width&&$e.height?Ue.setCurrent($e.width,$e.height):Ue.setCurrent(xe,Fe);var ze=St.getStyle("width"),Ve=St.getStyle("height");!Ae&&(He||typeof Ce!="number"&&typeof _e!="number")&&(ze.hasValue()&&($e.width=ze.getPixels("x"),$e.style&&($e.style.width="".concat($e.width,"px"))),Ve.hasValue()&&($e.height=Ve.getPixels("y"),$e.style&&($e.style.height="".concat($e.height,"px"))));var ir=$e.clientWidth||$e.width,Ze=$e.clientHeight||$e.height;if(Ae&&ze.hasValue()&&Ve.hasValue()&&(ir=ze.getPixels("x"),Ze=Ve.getPixels("y")),Ue.setCurrent(ir,Ze),typeof Te=="number"&&St.getAttribute("x",!0).setValue(Te),typeof Se=="number"&&St.getAttribute("y",!0).setValue(Se),typeof Ce=="number"||typeof _e=="number"){var ar=toNumbers(St.getAttribute("viewBox").getString()),cr=0,Xe=0;if(typeof Ce=="number"){var or=St.getStyle("width");or.hasValue()?cr=or.getPixels("x")/Ce:isNaN(ar[2])||(cr=ar[2]/Ce)}if(typeof _e=="number"){var Oe=St.getStyle("height");Oe.hasValue()?Xe=Oe.getPixels("y")/_e:isNaN(ar[3])||(Xe=ar[3]/_e)}cr||(cr=Xe),Xe||(Xe=cr),St.getAttribute("width",!0).setValue(Ce),St.getAttribute("height",!0).setValue(_e);var Je=St.getStyle("transform",!0,!0);Je.setValue("".concat(Je.getString()," scale(").concat(1/cr,", ").concat(1/Xe,")"))}Ee||Re.clearRect(0,0,ir,Ze),St.render(Re),He&&(this.isFirstRender=!1)}}Screen.defaultWindow=defaultWindow,Screen.defaultFetch=defaultFetch$1;var{defaultFetch}=Screen,DefaultDOMParser=typeof DOMParser<"u"?DOMParser:null;class Parser{constructor(){var{fetch:St=defaultFetch,DOMParser:Ae=DefaultDOMParser}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=St,this.DOMParser=Ae}parse(St){var Ae=this;return _asyncToGenerator(function*(){return St.startsWith("<")?Ae.parseFromString(St):Ae.load(St)})()}parseFromString(St){var Ae=new this.DOMParser;try{return this.checkDocument(Ae.parseFromString(St,"image/svg+xml"))}catch{return this.checkDocument(Ae.parseFromString(St,"text/xml"))}}checkDocument(St){var Ae=St.getElementsByTagName("parsererror")[0];if(Ae)throw new Error(Ae.textContent);return St}load(St){var Ae=this;return _asyncToGenerator(function*(){var Ee=yield Ae.fetch(St),Ce=yield Ee.text();return Ae.parseFromString(Ce)})()}}class Translate{constructor(St,Ae){this.type="translate",this.point=null,this.point=Point.parse(Ae)}apply(St){var{x:Ae,y:Ee}=this.point;St.translate(Ae||0,Ee||0)}unapply(St){var{x:Ae,y:Ee}=this.point;St.translate(-1*Ae||0,-1*Ee||0)}applyToPoint(St){var{x:Ae,y:Ee}=this.point;St.applyTransform([1,0,0,1,Ae||0,Ee||0])}}class Rotate{constructor(St,Ae,Ee){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var Ce=toNumbers(Ae);this.angle=new Property(St,"angle",Ce[0]),this.originX=Ee[0],this.originY=Ee[1],this.cx=Ce[1]||0,this.cy=Ce[2]||0}apply(St){var{cx:Ae,cy:Ee,originX:Ce,originY:_e,angle:Te}=this,Se=Ae+Ce.getPixels("x"),xe=Ee+_e.getPixels("y");St.translate(Se,xe),St.rotate(Te.getRadians()),St.translate(-Se,-xe)}unapply(St){var{cx:Ae,cy:Ee,originX:Ce,originY:_e,angle:Te}=this,Se=Ae+Ce.getPixels("x"),xe=Ee+_e.getPixels("y");St.translate(Se,xe),St.rotate(-1*Te.getRadians()),St.translate(-Se,-xe)}applyToPoint(St){var{cx:Ae,cy:Ee,angle:Ce}=this,_e=Ce.getRadians();St.applyTransform([1,0,0,1,Ae||0,Ee||0]),St.applyTransform([Math.cos(_e),Math.sin(_e),-Math.sin(_e),Math.cos(_e),0,0]),St.applyTransform([1,0,0,1,-Ae||0,-Ee||0])}}class Scale{constructor(St,Ae,Ee){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var Ce=Point.parseScale(Ae);(Ce.x===0||Ce.y===0)&&(Ce.x=PSEUDO_ZERO,Ce.y=PSEUDO_ZERO),this.scale=Ce,this.originX=Ee[0],this.originY=Ee[1]}apply(St){var{scale:{x:Ae,y:Ee},originX:Ce,originY:_e}=this,Te=Ce.getPixels("x"),Se=_e.getPixels("y");St.translate(Te,Se),St.scale(Ae,Ee||Ae),St.translate(-Te,-Se)}unapply(St){var{scale:{x:Ae,y:Ee},originX:Ce,originY:_e}=this,Te=Ce.getPixels("x"),Se=_e.getPixels("y");St.translate(Te,Se),St.scale(1/Ae,1/Ee||Ae),St.translate(-Te,-Se)}applyToPoint(St){var{x:Ae,y:Ee}=this.scale;St.applyTransform([Ae||0,0,0,Ee||0,0,0])}}class Matrix{constructor(St,Ae,Ee){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=toNumbers(Ae),this.originX=Ee[0],this.originY=Ee[1]}apply(St){var{originX:Ae,originY:Ee,matrix:Ce}=this,_e=Ae.getPixels("x"),Te=Ee.getPixels("y");St.translate(_e,Te),St.transform(Ce[0],Ce[1],Ce[2],Ce[3],Ce[4],Ce[5]),St.translate(-_e,-Te)}unapply(St){var{originX:Ae,originY:Ee,matrix:Ce}=this,_e=Ce[0],Te=Ce[2],Se=Ce[4],xe=Ce[1],Fe=Ce[3],Ue=Ce[5],Re=0,He=0,$e=1,ze=1/(_e*(Fe*$e-Ue*He)-Te*(xe*$e-Ue*Re)+Se*(xe*He-Fe*Re)),Ve=Ae.getPixels("x"),ir=Ee.getPixels("y");St.translate(Ve,ir),St.transform(ze*(Fe*$e-Ue*He),ze*(Ue*Re-xe*$e),ze*(Se*He-Te*$e),ze*(_e*$e-Se*Re),ze*(Te*Ue-Se*Fe),ze*(Se*xe-_e*Ue)),St.translate(-Ve,-ir)}applyToPoint(St){St.applyTransform(this.matrix)}}class Skew extends Matrix{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="skew",this.angle=null,this.angle=new Property(St,"angle",Ae)}}class SkewX extends Skew{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class SkewY extends Skew{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function parseTransforms(Be){return compressSpaces(Be).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function parseTransform(Be){var[St,Ae]=Be.split("(");return[St.trim(),Ae.trim().replace(")","")]}class Transform{constructor(St,Ae,Ee){this.document=St,this.transforms=[];var Ce=parseTransforms(Ae);Ce.forEach(_e=>{if(_e!=="none"){var[Te,Se]=parseTransform(_e),xe=Transform.transformTypes[Te];typeof xe<"u"&&this.transforms.push(new xe(this.document,Se,Ee))}})}static fromElement(St,Ae){var Ee=Ae.getStyle("transform",!1,!0),[Ce,_e=Ce]=Ae.getStyle("transform-origin",!1,!0).split(),Te=[Ce,_e];return Ee.hasValue()?new Transform(St,Ee.getString(),Te):null}apply(St){for(var{transforms:Ae}=this,Ee=Ae.length,Ce=0;Ce<Ee;Ce++)Ae[Ce].apply(St)}unapply(St){for(var{transforms:Ae}=this,Ee=Ae.length,Ce=Ee-1;Ce>=0;Ce--)Ae[Ce].unapply(St)}applyToPoint(St){for(var{transforms:Ae}=this,Ee=Ae.length,Ce=0;Ce<Ee;Ce++)Ae[Ce].applyToPoint(St)}}Transform.transformTypes={translate:Translate,rotate:Rotate,scale:Scale,matrix:Matrix,skewX:SkewX,skewY:SkewY};class Element{constructor(St,Ae){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=St,this.node=Ae,this.captureTextNodes=Ee,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!Ae||Ae.nodeType!==1)){if(Array.from(Ae.attributes).forEach(Se=>{var xe=normalizeAttributeName(Se.nodeName);this.attributes[xe]=new Property(St,xe,Se.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var Ce=this.getAttribute("style").getString().split(";").map(Se=>Se.trim());Ce.forEach(Se=>{if(Se){var[xe,Fe]=Se.split(":").map(Ue=>Ue.trim());this.styles[xe]=new Property(St,xe,Fe)}})}var{definitions:_e}=St,Te=this.getAttribute("id");Te.hasValue()&&(_e[Te.getString()]||(_e[Te.getString()]=this)),Array.from(Ae.childNodes).forEach(Se=>{if(Se.nodeType===1)this.addChild(Se);else if(Ee&&(Se.nodeType===3||Se.nodeType===4)){var xe=St.createTextNode(Se);xe.getText().length>0&&this.addChild(xe)}})}}getAttribute(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ee=this.attributes[St];if(!Ee&&Ae){var Ce=new Property(this.document,St,"");return this.attributes[St]=Ce,Ce}return Ee||Property.empty(this.document)}getHrefAttribute(){for(var St in this.attributes)if(St==="href"||St.endsWith(":href"))return this.attributes[St];return Property.empty(this.document)}getStyle(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ce=this.styles[St];if(Ce)return Ce;var _e=this.getAttribute(St);if(_e!=null&&_e.hasValue())return this.styles[St]=_e,_e;if(!Ee){var{parent:Te}=this;if(Te){var Se=Te.getStyle(St);if(Se!=null&&Se.hasValue())return Se}}if(Ae){var xe=new Property(this.document,St,"");return this.styles[St]=xe,xe}return Ce||Property.empty(this.document)}render(St){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(St.save(),this.getStyle("mask").hasValue()){var Ae=this.getStyle("mask").getDefinition();Ae&&(this.applyEffects(St),Ae.apply(St,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var Ee=this.getStyle("filter").getDefinition();Ee&&(this.applyEffects(St),Ee.apply(St,this))}else this.setContext(St),this.renderChildren(St),this.clearContext(St);St.restore()}}setContext(St){}applyEffects(St){var Ae=Transform.fromElement(this.document,this);Ae&&Ae.apply(St);var Ee=this.getStyle("clip-path",!1,!0);if(Ee.hasValue()){var Ce=Ee.getDefinition();Ce&&Ce.apply(St)}}clearContext(St){}renderChildren(St){this.children.forEach(Ae=>{Ae.render(St)})}addChild(St){var Ae=St instanceof Element?St:this.document.createElement(St);Ae.parent=this,Element.ignoreChildTypes.includes(Ae.type)||this.children.push(Ae)}matchesSelector(St){var Ae,{node:Ee}=this;if(typeof Ee.matches=="function")return Ee.matches(St);var Ce=(Ae=Ee.getAttribute)===null||Ae===void 0?void 0:Ae.call(Ee,"class");return!Ce||Ce===""?!1:Ce.split(" ").some(_e=>".".concat(_e)===St)}addStylesFromStyleDefinition(){var{styles:St,stylesSpecificity:Ae}=this.document;for(var Ee in St)if(!Ee.startsWith("@")&&this.matchesSelector(Ee)){var Ce=St[Ee],_e=Ae[Ee];if(Ce)for(var Te in Ce){var Se=this.stylesSpecificity[Te];typeof Se>"u"&&(Se="000"),_e>=Se&&(this.styles[Te]=Ce[Te],this.stylesSpecificity[Te]=_e)}}}removeStyles(St,Ae){var Ee=Ae.reduce((Ce,_e)=>{var Te=St.getStyle(_e);if(!Te.hasValue())return Ce;var Se=Te.getString();return Te.setValue(""),[...Ce,[_e,Se]]},[]);return Ee}restoreStyles(St,Ae){Ae.forEach(Ee=>{var[Ce,_e]=Ee;St.getStyle(Ce,!0).setValue(_e)})}isFirstChild(){var St;return((St=this.parent)===null||St===void 0?void 0:St.children.indexOf(this))===0}}Element.ignoreChildTypes=["title"];class UnknownElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee)}}function wrapFontFamily(Be){var St=Be.trim();return/^('|")/.test(St)?St:'"'.concat(St,'"')}function prepareFontFamily(Be){return typeof process>"u"?Be:Be.trim().split(",").map(wrapFontFamily).join(",")}function prepareFontStyle(Be){if(!Be)return"";var St=Be.trim().toLowerCase();switch(St){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return St;default:return/^oblique\s+(-|)\d+deg$/.test(St)?St:""}}function prepareFontWeight(Be){if(!Be)return"";var St=Be.trim().toLowerCase();switch(St){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return St;default:return/^[\d.]+$/.test(St)?St:""}}class Font{constructor(St,Ae,Ee,Ce,_e,Te){var Se=Te?typeof Te=="string"?Font.parse(Te):Te:{};this.fontFamily=_e||Se.fontFamily,this.fontSize=Ce||Se.fontSize,this.fontStyle=St||Se.fontStyle,this.fontWeight=Ee||Se.fontWeight,this.fontVariant=Ae||Se.fontVariant}static parse(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Ae=arguments.length>1?arguments[1]:void 0,Ee="",Ce="",_e="",Te="",Se="",xe=compressSpaces(St).trim().split(" "),Fe={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return xe.forEach(Ue=>{switch(!0){case(!Fe.fontStyle&&Font.styles.includes(Ue)):Ue!=="inherit"&&(Ee=Ue),Fe.fontStyle=!0;break;case(!Fe.fontVariant&&Font.variants.includes(Ue)):Ue!=="inherit"&&(Ce=Ue),Fe.fontStyle=!0,Fe.fontVariant=!0;break;case(!Fe.fontWeight&&Font.weights.includes(Ue)):Ue!=="inherit"&&(_e=Ue),Fe.fontStyle=!0,Fe.fontVariant=!0,Fe.fontWeight=!0;break;case!Fe.fontSize:Ue!=="inherit"&&([Te]=Ue.split("/")),Fe.fontStyle=!0,Fe.fontVariant=!0,Fe.fontWeight=!0,Fe.fontSize=!0;break;default:Ue!=="inherit"&&(Se+=Ue)}}),new Font(Ee,Ce,_e,Te,Se,Ae)}toString(){return[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,prepareFontFamily(this.fontFamily)].join(" ").trim()}}Font.styles="normal|italic|oblique|inherit",Font.variants="normal|small-caps|inherit",Font.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class BoundingBox{constructor(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,Ce=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=St,this.y1=Ae,this.x2=Ee,this.y2=Ce,this.addPoint(St,Ae),this.addPoint(Ee,Ce)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(St,Ae){typeof St<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=St,this.x2=St),St<this.x1&&(this.x1=St),St>this.x2&&(this.x2=St)),typeof Ae<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=Ae,this.y2=Ae),Ae<this.y1&&(this.y1=Ae),Ae>this.y2&&(this.y2=Ae))}addX(St){this.addPoint(St,null)}addY(St){this.addPoint(null,St)}addBoundingBox(St){if(St){var{x1:Ae,y1:Ee,x2:Ce,y2:_e}=St;this.addPoint(Ae,Ee),this.addPoint(Ce,_e)}}sumCubic(St,Ae,Ee,Ce,_e){return Math.pow(1-St,3)*Ae+3*Math.pow(1-St,2)*St*Ee+3*(1-St)*Math.pow(St,2)*Ce+Math.pow(St,3)*_e}bezierCurveAdd(St,Ae,Ee,Ce,_e){var Te=6*Ae-12*Ee+6*Ce,Se=-3*Ae+9*Ee-9*Ce+3*_e,xe=3*Ee-3*Ae;if(Se===0){if(Te===0)return;var Fe=-xe/Te;0<Fe&&Fe<1&&(St?this.addX(this.sumCubic(Fe,Ae,Ee,Ce,_e)):this.addY(this.sumCubic(Fe,Ae,Ee,Ce,_e)));return}var Ue=Math.pow(Te,2)-4*xe*Se;if(!(Ue<0)){var Re=(-Te+Math.sqrt(Ue))/(2*Se);0<Re&&Re<1&&(St?this.addX(this.sumCubic(Re,Ae,Ee,Ce,_e)):this.addY(this.sumCubic(Re,Ae,Ee,Ce,_e)));var He=(-Te-Math.sqrt(Ue))/(2*Se);0<He&&He<1&&(St?this.addX(this.sumCubic(He,Ae,Ee,Ce,_e)):this.addY(this.sumCubic(He,Ae,Ee,Ce,_e)))}}addBezierCurve(St,Ae,Ee,Ce,_e,Te,Se,xe){this.addPoint(St,Ae),this.addPoint(Se,xe),this.bezierCurveAdd(!0,St,Ee,_e,Se),this.bezierCurveAdd(!1,Ae,Ce,Te,xe)}addQuadraticCurve(St,Ae,Ee,Ce,_e,Te){var Se=St+.6666666666666666*(Ee-St),xe=Ae+2/3*(Ce-Ae),Fe=Se+1/3*(_e-St),Ue=xe+1/3*(Te-Ae);this.addBezierCurve(St,Ae,Se,Fe,xe,Ue,_e,Te)}isPointInBox(St,Ae){var{x1:Ee,y1:Ce,x2:_e,y2:Te}=this;return Ee<=St&&St<=_e&&Ce<=Ae&&Ae<=Te}}class PathParser extends _$1{constructor(St){super(St.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Point(0,0),this.control=new Point(0,0),this.current=new Point(0,0),this.points=[],this.angles=[]}isEnd(){var{i:St,commands:Ae}=this;return St>=Ae.length-1}next(){var St=this.commands[++this.i];return this.previousCommand=this.command,this.command=St,St}getPoint(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",Ee=new Point(this.command[St],this.command[Ae]);return this.makeAbsolute(Ee)}getAsControlPoint(St,Ae){var Ee=this.getPoint(St,Ae);return this.control=Ee,Ee}getAsCurrentPoint(St,Ae){var Ee=this.getPoint(St,Ae);return this.current=Ee,Ee}getReflectedControlPoint(){var St=this.previousCommand.type;if(St!==_$1.CURVE_TO&&St!==_$1.SMOOTH_CURVE_TO&&St!==_$1.QUAD_TO&&St!==_$1.SMOOTH_QUAD_TO)return this.current;var{current:{x:Ae,y:Ee},control:{x:Ce,y:_e}}=this,Te=new Point(2*Ae-Ce,2*Ee-_e);return Te}makeAbsolute(St){if(this.command.relative){var{x:Ae,y:Ee}=this.current;St.x+=Ae,St.y+=Ee}return St}addMarker(St,Ae,Ee){var{points:Ce,angles:_e}=this;Ee&&_e.length>0&&!_e[_e.length-1]&&(_e[_e.length-1]=Ce[Ce.length-1].angleTo(Ee)),this.addMarkerAngle(St,Ae?Ae.angleTo(St):null)}addMarkerAngle(St,Ae){this.points.push(St),this.angles.push(Ae)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:St}=this,Ae=St.length,Ee=0;Ee<Ae;Ee++)if(!St[Ee]){for(var Ce=Ee+1;Ce<Ae;Ce++)if(St[Ce]){St[Ee]=St[Ce];break}}return St}}class RenderedElement extends Element{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var St=1,Ae=this;Ae;){var Ee=Ae.getStyle("opacity",!1,!0);Ee.hasValue(!0)&&(St*=Ee.getNumber()),Ae=Ae.parent}return St}setContext(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!Ae){var Ee=this.getStyle("fill"),Ce=this.getStyle("fill-opacity"),_e=this.getStyle("stroke"),Te=this.getStyle("stroke-opacity");if(Ee.isUrlDefinition()){var Se=Ee.getFillStyleDefinition(this,Ce);Se&&(St.fillStyle=Se)}else if(Ee.hasValue()){Ee.getString()==="currentColor"&&Ee.setValue(this.getStyle("color").getColor());var xe=Ee.getColor();xe!=="inherit"&&(St.fillStyle=xe==="none"?"rgba(0,0,0,0)":xe)}if(Ce.hasValue()){var Fe=new Property(this.document,"fill",St.fillStyle).addOpacity(Ce).getColor();St.fillStyle=Fe}if(_e.isUrlDefinition()){var Ue=_e.getFillStyleDefinition(this,Te);Ue&&(St.strokeStyle=Ue)}else if(_e.hasValue()){_e.getString()==="currentColor"&&_e.setValue(this.getStyle("color").getColor());var Re=_e.getString();Re!=="inherit"&&(St.strokeStyle=Re==="none"?"rgba(0,0,0,0)":Re)}if(Te.hasValue()){var He=new Property(this.document,"stroke",St.strokeStyle).addOpacity(Te).getString();St.strokeStyle=He}var $e=this.getStyle("stroke-width");if($e.hasValue()){var ze=$e.getPixels();St.lineWidth=ze||PSEUDO_ZERO}var Ve=this.getStyle("stroke-linecap"),ir=this.getStyle("stroke-linejoin"),Ze=this.getStyle("stroke-miterlimit"),ar=this.getStyle("stroke-dasharray"),cr=this.getStyle("stroke-dashoffset");if(Ve.hasValue()&&(St.lineCap=Ve.getString()),ir.hasValue()&&(St.lineJoin=ir.getString()),Ze.hasValue()&&(St.miterLimit=Ze.getNumber()),ar.hasValue()&&ar.getString()!=="none"){var Xe=toNumbers(ar.getString());typeof St.setLineDash<"u"?St.setLineDash(Xe):typeof St.webkitLineDash<"u"?St.webkitLineDash=Xe:typeof St.mozDash<"u"&&!(Xe.length===1&&Xe[0]===0)&&(St.mozDash=Xe);var or=cr.getPixels();typeof St.lineDashOffset<"u"?St.lineDashOffset=or:typeof St.webkitLineDashOffset<"u"?St.webkitLineDashOffset=or:typeof St.mozDashOffset<"u"&&(St.mozDashOffset=or)}}if(this.modifiedEmSizeStack=!1,typeof St.font<"u"){var Oe=this.getStyle("font"),Je=this.getStyle("font-style"),Ye=this.getStyle("font-variant"),rr=this.getStyle("font-weight"),vr=this.getStyle("font-size"),er=this.getStyle("font-family"),Ar=new Font(Je.getString(),Ye.getString(),rr.getString(),vr.hasValue()?"".concat(vr.getPixels(!0),"px"):"",er.getString(),Font.parse(Oe.getString(),St.font));Je.setValue(Ar.fontStyle),Ye.setValue(Ar.fontVariant),rr.setValue(Ar.fontWeight),vr.setValue(Ar.fontSize),er.setValue(Ar.fontFamily),St.font=Ar.toString(),vr.isPixels()&&(this.document.emSize=vr.getPixels(),this.modifiedEmSizeStack=!0)}Ae||(this.applyEffects(St),St.globalAlpha=this.calculateOpacity())}clearContext(St){super.clearContext(St),this.modifiedEmSizeStack&&this.document.popEmSize()}}class PathElement extends RenderedElement{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="path",this.pathParser=null,this.pathParser=new PathParser(this.getAttribute("d").getString())}path(St){var{pathParser:Ae}=this,Ee=new BoundingBox;for(Ae.reset(),St&&St.beginPath();!Ae.isEnd();)switch(Ae.next().type){case PathParser.MOVE_TO:this.pathM(St,Ee);break;case PathParser.LINE_TO:this.pathL(St,Ee);break;case PathParser.HORIZ_LINE_TO:this.pathH(St,Ee);break;case PathParser.VERT_LINE_TO:this.pathV(St,Ee);break;case PathParser.CURVE_TO:this.pathC(St,Ee);break;case PathParser.SMOOTH_CURVE_TO:this.pathS(St,Ee);break;case PathParser.QUAD_TO:this.pathQ(St,Ee);break;case PathParser.SMOOTH_QUAD_TO:this.pathT(St,Ee);break;case PathParser.ARC:this.pathA(St,Ee);break;case PathParser.CLOSE_PATH:this.pathZ(St,Ee);break}return Ee}getBoundingBox(St){return this.path()}getMarkers(){var{pathParser:St}=this,Ae=St.getMarkerPoints(),Ee=St.getMarkerAngles(),Ce=Ae.map((_e,Te)=>[_e,Ee[Te]]);return Ce}renderChildren(St){this.path(St),this.document.screen.mouse.checkPath(this,St);var Ae=this.getStyle("fill-rule");St.fillStyle!==""&&(Ae.getString("inherit")!=="inherit"?St.fill(Ae.getString()):St.fill()),St.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(St.save(),St.setTransform(1,0,0,1,0,0),St.stroke(),St.restore()):St.stroke());var Ee=this.getMarkers();if(Ee){var Ce=Ee.length-1,_e=this.getStyle("marker-start"),Te=this.getStyle("marker-mid"),Se=this.getStyle("marker-end");if(_e.isUrlDefinition()){var xe=_e.getDefinition(),[Fe,Ue]=Ee[0];xe.render(St,Fe,Ue)}if(Te.isUrlDefinition())for(var Re=Te.getDefinition(),He=1;He<Ce;He++){var[$e,ze]=Ee[He];Re.render(St,$e,ze)}if(Se.isUrlDefinition()){var Ve=Se.getDefinition(),[ir,Ze]=Ee[Ce];Ve.render(St,ir,Ze)}}}static pathM(St){var Ae=St.getAsCurrentPoint();return St.start=St.current,{point:Ae}}pathM(St,Ae){var{pathParser:Ee}=this,{point:Ce}=PathElement.pathM(Ee),{x:_e,y:Te}=Ce;Ee.addMarker(Ce),Ae.addPoint(_e,Te),St&&St.moveTo(_e,Te)}static pathL(St){var{current:Ae}=St,Ee=St.getAsCurrentPoint();return{current:Ae,point:Ee}}pathL(St,Ae){var{pathParser:Ee}=this,{current:Ce,point:_e}=PathElement.pathL(Ee),{x:Te,y:Se}=_e;Ee.addMarker(_e,Ce),Ae.addPoint(Te,Se),St&&St.lineTo(Te,Se)}static pathH(St){var{current:Ae,command:Ee}=St,Ce=new Point((Ee.relative?Ae.x:0)+Ee.x,Ae.y);return St.current=Ce,{current:Ae,point:Ce}}pathH(St,Ae){var{pathParser:Ee}=this,{current:Ce,point:_e}=PathElement.pathH(Ee),{x:Te,y:Se}=_e;Ee.addMarker(_e,Ce),Ae.addPoint(Te,Se),St&&St.lineTo(Te,Se)}static pathV(St){var{current:Ae,command:Ee}=St,Ce=new Point(Ae.x,(Ee.relative?Ae.y:0)+Ee.y);return St.current=Ce,{current:Ae,point:Ce}}pathV(St,Ae){var{pathParser:Ee}=this,{current:Ce,point:_e}=PathElement.pathV(Ee),{x:Te,y:Se}=_e;Ee.addMarker(_e,Ce),Ae.addPoint(Te,Se),St&&St.lineTo(Te,Se)}static pathC(St){var{current:Ae}=St,Ee=St.getPoint("x1","y1"),Ce=St.getAsControlPoint("x2","y2"),_e=St.getAsCurrentPoint();return{current:Ae,point:Ee,controlPoint:Ce,currentPoint:_e}}pathC(St,Ae){var{pathParser:Ee}=this,{current:Ce,point:_e,controlPoint:Te,currentPoint:Se}=PathElement.pathC(Ee);Ee.addMarker(Se,Te,_e),Ae.addBezierCurve(Ce.x,Ce.y,_e.x,_e.y,Te.x,Te.y,Se.x,Se.y),St&&St.bezierCurveTo(_e.x,_e.y,Te.x,Te.y,Se.x,Se.y)}static pathS(St){var{current:Ae}=St,Ee=St.getReflectedControlPoint(),Ce=St.getAsControlPoint("x2","y2"),_e=St.getAsCurrentPoint();return{current:Ae,point:Ee,controlPoint:Ce,currentPoint:_e}}pathS(St,Ae){var{pathParser:Ee}=this,{current:Ce,point:_e,controlPoint:Te,currentPoint:Se}=PathElement.pathS(Ee);Ee.addMarker(Se,Te,_e),Ae.addBezierCurve(Ce.x,Ce.y,_e.x,_e.y,Te.x,Te.y,Se.x,Se.y),St&&St.bezierCurveTo(_e.x,_e.y,Te.x,Te.y,Se.x,Se.y)}static pathQ(St){var{current:Ae}=St,Ee=St.getAsControlPoint("x1","y1"),Ce=St.getAsCurrentPoint();return{current:Ae,controlPoint:Ee,currentPoint:Ce}}pathQ(St,Ae){var{pathParser:Ee}=this,{current:Ce,controlPoint:_e,currentPoint:Te}=PathElement.pathQ(Ee);Ee.addMarker(Te,_e,_e),Ae.addQuadraticCurve(Ce.x,Ce.y,_e.x,_e.y,Te.x,Te.y),St&&St.quadraticCurveTo(_e.x,_e.y,Te.x,Te.y)}static pathT(St){var{current:Ae}=St,Ee=St.getReflectedControlPoint();St.control=Ee;var Ce=St.getAsCurrentPoint();return{current:Ae,controlPoint:Ee,currentPoint:Ce}}pathT(St,Ae){var{pathParser:Ee}=this,{current:Ce,controlPoint:_e,currentPoint:Te}=PathElement.pathT(Ee);Ee.addMarker(Te,_e,_e),Ae.addQuadraticCurve(Ce.x,Ce.y,_e.x,_e.y,Te.x,Te.y),St&&St.quadraticCurveTo(_e.x,_e.y,Te.x,Te.y)}static pathA(St){var{current:Ae,command:Ee}=St,{rX:Ce,rY:_e,xRot:Te,lArcFlag:Se,sweepFlag:xe}=Ee,Fe=Te*(Math.PI/180),Ue=St.getAsCurrentPoint(),Re=new Point(Math.cos(Fe)*(Ae.x-Ue.x)/2+Math.sin(Fe)*(Ae.y-Ue.y)/2,-Math.sin(Fe)*(Ae.x-Ue.x)/2+Math.cos(Fe)*(Ae.y-Ue.y)/2),He=Math.pow(Re.x,2)/Math.pow(Ce,2)+Math.pow(Re.y,2)/Math.pow(_e,2);He>1&&(Ce*=Math.sqrt(He),_e*=Math.sqrt(He));var $e=(Se===xe?-1:1)*Math.sqrt((Math.pow(Ce,2)*Math.pow(_e,2)-Math.pow(Ce,2)*Math.pow(Re.y,2)-Math.pow(_e,2)*Math.pow(Re.x,2))/(Math.pow(Ce,2)*Math.pow(Re.y,2)+Math.pow(_e,2)*Math.pow(Re.x,2)));isNaN($e)&&($e=0);var ze=new Point($e*Ce*Re.y/_e,$e*-_e*Re.x/Ce),Ve=new Point((Ae.x+Ue.x)/2+Math.cos(Fe)*ze.x-Math.sin(Fe)*ze.y,(Ae.y+Ue.y)/2+Math.sin(Fe)*ze.x+Math.cos(Fe)*ze.y),ir=vectorsAngle([1,0],[(Re.x-ze.x)/Ce,(Re.y-ze.y)/_e]),Ze=[(Re.x-ze.x)/Ce,(Re.y-ze.y)/_e],ar=[(-Re.x-ze.x)/Ce,(-Re.y-ze.y)/_e],cr=vectorsAngle(Ze,ar);return vectorsRatio(Ze,ar)<=-1&&(cr=Math.PI),vectorsRatio(Ze,ar)>=1&&(cr=0),{currentPoint:Ue,rX:Ce,rY:_e,sweepFlag:xe,xAxisRotation:Fe,centp:Ve,a1:ir,ad:cr}}pathA(St,Ae){var{pathParser:Ee}=this,{currentPoint:Ce,rX:_e,rY:Te,sweepFlag:Se,xAxisRotation:xe,centp:Fe,a1:Ue,ad:Re}=PathElement.pathA(Ee),He=1-Se?1:-1,$e=Ue+He*(Re/2),ze=new Point(Fe.x+_e*Math.cos($e),Fe.y+Te*Math.sin($e));if(Ee.addMarkerAngle(ze,$e-He*Math.PI/2),Ee.addMarkerAngle(Ce,$e-He*Math.PI),Ae.addPoint(Ce.x,Ce.y),St&&!isNaN(Ue)&&!isNaN(Re)){var Ve=_e>Te?_e:Te,ir=_e>Te?1:_e/Te,Ze=_e>Te?Te/_e:1;St.translate(Fe.x,Fe.y),St.rotate(xe),St.scale(ir,Ze),St.arc(0,0,Ve,Ue,Ue+Re,!!(1-Se)),St.scale(1/ir,1/Ze),St.rotate(-xe),St.translate(-Fe.x,-Fe.y)}}static pathZ(St){St.current=St.start}pathZ(St,Ae){PathElement.pathZ(this.pathParser),St&&Ae.x1!==Ae.x2&&Ae.y1!==Ae.y2&&St.closePath()}}class GlyphElement extends PathElement{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class TextElement extends RenderedElement{constructor(St,Ae,Ee){super(St,Ae,new.target===TextElement?!0:Ee),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(St,Ae);var Ee=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();Ee&&(St.textBaseline=Ee)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(St){if(this.type!=="text")return this.getTElementBoundingBox(St);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(St);var Ae=null;return this.children.forEach((Ee,Ce)=>{var _e=this.getChildBoundingBox(St,this,this,Ce);Ae?Ae.addBoundingBox(_e):Ae=_e}),Ae}getFontSize(){var{document:St,parent:Ae}=this,Ee=Font.parse(St.ctx.font).fontSize,Ce=Ae.getStyle("font-size").getNumber(Ee);return Ce}getTElementBoundingBox(St){var Ae=this.getFontSize();return new BoundingBox(this.x,this.y-Ae,this.x+this.measureText(St),this.y)}getGlyph(St,Ae,Ee){var Ce=Ae[Ee],_e=null;if(St.isArabic){var Te=Ae.length,Se=Ae[Ee-1],xe=Ae[Ee+1],Fe="isolated";if((Ee===0||Se===" ")&&Ee<Te-1&&xe!==" "&&(Fe="terminal"),Ee>0&&Se!==" "&&Ee<Te-1&&xe!==" "&&(Fe="medial"),Ee>0&&Se!==" "&&(Ee===Te-1||xe===" ")&&(Fe="initial"),typeof St.glyphs[Ce]<"u"){var Ue=St.glyphs[Ce];_e=Ue instanceof GlyphElement?Ue:Ue[Fe]}}else _e=St.glyphs[Ce];return _e||(_e=St.missingGlyph),_e}getText(){return""}getTextFromNode(St){var Ae=St||this.node,Ee=Array.from(Ae.parentNode.childNodes),Ce=Ee.indexOf(Ae),_e=Ee.length-1,Te=compressSpaces(Ae.textContent||"");return Ce===0&&(Te=trimLeft(Te)),Ce===_e&&(Te=trimRight(Te)),Te}renderChildren(St){if(this.type!=="text"){this.renderTElementChildren(St);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(St),this.children.forEach((Ee,Ce)=>{this.renderChild(St,this,this,Ce)});var{mouse:Ae}=this.document.screen;Ae.isWorking()&&Ae.checkBoundingBox(this,this.getBoundingBox(St))}renderTElementChildren(St){var{document:Ae,parent:Ee}=this,Ce=this.getText(),_e=Ee.getStyle("font-family").getDefinition();if(_e){for(var{unitsPerEm:Te}=_e.fontFace,Se=Font.parse(Ae.ctx.font),xe=Ee.getStyle("font-size").getNumber(Se.fontSize),Fe=Ee.getStyle("font-style").getString(Se.fontStyle),Ue=xe/Te,Re=_e.isRTL?Ce.split("").reverse().join(""):Ce,He=toNumbers(Ee.getAttribute("dx").getString()),$e=Re.length,ze=0;ze<$e;ze++){var Ve=this.getGlyph(_e,Re,ze);St.translate(this.x,this.y),St.scale(Ue,-Ue);var ir=St.lineWidth;St.lineWidth=St.lineWidth*Te/xe,Fe==="italic"&&St.transform(1,0,.4,1,0,0),Ve.render(St),Fe==="italic"&&St.transform(1,0,-.4,1,0,0),St.lineWidth=ir,St.scale(1/Ue,-1/Ue),St.translate(-this.x,-this.y),this.x+=xe*(Ve.horizAdvX||_e.horizAdvX)/Te,typeof He[ze]<"u"&&!isNaN(He[ze])&&(this.x+=He[ze])}return}var{x:Ze,y:ar}=this;St.fillStyle&&St.fillText(Ce,Ze,ar),St.strokeStyle&&St.strokeText(Ce,Ze,ar)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var St=this.leafTexts[this.textChunkStart],Ae=St.getStyle("text-anchor").getString("start"),Ee=!1,Ce=0;Ae==="start"&&!Ee||Ae==="end"&&Ee?Ce=St.x-this.minX:Ae==="end"&&!Ee||Ae==="start"&&Ee?Ce=St.x-this.maxX:Ce=St.x-(this.minX+this.maxX)/2;for(var _e=this.textChunkStart;_e<this.leafTexts.length;_e++)this.leafTexts[_e].x+=Ce;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(St){this.children.forEach((Ae,Ee)=>{this.adjustChildCoordinatesRecursiveCore(St,this,this,Ee)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(St,Ae,Ee,Ce){var _e=Ee.children[Ce];_e.children.length>0?_e.children.forEach((Te,Se)=>{Ae.adjustChildCoordinatesRecursiveCore(St,Ae,_e,Se)}):this.adjustChildCoordinates(St,Ae,Ee,Ce)}adjustChildCoordinates(St,Ae,Ee,Ce){var _e=Ee.children[Ce];if(typeof _e.measureText!="function")return _e;St.save(),_e.setContext(St,!0);var Te=_e.getAttribute("x"),Se=_e.getAttribute("y"),xe=_e.getAttribute("dx"),Fe=_e.getAttribute("dy"),Ue=_e.getStyle("font-family").getDefinition(),Re=!!Ue&&Ue.isRTL;Ce===0&&(Te.hasValue()||Te.setValue(_e.getInheritedAttribute("x")),Se.hasValue()||Se.setValue(_e.getInheritedAttribute("y")),xe.hasValue()||xe.setValue(_e.getInheritedAttribute("dx")),Fe.hasValue()||Fe.setValue(_e.getInheritedAttribute("dy")));var He=_e.measureText(St);return Re&&(Ae.x-=He),Te.hasValue()?(Ae.applyAnchoring(),_e.x=Te.getPixels("x"),xe.hasValue()&&(_e.x+=xe.getPixels("x"))):(xe.hasValue()&&(Ae.x+=xe.getPixels("x")),_e.x=Ae.x),Ae.x=_e.x,Re||(Ae.x+=He),Se.hasValue()?(_e.y=Se.getPixels("y"),Fe.hasValue()&&(_e.y+=Fe.getPixels("y"))):(Fe.hasValue()&&(Ae.y+=Fe.getPixels("y")),_e.y=Ae.y),Ae.y=_e.y,Ae.leafTexts.push(_e),Ae.minX=Math.min(Ae.minX,_e.x,_e.x+He),Ae.maxX=Math.max(Ae.maxX,_e.x,_e.x+He),_e.clearContext(St),St.restore(),_e}getChildBoundingBox(St,Ae,Ee,Ce){var _e=Ee.children[Ce];if(typeof _e.getBoundingBox!="function")return null;var Te=_e.getBoundingBox(St);return Te?(_e.children.forEach((Se,xe)=>{var Fe=Ae.getChildBoundingBox(St,Ae,_e,xe);Te.addBoundingBox(Fe)}),Te):null}renderChild(St,Ae,Ee,Ce){var _e=Ee.children[Ce];_e.render(St),_e.children.forEach((Te,Se)=>{Ae.renderChild(St,Ae,_e,Se)})}measureText(St){var{measureCache:Ae}=this;if(~Ae)return Ae;var Ee=this.getText(),Ce=this.measureTargetText(St,Ee);return this.measureCache=Ce,Ce}measureTargetText(St,Ae){if(!Ae.length)return 0;var{parent:Ee}=this,Ce=Ee.getStyle("font-family").getDefinition();if(Ce){for(var _e=this.getFontSize(),Te=Ce.isRTL?Ae.split("").reverse().join(""):Ae,Se=toNumbers(Ee.getAttribute("dx").getString()),xe=Te.length,Fe=0,Ue=0;Ue<xe;Ue++){var Re=this.getGlyph(Ce,Te,Ue);Fe+=(Re.horizAdvX||Ce.horizAdvX)*_e/Ce.fontFace.unitsPerEm,typeof Se[Ue]<"u"&&!isNaN(Se[Ue])&&(Fe+=Se[Ue])}return Fe}if(!St.measureText)return Ae.length*10;St.save(),this.setContext(St,!0);var{width:He}=St.measureText(Ae);return this.clearContext(St),St.restore(),He}getInheritedAttribute(St){for(var Ae=this;Ae instanceof TextElement&&Ae.isFirstChild();){var Ee=Ae.parent.getAttribute(St);if(Ee.hasValue(!0))return Ee.getValue("0");Ae=Ae.parent}return null}}class TSpanElement extends TextElement{constructor(St,Ae,Ee){super(St,Ae,new.target===TSpanElement?!0:Ee),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class TextNode extends TSpanElement{constructor(){super(...arguments),this.type="textNode"}}let SVGElement$1=class extends RenderedElement{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(St){var Ae,{document:Ee}=this,{screen:Ce,window:_e}=Ee,Te=St.canvas;if(Ce.setDefaults(St),Te.style&&typeof St.font<"u"&&_e&&typeof _e.getComputedStyle<"u"){St.font=_e.getComputedStyle(Te).getPropertyValue("font");var Se=new Property(Ee,"fontSize",Font.parse(St.font).fontSize);Se.hasValue()&&(Ee.rootEmSize=Se.getPixels("y"),Ee.emSize=Ee.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:xe,height:Fe}=Ce.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var Ue=this.getAttribute("refX"),Re=this.getAttribute("refY"),He=this.getAttribute("viewBox"),$e=He.hasValue()?toNumbers(He.getString()):null,ze=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",Ve=0,ir=0,Ze=0,ar=0;$e&&(Ve=$e[0],ir=$e[1]),this.root||(xe=this.getStyle("width").getPixels("x"),Fe=this.getStyle("height").getPixels("y"),this.type==="marker"&&(Ze=Ve,ar=ir,Ve=0,ir=0)),Ce.viewPort.setCurrent(xe,Fe),this.node&&(!this.parent||((Ae=this.node.parentNode)===null||Ae===void 0?void 0:Ae.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(St),St.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),$e&&(xe=$e[2],Fe=$e[3]),Ee.setViewBox({ctx:St,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:Ce.viewPort.width,desiredWidth:xe,height:Ce.viewPort.height,desiredHeight:Fe,minX:Ve,minY:ir,refX:Ue.getValue(),refY:Re.getValue(),clip:ze,clipX:Ze,clipY:ar}),$e&&(Ce.viewPort.removeCurrent(),Ce.viewPort.setCurrent(xe,Fe))}clearContext(St){super.clearContext(St),this.document.screen.viewPort.removeCurrent()}resize(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:St,Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ce=this.getAttribute("width",!0),_e=this.getAttribute("height",!0),Te=this.getAttribute("viewBox"),Se=this.getAttribute("style"),xe=Ce.getNumber(0),Fe=_e.getNumber(0);if(Ee)if(typeof Ee=="string")this.getAttribute("preserveAspectRatio",!0).setValue(Ee);else{var Ue=this.getAttribute("preserveAspectRatio");Ue.hasValue()&&Ue.setValue(Ue.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(Ce.setValue(St),_e.setValue(Ae),Te.hasValue()||Te.setValue("0 0 ".concat(xe||St," ").concat(Fe||Ae)),Se.hasValue()){var Re=this.getStyle("width"),He=this.getStyle("height");Re.hasValue()&&Re.setValue("".concat(St,"px")),He.hasValue()&&He.setValue("".concat(Ae,"px"))}}};class RectElement extends PathElement{constructor(){super(...arguments),this.type="rect"}path(St){var Ae=this.getAttribute("x").getPixels("x"),Ee=this.getAttribute("y").getPixels("y"),Ce=this.getStyle("width",!1,!0).getPixels("x"),_e=this.getStyle("height",!1,!0).getPixels("y"),Te=this.getAttribute("rx"),Se=this.getAttribute("ry"),xe=Te.getPixels("x"),Fe=Se.getPixels("y");if(Te.hasValue()&&!Se.hasValue()&&(Fe=xe),Se.hasValue()&&!Te.hasValue()&&(xe=Fe),xe=Math.min(xe,Ce/2),Fe=Math.min(Fe,_e/2),St){var Ue=4*((Math.sqrt(2)-1)/3);St.beginPath(),_e>0&&Ce>0&&(St.moveTo(Ae+xe,Ee),St.lineTo(Ae+Ce-xe,Ee),St.bezierCurveTo(Ae+Ce-xe+Ue*xe,Ee,Ae+Ce,Ee+Fe-Ue*Fe,Ae+Ce,Ee+Fe),St.lineTo(Ae+Ce,Ee+_e-Fe),St.bezierCurveTo(Ae+Ce,Ee+_e-Fe+Ue*Fe,Ae+Ce-xe+Ue*xe,Ee+_e,Ae+Ce-xe,Ee+_e),St.lineTo(Ae+xe,Ee+_e),St.bezierCurveTo(Ae+xe-Ue*xe,Ee+_e,Ae,Ee+_e-Fe+Ue*Fe,Ae,Ee+_e-Fe),St.lineTo(Ae,Ee+Fe),St.bezierCurveTo(Ae,Ee+Fe-Ue*Fe,Ae+xe-Ue*xe,Ee,Ae+xe,Ee),St.closePath())}return new BoundingBox(Ae,Ee,Ae+Ce,Ee+_e)}getMarkers(){return null}}class CircleElement extends PathElement{constructor(){super(...arguments),this.type="circle"}path(St){var Ae=this.getAttribute("cx").getPixels("x"),Ee=this.getAttribute("cy").getPixels("y"),Ce=this.getAttribute("r").getPixels();return St&&Ce>0&&(St.beginPath(),St.arc(Ae,Ee,Ce,0,Math.PI*2,!1),St.closePath()),new BoundingBox(Ae-Ce,Ee-Ce,Ae+Ce,Ee+Ce)}getMarkers(){return null}}class EllipseElement extends PathElement{constructor(){super(...arguments),this.type="ellipse"}path(St){var Ae=4*((Math.sqrt(2)-1)/3),Ee=this.getAttribute("rx").getPixels("x"),Ce=this.getAttribute("ry").getPixels("y"),_e=this.getAttribute("cx").getPixels("x"),Te=this.getAttribute("cy").getPixels("y");return St&&Ee>0&&Ce>0&&(St.beginPath(),St.moveTo(_e+Ee,Te),St.bezierCurveTo(_e+Ee,Te+Ae*Ce,_e+Ae*Ee,Te+Ce,_e,Te+Ce),St.bezierCurveTo(_e-Ae*Ee,Te+Ce,_e-Ee,Te+Ae*Ce,_e-Ee,Te),St.bezierCurveTo(_e-Ee,Te-Ae*Ce,_e-Ae*Ee,Te-Ce,_e,Te-Ce),St.bezierCurveTo(_e+Ae*Ee,Te-Ce,_e+Ee,Te-Ae*Ce,_e+Ee,Te),St.closePath()),new BoundingBox(_e-Ee,Te-Ce,_e+Ee,Te+Ce)}getMarkers(){return null}}class LineElement extends PathElement{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Point(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Point(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(St){var[{x:Ae,y:Ee},{x:Ce,y:_e}]=this.getPoints();return St&&(St.beginPath(),St.moveTo(Ae,Ee),St.lineTo(Ce,_e)),new BoundingBox(Ae,Ee,Ce,_e)}getMarkers(){var[St,Ae]=this.getPoints(),Ee=St.angleTo(Ae);return[[St,Ee],[Ae,Ee]]}}class PolylineElement extends PathElement{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="polyline",this.points=[],this.points=Point.parsePath(this.getAttribute("points").getString())}path(St){var{points:Ae}=this,[{x:Ee,y:Ce}]=Ae,_e=new BoundingBox(Ee,Ce);return St&&(St.beginPath(),St.moveTo(Ee,Ce)),Ae.forEach(Te=>{var{x:Se,y:xe}=Te;_e.addPoint(Se,xe),St&&St.lineTo(Se,xe)}),_e}getMarkers(){var{points:St}=this,Ae=St.length-1,Ee=[];return St.forEach((Ce,_e)=>{_e!==Ae&&Ee.push([Ce,Ce.angleTo(St[_e+1])])}),Ee.length>0&&Ee.push([St[St.length-1],Ee[Ee.length-1][1]]),Ee}}class PolygonElement extends PolylineElement{constructor(){super(...arguments),this.type="polygon"}path(St){var Ae=super.path(St),[{x:Ee,y:Ce}]=this.points;return St&&(St.lineTo(Ee,Ce),St.closePath()),Ae}}class PatternElement extends Element{constructor(){super(...arguments),this.type="pattern"}createPattern(St,Ae,Ee){var Ce=this.getStyle("width").getPixels("x",!0),_e=this.getStyle("height").getPixels("y",!0),Te=new SVGElement$1(this.document,null);Te.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),Te.attributes.width=new Property(this.document,"width","".concat(Ce,"px")),Te.attributes.height=new Property(this.document,"height","".concat(_e,"px")),Te.attributes.transform=new Property(this.document,"transform",this.getAttribute("patternTransform").getValue()),Te.children=this.children;var Se=this.document.createCanvas(Ce,_e),xe=Se.getContext("2d"),Fe=this.getAttribute("x"),Ue=this.getAttribute("y");Fe.hasValue()&&Ue.hasValue()&&xe.translate(Fe.getPixels("x",!0),Ue.getPixels("y",!0)),Ee.hasValue()?this.styles["fill-opacity"]=Ee:Reflect.deleteProperty(this.styles,"fill-opacity");for(var Re=-1;Re<=1;Re++)for(var He=-1;He<=1;He++)xe.save(),Te.attributes.x=new Property(this.document,"x",Re*Se.width),Te.attributes.y=new Property(this.document,"y",He*Se.height),Te.render(xe),xe.restore();var $e=St.createPattern(Se,"repeat");return $e}}class MarkerElement extends Element{constructor(){super(...arguments),this.type="marker"}render(St,Ae,Ee){if(Ae){var{x:Ce,y:_e}=Ae,Te=this.getAttribute("orient").getString("auto"),Se=this.getAttribute("markerUnits").getString("strokeWidth");St.translate(Ce,_e),Te==="auto"&&St.rotate(Ee),Se==="strokeWidth"&&St.scale(St.lineWidth,St.lineWidth),St.save();var xe=new SVGElement$1(this.document,null);xe.type=this.type,xe.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),xe.attributes.refX=new Property(this.document,"refX",this.getAttribute("refX").getValue()),xe.attributes.refY=new Property(this.document,"refY",this.getAttribute("refY").getValue()),xe.attributes.width=new Property(this.document,"width",this.getAttribute("markerWidth").getValue()),xe.attributes.height=new Property(this.document,"height",this.getAttribute("markerHeight").getValue()),xe.attributes.overflow=new Property(this.document,"overflow",this.getAttribute("overflow").getValue()),xe.attributes.fill=new Property(this.document,"fill",this.getAttribute("fill").getColor("black")),xe.attributes.stroke=new Property(this.document,"stroke",this.getAttribute("stroke").getValue("none")),xe.children=this.children,xe.render(St),St.restore(),Se==="strokeWidth"&&St.scale(1/St.lineWidth,1/St.lineWidth),Te==="auto"&&St.rotate(-Ee),St.translate(-Ce,-_e)}}}class DefsElement extends Element{constructor(){super(...arguments),this.type="defs"}render(){}}class GElement extends RenderedElement{constructor(){super(...arguments),this.type="g"}getBoundingBox(St){var Ae=new BoundingBox;return this.children.forEach(Ee=>{Ae.addBoundingBox(Ee.getBoundingBox(St))}),Ae}}class GradientElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:Ce,children:_e}=this;_e.forEach(Te=>{Te.type==="stop"&&Ce.push(Te)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(St,Ae,Ee){var Ce=this;this.getHrefAttribute().hasValue()&&(Ce=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(Ce));var{stops:_e}=Ce,Te=this.getGradient(St,Ae);if(!Te)return this.addParentOpacity(Ee,_e[_e.length-1].color);if(_e.forEach(ir=>{Te.addColorStop(ir.offset,this.addParentOpacity(Ee,ir.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:Se}=this,{MAX_VIRTUAL_PIXELS:xe,viewPort:Fe}=Se.screen,[Ue]=Fe.viewPorts,Re=new RectElement(Se,null);Re.attributes.x=new Property(Se,"x",-xe/3),Re.attributes.y=new Property(Se,"y",-xe/3),Re.attributes.width=new Property(Se,"width",xe),Re.attributes.height=new Property(Se,"height",xe);var He=new GElement(Se,null);He.attributes.transform=new Property(Se,"transform",this.getAttribute("gradientTransform").getValue()),He.children=[Re];var $e=new SVGElement$1(Se,null);$e.attributes.x=new Property(Se,"x",0),$e.attributes.y=new Property(Se,"y",0),$e.attributes.width=new Property(Se,"width",Ue.width),$e.attributes.height=new Property(Se,"height",Ue.height),$e.children=[He];var ze=Se.createCanvas(Ue.width,Ue.height),Ve=ze.getContext("2d");return Ve.fillStyle=Te,$e.render(Ve),Ve.createPattern(ze,"no-repeat")}return Te}inheritStopContainer(St){this.attributesToInherit.forEach(Ae=>{!this.getAttribute(Ae).hasValue()&&St.getAttribute(Ae).hasValue()&&this.getAttribute(Ae,!0).setValue(St.getAttribute(Ae).getValue())})}addParentOpacity(St,Ae){if(St.hasValue()){var Ee=new Property(this.document,"color",Ae);return Ee.addOpacity(St).getColor()}return Ae}}class LinearGradientElement extends GradientElement{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(St,Ae){var Ee=this.getGradientUnits()==="objectBoundingBox",Ce=Ee?Ae.getBoundingBox(St):null;if(Ee&&!Ce)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var _e=Ee?Ce.x+Ce.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),Te=Ee?Ce.y+Ce.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),Se=Ee?Ce.x+Ce.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),xe=Ee?Ce.y+Ce.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return _e===Se&&Te===xe?null:St.createLinearGradient(_e,Te,Se,xe)}}class RadialGradientElement extends GradientElement{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(St,Ae){var Ee=this.getGradientUnits()==="objectBoundingBox",Ce=Ae.getBoundingBox(St);if(Ee&&!Ce)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var _e=Ee?Ce.x+Ce.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),Te=Ee?Ce.y+Ce.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),Se=_e,xe=Te;this.getAttribute("fx").hasValue()&&(Se=Ee?Ce.x+Ce.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(xe=Ee?Ce.y+Ce.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var Fe=Ee?(Ce.width+Ce.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),Ue=this.getAttribute("fr").getPixels();return St.createRadialGradient(Se,xe,Ue,_e,Te,Fe)}}class StopElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="stop";var Ce=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),_e=this.getStyle("stop-opacity"),Te=this.getStyle("stop-color",!0);Te.getString()===""&&Te.setValue("#000"),_e.hasValue()&&(Te=Te.addOpacity(_e)),this.offset=Ce,this.color=Te.getColor()}}class AnimateElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,St.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new Property(St,"values",null);var Ce=this.getAttribute("values");Ce.hasValue()&&this.values.setValue(Ce.getString().split(";"))}getProperty(){var St=this.getAttribute("attributeType").getString(),Ae=this.getAttribute("attributeName").getString();return St==="CSS"?this.parent.getStyle(Ae,!0):this.parent.getAttribute(Ae,!0)}calcValue(){var{initialUnits:St}=this,{progress:Ae,from:Ee,to:Ce}=this.getProgress(),_e=Ee.getNumber()+(Ce.getNumber()-Ee.getNumber())*Ae;return St==="%"&&(_e*=100),"".concat(_e).concat(St)}update(St){var{parent:Ae}=this,Ee=this.getProperty();if(this.initialValue||(this.initialValue=Ee.getString(),this.initialUnits=Ee.getUnits()),this.duration>this.maxDuration){var Ce=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(Ce==="freeze"&&!this.frozen)this.frozen=!0,Ae.animationFrozen=!0,Ae.animationFrozenValue=Ee.getString();else if(Ce==="remove"&&!this.removed)return this.removed=!0,Ee.setValue(Ae.animationFrozen?Ae.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=St;var _e=!1;if(this.begin<this.duration){var Te=this.calcValue(),Se=this.getAttribute("type");if(Se.hasValue()){var xe=Se.getString();Te="".concat(xe,"(").concat(Te,")")}Ee.setValue(Te),_e=!0}return _e}getProgress(){var{document:St,values:Ae}=this,Ee={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(Ae.hasValue()){var Ce=Ee.progress*(Ae.getValue().length-1),_e=Math.floor(Ce),Te=Math.ceil(Ce);Ee.from=new Property(St,"from",parseFloat(Ae.getValue()[_e])),Ee.to=new Property(St,"to",parseFloat(Ae.getValue()[Te])),Ee.progress=(Ce-_e)/(Te-_e)}else Ee.from=this.from,Ee.to=this.to;return Ee}}class AnimateColorElement extends AnimateElement{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:St,from:Ae,to:Ee}=this.getProgress(),Ce=new RGBColor$1(Ae.getColor()),_e=new RGBColor$1(Ee.getColor());if(Ce.ok&&_e.ok){var Te=Ce.r+(_e.r-Ce.r)*St,Se=Ce.g+(_e.g-Ce.g)*St,xe=Ce.b+(_e.b-Ce.b)*St;return"rgb(".concat(Math.floor(Te),", ").concat(Math.floor(Se),", ").concat(Math.floor(xe),")")}return this.getAttribute("from").getColor()}}class AnimateTransformElement extends AnimateElement{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:St,from:Ae,to:Ee}=this.getProgress(),Ce=toNumbers(Ae.getString()),_e=toNumbers(Ee.getString()),Te=Ce.map((Se,xe)=>{var Fe=_e[xe];return Se+(Fe-Se)*St}).join(" ");return Te}}class FontElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:Ce}=St,{children:_e}=this;for(var Te of _e)switch(Te.type){case"font-face":{this.fontFace=Te;var Se=Te.getStyle("font-family");Se.hasValue()&&(Ce[Se.getString()]=this);break}case"missing-glyph":this.missingGlyph=Te;break;case"glyph":{var xe=Te;xe.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[xe.unicode]>"u"&&(this.glyphs[xe.unicode]={}),this.glyphs[xe.unicode][xe.arabicForm]=xe):this.glyphs[xe.unicode]=xe;break}}}render(){}}class FontFaceElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class MissingGlyphElement extends PathElement{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class TRefElement extends TextElement{constructor(){super(...arguments),this.type="tref"}getText(){var St=this.getHrefAttribute().getDefinition();if(St){var Ae=St.children[0];if(Ae)return Ae.getText()}return""}}class AElement extends TextElement{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="a";var{childNodes:Ce}=Ae,_e=Ce[0],Te=Ce.length>0&&Array.from(Ce).every(Se=>Se.nodeType===3);this.hasText=Te,this.text=Te?this.getTextFromNode(_e):""}getText(){return this.text}renderChildren(St){if(this.hasText){super.renderChildren(St);var{document:Ae,x:Ee,y:Ce}=this,{mouse:_e}=Ae.screen,Te=new Property(Ae,"fontSize",Font.parse(Ae.ctx.font).fontSize);_e.isWorking()&&_e.checkBoundingBox(this,new BoundingBox(Ee,Ce-Te.getPixels("y"),Ee+this.measureText(St),Ce))}else if(this.children.length>0){var Se=new GElement(this.document,null);Se.children=this.children,Se.parent=this,Se.render(St)}}onClick(){var{window:St}=this.document;St&&St.open(this.getHrefAttribute().getString())}onMouseMove(){var St=this.document.ctx;St.canvas.style.cursor="pointer"}}function ownKeys$2(Be,St){var Ae=Object.keys(Be);if(Object.getOwnPropertySymbols){var Ee=Object.getOwnPropertySymbols(Be);St&&(Ee=Ee.filter(function(Ce){return Object.getOwnPropertyDescriptor(Be,Ce).enumerable})),Ae.push.apply(Ae,Ee)}return Ae}function _objectSpread$2(Be){for(var St=1;St<arguments.length;St++){var Ae=arguments[St]!=null?arguments[St]:{};St%2?ownKeys$2(Object(Ae),!0).forEach(function(Ee){_defineProperty(Be,Ee,Ae[Ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Be,Object.getOwnPropertyDescriptors(Ae)):ownKeys$2(Object(Ae)).forEach(function(Ee){Object.defineProperty(Be,Ee,Object.getOwnPropertyDescriptor(Ae,Ee))})}return Be}class TextPathElement extends TextElement{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var Ce=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(Ce)}getText(){return this.text}path(St){var{dataArray:Ae}=this;St&&St.beginPath(),Ae.forEach(Ee=>{var{type:Ce,points:_e}=Ee;switch(Ce){case PathParser.LINE_TO:St&&St.lineTo(_e[0],_e[1]);break;case PathParser.MOVE_TO:St&&St.moveTo(_e[0],_e[1]);break;case PathParser.CURVE_TO:St&&St.bezierCurveTo(_e[0],_e[1],_e[2],_e[3],_e[4],_e[5]);break;case PathParser.QUAD_TO:St&&St.quadraticCurveTo(_e[0],_e[1],_e[2],_e[3]);break;case PathParser.ARC:{var[Te,Se,xe,Fe,Ue,Re,He,$e]=_e,ze=xe>Fe?xe:Fe,Ve=xe>Fe?1:xe/Fe,ir=xe>Fe?Fe/xe:1;St&&(St.translate(Te,Se),St.rotate(He),St.scale(Ve,ir),St.arc(0,0,ze,Ue,Ue+Re,!!(1-$e)),St.scale(1/Ve,1/ir),St.rotate(-He),St.translate(-Te,-Se));break}case PathParser.CLOSE_PATH:St&&St.closePath();break}})}renderChildren(St){this.setTextData(St),St.save();var Ae=this.parent.getStyle("text-decoration").getString(),Ee=this.getFontSize(),{glyphInfo:Ce}=this,_e=St.fillStyle;Ae==="underline"&&St.beginPath(),Ce.forEach((Te,Se)=>{var{p0:xe,p1:Fe,rotation:Ue,text:Re}=Te;St.save(),St.translate(xe.x,xe.y),St.rotate(Ue),St.fillStyle&&St.fillText(Re,0,0),St.strokeStyle&&St.strokeText(Re,0,0),St.restore(),Ae==="underline"&&(Se===0&&St.moveTo(xe.x,xe.y+Ee/8),St.lineTo(Fe.x,Fe.y+Ee/5))}),Ae==="underline"&&(St.lineWidth=Ee/20,St.strokeStyle=_e,St.stroke(),St.closePath()),St.restore()}getLetterSpacingAt(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[St]||0}findSegmentToFitChar(St,Ae,Ee,Ce,_e,Te,Se,xe,Fe){var Ue=Te,Re=this.measureText(St,xe);xe===" "&&Ae==="justify"&&Ee<Ce&&(Re+=(Ce-Ee)/_e),Fe>-1&&(Ue+=this.getLetterSpacingAt(Fe));var He=this.textHeight/20,$e=this.getEquidistantPointOnPath(Ue,He,0),ze=this.getEquidistantPointOnPath(Ue+Re,He,0),Ve={p0:$e,p1:ze},ir=$e&&ze?Math.atan2(ze.y-$e.y,ze.x-$e.x):0;if(Se){var Ze=Math.cos(Math.PI/2+ir)*Se,ar=Math.cos(-ir)*Se;Ve.p0=_objectSpread$2(_objectSpread$2({},$e),{},{x:$e.x+Ze,y:$e.y+ar}),Ve.p1=_objectSpread$2(_objectSpread$2({},ze),{},{x:ze.x+Ze,y:ze.y+ar})}return Ue+=Re,{offset:Ue,segment:Ve,rotation:ir}}measureText(St,Ae){var{measuresCache:Ee}=this,Ce=Ae||this.getText();if(Ee.has(Ce))return Ee.get(Ce);var _e=this.measureTargetText(St,Ce);return Ee.set(Ce,_e),_e}setTextData(St){if(!this.glyphInfo){var Ae=this.getText(),Ee=Ae.split(""),Ce=Ae.split(" ").length-1,_e=this.parent.getAttribute("dx").split().map(Xe=>Xe.getPixels("x")),Te=this.parent.getAttribute("dy").getPixels("y"),Se=this.parent.getStyle("text-anchor").getString("start"),xe=this.getStyle("letter-spacing"),Fe=this.parent.getStyle("letter-spacing"),Ue=0;!xe.hasValue()||xe.getValue()==="inherit"?Ue=Fe.getPixels():xe.hasValue()&&xe.getValue()!=="initial"&&xe.getValue()!=="unset"&&(Ue=xe.getPixels());var Re=[],He=Ae.length;this.letterSpacingCache=Re;for(var $e=0;$e<He;$e++)Re.push(typeof _e[$e]<"u"?_e[$e]:Ue);var ze=Re.reduce((Xe,or,Oe)=>Oe===0?0:Xe+or||0,0),Ve=this.measureText(St),ir=Math.max(Ve+ze,0);this.textWidth=Ve,this.textHeight=this.getFontSize(),this.glyphInfo=[];var Ze=this.getPathLength(),ar=this.getStyle("startOffset").getNumber(0)*Ze,cr=0;(Se==="middle"||Se==="center")&&(cr=-ir/2),(Se==="end"||Se==="right")&&(cr=-ir),cr+=ar,Ee.forEach((Xe,or)=>{var{offset:Oe,segment:Je,rotation:Ye}=this.findSegmentToFitChar(St,Se,ir,Ze,Ce,cr,Te,Xe,or);cr=Oe,!(!Je.p0||!Je.p1)&&this.glyphInfo.push({text:Ee[or],p0:Je.p0,p1:Je.p1,rotation:Ye})})}}parsePathData(St){if(this.pathLength=-1,!St)return[];var Ae=[],{pathParser:Ee}=St;for(Ee.reset();!Ee.isEnd();){var{current:Ce}=Ee,_e=Ce?Ce.x:0,Te=Ce?Ce.y:0,Se=Ee.next(),xe=Se.type,Fe=[];switch(Se.type){case PathParser.MOVE_TO:this.pathM(Ee,Fe);break;case PathParser.LINE_TO:xe=this.pathL(Ee,Fe);break;case PathParser.HORIZ_LINE_TO:xe=this.pathH(Ee,Fe);break;case PathParser.VERT_LINE_TO:xe=this.pathV(Ee,Fe);break;case PathParser.CURVE_TO:this.pathC(Ee,Fe);break;case PathParser.SMOOTH_CURVE_TO:xe=this.pathS(Ee,Fe);break;case PathParser.QUAD_TO:this.pathQ(Ee,Fe);break;case PathParser.SMOOTH_QUAD_TO:xe=this.pathT(Ee,Fe);break;case PathParser.ARC:Fe=this.pathA(Ee);break;case PathParser.CLOSE_PATH:PathElement.pathZ(Ee);break}Se.type!==PathParser.CLOSE_PATH?Ae.push({type:xe,points:Fe,start:{x:_e,y:Te},pathLength:this.calcLength(_e,Te,xe,Fe)}):Ae.push({type:PathParser.CLOSE_PATH,points:[],pathLength:0})}return Ae}pathM(St,Ae){var{x:Ee,y:Ce}=PathElement.pathM(St).point;Ae.push(Ee,Ce)}pathL(St,Ae){var{x:Ee,y:Ce}=PathElement.pathL(St).point;return Ae.push(Ee,Ce),PathParser.LINE_TO}pathH(St,Ae){var{x:Ee,y:Ce}=PathElement.pathH(St).point;return Ae.push(Ee,Ce),PathParser.LINE_TO}pathV(St,Ae){var{x:Ee,y:Ce}=PathElement.pathV(St).point;return Ae.push(Ee,Ce),PathParser.LINE_TO}pathC(St,Ae){var{point:Ee,controlPoint:Ce,currentPoint:_e}=PathElement.pathC(St);Ae.push(Ee.x,Ee.y,Ce.x,Ce.y,_e.x,_e.y)}pathS(St,Ae){var{point:Ee,controlPoint:Ce,currentPoint:_e}=PathElement.pathS(St);return Ae.push(Ee.x,Ee.y,Ce.x,Ce.y,_e.x,_e.y),PathParser.CURVE_TO}pathQ(St,Ae){var{controlPoint:Ee,currentPoint:Ce}=PathElement.pathQ(St);Ae.push(Ee.x,Ee.y,Ce.x,Ce.y)}pathT(St,Ae){var{controlPoint:Ee,currentPoint:Ce}=PathElement.pathT(St);return Ae.push(Ee.x,Ee.y,Ce.x,Ce.y),PathParser.QUAD_TO}pathA(St){var{rX:Ae,rY:Ee,sweepFlag:Ce,xAxisRotation:_e,centp:Te,a1:Se,ad:xe}=PathElement.pathA(St);return Ce===0&&xe>0&&(xe-=2*Math.PI),Ce===1&&xe<0&&(xe+=2*Math.PI),[Te.x,Te.y,Ae,Ee,Se,xe,_e,Ce]}calcLength(St,Ae,Ee,Ce){var _e=0,Te=null,Se=null,xe=0;switch(Ee){case PathParser.LINE_TO:return this.getLineLength(St,Ae,Ce[0],Ce[1]);case PathParser.CURVE_TO:for(_e=0,Te=this.getPointOnCubicBezier(0,St,Ae,Ce[0],Ce[1],Ce[2],Ce[3],Ce[4],Ce[5]),xe=.01;xe<=1;xe+=.01)Se=this.getPointOnCubicBezier(xe,St,Ae,Ce[0],Ce[1],Ce[2],Ce[3],Ce[4],Ce[5]),_e+=this.getLineLength(Te.x,Te.y,Se.x,Se.y),Te=Se;return _e;case PathParser.QUAD_TO:for(_e=0,Te=this.getPointOnQuadraticBezier(0,St,Ae,Ce[0],Ce[1],Ce[2],Ce[3]),xe=.01;xe<=1;xe+=.01)Se=this.getPointOnQuadraticBezier(xe,St,Ae,Ce[0],Ce[1],Ce[2],Ce[3]),_e+=this.getLineLength(Te.x,Te.y,Se.x,Se.y),Te=Se;return _e;case PathParser.ARC:{_e=0;var Fe=Ce[4],Ue=Ce[5],Re=Ce[4]+Ue,He=Math.PI/180;if(Math.abs(Fe-Re)<He&&(He=Math.abs(Fe-Re)),Te=this.getPointOnEllipticalArc(Ce[0],Ce[1],Ce[2],Ce[3],Fe,0),Ue<0)for(xe=Fe-He;xe>Re;xe-=He)Se=this.getPointOnEllipticalArc(Ce[0],Ce[1],Ce[2],Ce[3],xe,0),_e+=this.getLineLength(Te.x,Te.y,Se.x,Se.y),Te=Se;else for(xe=Fe+He;xe<Re;xe+=He)Se=this.getPointOnEllipticalArc(Ce[0],Ce[1],Ce[2],Ce[3],xe,0),_e+=this.getLineLength(Te.x,Te.y,Se.x,Se.y),Te=Se;return Se=this.getPointOnEllipticalArc(Ce[0],Ce[1],Ce[2],Ce[3],Re,0),_e+=this.getLineLength(Te.x,Te.y,Se.x,Se.y),_e}}return 0}getPointOnLine(St,Ae,Ee,Ce,_e){var Te=arguments.length>5&&arguments[5]!==void 0?arguments[5]:Ae,Se=arguments.length>6&&arguments[6]!==void 0?arguments[6]:Ee,xe=(_e-Ee)/(Ce-Ae+PSEUDO_ZERO),Fe=Math.sqrt(St*St/(1+xe*xe));Ce<Ae&&(Fe*=-1);var Ue=xe*Fe,Re=null;if(Ce===Ae)Re={x:Te,y:Se+Ue};else if((Se-Ee)/(Te-Ae+PSEUDO_ZERO)===xe)Re={x:Te+Fe,y:Se+Ue};else{var He=0,$e=0,ze=this.getLineLength(Ae,Ee,Ce,_e);if(ze<PSEUDO_ZERO)return null;var Ve=(Te-Ae)*(Ce-Ae)+(Se-Ee)*(_e-Ee);Ve/=ze*ze,He=Ae+Ve*(Ce-Ae),$e=Ee+Ve*(_e-Ee);var ir=this.getLineLength(Te,Se,He,$e),Ze=Math.sqrt(St*St-ir*ir);Fe=Math.sqrt(Ze*Ze/(1+xe*xe)),Ce<Ae&&(Fe*=-1),Ue=xe*Fe,Re={x:He+Fe,y:$e+Ue}}return Re}getPointOnPath(St){var Ae=this.getPathLength(),Ee=0,Ce=null;if(St<-5e-5||St-5e-5>Ae)return null;var{dataArray:_e}=this;for(var Te of _e){if(Te&&(Te.pathLength<5e-5||Ee+Te.pathLength+5e-5<St)){Ee+=Te.pathLength;continue}var Se=St-Ee,xe=0;switch(Te.type){case PathParser.LINE_TO:Ce=this.getPointOnLine(Se,Te.start.x,Te.start.y,Te.points[0],Te.points[1],Te.start.x,Te.start.y);break;case PathParser.ARC:{var Fe=Te.points[4],Ue=Te.points[5],Re=Te.points[4]+Ue;if(xe=Fe+Se/Te.pathLength*Ue,Ue<0&&xe<Re||Ue>=0&&xe>Re)break;Ce=this.getPointOnEllipticalArc(Te.points[0],Te.points[1],Te.points[2],Te.points[3],xe,Te.points[6]);break}case PathParser.CURVE_TO:xe=Se/Te.pathLength,xe>1&&(xe=1),Ce=this.getPointOnCubicBezier(xe,Te.start.x,Te.start.y,Te.points[0],Te.points[1],Te.points[2],Te.points[3],Te.points[4],Te.points[5]);break;case PathParser.QUAD_TO:xe=Se/Te.pathLength,xe>1&&(xe=1),Ce=this.getPointOnQuadraticBezier(xe,Te.start.x,Te.start.y,Te.points[0],Te.points[1],Te.points[2],Te.points[3]);break}if(Ce)return Ce;break}return null}getLineLength(St,Ae,Ee,Ce){return Math.sqrt((Ee-St)*(Ee-St)+(Ce-Ae)*(Ce-Ae))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((St,Ae)=>Ae.pathLength>0?St+Ae.pathLength:St,0)),this.pathLength}getPointOnCubicBezier(St,Ae,Ee,Ce,_e,Te,Se,xe,Fe){var Ue=xe*CB1(St)+Te*CB2(St)+Ce*CB3(St)+Ae*CB4(St),Re=Fe*CB1(St)+Se*CB2(St)+_e*CB3(St)+Ee*CB4(St);return{x:Ue,y:Re}}getPointOnQuadraticBezier(St,Ae,Ee,Ce,_e,Te,Se){var xe=Te*QB1(St)+Ce*QB2(St)+Ae*QB3(St),Fe=Se*QB1(St)+_e*QB2(St)+Ee*QB3(St);return{x:xe,y:Fe}}getPointOnEllipticalArc(St,Ae,Ee,Ce,_e,Te){var Se=Math.cos(Te),xe=Math.sin(Te),Fe={x:Ee*Math.cos(_e),y:Ce*Math.sin(_e)};return{x:St+(Fe.x*Se-Fe.y*xe),y:Ae+(Fe.x*xe+Fe.y*Se)}}buildEquidistantCache(St,Ae){var Ee=this.getPathLength(),Ce=Ae||.25,_e=St||Ee/100;if(!this.equidistantCache||this.equidistantCache.step!==_e||this.equidistantCache.precision!==Ce){this.equidistantCache={step:_e,precision:Ce,points:[]};for(var Te=0,Se=0;Se<=Ee;Se+=Ce){var xe=this.getPointOnPath(Se),Fe=this.getPointOnPath(Se+Ce);!xe||!Fe||(Te+=this.getLineLength(xe.x,xe.y,Fe.x,Fe.y),Te>=_e&&(this.equidistantCache.points.push({x:xe.x,y:xe.y,distance:Se}),Te-=_e))}}}getEquidistantPointOnPath(St,Ae,Ee){if(this.buildEquidistantCache(Ae,Ee),St<0||St-this.getPathLength()>5e-5)return null;var Ce=Math.round(St/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[Ce]||null}}var dataUriRegex=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class ImageElement extends RenderedElement{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="image",this.loaded=!1;var Ce=this.getHrefAttribute().getString();if(Ce){var _e=Ce.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(Ce);St.images.push(this),_e?this.loadSvg(Ce):this.loadImage(Ce),this.isSvg=_e}}loadImage(St){var Ae=this;return _asyncToGenerator(function*(){try{var Ee=yield Ae.document.createImage(St);Ae.image=Ee}catch(Ce){console.error('Error while loading image "'.concat(St,'":'),Ce)}Ae.loaded=!0})()}loadSvg(St){var Ae=this;return _asyncToGenerator(function*(){var Ee=dataUriRegex.exec(St);if(Ee){var Ce=Ee[5];Ee[4]==="base64"?Ae.image=atob(Ce):Ae.image=decodeURIComponent(Ce)}else try{var _e=yield Ae.document.fetch(St),Te=yield _e.text();Ae.image=Te}catch(Se){console.error('Error while loading image "'.concat(St,'":'),Se)}Ae.loaded=!0})()}renderChildren(St){var{document:Ae,image:Ee,loaded:Ce}=this,_e=this.getAttribute("x").getPixels("x"),Te=this.getAttribute("y").getPixels("y"),Se=this.getStyle("width").getPixels("x"),xe=this.getStyle("height").getPixels("y");if(!(!Ce||!Ee||!Se||!xe)){if(St.save(),St.translate(_e,Te),this.isSvg){var Fe=Ae.canvg.forkString(St,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:Se,scaleHeight:xe});Fe.document.documentElement.parent=this,Fe.render()}else{var Ue=this.image;Ae.setViewBox({ctx:St,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:Se,desiredWidth:Ue.width,height:xe,desiredHeight:Ue.height}),this.loaded&&(typeof Ue.complete>"u"||Ue.complete)&&St.drawImage(Ue,0,0)}St.restore()}}getBoundingBox(){var St=this.getAttribute("x").getPixels("x"),Ae=this.getAttribute("y").getPixels("y"),Ee=this.getStyle("width").getPixels("x"),Ce=this.getStyle("height").getPixels("y");return new BoundingBox(St,Ae,St+Ee,Ae+Ce)}}class SymbolElement extends RenderedElement{constructor(){super(...arguments),this.type="symbol"}render(St){}}class SVGFontLoader{constructor(St){this.document=St,this.loaded=!1,St.fonts.push(this)}load(St,Ae){var Ee=this;return _asyncToGenerator(function*(){try{var{document:Ce}=Ee,_e=yield Ce.canvg.parser.load(Ae),Te=_e.getElementsByTagName("font");Array.from(Te).forEach(Se=>{var xe=Ce.createElement(Se);Ce.definitions[St]=xe})}catch(Se){console.error('Error while loading font "'.concat(Ae,'":'),Se)}Ee.loaded=!0})()}}class StyleElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="style";var Ce=compressSpaces(Array.from(Ae.childNodes).map(Te=>Te.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),_e=Ce.split("}");_e.forEach(Te=>{var Se=Te.trim();if(Se){var xe=Se.split("{"),Fe=xe[0].split(","),Ue=xe[1].split(";");Fe.forEach(Re=>{var He=Re.trim();if(He){var $e=St.styles[He]||{};if(Ue.forEach(ir=>{var Ze=ir.indexOf(":"),ar=ir.substr(0,Ze).trim(),cr=ir.substr(Ze+1,ir.length-Ze).trim();ar&&cr&&($e[ar]=new Property(St,ar,cr))}),St.styles[He]=$e,St.stylesSpecificity[He]=getSelectorSpecificity(He),He==="@font-face"){var ze=$e["font-family"].getString().replace(/"|'/g,""),Ve=$e.src.getString().split(",");Ve.forEach(ir=>{if(ir.indexOf('format("svg")')>0){var Ze=parseExternalUrl(ir);Ze&&new SVGFontLoader(St).load(ze,Ze)}})}}})}})}}StyleElement.parseExternalUrl=parseExternalUrl;class UseElement extends RenderedElement{constructor(){super(...arguments),this.type="use"}setContext(St){super.setContext(St);var Ae=this.getAttribute("x"),Ee=this.getAttribute("y");Ae.hasValue()&&St.translate(Ae.getPixels("x"),0),Ee.hasValue()&&St.translate(0,Ee.getPixels("y"))}path(St){var{element:Ae}=this;Ae&&Ae.path(St)}renderChildren(St){var{document:Ae,element:Ee}=this;if(Ee){var Ce=Ee;if(Ee.type==="symbol"&&(Ce=new SVGElement$1(Ae,null),Ce.attributes.viewBox=new Property(Ae,"viewBox",Ee.getAttribute("viewBox").getString()),Ce.attributes.preserveAspectRatio=new Property(Ae,"preserveAspectRatio",Ee.getAttribute("preserveAspectRatio").getString()),Ce.attributes.overflow=new Property(Ae,"overflow",Ee.getAttribute("overflow").getString()),Ce.children=Ee.children,Ee.styles.opacity=new Property(Ae,"opacity",this.calculateOpacity())),Ce.type==="svg"){var _e=this.getStyle("width",!1,!0),Te=this.getStyle("height",!1,!0);_e.hasValue()&&(Ce.attributes.width=new Property(Ae,"width",_e.getString())),Te.hasValue()&&(Ce.attributes.height=new Property(Ae,"height",Te.getString()))}var Se=Ce.parent;Ce.parent=this,Ce.render(St),Ce.parent=Se}}getBoundingBox(St){var{element:Ae}=this;return Ae?Ae.getBoundingBox(St):null}elementTransform(){var{document:St,element:Ae}=this;return Transform.fromElement(St,Ae)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function imGet(Be,St,Ae,Ee,Ce,_e){return Be[Ae*Ee*4+St*4+_e]}function imSet(Be,St,Ae,Ee,Ce,_e,Te){Be[Ae*Ee*4+St*4+_e]=Te}function m(Be,St,Ae){var Ee=Be[St];return Ee*Ae}function c(Be,St,Ae,Ee){return St+Math.cos(Be)*Ae+Math.sin(Be)*Ee}class FeColorMatrixElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="feColorMatrix";var Ce=toNumbers(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var _e=Ce[0];Ce=[.213+.787*_e,.715-.715*_e,.072-.072*_e,0,0,.213-.213*_e,.715+.285*_e,.072-.072*_e,0,0,.213-.213*_e,.715-.715*_e,.072+.928*_e,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var Te=Ce[0]*Math.PI/180;Ce=[c(Te,.213,.787,-.213),c(Te,.715,-.715,-.715),c(Te,.072,-.072,.928),0,0,c(Te,.213,-.213,.143),c(Te,.715,.285,.14),c(Te,.072,-.072,-.283),0,0,c(Te,.213,-.213,-.787),c(Te,.715,-.715,.715),c(Te,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":Ce=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=Ce,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(St,Ae,Ee,Ce,_e){for(var{includeOpacity:Te,matrix:Se}=this,xe=St.getImageData(0,0,Ce,_e),Fe=0;Fe<_e;Fe++)for(var Ue=0;Ue<Ce;Ue++){var Re=imGet(xe.data,Ue,Fe,Ce,_e,0),He=imGet(xe.data,Ue,Fe,Ce,_e,1),$e=imGet(xe.data,Ue,Fe,Ce,_e,2),ze=imGet(xe.data,Ue,Fe,Ce,_e,3),Ve=m(Se,0,Re)+m(Se,1,He)+m(Se,2,$e)+m(Se,3,ze)+m(Se,4,1),ir=m(Se,5,Re)+m(Se,6,He)+m(Se,7,$e)+m(Se,8,ze)+m(Se,9,1),Ze=m(Se,10,Re)+m(Se,11,He)+m(Se,12,$e)+m(Se,13,ze)+m(Se,14,1),ar=m(Se,15,Re)+m(Se,16,He)+m(Se,17,$e)+m(Se,18,ze)+m(Se,19,1);Te&&(Ve=0,ir=0,Ze=0,ar*=ze/255),imSet(xe.data,Ue,Fe,Ce,_e,0,Ve),imSet(xe.data,Ue,Fe,Ce,_e,1,ir),imSet(xe.data,Ue,Fe,Ce,_e,2,Ze),imSet(xe.data,Ue,Fe,Ce,_e,3,ar)}St.clearRect(0,0,Ce,_e),St.putImageData(xe,0,0)}}class MaskElement extends Element{constructor(){super(...arguments),this.type="mask"}apply(St,Ae){var{document:Ee}=this,Ce=this.getAttribute("x").getPixels("x"),_e=this.getAttribute("y").getPixels("y"),Te=this.getStyle("width").getPixels("x"),Se=this.getStyle("height").getPixels("y");if(!Te&&!Se){var xe=new BoundingBox;this.children.forEach(ze=>{xe.addBoundingBox(ze.getBoundingBox(St))}),Ce=Math.floor(xe.x1),_e=Math.floor(xe.y1),Te=Math.floor(xe.width),Se=Math.floor(xe.height)}var Fe=this.removeStyles(Ae,MaskElement.ignoreStyles),Ue=Ee.createCanvas(Ce+Te,_e+Se),Re=Ue.getContext("2d");Ee.screen.setDefaults(Re),this.renderChildren(Re),new FeColorMatrixElement(Ee,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(Re,0,0,Ce+Te,_e+Se);var He=Ee.createCanvas(Ce+Te,_e+Se),$e=He.getContext("2d");Ee.screen.setDefaults($e),Ae.render($e),$e.globalCompositeOperation="destination-in",$e.fillStyle=Re.createPattern(Ue,"no-repeat"),$e.fillRect(0,0,Ce+Te,_e+Se),St.fillStyle=$e.createPattern(He,"no-repeat"),St.fillRect(0,0,Ce+Te,_e+Se),this.restoreStyles(Ae,Fe)}render(St){}}MaskElement.ignoreStyles=["mask","transform","clip-path"];var noop=()=>{};class ClipPathElement extends Element{constructor(){super(...arguments),this.type="clipPath"}apply(St){var{document:Ae}=this,Ee=Reflect.getPrototypeOf(St),{beginPath:Ce,closePath:_e}=St;Ee&&(Ee.beginPath=noop,Ee.closePath=noop),Reflect.apply(Ce,St,[]),this.children.forEach(Te=>{if(!(typeof Te.path>"u")){var Se=typeof Te.elementTransform<"u"?Te.elementTransform():null;Se||(Se=Transform.fromElement(Ae,Te)),Se&&Se.apply(St),Te.path(St),Ee&&(Ee.closePath=_e),Se&&Se.unapply(St)}}),Reflect.apply(_e,St,[]),St.clip(),Ee&&(Ee.beginPath=Ce,Ee.closePath=_e)}render(St){}}class FilterElement extends Element{constructor(){super(...arguments),this.type="filter"}apply(St,Ae){var{document:Ee,children:Ce}=this,_e=Ae.getBoundingBox(St);if(_e){var Te=0,Se=0;Ce.forEach(Ze=>{var ar=Ze.extraFilterDistance||0;Te=Math.max(Te,ar),Se=Math.max(Se,ar)});var xe=Math.floor(_e.width),Fe=Math.floor(_e.height),Ue=xe+2*Te,Re=Fe+2*Se;if(!(Ue<1||Re<1)){var He=Math.floor(_e.x),$e=Math.floor(_e.y),ze=this.removeStyles(Ae,FilterElement.ignoreStyles),Ve=Ee.createCanvas(Ue,Re),ir=Ve.getContext("2d");Ee.screen.setDefaults(ir),ir.translate(-He+Te,-$e+Se),Ae.render(ir),Ce.forEach(Ze=>{typeof Ze.apply=="function"&&Ze.apply(ir,0,0,Ue,Re)}),St.drawImage(Ve,0,0,Ue,Re,He-Te,$e-Se,Ue,Re),this.restoreStyles(Ae,ze)}}}render(St){}}FilterElement.ignoreStyles=["filter","transform","clip-path"];class FeDropShadowElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(St,Ae,Ee,Ce,_e){}}class FeMorphologyElement extends Element{constructor(){super(...arguments),this.type="feMorphology"}apply(St,Ae,Ee,Ce,_e){}}class FeCompositeElement extends Element{constructor(){super(...arguments),this.type="feComposite"}apply(St,Ae,Ee,Ce,_e){}}class FeGaussianBlurElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(St,Ae,Ee,Ce,_e){var{document:Te,blurRadius:Se}=this,xe=Te.window?Te.window.document.body:null,Fe=St.canvas;Fe.id=Te.getUniqueId(),xe&&(Fe.style.display="none",xe.appendChild(Fe)),processCanvasRGBA(Fe,Ae,Ee,Ce,_e,Se),xe&&xe.removeChild(Fe)}}class TitleElement extends Element{constructor(){super(...arguments),this.type="title"}}class DescElement extends Element{constructor(){super(...arguments),this.type="desc"}}var elements={svg:SVGElement$1,rect:RectElement,circle:CircleElement,ellipse:EllipseElement,line:LineElement,polyline:PolylineElement,polygon:PolygonElement,path:PathElement,pattern:PatternElement,marker:MarkerElement,defs:DefsElement,linearGradient:LinearGradientElement,radialGradient:RadialGradientElement,stop:StopElement,animate:AnimateElement,animateColor:AnimateColorElement,animateTransform:AnimateTransformElement,font:FontElement,"font-face":FontFaceElement,"missing-glyph":MissingGlyphElement,glyph:GlyphElement,text:TextElement,tspan:TSpanElement,tref:TRefElement,a:AElement,textPath:TextPathElement,image:ImageElement,g:GElement,symbol:SymbolElement,style:StyleElement,use:UseElement,mask:MaskElement,clipPath:ClipPathElement,filter:FilterElement,feDropShadow:FeDropShadowElement,feMorphology:FeMorphologyElement,feComposite:FeCompositeElement,feColorMatrix:FeColorMatrixElement,feGaussianBlur:FeGaussianBlurElement,title:TitleElement,desc:DescElement};function ownKeys$1(Be,St){var Ae=Object.keys(Be);if(Object.getOwnPropertySymbols){var Ee=Object.getOwnPropertySymbols(Be);St&&(Ee=Ee.filter(function(Ce){return Object.getOwnPropertyDescriptor(Be,Ce).enumerable})),Ae.push.apply(Ae,Ee)}return Ae}function _objectSpread$1(Be){for(var St=1;St<arguments.length;St++){var Ae=arguments[St]!=null?arguments[St]:{};St%2?ownKeys$1(Object(Ae),!0).forEach(function(Ee){_defineProperty(Be,Ee,Ae[Ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Be,Object.getOwnPropertyDescriptors(Ae)):ownKeys$1(Object(Ae)).forEach(function(Ee){Object.defineProperty(Be,Ee,Object.getOwnPropertyDescriptor(Ae,Ee))})}return Be}function createCanvas(Be,St){var Ae=document.createElement("canvas");return Ae.width=Be,Ae.height=St,Ae}function createImage(Be){return _createImage.apply(this,arguments)}function _createImage(){return _createImage=_asyncToGenerator(function*(Be){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ae=document.createElement("img");return St&&(Ae.crossOrigin="Anonymous"),new Promise((Ee,Ce)=>{Ae.onload=()=>{Ee(Ae)},Ae.onerror=(_e,Te,Se,xe,Fe)=>{Ce(Fe)},Ae.src=Be})}),_createImage.apply(this,arguments)}class Document{constructor(St){var{rootEmSize:Ae=12,emSize:Ee=12,createCanvas:Ce=Document.createCanvas,createImage:_e=Document.createImage,anonymousCrossOrigin:Te}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=St,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=St.screen,this.rootEmSize=Ae,this.emSize=Ee,this.createCanvas=Ce,this.createImage=this.bindCreateImage(_e,Te),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(St,Ae){return typeof Ae=="boolean"?(Ee,Ce)=>St(Ee,typeof Ce=="boolean"?Ce:Ae):St}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:St}=this;return St[St.length-1]}set emSize(St){var{emSizeStack:Ae}=this;Ae.push(St)}popEmSize(){var{emSizeStack:St}=this;St.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(St=>St.loaded)}isFontsLoaded(){return this.fonts.every(St=>St.loaded)}createDocumentElement(St){var Ae=this.createElement(St.documentElement);return Ae.root=!0,Ae.addStylesFromStyleDefinition(),this.documentElement=Ae,Ae}createElement(St){var Ae=St.nodeName.replace(/^[^:]+:/,""),Ee=Document.elementTypes[Ae];return typeof Ee<"u"?new Ee(this,St):new UnknownElement(this,St)}createTextNode(St){return new TextNode(this,St)}setViewBox(St){this.screen.setViewBox(_objectSpread$1({document:this},St))}}Document.createCanvas=createCanvas,Document.createImage=createImage,Document.elementTypes=elements;function ownKeys(Be,St){var Ae=Object.keys(Be);if(Object.getOwnPropertySymbols){var Ee=Object.getOwnPropertySymbols(Be);St&&(Ee=Ee.filter(function(Ce){return Object.getOwnPropertyDescriptor(Be,Ce).enumerable})),Ae.push.apply(Ae,Ee)}return Ae}function _objectSpread(Be){for(var St=1;St<arguments.length;St++){var Ae=arguments[St]!=null?arguments[St]:{};St%2?ownKeys(Object(Ae),!0).forEach(function(Ee){_defineProperty(Be,Ee,Ae[Ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Be,Object.getOwnPropertyDescriptors(Ae)):ownKeys(Object(Ae)).forEach(function(Ee){Object.defineProperty(Be,Ee,Object.getOwnPropertyDescriptor(Ae,Ee))})}return Be}class Canvg{constructor(St,Ae){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Parser(Ee),this.screen=new Screen(St,Ee),this.options=Ee;var Ce=new Document(this,Ee),_e=Ce.createDocumentElement(Ae);this.document=Ce,this.documentElement=_e}static from(St,Ae){var Ee=arguments;return _asyncToGenerator(function*(){var Ce=Ee.length>2&&Ee[2]!==void 0?Ee[2]:{},_e=new Parser(Ce),Te=yield _e.parse(Ae);return new Canvg(St,Te,Ce)})()}static fromString(St,Ae){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ce=new Parser(Ee),_e=Ce.parseFromString(Ae);return new Canvg(St,_e,Ee)}fork(St,Ae){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Canvg.from(St,Ae,_objectSpread(_objectSpread({},this.options),Ee))}forkString(St,Ae){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Canvg.fromString(St,Ae,_objectSpread(_objectSpread({},this.options),Ee))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var St=arguments,Ae=this;return _asyncToGenerator(function*(){var Ee=St.length>0&&St[0]!==void 0?St[0]:{};Ae.start(_objectSpread({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},Ee)),yield Ae.ready(),Ae.stop()})()}start(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:Ae,screen:Ee,options:Ce}=this;Ee.start(Ae,_objectSpread(_objectSpread({enableRedraw:!0},Ce),St))}stop(){this.screen.stop()}resize(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:St,Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(St,Ae,Ee)}}const index_es=Object.freeze(Object.defineProperty({__proto__:null,AElement,AnimateColorElement,AnimateElement,AnimateTransformElement,BoundingBox,CB1,CB2,CB3,CB4,Canvg,CircleElement,ClipPathElement,DefsElement,DescElement,Document,Element,EllipseElement,FeColorMatrixElement,FeCompositeElement,FeDropShadowElement,FeGaussianBlurElement,FeMorphologyElement,FilterElement,Font,FontElement,FontFaceElement,GElement,GlyphElement,GradientElement,ImageElement,LineElement,LinearGradientElement,MarkerElement,MaskElement,Matrix,MissingGlyphElement,Mouse,PSEUDO_ZERO,Parser,PathElement,PathParser,PatternElement,Point,PolygonElement,PolylineElement,Property,QB1,QB2,QB3,RadialGradientElement,RectElement,RenderedElement,Rotate,SVGElement:SVGElement$1,SVGFontLoader,Scale,Screen,Skew,SkewX,SkewY,StopElement,StyleElement,SymbolElement,TRefElement,TSpanElement,TextElement,TextPathElement,TitleElement,Transform,Translate,UnknownElement,UseElement,ViewPort,compressSpaces,default:Canvg,getSelectorSpecificity,normalizeAttributeName,normalizeColor,parseExternalUrl,presets:index,toNumbers,trimLeft,trimRight,vectorMagnitude,vectorsAngle,vectorsRatio},Symbol.toStringTag,{value:"Module"}));return index$1});