You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

423 lines
2.3 MiB

var QA=Object.defineProperty,eT=Object.defineProperties;var tT=Object.getOwnPropertyDescriptors;var Kv=Object.getOwnPropertySymbols;var rT=Object.prototype.hasOwnProperty,nT=Object.prototype.propertyIsEnumerable;var Hp=(r,t,e)=>t in r?QA(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,An=(r,t)=>{for(var e in t||(t={}))rT.call(t,e)&&Hp(r,e,t[e]);if(Kv)for(var e of Kv(t))nT.call(t,e)&&Hp(r,e,t[e]);return r},$o=(r,t)=>eT(r,tT(t));var fi=(r,t,e)=>(Hp(r,typeof t!="symbol"?t+"":t,e),e);var ot=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Zv(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function iT(r){if(r.__esModule)return r;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(e){var n=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:function(){return r[e]}})}),t}function Vo(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Yv={exports:{}};(function(r){var t=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/var e=function(n){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,o={},s={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function v(b){return b instanceof u?new u(b.type,v(b.content),b.alias):Array.isArray(b)?b.map(v):b.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++a}),v.__id},clone:function v(b,A){A=A||{};var C,M;switch(s.util.type(b)){case"Object":if(M=s.util.objId(b),A[M])return A[M];C={},A[M]=C;for(var z in b)b.hasOwnProperty(z)&&(C[z]=v(b[z],A));return C;case"Array":return M=s.util.objId(b),A[M]?A[M]:(C=[],A[M]=C,b.forEach(function(W,U){C[U]=v(W,A)}),C);default:return b}},getLanguage:function(v){for(;v;){var b=i.exec(v.className);if(b)return b[1].toLowerCase();v=v.parentElement}return"none"},setLanguage:function(v,b){v.className=v.className.replace(RegExp(i,"gi"),""),v.classList.add("language-"+b)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(C){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(C.stack)||[])[1];if(v){var b=document.getElementsByTagName("script");for(var A in b)if(b[A].src==v)return b[A]}return null}},isActive:function(v,b,A){for(var C="no-"+b;v;){var M=v.classList;if(M.contains(b))return!0;if(M.contains(C))return!1;v=v.parentElement}return!!A}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(v,b){var A=s.util.clone(s.languages[v]);for(var C in b)A[C]=b[C];return A},insertBefore:function(v,b,A,C){C=C||s.languages;var M=C[v],z={};for(var W in M)if(M.hasOwnProperty(W)){if(W==b)for(var U in A)A.hasOwnProperty(U)&&(z[U]=A[U]);A.hasOwnProperty(W)||(z[W]=M[W])}var G=C[v];return C[v]=z,s.languages.DFS(s.languages,function(ee,I){I===G&&ee!=v&&(this[ee]=z)}),z},DFS:function v(b,A,C,M){M=M||{};var z=s.util.objId;for(var W in b)if(b.hasOwnProperty(W)){A.call(b,W,b[W],C||W);var U=b[W],G=s.util.type(U);G==="Object"&&!M[z(U)]?(M[z(U)]=!0,v(U,A,null,M)):G==="Array"&&!M[z(U)]&&(M[z(U)]=!0,v(U,A,W,M))}}},plugins:{},highlightAll:function(v,b){s.highlightAllUnder(document,v,b)},highlightAllUnder:function(v,b,A){var C={callback:A,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",C),C.elements=Array.prototype.slice.apply(C.container.querySelectorAll(C.selector)),s.hooks.run("before-all-elements-highlight",C);for(var M=0,z;z=C.elements[M++];)s.highlightElement(z,b===!0,C.callback)},highlightElement:function(v,b,A){var C=s.util.getLanguage(v),M=s.languages[C];s.util.setLanguage(v,C);var z=v.parentElement;z&&z.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(z,C);var W=v.textContent,U={element:v,language:C,grammar:M,code:W};function G(I){U.highlightedCode=I,s.hooks.run("before-insert",U),U.element.innerHTML=U.highlightedCode,s.hooks.run("after-highlight",U),s.hooks.run("complete",U),A&&A.call(U.element)}if(s.hooks.run("before-sanity-check",U),z=U.element.parentElement,z&&z.nodeName.toLowerCase()==="pre"&&!z.hasAttribute("tabindex")&&z.setAttribute("tabindex","0"),!U.code){s.hooks.run("complete",U),A&&A.call(U.element);return}if(s.hooks.run("before-highlight",U),!U.grammar){G(s.util.encode(U.code));return}if(b&&n.Worker){var ee=new Worker(s.filename);ee.onmessage=function(I){G(I.data)},ee.postMessage(JSON.stringify({language:U.language,code:U.code,immediateClose:!0}))}else G(s.highlight(U.code,U.grammar,U.language))},highlight:function(v,b,A){var C={code:v,grammar:b,language:A};if(s.hooks.run("before-tokenize",C),!C.grammar)throw new Error('The language "'+C.language+'" has no grammar.');return C.tokens=s.tokenize(C.code,C.grammar),s.hooks.run("after-tokenize",C),u.stringify(s.util.encode(C.tokens),C.language)},tokenize:function(v,b){var A=b.rest;if(A){for(var C in A)b[C]=A[C];delete b.rest}var M=new d;return h(M,M.head,v),l(v,M,b,M.head,0),g(M)},hooks:{all:{},add:function(v,b){var A=s.hooks.all;A[v]=A[v]||[],A[v].push(b)},run:function(v,b){var A=s.hooks.all[v];if(!(!A||!A.length))for(var C=0,M;M=A[C++];)M(b)}},Token:u};n.Prism=s;function u(v,b,A,C){this.type=v,this.content=b,this.alias=A,this.length=(C||"").length|0}u.stringify=function v(b,A){if(typeof b=="string")return b;if(Array.isArray(b)){var C="";return b.forEach(function(G){C+=v(G,A)}),C}var M={type:b.type,content:v(b.content,A),tag:"span",classes:["token",b.type],attributes:{},language:A},z=b.alias;z&&(Array.isArray(z)?Array.prototype.push.apply(M.classes,z):M.classes.push(z)),s.hooks.run("wrap",M);var W="";for(var U in M.attributes)W+=" "+U+'="'+(M.attributes[U]||"").replace(/"/g,"&quot;")+'"';return"<"+M.tag+' class="'+M.classes.join(" ")+'"'+W+">"+M.content+"</"+M.tag+">"};function c(v,b,A,C){v.lastIndex=b;var M=v.exec(A);if(M&&C&&M[1]){var z=M[1].length;M.index+=z,M[0]=M[0].slice(z)}return M}function l(v,b,A,C,M,z){for(var W in A)if(!(!A.hasOwnProperty(W)||!A[W])){var U=A[W];U=Array.isArray(U)?U:[U];for(var G=0;G<U.length;++G){if(z&&z.cause==W+","+G)return;var ee=U[G],I=ee.inside,O=!!ee.lookbehind,T=!!ee.greedy,S=ee.alias;if(T&&!ee.pattern.global){var x=ee.pattern.toString().match(/[imsuy]*$/)[0];ee.pattern=RegExp(ee.pattern.source,x+"g")}for(var w=ee.pattern||ee,_=C.next,E=M;_!==b.tail&&!(z&&E>=z.reach);E+=_.value.length,_=_.next){var R=_.value;if(b.length>v.length)return;if(!(R instanceof u)){var F=1,B;if(T){if(B=c(w,E,v,O),!B||B.index>=v.length)break;var $=B.index,X=B.index+B[0].length,K=E;for(K+=_.value.length;$>=K;)_=_.next,K+=_.value.length;if(K-=_.value.length,E=K,_.value instanceof u)continue;for(var te=_;te!==b.tail&&(K<X||typeof te.value=="string");te=te.next)F++,K+=te.value.length;F--,R=v.slice(E,K),B.index-=E}else if(B=c(w,0,R,O),!B)continue;var $=B.index,q=B[0],k=R.slice(0,$),L=R.slice($+q.length),V=E+R.length;z&&V>z.reach&&(z.reach=V);var J=_.prev;k&&(J=h(b,J,k),E+=k.length),f(b,J,F);var re=new u(W,I?s.tokenize(q,I):q,S,q);if(_=h(b,J,re),L&&h(b,_,L),F>1){var ae={cause:W+","+G,reach:V};l(v,b,A,_.prev,E,ae),z&&ae.reach>z.reach&&(z.reach=ae.reach)}}}}}}function d(){var v={value:null,prev:null,next:null},b={value:null,prev:v,next:null};v.next=b,this.head=v,this.tail=b,this.length=0}function h(v,b,A){var C=b.next,M={value:A,prev:b,next:C};return b.next=M,C.prev=M,v.length++,M}function f(v,b,A){for(var C=b.next,M=0;M<A&&C!==v.tail;M++)C=C.next;b.next=C,C.prev=b,v.length-=M}function g(v){for(var b=[],A=v.head.next;A!==v.tail;)b.push(A.value),A=A.next;return b}if(!n.document)return n.addEventListener&&(s.disableWorkerMessageHandler||n.addEventListener("message",function(v){var b=JSON.parse(v.data),A=b.language,C=b.code,M=b.immediateClose;n.postMessage(s.highlight(C,s.languages[A],A)),M&&n.close()},!1)),s;var m=s.util.currentScript();m&&(s.filename=m.src,m.hasAttribute("data-manual")&&(s.manual=!0));function p(){s.manual||s.highlightAll()}if(!s.manual){var y=document.readyState;y==="loading"||y==="interactive"&&m&&m.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return s}(t);r.exports&&(r.exports=e),typeof ot!="undefined"&&(ot.Prism=e),e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(i,a){var o={};o["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[a]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};s["language-"+a]={pattern:/[\s\S]+/,inside:e.languages[a]};var u={};u[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:s},e.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(n,i){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:e.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,function(n){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var a=n.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))}(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript,function(){if(typeof e=="undefined"||typeof document=="undefined")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n="Loading\u2026",i=function(m,p){return"\u2716 Error "+m+" while fetching file: "+p},a="\u2716 Error: File does not exist or is empty",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",u="loading",c="loaded",l="failed",d="pre[data-src]:not(["+s+'="'+c+'"]):not(['+s+'="'+u+'"])';function h(m,p,y){var v=new XMLHttpRequest;v.open("GET",m,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?p(v.responseText):v.status>=400?y(i(v.status,v.statusText)):y(a))},v.send(null)}function f(m){var p=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(m||"");if(p){var y=Number(p[1]),v=p[2],b=p[3];return v?b?[y,Number(b)]:[y,void 0]:[y,y]}}e.hooks.add("before-highlightall",function(m){m.selector+=", "+d}),e.hooks.add("before-sanity-check",function(m){var p=m.element;if(p.matches(d)){m.code="",p.setAttribute(s,u);var y=p.appendChild(document.createElement("CODE"));y.textContent=n;var v=p.getAttribute("data-src"),b=m.language;if(b==="none"){var A=(/\.(\w+)$/.exec(v)||[,"none"])[1];b=o[A]||A}e.util.setLanguage(y,b),e.util.setLanguage(p,b);var C=e.plugins.autoloader;C&&C.loadLanguages(b),h(v,function(M){p.setAttribute(s,c);var z=f(p.getAttribute("data-range"));if(z){var W=M.split(/\r\n?|\n/g),U=z[0],G=z[1]==null?W.length:z[1];U<0&&(U+=W.length),U=Math.max(0,Math.min(U-1,W.length)),G<0&&(G+=W.length),G=Math.max(0,Math.min(G,W.length)),M=W.slice(U,G).join(`
`),p.hasAttribute("data-start")||p.setAttribute("data-start",String(U+1))}y.textContent=M,e.highlightElement(y)},function(M){p.setAttribute(s,l),y.textContent=M})}}),e.plugins.fileHighlight={highlight:function(p){for(var y=(p||document).querySelectorAll(d),v=0,b;b=y[v++];)e.highlightElement(b)}};var g=!1;e.fileHighlight=function(){g||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),g=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Yv);var fX=Yv.exports,$p={},Jf={},_i={};Object.defineProperty(_i,"__esModule",{value:!0});function aT(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}var oT=function r(t,e){aT(this,r),this.data=t,this.text=e.text||t,this.options=e};_i.default=oT;Object.defineProperty(Jf,"__esModule",{value:!0});Jf.CODE39=void 0;var sT=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),uT=_i,cT=lT(uT);function lT(r){return r&&r.__esModule?r:{default:r}}function fT(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function hT(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function dT(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var pT=function(r){dT(t,r);function t(e,n){return fT(this,t),e=e.toUpperCase(),n.mod43&&(e+=vT(yT(e))),hT(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return sT(t,[{key:"encode",value:function(){for(var n=Vp("*"),i=0;i<this.data.length;i++)n+=Vp(this.data[i])+"0";return n+=Vp("*"),{data:n,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),t}(cT.default),Jv=["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","-","."," ","$","/","+","%","*"],mT=[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 Vp(r){return gT(Qv(r))}function gT(r){return mT[r].toString(2)}function vT(r){return Jv[r]}function Qv(r){return Jv.indexOf(r)}function yT(r){for(var t=0,e=0;e<r.length;e++)t+=Qv(r[e]);return t=t%43,t}Jf.CODE39=pT;var Na={},qp={},cu={},Kr={};Object.defineProperty(Kr,"__esModule",{value:!0});var Uc;function Gp(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}var ey=Kr.SET_A=0,ty=Kr.SET_B=1,ry=Kr.SET_C=2;Kr.SHIFT=98;var bT=Kr.START_A=103,wT=Kr.START_B=104,xT=Kr.START_C=105;Kr.MODULO=103;Kr.STOP=106;Kr.FNC1=207;Kr.SET_BY_CODE=(Uc={},Gp(Uc,bT,ey),Gp(Uc,wT,ty),Gp(Uc,xT,ry),Uc);Kr.SWAP={101:ey,100:ty,99:ry};Kr.A_START_CHAR=String.fromCharCode(208);Kr.B_START_CHAR=String.fromCharCode(209);Kr.C_START_CHAR=String.fromCharCode(210);Kr.A_CHARS="[\0-_\xC8-\xCF]";Kr.B_CHARS="[ -\x7F\xC8-\xCF]";Kr.C_CHARS="(\xCF*[0-9]{2}\xCF*)";Kr.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(cu,"__esModule",{value:!0});var _T=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),ET=_i,AT=TT(ET),ji=Kr;function TT(r){return r&&r.__esModule?r:{default:r}}function ST(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function DT(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function CT(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var OT=function(r){CT(t,r);function t(e,n){ST(this,t);var i=DT(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.substring(1),n));return i.bytes=e.split("").map(function(a){return a.charCodeAt(0)}),i}return _T(t,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var n=this.bytes,i=n.shift()-105,a=ji.SET_BY_CODE[i];if(a===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&n.unshift(ji.FNC1);var o=t.next(n,1,a);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:t.getBar(i)+o.result+t.getBar((o.checksum+i)%ji.MODULO)+t.getBar(ji.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var n=this.options.ean128||!1;return typeof n=="string"&&(n=n.toLowerCase()==="true"),n}}],[{key:"getBar",value:function(n){return ji.BARS[n]?ji.BARS[n].toString():""}},{key:"correctIndex",value:function(n,i){if(i===ji.SET_A){var a=n.shift();return a<32?a+64:a-32}else return i===ji.SET_B?n.shift()-32:(n.shift()-48)*10+n.shift()-48}},{key:"next",value:function(n,i,a){if(!n.length)return{result:"",checksum:0};var o=void 0,s=void 0;if(n[0]>=200){s=n.shift()-105;var u=ji.SWAP[s];u!==void 0?o=t.next(n,i+1,u):((a===ji.SET_A||a===ji.SET_B)&&s===ji.SHIFT&&(n[0]=a===ji.SET_A?n[0]>95?n[0]-96:n[0]:n[0]<32?n[0]+96:n[0]),o=t.next(n,i+1,a))}else s=t.correctIndex(n,a),o=t.next(n,i+1,a);var c=t.getBar(s),l=s*i;return{result:c+o.result,checksum:l+o.checksum}}}]),t}(AT.default);cu.default=OT;var Xp={};Object.defineProperty(Xp,"__esModule",{value:!0});var qo=Kr,ny=function(t){return t.match(new RegExp("^"+qo.A_CHARS+"*"))[0].length},iy=function(t){return t.match(new RegExp("^"+qo.B_CHARS+"*"))[0].length},ay=function(t){return t.match(new RegExp("^"+qo.C_CHARS+"*"))[0]};function Kp(r,t){var e=t?qo.A_CHARS:qo.B_CHARS,n=r.match(new RegExp("^("+e+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(n)return n[1]+String.fromCharCode(204)+oy(r.substring(n[1].length));var i=r.match(new RegExp("^"+e+"+"))[0];return i.length===r.length?r:i+String.fromCharCode(t?205:206)+Kp(r.substring(i.length),!t)}function oy(r){var t=ay(r),e=t.length;if(e===r.length)return r;r=r.substring(e);var n=ny(r)>=iy(r);return t+String.fromCharCode(n?206:205)+Kp(r,n)}Xp.default=function(r){var t=void 0,e=ay(r).length;if(e>=2)t=qo.C_START_CHAR+oy(r);else{var n=ny(r)>iy(r);t=(n?qo.A_START_CHAR:qo.B_START_CHAR)+Kp(r,n)}return t.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(i,a){return String.fromCharCode(203)+a})};Object.defineProperty(qp,"__esModule",{value:!0});var IT=cu,kT=sy(IT),RT=Xp,FT=sy(RT);function sy(r){return r&&r.__esModule?r:{default:r}}function NT(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function Zp(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function MT(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var BT=function(r){MT(t,r);function t(e,n){if(NT(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(e))var i=Zp(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,FT.default)(e),n));else var i=Zp(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return Zp(i)}return t}(kT.default);qp.default=BT;var Yp={};Object.defineProperty(Yp,"__esModule",{value:!0});var UT=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),PT=cu,LT=jT(PT),uy=Kr;function jT(r){return r&&r.__esModule?r:{default:r}}function WT(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function zT(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function HT(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var $T=function(r){HT(t,r);function t(e,n){return WT(this,t),zT(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,uy.A_START_CHAR+e,n))}return UT(t,[{key:"valid",value:function(){return new RegExp("^"+uy.A_CHARS+"+$").test(this.data)}}]),t}(LT.default);Yp.default=$T;var Jp={};Object.defineProperty(Jp,"__esModule",{value:!0});var VT=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),qT=cu,GT=XT(qT),cy=Kr;function XT(r){return r&&r.__esModule?r:{default:r}}function KT(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function ZT(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function YT(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var JT=function(r){YT(t,r);function t(e,n){return KT(this,t),ZT(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,cy.B_START_CHAR+e,n))}return VT(t,[{key:"valid",value:function(){return new RegExp("^"+cy.B_CHARS+"+$").test(this.data)}}]),t}(GT.default);Jp.default=JT;var Qp={};Object.defineProperty(Qp,"__esModule",{value:!0});var QT=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),eS=cu,tS=rS(eS),ly=Kr;function rS(r){return r&&r.__esModule?r:{default:r}}function nS(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function iS(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function aS(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var oS=function(r){aS(t,r);function t(e,n){return nS(this,t),iS(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,ly.C_START_CHAR+e,n))}return QT(t,[{key:"valid",value:function(){return new RegExp("^"+ly.C_CHARS+"+$").test(this.data)}}]),t}(tS.default);Qp.default=oS;Object.defineProperty(Na,"__esModule",{value:!0});Na.CODE128C=Na.CODE128B=Na.CODE128A=Na.CODE128=void 0;var sS=qp,uS=Qf(sS),cS=Yp,lS=Qf(cS),fS=Jp,hS=Qf(fS),dS=Qp,pS=Qf(dS);function Qf(r){return r&&r.__esModule?r:{default:r}}Na.CODE128=uS.default;Na.CODE128A=lS.default;Na.CODE128B=hS.default;Na.CODE128C=pS.default;var Ei={},e0={},Qi={};Object.defineProperty(Qi,"__esModule",{value:!0});Qi.SIDE_BIN="101";Qi.MIDDLE_BIN="01010";Qi.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"]};Qi.EAN2_STRUCTURE=["LL","LG","GL","GG"];Qi.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"];Qi.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var eh={},As={};Object.defineProperty(As,"__esModule",{value:!0});var mS=Qi,gS=function(t,e,n){var i=t.split("").map(function(o,s){return mS.BINARIES[e[s]]}).map(function(o,s){return o?o[t[s]]:""});if(n){var a=t.length-1;i=i.map(function(o,s){return s<a?o+n:o})}return i.join("")};As.default=gS;Object.defineProperty(eh,"__esModule",{value:!0});var vS=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),lu=Qi,yS=As,fy=hy(yS),bS=_i,wS=hy(bS);function hy(r){return r&&r.__esModule?r:{default:r}}function xS(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function _S(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function ES(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var AS=function(r){ES(t,r);function t(e,n){xS(this,t);var i=_S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.fontSize=!n.flat&&n.fontSize>n.width*10?n.width*10:n.fontSize,i.guardHeight=n.height+i.fontSize/2+n.textMargin,i}return vS(t,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(n,i){return this.text.substr(n,i)}},{key:"leftEncode",value:function(n,i){return(0,fy.default)(n,i)}},{key:"rightText",value:function(n,i){return this.text.substr(n,i)}},{key:"rightEncode",value:function(n,i){return(0,fy.default)(n,i)}},{key:"encodeGuarded",value:function(){var n={fontSize:this.fontSize},i={height:this.guardHeight};return[{data:lu.SIDE_BIN,options:i},{data:this.leftEncode(),text:this.leftText(),options:n},{data:lu.MIDDLE_BIN,options:i},{data:this.rightEncode(),text:this.rightText(),options:n},{data:lu.SIDE_BIN,options:i}]}},{key:"encodeFlat",value:function(){var n=[lu.SIDE_BIN,this.leftEncode(),lu.MIDDLE_BIN,this.rightEncode(),lu.SIDE_BIN];return{data:n.join(""),text:this.text}}}]),t}(wS.default);eh.default=AS;Object.defineProperty(e0,"__esModule",{value:!0});var TS=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),Pc=function r(t,e,n){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:r(a,e,n)}else{if("value"in i)return i.value;var o=i.get;return o===void 0?void 0:o.call(n)}},SS=Qi,DS=eh,CS=OS(DS);function OS(r){return r&&r.__esModule?r:{default:r}}function IS(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function kS(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function RS(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var dy=function(t){var e=t.substr(0,12).split("").map(function(n){return+n}).reduce(function(n,i,a){return a%2?n+i*3:n+i},0);return(10-e%10)%10},FS=function(r){RS(t,r);function t(e,n){IS(this,t),e.search(/^[0-9]{12}$/)!==-1&&(e+=dy(e));var i=kS(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.lastChar=n.lastChar,i}return TS(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===dy(this.data)}},{key:"leftText",value:function(){return Pc(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var n=this.data.substr(1,6),i=SS.EAN13_STRUCTURE[this.data[0]];return Pc(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,n,i)}},{key:"rightText",value:function(){return Pc(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var n=this.data.substr(7,6);return Pc(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,n,"RRRRRR")}},{key:"encodeGuarded",value:function(){var n=Pc(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(n.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(n.push({data:"00"}),n.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),n}}]),t}(CS.default);e0.default=FS;var t0={};Object.defineProperty(t0,"__esModule",{value:!0});var NS=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),th=function r(t,e,n){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,e);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:r(a,e,n)}else{if("value"in i)return i.value;var o=i.get;return o===void 0?void 0:o.call(n)}},MS=eh,BS=US(MS);function US(r){return r&&r.__esModule?r:{default:r}}function PS(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function LS(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function jS(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var py=function(t){var e=t.substr(0,7).split("").map(function(n){return+n}).reduce(function(n,i,a){return a%2?n+i:n+i*3},0);return(10-e%10)%10},WS=function(r){jS(t,r);function t(e,n){return PS(this,t),e.search(/^[0-9]{7}$/)!==-1&&(e+=py(e)),LS(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return NS(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===py(this.data)}},{key:"leftText",value:function(){return th(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var n=this.data.substr(0,4);return th(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,n,"LLLL")}},{key:"rightText",value:function(){return th(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var n=this.data.substr(4,4);return th(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,n,"RRRR")}}]),t}(BS.default);t0.default=WS;var r0={};Object.defineProperty(r0,"__esModule",{value:!0});var zS=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),HS=Qi,$S=As,VS=my($S),qS=_i,GS=my(qS);function my(r){return r&&r.__esModule?r:{default:r}}function XS(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function KS(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function ZS(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var YS=function(t){var e=t.split("").map(function(n){return+n}).reduce(function(n,i,a){return a%2?n+i*9:n+i*3},0);return e%10},JS=function(r){ZS(t,r);function t(e,n){return XS(this,t),KS(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return zS(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var n=HS.EAN5_STRUCTURE[YS(this.data)];return{data:"1011"+(0,VS.default)(this.data,n,"01"),text:this.text}}}]),t}(GS.default);r0.default=JS;var n0={};Object.defineProperty(n0,"__esModule",{value:!0});var QS=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),eD=Qi,tD=As,rD=gy(tD),nD=_i,iD=gy(nD);function gy(r){return r&&r.__esModule?r:{default:r}}function aD(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function oD(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function sD(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var uD=function(r){sD(t,r);function t(e,n){return aD(this,t),oD(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return QS(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var n=eD.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,rD.default)(this.data,n,"01"),text:this.text}}}]),t}(iD.default);n0.default=uD;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});var cD=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}();Lc.checksum=i0;var lD=As,fu=vy(lD),fD=_i,hD=vy(fD);function vy(r){return r&&r.__esModule?r:{default:r}}function dD(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function pD(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function mD(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var gD=function(r){mD(t,r);function t(e,n){dD(this,t),e.search(/^[0-9]{11}$/)!==-1&&(e+=i0(e));var i=pD(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.displayValue=n.displayValue,n.fontSize>n.width*10?i.fontSize=n.width*10:i.fontSize=n.fontSize,i.guardHeight=n.height+i.fontSize/2+n.textMargin,i}return cD(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==i0(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=(0,fu.default)(this.data.substr(0,6),"LLLLLL"),n+="01010",n+=(0,fu.default)(this.data.substr(6,6),"RRRRRR"),n+="101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101"+(0,fu.default)(this.data[0],"L"),options:{height:this.guardHeight}}),n.push({data:(0,fu.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),n.push({data:"01010",options:{height:this.guardHeight}}),n.push({data:(0,fu.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),n.push({data:(0,fu.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),n}}]),t}(hD.default);function i0(r){var t=0,e;for(e=1;e<11;e+=2)t+=parseInt(r[e]);for(e=0;e<11;e+=2)t+=parseInt(r[e])*3;return(10-t%10)%10}Lc.default=gD;var a0={};Object.defineProperty(a0,"__esModule",{value:!0});var vD=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),yD=As,bD=yy(yD),wD=_i,xD=yy(wD),_D=Lc;function yy(r){return r&&r.__esModule?r:{default:r}}function ED(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function o0(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function AD(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var TD=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],SD=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],DD=function(r){AD(t,r);function t(e,n){ED(this,t);var i=o0(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(i.isValid=!1,e.search(/^[0-9]{6}$/)!==-1)i.middleDigits=e,i.upcA=by(e,"0"),i.text=n.text||""+i.upcA[0]+e+i.upcA[i.upcA.length-1],i.isValid=!0;else if(e.search(/^[01][0-9]{7}$/)!==-1)if(i.middleDigits=e.substring(1,e.length-1),i.upcA=by(i.middleDigits,e[0]),i.upcA[i.upcA.length-1]===e[e.length-1])i.isValid=!0;else return o0(i);else return o0(i);return i.displayValue=n.displayValue,n.fontSize>n.width*10?i.fontSize=n.width*10:i.fontSize=n.fontSize,i.guardHeight=n.height+i.fontSize/2+n.textMargin,i}return vD(t,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=this.encodeMiddleDigits(),n+="010101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101",options:{height:this.guardHeight}}),n.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),n.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),n}},{key:"encodeMiddleDigits",value:function(){var n=this.upcA[0],i=this.upcA[this.upcA.length-1],a=SD[parseInt(i)][parseInt(n)];return(0,bD.default)(this.middleDigits,a)}}]),t}(xD.default);function by(r,t){for(var e=parseInt(r[r.length-1]),n=TD[e],i="",a=0,o=0;o<n.length;o++){var s=n[o];s==="X"?i+=r[a++]:i+=s}return i=""+t+i,""+i+(0,_D.checksum)(i)}a0.default=DD;Object.defineProperty(Ei,"__esModule",{value:!0});Ei.UPCE=Ei.UPC=Ei.EAN2=Ei.EAN5=Ei.EAN8=Ei.EAN13=void 0;var CD=e0,OD=hu(CD),ID=t0,kD=hu(ID),RD=r0,FD=hu(RD),ND=n0,MD=hu(ND),BD=Lc,UD=hu(BD),PD=a0,LD=hu(PD);function hu(r){return r&&r.__esModule?r:{default:r}}Ei.EAN13=OD.default;Ei.EAN8=kD.default;Ei.EAN5=FD.default;Ei.EAN2=MD.default;Ei.UPC=UD.default;Ei.UPCE=LD.default;var du={},rh={},jc={};Object.defineProperty(jc,"__esModule",{value:!0});jc.START_BIN="1010";jc.END_BIN="11101";jc.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"];Object.defineProperty(rh,"__esModule",{value:!0});var jD=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),nh=jc,WD=_i,zD=HD(WD);function HD(r){return r&&r.__esModule?r:{default:r}}function $D(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function VD(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function qD(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var GD=function(r){qD(t,r);function t(){return $D(this,t),VD(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return jD(t,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var n=this,i=this.data.match(/.{2}/g).map(function(a){return n.encodePair(a)}).join("");return{data:nh.START_BIN+i+nh.END_BIN,text:this.text}}},{key:"encodePair",value:function(n){var i=nh.BINARIES[n[1]];return nh.BINARIES[n[0]].split("").map(function(a,o){return(a==="1"?"111":"1")+(i[o]==="1"?"000":"0")}).join("")}}]),t}(zD.default);rh.default=GD;var s0={};Object.defineProperty(s0,"__esModule",{value:!0});var XD=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),KD=rh,ZD=YD(KD);function YD(r){return r&&r.__esModule?r:{default:r}}function JD(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function QD(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function eC(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var wy=function(t){var e=t.substr(0,13).split("").map(function(n){return parseInt(n,10)}).reduce(function(n,i,a){return n+i*(3-a%2*2)},0);return Math.ceil(e/10)*10-e},tC=function(r){eC(t,r);function t(e,n){return JD(this,t),e.search(/^[0-9]{13}$/)!==-1&&(e+=wy(e)),QD(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return XD(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===wy(this.data)}}]),t}(ZD.default);s0.default=tC;Object.defineProperty(du,"__esModule",{value:!0});du.ITF14=du.ITF=void 0;var rC=rh,nC=xy(rC),iC=s0,aC=xy(iC);function xy(r){return r&&r.__esModule?r:{default:r}}du.ITF=nC.default;du.ITF14=aC.default;var ea={},Ts={};Object.defineProperty(Ts,"__esModule",{value:!0});var oC=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),sC=_i,uC=cC(sC);function cC(r){return r&&r.__esModule?r:{default:r}}function lC(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function fC(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function hC(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var dC=function(r){hC(t,r);function t(e,n){return lC(this,t),fC(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return oC(t,[{key:"encode",value:function(){for(var n="110",i=0;i<this.data.length;i++){var a=parseInt(this.data[i]),o=a.toString(2);o=pC(o,4-o.length);for(var s=0;s<o.length;s++)n+=o[s]=="0"?"100":"110"}return n+="1001",{data:n,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),t}(uC.default);function pC(r,t){for(var e=0;e<t;e++)r="0"+r;return r}Ts.default=dC;var u0={},Ss={};Object.defineProperty(Ss,"__esModule",{value:!0});Ss.mod10=mC;Ss.mod11=gC;function mC(r){for(var t=0,e=0;e<r.length;e++){var n=parseInt(r[e]);(e+r.length)%2==0?t+=n:t+=n*2%10+Math.floor(n*2/10)}return(10-t%10)%10}function gC(r){for(var t=0,e=[2,3,4,5,6,7],n=0;n<r.length;n++){var i=parseInt(r[r.length-1-n]);t+=e[n%e.length]*i}return(11-t%11)%11}Object.defineProperty(u0,"__esModule",{value:!0});var vC=Ts,yC=wC(vC),bC=Ss;function wC(r){return r&&r.__esModule?r:{default:r}}function xC(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function _C(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function EC(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var AC=function(r){EC(t,r);function t(e,n){return xC(this,t),_C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,bC.mod10)(e),n))}return t}(yC.default);u0.default=AC;var c0={};Object.defineProperty(c0,"__esModule",{value:!0});var TC=Ts,SC=CC(TC),DC=Ss;function CC(r){return r&&r.__esModule?r:{default:r}}function OC(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function IC(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function kC(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var RC=function(r){kC(t,r);function t(e,n){return OC(this,t),IC(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,DC.mod11)(e),n))}return t}(SC.default);c0.default=RC;var l0={};Object.defineProperty(l0,"__esModule",{value:!0});var FC=Ts,NC=MC(FC),_y=Ss;function MC(r){return r&&r.__esModule?r:{default:r}}function BC(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function UC(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function PC(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var LC=function(r){PC(t,r);function t(e,n){return BC(this,t),e+=(0,_y.mod10)(e),e+=(0,_y.mod10)(e),UC(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return t}(NC.default);l0.default=LC;var f0={};Object.defineProperty(f0,"__esModule",{value:!0});var jC=Ts,WC=zC(jC),Ey=Ss;function zC(r){return r&&r.__esModule?r:{default:r}}function HC(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function $C(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function VC(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var qC=function(r){VC(t,r);function t(e,n){return HC(this,t),e+=(0,Ey.mod11)(e),e+=(0,Ey.mod10)(e),$C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return t}(WC.default);f0.default=qC;Object.defineProperty(ea,"__esModule",{value:!0});ea.MSI1110=ea.MSI1010=ea.MSI11=ea.MSI10=ea.MSI=void 0;var GC=Ts,XC=Wc(GC),KC=u0,ZC=Wc(KC),YC=c0,JC=Wc(YC),QC=l0,eO=Wc(QC),tO=f0,rO=Wc(tO);function Wc(r){return r&&r.__esModule?r:{default:r}}ea.MSI=XC.default;ea.MSI10=ZC.default;ea.MSI11=JC.default;ea.MSI1010=eO.default;ea.MSI1110=rO.default;var ih={};Object.defineProperty(ih,"__esModule",{value:!0});ih.pharmacode=void 0;var nO=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),iO=_i,aO=oO(iO);function oO(r){return r&&r.__esModule?r:{default:r}}function sO(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function uO(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function cO(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var lO=function(r){cO(t,r);function t(e,n){sO(this,t);var i=uO(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.number=parseInt(e,10),i}return nO(t,[{key:"encode",value:function(){for(var n=this.number,i="";!isNaN(n)&&n!=0;)n%2==0?(i="11100"+i,n=(n-2)/2):(i="100"+i,n=(n-1)/2);return i=i.slice(0,-2),{data:i,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),t}(aO.default);ih.pharmacode=lO;var ah={};Object.defineProperty(ah,"__esModule",{value:!0});ah.codabar=void 0;var fO=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),hO=_i,dO=pO(hO);function pO(r){return r&&r.__esModule?r:{default:r}}function mO(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function gO(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function vO(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var yO=function(r){vO(t,r);function t(e,n){mO(this,t),e.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(e="A"+e+"A");var i=gO(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.toUpperCase(),n));return i.text=i.options.text||i.text.replace(/[A-D]/g,""),i}return fO(t,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var n=[],i=this.getEncodings(),a=0;a<this.data.length;a++)n.push(i[this.data.charAt(a)]),a!==this.data.length-1&&n.push("0");return{text:this.text,data:n.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"}}}]),t}(dO.default);ah.codabar=yO;var oh={};Object.defineProperty(oh,"__esModule",{value:!0});oh.GenericBarcode=void 0;var bO=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),wO=_i,xO=_O(wO);function _O(r){return r&&r.__esModule?r:{default:r}}function EO(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function AO(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function TO(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var SO=function(r){TO(t,r);function t(e,n){return EO(this,t),AO(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return bO(t,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),t}(xO.default);oh.GenericBarcode=SO;Object.defineProperty($p,"__esModule",{value:!0});var DO=Jf,sh=Na,pu=Ei,Ay=du,zc=ea,CO=ih,OO=ah,IO=oh;$p.default={CODE39:DO.CODE39,CODE128:sh.CODE128,CODE128A:sh.CODE128A,CODE128B:sh.CODE128B,CODE128C:sh.CODE128C,EAN13:pu.EAN13,EAN8:pu.EAN8,EAN5:pu.EAN5,EAN2:pu.EAN2,UPC:pu.UPC,UPCE:pu.UPCE,ITF14:Ay.ITF14,ITF:Ay.ITF,MSI:zc.MSI,MSI10:zc.MSI10,MSI11:zc.MSI11,MSI1010:zc.MSI1010,MSI1110:zc.MSI1110,pharmacode:CO.pharmacode,codabar:OO.codabar,GenericBarcode:IO.GenericBarcode};var mu={};Object.defineProperty(mu,"__esModule",{value:!0});var kO=Object.assign||function(r){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])}return r};mu.default=function(r,t){return kO({},r,t)};var h0={};Object.defineProperty(h0,"__esModule",{value:!0});h0.default=RO;function RO(r){var t=[];function e(n){if(Array.isArray(n))for(var i=0;i<n.length;i++)e(n[i]);else n.text=n.text||"",n.data=n.data||"",t.push(n)}return e(r),t}var d0={};Object.defineProperty(d0,"__esModule",{value:!0});d0.default=FO;function FO(r){return r.marginTop=r.marginTop||r.margin,r.marginBottom=r.marginBottom||r.margin,r.marginRight=r.marginRight||r.margin,r.marginLeft=r.marginLeft||r.margin,r}var p0={},m0={},uh={};Object.defineProperty(uh,"__esModule",{value:!0});uh.default=NO;function NO(r){var t=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var e in t)t.hasOwnProperty(e)&&(e=t[e],typeof r[e]=="string"&&(r[e]=parseInt(r[e],10)));return typeof r.displayValue=="string"&&(r.displayValue=r.displayValue!="false"),r}var ch={};Object.defineProperty(ch,"__esModule",{value:!0});var MO={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(){}};ch.default=MO;Object.defineProperty(m0,"__esModule",{value:!0});var BO=uh,UO=Sy(BO),PO=ch,Ty=Sy(PO);function Sy(r){return r&&r.__esModule?r:{default:r}}function LO(r){var t={};for(var e in Ty.default)Ty.default.hasOwnProperty(e)&&(r.hasAttribute("jsbarcode-"+e.toLowerCase())&&(t[e]=r.getAttribute("jsbarcode-"+e.toLowerCase())),r.hasAttribute("data-"+e.toLowerCase())&&(t[e]=r.getAttribute("data-"+e.toLowerCase())));return t.value=r.getAttribute("jsbarcode-value")||r.getAttribute("data-value"),t=(0,UO.default)(t),t}m0.default=LO;var g0={},v0={},Wi={};Object.defineProperty(Wi,"__esModule",{value:!0});Wi.getTotalWidthOfEncodings=Wi.calculateEncodingAttributes=Wi.getBarcodePadding=Wi.getEncodingHeight=Wi.getMaximumHeightOfEncodings=void 0;var jO=mu,WO=zO(jO);function zO(r){return r&&r.__esModule?r:{default:r}}function Dy(r,t){return t.height+(t.displayValue&&r.text.length>0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function Cy(r,t,e){if(e.displayValue&&t<r){if(e.textAlign=="center")return Math.floor((r-t)/2);if(e.textAlign=="left")return 0;if(e.textAlign=="right")return Math.floor(r-t)}return 0}function HO(r,t,e){for(var n=0;n<r.length;n++){var i=r[n],a=(0,WO.default)(t,i.options),o;a.displayValue?o=qO(i.text,a,e):o=0;var s=i.data.length*a.width;i.width=Math.ceil(Math.max(o,s)),i.height=Dy(i,a),i.barcodePadding=Cy(o,s,a)}}function $O(r){for(var t=0,e=0;e<r.length;e++)t+=r[e].width;return t}function VO(r){for(var t=0,e=0;e<r.length;e++)r[e].height>t&&(t=r[e].height);return t}function qO(r,t,e){var n;if(e)n=e;else if(typeof document!="undefined")n=document.createElement("canvas").getContext("2d");else return 0;n.font=t.fontOptions+" "+t.fontSize+"px "+t.font;var i=n.measureText(r);if(!i)return 0;var a=i.width;return a}Wi.getMaximumHeightOfEncodings=VO;Wi.getEncodingHeight=Dy;Wi.getBarcodePadding=Cy;Wi.calculateEncodingAttributes=HO;Wi.getTotalWidthOfEncodings=$O;Object.defineProperty(v0,"__esModule",{value:!0});var GO=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),XO=mu,KO=ZO(XO),y0=Wi;function ZO(r){return r&&r.__esModule?r:{default:r}}function YO(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}var JO=function(){function r(t,e,n){YO(this,r),this.canvas=t,this.encodings=e,this.options=n}return GO(r,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var e=0;e<this.encodings.length;e++){var n=(0,KO.default)(this.options,this.encodings[e].options);this.drawCanvasBarcode(n,this.encodings[e]),this.drawCanvasText(n,this.encodings[e]),this.moveCanvasDrawing(this.encodings[e])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var e=this.canvas.getContext("2d");e.save(),(0,y0.calculateEncodingAttributes)(this.encodings,this.options,e);var n=(0,y0.getTotalWidthOfEncodings)(this.encodings),i=(0,y0.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=n+this.options.marginLeft+this.options.marginRight,this.canvas.height=i,e.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(e.fillStyle=this.options.background,e.fillRect(0,0,this.canvas.width,this.canvas.height)),e.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(e,n){var i=this.canvas.getContext("2d"),a=n.data,o;e.textPosition=="top"?o=e.marginTop+e.fontSize+e.textMargin:o=e.marginTop,i.fillStyle=e.lineColor;for(var s=0;s<a.length;s++){var u=s*e.width+n.barcodePadding;a[s]==="1"?i.fillRect(u,o,e.width,e.height):a[s]&&i.fillRect(u,o,e.width,e.height*a[s])}}},{key:"drawCanvasText",value:function(e,n){var i=this.canvas.getContext("2d"),a=e.fontOptions+" "+e.fontSize+"px "+e.font;if(e.displayValue){var o,s;e.textPosition=="top"?s=e.marginTop+e.fontSize-e.textMargin:s=e.height+e.textMargin+e.marginTop+e.fontSize,i.font=a,e.textAlign=="left"||n.barcodePadding>0?(o=0,i.textAlign="left"):e.textAlign=="right"?(o=n.width-1,i.textAlign="right"):(o=n.width/2,i.textAlign="center"),i.fillText(n.text,o,s)}}},{key:"moveCanvasDrawing",value:function(e){var n=this.canvas.getContext("2d");n.translate(e.width,0)}},{key:"restoreCanvas",value:function(){var e=this.canvas.getContext("2d");e.restore()}}]),r}();v0.default=JO;var b0={};Object.defineProperty(b0,"__esModule",{value:!0});var QO=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),eI=mu,tI=rI(eI),w0=Wi;function rI(r){return r&&r.__esModule?r:{default:r}}function nI(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}var lh="http://www.w3.org/2000/svg",iI=function(){function r(t,e,n){nI(this,r),this.svg=t,this.encodings=e,this.options=n,this.document=n.xmlDocument||document}return QO(r,[{key:"render",value:function(){var e=this.options.marginLeft;this.prepareSVG();for(var n=0;n<this.encodings.length;n++){var i=this.encodings[n],a=(0,tI.default)(this.options,i.options),o=this.createGroup(e,a.marginTop,this.svg);this.setGroupOptions(o,a),this.drawSvgBarcode(o,a,i),this.drawSVGText(o,a,i),e+=i.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,w0.calculateEncodingAttributes)(this.encodings,this.options);var e=(0,w0.getTotalWidthOfEncodings)(this.encodings),n=(0,w0.getMaximumHeightOfEncodings)(this.encodings),i=e+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(i,n),this.options.background&&this.drawRect(0,0,i,n,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(e,n,i){var a=i.data,o;n.textPosition=="top"?o=n.fontSize+n.textMargin:o=0;for(var s=0,u=0,c=0;c<a.length;c++)u=c*n.width+i.barcodePadding,a[c]==="1"?s++:s>0&&(this.drawRect(u-n.width*s,o,n.width*s,n.height,e),s=0);s>0&&this.drawRect(u-n.width*(s-1),o,n.width*s,n.height,e)}},{key:"drawSVGText",value:function(e,n,i){var a=this.document.createElementNS(lh,"text");if(n.displayValue){var o,s;a.setAttribute("style","font:"+n.fontOptions+" "+n.fontSize+"px "+n.font),n.textPosition=="top"?s=n.fontSize-n.textMargin:s=n.height+n.textMargin+n.fontSize,n.textAlign=="left"||i.barcodePadding>0?(o=0,a.setAttribute("text-anchor","start")):n.textAlign=="right"?(o=i.width-1,a.setAttribute("text-anchor","end")):(o=i.width/2,a.setAttribute("text-anchor","middle")),a.setAttribute("x",o),a.setAttribute("y",s),a.appendChild(this.document.createTextNode(i.text)),e.appendChild(a)}}},{key:"setSvgAttributes",value:function(e,n){var i=this.svg;i.setAttribute("width",e+"px"),i.setAttribute("height",n+"px"),i.setAttribute("x","0px"),i.setAttribute("y","0px"),i.setAttribute("viewBox","0 0 "+e+" "+n),i.setAttribute("xmlns",lh),i.setAttribute("version","1.1"),i.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(e,n,i){var a=this.document.createElementNS(lh,"g");return a.setAttribute("transform","translate("+e+", "+n+")"),i.appendChild(a),a}},{key:"setGroupOptions",value:function(e,n){e.setAttribute("style","fill:"+n.lineColor+";")}},{key:"drawRect",value:function(e,n,i,a,o){var s=this.document.createElementNS(lh,"rect");return s.setAttribute("x",e),s.setAttribute("y",n),s.setAttribute("width",i),s.setAttribute("height",a),o.appendChild(s),s}}]),r}();b0.default=iI;var x0={};Object.defineProperty(x0,"__esModule",{value:!0});var aI=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}();function oI(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}var sI=function(){function r(t,e,n){oI(this,r),this.object=t,this.encodings=e,this.options=n}return aI(r,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),r}();x0.default=sI;Object.defineProperty(g0,"__esModule",{value:!0});var uI=v0,cI=_0(uI),lI=b0,fI=_0(lI),hI=x0,dI=_0(hI);function _0(r){return r&&r.__esModule?r:{default:r}}g0.default={CanvasRenderer:cI.default,SVGRenderer:fI.default,ObjectRenderer:dI.default};var gu={};Object.defineProperty(gu,"__esModule",{value:!0});function E0(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function A0(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function T0(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var pI=function(r){T0(t,r);function t(e,n){E0(this,t);var i=A0(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.name="InvalidInputException",i.symbology=e,i.input=n,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return t}(Error),mI=function(r){T0(t,r);function t(){E0(this,t);var e=A0(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.name="InvalidElementException",e.message="Not supported type to render on",e}return t}(Error),gI=function(r){T0(t,r);function t(){E0(this,t);var e=A0(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.name="NoElementException",e.message="No element to render on.",e}return t}(Error);gu.InvalidInputException=pI;gu.InvalidElementException=mI;gu.NoElementException=gI;Object.defineProperty(p0,"__esModule",{value:!0});var vI=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},yI=m0,S0=Oy(yI),bI=g0,Hc=Oy(bI),wI=gu;function Oy(r){return r&&r.__esModule?r:{default:r}}function D0(r){if(typeof r=="string")return xI(r);if(Array.isArray(r)){for(var t=[],e=0;e<r.length;e++)t.push(D0(r[e]));return t}else{if(typeof HTMLCanvasElement!="undefined"&&r instanceof HTMLImageElement)return _I(r);if(r&&r.nodeName&&r.nodeName.toLowerCase()==="svg"||typeof SVGElement!="undefined"&&r instanceof SVGElement)return{element:r,options:(0,S0.default)(r),renderer:Hc.default.SVGRenderer};if(typeof HTMLCanvasElement!="undefined"&&r instanceof HTMLCanvasElement)return{element:r,options:(0,S0.default)(r),renderer:Hc.default.CanvasRenderer};if(r&&r.getContext)return{element:r,renderer:Hc.default.CanvasRenderer};if(r&&(typeof r=="undefined"?"undefined":vI(r))==="object"&&!r.nodeName)return{element:r,renderer:Hc.default.ObjectRenderer};throw new wI.InvalidElementException}}function xI(r){var t=document.querySelectorAll(r);if(t.length!==0){for(var e=[],n=0;n<t.length;n++)e.push(D0(t[n]));return e}}function _I(r){var t=document.createElement("canvas");return{element:t,options:(0,S0.default)(r),renderer:Hc.default.CanvasRenderer,afterRender:function(){r.setAttribute("src",t.toDataURL())}}}p0.default=D0;var C0={};Object.defineProperty(C0,"__esModule",{value:!0});var EI=function(){function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}();function AI(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}var TI=function(){function r(t){AI(this,r),this.api=t}return EI(r,[{key:"handleCatch",value:function(e){if(e.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw e.message;else throw e;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(e){try{var n=e.apply(void 0,arguments);return this.api._options.valid(!0),n}catch(i){return this.handleCatch(i),this.api}}}]),r}();C0.default=TI;var SI=$p,Ds=Go(SI),DI=mu,$c=Go(DI),CI=h0,Iy=Go(CI),OI=d0,ky=Go(OI),II=p0,kI=Go(II),RI=uh,FI=Go(RI),NI=C0,MI=Go(NI),Ry=gu,BI=ch,Fy=Go(BI);function Go(r){return r&&r.__esModule?r:{default:r}}var ho=function(){},fh=function(t,e,n){var i=new ho;if(typeof t=="undefined")throw Error("No element to render on was provided.");return i._renderProperties=(0,kI.default)(t),i._encodings=[],i._options=Fy.default,i._errorHandler=new MI.default(i),typeof e!="undefined"&&(n=n||{},n.format||(n.format=By()),i.options(n)[n.format](e,n).render()),i};fh.getModule=function(r){return Ds.default[r]};for(var Ny in Ds.default)Ds.default.hasOwnProperty(Ny)&&UI(Ds.default,Ny);function UI(r,t){ho.prototype[t]=ho.prototype[t.toUpperCase()]=ho.prototype[t.toLowerCase()]=function(e,n){var i=this;return i._errorHandler.wrapBarcodeCall(function(){n.text=typeof n.text=="undefined"?void 0:""+n.text;var a=(0,$c.default)(i._options,n);a=(0,FI.default)(a);var o=r[t],s=My(e,o,a);return i._encodings.push(s),i})}}function My(r,t,e){r=""+r;var n=new t(r,e);if(!n.valid())throw new Ry.InvalidInputException(n.constructor.name,r);var i=n.encode();i=(0,Iy.default)(i);for(var a=0;a<i.length;a++)i[a].options=(0,$c.default)(e,i[a].options);return i}function By(){return Ds.default.CODE128?"CODE128":Object.keys(Ds.default)[0]}ho.prototype.options=function(r){return this._options=(0,$c.default)(this._options,r),this};ho.prototype.blank=function(r){var t=new Array(r+1).join("0");return this._encodings.push({data:t}),this};ho.prototype.init=function(){if(!!this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var r;for(var t in this._renderProperties){r=this._renderProperties[t];var e=(0,$c.default)(this._options,r.options);e.format=="auto"&&(e.format=By()),this._errorHandler.wrapBarcodeCall(function(){var n=e.value,i=Ds.default[e.format.toUpperCase()],a=My(n,i,e);O0(r,a,e)})}}};ho.prototype.render=function(){if(!this._renderProperties)throw new Ry.NoElementException;if(Array.isArray(this._renderProperties))for(var r=0;r<this._renderProperties.length;r++)O0(this._renderProperties[r],this._encodings,this._options);else O0(this._renderProperties,this._encodings,this._options);return this};ho.prototype._defaults=Fy.default;function O0(r,t,e){t=(0,Iy.default)(t);for(var n=0;n<t.length;n++)t[n].options=(0,$c.default)(e,t[n].options),(0,ky.default)(t[n].options);(0,ky.default)(e);var i=r.renderer,a=new i(r.element,t,e);a.render(),r.afterRender&&r.afterRender()}typeof window!="undefined"&&(window.JsBarcode=fh);typeof jQuery!="undefined"&&(jQuery.fn.JsBarcode=function(r,t){var e=[];return jQuery(this).each(function(){e.push(this)}),fh(e,r,t)});var hX=fh;function PI(r,t){var e=Object.setPrototypeOf;e?e(r,t):r.__proto__=t}function LI(r,t){t===void 0&&(t=r.constructor);var e=Error.captureStackTrace;e&&e(r,t)}var jI=function(){var r=function(e,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])},r(e,n)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),WI=function(r){jI(t,r);function t(e,n){var i=this.constructor,a=r.call(this,e,n)||this;return Object.defineProperty(a,"name",{value:i.name,enumerable:!1,configurable:!0}),PI(a,i.prototype),LI(a),a}return t}(Error),zI=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ai=function(r){zI(t,r);function t(e){e===void 0&&(e=void 0);var n=r.call(this,e)||this;return n.message=e,n}return t.prototype.getKind=function(){var e=this.constructor;return e.kind},t.kind="Exception",t}(WI),HI=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),cn=function(r){HI(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.kind="ArgumentException",t}(Ai),$I=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ut=function(r){$I(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.kind="IllegalArgumentException",t}(Ai),Uy=function(){function r(t){if(this.binarizer=t,t===null)throw new Ut("Binarizer must be non-null.")}return r.prototype.getWidth=function(){return this.binarizer.getWidth()},r.prototype.getHeight=function(){return this.binarizer.getHeight()},r.prototype.getBlackRow=function(t,e){return this.binarizer.getBlackRow(t,e)},r.prototype.getBlackMatrix=function(){return(this.matrix===null||this.matrix===void 0)&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},r.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},r.prototype.crop=function(t,e,n,i){var a=this.binarizer.getLuminanceSource().crop(t,e,n,i);return new r(this.binarizer.createBinarizer(a))},r.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},r.prototype.rotateCounterClockwise=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new r(this.binarizer.createBinarizer(t))},r.prototype.rotateCounterClockwise45=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new r(this.binarizer.createBinarizer(t))},r.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch{return""}},r}(),VI=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),bn=function(r){VI(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.getChecksumInstance=function(){return new t},t.kind="ChecksumException",t}(Ai),qI=function(){function r(t){this.source=t}return r.prototype.getLuminanceSource=function(){return this.source},r.prototype.getWidth=function(){return this.source.getWidth()},r.prototype.getHeight=function(){return this.source.getHeight()},r}(),zr=function(){function r(){}return r.arraycopy=function(t,e,n,i,a){for(;a--;)n[i++]=t[e++]},r.currentTimeMillis=function(){return Date.now()},r}(),GI=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),I0=function(r){GI(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.kind="IndexOutOfBoundsException",t}(Ai),XI=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Py=function(r){XI(t,r);function t(e,n){e===void 0&&(e=void 0),n===void 0&&(n=void 0);var i=r.call(this,n)||this;return i.index=e,i.message=n,i}return t.kind="ArrayIndexOutOfBoundsException",t}(I0),KI=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Tn=function(){function r(){}return r.fill=function(t,e){for(var n=0,i=t.length;n<i;n++)t[n]=e},r.fillWithin=function(t,e,n,i){r.rangeCheck(t.length,e,n);for(var a=e;a<n;a++)t[a]=i},r.rangeCheck=function(t,e,n){if(e>n)throw new Ut("fromIndex("+e+") > toIndex("+n+")");if(e<0)throw new Py(e);if(n>t)throw new Py(n)},r.asList=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t},r.create=function(t,e,n){var i=Array.from({length:t});return i.map(function(a){return Array.from({length:e}).fill(n)})},r.createInt32Array=function(t,e,n){var i=Array.from({length:t});return i.map(function(a){return Int32Array.from({length:e}).fill(n)})},r.equals=function(t,e){if(!t||!e||!t.length||!e.length||t.length!==e.length)return!1;for(var n=0,i=t.length;n<i;n++)if(t[n]!==e[n])return!1;return!0},r.hashCode=function(t){var e,n;if(t===null)return 0;var i=1;try{for(var a=KI(t),o=a.next();!o.done;o=a.next()){var s=o.value;i=31*i+s}}catch(u){e={error:u}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i},r.fillUint8Array=function(t,e){for(var n=0;n!==t.length;n++)t[n]=e},r.copyOf=function(t,e){return t.slice(0,e)},r.copyOfUint8Array=function(t,e){if(t.length<=e){var n=new Uint8Array(e);return n.set(t),n}return t.slice(0,e)},r.copyOfRange=function(t,e,n){var i=n-e,a=new Int32Array(i);return zr.arraycopy(t,e,a,0,i),a},r.binarySearch=function(t,e,n){n===void 0&&(n=r.numberComparator);for(var i=0,a=t.length-1;i<=a;){var o=a+i>>1,s=n(e,t[o]);if(s>0)i=o+1;else if(s<0)a=o-1;else return o}return-i-1},r.numberComparator=function(t,e){return t-e},r}(),ln=function(){function r(){}return r.numberOfTrailingZeros=function(t){var e;if(t===0)return 32;var n=31;return e=t<<16,e!==0&&(n-=16,t=e),e=t<<8,e!==0&&(n-=8,t=e),e=t<<4,e!==0&&(n-=4,t=e),e=t<<2,e!==0&&(n-=2,t=e),n-(t<<1>>>31)},r.numberOfLeadingZeros=function(t){if(t===0)return 32;var e=1;return t>>>16==0&&(e+=16,t<<=16),t>>>24==0&&(e+=8,t<<=8),t>>>28==0&&(e+=4,t<<=4),t>>>30==0&&(e+=2,t<<=2),e-=t>>>31,e},r.toHexString=function(t){return t.toString(16)},r.toBinaryString=function(t){return String(parseInt(String(t),2))},r.bitCount=function(t){return t=t-(t>>>1&1431655765),t=(t&858993459)+(t>>>2&858993459),t=t+(t>>>4)&252645135,t=t+(t>>>8),t=t+(t>>>16),t&63},r.truncDivision=function(t,e){return Math.trunc(t/e)},r.parseInt=function(t,e){return e===void 0&&(e=void 0),parseInt(t,e)},r.MIN_VALUE_32_BITS=-2147483648,r.MAX_VALUE=Number.MAX_SAFE_INTEGER,r}(),Ti=function(){function r(t,e){t===void 0?(this.size=0,this.bits=new Int32Array(1)):(this.size=t,e==null?this.bits=r.makeArray(t):this.bits=e)}return r.prototype.getSize=function(){return this.size},r.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},r.prototype.ensureCapacity=function(t){if(t>this.bits.length*32){var e=r.makeArray(t);zr.arraycopy(this.bits,0,e,0,this.bits.length),this.bits=e}},r.prototype.get=function(t){return(this.bits[Math.floor(t/32)]&1<<(t&31))!=0},r.prototype.set=function(t){this.bits[Math.floor(t/32)]|=1<<(t&31)},r.prototype.flip=function(t){this.bits[Math.floor(t/32)]^=1<<(t&31)},r.prototype.getNextSet=function(t){var e=this.size;if(t>=e)return e;var n=this.bits,i=Math.floor(t/32),a=n[i];a&=~((1<<(t&31))-1);for(var o=n.length;a===0;){if(++i===o)return e;a=n[i]}var s=i*32+ln.numberOfTrailingZeros(a);return s>e?e:s},r.prototype.getNextUnset=function(t){var e=this.size;if(t>=e)return e;var n=this.bits,i=Math.floor(t/32),a=~n[i];a&=~((1<<(t&31))-1);for(var o=n.length;a===0;){if(++i===o)return e;a=~n[i]}var s=i*32+ln.numberOfTrailingZeros(a);return s>e?e:s},r.prototype.setBulk=function(t,e){this.bits[Math.floor(t/32)]=e},r.prototype.setRange=function(t,e){if(e<t||t<0||e>this.size)throw new Ut;if(e!==t){e--;for(var n=Math.floor(t/32),i=Math.floor(e/32),a=this.bits,o=n;o<=i;o++){var s=o>n?0:t&31,u=o<i?31:e&31,c=(2<<u)-(1<<s);a[o]|=c}}},r.prototype.clear=function(){for(var t=this.bits.length,e=this.bits,n=0;n<t;n++)e[n]=0},r.prototype.isRange=function(t,e,n){if(e<t||t<0||e>this.size)throw new Ut;if(e===t)return!0;e--;for(var i=Math.floor(t/32),a=Math.floor(e/32),o=this.bits,s=i;s<=a;s++){var u=s>i?0:t&31,c=s<a?31:e&31,l=(2<<c)-(1<<u)&4294967295;if((o[s]&l)!==(n?l:0))return!1}return!0},r.prototype.appendBit=function(t){this.ensureCapacity(this.size+1),t&&(this.bits[Math.floor(this.size/32)]|=1<<(this.size&31)),this.size++},r.prototype.appendBits=function(t,e){if(e<0||e>32)throw new Ut("Num bits must be between 0 and 32");this.ensureCapacity(this.size+e);for(var n=e;n>0;n--)this.appendBit((t>>n-1&1)==1)},r.prototype.appendBitArray=function(t){var e=t.size;this.ensureCapacity(this.size+e);for(var n=0;n<e;n++)this.appendBit(t.get(n))},r.prototype.xor=function(t){if(this.size!==t.size)throw new Ut("Sizes don't match");for(var e=this.bits,n=0,i=e.length;n<i;n++)e[n]^=t.bits[n]},r.prototype.toBytes=function(t,e,n,i){for(var a=0;a<i;a++){for(var o=0,s=0;s<8;s++)this.get(t)&&(o|=1<<7-s),t++;e[n+a]=o}},r.prototype.getBitArray=function(){return this.bits},r.prototype.reverse=function(){for(var t=new Int32Array(this.bits.length),e=Math.floor((this.size-1)/32),n=e+1,i=this.bits,a=0;a<n;a++){var o=i[a];o=o>>1&1431655765|(o&1431655765)<<1,o=o>>2&858993459|(o&858993459)<<2,o=o>>4&252645135|(o&252645135)<<4,o=o>>8&16711935|(o&16711935)<<8,o=o>>16&65535|(o&65535)<<16,t[e-a]=o}if(this.size!==n*32){for(var s=n*32-this.size,u=t[0]>>>s,a=1;a<n;a++){var c=t[a];u|=c<<32-s,t[a-1]=u,u=c>>>s}t[n-1]=u}this.bits=t},r.makeArray=function(t){return new Int32Array(Math.floor((t+31)/32))},r.prototype.equals=function(t){if(!(t instanceof r))return!1;var e=t;return this.size===e.size&&Tn.equals(this.bits,e.bits)},r.prototype.hashCode=function(){return 31*this.size+Tn.hashCode(this.bits)},r.prototype.toString=function(){for(var t="",e=0,n=this.size;e<n;e++)(e&7)==0&&(t+=" "),t+=this.get(e)?"X":".";return t},r.prototype.clone=function(){return new r(this.size,this.bits.slice())},r.prototype.toArray=function(){for(var t=[],e=0,n=this.size;e<n;e++)t.push(this.get(e));return t},r}(),k0;(function(r){r[r.OTHER=0]="OTHER",r[r.PURE_BARCODE=1]="PURE_BARCODE",r[r.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS",r[r.TRY_HARDER=3]="TRY_HARDER",r[r.CHARACTER_SET=4]="CHARACTER_SET",r[r.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS",r[r.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT",r[r.ENABLE_CODE_39_EXTENDED_MODE=7]="ENABLE_CODE_39_EXTENDED_MODE",r[r.ASSUME_GS1=8]="ASSUME_GS1",r[r.RETURN_CODABAR_START_END=9]="RETURN_CODABAR_START_END",r[r.NEED_RESULT_POINT_CALLBACK=10]="NEED_RESULT_POINT_CALLBACK",r[r.ALLOWED_EAN_EXTENSIONS=11]="ALLOWED_EAN_EXTENSIONS"})(k0||(k0={}));var Hr=k0,ZI=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ct=function(r){ZI(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.getFormatInstance=function(){return new t},t.kind="FormatException",t}(Ai),YI=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Or;(function(r){r[r.Cp437=0]="Cp437",r[r.ISO8859_1=1]="ISO8859_1",r[r.ISO8859_2=2]="ISO8859_2",r[r.ISO8859_3=3]="ISO8859_3",r[r.ISO8859_4=4]="ISO8859_4",r[r.ISO8859_5=5]="ISO8859_5",r[r.ISO8859_6=6]="ISO8859_6",r[r.ISO8859_7=7]="ISO8859_7",r[r.ISO8859_8=8]="ISO8859_8",r[r.ISO8859_9=9]="ISO8859_9",r[r.ISO8859_10=10]="ISO8859_10",r[r.ISO8859_11=11]="ISO8859_11",r[r.ISO8859_13=12]="ISO8859_13",r[r.ISO8859_14=13]="ISO8859_14",r[r.ISO8859_15=14]="ISO8859_15",r[r.ISO8859_16=15]="ISO8859_16",r[r.SJIS=16]="SJIS",r[r.Cp1250=17]="Cp1250",r[r.Cp1251=18]="Cp1251",r[r.Cp1252=19]="Cp1252",r[r.Cp1256=20]="Cp1256",r[r.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",r[r.UTF8=22]="UTF8",r[r.ASCII=23]="ASCII",r[r.Big5=24]="Big5",r[r.GB18030=25]="GB18030",r[r.EUC_KR=26]="EUC_KR"})(Or||(Or={}));var Sn=function(){function r(t,e,n){for(var i,a,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];this.valueIdentifier=t,this.name=n,typeof e=="number"?this.values=Int32Array.from([e]):this.values=e,this.otherEncodingNames=o,r.VALUE_IDENTIFIER_TO_ECI.set(t,this),r.NAME_TO_ECI.set(n,this);for(var u=this.values,c=0,l=u.length;c!==l;c++){var d=u[c];r.VALUES_TO_ECI.set(d,this)}try{for(var h=YI(o),f=h.next();!f.done;f=h.next()){var g=f.value;r.NAME_TO_ECI.set(g,this)}}catch(m){i={error:m}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}}return r.prototype.getValueIdentifier=function(){return this.valueIdentifier},r.prototype.getName=function(){return this.name},r.prototype.getValue=function(){return this.values[0]},r.getCharacterSetECIByValue=function(t){if(t<0||t>=900)throw new ct("incorect value");var e=r.VALUES_TO_ECI.get(t);if(e===void 0)throw new ct("incorect value");return e},r.getCharacterSetECIByName=function(t){var e=r.NAME_TO_ECI.get(t);if(e===void 0)throw new ct("incorect value");return e},r.prototype.equals=function(t){if(!(t instanceof r))return!1;var e=t;return this.getName()===e.getName()},r.VALUE_IDENTIFIER_TO_ECI=new Map,r.VALUES_TO_ECI=new Map,r.NAME_TO_ECI=new Map,r.Cp437=new r(Or.Cp437,Int32Array.from([0,2]),"Cp437"),r.ISO8859_1=new r(Or.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),r.ISO8859_2=new r(Or.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),r.ISO8859_3=new r(Or.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),r.ISO8859_4=new r(Or.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),r.ISO8859_5=new r(Or.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),r.ISO8859_6=new r(Or.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),r.ISO8859_7=new r(Or.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),r.ISO8859_8=new r(Or.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),r.ISO8859_9=new r(Or.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),r.ISO8859_10=new r(Or.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),r.ISO8859_11=new r(Or.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),r.ISO8859_13=new r(Or.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),r.ISO8859_14=new r(Or.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),r.ISO8859_15=new r(Or.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),r.ISO8859_16=new r(Or.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),r.SJIS=new r(Or.SJIS,20,"SJIS","Shift_JIS"),r.Cp1250=new r(Or.Cp1250,21,"Cp1250","windows-1250"),r.Cp1251=new r(Or.Cp1251,22,"Cp1251","windows-1251"),r.Cp1252=new r(Or.Cp1252,23,"Cp1252","windows-1252"),r.Cp1256=new r(Or.Cp1256,24,"Cp1256","windows-1256"),r.UnicodeBigUnmarked=new r(Or.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),r.UTF8=new r(Or.UTF8,26,"UTF8","UTF-8"),r.ASCII=new r(Or.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),r.Big5=new r(Or.Big5,28,"Big5"),r.GB18030=new r(Or.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),r.EUC_KR=new r(Or.EUC_KR,30,"EUC_KR","EUC-KR"),r}(),JI=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),hh=function(r){JI(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.kind="UnsupportedOperationException",t}(Ai),ta=function(){function r(){}return r.decode=function(t,e){var n=this.encodingName(e);return this.customDecoder?this.customDecoder(t,n):typeof TextDecoder=="undefined"||this.shouldDecodeOnFallback(n)?this.decodeFallback(t,n):new TextDecoder(n).decode(t)},r.shouldDecodeOnFallback=function(t){return!r.isBrowser()&&t==="ISO-8859-1"},r.encode=function(t,e){var n=this.encodingName(e);return this.customEncoder?this.customEncoder(t,n):typeof TextEncoder=="undefined"?this.encodeFallback(t):new TextEncoder().encode(t)},r.isBrowser=function(){return typeof window!="undefined"&&{}.toString.call(window)==="[object Window]"},r.encodingName=function(t){return typeof t=="string"?t:t.getName()},r.encodingCharacterSet=function(t){return t instanceof Sn?t:Sn.getCharacterSetECIByName(t)},r.decodeFallback=function(t,e){var n=this.encodingCharacterSet(e);if(r.isDecodeFallbackSupported(n)){for(var i="",a=0,o=t.length;a<o;a++){var s=t[a].toString(16);s.length<2&&(s="0"+s),i+="%"+s}return decodeURIComponent(i)}if(n.equals(Sn.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(t.buffer));throw new hh("Encoding "+this.encodingName(e)+" not supported by fallback.")},r.isDecodeFallbackSupported=function(t){return t.equals(Sn.UTF8)||t.equals(Sn.ISO8859_1)||t.equals(Sn.ASCII)},r.encodeFallback=function(t){for(var e=btoa(unescape(encodeURIComponent(t))),n=e.split(""),i=[],a=0;a<n.length;a++)i.push(n[a].charCodeAt(0));return new Uint8Array(i)},r}(),$r=function(){function r(){}return r.castAsNonUtf8Char=function(t,e){e===void 0&&(e=null);var n=e?e.getName():this.ISO88591;return ta.decode(new Uint8Array([t]),n)},r.guessEncoding=function(t,e){if(e!=null&&e.get(Hr.CHARACTER_SET)!==void 0)return e.get(Hr.CHARACTER_SET).toString();for(var n=t.length,i=!0,a=!0,o=!0,s=0,u=0,c=0,l=0,d=0,h=0,f=0,g=0,m=0,p=0,y=0,v=t.length>3&&t[0]===239&&t[1]===187&&t[2]===191,b=0;b<n&&(i||a||o);b++){var A=t[b]&255;o&&(s>0?(A&128)==0?o=!1:s--:(A&128)!=0&&((A&64)==0?o=!1:(s++,(A&32)==0?u++:(s++,(A&16)==0?c++:(s++,(A&8)==0?l++:o=!1))))),i&&(A>127&&A<160?i=!1:A>159&&(A<192||A===215||A===247)&&y++),a&&(d>0?A<64||A===127||A>252?a=!1:d--:A===128||A===160||A>239?a=!1:A>160&&A<224?(h++,g=0,f++,f>m&&(m=f)):A>127?(d++,f=0,g++,g>p&&(p=g)):(f=0,g=0))}return o&&s>0&&(o=!1),a&&d>0&&(a=!1),o&&(v||u+c+l>0)?r.UTF8:a&&(r.ASSUME_SHIFT_JIS||m>=3||p>=3)?r.SHIFT_JIS:i&&a?m===2&&h===2||y*10>=n?r.SHIFT_JIS:r.ISO88591:i?r.ISO88591:a?r.SHIFT_JIS:o?r.UTF8:r.PLATFORM_DEFAULT_ENCODING},r.format=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=-1;function a(s,u,c,l,d,h){if(s==="%%")return"%";if(e[++i]!==void 0){s=l?parseInt(l.substr(1)):void 0;var f=d?parseInt(d.substr(1)):void 0,g;switch(h){case"s":g=e[i];break;case"c":g=e[i][0];break;case"f":g=parseFloat(e[i]).toFixed(s);break;case"p":g=parseFloat(e[i]).toPrecision(s);break;case"e":g=parseFloat(e[i]).toExponential(s);break;case"x":g=parseInt(e[i]).toString(f||16);break;case"d":g=parseFloat(parseInt(e[i],f||10).toPrecision(s)).toFixed(0);break}g=typeof g=="object"?JSON.stringify(g):(+g).toString(f);for(var m=parseInt(c),p=c&&c[0]+""=="0"?"0":" ";g.length<m;)g=u!==void 0?g+p:p+g;return g}}var o=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return t.replace(o,a)},r.getBytes=function(t,e){return ta.encode(t,e)},r.getCharCode=function(t,e){return e===void 0&&(e=0),t.charCodeAt(e)},r.getCharAt=function(t){return String.fromCharCode(t)},r.SHIFT_JIS=Sn.SJIS.getName(),r.GB2312="GB2312",r.ISO88591=Sn.ISO8859_1.getName(),r.EUC_JP="EUC_JP",r.UTF8=Sn.UTF8.getName(),r.PLATFORM_DEFAULT_ENCODING=r.UTF8,r.ASSUME_SHIFT_JIS=!1,r}(),er=function(){function r(t){t===void 0&&(t=""),this.value=t}return r.prototype.enableDecoding=function(t){return this.encoding=t,this},r.prototype.append=function(t){return typeof t=="string"?this.value+=t.toString():this.encoding?this.value+=$r.castAsNonUtf8Char(t,this.encoding):this.value+=String.fromCharCode(t),this},r.prototype.appendChars=function(t,e,n){for(var i=e;e<e+n;i++)this.append(t[i]);return this},r.prototype.length=function(){return this.value.length},r.prototype.charAt=function(t){return this.value.charAt(t)},r.prototype.deleteCharAt=function(t){this.value=this.value.substr(0,t)+this.value.substring(t+1)},r.prototype.setCharAt=function(t,e){this.value=this.value.substr(0,t)+e+this.value.substr(t+1)},r.prototype.substring=function(t,e){return this.value.substring(t,e)},r.prototype.setLengthToZero=function(){this.value=""},r.prototype.toString=function(){return this.value},r.prototype.insert=function(t,e){this.value=this.value.substring(0,t)+e+this.value.substring(t)},r}(),po=function(){function r(t,e,n,i){if(this.width=t,this.height=e,this.rowSize=n,this.bits=i,e==null&&(e=t),this.height=e,t<1||e<1)throw new Ut("Both dimensions must be greater than 0");n==null&&(n=Math.floor((t+31)/32)),this.rowSize=n,i==null&&(this.bits=new Int32Array(this.rowSize*this.height))}return r.parseFromBooleanArray=function(t){for(var e=t.length,n=t[0].length,i=new r(n,e),a=0;a<e;a++)for(var o=t[a],s=0;s<n;s++)o[s]&&i.set(s,a);return i},r.parseFromString=function(t,e,n){if(t===null)throw new Ut("stringRepresentation cannot be null");for(var i=new Array(t.length),a=0,o=0,s=-1,u=0,c=0;c<t.length;)if(t.charAt(c)===`
`||t.charAt(c)==="\r"){if(a>o){if(s===-1)s=a-o;else if(a-o!==s)throw new Ut("row lengths do not match");o=a,u++}c++}else if(t.substring(c,c+e.length)===e)c+=e.length,i[a]=!0,a++;else if(t.substring(c,c+n.length)===n)c+=n.length,i[a]=!1,a++;else throw new Ut("illegal character encountered: "+t.substring(c));if(a>o){if(s===-1)s=a-o;else if(a-o!==s)throw new Ut("row lengths do not match");u++}for(var l=new r(s,u),d=0;d<a;d++)i[d]&&l.set(Math.floor(d%s),Math.floor(d/s));return l},r.prototype.get=function(t,e){var n=e*this.rowSize+Math.floor(t/32);return(this.bits[n]>>>(t&31)&1)!=0},r.prototype.set=function(t,e){var n=e*this.rowSize+Math.floor(t/32);this.bits[n]|=1<<(t&31)&4294967295},r.prototype.unset=function(t,e){var n=e*this.rowSize+Math.floor(t/32);this.bits[n]&=~(1<<(t&31)&4294967295)},r.prototype.flip=function(t,e){var n=e*this.rowSize+Math.floor(t/32);this.bits[n]^=1<<(t&31)&4294967295},r.prototype.xor=function(t){if(this.width!==t.getWidth()||this.height!==t.getHeight()||this.rowSize!==t.getRowSize())throw new Ut("input matrix dimensions do not match");for(var e=new Ti(Math.floor(this.width/32)+1),n=this.rowSize,i=this.bits,a=0,o=this.height;a<o;a++)for(var s=a*n,u=t.getRow(a,e).getBitArray(),c=0;c<n;c++)i[s+c]^=u[c]},r.prototype.clear=function(){for(var t=this.bits,e=t.length,n=0;n<e;n++)t[n]=0},r.prototype.setRegion=function(t,e,n,i){if(e<0||t<0)throw new Ut("Left and top must be nonnegative");if(i<1||n<1)throw new Ut("Height and width must be at least 1");var a=t+n,o=e+i;if(o>this.height||a>this.width)throw new Ut("The region must fit inside the matrix");for(var s=this.rowSize,u=this.bits,c=e;c<o;c++)for(var l=c*s,d=t;d<a;d++)u[l+Math.floor(d/32)]|=1<<(d&31)&4294967295},r.prototype.getRow=function(t,e){e==null||e.getSize()<this.width?e=new Ti(this.width):e.clear();for(var n=this.rowSize,i=this.bits,a=t*n,o=0;o<n;o++)e.setBulk(o*32,i[a+o]);return e},r.prototype.setRow=function(t,e){zr.arraycopy(e.getBitArray(),0,this.bits,t*this.rowSize,this.rowSize)},r.prototype.rotate180=function(){for(var t=this.getWidth(),e=this.getHeight(),n=new Ti(t),i=new Ti(t),a=0,o=Math.floor((e+1)/2);a<o;a++)n=this.getRow(a,n),i=this.getRow(e-1-a,i),n.reverse(),i.reverse(),this.setRow(a,i),this.setRow(e-1-a,n)},r.prototype.getEnclosingRectangle=function(){for(var t=this.width,e=this.height,n=this.rowSize,i=this.bits,a=t,o=e,s=-1,u=-1,c=0;c<e;c++)for(var l=0;l<n;l++){var d=i[c*n+l];if(d!==0){if(c<o&&(o=c),c>u&&(u=c),l*32<a){for(var h=0;(d<<31-h&4294967295)==0;)h++;l*32+h<a&&(a=l*32+h)}if(l*32+31>s){for(var h=31;d>>>h==0;)h--;l*32+h>s&&(s=l*32+h)}}}return s<a||u<o?null:Int32Array.from([a,o,s-a+1,u-o+1])},r.prototype.getTopLeftOnBit=function(){for(var t=this.rowSize,e=this.bits,n=0;n<e.length&&e[n]===0;)n++;if(n===e.length)return null;for(var i=n/t,a=n%t*32,o=e[n],s=0;(o<<31-s&4294967295)==0;)s++;return a+=s,Int32Array.from([a,i])},r.prototype.getBottomRightOnBit=function(){for(var t=this.rowSize,e=this.bits,n=e.length-1;n>=0&&e[n]===0;)n--;if(n<0)return null;for(var i=Math.floor(n/t),a=Math.floor(n%t)*32,o=e[n],s=31;o>>>s==0;)s--;return a+=s,Int32Array.from([a,i])},r.prototype.getWidth=function(){return this.width},r.prototype.getHeight=function(){return this.height},r.prototype.getRowSize=function(){return this.rowSize},r.prototype.equals=function(t){if(!(t instanceof r))return!1;var e=t;return this.width===e.width&&this.height===e.height&&this.rowSize===e.rowSize&&Tn.equals(this.bits,e.bits)},r.prototype.hashCode=function(){var t=this.width;return t=31*t+this.width,t=31*t+this.height,t=31*t+this.rowSize,t=31*t+Tn.hashCode(this.bits),t},r.prototype.toString=function(t,e,n){return t===void 0&&(t="X "),e===void 0&&(e=" "),n===void 0&&(n=`
`),this.buildToString(t,e,n)},r.prototype.buildToString=function(t,e,n){for(var i=new er,a=0,o=this.height;a<o;a++){for(var s=0,u=this.width;s<u;s++)i.append(this.get(s,a)?t:e);i.append(n)}return i.toString()},r.prototype.clone=function(){return new r(this.width,this.height,this.rowSize,this.bits.slice())},r}(),QI=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ze=function(r){QI(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.getNotFoundInstance=function(){return new t},t.kind="NotFoundException",t}(Ai),ek=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),tk=function(r){ek(t,r);function t(e){var n=r.call(this,e)||this;return n.luminances=t.EMPTY,n.buckets=new Int32Array(t.LUMINANCE_BUCKETS),n}return t.prototype.getBlackRow=function(e,n){var i=this.getLuminanceSource(),a=i.getWidth();n==null||n.getSize()<a?n=new Ti(a):n.clear(),this.initArrays(a);for(var o=i.getRow(e,this.luminances),s=this.buckets,u=0;u<a;u++)s[(o[u]&255)>>t.LUMINANCE_SHIFT]++;var c=t.estimateBlackPoint(s);if(a<3)for(var u=0;u<a;u++)(o[u]&255)<c&&n.set(u);else for(var l=o[0]&255,d=o[1]&255,u=1;u<a-1;u++){var h=o[u+1]&255;(d*4-l-h)/2<c&&n.set(u),l=d,d=h}return n},t.prototype.getBlackMatrix=function(){var e=this.getLuminanceSource(),n=e.getWidth(),i=e.getHeight(),a=new po(n,i);this.initArrays(n);for(var o=this.buckets,s=1;s<5;s++)for(var u=Math.floor(i*s/5),c=e.getRow(u,this.luminances),l=Math.floor(n*4/5),d=Math.floor(n/5);d<l;d++){var h=c[d]&255;o[h>>t.LUMINANCE_SHIFT]++}for(var f=t.estimateBlackPoint(o),g=e.getMatrix(),s=0;s<i;s++)for(var m=s*n,d=0;d<n;d++){var h=g[m+d]&255;h<f&&a.set(d,s)}return a},t.prototype.createBinarizer=function(e){return new t(e)},t.prototype.initArrays=function(e){this.luminances.length<e&&(this.luminances=new Uint8ClampedArray(e));for(var n=this.buckets,i=0;i<t.LUMINANCE_BUCKETS;i++)n[i]=0},t.estimateBlackPoint=function(e){for(var n=e.length,i=0,a=0,o=0,s=0;s<n;s++)e[s]>o&&(a=s,o=e[s]),e[s]>i&&(i=e[s]);for(var u=0,c=0,s=0;s<n;s++){var l=s-a,d=e[s]*l*l;d>c&&(u=s,c=d)}if(a>u){var h=a;a=u,u=h}if(u-a<=n/16)throw new ze;for(var f=u-1,g=-1,s=u-1;s>a;s--){var m=s-a,d=m*m*(u-s)*(i-e[s]);d>g&&(f=s,g=d)}return f<<t.LUMINANCE_SHIFT},t.LUMINANCE_BITS=5,t.LUMINANCE_SHIFT=8-t.LUMINANCE_BITS,t.LUMINANCE_BUCKETS=1<<t.LUMINANCE_BITS,t.EMPTY=Uint8ClampedArray.from([0]),t}(qI),rk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ly=function(r){rk(t,r);function t(e){var n=r.call(this,e)||this;return n.matrix=null,n}return t.prototype.getBlackMatrix=function(){if(this.matrix!==null)return this.matrix;var e=this.getLuminanceSource(),n=e.getWidth(),i=e.getHeight();if(n>=t.MINIMUM_DIMENSION&&i>=t.MINIMUM_DIMENSION){var a=e.getMatrix(),o=n>>t.BLOCK_SIZE_POWER;(n&t.BLOCK_SIZE_MASK)!=0&&o++;var s=i>>t.BLOCK_SIZE_POWER;(i&t.BLOCK_SIZE_MASK)!=0&&s++;var u=t.calculateBlackPoints(a,o,s,n,i),c=new po(n,i);t.calculateThresholdForBlock(a,o,s,n,i,u,c),this.matrix=c}else this.matrix=r.prototype.getBlackMatrix.call(this);return this.matrix},t.prototype.createBinarizer=function(e){return new t(e)},t.calculateThresholdForBlock=function(e,n,i,a,o,s,u){for(var c=o-t.BLOCK_SIZE,l=a-t.BLOCK_SIZE,d=0;d<i;d++){var h=d<<t.BLOCK_SIZE_POWER;h>c&&(h=c);for(var f=t.cap(d,2,i-3),g=0;g<n;g++){var m=g<<t.BLOCK_SIZE_POWER;m>l&&(m=l);for(var p=t.cap(g,2,n-3),y=0,v=-2;v<=2;v++){var b=s[f+v];y+=b[p-2]+b[p-1]+b[p]+b[p+1]+b[p+2]}var A=y/25;t.thresholdBlock(e,m,h,A,a,u)}}},t.cap=function(e,n,i){return e<n?n:e>i?i:e},t.thresholdBlock=function(e,n,i,a,o,s){for(var u=0,c=i*o+n;u<t.BLOCK_SIZE;u++,c+=o)for(var l=0;l<t.BLOCK_SIZE;l++)(e[c+l]&255)<=a&&s.set(n+l,i+u)},t.calculateBlackPoints=function(e,n,i,a,o){for(var s=o-t.BLOCK_SIZE,u=a-t.BLOCK_SIZE,c=new Array(i),l=0;l<i;l++){c[l]=new Int32Array(n);var d=l<<t.BLOCK_SIZE_POWER;d>s&&(d=s);for(var h=0;h<n;h++){var f=h<<t.BLOCK_SIZE_POWER;f>u&&(f=u);for(var g=0,m=255,p=0,y=0,v=d*a+f;y<t.BLOCK_SIZE;y++,v+=a){for(var b=0;b<t.BLOCK_SIZE;b++){var A=e[v+b]&255;g+=A,A<m&&(m=A),A>p&&(p=A)}if(p-m>t.MIN_DYNAMIC_RANGE)for(y++,v+=a;y<t.BLOCK_SIZE;y++,v+=a)for(var b=0;b<t.BLOCK_SIZE;b++)g+=e[v+b]&255}var C=g>>t.BLOCK_SIZE_POWER*2;if(p-m<=t.MIN_DYNAMIC_RANGE&&(C=m/2,l>0&&h>0)){var M=(c[l-1][h]+2*c[l][h-1]+c[l-1][h-1])/4;m<M&&(C=M)}c[l][h]=C}}return c},t.BLOCK_SIZE_POWER=3,t.BLOCK_SIZE=1<<t.BLOCK_SIZE_POWER,t.BLOCK_SIZE_MASK=t.BLOCK_SIZE-1,t.MINIMUM_DIMENSION=t.BLOCK_SIZE*5,t.MIN_DYNAMIC_RANGE=24,t}(tk),Vc=function(){function r(t,e){this.width=t,this.height=e}return r.prototype.getWidth=function(){return this.width},r.prototype.getHeight=function(){return this.height},r.prototype.isCropSupported=function(){return!1},r.prototype.crop=function(t,e,n,i){throw new hh("This luminance source does not support cropping.")},r.prototype.isRotateSupported=function(){return!1},r.prototype.rotateCounterClockwise=function(){throw new hh("This luminance source does not support rotation by 90 degrees.")},r.prototype.rotateCounterClockwise45=function(){throw new hh("This luminance source does not support rotation by 45 degrees.")},r.prototype.toString=function(){for(var t=new Uint8ClampedArray(this.width),e=new er,n=0;n<this.height;n++){for(var i=this.getRow(n,t),a=0;a<this.width;a++){var o=i[a]&255,s=void 0;o<64?s="#":o<128?s="+":o<192?s=".":s=" ",e.append(s)}e.append(`
`)}return e.toString()},r}(),nk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),dh=function(r){nk(t,r);function t(e){var n=r.call(this,e.getWidth(),e.getHeight())||this;return n.delegate=e,n}return t.prototype.getRow=function(e,n){for(var i=this.delegate.getRow(e,n),a=this.getWidth(),o=0;o<a;o++)i[o]=255-(i[o]&255);return i},t.prototype.getMatrix=function(){for(var e=this.delegate.getMatrix(),n=this.getWidth()*this.getHeight(),i=new Uint8ClampedArray(n),a=0;a<n;a++)i[a]=255-(e[a]&255);return i},t.prototype.isCropSupported=function(){return this.delegate.isCropSupported()},t.prototype.crop=function(e,n,i,a){return new t(this.delegate.crop(e,n,i,a))},t.prototype.isRotateSupported=function(){return this.delegate.isRotateSupported()},t.prototype.invert=function(){return this.delegate},t.prototype.rotateCounterClockwise=function(){return new t(this.delegate.rotateCounterClockwise())},t.prototype.rotateCounterClockwise45=function(){return new t(this.delegate.rotateCounterClockwise45())},t}(Vc),ik=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ak=function(r){ik(t,r);function t(e,n){n===void 0&&(n=!1);var i=r.call(this,e.width,e.height)||this;return i.canvas=e,i.tempCanvasElement=null,i.buffer=t.makeBufferFromCanvasImageData(e,n),i}return t.makeBufferFromCanvasImageData=function(e,n){n===void 0&&(n=!1);var i=e.getContext("2d").getImageData(0,0,e.width,e.height);return t.toGrayscaleBuffer(i.data,e.width,e.height,n)},t.toGrayscaleBuffer=function(e,n,i,a){a===void 0&&(a=!1);var o=new Uint8ClampedArray(n*i);if(t.FRAME_INDEX=!t.FRAME_INDEX,t.FRAME_INDEX||!a)for(var s=0,u=0,c=e.length;s<c;s+=4,u++){var l=void 0,d=e[s+3];if(d===0)l=255;else{var h=e[s],f=e[s+1],g=e[s+2];l=306*h+601*f+117*g+512>>10}o[u]=l}else for(var s=0,u=0,m=e.length;s<m;s+=4,u++){var l=void 0,d=e[s+3];if(d===0)l=255;else{var h=e[s],f=e[s+1],g=e[s+2];l=306*h+601*f+117*g+512>>10}o[u]=255-l}return o},t.prototype.getRow=function(e,n){if(e<0||e>=this.getHeight())throw new Ut("Requested row is outside the image: "+e);var i=this.getWidth(),a=e*i;return n===null?n=this.buffer.slice(a,a+i):(n.length<i&&(n=new Uint8ClampedArray(i)),n.set(this.buffer.slice(a,a+i))),n},t.prototype.getMatrix=function(){return this.buffer},t.prototype.isCropSupported=function(){return!0},t.prototype.crop=function(e,n,i,a){return r.prototype.crop.call(this,e,n,i,a),this},t.prototype.isRotateSupported=function(){return!0},t.prototype.rotateCounterClockwise=function(){return this.rotate(-90),this},t.prototype.rotateCounterClockwise45=function(){return this.rotate(-45),this},t.prototype.getTempCanvasElement=function(){if(this.tempCanvasElement===null){var e=this.canvas.ownerDocument.createElement("canvas");e.width=this.canvas.width,e.height=this.canvas.height,this.tempCanvasElement=e}return this.tempCanvasElement},t.prototype.rotate=function(e){var n=this.getTempCanvasElement(),i=n.getContext("2d"),a=e*t.DEGREE_TO_RADIANS,o=this.canvas.width,s=this.canvas.height,u=Math.ceil(Math.abs(Math.cos(a))*o+Math.abs(Math.sin(a))*s),c=Math.ceil(Math.abs(Math.sin(a))*o+Math.abs(Math.cos(a))*s);return n.width=u,n.height=c,i.translate(u/2,c/2),i.rotate(a),i.drawImage(this.canvas,o/-2,s/-2),this.buffer=t.makeBufferFromCanvasImageData(n),this},t.prototype.invert=function(){return new dh(this)},t.DEGREE_TO_RADIANS=Math.PI/180,t.FRAME_INDEX=!0,t}(Vc),ok=function(){function r(t,e,n){this.deviceId=t,this.label=e,this.kind="videoinput",this.groupId=n||void 0}return r.prototype.toJSON=function(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}},r}(),hi=globalThis&&globalThis.__awaiter||function(r,t,e,n){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=Promise))(function(a,o){function s(l){try{c(n.next(l))}catch(d){o(d)}}function u(l){try{c(n.throw(l))}catch(d){o(d)}}function c(l){l.done?a(l.value):i(l.value).then(s,u)}c((n=n.apply(r,t||[])).next())})},di=globalThis&&globalThis.__generator||function(r,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,i=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){e.label=c[1];break}if(c[0]===6&&e.label<a[1]){e.label=a[1],a=c;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(c);break}a[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(r,e)}catch(l){c=[6,l],i=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},sk=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},vu=function(){function r(t,e,n){e===void 0&&(e=500),this.reader=t,this.timeBetweenScansMillis=e,this._hints=n,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}return Object.defineProperty(r.prototype,"hasNavigator",{get:function(){return typeof navigator!="undefined"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isMediaDevicesSuported",{get:function(){return this.hasNavigator&&!!navigator.mediaDevices},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canEnumerateDevices",{get:function(){return!!(this.isMediaDevicesSuported&&navigator.mediaDevices.enumerateDevices)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"timeBetweenDecodingAttempts",{get:function(){return this._timeBetweenDecodingAttempts},set:function(t){this._timeBetweenDecodingAttempts=t<0?0:t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hints",{get:function(){return this._hints},set:function(t){this._hints=t||null},enumerable:!1,configurable:!0}),r.prototype.listVideoInputDevices=function(){return hi(this,void 0,void 0,function(){var t,e,n,i,a,o,s,u,c,l,d,h;return di(this,function(f){switch(f.label){case 0:if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:t=f.sent(),e=[];try{for(n=sk(t),i=n.next();!i.done;i=n.next())a=i.value,o=a.kind==="video"?"videoinput":a.kind,o==="videoinput"&&(s=a.deviceId||a.id,u=a.label||"Video device "+(e.length+1),c=a.groupId,l={deviceId:s,label:u,kind:o,groupId:c},e.push(l))}catch(g){d={error:g}}finally{try{i&&!i.done&&(h=n.return)&&h.call(n)}finally{if(d)throw d.error}}return[2,e]}})})},r.prototype.getVideoInputDevices=function(){return hi(this,void 0,void 0,function(){var t;return di(this,function(e){switch(e.label){case 0:return[4,this.listVideoInputDevices()];case 1:return t=e.sent(),[2,t.map(function(n){return new ok(n.deviceId,n.label)})]}})})},r.prototype.findDeviceById=function(t){return hi(this,void 0,void 0,function(){var e;return di(this,function(n){switch(n.label){case 0:return[4,this.listVideoInputDevices()];case 1:return e=n.sent(),e?[2,e.find(function(i){return i.deviceId===t})]:[2,null]}})})},r.prototype.decodeFromInputVideoDevice=function(t,e){return hi(this,void 0,void 0,function(){return di(this,function(n){switch(n.label){case 0:return[4,this.decodeOnceFromVideoDevice(t,e)];case 1:return[2,n.sent()]}})})},r.prototype.decodeOnceFromVideoDevice=function(t,e){return hi(this,void 0,void 0,function(){var n,i;return di(this,function(a){switch(a.label){case 0:return this.reset(),t?n={deviceId:{exact:t}}:n={facingMode:"environment"},i={video:n},[4,this.decodeOnceFromConstraints(i,e)];case 1:return[2,a.sent()]}})})},r.prototype.decodeOnceFromConstraints=function(t,e){return hi(this,void 0,void 0,function(){var n;return di(this,function(i){switch(i.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return n=i.sent(),[4,this.decodeOnceFromStream(n,e)];case 2:return[2,i.sent()]}})})},r.prototype.decodeOnceFromStream=function(t,e){return hi(this,void 0,void 0,function(){var n,i;return di(this,function(a){switch(a.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,e)];case 1:return n=a.sent(),[4,this.decodeOnce(n)];case 2:return i=a.sent(),[2,i]}})})},r.prototype.decodeFromInputVideoDeviceContinuously=function(t,e,n){return hi(this,void 0,void 0,function(){return di(this,function(i){switch(i.label){case 0:return[4,this.decodeFromVideoDevice(t,e,n)];case 1:return[2,i.sent()]}})})},r.prototype.decodeFromVideoDevice=function(t,e,n){return hi(this,void 0,void 0,function(){var i,a;return di(this,function(o){switch(o.label){case 0:return t?i={deviceId:{exact:t}}:i={facingMode:"environment"},a={video:i},[4,this.decodeFromConstraints(a,e,n)];case 1:return[2,o.sent()]}})})},r.prototype.decodeFromConstraints=function(t,e,n){return hi(this,void 0,void 0,function(){var i;return di(this,function(a){switch(a.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return i=a.sent(),[4,this.decodeFromStream(i,e,n)];case 2:return[2,a.sent()]}})})},r.prototype.decodeFromStream=function(t,e,n){return hi(this,void 0,void 0,function(){var i;return di(this,function(a){switch(a.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,e)];case 1:return i=a.sent(),[4,this.decodeContinuously(i,n)];case 2:return[2,a.sent()]}})})},r.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},r.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},r.prototype.attachStreamToVideo=function(t,e){return hi(this,void 0,void 0,function(){var n;return di(this,function(i){switch(i.label){case 0:return n=this.prepareVideoElement(e),this.addVideoSource(n,t),this.videoElement=n,this.stream=t,[4,this.playVideoOnLoadAsync(n)];case 1:return i.sent(),[2,n]}})})},r.prototype.playVideoOnLoadAsync=function(t){var e=this;return new Promise(function(n,i){return e.playVideoOnLoad(t,function(){return n()})})},r.prototype.playVideoOnLoad=function(t,e){var n=this;this.videoEndedListener=function(){return n.stopStreams()},this.videoCanPlayListener=function(){return n.tryPlayVideo(t)},t.addEventListener("ended",this.videoEndedListener),t.addEventListener("canplay",this.videoCanPlayListener),t.addEventListener("playing",e),this.tryPlayVideo(t)},r.prototype.isVideoPlaying=function(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2},r.prototype.tryPlayVideo=function(t){return hi(this,void 0,void 0,function(){return di(this,function(e){switch(e.label){case 0:if(this.isVideoPlaying(t))return console.warn("Trying to play video that is already playing."),[2];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,t.play()];case 2:return e.sent(),[3,4];case 3:return e.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}})})},r.prototype.getMediaElement=function(t,e){var n=document.getElementById(t);if(!n)throw new cn("element with id '"+t+"' not found");if(n.nodeName.toLowerCase()!==e.toLowerCase())throw new cn("element with id '"+t+"' must be an "+e+" element");return n},r.prototype.decodeFromImage=function(t,e){if(!t&&!e)throw new cn("either imageElement with a src set or an url must be provided");return e&&!t?this.decodeFromImageUrl(e):this.decodeFromImageElement(t)},r.prototype.decodeFromVideo=function(t,e){if(!t&&!e)throw new cn("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrl(e):this.decodeFromVideoElement(t)},r.prototype.decodeFromVideoContinuously=function(t,e,n){if(t===void 0&&e===void 0)throw new cn("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrlContinuously(e,n):this.decodeFromVideoElementContinuously(t,n)},r.prototype.decodeFromImageElement=function(t){if(!t)throw new cn("An image element must be provided.");this.reset();var e=this.prepareImageElement(t);this.imageElement=e;var n;return this.isImageLoaded(e)?n=this.decodeOnce(e,!1,!0):n=this._decodeOnLoadImage(e),n},r.prototype.decodeFromVideoElement=function(t){var e=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideo(e)},r.prototype.decodeFromVideoElementContinuously=function(t,e){var n=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideoContinuously(n,e)},r.prototype._decodeFromVideoElementSetup=function(t){if(!t)throw new cn("A video element must be provided.");this.reset();var e=this.prepareVideoElement(t);return this.videoElement=e,e},r.prototype.decodeFromImageUrl=function(t){if(!t)throw new cn("An URL must be provided.");this.reset();var e=this.prepareImageElement();this.imageElement=e;var n=this._decodeOnLoadImage(e);return e.src=t,n},r.prototype.decodeFromVideoUrl=function(t){if(!t)throw new cn("An URL must be provided.");this.reset();var e=this.prepareVideoElement(),n=this.decodeFromVideoElement(e);return e.src=t,n},r.prototype.decodeFromVideoUrlContinuously=function(t,e){if(!t)throw new cn("An URL must be provided.");this.reset();var n=this.prepareVideoElement(),i=this.decodeFromVideoElementContinuously(n,e);return n.src=t,i},r.prototype._decodeOnLoadImage=function(t){var e=this;return new Promise(function(n,i){e.imageLoadedListener=function(){return e.decodeOnce(t,!1,!0).then(n,i)},t.addEventListener("load",e.imageLoadedListener)})},r.prototype._decodeOnLoadVideo=function(t){return hi(this,void 0,void 0,function(){return di(this,function(e){switch(e.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return e.sent(),[4,this.decodeOnce(t)];case 2:return[2,e.sent()]}})})},r.prototype._decodeOnLoadVideoContinuously=function(t,e){return hi(this,void 0,void 0,function(){return di(this,function(n){switch(n.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return n.sent(),this.decodeContinuously(t,e),[2]}})})},r.prototype.isImageLoaded=function(t){return!(!t.complete||t.naturalWidth===0)},r.prototype.prepareImageElement=function(t){var e;return typeof t=="undefined"&&(e=document.createElement("img"),e.width=200,e.height=200),typeof t=="string"&&(e=this.getMediaElement(t,"img")),t instanceof HTMLImageElement&&(e=t),e},r.prototype.prepareVideoElement=function(t){var e;return!t&&typeof document!="undefined"&&(e=document.createElement("video"),e.width=200,e.height=200),typeof t=="string"&&(e=this.getMediaElement(t,"video")),t instanceof HTMLVideoElement&&(e=t),e.setAttribute("autoplay","true"),e.setAttribute("muted","true"),e.setAttribute("playsinline","true"),e},r.prototype.decodeOnce=function(t,e,n){var i=this;e===void 0&&(e=!0),n===void 0&&(n=!0),this._stopAsyncDecode=!1;var a=function(o,s){if(i._stopAsyncDecode){s(new ze("Video stream has ended before any code could be detected.")),i._stopAsyncDecode=void 0;return}try{var u=i.decode(t);o(u)}catch(h){var c=e&&h instanceof ze,l=h instanceof bn||h instanceof ct,d=l&&n;if(c||d)return setTimeout(a,i._timeBetweenDecodingAttempts,o,s);s(h)}};return new Promise(function(o,s){return a(o,s)})},r.prototype.decodeContinuously=function(t,e){var n=this;this._stopContinuousDecode=!1;var i=function(){if(n._stopContinuousDecode){n._stopContinuousDecode=void 0;return}try{var a=n.decode(t);e(a,null),setTimeout(i,n.timeBetweenScansMillis)}catch(u){e(null,u);var o=u instanceof bn||u instanceof ct,s=u instanceof ze;(o||s)&&setTimeout(i,n._timeBetweenDecodingAttempts)}};i()},r.prototype.decode=function(t){var e=this.createBinaryBitmap(t);return this.decodeBitmap(e)},r.prototype.createBinaryBitmap=function(t){this.getCaptureCanvasContext(t);var e=!1;t instanceof HTMLVideoElement?(this.drawFrameOnCanvas(t),e=!0):this.drawImageOnCanvas(t);var n=this.getCaptureCanvas(t),i=new ak(n,e),a=new Ly(i);return new Uy(a)},r.prototype.getCaptureCanvasContext=function(t){if(!this.captureCanvasContext){var e=this.getCaptureCanvas(t),n=void 0;try{n=e.getContext("2d",{willReadFrequently:!0})}catch{n=e.getContext("2d")}this.captureCanvasContext=n}return this.captureCanvasContext},r.prototype.getCaptureCanvas=function(t){if(!this.captureCanvas){var e=this.createCaptureCanvas(t);this.captureCanvas=e}return this.captureCanvas},r.prototype.drawFrameOnCanvas=function(t,e,n){e===void 0&&(e={sx:0,sy:0,sWidth:t.videoWidth,sHeight:t.videoHeight,dx:0,dy:0,dWidth:t.videoWidth,dHeight:t.videoHeight}),n===void 0&&(n=this.captureCanvasContext),n.drawImage(t,e.sx,e.sy,e.sWidth,e.sHeight,e.dx,e.dy,e.dWidth,e.dHeight)},r.prototype.drawImageOnCanvas=function(t,e,n){e===void 0&&(e={sx:0,sy:0,sWidth:t.naturalWidth,sHeight:t.naturalHeight,dx:0,dy:0,dWidth:t.naturalWidth,dHeight:t.naturalHeight}),n===void 0&&(n=this.captureCanvasContext),n.drawImage(t,e.sx,e.sy,e.sWidth,e.sHeight,e.dx,e.dy,e.dWidth,e.dHeight)},r.prototype.decodeBitmap=function(t){return this.reader.decode(t,this._hints)},r.prototype.createCaptureCanvas=function(t){if(typeof document=="undefined")return this._destroyCaptureCanvas(),null;var e=document.createElement("canvas"),n,i;return typeof t!="undefined"&&(t instanceof HTMLVideoElement?(n=t.videoWidth,i=t.videoHeight):t instanceof HTMLImageElement&&(n=t.naturalWidth||t.width,i=t.naturalHeight||t.height)),e.style.width=n+"px",e.style.height=i+"px",e.width=n,e.height=i,e},r.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach(function(t){return t.stop()}),this.stream=void 0),this._stopAsyncDecode===!1&&this.stopAsyncDecode(),this._stopContinuousDecode===!1&&this.stopContinuousDecode()},r.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},r.prototype._destroyVideoElement=function(){!this.videoElement||(typeof this.videoEndedListener!="undefined"&&this.videoElement.removeEventListener("ended",this.videoEndedListener),typeof this.videoPlayingEventListener!="undefined"&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),typeof this.videoCanPlayListener!="undefined"&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},r.prototype._destroyImageElement=function(){!this.imageElement||(this.imageLoadedListener!==void 0&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},r.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},r.prototype.addVideoSource=function(t,e){try{t.srcObject=e}catch{t.src=URL.createObjectURL(e)}},r.prototype.cleanVideoSource=function(t){try{t.srcObject=null}catch{t.src=""}this.videoElement.removeAttribute("src")},r}(),Yn=function(){function r(t,e,n,i,a,o){n===void 0&&(n=e==null?0:8*e.length),o===void 0&&(o=zr.currentTimeMillis()),this.text=t,this.rawBytes=e,this.numBits=n,this.resultPoints=i,this.format=a,this.timestamp=o,this.text=t,this.rawBytes=e,n==null?this.numBits=e==null?0:8*e.length:this.numBits=n,this.resultPoints=i,this.format=a,this.resultMetadata=null,o==null?this.timestamp=zr.currentTimeMillis():this.timestamp=o}return r.prototype.getText=function(){return this.text},r.prototype.getRawBytes=function(){return this.rawBytes},r.prototype.getNumBits=function(){return this.numBits},r.prototype.getResultPoints=function(){return this.resultPoints},r.prototype.getBarcodeFormat=function(){return this.format},r.prototype.getResultMetadata=function(){return this.resultMetadata},r.prototype.putMetadata=function(t,e){this.resultMetadata===null&&(this.resultMetadata=new Map),this.resultMetadata.set(t,e)},r.prototype.putAllMetadata=function(t){t!==null&&(this.resultMetadata===null?this.resultMetadata=t:this.resultMetadata=new Map(t))},r.prototype.addResultPoints=function(t){var e=this.resultPoints;if(e===null)this.resultPoints=t;else if(t!==null&&t.length>0){var n=new Array(e.length+t.length);zr.arraycopy(e,0,n,0,e.length),zr.arraycopy(t,0,n,e.length,t.length),this.resultPoints=n}},r.prototype.getTimestamp=function(){return this.timestamp},r.prototype.toString=function(){return this.text},r}(),R0;(function(r){r[r.AZTEC=0]="AZTEC",r[r.CODABAR=1]="CODABAR",r[r.CODE_39=2]="CODE_39",r[r.CODE_93=3]="CODE_93",r[r.CODE_128=4]="CODE_128",r[r.DATA_MATRIX=5]="DATA_MATRIX",r[r.EAN_8=6]="EAN_8",r[r.EAN_13=7]="EAN_13",r[r.ITF=8]="ITF",r[r.MAXICODE=9]="MAXICODE",r[r.PDF_417=10]="PDF_417",r[r.QR_CODE=11]="QR_CODE",r[r.RSS_14=12]="RSS_14",r[r.RSS_EXPANDED=13]="RSS_EXPANDED",r[r.UPC_A=14]="UPC_A",r[r.UPC_E=15]="UPC_E",r[r.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"})(R0||(R0={}));var It=R0,F0;(function(r){r[r.OTHER=0]="OTHER",r[r.ORIENTATION=1]="ORIENTATION",r[r.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",r[r.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",r[r.ISSUE_NUMBER=4]="ISSUE_NUMBER",r[r.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",r[r.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",r[r.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",r[r.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",r[r.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",r[r.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"})(F0||(F0={}));var zn=F0,ph=function(){function r(t,e,n,i,a,o){a===void 0&&(a=-1),o===void 0&&(o=-1),this.rawBytes=t,this.text=e,this.byteSegments=n,this.ecLevel=i,this.structuredAppendSequenceNumber=a,this.structuredAppendParity=o,this.numBits=t==null?0:8*t.length}return r.prototype.getRawBytes=function(){return this.rawBytes},r.prototype.getNumBits=function(){return this.numBits},r.prototype.setNumBits=function(t){this.numBits=t},r.prototype.getText=function(){return this.text},r.prototype.getByteSegments=function(){return this.byteSegments},r.prototype.getECLevel=function(){return this.ecLevel},r.prototype.getErrorsCorrected=function(){return this.errorsCorrected},r.prototype.setErrorsCorrected=function(t){this.errorsCorrected=t},r.prototype.getErasures=function(){return this.erasures},r.prototype.setErasures=function(t){this.erasures=t},r.prototype.getOther=function(){return this.other},r.prototype.setOther=function(t){this.other=t},r.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},r.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},r.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},r}(),qc=function(){function r(){}return r.prototype.exp=function(t){return this.expTable[t]},r.prototype.log=function(t){if(t===0)throw new Ut;return this.logTable[t]},r.addOrSubtract=function(t,e){return t^e},r}(),Xo=function(){function r(t,e){if(e.length===0)throw new Ut;this.field=t;var n=e.length;if(n>1&&e[0]===0){for(var i=1;i<n&&e[i]===0;)i++;i===n?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(n-i),zr.arraycopy(e,i,this.coefficients,0,this.coefficients.length))}else this.coefficients=e}return r.prototype.getCoefficients=function(){return this.coefficients},r.prototype.getDegree=function(){return this.coefficients.length-1},r.prototype.isZero=function(){return this.coefficients[0]===0},r.prototype.getCoefficient=function(t){return this.coefficients[this.coefficients.length-1-t]},r.prototype.evaluateAt=function(t){if(t===0)return this.getCoefficient(0);var e=this.coefficients,n;if(t===1){n=0;for(var i=0,a=e.length;i!==a;i++){var o=e[i];n=qc.addOrSubtract(n,o)}return n}n=e[0];for(var s=e.length,u=this.field,i=1;i<s;i++)n=qc.addOrSubtract(u.multiply(t,n),e[i]);return n},r.prototype.addOrSubtract=function(t){if(!this.field.equals(t.field))throw new Ut("GenericGFPolys do not have same GenericGF field");if(this.isZero())return t;if(t.isZero())return this;var e=this.coefficients,n=t.coefficients;if(e.length>n.length){var i=e;e=n,n=i}var a=new Int32Array(n.length),o=n.length-e.length;zr.arraycopy(n,0,a,0,o);for(var s=o;s<n.length;s++)a[s]=qc.addOrSubtract(e[s-o],n[s]);return new r(this.field,a)},r.prototype.multiply=function(t){if(!this.field.equals(t.field))throw new Ut("GenericGFPolys do not have same GenericGF field");if(this.isZero()||t.isZero())return this.field.getZero();for(var e=this.coefficients,n=e.length,i=t.coefficients,a=i.length,o=new Int32Array(n+a-1),s=this.field,u=0;u<n;u++)for(var c=e[u],l=0;l<a;l++)o[u+l]=qc.addOrSubtract(o[u+l],s.multiply(c,i[l]));return new r(s,o)},r.prototype.multiplyScalar=function(t){if(t===0)return this.field.getZero();if(t===1)return this;for(var e=this.coefficients.length,n=this.field,i=new Int32Array(e),a=this.coefficients,o=0;o<e;o++)i[o]=n.multiply(a[o],t);return new r(n,i)},r.prototype.multiplyByMonomial=function(t,e){if(t<0)throw new Ut;if(e===0)return this.field.getZero();for(var n=this.coefficients,i=n.length,a=new Int32Array(i+t),o=this.field,s=0;s<i;s++)a[s]=o.multiply(n[s],e);return new r(o,a)},r.prototype.divide=function(t){if(!this.field.equals(t.field))throw new Ut("GenericGFPolys do not have same GenericGF field");if(t.isZero())throw new Ut("Divide by 0");for(var e=this.field,n=e.getZero(),i=this,a=t.getCoefficient(t.getDegree()),o=e.inverse(a);i.getDegree()>=t.getDegree()&&!i.isZero();){var s=i.getDegree()-t.getDegree(),u=e.multiply(i.getCoefficient(i.getDegree()),o),c=t.multiplyByMonomial(s,u),l=e.buildMonomial(s,u);n=n.addOrSubtract(l),i=i.addOrSubtract(c)}return[n,i]},r.prototype.toString=function(){for(var t="",e=this.getDegree();e>=0;e--){var n=this.getCoefficient(e);if(n!==0){if(n<0?(t+=" - ",n=-n):t.length>0&&(t+=" + "),e===0||n!==1){var i=this.field.log(n);i===0?t+="1":i===1?t+="a":(t+="a^",t+=i)}e!==0&&(e===1?t+="x":(t+="x^",t+=e))}}return t},r}(),uk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),jy=function(r){uk(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.kind="ArithmeticException",t}(Ai),ck=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),mo=function(r){ck(t,r);function t(e,n,i){var a=r.call(this)||this;a.primitive=e,a.size=n,a.generatorBase=i;for(var o=new Int32Array(n),s=1,u=0;u<n;u++)o[u]=s,s*=2,s>=n&&(s^=e,s&=n-1);a.expTable=o;for(var c=new Int32Array(n),u=0;u<n-1;u++)c[o[u]]=u;return a.logTable=c,a.zero=new Xo(a,Int32Array.from([0])),a.one=new Xo(a,Int32Array.from([1])),a}return t.prototype.getZero=function(){return this.zero},t.prototype.getOne=function(){return this.one},t.prototype.buildMonomial=function(e,n){if(e<0)throw new Ut;if(n===0)return this.zero;var i=new Int32Array(e+1);return i[0]=n,new Xo(this,i)},t.prototype.inverse=function(e){if(e===0)throw new jy;return this.expTable[this.size-this.logTable[e]-1]},t.prototype.multiply=function(e,n){return e===0||n===0?0:this.expTable[(this.logTable[e]+this.logTable[n])%(this.size-1)]},t.prototype.getSize=function(){return this.size},t.prototype.getGeneratorBase=function(){return this.generatorBase},t.prototype.toString=function(){return"GF(0x"+ln.toHexString(this.primitive)+","+this.size+")"},t.prototype.equals=function(e){return e===this},t.AZTEC_DATA_12=new t(4201,4096,1),t.AZTEC_DATA_10=new t(1033,1024,1),t.AZTEC_DATA_6=new t(67,64,1),t.AZTEC_PARAM=new t(19,16,1),t.QR_CODE_FIELD_256=new t(285,256,0),t.DATA_MATRIX_FIELD_256=new t(301,256,1),t.AZTEC_DATA_8=t.DATA_MATRIX_FIELD_256,t.MAXICODE_FIELD_64=t.AZTEC_DATA_6,t}(qc),lk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),mh=function(r){lk(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.kind="ReedSolomonException",t}(Ai),fk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),yu=function(r){fk(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.kind="IllegalStateException",t}(Ai),gh=function(){function r(t){this.field=t}return r.prototype.decode=function(t,e){for(var n=this.field,i=new Xo(n,t),a=new Int32Array(e),o=!0,s=0;s<e;s++){var u=i.evaluateAt(n.exp(s+n.getGeneratorBase()));a[a.length-1-s]=u,u!==0&&(o=!1)}if(!o)for(var c=new Xo(n,a),l=this.runEuclideanAlgorithm(n.buildMonomial(e,1),c,e),d=l[0],h=l[1],f=this.findErrorLocations(d),g=this.findErrorMagnitudes(h,f),s=0;s<f.length;s++){var m=t.length-1-n.log(f[s]);if(m<0)throw new mh("Bad error location");t[m]=mo.addOrSubtract(t[m],g[s])}},r.prototype.runEuclideanAlgorithm=function(t,e,n){if(t.getDegree()<e.getDegree()){var i=t;t=e,e=i}for(var a=this.field,o=t,s=e,u=a.getZero(),c=a.getOne();s.getDegree()>=(n/2|0);){var l=o,d=u;if(o=s,u=c,o.isZero())throw new mh("r_{i-1} was zero");s=l;for(var h=a.getZero(),f=o.getCoefficient(o.getDegree()),g=a.inverse(f);s.getDegree()>=o.getDegree()&&!s.isZero();){var m=s.getDegree()-o.getDegree(),p=a.multiply(s.getCoefficient(s.getDegree()),g);h=h.addOrSubtract(a.buildMonomial(m,p)),s=s.addOrSubtract(o.multiplyByMonomial(m,p))}if(c=h.multiply(u).addOrSubtract(d),s.getDegree()>=o.getDegree())throw new yu("Division algorithm failed to reduce polynomial?")}var y=c.getCoefficient(0);if(y===0)throw new mh("sigmaTilde(0) was zero");var v=a.inverse(y),b=c.multiplyScalar(v),A=s.multiplyScalar(v);return[b,A]},r.prototype.findErrorLocations=function(t){var e=t.getDegree();if(e===1)return Int32Array.from([t.getCoefficient(1)]);for(var n=new Int32Array(e),i=0,a=this.field,o=1;o<a.getSize()&&i<e;o++)t.evaluateAt(o)===0&&(n[i]=a.inverse(o),i++);if(i!==e)throw new mh("Error locator degree does not match number of roots");return n},r.prototype.findErrorMagnitudes=function(t,e){for(var n=e.length,i=new Int32Array(n),a=this.field,o=0;o<n;o++){for(var s=a.inverse(e[o]),u=1,c=0;c<n;c++)if(o!==c){var l=a.multiply(e[c],s),d=(l&1)==0?l|1:l&~1;u=a.multiply(u,d)}i[o]=a.multiply(t.evaluateAt(s),a.inverse(u)),a.getGeneratorBase()!==0&&(i[o]=a.multiply(i[o],s))}return i},r}(),Hn;(function(r){r[r.UPPER=0]="UPPER",r[r.LOWER=1]="LOWER",r[r.MIXED=2]="MIXED",r[r.DIGIT=3]="DIGIT",r[r.PUNCT=4]="PUNCT",r[r.BINARY=5]="BINARY"})(Hn||(Hn={}));var Wy=function(){function r(){}return r.prototype.decode=function(t){this.ddata=t;var e=t.getBits(),n=this.extractBits(e),i=this.correctBits(n),a=r.convertBoolArrayToByteArray(i),o=r.getEncodedData(i),s=new ph(a,o,null,null);return s.setNumBits(i.length),s},r.highLevelDecode=function(t){return this.getEncodedData(t)},r.getEncodedData=function(t){for(var e=t.length,n=Hn.UPPER,i=Hn.UPPER,a="",o=0;o<e;)if(i===Hn.BINARY){if(e-o<5)break;var s=r.readCode(t,o,5);if(o+=5,s===0){if(e-o<11)break;s=r.readCode(t,o,11)+31,o+=11}for(var u=0;u<s;u++){if(e-o<8){o=e;break}var c=r.readCode(t,o,8);a+=$r.castAsNonUtf8Char(c),o+=8}i=n}else{var l=i===Hn.DIGIT?4:5;if(e-o<l)break;var c=r.readCode(t,o,l);o+=l;var d=r.getCharacter(i,c);d.startsWith("CTRL_")?(n=i,i=r.getTable(d.charAt(5)),d.charAt(6)==="L"&&(n=i)):(a+=d,i=n)}return a},r.getTable=function(t){switch(t){case"L":return Hn.LOWER;case"P":return Hn.PUNCT;case"M":return Hn.MIXED;case"D":return Hn.DIGIT;case"B":return Hn.BINARY;case"U":default:return Hn.UPPER}},r.getCharacter=function(t,e){switch(t){case Hn.UPPER:return r.UPPER_TABLE[e];case Hn.LOWER:return r.LOWER_TABLE[e];case Hn.MIXED:return r.MIXED_TABLE[e];case Hn.PUNCT:return r.PUNCT_TABLE[e];case Hn.DIGIT:return r.DIGIT_TABLE[e];default:throw new yu("Bad table")}},r.prototype.correctBits=function(t){var e,n;this.ddata.getNbLayers()<=2?(n=6,e=mo.AZTEC_DATA_6):this.ddata.getNbLayers()<=8?(n=8,e=mo.AZTEC_DATA_8):this.ddata.getNbLayers()<=22?(n=10,e=mo.AZTEC_DATA_10):(n=12,e=mo.AZTEC_DATA_12);var i=this.ddata.getNbDatablocks(),a=t.length/n;if(a<i)throw new ct;for(var o=t.length%n,s=new Int32Array(a),u=0;u<a;u++,o+=n)s[u]=r.readCode(t,o,n);try{var c=new gh(e);c.decode(s,a-i)}catch(p){throw new ct(p)}for(var l=(1<<n)-1,d=0,u=0;u<i;u++){var h=s[u];if(h===0||h===l)throw new ct;(h===1||h===l-1)&&d++}for(var f=new Array(i*n-d),g=0,u=0;u<i;u++){var h=s[u];if(h===1||h===l-1)f.fill(h>1,g,g+n-1),g+=n-1;else for(var m=n-1;m>=0;--m)f[g++]=(h&1<<m)!=0}return f},r.prototype.extractBits=function(t){var e=this.ddata.isCompact(),n=this.ddata.getNbLayers(),i=(e?11:14)+n*4,a=new Int32Array(i),o=new Array(this.totalBitsInLayer(n,e));if(e)for(var s=0;s<a.length;s++)a[s]=s;else for(var u=i+1+2*ln.truncDivision(ln.truncDivision(i,2)-1,15),c=i/2,l=ln.truncDivision(u,2),s=0;s<c;s++){var d=s+ln.truncDivision(s,15);a[c-s-1]=l-d-1,a[c+s]=l+d+1}for(var s=0,h=0;s<n;s++){for(var f=(n-s)*4+(e?9:12),g=s*2,m=i-1-g,p=0;p<f;p++)for(var y=p*2,v=0;v<2;v++)o[h+y+v]=t.get(a[g+v],a[g+p]),o[h+2*f+y+v]=t.get(a[g+p],a[m-v]),o[h+4*f+y+v]=t.get(a[m-v],a[m-p]),o[h+6*f+y+v]=t.get(a[m-p],a[g+v]);h+=f*8}return o},r.readCode=function(t,e,n){for(var i=0,a=e;a<e+n;a++)i<<=1,t[a]&&(i|=1);return i},r.readByte=function(t,e){var n=t.length-e;return n>=8?r.readCode(t,e,8):r.readCode(t,e,n)<<8-n},r.convertBoolArrayToByteArray=function(t){for(var e=new Uint8Array((t.length+7)/8),n=0;n<e.length;n++)e[n]=r.readByte(t,8*n);return e},r.prototype.totalBitsInLayer=function(t,e){return((e?88:112)+16*t)*t},r.UPPER_TABLE=["CTRL_PS"," ","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","CTRL_LL","CTRL_ML","CTRL_DL","CTRL_BS"],r.LOWER_TABLE=["CTRL_PS"," ","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","CTRL_US","CTRL_ML","CTRL_DL","CTRL_BS"],r.MIXED_TABLE=["CTRL_PS"," ","","","","","","","\x07","\b"," ",`
`,"\v","\f","\r","","","","","","@","\\","^","_","`","|","~","\x7F","CTRL_LL","CTRL_UL","CTRL_PL","CTRL_BS"],r.PUNCT_TABLE=["","\r",`\r
`,". ",", ",": ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}","CTRL_UL"],r.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"],r}(),yr=function(){function r(){}return r.round=function(t){return isNaN(t)?0:t<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:t>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t+(t<0?-.5:.5)|0},r.distance=function(t,e,n,i){var a=t-n,o=e-i;return Math.sqrt(a*a+o*o)},r.sum=function(t){for(var e=0,n=0,i=t.length;n!==i;n++){var a=t[n];e+=a}return e},r}(),N0=function(){function r(){}return r.floatToIntBits=function(t){return t},r.MAX_VALUE=Number.MAX_SAFE_INTEGER,r}(),yt=function(){function r(t,e){this.x=t,this.y=e}return r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.equals=function(t){if(t instanceof r){var e=t;return this.x===e.x&&this.y===e.y}return!1},r.prototype.hashCode=function(){return 31*N0.floatToIntBits(this.x)+N0.floatToIntBits(this.y)},r.prototype.toString=function(){return"("+this.x+","+this.y+")"},r.orderBestPatterns=function(t){var e=this.distance(t[0],t[1]),n=this.distance(t[1],t[2]),i=this.distance(t[0],t[2]),a,o,s;if(n>=e&&n>=i?(o=t[0],a=t[1],s=t[2]):i>=n&&i>=e?(o=t[1],a=t[0],s=t[2]):(o=t[2],a=t[0],s=t[1]),this.crossProductZ(a,o,s)<0){var u=a;a=s,s=u}t[0]=a,t[1]=o,t[2]=s},r.distance=function(t,e){return yr.distance(t.x,t.y,e.x,e.y)},r.crossProductZ=function(t,e,n){var i=e.x,a=e.y;return(n.x-i)*(t.y-a)-(n.y-a)*(t.x-i)},r}(),M0=function(){function r(t,e){this.bits=t,this.points=e}return r.prototype.getBits=function(){return this.bits},r.prototype.getPoints=function(){return this.points},r}(),hk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),dk=function(r){hk(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n)||this;return s.compact=i,s.nbDatablocks=a,s.nbLayers=o,s}return t.prototype.getNbLayers=function(){return this.nbLayers},t.prototype.getNbDatablocks=function(){return this.nbDatablocks},t.prototype.isCompact=function(){return this.compact},t}(M0),B0=function(){function r(t,e,n,i){this.image=t,this.height=t.getHeight(),this.width=t.getWidth(),e==null&&(e=r.INIT_SIZE),n==null&&(n=t.getWidth()/2|0),i==null&&(i=t.getHeight()/2|0);var a=e/2|0;if(this.leftInit=n-a,this.rightInit=n+a,this.upInit=i-a,this.downInit=i+a,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new ze}return r.prototype.detect=function(){for(var t=this.leftInit,e=this.rightInit,n=this.upInit,i=this.downInit,a=!1,o=!0,s=!1,u=!1,c=!1,l=!1,d=!1,h=this.width,f=this.height;o;){o=!1;for(var g=!0;(g||!u)&&e<h;)g=this.containsBlackPoint(n,i,e,!1),g?(e++,o=!0,u=!0):u||e++;if(e>=h){a=!0;break}for(var m=!0;(m||!c)&&i<f;)m=this.containsBlackPoint(t,e,i,!0),m?(i++,o=!0,c=!0):c||i++;if(i>=f){a=!0;break}for(var p=!0;(p||!l)&&t>=0;)p=this.containsBlackPoint(n,i,t,!1),p?(t--,o=!0,l=!0):l||t--;if(t<0){a=!0;break}for(var y=!0;(y||!d)&&n>=0;)y=this.containsBlackPoint(t,e,n,!0),y?(n--,o=!0,d=!0):d||n--;if(n<0){a=!0;break}o&&(s=!0)}if(!a&&s){for(var v=e-t,b=null,A=1;b===null&&A<v;A++)b=this.getBlackPointOnSegment(t,i-A,t+A,i);if(b==null)throw new ze;for(var C=null,A=1;C===null&&A<v;A++)C=this.getBlackPointOnSegment(t,n+A,t+A,n);if(C==null)throw new ze;for(var M=null,A=1;M===null&&A<v;A++)M=this.getBlackPointOnSegment(e,n+A,e-A,n);if(M==null)throw new ze;for(var z=null,A=1;z===null&&A<v;A++)z=this.getBlackPointOnSegment(e,i-A,e-A,i);if(z==null)throw new ze;return this.centerEdges(z,b,M,C)}else throw new ze},r.prototype.getBlackPointOnSegment=function(t,e,n,i){for(var a=yr.round(yr.distance(t,e,n,i)),o=(n-t)/a,s=(i-e)/a,u=this.image,c=0;c<a;c++){var l=yr.round(t+c*o),d=yr.round(e+c*s);if(u.get(l,d))return new yt(l,d)}return null},r.prototype.centerEdges=function(t,e,n,i){var a=t.getX(),o=t.getY(),s=e.getX(),u=e.getY(),c=n.getX(),l=n.getY(),d=i.getX(),h=i.getY(),f=r.CORR;return a<this.width/2?[new yt(d-f,h+f),new yt(s+f,u+f),new yt(c-f,l-f),new yt(a+f,o-f)]:[new yt(d+f,h+f),new yt(s+f,u-f),new yt(c-f,l+f),new yt(a-f,o-f)]},r.prototype.containsBlackPoint=function(t,e,n,i){var a=this.image;if(i){for(var o=t;o<=e;o++)if(a.get(o,n))return!0}else for(var s=t;s<=e;s++)if(a.get(n,s))return!0;return!1},r.INIT_SIZE=10,r.CORR=1,r}(),zy=function(){function r(){}return r.checkAndNudgePoints=function(t,e){for(var n=t.getWidth(),i=t.getHeight(),a=!0,o=0;o<e.length&&a;o+=2){var s=Math.floor(e[o]),u=Math.floor(e[o+1]);if(s<-1||s>n||u<-1||u>i)throw new ze;a=!1,s===-1?(e[o]=0,a=!0):s===n&&(e[o]=n-1,a=!0),u===-1?(e[o+1]=0,a=!0):u===i&&(e[o+1]=i-1,a=!0)}a=!0;for(var o=e.length-2;o>=0&&a;o-=2){var s=Math.floor(e[o]),u=Math.floor(e[o+1]);if(s<-1||s>n||u<-1||u>i)throw new ze;a=!1,s===-1?(e[o]=0,a=!0):s===n&&(e[o]=n-1,a=!0),u===-1?(e[o+1]=0,a=!0):u===i&&(e[o+1]=i-1,a=!0)}},r}(),Hy=function(){function r(t,e,n,i,a,o,s,u,c){this.a11=t,this.a21=e,this.a31=n,this.a12=i,this.a22=a,this.a32=o,this.a13=s,this.a23=u,this.a33=c}return r.quadrilateralToQuadrilateral=function(t,e,n,i,a,o,s,u,c,l,d,h,f,g,m,p){var y=r.quadrilateralToSquare(t,e,n,i,a,o,s,u),v=r.squareToQuadrilateral(c,l,d,h,f,g,m,p);return v.times(y)},r.prototype.transformPoints=function(t){for(var e=t.length,n=this.a11,i=this.a12,a=this.a13,o=this.a21,s=this.a22,u=this.a23,c=this.a31,l=this.a32,d=this.a33,h=0;h<e;h+=2){var f=t[h],g=t[h+1],m=a*f+u*g+d;t[h]=(n*f+o*g+c)/m,t[h+1]=(i*f+s*g+l)/m}},r.prototype.transformPointsWithValues=function(t,e){for(var n=this.a11,i=this.a12,a=this.a13,o=this.a21,s=this.a22,u=this.a23,c=this.a31,l=this.a32,d=this.a33,h=t.length,f=0;f<h;f++){var g=t[f],m=e[f],p=a*g+u*m+d;t[f]=(n*g+o*m+c)/p,e[f]=(i*g+s*m+l)/p}},r.squareToQuadrilateral=function(t,e,n,i,a,o,s,u){var c=t-n+a-s,l=e-i+o-u;if(c===0&&l===0)return new r(n-t,a-n,t,i-e,o-i,e,0,0,1);var d=n-a,h=s-a,f=i-o,g=u-o,m=d*g-h*f,p=(c*g-h*l)/m,y=(d*l-c*f)/m;return new r(n-t+p*n,s-t+y*s,t,i-e+p*i,u-e+y*u,e,p,y,1)},r.quadrilateralToSquare=function(t,e,n,i,a,o,s,u){return r.squareToQuadrilateral(t,e,n,i,a,o,s,u).buildAdjoint()},r.prototype.buildAdjoint=function(){return new r(this.a22*this.a33-this.a23*this.a32,this.a23*this.a31-this.a21*this.a33,this.a21*this.a32-this.a22*this.a31,this.a13*this.a32-this.a12*this.a33,this.a11*this.a33-this.a13*this.a31,this.a12*this.a31-this.a11*this.a32,this.a12*this.a23-this.a13*this.a22,this.a13*this.a21-this.a11*this.a23,this.a11*this.a22-this.a12*this.a21)},r.prototype.times=function(t){return new r(this.a11*t.a11+this.a21*t.a12+this.a31*t.a13,this.a11*t.a21+this.a21*t.a22+this.a31*t.a23,this.a11*t.a31+this.a21*t.a32+this.a31*t.a33,this.a12*t.a11+this.a22*t.a12+this.a32*t.a13,this.a12*t.a21+this.a22*t.a22+this.a32*t.a23,this.a12*t.a31+this.a22*t.a32+this.a32*t.a33,this.a13*t.a11+this.a23*t.a12+this.a33*t.a13,this.a13*t.a21+this.a23*t.a22+this.a33*t.a23,this.a13*t.a31+this.a23*t.a32+this.a33*t.a33)},r}(),pk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),mk=function(r){pk(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.sampleGrid=function(e,n,i,a,o,s,u,c,l,d,h,f,g,m,p,y,v,b,A){var C=Hy.quadrilateralToQuadrilateral(a,o,s,u,c,l,d,h,f,g,m,p,y,v,b,A);return this.sampleGridWithTransform(e,n,i,C)},t.prototype.sampleGridWithTransform=function(e,n,i,a){if(n<=0||i<=0)throw new ze;for(var o=new po(n,i),s=new Float32Array(2*n),u=0;u<i;u++){for(var c=s.length,l=u+.5,d=0;d<c;d+=2)s[d]=d/2+.5,s[d+1]=l;a.transformPoints(s),zy.checkAndNudgePoints(e,s);try{for(var d=0;d<c;d+=2)e.get(Math.floor(s[d]),Math.floor(s[d+1]))&&o.set(d/2,u)}catch{throw new ze}}return o},t}(zy),U0=function(){function r(){}return r.setGridSampler=function(t){r.gridSampler=t},r.getInstance=function(){return r.gridSampler},r.gridSampler=new mk,r}(),Si=function(){function r(t,e){this.x=t,this.y=e}return r.prototype.toResultPoint=function(){return new yt(this.getX(),this.getY())},r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r}(),gk=function(){function r(t){this.EXPECTED_CORNER_BITS=new Int32Array([3808,476,2107,1799]),this.image=t}return r.prototype.detect=function(){return this.detectMirror(!1)},r.prototype.detectMirror=function(t){var e=this.getMatrixCenter(),n=this.getBullsEyeCorners(e);if(t){var i=n[0];n[0]=n[2],n[2]=i}this.extractParameters(n);var a=this.sampleGrid(this.image,n[this.shift%4],n[(this.shift+1)%4],n[(this.shift+2)%4],n[(this.shift+3)%4]),o=this.getMatrixCornerPoints(n);return new dk(a,o,this.compact,this.nbDataBlocks,this.nbLayers)},r.prototype.extractParameters=function(t){if(!this.isValidPoint(t[0])||!this.isValidPoint(t[1])||!this.isValidPoint(t[2])||!this.isValidPoint(t[3]))throw new ze;var e=2*this.nbCenterLayers,n=new Int32Array([this.sampleLine(t[0],t[1],e),this.sampleLine(t[1],t[2],e),this.sampleLine(t[2],t[3],e),this.sampleLine(t[3],t[0],e)]);this.shift=this.getRotation(n,e);for(var i=0,a=0;a<4;a++){var o=n[(this.shift+a)%4];this.compact?(i<<=7,i+=o>>1&127):(i<<=10,i+=(o>>2&31<<5)+(o>>1&31))}var s=this.getCorrectedParameterData(i,this.compact);this.compact?(this.nbLayers=(s>>6)+1,this.nbDataBlocks=(s&63)+1):(this.nbLayers=(s>>11)+1,this.nbDataBlocks=(s&2047)+1)},r.prototype.getRotation=function(t,e){var n=0;t.forEach(function(a,o,s){var u=(a>>e-2<<1)+(a&1);n=(n<<3)+u}),n=((n&1)<<11)+(n>>1);for(var i=0;i<4;i++)if(ln.bitCount(n^this.EXPECTED_CORNER_BITS[i])<=2)return i;throw new ze},r.prototype.getCorrectedParameterData=function(t,e){var n,i;e?(n=7,i=2):(n=10,i=4);for(var a=n-i,o=new Int32Array(n),s=n-1;s>=0;--s)o[s]=t&15,t>>=4;try{var u=new gh(mo.AZTEC_PARAM);u.decode(o,a)}catch{throw new ze}for(var c=0,s=0;s<i;s++)c=(c<<4)+o[s];return c},r.prototype.getBullsEyeCorners=function(t){var e=t,n=t,i=t,a=t,o=!0;for(this.nbCenterLayers=1;this.nbCenterLayers<9;this.nbCenterLayers++){var s=this.getFirstDifferent(e,o,1,-1),u=this.getFirstDifferent(n,o,1,1),c=this.getFirstDifferent(i,o,-1,1),l=this.getFirstDifferent(a,o,-1,-1);if(this.nbCenterLayers>2){var d=this.distancePoint(l,s)*this.nbCenterLayers/(this.distancePoint(a,e)*(this.nbCenterLayers+2));if(d<.75||d>1.25||!this.isWhiteOrBlackRectangle(s,u,c,l))break}e=s,n=u,i=c,a=l,o=!o}if(this.nbCenterLayers!==5&&this.nbCenterLayers!==7)throw new ze;this.compact=this.nbCenterLayers===5;var h=new yt(e.getX()+.5,e.getY()-.5),f=new yt(n.getX()+.5,n.getY()+.5),g=new yt(i.getX()-.5,i.getY()+.5),m=new yt(a.getX()-.5,a.getY()-.5);return this.expandSquare([h,f,g,m],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},r.prototype.getMatrixCenter=function(){var t,e,n,i;try{var a=new B0(this.image).detect();t=a[0],e=a[1],n=a[2],i=a[3]}catch{var o=this.image.getWidth()/2,s=this.image.getHeight()/2;t=this.getFirstDifferent(new Si(o+7,s-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new Si(o+7,s+7),!1,1,1).toResultPoint(),n=this.getFirstDifferent(new Si(o-7,s+7),!1,-1,1).toResultPoint(),i=this.getFirstDifferent(new Si(o-7,s-7),!1,-1,-1).toResultPoint()}var u=yr.round((t.getX()+i.getX()+e.getX()+n.getX())/4),c=yr.round((t.getY()+i.getY()+e.getY()+n.getY())/4);try{var a=new B0(this.image,15,u,c).detect();t=a[0],e=a[1],n=a[2],i=a[3]}catch{t=this.getFirstDifferent(new Si(u+7,c-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new Si(u+7,c+7),!1,1,1).toResultPoint(),n=this.getFirstDifferent(new Si(u-7,c+7),!1,-1,1).toResultPoint(),i=this.getFirstDifferent(new Si(u-7,c-7),!1,-1,-1).toResultPoint()}return u=yr.round((t.getX()+i.getX()+e.getX()+n.getX())/4),c=yr.round((t.getY()+i.getY()+e.getY()+n.getY())/4),new Si(u,c)},r.prototype.getMatrixCornerPoints=function(t){return this.expandSquare(t,2*this.nbCenterLayers,this.getDimension())},r.prototype.sampleGrid=function(t,e,n,i,a){var o=U0.getInstance(),s=this.getDimension(),u=s/2-this.nbCenterLayers,c=s/2+this.nbCenterLayers;return o.sampleGrid(t,s,s,u,u,c,u,c,c,u,c,e.getX(),e.getY(),n.getX(),n.getY(),i.getX(),i.getY(),a.getX(),a.getY())},r.prototype.sampleLine=function(t,e,n){for(var i=0,a=this.distanceResultPoint(t,e),o=a/n,s=t.getX(),u=t.getY(),c=o*(e.getX()-t.getX())/a,l=o*(e.getY()-t.getY())/a,d=0;d<n;d++)this.image.get(yr.round(s+d*c),yr.round(u+d*l))&&(i|=1<<n-d-1);return i},r.prototype.isWhiteOrBlackRectangle=function(t,e,n,i){var a=3;t=new Si(t.getX()-a,t.getY()+a),e=new Si(e.getX()-a,e.getY()-a),n=new Si(n.getX()+a,n.getY()-a),i=new Si(i.getX()+a,i.getY()+a);var o=this.getColor(i,t);if(o===0)return!1;var s=this.getColor(t,e);return s!==o||(s=this.getColor(e,n),s!==o)?!1:(s=this.getColor(n,i),s===o)},r.prototype.getColor=function(t,e){for(var n=this.distancePoint(t,e),i=(e.getX()-t.getX())/n,a=(e.getY()-t.getY())/n,o=0,s=t.getX(),u=t.getY(),c=this.image.get(t.getX(),t.getY()),l=Math.ceil(n),d=0;d<l;d++)s+=i,u+=a,this.image.get(yr.round(s),yr.round(u))!==c&&o++;var h=o/n;return h>.1&&h<.9?0:h<=.1===c?1:-1},r.prototype.getFirstDifferent=function(t,e,n,i){for(var a=t.getX()+n,o=t.getY()+i;this.isValid(a,o)&&this.image.get(a,o)===e;)a+=n,o+=i;for(a-=n,o-=i;this.isValid(a,o)&&this.image.get(a,o)===e;)a+=n;for(a-=n;this.isValid(a,o)&&this.image.get(a,o)===e;)o+=i;return o-=i,new Si(a,o)},r.prototype.expandSquare=function(t,e,n){var i=n/(2*e),a=t[0].getX()-t[2].getX(),o=t[0].getY()-t[2].getY(),s=(t[0].getX()+t[2].getX())/2,u=(t[0].getY()+t[2].getY())/2,c=new yt(s+i*a,u+i*o),l=new yt(s-i*a,u-i*o);a=t[1].getX()-t[3].getX(),o=t[1].getY()-t[3].getY(),s=(t[1].getX()+t[3].getX())/2,u=(t[1].getY()+t[3].getY())/2;var d=new yt(s+i*a,u+i*o),h=new yt(s-i*a,u-i*o),f=[c,d,l,h];return f},r.prototype.isValid=function(t,e){return t>=0&&t<this.image.getWidth()&&e>0&&e<this.image.getHeight()},r.prototype.isValidPoint=function(t){var e=yr.round(t.getX()),n=yr.round(t.getY());return this.isValid(e,n)},r.prototype.distancePoint=function(t,e){return yr.distance(t.getX(),t.getY(),e.getX(),e.getY())},r.prototype.distanceResultPoint=function(t,e){return yr.distance(t.getX(),t.getY(),e.getX(),e.getY())},r.prototype.getDimension=function(){return this.compact?4*this.nbLayers+11:this.nbLayers<=4?4*this.nbLayers+15:4*this.nbLayers+2*(ln.truncDivision(this.nbLayers-4,8)+1)+15},r}(),vh=function(){function r(){}return r.prototype.decode=function(t,e){e===void 0&&(e=null);var n=null,i=new gk(t.getBlackMatrix()),a=null,o=null;try{var s=i.detectMirror(!1);a=s.getPoints(),this.reportFoundResultPoints(e,a),o=new Wy().decode(s)}catch(d){n=d}if(o==null)try{var s=i.detectMirror(!0);a=s.getPoints(),this.reportFoundResultPoints(e,a),o=new Wy().decode(s)}catch(d){throw n!=null?n:d}var u=new Yn(o.getText(),o.getRawBytes(),o.getNumBits(),a,It.AZTEC,zr.currentTimeMillis()),c=o.getByteSegments();c!=null&&u.putMetadata(zn.BYTE_SEGMENTS,c);var l=o.getECLevel();return l!=null&&u.putMetadata(zn.ERROR_CORRECTION_LEVEL,l),u},r.prototype.reportFoundResultPoints=function(t,e){if(t!=null){var n=t.get(Hr.NEED_RESULT_POINT_CALLBACK);n!=null&&e.forEach(function(i,a,o){n.foundPossibleResultPoint(i)})}},r.prototype.reset=function(){},r}(),vk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();(function(r){vk(t,r);function t(e){return e===void 0&&(e=500),r.call(this,new vh,e)||this}return t})(vu);var Dn=function(){function r(){}return r.prototype.decode=function(t,e){try{return this.doDecode(t,e)}catch{var n=e&&e.get(Hr.TRY_HARDER)===!0;if(n&&t.isRotateSupported()){var i=t.rotateCounterClockwise(),a=this.doDecode(i,e),o=a.getResultMetadata(),s=270;o!==null&&o.get(zn.ORIENTATION)===!0&&(s=s+o.get(zn.ORIENTATION)%360),a.putMetadata(zn.ORIENTATION,s);var u=a.getResultPoints();if(u!==null)for(var c=i.getHeight(),l=0;l<u.length;l++)u[l]=new yt(c-u[l].getY()-1,u[l].getX());return a}else throw new ze}},r.prototype.reset=function(){},r.prototype.doDecode=function(t,e){var n=t.getWidth(),i=t.getHeight(),a=new Ti(n),o=e&&e.get(Hr.TRY_HARDER)===!0,s=Math.max(1,i>>(o?8:5)),u;o?u=i:u=15;for(var c=Math.trunc(i/2),l=0;l<u;l++){var d=Math.trunc((l+1)/2),h=(l&1)==0,f=c+s*(h?d:-d);if(f<0||f>=i)break;try{a=t.getBlackRow(f,a)}catch{continue}for(var g=function(v){if(v===1&&(a.reverse(),e&&e.get(Hr.NEED_RESULT_POINT_CALLBACK)===!0)){var b=new Map;e.forEach(function(M,z){return b.set(z,M)}),b.delete(Hr.NEED_RESULT_POINT_CALLBACK),e=b}try{var A=m.decodeRow(f,a,e);if(v===1){A.putMetadata(zn.ORIENTATION,180);var C=A.getResultPoints();C!==null&&(C[0]=new yt(n-C[0].getX()-1,C[0].getY()),C[1]=new yt(n-C[1].getX()-1,C[1].getY()))}return{value:A}}catch{}},m=this,p=0;p<2;p++){var y=g(p);if(typeof y=="object")return y.value}}throw new ze},r.recordPattern=function(t,e,n){for(var i=n.length,a=0;a<i;a++)n[a]=0;var o=t.getSize();if(e>=o)throw new ze;for(var s=!t.get(e),u=0,c=e;c<o;){if(t.get(c)!==s)n[u]++;else{if(++u===i)break;n[u]=1,s=!s}c++}if(!(u===i||u===i-1&&c===o))throw new ze},r.recordPatternInReverse=function(t,e,n){for(var i=n.length,a=t.get(e);e>0&&i>=0;)t.get(--e)!==a&&(i--,a=!a);if(i>=0)throw new ze;r.recordPattern(t,e+1,n)},r.patternMatchVariance=function(t,e,n){for(var i=t.length,a=0,o=0,s=0;s<i;s++)a+=t[s],o+=e[s];if(a<o)return Number.POSITIVE_INFINITY;var u=a/o;n*=u;for(var c=0,l=0;l<i;l++){var d=t[l],h=e[l]*u,f=d>h?d-h:h-d;if(f>n)return Number.POSITIVE_INFINITY;c+=f}return c/a},r}(),yk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$y=function(r){yk(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.findStartPattern=function(e){for(var n=e.getSize(),i=e.getNextSet(0),a=0,o=Int32Array.from([0,0,0,0,0,0]),s=i,u=!1,c=6,l=i;l<n;l++)if(e.get(l)!==u)o[a]++;else{if(a===c-1){for(var d=t.MAX_AVG_VARIANCE,h=-1,f=t.CODE_START_A;f<=t.CODE_START_C;f++){var g=Dn.patternMatchVariance(o,t.CODE_PATTERNS[f],t.MAX_INDIVIDUAL_VARIANCE);g<d&&(d=g,h=f)}if(h>=0&&e.isRange(Math.max(0,s-(l-s)/2),s,!1))return Int32Array.from([s,l,h]);s+=o[0]+o[1],o=o.slice(2,o.length),o[a-1]=0,o[a]=0,a--}else a++;o[a]=1,u=!u}throw new ze},t.decodeCode=function(e,n,i){Dn.recordPattern(e,i,n);for(var a=t.MAX_AVG_VARIANCE,o=-1,s=0;s<t.CODE_PATTERNS.length;s++){var u=t.CODE_PATTERNS[s],c=this.patternMatchVariance(n,u,t.MAX_INDIVIDUAL_VARIANCE);c<a&&(a=c,o=s)}if(o>=0)return o;throw new ze},t.prototype.decodeRow=function(e,n,i){var a=i&&i.get(Hr.ASSUME_GS1)===!0,o=t.findStartPattern(n),s=o[2],u=0,c=new Uint8Array(20);c[u++]=s;var l;switch(s){case t.CODE_START_A:l=t.CODE_CODE_A;break;case t.CODE_START_B:l=t.CODE_CODE_B;break;case t.CODE_START_C:l=t.CODE_CODE_C;break;default:throw new ct}for(var d=!1,h=!1,f="",g=o[0],m=o[1],p=Int32Array.from([0,0,0,0,0,0]),y=0,v=0,b=s,A=0,C=!0,M=!1,z=!1;!d;){var W=h;switch(h=!1,y=v,v=t.decodeCode(n,p,m),c[u++]=v,v!==t.CODE_STOP&&(C=!0),v!==t.CODE_STOP&&(A++,b+=A*v),g=m,m+=p.reduce(function(w,_){return w+_},0),v){case t.CODE_START_A:case t.CODE_START_B:case t.CODE_START_C:throw new ct}switch(l){case t.CODE_CODE_A:if(v<64)z===M?f+=String.fromCharCode(" ".charCodeAt(0)+v):f+=String.fromCharCode(" ".charCodeAt(0)+v+128),z=!1;else if(v<96)z===M?f+=String.fromCharCode(v-64):f+=String.fromCharCode(v+64),z=!1;else switch(v!==t.CODE_STOP&&(C=!1),v){case t.CODE_FNC_1:a&&(f.length===0?f+="]C1":f+=String.fromCharCode(29));break;case t.CODE_FNC_2:case t.CODE_FNC_3:break;case t.CODE_FNC_4_A:!M&&z?(M=!0,z=!1):M&&z?(M=!1,z=!1):z=!0;break;case t.CODE_SHIFT:h=!0,l=t.CODE_CODE_B;break;case t.CODE_CODE_B:l=t.CODE_CODE_B;break;case t.CODE_CODE_C:l=t.CODE_CODE_C;break;case t.CODE_STOP:d=!0;break}break;case t.CODE_CODE_B:if(v<96)z===M?f+=String.fromCharCode(" ".charCodeAt(0)+v):f+=String.fromCharCode(" ".charCodeAt(0)+v+128),z=!1;else switch(v!==t.CODE_STOP&&(C=!1),v){case t.CODE_FNC_1:a&&(f.length===0?f+="]C1":f+=String.fromCharCode(29));break;case t.CODE_FNC_2:case t.CODE_FNC_3:break;case t.CODE_FNC_4_B:!M&&z?(M=!0,z=!1):M&&z?(M=!1,z=!1):z=!0;break;case t.CODE_SHIFT:h=!0,l=t.CODE_CODE_A;break;case t.CODE_CODE_A:l=t.CODE_CODE_A;break;case t.CODE_CODE_C:l=t.CODE_CODE_C;break;case t.CODE_STOP:d=!0;break}break;case t.CODE_CODE_C:if(v<100)v<10&&(f+="0"),f+=v;else switch(v!==t.CODE_STOP&&(C=!1),v){case t.CODE_FNC_1:a&&(f.length===0?f+="]C1":f+=String.fromCharCode(29));break;case t.CODE_CODE_A:l=t.CODE_CODE_A;break;case t.CODE_CODE_B:l=t.CODE_CODE_B;break;case t.CODE_STOP:d=!0;break}break}W&&(l=l===t.CODE_CODE_A?t.CODE_CODE_B:t.CODE_CODE_A)}var U=m-g;if(m=n.getNextUnset(m),!n.isRange(m,Math.min(n.getSize(),m+(m-g)/2),!1))throw new ze;if(b-=A*y,b%103!==y)throw new bn;var G=f.length;if(G===0)throw new ze;G>0&&C&&(l===t.CODE_CODE_C?f=f.substring(0,G-2):f=f.substring(0,G-1));for(var ee=(o[1]+o[0])/2,I=g+U/2,O=c.length,T=new Uint8Array(O),S=0;S<O;S++)T[S]=c[S];var x=[new yt(ee,e),new yt(I,e)];return new Yn(f,T,0,x,It.CODE_128,new Date().getTime())},t.CODE_PATTERNS=[Int32Array.from([2,1,2,2,2,2]),Int32Array.from([2,2,2,1,2,2]),Int32Array.from([2,2,2,2,2,1]),Int32Array.from([1,2,1,2,2,3]),Int32Array.from([1,2,1,3,2,2]),Int32Array.from([1,3,1,2,2,2]),Int32Array.from([1,2,2,2,1,3]),Int32Array.from([1,2,2,3,1,2]),Int32Array.from([1,3,2,2,1,2]),Int32Array.from([2,2,1,2,1,3]),Int32Array.from([2,2,1,3,1,2]),Int32Array.from([2,3,1,2,1,2]),Int32Array.from([1,1,2,2,3,2]),Int32Array.from([1,2,2,1,3,2]),Int32Array.from([1,2,2,2,3,1]),Int32Array.from([1,1,3,2,2,2]),Int32Array.from([1,2,3,1,2,2]),Int32Array.from([1,2,3,2,2,1]),Int32Array.from([2,2,3,2,1,1]),Int32Array.from([2,2,1,1,3,2]),Int32Array.from([2,2,1,2,3,1]),Int32Array.from([2,1,3,2,1,2]),Int32Array.from([2,2,3,1,1,2]),Int32Array.from([3,1,2,1,3,1]),Int32Array.from([3,1,1,2,2,2]),Int32Array.from([3,2,1,1,2,2]),Int32Array.from([3,2,1,2,2,1]),Int32Array.from([3,1,2,2,1,2]),Int32Array.from([3,2,2,1,1,2]),Int32Array.from([3,2,2,2,1,1]),Int32Array.from([2,1,2,1,2,3]),Int32Array.from([2,1,2,3,2,1]),Int32Array.from([2,3,2,1,2,1]),Int32Array.from([1,1,1,3,2,3]),Int32Array.from([1,3,1,1,2,3]),Int32Array.from([1,3,1,3,2,1]),Int32Array.from([1,1,2,3,1,3]),Int32Array.from([1,3,2,1,1,3]),Int32Array.from([1,3,2,3,1,1]),Int32Array.from([2,1,1,3,1,3]),Int32Array.from([2,3,1,1,1,3]),Int32Array.from([2,3,1,3,1,1]),Int32Array.from([1,1,2,1,3,3]),Int32Array.from([1,1,2,3,3,1]),Int32Array.from([1,3,2,1,3,1]),Int32Array.from([1,1,3,1,2,3]),Int32Array.from([1,1,3,3,2,1]),Int32Array.from([1,3,3,1,2,1]),Int32Array.from([3,1,3,1,2,1]),Int32Array.from([2,1,1,3,3,1]),Int32Array.from([2,3,1,1,3,1]),Int32Array.from([2,1,3,1,1,3]),Int32Array.from([2,1,3,3,1,1]),Int32Array.from([2,1,3,1,3,1]),Int32Array.from([3,1,1,1,2,3]),Int32Array.from([3,1,1,3,2,1]),Int32Array.from([3,3,1,1,2,1]),Int32Array.from([3,1,2,1,1,3]),Int32Array.from([3,1,2,3,1,1]),Int32Array.from([3,3,2,1,1,1]),Int32Array.from([3,1,4,1,1,1]),Int32Array.from([2,2,1,4,1,1]),Int32Array.from([4,3,1,1,1,1]),Int32Array.from([1,1,1,2,2,4]),Int32Array.from([1,1,1,4,2,2]),Int32Array.from([1,2,1,1,2,4]),Int32Array.from([1,2,1,4,2,1]),Int32Array.from([1,4,1,1,2,2]),Int32Array.from([1,4,1,2,2,1]),Int32Array.from([1,1,2,2,1,4]),Int32Array.from([1,1,2,4,1,2]),Int32Array.from([1,2,2,1,1,4]),Int32Array.from([1,2,2,4,1,1]),Int32Array.from([1,4,2,1,1,2]),Int32Array.from([1,4,2,2,1,1]),Int32Array.from([2,4,1,2,1,1]),Int32Array.from([2,2,1,1,1,4]),Int32Array.from([4,1,3,1,1,1]),Int32Array.from([2,4,1,1,1,2]),Int32Array.from([1,3,4,1,1,1]),Int32Array.from([1,1,1,2,4,2]),Int32Array.from([1,2,1,1,4,2]),Int32Array.from([1,2,1,2,4,1]),Int32Array.from([1,1,4,2,1,2]),Int32Array.from([1,2,4,1,1,2]),Int32Array.from([1,2,4,2,1,1]),Int32Array.from([4,1,1,2,1,2]),Int32Array.from([4,2,1,1,1,2]),Int32Array.from([4,2,1,2,1,1]),Int32Array.from([2,1,2,1,4,1]),Int32Array.from([2,1,4,1,2,1]),Int32Array.from([4,1,2,1,2,1]),Int32Array.from([1,1,1,1,4,3]),Int32Array.from([1,1,1,3,4,1]),Int32Array.from([1,3,1,1,4,1]),Int32Array.from([1,1,4,1,1,3]),Int32Array.from([1,1,4,3,1,1]),Int32Array.from([4,1,1,1,1,3]),Int32Array.from([4,1,1,3,1,1]),Int32Array.from([1,1,3,1,4,1]),Int32Array.from([1,1,4,1,3,1]),Int32Array.from([3,1,1,1,4,1]),Int32Array.from([4,1,1,1,3,1]),Int32Array.from([2,1,1,4,1,2]),Int32Array.from([2,1,1,2,1,4]),Int32Array.from([2,1,1,2,3,2]),Int32Array.from([2,3,3,1,1,1,2])],t.MAX_AVG_VARIANCE=.25,t.MAX_INDIVIDUAL_VARIANCE=.7,t.CODE_SHIFT=98,t.CODE_CODE_C=99,t.CODE_CODE_B=100,t.CODE_CODE_A=101,t.CODE_FNC_1=102,t.CODE_FNC_2=97,t.CODE_FNC_3=96,t.CODE_FNC_4_A=101,t.CODE_FNC_4_B=100,t.CODE_START_A=103,t.CODE_START_B=104,t.CODE_START_C=105,t.CODE_STOP=106,t}(Dn),bk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),P0=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Vy=function(r){bk(t,r);function t(e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var i=r.call(this)||this;return i.usingCheckDigit=e,i.extendedMode=n,i.decodeRowResult="",i.counters=new Int32Array(9),i}return t.prototype.decodeRow=function(e,n,i){var a,o,s,u,c=this.counters;c.fill(0),this.decodeRowResult="";var l=t.findAsteriskPattern(n,c),d=n.getNextSet(l[1]),h=n.getSize(),f,g;do{t.recordPattern(n,d,c);var m=t.toNarrowWidePattern(c);if(m<0)throw new ze;f=t.patternToChar(m),this.decodeRowResult+=f,g=d;try{for(var p=(a=void 0,P0(c)),y=p.next();!y.done;y=p.next()){var v=y.value;d+=v}}catch(O){a={error:O}}finally{try{y&&!y.done&&(o=p.return)&&o.call(p)}finally{if(a)throw a.error}}d=n.getNextSet(d)}while(f!=="*");this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var b=0;try{for(var A=P0(c),C=A.next();!C.done;C=A.next()){var v=C.value;b+=v}}catch(O){s={error:O}}finally{try{C&&!C.done&&(u=A.return)&&u.call(A)}finally{if(s)throw s.error}}var M=d-g-b;if(d!==h&&M*2<b)throw new ze;if(this.usingCheckDigit){for(var z=this.decodeRowResult.length-1,W=0,U=0;U<z;U++)W+=t.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(U));if(this.decodeRowResult.charAt(z)!==t.ALPHABET_STRING.charAt(W%43))throw new bn;this.decodeRowResult=this.decodeRowResult.substring(0,z)}if(this.decodeRowResult.length===0)throw new ze;var G;this.extendedMode?G=t.decodeExtended(this.decodeRowResult):G=this.decodeRowResult;var ee=(l[1]+l[0])/2,I=g+b/2;return new Yn(G,null,0,[new yt(ee,e),new yt(I,e)],It.CODE_39,new Date().getTime())},t.findAsteriskPattern=function(e,n){for(var i=e.getSize(),a=e.getNextSet(0),o=0,s=a,u=!1,c=n.length,l=a;l<i;l++)if(e.get(l)!==u)n[o]++;else{if(o===c-1){if(this.toNarrowWidePattern(n)===t.ASTERISK_ENCODING&&e.isRange(Math.max(0,s-Math.floor((l-s)/2)),s,!1))return[s,l];s+=n[0]+n[1],n.copyWithin(0,2,2+o-1),n[o-1]=0,n[o]=0,o--}else o++;n[o]=1,u=!u}throw new ze},t.toNarrowWidePattern=function(e){var n,i,a=e.length,o=0,s;do{var u=2147483647;try{for(var c=(n=void 0,P0(e)),l=c.next();!l.done;l=c.next()){var d=l.value;d<u&&d>o&&(u=d)}}catch(m){n={error:m}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}o=u,s=0;for(var h=0,f=0,g=0;g<a;g++){var d=e[g];d>o&&(f|=1<<a-1-g,s++,h+=d)}if(s===3){for(var g=0;g<a&&s>0;g++){var d=e[g];if(d>o&&(s--,d*2>=h))return-1}return f}}while(s>3);return-1},t.patternToChar=function(e){for(var n=0;n<t.CHARACTER_ENCODINGS.length;n++)if(t.CHARACTER_ENCODINGS[n]===e)return t.ALPHABET_STRING.charAt(n);if(e===t.ASTERISK_ENCODING)return"*";throw new ze},t.decodeExtended=function(e){for(var n=e.length,i="",a=0;a<n;a++){var o=e.charAt(a);if(o==="+"||o==="$"||o==="%"||o==="/"){var s=e.charAt(a+1),u="\0";switch(o){case"+":if(s>="A"&&s<="Z")u=String.fromCharCode(s.charCodeAt(0)+32);else throw new ct;break;case"$":if(s>="A"&&s<="Z")u=String.fromCharCode(s.charCodeAt(0)-64);else throw new ct;break;case"%":if(s>="A"&&s<="E")u=String.fromCharCode(s.charCodeAt(0)-38);else if(s>="F"&&s<="J")u=String.fromCharCode(s.charCodeAt(0)-11);else if(s>="K"&&s<="O")u=String.fromCharCode(s.charCodeAt(0)+16);else if(s>="P"&&s<="T")u=String.fromCharCode(s.charCodeAt(0)+43);else if(s==="U")u="\0";else if(s==="V")u="@";else if(s==="W")u="`";else if(s==="X"||s==="Y"||s==="Z")u="\x7F";else throw new ct;break;case"/":if(s>="A"&&s<="O")u=String.fromCharCode(s.charCodeAt(0)-32);else if(s==="Z")u=":";else throw new ct;break}i+=u,a++}else i+=o}return i},t.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",t.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],t.ASTERISK_ENCODING=148,t}(Dn),wk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),L0=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},qy=function(r){wk(t,r);function t(){var e=r.call(this)||this;return e.decodeRowResult="",e.counters=new Int32Array(6),e}return t.prototype.decodeRow=function(e,n,i){var a,o,s,u,c=this.findAsteriskPattern(n),l=n.getNextSet(c[1]),d=n.getSize(),h=this.counters;h.fill(0),this.decodeRowResult="";var f,g;do{t.recordPattern(n,l,h);var m=this.toPattern(h);if(m<0)throw new ze;f=this.patternToChar(m),this.decodeRowResult+=f,g=l;try{for(var p=(a=void 0,L0(h)),y=p.next();!y.done;y=p.next()){var v=y.value;l+=v}}catch(U){a={error:U}}finally{try{y&&!y.done&&(o=p.return)&&o.call(p)}finally{if(a)throw a.error}}l=n.getNextSet(l)}while(f!=="*");this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var b=0;try{for(var A=L0(h),C=A.next();!C.done;C=A.next()){var v=C.value;b+=v}}catch(U){s={error:U}}finally{try{C&&!C.done&&(u=A.return)&&u.call(A)}finally{if(s)throw s.error}}if(l===d||!n.get(l))throw new ze;if(this.decodeRowResult.length<2)throw new ze;this.checkChecksums(this.decodeRowResult),this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-2);var M=this.decodeExtended(this.decodeRowResult),z=(c[1]+c[0])/2,W=g+b/2;return new Yn(M,null,0,[new yt(z,e),new yt(W,e)],It.CODE_93,new Date().getTime())},t.prototype.findAsteriskPattern=function(e){var n=e.getSize(),i=e.getNextSet(0);this.counters.fill(0);for(var a=this.counters,o=i,s=!1,u=a.length,c=0,l=i;l<n;l++)if(e.get(l)!==s)a[c]++;else{if(c===u-1){if(this.toPattern(a)===t.ASTERISK_ENCODING)return new Int32Array([o,l]);o+=a[0]+a[1],a.copyWithin(0,2,2+c-1),a[c-1]=0,a[c]=0,c--}else c++;a[c]=1,s=!s}throw new ze},t.prototype.toPattern=function(e){var n,i,a=0;try{for(var o=L0(e),s=o.next();!s.done;s=o.next()){var u=s.value;a+=u}}catch(g){n={error:g}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}for(var c=0,l=e.length,d=0;d<l;d++){var h=Math.round(e[d]*9/a);if(h<1||h>4)return-1;if((d&1)==0)for(var f=0;f<h;f++)c=c<<1|1;else c<<=h}return c},t.prototype.patternToChar=function(e){for(var n=0;n<t.CHARACTER_ENCODINGS.length;n++)if(t.CHARACTER_ENCODINGS[n]===e)return t.ALPHABET_STRING.charAt(n);throw new ze},t.prototype.decodeExtended=function(e){for(var n=e.length,i="",a=0;a<n;a++){var o=e.charAt(a);if(o>="a"&&o<="d"){if(a>=n-1)throw new ct;var s=e.charAt(a+1),u="\0";switch(o){case"d":if(s>="A"&&s<="Z")u=String.fromCharCode(s.charCodeAt(0)+32);else throw new ct;break;case"a":if(s>="A"&&s<="Z")u=String.fromCharCode(s.charCodeAt(0)-64);else throw new ct;break;case"b":if(s>="A"&&s<="E")u=String.fromCharCode(s.charCodeAt(0)-38);else if(s>="F"&&s<="J")u=String.fromCharCode(s.charCodeAt(0)-11);else if(s>="K"&&s<="O")u=String.fromCharCode(s.charCodeAt(0)+16);else if(s>="P"&&s<="T")u=String.fromCharCode(s.charCodeAt(0)+43);else if(s==="U")u="\0";else if(s==="V")u="@";else if(s==="W")u="`";else if(s>="X"&&s<="Z")u=String.fromCharCode(127);else throw new ct;break;case"c":if(s>="A"&&s<="O")u=String.fromCharCode(s.charCodeAt(0)-32);else if(s==="Z")u=":";else throw new ct;break}i+=u,a++}else i+=o}return i},t.prototype.checkChecksums=function(e){var n=e.length;this.checkOneChecksum(e,n-2,20),this.checkOneChecksum(e,n-1,15)},t.prototype.checkOneChecksum=function(e,n,i){for(var a=1,o=0,s=n-1;s>=0;s--)o+=a*t.ALPHABET_STRING.indexOf(e.charAt(s)),++a>i&&(a=1);if(e.charAt(n)!==t.ALPHABET_STRING[o%47])throw new bn},t.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*",t.CHARACTER_ENCODINGS=[276,328,324,322,296,292,290,336,274,266,424,420,418,404,402,394,360,356,354,308,282,344,332,326,300,278,436,434,428,422,406,410,364,358,310,314,302,468,466,458,366,374,430,294,474,470,306,350],t.ASTERISK_ENCODING=t.CHARACTER_ENCODINGS[47],t}(Dn),xk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_k=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Gy=function(r){xk(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.narrowLineWidth=-1,e}return t.prototype.decodeRow=function(e,n,i){var a,o,s=this.decodeStart(n),u=this.decodeEnd(n),c=new er;t.decodeMiddle(n,s[1],u[0],c);var l=c.toString(),d=null;i!=null&&(d=i.get(Hr.ALLOWED_LENGTHS)),d==null&&(d=t.DEFAULT_ALLOWED_LENGTHS);var h=l.length,f=!1,g=0;try{for(var m=_k(d),p=m.next();!p.done;p=m.next()){var y=p.value;if(h===y){f=!0;break}y>g&&(g=y)}}catch(A){a={error:A}}finally{try{p&&!p.done&&(o=m.return)&&o.call(m)}finally{if(a)throw a.error}}if(!f&&h>g&&(f=!0),!f)throw new ct;var v=[new yt(s[1],e),new yt(u[0],e)],b=new Yn(l,null,0,v,It.ITF,new Date().getTime());return b},t.decodeMiddle=function(e,n,i,a){var o=new Int32Array(10),s=new Int32Array(5),u=new Int32Array(5);for(o.fill(0),s.fill(0),u.fill(0);n<i;){Dn.recordPattern(e,n,o);for(var c=0;c<5;c++){var l=2*c;s[c]=o[l],u[c]=o[l+1]}var d=t.decodeDigit(s);a.append(d.toString()),d=this.decodeDigit(u),a.append(d.toString()),o.forEach(function(h){n+=h})}},t.prototype.decodeStart=function(e){var n=t.skipWhiteSpace(e),i=t.findGuardPattern(e,n,t.START_PATTERN);return this.narrowLineWidth=(i[1]-i[0])/4,this.validateQuietZone(e,i[0]),i},t.prototype.validateQuietZone=function(e,n){var i=this.narrowLineWidth*10;i=i<n?i:n;for(var a=n-1;i>0&&a>=0&&!e.get(a);a--)i--;if(i!==0)throw new ze},t.skipWhiteSpace=function(e){var n=e.getSize(),i=e.getNextSet(0);if(i===n)throw new ze;return i},t.prototype.decodeEnd=function(e){e.reverse();try{var n=t.skipWhiteSpace(e),i=void 0;try{i=t.findGuardPattern(e,n,t.END_PATTERN_REVERSED[0])}catch(o){o instanceof ze&&(i=t.findGuardPattern(e,n,t.END_PATTERN_REVERSED[1]))}this.validateQuietZone(e,i[0]);var a=i[0];return i[0]=e.getSize()-i[1],i[1]=e.getSize()-a,i}finally{e.reverse()}},t.findGuardPattern=function(e,n,i){var a=i.length,o=new Int32Array(a),s=e.getSize(),u=!1,c=0,l=n;o.fill(0);for(var d=n;d<s;d++)if(e.get(d)!==u)o[c]++;else{if(c===a-1){if(Dn.patternMatchVariance(o,i,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE)return[l,d];l+=o[0]+o[1],zr.arraycopy(o,2,o,0,c-1),o[c-1]=0,o[c]=0,c--}else c++;o[c]=1,u=!u}throw new ze},t.decodeDigit=function(e){for(var n=t.MAX_AVG_VARIANCE,i=-1,a=t.PATTERNS.length,o=0;o<a;o++){var s=t.PATTERNS[o],u=Dn.patternMatchVariance(e,s,t.MAX_INDIVIDUAL_VARIANCE);u<n?(n=u,i=o):u===n&&(i=-1)}if(i>=0)return i%10;throw new ze},t.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],t.MAX_AVG_VARIANCE=.38,t.MAX_INDIVIDUAL_VARIANCE=.5,t.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],t.START_PATTERN=Int32Array.from([1,1,1,1]),t.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])],t}(Dn),Ek=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),bu=function(r){Ek(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.decodeRowStringBuffer="",e}return t.findStartGuardPattern=function(e){for(var n=!1,i,a=0,o=Int32Array.from([0,0,0]);!n;){o=Int32Array.from([0,0,0]),i=t.findGuardPattern(e,a,!1,this.START_END_PATTERN,o);var s=i[0];a=i[1];var u=s-(a-s);u>=0&&(n=e.isRange(u,s,!1))}return i},t.checkChecksum=function(e){return t.checkStandardUPCEANChecksum(e)},t.checkStandardUPCEANChecksum=function(e){var n=e.length;if(n===0)return!1;var i=parseInt(e.charAt(n-1),10);return t.getStandardUPCEANChecksum(e.substring(0,n-1))===i},t.getStandardUPCEANChecksum=function(e){for(var n=e.length,i=0,a=n-1;a>=0;a-=2){var o=e.charAt(a).charCodeAt(0)-"0".charCodeAt(0);if(o<0||o>9)throw new ct;i+=o}i*=3;for(var a=n-2;a>=0;a-=2){var o=e.charAt(a).charCodeAt(0)-"0".charCodeAt(0);if(o<0||o>9)throw new ct;i+=o}return(1e3-i)%10},t.decodeEnd=function(e,n){return t.findGuardPattern(e,n,!1,t.START_END_PATTERN,new Int32Array(t.START_END_PATTERN.length).fill(0))},t.findGuardPatternWithoutCounters=function(e,n,i,a){return this.findGuardPattern(e,n,i,a,new Int32Array(a.length))},t.findGuardPattern=function(e,n,i,a,o){var s=e.getSize();n=i?e.getNextUnset(n):e.getNextSet(n);for(var u=0,c=n,l=a.length,d=i,h=n;h<s;h++)if(e.get(h)!==d)o[u]++;else{if(u===l-1){if(Dn.patternMatchVariance(o,a,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE)return Int32Array.from([c,h]);c+=o[0]+o[1];for(var f=o.slice(2,o.length),g=0;g<u-1;g++)o[g]=f[g];o[u-1]=0,o[u]=0,u--}else u++;o[u]=1,d=!d}throw new ze},t.decodeDigit=function(e,n,i,a){this.recordPattern(e,i,n);for(var o=this.MAX_AVG_VARIANCE,s=-1,u=a.length,c=0;c<u;c++){var l=a[c],d=Dn.patternMatchVariance(n,l,t.MAX_INDIVIDUAL_VARIANCE);d<o&&(o=d,s=c)}if(s>=0)return s;throw new ze},t.MAX_AVG_VARIANCE=.48,t.MAX_INDIVIDUAL_VARIANCE=.7,t.START_END_PATTERN=Int32Array.from([1,1,1]),t.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),t.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),t.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])],t}(Dn),Ak=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Tk=function(){function r(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return r.prototype.decodeRow=function(t,e,n){var i=this.decodeRowStringBuffer,a=this.decodeMiddle(e,n,i),o=i.toString(),s=r.parseExtensionString(o),u=[new yt((n[0]+n[1])/2,t),new yt(a,t)],c=new Yn(o,null,0,u,It.UPC_EAN_EXTENSION,new Date().getTime());return s!=null&&c.putAllMetadata(s),c},r.prototype.decodeMiddle=function(t,e,n){var i,a,o=this.decodeMiddleCounters;o[0]=0,o[1]=0,o[2]=0,o[3]=0;for(var s=t.getSize(),u=e[1],c=0,l=0;l<5&&u<s;l++){var d=bu.decodeDigit(t,o,u,bu.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+d%10);try{for(var h=(i=void 0,Ak(o)),f=h.next();!f.done;f=h.next()){var g=f.value;u+=g}}catch(p){i={error:p}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}d>=10&&(c|=1<<4-l),l!==4&&(u=t.getNextSet(u),u=t.getNextUnset(u))}if(n.length!==5)throw new ze;var m=this.determineCheckDigit(c);if(r.extensionChecksum(n.toString())!==m)throw new ze;return u},r.extensionChecksum=function(t){for(var e=t.length,n=0,i=e-2;i>=0;i-=2)n+=t.charAt(i).charCodeAt(0)-"0".charCodeAt(0);n*=3;for(var i=e-1;i>=0;i-=2)n+=t.charAt(i).charCodeAt(0)-"0".charCodeAt(0);return n*=3,n%10},r.prototype.determineCheckDigit=function(t){for(var e=0;e<10;e++)if(t===this.CHECK_DIGIT_ENCODINGS[e])return e;throw new ze},r.parseExtensionString=function(t){if(t.length!==5)return null;var e=r.parseExtension5String(t);return e==null?null:new Map([[zn.SUGGESTED_PRICE,e]])},r.parseExtension5String=function(t){var e;switch(t.charAt(0)){case"0":e="\xA3";break;case"5":e="$";break;case"9":switch(t){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}e="";break;default:e="";break}var n=parseInt(t.substring(1)),i=(n/100).toString(),a=n%100,o=a<10?"0"+a:a.toString();return e+i+"."+o},r}(),Sk=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Dk=function(){function r(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return r.prototype.decodeRow=function(t,e,n){var i=this.decodeRowStringBuffer,a=this.decodeMiddle(e,n,i),o=i.toString(),s=r.parseExtensionString(o),u=[new yt((n[0]+n[1])/2,t),new yt(a,t)],c=new Yn(o,null,0,u,It.UPC_EAN_EXTENSION,new Date().getTime());return s!=null&&c.putAllMetadata(s),c},r.prototype.decodeMiddle=function(t,e,n){var i,a,o=this.decodeMiddleCounters;o[0]=0,o[1]=0,o[2]=0,o[3]=0;for(var s=t.getSize(),u=e[1],c=0,l=0;l<2&&u<s;l++){var d=bu.decodeDigit(t,o,u,bu.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+d%10);try{for(var h=(i=void 0,Sk(o)),f=h.next();!f.done;f=h.next()){var g=f.value;u+=g}}catch(m){i={error:m}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}d>=10&&(c|=1<<1-l),l!==1&&(u=t.getNextSet(u),u=t.getNextUnset(u))}if(n.length!==2)throw new ze;if(parseInt(n.toString())%4!==c)throw new ze;return u},r.parseExtensionString=function(t){return t.length!==2?null:new Map([[zn.ISSUE_NUMBER,parseInt(t)]])},r}(),Ck=function(){function r(){}return r.decodeRow=function(t,e,n){var i=bu.findGuardPattern(e,n,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{var a=new Tk;return a.decodeRow(t,e,i)}catch{var o=new Dk;return o.decodeRow(t,e,i)}},r.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),r}(),Ok=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Cn=function(r){Ok(t,r);function t(){var e=r.call(this)||this;e.decodeRowStringBuffer="",t.L_AND_G_PATTERNS=t.L_PATTERNS.map(function(s){return Int32Array.from(s)});for(var n=10;n<20;n++){for(var i=t.L_PATTERNS[n-10],a=new Int32Array(i.length),o=0;o<i.length;o++)a[o]=i[i.length-o-1];t.L_AND_G_PATTERNS[n]=a}return e}return t.prototype.decodeRow=function(e,n,i){var a=t.findStartGuardPattern(n),o=i==null?null:i.get(Hr.NEED_RESULT_POINT_CALLBACK);if(o!=null){var s=new yt((a[0]+a[1])/2,e);o.foundPossibleResultPoint(s)}var u=this.decodeMiddle(n,a,this.decodeRowStringBuffer),c=u.rowOffset,l=u.resultString;if(o!=null){var d=new yt(c,e);o.foundPossibleResultPoint(d)}var h=t.decodeEnd(n,c);if(o!=null){var f=new yt((h[0]+h[1])/2,e);o.foundPossibleResultPoint(f)}var g=h[1],m=g+(g-h[0]);if(m>=n.getSize()||!n.isRange(g,m,!1))throw new ze;var p=l.toString();if(p.length<8)throw new ct;if(!t.checkChecksum(p))throw new bn;var y=(a[1]+a[0])/2,v=(h[1]+h[0])/2,b=this.getBarcodeFormat(),A=[new yt(y,e),new yt(v,e)],C=new Yn(p,null,0,A,b,new Date().getTime()),M=0;try{var z=Ck.decodeRow(e,n,h[1]);C.putMetadata(zn.UPC_EAN_EXTENSION,z.getText()),C.putAllMetadata(z.getResultMetadata()),C.addResultPoints(z.getResultPoints()),M=z.getText().length}catch{}var W=i==null?null:i.get(Hr.ALLOWED_EAN_EXTENSIONS);if(W!=null){var U=!1;for(var G in W)if(M.toString()===G){U=!0;break}if(!U)throw new ze}return b===It.EAN_13||b===It.UPC_A,C},t.checkChecksum=function(e){return t.checkStandardUPCEANChecksum(e)},t.checkStandardUPCEANChecksum=function(e){var n=e.length;if(n===0)return!1;var i=parseInt(e.charAt(n-1),10);return t.getStandardUPCEANChecksum(e.substring(0,n-1))===i},t.getStandardUPCEANChecksum=function(e){for(var n=e.length,i=0,a=n-1;a>=0;a-=2){var o=e.charAt(a).charCodeAt(0)-"0".charCodeAt(0);if(o<0||o>9)throw new ct;i+=o}i*=3;for(var a=n-2;a>=0;a-=2){var o=e.charAt(a).charCodeAt(0)-"0".charCodeAt(0);if(o<0||o>9)throw new ct;i+=o}return(1e3-i)%10},t.decodeEnd=function(e,n){return t.findGuardPattern(e,n,!1,t.START_END_PATTERN,new Int32Array(t.START_END_PATTERN.length).fill(0))},t}(bu),Ik=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Xy=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},j0=function(r){Ik(t,r);function t(){var e=r.call(this)||this;return e.decodeMiddleCounters=Int32Array.from([0,0,0,0]),e}return t.prototype.decodeMiddle=function(e,n,i){var a,o,s,u,c=this.decodeMiddleCounters;c[0]=0,c[1]=0,c[2]=0,c[3]=0;for(var l=e.getSize(),d=n[1],h=0,f=0;f<6&&d<l;f++){var g=Cn.decodeDigit(e,c,d,Cn.L_AND_G_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+g%10);try{for(var m=(a=void 0,Xy(c)),p=m.next();!p.done;p=m.next()){var y=p.value;d+=y}}catch(C){a={error:C}}finally{try{p&&!p.done&&(o=m.return)&&o.call(m)}finally{if(a)throw a.error}}g>=10&&(h|=1<<5-f)}i=t.determineFirstDigit(i,h);var v=Cn.findGuardPattern(e,d,!0,Cn.MIDDLE_PATTERN,new Int32Array(Cn.MIDDLE_PATTERN.length).fill(0));d=v[1];for(var f=0;f<6&&d<l;f++){var g=Cn.decodeDigit(e,c,d,Cn.L_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+g);try{for(var b=(s=void 0,Xy(c)),A=b.next();!A.done;A=b.next()){var y=A.value;d+=y}}catch(z){s={error:z}}finally{try{A&&!A.done&&(u=b.return)&&u.call(b)}finally{if(s)throw s.error}}}return{rowOffset:d,resultString:i}},t.prototype.getBarcodeFormat=function(){return It.EAN_13},t.determineFirstDigit=function(e,n){for(var i=0;i<10;i++)if(n===this.FIRST_DIGIT_ENCODINGS[i])return e=String.fromCharCode("0".charCodeAt(0)+i)+e,e;throw new ze},t.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26],t}(Cn),kk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ky=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Zy=function(r){kk(t,r);function t(){var e=r.call(this)||this;return e.decodeMiddleCounters=Int32Array.from([0,0,0,0]),e}return t.prototype.decodeMiddle=function(e,n,i){var a,o,s,u,c=this.decodeMiddleCounters;c[0]=0,c[1]=0,c[2]=0,c[3]=0;for(var l=e.getSize(),d=n[1],h=0;h<4&&d<l;h++){var f=Cn.decodeDigit(e,c,d,Cn.L_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+f);try{for(var g=(a=void 0,Ky(c)),m=g.next();!m.done;m=g.next()){var p=m.value;d+=p}}catch(A){a={error:A}}finally{try{m&&!m.done&&(o=g.return)&&o.call(g)}finally{if(a)throw a.error}}}var y=Cn.findGuardPattern(e,d,!0,Cn.MIDDLE_PATTERN,new Int32Array(Cn.MIDDLE_PATTERN.length).fill(0));d=y[1];for(var h=0;h<4&&d<l;h++){var f=Cn.decodeDigit(e,c,d,Cn.L_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+f);try{for(var v=(s=void 0,Ky(c)),b=v.next();!b.done;b=v.next()){var p=b.value;d+=p}}catch(M){s={error:M}}finally{try{b&&!b.done&&(u=v.return)&&u.call(v)}finally{if(s)throw s.error}}}return{rowOffset:d,resultString:i}},t.prototype.getBarcodeFormat=function(){return It.EAN_8},t}(Cn),Rk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Yy=function(r){Rk(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ean13Reader=new j0,e}return t.prototype.getBarcodeFormat=function(){return It.UPC_A},t.prototype.decode=function(e,n){return this.maybeReturnResult(this.ean13Reader.decode(e))},t.prototype.decodeRow=function(e,n,i){return this.maybeReturnResult(this.ean13Reader.decodeRow(e,n,i))},t.prototype.decodeMiddle=function(e,n,i){return this.ean13Reader.decodeMiddle(e,n,i)},t.prototype.maybeReturnResult=function(e){var n=e.getText();if(n.charAt(0)==="0"){var i=new Yn(n.substring(1),null,null,e.getResultPoints(),It.UPC_A);return e.getResultMetadata()!=null&&i.putAllMetadata(e.getResultMetadata()),i}else throw new ze},t.prototype.reset=function(){this.ean13Reader.reset()},t}(Cn),Fk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Nk=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Jy=function(r){Fk(t,r);function t(){var e=r.call(this)||this;return e.decodeMiddleCounters=new Int32Array(4),e}return t.prototype.decodeMiddle=function(e,n,i){var a,o,s=this.decodeMiddleCounters.map(function(p){return p});s[0]=0,s[1]=0,s[2]=0,s[3]=0;for(var u=e.getSize(),c=n[1],l=0,d=0;d<6&&c<u;d++){var h=t.decodeDigit(e,s,c,t.L_AND_G_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+h%10);try{for(var f=(a=void 0,Nk(s)),g=f.next();!g.done;g=f.next()){var m=g.value;c+=m}}catch(p){a={error:p}}finally{try{g&&!g.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}h>=10&&(l|=1<<5-d)}return t.determineNumSysAndCheckDigit(new er(i),l),c},t.prototype.decodeEnd=function(e,n){return t.findGuardPatternWithoutCounters(e,n,!0,t.MIDDLE_END_PATTERN)},t.prototype.checkChecksum=function(e){return Cn.checkChecksum(t.convertUPCEtoUPCA(e))},t.determineNumSysAndCheckDigit=function(e,n){for(var i=0;i<=1;i++)for(var a=0;a<10;a++)if(n===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[i][a]){e.insert(0,"0"+i),e.append("0"+a);return}throw ze.getNotFoundInstance()},t.prototype.getBarcodeFormat=function(){return It.UPC_E},t.convertUPCEtoUPCA=function(e){var n=e.slice(1,7).split("").map(function(o){return o.charCodeAt(0)}),i=new er;i.append(e.charAt(0));var a=n[5];switch(a){case 0:case 1:case 2:i.appendChars(n,0,2),i.append(a),i.append("0000"),i.appendChars(n,2,3);break;case 3:i.appendChars(n,0,3),i.append("00000"),i.appendChars(n,3,2);break;case 4:i.appendChars(n,0,4),i.append("00000"),i.append(n[4]);break;default:i.appendChars(n,0,5),i.append("0000"),i.append(a);break}return e.length>=8&&i.append(e.charAt(7)),i.toString()},t.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),t.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1])],t}(Cn),Mk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qy=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},W0=function(r){Mk(t,r);function t(e){var n=r.call(this)||this,i=e==null?null:e.get(Hr.POSSIBLE_FORMATS),a=[];return i!=null&&(i.indexOf(It.EAN_13)>-1&&a.push(new j0),i.indexOf(It.UPC_A)>-1&&a.push(new Yy),i.indexOf(It.EAN_8)>-1&&a.push(new Zy),i.indexOf(It.UPC_E)>-1&&a.push(new Jy)),a.length===0&&(a.push(new j0),a.push(new Yy),a.push(new Zy),a.push(new Jy)),n.readers=a,n}return t.prototype.decodeRow=function(e,n,i){var a,o;try{for(var s=Qy(this.readers),u=s.next();!u.done;u=s.next()){var c=u.value;try{var l=c.decodeRow(e,n,i),d=l.getBarcodeFormat()===It.EAN_13&&l.getText().charAt(0)==="0",h=i==null?null:i.get(Hr.POSSIBLE_FORMATS),f=h==null||h.includes(It.UPC_A);if(d&&f){var g=l.getRawBytes(),m=new Yn(l.getText().substring(1),g,g?g.length:null,l.getResultPoints(),It.UPC_A);return m.putAllMetadata(l.getResultMetadata()),m}return l}catch{}}}catch(p){a={error:p}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}throw new ze},t.prototype.reset=function(){var e,n;try{for(var i=Qy(this.readers),a=i.next();!a.done;a=i.next()){var o=a.value;o.reset()}}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},t}(Dn),Bk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Uk=function(r){Bk(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.CODA_BAR_CHAR_SET={nnnnnww:"0",nnnnwwn:"1",nnnwnnw:"2",wwnnnnn:"3",nnwnnwn:"4",wnnnnwn:"5",nwnnnnw:"6",nwnnwnn:"7",nwwnnnn:"8",wnnwnnn:"9",nnnwwnn:"-",nnwwnnn:"$",wnnnwnw:":",wnwnnnw:"/",wnwnwnn:".",nnwwwww:"+",nnwwnwn:"A",nwnwnnw:"B",nnnwnww:"C",nnnwwwn:"D"},e}return t.prototype.decodeRow=function(e,n,i){var a=this.getValidRowData(n);if(!a)throw new ze;var o=this.codaBarDecodeRow(a.row);if(!o)throw new ze;return new Yn(o,null,0,[new yt(a.left,e),new yt(a.right,e)],It.CODABAR,new Date().getTime())},t.prototype.getValidRowData=function(e){var n=e.toArray(),i=n.indexOf(!0);if(i===-1)return null;var a=n.lastIndexOf(!0);if(a<=i)return null;n=n.slice(i,a+1);for(var o=[],s=n[0],u=1,c=1;c<n.length;c++)n[c]===s?u++:(s=n[c],o.push(u),u=1);return o.push(u),o.length<23&&(o.length+1)%8!=0?null:{row:o,left:i,right:a}},t.prototype.codaBarDecodeRow=function(e){for(var n=[],i=Math.ceil(e.reduce(function(u,c){return(u+c)/2},0));e.length>0;){var a=e.splice(0,8).splice(0,7),o=a.map(function(u){return u<i?"n":"w"}).join("");if(this.CODA_BAR_CHAR_SET[o]===void 0)return null;n.push(this.CODA_BAR_CHAR_SET[o])}var s=n.join("");return this.validCodaBarString(s)?s:null},t.prototype.validCodaBarString=function(e){var n=/^[A-D].{1,}[A-D]$/;return n.test(e)},t}(Dn),Pk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Lk=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Cs=function(r){Pk(t,r);function t(){var e=r.call(this)||this;return e.decodeFinderCounters=new Int32Array(4),e.dataCharacterCounters=new Int32Array(8),e.oddRoundingErrors=new Array(4),e.evenRoundingErrors=new Array(4),e.oddCounts=new Array(e.dataCharacterCounters.length/2),e.evenCounts=new Array(e.dataCharacterCounters.length/2),e}return t.prototype.getDecodeFinderCounters=function(){return this.decodeFinderCounters},t.prototype.getDataCharacterCounters=function(){return this.dataCharacterCounters},t.prototype.getOddRoundingErrors=function(){return this.oddRoundingErrors},t.prototype.getEvenRoundingErrors=function(){return this.evenRoundingErrors},t.prototype.getOddCounts=function(){return this.oddCounts},t.prototype.getEvenCounts=function(){return this.evenCounts},t.prototype.parseFinderValue=function(e,n){for(var i=0;i<n.length;i++)if(Dn.patternMatchVariance(e,n[i],t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE)return i;throw new ze},t.count=function(e){return yr.sum(new Int32Array(e))},t.increment=function(e,n){for(var i=0,a=n[0],o=1;o<e.length;o++)n[o]>a&&(a=n[o],i=o);e[i]++},t.decrement=function(e,n){for(var i=0,a=n[0],o=1;o<e.length;o++)n[o]<a&&(a=n[o],i=o);e[i]--},t.isFinderPattern=function(e){var n,i,a=e[0]+e[1],o=a+e[2]+e[3],s=a/o;if(s>=t.MIN_FINDER_PATTERN_RATIO&&s<=t.MAX_FINDER_PATTERN_RATIO){var u=Number.MAX_SAFE_INTEGER,c=Number.MIN_SAFE_INTEGER;try{for(var l=Lk(e),d=l.next();!d.done;d=l.next()){var h=d.value;h>c&&(c=h),h<u&&(u=h)}}catch(f){n={error:f}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return c<10*u}return!1},t.MAX_AVG_VARIANCE=.2,t.MAX_INDIVIDUAL_VARIANCE=.45,t.MIN_FINDER_PATTERN_RATIO=9.5/12,t.MAX_FINDER_PATTERN_RATIO=12.5/14,t}(Dn),yh=function(){function r(t,e){this.value=t,this.checksumPortion=e}return r.prototype.getValue=function(){return this.value},r.prototype.getChecksumPortion=function(){return this.checksumPortion},r.prototype.toString=function(){return this.value+"("+this.checksumPortion+")"},r.prototype.equals=function(t){if(!(t instanceof r))return!1;var e=t;return this.value===e.value&&this.checksumPortion===e.checksumPortion},r.prototype.hashCode=function(){return this.value^this.checksumPortion},r}(),eb=function(){function r(t,e,n,i,a){this.value=t,this.startEnd=e,this.value=t,this.startEnd=e,this.resultPoints=new Array,this.resultPoints.push(new yt(n,a)),this.resultPoints.push(new yt(i,a))}return r.prototype.getValue=function(){return this.value},r.prototype.getStartEnd=function(){return this.startEnd},r.prototype.getResultPoints=function(){return this.resultPoints},r.prototype.equals=function(t){if(!(t instanceof r))return!1;var e=t;return this.value===e.value},r.prototype.hashCode=function(){return this.value},r}(),jk=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},wu=function(){function r(){}return r.getRSSvalue=function(t,e,n){var i,a,o=0;try{for(var s=jk(t),u=s.next();!u.done;u=s.next()){var c=u.value;o+=c}}catch(v){i={error:v}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}for(var l=0,d=0,h=t.length,f=0;f<h-1;f++){var g=void 0;for(g=1,d|=1<<f;g<t[f];g++,d&=~(1<<f)){var m=r.combins(o-g-1,h-f-2);if(n&&d===0&&o-g-(h-f-1)>=h-f-1&&(m-=r.combins(o-g-(h-f),h-f-2)),h-f-1>1){for(var p=0,y=o-g-(h-f-2);y>e;y--)p+=r.combins(o-g-y-1,h-f-3);m-=p*(h-1-f)}else o-g>e&&m--;l+=m}o-=g}return l},r.combins=function(t,e){var n,i;t-e>e?(i=e,n=t-e):(i=t-e,n=e);for(var a=1,o=1,s=t;s>n;s--)a*=s,o<=i&&(a/=o,o++);for(;o<=i;)a/=o,o++;return a},r}(),Wk=function(){function r(){}return r.buildBitArray=function(t){var e=t.length*2-1;t[t.length-1].getRightChar()==null&&(e-=1);for(var n=12*e,i=new Ti(n),a=0,o=t[0],s=o.getRightChar().getValue(),u=11;u>=0;--u)(s&1<<u)!=0&&i.set(a),a++;for(var u=1;u<t.length;++u){for(var c=t[u],l=c.getLeftChar().getValue(),d=11;d>=0;--d)(l&1<<d)!=0&&i.set(a),a++;if(c.getRightChar()!==null)for(var h=c.getRightChar().getValue(),d=11;d>=0;--d)(h&1<<d)!=0&&i.set(a),a++}return i},r}(),Os=function(){function r(t,e){e?this.decodedInformation=null:(this.finished=t,this.decodedInformation=e)}return r.prototype.getDecodedInformation=function(){return this.decodedInformation},r.prototype.isFinished=function(){return this.finished},r}(),z0=function(){function r(t){this.newPosition=t}return r.prototype.getNewPosition=function(){return this.newPosition},r}(),zk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),va=function(r){zk(t,r);function t(e,n){var i=r.call(this,e)||this;return i.value=n,i}return t.prototype.getValue=function(){return this.value},t.prototype.isFNC1=function(){return this.value===t.FNC1},t.FNC1="$",t}(z0),Hk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Is=function(r){Hk(t,r);function t(e,n,i){var a=r.call(this,e)||this;return i?(a.remaining=!0,a.remainingValue=a.remainingValue):(a.remaining=!1,a.remainingValue=0),a.newString=n,a}return t.prototype.getNewString=function(){return this.newString},t.prototype.isRemaining=function(){return this.remaining},t.prototype.getRemainingValue=function(){return this.remainingValue},t}(z0),$k=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),xu=function(r){$k(t,r);function t(e,n,i){var a=r.call(this,e)||this;if(n<0||n>10||i<0||i>10)throw new ct;return a.firstDigit=n,a.secondDigit=i,a}return t.prototype.getFirstDigit=function(){return this.firstDigit},t.prototype.getSecondDigit=function(){return this.secondDigit},t.prototype.getValue=function(){return this.firstDigit*10+this.secondDigit},t.prototype.isFirstDigitFNC1=function(){return this.firstDigit===t.FNC1},t.prototype.isSecondDigitFNC1=function(){return this.secondDigit===t.FNC1},t.prototype.isAnyFNC1=function(){return this.firstDigit===t.FNC1||this.secondDigit===t.FNC1},t.FNC1=10,t}(z0),bh=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Vk=function(){function r(){}return r.parseFieldsInGeneralPurpose=function(t){var e,n,i,a,o,s,u,c;if(!t)return null;if(t.length<2)throw new ze;var l=t.substring(0,2);try{for(var d=bh(r.TWO_DIGIT_DATA_LENGTH),h=d.next();!h.done;h=d.next()){var f=h.value;if(f[0]===l)return f[1]===r.VARIABLE_LENGTH?r.processVariableAI(2,f[2],t):r.processFixedAI(2,f[1],t)}}catch(M){e={error:M}}finally{try{h&&!h.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}if(t.length<3)throw new ze;var g=t.substring(0,3);try{for(var m=bh(r.THREE_DIGIT_DATA_LENGTH),p=m.next();!p.done;p=m.next()){var f=p.value;if(f[0]===g)return f[1]===r.VARIABLE_LENGTH?r.processVariableAI(3,f[2],t):r.processFixedAI(3,f[1],t)}}catch(M){i={error:M}}finally{try{p&&!p.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}try{for(var y=bh(r.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),v=y.next();!v.done;v=y.next()){var f=v.value;if(f[0]===g)return f[1]===r.VARIABLE_LENGTH?r.processVariableAI(4,f[2],t):r.processFixedAI(4,f[1],t)}}catch(M){o={error:M}}finally{try{v&&!v.done&&(s=y.return)&&s.call(y)}finally{if(o)throw o.error}}if(t.length<4)throw new ze;var b=t.substring(0,4);try{for(var A=bh(r.FOUR_DIGIT_DATA_LENGTH),C=A.next();!C.done;C=A.next()){var f=C.value;if(f[0]===b)return f[1]===r.VARIABLE_LENGTH?r.processVariableAI(4,f[2],t):r.processFixedAI(4,f[1],t)}}catch(M){u={error:M}}finally{try{C&&!C.done&&(c=A.return)&&c.call(A)}finally{if(u)throw u.error}}throw new ze},r.processFixedAI=function(t,e,n){if(n.length<t)throw new ze;var i=n.substring(0,t);if(n.length<t+e)throw new ze;var a=n.substring(t,t+e),o=n.substring(t+e),s="("+i+")"+a,u=r.parseFieldsInGeneralPurpose(o);return u==null?s:s+u},r.processVariableAI=function(t,e,n){var i=n.substring(0,t),a;n.length<t+e?a=n.length:a=t+e;var o=n.substring(t,a),s=n.substring(a),u="("+i+")"+o,c=r.parseFieldsInGeneralPurpose(s);return c==null?u:u+c},r.VARIABLE_LENGTH=[],r.TWO_DIGIT_DATA_LENGTH=[["00",18],["01",14],["02",14],["10",r.VARIABLE_LENGTH,20],["11",6],["12",6],["13",6],["15",6],["17",6],["20",2],["21",r.VARIABLE_LENGTH,20],["22",r.VARIABLE_LENGTH,29],["30",r.VARIABLE_LENGTH,8],["37",r.VARIABLE_LENGTH,8],["90",r.VARIABLE_LENGTH,30],["91",r.VARIABLE_LENGTH,30],["92",r.VARIABLE_LENGTH,30],["93",r.VARIABLE_LENGTH,30],["94",r.VARIABLE_LENGTH,30],["95",r.VARIABLE_LENGTH,30],["96",r.VARIABLE_LENGTH,30],["97",r.VARIABLE_LENGTH,3],["98",r.VARIABLE_LENGTH,30],["99",r.VARIABLE_LENGTH,30]],r.THREE_DIGIT_DATA_LENGTH=[["240",r.VARIABLE_LENGTH,30],["241",r.VARIABLE_LENGTH,30],["242",r.VARIABLE_LENGTH,6],["250",r.VARIABLE_LENGTH,30],["251",r.VARIABLE_LENGTH,30],["253",r.VARIABLE_LENGTH,17],["254",r.VARIABLE_LENGTH,20],["400",r.VARIABLE_LENGTH,30],["401",r.VARIABLE_LENGTH,30],["402",17],["403",r.VARIABLE_LENGTH,30],["410",13],["411",13],["412",13],["413",13],["414",13],["420",r.VARIABLE_LENGTH,20],["421",r.VARIABLE_LENGTH,15],["422",3],["423",r.VARIABLE_LENGTH,15],["424",3],["425",3],["426",3]],r.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH=[["310",6],["311",6],["312",6],["313",6],["314",6],["315",6],["316",6],["320",6],["321",6],["322",6],["323",6],["324",6],["325",6],["326",6],["327",6],["328",6],["329",6],["330",6],["331",6],["332",6],["333",6],["334",6],["335",6],["336",6],["340",6],["341",6],["342",6],["343",6],["344",6],["345",6],["346",6],["347",6],["348",6],["349",6],["350",6],["351",6],["352",6],["353",6],["354",6],["355",6],["356",6],["357",6],["360",6],["361",6],["362",6],["363",6],["364",6],["365",6],["366",6],["367",6],["368",6],["369",6],["390",r.VARIABLE_LENGTH,15],["391",r.VARIABLE_LENGTH,18],["392",r.VARIABLE_LENGTH,15],["393",r.VARIABLE_LENGTH,18],["703",r.VARIABLE_LENGTH,30]],r.FOUR_DIGIT_DATA_LENGTH=[["7001",13],["7002",r.VARIABLE_LENGTH,30],["7003",10],["8001",14],["8002",r.VARIABLE_LENGTH,20],["8003",r.VARIABLE_LENGTH,30],["8004",r.VARIABLE_LENGTH,30],["8005",6],["8006",18],["8007",r.VARIABLE_LENGTH,30],["8008",r.VARIABLE_LENGTH,12],["8018",18],["8020",r.VARIABLE_LENGTH,25],["8100",6],["8101",10],["8102",2],["8110",r.VARIABLE_LENGTH,70],["8200",r.VARIABLE_LENGTH,70]],r}(),wh=function(){function r(t){this.buffer=new er,this.information=t}return r.prototype.decodeAllCodes=function(t,e){var n=e,i=null;do{var a=this.decodeGeneralPurposeField(n,i),o=Vk.parseFieldsInGeneralPurpose(a.getNewString());if(o!=null&&t.append(o),a.isRemaining()?i=""+a.getRemainingValue():i=null,n===a.getNewPosition())break;n=a.getNewPosition()}while(!0);return t.toString()},r.prototype.isStillNumeric=function(t){if(t+7>this.information.getSize())return t+4<=this.information.getSize();for(var e=t;e<t+3;++e)if(this.information.get(e))return!0;return this.information.get(t+3)},r.prototype.decodeNumeric=function(t){if(t+7>this.information.getSize()){var e=this.extractNumericValueFromBitArray(t,4);return e===0?new xu(this.information.getSize(),xu.FNC1,xu.FNC1):new xu(this.information.getSize(),e-1,xu.FNC1)}var n=this.extractNumericValueFromBitArray(t,7),i=(n-8)/11,a=(n-8)%11;return new xu(t+7,i,a)},r.prototype.extractNumericValueFromBitArray=function(t,e){return r.extractNumericValueFromBitArray(this.information,t,e)},r.extractNumericValueFromBitArray=function(t,e,n){for(var i=0,a=0;a<n;++a)t.get(e+a)&&(i|=1<<n-a-1);return i},r.prototype.decodeGeneralPurposeField=function(t,e){this.buffer.setLengthToZero(),e!=null&&this.buffer.append(e),this.current.setPosition(t);var n=this.parseBlocks();return n!=null&&n.isRemaining()?new Is(this.current.getPosition(),this.buffer.toString(),n.getRemainingValue()):new Is(this.current.getPosition(),this.buffer.toString())},r.prototype.parseBlocks=function(){var t,e;do{var n=this.current.getPosition();this.current.isAlpha()?(e=this.parseAlphaBlock(),t=e.isFinished()):this.current.isIsoIec646()?(e=this.parseIsoIec646Block(),t=e.isFinished()):(e=this.parseNumericBlock(),t=e.isFinished());var i=n!==this.current.getPosition();if(!i&&!t)break}while(!t);return e.getDecodedInformation()},r.prototype.parseNumericBlock=function(){for(;this.isStillNumeric(this.current.getPosition());){var t=this.decodeNumeric(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFirstDigitFNC1()){var e=void 0;return t.isSecondDigitFNC1()?e=new Is(this.current.getPosition(),this.buffer.toString()):e=new Is(this.current.getPosition(),this.buffer.toString(),t.getSecondDigit()),new Os(!0,e)}if(this.buffer.append(t.getFirstDigit()),t.isSecondDigitFNC1()){var e=new Is(this.current.getPosition(),this.buffer.toString());return new Os(!0,e)}this.buffer.append(t.getSecondDigit())}return this.isNumericToAlphaNumericLatch(this.current.getPosition())&&(this.current.setAlpha(),this.current.incrementPosition(4)),new Os(!1)},r.prototype.parseIsoIec646Block=function(){for(;this.isStillIsoIec646(this.current.getPosition());){var t=this.decodeIsoIec646(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFNC1()){var e=new Is(this.current.getPosition(),this.buffer.toString());return new Os(!0,e)}this.buffer.append(t.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setAlpha()),new Os(!1)},r.prototype.parseAlphaBlock=function(){for(;this.isStillAlpha(this.current.getPosition());){var t=this.decodeAlphanumeric(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFNC1()){var e=new Is(this.current.getPosition(),this.buffer.toString());return new Os(!0,e)}this.buffer.append(t.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setIsoIec646()),new Os(!1)},r.prototype.isStillIsoIec646=function(t){if(t+5>this.information.getSize())return!1;var e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+7>this.information.getSize())return!1;var n=this.extractNumericValueFromBitArray(t,7);if(n>=64&&n<116)return!0;if(t+8>this.information.getSize())return!1;var i=this.extractNumericValueFromBitArray(t,8);return i>=232&&i<253},r.prototype.decodeIsoIec646=function(t){var e=this.extractNumericValueFromBitArray(t,5);if(e===15)return new va(t+5,va.FNC1);if(e>=5&&e<15)return new va(t+5,"0"+(e-5));var n=this.extractNumericValueFromBitArray(t,7);if(n>=64&&n<90)return new va(t+7,""+(n+1));if(n>=90&&n<116)return new va(t+7,""+(n+7));var i=this.extractNumericValueFromBitArray(t,8),a;switch(i){case 232:a="!";break;case 233:a='"';break;case 234:a="%";break;case 235:a="&";break;case 236:a="'";break;case 237:a="(";break;case 238:a=")";break;case 239:a="*";break;case 240:a="+";break;case 241:a=",";break;case 242:a="-";break;case 243:a=".";break;case 244:a="/";break;case 245:a=":";break;case 246:a=";";break;case 247:a="<";break;case 248:a="=";break;case 249:a=">";break;case 250:a="?";break;case 251:a="_";break;case 252:a=" ";break;default:throw new ct}return new va(t+8,a)},r.prototype.isStillAlpha=function(t){if(t+5>this.information.getSize())return!1;var e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+6>this.information.getSize())return!1;var n=this.extractNumericValueFromBitArray(t,6);return n>=16&&n<63},r.prototype.decodeAlphanumeric=function(t){var e=this.extractNumericValueFromBitArray(t,5);if(e===15)return new va(t+5,va.FNC1);if(e>=5&&e<15)return new va(t+5,"0"+(e-5));var n=this.extractNumericValueFromBitArray(t,6);if(n>=32&&n<58)return new va(t+6,""+(n+33));var i;switch(n){case 58:i="*";break;case 59:i=",";break;case 60:i="-";break;case 61:i=".";break;case 62:i="/";break;default:throw new yu("Decoding invalid alphanumeric value: "+n)}return new va(t+6,i)},r.prototype.isAlphaTo646ToAlphaLatch=function(t){if(t+1>this.information.getSize())return!1;for(var e=0;e<5&&e+t<this.information.getSize();++e)if(e===2){if(!this.information.get(t+2))return!1}else if(this.information.get(t+e))return!1;return!0},r.prototype.isAlphaOr646ToNumericLatch=function(t){if(t+3>this.information.getSize())return!1;for(var e=t;e<t+3;++e)if(this.information.get(e))return!1;return!0},r.prototype.isNumericToAlphaNumericLatch=function(t){if(t+1>this.information.getSize())return!1;for(var e=0;e<4&&e+t<this.information.getSize();++e)if(this.information.get(t+e))return!1;return!0},r}(),tb=function(){function r(t){this.information=t,this.generalDecoder=new wh(t)}return r.prototype.getInformation=function(){return this.information},r.prototype.getGeneralDecoder=function(){return this.generalDecoder},r}(),qk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ya=function(r){qk(t,r);function t(e){return r.call(this,e)||this}return t.prototype.encodeCompressedGtin=function(e,n){e.append("(01)");var i=e.length();e.append("9"),this.encodeCompressedGtinWithoutAI(e,n,i)},t.prototype.encodeCompressedGtinWithoutAI=function(e,n,i){for(var a=0;a<4;++a){var o=this.getGeneralDecoder().extractNumericValueFromBitArray(n+10*a,10);o/100==0&&e.append("0"),o/10==0&&e.append("0"),e.append(o)}t.appendCheckDigit(e,i)},t.appendCheckDigit=function(e,n){for(var i=0,a=0;a<13;a++){var o=e.charAt(a+n).charCodeAt(0)-"0".charCodeAt(0);i+=(a&1)==0?3*o:o}i=10-i%10,i===10&&(i=0),e.append(i)},t.GTIN_SIZE=40,t}(tb),Gk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Xk=function(r){Gk(t,r);function t(e){return r.call(this,e)||this}return t.prototype.parseInformation=function(){var e=new er;e.append("(01)");var n=e.length(),i=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE,4);return e.append(i),this.encodeCompressedGtinWithoutAI(e,t.HEADER_SIZE+4,n),this.getGeneralDecoder().decodeAllCodes(e,t.HEADER_SIZE+44)},t.HEADER_SIZE=1+1+2,t}(ya),Kk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Zk=function(r){Kk(t,r);function t(e){return r.call(this,e)||this}return t.prototype.parseInformation=function(){var e=new er;return this.getGeneralDecoder().decodeAllCodes(e,t.HEADER_SIZE)},t.HEADER_SIZE=2+1+2,t}(tb),Yk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),xh=function(r){Yk(t,r);function t(e){return r.call(this,e)||this}return t.prototype.encodeCompressedWeight=function(e,n,i){var a=this.getGeneralDecoder().extractNumericValueFromBitArray(n,i);this.addWeightCode(e,a);for(var o=this.checkWeight(a),s=1e5,u=0;u<5;++u)o/s==0&&e.append("0"),s/=10;e.append(o)},t}(ya),Jk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),rb=function(r){Jk(t,r);function t(e){return r.call(this,e)||this}return t.prototype.parseInformation=function(){if(this.getInformation().getSize()!==t.HEADER_SIZE+xh.GTIN_SIZE+t.WEIGHT_SIZE)throw new ze;var e=new er;return this.encodeCompressedGtin(e,t.HEADER_SIZE),this.encodeCompressedWeight(e,t.HEADER_SIZE+xh.GTIN_SIZE,t.WEIGHT_SIZE),e.toString()},t.HEADER_SIZE=4+1,t.WEIGHT_SIZE=15,t}(xh),Qk=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),eR=function(r){Qk(t,r);function t(e){return r.call(this,e)||this}return t.prototype.addWeightCode=function(e,n){e.append("(3103)")},t.prototype.checkWeight=function(e){return e},t}(rb),tR=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),rR=function(r){tR(t,r);function t(e){return r.call(this,e)||this}return t.prototype.addWeightCode=function(e,n){n<1e4?e.append("(3202)"):e.append("(3203)")},t.prototype.checkWeight=function(e){return e<1e4?e:e-1e4},t}(rb),nR=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),iR=function(r){nR(t,r);function t(e){return r.call(this,e)||this}return t.prototype.parseInformation=function(){if(this.getInformation().getSize()<t.HEADER_SIZE+ya.GTIN_SIZE)throw new ze;var e=new er;this.encodeCompressedGtin(e,t.HEADER_SIZE);var n=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+ya.GTIN_SIZE,t.LAST_DIGIT_SIZE);e.append("(392"),e.append(n),e.append(")");var i=this.getGeneralDecoder().decodeGeneralPurposeField(t.HEADER_SIZE+ya.GTIN_SIZE+t.LAST_DIGIT_SIZE,null);return e.append(i.getNewString()),e.toString()},t.HEADER_SIZE=5+1+2,t.LAST_DIGIT_SIZE=2,t}(ya),aR=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),oR=function(r){aR(t,r);function t(e){return r.call(this,e)||this}return t.prototype.parseInformation=function(){if(this.getInformation().getSize()<t.HEADER_SIZE+ya.GTIN_SIZE)throw new ze;var e=new er;this.encodeCompressedGtin(e,t.HEADER_SIZE);var n=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+ya.GTIN_SIZE,t.LAST_DIGIT_SIZE);e.append("(393"),e.append(n),e.append(")");var i=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+ya.GTIN_SIZE+t.LAST_DIGIT_SIZE,t.FIRST_THREE_DIGITS_SIZE);i/100==0&&e.append("0"),i/10==0&&e.append("0"),e.append(i);var a=this.getGeneralDecoder().decodeGeneralPurposeField(t.HEADER_SIZE+ya.GTIN_SIZE+t.LAST_DIGIT_SIZE+t.FIRST_THREE_DIGITS_SIZE,null);return e.append(a.getNewString()),e.toString()},t.HEADER_SIZE=5+1+2,t.LAST_DIGIT_SIZE=2,t.FIRST_THREE_DIGITS_SIZE=10,t}(ya),sR=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ko=function(r){sR(t,r);function t(e,n,i){var a=r.call(this,e)||this;return a.dateCode=i,a.firstAIdigits=n,a}return t.prototype.parseInformation=function(){if(this.getInformation().getSize()!==t.HEADER_SIZE+t.GTIN_SIZE+t.WEIGHT_SIZE+t.DATE_SIZE)throw new ze;var e=new er;return this.encodeCompressedGtin(e,t.HEADER_SIZE),this.encodeCompressedWeight(e,t.HEADER_SIZE+t.GTIN_SIZE,t.WEIGHT_SIZE),this.encodeCompressedDate(e,t.HEADER_SIZE+t.GTIN_SIZE+t.WEIGHT_SIZE),e.toString()},t.prototype.encodeCompressedDate=function(e,n){var i=this.getGeneralDecoder().extractNumericValueFromBitArray(n,t.DATE_SIZE);if(i!==38400){e.append("("),e.append(this.dateCode),e.append(")");var a=i%32;i/=32;var o=i%12+1;i/=12;var s=i;s/10==0&&e.append("0"),e.append(s),o/10==0&&e.append("0"),e.append(o),a/10==0&&e.append("0"),e.append(a)}},t.prototype.addWeightCode=function(e,n){e.append("("),e.append(this.firstAIdigits),e.append(n/1e5),e.append(")")},t.prototype.checkWeight=function(e){return e%1e5},t.HEADER_SIZE=7+1,t.WEIGHT_SIZE=20,t.DATE_SIZE=16,t}(xh);function uR(r){try{if(r.get(1))return new Xk(r);if(!r.get(2))return new Zk(r);var t=wh.extractNumericValueFromBitArray(r,1,4);switch(t){case 4:return new eR(r);case 5:return new rR(r)}var e=wh.extractNumericValueFromBitArray(r,1,5);switch(e){case 12:return new iR(r);case 13:return new oR(r)}var n=wh.extractNumericValueFromBitArray(r,1,7);switch(n){case 56:return new Ko(r,"310","11");case 57:return new Ko(r,"320","11");case 58:return new Ko(r,"310","13");case 59:return new Ko(r,"320","13");case 60:return new Ko(r,"310","15");case 61:return new Ko(r,"320","15");case 62:return new Ko(r,"310","17");case 63:return new Ko(r,"320","17")}}catch(i){throw console.log(i),new yu("unknown decoder: "+r)}}var nb=function(){function r(t,e,n,i){this.leftchar=t,this.rightchar=e,this.finderpattern=n,this.maybeLast=i}return r.prototype.mayBeLast=function(){return this.maybeLast},r.prototype.getLeftChar=function(){return this.leftchar},r.prototype.getRightChar=function(){return this.rightchar},r.prototype.getFinderPattern=function(){return this.finderpattern},r.prototype.mustBeLast=function(){return this.rightchar==null},r.prototype.toString=function(){return"[ "+this.leftchar+", "+this.rightchar+" : "+(this.finderpattern==null?"null":this.finderpattern.getValue())+" ]"},r.equals=function(t,e){return t instanceof r?r.equalsOrNull(t.leftchar,e.leftchar)&&r.equalsOrNull(t.rightchar,e.rightchar)&&r.equalsOrNull(t.finderpattern,e.finderpattern):!1},r.equalsOrNull=function(t,e){return t===null?e===null:r.equals(t,e)},r.prototype.hashCode=function(){var t=this.leftchar.getValue()^this.rightchar.getValue()^this.finderpattern.getValue();return t},r}(),cR=function(){function r(t,e,n){this.pairs=t,this.rowNumber=e,this.wasReversed=n}return r.prototype.getPairs=function(){return this.pairs},r.prototype.getRowNumber=function(){return this.rowNumber},r.prototype.isReversed=function(){return this.wasReversed},r.prototype.isEquivalent=function(t){return this.checkEqualitity(this,t)},r.prototype.toString=function(){return"{ "+this.pairs+" }"},r.prototype.equals=function(t,e){return t instanceof r?this.checkEqualitity(t,e)&&t.wasReversed===e.wasReversed:!1},r.prototype.checkEqualitity=function(t,e){if(!(!t||!e)){var n;return t.forEach(function(i,a){e.forEach(function(o){i.getLeftChar().getValue()===o.getLeftChar().getValue()&&i.getRightChar().getValue()===o.getRightChar().getValue()&&i.getFinderPatter().getValue()===o.getFinderPatter().getValue()&&(n=!0)})}),n}},r}(),lR=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Zo=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},fR=function(r){lR(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.pairs=new Array(t.MAX_PAIRS),e.rows=new Array,e.startEnd=[2],e}return t.prototype.decodeRow=function(e,n,i){this.pairs.length=0,this.startFromEven=!1;try{return t.constructResult(this.decodeRow2pairs(e,n))}catch{}return this.pairs.length=0,this.startFromEven=!0,t.constructResult(this.decodeRow2pairs(e,n))},t.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},t.prototype.decodeRow2pairs=function(e,n){for(var i=!1;!i;)try{this.pairs.push(this.retrieveNextPair(n,this.pairs,e))}catch(s){if(s instanceof ze){if(!this.pairs.length)throw new ze;i=!0}}if(this.checkChecksum())return this.pairs;var a;if(this.rows.length?a=!0:a=!1,this.storeRow(e,!1),a){var o=this.checkRowsBoolean(!1);if(o!=null||(o=this.checkRowsBoolean(!0),o!=null))return o}throw new ze},t.prototype.checkRowsBoolean=function(e){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,e&&(this.rows=this.rows.reverse());var n=null;try{n=this.checkRows(new Array,0)}catch(i){console.log(i)}return e&&(this.rows=this.rows.reverse()),n},t.prototype.checkRows=function(e,n){for(var i,a,o=n;o<this.rows.length;o++){var s=this.rows[o];this.pairs.length=0;try{for(var u=(i=void 0,Zo(e)),c=u.next();!c.done;c=u.next()){var l=c.value;this.pairs.push(l.getPairs())}}catch(h){i={error:h}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}if(this.pairs.push(s.getPairs()),!!t.isValidSequence(this.pairs)){if(this.checkChecksum())return this.pairs;var d=new Array(e);d.push(s);try{return this.checkRows(d,o+1)}catch(h){console.log(h)}}}throw new ze},t.isValidSequence=function(e){var n,i;try{for(var a=Zo(t.FINDER_PATTERN_SEQUENCES),o=a.next();!o.done;o=a.next()){var s=o.value;if(!(e.length>s.length)){for(var u=!0,c=0;c<e.length;c++)if(e[c].getFinderPattern().getValue()!==s[c]){u=!1;break}if(u)return!0}}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!1},t.prototype.storeRow=function(e,n){for(var i=0,a=!1,o=!1;i<this.rows.length;){var s=this.rows[i];if(s.getRowNumber()>e){o=s.isEquivalent(this.pairs);break}a=s.isEquivalent(this.pairs),i++}o||a||t.isPartialRow(this.pairs,this.rows)||(this.rows.push(i,new cR(this.pairs,e,n)),this.removePartialRows(this.pairs,this.rows))},t.prototype.removePartialRows=function(e,n){var i,a,o,s,u,c;try{for(var l=Zo(n),d=l.next();!d.done;d=l.next()){var h=d.value;if(h.getPairs().length!==e.length){var f=!0;try{for(var g=(o=void 0,Zo(h.getPairs())),m=g.next();!m.done;m=g.next()){var p=m.value,y=!1;try{for(var v=(u=void 0,Zo(e)),b=v.next();!b.done;b=v.next()){var A=b.value;if(nb.equals(p,A)){y=!0;break}}}catch(C){u={error:C}}finally{try{b&&!b.done&&(c=v.return)&&c.call(v)}finally{if(u)throw u.error}}y||(f=!1)}}catch(C){o={error:C}}finally{try{m&&!m.done&&(s=g.return)&&s.call(g)}finally{if(o)throw o.error}}}}}catch(C){i={error:C}}finally{try{d&&!d.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}},t.isPartialRow=function(e,n){var i,a,o,s,u,c;try{for(var l=Zo(n),d=l.next();!d.done;d=l.next()){var h=d.value,f=!0;try{for(var g=(o=void 0,Zo(e)),m=g.next();!m.done;m=g.next()){var p=m.value,y=!1;try{for(var v=(u=void 0,Zo(h.getPairs())),b=v.next();!b.done;b=v.next()){var A=b.value;if(p.equals(A)){y=!0;break}}}catch(C){u={error:C}}finally{try{b&&!b.done&&(c=v.return)&&c.call(v)}finally{if(u)throw u.error}}if(!y){f=!1;break}}}catch(C){o={error:C}}finally{try{m&&!m.done&&(s=g.return)&&s.call(g)}finally{if(o)throw o.error}}if(f)return!0}}catch(C){i={error:C}}finally{try{d&&!d.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}return!1},t.prototype.getRows=function(){return this.rows},t.constructResult=function(e){var n=Wk.buildBitArray(e),i=uR(n),a=i.parseInformation(),o=e[0].getFinderPattern().getResultPoints(),s=e[e.length-1].getFinderPattern().getResultPoints(),u=[o[0],o[1],s[0],s[1]];return new Yn(a,null,null,u,It.RSS_EXPANDED,null)},t.prototype.checkChecksum=function(){var e=this.pairs.get(0),n=e.getLeftChar(),i=e.getRightChar();if(i===null)return!1;for(var a=i.getChecksumPortion(),o=2,s=1;s<this.pairs.size();++s){var u=this.pairs.get(s);a+=u.getLeftChar().getChecksumPortion(),o++;var c=u.getRightChar();c!=null&&(a+=c.getChecksumPortion(),o++)}a%=211;var l=211*(o-4)+a;return l===n.getValue()},t.getNextSecondBar=function(e,n){var i;return e.get(n)?(i=e.getNextUnset(n),i=e.getNextSet(i)):(i=e.getNextSet(n),i=e.getNextUnset(i)),i},t.prototype.retrieveNextPair=function(e,n,i){var a=n.length%2==0;this.startFromEven&&(a=!a);var o,s=!0,u=-1;do this.findNextPair(e,n,u),o=this.parseFoundFinderPattern(e,i,a),o===null?u=t.getNextSecondBar(e,this.startEnd[0]):s=!1;while(s);var c=this.decodeDataCharacter(e,o,a,!0);if(!this.isEmptyPair(n)&&n[n.length-1].mustBeLast())throw new ze;var l;try{l=this.decodeDataCharacter(e,o,a,!1)}catch(d){l=null,console.log(d)}return new nb(c,l,o,!0)},t.prototype.isEmptyPair=function(e){return e.length===0},t.prototype.findNextPair=function(e,n,i){var a=this.getDecodeFinderCounters();a[0]=0,a[1]=0,a[2]=0,a[3]=0;var o=e.getSize(),s;if(i>=0)s=i;else if(this.isEmptyPair(n))s=0;else{var u=n[n.length-1];s=u.getFinderPattern().getStartEnd()[1]}var c=n.length%2!=0;this.startFromEven&&(c=!c);for(var l=!1;s<o&&(l=!e.get(s),!!l);)s++;for(var d=0,h=s,f=s;f<o;f++)if(e.get(f)!==l)a[d]++;else{if(d===3){if(c&&t.reverseCounters(a),t.isFinderPattern(a)){this.startEnd[0]=h,this.startEnd[1]=f;return}c&&t.reverseCounters(a),h+=a[0]+a[1],a[0]=a[2],a[1]=a[3],a[2]=0,a[3]=0,d--}else d++;a[d]=1,l=!l}throw new ze},t.reverseCounters=function(e){for(var n=e.length,i=0;i<n/2;++i){var a=e[i];e[i]=e[n-i-1],e[n-i-1]=a}},t.prototype.parseFoundFinderPattern=function(e,n,i){var a,o,s;if(i){for(var u=this.startEnd[0]-1;u>=0&&!e.get(u);)u--;u++,a=this.startEnd[0]-u,o=u,s=this.startEnd[1]}else o=this.startEnd[0],s=e.getNextUnset(this.startEnd[1]+1),a=s-this.startEnd[1];var c=this.getDecodeFinderCounters();zr.arraycopy(c,0,c,1,c.length-1),c[0]=a;var l;try{l=this.parseFinderValue(c,t.FINDER_PATTERNS)}catch{return null}return new eb(l,[o,s],o,s,n)},t.prototype.decodeDataCharacter=function(e,n,i,a){for(var o=this.getDataCharacterCounters(),s=0;s<o.length;s++)o[s]=0;if(a)t.recordPatternInReverse(e,n.getStartEnd()[0],o);else{t.recordPattern(e,n.getStartEnd()[1],o);for(var u=0,c=o.length-1;u<c;u++,c--){var l=o[u];o[u]=o[c],o[c]=l}}var d=17,h=yr.sum(new Int32Array(o))/d,f=(n.getStartEnd()[1]-n.getStartEnd()[0])/15;if(Math.abs(h-f)/f>.3)throw new ze;for(var g=this.getOddCounts(),m=this.getEvenCounts(),p=this.getOddRoundingErrors(),y=this.getEvenRoundingErrors(),u=0;u<o.length;u++){var v=1*o[u]/h,b=v+.5;if(b<1){if(v<.3)throw new ze;b=1}else if(b>8){if(v>8.7)throw new ze;b=8}var A=u/2;(u&1)==0?(g[A]=b,p[A]=v-b):(m[A]=b,y[A]=v-b)}this.adjustOddEvenCounts(d);for(var C=4*n.getValue()+(i?0:2)+(a?0:1)-1,M=0,z=0,u=g.length-1;u>=0;u--){if(t.isNotA1left(n,i,a)){var W=t.WEIGHTS[C][2*u];z+=g[u]*W}M+=g[u]}for(var U=0,u=m.length-1;u>=0;u--)if(t.isNotA1left(n,i,a)){var W=t.WEIGHTS[C][2*u+1];U+=m[u]*W}var G=z+U;if((M&1)!=0||M>13||M<4)throw new ze;var ee=(13-M)/2,I=t.SYMBOL_WIDEST[ee],O=9-I,T=wu.getRSSvalue(g,I,!0),S=wu.getRSSvalue(m,O,!1),x=t.EVEN_TOTAL_SUBSET[ee],w=t.GSUM[ee],_=T*x+S+w;return new yh(_,G)},t.isNotA1left=function(e,n,i){return!(e.getValue()===0&&n&&i)},t.prototype.adjustOddEvenCounts=function(e){var n=yr.sum(new Int32Array(this.getOddCounts())),i=yr.sum(new Int32Array(this.getEvenCounts())),a=!1,o=!1;n>13?o=!0:n<4&&(a=!0);var s=!1,u=!1;i>13?u=!0:i<4&&(s=!0);var c=n+i-e,l=(n&1)==1,d=(i&1)==0;if(c===1)if(l){if(d)throw new ze;o=!0}else{if(!d)throw new ze;u=!0}else if(c===-1)if(l){if(d)throw new ze;a=!0}else{if(!d)throw new ze;s=!0}else if(c===0){if(l){if(!d)throw new ze;n<i?(a=!0,u=!0):(o=!0,s=!0)}else if(d)throw new ze}else throw new ze;if(a){if(o)throw new ze;t.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(o&&t.decrement(this.getOddCounts(),this.getOddRoundingErrors()),s){if(u)throw new ze;t.increment(this.getEvenCounts(),this.getOddRoundingErrors())}u&&t.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},t.SYMBOL_WIDEST=[7,5,4,3,1],t.EVEN_TOTAL_SUBSET=[4,20,52,104,204],t.GSUM=[0,348,1388,2948,3988],t.FINDER_PATTERNS=[Int32Array.from([1,8,4,1]),Int32Array.from([3,6,4,1]),Int32Array.from([3,4,6,1]),Int32Array.from([3,2,8,1]),Int32Array.from([2,6,5,1]),Int32Array.from([2,2,9,1])],t.WEIGHTS=[[1,3,9,27,81,32,96,77],[20,60,180,118,143,7,21,63],[189,145,13,39,117,140,209,205],[193,157,49,147,19,57,171,91],[62,186,136,197,169,85,44,132],[185,133,188,142,4,12,36,108],[113,128,173,97,80,29,87,50],[150,28,84,41,123,158,52,156],[46,138,203,187,139,206,196,166],[76,17,51,153,37,111,122,155],[43,129,176,106,107,110,119,146],[16,48,144,10,30,90,59,177],[109,116,137,200,178,112,125,164],[70,210,208,202,184,130,179,115],[134,191,151,31,93,68,204,190],[148,22,66,198,172,94,71,2],[6,18,54,162,64,192,154,40],[120,149,25,75,14,42,126,167],[79,26,78,23,69,207,199,175],[103,98,83,38,114,131,182,124],[161,61,183,127,170,88,53,159],[55,165,73,8,24,72,5,15],[45,135,194,160,58,174,100,89]],t.FINDER_PAT_A=0,t.FINDER_PAT_B=1,t.FINDER_PAT_C=2,t.FINDER_PAT_D=3,t.FINDER_PAT_E=4,t.FINDER_PAT_F=5,t.FINDER_PATTERN_SEQUENCES=[[t.FINDER_PAT_A,t.FINDER_PAT_A],[t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B],[t.FINDER_PAT_A,t.FINDER_PAT_C,t.FINDER_PAT_B,t.FINDER_PAT_D],[t.FINDER_PAT_A,t.FINDER_PAT_E,t.FINDER_PAT_B,t.FINDER_PAT_D,t.FINDER_PAT_C],[t.FINDER_PAT_A,t.FINDER_PAT_E,t.FINDER_PAT_B,t.FINDER_PAT_D,t.FINDER_PAT_D,t.FINDER_PAT_F],[t.FINDER_PAT_A,t.FINDER_PAT_E,t.FINDER_PAT_B,t.FINDER_PAT_D,t.FINDER_PAT_E,t.FINDER_PAT_F,t.FINDER_PAT_F],[t.FINDER_PAT_A,t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B,t.FINDER_PAT_C,t.FINDER_PAT_C,t.FINDER_PAT_D,t.FINDER_PAT_D],[t.FINDER_PAT_A,t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B,t.FINDER_PAT_C,t.FINDER_PAT_C,t.FINDER_PAT_D,t.FINDER_PAT_E,t.FINDER_PAT_E],[t.FINDER_PAT_A,t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B,t.FINDER_PAT_C,t.FINDER_PAT_C,t.FINDER_PAT_D,t.FINDER_PAT_E,t.FINDER_PAT_F,t.FINDER_PAT_F],[t.FINDER_PAT_A,t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B,t.FINDER_PAT_C,t.FINDER_PAT_D,t.FINDER_PAT_D,t.FINDER_PAT_E,t.FINDER_PAT_E,t.FINDER_PAT_F,t.FINDER_PAT_F]],t.MAX_PAIRS=11,t}(Cs),hR=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),dR=function(r){hR(t,r);function t(e,n,i){var a=r.call(this,e,n)||this;return a.count=0,a.finderPattern=i,a}return t.prototype.getFinderPattern=function(){return this.finderPattern},t.prototype.getCount=function(){return this.count},t.prototype.incrementCount=function(){this.count++},t}(yh),pR=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),H0=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ib=function(r){pR(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.possibleLeftPairs=[],e.possibleRightPairs=[],e}return t.prototype.decodeRow=function(e,n,i){var a,o,s,u,c=this.decodePair(n,!1,e,i);t.addOrTally(this.possibleLeftPairs,c),n.reverse();var l=this.decodePair(n,!0,e,i);t.addOrTally(this.possibleRightPairs,l),n.reverse();try{for(var d=H0(this.possibleLeftPairs),h=d.next();!h.done;h=d.next()){var f=h.value;if(f.getCount()>1)try{for(var g=(s=void 0,H0(this.possibleRightPairs)),m=g.next();!m.done;m=g.next()){var p=m.value;if(p.getCount()>1&&t.checkChecksum(f,p))return t.constructResult(f,p)}}catch(y){s={error:y}}finally{try{m&&!m.done&&(u=g.return)&&u.call(g)}finally{if(s)throw s.error}}}}catch(y){a={error:y}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}throw new ze},t.addOrTally=function(e,n){var i,a;if(n!=null){var o=!1;try{for(var s=H0(e),u=s.next();!u.done;u=s.next()){var c=u.value;if(c.getValue()===n.getValue()){c.incrementCount(),o=!0;break}}}catch(l){i={error:l}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}o||e.push(n)}},t.prototype.reset=function(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0},t.constructResult=function(e,n){for(var i=4537077*e.getValue()+n.getValue(),a=new String(i).toString(),o=new er,s=13-a.length;s>0;s--)o.append("0");o.append(a);for(var u=0,s=0;s<13;s++){var c=o.charAt(s).charCodeAt(0)-"0".charCodeAt(0);u+=(s&1)==0?3*c:c}u=10-u%10,u===10&&(u=0),o.append(u.toString());var l=e.getFinderPattern().getResultPoints(),d=n.getFinderPattern().getResultPoints();return new Yn(o.toString(),null,0,[l[0],l[1],d[0],d[1]],It.RSS_14,new Date().getTime())},t.checkChecksum=function(e,n){var i=(e.getChecksumPortion()+16*n.getChecksumPortion())%79,a=9*e.getFinderPattern().getValue()+n.getFinderPattern().getValue();return a>72&&a--,a>8&&a--,i===a},t.prototype.decodePair=function(e,n,i,a){try{var o=this.findFinderPattern(e,n),s=this.parseFoundFinderPattern(e,i,n,o),u=a==null?null:a.get(Hr.NEED_RESULT_POINT_CALLBACK);if(u!=null){var c=(o[0]+o[1])/2;n&&(c=e.getSize()-1-c),u.foundPossibleResultPoint(new yt(c,i))}var l=this.decodeDataCharacter(e,s,!0),d=this.decodeDataCharacter(e,s,!1);return new dR(1597*l.getValue()+d.getValue(),l.getChecksumPortion()+4*d.getChecksumPortion(),s)}catch{return null}},t.prototype.decodeDataCharacter=function(e,n,i){for(var a=this.getDataCharacterCounters(),o=0;o<a.length;o++)a[o]=0;if(i)Dn.recordPatternInReverse(e,n.getStartEnd()[0],a);else{Dn.recordPattern(e,n.getStartEnd()[1]+1,a);for(var s=0,u=a.length-1;s<u;s++,u--){var c=a[s];a[s]=a[u],a[u]=c}}for(var l=i?16:15,d=yr.sum(new Int32Array(a))/l,h=this.getOddCounts(),f=this.getEvenCounts(),g=this.getOddRoundingErrors(),m=this.getEvenRoundingErrors(),s=0;s<a.length;s++){var p=a[s]/d,y=Math.floor(p+.5);y<1?y=1:y>8&&(y=8);var v=Math.floor(s/2);(s&1)==0?(h[v]=y,g[v]=p-y):(f[v]=y,m[v]=p-y)}this.adjustOddEvenCounts(i,l);for(var b=0,A=0,s=h.length-1;s>=0;s--)A*=9,A+=h[s],b+=h[s];for(var C=0,M=0,s=f.length-1;s>=0;s--)C*=9,C+=f[s],M+=f[s];var z=A+3*C;if(i){if((b&1)!=0||b>12||b<4)throw new ze;var W=(12-b)/2,U=t.OUTSIDE_ODD_WIDEST[W],G=9-U,ee=wu.getRSSvalue(h,U,!1),I=wu.getRSSvalue(f,G,!0),O=t.OUTSIDE_EVEN_TOTAL_SUBSET[W],T=t.OUTSIDE_GSUM[W];return new yh(ee*O+I+T,z)}else{if((M&1)!=0||M>10||M<4)throw new ze;var W=(10-M)/2,U=t.INSIDE_ODD_WIDEST[W],G=9-U,ee=wu.getRSSvalue(h,U,!0),I=wu.getRSSvalue(f,G,!1),S=t.INSIDE_ODD_TOTAL_SUBSET[W],T=t.INSIDE_GSUM[W];return new yh(I*S+ee+T,z)}},t.prototype.findFinderPattern=function(e,n){var i=this.getDecodeFinderCounters();i[0]=0,i[1]=0,i[2]=0,i[3]=0;for(var a=e.getSize(),o=!1,s=0;s<a&&(o=!e.get(s),n!==o);)s++;for(var u=0,c=s,l=s;l<a;l++)if(e.get(l)!==o)i[u]++;else{if(u===3){if(Cs.isFinderPattern(i))return[c,l];c+=i[0]+i[1],i[0]=i[2],i[1]=i[3],i[2]=0,i[3]=0,u--}else u++;i[u]=1,o=!o}throw new ze},t.prototype.parseFoundFinderPattern=function(e,n,i,a){for(var o=e.get(a[0]),s=a[0]-1;s>=0&&o!==e.get(s);)s--;s++;var u=a[0]-s,c=this.getDecodeFinderCounters(),l=new Int32Array(c.length);zr.arraycopy(c,0,l,1,c.length-1),l[0]=u;var d=this.parseFinderValue(l,t.FINDER_PATTERNS),h=s,f=a[1];return i&&(h=e.getSize()-1-h,f=e.getSize()-1-f),new eb(d,[s,a[1]],h,f,n)},t.prototype.adjustOddEvenCounts=function(e,n){var i=yr.sum(new Int32Array(this.getOddCounts())),a=yr.sum(new Int32Array(this.getEvenCounts())),o=!1,s=!1,u=!1,c=!1;e?(i>12?s=!0:i<4&&(o=!0),a>12?c=!0:a<4&&(u=!0)):(i>11?s=!0:i<5&&(o=!0),a>10?c=!0:a<4&&(u=!0));var l=i+a-n,d=(i&1)==(e?1:0),h=(a&1)==1;if(l===1)if(d){if(h)throw new ze;s=!0}else{if(!h)throw new ze;c=!0}else if(l===-1)if(d){if(h)throw new ze;o=!0}else{if(!h)throw new ze;u=!0}else if(l===0){if(d){if(!h)throw new ze;i<a?(o=!0,c=!0):(s=!0,u=!0)}else if(h)throw new ze}else throw new ze;if(o){if(s)throw new ze;Cs.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(s&&Cs.decrement(this.getOddCounts(),this.getOddRoundingErrors()),u){if(c)throw new ze;Cs.increment(this.getEvenCounts(),this.getOddRoundingErrors())}c&&Cs.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},t.OUTSIDE_EVEN_TOTAL_SUBSET=[1,10,34,70,126],t.INSIDE_ODD_TOTAL_SUBSET=[4,20,48,81],t.OUTSIDE_GSUM=[0,161,961,2015,2715],t.INSIDE_GSUM=[0,336,1036,1516],t.OUTSIDE_ODD_WIDEST=[8,6,4,3,1],t.INSIDE_ODD_WIDEST=[2,4,6,8],t.FINDER_PATTERNS=[Int32Array.from([3,8,2,1]),Int32Array.from([3,5,5,1]),Int32Array.from([3,3,7,1]),Int32Array.from([3,1,9,1]),Int32Array.from([2,7,4,1]),Int32Array.from([2,5,6,1]),Int32Array.from([2,3,8,1]),Int32Array.from([1,5,7,1]),Int32Array.from([1,3,9,1])],t}(Cs),mR=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_u=function(r){mR(t,r);function t(e){var n=r.call(this)||this;n.readers=[];var i=e?e.get(Hr.POSSIBLE_FORMATS):null,a=e&&e.get(Hr.ASSUME_CODE_39_CHECK_DIGIT)!==void 0,o=e&&e.get(Hr.ENABLE_CODE_39_EXTENDED_MODE)!==void 0;return i&&((i.includes(It.EAN_13)||i.includes(It.UPC_A)||i.includes(It.EAN_8)||i.includes(It.UPC_E))&&n.readers.push(new W0(e)),i.includes(It.CODE_39)&&n.readers.push(new Vy(a,o)),i.includes(It.CODE_93)&&n.readers.push(new qy),i.includes(It.CODE_128)&&n.readers.push(new $y),i.includes(It.ITF)&&n.readers.push(new Gy),i.includes(It.CODABAR)&&n.readers.push(new Uk),i.includes(It.RSS_14)&&n.readers.push(new ib),i.includes(It.RSS_EXPANDED)&&(console.warn("RSS Expanded reader IS NOT ready for production yet! use at your own risk."),n.readers.push(new fR))),n.readers.length===0&&(n.readers.push(new W0(e)),n.readers.push(new Vy),n.readers.push(new qy),n.readers.push(new W0(e)),n.readers.push(new $y),n.readers.push(new Gy),n.readers.push(new ib)),n}return t.prototype.decodeRow=function(e,n,i){for(var a=0;a<this.readers.length;a++)try{return this.readers[a].decodeRow(e,n,i)}catch{}throw new ze},t.prototype.reset=function(){this.readers.forEach(function(e){return e.reset()})},t}(Dn),gR=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();(function(r){gR(t,r);function t(e,n){return e===void 0&&(e=500),r.call(this,new _u(n),e,n)||this}return t})(vu);var ab=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Tr=function(){function r(t,e,n){this.ecCodewords=t,this.ecBlocks=[e],n&&this.ecBlocks.push(n)}return r.prototype.getECCodewords=function(){return this.ecCodewords},r.prototype.getECBlocks=function(){return this.ecBlocks},r}(),wr=function(){function r(t,e){this.count=t,this.dataCodewords=e}return r.prototype.getCount=function(){return this.count},r.prototype.getDataCodewords=function(){return this.dataCodewords},r}(),vR=function(){function r(t,e,n,i,a,o){var s,u;this.versionNumber=t,this.symbolSizeRows=e,this.symbolSizeColumns=n,this.dataRegionSizeRows=i,this.dataRegionSizeColumns=a,this.ecBlocks=o;var c=0,l=o.getECCodewords(),d=o.getECBlocks();try{for(var h=ab(d),f=h.next();!f.done;f=h.next()){var g=f.value;c+=g.getCount()*(g.getDataCodewords()+l)}}catch(m){s={error:m}}finally{try{f&&!f.done&&(u=h.return)&&u.call(h)}finally{if(s)throw s.error}}this.totalCodewords=c}return r.prototype.getVersionNumber=function(){return this.versionNumber},r.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},r.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},r.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},r.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},r.prototype.getTotalCodewords=function(){return this.totalCodewords},r.prototype.getECBlocks=function(){return this.ecBlocks},r.getVersionForDimensions=function(t,e){var n,i;if((t&1)!=0||(e&1)!=0)throw new ct;try{for(var a=ab(r.VERSIONS),o=a.next();!o.done;o=a.next()){var s=o.value;if(s.symbolSizeRows===t&&s.symbolSizeColumns===e)return s}}catch(u){n={error:u}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}throw new ct},r.prototype.toString=function(){return""+this.versionNumber},r.buildVersions=function(){return[new r(1,10,10,8,8,new Tr(5,new wr(1,3))),new r(2,12,12,10,10,new Tr(7,new wr(1,5))),new r(3,14,14,12,12,new Tr(10,new wr(1,8))),new r(4,16,16,14,14,new Tr(12,new wr(1,12))),new r(5,18,18,16,16,new Tr(14,new wr(1,18))),new r(6,20,20,18,18,new Tr(18,new wr(1,22))),new r(7,22,22,20,20,new Tr(20,new wr(1,30))),new r(8,24,24,22,22,new Tr(24,new wr(1,36))),new r(9,26,26,24,24,new Tr(28,new wr(1,44))),new r(10,32,32,14,14,new Tr(36,new wr(1,62))),new r(11,36,36,16,16,new Tr(42,new wr(1,86))),new r(12,40,40,18,18,new Tr(48,new wr(1,114))),new r(13,44,44,20,20,new Tr(56,new wr(1,144))),new r(14,48,48,22,22,new Tr(68,new wr(1,174))),new r(15,52,52,24,24,new Tr(42,new wr(2,102))),new r(16,64,64,14,14,new Tr(56,new wr(2,140))),new r(17,72,72,16,16,new Tr(36,new wr(4,92))),new r(18,80,80,18,18,new Tr(48,new wr(4,114))),new r(19,88,88,20,20,new Tr(56,new wr(4,144))),new r(20,96,96,22,22,new Tr(68,new wr(4,174))),new r(21,104,104,24,24,new Tr(56,new wr(6,136))),new r(22,120,120,18,18,new Tr(68,new wr(6,175))),new r(23,132,132,20,20,new Tr(62,new wr(8,163))),new r(24,144,144,22,22,new Tr(62,new wr(8,156),new wr(2,155))),new r(25,8,18,6,16,new Tr(7,new wr(1,5))),new r(26,8,32,6,14,new Tr(11,new wr(1,10))),new r(27,12,26,10,24,new Tr(14,new wr(1,16))),new r(28,12,36,10,16,new Tr(18,new wr(1,22))),new r(29,16,36,14,16,new Tr(24,new wr(1,32))),new r(30,16,48,14,22,new Tr(28,new wr(1,49)))]},r.VERSIONS=r.buildVersions(),r}(),yR=function(){function r(t){var e=t.getHeight();if(e<8||e>144||(e&1)!=0)throw new ct;this.version=r.readVersion(t),this.mappingBitMatrix=this.extractDataRegion(t),this.readMappingMatrix=new po(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return r.prototype.getVersion=function(){return this.version},r.readVersion=function(t){var e=t.getHeight(),n=t.getWidth();return vR.getVersionForDimensions(e,n)},r.prototype.readCodewords=function(){var t=new Int8Array(this.version.getTotalCodewords()),e=0,n=4,i=0,a=this.mappingBitMatrix.getHeight(),o=this.mappingBitMatrix.getWidth(),s=!1,u=!1,c=!1,l=!1;do if(n===a&&i===0&&!s)t[e++]=this.readCorner1(a,o)&255,n-=2,i+=2,s=!0;else if(n===a-2&&i===0&&(o&3)!=0&&!u)t[e++]=this.readCorner2(a,o)&255,n-=2,i+=2,u=!0;else if(n===a+4&&i===2&&(o&7)==0&&!c)t[e++]=this.readCorner3(a,o)&255,n-=2,i+=2,c=!0;else if(n===a-2&&i===0&&(o&7)==4&&!l)t[e++]=this.readCorner4(a,o)&255,n-=2,i+=2,l=!0;else{do n<a&&i>=0&&!this.readMappingMatrix.get(i,n)&&(t[e++]=this.readUtah(n,i,a,o)&255),n-=2,i+=2;while(n>=0&&i<o);n+=1,i+=3;do n>=0&&i<o&&!this.readMappingMatrix.get(i,n)&&(t[e++]=this.readUtah(n,i,a,o)&255),n+=2,i-=2;while(n<a&&i>=0);n+=3,i+=1}while(n<a||i<o);if(e!==this.version.getTotalCodewords())throw new ct;return t},r.prototype.readModule=function(t,e,n,i){return t<0&&(t+=n,e+=4-(n+4&7)),e<0&&(e+=i,t+=4-(i+4&7)),this.readMappingMatrix.set(e,t),this.mappingBitMatrix.get(e,t)},r.prototype.readUtah=function(t,e,n,i){var a=0;return this.readModule(t-2,e-2,n,i)&&(a|=1),a<<=1,this.readModule(t-2,e-1,n,i)&&(a|=1),a<<=1,this.readModule(t-1,e-2,n,i)&&(a|=1),a<<=1,this.readModule(t-1,e-1,n,i)&&(a|=1),a<<=1,this.readModule(t-1,e,n,i)&&(a|=1),a<<=1,this.readModule(t,e-2,n,i)&&(a|=1),a<<=1,this.readModule(t,e-1,n,i)&&(a|=1),a<<=1,this.readModule(t,e,n,i)&&(a|=1),a},r.prototype.readCorner1=function(t,e){var n=0;return this.readModule(t-1,0,t,e)&&(n|=1),n<<=1,this.readModule(t-1,1,t,e)&&(n|=1),n<<=1,this.readModule(t-1,2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-1,t,e)&&(n|=1),n<<=1,this.readModule(1,e-1,t,e)&&(n|=1),n<<=1,this.readModule(2,e-1,t,e)&&(n|=1),n<<=1,this.readModule(3,e-1,t,e)&&(n|=1),n},r.prototype.readCorner2=function(t,e){var n=0;return this.readModule(t-3,0,t,e)&&(n|=1),n<<=1,this.readModule(t-2,0,t,e)&&(n|=1),n<<=1,this.readModule(t-1,0,t,e)&&(n|=1),n<<=1,this.readModule(0,e-4,t,e)&&(n|=1),n<<=1,this.readModule(0,e-3,t,e)&&(n|=1),n<<=1,this.readModule(0,e-2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-1,t,e)&&(n|=1),n<<=1,this.readModule(1,e-1,t,e)&&(n|=1),n},r.prototype.readCorner3=function(t,e){var n=0;return this.readModule(t-1,0,t,e)&&(n|=1),n<<=1,this.readModule(t-1,e-1,t,e)&&(n|=1),n<<=1,this.readModule(0,e-3,t,e)&&(n|=1),n<<=1,this.readModule(0,e-2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-1,t,e)&&(n|=1),n<<=1,this.readModule(1,e-3,t,e)&&(n|=1),n<<=1,this.readModule(1,e-2,t,e)&&(n|=1),n<<=1,this.readModule(1,e-1,t,e)&&(n|=1),n},r.prototype.readCorner4=function(t,e){var n=0;return this.readModule(t-3,0,t,e)&&(n|=1),n<<=1,this.readModule(t-2,0,t,e)&&(n|=1),n<<=1,this.readModule(t-1,0,t,e)&&(n|=1),n<<=1,this.readModule(0,e-2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-1,t,e)&&(n|=1),n<<=1,this.readModule(1,e-1,t,e)&&(n|=1),n<<=1,this.readModule(2,e-1,t,e)&&(n|=1),n<<=1,this.readModule(3,e-1,t,e)&&(n|=1),n},r.prototype.extractDataRegion=function(t){var e=this.version.getSymbolSizeRows(),n=this.version.getSymbolSizeColumns();if(t.getHeight()!==e)throw new Ut("Dimension of bitMatrix must match the version size");for(var i=this.version.getDataRegionSizeRows(),a=this.version.getDataRegionSizeColumns(),o=e/i|0,s=n/a|0,u=o*i,c=s*a,l=new po(c,u),d=0;d<o;++d)for(var h=d*i,f=0;f<s;++f)for(var g=f*a,m=0;m<i;++m)for(var p=d*(i+2)+1+m,y=h+m,v=0;v<a;++v){var b=f*(a+2)+1+v;if(t.get(b,p)){var A=g+v;l.set(A,y)}}return l},r}(),ob=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},bR=function(){function r(t,e){this.numDataCodewords=t,this.codewords=e}return r.getDataBlocks=function(t,e){var n,i,a,o,s=e.getECBlocks(),u=0,c=s.getECBlocks();try{for(var l=ob(c),d=l.next();!d.done;d=l.next()){var h=d.value;u+=h.getCount()}}catch(T){n={error:T}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}var f=new Array(u),g=0;try{for(var m=ob(c),p=m.next();!p.done;p=m.next())for(var h=p.value,y=0;y<h.getCount();y++){var v=h.getDataCodewords(),b=s.getECCodewords()+v;f[g++]=new r(v,new Uint8Array(b))}}catch(T){a={error:T}}finally{try{p&&!p.done&&(o=m.return)&&o.call(m)}finally{if(a)throw a.error}}for(var A=f[0].codewords.length,C=A-s.getECCodewords(),M=C-1,z=0,y=0;y<M;y++)for(var W=0;W<g;W++)f[W].codewords[y]=t[z++];for(var U=e.getVersionNumber()===24,G=U?8:g,W=0;W<G;W++)f[W].codewords[C-1]=t[z++];for(var ee=f[0].codewords.length,y=C;y<ee;y++)for(var W=0;W<g;W++){var I=U?(W+8)%g:W,O=U&&I>7?y-1:y;f[I].codewords[O]=t[z++]}if(z!==t.length)throw new Ut;return f},r.prototype.getNumDataCodewords=function(){return this.numDataCodewords},r.prototype.getCodewords=function(){return this.codewords},r}(),sb=function(){function r(t){this.bytes=t,this.byteOffset=0,this.bitOffset=0}return r.prototype.getBitOffset=function(){return this.bitOffset},r.prototype.getByteOffset=function(){return this.byteOffset},r.prototype.readBits=function(t){if(t<1||t>32||t>this.available())throw new Ut(""+t);var e=0,n=this.bitOffset,i=this.byteOffset,a=this.bytes;if(n>0){var o=8-n,s=t<o?t:o,u=o-s,c=255>>8-s<<u;e=(a[i]&c)>>u,t-=s,n+=s,n===8&&(n=0,i++)}if(t>0){for(;t>=8;)e=e<<8|a[i]&255,i++,t-=8;if(t>0){var u=8-t,c=255>>u<<u;e=e<<t|(a[i]&c)>>u,n+=t}}return this.bitOffset=n,this.byteOffset=i,e},r.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},r}(),On;(function(r){r[r.PAD_ENCODE=0]="PAD_ENCODE",r[r.ASCII_ENCODE=1]="ASCII_ENCODE",r[r.C40_ENCODE=2]="C40_ENCODE",r[r.TEXT_ENCODE=3]="TEXT_ENCODE",r[r.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",r[r.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",r[r.BASE256_ENCODE=6]="BASE256_ENCODE"})(On||(On={}));var wR=function(){function r(){}return r.decode=function(t){var e=new sb(t),n=new er,i=new er,a=new Array,o=On.ASCII_ENCODE;do if(o===On.ASCII_ENCODE)o=this.decodeAsciiSegment(e,n,i);else{switch(o){case On.C40_ENCODE:this.decodeC40Segment(e,n);break;case On.TEXT_ENCODE:this.decodeTextSegment(e,n);break;case On.ANSIX12_ENCODE:this.decodeAnsiX12Segment(e,n);break;case On.EDIFACT_ENCODE:this.decodeEdifactSegment(e,n);break;case On.BASE256_ENCODE:this.decodeBase256Segment(e,n,a);break;default:throw new ct}o=On.ASCII_ENCODE}while(o!==On.PAD_ENCODE&&e.available()>0);return i.length()>0&&n.append(i.toString()),new ph(t,n.toString(),a.length===0?null:a,null)},r.decodeAsciiSegment=function(t,e,n){var i=!1;do{var a=t.readBits(8);if(a===0)throw new ct;if(a<=128)return i&&(a+=128),e.append(String.fromCharCode(a-1)),On.ASCII_ENCODE;if(a===129)return On.PAD_ENCODE;if(a<=229){var o=a-130;o<10&&e.append("0"),e.append(""+o)}else switch(a){case 230:return On.C40_ENCODE;case 231:return On.BASE256_ENCODE;case 232:e.append(String.fromCharCode(29));break;case 233:case 234:break;case 235:i=!0;break;case 236:e.append("[)>05"),n.insert(0,"");break;case 237:e.append("[)>06"),n.insert(0,"");break;case 238:return On.ANSIX12_ENCODE;case 239:return On.TEXT_ENCODE;case 240:return On.EDIFACT_ENCODE;case 241:break;default:if(a!==254||t.available()!==0)throw new ct;break}}while(t.available()>0);return On.ASCII_ENCODE},r.decodeC40Segment=function(t,e){var n=!1,i=[],a=0;do{if(t.available()===8)return;var o=t.readBits(8);if(o===254)return;this.parseTwoBytes(o,t.readBits(8),i);for(var s=0;s<3;s++){var u=i[s];switch(a){case 0:if(u<3)a=u+1;else if(u<this.C40_BASIC_SET_CHARS.length){var c=this.C40_BASIC_SET_CHARS[u];n?(e.append(String.fromCharCode(c.charCodeAt(0)+128)),n=!1):e.append(c)}else throw new ct;break;case 1:n?(e.append(String.fromCharCode(u+128)),n=!1):e.append(String.fromCharCode(u)),a=0;break;case 2:if(u<this.C40_SHIFT2_SET_CHARS.length){var c=this.C40_SHIFT2_SET_CHARS[u];n?(e.append(String.fromCharCode(c.charCodeAt(0)+128)),n=!1):e.append(c)}else switch(u){case 27:e.append(String.fromCharCode(29));break;case 30:n=!0;break;default:throw new ct}a=0;break;case 3:n?(e.append(String.fromCharCode(u+224)),n=!1):e.append(String.fromCharCode(u+96)),a=0;break;default:throw new ct}}}while(t.available()>0)},r.decodeTextSegment=function(t,e){var n=!1,i=[],a=0;do{if(t.available()===8)return;var o=t.readBits(8);if(o===254)return;this.parseTwoBytes(o,t.readBits(8),i);for(var s=0;s<3;s++){var u=i[s];switch(a){case 0:if(u<3)a=u+1;else if(u<this.TEXT_BASIC_SET_CHARS.length){var c=this.TEXT_BASIC_SET_CHARS[u];n?(e.append(String.fromCharCode(c.charCodeAt(0)+128)),n=!1):e.append(c)}else throw new ct;break;case 1:n?(e.append(String.fromCharCode(u+128)),n=!1):e.append(String.fromCharCode(u)),a=0;break;case 2:if(u<this.TEXT_SHIFT2_SET_CHARS.length){var c=this.TEXT_SHIFT2_SET_CHARS[u];n?(e.append(String.fromCharCode(c.charCodeAt(0)+128)),n=!1):e.append(c)}else switch(u){case 27:e.append(String.fromCharCode(29));break;case 30:n=!0;break;default:throw new ct}a=0;break;case 3:if(u<this.TEXT_SHIFT3_SET_CHARS.length){var c=this.TEXT_SHIFT3_SET_CHARS[u];n?(e.append(String.fromCharCode(c.charCodeAt(0)+128)),n=!1):e.append(c),a=0}else throw new ct;break;default:throw new ct}}}while(t.available()>0)},r.decodeAnsiX12Segment=function(t,e){var n=[];do{if(t.available()===8)return;var i=t.readBits(8);if(i===254)return;this.parseTwoBytes(i,t.readBits(8),n);for(var a=0;a<3;a++){var o=n[a];switch(o){case 0:e.append("\r");break;case 1:e.append("*");break;case 2:e.append(">");break;case 3:e.append(" ");break;default:if(o<14)e.append(String.fromCharCode(o+44));else if(o<40)e.append(String.fromCharCode(o+51));else throw new ct;break}}}while(t.available()>0)},r.parseTwoBytes=function(t,e,n){var i=(t<<8)+e-1,a=Math.floor(i/1600);n[0]=a,i-=a*1600,a=Math.floor(i/40),n[1]=a,n[2]=i-a*40},r.decodeEdifactSegment=function(t,e){do{if(t.available()<=16)return;for(var n=0;n<4;n++){var i=t.readBits(6);if(i===31){var a=8-t.getBitOffset();a!==8&&t.readBits(a);return}(i&32)==0&&(i|=64),e.append(String.fromCharCode(i))}}while(t.available()>0)},r.decodeBase256Segment=function(t,e,n){var i=1+t.getByteOffset(),a=this.unrandomize255State(t.readBits(8),i++),o;if(a===0?o=t.available()/8|0:a<250?o=a:o=250*(a-249)+this.unrandomize255State(t.readBits(8),i++),o<0)throw new ct;for(var s=new Uint8Array(o),u=0;u<o;u++){if(t.available()<8)throw new ct;s[u]=this.unrandomize255State(t.readBits(8),i++)}n.push(s);try{e.append(ta.decode(s,$r.ISO88591))}catch(c){throw new yu("Platform does not support required encoding: "+c.message)}},r.unrandomize255State=function(t,e){var n=149*e%255+1,i=t-n;return i>=0?i:i+256},r.C40_BASIC_SET_CHARS=["*","*","*"," ","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"],r.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],r.TEXT_BASIC_SET_CHARS=["*","*","*"," ","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"],r.TEXT_SHIFT2_SET_CHARS=r.C40_SHIFT2_SET_CHARS,r.TEXT_SHIFT3_SET_CHARS=["`","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","{","|","}","~",String.fromCharCode(127)],r}(),xR=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},_R=function(){function r(){this.rsDecoder=new gh(mo.DATA_MATRIX_FIELD_256)}return r.prototype.decode=function(t){var e,n,i=new yR(t),a=i.getVersion(),o=i.readCodewords(),s=bR.getDataBlocks(o,a),u=0;try{for(var c=xR(s),l=c.next();!l.done;l=c.next()){var d=l.value;u+=d.getNumDataCodewords()}}catch(b){e={error:b}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}for(var h=new Uint8Array(u),f=s.length,g=0;g<f;g++){var m=s[g],p=m.getCodewords(),y=m.getNumDataCodewords();this.correctErrors(p,y);for(var v=0;v<y;v++)h[v*f+g]=p[v]}return wR.decode(h)},r.prototype.correctErrors=function(t,e){var n=new Int32Array(t);try{this.rsDecoder.decode(n,t.length-e)}catch{throw new bn}for(var i=0;i<e;i++)t[i]=n[i]},r}(),ER=function(){function r(t){this.image=t,this.rectangleDetector=new B0(this.image)}return r.prototype.detect=function(){var t=this.rectangleDetector.detect(),e=this.detectSolid1(t);if(e=this.detectSolid2(e),e[3]=this.correctTopRight(e),!e[3])throw new ze;e=this.shiftToModuleCenter(e);var n=e[0],i=e[1],a=e[2],o=e[3],s=this.transitionsBetween(n,o)+1,u=this.transitionsBetween(a,o)+1;(s&1)==1&&(s+=1),(u&1)==1&&(u+=1),4*s<7*u&&4*u<7*s&&(s=u=Math.max(s,u));var c=r.sampleGrid(this.image,n,i,a,o,s,u);return new M0(c,[n,i,a,o])},r.shiftPoint=function(t,e,n){var i=(e.getX()-t.getX())/(n+1),a=(e.getY()-t.getY())/(n+1);return new yt(t.getX()+i,t.getY()+a)},r.moveAway=function(t,e,n){var i=t.getX(),a=t.getY();return i<e?i-=1:i+=1,a<n?a-=1:a+=1,new yt(i,a)},r.prototype.detectSolid1=function(t){var e=t[0],n=t[1],i=t[3],a=t[2],o=this.transitionsBetween(e,n),s=this.transitionsBetween(n,i),u=this.transitionsBetween(i,a),c=this.transitionsBetween(a,e),l=o,d=[a,e,n,i];return l>s&&(l=s,d[0]=e,d[1]=n,d[2]=i,d[3]=a),l>u&&(l=u,d[0]=n,d[1]=i,d[2]=a,d[3]=e),l>c&&(d[0]=i,d[1]=a,d[2]=e,d[3]=n),d},r.prototype.detectSolid2=function(t){var e=t[0],n=t[1],i=t[2],a=t[3],o=this.transitionsBetween(e,a),s=r.shiftPoint(n,i,(o+1)*4),u=r.shiftPoint(i,n,(o+1)*4),c=this.transitionsBetween(s,e),l=this.transitionsBetween(u,a);return c<l?(t[0]=e,t[1]=n,t[2]=i,t[3]=a):(t[0]=n,t[1]=i,t[2]=a,t[3]=e),t},r.prototype.correctTopRight=function(t){var e=t[0],n=t[1],i=t[2],a=t[3],o=this.transitionsBetween(e,a),s=this.transitionsBetween(n,a),u=r.shiftPoint(e,n,(s+1)*4),c=r.shiftPoint(i,n,(o+1)*4);o=this.transitionsBetween(u,a),s=this.transitionsBetween(c,a);var l=new yt(a.getX()+(i.getX()-n.getX())/(o+1),a.getY()+(i.getY()-n.getY())/(o+1)),d=new yt(a.getX()+(e.getX()-n.getX())/(s+1),a.getY()+(e.getY()-n.getY())/(s+1));if(!this.isValid(l))return this.isValid(d)?d:null;if(!this.isValid(d))return l;var h=this.transitionsBetween(u,l)+this.transitionsBetween(c,l),f=this.transitionsBetween(u,d)+this.transitionsBetween(c,d);return h>f?l:d},r.prototype.shiftToModuleCenter=function(t){var e=t[0],n=t[1],i=t[2],a=t[3],o=this.transitionsBetween(e,a)+1,s=this.transitionsBetween(i,a)+1,u=r.shiftPoint(e,n,s*4),c=r.shiftPoint(i,n,o*4);o=this.transitionsBetween(u,a)+1,s=this.transitionsBetween(c,a)+1,(o&1)==1&&(o+=1),(s&1)==1&&(s+=1);var l=(e.getX()+n.getX()+i.getX()+a.getX())/4,d=(e.getY()+n.getY()+i.getY()+a.getY())/4;e=r.moveAway(e,l,d),n=r.moveAway(n,l,d),i=r.moveAway(i,l,d),a=r.moveAway(a,l,d);var h,f;return u=r.shiftPoint(e,n,s*4),u=r.shiftPoint(u,a,o*4),h=r.shiftPoint(n,e,s*4),h=r.shiftPoint(h,i,o*4),c=r.shiftPoint(i,a,s*4),c=r.shiftPoint(c,n,o*4),f=r.shiftPoint(a,i,s*4),f=r.shiftPoint(f,e,o*4),[u,h,c,f]},r.prototype.isValid=function(t){return t.getX()>=0&&t.getX()<this.image.getWidth()&&t.getY()>0&&t.getY()<this.image.getHeight()},r.sampleGrid=function(t,e,n,i,a,o,s){var u=U0.getInstance();return u.sampleGrid(t,o,s,.5,.5,o-.5,.5,o-.5,s-.5,.5,s-.5,e.getX(),e.getY(),a.getX(),a.getY(),i.getX(),i.getY(),n.getX(),n.getY())},r.prototype.transitionsBetween=function(t,e){var n=Math.trunc(t.getX()),i=Math.trunc(t.getY()),a=Math.trunc(e.getX()),o=Math.trunc(e.getY()),s=Math.abs(o-i)>Math.abs(a-n);if(s){var u=n;n=i,i=u,u=a,a=o,o=u}for(var c=Math.abs(a-n),l=Math.abs(o-i),d=-c/2,h=i<o?1:-1,f=n<a?1:-1,g=0,m=this.image.get(s?i:n,s?n:i),p=n,y=i;p!==a;p+=f){var v=this.image.get(s?y:p,s?p:y);if(v!==m&&(g++,m=v),d+=l,d>0){if(y===o)break;y+=h,d-=c}}return g},r}(),_h=function(){function r(){this.decoder=new _R}return r.prototype.decode=function(t,e){e===void 0&&(e=null);var n,i;if(e!=null&&e.has(Hr.PURE_BARCODE)){var a=r.extractPureBits(t.getBlackMatrix());n=this.decoder.decode(a),i=r.NO_POINTS}else{var o=new ER(t.getBlackMatrix()).detect();n=this.decoder.decode(o.getBits()),i=o.getPoints()}var s=n.getRawBytes(),u=new Yn(n.getText(),s,8*s.length,i,It.DATA_MATRIX,zr.currentTimeMillis()),c=n.getByteSegments();c!=null&&u.putMetadata(zn.BYTE_SEGMENTS,c);var l=n.getECLevel();return l!=null&&u.putMetadata(zn.ERROR_CORRECTION_LEVEL,l),u},r.prototype.reset=function(){},r.extractPureBits=function(t){var e=t.getTopLeftOnBit(),n=t.getBottomRightOnBit();if(e==null||n==null)throw new ze;var i=this.moduleSize(e,t),a=e[1],o=n[1],s=e[0],u=n[0],c=(u-s+1)/i,l=(o-a+1)/i;if(c<=0||l<=0)throw new ze;var d=i/2;a+=d,s+=d;for(var h=new po(c,l),f=0;f<l;f++)for(var g=a+f*i,m=0;m<c;m++)t.get(s+m*i,g)&&h.set(m,f);return h},r.moduleSize=function(t,e){for(var n=e.getWidth(),i=t[0],a=t[1];i<n&&e.get(i,a);)i++;if(i===n)throw new ze;var o=i-t[0];if(o===0)throw new ze;return o},r.NO_POINTS=[],r}(),AR=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();(function(r){AR(t,r);function t(e){return e===void 0&&(e=500),r.call(this,new _h,e)||this}return t})(vu);var Eu;(function(r){r[r.L=0]="L",r[r.M=1]="M",r[r.Q=2]="Q",r[r.H=3]="H"})(Eu||(Eu={}));var $0=function(){function r(t,e,n){this.value=t,this.stringValue=e,this.bits=n,r.FOR_BITS.set(n,this),r.FOR_VALUE.set(t,this)}return r.prototype.getValue=function(){return this.value},r.prototype.getBits=function(){return this.bits},r.fromString=function(t){switch(t){case"L":return r.L;case"M":return r.M;case"Q":return r.Q;case"H":return r.H;default:throw new cn(t+"not available")}},r.prototype.toString=function(){return this.stringValue},r.prototype.equals=function(t){if(!(t instanceof r))return!1;var e=t;return this.value===e.value},r.forBits=function(t){if(t<0||t>=r.FOR_BITS.size)throw new Ut;return r.FOR_BITS.get(t)},r.FOR_BITS=new Map,r.FOR_VALUE=new Map,r.L=new r(Eu.L,"L",1),r.M=new r(Eu.M,"M",0),r.Q=new r(Eu.Q,"Q",3),r.H=new r(Eu.H,"H",2),r}(),TR=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ub=function(){function r(t){this.errorCorrectionLevel=$0.forBits(t>>3&3),this.dataMask=t&7}return r.numBitsDiffering=function(t,e){return ln.bitCount(t^e)},r.decodeFormatInformation=function(t,e){var n=r.doDecodeFormatInformation(t,e);return n!==null?n:r.doDecodeFormatInformation(t^r.FORMAT_INFO_MASK_QR,e^r.FORMAT_INFO_MASK_QR)},r.doDecodeFormatInformation=function(t,e){var n,i,a=Number.MAX_SAFE_INTEGER,o=0;try{for(var s=TR(r.FORMAT_INFO_DECODE_LOOKUP),u=s.next();!u.done;u=s.next()){var c=u.value,l=c[0];if(l===t||l===e)return new r(c[1]);var d=r.numBitsDiffering(t,l);d<a&&(o=c[1],a=d),t!==e&&(d=r.numBitsDiffering(e,l),d<a&&(o=c[1],a=d))}}catch(h){n={error:h}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return a<=3?new r(o):null},r.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},r.prototype.getDataMask=function(){return this.dataMask},r.prototype.hashCode=function(){return this.errorCorrectionLevel.getBits()<<3|this.dataMask},r.prototype.equals=function(t){if(!(t instanceof r))return!1;var e=t;return this.errorCorrectionLevel===e.errorCorrectionLevel&&this.dataMask===e.dataMask},r.FORMAT_INFO_MASK_QR=21522,r.FORMAT_INFO_DECODE_LOOKUP=[Int32Array.from([21522,0]),Int32Array.from([20773,1]),Int32Array.from([24188,2]),Int32Array.from([23371,3]),Int32Array.from([17913,4]),Int32Array.from([16590,5]),Int32Array.from([20375,6]),Int32Array.from([19104,7]),Int32Array.from([30660,8]),Int32Array.from([29427,9]),Int32Array.from([32170,10]),Int32Array.from([30877,11]),Int32Array.from([26159,12]),Int32Array.from([25368,13]),Int32Array.from([27713,14]),Int32Array.from([26998,15]),Int32Array.from([5769,16]),Int32Array.from([5054,17]),Int32Array.from([7399,18]),Int32Array.from([6608,19]),Int32Array.from([1890,20]),Int32Array.from([597,21]),Int32Array.from([3340,22]),Int32Array.from([2107,23]),Int32Array.from([13663,24]),Int32Array.from([12392,25]),Int32Array.from([16177,26]),Int32Array.from([14854,27]),Int32Array.from([9396,28]),Int32Array.from([8579,29]),Int32Array.from([11994,30]),Int32Array.from([11245,31])],r}(),SR=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Fe=function(){function r(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];this.ecCodewordsPerBlock=t,this.ecBlocks=e}return r.prototype.getECCodewordsPerBlock=function(){return this.ecCodewordsPerBlock},r.prototype.getNumBlocks=function(){var t,e,n=0,i=this.ecBlocks;try{for(var a=SR(i),o=a.next();!o.done;o=a.next()){var s=o.value;n+=s.getCount()}}catch(u){t={error:u}}finally{try{o&&!o.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}return n},r.prototype.getTotalECCodewords=function(){return this.ecCodewordsPerBlock*this.getNumBlocks()},r.prototype.getECBlocks=function(){return this.ecBlocks},r}(),ye=function(){function r(t,e){this.count=t,this.dataCodewords=e}return r.prototype.getCount=function(){return this.count},r.prototype.getDataCodewords=function(){return this.dataCodewords},r}(),DR=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ks=function(){function r(t,e){for(var n,i,a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];this.versionNumber=t,this.alignmentPatternCenters=e,this.ecBlocks=a;var s=0,u=a[0].getECCodewordsPerBlock(),c=a[0].getECBlocks();try{for(var l=DR(c),d=l.next();!d.done;d=l.next()){var h=d.value;s+=h.getCount()*(h.getDataCodewords()+u)}}catch(f){n={error:f}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}this.totalCodewords=s}return r.prototype.getVersionNumber=function(){return this.versionNumber},r.prototype.getAlignmentPatternCenters=function(){return this.alignmentPatternCenters},r.prototype.getTotalCodewords=function(){return this.totalCodewords},r.prototype.getDimensionForVersion=function(){return 17+4*this.versionNumber},r.prototype.getECBlocksForLevel=function(t){return this.ecBlocks[t.getValue()]},r.getProvisionalVersionForDimension=function(t){if(t%4!=1)throw new ct;try{return this.getVersionForNumber((t-17)/4)}catch{throw new ct}},r.getVersionForNumber=function(t){if(t<1||t>40)throw new Ut;return r.VERSIONS[t-1]},r.decodeVersionInformation=function(t){for(var e=Number.MAX_SAFE_INTEGER,n=0,i=0;i<r.VERSION_DECODE_INFO.length;i++){var a=r.VERSION_DECODE_INFO[i];if(a===t)return r.getVersionForNumber(i+7);var o=ub.numBitsDiffering(t,a);o<e&&(n=i+7,e=o)}return e<=3?r.getVersionForNumber(n):null},r.prototype.buildFunctionPattern=function(){var t=this.getDimensionForVersion(),e=new po(t);e.setRegion(0,0,9,9),e.setRegion(t-8,0,8,9),e.setRegion(0,t-8,9,8);for(var n=this.alignmentPatternCenters.length,i=0;i<n;i++)for(var a=this.alignmentPatternCenters[i]-2,o=0;o<n;o++)i===0&&(o===0||o===n-1)||i===n-1&&o===0||e.setRegion(this.alignmentPatternCenters[o]-2,a,5,5);return e.setRegion(6,9,1,t-17),e.setRegion(9,6,t-17,1),this.versionNumber>6&&(e.setRegion(t-11,0,3,6),e.setRegion(0,t-11,6,3)),e},r.prototype.toString=function(){return""+this.versionNumber},r.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),r.VERSIONS=[new r(1,new Int32Array(0),new Fe(7,new ye(1,19)),new Fe(10,new ye(1,16)),new Fe(13,new ye(1,13)),new Fe(17,new ye(1,9))),new r(2,Int32Array.from([6,18]),new Fe(10,new ye(1,34)),new Fe(16,new ye(1,28)),new Fe(22,new ye(1,22)),new Fe(28,new ye(1,16))),new r(3,Int32Array.from([6,22]),new Fe(15,new ye(1,55)),new Fe(26,new ye(1,44)),new Fe(18,new ye(2,17)),new Fe(22,new ye(2,13))),new r(4,Int32Array.from([6,26]),new Fe(20,new ye(1,80)),new Fe(18,new ye(2,32)),new Fe(26,new ye(2,24)),new Fe(16,new ye(4,9))),new r(5,Int32Array.from([6,30]),new Fe(26,new ye(1,108)),new Fe(24,new ye(2,43)),new Fe(18,new ye(2,15),new ye(2,16)),new Fe(22,new ye(2,11),new ye(2,12))),new r(6,Int32Array.from([6,34]),new Fe(18,new ye(2,68)),new Fe(16,new ye(4,27)),new Fe(24,new ye(4,19)),new Fe(28,new ye(4,15))),new r(7,Int32Array.from([6,22,38]),new Fe(20,new ye(2,78)),new Fe(18,new ye(4,31)),new Fe(18,new ye(2,14),new ye(4,15)),new Fe(26,new ye(4,13),new ye(1,14))),new r(8,Int32Array.from([6,24,42]),new Fe(24,new ye(2,97)),new Fe(22,new ye(2,38),new ye(2,39)),new Fe(22,new ye(4,18),new ye(2,19)),new Fe(26,new ye(4,14),new ye(2,15))),new r(9,Int32Array.from([6,26,46]),new Fe(30,new ye(2,116)),new Fe(22,new ye(3,36),new ye(2,37)),new Fe(20,new ye(4,16),new ye(4,17)),new Fe(24,new ye(4,12),new ye(4,13))),new r(10,Int32Array.from([6,28,50]),new Fe(18,new ye(2,68),new ye(2,69)),new Fe(26,new ye(4,43),new ye(1,44)),new Fe(24,new ye(6,19),new ye(2,20)),new Fe(28,new ye(6,15),new ye(2,16))),new r(11,Int32Array.from([6,30,54]),new Fe(20,new ye(4,81)),new Fe(30,new ye(1,50),new ye(4,51)),new Fe(28,new ye(4,22),new ye(4,23)),new Fe(24,new ye(3,12),new ye(8,13))),new r(12,Int32Array.from([6,32,58]),new Fe(24,new ye(2,92),new ye(2,93)),new Fe(22,new ye(6,36),new ye(2,37)),new Fe(26,new ye(4,20),new ye(6,21)),new Fe(28,new ye(7,14),new ye(4,15))),new r(13,Int32Array.from([6,34,62]),new Fe(26,new ye(4,107)),new Fe(22,new ye(8,37),new ye(1,38)),new Fe(24,new ye(8,20),new ye(4,21)),new Fe(22,new ye(12,11),new ye(4,12))),new r(14,Int32Array.from([6,26,46,66]),new Fe(30,new ye(3,115),new ye(1,116)),new Fe(24,new ye(4,40),new ye(5,41)),new Fe(20,new ye(11,16),new ye(5,17)),new Fe(24,new ye(11,12),new ye(5,13))),new r(15,Int32Array.from([6,26,48,70]),new Fe(22,new ye(5,87),new ye(1,88)),new Fe(24,new ye(5,41),new ye(5,42)),new Fe(30,new ye(5,24),new ye(7,25)),new Fe(24,new ye(11,12),new ye(7,13))),new r(16,Int32Array.from([6,26,50,74]),new Fe(24,new ye(5,98),new ye(1,99)),new Fe(28,new ye(7,45),new ye(3,46)),new Fe(24,new ye(15,19),new ye(2,20)),new Fe(30,new ye(3,15),new ye(13,16))),new r(17,Int32Array.from([6,30,54,78]),new Fe(28,new ye(1,107),new ye(5,108)),new Fe(28,new ye(10,46),new ye(1,47)),new Fe(28,new ye(1,22),new ye(15,23)),new Fe(28,new ye(2,14),new ye(17,15))),new r(18,Int32Array.from([6,30,56,82]),new Fe(30,new ye(5,120),new ye(1,121)),new Fe(26,new ye(9,43),new ye(4,44)),new Fe(28,new ye(17,22),new ye(1,23)),new Fe(28,new ye(2,14),new ye(19,15))),new r(19,Int32Array.from([6,30,58,86]),new Fe(28,new ye(3,113),new ye(4,114)),new Fe(26,new ye(3,44),new ye(11,45)),new Fe(26,new ye(17,21),new ye(4,22)),new Fe(26,new ye(9,13),new ye(16,14))),new r(20,Int32Array.from([6,34,62,90]),new Fe(28,new ye(3,107),new ye(5,108)),new Fe(26,new ye(3,41),new ye(13,42)),new Fe(30,new ye(15,24),new ye(5,25)),new Fe(28,new ye(15,15),new ye(10,16))),new r(21,Int32Array.from([6,28,50,72,94]),new Fe(28,new ye(4,116),new ye(4,117)),new Fe(26,new ye(17,42)),new Fe(28,new ye(17,22),new ye(6,23)),new Fe(30,new ye(19,16),new ye(6,17))),new r(22,Int32Array.from([6,26,50,74,98]),new Fe(28,new ye(2,111),new ye(7,112)),new Fe(28,new ye(17,46)),new Fe(30,new ye(7,24),new ye(16,25)),new Fe(24,new ye(34,13))),new r(23,Int32Array.from([6,30,54,78,102]),new Fe(30,new ye(4,121),new ye(5,122)),new Fe(28,new ye(4,47),new ye(14,48)),new Fe(30,new ye(11,24),new ye(14,25)),new Fe(30,new ye(16,15),new ye(14,16))),new r(24,Int32Array.from([6,28,54,80,106]),new Fe(30,new ye(6,117),new ye(4,118)),new Fe(28,new ye(6,45),new ye(14,46)),new Fe(30,new ye(11,24),new ye(16,25)),new Fe(30,new ye(30,16),new ye(2,17))),new r(25,Int32Array.from([6,32,58,84,110]),new Fe(26,new ye(8,106),new ye(4,107)),new Fe(28,new ye(8,47),new ye(13,48)),new Fe(30,new ye(7,24),new ye(22,25)),new Fe(30,new ye(22,15),new ye(13,16))),new r(26,Int32Array.from([6,30,58,86,114]),new Fe(28,new ye(10,114),new ye(2,115)),new Fe(28,new ye(19,46),new ye(4,47)),new Fe(28,new ye(28,22),new ye(6,23)),new Fe(30,new ye(33,16),new ye(4,17))),new r(27,Int32Array.from([6,34,62,90,118]),new Fe(30,new ye(8,122),new ye(4,123)),new Fe(28,new ye(22,45),new ye(3,46)),new Fe(30,new ye(8,23),new ye(26,24)),new Fe(30,new ye(12,15),new ye(28,16))),new r(28,Int32Array.from([6,26,50,74,98,122]),new Fe(30,new ye(3,117),new ye(10,118)),new Fe(28,new ye(3,45),new ye(23,46)),new Fe(30,new ye(4,24),new ye(31,25)),new Fe(30,new ye(11,15),new ye(31,16))),new r(29,Int32Array.from([6,30,54,78,102,126]),new Fe(30,new ye(7,116),new ye(7,117)),new Fe(28,new ye(21,45),new ye(7,46)),new Fe(30,new ye(1,23),new ye(37,24)),new Fe(30,new ye(19,15),new ye(26,16))),new r(30,Int32Array.from([6,26,52,78,104,130]),new Fe(30,new ye(5,115),new ye(10,116)),new Fe(28,new ye(19,47),new ye(10,48)),new Fe(30,new ye(15,24),new ye(25,25)),new Fe(30,new ye(23,15),new ye(25,16))),new r(31,Int32Array.from([6,30,56,82,108,134]),new Fe(30,new ye(13,115),new ye(3,116)),new Fe(28,new ye(2,46),new ye(29,47)),new Fe(30,new ye(42,24),new ye(1,25)),new Fe(30,new ye(23,15),new ye(28,16))),new r(32,Int32Array.from([6,34,60,86,112,138]),new Fe(30,new ye(17,115)),new Fe(28,new ye(10,46),new ye(23,47)),new Fe(30,new ye(10,24),new ye(35,25)),new Fe(30,new ye(19,15),new ye(35,16))),new r(33,Int32Array.from([6,30,58,86,114,142]),new Fe(30,new ye(17,115),new ye(1,116)),new Fe(28,new ye(14,46),new ye(21,47)),new Fe(30,new ye(29,24),new ye(19,25)),new Fe(30,new ye(11,15),new ye(46,16))),new r(34,Int32Array.from([6,34,62,90,118,146]),new Fe(30,new ye(13,115),new ye(6,116)),new Fe(28,new ye(14,46),new ye(23,47)),new Fe(30,new ye(44,24),new ye(7,25)),new Fe(30,new ye(59,16),new ye(1,17))),new r(35,Int32Array.from([6,30,54,78,102,126,150]),new Fe(30,new ye(12,121),new ye(7,122)),new Fe(28,new ye(12,47),new ye(26,48)),new Fe(30,new ye(39,24),new ye(14,25)),new Fe(30,new ye(22,15),new ye(41,16))),new r(36,Int32Array.from([6,24,50,76,102,128,154]),new Fe(30,new ye(6,121),new ye(14,122)),new Fe(28,new ye(6,47),new ye(34,48)),new Fe(30,new ye(46,24),new ye(10,25)),new Fe(30,new ye(2,15),new ye(64,16))),new r(37,Int32Array.from([6,28,54,80,106,132,158]),new Fe(30,new ye(17,122),new ye(4,123)),new Fe(28,new ye(29,46),new ye(14,47)),new Fe(30,new ye(49,24),new ye(10,25)),new Fe(30,new ye(24,15),new ye(46,16))),new r(38,Int32Array.from([6,32,58,84,110,136,162]),new Fe(30,new ye(4,122),new ye(18,123)),new Fe(28,new ye(13,46),new ye(32,47)),new Fe(30,new ye(48,24),new ye(14,25)),new Fe(30,new ye(42,15),new ye(32,16))),new r(39,Int32Array.from([6,26,54,82,110,138,166]),new Fe(30,new ye(20,117),new ye(4,118)),new Fe(28,new ye(40,47),new ye(7,48)),new Fe(30,new ye(43,24),new ye(22,25)),new Fe(30,new ye(10,15),new ye(67,16))),new r(40,Int32Array.from([6,30,58,86,114,142,170]),new Fe(30,new ye(19,118),new ye(6,119)),new Fe(28,new ye(18,47),new ye(31,48)),new Fe(30,new ye(34,24),new ye(34,25)),new Fe(30,new ye(20,15),new ye(61,16)))],r}(),Nn;(function(r){r[r.DATA_MASK_000=0]="DATA_MASK_000",r[r.DATA_MASK_001=1]="DATA_MASK_001",r[r.DATA_MASK_010=2]="DATA_MASK_010",r[r.DATA_MASK_011=3]="DATA_MASK_011",r[r.DATA_MASK_100=4]="DATA_MASK_100",r[r.DATA_MASK_101=5]="DATA_MASK_101",r[r.DATA_MASK_110=6]="DATA_MASK_110",r[r.DATA_MASK_111=7]="DATA_MASK_111"})(Nn||(Nn={}));var cb=function(){function r(t,e){this.value=t,this.isMasked=e}return r.prototype.unmaskBitMatrix=function(t,e){for(var n=0;n<e;n++)for(var i=0;i<e;i++)this.isMasked(n,i)&&t.flip(i,n)},r.values=new Map([[Nn.DATA_MASK_000,new r(Nn.DATA_MASK_000,function(t,e){return(t+e&1)==0})],[Nn.DATA_MASK_001,new r(Nn.DATA_MASK_001,function(t,e){return(t&1)==0})],[Nn.DATA_MASK_010,new r(Nn.DATA_MASK_010,function(t,e){return e%3==0})],[Nn.DATA_MASK_011,new r(Nn.DATA_MASK_011,function(t,e){return(t+e)%3==0})],[Nn.DATA_MASK_100,new r(Nn.DATA_MASK_100,function(t,e){return(Math.floor(t/2)+Math.floor(e/3)&1)==0})],[Nn.DATA_MASK_101,new r(Nn.DATA_MASK_101,function(t,e){return t*e%6==0})],[Nn.DATA_MASK_110,new r(Nn.DATA_MASK_110,function(t,e){return t*e%6<3})],[Nn.DATA_MASK_111,new r(Nn.DATA_MASK_111,function(t,e){return(t+e+t*e%3&1)==0})]]),r}(),CR=function(){function r(t){var e=t.getHeight();if(e<21||(e&3)!=1)throw new ct;this.bitMatrix=t}return r.prototype.readFormatInformation=function(){if(this.parsedFormatInfo!==null&&this.parsedFormatInfo!==void 0)return this.parsedFormatInfo;for(var t=0,e=0;e<6;e++)t=this.copyBit(e,8,t);t=this.copyBit(7,8,t),t=this.copyBit(8,8,t),t=this.copyBit(8,7,t);for(var n=5;n>=0;n--)t=this.copyBit(8,n,t);for(var i=this.bitMatrix.getHeight(),a=0,o=i-7,n=i-1;n>=o;n--)a=this.copyBit(8,n,a);for(var e=i-8;e<i;e++)a=this.copyBit(e,8,a);if(this.parsedFormatInfo=ub.decodeFormatInformation(t,a),this.parsedFormatInfo!==null)return this.parsedFormatInfo;throw new ct},r.prototype.readVersion=function(){if(this.parsedVersion!==null&&this.parsedVersion!==void 0)return this.parsedVersion;var t=this.bitMatrix.getHeight(),e=Math.floor((t-17)/4);if(e<=6)return ks.getVersionForNumber(e);for(var n=0,i=t-11,a=5;a>=0;a--)for(var o=t-9;o>=i;o--)n=this.copyBit(o,a,n);var s=ks.decodeVersionInformation(n);if(s!==null&&s.getDimensionForVersion()===t)return this.parsedVersion=s,s;n=0;for(var o=5;o>=0;o--)for(var a=t-9;a>=i;a--)n=this.copyBit(o,a,n);if(s=ks.decodeVersionInformation(n),s!==null&&s.getDimensionForVersion()===t)return this.parsedVersion=s,s;throw new ct},r.prototype.copyBit=function(t,e,n){var i=this.isMirror?this.bitMatrix.get(e,t):this.bitMatrix.get(t,e);return i?n<<1|1:n<<1},r.prototype.readCodewords=function(){var t=this.readFormatInformation(),e=this.readVersion(),n=cb.values.get(t.getDataMask()),i=this.bitMatrix.getHeight();n.unmaskBitMatrix(this.bitMatrix,i);for(var a=e.buildFunctionPattern(),o=!0,s=new Uint8Array(e.getTotalCodewords()),u=0,c=0,l=0,d=i-1;d>0;d-=2){d===6&&d--;for(var h=0;h<i;h++)for(var f=o?i-1-h:h,g=0;g<2;g++)a.get(d-g,f)||(l++,c<<=1,this.bitMatrix.get(d-g,f)&&(c|=1),l===8&&(s[u++]=c,l=0,c=0));o=!o}if(u!==e.getTotalCodewords())throw new ct;return s},r.prototype.remask=function(){if(this.parsedFormatInfo!==null){var t=cb.values.get(this.parsedFormatInfo.getDataMask()),e=this.bitMatrix.getHeight();t.unmaskBitMatrix(this.bitMatrix,e)}},r.prototype.setMirror=function(t){this.parsedVersion=null,this.parsedFormatInfo=null,this.isMirror=t},r.prototype.mirror=function(){for(var t=this.bitMatrix,e=0,n=t.getWidth();e<n;e++)for(var i=e+1,a=t.getHeight();i<a;i++)t.get(e,i)!==t.get(i,e)&&(t.flip(i,e),t.flip(e,i))},r}(),lb=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},OR=function(){function r(t,e){this.numDataCodewords=t,this.codewords=e}return r.getDataBlocks=function(t,e,n){var i,a,o,s;if(t.length!==e.getTotalCodewords())throw new Ut;var u=e.getECBlocksForLevel(n),c=0,l=u.getECBlocks();try{for(var d=lb(l),h=d.next();!h.done;h=d.next()){var f=h.value;c+=f.getCount()}}catch(O){i={error:O}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}var g=new Array(c),m=0;try{for(var p=lb(l),y=p.next();!y.done;y=p.next())for(var f=y.value,v=0;v<f.getCount();v++){var b=f.getDataCodewords(),A=u.getECCodewordsPerBlock()+b;g[m++]=new r(b,new Uint8Array(A))}}catch(O){o={error:O}}finally{try{y&&!y.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}for(var C=g[0].codewords.length,M=g.length-1;M>=0;){var z=g[M].codewords.length;if(z===C)break;M--}M++;for(var W=C-u.getECCodewordsPerBlock(),U=0,v=0;v<W;v++)for(var G=0;G<m;G++)g[G].codewords[v]=t[U++];for(var G=M;G<m;G++)g[G].codewords[W]=t[U++];for(var ee=g[0].codewords.length,v=W;v<ee;v++)for(var G=0;G<m;G++){var I=G<M?v:v+1;g[G].codewords[I]=t[U++]}return g},r.prototype.getNumDataCodewords=function(){return this.numDataCodewords},r.prototype.getCodewords=function(){return this.codewords},r}(),ra;(function(r){r[r.TERMINATOR=0]="TERMINATOR",r[r.NUMERIC=1]="NUMERIC",r[r.ALPHANUMERIC=2]="ALPHANUMERIC",r[r.STRUCTURED_APPEND=3]="STRUCTURED_APPEND",r[r.BYTE=4]="BYTE",r[r.ECI=5]="ECI",r[r.KANJI=6]="KANJI",r[r.FNC1_FIRST_POSITION=7]="FNC1_FIRST_POSITION",r[r.FNC1_SECOND_POSITION=8]="FNC1_SECOND_POSITION",r[r.HANZI=9]="HANZI"})(ra||(ra={}));var Zr=function(){function r(t,e,n,i){this.value=t,this.stringValue=e,this.characterCountBitsForVersions=n,this.bits=i,r.FOR_BITS.set(i,this),r.FOR_VALUE.set(t,this)}return r.forBits=function(t){var e=r.FOR_BITS.get(t);if(e===void 0)throw new Ut;return e},r.prototype.getCharacterCountBits=function(t){var e=t.getVersionNumber(),n;return e<=9?n=0:e<=26?n=1:n=2,this.characterCountBitsForVersions[n]},r.prototype.getValue=function(){return this.value},r.prototype.getBits=function(){return this.bits},r.prototype.equals=function(t){if(!(t instanceof r))return!1;var e=t;return this.value===e.value},r.prototype.toString=function(){return this.stringValue},r.FOR_BITS=new Map,r.FOR_VALUE=new Map,r.TERMINATOR=new r(ra.TERMINATOR,"TERMINATOR",Int32Array.from([0,0,0]),0),r.NUMERIC=new r(ra.NUMERIC,"NUMERIC",Int32Array.from([10,12,14]),1),r.ALPHANUMERIC=new r(ra.ALPHANUMERIC,"ALPHANUMERIC",Int32Array.from([9,11,13]),2),r.STRUCTURED_APPEND=new r(ra.STRUCTURED_APPEND,"STRUCTURED_APPEND",Int32Array.from([0,0,0]),3),r.BYTE=new r(ra.BYTE,"BYTE",Int32Array.from([8,16,16]),4),r.ECI=new r(ra.ECI,"ECI",Int32Array.from([0,0,0]),7),r.KANJI=new r(ra.KANJI,"KANJI",Int32Array.from([8,10,12]),8),r.FNC1_FIRST_POSITION=new r(ra.FNC1_FIRST_POSITION,"FNC1_FIRST_POSITION",Int32Array.from([0,0,0]),5),r.FNC1_SECOND_POSITION=new r(ra.FNC1_SECOND_POSITION,"FNC1_SECOND_POSITION",Int32Array.from([0,0,0]),9),r.HANZI=new r(ra.HANZI,"HANZI",Int32Array.from([8,10,12]),13),r}(),IR=function(){function r(){}return r.decode=function(t,e,n,i){var a=new sb(t),o=new er,s=new Array,u=-1,c=-1;try{var l=null,d=!1,h=void 0;do{if(a.available()<4)h=Zr.TERMINATOR;else{var f=a.readBits(4);h=Zr.forBits(f)}switch(h){case Zr.TERMINATOR:break;case Zr.FNC1_FIRST_POSITION:case Zr.FNC1_SECOND_POSITION:d=!0;break;case Zr.STRUCTURED_APPEND:if(a.available()<16)throw new ct;u=a.readBits(8),c=a.readBits(8);break;case Zr.ECI:var g=r.parseECIValue(a);if(l=Sn.getCharacterSetECIByValue(g),l===null)throw new ct;break;case Zr.HANZI:var m=a.readBits(4),p=a.readBits(h.getCharacterCountBits(e));m===r.GB2312_SUBSET&&r.decodeHanziSegment(a,o,p);break;default:var y=a.readBits(h.getCharacterCountBits(e));switch(h){case Zr.NUMERIC:r.decodeNumericSegment(a,o,y);break;case Zr.ALPHANUMERIC:r.decodeAlphanumericSegment(a,o,y,d);break;case Zr.BYTE:r.decodeByteSegment(a,o,y,l,s,i);break;case Zr.KANJI:r.decodeKanjiSegment(a,o,y);break;default:throw new ct}break}}while(h!==Zr.TERMINATOR)}catch{throw new ct}return new ph(t,o.toString(),s.length===0?null:s,n===null?null:n.toString(),u,c)},r.decodeHanziSegment=function(t,e,n){if(n*13>t.available())throw new ct;for(var i=new Uint8Array(2*n),a=0;n>0;){var o=t.readBits(13),s=o/96<<8&4294967295|o%96;s<959?s+=41377:s+=42657,i[a]=s>>8&255,i[a+1]=s&255,a+=2,n--}try{e.append(ta.decode(i,$r.GB2312))}catch(u){throw new ct(u)}},r.decodeKanjiSegment=function(t,e,n){if(n*13>t.available())throw new ct;for(var i=new Uint8Array(2*n),a=0;n>0;){var o=t.readBits(13),s=o/192<<8&4294967295|o%192;s<7936?s+=33088:s+=49472,i[a]=s>>8,i[a+1]=s,a+=2,n--}try{e.append(ta.decode(i,$r.SHIFT_JIS))}catch(u){throw new ct(u)}},r.decodeByteSegment=function(t,e,n,i,a,o){if(8*n>t.available())throw new ct;for(var s=new Uint8Array(n),u=0;u<n;u++)s[u]=t.readBits(8);var c;i===null?c=$r.guessEncoding(s,o):c=i.getName();try{e.append(ta.decode(s,c))}catch(l){throw new ct(l)}a.push(s)},r.toAlphaNumericChar=function(t){if(t>=r.ALPHANUMERIC_CHARS.length)throw new ct;return r.ALPHANUMERIC_CHARS[t]},r.decodeAlphanumericSegment=function(t,e,n,i){for(var a=e.length();n>1;){if(t.available()<11)throw new ct;var o=t.readBits(11);e.append(r.toAlphaNumericChar(Math.floor(o/45))),e.append(r.toAlphaNumericChar(o%45)),n-=2}if(n===1){if(t.available()<6)throw new ct;e.append(r.toAlphaNumericChar(t.readBits(6)))}if(i)for(var s=a;s<e.length();s++)e.charAt(s)==="%"&&(s<e.length()-1&&e.charAt(s+1)==="%"?e.deleteCharAt(s+1):e.setCharAt(s,String.fromCharCode(29)))},r.decodeNumericSegment=function(t,e,n){for(;n>=3;){if(t.available()<10)throw new ct;var i=t.readBits(10);if(i>=1e3)throw new ct;e.append(r.toAlphaNumericChar(Math.floor(i/100))),e.append(r.toAlphaNumericChar(Math.floor(i/10)%10)),e.append(r.toAlphaNumericChar(i%10)),n-=3}if(n===2){if(t.available()<7)throw new ct;var a=t.readBits(7);if(a>=100)throw new ct;e.append(r.toAlphaNumericChar(Math.floor(a/10))),e.append(r.toAlphaNumericChar(a%10))}else if(n===1){if(t.available()<4)throw new ct;var o=t.readBits(4);if(o>=10)throw new ct;e.append(r.toAlphaNumericChar(o))}},r.parseECIValue=function(t){var e=t.readBits(8);if((e&128)==0)return e&127;if((e&192)==128){var n=t.readBits(8);return(e&63)<<8&4294967295|n}if((e&224)==192){var i=t.readBits(16);return(e&31)<<16&4294967295|i}throw new ct},r.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",r.GB2312_SUBSET=1,r}(),fb=function(){function r(t){this.mirrored=t}return r.prototype.isMirrored=function(){return this.mirrored},r.prototype.applyMirroredCorrection=function(t){if(!(!this.mirrored||t===null||t.length<3)){var e=t[0];t[0]=t[2],t[2]=e}},r}(),hb=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},kR=function(){function r(){this.rsDecoder=new gh(mo.QR_CODE_FIELD_256)}return r.prototype.decodeBooleanArray=function(t,e){return this.decodeBitMatrix(po.parseFromBooleanArray(t),e)},r.prototype.decodeBitMatrix=function(t,e){var n=new CR(t),i=null;try{return this.decodeBitMatrixParser(n,e)}catch(o){i=o}try{n.remask(),n.setMirror(!0),n.readVersion(),n.readFormatInformation(),n.mirror();var a=this.decodeBitMatrixParser(n,e);return a.setOther(new fb(!0)),a}catch(o){throw i!==null?i:o}},r.prototype.decodeBitMatrixParser=function(t,e){var n,i,a,o,s=t.readVersion(),u=t.readFormatInformation().getErrorCorrectionLevel(),c=t.readCodewords(),l=OR.getDataBlocks(c,s,u),d=0;try{for(var h=hb(l),f=h.next();!f.done;f=h.next()){var g=f.value;d+=g.getNumDataCodewords()}}catch(M){n={error:M}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}var m=new Uint8Array(d),p=0;try{for(var y=hb(l),v=y.next();!v.done;v=y.next()){var g=v.value,b=g.getCodewords(),A=g.getNumDataCodewords();this.correctErrors(b,A);for(var C=0;C<A;C++)m[p++]=b[C]}}catch(M){a={error:M}}finally{try{v&&!v.done&&(o=y.return)&&o.call(y)}finally{if(a)throw a.error}}return IR.decode(m,s,u,e)},r.prototype.correctErrors=function(t,e){var n=new Int32Array(t);try{this.rsDecoder.decode(n,t.length-e)}catch{throw new bn}for(var i=0;i<e;i++)t[i]=n[i]},r}(),RR=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),FR=function(r){RR(t,r);function t(e,n,i){var a=r.call(this,e,n)||this;return a.estimatedModuleSize=i,a}return t.prototype.aboutEquals=function(e,n,i){if(Math.abs(n-this.getY())<=e&&Math.abs(i-this.getX())<=e){var a=Math.abs(e-this.estimatedModuleSize);return a<=1||a<=this.estimatedModuleSize}return!1},t.prototype.combineEstimate=function(e,n,i){var a=(this.getX()+n)/2,o=(this.getY()+e)/2,s=(this.estimatedModuleSize+i)/2;return new t(a,o,s)},t}(yt),NR=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},MR=function(){function r(t,e,n,i,a,o,s){this.image=t,this.startX=e,this.startY=n,this.width=i,this.height=a,this.moduleSize=o,this.resultPointCallback=s,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}return r.prototype.find=function(){for(var t=this.startX,e=this.height,n=this.width,i=t+n,a=this.startY+e/2,o=new Int32Array(3),s=this.image,u=0;u<e;u++){var c=a+((u&1)==0?Math.floor((u+1)/2):-Math.floor((u+1)/2));o[0]=0,o[1]=0,o[2]=0;for(var l=t;l<i&&!s.get(l,c);)l++;for(var d=0;l<i;){if(s.get(l,c))if(d===1)o[1]++;else if(d===2){if(this.foundPatternCross(o)){var h=this.handlePossibleCenter(o,c,l);if(h!==null)return h}o[0]=o[2],o[1]=1,o[2]=0,d=1}else o[++d]++;else d===1&&d++,o[d]++;l++}if(this.foundPatternCross(o)){var h=this.handlePossibleCenter(o,c,i);if(h!==null)return h}}if(this.possibleCenters.length!==0)return this.possibleCenters[0];throw new ze},r.centerFromEnd=function(t,e){return e-t[2]-t[1]/2},r.prototype.foundPatternCross=function(t){for(var e=this.moduleSize,n=e/2,i=0;i<3;i++)if(Math.abs(e-t[i])>=n)return!1;return!0},r.prototype.crossCheckVertical=function(t,e,n,i){var a=this.image,o=a.getHeight(),s=this.crossCheckStateCount;s[0]=0,s[1]=0,s[2]=0;for(var u=t;u>=0&&a.get(e,u)&&s[1]<=n;)s[1]++,u--;if(u<0||s[1]>n)return NaN;for(;u>=0&&!a.get(e,u)&&s[0]<=n;)s[0]++,u--;if(s[0]>n)return NaN;for(u=t+1;u<o&&a.get(e,u)&&s[1]<=n;)s[1]++,u++;if(u===o||s[1]>n)return NaN;for(;u<o&&!a.get(e,u)&&s[2]<=n;)s[2]++,u++;if(s[2]>n)return NaN;var c=s[0]+s[1]+s[2];return 5*Math.abs(c-i)>=2*i?NaN:this.foundPatternCross(s)?r.centerFromEnd(s,u):NaN},r.prototype.handlePossibleCenter=function(t,e,n){var i,a,o=t[0]+t[1]+t[2],s=r.centerFromEnd(t,n),u=this.crossCheckVertical(e,s,2*t[1],o);if(!isNaN(u)){var c=(t[0]+t[1]+t[2])/3;try{for(var l=NR(this.possibleCenters),d=l.next();!d.done;d=l.next()){var h=d.value;if(h.aboutEquals(c,u,s))return h.combineEstimate(u,s,c)}}catch(g){i={error:g}}finally{try{d&&!d.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}var f=new FR(s,u,c);this.possibleCenters.push(f),this.resultPointCallback!==null&&this.resultPointCallback!==void 0&&this.resultPointCallback.foundPossibleResultPoint(f)}return null},r}(),BR=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),UR=function(r){BR(t,r);function t(e,n,i,a){var o=r.call(this,e,n)||this;return o.estimatedModuleSize=i,o.count=a,a===void 0&&(o.count=1),o}return t.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},t.prototype.getCount=function(){return this.count},t.prototype.aboutEquals=function(e,n,i){if(Math.abs(n-this.getY())<=e&&Math.abs(i-this.getX())<=e){var a=Math.abs(e-this.estimatedModuleSize);return a<=1||a<=this.estimatedModuleSize}return!1},t.prototype.combineEstimate=function(e,n,i){var a=this.count+1,o=(this.count*this.getX()+n)/a,s=(this.count*this.getY()+e)/a,u=(this.count*this.estimatedModuleSize+i)/a;return new t(o,s,u,a)},t}(yt),PR=function(){function r(t){this.bottomLeft=t[0],this.topLeft=t[1],this.topRight=t[2]}return r.prototype.getBottomLeft=function(){return this.bottomLeft},r.prototype.getTopLeft=function(){return this.topLeft},r.prototype.getTopRight=function(){return this.topRight},r}(),Gc=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},LR=function(){function r(t,e){this.image=t,this.resultPointCallback=e,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=e}return r.prototype.getImage=function(){return this.image},r.prototype.getPossibleCenters=function(){return this.possibleCenters},r.prototype.find=function(t){var e=t!=null&&t.get(Hr.TRY_HARDER)!==void 0,n=t!=null&&t.get(Hr.PURE_BARCODE)!==void 0,i=this.image,a=i.getHeight(),o=i.getWidth(),s=Math.floor(3*a/(4*r.MAX_MODULES));(s<r.MIN_SKIP||e)&&(s=r.MIN_SKIP);for(var u=!1,c=new Int32Array(5),l=s-1;l<a&&!u;l+=s){c[0]=0,c[1]=0,c[2]=0,c[3]=0,c[4]=0;for(var d=0,h=0;h<o;h++)if(i.get(h,l))(d&1)==1&&d++,c[d]++;else if((d&1)==0)if(d===4)if(r.foundPatternCross(c)){var f=this.handlePossibleCenter(c,l,h,n);if(f===!0)if(s=2,this.hasSkipped===!0)u=this.haveMultiplyConfirmedCenters();else{var g=this.findRowSkip();g>c[2]&&(l+=g-c[2]-s,h=o-1)}else{c[0]=c[2],c[1]=c[3],c[2]=c[4],c[3]=1,c[4]=0,d=3;continue}d=0,c[0]=0,c[1]=0,c[2]=0,c[3]=0,c[4]=0}else c[0]=c[2],c[1]=c[3],c[2]=c[4],c[3]=1,c[4]=0,d=3;else c[++d]++;else c[d]++;if(r.foundPatternCross(c)){var f=this.handlePossibleCenter(c,l,o,n);f===!0&&(s=c[0],this.hasSkipped&&(u=this.haveMultiplyConfirmedCenters()))}}var m=this.selectBestPatterns();return yt.orderBestPatterns(m),new PR(m)},r.centerFromEnd=function(t,e){return e-t[4]-t[3]-t[2]/2},r.foundPatternCross=function(t){for(var e=0,n=0;n<5;n++){var i=t[n];if(i===0)return!1;e+=i}if(e<7)return!1;var a=e/7,o=a/2;return Math.abs(a-t[0])<o&&Math.abs(a-t[1])<o&&Math.abs(3*a-t[2])<3*o&&Math.abs(a-t[3])<o&&Math.abs(a-t[4])<o},r.prototype.getCrossCheckStateCount=function(){var t=this.crossCheckStateCount;return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t},r.prototype.crossCheckDiagonal=function(t,e,n,i){for(var a=this.getCrossCheckStateCount(),o=0,s=this.image;t>=o&&e>=o&&s.get(e-o,t-o);)a[2]++,o++;if(t<o||e<o)return!1;for(;t>=o&&e>=o&&!s.get(e-o,t-o)&&a[1]<=n;)a[1]++,o++;if(t<o||e<o||a[1]>n)return!1;for(;t>=o&&e>=o&&s.get(e-o,t-o)&&a[0]<=n;)a[0]++,o++;if(a[0]>n)return!1;var u=s.getHeight(),c=s.getWidth();for(o=1;t+o<u&&e+o<c&&s.get(e+o,t+o);)a[2]++,o++;if(t+o>=u||e+o>=c)return!1;for(;t+o<u&&e+o<c&&!s.get(e+o,t+o)&&a[3]<n;)a[3]++,o++;if(t+o>=u||e+o>=c||a[3]>=n)return!1;for(;t+o<u&&e+o<c&&s.get(e+o,t+o)&&a[4]<n;)a[4]++,o++;if(a[4]>=n)return!1;var l=a[0]+a[1]+a[2]+a[3]+a[4];return Math.abs(l-i)<2*i&&r.foundPatternCross(a)},r.prototype.crossCheckVertical=function(t,e,n,i){for(var a=this.image,o=a.getHeight(),s=this.getCrossCheckStateCount(),u=t;u>=0&&a.get(e,u);)s[2]++,u--;if(u<0)return NaN;for(;u>=0&&!a.get(e,u)&&s[1]<=n;)s[1]++,u--;if(u<0||s[1]>n)return NaN;for(;u>=0&&a.get(e,u)&&s[0]<=n;)s[0]++,u--;if(s[0]>n)return NaN;for(u=t+1;u<o&&a.get(e,u);)s[2]++,u++;if(u===o)return NaN;for(;u<o&&!a.get(e,u)&&s[3]<n;)s[3]++,u++;if(u===o||s[3]>=n)return NaN;for(;u<o&&a.get(e,u)&&s[4]<n;)s[4]++,u++;if(s[4]>=n)return NaN;var c=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(c-i)>=2*i?NaN:r.foundPatternCross(s)?r.centerFromEnd(s,u):NaN},r.prototype.crossCheckHorizontal=function(t,e,n,i){for(var a=this.image,o=a.getWidth(),s=this.getCrossCheckStateCount(),u=t;u>=0&&a.get(u,e);)s[2]++,u--;if(u<0)return NaN;for(;u>=0&&!a.get(u,e)&&s[1]<=n;)s[1]++,u--;if(u<0||s[1]>n)return NaN;for(;u>=0&&a.get(u,e)&&s[0]<=n;)s[0]++,u--;if(s[0]>n)return NaN;for(u=t+1;u<o&&a.get(u,e);)s[2]++,u++;if(u===o)return NaN;for(;u<o&&!a.get(u,e)&&s[3]<n;)s[3]++,u++;if(u===o||s[3]>=n)return NaN;for(;u<o&&a.get(u,e)&&s[4]<n;)s[4]++,u++;if(s[4]>=n)return NaN;var c=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(c-i)>=i?NaN:r.foundPatternCross(s)?r.centerFromEnd(s,u):NaN},r.prototype.handlePossibleCenter=function(t,e,n,i){var a=t[0]+t[1]+t[2]+t[3]+t[4],o=r.centerFromEnd(t,n),s=this.crossCheckVertical(e,Math.floor(o),t[2],a);if(!isNaN(s)&&(o=this.crossCheckHorizontal(Math.floor(o),Math.floor(s),t[2],a),!isNaN(o)&&(!i||this.crossCheckDiagonal(Math.floor(s),Math.floor(o),t[2],a)))){for(var u=a/7,c=!1,l=this.possibleCenters,d=0,h=l.length;d<h;d++){var f=l[d];if(f.aboutEquals(u,s,o)){l[d]=f.combineEstimate(s,o,u),c=!0;break}}if(!c){var g=new UR(o,s,u);l.push(g),this.resultPointCallback!==null&&this.resultPointCallback!==void 0&&this.resultPointCallback.foundPossibleResultPoint(g)}return!0}return!1},r.prototype.findRowSkip=function(){var t,e,n=this.possibleCenters.length;if(n<=1)return 0;var i=null;try{for(var a=Gc(this.possibleCenters),o=a.next();!o.done;o=a.next()){var s=o.value;if(s.getCount()>=r.CENTER_QUORUM)if(i==null)i=s;else return this.hasSkipped=!0,Math.floor((Math.abs(i.getX()-s.getX())-Math.abs(i.getY()-s.getY()))/2)}}catch(u){t={error:u}}finally{try{o&&!o.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}return 0},r.prototype.haveMultiplyConfirmedCenters=function(){var t,e,n,i,a=0,o=0,s=this.possibleCenters.length;try{for(var u=Gc(this.possibleCenters),c=u.next();!c.done;c=u.next()){var l=c.value;l.getCount()>=r.CENTER_QUORUM&&(a++,o+=l.getEstimatedModuleSize())}}catch(m){t={error:m}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}if(a<3)return!1;var d=o/s,h=0;try{for(var f=Gc(this.possibleCenters),g=f.next();!g.done;g=f.next()){var l=g.value;h+=Math.abs(l.getEstimatedModuleSize()-d)}}catch(m){n={error:m}}finally{try{g&&!g.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}return h<=.05*o},r.prototype.selectBestPatterns=function(){var t,e,n,i,a=this.possibleCenters.length;if(a<3)throw new ze;var o=this.possibleCenters,s;if(a>3){var u=0,c=0;try{for(var l=Gc(this.possibleCenters),d=l.next();!d.done;d=l.next()){var h=d.value,f=h.getEstimatedModuleSize();u+=f,c+=f*f}}catch(C){t={error:C}}finally{try{d&&!d.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}s=u/a;var g=Math.sqrt(c/a-s*s);o.sort(function(C,M){var z=Math.abs(M.getEstimatedModuleSize()-s),W=Math.abs(C.getEstimatedModuleSize()-s);return z<W?-1:z>W?1:0});for(var m=Math.max(.2*s,g),p=0;p<o.length&&o.length>3;p++){var y=o[p];Math.abs(y.getEstimatedModuleSize()-s)>m&&(o.splice(p,1),p--)}}if(o.length>3){var u=0;try{for(var v=Gc(o),b=v.next();!b.done;b=v.next()){var A=b.value;u+=A.getEstimatedModuleSize()}}catch(M){n={error:M}}finally{try{b&&!b.done&&(i=v.return)&&i.call(v)}finally{if(n)throw n.error}}s=u/o.length,o.sort(function(M,z){if(z.getCount()===M.getCount()){var W=Math.abs(z.getEstimatedModuleSize()-s),U=Math.abs(M.getEstimatedModuleSize()-s);return W<U?1:W>U?-1:0}else return z.getCount()-M.getCount()}),o.splice(3)}return[o[0],o[1],o[2]]},r.CENTER_QUORUM=2,r.MIN_SKIP=3,r.MAX_MODULES=57,r}(),jR=function(){function r(t){this.image=t}return r.prototype.getImage=function(){return this.image},r.prototype.getResultPointCallback=function(){return this.resultPointCallback},r.prototype.detect=function(t){this.resultPointCallback=t==null?null:t.get(Hr.NEED_RESULT_POINT_CALLBACK);var e=new LR(this.image,this.resultPointCallback),n=e.find(t);return this.processFinderPatternInfo(n)},r.prototype.processFinderPatternInfo=function(t){var e=t.getTopLeft(),n=t.getTopRight(),i=t.getBottomLeft(),a=this.calculateModuleSize(e,n,i);if(a<1)throw new ze("No pattern found in proccess finder.");var o=r.computeDimension(e,n,i,a),s=ks.getProvisionalVersionForDimension(o),u=s.getDimensionForVersion()-7,c=null;if(s.getAlignmentPatternCenters().length>0)for(var l=n.getX()-e.getX()+i.getX(),d=n.getY()-e.getY()+i.getY(),h=1-3/u,f=Math.floor(e.getX()+h*(l-e.getX())),g=Math.floor(e.getY()+h*(d-e.getY())),m=4;m<=16;m<<=1)try{c=this.findAlignmentInRegion(a,f,g,m);break}catch(b){if(!(b instanceof ze))throw b}var p=r.createTransform(e,n,i,c,o),y=r.sampleGrid(this.image,p,o),v;return c===null?v=[i,e,n]:v=[i,e,n,c],new M0(y,v)},r.createTransform=function(t,e,n,i,a){var o=a-3.5,s,u,c,l;return i!==null?(s=i.getX(),u=i.getY(),c=o-3,l=c):(s=e.getX()-t.getX()+n.getX(),u=e.getY()-t.getY()+n.getY(),c=o,l=o),Hy.quadrilateralToQuadrilateral(3.5,3.5,o,3.5,c,l,3.5,o,t.getX(),t.getY(),e.getX(),e.getY(),s,u,n.getX(),n.getY())},r.sampleGrid=function(t,e,n){var i=U0.getInstance();return i.sampleGridWithTransform(t,n,n,e)},r.computeDimension=function(t,e,n,i){var a=yr.round(yt.distance(t,e)/i),o=yr.round(yt.distance(t,n)/i),s=Math.floor((a+o)/2)+7;switch(s&3){case 0:s++;break;case 2:s--;break;case 3:throw new ze("Dimensions could be not found.")}return s},r.prototype.calculateModuleSize=function(t,e,n){return(this.calculateModuleSizeOneWay(t,e)+this.calculateModuleSizeOneWay(t,n))/2},r.prototype.calculateModuleSizeOneWay=function(t,e){var n=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(e.getX()),Math.floor(e.getY())),i=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(t.getX()),Math.floor(t.getY()));return isNaN(n)?i/7:isNaN(i)?n/7:(n+i)/14},r.prototype.sizeOfBlackWhiteBlackRunBothWays=function(t,e,n,i){var a=this.sizeOfBlackWhiteBlackRun(t,e,n,i),o=1,s=t-(n-t);s<0?(o=t/(t-s),s=0):s>=this.image.getWidth()&&(o=(this.image.getWidth()-1-t)/(s-t),s=this.image.getWidth()-1);var u=Math.floor(e-(i-e)*o);return o=1,u<0?(o=e/(e-u),u=0):u>=this.image.getHeight()&&(o=(this.image.getHeight()-1-e)/(u-e),u=this.image.getHeight()-1),s=Math.floor(t+(s-t)*o),a+=this.sizeOfBlackWhiteBlackRun(t,e,s,u),a-1},r.prototype.sizeOfBlackWhiteBlackRun=function(t,e,n,i){var a=Math.abs(i-e)>Math.abs(n-t);if(a){var o=t;t=e,e=o,o=n,n=i,i=o}for(var s=Math.abs(n-t),u=Math.abs(i-e),c=-s/2,l=t<n?1:-1,d=e<i?1:-1,h=0,f=n+l,g=t,m=e;g!==f;g+=l){var p=a?m:g,y=a?g:m;if(h===1===this.image.get(p,y)){if(h===2)return yr.distance(g,m,t,e);h++}if(c+=u,c>0){if(m===i)break;m+=d,c-=s}}return h===2?yr.distance(n+l,i,t,e):NaN},r.prototype.findAlignmentInRegion=function(t,e,n,i){var a=Math.floor(i*t),o=Math.max(0,e-a),s=Math.min(this.image.getWidth()-1,e+a);if(s-o<t*3)throw new ze("Alignment top exceeds estimated module size.");var u=Math.max(0,n-a),c=Math.min(this.image.getHeight()-1,n+a);if(c-u<t*3)throw new ze("Alignment bottom exceeds estimated module size.");var l=new MR(this.image,o,u,s-o,c-u,t,this.resultPointCallback);return l.find()},r}(),Eh=function(){function r(){this.decoder=new kR}return r.prototype.getDecoder=function(){return this.decoder},r.prototype.decode=function(t,e){var n,i;if(e!=null&&e.get(Hr.PURE_BARCODE)!==void 0){var a=r.extractPureBits(t.getBlackMatrix());n=this.decoder.decodeBitMatrix(a,e),i=r.NO_POINTS}else{var o=new jR(t.getBlackMatrix()).detect(e);n=this.decoder.decodeBitMatrix(o.getBits(),e),i=o.getPoints()}n.getOther()instanceof fb&&n.getOther().applyMirroredCorrection(i);var s=new Yn(n.getText(),n.getRawBytes(),void 0,i,It.QR_CODE,void 0),u=n.getByteSegments();u!==null&&s.putMetadata(zn.BYTE_SEGMENTS,u);var c=n.getECLevel();return c!==null&&s.putMetadata(zn.ERROR_CORRECTION_LEVEL,c),n.hasStructuredAppend()&&(s.putMetadata(zn.STRUCTURED_APPEND_SEQUENCE,n.getStructuredAppendSequenceNumber()),s.putMetadata(zn.STRUCTURED_APPEND_PARITY,n.getStructuredAppendParity())),s},r.prototype.reset=function(){},r.extractPureBits=function(t){var e=t.getTopLeftOnBit(),n=t.getBottomRightOnBit();if(e===null||n===null)throw new ze;var i=this.moduleSize(e,t),a=e[1],o=n[1],s=e[0],u=n[0];if(s>=u||a>=o)throw new ze;if(o-a!=u-s&&(u=s+(o-a),u>=t.getWidth()))throw new ze;var c=Math.round((u-s+1)/i),l=Math.round((o-a+1)/i);if(c<=0||l<=0)throw new ze;if(l!==c)throw new ze;var d=Math.floor(i/2);a+=d,s+=d;var h=s+Math.floor((c-1)*i)-u;if(h>0){if(h>d)throw new ze;s-=h}var f=a+Math.floor((l-1)*i)-o;if(f>0){if(f>d)throw new ze;a-=f}for(var g=new po(c,l),m=0;m<l;m++)for(var p=a+Math.floor(m*i),y=0;y<c;y++)t.get(s+Math.floor(y*i),p)&&g.set(y,m);return g},r.moduleSize=function(t,e){for(var n=e.getHeight(),i=e.getWidth(),a=t[0],o=t[1],s=!0,u=0;a<i&&o<n;){if(s!==e.get(a,o)){if(++u==5)break;s=!s}a++,o++}if(a===i||o===n)throw new ze;return(a-t[0])/7},r.NO_POINTS=new Array,r}(),WR=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},vr=function(){function r(){}return r.prototype.PDF417Common=function(){},r.getBitCountSum=function(t){return yr.sum(t)},r.toIntArray=function(t){var e,n;if(t==null||!t.length)return r.EMPTY_INT_ARRAY;var i=new Int32Array(t.length),a=0;try{for(var o=WR(t),s=o.next();!s.done;s=o.next()){var u=s.value;i[a++]=u}}catch(c){e={error:c}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i},r.getCodeword=function(t){var e=Tn.binarySearch(r.SYMBOL_TABLE,t&262143);return e<0?-1:(r.CODEWORD_TABLE[e]-1)%r.NUMBER_OF_CODEWORDS},r.NUMBER_OF_CODEWORDS=929,r.MAX_CODEWORDS_IN_BARCODE=r.NUMBER_OF_CODEWORDS-1,r.MIN_ROWS_IN_BARCODE=3,r.MAX_ROWS_IN_BARCODE=90,r.MODULES_IN_CODEWORD=17,r.MODULES_IN_STOP_PATTERN=18,r.BARS_IN_MODULE=8,r.EMPTY_INT_ARRAY=new Int32Array([]),r.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),r.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]),r}(),zR=function(){function r(t,e){this.bits=t,this.points=e}return r.prototype.getBits=function(){return this.bits},r.prototype.getPoints=function(){return this.points},r}(),HR=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},$R=function(){function r(){}return r.detectMultiple=function(t,e,n){var i=t.getBlackMatrix(),a=r.detect(n,i);return a.length||(i=i.clone(),i.rotate180(),a=r.detect(n,i)),new zR(i,a)},r.detect=function(t,e){for(var n,i,a=new Array,o=0,s=0,u=!1;o<e.getHeight();){var c=r.findVertices(e,o,s);if(c[0]==null&&c[3]==null){if(!u)break;u=!1,s=0;try{for(var l=(n=void 0,HR(a)),d=l.next();!d.done;d=l.next()){var h=d.value;h[1]!=null&&(o=Math.trunc(Math.max(o,h[1].getY()))),h[3]!=null&&(o=Math.max(o,Math.trunc(h[3].getY())))}}catch(f){n={error:f}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}o+=r.ROW_STEP;continue}if(u=!0,a.push(c),!t)break;c[2]!=null?(s=Math.trunc(c[2].getX()),o=Math.trunc(c[2].getY())):(s=Math.trunc(c[4].getX()),o=Math.trunc(c[4].getY()))}return a},r.findVertices=function(t,e,n){var i=t.getHeight(),a=t.getWidth(),o=new Array(8);return r.copyToResult(o,r.findRowsWithPattern(t,i,a,e,n,r.START_PATTERN),r.INDEXES_START_PATTERN),o[4]!=null&&(n=Math.trunc(o[4].getX()),e=Math.trunc(o[4].getY())),r.copyToResult(o,r.findRowsWithPattern(t,i,a,e,n,r.STOP_PATTERN),r.INDEXES_STOP_PATTERN),o},r.copyToResult=function(t,e,n){for(var i=0;i<n.length;i++)t[n[i]]=e[i]},r.findRowsWithPattern=function(t,e,n,i,a,o){for(var s=new Array(4),u=!1,c=new Int32Array(o.length);i<e;i+=r.ROW_STEP){var l=r.findGuardPattern(t,a,i,n,!1,o,c);if(l!=null){for(;i>0;){var d=r.findGuardPattern(t,a,--i,n,!1,o,c);if(d!=null)l=d;else{i++;break}}s[0]=new yt(l[0],i),s[1]=new yt(l[1],i),u=!0;break}}var h=i+1;if(u){for(var f=0,d=Int32Array.from([Math.trunc(s[0].getX()),Math.trunc(s[1].getX())]);h<e;h++){var l=r.findGuardPattern(t,d[0],h,n,!1,o,c);if(l!=null&&Math.abs(d[0]-l[0])<r.MAX_PATTERN_DRIFT&&Math.abs(d[1]-l[1])<r.MAX_PATTERN_DRIFT)d=l,f=0;else{if(f>r.SKIPPED_ROW_COUNT_MAX)break;f++}}h-=f+1,s[2]=new yt(d[0],h),s[3]=new yt(d[1],h)}return h-i<r.BARCODE_MIN_HEIGHT&&Tn.fill(s,null),s},r.findGuardPattern=function(t,e,n,i,a,o,s){Tn.fillWithin(s,0,s.length,0);for(var u=e,c=0;t.get(u,n)&&u>0&&c++<r.MAX_PIXEL_DRIFT;)u--;for(var l=u,d=0,h=o.length,f=a;l<i;l++){var g=t.get(l,n);if(g!==f)s[d]++;else{if(d===h-1){if(r.patternMatchVariance(s,o,r.MAX_INDIVIDUAL_VARIANCE)<r.MAX_AVG_VARIANCE)return new Int32Array([u,l]);u+=s[0]+s[1],zr.arraycopy(s,2,s,0,d-1),s[d-1]=0,s[d]=0,d--}else d++;s[d]=1,f=!f}}return d===h-1&&r.patternMatchVariance(s,o,r.MAX_INDIVIDUAL_VARIANCE)<r.MAX_AVG_VARIANCE?new Int32Array([u,l-1]):null},r.patternMatchVariance=function(t,e,n){for(var i=t.length,a=0,o=0,s=0;s<i;s++)a+=t[s],o+=e[s];if(a<o)return 1/0;var u=a/o;n*=u;for(var c=0,l=0;l<i;l++){var d=t[l],h=e[l]*u,f=d>h?d-h:h-d;if(f>n)return 1/0;c+=f}return c/a},r.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),r.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),r.MAX_AVG_VARIANCE=.42,r.MAX_INDIVIDUAL_VARIANCE=.8,r.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),r.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),r.MAX_PIXEL_DRIFT=3,r.MAX_PATTERN_DRIFT=5,r.SKIPPED_ROW_COUNT_MAX=25,r.ROW_STEP=5,r.BARCODE_MIN_HEIGHT=10,r}(),VR=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Rs=function(){function r(t,e){if(e.length===0)throw new Ut;this.field=t;var n=e.length;if(n>1&&e[0]===0){for(var i=1;i<n&&e[i]===0;)i++;i===n?this.coefficients=new Int32Array([0]):(this.coefficients=new Int32Array(n-i),zr.arraycopy(e,i,this.coefficients,0,this.coefficients.length))}else this.coefficients=e}return r.prototype.getCoefficients=function(){return this.coefficients},r.prototype.getDegree=function(){return this.coefficients.length-1},r.prototype.isZero=function(){return this.coefficients[0]===0},r.prototype.getCoefficient=function(t){return this.coefficients[this.coefficients.length-1-t]},r.prototype.evaluateAt=function(t){var e,n;if(t===0)return this.getCoefficient(0);if(t===1){var i=0;try{for(var a=VR(this.coefficients),o=a.next();!o.done;o=a.next()){var s=o.value;i=this.field.add(i,s)}}catch(d){e={error:d}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}for(var u=this.coefficients[0],c=this.coefficients.length,l=1;l<c;l++)u=this.field.add(this.field.multiply(t,u),this.coefficients[l]);return u},r.prototype.add=function(t){if(!this.field.equals(t.field))throw new Ut("ModulusPolys do not have same ModulusGF field");if(this.isZero())return t;if(t.isZero())return this;var e=this.coefficients,n=t.coefficients;if(e.length>n.length){var i=e;e=n,n=i}var a=new Int32Array(n.length),o=n.length-e.length;zr.arraycopy(n,0,a,0,o);for(var s=o;s<n.length;s++)a[s]=this.field.add(e[s-o],n[s]);return new r(this.field,a)},r.prototype.subtract=function(t){if(!this.field.equals(t.field))throw new Ut("ModulusPolys do not have same ModulusGF field");return t.isZero()?this:this.add(t.negative())},r.prototype.multiply=function(t){return t instanceof r?this.multiplyOther(t):this.multiplyScalar(t)},r.prototype.multiplyOther=function(t){if(!this.field.equals(t.field))throw new Ut("ModulusPolys do not have same ModulusGF field");if(this.isZero()||t.isZero())return new r(this.field,new Int32Array([0]));for(var e=this.coefficients,n=e.length,i=t.coefficients,a=i.length,o=new Int32Array(n+a-1),s=0;s<n;s++)for(var u=e[s],c=0;c<a;c++)o[s+c]=this.field.add(o[s+c],this.field.multiply(u,i[c]));return new r(this.field,o)},r.prototype.negative=function(){for(var t=this.coefficients.length,e=new Int32Array(t),n=0;n<t;n++)e[n]=this.field.subtract(0,this.coefficients[n]);return new r(this.field,e)},r.prototype.multiplyScalar=function(t){if(t===0)return new r(this.field,new Int32Array([0]));if(t===1)return this;for(var e=this.coefficients.length,n=new Int32Array(e),i=0;i<e;i++)n[i]=this.field.multiply(this.coefficients[i],t);return new r(this.field,n)},r.prototype.multiplyByMonomial=function(t,e){if(t<0)throw new Ut;if(e===0)return new r(this.field,new Int32Array([0]));for(var n=this.coefficients.length,i=new Int32Array(n+t),a=0;a<n;a++)i[a]=this.field.multiply(this.coefficients[a],e);return new r(this.field,i)},r.prototype.toString=function(){for(var t=new er,e=this.getDegree();e>=0;e--){var n=this.getCoefficient(e);n!==0&&(n<0?(t.append(" - "),n=-n):t.length()>0&&t.append(" + "),(e===0||n!==1)&&t.append(n),e!==0&&(e===1?t.append("x"):(t.append("x^"),t.append(e))))}return t.toString()},r}(),qR=function(){function r(){}return r.prototype.add=function(t,e){return(t+e)%this.modulus},r.prototype.subtract=function(t,e){return(this.modulus+t-e)%this.modulus},r.prototype.exp=function(t){return this.expTable[t]},r.prototype.log=function(t){if(t===0)throw new Ut;return this.logTable[t]},r.prototype.inverse=function(t){if(t===0)throw new jy;return this.expTable[this.modulus-this.logTable[t]-1]},r.prototype.multiply=function(t,e){return t===0||e===0?0:this.expTable[(this.logTable[t]+this.logTable[e])%(this.modulus-1)]},r.prototype.getSize=function(){return this.modulus},r.prototype.equals=function(t){return t===this},r}(),GR=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),XR=function(r){GR(t,r);function t(e,n){var i=r.call(this)||this;i.modulus=e,i.expTable=new Int32Array(e),i.logTable=new Int32Array(e);for(var a=1,o=0;o<e;o++)i.expTable[o]=a,a=a*n%e;for(var o=0;o<e-1;o++)i.logTable[i.expTable[o]]=o;return i.zero=new Rs(i,new Int32Array([0])),i.one=new Rs(i,new Int32Array([1])),i}return t.prototype.getZero=function(){return this.zero},t.prototype.getOne=function(){return this.one},t.prototype.buildMonomial=function(e,n){if(e<0)throw new Ut;if(n===0)return this.zero;var i=new Int32Array(e+1);return i[0]=n,new Rs(this,i)},t.PDF417_GF=new t(vr.NUMBER_OF_CODEWORDS,3),t}(qR),KR=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ZR=function(){function r(){this.field=XR.PDF417_GF}return r.prototype.decode=function(t,e,n){for(var i,a,o=new Rs(this.field,t),s=new Int32Array(e),u=!1,c=e;c>0;c--){var l=o.evaluateAt(this.field.exp(c));s[e-c]=l,l!==0&&(u=!0)}if(!u)return 0;var d=this.field.getOne();if(n!=null)try{for(var h=KR(n),f=h.next();!f.done;f=h.next()){var g=f.value,m=this.field.exp(t.length-1-g),p=new Rs(this.field,new Int32Array([this.field.subtract(0,m),1]));d=d.multiply(p)}}catch(W){i={error:W}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}for(var y=new Rs(this.field,s),v=this.runEuclideanAlgorithm(this.field.buildMonomial(e,1),y,e),b=v[0],A=v[1],C=this.findErrorLocations(b),M=this.findErrorMagnitudes(A,b,C),c=0;c<C.length;c++){var z=t.length-1-this.field.log(C[c]);if(z<0)throw bn.getChecksumInstance();t[z]=this.field.subtract(t[z],M[c])}return C.length},r.prototype.runEuclideanAlgorithm=function(t,e,n){if(t.getDegree()<e.getDegree()){var i=t;t=e,e=i}for(var a=t,o=e,s=this.field.getZero(),u=this.field.getOne();o.getDegree()>=Math.round(n/2);){var c=a,l=s;if(a=o,s=u,a.isZero())throw bn.getChecksumInstance();o=c;for(var d=this.field.getZero(),h=a.getCoefficient(a.getDegree()),f=this.field.inverse(h);o.getDegree()>=a.getDegree()&&!o.isZero();){var g=o.getDegree()-a.getDegree(),m=this.field.multiply(o.getCoefficient(o.getDegree()),f);d=d.add(this.field.buildMonomial(g,m)),o=o.subtract(a.multiplyByMonomial(g,m))}u=d.multiply(s).subtract(l).negative()}var p=u.getCoefficient(0);if(p===0)throw bn.getChecksumInstance();var y=this.field.inverse(p),v=u.multiply(y),b=o.multiply(y);return[v,b]},r.prototype.findErrorLocations=function(t){for(var e=t.getDegree(),n=new Int32Array(e),i=0,a=1;a<this.field.getSize()&&i<e;a++)t.evaluateAt(a)===0&&(n[i]=this.field.inverse(a),i++);if(i!==e)throw bn.getChecksumInstance();return n},r.prototype.findErrorMagnitudes=function(t,e,n){for(var i=e.getDegree(),a=new Int32Array(i),o=1;o<=i;o++)a[i-o]=this.field.multiply(o,e.getCoefficient(o));for(var s=new Rs(this.field,a),u=n.length,c=new Int32Array(u),o=0;o<u;o++){var l=this.field.inverse(n[o]),d=this.field.subtract(0,t.evaluateAt(l)),h=this.field.inverse(s.evaluateAt(l));c[o]=this.field.multiply(d,h)}return c},r}(),V0=function(){function r(t,e,n,i,a){t instanceof r?this.constructor_2(t):this.constructor_1(t,e,n,i,a)}return r.prototype.constructor_1=function(t,e,n,i,a){var o=e==null||n==null,s=i==null||a==null;if(o&&s)throw new ze;o?(e=new yt(0,i.getY()),n=new yt(0,a.getY())):s&&(i=new yt(t.getWidth()-1,e.getY()),a=new yt(t.getWidth()-1,n.getY())),this.image=t,this.topLeft=e,this.bottomLeft=n,this.topRight=i,this.bottomRight=a,this.minX=Math.trunc(Math.min(e.getX(),n.getX())),this.maxX=Math.trunc(Math.max(i.getX(),a.getX())),this.minY=Math.trunc(Math.min(e.getY(),i.getY())),this.maxY=Math.trunc(Math.max(n.getY(),a.getY()))},r.prototype.constructor_2=function(t){this.image=t.image,this.topLeft=t.getTopLeft(),this.bottomLeft=t.getBottomLeft(),this.topRight=t.getTopRight(),this.bottomRight=t.getBottomRight(),this.minX=t.getMinX(),this.maxX=t.getMaxX(),this.minY=t.getMinY(),this.maxY=t.getMaxY()},r.merge=function(t,e){return t==null?e:e==null?t:new r(t.image,t.topLeft,t.bottomLeft,e.topRight,e.bottomRight)},r.prototype.addMissingRows=function(t,e,n){var i=this.topLeft,a=this.bottomLeft,o=this.topRight,s=this.bottomRight;if(t>0){var u=n?this.topLeft:this.topRight,c=Math.trunc(u.getY()-t);c<0&&(c=0);var l=new yt(u.getX(),c);n?i=l:o=l}if(e>0){var d=n?this.bottomLeft:this.bottomRight,h=Math.trunc(d.getY()+e);h>=this.image.getHeight()&&(h=this.image.getHeight()-1);var f=new yt(d.getX(),h);n?a=f:s=f}return new r(this.image,i,a,o,s)},r.prototype.getMinX=function(){return this.minX},r.prototype.getMaxX=function(){return this.maxX},r.prototype.getMinY=function(){return this.minY},r.prototype.getMaxY=function(){return this.maxY},r.prototype.getTopLeft=function(){return this.topLeft},r.prototype.getTopRight=function(){return this.topRight},r.prototype.getBottomLeft=function(){return this.bottomLeft},r.prototype.getBottomRight=function(){return this.bottomRight},r}(),YR=function(){function r(t,e,n,i){this.columnCount=t,this.errorCorrectionLevel=i,this.rowCountUpperPart=e,this.rowCountLowerPart=n,this.rowCount=e+n}return r.prototype.getColumnCount=function(){return this.columnCount},r.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},r.prototype.getRowCount=function(){return this.rowCount},r.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},r.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},r}(),q0=function(){function r(){this.buffer=""}return r.form=function(t,e){var n=-1;function i(o,s,u,c,l,d){if(o==="%%")return"%";if(e[++n]!==void 0){o=c?parseInt(c.substr(1)):void 0;var h=l?parseInt(l.substr(1)):void 0,f;switch(d){case"s":f=e[n];break;case"c":f=e[n][0];break;case"f":f=parseFloat(e[n]).toFixed(o);break;case"p":f=parseFloat(e[n]).toPrecision(o);break;case"e":f=parseFloat(e[n]).toExponential(o);break;case"x":f=parseInt(e[n]).toString(h||16);break;case"d":f=parseFloat(parseInt(e[n],h||10).toPrecision(o)).toFixed(0);break}f=typeof f=="object"?JSON.stringify(f):(+f).toString(h);for(var g=parseInt(u),m=u&&u[0]+""=="0"?"0":" ";f.length<g;)f=s!==void 0?f+m:m+f;return f}}var a=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return t.replace(a,i)},r.prototype.format=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];this.buffer+=r.form(t,e)},r.prototype.toString=function(){return this.buffer},r}(),JR=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},db=function(){function r(t){this.boundingBox=new V0(t),this.codewords=new Array(t.getMaxY()-t.getMinY()+1)}return r.prototype.getCodewordNearby=function(t){var e=this.getCodeword(t);if(e!=null)return e;for(var n=1;n<r.MAX_NEARBY_DISTANCE;n++){var i=this.imageRowToCodewordIndex(t)-n;if(i>=0&&(e=this.codewords[i],e!=null)||(i=this.imageRowToCodewordIndex(t)+n,i<this.codewords.length&&(e=this.codewords[i],e!=null)))return e}return null},r.prototype.imageRowToCodewordIndex=function(t){return t-this.boundingBox.getMinY()},r.prototype.setCodeword=function(t,e){this.codewords[this.imageRowToCodewordIndex(t)]=e},r.prototype.getCodeword=function(t){return this.codewords[this.imageRowToCodewordIndex(t)]},r.prototype.getBoundingBox=function(){return this.boundingBox},r.prototype.getCodewords=function(){return this.codewords},r.prototype.toString=function(){var t,e,n=new q0,i=0;try{for(var a=JR(this.codewords),o=a.next();!o.done;o=a.next()){var s=o.value;if(s==null){n.format("%3d: | %n",i++);continue}n.format("%3d: %3d|%3d%n",i++,s.getRowNumber(),s.getValue())}}catch(u){t={error:u}}finally{try{o&&!o.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}return n.toString()},r.MAX_NEARBY_DISTANCE=5,r}(),QR=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},eF=globalThis&&globalThis.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return a},Xc=function(){function r(){this.values=new Map}return r.prototype.setValue=function(t){t=Math.trunc(t);var e=this.values.get(t);e==null&&(e=0),e++,this.values.set(t,e)},r.prototype.getValue=function(){var t,e,n=-1,i=new Array,a=function(d,h){var f={getKey:function(){return d},getValue:function(){return h}};f.getValue()>n?(n=f.getValue(),i=[],i.push(f.getKey())):f.getValue()===n&&i.push(f.getKey())};try{for(var o=QR(this.values.entries()),s=o.next();!s.done;s=o.next()){var u=eF(s.value,2),c=u[0],l=u[1];a(c,l)}}catch(d){t={error:d}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return vr.toIntArray(i)},r.prototype.getConfidence=function(t){return this.values.get(t)},r}(),tF=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),G0=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},pb=function(r){tF(t,r);function t(e,n){var i=r.call(this,e)||this;return i._isLeft=n,i}return t.prototype.setRowNumbers=function(){var e,n;try{for(var i=G0(this.getCodewords()),a=i.next();!a.done;a=i.next()){var o=a.value;o!=null&&o.setRowNumberAsRowIndicatorColumn()}}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},t.prototype.adjustCompleteIndicatorColumnRowNumbers=function(e){var n=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(n,e);for(var i=this.getBoundingBox(),a=this._isLeft?i.getTopLeft():i.getTopRight(),o=this._isLeft?i.getBottomLeft():i.getBottomRight(),s=this.imageRowToCodewordIndex(Math.trunc(a.getY())),u=this.imageRowToCodewordIndex(Math.trunc(o.getY())),c=-1,l=1,d=0,h=s;h<u;h++)if(n[h]!=null){var f=n[h],g=f.getRowNumber()-c;if(g===0)d++;else if(g===1)l=Math.max(l,d),d=1,c=f.getRowNumber();else if(g<0||f.getRowNumber()>=e.getRowCount()||g>h)n[h]=null;else{var m=void 0;l>2?m=(l-2)*g:m=g;for(var p=m>=h,y=1;y<=m&&!p;y++)p=n[h-y]!=null;p?n[h]=null:(c=f.getRowNumber(),d=1)}}},t.prototype.getRowHeights=function(){var e,n,i=this.getBarcodeMetadata();if(i==null)return null;this.adjustIncompleteIndicatorColumnRowNumbers(i);var a=new Int32Array(i.getRowCount());try{for(var o=G0(this.getCodewords()),s=o.next();!s.done;s=o.next()){var u=s.value;if(u!=null){var c=u.getRowNumber();if(c>=a.length)continue;a[c]++}}}catch(l){e={error:l}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return a},t.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(e){for(var n=this.getBoundingBox(),i=this._isLeft?n.getTopLeft():n.getTopRight(),a=this._isLeft?n.getBottomLeft():n.getBottomRight(),o=this.imageRowToCodewordIndex(Math.trunc(i.getY())),s=this.imageRowToCodewordIndex(Math.trunc(a.getY())),u=this.getCodewords(),c=-1,l=o;l<s;l++)if(u[l]!=null){var d=u[l];d.setRowNumberAsRowIndicatorColumn();var h=d.getRowNumber()-c;h===0||(h===1?c=d.getRowNumber():d.getRowNumber()>=e.getRowCount()?u[l]=null:c=d.getRowNumber())}},t.prototype.getBarcodeMetadata=function(){var e,n,i=this.getCodewords(),a=new Xc,o=new Xc,s=new Xc,u=new Xc;try{for(var c=G0(i),l=c.next();!l.done;l=c.next()){var d=l.value;if(d!=null){d.setRowNumberAsRowIndicatorColumn();var h=d.getValue()%30,f=d.getRowNumber();switch(this._isLeft||(f+=2),f%3){case 0:o.setValue(h*3+1);break;case 1:u.setValue(h/3),s.setValue(h%3);break;case 2:a.setValue(h+1);break}}}}catch(m){e={error:m}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}if(a.getValue().length===0||o.getValue().length===0||s.getValue().length===0||u.getValue().length===0||a.getValue()[0]<1||o.getValue()[0]+s.getValue()[0]<vr.MIN_ROWS_IN_BARCODE||o.getValue()[0]+s.getValue()[0]>vr.MAX_ROWS_IN_BARCODE)return null;var g=new YR(a.getValue()[0],o.getValue()[0],s.getValue()[0],u.getValue()[0]);return this.removeIncorrectCodewords(i,g),g},t.prototype.removeIncorrectCodewords=function(e,n){for(var i=0;i<e.length;i++){var a=e[i];if(e[i]!=null){var o=a.getValue()%30,s=a.getRowNumber();if(s>n.getRowCount()){e[i]=null;continue}switch(this._isLeft||(s+=2),s%3){case 0:o*3+1!==n.getRowCountUpperPart()&&(e[i]=null);break;case 1:(Math.trunc(o/3)!==n.getErrorCorrectionLevel()||o%3!==n.getRowCountLowerPart())&&(e[i]=null);break;case 2:o+1!==n.getColumnCount()&&(e[i]=null);break}}}},t.prototype.isLeft=function(){return this._isLeft},t.prototype.toString=function(){return"IsLeft: "+this._isLeft+`
`+r.prototype.toString.call(this)},t}(db),rF=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},nF=function(){function r(t,e){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=t,this.barcodeColumnCount=t.getColumnCount(),this.boundingBox=e,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return r.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var t=vr.MAX_CODEWORDS_IN_BARCODE,e;do e=t,t=this.adjustRowNumbersAndGetCount();while(t>0&&t<e);return this.detectionResultColumns},r.prototype.adjustIndicatorColumnRowNumbers=function(t){t!=null&&t.adjustCompleteIndicatorColumnRowNumbers(this.barcodeMetadata)},r.prototype.adjustRowNumbersAndGetCount=function(){var t=this.adjustRowNumbersByRow();if(t===0)return 0;for(var e=1;e<this.barcodeColumnCount+1;e++)for(var n=this.detectionResultColumns[e].getCodewords(),i=0;i<n.length;i++)n[i]!=null&&(n[i].hasValidRowNumber()||this.adjustRowNumbers(e,i,n));return t},r.prototype.adjustRowNumbersByRow=function(){this.adjustRowNumbersFromBothRI();var t=this.adjustRowNumbersFromLRI();return t+this.adjustRowNumbersFromRRI()},r.prototype.adjustRowNumbersFromBothRI=function(){if(!(this.detectionResultColumns[0]==null||this.detectionResultColumns[this.barcodeColumnCount+1]==null)){for(var t=this.detectionResultColumns[0].getCodewords(),e=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),n=0;n<t.length;n++)if(t[n]!=null&&e[n]!=null&&t[n].getRowNumber()===e[n].getRowNumber())for(var i=1;i<=this.barcodeColumnCount;i++){var a=this.detectionResultColumns[i].getCodewords()[n];a!=null&&(a.setRowNumber(t[n].getRowNumber()),a.hasValidRowNumber()||(this.detectionResultColumns[i].getCodewords()[n]=null))}}},r.prototype.adjustRowNumbersFromRRI=function(){if(this.detectionResultColumns[this.barcodeColumnCount+1]==null)return 0;for(var t=0,e=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),n=0;n<e.length;n++)if(e[n]!=null)for(var i=e[n].getRowNumber(),a=0,o=this.barcodeColumnCount+1;o>0&&a<this.ADJUST_ROW_NUMBER_SKIP;o--){var s=this.detectionResultColumns[o].getCodewords()[n];s!=null&&(a=r.adjustRowNumberIfValid(i,a,s),s.hasValidRowNumber()||t++)}return t},r.prototype.adjustRowNumbersFromLRI=function(){if(this.detectionResultColumns[0]==null)return 0;for(var t=0,e=this.detectionResultColumns[0].getCodewords(),n=0;n<e.length;n++)if(e[n]!=null)for(var i=e[n].getRowNumber(),a=0,o=1;o<this.barcodeColumnCount+1&&a<this.ADJUST_ROW_NUMBER_SKIP;o++){var s=this.detectionResultColumns[o].getCodewords()[n];s!=null&&(a=r.adjustRowNumberIfValid(i,a,s),s.hasValidRowNumber()||t++)}return t},r.adjustRowNumberIfValid=function(t,e,n){return n==null||n.hasValidRowNumber()||(n.isValidRowNumber(t)?(n.setRowNumber(t),e=0):++e),e},r.prototype.adjustRowNumbers=function(t,e,n){var i,a;if(this.detectionResultColumns[t-1]!=null){var o=n[e],s=this.detectionResultColumns[t-1].getCodewords(),u=s;this.detectionResultColumns[t+1]!=null&&(u=this.detectionResultColumns[t+1].getCodewords());var c=new Array(14);c[2]=s[e],c[3]=u[e],e>0&&(c[0]=n[e-1],c[4]=s[e-1],c[5]=u[e-1]),e>1&&(c[8]=n[e-2],c[10]=s[e-2],c[11]=u[e-2]),e<n.length-1&&(c[1]=n[e+1],c[6]=s[e+1],c[7]=u[e+1]),e<n.length-2&&(c[9]=n[e+2],c[12]=s[e+2],c[13]=u[e+2]);try{for(var l=rF(c),d=l.next();!d.done;d=l.next()){var h=d.value;if(r.adjustRowNumber(o,h))return}}catch(f){i={error:f}}finally{try{d&&!d.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}}},r.adjustRowNumber=function(t,e){return e==null?!1:e.hasValidRowNumber()&&e.getBucket()===t.getBucket()?(t.setRowNumber(e.getRowNumber()),!0):!1},r.prototype.getBarcodeColumnCount=function(){return this.barcodeColumnCount},r.prototype.getBarcodeRowCount=function(){return this.barcodeMetadata.getRowCount()},r.prototype.getBarcodeECLevel=function(){return this.barcodeMetadata.getErrorCorrectionLevel()},r.prototype.setBoundingBox=function(t){this.boundingBox=t},r.prototype.getBoundingBox=function(){return this.boundingBox},r.prototype.setDetectionResultColumn=function(t,e){this.detectionResultColumns[t]=e},r.prototype.getDetectionResultColumn=function(t){return this.detectionResultColumns[t]},r.prototype.toString=function(){var t=this.detectionResultColumns[0];t==null&&(t=this.detectionResultColumns[this.barcodeColumnCount+1]);for(var e=new q0,n=0;n<t.getCodewords().length;n++){e.format("CW %3d:",n);for(var i=0;i<this.barcodeColumnCount+2;i++){if(this.detectionResultColumns[i]==null){e.format(" | ");continue}var a=this.detectionResultColumns[i].getCodewords()[n];if(a==null){e.format(" | ");continue}e.format(" %3d|%3d",a.getRowNumber(),a.getValue())}e.format("%n")}return e.toString()},r}(),iF=function(){function r(t,e,n,i){this.rowNumber=r.BARCODE_ROW_UNKNOWN,this.startX=Math.trunc(t),this.endX=Math.trunc(e),this.bucket=Math.trunc(n),this.value=Math.trunc(i)}return r.prototype.hasValidRowNumber=function(){return this.isValidRowNumber(this.rowNumber)},r.prototype.isValidRowNumber=function(t){return t!==r.BARCODE_ROW_UNKNOWN&&this.bucket===t%3*3},r.prototype.setRowNumberAsRowIndicatorColumn=function(){this.rowNumber=Math.trunc(Math.trunc(this.value/30)*3+Math.trunc(this.bucket/3))},r.prototype.getWidth=function(){return this.endX-this.startX},r.prototype.getStartX=function(){return this.startX},r.prototype.getEndX=function(){return this.endX},r.prototype.getBucket=function(){return this.bucket},r.prototype.getValue=function(){return this.value},r.prototype.getRowNumber=function(){return this.rowNumber},r.prototype.setRowNumber=function(t){this.rowNumber=t},r.prototype.toString=function(){return this.rowNumber+"|"+this.value},r.BARCODE_ROW_UNKNOWN=-1,r}(),aF=function(){function r(){}return r.initialize=function(){for(var t=0;t<vr.SYMBOL_TABLE.length;t++)for(var e=vr.SYMBOL_TABLE[t],n=e&1,i=0;i<vr.BARS_IN_MODULE;i++){for(var a=0;(e&1)===n;)a+=1,e>>=1;n=e&1,r.RATIOS_TABLE[t]||(r.RATIOS_TABLE[t]=new Array(vr.BARS_IN_MODULE)),r.RATIOS_TABLE[t][vr.BARS_IN_MODULE-i-1]=Math.fround(a/vr.MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},r.getDecodedValue=function(t){var e=r.getDecodedCodewordValue(r.sampleBitCounts(t));return e!==-1?e:r.getClosestDecodedValue(t)},r.sampleBitCounts=function(t){for(var e=yr.sum(t),n=new Int32Array(vr.BARS_IN_MODULE),i=0,a=0,o=0;o<vr.MODULES_IN_CODEWORD;o++){var s=e/(2*vr.MODULES_IN_CODEWORD)+o*e/vr.MODULES_IN_CODEWORD;a+t[i]<=s&&(a+=t[i],i++),n[i]++}return n},r.getDecodedCodewordValue=function(t){var e=r.getBitValue(t);return vr.getCodeword(e)===-1?-1:e},r.getBitValue=function(t){for(var e=0,n=0;n<t.length;n++)for(var i=0;i<t[n];i++)e=e<<1|(n%2==0?1:0);return Math.trunc(e)},r.getClosestDecodedValue=function(t){var e=yr.sum(t),n=new Array(vr.BARS_IN_MODULE);if(e>1)for(var i=0;i<n.length;i++)n[i]=Math.fround(t[i]/e);var a=N0.MAX_VALUE,o=-1;this.bSymbolTableReady||r.initialize();for(var s=0;s<r.RATIOS_TABLE.length;s++){for(var u=0,c=r.RATIOS_TABLE[s],l=0;l<vr.BARS_IN_MODULE;l++){var d=Math.fround(c[l]-n[l]);if(u+=Math.fround(d*d),u>=a)break}u<a&&(a=u,o=vr.SYMBOL_TABLE[s])}return o},r.bSymbolTableReady=!1,r.RATIOS_TABLE=new Array(vr.SYMBOL_TABLE.length).map(function(t){return new Array(vr.BARS_IN_MODULE)}),r}(),oF=function(){function r(){this.segmentCount=-1,this.fileSize=-1,this.timestamp=-1,this.checksum=-1}return r.prototype.getSegmentIndex=function(){return this.segmentIndex},r.prototype.setSegmentIndex=function(t){this.segmentIndex=t},r.prototype.getFileId=function(){return this.fileId},r.prototype.setFileId=function(t){this.fileId=t},r.prototype.getOptionalData=function(){return this.optionalData},r.prototype.setOptionalData=function(t){this.optionalData=t},r.prototype.isLastSegment=function(){return this.lastSegment},r.prototype.setLastSegment=function(t){this.lastSegment=t},r.prototype.getSegmentCount=function(){return this.segmentCount},r.prototype.setSegmentCount=function(t){this.segmentCount=t},r.prototype.getSender=function(){return this.sender||null},r.prototype.setSender=function(t){this.sender=t},r.prototype.getAddressee=function(){return this.addressee||null},r.prototype.setAddressee=function(t){this.addressee=t},r.prototype.getFileName=function(){return this.fileName},r.prototype.setFileName=function(t){this.fileName=t},r.prototype.getFileSize=function(){return this.fileSize},r.prototype.setFileSize=function(t){this.fileSize=t},r.prototype.getChecksum=function(){return this.checksum},r.prototype.setChecksum=function(t){this.checksum=t},r.prototype.getTimestamp=function(){return this.timestamp},r.prototype.setTimestamp=function(t){this.timestamp=t},r}(),mb=function(){function r(){}return r.parseLong=function(t,e){return e===void 0&&(e=void 0),parseInt(t,e)},r}(),sF=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),uF=function(r){sF(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.kind="NullPointerException",t}(Ai),cF=function(){function r(){}return r.prototype.writeBytes=function(t){this.writeBytesOffset(t,0,t.length)},r.prototype.writeBytesOffset=function(t,e,n){if(t==null)throw new uF;if(e<0||e>t.length||n<0||e+n>t.length||e+n<0)throw new I0;if(n===0)return;for(var i=0;i<n;i++)this.write(t[e+i])},r.prototype.flush=function(){},r.prototype.close=function(){},r}(),lF=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),fF=function(r){lF(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Ai),hF=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),dF=function(r){hF(t,r);function t(e){e===void 0&&(e=32);var n=r.call(this)||this;if(n.count=0,e<0)throw new Ut("Negative initial size: "+e);return n.buf=new Uint8Array(e),n}return t.prototype.ensureCapacity=function(e){e-this.buf.length>0&&this.grow(e)},t.prototype.grow=function(e){var n=this.buf.length,i=n<<1;if(i-e<0&&(i=e),i<0){if(e<0)throw new fF;i=ln.MAX_VALUE}this.buf=Tn.copyOfUint8Array(this.buf,i)},t.prototype.write=function(e){this.ensureCapacity(this.count+1),this.buf[this.count]=e,this.count+=1},t.prototype.writeBytesOffset=function(e,n,i){if(n<0||n>e.length||i<0||n+i-e.length>0)throw new I0;this.ensureCapacity(this.count+i),zr.arraycopy(e,n,this.buf,this.count,i),this.count+=i},t.prototype.writeTo=function(e){e.writeBytesOffset(this.buf,0,this.count)},t.prototype.reset=function(){this.count=0},t.prototype.toByteArray=function(){return Tn.copyOfUint8Array(this.buf,this.count)},t.prototype.size=function(){return this.count},t.prototype.toString=function(e){return e?typeof e=="string"?this.toString_string(e):this.toString_number(e):this.toString_void()},t.prototype.toString_void=function(){return new String(this.buf).toString()},t.prototype.toString_string=function(e){return new String(this.buf).toString()},t.prototype.toString_number=function(e){return new String(this.buf).toString()},t.prototype.close=function(){},t}(cF),Mr;(function(r){r[r.ALPHA=0]="ALPHA",r[r.LOWER=1]="LOWER",r[r.MIXED=2]="MIXED",r[r.PUNCT=3]="PUNCT",r[r.ALPHA_SHIFT=4]="ALPHA_SHIFT",r[r.PUNCT_SHIFT=5]="PUNCT_SHIFT"})(Mr||(Mr={}));function gb(){if(typeof window!="undefined")return window.BigInt||null;if(typeof global!="undefined")return global.BigInt||null;if(typeof self!="undefined")return self.BigInt||null;throw new Error("Can't search globals for BigInt!")}var Ah;function Yo(r){if(typeof Ah=="undefined"&&(Ah=gb()),Ah===null)throw new Error("BigInt is not supported!");return Ah(r)}function pF(){var r=[];r[0]=Yo(1);var t=Yo(900);r[1]=t;for(var e=2;e<16;e++)r[e]=r[e-1]*t;return r}var mF=function(){function r(){}return r.decode=function(t,e){var n=new er(""),i=Sn.ISO8859_1;n.enableDecoding(i);for(var a=1,o=t[a++],s=new oF;a<t[0];){switch(o){case r.TEXT_COMPACTION_MODE_LATCH:a=r.textCompaction(t,a,n);break;case r.BYTE_COMPACTION_MODE_LATCH:case r.BYTE_COMPACTION_MODE_LATCH_6:a=r.byteCompaction(o,t,i,a,n);break;case r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:n.append(t[a++]);break;case r.NUMERIC_COMPACTION_MODE_LATCH:a=r.numericCompaction(t,a,n);break;case r.ECI_CHARSET:Sn.getCharacterSetECIByValue(t[a++]);break;case r.ECI_GENERAL_PURPOSE:a+=2;break;case r.ECI_USER_DEFINED:a++;break;case r.BEGIN_MACRO_PDF417_CONTROL_BLOCK:a=r.decodeMacroBlock(t,a,s);break;case r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case r.MACRO_PDF417_TERMINATOR:throw new ct;default:a--,a=r.textCompaction(t,a,n);break}if(a<t.length)o=t[a++];else throw ct.getFormatInstance()}if(n.length()===0)throw ct.getFormatInstance();var u=new ph(null,n.toString(),null,e);return u.setOther(s),u},r.decodeMacroBlock=function(t,e,n){if(e+r.NUMBER_OF_SEQUENCE_CODEWORDS>t[0])throw ct.getFormatInstance();for(var i=new Int32Array(r.NUMBER_OF_SEQUENCE_CODEWORDS),a=0;a<r.NUMBER_OF_SEQUENCE_CODEWORDS;a++,e++)i[a]=t[e];n.setSegmentIndex(ln.parseInt(r.decodeBase900toBase10(i,r.NUMBER_OF_SEQUENCE_CODEWORDS)));var o=new er;e=r.textCompaction(t,e,o),n.setFileId(o.toString());var s=-1;for(t[e]===r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD&&(s=e+1);e<t[0];)switch(t[e]){case r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:switch(e++,t[e]){case r.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME:var u=new er;e=r.textCompaction(t,e+1,u),n.setFileName(u.toString());break;case r.MACRO_PDF417_OPTIONAL_FIELD_SENDER:var c=new er;e=r.textCompaction(t,e+1,c),n.setSender(c.toString());break;case r.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE:var l=new er;e=r.textCompaction(t,e+1,l),n.setAddressee(l.toString());break;case r.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT:var d=new er;e=r.numericCompaction(t,e+1,d),n.setSegmentCount(ln.parseInt(d.toString()));break;case r.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP:var h=new er;e=r.numericCompaction(t,e+1,h),n.setTimestamp(mb.parseLong(h.toString()));break;case r.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM:var f=new er;e=r.numericCompaction(t,e+1,f),n.setChecksum(ln.parseInt(f.toString()));break;case r.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE:var g=new er;e=r.numericCompaction(t,e+1,g),n.setFileSize(mb.parseLong(g.toString()));break;default:throw ct.getFormatInstance()}break;case r.MACRO_PDF417_TERMINATOR:e++,n.setLastSegment(!0);break;default:throw ct.getFormatInstance()}if(s!==-1){var m=e-s;n.isLastSegment()&&m--,n.setOptionalData(Tn.copyOfRange(t,s,s+m))}return e},r.textCompaction=function(t,e,n){for(var i=new Int32Array((t[0]-e)*2),a=new Int32Array((t[0]-e)*2),o=0,s=!1;e<t[0]&&!s;){var u=t[e++];if(u<r.TEXT_COMPACTION_MODE_LATCH)i[o]=u/30,i[o+1]=u%30,o+=2;else switch(u){case r.TEXT_COMPACTION_MODE_LATCH:i[o++]=r.TEXT_COMPACTION_MODE_LATCH;break;case r.BYTE_COMPACTION_MODE_LATCH:case r.BYTE_COMPACTION_MODE_LATCH_6:case r.NUMERIC_COMPACTION_MODE_LATCH:case r.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case r.MACRO_PDF417_TERMINATOR:e--,s=!0;break;case r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i[o]=r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE,u=t[e++],a[o]=u,o++;break}}return r.decodeTextCompaction(i,a,o,n),e},r.decodeTextCompaction=function(t,e,n,i){for(var a=Mr.ALPHA,o=Mr.ALPHA,s=0;s<n;){var u=t[s],c="";switch(a){case Mr.ALPHA:if(u<26)c=String.fromCharCode(65+u);else switch(u){case 26:c=" ";break;case r.LL:a=Mr.LOWER;break;case r.ML:a=Mr.MIXED;break;case r.PS:o=a,a=Mr.PUNCT_SHIFT;break;case r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(e[s]);break;case r.TEXT_COMPACTION_MODE_LATCH:a=Mr.ALPHA;break}break;case Mr.LOWER:if(u<26)c=String.fromCharCode(97+u);else switch(u){case 26:c=" ";break;case r.AS:o=a,a=Mr.ALPHA_SHIFT;break;case r.ML:a=Mr.MIXED;break;case r.PS:o=a,a=Mr.PUNCT_SHIFT;break;case r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(e[s]);break;case r.TEXT_COMPACTION_MODE_LATCH:a=Mr.ALPHA;break}break;case Mr.MIXED:if(u<r.PL)c=r.MIXED_CHARS[u];else switch(u){case r.PL:a=Mr.PUNCT;break;case 26:c=" ";break;case r.LL:a=Mr.LOWER;break;case r.AL:a=Mr.ALPHA;break;case r.PS:o=a,a=Mr.PUNCT_SHIFT;break;case r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(e[s]);break;case r.TEXT_COMPACTION_MODE_LATCH:a=Mr.ALPHA;break}break;case Mr.PUNCT:if(u<r.PAL)c=r.PUNCT_CHARS[u];else switch(u){case r.PAL:a=Mr.ALPHA;break;case r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(e[s]);break;case r.TEXT_COMPACTION_MODE_LATCH:a=Mr.ALPHA;break}break;case Mr.ALPHA_SHIFT:if(a=o,u<26)c=String.fromCharCode(65+u);else switch(u){case 26:c=" ";break;case r.TEXT_COMPACTION_MODE_LATCH:a=Mr.ALPHA;break}break;case Mr.PUNCT_SHIFT:if(a=o,u<r.PAL)c=r.PUNCT_CHARS[u];else switch(u){case r.PAL:a=Mr.ALPHA;break;case r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(e[s]);break;case r.TEXT_COMPACTION_MODE_LATCH:a=Mr.ALPHA;break}break}c!==""&&i.append(c),s++}},r.byteCompaction=function(t,e,n,i,a){var o=new dF,s=0,u=0,c=!1;switch(t){case r.BYTE_COMPACTION_MODE_LATCH:for(var l=new Int32Array(6),d=e[i++];i<e[0]&&!c;)switch(l[s++]=d,u=900*u+d,d=e[i++],d){case r.TEXT_COMPACTION_MODE_LATCH:case r.BYTE_COMPACTION_MODE_LATCH:case r.NUMERIC_COMPACTION_MODE_LATCH:case r.BYTE_COMPACTION_MODE_LATCH_6:case r.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case r.MACRO_PDF417_TERMINATOR:i--,c=!0;break;default:if(s%5==0&&s>0){for(var h=0;h<6;++h)o.write(Number(Yo(u)>>Yo(8*(5-h))));u=0,s=0}break}i===e[0]&&d<r.TEXT_COMPACTION_MODE_LATCH&&(l[s++]=d);for(var f=0;f<s;f++)o.write(l[f]);break;case r.BYTE_COMPACTION_MODE_LATCH_6:for(;i<e[0]&&!c;){var g=e[i++];if(g<r.TEXT_COMPACTION_MODE_LATCH)s++,u=900*u+g;else switch(g){case r.TEXT_COMPACTION_MODE_LATCH:case r.BYTE_COMPACTION_MODE_LATCH:case r.NUMERIC_COMPACTION_MODE_LATCH:case r.BYTE_COMPACTION_MODE_LATCH_6:case r.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case r.MACRO_PDF417_TERMINATOR:i--,c=!0;break}if(s%5==0&&s>0){for(var h=0;h<6;++h)o.write(Number(Yo(u)>>Yo(8*(5-h))));u=0,s=0}}break}return a.append(ta.decode(o.toByteArray(),n)),i},r.numericCompaction=function(t,e,n){for(var i=0,a=!1,o=new Int32Array(r.MAX_NUMERIC_CODEWORDS);e<t[0]&&!a;){var s=t[e++];if(e===t[0]&&(a=!0),s<r.TEXT_COMPACTION_MODE_LATCH)o[i]=s,i++;else switch(s){case r.TEXT_COMPACTION_MODE_LATCH:case r.BYTE_COMPACTION_MODE_LATCH:case r.BYTE_COMPACTION_MODE_LATCH_6:case r.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case r.MACRO_PDF417_TERMINATOR:e--,a=!0;break}(i%r.MAX_NUMERIC_CODEWORDS==0||s===r.NUMERIC_COMPACTION_MODE_LATCH||a)&&i>0&&(n.append(r.decodeBase900toBase10(o,i)),i=0)}return e},r.decodeBase900toBase10=function(t,e){for(var n=Yo(0),i=0;i<e;i++)n+=r.EXP900[e-i-1]*Yo(t[i]);var a=n.toString();if(a.charAt(0)!=="1")throw new ct;return a.substring(1)},r.TEXT_COMPACTION_MODE_LATCH=900,r.BYTE_COMPACTION_MODE_LATCH=901,r.NUMERIC_COMPACTION_MODE_LATCH=902,r.BYTE_COMPACTION_MODE_LATCH_6=924,r.ECI_USER_DEFINED=925,r.ECI_GENERAL_PURPOSE=926,r.ECI_CHARSET=927,r.BEGIN_MACRO_PDF417_CONTROL_BLOCK=928,r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD=923,r.MACRO_PDF417_TERMINATOR=922,r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE=913,r.MAX_NUMERIC_CODEWORDS=15,r.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME=0,r.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT=1,r.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP=2,r.MACRO_PDF417_OPTIONAL_FIELD_SENDER=3,r.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE=4,r.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE=5,r.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM=6,r.PL=25,r.LL=27,r.AS=27,r.ML=28,r.AL=28,r.PS=29,r.PAL=29,r.PUNCT_CHARS=`;<>@[\\]_\`~!\r ,:
-.$/"|*()?{}'`,r.MIXED_CHARS="0123456789&\r ,:#-.$/+%*=^",r.EXP900=gb()?pF():[],r.NUMBER_OF_SEQUENCE_CODEWORDS=2,r}(),Kc=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},gF=function(){function r(){}return r.decode=function(t,e,n,i,a,o,s){for(var u=new V0(t,e,n,i,a),c=null,l=null,d,h=!0;;h=!1){if(e!=null&&(c=r.getRowIndicatorColumn(t,u,e,!0,o,s)),i!=null&&(l=r.getRowIndicatorColumn(t,u,i,!1,o,s)),d=r.merge(c,l),d==null)throw ze.getNotFoundInstance();var f=d.getBoundingBox();if(h&&f!=null&&(f.getMinY()<u.getMinY()||f.getMaxY()>u.getMaxY()))u=f;else break}d.setBoundingBox(u);var g=d.getBarcodeColumnCount()+1;d.setDetectionResultColumn(0,c),d.setDetectionResultColumn(g,l);for(var m=c!=null,p=1;p<=g;p++){var y=m?p:g-p;if(d.getDetectionResultColumn(y)===void 0){var v=void 0;y===0||y===g?v=new pb(u,y===0):v=new db(u),d.setDetectionResultColumn(y,v);for(var b=-1,A=b,C=u.getMinY();C<=u.getMaxY();C++){if(b=r.getStartColumn(d,y,C,m),b<0||b>u.getMaxX()){if(A===-1)continue;b=A}var M=r.detectCodeword(t,u.getMinX(),u.getMaxX(),m,b,C,o,s);M!=null&&(v.setCodeword(C,M),A=b,o=Math.min(o,M.getWidth()),s=Math.max(s,M.getWidth()))}}}return r.createDecoderResult(d)},r.merge=function(t,e){if(t==null&&e==null)return null;var n=r.getBarcodeMetadata(t,e);if(n==null)return null;var i=V0.merge(r.adjustBoundingBox(t),r.adjustBoundingBox(e));return new nF(n,i)},r.adjustBoundingBox=function(t){var e,n;if(t==null)return null;var i=t.getRowHeights();if(i==null)return null;var a=r.getMax(i),o=0;try{for(var s=Kc(i),u=s.next();!u.done;u=s.next()){var c=u.value;if(o+=a-c,c>0)break}}catch(f){e={error:f}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}for(var l=t.getCodewords(),d=0;o>0&&l[d]==null;d++)o--;for(var h=0,d=i.length-1;d>=0&&(h+=a-i[d],!(i[d]>0));d--);for(var d=l.length-1;h>0&&l[d]==null;d--)h--;return t.getBoundingBox().addMissingRows(o,h,t.isLeft())},r.getMax=function(t){var e,n,i=-1;try{for(var a=Kc(t),o=a.next();!o.done;o=a.next()){var s=o.value;i=Math.max(i,s)}}catch(u){e={error:u}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i},r.getBarcodeMetadata=function(t,e){var n;if(t==null||(n=t.getBarcodeMetadata())==null)return e==null?null:e.getBarcodeMetadata();var i;return e==null||(i=e.getBarcodeMetadata())==null?n:n.getColumnCount()!==i.getColumnCount()&&n.getErrorCorrectionLevel()!==i.getErrorCorrectionLevel()&&n.getRowCount()!==i.getRowCount()?null:n},r.getRowIndicatorColumn=function(t,e,n,i,a,o){for(var s=new pb(e,i),u=0;u<2;u++)for(var c=u===0?1:-1,l=Math.trunc(Math.trunc(n.getX())),d=Math.trunc(Math.trunc(n.getY()));d<=e.getMaxY()&&d>=e.getMinY();d+=c){var h=r.detectCodeword(t,0,t.getWidth(),i,l,d,a,o);h!=null&&(s.setCodeword(d,h),i?l=h.getStartX():l=h.getEndX())}return s},r.adjustCodewordCount=function(t,e){var n=e[0][1],i=n.getValue(),a=t.getBarcodeColumnCount()*t.getBarcodeRowCount()-r.getNumberOfECCodeWords(t.getBarcodeECLevel());if(i.length===0){if(a<1||a>vr.MAX_CODEWORDS_IN_BARCODE)throw ze.getNotFoundInstance();n.setValue(a)}else i[0]!==a&&n.setValue(a)},r.createDecoderResult=function(t){var e=r.createBarcodeMatrix(t);r.adjustCodewordCount(t,e);for(var n=new Array,i=new Int32Array(t.getBarcodeRowCount()*t.getBarcodeColumnCount()),a=[],o=new Array,s=0;s<t.getBarcodeRowCount();s++)for(var u=0;u<t.getBarcodeColumnCount();u++){var c=e[s][u+1].getValue(),l=s*t.getBarcodeColumnCount()+u;c.length===0?n.push(l):c.length===1?i[l]=c[0]:(o.push(l),a.push(c))}for(var d=new Array(a.length),h=0;h<d.length;h++)d[h]=a[h];return r.createDecoderResultFromAmbiguousValues(t.getBarcodeECLevel(),i,vr.toIntArray(n),vr.toIntArray(o),d)},r.createDecoderResultFromAmbiguousValues=function(t,e,n,i,a){for(var o=new Int32Array(i.length),s=100;s-- >0;){for(var u=0;u<o.length;u++)e[i[u]]=a[u][o[u]];try{return r.decodeCodewords(e,t,n)}catch(l){var c=l instanceof bn;if(!c)throw l}if(o.length===0)throw bn.getChecksumInstance();for(var u=0;u<o.length;u++)if(o[u]<a[u].length-1){o[u]++;break}else if(o[u]=0,u===o.length-1)throw bn.getChecksumInstance()}throw bn.getChecksumInstance()},r.createBarcodeMatrix=function(t){for(var e,n,i,a,o=Array.from({length:t.getBarcodeRowCount()},function(){return new Array(t.getBarcodeColumnCount()+2)}),s=0;s<o.length;s++)for(var u=0;u<o[s].length;u++)o[s][u]=new Xc;var c=0;try{for(var l=Kc(t.getDetectionResultColumns()),d=l.next();!d.done;d=l.next()){var h=d.value;if(h!=null)try{for(var f=(i=void 0,Kc(h.getCodewords())),g=f.next();!g.done;g=f.next()){var m=g.value;if(m!=null){var p=m.getRowNumber();if(p>=0){if(p>=o.length)continue;o[p][c].setValue(m.getValue())}}}}catch(y){i={error:y}}finally{try{g&&!g.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}c++}}catch(y){e={error:y}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}return o},r.isValidBarcodeColumn=function(t,e){return e>=0&&e<=t.getBarcodeColumnCount()+1},r.getStartColumn=function(t,e,n,i){var a,o,s=i?1:-1,u=null;if(r.isValidBarcodeColumn(t,e-s)&&(u=t.getDetectionResultColumn(e-s).getCodeword(n)),u!=null)return i?u.getEndX():u.getStartX();if(u=t.getDetectionResultColumn(e).getCodewordNearby(n),u!=null)return i?u.getStartX():u.getEndX();if(r.isValidBarcodeColumn(t,e-s)&&(u=t.getDetectionResultColumn(e-s).getCodewordNearby(n)),u!=null)return i?u.getEndX():u.getStartX();for(var c=0;r.isValidBarcodeColumn(t,e-s);){e-=s;try{for(var l=(a=void 0,Kc(t.getDetectionResultColumn(e).getCodewords())),d=l.next();!d.done;d=l.next()){var h=d.value;if(h!=null)return(i?h.getEndX():h.getStartX())+s*c*(h.getEndX()-h.getStartX())}}catch(f){a={error:f}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(a)throw a.error}}c++}return i?t.getBoundingBox().getMinX():t.getBoundingBox().getMaxX()},r.detectCodeword=function(t,e,n,i,a,o,s,u){a=r.adjustCodewordStartColumn(t,e,n,i,a,o);var c=r.getModuleBitCount(t,e,n,i,a,o);if(c==null)return null;var l,d=yr.sum(c);if(i)l=a+d;else{for(var h=0;h<c.length/2;h++){var f=c[h];c[h]=c[c.length-1-h],c[c.length-1-h]=f}l=a,a=l-d}if(!r.checkCodewordSkew(d,s,u))return null;var g=aF.getDecodedValue(c),m=vr.getCodeword(g);return m===-1?null:new iF(a,l,r.getCodewordBucketNumber(g),m)},r.getModuleBitCount=function(t,e,n,i,a,o){for(var s=a,u=new Int32Array(8),c=0,l=i?1:-1,d=i;(i?s<n:s>=e)&&c<u.length;)t.get(s,o)===d?(u[c]++,s+=l):(c++,d=!d);return c===u.length||s===(i?n:e)&&c===u.length-1?u:null},r.getNumberOfECCodeWords=function(t){return 2<<t},r.adjustCodewordStartColumn=function(t,e,n,i,a,o){for(var s=a,u=i?-1:1,c=0;c<2;c++){for(;(i?s>=e:s<n)&&i===t.get(s,o);){if(Math.abs(a-s)>r.CODEWORD_SKEW_SIZE)return a;s+=u}u=-u,i=!i}return s},r.checkCodewordSkew=function(t,e,n){return e-r.CODEWORD_SKEW_SIZE<=t&&t<=n+r.CODEWORD_SKEW_SIZE},r.decodeCodewords=function(t,e,n){if(t.length===0)throw ct.getFormatInstance();var i=1<<e+1,a=r.correctErrors(t,n,i);r.verifyCodewordCount(t,i);var o=mF.decode(t,""+e);return o.setErrorsCorrected(a),o.setErasures(n.length),o},r.correctErrors=function(t,e,n){if(e!=null&&e.length>n/2+r.MAX_ERRORS||n<0||n>r.MAX_EC_CODEWORDS)throw bn.getChecksumInstance();return r.errorCorrection.decode(t,n,e)},r.verifyCodewordCount=function(t,e){if(t.length<4)throw ct.getFormatInstance();var n=t[0];if(n>t.length)throw ct.getFormatInstance();if(n===0)if(e<t.length)t[0]=t.length-e;else throw ct.getFormatInstance()},r.getBitCountForCodeword=function(t){for(var e=new Int32Array(8),n=0,i=e.length-1;!((t&1)!==n&&(n=t&1,i--,i<0));)e[i]++,t>>=1;return e},r.getCodewordBucketNumber=function(t){return t instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(t):this.getCodewordBucketNumber_number(t)},r.getCodewordBucketNumber_number=function(t){return r.getCodewordBucketNumber(r.getBitCountForCodeword(t))},r.getCodewordBucketNumber_Int32Array=function(t){return(t[0]-t[2]+t[4]-t[6]+9)%9},r.toString=function(t){for(var e=new q0,n=0;n<t.length;n++){e.format("Row %2d: ",n);for(var i=0;i<t[n].length;i++){var a=t[n][i];a.getValue().length===0?e.format(" ",null):e.format("%4d(%2d)",a.getValue()[0],a.getConfidence(a.getValue()[0]))}e.format("%n")}return e.toString()},r.CODEWORD_SKEW_SIZE=2,r.MAX_ERRORS=3,r.MAX_EC_CODEWORDS=512,r.errorCorrection=new ZR,r}(),vF=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Th=function(){function r(){}return r.prototype.decode=function(t,e){e===void 0&&(e=null);var n=r.decode(t,e,!1);if(n==null||n.length===0||n[0]==null)throw ze.getNotFoundInstance();return n[0]},r.prototype.decodeMultiple=function(t,e){e===void 0&&(e=null);try{return r.decode(t,e,!0)}catch(n){throw n instanceof ct||n instanceof bn?ze.getNotFoundInstance():n}},r.decode=function(t,e,n){var i,a,o=new Array,s=$R.detectMultiple(t,e,n);try{for(var u=vF(s.getPoints()),c=u.next();!c.done;c=u.next()){var l=c.value,d=gF.decode(s.getBits(),l[4],l[5],l[6],l[7],r.getMinCodewordWidth(l),r.getMaxCodewordWidth(l)),h=new Yn(d.getText(),d.getRawBytes(),void 0,l,It.PDF_417);h.putMetadata(zn.ERROR_CORRECTION_LEVEL,d.getECLevel());var f=d.getOther();f!=null&&h.putMetadata(zn.PDF417_EXTRA_METADATA,f),o.push(h)}}catch(g){i={error:g}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}return o.map(function(g){return g})},r.getMaxWidth=function(t,e){return t==null||e==null?0:Math.trunc(Math.abs(t.getX()-e.getX()))},r.getMinWidth=function(t,e){return t==null||e==null?ln.MAX_VALUE:Math.trunc(Math.abs(t.getX()-e.getX()))},r.getMaxCodewordWidth=function(t){return Math.floor(Math.max(Math.max(r.getMaxWidth(t[0],t[4]),r.getMaxWidth(t[6],t[2])*vr.MODULES_IN_CODEWORD/vr.MODULES_IN_STOP_PATTERN),Math.max(r.getMaxWidth(t[1],t[5]),r.getMaxWidth(t[7],t[3])*vr.MODULES_IN_CODEWORD/vr.MODULES_IN_STOP_PATTERN)))},r.getMinCodewordWidth=function(t){return Math.floor(Math.min(Math.min(r.getMinWidth(t[0],t[4]),r.getMinWidth(t[6],t[2])*vr.MODULES_IN_CODEWORD/vr.MODULES_IN_STOP_PATTERN),Math.min(r.getMinWidth(t[1],t[5]),r.getMinWidth(t[7],t[3])*vr.MODULES_IN_CODEWORD/vr.MODULES_IN_STOP_PATTERN)))},r.prototype.reset=function(){},r}(),yF=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),vb=function(r){yF(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.kind="ReaderException",t}(Ai),yb=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},bb=function(){function r(){}return r.prototype.decode=function(t,e){return this.setHints(e),this.decodeInternal(t)},r.prototype.decodeWithState=function(t){return(this.readers===null||this.readers===void 0)&&this.setHints(null),this.decodeInternal(t)},r.prototype.setHints=function(t){this.hints=t;var e=t!=null&&t.get(Hr.TRY_HARDER)!==void 0,n=t==null?null:t.get(Hr.POSSIBLE_FORMATS),i=new Array;if(n!=null){var a=n.some(function(o){return o===It.UPC_A||o===It.UPC_E||o===It.EAN_13||o===It.EAN_8||o===It.CODABAR||o===It.CODE_39||o===It.CODE_93||o===It.CODE_128||o===It.ITF||o===It.RSS_14||o===It.RSS_EXPANDED});a&&!e&&i.push(new _u(t)),n.includes(It.QR_CODE)&&i.push(new Eh),n.includes(It.DATA_MATRIX)&&i.push(new _h),n.includes(It.AZTEC)&&i.push(new vh),n.includes(It.PDF_417)&&i.push(new Th),a&&e&&i.push(new _u(t))}i.length===0&&(e||i.push(new _u(t)),i.push(new Eh),i.push(new _h),i.push(new vh),i.push(new Th),e&&i.push(new _u(t))),this.readers=i},r.prototype.reset=function(){var t,e;if(this.readers!==null)try{for(var n=yb(this.readers),i=n.next();!i.done;i=n.next()){var a=i.value;a.reset()}}catch(o){t={error:o}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},r.prototype.decodeInternal=function(t){var e,n;if(this.readers===null)throw new vb("No readers where selected, nothing can be read.");try{for(var i=yb(this.readers),a=i.next();!a.done;a=i.next()){var o=a.value;try{return o.decode(t,this.hints)}catch(s){if(s instanceof vb)continue}}}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}throw new ze("No MultiFormat Readers were able to detect the code.")},r}(),bF=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();(function(r){bF(t,r);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=500);var i=this,a=new bb;return a.setHints(e),i=r.call(this,a,n)||this,i}return t.prototype.decodeBitmap=function(e){return this.reader.decodeWithState(e)},t})(vu);var wF=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();(function(r){wF(t,r);function t(e){return e===void 0&&(e=500),r.call(this,new Th,e)||this}return t})(vu);var xF=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();(function(r){xF(t,r);function t(e){return e===void 0&&(e=500),r.call(this,new Eh,e)||this}return t})(vu);var X0;(function(r){r[r.ERROR_CORRECTION=0]="ERROR_CORRECTION",r[r.CHARACTER_SET=1]="CHARACTER_SET",r[r.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",r[r.DATA_MATRIX_COMPACT=3]="DATA_MATRIX_COMPACT",r[r.MIN_SIZE=4]="MIN_SIZE",r[r.MAX_SIZE=5]="MAX_SIZE",r[r.MARGIN=6]="MARGIN",r[r.PDF417_COMPACT=7]="PDF417_COMPACT",r[r.PDF417_COMPACTION=8]="PDF417_COMPACTION",r[r.PDF417_DIMENSIONS=9]="PDF417_DIMENSIONS",r[r.AZTEC_LAYERS=10]="AZTEC_LAYERS",r[r.QR_VERSION=11]="QR_VERSION",r[r.GS1_FORMAT=12]="GS1_FORMAT",r[r.FORCE_C40=13]="FORCE_C40"})(X0||(X0={}));var Jo=X0,_F=function(){function r(t){this.field=t,this.cachedGenerators=[],this.cachedGenerators.push(new Xo(t,Int32Array.from([1])))}return r.prototype.buildGenerator=function(t){var e=this.cachedGenerators;if(t>=e.length)for(var n=e[e.length-1],i=this.field,a=e.length;a<=t;a++){var o=n.multiply(new Xo(i,Int32Array.from([1,i.exp(a-1+i.getGeneratorBase())])));e.push(o),n=o}return e[t]},r.prototype.encode=function(t,e){if(e===0)throw new Ut("No error correction bytes");var n=t.length-e;if(n<=0)throw new Ut("No data bytes provided");var i=this.buildGenerator(e),a=new Int32Array(n);zr.arraycopy(t,0,a,0,n);var o=new Xo(this.field,a);o=o.multiplyByMonomial(e,1);for(var s=o.divide(i)[1],u=s.getCoefficients(),c=e-u.length,l=0;l<c;l++)t[n+l]=0;zr.arraycopy(u,0,t,n+c,u.length)},r}(),Zc=function(){function r(){}return r.applyMaskPenaltyRule1=function(t){return r.applyMaskPenaltyRule1Internal(t,!0)+r.applyMaskPenaltyRule1Internal(t,!1)},r.applyMaskPenaltyRule2=function(t){for(var e=0,n=t.getArray(),i=t.getWidth(),a=t.getHeight(),o=0;o<a-1;o++)for(var s=n[o],u=0;u<i-1;u++){var c=s[u];c===s[u+1]&&c===n[o+1][u]&&c===n[o+1][u+1]&&e++}return r.N2*e},r.applyMaskPenaltyRule3=function(t){for(var e=0,n=t.getArray(),i=t.getWidth(),a=t.getHeight(),o=0;o<a;o++)for(var s=0;s<i;s++){var u=n[o];s+6<i&&u[s]===1&&u[s+1]===0&&u[s+2]===1&&u[s+3]===1&&u[s+4]===1&&u[s+5]===0&&u[s+6]===1&&(r.isWhiteHorizontal(u,s-4,s)||r.isWhiteHorizontal(u,s+7,s+11))&&e++,o+6<a&&n[o][s]===1&&n[o+1][s]===0&&n[o+2][s]===1&&n[o+3][s]===1&&n[o+4][s]===1&&n[o+5][s]===0&&n[o+6][s]===1&&(r.isWhiteVertical(n,s,o-4,o)||r.isWhiteVertical(n,s,o+7,o+11))&&e++}return e*r.N3},r.isWhiteHorizontal=function(t,e,n){e=Math.max(e,0),n=Math.min(n,t.length);for(var i=e;i<n;i++)if(t[i]===1)return!1;return!0},r.isWhiteVertical=function(t,e,n,i){n=Math.max(n,0),i=Math.min(i,t.length);for(var a=n;a<i;a++)if(t[a][e]===1)return!1;return!0},r.applyMaskPenaltyRule4=function(t){for(var e=0,n=t.getArray(),i=t.getWidth(),a=t.getHeight(),o=0;o<a;o++)for(var s=n[o],u=0;u<i;u++)s[u]===1&&e++;var c=t.getHeight()*t.getWidth(),l=Math.floor(Math.abs(e*2-c)*10/c);return l*r.N4},r.getDataMaskBit=function(t,e,n){var i,a;switch(t){case 0:i=n+e&1;break;case 1:i=n&1;break;case 2:i=e%3;break;case 3:i=(n+e)%3;break;case 4:i=Math.floor(n/2)+Math.floor(e/3)&1;break;case 5:a=n*e,i=(a&1)+a%3;break;case 6:a=n*e,i=(a&1)+a%3&1;break;case 7:a=n*e,i=a%3+(n+e&1)&1;break;default:throw new Ut("Invalid mask pattern: "+t)}return i===0},r.applyMaskPenaltyRule1Internal=function(t,e){for(var n=0,i=e?t.getHeight():t.getWidth(),a=e?t.getWidth():t.getHeight(),o=t.getArray(),s=0;s<i;s++){for(var u=0,c=-1,l=0;l<a;l++){var d=e?o[s][l]:o[l][s];d===c?u++:(u>=5&&(n+=r.N1+(u-5)),u=1,c=d)}u>=5&&(n+=r.N1+(u-5))}return n},r.N1=3,r.N2=3,r.N3=40,r.N4=10,r}(),EF=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},AF=function(){function r(t,e){this.width=t,this.height=e;for(var n=new Array(e),i=0;i!==e;i++)n[i]=new Uint8Array(t);this.bytes=n}return r.prototype.getHeight=function(){return this.height},r.prototype.getWidth=function(){return this.width},r.prototype.get=function(t,e){return this.bytes[e][t]},r.prototype.getArray=function(){return this.bytes},r.prototype.setNumber=function(t,e,n){this.bytes[e][t]=n},r.prototype.setBoolean=function(t,e,n){this.bytes[e][t]=n?1:0},r.prototype.clear=function(t){var e,n;try{for(var i=EF(this.bytes),a=i.next();!a.done;a=i.next()){var o=a.value;Tn.fill(o,t)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},r.prototype.equals=function(t){if(!(t instanceof r))return!1;var e=t;if(this.width!==e.width||this.height!==e.height)return!1;for(var n=0,i=this.height;n<i;++n)for(var a=this.bytes[n],o=e.bytes[n],s=0,u=this.width;s<u;++s)if(a[s]!==o[s])return!1;return!0},r.prototype.toString=function(){for(var t=new er,e=0,n=this.height;e<n;++e){for(var i=this.bytes[e],a=0,o=this.width;a<o;++a)switch(i[a]){case 0:t.append(" 0");break;case 1:t.append(" 1");break;default:t.append(" ");break}t.append(`
`)}return t.toString()},r}(),K0=function(){function r(){this.maskPattern=-1}return r.prototype.getMode=function(){return this.mode},r.prototype.getECLevel=function(){return this.ecLevel},r.prototype.getVersion=function(){return this.version},r.prototype.getMaskPattern=function(){return this.maskPattern},r.prototype.getMatrix=function(){return this.matrix},r.prototype.toString=function(){var t=new er;return t.append(`<<
`),t.append(" mode: "),t.append(this.mode?this.mode.toString():"null"),t.append(`
ecLevel: `),t.append(this.ecLevel?this.ecLevel.toString():"null"),t.append(`
version: `),t.append(this.version?this.version.toString():"null"),t.append(`
maskPattern: `),t.append(this.maskPattern.toString()),this.matrix?(t.append(`
matrix:
`),t.append(this.matrix.toString())):t.append(`
matrix: null
`),t.append(`>>
`),t.toString()},r.prototype.setMode=function(t){this.mode=t},r.prototype.setECLevel=function(t){this.ecLevel=t},r.prototype.setVersion=function(t){this.version=t},r.prototype.setMaskPattern=function(t){this.maskPattern=t},r.prototype.setMatrix=function(t){this.matrix=t},r.isValidMaskPattern=function(t){return t>=0&&t<r.NUM_MASK_PATTERNS},r.NUM_MASK_PATTERNS=8,r}(),TF=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Yr=function(r){TF(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.kind="WriterException",t}(Ai),wb=function(){function r(){}return r.clearMatrix=function(t){t.clear(255)},r.buildMatrix=function(t,e,n,i,a){r.clearMatrix(a),r.embedBasicPatterns(n,a),r.embedTypeInfo(e,i,a),r.maybeEmbedVersionInfo(n,a),r.embedDataBits(t,i,a)},r.embedBasicPatterns=function(t,e){r.embedPositionDetectionPatternsAndSeparators(e),r.embedDarkDotAtLeftBottomCorner(e),r.maybeEmbedPositionAdjustmentPatterns(t,e),r.embedTimingPatterns(e)},r.embedTypeInfo=function(t,e,n){var i=new Ti;r.makeTypeInfoBits(t,e,i);for(var a=0,o=i.getSize();a<o;++a){var s=i.get(i.getSize()-1-a),u=r.TYPE_INFO_COORDINATES[a],c=u[0],l=u[1];if(n.setBoolean(c,l,s),a<8){var d=n.getWidth()-a-1,h=8;n.setBoolean(d,h,s)}else{var d=8,h=n.getHeight()-7+(a-8);n.setBoolean(d,h,s)}}},r.maybeEmbedVersionInfo=function(t,e){if(!(t.getVersionNumber()<7)){var n=new Ti;r.makeVersionInfoBits(t,n);for(var i=6*3-1,a=0;a<6;++a)for(var o=0;o<3;++o){var s=n.get(i);i--,e.setBoolean(a,e.getHeight()-11+o,s),e.setBoolean(e.getHeight()-11+o,a,s)}}},r.embedDataBits=function(t,e,n){for(var i=0,a=-1,o=n.getWidth()-1,s=n.getHeight()-1;o>0;){for(o===6&&(o-=1);s>=0&&s<n.getHeight();){for(var u=0;u<2;++u){var c=o-u;if(!!r.isEmpty(n.get(c,s))){var l=void 0;i<t.getSize()?(l=t.get(i),++i):l=!1,e!==255&&Zc.getDataMaskBit(e,c,s)&&(l=!l),n.setBoolean(c,s,l)}}s+=a}a=-a,s+=a,o-=2}if(i!==t.getSize())throw new Yr("Not all bits consumed: "+i+"/"+t.getSize())},r.findMSBSet=function(t){return 32-ln.numberOfLeadingZeros(t)},r.calculateBCHCode=function(t,e){if(e===0)throw new Ut("0 polynomial");var n=r.findMSBSet(e);for(t<<=n-1;r.findMSBSet(t)>=n;)t^=e<<r.findMSBSet(t)-n;return t},r.makeTypeInfoBits=function(t,e,n){if(!K0.isValidMaskPattern(e))throw new Yr("Invalid mask pattern");var i=t.getBits()<<3|e;n.appendBits(i,5);var a=r.calculateBCHCode(i,r.TYPE_INFO_POLY);n.appendBits(a,10);var o=new Ti;if(o.appendBits(r.TYPE_INFO_MASK_PATTERN,15),n.xor(o),n.getSize()!==15)throw new Yr("should not happen but we got: "+n.getSize())},r.makeVersionInfoBits=function(t,e){e.appendBits(t.getVersionNumber(),6);var n=r.calculateBCHCode(t.getVersionNumber(),r.VERSION_INFO_POLY);if(e.appendBits(n,12),e.getSize()!==18)throw new Yr("should not happen but we got: "+e.getSize())},r.isEmpty=function(t){return t===255},r.embedTimingPatterns=function(t){for(var e=8;e<t.getWidth()-8;++e){var n=(e+1)%2;r.isEmpty(t.get(e,6))&&t.setNumber(e,6,n),r.isEmpty(t.get(6,e))&&t.setNumber(6,e,n)}},r.embedDarkDotAtLeftBottomCorner=function(t){if(t.get(8,t.getHeight()-8)===0)throw new Yr;t.setNumber(8,t.getHeight()-8,1)},r.embedHorizontalSeparationPattern=function(t,e,n){for(var i=0;i<8;++i){if(!r.isEmpty(n.get(t+i,e)))throw new Yr;n.setNumber(t+i,e,0)}},r.embedVerticalSeparationPattern=function(t,e,n){for(var i=0;i<7;++i){if(!r.isEmpty(n.get(t,e+i)))throw new Yr;n.setNumber(t,e+i,0)}},r.embedPositionAdjustmentPattern=function(t,e,n){for(var i=0;i<5;++i)for(var a=r.POSITION_ADJUSTMENT_PATTERN[i],o=0;o<5;++o)n.setNumber(t+o,e+i,a[o])},r.embedPositionDetectionPattern=function(t,e,n){for(var i=0;i<7;++i)for(var a=r.POSITION_DETECTION_PATTERN[i],o=0;o<7;++o)n.setNumber(t+o,e+i,a[o])},r.embedPositionDetectionPatternsAndSeparators=function(t){var e=r.POSITION_DETECTION_PATTERN[0].length;r.embedPositionDetectionPattern(0,0,t),r.embedPositionDetectionPattern(t.getWidth()-e,0,t),r.embedPositionDetectionPattern(0,t.getWidth()-e,t);var n=8;r.embedHorizontalSeparationPattern(0,n-1,t),r.embedHorizontalSeparationPattern(t.getWidth()-n,n-1,t),r.embedHorizontalSeparationPattern(0,t.getWidth()-n,t);var i=7;r.embedVerticalSeparationPattern(i,0,t),r.embedVerticalSeparationPattern(t.getHeight()-i-1,0,t),r.embedVerticalSeparationPattern(i,t.getHeight()-i,t)},r.maybeEmbedPositionAdjustmentPatterns=function(t,e){if(!(t.getVersionNumber()<2))for(var n=t.getVersionNumber()-1,i=r.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[n],a=0,o=i.length;a!==o;a++){var s=i[a];if(s>=0)for(var u=0;u!==o;u++){var c=i[u];c>=0&&r.isEmpty(e.get(c,s))&&r.embedPositionAdjustmentPattern(c-2,s-2,e)}}},r.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),r.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),r.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),r.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),r.VERSION_INFO_POLY=7973,r.TYPE_INFO_POLY=1335,r.TYPE_INFO_MASK_PATTERN=21522,r}(),SF=function(){function r(t,e){this.dataBytes=t,this.errorCorrectionBytes=e}return r.prototype.getDataBytes=function(){return this.dataBytes},r.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},r}(),xb=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},DF=function(){function r(){}return r.calculateMaskPenalty=function(t){return Zc.applyMaskPenaltyRule1(t)+Zc.applyMaskPenaltyRule2(t)+Zc.applyMaskPenaltyRule3(t)+Zc.applyMaskPenaltyRule4(t)},r.encode=function(t,e,n){n===void 0&&(n=null);var i=r.DEFAULT_BYTE_MODE_ENCODING,a=n!==null&&n.get(Jo.CHARACTER_SET)!==void 0;a&&(i=n.get(Jo.CHARACTER_SET).toString());var o=this.chooseMode(t,i),s=new Ti;if(o===Zr.BYTE&&(a||r.DEFAULT_BYTE_MODE_ENCODING!==i)){var u=Sn.getCharacterSetECIByName(i);u!==void 0&&this.appendECI(u,s)}this.appendModeInfo(o,s);var c=new Ti;this.appendBytes(t,o,c,i);var l;if(n!==null&&n.get(Jo.QR_VERSION)!==void 0){var d=Number.parseInt(n.get(Jo.QR_VERSION).toString(),10);l=ks.getVersionForNumber(d);var h=this.calculateBitsNeeded(o,s,c,l);if(!this.willFit(h,l,e))throw new Yr("Data too big for requested version")}else l=this.recommendVersion(e,o,s,c);var f=new Ti;f.appendBitArray(s);var g=o===Zr.BYTE?c.getSizeInBytes():t.length;this.appendLengthInfo(g,l,o,f),f.appendBitArray(c);var m=l.getECBlocksForLevel(e),p=l.getTotalCodewords()-m.getTotalECCodewords();this.terminateBits(p,f);var y=this.interleaveWithECBytes(f,l.getTotalCodewords(),p,m.getNumBlocks()),v=new K0;v.setECLevel(e),v.setMode(o),v.setVersion(l);var b=l.getDimensionForVersion(),A=new AF(b,b),C=this.chooseMaskPattern(y,e,l,A);return v.setMaskPattern(C),wb.buildMatrix(y,e,l,C,A),v.setMatrix(A),v},r.recommendVersion=function(t,e,n,i){var a=this.calculateBitsNeeded(e,n,i,ks.getVersionForNumber(1)),o=this.chooseVersion(a,t),s=this.calculateBitsNeeded(e,n,i,o);return this.chooseVersion(s,t)},r.calculateBitsNeeded=function(t,e,n,i){return e.getSize()+t.getCharacterCountBits(i)+n.getSize()},r.getAlphanumericCode=function(t){return t<r.ALPHANUMERIC_TABLE.length?r.ALPHANUMERIC_TABLE[t]:-1},r.chooseMode=function(t,e){if(e===void 0&&(e=null),Sn.SJIS.getName()===e&&this.isOnlyDoubleByteKanji(t))return Zr.KANJI;for(var n=!1,i=!1,a=0,o=t.length;a<o;++a){var s=t.charAt(a);if(r.isDigit(s))n=!0;else if(this.getAlphanumericCode(s.charCodeAt(0))!==-1)i=!0;else return Zr.BYTE}return i?Zr.ALPHANUMERIC:n?Zr.NUMERIC:Zr.BYTE},r.isOnlyDoubleByteKanji=function(t){var e;try{e=ta.encode(t,Sn.SJIS)}catch{return!1}var n=e.length;if(n%2!=0)return!1;for(var i=0;i<n;i+=2){var a=e[i]&255;if((a<129||a>159)&&(a<224||a>235))return!1}return!0},r.chooseMaskPattern=function(t,e,n,i){for(var a=Number.MAX_SAFE_INTEGER,o=-1,s=0;s<K0.NUM_MASK_PATTERNS;s++){wb.buildMatrix(t,e,n,s,i);var u=this.calculateMaskPenalty(i);u<a&&(a=u,o=s)}return o},r.chooseVersion=function(t,e){for(var n=1;n<=40;n++){var i=ks.getVersionForNumber(n);if(r.willFit(t,i,e))return i}throw new Yr("Data too big")},r.willFit=function(t,e,n){var i=e.getTotalCodewords(),a=e.getECBlocksForLevel(n),o=a.getTotalECCodewords(),s=i-o,u=(t+7)/8;return s>=u},r.terminateBits=function(t,e){var n=t*8;if(e.getSize()>n)throw new Yr("data bits cannot fit in the QR Code"+e.getSize()+" > "+n);for(var i=0;i<4&&e.getSize()<n;++i)e.appendBit(!1);var a=e.getSize()&7;if(a>0)for(var i=a;i<8;i++)e.appendBit(!1);for(var o=t-e.getSizeInBytes(),i=0;i<o;++i)e.appendBits((i&1)==0?236:17,8);if(e.getSize()!==n)throw new Yr("Bits size does not equal capacity")},r.getNumDataBytesAndNumECBytesForBlockID=function(t,e,n,i,a,o){if(i>=n)throw new Yr("Block ID too large");var s=t%n,u=n-s,c=Math.floor(t/n),l=c+1,d=Math.floor(e/n),h=d+1,f=c-d,g=l-h;if(f!==g)throw new Yr("EC bytes mismatch");if(n!==u+s)throw new Yr("RS blocks mismatch");if(t!==(d+f)*u+(h+g)*s)throw new Yr("Total bytes mismatch");i<u?(a[0]=d,o[0]=f):(a[0]=h,o[0]=g)},r.interleaveWithECBytes=function(t,e,n,i){var a,o,s,u;if(t.getSizeInBytes()!==n)throw new Yr("Number of bits and data bytes does not match");for(var c=0,l=0,d=0,h=new Array,f=0;f<i;++f){var g=new Int32Array(1),m=new Int32Array(1);r.getNumDataBytesAndNumECBytesForBlockID(e,n,i,f,g,m);var p=g[0],y=new Uint8Array(p);t.toBytes(8*c,y,0,p);var v=r.generateECBytes(y,m[0]);h.push(new SF(y,v)),l=Math.max(l,p),d=Math.max(d,v.length),c+=g[0]}if(n!==c)throw new Yr("Data bytes does not match offset");for(var b=new Ti,f=0;f<l;++f)try{for(var A=(a=void 0,xb(h)),C=A.next();!C.done;C=A.next()){var M=C.value,y=M.getDataBytes();f<y.length&&b.appendBits(y[f],8)}}catch(G){a={error:G}}finally{try{C&&!C.done&&(o=A.return)&&o.call(A)}finally{if(a)throw a.error}}for(var f=0;f<d;++f)try{for(var z=(s=void 0,xb(h)),W=z.next();!W.done;W=z.next()){var M=W.value,v=M.getErrorCorrectionBytes();f<v.length&&b.appendBits(v[f],8)}}catch(G){s={error:G}}finally{try{W&&!W.done&&(u=z.return)&&u.call(z)}finally{if(s)throw s.error}}if(e!==b.getSizeInBytes())throw new Yr("Interleaving error: "+e+" and "+b.getSizeInBytes()+" differ.");return b},r.generateECBytes=function(t,e){for(var n=t.length,i=new Int32Array(n+e),a=0;a<n;a++)i[a]=t[a]&255;new _F(mo.QR_CODE_FIELD_256).encode(i,e);for(var o=new Uint8Array(e),a=0;a<e;a++)o[a]=i[n+a];return o},r.appendModeInfo=function(t,e){e.appendBits(t.getBits(),4)},r.appendLengthInfo=function(t,e,n,i){var a=n.getCharacterCountBits(e);if(t>=1<<a)throw new Yr(t+" is bigger than "+((1<<a)-1));i.appendBits(t,a)},r.appendBytes=function(t,e,n,i){switch(e){case Zr.NUMERIC:r.appendNumericBytes(t,n);break;case Zr.ALPHANUMERIC:r.appendAlphanumericBytes(t,n);break;case Zr.BYTE:r.append8BitBytes(t,n,i);break;case Zr.KANJI:r.appendKanjiBytes(t,n);break;default:throw new Yr("Invalid mode: "+e)}},r.getDigit=function(t){return t.charCodeAt(0)-48},r.isDigit=function(t){var e=r.getDigit(t);return e>=0&&e<=9},r.appendNumericBytes=function(t,e){for(var n=t.length,i=0;i<n;){var a=r.getDigit(t.charAt(i));if(i+2<n){var o=r.getDigit(t.charAt(i+1)),s=r.getDigit(t.charAt(i+2));e.appendBits(a*100+o*10+s,10),i+=3}else if(i+1<n){var o=r.getDigit(t.charAt(i+1));e.appendBits(a*10+o,7),i+=2}else e.appendBits(a,4),i++}},r.appendAlphanumericBytes=function(t,e){for(var n=t.length,i=0;i<n;){var a=r.getAlphanumericCode(t.charCodeAt(i));if(a===-1)throw new Yr;if(i+1<n){var o=r.getAlphanumericCode(t.charCodeAt(i+1));if(o===-1)throw new Yr;e.appendBits(a*45+o,11),i+=2}else e.appendBits(a,6),i++}},r.append8BitBytes=function(t,e,n){var i;try{i=ta.encode(t,n)}catch(u){throw new Yr(u)}for(var a=0,o=i.length;a!==o;a++){var s=i[a];e.appendBits(s,8)}},r.appendKanjiBytes=function(t,e){var n;try{n=ta.encode(t,Sn.SJIS)}catch(d){throw new Yr(d)}for(var i=n.length,a=0;a<i;a+=2){var o=n[a]&255,s=n[a+1]&255,u=o<<8&4294967295|s,c=-1;if(u>=33088&&u<=40956?c=u-33088:u>=57408&&u<=60351&&(c=u-49472),c===-1)throw new Yr("Invalid byte sequence");var l=(c>>8)*192+(c&255);e.appendBits(l,13)}},r.appendECI=function(t,e){e.appendBits(Zr.ECI.getBits(),4),e.appendBits(t.getValue(),8)},r.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,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,-1,-1,-1,-1,-1]),r.DEFAULT_BYTE_MODE_ENCODING=Sn.UTF8.getName(),r}(),CF=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();(function(r){CF(t,r);function t(e,n,i,a,o,s,u,c){var l=r.call(this,s,u)||this;if(l.yuvData=e,l.dataWidth=n,l.dataHeight=i,l.left=a,l.top=o,a+s>n||o+u>i)throw new Ut("Crop rectangle does not fit within image data.");return c&&l.reverseHorizontal(s,u),l}return t.prototype.getRow=function(e,n){if(e<0||e>=this.getHeight())throw new Ut("Requested row is outside the image: "+e);var i=this.getWidth();(n==null||n.length<i)&&(n=new Uint8ClampedArray(i));var a=(e+this.top)*this.dataWidth+this.left;return zr.arraycopy(this.yuvData,a,n,0,i),n},t.prototype.getMatrix=function(){var e=this.getWidth(),n=this.getHeight();if(e===this.dataWidth&&n===this.dataHeight)return this.yuvData;var i=e*n,a=new Uint8ClampedArray(i),o=this.top*this.dataWidth+this.left;if(e===this.dataWidth)return zr.arraycopy(this.yuvData,o,a,0,i),a;for(var s=0;s<n;s++){var u=s*e;zr.arraycopy(this.yuvData,o,a,u,e),o+=this.dataWidth}return a},t.prototype.isCropSupported=function(){return!0},t.prototype.crop=function(e,n,i,a){return new t(this.yuvData,this.dataWidth,this.dataHeight,this.left+e,this.top+n,i,a,!1)},t.prototype.renderThumbnail=function(){for(var e=this.getWidth()/t.THUMBNAIL_SCALE_FACTOR,n=this.getHeight()/t.THUMBNAIL_SCALE_FACTOR,i=new Int32Array(e*n),a=this.yuvData,o=this.top*this.dataWidth+this.left,s=0;s<n;s++){for(var u=s*e,c=0;c<e;c++){var l=a[o+c*t.THUMBNAIL_SCALE_FACTOR]&255;i[u+c]=4278190080|l*65793}o+=this.dataWidth*t.THUMBNAIL_SCALE_FACTOR}return i},t.prototype.getThumbnailWidth=function(){return this.getWidth()/t.THUMBNAIL_SCALE_FACTOR},t.prototype.getThumbnailHeight=function(){return this.getHeight()/t.THUMBNAIL_SCALE_FACTOR},t.prototype.reverseHorizontal=function(e,n){for(var i=this.yuvData,a=0,o=this.top*this.dataWidth+this.left;a<n;a++,o+=this.dataWidth)for(var s=o+e/2,u=o,c=o+e-1;u<s;u++,c--){var l=i[u];i[u]=i[c],i[c]=l}},t.prototype.invert=function(){return new dh(this)},t.THUMBNAIL_SCALE_FACTOR=2,t})(Vc);var OF=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();(function(r){OF(t,r);function t(e,n,i,a,o,s,u){var c=r.call(this,n,i)||this;if(c.dataWidth=a,c.dataHeight=o,c.left=s,c.top=u,e.BYTES_PER_ELEMENT===4){for(var l=n*i,d=new Uint8ClampedArray(l),h=0;h<l;h++){var f=e[h],g=f>>16&255,m=f>>7&510,p=f&255;d[h]=(g+m+p)/4&255}c.luminances=d}else c.luminances=e;if(a===void 0&&(c.dataWidth=n),o===void 0&&(c.dataHeight=i),s===void 0&&(c.left=0),u===void 0&&(c.top=0),c.left+n>c.dataWidth||c.top+i>c.dataHeight)throw new Ut("Crop rectangle does not fit within image data.");return c}return t.prototype.getRow=function(e,n){if(e<0||e>=this.getHeight())throw new Ut("Requested row is outside the image: "+e);var i=this.getWidth();(n==null||n.length<i)&&(n=new Uint8ClampedArray(i));var a=(e+this.top)*this.dataWidth+this.left;return zr.arraycopy(this.luminances,a,n,0,i),n},t.prototype.getMatrix=function(){var e=this.getWidth(),n=this.getHeight();if(e===this.dataWidth&&n===this.dataHeight)return this.luminances;var i=e*n,a=new Uint8ClampedArray(i),o=this.top*this.dataWidth+this.left;if(e===this.dataWidth)return zr.arraycopy(this.luminances,o,a,0,i),a;for(var s=0;s<n;s++){var u=s*e;zr.arraycopy(this.luminances,o,a,u,e),o+=this.dataWidth}return a},t.prototype.isCropSupported=function(){return!0},t.prototype.crop=function(e,n,i,a){return new t(this.luminances,i,a,this.dataWidth,this.dataHeight,this.left+e,this.top+n)},t.prototype.invert=function(){return new dh(this)},t})(Vc);var IF=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),kF=function(r){IF(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.forName=function(e){return this.getCharacterSetECIByName(e)},t}(Sn),RF=function(){function r(){}return r.ISO_8859_1=Sn.ISO8859_1,r}(),Z0,FF=301,NF=function(r,t){for(var e=1,n=0;n<255;n++)t[n]=e,r[e]=n,e*=2,e>=256&&(e^=FF);return{LOG:r,ALOG:t}};Z0=NF([],[]),Z0.LOG;Z0.ALOG;var _b;(function(r){r[r.FORCE_NONE=0]="FORCE_NONE",r[r.FORCE_SQUARE=1]="FORCE_SQUARE",r[r.FORCE_RECTANGLE=2]="FORCE_RECTANGLE"})(_b||(_b={}));var Eb=129,Ab=230,MF=231,BF=235,UF=236,PF=237,LF=238,jF=239,WF=240,Y0=254,zF=254,Tb="[)>05",Sb="[)>06",Db="",Ir=0,$n=1,pi=2,In=3,Mn=4,Jn=5,HF=function(){function r(){}return r.prototype.getEncodingMode=function(){return Ir},r.prototype.encode=function(t){var e=ba.determineConsecutiveDigitCount(t.getMessage(),t.pos);if(e>=2)t.writeCodeword(this.encodeASCIIDigits(t.getMessage().charCodeAt(t.pos),t.getMessage().charCodeAt(t.pos+1))),t.pos+=2;else{var n=t.getCurrentChar(),i=ba.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode());if(i!==this.getEncodingMode())switch(i){case Jn:t.writeCodeword(MF),t.signalEncoderChange(Jn);return;case $n:t.writeCodeword(Ab),t.signalEncoderChange($n);return;case In:t.writeCodeword(LF),t.signalEncoderChange(In);break;case pi:t.writeCodeword(jF),t.signalEncoderChange(pi);break;case Mn:t.writeCodeword(WF),t.signalEncoderChange(Mn);break;default:throw new Error("Illegal mode: "+i)}else ba.isExtendedASCII(n)?(t.writeCodeword(BF),t.writeCodeword(n-128+1),t.pos++):(t.writeCodeword(n+1),t.pos++)}},r.prototype.encodeASCIIDigits=function(t,e){if(ba.isDigit(t)&&ba.isDigit(e)){var n=(t-48)*10+(e-48);return n+130}throw new Error("not digits: "+t+e)},r}(),$F=function(){function r(){}return r.prototype.getEncodingMode=function(){return Jn},r.prototype.encode=function(t){var e=new er;for(e.append(0);t.hasMoreCharacters();){var n=t.getCurrentChar();e.append(n),t.pos++;var i=ba.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode());if(i!==this.getEncodingMode()){t.signalEncoderChange(Ir);break}}var a=e.length()-1,o=1,s=t.getCodewordCount()+a+o;t.updateSymbolInfo(s);var u=t.getSymbolInfo().getDataCapacity()-s>0;if(t.hasMoreCharacters()||u)if(a<=249)e.setCharAt(0,$r.getCharAt(a));else if(a<=1555)e.setCharAt(0,$r.getCharAt(Math.floor(a/250)+249)),e.insert(1,$r.getCharAt(a%250));else throw new Error("Message length not in valid ranges: "+a);for(var c=0,n=e.length();c<n;c++)t.writeCodeword(this.randomize255State(e.charAt(c).charCodeAt(0),t.getCodewordCount()+1))},r.prototype.randomize255State=function(t,e){var n=149*e%255+1,i=t+n;return i<=255?i:i-256},r}(),J0=function(){function r(){}return r.prototype.getEncodingMode=function(){return $n},r.prototype.encodeMaximal=function(t){for(var e=new er,n=0,i=t.pos,a=0;t.hasMoreCharacters();){var o=t.getCurrentChar();t.pos++,n=this.encodeChar(o,e),e.length()%3==0&&(i=t.pos,a=e.length())}if(a!==e.length()){var s=Math.floor(e.length()/3*2),u=Math.floor(t.getCodewordCount()+s+1);t.updateSymbolInfo(u);var c=t.getSymbolInfo().getDataCapacity()-u,l=Math.floor(e.length()%3);(l===2&&c!==2||l===1&&(n>3||c!==1))&&(t.pos=i)}e.length()>0&&t.writeCodeword(Ab),this.handleEOD(t,e)},r.prototype.encode=function(t){for(var e=new er;t.hasMoreCharacters();){var n=t.getCurrentChar();t.pos++;var i=this.encodeChar(n,e),a=Math.floor(e.length()/3)*2,o=t.getCodewordCount()+a;t.updateSymbolInfo(o);var s=t.getSymbolInfo().getDataCapacity()-o;if(!t.hasMoreCharacters()){var u=new er;for(e.length()%3==2&&s!==2&&(i=this.backtrackOneCharacter(t,e,u,i));e.length()%3==1&&(i>3||s!==1);)i=this.backtrackOneCharacter(t,e,u,i);break}var c=e.length();if(c%3==0){var l=ba.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode());if(l!==this.getEncodingMode()){t.signalEncoderChange(Ir);break}}}this.handleEOD(t,e)},r.prototype.backtrackOneCharacter=function(t,e,n,i){var a=e.length(),o=e.toString().substring(0,a-i);e.setLengthToZero(),e.append(o),t.pos--;var s=t.getCurrentChar();return i=this.encodeChar(s,n),t.resetSymbolInfo(),i},r.prototype.writeNextTriplet=function(t,e){t.writeCodewords(this.encodeToCodewords(e.toString()));var n=e.toString().substring(3);e.setLengthToZero(),e.append(n)},r.prototype.handleEOD=function(t,e){var n=Math.floor(e.length()/3*2),i=e.length()%3,a=t.getCodewordCount()+n;t.updateSymbolInfo(a);var o=t.getSymbolInfo().getDataCapacity()-a;if(i===2){for(e.append("\0");e.length()>=3;)this.writeNextTriplet(t,e);t.hasMoreCharacters()&&t.writeCodeword(Y0)}else if(o===1&&i===1){for(;e.length()>=3;)this.writeNextTriplet(t,e);t.hasMoreCharacters()&&t.writeCodeword(Y0),t.pos--}else if(i===0){for(;e.length()>=3;)this.writeNextTriplet(t,e);(o>0||t.hasMoreCharacters())&&t.writeCodeword(Y0)}else throw new Error("Unexpected case. Please report!");t.signalEncoderChange(Ir)},r.prototype.encodeChar=function(t,e){if(t===" ".charCodeAt(0))return e.append(3),1;if(t>="0".charCodeAt(0)&&t<="9".charCodeAt(0))return e.append(t-48+4),1;if(t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0))return e.append(t-65+14),1;if(t<" ".charCodeAt(0))return e.append(0),e.append(t),2;if(t<="/".charCodeAt(0))return e.append(1),e.append(t-33),2;if(t<="@".charCodeAt(0))return e.append(1),e.append(t-58+15),2;if(t<="_".charCodeAt(0))return e.append(1),e.append(t-91+22),2;if(t<=127)return e.append(2),e.append(t-96),2;e.append(1+"");var n=2;return n+=this.encodeChar(t-128,e),n},r.prototype.encodeToCodewords=function(t){var e=1600*t.charCodeAt(0)+40*t.charCodeAt(1)+t.charCodeAt(2)+1,n=e/256,i=e%256,a=new er;return a.append(n),a.append(i),a.toString()},r}(),VF=function(){function r(){}return r.prototype.getEncodingMode=function(){return Mn},r.prototype.encode=function(t){for(var e=new er;t.hasMoreCharacters();){var n=t.getCurrentChar();this.encodeChar(n,e),t.pos++;var i=e.length();if(i>=4){t.writeCodewords(this.encodeToCodewords(e.toString()));var a=e.toString().substring(4);e.setLengthToZero(),e.append(a);var o=ba.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode());if(o!==this.getEncodingMode()){t.signalEncoderChange(Ir);break}}}e.append($r.getCharAt(31)),this.handleEOD(t,e)},r.prototype.handleEOD=function(t,e){try{var n=e.length();if(n===0)return;if(n===1){t.updateSymbolInfo();var i=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount(),a=t.getRemainingCharacters();if(a>i&&(t.updateSymbolInfo(t.getCodewordCount()+1),i=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount()),a<=i&&i<=2)return}if(n>4)throw new Error("Count must not exceed 4");var o=n-1,s=this.encodeToCodewords(e.toString()),u=!t.hasMoreCharacters(),c=u&&o<=2;if(o<=2){t.updateSymbolInfo(t.getCodewordCount()+o);var i=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount();i>=3&&(c=!1,t.updateSymbolInfo(t.getCodewordCount()+s.length))}c?(t.resetSymbolInfo(),t.pos-=o):t.writeCodewords(s)}finally{t.signalEncoderChange(Ir)}},r.prototype.encodeChar=function(t,e){t>=" ".charCodeAt(0)&&t<="?".charCodeAt(0)?e.append(t):t>="@".charCodeAt(0)&&t<="^".charCodeAt(0)?e.append($r.getCharAt(t-64)):ba.illegalCharacter($r.getCharAt(t))},r.prototype.encodeToCodewords=function(t){var e=t.length;if(e===0)throw new Error("StringBuilder must not be empty");var n=t.charAt(0).charCodeAt(0),i=e>=2?t.charAt(1).charCodeAt(0):0,a=e>=3?t.charAt(2).charCodeAt(0):0,o=e>=4?t.charAt(3).charCodeAt(0):0,s=(n<<18)+(i<<12)+(a<<6)+o,u=s>>16&255,c=s>>8&255,l=s&255,d=new er;return d.append(u),e>=2&&d.append(c),e>=3&&d.append(l),d.toString()},r}(),qF=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),GF=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},xr=function(){function r(t,e,n,i,a,o,s,u){s===void 0&&(s=0),u===void 0&&(u=0),this.rectangular=t,this.dataCapacity=e,this.errorCodewords=n,this.matrixWidth=i,this.matrixHeight=a,this.dataRegions=o,this.rsBlockData=s,this.rsBlockError=u}return r.lookup=function(t,e,n,i,a){var o,s;e===void 0&&(e=0),n===void 0&&(n=null),i===void 0&&(i=null),a===void 0&&(a=!0);try{for(var u=GF(KF),c=u.next();!c.done;c=u.next()){var l=c.value;if(!(e===1&&l.rectangular)&&!(e===2&&!l.rectangular)&&!(n!=null&&(l.getSymbolWidth()<n.getWidth()||l.getSymbolHeight()<n.getHeight()))&&!(i!=null&&(l.getSymbolWidth()>i.getWidth()||l.getSymbolHeight()>i.getHeight()))&&t<=l.dataCapacity)return l}}catch(d){o={error:d}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}if(a)throw new Error("Can't find a symbol arrangement that matches the message. Data codewords: "+t);return null},r.prototype.getHorizontalDataRegions=function(){switch(this.dataRegions){case 1:return 1;case 2:case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},r.prototype.getVerticalDataRegions=function(){switch(this.dataRegions){case 1:case 2:return 1;case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},r.prototype.getSymbolDataWidth=function(){return this.getHorizontalDataRegions()*this.matrixWidth},r.prototype.getSymbolDataHeight=function(){return this.getVerticalDataRegions()*this.matrixHeight},r.prototype.getSymbolWidth=function(){return this.getSymbolDataWidth()+this.getHorizontalDataRegions()*2},r.prototype.getSymbolHeight=function(){return this.getSymbolDataHeight()+this.getVerticalDataRegions()*2},r.prototype.getCodewordCount=function(){return this.dataCapacity+this.errorCodewords},r.prototype.getInterleavedBlockCount=function(){return this.rsBlockData?this.dataCapacity/this.rsBlockData:1},r.prototype.getDataCapacity=function(){return this.dataCapacity},r.prototype.getErrorCodewords=function(){return this.errorCodewords},r.prototype.getDataLengthForInterleavedBlock=function(t){return this.rsBlockData},r.prototype.getErrorLengthForInterleavedBlock=function(t){return this.rsBlockError},r}(),XF=function(r){qF(t,r);function t(){return r.call(this,!1,1558,620,22,22,36,-1,62)||this}return t.prototype.getInterleavedBlockCount=function(){return 10},t.prototype.getDataLengthForInterleavedBlock=function(e){return e<=8?156:155},t}(xr),KF=[new xr(!1,3,5,8,8,1),new xr(!1,5,7,10,10,1),new xr(!0,5,7,16,6,1),new xr(!1,8,10,12,12,1),new xr(!0,10,11,14,6,2),new xr(!1,12,12,14,14,1),new xr(!0,16,14,24,10,1),new xr(!1,18,14,16,16,1),new xr(!1,22,18,18,18,1),new xr(!0,22,18,16,10,2),new xr(!1,30,20,20,20,1),new xr(!0,32,24,16,14,2),new xr(!1,36,24,22,22,1),new xr(!1,44,28,24,24,1),new xr(!0,49,28,22,14,2),new xr(!1,62,36,14,14,4),new xr(!1,86,42,16,16,4),new xr(!1,114,48,18,18,4),new xr(!1,144,56,20,20,4),new xr(!1,174,68,22,22,4),new xr(!1,204,84,24,24,4,102,42),new xr(!1,280,112,14,14,16,140,56),new xr(!1,368,144,16,16,16,92,36),new xr(!1,456,192,18,18,16,114,48),new xr(!1,576,224,20,20,16,144,56),new xr(!1,696,272,22,22,16,174,68),new xr(!1,816,336,24,24,16,136,56),new xr(!1,1050,408,18,18,36,175,68),new xr(!1,1304,496,20,20,36,163,62),new XF],ZF=function(){function r(t){this.msg=t,this.pos=0,this.skipAtEnd=0;for(var e=t.split("").map(function(s){return s.charCodeAt(0)}),n=new er,i=0,a=e.length;i<a;i++){var o=String.fromCharCode(e[i]&255);if(o==="?"&&t.charAt(i)!=="?")throw new Error("Message contains characters outside ISO-8859-1 encoding.");n.append(o)}this.msg=n.toString(),this.shape=0,this.codewords=new er,this.newEncoding=-1}return r.prototype.setSymbolShape=function(t){this.shape=t},r.prototype.setSizeConstraints=function(t,e){this.minSize=t,this.maxSize=e},r.prototype.getMessage=function(){return this.msg},r.prototype.setSkipAtEnd=function(t){this.skipAtEnd=t},r.prototype.getCurrentChar=function(){return this.msg.charCodeAt(this.pos)},r.prototype.getCurrent=function(){return this.msg.charCodeAt(this.pos)},r.prototype.getCodewords=function(){return this.codewords},r.prototype.writeCodewords=function(t){this.codewords.append(t)},r.prototype.writeCodeword=function(t){this.codewords.append(t)},r.prototype.getCodewordCount=function(){return this.codewords.length()},r.prototype.getNewEncoding=function(){return this.newEncoding},r.prototype.signalEncoderChange=function(t){this.newEncoding=t},r.prototype.resetEncoderSignal=function(){this.newEncoding=-1},r.prototype.hasMoreCharacters=function(){return this.pos<this.getTotalMessageCharCount()},r.prototype.getTotalMessageCharCount=function(){return this.msg.length-this.skipAtEnd},r.prototype.getRemainingCharacters=function(){return this.getTotalMessageCharCount()-this.pos},r.prototype.getSymbolInfo=function(){return this.symbolInfo},r.prototype.updateSymbolInfo=function(t){t===void 0&&(t=this.getCodewordCount()),(this.symbolInfo==null||t>this.symbolInfo.getDataCapacity())&&(this.symbolInfo=xr.lookup(t,this.shape,this.minSize,this.maxSize,!0))},r.prototype.resetSymbolInfo=function(){this.symbolInfo=null},r}(),YF=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),JF=function(r){YF(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getEncodingMode=function(){return In},t.prototype.encode=function(e){for(var n=new er;e.hasMoreCharacters();){var i=e.getCurrentChar();e.pos++,this.encodeChar(i,n);var a=n.length();if(a%3==0){this.writeNextTriplet(e,n);var o=ba.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(o!==this.getEncodingMode()){e.signalEncoderChange(Ir);break}}}this.handleEOD(e,n)},t.prototype.encodeChar=function(e,n){switch(e){case 13:n.append(0);break;case"*".charCodeAt(0):n.append(1);break;case">".charCodeAt(0):n.append(2);break;case" ".charCodeAt(0):n.append(3);break;default:e>="0".charCodeAt(0)&&e<="9".charCodeAt(0)?n.append(e-48+4):e>="A".charCodeAt(0)&&e<="Z".charCodeAt(0)?n.append(e-65+14):ba.illegalCharacter($r.getCharAt(e));break}return 1},t.prototype.handleEOD=function(e,n){e.updateSymbolInfo();var i=e.getSymbolInfo().getDataCapacity()-e.getCodewordCount(),a=n.length();e.pos-=a,(e.getRemainingCharacters()>1||i>1||e.getRemainingCharacters()!==i)&&e.writeCodeword(zF),e.getNewEncoding()<0&&e.signalEncoderChange(Ir)},t}(J0),QF=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),eN=function(r){QF(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getEncodingMode=function(){return pi},t.prototype.encodeChar=function(e,n){if(e===" ".charCodeAt(0))return n.append(3),1;if(e>="0".charCodeAt(0)&&e<="9".charCodeAt(0))return n.append(e-48+4),1;if(e>="a".charCodeAt(0)&&e<="z".charCodeAt(0))return n.append(e-97+14),1;if(e<" ".charCodeAt(0))return n.append(0),n.append(e),2;if(e<="/".charCodeAt(0))return n.append(1),n.append(e-33),2;if(e<="@".charCodeAt(0))return n.append(1),n.append(e-58+15),2;if(e>="[".charCodeAt(0)&&e<="_".charCodeAt(0))return n.append(1),n.append(e-91+22),2;if(e==="`".charCodeAt(0))return n.append(2),n.append(0),2;if(e<="Z".charCodeAt(0))return n.append(2),n.append(e-65+1),2;if(e<=127)return n.append(2),n.append(e-123+27),2;n.append(1+"");var i=2;return i+=this.encodeChar(e-128,n),i},t}(J0),tN=function(){function r(){}return r.randomize253State=function(t){var e=149*t%253+1,n=Eb+e;return n<=254?n:n-254},r.encodeHighLevel=function(t,e,n,i,a){e===void 0&&(e=0),n===void 0&&(n=null),i===void 0&&(i=null),a===void 0&&(a=!1);var o=new J0,s=[new HF,o,new eN,new JF,new VF,new $F],u=new ZF(t);u.setSymbolShape(e),u.setSizeConstraints(n,i),t.startsWith(Tb)&&t.endsWith(Db)?(u.writeCodeword(UF),u.setSkipAtEnd(2),u.pos+=Tb.length):t.startsWith(Sb)&&t.endsWith(Db)&&(u.writeCodeword(PF),u.setSkipAtEnd(2),u.pos+=Sb.length);var c=Ir;for(a&&(o.encodeMaximal(u),c=u.getNewEncoding(),u.resetEncoderSignal());u.hasMoreCharacters();)s[c].encode(u),u.getNewEncoding()>=0&&(c=u.getNewEncoding(),u.resetEncoderSignal());var l=u.getCodewordCount();u.updateSymbolInfo();var d=u.getSymbolInfo().getDataCapacity();l<d&&c!==Ir&&c!==Jn&&c!==Mn&&u.writeCodeword("\xFE");var h=u.getCodewords();for(h.length()<d&&h.append(Eb);h.length()<d;)h.append(this.randomize253State(h.length()+1));return u.getCodewords().toString()},r.lookAheadTest=function(t,e,n){var i=this.lookAheadTestIntern(t,e,n);if(n===In&&i===In){for(var a=Math.min(e+3,t.length),o=e;o<a;o++)if(!this.isNativeX12(t.charCodeAt(o)))return Ir}else if(n===Mn&&i===Mn){for(var a=Math.min(e+4,t.length),o=e;o<a;o++)if(!this.isNativeEDIFACT(t.charCodeAt(o)))return Ir}return i},r.lookAheadTestIntern=function(t,e,n){if(e>=t.length)return n;var i;n===Ir?i=[0,1,1,1,1,1.25]:(i=[1,2,2,2,2,2.25],i[n]=0);for(var a=0,o=new Uint8Array(6),s=[];;){if(e+a===t.length){Tn.fill(o,0),Tn.fill(s,0);var u=this.findMinimums(i,s,ln.MAX_VALUE,o),c=this.getMinimumCount(o);if(s[Ir]===u)return Ir;if(c===1){if(o[Jn]>0)return Jn;if(o[Mn]>0)return Mn;if(o[pi]>0)return pi;if(o[In]>0)return In}return $n}var l=t.charCodeAt(e+a);if(a++,this.isDigit(l)?i[Ir]+=.5:this.isExtendedASCII(l)?(i[Ir]=Math.ceil(i[Ir]),i[Ir]+=2):(i[Ir]=Math.ceil(i[Ir]),i[Ir]++),this.isNativeC40(l)?i[$n]+=2/3:this.isExtendedASCII(l)?i[$n]+=8/3:i[$n]+=4/3,this.isNativeText(l)?i[pi]+=2/3:this.isExtendedASCII(l)?i[pi]+=8/3:i[pi]+=4/3,this.isNativeX12(l)?i[In]+=2/3:this.isExtendedASCII(l)?i[In]+=13/3:i[In]+=10/3,this.isNativeEDIFACT(l)?i[Mn]+=3/4:this.isExtendedASCII(l)?i[Mn]+=17/4:i[Mn]+=13/4,this.isSpecialB256(l)?i[Jn]+=4:i[Jn]++,a>=4){if(Tn.fill(o,0),Tn.fill(s,0),this.findMinimums(i,s,ln.MAX_VALUE,o),s[Ir]<this.min(s[Jn],s[$n],s[pi],s[In],s[Mn]))return Ir;if(s[Jn]<s[Ir]||s[Jn]+1<this.min(s[$n],s[pi],s[In],s[Mn]))return Jn;if(s[Mn]+1<this.min(s[Jn],s[$n],s[pi],s[In],s[Ir]))return Mn;if(s[pi]+1<this.min(s[Jn],s[$n],s[Mn],s[In],s[Ir]))return pi;if(s[In]+1<this.min(s[Jn],s[$n],s[Mn],s[pi],s[Ir]))return In;if(s[$n]+1<this.min(s[Ir],s[Jn],s[Mn],s[pi])){if(s[$n]<s[In])return $n;if(s[$n]===s[In]){for(var d=e+a+1;d<t.length;){var h=t.charCodeAt(d);if(this.isX12TermSep(h))return In;if(!this.isNativeX12(h))break;d++}return $n}}}}},r.min=function(t,e,n,i,a){var o=Math.min(t,Math.min(e,Math.min(n,i)));return a===void 0?o:Math.min(o,a)},r.findMinimums=function(t,e,n,i){for(var a=0;a<6;a++){var o=e[a]=Math.ceil(t[a]);n>o&&(n=o,Tn.fill(i,0)),n===o&&(i[a]=i[a]+1)}return n},r.getMinimumCount=function(t){for(var e=0,n=0;n<6;n++)e+=t[n];return e||0},r.isDigit=function(t){return t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)},r.isExtendedASCII=function(t){return t>=128&&t<=255},r.isNativeC40=function(t){return t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)},r.isNativeText=function(t){return t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="a".charCodeAt(0)&&t<="z".charCodeAt(0)},r.isNativeX12=function(t){return this.isX12TermSep(t)||t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)},r.isX12TermSep=function(t){return t===13||t==="*".charCodeAt(0)||t===">".charCodeAt(0)},r.isNativeEDIFACT=function(t){return t>=" ".charCodeAt(0)&&t<="^".charCodeAt(0)},r.isSpecialB256=function(t){return!1},r.determineConsecutiveDigitCount=function(t,e){e===void 0&&(e=0);for(var n=t.length,i=e;i<n&&this.isDigit(t.charCodeAt(i));)i++;return i-e},r.illegalCharacter=function(t){var e=ln.toHexString(t.charCodeAt(0));throw e="0000".substring(0,4-e.length)+e,new Error("Illegal character: "+t+" (0x"+e+")")},r}(),ba=tN,Q0=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Cb=function(){function r(t){this.charset=t,this.name=t.name}return r.prototype.canEncode=function(t){try{return ta.encode(t,this.charset)!=null}catch{return!1}},r}(),rN=function(){function r(t,e,n){var i,a,o,s,u,c;this.ENCODERS=["IBM437","ISO-8859-2","ISO-8859-3","ISO-8859-4","ISO-8859-5","ISO-8859-6","ISO-8859-7","ISO-8859-8","ISO-8859-9","ISO-8859-10","ISO-8859-11","ISO-8859-13","ISO-8859-14","ISO-8859-15","ISO-8859-16","windows-1250","windows-1251","windows-1252","windows-1256","Shift_JIS"].map(function(U){return new Cb(kF.forName(U))}),this.encoders=[];var l=[];l.push(new Cb(RF.ISO_8859_1));for(var d=e!=null&&e.name.startsWith("UTF"),h=0;h<t.length;h++){var f=!1;try{for(var g=(i=void 0,Q0(l)),m=g.next();!m.done;m=g.next()){var p=m.value,y=t.charAt(h),v=y.charCodeAt(0);if(v===n||p.canEncode(y)){f=!0;break}}}catch(U){i={error:U}}finally{try{m&&!m.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}if(!f)try{for(var b=(o=void 0,Q0(this.ENCODERS)),A=b.next();!A.done;A=b.next()){var p=A.value;if(p.canEncode(t.charAt(h))){l.push(p),f=!0;break}}}catch(U){o={error:U}}finally{try{A&&!A.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}f||(d=!0)}if(l.length===1&&!d)this.encoders=[l[0]];else{this.encoders=[];var C=0;try{for(var M=Q0(l),z=M.next();!z.done;z=M.next()){var p=z.value;this.encoders[C++]=p}}catch(U){u={error:U}}finally{try{z&&!z.done&&(c=M.return)&&c.call(M)}finally{if(u)throw u.error}}}var W=-1;if(e!=null){for(var h=0;h<this.encoders.length;h++)if(this.encoders[h]!=null&&e.name===this.encoders[h].name){W=h;break}}this.priorityEncoderIndex=W}return r.prototype.length=function(){return this.encoders.length},r.prototype.getCharsetName=function(t){if(!(t<this.length()))throw new Error("index must be less than length");return this.encoders[t].name},r.prototype.getCharset=function(t){if(!(t<this.length()))throw new Error("index must be less than length");return this.encoders[t].charset},r.prototype.getECIValue=function(t){return this.encoders[t].charset.getValueIdentifier()},r.prototype.getPriorityEncoderIndex=function(){return this.priorityEncoderIndex},r.prototype.canEncode=function(t,e){if(!(e<this.length()))throw new Error("index must be less than length");return!0},r.prototype.encode=function(t,e){if(!(e<this.length()))throw new Error("index must be less than length");return ta.encode($r.getCharAt(t),this.encoders[e].name)},r}(),nN=3,iN=function(){function r(t,e,n){this.fnc1=n;var i=new rN(t,e,n);if(i.length()===1)for(var a=0;a<this.bytes.length;a++){var o=t.charAt(a).charCodeAt(0);this.bytes[a]=o===n?1e3:o}else this.bytes=this.encodeMinimally(t,i,n)}return r.prototype.getFNC1Character=function(){return this.fnc1},r.prototype.length=function(){return this.bytes.length},r.prototype.haveNCharacters=function(t,e){if(t+e-1>=this.bytes.length)return!1;for(var n=0;n<e;n++)if(this.isECI(t+n))return!1;return!0},r.prototype.charAt=function(t){if(t<0||t>=this.length())throw new Error(""+t);if(this.isECI(t))throw new Error("value at "+t+" is not a character but an ECI");return this.isFNC1(t)?this.fnc1:this.bytes[t]},r.prototype.subSequence=function(t,e){if(t<0||t>e||e>this.length())throw new Error(""+t);for(var n=new er,i=t;i<e;i++){if(this.isECI(i))throw new Error("value at "+i+" is not a character but an ECI");n.append(this.charAt(i))}return n.toString()},r.prototype.isECI=function(t){if(t<0||t>=this.length())throw new Error(""+t);return this.bytes[t]>255&&this.bytes[t]<=999},r.prototype.isFNC1=function(t){if(t<0||t>=this.length())throw new Error(""+t);return this.bytes[t]===1e3},r.prototype.getECIValue=function(t){if(t<0||t>=this.length())throw new Error(""+t);if(!this.isECI(t))throw new Error("value at "+t+" is not an ECI but a character");return this.bytes[t]-256},r.prototype.addEdge=function(t,e,n){(t[e][n.encoderIndex]==null||t[e][n.encoderIndex].cachedTotalSize>n.cachedTotalSize)&&(t[e][n.encoderIndex]=n)},r.prototype.addEdges=function(t,e,n,i,a,o){var s=t.charAt(i).charCodeAt(0),u=0,c=e.length();e.getPriorityEncoderIndex()>=0&&(s===o||e.canEncode(s,e.getPriorityEncoderIndex()))&&(u=e.getPriorityEncoderIndex(),c=u+1);for(var l=u;l<c;l++)(s===o||e.canEncode(s,l))&&this.addEdge(n,i+1,new Ob(s,e,l,a,o))},r.prototype.encodeMinimally=function(t,e,n){var i=t.length,a=new Ob[i+1][e.length()];this.addEdges(t,e,a,0,null,n);for(var o=1;o<=i;o++){for(var s=0;s<e.length();s++)a[o][s]!=null&&o<i&&this.addEdges(t,e,a,o,a[o][s],n);for(var s=0;s<e.length();s++)a[o-1][s]=null}for(var u=-1,c=ln.MAX_VALUE,s=0;s<e.length();s++)if(a[i][s]!=null){var l=a[i][s];l.cachedTotalSize<c&&(c=l.cachedTotalSize,u=s)}if(u<0)throw new Error('Failed to encode "'+t+'"');for(var d=[],h=a[i][u];h!=null;){if(h.isFNC1())d.unshift(1e3);else for(var f=e.encode(h.c,h.encoderIndex),o=f.length-1;o>=0;o--)d.unshift(f[o]&255);var g=h.previous===null?0:h.previous.encoderIndex;g!==h.encoderIndex&&d.unshift(256+e.getECIValue(h.encoderIndex)),h=h.previous}for(var m=[],o=0;o<m.length;o++)m[o]=d[o];return m},r}(),Ob=function(){function r(t,e,n,i,a){this.c=t,this.encoderSet=e,this.encoderIndex=n,this.previous=i,this.fnc1=a,this.c=t===a?1e3:t;var o=this.isFNC1()?1:e.encode(t,n).length,s=i===null?0:i.encoderIndex;s!==n&&(o+=nN),i!=null&&(o+=i.cachedTotalSize),this.cachedTotalSize=o}return r.prototype.isFNC1=function(){return this.c===1e3},r}(),aN=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();globalThis&&globalThis.__values;var oN=globalThis&&globalThis.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return a};globalThis&&globalThis.__spread;var Ib;(function(r){r[r.ASCII=0]="ASCII",r[r.C40=1]="C40",r[r.TEXT=2]="TEXT",r[r.X12=3]="X12",r[r.EDF=4]="EDF",r[r.B256=5]="B256"})(Ib||(Ib={}));(function(r){aN(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.shape=a,s.macroId=o,s}return t.prototype.getMacroId=function(){return this.macroId},t.prototype.getShapeHint=function(){return this.shape},t})(iN);var sN=function(){function r(t){this.previous=t}return r.prototype.getPrevious=function(){return this.previous},r}(),uN=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),kb=function(r){uN(t,r);function t(e,n,i){var a=r.call(this,e)||this;return a.value=n,a.bitCount=i,a}return t.prototype.appendTo=function(e,n){e.appendBits(this.value,this.bitCount)},t.prototype.add=function(e,n){return new t(this,e,n)},t.prototype.addBinaryShift=function(e,n){return console.warn("addBinaryShift on SimpleToken, this simply returns a copy of this token"),new t(this,e,n)},t.prototype.toString=function(){var e=this.value&(1<<this.bitCount)-1;return e|=1<<this.bitCount,"<"+ln.toBinaryString(e|1<<this.bitCount).substring(1)+">"},t}(sN),cN=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(t,e)};return function(t,e){r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();(function(r){cN(t,r);function t(e,n,i){var a=r.call(this,e,0,0)||this;return a.binaryShiftStart=n,a.binaryShiftByteCount=i,a}return t.prototype.appendTo=function(e,n){for(var i=0;i<this.binaryShiftByteCount;i++)(i===0||i===31&&this.binaryShiftByteCount<=62)&&(e.appendBits(31,5),this.binaryShiftByteCount>62?e.appendBits(this.binaryShiftByteCount-31,16):i===0?e.appendBits(Math.min(this.binaryShiftByteCount,31),5):e.appendBits(this.binaryShiftByteCount-31,5)),e.appendBits(n[this.binaryShiftStart+i],8)},t.prototype.addBinaryShift=function(e,n){return new t(this,e,n)},t.prototype.toString=function(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"},t})(kb);var Yc=0,Sh=1,Au=2,Rb=3,Jc=4;new kb(null,0,0);var lN=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function fN(r){var t,e;try{for(var n=lN(r),i=n.next();!i.done;i=n.next()){var a=i.value;Tn.fill(a,-1)}}catch(o){t={error:o}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r[Yc][Jc]=0,r[Sh][Jc]=0,r[Sh][Yc]=28,r[Rb][Jc]=0,r[Au][Jc]=0,r[Au][Yc]=15,r}fN(Tn.createInt32Array(6,6));globalThis&&globalThis.__values;function hN(r){var t=$r.getCharCode(" "),e=$r.getCharCode("."),n=$r.getCharCode(",");r[Yc][t]=1;for(var i=$r.getCharCode("Z"),a=$r.getCharCode("A"),o=a;o<=i;o++)r[Yc][o]=o-a+2;r[Sh][t]=1;for(var s=$r.getCharCode("z"),u=$r.getCharCode("a"),o=u;o<=s;o++)r[Sh][o]=o-u+2;r[Au][t]=1;for(var c=$r.getCharCode("9"),l=$r.getCharCode("0"),o=l;o<=c;o++)r[Au][o]=o-l+2;r[Au][n]=12,r[Au][e]=13;for(var d=["\0"," ","","","","","","","\x07","\b"," ",`
`,"\v","\f","\r","","","","","","@","\\","^","_","`","|","~","\x7F"],h=0;h<d.length;h++)r[Rb][$r.getCharCode(d[h])]=h;for(var f=["\0","\r","\0","\0","\0","\0","!","'","#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}"],h=0;h<f.length;h++)$r.getCharCode(f[h])>0&&(r[Jc][$r.getCharCode(f[h])]=h);return r}hN(Tn.createInt32Array(5,256));globalThis&&globalThis.__values;globalThis&&globalThis.__values;var dN=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pN=function(r){dN(t,r);function t(e){var n=r.call(this,e.width,e.height)||this;return n.canvas=e,n.tempCanvasElement=null,n.buffer=t.makeBufferFromCanvasImageData(e),n}return t.makeBufferFromCanvasImageData=function(e){var n;try{n=e.getContext("2d",{willReadFrequently:!0})}catch{n=e.getContext("2d")}if(!n)throw new Error("Couldn't get canvas context.");var i=n.getImageData(0,0,e.width,e.height);return t.toGrayscaleBuffer(i.data,e.width,e.height)},t.toGrayscaleBuffer=function(e,n,i){for(var a=new Uint8ClampedArray(n*i),o=0,s=0,u=e.length;o<u;o+=4,s++){var c=void 0,l=e[o+3];if(l===0)c=255;else{var d=e[o],h=e[o+1],f=e[o+2];c=306*d+601*h+117*f+512>>10}a[s]=c}return a},t.prototype.getRow=function(e,n){if(e<0||e>=this.getHeight())throw new Ut("Requested row is outside the image: "+e);var i=this.getWidth(),a=e*i;return n===null?n=this.buffer.slice(a,a+i):(n.length<i&&(n=new Uint8ClampedArray(i)),n.set(this.buffer.slice(a,a+i))),n},t.prototype.getMatrix=function(){return this.buffer},t.prototype.isCropSupported=function(){return!0},t.prototype.crop=function(e,n,i,a){return r.prototype.crop.call(this,e,n,i,a),this},t.prototype.isRotateSupported=function(){return!0},t.prototype.rotateCounterClockwise=function(){return this.rotate(-90),this},t.prototype.rotateCounterClockwise45=function(){return this.rotate(-45),this},t.prototype.invert=function(){return new dh(this)},t.prototype.getTempCanvasElement=function(){if(this.tempCanvasElement===null){var e=this.canvas.ownerDocument.createElement("canvas");e.width=this.canvas.width,e.height=this.canvas.height,this.tempCanvasElement=e}return this.tempCanvasElement},t.prototype.rotate=function(e){var n=this.getTempCanvasElement();if(!n)throw new Error("Could not create a Canvas element.");var i=e*t.DEGREE_TO_RADIANS,a=this.canvas.width,o=this.canvas.height,s=Math.ceil(Math.abs(Math.cos(i))*a+Math.abs(Math.sin(i))*o),u=Math.ceil(Math.abs(Math.sin(i))*a+Math.abs(Math.cos(i))*o);n.width=s,n.height=u;var c=n.getContext("2d");if(!c)throw new Error("Could not create a Canvas Context element.");return c.translate(s/2,u/2),c.rotate(i),c.drawImage(this.canvas,a/-2,o/-2),this.buffer=t.makeBufferFromCanvasImageData(n),this},t.DEGREE_TO_RADIANS=Math.PI/180,t}(Vc);function Fb(){return typeof navigator!="undefined"}function mN(){return Fb()&&!!navigator.mediaDevices}function gN(){return!!(mN()&&navigator.mediaDevices.enumerateDevices)}var Tu=globalThis&&globalThis.__assign||function(){return Tu=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},Tu.apply(this,arguments)},Qr=globalThis&&globalThis.__awaiter||function(r,t,e,n){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=Promise))(function(a,o){function s(l){try{c(n.next(l))}catch(d){o(d)}}function u(l){try{c(n.throw(l))}catch(d){o(d)}}function c(l){l.done?a(l.value):i(l.value).then(s,u)}c((n=n.apply(r,t||[])).next())})},en=globalThis&&globalThis.__generator||function(r,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,i=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){e.label=c[1];break}if(c[0]===6&&e.label<a[1]){e.label=a[1],a=c;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(c);break}a[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(r,e)}catch(l){c=[6,l],i=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},e1=globalThis&&globalThis.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},vN={delayBetweenScanAttempts:500,delayBetweenScanSuccess:500,tryPlayVideoTimeout:5e3},Su=function(){function r(t,e,n){e===void 0&&(e=new Map),n===void 0&&(n={}),this.reader=t,this.hints=e,this.options=Tu(Tu({},vN),n)}return Object.defineProperty(r.prototype,"possibleFormats",{set:function(t){this.hints.set(Hr.POSSIBLE_FORMATS,t)},enumerable:!1,configurable:!0}),r.addVideoSource=function(t,e){try{t.srcObject=e}catch{console.error("got interrupted by new loading request")}},r.mediaStreamSetTorch=function(t,e){return Qr(this,void 0,void 0,function(){return en(this,function(n){switch(n.label){case 0:return[4,t.applyConstraints({advanced:[{fillLightMode:e?"flash":"off",torch:!!e}]})];case 1:return n.sent(),[2]}})})},r.mediaStreamIsTorchCompatible=function(t){var e,n,i=t.getVideoTracks();try{for(var a=e1(i),o=a.next();!o.done;o=a.next()){var s=o.value;if(r.mediaStreamIsTorchCompatibleTrack(s))return!0}}catch(u){e={error:u}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return!1},r.mediaStreamIsTorchCompatibleTrack=function(t){try{var e=t.getCapabilities();return"torch"in e}catch(n){return console.error(n),console.warn("Your browser may be not fully compatible with WebRTC and/or ImageCapture specs. Torch will not be available."),!1}},r.isVideoPlaying=function(t){return t.currentTime>0&&!t.paused&&t.readyState>2},r.getMediaElement=function(t,e){var n=document.getElementById(t);if(!n)throw new cn("element with id '".concat(t,"' not found"));if(n.nodeName.toLowerCase()!==e.toLowerCase())throw new cn("element with id '".concat(t,"' must be an ").concat(e," element"));return n},r.createVideoElement=function(t){if(t instanceof HTMLVideoElement)return t;if(typeof t=="string")return r.getMediaElement(t,"video");if(!t&&typeof document!="undefined"){var e=document.createElement("video");return e.width=200,e.height=200,e}throw new Error("Couldn't get videoElement from videoSource!")},r.prepareImageElement=function(t){if(t instanceof HTMLImageElement)return t;if(typeof t=="string")return r.getMediaElement(t,"img");if(typeof t=="undefined"){var e=document.createElement("img");return e.width=200,e.height=200,e}throw new Error("Couldn't get imageElement from imageSource!")},r.prepareVideoElement=function(t){var e=r.createVideoElement(t);return e.setAttribute("autoplay","true"),e.setAttribute("muted","true"),e.setAttribute("playsinline","true"),e},r.isImageLoaded=function(t){return!(!t.complete||t.naturalWidth===0)},r.createBinaryBitmapFromCanvas=function(t){var e=new pN(t),n=new Ly(e);return new Uy(n)},r.drawImageOnCanvas=function(t,e){t.drawImage(e,0,0)},r.getMediaElementDimensions=function(t){if(t instanceof HTMLVideoElement)return{height:t.videoHeight,width:t.videoWidth};if(t instanceof HTMLImageElement)return{height:t.naturalHeight||t.height,width:t.naturalWidth||t.width};throw new Error("Couldn't find the Source's dimensions!")},r.createCaptureCanvas=function(t){if(!t)throw new cn("Cannot create a capture canvas without a media element.");if(typeof document=="undefined")throw new Error(`The page "Document" is undefined, make sure you're running in a browser.`);var e=document.createElement("canvas"),n=r.getMediaElementDimensions(t),i=n.width,a=n.height;return e.style.width=i+"px",e.style.height=a+"px",e.width=i,e.height=a,e},r.tryPlayVideo=function(t){return Qr(this,void 0,void 0,function(){var e;return en(this,function(n){switch(n.label){case 0:if(t==null?void 0:t.ended)return console.error("Trying to play video that has ended."),[2,!1];if(r.isVideoPlaying(t))return console.warn("Trying to play video that is already playing."),[2,!0];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,t.play()];case 2:return n.sent(),[2,!0];case 3:return e=n.sent(),console.warn("It was not possible to play the video.",e),[2,!1];case 4:return[2]}})})},r.createCanvasFromMediaElement=function(t){var e=r.createCaptureCanvas(t),n=e.getContext("2d");if(!n)throw new Error("Couldn't find Canvas 2D Context.");return r.drawImageOnCanvas(n,t),e},r.createBinaryBitmapFromMediaElem=function(t){var e=r.createCanvasFromMediaElement(t);return r.createBinaryBitmapFromCanvas(e)},r.destroyImageElement=function(t){t.src="",t.removeAttribute("src"),t=void 0},r.listVideoInputDevices=function(){return Qr(this,void 0,void 0,function(){var t,e,n,i,a,o,s,u,c,l,d,h;return en(this,function(f){switch(f.label){case 0:if(!Fb())throw new Error("Can't enumerate devices, navigator is not present.");if(!gN())throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:t=f.sent(),e=[];try{for(n=e1(t),i=n.next();!i.done;i=n.next())a=i.value,o=a.kind==="video"?"videoinput":a.kind,o==="videoinput"&&(s=a.deviceId||a.id,u=a.label||"Video device ".concat(e.length+1),c=a.groupId,l={deviceId:s,label:u,kind:o,groupId:c},e.push(l))}catch(g){d={error:g}}finally{try{i&&!i.done&&(h=n.return)&&h.call(n)}finally{if(d)throw d.error}}return[2,e]}})})},r.findDeviceById=function(t){return Qr(this,void 0,void 0,function(){var e;return en(this,function(n){switch(n.label){case 0:return[4,r.listVideoInputDevices()];case 1:return e=n.sent(),e?[2,e.find(function(i){return i.deviceId===t})]:[2]}})})},r.cleanVideoSource=function(t){if(!!t){try{t.srcObject=null}catch{t.src=""}t&&t.removeAttribute("src")}},r.releaseAllStreams=function(){r.streamTracker.length!==0&&r.streamTracker.forEach(function(t){t.getTracks().forEach(function(e){return e.stop()})}),r.streamTracker=[]},r.playVideoOnLoadAsync=function(t,e){return Qr(this,void 0,void 0,function(){var n;return en(this,function(i){switch(i.label){case 0:return[4,r.tryPlayVideo(t)];case 1:return n=i.sent(),n?[2,!0]:[2,new Promise(function(a,o){var s=setTimeout(function(){r.isVideoPlaying(t)||(o(!1),t.removeEventListener("canplay",u))},e),u=function(){r.tryPlayVideo(t).then(function(c){clearTimeout(s),t.removeEventListener("canplay",u),a(c)})};t.addEventListener("canplay",u)})]}})})},r.attachStreamToVideo=function(t,e,n){return n===void 0&&(n=5e3),Qr(this,void 0,void 0,function(){var i;return en(this,function(a){switch(a.label){case 0:return i=r.prepareVideoElement(e),r.addVideoSource(i,t),[4,r.playVideoOnLoadAsync(i,n)];case 1:return a.sent(),[2,i]}})})},r._waitImageLoad=function(t){return new Promise(function(e,n){var i=1e4,a=setTimeout(function(){r.isImageLoaded(t)||(t.removeEventListener("load",o),n())},i),o=function(){clearTimeout(a),t.removeEventListener("load",o),e()};t.addEventListener("load",o)})},r.checkCallbackFnOrThrow=function(t){if(!t)throw new cn("`callbackFn` is a required parameter, you cannot capture results without it.")},r.disposeMediaStream=function(t){t.getVideoTracks().forEach(function(e){return e.stop()}),t=void 0},r.prototype.decode=function(t){var e=r.createCanvasFromMediaElement(t);return this.decodeFromCanvas(e)},r.prototype.decodeBitmap=function(t){return this.reader.decode(t,this.hints)},r.prototype.decodeFromCanvas=function(t){var e=r.createBinaryBitmapFromCanvas(t);return this.decodeBitmap(e)},r.prototype.decodeFromImageElement=function(t){return Qr(this,void 0,void 0,function(){var e;return en(this,function(n){switch(n.label){case 0:if(!t)throw new cn("An image element must be provided.");return e=r.prepareImageElement(t),[4,this._decodeOnLoadImage(e)];case 1:return[2,n.sent()]}})})},r.prototype.decodeFromImageUrl=function(t){return Qr(this,void 0,void 0,function(){var e;return en(this,function(n){switch(n.label){case 0:if(!t)throw new cn("An URL must be provided.");e=r.prepareImageElement(),e.src=t,n.label=1;case 1:return n.trys.push([1,,3,4]),[4,this.decodeFromImageElement(e)];case 2:return[2,n.sent()];case 3:return r.destroyImageElement(e),[7];case 4:return[2]}})})},r.prototype.decodeFromConstraints=function(t,e,n){return Qr(this,void 0,void 0,function(){var i,a;return en(this,function(o){switch(o.label){case 0:return r.checkCallbackFnOrThrow(n),[4,this.getUserMedia(t)];case 1:i=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.decodeFromStream(i,e,n)];case 3:return[2,o.sent()];case 4:throw a=o.sent(),r.disposeMediaStream(i),a;case 5:return[2]}})})},r.prototype.decodeFromStream=function(t,e,n){return Qr(this,void 0,void 0,function(){var i,a,o,s,u,c,l,d,h,f=this;return en(this,function(g){switch(g.label){case 0:return r.checkCallbackFnOrThrow(n),i=this.options.tryPlayVideoTimeout,[4,r.attachStreamToVideo(t,e,i)];case 1:return a=g.sent(),o=function(){r.disposeMediaStream(t),r.cleanVideoSource(a)},s=this.scan(a,n,o),u=t.getVideoTracks(),c=Tu(Tu({},s),{stop:function(){s.stop()},streamVideoConstraintsApply:function(m,p){return Qr(this,void 0,void 0,function(){var y,v,b,A,C,M,z;return en(this,function(W){switch(W.label){case 0:y=p?u.filter(p):u,W.label=1;case 1:W.trys.push([1,6,7,8]),v=e1(y),b=v.next(),W.label=2;case 2:return b.done?[3,5]:(A=b.value,[4,A.applyConstraints(m)]);case 3:W.sent(),W.label=4;case 4:return b=v.next(),[3,2];case 5:return[3,8];case 6:return C=W.sent(),M={error:C},[3,8];case 7:try{b&&!b.done&&(z=v.return)&&z.call(v)}finally{if(M)throw M.error}return[7];case 8:return[2]}})})},streamVideoConstraintsGet:function(m){return u.find(m).getConstraints()},streamVideoSettingsGet:function(m){return u.find(m).getSettings()},streamVideoCapabilitiesGet:function(m){return u.find(m).getCapabilities()}}),l=r.mediaStreamIsTorchCompatible(t),l&&(d=u==null?void 0:u.find(function(m){return r.mediaStreamIsTorchCompatibleTrack(m)}),h=function(m){return Qr(f,void 0,void 0,function(){return en(this,function(p){switch(p.label){case 0:return[4,r.mediaStreamSetTorch(d,m)];case 1:return p.sent(),[2]}})})},c.switchTorch=h,c.stop=function(){return Qr(f,void 0,void 0,function(){return en(this,function(m){switch(m.label){case 0:return s.stop(),[4,h(!1)];case 1:return m.sent(),[2]}})})}),[2,c]}})})},r.prototype.decodeFromVideoDevice=function(t,e,n){return Qr(this,void 0,void 0,function(){var i,a;return en(this,function(o){switch(o.label){case 0:return r.checkCallbackFnOrThrow(n),t?i={deviceId:{exact:t}}:i={facingMode:"environment"},a={video:i},[4,this.decodeFromConstraints(a,e,n)];case 1:return[2,o.sent()]}})})},r.prototype.decodeFromVideoElement=function(t,e){return Qr(this,void 0,void 0,function(){var n,i;return en(this,function(a){switch(a.label){case 0:if(r.checkCallbackFnOrThrow(e),!t)throw new cn("A video element must be provided.");return n=r.prepareVideoElement(t),i=this.options.tryPlayVideoTimeout,[4,r.playVideoOnLoadAsync(n,i)];case 1:return a.sent(),[2,this.scan(n,e)]}})})},r.prototype.decodeFromVideoUrl=function(t,e){return Qr(this,void 0,void 0,function(){var n,i,a,o;return en(this,function(s){switch(s.label){case 0:if(r.checkCallbackFnOrThrow(e),!t)throw new cn("An URL must be provided.");return n=r.prepareVideoElement(),n.src=t,i=function(){r.cleanVideoSource(n)},a=this.options.tryPlayVideoTimeout,[4,r.playVideoOnLoadAsync(n,a)];case 1:return s.sent(),o=this.scan(n,e,i),[2,o]}})})},r.prototype.decodeOnceFromConstraints=function(t,e){return Qr(this,void 0,void 0,function(){var n;return en(this,function(i){switch(i.label){case 0:return[4,this.getUserMedia(t)];case 1:return n=i.sent(),[4,this.decodeOnceFromStream(n,e)];case 2:return[2,i.sent()]}})})},r.prototype.decodeOnceFromStream=function(t,e){return Qr(this,void 0,void 0,function(){var n,i,a;return en(this,function(o){switch(o.label){case 0:return n=Boolean(e),[4,r.attachStreamToVideo(t,e)];case 1:i=o.sent(),o.label=2;case 2:return o.trys.push([2,,4,5]),[4,this.scanOneResult(i)];case 3:return a=o.sent(),[2,a];case 4:return n||r.cleanVideoSource(i),[7];case 5:return[2]}})})},r.prototype.decodeOnceFromVideoDevice=function(t,e){return Qr(this,void 0,void 0,function(){var n,i;return en(this,function(a){switch(a.label){case 0:return t?n={deviceId:{exact:t}}:n={facingMode:"environment"},i={video:n},[4,this.decodeOnceFromConstraints(i,e)];case 1:return[2,a.sent()]}})})},r.prototype.decodeOnceFromVideoElement=function(t){return Qr(this,void 0,void 0,function(){var e,n;return en(this,function(i){switch(i.label){case 0:if(!t)throw new cn("A video element must be provided.");return e=r.prepareVideoElement(t),n=this.options.tryPlayVideoTimeout,[4,r.playVideoOnLoadAsync(e,n)];case 1:return i.sent(),[4,this.scanOneResult(e)];case 2:return[2,i.sent()]}})})},r.prototype.decodeOnceFromVideoUrl=function(t){return Qr(this,void 0,void 0,function(){var e,n;return en(this,function(i){switch(i.label){case 0:if(!t)throw new cn("An URL must be provided.");e=r.prepareVideoElement(),e.src=t,n=this.decodeOnceFromVideoElement(e),i.label=1;case 1:return i.trys.push([1,,3,4]),[4,n];case 2:return[2,i.sent()];case 3:return r.cleanVideoSource(e),[7];case 4:return[2]}})})},r.prototype.scanOneResult=function(t,e,n,i){var a=this;return e===void 0&&(e=!0),n===void 0&&(n=!0),i===void 0&&(i=!0),new Promise(function(o,s){a.scan(t,function(u,c,l){if(u){o(u),l.stop();return}if(c){if(c instanceof ze&&e||c instanceof bn&&n||c instanceof ct&&i)return;l.stop(),s(c)}})})},r.prototype.scan=function(t,e,n){var i=this;r.checkCallbackFnOrThrow(e);var a=r.createCaptureCanvas(t),o;try{o=a.getContext("2d",{willReadFrequently:!0})}catch{o=a.getContext("2d")}if(!o)throw new Error("Couldn't create canvas for visual element scan.");var s=function(){o=void 0,a=void 0},u=!1,c,l=function(){u=!0,clearTimeout(c),s(),n&&n()},d={stop:l},h=function(){if(!u)try{r.drawImageOnCanvas(o,t);var f=i.decodeFromCanvas(a);e(f,void 0,d),c=setTimeout(h,i.options.delayBetweenScanSuccess)}catch(y){e(void 0,y,d);var g=y instanceof bn,m=y instanceof ct,p=y instanceof ze;if(g||m||p){c=setTimeout(h,i.options.delayBetweenScanAttempts);return}s(),n&&n(y)}};return h(),d},r.prototype._decodeOnLoadImage=function(t){return Qr(this,void 0,void 0,function(){var e;return en(this,function(n){switch(n.label){case 0:return e=r.isImageLoaded(t),e?[3,2]:[4,r._waitImageLoad(t)];case 1:n.sent(),n.label=2;case 2:return[2,this.decode(t)]}})})},r.prototype.getUserMedia=function(t){return Qr(this,void 0,void 0,function(){var e;return en(this,function(n){switch(n.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return e=n.sent(),r.streamTracker.push(e),[2,e]}})})},r.streamTracker=[],r}(),yN=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();(function(r){yN(t,r);function t(e,n){return r.call(this,new vh,e,n)||this}return t})(Su);var bN=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();(function(r){bN(t,r);function t(e,n){return r.call(this,new _u(e),e,n)||this}return t})(Su);var wN=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();(function(r){wN(t,r);function t(e,n){return r.call(this,new _h,e,n)||this}return t})(Su);var xN=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();(function(r){xN(t,r);function t(e,n){var i=this,a=new bb;return a.setHints(e),i=r.call(this,a,e,n)||this,i.reader=a,i}return Object.defineProperty(t.prototype,"possibleFormats",{set:function(e){this.hints.set(Hr.POSSIBLE_FORMATS,e),this.reader.setHints(this.hints)},enumerable:!1,configurable:!0}),t.prototype.decodeBitmap=function(e){return this.reader.decodeWithState(e)},t.prototype.setHints=function(e){this.hints=e,this.reader.setHints(this.hints)},t})(Su);var _N=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();(function(r){_N(t,r);function t(e,n){return r.call(this,new Th,e,n)||this}return t})(Su);var EN=globalThis&&globalThis.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),dX=function(r){EN(t,r);function t(e,n){return r.call(this,new Eh,e,n)||this}return t}(Su),Nb="http://www.w3.org/2000/svg",pX=function(){function r(){}return r.prototype.write=function(t,e,n,i){if(t.length===0)throw new Ut("Found empty contents");if(e<0||n<0)throw new Ut("Requested dimensions are too small: "+e+"x"+n);var a=$0.L,o=r.QUIET_ZONE_SIZE;if(i){if(i.get(Jo.ERROR_CORRECTION)!==void 0){var s=i.get(Jo.ERROR_CORRECTION).toString();a=$0.fromString(s)}i.get(Jo.MARGIN)!==void 0&&(o=Number.parseInt(i.get(Jo.MARGIN).toString(),10))}var u=DF.encode(t,a,i);return this.renderResult(u,e,n,o)},r.prototype.writeToDom=function(t,e,n,i,a){if(typeof t=="string"){var o=document.querySelector(t);if(!o)throw new Error("Could no find the target HTML element.");t=o}var s=this.write(e,n,i,a);t instanceof HTMLElement&&t.appendChild(s)},r.prototype.renderResult=function(t,e,n,i){var a=t.getMatrix();if(a===null)throw new yu;for(var o=a.getWidth(),s=a.getHeight(),u=o+i*2,c=s+i*2,l=Math.max(e,u),d=Math.max(n,c),h=Math.min(Math.floor(l/u),Math.floor(d/c)),f=Math.floor((l-o*h)/2),g=Math.floor((d-s*h)/2),m=this.createSVGElement(l,d),p=0,y=g;p<s;p++,y+=h)for(var v=0,b=f;v<o;v++,b+=h)if(a.get(v,p)===1){var A=this.createSvgRectElement(b,y,h,h);m.appendChild(A)}return m},r.prototype.createSVGElement=function(t,e){var n=document.createElementNS(Nb,"svg"),i=t.toString(),a=e.toString();return n.setAttribute("height",a),n.setAttribute("width",i),n.setAttribute("viewBox","0 0 "+i+" "+a),n},r.prototype.createSvgRectElement=function(t,e,n,i){var a=document.createElementNS(Nb,"rect");return a.setAttribute("x",t.toString()),a.setAttribute("y",e.toString()),a.setAttribute("height",n.toString()),a.setAttribute("width",i.toString()),a.setAttribute("fill","#000000"),a},r.QUIET_ZONE_SIZE=4,r}(),Mb={exports:{}};/*! Pickr 1.9.1 MIT | https://github.com/Simonwep/pickr */(function(r,t){(function(e,n){r.exports=n()})(self,()=>(()=>{var e={d:(x,w)=>{for(var _ in w)e.o(w,_)&&!e.o(x,_)&&Object.defineProperty(x,_,{enumerable:!0,get:w[_]})},o:(x,w)=>Object.prototype.hasOwnProperty.call(x,w),r:x=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(x,"__esModule",{value:!0})}},n={};e.d(n,{default:()=>T});var i={};function a(x,w,_,E,R={}){w instanceof HTMLCollection||w instanceof NodeList?w=Array.from(w):Array.isArray(w)||(w=[w]),Array.isArray(_)||(_=[_]);for(const F of w)for(const B of _)F[x](B,E,An({capture:!1},R));return Array.prototype.slice.call(arguments,1)}e.r(i),e.d(i,{adjustableInputNumbers:()=>h,createElementFromString:()=>u,createFromTemplate:()=>c,eventPath:()=>l,off:()=>s,on:()=>o,resolveElement:()=>d});const o=a.bind(null,"addEventListener"),s=a.bind(null,"removeEventListener");function u(x){const w=document.createElement("div");return w.innerHTML=x.trim(),w.firstElementChild}function c(x){const w=(E,R)=>{const F=E.getAttribute(R);return E.removeAttribute(R),F},_=(E,R={})=>{const F=w(E,":obj"),B=w(E,":ref"),X=F?R[F]={}:R;B&&(R[B]=E);for(const K of Array.from(E.children)){const te=w(K,":arr"),$=_(K,te?{}:X);te&&(X[te]||(X[te]=[])).push(Object.keys($).length?$:K)}return R};return _(u(x))}function l(x){let w=x.path||x.composedPath&&x.composedPath();if(w)return w;let _=x.target.parentElement;for(w=[x.target,_];_=_.parentElement;)w.push(_);return w.push(document,window),w}function d(x){return x instanceof Element?x:typeof x=="string"?x.split(/>>/g).reduce((w,_,E,R)=>(w=w.querySelector(_),E<R.length-1?w.shadowRoot:w),document):null}function h(x,w=_=>_){function _(E){const R=[.001,.01,.1][Number(E.shiftKey||2*E.ctrlKey)]*(E.deltaY<0?1:-1);let F=0,B=x.selectionStart;x.value=x.value.replace(/[\d.]+/g,(X,K)=>K<=B&&K+X.length>=B?(B=K,w(Number(X),R,F)):(F++,X)),x.focus(),x.setSelectionRange(B,B),E.preventDefault(),x.dispatchEvent(new Event("input"))}o(x,"focus",()=>o(window,"wheel",_,{passive:!1})),o(x,"blur",()=>s(window,"wheel",_))}const{min:f,max:g,floor:m,round:p}=Math;function y(x,w,_){w/=100,_/=100;const E=m(x=x/360*6),R=x-E,F=_*(1-w),B=_*(1-R*w),X=_*(1-(1-R)*w),K=E%6;return[255*[_,B,F,F,X,_][K],255*[X,_,_,B,F,F][K],255*[F,F,X,_,_,B][K]]}function v(x,w,_){const E=(2-(w/=100))*(_/=100)/2;return E!==0&&(w=E===1?0:E<.5?w*_/(2*E):w*_/(2-2*E)),[x,100*w,100*E]}function b(x,w,_){const E=f(x/=255,w/=255,_/=255),R=g(x,w,_),F=R-E;let B,X;if(F===0)B=X=0;else{X=F/R;const K=((R-x)/6+F/2)/F,te=((R-w)/6+F/2)/F,$=((R-_)/6+F/2)/F;x===R?B=$-te:w===R?B=1/3+K-$:_===R&&(B=2/3+te-K),B<0?B+=1:B>1&&(B-=1)}return[360*B,100*X,100*R]}function A(x,w,_,E){return w/=100,_/=100,[...b(255*(1-f(1,(x/=100)*(1-(E/=100))+E)),255*(1-f(1,w*(1-E)+E)),255*(1-f(1,_*(1-E)+E)))]}function C(x,w,_){w/=100;const E=2*(w*=(_/=100)<.5?_:1-_)/(_+w)*100,R=100*(_+w);return[x,isNaN(E)?0:E,R]}function M(x){return b(...x.match(/.{2}/g).map(w=>parseInt(w,16)))}function z(x){x=x.match(/^[a-zA-Z]+$/)?function(R){if(R.toLowerCase()==="black")return"#000";const F=document.createElement("canvas").getContext("2d");return F.fillStyle=R,F.fillStyle==="#000"?null:F.fillStyle}(x):x;const w={cmyk:/^cmyk\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)/i,rgba:/^rgba?\D+([\d.]+)(%?)\D+([\d.]+)(%?)\D+([\d.]+)(%?)\D*?(([\d.]+)(%?)|$)/i,hsla:/^hsla?\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D*?(([\d.]+)(%?)|$)/i,hsva:/^hsva?\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D*?(([\d.]+)(%?)|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},_=R=>R.map(F=>/^(|\d+)\.\d+|\d+$/.test(F)?Number(F):void 0);let E;e:for(const R in w)if(E=w[R].exec(x))switch(R){case"cmyk":{const[,F,B,X,K]=_(E);if(F>100||B>100||X>100||K>100)break e;return{values:A(F,B,X,K),type:R}}case"rgba":{let[,F,,B,,X,,,K]=_(E);if(F=E[2]==="%"?F/100*255:F,B=E[4]==="%"?B/100*255:B,X=E[6]==="%"?X/100*255:X,K=E[9]==="%"?K/100:K,F>255||B>255||X>255||K<0||K>1)break e;return{values:[...b(F,B,X),K],a:K,type:R}}case"hexa":{let[,F]=E;F.length!==4&&F.length!==3||(F=F.split("").map(K=>K+K).join(""));const B=F.substring(0,6);let X=F.substring(6);return X=X?parseInt(X,16)/255:void 0,{values:[...M(B),X],a:X,type:R}}case"hsla":{let[,F,B,X,,K]=_(E);if(K=E[6]==="%"?K/100:K,F>360||B>100||X>100||K<0||K>1)break e;return{values:[...C(F,B,X),K],a:K,type:R}}case"hsva":{let[,F,B,X,,K]=_(E);if(K=E[6]==="%"?K/100:K,F>360||B>100||X>100||K<0||K>1)break e;return{values:[F,B,X,K],a:K,type:R}}}return{values:null,type:null}}function W(x=0,w=0,_=0,E=1){const R=(B,X)=>(K=-1)=>X(~K?B.map(te=>Number(te.toFixed(K))):B),F={h:x,s:w,v:_,a:E,toHSVA(){const B=[F.h,F.s,F.v,F.a];return B.toString=R(B,X=>`hsva(${X[0]}, ${X[1]}%, ${X[2]}%, ${F.a})`),B},toHSLA(){const B=[...v(F.h,F.s,F.v),F.a];return B.toString=R(B,X=>`hsla(${X[0]}, ${X[1]}%, ${X[2]}%, ${F.a})`),B},toRGBA(){const B=[...y(F.h,F.s,F.v),F.a];return B.toString=R(B,X=>`rgba(${X[0]}, ${X[1]}, ${X[2]}, ${F.a})`),B},toCMYK(){const B=function(X,K,te){const $=y(X,K,te),q=$[0]/255,k=$[1]/255,L=$[2]/255,V=f(1-q,1-k,1-L);return[100*(V===1?0:(1-q-V)/(1-V)),100*(V===1?0:(1-k-V)/(1-V)),100*(V===1?0:(1-L-V)/(1-V)),100*V]}(F.h,F.s,F.v);return B.toString=R(B,X=>`cmyk(${X[0]}%, ${X[1]}%, ${X[2]}%, ${X[3]}%)`),B},toHEXA(){const B=function(K,te,$){return y(K,te,$).map(q=>p(q).toString(16).padStart(2,"0"))}(F.h,F.s,F.v),X=F.a>=1?"":Number((255*F.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return X&&B.push(X),B.toString=()=>`#${B.join("").toUpperCase()}`,B},clone:()=>W(F.h,F.s,F.v,F.a)};return F}const U=x=>Math.max(Math.min(x,1),0);function G(x){const w={options:Object.assign({lock:null,onchange:()=>0,onstop:()=>0},x),_keyboard(F){const{options:B}=w,{type:X,key:K}=F;if(document.activeElement===B.wrapper){const{lock:te}=w.options,$=K==="ArrowUp",q=K==="ArrowRight",k=K==="ArrowDown",L=K==="ArrowLeft";if(X==="keydown"&&($||q||k||L)){let V=0,J=0;te==="v"?V=$||q?1:-1:te==="h"?V=$||q?-1:1:(J=$?-1:k?1:0,V=L?-1:q?1:0),w.update(U(w.cache.x+.01*V),U(w.cache.y+.01*J)),F.preventDefault()}else K.startsWith("Arrow")&&(w.options.onstop(),F.preventDefault())}},_tapstart(F){o(document,["mouseup","touchend","touchcancel"],w._tapstop),o(document,["mousemove","touchmove"],w._tapmove),F.cancelable&&F.preventDefault(),w._tapmove(F)},_tapmove(F){const{options:B,cache:X}=w,{lock:K,element:te,wrapper:$}=B,q=$.getBoundingClientRect();let k=0,L=0;if(F){const re=F&&F.touches&&F.touches[0];k=F?(re||F).clientX:0,L=F?(re||F).clientY:0,k<q.left?k=q.left:k>q.left+q.width&&(k=q.left+q.width),L<q.top?L=q.top:L>q.top+q.height&&(L=q.top+q.height),k-=q.left,L-=q.top}else X&&(k=X.x*q.width,L=X.y*q.height);K!=="h"&&(te.style.left=`calc(${k/q.width*100}% - ${te.offsetWidth/2}px)`),K!=="v"&&(te.style.top=`calc(${L/q.height*100}% - ${te.offsetHeight/2}px)`),w.cache={x:k/q.width,y:L/q.height};const V=U(k/q.width),J=U(L/q.height);switch(K){case"v":return B.onchange(V);case"h":return B.onchange(J);default:return B.onchange(V,J)}},_tapstop(){w.options.onstop(),s(document,["mouseup","touchend","touchcancel"],w._tapstop),s(document,["mousemove","touchmove"],w._tapmove)},trigger(){w._tapmove()},update(F=0,B=0){const{left:X,top:K,width:te,height:$}=w.options.wrapper.getBoundingClientRect();w.options.lock==="h"&&(B=F),w._tapmove({clientX:X+te*F,clientY:K+$*B})},destroy(){const{options:F,_tapstart:B,_keyboard:X}=w;s(document,["keydown","keyup"],X),s([F.wrapper,F.element],"mousedown",B),s([F.wrapper,F.element],"touchstart",B,{passive:!1})}},{options:_,_tapstart:E,_keyboard:R}=w;return o([_.wrapper,_.element],"mousedown",E),o([_.wrapper,_.element],"touchstart",E,{passive:!1}),o(document,["keydown","keyup"],R),w}function ee(x={}){x=Object.assign({onchange:()=>0,className:"",elements:[]},x);const w=o(x.elements,"click",_=>{x.elements.forEach(E=>E.classList[_.target===E?"add":"remove"](x.className)),x.onchange(_),_.stopPropagation()});return{destroy:()=>s(...w)}}const I={variantFlipOrder:{start:"sme",middle:"mse",end:"ems"},positionFlipOrder:{top:"tbrl",right:"rltb",bottom:"btrl",left:"lrbt"},position:"bottom",margin:8,padding:0},O=(x,w,_)=>{const E=typeof x!="object"||x instanceof HTMLElement?An({reference:x,popper:w},_):x;return{update(R=E){const{reference:F,popper:B}=Object.assign(E,R);if(!B||!F)throw new Error("Popper- or reference-element missing.");return((X,K,te)=>{const{container:$,arrow:q,margin:k,padding:L,position:V,variantFlipOrder:J,positionFlipOrder:re}=An(An({container:document.documentElement.getBoundingClientRect()},I),te),{left:ae,top:j}=K.style;K.style.left="0",K.style.top="0";const ue=X.getBoundingClientRect(),Q=K.getBoundingClientRect(),P={t:ue.top-Q.height-k,b:ue.bottom+k,r:ue.right+k,l:ue.left-Q.width-k},H={vs:ue.left,vm:ue.left+ue.width/2-Q.width/2,ve:ue.left+ue.width-Q.width,hs:ue.top,hm:ue.bottom-ue.height/2-Q.height/2,he:ue.bottom-Q.height},[Z,oe="middle"]=V.split("-"),ce=re[Z],ne=J[oe],{top:se,left:fe,bottom:de,right:ve}=$;for(const Ee of ce){const Se=Ee==="t"||Ee==="b";let Ne=P[Ee];const[He,qe]=Se?["top","left"]:["left","top"],[et,Ue]=Se?[Q.height,Q.width]:[Q.width,Q.height],[Ge,tt]=Se?[de,ve]:[ve,de],[rt,lt]=Se?[se,fe]:[fe,se];if(!(Ne<rt||Ne+et+L>Ge))for(const Ft of ne){let Wt=H[(Se?"v":"h")+Ft];if(!(Wt<lt||Wt+Ue+L>tt)){if(Wt-=Q[qe],Ne-=Q[He],K.style[qe]=`${Wt}px`,K.style[He]=`${Ne}px`,q){const dt=Se?ue.width/2:ue.height/2,Pt=Ue/2,xt=dt>Pt,gt=Wt+{s:xt?Pt:dt,m:Pt,e:xt?Pt:Ue-dt}[Ft],hr=Ne+{t:et,b:0,r:0,l:et}[Ee];q.style[qe]=`${gt}px`,q.style[He]=`${hr}px`}return Ee+Ft}}}return K.style.left=ae,K.style.top=j,null})(F,B,E)}}},S=class{constructor(w){fi(this,"_initializingActive",!0);fi(this,"_recalc",!0);fi(this,"_nanopop",null);fi(this,"_root",null);fi(this,"_color",W());fi(this,"_lastColor",W());fi(this,"_swatchColors",[]);fi(this,"_setupAnimationFrame",null);fi(this,"_eventListener",{init:[],save:[],hide:[],show:[],clear:[],change:[],changestop:[],cancel:[],swatchselect:[]});this.options=w=Object.assign(An({},S.DEFAULT_OPTIONS),w);const{swatches:_,components:E,theme:R,sliders:F,lockOpacity:B,padding:X}=w;["nano","monolith"].includes(R)&&!F&&(w.sliders="h"),E.interaction||(E.interaction={});const{preview:K,opacity:te,hue:$,palette:q}=E;E.opacity=!B&&te,E.palette=q||K||te||$,this._preBuild(),this._buildComponents(),this._bindEvents(),this._finalBuild(),_&&_.length&&_.forEach(J=>this.addSwatch(J));const{button:k,app:L}=this._root;this._nanopop=O(k,L,{margin:X}),k.setAttribute("role","button"),k.setAttribute("aria-label",this._t("btn:toggle"));const V=this;this._setupAnimationFrame=requestAnimationFrame(function J(){if(!L.offsetWidth)return requestAnimationFrame(J);V.setColor(w.default),V._rePositioningPicker(),w.defaultRepresentation&&(V._representation=w.defaultRepresentation,V.setColorRepresentation(V._representation)),w.showAlways&&V.show(),V._initializingActive=!1,V._emit("init")})}_preBuild(){const{options:w}=this;for(const _ of["el","container"])w[_]=d(w[_]);this._root=(_=>{const{components:E,useAsButton:R,inline:F,appClass:B,theme:X,lockOpacity:K}=_.options,te=L=>L?"":'style="display:none" hidden',$=L=>_._t(L),q=c(`
<div :ref="root" class="pickr">
${R?"":'<button type="button" :ref="button" class="pcr-button"></button>'}
<div :ref="app" class="pcr-app ${B||""}" data-theme="${X}" ${F?'style="position: unset"':""} aria-label="${$("ui:dialog")}" role="window">
<div class="pcr-selection" ${te(E.palette)}>
<div :obj="preview" class="pcr-color-preview" ${te(E.preview)}>
<button type="button" :ref="lastColor" class="pcr-last-color" aria-label="${$("btn:last-color")}"></button>
<div :ref="currentColor" class="pcr-current-color"></div>
</div>
<div :obj="palette" class="pcr-color-palette">
<div :ref="picker" class="pcr-picker"></div>
<div :ref="palette" class="pcr-palette" tabindex="0" aria-label="${$("aria:palette")}" role="listbox"></div>
</div>
<div :obj="hue" class="pcr-color-chooser" ${te(E.hue)}>
<div :ref="picker" class="pcr-picker"></div>
<div :ref="slider" class="pcr-hue pcr-slider" tabindex="0" aria-label="${$("aria:hue")}" role="slider"></div>
</div>
<div :obj="opacity" class="pcr-color-opacity" ${te(E.opacity)}>
<div :ref="picker" class="pcr-picker"></div>
<div :ref="slider" class="pcr-opacity pcr-slider" tabindex="0" aria-label="${$("aria:opacity")}" role="slider"></div>
</div>
</div>
<div class="pcr-swatches ${E.palette?"":"pcr-last"}" :ref="swatches"></div>
<div :obj="interaction" class="pcr-interaction" ${te(Object.keys(E.interaction).length)}>
<input :ref="result" class="pcr-result" type="text" spellcheck="false" ${te(E.interaction.input)} aria-label="${$("aria:input")}">
<input :arr="options" class="pcr-type" data-type="HEXA" value="${K?"HEX":"HEXA"}" type="button" ${te(E.interaction.hex)}>
<input :arr="options" class="pcr-type" data-type="RGBA" value="${K?"RGB":"RGBA"}" type="button" ${te(E.interaction.rgba)}>
<input :arr="options" class="pcr-type" data-type="HSLA" value="${K?"HSL":"HSLA"}" type="button" ${te(E.interaction.hsla)}>
<input :arr="options" class="pcr-type" data-type="HSVA" value="${K?"HSV":"HSVA"}" type="button" ${te(E.interaction.hsva)}>
<input :arr="options" class="pcr-type" data-type="CMYK" value="CMYK" type="button" ${te(E.interaction.cmyk)}>
<input :ref="save" class="pcr-save" value="${$("btn:save")}" type="button" ${te(E.interaction.save)} aria-label="${$("aria:btn:save")}">
<input :ref="cancel" class="pcr-cancel" value="${$("btn:cancel")}" type="button" ${te(E.interaction.cancel)} aria-label="${$("aria:btn:cancel")}">
<input :ref="clear" class="pcr-clear" value="${$("btn:clear")}" type="button" ${te(E.interaction.clear)} aria-label="${$("aria:btn:clear")}">
</div>
</div>
</div>
`),k=q.interaction;return k.options.find(L=>!L.hidden&&!L.classList.add("active")),k.type=()=>k.options.find(L=>L.classList.contains("active")),q})(this),w.useAsButton&&(this._root.button=w.el),w.container.appendChild(this._root.root)}_finalBuild(){const w=this.options,_=this._root;if(w.container.removeChild(_.root),w.inline){const E=w.el.parentElement;w.el.nextSibling?E.insertBefore(_.app,w.el.nextSibling):E.appendChild(_.app)}else w.container.appendChild(_.app);w.useAsButton?w.inline&&w.el.remove():w.el.parentNode.replaceChild(_.root,w.el),w.disabled&&this.disable(),w.comparison||(_.button.style.transition="none",w.useAsButton||(_.preview.lastColor.style.transition="none")),this.hide()}_buildComponents(){const w=this,_=this.options.components,E=(w.options.sliders||"v").repeat(2),[R,F]=E.match(/^[vh]+$/g)?E:[],B=()=>this._color||(this._color=this._lastColor.clone()),X={palette:G({element:w._root.palette.picker,wrapper:w._root.palette.palette,onstop:()=>w._emit("changestop","slider",w),onchange(K,te){if(!_.palette)return;const $=B(),{_root:q,options:k}=w,{lastColor:L,currentColor:V}=q.preview;w._recalc&&($.s=100*K,$.v=100-100*te,$.v<0&&($.v=0),w._updateOutput("slider"));const J=$.toRGBA().toString(0);this.element.style.background=J,this.wrapper.style.background=`
linear-gradient(to top, rgba(0, 0, 0, ${$.a}), transparent),
linear-gradient(to left, hsla(${$.h}, 100%, 50%, ${$.a}), rgba(255, 255, 255, ${$.a}))
`,k.comparison?k.useAsButton||w._lastColor||L.style.setProperty("--pcr-color",J):(q.button.style.setProperty("--pcr-color",J),q.button.classList.remove("clear"));const re=$.toHEXA().toString();for(const{el:ae,color:j}of w._swatchColors)ae.classList[re===j.toHEXA().toString()?"add":"remove"]("pcr-active");V.style.setProperty("--pcr-color",J)}}),hue:G({lock:F==="v"?"h":"v",element:w._root.hue.picker,wrapper:w._root.hue.slider,onstop:()=>w._emit("changestop","slider",w),onchange(K){if(!_.hue||!_.palette)return;const te=B();w._recalc&&(te.h=360*K),this.element.style.backgroundColor=`hsl(${te.h}, 100%, 50%)`,X.palette.trigger()}}),opacity:G({lock:R==="v"?"h":"v",element:w._root.opacity.picker,wrapper:w._root.opacity.slider,onstop:()=>w._emit("changestop","slider",w),onchange(K){if(!_.opacity||!_.palette)return;const te=B();w._recalc&&(te.a=Math.round(100*K)/100),this.element.style.background=`rgba(0, 0, 0, ${te.a})`,X.palette.trigger()}}),selectable:ee({elements:w._root.interaction.options,className:"active",onchange(K){w._representation=K.target.getAttribute("data-type").toUpperCase(),w._recalc&&w._updateOutput("swatch")}})};this._components=X}_bindEvents(){const{_root:w,options:_}=this,E=[o(w.interaction.clear,"click",()=>this._clearColor()),o([w.interaction.cancel,w.preview.lastColor],"click",()=>{this.setHSVA(...(this._lastColor||this._color).toHSVA(),!0),this._emit("cancel")}),o(w.interaction.save,"click",()=>{!this.applyColor()&&!_.showAlways&&this.hide()}),o(w.interaction.result,["keyup","input"],R=>{this.setColor(R.target.value,!0)&&!this._initializingActive&&(this._emit("change",this._color,"input",this),this._emit("changestop","input",this)),R.stopImmediatePropagation()}),o(w.interaction.result,["focus","blur"],R=>{this._recalc=R.type==="blur",this._recalc&&this._updateOutput(null)}),o([w.palette.palette,w.palette.picker,w.hue.slider,w.hue.picker,w.opacity.slider,w.opacity.picker],["mousedown","touchstart"],()=>this._recalc=!0,{passive:!0})];if(!_.showAlways){const R=_.closeWithKey;E.push(o(w.button,"click",()=>this.isOpen()?this.hide():this.show()),o(document,"keyup",F=>this.isOpen()&&(F.key===R||F.code===R)&&this.hide()),o(document,["touchstart","mousedown"],F=>{this.isOpen()&&!l(F).some(B=>B===w.app||B===w.button)&&this.hide()},{capture:!0}))}if(_.adjustableNumbers){const R={rgba:[255,255,255,1],hsva:[360,100,100,1],hsla:[360,100,100,1],cmyk:[100,100,100,100]};h(w.interaction.result,(F,B,X)=>{const K=R[this.getColorRepresentation().toLowerCase()];if(K){const te=K[X],$=F+(te>=100?1e3*B:B);return $<=0?0:Number(($<te?$:te).toPrecision(3))}return F})}if(_.autoReposition&&!_.inline){let R=null;const F=this;E.push(o(window,["scroll","resize"],()=>{F.isOpen()&&(_.closeOnScroll&&F.hide(),R===null?(R=setTimeout(()=>R=null,100),requestAnimationFrame(function B(){F._rePositioningPicker(),R!==null&&requestAnimationFrame(B)})):(clearTimeout(R),R=setTimeout(()=>R=null,100)))},{capture:!0}))}this._eventBindings=E}_rePositioningPicker(){const{options:w}=this;if(!w.inline&&!this._nanopop.update({container:document.body.getBoundingClientRect(),position:w.position})){const _=this._root.app,E=_.getBoundingClientRect();_.style.top=(window.innerHeight-E.height)/2+"px",_.style.left=(window.innerWidth-E.width)/2+"px"}}_updateOutput(w){const{_root:_,_color:E,options:R}=this;if(_.interaction.type()){const F=`to${_.interaction.type().getAttribute("data-type")}`;_.interaction.result.value=typeof E[F]=="function"?E[F]().toString(R.outputPrecision):""}!this._initializingActive&&this._recalc&&this._emit("change",E,w,this)}_clearColor(w=!1){const{_root:_,options:E}=this;E.useAsButton||_.button.style.setProperty("--pcr-color","rgba(0, 0, 0, 0.15)"),_.button.classList.add("clear"),E.showAlways||this.hide(),this._lastColor=null,this._initializingActive||w||(this._emit("save",null),this._emit("clear"))}_parseLocalColor(w){const{values:_,type:E,a:R}=z(w),{lockOpacity:F}=this.options,B=R!==void 0&&R!==1;return _&&_.length===3&&(_[3]=void 0),{values:!_||F&&B?null:_,type:E}}_t(w){return this.options.i18n[w]||S.I18N_DEFAULTS[w]}_emit(w,..._){this._eventListener[w].forEach(E=>E(..._,this))}on(w,_){return this._eventListener[w].push(_),this}off(w,_){const E=this._eventListener[w]||[],R=E.indexOf(_);return~R&&E.splice(R,1),this}addSwatch(w){const{values:_}=this._parseLocalColor(w);if(_){const{_swatchColors:E,_root:R}=this,F=W(..._),B=u(`<button type="button" style="--pcr-color: ${F.toRGBA().toString(0)}" aria-label="${this._t("btn:swatch")}"/>`);return R.swatches.appendChild(B),E.push({el:B,color:F}),this._eventBindings.push(o(B,"click",()=>{this.setHSVA(...F.toHSVA(),!0),this._emit("swatchselect",F),this._emit("change",F,"swatch",this)})),!0}return!1}removeSwatch(w){const _=this._swatchColors[w];if(_){const{el:E}=_;return this._root.swatches.removeChild(E),this._swatchColors.splice(w,1),!0}return!1}applyColor(w=!1){const{preview:_,button:E}=this._root,R=this._color.toRGBA().toString(0);return _.lastColor.style.setProperty("--pcr-color",R),this.options.useAsButton||E.style.setProperty("--pcr-color",R),E.classList.remove("clear"),this._lastColor=this._color.clone(),this._initializingActive||w||this._emit("save",this._color),this}destroy(){cancelAnimationFrame(this._setupAnimationFrame),this._eventBindings.forEach(w=>s(...w)),Object.keys(this._components).forEach(w=>this._components[w].destroy())}destroyAndRemove(){this.destroy();const{root:w,app:_}=this._root;w.parentElement&&w.parentElement.removeChild(w),_.parentElement.removeChild(_),Object.keys(this).forEach(E=>this[E]=null)}hide(){return!!this.isOpen()&&(this._root.app.classList.remove("visible"),this._emit("hide"),!0)}show(){return!this.options.disabled&&!this.isOpen()&&(this._root.app.classList.add("visible"),this._rePositioningPicker(),this._emit("show",this._color),this)}isOpen(){return this._root.app.classList.contains("visible")}setHSVA(w=360,_=0,E=0,R=1,F=!1){const B=this._recalc;if(this._recalc=!1,w<0||w>360||_<0||_>100||E<0||E>100||R<0||R>1)return!1;this._color=W(w,_,E,R);const{hue:X,opacity:K,palette:te}=this._components;return X.update(w/360),K.update(R),te.update(_/100,1-E/100),F||this.applyColor(),B&&this._updateOutput(),this._recalc=B,!0}setColor(w,_=!1){if(w===null)return this._clearColor(_),!0;const{values:E,type:R}=this._parseLocalColor(w);if(E){const F=R.toUpperCase(),{options:B}=this._root.interaction,X=B.find(K=>K.getAttribute("data-type")===F);if(X&&!X.hidden)for(const K of B)K.classList[K===X?"add":"remove"]("active");return!!this.setHSVA(...E,_)&&this.setColorRepresentation(F)}return!1}setColorRepresentation(w){return w=w.toUpperCase(),!!this._root.interaction.options.find(_=>_.getAttribute("data-type").startsWith(w)&&!_.click())}getColorRepresentation(){return this._representation}getColor(){return this._color}getSelectedColor(){return this._lastColor}getRoot(){return this._root}disable(){return this.hide(),this.options.disabled=!0,this._root.button.classList.add("disabled"),this}enable(){return this.options.disabled=!1,this._root.button.classList.remove("disabled"),this}};let T=S;return fi(T,"utils",i),fi(T,"version","1.9.1"),fi(T,"I18N_DEFAULTS",{"ui:dialog":"color picker dialog","btn:toggle":"toggle color picker dialog","btn:swatch":"color swatch","btn:last-color":"use previous color","btn:save":"Save","btn:cancel":"Cancel","btn:clear":"Clear","aria:btn:save":"save and close","aria:btn:cancel":"cancel and close","aria:btn:clear":"clear and close","aria:input":"color input field","aria:palette":"color selection area","aria:hue":"hue selection slider","aria:opacity":"selection slider"}),fi(T,"DEFAULT_OPTIONS",{appClass:null,theme:"classic",useAsButton:!1,padding:8,disabled:!1,comparison:!0,closeOnScroll:!1,outputPrecision:0,lockOpacity:!1,autoReposition:!0,container:"body",components:{interaction:{}},i18n:{},swatches:null,inline:!1,sliders:null,default:"#42445a",defaultRepresentation:null,position:"bottom-middle",adjustableNumbers:!0,showAlways:!1,closeWithKey:"Escape"}),fi(T,"create",w=>new S(w)),n=n.default})())})(Mb);var mX=Zv(Mb.exports),Bb={exports:{}};/*! ExcelJS 19-10-2023 */(function(r,t){(function(e){r.exports=e()})(function(){return function e(n,i,a){function o(c,l){if(!i[c]){if(!n[c]){var d=typeof Vo=="function"&&Vo;if(!l&&d)return d(c,!0);if(s)return s(c,!0);var h=new Error("Cannot find module '"+c+"'");throw h.code="MODULE_NOT_FOUND",h}var f=i[c]={exports:{}};n[c][0].call(f.exports,function(g){return o(n[c][1][g]||g)},f,f.exports,e,n,i,a)}return i[c].exports}for(var s=typeof Vo=="function"&&Vo,u=0;u<a.length;u++)o(a[u]);return o}({1:[function(e,n,i){const a=e("fs"),o=e("fast-csv"),s=e("dayjs/plugin/customParseFormat"),u=e("dayjs/plugin/utc"),c=e("dayjs").extend(s).extend(u),l=e("../utils/stream-buf"),{fs:{exists:d}}=e("../utils/utils"),h={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};n.exports=class{constructor(f){this.workbook=f,this.worksheet=null}async readFile(f,g){if(g=g||{},!await d(f))throw new Error("File not found: "+f);const m=a.createReadStream(f),p=await this.read(m,g);return m.close(),p}read(f,g){return g=g||{},new Promise((m,p)=>{const y=this.workbook.addWorksheet(g.sheetName),v=g.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],b=g.map||function(C){if(C==="")return null;const M=Number(C);if(!Number.isNaN(M)&&M!==1/0)return M;const z=v.reduce((U,G)=>{if(U)return U;const ee=c(C,G,!0);return ee.isValid()?ee:null},null);if(z)return new Date(z.valueOf());const W=h[C];return W!==void 0?W:C},A=o.parse(g.parserOptions).on("data",C=>{y.addRow(C.map(b))}).on("end",()=>{A.emit("worksheet",y)});A.on("worksheet",m).on("error",p),f.pipe(A)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(f,g){return new Promise((m,p)=>{g=g||{};const y=this.workbook.getWorksheet(g.sheetName||g.sheetId),v=o.format(g.formatterOptions);f.on("finish",()=>{m()}),v.on("error",p),v.pipe(f);const{dateFormat:b,dateUTC:A}=g,C=g.map||(W=>{if(W){if(W.text||W.hyperlink)return W.hyperlink||W.text||"";if(W.formula||W.result)return W.result||"";if(W instanceof Date)return b?A?c.utc(W).format(b):c(W).format(b):A?c.utc(W).format():c(W).format();if(W.error)return W.error;if(typeof W=="object")return JSON.stringify(W)}return W}),M=g.includeEmptyRows===void 0||g.includeEmptyRows;let z=1;y&&y.eachRow((W,U)=>{if(M)for(;z++<U-1;)v.write([]);const{values:G}=W;G.shift(),v.write(G.map(C)),z=U}),v.end()})}writeFile(f,g){const m={encoding:(g=g||{}).encoding||"utf8"},p=a.createWriteStream(f,m);return this.write(p,g)}async writeBuffer(f){const g=new l;return await this.write(g,f),g.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(e,n,i){const a=e("../utils/col-cache");class o{constructor(u,c){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=u,c)if(typeof c=="string"){const d=a.decodeAddress(c);this.nativeCol=d.col+l,this.nativeColOff=0,this.nativeRow=d.row+l,this.nativeRowOff=0}else c.nativeCol!==void 0?(this.nativeCol=c.nativeCol||0,this.nativeColOff=c.nativeColOff||0,this.nativeRow=c.nativeRow||0,this.nativeRowOff=c.nativeRowOff||0):c.col!==void 0?(this.col=c.col+l,this.row=c.row+l):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(u){return u instanceof o||u==null?u:new o(u)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(u){this.nativeCol=Math.floor(u),this.nativeColOff=Math.floor((u-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(u){this.nativeRow=Math.floor(u),this.nativeRowOff=Math.floor((u-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(u){this.nativeCol=u.nativeCol,this.nativeColOff=u.nativeColOff,this.nativeRow=u.nativeRow,this.nativeRowOff=u.nativeRowOff}}n.exports=o},{"../utils/col-cache":19}],3:[function(e,n,i){const a=e("../utils/col-cache"),o=e("../utils/under-dash"),s=e("./enums"),{slideFormula:u}=e("../utils/shared-formula"),c=e("./note");class l{constructor(f,g,m){if(!f||!g)throw new Error("A Cell needs a Row");this._row=f,this._column=g,a.validateAddress(m),this._address=m,this._value=d.create(l.Types.Null,this),this.style=this._mergeStyle(f.style,g.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(f){this.style.numFmt=f}get font(){return this.style.font}set font(f){this.style.font=f}get alignment(){return this.style.alignment}set alignment(f){this.style.alignment=f}get border(){return this.style.border}set border(f){this.style.border=f}get fill(){return this.style.fill}set fill(f){this.style.fill=f}get protection(){return this.style.protection}set protection(f){this.style.protection=f}_mergeStyle(f,g,m){const p=f&&f.numFmt||g&&g.numFmt;p&&(m.numFmt=p);const y=f&&f.font||g&&g.font;y&&(m.font=y);const v=f&&f.alignment||g&&g.alignment;v&&(m.alignment=v);const b=f&&f.border||g&&g.border;b&&(m.border=b);const A=f&&f.fill||g&&g.fill;A&&(m.fill=A);const C=f&&f.protection||g&&g.protection;return C&&(m.protection=C),m}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===l.Types.Merge}merge(f,g){this._value.release(),this._value=d.create(l.Types.Merge,this,f),g||(this.style=f.style)}unmerge(){this.type===l.Types.Merge&&(this._value.release(),this._value=d.create(l.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(f){return this._value.type===l.Types.Merge&&this._value.isMergedTo(f)}get master(){return this.type===l.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===l.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(f){this.type!==l.Types.Merge?(this._value.release(),this._value=d.create(d.getType(f),this,f)):this._value.master.value=f}get note(){return this._comment&&this._comment.note}set note(f){this._comment=new c(f)}get text(){return this._value.toString()}get html(){return o.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(f){this.type===l.Types.String&&(this._value=d.create(l.Types.Hyperlink,this,{text:this._value.value,hyperlink:f}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:f}=this._row;return{sheetName:f.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(f){this.names=[f]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(f){const{definedNames:g}=this.workbook;g.removeAllNames(this.fullAddress),f.forEach(m=>{g.addEx(this.fullAddress,m)})}addName(f){this.workbook.definedNames.addEx(this.fullAddress,f)}removeName(f){this.workbook.definedNames.removeEx(this.fullAddress,f)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(f){this._dataValidations.add(this.address,f)}get model(){const{model:f}=this._value;return f.style=this.style,this._comment&&(f.comment=this._comment.model),f}set model(f){if(this._value.release(),this._value=d.create(f.type,this),this._value.model=f,f.comment)switch(f.comment.type){case"note":this._comment=c.fromModel(f.comment)}f.style?this.style=f.style:this.style={}}}l.Types=s.ValueType;const d={getType:h=>h==null?l.Types.Null:h instanceof String||typeof h=="string"?l.Types.String:typeof h=="number"?l.Types.Number:typeof h=="boolean"?l.Types.Boolean:h instanceof Date?l.Types.Date:h.text&&h.hyperlink?l.Types.Hyperlink:h.formula||h.sharedFormula?l.Types.Formula:h.richText?l.Types.RichText:h.sharedString?l.Types.SharedString:h.error?l.Types.Error:l.Types.JSON,types:[{t:l.Types.Null,f:class{constructor(h){this.model={address:h.address,type:l.Types.Null}}get value(){return null}set value(h){}get type(){return l.Types.Null}get effectiveType(){return l.Types.Null}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return""}release(){}toString(){return""}}},{t:l.Types.Number,f:class{constructor(h,f){this.model={address:h.address,type:l.Types.Number,value:f}}get value(){return this.model.value}set value(h){this.model.value=h}get type(){return l.Types.Number}get effectiveType(){return l.Types.Number}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.String,f:class{constructor(h,f){this.model={address:h.address,type:l.Types.String,value:f}}get value(){return this.model.value}set value(h){this.model.value=h}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:l.Types.Date,f:class{constructor(h,f){this.model={address:h.address,type:l.Types.Date,value:f}}get value(){return this.model.value}set value(h){this.model.value=h}get type(){return l.Types.Date}get effectiveType(){return l.Types.Date}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Hyperlink,f:class{constructor(h,f){this.model={address:h.address,type:l.Types.Hyperlink,text:f?f.text:void 0,hyperlink:f?f.hyperlink:void 0},f&&f.tooltip&&(this.model.tooltip=f.tooltip)}get value(){const h={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(h.tooltip=this.model.tooltip),h}set value(h){this.model={text:h.text,hyperlink:h.hyperlink},h.tooltip&&(this.model.tooltip=h.tooltip)}get text(){return this.model.text}set text(h){this.model.text=h}get hyperlink(){return this.model.hyperlink}set hyperlink(h){this.model.hyperlink=h}get type(){return l.Types.Hyperlink}get effectiveType(){return l.Types.Hyperlink}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:l.Types.Formula,f:class{constructor(h,f){this.cell=h,this.model={address:h.address,type:l.Types.Formula,shareType:f?f.shareType:void 0,ref:f?f.ref:void 0,formula:f?f.formula:void 0,sharedFormula:f?f.sharedFormula:void 0,result:f?f.result:void 0}}_copyModel(h){const f={},g=m=>{const p=h[m];p&&(f[m]=p)};return g("formula"),g("result"),g("ref"),g("shareType"),g("sharedFormula"),f}get value(){return this._copyModel(this.model)}set value(h){this.model=this._copyModel(h)}validate(h){switch(d.getType(h)){case l.Types.Null:case l.Types.String:case l.Types.Number:case l.Types.Date:break;case l.Types.Hyperlink:case l.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(h){this.model.formula=h}get formulaType(){return this.model.formula?s.FormulaType.Master:this.model.sharedFormula?s.FormulaType.Shared:s.FormulaType.None}get result(){return this.model.result}set result(h){this.model.result=h}get type(){return l.Types.Formula}get effectiveType(){const h=this.model.result;return h==null?s.ValueType.Null:h instanceof String||typeof h=="string"?s.ValueType.String:typeof h=="number"?s.ValueType.Number:h instanceof Date?s.ValueType.Date:h.text&&h.hyperlink?s.ValueType.Hyperlink:h.formula?s.ValueType.Formula:s.ValueType.Null}get address(){return this.model.address}set address(h){this.model.address=h}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:h}=this.cell,f=h.findCell(this.model.sharedFormula);this._translatedFormula=f&&u(f.formula,f.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:l.Types.Merge,f:class{constructor(h,f){this.model={address:h.address,type:l.Types.Merge,master:f?f.address:void 0},this._master=f,f&&f.addMergeRef()}get value(){return this._master.value}set value(h){h instanceof l?(this._master&&this._master.releaseMergeRef(),h.addMergeRef(),this._master=h):this._master.value=h}isMergedTo(h){return h===this._master}get master(){return this._master}get type(){return l.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:l.Types.JSON,f:class{constructor(h,f){this.model={address:h.address,type:l.Types.String,value:JSON.stringify(f),rawValue:f}}get value(){return this.model.rawValue}set value(h){this.model.rawValue=h,this.model.value=JSON.stringify(h)}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:l.Types.SharedString,f:class{constructor(h,f){this.model={address:h.address,type:l.Types.SharedString,value:f}}get value(){return this.model.value}set value(h){this.model.value=h}get type(){return l.Types.SharedString}get effectiveType(){return l.Types.SharedString}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.RichText,f:class{constructor(h,f){this.model={address:h.address,type:l.Types.String,value:f}}get value(){return this.model.value}set value(h){this.model.value=h}toString(){return this.model.value.richText.map(h=>h.text).join("")}get type(){return l.Types.RichText}get effectiveType(){return l.Types.RichText}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:l.Types.Boolean,f:class{constructor(h,f){this.model={address:h.address,type:l.Types.Boolean,value:f}}get value(){return this.model.value}set value(h){this.model.value=h}get type(){return l.Types.Boolean}get effectiveType(){return l.Types.Boolean}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Error,f:class{constructor(h,f){this.model={address:h.address,type:l.Types.Error,value:f}}get value(){return this.model.value}set value(h){this.model.value=h}get type(){return l.Types.Error}get effectiveType(){return l.Types.Error}get address(){return this.model.address}set address(h){this.model.address=h}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((h,f)=>(h[f.t]=f.f,h),[]),create(h,f,g){const m=this.types[h];if(!m)throw new Error("Could not create Value of type "+h);return new m(f,g)}};n.exports=l},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,n,i){const a=e("../utils/under-dash"),o=e("./enums"),s=e("../utils/col-cache");class u{constructor(l,d,h){this._worksheet=l,this._number=d,h!==!1&&(this.defn=h)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return s.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(l){l?(this.key=l.key,this.width=l.width!==void 0?l.width:9,this.outlineLevel=l.outlineLevel,l.style?this.style=l.style:this.style={},this.header=l.header,this._hidden=!!l.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(l){l!==void 0?(this._header=l,this.headers.forEach((d,h)=>{this._worksheet.getCell(h+1,this.number).value=d})):this._header=void 0}get key(){return this._key}set key(l){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=l,l&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(l){this._hidden=l}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(l){this._outlineLevel=l}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(l){return this.width===l.width&&this.hidden===l.hidden&&this.outlineLevel===l.outlineLevel&&a.isEqual(this.style,l.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const l=this.style;return!l||!(l.font||l.numFmt||l.alignment||l.border||l.fill||l.protection)}get headerCount(){return this.headers.length}eachCell(l,d){const h=this.number;d||(d=l,l=null),this._worksheet.eachRow(l,(f,g)=>{d(f.getCell(h),g)})}get values(){const l=[];return this.eachCell((d,h)=>{d&&d.type!==o.ValueType.Null&&(l[h]=d.value)}),l}set values(l){if(!l)return;const d=this.number;let h=0;l.hasOwnProperty("0")&&(h=1),l.forEach((f,g)=>{this._worksheet.getCell(g+h,d).value=f})}_applyStyle(l,d){return this.style[l]=d,this.eachCell(h=>{h[l]=d}),d}get numFmt(){return this.style.numFmt}set numFmt(l){this._applyStyle("numFmt",l)}get font(){return this.style.font}set font(l){this._applyStyle("font",l)}get alignment(){return this.style.alignment}set alignment(l){this._applyStyle("alignment",l)}get protection(){return this.style.protection}set protection(l){this._applyStyle("protection",l)}get border(){return this.style.border}set border(l){this._applyStyle("border",l)}get fill(){return this.style.fill}set fill(l){this._applyStyle("fill",l)}static toModel(l){const d=[];let h=null;return l&&l.forEach((f,g)=>{f.isDefault?h&&(h=null):h&&f.equivalentTo(h)?h.max=g+1:(h={min:g+1,max:g+1,width:f.width!==void 0?f.width:9,style:f.style,isCustomWidth:f.isCustomWidth,hidden:f.hidden,outlineLevel:f.outlineLevel,collapsed:f.collapsed},d.push(h))}),d.length?d:void 0}static fromModel(l,d){const h=[];let f=1,g=0;for(d=(d=d||[]).sort(function(m,p){return m.min-p.min});g<d.length;){const m=d[g++];for(;f<m.min;)h.push(new u(l,f++));for(;f<=m.max;)h.push(new u(l,f++,m))}return h.length?h:null}}n.exports=u},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(e,n,i){n.exports=class{constructor(a){this.model=a||{}}add(a,o){return this.model[a]=o}find(a){return this.model[a]}remove(a){this.model[a]=void 0}}},{}],6:[function(e,n,i){const a=e("../utils/under-dash"),o=e("../utils/col-cache"),s=e("../utils/cell-matrix"),u=e("./range"),c=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;n.exports=class{constructor(){this.matrixMap={}}getMatrix(l){return this.matrixMap[l]||(this.matrixMap[l]=new s)}add(l,d){const h=o.decodeEx(l);this.addEx(h,d)}addEx(l,d){const h=this.getMatrix(d);if(l.top)for(let f=l.left;f<=l.right;f++)for(let g=l.top;g<=l.bottom;g++){const m={sheetName:l.sheetName,address:o.n2l(f)+g,row:g,col:f};h.addCellEx(m)}else h.addCellEx(l)}remove(l,d){const h=o.decodeEx(l);this.removeEx(h,d)}removeEx(l,d){this.getMatrix(d).removeCellEx(l)}removeAllNames(l){a.each(this.matrixMap,d=>{d.removeCellEx(l)})}forEach(l){a.each(this.matrixMap,(d,h)=>{d.forEach(f=>{l(h,f)})})}getNames(l){return this.getNamesEx(o.decodeEx(l))}getNamesEx(l){return a.map(this.matrixMap,(d,h)=>d.findCellEx(l)&&h).filter(Boolean)}_explore(l,d){d.mark=!1;const{sheetName:h}=d,f=new u(d.row,d.col,d.row,d.col,h);let g,m;function p(v,b){const A=l.findCellAt(h,v,d.col);return!(!A||!A.mark)&&(f[b]=v,A.mark=!1,!0)}for(m=d.row-1;p(m,"top");m--);for(m=d.row+1;p(m,"bottom");m++);function y(v,b){const A=[];for(m=f.top;m<=f.bottom;m++){const C=l.findCellAt(h,m,v);if(!C||!C.mark)return!1;A.push(C)}f[b]=v;for(let C=0;C<A.length;C++)A[C].mark=!1;return!0}for(g=d.col-1;y(g,"left");g--);for(g=d.col+1;y(g,"right");g++);return f}getRanges(l,d){return(d=d||this.matrixMap[l])?(d.forEach(h=>{h.mark=!0}),{name:l,ranges:d.map(h=>h.mark&&this._explore(d,h)).filter(Boolean).map(h=>h.$shortRange)}):{name:l,ranges:[]}}normaliseMatrix(l,d){l.forEachInSheet(d,(h,f,g)=>{h&&(h.row===f&&h.col===g||(h.row=f,h.col=g,h.address=o.n2l(g)+f))})}spliceRows(l,d,h,f){a.each(this.matrixMap,g=>{g.spliceRows(l,d,h,f),this.normaliseMatrix(g,l)})}spliceColumns(l,d,h,f){a.each(this.matrixMap,g=>{g.spliceColumns(l,d,h,f),this.normaliseMatrix(g,l)})}get model(){return a.map(this.matrixMap,(l,d)=>this.getRanges(d,l)).filter(l=>l.ranges.length)}set model(l){const d=this.matrixMap={};l.forEach(h=>{const f=d[h.name]=new s;h.ranges.forEach(g=>{c.test(g.split("!").pop()||"")&&f.addCell(g)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,n,i){n.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,n,i){const a=e("../utils/col-cache"),o=e("./anchor");n.exports=class{constructor(s,u){this.worksheet=s,this.model=u}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(s){let{type:u,imageId:c,range:l,hyperlinks:d}=s;if(this.type=u,this.imageId=c,u==="image")if(typeof l=="string"){const h=a.decode(l);this.range={tl:new o(this.worksheet,{col:h.left,row:h.top},-1),br:new o(this.worksheet,{col:h.right,row:h.bottom},0),editAs:"oneCell"}}else this.range={tl:new o(this.worksheet,l.tl,0),br:l.br&&new o(this.worksheet,l.br,0),ext:l.ext,editAs:l.editAs,hyperlinks:d||l.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,n,i){const a=e("../utils/under-dash");class o{constructor(u){this.note=u}get model(){let u=null;switch(typeof this.note){case"string":u={type:"note",note:{texts:[{text:this.note}]}};break;default:u={type:"note",note:this.note}}return a.deepMerge({},o.DEFAULT_CONFIGS,u)}set model(u){const{note:c}=u,{texts:l}=c;l.length===1&&Object.keys(l[0]).length===1?this.note=l[0].text:this.note=c}static fromModel(u){const c=new o;return c.model=u,c}}o.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},n.exports=o},{"../utils/under-dash":26}],10:[function(e,n,i){const a=e("../utils/col-cache");class o{constructor(){this.decode(arguments)}setTLBR(u,c,l,d,h){if(arguments.length<4){const f=a.decodeAddress(u),g=a.decodeAddress(c);this.model={top:Math.min(f.row,g.row),left:Math.min(f.col,g.col),bottom:Math.max(f.row,g.row),right:Math.max(f.col,g.col),sheetName:l},this.setTLBR(f.row,f.col,g.row,g.col,h)}else this.model={top:Math.min(u,l),left:Math.min(c,d),bottom:Math.max(u,l),right:Math.max(c,d),sheetName:h}}decode(u){switch(u.length){case 5:this.setTLBR(u[0],u[1],u[2],u[3],u[4]);break;case 4:this.setTLBR(u[0],u[1],u[2],u[3]);break;case 3:this.setTLBR(u[0],u[1],u[2]);break;case 2:this.setTLBR(u[0],u[1]);break;case 1:{const c=u[0];if(c instanceof o)this.model={top:c.model.top,left:c.model.left,bottom:c.model.bottom,right:c.model.right,sheetName:c.sheetName};else if(c instanceof Array)this.decode(c);else if(c.top&&c.left&&c.bottom&&c.right)this.model={top:c.top,left:c.left,bottom:c.bottom,right:c.right,sheetName:c.sheetName};else{const l=a.decodeEx(c);l.top?this.model={top:l.top,left:l.left,bottom:l.bottom,right:l.right,sheetName:l.sheetName}:this.model={top:l.row,left:l.col,bottom:l.row,right:l.col,sheetName:l.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+u.length)}}get top(){return this.model.top||1}set top(u){this.model.top=u}get left(){return this.model.left||1}set left(u){this.model.left=u}get bottom(){return this.model.bottom||1}set bottom(u){this.model.bottom=u}get right(){return this.model.right||1}set right(u){this.model.right=u}get sheetName(){return this.model.sheetName}set sheetName(u){this.model.sheetName=u}get _serialisedSheetName(){const{sheetName:u}=this.model;return u?/^[a-zA-Z0-9]*$/.test(u)?u+"!":`'${u}'!`:""}expand(u,c,l,d){(!this.model.top||u<this.top)&&(this.top=u),(!this.model.left||c<this.left)&&(this.left=c),(!this.model.bottom||l>this.bottom)&&(this.bottom=l),(!this.model.right||d>this.right)&&(this.right=d)}expandRow(u){if(u){const{dimensions:c,number:l}=u;c&&this.expand(l,c.min,l,c.max)}}expandToAddress(u){const c=a.decodeEx(u);this.expand(c.row,c.col,c.row,c.col)}get tl(){return a.n2l(this.left)+this.top}get $t$l(){return`$${a.n2l(this.left)}$${this.top}`}get br(){return a.n2l(this.right)+this.bottom}get $b$r(){return`$${a.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(u){return(!u.sheetName||!this.sheetName||u.sheetName===this.sheetName)&&!(u.bottom<this.top)&&!(u.top>this.bottom)&&!(u.right<this.left)&&!(u.left>this.right)}contains(u){const c=a.decodeEx(u);return this.containsEx(c)}containsEx(u){return(!u.sheetName||!this.sheetName||u.sheetName===this.sheetName)&&u.row>=this.top&&u.row<=this.bottom&&u.col>=this.left&&u.col<=this.right}forEachAddress(u){for(let c=this.left;c<=this.right;c++)for(let l=this.top;l<=this.bottom;l++)u(a.encodeAddress(l,c),l,c)}}n.exports=o},{"../utils/col-cache":19}],11:[function(e,n,i){const a=e("../utils/under-dash"),o=e("./enums"),s=e("../utils/col-cache"),u=e("./cell");n.exports=class{constructor(c,l){this._worksheet=c,this._number=l,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(c){return this._cells[c-1]}getCellEx(c){let l=this._cells[c.col-1];if(!l){const d=this._worksheet.getColumn(c.col);l=new u(this,d,c.address),this._cells[c.col-1]=l}return l}getCell(c){if(typeof c=="string"){const l=this._worksheet.getColumnKey(c);c=l?l.number:s.l2n(c)}return this._cells[c-1]||this.getCellEx({address:s.encodeAddress(this._number,c),row:this._number,col:c})}splice(c,l){const d=c+l;for(var h=arguments.length,f=new Array(h>2?h-2:0),g=2;g<h;g++)f[g-2]=arguments[g];const m=f.length-l,p=this._cells.length;let y,v,b;if(m<0)for(y=c+f.length;y<=p;y++)b=this._cells[y-1],v=this._cells[y-m-1],v?(b=this.getCell(y),b.value=v.value,b.style=v.style,b._comment=v._comment):b&&(b.value=null,b.style={},b._comment=void 0);else if(m>0)for(y=p;y>=d;y--)v=this._cells[y-1],v?(b=this.getCell(y+m),b.value=v.value,b.style=v.style,b._comment=v._comment):this._cells[y+m-1]=void 0;for(y=0;y<f.length;y++)b=this.getCell(c+y),b.value=f[y],b.style={},b._comment=void 0}eachCell(c,l){if(l||(l=c,c=null),c&&c.includeEmpty){const d=this._cells.length;for(let h=1;h<=d;h++)l(this.getCell(h),h)}else this._cells.forEach((d,h)=>{d&&d.type!==o.ValueType.Null&&l(d,h+1)})}addPageBreak(c,l){const d=this._worksheet,h=Math.max(0,c-1)||0,f=Math.max(0,l-1)||16838,g={id:this._number,max:f,man:1};h&&(g.min=h),d.rowBreaks.push(g)}get values(){const c=[];return this._cells.forEach(l=>{l&&l.type!==o.ValueType.Null&&(c[l.col]=l.value)}),c}set values(c){if(this._cells=[],c)if(c instanceof Array){let l=0;c.hasOwnProperty("0")&&(l=1),c.forEach((d,h)=>{d!==void 0&&(this.getCellEx({address:s.encodeAddress(this._number,h+l),row:this._number,col:h+l}).value=d)})}else this._worksheet.eachColumnKey((l,d)=>{c[d]!==void 0&&(this.getCellEx({address:s.encodeAddress(this._number,l.number),row:this._number,col:l.number}).value=c[d])})}get hasValues(){return a.some(this._cells,c=>c&&c.type!==o.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let c=0;return this.eachCell(()=>{c++}),c}get dimensions(){let c=0,l=0;return this._cells.forEach(d=>{d&&d.type!==o.ValueType.Null&&((!c||c>d.col)&&(c=d.col),l<d.col&&(l=d.col))}),c>0?{min:c,max:l}:null}_applyStyle(c,l){return this.style[c]=l,this._cells.forEach(d=>{d&&(d[c]=l)}),l}get numFmt(){return this.style.numFmt}set numFmt(c){this._applyStyle("numFmt",c)}get font(){return this.style.font}set font(c){this._applyStyle("font",c)}get alignment(){return this.style.alignment}set alignment(c){this._applyStyle("alignment",c)}get protection(){return this.style.protection}set protection(c){this._applyStyle("protection",c)}get border(){return this.style.border}set border(c){this._applyStyle("border",c)}get fill(){return this.style.fill}set fill(c){this._applyStyle("fill",c)}get hidden(){return!!this._hidden}set hidden(c){this._hidden=c}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(c){this._outlineLevel=c}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const c=[];let l=0,d=0;return this._cells.forEach(h=>{if(h){const f=h.model;f&&((!l||l>h.col)&&(l=h.col),d<h.col&&(d=h.col),c.push(f))}}),this.height||c.length?{cells:c,number:this.number,min:l,max:d,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(c){if(c.number!==this._number)throw new Error("Invalid row number in model");let l;this._cells=[],c.cells.forEach(d=>{switch(d.type){case u.Types.Merge:break;default:{let h;if(d.address)h=s.decodeAddress(d.address);else if(l){const{row:f}=l,g=l.col+1;h={row:f,col:g,address:s.encodeAddress(f,g),$col$row:`$${s.n2l(g)}$${f}`}}l=h,this.getCellEx(h).model=d;break}}}),c.height?this.height=c.height:delete this.height,this.hidden=c.hidden,this.outlineLevel=c.outlineLevel||0,this.style=c.style&&JSON.parse(JSON.stringify(c.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,n,i){const a=e("../utils/col-cache");class o{constructor(u,c,l){this.table=u,this.column=c,this.index=l}_set(u,c){this.table.cacheState(),this.column[u]=c}get name(){return this.column.name}set name(u){this._set("name",u)}get filterButton(){return this.column.filterButton}set filterButton(u){this.column.filterButton=u}get style(){return this.column.style}set style(u){this.column.style=u}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(u){this._set("totalsRowLabel",u)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(u){this._set("totalsRowFunction",u)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(u){this._set("totalsRowResult",u)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(u){this._set("totalsRowFormula",u)}}n.exports=class{constructor(s,u){this.worksheet=s,u&&(this.table=u,this.validate(),this.store())}getFormula(s){switch(s.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${s.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${s.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${s.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${s.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${s.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${s.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${s.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${s.name}])`;case"custom":return s.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+s.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:s}=this,u=(m,p,y)=>{m[p]===void 0&&(m[p]=y)};u(s,"headerRow",!0),u(s,"totalsRow",!1),u(s,"style",{}),u(s.style,"theme","TableStyleMedium2"),u(s.style,"showFirstColumn",!1),u(s.style,"showLastColumn",!1),u(s.style,"showRowStripes",!1),u(s.style,"showColumnStripes",!1);const c=(m,p)=>{if(!m)throw new Error(p)};c(s.ref,"Table must have ref"),c(s.columns,"Table must have column definitions"),c(s.rows,"Table must have row definitions"),s.tl=a.decodeAddress(s.ref);const{row:l,col:d}=s.tl;c(l>0,"Table must be on valid row"),c(d>0,"Table must be on valid col");const{width:h,filterHeight:f,tableHeight:g}=this;s.autoFilterRef=a.encode(l,d,l+f-1,d+h-1),s.tableRef=a.encode(l,d,l+g-1,d+h-1),s.columns.forEach((m,p)=>{c(m.name,`Column ${p} must have a name`),p===0?u(m,"totalsRowLabel","Total"):(u(m,"totalsRowFunction","none"),m.totalsRowFormula=this.getFormula(m))})}store(){const s=(f,g)=>{g&&Object.keys(g).forEach(m=>{f[m]=g[m]})},{worksheet:u,table:c}=this,{row:l,col:d}=c.tl;let h=0;if(c.headerRow){const f=u.getRow(l+h++);c.columns.forEach((g,m)=>{const{style:p,name:y}=g,v=f.getCell(d+m);v.value=y,s(v,p)})}if(c.rows.forEach(f=>{const g=u.getRow(l+h++);f.forEach((m,p)=>{const y=g.getCell(d+p);y.value=m,s(y,c.columns[p].style)})}),c.totalsRow){const f=u.getRow(l+h++);c.columns.forEach((g,m)=>{const p=f.getCell(d+m);if(m===0)p.value=g.totalsRowLabel;else{const y=this.getFormula(g);p.value=y?{formula:g.totalsRowFormula,result:g.totalsRowResult}:null}s(p,g.style)})}}load(s){const{table:u}=this,{row:c,col:l}=u.tl;let d=0;if(u.headerRow){const h=s.getRow(c+d++);u.columns.forEach((f,g)=>{h.getCell(l+g).value=f.name})}if(u.rows.forEach(h=>{const f=s.getRow(c+d++);h.forEach((g,m)=>{f.getCell(l+m).value=g})}),u.totalsRow){const h=s.getRow(c+d++);u.columns.forEach((f,g)=>{const m=h.getCell(l+g);g===0?m.value=f.totalsRowLabel:this.getFormula(f)&&(m.value={formula:f.totalsRowFormula,result:f.totalsRowResult})})}}get model(){return this.table}set model(s){this.table=s}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const s=a.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let u=0;u<this._cache.tableHeight;u++){const c=this.worksheet.getRow(s.row+u);for(let l=0;l<this._cache.width;l++)c.getCell(s.col+l).value=null}else{for(let u=this.tableHeight;u<this._cache.tableHeight;u++){const c=this.worksheet.getRow(s.row+u);for(let l=0;l<this._cache.width;l++)c.getCell(s.col+l).value=null}for(let u=0;u<this.tableHeight;u++){const c=this.worksheet.getRow(s.row+u);for(let l=this.width;l<this._cache.width;l++)c.getCell(s.col+l).value=null}}this.store()}addRow(s,u){this.cacheState(),u===void 0?this.table.rows.push(s):this.table.rows.splice(u,0,s)}removeRows(s){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(s,u)}getColumn(s){const u=this.table.columns[s];return new o(this,u,s)}addColumn(s,u,c){this.cacheState(),c===void 0?(this.table.columns.push(s),this.table.rows.forEach((l,d)=>{l.push(u[d])})):(this.table.columns.splice(c,0,s),this.table.rows.forEach((l,d)=>{l.splice(c,0,u[d])}))}removeColumns(s){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(s,u),this.table.rows.forEach(c=>{c.splice(s,u)})}_assign(s,u,c){this.cacheState(),s[u]=c}get ref(){return this.table.ref}set ref(s){this._assign(this.table,"ref",s)}get name(){return this.table.name}set name(s){this.table.name=s}get displayName(){return this.table.displyName||this.table.name}set displayNamename(s){this.table.displayName=s}get headerRow(){return this.table.headerRow}set headerRow(s){this._assign(this.table,"headerRow",s)}get totalsRow(){return this.table.totalsRow}set totalsRow(s){this._assign(this.table,"totalsRow",s)}get theme(){return this.table.style.name}set theme(s){this.table.style.name=s}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(s){this.table.style.showFirstColumn=s}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(s){this.table.style.showLastColumn=s}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(s){this.table.style.showRowStripes=s}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(s){this.table.style.showColumnStripes=s}}},{"../utils/col-cache":19}],13:[function(e,n,i){const a=e("./worksheet"),o=e("./defined-names"),s=e("../xlsx/xlsx"),u=e("../csv/csv");n.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new o}get xlsx(){return this._xlsx||(this._xlsx=new s(this)),this._xlsx}get csv(){return this._csv||(this._csv=new u(this)),this._csv}get nextId(){for(let c=1;c<this._worksheets.length;c++)if(!this._worksheets[c])return c;return this._worksheets.length||1}addWorksheet(c,l){const d=this.nextId;l&&(typeof l=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),l={properties:{tabColor:{argb:l}}}):(l.argb||l.theme||l.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),l={properties:{tabColor:l}}));const h=this._worksheets.reduce((m,p)=>(p&&p.orderNo)>m?p.orderNo:m,0),f=Object.assign({},l,{id:d,name:c,orderNo:h+1,workbook:this}),g=new a(f);return this._worksheets[d]=g,g}removeWorksheetEx(c){delete this._worksheets[c.id]}removeWorksheet(c){const l=this.getWorksheet(c);l&&l.destroy()}getWorksheet(c){return c===void 0?this._worksheets.find(Boolean):typeof c=="number"?this._worksheets[c]:typeof c=="string"?this._worksheets.find(l=>l&&l.name===c):void 0}get worksheets(){return this._worksheets.slice(1).sort((c,l)=>c.orderNo-l.orderNo).filter(Boolean)}eachSheet(c){this.worksheets.forEach(l=>{c(l,l.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(c){const l=this.media.length;return this.media.push(Object.assign({},c,{type:"image"})),l}getImage(c){return this.media[c]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(c=>c.model),sheets:this.worksheets.map(c=>c.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(c){this.creator=c.creator,this.lastModifiedBy=c.lastModifiedBy,this.lastPrinted=c.lastPrinted,this.created=c.created,this.modified=c.modified,this.company=c.company,this.manager=c.manager,this.title=c.title,this.subject=c.subject,this.keywords=c.keywords,this.category=c.category,this.description=c.description,this.language=c.language,this.revision=c.revision,this.contentStatus=c.contentStatus,this.properties=c.properties,this.calcProperties=c.calcProperties,this._worksheets=[],c.worksheets.forEach(l=>{const{id:d,name:h,state:f}=l,g=c.sheets&&c.sheets.findIndex(m=>m.id===d);(this._worksheets[d]=new a({id:d,name:h,orderNo:g,state:f,workbook:this})).model=l}),this._definedNames.model=c.definedNames,this.views=c.views,this._themes=c.themes,this.media=c.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,n,i){const a=e("../utils/under-dash"),o=e("../utils/col-cache"),s=e("./range"),u=e("./row"),c=e("./column"),l=e("./enums"),d=e("./image"),h=e("./table"),f=e("./data-validations"),g=e("../utils/encryptor"),{copyStyle:m}=e("../utils/copy-style");n.exports=class{constructor(p){p=p||{},this._workbook=p.workbook,this.id=p.id,this.orderNo=p.orderNo,this.name=p.name,this.state=p.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},p.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!p.pageSetup||!p.pageSetup.fitToWidth&&!p.pageSetup.fitToHeight||p.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},p.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},p.headerFooter),this.dataValidations=new f,this.views=p.views||[],this.autoFilter=p.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(p){if(p===void 0&&(p="sheet"+this.id),this._name!==p){if(typeof p!="string")throw new Error("The name has to be a string.");if(p==="")throw new Error("The name can't be empty.");if(p==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(p))throw new Error(`Worksheet name ${p} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(p))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+p);if(p&&p.length>31&&(console.warn(`Worksheet name ${p} exceeds 31 chars. This will be truncated`),p=p.substring(0,31)),this._workbook._worksheets.find(y=>y&&y.name.toLowerCase()===p.toLowerCase()))throw new Error("Worksheet name already exists: "+p);this._name=p}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const p=new s;return this._rows.forEach(y=>{if(y){const v=y.dimensions;v&&p.expand(y.number,v.min,y.number,v.max)}}),p}get columns(){return this._columns}set columns(p){this._headerRowCount=p.reduce((b,A)=>{const C=(A.header?1:A.headers&&A.headers.length)||0;return Math.max(b,C)},0);let y=1;const v=this._columns=[];p.forEach(b=>{const A=new c(this,y++,!1);v.push(A),A.defn=b})}getColumnKey(p){return this._keys[p]}setColumnKey(p,y){this._keys[p]=y}deleteColumnKey(p){delete this._keys[p]}eachColumnKey(p){a.each(this._keys,p)}getColumn(p){if(typeof p=="string"){const y=this._keys[p];if(y)return y;p=o.l2n(p)}if(this._columns||(this._columns=[]),p>this._columns.length){let y=this._columns.length+1;for(;y<=p;)this._columns.push(new c(this,y++))}return this._columns[p-1]}spliceColumns(p,y){const v=this._rows.length;for(var b=arguments.length,A=new Array(b>2?b-2:0),C=2;C<b;C++)A[C-2]=arguments[C];if(A.length>0)for(let U=0;U<v;U++){const G=[p,y];A.forEach(I=>{G.push(I[U]||null)});const ee=this.getRow(U+1);ee.splice.apply(ee,G)}else this._rows.forEach(U=>{U&&U.splice(p,y)});const M=A.length-y,z=p+y,W=this._columns.length;if(M<0)for(let U=p+A.length;U<=W;U++)this.getColumn(U).defn=this.getColumn(U-M).defn;else if(M>0)for(let U=W;U>=z;U--)this.getColumn(U+M).defn=this.getColumn(U).defn;for(let U=p;U<p+A.length;U++)this.getColumn(U).defn=null;this.workbook.definedNames.spliceColumns(this.name,p,y,A.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let p=0;return this.eachRow(y=>{p=Math.max(p,y.cellCount)}),p}get actualColumnCount(){const p=[];let y=0;return this.eachRow(v=>{v.eachCell(b=>{let{col:A}=b;p[A]||(p[A]=!0,y++)})}),y}_commitRow(){}get _lastRowNumber(){const p=this._rows;let y=p.length;for(;y>0&&p[y-1]===void 0;)y--;return y}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(p){return this._rows[p-1]}findRows(p,y){return this._rows.slice(p-1,p-1+y)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let p=0;return this.eachRow(()=>{p++}),p}getRow(p){let y=this._rows[p-1];return y||(y=this._rows[p-1]=new u(this,p)),y}getRows(p,y){if(y<1)return;const v=[];for(let b=p;b<p+y;b++)v.push(this.getRow(b));return v}addRow(p){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const v=this._nextRow,b=this.getRow(v);return b.values=p,this._setStyleOption(v,y[0]==="i"?y:"n"),b}addRows(p){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const v=[];return p.forEach(b=>{v.push(this.addRow(b,y))}),v}insertRow(p,y){let v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(p,0,y),this._setStyleOption(p,v),this.getRow(p)}insertRows(p,y){let v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(p,0,...y),v!=="n")for(let b=0;b<y.length;b++)v[0]==="o"&&this.findRow(y.length+p+b)!==void 0?this._copyStyle(y.length+p+b,p+b,v[1]==="+"):v[0]==="i"&&this.findRow(p-1)!==void 0&&this._copyStyle(p-1,p+b,v[1]==="+");return this.getRows(p,y.length)}_setStyleOption(p){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";y[0]==="o"&&this.findRow(p+1)!==void 0?this._copyStyle(p+1,p,y[1]==="+"):y[0]==="i"&&this.findRow(p-1)!==void 0&&this._copyStyle(p-1,p,y[1]==="+")}_copyStyle(p,y){let v=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const b=this.getRow(p),A=this.getRow(y);A.style=m(b.style),b.eachCell({includeEmpty:v},(C,M)=>{A.getCell(M).style=m(C.style)}),A.height=b.height}duplicateRow(p,y){let v=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const b=this._rows[p-1],A=new Array(y).fill(b.values);this.spliceRows(p+1,v?0:y,...A);for(let C=0;C<y;C++){const M=this._rows[p+C];M.style=b.style,M.height=b.height,b.eachCell({includeEmpty:!0},(z,W)=>{M.getCell(W).style=z.style})}}spliceRows(p,y){const v=p+y;for(var b=arguments.length,A=new Array(b>2?b-2:0),C=2;C<b;C++)A[C-2]=arguments[C];const M=A.length,z=M-y,W=this._rows.length;let U,G;if(z<0)for(p===W&&(this._rows[W-1]=void 0),U=v;U<=W;U++)if(G=this._rows[U-1],G){const ee=this.getRow(U+z);ee.values=G.values,ee.style=G.style,ee.height=G.height,G.eachCell({includeEmpty:!0},(I,O)=>{ee.getCell(O).style=I.style}),this._rows[U-1]=void 0}else this._rows[U+z-1]=void 0;else if(z>0)for(U=W;U>=v;U--)if(G=this._rows[U-1],G){const ee=this.getRow(U+z);ee.values=G.values,ee.style=G.style,ee.height=G.height,G.eachCell({includeEmpty:!0},(I,O)=>{if(ee.getCell(O).style=I.style,I._value.constructor.name==="MergeValue"){const T=this.getRow(I._row._number+M).getCell(O),S=I._value._master,x=this.getRow(S._row._number+M).getCell(S._column._number);T.merge(x)}})}else this._rows[U+z-1]=void 0;for(U=0;U<M;U++){const ee=this.getRow(p+U);ee.style={},ee.values=A[U]}this.workbook.definedNames.spliceRows(this.name,p,y,M)}eachRow(p,y){if(y||(y=p,p=void 0),p&&p.includeEmpty){const v=this._rows.length;for(let b=1;b<=v;b++)y(this.getRow(b),b)}else this._rows.forEach(v=>{v&&v.hasValues&&y(v,v.number)})}getSheetValues(){const p=[];return this._rows.forEach(y=>{y&&(p[y.number]=y.values)}),p}findCell(p,y){const v=o.getAddress(p,y),b=this._rows[v.row-1];return b?b.findCell(v.col):void 0}getCell(p,y){const v=o.getAddress(p,y);return this.getRow(v.row).getCellEx(v)}mergeCells(){for(var p=arguments.length,y=new Array(p),v=0;v<p;v++)y[v]=arguments[v];const b=new s(y);this._mergeCellsInternal(b)}mergeCellsWithoutStyle(){for(var p=arguments.length,y=new Array(p),v=0;v<p;v++)y[v]=arguments[v];const b=new s(y);this._mergeCellsInternal(b,!0)}_mergeCellsInternal(p,y){a.each(this._merges,b=>{if(b.intersects(p))throw new Error("Cannot merge already merged cells")});const v=this.getCell(p.top,p.left);for(let b=p.top;b<=p.bottom;b++)for(let A=p.left;A<=p.right;A++)(b>p.top||A>p.left)&&this.getCell(b,A).merge(v,y);this._merges[v.address]=p}_unMergeMaster(p){const y=this._merges[p.address];if(y){for(let v=y.top;v<=y.bottom;v++)for(let b=y.left;b<=y.right;b++)this.getCell(v,b).unmerge();delete this._merges[p.address]}}get hasMerges(){return a.some(this._merges,Boolean)}unMergeCells(){for(var p=arguments.length,y=new Array(p),v=0;v<p;v++)y[v]=arguments[v];const b=new s(y);for(let A=b.top;A<=b.bottom;A++)for(let C=b.left;C<=b.right;C++){const M=this.findCell(A,C);M&&(M.type===l.ValueType.Merge?this._unMergeMaster(M.master):this._merges[M.address]&&this._unMergeMaster(M))}}fillFormula(p,y,v){let b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const A=o.decode(p),{top:C,left:M,bottom:z,right:W}=A,U=W-M+1,G=o.encodeAddress(C,M),ee=b==="shared";let I;I=typeof v=="function"?v:Array.isArray(v)?Array.isArray(v[0])?(T,S)=>v[T-C][S-M]:(T,S)=>v[(T-C)*U+(S-M)]:()=>{};let O=!0;for(let T=C;T<=z;T++)for(let S=M;S<=W;S++)O?(this.getCell(T,S).value={shareType:b,formula:y,ref:p,result:I(T,S)},O=!1):this.getCell(T,S).value=ee?{sharedFormula:G,result:I(T,S)}:I(T,S)}addImage(p,y){const v={type:"image",imageId:p,range:y};this._media.push(new d(this,v))}getImages(){return this._media.filter(p=>p.type==="image")}addBackgroundImage(p){const y={type:"background",imageId:p};this._media.push(new d(this,y))}getBackgroundImageId(){const p=this._media.find(y=>y.type==="background");return p&&p.imageId}protect(p,y){return new Promise(v=>{this.sheetProtection={sheet:!0},y&&"spinCount"in y&&(y.spinCount=Number.isFinite(y.spinCount)?Math.round(Math.max(0,y.spinCount)):1e5),p&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=g.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=y&&"spinCount"in y?y.spinCount:1e5,this.sheetProtection.hashValue=g.convertPasswordToHash(p,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),y&&(this.sheetProtection=Object.assign(this.sheetProtection,y),!p&&"spinCount"in y&&delete this.sheetProtection.spinCount),v()})}unprotect(){this.sheetProtection=null}addTable(p){const y=new h(this,p);return this.tables[p.name]=y,y}getTable(p){return this.tables[p]}removeTable(p){delete this.tables[p]}getTables(){return Object.values(this.tables)}addConditionalFormatting(p){this.conditionalFormattings.push(p)}removeConditionalFormatting(p){typeof p=="number"?this.conditionalFormattings.splice(p,1):this.conditionalFormattings=p instanceof Function?this.conditionalFormattings.filter(p):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(p){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=p}get model(){const p={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(b=>b.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(b=>b.model),conditionalFormattings:this.conditionalFormattings};p.cols=c.toModel(this.columns);const y=p.rows=[],v=p.dimensions=new s;return this._rows.forEach(b=>{const A=b&&b.model;A&&(v.expand(A.number,A.min,A.number,A.max),y.push(A))}),p.merges=[],a.each(this._merges,b=>{p.merges.push(b.range)}),p}_parseRows(p){this._rows=[],p.rows.forEach(y=>{const v=new u(this,y.number);this._rows[v.number-1]=v,v.model=y})}_parseMergeCells(p){a.each(p.mergeCells,y=>{this.mergeCellsWithoutStyle(y)})}set model(p){this.name=p.name,this._columns=c.fromModel(this,p.cols),this._parseRows(p),this._parseMergeCells(p),this.dataValidations=new f(p.dataValidations),this.properties=p.properties,this.pageSetup=p.pageSetup,this.headerFooter=p.headerFooter,this.views=p.views,this.autoFilter=p.autoFilter,this._media=p.media.map(y=>new d(this,y)),this.sheetProtection=p.sheetProtection,this.tables=p.tables.reduce((y,v)=>{const b=new h;return b.model=v,y[v.name]=b,y},{}),this.conditionalFormattings=p.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,n,i){e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");const a={Workbook:e("./doc/workbook")},o=e("./doc/enums");Object.keys(o).forEach(s=>{a[s]=o[s]}),n.exports=a},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,n,i){const a=typeof TextDecoder=="undefined"?null:new TextDecoder("utf-8");i.bufferToString=function(o){return typeof o=="string"?o:a?a.decode(o):o.toString()}},{}],17:[function(e,n,i){const a=typeof TextEncoder=="undefined"?null:new TextEncoder("utf-8"),{Buffer:o}=e("buffer");i.stringToBuffer=function(s){return typeof s!="string"?s:a?o.from(a.encode(s).buffer):o.from(s)}},{buffer:220}],18:[function(e,n,i){const a=e("./under-dash"),o=e("./col-cache");n.exports=class{constructor(s){this.template=s,this.sheets={}}addCell(s){this.addCellEx(o.decodeEx(s))}getCell(s){return this.findCellEx(o.decodeEx(s),!0)}findCell(s){return this.findCellEx(o.decodeEx(s),!1)}findCellAt(s,u,c){const l=this.sheets[s],d=l&&l[u];return d&&d[c]}addCellEx(s){if(s.top)for(let u=s.top;u<=s.bottom;u++)for(let c=s.left;c<=s.right;c++)this.getCellAt(s.sheetName,u,c);else this.findCellEx(s,!0)}getCellEx(s){return this.findCellEx(s,!0)}findCellEx(s,u){const c=this.findSheet(s,u),l=this.findSheetRow(c,s,u);return this.findRowCell(l,s,u)}getCellAt(s,u,c){const l=this.sheets[s]||(this.sheets[s]=[]),d=l[u]||(l[u]=[]);return d[c]||(d[c]={sheetName:s,address:o.n2l(c)+u,row:u,col:c})}removeCellEx(s){const u=this.findSheet(s);if(!u)return;const c=this.findSheetRow(u,s);c&&delete c[s.col]}forEachInSheet(s,u){const c=this.sheets[s];c&&c.forEach((l,d)=>{l&&l.forEach((h,f)=>{h&&u(h,d,f)})})}forEach(s){a.each(this.sheets,(u,c)=>{this.forEachInSheet(c,s)})}map(s){const u=[];return this.forEach(c=>{u.push(s(c))}),u}findSheet(s,u){const c=s.sheetName;return this.sheets[c]?this.sheets[c]:u?this.sheets[c]=[]:void 0}findSheetRow(s,u,c){const{row:l}=u;return s&&s[l]?s[l]:c?s[l]=[]:void 0}findRowCell(s,u,c){const{col:l}=u;return s&&s[l]?s[l]:c?s[l]=this.template?Object.assign(u,JSON.parse(JSON.stringify(this.template))):u:void 0}spliceRows(s,u,c,l){const d=this.sheets[s];if(d){const h=[];for(let f=0;f<l;f++)h.push([]);d.splice(u,c,...h)}}spliceColumns(s,u,c,l){const d=this.sheets[s];if(d){const h=[];for(let f=0;f<l;f++)h.push(null);a.each(d,f=>{f.splice(u,c,...h)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(e,n,i){const a=/^[A-Z]+\d+$/,o={_dictionary:["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"],_l2nFill:0,_l2n:{},_n2l:[],_level:s=>s<=26?1:s<=676?2:3,_fill(s){let u,c,l,d,h,f=1;if(s>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&s>=1){for(;f<=26;)u=this._dictionary[f-1],this._n2l[f]=u,this._l2n[u]=f,f++;this._l2nFill=1}if(this._l2nFill<2&&s>=2){for(f=27;f<=702;)c=f-27,l=c%26,d=Math.floor(c/26),u=this._dictionary[d]+this._dictionary[l],this._n2l[f]=u,this._l2n[u]=f,f++;this._l2nFill=2}if(this._l2nFill<3&&s>=3){for(f=703;f<=16384;)c=f-703,l=c%26,d=Math.floor(c/26)%26,h=Math.floor(c/676),u=this._dictionary[h]+this._dictionary[d]+this._dictionary[l],this._n2l[f]=u,this._l2n[u]=f,f++;this._l2nFill=3}},l2n(s){if(this._l2n[s]||this._fill(s.length),!this._l2n[s])throw new Error("Out of bounds. Invalid column letter: "+s);return this._l2n[s]},n2l(s){if(s<1||s>16384)throw new Error(s+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[s]||this._fill(this._level(s)),this._n2l[s]},_hash:{},validateAddress(s){if(!a.test(s))throw new Error("Invalid Address: "+s);return!0},decodeAddress(s){const u=s.length<5&&this._hash[s];if(u)return u;let c=!1,l="",d=0,h=!1,f="",g=0;for(let p,y=0;y<s.length;y++)if(p=s.charCodeAt(y),!h&&p>=65&&p<=90)c=!0,l+=s[y],d=26*d+p-64;else if(p>=48&&p<=57)h=!0,f+=s[y],g=10*g+p-48;else if(h&&c&&p!==36)break;if(c){if(d>16384)throw new Error("Out of bounds. Invalid column letter: "+l)}else d=void 0;h||(g=void 0);const m={address:s=l+f,col:d,row:g,$col$row:`$${l}$${f}`};return d<=100&&g<=100&&(this._hash[s]=m,this._hash[m.$col$row]=m),m},getAddress(s,u){if(u){const c=this.n2l(u)+s;return this.decodeAddress(c)}return this.decodeAddress(s)},decode(s){const u=s.split(":");if(u.length===2){const c=this.decodeAddress(u[0]),l=this.decodeAddress(u[1]),d={top:Math.min(c.row,l.row),left:Math.min(c.col,l.col),bottom:Math.max(c.row,l.row),right:Math.max(c.col,l.col)};return d.tl=this.n2l(d.left)+d.top,d.br=this.n2l(d.right)+d.bottom,d.dimensions=`${d.tl}:${d.br}`,d}return this.decodeAddress(s)},decodeEx(s){const u=s.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),c=u[1]||u[2],l=u[3],d=l.split(":");if(d.length>1){let f=this.decodeAddress(d[0]),g=this.decodeAddress(d[1]);const m=Math.min(f.row,g.row),p=Math.min(f.col,g.col),y=Math.max(f.row,g.row),v=Math.max(f.col,g.col);return f=this.n2l(p)+m,g=this.n2l(v)+y,{top:m,left:p,bottom:y,right:v,sheetName:c,tl:{address:f,col:p,row:m,$col$row:`$${this.n2l(p)}$${m}`,sheetName:c},br:{address:g,col:v,row:y,$col$row:`$${this.n2l(v)}$${y}`,sheetName:c},dimensions:`${f}:${g}`}}if(l.startsWith("#"))return c?{sheetName:c,error:l}:{error:l};const h=this.decodeAddress(l);return c?An({sheetName:c},h):h},encodeAddress:(s,u)=>o.n2l(u)+s,encode(){switch(arguments.length){case 2:return o.encodeAddress(arguments[0],arguments[1]);case 4:return`${o.encodeAddress(arguments[0],arguments[1])}:${o.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(s,u){const[c,l,,d,h]=s,[f,g]=u;return f>=c&&f<=d&&g>=l&&g<=h}};n.exports=o},{}],20:[function(e,n,i){const a=(s,u)=>An(An({},s),u.reduce((c,l)=>(s[l]&&(c[l]=An({},s[l])),c),{})),o=function(s,u,c){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];s[c]&&(u[c]=a(s[c],l))};i.copyStyle=s=>{if(!s)return s;if(u=s,Object.keys(u).length===0)return{};var u;const c=An({},s);return o(s,c,"font",["color"]),o(s,c,"alignment"),o(s,c,"protection"),s.border&&(o(s,c,"border"),o(s.border,c.border,"top",["color"]),o(s.border,c.border,"left",["color"]),o(s.border,c.border,"bottom",["color"]),o(s.border,c.border,"right",["color"]),o(s.border,c.border,"diagonal",["color"])),s.fill&&(o(s,c,"fill",["fgColor","bgColor","center"]),s.fill.stops&&(c.fill.stops=s.fill.stops.map(l=>a(l,["color"])))),c}},{}],21:[function(e,n,i){(function(a){(function(){const o=e("crypto"),s={hash(u){const c=o.createHash(u);for(var l=arguments.length,d=new Array(l>1?l-1:0),h=1;h<l;h++)d[h-1]=arguments[h];return c.update(a.concat(d)),c.digest()},convertPasswordToHash(u,c,l,d){if(c=c.toLowerCase(),o.getHashes().indexOf(c)<0)throw new Error(`Hash algorithm '${c}' not supported!`);const h=a.from(u,"utf16le");let f=this.hash(c,a.from(l,"base64"),h);for(let g=0;g<d;g++){const m=a.alloc(4);m.writeUInt32LE(g,0),f=this.hash(c,f,m)}return f.toString("base64")},randomBytes:u=>o.randomBytes(u)};n.exports=s}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,n,i){const{SaxesParser:a}=e("saxes"),{PassThrough:o}=e("readable-stream"),{bufferToString:s}=e("./browser-buffer-decode");n.exports=async function*(u){u.pipe&&!u[Symbol.asyncIterator]&&(u=u.pipe(new o));const c=new a;let l;c.on("error",h=>{l=h});let d=[];c.on("opentag",h=>d.push({eventType:"opentag",value:h})),c.on("text",h=>d.push({eventType:"text",value:h})),c.on("closetag",h=>d.push({eventType:"closetag",value:h}));for await(const h of u){if(c.write(s(h)),l)throw l;yield d,d=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,n,i){const a=e("./col-cache"),o=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,s=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;n.exports={slideFormula:function(u,c,l){const d=a.decode(c),h=a.decode(l);return u.replace(o,(f,g,m,p,y)=>{if(y)return f;const v=s.exec(p);if(v){const b=v[1],A=v[2].toUpperCase(),C=v[3],M=v[4];if(A.length>3||A.length===3&&A>"XFD")return f;let z=a.l2n(A),W=parseInt(M,10);return b||(z+=h.col-d.col),C||(W+=h.row-d.row),(g||"")+(b||"")+a.n2l(z)+(C||"")+W}return f})}}},{"./col-cache":19}],24:[function(e,n,i){(function(a,o){(function(){const s=e("readable-stream"),u=e("./utils"),c=e("./string-buf");class l{constructor(p,y){this._data=p,this._encoding=y}get length(){return this.toBuffer().length}copy(p,y,v,b){return this.toBuffer().copy(p,y,v,b)}toBuffer(){return this._buffer||(this._buffer=o.from(this._data,this._encoding)),this._buffer}}class d{constructor(p){this._data=p}get length(){return this._data.length}copy(p,y,v,b){return this._data._buf.copy(p,y,v,b)}toBuffer(){return this._data.toBuffer()}}class h{constructor(p){this._data=p}get length(){return this._data.length}copy(p,y,v,b){this._data.copy(p,y,v,b)}toBuffer(){return this._data}}class f{constructor(p){this.size=p,this.buffer=o.alloc(p),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const p=o.alloc(this.iWrite-this.iRead);return this.buffer.copy(p,0,this.iRead,this.iWrite),p}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(p){let y;return p===0?null:p===void 0||p>=this.length?(y=this.toBuffer(),this.iRead=this.iWrite,y):(y=o.alloc(p),this.buffer.copy(y,0,this.iRead,p),this.iRead+=p,y)}write(p,y,v){const b=Math.min(v,this.size-this.iWrite);return p.copy(this.buffer,this.iWrite,y,y+b),this.iWrite+=b,b}}const g=function(m){m=m||{},this.bufSize=m.bufSize||1048576,this.buffers=[],this.batch=m.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};u.inherits(g,s.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return o.concat(this.buffers.map(m=>m.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const p=this.buffers[this.buffers.length-1];if(!p.full)return p}const m=new f(this.bufSize);return this.buffers.push(m),m},async _pipe(m){await Promise.all(this.pipes.map(function(p){return new Promise(y=>{p.write(m.toBuffer(),()=>{y()})})}))},_writeToBuffers(m){let p=0;const y=m.length;for(;p<y;)p+=this._getWritableBuffer().write(m,p,y-p)},async write(m,p,y){let v;if(p instanceof Function&&(y=p,p="utf8"),y=y||u.nop,m instanceof c)v=new d(m);else if(m instanceof o)v=new h(m);else{if(!(typeof m=="string"||m instanceof String||m instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");v=new l(m,p)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(v);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(v),a.nextTick(y)):(await this._pipe(v),y());else this.paused||this.emit("data",v.toBuffer()),this._writeToBuffers(v),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(m,p,y){const v=b=>{b?y(b):(this._flush(),this.pipes.forEach(A=>{A.end()}),this.emit("finish"))};m?this.write(m,p,v):v()},read(m){let p;if(m){for(p=[];m&&this.buffers.length&&!this.buffers[0].eod;){const y=this.buffers[0],v=y.read(m);m-=v.length,p.push(v),y.eod&&y.full&&this.buffers.shift()}return o.concat(p)}return p=this.buffers.map(y=>y.toBuffer()).filter(Boolean),this.buffers=[],o.concat(p)},setEncoding(m){this.encoding=m},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(m){this.pipes.push(m),!this.paused&&this.buffers.length&&this.end()},unpipe(m){this.pipes=this.pipes.filter(p=>p!==m)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),n.exports=g}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,n,i){(function(a){(function(){n.exports=class{constructor(o){this._buf=a.alloc(o&&o.size||16384),this._encoding=o&&o.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=a.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(o){o=o||0,this._buffer=void 0,this._inPos=o}_grow(o){let s=2*this._buf.length;for(;s<o;)s*=2;const u=a.alloc(s);this._buf.copy(u,0),this._buf=u}addText(o){this._buffer=void 0;let s=this._inPos+this._buf.write(o,this._inPos,this._encoding);for(;s>=this._buf.length-4;)this._grow(this._inPos+o.length),s=this._inPos+this._buf.write(o,this._inPos,this._encoding);this._inPos=s}addStringBuf(o){o.length&&(this._buffer=void 0,this.length+o.length>this.capacity&&this._grow(this.length+o.length),o._buf.copy(this._buf,this._inPos,0,o.length),this._inPos+=o.length)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,n,i){const{toString:a}=Object.prototype,o=/["&<>]/,s={each:function(u,c){u&&(Array.isArray(u)?u.forEach(c):Object.keys(u).forEach(l=>{c(u[l],l)}))},some:function(u,c){return!!u&&(Array.isArray(u)?u.some(c):Object.keys(u).some(l=>c(u[l],l)))},every:function(u,c){return!u||(Array.isArray(u)?u.every(c):Object.keys(u).every(l=>c(u[l],l)))},map:function(u,c){return u?Array.isArray(u)?u.map(c):Object.keys(u).map(l=>c(u[l],l)):[]},keyBy:(u,c)=>u.reduce((l,d)=>(l[d[c]]=d,l),{}),isEqual:function(u,c){const l=typeof u,d=typeof c,h=Array.isArray(u),f=Array.isArray(c);let g;if(l!==d)return!1;switch(typeof u){case"object":if(h||f)return!(!h||!f)&&u.length===c.length&&u.every((m,p)=>{const y=c[p];return s.isEqual(m,y)});if(u===null||c===null)return u===c;if(g=Object.keys(u),Object.keys(c).length!==g.length)return!1;for(const m of g)if(!c.hasOwnProperty(m))return!1;return s.every(u,(m,p)=>{const y=c[p];return s.isEqual(m,y)});default:return u===c}},escapeHtml(u){const c=o.exec(u);if(!c)return u;let l="",d="",h=0,f=c.index;for(;f<u.length;f++){switch(u.charAt(f)){case'"':d="&quot;";break;case"&":d="&amp;";break;case"'":d="&apos;";break;case"<":d="&lt;";break;case">":d="&gt;";break;default:continue}h!==f&&(l+=u.substring(h,f)),h=f+1,l+=d}return h!==f?l+u.substring(h,f):l},strcmp:(u,c)=>u<c?-1:u>c?1:0,isUndefined:u=>a.call(u)==="[object Undefined]",isObject:u=>a.call(u)==="[object Object]",deepMerge(){const u=arguments[0]||{},{length:c}=arguments;let l,d,h;function f(g,m){l=u[m],h=Array.isArray(g),s.isObject(g)||h?(h?(h=!1,d=l&&Array.isArray(l)?l:[]):d=l&&s.isObject(l)?l:{},u[m]=s.deepMerge(d,g)):s.isUndefined(g)||(u[m]=g)}for(let g=0;g<c;g++)s.each(arguments[g],f);return u}};n.exports=s},{}],27:[function(e,n,i){(function(a,o){(function(){const s=e("fs"),u=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,c={nop(){},promiseImmediate:l=>new Promise(d=>{a.setImmediate?o(()=>{d(l)}):setTimeout(()=>{d(l)},1)}),inherits:function(l,d,h,f){l.super_=d,f||(f=h,h=null),h&&Object.keys(h).forEach(m=>{Object.defineProperty(l,m,Object.getOwnPropertyDescriptor(h,m))});const g={constructor:{value:l,enumerable:!1,writable:!1,configurable:!0}};f&&Object.keys(f).forEach(m=>{g[m]=Object.getOwnPropertyDescriptor(f,m)}),l.prototype=Object.create(d.prototype,g)},dateToExcel:(l,d)=>25569+l.getTime()/864e5-(d?1462:0),excelToDate(l,d){const h=Math.round(24*(l-25569+(d?1462:0))*3600*1e3);return new Date(h)},parsePath(l){const d=l.lastIndexOf("/");return{path:l.substring(0,d),name:l.substring(d+1)}},getRelsPath(l){const d=c.parsePath(l);return`${d.path}/_rels/${d.name}.rels`},xmlEncode(l){const d=u.exec(l);if(!d)return l;let h="",f="",g=0,m=d.index;for(;m<l.length;m++){const p=l.charCodeAt(m);switch(p){case 34:f="&quot;";break;case 38:f="&amp;";break;case 39:f="&apos;";break;case 60:f="&lt;";break;case 62:f="&gt;";break;case 127:f="";break;default:if(p<=31&&(p<=8||p>=11&&p!==13)){f="";break}continue}g!==m&&(h+=l.substring(g,m)),g=m+1,f&&(h+=f)}return g!==m?h+l.substring(g,m):h},xmlDecode:l=>l.replace(/&([a-z]*);/g,d=>{switch(d){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return d}}),validInt(l){const d=parseInt(l,10);return Number.isNaN(d)?0:d},isDateFmt(l){return l?(l=(l=l.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:l=>new Promise(d=>{s.access(l,s.constants.F_OK,h=>{d(!h)})})},toIsoDateString:l=>l.toIsoString().subsstr(0,10),parseBoolean:l=>l===!0||l==="true"||l===1||l==="1"};n.exports=c}).call(this)}).call(this,typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,n,i){const a=e("./under-dash"),o=e("./utils");function s(l,d,h){l.push(` ${d}="${o.xmlEncode(h.toString())}"`)}function u(l,d){if(d){const h=[];a.each(d,(f,g)=>{f!==void 0&&s(h,g,f)}),l.push(h.join(""))}}class c{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(d){const h=this._xml;h.push("<?xml"),u(h,d),h.push(`?>
`)}openNode(d,h){const f=this.tos,g=this._xml;f&&this.open&&g.push(">"),this._stack.push(d),g.push("<"),g.push(d),u(g,h),this.leaf=!0,this.open=!0}addAttribute(d,h){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");h!==void 0&&s(this._xml,d,h)}addAttributes(d){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");u(this._xml,d)}writeText(d){const h=this._xml;this.open&&(h.push(">"),this.open=!1),this.leaf=!1,h.push(o.xmlEncode(d.toString()))}writeXml(d){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(d)}closeNode(){const d=this._stack.pop(),h=this._xml;this.leaf?h.push("/>"):(h.push("</"),h.push(d),h.push(">")),this.open=!1,this.leaf=!1}leafNode(d,h,f){this.openNode(d,h),f!==void 0&&this.writeText(f),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const d=this._rollbacks.pop();this._xml.length>d.xml&&this._xml.splice(d.xml,this._xml.length-d.xml),this._stack.length>d.stack&&this._stack.splice(d.stack,this._stack.length-d.stack),this.leaf=d.leaf,this.open=d.open}get xml(){return this.closeAll(),this._xml.join("")}}c.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},n.exports=c},{"./under-dash":26,"./utils":27}],29:[function(e,n,i){(function(a){(function(){const o=e("events"),s=e("jszip"),u=e("./stream-buf"),{stringToBuffer:c}=e("./browser-buffer-encode");class l extends o.EventEmitter{constructor(h){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},h),this.zip=new s,this.stream=new u}append(h,f){f.hasOwnProperty("base64")&&f.base64?this.zip.file(f.name,h,{base64:!0}):(a.browser&&typeof h=="string"&&(h=c(h)),this.zip.file(f.name,h))}async finalize(){const h=await this.zip.generateAsync(this.options);this.stream.end(h),this.emit("finish")}read(h){return this.stream.read(h)}setEncoding(h){return this.stream.setEncoding(h)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(h,f){return this.stream.pipe(h,f)}unpipe(h){return this.stream.unpipe(h)}unshift(h){return this.stream.unshift(h)}wrap(h){return this.stream.wrap(h)}}n.exports={ZipWriter:l}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,n,i){n.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5E74" mm"\u6708" dd"\u65E5"'},28:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'yyyy"\u5E74"m"\u6708"d"\u65E5"',"ja-jp":'yyyy"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":'yyyy"\uB144" mm"\uC6D4" dd"\uC77C"'},32:{"zh-tw":'hh"\u6642"mm"\u5206"',"zh-cn":'h"\u65F6"mm"\u5206"',"ja-jp":'h"\u6642"mm"\u5206"',"ko-kr":'h"\uC2DC" mm"\uBD84"'},33:{"zh-tw":'hh"\u6642"mm"\u5206"ss"\u79D2"',"zh-cn":'h"\u65F6"mm"\u5206"ss"\u79D2"',"ja-jp":'h"\u6642"mm"\u5206"ss"\u79D2"',"ko-kr":'h"\uC2DC" mm"\uBD84" ss"\uCD08"'},34:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4E0A\u5348/\u4E0B\u5348 h"\u65F6"mm"\u5206"',"ja-jp":'yyyy"\u5E74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"ss"\u79D2"',"zh-cn":'\u4E0A\u5348/\u4E0B\u5348 h"\u65F6"mm"\u5206"ss"\u79D2"',"ja-jp":'m"\u6708"d"\u65E5"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5E74" mm"\u6708" dd"\u65E5"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5E74" mm"\u6708" dd"\u65E5"'},51:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},52:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":'yyyy"\u5E74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"ss"\u79D2"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'m"\u6708"d"\u65E5"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},55:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4E0A\u5348/\u4E0B\u5348 h"\u65F6"mm"\u5206"',"ja-jp":'yyyy"\u5E74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"ss"\u79D2"',"zh-cn":'\u4E0A\u5348/\u4E0B\u5348 h"\u65F6"mm"\u5206"ss"\u79D2"',"ja-jp":'m"\u6708"d"\u65E5"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5E74" mm"\u6708" dd"\u65E5"'},58:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(e,n,i){n.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(e,n,i){const a=e("../../utils/parse-sax"),o=e("../../utils/xml-stream");class s{prepare(){}render(){}parseOpen(c){}parseText(c){}parseClose(c){}reconcile(c,l){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(c=>{c instanceof s?c.reset():c.xform&&c.xform.reset()})}mergeModel(c){this.model=Object.assign(this.model||{},c)}async parse(c){for await(const l of c)for(const{eventType:d,value:h}of l)if(d==="opentag")this.parseOpen(h);else if(d==="text")this.parseText(h);else if(d==="closetag"&&!this.parseClose(h.name))return this.model;return this.model}async parseStream(c){return this.parse(a(c))}get xml(){return this.toXml(this.model)}toXml(c){const l=new o;return this.render(l,c),l.xml}static toAttribute(c,l){let d=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(c===void 0){if(d)return l}else if(d||c!==l)return c.toString()}static toStringAttribute(c,l){let d=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(c,l,d)}static toStringValue(c,l){return c===void 0?l:c}static toBoolAttribute(c,l){let d=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(c===void 0){if(d)return l}else if(d||c!==l)return c?"1":"0"}static toBoolValue(c,l){return c===void 0?l:c==="1"}static toIntAttribute(c,l){let d=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(c,l,d)}static toIntValue(c,l){return c===void 0?l:parseInt(c,10)}static toFloatAttribute(c,l){let d=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(c,l,d)}static toFloatValue(c,l){return c===void 0?l:parseFloat(c)}}n.exports=s},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,n,i){const a=e("../base-xform"),o=e("../../../utils/col-cache");function s(c){try{return o.decodeEx(c),!0}catch{return!1}}function u(c){const l=[];let d=!1,h="";return c.split(",").forEach(f=>{if(!f)return;const g=(f.match(/'/g)||[]).length;if(!g)return void(d?h+=f+",":s(f)&&l.push(f));const m=g%2==0;!d&&m&&s(f)?l.push(f):d&&!m?(d=!1,s(h+f)&&l.push(h+f),h=""):(d=!0,h+=f+",")}),l}n.exports=class extends a{render(c,l){c.openNode("definedName",{name:l.name,localSheetId:l.localSheetId}),c.writeText(l.ranges.join(",")),c.closeNode()}parseOpen(c){switch(c.name){case"definedName":return this._parsedName=c.attributes.name,this._parsedLocalSheetId=c.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(c){this._parsedText.push(c)}parseClose(){return this.model={name:this._parsedName,ranges:u(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,n,i){const a=e("../../../utils/utils"),o=e("../base-xform");n.exports=class extends o{render(s,u){s.leafNode("sheet",{sheetId:u.id,name:u.name,state:u.state,"r:id":u.rId})}parseOpen(s){return s.name==="sheet"&&(this.model={name:a.xmlDecode(s.attributes.name),id:parseInt(s.attributes.sheetId,10),state:s.attributes.state,rId:s.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{render(o,s){o.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:s.fullCalcOnLoad?1:void 0})}parseOpen(o){return o.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{render(o,s){o.leafNode("workbookPr",{date1904:s.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(o){return o.name==="workbookPr"&&(this.model={date1904:o.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{render(o,s){const u={xWindow:s.x||0,yWindow:s.y||0,windowWidth:s.width||12e3,windowHeight:s.height||24e3,firstSheet:s.firstSheet,activeTab:s.activeTab};s.visibility&&s.visibility!=="visible"&&(u.visibility=s.visibility),o.leafNode("workbookView",u)}parseOpen(o){if(o.name==="workbookView"){const s=this.model={},u=function(l,d,h){const f=d!==void 0?s[l]=d:h;f!==void 0&&(s[l]=f)},c=function(l,d,h){const f=d!==void 0?s[l]=parseInt(d,10):h;f!==void 0&&(s[l]=f)};return c("x",o.attributes.xWindow,0),c("y",o.attributes.yWindow,0),c("width",o.attributes.windowWidth,25e3),c("height",o.attributes.windowHeight,1e4),u("visibility",o.attributes.visibility,"visible"),c("activeTab",o.attributes.activeTab,void 0),c("firstSheet",o.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(e,n,i){const a=e("../../../utils/under-dash"),o=e("../../../utils/col-cache"),s=e("../../../utils/xml-stream"),u=e("../base-xform"),c=e("../static-xform"),l=e("../list-xform"),d=e("./defined-name-xform"),h=e("./sheet-xform"),f=e("./workbook-view-xform"),g=e("./workbook-properties-xform"),m=e("./workbook-calc-properties-xform");class p extends u{constructor(){super(),this.map={fileVersion:p.STATIC_XFORMS.fileVersion,workbookPr:new g,bookViews:new l({tag:"bookViews",count:!1,childXform:new f}),sheets:new l({tag:"sheets",count:!1,childXform:new h}),definedNames:new l({tag:"definedNames",count:!1,childXform:new d}),calcPr:new m}}prepare(v){v.sheets=v.worksheets;const b=[];let A=0;v.sheets.forEach(C=>{if(C.pageSetup&&C.pageSetup.printArea&&C.pageSetup.printArea.split("&&").forEach(M=>{const z=M.split(":"),W={name:"_xlnm.Print_Area",ranges:[`'${C.name}'!$${z[0]}:$${z[1]}`],localSheetId:A};b.push(W)}),C.pageSetup&&(C.pageSetup.printTitlesRow||C.pageSetup.printTitlesColumn)){const M=[];if(C.pageSetup.printTitlesColumn){const W=C.pageSetup.printTitlesColumn.split(":");M.push(`'${C.name}'!$${W[0]}:$${W[1]}`)}if(C.pageSetup.printTitlesRow){const W=C.pageSetup.printTitlesRow.split(":");M.push(`'${C.name}'!$${W[0]}:$${W[1]}`)}const z={name:"_xlnm.Print_Titles",ranges:M,localSheetId:A};b.push(z)}A++}),b.length&&(v.definedNames=v.definedNames.concat(b)),(v.media||[]).forEach((C,M)=>{C.name=C.type+(M+1)})}render(v,b){v.openXml(s.StdDocAttributes),v.openNode("workbook",p.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(v),this.map.workbookPr.render(v,b.properties),this.map.bookViews.render(v,b.views),this.map.sheets.render(v,b.sheets),this.map.definedNames.render(v,b.definedNames),this.map.calcPr.render(v,b.calcProperties),v.closeNode()}parseOpen(v){if(this.parser)return this.parser.parseOpen(v),!0;switch(v.name){case"workbook":return!0;default:return this.parser=this.map[v.name],this.parser&&this.parser.parseOpen(v),!0}}parseText(v){this.parser&&this.parser.parseText(v)}parseClose(v){if(this.parser)return this.parser.parseClose(v)||(this.parser=void 0),!0;switch(v){case"workbook":return this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1;default:return!0}}reconcile(v){const b=(v.workbookRels||[]).reduce((W,U)=>(W[U.Id]=U,W),{}),A=[];let C,M=0;(v.sheets||[]).forEach(W=>{const U=b[W.rId];U&&(C=v.worksheetHash["xl/"+U.Target.replace(/^(\s|\/xl\/)+/,"")],C&&(C.name=W.name,C.id=W.id,C.state=W.state,A[M++]=C))});const z=[];a.each(v.definedNames,W=>{if(W.name==="_xlnm.Print_Area"){if(C=A[W.localSheetId],C){C.pageSetup||(C.pageSetup={});const U=o.decodeEx(W.ranges[0]);C.pageSetup.printArea=C.pageSetup.printArea?`${C.pageSetup.printArea}&&${U.dimensions}`:U.dimensions}}else if(W.name==="_xlnm.Print_Titles"){if(C=A[W.localSheetId],C){C.pageSetup||(C.pageSetup={});const U=W.ranges.join(","),G=/\$/g,ee=/\$\d+:\$\d+/,I=U.match(ee);if(I&&I.length){const S=I[0];C.pageSetup.printTitlesRow=S.replace(G,"")}const O=/\$[A-Z]+:\$[A-Z]+/,T=U.match(O);if(T&&T.length){const S=T[0];C.pageSetup.printTitlesColumn=S.replace(G,"")}}}else z.push(W)}),v.definedNames=z,v.media.forEach((W,U)=>{W.index=U})}}p.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},p.STATIC_XFORMS={fileVersion:new c({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},n.exports=p},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(e,n,i){const a=e("../strings/rich-text-xform"),o=e("../../../utils/utils"),s=e("../base-xform"),u=n.exports=function(c){this.model=c};o.inherits(u,s,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new a),this._richTextXform},render(c,l){l=l||this.model,c.openNode("comment",{ref:l.ref,authorId:0}),c.openNode("text"),l&&l.note&&l.note.texts&&l.note.texts.forEach(d=>{this.richTextXform.render(c,d)}),c.closeNode(),c.closeNode()},parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"comment":return this.model=An({type:"note",note:{texts:[]}},c.attributes),!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(c),!0;default:return!1}},parseText(c){this.parser&&this.parser.parseText(c)},parseClose(c){switch(c){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(c),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,n,i){const a=e("../../../utils/xml-stream"),o=e("../../../utils/utils"),s=e("../base-xform"),u=e("./comment-xform"),c=n.exports=function(){this.map={comment:new u}};o.inherits(c,s,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(l,d){d=d||this.model,l.openXml(a.StdDocAttributes),l.openNode("comments",c.COMMENTS_ATTRIBUTES),l.openNode("authors"),l.leafNode("author",null,"Author"),l.closeNode(),l.openNode("commentList"),d.comments.forEach(h=>{this.map.comment.render(l,h)}),l.closeNode(),l.closeNode()},parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(l),!0;default:return!1}},parseText(l){this.parser&&this.parser.parseText(l)},parseClose(l){switch(l){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(l),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,n,i){const a=e("../../base-xform");n.exports=class extends a{constructor(o){super(),this._model=o}get tag(){return this._model&&this._model.tag}render(o,s,u){(s===u[2]||this.tag==="x:SizeWithCells"&&s===u[1])&&o.leafNode(this.tag)}parseOpen(o){switch(o.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(e,n,i){const a=e("../../base-xform");n.exports=class extends a{constructor(o){super(),this._model=o}get tag(){return this._model&&this._model.tag}render(o,s){o.leafNode(this.tag,null,s)}parseOpen(o){switch(o.name){case this.tag:return this.text="",!0;default:return!1}}parseText(o){this.text=o}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"x:Anchor"}getAnchorRect(o){const s=Math.floor(o.left),u=Math.floor(68*(o.left-s)),c=Math.floor(o.top),l=Math.floor(18*(o.top-c)),d=Math.floor(o.right),h=Math.floor(68*(o.right-d)),f=Math.floor(o.bottom);return[s,u,c,l,d,h,f,Math.floor(18*(o.bottom-f))]}getDefaultRect(o){const s=o.col,u=Math.max(o.row-2,0);return[s,6,u,14,s+2,2,u+4,16]}render(o,s){const u=s.anchor?this.getAnchorRect(s.anchor):this.getDefaultRect(s.refAddress);o.leafNode("x:Anchor",null,u.join(", "))}parseOpen(o){switch(o.name){case this.tag:return this.text="",!0;default:return!1}}parseText(o){this.text=o}parseClose(){return!1}}},{"../base-xform":32}],44:[function(e,n,i){const a=e("../base-xform"),o=e("./vml-anchor-xform"),s=e("./style/vml-protection-xform"),u=e("./style/vml-position-xform"),c=["twoCells","oneCells","absolute"];n.exports=class extends a{constructor(){super(),this.map={"x:Anchor":new o,"x:Locked":new s({tag:"x:Locked"}),"x:LockText":new s({tag:"x:LockText"}),"x:SizeWithCells":new u({tag:"x:SizeWithCells"}),"x:MoveWithCells":new u({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(l,d){const{protection:h,editAs:f}=d.note;l.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(l,f,c),this.map["x:SizeWithCells"].render(l,f,c),this.map["x:Anchor"].render(l,d),this.map["x:Locked"].render(l,h.locked),l.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(l,h.lockText),l.leafNode("x:Row",null,d.refAddress.row-1),l.leafNode("x:Column",null,d.refAddress.col-1),l.closeNode()}parseOpen(l){switch(l.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){const l=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),d=Object.keys(l).length;this.model.editAs=c[d],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(e,n,i){const a=e("../../../utils/xml-stream"),o=e("../base-xform"),s=e("./vml-shape-xform");class u extends o{constructor(){super(),this.map={"v:shape":new s}}get tag(){return"xml"}render(l,d){l.openXml(a.StdDocAttributes),l.openNode(this.tag,u.DRAWING_ATTRIBUTES),l.openNode("o:shapelayout",{"v:ext":"edit"}),l.leafNode("o:idmap",{"v:ext":"edit",data:1}),l.closeNode(),l.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),l.leafNode("v:stroke",{joinstyle:"miter"}),l.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),l.closeNode(),d.comments.forEach((h,f)=>{this.map["v:shape"].render(l,h,f)}),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(l){case this.tag:return!1;default:return!0}}reconcile(l,d){l.anchors.forEach(h=>{h.br?this.map["xdr:twoCellAnchor"].reconcile(h,d):this.map["xdr:oneCellAnchor"].reconcile(h,d)})}}u.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},n.exports=u},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,n,i){const a=e("../base-xform"),o=e("./vml-textbox-xform"),s=e("./vml-client-data-xform");class u extends a{constructor(){super(),this.map={"v:textbox":new o,"x:ClientData":new s}}get tag(){return"v:shape"}render(l,d,h){l.openNode("v:shape",u.V_SHAPE_ATTRIBUTES(d,h)),l.leafNode("v:fill",{color2:"infoBackground [80]"}),l.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),l.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(l,d),this.map["x:ClientData"].render(l,d),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:this.reset(),this.model={margins:{insetmode:l.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}}u.V_SHAPE_ATTRIBUTES=(c,l)=>({id:"_x0000_s"+(1025+l),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":c.note.margins&&c.note.margins.insetmode}),n.exports=u},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"v:textbox"}conversionUnit(o,s,u){return`${parseFloat(o)*s.toFixed(2)}${u}`}reverseConversionUnit(o){return(o||"").split(",").map(s=>Number(parseFloat(this.conversionUnit(parseFloat(s),.1,"")).toFixed(2)))}render(o,s){const u={style:"mso-direction-alt:auto"};if(s&&s.note){let{inset:c}=s.note&&s.note.margins;Array.isArray(c)&&(c=c.map(l=>this.conversionUnit(l,10,"mm")).join(",")),c&&(u.inset=c)}o.openNode("v:textbox",u),o.leafNode("div",{style:"text-align:left"}),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:return this.model={inset:this.reverseConversionUnit(o.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(e,n,i){const a=e("./base-xform");n.exports=class extends a{createNewModel(o){return{}}parseOpen(o){return this.parser=this.parser||this.map[o.name],this.parser?(this.parser.parseOpen(o),!0):o.name===this.tag&&(this.model=this.createNewModel(o),!0)}parseText(o){this.parser&&this.parser.parseText(o)}onParserClose(o,s){this.model[o]=s.model}parseClose(o){return this.parser?(this.parser.parseClose(o)||(this.onParserClose(o,this.parser),this.parser=void 0),!0):o!==this.tag}}},{"./base-xform":32}],49:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{render(o,s){o.openNode("HeadingPairs"),o.openNode("vt:vector",{size:2,baseType:"variant"}),o.openNode("vt:variant"),o.leafNode("vt:lpstr",void 0,"Worksheets"),o.closeNode(),o.openNode("vt:variant"),o.leafNode("vt:i4",void 0,s.length),o.closeNode(),o.closeNode(),o.closeNode()}parseOpen(o){return o.name==="HeadingPairs"}parseText(){}parseClose(o){return o!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{render(o,s){o.openNode("TitlesOfParts"),o.openNode("vt:vector",{size:s.length,baseType:"lpstr"}),s.forEach(u=>{o.leafNode("vt:lpstr",void 0,u.name)}),o.closeNode(),o.closeNode()}parseOpen(o){return o.name==="TitlesOfParts"}parseText(){}parseClose(o){return o!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(e,n,i){const a=e("../../../utils/xml-stream"),o=e("../base-xform"),s=e("../simple/string-xform"),u=e("./app-heading-pairs-xform"),c=e("./app-titles-of-parts-xform");class l extends o{constructor(){super(),this.map={Company:new s({tag:"Company"}),Manager:new s({tag:"Manager"}),HeadingPairs:new u,TitleOfParts:new c}}render(h,f){h.openXml(a.StdDocAttributes),h.openNode("Properties",l.PROPERTY_ATTRIBUTES),h.leafNode("Application",void 0,"Microsoft Excel"),h.leafNode("DocSecurity",void 0,"0"),h.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(h,f.worksheets),this.map.TitleOfParts.render(h,f.worksheets),this.map.Company.render(h,f.company||""),this.map.Manager.render(h,f.manager),h.leafNode("LinksUpToDate",void 0,"false"),h.leafNode("SharedDoc",void 0,"false"),h.leafNode("HyperlinksChanged",void 0,"false"),h.leafNode("AppVersion",void 0,"16.0300"),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"Properties":return!0;default:return this.parser=this.map[h.name],!!this.parser&&(this.parser.parseOpen(h),!0)}}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){if(this.parser)return this.parser.parseClose(h)||(this.parser=void 0),!0;switch(h){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}l.DateFormat=function(d){return d.toISOString().replace(/[.]\d{3,6}/,"")},l.DateAttrs={"xsi:type":"dcterms:W3CDTF"},l.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},n.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,n,i){const a=e("../../../utils/xml-stream"),o=e("../base-xform");class s extends o{render(c,l){c.openXml(a.StdDocAttributes),c.openNode("Types",s.PROPERTY_ATTRIBUTES);const d={};(l.media||[]).forEach(h=>{if(h.type==="image"){const f=h.extension;d[f]||(d[f]=!0,c.leafNode("Default",{Extension:f,ContentType:"image/"+f}))}}),c.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),c.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),c.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),l.worksheets.forEach(h=>{const f=`/xl/worksheets/sheet${h.id}.xml`;c.leafNode("Override",{PartName:f,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),c.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),c.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),l.sharedStrings&&l.sharedStrings.count&&c.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),l.tables&&l.tables.forEach(h=>{c.leafNode("Override",{PartName:"/xl/tables/"+h.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),l.drawings&&l.drawings.forEach(h=>{c.leafNode("Override",{PartName:`/xl/drawings/${h.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),l.commentRefs&&(c.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),l.commentRefs.forEach(h=>{let{commentName:f}=h;c.leafNode("Override",{PartName:`/xl/${f}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),c.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),c.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),c.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}s.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},n.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,n,i){const a=e("../../../utils/xml-stream"),o=e("../base-xform"),s=e("../simple/date-xform"),u=e("../simple/string-xform"),c=e("../simple/integer-xform");class l extends o{constructor(){super(),this.map={"dc:creator":new u({tag:"dc:creator"}),"dc:title":new u({tag:"dc:title"}),"dc:subject":new u({tag:"dc:subject"}),"dc:description":new u({tag:"dc:description"}),"dc:identifier":new u({tag:"dc:identifier"}),"dc:language":new u({tag:"dc:language"}),"cp:keywords":new u({tag:"cp:keywords"}),"cp:category":new u({tag:"cp:category"}),"cp:lastModifiedBy":new u({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new s({tag:"cp:lastPrinted",format:l.DateFormat}),"cp:revision":new c({tag:"cp:revision"}),"cp:version":new u({tag:"cp:version"}),"cp:contentStatus":new u({tag:"cp:contentStatus"}),"cp:contentType":new u({tag:"cp:contentType"}),"dcterms:created":new s({tag:"dcterms:created",attrs:l.DateAttrs,format:l.DateFormat}),"dcterms:modified":new s({tag:"dcterms:modified",attrs:l.DateAttrs,format:l.DateFormat})}}render(h,f){h.openXml(a.StdDocAttributes),h.openNode("cp:coreProperties",l.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(h,f.creator),this.map["dc:title"].render(h,f.title),this.map["dc:subject"].render(h,f.subject),this.map["dc:description"].render(h,f.description),this.map["dc:identifier"].render(h,f.identifier),this.map["dc:language"].render(h,f.language),this.map["cp:keywords"].render(h,f.keywords),this.map["cp:category"].render(h,f.category),this.map["cp:lastModifiedBy"].render(h,f.lastModifiedBy),this.map["cp:lastPrinted"].render(h,f.lastPrinted),this.map["cp:revision"].render(h,f.revision),this.map["cp:version"].render(h,f.version),this.map["cp:contentStatus"].render(h,f.contentStatus),this.map["cp:contentType"].render(h,f.contentType),this.map["dcterms:created"].render(h,f.created),this.map["dcterms:modified"].render(h,f.modified),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[h.name],this.parser)return this.parser.parseOpen(h),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(h))}}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){if(this.parser)return this.parser.parseClose(h)||(this.parser=void 0),!0;switch(h){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+h)}}}l.DateFormat=function(d){return d.toISOString().replace(/[.]\d{3}/,"")},l.DateAttrs={"xsi:type":"dcterms:W3CDTF"},l.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},n.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{render(o,s){o.leafNode("Relationship",s)}parseOpen(o){switch(o.name){case"Relationship":return this.model=o.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(e,n,i){const a=e("../../../utils/xml-stream"),o=e("../base-xform"),s=e("./relationship-xform");class u extends o{constructor(){super(),this.map={Relationship:new s}}render(l,d){d=d||this._values,l.openXml(a.StdDocAttributes),l.openNode("Relationships",u.RELATIONSHIPS_ATTRIBUTES),d.forEach(h=>{this.map.Relationship.render(l,h)}),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[l.name],this.parser)return this.parser.parseOpen(l),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(l))}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(l){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+l)}}}u.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},n.exports=u},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset(),this.model={range:{editAs:o.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)}return!0}parseText(o){this.parser&&this.parser.parseText(o)}reconcilePicture(o,s){if(o&&o.rId){const u=s.rels[o.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(u){const c=u[1],l=s.mediaIndex[c];return s.media[l]}}}}},{"../base-xform":32}],57:[function(e,n,i){const a=e("../base-xform"),o=e("./blip-xform");n.exports=class extends a{constructor(){super(),this.map={"a:blip":new o}}get tag(){return"xdr:blipFill"}render(s,u){s.openNode(this.tag),this.map["a:blip"].render(s,u),s.openNode("a:stretch"),s.leafNode("a:fillRect"),s.closeNode(),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:this.reset();break;default:this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)}return!0}parseText(){}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.parser=void 0),!0;switch(s){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"a:blip"}render(o,s){o.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":s.rId,cstate:"print"})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"xdr:cNvPicPr"}render(o){o.openNode(this.tag),o.leafNode("a:picLocks",{noChangeAspect:"1"}),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(e,n,i){const a=e("../base-xform"),o=e("./hlink-click-xform"),s=e("./ext-lst-xform");n.exports=class extends a{constructor(){super(),this.map={"a:hlinkClick":new o,"a:extLst":new s}}get tag(){return"xdr:cNvPr"}render(u,c){u.openNode(this.tag,{id:c.index,name:"Picture "+c.index}),this.map["a:hlinkClick"].render(u,c),this.map["a:extLst"].render(u,c),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case this.tag:this.reset();break;default:this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)}return!0}parseText(){}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,n,i){const a=e("../base-xform"),o=e("../simple/integer-xform");n.exports=class extends a{constructor(s){super(),this.tag=s.tag,this.map={"xdr:col":new o({tag:"xdr:col",zero:!0}),"xdr:colOff":new o({tag:"xdr:colOff",zero:!0}),"xdr:row":new o({tag:"xdr:row",zero:!0}),"xdr:rowOff":new o({tag:"xdr:rowOff",zero:!0})}}render(s,u){s.openNode(this.tag),this.map["xdr:col"].render(s,u.nativeCol),this.map["xdr:colOff"].render(s,u.nativeColOff),this.map["xdr:row"].render(s,u.nativeRow),this.map["xdr:rowOff"].render(s,u.nativeRowOff),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:this.reset();break;default:this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)}return!0}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.parser=void 0),!0;switch(s){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,n,i){const a=e("../../../utils/col-cache"),o=e("../../../utils/xml-stream"),s=e("../base-xform"),u=e("./two-cell-anchor-xform"),c=e("./one-cell-anchor-xform");class l extends s{constructor(){super(),this.map={"xdr:twoCellAnchor":new u,"xdr:oneCellAnchor":new c}}prepare(h){h.anchors.forEach((f,g)=>{f.anchorType=function(m){return(typeof m.range=="string"?a.decode(m.range):m.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(f),this.map[f.anchorType].prepare(f,{index:g})})}get tag(){return"xdr:wsDr"}render(h,f){h.openXml(o.StdDocAttributes),h.openNode(this.tag,l.DRAWING_ATTRIBUTES),f.anchors.forEach(g=>{this.map[g.anchorType].render(h,g)}),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[h.name],this.parser&&this.parser.parseOpen(h)}return!0}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){if(this.parser)return this.parser.parseClose(h)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(h){case this.tag:return!1;default:return!0}}reconcile(h,f){h.anchors.forEach(g=>{g.br?this.map["xdr:twoCellAnchor"].reconcile(g,f):this.map["xdr:oneCellAnchor"].reconcile(g,f)})}}l.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},n.exports=l},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"a:extLst"}render(o){o.openNode(this.tag),o.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),o.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),o.closeNode(),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{constructor(o){super(),this.tag=o.tag,this.map={}}render(o,s){o.openNode(this.tag);const u=Math.floor(9525*s.width),c=Math.floor(9525*s.height);o.addAttribute("cx",u),o.addAttribute("cy",c),o.closeNode()}parseOpen(o){return o.name===this.tag&&(this.model={width:parseInt(o.attributes.cx||"0",10)/9525,height:parseInt(o.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"a:hlinkClick"}render(o,s){s.hyperlinks&&s.hyperlinks.rId&&o.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":s.hyperlinks.rId,tooltip:s.hyperlinks.tooltip})}parseOpen(o){switch(o.name){case this.tag:return this.model={hyperlinks:{rId:o.attributes["r:id"],tooltip:o.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(e,n,i){const a=e("../base-xform"),o=e("./c-nv-pr-xform"),s=e("./c-nv-pic-pr-xform");n.exports=class extends a{constructor(){super(),this.map={"xdr:cNvPr":new o,"xdr:cNvPicPr":new s}}get tag(){return"xdr:nvPicPr"}render(u,c){u.openNode(this.tag),this.map["xdr:cNvPr"].render(u,c),this.map["xdr:cNvPicPr"].render(u,c),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case this.tag:this.reset();break;default:this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)}return!0}parseText(){}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,n,i){const a=e("./base-cell-anchor-xform"),o=e("../static-xform"),s=e("./cell-position-xform"),u=e("./ext-xform"),c=e("./pic-xform");n.exports=class extends a{constructor(){super(),this.map={"xdr:from":new s({tag:"xdr:from"}),"xdr:ext":new u({tag:"xdr:ext"}),"xdr:pic":new c,"xdr:clientData":new o({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(l,d){this.map["xdr:pic"].prepare(l.picture,d)}render(l,d){l.openNode(this.tag,{editAs:d.range.editAs||"oneCell"}),this.map["xdr:from"].render(l,d.range.tl),this.map["xdr:ext"].render(l,d.range.ext),this.map["xdr:pic"].render(l,d.picture),this.map["xdr:clientData"].render(l,{}),l.closeNode()}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(l,d){l.medium=this.reconcilePicture(l.picture,d)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,n,i){const a=e("../base-xform"),o=e("../static-xform"),s=e("./blip-fill-xform"),u=e("./nv-pic-pr-xform"),c=e("./sp-pr");n.exports=class extends a{constructor(){super(),this.map={"xdr:nvPicPr":new u,"xdr:blipFill":new s,"xdr:spPr":new o(c)}}get tag(){return"xdr:pic"}prepare(l,d){l.index=d.index+1}render(l,d){l.openNode(this.tag),this.map["xdr:nvPicPr"].render(l,d),this.map["xdr:blipFill"].render(l,d),this.map["xdr:spPr"].render(l,d),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:this.reset();break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(){}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(l){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,n,i){n.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(e,n,i){const a=e("./base-cell-anchor-xform"),o=e("../static-xform"),s=e("./cell-position-xform"),u=e("./pic-xform");n.exports=class extends a{constructor(){super(),this.map={"xdr:from":new s({tag:"xdr:from"}),"xdr:to":new s({tag:"xdr:to"}),"xdr:pic":new u,"xdr:clientData":new o({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(c,l){this.map["xdr:pic"].prepare(c.picture,l)}render(c,l){c.openNode(this.tag,{editAs:l.range.editAs||"oneCell"}),this.map["xdr:from"].render(c,l.range.tl),this.map["xdr:to"].render(c,l.range.br),this.map["xdr:pic"].render(c,l.picture),this.map["xdr:clientData"].render(c,{}),c.closeNode()}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.parser=void 0),!0;switch(c){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(c,l){c.medium=this.reconcilePicture(c.picture,l)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,n,i){const a=e("./base-xform");n.exports=class extends a{constructor(o){super(),this.tag=o.tag,this.always=!!o.always,this.count=o.count,this.empty=o.empty,this.$count=o.$count||"count",this.$=o.$,this.childXform=o.childXform,this.maxItems=o.maxItems}prepare(o,s){const{childXform:u}=this;o&&o.forEach((c,l)=>{s.index=l,u.prepare(c,s)})}render(o,s){if(this.always||s&&s.length){o.openNode(this.tag,this.$),this.count&&o.addAttribute(this.$count,s&&s.length||0);const{childXform:u}=this;(s||[]).forEach((c,l)=>{u.render(o,c,l)}),o.closeNode()}else this.empty&&o.leafNode(this.tag)}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(o)&&(this.parser=this.childXform,!0)}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser){if(!this.parser.parseClose(o)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(o,s){if(o){const{childXform:u}=this;o.forEach(c=>{u.reconcile(c,s)})}}}},{"./base-xform":32}],72:[function(e,n,i){const a=e("../../../utils/col-cache"),o=e("../base-xform");n.exports=class extends o{get tag(){return"autoFilter"}render(s,u){if(u)if(typeof u=="string")s.leafNode("autoFilter",{ref:u});else{const c=function(h){return typeof h=="string"?h:a.getAddress(h.row,h.column).address},l=c(u.from),d=c(u.to);l&&d&&s.leafNode("autoFilter",{ref:`${l}:${d}`})}}parseOpen(s){s.name==="autoFilter"&&(this.model=s.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,n,i){const a=e("../../../utils/utils"),o=e("../base-xform"),s=e("../../../doc/range"),u=e("../../../doc/enums"),c=e("../strings/rich-text-xform");function l(d){if(d==null)return u.ValueType.Null;if(d instanceof String||typeof d=="string")return u.ValueType.String;if(typeof d=="number")return u.ValueType.Number;if(typeof d=="boolean")return u.ValueType.Boolean;if(d instanceof Date)return u.ValueType.Date;if(d.text&&d.hyperlink)return u.ValueType.Hyperlink;if(d.formula)return u.ValueType.Formula;if(d.error)return u.ValueType.Error;throw new Error("I could not understand type of value")}n.exports=class extends o{constructor(){super(),this.richTextXForm=new c}get tag(){return"c"}prepare(d,h){const f=h.styles.addStyleModel(d.style||{},function(g){switch(g.type){case u.ValueType.Formula:return l(g.result);default:return g.type}}(d));switch(f&&(d.styleId=f),d.comment&&h.comments.push($o(An({},d.comment),{ref:d.address})),d.type){case u.ValueType.String:case u.ValueType.RichText:h.sharedStrings&&(d.ssId=h.sharedStrings.add(d.value));break;case u.ValueType.Date:h.date1904&&(d.date1904=!0);break;case u.ValueType.Hyperlink:h.sharedStrings&&d.text!==void 0&&d.text!==null&&(d.ssId=h.sharedStrings.add(d.text)),h.hyperlinks.push({address:d.address,target:d.hyperlink,tooltip:d.tooltip});break;case u.ValueType.Merge:h.merges.add(d);break;case u.ValueType.Formula:if(h.date1904&&(d.date1904=!0),d.shareType==="shared"&&(d.si=h.siFormulae++),d.formula)h.formulae[d.address]=d;else if(d.sharedFormula){const g=h.formulae[d.sharedFormula];if(!g)throw new Error("Shared Formula master must exist above and or left of clone for cell "+d.address);g.si===void 0?(g.shareType="shared",g.si=h.siFormulae++,g.range=new s(g.address,d.address)):g.range&&g.range.expandToAddress(d.address),d.si=g.si}}}renderFormula(d,h){let f=null;switch(h.shareType){case"shared":f={t:"shared",ref:h.ref||h.range.range,si:h.si};break;case"array":f={t:"array",ref:h.ref};break;default:h.si!==void 0&&(f={t:"shared",si:h.si})}switch(l(h.result)){case u.ValueType.Null:d.leafNode("f",f,h.formula);break;case u.ValueType.String:d.addAttribute("t","str"),d.leafNode("f",f,h.formula),d.leafNode("v",null,h.result);break;case u.ValueType.Number:d.leafNode("f",f,h.formula),d.leafNode("v",null,h.result);break;case u.ValueType.Boolean:d.addAttribute("t","b"),d.leafNode("f",f,h.formula),d.leafNode("v",null,h.result?1:0);break;case u.ValueType.Error:d.addAttribute("t","e"),d.leafNode("f",f,h.formula),d.leafNode("v",null,h.result.error);break;case u.ValueType.Date:d.leafNode("f",f,h.formula),d.leafNode("v",null,a.dateToExcel(h.result,h.date1904));break;default:throw new Error("I could not understand type of value")}}render(d,h){if(h.type!==u.ValueType.Null||h.styleId){switch(d.openNode("c"),d.addAttribute("r",h.address),h.styleId&&d.addAttribute("s",h.styleId),h.type){case u.ValueType.Null:break;case u.ValueType.Number:d.leafNode("v",null,h.value);break;case u.ValueType.Boolean:d.addAttribute("t","b"),d.leafNode("v",null,h.value?"1":"0");break;case u.ValueType.Error:d.addAttribute("t","e"),d.leafNode("v",null,h.value.error);break;case u.ValueType.String:case u.ValueType.RichText:h.ssId!==void 0?(d.addAttribute("t","s"),d.leafNode("v",null,h.ssId)):h.value&&h.value.richText?(d.addAttribute("t","inlineStr"),d.openNode("is"),h.value.richText.forEach(f=>{this.richTextXForm.render(d,f)}),d.closeNode("is")):(d.addAttribute("t","str"),d.leafNode("v",null,h.value));break;case u.ValueType.Date:d.leafNode("v",null,a.dateToExcel(h.value,h.date1904));break;case u.ValueType.Hyperlink:h.ssId!==void 0?(d.addAttribute("t","s"),d.leafNode("v",null,h.ssId)):(d.addAttribute("t","str"),d.leafNode("v",null,h.text));break;case u.ValueType.Formula:this.renderFormula(d,h);break;case u.ValueType.Merge:}d.closeNode()}}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;switch(d.name){case"c":return this.model={address:d.attributes.r},this.t=d.attributes.t,d.attributes.s&&(this.model.styleId=parseInt(d.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=d.attributes.si,this.model.shareType=d.attributes.t,this.model.ref=d.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(d),!0;default:return!1}}parseText(d){if(this.parser)this.parser.parseText(d);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+d:d;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+d:d:this.model.value=this.model.value?this.model.value+d:d}}parseClose(d){switch(d){case"c":{const{model:h}=this;if(h.formula||h.shareType)h.type=u.ValueType.Formula,h.value&&(this.t==="str"?h.result=a.xmlDecode(h.value):this.t==="b"?h.result=parseInt(h.value,10)!==0:this.t==="e"?h.result={error:h.value}:h.result=parseFloat(h.value),h.value=void 0);else if(h.value!==void 0)switch(this.t){case"s":h.type=u.ValueType.String,h.value=parseInt(h.value,10);break;case"str":h.type=u.ValueType.String,h.value=a.xmlDecode(h.value);break;case"inlineStr":h.type=u.ValueType.String;break;case"b":h.type=u.ValueType.Boolean,h.value=parseInt(h.value,10)!==0;break;case"e":h.type=u.ValueType.Error,h.value={error:h.value};break;default:h.type=u.ValueType.Number,h.value=parseFloat(h.value)}else h.styleId?h.type=u.ValueType.Null:h.type=u.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(d),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(d),!0)}}reconcile(d,h){const f=d.styleId&&h.styles&&h.styles.getStyleModel(d.styleId);switch(f&&(d.style=f),d.styleId!==void 0&&(d.styleId=void 0),d.type){case u.ValueType.String:typeof d.value=="number"&&h.sharedStrings&&(d.value=h.sharedStrings.getString(d.value)),d.value.richText&&(d.type=u.ValueType.RichText);break;case u.ValueType.Number:f&&a.isDateFmt(f.numFmt)&&(d.type=u.ValueType.Date,d.value=a.excelToDate(d.value,h.date1904));break;case u.ValueType.Formula:d.result!==void 0&&f&&a.isDateFmt(f.numFmt)&&(d.result=a.excelToDate(d.result,h.date1904)),d.shareType==="shared"&&(d.ref?h.formulae[d.si]=d.address:(d.sharedFormula=h.formulae[d.si],delete d.shareType),delete d.si)}const g=h.hyperlinkMap[d.address];g&&(d.type===u.ValueType.Formula?(d.text=d.result,d.result=void 0):(d.text=d.value,d.value=void 0),d.type=u.ValueType.Hyperlink,d.hyperlink=g);const m=h.commentsMap&&h.commentsMap[d.address];m&&(d.comment=m)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,n,i){const a=e("../../base-xform");n.exports=class extends a{get tag(){return"x14:cfIcon"}render(o,s){o.leafNode(this.tag,{iconSet:s.iconSet,iconId:s.iconId})}parseOpen(o){let{attributes:s}=o;this.model={iconSet:s.iconSet,iconId:a.toIntValue(s.iconId)}}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],75:[function(e,n,i){const{v4:a}=e("uuid"),o=e("../../base-xform"),s=e("../../composite-xform"),u=e("./databar-ext-xform"),c=e("./icon-set-ext-xform"),l={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class d extends s{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new u,"x14:iconSet":this.iconSetXform=new c}}get tag(){return"x14:cfRule"}static isExt(f){return f.type==="dataBar"?u.isExt(f):!(f.type!=="iconSet"||!f.custom&&!l[f.iconSet])}prepare(f){d.isExt(f)&&(f.x14Id=`{${a()}}`.toUpperCase())}render(f,g){if(d.isExt(g))switch(g.type){case"dataBar":this.renderDataBar(f,g);break;case"iconSet":this.renderIconSet(f,g)}}renderDataBar(f,g){f.openNode(this.tag,{type:"dataBar",id:g.x14Id}),this.databarXform.render(f,g),f.closeNode()}renderIconSet(f,g){f.openNode(this.tag,{type:"iconSet",priority:g.priority,id:g.x14Id||`{${a()}}`}),this.iconSetXform.render(f,g),f.closeNode()}createNewModel(f){let{attributes:g}=f;return{type:g.type,x14Id:g.id,priority:o.toIntValue(g.priority)}}onParserClose(f,g){Object.assign(this.model,g.model)}}n.exports=d},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,n,i){const a=e("../../composite-xform"),o=e("./f-ext-xform");n.exports=class extends a{constructor(){super(),this.map={"xm:f":this.fExtXform=new o}}get tag(){return"x14:cfvo"}render(s,u){s.openNode(this.tag,{type:u.type}),u.value!==void 0&&this.fExtXform.render(s,u.value),s.closeNode()}createNewModel(s){return{type:s.attributes.type}}onParserClose(s,u){switch(s){case"xm:f":this.model.value=u.model?parseFloat(u.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,n,i){const a=e("../../composite-xform"),o=e("./sqref-ext-xform"),s=e("./cf-rule-ext-xform");n.exports=class extends a{constructor(){super(),this.map={"xm:sqref":this.sqRef=new o,"x14:cfRule":this.cfRule=new s}}get tag(){return"x14:conditionalFormatting"}prepare(u,c){u.rules.forEach(l=>{this.cfRule.prepare(l,c)})}render(u,c){c.rules.some(s.isExt)&&(u.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),c.rules.filter(s.isExt).forEach(l=>this.cfRule.render(u,l)),this.sqRef.render(u,c.ref),u.closeNode())}createNewModel(){return{rules:[]}}onParserClose(u,c){switch(u){case"xm:sqref":this.model.ref=c.model;break;case"x14:cfRule":this.model.rules.push(c.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,n,i){const a=e("../../composite-xform"),o=e("./cf-rule-ext-xform"),s=e("./conditional-formatting-ext-xform");n.exports=class extends a{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new s}}get tag(){return"x14:conditionalFormattings"}hasContent(u){return u.hasExtContent===void 0&&(u.hasExtContent=u.some(c=>c.rules.some(o.isExt))),u.hasExtContent}prepare(u,c){u.forEach(l=>{this.cfXform.prepare(l,c)})}render(u,c){this.hasContent(c)&&(u.openNode(this.tag),c.forEach(l=>this.cfXform.render(u,l)),u.closeNode())}createNewModel(){return[]}onParserClose(u,c){this.model.push(c.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,n,i){const a=e("../../base-xform"),o=e("../../composite-xform"),s=e("../../style/color-xform"),u=e("./cfvo-ext-xform");n.exports=class extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new u,"x14:borderColor":this.borderColorXform=new s("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new s("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new s("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new s("x14:axisColor")}}static isExt(c){return!c.gradient}get tag(){return"x14:dataBar"}render(c,l){c.openNode(this.tag,{minLength:a.toIntAttribute(l.minLength,0,!0),maxLength:a.toIntAttribute(l.maxLength,100,!0),border:a.toBoolAttribute(l.border,!1),gradient:a.toBoolAttribute(l.gradient,!0),negativeBarColorSameAsPositive:a.toBoolAttribute(l.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:a.toBoolAttribute(l.negativeBarBorderColorSameAsPositive,!0),axisPosition:a.toAttribute(l.axisPosition,"auto"),direction:a.toAttribute(l.direction,"leftToRight")}),l.cfvo.forEach(d=>{this.cfvoXform.render(c,d)}),this.borderColorXform.render(c,l.borderColor),this.negativeBorderColorXform.render(c,l.negativeBorderColor),this.negativeFillColorXform.render(c,l.negativeFillColor),this.axisColorXform.render(c,l.axisColor),c.closeNode()}createNewModel(c){let{attributes:l}=c;return{cfvo:[],minLength:a.toIntValue(l.minLength,0),maxLength:a.toIntValue(l.maxLength,100),border:a.toBoolValue(l.border,!1),gradient:a.toBoolValue(l.gradient,!0),negativeBarColorSameAsPositive:a.toBoolValue(l.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:a.toBoolValue(l.negativeBarBorderColorSameAsPositive,!0),axisPosition:a.toStringValue(l.axisPosition,"auto"),direction:a.toStringValue(l.direction,"leftToRight")}}onParserClose(c,l){const[,d]=c.split(":");switch(d){case"cfvo":this.model.cfvo.push(l.model);break;default:this.model[d]=l.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,n,i){const a=e("../../base-xform");n.exports=class extends a{get tag(){return"xm:f"}render(o,s){o.leafNode(this.tag,null,s)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],81:[function(e,n,i){const a=e("../../base-xform"),o=e("../../composite-xform"),s=e("./cfvo-ext-xform"),u=e("./cf-icon-ext-xform");n.exports=class extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new s,"x14:cfIcon":this.cfIconXform=new u}}get tag(){return"x14:iconSet"}render(c,l){c.openNode(this.tag,{iconSet:a.toStringAttribute(l.iconSet),reverse:a.toBoolAttribute(l.reverse,!1),showValue:a.toBoolAttribute(l.showValue,!0),custom:a.toBoolAttribute(l.icons,!1)}),l.cfvo.forEach(d=>{this.cfvoXform.render(c,d)}),l.icons&&l.icons.forEach((d,h)=>{d.iconId=h,this.cfIconXform.render(c,d)}),c.closeNode()}createNewModel(c){let{attributes:l}=c;return{cfvo:[],iconSet:a.toStringValue(l.iconSet,"3TrafficLights"),reverse:a.toBoolValue(l.reverse,!1),showValue:a.toBoolValue(l.showValue,!0)}}onParserClose(c,l){const[,d]=c.split(":");switch(d){case"cfvo":this.model.cfvo.push(l.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(l.model);break;default:this.model[d]=l.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,n,i){const a=e("../../base-xform");n.exports=class extends a{get tag(){return"xm:sqref"}render(o,s){o.leafNode(this.tag,null,s)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],83:[function(e,n,i){const a=e("../../base-xform"),o=e("../../composite-xform"),s=e("../../../../doc/range"),u=e("./databar-xform"),c=e("./ext-lst-ref-xform"),l=e("./formula-xform"),d=e("./color-scale-xform"),h=e("./icon-set-xform"),f={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},g=p=>{const{type:y,operator:v}=p;switch(y){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:y};default:return{type:y,operator:v}}};class m extends o{constructor(){super(),this.map={dataBar:this.databarXform=new u,extLst:this.extLstRefXform=new c,formula:this.formulaXform=new l,colorScale:this.colorScaleXform=new d,iconSet:this.iconSetXform=new h}}get tag(){return"cfRule"}static isPrimitive(y){return y.type!=="iconSet"||!y.custom&&!f[y.iconSet]}render(y,v){switch(v.type){case"expression":this.renderExpression(y,v);break;case"cellIs":this.renderCellIs(y,v);break;case"top10":this.renderTop10(y,v);break;case"aboveAverage":this.renderAboveAverage(y,v);break;case"dataBar":this.renderDataBar(y,v);break;case"colorScale":this.renderColorScale(y,v);break;case"iconSet":this.renderIconSet(y,v);break;case"containsText":this.renderText(y,v);break;case"timePeriod":this.renderTimePeriod(y,v)}}renderExpression(y,v){y.openNode(this.tag,{type:"expression",dxfId:v.dxfId,priority:v.priority}),this.formulaXform.render(y,v.formulae[0]),y.closeNode()}renderCellIs(y,v){y.openNode(this.tag,{type:"cellIs",dxfId:v.dxfId,priority:v.priority,operator:v.operator}),v.formulae.forEach(b=>{this.formulaXform.render(y,b)}),y.closeNode()}renderTop10(y,v){y.leafNode(this.tag,{type:"top10",dxfId:v.dxfId,priority:v.priority,percent:a.toBoolAttribute(v.percent,!1),bottom:a.toBoolAttribute(v.bottom,!1),rank:a.toIntValue(v.rank,10,!0)})}renderAboveAverage(y,v){y.leafNode(this.tag,{type:"aboveAverage",dxfId:v.dxfId,priority:v.priority,aboveAverage:a.toBoolAttribute(v.aboveAverage,!0)})}renderDataBar(y,v){y.openNode(this.tag,{type:"dataBar",priority:v.priority}),this.databarXform.render(y,v),this.extLstRefXform.render(y,v),y.closeNode()}renderColorScale(y,v){y.openNode(this.tag,{type:"colorScale",priority:v.priority}),this.colorScaleXform.render(y,v),y.closeNode()}renderIconSet(y,v){m.isPrimitive(v)&&(y.openNode(this.tag,{type:"iconSet",priority:v.priority}),this.iconSetXform.render(y,v),y.closeNode())}renderText(y,v){y.openNode(this.tag,{type:v.operator,dxfId:v.dxfId,priority:v.priority,operator:a.toStringAttribute(v.operator,"containsText")});const b=(A=>{if(A.formulae&&A.formulae[0])return A.formulae[0];const C=new s(A.ref),{tl:M}=C;switch(A.operator){case"containsText":return`NOT(ISERROR(SEARCH("${A.text}",${M})))`;case"containsBlanks":return`LEN(TRIM(${M}))=0`;case"notContainsBlanks":return`LEN(TRIM(${M}))>0`;case"containsErrors":return`ISERROR(${M})`;case"notContainsErrors":return`NOT(ISERROR(${M}))`;default:return}})(v);b&&this.formulaXform.render(y,b),y.closeNode()}renderTimePeriod(y,v){y.openNode(this.tag,{type:"timePeriod",dxfId:v.dxfId,priority:v.priority,timePeriod:v.timePeriod});const b=(A=>{if(A.formulae&&A.formulae[0])return A.formulae[0];const C=new s(A.ref),{tl:M}=C;switch(A.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${M},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${M},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${M},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${M},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${M},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${M},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${M},1)=TODAY()-1`;case"today":return`FLOOR(${M},1)=TODAY()`;case"tomorrow":return`FLOOR(${M},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${M},1)<=6,FLOOR(${M},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${M})=MONTH(EDATE(TODAY(),0-1)),YEAR(${M})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${M})=MONTH(TODAY()),YEAR(${M})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${M})=MONTH(EDATE(TODAY(),0+1)),YEAR(${M})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(v);b&&this.formulaXform.render(y,b),y.closeNode()}createNewModel(y){let{attributes:v}=y;return $o(An({},g(v)),{dxfId:a.toIntValue(v.dxfId),priority:a.toIntValue(v.priority),timePeriod:v.timePeriod,percent:a.toBoolValue(v.percent),bottom:a.toBoolValue(v.bottom),rank:a.toIntValue(v.rank),aboveAverage:a.toBoolValue(v.aboveAverage)})}onParserClose(y,v){switch(y){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,v.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(v.model)}}}n.exports=m},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(e,n,i){const a=e("../../base-xform");n.exports=class extends a{get tag(){return"cfvo"}render(o,s){o.leafNode(this.tag,{type:s.type,val:s.value})}parseOpen(o){this.model={type:o.attributes.type,value:a.toFloatValue(o.attributes.val)}}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],85:[function(e,n,i){const a=e("../../composite-xform"),o=e("../../style/color-xform"),s=e("./cfvo-xform");n.exports=class extends a{constructor(){super(),this.map={cfvo:this.cfvoXform=new s,color:this.colorXform=new o}}get tag(){return"colorScale"}render(u,c){u.openNode(this.tag),c.cfvo.forEach(l=>{this.cfvoXform.render(u,l)}),c.color.forEach(l=>{this.colorXform.render(u,l)}),u.closeNode()}createNewModel(u){return{cfvo:[],color:[]}}onParserClose(u,c){this.model[u].push(c.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,n,i){const a=e("../../composite-xform"),o=e("./cf-rule-xform");n.exports=class extends a{constructor(){super(),this.map={cfRule:new o}}get tag(){return"conditionalFormatting"}render(s,u){u.rules.some(o.isPrimitive)&&(s.openNode(this.tag,{sqref:u.ref}),u.rules.forEach(c=>{o.isPrimitive(c)&&(c.ref=u.ref,this.map.cfRule.render(s,c))}),s.closeNode())}createNewModel(s){let{attributes:u}=s;return{ref:u.sqref,rules:[]}}onParserClose(s,u){this.model.rules.push(u.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,n,i){const a=e("../../base-xform"),o=e("./conditional-formatting-xform");n.exports=class extends a{constructor(){super(),this.cfXform=new o}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(s,u){let c=s.reduce((l,d)=>Math.max(l,...d.rules.map(h=>h.priority||0)),1);s.forEach(l=>{l.rules.forEach(d=>{d.priority||(d.priority=c++),d.style&&(d.dxfId=u.styles.addDxfStyle(d.style))})})}render(s,u){u.forEach(c=>{this.cfXform.render(s,c)})}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(s),!0;default:return!1}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return!!this.parser&&(!!this.parser.parseClose(s)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(s,u){s.forEach(c=>{c.rules.forEach(l=>{l.dxfId!==void 0&&(l.style=u.styles.getDxfStyle(l.dxfId),delete l.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,n,i){const a=e("../../composite-xform"),o=e("../../style/color-xform"),s=e("./cfvo-xform");n.exports=class extends a{constructor(){super(),this.map={cfvo:this.cfvoXform=new s,color:this.colorXform=new o}}get tag(){return"dataBar"}render(u,c){u.openNode(this.tag),c.cfvo.forEach(l=>{this.cfvoXform.render(u,l)}),this.colorXform.render(u,c.color),u.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(u,c){switch(u){case"cfvo":this.model.cfvo.push(c.model);break;case"color":this.model.color=c.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,n,i){const a=e("../../base-xform"),o=e("../../composite-xform");class s extends a{get tag(){return"x14:id"}render(l,d){l.leafNode(this.tag,null,d)}parseOpen(){this.model=""}parseText(l){this.model+=l}parseClose(l){return l!==this.tag}}class u extends o{constructor(){super(),this.map={"x14:id":this.idXform=new s}}get tag(){return"ext"}render(l,d){l.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(l,d.x14Id),l.closeNode()}createNewModel(){return{}}onParserClose(l,d){this.model.x14Id=d.model}}n.exports=class extends o{constructor(){super(),this.map={ext:new u}}get tag(){return"extLst"}render(c,l){c.openNode(this.tag),this.map.ext.render(c,l),c.closeNode()}createNewModel(){return{}}onParserClose(c,l){Object.assign(this.model,l.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,n,i){const a=e("../../base-xform");n.exports=class extends a{get tag(){return"formula"}render(o,s){o.leafNode(this.tag,null,s)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],91:[function(e,n,i){const a=e("../../base-xform"),o=e("../../composite-xform"),s=e("./cfvo-xform");n.exports=class extends o{constructor(){super(),this.map={cfvo:this.cfvoXform=new s}}get tag(){return"iconSet"}render(u,c){u.openNode(this.tag,{iconSet:a.toStringAttribute(c.iconSet,"3TrafficLights"),reverse:a.toBoolAttribute(c.reverse,!1),showValue:a.toBoolAttribute(c.showValue,!0)}),c.cfvo.forEach(l=>{this.cfvoXform.render(u,l)}),u.closeNode()}createNewModel(u){let{attributes:c}=u;return{iconSet:a.toStringValue(c.iconSet,"3TrafficLights"),reverse:a.toBoolValue(c.reverse),showValue:a.toBoolValue(c.showValue),cfvo:[]}}onParserClose(u,c){this.model[u].push(c.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,n,i){const a=e("../../../utils/utils"),o=e("../base-xform");n.exports=class extends o{get tag(){return"col"}prepare(s,u){const c=u.styles.addStyleModel(s.style||{});c&&(s.styleId=c)}render(s,u){s.openNode("col"),s.addAttribute("min",u.min),s.addAttribute("max",u.max),u.width&&s.addAttribute("width",u.width),u.styleId&&s.addAttribute("style",u.styleId),u.hidden&&s.addAttribute("hidden","1"),u.bestFit&&s.addAttribute("bestFit","1"),u.outlineLevel&&s.addAttribute("outlineLevel",u.outlineLevel),u.collapsed&&s.addAttribute("collapsed","1"),s.addAttribute("customWidth","1"),s.closeNode()}parseOpen(s){if(s.name==="col"){const u=this.model={min:parseInt(s.attributes.min||"0",10),max:parseInt(s.attributes.max||"0",10),width:s.attributes.width===void 0?void 0:parseFloat(s.attributes.width||"0")};return s.attributes.style&&(u.styleId=parseInt(s.attributes.style,10)),a.parseBoolean(s.attributes.hidden)&&(u.hidden=!0),a.parseBoolean(s.attributes.bestFit)&&(u.bestFit=!0),s.attributes.outlineLevel&&(u.outlineLevel=parseInt(s.attributes.outlineLevel,10)),a.parseBoolean(s.attributes.collapsed)&&(u.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(s,u){s.styleId&&(s.style=u.styles.getStyleModel(s.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,n,i){const a=e("../../../utils/under-dash"),o=e("../../../utils/utils"),s=e("../../../utils/col-cache"),u=e("../base-xform"),c=e("../../../doc/range");function l(h,f,g,m){const p=f[g];p!==void 0?h[g]=p:m!==void 0&&(h[g]=m)}function d(h,f,g,m){const p=f[g];p!==void 0?h[g]=o.parseBoolean(p):m!==void 0&&(h[g]=m)}n.exports=class extends u{get tag(){return"dataValidations"}render(h,f){const g=function(m){const p=a.map(m,(b,A)=>({address:A,dataValidation:b,marked:!1})).sort((b,A)=>a.strcmp(b.address,A.address)),y=a.keyBy(p,"address"),v=(b,A,C)=>{for(let M=0;M<A;M++){const z=s.encodeAddress(b.row+M,C);if(!m[z]||!a.isEqual(m[b.address],m[z]))return!1}return!0};return p.map(b=>{if(!b.marked){const A=s.decodeEx(b.address);if(A.dimensions)return y[A.dimensions].marked=!0,$o(An({},b.dataValidation),{sqref:b.address});let C=1,M=s.encodeAddress(A.row+C,A.col);for(;m[M]&&a.isEqual(b.dataValidation,m[M]);)C++,M=s.encodeAddress(A.row+C,A.col);let z=1;for(;v(A,C,A.col+z);)z++;for(let W=0;W<C;W++)for(let U=0;U<z;U++)M=s.encodeAddress(A.row+W,A.col+U),y[M].marked=!0;if(C>1||z>1){const W=A.row+(C-1),U=A.col+(z-1);return $o(An({},b.dataValidation),{sqref:`${b.address}:${s.encodeAddress(W,U)}`})}return $o(An({},b.dataValidation),{sqref:b.address})}return null}).filter(Boolean)}(f);g.length&&(h.openNode("dataValidations",{count:g.length}),g.forEach(m=>{h.openNode("dataValidation"),m.type!=="any"&&(h.addAttribute("type",m.type),m.operator&&m.type!=="list"&&m.operator!=="between"&&h.addAttribute("operator",m.operator),m.allowBlank&&h.addAttribute("allowBlank","1")),m.showInputMessage&&h.addAttribute("showInputMessage","1"),m.promptTitle&&h.addAttribute("promptTitle",m.promptTitle),m.prompt&&h.addAttribute("prompt",m.prompt),m.showErrorMessage&&h.addAttribute("showErrorMessage","1"),m.errorStyle&&h.addAttribute("errorStyle",m.errorStyle),m.errorTitle&&h.addAttribute("errorTitle",m.errorTitle),m.error&&h.addAttribute("error",m.error),h.addAttribute("sqref",m.sqref),(m.formulae||[]).forEach((p,y)=>{h.openNode("formula"+(y+1)),m.type==="date"?h.writeText(o.dateToExcel(new Date(p))):h.writeText(p),h.closeNode()}),h.closeNode()}),h.closeNode())}parseOpen(h){switch(h.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=h.attributes.sqref;const f={type:h.attributes.type||"any",formulae:[]};switch(h.attributes.type&&d(f,h.attributes,"allowBlank"),d(f,h.attributes,"showInputMessage"),d(f,h.attributes,"showErrorMessage"),f.type){case"any":case"list":case"custom":break;default:l(f,h.attributes,"operator","between")}return l(f,h.attributes,"promptTitle"),l(f,h.attributes,"prompt"),l(f,h.attributes,"errorStyle"),l(f,h.attributes,"errorTitle"),l(f,h.attributes,"error"),this._dataValidation=f,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(h){this._formula&&this._formula.push(h)}parseClose(h){switch(h){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(f=>{f.includes(":")?new c(f).forEachAddress(g=>{this.model[g]=this._dataValidation}):this.model[f]=this._dataValidation}),!0;case"formula1":case"formula2":{let f=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":f=parseInt(f,10);break;case"decimal":f=parseFloat(f);break;case"date":f=o.excelToDate(parseFloat(f))}return this._dataValidation.formulae.push(f),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"dimension"}render(o,s){s&&o.leafNode("dimension",{ref:s})}parseOpen(o){return o.name==="dimension"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"drawing"}render(o,s){s&&o.leafNode(this.tag,{"r:id":s.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(e,n,i){const a=e("../composite-xform"),o=e("./cf-ext/conditional-formattings-ext-xform");class s extends a{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new o}}get tag(){return"ext"}hasContent(c){return this.conditionalFormattings.hasContent(c.conditionalFormattings)}prepare(c,l){this.conditionalFormattings.prepare(c.conditionalFormattings,l)}render(c,l){c.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(c,l.conditionalFormattings),c.closeNode()}createNewModel(){return{}}onParserClose(c,l){this.model[c]=l.model}}n.exports=class extends a{constructor(){super(),this.map={ext:this.ext=new s}}get tag(){return"extLst"}prepare(u,c){this.ext.prepare(u,c)}hasContent(u){return this.ext.hasContent(u)}render(u,c){this.hasContent(c)&&(u.openNode("extLst"),this.ext.render(u,c),u.closeNode())}createNewModel(){return{}}onParserClose(u,c){Object.assign(this.model,c.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"headerFooter"}render(o,s){if(s){o.addRollback();let u=!1;o.openNode("headerFooter"),s.differentFirst&&(o.addAttribute("differentFirst","1"),u=!0),s.differentOddEven&&(o.addAttribute("differentOddEven","1"),u=!0),s.oddHeader&&typeof s.oddHeader=="string"&&(o.leafNode("oddHeader",null,s.oddHeader),u=!0),s.oddFooter&&typeof s.oddFooter=="string"&&(o.leafNode("oddFooter",null,s.oddFooter),u=!0),s.evenHeader&&typeof s.evenHeader=="string"&&(o.leafNode("evenHeader",null,s.evenHeader),u=!0),s.evenFooter&&typeof s.evenFooter=="string"&&(o.leafNode("evenFooter",null,s.evenFooter),u=!0),s.firstHeader&&typeof s.firstHeader=="string"&&(o.leafNode("firstHeader",null,s.firstHeader),u=!0),s.firstFooter&&typeof s.firstFooter=="string"&&(o.leafNode("firstFooter",null,s.firstFooter),u=!0),u?(o.closeNode(),o.commit()):o.rollback()}}parseOpen(o){switch(o.name){case"headerFooter":return this.model={},o.attributes.differentFirst&&(this.model.differentFirst=parseInt(o.attributes.differentFirst,0)===1),o.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(o.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(o){switch(this.currentNode){case"oddHeader":this.model.oddHeader=o;break;case"oddFooter":this.model.oddFooter=o;break;case"evenHeader":this.model.evenHeader=o;break;case"evenFooter":this.model.evenFooter=o;break;case"firstHeader":this.model.firstHeader=o;break;case"firstFooter":this.model.firstFooter=o}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"hyperlink"}render(o,s){this.isInternalLink(s)?o.leafNode("hyperlink",{ref:s.address,"r:id":s.rId,tooltip:s.tooltip,location:s.target}):o.leafNode("hyperlink",{ref:s.address,"r:id":s.rId,tooltip:s.tooltip})}parseOpen(o){return o.name==="hyperlink"&&(this.model={address:o.attributes.ref,rId:o.attributes["r:id"],tooltip:o.attributes.tooltip},o.attributes.location&&(this.model.target=o.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(o){return o.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(o.target)}}},{"../base-xform":32}],99:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"mergeCell"}render(o,s){o.leafNode("mergeCell",{ref:s})}parseOpen(o){return o.name==="mergeCell"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(e,n,i){const a=e("../../../utils/under-dash"),o=e("../../../doc/range"),s=e("../../../utils/col-cache"),u=e("../../../doc/enums");n.exports=class{constructor(){this.merges={}}add(c){if(this.merges[c.master])this.merges[c.master].expandToAddress(c.address);else{const l=`${c.master}:${c.address}`;this.merges[c.master]=new o(l)}}get mergeCells(){return a.map(this.merges,c=>c.range)}reconcile(c,l){a.each(c,d=>{const h=s.decode(d);for(let f=h.top;f<=h.bottom;f++){const g=l[f-1];for(let m=h.left;m<=h.right;m++){const p=g.cells[m-1];p?p.type===u.ValueType.Merge&&(p.master=h.tl):g.cells[m]={type:u.ValueType.Null,address:s.encodeAddress(f,m)}}}})}getMasterAddress(c){const l=this.hash[c];return l&&l.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,n,i){const a=e("../base-xform"),o=s=>s!==void 0;n.exports=class extends a{get tag(){return"outlinePr"}render(s,u){return!(!u||!o(u.summaryBelow)&&!o(u.summaryRight))&&(s.leafNode(this.tag,{summaryBelow:o(u.summaryBelow)?Number(u.summaryBelow):void 0,summaryRight:o(u.summaryRight)?Number(u.summaryRight):void 0}),!0)}parseOpen(s){return s.name===this.tag&&(this.model={summaryBelow:o(s.attributes.summaryBelow)?Boolean(Number(s.attributes.summaryBelow)):void 0,summaryRight:o(s.attributes.summaryRight)?Boolean(Number(s.attributes.summaryRight)):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"brk"}render(o,s){o.leafNode("brk",s)}parseOpen(o){return o.name==="brk"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(e,n,i){const a=e("../../../utils/under-dash"),o=e("../base-xform");n.exports=class extends o{get tag(){return"pageMargins"}render(s,u){if(u){const c={left:u.left,right:u.right,top:u.top,bottom:u.bottom,header:u.header,footer:u.footer};a.some(c,l=>l!==void 0)&&s.leafNode(this.tag,c)}}parseOpen(s){switch(s.name){case this.tag:return this.model={left:parseFloat(s.attributes.left||.7),right:parseFloat(s.attributes.right||.7),top:parseFloat(s.attributes.top||.75),bottom:parseFloat(s.attributes.bottom||.75),header:parseFloat(s.attributes.header||.3),footer:parseFloat(s.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"pageSetUpPr"}render(o,s){return!(!s||!s.fitToPage)&&(o.leafNode(this.tag,{fitToPage:s.fitToPage?"1":void 0}),!0)}parseOpen(o){return o.name===this.tag&&(this.model={fitToPage:o.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(e,n,i){const a=e("../../../utils/under-dash"),o=e("../base-xform");function s(d){return d?"1":void 0}function u(d){switch(d){case"overThenDown":return d;default:return}}function c(d){switch(d){case"atEnd":case"asDisplyed":return d;default:return}}function l(d){switch(d){case"dash":case"blank":case"NA":return d;default:return}}n.exports=class extends o{get tag(){return"pageSetup"}render(d,h){if(h){const f={paperSize:h.paperSize,orientation:h.orientation,horizontalDpi:h.horizontalDpi,verticalDpi:h.verticalDpi,pageOrder:u(h.pageOrder),blackAndWhite:s(h.blackAndWhite),draft:s(h.draft),cellComments:c(h.cellComments),errors:l(h.errors),scale:h.scale,fitToWidth:h.fitToWidth,fitToHeight:h.fitToHeight,firstPageNumber:h.firstPageNumber,useFirstPageNumber:s(h.firstPageNumber),usePrinterDefaults:s(h.usePrinterDefaults),copies:h.copies};a.some(f,g=>g!==void 0)&&d.leafNode(this.tag,f)}}parseOpen(d){switch(d.name){case this.tag:return this.model={paperSize:(h=d.attributes.paperSize,h!==void 0?parseInt(h,10):void 0),orientation:d.attributes.orientation||"portrait",horizontalDpi:parseInt(d.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(d.attributes.verticalDpi||"4294967295",10),pageOrder:d.attributes.pageOrder||"downThenOver",blackAndWhite:d.attributes.blackAndWhite==="1",draft:d.attributes.draft==="1",cellComments:d.attributes.cellComments||"None",errors:d.attributes.errors||"displayed",scale:parseInt(d.attributes.scale||"100",10),fitToWidth:parseInt(d.attributes.fitToWidth||"1",10),fitToHeight:parseInt(d.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(d.attributes.firstPageNumber||"1",10),useFirstPageNumber:d.attributes.useFirstPageNumber==="1",usePrinterDefaults:d.attributes.usePrinterDefaults==="1",copies:parseInt(d.attributes.copies||"1",10)},!0;default:return!1}var h}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"picture"}render(o,s){s&&o.leafNode(this.tag,{"r:id":s.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(e,n,i){const a=e("../../../utils/under-dash"),o=e("../base-xform");function s(u){return u?"1":void 0}n.exports=class extends o{get tag(){return"printOptions"}render(u,c){if(c){const l={headings:s(c.showRowColHeaders),gridLines:s(c.showGridLines),horizontalCentered:s(c.horizontalCentered),verticalCentered:s(c.verticalCentered)};a.some(l,d=>d!==void 0)&&u.leafNode(this.tag,l)}}parseOpen(u){switch(u.name){case this.tag:return this.model={showRowColHeaders:u.attributes.headings==="1",showGridLines:u.attributes.gridLines==="1",horizontalCentered:u.attributes.horizontalCentered==="1",verticalCentered:u.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,n,i){const a=e("./page-breaks-xform"),o=e("../list-xform");n.exports=class extends o{constructor(){super({tag:"rowBreaks",count:!0,childXform:new a})}render(s,u){if(u&&u.length){s.openNode(this.tag,this.$),this.count&&(s.addAttribute(this.$count,u.length),s.addAttribute("manualBreakCount",u.length));const{childXform:c}=this;u.forEach(l=>{c.render(s,l)}),s.closeNode()}else this.empty&&s.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,n,i){const a=e("../base-xform"),o=e("../../../utils/utils"),s=e("./cell-xform");n.exports=class extends a{constructor(u){super(),this.maxItems=u&&u.maxItems,this.map={c:new s}}get tag(){return"row"}prepare(u,c){const l=c.styles.addStyleModel(u.style);l&&(u.styleId=l);const d=this.map.c;u.cells.forEach(h=>{d.prepare(h,c)})}render(u,c,l){u.openNode("row"),u.addAttribute("r",c.number),c.height&&(u.addAttribute("ht",c.height),u.addAttribute("customHeight","1")),c.hidden&&u.addAttribute("hidden","1"),c.min>0&&c.max>0&&c.min<=c.max&&u.addAttribute("spans",`${c.min}:${c.max}`),c.styleId&&(u.addAttribute("s",c.styleId),u.addAttribute("customFormat","1")),u.addAttribute("x14ac:dyDescent","0.25"),c.outlineLevel&&u.addAttribute("outlineLevel",c.outlineLevel),c.collapsed&&u.addAttribute("collapsed","1");const d=this.map.c;c.cells.forEach(h=>{d.render(u,h,l)}),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;if(u.name==="row"){this.numRowsSeen+=1;const c=u.attributes.spans?u.attributes.spans.split(":").map(d=>parseInt(d,10)):[void 0,void 0],l=this.model={number:parseInt(u.attributes.r,10),min:c[0],max:c[1],cells:[]};return u.attributes.s&&(l.styleId=parseInt(u.attributes.s,10)),o.parseBoolean(u.attributes.hidden)&&(l.hidden=!0),o.parseBoolean(u.attributes.bestFit)&&(l.bestFit=!0),u.attributes.ht&&(l.height=parseFloat(u.attributes.ht)),u.attributes.outlineLevel&&(l.outlineLevel=parseInt(u.attributes.outlineLevel,10)),o.parseBoolean(u.attributes.collapsed)&&(l.collapsed=!0),!0}return this.parser=this.map[u.name],!!this.parser&&(this.parser.parseOpen(u),!0)}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser){if(!this.parser.parseClose(u)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(u,c){u.style=u.styleId?c.styles.getStyleModel(u.styleId):{},u.styleId!==void 0&&(u.styleId=void 0);const l=this.map.c;u.cells.forEach(d=>{l.reconcile(d,c)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,n,i){const a=e("../../../utils/under-dash"),o=e("../base-xform");n.exports=class extends o{get tag(){return"sheetFormatPr"}render(s,u){if(u){const c={defaultRowHeight:u.defaultRowHeight,outlineLevelRow:u.outlineLevelRow,outlineLevelCol:u.outlineLevelCol,"x14ac:dyDescent":u.dyDescent};u.defaultColWidth&&(c.defaultColWidth=u.defaultColWidth),u.defaultRowHeight&&u.defaultRowHeight===15||(c.customHeight="1"),a.some(c,l=>l!==void 0)&&s.leafNode("sheetFormatPr",c)}}parseOpen(s){return s.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(s.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(s.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(s.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(s.attributes.outlineLevelCol||"0",10)},s.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(s.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,n,i){const a=e("../base-xform"),o=e("../style/color-xform"),s=e("./page-setup-properties-xform"),u=e("./outline-properties-xform");n.exports=class extends a{constructor(){super(),this.map={tabColor:new o("tabColor"),pageSetUpPr:new s,outlinePr:new u}}get tag(){return"sheetPr"}render(c,l){if(l){c.addRollback(),c.openNode("sheetPr");let d=!1;d=this.map.tabColor.render(c,l.tabColor)||d,d=this.map.pageSetUpPr.render(c,l.pageSetup)||d,d=this.map.outlinePr.render(c,l.outlineProperties)||d,d?(c.closeNode(),c.commit()):c.rollback()}}parseOpen(c){return this.parser?(this.parser.parseOpen(c),!0):c.name===this.tag?(this.reset(),!0):!!this.map[c.name]&&(this.parser=this.map[c.name],this.parser.parseOpen(c),!0)}parseText(c){return!!this.parser&&(this.parser.parseText(c),!0)}parseClose(c){return this.parser?(this.parser.parseClose(c)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(e,n,i){const a=e("../../../utils/under-dash"),o=e("../base-xform");function s(c,l){return c?l:void 0}function u(c,l){return c===l||void 0}n.exports=class extends o{get tag(){return"sheetProtection"}render(c,l){if(l){const d={sheet:s(l.sheet,"1"),selectLockedCells:l.selectLockedCells===!1?"1":void 0,selectUnlockedCells:l.selectUnlockedCells===!1?"1":void 0,formatCells:s(l.formatCells,"0"),formatColumns:s(l.formatColumns,"0"),formatRows:s(l.formatRows,"0"),insertColumns:s(l.insertColumns,"0"),insertRows:s(l.insertRows,"0"),insertHyperlinks:s(l.insertHyperlinks,"0"),deleteColumns:s(l.deleteColumns,"0"),deleteRows:s(l.deleteRows,"0"),sort:s(l.sort,"0"),autoFilter:s(l.autoFilter,"0"),pivotTables:s(l.pivotTables,"0")};l.sheet&&(d.algorithmName=l.algorithmName,d.hashValue=l.hashValue,d.saltValue=l.saltValue,d.spinCount=l.spinCount,d.objects=s(l.objects===!1,"1"),d.scenarios=s(l.scenarios===!1,"1")),a.some(d,h=>h!==void 0)&&c.leafNode(this.tag,d)}}parseOpen(c){switch(c.name){case this.tag:return this.model={sheet:u(c.attributes.sheet,"1"),objects:c.attributes.objects!=="1"&&void 0,scenarios:c.attributes.scenarios!=="1"&&void 0,selectLockedCells:c.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:c.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:u(c.attributes.formatCells,"0"),formatColumns:u(c.attributes.formatColumns,"0"),formatRows:u(c.attributes.formatRows,"0"),insertColumns:u(c.attributes.insertColumns,"0"),insertRows:u(c.attributes.insertRows,"0"),insertHyperlinks:u(c.attributes.insertHyperlinks,"0"),deleteColumns:u(c.attributes.deleteColumns,"0"),deleteRows:u(c.attributes.deleteRows,"0"),sort:u(c.attributes.sort,"0"),autoFilter:u(c.attributes.autoFilter,"0"),pivotTables:u(c.attributes.pivotTables,"0")},c.attributes.algorithmName&&(this.model.algorithmName=c.attributes.algorithmName,this.model.hashValue=c.attributes.hashValue,this.model.saltValue=c.attributes.saltValue,this.model.spinCount=parseInt(c.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,n,i){const a=e("../../../utils/col-cache"),o=e("../base-xform"),s={frozen:"frozen",frozenSplit:"frozen",split:"split"};n.exports=class extends o{get tag(){return"sheetView"}prepare(u){switch(u.state){case"frozen":case"split":break;default:u.state="normal"}}render(u,c){u.openNode("sheetView",{workbookViewId:c.workbookViewId||0});const l=function(m,p,y){y&&u.addAttribute(m,p)};let d,h,f,g;switch(l("rightToLeft","1",c.rightToLeft===!0),l("tabSelected","1",c.tabSelected),l("showRuler","0",c.showRuler===!1),l("showRowColHeaders","0",c.showRowColHeaders===!1),l("showGridLines","0",c.showGridLines===!1),l("zoomScale",c.zoomScale,c.zoomScale),l("zoomScaleNormal",c.zoomScaleNormal,c.zoomScaleNormal),l("view",c.style,c.style),c.state){case"frozen":h=c.xSplit||0,f=c.ySplit||0,d=c.topLeftCell||a.getAddress(f+1,h+1).address,g=(c.xSplit&&c.ySplit?"bottomRight":c.xSplit&&"topRight")||"bottomLeft",u.leafNode("pane",{xSplit:c.xSplit||void 0,ySplit:c.ySplit||void 0,topLeftCell:d,activePane:g,state:"frozen"}),u.leafNode("selection",{pane:g,activeCell:c.activeCell,sqref:c.activeCell});break;case"split":c.activePane==="topLeft"&&(c.activePane=void 0),u.leafNode("pane",{xSplit:c.xSplit||void 0,ySplit:c.ySplit||void 0,topLeftCell:c.topLeftCell,activePane:c.activePane}),u.leafNode("selection",{pane:c.activePane,activeCell:c.activeCell,sqref:c.activeCell});break;case"normal":c.activeCell&&u.leafNode("selection",{activeCell:c.activeCell,sqref:c.activeCell})}u.closeNode()}parseOpen(u){switch(u.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(u.attributes.workbookViewId,10),rightToLeft:u.attributes.rightToLeft==="1",tabSelected:u.attributes.tabSelected==="1",showRuler:u.attributes.showRuler!=="0",showRowColHeaders:u.attributes.showRowColHeaders!=="0",showGridLines:u.attributes.showGridLines!=="0",zoomScale:parseInt(u.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(u.attributes.zoomScaleNormal||"100",10),style:u.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(u.attributes.xSplit||"0",10),ySplit:parseInt(u.attributes.ySplit||"0",10),topLeftCell:u.attributes.topLeftCell,activePane:u.attributes.activePane||"topLeft",state:u.attributes.state},!0;case"selection":{const c=u.attributes.pane||"topLeft";return this.selections[c]={pane:c,activeCell:u.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(u){let c,l;switch(u){case"sheetView":return this.sheetView&&this.pane?(c=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:s[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(c.activePane=this.pane.activePane),l=this.selections[this.pane.activePane],l&&l.activeCell&&(c.activeCell=l.activeCell),this.sheetView.style&&(c.style=this.sheetView.style)):(c=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},l=this.selections.topLeft,l&&l.activeCell&&(c.activeCell=l.activeCell),this.sheetView.style&&(c.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"tablePart"}render(o,s){s&&o.leafNode(this.tag,{"r:id":s.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(e,n,i){const a=e("../../../utils/under-dash"),o=e("../../../utils/col-cache"),s=e("../../../utils/xml-stream"),u=e("../../rel-type"),c=e("./merges"),l=e("../base-xform"),d=e("../list-xform"),h=e("./row-xform"),f=e("./col-xform"),g=e("./dimension-xform"),m=e("./hyperlink-xform"),p=e("./merge-cell-xform"),y=e("./data-validations-xform"),v=e("./sheet-properties-xform"),b=e("./sheet-format-properties-xform"),A=e("./sheet-view-xform"),C=e("./sheet-protection-xform"),M=e("./page-margins-xform"),z=e("./page-setup-xform"),W=e("./print-options-xform"),U=e("./auto-filter-xform"),G=e("./picture-xform"),ee=e("./drawing-xform"),I=e("./table-part-xform"),O=e("./row-breaks-xform"),T=e("./header-footer-xform"),S=e("./cf/conditional-formattings-xform"),x=e("./ext-lst-xform"),w=(E,R)=>{if(!R||!R.length)return E;if(!E||!E.length)return R;const F={},B={};return E.forEach(X=>{F[X.ref]=X,X.rules.forEach(K=>{const{x14Id:te}=K;te&&(B[te]=K)})}),R.forEach(X=>{X.rules.forEach(K=>{const te=B[K.x14Id];te?(($,q)=>{Object.keys(q).forEach(k=>{const L=$[k],V=q[k];L===void 0&&V!==void 0&&($[k]=V)})})(te,K):F[X.ref]?F[X.ref].rules.push(K):E.push({ref:X.ref,rules:[K]})})}),E};class _ extends l{constructor(R){super();const{maxRows:F,maxCols:B,ignoreNodes:X}=R||{};this.ignoreNodes=X||[],this.map={sheetPr:new v,dimension:new g,sheetViews:new d({tag:"sheetViews",count:!1,childXform:new A}),sheetFormatPr:new b,cols:new d({tag:"cols",count:!1,childXform:new f}),sheetData:new d({tag:"sheetData",count:!1,empty:!0,childXform:new h({maxItems:B}),maxItems:F}),autoFilter:new U,mergeCells:new d({tag:"mergeCells",count:!0,childXform:new p}),rowBreaks:new O,hyperlinks:new d({tag:"hyperlinks",count:!1,childXform:new m}),pageMargins:new M,dataValidations:new y,pageSetup:new z,headerFooter:new T,printOptions:new W,picture:new G,drawing:new ee,sheetProtection:new C,tableParts:new d({tag:"tableParts",count:!0,childXform:new I}),conditionalFormatting:new S,extLst:new x}}prepare(R,F){F.merges=new c,R.hyperlinks=F.hyperlinks=[],R.comments=F.comments=[],F.formulae={},F.siFormulae=0,this.map.cols.prepare(R.cols,F),this.map.sheetData.prepare(R.rows,F),this.map.conditionalFormatting.prepare(R.conditionalFormattings,F),R.mergeCells=F.merges.mergeCells;const B=R.rels=[];function X($){return"rId"+($.length+1)}if(R.hyperlinks.forEach($=>{const q=X(B);$.rId=q,B.push({Id:q,Type:u.Hyperlink,Target:$.target,TargetMode:"External"})}),R.comments.length>0){const $={Id:X(B),Type:u.Comments,Target:`../comments${R.id}.xml`};B.push($);const q={Id:X(B),Type:u.VmlDrawing,Target:`../drawings/vmlDrawing${R.id}.vml`};B.push(q),R.comments.forEach(k=>{k.refAddress=o.decodeAddress(k.ref)}),F.commentRefs.push({commentName:"comments"+R.id,vmlDrawing:"vmlDrawing"+R.id})}const K=[];let te;R.media.forEach($=>{if($.type==="background"){const q=X(B);te=F.media[$.imageId],B.push({Id:q,Type:u.Image,Target:`../media/${te.name}.${te.extension}`}),R.background={rId:q},R.image=F.media[$.imageId]}else if($.type==="image"){let{drawing:q}=R;te=F.media[$.imageId],q||(q=R.drawing={rId:X(B),name:"drawing"+ ++F.drawingsCount,anchors:[],rels:[]},F.drawings.push(q),B.push({Id:q.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${q.name}.xml`}));let k=this.preImageId===$.imageId?K[$.imageId]:K[q.rels.length];k||(k=X(q.rels),K[q.rels.length]=k,q.rels.push({Id:k,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${te.name}.${te.extension}`}));const L={picture:{rId:k},range:$.range};if($.hyperlinks&&$.hyperlinks.hyperlink){const V=X(q.rels);K[q.rels.length]=V,L.picture.hyperlinks={tooltip:$.hyperlinks.tooltip,rId:V},q.rels.push({Id:V,Type:u.Hyperlink,Target:$.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=$.imageId,q.anchors.push(L)}}),R.tables.forEach($=>{const q=X(B);$.rId=q,B.push({Id:q,Type:u.Table,Target:"../tables/"+$.target}),$.columns.forEach(k=>{const{style:L}=k;L&&(k.dxfId=F.styles.addDxfStyle(L))})}),this.map.extLst.prepare(R,F)}render(R,F){R.openXml(s.StdDocAttributes),R.openNode("worksheet",_.WORKSHEET_ATTRIBUTES);const B=F.properties?{defaultRowHeight:F.properties.defaultRowHeight,dyDescent:F.properties.dyDescent,outlineLevelCol:F.properties.outlineLevelCol,outlineLevelRow:F.properties.outlineLevelRow}:void 0;F.properties&&F.properties.defaultColWidth&&(B.defaultColWidth=F.properties.defaultColWidth);const X={outlineProperties:F.properties&&F.properties.outlineProperties,tabColor:F.properties&&F.properties.tabColor,pageSetup:F.pageSetup&&F.pageSetup.fitToPage?{fitToPage:F.pageSetup.fitToPage}:void 0},K=F.pageSetup&&F.pageSetup.margins,te={showRowColHeaders:F.pageSetup&&F.pageSetup.showRowColHeaders,showGridLines:F.pageSetup&&F.pageSetup.showGridLines,horizontalCentered:F.pageSetup&&F.pageSetup.horizontalCentered,verticalCentered:F.pageSetup&&F.pageSetup.verticalCentered},$=F.sheetProtection;this.map.sheetPr.render(R,X),this.map.dimension.render(R,F.dimensions),this.map.sheetViews.render(R,F.views),this.map.sheetFormatPr.render(R,B),this.map.cols.render(R,F.cols),this.map.sheetData.render(R,F.rows),this.map.sheetProtection.render(R,$),this.map.autoFilter.render(R,F.autoFilter),this.map.mergeCells.render(R,F.mergeCells),this.map.conditionalFormatting.render(R,F.conditionalFormattings),this.map.dataValidations.render(R,F.dataValidations),this.map.hyperlinks.render(R,F.hyperlinks),this.map.printOptions.render(R,te),this.map.pageMargins.render(R,K),this.map.pageSetup.render(R,F.pageSetup),this.map.headerFooter.render(R,F.headerFooter),this.map.rowBreaks.render(R,F.rowBreaks),this.map.drawing.render(R,F.drawing),this.map.picture.render(R,F.background),this.map.tableParts.render(R,F.tables),this.map.extLst.render(R,F),F.rels&&F.rels.forEach(q=>{q.Type===u.VmlDrawing&&R.leafNode("legacyDrawing",{"r:id":q.Id})}),R.closeNode()}parseOpen(R){return this.parser?(this.parser.parseOpen(R),!0):R.name==="worksheet"?(a.each(this.map,F=>{F.reset()}),!0):(this.map[R.name]&&!this.ignoreNodes.includes(R.name)&&(this.parser=this.map[R.name],this.parser.parseOpen(R)),!0)}parseText(R){this.parser&&this.parser.parseText(R)}parseClose(R){if(this.parser)return this.parser.parseClose(R)||(this.parser=void 0),!0;switch(R){case"worksheet":{const F=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(F.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(F.outlineProperties=this.map.sheetPr.model.outlineProperties);const B={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},X=Object.assign(B,this.map.pageSetup.model,this.map.printOptions.model),K=w(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:F,views:this.map.sheetViews.model,pageSetup:X,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:K},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(R,F){const B=(R.relationships||[]).reduce((K,te)=>{if(K[te.Id]=te,te.Type===u.Comments&&(R.comments=F.comments[te.Target].comments),te.Type===u.VmlDrawing&&R.comments&&R.comments.length){const $=F.vmlDrawings[te.Target].comments;R.comments.forEach((q,k)=>{q.note=Object.assign({},q.note,$[k])})}return K},{});if(F.commentsMap=(R.comments||[]).reduce((K,te)=>(te.ref&&(K[te.ref]=te),K),{}),F.hyperlinkMap=(R.hyperlinks||[]).reduce((K,te)=>(te.rId&&(K[te.address]=B[te.rId].Target),K),{}),F.formulae={},R.rows=R.rows&&R.rows.filter(Boolean)||[],R.rows.forEach(K=>{K.cells=K.cells&&K.cells.filter(Boolean)||[]}),this.map.cols.reconcile(R.cols,F),this.map.sheetData.reconcile(R.rows,F),this.map.conditionalFormatting.reconcile(R.conditionalFormattings,F),R.media=[],R.drawing){const K=B[R.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(K){const te=K[1];F.drawings[te].anchors.forEach($=>{if($.medium){const q={type:"image",imageId:$.medium.index,range:$.range,hyperlinks:$.picture.hyperlinks};R.media.push(q)}})}}const X=R.background&&B[R.background.rId];if(X){const K=X.Target.split("/media/")[1],te=F.mediaIndex&&F.mediaIndex[K];te!==void 0&&R.media.push({type:"background",imageId:te})}R.tables=(R.tables||[]).map(K=>{const te=B[K.rId];return F.tables[te.Target]}),delete R.relationships,delete R.hyperlinks,delete R.comments}}_.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},n.exports=_},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{constructor(o){super(),this.tag=o.tag,this.attr=o.attr}render(o,s){s&&(o.openNode(this.tag),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs,this._format=o.format||function(s){try{return Number.isNaN(s.getTime())?"":s.toISOString()}catch{return""}},this._parse=o.parse||function(s){return new Date(s)}}render(o,s){s&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,this._format(s)):o.writeText(this._format(s)),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.attr?this.model=this._parse(o.attributes[this.attr]):this.text=[])}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs,this.zero=o.zero}render(o,s){(s||this.zero)&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,s):o.writeText(s),o.closeNode())}parseOpen(o){return o.name===this.tag&&(this.attr?this.model=parseInt(o.attributes[this.attr],10):this.text=[],!0)}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs}render(o,s){s!==void 0&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,s):o.writeText(s),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.attr?this.model=o.attributes[this.attr]:this.text=[])}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(e,n,i){const a=e("./base-xform"),o=e("../../utils/xml-stream");n.exports=class extends a{constructor(s){super(),this._model=s}render(s){if(!this._xml){const u=new o;(function c(l,d){l.openNode(d.tag,d.$),d.c&&d.c.forEach(h=>{c(l,h)}),d.t&&l.writeText(d.t),l.closeNode()})(u,this._model),this._xml=u.xml}s.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(s){switch(s){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,n,i){const a=e("./text-xform"),o=e("./rich-text-xform"),s=e("../base-xform");n.exports=class extends s{constructor(){super(),this.map={r:new o,t:new a}}get tag(){return"rPh"}render(u,c){if(u.openNode(this.tag,{sb:c.sb||0,eb:c.eb||0}),c&&c.hasOwnProperty("richText")&&c.richText){const{r:l}=this.map;c.richText.forEach(d=>{l.render(u,d)})}else c&&this.map.t.render(u,c.text);u.closeNode()}parseOpen(u){const{name:c}=u;return this.parser?(this.parser.parseOpen(u),!0):c===this.tag?(this.model={sb:parseInt(u.attributes.sb,10),eb:parseInt(u.attributes.eb,10)},!0):(this.parser=this.map[c],!!this.parser&&(this.parser.parseOpen(u),!0))}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser){if(!this.parser.parseClose(u)){switch(u){case"r":{let c=this.model.richText;c||(c=this.model.richText=[]),c.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(u){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,n,i){const a=e("./text-xform"),o=e("../style/font-xform"),s=e("../base-xform");class u extends s{constructor(l){super(),this.model=l}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new a)}get fontXform(){return this._fontXform||(this._fontXform=new o(u.FONT_OPTIONS))}render(l,d){d=d||this.model,l.openNode("r"),d.font&&this.fontXform.render(l,d.font),this.textXform.render(l,d.text),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(l),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(l),!0;default:return!1}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){switch(l){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(l),!0}}}u.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},n.exports=u},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,n,i){const a=e("./text-xform"),o=e("./rich-text-xform"),s=e("./phonetic-text-xform"),u=e("../base-xform");n.exports=class extends u{constructor(c){super(),this.model=c,this.map={r:new o,t:new a,rPh:new s}}get tag(){return"si"}render(c,l){c.openNode(this.tag),l&&l.hasOwnProperty("richText")&&l.richText?l.richText.length?l.richText.forEach(d=>{this.map.r.render(c,d)}):this.map.t.render(c,""):l!=null&&this.map.t.render(c,l),c.closeNode()}parseOpen(c){const{name:l}=c;return this.parser?(this.parser.parseOpen(c),!0):l===this.tag?(this.model={},!0):(this.parser=this.map[l],!!this.parser&&(this.parser.parseOpen(c),!0))}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser){if(!this.parser.parseClose(c)){switch(c){case"r":{let l=this.model.richText;l||(l=this.model.richText=[]),l.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(c){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(e,n,i){const a=e("../../../utils/xml-stream"),o=e("../base-xform"),s=e("./shared-string-xform");n.exports=class extends o{constructor(u){super(),this.model=u||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new s)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(u){return this.model.values[u]}add(u){return u.richText?this.addRichText(u):this.addText(u)}addText(u){let c=this.hash[u];return c===void 0&&(c=this.hash[u]=this.model.values.length,this.model.values.push(u)),this.model.count++,c}addRichText(u){const c=this.sharedStringXform.toXml(u);let l=this.rich[c];return l===void 0&&(l=this.rich[c]=this.model.values.length,this.model.values.push(u)),this.model.count++,l}render(u,c){c=c||this._values,u.openXml(a.StdDocAttributes),u.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:c.count,uniqueCount:c.values.length});const l=this.sharedStringXform;c.values.forEach(d=>{l.render(u,d)}),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(u),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(u))}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(u){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+u)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"t"}render(o,s){o.openNode("t"),/^\s|\n|\s$/.test(s)&&o.addAttribute("xml:space","preserve"),o.writeText(s),o.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(o,s)=>String.fromCharCode(parseInt(s,16)))}parseOpen(o){switch(o.name){case"t":return this._text=[],!0;default:return!1}}parseText(o){this._text.push(o)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(e,n,i){const a=e("../../../doc/enums"),o=e("../../../utils/utils"),s=e("../base-xform"),u={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((l,d)=>(l[d]=!0,l),{}),horizontal(l){return this.horizontalValues[l]?l:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((l,d)=>(l[d]=!0,l),{}),vertical(l){return l==="middle"?"center":this.verticalValues[l]?l:void 0},wrapText:l=>!!l||void 0,shrinkToFit:l=>!!l||void 0,textRotation(l){switch(l){case"vertical":return l;default:return(l=o.validInt(l))>=-90&&l<=90?l:void 0}},indent:l=>(l=o.validInt(l),Math.max(0,l)),readingOrder(l){switch(l){case"ltr":return a.ReadingOrder.LeftToRight;case"rtl":return a.ReadingOrder.RightToLeft;default:return}}},c={toXml(l){if(l=u.textRotation(l)){if(l==="vertical")return 255;const d=Math.round(l);if(d>=0&&d<=90)return d;if(d<0&&d>=-90)return 90-d}},toModel(l){const d=o.validInt(l);if(d!==void 0){if(d===255)return"vertical";if(d>=0&&d<=90)return d;if(d>90&&d<=180)return 90-d}}};n.exports=class extends s{get tag(){return"alignment"}render(l,d){l.addRollback(),l.openNode("alignment");let h=!1;function f(g,m){m&&(l.addAttribute(g,m),h=!0)}f("horizontal",u.horizontal(d.horizontal)),f("vertical",u.vertical(d.vertical)),f("wrapText",!!u.wrapText(d.wrapText)&&"1"),f("shrinkToFit",!!u.shrinkToFit(d.shrinkToFit)&&"1"),f("indent",u.indent(d.indent)),f("textRotation",c.toXml(d.textRotation)),f("readingOrder",u.readingOrder(d.readingOrder)),l.closeNode(),h?l.commit():l.rollback()}parseOpen(l){const d={};let h=!1;function f(g,m,p){g&&(d[m]=p,h=!0)}f(l.attributes.horizontal,"horizontal",l.attributes.horizontal),f(l.attributes.vertical,"vertical",l.attributes.vertical==="center"?"middle":l.attributes.vertical),f(l.attributes.wrapText,"wrapText",o.parseBoolean(l.attributes.wrapText)),f(l.attributes.shrinkToFit,"shrinkToFit",o.parseBoolean(l.attributes.shrinkToFit)),f(l.attributes.indent,"indent",parseInt(l.attributes.indent,10)),f(l.attributes.textRotation,"textRotation",c.toModel(l.attributes.textRotation)),f(l.attributes.readingOrder,"readingOrder",l.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=h?d:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,n,i){const a=e("../base-xform"),o=e("../../../utils/utils"),s=e("./color-xform");class u extends a{constructor(l){super(),this.name=l,this.map={color:new s}}get tag(){return this.name}render(l,d,h){const f=d&&d.color||h||this.defaultColor;l.openNode(this.name),d&&d.style&&(l.addAttribute("style",d.style),f&&this.map.color.render(l,f)),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.name:{const{style:d}=l.attributes;return this.model=d?{style:d}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(l),!0;default:return!1}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){return this.parser?(this.parser.parseClose(l)||(this.parser=void 0),!0):(l===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(l){return u.validStyleValues[l]}}u.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((c,l)=>(c[l]=!0,c),{}),n.exports=class extends a{constructor(){super(),this.map={top:new u("top"),left:new u("left"),bottom:new u("bottom"),right:new u("right"),diagonal:new u("diagonal")}}render(c,l){const{color:d}=l;function h(f,g){f&&!f.color&&l.color&&(f=$o(An({},f),{color:l.color})),g.render(c,f,d)}c.openNode("border"),l.diagonal&&l.diagonal.style&&(l.diagonal.up&&c.addAttribute("diagonalUp","1"),l.diagonal.down&&c.addAttribute("diagonalDown","1")),h(l.left,this.map.left),h(l.right,this.map.right),h(l.top,this.map.top),h(l.bottom,this.map.bottom),h(l.diagonal,this.map.diagonal),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"border":return this.reset(),this.diagonalUp=o.parseBoolean(c.attributes.diagonalUp),this.diagonalDown=o.parseBoolean(c.attributes.diagonalDown),!0;default:return this.parser=this.map[c.name],!!this.parser&&(this.parser.parseOpen(c),!0)}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.parser=void 0),!0;if(c==="border"){const l=this.model={},d=function(h,f,g){f&&(g&&Object.assign(f,g),l[h]=f)};d("left",this.map.left.model),d("right",this.map.right.model),d("top",this.map.top.model),d("bottom",this.map.bottom.model),d("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{constructor(o){super(),this.name=o||"color"}get tag(){return this.name}render(o,s){return!!s&&(o.openNode(this.name),s.argb?o.addAttribute("rgb",s.argb):s.theme!==void 0?(o.addAttribute("theme",s.theme),s.tint!==void 0&&o.addAttribute("tint",s.tint)):s.indexed!==void 0?o.addAttribute("indexed",s.indexed):o.addAttribute("auto","1"),o.closeNode(),!0)}parseOpen(o){return o.name===this.name&&(o.attributes.rgb?this.model={argb:o.attributes.rgb}:o.attributes.theme?(this.model={theme:parseInt(o.attributes.theme,10)},o.attributes.tint&&(this.model.tint=parseFloat(o.attributes.tint))):o.attributes.indexed?this.model={indexed:parseInt(o.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(e,n,i){const a=e("../base-xform"),o=e("./alignment-xform"),s=e("./border-xform"),u=e("./fill-xform"),c=e("./font-xform"),l=e("./numfmt-xform"),d=e("./protection-xform");n.exports=class extends a{constructor(){super(),this.map={alignment:new o,border:new s,fill:new u,font:new c,numFmt:new l,protection:new d}}get tag(){return"dxf"}render(h,f){if(h.openNode(this.tag),f.font&&this.map.font.render(h,f.font),f.numFmt&&f.numFmtId){const g={id:f.numFmtId,formatCode:f.numFmt};this.map.numFmt.render(h,g)}f.fill&&this.map.fill.render(h,f.fill),f.alignment&&this.map.alignment.render(h,f.alignment),f.border&&this.map.border.render(h,f.border),f.protection&&this.map.protection.render(h,f.protection),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[h.name],this.parser&&this.parser.parseOpen(h),!0}}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){return this.parser?(this.parser.parseClose(h)||(this.parser=void 0),!0):h!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(e,n,i){const a=e("../base-xform"),o=e("./color-xform");class s extends a{constructor(){super(),this.map={color:new o}}get tag(){return"stop"}render(h,f){h.openNode("stop"),h.addAttribute("position",f.position),this.map.color.render(h,f.color),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"stop":return this.model={position:parseFloat(h.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(h),!0;default:return!1}}parseText(){}parseClose(h){return!!this.parser&&(this.parser.parseClose(h)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class u extends a{constructor(){super(),this.map={fgColor:new o("fgColor"),bgColor:new o("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(h,f){h.openNode("patternFill"),h.addAttribute("patternType",f.pattern),f.fgColor&&this.map.fgColor.render(h,f.fgColor),f.bgColor&&this.map.bgColor.render(h,f.bgColor),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"patternFill":return this.model={type:"pattern",pattern:h.attributes.patternType},!0;default:return this.parser=this.map[h.name],!!this.parser&&(this.parser.parseOpen(h),!0)}}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){return!!this.parser&&(this.parser.parseClose(h)||(this.parser.model&&(this.model[h]=this.parser.model),this.parser=void 0),!0)}}class c extends a{constructor(){super(),this.map={stop:new s}}get name(){return"gradient"}get tag(){return"gradientFill"}render(h,f){switch(h.openNode("gradientFill"),f.gradient){case"angle":h.addAttribute("degree",f.degree);break;case"path":h.addAttribute("type","path"),f.center.left&&(h.addAttribute("left",f.center.left),f.center.right===void 0&&h.addAttribute("right",f.center.left)),f.center.right&&h.addAttribute("right",f.center.right),f.center.top&&(h.addAttribute("top",f.center.top),f.center.bottom===void 0&&h.addAttribute("bottom",f.center.top)),f.center.bottom&&h.addAttribute("bottom",f.center.bottom)}const g=this.map.stop;f.stops.forEach(m=>{g.render(h,m)}),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"gradientFill":{const f=this.model={stops:[]};return h.attributes.degree?(f.gradient="angle",f.degree=parseInt(h.attributes.degree,10)):h.attributes.type==="path"&&(f.gradient="path",f.center={left:h.attributes.left?parseFloat(h.attributes.left):0,top:h.attributes.top?parseFloat(h.attributes.top):0},h.attributes.right!==h.attributes.left&&(f.center.right=h.attributes.right?parseFloat(h.attributes.right):0),h.attributes.bottom!==h.attributes.top&&(f.center.bottom=h.attributes.bottom?parseFloat(h.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(h),!0;default:return!1}}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){return!!this.parser&&(this.parser.parseClose(h)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class l extends a{constructor(){super(),this.map={patternFill:new u,gradientFill:new c}}get tag(){return"fill"}render(h,f){switch(h.addRollback(),h.openNode("fill"),f.type){case"pattern":this.map.patternFill.render(h,f);break;case"gradient":this.map.gradientFill.render(h,f);break;default:return void h.rollback()}h.closeNode(),h.commit()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"fill":return this.model={},!0;default:return this.parser=this.map[h.name],!!this.parser&&(this.parser.parseOpen(h),!0)}}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){return!!this.parser&&(this.parser.parseClose(h)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(h){return l.validPatternValues[h]}}l.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((d,h)=>(d[h]=!0,d),{}),l.StopXform=s,l.PatternFillXform=u,l.GradientFillXform=c,n.exports=l},{"../base-xform":32,"./color-xform":128}],131:[function(e,n,i){const a=e("./color-xform"),o=e("../simple/boolean-xform"),s=e("../simple/integer-xform"),u=e("../simple/string-xform"),c=e("./underline-xform"),l=e("../../../utils/under-dash"),d=e("../base-xform");class h extends d{constructor(g){super(),this.options=g||h.OPTIONS,this.map={b:{prop:"bold",xform:new o({tag:"b",attr:"val"})},i:{prop:"italic",xform:new o({tag:"i",attr:"val"})},u:{prop:"underline",xform:new c},charset:{prop:"charset",xform:new s({tag:"charset",attr:"val"})},color:{prop:"color",xform:new a},condense:{prop:"condense",xform:new o({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new o({tag:"extend",attr:"val"})},family:{prop:"family",xform:new s({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new o({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new u({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new u({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new o({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new o({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new s({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new u({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(g,m){const{map:p}=this;g.openNode(this.options.tagName),l.each(this.map,(y,v)=>{p[v].xform.render(g,m[y.prop])}),g.closeNode()}parseOpen(g){if(this.parser)return this.parser.parseOpen(g),!0;if(this.map[g.name])return this.parser=this.map[g.name].xform,this.parser.parseOpen(g);switch(g.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(g){this.parser&&this.parser.parseText(g)}parseClose(g){if(this.parser&&!this.parser.parseClose(g)){const m=this.map[g];return this.parser.model&&(this.model[m.prop]=this.parser.model),this.parser=void 0,!0}switch(g){case this.options.tagName:return!1;default:return!0}}}h.OPTIONS={tagName:"font",fontNameTag:"name"},n.exports=h},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(e,n,i){const a=e("../../../utils/under-dash"),o=e("../../defaultnumformats"),s=e("../base-xform"),u=function(){const l={};return a.each(o,(d,h)=>{d.f&&(l[d.f]=parseInt(h,10))}),l}();class c extends s{constructor(d,h){super(),this.id=d,this.formatCode=h}get tag(){return"numFmt"}render(d,h){d.leafNode("numFmt",{numFmtId:h.id,formatCode:h.formatCode})}parseOpen(d){switch(d.name){case"numFmt":return this.model={id:parseInt(d.attributes.numFmtId,10),formatCode:d.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}c.getDefaultFmtId=function(l){return u[l]},c.getDefaultFmtCode=function(l){return o[l]&&o[l].f},n.exports=c},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,n,i){const a=e("../base-xform"),o={boolean:(s,u)=>s===void 0?u:s};n.exports=class extends a{get tag(){return"protection"}render(s,u){s.addRollback(),s.openNode("protection");let c=!1;function l(d,h){h!==void 0&&(s.addAttribute(d,h),c=!0)}l("locked",o.boolean(u.locked,!0)?void 0:"0"),l("hidden",o.boolean(u.hidden,!1)?"1":void 0),s.closeNode(),c?s.commit():s.rollback()}parseOpen(s){const u={locked:s.attributes.locked!=="0",hidden:s.attributes.hidden==="1"},c=!u.locked||u.hidden;this.model=c?u:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(e,n,i){const a=e("../base-xform"),o=e("./alignment-xform"),s=e("./protection-xform");n.exports=class extends a{constructor(u){super(),this.xfId=!(!u||!u.xfId),this.map={alignment:new o,protection:new s}}get tag(){return"xf"}render(u,c){u.openNode("xf",{numFmtId:c.numFmtId||0,fontId:c.fontId||0,fillId:c.fillId||0,borderId:c.borderId||0}),this.xfId&&u.addAttribute("xfId",c.xfId||0),c.numFmtId&&u.addAttribute("applyNumberFormat","1"),c.fontId&&u.addAttribute("applyFont","1"),c.fillId&&u.addAttribute("applyFill","1"),c.borderId&&u.addAttribute("applyBorder","1"),c.alignment&&u.addAttribute("applyAlignment","1"),c.protection&&u.addAttribute("applyProtection","1"),c.alignment&&this.map.alignment.render(u,c.alignment),c.protection&&this.map.protection.render(u,c.protection),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"xf":return this.model={numFmtId:parseInt(u.attributes.numFmtId,10),fontId:parseInt(u.attributes.fontId,10),fillId:parseInt(u.attributes.fillId,10),borderId:parseInt(u.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(u.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(u),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(u),!0;default:return!1}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):u!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,n,i){const a=e("../../../doc/enums"),o=e("../../../utils/xml-stream"),s=e("../base-xform"),u=e("../static-xform"),c=e("../list-xform"),l=e("./font-xform"),d=e("./fill-xform"),h=e("./border-xform"),f=e("./numfmt-xform"),g=e("./style-xform"),m=e("./dxf-xform");class p extends s{constructor(v){super(),this.map={numFmts:new c({tag:"numFmts",count:!0,childXform:new f}),fonts:new c({tag:"fonts",count:!0,childXform:new l,$:{"x14ac:knownFonts":1}}),fills:new c({tag:"fills",count:!0,childXform:new d}),borders:new c({tag:"borders",count:!0,childXform:new h}),cellStyleXfs:new c({tag:"cellStyleXfs",count:!0,childXform:new g}),cellXfs:new c({tag:"cellXfs",count:!0,childXform:new g({xfId:!0})}),dxfs:new c({tag:"dxfs",always:!0,count:!0,childXform:new m}),numFmt:new f,font:new l,fill:new d,border:new h,style:new g({xfId:!0}),cellStyles:p.STATIC_XFORMS.cellStyles,tableStyles:p.STATIC_XFORMS.tableStyles,extLst:p.STATIC_XFORMS.extLst},v&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(v,b){b=b||this.model,v.openXml(o.StdDocAttributes),v.openNode("styleSheet",p.STYLESHEET_ATTRIBUTES),this.index?(b.numFmts&&b.numFmts.length&&(v.openNode("numFmts",{count:b.numFmts.length}),b.numFmts.forEach(A=>{v.writeXml(A)}),v.closeNode()),b.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),v.openNode("fonts",{count:b.fonts.length,"x14ac:knownFonts":1}),b.fonts.forEach(A=>{v.writeXml(A)}),v.closeNode(),v.openNode("fills",{count:b.fills.length}),b.fills.forEach(A=>{v.writeXml(A)}),v.closeNode(),v.openNode("borders",{count:b.borders.length}),b.borders.forEach(A=>{v.writeXml(A)}),v.closeNode(),this.map.cellStyleXfs.render(v,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),v.openNode("cellXfs",{count:b.styles.length}),b.styles.forEach(A=>{v.writeXml(A)}),v.closeNode()):(this.map.numFmts.render(v,b.numFmts),this.map.fonts.render(v,b.fonts),this.map.fills.render(v,b.fills),this.map.borders.render(v,b.borders),this.map.cellStyleXfs.render(v,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(v,b.styles)),p.STATIC_XFORMS.cellStyles.render(v),this.map.dxfs.render(v,b.dxfs),p.STATIC_XFORMS.tableStyles.render(v),p.STATIC_XFORMS.extLst.render(v),v.closeNode()}parseOpen(v){if(this.parser)return this.parser.parseOpen(v),!0;switch(v.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[v.name],this.parser&&this.parser.parseOpen(v),!0}}parseText(v){this.parser&&this.parser.parseText(v)}parseClose(v){if(this.parser)return this.parser.parseClose(v)||(this.parser=void 0),!0;switch(v){case"styleSheet":{this.model={};const b=(A,C)=>{C.model&&C.model.length&&(this.model[A]=C.model)};if(b("numFmts",this.map.numFmts),b("fonts",this.map.fonts),b("fills",this.map.fills),b("borders",this.map.borders),b("styles",this.map.cellXfs),b("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const A=this.index.numFmt;this.model.numFmts.forEach(C=>{A[C.id]=C.formatCode})}return!1}default:return!0}}addStyleModel(v,b){if(!v)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(v))return this.weakMap.get(v);const A={};if(b=b||a.ValueType.Number,v.numFmt)A.numFmtId=this._addNumFmtStr(v.numFmt);else switch(b){case a.ValueType.Number:A.numFmtId=this._addNumFmtStr("General");break;case a.ValueType.Date:A.numFmtId=this._addNumFmtStr("mm-dd-yy")}v.font&&(A.fontId=this._addFont(v.font)),v.border&&(A.borderId=this._addBorder(v.border)),v.fill&&(A.fillId=this._addFill(v.fill)),v.alignment&&(A.alignment=v.alignment),v.protection&&(A.protection=v.protection);const C=this._addStyle(A);return this.weakMap&&this.weakMap.set(v,C),C}getStyleModel(v){const b=this.model.styles[v];if(!b)return null;let A=this.index.model[v];if(A)return A;if(A=this.index.model[v]={},b.numFmtId){const M=this.index.numFmt[b.numFmtId]||f.getDefaultFmtCode(b.numFmtId);M&&(A.numFmt=M)}function C(M,z,W){if(W||W===0){const U=z[W];U&&(A[M]=U)}}return C("font",this.model.fonts,b.fontId),C("border",this.model.borders,b.borderId),C("fill",this.model.fills,b.fillId),b.alignment&&(A.alignment=b.alignment),b.protection&&(A.protection=b.protection),A}addDxfStyle(v){return v.numFmt&&(v.numFmtId=this._addNumFmtStr(v.numFmt)),this.model.dxfs.push(v),this.model.dxfs.length-1}getDxfStyle(v){return this.model.dxfs[v]}_addStyle(v){const b=this.map.style.toXml(v);let A=this.index.style[b];return A===void 0&&(A=this.index.style[b]=this.model.styles.length,this.model.styles.push(b)),A}_addNumFmtStr(v){let b=f.getDefaultFmtId(v);if(b!==void 0||(b=this.index.numFmt[v],b!==void 0))return b;b=this.index.numFmt[v]=164+this.model.numFmts.length;const A=this.map.numFmt.toXml({id:b,formatCode:v});return this.model.numFmts.push(A),b}_addFont(v){const b=this.map.font.toXml(v);let A=this.index.font[b];return A===void 0&&(A=this.index.font[b]=this.model.fonts.length,this.model.fonts.push(b)),A}_addBorder(v){const b=this.map.border.toXml(v);let A=this.index.border[b];return A===void 0&&(A=this.index.border[b]=this.model.borders.length,this.model.borders.push(b)),A}_addFill(v){const b=this.map.fill.toXml(v);let A=this.index.fill[b];return A===void 0&&(A=this.index.fill[b]=this.model.fills.length,this.model.fills.push(b)),A}}p.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},p.STATIC_XFORMS={cellStyles:new u({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new u({tag:"dxfs",$:{count:0}}),tableStyles:new u({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new u({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},p.Mock=class extends p{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(y){return y.autodrain(),Promise.resolve()}addStyleModel(y,v){switch(v){case a.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const y={numFmtId:f.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(y)}return this._dateStyleId}getStyleModel(){return{}}},n.exports=p},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(e,n,i){const a=e("../base-xform");class o extends a{constructor(u){super(),this.model=u}get tag(){return"u"}render(u,c){if((c=c||this.model)===!0)u.leafNode("u");else{const l=o.Attributes[c];l&&u.leafNode("u",l)}}parseOpen(u){u.name==="u"&&(this.model=u.attributes.val||!0)}parseText(){}parseClose(){return!1}}o.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},n.exports=o},{"../base-xform":32}],137:[function(e,n,i){const a=e("../base-xform"),o=e("./filter-column-xform");n.exports=class extends a{constructor(){super(),this.map={filterColumn:new o}}get tag(){return"autoFilter"}prepare(s){s.columns.forEach((u,c)=>{this.map.filterColumn.prepare(u,{index:c})})}render(s,u){return s.openNode(this.tag,{ref:u.autoFilterRef}),u.columns.forEach(c=>{this.map.filterColumn.render(s,c)}),s.closeNode(),!0}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:return this.model={autoFilterRef:s.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[s.name],this.parser)return this.parseOpen(s),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(s))}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(s){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+s)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"customFilter"}render(o,s){o.leafNode(this.tag,{val:s.val,operator:s.operator})}parseOpen(o){return o.name===this.tag&&(this.model={val:o.attributes.val,operator:o.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(e,n,i){const a=e("../base-xform"),o=e("../list-xform"),s=e("./custom-filter-xform"),u=e("./filter-xform");n.exports=class extends a{constructor(){super(),this.map={customFilters:new o({tag:"customFilters",count:!1,empty:!0,childXform:new s}),filters:new o({tag:"filters",count:!1,empty:!0,childXform:new u})}}get tag(){return"filterColumn"}prepare(c,l){c.colId=l.index.toString()}render(c,l){return l.customFilters?(c.openNode(this.tag,{colId:l.colId,hiddenButton:l.filterButton?"0":"1"}),this.map.customFilters.render(c,l.customFilters),c.closeNode(),!0):(c.leafNode(this.tag,{colId:l.colId,hiddenButton:l.filterButton?"0":"1"}),!0)}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;const{attributes:l}=c;switch(c.name){case this.tag:return this.model={filterButton:l.hiddenButton==="0"},!0;default:if(this.parser=this.map[c.name],this.parser)return this.parseOpen(c),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(c))}}parseText(){}parseClose(c){if(this.parser)return this.parser.parseClose(c)||(this.parser=void 0),!0;switch(c){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"filter"}render(o,s){o.leafNode(this.tag,{val:s.val})}parseOpen(o){return o.name===this.tag&&(this.model={val:o.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"tableColumn"}prepare(o,s){o.id=s.index+1}render(o,s){return o.leafNode(this.tag,{id:s.id.toString(),name:s.name,totalsRowLabel:s.totalsRowLabel,totalsRowFunction:s.totalsRowFunction,dxfId:s.dxfId}),!0}parseOpen(o){if(o.name===this.tag){const{attributes:s}=o;return this.model={name:s.name,totalsRowLabel:s.totalsRowLabel,totalsRowFunction:s.totalsRowFunction,dxfId:s.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(e,n,i){const a=e("../base-xform");n.exports=class extends a{get tag(){return"tableStyleInfo"}render(o,s){return o.leafNode(this.tag,{name:s.theme?s.theme:void 0,showFirstColumn:s.showFirstColumn?"1":"0",showLastColumn:s.showLastColumn?"1":"0",showRowStripes:s.showRowStripes?"1":"0",showColumnStripes:s.showColumnStripes?"1":"0"}),!0}parseOpen(o){if(o.name===this.tag){const{attributes:s}=o;return this.model={theme:s.name?s.name:null,showFirstColumn:s.showFirstColumn==="1",showLastColumn:s.showLastColumn==="1",showRowStripes:s.showRowStripes==="1",showColumnStripes:s.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(e,n,i){const a=e("../../../utils/xml-stream"),o=e("../base-xform"),s=e("../list-xform"),u=e("./auto-filter-xform"),c=e("./table-column-xform"),l=e("./table-style-info-xform");class d extends o{constructor(){super(),this.map={autoFilter:new u,tableColumns:new s({tag:"tableColumns",count:!0,empty:!0,childXform:new c}),tableStyleInfo:new l}}prepare(f,g){this.map.autoFilter.prepare(f),this.map.tableColumns.prepare(f.columns,g)}get tag(){return"table"}render(f,g){f.openXml(a.StdDocAttributes),f.openNode(this.tag,$o(An({},d.TABLE_ATTRIBUTES),{id:g.id,name:g.name,displayName:g.displayName||g.name,ref:g.tableRef,totalsRowCount:g.totalsRow?"1":void 0,totalsRowShown:g.totalsRow?void 0:"1",headerRowCount:g.headerRow?"1":"0"})),this.map.autoFilter.render(f,g),this.map.tableColumns.render(f,g.columns),this.map.tableStyleInfo.render(f,g.style),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;const{name:g,attributes:m}=f;switch(g){case this.tag:this.reset(),this.model={name:m.name,displayName:m.displayName||m.name,tableRef:m.ref,totalsRow:m.totalsRowCount==="1",headerRow:m.headerRowCount==="1"};break;default:this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f)}return!0}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case this.tag:return this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((g,m)=>{this.model.columns[m].filterButton=g.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(f,g){f.columns.forEach(m=>{m.dxfId!==void 0&&(m.style=g.styles.getDxfStyle(m.dxfId))})}}d.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},n.exports=d},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(e,n,i){(function(a,o){(function(){const s=e("fs"),u=e("jszip"),{PassThrough:c}=e("readable-stream"),l=e("../utils/zip-stream"),d=e("../utils/stream-buf"),h=e("../utils/utils"),f=e("../utils/xml-stream"),{bufferToString:g}=e("../utils/browser-buffer-decode"),m=e("./xform/style/styles-xform"),p=e("./xform/core/core-xform"),y=e("./xform/strings/shared-strings-xform"),v=e("./xform/core/relationships-xform"),b=e("./xform/core/content-types-xform"),A=e("./xform/core/app-xform"),C=e("./xform/book/workbook-xform"),M=e("./xform/sheet/worksheet-xform"),z=e("./xform/drawing/drawing-xform"),W=e("./xform/table/table-xform"),U=e("./xform/comment/comments-xform"),G=e("./xform/comment/vml-notes-xform"),ee=e("./xml/theme1");class I{constructor(T){this.workbook=T}async readFile(T,S){if(!await h.fs.exists(T))throw new Error("File not found: "+T);const x=s.createReadStream(T);try{const w=await this.read(x,S);return x.close(),w}catch(w){throw x.close(),w}}parseRels(T){return new v().parseStream(T)}parseWorkbook(T){return new C().parseStream(T)}parseSharedStrings(T){return new y().parseStream(T)}reconcile(T,S){const x=new C,w=new M(S),_=new z,E=new W;x.reconcile(T);const R={media:T.media,mediaIndex:T.mediaIndex};Object.keys(T.drawings).forEach(X=>{const K=T.drawings[X],te=T.drawingRels[X];te&&(R.rels=te.reduce(($,q)=>($[q.Id]=q,$),{}),(K.anchors||[]).forEach($=>{const q=$.picture&&$.picture.hyperlinks;q&&R.rels[q.rId]&&(q.hyperlink=R.rels[q.rId].Target,delete q.rId)}),_.reconcile(K,R))});const F={styles:T.styles};Object.values(T.tables).forEach(X=>{E.reconcile(X,F)});const B={styles:T.styles,sharedStrings:T.sharedStrings,media:T.media,mediaIndex:T.mediaIndex,date1904:T.properties&&T.properties.date1904,drawings:T.drawings,comments:T.comments,tables:T.tables,vmlDrawings:T.vmlDrawings};T.worksheets.forEach(X=>{X.relationships=T.worksheetRels[X.sheetNo],w.reconcile(X,B)}),delete T.worksheetHash,delete T.worksheetRels,delete T.globalRels,delete T.sharedStrings,delete T.workbookRels,delete T.sheetDefs,delete T.styles,delete T.mediaIndex,delete T.drawings,delete T.drawingRels,delete T.vmlDrawings}async _processWorksheetEntry(T,S,x,w,_){const E=new M(w),R=await E.parseStream(T);R.sheetNo=x,S.worksheetHash[_]=R,S.worksheets.push(R)}async _processCommentEntry(T,S,x){const w=new U,_=await w.parseStream(T);S.comments[`../${x}.xml`]=_}async _processTableEntry(T,S,x){const w=new W,_=await w.parseStream(T);S.tables[`../tables/${x}.xml`]=_}async _processWorksheetRelsEntry(T,S,x){const w=new v,_=await w.parseStream(T);S.worksheetRels[x]=_}async _processMediaEntry(T,S,x){const w=x.lastIndexOf(".");if(w>=1){const _=x.substr(w+1),E=x.substr(0,w);await new Promise((R,F)=>{const B=new d;B.on("finish",()=>{S.mediaIndex[x]=S.media.length,S.mediaIndex[E]=S.media.length;const X={type:"image",name:E,extension:_,buffer:B.toBuffer()};S.media.push(X),R()}),T.on("error",X=>{F(X)}),T.pipe(B)})}}async _processDrawingEntry(T,S,x){const w=new z,_=await w.parseStream(T);S.drawings[x]=_}async _processDrawingRelsEntry(T,S,x){const w=new v,_=await w.parseStream(T);S.drawingRels[x]=_}async _processVmlDrawingEntry(T,S,x){const w=new G,_=await w.parseStream(T);S.vmlDrawings[`../drawings/${x}.vml`]=_}async _processThemeEntry(T,S,x){await new Promise((w,_)=>{const E=new d;T.on("error",_),E.on("error",_),E.on("finish",()=>{S.themes[x]=E.read().toString(),w()}),T.pipe(E)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(T,S){!T[Symbol.asyncIterator]&&T.pipe&&(T=T.pipe(new c));const x=[];for await(const w of T)x.push(w);return this.load(o.concat(x),S)}async load(T,S){let x;x=S&&S.base64?o.from(T.toString(),"base64"):T;const w={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},_=await u.loadAsync(x);for(const E of Object.values(_.files))if(!E.dir){let R,F=E.name;if(F[0]==="/"&&(F=F.substr(1)),F.match(/xl\/media\//)||F.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))R=new c,R.write(await E.async("nodebuffer"));else{let B;R=new c({writableObjectMode:!0,readableObjectMode:!0}),B=a.browser?g(await E.async("nodebuffer")):await E.async("string");const X=16384;for(let K=0;K<B.length;K+=X)R.write(B.substring(K,K+X))}switch(R.end(),F){case"_rels/.rels":w.globalRels=await this.parseRels(R);break;case"xl/workbook.xml":{const B=await this.parseWorkbook(R);w.sheets=B.sheets,w.definedNames=B.definedNames,w.views=B.views,w.properties=B.properties,w.calcProperties=B.calcProperties;break}case"xl/_rels/workbook.xml.rels":w.workbookRels=await this.parseRels(R);break;case"xl/sharedStrings.xml":w.sharedStrings=new y,await w.sharedStrings.parseStream(R);break;case"xl/styles.xml":w.styles=new m,await w.styles.parseStream(R);break;case"docProps/app.xml":{const B=new A,X=await B.parseStream(R);w.company=X.company,w.manager=X.manager;break}case"docProps/core.xml":{const B=new p,X=await B.parseStream(R);Object.assign(w,X);break}default:{let B=F.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(B){await this._processWorksheetEntry(R,w,B[1],S,F);break}if(B=F.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),B){await this._processWorksheetRelsEntry(R,w,B[1]);break}if(B=F.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),B){await this._processThemeEntry(R,w,B[1]);break}if(B=F.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),B){await this._processMediaEntry(R,w,B[1]);break}if(B=F.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),B){await this._processDrawingEntry(R,w,B[1]);break}if(B=F.match(/xl\/(comments\d+)[.]xml/),B){await this._processCommentEntry(R,w,B[1]);break}if(B=F.match(/xl\/tables\/(table\d+)[.]xml/),B){await this._processTableEntry(R,w,B[1]);break}if(B=F.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),B){await this._processDrawingRelsEntry(R,w,B[1]);break}if(B=F.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),B){await this._processVmlDrawingEntry(R,w,B[1]);break}}}}return this.reconcile(w,S),this.workbook.model=w,this.workbook}async addMedia(T,S){await Promise.all(S.media.map(async x=>{if(x.type==="image"){const w=`xl/media/${x.name}.${x.extension}`;if(x.filename){const _=await function(E,R){return new Promise((F,B)=>{s.readFile(E,R,(X,K)=>{X?B(X):F(K)})})}(x.filename);return T.append(_,{name:w})}if(x.buffer)return T.append(x.buffer,{name:w});if(x.base64){const _=x.base64,E=_.substring(_.indexOf(",")+1);return T.append(E,{name:w,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(T,S){const x=new z,w=new v;S.worksheets.forEach(_=>{const{drawing:E}=_;if(E){x.prepare(E,{});let R=x.toXml(E);T.append(R,{name:`xl/drawings/${E.name}.xml`}),R=w.toXml(E.rels),T.append(R,{name:`xl/drawings/_rels/${E.name}.xml.rels`})}})}addTables(T,S){const x=new W;S.worksheets.forEach(w=>{const{tables:_}=w;_.forEach(E=>{x.prepare(E,{});const R=x.toXml(E);T.append(R,{name:"xl/tables/"+E.target})})})}async addContentTypes(T,S){const x=new b().toXml(S);T.append(x,{name:"[Content_Types].xml"})}async addApp(T,S){const x=new A().toXml(S);T.append(x,{name:"docProps/app.xml"})}async addCore(T,S){const x=new p;T.append(x.toXml(S),{name:"docProps/core.xml"})}async addThemes(T,S){const x=S.themes||{theme1:ee};Object.keys(x).forEach(w=>{const _=x[w],E=`xl/theme/${w}.xml`;T.append(_,{name:E})})}async addOfficeRels(T){const S=new v().toXml([{Id:"rId1",Type:I.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:I.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:I.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);T.append(S,{name:"_rels/.rels"})}async addWorkbookRels(T,S){let x=1;const w=[{Id:"rId"+x++,Type:I.RelType.Styles,Target:"styles.xml"},{Id:"rId"+x++,Type:I.RelType.Theme,Target:"theme/theme1.xml"}];S.sharedStrings.count&&w.push({Id:"rId"+x++,Type:I.RelType.SharedStrings,Target:"sharedStrings.xml"}),S.worksheets.forEach(E=>{E.rId="rId"+x++,w.push({Id:E.rId,Type:I.RelType.Worksheet,Target:`worksheets/sheet${E.id}.xml`})});const _=new v().toXml(w);T.append(_,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(T,S){S.sharedStrings&&S.sharedStrings.count&&T.append(S.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(T,S){const{xml:x}=S.styles;x&&T.append(x,{name:"xl/styles.xml"})}async addWorkbook(T,S){const x=new C;T.append(x.toXml(S),{name:"xl/workbook.xml"})}async addWorksheets(T,S){const x=new M,w=new v,_=new U,E=new G;S.worksheets.forEach(R=>{let F=new f;x.render(F,R),T.append(F.xml,{name:`xl/worksheets/sheet${R.id}.xml`}),R.rels&&R.rels.length&&(F=new f,w.render(F,R.rels),T.append(F.xml,{name:`xl/worksheets/_rels/sheet${R.id}.xml.rels`})),R.comments.length>0&&(F=new f,_.render(F,R),T.append(F.xml,{name:`xl/comments${R.id}.xml`}),F=new f,E.render(F,R),T.append(F.xml,{name:`xl/drawings/vmlDrawing${R.id}.vml`}))})}_finalize(T){return new Promise((S,x)=>{T.on("finish",()=>{S(this)}),T.on("error",x),T.finalize()})}prepareModel(T,S){T.creator=T.creator||"ExcelJS",T.lastModifiedBy=T.lastModifiedBy||"ExcelJS",T.created=T.created||new Date,T.modified=T.modified||new Date,T.useSharedStrings=S.useSharedStrings===void 0||S.useSharedStrings,T.useStyles=S.useStyles===void 0||S.useStyles,T.sharedStrings=new y,T.styles=T.useStyles?new m(!0):new m.Mock;const x=new C,w=new M;x.prepare(T);const _={sharedStrings:T.sharedStrings,styles:T.styles,date1904:T.properties.date1904,drawingsCount:0,media:T.media};_.drawings=T.drawings=[],_.commentRefs=T.commentRefs=[];let E=0;T.tables=[],T.worksheets.forEach(R=>{R.tables.forEach(F=>{E++,F.target=`table${E}.xml`,F.id=E,T.tables.push(F)}),w.prepare(R,_)})}async write(T,S){S=S||{};const{model:x}=this.workbook,w=new l.ZipWriter(S.zip);return w.pipe(T),this.prepareModel(x,S),await this.addContentTypes(w,x),await this.addOfficeRels(w,x),await this.addWorkbookRels(w,x),await this.addWorksheets(w,x),await this.addSharedStrings(w,x),await this.addDrawings(w,x),await this.addTables(w,x),await Promise.all([this.addThemes(w,x),this.addStyles(w,x)]),await this.addMedia(w,x),await Promise.all([this.addApp(w,x),this.addCore(w,x)]),await this.addWorkbook(w,x),this._finalize(w)}writeFile(T,S){const x=s.createWriteStream(T);return new Promise((w,_)=>{x.on("finish",()=>{w()}),x.on("error",E=>{_(E)}),this.write(x,S).then(()=>{x.end()}).catch(E=>{_(E)})})}async writeBuffer(T){const S=new d;return await this.write(S,T),S.read()}}I.RelType=e("./rel-type"),n.exports=I}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(e,n,i){n.exports=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF"/> <a:font script="Hang" typeface="\uB9D1\uC740 \uACE0\uB515"/> <a:font script="Hans" typeface="\u5B8B\u4F53"/> <a:font script="Hant" typeface="\u65B0\u7D30\u660E\u9AD4"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF"/> <a:font script="Hang" typeface="\uB9D1\uC740 \uACE0\uB515"/> <a:font script="Hans" typeface="\u5B8B\u4F53"/> <a:font script="Hant" typeface="\u65B0\u7D30\u660E\u9AD4"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>`},{}],146:[function(e,n,i){(function(a){(function(){Object.defineProperty(i,"__esModule",{value:!0}),i.CsvFormatterStream=void 0;const o=e("stream"),s=e("./formatter");class u extends o.Transform{constructor(l){super({writableObjectMode:l.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=l,this.rowFormatter=new s.RowFormatter(l),this.hasWrittenBOM=!l.writeBOM}transform(l){return this.rowFormatter.rowTransform=l,this}_transform(l,d,h){let f=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(l,(g,m)=>g?(f=!0,h(g)):(m&&m.forEach(p=>{this.push(a.from(p,"utf8"))}),f=!0,h()))}catch(g){if(f)throw g;h(g)}}_flush(l){this.rowFormatter.finish((d,h)=>d?l(d):(h&&h.forEach(f=>{this.push(a.from(f,"utf8"))}),l()))}}i.CsvFormatterStream=u}).call(this)}).call(this,e("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.FormatterOptions=void 0,i.FormatterOptions=class{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var o;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=`
`,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,a||{}),(a==null?void 0:a.quoteHeaders)===void 0&&(this.quoteHeaders=this.quoteColumns),(a==null?void 0:a.quote)===!0?this.quote='"':(a==null?void 0:a.quote)===!1&&(this.quote=""),typeof(a==null?void 0:a.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((o=a.writeHeaders)===null||o===void 0||o),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(e,n,i){var a=function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(i,"__esModule",{value:!0}),i.FieldFormatter=void 0;const o=a(e("lodash.isboolean")),s=a(e("lodash.isnil")),u=a(e("lodash.escaperegexp"));i.FieldFormatter=class{constructor(c){this._headers=null,this.formatterOptions=c,c.headers!==null&&(this.headers=c.headers),this.REPLACE_REGEXP=new RegExp(c.quote,"g");const l=`[${c.delimiter}${u.default(c.rowDelimiter)}|\r|
]`;this.ESCAPE_REGEXP=new RegExp(l)}set headers(c){this._headers=c}shouldQuote(c,l){const d=l?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return o.default(d)?d:Array.isArray(d)?d[c]:this._headers!==null&&d[this._headers[c]]}format(c,l,d){const h=(""+(s.default(c)?"":c)).replace(/\0/g,""),{formatterOptions:f}=this;return f.quote!==""&&h.indexOf(f.quote)!==-1?this.quoteField(h.replace(this.REPLACE_REGEXP,f.escapedQuote)):h.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(l,d)?this.quoteField(h):h}quoteField(c){const{quote:l}=this.formatterOptions;return`${l}${c}${l}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,n,i){var a=function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(i,"__esModule",{value:!0}),i.RowFormatter=void 0;const o=a(e("lodash.isfunction")),s=a(e("lodash.isequal")),u=e("./FieldFormatter"),c=e("../types");class l{constructor(h){this.rowCount=0,this.formatterOptions=h,this.fieldFormatter=new u.FieldFormatter(h),this.headers=h.headers,this.shouldWriteHeaders=h.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),h.transform&&(this.rowTransform=h.transform)}static isRowHashArray(h){return!!Array.isArray(h)&&Array.isArray(h[0])&&h[0].length===2}static isRowArray(h){return Array.isArray(h)&&!this.isRowHashArray(h)}static gatherHeaders(h){return l.isRowHashArray(h)?h.map(f=>f[0]):Array.isArray(h)?h:Object.keys(h)}static createTransform(h){return c.isSyncTransform(h)?(f,g)=>{let m=null;try{m=h(f)}catch(p){return g(p)}return g(null,m)}:(f,g)=>{h(f,g)}}set rowTransform(h){if(!o.default(h))throw new TypeError("The transform should be a function");this._rowTransform=l.createTransform(h)}format(h,f){this.callTransformer(h,(g,m)=>{if(g)return f(g);if(!h)return f(null);const p=[];if(m){const{shouldFormatColumns:y,headers:v}=this.checkHeaders(m);if(this.shouldWriteHeaders&&v&&!this.hasWrittenHeaders&&(p.push(this.formatColumns(v,!0)),this.hasWrittenHeaders=!0),y){const b=this.gatherColumns(m);p.push(this.formatColumns(b,!1))}}return f(null,p)})}finish(h){const f=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return h(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));f.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&f.push(this.formatterOptions.rowDelimiter),h(null,f)}checkHeaders(h){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const f=l.gatherHeaders(h);return this.headers=f,this.fieldFormatter.headers=f,this.shouldWriteHeaders?{shouldFormatColumns:!s.default(f,h),headers:f}:{shouldFormatColumns:!0,headers:null}}gatherColumns(h){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(h)?l.isRowHashArray(h)?this.headers.map((f,g)=>{const m=h[g];return m?m[1]:""}):l.isRowArray(h)&&!this.shouldWriteHeaders?h:this.headers.map((f,g)=>h[g]):this.headers.map(f=>h[f])}callTransformer(h,f){return this._rowTransform?this._rowTransform(h,f):f(null,h)}formatColumns(h,f){const g=h.map((p,y)=>this.fieldFormatter.format(p,y,f)).join(this.formatterOptions.delimiter),{rowCount:m}=this;return this.rowCount+=1,m?[this.formatterOptions.rowDelimiter,g].join(""):g}}i.RowFormatter=l},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.FieldFormatter=i.RowFormatter=void 0;var a=e("./RowFormatter");Object.defineProperty(i,"RowFormatter",{enumerable:!0,get:function(){return a.RowFormatter}});var o=e("./FieldFormatter");Object.defineProperty(i,"FieldFormatter",{enumerable:!0,get:function(){return o.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,n,i){(function(a){(function(){var o=Object.create?function(y,v,b,A){A===void 0&&(A=b),Object.defineProperty(y,A,{enumerable:!0,get:function(){return v[b]}})}:function(y,v,b,A){A===void 0&&(A=b),y[A]=v[b]},s=Object.create?function(y,v){Object.defineProperty(y,"default",{enumerable:!0,value:v})}:function(y,v){y.default=v},u=function(y){if(y&&y.__esModule)return y;var v={};if(y!=null)for(var b in y)b!=="default"&&Object.prototype.hasOwnProperty.call(y,b)&&o(v,y,b);return s(v,y),v},c=function(y,v){for(var b in y)b==="default"||Object.prototype.hasOwnProperty.call(v,b)||o(v,y,b)};Object.defineProperty(i,"__esModule",{value:!0}),i.writeToPath=i.writeToString=i.writeToBuffer=i.writeToStream=i.write=i.format=i.FormatterOptions=i.CsvFormatterStream=void 0;const l=e("util"),d=e("stream"),h=u(e("fs")),f=e("./FormatterOptions"),g=e("./CsvFormatterStream");c(e("./types"),i);var m=e("./CsvFormatterStream");Object.defineProperty(i,"CsvFormatterStream",{enumerable:!0,get:function(){return m.CsvFormatterStream}});var p=e("./FormatterOptions");Object.defineProperty(i,"FormatterOptions",{enumerable:!0,get:function(){return p.FormatterOptions}}),i.format=y=>new g.CsvFormatterStream(new f.FormatterOptions(y)),i.write=(y,v)=>{const b=i.format(v),A=l.promisify((C,M)=>{b.write(C,void 0,M)});return y.reduce((C,M)=>C.then(()=>A(M)),Promise.resolve()).then(()=>b.end()).catch(C=>{b.emit("error",C)}),b},i.writeToStream=(y,v,b)=>i.write(v,b).pipe(y),i.writeToBuffer=function(y){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const b=[],A=new d.Writable({write(C,M,z){b.push(C),z()}});return new Promise((C,M)=>{A.on("error",M).on("finish",()=>C(a.concat(b))),i.write(y,v).pipe(A)})},i.writeToString=(y,v)=>i.writeToBuffer(y,v).then(b=>b.toString()),i.writeToPath=(y,v,b)=>{const A=h.createWriteStream(y,{encoding:"utf8"});return i.write(v,b).pipe(A)}}).call(this)}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.isSyncTransform=void 0,i.isSyncTransform=a=>a.length===1},{}],153:[function(e,n,i){(function(a){(function(){Object.defineProperty(i,"__esModule",{value:!0}),i.CsvParserStream=void 0;const o=e("string_decoder"),s=e("stream"),u=e("./transforms"),c=e("./parser");class l extends s.Transform{constructor(h){super({objectMode:h.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=h,this.parser=new c.Parser(h),this.headerTransformer=new u.HeaderTransformer(h),this.decoder=new o.StringDecoder(h.encoding),this.rowTransformerValidator=new u.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(h){return this.rowTransformerValidator.rowTransform=h,this}validate(h){return this.rowTransformerValidator.rowValidator=h,this}emit(h){if(h==="end")return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var f=arguments.length,g=new Array(f>1?f-1:0),m=1;m<f;m++)g[m-1]=arguments[m];return super.emit(h,...g)}_transform(h,f,g){if(this.hasHitRowLimit)return g();const m=l.wrapDoneCallback(g);try{const{lines:p}=this,y=p+this.decoder.write(h),v=this.parse(y,!0);return this.processRows(v,m)}catch(p){return m(p)}}_flush(h){const f=l.wrapDoneCallback(h);if(this.hasHitRowLimit)return f();try{const g=this.lines+this.decoder.end(),m=this.parse(g,!1);return this.processRows(m,f)}catch(g){return f(g)}}parse(h,f){if(!h)return[];const{line:g,rows:m}=this.parser.parse(h,f);return this.lines=g,m}processRows(h,f){const g=h.length,m=p=>{const y=A=>A?f(A):p%100!=0?m(p+1):void a(()=>m(p+1));if(this.checkAndEmitHeaders(),p>=g||this.hasHitRowLimit)return f();if(this.parsedLineCount+=1,this.shouldSkipLine)return y();const v=h[p];this.rowCount+=1,this.parsedRowCount+=1;const b=this.rowCount;return this.transformRow(v,(A,C)=>{if(A)return this.rowCount-=1,y(A);if(!C)return y(new Error("expected transform result"));if(C.isValid){if(C.row)return this.pushRow(C.row,y)}else this.emit("data-invalid",C.row,b,C.reason);return y()})};m(0)}transformRow(h,f){try{this.headerTransformer.transform(h,(g,m)=>g?f(g):m?m.isValid?m.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(m.row,f):this.skipRow(f):(this.rowCount-=1,this.parsedRowCount-=1,f(null,{row:null,isValid:!0})):this.shouldEmitRows?f(null,{isValid:!1,row:h}):this.skipRow(f):f(new Error("Expected result from header transform")))}catch(g){f(g)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(h){return this.rowCount-=1,h(null,{row:null,isValid:!0})}pushRow(h,f){try{this.parserOptions.objectMode?this.push(h):this.push(JSON.stringify(h)),f()}catch(g){f(g)}}static wrapDoneCallback(h){let f=!1;return function(g){if(g){if(f)throw g;return f=!0,void h(g)}for(var m=arguments.length,p=new Array(m>1?m-1:0),y=1;y<m;y++)p[y-1]=arguments[y];h(...p)}}}i.CsvParserStream=l}).call(this)}).call(this,e("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(e,n,i){var a=function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(i,"__esModule",{value:!0}),i.ParserOptions=void 0;const o=a(e("lodash.escaperegexp")),s=a(e("lodash.isnil"));i.ParserOptions=class{constructor(u){var c;if(this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,u||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=o.default(this.delimiter),this.escapeChar=(c=this.escape)!==null&&c!==void 0?c:this.quote,this.supportsComments=!s.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(e,n,i){var a=Object.create?function(m,p,y,v){v===void 0&&(v=y),Object.defineProperty(m,v,{enumerable:!0,get:function(){return p[y]}})}:function(m,p,y,v){v===void 0&&(v=y),m[v]=p[y]},o=Object.create?function(m,p){Object.defineProperty(m,"default",{enumerable:!0,value:p})}:function(m,p){m.default=p},s=function(m){if(m&&m.__esModule)return m;var p={};if(m!=null)for(var y in m)y!=="default"&&Object.prototype.hasOwnProperty.call(m,y)&&a(p,m,y);return o(p,m),p},u=function(m,p){for(var y in m)y==="default"||Object.prototype.hasOwnProperty.call(p,y)||a(p,m,y)};Object.defineProperty(i,"__esModule",{value:!0}),i.parseString=i.parseFile=i.parseStream=i.parse=i.ParserOptions=i.CsvParserStream=void 0;const c=s(e("fs")),l=e("stream"),d=e("./ParserOptions"),h=e("./CsvParserStream");u(e("./types"),i);var f=e("./CsvParserStream");Object.defineProperty(i,"CsvParserStream",{enumerable:!0,get:function(){return f.CsvParserStream}});var g=e("./ParserOptions");Object.defineProperty(i,"ParserOptions",{enumerable:!0,get:function(){return g.ParserOptions}}),i.parse=m=>new h.CsvParserStream(new d.ParserOptions(m)),i.parseStream=(m,p)=>m.pipe(new h.CsvParserStream(new d.ParserOptions(p))),i.parseFile=function(m){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return c.createReadStream(m).pipe(new h.CsvParserStream(new d.ParserOptions(p)))},i.parseString=(m,p)=>{const y=new l.Readable;return y.push(m),y.push(null),y.pipe(new h.CsvParserStream(new d.ParserOptions(p)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.Parser=void 0;const a=e("./Scanner"),o=e("./RowParser"),s=e("./Token");class u{constructor(l){this.parserOptions=l,this.rowParser=new o.RowParser(this.parserOptions)}static removeBOM(l){return l&&l.charCodeAt(0)===65279?l.slice(1):l}parse(l,d){const h=new a.Scanner({line:u.removeBOM(l),parserOptions:this.parserOptions,hasMoreData:d});return this.parserOptions.supportsComments?this.parseWithComments(h):this.parseWithoutComments(h)}parseWithoutComments(l){const d=[];let h=!0;for(;h;)h=this.parseRow(l,d);return{line:l.line,rows:d}}parseWithComments(l){const{parserOptions:d}=this,h=[];for(let f=l.nextCharacterToken;f!==null;f=l.nextCharacterToken)if(s.Token.isTokenComment(f,d)){if(l.advancePastLine()===null)return{line:l.lineFromCursor,rows:h};if(!l.hasMoreCharacters)return{line:l.lineFromCursor,rows:h};l.truncateToCursor()}else if(!this.parseRow(l,h))break;return{line:l.line,rows:h}}parseRow(l,d){if(!l.nextNonSpaceToken)return!1;const h=this.rowParser.parse(l);return h!==null&&(this.parserOptions.ignoreEmpty&&o.RowParser.isEmptyRow(h)||d.push(h),!0)}}i.Parser=u},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.RowParser=void 0;const a=e("./column"),o=e("./Token");i.RowParser=class{constructor(s){this.parserOptions=s,this.columnParser=new a.ColumnParser(s)}static isEmptyRow(s){return s.join("").replace(/\s+/g,"")===""}parse(s){const{parserOptions:u}=this,{hasMoreData:c}=s,l=s,d=[];let h=this.getStartToken(l,d);for(;h;){if(o.Token.isTokenRowDelimiter(h))return l.advancePastToken(h),!l.hasMoreCharacters&&o.Token.isTokenCarriageReturn(h,u)&&c?null:(l.truncateToCursor(),d);if(!this.shouldSkipColumnParse(l,h,d)){const f=this.columnParser.parse(l);if(f===null)return null;d.push(f)}h=l.nextNonSpaceToken}return c?null:(l.truncateToCursor(),d)}getStartToken(s,u){const c=s.nextNonSpaceToken;return c!==null&&o.Token.isTokenDelimiter(c,this.parserOptions)?(u.push(""),s.nextNonSpaceToken):c}shouldSkipColumnParse(s,u,c){const{parserOptions:l}=this;if(o.Token.isTokenDelimiter(u,l)){s.advancePastToken(u);const d=s.nextCharacterToken;if(!s.hasMoreCharacters||d!==null&&o.Token.isTokenRowDelimiter(d)||d!==null&&o.Token.isTokenDelimiter(d,l))return c.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.Scanner=void 0;const a=e("./Token"),o=/((?:\r\n)|\n|\r)/;i.Scanner=class{constructor(s){this.cursor=0,this.line=s.line,this.lineLength=this.line.length,this.parserOptions=s.parserOptions,this.hasMoreData=s.hasMoreData,this.cursor=s.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:s}=this,u=this.parserOptions.NEXT_TOKEN_REGEXP;if(s.search(u)===-1)return null;const c=u.exec(s);if(c==null)return null;const l=c[1],d=this.cursor+(c.index||0);return new a.Token({token:l,startCursor:d,endCursor:d+l.length-1})}get nextCharacterToken(){const{cursor:s,lineLength:u}=this;return u<=s?null:new a.Token({token:this.line[s],startCursor:s,endCursor:s})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const s=o.exec(this.lineFromCursor);return s?(this.cursor+=(s.index||0)+s[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(s){return this.cursor=s,this}advanceToToken(s){return this.cursor=s.startCursor,this}advancePastToken(s){return this.cursor=s.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.Token=void 0,i.Token=class{constructor(a){this.token=a.token,this.startCursor=a.startCursor,this.endCursor=a.endCursor}static isTokenRowDelimiter(a){const o=a.token;return o==="\r"||o===`
`||o===`\r
`}static isTokenCarriageReturn(a,o){return a.token===o.carriageReturn}static isTokenComment(a,o){return o.supportsComments&&!!a&&a.token===o.comment}static isTokenEscapeCharacter(a,o){return a.token===o.escapeChar}static isTokenQuote(a,o){return a.token===o.quote}static isTokenDelimiter(a,o){return a.token===o.delimiter}}},{}],160:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.ColumnFormatter=void 0,i.ColumnFormatter=class{constructor(a){a.trim?this.format=o=>o.trim():a.ltrim?this.format=o=>o.trimLeft():a.rtrim?this.format=o=>o.trimRight():this.format=o=>o}}},{}],161:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.ColumnParser=void 0;const a=e("./NonQuotedColumnParser"),o=e("./QuotedColumnParser"),s=e("../Token");i.ColumnParser=class{constructor(u){this.parserOptions=u,this.quotedColumnParser=new o.QuotedColumnParser(u),this.nonQuotedColumnParser=new a.NonQuotedColumnParser(u)}parse(u){const{nextNonSpaceToken:c}=u;return c!==null&&s.Token.isTokenQuote(c,this.parserOptions)?(u.advanceToToken(c),this.quotedColumnParser.parse(u)):this.nonQuotedColumnParser.parse(u)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.NonQuotedColumnParser=void 0;const a=e("./ColumnFormatter"),o=e("../Token");i.NonQuotedColumnParser=class{constructor(s){this.parserOptions=s,this.columnFormatter=new a.ColumnFormatter(s)}parse(s){if(!s.hasMoreCharacters)return null;const{parserOptions:u}=this,c=[];let l=s.nextCharacterToken;for(;l&&!o.Token.isTokenDelimiter(l,u)&&!o.Token.isTokenRowDelimiter(l);l=s.nextCharacterToken)c.push(l.token),s.advancePastToken(l);return this.columnFormatter.format(c.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.QuotedColumnParser=void 0;const a=e("./ColumnFormatter"),o=e("../Token");i.QuotedColumnParser=class{constructor(s){this.parserOptions=s,this.columnFormatter=new a.ColumnFormatter(s)}parse(s){if(!s.hasMoreCharacters)return null;const u=s.cursor,{foundClosingQuote:c,col:l}=this.gatherDataBetweenQuotes(s);if(!c){if(s.advanceTo(u),!s.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${s.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(s),l}gatherDataBetweenQuotes(s){const{parserOptions:u}=this;let c=!1,l=!1;const d=[];let h=s.nextCharacterToken;for(;!l&&h!==null;h=s.nextCharacterToken){const f=o.Token.isTokenQuote(h,u);if(!c&&f)c=!0;else if(c)if(o.Token.isTokenEscapeCharacter(h,u)){s.advancePastToken(h);const g=s.nextCharacterToken;g!==null&&(o.Token.isTokenQuote(g,u)||o.Token.isTokenEscapeCharacter(g,u))?(d.push(g.token),h=g):f?l=!0:d.push(h.token)}else f?l=!0:d.push(h.token);s.advancePastToken(h)}return{col:this.columnFormatter.format(d.join("")),foundClosingQuote:l}}checkForMalformedColumn(s){const{parserOptions:u}=this,{nextNonSpaceToken:c}=s;if(c){const l=o.Token.isTokenDelimiter(c,u),d=o.Token.isTokenRowDelimiter(c);if(!l&&!d){const h=s.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${u.escapedDelimiter}' OR new line got: '${c.token}'. at '${h}`)}s.advanceToToken(c)}else s.hasMoreData||s.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.ColumnFormatter=i.QuotedColumnParser=i.NonQuotedColumnParser=i.ColumnParser=void 0;var a=e("./ColumnParser");Object.defineProperty(i,"ColumnParser",{enumerable:!0,get:function(){return a.ColumnParser}});var o=e("./NonQuotedColumnParser");Object.defineProperty(i,"NonQuotedColumnParser",{enumerable:!0,get:function(){return o.NonQuotedColumnParser}});var s=e("./QuotedColumnParser");Object.defineProperty(i,"QuotedColumnParser",{enumerable:!0,get:function(){return s.QuotedColumnParser}});var u=e("./ColumnFormatter");Object.defineProperty(i,"ColumnFormatter",{enumerable:!0,get:function(){return u.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.QuotedColumnParser=i.NonQuotedColumnParser=i.ColumnParser=i.Token=i.Scanner=i.RowParser=i.Parser=void 0;var a=e("./Parser");Object.defineProperty(i,"Parser",{enumerable:!0,get:function(){return a.Parser}});var o=e("./RowParser");Object.defineProperty(i,"RowParser",{enumerable:!0,get:function(){return o.RowParser}});var s=e("./Scanner");Object.defineProperty(i,"Scanner",{enumerable:!0,get:function(){return s.Scanner}});var u=e("./Token");Object.defineProperty(i,"Token",{enumerable:!0,get:function(){return u.Token}});var c=e("./column");Object.defineProperty(i,"ColumnParser",{enumerable:!0,get:function(){return c.ColumnParser}}),Object.defineProperty(i,"NonQuotedColumnParser",{enumerable:!0,get:function(){return c.NonQuotedColumnParser}}),Object.defineProperty(i,"QuotedColumnParser",{enumerable:!0,get:function(){return c.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,n,i){var a=function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(i,"__esModule",{value:!0}),i.HeaderTransformer=void 0;const o=a(e("lodash.isundefined")),s=a(e("lodash.isfunction")),u=a(e("lodash.uniq")),c=a(e("lodash.groupby"));i.HeaderTransformer=class{constructor(l){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=l,l.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(l.headers)?this.setHeaders(l.headers):s.default(l.headers)&&(this.headersTransform=l.headers)}transform(l,d){return this.shouldMapRow(l)?d(null,this.processRow(l)):d(null,{row:null,isValid:!0})}shouldMapRow(l){const{parserOptions:d}=this;if(!this.headersTransform&&d.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(l)){if(this.headersTransform)this.setHeaders(this.headersTransform(l));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(l)}return!1}return!0}processRow(l){if(!this.headers)return{row:l,isValid:!0};const{parserOptions:d}=this;if(!d.discardUnmappedColumns&&l.length>this.headersLength){if(!d.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${l.length}`);return{row:l,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${l.length}`}}return d.strictColumnHandling&&l.length<this.headersLength?{row:l,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${l.length}`}:{row:this.mapHeaders(l),isValid:!0}}mapHeaders(l){const d={},{headers:h,headersLength:f}=this;for(let g=0;g<f;g+=1){const m=h[g];if(!o.default(m)){const p=l[g];o.default(p)?d[m]="":d[m]=p}}return d}setHeaders(l){var d;const h=l.filter(f=>!!f);if(u.default(h).length!==h.length){const f=c.default(h),g=Object.keys(f).filter(m=>f[m].length>1);throw new Error("Duplicate headers found "+JSON.stringify(g))}this.headers=l,this.receivedHeaders=!0,this.headersLength=((d=this.headers)===null||d===void 0?void 0:d.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,n,i){var a=function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(i,"__esModule",{value:!0}),i.RowTransformerValidator=void 0;const o=a(e("lodash.isfunction")),s=e("../types");class u{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(l){return s.isSyncTransform(l)?(d,h)=>{let f=null;try{f=l(d)}catch(g){return h(g)}return h(null,f)}:l}static createValidator(l){return s.isSyncValidate(l)?(d,h)=>{h(null,{row:d,isValid:l(d)})}:(d,h)=>{l(d,(f,g,m)=>f?h(f):h(null,g?{row:d,isValid:g,reason:m}:{row:d,isValid:!1,reason:m}))}}set rowTransform(l){if(!o.default(l))throw new TypeError("The transform should be a function");this._rowTransform=u.createTransform(l)}set rowValidator(l){if(!o.default(l))throw new TypeError("The validate should be a function");this._rowValidator=u.createValidator(l)}transformAndValidate(l,d){return this.callTransformer(l,(h,f)=>h?d(h):f?this.callValidator(f,(g,m)=>g?d(g):m&&!m.isValid?d(null,{row:f,isValid:!1,reason:m.reason}):d(null,{row:f,isValid:!0})):d(null,{row:null,isValid:!0}))}callTransformer(l,d){return this._rowTransform?this._rowTransform(l,d):d(null,l)}callValidator(l,d){return this._rowValidator?this._rowValidator(l,d):d(null,{row:l,isValid:!0})}}i.RowTransformerValidator=u},{"../types":169,"lodash.isfunction":446}],168:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.HeaderTransformer=i.RowTransformerValidator=void 0;var a=e("./RowTransformerValidator");Object.defineProperty(i,"RowTransformerValidator",{enumerable:!0,get:function(){return a.RowTransformerValidator}});var o=e("./HeaderTransformer");Object.defineProperty(i,"HeaderTransformer",{enumerable:!0,get:function(){return o.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.isSyncValidate=i.isSyncTransform=void 0,i.isSyncTransform=a=>a.length===1,i.isSyncValidate=a=>a.length===1},{}],170:[function(e,n,i){const a=i;a.bignum=e("bn.js"),a.define=e("./asn1/api").define,a.base=e("./asn1/base"),a.constants=e("./asn1/constants"),a.decoders=e("./asn1/decoders"),a.encoders=e("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(e,n,i){const a=e("./encoders"),o=e("./decoders"),s=e("inherits");function u(c,l){this.name=c,this.body=l,this.decoders={},this.encoders={}}i.define=function(c,l){return new u(c,l)},u.prototype._createNamed=function(c){const l=this.name;function d(h){this._initNamed(h,l)}return s(d,c),d.prototype._initNamed=function(h,f){c.call(this,h,f)},new d(this)},u.prototype._getDecoder=function(c){return c=c||"der",this.decoders.hasOwnProperty(c)||(this.decoders[c]=this._createNamed(o[c])),this.decoders[c]},u.prototype.decode=function(c,l,d){return this._getDecoder(l).decode(c,d)},u.prototype._getEncoder=function(c){return c=c||"der",this.encoders.hasOwnProperty(c)||(this.encoders[c]=this._createNamed(a[c])),this.encoders[c]},u.prototype.encode=function(c,l,d){return this._getEncoder(l).encode(c,d)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,n,i){const a=e("inherits"),o=e("../base/reporter").Reporter,s=e("safer-buffer").Buffer;function u(l,d){o.call(this,d),s.isBuffer(l)?(this.base=l,this.offset=0,this.length=l.length):this.error("Input not Buffer")}function c(l,d){if(Array.isArray(l))this.length=0,this.value=l.map(function(h){return c.isEncoderBuffer(h)||(h=new c(h,d)),this.length+=h.length,h},this);else if(typeof l=="number"){if(!(0<=l&&l<=255))return d.error("non-byte EncoderBuffer value");this.value=l,this.length=1}else if(typeof l=="string")this.value=l,this.length=s.byteLength(l);else{if(!s.isBuffer(l))return d.error("Unsupported type: "+typeof l);this.value=l,this.length=l.length}}a(u,o),i.DecoderBuffer=u,u.isDecoderBuffer=function(l){return l instanceof u?!0:typeof l=="object"&&s.isBuffer(l.base)&&l.constructor.name==="DecoderBuffer"&&typeof l.offset=="number"&&typeof l.length=="number"&&typeof l.save=="function"&&typeof l.restore=="function"&&typeof l.isEmpty=="function"&&typeof l.readUInt8=="function"&&typeof l.skip=="function"&&typeof l.raw=="function"},u.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},u.prototype.restore=function(l){const d=new u(this.base);return d.offset=l.offset,d.length=this.offset,this.offset=l.offset,o.prototype.restore.call(this,l.reporter),d},u.prototype.isEmpty=function(){return this.offset===this.length},u.prototype.readUInt8=function(l){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(l||"DecoderBuffer overrun")},u.prototype.skip=function(l,d){if(!(this.offset+l<=this.length))return this.error(d||"DecoderBuffer overrun");const h=new u(this.base);return h._reporterState=this._reporterState,h.offset=this.offset,h.length=this.offset+l,this.offset+=l,h},u.prototype.raw=function(l){return this.base.slice(l?l.offset:this.offset,this.length)},i.EncoderBuffer=c,c.isEncoderBuffer=function(l){return l instanceof c?!0:typeof l=="object"&&l.constructor.name==="EncoderBuffer"&&typeof l.length=="number"&&typeof l.join=="function"},c.prototype.join=function(l,d){return l||(l=s.alloc(this.length)),d||(d=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(h){h.join(l,d),d+=h.length}):(typeof this.value=="number"?l[d]=this.value:typeof this.value=="string"?l.write(this.value,d):s.isBuffer(this.value)&&this.value.copy(l,d),d+=this.length)),l}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,n,i){const a=i;a.Reporter=e("./reporter").Reporter,a.DecoderBuffer=e("./buffer").DecoderBuffer,a.EncoderBuffer=e("./buffer").EncoderBuffer,a.Node=e("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,n,i){const a=e("../base/reporter").Reporter,o=e("../base/buffer").EncoderBuffer,s=e("../base/buffer").DecoderBuffer,u=e("minimalistic-assert"),c=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(c);function d(f,g,m){const p={};this._baseState=p,p.name=m,p.enc=f,p.parent=g||null,p.children=null,p.tag=null,p.args=null,p.reverseArgs=null,p.choice=null,p.optional=!1,p.any=!1,p.obj=!1,p.use=null,p.useDecoder=null,p.key=null,p.default=null,p.explicit=null,p.implicit=null,p.contains=null,p.parent||(p.children=[],this._wrap())}n.exports=d;const h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];d.prototype.clone=function(){const f=this._baseState,g={};h.forEach(function(p){g[p]=f[p]});const m=new this.constructor(g.parent);return m._baseState=g,m},d.prototype._wrap=function(){const f=this._baseState;l.forEach(function(g){this[g]=function(){const m=new this.constructor(this);return f.children.push(m),m[g].apply(m,arguments)}},this)},d.prototype._init=function(f){const g=this._baseState;u(g.parent===null),f.call(this),g.children=g.children.filter(function(m){return m._baseState.parent===this},this),u.equal(g.children.length,1,"Root node can have only one child")},d.prototype._useArgs=function(f){const g=this._baseState,m=f.filter(function(p){return p instanceof this.constructor},this);f=f.filter(function(p){return!(p instanceof this.constructor)},this),m.length!==0&&(u(g.children===null),g.children=m,m.forEach(function(p){p._baseState.parent=this},this)),f.length!==0&&(u(g.args===null),g.args=f,g.reverseArgs=f.map(function(p){if(typeof p!="object"||p.constructor!==Object)return p;const y={};return Object.keys(p).forEach(function(v){v==(0|v)&&(v|=0);const b=p[v];y[b]=v}),y}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(f){d.prototype[f]=function(){const g=this._baseState;throw new Error(f+" not implemented for encoding: "+g.enc)}}),c.forEach(function(f){d.prototype[f]=function(){const g=this._baseState,m=Array.prototype.slice.call(arguments);return u(g.tag===null),g.tag=f,this._useArgs(m),this}}),d.prototype.use=function(f){u(f);const g=this._baseState;return u(g.use===null),g.use=f,this},d.prototype.optional=function(){return this._baseState.optional=!0,this},d.prototype.def=function(f){const g=this._baseState;return u(g.default===null),g.default=f,g.optional=!0,this},d.prototype.explicit=function(f){const g=this._baseState;return u(g.explicit===null&&g.implicit===null),g.explicit=f,this},d.prototype.implicit=function(f){const g=this._baseState;return u(g.explicit===null&&g.implicit===null),g.implicit=f,this},d.prototype.obj=function(){const f=this._baseState,g=Array.prototype.slice.call(arguments);return f.obj=!0,g.length!==0&&this._useArgs(g),this},d.prototype.key=function(f){const g=this._baseState;return u(g.key===null),g.key=f,this},d.prototype.any=function(){return this._baseState.any=!0,this},d.prototype.choice=function(f){const g=this._baseState;return u(g.choice===null),g.choice=f,this._useArgs(Object.keys(f).map(function(m){return f[m]})),this},d.prototype.contains=function(f){const g=this._baseState;return u(g.use===null),g.contains=f,this},d.prototype._decode=function(f,g){const m=this._baseState;if(m.parent===null)return f.wrapResult(m.children[0]._decode(f,g));let p,y=m.default,v=!0,b=null;if(m.key!==null&&(b=f.enterKey(m.key)),m.optional){let A=null;if(m.explicit!==null?A=m.explicit:m.implicit!==null?A=m.implicit:m.tag!==null&&(A=m.tag),A!==null||m.any){if(v=this._peekTag(f,A,m.any),f.isError(v))return v}else{const C=f.save();try{m.choice===null?this._decodeGeneric(m.tag,f,g):this._decodeChoice(f,g),v=!0}catch{v=!1}f.restore(C)}}if(m.obj&&v&&(p=f.enterObject()),v){if(m.explicit!==null){const C=this._decodeTag(f,m.explicit);if(f.isError(C))return C;f=C}const A=f.offset;if(m.use===null&&m.choice===null){let C;m.any&&(C=f.save());const M=this._decodeTag(f,m.implicit!==null?m.implicit:m.tag,m.any);if(f.isError(M))return M;m.any?y=f.raw(C):f=M}if(g&&g.track&&m.tag!==null&&g.track(f.path(),A,f.length,"tagged"),g&&g.track&&m.tag!==null&&g.track(f.path(),f.offset,f.length,"content"),m.any||(y=m.choice===null?this._decodeGeneric(m.tag,f,g):this._decodeChoice(f,g)),f.isError(y))return y;if(m.any||m.choice!==null||m.children===null||m.children.forEach(function(C){C._decode(f,g)}),m.contains&&(m.tag==="octstr"||m.tag==="bitstr")){const C=new s(y);y=this._getUse(m.contains,f._reporterState.obj)._decode(C,g)}}return m.obj&&v&&(y=f.leaveObject(p)),m.key===null||y===null&&v!==!0?b!==null&&f.exitKey(b):f.leaveKey(b,m.key,y),y},d.prototype._decodeGeneric=function(f,g,m){const p=this._baseState;return f==="seq"||f==="set"?null:f==="seqof"||f==="setof"?this._decodeList(g,f,p.args[0],m):/str$/.test(f)?this._decodeStr(g,f,m):f==="objid"&&p.args?this._decodeObjid(g,p.args[0],p.args[1],m):f==="objid"?this._decodeObjid(g,null,null,m):f==="gentime"||f==="utctime"?this._decodeTime(g,f,m):f==="null_"?this._decodeNull(g,m):f==="bool"?this._decodeBool(g,m):f==="objDesc"?this._decodeStr(g,f,m):f==="int"||f==="enum"?this._decodeInt(g,p.args&&p.args[0],m):p.use!==null?this._getUse(p.use,g._reporterState.obj)._decode(g,m):g.error("unknown tag: "+f)},d.prototype._getUse=function(f,g){const m=this._baseState;return m.useDecoder=this._use(f,g),u(m.useDecoder._baseState.parent===null),m.useDecoder=m.useDecoder._baseState.children[0],m.implicit!==m.useDecoder._baseState.implicit&&(m.useDecoder=m.useDecoder.clone(),m.useDecoder._baseState.implicit=m.implicit),m.useDecoder},d.prototype._decodeChoice=function(f,g){const m=this._baseState;let p=null,y=!1;return Object.keys(m.choice).some(function(v){const b=f.save(),A=m.choice[v];try{const C=A._decode(f,g);if(f.isError(C))return!1;p={type:v,value:C},y=!0}catch{return f.restore(b),!1}return!0},this),y?p:f.error("Choice not matched")},d.prototype._createEncoderBuffer=function(f){return new o(f,this.reporter)},d.prototype._encode=function(f,g,m){const p=this._baseState;if(p.default!==null&&p.default===f)return;const y=this._encodeValue(f,g,m);return y===void 0||this._skipDefault(y,g,m)?void 0:y},d.prototype._encodeValue=function(f,g,m){const p=this._baseState;if(p.parent===null)return p.children[0]._encode(f,g||new a);let y=null;if(this.reporter=g,p.optional&&f===void 0){if(p.default===null)return;f=p.default}let v=null,b=!1;if(p.any)y=this._createEncoderBuffer(f);else if(p.choice)y=this._encodeChoice(f,g);else if(p.contains)v=this._getUse(p.contains,m)._encode(f,g),b=!0;else if(p.children)v=p.children.map(function(A){if(A._baseState.tag==="null_")return A._encode(null,g,f);if(A._baseState.key===null)return g.error("Child should have a key");const C=g.enterKey(A._baseState.key);if(typeof f!="object")return g.error("Child expected, but input is not object");const M=A._encode(f[A._baseState.key],g,f);return g.leaveKey(C),M},this).filter(function(A){return A}),v=this._createEncoderBuffer(v);else if(p.tag==="seqof"||p.tag==="setof"){if(!p.args||p.args.length!==1)return g.error("Too many args for : "+p.tag);if(!Array.isArray(f))return g.error("seqof/setof, but data is not Array");const A=this.clone();A._baseState.implicit=null,v=this._createEncoderBuffer(f.map(function(C){const M=this._baseState;return this._getUse(M.args[0],f)._encode(C,g)},A))}else p.use!==null?y=this._getUse(p.use,m)._encode(f,g):(v=this._encodePrimitive(p.tag,f),b=!0);if(!p.any&&p.choice===null){const A=p.implicit!==null?p.implicit:p.tag,C=p.implicit===null?"universal":"context";A===null?p.use===null&&g.error("Tag could be omitted only for .use()"):p.use===null&&(y=this._encodeComposite(A,b,C,v))}return p.explicit!==null&&(y=this._encodeComposite(p.explicit,!1,"context",y)),y},d.prototype._encodeChoice=function(f,g){const m=this._baseState,p=m.choice[f.type];return p||u(!1,f.type+" not found in "+JSON.stringify(Object.keys(m.choice))),p._encode(f.value,g)},d.prototype._encodePrimitive=function(f,g){const m=this._baseState;if(/str$/.test(f))return this._encodeStr(g,f);if(f==="objid"&&m.args)return this._encodeObjid(g,m.reverseArgs[0],m.args[1]);if(f==="objid")return this._encodeObjid(g,null,null);if(f==="gentime"||f==="utctime")return this._encodeTime(g,f);if(f==="null_")return this._encodeNull();if(f==="int"||f==="enum")return this._encodeInt(g,m.args&&m.reverseArgs[0]);if(f==="bool")return this._encodeBool(g);if(f==="objDesc")return this._encodeStr(g,f);throw new Error("Unsupported tag: "+f)},d.prototype._isNumstr=function(f){return/^[0-9 ]*$/.test(f)},d.prototype._isPrintstr=function(f){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(f)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,n,i){const a=e("inherits");function o(u){this._reporterState={obj:null,path:[],options:u||{},errors:[]}}function s(u,c){this.path=u,this.rethrow(c)}i.Reporter=o,o.prototype.isError=function(u){return u instanceof s},o.prototype.save=function(){const u=this._reporterState;return{obj:u.obj,pathLen:u.path.length}},o.prototype.restore=function(u){const c=this._reporterState;c.obj=u.obj,c.path=c.path.slice(0,u.pathLen)},o.prototype.enterKey=function(u){return this._reporterState.path.push(u)},o.prototype.exitKey=function(u){const c=this._reporterState;c.path=c.path.slice(0,u-1)},o.prototype.leaveKey=function(u,c,l){const d=this._reporterState;this.exitKey(u),d.obj!==null&&(d.obj[c]=l)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){const u=this._reporterState,c=u.obj;return u.obj={},c},o.prototype.leaveObject=function(u){const c=this._reporterState,l=c.obj;return c.obj=u,l},o.prototype.error=function(u){let c;const l=this._reporterState,d=u instanceof s;if(c=d?u:new s(l.path.map(function(h){return"["+JSON.stringify(h)+"]"}).join(""),u.message||u,u.stack),!l.options.partial)throw c;return d||l.errors.push(c),c},o.prototype.wrapResult=function(u){const c=this._reporterState;return c.options.partial?{result:this.isError(u)?null:u,errors:c.errors}:u},a(s,Error),s.prototype.rethrow=function(u){if(this.message=u+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,s),!this.stack)try{throw new Error(this.message)}catch(c){this.stack=c.stack}return this}},{inherits:440}],176:[function(e,n,i){function a(o){const s={};return Object.keys(o).forEach(function(u){(0|u)==u&&(u|=0);const c=o[u];s[c]=u}),s}i.tagClass={0:"universal",1:"application",2:"context",3:"private"},i.tagClassByName=a(i.tagClass),i.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},i.tagByName=a(i.tag)},{}],177:[function(e,n,i){const a=i;a._reverse=function(o){const s={};return Object.keys(o).forEach(function(u){(0|u)==u&&(u|=0);const c=o[u];s[c]=u}),s},a.der=e("./der")},{"./der":176}],178:[function(e,n,i){const a=e("inherits"),o=e("bn.js"),s=e("../base/buffer").DecoderBuffer,u=e("../base/node"),c=e("../constants/der");function l(g){this.enc="der",this.name=g.name,this.entity=g,this.tree=new d,this.tree._init(g.body)}function d(g){u.call(this,"der",g)}function h(g,m){let p=g.readUInt8(m);if(g.isError(p))return p;const y=c.tagClass[p>>6],v=(32&p)==0;if((31&p)==31){let b=p;for(p=0;(128&b)==128;){if(b=g.readUInt8(m),g.isError(b))return b;p<<=7,p|=127&b}}else p&=31;return{cls:y,primitive:v,tag:p,tagStr:c.tag[p]}}function f(g,m,p){let y=g.readUInt8(p);if(g.isError(y))return y;if(!m&&y===128)return null;if((128&y)==0)return y;const v=127&y;if(v>4)return g.error("length octect is too long");y=0;for(let b=0;b<v;b++){y<<=8;const A=g.readUInt8(p);if(g.isError(A))return A;y|=A}return y}n.exports=l,l.prototype.decode=function(g,m){return s.isDecoderBuffer(g)||(g=new s(g,m)),this.tree._decode(g,m)},a(d,u),d.prototype._peekTag=function(g,m,p){if(g.isEmpty())return!1;const y=g.save(),v=h(g,'Failed to peek tag: "'+m+'"');return g.isError(v)?v:(g.restore(y),v.tag===m||v.tagStr===m||v.tagStr+"of"===m||p)},d.prototype._decodeTag=function(g,m,p){const y=h(g,'Failed to decode tag of "'+m+'"');if(g.isError(y))return y;let v=f(g,y.primitive,'Failed to get length of "'+m+'"');if(g.isError(v))return v;if(!p&&y.tag!==m&&y.tagStr!==m&&y.tagStr+"of"!==m)return g.error('Failed to match tag: "'+m+'"');if(y.primitive||v!==null)return g.skip(v,'Failed to match body of: "'+m+'"');const b=g.save(),A=this._skipUntilEnd(g,'Failed to skip indefinite length body: "'+this.tag+'"');return g.isError(A)?A:(v=g.offset-b.offset,g.restore(b),g.skip(v,'Failed to match body of: "'+m+'"'))},d.prototype._skipUntilEnd=function(g,m){for(;;){const p=h(g,m);if(g.isError(p))return p;const y=f(g,p.primitive,m);if(g.isError(y))return y;let v;if(v=p.primitive||y!==null?g.skip(y):this._skipUntilEnd(g,m),g.isError(v))return v;if(p.tagStr==="end")break}},d.prototype._decodeList=function(g,m,p,y){const v=[];for(;!g.isEmpty();){const b=this._peekTag(g,"end");if(g.isError(b))return b;const A=p.decode(g,"der",y);if(g.isError(A)&&b)break;v.push(A)}return v},d.prototype._decodeStr=function(g,m){if(m==="bitstr"){const p=g.readUInt8();return g.isError(p)?p:{unused:p,data:g.raw()}}if(m==="bmpstr"){const p=g.raw();if(p.length%2==1)return g.error("Decoding of string type: bmpstr length mismatch");let y="";for(let v=0;v<p.length/2;v++)y+=String.fromCharCode(p.readUInt16BE(2*v));return y}if(m==="numstr"){const p=g.raw().toString("ascii");return this._isNumstr(p)?p:g.error("Decoding of string type: numstr unsupported characters")}if(m==="octstr"||m==="objDesc")return g.raw();if(m==="printstr"){const p=g.raw().toString("ascii");return this._isPrintstr(p)?p:g.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(m)?g.raw().toString():g.error("Decoding of string type: "+m+" unsupported")},d.prototype._decodeObjid=function(g,m,p){let y;const v=[];let b=0,A=0;for(;!g.isEmpty();)A=g.readUInt8(),b<<=7,b|=127&A,(128&A)==0&&(v.push(b),b=0);128&A&&v.push(b);const C=v[0]/40|0,M=v[0]%40;if(y=p?v:[C,M].concat(v.slice(1)),m){let z=m[y.join(" ")];z===void 0&&(z=m[y.join(".")]),z!==void 0&&(y=z)}return y},d.prototype._decodeTime=function(g,m){const p=g.raw().toString();let y,v,b,A,C,M;if(m==="gentime")y=0|p.slice(0,4),v=0|p.slice(4,6),b=0|p.slice(6,8),A=0|p.slice(8,10),C=0|p.slice(10,12),M=0|p.slice(12,14);else{if(m!=="utctime")return g.error("Decoding "+m+" time is not supported yet");y=0|p.slice(0,2),v=0|p.slice(2,4),b=0|p.slice(4,6),A=0|p.slice(6,8),C=0|p.slice(8,10),M=0|p.slice(10,12),y=y<70?2e3+y:1900+y}return Date.UTC(y,v-1,b,A,C,M,0)},d.prototype._decodeNull=function(){return null},d.prototype._decodeBool=function(g){const m=g.readUInt8();return g.isError(m)?m:m!==0},d.prototype._decodeInt=function(g,m){const p=g.raw();let y=new o(p);return m&&(y=m[y.toString(10)]||y),y},d.prototype._use=function(g,m){return typeof g=="function"&&(g=g(m)),g._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(e,n,i){const a=i;a.der=e("./der"),a.pem=e("./pem")},{"./der":178,"./pem":180}],180:[function(e,n,i){const a=e("inherits"),o=e("safer-buffer").Buffer,s=e("./der");function u(c){s.call(this,c),this.enc="pem"}a(u,s),n.exports=u,u.prototype.decode=function(c,l){const d=c.toString().split(/[\r\n]+/g),h=l.label.toUpperCase(),f=/^-----(BEGIN|END) ([^-]+)-----$/;let g=-1,m=-1;for(let v=0;v<d.length;v++){const b=d[v].match(f);if(b!==null&&b[2]===h){if(g!==-1){if(b[1]!=="END")break;m=v;break}if(b[1]!=="BEGIN")break;g=v}}if(g===-1||m===-1)throw new Error("PEM section not found for: "+h);const p=d.slice(g+1,m).join("");p.replace(/[^a-z0-9+/=]+/gi,"");const y=o.from(p,"base64");return s.prototype.decode.call(this,y,l)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(e,n,i){const a=e("inherits"),o=e("safer-buffer").Buffer,s=e("../base/node"),u=e("../constants/der");function c(h){this.enc="der",this.name=h.name,this.entity=h,this.tree=new l,this.tree._init(h.body)}function l(h){s.call(this,"der",h)}function d(h){return h<10?"0"+h:h}n.exports=c,c.prototype.encode=function(h,f){return this.tree._encode(h,f).join()},a(l,s),l.prototype._encodeComposite=function(h,f,g,m){const p=function(b,A,C,M){let z;if(b==="seqof"?b="seq":b==="setof"&&(b="set"),u.tagByName.hasOwnProperty(b))z=u.tagByName[b];else{if(typeof b!="number"||(0|b)!==b)return M.error("Unknown tag: "+b);z=b}return z>=31?M.error("Multi-octet tag encoding unsupported"):(A||(z|=32),z|=u.tagClassByName[C||"universal"]<<6,z)}(h,f,g,this.reporter);if(m.length<128){const b=o.alloc(2);return b[0]=p,b[1]=m.length,this._createEncoderBuffer([b,m])}let y=1;for(let b=m.length;b>=256;b>>=8)y++;const v=o.alloc(2+y);v[0]=p,v[1]=128|y;for(let b=1+y,A=m.length;A>0;b--,A>>=8)v[b]=255&A;return this._createEncoderBuffer([v,m])},l.prototype._encodeStr=function(h,f){if(f==="bitstr")return this._createEncoderBuffer([0|h.unused,h.data]);if(f==="bmpstr"){const g=o.alloc(2*h.length);for(let m=0;m<h.length;m++)g.writeUInt16BE(h.charCodeAt(m),2*m);return this._createEncoderBuffer(g)}return f==="numstr"?this._isNumstr(h)?this._createEncoderBuffer(h):this.reporter.error("Encoding of string type: numstr supports only digits and space"):f==="printstr"?this._isPrintstr(h)?this._createEncoderBuffer(h):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(f)||f==="objDesc"?this._createEncoderBuffer(h):this.reporter.error("Encoding of string type: "+f+" unsupported")},l.prototype._encodeObjid=function(h,f,g){if(typeof h=="string"){if(!f)return this.reporter.error("string objid given, but no values map found");if(!f.hasOwnProperty(h))return this.reporter.error("objid not found in values map");h=f[h].split(/[\s.]+/g);for(let v=0;v<h.length;v++)h[v]|=0}else if(Array.isArray(h)){h=h.slice();for(let v=0;v<h.length;v++)h[v]|=0}if(!Array.isArray(h))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(h));if(!g){if(h[1]>=40)return this.reporter.error("Second objid identifier OOB");h.splice(0,2,40*h[0]+h[1])}let m=0;for(let v=0;v<h.length;v++){let b=h[v];for(m++;b>=128;b>>=7)m++}const p=o.alloc(m);let y=p.length-1;for(let v=h.length-1;v>=0;v--){let b=h[v];for(p[y--]=127&b;(b>>=7)>0;)p[y--]=128|127&b}return this._createEncoderBuffer(p)},l.prototype._encodeTime=function(h,f){let g;const m=new Date(h);return f==="gentime"?g=[d(m.getUTCFullYear()),d(m.getUTCMonth()+1),d(m.getUTCDate()),d(m.getUTCHours()),d(m.getUTCMinutes()),d(m.getUTCSeconds()),"Z"].join(""):f==="utctime"?g=[d(m.getUTCFullYear()%100),d(m.getUTCMonth()+1),d(m.getUTCDate()),d(m.getUTCHours()),d(m.getUTCMinutes()),d(m.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+f+" time is not supported yet"),this._encodeStr(g,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(h,f){if(typeof h=="string"){if(!f)return this.reporter.error("String int or enum given, but no values map");if(!f.hasOwnProperty(h))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(h));h=f[h]}if(typeof h!="number"&&!o.isBuffer(h)){const p=h.toArray();!h.sign&&128&p[0]&&p.unshift(0),h=o.from(p)}if(o.isBuffer(h)){let p=h.length;h.length===0&&p++;const y=o.alloc(p);return h.copy(y),h.length===0&&(y[0]=0),this._createEncoderBuffer(y)}if(h<128)return this._createEncoderBuffer(h);if(h<256)return this._createEncoderBuffer([0,h]);let g=1;for(let p=h;p>=256;p>>=8)g++;const m=new Array(g);for(let p=m.length-1;p>=0;p--)m[p]=255&h,h>>=8;return 128&m[0]&&m.unshift(0),this._createEncoderBuffer(o.from(m))},l.prototype._encodeBool=function(h){return this._createEncoderBuffer(h?255:0)},l.prototype._use=function(h,f){return typeof h=="function"&&(h=h(f)),h._getEncoder("der").tree},l.prototype._skipDefault=function(h,f,g){const m=this._baseState;let p;if(m.default===null)return!1;const y=h.join();if(m.defaultBuffer===void 0&&(m.defaultBuffer=this._encodeValue(m.default,f,g).join()),y.length!==m.defaultBuffer.length)return!1;for(p=0;p<y.length;p++)if(y[p]!==m.defaultBuffer[p])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(e,n,i){const a=i;a.der=e("./der"),a.pem=e("./pem")},{"./der":181,"./pem":183}],183:[function(e,n,i){const a=e("inherits"),o=e("./der");function s(u){o.call(this,u),this.enc="pem"}a(s,o),n.exports=s,s.prototype.encode=function(u,c){const l=o.prototype.encode.call(this,u).toString("base64"),d=["-----BEGIN "+c.label+"-----"];for(let h=0;h<l.length;h+=64)d.push(l.slice(h,h+64));return d.push("-----END "+c.label+"-----"),d.join(`
`)}},{"./der":181,inherits:440}],184:[function(e,n,i){(function(a,o){function s(O,T){if(!O)throw new Error(T||"Assertion failed")}function u(O,T){O.super_=T;var S=function(){};S.prototype=T.prototype,O.prototype=new S,O.prototype.constructor=O}function c(O,T,S){if(c.isBN(O))return O;this.negative=0,this.words=null,this.length=0,this.red=null,O!==null&&(T!=="le"&&T!=="be"||(S=T,T=10),this._init(O||0,T||10,S||"be"))}var l;typeof a=="object"?a.exports=c:(void 0).BN=c,c.BN=c,c.wordSize=26;try{l=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:e("buffer").Buffer}catch{}function d(O,T){var S=O.charCodeAt(T);return S>=65&&S<=70?S-55:S>=97&&S<=102?S-87:S-48&15}function h(O,T,S){var x=d(O,S);return S-1>=T&&(x|=d(O,S-1)<<4),x}function f(O,T,S,x){for(var w=0,_=Math.min(O.length,S),E=T;E<_;E++){var R=O.charCodeAt(E)-48;w*=x,w+=R>=49?R-49+10:R>=17?R-17+10:R}return w}c.isBN=function(O){return O instanceof c||O!==null&&typeof O=="object"&&O.constructor.wordSize===c.wordSize&&Array.isArray(O.words)},c.max=function(O,T){return O.cmp(T)>0?O:T},c.min=function(O,T){return O.cmp(T)<0?O:T},c.prototype._init=function(O,T,S){if(typeof O=="number")return this._initNumber(O,T,S);if(typeof O=="object")return this._initArray(O,T,S);T==="hex"&&(T=16),s(T===(0|T)&&T>=2&&T<=36);var x=0;(O=O.toString().replace(/\s+/g,""))[0]==="-"&&(x++,this.negative=1),x<O.length&&(T===16?this._parseHex(O,x,S):(this._parseBase(O,T,x),S==="le"&&this._initArray(this.toArray(),T,S)))},c.prototype._initNumber=function(O,T,S){O<0&&(this.negative=1,O=-O),O<67108864?(this.words=[67108863&O],this.length=1):O<4503599627370496?(this.words=[67108863&O,O/67108864&67108863],this.length=2):(s(O<9007199254740992),this.words=[67108863&O,O/67108864&67108863,1],this.length=3),S==="le"&&this._initArray(this.toArray(),T,S)},c.prototype._initArray=function(O,T,S){if(s(typeof O.length=="number"),O.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(O.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var w,_,E=0;if(S==="be")for(x=O.length-1,w=0;x>=0;x-=3)_=O[x]|O[x-1]<<8|O[x-2]<<16,this.words[w]|=_<<E&67108863,this.words[w+1]=_>>>26-E&67108863,(E+=24)>=26&&(E-=26,w++);else if(S==="le")for(x=0,w=0;x<O.length;x+=3)_=O[x]|O[x+1]<<8|O[x+2]<<16,this.words[w]|=_<<E&67108863,this.words[w+1]=_>>>26-E&67108863,(E+=24)>=26&&(E-=26,w++);return this.strip()},c.prototype._parseHex=function(O,T,S){this.length=Math.ceil((O.length-T)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var w,_=0,E=0;if(S==="be")for(x=O.length-1;x>=T;x-=2)w=h(O,T,x)<<_,this.words[E]|=67108863&w,_>=18?(_-=18,E+=1,this.words[E]|=w>>>26):_+=8;else for(x=(O.length-T)%2==0?T+1:T;x<O.length;x+=2)w=h(O,T,x)<<_,this.words[E]|=67108863&w,_>=18?(_-=18,E+=1,this.words[E]|=w>>>26):_+=8;this.strip()},c.prototype._parseBase=function(O,T,S){this.words=[0],this.length=1;for(var x=0,w=1;w<=67108863;w*=T)x++;x--,w=w/T|0;for(var _=O.length-S,E=_%x,R=Math.min(_,_-E)+S,F=0,B=S;B<R;B+=x)F=f(O,B,B+x,T),this.imuln(w),this.words[0]+F<67108864?this.words[0]+=F:this._iaddn(F);if(E!==0){var X=1;for(F=f(O,B,O.length,T),B=0;B<E;B++)X*=T;this.imuln(X),this.words[0]+F<67108864?this.words[0]+=F:this._iaddn(F)}this.strip()},c.prototype.copy=function(O){O.words=new Array(this.length);for(var T=0;T<this.length;T++)O.words[T]=this.words[T];O.length=this.length,O.negative=this.negative,O.red=this.red},c.prototype.clone=function(){var O=new c(null);return this.copy(O),O},c.prototype._expand=function(O){for(;this.length<O;)this.words[this.length++]=0;return this},c.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},c.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(O,T,S){S.negative=T.negative^O.negative;var x=O.length+T.length|0;S.length=x,x=x-1|0;var w=0|O.words[0],_=0|T.words[0],E=w*_,R=67108863&E,F=E/67108864|0;S.words[0]=R;for(var B=1;B<x;B++){for(var X=F>>>26,K=67108863&F,te=Math.min(B,T.length-1),$=Math.max(0,B-O.length+1);$<=te;$++){var q=B-$|0;X+=(E=(w=0|O.words[q])*(_=0|T.words[$])+K)/67108864|0,K=67108863&E}S.words[B]=0|K,F=0|X}return F!==0?S.words[B]=0|F:S.length--,S.strip()}c.prototype.toString=function(O,T){var S;if(T=0|T||1,(O=O||10)===16||O==="hex"){S="";for(var x=0,w=0,_=0;_<this.length;_++){var E=this.words[_],R=(16777215&(E<<x|w)).toString(16);S=(w=E>>>24-x&16777215)!=0||_!==this.length-1?g[6-R.length]+R+S:R+S,(x+=2)>=26&&(x-=26,_--)}for(w!==0&&(S=w.toString(16)+S);S.length%T!=0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}if(O===(0|O)&&O>=2&&O<=36){var F=m[O],B=p[O];S="";var X=this.clone();for(X.negative=0;!X.isZero();){var K=X.modn(B).toString(O);S=(X=X.idivn(B)).isZero()?K+S:g[F-K.length]+K+S}for(this.isZero()&&(S="0"+S);S.length%T!=0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}s(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var O=this.words[0];return this.length===2?O+=67108864*this.words[1]:this.length===3&&this.words[2]===1?O+=4503599627370496+67108864*this.words[1]:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-O:O},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(O,T){return s(l!==void 0),this.toArrayLike(l,O,T)},c.prototype.toArray=function(O,T){return this.toArrayLike(Array,O,T)},c.prototype.toArrayLike=function(O,T,S){var x=this.byteLength(),w=S||Math.max(1,x);s(x<=w,"byte array longer than desired length"),s(w>0,"Requested array length <= 0"),this.strip();var _,E,R=T==="le",F=new O(w),B=this.clone();if(R){for(E=0;!B.isZero();E++)_=B.andln(255),B.iushrn(8),F[E]=_;for(;E<w;E++)F[E]=0}else{for(E=0;E<w-x;E++)F[E]=0;for(E=0;!B.isZero();E++)_=B.andln(255),B.iushrn(8),F[w-E-1]=_}return F},Math.clz32?c.prototype._countBits=function(O){return 32-Math.clz32(O)}:c.prototype._countBits=function(O){var T=O,S=0;return T>=4096&&(S+=13,T>>>=13),T>=64&&(S+=7,T>>>=7),T>=8&&(S+=4,T>>>=4),T>=2&&(S+=2,T>>>=2),S+T},c.prototype._zeroBits=function(O){if(O===0)return 26;var T=O,S=0;return(8191&T)==0&&(S+=13,T>>>=13),(127&T)==0&&(S+=7,T>>>=7),(15&T)==0&&(S+=4,T>>>=4),(3&T)==0&&(S+=2,T>>>=2),(1&T)==0&&S++,S},c.prototype.bitLength=function(){var O=this.words[this.length-1],T=this._countBits(O);return 26*(this.length-1)+T},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var O=0,T=0;T<this.length;T++){var S=this._zeroBits(this.words[T]);if(O+=S,S!==26)break}return O},c.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},c.prototype.toTwos=function(O){return this.negative!==0?this.abs().inotn(O).iaddn(1):this.clone()},c.prototype.fromTwos=function(O){return this.testn(O-1)?this.notn(O).iaddn(1).ineg():this.clone()},c.prototype.isNeg=function(){return this.negative!==0},c.prototype.neg=function(){return this.clone().ineg()},c.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},c.prototype.iuor=function(O){for(;this.length<O.length;)this.words[this.length++]=0;for(var T=0;T<O.length;T++)this.words[T]=this.words[T]|O.words[T];return this.strip()},c.prototype.ior=function(O){return s((this.negative|O.negative)==0),this.iuor(O)},c.prototype.or=function(O){return this.length>O.length?this.clone().ior(O):O.clone().ior(this)},c.prototype.uor=function(O){return this.length>O.length?this.clone().iuor(O):O.clone().iuor(this)},c.prototype.iuand=function(O){var T;T=this.length>O.length?O:this;for(var S=0;S<T.length;S++)this.words[S]=this.words[S]&O.words[S];return this.length=T.length,this.strip()},c.prototype.iand=function(O){return s((this.negative|O.negative)==0),this.iuand(O)},c.prototype.and=function(O){return this.length>O.length?this.clone().iand(O):O.clone().iand(this)},c.prototype.uand=function(O){return this.length>O.length?this.clone().iuand(O):O.clone().iuand(this)},c.prototype.iuxor=function(O){var T,S;this.length>O.length?(T=this,S=O):(T=O,S=this);for(var x=0;x<S.length;x++)this.words[x]=T.words[x]^S.words[x];if(this!==T)for(;x<T.length;x++)this.words[x]=T.words[x];return this.length=T.length,this.strip()},c.prototype.ixor=function(O){return s((this.negative|O.negative)==0),this.iuxor(O)},c.prototype.xor=function(O){return this.length>O.length?this.clone().ixor(O):O.clone().ixor(this)},c.prototype.uxor=function(O){return this.length>O.length?this.clone().iuxor(O):O.clone().iuxor(this)},c.prototype.inotn=function(O){s(typeof O=="number"&&O>=0);var T=0|Math.ceil(O/26),S=O%26;this._expand(T),S>0&&T--;for(var x=0;x<T;x++)this.words[x]=67108863&~this.words[x];return S>0&&(this.words[x]=~this.words[x]&67108863>>26-S),this.strip()},c.prototype.notn=function(O){return this.clone().inotn(O)},c.prototype.setn=function(O,T){s(typeof O=="number"&&O>=0);var S=O/26|0,x=O%26;return this._expand(S+1),this.words[S]=T?this.words[S]|1<<x:this.words[S]&~(1<<x),this.strip()},c.prototype.iadd=function(O){var T,S,x;if(this.negative!==0&&O.negative===0)return this.negative=0,T=this.isub(O),this.negative^=1,this._normSign();if(this.negative===0&&O.negative!==0)return O.negative=0,T=this.isub(O),O.negative=1,T._normSign();this.length>O.length?(S=this,x=O):(S=O,x=this);for(var w=0,_=0;_<x.length;_++)T=(0|S.words[_])+(0|x.words[_])+w,this.words[_]=67108863&T,w=T>>>26;for(;w!==0&&_<S.length;_++)T=(0|S.words[_])+w,this.words[_]=67108863&T,w=T>>>26;if(this.length=S.length,w!==0)this.words[this.length]=w,this.length++;else if(S!==this)for(;_<S.length;_++)this.words[_]=S.words[_];return this},c.prototype.add=function(O){var T;return O.negative!==0&&this.negative===0?(O.negative=0,T=this.sub(O),O.negative^=1,T):O.negative===0&&this.negative!==0?(this.negative=0,T=O.sub(this),this.negative=1,T):this.length>O.length?this.clone().iadd(O):O.clone().iadd(this)},c.prototype.isub=function(O){if(O.negative!==0){O.negative=0;var T=this.iadd(O);return O.negative=1,T._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(O),this.negative=1,this._normSign();var S,x,w=this.cmp(O);if(w===0)return this.negative=0,this.length=1,this.words[0]=0,this;w>0?(S=this,x=O):(S=O,x=this);for(var _=0,E=0;E<x.length;E++)_=(T=(0|S.words[E])-(0|x.words[E])+_)>>26,this.words[E]=67108863&T;for(;_!==0&&E<S.length;E++)_=(T=(0|S.words[E])+_)>>26,this.words[E]=67108863&T;if(_===0&&E<S.length&&S!==this)for(;E<S.length;E++)this.words[E]=S.words[E];return this.length=Math.max(this.length,E),S!==this&&(this.negative=1),this.strip()},c.prototype.sub=function(O){return this.clone().isub(O)};var v=function(O,T,S){var x,w,_,E=O.words,R=T.words,F=S.words,B=0,X=0|E[0],K=8191&X,te=X>>>13,$=0|E[1],q=8191&$,k=$>>>13,L=0|E[2],V=8191&L,J=L>>>13,re=0|E[3],ae=8191&re,j=re>>>13,ue=0|E[4],Q=8191&ue,P=ue>>>13,H=0|E[5],Z=8191&H,oe=H>>>13,ce=0|E[6],ne=8191&ce,se=ce>>>13,fe=0|E[7],de=8191&fe,ve=fe>>>13,Ee=0|E[8],Se=8191&Ee,Ne=Ee>>>13,He=0|E[9],qe=8191&He,et=He>>>13,Ue=0|R[0],Ge=8191&Ue,tt=Ue>>>13,rt=0|R[1],lt=8191&rt,Ft=rt>>>13,Wt=0|R[2],dt=8191&Wt,Pt=Wt>>>13,xt=0|R[3],gt=8191&xt,hr=xt>>>13,nr=0|R[4],Tt=8191&nr,Kt=nr>>>13,rr=0|R[5],Ct=8191&rr,ir=rr>>>13,ar=0|R[6],kt=8191&ar,Ae=ar>>>13,Ie=0|R[7],je=8191&Ie,at=Ie>>>13,_t=0|R[8],st=8191&_t,Ot=_t>>>13,At=0|R[9],vt=8191&At,St=At>>>13;S.negative=O.negative^T.negative,S.length=19;var Dt=(B+(x=Math.imul(K,Ge))|0)+((8191&(w=(w=Math.imul(K,tt))+Math.imul(te,Ge)|0))<<13)|0;B=((_=Math.imul(te,tt))+(w>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,x=Math.imul(q,Ge),w=(w=Math.imul(q,tt))+Math.imul(k,Ge)|0,_=Math.imul(k,tt);var Ht=(B+(x=x+Math.imul(K,lt)|0)|0)+((8191&(w=(w=w+Math.imul(K,Ft)|0)+Math.imul(te,lt)|0))<<13)|0;B=((_=_+Math.imul(te,Ft)|0)+(w>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,x=Math.imul(V,Ge),w=(w=Math.imul(V,tt))+Math.imul(J,Ge)|0,_=Math.imul(J,tt),x=x+Math.imul(q,lt)|0,w=(w=w+Math.imul(q,Ft)|0)+Math.imul(k,lt)|0,_=_+Math.imul(k,Ft)|0;var jr=(B+(x=x+Math.imul(K,dt)|0)|0)+((8191&(w=(w=w+Math.imul(K,Pt)|0)+Math.imul(te,dt)|0))<<13)|0;B=((_=_+Math.imul(te,Pt)|0)+(w>>>13)|0)+(jr>>>26)|0,jr&=67108863,x=Math.imul(ae,Ge),w=(w=Math.imul(ae,tt))+Math.imul(j,Ge)|0,_=Math.imul(j,tt),x=x+Math.imul(V,lt)|0,w=(w=w+Math.imul(V,Ft)|0)+Math.imul(J,lt)|0,_=_+Math.imul(J,Ft)|0,x=x+Math.imul(q,dt)|0,w=(w=w+Math.imul(q,Pt)|0)+Math.imul(k,dt)|0,_=_+Math.imul(k,Pt)|0;var gr=(B+(x=x+Math.imul(K,gt)|0)|0)+((8191&(w=(w=w+Math.imul(K,hr)|0)+Math.imul(te,gt)|0))<<13)|0;B=((_=_+Math.imul(te,hr)|0)+(w>>>13)|0)+(gr>>>26)|0,gr&=67108863,x=Math.imul(Q,Ge),w=(w=Math.imul(Q,tt))+Math.imul(P,Ge)|0,_=Math.imul(P,tt),x=x+Math.imul(ae,lt)|0,w=(w=w+Math.imul(ae,Ft)|0)+Math.imul(j,lt)|0,_=_+Math.imul(j,Ft)|0,x=x+Math.imul(V,dt)|0,w=(w=w+Math.imul(V,Pt)|0)+Math.imul(J,dt)|0,_=_+Math.imul(J,Pt)|0,x=x+Math.imul(q,gt)|0,w=(w=w+Math.imul(q,hr)|0)+Math.imul(k,gt)|0,_=_+Math.imul(k,hr)|0;var Pr=(B+(x=x+Math.imul(K,Tt)|0)|0)+((8191&(w=(w=w+Math.imul(K,Kt)|0)+Math.imul(te,Tt)|0))<<13)|0;B=((_=_+Math.imul(te,Kt)|0)+(w>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,x=Math.imul(Z,Ge),w=(w=Math.imul(Z,tt))+Math.imul(oe,Ge)|0,_=Math.imul(oe,tt),x=x+Math.imul(Q,lt)|0,w=(w=w+Math.imul(Q,Ft)|0)+Math.imul(P,lt)|0,_=_+Math.imul(P,Ft)|0,x=x+Math.imul(ae,dt)|0,w=(w=w+Math.imul(ae,Pt)|0)+Math.imul(j,dt)|0,_=_+Math.imul(j,Pt)|0,x=x+Math.imul(V,gt)|0,w=(w=w+Math.imul(V,hr)|0)+Math.imul(J,gt)|0,_=_+Math.imul(J,hr)|0,x=x+Math.imul(q,Tt)|0,w=(w=w+Math.imul(q,Kt)|0)+Math.imul(k,Tt)|0,_=_+Math.imul(k,Kt)|0;var Gr=(B+(x=x+Math.imul(K,Ct)|0)|0)+((8191&(w=(w=w+Math.imul(K,ir)|0)+Math.imul(te,Ct)|0))<<13)|0;B=((_=_+Math.imul(te,ir)|0)+(w>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,x=Math.imul(ne,Ge),w=(w=Math.imul(ne,tt))+Math.imul(se,Ge)|0,_=Math.imul(se,tt),x=x+Math.imul(Z,lt)|0,w=(w=w+Math.imul(Z,Ft)|0)+Math.imul(oe,lt)|0,_=_+Math.imul(oe,Ft)|0,x=x+Math.imul(Q,dt)|0,w=(w=w+Math.imul(Q,Pt)|0)+Math.imul(P,dt)|0,_=_+Math.imul(P,Pt)|0,x=x+Math.imul(ae,gt)|0,w=(w=w+Math.imul(ae,hr)|0)+Math.imul(j,gt)|0,_=_+Math.imul(j,hr)|0,x=x+Math.imul(V,Tt)|0,w=(w=w+Math.imul(V,Kt)|0)+Math.imul(J,Tt)|0,_=_+Math.imul(J,Kt)|0,x=x+Math.imul(q,Ct)|0,w=(w=w+Math.imul(q,ir)|0)+Math.imul(k,Ct)|0,_=_+Math.imul(k,ir)|0;var Xr=(B+(x=x+Math.imul(K,kt)|0)|0)+((8191&(w=(w=w+Math.imul(K,Ae)|0)+Math.imul(te,kt)|0))<<13)|0;B=((_=_+Math.imul(te,Ae)|0)+(w>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,x=Math.imul(de,Ge),w=(w=Math.imul(de,tt))+Math.imul(ve,Ge)|0,_=Math.imul(ve,tt),x=x+Math.imul(ne,lt)|0,w=(w=w+Math.imul(ne,Ft)|0)+Math.imul(se,lt)|0,_=_+Math.imul(se,Ft)|0,x=x+Math.imul(Z,dt)|0,w=(w=w+Math.imul(Z,Pt)|0)+Math.imul(oe,dt)|0,_=_+Math.imul(oe,Pt)|0,x=x+Math.imul(Q,gt)|0,w=(w=w+Math.imul(Q,hr)|0)+Math.imul(P,gt)|0,_=_+Math.imul(P,hr)|0,x=x+Math.imul(ae,Tt)|0,w=(w=w+Math.imul(ae,Kt)|0)+Math.imul(j,Tt)|0,_=_+Math.imul(j,Kt)|0,x=x+Math.imul(V,Ct)|0,w=(w=w+Math.imul(V,ir)|0)+Math.imul(J,Ct)|0,_=_+Math.imul(J,ir)|0,x=x+Math.imul(q,kt)|0,w=(w=w+Math.imul(q,Ae)|0)+Math.imul(k,kt)|0,_=_+Math.imul(k,Ae)|0;var be=(B+(x=x+Math.imul(K,je)|0)|0)+((8191&(w=(w=w+Math.imul(K,at)|0)+Math.imul(te,je)|0))<<13)|0;B=((_=_+Math.imul(te,at)|0)+(w>>>13)|0)+(be>>>26)|0,be&=67108863,x=Math.imul(Se,Ge),w=(w=Math.imul(Se,tt))+Math.imul(Ne,Ge)|0,_=Math.imul(Ne,tt),x=x+Math.imul(de,lt)|0,w=(w=w+Math.imul(de,Ft)|0)+Math.imul(ve,lt)|0,_=_+Math.imul(ve,Ft)|0,x=x+Math.imul(ne,dt)|0,w=(w=w+Math.imul(ne,Pt)|0)+Math.imul(se,dt)|0,_=_+Math.imul(se,Pt)|0,x=x+Math.imul(Z,gt)|0,w=(w=w+Math.imul(Z,hr)|0)+Math.imul(oe,gt)|0,_=_+Math.imul(oe,hr)|0,x=x+Math.imul(Q,Tt)|0,w=(w=w+Math.imul(Q,Kt)|0)+Math.imul(P,Tt)|0,_=_+Math.imul(P,Kt)|0,x=x+Math.imul(ae,Ct)|0,w=(w=w+Math.imul(ae,ir)|0)+Math.imul(j,Ct)|0,_=_+Math.imul(j,ir)|0,x=x+Math.imul(V,kt)|0,w=(w=w+Math.imul(V,Ae)|0)+Math.imul(J,kt)|0,_=_+Math.imul(J,Ae)|0,x=x+Math.imul(q,je)|0,w=(w=w+Math.imul(q,at)|0)+Math.imul(k,je)|0,_=_+Math.imul(k,at)|0;var Re=(B+(x=x+Math.imul(K,st)|0)|0)+((8191&(w=(w=w+Math.imul(K,Ot)|0)+Math.imul(te,st)|0))<<13)|0;B=((_=_+Math.imul(te,Ot)|0)+(w>>>13)|0)+(Re>>>26)|0,Re&=67108863,x=Math.imul(qe,Ge),w=(w=Math.imul(qe,tt))+Math.imul(et,Ge)|0,_=Math.imul(et,tt),x=x+Math.imul(Se,lt)|0,w=(w=w+Math.imul(Se,Ft)|0)+Math.imul(Ne,lt)|0,_=_+Math.imul(Ne,Ft)|0,x=x+Math.imul(de,dt)|0,w=(w=w+Math.imul(de,Pt)|0)+Math.imul(ve,dt)|0,_=_+Math.imul(ve,Pt)|0,x=x+Math.imul(ne,gt)|0,w=(w=w+Math.imul(ne,hr)|0)+Math.imul(se,gt)|0,_=_+Math.imul(se,hr)|0,x=x+Math.imul(Z,Tt)|0,w=(w=w+Math.imul(Z,Kt)|0)+Math.imul(oe,Tt)|0,_=_+Math.imul(oe,Kt)|0,x=x+Math.imul(Q,Ct)|0,w=(w=w+Math.imul(Q,ir)|0)+Math.imul(P,Ct)|0,_=_+Math.imul(P,ir)|0,x=x+Math.imul(ae,kt)|0,w=(w=w+Math.imul(ae,Ae)|0)+Math.imul(j,kt)|0,_=_+Math.imul(j,Ae)|0,x=x+Math.imul(V,je)|0,w=(w=w+Math.imul(V,at)|0)+Math.imul(J,je)|0,_=_+Math.imul(J,at)|0,x=x+Math.imul(q,st)|0,w=(w=w+Math.imul(q,Ot)|0)+Math.imul(k,st)|0,_=_+Math.imul(k,Ot)|0;var We=(B+(x=x+Math.imul(K,vt)|0)|0)+((8191&(w=(w=w+Math.imul(K,St)|0)+Math.imul(te,vt)|0))<<13)|0;B=((_=_+Math.imul(te,St)|0)+(w>>>13)|0)+(We>>>26)|0,We&=67108863,x=Math.imul(qe,lt),w=(w=Math.imul(qe,Ft))+Math.imul(et,lt)|0,_=Math.imul(et,Ft),x=x+Math.imul(Se,dt)|0,w=(w=w+Math.imul(Se,Pt)|0)+Math.imul(Ne,dt)|0,_=_+Math.imul(Ne,Pt)|0,x=x+Math.imul(de,gt)|0,w=(w=w+Math.imul(de,hr)|0)+Math.imul(ve,gt)|0,_=_+Math.imul(ve,hr)|0,x=x+Math.imul(ne,Tt)|0,w=(w=w+Math.imul(ne,Kt)|0)+Math.imul(se,Tt)|0,_=_+Math.imul(se,Kt)|0,x=x+Math.imul(Z,Ct)|0,w=(w=w+Math.imul(Z,ir)|0)+Math.imul(oe,Ct)|0,_=_+Math.imul(oe,ir)|0,x=x+Math.imul(Q,kt)|0,w=(w=w+Math.imul(Q,Ae)|0)+Math.imul(P,kt)|0,_=_+Math.imul(P,Ae)|0,x=x+Math.imul(ae,je)|0,w=(w=w+Math.imul(ae,at)|0)+Math.imul(j,je)|0,_=_+Math.imul(j,at)|0,x=x+Math.imul(V,st)|0,w=(w=w+Math.imul(V,Ot)|0)+Math.imul(J,st)|0,_=_+Math.imul(J,Ot)|0;var Ze=(B+(x=x+Math.imul(q,vt)|0)|0)+((8191&(w=(w=w+Math.imul(q,St)|0)+Math.imul(k,vt)|0))<<13)|0;B=((_=_+Math.imul(k,St)|0)+(w>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,x=Math.imul(qe,dt),w=(w=Math.imul(qe,Pt))+Math.imul(et,dt)|0,_=Math.imul(et,Pt),x=x+Math.imul(Se,gt)|0,w=(w=w+Math.imul(Se,hr)|0)+Math.imul(Ne,gt)|0,_=_+Math.imul(Ne,hr)|0,x=x+Math.imul(de,Tt)|0,w=(w=w+Math.imul(de,Kt)|0)+Math.imul(ve,Tt)|0,_=_+Math.imul(ve,Kt)|0,x=x+Math.imul(ne,Ct)|0,w=(w=w+Math.imul(ne,ir)|0)+Math.imul(se,Ct)|0,_=_+Math.imul(se,ir)|0,x=x+Math.imul(Z,kt)|0,w=(w=w+Math.imul(Z,Ae)|0)+Math.imul(oe,kt)|0,_=_+Math.imul(oe,Ae)|0,x=x+Math.imul(Q,je)|0,w=(w=w+Math.imul(Q,at)|0)+Math.imul(P,je)|0,_=_+Math.imul(P,at)|0,x=x+Math.imul(ae,st)|0,w=(w=w+Math.imul(ae,Ot)|0)+Math.imul(j,st)|0,_=_+Math.imul(j,Ot)|0;var mt=(B+(x=x+Math.imul(V,vt)|0)|0)+((8191&(w=(w=w+Math.imul(V,St)|0)+Math.imul(J,vt)|0))<<13)|0;B=((_=_+Math.imul(J,St)|0)+(w>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(qe,gt),w=(w=Math.imul(qe,hr))+Math.imul(et,gt)|0,_=Math.imul(et,hr),x=x+Math.imul(Se,Tt)|0,w=(w=w+Math.imul(Se,Kt)|0)+Math.imul(Ne,Tt)|0,_=_+Math.imul(Ne,Kt)|0,x=x+Math.imul(de,Ct)|0,w=(w=w+Math.imul(de,ir)|0)+Math.imul(ve,Ct)|0,_=_+Math.imul(ve,ir)|0,x=x+Math.imul(ne,kt)|0,w=(w=w+Math.imul(ne,Ae)|0)+Math.imul(se,kt)|0,_=_+Math.imul(se,Ae)|0,x=x+Math.imul(Z,je)|0,w=(w=w+Math.imul(Z,at)|0)+Math.imul(oe,je)|0,_=_+Math.imul(oe,at)|0,x=x+Math.imul(Q,st)|0,w=(w=w+Math.imul(Q,Ot)|0)+Math.imul(P,st)|0,_=_+Math.imul(P,Ot)|0;var nt=(B+(x=x+Math.imul(ae,vt)|0)|0)+((8191&(w=(w=w+Math.imul(ae,St)|0)+Math.imul(j,vt)|0))<<13)|0;B=((_=_+Math.imul(j,St)|0)+(w>>>13)|0)+(nt>>>26)|0,nt&=67108863,x=Math.imul(qe,Tt),w=(w=Math.imul(qe,Kt))+Math.imul(et,Tt)|0,_=Math.imul(et,Kt),x=x+Math.imul(Se,Ct)|0,w=(w=w+Math.imul(Se,ir)|0)+Math.imul(Ne,Ct)|0,_=_+Math.imul(Ne,ir)|0,x=x+Math.imul(de,kt)|0,w=(w=w+Math.imul(de,Ae)|0)+Math.imul(ve,kt)|0,_=_+Math.imul(ve,Ae)|0,x=x+Math.imul(ne,je)|0,w=(w=w+Math.imul(ne,at)|0)+Math.imul(se,je)|0,_=_+Math.imul(se,at)|0,x=x+Math.imul(Z,st)|0,w=(w=w+Math.imul(Z,Ot)|0)+Math.imul(oe,st)|0,_=_+Math.imul(oe,Ot)|0;var it=(B+(x=x+Math.imul(Q,vt)|0)|0)+((8191&(w=(w=w+Math.imul(Q,St)|0)+Math.imul(P,vt)|0))<<13)|0;B=((_=_+Math.imul(P,St)|0)+(w>>>13)|0)+(it>>>26)|0,it&=67108863,x=Math.imul(qe,Ct),w=(w=Math.imul(qe,ir))+Math.imul(et,Ct)|0,_=Math.imul(et,ir),x=x+Math.imul(Se,kt)|0,w=(w=w+Math.imul(Se,Ae)|0)+Math.imul(Ne,kt)|0,_=_+Math.imul(Ne,Ae)|0,x=x+Math.imul(de,je)|0,w=(w=w+Math.imul(de,at)|0)+Math.imul(ve,je)|0,_=_+Math.imul(ve,at)|0,x=x+Math.imul(ne,st)|0,w=(w=w+Math.imul(ne,Ot)|0)+Math.imul(se,st)|0,_=_+Math.imul(se,Ot)|0;var $t=(B+(x=x+Math.imul(Z,vt)|0)|0)+((8191&(w=(w=w+Math.imul(Z,St)|0)+Math.imul(oe,vt)|0))<<13)|0;B=((_=_+Math.imul(oe,St)|0)+(w>>>13)|0)+($t>>>26)|0,$t&=67108863,x=Math.imul(qe,kt),w=(w=Math.imul(qe,Ae))+Math.imul(et,kt)|0,_=Math.imul(et,Ae),x=x+Math.imul(Se,je)|0,w=(w=w+Math.imul(Se,at)|0)+Math.imul(Ne,je)|0,_=_+Math.imul(Ne,at)|0,x=x+Math.imul(de,st)|0,w=(w=w+Math.imul(de,Ot)|0)+Math.imul(ve,st)|0,_=_+Math.imul(ve,Ot)|0;var Nt=(B+(x=x+Math.imul(ne,vt)|0)|0)+((8191&(w=(w=w+Math.imul(ne,St)|0)+Math.imul(se,vt)|0))<<13)|0;B=((_=_+Math.imul(se,St)|0)+(w>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,x=Math.imul(qe,je),w=(w=Math.imul(qe,at))+Math.imul(et,je)|0,_=Math.imul(et,at),x=x+Math.imul(Se,st)|0,w=(w=w+Math.imul(Se,Ot)|0)+Math.imul(Ne,st)|0,_=_+Math.imul(Ne,Ot)|0;var Lt=(B+(x=x+Math.imul(de,vt)|0)|0)+((8191&(w=(w=w+Math.imul(de,St)|0)+Math.imul(ve,vt)|0))<<13)|0;B=((_=_+Math.imul(ve,St)|0)+(w>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,x=Math.imul(qe,st),w=(w=Math.imul(qe,Ot))+Math.imul(et,st)|0,_=Math.imul(et,Ot);var Et=(B+(x=x+Math.imul(Se,vt)|0)|0)+((8191&(w=(w=w+Math.imul(Se,St)|0)+Math.imul(Ne,vt)|0))<<13)|0;B=((_=_+Math.imul(Ne,St)|0)+(w>>>13)|0)+(Et>>>26)|0,Et&=67108863;var dr=(B+(x=Math.imul(qe,vt))|0)+((8191&(w=(w=Math.imul(qe,St))+Math.imul(et,vt)|0))<<13)|0;return B=((_=Math.imul(et,St))+(w>>>13)|0)+(dr>>>26)|0,dr&=67108863,F[0]=Dt,F[1]=Ht,F[2]=jr,F[3]=gr,F[4]=Pr,F[5]=Gr,F[6]=Xr,F[7]=be,F[8]=Re,F[9]=We,F[10]=Ze,F[11]=mt,F[12]=nt,F[13]=it,F[14]=$t,F[15]=Nt,F[16]=Lt,F[17]=Et,F[18]=dr,B!==0&&(F[19]=B,S.length++),S};function b(O,T,S){return new A().mulp(O,T,S)}function A(O,T){this.x=O,this.y=T}Math.imul||(v=y),c.prototype.mulTo=function(O,T){var S=this.length+O.length;return this.length===10&&O.length===10?v(this,O,T):S<63?y(this,O,T):S<1024?function(x,w,_){_.negative=w.negative^x.negative,_.length=x.length+w.length;for(var E=0,R=0,F=0;F<_.length-1;F++){var B=R;R=0;for(var X=67108863&E,K=Math.min(F,w.length-1),te=Math.max(0,F-x.length+1);te<=K;te++){var $=F-te,q=(0|x.words[$])*(0|w.words[te]),k=67108863&q;X=67108863&(k=k+X|0),R+=(B=(B=B+(q/67108864|0)|0)+(k>>>26)|0)>>>26,B&=67108863}_.words[F]=X,E=B,B=R}return E!==0?_.words[F]=E:_.length--,_.strip()}(this,O,T):b(this,O,T)},A.prototype.makeRBT=function(O){for(var T=new Array(O),S=c.prototype._countBits(O)-1,x=0;x<O;x++)T[x]=this.revBin(x,S,O);return T},A.prototype.revBin=function(O,T,S){if(O===0||O===S-1)return O;for(var x=0,w=0;w<T;w++)x|=(1&O)<<T-w-1,O>>=1;return x},A.prototype.permute=function(O,T,S,x,w,_){for(var E=0;E<_;E++)x[E]=T[O[E]],w[E]=S[O[E]]},A.prototype.transform=function(O,T,S,x,w,_){this.permute(_,O,T,S,x,w);for(var E=1;E<w;E<<=1)for(var R=E<<1,F=Math.cos(2*Math.PI/R),B=Math.sin(2*Math.PI/R),X=0;X<w;X+=R)for(var K=F,te=B,$=0;$<E;$++){var q=S[X+$],k=x[X+$],L=S[X+$+E],V=x[X+$+E],J=K*L-te*V;V=K*V+te*L,L=J,S[X+$]=q+L,x[X+$]=k+V,S[X+$+E]=q-L,x[X+$+E]=k-V,$!==R&&(J=F*K-B*te,te=F*te+B*K,K=J)}},A.prototype.guessLen13b=function(O,T){var S=1|Math.max(T,O),x=1&S,w=0;for(S=S/2|0;S;S>>>=1)w++;return 1<<w+1+x},A.prototype.conjugate=function(O,T,S){if(!(S<=1))for(var x=0;x<S/2;x++){var w=O[x];O[x]=O[S-x-1],O[S-x-1]=w,w=T[x],T[x]=-T[S-x-1],T[S-x-1]=-w}},A.prototype.normalize13b=function(O,T){for(var S=0,x=0;x<T/2;x++){var w=8192*Math.round(O[2*x+1]/T)+Math.round(O[2*x]/T)+S;O[x]=67108863&w,S=w<67108864?0:w/67108864|0}return O},A.prototype.convert13b=function(O,T,S,x){for(var w=0,_=0;_<T;_++)w+=0|O[_],S[2*_]=8191&w,w>>>=13,S[2*_+1]=8191&w,w>>>=13;for(_=2*T;_<x;++_)S[_]=0;s(w===0),s((-8192&w)==0)},A.prototype.stub=function(O){for(var T=new Array(O),S=0;S<O;S++)T[S]=0;return T},A.prototype.mulp=function(O,T,S){var x=2*this.guessLen13b(O.length,T.length),w=this.makeRBT(x),_=this.stub(x),E=new Array(x),R=new Array(x),F=new Array(x),B=new Array(x),X=new Array(x),K=new Array(x),te=S.words;te.length=x,this.convert13b(O.words,O.length,E,x),this.convert13b(T.words,T.length,B,x),this.transform(E,_,R,F,x,w),this.transform(B,_,X,K,x,w);for(var $=0;$<x;$++){var q=R[$]*X[$]-F[$]*K[$];F[$]=R[$]*K[$]+F[$]*X[$],R[$]=q}return this.conjugate(R,F,x),this.transform(R,F,te,_,x,w),this.conjugate(te,_,x),this.normalize13b(te,x),S.negative=O.negative^T.negative,S.length=O.length+T.length,S.strip()},c.prototype.mul=function(O){var T=new c(null);return T.words=new Array(this.length+O.length),this.mulTo(O,T)},c.prototype.mulf=function(O){var T=new c(null);return T.words=new Array(this.length+O.length),b(this,O,T)},c.prototype.imul=function(O){return this.clone().mulTo(O,this)},c.prototype.imuln=function(O){s(typeof O=="number"),s(O<67108864);for(var T=0,S=0;S<this.length;S++){var x=(0|this.words[S])*O,w=(67108863&x)+(67108863&T);T>>=26,T+=x/67108864|0,T+=w>>>26,this.words[S]=67108863&w}return T!==0&&(this.words[S]=T,this.length++),this},c.prototype.muln=function(O){return this.clone().imuln(O)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(O){var T=function(_){for(var E=new Array(_.bitLength()),R=0;R<E.length;R++){var F=R/26|0,B=R%26;E[R]=(_.words[F]&1<<B)>>>B}return E}(O);if(T.length===0)return new c(1);for(var S=this,x=0;x<T.length&&T[x]===0;x++,S=S.sqr());if(++x<T.length)for(var w=S.sqr();x<T.length;x++,w=w.sqr())T[x]!==0&&(S=S.mul(w));return S},c.prototype.iushln=function(O){s(typeof O=="number"&&O>=0);var T,S=O%26,x=(O-S)/26,w=67108863>>>26-S<<26-S;if(S!==0){var _=0;for(T=0;T<this.length;T++){var E=this.words[T]&w,R=(0|this.words[T])-E<<S;this.words[T]=R|_,_=E>>>26-S}_&&(this.words[T]=_,this.length++)}if(x!==0){for(T=this.length-1;T>=0;T--)this.words[T+x]=this.words[T];for(T=0;T<x;T++)this.words[T]=0;this.length+=x}return this.strip()},c.prototype.ishln=function(O){return s(this.negative===0),this.iushln(O)},c.prototype.iushrn=function(O,T,S){var x;s(typeof O=="number"&&O>=0),x=T?(T-T%26)/26:0;var w=O%26,_=Math.min((O-w)/26,this.length),E=67108863^67108863>>>w<<w,R=S;if(x-=_,x=Math.max(0,x),R){for(var F=0;F<_;F++)R.words[F]=this.words[F];R.length=_}if(_!==0)if(this.length>_)for(this.length-=_,F=0;F<this.length;F++)this.words[F]=this.words[F+_];else this.words[0]=0,this.length=1;var B=0;for(F=this.length-1;F>=0&&(B!==0||F>=x);F--){var X=0|this.words[F];this.words[F]=B<<26-w|X>>>w,B=X&E}return R&&B!==0&&(R.words[R.length++]=B),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(O,T,S){return s(this.negative===0),this.iushrn(O,T,S)},c.prototype.shln=function(O){return this.clone().ishln(O)},c.prototype.ushln=function(O){return this.clone().iushln(O)},c.prototype.shrn=function(O){return this.clone().ishrn(O)},c.prototype.ushrn=function(O){return this.clone().iushrn(O)},c.prototype.testn=function(O){s(typeof O=="number"&&O>=0);var T=O%26,S=(O-T)/26,x=1<<T;return!(this.length<=S)&&!!(this.words[S]&x)},c.prototype.imaskn=function(O){s(typeof O=="number"&&O>=0);var T=O%26,S=(O-T)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=S)return this;if(T!==0&&S++,this.length=Math.min(S,this.length),T!==0){var x=67108863^67108863>>>T<<T;this.words[this.length-1]&=x}return this.strip()},c.prototype.maskn=function(O){return this.clone().imaskn(O)},c.prototype.iaddn=function(O){return s(typeof O=="number"),s(O<67108864),O<0?this.isubn(-O):this.negative!==0?this.length===1&&(0|this.words[0])<O?(this.words[0]=O-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(O),this.negative=1,this):this._iaddn(O)},c.prototype._iaddn=function(O){this.words[0]+=O;for(var T=0;T<this.length&&this.words[T]>=67108864;T++)this.words[T]-=67108864,T===this.length-1?this.words[T+1]=1:this.words[T+1]++;return this.length=Math.max(this.length,T+1),this},c.prototype.isubn=function(O){if(s(typeof O=="number"),s(O<67108864),O<0)return this.iaddn(-O);if(this.negative!==0)return this.negative=0,this.iaddn(O),this.negative=1,this;if(this.words[0]-=O,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T=0;T<this.length&&this.words[T]<0;T++)this.words[T]+=67108864,this.words[T+1]-=1;return this.strip()},c.prototype.addn=function(O){return this.clone().iaddn(O)},c.prototype.subn=function(O){return this.clone().isubn(O)},c.prototype.iabs=function(){return this.negative=0,this},c.prototype.abs=function(){return this.clone().iabs()},c.prototype._ishlnsubmul=function(O,T,S){var x,w,_=O.length+S;this._expand(_);var E=0;for(x=0;x<O.length;x++){w=(0|this.words[x+S])+E;var R=(0|O.words[x])*T;E=((w-=67108863&R)>>26)-(R/67108864|0),this.words[x+S]=67108863&w}for(;x<this.length-S;x++)E=(w=(0|this.words[x+S])+E)>>26,this.words[x+S]=67108863&w;if(E===0)return this.strip();for(s(E===-1),E=0,x=0;x<this.length;x++)E=(w=-(0|this.words[x])+E)>>26,this.words[x]=67108863&w;return this.negative=1,this.strip()},c.prototype._wordDiv=function(O,T){var S=(this.length,O.length),x=this.clone(),w=O,_=0|w.words[w.length-1];(S=26-this._countBits(_))!=0&&(w=w.ushln(S),x.iushln(S),_=0|w.words[w.length-1]);var E,R=x.length-w.length;if(T!=="mod"){(E=new c(null)).length=R+1,E.words=new Array(E.length);for(var F=0;F<E.length;F++)E.words[F]=0}var B=x.clone()._ishlnsubmul(w,1,R);B.negative===0&&(x=B,E&&(E.words[R]=1));for(var X=R-1;X>=0;X--){var K=67108864*(0|x.words[w.length+X])+(0|x.words[w.length+X-1]);for(K=Math.min(K/_|0,67108863),x._ishlnsubmul(w,K,X);x.negative!==0;)K--,x.negative=0,x._ishlnsubmul(w,1,X),x.isZero()||(x.negative^=1);E&&(E.words[X]=K)}return E&&E.strip(),x.strip(),T!=="div"&&S!==0&&x.iushrn(S),{div:E||null,mod:x}},c.prototype.divmod=function(O,T,S){return s(!O.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:this.negative!==0&&O.negative===0?(_=this.neg().divmod(O,T),T!=="mod"&&(x=_.div.neg()),T!=="div"&&(w=_.mod.neg(),S&&w.negative!==0&&w.iadd(O)),{div:x,mod:w}):this.negative===0&&O.negative!==0?(_=this.divmod(O.neg(),T),T!=="mod"&&(x=_.div.neg()),{div:x,mod:_.mod}):(this.negative&O.negative)!=0?(_=this.neg().divmod(O.neg(),T),T!=="div"&&(w=_.mod.neg(),S&&w.negative!==0&&w.isub(O)),{div:_.div,mod:w}):O.length>this.length||this.cmp(O)<0?{div:new c(0),mod:this}:O.length===1?T==="div"?{div:this.divn(O.words[0]),mod:null}:T==="mod"?{div:null,mod:new c(this.modn(O.words[0]))}:{div:this.divn(O.words[0]),mod:new c(this.modn(O.words[0]))}:this._wordDiv(O,T);var x,w,_},c.prototype.div=function(O){return this.divmod(O,"div",!1).div},c.prototype.mod=function(O){return this.divmod(O,"mod",!1).mod},c.prototype.umod=function(O){return this.divmod(O,"mod",!0).mod},c.prototype.divRound=function(O){var T=this.divmod(O);if(T.mod.isZero())return T.div;var S=T.div.negative!==0?T.mod.isub(O):T.mod,x=O.ushrn(1),w=O.andln(1),_=S.cmp(x);return _<0||w===1&&_===0?T.div:T.div.negative!==0?T.div.isubn(1):T.div.iaddn(1)},c.prototype.modn=function(O){s(O<=67108863);for(var T=(1<<26)%O,S=0,x=this.length-1;x>=0;x--)S=(T*S+(0|this.words[x]))%O;return S},c.prototype.idivn=function(O){s(O<=67108863);for(var T=0,S=this.length-1;S>=0;S--){var x=(0|this.words[S])+67108864*T;this.words[S]=x/O|0,T=x%O}return this.strip()},c.prototype.divn=function(O){return this.clone().idivn(O)},c.prototype.egcd=function(O){s(O.negative===0),s(!O.isZero());var T=this,S=O.clone();T=T.negative!==0?T.umod(O):T.clone();for(var x=new c(1),w=new c(0),_=new c(0),E=new c(1),R=0;T.isEven()&&S.isEven();)T.iushrn(1),S.iushrn(1),++R;for(var F=S.clone(),B=T.clone();!T.isZero();){for(var X=0,K=1;(T.words[0]&K)==0&&X<26;++X,K<<=1);if(X>0)for(T.iushrn(X);X-- >0;)(x.isOdd()||w.isOdd())&&(x.iadd(F),w.isub(B)),x.iushrn(1),w.iushrn(1);for(var te=0,$=1;(S.words[0]&$)==0&&te<26;++te,$<<=1);if(te>0)for(S.iushrn(te);te-- >0;)(_.isOdd()||E.isOdd())&&(_.iadd(F),E.isub(B)),_.iushrn(1),E.iushrn(1);T.cmp(S)>=0?(T.isub(S),x.isub(_),w.isub(E)):(S.isub(T),_.isub(x),E.isub(w))}return{a:_,b:E,gcd:S.iushln(R)}},c.prototype._invmp=function(O){s(O.negative===0),s(!O.isZero());var T=this,S=O.clone();T=T.negative!==0?T.umod(O):T.clone();for(var x,w=new c(1),_=new c(0),E=S.clone();T.cmpn(1)>0&&S.cmpn(1)>0;){for(var R=0,F=1;(T.words[0]&F)==0&&R<26;++R,F<<=1);if(R>0)for(T.iushrn(R);R-- >0;)w.isOdd()&&w.iadd(E),w.iushrn(1);for(var B=0,X=1;(S.words[0]&X)==0&&B<26;++B,X<<=1);if(B>0)for(S.iushrn(B);B-- >0;)_.isOdd()&&_.iadd(E),_.iushrn(1);T.cmp(S)>=0?(T.isub(S),w.isub(_)):(S.isub(T),_.isub(w))}return(x=T.cmpn(1)===0?w:_).cmpn(0)<0&&x.iadd(O),x},c.prototype.gcd=function(O){if(this.isZero())return O.abs();if(O.isZero())return this.abs();var T=this.clone(),S=O.clone();T.negative=0,S.negative=0;for(var x=0;T.isEven()&&S.isEven();x++)T.iushrn(1),S.iushrn(1);for(;;){for(;T.isEven();)T.iushrn(1);for(;S.isEven();)S.iushrn(1);var w=T.cmp(S);if(w<0){var _=T;T=S,S=_}else if(w===0||S.cmpn(1)===0)break;T.isub(S)}return S.iushln(x)},c.prototype.invm=function(O){return this.egcd(O).a.umod(O)},c.prototype.isEven=function(){return(1&this.words[0])==0},c.prototype.isOdd=function(){return(1&this.words[0])==1},c.prototype.andln=function(O){return this.words[0]&O},c.prototype.bincn=function(O){s(typeof O=="number");var T=O%26,S=(O-T)/26,x=1<<T;if(this.length<=S)return this._expand(S+1),this.words[S]|=x,this;for(var w=x,_=S;w!==0&&_<this.length;_++){var E=0|this.words[_];w=(E+=w)>>>26,E&=67108863,this.words[_]=E}return w!==0&&(this.words[_]=w,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(O){var T,S=O<0;if(this.negative!==0&&!S)return-1;if(this.negative===0&&S)return 1;if(this.strip(),this.length>1)T=1;else{S&&(O=-O),s(O<=67108863,"Number is too big");var x=0|this.words[0];T=x===O?0:x<O?-1:1}return this.negative!==0?0|-T:T},c.prototype.cmp=function(O){if(this.negative!==0&&O.negative===0)return-1;if(this.negative===0&&O.negative!==0)return 1;var T=this.ucmp(O);return this.negative!==0?0|-T:T},c.prototype.ucmp=function(O){if(this.length>O.length)return 1;if(this.length<O.length)return-1;for(var T=0,S=this.length-1;S>=0;S--){var x=0|this.words[S],w=0|O.words[S];if(x!==w){x<w?T=-1:x>w&&(T=1);break}}return T},c.prototype.gtn=function(O){return this.cmpn(O)===1},c.prototype.gt=function(O){return this.cmp(O)===1},c.prototype.gten=function(O){return this.cmpn(O)>=0},c.prototype.gte=function(O){return this.cmp(O)>=0},c.prototype.ltn=function(O){return this.cmpn(O)===-1},c.prototype.lt=function(O){return this.cmp(O)===-1},c.prototype.lten=function(O){return this.cmpn(O)<=0},c.prototype.lte=function(O){return this.cmp(O)<=0},c.prototype.eqn=function(O){return this.cmpn(O)===0},c.prototype.eq=function(O){return this.cmp(O)===0},c.red=function(O){return new ee(O)},c.prototype.toRed=function(O){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),O.convertTo(this)._forceRed(O)},c.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(O){return this.red=O,this},c.prototype.forceRed=function(O){return s(!this.red,"Already a number in reduction context"),this._forceRed(O)},c.prototype.redAdd=function(O){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,O)},c.prototype.redIAdd=function(O){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,O)},c.prototype.redSub=function(O){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,O)},c.prototype.redISub=function(O){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,O)},c.prototype.redShl=function(O){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,O)},c.prototype.redMul=function(O){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,O),this.red.mul(this,O)},c.prototype.redIMul=function(O){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,O),this.red.imul(this,O)},c.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(O){return s(this.red&&!O.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,O)};var C={k256:null,p224:null,p192:null,p25519:null};function M(O,T){this.name=O,this.p=new c(T,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function z(){M.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){M.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function U(){M.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function G(){M.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ee(O){if(typeof O=="string"){var T=c._prime(O);this.m=T.p,this.prime=T}else s(O.gtn(1),"modulus must be greater than 1"),this.m=O,this.prime=null}function I(O){ee.call(this,O),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}M.prototype._tmp=function(){var O=new c(null);return O.words=new Array(Math.ceil(this.n/13)),O},M.prototype.ireduce=function(O){var T,S=O;do this.split(S,this.tmp),T=(S=(S=this.imulK(S)).iadd(this.tmp)).bitLength();while(T>this.n);var x=T<this.n?-1:S.ucmp(this.p);return x===0?(S.words[0]=0,S.length=1):x>0?S.isub(this.p):S.strip!==void 0?S.strip():S._strip(),S},M.prototype.split=function(O,T){O.iushrn(this.n,0,T)},M.prototype.imulK=function(O){return O.imul(this.k)},u(z,M),z.prototype.split=function(O,T){for(var S=Math.min(O.length,9),x=0;x<S;x++)T.words[x]=O.words[x];if(T.length=S,O.length<=9)return O.words[0]=0,void(O.length=1);var w=O.words[9];for(T.words[T.length++]=4194303&w,x=10;x<O.length;x++){var _=0|O.words[x];O.words[x-10]=(4194303&_)<<4|w>>>22,w=_}w>>>=22,O.words[x-10]=w,w===0&&O.length>10?O.length-=10:O.length-=9},z.prototype.imulK=function(O){O.words[O.length]=0,O.words[O.length+1]=0,O.length+=2;for(var T=0,S=0;S<O.length;S++){var x=0|O.words[S];T+=977*x,O.words[S]=67108863&T,T=64*x+(T/67108864|0)}return O.words[O.length-1]===0&&(O.length--,O.words[O.length-1]===0&&O.length--),O},u(W,M),u(U,M),u(G,M),G.prototype.imulK=function(O){for(var T=0,S=0;S<O.length;S++){var x=19*(0|O.words[S])+T,w=67108863&x;x>>>=26,O.words[S]=w,T=x}return T!==0&&(O.words[O.length++]=T),O},c._prime=function(O){if(C[O])return C[O];var T;if(O==="k256")T=new z;else if(O==="p224")T=new W;else if(O==="p192")T=new U;else{if(O!=="p25519")throw new Error("Unknown prime "+O);T=new G}return C[O]=T,T},ee.prototype._verify1=function(O){s(O.negative===0,"red works only with positives"),s(O.red,"red works only with red numbers")},ee.prototype._verify2=function(O,T){s((O.negative|T.negative)==0,"red works only with positives"),s(O.red&&O.red===T.red,"red works only with red numbers")},ee.prototype.imod=function(O){return this.prime?this.prime.ireduce(O)._forceRed(this):O.umod(this.m)._forceRed(this)},ee.prototype.neg=function(O){return O.isZero()?O.clone():this.m.sub(O)._forceRed(this)},ee.prototype.add=function(O,T){this._verify2(O,T);var S=O.add(T);return S.cmp(this.m)>=0&&S.isub(this.m),S._forceRed(this)},ee.prototype.iadd=function(O,T){this._verify2(O,T);var S=O.iadd(T);return S.cmp(this.m)>=0&&S.isub(this.m),S},ee.prototype.sub=function(O,T){this._verify2(O,T);var S=O.sub(T);return S.cmpn(0)<0&&S.iadd(this.m),S._forceRed(this)},ee.prototype.isub=function(O,T){this._verify2(O,T);var S=O.isub(T);return S.cmpn(0)<0&&S.iadd(this.m),S},ee.prototype.shl=function(O,T){return this._verify1(O),this.imod(O.ushln(T))},ee.prototype.imul=function(O,T){return this._verify2(O,T),this.imod(O.imul(T))},ee.prototype.mul=function(O,T){return this._verify2(O,T),this.imod(O.mul(T))},ee.prototype.isqr=function(O){return this.imul(O,O.clone())},ee.prototype.sqr=function(O){return this.mul(O,O)},ee.prototype.sqrt=function(O){if(O.isZero())return O.clone();var T=this.m.andln(3);if(s(T%2==1),T===3){var S=this.m.add(new c(1)).iushrn(2);return this.pow(O,S)}for(var x=this.m.subn(1),w=0;!x.isZero()&&x.andln(1)===0;)w++,x.iushrn(1);s(!x.isZero());var _=new c(1).toRed(this),E=_.redNeg(),R=this.m.subn(1).iushrn(1),F=this.m.bitLength();for(F=new c(2*F*F).toRed(this);this.pow(F,R).cmp(E)!==0;)F.redIAdd(E);for(var B=this.pow(F,x),X=this.pow(O,x.addn(1).iushrn(1)),K=this.pow(O,x),te=w;K.cmp(_)!==0;){for(var $=K,q=0;$.cmp(_)!==0;q++)$=$.redSqr();s(q<te);var k=this.pow(B,new c(1).iushln(te-q-1));X=X.redMul(k),B=k.redSqr(),K=K.redMul(B),te=q}return X},ee.prototype.invm=function(O){var T=O._invmp(this.m);return T.negative!==0?(T.negative=0,this.imod(T).redNeg()):this.imod(T)},ee.prototype.pow=function(O,T){if(T.isZero())return new c(1).toRed(this);if(T.cmpn(1)===0)return O.clone();var S=new Array(16);S[0]=new c(1).toRed(this),S[1]=O;for(var x=2;x<S.length;x++)S[x]=this.mul(S[x-1],O);var w=S[0],_=0,E=0,R=T.bitLength()%26;for(R===0&&(R=26),x=T.length-1;x>=0;x--){for(var F=T.words[x],B=R-1;B>=0;B--){var X=F>>B&1;w!==S[0]&&(w=this.sqr(w)),X!==0||_!==0?(_<<=1,_|=X,(++E==4||x===0&&B===0)&&(w=this.mul(w,S[_]),E=0,_=0)):E=0}R=26}return w},ee.prototype.convertTo=function(O){var T=O.umod(this.m);return T===O?T.clone():T},ee.prototype.convertFrom=function(O){var T=O.clone();return T.red=null,T},c.mont=function(O){return new I(O)},u(I,ee),I.prototype.convertTo=function(O){return this.imod(O.ushln(this.shift))},I.prototype.convertFrom=function(O){var T=this.imod(O.mul(this.rinv));return T.red=null,T},I.prototype.imul=function(O,T){if(O.isZero()||T.isZero())return O.words[0]=0,O.length=1,O;var S=O.imul(T),x=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=S.isub(x).iushrn(this.shift),_=w;return w.cmp(this.m)>=0?_=w.isub(this.m):w.cmpn(0)<0&&(_=w.iadd(this.m)),_._forceRed(this)},I.prototype.mul=function(O,T){if(O.isZero()||T.isZero())return new c(0)._forceRed(this);var S=O.mul(T),x=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=S.isub(x).iushrn(this.shift),_=w;return w.cmp(this.m)>=0?_=w.isub(this.m):w.cmpn(0)<0&&(_=w.iadd(this.m)),_._forceRed(this)},I.prototype.invm=function(O){return this.imod(O._invmp(this.m).mul(this.r2))._forceRed(this)}})(n===void 0||n)},{buffer:188}],185:[function(e,n,i){i.byteLength=function(f){var g=d(f),m=g[0],p=g[1];return 3*(m+p)/4-p},i.toByteArray=function(f){var g,m,p=d(f),y=p[0],v=p[1],b=new s(function(M,z,W){return 3*(z+W)/4-W}(0,y,v)),A=0,C=v>0?y-4:y;for(m=0;m<C;m+=4)g=o[f.charCodeAt(m)]<<18|o[f.charCodeAt(m+1)]<<12|o[f.charCodeAt(m+2)]<<6|o[f.charCodeAt(m+3)],b[A++]=g>>16&255,b[A++]=g>>8&255,b[A++]=255&g;return v===2&&(g=o[f.charCodeAt(m)]<<2|o[f.charCodeAt(m+1)]>>4,b[A++]=255&g),v===1&&(g=o[f.charCodeAt(m)]<<10|o[f.charCodeAt(m+1)]<<4|o[f.charCodeAt(m+2)]>>2,b[A++]=g>>8&255,b[A++]=255&g),b},i.fromByteArray=function(f){for(var g,m=f.length,p=m%3,y=[],v=0,b=m-p;v<b;v+=16383)y.push(h(f,v,v+16383>b?b:v+16383));return p===1?(g=f[m-1],y.push(a[g>>2]+a[g<<4&63]+"==")):p===2&&(g=(f[m-2]<<8)+f[m-1],y.push(a[g>>10]+a[g>>4&63]+a[g<<2&63]+"=")),y.join("")};for(var a=[],o=[],s=typeof Uint8Array!="undefined"?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,l=u.length;c<l;++c)a[c]=u[c],o[u.charCodeAt(c)]=c;function d(f){var g=f.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=f.indexOf("=");return m===-1&&(m=g),[m,m===g?0:4-m%4]}function h(f,g,m){for(var p,y,v=[],b=g;b<m;b+=3)p=(f[b]<<16&16711680)+(f[b+1]<<8&65280)+(255&f[b+2]),v.push(a[(y=p)>>18&63]+a[y>>12&63]+a[y>>6&63]+a[63&y]);return v.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],186:[function(e,n,i){(function(a,o){function s(S,x){if(!S)throw new Error(x||"Assertion failed")}function u(S,x){S.super_=x;var w=function(){};w.prototype=x.prototype,S.prototype=new w,S.prototype.constructor=S}function c(S,x,w){if(c.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,S!==null&&(x!=="le"&&x!=="be"||(w=x,x=10),this._init(S||0,x||10,w||"be"))}var l;typeof a=="object"?a.exports=c:(void 0).BN=c,c.BN=c,c.wordSize=26;try{l=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:e("buffer").Buffer}catch{}function d(S,x){var w=S.charCodeAt(x);return w>=48&&w<=57?w-48:w>=65&&w<=70?w-55:w>=97&&w<=102?w-87:void s(!1,"Invalid character in "+S)}function h(S,x,w){var _=d(S,w);return w-1>=x&&(_|=d(S,w-1)<<4),_}function f(S,x,w,_){for(var E=0,R=0,F=Math.min(S.length,w),B=x;B<F;B++){var X=S.charCodeAt(B)-48;E*=_,R=X>=49?X-49+10:X>=17?X-17+10:X,s(X>=0&&R<_,"Invalid character"),E+=R}return E}function g(S,x){S.words=x.words,S.length=x.length,S.negative=x.negative,S.red=x.red}if(c.isBN=function(S){return S instanceof c||S!==null&&typeof S=="object"&&S.constructor.wordSize===c.wordSize&&Array.isArray(S.words)},c.max=function(S,x){return S.cmp(x)>0?S:x},c.min=function(S,x){return S.cmp(x)<0?S:x},c.prototype._init=function(S,x,w){if(typeof S=="number")return this._initNumber(S,x,w);if(typeof S=="object")return this._initArray(S,x,w);x==="hex"&&(x=16),s(x===(0|x)&&x>=2&&x<=36);var _=0;(S=S.toString().replace(/\s+/g,""))[0]==="-"&&(_++,this.negative=1),_<S.length&&(x===16?this._parseHex(S,_,w):(this._parseBase(S,x,_),w==="le"&&this._initArray(this.toArray(),x,w)))},c.prototype._initNumber=function(S,x,w){S<0&&(this.negative=1,S=-S),S<67108864?(this.words=[67108863&S],this.length=1):S<4503599627370496?(this.words=[67108863&S,S/67108864&67108863],this.length=2):(s(S<9007199254740992),this.words=[67108863&S,S/67108864&67108863,1],this.length=3),w==="le"&&this._initArray(this.toArray(),x,w)},c.prototype._initArray=function(S,x,w){if(s(typeof S.length=="number"),S.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(S.length/3),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var E,R,F=0;if(w==="be")for(_=S.length-1,E=0;_>=0;_-=3)R=S[_]|S[_-1]<<8|S[_-2]<<16,this.words[E]|=R<<F&67108863,this.words[E+1]=R>>>26-F&67108863,(F+=24)>=26&&(F-=26,E++);else if(w==="le")for(_=0,E=0;_<S.length;_+=3)R=S[_]|S[_+1]<<8|S[_+2]<<16,this.words[E]|=R<<F&67108863,this.words[E+1]=R>>>26-F&67108863,(F+=24)>=26&&(F-=26,E++);return this._strip()},c.prototype._parseHex=function(S,x,w){this.length=Math.ceil((S.length-x)/6),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var E,R=0,F=0;if(w==="be")for(_=S.length-1;_>=x;_-=2)E=h(S,x,_)<<R,this.words[F]|=67108863&E,R>=18?(R-=18,F+=1,this.words[F]|=E>>>26):R+=8;else for(_=(S.length-x)%2==0?x+1:x;_<S.length;_+=2)E=h(S,x,_)<<R,this.words[F]|=67108863&E,R>=18?(R-=18,F+=1,this.words[F]|=E>>>26):R+=8;this._strip()},c.prototype._parseBase=function(S,x,w){this.words=[0],this.length=1;for(var _=0,E=1;E<=67108863;E*=x)_++;_--,E=E/x|0;for(var R=S.length-w,F=R%_,B=Math.min(R,R-F)+w,X=0,K=w;K<B;K+=_)X=f(S,K,K+_,x),this.imuln(E),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X);if(F!==0){var te=1;for(X=f(S,K,S.length,x),K=0;K<F;K++)te*=x;this.imuln(te),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X)}this._strip()},c.prototype.copy=function(S){S.words=new Array(this.length);for(var x=0;x<this.length;x++)S.words[x]=this.words[x];S.length=this.length,S.negative=this.negative,S.red=this.red},c.prototype._move=function(S){g(S,this)},c.prototype.clone=function(){var S=new c(null);return this.copy(S),S},c.prototype._expand=function(S){for(;this.length<S;)this.words[this.length++]=0;return this},c.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},c.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol!="undefined"&&typeof Symbol.for=="function")try{c.prototype[Symbol.for("nodejs.util.inspect.custom")]=m}catch{c.prototype.inspect=m}else c.prototype.inspect=m;function m(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];c.prototype.toString=function(S,x){var w;if(x=0|x||1,(S=S||10)===16||S==="hex"){w="";for(var _=0,E=0,R=0;R<this.length;R++){var F=this.words[R],B=(16777215&(F<<_|E)).toString(16);E=F>>>24-_&16777215,(_+=2)>=26&&(_-=26,R--),w=E!==0||R!==this.length-1?p[6-B.length]+B+w:B+w}for(E!==0&&(w=E.toString(16)+w);w.length%x!=0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}if(S===(0|S)&&S>=2&&S<=36){var X=y[S],K=v[S];w="";var te=this.clone();for(te.negative=0;!te.isZero();){var $=te.modrn(K).toString(S);w=(te=te.idivn(K)).isZero()?$+w:p[X-$.length]+$+w}for(this.isZero()&&(w="0"+w);w.length%x!=0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}s(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var S=this.words[0];return this.length===2?S+=67108864*this.words[1]:this.length===3&&this.words[2]===1?S+=4503599627370496+67108864*this.words[1]:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-S:S},c.prototype.toJSON=function(){return this.toString(16,2)},l&&(c.prototype.toBuffer=function(S,x){return this.toArrayLike(l,S,x)}),c.prototype.toArray=function(S,x){return this.toArrayLike(Array,S,x)};function b(S,x,w){w.negative=x.negative^S.negative;var _=S.length+x.length|0;w.length=_,_=_-1|0;var E=0|S.words[0],R=0|x.words[0],F=E*R,B=67108863&F,X=F/67108864|0;w.words[0]=B;for(var K=1;K<_;K++){for(var te=X>>>26,$=67108863&X,q=Math.min(K,x.length-1),k=Math.max(0,K-S.length+1);k<=q;k++){var L=K-k|0;te+=(F=(E=0|S.words[L])*(R=0|x.words[k])+$)/67108864|0,$=67108863&F}w.words[K]=0|$,X=0|te}return X!==0?w.words[K]=0|X:w.length--,w._strip()}c.prototype.toArrayLike=function(S,x,w){this._strip();var _=this.byteLength(),E=w||Math.max(1,_);s(_<=E,"byte array longer than desired length"),s(E>0,"Requested array length <= 0");var R=function(F,B){return F.allocUnsafe?F.allocUnsafe(B):new F(B)}(S,E);return this["_toArrayLike"+(x==="le"?"LE":"BE")](R,_),R},c.prototype._toArrayLikeLE=function(S,x){for(var w=0,_=0,E=0,R=0;E<this.length;E++){var F=this.words[E]<<R|_;S[w++]=255&F,w<S.length&&(S[w++]=F>>8&255),w<S.length&&(S[w++]=F>>16&255),R===6?(w<S.length&&(S[w++]=F>>24&255),_=0,R=0):(_=F>>>24,R+=2)}if(w<S.length)for(S[w++]=_;w<S.length;)S[w++]=0},c.prototype._toArrayLikeBE=function(S,x){for(var w=S.length-1,_=0,E=0,R=0;E<this.length;E++){var F=this.words[E]<<R|_;S[w--]=255&F,w>=0&&(S[w--]=F>>8&255),w>=0&&(S[w--]=F>>16&255),R===6?(w>=0&&(S[w--]=F>>24&255),_=0,R=0):(_=F>>>24,R+=2)}if(w>=0)for(S[w--]=_;w>=0;)S[w--]=0},Math.clz32?c.prototype._countBits=function(S){return 32-Math.clz32(S)}:c.prototype._countBits=function(S){var x=S,w=0;return x>=4096&&(w+=13,x>>>=13),x>=64&&(w+=7,x>>>=7),x>=8&&(w+=4,x>>>=4),x>=2&&(w+=2,x>>>=2),w+x},c.prototype._zeroBits=function(S){if(S===0)return 26;var x=S,w=0;return(8191&x)==0&&(w+=13,x>>>=13),(127&x)==0&&(w+=7,x>>>=7),(15&x)==0&&(w+=4,x>>>=4),(3&x)==0&&(w+=2,x>>>=2),(1&x)==0&&w++,w},c.prototype.bitLength=function(){var S=this.words[this.length-1],x=this._countBits(S);return 26*(this.length-1)+x},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var S=0,x=0;x<this.length;x++){var w=this._zeroBits(this.words[x]);if(S+=w,w!==26)break}return S},c.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},c.prototype.toTwos=function(S){return this.negative!==0?this.abs().inotn(S).iaddn(1):this.clone()},c.prototype.fromTwos=function(S){return this.testn(S-1)?this.notn(S).iaddn(1).ineg():this.clone()},c.prototype.isNeg=function(){return this.negative!==0},c.prototype.neg=function(){return this.clone().ineg()},c.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},c.prototype.iuor=function(S){for(;this.length<S.length;)this.words[this.length++]=0;for(var x=0;x<S.length;x++)this.words[x]=this.words[x]|S.words[x];return this._strip()},c.prototype.ior=function(S){return s((this.negative|S.negative)==0),this.iuor(S)},c.prototype.or=function(S){return this.length>S.length?this.clone().ior(S):S.clone().ior(this)},c.prototype.uor=function(S){return this.length>S.length?this.clone().iuor(S):S.clone().iuor(this)},c.prototype.iuand=function(S){var x;x=this.length>S.length?S:this;for(var w=0;w<x.length;w++)this.words[w]=this.words[w]&S.words[w];return this.length=x.length,this._strip()},c.prototype.iand=function(S){return s((this.negative|S.negative)==0),this.iuand(S)},c.prototype.and=function(S){return this.length>S.length?this.clone().iand(S):S.clone().iand(this)},c.prototype.uand=function(S){return this.length>S.length?this.clone().iuand(S):S.clone().iuand(this)},c.prototype.iuxor=function(S){var x,w;this.length>S.length?(x=this,w=S):(x=S,w=this);for(var _=0;_<w.length;_++)this.words[_]=x.words[_]^w.words[_];if(this!==x)for(;_<x.length;_++)this.words[_]=x.words[_];return this.length=x.length,this._strip()},c.prototype.ixor=function(S){return s((this.negative|S.negative)==0),this.iuxor(S)},c.prototype.xor=function(S){return this.length>S.length?this.clone().ixor(S):S.clone().ixor(this)},c.prototype.uxor=function(S){return this.length>S.length?this.clone().iuxor(S):S.clone().iuxor(this)},c.prototype.inotn=function(S){s(typeof S=="number"&&S>=0);var x=0|Math.ceil(S/26),w=S%26;this._expand(x),w>0&&x--;for(var _=0;_<x;_++)this.words[_]=67108863&~this.words[_];return w>0&&(this.words[_]=~this.words[_]&67108863>>26-w),this._strip()},c.prototype.notn=function(S){return this.clone().inotn(S)},c.prototype.setn=function(S,x){s(typeof S=="number"&&S>=0);var w=S/26|0,_=S%26;return this._expand(w+1),this.words[w]=x?this.words[w]|1<<_:this.words[w]&~(1<<_),this._strip()},c.prototype.iadd=function(S){var x,w,_;if(this.negative!==0&&S.negative===0)return this.negative=0,x=this.isub(S),this.negative^=1,this._normSign();if(this.negative===0&&S.negative!==0)return S.negative=0,x=this.isub(S),S.negative=1,x._normSign();this.length>S.length?(w=this,_=S):(w=S,_=this);for(var E=0,R=0;R<_.length;R++)x=(0|w.words[R])+(0|_.words[R])+E,this.words[R]=67108863&x,E=x>>>26;for(;E!==0&&R<w.length;R++)x=(0|w.words[R])+E,this.words[R]=67108863&x,E=x>>>26;if(this.length=w.length,E!==0)this.words[this.length]=E,this.length++;else if(w!==this)for(;R<w.length;R++)this.words[R]=w.words[R];return this},c.prototype.add=function(S){var x;return S.negative!==0&&this.negative===0?(S.negative=0,x=this.sub(S),S.negative^=1,x):S.negative===0&&this.negative!==0?(this.negative=0,x=S.sub(this),this.negative=1,x):this.length>S.length?this.clone().iadd(S):S.clone().iadd(this)},c.prototype.isub=function(S){if(S.negative!==0){S.negative=0;var x=this.iadd(S);return S.negative=1,x._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(S),this.negative=1,this._normSign();var w,_,E=this.cmp(S);if(E===0)return this.negative=0,this.length=1,this.words[0]=0,this;E>0?(w=this,_=S):(w=S,_=this);for(var R=0,F=0;F<_.length;F++)R=(x=(0|w.words[F])-(0|_.words[F])+R)>>26,this.words[F]=67108863&x;for(;R!==0&&F<w.length;F++)R=(x=(0|w.words[F])+R)>>26,this.words[F]=67108863&x;if(R===0&&F<w.length&&w!==this)for(;F<w.length;F++)this.words[F]=w.words[F];return this.length=Math.max(this.length,F),w!==this&&(this.negative=1),this._strip()},c.prototype.sub=function(S){return this.clone().isub(S)};var A=function(S,x,w){var _,E,R,F=S.words,B=x.words,X=w.words,K=0,te=0|F[0],$=8191&te,q=te>>>13,k=0|F[1],L=8191&k,V=k>>>13,J=0|F[2],re=8191&J,ae=J>>>13,j=0|F[3],ue=8191&j,Q=j>>>13,P=0|F[4],H=8191&P,Z=P>>>13,oe=0|F[5],ce=8191&oe,ne=oe>>>13,se=0|F[6],fe=8191&se,de=se>>>13,ve=0|F[7],Ee=8191&ve,Se=ve>>>13,Ne=0|F[8],He=8191&Ne,qe=Ne>>>13,et=0|F[9],Ue=8191&et,Ge=et>>>13,tt=0|B[0],rt=8191&tt,lt=tt>>>13,Ft=0|B[1],Wt=8191&Ft,dt=Ft>>>13,Pt=0|B[2],xt=8191&Pt,gt=Pt>>>13,hr=0|B[3],nr=8191&hr,Tt=hr>>>13,Kt=0|B[4],rr=8191&Kt,Ct=Kt>>>13,ir=0|B[5],ar=8191&ir,kt=ir>>>13,Ae=0|B[6],Ie=8191&Ae,je=Ae>>>13,at=0|B[7],_t=8191&at,st=at>>>13,Ot=0|B[8],At=8191&Ot,vt=Ot>>>13,St=0|B[9],Dt=8191&St,Ht=St>>>13;w.negative=S.negative^x.negative,w.length=19;var jr=(K+(_=Math.imul($,rt))|0)+((8191&(E=(E=Math.imul($,lt))+Math.imul(q,rt)|0))<<13)|0;K=((R=Math.imul(q,lt))+(E>>>13)|0)+(jr>>>26)|0,jr&=67108863,_=Math.imul(L,rt),E=(E=Math.imul(L,lt))+Math.imul(V,rt)|0,R=Math.imul(V,lt);var gr=(K+(_=_+Math.imul($,Wt)|0)|0)+((8191&(E=(E=E+Math.imul($,dt)|0)+Math.imul(q,Wt)|0))<<13)|0;K=((R=R+Math.imul(q,dt)|0)+(E>>>13)|0)+(gr>>>26)|0,gr&=67108863,_=Math.imul(re,rt),E=(E=Math.imul(re,lt))+Math.imul(ae,rt)|0,R=Math.imul(ae,lt),_=_+Math.imul(L,Wt)|0,E=(E=E+Math.imul(L,dt)|0)+Math.imul(V,Wt)|0,R=R+Math.imul(V,dt)|0;var Pr=(K+(_=_+Math.imul($,xt)|0)|0)+((8191&(E=(E=E+Math.imul($,gt)|0)+Math.imul(q,xt)|0))<<13)|0;K=((R=R+Math.imul(q,gt)|0)+(E>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,_=Math.imul(ue,rt),E=(E=Math.imul(ue,lt))+Math.imul(Q,rt)|0,R=Math.imul(Q,lt),_=_+Math.imul(re,Wt)|0,E=(E=E+Math.imul(re,dt)|0)+Math.imul(ae,Wt)|0,R=R+Math.imul(ae,dt)|0,_=_+Math.imul(L,xt)|0,E=(E=E+Math.imul(L,gt)|0)+Math.imul(V,xt)|0,R=R+Math.imul(V,gt)|0;var Gr=(K+(_=_+Math.imul($,nr)|0)|0)+((8191&(E=(E=E+Math.imul($,Tt)|0)+Math.imul(q,nr)|0))<<13)|0;K=((R=R+Math.imul(q,Tt)|0)+(E>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,_=Math.imul(H,rt),E=(E=Math.imul(H,lt))+Math.imul(Z,rt)|0,R=Math.imul(Z,lt),_=_+Math.imul(ue,Wt)|0,E=(E=E+Math.imul(ue,dt)|0)+Math.imul(Q,Wt)|0,R=R+Math.imul(Q,dt)|0,_=_+Math.imul(re,xt)|0,E=(E=E+Math.imul(re,gt)|0)+Math.imul(ae,xt)|0,R=R+Math.imul(ae,gt)|0,_=_+Math.imul(L,nr)|0,E=(E=E+Math.imul(L,Tt)|0)+Math.imul(V,nr)|0,R=R+Math.imul(V,Tt)|0;var Xr=(K+(_=_+Math.imul($,rr)|0)|0)+((8191&(E=(E=E+Math.imul($,Ct)|0)+Math.imul(q,rr)|0))<<13)|0;K=((R=R+Math.imul(q,Ct)|0)+(E>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,_=Math.imul(ce,rt),E=(E=Math.imul(ce,lt))+Math.imul(ne,rt)|0,R=Math.imul(ne,lt),_=_+Math.imul(H,Wt)|0,E=(E=E+Math.imul(H,dt)|0)+Math.imul(Z,Wt)|0,R=R+Math.imul(Z,dt)|0,_=_+Math.imul(ue,xt)|0,E=(E=E+Math.imul(ue,gt)|0)+Math.imul(Q,xt)|0,R=R+Math.imul(Q,gt)|0,_=_+Math.imul(re,nr)|0,E=(E=E+Math.imul(re,Tt)|0)+Math.imul(ae,nr)|0,R=R+Math.imul(ae,Tt)|0,_=_+Math.imul(L,rr)|0,E=(E=E+Math.imul(L,Ct)|0)+Math.imul(V,rr)|0,R=R+Math.imul(V,Ct)|0;var be=(K+(_=_+Math.imul($,ar)|0)|0)+((8191&(E=(E=E+Math.imul($,kt)|0)+Math.imul(q,ar)|0))<<13)|0;K=((R=R+Math.imul(q,kt)|0)+(E>>>13)|0)+(be>>>26)|0,be&=67108863,_=Math.imul(fe,rt),E=(E=Math.imul(fe,lt))+Math.imul(de,rt)|0,R=Math.imul(de,lt),_=_+Math.imul(ce,Wt)|0,E=(E=E+Math.imul(ce,dt)|0)+Math.imul(ne,Wt)|0,R=R+Math.imul(ne,dt)|0,_=_+Math.imul(H,xt)|0,E=(E=E+Math.imul(H,gt)|0)+Math.imul(Z,xt)|0,R=R+Math.imul(Z,gt)|0,_=_+Math.imul(ue,nr)|0,E=(E=E+Math.imul(ue,Tt)|0)+Math.imul(Q,nr)|0,R=R+Math.imul(Q,Tt)|0,_=_+Math.imul(re,rr)|0,E=(E=E+Math.imul(re,Ct)|0)+Math.imul(ae,rr)|0,R=R+Math.imul(ae,Ct)|0,_=_+Math.imul(L,ar)|0,E=(E=E+Math.imul(L,kt)|0)+Math.imul(V,ar)|0,R=R+Math.imul(V,kt)|0;var Re=(K+(_=_+Math.imul($,Ie)|0)|0)+((8191&(E=(E=E+Math.imul($,je)|0)+Math.imul(q,Ie)|0))<<13)|0;K=((R=R+Math.imul(q,je)|0)+(E>>>13)|0)+(Re>>>26)|0,Re&=67108863,_=Math.imul(Ee,rt),E=(E=Math.imul(Ee,lt))+Math.imul(Se,rt)|0,R=Math.imul(Se,lt),_=_+Math.imul(fe,Wt)|0,E=(E=E+Math.imul(fe,dt)|0)+Math.imul(de,Wt)|0,R=R+Math.imul(de,dt)|0,_=_+Math.imul(ce,xt)|0,E=(E=E+Math.imul(ce,gt)|0)+Math.imul(ne,xt)|0,R=R+Math.imul(ne,gt)|0,_=_+Math.imul(H,nr)|0,E=(E=E+Math.imul(H,Tt)|0)+Math.imul(Z,nr)|0,R=R+Math.imul(Z,Tt)|0,_=_+Math.imul(ue,rr)|0,E=(E=E+Math.imul(ue,Ct)|0)+Math.imul(Q,rr)|0,R=R+Math.imul(Q,Ct)|0,_=_+Math.imul(re,ar)|0,E=(E=E+Math.imul(re,kt)|0)+Math.imul(ae,ar)|0,R=R+Math.imul(ae,kt)|0,_=_+Math.imul(L,Ie)|0,E=(E=E+Math.imul(L,je)|0)+Math.imul(V,Ie)|0,R=R+Math.imul(V,je)|0;var We=(K+(_=_+Math.imul($,_t)|0)|0)+((8191&(E=(E=E+Math.imul($,st)|0)+Math.imul(q,_t)|0))<<13)|0;K=((R=R+Math.imul(q,st)|0)+(E>>>13)|0)+(We>>>26)|0,We&=67108863,_=Math.imul(He,rt),E=(E=Math.imul(He,lt))+Math.imul(qe,rt)|0,R=Math.imul(qe,lt),_=_+Math.imul(Ee,Wt)|0,E=(E=E+Math.imul(Ee,dt)|0)+Math.imul(Se,Wt)|0,R=R+Math.imul(Se,dt)|0,_=_+Math.imul(fe,xt)|0,E=(E=E+Math.imul(fe,gt)|0)+Math.imul(de,xt)|0,R=R+Math.imul(de,gt)|0,_=_+Math.imul(ce,nr)|0,E=(E=E+Math.imul(ce,Tt)|0)+Math.imul(ne,nr)|0,R=R+Math.imul(ne,Tt)|0,_=_+Math.imul(H,rr)|0,E=(E=E+Math.imul(H,Ct)|0)+Math.imul(Z,rr)|0,R=R+Math.imul(Z,Ct)|0,_=_+Math.imul(ue,ar)|0,E=(E=E+Math.imul(ue,kt)|0)+Math.imul(Q,ar)|0,R=R+Math.imul(Q,kt)|0,_=_+Math.imul(re,Ie)|0,E=(E=E+Math.imul(re,je)|0)+Math.imul(ae,Ie)|0,R=R+Math.imul(ae,je)|0,_=_+Math.imul(L,_t)|0,E=(E=E+Math.imul(L,st)|0)+Math.imul(V,_t)|0,R=R+Math.imul(V,st)|0;var Ze=(K+(_=_+Math.imul($,At)|0)|0)+((8191&(E=(E=E+Math.imul($,vt)|0)+Math.imul(q,At)|0))<<13)|0;K=((R=R+Math.imul(q,vt)|0)+(E>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,_=Math.imul(Ue,rt),E=(E=Math.imul(Ue,lt))+Math.imul(Ge,rt)|0,R=Math.imul(Ge,lt),_=_+Math.imul(He,Wt)|0,E=(E=E+Math.imul(He,dt)|0)+Math.imul(qe,Wt)|0,R=R+Math.imul(qe,dt)|0,_=_+Math.imul(Ee,xt)|0,E=(E=E+Math.imul(Ee,gt)|0)+Math.imul(Se,xt)|0,R=R+Math.imul(Se,gt)|0,_=_+Math.imul(fe,nr)|0,E=(E=E+Math.imul(fe,Tt)|0)+Math.imul(de,nr)|0,R=R+Math.imul(de,Tt)|0,_=_+Math.imul(ce,rr)|0,E=(E=E+Math.imul(ce,Ct)|0)+Math.imul(ne,rr)|0,R=R+Math.imul(ne,Ct)|0,_=_+Math.imul(H,ar)|0,E=(E=E+Math.imul(H,kt)|0)+Math.imul(Z,ar)|0,R=R+Math.imul(Z,kt)|0,_=_+Math.imul(ue,Ie)|0,E=(E=E+Math.imul(ue,je)|0)+Math.imul(Q,Ie)|0,R=R+Math.imul(Q,je)|0,_=_+Math.imul(re,_t)|0,E=(E=E+Math.imul(re,st)|0)+Math.imul(ae,_t)|0,R=R+Math.imul(ae,st)|0,_=_+Math.imul(L,At)|0,E=(E=E+Math.imul(L,vt)|0)+Math.imul(V,At)|0,R=R+Math.imul(V,vt)|0;var mt=(K+(_=_+Math.imul($,Dt)|0)|0)+((8191&(E=(E=E+Math.imul($,Ht)|0)+Math.imul(q,Dt)|0))<<13)|0;K=((R=R+Math.imul(q,Ht)|0)+(E>>>13)|0)+(mt>>>26)|0,mt&=67108863,_=Math.imul(Ue,Wt),E=(E=Math.imul(Ue,dt))+Math.imul(Ge,Wt)|0,R=Math.imul(Ge,dt),_=_+Math.imul(He,xt)|0,E=(E=E+Math.imul(He,gt)|0)+Math.imul(qe,xt)|0,R=R+Math.imul(qe,gt)|0,_=_+Math.imul(Ee,nr)|0,E=(E=E+Math.imul(Ee,Tt)|0)+Math.imul(Se,nr)|0,R=R+Math.imul(Se,Tt)|0,_=_+Math.imul(fe,rr)|0,E=(E=E+Math.imul(fe,Ct)|0)+Math.imul(de,rr)|0,R=R+Math.imul(de,Ct)|0,_=_+Math.imul(ce,ar)|0,E=(E=E+Math.imul(ce,kt)|0)+Math.imul(ne,ar)|0,R=R+Math.imul(ne,kt)|0,_=_+Math.imul(H,Ie)|0,E=(E=E+Math.imul(H,je)|0)+Math.imul(Z,Ie)|0,R=R+Math.imul(Z,je)|0,_=_+Math.imul(ue,_t)|0,E=(E=E+Math.imul(ue,st)|0)+Math.imul(Q,_t)|0,R=R+Math.imul(Q,st)|0,_=_+Math.imul(re,At)|0,E=(E=E+Math.imul(re,vt)|0)+Math.imul(ae,At)|0,R=R+Math.imul(ae,vt)|0;var nt=(K+(_=_+Math.imul(L,Dt)|0)|0)+((8191&(E=(E=E+Math.imul(L,Ht)|0)+Math.imul(V,Dt)|0))<<13)|0;K=((R=R+Math.imul(V,Ht)|0)+(E>>>13)|0)+(nt>>>26)|0,nt&=67108863,_=Math.imul(Ue,xt),E=(E=Math.imul(Ue,gt))+Math.imul(Ge,xt)|0,R=Math.imul(Ge,gt),_=_+Math.imul(He,nr)|0,E=(E=E+Math.imul(He,Tt)|0)+Math.imul(qe,nr)|0,R=R+Math.imul(qe,Tt)|0,_=_+Math.imul(Ee,rr)|0,E=(E=E+Math.imul(Ee,Ct)|0)+Math.imul(Se,rr)|0,R=R+Math.imul(Se,Ct)|0,_=_+Math.imul(fe,ar)|0,E=(E=E+Math.imul(fe,kt)|0)+Math.imul(de,ar)|0,R=R+Math.imul(de,kt)|0,_=_+Math.imul(ce,Ie)|0,E=(E=E+Math.imul(ce,je)|0)+Math.imul(ne,Ie)|0,R=R+Math.imul(ne,je)|0,_=_+Math.imul(H,_t)|0,E=(E=E+Math.imul(H,st)|0)+Math.imul(Z,_t)|0,R=R+Math.imul(Z,st)|0,_=_+Math.imul(ue,At)|0,E=(E=E+Math.imul(ue,vt)|0)+Math.imul(Q,At)|0,R=R+Math.imul(Q,vt)|0;var it=(K+(_=_+Math.imul(re,Dt)|0)|0)+((8191&(E=(E=E+Math.imul(re,Ht)|0)+Math.imul(ae,Dt)|0))<<13)|0;K=((R=R+Math.imul(ae,Ht)|0)+(E>>>13)|0)+(it>>>26)|0,it&=67108863,_=Math.imul(Ue,nr),E=(E=Math.imul(Ue,Tt))+Math.imul(Ge,nr)|0,R=Math.imul(Ge,Tt),_=_+Math.imul(He,rr)|0,E=(E=E+Math.imul(He,Ct)|0)+Math.imul(qe,rr)|0,R=R+Math.imul(qe,Ct)|0,_=_+Math.imul(Ee,ar)|0,E=(E=E+Math.imul(Ee,kt)|0)+Math.imul(Se,ar)|0,R=R+Math.imul(Se,kt)|0,_=_+Math.imul(fe,Ie)|0,E=(E=E+Math.imul(fe,je)|0)+Math.imul(de,Ie)|0,R=R+Math.imul(de,je)|0,_=_+Math.imul(ce,_t)|0,E=(E=E+Math.imul(ce,st)|0)+Math.imul(ne,_t)|0,R=R+Math.imul(ne,st)|0,_=_+Math.imul(H,At)|0,E=(E=E+Math.imul(H,vt)|0)+Math.imul(Z,At)|0,R=R+Math.imul(Z,vt)|0;var $t=(K+(_=_+Math.imul(ue,Dt)|0)|0)+((8191&(E=(E=E+Math.imul(ue,Ht)|0)+Math.imul(Q,Dt)|0))<<13)|0;K=((R=R+Math.imul(Q,Ht)|0)+(E>>>13)|0)+($t>>>26)|0,$t&=67108863,_=Math.imul(Ue,rr),E=(E=Math.imul(Ue,Ct))+Math.imul(Ge,rr)|0,R=Math.imul(Ge,Ct),_=_+Math.imul(He,ar)|0,E=(E=E+Math.imul(He,kt)|0)+Math.imul(qe,ar)|0,R=R+Math.imul(qe,kt)|0,_=_+Math.imul(Ee,Ie)|0,E=(E=E+Math.imul(Ee,je)|0)+Math.imul(Se,Ie)|0,R=R+Math.imul(Se,je)|0,_=_+Math.imul(fe,_t)|0,E=(E=E+Math.imul(fe,st)|0)+Math.imul(de,_t)|0,R=R+Math.imul(de,st)|0,_=_+Math.imul(ce,At)|0,E=(E=E+Math.imul(ce,vt)|0)+Math.imul(ne,At)|0,R=R+Math.imul(ne,vt)|0;var Nt=(K+(_=_+Math.imul(H,Dt)|0)|0)+((8191&(E=(E=E+Math.imul(H,Ht)|0)+Math.imul(Z,Dt)|0))<<13)|0;K=((R=R+Math.imul(Z,Ht)|0)+(E>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,_=Math.imul(Ue,ar),E=(E=Math.imul(Ue,kt))+Math.imul(Ge,ar)|0,R=Math.imul(Ge,kt),_=_+Math.imul(He,Ie)|0,E=(E=E+Math.imul(He,je)|0)+Math.imul(qe,Ie)|0,R=R+Math.imul(qe,je)|0,_=_+Math.imul(Ee,_t)|0,E=(E=E+Math.imul(Ee,st)|0)+Math.imul(Se,_t)|0,R=R+Math.imul(Se,st)|0,_=_+Math.imul(fe,At)|0,E=(E=E+Math.imul(fe,vt)|0)+Math.imul(de,At)|0,R=R+Math.imul(de,vt)|0;var Lt=(K+(_=_+Math.imul(ce,Dt)|0)|0)+((8191&(E=(E=E+Math.imul(ce,Ht)|0)+Math.imul(ne,Dt)|0))<<13)|0;K=((R=R+Math.imul(ne,Ht)|0)+(E>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,_=Math.imul(Ue,Ie),E=(E=Math.imul(Ue,je))+Math.imul(Ge,Ie)|0,R=Math.imul(Ge,je),_=_+Math.imul(He,_t)|0,E=(E=E+Math.imul(He,st)|0)+Math.imul(qe,_t)|0,R=R+Math.imul(qe,st)|0,_=_+Math.imul(Ee,At)|0,E=(E=E+Math.imul(Ee,vt)|0)+Math.imul(Se,At)|0,R=R+Math.imul(Se,vt)|0;var Et=(K+(_=_+Math.imul(fe,Dt)|0)|0)+((8191&(E=(E=E+Math.imul(fe,Ht)|0)+Math.imul(de,Dt)|0))<<13)|0;K=((R=R+Math.imul(de,Ht)|0)+(E>>>13)|0)+(Et>>>26)|0,Et&=67108863,_=Math.imul(Ue,_t),E=(E=Math.imul(Ue,st))+Math.imul(Ge,_t)|0,R=Math.imul(Ge,st),_=_+Math.imul(He,At)|0,E=(E=E+Math.imul(He,vt)|0)+Math.imul(qe,At)|0,R=R+Math.imul(qe,vt)|0;var dr=(K+(_=_+Math.imul(Ee,Dt)|0)|0)+((8191&(E=(E=E+Math.imul(Ee,Ht)|0)+Math.imul(Se,Dt)|0))<<13)|0;K=((R=R+Math.imul(Se,Ht)|0)+(E>>>13)|0)+(dr>>>26)|0,dr&=67108863,_=Math.imul(Ue,At),E=(E=Math.imul(Ue,vt))+Math.imul(Ge,At)|0,R=Math.imul(Ge,vt);var _r=(K+(_=_+Math.imul(He,Dt)|0)|0)+((8191&(E=(E=E+Math.imul(He,Ht)|0)+Math.imul(qe,Dt)|0))<<13)|0;K=((R=R+Math.imul(qe,Ht)|0)+(E>>>13)|0)+(_r>>>26)|0,_r&=67108863;var Jt=(K+(_=Math.imul(Ue,Dt))|0)+((8191&(E=(E=Math.imul(Ue,Ht))+Math.imul(Ge,Dt)|0))<<13)|0;return K=((R=Math.imul(Ge,Ht))+(E>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,X[0]=jr,X[1]=gr,X[2]=Pr,X[3]=Gr,X[4]=Xr,X[5]=be,X[6]=Re,X[7]=We,X[8]=Ze,X[9]=mt,X[10]=nt,X[11]=it,X[12]=$t,X[13]=Nt,X[14]=Lt,X[15]=Et,X[16]=dr,X[17]=_r,X[18]=Jt,K!==0&&(X[19]=K,w.length++),w};function C(S,x,w){w.negative=x.negative^S.negative,w.length=S.length+x.length;for(var _=0,E=0,R=0;R<w.length-1;R++){var F=E;E=0;for(var B=67108863&_,X=Math.min(R,x.length-1),K=Math.max(0,R-S.length+1);K<=X;K++){var te=R-K,$=(0|S.words[te])*(0|x.words[K]),q=67108863&$;B=67108863&(q=q+B|0),E+=(F=(F=F+($/67108864|0)|0)+(q>>>26)|0)>>>26,F&=67108863}w.words[R]=B,_=F,F=E}return _!==0?w.words[R]=_:w.length--,w._strip()}function M(S,x,w){return C(S,x,w)}Math.imul||(A=b),c.prototype.mulTo=function(S,x){var w=this.length+S.length;return this.length===10&&S.length===10?A(this,S,x):w<63?b(this,S,x):w<1024?C(this,S,x):M(this,S,x)},c.prototype.mul=function(S){var x=new c(null);return x.words=new Array(this.length+S.length),this.mulTo(S,x)},c.prototype.mulf=function(S){var x=new c(null);return x.words=new Array(this.length+S.length),M(this,S,x)},c.prototype.imul=function(S){return this.clone().mulTo(S,this)},c.prototype.imuln=function(S){var x=S<0;x&&(S=-S),s(typeof S=="number"),s(S<67108864);for(var w=0,_=0;_<this.length;_++){var E=(0|this.words[_])*S,R=(67108863&E)+(67108863&w);w>>=26,w+=E/67108864|0,w+=R>>>26,this.words[_]=67108863&R}return w!==0&&(this.words[_]=w,this.length++),x?this.ineg():this},c.prototype.muln=function(S){return this.clone().imuln(S)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(S){var x=function(R){for(var F=new Array(R.bitLength()),B=0;B<F.length;B++){var X=B/26|0,K=B%26;F[B]=R.words[X]>>>K&1}return F}(S);if(x.length===0)return new c(1);for(var w=this,_=0;_<x.length&&x[_]===0;_++,w=w.sqr());if(++_<x.length)for(var E=w.sqr();_<x.length;_++,E=E.sqr())x[_]!==0&&(w=w.mul(E));return w},c.prototype.iushln=function(S){s(typeof S=="number"&&S>=0);var x,w=S%26,_=(S-w)/26,E=67108863>>>26-w<<26-w;if(w!==0){var R=0;for(x=0;x<this.length;x++){var F=this.words[x]&E,B=(0|this.words[x])-F<<w;this.words[x]=B|R,R=F>>>26-w}R&&(this.words[x]=R,this.length++)}if(_!==0){for(x=this.length-1;x>=0;x--)this.words[x+_]=this.words[x];for(x=0;x<_;x++)this.words[x]=0;this.length+=_}return this._strip()},c.prototype.ishln=function(S){return s(this.negative===0),this.iushln(S)},c.prototype.iushrn=function(S,x,w){var _;s(typeof S=="number"&&S>=0),_=x?(x-x%26)/26:0;var E=S%26,R=Math.min((S-E)/26,this.length),F=67108863^67108863>>>E<<E,B=w;if(_-=R,_=Math.max(0,_),B){for(var X=0;X<R;X++)B.words[X]=this.words[X];B.length=R}if(R!==0)if(this.length>R)for(this.length-=R,X=0;X<this.length;X++)this.words[X]=this.words[X+R];else this.words[0]=0,this.length=1;var K=0;for(X=this.length-1;X>=0&&(K!==0||X>=_);X--){var te=0|this.words[X];this.words[X]=K<<26-E|te>>>E,K=te&F}return B&&K!==0&&(B.words[B.length++]=K),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},c.prototype.ishrn=function(S,x,w){return s(this.negative===0),this.iushrn(S,x,w)},c.prototype.shln=function(S){return this.clone().ishln(S)},c.prototype.ushln=function(S){return this.clone().iushln(S)},c.prototype.shrn=function(S){return this.clone().ishrn(S)},c.prototype.ushrn=function(S){return this.clone().iushrn(S)},c.prototype.testn=function(S){s(typeof S=="number"&&S>=0);var x=S%26,w=(S-x)/26,_=1<<x;return!(this.length<=w)&&!!(this.words[w]&_)},c.prototype.imaskn=function(S){s(typeof S=="number"&&S>=0);var x=S%26,w=(S-x)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(x!==0&&w++,this.length=Math.min(w,this.length),x!==0){var _=67108863^67108863>>>x<<x;this.words[this.length-1]&=_}return this._strip()},c.prototype.maskn=function(S){return this.clone().imaskn(S)},c.prototype.iaddn=function(S){return s(typeof S=="number"),s(S<67108864),S<0?this.isubn(-S):this.negative!==0?this.length===1&&(0|this.words[0])<=S?(this.words[0]=S-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(S),this.negative=1,this):this._iaddn(S)},c.prototype._iaddn=function(S){this.words[0]+=S;for(var x=0;x<this.length&&this.words[x]>=67108864;x++)this.words[x]-=67108864,x===this.length-1?this.words[x+1]=1:this.words[x+1]++;return this.length=Math.max(this.length,x+1),this},c.prototype.isubn=function(S){if(s(typeof S=="number"),s(S<67108864),S<0)return this.iaddn(-S);if(this.negative!==0)return this.negative=0,this.iaddn(S),this.negative=1,this;if(this.words[0]-=S,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var x=0;x<this.length&&this.words[x]<0;x++)this.words[x]+=67108864,this.words[x+1]-=1;return this._strip()},c.prototype.addn=function(S){return this.clone().iaddn(S)},c.prototype.subn=function(S){return this.clone().isubn(S)},c.prototype.iabs=function(){return this.negative=0,this},c.prototype.abs=function(){return this.clone().iabs()},c.prototype._ishlnsubmul=function(S,x,w){var _,E,R=S.length+w;this._expand(R);var F=0;for(_=0;_<S.length;_++){E=(0|this.words[_+w])+F;var B=(0|S.words[_])*x;F=((E-=67108863&B)>>26)-(B/67108864|0),this.words[_+w]=67108863&E}for(;_<this.length-w;_++)F=(E=(0|this.words[_+w])+F)>>26,this.words[_+w]=67108863&E;if(F===0)return this._strip();for(s(F===-1),F=0,_=0;_<this.length;_++)F=(E=-(0|this.words[_])+F)>>26,this.words[_]=67108863&E;return this.negative=1,this._strip()},c.prototype._wordDiv=function(S,x){var w=(this.length,S.length),_=this.clone(),E=S,R=0|E.words[E.length-1];(w=26-this._countBits(R))!=0&&(E=E.ushln(w),_.iushln(w),R=0|E.words[E.length-1]);var F,B=_.length-E.length;if(x!=="mod"){(F=new c(null)).length=B+1,F.words=new Array(F.length);for(var X=0;X<F.length;X++)F.words[X]=0}var K=_.clone()._ishlnsubmul(E,1,B);K.negative===0&&(_=K,F&&(F.words[B]=1));for(var te=B-1;te>=0;te--){var $=67108864*(0|_.words[E.length+te])+(0|_.words[E.length+te-1]);for($=Math.min($/R|0,67108863),_._ishlnsubmul(E,$,te);_.negative!==0;)$--,_.negative=0,_._ishlnsubmul(E,1,te),_.isZero()||(_.negative^=1);F&&(F.words[te]=$)}return F&&F._strip(),_._strip(),x!=="div"&&w!==0&&_.iushrn(w),{div:F||null,mod:_}},c.prototype.divmod=function(S,x,w){return s(!S.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:this.negative!==0&&S.negative===0?(R=this.neg().divmod(S,x),x!=="mod"&&(_=R.div.neg()),x!=="div"&&(E=R.mod.neg(),w&&E.negative!==0&&E.iadd(S)),{div:_,mod:E}):this.negative===0&&S.negative!==0?(R=this.divmod(S.neg(),x),x!=="mod"&&(_=R.div.neg()),{div:_,mod:R.mod}):(this.negative&S.negative)!=0?(R=this.neg().divmod(S.neg(),x),x!=="div"&&(E=R.mod.neg(),w&&E.negative!==0&&E.isub(S)),{div:R.div,mod:E}):S.length>this.length||this.cmp(S)<0?{div:new c(0),mod:this}:S.length===1?x==="div"?{div:this.divn(S.words[0]),mod:null}:x==="mod"?{div:null,mod:new c(this.modrn(S.words[0]))}:{div:this.divn(S.words[0]),mod:new c(this.modrn(S.words[0]))}:this._wordDiv(S,x);var _,E,R},c.prototype.div=function(S){return this.divmod(S,"div",!1).div},c.prototype.mod=function(S){return this.divmod(S,"mod",!1).mod},c.prototype.umod=function(S){return this.divmod(S,"mod",!0).mod},c.prototype.divRound=function(S){var x=this.divmod(S);if(x.mod.isZero())return x.div;var w=x.div.negative!==0?x.mod.isub(S):x.mod,_=S.ushrn(1),E=S.andln(1),R=w.cmp(_);return R<0||E===1&&R===0?x.div:x.div.negative!==0?x.div.isubn(1):x.div.iaddn(1)},c.prototype.modrn=function(S){var x=S<0;x&&(S=-S),s(S<=67108863);for(var w=(1<<26)%S,_=0,E=this.length-1;E>=0;E--)_=(w*_+(0|this.words[E]))%S;return x?-_:_},c.prototype.modn=function(S){return this.modrn(S)},c.prototype.idivn=function(S){var x=S<0;x&&(S=-S),s(S<=67108863);for(var w=0,_=this.length-1;_>=0;_--){var E=(0|this.words[_])+67108864*w;this.words[_]=E/S|0,w=E%S}return this._strip(),x?this.ineg():this},c.prototype.divn=function(S){return this.clone().idivn(S)},c.prototype.egcd=function(S){s(S.negative===0),s(!S.isZero());var x=this,w=S.clone();x=x.negative!==0?x.umod(S):x.clone();for(var _=new c(1),E=new c(0),R=new c(0),F=new c(1),B=0;x.isEven()&&w.isEven();)x.iushrn(1),w.iushrn(1),++B;for(var X=w.clone(),K=x.clone();!x.isZero();){for(var te=0,$=1;(x.words[0]&$)==0&&te<26;++te,$<<=1);if(te>0)for(x.iushrn(te);te-- >0;)(_.isOdd()||E.isOdd())&&(_.iadd(X),E.isub(K)),_.iushrn(1),E.iushrn(1);for(var q=0,k=1;(w.words[0]&k)==0&&q<26;++q,k<<=1);if(q>0)for(w.iushrn(q);q-- >0;)(R.isOdd()||F.isOdd())&&(R.iadd(X),F.isub(K)),R.iushrn(1),F.iushrn(1);x.cmp(w)>=0?(x.isub(w),_.isub(R),E.isub(F)):(w.isub(x),R.isub(_),F.isub(E))}return{a:R,b:F,gcd:w.iushln(B)}},c.prototype._invmp=function(S){s(S.negative===0),s(!S.isZero());var x=this,w=S.clone();x=x.negative!==0?x.umod(S):x.clone();for(var _,E=new c(1),R=new c(0),F=w.clone();x.cmpn(1)>0&&w.cmpn(1)>0;){for(var B=0,X=1;(x.words[0]&X)==0&&B<26;++B,X<<=1);if(B>0)for(x.iushrn(B);B-- >0;)E.isOdd()&&E.iadd(F),E.iushrn(1);for(var K=0,te=1;(w.words[0]&te)==0&&K<26;++K,te<<=1);if(K>0)for(w.iushrn(K);K-- >0;)R.isOdd()&&R.iadd(F),R.iushrn(1);x.cmp(w)>=0?(x.isub(w),E.isub(R)):(w.isub(x),R.isub(E))}return(_=x.cmpn(1)===0?E:R).cmpn(0)<0&&_.iadd(S),_},c.prototype.gcd=function(S){if(this.isZero())return S.abs();if(S.isZero())return this.abs();var x=this.clone(),w=S.clone();x.negative=0,w.negative=0;for(var _=0;x.isEven()&&w.isEven();_++)x.iushrn(1),w.iushrn(1);for(;;){for(;x.isEven();)x.iushrn(1);for(;w.isEven();)w.iushrn(1);var E=x.cmp(w);if(E<0){var R=x;x=w,w=R}else if(E===0||w.cmpn(1)===0)break;x.isub(w)}return w.iushln(_)},c.prototype.invm=function(S){return this.egcd(S).a.umod(S)},c.prototype.isEven=function(){return(1&this.words[0])==0},c.prototype.isOdd=function(){return(1&this.words[0])==1},c.prototype.andln=function(S){return this.words[0]&S},c.prototype.bincn=function(S){s(typeof S=="number");var x=S%26,w=(S-x)/26,_=1<<x;if(this.length<=w)return this._expand(w+1),this.words[w]|=_,this;for(var E=_,R=w;E!==0&&R<this.length;R++){var F=0|this.words[R];E=(F+=E)>>>26,F&=67108863,this.words[R]=F}return E!==0&&(this.words[R]=E,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(S){var x,w=S<0;if(this.negative!==0&&!w)return-1;if(this.negative===0&&w)return 1;if(this._strip(),this.length>1)x=1;else{w&&(S=-S),s(S<=67108863,"Number is too big");var _=0|this.words[0];x=_===S?0:_<S?-1:1}return this.negative!==0?0|-x:x},c.prototype.cmp=function(S){if(this.negative!==0&&S.negative===0)return-1;if(this.negative===0&&S.negative!==0)return 1;var x=this.ucmp(S);return this.negative!==0?0|-x:x},c.prototype.ucmp=function(S){if(this.length>S.length)return 1;if(this.length<S.length)return-1;for(var x=0,w=this.length-1;w>=0;w--){var _=0|this.words[w],E=0|S.words[w];if(_!==E){_<E?x=-1:_>E&&(x=1);break}}return x},c.prototype.gtn=function(S){return this.cmpn(S)===1},c.prototype.gt=function(S){return this.cmp(S)===1},c.prototype.gten=function(S){return this.cmpn(S)>=0},c.prototype.gte=function(S){return this.cmp(S)>=0},c.prototype.ltn=function(S){return this.cmpn(S)===-1},c.prototype.lt=function(S){return this.cmp(S)===-1},c.prototype.lten=function(S){return this.cmpn(S)<=0},c.prototype.lte=function(S){return this.cmp(S)<=0},c.prototype.eqn=function(S){return this.cmpn(S)===0},c.prototype.eq=function(S){return this.cmp(S)===0},c.red=function(S){return new O(S)},c.prototype.toRed=function(S){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),S.convertTo(this)._forceRed(S)},c.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(S){return this.red=S,this},c.prototype.forceRed=function(S){return s(!this.red,"Already a number in reduction context"),this._forceRed(S)},c.prototype.redAdd=function(S){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,S)},c.prototype.redIAdd=function(S){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,S)},c.prototype.redSub=function(S){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,S)},c.prototype.redISub=function(S){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,S)},c.prototype.redShl=function(S){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,S)},c.prototype.redMul=function(S){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,S),this.red.mul(this,S)},c.prototype.redIMul=function(S){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,S),this.red.imul(this,S)},c.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(S){return s(this.red&&!S.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,S)};var z={k256:null,p224:null,p192:null,p25519:null};function W(S,x){this.name=S,this.p=new c(x,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function U(){W.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function G(){W.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ee(){W.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){W.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(S){if(typeof S=="string"){var x=c._prime(S);this.m=x.p,this.prime=x}else s(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}function T(S){O.call(this,S),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}W.prototype._tmp=function(){var S=new c(null);return S.words=new Array(Math.ceil(this.n/13)),S},W.prototype.ireduce=function(S){var x,w=S;do this.split(w,this.tmp),x=(w=(w=this.imulK(w)).iadd(this.tmp)).bitLength();while(x>this.n);var _=x<this.n?-1:w.ucmp(this.p);return _===0?(w.words[0]=0,w.length=1):_>0?w.isub(this.p):w.strip!==void 0?w.strip():w._strip(),w},W.prototype.split=function(S,x){S.iushrn(this.n,0,x)},W.prototype.imulK=function(S){return S.imul(this.k)},u(U,W),U.prototype.split=function(S,x){for(var w=Math.min(S.length,9),_=0;_<w;_++)x.words[_]=S.words[_];if(x.length=w,S.length<=9)return S.words[0]=0,void(S.length=1);var E=S.words[9];for(x.words[x.length++]=4194303&E,_=10;_<S.length;_++){var R=0|S.words[_];S.words[_-10]=(4194303&R)<<4|E>>>22,E=R}E>>>=22,S.words[_-10]=E,E===0&&S.length>10?S.length-=10:S.length-=9},U.prototype.imulK=function(S){S.words[S.length]=0,S.words[S.length+1]=0,S.length+=2;for(var x=0,w=0;w<S.length;w++){var _=0|S.words[w];x+=977*_,S.words[w]=67108863&x,x=64*_+(x/67108864|0)}return S.words[S.length-1]===0&&(S.length--,S.words[S.length-1]===0&&S.length--),S},u(G,W),u(ee,W),u(I,W),I.prototype.imulK=function(S){for(var x=0,w=0;w<S.length;w++){var _=19*(0|S.words[w])+x,E=67108863&_;_>>>=26,S.words[w]=E,x=_}return x!==0&&(S.words[S.length++]=x),S},c._prime=function(S){if(z[S])return z[S];var x;if(S==="k256")x=new U;else if(S==="p224")x=new G;else if(S==="p192")x=new ee;else{if(S!=="p25519")throw new Error("Unknown prime "+S);x=new I}return z[S]=x,x},O.prototype._verify1=function(S){s(S.negative===0,"red works only with positives"),s(S.red,"red works only with red numbers")},O.prototype._verify2=function(S,x){s((S.negative|x.negative)==0,"red works only with positives"),s(S.red&&S.red===x.red,"red works only with red numbers")},O.prototype.imod=function(S){return this.prime?this.prime.ireduce(S)._forceRed(this):(g(S,S.umod(this.m)._forceRed(this)),S)},O.prototype.neg=function(S){return S.isZero()?S.clone():this.m.sub(S)._forceRed(this)},O.prototype.add=function(S,x){this._verify2(S,x);var w=S.add(x);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},O.prototype.iadd=function(S,x){this._verify2(S,x);var w=S.iadd(x);return w.cmp(this.m)>=0&&w.isub(this.m),w},O.prototype.sub=function(S,x){this._verify2(S,x);var w=S.sub(x);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},O.prototype.isub=function(S,x){this._verify2(S,x);var w=S.isub(x);return w.cmpn(0)<0&&w.iadd(this.m),w},O.prototype.shl=function(S,x){return this._verify1(S),this.imod(S.ushln(x))},O.prototype.imul=function(S,x){return this._verify2(S,x),this.imod(S.imul(x))},O.prototype.mul=function(S,x){return this._verify2(S,x),this.imod(S.mul(x))},O.prototype.isqr=function(S){return this.imul(S,S.clone())},O.prototype.sqr=function(S){return this.mul(S,S)},O.prototype.sqrt=function(S){if(S.isZero())return S.clone();var x=this.m.andln(3);if(s(x%2==1),x===3){var w=this.m.add(new c(1)).iushrn(2);return this.pow(S,w)}for(var _=this.m.subn(1),E=0;!_.isZero()&&_.andln(1)===0;)E++,_.iushrn(1);s(!_.isZero());var R=new c(1).toRed(this),F=R.redNeg(),B=this.m.subn(1).iushrn(1),X=this.m.bitLength();for(X=new c(2*X*X).toRed(this);this.pow(X,B).cmp(F)!==0;)X.redIAdd(F);for(var K=this.pow(X,_),te=this.pow(S,_.addn(1).iushrn(1)),$=this.pow(S,_),q=E;$.cmp(R)!==0;){for(var k=$,L=0;k.cmp(R)!==0;L++)k=k.redSqr();s(L<q);var V=this.pow(K,new c(1).iushln(q-L-1));te=te.redMul(V),K=V.redSqr(),$=$.redMul(K),q=L}return te},O.prototype.invm=function(S){var x=S._invmp(this.m);return x.negative!==0?(x.negative=0,this.imod(x).redNeg()):this.imod(x)},O.prototype.pow=function(S,x){if(x.isZero())return new c(1).toRed(this);if(x.cmpn(1)===0)return S.clone();var w=new Array(16);w[0]=new c(1).toRed(this),w[1]=S;for(var _=2;_<w.length;_++)w[_]=this.mul(w[_-1],S);var E=w[0],R=0,F=0,B=x.bitLength()%26;for(B===0&&(B=26),_=x.length-1;_>=0;_--){for(var X=x.words[_],K=B-1;K>=0;K--){var te=X>>K&1;E!==w[0]&&(E=this.sqr(E)),te!==0||R!==0?(R<<=1,R|=te,(++F==4||_===0&&K===0)&&(E=this.mul(E,w[R]),F=0,R=0)):F=0}B=26}return E},O.prototype.convertTo=function(S){var x=S.umod(this.m);return x===S?x.clone():x},O.prototype.convertFrom=function(S){var x=S.clone();return x.red=null,x},c.mont=function(S){return new T(S)},u(T,O),T.prototype.convertTo=function(S){return this.imod(S.ushln(this.shift))},T.prototype.convertFrom=function(S){var x=this.imod(S.mul(this.rinv));return x.red=null,x},T.prototype.imul=function(S,x){if(S.isZero()||x.isZero())return S.words[0]=0,S.length=1,S;var w=S.imul(x),_=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=w.isub(_).iushrn(this.shift),R=E;return E.cmp(this.m)>=0?R=E.isub(this.m):E.cmpn(0)<0&&(R=E.iadd(this.m)),R._forceRed(this)},T.prototype.mul=function(S,x){if(S.isZero()||x.isZero())return new c(0)._forceRed(this);var w=S.mul(x),_=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=w.isub(_).iushrn(this.shift),R=E;return E.cmp(this.m)>=0?R=E.isub(this.m):E.cmpn(0)<0&&(R=E.iadd(this.m)),R._forceRed(this)},T.prototype.invm=function(S){return this.imod(S._invmp(this.m).mul(this.r2))._forceRed(this)}})(n===void 0||n)},{buffer:188}],187:[function(e,n,i){var a;function o(u){this.rand=u}if(n.exports=function(u){return a||(a=new o(null)),a.generate(u)},n.exports.Rand=o,o.prototype.generate=function(u){return this._rand(u)},o.prototype._rand=function(u){if(this.rand.getBytes)return this.rand.getBytes(u);for(var c=new Uint8Array(u),l=0;l<c.length;l++)c[l]=this.rand.getByte();return c},typeof self=="object")self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(u){var c=new Uint8Array(u);return self.crypto.getRandomValues(c),c}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(u){var c=new Uint8Array(u);return self.msCrypto.getRandomValues(c),c}:typeof window=="object"&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var s=e("crypto");if(typeof s.randomBytes!="function")throw new Error("Not supported");o.prototype._rand=function(u){return s.randomBytes(u)}}catch{}},{crypto:188}],188:[function(e,n,i){},{}],189:[function(e,n,i){var a=e("safe-buffer").Buffer;function o(h){a.isBuffer(h)||(h=a.from(h));for(var f=h.length/4|0,g=new Array(f),m=0;m<f;m++)g[m]=h.readUInt32BE(4*m);return g}function s(h){for(;0<h.length;h++)h[0]=0}function u(h,f,g,m,p){for(var y,v,b,A,C=g[0],M=g[1],z=g[2],W=g[3],U=h[0]^f[0],G=h[1]^f[1],ee=h[2]^f[2],I=h[3]^f[3],O=4,T=1;T<p;T++)y=C[U>>>24]^M[G>>>16&255]^z[ee>>>8&255]^W[255&I]^f[O++],v=C[G>>>24]^M[ee>>>16&255]^z[I>>>8&255]^W[255&U]^f[O++],b=C[ee>>>24]^M[I>>>16&255]^z[U>>>8&255]^W[255&G]^f[O++],A=C[I>>>24]^M[U>>>16&255]^z[G>>>8&255]^W[255&ee]^f[O++],U=y,G=v,ee=b,I=A;return y=(m[U>>>24]<<24|m[G>>>16&255]<<16|m[ee>>>8&255]<<8|m[255&I])^f[O++],v=(m[G>>>24]<<24|m[ee>>>16&255]<<16|m[I>>>8&255]<<8|m[255&U])^f[O++],b=(m[ee>>>24]<<24|m[I>>>16&255]<<16|m[U>>>8&255]<<8|m[255&G])^f[O++],A=(m[I>>>24]<<24|m[U>>>16&255]<<16|m[G>>>8&255]<<8|m[255&ee])^f[O++],[y>>>=0,v>>>=0,b>>>=0,A>>>=0]}var c=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var h=new Array(256),f=0;f<256;f++)h[f]=f<128?f<<1:f<<1^283;for(var g=[],m=[],p=[[],[],[],[]],y=[[],[],[],[]],v=0,b=0,A=0;A<256;++A){var C=b^b<<1^b<<2^b<<3^b<<4;C=C>>>8^255&C^99,g[v]=C,m[C]=v;var M=h[v],z=h[M],W=h[z],U=257*h[C]^16843008*C;p[0][v]=U<<24|U>>>8,p[1][v]=U<<16|U>>>16,p[2][v]=U<<8|U>>>24,p[3][v]=U,U=16843009*W^65537*z^257*M^16843008*v,y[0][C]=U<<24|U>>>8,y[1][C]=U<<16|U>>>16,y[2][C]=U<<8|U>>>24,y[3][C]=U,v===0?v=b=1:(v=M^h[h[h[W^M]]],b^=h[h[b]])}return{SBOX:g,INV_SBOX:m,SUB_MIX:p,INV_SUB_MIX:y}}();function d(h){this._key=o(h),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var h=this._key,f=h.length,g=f+6,m=4*(g+1),p=[],y=0;y<f;y++)p[y]=h[y];for(y=f;y<m;y++){var v=p[y-1];y%f==0?(v=v<<8|v>>>24,v=l.SBOX[v>>>24]<<24|l.SBOX[v>>>16&255]<<16|l.SBOX[v>>>8&255]<<8|l.SBOX[255&v],v^=c[y/f|0]<<24):f>6&&y%f==4&&(v=l.SBOX[v>>>24]<<24|l.SBOX[v>>>16&255]<<16|l.SBOX[v>>>8&255]<<8|l.SBOX[255&v]),p[y]=p[y-f]^v}for(var b=[],A=0;A<m;A++){var C=m-A,M=p[C-(A%4?0:4)];b[A]=A<4||C<=4?M:l.INV_SUB_MIX[0][l.SBOX[M>>>24]]^l.INV_SUB_MIX[1][l.SBOX[M>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[M>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&M]]}this._nRounds=g,this._keySchedule=p,this._invKeySchedule=b},d.prototype.encryptBlockRaw=function(h){return u(h=o(h),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},d.prototype.encryptBlock=function(h){var f=this.encryptBlockRaw(h),g=a.allocUnsafe(16);return g.writeUInt32BE(f[0],0),g.writeUInt32BE(f[1],4),g.writeUInt32BE(f[2],8),g.writeUInt32BE(f[3],12),g},d.prototype.decryptBlock=function(h){var f=(h=o(h))[1];h[1]=h[3],h[3]=f;var g=u(h,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),m=a.allocUnsafe(16);return m.writeUInt32BE(g[0],0),m.writeUInt32BE(g[3],4),m.writeUInt32BE(g[2],8),m.writeUInt32BE(g[1],12),m},d.prototype.scrub=function(){s(this._keySchedule),s(this._invKeySchedule),s(this._key)},n.exports.AES=d},{"safe-buffer":494}],190:[function(e,n,i){var a=e("./aes"),o=e("safe-buffer").Buffer,s=e("cipher-base"),u=e("inherits"),c=e("./ghash"),l=e("buffer-xor"),d=e("./incr32");function h(f,g,m,p){s.call(this);var y=o.alloc(4,0);this._cipher=new a.AES(g);var v=this._cipher.encryptBlock(y);this._ghash=new c(v),m=function(b,A,C){if(A.length===12)return b._finID=o.concat([A,o.from([0,0,0,1])]),o.concat([A,o.from([0,0,0,2])]);var M=new c(C),z=A.length,W=z%16;M.update(A),W&&(W=16-W,M.update(o.alloc(W,0))),M.update(o.alloc(8,0));var U=8*z,G=o.alloc(8);G.writeUIntBE(U,0,8),M.update(G),b._finID=M.state;var ee=o.from(b._finID);return d(ee),ee}(this,m,v),this._prev=o.from(m),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=p,this._alen=0,this._len=0,this._mode=f,this._authTag=null,this._called=!1}u(h,s),h.prototype._update=function(f){if(!this._called&&this._alen){var g=16-this._alen%16;g<16&&(g=o.alloc(g,0),this._ghash.update(g))}this._called=!0;var m=this._mode.encrypt(this,f);return this._decrypt?this._ghash.update(f):this._ghash.update(m),this._len+=f.length,m},h.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var f=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(g,m){var p=0;g.length!==m.length&&p++;for(var y=Math.min(g.length,m.length),v=0;v<y;++v)p+=g[v]^m[v];return p}(f,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=f,this._cipher.scrub()},h.prototype.getAuthTag=function(){if(this._decrypt||!o.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},h.prototype.setAuthTag=function(f){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=f},h.prototype.setAAD=function(f){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(f),this._alen+=f.length},n.exports=h},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(e,n,i){var a=e("./encrypter"),o=e("./decrypter"),s=e("./modes/list.json");i.createCipher=i.Cipher=a.createCipher,i.createCipheriv=i.Cipheriv=a.createCipheriv,i.createDecipher=i.Decipher=o.createDecipher,i.createDecipheriv=i.Decipheriv=o.createDecipheriv,i.listCiphers=i.getCiphers=function(){return Object.keys(s)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(e,n,i){var a=e("./authCipher"),o=e("safe-buffer").Buffer,s=e("./modes"),u=e("./streamCipher"),c=e("cipher-base"),l=e("./aes"),d=e("evp_bytestokey");function h(m,p,y){c.call(this),this._cache=new f,this._last=void 0,this._cipher=new l.AES(p),this._prev=o.from(y),this._mode=m,this._autopadding=!0}function f(){this.cache=o.allocUnsafe(0)}function g(m,p,y){var v=s[m.toLowerCase()];if(!v)throw new TypeError("invalid suite type");if(typeof y=="string"&&(y=o.from(y)),v.mode!=="GCM"&&y.length!==v.iv)throw new TypeError("invalid iv length "+y.length);if(typeof p=="string"&&(p=o.from(p)),p.length!==v.key/8)throw new TypeError("invalid key length "+p.length);return v.type==="stream"?new u(v.module,p,y,!0):v.type==="auth"?new a(v.module,p,y,!0):new h(v.module,p,y)}e("inherits")(h,c),h.prototype._update=function(m){var p,y;this._cache.add(m);for(var v=[];p=this._cache.get(this._autopadding);)y=this._mode.decrypt(this,p),v.push(y);return o.concat(v)},h.prototype._final=function(){var m=this._cache.flush();if(this._autopadding)return function(p){var y=p[15];if(y<1||y>16)throw new Error("unable to decrypt data");for(var v=-1;++v<y;)if(p[v+(16-y)]!==y)throw new Error("unable to decrypt data");if(y!==16)return p.slice(0,16-y)}(this._mode.decrypt(this,m));if(m)throw new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(m){return this._autopadding=!!m,this},f.prototype.add=function(m){this.cache=o.concat([this.cache,m])},f.prototype.get=function(m){var p;if(m){if(this.cache.length>16)return p=this.cache.slice(0,16),this.cache=this.cache.slice(16),p}else if(this.cache.length>=16)return p=this.cache.slice(0,16),this.cache=this.cache.slice(16),p;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},i.createDecipher=function(m,p){var y=s[m.toLowerCase()];if(!y)throw new TypeError("invalid suite type");var v=d(p,!1,y.key,y.iv);return g(m,v.key,v.iv)},i.createDecipheriv=g},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,n,i){var a=e("./modes"),o=e("./authCipher"),s=e("safe-buffer").Buffer,u=e("./streamCipher"),c=e("cipher-base"),l=e("./aes"),d=e("evp_bytestokey");function h(p,y,v){c.call(this),this._cache=new g,this._cipher=new l.AES(y),this._prev=s.from(v),this._mode=p,this._autopadding=!0}e("inherits")(h,c),h.prototype._update=function(p){var y,v;this._cache.add(p);for(var b=[];y=this._cache.get();)v=this._mode.encrypt(this,y),b.push(v);return s.concat(b)};var f=s.alloc(16,16);function g(){this.cache=s.allocUnsafe(0)}function m(p,y,v){var b=a[p.toLowerCase()];if(!b)throw new TypeError("invalid suite type");if(typeof y=="string"&&(y=s.from(y)),y.length!==b.key/8)throw new TypeError("invalid key length "+y.length);if(typeof v=="string"&&(v=s.from(v)),b.mode!=="GCM"&&v.length!==b.iv)throw new TypeError("invalid iv length "+v.length);return b.type==="stream"?new u(b.module,y,v):b.type==="auth"?new o(b.module,y,v):new h(b.module,y,v)}h.prototype._final=function(){var p=this._cache.flush();if(this._autopadding)return p=this._mode.encrypt(this,p),this._cipher.scrub(),p;if(!p.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(p){return this._autopadding=!!p,this},g.prototype.add=function(p){this.cache=s.concat([this.cache,p])},g.prototype.get=function(){if(this.cache.length>15){var p=this.cache.slice(0,16);return this.cache=this.cache.slice(16),p}return null},g.prototype.flush=function(){for(var p=16-this.cache.length,y=s.allocUnsafe(p),v=-1;++v<p;)y.writeUInt8(p,v);return s.concat([this.cache,y])},i.createCipheriv=m,i.createCipher=function(p,y){var v=a[p.toLowerCase()];if(!v)throw new TypeError("invalid suite type");var b=d(y,!1,v.key,v.iv);return m(p,b.key,b.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(e,n,i){var a=e("safe-buffer").Buffer,o=a.alloc(16,0);function s(c){var l=a.allocUnsafe(16);return l.writeUInt32BE(c[0]>>>0,0),l.writeUInt32BE(c[1]>>>0,4),l.writeUInt32BE(c[2]>>>0,8),l.writeUInt32BE(c[3]>>>0,12),l}function u(c){this.h=c,this.state=a.alloc(16,0),this.cache=a.allocUnsafe(0)}u.prototype.ghash=function(c){for(var l=-1;++l<c.length;)this.state[l]^=c[l];this._multiply()},u.prototype._multiply=function(){for(var c,l,d,h=[(c=this.h).readUInt32BE(0),c.readUInt32BE(4),c.readUInt32BE(8),c.readUInt32BE(12)],f=[0,0,0,0],g=-1;++g<128;){for((this.state[~~(g/8)]&1<<7-g%8)!=0&&(f[0]^=h[0],f[1]^=h[1],f[2]^=h[2],f[3]^=h[3]),d=(1&h[3])!=0,l=3;l>0;l--)h[l]=h[l]>>>1|(1&h[l-1])<<31;h[0]=h[0]>>>1,d&&(h[0]=h[0]^225<<24)}this.state=s(f)},u.prototype.update=function(c){var l;for(this.cache=a.concat([this.cache,c]);this.cache.length>=16;)l=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(l)},u.prototype.final=function(c,l){return this.cache.length&&this.ghash(a.concat([this.cache,o],16)),this.ghash(s([0,c,0,l])),this.state},n.exports=u},{"safe-buffer":494}],195:[function(e,n,i){n.exports=function(a){for(var o,s=a.length;s--;){if((o=a.readUInt8(s))!==255){o++,a.writeUInt8(o,s);break}a.writeUInt8(0,s)}}},{}],196:[function(e,n,i){var a=e("buffer-xor");i.encrypt=function(o,s){var u=a(s,o._prev);return o._prev=o._cipher.encryptBlock(u),o._prev},i.decrypt=function(o,s){var u=o._prev;o._prev=s;var c=o._cipher.decryptBlock(s);return a(c,u)}},{"buffer-xor":219}],197:[function(e,n,i){var a=e("safe-buffer").Buffer,o=e("buffer-xor");function s(u,c,l){var d=c.length,h=o(c,u._cache);return u._cache=u._cache.slice(d),u._prev=a.concat([u._prev,l?c:h]),h}i.encrypt=function(u,c,l){for(var d,h=a.allocUnsafe(0);c.length;){if(u._cache.length===0&&(u._cache=u._cipher.encryptBlock(u._prev),u._prev=a.allocUnsafe(0)),!(u._cache.length<=c.length)){h=a.concat([h,s(u,c,l)]);break}d=u._cache.length,h=a.concat([h,s(u,c.slice(0,d),l)]),c=c.slice(d)}return h}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,n,i){var a=e("safe-buffer").Buffer;function o(u,c,l){for(var d,h,f=-1,g=0;++f<8;)d=c&1<<7-f?128:0,g+=(128&(h=u._cipher.encryptBlock(u._prev)[0]^d))>>f%8,u._prev=s(u._prev,l?d:h);return g}function s(u,c){var l=u.length,d=-1,h=a.allocUnsafe(u.length);for(u=a.concat([u,a.from([c])]);++d<l;)h[d]=u[d]<<1|u[d+1]>>7;return h}i.encrypt=function(u,c,l){for(var d=c.length,h=a.allocUnsafe(d),f=-1;++f<d;)h[f]=o(u,c[f],l);return h}},{"safe-buffer":494}],199:[function(e,n,i){var a=e("safe-buffer").Buffer;function o(s,u,c){var l=s._cipher.encryptBlock(s._prev)[0]^u;return s._prev=a.concat([s._prev.slice(1),a.from([c?u:l])]),l}i.encrypt=function(s,u,c){for(var l=u.length,d=a.allocUnsafe(l),h=-1;++h<l;)d[h]=o(s,u[h],c);return d}},{"safe-buffer":494}],200:[function(e,n,i){var a=e("buffer-xor"),o=e("safe-buffer").Buffer,s=e("../incr32");function u(c){var l=c._cipher.encryptBlockRaw(c._prev);return s(c._prev),l}i.encrypt=function(c,l){var d=Math.ceil(l.length/16),h=c._cache.length;c._cache=o.concat([c._cache,o.allocUnsafe(16*d)]);for(var f=0;f<d;f++){var g=u(c),m=h+16*f;c._cache.writeUInt32BE(g[0],m+0),c._cache.writeUInt32BE(g[1],m+4),c._cache.writeUInt32BE(g[2],m+8),c._cache.writeUInt32BE(g[3],m+12)}var p=c._cache.slice(0,l.length);return c._cache=c._cache.slice(l.length),a(l,p)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(e,n,i){i.encrypt=function(a,o){return a._cipher.encryptBlock(o)},i.decrypt=function(a,o){return a._cipher.decryptBlock(o)}},{}],202:[function(e,n,i){var a={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},o=e("./list.json");for(var s in o)o[s].module=a[o[s].mode];n.exports=o},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(e,n,i){n.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],204:[function(e,n,i){(function(a){(function(){var o=e("buffer-xor");function s(u){return u._prev=u._cipher.encryptBlock(u._prev),u._prev}i.encrypt=function(u,c){for(;u._cache.length<c.length;)u._cache=a.concat([u._cache,s(u)]);var l=u._cache.slice(0,c.length);return u._cache=u._cache.slice(c.length),o(c,l)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(e,n,i){var a=e("./aes"),o=e("safe-buffer").Buffer,s=e("cipher-base");function u(c,l,d,h){s.call(this),this._cipher=new a.AES(l),this._prev=o.from(d),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=h,this._mode=c}e("inherits")(u,s),u.prototype._update=function(c){return this._mode.encrypt(this,c,this._decrypt)},u.prototype._final=function(){this._cipher.scrub()},n.exports=u},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(e,n,i){var a=e("browserify-des"),o=e("browserify-aes/browser"),s=e("browserify-aes/modes"),u=e("browserify-des/modes"),c=e("evp_bytestokey");function l(h,f,g){if(h=h.toLowerCase(),s[h])return o.createCipheriv(h,f,g);if(u[h])return new a({key:f,iv:g,mode:h});throw new TypeError("invalid suite type")}function d(h,f,g){if(h=h.toLowerCase(),s[h])return o.createDecipheriv(h,f,g);if(u[h])return new a({key:f,iv:g,mode:h,decrypt:!0});throw new TypeError("invalid suite type")}i.createCipher=i.Cipher=function(h,f){var g,m;if(h=h.toLowerCase(),s[h])g=s[h].key,m=s[h].iv;else{if(!u[h])throw new TypeError("invalid suite type");g=8*u[h].key,m=u[h].iv}var p=c(f,!1,g,m);return l(h,p.key,p.iv)},i.createCipheriv=i.Cipheriv=l,i.createDecipher=i.Decipher=function(h,f){var g,m;if(h=h.toLowerCase(),s[h])g=s[h].key,m=s[h].iv;else{if(!u[h])throw new TypeError("invalid suite type");g=8*u[h].key,m=u[h].iv}var p=c(f,!1,g,m);return d(h,p.key,p.iv)},i.createDecipheriv=i.Decipheriv=d,i.listCiphers=i.getCiphers=function(){return Object.keys(u).concat(o.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(e,n,i){var a=e("cipher-base"),o=e("des.js"),s=e("inherits"),u=e("safe-buffer").Buffer,c={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function l(d){a.call(this);var h,f=d.mode.toLowerCase(),g=c[f];h=d.decrypt?"decrypt":"encrypt";var m=d.key;u.isBuffer(m)||(m=u.from(m)),f!=="des-ede"&&f!=="des-ede-cbc"||(m=u.concat([m,m.slice(0,8)]));var p=d.iv;u.isBuffer(p)||(p=u.from(p)),this._des=g.create({key:m,iv:p,type:h})}c.des=c["des-cbc"],c.des3=c["des-ede3-cbc"],n.exports=l,s(l,a),l.prototype._update=function(d){return u.from(this._des.update(d))},l.prototype._final=function(){return u.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(e,n,i){i["des-ecb"]={key:8,iv:0},i["des-cbc"]=i.des={key:8,iv:8},i["des-ede3-cbc"]=i.des3={key:24,iv:8},i["des-ede3"]={key:24,iv:0},i["des-ede-cbc"]={key:16,iv:8},i["des-ede"]={key:16,iv:0}},{}],209:[function(e,n,i){(function(a){(function(){var o=e("bn.js"),s=e("randombytes");function u(l){var d,h=l.modulus.byteLength();do d=new o(s(h));while(d.cmp(l.modulus)>=0||!d.umod(l.prime1)||!d.umod(l.prime2));return d}function c(l,d){var h=function(z){var W=u(z);return{blinder:W.toRed(o.mont(z.modulus)).redPow(new o(z.publicExponent)).fromRed(),unblinder:W.invm(z.modulus)}}(d),f=d.modulus.byteLength(),g=new o(l).mul(h.blinder).umod(d.modulus),m=g.toRed(o.mont(d.prime1)),p=g.toRed(o.mont(d.prime2)),y=d.coefficient,v=d.prime1,b=d.prime2,A=m.redPow(d.exponent1).fromRed(),C=p.redPow(d.exponent2).fromRed(),M=A.isub(C).imul(y).umod(v).imul(b);return C.iadd(M).imul(h.unblinder).umod(d.modulus).toArrayLike(a,"be",f)}c.getr=u,n.exports=c}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,n,i){n.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(e,n,i){n.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(e,n,i){n.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(e,n,i){var a=e("safe-buffer").Buffer,o=e("create-hash"),s=e("readable-stream"),u=e("inherits"),c=e("./sign"),l=e("./verify"),d=e("./algorithms.json");function h(p){s.Writable.call(this);var y=d[p];if(!y)throw new Error("Unknown message digest");this._hashType=y.hash,this._hash=o(y.hash),this._tag=y.id,this._signType=y.sign}function f(p){s.Writable.call(this);var y=d[p];if(!y)throw new Error("Unknown message digest");this._hash=o(y.hash),this._tag=y.id,this._signType=y.sign}function g(p){return new h(p)}function m(p){return new f(p)}Object.keys(d).forEach(function(p){d[p].id=a.from(d[p].id,"hex"),d[p.toLowerCase()]=d[p]}),u(h,s.Writable),h.prototype._write=function(p,y,v){this._hash.update(p),v()},h.prototype.update=function(p,y){return typeof p=="string"&&(p=a.from(p,y)),this._hash.update(p),this},h.prototype.sign=function(p,y){this.end();var v=this._hash.digest(),b=c(v,p,this._hashType,this._signType,this._tag);return y?b.toString(y):b},u(f,s.Writable),f.prototype._write=function(p,y,v){this._hash.update(p),v()},f.prototype.update=function(p,y){return typeof p=="string"&&(p=a.from(p,y)),this._hash.update(p),this},f.prototype.verify=function(p,y,v){typeof y=="string"&&(y=a.from(y,v)),this.end();var b=this._hash.digest();return l(y,b,p,this._signType,this._tag)},n.exports={Sign:g,Verify:m,createSign:g,createVerify:m}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,n,i){var a=e("safe-buffer").Buffer,o=e("create-hmac"),s=e("browserify-rsa"),u=e("elliptic").ec,c=e("bn.js"),l=e("parse-asn1"),d=e("./curves.json");function h(p,y,v,b){if((p=a.from(p.toArray())).length<y.byteLength()){var A=a.alloc(y.byteLength()-p.length);p=a.concat([A,p])}var C=v.length,M=function(U,G){U=(U=f(U,G)).mod(G);var ee=a.from(U.toArray());if(ee.length<G.byteLength()){var I=a.alloc(G.byteLength()-ee.length);ee=a.concat([I,ee])}return ee}(v,y),z=a.alloc(C);z.fill(1);var W=a.alloc(C);return W=o(b,W).update(z).update(a.from([0])).update(p).update(M).digest(),z=o(b,W).update(z).digest(),{k:W=o(b,W).update(z).update(a.from([1])).update(p).update(M).digest(),v:z=o(b,W).update(z).digest()}}function f(p,y){var v=new c(p),b=(p.length<<3)-y.bitLength();return b>0&&v.ishrn(b),v}function g(p,y,v){var b,A;do{for(b=a.alloc(0);8*b.length<p.bitLength();)y.v=o(v,y.k).update(y.v).digest(),b=a.concat([b,y.v]);A=f(b,p),y.k=o(v,y.k).update(y.v).update(a.from([0])).digest(),y.v=o(v,y.k).update(y.v).digest()}while(A.cmp(p)!==-1);return A}function m(p,y,v,b){return p.toRed(c.mont(v)).redPow(y).fromRed().mod(b)}n.exports=function(p,y,v,b,A){var C=l(y);if(C.curve){if(b!=="ecdsa"&&b!=="ecdsa/rsa")throw new Error("wrong private key type");return function(U,G){var ee=d[G.curve.join(".")];if(!ee)throw new Error("unknown curve "+G.curve.join("."));var I=new u(ee).keyFromPrivate(G.privateKey).sign(U);return a.from(I.toDER())}(p,C)}if(C.type==="dsa"){if(b!=="dsa")throw new Error("wrong private key type");return function(U,G,ee){for(var I,O=G.params.priv_key,T=G.params.p,S=G.params.q,x=G.params.g,w=new c(0),_=f(U,S).mod(S),E=!1,R=h(O,S,U,ee);E===!1;)I=g(S,R,ee),w=m(x,I,T,S),(E=I.invm(S).imul(_.add(O.mul(w))).mod(S)).cmpn(0)===0&&(E=!1,w=new c(0));return function(F,B){F=F.toArray(),B=B.toArray(),128&F[0]&&(F=[0].concat(F)),128&B[0]&&(B=[0].concat(B));var X=[48,F.length+B.length+4,2,F.length];return X=X.concat(F,[2,B.length],B),a.from(X)}(w,E)}(p,C,v)}if(b!=="rsa"&&b!=="ecdsa/rsa")throw new Error("wrong private key type");p=a.concat([A,p]);for(var M=C.modulus.byteLength(),z=[0,1];p.length+z.length+1<M;)z.push(255);z.push(0);for(var W=-1;++W<p.length;)z.push(p[W]);return s(z,C)},n.exports.getKey=h,n.exports.makeKey=g},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(e,n,i){var a=e("safe-buffer").Buffer,o=e("bn.js"),s=e("elliptic").ec,u=e("parse-asn1"),c=e("./curves.json");function l(d,h){if(d.cmpn(0)<=0)throw new Error("invalid sig");if(d.cmp(h)>=h)throw new Error("invalid sig")}n.exports=function(d,h,f,g,m){var p=u(f);if(p.type==="ec"){if(g!=="ecdsa"&&g!=="ecdsa/rsa")throw new Error("wrong public key type");return function(z,W,U){var G=c[U.data.algorithm.curve.join(".")];if(!G)throw new Error("unknown curve "+U.data.algorithm.curve.join("."));var ee=new s(G),I=U.data.subjectPrivateKey.data;return ee.verify(W,z,I)}(d,h,p)}if(p.type==="dsa"){if(g!=="dsa")throw new Error("wrong public key type");return function(z,W,U){var G=U.data.p,ee=U.data.q,I=U.data.g,O=U.data.pub_key,T=u.signature.decode(z,"der"),S=T.s,x=T.r;l(S,ee),l(x,ee);var w=o.mont(G),_=S.invm(ee);return I.toRed(w).redPow(new o(W).mul(_).mod(ee)).fromRed().mul(O.toRed(w).redPow(x.mul(_).mod(ee)).fromRed()).mod(G).mod(ee).cmp(x)===0}(d,h,p)}if(g!=="rsa"&&g!=="ecdsa/rsa")throw new Error("wrong public key type");h=a.concat([m,h]);for(var y=p.modulus.byteLength(),v=[1],b=0;h.length+v.length+2<y;)v.push(255),b++;v.push(0);for(var A=-1;++A<h.length;)v.push(h[A]);v=a.from(v);var C=o.mont(p.modulus);d=(d=new o(d).toRed(C)).redPow(new o(p.publicExponent)),d=a.from(d.fromRed().toArray());var M=b<8?1:0;for(y=Math.min(d.length,v.length),d.length!==v.length&&(M=1),A=-1;++A<y;)M|=d[A]^v[A];return M===0}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(e,n,i){},{}],217:[function(e,n,i){var a=e("buffer"),o=a.Buffer;function s(c,l){for(var d in c)l[d]=c[d]}function u(c,l,d){return o(c,l,d)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?n.exports=a:(s(a,i),i.Buffer=u),s(o,u),u.from=function(c,l,d){if(typeof c=="number")throw new TypeError("Argument must not be a number");return o(c,l,d)},u.alloc=function(c,l,d){if(typeof c!="number")throw new TypeError("Argument must be a number");var h=o(c);return l!==void 0?typeof d=="string"?h.fill(l,d):h.fill(l):h.fill(0),h},u.allocUnsafe=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return o(c)},u.allocUnsafeSlow=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(c)}},{buffer:220}],218:[function(e,n,i){var a=e("safe-buffer").Buffer,o=a.isEncoding||function(p){switch((p=""+p)&&p.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(p){var y;switch(this.encoding=function(v){var b=function(A){if(!A)return"utf8";for(var C;;)switch(A){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return A;default:if(C)return;A=(""+A).toLowerCase(),C=!0}}(v);if(typeof b!="string"&&(a.isEncoding===o||!o(v)))throw new Error("Unknown encoding: "+v);return b||v}(p),this.encoding){case"utf16le":this.text=l,this.end=d,y=4;break;case"utf8":this.fillLast=c,y=4;break;case"base64":this.text=h,this.end=f,y=3;break;default:return this.write=g,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=a.allocUnsafe(y)}function u(p){return p<=127?0:p>>5==6?2:p>>4==14?3:p>>3==30?4:p>>6==2?-1:-2}function c(p){var y=this.lastTotal-this.lastNeed,v=function(b,A,C){if((192&A[0])!=128)return b.lastNeed=0,"\uFFFD";if(b.lastNeed>1&&A.length>1){if((192&A[1])!=128)return b.lastNeed=1,"\uFFFD";if(b.lastNeed>2&&A.length>2&&(192&A[2])!=128)return b.lastNeed=2,"\uFFFD"}}(this,p);return v!==void 0?v:this.lastNeed<=p.length?(p.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(p.copy(this.lastChar,y,0,p.length),void(this.lastNeed-=p.length))}function l(p,y){if((p.length-y)%2==0){var v=p.toString("utf16le",y);if(v){var b=v.charCodeAt(v.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",y,p.length-1)}function d(p){var y=p&&p.length?this.write(p):"";if(this.lastNeed){var v=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,v)}return y}function h(p,y){var v=(p.length-y)%3;return v===0?p.toString("base64",y):(this.lastNeed=3-v,this.lastTotal=3,v===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",y,p.length-v))}function f(p){var y=p&&p.length?this.write(p):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function g(p){return p.toString(this.encoding)}function m(p){return p&&p.length?this.write(p):""}i.StringDecoder=s,s.prototype.write=function(p){if(p.length===0)return"";var y,v;if(this.lastNeed){if((y=this.fillLast(p))===void 0)return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v<p.length?y?y+this.text(p,v):this.text(p,v):y||""},s.prototype.end=function(p){var y=p&&p.length?this.write(p):"";return this.lastNeed?y+"\uFFFD":y},s.prototype.text=function(p,y){var v=function(A,C,M){var z=C.length-1;if(z<M)return 0;var W=u(C[z]);return W>=0?(W>0&&(A.lastNeed=W-1),W):--z<M||W===-2?0:(W=u(C[z]))>=0?(W>0&&(A.lastNeed=W-2),W):--z<M||W===-2?0:(W=u(C[z]))>=0?(W>0&&(W===2?W=0:A.lastNeed=W-3),W):0}(this,p,y);if(!this.lastNeed)return p.toString("utf8",y);this.lastTotal=v;var b=p.length-(v-this.lastNeed);return p.copy(this.lastChar,0,b),p.toString("utf8",y,b)},s.prototype.fillLast=function(p){if(this.lastNeed<=p.length)return p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,p.length),this.lastNeed-=p.length}},{"safe-buffer":217}],219:[function(e,n,i){(function(a){(function(){n.exports=function(o,s){for(var u=Math.min(o.length,s.length),c=new a(u),l=0;l<u;++l)c[l]=o[l]^s[l];return c}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],220:[function(e,n,i){(function(a){(function(){var o=e("base64-js"),s=e("ieee754");i.Buffer=c,i.SlowBuffer=function(k){return+k!=k&&(k=0),c.alloc(+k)},i.INSPECT_MAX_BYTES=50;function u(k){if(k>2147483647)throw new RangeError('The value "'+k+'" is invalid for option "size"');var L=new Uint8Array(k);return L.__proto__=c.prototype,L}function c(k,L,V){if(typeof k=="number"){if(typeof L=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(k)}return l(k,L,V)}function l(k,L,V){if(typeof k=="string")return function(ae,j){if(typeof j=="string"&&j!==""||(j="utf8"),!c.isEncoding(j))throw new TypeError("Unknown encoding: "+j);var ue=0|m(ae,j),Q=u(ue),P=Q.write(ae,j);return P!==ue&&(Q=Q.slice(0,P)),Q}(k,L);if(ArrayBuffer.isView(k))return f(k);if(k==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k);if($(k,ArrayBuffer)||k&&$(k.buffer,ArrayBuffer))return function(ae,j,ue){if(j<0||ae.byteLength<j)throw new RangeError('"offset" is outside of buffer bounds');if(ae.byteLength<j+(ue||0))throw new RangeError('"length" is outside of buffer bounds');var Q;return Q=j===void 0&&ue===void 0?new Uint8Array(ae):ue===void 0?new Uint8Array(ae,j):new Uint8Array(ae,j,ue),Q.__proto__=c.prototype,Q}(k,L,V);if(typeof k=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var J=k.valueOf&&k.valueOf();if(J!=null&&J!==k)return c.from(J,L,V);var re=function(ae){if(c.isBuffer(ae)){var j=0|g(ae.length),ue=u(j);return ue.length===0||ae.copy(ue,0,0,j),ue}if(ae.length!==void 0)return typeof ae.length!="number"||q(ae.length)?u(0):f(ae);if(ae.type==="Buffer"&&Array.isArray(ae.data))return f(ae.data)}(k);if(re)return re;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof k[Symbol.toPrimitive]=="function")return c.from(k[Symbol.toPrimitive]("string"),L,V);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k)}function d(k){if(typeof k!="number")throw new TypeError('"size" argument must be of type number');if(k<0)throw new RangeError('The value "'+k+'" is invalid for option "size"')}function h(k){return d(k),u(k<0?0:0|g(k))}function f(k){for(var L=k.length<0?0:0|g(k.length),V=u(L),J=0;J<L;J+=1)V[J]=255&k[J];return V}function g(k){if(k>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647 .toString(16)+" bytes");return 0|k}function m(k,L){if(c.isBuffer(k))return k.length;if(ArrayBuffer.isView(k)||$(k,ArrayBuffer))return k.byteLength;if(typeof k!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof k);var V=k.length,J=arguments.length>2&&arguments[2]===!0;if(!J&&V===0)return 0;for(var re=!1;;)switch(L){case"ascii":case"latin1":case"binary":return V;case"utf8":case"utf-8":return X(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*V;case"hex":return V>>>1;case"base64":return K(k).length;default:if(re)return J?-1:X(k).length;L=(""+L).toLowerCase(),re=!0}}function p(k,L,V){var J=!1;if((L===void 0||L<0)&&(L=0),L>this.length||((V===void 0||V>this.length)&&(V=this.length),V<=0)||(V>>>=0)<=(L>>>=0))return"";for(k||(k="utf8");;)switch(k){case"hex":return T(this,L,V);case"utf8":case"utf-8":return ee(this,L,V);case"ascii":return I(this,L,V);case"latin1":case"binary":return O(this,L,V);case"base64":return G(this,L,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,L,V);default:if(J)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),J=!0}}function y(k,L,V){var J=k[L];k[L]=k[V],k[V]=J}function v(k,L,V,J,re){if(k.length===0)return-1;if(typeof V=="string"?(J=V,V=0):V>2147483647?V=2147483647:V<-2147483648&&(V=-2147483648),q(V=+V)&&(V=re?0:k.length-1),V<0&&(V=k.length+V),V>=k.length){if(re)return-1;V=k.length-1}else if(V<0){if(!re)return-1;V=0}if(typeof L=="string"&&(L=c.from(L,J)),c.isBuffer(L))return L.length===0?-1:b(k,L,V,J,re);if(typeof L=="number")return L&=255,typeof Uint8Array.prototype.indexOf=="function"?re?Uint8Array.prototype.indexOf.call(k,L,V):Uint8Array.prototype.lastIndexOf.call(k,L,V):b(k,[L],V,J,re);throw new TypeError("val must be string, number or Buffer")}function b(k,L,V,J,re){var ae,j=1,ue=k.length,Q=L.length;if(J!==void 0&&((J=String(J).toLowerCase())==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(k.length<2||L.length<2)return-1;j=2,ue/=2,Q/=2,V/=2}function P(ce,ne){return j===1?ce[ne]:ce.readUInt16BE(ne*j)}if(re){var H=-1;for(ae=V;ae<ue;ae++)if(P(k,ae)===P(L,H===-1?0:ae-H)){if(H===-1&&(H=ae),ae-H+1===Q)return H*j}else H!==-1&&(ae-=ae-H),H=-1}else for(V+Q>ue&&(V=ue-Q),ae=V;ae>=0;ae--){for(var Z=!0,oe=0;oe<Q;oe++)if(P(k,ae+oe)!==P(L,oe)){Z=!1;break}if(Z)return ae}return-1}function A(k,L,V,J){V=Number(V)||0;var re=k.length-V;J?(J=Number(J))>re&&(J=re):J=re;var ae=L.length;J>ae/2&&(J=ae/2);for(var j=0;j<J;++j){var ue=parseInt(L.substr(2*j,2),16);if(q(ue))return j;k[V+j]=ue}return j}function C(k,L,V,J){return te(X(L,k.length-V),k,V,J)}function M(k,L,V,J){return te(function(re){for(var ae=[],j=0;j<re.length;++j)ae.push(255&re.charCodeAt(j));return ae}(L),k,V,J)}function z(k,L,V,J){return M(k,L,V,J)}function W(k,L,V,J){return te(K(L),k,V,J)}function U(k,L,V,J){return te(function(re,ae){for(var j,ue,Q,P=[],H=0;H<re.length&&!((ae-=2)<0);++H)j=re.charCodeAt(H),ue=j>>8,Q=j%256,P.push(Q),P.push(ue);return P}(L,k.length-V),k,V,J)}function G(k,L,V){return L===0&&V===k.length?o.fromByteArray(k):o.fromByteArray(k.slice(L,V))}function ee(k,L,V){V=Math.min(k.length,V);for(var J=[],re=L;re<V;){var ae,j,ue,Q,P=k[re],H=null,Z=P>239?4:P>223?3:P>191?2:1;if(re+Z<=V)switch(Z){case 1:P<128&&(H=P);break;case 2:(192&(ae=k[re+1]))==128&&(Q=(31&P)<<6|63&ae)>127&&(H=Q);break;case 3:ae=k[re+1],j=k[re+2],(192&ae)==128&&(192&j)==128&&(Q=(15&P)<<12|(63&ae)<<6|63&j)>2047&&(Q<55296||Q>57343)&&(H=Q);break;case 4:ae=k[re+1],j=k[re+2],ue=k[re+3],(192&ae)==128&&(192&j)==128&&(192&ue)==128&&(Q=(15&P)<<18|(63&ae)<<12|(63&j)<<6|63&ue)>65535&&Q<1114112&&(H=Q)}H===null?(H=65533,Z=1):H>65535&&(H-=65536,J.push(H>>>10&1023|55296),H=56320|1023&H),J.push(H),re+=Z}return function(oe){var ce=oe.length;if(ce<=4096)return String.fromCharCode.apply(String,oe);for(var ne="",se=0;se<ce;)ne+=String.fromCharCode.apply(String,oe.slice(se,se+=4096));return ne}(J)}i.kMaxLength=2147483647,c.TYPED_ARRAY_SUPPORT=function(){try{var k=new Uint8Array(1);return k.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},k.foo()===42}catch{return!1}}(),c.TYPED_ARRAY_SUPPORT||typeof console=="undefined"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),typeof Symbol!="undefined"&&Symbol.species!=null&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(k,L,V){return l(k,L,V)},c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,c.alloc=function(k,L,V){return function(J,re,ae){return d(J),J<=0?u(J):re!==void 0?typeof ae=="string"?u(J).fill(re,ae):u(J).fill(re):u(J)}(k,L,V)},c.allocUnsafe=function(k){return h(k)},c.allocUnsafeSlow=function(k){return h(k)},c.isBuffer=function(k){return k!=null&&k._isBuffer===!0&&k!==c.prototype},c.compare=function(k,L){if($(k,Uint8Array)&&(k=c.from(k,k.offset,k.byteLength)),$(L,Uint8Array)&&(L=c.from(L,L.offset,L.byteLength)),!c.isBuffer(k)||!c.isBuffer(L))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(k===L)return 0;for(var V=k.length,J=L.length,re=0,ae=Math.min(V,J);re<ae;++re)if(k[re]!==L[re]){V=k[re],J=L[re];break}return V<J?-1:J<V?1:0},c.isEncoding=function(k){switch(String(k).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(k,L){if(!Array.isArray(k))throw new TypeError('"list" argument must be an Array of Buffers');if(k.length===0)return c.alloc(0);var V;if(L===void 0)for(L=0,V=0;V<k.length;++V)L+=k[V].length;var J=c.allocUnsafe(L),re=0;for(V=0;V<k.length;++V){var ae=k[V];if($(ae,Uint8Array)&&(ae=c.from(ae)),!c.isBuffer(ae))throw new TypeError('"list" argument must be an Array of Buffers');ae.copy(J,re),re+=ae.length}return J},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var k=this.length;if(k%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var L=0;L<k;L+=2)y(this,L,L+1);return this},c.prototype.swap32=function(){var k=this.length;if(k%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var L=0;L<k;L+=4)y(this,L,L+3),y(this,L+1,L+2);return this},c.prototype.swap64=function(){var k=this.length;if(k%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var L=0;L<k;L+=8)y(this,L,L+7),y(this,L+1,L+6),y(this,L+2,L+5),y(this,L+3,L+4);return this},c.prototype.toString=function(){var k=this.length;return k===0?"":arguments.length===0?ee(this,0,k):p.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(k){if(!c.isBuffer(k))throw new TypeError("Argument must be a Buffer");return this===k||c.compare(this,k)===0},c.prototype.inspect=function(){var k="",L=i.INSPECT_MAX_BYTES;return k=this.toString("hex",0,L).replace(/(.{2})/g,"$1 ").trim(),this.length>L&&(k+=" ... "),"<Buffer "+k+">"},c.prototype.compare=function(k,L,V,J,re){if($(k,Uint8Array)&&(k=c.from(k,k.offset,k.byteLength)),!c.isBuffer(k))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof k);if(L===void 0&&(L=0),V===void 0&&(V=k?k.length:0),J===void 0&&(J=0),re===void 0&&(re=this.length),L<0||V>k.length||J<0||re>this.length)throw new RangeError("out of range index");if(J>=re&&L>=V)return 0;if(J>=re)return-1;if(L>=V)return 1;if(this===k)return 0;for(var ae=(re>>>=0)-(J>>>=0),j=(V>>>=0)-(L>>>=0),ue=Math.min(ae,j),Q=this.slice(J,re),P=k.slice(L,V),H=0;H<ue;++H)if(Q[H]!==P[H]){ae=Q[H],j=P[H];break}return ae<j?-1:j<ae?1:0},c.prototype.includes=function(k,L,V){return this.indexOf(k,L,V)!==-1},c.prototype.indexOf=function(k,L,V){return v(this,k,L,V,!0)},c.prototype.lastIndexOf=function(k,L,V){return v(this,k,L,V,!1)},c.prototype.write=function(k,L,V,J){if(L===void 0)J="utf8",V=this.length,L=0;else if(V===void 0&&typeof L=="string")J=L,V=this.length,L=0;else{if(!isFinite(L))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");L>>>=0,isFinite(V)?(V>>>=0,J===void 0&&(J="utf8")):(J=V,V=void 0)}var re=this.length-L;if((V===void 0||V>re)&&(V=re),k.length>0&&(V<0||L<0)||L>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");for(var ae=!1;;)switch(J){case"hex":return A(this,k,L,V);case"utf8":case"utf-8":return C(this,k,L,V);case"ascii":return M(this,k,L,V);case"latin1":case"binary":return z(this,k,L,V);case"base64":return W(this,k,L,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,k,L,V);default:if(ae)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),ae=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(k,L,V){var J="";V=Math.min(k.length,V);for(var re=L;re<V;++re)J+=String.fromCharCode(127&k[re]);return J}function O(k,L,V){var J="";V=Math.min(k.length,V);for(var re=L;re<V;++re)J+=String.fromCharCode(k[re]);return J}function T(k,L,V){var J=k.length;(!L||L<0)&&(L=0),(!V||V<0||V>J)&&(V=J);for(var re="",ae=L;ae<V;++ae)re+=B(k[ae]);return re}function S(k,L,V){for(var J=k.slice(L,V),re="",ae=0;ae<J.length;ae+=2)re+=String.fromCharCode(J[ae]+256*J[ae+1]);return re}function x(k,L,V){if(k%1!=0||k<0)throw new RangeError("offset is not uint");if(k+L>V)throw new RangeError("Trying to access beyond buffer length")}function w(k,L,V,J,re,ae){if(!c.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(L>re||L<ae)throw new RangeError('"value" argument is out of bounds');if(V+J>k.length)throw new RangeError("Index out of range")}function _(k,L,V,J,re,ae){if(V+J>k.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("Index out of range")}function E(k,L,V,J,re){return L=+L,V>>>=0,re||_(k,0,V,4),s.write(k,L,V,J,23,4),V+4}function R(k,L,V,J,re){return L=+L,V>>>=0,re||_(k,0,V,8),s.write(k,L,V,J,52,8),V+8}c.prototype.slice=function(k,L){var V=this.length;(k=~~k)<0?(k+=V)<0&&(k=0):k>V&&(k=V),(L=L===void 0?V:~~L)<0?(L+=V)<0&&(L=0):L>V&&(L=V),L<k&&(L=k);var J=this.subarray(k,L);return J.__proto__=c.prototype,J},c.prototype.readUIntLE=function(k,L,V){k>>>=0,L>>>=0,V||x(k,L,this.length);for(var J=this[k],re=1,ae=0;++ae<L&&(re*=256);)J+=this[k+ae]*re;return J},c.prototype.readUIntBE=function(k,L,V){k>>>=0,L>>>=0,V||x(k,L,this.length);for(var J=this[k+--L],re=1;L>0&&(re*=256);)J+=this[k+--L]*re;return J},c.prototype.readUInt8=function(k,L){return k>>>=0,L||x(k,1,this.length),this[k]},c.prototype.readUInt16LE=function(k,L){return k>>>=0,L||x(k,2,this.length),this[k]|this[k+1]<<8},c.prototype.readUInt16BE=function(k,L){return k>>>=0,L||x(k,2,this.length),this[k]<<8|this[k+1]},c.prototype.readUInt32LE=function(k,L){return k>>>=0,L||x(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+16777216*this[k+3]},c.prototype.readUInt32BE=function(k,L){return k>>>=0,L||x(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},c.prototype.readIntLE=function(k,L,V){k>>>=0,L>>>=0,V||x(k,L,this.length);for(var J=this[k],re=1,ae=0;++ae<L&&(re*=256);)J+=this[k+ae]*re;return J>=(re*=128)&&(J-=Math.pow(2,8*L)),J},c.prototype.readIntBE=function(k,L,V){k>>>=0,L>>>=0,V||x(k,L,this.length);for(var J=L,re=1,ae=this[k+--J];J>0&&(re*=256);)ae+=this[k+--J]*re;return ae>=(re*=128)&&(ae-=Math.pow(2,8*L)),ae},c.prototype.readInt8=function(k,L){return k>>>=0,L||x(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},c.prototype.readInt16LE=function(k,L){k>>>=0,L||x(k,2,this.length);var V=this[k]|this[k+1]<<8;return 32768&V?4294901760|V:V},c.prototype.readInt16BE=function(k,L){k>>>=0,L||x(k,2,this.length);var V=this[k+1]|this[k]<<8;return 32768&V?4294901760|V:V},c.prototype.readInt32LE=function(k,L){return k>>>=0,L||x(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},c.prototype.readInt32BE=function(k,L){return k>>>=0,L||x(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},c.prototype.readFloatLE=function(k,L){return k>>>=0,L||x(k,4,this.length),s.read(this,k,!0,23,4)},c.prototype.readFloatBE=function(k,L){return k>>>=0,L||x(k,4,this.length),s.read(this,k,!1,23,4)},c.prototype.readDoubleLE=function(k,L){return k>>>=0,L||x(k,8,this.length),s.read(this,k,!0,52,8)},c.prototype.readDoubleBE=function(k,L){return k>>>=0,L||x(k,8,this.length),s.read(this,k,!1,52,8)},c.prototype.writeUIntLE=function(k,L,V,J){k=+k,L>>>=0,V>>>=0,J||w(this,k,L,V,Math.pow(2,8*V)-1,0);var re=1,ae=0;for(this[L]=255&k;++ae<V&&(re*=256);)this[L+ae]=k/re&255;return L+V},c.prototype.writeUIntBE=function(k,L,V,J){k=+k,L>>>=0,V>>>=0,J||w(this,k,L,V,Math.pow(2,8*V)-1,0);var re=V-1,ae=1;for(this[L+re]=255&k;--re>=0&&(ae*=256);)this[L+re]=k/ae&255;return L+V},c.prototype.writeUInt8=function(k,L,V){return k=+k,L>>>=0,V||w(this,k,L,1,255,0),this[L]=255&k,L+1},c.prototype.writeUInt16LE=function(k,L,V){return k=+k,L>>>=0,V||w(this,k,L,2,65535,0),this[L]=255&k,this[L+1]=k>>>8,L+2},c.prototype.writeUInt16BE=function(k,L,V){return k=+k,L>>>=0,V||w(this,k,L,2,65535,0),this[L]=k>>>8,this[L+1]=255&k,L+2},c.prototype.writeUInt32LE=function(k,L,V){return k=+k,L>>>=0,V||w(this,k,L,4,4294967295,0),this[L+3]=k>>>24,this[L+2]=k>>>16,this[L+1]=k>>>8,this[L]=255&k,L+4},c.prototype.writeUInt32BE=function(k,L,V){return k=+k,L>>>=0,V||w(this,k,L,4,4294967295,0),this[L]=k>>>24,this[L+1]=k>>>16,this[L+2]=k>>>8,this[L+3]=255&k,L+4},c.prototype.writeIntLE=function(k,L,V,J){if(k=+k,L>>>=0,!J){var re=Math.pow(2,8*V-1);w(this,k,L,V,re-1,-re)}var ae=0,j=1,ue=0;for(this[L]=255&k;++ae<V&&(j*=256);)k<0&&ue===0&&this[L+ae-1]!==0&&(ue=1),this[L+ae]=(k/j>>0)-ue&255;return L+V},c.prototype.writeIntBE=function(k,L,V,J){if(k=+k,L>>>=0,!J){var re=Math.pow(2,8*V-1);w(this,k,L,V,re-1,-re)}var ae=V-1,j=1,ue=0;for(this[L+ae]=255&k;--ae>=0&&(j*=256);)k<0&&ue===0&&this[L+ae+1]!==0&&(ue=1),this[L+ae]=(k/j>>0)-ue&255;return L+V},c.prototype.writeInt8=function(k,L,V){return k=+k,L>>>=0,V||w(this,k,L,1,127,-128),k<0&&(k=255+k+1),this[L]=255&k,L+1},c.prototype.writeInt16LE=function(k,L,V){return k=+k,L>>>=0,V||w(this,k,L,2,32767,-32768),this[L]=255&k,this[L+1]=k>>>8,L+2},c.prototype.writeInt16BE=function(k,L,V){return k=+k,L>>>=0,V||w(this,k,L,2,32767,-32768),this[L]=k>>>8,this[L+1]=255&k,L+2},c.prototype.writeInt32LE=function(k,L,V){return k=+k,L>>>=0,V||w(this,k,L,4,2147483647,-2147483648),this[L]=255&k,this[L+1]=k>>>8,this[L+2]=k>>>16,this[L+3]=k>>>24,L+4},c.prototype.writeInt32BE=function(k,L,V){return k=+k,L>>>=0,V||w(this,k,L,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[L]=k>>>24,this[L+1]=k>>>16,this[L+2]=k>>>8,this[L+3]=255&k,L+4},c.prototype.writeFloatLE=function(k,L,V){return E(this,k,L,!0,V)},c.prototype.writeFloatBE=function(k,L,V){return E(this,k,L,!1,V)},c.prototype.writeDoubleLE=function(k,L,V){return R(this,k,L,!0,V)},c.prototype.writeDoubleBE=function(k,L,V){return R(this,k,L,!1,V)},c.prototype.copy=function(k,L,V,J){if(!c.isBuffer(k))throw new TypeError("argument should be a Buffer");if(V||(V=0),J||J===0||(J=this.length),L>=k.length&&(L=k.length),L||(L=0),J>0&&J<V&&(J=V),J===V||k.length===0||this.length===0)return 0;if(L<0)throw new RangeError("targetStart out of bounds");if(V<0||V>=this.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),k.length-L<J-V&&(J=k.length-L+V);var re=J-V;if(this===k&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(L,V,J);else if(this===k&&V<L&&L<J)for(var ae=re-1;ae>=0;--ae)k[ae+L]=this[ae+V];else Uint8Array.prototype.set.call(k,this.subarray(V,J),L);return re},c.prototype.fill=function(k,L,V,J){if(typeof k=="string"){if(typeof L=="string"?(J=L,L=0,V=this.length):typeof V=="string"&&(J=V,V=this.length),J!==void 0&&typeof J!="string")throw new TypeError("encoding must be a string");if(typeof J=="string"&&!c.isEncoding(J))throw new TypeError("Unknown encoding: "+J);if(k.length===1){var re=k.charCodeAt(0);(J==="utf8"&&re<128||J==="latin1")&&(k=re)}}else typeof k=="number"&&(k&=255);if(L<0||this.length<L||this.length<V)throw new RangeError("Out of range index");if(V<=L)return this;var ae;if(L>>>=0,V=V===void 0?this.length:V>>>0,k||(k=0),typeof k=="number")for(ae=L;ae<V;++ae)this[ae]=k;else{var j=c.isBuffer(k)?k:c.from(k,J),ue=j.length;if(ue===0)throw new TypeError('The value "'+k+'" is invalid for argument "value"');for(ae=0;ae<V-L;++ae)this[ae+L]=j[ae%ue]}return this};var F=/[^+/0-9A-Za-z-_]/g;function B(k){return k<16?"0"+k.toString(16):k.toString(16)}function X(k,L){var V;L=L||1/0;for(var J=k.length,re=null,ae=[],j=0;j<J;++j){if((V=k.charCodeAt(j))>55295&&V<57344){if(!re){if(V>56319){(L-=3)>-1&&ae.push(239,191,189);continue}if(j+1===J){(L-=3)>-1&&ae.push(239,191,189);continue}re=V;continue}if(V<56320){(L-=3)>-1&&ae.push(239,191,189),re=V;continue}V=65536+(re-55296<<10|V-56320)}else re&&(L-=3)>-1&&ae.push(239,191,189);if(re=null,V<128){if((L-=1)<0)break;ae.push(V)}else if(V<2048){if((L-=2)<0)break;ae.push(V>>6|192,63&V|128)}else if(V<65536){if((L-=3)<0)break;ae.push(V>>12|224,V>>6&63|128,63&V|128)}else{if(!(V<1114112))throw new Error("Invalid code point");if((L-=4)<0)break;ae.push(V>>18|240,V>>12&63|128,V>>6&63|128,63&V|128)}}return ae}function K(k){return o.toByteArray(function(L){if((L=(L=L.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;L.length%4!=0;)L+="=";return L}(k))}function te(k,L,V,J){for(var re=0;re<J&&!(re+V>=L.length||re>=k.length);++re)L[re+V]=k[re];return re}function $(k,L){return k instanceof L||k!=null&&k.constructor!=null&&k.constructor.name!=null&&k.constructor.name===L.name}function q(k){return k!=k}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,n,i){var a=e("safe-buffer").Buffer,o=e("stream").Transform,s=e("string_decoder").StringDecoder;function u(c){o.call(this),this.hashMode=typeof c=="string",this.hashMode?this[c]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(u,o),u.prototype.update=function(c,l,d){typeof c=="string"&&(c=a.from(c,l));var h=this._update(c);return this.hashMode?this:(d&&(h=this._toString(h,d)),h)},u.prototype.setAutoPadding=function(){},u.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},u.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},u.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},u.prototype._transform=function(c,l,d){var h;try{this.hashMode?this._update(c):this.push(this._update(c))}catch(f){h=f}finally{d(h)}},u.prototype._flush=function(c){var l;try{this.push(this.__final())}catch(d){l=d}c(l)},u.prototype._finalOrDigest=function(c){var l=this.__final()||a.alloc(0);return c&&(l=this._toString(l,c,!0)),l},u.prototype._toString=function(c,l,d){if(this._decoder||(this._decoder=new s(l),this._encoding=l),this._encoding!==l)throw new Error("can't switch encodings");var h=this._decoder.write(c);return d&&(h+=this._decoder.end()),h},n.exports=u},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,n,i){var a=e("../internals/is-callable"),o=e("../internals/try-to-string"),s=TypeError;n.exports=function(u){if(a(u))return u;throw new s(o(u)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,n,i){var a=e("../internals/is-constructor"),o=e("../internals/try-to-string"),s=TypeError;n.exports=function(u){if(a(u))return u;throw new s(o(u)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,n,i){var a=e("../internals/is-callable"),o=String,s=TypeError;n.exports=function(u){if(typeof u=="object"||a(u))return u;throw new s("Can't set "+o(u)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(e,n,i){var a=e("../internals/well-known-symbol"),o=e("../internals/object-create"),s=e("../internals/object-define-property").f,u=a("unscopables"),c=Array.prototype;c[u]===void 0&&s(c,u,{configurable:!0,value:o(null)}),n.exports=function(l){c[u][l]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,n,i){var a=e("../internals/object-is-prototype-of"),o=TypeError;n.exports=function(s,u){if(a(u,s))return s;throw new o("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(e,n,i){var a=e("../internals/is-object"),o=String,s=TypeError;n.exports=function(u){if(a(u))return u;throw new s(o(u)+" is not an object")}},{"../internals/is-object":289}],228:[function(e,n,i){var a=e("../internals/to-indexed-object"),o=e("../internals/to-absolute-index"),s=e("../internals/length-of-array-like"),u=function(c){return function(l,d,h){var f,g=a(l),m=s(g),p=o(h,m);if(c&&d!=d){for(;m>p;)if((f=g[p++])!=f)return!0}else for(;m>p;p++)if((c||p in g)&&g[p]===d)return c||p||0;return!c&&-1}};n.exports={includes:u(!0),indexOf:u(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,n,i){var a=e("../internals/function-bind-context"),o=e("../internals/function-uncurry-this"),s=e("../internals/indexed-object"),u=e("../internals/to-object"),c=e("../internals/length-of-array-like"),l=e("../internals/array-species-create"),d=o([].push),h=function(f){var g=f===1,m=f===2,p=f===3,y=f===4,v=f===6,b=f===7,A=f===5||v;return function(C,M,z,W){for(var U,G,ee=u(C),I=s(ee),O=a(M,z),T=c(I),S=0,x=W||l,w=g?x(C,T):m||b?x(C,0):void 0;T>S;S++)if((A||S in I)&&(G=O(U=I[S],S,ee),f))if(g)w[S]=G;else if(G)switch(f){case 3:return!0;case 5:return U;case 6:return S;case 2:d(w,U)}else switch(f){case 4:return!1;case 7:d(w,U)}return v?-1:p||y?y:w}};n.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(e,n,i){var a=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like"),s=e("../internals/create-property"),u=Array,c=Math.max;n.exports=function(l,d,h){for(var f=o(l),g=a(d,f),m=a(h===void 0?f:h,f),p=u(c(m-g,0)),y=0;g<m;g++,y++)s(p,y,l[g]);return p.length=y,p}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(e,n,i){var a=e("../internals/function-uncurry-this");n.exports=a([].slice)},{"../internals/function-uncurry-this":268}],232:[function(e,n,i){var a=e("../internals/is-array"),o=e("../internals/is-constructor"),s=e("../internals/is-object"),u=e("../internals/well-known-symbol")("species"),c=Array;n.exports=function(l){var d;return a(l)&&(d=l.constructor,(o(d)&&(d===c||a(d.prototype))||s(d)&&(d=d[u])===null)&&(d=void 0)),d===void 0?c:d}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(e,n,i){var a=e("../internals/array-species-constructor");n.exports=function(o,s){return new(a(o))(s===0?0:s)}},{"../internals/array-species-constructor":232}],234:[function(e,n,i){var a=e("../internals/well-known-symbol")("iterator"),o=!1;try{var s=0,u={next:function(){return{done:!!s++}},return:function(){o=!0}};u[a]=function(){return this},Array.from(u,function(){throw 2})}catch{}n.exports=function(c,l){try{if(!l&&!o)return!1}catch{return!1}var d=!1;try{var h={};h[a]=function(){return{next:function(){return{done:d=!0}}}},c(h)}catch{}return d}},{"../internals/well-known-symbol":357}],235:[function(e,n,i){var a=e("../internals/function-uncurry-this"),o=a({}.toString),s=a("".slice);n.exports=function(u){return s(o(u),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(e,n,i){var a=e("../internals/to-string-tag-support"),o=e("../internals/is-callable"),s=e("../internals/classof-raw"),u=e("../internals/well-known-symbol")("toStringTag"),c=Object,l=s(function(){return arguments}())==="Arguments";n.exports=a?s:function(d){var h,f,g;return d===void 0?"Undefined":d===null?"Null":typeof(f=function(m,p){try{return m[p]}catch{}}(h=c(d),u))=="string"?f:l?s(h):(g=s(h))==="Object"&&o(h.callee)?"Arguments":g}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(e,n,i){var a=e("../internals/has-own-property"),o=e("../internals/own-keys"),s=e("../internals/object-get-own-property-descriptor"),u=e("../internals/object-define-property");n.exports=function(c,l,d){for(var h=o(l),f=u.f,g=s.f,m=0;m<h.length;m++){var p=h[m];a(c,p)||d&&a(d,p)||f(c,p,g(l,p))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(e,n,i){var a=e("../internals/well-known-symbol")("match");n.exports=function(o){var s=/./;try{"/./"[o](s)}catch{try{return s[a]=!1,"/./"[o](s)}catch{}}return!1}},{"../internals/well-known-symbol":357}],239:[function(e,n,i){var a=e("../internals/fails");n.exports=!a(function(){function o(){}return o.prototype.constructor=null,Object.getPrototypeOf(new o)!==o.prototype})},{"../internals/fails":260}],240:[function(e,n,i){n.exports=function(a,o){return{value:a,done:o}}},{}],241:[function(e,n,i){var a=e("../internals/descriptors"),o=e("../internals/object-define-property"),s=e("../internals/create-property-descriptor");n.exports=a?function(u,c,l){return o.f(u,c,s(1,l))}:function(u,c,l){return u[c]=l,u}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(e,n,i){n.exports=function(a,o){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:o}}},{}],243:[function(e,n,i){var a=e("../internals/to-property-key"),o=e("../internals/object-define-property"),s=e("../internals/create-property-descriptor");n.exports=function(u,c,l){var d=a(c);d in u?o.f(u,d,s(0,l)):u[d]=l}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(e,n,i){var a=e("../internals/make-built-in"),o=e("../internals/object-define-property");n.exports=function(s,u,c){return c.get&&a(c.get,u,{getter:!0}),c.set&&a(c.set,u,{setter:!0}),o.f(s,u,c)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(e,n,i){var a=e("../internals/is-callable"),o=e("../internals/object-define-property"),s=e("../internals/make-built-in"),u=e("../internals/define-global-property");n.exports=function(c,l,d,h){h||(h={});var f=h.enumerable,g=h.name!==void 0?h.name:l;if(a(d)&&s(d,g,h),h.global)f?c[l]=d:u(l,d);else{try{h.unsafe?c[l]&&(f=!0):delete c[l]}catch{}f?c[l]=d:o.f(c,l,{value:d,enumerable:!1,configurable:!h.nonConfigurable,writable:!h.nonWritable})}return c}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(e,n,i){var a=e("../internals/global"),o=Object.defineProperty;n.exports=function(s,u){try{o(a,s,{value:u,configurable:!0,writable:!0})}catch{a[s]=u}return u}},{"../internals/global":274}],247:[function(e,n,i){var a=e("../internals/fails");n.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},{"../internals/fails":260}],248:[function(e,n,i){var a=typeof document=="object"&&document.all,o=a===void 0&&a!==void 0;n.exports={all:a,IS_HTMLDDA:o}},{}],249:[function(e,n,i){var a=e("../internals/global"),o=e("../internals/is-object"),s=a.document,u=o(s)&&o(s.createElement);n.exports=function(c){return u?s.createElement(c):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(e,n,i){var a=e("../internals/engine-is-deno"),o=e("../internals/engine-is-node");n.exports=!a&&!o&&typeof window=="object"&&typeof document=="object"},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(e,n,i){n.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},{}],252:[function(e,n,i){var a=e("../internals/engine-user-agent");n.exports=/ipad|iphone|ipod/i.test(a)&&typeof Pebble!="undefined"},{"../internals/engine-user-agent":256}],253:[function(e,n,i){var a=e("../internals/engine-user-agent");n.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(a)},{"../internals/engine-user-agent":256}],254:[function(e,n,i){var a=e("../internals/global"),o=e("../internals/classof-raw");n.exports=o(a.process)==="process"},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(e,n,i){var a=e("../internals/engine-user-agent");n.exports=/web0s(?!.*chrome)/i.test(a)},{"../internals/engine-user-agent":256}],256:[function(e,n,i){n.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},{}],257:[function(e,n,i){var a,o,s=e("../internals/global"),u=e("../internals/engine-user-agent"),c=s.process,l=s.Deno,d=c&&c.versions||l&&l.version,h=d&&d.v8;h&&(o=(a=h.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!o&&u&&(!(a=u.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=u.match(/Chrome\/(\d+)/))&&(o=+a[1]),n.exports=o},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,n,i){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(e,n,i){var a=e("../internals/global"),o=e("../internals/object-get-own-property-descriptor").f,s=e("../internals/create-non-enumerable-property"),u=e("../internals/define-built-in"),c=e("../internals/define-global-property"),l=e("../internals/copy-constructor-properties"),d=e("../internals/is-forced");n.exports=function(h,f){var g,m,p,y,v,b=h.target,A=h.global,C=h.stat;if(g=A?a:C?a[b]||c(b,{}):(a[b]||{}).prototype)for(m in f){if(y=f[m],p=h.dontCallGetSet?(v=o(g,m))&&v.value:g[m],!d(A?m:b+(C?".":"#")+m,h.forced)&&p!==void 0){if(typeof y==typeof p)continue;l(y,p)}(h.sham||p&&p.sham)&&s(y,"sham",!0),u(g,m,y,h)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(e,n,i){n.exports=function(a){try{return!!a()}catch{return!0}}},{}],261:[function(e,n,i){var a=e("../internals/function-bind-native"),o=Function.prototype,s=o.apply,u=o.call;n.exports=typeof Reflect=="object"&&Reflect.apply||(a?u.bind(s):function(){return u.apply(s,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,n,i){var a=e("../internals/function-uncurry-this-clause"),o=e("../internals/a-callable"),s=e("../internals/function-bind-native"),u=a(a.bind);n.exports=function(c,l){return o(c),l===void 0?c:s?u(c,l):function(){return c.apply(l,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,n,i){var a=e("../internals/fails");n.exports=!a(function(){var o=function(){}.bind();return typeof o!="function"||o.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(e,n,i){var a=e("../internals/function-bind-native"),o=Function.prototype.call;n.exports=a?o.bind(o):function(){return o.apply(o,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,n,i){var a=e("../internals/descriptors"),o=e("../internals/has-own-property"),s=Function.prototype,u=a&&Object.getOwnPropertyDescriptor,c=o(s,"name"),l=c&&function(){}.name==="something",d=c&&(!a||a&&u(s,"name").configurable);n.exports={EXISTS:c,PROPER:l,CONFIGURABLE:d}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,n,i){var a=e("../internals/function-uncurry-this"),o=e("../internals/a-callable");n.exports=function(s,u,c){try{return a(o(Object.getOwnPropertyDescriptor(s,u)[c]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,n,i){var a=e("../internals/classof-raw"),o=e("../internals/function-uncurry-this");n.exports=function(s){if(a(s)==="Function")return o(s)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,n,i){var a=e("../internals/function-bind-native"),o=Function.prototype,s=o.call,u=a&&o.bind.bind(s,s);n.exports=a?u:function(c){return function(){return s.apply(c,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,n,i){var a=e("../internals/global"),o=e("../internals/is-callable"),s=function(u){return o(u)?u:void 0};n.exports=function(u,c){return arguments.length<2?s(a[u]):a[u]&&a[u][c]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,n,i){var a=e("../internals/classof"),o=e("../internals/get-method"),s=e("../internals/is-null-or-undefined"),u=e("../internals/iterators"),c=e("../internals/well-known-symbol")("iterator");n.exports=function(l){if(!s(l))return o(l,c)||o(l,"@@iterator")||u[a(l)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,n,i){var a=e("../internals/function-call"),o=e("../internals/a-callable"),s=e("../internals/an-object"),u=e("../internals/try-to-string"),c=e("../internals/get-iterator-method"),l=TypeError;n.exports=function(d,h){var f=arguments.length<2?c(d):h;if(o(f))return s(a(f,d));throw new l(u(d)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(e,n,i){var a=e("../internals/function-uncurry-this"),o=e("../internals/is-array"),s=e("../internals/is-callable"),u=e("../internals/classof-raw"),c=e("../internals/to-string"),l=a([].push);n.exports=function(d){if(s(d))return d;if(o(d)){for(var h=d.length,f=[],g=0;g<h;g++){var m=d[g];typeof m=="string"?l(f,m):typeof m!="number"&&u(m)!=="Number"&&u(m)!=="String"||l(f,c(m))}var p=f.length,y=!0;return function(v,b){if(y)return y=!1,b;if(o(this))return b;for(var A=0;A<p;A++)if(f[A]===v)return b}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(e,n,i){var a=e("../internals/a-callable"),o=e("../internals/is-null-or-undefined");n.exports=function(s,u){var c=s[u];return o(c)?void 0:a(c)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(e,n,i){(function(a){(function(){var o=function(s){return s&&s.Math===Math&&s};n.exports=o(typeof globalThis=="object"&&globalThis)||o(typeof window=="object"&&window)||o(typeof self=="object"&&self)||o(typeof a=="object"&&a)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],275:[function(e,n,i){var a=e("../internals/function-uncurry-this"),o=e("../internals/to-object"),s=a({}.hasOwnProperty);n.exports=Object.hasOwn||function(u,c){return s(o(u),c)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(e,n,i){n.exports={}},{}],277:[function(e,n,i){n.exports=function(a,o){try{arguments.length===1?console.error(a):console.error(a,o)}catch{}}},{}],278:[function(e,n,i){var a=e("../internals/get-built-in");n.exports=a("document","documentElement")},{"../internals/get-built-in":269}],279:[function(e,n,i){var a=e("../internals/descriptors"),o=e("../internals/fails"),s=e("../internals/document-create-element");n.exports=!a&&!o(function(){return Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a!==7})},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(e,n,i){var a=e("../internals/function-uncurry-this"),o=e("../internals/fails"),s=e("../internals/classof-raw"),u=Object,c=a("".split);n.exports=o(function(){return!u("z").propertyIsEnumerable(0)})?function(l){return s(l)==="String"?c(l,""):u(l)}:u},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(e,n,i){var a=e("../internals/function-uncurry-this"),o=e("../internals/is-callable"),s=e("../internals/shared-store"),u=a(Function.toString);o(s.inspectSource)||(s.inspectSource=function(c){return u(c)}),n.exports=s.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(e,n,i){var a,o,s,u=e("../internals/weak-map-basic-detection"),c=e("../internals/global"),l=e("../internals/is-object"),d=e("../internals/create-non-enumerable-property"),h=e("../internals/has-own-property"),f=e("../internals/shared-store"),g=e("../internals/shared-key"),m=e("../internals/hidden-keys"),p=c.TypeError,y=c.WeakMap;if(u||f.state){var v=f.state||(f.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,a=function(A,C){if(v.has(A))throw new p("Object already initialized");return C.facade=A,v.set(A,C),C},o=function(A){return v.get(A)||{}},s=function(A){return v.has(A)}}else{var b=g("state");m[b]=!0,a=function(A,C){if(h(A,b))throw new p("Object already initialized");return C.facade=A,d(A,b,C),C},o=function(A){return h(A,b)?A[b]:{}},s=function(A){return h(A,b)}}n.exports={set:a,get:o,has:s,enforce:function(A){return s(A)?o(A):a(A,{})},getterFor:function(A){return function(C){var M;if(!l(C)||(M=o(C)).type!==A)throw new p("Incompatible receiver, "+A+" required");return M}}}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(e,n,i){var a=e("../internals/well-known-symbol"),o=e("../internals/iterators"),s=a("iterator"),u=Array.prototype;n.exports=function(c){return c!==void 0&&(o.Array===c||u[s]===c)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(e,n,i){var a=e("../internals/classof-raw");n.exports=Array.isArray||function(o){return a(o)==="Array"}},{"../internals/classof-raw":235}],285:[function(e,n,i){var a=e("../internals/document-all"),o=a.all;n.exports=a.IS_HTMLDDA?function(s){return typeof s=="function"||s===o}:function(s){return typeof s=="function"}},{"../internals/document-all":248}],286:[function(e,n,i){var a=e("../internals/function-uncurry-this"),o=e("../internals/fails"),s=e("../internals/is-callable"),u=e("../internals/classof"),c=e("../internals/get-built-in"),l=e("../internals/inspect-source"),d=function(){},h=[],f=c("Reflect","construct"),g=/^\s*(?:class|function)\b/,m=a(g.exec),p=!g.test(d),y=function(b){if(!s(b))return!1;try{return f(d,h,b),!0}catch{return!1}},v=function(b){if(!s(b))return!1;switch(u(b)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!m(g,l(b))}catch{return!0}};v.sham=!0,n.exports=!f||o(function(){var b;return y(y.call)||!y(Object)||!y(function(){b=!0})||b})?v:y},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(e,n,i){var a=e("../internals/fails"),o=e("../internals/is-callable"),s=/#|\.prototype\./,u=function(f,g){var m=l[c(f)];return m===h||m!==d&&(o(g)?a(g):!!g)},c=u.normalize=function(f){return String(f).replace(s,".").toLowerCase()},l=u.data={},d=u.NATIVE="N",h=u.POLYFILL="P";n.exports=u},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(e,n,i){n.exports=function(a){return a==null}},{}],289:[function(e,n,i){var a=e("../internals/is-callable"),o=e("../internals/document-all"),s=o.all;n.exports=o.IS_HTMLDDA?function(u){return typeof u=="object"?u!==null:a(u)||u===s}:function(u){return typeof u=="object"?u!==null:a(u)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(e,n,i){n.exports=!1},{}],291:[function(e,n,i){var a=e("../internals/is-object"),o=e("../internals/classof-raw"),s=e("../internals/well-known-symbol")("match");n.exports=function(u){var c;return a(u)&&((c=u[s])!==void 0?!!c:o(u)==="RegExp")}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(e,n,i){var a=e("../internals/get-built-in"),o=e("../internals/is-callable"),s=e("../internals/object-is-prototype-of"),u=e("../internals/use-symbol-as-uid"),c=Object;n.exports=u?function(l){return typeof l=="symbol"}:function(l){var d=a("Symbol");return o(d)&&s(d.prototype,c(l))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(e,n,i){var a=e("../internals/function-bind-context"),o=e("../internals/function-call"),s=e("../internals/an-object"),u=e("../internals/try-to-string"),c=e("../internals/is-array-iterator-method"),l=e("../internals/length-of-array-like"),d=e("../internals/object-is-prototype-of"),h=e("../internals/get-iterator"),f=e("../internals/get-iterator-method"),g=e("../internals/iterator-close"),m=TypeError,p=function(v,b){this.stopped=v,this.result=b},y=p.prototype;n.exports=function(v,b,A){var C,M,z,W,U,G,ee,I=A&&A.that,O=!(!A||!A.AS_ENTRIES),T=!(!A||!A.IS_RECORD),S=!(!A||!A.IS_ITERATOR),x=!(!A||!A.INTERRUPTED),w=a(b,I),_=function(R){return C&&g(C,"normal",R),new p(!0,R)},E=function(R){return O?(s(R),x?w(R[0],R[1],_):w(R[0],R[1])):x?w(R,_):w(R)};if(T)C=v.iterator;else if(S)C=v;else{if(!(M=f(v)))throw new m(u(v)+" is not iterable");if(c(M)){for(z=0,W=l(v);W>z;z++)if((U=E(v[z]))&&d(y,U))return U;return new p(!1)}C=h(v,M)}for(G=T?v.next:C.next;!(ee=o(G,C)).done;){try{U=E(ee.value)}catch(R){g(C,"throw",R)}if(typeof U=="object"&&U&&d(y,U))return U}return new p(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(e,n,i){var a=e("../internals/function-call"),o=e("../internals/an-object"),s=e("../internals/get-method");n.exports=function(u,c,l){var d,h;o(u);try{if(!(d=s(u,"return"))){if(c==="throw")throw l;return l}d=a(d,u)}catch(f){h=!0,d=f}if(c==="throw")throw l;if(h)throw d;return o(d),l}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,n,i){var a=e("../internals/iterators-core").IteratorPrototype,o=e("../internals/object-create"),s=e("../internals/create-property-descriptor"),u=e("../internals/set-to-string-tag"),c=e("../internals/iterators"),l=function(){return this};n.exports=function(d,h,f,g){var m=h+" Iterator";return d.prototype=o(a,{next:s(+!g,f)}),u(d,m,!1,!0),c[m]=l,d}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/function-call"),s=e("../internals/is-pure"),u=e("../internals/function-name"),c=e("../internals/is-callable"),l=e("../internals/iterator-create-constructor"),d=e("../internals/object-get-prototype-of"),h=e("../internals/object-set-prototype-of"),f=e("../internals/set-to-string-tag"),g=e("../internals/create-non-enumerable-property"),m=e("../internals/define-built-in"),p=e("../internals/well-known-symbol"),y=e("../internals/iterators"),v=e("../internals/iterators-core"),b=u.PROPER,A=u.CONFIGURABLE,C=v.IteratorPrototype,M=v.BUGGY_SAFARI_ITERATORS,z=p("iterator"),W=function(){return this};n.exports=function(U,G,ee,I,O,T,S){l(ee,G,I);var x,w,_,E=function($){if($===O&&K)return K;if(!M&&$&&$ in B)return B[$];switch($){case"keys":case"values":case"entries":return function(){return new ee(this,$)}}return function(){return new ee(this)}},R=G+" Iterator",F=!1,B=U.prototype,X=B[z]||B["@@iterator"]||O&&B[O],K=!M&&X||E(O),te=G==="Array"&&B.entries||X;if(te&&(x=d(te.call(new U)))!==Object.prototype&&x.next&&(s||d(x)===C||(h?h(x,C):c(x[z])||m(x,z,W)),f(x,R,!0,!0),s&&(y[R]=W)),b&&O==="values"&&X&&X.name!=="values"&&(!s&&A?g(B,"name","values"):(F=!0,K=function(){return o(X,this)})),O)if(w={values:E("values"),keys:T?K:E("keys"),entries:E("entries")},S)for(_ in w)(M||F||!(_ in B))&&m(B,_,w[_]);else a({target:G,proto:!0,forced:M||F},w);return s&&!S||B[z]===K||m(B,z,K,{name:O}),y[G]=K,w}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(e,n,i){var a,o,s,u=e("../internals/fails"),c=e("../internals/is-callable"),l=e("../internals/is-object"),d=e("../internals/object-create"),h=e("../internals/object-get-prototype-of"),f=e("../internals/define-built-in"),g=e("../internals/well-known-symbol"),m=e("../internals/is-pure"),p=g("iterator"),y=!1;[].keys&&("next"in(s=[].keys())?(o=h(h(s)))!==Object.prototype&&(a=o):y=!0),!l(a)||u(function(){var v={};return a[p].call(v)!==v})?a={}:m&&(a=d(a)),c(a[p])||f(a,p,function(){return this}),n.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:y}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(e,n,i){arguments[4][276][0].apply(i,arguments)},{dup:276}],299:[function(e,n,i){var a=e("../internals/to-length");n.exports=function(o){return a(o.length)}},{"../internals/to-length":343}],300:[function(e,n,i){var a=e("../internals/function-uncurry-this"),o=e("../internals/fails"),s=e("../internals/is-callable"),u=e("../internals/has-own-property"),c=e("../internals/descriptors"),l=e("../internals/function-name").CONFIGURABLE,d=e("../internals/inspect-source"),h=e("../internals/internal-state"),f=h.enforce,g=h.get,m=String,p=Object.defineProperty,y=a("".slice),v=a("".replace),b=a([].join),A=c&&!o(function(){return p(function(){},"length",{value:8}).length!==8}),C=String(String).split("String"),M=n.exports=function(z,W,U){y(m(W),0,7)==="Symbol("&&(W="["+v(m(W),/^Symbol\(([^)]*)\)/,"$1")+"]"),U&&U.getter&&(W="get "+W),U&&U.setter&&(W="set "+W),(!u(z,"name")||l&&z.name!==W)&&(c?p(z,"name",{value:W,configurable:!0}):z.name=W),A&&U&&u(U,"arity")&&z.length!==U.arity&&p(z,"length",{value:U.arity});try{U&&u(U,"constructor")&&U.constructor?c&&p(z,"prototype",{writable:!1}):z.prototype&&(z.prototype=void 0)}catch{}var G=f(z);return u(G,"source")||(G.source=b(C,typeof W=="string"?W:"")),z};Function.prototype.toString=M(function(){return s(this)&&g(this).source||d(this)},"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(e,n,i){var a=Math.ceil,o=Math.floor;n.exports=Math.trunc||function(s){var u=+s;return(u>0?o:a)(u)}},{}],302:[function(e,n,i){var a,o,s,u,c,l=e("../internals/global"),d=e("../internals/function-bind-context"),h=e("../internals/object-get-own-property-descriptor").f,f=e("../internals/task").set,g=e("../internals/queue"),m=e("../internals/engine-is-ios"),p=e("../internals/engine-is-ios-pebble"),y=e("../internals/engine-is-webos-webkit"),v=e("../internals/engine-is-node"),b=l.MutationObserver||l.WebKitMutationObserver,A=l.document,C=l.process,M=l.Promise,z=h(l,"queueMicrotask"),W=z&&z.value;if(!W){var U=new g,G=function(){var ee,I;for(v&&(ee=C.domain)&&ee.exit();I=U.get();)try{I()}catch(O){throw U.head&&a(),O}ee&&ee.enter()};m||v||y||!b||!A?!p&&M&&M.resolve?((u=M.resolve(void 0)).constructor=M,c=d(u.then,u),a=function(){c(G)}):v?a=function(){C.nextTick(G)}:(f=d(f,l),a=function(){f(G)}):(o=!0,s=A.createTextNode(""),new b(G).observe(s,{characterData:!0}),a=function(){s.data=o=!o}),W=function(ee){U.head||a(),U.add(ee)}}n.exports=W},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(e,n,i){var a=e("../internals/a-callable"),o=TypeError,s=function(u){var c,l;this.promise=new u(function(d,h){if(c!==void 0||l!==void 0)throw new o("Bad Promise constructor");c=d,l=h}),this.resolve=a(c),this.reject=a(l)};n.exports.f=function(u){return new s(u)}},{"../internals/a-callable":222}],304:[function(e,n,i){var a=e("../internals/is-regexp"),o=TypeError;n.exports=function(s){if(a(s))throw new o("The method doesn't accept regular expressions");return s}},{"../internals/is-regexp":291}],305:[function(e,n,i){var a=e("../internals/descriptors"),o=e("../internals/function-uncurry-this"),s=e("../internals/function-call"),u=e("../internals/fails"),c=e("../internals/object-keys"),l=e("../internals/object-get-own-property-symbols"),d=e("../internals/object-property-is-enumerable"),h=e("../internals/to-object"),f=e("../internals/indexed-object"),g=Object.assign,m=Object.defineProperty,p=o([].concat);n.exports=!g||u(function(){if(a&&g({b:1},g(m({},"a",{enumerable:!0,get:function(){m(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var y={},v={},b=Symbol("assign detection");return y[b]=7,"abcdefghijklmnopqrst".split("").forEach(function(A){v[A]=A}),g({},y)[b]!==7||c(g({},v)).join("")!=="abcdefghijklmnopqrst"})?function(y,v){for(var b=h(y),A=arguments.length,C=1,M=l.f,z=d.f;A>C;)for(var W,U=f(arguments[C++]),G=M?p(c(U),M(U)):c(U),ee=G.length,I=0;ee>I;)W=G[I++],a&&!s(z,U,W)||(b[W]=U[W]);return b}:g},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(e,n,i){var a,o=e("../internals/an-object"),s=e("../internals/object-define-properties"),u=e("../internals/enum-bug-keys"),c=e("../internals/hidden-keys"),l=e("../internals/html"),d=e("../internals/document-create-element"),h=e("../internals/shared-key"),f=h("IE_PROTO"),g=function(){},m=function(v){return"<script>"+v+"<\/script>"},p=function(v){v.write(m("")),v.close();var b=v.parentWindow.Object;return v=null,b},y=function(){try{a=new ActiveXObject("htmlfile")}catch{}var v,b;y=typeof document!="undefined"?document.domain&&a?p(a):((b=d("iframe")).style.display="none",l.appendChild(b),b.src=String("javascript:"),(v=b.contentWindow.document).open(),v.write(m("document.F=Object")),v.close(),v.F):p(a);for(var A=u.length;A--;)delete y.prototype[u[A]];return y()};c[f]=!0,n.exports=Object.create||function(v,b){var A;return v!==null?(g.prototype=o(v),A=new g,g.prototype=null,A[f]=v):A=y(),b===void 0?A:s.f(A,b)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(e,n,i){var a=e("../internals/descriptors"),o=e("../internals/v8-prototype-define-bug"),s=e("../internals/object-define-property"),u=e("../internals/an-object"),c=e("../internals/to-indexed-object"),l=e("../internals/object-keys");i.f=a&&!o?Object.defineProperties:function(d,h){u(d);for(var f,g=c(h),m=l(h),p=m.length,y=0;p>y;)s.f(d,f=m[y++],g[f]);return d}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(e,n,i){var a=e("../internals/descriptors"),o=e("../internals/ie8-dom-define"),s=e("../internals/v8-prototype-define-bug"),u=e("../internals/an-object"),c=e("../internals/to-property-key"),l=TypeError,d=Object.defineProperty,h=Object.getOwnPropertyDescriptor;i.f=a?s?function(f,g,m){if(u(f),g=c(g),u(m),typeof f=="function"&&g==="prototype"&&"value"in m&&"writable"in m&&!m.writable){var p=h(f,g);p&&p.writable&&(f[g]=m.value,m={configurable:"configurable"in m?m.configurable:p.configurable,enumerable:"enumerable"in m?m.enumerable:p.enumerable,writable:!1})}return d(f,g,m)}:d:function(f,g,m){if(u(f),g=c(g),u(m),o)try{return d(f,g,m)}catch{}if("get"in m||"set"in m)throw new l("Accessors not supported");return"value"in m&&(f[g]=m.value),f}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(e,n,i){var a=e("../internals/descriptors"),o=e("../internals/function-call"),s=e("../internals/object-property-is-enumerable"),u=e("../internals/create-property-descriptor"),c=e("../internals/to-indexed-object"),l=e("../internals/to-property-key"),d=e("../internals/has-own-property"),h=e("../internals/ie8-dom-define"),f=Object.getOwnPropertyDescriptor;i.f=a?f:function(g,m){if(g=c(g),m=l(m),h)try{return f(g,m)}catch{}if(d(g,m))return u(!o(s.f,g,m),g[m])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(e,n,i){var a=e("../internals/classof-raw"),o=e("../internals/to-indexed-object"),s=e("../internals/object-get-own-property-names").f,u=e("../internals/array-slice-simple"),c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(l){return c&&a(l)==="Window"?function(d){try{return s(d)}catch{return u(c)}}(l):s(o(l))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(e,n,i){var a=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys").concat("length","prototype");i.f=Object.getOwnPropertyNames||function(s){return a(s,o)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(e,n,i){i.f=Object.getOwnPropertySymbols},{}],313:[function(e,n,i){var a=e("../internals/has-own-property"),o=e("../internals/is-callable"),s=e("../internals/to-object"),u=e("../internals/shared-key"),c=e("../internals/correct-prototype-getter"),l=u("IE_PROTO"),d=Object,h=d.prototype;n.exports=c?d.getPrototypeOf:function(f){var g=s(f);if(a(g,l))return g[l];var m=g.constructor;return o(m)&&g instanceof m?m.prototype:g instanceof d?h:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(e,n,i){var a=e("../internals/function-uncurry-this");n.exports=a({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(e,n,i){var a=e("../internals/function-uncurry-this"),o=e("../internals/has-own-property"),s=e("../internals/to-indexed-object"),u=e("../internals/array-includes").indexOf,c=e("../internals/hidden-keys"),l=a([].push);n.exports=function(d,h){var f,g=s(d),m=0,p=[];for(f in g)!o(c,f)&&o(g,f)&&l(p,f);for(;h.length>m;)o(g,f=h[m++])&&(~u(p,f)||l(p,f));return p}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(e,n,i){var a=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys");n.exports=Object.keys||function(s){return a(s,o)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(e,n,i){var a={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,s=o&&!a.call({1:2},1);i.f=s?function(u){var c=o(this,u);return!!c&&c.enumerable}:a},{}],318:[function(e,n,i){var a=e("../internals/function-uncurry-this-accessor"),o=e("../internals/an-object"),s=e("../internals/a-possible-prototype");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u,c=!1,l={};try{(u=a(Object.prototype,"__proto__","set"))(l,[]),c=l instanceof Array}catch{}return function(d,h){return o(d),s(h),c?u(d,h):d.__proto__=h,d}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(e,n,i){var a=e("../internals/descriptors"),o=e("../internals/fails"),s=e("../internals/function-uncurry-this"),u=e("../internals/object-get-prototype-of"),c=e("../internals/object-keys"),l=e("../internals/to-indexed-object"),d=s(e("../internals/object-property-is-enumerable").f),h=s([].push),f=a&&o(function(){var m=Object.create(null);return m[2]=2,!d(m,2)}),g=function(m){return function(p){for(var y,v=l(p),b=c(v),A=f&&u(v)===null,C=b.length,M=0,z=[];C>M;)y=b[M++],a&&!(A?y in v:d(v,y))||h(z,m?[y,v[y]]:v[y]);return z}};n.exports={entries:g(!0),values:g(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(e,n,i){var a=e("../internals/function-call"),o=e("../internals/is-callable"),s=e("../internals/is-object"),u=TypeError;n.exports=function(c,l){var d,h;if(l==="string"&&o(d=c.toString)&&!s(h=a(d,c))||o(d=c.valueOf)&&!s(h=a(d,c))||l!=="string"&&o(d=c.toString)&&!s(h=a(d,c)))return h;throw new u("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(e,n,i){var a=e("../internals/get-built-in"),o=e("../internals/function-uncurry-this"),s=e("../internals/object-get-own-property-names"),u=e("../internals/object-get-own-property-symbols"),c=e("../internals/an-object"),l=o([].concat);n.exports=a("Reflect","ownKeys")||function(d){var h=s.f(c(d)),f=u.f;return f?l(h,f(d)):h}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(e,n,i){var a=e("../internals/global");n.exports=a},{"../internals/global":274}],323:[function(e,n,i){n.exports=function(a){try{return{error:!1,value:a()}}catch(o){return{error:!0,value:o}}}},{}],324:[function(e,n,i){var a=e("../internals/global"),o=e("../internals/promise-native-constructor"),s=e("../internals/is-callable"),u=e("../internals/is-forced"),c=e("../internals/inspect-source"),l=e("../internals/well-known-symbol"),d=e("../internals/engine-is-browser"),h=e("../internals/engine-is-deno"),f=e("../internals/is-pure"),g=e("../internals/engine-v8-version"),m=o&&o.prototype,p=l("species"),y=!1,v=s(a.PromiseRejectionEvent),b=u("Promise",function(){var A=c(o),C=A!==String(o);if(!C&&g===66||f&&(!m.catch||!m.finally))return!0;if(!g||g<51||!/native code/.test(A)){var M=new o(function(W){W(1)}),z=function(W){W(function(){},function(){})};if((M.constructor={})[p]=z,!(y=M.then(function(){})instanceof z))return!0}return!C&&(d||h)&&!v});n.exports={CONSTRUCTOR:b,REJECTION_EVENT:v,SUBCLASSING:y}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(e,n,i){var a=e("../internals/global");n.exports=a.Promise},{"../internals/global":274}],326:[function(e,n,i){var a=e("../internals/an-object"),o=e("../internals/is-object"),s=e("../internals/new-promise-capability");n.exports=function(u,c){if(a(u),o(c)&&c.constructor===u)return c;var l=s.f(u);return(0,l.resolve)(c),l.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(e,n,i){var a=e("../internals/promise-native-constructor"),o=e("../internals/check-correctness-of-iteration"),s=e("../internals/promise-constructor-detection").CONSTRUCTOR;n.exports=s||!o(function(u){a.all(u).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(e,n,i){var a=function(){this.head=null,this.tail=null};a.prototype={add:function(o){var s={item:o,next:null},u=this.tail;u?u.next=s:this.head=s,this.tail=s},get:function(){var o=this.head;if(o)return(this.head=o.next)===null&&(this.tail=null),o.item}},n.exports=a},{}],329:[function(e,n,i){var a=e("../internals/is-null-or-undefined"),o=TypeError;n.exports=function(s){if(a(s))throw new o("Can't call method on "+s);return s}},{"../internals/is-null-or-undefined":288}],330:[function(e,n,i){var a=e("../internals/get-built-in"),o=e("../internals/define-built-in-accessor"),s=e("../internals/well-known-symbol"),u=e("../internals/descriptors"),c=s("species");n.exports=function(l){var d=a(l);u&&d&&!d[c]&&o(d,c,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(e,n,i){var a=e("../internals/object-define-property").f,o=e("../internals/has-own-property"),s=e("../internals/well-known-symbol")("toStringTag");n.exports=function(u,c,l){u&&!l&&(u=u.prototype),u&&!o(u,s)&&a(u,s,{configurable:!0,value:c})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(e,n,i){var a=e("../internals/shared"),o=e("../internals/uid"),s=a("keys");n.exports=function(u){return s[u]||(s[u]=o(u))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(e,n,i){var a=e("../internals/global"),o=e("../internals/define-global-property"),s=a["__core-js_shared__"]||o("__core-js_shared__",{});n.exports=s},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(e,n,i){var a=e("../internals/is-pure"),o=e("../internals/shared-store");(n.exports=function(s,u){return o[s]||(o[s]=u!==void 0?u:{})})("versions",[]).push({version:"3.33.0",mode:a?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(e,n,i){var a=e("../internals/an-object"),o=e("../internals/a-constructor"),s=e("../internals/is-null-or-undefined"),u=e("../internals/well-known-symbol")("species");n.exports=function(c,l){var d,h=a(c).constructor;return h===void 0||s(d=a(h)[u])?l:o(d)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(e,n,i){var a=e("../internals/engine-v8-version"),o=e("../internals/fails"),s=e("../internals/global").String;n.exports=!!Object.getOwnPropertySymbols&&!o(function(){var u=Symbol("symbol detection");return!s(u)||!(Object(u)instanceof Symbol)||!Symbol.sham&&a&&a<41})},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(e,n,i){var a=e("../internals/function-call"),o=e("../internals/get-built-in"),s=e("../internals/well-known-symbol"),u=e("../internals/define-built-in");n.exports=function(){var c=o("Symbol"),l=c&&c.prototype,d=l&&l.valueOf,h=s("toPrimitive");l&&!l[h]&&u(l,h,function(f){return a(d,this)},{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(e,n,i){var a=e("../internals/symbol-constructor-detection");n.exports=a&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(e,n,i){var a,o,s,u,c=e("../internals/global"),l=e("../internals/function-apply"),d=e("../internals/function-bind-context"),h=e("../internals/is-callable"),f=e("../internals/has-own-property"),g=e("../internals/fails"),m=e("../internals/html"),p=e("../internals/array-slice"),y=e("../internals/document-create-element"),v=e("../internals/validate-arguments-length"),b=e("../internals/engine-is-ios"),A=e("../internals/engine-is-node"),C=c.setImmediate,M=c.clearImmediate,z=c.process,W=c.Dispatch,U=c.Function,G=c.MessageChannel,ee=c.String,I=0,O={};g(function(){a=c.location});var T=function(_){if(f(O,_)){var E=O[_];delete O[_],E()}},S=function(_){return function(){T(_)}},x=function(_){T(_.data)},w=function(_){c.postMessage(ee(_),a.protocol+"//"+a.host)};C&&M||(C=function(_){v(arguments.length,1);var E=h(_)?_:U(_),R=p(arguments,1);return O[++I]=function(){l(E,void 0,R)},o(I),I},M=function(_){delete O[_]},A?o=function(_){z.nextTick(S(_))}:W&&W.now?o=function(_){W.now(S(_))}:G&&!b?(u=(s=new G).port2,s.port1.onmessage=x,o=d(u.postMessage,u)):c.addEventListener&&h(c.postMessage)&&!c.importScripts&&a&&a.protocol!=="file:"&&!g(w)?(o=w,c.addEventListener("message",x,!1)):o="onreadystatechange"in y("script")?function(_){m.appendChild(y("script")).onreadystatechange=function(){m.removeChild(this),T(_)}}:function(_){setTimeout(S(_),0)}),n.exports={set:C,clear:M}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(e,n,i){var a=e("../internals/to-integer-or-infinity"),o=Math.max,s=Math.min;n.exports=function(u,c){var l=a(u);return l<0?o(l+c,0):s(l,c)}},{"../internals/to-integer-or-infinity":342}],341:[function(e,n,i){var a=e("../internals/indexed-object"),o=e("../internals/require-object-coercible");n.exports=function(s){return a(o(s))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(e,n,i){var a=e("../internals/math-trunc");n.exports=function(o){var s=+o;return s!=s||s===0?0:a(s)}},{"../internals/math-trunc":301}],343:[function(e,n,i){var a=e("../internals/to-integer-or-infinity"),o=Math.min;n.exports=function(s){return s>0?o(a(s),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(e,n,i){var a=e("../internals/require-object-coercible"),o=Object;n.exports=function(s){return o(a(s))}},{"../internals/require-object-coercible":329}],345:[function(e,n,i){var a=e("../internals/function-call"),o=e("../internals/is-object"),s=e("../internals/is-symbol"),u=e("../internals/get-method"),c=e("../internals/ordinary-to-primitive"),l=e("../internals/well-known-symbol"),d=TypeError,h=l("toPrimitive");n.exports=function(f,g){if(!o(f)||s(f))return f;var m,p=u(f,h);if(p){if(g===void 0&&(g="default"),m=a(p,f,g),!o(m)||s(m))return m;throw new d("Can't convert object to primitive value")}return g===void 0&&(g="number"),c(f,g)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(e,n,i){var a=e("../internals/to-primitive"),o=e("../internals/is-symbol");n.exports=function(s){var u=a(s,"string");return o(u)?u:u+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(e,n,i){var a={};a[e("../internals/well-known-symbol")("toStringTag")]="z",n.exports=String(a)==="[object z]"},{"../internals/well-known-symbol":357}],348:[function(e,n,i){var a=e("../internals/classof"),o=String;n.exports=function(s){if(a(s)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return o(s)}},{"../internals/classof":236}],349:[function(e,n,i){var a=String;n.exports=function(o){try{return a(o)}catch{return"Object"}}},{}],350:[function(e,n,i){var a=e("../internals/function-uncurry-this"),o=0,s=Math.random(),u=a(1 .toString);n.exports=function(c){return"Symbol("+(c===void 0?"":c)+")_"+u(++o+s,36)}},{"../internals/function-uncurry-this":268}],351:[function(e,n,i){var a=e("../internals/symbol-constructor-detection");n.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/symbol-constructor-detection":336}],352:[function(e,n,i){var a=e("../internals/descriptors"),o=e("../internals/fails");n.exports=a&&o(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(e,n,i){var a=TypeError;n.exports=function(o,s){if(o<s)throw new a("Not enough arguments");return o}},{}],354:[function(e,n,i){var a=e("../internals/global"),o=e("../internals/is-callable"),s=a.WeakMap;n.exports=o(s)&&/native code/.test(String(s))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(e,n,i){var a=e("../internals/path"),o=e("../internals/has-own-property"),s=e("../internals/well-known-symbol-wrapped"),u=e("../internals/object-define-property").f;n.exports=function(c){var l=a.Symbol||(a.Symbol={});o(l,c)||u(l,c,{value:s.f(c)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(e,n,i){var a=e("../internals/well-known-symbol");i.f=a},{"../internals/well-known-symbol":357}],357:[function(e,n,i){var a=e("../internals/global"),o=e("../internals/shared"),s=e("../internals/has-own-property"),u=e("../internals/uid"),c=e("../internals/symbol-constructor-detection"),l=e("../internals/use-symbol-as-uid"),d=a.Symbol,h=o("wks"),f=l?d.for||d:d&&d.withoutSetter||u;n.exports=function(g){return s(h,g)||(h[g]=c&&s(d,g)?d[g]:f("Symbol."+g)),h[g]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/array-iteration").findIndex,s=e("../internals/add-to-unscopables"),u=!0;"findIndex"in[]&&Array(1).findIndex(function(){u=!1}),a({target:"Array",proto:!0,forced:u},{findIndex:function(c){return o(this,c,arguments.length>1?arguments[1]:void 0)}}),s("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/array-iteration").find,s=e("../internals/add-to-unscopables"),u=!0;"find"in[]&&Array(1).find(function(){u=!1}),a({target:"Array",proto:!0,forced:u},{find:function(c){return o(this,c,arguments.length>1?arguments[1]:void 0)}}),s("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/array-includes").includes,s=e("../internals/fails"),u=e("../internals/add-to-unscopables");a({target:"Array",proto:!0,forced:s(function(){return!Array(1).includes()})},{includes:function(c){return o(this,c,arguments.length>1?arguments[1]:void 0)}}),u("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(e,n,i){var a=e("../internals/to-indexed-object"),o=e("../internals/add-to-unscopables"),s=e("../internals/iterators"),u=e("../internals/internal-state"),c=e("../internals/object-define-property").f,l=e("../internals/iterator-define"),d=e("../internals/create-iter-result-object"),h=e("../internals/is-pure"),f=e("../internals/descriptors"),g=u.set,m=u.getterFor("Array Iterator");n.exports=l(Array,"Array",function(y,v){g(this,{type:"Array Iterator",target:a(y),index:0,kind:v})},function(){var y=m(this),v=y.target,b=y.kind,A=y.index++;if(!v||A>=v.length)return y.target=void 0,d(void 0,!0);switch(b){case"keys":return d(A,!1);case"values":return d(v[A],!1)}return d([A,v[A]],!1)},"values");var p=s.Arguments=s.Array;if(o("keys"),o("values"),o("entries"),!h&&f&&p.name!=="values")try{c(p,"name",{value:"values"})}catch{}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/get-built-in"),s=e("../internals/function-apply"),u=e("../internals/function-call"),c=e("../internals/function-uncurry-this"),l=e("../internals/fails"),d=e("../internals/is-callable"),h=e("../internals/is-symbol"),f=e("../internals/array-slice"),g=e("../internals/get-json-replacer-function"),m=e("../internals/symbol-constructor-detection"),p=String,y=o("JSON","stringify"),v=c(/./.exec),b=c("".charAt),A=c("".charCodeAt),C=c("".replace),M=c(1 .toString),z=/[\uD800-\uDFFF]/g,W=/^[\uD800-\uDBFF]$/,U=/^[\uDC00-\uDFFF]$/,G=!m||l(function(){var T=o("Symbol")("stringify detection");return y([T])!=="[null]"||y({a:T})!=="{}"||y(Object(T))!=="{}"}),ee=l(function(){return y("\uDF06\uD834")!=='"\\udf06\\ud834"'||y("\uDEAD")!=='"\\udead"'}),I=function(T,S){var x=f(arguments),w=g(S);if(d(w)||T!==void 0&&!h(T))return x[1]=function(_,E){if(d(w)&&(E=u(w,this,p(_),E)),!h(E))return E},s(y,null,x)},O=function(T,S,x){var w=b(x,S-1),_=b(x,S+1);return v(W,T)&&!v(U,_)||v(U,T)&&!v(W,w)?"\\u"+M(A(T,0),16):T};y&&a({target:"JSON",stat:!0,arity:3,forced:G||ee},{stringify:function(T,S,x){var w=f(arguments),_=s(G?I:y,null,w);return ee&&typeof _=="string"?C(_,z,O):_}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(e,n,i){e("../internals/export")({target:"Number",stat:!0},{isNaN:function(a){return a!=a}})},{"../internals/export":259}],364:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/object-assign");a({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/symbol-constructor-detection"),s=e("../internals/fails"),u=e("../internals/object-get-own-property-symbols"),c=e("../internals/to-object");a({target:"Object",stat:!0,forced:!o||s(function(){u.f(1)})},{getOwnPropertySymbols:function(l){var d=u.f;return d?d(c(l)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/to-object"),s=e("../internals/object-keys");a({target:"Object",stat:!0,forced:e("../internals/fails")(function(){s(1)})},{keys:function(u){return s(o(u))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/object-to-array").values;a({target:"Object",stat:!0},{values:function(s){return o(s)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/function-call"),s=e("../internals/a-callable"),u=e("../internals/new-promise-capability"),c=e("../internals/perform"),l=e("../internals/iterate");a({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(d){var h=this,f=u.f(h),g=f.resolve,m=f.reject,p=c(function(){var y=s(h.resolve),v=[],b=0,A=1;l(d,function(C){var M=b++,z=!1;A++,o(y,h,C).then(function(W){z||(z=!0,v[M]=W,--A||g(v))},m)}),--A||g(v)});return p.error&&m(p.value),f.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/is-pure"),s=e("../internals/promise-constructor-detection").CONSTRUCTOR,u=e("../internals/promise-native-constructor"),c=e("../internals/get-built-in"),l=e("../internals/is-callable"),d=e("../internals/define-built-in"),h=u&&u.prototype;if(a({target:"Promise",proto:!0,forced:s,real:!0},{catch:function(g){return this.then(void 0,g)}}),!o&&l(u)){var f=c("Promise").prototype.catch;h.catch!==f&&d(h,"catch",f,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(e,n,i){var a,o,s,u=e("../internals/export"),c=e("../internals/is-pure"),l=e("../internals/engine-is-node"),d=e("../internals/global"),h=e("../internals/function-call"),f=e("../internals/define-built-in"),g=e("../internals/object-set-prototype-of"),m=e("../internals/set-to-string-tag"),p=e("../internals/set-species"),y=e("../internals/a-callable"),v=e("../internals/is-callable"),b=e("../internals/is-object"),A=e("../internals/an-instance"),C=e("../internals/species-constructor"),M=e("../internals/task").set,z=e("../internals/microtask"),W=e("../internals/host-report-errors"),U=e("../internals/perform"),G=e("../internals/queue"),ee=e("../internals/internal-state"),I=e("../internals/promise-native-constructor"),O=e("../internals/promise-constructor-detection"),T=e("../internals/new-promise-capability"),S=O.CONSTRUCTOR,x=O.REJECTION_EVENT,w=O.SUBCLASSING,_=ee.getterFor("Promise"),E=ee.set,R=I&&I.prototype,F=I,B=R,X=d.TypeError,K=d.document,te=d.process,$=T.f,q=$,k=!!(K&&K.createEvent&&d.dispatchEvent),L=function(Z){var oe;return!(!b(Z)||!v(oe=Z.then))&&oe},V=function(Z,oe){var ce,ne,se,fe=oe.value,de=oe.state===1,ve=de?Z.ok:Z.fail,Ee=Z.resolve,Se=Z.reject,Ne=Z.domain;try{ve?(de||(oe.rejection===2&&ue(oe),oe.rejection=1),ve===!0?ce=fe:(Ne&&Ne.enter(),ce=ve(fe),Ne&&(Ne.exit(),se=!0)),ce===Z.promise?Se(new X("Promise-chain cycle")):(ne=L(ce))?h(ne,ce,Ee,Se):Ee(ce)):Se(fe)}catch(He){Ne&&!se&&Ne.exit(),Se(He)}},J=function(Z,oe){Z.notified||(Z.notified=!0,z(function(){for(var ce,ne=Z.reactions;ce=ne.get();)V(ce,Z);Z.notified=!1,oe&&!Z.rejection&&ae(Z)}))},re=function(Z,oe,ce){var ne,se;k?((ne=K.createEvent("Event")).promise=oe,ne.reason=ce,ne.initEvent(Z,!1,!0),d.dispatchEvent(ne)):ne={promise:oe,reason:ce},!x&&(se=d["on"+Z])?se(ne):Z==="unhandledrejection"&&W("Unhandled promise rejection",ce)},ae=function(Z){h(M,d,function(){var oe,ce=Z.facade,ne=Z.value;if(j(Z)&&(oe=U(function(){l?te.emit("unhandledRejection",ne,ce):re("unhandledrejection",ce,ne)}),Z.rejection=l||j(Z)?2:1,oe.error))throw oe.value})},j=function(Z){return Z.rejection!==1&&!Z.parent},ue=function(Z){h(M,d,function(){var oe=Z.facade;l?te.emit("rejectionHandled",oe):re("rejectionhandled",oe,Z.value)})},Q=function(Z,oe,ce){return function(ne){Z(oe,ne,ce)}},P=function(Z,oe,ce){Z.done||(Z.done=!0,ce&&(Z=ce),Z.value=oe,Z.state=2,J(Z,!0))},H=function(Z,oe,ce){if(!Z.done){Z.done=!0,ce&&(Z=ce);try{if(Z.facade===oe)throw new X("Promise can't be resolved itself");var ne=L(oe);ne?z(function(){var se={done:!1};try{h(ne,oe,Q(H,se,Z),Q(P,se,Z))}catch(fe){P(se,fe,Z)}}):(Z.value=oe,Z.state=1,J(Z,!1))}catch(se){P({done:!1},se,Z)}}};if(S&&(B=(F=function(Z){A(this,B),y(Z),h(a,this);var oe=_(this);try{Z(Q(H,oe),Q(P,oe))}catch(ce){P(oe,ce)}}).prototype,(a=function(Z){E(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new G,rejection:!1,state:0,value:void 0})}).prototype=f(B,"then",function(Z,oe){var ce=_(this),ne=$(C(this,F));return ce.parent=!0,ne.ok=!v(Z)||Z,ne.fail=v(oe)&&oe,ne.domain=l?te.domain:void 0,ce.state===0?ce.reactions.add(ne):z(function(){V(ne,ce)}),ne.promise}),o=function(){var Z=new a,oe=_(Z);this.promise=Z,this.resolve=Q(H,oe),this.reject=Q(P,oe)},T.f=$=function(Z){return Z===F||Z===void 0?new o(Z):q(Z)},!c&&v(I)&&R!==Object.prototype)){s=R.then,w||f(R,"then",function(Z,oe){var ce=this;return new F(function(ne,se){h(s,ce,ne,se)}).then(Z,oe)},{unsafe:!0});try{delete R.constructor}catch{}g&&g(R,B)}u({global:!0,constructor:!0,wrap:!0,forced:S},{Promise:F}),m(F,"Promise",!1,!0),p("Promise")},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/is-pure"),s=e("../internals/promise-native-constructor"),u=e("../internals/fails"),c=e("../internals/get-built-in"),l=e("../internals/is-callable"),d=e("../internals/species-constructor"),h=e("../internals/promise-resolve"),f=e("../internals/define-built-in"),g=s&&s.prototype;if(a({target:"Promise",proto:!0,real:!0,forced:!!s&&u(function(){g.finally.call({then:function(){}},function(){})})},{finally:function(p){var y=d(this,c("Promise")),v=l(p);return this.then(v?function(b){return h(y,p()).then(function(){return b})}:p,v?function(b){return h(y,p()).then(function(){throw b})}:p)}}),!o&&l(s)){var m=c("Promise").prototype.finally;g.finally!==m&&f(g,"finally",m,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(e,n,i){e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/function-call"),s=e("../internals/a-callable"),u=e("../internals/new-promise-capability"),c=e("../internals/perform"),l=e("../internals/iterate");a({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(d){var h=this,f=u.f(h),g=f.reject,m=c(function(){var p=s(h.resolve);l(d,function(y){o(p,h,y).then(f.resolve,g)})});return m.error&&g(m.value),f.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/function-call"),s=e("../internals/new-promise-capability");a({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(u){var c=s.f(this);return o(c.reject,void 0,u),c.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/get-built-in"),s=e("../internals/is-pure"),u=e("../internals/promise-native-constructor"),c=e("../internals/promise-constructor-detection").CONSTRUCTOR,l=e("../internals/promise-resolve"),d=o("Promise"),h=s&&!c;a({target:"Promise",stat:!0,forced:s||c},{resolve:function(f){return l(h&&this===d?u:this,f)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/function-uncurry-this"),s=e("../internals/to-absolute-index"),u=RangeError,c=String.fromCharCode,l=String.fromCodePoint,d=o([].join);a({target:"String",stat:!0,arity:1,forced:!!l&&l.length!==1},{fromCodePoint:function(h){for(var f,g=[],m=arguments.length,p=0;m>p;){if(f=+arguments[p++],s(f,1114111)!==f)throw new u(f+" is not a valid code point");g[p]=f<65536?c(f):c(55296+((f-=65536)>>10),f%1024+56320)}return d(g,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/function-uncurry-this"),s=e("../internals/not-a-regexp"),u=e("../internals/require-object-coercible"),c=e("../internals/to-string"),l=e("../internals/correct-is-regexp-logic"),d=o("".indexOf);a({target:"String",proto:!0,forced:!l("includes")},{includes:function(h){return!!~d(c(u(this)),c(s(h)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(e,n,i){e("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/global"),s=e("../internals/function-call"),u=e("../internals/function-uncurry-this"),c=e("../internals/is-pure"),l=e("../internals/descriptors"),d=e("../internals/symbol-constructor-detection"),h=e("../internals/fails"),f=e("../internals/has-own-property"),g=e("../internals/object-is-prototype-of"),m=e("../internals/an-object"),p=e("../internals/to-indexed-object"),y=e("../internals/to-property-key"),v=e("../internals/to-string"),b=e("../internals/create-property-descriptor"),A=e("../internals/object-create"),C=e("../internals/object-keys"),M=e("../internals/object-get-own-property-names"),z=e("../internals/object-get-own-property-names-external"),W=e("../internals/object-get-own-property-symbols"),U=e("../internals/object-get-own-property-descriptor"),G=e("../internals/object-define-property"),ee=e("../internals/object-define-properties"),I=e("../internals/object-property-is-enumerable"),O=e("../internals/define-built-in"),T=e("../internals/define-built-in-accessor"),S=e("../internals/shared"),x=e("../internals/shared-key"),w=e("../internals/hidden-keys"),_=e("../internals/uid"),E=e("../internals/well-known-symbol"),R=e("../internals/well-known-symbol-wrapped"),F=e("../internals/well-known-symbol-define"),B=e("../internals/symbol-define-to-primitive"),X=e("../internals/set-to-string-tag"),K=e("../internals/internal-state"),te=e("../internals/array-iteration").forEach,$=x("hidden"),q=K.set,k=K.getterFor("Symbol"),L=Object.prototype,V=o.Symbol,J=V&&V.prototype,re=o.RangeError,ae=o.TypeError,j=o.QObject,ue=U.f,Q=G.f,P=z.f,H=I.f,Z=u([].push),oe=S("symbols"),ce=S("op-symbols"),ne=S("wks"),se=!j||!j.prototype||!j.prototype.findChild,fe=function(Ue,Ge,tt){var rt=ue(L,Ge);rt&&delete L[Ge],Q(Ue,Ge,tt),rt&&Ue!==L&&Q(L,Ge,rt)},de=l&&h(function(){return A(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a!==7})?fe:Q,ve=function(Ue,Ge){var tt=oe[Ue]=A(J);return q(tt,{type:"Symbol",tag:Ue,description:Ge}),l||(tt.description=Ge),tt},Ee=function(Ue,Ge,tt){Ue===L&&Ee(ce,Ge,tt),m(Ue);var rt=y(Ge);return m(tt),f(oe,rt)?(tt.enumerable?(f(Ue,$)&&Ue[$][rt]&&(Ue[$][rt]=!1),tt=A(tt,{enumerable:b(0,!1)})):(f(Ue,$)||Q(Ue,$,b(1,{})),Ue[$][rt]=!0),de(Ue,rt,tt)):Q(Ue,rt,tt)},Se=function(Ue,Ge){m(Ue);var tt=p(Ge),rt=C(tt).concat(et(tt));return te(rt,function(lt){l&&!s(Ne,tt,lt)||Ee(Ue,lt,tt[lt])}),Ue},Ne=function(Ue){var Ge=y(Ue),tt=s(H,this,Ge);return!(this===L&&f(oe,Ge)&&!f(ce,Ge))&&(!(tt||!f(this,Ge)||!f(oe,Ge)||f(this,$)&&this[$][Ge])||tt)},He=function(Ue,Ge){var tt=p(Ue),rt=y(Ge);if(tt!==L||!f(oe,rt)||f(ce,rt)){var lt=ue(tt,rt);return!lt||!f(oe,rt)||f(tt,$)&&tt[$][rt]||(lt.enumerable=!0),lt}},qe=function(Ue){var Ge=P(p(Ue)),tt=[];return te(Ge,function(rt){f(oe,rt)||f(w,rt)||Z(tt,rt)}),tt},et=function(Ue){var Ge=Ue===L,tt=P(Ge?ce:p(Ue)),rt=[];return te(tt,function(lt){!f(oe,lt)||Ge&&!f(L,lt)||Z(rt,oe[lt])}),rt};d||(O(J=(V=function(){if(g(J,this))throw new ae("Symbol is not a constructor");var Ue=arguments.length&&arguments[0]!==void 0?v(arguments[0]):void 0,Ge=_(Ue),tt=function(rt){this===L&&s(tt,ce,rt),f(this,$)&&f(this[$],Ge)&&(this[$][Ge]=!1);var lt=b(1,rt);try{de(this,Ge,lt)}catch(Ft){if(!(Ft instanceof re))throw Ft;fe(this,Ge,lt)}};return l&&se&&de(L,Ge,{configurable:!0,set:tt}),ve(Ge,Ue)}).prototype,"toString",function(){return k(this).tag}),O(V,"withoutSetter",function(Ue){return ve(_(Ue),Ue)}),I.f=Ne,G.f=Ee,ee.f=Se,U.f=He,M.f=z.f=qe,W.f=et,R.f=function(Ue){return ve(E(Ue),Ue)},l&&(T(J,"description",{configurable:!0,get:function(){return k(this).description}}),c||O(L,"propertyIsEnumerable",Ne,{unsafe:!0}))),a({global:!0,constructor:!0,wrap:!0,forced:!d,sham:!d},{Symbol:V}),te(C(ne),function(Ue){F(Ue)}),a({target:"Symbol",stat:!0,forced:!d},{useSetter:function(){se=!0},useSimple:function(){se=!1}}),a({target:"Object",stat:!0,forced:!d,sham:!l},{create:function(Ue,Ge){return Ge===void 0?A(Ue):Se(A(Ue),Ge)},defineProperty:Ee,defineProperties:Se,getOwnPropertyDescriptor:He}),a({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:qe}),B(),X(V,"Symbol"),w[$]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/get-built-in"),s=e("../internals/has-own-property"),u=e("../internals/to-string"),c=e("../internals/shared"),l=e("../internals/symbol-registry-detection"),d=c("string-to-symbol-registry"),h=c("symbol-to-string-registry");a({target:"Symbol",stat:!0,forced:!l},{for:function(f){var g=u(f);if(s(d,g))return d[g];var m=o("Symbol")(g);return d[g]=m,h[m]=g,m}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(e,n,i){e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.key-for"),e("../modules/es.json.stringify"),e("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(e,n,i){var a=e("../internals/export"),o=e("../internals/has-own-property"),s=e("../internals/is-symbol"),u=e("../internals/try-to-string"),c=e("../internals/shared"),l=e("../internals/symbol-registry-detection"),d=c("symbol-to-string-registry");a({target:"Symbol",stat:!0,forced:!l},{keyFor:function(h){if(!s(h))throw new TypeError(u(h)+" is not a symbol");if(o(d,h))return d[h]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(e,n,i){function a(o){return Object.prototype.toString.call(o)}i.isArray=function(o){return Array.isArray?Array.isArray(o):a(o)==="[object Array]"},i.isBoolean=function(o){return typeof o=="boolean"},i.isNull=function(o){return o===null},i.isNullOrUndefined=function(o){return o==null},i.isNumber=function(o){return typeof o=="number"},i.isString=function(o){return typeof o=="string"},i.isSymbol=function(o){return typeof o=="symbol"},i.isUndefined=function(o){return o===void 0},i.isRegExp=function(o){return a(o)==="[object RegExp]"},i.isObject=function(o){return typeof o=="object"&&o!==null},i.isDate=function(o){return a(o)==="[object Date]"},i.isError=function(o){return a(o)==="[object Error]"||o instanceof Error},i.isFunction=function(o){return typeof o=="function"},i.isPrimitive=function(o){return o===null||typeof o=="boolean"||typeof o=="number"||typeof o=="string"||typeof o=="symbol"||o===void 0},i.isBuffer=e("buffer").Buffer.isBuffer},{buffer:220}],384:[function(e,n,i){(function(a){(function(){var o=e("elliptic"),s=e("bn.js");n.exports=function(d){return new c(d)};var u={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function c(d){this.curveType=u[d],this.curveType||(this.curveType={name:d}),this.curve=new o.ec(this.curveType.name),this.keys=void 0}function l(d,h,f){Array.isArray(d)||(d=d.toArray());var g=new a(d);if(f&&g.length<f){var m=new a(f-g.length);m.fill(0),g=a.concat([m,g])}return h?g.toString(h):g}u.p224=u.secp224r1,u.p256=u.secp256r1=u.prime256v1,u.p192=u.secp192r1=u.prime192v1,u.p384=u.secp384r1,u.p521=u.secp521r1,c.prototype.generateKeys=function(d,h){return this.keys=this.curve.genKeyPair(),this.getPublicKey(d,h)},c.prototype.computeSecret=function(d,h,f){return h=h||"utf8",a.isBuffer(d)||(d=new a(d,h)),l(this.curve.keyFromPublic(d).getPublic().mul(this.keys.getPrivate()).getX(),f,this.curveType.byteLength)},c.prototype.getPublicKey=function(d,h){var f=this.keys.getPublic(h==="compressed",!0);return h==="hybrid"&&(f[f.length-1]%2?f[0]=7:f[0]=6),l(f,d)},c.prototype.getPrivateKey=function(d){return l(this.keys.getPrivate(),d)},c.prototype.setPublicKey=function(d,h){return h=h||"utf8",a.isBuffer(d)||(d=new a(d,h)),this.keys._importPublic(d),this},c.prototype.setPrivateKey=function(d,h){h=h||"utf8",a.isBuffer(d)||(d=new a(d,h));var f=new s(d);return f=f.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(f),this}}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(e,n,i){arguments[4][184][0].apply(i,arguments)},{buffer:188,dup:184}],386:[function(e,n,i){var a=e("inherits"),o=e("md5.js"),s=e("ripemd160"),u=e("sha.js"),c=e("cipher-base");function l(d){c.call(this,"digest"),this._hash=d}a(l,c),l.prototype._update=function(d){this._hash.update(d)},l.prototype._final=function(){return this._hash.digest()},n.exports=function(d){return(d=d.toLowerCase())==="md5"?new o:d==="rmd160"||d==="ripemd160"?new s:new l(u(d))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(e,n,i){var a=e("md5.js");n.exports=function(o){return new a().update(o).digest()}},{"md5.js":450}],388:[function(e,n,i){var a=e("inherits"),o=e("./legacy"),s=e("cipher-base"),u=e("safe-buffer").Buffer,c=e("create-hash/md5"),l=e("ripemd160"),d=e("sha.js"),h=u.alloc(128);function f(g,m){s.call(this,"digest"),typeof m=="string"&&(m=u.from(m));var p=g==="sha512"||g==="sha384"?128:64;this._alg=g,this._key=m,m.length>p?m=(g==="rmd160"?new l:d(g)).update(m).digest():m.length<p&&(m=u.concat([m,h],p));for(var y=this._ipad=u.allocUnsafe(p),v=this._opad=u.allocUnsafe(p),b=0;b<p;b++)y[b]=54^m[b],v[b]=92^m[b];this._hash=g==="rmd160"?new l:d(g),this._hash.update(y)}a(f,s),f.prototype._update=function(g){this._hash.update(g)},f.prototype._final=function(){var g=this._hash.digest();return(this._alg==="rmd160"?new l:d(this._alg)).update(this._opad).update(g).digest()},n.exports=function(g,m){return(g=g.toLowerCase())==="rmd160"||g==="ripemd160"?new f("rmd160",m):g==="md5"?new o(c,m):new f(g,m)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(e,n,i){var a=e("inherits"),o=e("safe-buffer").Buffer,s=e("cipher-base"),u=o.alloc(128);function c(l,d){s.call(this,"digest"),typeof d=="string"&&(d=o.from(d)),this._alg=l,this._key=d,d.length>64?d=l(d):d.length<64&&(d=o.concat([d,u],64));for(var h=this._ipad=o.allocUnsafe(64),f=this._opad=o.allocUnsafe(64),g=0;g<64;g++)h[g]=54^d[g],f[g]=92^d[g];this._hash=[h]}a(c,s),c.prototype._update=function(l){this._hash.push(l)},c.prototype._final=function(){var l=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,l]))},n.exports=c},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(e,n,i){i.randomBytes=i.rng=i.pseudoRandomBytes=i.prng=e("randombytes"),i.createHash=i.Hash=e("create-hash"),i.createHmac=i.Hmac=e("create-hmac");var a=e("browserify-sign/algos"),o=Object.keys(a),s=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);i.getHashes=function(){return s};var u=e("pbkdf2");i.pbkdf2=u.pbkdf2,i.pbkdf2Sync=u.pbkdf2Sync;var c=e("browserify-cipher");i.Cipher=c.Cipher,i.createCipher=c.createCipher,i.Cipheriv=c.Cipheriv,i.createCipheriv=c.createCipheriv,i.Decipher=c.Decipher,i.createDecipher=c.createDecipher,i.Decipheriv=c.Decipheriv,i.createDecipheriv=c.createDecipheriv,i.getCiphers=c.getCiphers,i.listCiphers=c.listCiphers;var l=e("diffie-hellman");i.DiffieHellmanGroup=l.DiffieHellmanGroup,i.createDiffieHellmanGroup=l.createDiffieHellmanGroup,i.getDiffieHellman=l.getDiffieHellman,i.createDiffieHellman=l.createDiffieHellman,i.DiffieHellman=l.DiffieHellman;var d=e("browserify-sign");i.createSign=d.createSign,i.Sign=d.Sign,i.createVerify=d.createVerify,i.Verify=d.Verify,i.createECDH=e("create-ecdh");var h=e("public-encrypt");i.publicEncrypt=h.publicEncrypt,i.privateEncrypt=h.privateEncrypt,i.publicDecrypt=h.publicDecrypt,i.privateDecrypt=h.privateDecrypt;var f=e("randomfill");i.randomFill=f.randomFill,i.randomFillSync=f.randomFillSync,i.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
`))},i.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(e,n,i){(function(a,o){typeof i=="object"&&n!==void 0?n.exports=o():(a=typeof globalThis!="undefined"?globalThis:a||self).dayjs=o()})(void 0,function(){var a=6e4,o=36e5,s="millisecond",u="second",c="minute",l="hour",d="day",h="week",f="month",g="quarter",m="year",p="date",y="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var w=["th","st","nd","rd"],_=x%100;return"["+x+(w[(_-20)%10]||w[_]||w[0])+"]"}},C=function(x,w,_){var E=String(x);return!E||E.length>=w?x:""+Array(w+1-E.length).join(_)+x},M={s:C,z:function(x){var w=-x.utcOffset(),_=Math.abs(w),E=Math.floor(_/60),R=_%60;return(w<=0?"+":"-")+C(E,2,"0")+":"+C(R,2,"0")},m:function x(w,_){if(w.date()<_.date())return-x(_,w);var E=12*(_.year()-w.year())+(_.month()-w.month()),R=w.clone().add(E,f),F=_-R<0,B=w.clone().add(E+(F?-1:1),f);return+(-(E+(_-R)/(F?R-B:B-R))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:f,y:m,w:h,d,D:p,h:l,m:c,s:u,ms:s,Q:g}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},z="en",W={};W[z]=A;var U="$isDayjsObject",G=function(x){return x instanceof T||!(!x||!x[U])},ee=function x(w,_,E){var R;if(!w)return z;if(typeof w=="string"){var F=w.toLowerCase();W[F]&&(R=F),_&&(W[F]=_,R=F);var B=w.split("-");if(!R&&B.length>1)return x(B[0])}else{var X=w.name;W[X]=w,R=X}return!E&&R&&(z=R),R||!E&&z},I=function(x,w){if(G(x))return x.clone();var _=typeof w=="object"?w:{};return _.date=x,_.args=arguments,new T(_)},O=M;O.l=ee,O.i=G,O.w=function(x,w){return I(x,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var T=function(){function x(_){this.$L=ee(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[U]=!0}var w=x.prototype;return w.parse=function(_){this.$d=function(E){var R=E.date,F=E.utc;if(R===null)return new Date(NaN);if(O.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var B=R.match(v);if(B){var X=B[2]-1||0,K=(B[7]||"0").substring(0,3);return F?new Date(Date.UTC(B[1],X,B[3]||1,B[4]||0,B[5]||0,B[6]||0,K)):new Date(B[1],X,B[3]||1,B[4]||0,B[5]||0,B[6]||0,K)}}return new Date(R)}(_),this.init()},w.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},w.$utils=function(){return O},w.isValid=function(){return this.$d.toString()!==y},w.isSame=function(_,E){var R=I(_);return this.startOf(E)<=R&&R<=this.endOf(E)},w.isAfter=function(_,E){return I(_)<this.startOf(E)},w.isBefore=function(_,E){return this.endOf(E)<I(_)},w.$g=function(_,E,R){return O.u(_)?this[E]:this.set(R,_)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(_,E){var R=this,F=!!O.u(E)||E,B=O.p(_),X=function(J,re){var ae=O.w(R.$u?Date.UTC(R.$y,re,J):new Date(R.$y,re,J),R);return F?ae:ae.endOf(d)},K=function(J,re){return O.w(R.toDate()[J].apply(R.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(re)),R)},te=this.$W,$=this.$M,q=this.$D,k="set"+(this.$u?"UTC":"");switch(B){case m:return F?X(1,0):X(31,11);case f:return F?X(1,$):X(0,$+1);case h:var L=this.$locale().weekStart||0,V=(te<L?te+7:te)-L;return X(F?q-V:q+(6-V),$);case d:case p:return K(k+"Hours",0);case l:return K(k+"Minutes",1);case c:return K(k+"Seconds",2);case u:return K(k+"Milliseconds",3);default:return this.clone()}},w.endOf=function(_){return this.startOf(_,!1)},w.$set=function(_,E){var R,F=O.p(_),B="set"+(this.$u?"UTC":""),X=(R={},R[d]=B+"Date",R[p]=B+"Date",R[f]=B+"Month",R[m]=B+"FullYear",R[l]=B+"Hours",R[c]=B+"Minutes",R[u]=B+"Seconds",R[s]=B+"Milliseconds",R)[F],K=F===d?this.$D+(E-this.$W):E;if(F===f||F===m){var te=this.clone().set(p,1);te.$d[X](K),te.init(),this.$d=te.set(p,Math.min(this.$D,te.daysInMonth())).$d}else X&&this.$d[X](K);return this.init(),this},w.set=function(_,E){return this.clone().$set(_,E)},w.get=function(_){return this[O.p(_)]()},w.add=function(_,E){var R,F=this;_=Number(_);var B=O.p(E),X=function($){var q=I(F);return O.w(q.date(q.date()+Math.round($*_)),F)};if(B===f)return this.set(f,this.$M+_);if(B===m)return this.set(m,this.$y+_);if(B===d)return X(1);if(B===h)return X(7);var K=(R={},R[c]=a,R[l]=o,R[u]=1e3,R)[B]||1,te=this.$d.getTime()+_*K;return O.w(te,this)},w.subtract=function(_,E){return this.add(-1*_,E)},w.format=function(_){var E=this,R=this.$locale();if(!this.isValid())return R.invalidDate||y;var F=_||"YYYY-MM-DDTHH:mm:ssZ",B=O.z(this),X=this.$H,K=this.$m,te=this.$M,$=R.weekdays,q=R.months,k=R.meridiem,L=function(re,ae,j,ue){return re&&(re[ae]||re(E,F))||j[ae].slice(0,ue)},V=function(re){return O.s(X%12||12,re,"0")},J=k||function(re,ae,j){var ue=re<12?"AM":"PM";return j?ue.toLowerCase():ue};return F.replace(b,function(re,ae){return ae||function(j){switch(j){case"YY":return String(E.$y).slice(-2);case"YYYY":return O.s(E.$y,4,"0");case"M":return te+1;case"MM":return O.s(te+1,2,"0");case"MMM":return L(R.monthsShort,te,q,3);case"MMMM":return L(q,te);case"D":return E.$D;case"DD":return O.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return L(R.weekdaysMin,E.$W,$,2);case"ddd":return L(R.weekdaysShort,E.$W,$,3);case"dddd":return $[E.$W];case"H":return String(X);case"HH":return O.s(X,2,"0");case"h":return V(1);case"hh":return V(2);case"a":return J(X,K,!0);case"A":return J(X,K,!1);case"m":return String(K);case"mm":return O.s(K,2,"0");case"s":return String(E.$s);case"ss":return O.s(E.$s,2,"0");case"SSS":return O.s(E.$ms,3,"0");case"Z":return B}return null}(re)||B.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(_,E,R){var F,B=this,X=O.p(E),K=I(_),te=(K.utcOffset()-this.utcOffset())*a,$=this-K,q=function(){return O.m(B,K)};switch(X){case m:F=q()/12;break;case f:F=q();break;case g:F=q()/3;break;case h:F=($-te)/6048e5;break;case d:F=($-te)/864e5;break;case l:F=$/o;break;case c:F=$/a;break;case u:F=$/1e3;break;default:F=$}return R?F:O.a(F)},w.daysInMonth=function(){return this.endOf(f).$D},w.$locale=function(){return W[this.$L]},w.locale=function(_,E){if(!_)return this.$L;var R=this.clone(),F=ee(_,E,!0);return F&&(R.$L=F),R},w.clone=function(){return O.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},x}(),S=T.prototype;return I.prototype=S,[["$ms",s],["$s",u],["$m",c],["$H",l],["$W",d],["$M",f],["$y",m],["$D",p]].forEach(function(x){S[x[1]]=function(w){return this.$g(w,x[0],x[1])}}),I.extend=function(x,w){return x.$i||(x(w,T,I),x.$i=!0),I},I.locale=ee,I.isDayjs=G,I.unix=function(x){return I(1e3*x)},I.en=W[z],I.Ls=W,I.p={},I})},{}],392:[function(e,n,i){(function(a,o){typeof i=="object"&&n!==void 0?n.exports=o():(a=typeof globalThis!="undefined"?globalThis:a||self).dayjs_plugin_customParseFormat=o()})(void 0,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d\d/,u=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,l={},d=function(v){return(v=+v)+(v>68?1900:2e3)},h=function(v){return function(b){this[v]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var A=b.match(/([+-]|\d\d)/g),C=60*A[1]+(+A[2]||0);return C===0?0:A[0]==="+"?-C:C}(v)}],g=function(v){var b=l[v];return b&&(b.indexOf?b:b.s.concat(b.f))},m=function(v,b){var A,C=l.meridiem;if(C){for(var M=1;M<=24;M+=1)if(v.indexOf(C(M,0,b))>-1){A=M>12;break}}else A=v===(b?"pm":"PM");return A},p={A:[c,function(v){this.afternoon=m(v,!1)}],a:[c,function(v){this.afternoon=m(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[s,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[u,h("seconds")],ss:[u,h("seconds")],m:[u,h("minutes")],mm:[u,h("minutes")],H:[u,h("hours")],h:[u,h("hours")],HH:[u,h("hours")],hh:[u,h("hours")],D:[u,h("day")],DD:[s,h("day")],Do:[c,function(v){var b=l.ordinal,A=v.match(/\d+/);if(this.day=A[0],b)for(var C=1;C<=31;C+=1)b(C).replace(/\[|\]/g,"")===v&&(this.day=C)}],M:[u,h("month")],MM:[s,h("month")],MMM:[c,function(v){var b=g("months"),A=(g("monthsShort")||b.map(function(C){return C.slice(0,3)})).indexOf(v)+1;if(A<1)throw new Error;this.month=A%12||A}],MMMM:[c,function(v){var b=g("months").indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,h("year")],YY:[s,function(v){this.year=d(v)}],YYYY:[/\d{4}/,h("year")],Z:f,ZZ:f};function y(v){var b,A;b=v,A=l&&l.formats;for(var C=(v=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,O,T){var S=T&&T.toUpperCase();return O||A[T]||a[T]||A[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(x,w,_){return w||_.slice(1)})})).match(o),M=C.length,z=0;z<M;z+=1){var W=C[z],U=p[W],G=U&&U[0],ee=U&&U[1];C[z]=ee?{regex:G,parser:ee}:W.replace(/^\[|\]$/g,"")}return function(I){for(var O={},T=0,S=0;T<M;T+=1){var x=C[T];if(typeof x=="string")S+=x.length;else{var w=x.regex,_=x.parser,E=I.slice(S),R=w.exec(E)[0];_.call(O,R),I=I.replace(R,"")}}return function(F){var B=F.afternoon;if(B!==void 0){var X=F.hours;B?X<12&&(F.hours+=12):X===12&&(F.hours=0),delete F.afternoon}}(O),O}}return function(v,b,A){A.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(d=v.parseTwoDigitYear);var C=b.prototype,M=C.parse;C.parse=function(z){var W=z.date,U=z.utc,G=z.args;this.$u=U;var ee=G[1];if(typeof ee=="string"){var I=G[2]===!0,O=G[3]===!0,T=I||O,S=G[2];O&&(S=G[2]),l=this.$locale(),!I&&S&&(l=A.Ls[S]),this.$d=function(E,R,F){try{if(["x","X"].indexOf(R)>-1)return new Date((R==="X"?1e3:1)*E);var B=y(R)(E),X=B.year,K=B.month,te=B.day,$=B.hours,q=B.minutes,k=B.seconds,L=B.milliseconds,V=B.zone,J=new Date,re=te||(X||K?1:J.getDate()),ae=X||J.getFullYear(),j=0;X&&!K||(j=K>0?K-1:J.getMonth());var ue=$||0,Q=q||0,P=k||0,H=L||0;return V?new Date(Date.UTC(ae,j,re,ue,Q,P,H+60*V.offset*1e3)):F?new Date(Date.UTC(ae,j,re,ue,Q,P,H)):new Date(ae,j,re,ue,Q,P,H)}catch{return new Date("")}}(W,ee,U),this.init(),S&&S!==!0&&(this.$L=this.locale(S).$L),T&&W!=this.format(ee)&&(this.$d=new Date("")),l={}}else if(ee instanceof Array)for(var x=ee.length,w=1;w<=x;w+=1){G[1]=ee[w-1];var _=A.apply(this,G);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}w===x&&(this.$d=new Date(""))}else M.call(this,z)}}})},{}],393:[function(e,n,i){(function(a,o){typeof i=="object"&&n!==void 0?n.exports=o():(a=typeof globalThis!="undefined"?globalThis:a||self).dayjs_plugin_utc=o()})(void 0,function(){var a="minute",o=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g;return function(u,c,l){var d=c.prototype;l.utc=function(v){var b={date:v,utc:!0,args:arguments};return new c(b)},d.utc=function(v){var b=l(this.toDate(),{locale:this.$L,utc:!0});return v?b.add(this.utcOffset(),a):b},d.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var h=d.parse;d.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),h.call(this,v)};var f=d.init;d.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else f.call(this)};var g=d.utcOffset;d.utcOffset=function(v,b){var A=this.$utils().u;if(A(v))return this.$u?0:A(this.$offset)?g.call(this):this.$offset;if(typeof v=="string"&&(v=function(W){W===void 0&&(W="");var U=W.match(o);if(!U)return null;var G=(""+U[0]).match(s)||["-",0,0],ee=G[0],I=60*+G[1]+ +G[2];return I===0?0:ee==="+"?I:-I}(v))===null)return this;var C=Math.abs(v)<=16?60*v:v,M=this;if(b)return M.$offset=C,M.$u=v===0,M;if(v!==0){var z=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(M=this.local().add(C+z,a)).$offset=C,M.$x.$localOffset=z}else M=this.utc();return M};var m=d.format;d.format=function(v){var b=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,b)},d.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},d.isUTC=function(){return!!this.$u},d.toISOString=function(){return this.toDate().toISOString()},d.toString=function(){return this.toDate().toUTCString()};var p=d.toDate;d.toDate=function(v){return v==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var y=d.diff;d.diff=function(v,b,A){if(v&&this.$u===v.$u)return y.call(this,v,b,A);var C=this.local(),M=l(v).local();return y.call(C,M,b,A)}}})},{}],394:[function(e,n,i){i.utils=e("./des/utils"),i.Cipher=e("./des/cipher"),i.DES=e("./des/des"),i.CBC=e("./des/cbc"),i.EDE=e("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(e,n,i){var a=e("minimalistic-assert"),o=e("inherits"),s={};function u(c){a.equal(c.length,8,"Invalid IV length"),this.iv=new Array(8);for(var l=0;l<this.iv.length;l++)this.iv[l]=c[l]}i.instantiate=function(c){function l(g){c.call(this,g),this._cbcInit()}o(l,c);for(var d=Object.keys(s),h=0;h<d.length;h++){var f=d[h];l.prototype[f]=s[f]}return l.create=function(g){return new l(g)},l},s._cbcInit=function(){var c=new u(this.options.iv);this._cbcState=c},s._update=function(c,l,d,h){var f=this._cbcState,g=this.constructor.super_.prototype,m=f.iv;if(this.type==="encrypt"){for(var p=0;p<this.blockSize;p++)m[p]^=c[l+p];for(g._update.call(this,m,0,d,h),p=0;p<this.blockSize;p++)m[p]=d[h+p]}else{for(g._update.call(this,c,l,d,h),p=0;p<this.blockSize;p++)d[h+p]^=m[p];for(p=0;p<this.blockSize;p++)m[p]=c[l+p]}}},{inherits:440,"minimalistic-assert":453}],396:[function(e,n,i){var a=e("minimalistic-assert");function o(s){this.options=s,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=s.padding!==!1}n.exports=o,o.prototype._init=function(){},o.prototype.update=function(s){return s.length===0?[]:this.type==="decrypt"?this._updateDecrypt(s):this._updateEncrypt(s)},o.prototype._buffer=function(s,u){for(var c=Math.min(this.buffer.length-this.bufferOff,s.length-u),l=0;l<c;l++)this.buffer[this.bufferOff+l]=s[u+l];return this.bufferOff+=c,c},o.prototype._flushBuffer=function(s,u){return this._update(this.buffer,0,s,u),this.bufferOff=0,this.blockSize},o.prototype._updateEncrypt=function(s){var u=0,c=0,l=(this.bufferOff+s.length)/this.blockSize|0,d=new Array(l*this.blockSize);this.bufferOff!==0&&(u+=this._buffer(s,u),this.bufferOff===this.buffer.length&&(c+=this._flushBuffer(d,c)));for(var h=s.length-(s.length-u)%this.blockSize;u<h;u+=this.blockSize)this._update(s,u,d,c),c+=this.blockSize;for(;u<s.length;u++,this.bufferOff++)this.buffer[this.bufferOff]=s[u];return d},o.prototype._updateDecrypt=function(s){for(var u=0,c=0,l=Math.ceil((this.bufferOff+s.length)/this.blockSize)-1,d=new Array(l*this.blockSize);l>0;l--)u+=this._buffer(s,u),c+=this._flushBuffer(d,c);return u+=this._buffer(s,u),d},o.prototype.final=function(s){var u,c;return s&&(u=this.update(s)),c=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),u?u.concat(c):c},o.prototype._pad=function(s,u){if(u===0)return!1;for(;u<s.length;)s[u++]=0;return!0},o.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var s=new Array(this.blockSize);return this._update(this.buffer,0,s,0),s},o.prototype._unpad=function(s){return s},o.prototype._finalDecrypt=function(){a.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var s=new Array(this.blockSize);return this._flushBuffer(s,0),this._unpad(s)}},{"minimalistic-assert":453}],397:[function(e,n,i){var a=e("minimalistic-assert"),o=e("inherits"),s=e("./utils"),u=e("./cipher");function c(){this.tmp=new Array(2),this.keys=null}function l(h){u.call(this,h);var f=new c;this._desState=f,this.deriveKeys(f,h.key)}o(l,u),n.exports=l,l.create=function(h){return new l(h)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(h,f){h.keys=new Array(32),a.equal(f.length,this.blockSize,"Invalid key length");var g=s.readUInt32BE(f,0),m=s.readUInt32BE(f,4);s.pc1(g,m,h.tmp,0),g=h.tmp[0],m=h.tmp[1];for(var p=0;p<h.keys.length;p+=2){var y=d[p>>>1];g=s.r28shl(g,y),m=s.r28shl(m,y),s.pc2(g,m,h.keys,p)}},l.prototype._update=function(h,f,g,m){var p=this._desState,y=s.readUInt32BE(h,f),v=s.readUInt32BE(h,f+4);s.ip(y,v,p.tmp,0),y=p.tmp[0],v=p.tmp[1],this.type==="encrypt"?this._encrypt(p,y,v,p.tmp,0):this._decrypt(p,y,v,p.tmp,0),y=p.tmp[0],v=p.tmp[1],s.writeUInt32BE(g,y,m),s.writeUInt32BE(g,v,m+4)},l.prototype._pad=function(h,f){if(this.padding===!1)return!1;for(var g=h.length-f,m=f;m<h.length;m++)h[m]=g;return!0},l.prototype._unpad=function(h){if(this.padding===!1)return h;for(var f=h[h.length-1],g=h.length-f;g<h.length;g++)a.equal(h[g],f);return h.slice(0,h.length-f)},l.prototype._encrypt=function(h,f,g,m,p){for(var y=f,v=g,b=0;b<h.keys.length;b+=2){var A=h.keys[b],C=h.keys[b+1];s.expand(v,h.tmp,0),A^=h.tmp[0],C^=h.tmp[1];var M=s.substitute(A,C),z=v;v=(y^s.permute(M))>>>0,y=z}s.rip(v,y,m,p)},l.prototype._decrypt=function(h,f,g,m,p){for(var y=g,v=f,b=h.keys.length-2;b>=0;b-=2){var A=h.keys[b],C=h.keys[b+1];s.expand(y,h.tmp,0),A^=h.tmp[0],C^=h.tmp[1];var M=s.substitute(A,C),z=y;y=(v^s.permute(M))>>>0,v=z}s.rip(y,v,m,p)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(e,n,i){var a=e("minimalistic-assert"),o=e("inherits"),s=e("./cipher"),u=e("./des");function c(d,h){a.equal(h.length,24,"Invalid key length");var f=h.slice(0,8),g=h.slice(8,16),m=h.slice(16,24);this.ciphers=d==="encrypt"?[u.create({type:"encrypt",key:f}),u.create({type:"decrypt",key:g}),u.create({type:"encrypt",key:m})]:[u.create({type:"decrypt",key:m}),u.create({type:"encrypt",key:g}),u.create({type:"decrypt",key:f})]}function l(d){s.call(this,d);var h=new c(this.type,this.options.key);this._edeState=h}o(l,s),n.exports=l,l.create=function(d){return new l(d)},l.prototype._update=function(d,h,f,g){var m=this._edeState;m.ciphers[0]._update(d,h,f,g),m.ciphers[1]._update(f,g,f,g),m.ciphers[2]._update(f,g,f,g)},l.prototype._pad=u.prototype._pad,l.prototype._unpad=u.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(e,n,i){i.readUInt32BE=function(u,c){return(u[0+c]<<24|u[1+c]<<16|u[2+c]<<8|u[3+c])>>>0},i.writeUInt32BE=function(u,c,l){u[0+l]=c>>>24,u[1+l]=c>>>16&255,u[2+l]=c>>>8&255,u[3+l]=255&c},i.ip=function(u,c,l,d){for(var h=0,f=0,g=6;g>=0;g-=2){for(var m=0;m<=24;m+=8)h<<=1,h|=c>>>m+g&1;for(m=0;m<=24;m+=8)h<<=1,h|=u>>>m+g&1}for(g=6;g>=0;g-=2){for(m=1;m<=25;m+=8)f<<=1,f|=c>>>m+g&1;for(m=1;m<=25;m+=8)f<<=1,f|=u>>>m+g&1}l[d+0]=h>>>0,l[d+1]=f>>>0},i.rip=function(u,c,l,d){for(var h=0,f=0,g=0;g<4;g++)for(var m=24;m>=0;m-=8)h<<=1,h|=c>>>m+g&1,h<<=1,h|=u>>>m+g&1;for(g=4;g<8;g++)for(m=24;m>=0;m-=8)f<<=1,f|=c>>>m+g&1,f<<=1,f|=u>>>m+g&1;l[d+0]=h>>>0,l[d+1]=f>>>0},i.pc1=function(u,c,l,d){for(var h=0,f=0,g=7;g>=5;g--){for(var m=0;m<=24;m+=8)h<<=1,h|=c>>m+g&1;for(m=0;m<=24;m+=8)h<<=1,h|=u>>m+g&1}for(m=0;m<=24;m+=8)h<<=1,h|=c>>m+g&1;for(g=1;g<=3;g++){for(m=0;m<=24;m+=8)f<<=1,f|=c>>m+g&1;for(m=0;m<=24;m+=8)f<<=1,f|=u>>m+g&1}for(m=0;m<=24;m+=8)f<<=1,f|=u>>m+g&1;l[d+0]=h>>>0,l[d+1]=f>>>0},i.r28shl=function(u,c){return u<<c&268435455|u>>>28-c};var a=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];i.pc2=function(u,c,l,d){for(var h=0,f=0,g=a.length>>>1,m=0;m<g;m++)h<<=1,h|=u>>>a[m]&1;for(m=g;m<a.length;m++)f<<=1,f|=c>>>a[m]&1;l[d+0]=h>>>0,l[d+1]=f>>>0},i.expand=function(u,c,l){var d=0,h=0;d=(1&u)<<5|u>>>27;for(var f=23;f>=15;f-=4)d<<=6,d|=u>>>f&63;for(f=11;f>=3;f-=4)h|=u>>>f&63,h<<=6;h|=(31&u)<<1|u>>>31,c[l+0]=d>>>0,c[l+1]=h>>>0};var o=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];i.substitute=function(u,c){for(var l=0,d=0;d<4;d++)l<<=4,l|=o[64*d+(u>>>18-6*d&63)];for(d=0;d<4;d++)l<<=4,l|=o[256+64*d+(c>>>18-6*d&63)];return l>>>0};var s=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];i.permute=function(u){for(var c=0,l=0;l<s.length;l++)c<<=1,c|=u>>>s[l]&1;return c>>>0},i.padSplit=function(u,c,l){for(var d=u.toString(2);d.length<c;)d="0"+d;for(var h=[],f=0;f<c;f+=l)h.push(d.slice(f,f+l));return h.join(" ")}},{}],400:[function(e,n,i){(function(a){(function(){var o=e("./lib/generatePrime"),s=e("./lib/primes.json"),u=e("./lib/dh"),c={binary:!0,hex:!0,base64:!0};i.DiffieHellmanGroup=i.createDiffieHellmanGroup=i.getDiffieHellman=function(l){var d=new a(s[l].prime,"hex"),h=new a(s[l].gen,"hex");return new u(d,h)},i.createDiffieHellman=i.DiffieHellman=function l(d,h,f,g){return a.isBuffer(h)||c[h]===void 0?l(d,"binary",h,f):(h=h||"binary",g=g||"binary",f=f||new a([2]),a.isBuffer(f)||(f=new a(f,g)),typeof d=="number"?new u(o(d,f),f,!0):(a.isBuffer(d)||(d=new a(d,h)),new u(d,f,!0)))}}).call(this)}).call(this,e("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(e,n,i){(function(a){(function(){var o=e("bn.js"),s=new(e("miller-rabin")),u=new o(24),c=new o(11),l=new o(10),d=new o(3),h=new o(7),f=e("./generatePrime"),g=e("randombytes");function m(A,C){return C=C||"utf8",a.isBuffer(A)||(A=new a(A,C)),this._pub=new o(A),this}function p(A,C){return C=C||"utf8",a.isBuffer(A)||(A=new a(A,C)),this._priv=new o(A),this}n.exports=v;var y={};function v(A,C,M){this.setGenerator(C),this.__prime=new o(A),this._prime=o.mont(this.__prime),this._primeLen=A.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,M?(this.setPublicKey=m,this.setPrivateKey=p):this._primeCode=8}function b(A,C){var M=new a(A.toArray());return C?M.toString(C):M}Object.defineProperty(v.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=function(A,C){var M=C.toString("hex"),z=[M,A.toString(16)].join("_");if(z in y)return y[z];var W,U=0;if(A.isEven()||!f.simpleSieve||!f.fermatTest(A)||!s.test(A))return U+=1,U+=M==="02"||M==="05"?8:4,y[z]=U,U;switch(s.test(A.shrn(1))||(U+=2),M){case"02":A.mod(u).cmp(c)&&(U+=8);break;case"05":(W=A.mod(l)).cmp(d)&&W.cmp(h)&&(U+=8);break;default:U+=4}return y[z]=U,U}(this.__prime,this.__gen)),this._primeCode}}),v.prototype.generateKeys=function(){return this._priv||(this._priv=new o(g(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},v.prototype.computeSecret=function(A){var C=(A=(A=new o(A)).toRed(this._prime)).redPow(this._priv).fromRed(),M=new a(C.toArray()),z=this.getPrime();if(M.length<z.length){var W=new a(z.length-M.length);W.fill(0),M=a.concat([W,M])}return M},v.prototype.getPublicKey=function(A){return b(this._pub,A)},v.prototype.getPrivateKey=function(A){return b(this._priv,A)},v.prototype.getPrime=function(A){return b(this.__prime,A)},v.prototype.getGenerator=function(A){return b(this._gen,A)},v.prototype.setGenerator=function(A,C){return C=C||"utf8",a.isBuffer(A)||(A=new a(A,C)),this.__gen=A,this._gen=new o(A),this}}).call(this)}).call(this,e("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(e,n,i){var a=e("randombytes");n.exports=A,A.simpleSieve=v,A.fermatTest=b;var o=e("bn.js"),s=new o(24),u=new(e("miller-rabin")),c=new o(1),l=new o(2),d=new o(5),h=(new o(16),new o(8),new o(10)),f=new o(3),g=(new o(7),new o(11)),m=new o(4),p=(new o(12),null);function y(){if(p!==null)return p;var C=[];C[0]=2;for(var M=1,z=3;z<1048576;z+=2){for(var W=Math.ceil(Math.sqrt(z)),U=0;U<M&&C[U]<=W&&z%C[U]!=0;U++);M!==U&&C[U]<=W||(C[M++]=z)}return p=C,C}function v(C){for(var M=y(),z=0;z<M.length;z++)if(C.modn(M[z])===0)return C.cmpn(M[z])===0;return!0}function b(C){var M=o.mont(C);return l.toRed(M).redPow(C.subn(1)).fromRed().cmpn(1)===0}function A(C,M){if(C<16)return new o(M===2||M===5?[140,123]:[140,39]);var z,W;for(M=new o(M);;){for(z=new o(a(Math.ceil(C/8)));z.bitLength()>C;)z.ishrn(1);if(z.isEven()&&z.iadd(c),z.testn(1)||z.iadd(l),M.cmp(l)){if(!M.cmp(d))for(;z.mod(h).cmp(f);)z.iadd(m)}else for(;z.mod(s).cmp(g);)z.iadd(m);if(v(W=z.shrn(1))&&v(z)&&b(W)&&b(z)&&u.test(W)&&u.test(z))return z}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(e,n,i){n.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],404:[function(e,n,i){arguments[4][184][0].apply(i,arguments)},{buffer:188,dup:184}],405:[function(e,n,i){var a=i;a.version=e("../package.json").version,a.utils=e("./elliptic/utils"),a.rand=e("brorand"),a.curve=e("./elliptic/curve"),a.curves=e("./elliptic/curves"),a.ec=e("./elliptic/ec"),a.eddsa=e("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(e,n,i){var a=e("bn.js"),o=e("../utils"),s=o.getNAF,u=o.getJSF,c=o.assert;function l(h,f){this.type=h,this.p=new a(f.p,16),this.red=f.prime?a.red(f.prime):a.mont(this.p),this.zero=new a(0).toRed(this.red),this.one=new a(1).toRed(this.red),this.two=new a(2).toRed(this.red),this.n=f.n&&new a(f.n,16),this.g=f.g&&this.pointFromJSON(f.g,f.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var g=this.n&&this.p.div(this.n);!g||g.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(h,f){this.curve=h,this.type=f,this.precomputed=null}n.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(h,f){c(h.precomputed);var g=h._getDoubles(),m=s(f,1,this._bitLength),p=(1<<g.step+1)-(g.step%2==0?2:1);p/=3;var y,v,b=[];for(y=0;y<m.length;y+=g.step){v=0;for(var A=y+g.step-1;A>=y;A--)v=(v<<1)+m[A];b.push(v)}for(var C=this.jpoint(null,null,null),M=this.jpoint(null,null,null),z=p;z>0;z--){for(y=0;y<b.length;y++)(v=b[y])===z?M=M.mixedAdd(g.points[y]):v===-z&&(M=M.mixedAdd(g.points[y].neg()));C=C.add(M)}return C.toP()},l.prototype._wnafMul=function(h,f){var g=4,m=h._getNAFPoints(g);g=m.wnd;for(var p=m.points,y=s(f,g,this._bitLength),v=this.jpoint(null,null,null),b=y.length-1;b>=0;b--){for(var A=0;b>=0&&y[b]===0;b--)A++;if(b>=0&&A++,v=v.dblp(A),b<0)break;var C=y[b];c(C!==0),v=h.type==="affine"?C>0?v.mixedAdd(p[C-1>>1]):v.mixedAdd(p[-C-1>>1].neg()):C>0?v.add(p[C-1>>1]):v.add(p[-C-1>>1].neg())}return h.type==="affine"?v.toP():v},l.prototype._wnafMulAdd=function(h,f,g,m,p){var y,v,b,A=this._wnafT1,C=this._wnafT2,M=this._wnafT3,z=0;for(y=0;y<m;y++){var W=(b=f[y])._getNAFPoints(h);A[y]=W.wnd,C[y]=W.points}for(y=m-1;y>=1;y-=2){var U=y-1,G=y;if(A[U]===1&&A[G]===1){var ee=[f[U],null,null,f[G]];f[U].y.cmp(f[G].y)===0?(ee[1]=f[U].add(f[G]),ee[2]=f[U].toJ().mixedAdd(f[G].neg())):f[U].y.cmp(f[G].y.redNeg())===0?(ee[1]=f[U].toJ().mixedAdd(f[G]),ee[2]=f[U].add(f[G].neg())):(ee[1]=f[U].toJ().mixedAdd(f[G]),ee[2]=f[U].toJ().mixedAdd(f[G].neg()));var I=[-3,-1,-5,-7,0,7,5,1,3],O=u(g[U],g[G]);for(z=Math.max(O[0].length,z),M[U]=new Array(z),M[G]=new Array(z),v=0;v<z;v++){var T=0|O[0][v],S=0|O[1][v];M[U][v]=I[3*(T+1)+(S+1)],M[G][v]=0,C[U]=ee}}else M[U]=s(g[U],A[U],this._bitLength),M[G]=s(g[G],A[G],this._bitLength),z=Math.max(M[U].length,z),z=Math.max(M[G].length,z)}var x=this.jpoint(null,null,null),w=this._wnafT4;for(y=z;y>=0;y--){for(var _=0;y>=0;){var E=!0;for(v=0;v<m;v++)w[v]=0|M[v][y],w[v]!==0&&(E=!1);if(!E)break;_++,y--}if(y>=0&&_++,x=x.dblp(_),y<0)break;for(v=0;v<m;v++){var R=w[v];R!==0&&(R>0?b=C[v][R-1>>1]:R<0&&(b=C[v][-R-1>>1].neg()),x=b.type==="affine"?x.mixedAdd(b):x.add(b))}}for(y=0;y<m;y++)C[y]=null;return p?x:x.toP()},l.BasePoint=d,d.prototype.eq=function(){throw new Error("Not implemented")},d.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(h,f){h=o.toArray(h,f);var g=this.p.byteLength();if((h[0]===4||h[0]===6||h[0]===7)&&h.length-1==2*g)return h[0]===6?c(h[h.length-1]%2==0):h[0]===7&&c(h[h.length-1]%2==1),this.point(h.slice(1,1+g),h.slice(1+g,1+2*g));if((h[0]===2||h[0]===3)&&h.length-1===g)return this.pointFromX(h.slice(1,1+g),h[0]===3);throw new Error("Unknown point format")},d.prototype.encodeCompressed=function(h){return this.encode(h,!0)},d.prototype._encode=function(h){var f=this.curve.p.byteLength(),g=this.getX().toArray("be",f);return h?[this.getY().isEven()?2:3].concat(g):[4].concat(g,this.getY().toArray("be",f))},d.prototype.encode=function(h,f){return o.encode(this._encode(f),h)},d.prototype.precompute=function(h){if(this.precomputed)return this;var f={doubles:null,naf:null,beta:null};return f.naf=this._getNAFPoints(8),f.doubles=this._getDoubles(4,h),f.beta=this._getBeta(),this.precomputed=f,this},d.prototype._hasDoubles=function(h){if(!this.precomputed)return!1;var f=this.precomputed.doubles;return!!f&&f.points.length>=Math.ceil((h.bitLength()+1)/f.step)},d.prototype._getDoubles=function(h,f){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var g=[this],m=this,p=0;p<f;p+=h){for(var y=0;y<h;y++)m=m.dbl();g.push(m)}return{step:h,points:g}},d.prototype._getNAFPoints=function(h){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var f=[this],g=(1<<h)-1,m=g===1?null:this.dbl(),p=1;p<g;p++)f[p]=f[p-1].add(m);return{wnd:h,points:f}},d.prototype._getBeta=function(){return null},d.prototype.dblp=function(h){for(var f=this,g=0;g<h;g++)f=f.dbl();return f}},{"../utils":419,"bn.js":420}],407:[function(e,n,i){var a=e("../utils"),o=e("bn.js"),s=e("inherits"),u=e("./base"),c=a.assert;function l(h){this.twisted=(0|h.a)!=1,this.mOneA=this.twisted&&(0|h.a)==-1,this.extended=this.mOneA,u.call(this,"edwards",h),this.a=new o(h.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(h.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(h.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),c(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|h.c)==1}function d(h,f,g,m,p){u.BasePoint.call(this,h,"projective"),f===null&&g===null&&m===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(f,16),this.y=new o(g,16),this.z=m?new o(m,16):this.curve.one,this.t=p&&new o(p,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}s(l,u),n.exports=l,l.prototype._mulA=function(h){return this.mOneA?h.redNeg():this.a.redMul(h)},l.prototype._mulC=function(h){return this.oneC?h:this.c.redMul(h)},l.prototype.jpoint=function(h,f,g,m){return this.point(h,f,g,m)},l.prototype.pointFromX=function(h,f){(h=new o(h,16)).red||(h=h.toRed(this.red));var g=h.redSqr(),m=this.c2.redSub(this.a.redMul(g)),p=this.one.redSub(this.c2.redMul(this.d).redMul(g)),y=m.redMul(p.redInvm()),v=y.redSqrt();if(v.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error("invalid point");var b=v.fromRed().isOdd();return(f&&!b||!f&&b)&&(v=v.redNeg()),this.point(h,v)},l.prototype.pointFromY=function(h,f){(h=new o(h,16)).red||(h=h.toRed(this.red));var g=h.redSqr(),m=g.redSub(this.c2),p=g.redMul(this.d).redMul(this.c2).redSub(this.a),y=m.redMul(p.redInvm());if(y.cmp(this.zero)===0){if(f)throw new Error("invalid point");return this.point(this.zero,h)}var v=y.redSqrt();if(v.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error("invalid point");return v.fromRed().isOdd()!==f&&(v=v.redNeg()),this.point(v,h)},l.prototype.validate=function(h){if(h.isInfinity())return!0;h.normalize();var f=h.x.redSqr(),g=h.y.redSqr(),m=f.redMul(this.a).redAdd(g),p=this.c2.redMul(this.one.redAdd(this.d.redMul(f).redMul(g)));return m.cmp(p)===0},s(d,u.BasePoint),l.prototype.pointFromJSON=function(h){return d.fromJSON(this,h)},l.prototype.point=function(h,f,g,m){return new d(this,h,f,g,m)},d.fromJSON=function(h,f){return new d(h,f[0],f[1],f[2])},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},d.prototype._extDbl=function(){var h=this.x.redSqr(),f=this.y.redSqr(),g=this.z.redSqr();g=g.redIAdd(g);var m=this.curve._mulA(h),p=this.x.redAdd(this.y).redSqr().redISub(h).redISub(f),y=m.redAdd(f),v=y.redSub(g),b=m.redSub(f),A=p.redMul(v),C=y.redMul(b),M=p.redMul(b),z=v.redMul(y);return this.curve.point(A,C,z,M)},d.prototype._projDbl=function(){var h,f,g,m,p,y,v=this.x.redAdd(this.y).redSqr(),b=this.x.redSqr(),A=this.y.redSqr();if(this.curve.twisted){var C=(m=this.curve._mulA(b)).redAdd(A);this.zOne?(h=v.redSub(b).redSub(A).redMul(C.redSub(this.curve.two)),f=C.redMul(m.redSub(A)),g=C.redSqr().redSub(C).redSub(C)):(p=this.z.redSqr(),y=C.redSub(p).redISub(p),h=v.redSub(b).redISub(A).redMul(y),f=C.redMul(m.redSub(A)),g=C.redMul(y))}else m=b.redAdd(A),p=this.curve._mulC(this.z).redSqr(),y=m.redSub(p).redSub(p),h=this.curve._mulC(v.redISub(m)).redMul(y),f=this.curve._mulC(m).redMul(b.redISub(A)),g=m.redMul(y);return this.curve.point(h,f,g)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(h){var f=this.y.redSub(this.x).redMul(h.y.redSub(h.x)),g=this.y.redAdd(this.x).redMul(h.y.redAdd(h.x)),m=this.t.redMul(this.curve.dd).redMul(h.t),p=this.z.redMul(h.z.redAdd(h.z)),y=g.redSub(f),v=p.redSub(m),b=p.redAdd(m),A=g.redAdd(f),C=y.redMul(v),M=b.redMul(A),z=y.redMul(A),W=v.redMul(b);return this.curve.point(C,M,W,z)},d.prototype._projAdd=function(h){var f,g,m=this.z.redMul(h.z),p=m.redSqr(),y=this.x.redMul(h.x),v=this.y.redMul(h.y),b=this.curve.d.redMul(y).redMul(v),A=p.redSub(b),C=p.redAdd(b),M=this.x.redAdd(this.y).redMul(h.x.redAdd(h.y)).redISub(y).redISub(v),z=m.redMul(A).redMul(M);return this.curve.twisted?(f=m.redMul(C).redMul(v.redSub(this.curve._mulA(y))),g=A.redMul(C)):(f=m.redMul(C).redMul(v.redSub(y)),g=this.curve._mulC(A).redMul(C)),this.curve.point(z,f,g)},d.prototype.add=function(h){return this.isInfinity()?h:h.isInfinity()?this:this.curve.extended?this._extAdd(h):this._projAdd(h)},d.prototype.mul=function(h){return this._hasDoubles(h)?this.curve._fixedNafMul(this,h):this.curve._wnafMul(this,h)},d.prototype.mulAdd=function(h,f,g){return this.curve._wnafMulAdd(1,[this,f],[h,g],2,!1)},d.prototype.jmulAdd=function(h,f,g){return this.curve._wnafMulAdd(1,[this,f],[h,g],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var h=this.z.redInvm();return this.x=this.x.redMul(h),this.y=this.y.redMul(h),this.t&&(this.t=this.t.redMul(h)),this.z=this.curve.one,this.zOne=!0,this},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(h){return this===h||this.getX().cmp(h.getX())===0&&this.getY().cmp(h.getY())===0},d.prototype.eqXToP=function(h){var f=h.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(f)===0)return!0;for(var g=h.clone(),m=this.curve.redN.redMul(this.z);;){if(g.iadd(this.curve.n),g.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(m),this.x.cmp(f)===0)return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(e,n,i){var a=i;a.base=e("./base"),a.short=e("./short"),a.mont=e("./mont"),a.edwards=e("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(e,n,i){var a=e("bn.js"),o=e("inherits"),s=e("./base"),u=e("../utils");function c(d){s.call(this,"mont",d),this.a=new a(d.a,16).toRed(this.red),this.b=new a(d.b,16).toRed(this.red),this.i4=new a(4).toRed(this.red).redInvm(),this.two=new a(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(d,h,f){s.BasePoint.call(this,d,"projective"),h===null&&f===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new a(h,16),this.z=new a(f,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(c,s),n.exports=c,c.prototype.validate=function(d){var h=d.normalize().x,f=h.redSqr(),g=f.redMul(h).redAdd(f.redMul(this.a)).redAdd(h);return g.redSqrt().redSqr().cmp(g)===0},o(l,s.BasePoint),c.prototype.decodePoint=function(d,h){return this.point(u.toArray(d,h),1)},c.prototype.point=function(d,h){return new l(this,d,h)},c.prototype.pointFromJSON=function(d){return l.fromJSON(this,d)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(d,h){return new l(d,h[0],h[1]||d.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.z.cmpn(0)===0},l.prototype.dbl=function(){var d=this.x.redAdd(this.z).redSqr(),h=this.x.redSub(this.z).redSqr(),f=d.redSub(h),g=d.redMul(h),m=f.redMul(h.redAdd(this.curve.a24.redMul(f)));return this.curve.point(g,m)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(d,h){var f=this.x.redAdd(this.z),g=this.x.redSub(this.z),m=d.x.redAdd(d.z),p=d.x.redSub(d.z).redMul(f),y=m.redMul(g),v=h.z.redMul(p.redAdd(y).redSqr()),b=h.x.redMul(p.redISub(y).redSqr());return this.curve.point(v,b)},l.prototype.mul=function(d){for(var h=d.clone(),f=this,g=this.curve.point(null,null),m=[];h.cmpn(0)!==0;h.iushrn(1))m.push(h.andln(1));for(var p=m.length-1;p>=0;p--)m[p]===0?(f=f.diffAdd(g,this),g=g.dbl()):(g=f.diffAdd(g,this),f=f.dbl());return g},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(d){return this.getX().cmp(d.getX())===0},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(e,n,i){var a=e("../utils"),o=e("bn.js"),s=e("inherits"),u=e("./base"),c=a.assert;function l(f){u.call(this,"short",f),this.a=new o(f.a,16).toRed(this.red),this.b=new o(f.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(f),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function d(f,g,m,p){u.BasePoint.call(this,f,"affine"),g===null&&m===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(g,16),this.y=new o(m,16),p&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function h(f,g,m,p){u.BasePoint.call(this,f,"jacobian"),g===null&&m===null&&p===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(g,16),this.y=new o(m,16),this.z=new o(p,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}s(l,u),n.exports=l,l.prototype._getEndomorphism=function(f){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var g,m;if(f.beta)g=new o(f.beta,16).toRed(this.red);else{var p=this._getEndoRoots(this.p);g=(g=p[0].cmp(p[1])<0?p[0]:p[1]).toRed(this.red)}if(f.lambda)m=new o(f.lambda,16);else{var y=this._getEndoRoots(this.n);this.g.mul(y[0]).x.cmp(this.g.x.redMul(g))===0?m=y[0]:(m=y[1],c(this.g.mul(m).x.cmp(this.g.x.redMul(g))===0))}return{beta:g,lambda:m,basis:f.basis?f.basis.map(function(v){return{a:new o(v.a,16),b:new o(v.b,16)}}):this._getEndoBasis(m)}}},l.prototype._getEndoRoots=function(f){var g=f===this.p?this.red:o.mont(f),m=new o(2).toRed(g).redInvm(),p=m.redNeg(),y=new o(3).toRed(g).redNeg().redSqrt().redMul(m);return[p.redAdd(y).fromRed(),p.redSub(y).fromRed()]},l.prototype._getEndoBasis=function(f){for(var g,m,p,y,v,b,A,C,M,z=this.n.ushrn(Math.floor(this.n.bitLength()/2)),W=f,U=this.n.clone(),G=new o(1),ee=new o(0),I=new o(0),O=new o(1),T=0;W.cmpn(0)!==0;){var S=U.div(W);C=U.sub(S.mul(W)),M=I.sub(S.mul(G));var x=O.sub(S.mul(ee));if(!p&&C.cmp(z)<0)g=A.neg(),m=G,p=C.neg(),y=M;else if(p&&++T==2)break;A=C,U=W,W=C,I=G,G=M,O=ee,ee=x}v=C.neg(),b=M;var w=p.sqr().add(y.sqr());return v.sqr().add(b.sqr()).cmp(w)>=0&&(v=g,b=m),p.negative&&(p=p.neg(),y=y.neg()),v.negative&&(v=v.neg(),b=b.neg()),[{a:p,b:y},{a:v,b}]},l.prototype._endoSplit=function(f){var g=this.endo.basis,m=g[0],p=g[1],y=p.b.mul(f).divRound(this.n),v=m.b.neg().mul(f).divRound(this.n),b=y.mul(m.a),A=v.mul(p.a),C=y.mul(m.b),M=v.mul(p.b);return{k1:f.sub(b).sub(A),k2:C.add(M).neg()}},l.prototype.pointFromX=function(f,g){(f=new o(f,16)).red||(f=f.toRed(this.red));var m=f.redSqr().redMul(f).redIAdd(f.redMul(this.a)).redIAdd(this.b),p=m.redSqrt();if(p.redSqr().redSub(m).cmp(this.zero)!==0)throw new Error("invalid point");var y=p.fromRed().isOdd();return(g&&!y||!g&&y)&&(p=p.redNeg()),this.point(f,p)},l.prototype.validate=function(f){if(f.inf)return!0;var g=f.x,m=f.y,p=this.a.redMul(g),y=g.redSqr().redMul(g).redIAdd(p).redIAdd(this.b);return m.redSqr().redISub(y).cmpn(0)===0},l.prototype._endoWnafMulAdd=function(f,g,m){for(var p=this._endoWnafT1,y=this._endoWnafT2,v=0;v<f.length;v++){var b=this._endoSplit(g[v]),A=f[v],C=A._getBeta();b.k1.negative&&(b.k1.ineg(),A=A.neg(!0)),b.k2.negative&&(b.k2.ineg(),C=C.neg(!0)),p[2*v]=A,p[2*v+1]=C,y[2*v]=b.k1,y[2*v+1]=b.k2}for(var M=this._wnafMulAdd(1,p,y,2*v,m),z=0;z<2*v;z++)p[z]=null,y[z]=null;return M},s(d,u.BasePoint),l.prototype.point=function(f,g,m){return new d(this,f,g,m)},l.prototype.pointFromJSON=function(f,g){return d.fromJSON(this,f,g)},d.prototype._getBeta=function(){if(this.curve.endo){var f=this.precomputed;if(f&&f.beta)return f.beta;var g=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(f){var m=this.curve,p=function(y){return m.point(y.x.redMul(m.endo.beta),y.y)};f.beta=g,g.precomputed={beta:null,naf:f.naf&&{wnd:f.naf.wnd,points:f.naf.points.map(p)},doubles:f.doubles&&{step:f.doubles.step,points:f.doubles.points.map(p)}}}return g}},d.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},d.fromJSON=function(f,g,m){typeof g=="string"&&(g=JSON.parse(g));var p=f.point(g[0],g[1],m);if(!g[2])return p;function y(b){return f.point(b[0],b[1],m)}var v=g[2];return p.precomputed={beta:null,doubles:v.doubles&&{step:v.doubles.step,points:[p].concat(v.doubles.points.map(y))},naf:v.naf&&{wnd:v.naf.wnd,points:[p].concat(v.naf.points.map(y))}},p},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(f){if(this.inf)return f;if(f.inf)return this;if(this.eq(f))return this.dbl();if(this.neg().eq(f))return this.curve.point(null,null);if(this.x.cmp(f.x)===0)return this.curve.point(null,null);var g=this.y.redSub(f.y);g.cmpn(0)!==0&&(g=g.redMul(this.x.redSub(f.x).redInvm()));var m=g.redSqr().redISub(this.x).redISub(f.x),p=g.redMul(this.x.redSub(m)).redISub(this.y);return this.curve.point(m,p)},d.prototype.dbl=function(){if(this.inf)return this;var f=this.y.redAdd(this.y);if(f.cmpn(0)===0)return this.curve.point(null,null);var g=this.curve.a,m=this.x.redSqr(),p=f.redInvm(),y=m.redAdd(m).redIAdd(m).redIAdd(g).redMul(p),v=y.redSqr().redISub(this.x.redAdd(this.x)),b=y.redMul(this.x.redSub(v)).redISub(this.y);return this.curve.point(v,b)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(f){return f=new o(f,16),this.isInfinity()?this:this._hasDoubles(f)?this.curve._fixedNafMul(this,f):this.curve.endo?this.curve._endoWnafMulAdd([this],[f]):this.curve._wnafMul(this,f)},d.prototype.mulAdd=function(f,g,m){var p=[this,g],y=[f,m];return this.curve.endo?this.curve._endoWnafMulAdd(p,y):this.curve._wnafMulAdd(1,p,y,2)},d.prototype.jmulAdd=function(f,g,m){var p=[this,g],y=[f,m];return this.curve.endo?this.curve._endoWnafMulAdd(p,y,!0):this.curve._wnafMulAdd(1,p,y,2,!0)},d.prototype.eq=function(f){return this===f||this.inf===f.inf&&(this.inf||this.x.cmp(f.x)===0&&this.y.cmp(f.y)===0)},d.prototype.neg=function(f){if(this.inf)return this;var g=this.curve.point(this.x,this.y.redNeg());if(f&&this.precomputed){var m=this.precomputed,p=function(y){return y.neg()};g.precomputed={naf:m.naf&&{wnd:m.naf.wnd,points:m.naf.points.map(p)},doubles:m.doubles&&{step:m.doubles.step,points:m.doubles.points.map(p)}}}return g},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},s(h,u.BasePoint),l.prototype.jpoint=function(f,g,m){return new h(this,f,g,m)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var f=this.z.redInvm(),g=f.redSqr(),m=this.x.redMul(g),p=this.y.redMul(g).redMul(f);return this.curve.point(m,p)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(f){if(this.isInfinity())return f;if(f.isInfinity())return this;var g=f.z.redSqr(),m=this.z.redSqr(),p=this.x.redMul(g),y=f.x.redMul(m),v=this.y.redMul(g.redMul(f.z)),b=f.y.redMul(m.redMul(this.z)),A=p.redSub(y),C=v.redSub(b);if(A.cmpn(0)===0)return C.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var M=A.redSqr(),z=M.redMul(A),W=p.redMul(M),U=C.redSqr().redIAdd(z).redISub(W).redISub(W),G=C.redMul(W.redISub(U)).redISub(v.redMul(z)),ee=this.z.redMul(f.z).redMul(A);return this.curve.jpoint(U,G,ee)},h.prototype.mixedAdd=function(f){if(this.isInfinity())return f.toJ();if(f.isInfinity())return this;var g=this.z.redSqr(),m=this.x,p=f.x.redMul(g),y=this.y,v=f.y.redMul(g).redMul(this.z),b=m.redSub(p),A=y.redSub(v);if(b.cmpn(0)===0)return A.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var C=b.redSqr(),M=C.redMul(b),z=m.redMul(C),W=A.redSqr().redIAdd(M).redISub(z).redISub(z),U=A.redMul(z.redISub(W)).redISub(y.redMul(M)),G=this.z.redMul(b);return this.curve.jpoint(W,U,G)},h.prototype.dblp=function(f){if(f===0)return this;if(this.isInfinity())return this;if(!f)return this.dbl();var g;if(this.curve.zeroA||this.curve.threeA){var m=this;for(g=0;g<f;g++)m=m.dbl();return m}var p=this.curve.a,y=this.curve.tinv,v=this.x,b=this.y,A=this.z,C=A.redSqr().redSqr(),M=b.redAdd(b);for(g=0;g<f;g++){var z=v.redSqr(),W=M.redSqr(),U=W.redSqr(),G=z.redAdd(z).redIAdd(z).redIAdd(p.redMul(C)),ee=v.redMul(W),I=G.redSqr().redISub(ee.redAdd(ee)),O=ee.redISub(I),T=G.redMul(O);T=T.redIAdd(T).redISub(U);var S=M.redMul(A);g+1<f&&(C=C.redMul(U)),v=I,A=S,M=T}return this.curve.jpoint(v,M.redMul(y),A)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},h.prototype._zeroDbl=function(){var f,g,m;if(this.zOne){var p=this.x.redSqr(),y=this.y.redSqr(),v=y.redSqr(),b=this.x.redAdd(y).redSqr().redISub(p).redISub(v);b=b.redIAdd(b);var A=p.redAdd(p).redIAdd(p),C=A.redSqr().redISub(b).redISub(b),M=v.redIAdd(v);M=(M=M.redIAdd(M)).redIAdd(M),f=C,g=A.redMul(b.redISub(C)).redISub(M),m=this.y.redAdd(this.y)}else{var z=this.x.redSqr(),W=this.y.redSqr(),U=W.redSqr(),G=this.x.redAdd(W).redSqr().redISub(z).redISub(U);G=G.redIAdd(G);var ee=z.redAdd(z).redIAdd(z),I=ee.redSqr(),O=U.redIAdd(U);O=(O=O.redIAdd(O)).redIAdd(O),f=I.redISub(G).redISub(G),g=ee.redMul(G.redISub(f)).redISub(O),m=(m=this.y.redMul(this.z)).redIAdd(m)}return this.curve.jpoint(f,g,m)},h.prototype._threeDbl=function(){var f,g,m;if(this.zOne){var p=this.x.redSqr(),y=this.y.redSqr(),v=y.redSqr(),b=this.x.redAdd(y).redSqr().redISub(p).redISub(v);b=b.redIAdd(b);var A=p.redAdd(p).redIAdd(p).redIAdd(this.curve.a),C=A.redSqr().redISub(b).redISub(b);f=C;var M=v.redIAdd(v);M=(M=M.redIAdd(M)).redIAdd(M),g=A.redMul(b.redISub(C)).redISub(M),m=this.y.redAdd(this.y)}else{var z=this.z.redSqr(),W=this.y.redSqr(),U=this.x.redMul(W),G=this.x.redSub(z).redMul(this.x.redAdd(z));G=G.redAdd(G).redIAdd(G);var ee=U.redIAdd(U),I=(ee=ee.redIAdd(ee)).redAdd(ee);f=G.redSqr().redISub(I),m=this.y.redAdd(this.z).redSqr().redISub(W).redISub(z);var O=W.redSqr();O=(O=(O=O.redIAdd(O)).redIAdd(O)).redIAdd(O),g=G.redMul(ee.redISub(f)).redISub(O)}return this.curve.jpoint(f,g,m)},h.prototype._dbl=function(){var f=this.curve.a,g=this.x,m=this.y,p=this.z,y=p.redSqr().redSqr(),v=g.redSqr(),b=m.redSqr(),A=v.redAdd(v).redIAdd(v).redIAdd(f.redMul(y)),C=g.redAdd(g),M=(C=C.redIAdd(C)).redMul(b),z=A.redSqr().redISub(M.redAdd(M)),W=M.redISub(z),U=b.redSqr();U=(U=(U=U.redIAdd(U)).redIAdd(U)).redIAdd(U);var G=A.redMul(W).redISub(U),ee=m.redAdd(m).redMul(p);return this.curve.jpoint(z,G,ee)},h.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var f=this.x.redSqr(),g=this.y.redSqr(),m=this.z.redSqr(),p=g.redSqr(),y=f.redAdd(f).redIAdd(f),v=y.redSqr(),b=this.x.redAdd(g).redSqr().redISub(f).redISub(p),A=(b=(b=(b=b.redIAdd(b)).redAdd(b).redIAdd(b)).redISub(v)).redSqr(),C=p.redIAdd(p);C=(C=(C=C.redIAdd(C)).redIAdd(C)).redIAdd(C);var M=y.redIAdd(b).redSqr().redISub(v).redISub(A).redISub(C),z=g.redMul(M);z=(z=z.redIAdd(z)).redIAdd(z);var W=this.x.redMul(A).redISub(z);W=(W=W.redIAdd(W)).redIAdd(W);var U=this.y.redMul(M.redMul(C.redISub(M)).redISub(b.redMul(A)));U=(U=(U=U.redIAdd(U)).redIAdd(U)).redIAdd(U);var G=this.z.redAdd(b).redSqr().redISub(m).redISub(A);return this.curve.jpoint(W,U,G)},h.prototype.mul=function(f,g){return f=new o(f,g),this.curve._wnafMul(this,f)},h.prototype.eq=function(f){if(f.type==="affine")return this.eq(f.toJ());if(this===f)return!0;var g=this.z.redSqr(),m=f.z.redSqr();if(this.x.redMul(m).redISub(f.x.redMul(g)).cmpn(0)!==0)return!1;var p=g.redMul(this.z),y=m.redMul(f.z);return this.y.redMul(y).redISub(f.y.redMul(p)).cmpn(0)===0},h.prototype.eqXToP=function(f){var g=this.z.redSqr(),m=f.toRed(this.curve.red).redMul(g);if(this.x.cmp(m)===0)return!0;for(var p=f.clone(),y=this.curve.redN.redMul(g);;){if(p.iadd(this.curve.n),p.cmp(this.curve.p)>=0)return!1;if(m.redIAdd(y),this.x.cmp(m)===0)return!0}},h.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},h.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(e,n,i){var a,o=i,s=e("hash.js"),u=e("./curve"),c=e("./utils").assert;function l(h){h.type==="short"?this.curve=new u.short(h):h.type==="edwards"?this.curve=new u.edwards(h):this.curve=new u.mont(h),this.g=this.curve.g,this.n=this.curve.n,this.hash=h.hash,c(this.g.validate(),"Invalid curve"),c(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(h,f){Object.defineProperty(o,h,{configurable:!0,enumerable:!0,get:function(){var g=new l(f);return Object.defineProperty(o,h,{configurable:!0,enumerable:!0,value:g}),g}})}o.PresetCurve=l,d("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:s.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:s.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:s.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:s.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),d("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:s.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["9"]}),d("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{a=e("./precomputed/secp256k1")}catch{a=void 0}d("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:s.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",a]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(e,n,i){var a=e("bn.js"),o=e("hmac-drbg"),s=e("../utils"),u=e("../curves"),c=e("brorand"),l=s.assert,d=e("./key"),h=e("./signature");function f(g){if(!(this instanceof f))return new f(g);typeof g=="string"&&(l(Object.prototype.hasOwnProperty.call(u,g),"Unknown curve "+g),g=u[g]),g instanceof u.PresetCurve&&(g={curve:g}),this.curve=g.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=g.curve.g,this.g.precompute(g.curve.n.bitLength()+1),this.hash=g.hash||g.curve.hash}n.exports=f,f.prototype.keyPair=function(g){return new d(this,g)},f.prototype.keyFromPrivate=function(g,m){return d.fromPrivate(this,g,m)},f.prototype.keyFromPublic=function(g,m){return d.fromPublic(this,g,m)},f.prototype.genKeyPair=function(g){g||(g={});for(var m=new o({hash:this.hash,pers:g.pers,persEnc:g.persEnc||"utf8",entropy:g.entropy||c(this.hash.hmacStrength),entropyEnc:g.entropy&&g.entropyEnc||"utf8",nonce:this.n.toArray()}),p=this.n.byteLength(),y=this.n.sub(new a(2));;){var v=new a(m.generate(p));if(!(v.cmp(y)>0))return v.iaddn(1),this.keyFromPrivate(v)}},f.prototype._truncateToN=function(g,m){var p=8*g.byteLength()-this.n.bitLength();return p>0&&(g=g.ushrn(p)),!m&&g.cmp(this.n)>=0?g.sub(this.n):g},f.prototype.sign=function(g,m,p,y){typeof p=="object"&&(y=p,p=null),y||(y={}),m=this.keyFromPrivate(m,p),g=this._truncateToN(new a(g,16));for(var v=this.n.byteLength(),b=m.getPrivate().toArray("be",v),A=g.toArray("be",v),C=new o({hash:this.hash,entropy:b,nonce:A,pers:y.pers,persEnc:y.persEnc||"utf8"}),M=this.n.sub(new a(1)),z=0;;z++){var W=y.k?y.k(z):new a(C.generate(this.n.byteLength()));if(!((W=this._truncateToN(W,!0)).cmpn(1)<=0||W.cmp(M)>=0)){var U=this.g.mul(W);if(!U.isInfinity()){var G=U.getX(),ee=G.umod(this.n);if(ee.cmpn(0)!==0){var I=W.invm(this.n).mul(ee.mul(m.getPrivate()).iadd(g));if((I=I.umod(this.n)).cmpn(0)!==0){var O=(U.getY().isOdd()?1:0)|(G.cmp(ee)!==0?2:0);return y.canonical&&I.cmp(this.nh)>0&&(I=this.n.sub(I),O^=1),new h({r:ee,s:I,recoveryParam:O})}}}}}},f.prototype.verify=function(g,m,p,y){g=this._truncateToN(new a(g,16)),p=this.keyFromPublic(p,y);var v=(m=new h(m,"hex")).r,b=m.s;if(v.cmpn(1)<0||v.cmp(this.n)>=0||b.cmpn(1)<0||b.cmp(this.n)>=0)return!1;var A,C=b.invm(this.n),M=C.mul(g).umod(this.n),z=C.mul(v).umod(this.n);return this.curve._maxwellTrick?!(A=this.g.jmulAdd(M,p.getPublic(),z)).isInfinity()&&A.eqXToP(v):!(A=this.g.mulAdd(M,p.getPublic(),z)).isInfinity()&&A.getX().umod(this.n).cmp(v)===0},f.prototype.recoverPubKey=function(g,m,p,y){l((3&p)===p,"The recovery param is more than two bits"),m=new h(m,y);var v=this.n,b=new a(g),A=m.r,C=m.s,M=1&p,z=p>>1;if(A.cmp(this.curve.p.umod(this.curve.n))>=0&&z)throw new Error("Unable to find sencond key candinate");A=z?this.curve.pointFromX(A.add(this.curve.n),M):this.curve.pointFromX(A,M);var W=m.r.invm(v),U=v.sub(b).mul(W).umod(v),G=C.mul(W).umod(v);return this.g.mulAdd(U,A,G)},f.prototype.getKeyRecoveryParam=function(g,m,p,y){if((m=new h(m,y)).recoveryParam!==null)return m.recoveryParam;for(var v=0;v<4;v++){var b;try{b=this.recoverPubKey(g,m,v)}catch{continue}if(b.eq(p))return v}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(e,n,i){var a=e("bn.js"),o=e("../utils").assert;function s(u,c){this.ec=u,this.priv=null,this.pub=null,c.priv&&this._importPrivate(c.priv,c.privEnc),c.pub&&this._importPublic(c.pub,c.pubEnc)}n.exports=s,s.fromPublic=function(u,c,l){return c instanceof s?c:new s(u,{pub:c,pubEnc:l})},s.fromPrivate=function(u,c,l){return c instanceof s?c:new s(u,{priv:c,privEnc:l})},s.prototype.validate=function(){var u=this.getPublic();return u.isInfinity()?{result:!1,reason:"Invalid public key"}:u.validate()?u.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},s.prototype.getPublic=function(u,c){return typeof u=="string"&&(c=u,u=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),c?this.pub.encode(c,u):this.pub},s.prototype.getPrivate=function(u){return u==="hex"?this.priv.toString(16,2):this.priv},s.prototype._importPrivate=function(u,c){this.priv=new a(u,c||16),this.priv=this.priv.umod(this.ec.curve.n)},s.prototype._importPublic=function(u,c){if(u.x||u.y)return this.ec.curve.type==="mont"?o(u.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||o(u.x&&u.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(u.x,u.y));this.pub=this.ec.curve.decodePoint(u,c)},s.prototype.derive=function(u){return u.validate()||o(u.validate(),"public point not validated"),u.mul(this.priv).getX()},s.prototype.sign=function(u,c,l){return this.ec.sign(u,this,c,l)},s.prototype.verify=function(u,c){return this.ec.verify(u,c,this)},s.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":419,"bn.js":420}],414:[function(e,n,i){var a=e("bn.js"),o=e("../utils"),s=o.assert;function u(f,g){if(f instanceof u)return f;this._importDER(f,g)||(s(f.r&&f.s,"Signature without r or s"),this.r=new a(f.r,16),this.s=new a(f.s,16),f.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=f.recoveryParam)}function c(){this.place=0}function l(f,g){var m=f[g.place++];if(!(128&m))return m;var p=15&m;if(p===0||p>4)return!1;for(var y=0,v=0,b=g.place;v<p;v++,b++)y<<=8,y|=f[b],y>>>=0;return!(y<=127)&&(g.place=b,y)}function d(f){for(var g=0,m=f.length-1;!f[g]&&!(128&f[g+1])&&g<m;)g++;return g===0?f:f.slice(g)}function h(f,g){if(g<128)f.push(g);else{var m=1+(Math.log(g)/Math.LN2>>>3);for(f.push(128|m);--m;)f.push(g>>>(m<<3)&255);f.push(g)}}n.exports=u,u.prototype._importDER=function(f,g){f=o.toArray(f,g);var m=new c;if(f[m.place++]!==48)return!1;var p=l(f,m);if(p===!1||p+m.place!==f.length||f[m.place++]!==2)return!1;var y=l(f,m);if(y===!1)return!1;var v=f.slice(m.place,y+m.place);if(m.place+=y,f[m.place++]!==2)return!1;var b=l(f,m);if(b===!1||f.length!==b+m.place)return!1;var A=f.slice(m.place,b+m.place);if(v[0]===0){if(!(128&v[1]))return!1;v=v.slice(1)}if(A[0]===0){if(!(128&A[1]))return!1;A=A.slice(1)}return this.r=new a(v),this.s=new a(A),this.recoveryParam=null,!0},u.prototype.toDER=function(f){var g=this.r.toArray(),m=this.s.toArray();for(128&g[0]&&(g=[0].concat(g)),128&m[0]&&(m=[0].concat(m)),g=d(g),m=d(m);!(m[0]||128&m[1]);)m=m.slice(1);var p=[2];h(p,g.length),(p=p.concat(g)).push(2),h(p,m.length);var y=p.concat(m),v=[48];return h(v,y.length),v=v.concat(y),o.encode(v,f)}},{"../utils":419,"bn.js":420}],415:[function(e,n,i){var a=e("hash.js"),o=e("../curves"),s=e("../utils"),u=s.assert,c=s.parseBytes,l=e("./key"),d=e("./signature");function h(f){if(u(f==="ed25519","only tested with ed25519 so far"),!(this instanceof h))return new h(f);f=o[f].curve,this.curve=f,this.g=f.g,this.g.precompute(f.n.bitLength()+1),this.pointClass=f.point().constructor,this.encodingLength=Math.ceil(f.n.bitLength()/8),this.hash=a.sha512}n.exports=h,h.prototype.sign=function(f,g){f=c(f);var m=this.keyFromSecret(g),p=this.hashInt(m.messagePrefix(),f),y=this.g.mul(p),v=this.encodePoint(y),b=this.hashInt(v,m.pubBytes(),f).mul(m.priv()),A=p.add(b).umod(this.curve.n);return this.makeSignature({R:y,S:A,Rencoded:v})},h.prototype.verify=function(f,g,m){f=c(f),g=this.makeSignature(g);var p=this.keyFromPublic(m),y=this.hashInt(g.Rencoded(),p.pubBytes(),f),v=this.g.mul(g.S());return g.R().add(p.pub().mul(y)).eq(v)},h.prototype.hashInt=function(){for(var f=this.hash(),g=0;g<arguments.length;g++)f.update(arguments[g]);return s.intFromLE(f.digest()).umod(this.curve.n)},h.prototype.keyFromPublic=function(f){return l.fromPublic(this,f)},h.prototype.keyFromSecret=function(f){return l.fromSecret(this,f)},h.prototype.makeSignature=function(f){return f instanceof d?f:new d(this,f)},h.prototype.encodePoint=function(f){var g=f.getY().toArray("le",this.encodingLength);return g[this.encodingLength-1]|=f.getX().isOdd()?128:0,g},h.prototype.decodePoint=function(f){var g=(f=s.parseBytes(f)).length-1,m=f.slice(0,g).concat(-129&f[g]),p=(128&f[g])!=0,y=s.intFromLE(m);return this.curve.pointFromY(y,p)},h.prototype.encodeInt=function(f){return f.toArray("le",this.encodingLength)},h.prototype.decodeInt=function(f){return s.intFromLE(f)},h.prototype.isPoint=function(f){return f instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(e,n,i){var a=e("../utils"),o=a.assert,s=a.parseBytes,u=a.cachedProperty;function c(l,d){this.eddsa=l,this._secret=s(d.secret),l.isPoint(d.pub)?this._pub=d.pub:this._pubBytes=s(d.pub)}c.fromPublic=function(l,d){return d instanceof c?d:new c(l,{pub:d})},c.fromSecret=function(l,d){return d instanceof c?d:new c(l,{secret:d})},c.prototype.secret=function(){return this._secret},u(c,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),u(c,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),u(c,"privBytes",function(){var l=this.eddsa,d=this.hash(),h=l.encodingLength-1,f=d.slice(0,l.encodingLength);return f[0]&=248,f[h]&=127,f[h]|=64,f}),u(c,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),u(c,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),u(c,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),c.prototype.sign=function(l){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(l,this)},c.prototype.verify=function(l,d){return this.eddsa.verify(l,d,this)},c.prototype.getSecret=function(l){return o(this._secret,"KeyPair is public only"),a.encode(this.secret(),l)},c.prototype.getPublic=function(l){return a.encode(this.pubBytes(),l)},n.exports=c},{"../utils":419}],417:[function(e,n,i){var a=e("bn.js"),o=e("../utils"),s=o.assert,u=o.cachedProperty,c=o.parseBytes;function l(d,h){this.eddsa=d,typeof h!="object"&&(h=c(h)),Array.isArray(h)&&(h={R:h.slice(0,d.encodingLength),S:h.slice(d.encodingLength)}),s(h.R&&h.S,"Signature without R or S"),d.isPoint(h.R)&&(this._R=h.R),h.S instanceof a&&(this._S=h.S),this._Rencoded=Array.isArray(h.R)?h.R:h.Rencoded,this._Sencoded=Array.isArray(h.S)?h.S:h.Sencoded}u(l,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),u(l,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),u(l,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),u(l,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},n.exports=l},{"../utils":419,"bn.js":420}],418:[function(e,n,i){n.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],419:[function(e,n,i){var a=i,o=e("bn.js"),s=e("minimalistic-assert"),u=e("minimalistic-crypto-utils");a.assert=s,a.toArray=u.toArray,a.zero2=u.zero2,a.toHex=u.toHex,a.encode=u.encode,a.getNAF=function(c,l,d){var h=new Array(Math.max(c.bitLength(),d)+1);h.fill(0);for(var f=1<<l+1,g=c.clone(),m=0;m<h.length;m++){var p,y=g.andln(f-1);g.isOdd()?(p=y>(f>>1)-1?(f>>1)-y:y,g.isubn(p)):p=0,h[m]=p,g.iushrn(1)}return h},a.getJSF=function(c,l){var d=[[],[]];c=c.clone(),l=l.clone();for(var h,f=0,g=0;c.cmpn(-f)>0||l.cmpn(-g)>0;){var m,p,y=c.andln(3)+f&3,v=l.andln(3)+g&3;y===3&&(y=-1),v===3&&(v=-1),m=(1&y)==0?0:(h=c.andln(7)+f&7)!=3&&h!==5||v!==2?y:-y,d[0].push(m),p=(1&v)==0?0:(h=l.andln(7)+g&7)!=3&&h!==5||y!==2?v:-v,d[1].push(p),2*f===m+1&&(f=1-f),2*g===p+1&&(g=1-g),c.iushrn(1),l.iushrn(1)}return d},a.cachedProperty=function(c,l,d){var h="_"+l;c.prototype[l]=function(){return this[h]!==void 0?this[h]:this[h]=d.call(this)}},a.parseBytes=function(c){return typeof c=="string"?a.toArray(c,"hex"):c},a.intFromLE=function(c){return new o(c,"hex","le")}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(e,n,i){arguments[4][184][0].apply(i,arguments)},{buffer:188,dup:184}],421:[function(e,n,i){n.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],422:[function(e,n,i){var a=Object.create||function(W){var U=function(){};return U.prototype=W,new U},o=Object.keys||function(W){var U=[];for(var G in W)Object.prototype.hasOwnProperty.call(W,G)&&U.push(G);return G},s=Function.prototype.bind||function(W){var U=this;return function(){return U.apply(W,arguments)}};function u(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=a(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}n.exports=u,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._maxListeners=void 0;var c,l=10;try{var d={};Object.defineProperty&&Object.defineProperty(d,"x",{value:0}),c=d.x===0}catch{c=!1}function h(W){return W._maxListeners===void 0?u.defaultMaxListeners:W._maxListeners}function f(W,U,G){if(U)W.call(G);else for(var ee=W.length,I=z(W,ee),O=0;O<ee;++O)I[O].call(G)}function g(W,U,G,ee){if(U)W.call(G,ee);else for(var I=W.length,O=z(W,I),T=0;T<I;++T)O[T].call(G,ee)}function m(W,U,G,ee,I){if(U)W.call(G,ee,I);else for(var O=W.length,T=z(W,O),S=0;S<O;++S)T[S].call(G,ee,I)}function p(W,U,G,ee,I,O){if(U)W.call(G,ee,I,O);else for(var T=W.length,S=z(W,T),x=0;x<T;++x)S[x].call(G,ee,I,O)}function y(W,U,G,ee){if(U)W.apply(G,ee);else for(var I=W.length,O=z(W,I),T=0;T<I;++T)O[T].apply(G,ee)}function v(W,U,G,ee){var I,O,T;if(typeof G!="function")throw new TypeError('"listener" argument must be a function');if((O=W._events)?(O.newListener&&(W.emit("newListener",U,G.listener?G.listener:G),O=W._events),T=O[U]):(O=W._events=a(null),W._eventsCount=0),T){if(typeof T=="function"?T=O[U]=ee?[G,T]:[T,G]:ee?T.unshift(G):T.push(G),!T.warned&&(I=h(W))&&I>0&&T.length>I){T.warned=!0;var S=new Error("Possible EventEmitter memory leak detected. "+T.length+' "'+String(U)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');S.name="MaxListenersExceededWarning",S.emitter=W,S.type=U,S.count=T.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",S.name,S.message)}}else T=O[U]=G,++W._eventsCount;return W}function b(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var W=new Array(arguments.length),U=0;U<W.length;++U)W[U]=arguments[U];this.listener.apply(this.target,W)}}function A(W,U,G){var ee={fired:!1,wrapFn:void 0,target:W,type:U,listener:G},I=s.call(b,ee);return I.listener=G,ee.wrapFn=I,I}function C(W,U,G){var ee=W._events;if(!ee)return[];var I=ee[U];return I?typeof I=="function"?G?[I.listener||I]:[I]:G?function(O){for(var T=new Array(O.length),S=0;S<T.length;++S)T[S]=O[S].listener||O[S];return T}(I):z(I,I.length):[]}function M(W){var U=this._events;if(U){var G=U[W];if(typeof G=="function")return 1;if(G)return G.length}return 0}function z(W,U){for(var G=new Array(U),ee=0;ee<U;++ee)G[ee]=W[ee];return G}c?Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(W){if(typeof W!="number"||W<0||W!=W)throw new TypeError('"defaultMaxListeners" must be a positive number');l=W}}):u.defaultMaxListeners=l,u.prototype.setMaxListeners=function(W){if(typeof W!="number"||W<0||isNaN(W))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=W,this},u.prototype.getMaxListeners=function(){return h(this)},u.prototype.emit=function(W){var U,G,ee,I,O,T,S=W==="error";if(T=this._events)S=S&&T.error==null;else if(!S)return!1;if(S){if(arguments.length>1&&(U=arguments[1]),U instanceof Error)throw U;var x=new Error('Unhandled "error" event. ('+U+")");throw x.context=U,x}if(!(G=T[W]))return!1;var w=typeof G=="function";switch(ee=arguments.length){case 1:f(G,w,this);break;case 2:g(G,w,this,arguments[1]);break;case 3:m(G,w,this,arguments[1],arguments[2]);break;case 4:p(G,w,this,arguments[1],arguments[2],arguments[3]);break;default:for(I=new Array(ee-1),O=1;O<ee;O++)I[O-1]=arguments[O];y(G,w,this,I)}return!0},u.prototype.addListener=function(W,U){return v(this,W,U,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(W,U){return v(this,W,U,!0)},u.prototype.once=function(W,U){if(typeof U!="function")throw new TypeError('"listener" argument must be a function');return this.on(W,A(this,W,U)),this},u.prototype.prependOnceListener=function(W,U){if(typeof U!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(W,A(this,W,U)),this},u.prototype.removeListener=function(W,U){var G,ee,I,O,T;if(typeof U!="function")throw new TypeError('"listener" argument must be a function');if(!(ee=this._events))return this;if(!(G=ee[W]))return this;if(G===U||G.listener===U)--this._eventsCount==0?this._events=a(null):(delete ee[W],ee.removeListener&&this.emit("removeListener",W,G.listener||U));else if(typeof G!="function"){for(I=-1,O=G.length-1;O>=0;O--)if(G[O]===U||G[O].listener===U){T=G[O].listener,I=O;break}if(I<0)return this;I===0?G.shift():function(S,x){for(var w=x,_=w+1,E=S.length;_<E;w+=1,_+=1)S[w]=S[_];S.pop()}(G,I),G.length===1&&(ee[W]=G[0]),ee.removeListener&&this.emit("removeListener",W,T||U)}return this},u.prototype.removeAllListeners=function(W){var U,G,ee;if(!(G=this._events))return this;if(!G.removeListener)return arguments.length===0?(this._events=a(null),this._eventsCount=0):G[W]&&(--this._eventsCount==0?this._events=a(null):delete G[W]),this;if(arguments.length===0){var I,O=o(G);for(ee=0;ee<O.length;++ee)(I=O[ee])!=="removeListener"&&this.removeAllListeners(I);return this.removeAllListeners("removeListener"),this._events=a(null),this._eventsCount=0,this}if(typeof(U=G[W])=="function")this.removeListener(W,U);else if(U)for(ee=U.length-1;ee>=0;ee--)this.removeListener(W,U[ee]);return this},u.prototype.listeners=function(W){return C(this,W,!0)},u.prototype.rawListeners=function(W){return C(this,W,!1)},u.listenerCount=function(W,U){return typeof W.listenerCount=="function"?W.listenerCount(U):M.call(W,U)},u.prototype.listenerCount=M,u.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(e,n,i){var a=e("safe-buffer").Buffer,o=e("md5.js");n.exports=function(s,u,c,l){if(a.isBuffer(s)||(s=a.from(s,"binary")),u&&(a.isBuffer(u)||(u=a.from(u,"binary")),u.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var d=c/8,h=a.alloc(d),f=a.alloc(l||0),g=a.alloc(0);d>0||l>0;){var m=new o;m.update(g),m.update(s),u&&m.update(u),g=m.digest();var p=0;if(d>0){var y=h.length-d;p=Math.min(d,g.length),g.copy(h,y,0,p),d-=p}if(p<g.length&&l>0){var v=f.length-l,b=Math.min(l,g.length-p);g.copy(f,v,p,p+b),l-=b}}return g.fill(0),{key:h,iv:f}}},{"md5.js":450,"safe-buffer":494}],424:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.CsvParserStream=i.ParserOptions=i.parseFile=i.parseStream=i.parseString=i.parse=i.FormatterOptions=i.CsvFormatterStream=i.writeToPath=i.writeToString=i.writeToBuffer=i.writeToStream=i.write=i.format=void 0;var a=e("@fast-csv/format");Object.defineProperty(i,"format",{enumerable:!0,get:function(){return a.format}}),Object.defineProperty(i,"write",{enumerable:!0,get:function(){return a.write}}),Object.defineProperty(i,"writeToStream",{enumerable:!0,get:function(){return a.writeToStream}}),Object.defineProperty(i,"writeToBuffer",{enumerable:!0,get:function(){return a.writeToBuffer}}),Object.defineProperty(i,"writeToString",{enumerable:!0,get:function(){return a.writeToString}}),Object.defineProperty(i,"writeToPath",{enumerable:!0,get:function(){return a.writeToPath}}),Object.defineProperty(i,"CsvFormatterStream",{enumerable:!0,get:function(){return a.CsvFormatterStream}}),Object.defineProperty(i,"FormatterOptions",{enumerable:!0,get:function(){return a.FormatterOptions}});var o=e("@fast-csv/parse");Object.defineProperty(i,"parse",{enumerable:!0,get:function(){return o.parse}}),Object.defineProperty(i,"parseString",{enumerable:!0,get:function(){return o.parseString}}),Object.defineProperty(i,"parseStream",{enumerable:!0,get:function(){return o.parseStream}}),Object.defineProperty(i,"parseFile",{enumerable:!0,get:function(){return o.parseFile}}),Object.defineProperty(i,"ParserOptions",{enumerable:!0,get:function(){return o.ParserOptions}}),Object.defineProperty(i,"CsvParserStream",{enumerable:!0,get:function(){return o.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(e,n,i){var a=e("safe-buffer").Buffer,o=e("readable-stream").Transform;function s(u){o.call(this),this._block=a.allocUnsafe(u),this._blockSize=u,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(s,o),s.prototype._transform=function(u,c,l){var d=null;try{this.update(u,c)}catch(h){d=h}l(d)},s.prototype._flush=function(u){var c=null;try{this.push(this.digest())}catch(l){c=l}u(c)},s.prototype.update=function(u,c){if(function(m,p){if(!a.isBuffer(m)&&typeof m!="string")throw new TypeError(p+" must be a string or a buffer")}(u,"Data"),this._finalized)throw new Error("Digest already called");a.isBuffer(u)||(u=a.from(u,c));for(var l=this._block,d=0;this._blockOffset+u.length-d>=this._blockSize;){for(var h=this._blockOffset;h<this._blockSize;)l[h++]=u[d++];this._update(),this._blockOffset=0}for(;d<u.length;)l[this._blockOffset++]=u[d++];for(var f=0,g=8*u.length;g>0;++f)this._length[f]+=g,(g=this._length[f]/4294967296|0)>0&&(this._length[f]-=4294967296*g);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(u){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var c=this._digest();u!==void 0&&(c=c.toString(u)),this._block.fill(0),this._blockOffset=0;for(var l=0;l<4;++l)this._length[l]=0;return c},s.prototype._digest=function(){throw new Error("_digest is not implemented")},n.exports=s},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(e,n,i){var a=i;a.utils=e("./hash/utils"),a.common=e("./hash/common"),a.sha=e("./hash/sha"),a.ripemd=e("./hash/ripemd"),a.hmac=e("./hash/hmac"),a.sha1=a.sha.sha1,a.sha256=a.sha.sha256,a.sha224=a.sha.sha224,a.sha384=a.sha.sha384,a.sha512=a.sha.sha512,a.ripemd160=a.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(e,n,i){var a=e("./utils"),o=e("minimalistic-assert");function s(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}i.BlockHash=s,s.prototype.update=function(u,c){if(u=a.toArray(u,c),this.pending?this.pending=this.pending.concat(u):this.pending=u,this.pendingTotal+=u.length,this.pending.length>=this._delta8){var l=(u=this.pending).length%this._delta8;this.pending=u.slice(u.length-l,u.length),this.pending.length===0&&(this.pending=null),u=a.join32(u,0,u.length-l,this.endian);for(var d=0;d<u.length;d+=this._delta32)this._update(u,d,d+this._delta32)}return this},s.prototype.digest=function(u){return this.update(this._pad()),o(this.pending===null),this._digest(u)},s.prototype._pad=function(){var u=this.pendingTotal,c=this._delta8,l=c-(u+this.padLength)%c,d=new Array(l+this.padLength);d[0]=128;for(var h=1;h<l;h++)d[h]=0;if(u<<=3,this.endian==="big"){for(var f=8;f<this.padLength;f++)d[h++]=0;d[h++]=0,d[h++]=0,d[h++]=0,d[h++]=0,d[h++]=u>>>24&255,d[h++]=u>>>16&255,d[h++]=u>>>8&255,d[h++]=255&u}else for(d[h++]=255&u,d[h++]=u>>>8&255,d[h++]=u>>>16&255,d[h++]=u>>>24&255,d[h++]=0,d[h++]=0,d[h++]=0,d[h++]=0,f=8;f<this.padLength;f++)d[h++]=0;return d}},{"./utils":437,"minimalistic-assert":453}],428:[function(e,n,i){var a=e("./utils"),o=e("minimalistic-assert");function s(u,c,l){if(!(this instanceof s))return new s(u,c,l);this.Hash=u,this.blockSize=u.blockSize/8,this.outSize=u.outSize/8,this.inner=null,this.outer=null,this._init(a.toArray(c,l))}n.exports=s,s.prototype._init=function(u){u.length>this.blockSize&&(u=new this.Hash().update(u).digest()),o(u.length<=this.blockSize);for(var c=u.length;c<this.blockSize;c++)u.push(0);for(c=0;c<u.length;c++)u[c]^=54;for(this.inner=new this.Hash().update(u),c=0;c<u.length;c++)u[c]^=106;this.outer=new this.Hash().update(u)},s.prototype.update=function(u,c){return this.inner.update(u,c),this},s.prototype.digest=function(u){return this.outer.update(this.inner.digest()),this.outer.digest(u)}},{"./utils":437,"minimalistic-assert":453}],429:[function(e,n,i){var a=e("./utils"),o=e("./common"),s=a.rotl32,u=a.sum32,c=a.sum32_3,l=a.sum32_4,d=o.BlockHash;function h(){if(!(this instanceof h))return new h;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(A,C,M,z){return A<=15?C^M^z:A<=31?C&M|~C&z:A<=47?(C|~M)^z:A<=63?C&z|M&~z:C^(M|~z)}function g(A){return A<=15?0:A<=31?1518500249:A<=47?1859775393:A<=63?2400959708:2840853838}function m(A){return A<=15?1352829926:A<=31?1548603684:A<=47?1836072691:A<=63?2053994217:0}a.inherits(h,d),i.ripemd160=h,h.blockSize=512,h.outSize=160,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(A,C){for(var M=this.h[0],z=this.h[1],W=this.h[2],U=this.h[3],G=this.h[4],ee=M,I=z,O=W,T=U,S=G,x=0;x<80;x++){var w=u(s(l(M,f(x,z,W,U),A[p[x]+C],g(x)),v[x]),G);M=G,G=U,U=s(W,10),W=z,z=w,w=u(s(l(ee,f(79-x,I,O,T),A[y[x]+C],m(x)),b[x]),S),ee=S,S=T,T=s(O,10),O=I,I=w}w=c(this.h[1],W,T),this.h[1]=c(this.h[2],U,S),this.h[2]=c(this.h[3],G,ee),this.h[3]=c(this.h[4],M,I),this.h[4]=c(this.h[0],z,O),this.h[0]=w},h.prototype._digest=function(A){return A==="hex"?a.toHex32(this.h,"little"):a.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],y=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],b=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":427,"./utils":437}],430:[function(e,n,i){i.sha1=e("./sha/1"),i.sha224=e("./sha/224"),i.sha256=e("./sha/256"),i.sha384=e("./sha/384"),i.sha512=e("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(e,n,i){var a=e("../utils"),o=e("../common"),s=e("./common"),u=a.rotl32,c=a.sum32,l=a.sum32_5,d=s.ft_1,h=o.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function g(){if(!(this instanceof g))return new g;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}a.inherits(g,h),n.exports=g,g.blockSize=512,g.outSize=160,g.hmacStrength=80,g.padLength=64,g.prototype._update=function(m,p){for(var y=this.W,v=0;v<16;v++)y[v]=m[p+v];for(;v<y.length;v++)y[v]=u(y[v-3]^y[v-8]^y[v-14]^y[v-16],1);var b=this.h[0],A=this.h[1],C=this.h[2],M=this.h[3],z=this.h[4];for(v=0;v<y.length;v++){var W=~~(v/20),U=l(u(b,5),d(W,A,C,M),z,y[v],f[W]);z=M,M=C,C=u(A,30),A=b,b=U}this.h[0]=c(this.h[0],b),this.h[1]=c(this.h[1],A),this.h[2]=c(this.h[2],C),this.h[3]=c(this.h[3],M),this.h[4]=c(this.h[4],z)},g.prototype._digest=function(m){return m==="hex"?a.toHex32(this.h,"big"):a.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(e,n,i){var a=e("../utils"),o=e("./256");function s(){if(!(this instanceof s))return new s;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}a.inherits(s,o),n.exports=s,s.blockSize=512,s.outSize=224,s.hmacStrength=192,s.padLength=64,s.prototype._digest=function(u){return u==="hex"?a.toHex32(this.h.slice(0,7),"big"):a.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(e,n,i){var a=e("../utils"),o=e("../common"),s=e("./common"),u=e("minimalistic-assert"),c=a.sum32,l=a.sum32_4,d=a.sum32_5,h=s.ch32,f=s.maj32,g=s.s0_256,m=s.s1_256,p=s.g0_256,y=s.g1_256,v=o.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function A(){if(!(this instanceof A))return new A;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}a.inherits(A,v),n.exports=A,A.blockSize=512,A.outSize=256,A.hmacStrength=192,A.padLength=64,A.prototype._update=function(C,M){for(var z=this.W,W=0;W<16;W++)z[W]=C[M+W];for(;W<z.length;W++)z[W]=l(y(z[W-2]),z[W-7],p(z[W-15]),z[W-16]);var U=this.h[0],G=this.h[1],ee=this.h[2],I=this.h[3],O=this.h[4],T=this.h[5],S=this.h[6],x=this.h[7];for(u(this.k.length===z.length),W=0;W<z.length;W++){var w=d(x,m(O),h(O,T,S),this.k[W],z[W]),_=c(g(U),f(U,G,ee));x=S,S=T,T=O,O=c(I,w),I=ee,ee=G,G=U,U=c(w,_)}this.h[0]=c(this.h[0],U),this.h[1]=c(this.h[1],G),this.h[2]=c(this.h[2],ee),this.h[3]=c(this.h[3],I),this.h[4]=c(this.h[4],O),this.h[5]=c(this.h[5],T),this.h[6]=c(this.h[6],S),this.h[7]=c(this.h[7],x)},A.prototype._digest=function(C){return C==="hex"?a.toHex32(this.h,"big"):a.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(e,n,i){var a=e("../utils"),o=e("./512");function s(){if(!(this instanceof s))return new s;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}a.inherits(s,o),n.exports=s,s.blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(u){return u==="hex"?a.toHex32(this.h.slice(0,12),"big"):a.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(e,n,i){var a=e("../utils"),o=e("../common"),s=e("minimalistic-assert"),u=a.rotr64_hi,c=a.rotr64_lo,l=a.shr64_hi,d=a.shr64_lo,h=a.sum64,f=a.sum64_hi,g=a.sum64_lo,m=a.sum64_4_hi,p=a.sum64_4_lo,y=a.sum64_5_hi,v=a.sum64_5_lo,b=o.BlockHash,A=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function C(){if(!(this instanceof C))return new C;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=A,this.W=new Array(160)}function M(_,E,R,F,B){var X=_&R^~_&B;return X<0&&(X+=4294967296),X}function z(_,E,R,F,B,X){var K=E&F^~E&X;return K<0&&(K+=4294967296),K}function W(_,E,R,F,B){var X=_&R^_&B^R&B;return X<0&&(X+=4294967296),X}function U(_,E,R,F,B,X){var K=E&F^E&X^F&X;return K<0&&(K+=4294967296),K}function G(_,E){var R=u(_,E,28)^u(E,_,2)^u(E,_,7);return R<0&&(R+=4294967296),R}function ee(_,E){var R=c(_,E,28)^c(E,_,2)^c(E,_,7);return R<0&&(R+=4294967296),R}function I(_,E){var R=u(_,E,14)^u(_,E,18)^u(E,_,9);return R<0&&(R+=4294967296),R}function O(_,E){var R=c(_,E,14)^c(_,E,18)^c(E,_,9);return R<0&&(R+=4294967296),R}function T(_,E){var R=u(_,E,1)^u(_,E,8)^l(_,E,7);return R<0&&(R+=4294967296),R}function S(_,E){var R=c(_,E,1)^c(_,E,8)^d(_,E,7);return R<0&&(R+=4294967296),R}function x(_,E){var R=u(_,E,19)^u(E,_,29)^l(_,E,6);return R<0&&(R+=4294967296),R}function w(_,E){var R=c(_,E,19)^c(E,_,29)^d(_,E,6);return R<0&&(R+=4294967296),R}a.inherits(C,b),n.exports=C,C.blockSize=1024,C.outSize=512,C.hmacStrength=192,C.padLength=128,C.prototype._prepareBlock=function(_,E){for(var R=this.W,F=0;F<32;F++)R[F]=_[E+F];for(;F<R.length;F+=2){var B=x(R[F-4],R[F-3]),X=w(R[F-4],R[F-3]),K=R[F-14],te=R[F-13],$=T(R[F-30],R[F-29]),q=S(R[F-30],R[F-29]),k=R[F-32],L=R[F-31];R[F]=m(B,X,K,te,$,q,k,L),R[F+1]=p(B,X,K,te,$,q,k,L)}},C.prototype._update=function(_,E){this._prepareBlock(_,E);var R=this.W,F=this.h[0],B=this.h[1],X=this.h[2],K=this.h[3],te=this.h[4],$=this.h[5],q=this.h[6],k=this.h[7],L=this.h[8],V=this.h[9],J=this.h[10],re=this.h[11],ae=this.h[12],j=this.h[13],ue=this.h[14],Q=this.h[15];s(this.k.length===R.length);for(var P=0;P<R.length;P+=2){var H=ue,Z=Q,oe=I(L,V),ce=O(L,V),ne=M(L,V,J,re,ae),se=z(L,V,J,re,ae,j),fe=this.k[P],de=this.k[P+1],ve=R[P],Ee=R[P+1],Se=y(H,Z,oe,ce,ne,se,fe,de,ve,Ee),Ne=v(H,Z,oe,ce,ne,se,fe,de,ve,Ee);H=G(F,B),Z=ee(F,B),oe=W(F,B,X,K,te),ce=U(F,B,X,K,te,$);var He=f(H,Z,oe,ce),qe=g(H,Z,oe,ce);ue=ae,Q=j,ae=J,j=re,J=L,re=V,L=f(q,k,Se,Ne),V=g(k,k,Se,Ne),q=te,k=$,te=X,$=K,X=F,K=B,F=f(Se,Ne,He,qe),B=g(Se,Ne,He,qe)}h(this.h,0,F,B),h(this.h,2,X,K),h(this.h,4,te,$),h(this.h,6,q,k),h(this.h,8,L,V),h(this.h,10,J,re),h(this.h,12,ae,j),h(this.h,14,ue,Q)},C.prototype._digest=function(_){return _==="hex"?a.toHex32(this.h,"big"):a.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(e,n,i){var a=e("../utils").rotr32;function o(c,l,d){return c&l^~c&d}function s(c,l,d){return c&l^c&d^l&d}function u(c,l,d){return c^l^d}i.ft_1=function(c,l,d,h){return c===0?o(l,d,h):c===1||c===3?u(l,d,h):c===2?s(l,d,h):void 0},i.ch32=o,i.maj32=s,i.p32=u,i.s0_256=function(c){return a(c,2)^a(c,13)^a(c,22)},i.s1_256=function(c){return a(c,6)^a(c,11)^a(c,25)},i.g0_256=function(c){return a(c,7)^a(c,18)^c>>>3},i.g1_256=function(c){return a(c,17)^a(c,19)^c>>>10}},{"../utils":437}],437:[function(e,n,i){var a=e("minimalistic-assert"),o=e("inherits");function s(d,h){return(64512&d.charCodeAt(h))==55296&&!(h<0||h+1>=d.length)&&(64512&d.charCodeAt(h+1))==56320}function u(d){return(d>>>24|d>>>8&65280|d<<8&16711680|(255&d)<<24)>>>0}function c(d){return d.length===1?"0"+d:d}function l(d){return d.length===7?"0"+d:d.length===6?"00"+d:d.length===5?"000"+d:d.length===4?"0000"+d:d.length===3?"00000"+d:d.length===2?"000000"+d:d.length===1?"0000000"+d:d}i.inherits=o,i.toArray=function(d,h){if(Array.isArray(d))return d.slice();if(!d)return[];var f=[];if(typeof d=="string")if(h){if(h==="hex")for((d=d.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(d="0"+d),m=0;m<d.length;m+=2)f.push(parseInt(d[m]+d[m+1],16))}else for(var g=0,m=0;m<d.length;m++){var p=d.charCodeAt(m);p<128?f[g++]=p:p<2048?(f[g++]=p>>6|192,f[g++]=63&p|128):s(d,m)?(p=65536+((1023&p)<<10)+(1023&d.charCodeAt(++m)),f[g++]=p>>18|240,f[g++]=p>>12&63|128,f[g++]=p>>6&63|128,f[g++]=63&p|128):(f[g++]=p>>12|224,f[g++]=p>>6&63|128,f[g++]=63&p|128)}else for(m=0;m<d.length;m++)f[m]=0|d[m];return f},i.toHex=function(d){for(var h="",f=0;f<d.length;f++)h+=c(d[f].toString(16));return h},i.htonl=u,i.toHex32=function(d,h){for(var f="",g=0;g<d.length;g++){var m=d[g];h==="little"&&(m=u(m)),f+=l(m.toString(16))}return f},i.zero2=c,i.zero8=l,i.join32=function(d,h,f,g){var m=f-h;a(m%4==0);for(var p=new Array(m/4),y=0,v=h;y<p.length;y++,v+=4){var b;b=g==="big"?d[v]<<24|d[v+1]<<16|d[v+2]<<8|d[v+3]:d[v+3]<<24|d[v+2]<<16|d[v+1]<<8|d[v],p[y]=b>>>0}return p},i.split32=function(d,h){for(var f=new Array(4*d.length),g=0,m=0;g<d.length;g++,m+=4){var p=d[g];h==="big"?(f[m]=p>>>24,f[m+1]=p>>>16&255,f[m+2]=p>>>8&255,f[m+3]=255&p):(f[m+3]=p>>>24,f[m+2]=p>>>16&255,f[m+1]=p>>>8&255,f[m]=255&p)}return f},i.rotr32=function(d,h){return d>>>h|d<<32-h},i.rotl32=function(d,h){return d<<h|d>>>32-h},i.sum32=function(d,h){return d+h>>>0},i.sum32_3=function(d,h,f){return d+h+f>>>0},i.sum32_4=function(d,h,f,g){return d+h+f+g>>>0},i.sum32_5=function(d,h,f,g,m){return d+h+f+g+m>>>0},i.sum64=function(d,h,f,g){var m=d[h],p=g+d[h+1]>>>0,y=(p<g?1:0)+f+m;d[h]=y>>>0,d[h+1]=p},i.sum64_hi=function(d,h,f,g){return(h+g>>>0<h?1:0)+d+f>>>0},i.sum64_lo=function(d,h,f,g){return h+g>>>0},i.sum64_4_hi=function(d,h,f,g,m,p,y,v){var b=0,A=h;return b+=(A=A+g>>>0)<h?1:0,b+=(A=A+p>>>0)<p?1:0,d+f+m+y+(b+=(A=A+v>>>0)<v?1:0)>>>0},i.sum64_4_lo=function(d,h,f,g,m,p,y,v){return h+g+p+v>>>0},i.sum64_5_hi=function(d,h,f,g,m,p,y,v,b,A){var C=0,M=h;return C+=(M=M+g>>>0)<h?1:0,C+=(M=M+p>>>0)<p?1:0,C+=(M=M+v>>>0)<v?1:0,d+f+m+y+b+(C+=(M=M+A>>>0)<A?1:0)>>>0},i.sum64_5_lo=function(d,h,f,g,m,p,y,v,b,A){return h+g+p+v+A>>>0},i.rotr64_hi=function(d,h,f){return(h<<32-f|d>>>f)>>>0},i.rotr64_lo=function(d,h,f){return(d<<32-f|h>>>f)>>>0},i.shr64_hi=function(d,h,f){return d>>>f},i.shr64_lo=function(d,h,f){return(d<<32-f|h>>>f)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(e,n,i){var a=e("hash.js"),o=e("minimalistic-crypto-utils"),s=e("minimalistic-assert");function u(c){if(!(this instanceof u))return new u(c);this.hash=c.hash,this.predResist=!!c.predResist,this.outLen=this.hash.outSize,this.minEntropy=c.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var l=o.toArray(c.entropy,c.entropyEnc||"hex"),d=o.toArray(c.nonce,c.nonceEnc||"hex"),h=o.toArray(c.pers,c.persEnc||"hex");s(l.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(l,d,h)}n.exports=u,u.prototype._init=function(c,l,d){var h=c.concat(l).concat(d);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var f=0;f<this.V.length;f++)this.K[f]=0,this.V[f]=1;this._update(h),this._reseed=1,this.reseedInterval=281474976710656},u.prototype._hmac=function(){return new a.hmac(this.hash,this.K)},u.prototype._update=function(c){var l=this._hmac().update(this.V).update([0]);c&&(l=l.update(c)),this.K=l.digest(),this.V=this._hmac().update(this.V).digest(),c&&(this.K=this._hmac().update(this.V).update([1]).update(c).digest(),this.V=this._hmac().update(this.V).digest())},u.prototype.reseed=function(c,l,d,h){typeof l!="string"&&(h=d,d=l,l=null),c=o.toArray(c,l),d=o.toArray(d,h),s(c.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(c.concat(d||[])),this._reseed=1},u.prototype.generate=function(c,l,d,h){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof l!="string"&&(h=d,d=l,l=null),d&&(d=o.toArray(d,h||"hex"),this._update(d));for(var f=[];f.length<c;)this.V=this._hmac().update(this.V).digest(),f=f.concat(this.V);var g=f.slice(0,c);return this._update(d),this._reseed++,o.encode(g,l)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(e,n,i){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */i.read=function(a,o,s,u,c){var l,d,h=8*c-u-1,f=(1<<h)-1,g=f>>1,m=-7,p=s?c-1:0,y=s?-1:1,v=a[o+p];for(p+=y,l=v&(1<<-m)-1,v>>=-m,m+=h;m>0;l=256*l+a[o+p],p+=y,m-=8);for(d=l&(1<<-m)-1,l>>=-m,m+=u;m>0;d=256*d+a[o+p],p+=y,m-=8);if(l===0)l=1-g;else{if(l===f)return d?NaN:1/0*(v?-1:1);d+=Math.pow(2,u),l-=g}return(v?-1:1)*d*Math.pow(2,l-u)},i.write=function(a,o,s,u,c,l){var d,h,f,g=8*l-c-1,m=(1<<g)-1,p=m>>1,y=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=u?0:l-1,b=u?1:-1,A=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(h=isNaN(o)?1:0,d=m):(d=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-d))<1&&(d--,f*=2),(o+=d+p>=1?y/f:y*Math.pow(2,1-p))*f>=2&&(d++,f/=2),d+p>=m?(h=0,d=m):d+p>=1?(h=(o*f-1)*Math.pow(2,c),d+=p):(h=o*Math.pow(2,p-1)*Math.pow(2,c),d=0));c>=8;a[s+v]=255&h,v+=b,h/=256,c-=8);for(d=d<<c|h,g+=c;g>0;a[s+v]=255&d,v+=b,d/=256,g-=8);a[s+v-b]|=128*A}},{}],440:[function(e,n,i){typeof Object.create=="function"?n.exports=function(a,o){o&&(a.super_=o,a.prototype=Object.create(o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:n.exports=function(a,o){if(o){a.super_=o;var s=function(){};s.prototype=o.prototype,a.prototype=new s,a.prototype.constructor=a}}},{}],441:[function(e,n,i){(function(a,o,s,u,c,l,d,h){(function(){/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/(function(f){typeof i=="object"&&n!==void 0?n.exports=f():(typeof window!="undefined"?window:o!==void 0?o:typeof self!="undefined"?self:this).JSZip=f()})(function(){return function f(g,m,p){function y(A,C){if(!m[A]){if(!g[A]){var M=typeof e=="function"&&e;if(!C&&M)return M(A,!0);if(v)return v(A,!0);var z=new Error("Cannot find module '"+A+"'");throw z.code="MODULE_NOT_FOUND",z}var W=m[A]={exports:{}};g[A][0].call(W.exports,function(U){return y(g[A][1][U]||U)},W,W.exports,f,g,m,p)}return m[A].exports}for(var v=typeof e=="function"&&e,b=0;b<p.length;b++)y(p[b]);return y}({1:[function(f,g,m){var p=f("./utils"),y=f("./support"),v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";m.encode=function(b){for(var A,C,M,z,W,U,G,ee=[],I=0,O=b.length,T=O,S=p.getTypeOf(b)!=="string";I<b.length;)T=O-I,M=S?(A=b[I++],C=I<O?b[I++]:0,I<O?b[I++]:0):(A=b.charCodeAt(I++),C=I<O?b.charCodeAt(I++):0,I<O?b.charCodeAt(I++):0),z=A>>2,W=(3&A)<<4|C>>4,U=1<T?(15&C)<<2|M>>6:64,G=2<T?63&M:64,ee.push(v.charAt(z)+v.charAt(W)+v.charAt(U)+v.charAt(G));return ee.join("")},m.decode=function(b){var A,C,M,z,W,U,G=0,ee=0,I="data:";if(b.substr(0,I.length)===I)throw new Error("Invalid base64 input, it looks like a data url.");var O,T=3*(b=b.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(b.charAt(b.length-1)===v.charAt(64)&&T--,b.charAt(b.length-2)===v.charAt(64)&&T--,T%1!=0)throw new Error("Invalid base64 input, bad content length.");for(O=y.uint8array?new Uint8Array(0|T):new Array(0|T);G<b.length;)A=v.indexOf(b.charAt(G++))<<2|(z=v.indexOf(b.charAt(G++)))>>4,C=(15&z)<<4|(W=v.indexOf(b.charAt(G++)))>>2,M=(3&W)<<6|(U=v.indexOf(b.charAt(G++))),O[ee++]=A,W!==64&&(O[ee++]=C),U!==64&&(O[ee++]=M);return O}},{"./support":30,"./utils":32}],2:[function(f,g,m){var p=f("./external"),y=f("./stream/DataWorker"),v=f("./stream/Crc32Probe"),b=f("./stream/DataLengthProbe");function A(C,M,z,W,U){this.compressedSize=C,this.uncompressedSize=M,this.crc32=z,this.compression=W,this.compressedContent=U}A.prototype={getContentWorker:function(){var C=new y(p.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new b("data_length")),M=this;return C.on("end",function(){if(this.streamInfo.data_length!==M.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),C},getCompressedWorker:function(){return new y(p.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},A.createWorkerFrom=function(C,M,z){return C.pipe(new v).pipe(new b("uncompressedSize")).pipe(M.compressWorker(z)).pipe(new b("compressedSize")).withStreamInfo("compression",M)},g.exports=A},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(f,g,m){var p=f("./stream/GenericWorker");m.STORE={magic:"\0\0",compressWorker:function(){return new p("STORE compression")},uncompressWorker:function(){return new p("STORE decompression")}},m.DEFLATE=f("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(f,g,m){var p=f("./utils"),y=function(){for(var v,b=[],A=0;A<256;A++){v=A;for(var C=0;C<8;C++)v=1&v?3988292384^v>>>1:v>>>1;b[A]=v}return b}();g.exports=function(v,b){return v!==void 0&&v.length?p.getTypeOf(v)!=="string"?function(A,C,M,z){var W=y,U=0+M;A^=-1;for(var G=0;G<U;G++)A=A>>>8^W[255&(A^C[G])];return-1^A}(0|b,v,v.length):function(A,C,M,z){var W=y,U=0+M;A^=-1;for(var G=0;G<U;G++)A=A>>>8^W[255&(A^C.charCodeAt(G))];return-1^A}(0|b,v,v.length):0}},{"./utils":32}],5:[function(f,g,m){m.base64=!1,m.binary=!1,m.dir=!1,m.createFolders=!0,m.date=null,m.compression=null,m.compressionOptions=null,m.comment=null,m.unixPermissions=null,m.dosPermissions=null},{}],6:[function(f,g,m){var p;p=typeof Promise!="undefined"?Promise:f("lie"),g.exports={Promise:p}},{lie:37}],7:[function(f,g,m){var p=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",y=f("pako"),v=f("./utils"),b=f("./stream/GenericWorker"),A=p?"uint8array":"array";function C(M,z){b.call(this,"FlateWorker/"+M),this._pako=null,this._pakoAction=M,this._pakoOptions=z,this.meta={}}m.magic="\b\0",v.inherits(C,b),C.prototype.processChunk=function(M){this.meta=M.meta,this._pako===null&&this._createPako(),this._pako.push(v.transformTo(A,M.data),!1)},C.prototype.flush=function(){b.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},C.prototype.cleanUp=function(){b.prototype.cleanUp.call(this),this._pako=null},C.prototype._createPako=function(){this._pako=new y[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var M=this;this._pako.onData=function(z){M.push({data:z,meta:M.meta})}},m.compressWorker=function(M){return new C("Deflate",M)},m.uncompressWorker=function(){return new C("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(f,g,m){function p(W,U){var G,ee="";for(G=0;G<U;G++)ee+=String.fromCharCode(255&W),W>>>=8;return ee}function y(W,U,G,ee,I,O){var T,S,x=W.file,w=W.compression,_=O!==A.utf8encode,E=v.transformTo("string",O(x.name)),R=v.transformTo("string",A.utf8encode(x.name)),F=x.comment,B=v.transformTo("string",O(F)),X=v.transformTo("string",A.utf8encode(F)),K=R.length!==x.name.length,te=X.length!==F.length,$="",q="",k="",L=x.dir,V=x.date,J={crc32:0,compressedSize:0,uncompressedSize:0};U&&!G||(J.crc32=W.crc32,J.compressedSize=W.compressedSize,J.uncompressedSize=W.uncompressedSize);var re=0;U&&(re|=8),_||!K&&!te||(re|=2048);var ae=0,j=0;L&&(ae|=16),I==="UNIX"?(j=798,ae|=function(Q,P){var H=Q;return Q||(H=P?16893:33204),(65535&H)<<16}(x.unixPermissions,L)):(j=20,ae|=function(Q){return 63&(Q||0)}(x.dosPermissions)),T=V.getUTCHours(),T<<=6,T|=V.getUTCMinutes(),T<<=5,T|=V.getUTCSeconds()/2,S=V.getUTCFullYear()-1980,S<<=4,S|=V.getUTCMonth()+1,S<<=5,S|=V.getUTCDate(),K&&(q=p(1,1)+p(C(E),4)+R,$+="up"+p(q.length,2)+q),te&&(k=p(1,1)+p(C(B),4)+X,$+="uc"+p(k.length,2)+k);var ue="";return ue+=`
\0`,ue+=p(re,2),ue+=w.magic,ue+=p(T,2),ue+=p(S,2),ue+=p(J.crc32,4),ue+=p(J.compressedSize,4),ue+=p(J.uncompressedSize,4),ue+=p(E.length,2),ue+=p($.length,2),{fileRecord:M.LOCAL_FILE_HEADER+ue+E+$,dirRecord:M.CENTRAL_FILE_HEADER+p(j,2)+ue+p(B.length,2)+"\0\0\0\0"+p(ae,4)+p(ee,4)+E+$+B}}var v=f("../utils"),b=f("../stream/GenericWorker"),A=f("../utf8"),C=f("../crc32"),M=f("../signature");function z(W,U,G,ee){b.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=U,this.zipPlatform=G,this.encodeFileName=ee,this.streamFiles=W,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}v.inherits(z,b),z.prototype.push=function(W){var U=W.meta.percent||0,G=this.entriesCount,ee=this._sources.length;this.accumulate?this.contentBuffer.push(W):(this.bytesWritten+=W.data.length,b.prototype.push.call(this,{data:W.data,meta:{currentFile:this.currentFile,percent:G?(U+100*(G-ee-1))/G:100}}))},z.prototype.openedSource=function(W){this.currentSourceOffset=this.bytesWritten,this.currentFile=W.file.name;var U=this.streamFiles&&!W.file.dir;if(U){var G=y(W,U,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:G.fileRecord,meta:{percent:0}})}else this.accumulate=!0},z.prototype.closedSource=function(W){this.accumulate=!1;var U=this.streamFiles&&!W.file.dir,G=y(W,U,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(G.dirRecord),U)this.push({data:function(ee){return M.DATA_DESCRIPTOR+p(ee.crc32,4)+p(ee.compressedSize,4)+p(ee.uncompressedSize,4)}(W),meta:{percent:100}});else for(this.push({data:G.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},z.prototype.flush=function(){for(var W=this.bytesWritten,U=0;U<this.dirRecords.length;U++)this.push({data:this.dirRecords[U],meta:{percent:100}});var G=this.bytesWritten-W,ee=function(I,O,T,S,x){var w=v.transformTo("string",x(S));return M.CENTRAL_DIRECTORY_END+"\0\0\0\0"+p(I,2)+p(I,2)+p(O,4)+p(T,4)+p(w.length,2)+w}(this.dirRecords.length,G,W,this.zipComment,this.encodeFileName);this.push({data:ee,meta:{percent:100}})},z.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},z.prototype.registerPrevious=function(W){this._sources.push(W);var U=this;return W.on("data",function(G){U.processChunk(G)}),W.on("end",function(){U.closedSource(U.previous.streamInfo),U._sources.length?U.prepareNextSource():U.end()}),W.on("error",function(G){U.error(G)}),this},z.prototype.resume=function(){return!!b.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},z.prototype.error=function(W){var U=this._sources;if(!b.prototype.error.call(this,W))return!1;for(var G=0;G<U.length;G++)try{U[G].error(W)}catch{}return!0},z.prototype.lock=function(){b.prototype.lock.call(this);for(var W=this._sources,U=0;U<W.length;U++)W[U].lock()},g.exports=z},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(f,g,m){var p=f("../compressions"),y=f("./ZipFileWorker");m.generateWorker=function(v,b,A){var C=new y(b.streamFiles,A,b.platform,b.encodeFileName),M=0;try{v.forEach(function(z,W){M++;var U=function(O,T){var S=O||T,x=p[S];if(!x)throw new Error(S+" is not a valid compression method !");return x}(W.options.compression,b.compression),G=W.options.compressionOptions||b.compressionOptions||{},ee=W.dir,I=W.date;W._compressWorker(U,G).withStreamInfo("file",{name:z,dir:ee,date:I,comment:W.comment||"",unixPermissions:W.unixPermissions,dosPermissions:W.dosPermissions}).pipe(C)}),C.entriesCount=M}catch(z){C.error(z)}return C}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(f,g,m){function p(){if(!(this instanceof p))return new p;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var y=new p;for(var v in this)typeof this[v]!="function"&&(y[v]=this[v]);return y}}(p.prototype=f("./object")).loadAsync=f("./load"),p.support=f("./support"),p.defaults=f("./defaults"),p.version="3.10.1",p.loadAsync=function(y,v){return new p().loadAsync(y,v)},p.external=f("./external"),g.exports=p},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(f,g,m){var p=f("./utils"),y=f("./external"),v=f("./utf8"),b=f("./zipEntries"),A=f("./stream/Crc32Probe"),C=f("./nodejsUtils");function M(z){return new y.Promise(function(W,U){var G=z.decompressed.getContentWorker().pipe(new A);G.on("error",function(ee){U(ee)}).on("end",function(){G.streamInfo.crc32!==z.decompressed.crc32?U(new Error("Corrupted zip : CRC32 mismatch")):W()}).resume()})}g.exports=function(z,W){var U=this;return W=p.extend(W||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:v.utf8decode}),C.isNode&&C.isStream(z)?y.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):p.prepareContent("the loaded zip file",z,!0,W.optimizedBinaryString,W.base64).then(function(G){var ee=new b(W);return ee.load(G),ee}).then(function(G){var ee=[y.Promise.resolve(G)],I=G.files;if(W.checkCRC32)for(var O=0;O<I.length;O++)ee.push(M(I[O]));return y.Promise.all(ee)}).then(function(G){for(var ee=G.shift(),I=ee.files,O=0;O<I.length;O++){var T=I[O],S=T.fileNameStr,x=p.resolve(T.fileNameStr);U.file(x,T.decompressed,{binary:!0,optimizedBinaryString:!0,date:T.date,dir:T.dir,comment:T.fileCommentStr.length?T.fileCommentStr:null,unixPermissions:T.unixPermissions,dosPermissions:T.dosPermissions,createFolders:W.createFolders}),T.dir||(U.file(x).unsafeOriginalName=S)}return ee.zipComment.length&&(U.comment=ee.zipComment),U})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(f,g,m){var p=f("../utils"),y=f("../stream/GenericWorker");function v(b,A){y.call(this,"Nodejs stream input adapter for "+b),this._upstreamEnded=!1,this._bindStream(A)}p.inherits(v,y),v.prototype._bindStream=function(b){var A=this;(this._stream=b).pause(),b.on("data",function(C){A.push({data:C,meta:{percent:0}})}).on("error",function(C){A.isPaused?this.generatedError=C:A.error(C)}).on("end",function(){A.isPaused?A._upstreamEnded=!0:A.end()})},v.prototype.pause=function(){return!!y.prototype.pause.call(this)&&(this._stream.pause(),!0)},v.prototype.resume=function(){return!!y.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},g.exports=v},{"../stream/GenericWorker":28,"../utils":32}],13:[function(f,g,m){var p=f("readable-stream").Readable;function y(v,b,A){p.call(this,b),this._helper=v;var C=this;v.on("data",function(M,z){C.push(M)||C._helper.pause(),A&&A(z)}).on("error",function(M){C.emit("error",M)}).on("end",function(){C.push(null)})}f("../utils").inherits(y,p),y.prototype._read=function(){this._helper.resume()},g.exports=y},{"../utils":32,"readable-stream":16}],14:[function(f,g,m){g.exports={isNode:s!==void 0,newBufferFrom:function(p,y){if(s.from&&s.from!==Uint8Array.from)return s.from(p,y);if(typeof p=="number")throw new Error('The "data" argument must not be a number');return new s(p,y)},allocBuffer:function(p){if(s.alloc)return s.alloc(p);var y=new s(p);return y.fill(0),y},isBuffer:function(p){return s.isBuffer(p)},isStream:function(p){return p&&typeof p.on=="function"&&typeof p.pause=="function"&&typeof p.resume=="function"}}},{}],15:[function(f,g,m){function p(x,w,_){var E,R=v.getTypeOf(w),F=v.extend(_||{},C);F.date=F.date||new Date,F.compression!==null&&(F.compression=F.compression.toUpperCase()),typeof F.unixPermissions=="string"&&(F.unixPermissions=parseInt(F.unixPermissions,8)),F.unixPermissions&&16384&F.unixPermissions&&(F.dir=!0),F.dosPermissions&&16&F.dosPermissions&&(F.dir=!0),F.dir&&(x=I(x)),F.createFolders&&(E=ee(x))&&O.call(this,E,!0);var B=R==="string"&&F.binary===!1&&F.base64===!1;_&&_.binary!==void 0||(F.binary=!B),(w instanceof M&&w.uncompressedSize===0||F.dir||!w||w.length===0)&&(F.base64=!1,F.binary=!0,w="",F.compression="STORE",R="string");var X;X=w instanceof M||w instanceof b?w:U.isNode&&U.isStream(w)?new G(x,w):v.prepareContent(x,w,F.binary,F.optimizedBinaryString,F.base64);var K=new z(x,X,F);this.files[x]=K}var y=f("./utf8"),v=f("./utils"),b=f("./stream/GenericWorker"),A=f("./stream/StreamHelper"),C=f("./defaults"),M=f("./compressedObject"),z=f("./zipObject"),W=f("./generate"),U=f("./nodejsUtils"),G=f("./nodejs/NodejsStreamInputAdapter"),ee=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var w=x.lastIndexOf("/");return 0<w?x.substring(0,w):""},I=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},O=function(x,w){return w=w!==void 0?w:C.createFolders,x=I(x),this.files[x]||p.call(this,x,null,{dir:!0,createFolders:w}),this.files[x]};function T(x){return Object.prototype.toString.call(x)==="[object RegExp]"}var S={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(x){var w,_,E;for(w in this.files)E=this.files[w],(_=w.slice(this.root.length,w.length))&&w.slice(0,this.root.length)===this.root&&x(_,E)},filter:function(x){var w=[];return this.forEach(function(_,E){x(_,E)&&w.push(E)}),w},file:function(x,w,_){if(arguments.length!==1)return x=this.root+x,p.call(this,x,w,_),this;if(T(x)){var E=x;return this.filter(function(F,B){return!B.dir&&E.test(F)})}var R=this.files[this.root+x];return R&&!R.dir?R:null},folder:function(x){if(!x)return this;if(T(x))return this.filter(function(R,F){return F.dir&&x.test(R)});var w=this.root+x,_=O.call(this,w),E=this.clone();return E.root=_.name,E},remove:function(x){x=this.root+x;var w=this.files[x];if(w||(x.slice(-1)!=="/"&&(x+="/"),w=this.files[x]),w&&!w.dir)delete this.files[x];else for(var _=this.filter(function(R,F){return F.name.slice(0,x.length)===x}),E=0;E<_.length;E++)delete this.files[_[E].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(x){var w,_={};try{if((_=v.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:y.utf8encode})).type=_.type.toLowerCase(),_.compression=_.compression.toUpperCase(),_.type==="binarystring"&&(_.type="string"),!_.type)throw new Error("No output type specified.");v.checkSupport(_.type),_.platform!=="darwin"&&_.platform!=="freebsd"&&_.platform!=="linux"&&_.platform!=="sunos"||(_.platform="UNIX"),_.platform==="win32"&&(_.platform="DOS");var E=_.comment||this.comment||"";w=W.generateWorker(this,_,E)}catch(R){(w=new b("error")).error(R)}return new A(w,_.type||"string",_.mimeType)},generateAsync:function(x,w){return this.generateInternalStream(x).accumulate(w)},generateNodeStream:function(x,w){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(w)}};g.exports=S},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(f,g,m){g.exports=f("stream")},{stream:void 0}],17:[function(f,g,m){var p=f("./DataReader");function y(v){p.call(this,v);for(var b=0;b<this.data.length;b++)v[b]=255&v[b]}f("../utils").inherits(y,p),y.prototype.byteAt=function(v){return this.data[this.zero+v]},y.prototype.lastIndexOfSignature=function(v){for(var b=v.charCodeAt(0),A=v.charCodeAt(1),C=v.charCodeAt(2),M=v.charCodeAt(3),z=this.length-4;0<=z;--z)if(this.data[z]===b&&this.data[z+1]===A&&this.data[z+2]===C&&this.data[z+3]===M)return z-this.zero;return-1},y.prototype.readAndCheckSignature=function(v){var b=v.charCodeAt(0),A=v.charCodeAt(1),C=v.charCodeAt(2),M=v.charCodeAt(3),z=this.readData(4);return b===z[0]&&A===z[1]&&C===z[2]&&M===z[3]},y.prototype.readData=function(v){if(this.checkOffset(v),v===0)return[];var b=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},g.exports=y},{"../utils":32,"./DataReader":18}],18:[function(f,g,m){var p=f("../utils");function y(v){this.data=v,this.length=v.length,this.index=0,this.zero=0}y.prototype={checkOffset:function(v){this.checkIndex(this.index+v)},checkIndex:function(v){if(this.length<this.zero+v||v<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+v+"). Corrupted zip ?")},setIndex:function(v){this.checkIndex(v),this.index=v},skip:function(v){this.setIndex(this.index+v)},byteAt:function(){},readInt:function(v){var b,A=0;for(this.checkOffset(v),b=this.index+v-1;b>=this.index;b--)A=(A<<8)+this.byteAt(b);return this.index+=v,A},readString:function(v){return p.transformTo("string",this.readData(v))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var v=this.readInt(4);return new Date(Date.UTC(1980+(v>>25&127),(v>>21&15)-1,v>>16&31,v>>11&31,v>>5&63,(31&v)<<1))}},g.exports=y},{"../utils":32}],19:[function(f,g,m){var p=f("./Uint8ArrayReader");function y(v){p.call(this,v)}f("../utils").inherits(y,p),y.prototype.readData=function(v){this.checkOffset(v);var b=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},g.exports=y},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(f,g,m){var p=f("./DataReader");function y(v){p.call(this,v)}f("../utils").inherits(y,p),y.prototype.byteAt=function(v){return this.data.charCodeAt(this.zero+v)},y.prototype.lastIndexOfSignature=function(v){return this.data.lastIndexOf(v)-this.zero},y.prototype.readAndCheckSignature=function(v){return v===this.readData(4)},y.prototype.readData=function(v){this.checkOffset(v);var b=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},g.exports=y},{"../utils":32,"./DataReader":18}],21:[function(f,g,m){var p=f("./ArrayReader");function y(v){p.call(this,v)}f("../utils").inherits(y,p),y.prototype.readData=function(v){if(this.checkOffset(v),v===0)return new Uint8Array(0);var b=this.data.subarray(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},g.exports=y},{"../utils":32,"./ArrayReader":17}],22:[function(f,g,m){var p=f("../utils"),y=f("../support"),v=f("./ArrayReader"),b=f("./StringReader"),A=f("./NodeBufferReader"),C=f("./Uint8ArrayReader");g.exports=function(M){var z=p.getTypeOf(M);return p.checkSupport(z),z!=="string"||y.uint8array?z==="nodebuffer"?new A(M):y.uint8array?new C(p.transformTo("uint8array",M)):new v(p.transformTo("array",M)):new b(M)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(f,g,m){m.LOCAL_FILE_HEADER="PK",m.CENTRAL_FILE_HEADER="PK",m.CENTRAL_DIRECTORY_END="PK",m.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",m.ZIP64_CENTRAL_DIRECTORY_END="PK",m.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(f,g,m){var p=f("./GenericWorker"),y=f("../utils");function v(b){p.call(this,"ConvertWorker to "+b),this.destType=b}y.inherits(v,p),v.prototype.processChunk=function(b){this.push({data:y.transformTo(this.destType,b.data),meta:b.meta})},g.exports=v},{"../utils":32,"./GenericWorker":28}],25:[function(f,g,m){var p=f("./GenericWorker"),y=f("../crc32");function v(){p.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}f("../utils").inherits(v,p),v.prototype.processChunk=function(b){this.streamInfo.crc32=y(b.data,this.streamInfo.crc32||0),this.push(b)},g.exports=v},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(f,g,m){var p=f("../utils"),y=f("./GenericWorker");function v(b){y.call(this,"DataLengthProbe for "+b),this.propName=b,this.withStreamInfo(b,0)}p.inherits(v,y),v.prototype.processChunk=function(b){if(b){var A=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=A+b.data.length}y.prototype.processChunk.call(this,b)},g.exports=v},{"../utils":32,"./GenericWorker":28}],27:[function(f,g,m){var p=f("../utils"),y=f("./GenericWorker");function v(b){y.call(this,"DataWorker");var A=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,b.then(function(C){A.dataIsReady=!0,A.data=C,A.max=C&&C.length||0,A.type=p.getTypeOf(C),A.isPaused||A._tickAndRepeat()},function(C){A.error(C)})}p.inherits(v,y),v.prototype.cleanUp=function(){y.prototype.cleanUp.call(this),this.data=null},v.prototype.resume=function(){return!!y.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,p.delay(this._tickAndRepeat,[],this)),!0)},v.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(p.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},v.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var b=null,A=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":b=this.data.substring(this.index,A);break;case"uint8array":b=this.data.subarray(this.index,A);break;case"array":case"nodebuffer":b=this.data.slice(this.index,A)}return this.index=A,this.push({data:b,meta:{percent:this.max?this.index/this.max*100:0}})},g.exports=v},{"../utils":32,"./GenericWorker":28}],28:[function(f,g,m){function p(y){this.name=y||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}p.prototype={push:function(y){this.emit("data",y)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(y){this.emit("error",y)}return!0},error:function(y){return!this.isFinished&&(this.isPaused?this.generatedError=y:(this.isFinished=!0,this.emit("error",y),this.previous&&this.previous.error(y),this.cleanUp()),!0)},on:function(y,v){return this._listeners[y].push(v),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(y,v){if(this._listeners[y])for(var b=0;b<this._listeners[y].length;b++)this._listeners[y][b].call(this,v)},pipe:function(y){return y.registerPrevious(this)},registerPrevious:function(y){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=y.streamInfo,this.mergeStreamInfo(),this.previous=y;var v=this;return y.on("data",function(b){v.processChunk(b)}),y.on("end",function(){v.end()}),y.on("error",function(b){v.error(b)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var y=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),y=!0),this.previous&&this.previous.resume(),!y},flush:function(){},processChunk:function(y){this.push(y)},withStreamInfo:function(y,v){return this.extraStreamInfo[y]=v,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var y in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,y)&&(this.streamInfo[y]=this.extraStreamInfo[y])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var y="Worker "+this.name;return this.previous?this.previous+" -> "+y:y}},g.exports=p},{}],29:[function(f,g,m){var p=f("../utils"),y=f("./ConvertWorker"),v=f("./GenericWorker"),b=f("../base64"),A=f("../support"),C=f("../external"),M=null;if(A.nodestream)try{M=f("../nodejs/NodejsStreamOutputAdapter")}catch{}function z(W,U,G){var ee=U;switch(U){case"blob":case"arraybuffer":ee="uint8array";break;case"base64":ee="string"}try{this._internalType=ee,this._outputType=U,this._mimeType=G,p.checkSupport(ee),this._worker=W.pipe(new y(ee)),W.lock()}catch(I){this._worker=new v("error"),this._worker.error(I)}}z.prototype={accumulate:function(W){return function(U,G){return new C.Promise(function(ee,I){var O=[],T=U._internalType,S=U._outputType,x=U._mimeType;U.on("data",function(w,_){O.push(w),G&&G(_)}).on("error",function(w){O=[],I(w)}).on("end",function(){try{var w=function(_,E,R){switch(_){case"blob":return p.newBlob(p.transformTo("arraybuffer",E),R);case"base64":return b.encode(E);default:return p.transformTo(_,E)}}(S,function(_,E){var R,F=0,B=null,X=0;for(R=0;R<E.length;R++)X+=E[R].length;switch(_){case"string":return E.join("");case"array":return Array.prototype.concat.apply([],E);case"uint8array":for(B=new Uint8Array(X),R=0;R<E.length;R++)B.set(E[R],F),F+=E[R].length;return B;case"nodebuffer":return s.concat(E);default:throw new Error("concat : unsupported type '"+_+"'")}}(T,O),x);ee(w)}catch(_){I(_)}O=[]}).resume()})}(this,W)},on:function(W,U){var G=this;return W==="data"?this._worker.on(W,function(ee){U.call(G,ee.data,ee.meta)}):this._worker.on(W,function(){p.delay(U,arguments,G)}),this},resume:function(){return p.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(W){if(p.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new M(this,{objectMode:this._outputType!=="nodebuffer"},W)}},g.exports=z},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(f,g,m){if(m.base64=!0,m.array=!0,m.string=!0,m.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",m.nodebuffer=s!==void 0,m.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")m.blob=!1;else{var p=new ArrayBuffer(0);try{m.blob=new Blob([p],{type:"application/zip"}).size===0}catch{try{var y=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);y.append(p),m.blob=y.getBlob("application/zip").size===0}catch{m.blob=!1}}}try{m.nodestream=!!f("readable-stream").Readable}catch{m.nodestream=!1}},{"readable-stream":16}],31:[function(f,g,m){for(var p=f("./utils"),y=f("./support"),v=f("./nodejsUtils"),b=f("./stream/GenericWorker"),A=new Array(256),C=0;C<256;C++)A[C]=252<=C?6:248<=C?5:240<=C?4:224<=C?3:192<=C?2:1;function M(){b.call(this,"utf-8 decode"),this.leftOver=null}function z(){b.call(this,"utf-8 encode")}A[254]=A[254]=1,m.utf8encode=function(W){return y.nodebuffer?v.newBufferFrom(W,"utf-8"):function(U){var G,ee,I,O,T,S=U.length,x=0;for(O=0;O<S;O++)(64512&(ee=U.charCodeAt(O)))==55296&&O+1<S&&(64512&(I=U.charCodeAt(O+1)))==56320&&(ee=65536+(ee-55296<<10)+(I-56320),O++),x+=ee<128?1:ee<2048?2:ee<65536?3:4;for(G=y.uint8array?new Uint8Array(x):new Array(x),O=T=0;T<x;O++)(64512&(ee=U.charCodeAt(O)))==55296&&O+1<S&&(64512&(I=U.charCodeAt(O+1)))==56320&&(ee=65536+(ee-55296<<10)+(I-56320),O++),ee<128?G[T++]=ee:(ee<2048?G[T++]=192|ee>>>6:(ee<65536?G[T++]=224|ee>>>12:(G[T++]=240|ee>>>18,G[T++]=128|ee>>>12&63),G[T++]=128|ee>>>6&63),G[T++]=128|63&ee);return G}(W)},m.utf8decode=function(W){return y.nodebuffer?p.transformTo("nodebuffer",W).toString("utf-8"):function(U){var G,ee,I,O,T=U.length,S=new Array(2*T);for(G=ee=0;G<T;)if((I=U[G++])<128)S[ee++]=I;else if(4<(O=A[I]))S[ee++]=65533,G+=O-1;else{for(I&=O===2?31:O===3?15:7;1<O&&G<T;)I=I<<6|63&U[G++],O--;1<O?S[ee++]=65533:I<65536?S[ee++]=I:(I-=65536,S[ee++]=55296|I>>10&1023,S[ee++]=56320|1023&I)}return S.length!==ee&&(S.subarray?S=S.subarray(0,ee):S.length=ee),p.applyFromCharCode(S)}(W=p.transformTo(y.uint8array?"uint8array":"array",W))},p.inherits(M,b),M.prototype.processChunk=function(W){var U=p.transformTo(y.uint8array?"uint8array":"array",W.data);if(this.leftOver&&this.leftOver.length){if(y.uint8array){var G=U;(U=new Uint8Array(G.length+this.leftOver.length)).set(this.leftOver,0),U.set(G,this.leftOver.length)}else U=this.leftOver.concat(U);this.leftOver=null}var ee=function(O,T){var S;for((T=T||O.length)>O.length&&(T=O.length),S=T-1;0<=S&&(192&O[S])==128;)S--;return S<0||S===0?T:S+A[O[S]]>T?S:T}(U),I=U;ee!==U.length&&(y.uint8array?(I=U.subarray(0,ee),this.leftOver=U.subarray(ee,U.length)):(I=U.slice(0,ee),this.leftOver=U.slice(ee,U.length))),this.push({data:m.utf8decode(I),meta:W.meta})},M.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:m.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},m.Utf8DecodeWorker=M,p.inherits(z,b),z.prototype.processChunk=function(W){this.push({data:m.utf8encode(W.data),meta:W.meta})},m.Utf8EncodeWorker=z},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(f,g,m){var p=f("./support"),y=f("./base64"),v=f("./nodejsUtils"),b=f("./external");function A(G){return G}function C(G,ee){for(var I=0;I<G.length;++I)ee[I]=255&G.charCodeAt(I);return ee}f("setimmediate"),m.newBlob=function(G,ee){m.checkSupport("blob");try{return new Blob([G],{type:ee})}catch{try{var I=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return I.append(G),I.getBlob(ee)}catch{throw new Error("Bug : can't construct the Blob.")}}};var M={stringifyByChunk:function(G,ee,I){var O=[],T=0,S=G.length;if(S<=I)return String.fromCharCode.apply(null,G);for(;T<S;)ee==="array"||ee==="nodebuffer"?O.push(String.fromCharCode.apply(null,G.slice(T,Math.min(T+I,S)))):O.push(String.fromCharCode.apply(null,G.subarray(T,Math.min(T+I,S)))),T+=I;return O.join("")},stringifyByChar:function(G){for(var ee="",I=0;I<G.length;I++)ee+=String.fromCharCode(G[I]);return ee},applyCanBeUsed:{uint8array:function(){try{return p.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return p.nodebuffer&&String.fromCharCode.apply(null,v.allocBuffer(1)).length===1}catch{return!1}}()}};function z(G){var ee=65536,I=m.getTypeOf(G),O=!0;if(I==="uint8array"?O=M.applyCanBeUsed.uint8array:I==="nodebuffer"&&(O=M.applyCanBeUsed.nodebuffer),O)for(;1<ee;)try{return M.stringifyByChunk(G,I,ee)}catch{ee=Math.floor(ee/2)}return M.stringifyByChar(G)}function W(G,ee){for(var I=0;I<G.length;I++)ee[I]=G[I];return ee}m.applyFromCharCode=z;var U={};U.string={string:A,array:function(G){return C(G,new Array(G.length))},arraybuffer:function(G){return U.string.uint8array(G).buffer},uint8array:function(G){return C(G,new Uint8Array(G.length))},nodebuffer:function(G){return C(G,v.allocBuffer(G.length))}},U.array={string:z,array:A,arraybuffer:function(G){return new Uint8Array(G).buffer},uint8array:function(G){return new Uint8Array(G)},nodebuffer:function(G){return v.newBufferFrom(G)}},U.arraybuffer={string:function(G){return z(new Uint8Array(G))},array:function(G){return W(new Uint8Array(G),new Array(G.byteLength))},arraybuffer:A,uint8array:function(G){return new Uint8Array(G)},nodebuffer:function(G){return v.newBufferFrom(new Uint8Array(G))}},U.uint8array={string:z,array:function(G){return W(G,new Array(G.length))},arraybuffer:function(G){return G.buffer},uint8array:A,nodebuffer:function(G){return v.newBufferFrom(G)}},U.nodebuffer={string:z,array:function(G){return W(G,new Array(G.length))},arraybuffer:function(G){return U.nodebuffer.uint8array(G).buffer},uint8array:function(G){return W(G,new Uint8Array(G.length))},nodebuffer:A},m.transformTo=function(G,ee){if(ee=ee||"",!G)return ee;m.checkSupport(G);var I=m.getTypeOf(ee);return U[I][G](ee)},m.resolve=function(G){for(var ee=G.split("/"),I=[],O=0;O<ee.length;O++){var T=ee[O];T==="."||T===""&&O!==0&&O!==ee.length-1||(T===".."?I.pop():I.push(T))}return I.join("/")},m.getTypeOf=function(G){return typeof G=="string"?"string":Object.prototype.toString.call(G)==="[object Array]"?"array":p.nodebuffer&&v.isBuffer(G)?"nodebuffer":p.uint8array&&G instanceof Uint8Array?"uint8array":p.arraybuffer&&G instanceof ArrayBuffer?"arraybuffer":void 0},m.checkSupport=function(G){if(!p[G.toLowerCase()])throw new Error(G+" is not supported by this platform")},m.MAX_VALUE_16BITS=65535,m.MAX_VALUE_32BITS=-1,m.pretty=function(G){var ee,I,O="";for(I=0;I<(G||"").length;I++)O+="\\x"+((ee=G.charCodeAt(I))<16?"0":"")+ee.toString(16).toUpperCase();return O},m.delay=function(G,ee,I){h(function(){G.apply(I||null,ee||[])})},m.inherits=function(G,ee){function I(){}I.prototype=ee.prototype,G.prototype=new I},m.extend=function(){var G,ee,I={};for(G=0;G<arguments.length;G++)for(ee in arguments[G])Object.prototype.hasOwnProperty.call(arguments[G],ee)&&I[ee]===void 0&&(I[ee]=arguments[G][ee]);return I},m.prepareContent=function(G,ee,I,O,T){return b.Promise.resolve(ee).then(function(S){return p.blob&&(S instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S))!==-1)&&typeof FileReader!="undefined"?new b.Promise(function(x,w){var _=new FileReader;_.onload=function(E){x(E.target.result)},_.onerror=function(E){w(E.target.error)},_.readAsArrayBuffer(S)}):S}).then(function(S){var x=m.getTypeOf(S);return x?(x==="arraybuffer"?S=m.transformTo("uint8array",S):x==="string"&&(T?S=y.decode(S):I&&O!==!0&&(S=function(w){return C(w,p.uint8array?new Uint8Array(w.length):new Array(w.length))}(S))),S):b.Promise.reject(new Error("Can't read the data of '"+G+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(f,g,m){var p=f("./reader/readerFor"),y=f("./utils"),v=f("./signature"),b=f("./zipEntry"),A=f("./support");function C(M){this.files=[],this.loadOptions=M}C.prototype={checkSignature:function(M){if(!this.reader.readAndCheckSignature(M)){this.reader.index-=4;var z=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+y.pretty(z)+", expected "+y.pretty(M)+")")}},isSignature:function(M,z){var W=this.reader.index;this.reader.setIndex(M);var U=this.reader.readString(4)===z;return this.reader.setIndex(W),U},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var M=this.reader.readData(this.zipCommentLength),z=A.uint8array?"uint8array":"array",W=y.transformTo(z,M);this.zipComment=this.loadOptions.decodeFileName(W)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var M,z,W,U=this.zip64EndOfCentralSize-44;0<U;)M=this.reader.readInt(2),z=this.reader.readInt(4),W=this.reader.readData(z),this.zip64ExtensibleData[M]={id:M,length:z,value:W}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var M,z;for(M=0;M<this.files.length;M++)z=this.files[M],this.reader.setIndex(z.localHeaderOffset),this.checkSignature(v.LOCAL_FILE_HEADER),z.readLocalPart(this.reader),z.handleUTF8(),z.processAttributes()},readCentralDir:function(){var M;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(v.CENTRAL_FILE_HEADER);)(M=new b({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(M);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var M=this.reader.lastIndexOfSignature(v.CENTRAL_DIRECTORY_END);if(M<0)throw this.isSignature(0,v.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(M);var z=M;if(this.checkSignature(v.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===y.MAX_VALUE_16BITS||this.diskWithCentralDirStart===y.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===y.MAX_VALUE_16BITS||this.centralDirRecords===y.MAX_VALUE_16BITS||this.centralDirSize===y.MAX_VALUE_32BITS||this.centralDirOffset===y.MAX_VALUE_32BITS){if(this.zip64=!0,(M=this.reader.lastIndexOfSignature(v.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(M),this.checkSignature(v.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,v.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(v.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(v.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var W=this.centralDirOffset+this.centralDirSize;this.zip64&&(W+=20,W+=12+this.zip64EndOfCentralSize);var U=z-W;if(0<U)this.isSignature(z,v.CENTRAL_FILE_HEADER)||(this.reader.zero=U);else if(U<0)throw new Error("Corrupted zip: missing "+Math.abs(U)+" bytes.")},prepareReader:function(M){this.reader=p(M)},load:function(M){this.prepareReader(M),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},g.exports=C},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(f,g,m){var p=f("./reader/readerFor"),y=f("./utils"),v=f("./compressedObject"),b=f("./crc32"),A=f("./utf8"),C=f("./compressions"),M=f("./support");function z(W,U){this.options=W,this.loadOptions=U}z.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(W){var U,G;if(W.skip(22),this.fileNameLength=W.readInt(2),G=W.readInt(2),this.fileName=W.readData(this.fileNameLength),W.skip(G),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((U=function(ee){for(var I in C)if(Object.prototype.hasOwnProperty.call(C,I)&&C[I].magic===ee)return C[I];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+y.pretty(this.compressionMethod)+" unknown (inner file : "+y.transformTo("string",this.fileName)+")");this.decompressed=new v(this.compressedSize,this.uncompressedSize,this.crc32,U,W.readData(this.compressedSize))},readCentralPart:function(W){this.versionMadeBy=W.readInt(2),W.skip(2),this.bitFlag=W.readInt(2),this.compressionMethod=W.readString(2),this.date=W.readDate(),this.crc32=W.readInt(4),this.compressedSize=W.readInt(4),this.uncompressedSize=W.readInt(4);var U=W.readInt(2);if(this.extraFieldsLength=W.readInt(2),this.fileCommentLength=W.readInt(2),this.diskNumberStart=W.readInt(2),this.internalFileAttributes=W.readInt(2),this.externalFileAttributes=W.readInt(4),this.localHeaderOffset=W.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");W.skip(U),this.readExtraFields(W),this.parseZIP64ExtraField(W),this.fileComment=W.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var W=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),W==0&&(this.dosPermissions=63&this.externalFileAttributes),W==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var W=p(this.extraFields[1].value);this.uncompressedSize===y.MAX_VALUE_32BITS&&(this.uncompressedSize=W.readInt(8)),this.compressedSize===y.MAX_VALUE_32BITS&&(this.compressedSize=W.readInt(8)),this.localHeaderOffset===y.MAX_VALUE_32BITS&&(this.localHeaderOffset=W.readInt(8)),this.diskNumberStart===y.MAX_VALUE_32BITS&&(this.diskNumberStart=W.readInt(4))}},readExtraFields:function(W){var U,G,ee,I=W.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});W.index+4<I;)U=W.readInt(2),G=W.readInt(2),ee=W.readData(G),this.extraFields[U]={id:U,length:G,value:ee};W.setIndex(I)},handleUTF8:function(){var W=M.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=A.utf8decode(this.fileName),this.fileCommentStr=A.utf8decode(this.fileComment);else{var U=this.findExtraFieldUnicodePath();if(U!==null)this.fileNameStr=U;else{var G=y.transformTo(W,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(G)}var ee=this.findExtraFieldUnicodeComment();if(ee!==null)this.fileCommentStr=ee;else{var I=y.transformTo(W,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(I)}}},findExtraFieldUnicodePath:function(){var W=this.extraFields[28789];if(W){var U=p(W.value);return U.readInt(1)!==1||b(this.fileName)!==U.readInt(4)?null:A.utf8decode(U.readData(W.length-5))}return null},findExtraFieldUnicodeComment:function(){var W=this.extraFields[25461];if(W){var U=p(W.value);return U.readInt(1)!==1||b(this.fileComment)!==U.readInt(4)?null:A.utf8decode(U.readData(W.length-5))}return null}},g.exports=z},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(f,g,m){function p(U,G,ee){this.name=U,this.dir=ee.dir,this.date=ee.date,this.comment=ee.comment,this.unixPermissions=ee.unixPermissions,this.dosPermissions=ee.dosPermissions,this._data=G,this._dataBinary=ee.binary,this.options={compression:ee.compression,compressionOptions:ee.compressionOptions}}var y=f("./stream/StreamHelper"),v=f("./stream/DataWorker"),b=f("./utf8"),A=f("./compressedObject"),C=f("./stream/GenericWorker");p.prototype={internalStream:function(U){var G=null,ee="string";try{if(!U)throw new Error("No output type specified.");var I=(ee=U.toLowerCase())==="string"||ee==="text";ee!=="binarystring"&&ee!=="text"||(ee="string"),G=this._decompressWorker();var O=!this._dataBinary;O&&!I&&(G=G.pipe(new b.Utf8EncodeWorker)),!O&&I&&(G=G.pipe(new b.Utf8DecodeWorker))}catch(T){(G=new C("error")).error(T)}return new y(G,ee,"")},async:function(U,G){return this.internalStream(U).accumulate(G)},nodeStream:function(U,G){return this.internalStream(U||"nodebuffer").toNodejsStream(G)},_compressWorker:function(U,G){if(this._data instanceof A&&this._data.compression.magic===U.magic)return this._data.getCompressedWorker();var ee=this._decompressWorker();return this._dataBinary||(ee=ee.pipe(new b.Utf8EncodeWorker)),A.createWorkerFrom(ee,U,G)},_decompressWorker:function(){return this._data instanceof A?this._data.getContentWorker():this._data instanceof C?this._data:new v(this._data)}};for(var M=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],z=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},W=0;W<M.length;W++)p.prototype[M[W]]=z;g.exports=p},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(f,g,m){(function(p){var y,v,b=p.MutationObserver||p.WebKitMutationObserver;if(b){var A=0,C=new b(U),M=p.document.createTextNode("");C.observe(M,{characterData:!0}),y=function(){M.data=A=++A%2}}else if(p.setImmediate||p.MessageChannel===void 0)y="document"in p&&"onreadystatechange"in p.document.createElement("script")?function(){var G=p.document.createElement("script");G.onreadystatechange=function(){U(),G.onreadystatechange=null,G.parentNode.removeChild(G),G=null},p.document.documentElement.appendChild(G)}:function(){setTimeout(U,0)};else{var z=new p.MessageChannel;z.port1.onmessage=U,y=function(){z.port2.postMessage(0)}}var W=[];function U(){var G,ee;v=!0;for(var I=W.length;I;){for(ee=W,W=[],G=-1;++G<I;)ee[G]();I=W.length}v=!1}g.exports=function(G){W.push(G)!==1||v||y()}}).call(this,o!==void 0?o:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(f,g,m){var p=f("immediate");function y(){}var v={},b=["REJECTED"],A=["FULFILLED"],C=["PENDING"];function M(I){if(typeof I!="function")throw new TypeError("resolver must be a function");this.state=C,this.queue=[],this.outcome=void 0,I!==y&&G(this,I)}function z(I,O,T){this.promise=I,typeof O=="function"&&(this.onFulfilled=O,this.callFulfilled=this.otherCallFulfilled),typeof T=="function"&&(this.onRejected=T,this.callRejected=this.otherCallRejected)}function W(I,O,T){p(function(){var S;try{S=O(T)}catch(x){return v.reject(I,x)}S===I?v.reject(I,new TypeError("Cannot resolve promise with itself")):v.resolve(I,S)})}function U(I){var O=I&&I.then;if(I&&(typeof I=="object"||typeof I=="function")&&typeof O=="function")return function(){O.apply(I,arguments)}}function G(I,O){var T=!1;function S(_){T||(T=!0,v.reject(I,_))}function x(_){T||(T=!0,v.resolve(I,_))}var w=ee(function(){O(x,S)});w.status==="error"&&S(w.value)}function ee(I,O){var T={};try{T.value=I(O),T.status="success"}catch(S){T.status="error",T.value=S}return T}(g.exports=M).prototype.finally=function(I){if(typeof I!="function")return this;var O=this.constructor;return this.then(function(T){return O.resolve(I()).then(function(){return T})},function(T){return O.resolve(I()).then(function(){throw T})})},M.prototype.catch=function(I){return this.then(null,I)},M.prototype.then=function(I,O){if(typeof I!="function"&&this.state===A||typeof O!="function"&&this.state===b)return this;var T=new this.constructor(y);return this.state!==C?W(T,this.state===A?I:O,this.outcome):this.queue.push(new z(T,I,O)),T},z.prototype.callFulfilled=function(I){v.resolve(this.promise,I)},z.prototype.otherCallFulfilled=function(I){W(this.promise,this.onFulfilled,I)},z.prototype.callRejected=function(I){v.reject(this.promise,I)},z.prototype.otherCallRejected=function(I){W(this.promise,this.onRejected,I)},v.resolve=function(I,O){var T=ee(U,O);if(T.status==="error")return v.reject(I,T.value);var S=T.value;if(S)G(I,S);else{I.state=A,I.outcome=O;for(var x=-1,w=I.queue.length;++x<w;)I.queue[x].callFulfilled(O)}return I},v.reject=function(I,O){I.state=b,I.outcome=O;for(var T=-1,S=I.queue.length;++T<S;)I.queue[T].callRejected(O);return I},M.resolve=function(I){return I instanceof this?I:v.resolve(new this(y),I)},M.reject=function(I){var O=new this(y);return v.reject(O,I)},M.all=function(I){var O=this;if(Object.prototype.toString.call(I)!=="[object Array]")return this.reject(new TypeError("must be an array"));var T=I.length,S=!1;if(!T)return this.resolve([]);for(var x=new Array(T),w=0,_=-1,E=new this(y);++_<T;)R(I[_],_);return E;function R(F,B){O.resolve(F).then(function(X){x[B]=X,++w!==T||S||(S=!0,v.resolve(E,x))},function(X){S||(S=!0,v.reject(E,X))})}},M.race=function(I){if(Object.prototype.toString.call(I)!=="[object Array]")return this.reject(new TypeError("must be an array"));var O=I.length,T=!1;if(!O)return this.resolve([]);for(var S,x=-1,w=new this(y);++x<O;)S=I[x],this.resolve(S).then(function(_){T||(T=!0,v.resolve(w,_))},function(_){T||(T=!0,v.reject(w,_))});return w}},{immediate:36}],38:[function(f,g,m){var p={};(0,f("./lib/utils/common").assign)(p,f("./lib/deflate"),f("./lib/inflate"),f("./lib/zlib/constants")),g.exports=p},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(f,g,m){var p=f("./zlib/deflate"),y=f("./utils/common"),v=f("./utils/strings"),b=f("./zlib/messages"),A=f("./zlib/zstream"),C=Object.prototype.toString;function M(W){if(!(this instanceof M))return new M(W);this.options=y.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},W||{});var U=this.options;U.raw&&0<U.windowBits?U.windowBits=-U.windowBits:U.gzip&&0<U.windowBits&&U.windowBits<16&&(U.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new A,this.strm.avail_out=0;var G=p.deflateInit2(this.strm,U.level,U.method,U.windowBits,U.memLevel,U.strategy);if(G!==0)throw new Error(b[G]);if(U.header&&p.deflateSetHeader(this.strm,U.header),U.dictionary){var ee;if(ee=typeof U.dictionary=="string"?v.string2buf(U.dictionary):C.call(U.dictionary)==="[object ArrayBuffer]"?new Uint8Array(U.dictionary):U.dictionary,(G=p.deflateSetDictionary(this.strm,ee))!==0)throw new Error(b[G]);this._dict_set=!0}}function z(W,U){var G=new M(U);if(G.push(W,!0),G.err)throw G.msg||b[G.err];return G.result}M.prototype.push=function(W,U){var G,ee,I=this.strm,O=this.options.chunkSize;if(this.ended)return!1;ee=U===~~U?U:U===!0?4:0,typeof W=="string"?I.input=v.string2buf(W):C.call(W)==="[object ArrayBuffer]"?I.input=new Uint8Array(W):I.input=W,I.next_in=0,I.avail_in=I.input.length;do{if(I.avail_out===0&&(I.output=new y.Buf8(O),I.next_out=0,I.avail_out=O),(G=p.deflate(I,ee))!==1&&G!==0)return this.onEnd(G),!(this.ended=!0);I.avail_out!==0&&(I.avail_in!==0||ee!==4&&ee!==2)||(this.options.to==="string"?this.onData(v.buf2binstring(y.shrinkBuf(I.output,I.next_out))):this.onData(y.shrinkBuf(I.output,I.next_out)))}while((0<I.avail_in||I.avail_out===0)&&G!==1);return ee===4?(G=p.deflateEnd(this.strm),this.onEnd(G),this.ended=!0,G===0):ee!==2||(this.onEnd(0),!(I.avail_out=0))},M.prototype.onData=function(W){this.chunks.push(W)},M.prototype.onEnd=function(W){W===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=y.flattenChunks(this.chunks)),this.chunks=[],this.err=W,this.msg=this.strm.msg},m.Deflate=M,m.deflate=z,m.deflateRaw=function(W,U){return(U=U||{}).raw=!0,z(W,U)},m.gzip=function(W,U){return(U=U||{}).gzip=!0,z(W,U)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(f,g,m){var p=f("./zlib/inflate"),y=f("./utils/common"),v=f("./utils/strings"),b=f("./zlib/constants"),A=f("./zlib/messages"),C=f("./zlib/zstream"),M=f("./zlib/gzheader"),z=Object.prototype.toString;function W(G){if(!(this instanceof W))return new W(G);this.options=y.assign({chunkSize:16384,windowBits:0,to:""},G||{});var ee=this.options;ee.raw&&0<=ee.windowBits&&ee.windowBits<16&&(ee.windowBits=-ee.windowBits,ee.windowBits===0&&(ee.windowBits=-15)),!(0<=ee.windowBits&&ee.windowBits<16)||G&&G.windowBits||(ee.windowBits+=32),15<ee.windowBits&&ee.windowBits<48&&(15&ee.windowBits)==0&&(ee.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new C,this.strm.avail_out=0;var I=p.inflateInit2(this.strm,ee.windowBits);if(I!==b.Z_OK)throw new Error(A[I]);this.header=new M,p.inflateGetHeader(this.strm,this.header)}function U(G,ee){var I=new W(ee);if(I.push(G,!0),I.err)throw I.msg||A[I.err];return I.result}W.prototype.push=function(G,ee){var I,O,T,S,x,w,_=this.strm,E=this.options.chunkSize,R=this.options.dictionary,F=!1;if(this.ended)return!1;O=ee===~~ee?ee:ee===!0?b.Z_FINISH:b.Z_NO_FLUSH,typeof G=="string"?_.input=v.binstring2buf(G):z.call(G)==="[object ArrayBuffer]"?_.input=new Uint8Array(G):_.input=G,_.next_in=0,_.avail_in=_.input.length;do{if(_.avail_out===0&&(_.output=new y.Buf8(E),_.next_out=0,_.avail_out=E),(I=p.inflate(_,b.Z_NO_FLUSH))===b.Z_NEED_DICT&&R&&(w=typeof R=="string"?v.string2buf(R):z.call(R)==="[object ArrayBuffer]"?new Uint8Array(R):R,I=p.inflateSetDictionary(this.strm,w)),I===b.Z_BUF_ERROR&&F===!0&&(I=b.Z_OK,F=!1),I!==b.Z_STREAM_END&&I!==b.Z_OK)return this.onEnd(I),!(this.ended=!0);_.next_out&&(_.avail_out!==0&&I!==b.Z_STREAM_END&&(_.avail_in!==0||O!==b.Z_FINISH&&O!==b.Z_SYNC_FLUSH)||(this.options.to==="string"?(T=v.utf8border(_.output,_.next_out),S=_.next_out-T,x=v.buf2string(_.output,T),_.next_out=S,_.avail_out=E-S,S&&y.arraySet(_.output,_.output,T,S,0),this.onData(x)):this.onData(y.shrinkBuf(_.output,_.next_out)))),_.avail_in===0&&_.avail_out===0&&(F=!0)}while((0<_.avail_in||_.avail_out===0)&&I!==b.Z_STREAM_END);return I===b.Z_STREAM_END&&(O=b.Z_FINISH),O===b.Z_FINISH?(I=p.inflateEnd(this.strm),this.onEnd(I),this.ended=!0,I===b.Z_OK):O!==b.Z_SYNC_FLUSH||(this.onEnd(b.Z_OK),!(_.avail_out=0))},W.prototype.onData=function(G){this.chunks.push(G)},W.prototype.onEnd=function(G){G===b.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=y.flattenChunks(this.chunks)),this.chunks=[],this.err=G,this.msg=this.strm.msg},m.Inflate=W,m.inflate=U,m.inflateRaw=function(G,ee){return(ee=ee||{}).raw=!0,U(G,ee)},m.ungzip=U},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(f,g,m){var p=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";m.assign=function(b){for(var A=Array.prototype.slice.call(arguments,1);A.length;){var C=A.shift();if(C){if(typeof C!="object")throw new TypeError(C+"must be non-object");for(var M in C)C.hasOwnProperty(M)&&(b[M]=C[M])}}return b},m.shrinkBuf=function(b,A){return b.length===A?b:b.subarray?b.subarray(0,A):(b.length=A,b)};var y={arraySet:function(b,A,C,M,z){if(A.subarray&&b.subarray)b.set(A.subarray(C,C+M),z);else for(var W=0;W<M;W++)b[z+W]=A[C+W]},flattenChunks:function(b){var A,C,M,z,W,U;for(A=M=0,C=b.length;A<C;A++)M+=b[A].length;for(U=new Uint8Array(M),A=z=0,C=b.length;A<C;A++)W=b[A],U.set(W,z),z+=W.length;return U}},v={arraySet:function(b,A,C,M,z){for(var W=0;W<M;W++)b[z+W]=A[C+W]},flattenChunks:function(b){return[].concat.apply([],b)}};m.setTyped=function(b){b?(m.Buf8=Uint8Array,m.Buf16=Uint16Array,m.Buf32=Int32Array,m.assign(m,y)):(m.Buf8=Array,m.Buf16=Array,m.Buf32=Array,m.assign(m,v))},m.setTyped(p)},{}],42:[function(f,g,m){var p=f("./common"),y=!0,v=!0;try{String.fromCharCode.apply(null,[0])}catch{y=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{v=!1}for(var b=new p.Buf8(256),A=0;A<256;A++)b[A]=252<=A?6:248<=A?5:240<=A?4:224<=A?3:192<=A?2:1;function C(M,z){if(z<65537&&(M.subarray&&v||!M.subarray&&y))return String.fromCharCode.apply(null,p.shrinkBuf(M,z));for(var W="",U=0;U<z;U++)W+=String.fromCharCode(M[U]);return W}b[254]=b[254]=1,m.string2buf=function(M){var z,W,U,G,ee,I=M.length,O=0;for(G=0;G<I;G++)(64512&(W=M.charCodeAt(G)))==55296&&G+1<I&&(64512&(U=M.charCodeAt(G+1)))==56320&&(W=65536+(W-55296<<10)+(U-56320),G++),O+=W<128?1:W<2048?2:W<65536?3:4;for(z=new p.Buf8(O),G=ee=0;ee<O;G++)(64512&(W=M.charCodeAt(G)))==55296&&G+1<I&&(64512&(U=M.charCodeAt(G+1)))==56320&&(W=65536+(W-55296<<10)+(U-56320),G++),W<128?z[ee++]=W:(W<2048?z[ee++]=192|W>>>6:(W<65536?z[ee++]=224|W>>>12:(z[ee++]=240|W>>>18,z[ee++]=128|W>>>12&63),z[ee++]=128|W>>>6&63),z[ee++]=128|63&W);return z},m.buf2binstring=function(M){return C(M,M.length)},m.binstring2buf=function(M){for(var z=new p.Buf8(M.length),W=0,U=z.length;W<U;W++)z[W]=M.charCodeAt(W);return z},m.buf2string=function(M,z){var W,U,G,ee,I=z||M.length,O=new Array(2*I);for(W=U=0;W<I;)if((G=M[W++])<128)O[U++]=G;else if(4<(ee=b[G]))O[U++]=65533,W+=ee-1;else{for(G&=ee===2?31:ee===3?15:7;1<ee&&W<I;)G=G<<6|63&M[W++],ee--;1<ee?O[U++]=65533:G<65536?O[U++]=G:(G-=65536,O[U++]=55296|G>>10&1023,O[U++]=56320|1023&G)}return C(O,U)},m.utf8border=function(M,z){var W;for((z=z||M.length)>M.length&&(z=M.length),W=z-1;0<=W&&(192&M[W])==128;)W--;return W<0||W===0?z:W+b[M[W]]>z?W:z}},{"./common":41}],43:[function(f,g,m){g.exports=function(p,y,v,b){for(var A=65535&p|0,C=p>>>16&65535|0,M=0;v!==0;){for(v-=M=2e3<v?2e3:v;C=C+(A=A+y[b++]|0)|0,--M;);A%=65521,C%=65521}return A|C<<16|0}},{}],44:[function(f,g,m){g.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(f,g,m){var p=function(){for(var y,v=[],b=0;b<256;b++){y=b;for(var A=0;A<8;A++)y=1&y?3988292384^y>>>1:y>>>1;v[b]=y}return v}();g.exports=function(y,v,b,A){var C=p,M=A+b;y^=-1;for(var z=A;z<M;z++)y=y>>>8^C[255&(y^v[z])];return-1^y}},{}],46:[function(f,g,m){var p,y=f("../utils/common"),v=f("./trees"),b=f("./adler32"),A=f("./crc32"),C=f("./messages"),M=-2,z=258,W=262,U=113;function G($,q){return $.msg=C[q],q}function ee($){return($<<1)-(4<$?9:0)}function I($){for(var q=$.length;0<=--q;)$[q]=0}function O($){var q=$.state,k=q.pending;k>$.avail_out&&(k=$.avail_out),k!==0&&(y.arraySet($.output,q.pending_buf,q.pending_out,k,$.next_out),$.next_out+=k,q.pending_out+=k,$.total_out+=k,$.avail_out-=k,q.pending-=k,q.pending===0&&(q.pending_out=0))}function T($,q){v._tr_flush_block($,0<=$.block_start?$.block_start:-1,$.strstart-$.block_start,q),$.block_start=$.strstart,O($.strm)}function S($,q){$.pending_buf[$.pending++]=q}function x($,q){$.pending_buf[$.pending++]=q>>>8&255,$.pending_buf[$.pending++]=255&q}function w($,q){var k,L,V=$.max_chain_length,J=$.strstart,re=$.prev_length,ae=$.nice_match,j=$.strstart>$.w_size-W?$.strstart-($.w_size-W):0,ue=$.window,Q=$.w_mask,P=$.prev,H=$.strstart+z,Z=ue[J+re-1],oe=ue[J+re];$.prev_length>=$.good_match&&(V>>=2),ae>$.lookahead&&(ae=$.lookahead);do if(ue[(k=q)+re]===oe&&ue[k+re-1]===Z&&ue[k]===ue[J]&&ue[++k]===ue[J+1]){J+=2,k++;do;while(ue[++J]===ue[++k]&&ue[++J]===ue[++k]&&ue[++J]===ue[++k]&&ue[++J]===ue[++k]&&ue[++J]===ue[++k]&&ue[++J]===ue[++k]&&ue[++J]===ue[++k]&&ue[++J]===ue[++k]&&J<H);if(L=z-(H-J),J=H-z,re<L){if($.match_start=q,ae<=(re=L))break;Z=ue[J+re-1],oe=ue[J+re]}}while((q=P[q&Q])>j&&--V!=0);return re<=$.lookahead?re:$.lookahead}function _($){var q,k,L,V,J,re,ae,j,ue,Q,P=$.w_size;do{if(V=$.window_size-$.lookahead-$.strstart,$.strstart>=P+(P-W)){for(y.arraySet($.window,$.window,P,P,0),$.match_start-=P,$.strstart-=P,$.block_start-=P,q=k=$.hash_size;L=$.head[--q],$.head[q]=P<=L?L-P:0,--k;);for(q=k=P;L=$.prev[--q],$.prev[q]=P<=L?L-P:0,--k;);V+=P}if($.strm.avail_in===0)break;if(re=$.strm,ae=$.window,j=$.strstart+$.lookahead,Q=void 0,(ue=V)<(Q=re.avail_in)&&(Q=ue),k=Q===0?0:(re.avail_in-=Q,y.arraySet(ae,re.input,re.next_in,Q,j),re.state.wrap===1?re.adler=b(re.adler,ae,Q,j):re.state.wrap===2&&(re.adler=A(re.adler,ae,Q,j)),re.next_in+=Q,re.total_in+=Q,Q),$.lookahead+=k,$.lookahead+$.insert>=3)for(J=$.strstart-$.insert,$.ins_h=$.window[J],$.ins_h=($.ins_h<<$.hash_shift^$.window[J+1])&$.hash_mask;$.insert&&($.ins_h=($.ins_h<<$.hash_shift^$.window[J+3-1])&$.hash_mask,$.prev[J&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=J,J++,$.insert--,!($.lookahead+$.insert<3)););}while($.lookahead<W&&$.strm.avail_in!==0)}function E($,q){for(var k,L;;){if($.lookahead<W){if(_($),$.lookahead<W&&q===0)return 1;if($.lookahead===0)break}if(k=0,$.lookahead>=3&&($.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+3-1])&$.hash_mask,k=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart),k!==0&&$.strstart-k<=$.w_size-W&&($.match_length=w($,k)),$.match_length>=3)if(L=v._tr_tally($,$.strstart-$.match_start,$.match_length-3),$.lookahead-=$.match_length,$.match_length<=$.max_lazy_match&&$.lookahead>=3){for($.match_length--;$.strstart++,$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+3-1])&$.hash_mask,k=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart,--$.match_length!=0;);$.strstart++}else $.strstart+=$.match_length,$.match_length=0,$.ins_h=$.window[$.strstart],$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+1])&$.hash_mask;else L=v._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++;if(L&&(T($,!1),$.strm.avail_out===0))return 1}return $.insert=$.strstart<2?$.strstart:2,q===4?(T($,!0),$.strm.avail_out===0?3:4):$.last_lit&&(T($,!1),$.strm.avail_out===0)?1:2}function R($,q){for(var k,L,V;;){if($.lookahead<W){if(_($),$.lookahead<W&&q===0)return 1;if($.lookahead===0)break}if(k=0,$.lookahead>=3&&($.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+3-1])&$.hash_mask,k=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart),$.prev_length=$.match_length,$.prev_match=$.match_start,$.match_length=2,k!==0&&$.prev_length<$.max_lazy_match&&$.strstart-k<=$.w_size-W&&($.match_length=w($,k),$.match_length<=5&&($.strategy===1||$.match_length===3&&4096<$.strstart-$.match_start)&&($.match_length=2)),$.prev_length>=3&&$.match_length<=$.prev_length){for(V=$.strstart+$.lookahead-3,L=v._tr_tally($,$.strstart-1-$.prev_match,$.prev_length-3),$.lookahead-=$.prev_length-1,$.prev_length-=2;++$.strstart<=V&&($.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+3-1])&$.hash_mask,k=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart),--$.prev_length!=0;);if($.match_available=0,$.match_length=2,$.strstart++,L&&(T($,!1),$.strm.avail_out===0))return 1}else if($.match_available){if((L=v._tr_tally($,0,$.window[$.strstart-1]))&&T($,!1),$.strstart++,$.lookahead--,$.strm.avail_out===0)return 1}else $.match_available=1,$.strstart++,$.lookahead--}return $.match_available&&(L=v._tr_tally($,0,$.window[$.strstart-1]),$.match_available=0),$.insert=$.strstart<2?$.strstart:2,q===4?(T($,!0),$.strm.avail_out===0?3:4):$.last_lit&&(T($,!1),$.strm.avail_out===0)?1:2}function F($,q,k,L,V){this.good_length=$,this.max_lazy=q,this.nice_length=k,this.max_chain=L,this.func=V}function B(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new y.Buf16(1146),this.dyn_dtree=new y.Buf16(122),this.bl_tree=new y.Buf16(78),I(this.dyn_ltree),I(this.dyn_dtree),I(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new y.Buf16(16),this.heap=new y.Buf16(573),I(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new y.Buf16(573),I(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function X($){var q;return $&&$.state?($.total_in=$.total_out=0,$.data_type=2,(q=$.state).pending=0,q.pending_out=0,q.wrap<0&&(q.wrap=-q.wrap),q.status=q.wrap?42:U,$.adler=q.wrap===2?0:1,q.last_flush=0,v._tr_init(q),0):G($,M)}function K($){var q=X($);return q===0&&function(k){k.window_size=2*k.w_size,I(k.head),k.max_lazy_match=p[k.level].max_lazy,k.good_match=p[k.level].good_length,k.nice_match=p[k.level].nice_length,k.max_chain_length=p[k.level].max_chain,k.strstart=0,k.block_start=0,k.lookahead=0,k.insert=0,k.match_length=k.prev_length=2,k.match_available=0,k.ins_h=0}($.state),q}function te($,q,k,L,V,J){if(!$)return M;var re=1;if(q===-1&&(q=6),L<0?(re=0,L=-L):15<L&&(re=2,L-=16),V<1||9<V||k!==8||L<8||15<L||q<0||9<q||J<0||4<J)return G($,M);L===8&&(L=9);var ae=new B;return($.state=ae).strm=$,ae.wrap=re,ae.gzhead=null,ae.w_bits=L,ae.w_size=1<<ae.w_bits,ae.w_mask=ae.w_size-1,ae.hash_bits=V+7,ae.hash_size=1<<ae.hash_bits,ae.hash_mask=ae.hash_size-1,ae.hash_shift=~~((ae.hash_bits+3-1)/3),ae.window=new y.Buf8(2*ae.w_size),ae.head=new y.Buf16(ae.hash_size),ae.prev=new y.Buf16(ae.w_size),ae.lit_bufsize=1<<V+6,ae.pending_buf_size=4*ae.lit_bufsize,ae.pending_buf=new y.Buf8(ae.pending_buf_size),ae.d_buf=1*ae.lit_bufsize,ae.l_buf=3*ae.lit_bufsize,ae.level=q,ae.strategy=J,ae.method=k,K($)}p=[new F(0,0,0,0,function($,q){var k=65535;for(k>$.pending_buf_size-5&&(k=$.pending_buf_size-5);;){if($.lookahead<=1){if(_($),$.lookahead===0&&q===0)return 1;if($.lookahead===0)break}$.strstart+=$.lookahead,$.lookahead=0;var L=$.block_start+k;if(($.strstart===0||$.strstart>=L)&&($.lookahead=$.strstart-L,$.strstart=L,T($,!1),$.strm.avail_out===0)||$.strstart-$.block_start>=$.w_size-W&&(T($,!1),$.strm.avail_out===0))return 1}return $.insert=0,q===4?(T($,!0),$.strm.avail_out===0?3:4):($.strstart>$.block_start&&(T($,!1),$.strm.avail_out),1)}),new F(4,4,8,4,E),new F(4,5,16,8,E),new F(4,6,32,32,E),new F(4,4,16,16,R),new F(8,16,32,32,R),new F(8,16,128,128,R),new F(8,32,128,256,R),new F(32,128,258,1024,R),new F(32,258,258,4096,R)],m.deflateInit=function($,q){return te($,q,8,15,8,0)},m.deflateInit2=te,m.deflateReset=K,m.deflateResetKeep=X,m.deflateSetHeader=function($,q){return $&&$.state?$.state.wrap!==2?M:($.state.gzhead=q,0):M},m.deflate=function($,q){var k,L,V,J;if(!$||!$.state||5<q||q<0)return $?G($,M):M;if(L=$.state,!$.output||!$.input&&$.avail_in!==0||L.status===666&&q!==4)return G($,$.avail_out===0?-5:M);if(L.strm=$,k=L.last_flush,L.last_flush=q,L.status===42)if(L.wrap===2)$.adler=0,S(L,31),S(L,139),S(L,8),L.gzhead?(S(L,(L.gzhead.text?1:0)+(L.gzhead.hcrc?2:0)+(L.gzhead.extra?4:0)+(L.gzhead.name?8:0)+(L.gzhead.comment?16:0)),S(L,255&L.gzhead.time),S(L,L.gzhead.time>>8&255),S(L,L.gzhead.time>>16&255),S(L,L.gzhead.time>>24&255),S(L,L.level===9?2:2<=L.strategy||L.level<2?4:0),S(L,255&L.gzhead.os),L.gzhead.extra&&L.gzhead.extra.length&&(S(L,255&L.gzhead.extra.length),S(L,L.gzhead.extra.length>>8&255)),L.gzhead.hcrc&&($.adler=A($.adler,L.pending_buf,L.pending,0)),L.gzindex=0,L.status=69):(S(L,0),S(L,0),S(L,0),S(L,0),S(L,0),S(L,L.level===9?2:2<=L.strategy||L.level<2?4:0),S(L,3),L.status=U);else{var re=8+(L.w_bits-8<<4)<<8;re|=(2<=L.strategy||L.level<2?0:L.level<6?1:L.level===6?2:3)<<6,L.strstart!==0&&(re|=32),re+=31-re%31,L.status=U,x(L,re),L.strstart!==0&&(x(L,$.adler>>>16),x(L,65535&$.adler)),$.adler=1}if(L.status===69)if(L.gzhead.extra){for(V=L.pending;L.gzindex<(65535&L.gzhead.extra.length)&&(L.pending!==L.pending_buf_size||(L.gzhead.hcrc&&L.pending>V&&($.adler=A($.adler,L.pending_buf,L.pending-V,V)),O($),V=L.pending,L.pending!==L.pending_buf_size));)S(L,255&L.gzhead.extra[L.gzindex]),L.gzindex++;L.gzhead.hcrc&&L.pending>V&&($.adler=A($.adler,L.pending_buf,L.pending-V,V)),L.gzindex===L.gzhead.extra.length&&(L.gzindex=0,L.status=73)}else L.status=73;if(L.status===73)if(L.gzhead.name){V=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>V&&($.adler=A($.adler,L.pending_buf,L.pending-V,V)),O($),V=L.pending,L.pending===L.pending_buf_size)){J=1;break}J=L.gzindex<L.gzhead.name.length?255&L.gzhead.name.charCodeAt(L.gzindex++):0,S(L,J)}while(J!==0);L.gzhead.hcrc&&L.pending>V&&($.adler=A($.adler,L.pending_buf,L.pending-V,V)),J===0&&(L.gzindex=0,L.status=91)}else L.status=91;if(L.status===91)if(L.gzhead.comment){V=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>V&&($.adler=A($.adler,L.pending_buf,L.pending-V,V)),O($),V=L.pending,L.pending===L.pending_buf_size)){J=1;break}J=L.gzindex<L.gzhead.comment.length?255&L.gzhead.comment.charCodeAt(L.gzindex++):0,S(L,J)}while(J!==0);L.gzhead.hcrc&&L.pending>V&&($.adler=A($.adler,L.pending_buf,L.pending-V,V)),J===0&&(L.status=103)}else L.status=103;if(L.status===103&&(L.gzhead.hcrc?(L.pending+2>L.pending_buf_size&&O($),L.pending+2<=L.pending_buf_size&&(S(L,255&$.adler),S(L,$.adler>>8&255),$.adler=0,L.status=U)):L.status=U),L.pending!==0){if(O($),$.avail_out===0)return L.last_flush=-1,0}else if($.avail_in===0&&ee(q)<=ee(k)&&q!==4)return G($,-5);if(L.status===666&&$.avail_in!==0)return G($,-5);if($.avail_in!==0||L.lookahead!==0||q!==0&&L.status!==666){var ae=L.strategy===2?function(j,ue){for(var Q;;){if(j.lookahead===0&&(_(j),j.lookahead===0)){if(ue===0)return 1;break}if(j.match_length=0,Q=v._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++,Q&&(T(j,!1),j.strm.avail_out===0))return 1}return j.insert=0,ue===4?(T(j,!0),j.strm.avail_out===0?3:4):j.last_lit&&(T(j,!1),j.strm.avail_out===0)?1:2}(L,q):L.strategy===3?function(j,ue){for(var Q,P,H,Z,oe=j.window;;){if(j.lookahead<=z){if(_(j),j.lookahead<=z&&ue===0)return 1;if(j.lookahead===0)break}if(j.match_length=0,j.lookahead>=3&&0<j.strstart&&(P=oe[H=j.strstart-1])===oe[++H]&&P===oe[++H]&&P===oe[++H]){Z=j.strstart+z;do;while(P===oe[++H]&&P===oe[++H]&&P===oe[++H]&&P===oe[++H]&&P===oe[++H]&&P===oe[++H]&&P===oe[++H]&&P===oe[++H]&&H<Z);j.match_length=z-(Z-H),j.match_length>j.lookahead&&(j.match_length=j.lookahead)}if(j.match_length>=3?(Q=v._tr_tally(j,1,j.match_length-3),j.lookahead-=j.match_length,j.strstart+=j.match_length,j.match_length=0):(Q=v._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++),Q&&(T(j,!1),j.strm.avail_out===0))return 1}return j.insert=0,ue===4?(T(j,!0),j.strm.avail_out===0?3:4):j.last_lit&&(T(j,!1),j.strm.avail_out===0)?1:2}(L,q):p[L.level].func(L,q);if(ae!==3&&ae!==4||(L.status=666),ae===1||ae===3)return $.avail_out===0&&(L.last_flush=-1),0;if(ae===2&&(q===1?v._tr_align(L):q!==5&&(v._tr_stored_block(L,0,0,!1),q===3&&(I(L.head),L.lookahead===0&&(L.strstart=0,L.block_start=0,L.insert=0))),O($),$.avail_out===0))return L.last_flush=-1,0}return q!==4?0:L.wrap<=0?1:(L.wrap===2?(S(L,255&$.adler),S(L,$.adler>>8&255),S(L,$.adler>>16&255),S(L,$.adler>>24&255),S(L,255&$.total_in),S(L,$.total_in>>8&255),S(L,$.total_in>>16&255),S(L,$.total_in>>24&255)):(x(L,$.adler>>>16),x(L,65535&$.adler)),O($),0<L.wrap&&(L.wrap=-L.wrap),L.pending!==0?0:1)},m.deflateEnd=function($){var q;return $&&$.state?(q=$.state.status)!==42&&q!==69&&q!==73&&q!==91&&q!==103&&q!==U&&q!==666?G($,M):($.state=null,q===U?G($,-3):0):M},m.deflateSetDictionary=function($,q){var k,L,V,J,re,ae,j,ue,Q=q.length;if(!$||!$.state||(J=(k=$.state).wrap)===2||J===1&&k.status!==42||k.lookahead)return M;for(J===1&&($.adler=b($.adler,q,Q,0)),k.wrap=0,Q>=k.w_size&&(J===0&&(I(k.head),k.strstart=0,k.block_start=0,k.insert=0),ue=new y.Buf8(k.w_size),y.arraySet(ue,q,Q-k.w_size,k.w_size,0),q=ue,Q=k.w_size),re=$.avail_in,ae=$.next_in,j=$.input,$.avail_in=Q,$.next_in=0,$.input=q,_(k);k.lookahead>=3;){for(L=k.strstart,V=k.lookahead-2;k.ins_h=(k.ins_h<<k.hash_shift^k.window[L+3-1])&k.hash_mask,k.prev[L&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=L,L++,--V;);k.strstart=L,k.lookahead=2,_(k)}return k.strstart+=k.lookahead,k.block_start=k.strstart,k.insert=k.lookahead,k.lookahead=0,k.match_length=k.prev_length=2,k.match_available=0,$.next_in=ae,$.input=j,$.avail_in=re,k.wrap=J,0},m.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(f,g,m){g.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(f,g,m){g.exports=function(p,y){var v,b,A,C,M,z,W,U,G,ee,I,O,T,S,x,w,_,E,R,F,B,X,K,te,$;v=p.state,b=p.next_in,te=p.input,A=b+(p.avail_in-5),C=p.next_out,$=p.output,M=C-(y-p.avail_out),z=C+(p.avail_out-257),W=v.dmax,U=v.wsize,G=v.whave,ee=v.wnext,I=v.window,O=v.hold,T=v.bits,S=v.lencode,x=v.distcode,w=(1<<v.lenbits)-1,_=(1<<v.distbits)-1;e:do{T<15&&(O+=te[b++]<<T,T+=8,O+=te[b++]<<T,T+=8),E=S[O&w];t:for(;;){if(O>>>=R=E>>>24,T-=R,(R=E>>>16&255)==0)$[C++]=65535&E;else{if(!(16&R)){if((64&R)==0){E=S[(65535&E)+(O&(1<<R)-1)];continue t}if(32&R){v.mode=12;break e}p.msg="invalid literal/length code",v.mode=30;break e}F=65535&E,(R&=15)&&(T<R&&(O+=te[b++]<<T,T+=8),F+=O&(1<<R)-1,O>>>=R,T-=R),T<15&&(O+=te[b++]<<T,T+=8,O+=te[b++]<<T,T+=8),E=x[O&_];r:for(;;){if(O>>>=R=E>>>24,T-=R,!(16&(R=E>>>16&255))){if((64&R)==0){E=x[(65535&E)+(O&(1<<R)-1)];continue r}p.msg="invalid distance code",v.mode=30;break e}if(B=65535&E,T<(R&=15)&&(O+=te[b++]<<T,(T+=8)<R&&(O+=te[b++]<<T,T+=8)),W<(B+=O&(1<<R)-1)){p.msg="invalid distance too far back",v.mode=30;break e}if(O>>>=R,T-=R,(R=C-M)<B){if(G<(R=B-R)&&v.sane){p.msg="invalid distance too far back",v.mode=30;break e}if(K=I,(X=0)===ee){if(X+=U-R,R<F){for(F-=R;$[C++]=I[X++],--R;);X=C-B,K=$}}else if(ee<R){if(X+=U+ee-R,(R-=ee)<F){for(F-=R;$[C++]=I[X++],--R;);if(X=0,ee<F){for(F-=R=ee;$[C++]=I[X++],--R;);X=C-B,K=$}}}else if(X+=ee-R,R<F){for(F-=R;$[C++]=I[X++],--R;);X=C-B,K=$}for(;2<F;)$[C++]=K[X++],$[C++]=K[X++],$[C++]=K[X++],F-=3;F&&($[C++]=K[X++],1<F&&($[C++]=K[X++]))}else{for(X=C-B;$[C++]=$[X++],$[C++]=$[X++],$[C++]=$[X++],2<(F-=3););F&&($[C++]=$[X++],1<F&&($[C++]=$[X++]))}break}}break}}while(b<A&&C<z);b-=F=T>>3,O&=(1<<(T-=F<<3))-1,p.next_in=b,p.next_out=C,p.avail_in=b<A?A-b+5:5-(b-A),p.avail_out=C<z?z-C+257:257-(C-z),v.hold=O,v.bits=T}},{}],49:[function(f,g,m){var p=f("../utils/common"),y=f("./adler32"),v=f("./crc32"),b=f("./inffast"),A=f("./inftrees"),C=-2;function M(w){return(w>>>24&255)+(w>>>8&65280)+((65280&w)<<8)+((255&w)<<24)}function z(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new p.Buf16(320),this.work=new p.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function W(w){var _;return w&&w.state?(_=w.state,w.total_in=w.total_out=_.total=0,w.msg="",_.wrap&&(w.adler=1&_.wrap),_.mode=1,_.last=0,_.havedict=0,_.dmax=32768,_.head=null,_.hold=0,_.bits=0,_.lencode=_.lendyn=new p.Buf32(852),_.distcode=_.distdyn=new p.Buf32(592),_.sane=1,_.back=-1,0):C}function U(w){var _;return w&&w.state?((_=w.state).wsize=0,_.whave=0,_.wnext=0,W(w)):C}function G(w,_){var E,R;return w&&w.state?(R=w.state,_<0?(E=0,_=-_):(E=1+(_>>4),_<48&&(_&=15)),_&&(_<8||15<_)?C:(R.window!==null&&R.wbits!==_&&(R.window=null),R.wrap=E,R.wbits=_,U(w))):C}function ee(w,_){var E,R;return w?(R=new z,(w.state=R).window=null,(E=G(w,_))!==0&&(w.state=null),E):C}var I,O,T=!0;function S(w){if(T){var _;for(I=new p.Buf32(512),O=new p.Buf32(32),_=0;_<144;)w.lens[_++]=8;for(;_<256;)w.lens[_++]=9;for(;_<280;)w.lens[_++]=7;for(;_<288;)w.lens[_++]=8;for(A(1,w.lens,0,288,I,0,w.work,{bits:9}),_=0;_<32;)w.lens[_++]=5;A(2,w.lens,0,32,O,0,w.work,{bits:5}),T=!1}w.lencode=I,w.lenbits=9,w.distcode=O,w.distbits=5}function x(w,_,E,R){var F,B=w.state;return B.window===null&&(B.wsize=1<<B.wbits,B.wnext=0,B.whave=0,B.window=new p.Buf8(B.wsize)),R>=B.wsize?(p.arraySet(B.window,_,E-B.wsize,B.wsize,0),B.wnext=0,B.whave=B.wsize):(R<(F=B.wsize-B.wnext)&&(F=R),p.arraySet(B.window,_,E-R,F,B.wnext),(R-=F)?(p.arraySet(B.window,_,E-R,R,0),B.wnext=R,B.whave=B.wsize):(B.wnext+=F,B.wnext===B.wsize&&(B.wnext=0),B.whave<B.wsize&&(B.whave+=F))),0}m.inflateReset=U,m.inflateReset2=G,m.inflateResetKeep=W,m.inflateInit=function(w){return ee(w,15)},m.inflateInit2=ee,m.inflate=function(w,_){var E,R,F,B,X,K,te,$,q,k,L,V,J,re,ae,j,ue,Q,P,H,Z,oe,ce,ne,se=0,fe=new p.Buf8(4),de=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!w||!w.state||!w.output||!w.input&&w.avail_in!==0)return C;(E=w.state).mode===12&&(E.mode=13),X=w.next_out,F=w.output,te=w.avail_out,B=w.next_in,R=w.input,K=w.avail_in,$=E.hold,q=E.bits,k=K,L=te,oe=0;e:for(;;)switch(E.mode){case 1:if(E.wrap===0){E.mode=13;break}for(;q<16;){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}if(2&E.wrap&&$===35615){fe[E.check=0]=255&$,fe[1]=$>>>8&255,E.check=v(E.check,fe,2,0),q=$=0,E.mode=2;break}if(E.flags=0,E.head&&(E.head.done=!1),!(1&E.wrap)||(((255&$)<<8)+($>>8))%31){w.msg="incorrect header check",E.mode=30;break}if((15&$)!=8){w.msg="unknown compression method",E.mode=30;break}if(q-=4,Z=8+(15&($>>>=4)),E.wbits===0)E.wbits=Z;else if(Z>E.wbits){w.msg="invalid window size",E.mode=30;break}E.dmax=1<<Z,w.adler=E.check=1,E.mode=512&$?10:12,q=$=0;break;case 2:for(;q<16;){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}if(E.flags=$,(255&E.flags)!=8){w.msg="unknown compression method",E.mode=30;break}if(57344&E.flags){w.msg="unknown header flags set",E.mode=30;break}E.head&&(E.head.text=$>>8&1),512&E.flags&&(fe[0]=255&$,fe[1]=$>>>8&255,E.check=v(E.check,fe,2,0)),q=$=0,E.mode=3;case 3:for(;q<32;){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}E.head&&(E.head.time=$),512&E.flags&&(fe[0]=255&$,fe[1]=$>>>8&255,fe[2]=$>>>16&255,fe[3]=$>>>24&255,E.check=v(E.check,fe,4,0)),q=$=0,E.mode=4;case 4:for(;q<16;){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}E.head&&(E.head.xflags=255&$,E.head.os=$>>8),512&E.flags&&(fe[0]=255&$,fe[1]=$>>>8&255,E.check=v(E.check,fe,2,0)),q=$=0,E.mode=5;case 5:if(1024&E.flags){for(;q<16;){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}E.length=$,E.head&&(E.head.extra_len=$),512&E.flags&&(fe[0]=255&$,fe[1]=$>>>8&255,E.check=v(E.check,fe,2,0)),q=$=0}else E.head&&(E.head.extra=null);E.mode=6;case 6:if(1024&E.flags&&(K<(V=E.length)&&(V=K),V&&(E.head&&(Z=E.head.extra_len-E.length,E.head.extra||(E.head.extra=new Array(E.head.extra_len)),p.arraySet(E.head.extra,R,B,V,Z)),512&E.flags&&(E.check=v(E.check,R,V,B)),K-=V,B+=V,E.length-=V),E.length))break e;E.length=0,E.mode=7;case 7:if(2048&E.flags){if(K===0)break e;for(V=0;Z=R[B+V++],E.head&&Z&&E.length<65536&&(E.head.name+=String.fromCharCode(Z)),Z&&V<K;);if(512&E.flags&&(E.check=v(E.check,R,V,B)),K-=V,B+=V,Z)break e}else E.head&&(E.head.name=null);E.length=0,E.mode=8;case 8:if(4096&E.flags){if(K===0)break e;for(V=0;Z=R[B+V++],E.head&&Z&&E.length<65536&&(E.head.comment+=String.fromCharCode(Z)),Z&&V<K;);if(512&E.flags&&(E.check=v(E.check,R,V,B)),K-=V,B+=V,Z)break e}else E.head&&(E.head.comment=null);E.mode=9;case 9:if(512&E.flags){for(;q<16;){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}if($!==(65535&E.check)){w.msg="header crc mismatch",E.mode=30;break}q=$=0}E.head&&(E.head.hcrc=E.flags>>9&1,E.head.done=!0),w.adler=E.check=0,E.mode=12;break;case 10:for(;q<32;){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}w.adler=E.check=M($),q=$=0,E.mode=11;case 11:if(E.havedict===0)return w.next_out=X,w.avail_out=te,w.next_in=B,w.avail_in=K,E.hold=$,E.bits=q,2;w.adler=E.check=1,E.mode=12;case 12:if(_===5||_===6)break e;case 13:if(E.last){$>>>=7&q,q-=7&q,E.mode=27;break}for(;q<3;){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}switch(E.last=1&$,q-=1,3&($>>>=1)){case 0:E.mode=14;break;case 1:if(S(E),E.mode=20,_!==6)break;$>>>=2,q-=2;break e;case 2:E.mode=17;break;case 3:w.msg="invalid block type",E.mode=30}$>>>=2,q-=2;break;case 14:for($>>>=7&q,q-=7&q;q<32;){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}if((65535&$)!=($>>>16^65535)){w.msg="invalid stored block lengths",E.mode=30;break}if(E.length=65535&$,q=$=0,E.mode=15,_===6)break e;case 15:E.mode=16;case 16:if(V=E.length){if(K<V&&(V=K),te<V&&(V=te),V===0)break e;p.arraySet(F,R,B,V,X),K-=V,B+=V,te-=V,X+=V,E.length-=V;break}E.mode=12;break;case 17:for(;q<14;){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}if(E.nlen=257+(31&$),$>>>=5,q-=5,E.ndist=1+(31&$),$>>>=5,q-=5,E.ncode=4+(15&$),$>>>=4,q-=4,286<E.nlen||30<E.ndist){w.msg="too many length or distance symbols",E.mode=30;break}E.have=0,E.mode=18;case 18:for(;E.have<E.ncode;){for(;q<3;){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}E.lens[de[E.have++]]=7&$,$>>>=3,q-=3}for(;E.have<19;)E.lens[de[E.have++]]=0;if(E.lencode=E.lendyn,E.lenbits=7,ce={bits:E.lenbits},oe=A(0,E.lens,0,19,E.lencode,0,E.work,ce),E.lenbits=ce.bits,oe){w.msg="invalid code lengths set",E.mode=30;break}E.have=0,E.mode=19;case 19:for(;E.have<E.nlen+E.ndist;){for(;j=(se=E.lencode[$&(1<<E.lenbits)-1])>>>16&255,ue=65535&se,!((ae=se>>>24)<=q);){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}if(ue<16)$>>>=ae,q-=ae,E.lens[E.have++]=ue;else{if(ue===16){for(ne=ae+2;q<ne;){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}if($>>>=ae,q-=ae,E.have===0){w.msg="invalid bit length repeat",E.mode=30;break}Z=E.lens[E.have-1],V=3+(3&$),$>>>=2,q-=2}else if(ue===17){for(ne=ae+3;q<ne;){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}q-=ae,Z=0,V=3+(7&($>>>=ae)),$>>>=3,q-=3}else{for(ne=ae+7;q<ne;){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}q-=ae,Z=0,V=11+(127&($>>>=ae)),$>>>=7,q-=7}if(E.have+V>E.nlen+E.ndist){w.msg="invalid bit length repeat",E.mode=30;break}for(;V--;)E.lens[E.have++]=Z}}if(E.mode===30)break;if(E.lens[256]===0){w.msg="invalid code -- missing end-of-block",E.mode=30;break}if(E.lenbits=9,ce={bits:E.lenbits},oe=A(1,E.lens,0,E.nlen,E.lencode,0,E.work,ce),E.lenbits=ce.bits,oe){w.msg="invalid literal/lengths set",E.mode=30;break}if(E.distbits=6,E.distcode=E.distdyn,ce={bits:E.distbits},oe=A(2,E.lens,E.nlen,E.ndist,E.distcode,0,E.work,ce),E.distbits=ce.bits,oe){w.msg="invalid distances set",E.mode=30;break}if(E.mode=20,_===6)break e;case 20:E.mode=21;case 21:if(6<=K&&258<=te){w.next_out=X,w.avail_out=te,w.next_in=B,w.avail_in=K,E.hold=$,E.bits=q,b(w,L),X=w.next_out,F=w.output,te=w.avail_out,B=w.next_in,R=w.input,K=w.avail_in,$=E.hold,q=E.bits,E.mode===12&&(E.back=-1);break}for(E.back=0;j=(se=E.lencode[$&(1<<E.lenbits)-1])>>>16&255,ue=65535&se,!((ae=se>>>24)<=q);){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}if(j&&(240&j)==0){for(Q=ae,P=j,H=ue;j=(se=E.lencode[H+(($&(1<<Q+P)-1)>>Q)])>>>16&255,ue=65535&se,!(Q+(ae=se>>>24)<=q);){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}$>>>=Q,q-=Q,E.back+=Q}if($>>>=ae,q-=ae,E.back+=ae,E.length=ue,j===0){E.mode=26;break}if(32&j){E.back=-1,E.mode=12;break}if(64&j){w.msg="invalid literal/length code",E.mode=30;break}E.extra=15&j,E.mode=22;case 22:if(E.extra){for(ne=E.extra;q<ne;){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}E.length+=$&(1<<E.extra)-1,$>>>=E.extra,q-=E.extra,E.back+=E.extra}E.was=E.length,E.mode=23;case 23:for(;j=(se=E.distcode[$&(1<<E.distbits)-1])>>>16&255,ue=65535&se,!((ae=se>>>24)<=q);){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}if((240&j)==0){for(Q=ae,P=j,H=ue;j=(se=E.distcode[H+(($&(1<<Q+P)-1)>>Q)])>>>16&255,ue=65535&se,!(Q+(ae=se>>>24)<=q);){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}$>>>=Q,q-=Q,E.back+=Q}if($>>>=ae,q-=ae,E.back+=ae,64&j){w.msg="invalid distance code",E.mode=30;break}E.offset=ue,E.extra=15&j,E.mode=24;case 24:if(E.extra){for(ne=E.extra;q<ne;){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}E.offset+=$&(1<<E.extra)-1,$>>>=E.extra,q-=E.extra,E.back+=E.extra}if(E.offset>E.dmax){w.msg="invalid distance too far back",E.mode=30;break}E.mode=25;case 25:if(te===0)break e;if(V=L-te,E.offset>V){if((V=E.offset-V)>E.whave&&E.sane){w.msg="invalid distance too far back",E.mode=30;break}J=V>E.wnext?(V-=E.wnext,E.wsize-V):E.wnext-V,V>E.length&&(V=E.length),re=E.window}else re=F,J=X-E.offset,V=E.length;for(te<V&&(V=te),te-=V,E.length-=V;F[X++]=re[J++],--V;);E.length===0&&(E.mode=21);break;case 26:if(te===0)break e;F[X++]=E.length,te--,E.mode=21;break;case 27:if(E.wrap){for(;q<32;){if(K===0)break e;K--,$|=R[B++]<<q,q+=8}if(L-=te,w.total_out+=L,E.total+=L,L&&(w.adler=E.check=E.flags?v(E.check,F,L,X-L):y(E.check,F,L,X-L)),L=te,(E.flags?$:M($))!==E.check){w.msg="incorrect data check",E.mode=30;break}q=$=0}E.mode=28;case 28:if(E.wrap&&E.flags){for(;q<32;){if(K===0)break e;K--,$+=R[B++]<<q,q+=8}if($!==(4294967295&E.total)){w.msg="incorrect length check",E.mode=30;break}q=$=0}E.mode=29;case 29:oe=1;break e;case 30:oe=-3;break e;case 31:return-4;case 32:default:return C}return w.next_out=X,w.avail_out=te,w.next_in=B,w.avail_in=K,E.hold=$,E.bits=q,(E.wsize||L!==w.avail_out&&E.mode<30&&(E.mode<27||_!==4))&&x(w,w.output,w.next_out,L-w.avail_out)?(E.mode=31,-4):(k-=w.avail_in,L-=w.avail_out,w.total_in+=k,w.total_out+=L,E.total+=L,E.wrap&&L&&(w.adler=E.check=E.flags?v(E.check,F,L,w.next_out-L):y(E.check,F,L,w.next_out-L)),w.data_type=E.bits+(E.last?64:0)+(E.mode===12?128:0)+(E.mode===20||E.mode===15?256:0),(k==0&&L===0||_===4)&&oe===0&&(oe=-5),oe)},m.inflateEnd=function(w){if(!w||!w.state)return C;var _=w.state;return _.window&&(_.window=null),w.state=null,0},m.inflateGetHeader=function(w,_){var E;return w&&w.state?(2&(E=w.state).wrap)==0?C:((E.head=_).done=!1,0):C},m.inflateSetDictionary=function(w,_){var E,R=_.length;return w&&w.state?(E=w.state).wrap!==0&&E.mode!==11?C:E.mode===11&&y(1,_,R,0)!==E.check?-3:x(w,_,R,R)?(E.mode=31,-4):(E.havedict=1,0):C},m.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(f,g,m){var p=f("../utils/common"),y=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],v=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],b=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],A=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];g.exports=function(C,M,z,W,U,G,ee,I){var O,T,S,x,w,_,E,R,F,B=I.bits,X=0,K=0,te=0,$=0,q=0,k=0,L=0,V=0,J=0,re=0,ae=null,j=0,ue=new p.Buf16(16),Q=new p.Buf16(16),P=null,H=0;for(X=0;X<=15;X++)ue[X]=0;for(K=0;K<W;K++)ue[M[z+K]]++;for(q=B,$=15;1<=$&&ue[$]===0;$--);if($<q&&(q=$),$===0)return U[G++]=20971520,U[G++]=20971520,I.bits=1,0;for(te=1;te<$&&ue[te]===0;te++);for(q<te&&(q=te),X=V=1;X<=15;X++)if(V<<=1,(V-=ue[X])<0)return-1;if(0<V&&(C===0||$!==1))return-1;for(Q[1]=0,X=1;X<15;X++)Q[X+1]=Q[X]+ue[X];for(K=0;K<W;K++)M[z+K]!==0&&(ee[Q[M[z+K]]++]=K);if(_=C===0?(ae=P=ee,19):C===1?(ae=y,j-=257,P=v,H-=257,256):(ae=b,P=A,-1),X=te,w=G,L=K=re=0,S=-1,x=(J=1<<(k=q))-1,C===1&&852<J||C===2&&592<J)return 1;for(;;){for(E=X-L,F=ee[K]<_?(R=0,ee[K]):ee[K]>_?(R=P[H+ee[K]],ae[j+ee[K]]):(R=96,0),O=1<<X-L,te=T=1<<k;U[w+(re>>L)+(T-=O)]=E<<24|R<<16|F|0,T!==0;);for(O=1<<X-1;re&O;)O>>=1;if(O!==0?(re&=O-1,re+=O):re=0,K++,--ue[X]==0){if(X===$)break;X=M[z+ee[K]]}if(q<X&&(re&x)!==S){for(L===0&&(L=q),w+=te,V=1<<(k=X-L);k+L<$&&!((V-=ue[k+L])<=0);)k++,V<<=1;if(J+=1<<k,C===1&&852<J||C===2&&592<J)return 1;U[S=re&x]=q<<24|k<<16|w-G|0}}return re!==0&&(U[w+re]=X-L<<24|64<<16|0),I.bits=q,0}},{"../utils/common":41}],51:[function(f,g,m){g.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(f,g,m){var p=f("../utils/common");function y(P){for(var H=P.length;0<=--H;)P[H]=0}var v=256,b=286,A=30,C=15,M=[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],z=[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],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],G=new Array(576);y(G);var ee=new Array(60);y(ee);var I=new Array(512);y(I);var O=new Array(256);y(O);var T=new Array(29);y(T);var S,x,w,_=new Array(A);function E(P,H,Z,oe,ce){this.static_tree=P,this.extra_bits=H,this.extra_base=Z,this.elems=oe,this.max_length=ce,this.has_stree=P&&P.length}function R(P,H){this.dyn_tree=P,this.max_code=0,this.stat_desc=H}function F(P){return P<256?I[P]:I[256+(P>>>7)]}function B(P,H){P.pending_buf[P.pending++]=255&H,P.pending_buf[P.pending++]=H>>>8&255}function X(P,H,Z){P.bi_valid>16-Z?(P.bi_buf|=H<<P.bi_valid&65535,B(P,P.bi_buf),P.bi_buf=H>>16-P.bi_valid,P.bi_valid+=Z-16):(P.bi_buf|=H<<P.bi_valid&65535,P.bi_valid+=Z)}function K(P,H,Z){X(P,Z[2*H],Z[2*H+1])}function te(P,H){for(var Z=0;Z|=1&P,P>>>=1,Z<<=1,0<--H;);return Z>>>1}function $(P,H,Z){var oe,ce,ne=new Array(16),se=0;for(oe=1;oe<=C;oe++)ne[oe]=se=se+Z[oe-1]<<1;for(ce=0;ce<=H;ce++){var fe=P[2*ce+1];fe!==0&&(P[2*ce]=te(ne[fe]++,fe))}}function q(P){var H;for(H=0;H<b;H++)P.dyn_ltree[2*H]=0;for(H=0;H<A;H++)P.dyn_dtree[2*H]=0;for(H=0;H<19;H++)P.bl_tree[2*H]=0;P.dyn_ltree[512]=1,P.opt_len=P.static_len=0,P.last_lit=P.matches=0}function k(P){8<P.bi_valid?B(P,P.bi_buf):0<P.bi_valid&&(P.pending_buf[P.pending++]=P.bi_buf),P.bi_buf=0,P.bi_valid=0}function L(P,H,Z,oe){var ce=2*H,ne=2*Z;return P[ce]<P[ne]||P[ce]===P[ne]&&oe[H]<=oe[Z]}function V(P,H,Z){for(var oe=P.heap[Z],ce=Z<<1;ce<=P.heap_len&&(ce<P.heap_len&&L(H,P.heap[ce+1],P.heap[ce],P.depth)&&ce++,!L(H,oe,P.heap[ce],P.depth));)P.heap[Z]=P.heap[ce],Z=ce,ce<<=1;P.heap[Z]=oe}function J(P,H,Z){var oe,ce,ne,se,fe=0;if(P.last_lit!==0)for(;oe=P.pending_buf[P.d_buf+2*fe]<<8|P.pending_buf[P.d_buf+2*fe+1],ce=P.pending_buf[P.l_buf+fe],fe++,oe===0?K(P,ce,H):(K(P,(ne=O[ce])+v+1,H),(se=M[ne])!==0&&X(P,ce-=T[ne],se),K(P,ne=F(--oe),Z),(se=z[ne])!==0&&X(P,oe-=_[ne],se)),fe<P.last_lit;);K(P,256,H)}function re(P,H){var Z,oe,ce,ne=H.dyn_tree,se=H.stat_desc.static_tree,fe=H.stat_desc.has_stree,de=H.stat_desc.elems,ve=-1;for(P.heap_len=0,P.heap_max=573,Z=0;Z<de;Z++)ne[2*Z]!==0?(P.heap[++P.heap_len]=ve=Z,P.depth[Z]=0):ne[2*Z+1]=0;for(;P.heap_len<2;)ne[2*(ce=P.heap[++P.heap_len]=ve<2?++ve:0)]=1,P.depth[ce]=0,P.opt_len--,fe&&(P.static_len-=se[2*ce+1]);for(H.max_code=ve,Z=P.heap_len>>1;1<=Z;Z--)V(P,ne,Z);for(ce=de;Z=P.heap[1],P.heap[1]=P.heap[P.heap_len--],V(P,ne,1),oe=P.heap[1],P.heap[--P.heap_max]=Z,P.heap[--P.heap_max]=oe,ne[2*ce]=ne[2*Z]+ne[2*oe],P.depth[ce]=(P.depth[Z]>=P.depth[oe]?P.depth[Z]:P.depth[oe])+1,ne[2*Z+1]=ne[2*oe+1]=ce,P.heap[1]=ce++,V(P,ne,1),2<=P.heap_len;);P.heap[--P.heap_max]=P.heap[1],function(Ee,Se){var Ne,He,qe,et,Ue,Ge,tt=Se.dyn_tree,rt=Se.max_code,lt=Se.stat_desc.static_tree,Ft=Se.stat_desc.has_stree,Wt=Se.stat_desc.extra_bits,dt=Se.stat_desc.extra_base,Pt=Se.stat_desc.max_length,xt=0;for(et=0;et<=C;et++)Ee.bl_count[et]=0;for(tt[2*Ee.heap[Ee.heap_max]+1]=0,Ne=Ee.heap_max+1;Ne<573;Ne++)Pt<(et=tt[2*tt[2*(He=Ee.heap[Ne])+1]+1]+1)&&(et=Pt,xt++),tt[2*He+1]=et,rt<He||(Ee.bl_count[et]++,Ue=0,dt<=He&&(Ue=Wt[He-dt]),Ge=tt[2*He],Ee.opt_len+=Ge*(et+Ue),Ft&&(Ee.static_len+=Ge*(lt[2*He+1]+Ue)));if(xt!==0){do{for(et=Pt-1;Ee.bl_count[et]===0;)et--;Ee.bl_count[et]--,Ee.bl_count[et+1]+=2,Ee.bl_count[Pt]--,xt-=2}while(0<xt);for(et=Pt;et!==0;et--)for(He=Ee.bl_count[et];He!==0;)rt<(qe=Ee.heap[--Ne])||(tt[2*qe+1]!==et&&(Ee.opt_len+=(et-tt[2*qe+1])*tt[2*qe],tt[2*qe+1]=et),He--)}}(P,H),$(ne,ve,P.bl_count)}function ae(P,H,Z){var oe,ce,ne=-1,se=H[1],fe=0,de=7,ve=4;for(se===0&&(de=138,ve=3),H[2*(Z+1)+1]=65535,oe=0;oe<=Z;oe++)ce=se,se=H[2*(oe+1)+1],++fe<de&&ce===se||(fe<ve?P.bl_tree[2*ce]+=fe:ce!==0?(ce!==ne&&P.bl_tree[2*ce]++,P.bl_tree[32]++):fe<=10?P.bl_tree[34]++:P.bl_tree[36]++,ne=ce,ve=(fe=0)===se?(de=138,3):ce===se?(de=6,3):(de=7,4))}function j(P,H,Z){var oe,ce,ne=-1,se=H[1],fe=0,de=7,ve=4;for(se===0&&(de=138,ve=3),oe=0;oe<=Z;oe++)if(ce=se,se=H[2*(oe+1)+1],!(++fe<de&&ce===se)){if(fe<ve)for(;K(P,ce,P.bl_tree),--fe!=0;);else ce!==0?(ce!==ne&&(K(P,ce,P.bl_tree),fe--),K(P,16,P.bl_tree),X(P,fe-3,2)):fe<=10?(K(P,17,P.bl_tree),X(P,fe-3,3)):(K(P,18,P.bl_tree),X(P,fe-11,7));ne=ce,ve=(fe=0)===se?(de=138,3):ce===se?(de=6,3):(de=7,4)}}y(_);var ue=!1;function Q(P,H,Z,oe){X(P,0+(oe?1:0),3),function(ce,ne,se,fe){k(ce),B(ce,se),B(ce,~se),p.arraySet(ce.pending_buf,ce.window,ne,se,ce.pending),ce.pending+=se}(P,H,Z)}m._tr_init=function(P){ue||(function(){var H,Z,oe,ce,ne,se=new Array(16);for(ce=oe=0;ce<28;ce++)for(T[ce]=oe,H=0;H<1<<M[ce];H++)O[oe++]=ce;for(O[oe-1]=ce,ce=ne=0;ce<16;ce++)for(_[ce]=ne,H=0;H<1<<z[ce];H++)I[ne++]=ce;for(ne>>=7;ce<A;ce++)for(_[ce]=ne<<7,H=0;H<1<<z[ce]-7;H++)I[256+ne++]=ce;for(Z=0;Z<=C;Z++)se[Z]=0;for(H=0;H<=143;)G[2*H+1]=8,H++,se[8]++;for(;H<=255;)G[2*H+1]=9,H++,se[9]++;for(;H<=279;)G[2*H+1]=7,H++,se[7]++;for(;H<=287;)G[2*H+1]=8,H++,se[8]++;for($(G,287,se),H=0;H<A;H++)ee[2*H+1]=5,ee[2*H]=te(H,5);S=new E(G,M,257,b,C),x=new E(ee,z,0,A,C),w=new E(new Array(0),W,0,19,7)}(),ue=!0),P.l_desc=new R(P.dyn_ltree,S),P.d_desc=new R(P.dyn_dtree,x),P.bl_desc=new R(P.bl_tree,w),P.bi_buf=0,P.bi_valid=0,q(P)},m._tr_stored_block=Q,m._tr_flush_block=function(P,H,Z,oe){var ce,ne,se=0;0<P.level?(P.strm.data_type===2&&(P.strm.data_type=function(fe){var de,ve=4093624447;for(de=0;de<=31;de++,ve>>>=1)if(1&ve&&fe.dyn_ltree[2*de]!==0)return 0;if(fe.dyn_ltree[18]!==0||fe.dyn_ltree[20]!==0||fe.dyn_ltree[26]!==0)return 1;for(de=32;de<v;de++)if(fe.dyn_ltree[2*de]!==0)return 1;return 0}(P)),re(P,P.l_desc),re(P,P.d_desc),se=function(fe){var de;for(ae(fe,fe.dyn_ltree,fe.l_desc.max_code),ae(fe,fe.dyn_dtree,fe.d_desc.max_code),re(fe,fe.bl_desc),de=18;3<=de&&fe.bl_tree[2*U[de]+1]===0;de--);return fe.opt_len+=3*(de+1)+5+5+4,de}(P),ce=P.opt_len+3+7>>>3,(ne=P.static_len+3+7>>>3)<=ce&&(ce=ne)):ce=ne=Z+5,Z+4<=ce&&H!==-1?Q(P,H,Z,oe):P.strategy===4||ne===ce?(X(P,2+(oe?1:0),3),J(P,G,ee)):(X(P,4+(oe?1:0),3),function(fe,de,ve,Ee){var Se;for(X(fe,de-257,5),X(fe,ve-1,5),X(fe,Ee-4,4),Se=0;Se<Ee;Se++)X(fe,fe.bl_tree[2*U[Se]+1],3);j(fe,fe.dyn_ltree,de-1),j(fe,fe.dyn_dtree,ve-1)}(P,P.l_desc.max_code+1,P.d_desc.max_code+1,se+1),J(P,P.dyn_ltree,P.dyn_dtree)),q(P),oe&&k(P)},m._tr_tally=function(P,H,Z){return P.pending_buf[P.d_buf+2*P.last_lit]=H>>>8&255,P.pending_buf[P.d_buf+2*P.last_lit+1]=255&H,P.pending_buf[P.l_buf+P.last_lit]=255&Z,P.last_lit++,H===0?P.dyn_ltree[2*Z]++:(P.matches++,H--,P.dyn_ltree[2*(O[Z]+v+1)]++,P.dyn_dtree[2*F(H)]++),P.last_lit===P.lit_bufsize-1},m._tr_align=function(P){X(P,2,3),K(P,256,G),function(H){H.bi_valid===16?(B(H,H.bi_buf),H.bi_buf=0,H.bi_valid=0):8<=H.bi_valid&&(H.pending_buf[H.pending++]=255&H.bi_buf,H.bi_buf>>=8,H.bi_valid-=8)}(P)}},{"../utils/common":41}],53:[function(f,g,m){g.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(f,g,m){(function(p){(function(y,v){if(!y.setImmediate){var b,A,C,M,z=1,W={},U=!1,G=y.document,ee=Object.getPrototypeOf&&Object.getPrototypeOf(y);ee=ee&&ee.setTimeout?ee:y,b={}.toString.call(y.process)==="[object process]"?function(S){a.nextTick(function(){O(S)})}:function(){if(y.postMessage&&!y.importScripts){var S=!0,x=y.onmessage;return y.onmessage=function(){S=!1},y.postMessage("","*"),y.onmessage=x,S}}()?(M="setImmediate$"+Math.random()+"$",y.addEventListener?y.addEventListener("message",T,!1):y.attachEvent("onmessage",T),function(S){y.postMessage(M+S,"*")}):y.MessageChannel?((C=new MessageChannel).port1.onmessage=function(S){O(S.data)},function(S){C.port2.postMessage(S)}):G&&"onreadystatechange"in G.createElement("script")?(A=G.documentElement,function(S){var x=G.createElement("script");x.onreadystatechange=function(){O(S),x.onreadystatechange=null,A.removeChild(x),x=null},A.appendChild(x)}):function(S){setTimeout(O,0,S)},ee.setImmediate=function(S){typeof S!="function"&&(S=new Function(""+S));for(var x=new Array(arguments.length-1),w=0;w<x.length;w++)x[w]=arguments[w+1];var _={callback:S,args:x};return W[z]=_,b(z),z++},ee.clearImmediate=I}function I(S){delete W[S]}function O(S){if(U)setTimeout(O,0,S);else{var x=W[S];if(x){U=!0;try{(function(w){var _=w.callback,E=w.args;switch(E.length){case 0:_();break;case 1:_(E[0]);break;case 2:_(E[0],E[1]);break;case 3:_(E[0],E[1],E[2]);break;default:_.apply(void 0,E)}})(x)}finally{I(S),U=!1}}}}function T(S){S.source===y&&typeof S.data=="string"&&S.data.indexOf(M)===0&&O(+S.data.slice(M.length))}})(typeof self=="undefined"?p===void 0?this:p:self)}).call(this,o!==void 0?o:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}).call(this)}).call(this,e("_process"),typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(e,n,i){(function(a){(function(){var o=/[\\^$.*+?()[\]{}|]/g,s=RegExp(o.source),u=typeof a=="object"&&a&&a.Object===Object&&a,c=typeof self=="object"&&self&&self.Object===Object&&self,l=u||c||Function("return this")(),d=Object.prototype.toString,h=l.Symbol,f=h?h.prototype:void 0,g=f?f.toString:void 0;function m(p){if(typeof p=="string")return p;if(function(v){return typeof v=="symbol"||function(b){return!!b&&typeof b=="object"}(v)&&d.call(v)=="[object Symbol]"}(p))return g?g.call(p):"";var y=p+"";return y=="0"&&1/p==-1/0?"-0":y}n.exports=function(p){var y;return(p=(y=p)==null?"":m(y))&&s.test(p)?p.replace(o,"\\$&"):p}}).call(this)}).call(this,typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],443:[function(e,n,i){(function(a){(function(){var o="[object Arguments]",s="[object Map]",u="[object Object]",c="[object Set]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/,h=/^\./,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,g=/\\(\\)?/g,m=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y[o]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y["[object Function]"]=y[s]=y["[object Number]"]=y[u]=y["[object RegExp]"]=y[c]=y["[object String]"]=y["[object WeakMap]"]=!1;var v=typeof a=="object"&&a&&a.Object===Object&&a,b=typeof self=="object"&&self&&self.Object===Object&&self,A=v||b||Function("return this")(),C=typeof i=="object"&&i&&!i.nodeType&&i,M=C&&typeof n=="object"&&n&&!n.nodeType&&n,z=M&&M.exports===C&&v.process,W=function(){try{return z&&z.binding("util")}catch{}}(),U=W&&W.isTypedArray;function G(be,Re,We,Ze){for(var mt=-1,nt=be?be.length:0;++mt<nt;){var it=be[mt];Re(Ze,it,We(it),be)}return Ze}function ee(be,Re){for(var We=-1,Ze=be?be.length:0;++We<Ze;)if(Re(be[We],We,be))return!0;return!1}function I(be){var Re=!1;if(be!=null&&typeof be.toString!="function")try{Re=!!(be+"")}catch{}return Re}function O(be){var Re=-1,We=Array(be.size);return be.forEach(function(Ze,mt){We[++Re]=[mt,Ze]}),We}function T(be){var Re=-1,We=Array(be.size);return be.forEach(function(Ze){We[++Re]=Ze}),We}var S,x,w,_=Array.prototype,E=Function.prototype,R=Object.prototype,F=A["__core-js_shared__"],B=(S=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",X=E.toString,K=R.hasOwnProperty,te=R.toString,$=RegExp("^"+X.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=A.Symbol,k=A.Uint8Array,L=R.propertyIsEnumerable,V=_.splice,J=(x=Object.keys,w=Object,function(be){return x(w(be))}),re=Tt(A,"DataView"),ae=Tt(A,"Map"),j=Tt(A,"Promise"),ue=Tt(A,"Set"),Q=Tt(A,"WeakMap"),P=Tt(Object,"create"),H=Ie(re),Z=Ie(ae),oe=Ie(j),ce=Ie(ue),ne=Ie(Q),se=q?q.prototype:void 0,fe=se?se.valueOf:void 0,de=se?se.toString:void 0;function ve(be){var Re=-1,We=be?be.length:0;for(this.clear();++Re<We;){var Ze=be[Re];this.set(Ze[0],Ze[1])}}function Ee(be){var Re=-1,We=be?be.length:0;for(this.clear();++Re<We;){var Ze=be[Re];this.set(Ze[0],Ze[1])}}function Se(be){var Re=-1,We=be?be.length:0;for(this.clear();++Re<We;){var Ze=be[Re];this.set(Ze[0],Ze[1])}}function Ne(be){var Re=-1,We=be?be.length:0;for(this.__data__=new Se;++Re<We;)this.add(be[Re])}function He(be){this.__data__=new Ee(be)}function qe(be,Re){var We=At(be)||Ot(be)?function(it,$t){for(var Nt=-1,Lt=Array(it);++Nt<it;)Lt[Nt]=$t(Nt);return Lt}(be.length,String):[],Ze=We.length,mt=!!Ze;for(var nt in be)!Re&&!K.call(be,nt)||mt&&(nt=="length"||rr(nt,Ze))||We.push(nt);return We}function et(be,Re){for(var We=be.length;We--;)if(st(be[We][0],Re))return We;return-1}function Ue(be,Re,We,Ze){return tt(be,function(mt,nt,it){Re(Ze,mt,We(mt),it)}),Ze}ve.prototype.clear=function(){this.__data__=P?P(null):{}},ve.prototype.delete=function(be){return this.has(be)&&delete this.__data__[be]},ve.prototype.get=function(be){var Re=this.__data__;if(P){var We=Re[be];return We==="__lodash_hash_undefined__"?void 0:We}return K.call(Re,be)?Re[be]:void 0},ve.prototype.has=function(be){var Re=this.__data__;return P?Re[be]!==void 0:K.call(Re,be)},ve.prototype.set=function(be,Re){return this.__data__[be]=P&&Re===void 0?"__lodash_hash_undefined__":Re,this},Ee.prototype.clear=function(){this.__data__=[]},Ee.prototype.delete=function(be){var Re=this.__data__,We=et(Re,be);return!(We<0)&&(We==Re.length-1?Re.pop():V.call(Re,We,1),!0)},Ee.prototype.get=function(be){var Re=this.__data__,We=et(Re,be);return We<0?void 0:Re[We][1]},Ee.prototype.has=function(be){return et(this.__data__,be)>-1},Ee.prototype.set=function(be,Re){var We=this.__data__,Ze=et(We,be);return Ze<0?We.push([be,Re]):We[Ze][1]=Re,this},Se.prototype.clear=function(){this.__data__={hash:new ve,map:new(ae||Ee),string:new ve}},Se.prototype.delete=function(be){return nr(this,be).delete(be)},Se.prototype.get=function(be){return nr(this,be).get(be)},Se.prototype.has=function(be){return nr(this,be).has(be)},Se.prototype.set=function(be,Re){return nr(this,be).set(be,Re),this},Ne.prototype.add=Ne.prototype.push=function(be){return this.__data__.set(be,"__lodash_hash_undefined__"),this},Ne.prototype.has=function(be){return this.__data__.has(be)},He.prototype.clear=function(){this.__data__=new Ee},He.prototype.delete=function(be){return this.__data__.delete(be)},He.prototype.get=function(be){return this.__data__.get(be)},He.prototype.has=function(be){return this.__data__.has(be)},He.prototype.set=function(be,Re){var We=this.__data__;if(We instanceof Ee){var Ze=We.__data__;if(!ae||Ze.length<199)return Ze.push([be,Re]),this;We=this.__data__=new Se(Ze)}return We.set(be,Re),this};var Ge,tt=(Ge=function(be,Re){return be&&rt(be,Re,Gr)},function(be,Re){if(be==null)return be;if(!vt(be))return Ge(be,Re);for(var We=be.length,Ze=-1,mt=Object(be);++Ze<We&&Re(mt[Ze],Ze,mt)!==!1;);return be}),rt=function(be){return function(Re,We,Ze){for(var mt=-1,nt=Object(Re),it=Ze(Re),$t=it.length;$t--;){var Nt=it[be?$t:++mt];if(We(nt[Nt],Nt,nt)===!1)break}return Re}}();function lt(be,Re){for(var We=0,Ze=(Re=Ct(Re,be)?[Re]:gt(Re)).length;be!=null&&We<Ze;)be=be[Ae(Re[We++])];return We&&We==Ze?be:void 0}function Ft(be,Re){return be!=null&&Re in Object(be)}function Wt(be,Re,We,Ze,mt){return be===Re||(be==null||Re==null||!Ht(be)&&!jr(Re)?be!=be&&Re!=Re:function(nt,it,$t,Nt,Lt,Et){var dr=At(nt),_r=At(it),Jt="[object Array]",Sr="[object Array]";dr||(Jt=(Jt=Kt(nt))==o?u:Jt),_r||(Sr=(Sr=Kt(it))==o?u:Sr);var Fr=Jt==u&&!I(nt),mn=Sr==u&&!I(it),Xn=Jt==Sr;if(Xn&&!Fr)return Et||(Et=new He),dr||Pr(nt)?hr(nt,it,$t,Nt,Lt,Et):function(lr,Zt,Vi,Fi,oi,gn,Er){switch(Vi){case"[object DataView]":if(lr.byteLength!=Zt.byteLength||lr.byteOffset!=Zt.byteOffset)return!1;lr=lr.buffer,Zt=Zt.buffer;case"[object ArrayBuffer]":return!(lr.byteLength!=Zt.byteLength||!Fi(new k(lr),new k(Zt)));case"[object Boolean]":case"[object Date]":case"[object Number]":return st(+lr,+Zt);case"[object Error]":return lr.name==Zt.name&&lr.message==Zt.message;case"[object RegExp]":case"[object String]":return lr==Zt+"";case s:var xn=O;case c:var Ca=2&gn;if(xn||(xn=T),lr.size!=Zt.size&&!Ca)return!1;var ko=Er.get(lr);if(ko)return ko==Zt;gn|=1,Er.set(lr,Zt);var qi=hr(xn(lr),xn(Zt),Fi,oi,gn,Er);return Er.delete(lr),qi;case"[object Symbol]":if(fe)return fe.call(lr)==fe.call(Zt)}return!1}(nt,it,Jt,$t,Nt,Lt,Et);if(!(2&Lt)){var jn=Fr&&K.call(nt,"__wrapped__"),ca=mn&&K.call(it,"__wrapped__");if(jn||ca){var Da=jn?nt.value():nt,la=ca?it.value():it;return Et||(Et=new He),$t(Da,la,Nt,Lt,Et)}}return Xn?(Et||(Et=new He),function(lr,Zt,Vi,Fi,oi,gn){var Er=2&oi,xn=Gr(lr),Ca=xn.length,ko=Gr(Zt).length;if(Ca!=ko&&!Er)return!1;for(var qi=Ca;qi--;){var Ni=xn[qi];if(!(Er?Ni in Zt:K.call(Zt,Ni)))return!1}var fs=gn.get(lr);if(fs&&gn.get(Zt))return fs==Zt;var Qa=!0;gn.set(lr,Zt),gn.set(Zt,lr);for(var hs=Er;++qi<Ca;){Ni=xn[qi];var Oa=lr[Ni],Ro=Zt[Ni];if(Fi)var ds=Er?Fi(Ro,Oa,Ni,Zt,lr,gn):Fi(Oa,Ro,Ni,lr,Zt,gn);if(!(ds===void 0?Oa===Ro||Vi(Oa,Ro,Fi,oi,gn):ds)){Qa=!1;break}hs||(hs=Ni=="constructor")}if(Qa&&!hs){var eo=lr.constructor,Fo=Zt.constructor;eo==Fo||!("constructor"in lr)||!("constructor"in Zt)||typeof eo=="function"&&eo instanceof eo&&typeof Fo=="function"&&Fo instanceof Fo||(Qa=!1)}return gn.delete(lr),gn.delete(Zt),Qa}(nt,it,$t,Nt,Lt,Et)):!1}(be,Re,Wt,We,Ze,mt))}function dt(be){return!(!Ht(be)||function(Re){return!!B&&B in Re}(be))&&(St(be)||I(be)?$:m).test(Ie(be))}function Pt(be){return typeof be=="function"?be:be==null?Xr:typeof be=="object"?At(be)?function(Ze,mt){return Ct(Ze)&&ir(mt)?ar(Ae(Ze),mt):function(nt){var it=function($t,Nt,Lt){var Et=$t==null?void 0:lt($t,Nt);return Et===void 0?Lt:Et}(nt,Ze);return it===void 0&&it===mt?function($t,Nt){return $t!=null&&function(Lt,Et,dr){Et=Ct(Et,Lt)?[Et]:gt(Et);for(var _r,Jt=-1,Sr=Et.length;++Jt<Sr;){var Fr=Ae(Et[Jt]);if(!(_r=Lt!=null&&dr(Lt,Fr)))break;Lt=Lt[Fr]}return _r||!!(Sr=Lt?Lt.length:0)&&Dt(Sr)&&rr(Fr,Sr)&&(At(Lt)||Ot(Lt))}($t,Nt,Ft)}(nt,Ze):Wt(mt,it,void 0,3)}}(be[0],be[1]):function(Ze){var mt=function(nt){for(var it=Gr(nt),$t=it.length;$t--;){var Nt=it[$t],Lt=nt[Nt];it[$t]=[Nt,Lt,ir(Lt)]}return it}(Ze);return mt.length==1&&mt[0][2]?ar(mt[0][0],mt[0][1]):function(nt){return nt===Ze||function(it,$t,Nt,Lt){var Et=Nt.length,dr=Et,_r=!Lt;if(it==null)return!dr;for(it=Object(it);Et--;){var Jt=Nt[Et];if(_r&&Jt[2]?Jt[1]!==it[Jt[0]]:!(Jt[0]in it))return!1}for(;++Et<dr;){var Sr=(Jt=Nt[Et])[0],Fr=it[Sr],mn=Jt[1];if(_r&&Jt[2]){if(Fr===void 0&&!(Sr in it))return!1}else{var Xn=new He;if(Lt)var jn=Lt(Fr,mn,Sr,it,$t,Xn);if(!(jn===void 0?Wt(mn,Fr,Lt,3,Xn):jn))return!1}}return!0}(nt,Ze,mt)}}(be):Ct(Re=be)?(We=Ae(Re),function(Ze){return Ze==null?void 0:Ze[We]}):function(Ze){return function(mt){return lt(mt,Ze)}}(Re);var Re,We}function xt(be){if(We=(Re=be)&&Re.constructor,Ze=typeof We=="function"&&We.prototype||R,Re!==Ze)return J(be);var Re,We,Ze,mt=[];for(var nt in Object(be))K.call(be,nt)&&nt!="constructor"&&mt.push(nt);return mt}function gt(be){return At(be)?be:kt(be)}function hr(be,Re,We,Ze,mt,nt){var it=2&mt,$t=be.length,Nt=Re.length;if($t!=Nt&&!(it&&Nt>$t))return!1;var Lt=nt.get(be);if(Lt&&nt.get(Re))return Lt==Re;var Et=-1,dr=!0,_r=1&mt?new Ne:void 0;for(nt.set(be,Re),nt.set(Re,be);++Et<$t;){var Jt=be[Et],Sr=Re[Et];if(Ze)var Fr=it?Ze(Sr,Jt,Et,Re,be,nt):Ze(Jt,Sr,Et,be,Re,nt);if(Fr!==void 0){if(Fr)continue;dr=!1;break}if(_r){if(!ee(Re,function(mn,Xn){if(!_r.has(Xn)&&(Jt===mn||We(Jt,mn,Ze,mt,nt)))return _r.add(Xn)})){dr=!1;break}}else if(Jt!==Sr&&!We(Jt,Sr,Ze,mt,nt)){dr=!1;break}}return nt.delete(be),nt.delete(Re),dr}function nr(be,Re){var We,Ze,mt=be.__data__;return((Ze=typeof(We=Re))=="string"||Ze=="number"||Ze=="symbol"||Ze=="boolean"?We!=="__proto__":We===null)?mt[typeof Re=="string"?"string":"hash"]:mt.map}function Tt(be,Re){var We=function(Ze,mt){return Ze==null?void 0:Ze[mt]}(be,Re);return dt(We)?We:void 0}var Kt=function(be){return te.call(be)};function rr(be,Re){return!!(Re=Re==null?9007199254740991:Re)&&(typeof be=="number"||p.test(be))&&be>-1&&be%1==0&&be<Re}function Ct(be,Re){if(At(be))return!1;var We=typeof be;return!(We!="number"&&We!="symbol"&&We!="boolean"&&be!=null&&!gr(be))||d.test(be)||!l.test(be)||Re!=null&&be in Object(Re)}function ir(be){return be==be&&!Ht(be)}function ar(be,Re){return function(We){return We!=null&&We[be]===Re&&(Re!==void 0||be in Object(We))}}(re&&Kt(new re(new ArrayBuffer(1)))!="[object DataView]"||ae&&Kt(new ae)!=s||j&&Kt(j.resolve())!="[object Promise]"||ue&&Kt(new ue)!=c||Q&&Kt(new Q)!="[object WeakMap]")&&(Kt=function(be){var Re=te.call(be),We=Re==u?be.constructor:void 0,Ze=We?Ie(We):void 0;if(Ze)switch(Ze){case H:return"[object DataView]";case Z:return s;case oe:return"[object Promise]";case ce:return c;case ne:return"[object WeakMap]"}return Re});var kt=_t(function(be){var Re;be=(Re=be)==null?"":function(Ze){if(typeof Ze=="string")return Ze;if(gr(Ze))return de?de.call(Ze):"";var mt=Ze+"";return mt=="0"&&1/Ze==-1/0?"-0":mt}(Re);var We=[];return h.test(be)&&We.push(""),be.replace(f,function(Ze,mt,nt,it){We.push(nt?it.replace(g,"$1"):mt||Ze)}),We});function Ae(be){if(typeof be=="string"||gr(be))return be;var Re=be+"";return Re=="0"&&1/be==-1/0?"-0":Re}function Ie(be){if(be!=null){try{return X.call(be)}catch{}try{return be+""}catch{}}return""}var je,at=(je=function(be,Re,We){K.call(be,We)?be[We].push(Re):be[We]=[Re]},function(be,Re){var We=At(be)?G:Ue,Ze={};return We(be,je,Pt(Re),Ze)});function _t(be,Re){if(typeof be!="function"||Re&&typeof Re!="function")throw new TypeError("Expected a function");var We=function(){var Ze=arguments,mt=Re?Re.apply(this,Ze):Ze[0],nt=We.cache;if(nt.has(mt))return nt.get(mt);var it=be.apply(this,Ze);return We.cache=nt.set(mt,it),it};return We.cache=new(_t.Cache||Se),We}function st(be,Re){return be===Re||be!=be&&Re!=Re}function Ot(be){return function(Re){return jr(Re)&&vt(Re)}(be)&&K.call(be,"callee")&&(!L.call(be,"callee")||te.call(be)==o)}_t.Cache=Se;var At=Array.isArray;function vt(be){return be!=null&&Dt(be.length)&&!St(be)}function St(be){var Re=Ht(be)?te.call(be):"";return Re=="[object Function]"||Re=="[object GeneratorFunction]"}function Dt(be){return typeof be=="number"&&be>-1&&be%1==0&&be<=9007199254740991}function Ht(be){var Re=typeof be;return!!be&&(Re=="object"||Re=="function")}function jr(be){return!!be&&typeof be=="object"}function gr(be){return typeof be=="symbol"||jr(be)&&te.call(be)=="[object Symbol]"}var Pr=U?function(be){return function(Re){return be(Re)}}(U):function(be){return jr(be)&&Dt(be.length)&&!!y[te.call(be)]};function Gr(be){return vt(be)?qe(be):xt(be)}function Xr(be){return be}n.exports=at}).call(this)}).call(this,typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],444:[function(e,n,i){var a=Object.prototype.toString;n.exports=function(o){return o===!0||o===!1||function(s){return!!s&&typeof s=="object"}(o)&&a.call(o)=="[object Boolean]"}},{}],445:[function(e,n,i){(function(a){(function(){var o="[object Arguments]",s="[object Map]",u="[object Object]",c="[object Set]",l=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[o]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h["[object Function]"]=h[s]=h["[object Number]"]=h[u]=h["[object RegExp]"]=h[c]=h["[object String]"]=h["[object WeakMap]"]=!1;var f=typeof a=="object"&&a&&a.Object===Object&&a,g=typeof self=="object"&&self&&self.Object===Object&&self,m=f||g||Function("return this")(),p=typeof i=="object"&&i&&!i.nodeType&&i,y=p&&typeof n=="object"&&n&&!n.nodeType&&n,v=y&&y.exports===p,b=v&&f.process,A=function(){try{return b&&b.binding&&b.binding("util")}catch{}}(),C=A&&A.isTypedArray;function M(Ae,Ie){for(var je=-1,at=Ae==null?0:Ae.length;++je<at;)if(Ie(Ae[je],je,Ae))return!0;return!1}function z(Ae){var Ie=-1,je=Array(Ae.size);return Ae.forEach(function(at,_t){je[++Ie]=[_t,at]}),je}function W(Ae){var Ie=-1,je=Array(Ae.size);return Ae.forEach(function(at){je[++Ie]=at}),je}var U,G,ee,I=Array.prototype,O=Function.prototype,T=Object.prototype,S=m["__core-js_shared__"],x=O.toString,w=T.hasOwnProperty,_=(U=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+U:"",E=T.toString,R=RegExp("^"+x.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),F=v?m.Buffer:void 0,B=m.Symbol,X=m.Uint8Array,K=T.propertyIsEnumerable,te=I.splice,$=B?B.toStringTag:void 0,q=Object.getOwnPropertySymbols,k=F?F.isBuffer:void 0,L=(G=Object.keys,ee=Object,function(Ae){return G(ee(Ae))}),V=Ft(m,"DataView"),J=Ft(m,"Map"),re=Ft(m,"Promise"),ae=Ft(m,"Set"),j=Ft(m,"WeakMap"),ue=Ft(Object,"create"),Q=xt(V),P=xt(J),H=xt(re),Z=xt(ae),oe=xt(j),ce=B?B.prototype:void 0,ne=ce?ce.valueOf:void 0;function se(Ae){var Ie=-1,je=Ae==null?0:Ae.length;for(this.clear();++Ie<je;){var at=Ae[Ie];this.set(at[0],at[1])}}function fe(Ae){var Ie=-1,je=Ae==null?0:Ae.length;for(this.clear();++Ie<je;){var at=Ae[Ie];this.set(at[0],at[1])}}function de(Ae){var Ie=-1,je=Ae==null?0:Ae.length;for(this.clear();++Ie<je;){var at=Ae[Ie];this.set(at[0],at[1])}}function ve(Ae){var Ie=-1,je=Ae==null?0:Ae.length;for(this.__data__=new de;++Ie<je;)this.add(Ae[Ie])}function Ee(Ae){var Ie=this.__data__=new fe(Ae);this.size=Ie.size}function Se(Ae,Ie){var je=nr(Ae),at=!je&&hr(Ae),_t=!je&&!at&&Tt(Ae),st=!je&&!at&&!_t&&ar(Ae),Ot=je||at||_t||st,At=Ot?function(Dt,Ht){for(var jr=-1,gr=Array(Dt);++jr<Dt;)gr[jr]=Ht(jr);return gr}(Ae.length,String):[],vt=At.length;for(var St in Ae)!Ie&&!w.call(Ae,St)||Ot&&(St=="length"||_t&&(St=="offset"||St=="parent")||st&&(St=="buffer"||St=="byteLength"||St=="byteOffset")||Pt(St,vt))||At.push(St);return At}function Ne(Ae,Ie){for(var je=Ae.length;je--;)if(gt(Ae[je][0],Ie))return je;return-1}function He(Ae){return Ae==null?Ae===void 0?"[object Undefined]":"[object Null]":$&&$ in Object(Ae)?function(Ie){var je=w.call(Ie,$),at=Ie[$];try{Ie[$]=void 0;var _t=!0}catch{}var st=E.call(Ie);return _t&&(je?Ie[$]=at:delete Ie[$]),st}(Ae):function(Ie){return E.call(Ie)}(Ae)}function qe(Ae){return ir(Ae)&&He(Ae)==o}function et(Ae,Ie,je,at,_t){return Ae===Ie||(Ae==null||Ie==null||!ir(Ae)&&!ir(Ie)?Ae!=Ae&&Ie!=Ie:function(st,Ot,At,vt,St,Dt){var Ht=nr(st),jr=nr(Ot),gr=Ht?"[object Array]":dt(st),Pr=jr?"[object Array]":dt(Ot),Gr=(gr=gr==o?u:gr)==u,Xr=(Pr=Pr==o?u:Pr)==u,be=gr==Pr;if(be&&Tt(st)){if(!Tt(Ot))return!1;Ht=!0,Gr=!1}if(be&&!Gr)return Dt||(Dt=new Ee),Ht||ar(st)?tt(st,Ot,At,vt,St,Dt):function(nt,it,$t,Nt,Lt,Et,dr){switch($t){case"[object DataView]":if(nt.byteLength!=it.byteLength||nt.byteOffset!=it.byteOffset)return!1;nt=nt.buffer,it=it.buffer;case"[object ArrayBuffer]":return!(nt.byteLength!=it.byteLength||!Et(new X(nt),new X(it)));case"[object Boolean]":case"[object Date]":case"[object Number]":return gt(+nt,+it);case"[object Error]":return nt.name==it.name&&nt.message==it.message;case"[object RegExp]":case"[object String]":return nt==it+"";case s:var _r=z;case c:var Jt=1&Nt;if(_r||(_r=W),nt.size!=it.size&&!Jt)return!1;var Sr=dr.get(nt);if(Sr)return Sr==it;Nt|=2,dr.set(nt,it);var Fr=tt(_r(nt),_r(it),Nt,Lt,Et,dr);return dr.delete(nt),Fr;case"[object Symbol]":if(ne)return ne.call(nt)==ne.call(it)}return!1}(st,Ot,gr,At,vt,St,Dt);if(!(1&At)){var Re=Gr&&w.call(st,"__wrapped__"),We=Xr&&w.call(Ot,"__wrapped__");if(Re||We){var Ze=Re?st.value():st,mt=We?Ot.value():Ot;return Dt||(Dt=new Ee),St(Ze,mt,At,vt,Dt)}}return be?(Dt||(Dt=new Ee),function(nt,it,$t,Nt,Lt,Et){var dr=1&$t,_r=rt(nt),Jt=_r.length,Sr=rt(it).length;if(Jt!=Sr&&!dr)return!1;for(var Fr=Jt;Fr--;){var mn=_r[Fr];if(!(dr?mn in it:w.call(it,mn)))return!1}var Xn=Et.get(nt);if(Xn&&Et.get(it))return Xn==it;var jn=!0;Et.set(nt,it),Et.set(it,nt);for(var ca=dr;++Fr<Jt;){mn=_r[Fr];var Da=nt[mn],la=it[mn];if(Nt)var lr=dr?Nt(la,Da,mn,it,nt,Et):Nt(Da,la,mn,nt,it,Et);if(!(lr===void 0?Da===la||Lt(Da,la,$t,Nt,Et):lr)){jn=!1;break}ca||(ca=mn=="constructor")}if(jn&&!ca){var Zt=nt.constructor,Vi=it.constructor;Zt==Vi||!("constructor"in nt)||!("constructor"in it)||typeof Zt=="function"&&Zt instanceof Zt&&typeof Vi=="function"&&Vi instanceof Vi||(jn=!1)}return Et.delete(nt),Et.delete(it),jn}(st,Ot,At,vt,St,Dt)):!1}(Ae,Ie,je,at,et,_t))}function Ue(Ae){return!(!Ct(Ae)||function(Ie){return!!_&&_ in Ie}(Ae))&&(Kt(Ae)?R:l).test(xt(Ae))}function Ge(Ae){if(je=(Ie=Ae)&&Ie.constructor,at=typeof je=="function"&&je.prototype||T,Ie!==at)return L(Ae);var Ie,je,at,_t=[];for(var st in Object(Ae))w.call(Ae,st)&&st!="constructor"&&_t.push(st);return _t}function tt(Ae,Ie,je,at,_t,st){var Ot=1&je,At=Ae.length,vt=Ie.length;if(At!=vt&&!(Ot&&vt>At))return!1;var St=st.get(Ae);if(St&&st.get(Ie))return St==Ie;var Dt=-1,Ht=!0,jr=2&je?new ve:void 0;for(st.set(Ae,Ie),st.set(Ie,Ae);++Dt<At;){var gr=Ae[Dt],Pr=Ie[Dt];if(at)var Gr=Ot?at(Pr,gr,Dt,Ie,Ae,st):at(gr,Pr,Dt,Ae,Ie,st);if(Gr!==void 0){if(Gr)continue;Ht=!1;break}if(jr){if(!M(Ie,function(Xr,be){if(Re=be,!jr.has(Re)&&(gr===Xr||_t(gr,Xr,je,at,st)))return jr.push(be);var Re})){Ht=!1;break}}else if(gr!==Pr&&!_t(gr,Pr,je,at,st)){Ht=!1;break}}return st.delete(Ae),st.delete(Ie),Ht}function rt(Ae){return function(Ie,je,at){var _t=je(Ie);return nr(Ie)?_t:function(st,Ot){for(var At=-1,vt=Ot.length,St=st.length;++At<vt;)st[St+At]=Ot[At];return st}(_t,at(Ie))}(Ae,kt,Wt)}function lt(Ae,Ie){var je,at,_t=Ae.__data__;return((at=typeof(je=Ie))=="string"||at=="number"||at=="symbol"||at=="boolean"?je!=="__proto__":je===null)?_t[typeof Ie=="string"?"string":"hash"]:_t.map}function Ft(Ae,Ie){var je=function(at,_t){return at==null?void 0:at[_t]}(Ae,Ie);return Ue(je)?je:void 0}se.prototype.clear=function(){this.__data__=ue?ue(null):{},this.size=0},se.prototype.delete=function(Ae){var Ie=this.has(Ae)&&delete this.__data__[Ae];return this.size-=Ie?1:0,Ie},se.prototype.get=function(Ae){var Ie=this.__data__;if(ue){var je=Ie[Ae];return je==="__lodash_hash_undefined__"?void 0:je}return w.call(Ie,Ae)?Ie[Ae]:void 0},se.prototype.has=function(Ae){var Ie=this.__data__;return ue?Ie[Ae]!==void 0:w.call(Ie,Ae)},se.prototype.set=function(Ae,Ie){var je=this.__data__;return this.size+=this.has(Ae)?0:1,je[Ae]=ue&&Ie===void 0?"__lodash_hash_undefined__":Ie,this},fe.prototype.clear=function(){this.__data__=[],this.size=0},fe.prototype.delete=function(Ae){var Ie=this.__data__,je=Ne(Ie,Ae);return!(je<0)&&(je==Ie.length-1?Ie.pop():te.call(Ie,je,1),--this.size,!0)},fe.prototype.get=function(Ae){var Ie=this.__data__,je=Ne(Ie,Ae);return je<0?void 0:Ie[je][1]},fe.prototype.has=function(Ae){return Ne(this.__data__,Ae)>-1},fe.prototype.set=function(Ae,Ie){var je=this.__data__,at=Ne(je,Ae);return at<0?(++this.size,je.push([Ae,Ie])):je[at][1]=Ie,this},de.prototype.clear=function(){this.size=0,this.__data__={hash:new se,map:new(J||fe),string:new se}},de.prototype.delete=function(Ae){var Ie=lt(this,Ae).delete(Ae);return this.size-=Ie?1:0,Ie},de.prototype.get=function(Ae){return lt(this,Ae).get(Ae)},de.prototype.has=function(Ae){return lt(this,Ae).has(Ae)},de.prototype.set=function(Ae,Ie){var je=lt(this,Ae),at=je.size;return je.set(Ae,Ie),this.size+=je.size==at?0:1,this},ve.prototype.add=ve.prototype.push=function(Ae){return this.__data__.set(Ae,"__lodash_hash_undefined__"),this},ve.prototype.has=function(Ae){return this.__data__.has(Ae)},Ee.prototype.clear=function(){this.__data__=new fe,this.size=0},Ee.prototype.delete=function(Ae){var Ie=this.__data__,je=Ie.delete(Ae);return this.size=Ie.size,je},Ee.prototype.get=function(Ae){return this.__data__.get(Ae)},Ee.prototype.has=function(Ae){return this.__data__.has(Ae)},Ee.prototype.set=function(Ae,Ie){var je=this.__data__;if(je instanceof fe){var at=je.__data__;if(!J||at.length<199)return at.push([Ae,Ie]),this.size=++je.size,this;je=this.__data__=new de(at)}return je.set(Ae,Ie),this.size=je.size,this};var Wt=q?function(Ae){return Ae==null?[]:(Ae=Object(Ae),function(Ie,je){for(var at=-1,_t=Ie==null?0:Ie.length,st=0,Ot=[];++at<_t;){var At=Ie[at];je(At,at,Ie)&&(Ot[st++]=At)}return Ot}(q(Ae),function(Ie){return K.call(Ae,Ie)}))}:function(){return[]},dt=He;function Pt(Ae,Ie){return!!(Ie=Ie==null?9007199254740991:Ie)&&(typeof Ae=="number"||d.test(Ae))&&Ae>-1&&Ae%1==0&&Ae<Ie}function xt(Ae){if(Ae!=null){try{return x.call(Ae)}catch{}try{return Ae+""}catch{}}return""}function gt(Ae,Ie){return Ae===Ie||Ae!=Ae&&Ie!=Ie}(V&&dt(new V(new ArrayBuffer(1)))!="[object DataView]"||J&&dt(new J)!=s||re&&dt(re.resolve())!="[object Promise]"||ae&&dt(new ae)!=c||j&&dt(new j)!="[object WeakMap]")&&(dt=function(Ae){var Ie=He(Ae),je=Ie==u?Ae.constructor:void 0,at=je?xt(je):"";if(at)switch(at){case Q:return"[object DataView]";case P:return s;case H:return"[object Promise]";case Z:return c;case oe:return"[object WeakMap]"}return Ie});var hr=qe(function(){return arguments}())?qe:function(Ae){return ir(Ae)&&w.call(Ae,"callee")&&!K.call(Ae,"callee")},nr=Array.isArray,Tt=k||function(){return!1};function Kt(Ae){if(!Ct(Ae))return!1;var Ie=He(Ae);return Ie=="[object Function]"||Ie=="[object GeneratorFunction]"||Ie=="[object AsyncFunction]"||Ie=="[object Proxy]"}function rr(Ae){return typeof Ae=="number"&&Ae>-1&&Ae%1==0&&Ae<=9007199254740991}function Ct(Ae){var Ie=typeof Ae;return Ae!=null&&(Ie=="object"||Ie=="function")}function ir(Ae){return Ae!=null&&typeof Ae=="object"}var ar=C?function(Ae){return function(Ie){return Ae(Ie)}}(C):function(Ae){return ir(Ae)&&rr(Ae.length)&&!!h[He(Ae)]};function kt(Ae){return(Ie=Ae)!=null&&rr(Ie.length)&&!Kt(Ie)?Se(Ae):Ge(Ae);var Ie}n.exports=function(Ae,Ie){return et(Ae,Ie)}}).call(this)}).call(this,typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],446:[function(e,n,i){(function(a){(function(){var o=typeof a=="object"&&a&&a.Object===Object&&a,s=typeof self=="object"&&self&&self.Object===Object&&self,u=o||s||Function("return this")(),c=Object.prototype,l=c.hasOwnProperty,d=c.toString,h=u.Symbol,f=h?h.toStringTag:void 0;function g(m){return m==null?m===void 0?"[object Undefined]":"[object Null]":f&&f in Object(m)?function(p){var y=l.call(p,f),v=p[f];try{p[f]=void 0;var b=!0}catch{}var A=d.call(p);return b&&(y?p[f]=v:delete p[f]),A}(m):function(p){return d.call(p)}(m)}n.exports=function(m){if(!function(y){var v=typeof y;return y!=null&&(v=="object"||v=="function")}(m))return!1;var p=g(m);return p=="[object Function]"||p=="[object GeneratorFunction]"||p=="[object AsyncFunction]"||p=="[object Proxy]"}}).call(this)}).call(this,typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],447:[function(e,n,i){n.exports=function(a){return a==null}},{}],448:[function(e,n,i){n.exports=function(a){return a===void 0}},{}],449:[function(e,n,i){(function(a){(function(){var o=/^\[object .+?Constructor\]$/,s=typeof a=="object"&&a&&a.Object===Object&&a,u=typeof self=="object"&&self&&self.Object===Object&&self,c=s||u||Function("return this")();function l(X,K){return!!(X?X.length:0)&&function(te,$,q){if($!=$)return function(V,J,re,ae){for(var j=V.length,ue=re+(ae?1:-1);ae?ue--:++ue<j;)if(J(V[ue],ue,V))return ue;return-1}(te,h,q);for(var k=q-1,L=te.length;++k<L;)if(te[k]===$)return k;return-1}(X,K,0)>-1}function d(X,K,te){for(var $=-1,q=X?X.length:0;++$<q;)if(te(K,X[$]))return!0;return!1}function h(X){return X!=X}function f(X,K){return X.has(K)}function g(X){var K=-1,te=Array(X.size);return X.forEach(function($){te[++K]=$}),te}var m,p=Array.prototype,y=Function.prototype,v=Object.prototype,b=c["__core-js_shared__"],A=(m=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"",C=y.toString,M=v.hasOwnProperty,z=v.toString,W=RegExp("^"+C.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U=p.splice,G=F(c,"Map"),ee=F(c,"Set"),I=F(Object,"create");function O(X){var K=-1,te=X?X.length:0;for(this.clear();++K<te;){var $=X[K];this.set($[0],$[1])}}function T(X){var K=-1,te=X?X.length:0;for(this.clear();++K<te;){var $=X[K];this.set($[0],$[1])}}function S(X){var K=-1,te=X?X.length:0;for(this.clear();++K<te;){var $=X[K];this.set($[0],$[1])}}function x(X){var K=-1,te=X?X.length:0;for(this.__data__=new S;++K<te;)this.add(X[K])}function w(X,K){for(var te,$,q=X.length;q--;)if((te=X[q][0])===($=K)||te!=te&&$!=$)return q;return-1}function _(X){return!(!B(X)||(K=X,A&&A in K))&&(function(te){var $=B(te)?z.call(te):"";return $=="[object Function]"||$=="[object GeneratorFunction]"}(X)||function(te){var $=!1;if(te!=null&&typeof te.toString!="function")try{$=!!(te+"")}catch{}return $}(X)?W:o).test(function(te){if(te!=null){try{return C.call(te)}catch{}try{return te+""}catch{}}return""}(X));var K}O.prototype.clear=function(){this.__data__=I?I(null):{}},O.prototype.delete=function(X){return this.has(X)&&delete this.__data__[X]},O.prototype.get=function(X){var K=this.__data__;if(I){var te=K[X];return te==="__lodash_hash_undefined__"?void 0:te}return M.call(K,X)?K[X]:void 0},O.prototype.has=function(X){var K=this.__data__;return I?K[X]!==void 0:M.call(K,X)},O.prototype.set=function(X,K){return this.__data__[X]=I&&K===void 0?"__lodash_hash_undefined__":K,this},T.prototype.clear=function(){this.__data__=[]},T.prototype.delete=function(X){var K=this.__data__,te=w(K,X);return!(te<0)&&(te==K.length-1?K.pop():U.call(K,te,1),!0)},T.prototype.get=function(X){var K=this.__data__,te=w(K,X);return te<0?void 0:K[te][1]},T.prototype.has=function(X){return w(this.__data__,X)>-1},T.prototype.set=function(X,K){var te=this.__data__,$=w(te,X);return $<0?te.push([X,K]):te[$][1]=K,this},S.prototype.clear=function(){this.__data__={hash:new O,map:new(G||T),string:new O}},S.prototype.delete=function(X){return R(this,X).delete(X)},S.prototype.get=function(X){return R(this,X).get(X)},S.prototype.has=function(X){return R(this,X).has(X)},S.prototype.set=function(X,K){return R(this,X).set(X,K),this},x.prototype.add=x.prototype.push=function(X){return this.__data__.set(X,"__lodash_hash_undefined__"),this},x.prototype.has=function(X){return this.__data__.has(X)};var E=ee&&1/g(new ee([,-0]))[1]==1/0?function(X){return new ee(X)}:function(){};function R(X,K){var te,$,q=X.__data__;return(($=typeof(te=K))=="string"||$=="number"||$=="symbol"||$=="boolean"?te!=="__proto__":te===null)?q[typeof K=="string"?"string":"hash"]:q.map}function F(X,K){var te=function($,q){return $==null?void 0:$[q]}(X,K);return _(te)?te:void 0}function B(X){var K=typeof X;return!!X&&(K=="object"||K=="function")}n.exports=function(X){return X&&X.length?function(K,te,$){var q=-1,k=l,L=K.length,V=!0,J=[],re=J;if($)V=!1,k=d;else if(L>=200){var ae=te?null:E(K);if(ae)return g(ae);V=!1,k=f,re=new x}else re=te?[]:J;e:for(;++q<L;){var j=K[q],ue=te?te(j):j;if(j=$||j!==0?j:0,V&&ue==ue){for(var Q=re.length;Q--;)if(re[Q]===ue)continue e;te&&re.push(ue),J.push(j)}else k(re,ue,$)||(re!==J&&re.push(ue),J.push(j))}return J}(X):[]}}).call(this)}).call(this,typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],450:[function(e,n,i){var a=e("inherits"),o=e("hash-base"),s=e("safe-buffer").Buffer,u=new Array(16);function c(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(m,p){return m<<p|m>>>32-p}function d(m,p,y,v,b,A,C){return l(m+(p&y|~p&v)+b+A|0,C)+p|0}function h(m,p,y,v,b,A,C){return l(m+(p&v|y&~v)+b+A|0,C)+p|0}function f(m,p,y,v,b,A,C){return l(m+(p^y^v)+b+A|0,C)+p|0}function g(m,p,y,v,b,A,C){return l(m+(y^(p|~v))+b+A|0,C)+p|0}a(c,o),c.prototype._update=function(){for(var m=u,p=0;p<16;++p)m[p]=this._block.readInt32LE(4*p);var y=this._a,v=this._b,b=this._c,A=this._d;y=d(y,v,b,A,m[0],3614090360,7),A=d(A,y,v,b,m[1],3905402710,12),b=d(b,A,y,v,m[2],606105819,17),v=d(v,b,A,y,m[3],3250441966,22),y=d(y,v,b,A,m[4],4118548399,7),A=d(A,y,v,b,m[5],1200080426,12),b=d(b,A,y,v,m[6],2821735955,17),v=d(v,b,A,y,m[7],4249261313,22),y=d(y,v,b,A,m[8],1770035416,7),A=d(A,y,v,b,m[9],2336552879,12),b=d(b,A,y,v,m[10],4294925233,17),v=d(v,b,A,y,m[11],2304563134,22),y=d(y,v,b,A,m[12],1804603682,7),A=d(A,y,v,b,m[13],4254626195,12),b=d(b,A,y,v,m[14],2792965006,17),y=h(y,v=d(v,b,A,y,m[15],1236535329,22),b,A,m[1],4129170786,5),A=h(A,y,v,b,m[6],3225465664,9),b=h(b,A,y,v,m[11],643717713,14),v=h(v,b,A,y,m[0],3921069994,20),y=h(y,v,b,A,m[5],3593408605,5),A=h(A,y,v,b,m[10],38016083,9),b=h(b,A,y,v,m[15],3634488961,14),v=h(v,b,A,y,m[4],3889429448,20),y=h(y,v,b,A,m[9],568446438,5),A=h(A,y,v,b,m[14],3275163606,9),b=h(b,A,y,v,m[3],4107603335,14),v=h(v,b,A,y,m[8],1163531501,20),y=h(y,v,b,A,m[13],2850285829,5),A=h(A,y,v,b,m[2],4243563512,9),b=h(b,A,y,v,m[7],1735328473,14),y=f(y,v=h(v,b,A,y,m[12],2368359562,20),b,A,m[5],4294588738,4),A=f(A,y,v,b,m[8],2272392833,11),b=f(b,A,y,v,m[11],1839030562,16),v=f(v,b,A,y,m[14],4259657740,23),y=f(y,v,b,A,m[1],2763975236,4),A=f(A,y,v,b,m[4],1272893353,11),b=f(b,A,y,v,m[7],4139469664,16),v=f(v,b,A,y,m[10],3200236656,23),y=f(y,v,b,A,m[13],681279174,4),A=f(A,y,v,b,m[0],3936430074,11),b=f(b,A,y,v,m[3],3572445317,16),v=f(v,b,A,y,m[6],76029189,23),y=f(y,v,b,A,m[9],3654602809,4),A=f(A,y,v,b,m[12],3873151461,11),b=f(b,A,y,v,m[15],530742520,16),y=g(y,v=f(v,b,A,y,m[2],3299628645,23),b,A,m[0],4096336452,6),A=g(A,y,v,b,m[7],1126891415,10),b=g(b,A,y,v,m[14],2878612391,15),v=g(v,b,A,y,m[5],4237533241,21),y=g(y,v,b,A,m[12],1700485571,6),A=g(A,y,v,b,m[3],2399980690,10),b=g(b,A,y,v,m[10],4293915773,15),v=g(v,b,A,y,m[1],2240044497,21),y=g(y,v,b,A,m[8],1873313359,6),A=g(A,y,v,b,m[15],4264355552,10),b=g(b,A,y,v,m[6],2734768916,15),v=g(v,b,A,y,m[13],1309151649,21),y=g(y,v,b,A,m[4],4149444226,6),A=g(A,y,v,b,m[11],3174756917,10),b=g(b,A,y,v,m[2],718787259,15),v=g(v,b,A,y,m[9],3951481745,21),this._a=this._a+y|0,this._b=this._b+v|0,this._c=this._c+b|0,this._d=this._d+A|0},c.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var m=s.allocUnsafe(16);return m.writeInt32LE(this._a,0),m.writeInt32LE(this._b,4),m.writeInt32LE(this._c,8),m.writeInt32LE(this._d,12),m},n.exports=c},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(e,n,i){var a=e("bn.js"),o=e("brorand");function s(u){this.rand=u||new o.Rand}n.exports=s,s.create=function(u){return new s(u)},s.prototype._randbelow=function(u){var c=u.bitLength(),l=Math.ceil(c/8);do var d=new a(this.rand.generate(l));while(d.cmp(u)>=0);return d},s.prototype._randrange=function(u,c){var l=c.sub(u);return u.add(this._randbelow(l))},s.prototype.test=function(u,c,l){var d=u.bitLength(),h=a.mont(u),f=new a(1).toRed(h);c||(c=Math.max(1,d/48|0));for(var g=u.subn(1),m=0;!g.testn(m);m++);for(var p=u.shrn(m),y=g.toRed(h);c>0;c--){var v=this._randrange(new a(2),g);l&&l(v);var b=v.toRed(h).redPow(p);if(b.cmp(f)!==0&&b.cmp(y)!==0){for(var A=1;A<m;A++){if((b=b.redSqr()).cmp(f)===0)return!1;if(b.cmp(y)===0)break}if(A===m)return!1}}return!0},s.prototype.getDivisor=function(u,c){var l=u.bitLength(),d=a.mont(u),h=new a(1).toRed(d);c||(c=Math.max(1,l/48|0));for(var f=u.subn(1),g=0;!f.testn(g);g++);for(var m=u.shrn(g),p=f.toRed(d);c>0;c--){var y=this._randrange(new a(2),f),v=u.gcd(y);if(v.cmpn(1)!==0)return v;var b=y.toRed(d).redPow(m);if(b.cmp(h)!==0&&b.cmp(p)!==0){for(var A=1;A<g;A++){if((b=b.redSqr()).cmp(h)===0)return b.fromRed().subn(1).gcd(u);if(b.cmp(p)===0)break}if(A===g)return(b=b.redSqr()).fromRed().subn(1).gcd(u)}}return!1}},{"bn.js":452,brorand:187}],452:[function(e,n,i){arguments[4][184][0].apply(i,arguments)},{buffer:188,dup:184}],453:[function(e,n,i){function a(o,s){if(!o)throw new Error(s||"Assertion failed")}n.exports=a,a.equal=function(o,s,u){if(o!=s)throw new Error(u||"Assertion failed: "+o+" != "+s)}},{}],454:[function(e,n,i){var a=i;function o(u){return u.length===1?"0"+u:u}function s(u){for(var c="",l=0;l<u.length;l++)c+=o(u[l].toString(16));return c}a.toArray=function(u,c){if(Array.isArray(u))return u.slice();if(!u)return[];var l=[];if(typeof u!="string"){for(var d=0;d<u.length;d++)l[d]=0|u[d];return l}if(c==="hex")for((u=u.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(u="0"+u),d=0;d<u.length;d+=2)l.push(parseInt(u[d]+u[d+1],16));else for(d=0;d<u.length;d++){var h=u.charCodeAt(d),f=h>>8,g=255&h;f?l.push(f,g):l.push(g)}return l},a.zero2=o,a.toHex=s,a.encode=function(u,c){return c==="hex"?s(u):u}},{}],455:[function(e,n,i){n.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(e,n,i){var a=e("asn1.js");i.certificate=e("./certificate");var o=a.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});i.RSAPrivateKey=o;var s=a.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});i.RSAPublicKey=s;var u=a.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(c),this.key("subjectPublicKey").bitstr())});i.PublicKey=u;var c=a.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),l=a.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(c),this.key("subjectPrivateKey").octstr())});i.PrivateKey=l;var d=a.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});i.EncryptedPrivateKey=d;var h=a.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});i.DSAPrivateKey=h,i.DSAparam=a.define("DSAparam",function(){this.int()});var f=a.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(g),this.key("publicKey").optional().explicit(1).bitstr())});i.ECPrivateKey=f;var g=a.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});i.signature=a.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":457,"asn1.js":170}],457:[function(e,n,i){var a=e("asn1.js"),o=a.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),s=a.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),u=a.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),c=a.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(u),this.key("subjectPublicKey").bitstr())}),l=a.define("RelativeDistinguishedName",function(){this.setof(s)}),d=a.define("RDNSequence",function(){this.seqof(l)}),h=a.define("Name",function(){this.choice({rdnSequence:this.use(d)})}),f=a.define("Validity",function(){this.seq().obj(this.key("notBefore").use(o),this.key("notAfter").use(o))}),g=a.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),m=a.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(u),this.key("issuer").use(h),this.key("validity").use(f),this.key("subject").use(h),this.key("subjectPublicKeyInfo").use(c),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(g).optional())}),p=a.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(m),this.key("signatureAlgorithm").use(u),this.key("signatureValue").bitstr())});n.exports=p},{"asn1.js":170}],458:[function(e,n,i){var a=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,s=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,u=e("evp_bytestokey"),c=e("browserify-aes"),l=e("safe-buffer").Buffer;n.exports=function(d,h){var f,g=d.toString(),m=g.match(a);if(m){var p="aes"+m[1],y=l.from(m[2],"hex"),v=l.from(m[3].replace(/[\r\n]/g,""),"base64"),b=u(h,y.slice(0,8),parseInt(m[1],10)).key,A=[],C=c.createDecipheriv(p,b,y);A.push(C.update(v)),A.push(C.final()),f=l.concat(A)}else{var M=g.match(s);f=l.from(M[2].replace(/[\r\n]/g,""),"base64")}return{tag:g.match(o)[1],data:f}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(e,n,i){var a=e("./asn1"),o=e("./aesid.json"),s=e("./fixProc"),u=e("browserify-aes"),c=e("pbkdf2"),l=e("safe-buffer").Buffer;function d(h){var f;typeof h!="object"||l.isBuffer(h)||(f=h.passphrase,h=h.key),typeof h=="string"&&(h=l.from(h));var g,m,p=s(h,f),y=p.tag,v=p.data;switch(y){case"CERTIFICATE":m=a.certificate.decode(v,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(m||(m=a.PublicKey.decode(v,"der")),g=m.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPublicKey.decode(m.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return m.subjectPrivateKey=m.subjectPublicKey,{type:"ec",data:m};case"1.2.840.10040.4.1":return m.algorithm.params.pub_key=a.DSAparam.decode(m.subjectPublicKey.data,"der"),{type:"dsa",data:m.algorithm.params};default:throw new Error("unknown key id "+g)}case"ENCRYPTED PRIVATE KEY":v=function(b,A){var C=b.algorithm.decrypt.kde.kdeparams.salt,M=parseInt(b.algorithm.decrypt.kde.kdeparams.iters.toString(),10),z=o[b.algorithm.decrypt.cipher.algo.join(".")],W=b.algorithm.decrypt.cipher.iv,U=b.subjectPrivateKey,G=parseInt(z.split("-")[1],10)/8,ee=c.pbkdf2Sync(A,C,M,G,"sha1"),I=u.createDecipheriv(z,ee,W),O=[];return O.push(I.update(U)),O.push(I.final()),l.concat(O)}(v=a.EncryptedPrivateKey.decode(v,"der"),f);case"PRIVATE KEY":switch(g=(m=a.PrivateKey.decode(v,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPrivateKey.decode(m.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:m.algorithm.curve,privateKey:a.ECPrivateKey.decode(m.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return m.algorithm.params.priv_key=a.DSAparam.decode(m.subjectPrivateKey,"der"),{type:"dsa",params:m.algorithm.params};default:throw new Error("unknown key id "+g)}case"RSA PUBLIC KEY":return a.RSAPublicKey.decode(v,"der");case"RSA PRIVATE KEY":return a.RSAPrivateKey.decode(v,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:a.DSAPrivateKey.decode(v,"der")};case"EC PRIVATE KEY":return{curve:(v=a.ECPrivateKey.decode(v,"der")).parameters.value,privateKey:v.privateKey};default:throw new Error("unknown key type "+y)}}n.exports=d,d.signature=a.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(e,n,i){i.pbkdf2=e("./lib/async"),i.pbkdf2Sync=e("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(e,n,i){(function(a){(function(){var o,s,u=e("safe-buffer").Buffer,c=e("./precondition"),l=e("./default-encoding"),d=e("./sync"),h=e("./to-buffer"),f=a.crypto&&a.crypto.subtle,g={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},m=[];function p(){return s||(s=a.process&&a.process.nextTick?a.process.nextTick:a.queueMicrotask?a.queueMicrotask:a.setImmediate?a.setImmediate:a.setTimeout)}function y(v,b,A,C,M){return f.importKey("raw",v,{name:"PBKDF2"},!1,["deriveBits"]).then(function(z){return f.deriveBits({name:"PBKDF2",salt:b,iterations:A,hash:{name:M}},z,C<<3)}).then(function(z){return u.from(z)})}n.exports=function(v,b,A,C,M,z){typeof M=="function"&&(z=M,M=void 0);var W=g[(M=M||"sha1").toLowerCase()];if(W&&typeof a.Promise=="function"){if(c(A,C),v=h(v,l,"Password"),b=h(b,l,"Salt"),typeof z!="function")throw new Error("No callback provided to pbkdf2");(function(U,G){U.then(function(ee){p()(function(){G(null,ee)})},function(ee){p()(function(){G(ee)})})})(function(U){if(a.process&&!a.process.browser||!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(m[U]!==void 0)return m[U];var G=y(o=o||u.alloc(8),o,10,128,U).then(function(){return!0}).catch(function(){return!1});return m[U]=G,G}(W).then(function(U){return U?y(v,b,A,C,W):d(v,b,A,C,M)}),z)}else p()(function(){var U;try{U=d(v,b,A,C,M)}catch(G){return z(G)}z(null,U)})}}).call(this)}).call(this,typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(e,n,i){(function(a,o){(function(){var s;o.process&&o.process.browser?s="utf-8":o.process&&o.process.version?s=parseInt(a.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":s="utf-8",n.exports=s}).call(this)}).call(this,e("_process"),typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{_process:467}],463:[function(e,n,i){var a=Math.pow(2,30)-1;n.exports=function(o,s){if(typeof o!="number")throw new TypeError("Iterations not a number");if(o<0)throw new TypeError("Bad iterations");if(typeof s!="number")throw new TypeError("Key length not a number");if(s<0||s>a||s!=s)throw new TypeError("Bad key length")}},{}],464:[function(e,n,i){var a=e("create-hash/md5"),o=e("ripemd160"),s=e("sha.js"),u=e("safe-buffer").Buffer,c=e("./precondition"),l=e("./default-encoding"),d=e("./to-buffer"),h=u.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function g(m,p,y){var v=function(W){function U(G){return s(W).update(G).digest()}return W==="rmd160"||W==="ripemd160"?function(G){return new o().update(G).digest()}:W==="md5"?a:U}(m),b=m==="sha512"||m==="sha384"?128:64;p.length>b?p=v(p):p.length<b&&(p=u.concat([p,h],b));for(var A=u.allocUnsafe(b+f[m]),C=u.allocUnsafe(b+f[m]),M=0;M<b;M++)A[M]=54^p[M],C[M]=92^p[M];var z=u.allocUnsafe(b+y+4);A.copy(z,0,0,b),this.ipad1=z,this.ipad2=A,this.opad=C,this.alg=m,this.blocksize=b,this.hash=v,this.size=f[m]}g.prototype.run=function(m,p){return m.copy(p,this.blocksize),this.hash(p).copy(this.opad,this.blocksize),this.hash(this.opad)},n.exports=function(m,p,y,v,b){c(y,v);var A=new g(b=b||"sha1",m=d(m,l,"Password"),(p=d(p,l,"Salt")).length),C=u.allocUnsafe(v),M=u.allocUnsafe(p.length+4);p.copy(M,0,0,p.length);for(var z=0,W=f[b],U=Math.ceil(v/W),G=1;G<=U;G++){M.writeUInt32BE(G,p.length);for(var ee=A.run(M,A.ipad1),I=ee,O=1;O<y;O++){I=A.run(I,A.ipad2);for(var T=0;T<W;T++)ee[T]^=I[T]}ee.copy(C,z),z+=W}return C}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(e,n,i){var a=e("safe-buffer").Buffer;n.exports=function(o,s,u){if(a.isBuffer(o))return o;if(typeof o=="string")return a.from(o,s);if(ArrayBuffer.isView(o))return a.from(o.buffer);throw new TypeError(u+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(e,n,i){(function(a){(function(){a===void 0||!a.version||a.version.indexOf("v0.")===0||a.version.indexOf("v1.")===0&&a.version.indexOf("v1.8.")!==0?n.exports={nextTick:function(o,s,u,c){if(typeof o!="function")throw new TypeError('"callback" argument must be a function');var l,d,h=arguments.length;switch(h){case 0:case 1:return a.nextTick(o);case 2:return a.nextTick(function(){o.call(null,s)});case 3:return a.nextTick(function(){o.call(null,s,u)});case 4:return a.nextTick(function(){o.call(null,s,u,c)});default:for(l=new Array(h-1),d=0;d<l.length;)l[d++]=arguments[d];return a.nextTick(function(){o.apply(null,l)})}}}:n.exports=a}).call(this)}).call(this,e("_process"))},{_process:467}],467:[function(e,n,i){var a,o,s=n.exports={};function u(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function l(b){if(a===setTimeout)return setTimeout(b,0);if((a===u||!a)&&setTimeout)return a=setTimeout,setTimeout(b,0);try{return a(b,0)}catch{try{return a.call(null,b,0)}catch{return a.call(this,b,0)}}}(function(){try{a=typeof setTimeout=="function"?setTimeout:u}catch{a=u}try{o=typeof clearTimeout=="function"?clearTimeout:c}catch{o=c}})();var d,h=[],f=!1,g=-1;function m(){f&&d&&(f=!1,d.length?h=d.concat(h):g=-1,h.length&&p())}function p(){if(!f){var b=l(m);f=!0;for(var A=h.length;A;){for(d=h,h=[];++g<A;)d&&d[g].run();g=-1,A=h.length}d=null,f=!1,function(C){if(o===clearTimeout)return clearTimeout(C);if((o===c||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(C);try{o(C)}catch{try{return o.call(null,C)}catch{return o.call(this,C)}}}(b)}}function y(b,A){this.fun=b,this.array=A}function v(){}s.nextTick=function(b){var A=new Array(arguments.length-1);if(arguments.length>1)for(var C=1;C<arguments.length;C++)A[C-1]=arguments[C];h.push(new y(b,A)),h.length!==1||f||l(p)},y.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=v,s.addListener=v,s.once=v,s.off=v,s.removeListener=v,s.removeAllListeners=v,s.emit=v,s.prependListener=v,s.prependOnceListener=v,s.listeners=function(b){return[]},s.binding=function(b){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(b){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},{}],468:[function(e,n,i){i.publicEncrypt=e("./publicEncrypt"),i.privateDecrypt=e("./privateDecrypt"),i.privateEncrypt=function(a,o){return i.publicEncrypt(a,o,!0)},i.publicDecrypt=function(a,o){return i.privateDecrypt(a,o,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,n,i){var a=e("create-hash"),o=e("safe-buffer").Buffer;function s(u){var c=o.allocUnsafe(4);return c.writeUInt32BE(u,0),c}n.exports=function(u,c){for(var l,d=o.alloc(0),h=0;d.length<c;)l=s(h++),d=o.concat([d,a("sha1").update(u).update(l).digest()]);return d.slice(0,c)}},{"create-hash":386,"safe-buffer":494}],470:[function(e,n,i){arguments[4][184][0].apply(i,arguments)},{buffer:188,dup:184}],471:[function(e,n,i){var a=e("parse-asn1"),o=e("./mgf"),s=e("./xor"),u=e("bn.js"),c=e("browserify-rsa"),l=e("create-hash"),d=e("./withPublic"),h=e("safe-buffer").Buffer;n.exports=function(f,g,m){var p;p=f.padding?f.padding:m?1:4;var y,v=a(f),b=v.modulus.byteLength();if(g.length>b||new u(g).cmp(v.modulus)>=0)throw new Error("decryption error");y=m?d(new u(g),v):c(g,v);var A=h.alloc(b-y.length);if(y=h.concat([A,y],b),p===4)return function(C,M){var z=C.modulus.byteLength(),W=l("sha1").update(h.alloc(0)).digest(),U=W.length;if(M[0]!==0)throw new Error("decryption error");var G=M.slice(1,U+1),ee=M.slice(U+1),I=s(G,o(ee,U)),O=s(ee,o(I,z-U-1));if(function(S,x){S=h.from(S),x=h.from(x);var w=0,_=S.length;S.length!==x.length&&(w++,_=Math.min(S.length,x.length));for(var E=-1;++E<_;)w+=S[E]^x[E];return w}(W,O.slice(0,U)))throw new Error("decryption error");for(var T=U;O[T]===0;)T++;if(O[T++]!==1)throw new Error("decryption error");return O.slice(T)}(v,y);if(p===1)return function(C,M,z){for(var W=M.slice(0,2),U=2,G=0;M[U++]!==0;)if(U>=M.length){G++;break}var ee=M.slice(2,U-1);if((W.toString("hex")!=="0002"&&!z||W.toString("hex")!=="0001"&&z)&&G++,ee.length<8&&G++,G)throw new Error("decryption error");return M.slice(U)}(0,y,m);if(p===3)return y;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(e,n,i){var a=e("parse-asn1"),o=e("randombytes"),s=e("create-hash"),u=e("./mgf"),c=e("./xor"),l=e("bn.js"),d=e("./withPublic"),h=e("browserify-rsa"),f=e("safe-buffer").Buffer;n.exports=function(g,m,p){var y;y=g.padding?g.padding:p?1:4;var v,b=a(g);if(y===4)v=function(A,C){var M=A.modulus.byteLength(),z=C.length,W=s("sha1").update(f.alloc(0)).digest(),U=W.length,G=2*U;if(z>M-G-2)throw new Error("message too long");var ee=f.alloc(M-z-G-2),I=M-U-1,O=o(U),T=c(f.concat([W,ee,f.alloc(1,1),C],I),u(O,I)),S=c(O,u(T,U));return new l(f.concat([f.alloc(1),S,T],M))}(b,m);else if(y===1)v=function(A,C,M){var z,W=C.length,U=A.modulus.byteLength();if(W>U-11)throw new Error("message too long");return z=M?f.alloc(U-W-3,255):function(G){for(var ee,I=f.allocUnsafe(G),O=0,T=o(2*G),S=0;O<G;)S===T.length&&(T=o(2*G),S=0),(ee=T[S++])&&(I[O++]=ee);return I}(U-W-3),new l(f.concat([f.from([0,M?1:2]),z,f.alloc(1),C],U))}(b,m,p);else{if(y!==3)throw new Error("unknown padding");if((v=new l(m)).cmp(b.modulus)>=0)throw new Error("data too long for modulus")}return p?h(v,b):d(v,b)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(e,n,i){var a=e("bn.js"),o=e("safe-buffer").Buffer;n.exports=function(s,u){return o.from(s.toRed(a.mont(u.modulus)).redPow(new a(u.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(e,n,i){n.exports=function(a,o){for(var s=a.length,u=-1;++u<s;)a[u]^=o[u];return a}},{}],475:[function(e,n,i){(function(a,o){(function(){var s=e("safe-buffer").Buffer,u=o.crypto||o.msCrypto;u&&u.getRandomValues?n.exports=function(c,l){if(c>4294967295)throw new RangeError("requested too many random bytes");var d=s.allocUnsafe(c);if(c>0)if(c>65536)for(var h=0;h<c;h+=65536)u.getRandomValues(d.slice(h,h+65536));else u.getRandomValues(d);return typeof l=="function"?a.nextTick(function(){l(null,d)}):d}:n.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
Use Chrome, Firefox or Internet Explorer 11`)}}).call(this)}).call(this,e("_process"),typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{_process:467,"safe-buffer":494}],476:[function(e,n,i){(function(a,o){(function(){function s(){throw new Error(`secure random number generation not supported by this browser
use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),c=e("randombytes"),l=u.Buffer,d=u.kMaxLength,h=o.crypto||o.msCrypto,f=Math.pow(2,32)-1;function g(y,v){if(typeof y!="number"||y!=y)throw new TypeError("offset must be a number");if(y>f||y<0)throw new TypeError("offset must be a uint32");if(y>d||y>v)throw new RangeError("offset out of range")}function m(y,v,b){if(typeof y!="number"||y!=y)throw new TypeError("size must be a number");if(y>f||y<0)throw new TypeError("size must be a uint32");if(y+v>b||y>d)throw new RangeError("buffer too small")}function p(y,v,b,A){if(a.browser){var C=y.buffer,M=new Uint8Array(C,v,b);return h.getRandomValues(M),A?void a.nextTick(function(){A(null,y)}):y}if(!A)return c(b).copy(y,v),y;c(b,function(z,W){if(z)return A(z);W.copy(y,v),A(null,y)})}h&&h.getRandomValues||!a.browser?(i.randomFill=function(y,v,b,A){if(!(l.isBuffer(y)||y instanceof o.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof v=="function")A=v,v=0,b=y.length;else if(typeof b=="function")A=b,b=y.length-v;else if(typeof A!="function")throw new TypeError('"cb" argument must be a function');return g(v,y.length),m(b,v,y.length),p(y,v,b,A)},i.randomFillSync=function(y,v,b){if(v===void 0&&(v=0),!(l.isBuffer(y)||y instanceof o.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return g(v,y.length),b===void 0&&(b=y.length-v),m(b,v,y.length),p(y,v,b)}):(i.randomFill=s,i.randomFillSync=s)}).call(this)}).call(this,e("_process"),typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(e,n,i){var a={};function o(u,c,l){l||(l=Error);var d=function(h){var f,g;function m(p,y,v){return h.call(this,function(b,A,C){return typeof c=="string"?c:c(b,A,C)}(p,y,v))||this}return g=h,(f=m).prototype=Object.create(g.prototype),f.prototype.constructor=f,f.__proto__=g,m}(l);d.prototype.name=l.name,d.prototype.code=u,a[u]=d}function s(u,c){if(Array.isArray(u)){var l=u.length;return u=u.map(function(d){return String(d)}),l>2?"one of ".concat(c," ").concat(u.slice(0,l-1).join(", "),", or ")+u[l-1]:l===2?"one of ".concat(c," ").concat(u[0]," or ").concat(u[1]):"of ".concat(c," ").concat(u[0])}return"of ".concat(c," ").concat(String(u))}o("ERR_INVALID_OPT_VALUE",function(u,c){return'The value "'+c+'" is invalid for option "'+u+'"'},TypeError),o("ERR_INVALID_ARG_TYPE",function(u,c,l){var d,h,f;if(typeof c=="string"&&(h="not ",c.substr(0,h.length)===h)?(d="must not be",c=c.replace(/^not /,"")):d="must be",function(m,p,y){return(y===void 0||y>m.length)&&(y=m.length),m.substring(y-p.length,y)===p}(u," argument"))f="The ".concat(u," ").concat(d," ").concat(s(c,"type"));else{var g=function(m,p,y){return typeof y!="number"&&(y=0),!(y+p.length>m.length)&&m.indexOf(p,y)!==-1}(u,".")?"property":"argument";f='The "'.concat(u,'" ').concat(g," ").concat(d," ").concat(s(c,"type"))}return f+=". Received type ".concat(typeof l)},TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",function(u){return"The "+u+" method is not implemented"}),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",function(u){return"Cannot call "+u+" after a stream was destroyed"}),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",function(u){return"Unknown encoding: "+u},TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),n.exports.codes=a},{}],478:[function(e,n,i){(function(a){(function(){var o=Object.keys||function(m){var p=[];for(var y in m)p.push(y);return p};n.exports=h;var s=e("./_stream_readable"),u=e("./_stream_writable");e("inherits")(h,s);for(var c=o(u.prototype),l=0;l<c.length;l++){var d=c[l];h.prototype[d]||(h.prototype[d]=u.prototype[d])}function h(m){if(!(this instanceof h))return new h(m);s.call(this,m),u.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||a.nextTick(g,this)}function g(m){m.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(m){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=m,this._writableState.destroyed=m)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(e,n,i){n.exports=o;var a=e("./_stream_transform");function o(s){if(!(this instanceof o))return new o(s);a.call(this,s)}e("inherits")(o,a),o.prototype._transform=function(s,u,c){c(null,s)}},{"./_stream_transform":481,inherits:440}],480:[function(e,n,i){(function(a,o){(function(){var s;n.exports=I,I.ReadableState=ee,e("events").EventEmitter;var u=function(k,L){return k.listeners(L).length},c=e("./internal/streams/stream"),l=e("buffer").Buffer,d=(o!==void 0?o:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){},h,f=e("util");h=f&&f.debuglog?f.debuglog("stream"):function(){};var g,m,p,y=e("./internal/streams/buffer_list"),v=e("./internal/streams/destroy"),b=e("./internal/streams/state").getHighWaterMark,A=e("../errors").codes,C=A.ERR_INVALID_ARG_TYPE,M=A.ERR_STREAM_PUSH_AFTER_EOF,z=A.ERR_METHOD_NOT_IMPLEMENTED,W=A.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(I,c);var U=v.errorOrDestroy,G=["error","close","destroy","pause","resume"];function ee(k,L,V){s=s||e("./_stream_duplex"),k=k||{},typeof V!="boolean"&&(V=L instanceof s),this.objectMode=!!k.objectMode,V&&(this.objectMode=this.objectMode||!!k.readableObjectMode),this.highWaterMark=b(this,k,"readableHighWaterMark",V),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=k.emitClose!==!1,this.autoDestroy=!!k.autoDestroy,this.destroyed=!1,this.defaultEncoding=k.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,k.encoding&&(g||(g=e("string_decoder/").StringDecoder),this.decoder=new g(k.encoding),this.encoding=k.encoding)}function I(k){if(s=s||e("./_stream_duplex"),!(this instanceof I))return new I(k);var L=this instanceof s;this._readableState=new ee(k,this,L),this.readable=!0,k&&(typeof k.read=="function"&&(this._read=k.read),typeof k.destroy=="function"&&(this._destroy=k.destroy)),c.call(this)}function O(k,L,V,J,re){h("readableAddChunk",L);var ae,j=k._readableState;if(L===null)j.reading=!1,function(ue,Q){if(h("onEofChunk"),!Q.ended){if(Q.decoder){var P=Q.decoder.end();P&&P.length&&(Q.buffer.push(P),Q.length+=Q.objectMode?1:P.length)}Q.ended=!0,Q.sync?x(ue):(Q.needReadable=!1,Q.emittedReadable||(Q.emittedReadable=!0,w(ue)))}}(k,j);else if(re||(ae=function(ue,Q){var P;H=Q,l.isBuffer(H)||H instanceof d||typeof Q=="string"||Q===void 0||ue.objectMode||(P=new C("chunk",["string","Buffer","Uint8Array"],Q));var H;return P}(j,L)),ae)U(k,ae);else if(j.objectMode||L&&L.length>0)if(typeof L=="string"||j.objectMode||Object.getPrototypeOf(L)===l.prototype||(L=function(ue){return l.from(ue)}(L)),J)j.endEmitted?U(k,new W):T(k,j,L,!0);else if(j.ended)U(k,new M);else{if(j.destroyed)return!1;j.reading=!1,j.decoder&&!V?(L=j.decoder.write(L),j.objectMode||L.length!==0?T(k,j,L,!1):_(k,j)):T(k,j,L,!1)}else J||(j.reading=!1,_(k,j));return!j.ended&&(j.length<j.highWaterMark||j.length===0)}function T(k,L,V,J){L.flowing&&L.length===0&&!L.sync?(L.awaitDrain=0,k.emit("data",V)):(L.length+=L.objectMode?1:V.length,J?L.buffer.unshift(V):L.buffer.push(V),L.needReadable&&x(k)),_(k,L)}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(k){this._readableState&&(this._readableState.destroyed=k)}}),I.prototype.destroy=v.destroy,I.prototype._undestroy=v.undestroy,I.prototype._destroy=function(k,L){L(k)},I.prototype.push=function(k,L){var V,J=this._readableState;return J.objectMode?V=!0:typeof k=="string"&&((L=L||J.defaultEncoding)!==J.encoding&&(k=l.from(k,L),L=""),V=!0),O(this,k,L,!1,V)},I.prototype.unshift=function(k){return O(this,k,null,!0,!1)},I.prototype.isPaused=function(){return this._readableState.flowing===!1},I.prototype.setEncoding=function(k){g||(g=e("string_decoder/").StringDecoder);var L=new g(k);this._readableState.decoder=L,this._readableState.encoding=this._readableState.decoder.encoding;for(var V=this._readableState.buffer.head,J="";V!==null;)J+=L.write(V.data),V=V.next;return this._readableState.buffer.clear(),J!==""&&this._readableState.buffer.push(J),this._readableState.length=J.length,this};function S(k,L){return k<=0||L.length===0&&L.ended?0:L.objectMode?1:k!=k?L.flowing&&L.length?L.buffer.head.data.length:L.length:(k>L.highWaterMark&&(L.highWaterMark=function(V){return V>=1073741824?V=1073741824:(V--,V|=V>>>1,V|=V>>>2,V|=V>>>4,V|=V>>>8,V|=V>>>16,V++),V}(k)),k<=L.length?k:L.ended?L.length:(L.needReadable=!0,0))}function x(k){var L=k._readableState;h("emitReadable",L.needReadable,L.emittedReadable),L.needReadable=!1,L.emittedReadable||(h("emitReadable",L.flowing),L.emittedReadable=!0,a.nextTick(w,k))}function w(k){var L=k._readableState;h("emitReadable_",L.destroyed,L.length,L.ended),L.destroyed||!L.length&&!L.ended||(k.emit("readable"),L.emittedReadable=!1),L.needReadable=!L.flowing&&!L.ended&&L.length<=L.highWaterMark,X(k)}function _(k,L){L.readingMore||(L.readingMore=!0,a.nextTick(E,k,L))}function E(k,L){for(;!L.reading&&!L.ended&&(L.length<L.highWaterMark||L.flowing&&L.length===0);){var V=L.length;if(h("maybeReadMore read 0"),k.read(0),V===L.length)break}L.readingMore=!1}function R(k){var L=k._readableState;L.readableListening=k.listenerCount("readable")>0,L.resumeScheduled&&!L.paused?L.flowing=!0:k.listenerCount("data")>0&&k.resume()}function F(k){h("readable nexttick read 0"),k.read(0)}function B(k,L){h("resume",L.reading),L.reading||k.read(0),L.resumeScheduled=!1,k.emit("resume"),X(k),L.flowing&&!L.reading&&k.read(0)}function X(k){var L=k._readableState;for(h("flow",L.flowing);L.flowing&&k.read()!==null;);}function K(k,L){return L.length===0?null:(L.objectMode?V=L.buffer.shift():!k||k>=L.length?(V=L.decoder?L.buffer.join(""):L.buffer.length===1?L.buffer.first():L.buffer.concat(L.length),L.buffer.clear()):V=L.buffer.consume(k,L.decoder),V);var V}function te(k){var L=k._readableState;h("endReadable",L.endEmitted),L.endEmitted||(L.ended=!0,a.nextTick($,L,k))}function $(k,L){if(h("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,L.readable=!1,L.emit("end"),k.autoDestroy)){var V=L._writableState;(!V||V.autoDestroy&&V.finished)&&L.destroy()}}function q(k,L){for(var V=0,J=k.length;V<J;V++)if(k[V]===L)return V;return-1}I.prototype.read=function(k){h("read",k),k=parseInt(k,10);var L=this._readableState,V=k;if(k!==0&&(L.emittedReadable=!1),k===0&&L.needReadable&&((L.highWaterMark!==0?L.length>=L.highWaterMark:L.length>0)||L.ended))return h("read: emitReadable",L.length,L.ended),L.length===0&&L.ended?te(this):x(this),null;if((k=S(k,L))===0&&L.ended)return L.length===0&&te(this),null;var J,re=L.needReadable;return h("need readable",re),(L.length===0||L.length-k<L.highWaterMark)&&h("length less than watermark",re=!0),L.ended||L.reading?h("reading or ended",re=!1):re&&(h("do read"),L.reading=!0,L.sync=!0,L.length===0&&(L.needReadable=!0),this._read(L.highWaterMark),L.sync=!1,L.reading||(k=S(V,L))),(J=k>0?K(k,L):null)===null?(L.needReadable=L.length<=L.highWaterMark,k=0):(L.length-=k,L.awaitDrain=0),L.length===0&&(L.ended||(L.needReadable=!0),V!==k&&L.ended&&te(this)),J!==null&&this.emit("data",J),J},I.prototype._read=function(k){U(this,new z("_read()"))},I.prototype.pipe=function(k,L){var V=this,J=this._readableState;switch(J.pipesCount){case 0:J.pipes=k;break;case 1:J.pipes=[J.pipes,k];break;default:J.pipes.push(k)}J.pipesCount+=1,h("pipe count=%d opts=%j",J.pipesCount,L);var re=(!L||L.end!==!1)&&k!==a.stdout&&k!==a.stderr?j:ce;function ae(ne,se){h("onunpipe"),ne===V&&se&&se.hasUnpiped===!1&&(se.hasUnpiped=!0,h("cleanup"),k.removeListener("close",Z),k.removeListener("finish",oe),k.removeListener("drain",ue),k.removeListener("error",H),k.removeListener("unpipe",ae),V.removeListener("end",j),V.removeListener("end",ce),V.removeListener("data",P),Q=!0,!J.awaitDrain||k._writableState&&!k._writableState.needDrain||ue())}function j(){h("onend"),k.end()}J.endEmitted?a.nextTick(re):V.once("end",re),k.on("unpipe",ae);var ue=function(ne){return function(){var se=ne._readableState;h("pipeOnDrain",se.awaitDrain),se.awaitDrain&&se.awaitDrain--,se.awaitDrain===0&&u(ne,"data")&&(se.flowing=!0,X(ne))}}(V);k.on("drain",ue);var Q=!1;function P(ne){h("ondata");var se=k.write(ne);h("dest.write",se),se===!1&&((J.pipesCount===1&&J.pipes===k||J.pipesCount>1&&q(J.pipes,k)!==-1)&&!Q&&(h("false write response, pause",J.awaitDrain),J.awaitDrain++),V.pause())}function H(ne){h("onerror",ne),ce(),k.removeListener("error",H),u(k,"error")===0&&U(k,ne)}function Z(){k.removeListener("finish",oe),ce()}function oe(){h("onfinish"),k.removeListener("close",Z),ce()}function ce(){h("unpipe"),V.unpipe(k)}return V.on("data",P),function(ne,se,fe){if(typeof ne.prependListener=="function")return ne.prependListener(se,fe);ne._events&&ne._events[se]?Array.isArray(ne._events[se])?ne._events[se].unshift(fe):ne._events[se]=[fe,ne._events[se]]:ne.on(se,fe)}(k,"error",H),k.once("close",Z),k.once("finish",oe),k.emit("pipe",V),J.flowing||(h("pipe resume"),V.resume()),k},I.prototype.unpipe=function(k){var L=this._readableState,V={hasUnpiped:!1};if(L.pipesCount===0)return this;if(L.pipesCount===1)return k&&k!==L.pipes||(k||(k=L.pipes),L.pipes=null,L.pipesCount=0,L.flowing=!1,k&&k.emit("unpipe",this,V)),this;if(!k){var J=L.pipes,re=L.pipesCount;L.pipes=null,L.pipesCount=0,L.flowing=!1;for(var ae=0;ae<re;ae++)J[ae].emit("unpipe",this,{hasUnpiped:!1});return this}var j=q(L.pipes,k);return j===-1||(L.pipes.splice(j,1),L.pipesCount-=1,L.pipesCount===1&&(L.pipes=L.pipes[0]),k.emit("unpipe",this,V)),this},I.prototype.on=function(k,L){var V=c.prototype.on.call(this,k,L),J=this._readableState;return k==="data"?(J.readableListening=this.listenerCount("readable")>0,J.flowing!==!1&&this.resume()):k==="readable"&&(J.endEmitted||J.readableListening||(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,h("on readable",J.length,J.reading),J.length?x(this):J.reading||a.nextTick(F,this))),V},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(k,L){var V=c.prototype.removeListener.call(this,k,L);return k==="readable"&&a.nextTick(R,this),V},I.prototype.removeAllListeners=function(k){var L=c.prototype.removeAllListeners.apply(this,arguments);return k!=="readable"&&k!==void 0||a.nextTick(R,this),L},I.prototype.resume=function(){var k=this._readableState;return k.flowing||(h("resume"),k.flowing=!k.readableListening,function(L,V){V.resumeScheduled||(V.resumeScheduled=!0,a.nextTick(B,L,V))}(this,k)),k.paused=!1,this},I.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},I.prototype.wrap=function(k){var L=this,V=this._readableState,J=!1;for(var re in k.on("end",function(){if(h("wrapped end"),V.decoder&&!V.ended){var j=V.decoder.end();j&&j.length&&L.push(j)}L.push(null)}),k.on("data",function(j){h("wrapped data"),V.decoder&&(j=V.decoder.write(j)),V.objectMode&&j==null||(V.objectMode||j&&j.length)&&(L.push(j)||(J=!0,k.pause()))}),k)this[re]===void 0&&typeof k[re]=="function"&&(this[re]=function(j){return function(){return k[j].apply(k,arguments)}}(re));for(var ae=0;ae<G.length;ae++)k.on(G[ae],this.emit.bind(this,G[ae]));return this._read=function(j){h("wrapped _read",j),J&&(J=!1,k.resume())},this},typeof Symbol=="function"&&(I.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=e("./internal/streams/async_iterator")),m(this)}),Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(I.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(I.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(k){this._readableState&&(this._readableState.flowing=k)}}),I._fromList=K,Object.defineProperty(I.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(I.from=function(k,L){return p===void 0&&(p=e("./internal/streams/from")),p(I,k,L)})}).call(this)}).call(this,e("_process"),typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(e,n,i){n.exports=h;var a=e("../errors").codes,o=a.ERR_METHOD_NOT_IMPLEMENTED,s=a.ERR_MULTIPLE_CALLBACK,u=a.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=a.ERR_TRANSFORM_WITH_LENGTH_0,l=e("./_stream_duplex");function d(m,p){var y=this._transformState;y.transforming=!1;var v=y.writecb;if(v===null)return this.emit("error",new s);y.writechunk=null,y.writecb=null,p!=null&&this.push(p),v(m);var b=this._readableState;b.reading=!1,(b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}function h(m){if(!(this instanceof h))return new h(m);l.call(this,m),this._transformState={afterTransform:d.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,m&&(typeof m.transform=="function"&&(this._transform=m.transform),typeof m.flush=="function"&&(this._flush=m.flush)),this.on("prefinish",f)}function f(){var m=this;typeof this._flush!="function"||this._readableState.destroyed?g(this,null,null):this._flush(function(p,y){g(m,p,y)})}function g(m,p,y){if(p)return m.emit("error",p);if(y!=null&&m.push(y),m._writableState.length)throw new c;if(m._transformState.transforming)throw new u;return m.push(null)}e("inherits")(h,l),h.prototype.push=function(m,p){return this._transformState.needTransform=!1,l.prototype.push.call(this,m,p)},h.prototype._transform=function(m,p,y){y(new o("_transform()"))},h.prototype._write=function(m,p,y){var v=this._transformState;if(v.writecb=y,v.writechunk=m,v.writeencoding=p,!v.transforming){var b=this._readableState;(v.needTransform||b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}},h.prototype._read=function(m){var p=this._transformState;p.writechunk===null||p.transforming?p.needTransform=!0:(p.transforming=!0,this._transform(p.writechunk,p.writeencoding,p.afterTransform))},h.prototype._destroy=function(m,p){l.prototype._destroy.call(this,m,function(y){p(y)})}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(e,n,i){(function(a,o){(function(){function s(E){var R=this;this.next=null,this.entry=null,this.finish=function(){(function(F,B,X){var K=F.entry;for(F.entry=null;K;){var te=K.callback;B.pendingcb--,te(X),K=K.next}B.corkedRequestsFree.next=F})(R,E)}}var u;n.exports=I,I.WritableState=ee;var c={deprecate:e("util-deprecate")},l=e("./internal/streams/stream"),d=e("buffer").Buffer,h=(o!==void 0?o:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){},f,g=e("./internal/streams/destroy"),m=e("./internal/streams/state").getHighWaterMark,p=e("../errors").codes,y=p.ERR_INVALID_ARG_TYPE,v=p.ERR_METHOD_NOT_IMPLEMENTED,b=p.ERR_MULTIPLE_CALLBACK,A=p.ERR_STREAM_CANNOT_PIPE,C=p.ERR_STREAM_DESTROYED,M=p.ERR_STREAM_NULL_VALUES,z=p.ERR_STREAM_WRITE_AFTER_END,W=p.ERR_UNKNOWN_ENCODING,U=g.errorOrDestroy;function G(){}function ee(E,R,F){u=u||e("./_stream_duplex"),E=E||{},typeof F!="boolean"&&(F=R instanceof u),this.objectMode=!!E.objectMode,F&&(this.objectMode=this.objectMode||!!E.writableObjectMode),this.highWaterMark=m(this,E,"writableHighWaterMark",F),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var B=E.decodeStrings===!1;this.decodeStrings=!B,this.defaultEncoding=E.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(X){(function(K,te){var $=K._writableState,q=$.sync,k=$.writecb;if(typeof k!="function")throw new b;if(function(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0}($),te)(function(V,J,re,ae,j){--J.pendingcb,re?(a.nextTick(j,ae),a.nextTick(_,V,J),V._writableState.errorEmitted=!0,U(V,ae)):(j(ae),V._writableState.errorEmitted=!0,U(V,ae),_(V,J))})(K,$,q,te,k);else{var L=x($)||K.destroyed;L||$.corked||$.bufferProcessing||!$.bufferedRequest||S(K,$),q?a.nextTick(T,K,$,L,k):T(K,$,L,k)}})(R,X)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=E.emitClose!==!1,this.autoDestroy=!!E.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function I(E){var R=this instanceof(u=u||e("./_stream_duplex"));if(!R&&!f.call(I,this))return new I(E);this._writableState=new ee(E,this,R),this.writable=!0,E&&(typeof E.write=="function"&&(this._write=E.write),typeof E.writev=="function"&&(this._writev=E.writev),typeof E.destroy=="function"&&(this._destroy=E.destroy),typeof E.final=="function"&&(this._final=E.final)),l.call(this)}function O(E,R,F,B,X,K,te){R.writelen=B,R.writecb=te,R.writing=!0,R.sync=!0,R.destroyed?R.onwrite(new C("write")):F?E._writev(X,R.onwrite):E._write(X,K,R.onwrite),R.sync=!1}function T(E,R,F,B){F||function(X,K){K.length===0&&K.needDrain&&(K.needDrain=!1,X.emit("drain"))}(E,R),R.pendingcb--,B(),_(E,R)}function S(E,R){R.bufferProcessing=!0;var F=R.bufferedRequest;if(E._writev&&F&&F.next){var B=R.bufferedRequestCount,X=new Array(B),K=R.corkedRequestsFree;K.entry=F;for(var te=0,$=!0;F;)X[te]=F,F.isBuf||($=!1),F=F.next,te+=1;X.allBuffers=$,O(E,R,!0,R.length,X,"",K.finish),R.pendingcb++,R.lastBufferedRequest=null,K.next?(R.corkedRequestsFree=K.next,K.next=null):R.corkedRequestsFree=new s(R),R.bufferedRequestCount=0}else{for(;F;){var q=F.chunk,k=F.encoding,L=F.callback;if(O(E,R,!1,R.objectMode?1:q.length,q,k,L),F=F.next,R.bufferedRequestCount--,R.writing)break}F===null&&(R.lastBufferedRequest=null)}R.bufferedRequest=F,R.bufferProcessing=!1}function x(E){return E.ending&&E.length===0&&E.bufferedRequest===null&&!E.finished&&!E.writing}function w(E,R){E._final(function(F){R.pendingcb--,F&&U(E,F),R.prefinished=!0,E.emit("prefinish"),_(E,R)})}function _(E,R){var F=x(R);if(F&&(function(X,K){K.prefinished||K.finalCalled||(typeof X._final!="function"||K.destroyed?(K.prefinished=!0,X.emit("prefinish")):(K.pendingcb++,K.finalCalled=!0,a.nextTick(w,X,K)))}(E,R),R.pendingcb===0&&(R.finished=!0,E.emit("finish"),R.autoDestroy))){var B=E._readableState;(!B||B.autoDestroy&&B.endEmitted)&&E.destroy()}return F}e("inherits")(I,l),ee.prototype.getBuffer=function(){for(var E=this.bufferedRequest,R=[];E;)R.push(E),E=E.next;return R},function(){try{Object.defineProperty(ee.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(E){return!!f.call(this,E)||this===I&&E&&E._writableState instanceof ee}})):f=function(E){return E instanceof this},I.prototype.pipe=function(){U(this,new A)},I.prototype.write=function(E,R,F){var B,X=this._writableState,K=!1,te=!X.objectMode&&(B=E,d.isBuffer(B)||B instanceof h);return te&&!d.isBuffer(E)&&(E=function($){return d.from($)}(E)),typeof R=="function"&&(F=R,R=null),te?R="buffer":R||(R=X.defaultEncoding),typeof F!="function"&&(F=G),X.ending?function($,q){var k=new z;U($,k),a.nextTick(q,k)}(this,F):(te||function($,q,k,L){var V;return k===null?V=new M:typeof k=="string"||q.objectMode||(V=new y("chunk",["string","Buffer"],k)),!V||(U($,V),a.nextTick(L,V),!1)}(this,X,E,F))&&(X.pendingcb++,K=function($,q,k,L,V,J){if(!k){var re=function(Q,P,H){return Q.objectMode||Q.decodeStrings===!1||typeof P!="string"||(P=d.from(P,H)),P}(q,L,V);L!==re&&(k=!0,V="buffer",L=re)}var ae=q.objectMode?1:L.length;q.length+=ae;var j=q.length<q.highWaterMark;if(j||(q.needDrain=!0),q.writing||q.corked){var ue=q.lastBufferedRequest;q.lastBufferedRequest={chunk:L,encoding:V,isBuf:k,callback:J,next:null},ue?ue.next=q.lastBufferedRequest:q.bufferedRequest=q.lastBufferedRequest,q.bufferedRequestCount+=1}else O($,q,!1,ae,L,V,J);return j}(this,X,te,E,R,F)),K},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var E=this._writableState;E.corked&&(E.corked--,E.writing||E.corked||E.bufferProcessing||!E.bufferedRequest||S(this,E))},I.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new W(E);return this._writableState.defaultEncoding=E,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),I.prototype._write=function(E,R,F){F(new v("_write()"))},I.prototype._writev=null,I.prototype.end=function(E,R,F){var B=this._writableState;return typeof E=="function"?(F=E,E=null,R=null):typeof R=="function"&&(F=R,R=null),E!=null&&this.write(E,R),B.corked&&(B.corked=1,this.uncork()),B.ending||function(X,K,te){K.ending=!0,_(X,K),te&&(K.finished?a.nextTick(te):X.once("finish",te)),K.ended=!0,X.writable=!1}(this,B,F),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(E){this._writableState&&(this._writableState.destroyed=E)}}),I.prototype.destroy=g.destroy,I.prototype._undestroy=g.undestroy,I.prototype._destroy=function(E,R){R(E)}}).call(this)}).call(this,e("_process"),typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(e,n,i){(function(a){(function(){var o;function s(C,M,z){return(M=function(W){var U=function(G,ee){if(typeof G!="object"||G===null)return G;var I=G[Symbol.toPrimitive];if(I!==void 0){var O=I.call(G,ee||"default");if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ee==="string"?String:Number)(G)}(W,"string");return typeof U=="symbol"?U:String(U)}(M))in C?Object.defineProperty(C,M,{value:z,enumerable:!0,configurable:!0,writable:!0}):C[M]=z,C}var u=e("./end-of-stream"),c=Symbol("lastResolve"),l=Symbol("lastReject"),d=Symbol("error"),h=Symbol("ended"),f=Symbol("lastPromise"),g=Symbol("handlePromise"),m=Symbol("stream");function p(C,M){return{value:C,done:M}}function y(C){var M=C[c];if(M!==null){var z=C[m].read();z!==null&&(C[f]=null,C[c]=null,C[l]=null,M(p(z,!1)))}}function v(C){a.nextTick(y,C)}var b=Object.getPrototypeOf(function(){}),A=Object.setPrototypeOf((s(o={get stream(){return this[m]},next:function(){var C=this,M=this[d];if(M!==null)return Promise.reject(M);if(this[h])return Promise.resolve(p(void 0,!0));if(this[m].destroyed)return new Promise(function(G,ee){a.nextTick(function(){C[d]?ee(C[d]):G(p(void 0,!0))})});var z,W=this[f];if(W)z=new Promise(function(G,ee){return function(I,O){G.then(function(){ee[h]?I(p(void 0,!0)):ee[g](I,O)},O)}}(W,this));else{var U=this[m].read();if(U!==null)return Promise.resolve(p(U,!1));z=new Promise(this[g])}return this[f]=z,z}},Symbol.asyncIterator,function(){return this}),s(o,"return",function(){var C=this;return new Promise(function(M,z){C[m].destroy(null,function(W){W?z(W):M(p(void 0,!0))})})}),o),b);n.exports=function(C){var M,z=Object.create(A,(s(M={},m,{value:C,writable:!0}),s(M,c,{value:null,writable:!0}),s(M,l,{value:null,writable:!0}),s(M,d,{value:null,writable:!0}),s(M,h,{value:C._readableState.endEmitted,writable:!0}),s(M,g,{value:function(W,U){var G=z[m].read();G?(z[f]=null,z[c]=null,z[l]=null,W(p(G,!1))):(z[c]=W,z[l]=U)},writable:!0}),M));return z[f]=null,u(C,function(W){if(W&&W.code!=="ERR_STREAM_PREMATURE_CLOSE"){var U=z[l];return U!==null&&(z[f]=null,z[c]=null,z[l]=null,U(W)),void(z[d]=W)}var G=z[c];G!==null&&(z[f]=null,z[c]=null,z[l]=null,G(p(void 0,!0))),z[h]=!0}),C.on("readable",v.bind(null,z)),z}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":486,_process:467}],484:[function(e,n,i){function a(f,g){var m=Object.keys(f);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(f);g&&(p=p.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable})),m.push.apply(m,p)}return m}function o(f){for(var g=1;g<arguments.length;g++){var m=arguments[g]!=null?arguments[g]:{};g%2?a(Object(m),!0).forEach(function(p){s(f,p,m[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(m)):a(Object(m)).forEach(function(p){Object.defineProperty(f,p,Object.getOwnPropertyDescriptor(m,p))})}return f}function s(f,g,m){return(g=c(g))in f?Object.defineProperty(f,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):f[g]=m,f}function u(f,g){for(var m=0;m<g.length;m++){var p=g[m];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(f,c(p.key),p)}}function c(f){var g=function(m,p){if(typeof m!="object"||m===null)return m;var y=m[Symbol.toPrimitive];if(y!==void 0){var v=y.call(m,p||"default");if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(m)}(f,"string");return typeof g=="symbol"?g:String(g)}var l=e("buffer").Buffer,d=e("util").inspect,h=d&&d.custom||"inspect";n.exports=function(){function f(){(function(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")})(this,f),this.head=null,this.tail=null,this.length=0}var g,m;return g=f,(m=[{key:"push",value:function(p){var y={data:p,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(p){var y={data:p,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var p=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,p}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(p){if(this.length===0)return"";for(var y=this.head,v=""+y.data;y=y.next;)v+=p+y.data;return v}},{key:"concat",value:function(p){if(this.length===0)return l.alloc(0);for(var y,v,b,A=l.allocUnsafe(p>>>0),C=this.head,M=0;C;)y=C.data,v=A,b=M,l.prototype.copy.call(y,v,b),M+=C.data.length,C=C.next;return A}},{key:"consume",value:function(p,y){var v;return p<this.head.data.length?(v=this.head.data.slice(0,p),this.head.data=this.head.data.slice(p)):v=p===this.head.data.length?this.shift():y?this._getString(p):this._getBuffer(p),v}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(p){var y=this.head,v=1,b=y.data;for(p-=b.length;y=y.next;){var A=y.data,C=p>A.length?A.length:p;if(C===A.length?b+=A:b+=A.slice(0,p),(p-=C)==0){C===A.length?(++v,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=A.slice(C));break}++v}return this.length-=v,b}},{key:"_getBuffer",value:function(p){var y=l.allocUnsafe(p),v=this.head,b=1;for(v.data.copy(y),p-=v.data.length;v=v.next;){var A=v.data,C=p>A.length?A.length:p;if(A.copy(y,y.length-p,0,C),(p-=C)==0){C===A.length?(++b,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=A.slice(C));break}++b}return this.length-=b,y}},{key:h,value:function(p,y){return d(this,o(o({},y),{},{depth:0,customInspect:!1}))}}])&&u(g.prototype,m),Object.defineProperty(g,"prototype",{writable:!1}),f}()},{buffer:220,util:188}],485:[function(e,n,i){(function(a){(function(){function o(c,l){u(c,l),s(c)}function s(c){c._writableState&&!c._writableState.emitClose||c._readableState&&!c._readableState.emitClose||c.emit("close")}function u(c,l){c.emit("error",l)}n.exports={destroy:function(c,l){var d=this,h=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return h||f?(l?l(c):c&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.nextTick(u,this,c)):a.nextTick(u,this,c)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(c||null,function(g){!l&&g?d._writableState?d._writableState.errorEmitted?a.nextTick(s,d):(d._writableState.errorEmitted=!0,a.nextTick(o,d,g)):a.nextTick(o,d,g):l?(a.nextTick(s,d),l(g)):a.nextTick(s,d)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(c,l){var d=c._readableState,h=c._writableState;d&&d.autoDestroy||h&&h.autoDestroy?c.destroy(l):c.emit("error",l)}}}).call(this)}).call(this,e("_process"))},{_process:467}],486:[function(e,n,i){var a=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}n.exports=function s(u,c,l){if(typeof c=="function")return s(u,null,c);c||(c={}),l=function(C){var M=!1;return function(){if(!M){M=!0;for(var z=arguments.length,W=new Array(z),U=0;U<z;U++)W[U]=arguments[U];C.apply(this,W)}}}(l||o);var d=c.readable||c.readable!==!1&&u.readable,h=c.writable||c.writable!==!1&&u.writable,f=function(){u.writable||m()},g=u._writableState&&u._writableState.finished,m=function(){h=!1,g=!0,d||l.call(u)},p=u._readableState&&u._readableState.endEmitted,y=function(){d=!1,p=!0,h||l.call(u)},v=function(C){l.call(u,C)},b=function(){var C;return d&&!p?(u._readableState&&u._readableState.ended||(C=new a),l.call(u,C)):h&&!g?(u._writableState&&u._writableState.ended||(C=new a),l.call(u,C)):void 0},A=function(){u.req.on("finish",m)};return function(C){return C.setHeader&&typeof C.abort=="function"}(u)?(u.on("complete",m),u.on("abort",b),u.req?A():u.on("request",A)):h&&!u._writableState&&(u.on("end",f),u.on("close",f)),u.on("end",y),u.on("finish",m),c.error!==!1&&u.on("error",v),u.on("close",b),function(){u.removeListener("complete",m),u.removeListener("abort",b),u.removeListener("request",A),u.req&&u.req.removeListener("finish",m),u.removeListener("end",f),u.removeListener("close",f),u.removeListener("finish",m),u.removeListener("end",y),u.removeListener("error",v),u.removeListener("close",b)}}},{"../../../errors":477}],487:[function(e,n,i){n.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(e,n,i){var a,o=e("../../../errors").codes,s=o.ERR_MISSING_ARGS,u=o.ERR_STREAM_DESTROYED;function c(g){if(g)throw g}function l(g,m,p,y){y=function(A){var C=!1;return function(){C||(C=!0,A.apply(void 0,arguments))}}(y);var v=!1;g.on("close",function(){v=!0}),a===void 0&&(a=e("./end-of-stream")),a(g,{readable:m,writable:p},function(A){if(A)return y(A);v=!0,y()});var b=!1;return function(A){if(!v&&!b)return b=!0,function(C){return C.setHeader&&typeof C.abort=="function"}(g)?g.abort():typeof g.destroy=="function"?g.destroy():void y(A||new u("pipe"))}}function d(g){g()}function h(g,m){return g.pipe(m)}function f(g){return g.length?typeof g[g.length-1]!="function"?c:g.pop():c}n.exports=function(){for(var g=arguments.length,m=new Array(g),p=0;p<g;p++)m[p]=arguments[p];var y,v=f(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new s("streams");var b=m.map(function(A,C){var M=C<m.length-1;return l(A,M,C>0,function(z){y||(y=z),z&&b.forEach(d),M||(b.forEach(d),v(y))})});return m.reduce(h)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(e,n,i){var a=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;n.exports={getHighWaterMark:function(o,s,u,c){var l=function(d,h,f){return d.highWaterMark!=null?d.highWaterMark:h?d[f]:null}(s,c,u);if(l!=null){if(!isFinite(l)||Math.floor(l)!==l||l<0)throw new a(c?u:"highWaterMark",l);return Math.floor(l)}return o.objectMode?16:16384}}},{"../../../errors":477}],490:[function(e,n,i){n.exports=e("events").EventEmitter},{events:422}],491:[function(e,n,i){(i=n.exports=e("./lib/_stream_readable.js")).Stream=i,i.Readable=i,i.Writable=e("./lib/_stream_writable.js"),i.Duplex=e("./lib/_stream_duplex.js"),i.Transform=e("./lib/_stream_transform.js"),i.PassThrough=e("./lib/_stream_passthrough.js"),i.finished=e("./lib/internal/streams/end-of-stream.js"),i.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(e,n,i){var a=function(o){var s=Object.prototype,u=s.hasOwnProperty,c=Object.defineProperty||function(_,E,R){_[E]=R.value},l=typeof Symbol=="function"?Symbol:{},d=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",f=l.toStringTag||"@@toStringTag";function g(_,E,R){return Object.defineProperty(_,E,{value:R,enumerable:!0,configurable:!0,writable:!0}),_[E]}try{g({},"")}catch{g=function(E,R,F){return E[R]=F}}function m(_,E,R,F){var B=E&&E.prototype instanceof v?E:v,X=Object.create(B.prototype),K=new S(F||[]);return c(X,"_invoke",{value:ee(_,R,K)}),X}function p(_,E,R){try{return{type:"normal",arg:_.call(E,R)}}catch(F){return{type:"throw",arg:F}}}o.wrap=m;var y={};function v(){}function b(){}function A(){}var C={};g(C,d,function(){return this});var M=Object.getPrototypeOf,z=M&&M(M(x([])));z&&z!==s&&u.call(z,d)&&(C=z);var W=A.prototype=v.prototype=Object.create(C);function U(_){["next","throw","return"].forEach(function(E){g(_,E,function(R){return this._invoke(E,R)})})}function G(_,E){var R;c(this,"_invoke",{value:function(F,B){function X(){return new E(function(K,te){(function $(q,k,L,V){var J=p(_[q],_,k);if(J.type!=="throw"){var re=J.arg,ae=re.value;return ae&&typeof ae=="object"&&u.call(ae,"__await")?E.resolve(ae.__await).then(function(j){$("next",j,L,V)},function(j){$("throw",j,L,V)}):E.resolve(ae).then(function(j){re.value=j,L(re)},function(j){return $("throw",j,L,V)})}V(J.arg)})(F,B,K,te)})}return R=R?R.then(X,X):X()}})}function ee(_,E,R){var F="suspendedStart";return function(B,X){if(F==="executing")throw new Error("Generator is already running");if(F==="completed"){if(B==="throw")throw X;return w()}for(R.method=B,R.arg=X;;){var K=R.delegate;if(K){var te=I(K,R);if(te){if(te===y)continue;return te}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(F==="suspendedStart")throw F="completed",R.arg;R.dispatchException(R.arg)}else R.method==="return"&&R.abrupt("return",R.arg);F="executing";var $=p(_,E,R);if($.type==="normal"){if(F=R.done?"completed":"suspendedYield",$.arg===y)continue;return{value:$.arg,done:R.done}}$.type==="throw"&&(F="completed",R.method="throw",R.arg=$.arg)}}}function I(_,E){var R=E.method,F=_.iterator[R];if(F===void 0)return E.delegate=null,R==="throw"&&_.iterator.return&&(E.method="return",E.arg=void 0,I(_,E),E.method==="throw")||R!=="return"&&(E.method="throw",E.arg=new TypeError("The iterator does not provide a '"+R+"' method")),y;var B=p(F,_.iterator,E.arg);if(B.type==="throw")return E.method="throw",E.arg=B.arg,E.delegate=null,y;var X=B.arg;return X?X.done?(E[_.resultName]=X.value,E.next=_.nextLoc,E.method!=="return"&&(E.method="next",E.arg=void 0),E.delegate=null,y):X:(E.method="throw",E.arg=new TypeError("iterator result is not an object"),E.delegate=null,y)}function O(_){var E={tryLoc:_[0]};1 in _&&(E.catchLoc=_[1]),2 in _&&(E.finallyLoc=_[2],E.afterLoc=_[3]),this.tryEntries.push(E)}function T(_){var E=_.completion||{};E.type="normal",delete E.arg,_.completion=E}function S(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(O,this),this.reset(!0)}function x(_){if(_){var E=_[d];if(E)return E.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var R=-1,F=function B(){for(;++R<_.length;)if(u.call(_,R))return B.value=_[R],B.done=!1,B;return B.value=void 0,B.done=!0,B};return F.next=F}}return{next:w}}function w(){return{value:void 0,done:!0}}return b.prototype=A,c(W,"constructor",{value:A,configurable:!0}),c(A,"constructor",{value:b,configurable:!0}),b.displayName=g(A,f,"GeneratorFunction"),o.isGeneratorFunction=function(_){var E=typeof _=="function"&&_.constructor;return!!E&&(E===b||(E.displayName||E.name)==="GeneratorFunction")},o.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,A):(_.__proto__=A,g(_,f,"GeneratorFunction")),_.prototype=Object.create(W),_},o.awrap=function(_){return{__await:_}},U(G.prototype),g(G.prototype,h,function(){return this}),o.AsyncIterator=G,o.async=function(_,E,R,F,B){B===void 0&&(B=Promise);var X=new G(m(_,E,R,F),B);return o.isGeneratorFunction(E)?X:X.next().then(function(K){return K.done?K.value:X.next()})},U(W),g(W,f,"Generator"),g(W,d,function(){return this}),g(W,"toString",function(){return"[object Generator]"}),o.keys=function(_){var E=Object(_),R=[];for(var F in E)R.push(F);return R.reverse(),function B(){for(;R.length;){var X=R.pop();if(X in E)return B.value=X,B.done=!1,B}return B.done=!0,B}},o.values=x,S.prototype={constructor:S,reset:function(_){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!_)for(var E in this)E.charAt(0)==="t"&&u.call(this,E)&&!isNaN(+E.slice(1))&&(this[E]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if(_.type==="throw")throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var E=this;function R($,q){return X.type="throw",X.arg=_,E.next=$,q&&(E.method="next",E.arg=void 0),!!q}for(var F=this.tryEntries.length-1;F>=0;--F){var B=this.tryEntries[F],X=B.completion;if(B.tryLoc==="root")return R("end");if(B.tryLoc<=this.prev){var K=u.call(B,"catchLoc"),te=u.call(B,"finallyLoc");if(K&&te){if(this.prev<B.catchLoc)return R(B.catchLoc,!0);if(this.prev<B.finallyLoc)return R(B.finallyLoc)}else if(K){if(this.prev<B.catchLoc)return R(B.catchLoc,!0)}else{if(!te)throw new Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return R(B.finallyLoc)}}}},abrupt:function(_,E){for(var R=this.tryEntries.length-1;R>=0;--R){var F=this.tryEntries[R];if(F.tryLoc<=this.prev&&u.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var B=F;break}}B&&(_==="break"||_==="continue")&&B.tryLoc<=E&&E<=B.finallyLoc&&(B=null);var X=B?B.completion:{};return X.type=_,X.arg=E,B?(this.method="next",this.next=B.finallyLoc,y):this.complete(X)},complete:function(_,E){if(_.type==="throw")throw _.arg;return _.type==="break"||_.type==="continue"?this.next=_.arg:_.type==="return"?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):_.type==="normal"&&E&&(this.next=E),y},finish:function(_){for(var E=this.tryEntries.length-1;E>=0;--E){var R=this.tryEntries[E];if(R.finallyLoc===_)return this.complete(R.completion,R.afterLoc),T(R),y}},catch:function(_){for(var E=this.tryEntries.length-1;E>=0;--E){var R=this.tryEntries[E];if(R.tryLoc===_){var F=R.completion;if(F.type==="throw"){var B=F.arg;T(R)}return B}}throw new Error("illegal catch attempt")},delegateYield:function(_,E,R){return this.delegate={iterator:x(_),resultName:E,nextLoc:R},this.method==="next"&&(this.arg=void 0),y}},o}(typeof n=="object"?n.exports:{});try{regeneratorRuntime=a}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}},{}],493:[function(e,n,i){var a=e("buffer").Buffer,o=e("inherits"),s=e("hash-base"),u=new Array(16),c=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],d=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],h=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],g=[1352829926,1548603684,1836072691,2053994217,0];function m(){s.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(M,z){return M<<z|M>>>32-z}function y(M,z,W,U,G,ee,I,O){return p(M+(z^W^U)+ee+I|0,O)+G|0}function v(M,z,W,U,G,ee,I,O){return p(M+(z&W|~z&U)+ee+I|0,O)+G|0}function b(M,z,W,U,G,ee,I,O){return p(M+((z|~W)^U)+ee+I|0,O)+G|0}function A(M,z,W,U,G,ee,I,O){return p(M+(z&U|W&~U)+ee+I|0,O)+G|0}function C(M,z,W,U,G,ee,I,O){return p(M+(z^(W|~U))+ee+I|0,O)+G|0}o(m,s),m.prototype._update=function(){for(var M=u,z=0;z<16;++z)M[z]=this._block.readInt32LE(4*z);for(var W=0|this._a,U=0|this._b,G=0|this._c,ee=0|this._d,I=0|this._e,O=0|this._a,T=0|this._b,S=0|this._c,x=0|this._d,w=0|this._e,_=0;_<80;_+=1){var E,R;_<16?(E=y(W,U,G,ee,I,M[c[_]],f[0],d[_]),R=C(O,T,S,x,w,M[l[_]],g[0],h[_])):_<32?(E=v(W,U,G,ee,I,M[c[_]],f[1],d[_]),R=A(O,T,S,x,w,M[l[_]],g[1],h[_])):_<48?(E=b(W,U,G,ee,I,M[c[_]],f[2],d[_]),R=b(O,T,S,x,w,M[l[_]],g[2],h[_])):_<64?(E=A(W,U,G,ee,I,M[c[_]],f[3],d[_]),R=v(O,T,S,x,w,M[l[_]],g[3],h[_])):(E=C(W,U,G,ee,I,M[c[_]],f[4],d[_]),R=y(O,T,S,x,w,M[l[_]],g[4],h[_])),W=I,I=ee,ee=p(G,10),G=U,U=E,O=w,w=x,x=p(S,10),S=T,T=R}var F=this._b+G+x|0;this._b=this._c+ee+w|0,this._c=this._d+I+O|0,this._d=this._e+W+T|0,this._e=this._a+U+S|0,this._a=F},m.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var M=a.alloc?a.alloc(20):new a(20);return M.writeInt32LE(this._a,0),M.writeInt32LE(this._b,4),M.writeInt32LE(this._c,8),M.writeInt32LE(this._d,12),M.writeInt32LE(this._e,16),M},n.exports=m},{buffer:220,"hash-base":425,inherits:440}],494:[function(e,n,i){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var a=e("buffer"),o=a.Buffer;function s(c,l){for(var d in c)l[d]=c[d]}function u(c,l,d){return o(c,l,d)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?n.exports=a:(s(a,i),i.Buffer=u),u.prototype=Object.create(o.prototype),s(o,u),u.from=function(c,l,d){if(typeof c=="number")throw new TypeError("Argument must not be a number");return o(c,l,d)},u.alloc=function(c,l,d){if(typeof c!="number")throw new TypeError("Argument must be a number");var h=o(c);return l!==void 0?typeof d=="string"?h.fill(l,d):h.fill(l):h.fill(0),h},u.allocUnsafe=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return o(c)},u.allocUnsafeSlow=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(c)}},{buffer:220}],495:[function(e,n,i){(function(a){(function(){var o,s=e("buffer"),u=s.Buffer,c={};for(o in s)s.hasOwnProperty(o)&&o!=="SlowBuffer"&&o!=="Buffer"&&(c[o]=s[o]);var l=c.Buffer={};for(o in u)u.hasOwnProperty(o)&&o!=="allocUnsafe"&&o!=="allocUnsafeSlow"&&(l[o]=u[o]);if(c.Buffer.prototype=u.prototype,l.from&&l.from!==Uint8Array.from||(l.from=function(d,h,f){if(typeof d=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof d);if(d&&d.length===void 0)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d);return u(d,h,f)}),l.alloc||(l.alloc=function(d,h,f){if(typeof d!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof d);if(d<0||d>=2*(1<<30))throw new RangeError('The value "'+d+'" is invalid for option "size"');var g=u(d);return h&&h.length!==0?typeof f=="string"?g.fill(h,f):g.fill(h):g.fill(0),g}),!c.kStringMaxLength)try{c.kStringMaxLength=a.binding("buffer").kStringMaxLength}catch{}c.constants||(c.constants={MAX_LENGTH:c.kMaxLength},c.kStringMaxLength&&(c.constants.MAX_STRING_LENGTH=c.kStringMaxLength)),n.exports=c}).call(this)}).call(this,e("_process"))},{_process:467,buffer:220}],496:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0});const a=e("xmlchars/xml/1.0/ed5"),o=e("xmlchars/xml/1.1/ed2"),s=e("xmlchars/xmlns/1.0/ed3");var u=a.isS,c=a.isChar,l=a.isNameStartChar,d=a.isNameChar,h=a.S_LIST,f=a.NAME_RE,g=o.isChar,m=s.isNCNameStartChar,p=s.isNCNameChar,y=s.NC_NAME_RE;const v="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",A={__proto__:null,xml:v,xmlns:b},C={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},M=x=>x===34||x===39,z=[34,39],W=[...z,91,62],U=[...z,60,93],G=[61,63,...h],ee=[...h,62,38,60];function I(x,w,_){switch(w){case"xml":_!==v&&x.fail(`xml prefix must be bound to ${v}.`);break;case"xmlns":_!==b&&x.fail(`xmlns prefix must be bound to ${b}.`)}switch(_){case b:x.fail(w===""?`the default namespace may not be set to ${_}.`:`may not assign a prefix (even "xmlns") to the URI ${b}.`);break;case v:switch(w){case"xml":break;case"":x.fail(`the default namespace may not be set to ${_}.`);break;default:x.fail("may not assign the xml namespace to another prefix.")}}}const O=x=>y.test(x),T=x=>f.test(x);i.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const S={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};i.SaxesParser=class{constructor(x){this.opt=x!=null?x:{},this.fragmentOpt=!!this.opt.fragment;const w=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,w){this.nameStartCheck=m,this.nameCheck=p,this.isName=O,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},A);const _=this.opt.additionalNamespaces;_!=null&&(function(E,R){for(const F of Object.keys(R))I(E,F,R[F])}(this,_),Object.assign(this.ns,_))}else this.nameStartCheck=l,this.nameCheck=d,this.isName=T,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var x;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:w}=this;this.state=w?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=w,this.xmlDeclPossible=!w,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:_}=this.opt;if(_===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");_="1.0"}this.setXMLVersion(_),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(C),(x=this.readyHandler)===null||x===void 0||x.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(x,w){this[S[x]]=w}off(x){this[S[x]]=void 0}makeError(x){var w;let _=(w=this.fileName)!==null&&w!==void 0?w:"";return this.trackPosition&&(_.length>0&&(_+=":"),_+=`${this.line}:${this.column}`),_.length>0&&(_+=": "),new Error(_+x)}fail(x){const w=this.makeError(x),_=this.errorHandler;if(_===void 0)throw w;return _(w),this}write(x){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let w=!1;x===null?(w=!0,x=""):typeof x=="object"&&(x=x.toString()),this.carriedFromPrevious!==void 0&&(x=`${this.carriedFromPrevious}${x}`,this.carriedFromPrevious=void 0);let _=x.length;const E=x.charCodeAt(_-1);!w&&(E===13||E>=55296&&E<=56319)&&(this.carriedFromPrevious=x[_-1],_--,x=x.slice(0,_));const{stateTable:R}=this;for(this.chunk=x,this.i=0;this.i<_;)R[this.state].call(this);return this.chunkPosition+=_,w?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:x,i:w}=this;if(this.prevI=w,this.i=w+1,w>=x.length)return-1;const _=x.charCodeAt(w);if(this.column++,_<55296){if(_>=32||_===9)return _;switch(_){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return x.charCodeAt(w+1)===10&&(this.i=w+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),_}}if(_>56319)return _>=57344&&_<=65533||this.fail("disallowed character."),_;const E=65536+1024*(_-55296)+(x.charCodeAt(w+1)-56320);return this.i=w+2,E>1114111&&this.fail("disallowed character."),E}getCode11(){const{chunk:x,i:w}=this;if(this.prevI=w,this.i=w+1,w>=x.length)return-1;const _=x.charCodeAt(w);if(this.column++,_<55296){if(_>31&&_<127||_>159&&_!==8232||_===9)return _;switch(_){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const R=x.charCodeAt(w+1);R!==10&&R!==133||(this.i=w+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),_}}if(_>56319)return _>=57344&&_<=65533||this.fail("disallowed character."),_;const E=65536+1024*(_-55296)+(x.charCodeAt(w+1)-56320);return this.i=w+2,E>1114111&&this.fail("disallowed character."),E}getCodeNorm(){const x=this.getCode();return x===-2?10:x}unget(){this.i=this.prevI,this.column--}captureTo(x){let{i:w}=this;const{chunk:_}=this;for(;;){const E=this.getCode(),R=E===-2,F=R?10:E;if(F===-1||x.includes(F))return this.text+=_.slice(w,this.prevI),F;R&&(this.text+=_.slice(w,this.prevI)+`
`,w=this.i)}}captureToChar(x){let{i:w}=this;const{chunk:_}=this;for(;;){let E=this.getCode();switch(E){case-2:this.text+=_.slice(w,this.prevI)+`
`,w=this.i,E=10;break;case-1:return this.text+=_.slice(w),!1}if(E===x)return this.text+=_.slice(w,this.prevI),!0}}captureNameChars(){const{chunk:x,i:w}=this;for(;;){const _=this.getCode();if(_===-1)return this.name+=x.slice(w),-1;if(!d(_))return this.name+=x.slice(w,this.prevI),_===-2?10:_}}skipSpaces(){for(;;){const x=this.getCodeNorm();if(x===-1||!u(x))return x}}setXMLVersion(x){this.currentXMLVersion=x,x==="1.0"?(this.isChar=c,this.getCode=this.getCode10):(this.isChar=g,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const x=this.i,w=this.skipSpaces();switch(this.prevI!==x&&(this.xmlDeclPossible=!1),w){case 60:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}sDoctype(){var x;const w=this.captureTo(W);switch(w){case 62:(x=this.doctypeHandler)===null||x===void 0||x.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(w),w===91?this.state=4:M(w)&&(this.state=3,this.q=w)}}sDoctypeQuote(){const x=this.q;this.captureToChar(x)&&(this.text+=String.fromCodePoint(x),this.q=null,this.state=2)}sDTD(){const x=this.captureTo(U);x!==-1&&(this.text+=String.fromCodePoint(x),x===93?this.state=2:x===60?this.state=6:M(x)&&(this.state=5,this.q=x))}sDTDQuoted(){const x=this.q;this.captureToChar(x)&&(this.text+=String.fromCodePoint(x),this.state=4,this.q=null)}sDTDOpenWaka(){const x=this.getCodeNorm();switch(this.text+=String.fromCodePoint(x),x){case 33:this.state=7,this.openWakaBang="";break;case 63:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const x=String.fromCodePoint(this.getCodeNorm()),w=this.openWakaBang+=x;this.text+=x,w!=="-"&&(this.state=w==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const x=this.getCodeNorm();this.text+=String.fromCodePoint(x),this.state=x===45?10:8}sDTDCommentEnded(){const x=this.getCodeNorm();this.text+=String.fromCodePoint(x),x===62?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(63)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const x=this.getCodeNorm();this.text+=String.fromCodePoint(x),x===62&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:x}=this;const{chunk:w}=this;e:for(;;)switch(this.getCode()){case-2:this.entity+=w.slice(x,this.prevI)+`
`,x=this.i;break;case 59:{const{entityReturnState:_}=this,E=this.entity+w.slice(x,this.prevI);let R;this.state=_,E===""?(this.fail("empty entity name."),R="&;"):(R=this.parseEntity(E),this.entity=""),_===13&&this.textHandler===void 0||(this.text+=R);break e}case-1:this.entity+=w.slice(x);break e}}sOpenWaka(){const x=this.getCode();if(l(x))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(x){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case 63:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=13,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){var x;const w=this.getCodeNorm();w===45?(this.state=19,(x=this.commentHandler)===null||x===void 0||x.call(this,this.text),this.text=""):(this.text+="-"+String.fromCodePoint(w),this.state=17)}sCommentEnded(){const x=this.getCodeNorm();x!==62?(this.fail("malformed comment."),this.text+="--"+String.fromCodePoint(x),this.state=17):this.state=13}sCData(){this.captureToChar(93)&&(this.state=21)}sCDataEnding(){const x=this.getCodeNorm();x===93?this.state=22:(this.text+="]"+String.fromCodePoint(x),this.state=20)}sCDataEnding2(){var x;const w=this.getCodeNorm();switch(w){case 62:(x=this.cdataHandler)===null||x===void 0||x.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]"+String.fromCodePoint(w),this.state=20}}sPIFirstChar(){const x=this.getCodeNorm();this.nameStartCheck(x)?(this.piTarget+=String.fromCodePoint(x),this.state=24):x===63||u(x)?(this.fail("processing instruction without a target."),this.state=x===63?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(x),this.state=24)}sPIRest(){const{chunk:x,i:w}=this;for(;;){const _=this.getCodeNorm();if(_===-1)return void(this.piTarget+=x.slice(w));if(!this.nameCheck(_)){this.piTarget+=x.slice(w,this.prevI);const E=_===63;E||u(_)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=E?33:27):this.state=E?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(_));break}}}sPIBody(){if(this.text.length===0){const x=this.getCodeNorm();x===63?this.state=26:u(x)||(this.text=String.fromCodePoint(x))}else this.captureToChar(63)&&(this.state=26)}sPIEnding(){var x;const w=this.getCodeNorm();if(w===62){const{piTarget:_}=this;_.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(x=this.piHandler)===null||x===void 0||x.call(this,{target:_,body:this.text}),this.piTarget=this.text="",this.state=13}else w===63?this.text+="?":(this.text+="?"+String.fromCodePoint(w),this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const x=this.skipSpaces();x!==63?x!==-1&&(this.state=28,this.name=String.fromCodePoint(x)):this.state=33}sXMLDeclName(){const x=this.captureTo(G);if(x===63)return this.state=33,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(u(x)||x===61){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail("expected one of "+this.xmlDeclExpects.join(", "))}this.state=x===61?30:29}}sXMLDeclEq(){const x=this.getCodeNorm();if(x===63)return this.state=33,void this.fail("XML declaration is incomplete.");u(x)||(x!==61&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const x=this.getCodeNorm();if(x===63)return this.state=33,void this.fail("XML declaration is incomplete.");u(x)||(M(x)?this.q=x:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const x=this.captureTo([this.q,63]);if(x===63)return this.state=33,this.text="",void this.fail("XML declaration is incomplete.");if(x===-1)return;const w=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const _=w;this.xmlDecl.version=_,/^1\.[0-9]+$/.test(_)?this.opt.forceXMLVersion||this.setXMLVersion(_):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(w)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=w;break;case"standalone":w!=="yes"&&w!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=w}this.name="",this.state=32}sXMLDeclSeparator(){const x=this.getCodeNorm();x!==63?(u(x)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=33}sXMLDeclEnding(){var x;this.getCodeNorm()===62?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),(x=this.xmldeclHandler)===null||x===void 0||x.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=13):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var x;const w=this.captureNameChars();if(w===-1)return;const _=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=_.ns=Object.create(null)),(x=this.openTagStartHandler)===null||x===void 0||x.call(this,_),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),w){case 62:this.openTag();break;case 47:this.state=35;break;default:u(w)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===62?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const x=this.skipSpaces();x!==-1&&(l(x)?(this.unget(),this.state=37):x===62?this.openTag():x===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const x=this.captureNameChars();x===61?this.state=39:u(x)?this.state=38:x===62?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):x!==-1&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const x=this.skipSpaces();switch(x){case-1:return;case 61:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",x===62?this.openTag():l(x)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const x=this.getCodeNorm();M(x)?(this.q=x,this.state=40):u(x)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:x,chunk:w}=this;let{i:_}=this;for(;;)switch(this.getCode()){case x:return this.pushAttrib(this.name,this.text+w.slice(_,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=w.slice(_,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+=w.slice(_,this.prevI)+" ",_=this.i;break;case 60:return this.text+=w.slice(_,this.prevI),void this.fail("disallowed character.");case-1:return void(this.text+=w.slice(_))}}sAttribValueClosed(){const x=this.getCodeNorm();u(x)?this.state=36:x===62?this.openTag():x===47?this.state=35:l(x)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const x=this.captureTo(ee);switch(x){case 38:this.state=14,this.entityReturnState=42;break;case 60:this.fail("disallowed character.");break;case-1:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",x===62?this.openTag():this.state=36}}sCloseTag(){const x=this.captureNameChars();x===62?this.closeTag():u(x)?this.state=44:x!==-1&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case 62:this.closeTag();break;case-1:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:x,forbiddenState:w}=this;const{chunk:_,textHandler:E}=this;e:for(;;)switch(this.getCode()){case 60:if(this.state=15,E!==void 0){const{text:R}=this,F=_.slice(x,this.prevI);R.length!==0?(E(R+F),this.text=""):F.length!==0&&E(F)}w=0;break e;case 38:this.state=14,this.entityReturnState=13,E!==void 0&&(this.text+=_.slice(x,this.prevI)),w=0;break e;case 93:switch(w){case 0:w=1;break;case 1:w=2;break;case 2:break;default:throw new Error("impossible state")}break;case 62:w===2&&this.fail('the string "]]>" is disallowed in char data.'),w=0;break;case-2:E!==void 0&&(this.text+=_.slice(x,this.prevI)+`
`),x=this.i,w=0;break;case-1:E!==void 0&&(this.text+=_.slice(x));break e;default:w=0}this.forbiddenState=w}handleTextOutsideRoot(){let{i:x}=this;const{chunk:w,textHandler:_}=this;let E=!1;e:for(;;){const R=this.getCode();switch(R){case 60:if(this.state=15,_!==void 0){const{text:F}=this,B=w.slice(x,this.prevI);F.length!==0?(_(F+B),this.text=""):B.length!==0&&_(B)}break e;case 38:this.state=14,this.entityReturnState=13,_!==void 0&&(this.text+=w.slice(x,this.prevI)),E=!0;break e;case-2:_!==void 0&&(this.text+=w.slice(x,this.prevI)+`
`),x=this.i;break;case-1:_!==void 0&&(this.text+=w.slice(x));break e;default:u(R)||(E=!0)}}E&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(x,w){var _;const{prefix:E,local:R}=this.qname(x),F={name:x,prefix:E,local:R,value:w};if(this.attribList.push(F),(_=this.attributeHandler)===null||_===void 0||_.call(this,F),E==="xmlns"){const B=w.trim();this.currentXMLVersion==="1.0"&&B===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[R]=B,I(this,R,B)}else if(x==="xmlns"){const B=w.trim();this.topNS[""]=B,I(this,"",B)}}pushAttribPlain(x,w){var _;const E={name:x,value:w};this.attribList.push(E),(_=this.attributeHandler)===null||_===void 0||_.call(this,E)}end(){var x,w;this.sawRoot||this.fail("document must contain a root element.");const{tags:_}=this;for(;_.length>0;){const R=_.pop();this.fail("unclosed tag: "+R.name)}this.state!==0&&this.state!==13&&this.fail("unexpected end.");const{text:E}=this;return E.length!==0&&((x=this.textHandler)===null||x===void 0||x.call(this,E),this.text=""),this._closed=!0,(w=this.endHandler)===null||w===void 0||w.call(this),this._init(),this}resolve(x){var w,_;let E=this.topNS[x];if(E!==void 0)return E;const{tags:R}=this;for(let F=R.length-1;F>=0;F--)if(E=R[F].ns[x],E!==void 0)return E;return E=this.ns[x],E!==void 0?E:(_=(w=this.opt).resolvePrefix)===null||_===void 0?void 0:_.call(w,x)}qname(x){const w=x.indexOf(":");if(w===-1)return{prefix:"",local:x};const _=x.slice(w+1),E=x.slice(0,w);return(E===""||_===""||_.includes(":"))&&this.fail(`malformed name: ${x}.`),{prefix:E,local:_}}processAttribsNS(){var x;const{attribList:w}=this,_=this.tag;{const{prefix:F,local:B}=this.qname(_.name);_.prefix=F,_.local=B;const X=_.uri=(x=this.resolve(F))!==null&&x!==void 0?x:"";F!==""&&(F==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),X===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(F)}.`),_.uri=F))}if(w.length===0)return;const{attributes:E}=_,R=new Set;for(const F of w){const{name:B,prefix:X,local:K}=F;let te,$;X===""?(te=B==="xmlns"?b:"",$=B):(te=this.resolve(X),te===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(X)}.`),te=X),$=`{${te}}${K}`),R.has($)&&this.fail(`duplicate attribute: ${$}.`),R.add($),F.uri=te,E[B]=F}this.attribList=[]}processAttribsPlain(){const{attribList:x}=this,w=this.tag.attributes;for(const{name:_,value:E}of x)w[_]!==void 0&&this.fail(`duplicate attribute: ${_}.`),w[_]=E;this.attribList=[]}openTag(){var x;this.processAttribs();const{tags:w}=this,_=this.tag;_.isSelfClosing=!1,(x=this.openTagHandler)===null||x===void 0||x.call(this,_),w.push(_),this.state=13,this.name=""}openSelfClosingTag(){var x,w,_;this.processAttribs();const{tags:E}=this,R=this.tag;R.isSelfClosing=!0,(x=this.openTagHandler)===null||x===void 0||x.call(this,R),(w=this.closeTagHandler)===null||w===void 0||w.call(this,R),(this.tag=(_=E[E.length-1])!==null&&_!==void 0?_:null)===null&&(this.closedRoot=!0),this.state=13,this.name=""}closeTag(){const{tags:x,name:w}=this;if(this.state=13,this.name="",w==="")return this.fail("weird empty close tag."),void(this.text+="</>");const _=this.closeTagHandler;let E=x.length;for(;E-- >0;){const R=this.tag=x.pop();if(this.topNS=R.ns,_==null||_(R),R.name===w)break;this.fail("unexpected close tag.")}E===0?this.closedRoot=!0:E<0&&(this.fail(`unmatched closing tag: ${w}.`),this.text+=`</${w}>`)}parseEntity(x){if(x[0]!=="#"){const _=this.ENTITIES[x];return _!==void 0?_:(this.fail(this.isName(x)?"undefined entity.":"disallowed character in entity name."),`&${x};`)}let w=NaN;return x[1]==="x"&&/^#x[0-9a-f]+$/i.test(x)?w=parseInt(x.slice(2),16):/^#[0-9]+$/.test(x)&&(w=parseInt(x.slice(1),10)),this.isChar(w)?String.fromCodePoint(w):(this.fail("malformed character entity."),`&${x};`)}}},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(e,n,i){var a=e("safe-buffer").Buffer;function o(s,u){this._block=a.alloc(s),this._finalSize=u,this._blockSize=s,this._len=0}o.prototype.update=function(s,u){typeof s=="string"&&(u=u||"utf8",s=a.from(s,u));for(var c=this._block,l=this._blockSize,d=s.length,h=this._len,f=0;f<d;){for(var g=h%l,m=Math.min(d-f,l-g),p=0;p<m;p++)c[g+p]=s[f+p];f+=m,(h+=m)%l==0&&this._update(c)}return this._len+=d,this},o.prototype.digest=function(s){var u=this._len%this._blockSize;this._block[u]=128,this._block.fill(0,u+1),u>=this._finalSize&&(this._update(this._block),this._block.fill(0));var c=8*this._len;if(c<=4294967295)this._block.writeUInt32BE(c,this._blockSize-4);else{var l=(4294967295&c)>>>0,d=(c-l)/4294967296;this._block.writeUInt32BE(d,this._blockSize-8),this._block.writeUInt32BE(l,this._blockSize-4)}this._update(this._block);var h=this._hash();return s?h.toString(s):h},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},n.exports=o},{"safe-buffer":494}],498:[function(e,n,i){var a=n.exports=function(o){o=o.toLowerCase();var s=a[o];if(!s)throw new Error(o+" is not supported (we accept pull requests)");return new s};a.sha=e("./sha"),a.sha1=e("./sha1"),a.sha224=e("./sha224"),a.sha256=e("./sha256"),a.sha384=e("./sha384"),a.sha512=e("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(e,n,i){var a=e("inherits"),o=e("./hash"),s=e("safe-buffer").Buffer,u=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function l(){this.init(),this._w=c,o.call(this,64,56)}function d(f){return f<<30|f>>>2}function h(f,g,m,p){return f===0?g&m|~g&p:f===2?g&m|g&p|m&p:g^m^p}a(l,o),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(f){for(var g,m=this._w,p=0|this._a,y=0|this._b,v=0|this._c,b=0|this._d,A=0|this._e,C=0;C<16;++C)m[C]=f.readInt32BE(4*C);for(;C<80;++C)m[C]=m[C-3]^m[C-8]^m[C-14]^m[C-16];for(var M=0;M<80;++M){var z=~~(M/20),W=0|((g=p)<<5|g>>>27)+h(z,y,v,b)+A+m[M]+u[z];A=b,b=v,v=d(y),y=p,p=W}this._a=p+this._a|0,this._b=y+this._b|0,this._c=v+this._c|0,this._d=b+this._d|0,this._e=A+this._e|0},l.prototype._hash=function(){var f=s.allocUnsafe(20);return f.writeInt32BE(0|this._a,0),f.writeInt32BE(0|this._b,4),f.writeInt32BE(0|this._c,8),f.writeInt32BE(0|this._d,12),f.writeInt32BE(0|this._e,16),f},n.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(e,n,i){var a=e("inherits"),o=e("./hash"),s=e("safe-buffer").Buffer,u=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function l(){this.init(),this._w=c,o.call(this,64,56)}function d(g){return g<<5|g>>>27}function h(g){return g<<30|g>>>2}function f(g,m,p,y){return g===0?m&p|~m&y:g===2?m&p|m&y|p&y:m^p^y}a(l,o),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(g){for(var m,p=this._w,y=0|this._a,v=0|this._b,b=0|this._c,A=0|this._d,C=0|this._e,M=0;M<16;++M)p[M]=g.readInt32BE(4*M);for(;M<80;++M)p[M]=(m=p[M-3]^p[M-8]^p[M-14]^p[M-16])<<1|m>>>31;for(var z=0;z<80;++z){var W=~~(z/20),U=d(y)+f(W,v,b,A)+C+p[z]+u[W]|0;C=A,A=b,b=h(v),v=y,y=U}this._a=y+this._a|0,this._b=v+this._b|0,this._c=b+this._c|0,this._d=A+this._d|0,this._e=C+this._e|0},l.prototype._hash=function(){var g=s.allocUnsafe(20);return g.writeInt32BE(0|this._a,0),g.writeInt32BE(0|this._b,4),g.writeInt32BE(0|this._c,8),g.writeInt32BE(0|this._d,12),g.writeInt32BE(0|this._e,16),g},n.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(e,n,i){var a=e("inherits"),o=e("./sha256"),s=e("./hash"),u=e("safe-buffer").Buffer,c=new Array(64);function l(){this.init(),this._w=c,s.call(this,64,56)}a(l,o),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var d=u.allocUnsafe(28);return d.writeInt32BE(this._a,0),d.writeInt32BE(this._b,4),d.writeInt32BE(this._c,8),d.writeInt32BE(this._d,12),d.writeInt32BE(this._e,16),d.writeInt32BE(this._f,20),d.writeInt32BE(this._g,24),d},n.exports=l},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(e,n,i){var a=e("inherits"),o=e("./hash"),s=e("safe-buffer").Buffer,u=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c=new Array(64);function l(){this.init(),this._w=c,o.call(this,64,56)}function d(p,y,v){return v^p&(y^v)}function h(p,y,v){return p&y|v&(p|y)}function f(p){return(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10)}function g(p){return(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7)}function m(p){return(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3}a(l,o),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(p){for(var y,v=this._w,b=0|this._a,A=0|this._b,C=0|this._c,M=0|this._d,z=0|this._e,W=0|this._f,U=0|this._g,G=0|this._h,ee=0;ee<16;++ee)v[ee]=p.readInt32BE(4*ee);for(;ee<64;++ee)v[ee]=0|(((y=v[ee-2])>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+v[ee-7]+m(v[ee-15])+v[ee-16];for(var I=0;I<64;++I){var O=G+g(z)+d(z,W,U)+u[I]+v[I]|0,T=f(b)+h(b,A,C)|0;G=U,U=W,W=z,z=M+O|0,M=C,C=A,A=b,b=O+T|0}this._a=b+this._a|0,this._b=A+this._b|0,this._c=C+this._c|0,this._d=M+this._d|0,this._e=z+this._e|0,this._f=W+this._f|0,this._g=U+this._g|0,this._h=G+this._h|0},l.prototype._hash=function(){var p=s.allocUnsafe(32);return p.writeInt32BE(this._a,0),p.writeInt32BE(this._b,4),p.writeInt32BE(this._c,8),p.writeInt32BE(this._d,12),p.writeInt32BE(this._e,16),p.writeInt32BE(this._f,20),p.writeInt32BE(this._g,24),p.writeInt32BE(this._h,28),p},n.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(e,n,i){var a=e("inherits"),o=e("./sha512"),s=e("./hash"),u=e("safe-buffer").Buffer,c=new Array(160);function l(){this.init(),this._w=c,s.call(this,128,112)}a(l,o),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var d=u.allocUnsafe(48);function h(f,g,m){d.writeInt32BE(f,m),d.writeInt32BE(g,m+4)}return h(this._ah,this._al,0),h(this._bh,this._bl,8),h(this._ch,this._cl,16),h(this._dh,this._dl,24),h(this._eh,this._el,32),h(this._fh,this._fl,40),d},n.exports=l},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(e,n,i){var a=e("inherits"),o=e("./hash"),s=e("safe-buffer").Buffer,u=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],c=new Array(160);function l(){this.init(),this._w=c,o.call(this,128,112)}function d(A,C,M){return M^A&(C^M)}function h(A,C,M){return A&C|M&(A|C)}function f(A,C){return(A>>>28|C<<4)^(C>>>2|A<<30)^(C>>>7|A<<25)}function g(A,C){return(A>>>14|C<<18)^(A>>>18|C<<14)^(C>>>9|A<<23)}function m(A,C){return(A>>>1|C<<31)^(A>>>8|C<<24)^A>>>7}function p(A,C){return(A>>>1|C<<31)^(A>>>8|C<<24)^(A>>>7|C<<25)}function y(A,C){return(A>>>19|C<<13)^(C>>>29|A<<3)^A>>>6}function v(A,C){return(A>>>19|C<<13)^(C>>>29|A<<3)^(A>>>6|C<<26)}function b(A,C){return A>>>0<C>>>0?1:0}a(l,o),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(A){for(var C=this._w,M=0|this._ah,z=0|this._bh,W=0|this._ch,U=0|this._dh,G=0|this._eh,ee=0|this._fh,I=0|this._gh,O=0|this._hh,T=0|this._al,S=0|this._bl,x=0|this._cl,w=0|this._dl,_=0|this._el,E=0|this._fl,R=0|this._gl,F=0|this._hl,B=0;B<32;B+=2)C[B]=A.readInt32BE(4*B),C[B+1]=A.readInt32BE(4*B+4);for(;B<160;B+=2){var X=C[B-30],K=C[B-30+1],te=m(X,K),$=p(K,X),q=y(X=C[B-4],K=C[B-4+1]),k=v(K,X),L=C[B-14],V=C[B-14+1],J=C[B-32],re=C[B-32+1],ae=$+V|0,j=te+L+b(ae,$)|0;j=(j=j+q+b(ae=ae+k|0,k)|0)+J+b(ae=ae+re|0,re)|0,C[B]=j,C[B+1]=ae}for(var ue=0;ue<160;ue+=2){j=C[ue],ae=C[ue+1];var Q=h(M,z,W),P=h(T,S,x),H=f(M,T),Z=f(T,M),oe=g(G,_),ce=g(_,G),ne=u[ue],se=u[ue+1],fe=d(G,ee,I),de=d(_,E,R),ve=F+ce|0,Ee=O+oe+b(ve,F)|0;Ee=(Ee=(Ee=Ee+fe+b(ve=ve+de|0,de)|0)+ne+b(ve=ve+se|0,se)|0)+j+b(ve=ve+ae|0,ae)|0;var Se=Z+P|0,Ne=H+Q+b(Se,Z)|0;O=I,F=R,I=ee,R=E,ee=G,E=_,G=U+Ee+b(_=w+ve|0,w)|0,U=W,w=x,W=z,x=S,z=M,S=T,M=Ee+Ne+b(T=ve+Se|0,ve)|0}this._al=this._al+T|0,this._bl=this._bl+S|0,this._cl=this._cl+x|0,this._dl=this._dl+w|0,this._el=this._el+_|0,this._fl=this._fl+E|0,this._gl=this._gl+R|0,this._hl=this._hl+F|0,this._ah=this._ah+M+b(this._al,T)|0,this._bh=this._bh+z+b(this._bl,S)|0,this._ch=this._ch+W+b(this._cl,x)|0,this._dh=this._dh+U+b(this._dl,w)|0,this._eh=this._eh+G+b(this._el,_)|0,this._fh=this._fh+ee+b(this._fl,E)|0,this._gh=this._gh+I+b(this._gl,R)|0,this._hh=this._hh+O+b(this._hl,F)|0},l.prototype._hash=function(){var A=s.allocUnsafe(64);function C(M,z,W){A.writeInt32BE(M,W),A.writeInt32BE(z,W+4)}return C(this._ah,this._al,0),C(this._bh,this._bl,8),C(this._ch,this._cl,16),C(this._dh,this._dl,24),C(this._eh,this._el,32),C(this._fh,this._fl,40),C(this._gh,this._gl,48),C(this._hh,this._hl,56),A},n.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(e,n,i){n.exports=o;var a=e("events").EventEmitter;function o(){a.call(this)}e("inherits")(o,a),o.Readable=e("readable-stream/readable.js"),o.Writable=e("readable-stream/writable.js"),o.Duplex=e("readable-stream/duplex.js"),o.Transform=e("readable-stream/transform.js"),o.PassThrough=e("readable-stream/passthrough.js"),o.Stream=o,o.prototype.pipe=function(s,u){var c=this;function l(y){s.writable&&s.write(y)===!1&&c.pause&&c.pause()}function d(){c.readable&&c.resume&&c.resume()}c.on("data",l),s.on("drain",d),s._isStdio||u&&u.end===!1||(c.on("end",f),c.on("close",g));var h=!1;function f(){h||(h=!0,s.end())}function g(){h||(h=!0,typeof s.destroy=="function"&&s.destroy())}function m(y){if(p(),a.listenerCount(this,"error")===0)throw y}function p(){c.removeListener("data",l),s.removeListener("drain",d),c.removeListener("end",f),c.removeListener("close",g),c.removeListener("error",m),s.removeListener("error",m),c.removeListener("end",p),c.removeListener("close",p),s.removeListener("close",p)}return c.on("error",m),s.on("error",m),c.on("end",p),c.on("close",p),s.on("close",p),s.emit("pipe",c),s}},{events:422,inherits:440,"readable-stream/duplex.js":507,"readable-stream/passthrough.js":516,"readable-stream/readable.js":517,"readable-stream/transform.js":518,"readable-stream/writable.js":519}],506:[function(e,n,i){var a={}.toString;n.exports=Array.isArray||function(o){return a.call(o)=="[object Array]"}},{}],507:[function(e,n,i){n.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(e,n,i){var a=e("process-nextick-args"),o=Object.keys||function(p){var y=[];for(var v in p)y.push(v);return y};n.exports=f;var s=Object.create(e("core-util-is"));s.inherits=e("inherits");var u=e("./_stream_readable"),c=e("./_stream_writable");s.inherits(f,u);for(var l=o(c.prototype),d=0;d<l.length;d++){var h=l[d];f.prototype[h]||(f.prototype[h]=c.prototype[h])}function f(p){if(!(this instanceof f))return new f(p);u.call(this,p),c.call(this,p),p&&p.readable===!1&&(this.readable=!1),p&&p.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,p&&p.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",g)}function g(){this.allowHalfOpen||this._writableState.ended||a.nextTick(m,this)}function m(p){p.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=p,this._writableState.destroyed=p)}}),f.prototype._destroy=function(p,y){this.push(null),this.end(),a.nextTick(y,p)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(e,n,i){n.exports=s;var a=e("./_stream_transform"),o=Object.create(e("core-util-is"));function s(u){if(!(this instanceof s))return new s(u);a.call(this,u)}o.inherits=e("inherits"),o.inherits(s,a),s.prototype._transform=function(u,c,l){l(null,u)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(e,n,i){(function(a,o){(function(){var s=e("process-nextick-args");n.exports=M;var u,c=e("isarray");M.ReadableState=C,e("events").EventEmitter;var l=function(F,B){return F.listeners(B).length},d=e("./internal/streams/stream"),h=e("safe-buffer").Buffer,f=(o!==void 0?o:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){},g=Object.create(e("core-util-is"));g.inherits=e("inherits");var m=e("util"),p=void 0;p=m&&m.debuglog?m.debuglog("stream"):function(){};var y,v=e("./internal/streams/BufferList"),b=e("./internal/streams/destroy");g.inherits(M,d);var A=["error","close","destroy","pause","resume"];function C(F,B){F=F||{};var X=B instanceof(u=u||e("./_stream_duplex"));this.objectMode=!!F.objectMode,X&&(this.objectMode=this.objectMode||!!F.readableObjectMode);var K=F.highWaterMark,te=F.readableHighWaterMark,$=this.objectMode?16:16384;this.highWaterMark=K||K===0?K:X&&(te||te===0)?te:$,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=F.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,F.encoding&&(y||(y=e("string_decoder/").StringDecoder),this.decoder=new y(F.encoding),this.encoding=F.encoding)}function M(F){if(u=u||e("./_stream_duplex"),!(this instanceof M))return new M(F);this._readableState=new C(F,this),this.readable=!0,F&&(typeof F.read=="function"&&(this._read=F.read),typeof F.destroy=="function"&&(this._destroy=F.destroy)),d.call(this)}function z(F,B,X,K,te){var $,q=F._readableState;return B===null?(q.reading=!1,function(k,L){if(!L.ended){if(L.decoder){var V=L.decoder.end();V&&V.length&&(L.buffer.push(V),L.length+=L.objectMode?1:V.length)}L.ended=!0,G(k)}}(F,q)):(te||($=function(k,L){var V;J=L,h.isBuffer(J)||J instanceof f||typeof L=="string"||L===void 0||k.objectMode||(V=new TypeError("Invalid non-string/buffer chunk"));var J;return V}(q,B)),$?F.emit("error",$):q.objectMode||B&&B.length>0?(typeof B=="string"||q.objectMode||Object.getPrototypeOf(B)===h.prototype||(B=function(k){return h.from(k)}(B)),K?q.endEmitted?F.emit("error",new Error("stream.unshift() after end event")):W(F,q,B,!0):q.ended?F.emit("error",new Error("stream.push() after EOF")):(q.reading=!1,q.decoder&&!X?(B=q.decoder.write(B),q.objectMode||B.length!==0?W(F,q,B,!1):I(F,q)):W(F,q,B,!1))):K||(q.reading=!1)),function(k){return!k.ended&&(k.needReadable||k.length<k.highWaterMark||k.length===0)}(q)}function W(F,B,X,K){B.flowing&&B.length===0&&!B.sync?(F.emit("data",X),F.read(0)):(B.length+=B.objectMode?1:X.length,K?B.buffer.unshift(X):B.buffer.push(X),B.needReadable&&G(F)),I(F,B)}Object.defineProperty(M.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(F){this._readableState&&(this._readableState.destroyed=F)}}),M.prototype.destroy=b.destroy,M.prototype._undestroy=b.undestroy,M.prototype._destroy=function(F,B){this.push(null),B(F)},M.prototype.push=function(F,B){var X,K=this._readableState;return K.objectMode?X=!0:typeof F=="string"&&((B=B||K.defaultEncoding)!==K.encoding&&(F=h.from(F,B),B=""),X=!0),z(this,F,B,!1,X)},M.prototype.unshift=function(F){return z(this,F,null,!0,!1)},M.prototype.isPaused=function(){return this._readableState.flowing===!1},M.prototype.setEncoding=function(F){return y||(y=e("string_decoder/").StringDecoder),this._readableState.decoder=new y(F),this._readableState.encoding=F,this};function U(F,B){return F<=0||B.length===0&&B.ended?0:B.objectMode?1:F!=F?B.flowing&&B.length?B.buffer.head.data.length:B.length:(F>B.highWaterMark&&(B.highWaterMark=function(X){return X>=8388608?X=8388608:(X--,X|=X>>>1,X|=X>>>2,X|=X>>>4,X|=X>>>8,X|=X>>>16,X++),X}(F)),F<=B.length?F:B.ended?B.length:(B.needReadable=!0,0))}function G(F){var B=F._readableState;B.needReadable=!1,B.emittedReadable||(p("emitReadable",B.flowing),B.emittedReadable=!0,B.sync?s.nextTick(ee,F):ee(F))}function ee(F){p("emit readable"),F.emit("readable"),x(F)}function I(F,B){B.readingMore||(B.readingMore=!0,s.nextTick(O,F,B))}function O(F,B){for(var X=B.length;!B.reading&&!B.flowing&&!B.ended&&B.length<B.highWaterMark&&(p("maybeReadMore read 0"),F.read(0),X!==B.length);)X=B.length;B.readingMore=!1}function T(F){p("readable nexttick read 0"),F.read(0)}function S(F,B){B.reading||(p("resume read 0"),F.read(0)),B.resumeScheduled=!1,B.awaitDrain=0,F.emit("resume"),x(F),B.flowing&&!B.reading&&F.read(0)}function x(F){var B=F._readableState;for(p("flow",B.flowing);B.flowing&&F.read()!==null;);}function w(F,B){return B.length===0?null:(B.objectMode?X=B.buffer.shift():!F||F>=B.length?(X=B.decoder?B.buffer.join(""):B.buffer.length===1?B.buffer.head.data:B.buffer.concat(B.length),B.buffer.clear()):X=function(K,te,$){var q;return K<te.head.data.length?(q=te.head.data.slice(0,K),te.head.data=te.head.data.slice(K)):q=K===te.head.data.length?te.shift():$?function(k,L){var V=L.head,J=1,re=V.data;for(k-=re.length;V=V.next;){var ae=V.data,j=k>ae.length?ae.length:k;if(j===ae.length?re+=ae:re+=ae.slice(0,k),(k-=j)==0){j===ae.length?(++J,V.next?L.head=V.next:L.head=L.tail=null):(L.head=V,V.data=ae.slice(j));break}++J}return L.length-=J,re}(K,te):function(k,L){var V=h.allocUnsafe(k),J=L.head,re=1;for(J.data.copy(V),k-=J.data.length;J=J.next;){var ae=J.data,j=k>ae.length?ae.length:k;if(ae.copy(V,V.length-k,0,j),(k-=j)==0){j===ae.length?(++re,J.next?L.head=J.next:L.head=L.tail=null):(L.head=J,J.data=ae.slice(j));break}++re}return L.length-=re,V}(K,te),q}(F,B.buffer,B.decoder),X);var X}function _(F){var B=F._readableState;if(B.length>0)throw new Error('"endReadable()" called on non-empty stream');B.endEmitted||(B.ended=!0,s.nextTick(E,B,F))}function E(F,B){F.endEmitted||F.length!==0||(F.endEmitted=!0,B.readable=!1,B.emit("end"))}function R(F,B){for(var X=0,K=F.length;X<K;X++)if(F[X]===B)return X;return-1}M.prototype.read=function(F){p("read",F),F=parseInt(F,10);var B=this._readableState,X=F;if(F!==0&&(B.emittedReadable=!1),F===0&&B.needReadable&&(B.length>=B.highWaterMark||B.ended))return p("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?_(this):G(this),null;if((F=U(F,B))===0&&B.ended)return B.length===0&&_(this),null;var K,te=B.needReadable;return p("need readable",te),(B.length===0||B.length-F<B.highWaterMark)&&p("length less than watermark",te=!0),B.ended||B.reading?p("reading or ended",te=!1):te&&(p("do read"),B.reading=!0,B.sync=!0,B.length===0&&(B.needReadable=!0),this._read(B.highWaterMark),B.sync=!1,B.reading||(F=U(X,B))),(K=F>0?w(F,B):null)===null?(B.needReadable=!0,F=0):B.length-=F,B.length===0&&(B.ended||(B.needReadable=!0),X!==F&&B.ended&&_(this)),K!==null&&this.emit("data",K),K},M.prototype._read=function(F){this.emit("error",new Error("_read() is not implemented"))},M.prototype.pipe=function(F,B){var X=this,K=this._readableState;switch(K.pipesCount){case 0:K.pipes=F;break;case 1:K.pipes=[K.pipes,F];break;default:K.pipes.push(F)}K.pipesCount+=1,p("pipe count=%d opts=%j",K.pipesCount,B);var te=(!B||B.end!==!1)&&F!==a.stdout&&F!==a.stderr?q:ue;function $(Q,P){p("onunpipe"),Q===X&&P&&P.hasUnpiped===!1&&(P.hasUnpiped=!0,p("cleanup"),F.removeListener("close",ae),F.removeListener("finish",j),F.removeListener("drain",k),F.removeListener("error",re),F.removeListener("unpipe",$),X.removeListener("end",q),X.removeListener("end",ue),X.removeListener("data",J),L=!0,!K.awaitDrain||F._writableState&&!F._writableState.needDrain||k())}function q(){p("onend"),F.end()}K.endEmitted?s.nextTick(te):X.once("end",te),F.on("unpipe",$);var k=function(Q){return function(){var P=Q._readableState;p("pipeOnDrain",P.awaitDrain),P.awaitDrain&&P.awaitDrain--,P.awaitDrain===0&&l(Q,"data")&&(P.flowing=!0,x(Q))}}(X);F.on("drain",k);var L=!1,V=!1;function J(Q){p("ondata"),V=!1,F.write(Q)!==!1||V||((K.pipesCount===1&&K.pipes===F||K.pipesCount>1&&R(K.pipes,F)!==-1)&&!L&&(p("false write response, pause",K.awaitDrain),K.awaitDrain++,V=!0),X.pause())}function re(Q){p("onerror",Q),ue(),F.removeListener("error",re),l(F,"error")===0&&F.emit("error",Q)}function ae(){F.removeListener("finish",j),ue()}function j(){p("onfinish"),F.removeListener("close",ae),ue()}function ue(){p("unpipe"),X.unpipe(F)}return X.on("data",J),function(Q,P,H){if(typeof Q.prependListener=="function")return Q.prependListener(P,H);Q._events&&Q._events[P]?c(Q._events[P])?Q._events[P].unshift(H):Q._events[P]=[H,Q._events[P]]:Q.on(P,H)}(F,"error",re),F.once("close",ae),F.once("finish",j),F.emit("pipe",X),K.flowing||(p("pipe resume"),X.resume()),F},M.prototype.unpipe=function(F){var B=this._readableState,X={hasUnpiped:!1};if(B.pipesCount===0)return this;if(B.pipesCount===1)return F&&F!==B.pipes||(F||(F=B.pipes),B.pipes=null,B.pipesCount=0,B.flowing=!1,F&&F.emit("unpipe",this,X)),this;if(!F){var K=B.pipes,te=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var $=0;$<te;$++)K[$].emit("unpipe",this,{hasUnpiped:!1});return this}var q=R(B.pipes,F);return q===-1||(B.pipes.splice(q,1),B.pipesCount-=1,B.pipesCount===1&&(B.pipes=B.pipes[0]),F.emit("unpipe",this,X)),this},M.prototype.on=function(F,B){var X=d.prototype.on.call(this,F,B);if(F==="data")this._readableState.flowing!==!1&&this.resume();else if(F==="readable"){var K=this._readableState;K.endEmitted||K.readableListening||(K.readableListening=K.needReadable=!0,K.emittedReadable=!1,K.reading?K.length&&G(this):s.nextTick(T,this))}return X},M.prototype.addListener=M.prototype.on,M.prototype.resume=function(){var F=this._readableState;return F.flowing||(p("resume"),F.flowing=!0,function(B,X){X.resumeScheduled||(X.resumeScheduled=!0,s.nextTick(S,B,X))}(this,F)),this},M.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},M.prototype.wrap=function(F){var B=this,X=this._readableState,K=!1;for(var te in F.on("end",function(){if(p("wrapped end"),X.decoder&&!X.ended){var q=X.decoder.end();q&&q.length&&B.push(q)}B.push(null)}),F.on("data",function(q){p("wrapped data"),X.decoder&&(q=X.decoder.write(q)),X.objectMode&&q==null||(X.objectMode||q&&q.length)&&(B.push(q)||(K=!0,F.pause()))}),F)this[te]===void 0&&typeof F[te]=="function"&&(this[te]=function(q){return function(){return F[q].apply(F,arguments)}}(te));for(var $=0;$<A.length;$++)F.on(A[$],this.emit.bind(this,A[$]));return this._read=function(q){p("wrapped _read",q),K&&(K=!1,F.resume())},this},Object.defineProperty(M.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),M._fromList=w}).call(this)}).call(this,e("_process"),typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,events:422,inherits:440,isarray:506,"process-nextick-args":466,"safe-buffer":520,"string_decoder/":521,util:188}],511:[function(e,n,i){n.exports=u;var a=e("./_stream_duplex"),o=Object.create(e("core-util-is"));function s(d,h){var f=this._transformState;f.transforming=!1;var g=f.writecb;if(!g)return this.emit("error",new Error("write callback called multiple times"));f.writechunk=null,f.writecb=null,h!=null&&this.push(h),g(d);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}function u(d){if(!(this instanceof u))return new u(d);a.call(this,d),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",c)}function c(){var d=this;typeof this._flush=="function"?this._flush(function(h,f){l(d,h,f)}):l(this,null,null)}function l(d,h,f){if(h)return d.emit("error",h);if(f!=null&&d.push(f),d._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(d._transformState.transforming)throw new Error("Calling transform done when still transforming");return d.push(null)}o.inherits=e("inherits"),o.inherits(u,a),u.prototype.push=function(d,h){return this._transformState.needTransform=!1,a.prototype.push.call(this,d,h)},u.prototype._transform=function(d,h,f){throw new Error("_transform() is not implemented")},u.prototype._write=function(d,h,f){var g=this._transformState;if(g.writecb=f,g.writechunk=d,g.writeencoding=h,!g.transforming){var m=this._readableState;(g.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},u.prototype._read=function(d){var h=this._transformState;h.writechunk!==null&&h.writecb&&!h.transforming?(h.transforming=!0,this._transform(h.writechunk,h.writeencoding,h.afterTransform)):h.needTransform=!0},u.prototype._destroy=function(d,h){var f=this;a.prototype._destroy.call(this,d,function(g){h(g),f.emit("close")})}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(e,n,i){(function(a,o,s){(function(){var u=e("process-nextick-args");function c(I){var O=this;this.next=null,this.entry=null,this.finish=function(){(function(T,S,x){var w=T.entry;for(T.entry=null;w;){var _=w.callback;S.pendingcb--,_(x),w=w.next}S.corkedRequestsFree.next=T})(O,I)}}n.exports=C;var l,d=!a.browser&&["v0.10","v0.9."].indexOf(a.version.slice(0,5))>-1?s:u.nextTick;C.WritableState=A;var h=Object.create(e("core-util-is"));h.inherits=e("inherits");var f={deprecate:e("util-deprecate")},g=e("./internal/streams/stream"),m=e("safe-buffer").Buffer,p=(o!==void 0?o:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){},y,v=e("./internal/streams/destroy");function b(){}function A(I,O){l=l||e("./_stream_duplex"),I=I||{};var T=O instanceof l;this.objectMode=!!I.objectMode,T&&(this.objectMode=this.objectMode||!!I.writableObjectMode);var S=I.highWaterMark,x=I.writableHighWaterMark,w=this.objectMode?16:16384;this.highWaterMark=S||S===0?S:T&&(x||x===0)?x:w,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var _=I.decodeStrings===!1;this.decodeStrings=!_,this.defaultEncoding=I.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(E){(function(R,F){var B=R._writableState,X=B.sync,K=B.writecb;if(function($){$.writing=!1,$.writecb=null,$.length-=$.writelen,$.writelen=0}(B),F)(function($,q,k,L,V){--q.pendingcb,k?(u.nextTick(V,L),u.nextTick(ee,$,q),$._writableState.errorEmitted=!0,$.emit("error",L)):(V(L),$._writableState.errorEmitted=!0,$.emit("error",L),ee($,q))})(R,B,X,F,K);else{var te=U(B);te||B.corked||B.bufferProcessing||!B.bufferedRequest||W(R,B),X?d(z,R,B,te,K):z(R,B,te,K)}})(O,E)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new c(this)}function C(I){if(l=l||e("./_stream_duplex"),!(y.call(C,this)||this instanceof l))return new C(I);this._writableState=new A(I,this),this.writable=!0,I&&(typeof I.write=="function"&&(this._write=I.write),typeof I.writev=="function"&&(this._writev=I.writev),typeof I.destroy=="function"&&(this._destroy=I.destroy),typeof I.final=="function"&&(this._final=I.final)),g.call(this)}function M(I,O,T,S,x,w,_){O.writelen=S,O.writecb=_,O.writing=!0,O.sync=!0,T?I._writev(x,O.onwrite):I._write(x,w,O.onwrite),O.sync=!1}function z(I,O,T,S){T||function(x,w){w.length===0&&w.needDrain&&(w.needDrain=!1,x.emit("drain"))}(I,O),O.pendingcb--,S(),ee(I,O)}function W(I,O){O.bufferProcessing=!0;var T=O.bufferedRequest;if(I._writev&&T&&T.next){var S=O.bufferedRequestCount,x=new Array(S),w=O.corkedRequestsFree;w.entry=T;for(var _=0,E=!0;T;)x[_]=T,T.isBuf||(E=!1),T=T.next,_+=1;x.allBuffers=E,M(I,O,!0,O.length,x,"",w.finish),O.pendingcb++,O.lastBufferedRequest=null,w.next?(O.corkedRequestsFree=w.next,w.next=null):O.corkedRequestsFree=new c(O),O.bufferedRequestCount=0}else{for(;T;){var R=T.chunk,F=T.encoding,B=T.callback;if(M(I,O,!1,O.objectMode?1:R.length,R,F,B),T=T.next,O.bufferedRequestCount--,O.writing)break}T===null&&(O.lastBufferedRequest=null)}O.bufferedRequest=T,O.bufferProcessing=!1}function U(I){return I.ending&&I.length===0&&I.bufferedRequest===null&&!I.finished&&!I.writing}function G(I,O){I._final(function(T){O.pendingcb--,T&&I.emit("error",T),O.prefinished=!0,I.emit("prefinish"),ee(I,O)})}function ee(I,O){var T=U(O);return T&&(function(S,x){x.prefinished||x.finalCalled||(typeof S._final=="function"?(x.pendingcb++,x.finalCalled=!0,u.nextTick(G,S,x)):(x.prefinished=!0,S.emit("prefinish")))}(I,O),O.pendingcb===0&&(O.finished=!0,I.emit("finish"))),T}h.inherits(C,g),A.prototype.getBuffer=function(){for(var I=this.bufferedRequest,O=[];I;)O.push(I),I=I.next;return O},function(){try{Object.defineProperty(A.prototype,"buffer",{get:f.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(y=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(I){return!!y.call(this,I)||this===C&&I&&I._writableState instanceof A}})):y=function(I){return I instanceof this},C.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},C.prototype.write=function(I,O,T){var S,x=this._writableState,w=!1,_=!x.objectMode&&(S=I,m.isBuffer(S)||S instanceof p);return _&&!m.isBuffer(I)&&(I=function(E){return m.from(E)}(I)),typeof O=="function"&&(T=O,O=null),_?O="buffer":O||(O=x.defaultEncoding),typeof T!="function"&&(T=b),x.ended?function(E,R){var F=new Error("write after end");E.emit("error",F),u.nextTick(R,F)}(this,T):(_||function(E,R,F,B){var X=!0,K=!1;return F===null?K=new TypeError("May not write null values to stream"):typeof F=="string"||F===void 0||R.objectMode||(K=new TypeError("Invalid non-string/buffer chunk")),K&&(E.emit("error",K),u.nextTick(B,K),X=!1),X}(this,x,I,T))&&(x.pendingcb++,w=function(E,R,F,B,X,K){if(!F){var te=function(L,V,J){return L.objectMode||L.decodeStrings===!1||typeof V!="string"||(V=m.from(V,J)),V}(R,B,X);B!==te&&(F=!0,X="buffer",B=te)}var $=R.objectMode?1:B.length;R.length+=$;var q=R.length<R.highWaterMark;if(q||(R.needDrain=!0),R.writing||R.corked){var k=R.lastBufferedRequest;R.lastBufferedRequest={chunk:B,encoding:X,isBuf:F,callback:K,next:null},k?k.next=R.lastBufferedRequest:R.bufferedRequest=R.lastBufferedRequest,R.bufferedRequestCount+=1}else M(E,R,!1,$,B,X,K);return q}(this,x,_,I,O,T)),w},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){var I=this._writableState;I.corked&&(I.corked--,I.writing||I.corked||I.bufferProcessing||!I.bufferedRequest||W(this,I))},C.prototype.setDefaultEncoding=function(I){if(typeof I=="string"&&(I=I.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+I);return this._writableState.defaultEncoding=I,this},Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(I,O,T){T(new Error("_write() is not implemented"))},C.prototype._writev=null,C.prototype.end=function(I,O,T){var S=this._writableState;typeof I=="function"?(T=I,I=null,O=null):typeof O=="function"&&(T=O,O=null),I!=null&&this.write(I,O),S.corked&&(S.corked=1,this.uncork()),S.ending||function(x,w,_){w.ending=!0,ee(x,w),_&&(w.finished?u.nextTick(_):x.once("finish",_)),w.ended=!0,x.writable=!1}(this,S,T)},Object.defineProperty(C.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(I){this._writableState&&(this._writableState.destroyed=I)}}),C.prototype.destroy=v.destroy,C.prototype._undestroy=v.undestroy,C.prototype._destroy=function(I,O){this.end(),O(I)}}).call(this)}).call(this,e("_process"),typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{},e("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,inherits:440,"process-nextick-args":466,"safe-buffer":520,timers:523,"util-deprecate":524}],513:[function(e,n,i){var a=e("safe-buffer").Buffer,o=e("util");n.exports=function(){function s(){(function(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")})(this,s),this.head=null,this.tail=null,this.length=0}return s.prototype.push=function(u){var c={data:u,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length},s.prototype.unshift=function(u){var c={data:u,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length},s.prototype.shift=function(){if(this.length!==0){var u=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,u}},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(u){if(this.length===0)return"";for(var c=this.head,l=""+c.data;c=c.next;)l+=u+c.data;return l},s.prototype.concat=function(u){if(this.length===0)return a.alloc(0);for(var c,l,d,h=a.allocUnsafe(u>>>0),f=this.head,g=0;f;)c=f.data,l=h,d=g,c.copy(l,d),g+=f.data.length,f=f.next;return h},s}(),o&&o.inspect&&o.inspect.custom&&(n.exports.prototype[o.inspect.custom]=function(){var s=o.inspect({length:this.length});return this.constructor.name+" "+s})},{"safe-buffer":520,util:188}],514:[function(e,n,i){var a=e("process-nextick-args");function o(s,u){s.emit("error",u)}n.exports={destroy:function(s,u){var c=this,l=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return l||d?(u?u(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.nextTick(o,this,s)):a.nextTick(o,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(h){!u&&h?c._writableState?c._writableState.errorEmitted||(c._writableState.errorEmitted=!0,a.nextTick(o,c,h)):a.nextTick(o,c,h):u&&u(h)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":466}],515:[function(e,n,i){arguments[4][490][0].apply(i,arguments)},{dup:490,events:422}],516:[function(e,n,i){n.exports=e("./readable").PassThrough},{"./readable":517}],517:[function(e,n,i){(i=n.exports=e("./lib/_stream_readable.js")).Stream=i,i.Readable=i,i.Writable=e("./lib/_stream_writable.js"),i.Duplex=e("./lib/_stream_duplex.js"),i.Transform=e("./lib/_stream_transform.js"),i.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(e,n,i){n.exports=e("./readable").Transform},{"./readable":517}],519:[function(e,n,i){n.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(e,n,i){arguments[4][217][0].apply(i,arguments)},{buffer:220,dup:217}],521:[function(e,n,i){arguments[4][218][0].apply(i,arguments)},{dup:218,"safe-buffer":520}],522:[function(e,n,i){arguments[4][218][0].apply(i,arguments)},{dup:218,"safe-buffer":494}],523:[function(e,n,i){(function(a,o){(function(){var s=e("process/browser.js").nextTick,u=Function.prototype.apply,c=Array.prototype.slice,l={},d=0;function h(f,g){this._id=f,this._clearFn=g}i.setTimeout=function(){return new h(u.call(setTimeout,window,arguments),clearTimeout)},i.setInterval=function(){return new h(u.call(setInterval,window,arguments),clearInterval)},i.clearTimeout=i.clearInterval=function(f){f.close()},h.prototype.unref=h.prototype.ref=function(){},h.prototype.close=function(){this._clearFn.call(window,this._id)},i.enroll=function(f,g){clearTimeout(f._idleTimeoutId),f._idleTimeout=g},i.unenroll=function(f){clearTimeout(f._idleTimeoutId),f._idleTimeout=-1},i._unrefActive=i.active=function(f){clearTimeout(f._idleTimeoutId);var g=f._idleTimeout;g>=0&&(f._idleTimeoutId=setTimeout(function(){f._onTimeout&&f._onTimeout()},g))},i.setImmediate=typeof a=="function"?a:function(f){var g=d++,m=!(arguments.length<2)&&c.call(arguments,1);return l[g]=!0,s(function(){l[g]&&(m?f.apply(null,m):f.call(null),i.clearImmediate(g))}),g},i.clearImmediate=typeof o=="function"?o:function(f){delete l[f]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(e,n,i){(function(a){(function(){function o(s){try{if(!a.localStorage)return!1}catch{return!1}var u=a.localStorage[s];return u!=null&&String(u).toLowerCase()==="true"}n.exports=function(s,u){if(o("noDeprecation"))return s;var c=!1;return function(){if(!c){if(o("throwDeprecation"))throw new Error(u);o("traceDeprecation")?console.trace(u):console.warn(u),c=!0}return s.apply(this,arguments)}}}).call(this)}).call(this,typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],525:[function(e,n,i){typeof Object.create=="function"?n.exports=function(a,o){a.super_=o,a.prototype=Object.create(o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})}:n.exports=function(a,o){a.super_=o;var s=function(){};s.prototype=o.prototype,a.prototype=new s,a.prototype.constructor=a}},{}],526:[function(e,n,i){n.exports=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"}},{}],527:[function(e,n,i){(function(a,o){(function(){var s=/%[sdj%]/g;i.format=function(x){if(!A(x)){for(var w=[],_=0;_<arguments.length;_++)w.push(l(arguments[_]));return w.join(" ")}_=1;for(var E=arguments,R=E.length,F=String(x).replace(s,function(X){if(X==="%%")return"%";if(_>=R)return X;switch(X){case"%s":return String(E[_++]);case"%d":return Number(E[_++]);case"%j":try{return JSON.stringify(E[_++])}catch{return"[Circular]"}default:return X}}),B=E[_];_<R;B=E[++_])v(B)||!z(B)?F+=" "+B:F+=" "+l(B);return F},i.deprecate=function(x,w){if(C(o.process))return function(){return i.deprecate(x,w).apply(this,arguments)};if(a.noDeprecation===!0)return x;var _=!1;return function(){if(!_){if(a.throwDeprecation)throw new Error(w);a.traceDeprecation?console.trace(w):console.error(w),_=!0}return x.apply(this,arguments)}};var u,c={};function l(x,w){var _={seen:[],stylize:h};return arguments.length>=3&&(_.depth=arguments[2]),arguments.length>=4&&(_.colors=arguments[3]),y(w)?_.showHidden=w:w&&i._extend(_,w),C(_.showHidden)&&(_.showHidden=!1),C(_.depth)&&(_.depth=2),C(_.colors)&&(_.colors=!1),C(_.customInspect)&&(_.customInspect=!0),_.colors&&(_.stylize=d),f(_,x,_.depth)}function d(x,w){var _=l.styles[w];return _?"["+l.colors[_][0]+"m"+x+"["+l.colors[_][1]+"m":x}function h(x,w){return x}function f(x,w,_){if(x.customInspect&&w&&G(w.inspect)&&w.inspect!==i.inspect&&(!w.constructor||w.constructor.prototype!==w)){var E=w.inspect(_,x);return A(E)||(E=f(x,E,_)),E}var R=function(k,L){if(C(L))return k.stylize("undefined","undefined");if(A(L)){var V="'"+JSON.stringify(L).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return k.stylize(V,"string")}if(b(L))return k.stylize(""+L,"number");if(y(L))return k.stylize(""+L,"boolean");if(v(L))return k.stylize("null","null")}(x,w);if(R)return R;var F=Object.keys(w),B=function(k){var L={};return k.forEach(function(V,J){L[V]=!0}),L}(F);if(x.showHidden&&(F=Object.getOwnPropertyNames(w)),U(w)&&(F.indexOf("message")>=0||F.indexOf("description")>=0))return g(w);if(F.length===0){if(G(w)){var X=w.name?": "+w.name:"";return x.stylize("[Function"+X+"]","special")}if(M(w))return x.stylize(RegExp.prototype.toString.call(w),"regexp");if(W(w))return x.stylize(Date.prototype.toString.call(w),"date");if(U(w))return g(w)}var K,te="",$=!1,q=["{","}"];return p(w)&&($=!0,q=["[","]"]),G(w)&&(te=" [Function"+(w.name?": "+w.name:"")+"]"),M(w)&&(te=" "+RegExp.prototype.toString.call(w)),W(w)&&(te=" "+Date.prototype.toUTCString.call(w)),U(w)&&(te=" "+g(w)),F.length!==0||$&&w.length!=0?_<0?M(w)?x.stylize(RegExp.prototype.toString.call(w),"regexp"):x.stylize("[Object]","special"):(x.seen.push(w),K=$?function(k,L,V,J,re){for(var ae=[],j=0,ue=L.length;j<ue;++j)S(L,String(j))?ae.push(m(k,L,V,J,String(j),!0)):ae.push("");return re.forEach(function(Q){Q.match(/^\d+$/)||ae.push(m(k,L,V,J,Q,!0))}),ae}(x,w,_,B,F):F.map(function(k){return m(x,w,_,B,k,$)}),x.seen.pop(),function(k,L,V){return k.reduce(function(J,re){return re.indexOf(`
`)>=0,J+re.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?V[0]+(L===""?"":L+`
`)+" "+k.join(`,
`)+" "+V[1]:V[0]+L+" "+k.join(", ")+" "+V[1]}(K,te,q)):q[0]+te+q[1]}function g(x){return"["+Error.prototype.toString.call(x)+"]"}function m(x,w,_,E,R,F){var B,X,K;if((K=Object.getOwnPropertyDescriptor(w,R)||{value:w[R]}).get?X=K.set?x.stylize("[Getter/Setter]","special"):x.stylize("[Getter]","special"):K.set&&(X=x.stylize("[Setter]","special")),S(E,R)||(B="["+R+"]"),X||(x.seen.indexOf(K.value)<0?(X=v(_)?f(x,K.value,null):f(x,K.value,_-1)).indexOf(`
`)>-1&&(X=F?X.split(`
`).map(function(te){return" "+te}).join(`
`).substr(2):`
`+X.split(`
`).map(function(te){return" "+te}).join(`
`)):X=x.stylize("[Circular]","special")),C(B)){if(F&&R.match(/^\d+$/))return X;(B=JSON.stringify(""+R)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(B=B.substr(1,B.length-2),B=x.stylize(B,"name")):(B=B.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),B=x.stylize(B,"string"))}return B+": "+X}function p(x){return Array.isArray(x)}function y(x){return typeof x=="boolean"}function v(x){return x===null}function b(x){return typeof x=="number"}function A(x){return typeof x=="string"}function C(x){return x===void 0}function M(x){return z(x)&&ee(x)==="[object RegExp]"}function z(x){return typeof x=="object"&&x!==null}function W(x){return z(x)&&ee(x)==="[object Date]"}function U(x){return z(x)&&(ee(x)==="[object Error]"||x instanceof Error)}function G(x){return typeof x=="function"}function ee(x){return Object.prototype.toString.call(x)}function I(x){return x<10?"0"+x.toString(10):x.toString(10)}i.debuglog=function(x){if(C(u)&&(u=a.env.NODE_DEBUG||""),x=x.toUpperCase(),!c[x])if(new RegExp("\\b"+x+"\\b","i").test(u)){var w=a.pid;c[x]=function(){var _=i.format.apply(i,arguments);console.error("%s %d: %s",x,w,_)}}else c[x]=function(){};return c[x]},i.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},i.isArray=p,i.isBoolean=y,i.isNull=v,i.isNullOrUndefined=function(x){return x==null},i.isNumber=b,i.isString=A,i.isSymbol=function(x){return typeof x=="symbol"},i.isUndefined=C,i.isRegExp=M,i.isObject=z,i.isDate=W,i.isError=U,i.isFunction=G,i.isPrimitive=function(x){return x===null||typeof x=="boolean"||typeof x=="number"||typeof x=="string"||typeof x=="symbol"||x===void 0},i.isBuffer=e("./support/isBuffer");var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var x=new Date,w=[I(x.getHours()),I(x.getMinutes()),I(x.getSeconds())].join(":");return[x.getDate(),O[x.getMonth()],w].join(" ")}function S(x,w){return Object.prototype.hasOwnProperty.call(x,w)}i.log=function(){console.log("%s - %s",T(),i.format.apply(i,arguments))},i.inherits=e("inherits"),i._extend=function(x,w){if(!w||!z(w))return x;for(var _=Object.keys(w),E=_.length;E--;)x[_[E]]=w[_[E]];return x}}).call(this)}).call(this,e("_process"),typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"v1",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(i,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(i,"v4",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(i,"v5",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(i,"NIL",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(i,"version",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(i,"validate",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(i,"stringify",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(i,"parse",{enumerable:!0,get:function(){return f.default}});var a=g(e("./v1.js")),o=g(e("./v3.js")),s=g(e("./v4.js")),u=g(e("./v5.js")),c=g(e("./nil.js")),l=g(e("./version.js")),d=g(e("./validate.js")),h=g(e("./stringify.js")),f=g(e("./parse.js"));function g(m){return m&&m.__esModule?m:{default:m}}},{"./nil.js":530,"./parse.js":531,"./stringify.js":535,"./v1.js":536,"./v3.js":537,"./v4.js":539,"./v5.js":540,"./validate.js":541,"./version.js":542}],529:[function(e,n,i){function a(f){return 14+(f+64>>>9<<4)+1}function o(f,g){const m=(65535&f)+(65535&g);return(f>>16)+(g>>16)+(m>>16)<<16|65535&m}function s(f,g,m,p,y,v){return o((b=o(o(g,f),o(p,v)))<<(A=y)|b>>>32-A,m);var b,A}function u(f,g,m,p,y,v,b){return s(g&m|~g&p,f,g,y,v,b)}function c(f,g,m,p,y,v,b){return s(g&p|m&~p,f,g,y,v,b)}function l(f,g,m,p,y,v,b){return s(g^m^p,f,g,y,v,b)}function d(f,g,m,p,y,v,b){return s(m^(g|~p),f,g,y,v,b)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var h=function(f){if(typeof f=="string"){const g=unescape(encodeURIComponent(f));f=new Uint8Array(g.length);for(let m=0;m<g.length;++m)f[m]=g.charCodeAt(m)}return function(g){const m=[],p=32*g.length;for(let y=0;y<p;y+=8){const v=g[y>>5]>>>y%32&255,b=parseInt("0123456789abcdef".charAt(v>>>4&15)+"0123456789abcdef".charAt(15&v),16);m.push(b)}return m}(function(g,m){g[m>>5]|=128<<m%32,g[a(m)-1]=m;let p=1732584193,y=-271733879,v=-1732584194,b=271733878;for(let A=0;A<g.length;A+=16){const C=p,M=y,z=v,W=b;p=u(p,y,v,b,g[A],7,-680876936),b=u(b,p,y,v,g[A+1],12,-389564586),v=u(v,b,p,y,g[A+2],17,606105819),y=u(y,v,b,p,g[A+3],22,-1044525330),p=u(p,y,v,b,g[A+4],7,-176418897),b=u(b,p,y,v,g[A+5],12,1200080426),v=u(v,b,p,y,g[A+6],17,-1473231341),y=u(y,v,b,p,g[A+7],22,-45705983),p=u(p,y,v,b,g[A+8],7,1770035416),b=u(b,p,y,v,g[A+9],12,-1958414417),v=u(v,b,p,y,g[A+10],17,-42063),y=u(y,v,b,p,g[A+11],22,-1990404162),p=u(p,y,v,b,g[A+12],7,1804603682),b=u(b,p,y,v,g[A+13],12,-40341101),v=u(v,b,p,y,g[A+14],17,-1502002290),y=u(y,v,b,p,g[A+15],22,1236535329),p=c(p,y,v,b,g[A+1],5,-165796510),b=c(b,p,y,v,g[A+6],9,-1069501632),v=c(v,b,p,y,g[A+11],14,643717713),y=c(y,v,b,p,g[A],20,-373897302),p=c(p,y,v,b,g[A+5],5,-701558691),b=c(b,p,y,v,g[A+10],9,38016083),v=c(v,b,p,y,g[A+15],14,-660478335),y=c(y,v,b,p,g[A+4],20,-405537848),p=c(p,y,v,b,g[A+9],5,568446438),b=c(b,p,y,v,g[A+14],9,-1019803690),v=c(v,b,p,y,g[A+3],14,-187363961),y=c(y,v,b,p,g[A+8],20,1163531501),p=c(p,y,v,b,g[A+13],5,-1444681467),b=c(b,p,y,v,g[A+2],9,-51403784),v=c(v,b,p,y,g[A+7],14,1735328473),y=c(y,v,b,p,g[A+12],20,-1926607734),p=l(p,y,v,b,g[A+5],4,-378558),b=l(b,p,y,v,g[A+8],11,-2022574463),v=l(v,b,p,y,g[A+11],16,1839030562),y=l(y,v,b,p,g[A+14],23,-35309556),p=l(p,y,v,b,g[A+1],4,-1530992060),b=l(b,p,y,v,g[A+4],11,1272893353),v=l(v,b,p,y,g[A+7],16,-155497632),y=l(y,v,b,p,g[A+10],23,-1094730640),p=l(p,y,v,b,g[A+13],4,681279174),b=l(b,p,y,v,g[A],11,-358537222),v=l(v,b,p,y,g[A+3],16,-722521979),y=l(y,v,b,p,g[A+6],23,76029189),p=l(p,y,v,b,g[A+9],4,-640364487),b=l(b,p,y,v,g[A+12],11,-421815835),v=l(v,b,p,y,g[A+15],16,530742520),y=l(y,v,b,p,g[A+2],23,-995338651),p=d(p,y,v,b,g[A],6,-198630844),b=d(b,p,y,v,g[A+7],10,1126891415),v=d(v,b,p,y,g[A+14],15,-1416354905),y=d(y,v,b,p,g[A+5],21,-57434055),p=d(p,y,v,b,g[A+12],6,1700485571),b=d(b,p,y,v,g[A+3],10,-1894986606),v=d(v,b,p,y,g[A+10],15,-1051523),y=d(y,v,b,p,g[A+1],21,-2054922799),p=d(p,y,v,b,g[A+8],6,1873313359),b=d(b,p,y,v,g[A+15],10,-30611744),v=d(v,b,p,y,g[A+6],15,-1560198380),y=d(y,v,b,p,g[A+13],21,1309151649),p=d(p,y,v,b,g[A+4],6,-145523070),b=d(b,p,y,v,g[A+11],10,-1120210379),v=d(v,b,p,y,g[A+2],15,718787259),y=d(y,v,b,p,g[A+9],21,-343485551),p=o(p,C),y=o(y,M),v=o(v,z),b=o(b,W)}return[p,y,v,b]}(function(g){if(g.length===0)return[];const m=8*g.length,p=new Uint32Array(a(m));for(let y=0;y<m;y+=8)p[y>>5]|=(255&g[y/8])<<y%32;return p}(f),8*f.length))};i.default=h},{}],530:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,i.default="00000000-0000-0000-0000-000000000000"},{}],531:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a,o=(a=e("./validate.js"))&&a.__esModule?a:{default:a},s=function(u){if(!(0,o.default)(u))throw TypeError("Invalid UUID");let c;const l=new Uint8Array(16);return l[0]=(c=parseInt(u.slice(0,8),16))>>>24,l[1]=c>>>16&255,l[2]=c>>>8&255,l[3]=255&c,l[4]=(c=parseInt(u.slice(9,13),16))>>>8,l[5]=255&c,l[6]=(c=parseInt(u.slice(14,18),16))>>>8,l[7]=255&c,l[8]=(c=parseInt(u.slice(19,23),16))>>>8,l[9]=255&c,l[10]=(c=parseInt(u.slice(24,36),16))/1099511627776&255,l[11]=c/4294967296&255,l[12]=c>>>24&255,l[13]=c>>>16&255,l[14]=c>>>8&255,l[15]=255&c,l};i.default=s},{"./validate.js":541}],532:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,i.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{}],533:[function(e,n,i){let a;Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){if(!a&&(a=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!a))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(o)};const o=new Uint8Array(16)},{}],534:[function(e,n,i){function a(u,c,l,d){switch(u){case 0:return c&l^~c&d;case 1:return c^l^d;case 2:return c&l^c&d^l&d;case 3:return c^l^d}}function o(u,c){return u<<c|u>>>32-c}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=function(u){const c=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof u=="string"){const g=unescape(encodeURIComponent(u));u=[];for(let m=0;m<g.length;++m)u.push(g.charCodeAt(m))}else Array.isArray(u)||(u=Array.prototype.slice.call(u));u.push(128);const d=u.length/4+2,h=Math.ceil(d/16),f=new Array(h);for(let g=0;g<h;++g){const m=new Uint32Array(16);for(let p=0;p<16;++p)m[p]=u[64*g+4*p]<<24|u[64*g+4*p+1]<<16|u[64*g+4*p+2]<<8|u[64*g+4*p+3];f[g]=m}f[h-1][14]=8*(u.length-1)/Math.pow(2,32),f[h-1][14]=Math.floor(f[h-1][14]),f[h-1][15]=8*(u.length-1)&4294967295;for(let g=0;g<h;++g){const m=new Uint32Array(80);for(let C=0;C<16;++C)m[C]=f[g][C];for(let C=16;C<80;++C)m[C]=o(m[C-3]^m[C-8]^m[C-14]^m[C-16],1);let p=l[0],y=l[1],v=l[2],b=l[3],A=l[4];for(let C=0;C<80;++C){const M=Math.floor(C/20),z=o(p,5)+a(M,y,v,b)+A+c[M]+m[C]>>>0;A=b,b=v,v=o(y,30)>>>0,y=p,p=z}l[0]=l[0]+p>>>0,l[1]=l[1]+y>>>0,l[2]=l[2]+v>>>0,l[3]=l[3]+b>>>0,l[4]=l[4]+A>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,255&l[0],l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,255&l[1],l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,255&l[2],l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,255&l[3],l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,255&l[4]]};i.default=s},{}],535:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a,o=(a=e("./validate.js"))&&a.__esModule?a:{default:a};const s=[];for(let c=0;c<256;++c)s.push((c+256).toString(16).substr(1));var u=function(c){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const d=(s[c[l+0]]+s[c[l+1]]+s[c[l+2]]+s[c[l+3]]+"-"+s[c[l+4]]+s[c[l+5]]+"-"+s[c[l+6]]+s[c[l+7]]+"-"+s[c[l+8]]+s[c[l+9]]+"-"+s[c[l+10]]+s[c[l+11]]+s[c[l+12]]+s[c[l+13]]+s[c[l+14]]+s[c[l+15]]).toLowerCase();if(!(0,o.default)(d))throw TypeError("Stringified UUID is invalid");return d};i.default=u},{"./validate.js":541}],536:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=s(e("./rng.js")),o=s(e("./stringify.js"));function s(f){return f&&f.__esModule?f:{default:f}}let u,c,l=0,d=0;var h=function(f,g,m){let p=g&&m||0;const y=g||new Array(16);let v=(f=f||{}).node||u,b=f.clockseq!==void 0?f.clockseq:c;if(v==null||b==null){const U=f.random||(f.rng||a.default)();v==null&&(v=u=[1|U[0],U[1],U[2],U[3],U[4],U[5]]),b==null&&(b=c=16383&(U[6]<<8|U[7]))}let A=f.msecs!==void 0?f.msecs:Date.now(),C=f.nsecs!==void 0?f.nsecs:d+1;const M=A-l+(C-d)/1e4;if(M<0&&f.clockseq===void 0&&(b=b+1&16383),(M<0||A>l)&&f.nsecs===void 0&&(C=0),C>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=A,d=C,c=b,A+=122192928e5;const z=(1e4*(268435455&A)+C)%4294967296;y[p++]=z>>>24&255,y[p++]=z>>>16&255,y[p++]=z>>>8&255,y[p++]=255&z;const W=A/4294967296*1e4&268435455;y[p++]=W>>>8&255,y[p++]=255&W,y[p++]=W>>>24&15|16,y[p++]=W>>>16&255,y[p++]=b>>>8|128,y[p++]=255&b;for(let U=0;U<6;++U)y[p+U]=v[U];return g||(0,o.default)(y)};i.default=h},{"./rng.js":533,"./stringify.js":535}],537:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=s(e("./v35.js")),o=s(e("./md5.js"));function s(c){return c&&c.__esModule?c:{default:c}}var u=(0,a.default)("v3",48,o.default);i.default=u},{"./md5.js":529,"./v35.js":538}],538:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(l,d,h){function f(g,m,p,y){if(typeof g=="string"&&(g=function(b){b=unescape(encodeURIComponent(b));const A=[];for(let C=0;C<b.length;++C)A.push(b.charCodeAt(C));return A}(g)),typeof m=="string"&&(m=(0,o.default)(m)),m.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let v=new Uint8Array(16+g.length);if(v.set(m),v.set(g,m.length),v=h(v),v[6]=15&v[6]|d,v[8]=63&v[8]|128,p){y=y||0;for(let b=0;b<16;++b)p[y+b]=v[b];return p}return(0,a.default)(v)}try{f.name=l}catch{}return f.DNS=u,f.URL=c,f},i.URL=i.DNS=void 0;var a=s(e("./stringify.js")),o=s(e("./parse.js"));function s(l){return l&&l.__esModule?l:{default:l}}const u="6ba7b810-9dad-11d1-80b4-00c04fd430c8";i.DNS=u;const c="6ba7b811-9dad-11d1-80b4-00c04fd430c8";i.URL=c},{"./parse.js":531,"./stringify.js":535}],539:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=s(e("./rng.js")),o=s(e("./stringify.js"));function s(c){return c&&c.__esModule?c:{default:c}}var u=function(c,l,d){const h=(c=c||{}).random||(c.rng||a.default)();if(h[6]=15&h[6]|64,h[8]=63&h[8]|128,l){d=d||0;for(let f=0;f<16;++f)l[d+f]=h[f];return l}return(0,o.default)(h)};i.default=u},{"./rng.js":533,"./stringify.js":535}],540:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=s(e("./v35.js")),o=s(e("./sha1.js"));function s(c){return c&&c.__esModule?c:{default:c}}var u=(0,a.default)("v5",80,o.default);i.default=u},{"./sha1.js":534,"./v35.js":538}],541:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a,o=(a=e("./regex.js"))&&a.__esModule?a:{default:a},s=function(u){return typeof u=="string"&&o.default.test(u)};i.default=s},{"./regex.js":532}],542:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a,o=(a=e("./validate.js"))&&a.__esModule?a:{default:a},s=function(u){if(!(0,o.default)(u))throw TypeError("Invalid UUID");return parseInt(u.substr(14,1),16)};i.default=s},{"./validate.js":541}],543:[function(e,n,i){/**
* Character classes and associated utilities for the 5th edition of XML 1.0.
*
* @author Louis-Dominique Dubeau
* @license MIT
* @copyright Louis-Dominique Dubeau
*/Object.defineProperty(i,"__esModule",{value:!0}),i.CHAR=`
\r -\uD7FF\uE000-\uFFFD\u{10000}-\u{10FFFF}`,i.S=` \r
`,i.NAME_START_CHAR=":A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}",i.NAME_CHAR="-"+i.NAME_START_CHAR+".0-9\xB7\u0300-\u036F\u203F-\u2040",i.CHAR_RE=new RegExp("^["+i.CHAR+"]$","u"),i.S_RE=new RegExp("^["+i.S+"]+$","u"),i.NAME_START_CHAR_RE=new RegExp("^["+i.NAME_START_CHAR+"]$","u"),i.NAME_CHAR_RE=new RegExp("^["+i.NAME_CHAR+"]$","u"),i.NAME_RE=new RegExp("^["+i.NAME_START_CHAR+"]["+i.NAME_CHAR+"]*$","u"),i.NMTOKEN_RE=new RegExp("^["+i.NAME_CHAR+"]+$","u");function a(o){return o>=65&&o<=90||o>=97&&o<=122||o===58||o===95||o===8204||o===8205||o>=192&&o<=214||o>=216&&o<=246||o>=248&&o<=767||o>=880&&o<=893||o>=895&&o<=8191||o>=8304&&o<=8591||o>=11264&&o<=12271||o>=12289&&o<=55295||o>=63744&&o<=64975||o>=65008&&o<=65533||o>=65536&&o<=983039}i.S_LIST=[32,10,13,9],i.isChar=function(o){return o>=32&&o<=55295||o===10||o===13||o===9||o>=57344&&o<=65533||o>=65536&&o<=1114111},i.isS=function(o){return o===32||o===10||o===13||o===9},i.isNameStartChar=a,i.isNameChar=function(o){return a(o)||o>=48&&o<=57||o===45||o===46||o===183||o>=768&&o<=879||o>=8255&&o<=8256}},{}],544:[function(e,n,i){/**
* Character classes and associated utilities for the 2nd edition of XML 1.1.
*
* @author Louis-Dominique Dubeau
* @license MIT
* @copyright Louis-Dominique Dubeau
*/Object.defineProperty(i,"__esModule",{value:!0}),i.CHAR="-\uD7FF\uE000-\uFFFD\u{10000}-\u{10FFFF}",i.RESTRICTED_CHAR="-\b\v\f-\x7F-\x84\x86-\x9F",i.S=` \r
`,i.NAME_START_CHAR=":A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}",i.NAME_CHAR="-"+i.NAME_START_CHAR+".0-9\xB7\u0300-\u036F\u203F-\u2040",i.CHAR_RE=new RegExp("^["+i.CHAR+"]$","u"),i.RESTRICTED_CHAR_RE=new RegExp("^["+i.RESTRICTED_CHAR+"]$","u"),i.S_RE=new RegExp("^["+i.S+"]+$","u"),i.NAME_START_CHAR_RE=new RegExp("^["+i.NAME_START_CHAR+"]$","u"),i.NAME_CHAR_RE=new RegExp("^["+i.NAME_CHAR+"]$","u"),i.NAME_RE=new RegExp("^["+i.NAME_START_CHAR+"]["+i.NAME_CHAR+"]*$","u"),i.NMTOKEN_RE=new RegExp("^["+i.NAME_CHAR+"]+$","u");function a(o){return o>=65&&o<=90||o>=97&&o<=122||o===58||o===95||o===8204||o===8205||o>=192&&o<=214||o>=216&&o<=246||o>=248&&o<=767||o>=880&&o<=893||o>=895&&o<=8191||o>=8304&&o<=8591||o>=11264&&o<=12271||o>=12289&&o<=55295||o>=63744&&o<=64975||o>=65008&&o<=65533||o>=65536&&o<=983039}i.S_LIST=[32,10,13,9],i.isChar=function(o){return o>=1&&o<=55295||o>=57344&&o<=65533||o>=65536&&o<=1114111},i.isRestrictedChar=function(o){return o>=1&&o<=8||o===11||o===12||o>=14&&o<=31||o>=127&&o<=132||o>=134&&o<=159},i.isCharAndNotRestricted=function(o){return o===9||o===10||o===13||o>31&&o<127||o===133||o>159&&o<=55295||o>=57344&&o<=65533||o>=65536&&o<=1114111},i.isS=function(o){return o===32||o===10||o===13||o===9},i.isNameStartChar=a,i.isNameChar=function(o){return a(o)||o>=48&&o<=57||o===45||o===46||o===183||o>=768&&o<=879||o>=8255&&o<=8256}},{}],545:[function(e,n,i){/**
* Character class utilities for XML NS 1.0 edition 3.
*
* @author Louis-Dominique Dubeau
* @license MIT
* @copyright Louis-Dominique Dubeau
*/function a(o){return o>=65&&o<=90||o===95||o>=97&&o<=122||o>=192&&o<=214||o>=216&&o<=246||o>=248&&o<=767||o>=880&&o<=893||o>=895&&o<=8191||o>=8204&&o<=8205||o>=8304&&o<=8591||o>=11264&&o<=12271||o>=12289&&o<=55295||o>=63744&&o<=64975||o>=65008&&o<=65533||o>=65536&&o<=983039}Object.defineProperty(i,"__esModule",{value:!0}),i.NC_NAME_START_CHAR="A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}",i.NC_NAME_CHAR="-"+i.NC_NAME_START_CHAR+".0-9\xB7\u0300-\u036F\u203F-\u2040",i.NC_NAME_START_CHAR_RE=new RegExp("^["+i.NC_NAME_START_CHAR+"]$","u"),i.NC_NAME_CHAR_RE=new RegExp("^["+i.NC_NAME_CHAR+"]$","u"),i.NC_NAME_RE=new RegExp("^["+i.NC_NAME_START_CHAR+"]["+i.NC_NAME_CHAR+"]*$","u"),i.isNCNameStartChar=a,i.isNCNameChar=function(o){return a(o)||o===45||o===46||o>=48&&o<=57||o===183||o>=768&&o<=879||o>=8255&&o<=8256}},{}]},{},[15])(15)})})(Bb);var gX=Zv(Bb.exports),Ub={exports:{}},Pb={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Lb={exports:{}},AN=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},TN=AN,SN=Array.prototype.concat,DN=Array.prototype.slice,jb=Lb.exports=function(t){for(var e=[],n=0,i=t.length;n<i;n++){var a=t[n];TN(a)?e=SN.call(e,DN.call(a)):e.push(a)}return e};jb.wrap=function(r){return function(){return r(jb(arguments))}};var Qc=Pb,el=Lb.exports,Wb=Object.hasOwnProperty,zb=Object.create(null);for(var t1 in Qc)Wb.call(Qc,t1)&&(zb[Qc[t1]]=t1);var zi=Ub.exports={to:{},get:{}};zi.get=function(r){var t=r.substring(0,3).toLowerCase(),e,n;switch(t){case"hsl":e=zi.get.hsl(r),n="hsl";break;case"hwb":e=zi.get.hwb(r),n="hwb";break;default:e=zi.get.rgb(r),n="rgb";break}return e?{model:n,value:e}:null};zi.get.rgb=function(r){if(!r)return null;var t=/^#([a-f0-9]{3,4})$/i,e=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^(\w+)$/,o=[0,0,0,1],s,u,c;if(s=r.match(e)){for(c=s[2],s=s[1],u=0;u<3;u++){var l=u*2;o[u]=parseInt(s.slice(l,l+2),16)}c&&(o[3]=parseInt(c,16)/255)}else if(s=r.match(t)){for(s=s[1],c=s[3],u=0;u<3;u++)o[u]=parseInt(s[u]+s[u],16);c&&(o[3]=parseInt(c+c,16)/255)}else if(s=r.match(n)){for(u=0;u<3;u++)o[u]=parseInt(s[u+1],0);s[4]&&(s[5]?o[3]=parseFloat(s[4])*.01:o[3]=parseFloat(s[4]))}else if(s=r.match(i)){for(u=0;u<3;u++)o[u]=Math.round(parseFloat(s[u+1])*2.55);s[4]&&(s[5]?o[3]=parseFloat(s[4])*.01:o[3]=parseFloat(s[4]))}else return(s=r.match(a))?s[1]==="transparent"?[0,0,0,0]:Wb.call(Qc,s[1])?(o=Qc[s[1]],o[3]=1,o):null:null;for(u=0;u<3;u++)o[u]=Qo(o[u],0,255);return o[3]=Qo(o[3],0,1),o};zi.get.hsl=function(r){if(!r)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,e=r.match(t);if(e){var n=parseFloat(e[4]),i=(parseFloat(e[1])%360+360)%360,a=Qo(parseFloat(e[2]),0,100),o=Qo(parseFloat(e[3]),0,100),s=Qo(isNaN(n)?1:n,0,1);return[i,a,o,s]}return null};zi.get.hwb=function(r){if(!r)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,e=r.match(t);if(e){var n=parseFloat(e[4]),i=(parseFloat(e[1])%360+360)%360,a=Qo(parseFloat(e[2]),0,100),o=Qo(parseFloat(e[3]),0,100),s=Qo(isNaN(n)?1:n,0,1);return[i,a,o,s]}return null};zi.to.hex=function(){var r=el(arguments);return"#"+Dh(r[0])+Dh(r[1])+Dh(r[2])+(r[3]<1?Dh(Math.round(r[3]*255)):"")};zi.to.rgb=function(){var r=el(arguments);return r.length<4||r[3]===1?"rgb("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+")":"rgba("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+", "+r[3]+")"};zi.to.rgb.percent=function(){var r=el(arguments),t=Math.round(r[0]/255*100),e=Math.round(r[1]/255*100),n=Math.round(r[2]/255*100);return r.length<4||r[3]===1?"rgb("+t+"%, "+e+"%, "+n+"%)":"rgba("+t+"%, "+e+"%, "+n+"%, "+r[3]+")"};zi.to.hsl=function(){var r=el(arguments);return r.length<4||r[3]===1?"hsl("+r[0]+", "+r[1]+"%, "+r[2]+"%)":"hsla("+r[0]+", "+r[1]+"%, "+r[2]+"%, "+r[3]+")"};zi.to.hwb=function(){var r=el(arguments),t="";return r.length>=4&&r[3]!==1&&(t=", "+r[3]),"hwb("+r[0]+", "+r[1]+"%, "+r[2]+"%"+t+")"};zi.to.keyword=function(r){return zb[r.slice(0,3)]};function Qo(r,t,e){return Math.min(Math.max(t,r),e)}function Dh(r){var t=Math.round(r).toString(16).toUpperCase();return t.length<2?"0"+t:t}const tl=Pb,Hb={};for(const r of Object.keys(tl))Hb[tl[r]]=r;const bt={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var $b=bt;for(const r of Object.keys(bt)){if(!("channels"in bt[r]))throw new Error("missing channels property: "+r);if(!("labels"in bt[r]))throw new Error("missing channel labels property: "+r);if(bt[r].labels.length!==bt[r].channels)throw new Error("channel and label counts mismatch: "+r);const{channels:t,labels:e}=bt[r];delete bt[r].channels,delete bt[r].labels,Object.defineProperty(bt[r],"channels",{value:t}),Object.defineProperty(bt[r],"labels",{value:e})}bt.rgb.hsl=function(r){const t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(t,e,n),a=Math.max(t,e,n),o=a-i;let s,u;a===i?s=0:t===a?s=(e-n)/o:e===a?s=2+(n-t)/o:n===a&&(s=4+(t-e)/o),s=Math.min(s*60,360),s<0&&(s+=360);const c=(i+a)/2;return a===i?u=0:c<=.5?u=o/(a+i):u=o/(2-a-i),[s,u*100,c*100]};bt.rgb.hsv=function(r){let t,e,n,i,a;const o=r[0]/255,s=r[1]/255,u=r[2]/255,c=Math.max(o,s,u),l=c-Math.min(o,s,u),d=function(h){return(c-h)/6/l+1/2};return l===0?(i=0,a=0):(a=l/c,t=d(o),e=d(s),n=d(u),o===c?i=n-e:s===c?i=1/3+t-n:u===c&&(i=2/3+e-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,c*100]};bt.rgb.hwb=function(r){const t=r[0],e=r[1];let n=r[2];const i=bt.rgb.hsl(r)[0],a=1/255*Math.min(t,Math.min(e,n));return n=1-1/255*Math.max(t,Math.max(e,n)),[i,a*100,n*100]};bt.rgb.cmyk=function(r){const t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(1-t,1-e,1-n),a=(1-t-i)/(1-i)||0,o=(1-e-i)/(1-i)||0,s=(1-n-i)/(1-i)||0;return[a*100,o*100,s*100,i*100]};function CN(r,t){return(r[0]-t[0])**2+(r[1]-t[1])**2+(r[2]-t[2])**2}bt.rgb.keyword=function(r){const t=Hb[r];if(t)return t;let e=1/0,n;for(const i of Object.keys(tl)){const a=tl[i],o=CN(r,a);o<e&&(e=o,n=i)}return n};bt.keyword.rgb=function(r){return tl[r]};bt.rgb.xyz=function(r){let t=r[0]/255,e=r[1]/255,n=r[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=t*.4124+e*.3576+n*.1805,a=t*.2126+e*.7152+n*.0722,o=t*.0193+e*.1192+n*.9505;return[i*100,a*100,o*100]};bt.rgb.lab=function(r){const t=bt.rgb.xyz(r);let e=t[0],n=t[1],i=t[2];e/=95.047,n/=100,i/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*n-16,o=500*(e-n),s=200*(n-i);return[a,o,s]};bt.hsl.rgb=function(r){const t=r[0]/360,e=r[1]/100,n=r[2]/100;let i,a,o;if(e===0)return o=n*255,[o,o,o];n<.5?i=n*(1+e):i=n+e-n*e;const s=2*n-i,u=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?o=s+(i-s)*6*a:2*a<1?o=i:3*a<2?o=s+(i-s)*(2/3-a)*6:o=s,u[c]=o*255;return u};bt.hsl.hsv=function(r){const t=r[0];let e=r[1]/100,n=r[2]/100,i=e;const a=Math.max(n,.01);n*=2,e*=n<=1?n:2-n,i*=a<=1?a:2-a;const o=(n+e)/2,s=n===0?2*i/(a+i):2*e/(n+e);return[t,s*100,o*100]};bt.hsv.rgb=function(r){const t=r[0]/60,e=r[1]/100;let n=r[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),o=255*n*(1-e),s=255*n*(1-e*a),u=255*n*(1-e*(1-a));switch(n*=255,i){case 0:return[n,u,o];case 1:return[s,n,o];case 2:return[o,n,u];case 3:return[o,s,n];case 4:return[u,o,n];case 5:return[n,o,s]}};bt.hsv.hsl=function(r){const t=r[0],e=r[1]/100,n=r[2]/100,i=Math.max(n,.01);let a,o;o=(2-e)*n;const s=(2-e)*i;return a=e*i,a/=s<=1?s:2-s,a=a||0,o/=2,[t,a*100,o*100]};bt.hwb.rgb=function(r){const t=r[0]/360;let e=r[1]/100,n=r[2]/100;const i=e+n;let a;i>1&&(e/=i,n/=i);const o=Math.floor(6*t),s=1-n;a=6*t-o,(o&1)!=0&&(a=1-a);const u=e+a*(s-e);let c,l,d;switch(o){default:case 6:case 0:c=s,l=u,d=e;break;case 1:c=u,l=s,d=e;break;case 2:c=e,l=s,d=u;break;case 3:c=e,l=u,d=s;break;case 4:c=u,l=e,d=s;break;case 5:c=s,l=e,d=u;break}return[c*255,l*255,d*255]};bt.cmyk.rgb=function(r){const t=r[0]/100,e=r[1]/100,n=r[2]/100,i=r[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,e*(1-i)+i),s=1-Math.min(1,n*(1-i)+i);return[a*255,o*255,s*255]};bt.xyz.rgb=function(r){const t=r[0]/100,e=r[1]/100,n=r[2]/100;let i,a,o;return i=t*3.2406+e*-1.5372+n*-.4986,a=t*-.9689+e*1.8758+n*.0415,o=t*.0557+e*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]};bt.xyz.lab=function(r){let t=r[0],e=r[1],n=r[2];t/=95.047,e/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*e-16,a=500*(t-e),o=200*(e-n);return[i,a,o]};bt.lab.xyz=function(r){const t=r[0],e=r[1],n=r[2];let i,a,o;a=(t+16)/116,i=e/500+a,o=a-n/200;const s=a**3,u=i**3,c=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]};bt.lab.lch=function(r){const t=r[0],e=r[1],n=r[2];let i;i=Math.atan2(n,e)*360/2/Math.PI,i<0&&(i+=360);const o=Math.sqrt(e*e+n*n);return[t,o,i]};bt.lch.lab=function(r){const t=r[0],e=r[1],i=r[2]/360*2*Math.PI,a=e*Math.cos(i),o=e*Math.sin(i);return[t,a,o]};bt.rgb.ansi16=function(r,t=null){const[e,n,i]=r;let a=t===null?bt.rgb.hsv(r)[2]:t;if(a=Math.round(a/50),a===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return a===2&&(o+=60),o};bt.hsv.ansi16=function(r){return bt.rgb.ansi16(bt.hsv.rgb(r),r[2])};bt.rgb.ansi256=function(r){const t=r[0],e=r[1],n=r[2];return t===e&&e===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(e/255*5)+Math.round(n/255*5)};bt.ansi16.rgb=function(r){let t=r%10;if(t===0||t===7)return r>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const e=(~~(r>50)+1)*.5,n=(t&1)*e*255,i=(t>>1&1)*e*255,a=(t>>2&1)*e*255;return[n,i,a]};bt.ansi256.rgb=function(r){if(r>=232){const a=(r-232)*10+8;return[a,a,a]}r-=16;let t;const e=Math.floor(r/36)/5*255,n=Math.floor((t=r%36)/6)/5*255,i=t%6/5*255;return[e,n,i]};bt.rgb.hex=function(r){const e=(((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255)).toString(16).toUpperCase();return"000000".substring(e.length)+e};bt.hex.rgb=function(r){const t=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let e=t[0];t[0].length===3&&(e=e.split("").map(s=>s+s).join(""));const n=parseInt(e,16),i=n>>16&255,a=n>>8&255,o=n&255;return[i,a,o]};bt.rgb.hcg=function(r){const t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.max(Math.max(t,e),n),a=Math.min(Math.min(t,e),n),o=i-a;let s,u;return o<1?s=a/(1-o):s=0,o<=0?u=0:i===t?u=(e-n)/o%6:i===e?u=2+(n-t)/o:u=4+(t-e)/o,u/=6,u%=1,[u*360,o*100,s*100]};bt.hsl.hcg=function(r){const t=r[1]/100,e=r[2]/100,n=e<.5?2*t*e:2*t*(1-e);let i=0;return n<1&&(i=(e-.5*n)/(1-n)),[r[0],n*100,i*100]};bt.hsv.hcg=function(r){const t=r[1]/100,e=r[2]/100,n=t*e;let i=0;return n<1&&(i=(e-n)/(1-n)),[r[0],n*100,i*100]};bt.hcg.rgb=function(r){const t=r[0]/360,e=r[1]/100,n=r[2]/100;if(e===0)return[n*255,n*255,n*255];const i=[0,0,0],a=t%1*6,o=a%1,s=1-o;let u=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return u=(1-e)*n,[(e*i[0]+u)*255,(e*i[1]+u)*255,(e*i[2]+u)*255]};bt.hcg.hsv=function(r){const t=r[1]/100,e=r[2]/100,n=t+e*(1-t);let i=0;return n>0&&(i=t/n),[r[0],i*100,n*100]};bt.hcg.hsl=function(r){const t=r[1]/100,n=r[2]/100*(1-t)+.5*t;let i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[r[0],i*100,n*100]};bt.hcg.hwb=function(r){const t=r[1]/100,e=r[2]/100,n=t+e*(1-t);return[r[0],(n-t)*100,(1-n)*100]};bt.hwb.hcg=function(r){const t=r[1]/100,e=r[2]/100,n=1-e,i=n-t;let a=0;return i<1&&(a=(n-i)/(1-i)),[r[0],i*100,a*100]};bt.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};bt.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};bt.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};bt.gray.hsl=function(r){return[0,0,r[0]]};bt.gray.hsv=bt.gray.hsl;bt.gray.hwb=function(r){return[0,100,r[0]]};bt.gray.cmyk=function(r){return[0,0,0,r[0]]};bt.gray.lab=function(r){return[r[0],0,0]};bt.gray.hex=function(r){const t=Math.round(r[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};bt.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]};const Ch=$b;function ON(){const r={},t=Object.keys(Ch);for(let e=t.length,n=0;n<e;n++)r[t[n]]={distance:-1,parent:null};return r}function IN(r){const t=ON(),e=[r];for(t[r].distance=0;e.length;){const n=e.pop(),i=Object.keys(Ch[n]);for(let a=i.length,o=0;o<a;o++){const s=i[o],u=t[s];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,e.unshift(s))}}return t}function kN(r,t){return function(e){return t(r(e))}}function RN(r,t){const e=[t[r].parent,r];let n=Ch[t[r].parent][r],i=t[r].parent;for(;t[i].parent;)e.unshift(t[i].parent),n=kN(Ch[t[i].parent][i],n),i=t[i].parent;return n.conversion=e,n}var FN=function(r){const t=IN(r),e={},n=Object.keys(t);for(let i=n.length,a=0;a<i;a++){const o=n[a];t[o].parent!==null&&(e[o]=RN(o,t))}return e};const r1=$b,NN=FN,Du={},MN=Object.keys(r1);function BN(r){const t=function(...e){const n=e[0];return n==null?n:(n.length>1&&(e=n),r(e))};return"conversion"in r&&(t.conversion=r.conversion),t}function UN(r){const t=function(...e){const n=e[0];if(n==null)return n;n.length>1&&(e=n);const i=r(e);if(typeof i=="object")for(let a=i.length,o=0;o<a;o++)i[o]=Math.round(i[o]);return i};return"conversion"in r&&(t.conversion=r.conversion),t}MN.forEach(r=>{Du[r]={},Object.defineProperty(Du[r],"channels",{value:r1[r].channels}),Object.defineProperty(Du[r],"labels",{value:r1[r].labels});const t=NN(r);Object.keys(t).forEach(n=>{const i=t[n];Du[r][n]=UN(i),Du[r][n].raw=BN(i)})});var PN=Du;const Cu=Ub.exports,Hi=PN,Vb=["keyword","gray","hex"],n1={};for(const r of Object.keys(Hi))n1[[...Hi[r].labels].sort().join("")]=r;const Oh={};function Bn(r,t){if(!(this instanceof Bn))return new Bn(r,t);if(t&&t in Vb&&(t=null),t&&!(t in Hi))throw new Error("Unknown model: "+t);let e,n;if(r==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(r instanceof Bn)this.model=r.model,this.color=[...r.color],this.valpha=r.valpha;else if(typeof r=="string"){const i=Cu.get(r);if(i===null)throw new Error("Unable to parse color from string: "+r);this.model=i.model,n=Hi[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(r.length>0){this.model=t||"rgb",n=Hi[this.model].channels;const i=Array.prototype.slice.call(r,0,n);this.color=i1(i,n),this.valpha=typeof r[n]=="number"?r[n]:1}else if(typeof r=="number")this.model="rgb",this.color=[r>>16&255,r>>8&255,r&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(r);"alpha"in r&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof r.alpha=="number"?r.alpha:0);const a=i.sort().join("");if(!(a in n1))throw new Error("Unable to parse color from object: "+JSON.stringify(r));this.model=n1[a];const{labels:o}=Hi[this.model],s=[];for(e=0;e<o.length;e++)s.push(r[o[e]]);this.color=i1(s)}if(Oh[this.model])for(n=Hi[this.model].channels,e=0;e<n;e++){const i=Oh[this.model][e];i&&(this.color[e]=i(this.color[e]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Bn.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(r){let t=this.model in Cu.to?this:this.rgb();t=t.round(typeof r=="number"?r:1);const e=t.valpha===1?t.color:[...t.color,this.valpha];return Cu.to[t.model](e)},percentString(r){const t=this.rgb().round(typeof r=="number"?r:1),e=t.valpha===1?t.color:[...t.color,this.valpha];return Cu.to.rgb.percent(e)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const r={},{channels:t}=Hi[this.model],{labels:e}=Hi[this.model];for(let n=0;n<t;n++)r[e[n]]=this.color[n];return this.valpha!==1&&(r.alpha=this.valpha),r},unitArray(){const r=this.rgb().color;return r[0]/=255,r[1]/=255,r[2]/=255,this.valpha!==1&&r.push(this.valpha),r},unitObject(){const r=this.rgb().object();return r.r/=255,r.g/=255,r.b/=255,this.valpha!==1&&(r.alpha=this.valpha),r},round(r){return r=Math.max(r||0,0),new Bn([...this.color.map(jN(r)),this.valpha],this.model)},alpha(r){return r!==void 0?new Bn([...this.color,Math.max(0,Math.min(1,r))],this.model):this.valpha},red:nn("rgb",0,kn(255)),green:nn("rgb",1,kn(255)),blue:nn("rgb",2,kn(255)),hue:nn(["hsl","hsv","hsl","hwb","hcg"],0,r=>(r%360+360)%360),saturationl:nn("hsl",1,kn(100)),lightness:nn("hsl",2,kn(100)),saturationv:nn("hsv",1,kn(100)),value:nn("hsv",2,kn(100)),chroma:nn("hcg",1,kn(100)),gray:nn("hcg",2,kn(100)),white:nn("hwb",1,kn(100)),wblack:nn("hwb",2,kn(100)),cyan:nn("cmyk",0,kn(100)),magenta:nn("cmyk",1,kn(100)),yellow:nn("cmyk",2,kn(100)),black:nn("cmyk",3,kn(100)),x:nn("xyz",0,kn(95.047)),y:nn("xyz",1,kn(100)),z:nn("xyz",2,kn(108.833)),l:nn("lab",0,kn(100)),a:nn("lab",1),b:nn("lab",2),keyword(r){return r!==void 0?new Bn(r):Hi[this.model].keyword(this.color)},hex(r){return r!==void 0?new Bn(r):Cu.to.hex(this.rgb().round().color)},hexa(r){if(r!==void 0)return new Bn(r);const t=this.rgb().round().color;let e=Math.round(this.valpha*255).toString(16).toUpperCase();return e.length===1&&(e="0"+e),Cu.to.hex(t)+e},rgbNumber(){const r=this.rgb().color;return(r[0]&255)<<16|(r[1]&255)<<8|r[2]&255},luminosity(){const r=this.rgb().color,t=[];for(const[e,n]of r.entries()){const i=n/255;t[e]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(r){const t=this.luminosity(),e=r.luminosity();return t>e?(t+.05)/(e+.05):(e+.05)/(t+.05)},level(r){const t=this.contrast(r);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const r=this.rgb().color;return(r[0]*2126+r[1]*7152+r[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const r=this.rgb();for(let t=0;t<3;t++)r.color[t]=255-r.color[t];return r},lighten(r){const t=this.hsl();return t.color[2]+=t.color[2]*r,t},darken(r){const t=this.hsl();return t.color[2]-=t.color[2]*r,t},saturate(r){const t=this.hsl();return t.color[1]+=t.color[1]*r,t},desaturate(r){const t=this.hsl();return t.color[1]-=t.color[1]*r,t},whiten(r){const t=this.hwb();return t.color[1]+=t.color[1]*r,t},blacken(r){const t=this.hwb();return t.color[2]+=t.color[2]*r,t},grayscale(){const r=this.rgb().color,t=r[0]*.3+r[1]*.59+r[2]*.11;return Bn.rgb(t,t,t)},fade(r){return this.alpha(this.valpha-this.valpha*r)},opaquer(r){return this.alpha(this.valpha+this.valpha*r)},rotate(r){const t=this.hsl();let e=t.color[0];return e=(e+r)%360,e=e<0?360+e:e,t.color[0]=e,t},mix(r,t){if(!r||!r.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof r);const e=r.rgb(),n=this.rgb(),i=t===void 0?.5:t,a=2*i-1,o=e.alpha()-n.alpha(),s=((a*o==-1?a:(a+o)/(1+a*o))+1)/2,u=1-s;return Bn.rgb(s*e.red()+u*n.red(),s*e.green()+u*n.green(),s*e.blue()+u*n.blue(),e.alpha()*i+n.alpha()*(1-i))}};for(const r of Object.keys(Hi)){if(Vb.includes(r))continue;const{channels:t}=Hi[r];Bn.prototype[r]=function(...e){return this.model===r?new Bn(this):e.length>0?new Bn(e,r):new Bn([...WN(Hi[this.model][r].raw(this.color)),this.valpha],r)},Bn[r]=function(...e){let n=e[0];return typeof n=="number"&&(n=i1(e,t)),new Bn(n,r)}}function LN(r,t){return Number(r.toFixed(t))}function jN(r){return function(t){return LN(t,r)}}function nn(r,t,e){r=Array.isArray(r)?r:[r];for(const n of r)(Oh[n]||(Oh[n]=[]))[t]=e;return r=r[0],function(n){let i;return n!==void 0?(e&&(n=e(n)),i=this[r](),i.color[t]=n,i):(i=this[r]().color[t],e&&(i=e(i)),i)}}function kn(r){return function(t){return Math.max(0,Math.min(r,t))}}function WN(r){return Array.isArray(r)?r:[r]}function i1(r,t){for(let e=0;e<t;e++)typeof r[e]!="number"&&(r[e]=0);return r}var zN=Bn,vX=zN,HN=Object.defineProperty,$N=Object.defineProperties,VN=Object.getOwnPropertyDescriptors,qb=Object.getOwnPropertySymbols,qN=Object.prototype.hasOwnProperty,GN=Object.prototype.propertyIsEnumerable,a1=(r,t,e)=>t in r?HN(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,sr=(r,t)=>{for(var e in t||(t={}))qN.call(t,e)&&a1(r,e,t[e]);if(qb)for(var e of qb(t))GN.call(t,e)&&a1(r,e,t[e]);return r},es=(r,t)=>$N(r,VN(t)),Be=(r,t,e)=>a1(r,typeof t!="symbol"?t+"":t,e),Ih=(r,t,e)=>new Promise((n,i)=>{var a=u=>{try{s(e.next(u))}catch(c){i(c)}},o=u=>{try{s(e.throw(u))}catch(c){i(c)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(a,o);s((e=e.apply(r,t)).next())});class kh{constructor(t){Be(this,"rootKey"),this.rootKey=t}}const XN=Object.seal({});class Me extends kh{constructor(t){super(t);Be(this,"root"),this.root=new Array}prepForXml(t){var e;t.stack.push(this);const n=this.root.map(i=>i instanceof kh?i.prepForXml(t):i).filter(i=>i!==void 0);return t.stack.pop(),{[this.rootKey]:n.length?n.length===1&&((e=n[0])==null?void 0:e._attr)?n[0]:n:XN}}addChildElement(t){return this.root.push(t),this}}class go extends Me{prepForXml(t){const e=super.prepForXml(t);if(e&&(typeof e[this.rootKey]!="object"||Object.keys(e[this.rootKey]).length))return e}}class ht extends kh{constructor(t){super("_attr");Be(this,"xmlKeys"),this.root=t}prepForXml(t){const e={};return Object.entries(this.root).forEach(([n,i])=>{if(i!==void 0){const a=this.xmlKeys&&this.xmlKeys[n]||n;e[a]=i}}),{_attr:e}}}class vo extends kh{constructor(t){super("_attr");this.root=t}prepForXml(t){return{_attr:Object.values(this.root).filter(({value:n})=>n!==void 0).reduce((n,{key:i,value:a})=>es(sr({},n),{[i]:a}),{})}}}class an extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}}var Ma=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function o1(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Gb={},s1={exports:{}},Ou=typeof Reflect=="object"?Reflect:null,Xb=Ou&&typeof Ou.apply=="function"?Ou.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)},Rh;Ou&&typeof Ou.ownKeys=="function"?Rh=Ou.ownKeys:Object.getOwnPropertySymbols?Rh=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Rh=function(t){return Object.getOwnPropertyNames(t)};function KN(r){console&&console.warn&&console.warn(r)}var Kb=Number.isNaN||function(t){return t!==t};function Br(){Br.init.call(this)}s1.exports=Br;s1.exports.once=QN;Br.EventEmitter=Br;Br.prototype._events=void 0;Br.prototype._eventsCount=0;Br.prototype._maxListeners=void 0;var Zb=10;function Fh(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty(Br,"defaultMaxListeners",{enumerable:!0,get:function(){return Zb},set:function(r){if(typeof r!="number"||r<0||Kb(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");Zb=r}});Br.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Br.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Kb(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Yb(r){return r._maxListeners===void 0?Br.defaultMaxListeners:r._maxListeners}Br.prototype.getMaxListeners=function(){return Yb(this)};Br.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i=t==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=a[t];if(u===void 0)return!1;if(typeof u=="function")Xb(u,this,e);else for(var c=u.length,l=rw(u,c),n=0;n<c;++n)Xb(l[n],this,e);return!0};function Jb(r,t,e,n){var i,a,o;if(Fh(e),a=r._events,a===void 0?(a=r._events=Object.create(null),r._eventsCount=0):(a.newListener!==void 0&&(r.emit("newListener",t,e.listener?e.listener:e),a=r._events),o=a[t]),o===void 0)o=a[t]=e,++r._eventsCount;else if(typeof o=="function"?o=a[t]=n?[e,o]:[o,e]:n?o.unshift(e):o.push(e),i=Yb(r),i>0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=r,s.type=t,s.count=o.length,KN(s)}return r}Br.prototype.addListener=function(t,e){return Jb(this,t,e,!1)};Br.prototype.on=Br.prototype.addListener;Br.prototype.prependListener=function(t,e){return Jb(this,t,e,!0)};function ZN(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Qb(r,t,e){var n={fired:!1,wrapFn:void 0,target:r,type:t,listener:e},i=ZN.bind(n);return i.listener=e,n.wrapFn=i,i}Br.prototype.once=function(t,e){return Fh(e),this.on(t,Qb(this,t,e)),this};Br.prototype.prependOnceListener=function(t,e){return Fh(e),this.prependListener(t,Qb(this,t,e)),this};Br.prototype.removeListener=function(t,e){var n,i,a,o,s;if(Fh(e),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===e||n.listener===e)--this._eventsCount==0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||e));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():YN(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||e)}return this};Br.prototype.off=Br.prototype.removeListener;Br.prototype.removeAllListeners=function(t){var e,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i<a.length;++i)o=a[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=n[t],typeof e=="function")this.removeListener(t,e);else if(e!==void 0)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this};function ew(r,t,e){var n=r._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?e?[i.listener||i]:[i]:e?JN(i):rw(i,i.length)}Br.prototype.listeners=function(t){return ew(this,t,!0)};Br.prototype.rawListeners=function(t){return ew(this,t,!1)};Br.listenerCount=function(r,t){return typeof r.listenerCount=="function"?r.listenerCount(t):tw.call(r,t)};Br.prototype.listenerCount=tw;function tw(r){var t=this._events;if(t!==void 0){var e=t[r];if(typeof e=="function")return 1;if(e!==void 0)return e.length}return 0}Br.prototype.eventNames=function(){return this._eventsCount>0?Rh(this._events):[]};function rw(r,t){for(var e=new Array(t),n=0;n<t;++n)e[n]=r[n];return e}function YN(r,t){for(;t+1<r.length;t++)r[t]=r[t+1];r.pop()}function JN(r){for(var t=new Array(r.length),e=0;e<t.length;++e)t[e]=r[e].listener||r[e];return t}function QN(r,t){return new Promise(function(e,n){function i(o){r.removeListener(t,a),n(o)}function a(){typeof r.removeListener=="function"&&r.removeListener("error",i),e([].slice.call(arguments))}nw(r,t,a,{once:!0}),t!=="error"&&eM(r,i,{once:!0})})}function eM(r,t,e){typeof r.on=="function"&&nw(r,"error",t,e)}function nw(r,t,e,n){if(typeof r.on=="function")n.once?r.once(t,e):r.on(t,e);else if(typeof r.addEventListener=="function")r.addEventListener(t,function i(a){n.once&&r.removeEventListener(t,i),e(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r)}var u1=s1.exports,c1={exports:{}};typeof Object.create=="function"?c1.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:c1.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}};var ts=c1.exports;function tM(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var iw={exports:{}},fn=iw.exports={},Ba,Ua;function l1(){throw new Error("setTimeout has not been defined")}function f1(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ba=setTimeout:Ba=l1}catch{Ba=l1}try{typeof clearTimeout=="function"?Ua=clearTimeout:Ua=f1}catch{Ua=f1}})();function aw(r){if(Ba===setTimeout)return setTimeout(r,0);if((Ba===l1||!Ba)&&setTimeout)return Ba=setTimeout,setTimeout(r,0);try{return Ba(r,0)}catch{try{return Ba.call(null,r,0)}catch{return Ba.call(this,r,0)}}}function rM(r){if(Ua===clearTimeout)return clearTimeout(r);if((Ua===f1||!Ua)&&clearTimeout)return Ua=clearTimeout,clearTimeout(r);try{return Ua(r)}catch{try{return Ua.call(null,r)}catch{return Ua.call(this,r)}}}var yo=[],Iu=!1,Fs,Nh=-1;function nM(){!Iu||!Fs||(Iu=!1,Fs.length?yo=Fs.concat(yo):Nh=-1,yo.length&&ow())}function ow(){if(!Iu){var r=aw(nM);Iu=!0;for(var t=yo.length;t;){for(Fs=yo,yo=[];++Nh<t;)Fs&&Fs[Nh].run();Nh=-1,t=yo.length}Fs=null,Iu=!1,rM(r)}}fn.nextTick=function(r){var t=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)t[e-1]=arguments[e];yo.push(new sw(r,t)),yo.length===1&&!Iu&&aw(ow)};function sw(r,t){this.fun=r,this.array=t}sw.prototype.run=function(){this.fun.apply(null,this.array)};fn.title="browser";fn.browser=!0;fn.env={};fn.argv=[];fn.version="";fn.versions={};function bo(){}fn.on=bo;fn.addListener=bo;fn.once=bo;fn.off=bo;fn.removeListener=bo;fn.removeAllListeners=bo;fn.emit=bo;fn.prependListener=bo;fn.prependOnceListener=bo;fn.listeners=function(r){return[]};fn.binding=function(r){throw new Error("process.binding is not supported")};fn.cwd=function(){return"/"};fn.chdir=function(r){throw new Error("process.chdir is not supported")};fn.umask=function(){return 0};var iM=iw.exports;const tr=tM(iM);var h1,uw;function cw(){return uw||(uw=1,h1=u1.EventEmitter),h1}var d1={},rl={},lw;function aM(){if(lw)return rl;lw=1,rl.byteLength=s,rl.toByteArray=c,rl.fromByteArray=h;for(var r=[],t=[],e=typeof Uint8Array!="undefined"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=n.length;i<a;++i)r[i]=n[i],t[n.charCodeAt(i)]=i;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function o(f){var g=f.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=f.indexOf("=");m===-1&&(m=g);var p=m===g?0:4-m%4;return[m,p]}function s(f){var g=o(f),m=g[0],p=g[1];return(m+p)*3/4-p}function u(f,g,m){return(g+m)*3/4-m}function c(f){var g,m=o(f),p=m[0],y=m[1],v=new e(u(f,p,y)),b=0,A=y>0?p-4:p,C;for(C=0;C<A;C+=4)g=t[f.charCodeAt(C)]<<18|t[f.charCodeAt(C+1)]<<12|t[f.charCodeAt(C+2)]<<6|t[f.charCodeAt(C+3)],v[b++]=g>>16&255,v[b++]=g>>8&255,v[b++]=g&255;return y===2&&(g=t[f.charCodeAt(C)]<<2|t[f.charCodeAt(C+1)]>>4,v[b++]=g&255),y===1&&(g=t[f.charCodeAt(C)]<<10|t[f.charCodeAt(C+1)]<<4|t[f.charCodeAt(C+2)]>>2,v[b++]=g>>8&255,v[b++]=g&255),v}function l(f){return r[f>>18&63]+r[f>>12&63]+r[f>>6&63]+r[f&63]}function d(f,g,m){for(var p,y=[],v=g;v<m;v+=3)p=(f[v]<<16&16711680)+(f[v+1]<<8&65280)+(f[v+2]&255),y.push(l(p));return y.join("")}function h(f){for(var g,m=f.length,p=m%3,y=[],v=16383,b=0,A=m-p;b<A;b+=v)y.push(d(f,b,b+v>A?A:b+v));return p===1?(g=f[m-1],y.push(r[g>>2]+r[g<<4&63]+"==")):p===2&&(g=(f[m-2]<<8)+f[m-1],y.push(r[g>>10]+r[g>>4&63]+r[g<<2&63]+"=")),y.join("")}return rl}var Mh={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var fw;function oM(){return fw||(fw=1,Mh.read=function(r,t,e,n,i){var a,o,s=i*8-n-1,u=(1<<s)-1,c=u>>1,l=-7,d=e?i-1:0,h=e?-1:1,f=r[t+d];for(d+=h,a=f&(1<<-l)-1,f>>=-l,l+=s;l>0;a=a*256+r[t+d],d+=h,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=n;l>0;o=o*256+r[t+d],d+=h,l-=8);if(a===0)a=1-c;else{if(a===u)return o?NaN:(f?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-c}return(f?-1:1)*o*Math.pow(2,a-n)},Mh.write=function(r,t,e,n,i,a){var o,s,u,c=a*8-i-1,l=(1<<c)-1,d=l>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:a-1,g=n?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+d>=1?t+=h/u:t+=h*Math.pow(2,1-d),t*u>=2&&(o++,u/=2),o+d>=l?(s=0,o=l):o+d>=1?(s=(t*u-1)*Math.pow(2,i),o=o+d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;r[e+f]=s&255,f+=g,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;r[e+f]=o&255,f+=g,o/=256,c-=8);r[e+f-g]|=m*128}),Mh}/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var hw;function Bh(){return hw||(hw=1,function(r){var t=aM(),e=oM(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=s,r.SlowBuffer=v,r.INSPECT_MAX_BYTES=50;var i=2147483647;r.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var Q=new Uint8Array(1),P={foo:function(){return 42}};return Object.setPrototypeOf(P,Uint8Array.prototype),Object.setPrototypeOf(Q,P),Q.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function o(Q){if(Q>i)throw new RangeError('The value "'+Q+'" is invalid for option "size"');var P=new Uint8Array(Q);return Object.setPrototypeOf(P,s.prototype),P}function s(Q,P,H){if(typeof Q=="number"){if(typeof P=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(Q)}return u(Q,P,H)}s.poolSize=8192;function u(Q,P,H){if(typeof Q=="string")return h(Q,P);if(ArrayBuffer.isView(Q))return g(Q);if(Q==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(ae(Q,ArrayBuffer)||Q&&ae(Q.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ae(Q,SharedArrayBuffer)||Q&&ae(Q.buffer,SharedArrayBuffer)))return m(Q,P,H);if(typeof Q=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Z=Q.valueOf&&Q.valueOf();if(Z!=null&&Z!==Q)return s.from(Z,P,H);var oe=p(Q);if(oe)return oe;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]=="function")return s.from(Q[Symbol.toPrimitive]("string"),P,H);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}s.from=function(Q,P,H){return u(Q,P,H)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(Q){if(typeof Q!="number")throw new TypeError('"size" argument must be of type number');if(Q<0)throw new RangeError('The value "'+Q+'" is invalid for option "size"')}function l(Q,P,H){return c(Q),Q<=0?o(Q):P!==void 0?typeof H=="string"?o(Q).fill(P,H):o(Q).fill(P):o(Q)}s.alloc=function(Q,P,H){return l(Q,P,H)};function d(Q){return c(Q),o(Q<0?0:y(Q)|0)}s.allocUnsafe=function(Q){return d(Q)},s.allocUnsafeSlow=function(Q){return d(Q)};function h(Q,P){if((typeof P!="string"||P==="")&&(P="utf8"),!s.isEncoding(P))throw new TypeError("Unknown encoding: "+P);var H=b(Q,P)|0,Z=o(H),oe=Z.write(Q,P);return oe!==H&&(Z=Z.slice(0,oe)),Z}function f(Q){for(var P=Q.length<0?0:y(Q.length)|0,H=o(P),Z=0;Z<P;Z+=1)H[Z]=Q[Z]&255;return H}function g(Q){if(ae(Q,Uint8Array)){var P=new Uint8Array(Q);return m(P.buffer,P.byteOffset,P.byteLength)}return f(Q)}function m(Q,P,H){if(P<0||Q.byteLength<P)throw new RangeError('"offset" is outside of buffer bounds');if(Q.byteLength<P+(H||0))throw new RangeError('"length" is outside of buffer bounds');var Z;return P===void 0&&H===void 0?Z=new Uint8Array(Q):H===void 0?Z=new Uint8Array(Q,P):Z=new Uint8Array(Q,P,H),Object.setPrototypeOf(Z,s.prototype),Z}function p(Q){if(s.isBuffer(Q)){var P=y(Q.length)|0,H=o(P);return H.length===0||Q.copy(H,0,0,P),H}if(Q.length!==void 0)return typeof Q.length!="number"||j(Q.length)?o(0):f(Q);if(Q.type==="Buffer"&&Array.isArray(Q.data))return f(Q.data)}function y(Q){if(Q>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return Q|0}function v(Q){return+Q!=Q&&(Q=0),s.alloc(+Q)}s.isBuffer=function(P){return P!=null&&P._isBuffer===!0&&P!==s.prototype},s.compare=function(P,H){if(ae(P,Uint8Array)&&(P=s.from(P,P.offset,P.byteLength)),ae(H,Uint8Array)&&(H=s.from(H,H.offset,H.byteLength)),!s.isBuffer(P)||!s.isBuffer(H))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(P===H)return 0;for(var Z=P.length,oe=H.length,ce=0,ne=Math.min(Z,oe);ce<ne;++ce)if(P[ce]!==H[ce]){Z=P[ce],oe=H[ce];break}return Z<oe?-1:oe<Z?1:0},s.isEncoding=function(P){switch(String(P).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(P,H){if(!Array.isArray(P))throw new TypeError('"list" argument must be an Array of Buffers');if(P.length===0)return s.alloc(0);var Z;if(H===void 0)for(H=0,Z=0;Z<P.length;++Z)H+=P[Z].length;var oe=s.allocUnsafe(H),ce=0;for(Z=0;Z<P.length;++Z){var ne=P[Z];if(ae(ne,Uint8Array))ce+ne.length>oe.length?s.from(ne).copy(oe,ce):Uint8Array.prototype.set.call(oe,ne,ce);else if(s.isBuffer(ne))ne.copy(oe,ce);else throw new TypeError('"list" argument must be an Array of Buffers');ce+=ne.length}return oe};function b(Q,P){if(s.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||ae(Q,ArrayBuffer))return Q.byteLength;if(typeof Q!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);var H=Q.length,Z=arguments.length>2&&arguments[2]===!0;if(!Z&&H===0)return 0;for(var oe=!1;;)switch(P){case"ascii":case"latin1":case"binary":return H;case"utf8":case"utf-8":return k(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H*2;case"hex":return H>>>1;case"base64":return J(Q).length;default:if(oe)return Z?-1:k(Q).length;P=(""+P).toLowerCase(),oe=!0}}s.byteLength=b;function A(Q,P,H){var Z=!1;if((P===void 0||P<0)&&(P=0),P>this.length||((H===void 0||H>this.length)&&(H=this.length),H<=0)||(H>>>=0,P>>>=0,H<=P))return"";for(Q||(Q="utf8");;)switch(Q){case"hex":return E(this,P,H);case"utf8":case"utf-8":return T(this,P,H);case"ascii":return w(this,P,H);case"latin1":case"binary":return _(this,P,H);case"base64":return O(this,P,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,P,H);default:if(Z)throw new TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),Z=!0}}s.prototype._isBuffer=!0;function C(Q,P,H){var Z=Q[P];Q[P]=Q[H],Q[H]=Z}s.prototype.swap16=function(){var P=this.length;if(P%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var H=0;H<P;H+=2)C(this,H,H+1);return this},s.prototype.swap32=function(){var P=this.length;if(P%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var H=0;H<P;H+=4)C(this,H,H+3),C(this,H+1,H+2);return this},s.prototype.swap64=function(){var P=this.length;if(P%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var H=0;H<P;H+=8)C(this,H,H+7),C(this,H+1,H+6),C(this,H+2,H+5),C(this,H+3,H+4);return this},s.prototype.toString=function(){var P=this.length;return P===0?"":arguments.length===0?T(this,0,P):A.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(P){if(!s.isBuffer(P))throw new TypeError("Argument must be a Buffer");return this===P?!0:s.compare(this,P)===0},s.prototype.inspect=function(){var P="",H=r.INSPECT_MAX_BYTES;return P=this.toString("hex",0,H).replace(/(.{2})/g,"$1 ").trim(),this.length>H&&(P+=" ... "),"<Buffer "+P+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(P,H,Z,oe,ce){if(ae(P,Uint8Array)&&(P=s.from(P,P.offset,P.byteLength)),!s.isBuffer(P))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof P);if(H===void 0&&(H=0),Z===void 0&&(Z=P?P.length:0),oe===void 0&&(oe=0),ce===void 0&&(ce=this.length),H<0||Z>P.length||oe<0||ce>this.length)throw new RangeError("out of range index");if(oe>=ce&&H>=Z)return 0;if(oe>=ce)return-1;if(H>=Z)return 1;if(H>>>=0,Z>>>=0,oe>>>=0,ce>>>=0,this===P)return 0;for(var ne=ce-oe,se=Z-H,fe=Math.min(ne,se),de=this.slice(oe,ce),ve=P.slice(H,Z),Ee=0;Ee<fe;++Ee)if(de[Ee]!==ve[Ee]){ne=de[Ee],se=ve[Ee];break}return ne<se?-1:se<ne?1:0};function M(Q,P,H,Z,oe){if(Q.length===0)return-1;if(typeof H=="string"?(Z=H,H=0):H>2147483647?H=2147483647:H<-2147483648&&(H=-2147483648),H=+H,j(H)&&(H=oe?0:Q.length-1),H<0&&(H=Q.length+H),H>=Q.length){if(oe)return-1;H=Q.length-1}else if(H<0)if(oe)H=0;else return-1;if(typeof P=="string"&&(P=s.from(P,Z)),s.isBuffer(P))return P.length===0?-1:z(Q,P,H,Z,oe);if(typeof P=="number")return P=P&255,typeof Uint8Array.prototype.indexOf=="function"?oe?Uint8Array.prototype.indexOf.call(Q,P,H):Uint8Array.prototype.lastIndexOf.call(Q,P,H):z(Q,[P],H,Z,oe);throw new TypeError("val must be string, number or Buffer")}function z(Q,P,H,Z,oe){var ce=1,ne=Q.length,se=P.length;if(Z!==void 0&&(Z=String(Z).toLowerCase(),Z==="ucs2"||Z==="ucs-2"||Z==="utf16le"||Z==="utf-16le")){if(Q.length<2||P.length<2)return-1;ce=2,ne/=2,se/=2,H/=2}function fe(Ne,He){return ce===1?Ne[He]:Ne.readUInt16BE(He*ce)}var de;if(oe){var ve=-1;for(de=H;de<ne;de++)if(fe(Q,de)===fe(P,ve===-1?0:de-ve)){if(ve===-1&&(ve=de),de-ve+1===se)return ve*ce}else ve!==-1&&(de-=de-ve),ve=-1}else for(H+se>ne&&(H=ne-se),de=H;de>=0;de--){for(var Ee=!0,Se=0;Se<se;Se++)if(fe(Q,de+Se)!==fe(P,Se)){Ee=!1;break}if(Ee)return de}return-1}s.prototype.includes=function(P,H,Z){return this.indexOf(P,H,Z)!==-1},s.prototype.indexOf=function(P,H,Z){return M(this,P,H,Z,!0)},s.prototype.lastIndexOf=function(P,H,Z){return M(this,P,H,Z,!1)};function W(Q,P,H,Z){H=Number(H)||0;var oe=Q.length-H;Z?(Z=Number(Z),Z>oe&&(Z=oe)):Z=oe;var ce=P.length;Z>ce/2&&(Z=ce/2);for(var ne=0;ne<Z;++ne){var se=parseInt(P.substr(ne*2,2),16);if(j(se))return ne;Q[H+ne]=se}return ne}function U(Q,P,H,Z){return re(k(P,Q.length-H),Q,H,Z)}function G(Q,P,H,Z){return re(L(P),Q,H,Z)}function ee(Q,P,H,Z){return re(J(P),Q,H,Z)}function I(Q,P,H,Z){return re(V(P,Q.length-H),Q,H,Z)}s.prototype.write=function(P,H,Z,oe){if(H===void 0)oe="utf8",Z=this.length,H=0;else if(Z===void 0&&typeof H=="string")oe=H,Z=this.length,H=0;else if(isFinite(H))H=H>>>0,isFinite(Z)?(Z=Z>>>0,oe===void 0&&(oe="utf8")):(oe=Z,Z=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ce=this.length-H;if((Z===void 0||Z>ce)&&(Z=ce),P.length>0&&(Z<0||H<0)||H>this.length)throw new RangeError("Attempt to write outside buffer bounds");oe||(oe="utf8");for(var ne=!1;;)switch(oe){case"hex":return W(this,P,H,Z);case"utf8":case"utf-8":return U(this,P,H,Z);case"ascii":case"latin1":case"binary":return G(this,P,H,Z);case"base64":return ee(this,P,H,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,P,H,Z);default:if(ne)throw new TypeError("Unknown encoding: "+oe);oe=(""+oe).toLowerCase(),ne=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(Q,P,H){return P===0&&H===Q.length?t.fromByteArray(Q):t.fromByteArray(Q.slice(P,H))}function T(Q,P,H){H=Math.min(Q.length,H);for(var Z=[],oe=P;oe<H;){var ce=Q[oe],ne=null,se=ce>239?4:ce>223?3:ce>191?2:1;if(oe+se<=H){var fe,de,ve,Ee;switch(se){case 1:ce<128&&(ne=ce);break;case 2:fe=Q[oe+1],(fe&192)==128&&(Ee=(ce&31)<<6|fe&63,Ee>127&&(ne=Ee));break;case 3:fe=Q[oe+1],de=Q[oe+2],(fe&192)==128&&(de&192)==128&&(Ee=(ce&15)<<12|(fe&63)<<6|de&63,Ee>2047&&(Ee<55296||Ee>57343)&&(ne=Ee));break;case 4:fe=Q[oe+1],de=Q[oe+2],ve=Q[oe+3],(fe&192)==128&&(de&192)==128&&(ve&192)==128&&(Ee=(ce&15)<<18|(fe&63)<<12|(de&63)<<6|ve&63,Ee>65535&&Ee<1114112&&(ne=Ee))}}ne===null?(ne=65533,se=1):ne>65535&&(ne-=65536,Z.push(ne>>>10&1023|55296),ne=56320|ne&1023),Z.push(ne),oe+=se}return x(Z)}var S=4096;function x(Q){var P=Q.length;if(P<=S)return String.fromCharCode.apply(String,Q);for(var H="",Z=0;Z<P;)H+=String.fromCharCode.apply(String,Q.slice(Z,Z+=S));return H}function w(Q,P,H){var Z="";H=Math.min(Q.length,H);for(var oe=P;oe<H;++oe)Z+=String.fromCharCode(Q[oe]&127);return Z}function _(Q,P,H){var Z="";H=Math.min(Q.length,H);for(var oe=P;oe<H;++oe)Z+=String.fromCharCode(Q[oe]);return Z}function E(Q,P,H){var Z=Q.length;(!P||P<0)&&(P=0),(!H||H<0||H>Z)&&(H=Z);for(var oe="",ce=P;ce<H;++ce)oe+=ue[Q[ce]];return oe}function R(Q,P,H){for(var Z=Q.slice(P,H),oe="",ce=0;ce<Z.length-1;ce+=2)oe+=String.fromCharCode(Z[ce]+Z[ce+1]*256);return oe}s.prototype.slice=function(P,H){var Z=this.length;P=~~P,H=H===void 0?Z:~~H,P<0?(P+=Z,P<0&&(P=0)):P>Z&&(P=Z),H<0?(H+=Z,H<0&&(H=0)):H>Z&&(H=Z),H<P&&(H=P);var oe=this.subarray(P,H);return Object.setPrototypeOf(oe,s.prototype),oe};function F(Q,P,H){if(Q%1!=0||Q<0)throw new RangeError("offset is not uint");if(Q+P>H)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(P,H,Z){P=P>>>0,H=H>>>0,Z||F(P,H,this.length);for(var oe=this[P],ce=1,ne=0;++ne<H&&(ce*=256);)oe+=this[P+ne]*ce;return oe},s.prototype.readUintBE=s.prototype.readUIntBE=function(P,H,Z){P=P>>>0,H=H>>>0,Z||F(P,H,this.length);for(var oe=this[P+--H],ce=1;H>0&&(ce*=256);)oe+=this[P+--H]*ce;return oe},s.prototype.readUint8=s.prototype.readUInt8=function(P,H){return P=P>>>0,H||F(P,1,this.length),this[P]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(P,H){return P=P>>>0,H||F(P,2,this.length),this[P]|this[P+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(P,H){return P=P>>>0,H||F(P,2,this.length),this[P]<<8|this[P+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(P,H){return P=P>>>0,H||F(P,4,this.length),(this[P]|this[P+1]<<8|this[P+2]<<16)+this[P+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(P,H){return P=P>>>0,H||F(P,4,this.length),this[P]*16777216+(this[P+1]<<16|this[P+2]<<8|this[P+3])},s.prototype.readIntLE=function(P,H,Z){P=P>>>0,H=H>>>0,Z||F(P,H,this.length);for(var oe=this[P],ce=1,ne=0;++ne<H&&(ce*=256);)oe+=this[P+ne]*ce;return ce*=128,oe>=ce&&(oe-=Math.pow(2,8*H)),oe},s.prototype.readIntBE=function(P,H,Z){P=P>>>0,H=H>>>0,Z||F(P,H,this.length);for(var oe=H,ce=1,ne=this[P+--oe];oe>0&&(ce*=256);)ne+=this[P+--oe]*ce;return ce*=128,ne>=ce&&(ne-=Math.pow(2,8*H)),ne},s.prototype.readInt8=function(P,H){return P=P>>>0,H||F(P,1,this.length),this[P]&128?(255-this[P]+1)*-1:this[P]},s.prototype.readInt16LE=function(P,H){P=P>>>0,H||F(P,2,this.length);var Z=this[P]|this[P+1]<<8;return Z&32768?Z|4294901760:Z},s.prototype.readInt16BE=function(P,H){P=P>>>0,H||F(P,2,this.length);var Z=this[P+1]|this[P]<<8;return Z&32768?Z|4294901760:Z},s.prototype.readInt32LE=function(P,H){return P=P>>>0,H||F(P,4,this.length),this[P]|this[P+1]<<8|this[P+2]<<16|this[P+3]<<24},s.prototype.readInt32BE=function(P,H){return P=P>>>0,H||F(P,4,this.length),this[P]<<24|this[P+1]<<16|this[P+2]<<8|this[P+3]},s.prototype.readFloatLE=function(P,H){return P=P>>>0,H||F(P,4,this.length),e.read(this,P,!0,23,4)},s.prototype.readFloatBE=function(P,H){return P=P>>>0,H||F(P,4,this.length),e.read(this,P,!1,23,4)},s.prototype.readDoubleLE=function(P,H){return P=P>>>0,H||F(P,8,this.length),e.read(this,P,!0,52,8)},s.prototype.readDoubleBE=function(P,H){return P=P>>>0,H||F(P,8,this.length),e.read(this,P,!1,52,8)};function B(Q,P,H,Z,oe,ce){if(!s.isBuffer(Q))throw new TypeError('"buffer" argument must be a Buffer instance');if(P>oe||P<ce)throw new RangeError('"value" argument is out of bounds');if(H+Z>Q.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(P,H,Z,oe){if(P=+P,H=H>>>0,Z=Z>>>0,!oe){var ce=Math.pow(2,8*Z)-1;B(this,P,H,Z,ce,0)}var ne=1,se=0;for(this[H]=P&255;++se<Z&&(ne*=256);)this[H+se]=P/ne&255;return H+Z},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(P,H,Z,oe){if(P=+P,H=H>>>0,Z=Z>>>0,!oe){var ce=Math.pow(2,8*Z)-1;B(this,P,H,Z,ce,0)}var ne=Z-1,se=1;for(this[H+ne]=P&255;--ne>=0&&(se*=256);)this[H+ne]=P/se&255;return H+Z},s.prototype.writeUint8=s.prototype.writeUInt8=function(P,H,Z){return P=+P,H=H>>>0,Z||B(this,P,H,1,255,0),this[H]=P&255,H+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(P,H,Z){return P=+P,H=H>>>0,Z||B(this,P,H,2,65535,0),this[H]=P&255,this[H+1]=P>>>8,H+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(P,H,Z){return P=+P,H=H>>>0,Z||B(this,P,H,2,65535,0),this[H]=P>>>8,this[H+1]=P&255,H+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(P,H,Z){return P=+P,H=H>>>0,Z||B(this,P,H,4,4294967295,0),this[H+3]=P>>>24,this[H+2]=P>>>16,this[H+1]=P>>>8,this[H]=P&255,H+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(P,H,Z){return P=+P,H=H>>>0,Z||B(this,P,H,4,4294967295,0),this[H]=P>>>24,this[H+1]=P>>>16,this[H+2]=P>>>8,this[H+3]=P&255,H+4},s.prototype.writeIntLE=function(P,H,Z,oe){if(P=+P,H=H>>>0,!oe){var ce=Math.pow(2,8*Z-1);B(this,P,H,Z,ce-1,-ce)}var ne=0,se=1,fe=0;for(this[H]=P&255;++ne<Z&&(se*=256);)P<0&&fe===0&&this[H+ne-1]!==0&&(fe=1),this[H+ne]=(P/se>>0)-fe&255;return H+Z},s.prototype.writeIntBE=function(P,H,Z,oe){if(P=+P,H=H>>>0,!oe){var ce=Math.pow(2,8*Z-1);B(this,P,H,Z,ce-1,-ce)}var ne=Z-1,se=1,fe=0;for(this[H+ne]=P&255;--ne>=0&&(se*=256);)P<0&&fe===0&&this[H+ne+1]!==0&&(fe=1),this[H+ne]=(P/se>>0)-fe&255;return H+Z},s.prototype.writeInt8=function(P,H,Z){return P=+P,H=H>>>0,Z||B(this,P,H,1,127,-128),P<0&&(P=255+P+1),this[H]=P&255,H+1},s.prototype.writeInt16LE=function(P,H,Z){return P=+P,H=H>>>0,Z||B(this,P,H,2,32767,-32768),this[H]=P&255,this[H+1]=P>>>8,H+2},s.prototype.writeInt16BE=function(P,H,Z){return P=+P,H=H>>>0,Z||B(this,P,H,2,32767,-32768),this[H]=P>>>8,this[H+1]=P&255,H+2},s.prototype.writeInt32LE=function(P,H,Z){return P=+P,H=H>>>0,Z||B(this,P,H,4,2147483647,-2147483648),this[H]=P&255,this[H+1]=P>>>8,this[H+2]=P>>>16,this[H+3]=P>>>24,H+4},s.prototype.writeInt32BE=function(P,H,Z){return P=+P,H=H>>>0,Z||B(this,P,H,4,2147483647,-2147483648),P<0&&(P=4294967295+P+1),this[H]=P>>>24,this[H+1]=P>>>16,this[H+2]=P>>>8,this[H+3]=P&255,H+4};function X(Q,P,H,Z,oe,ce){if(H+Z>Q.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("Index out of range")}function K(Q,P,H,Z,oe){return P=+P,H=H>>>0,oe||X(Q,P,H,4),e.write(Q,P,H,Z,23,4),H+4}s.prototype.writeFloatLE=function(P,H,Z){return K(this,P,H,!0,Z)},s.prototype.writeFloatBE=function(P,H,Z){return K(this,P,H,!1,Z)};function te(Q,P,H,Z,oe){return P=+P,H=H>>>0,oe||X(Q,P,H,8),e.write(Q,P,H,Z,52,8),H+8}s.prototype.writeDoubleLE=function(P,H,Z){return te(this,P,H,!0,Z)},s.prototype.writeDoubleBE=function(P,H,Z){return te(this,P,H,!1,Z)},s.prototype.copy=function(P,H,Z,oe){if(!s.isBuffer(P))throw new TypeError("argument should be a Buffer");if(Z||(Z=0),!oe&&oe!==0&&(oe=this.length),H>=P.length&&(H=P.length),H||(H=0),oe>0&&oe<Z&&(oe=Z),oe===Z||P.length===0||this.length===0)return 0;if(H<0)throw new RangeError("targetStart out of bounds");if(Z<0||Z>=this.length)throw new RangeError("Index out of range");if(oe<0)throw new RangeError("sourceEnd out of bounds");oe>this.length&&(oe=this.length),P.length-H<oe-Z&&(oe=P.length-H+Z);var ce=oe-Z;return this===P&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(H,Z,oe):Uint8Array.prototype.set.call(P,this.subarray(Z,oe),H),ce},s.prototype.fill=function(P,H,Z,oe){if(typeof P=="string"){if(typeof H=="string"?(oe=H,H=0,Z=this.length):typeof Z=="string"&&(oe=Z,Z=this.length),oe!==void 0&&typeof oe!="string")throw new TypeError("encoding must be a string");if(typeof oe=="string"&&!s.isEncoding(oe))throw new TypeError("Unknown encoding: "+oe);if(P.length===1){var ce=P.charCodeAt(0);(oe==="utf8"&&ce<128||oe==="latin1")&&(P=ce)}}else typeof P=="number"?P=P&255:typeof P=="boolean"&&(P=Number(P));if(H<0||this.length<H||this.length<Z)throw new RangeError("Out of range index");if(Z<=H)return this;H=H>>>0,Z=Z===void 0?this.length:Z>>>0,P||(P=0);var ne;if(typeof P=="number")for(ne=H;ne<Z;++ne)this[ne]=P;else{var se=s.isBuffer(P)?P:s.from(P,oe),fe=se.length;if(fe===0)throw new TypeError('The value "'+P+'" is invalid for argument "value"');for(ne=0;ne<Z-H;++ne)this[ne+H]=se[ne%fe]}return this};var $=/[^+/0-9A-Za-z-_]/g;function q(Q){if(Q=Q.split("=")[0],Q=Q.trim().replace($,""),Q.length<2)return"";for(;Q.length%4!=0;)Q=Q+"=";return Q}function k(Q,P){P=P||1/0;for(var H,Z=Q.length,oe=null,ce=[],ne=0;ne<Z;++ne){if(H=Q.charCodeAt(ne),H>55295&&H<57344){if(!oe){if(H>56319){(P-=3)>-1&&ce.push(239,191,189);continue}else if(ne+1===Z){(P-=3)>-1&&ce.push(239,191,189);continue}oe=H;continue}if(H<56320){(P-=3)>-1&&ce.push(239,191,189),oe=H;continue}H=(oe-55296<<10|H-56320)+65536}else oe&&(P-=3)>-1&&ce.push(239,191,189);if(oe=null,H<128){if((P-=1)<0)break;ce.push(H)}else if(H<2048){if((P-=2)<0)break;ce.push(H>>6|192,H&63|128)}else if(H<65536){if((P-=3)<0)break;ce.push(H>>12|224,H>>6&63|128,H&63|128)}else if(H<1114112){if((P-=4)<0)break;ce.push(H>>18|240,H>>12&63|128,H>>6&63|128,H&63|128)}else throw new Error("Invalid code point")}return ce}function L(Q){for(var P=[],H=0;H<Q.length;++H)P.push(Q.charCodeAt(H)&255);return P}function V(Q,P){for(var H,Z,oe,ce=[],ne=0;ne<Q.length&&!((P-=2)<0);++ne)H=Q.charCodeAt(ne),Z=H>>8,oe=H%256,ce.push(oe),ce.push(Z);return ce}function J(Q){return t.toByteArray(q(Q))}function re(Q,P,H,Z){for(var oe=0;oe<Z&&!(oe+H>=P.length||oe>=Q.length);++oe)P[oe+H]=Q[oe];return oe}function ae(Q,P){return Q instanceof P||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===P.name}function j(Q){return Q!==Q}var ue=function(){for(var Q="0123456789abcdef",P=new Array(256),H=0;H<16;++H)for(var Z=H*16,oe=0;oe<16;++oe)P[Z+oe]=Q[H]+Q[oe];return P}()}(d1)),d1}var p1={},m1={},g1,dw;function pw(){return dw||(dw=1,g1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},e=Symbol("test"),n=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[e]=i;for(e in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,e);if(o.value!==i||o.enumerable!==!0)return!1}return!0}),g1}var v1,mw;function y1(){if(mw)return v1;mw=1;var r=pw();return v1=function(){return r()&&!!Symbol.toStringTag},v1}var b1,gw;function sM(){return gw||(gw=1,b1=Error),b1}var w1,vw;function uM(){return vw||(vw=1,w1=EvalError),w1}var x1,yw;function cM(){return yw||(yw=1,x1=RangeError),x1}var _1,bw;function lM(){return bw||(bw=1,_1=ReferenceError),_1}var E1,ww;function xw(){return ww||(ww=1,E1=SyntaxError),E1}var A1,_w;function Uh(){return _w||(_w=1,A1=TypeError),A1}var T1,Ew;function fM(){return Ew||(Ew=1,T1=URIError),T1}var S1,Aw;function hM(){if(Aw)return S1;Aw=1;var r=typeof Symbol!="undefined"&&Symbol,t=pw();return S1=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},S1}var D1,Tw;function dM(){if(Tw)return D1;Tw=1;var r={__proto__:null,foo:{}},t=Object;return D1=function(){return{__proto__:r}.foo===r.foo&&!(r instanceof t)},D1}var C1,Sw;function pM(){if(Sw)return C1;Sw=1;var r="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,e=Math.max,n="[object Function]",i=function(u,c){for(var l=[],d=0;d<u.length;d+=1)l[d]=u[d];for(var h=0;h<c.length;h+=1)l[h+u.length]=c[h];return l},a=function(u,c){for(var l=[],d=c,h=0;d<u.length;d+=1,h+=1)l[h]=u[d];return l},o=function(s,u){for(var c="",l=0;l<s.length;l+=1)c+=s[l],l+1<s.length&&(c+=u);return c};return C1=function(u){var c=this;if(typeof c!="function"||t.apply(c)!==n)throw new TypeError(r+c);for(var l=a(arguments,1),d,h=function(){if(this instanceof d){var y=c.apply(this,i(l,arguments));return Object(y)===y?y:this}return c.apply(u,i(l,arguments))},f=e(0,c.length-l.length),g=[],m=0;m<f;m++)g[m]="$"+m;if(d=Function("binder","return function ("+o(g,",")+"){ return binder.apply(this,arguments); }")(h),c.prototype){var p=function(){};p.prototype=c.prototype,d.prototype=new p,p.prototype=null}return d},C1}var O1,Dw;function I1(){if(Dw)return O1;Dw=1;var r=pM();return O1=Function.prototype.bind||r,O1}var k1,Cw;function mM(){if(Cw)return k1;Cw=1;var r=Function.prototype.call,t=Object.prototype.hasOwnProperty,e=I1();return k1=e.call(r,t),k1}var R1,Ow;function nl(){if(Ow)return R1;Ow=1;var r,t=sM(),e=uM(),n=cM(),i=lM(),a=xw(),o=Uh(),s=fM(),u=Function,c=function(w){try{return u('"use strict"; return ('+w+").constructor;")()}catch{}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch{l=null}var d=function(){throw new o},h=l?function(){try{return arguments.callee,d}catch{try{return l(arguments,"callee").get}catch{return d}}}():d,f=hM()(),g=dM()(),m=Object.getPrototypeOf||(g?function(w){return w.__proto__}:null),p={},y=typeof Uint8Array=="undefined"||!m?r:m(Uint8Array),v={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?r:ArrayBuffer,"%ArrayIteratorPrototype%":f&&m?m([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":typeof Atomics=="undefined"?r:Atomics,"%BigInt%":typeof BigInt=="undefined"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":e,"%Float32Array%":typeof Float32Array=="undefined"?r:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?r:FinalizationRegistry,"%Function%":u,"%GeneratorFunction%":p,"%Int8Array%":typeof Int8Array=="undefined"?r:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?r:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f&&m?m(m([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map=="undefined"?r:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!f||!m?r:m(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?r:Promise,"%Proxy%":typeof Proxy=="undefined"?r:Proxy,"%RangeError%":n,"%ReferenceError%":i,"%Reflect%":typeof Reflect=="undefined"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?r:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!f||!m?r:m(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&m?m(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":h,"%TypedArray%":y,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array=="undefined"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?r:Uint32Array,"%URIError%":s,"%WeakMap%":typeof WeakMap=="undefined"?r:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?r:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?r:WeakSet};if(m)try{null.error}catch(w){var b=m(m(w));v["%Error.prototype%"]=b}var A=function w(_){var E;if(_==="%AsyncFunction%")E=c("async function () {}");else if(_==="%GeneratorFunction%")E=c("function* () {}");else if(_==="%AsyncGeneratorFunction%")E=c("async function* () {}");else if(_==="%AsyncGenerator%"){var R=w("%AsyncGeneratorFunction%");R&&(E=R.prototype)}else if(_==="%AsyncIteratorPrototype%"){var F=w("%AsyncGenerator%");F&&m&&(E=m(F.prototype))}return v[_]=E,E},C={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=I1(),z=mM(),W=M.call(Function.call,Array.prototype.concat),U=M.call(Function.apply,Array.prototype.splice),G=M.call(Function.call,String.prototype.replace),ee=M.call(Function.call,String.prototype.slice),I=M.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,S=function(_){var E=ee(_,0,1),R=ee(_,-1);if(E==="%"&&R!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(R==="%"&&E!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var F=[];return G(_,O,function(B,X,K,te){F[F.length]=K?G(te,T,"$1"):X||B}),F},x=function(_,E){var R=_,F;if(z(C,R)&&(F=C[R],R="%"+F[0]+"%"),z(v,R)){var B=v[R];if(B===p&&(B=A(R)),typeof B=="undefined"&&!E)throw new o("intrinsic "+_+" exists, but is not available. Please file an issue!");return{alias:F,name:R,value:B}}throw new a("intrinsic "+_+" does not exist!")};return R1=function(_,E){if(typeof _!="string"||_.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof E!="boolean")throw new o('"allowMissing" argument must be a boolean');if(I(/^%?[^%]*%?$/,_)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var R=S(_),F=R.length>0?R[0]:"",B=x("%"+F+"%",E),X=B.name,K=B.value,te=!1,$=B.alias;$&&(F=$[0],U(R,W([0,1],$)));for(var q=1,k=!0;q<R.length;q+=1){var L=R[q],V=ee(L,0,1),J=ee(L,-1);if((V==='"'||V==="'"||V==="`"||J==='"'||J==="'"||J==="`")&&V!==J)throw new a("property names with quotes must have matching quotes");if((L==="constructor"||!k)&&(te=!0),F+="."+L,X="%"+F+"%",z(v,X))K=v[X];else if(K!=null){if(!(L in K)){if(!E)throw new o("base intrinsic for "+_+" exists, but the property is not available.");return}if(l&&q+1>=R.length){var re=l(K,L);k=!!re,k&&"get"in re&&!("originalValue"in re.get)?K=re.get:K=K[L]}else k=z(K,L),K=K[L];k&&!te&&(v[X]=K)}}return K},R1}var F1={exports:{}},N1,Iw;function M1(){if(Iw)return N1;Iw=1;var r=nl(),t=r("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return N1=t,N1}var B1,kw;function U1(){if(kw)return B1;kw=1;var r=nl(),t=r("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return B1=t,B1}var P1,Rw;function gM(){if(Rw)return P1;Rw=1;var r=M1(),t=xw(),e=Uh(),n=U1();return P1=function(a,o,s){if(!a||typeof a!="object"&&typeof a!="function")throw new e("`obj` must be an object or a function`");if(typeof o!="string"&&typeof o!="symbol")throw new e("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new e("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new e("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new e("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new e("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,h=!!n&&n(a,o);if(r)r(a,o,{configurable:l===null&&h?h.configurable:!l,enumerable:u===null&&h?h.enumerable:!u,value:s,writable:c===null&&h?h.writable:!c});else if(d||!u&&!c&&!l)a[o]=s;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},P1}var L1,Fw;function vM(){if(Fw)return L1;Fw=1;var r=M1(),t=function(){return!!r};return t.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},L1=t,L1}var j1,Nw;function yM(){if(Nw)return j1;Nw=1;var r=nl(),t=gM(),e=vM()(),n=U1(),i=Uh(),a=r("%Math.floor%");return j1=function(s,u){if(typeof s!="function")throw new i("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||a(u)!==u)throw new i("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],l=!0,d=!0;if("length"in s&&n){var h=n(s,"length");h&&!h.configurable&&(l=!1),h&&!h.writable&&(d=!1)}return(l||d||!c)&&(e?t(s,"length",u,!0,!0):t(s,"length",u)),s},j1}var Mw;function Bw(){return Mw||(Mw=1,function(r){var t=I1(),e=nl(),n=yM(),i=Uh(),a=e("%Function.prototype.apply%"),o=e("%Function.prototype.call%"),s=e("%Reflect.apply%",!0)||t.call(o,a),u=M1(),c=e("%Math.max%");r.exports=function(h){if(typeof h!="function")throw new i("a function is required");var f=s(t,o,arguments);return n(f,1+c(0,h.length-(arguments.length-1)),!0)};var l=function(){return s(t,a,arguments)};u?u(r.exports,"apply",{value:l}):r.exports.apply=l}(F1)),F1.exports}var W1,Uw;function Pw(){if(Uw)return W1;Uw=1;var r=nl(),t=Bw(),e=t(r("String.prototype.indexOf"));return W1=function(i,a){var o=r(i,!!a);return typeof o=="function"&&e(i,".prototype.")>-1?t(o):o},W1}var z1,Lw;function bM(){if(Lw)return z1;Lw=1;var r=y1()(),t=Pw(),e=t("Object.prototype.toString"),n=function(s){return r&&s&&typeof s=="object"&&Symbol.toStringTag in s?!1:e(s)==="[object Arguments]"},i=function(s){return n(s)?!0:s!==null&&typeof s=="object"&&typeof s.length=="number"&&s.length>=0&&e(s)!=="[object Array]"&&e(s.callee)==="[object Function]"},a=function(){return n(arguments)}();return n.isLegacyArguments=i,z1=a?n:i,z1}var H1,jw;function wM(){if(jw)return H1;jw=1;var r=Object.prototype.toString,t=Function.prototype.toString,e=/^\s*(?:function)?\*/,n=y1()(),i=Object.getPrototypeOf,a=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},o;return H1=function(u){if(typeof u!="function")return!1;if(e.test(t.call(u)))return!0;if(!n){var c=r.call(u);return c==="[object GeneratorFunction]"}if(!i)return!1;if(typeof o=="undefined"){var l=a();o=l?i(l):!1}return i(u)===o},H1}var $1,Ww;function xM(){if(Ww)return $1;Ww=1;var r=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,e,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{e=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,e)}catch(v){v!==n&&(t=null)}else t=null;var i=/^\s*class\b/,a=function(b){try{var A=r.call(b);return i.test(A)}catch{return!1}},o=function(b){try{return a(b)?!1:(r.call(b),!0)}catch{return!1}},s=Object.prototype.toString,u="[object Object]",c="[object Function]",l="[object GeneratorFunction]",d="[object HTMLAllCollection]",h="[object HTML document.all class]",f="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,m=!(0 in[,]),p=function(){return!1};if(typeof document=="object"){var y=document.all;s.call(y)===s.call(document.all)&&(p=function(b){if((m||!b)&&(typeof b=="undefined"||typeof b=="object"))try{var A=s.call(b);return(A===d||A===h||A===f||A===u)&&b("")==null}catch{}return!1})}return $1=t?function(b){if(p(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;try{t(b,null,e)}catch(A){if(A!==n)return!1}return!a(b)&&o(b)}:function(b){if(p(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;if(g)return o(b);if(a(b))return!1;var A=s.call(b);return A!==c&&A!==l&&!/^\[object HTML/.test(A)?!1:o(b)},$1}var V1,zw;function _M(){if(zw)return V1;zw=1;var r=xM(),t=Object.prototype.toString,e=Object.prototype.hasOwnProperty,n=function(u,c,l){for(var d=0,h=u.length;d<h;d++)e.call(u,d)&&(l==null?c(u[d],d,u):c.call(l,u[d],d,u))},i=function(u,c,l){for(var d=0,h=u.length;d<h;d++)l==null?c(u.charAt(d),d,u):c.call(l,u.charAt(d),d,u)},a=function(u,c,l){for(var d in u)e.call(u,d)&&(l==null?c(u[d],d,u):c.call(l,u[d],d,u))},o=function(u,c,l){if(!r(c))throw new TypeError("iterator must be a function");var d;arguments.length>=3&&(d=l),t.call(u)==="[object Array]"?n(u,c,d):typeof u=="string"?i(u,c,d):a(u,c,d)};return V1=o,V1}var q1,Hw;function EM(){return Hw||(Hw=1,q1=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),q1}var G1,$w;function AM(){if($w)return G1;$w=1;var r=EM(),t=typeof globalThis=="undefined"?Ma:globalThis;return G1=function(){for(var n=[],i=0;i<r.length;i++)typeof t[r[i]]=="function"&&(n[n.length]=r[i]);return n},G1}var X1,Vw;function qw(){if(Vw)return X1;Vw=1;var r=_M(),t=AM(),e=Bw(),n=Pw(),i=U1(),a=n("Object.prototype.toString"),o=y1()(),s=typeof globalThis=="undefined"?Ma:globalThis,u=t(),c=n("String.prototype.slice"),l=Object.getPrototypeOf,d=n("Array.prototype.indexOf",!0)||function(p,y){for(var v=0;v<p.length;v+=1)if(p[v]===y)return v;return-1},h={__proto__:null};o&&i&&l?r(u,function(m){var p=new s[m];if(Symbol.toStringTag in p){var y=l(p),v=i(y,Symbol.toStringTag);if(!v){var b=l(y);v=i(b,Symbol.toStringTag)}h["$"+m]=e(v.get)}}):r(u,function(m){var p=new s[m],y=p.slice||p.set;y&&(h["$"+m]=e(y))});var f=function(p){var y=!1;return r(h,function(v,b){if(!y)try{"$"+v(p)===b&&(y=c(b,1))}catch{}}),y},g=function(p){var y=!1;return r(h,function(v,b){if(!y)try{v(p),y=c(b,1)}catch{}}),y};return X1=function(p){if(!p||typeof p!="object")return!1;if(!o){var y=c(a(p),8,-1);return d(u,y)>-1?y:y!=="Object"?!1:g(p)}return i?f(p):null},X1}var K1,Gw;function TM(){if(Gw)return K1;Gw=1;var r=qw();return K1=function(e){return!!r(e)},K1}var Xw;function SM(){return Xw||(Xw=1,function(r){var t=bM(),e=wM(),n=qw(),i=TM();function a(Z){return Z.call.bind(Z)}var o=typeof BigInt!="undefined",s=typeof Symbol!="undefined",u=a(Object.prototype.toString),c=a(Number.prototype.valueOf),l=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(o)var h=a(BigInt.prototype.valueOf);if(s)var f=a(Symbol.prototype.valueOf);function g(Z,oe){if(typeof Z!="object")return!1;try{return oe(Z),!0}catch{return!1}}r.isArgumentsObject=t,r.isGeneratorFunction=e,r.isTypedArray=i;function m(Z){return typeof Promise!="undefined"&&Z instanceof Promise||Z!==null&&typeof Z=="object"&&typeof Z.then=="function"&&typeof Z.catch=="function"}r.isPromise=m;function p(Z){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(Z):i(Z)||X(Z)}r.isArrayBufferView=p;function y(Z){return n(Z)==="Uint8Array"}r.isUint8Array=y;function v(Z){return n(Z)==="Uint8ClampedArray"}r.isUint8ClampedArray=v;function b(Z){return n(Z)==="Uint16Array"}r.isUint16Array=b;function A(Z){return n(Z)==="Uint32Array"}r.isUint32Array=A;function C(Z){return n(Z)==="Int8Array"}r.isInt8Array=C;function M(Z){return n(Z)==="Int16Array"}r.isInt16Array=M;function z(Z){return n(Z)==="Int32Array"}r.isInt32Array=z;function W(Z){return n(Z)==="Float32Array"}r.isFloat32Array=W;function U(Z){return n(Z)==="Float64Array"}r.isFloat64Array=U;function G(Z){return n(Z)==="BigInt64Array"}r.isBigInt64Array=G;function ee(Z){return n(Z)==="BigUint64Array"}r.isBigUint64Array=ee;function I(Z){return u(Z)==="[object Map]"}I.working=typeof Map!="undefined"&&I(new Map);function O(Z){return typeof Map=="undefined"?!1:I.working?I(Z):Z instanceof Map}r.isMap=O;function T(Z){return u(Z)==="[object Set]"}T.working=typeof Set!="undefined"&&T(new Set);function S(Z){return typeof Set=="undefined"?!1:T.working?T(Z):Z instanceof Set}r.isSet=S;function x(Z){return u(Z)==="[object WeakMap]"}x.working=typeof WeakMap!="undefined"&&x(new WeakMap);function w(Z){return typeof WeakMap=="undefined"?!1:x.working?x(Z):Z instanceof WeakMap}r.isWeakMap=w;function _(Z){return u(Z)==="[object WeakSet]"}_.working=typeof WeakSet!="undefined"&&_(new WeakSet);function E(Z){return _(Z)}r.isWeakSet=E;function R(Z){return u(Z)==="[object ArrayBuffer]"}R.working=typeof ArrayBuffer!="undefined"&&R(new ArrayBuffer);function F(Z){return typeof ArrayBuffer=="undefined"?!1:R.working?R(Z):Z instanceof ArrayBuffer}r.isArrayBuffer=F;function B(Z){return u(Z)==="[object DataView]"}B.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&B(new DataView(new ArrayBuffer(1),0,1));function X(Z){return typeof DataView=="undefined"?!1:B.working?B(Z):Z instanceof DataView}r.isDataView=X;var K=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function te(Z){return u(Z)==="[object SharedArrayBuffer]"}function $(Z){return typeof K=="undefined"?!1:(typeof te.working=="undefined"&&(te.working=te(new K)),te.working?te(Z):Z instanceof K)}r.isSharedArrayBuffer=$;function q(Z){return u(Z)==="[object AsyncFunction]"}r.isAsyncFunction=q;function k(Z){return u(Z)==="[object Map Iterator]"}r.isMapIterator=k;function L(Z){return u(Z)==="[object Set Iterator]"}r.isSetIterator=L;function V(Z){return u(Z)==="[object Generator]"}r.isGeneratorObject=V;function J(Z){return u(Z)==="[object WebAssembly.Module]"}r.isWebAssemblyCompiledModule=J;function re(Z){return g(Z,c)}r.isNumberObject=re;function ae(Z){return g(Z,l)}r.isStringObject=ae;function j(Z){return g(Z,d)}r.isBooleanObject=j;function ue(Z){return o&&g(Z,h)}r.isBigIntObject=ue;function Q(Z){return s&&g(Z,f)}r.isSymbolObject=Q;function P(Z){return re(Z)||ae(Z)||j(Z)||ue(Z)||Q(Z)}r.isBoxedPrimitive=P;function H(Z){return typeof Uint8Array!="undefined"&&(F(Z)||$(Z))}r.isAnyArrayBuffer=H,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Z){Object.defineProperty(r,Z,{enumerable:!1,value:function(){throw new Error(Z+" is not supported in userland")}})})}(m1)),m1}var Z1,Kw;function DM(){return Kw||(Kw=1,Z1=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Z1}var Zw;function Yw(){return Zw||(Zw=1,function(r){var t=Object.getOwnPropertyDescriptors||function(X){for(var K=Object.keys(X),te={},$=0;$<K.length;$++)te[K[$]]=Object.getOwnPropertyDescriptor(X,K[$]);return te},e=/%[sdj%]/g;r.format=function(B){if(!C(B)){for(var X=[],K=0;K<arguments.length;K++)X.push(o(arguments[K]));return X.join(" ")}for(var K=1,te=arguments,$=te.length,q=String(B).replace(e,function(L){if(L==="%%")return"%";if(K>=$)return L;switch(L){case"%s":return String(te[K++]);case"%d":return Number(te[K++]);case"%j":try{return JSON.stringify(te[K++])}catch{return"[Circular]"}default:return L}}),k=te[K];K<$;k=te[++K])v(k)||!U(k)?q+=" "+k:q+=" "+o(k);return q},r.deprecate=function(B,X){if(typeof tr!="undefined"&&tr.noDeprecation===!0)return B;if(typeof tr=="undefined")return function(){return r.deprecate(B,X).apply(this,arguments)};var K=!1;function te(){if(!K){if(tr.throwDeprecation)throw new Error(X);tr.traceDeprecation?console.trace(X):console.error(X),K=!0}return B.apply(this,arguments)}return te};var n={},i=/^$/;if(tr.env.NODE_DEBUG){var a=tr.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+a+"$","i")}r.debuglog=function(B){if(B=B.toUpperCase(),!n[B])if(i.test(B)){var X=tr.pid;n[B]=function(){var K=r.format.apply(r,arguments);console.error("%s %d: %s",B,X,K)}}else n[B]=function(){};return n[B]};function o(B,X){var K={seen:[],stylize:u};return arguments.length>=3&&(K.depth=arguments[2]),arguments.length>=4&&(K.colors=arguments[3]),y(X)?K.showHidden=X:X&&r._extend(K,X),z(K.showHidden)&&(K.showHidden=!1),z(K.depth)&&(K.depth=2),z(K.colors)&&(K.colors=!1),z(K.customInspect)&&(K.customInspect=!0),K.colors&&(K.stylize=s),l(K,B,K.depth)}r.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(B,X){var K=o.styles[X];return K?"["+o.colors[K][0]+"m"+B+"["+o.colors[K][1]+"m":B}function u(B,X){return B}function c(B){var X={};return B.forEach(function(K,te){X[K]=!0}),X}function l(B,X,K){if(B.customInspect&&X&&I(X.inspect)&&X.inspect!==r.inspect&&!(X.constructor&&X.constructor.prototype===X)){var te=X.inspect(K,B);return C(te)||(te=l(B,te,K)),te}var $=d(B,X);if($)return $;var q=Object.keys(X),k=c(q);if(B.showHidden&&(q=Object.getOwnPropertyNames(X)),ee(X)&&(q.indexOf("message")>=0||q.indexOf("description")>=0))return h(X);if(q.length===0){if(I(X)){var L=X.name?": "+X.name:"";return B.stylize("[Function"+L+"]","special")}if(W(X))return B.stylize(RegExp.prototype.toString.call(X),"regexp");if(G(X))return B.stylize(Date.prototype.toString.call(X),"date");if(ee(X))return h(X)}var V="",J=!1,re=["{","}"];if(p(X)&&(J=!0,re=["[","]"]),I(X)){var ae=X.name?": "+X.name:"";V=" [Function"+ae+"]"}if(W(X)&&(V=" "+RegExp.prototype.toString.call(X)),G(X)&&(V=" "+Date.prototype.toUTCString.call(X)),ee(X)&&(V=" "+h(X)),q.length===0&&(!J||X.length==0))return re[0]+V+re[1];if(K<0)return W(X)?B.stylize(RegExp.prototype.toString.call(X),"regexp"):B.stylize("[Object]","special");B.seen.push(X);var j;return J?j=f(B,X,K,k,q):j=q.map(function(ue){return g(B,X,K,k,ue,J)}),B.seen.pop(),m(j,V,re)}function d(B,X){if(z(X))return B.stylize("undefined","undefined");if(C(X)){var K="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return B.stylize(K,"string")}if(A(X))return B.stylize(""+X,"number");if(y(X))return B.stylize(""+X,"boolean");if(v(X))return B.stylize("null","null")}function h(B){return"["+Error.prototype.toString.call(B)+"]"}function f(B,X,K,te,$){for(var q=[],k=0,L=X.length;k<L;++k)_(X,String(k))?q.push(g(B,X,K,te,String(k),!0)):q.push("");return $.forEach(function(V){V.match(/^\d+$/)||q.push(g(B,X,K,te,V,!0))}),q}function g(B,X,K,te,$,q){var k,L,V;if(V=Object.getOwnPropertyDescriptor(X,$)||{value:X[$]},V.get?V.set?L=B.stylize("[Getter/Setter]","special"):L=B.stylize("[Getter]","special"):V.set&&(L=B.stylize("[Setter]","special")),_(te,$)||(k="["+$+"]"),L||(B.seen.indexOf(V.value)<0?(v(K)?L=l(B,V.value,null):L=l(B,V.value,K-1),L.indexOf(`
`)>-1&&(q?L=L.split(`
`).map(function(J){return" "+J}).join(`
`).slice(2):L=`
`+L.split(`
`).map(function(J){return" "+J}).join(`
`))):L=B.stylize("[Circular]","special")),z(k)){if(q&&$.match(/^\d+$/))return L;k=JSON.stringify(""+$),k.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(k=k.slice(1,-1),k=B.stylize(k,"name")):(k=k.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),k=B.stylize(k,"string"))}return k+": "+L}function m(B,X,K){var te=B.reduce(function($,q){return q.indexOf(`
`)>=0,$+q.replace(/\u001b\[\d\d?m/g,"").length+1},0);return te>60?K[0]+(X===""?"":X+`
`)+" "+B.join(`,
`)+" "+K[1]:K[0]+X+" "+B.join(", ")+" "+K[1]}r.types=SM();function p(B){return Array.isArray(B)}r.isArray=p;function y(B){return typeof B=="boolean"}r.isBoolean=y;function v(B){return B===null}r.isNull=v;function b(B){return B==null}r.isNullOrUndefined=b;function A(B){return typeof B=="number"}r.isNumber=A;function C(B){return typeof B=="string"}r.isString=C;function M(B){return typeof B=="symbol"}r.isSymbol=M;function z(B){return B===void 0}r.isUndefined=z;function W(B){return U(B)&&T(B)==="[object RegExp]"}r.isRegExp=W,r.types.isRegExp=W;function U(B){return typeof B=="object"&&B!==null}r.isObject=U;function G(B){return U(B)&&T(B)==="[object Date]"}r.isDate=G,r.types.isDate=G;function ee(B){return U(B)&&(T(B)==="[object Error]"||B instanceof Error)}r.isError=ee,r.types.isNativeError=ee;function I(B){return typeof B=="function"}r.isFunction=I;function O(B){return B===null||typeof B=="boolean"||typeof B=="number"||typeof B=="string"||typeof B=="symbol"||typeof B=="undefined"}r.isPrimitive=O,r.isBuffer=DM();function T(B){return Object.prototype.toString.call(B)}function S(B){return B<10?"0"+B.toString(10):B.toString(10)}var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function w(){var B=new Date,X=[S(B.getHours()),S(B.getMinutes()),S(B.getSeconds())].join(":");return[B.getDate(),x[B.getMonth()],X].join(" ")}r.log=function(){console.log("%s - %s",w(),r.format.apply(r,arguments))},r.inherits=ts,r._extend=function(B,X){if(!X||!U(X))return B;for(var K=Object.keys(X),te=K.length;te--;)B[K[te]]=X[K[te]];return B};function _(B,X){return Object.prototype.hasOwnProperty.call(B,X)}var E=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;r.promisify=function(X){if(typeof X!="function")throw new TypeError('The "original" argument must be of type Function');if(E&&X[E]){var K=X[E];if(typeof K!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(K,E,{value:K,enumerable:!1,writable:!1,configurable:!0}),K}function K(){for(var te,$,q=new Promise(function(V,J){te=V,$=J}),k=[],L=0;L<arguments.length;L++)k.push(arguments[L]);k.push(function(V,J){V?$(V):te(J)});try{X.apply(this,k)}catch(V){$(V)}return q}return Object.setPrototypeOf(K,Object.getPrototypeOf(X)),E&&Object.defineProperty(K,E,{value:K,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(K,t(X))},r.promisify.custom=E;function R(B,X){if(!B){var K=new Error("Promise was rejected with a falsy value");K.reason=B,B=K}return X(B)}function F(B){if(typeof B!="function")throw new TypeError('The "original" argument must be of type Function');function X(){for(var K=[],te=0;te<arguments.length;te++)K.push(arguments[te]);var $=K.pop();if(typeof $!="function")throw new TypeError("The last argument must be of type Function");var q=this,k=function(){return $.apply(q,arguments)};B.apply(this,K).then(function(L){tr.nextTick(k.bind(null,null,L))},function(L){tr.nextTick(R.bind(null,L,k))})}return Object.setPrototypeOf(X,Object.getPrototypeOf(B)),Object.defineProperties(X,t(B)),X}r.callbackify=F}(p1)),p1}var Y1,Jw;function CM(){if(Jw)return Y1;Jw=1;function r(h,f){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(h);f&&(m=m.filter(function(p){return Object.getOwnPropertyDescriptor(h,p).enumerable})),g.push.apply(g,m)}return g}function t(h){for(var f=1;f<arguments.length;f++){var g=arguments[f]!=null?arguments[f]:{};f%2?r(Object(g),!0).forEach(function(m){e(h,m,g[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(g)):r(Object(g)).forEach(function(m){Object.defineProperty(h,m,Object.getOwnPropertyDescriptor(g,m))})}return h}function e(h,f,g){return f in h?Object.defineProperty(h,f,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[f]=g,h}function n(h,f){if(!(h instanceof f))throw new TypeError("Cannot call a class as a function")}function i(h,f){for(var g=0;g<f.length;g++){var m=f[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}function a(h,f,g){return f&&i(h.prototype,f),h}var o=Bh(),s=o.Buffer,u=Yw(),c=u.inspect,l=c&&c.custom||"inspect";function d(h,f,g){s.prototype.copy.call(h,f,g)}return Y1=function(){function h(){n(this,h),this.head=null,this.tail=null,this.length=0}return a(h,[{key:"push",value:function(g){var m={data:g,next:null};this.length>0?this.tail.next=m:this.head=m,this.tail=m,++this.length}},{key:"unshift",value:function(g){var m={data:g,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var m=this.head,p=""+m.data;m=m.next;)p+=g+m.data;return p}},{key:"concat",value:function(g){if(this.length===0)return s.alloc(0);for(var m=s.allocUnsafe(g>>>0),p=this.head,y=0;p;)d(p.data,m,y),y+=p.data.length,p=p.next;return m}},{key:"consume",value:function(g,m){var p;return g<this.head.data.length?(p=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):g===this.head.data.length?p=this.shift():p=m?this._getString(g):this._getBuffer(g),p}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var m=this.head,p=1,y=m.data;for(g-=y.length;m=m.next;){var v=m.data,b=g>v.length?v.length:g;if(b===v.length?y+=v:y+=v.slice(0,g),g-=b,g===0){b===v.length?(++p,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=v.slice(b));break}++p}return this.length-=p,y}},{key:"_getBuffer",value:function(g){var m=s.allocUnsafe(g),p=this.head,y=1;for(p.data.copy(m),g-=p.data.length;p=p.next;){var v=p.data,b=g>v.length?v.length:g;if(v.copy(m,m.length-g,0,b),g-=b,g===0){b===v.length?(++y,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=v.slice(b));break}++y}return this.length-=y,m}},{key:l,value:function(g,m){return c(this,t({},m,{depth:0,customInspect:!1}))}}]),h}(),Y1}var J1,Qw;function ex(){if(Qw)return J1;Qw=1;function r(o,s){var u=this,c=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return c||l?(s?s(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,tr.nextTick(i,this,o)):tr.nextTick(i,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(d){!s&&d?u._writableState?u._writableState.errorEmitted?tr.nextTick(e,u):(u._writableState.errorEmitted=!0,tr.nextTick(t,u,d)):tr.nextTick(t,u,d):s?(tr.nextTick(e,u),s(d)):tr.nextTick(e,u)}),this)}function t(o,s){i(o,s),e(o)}function e(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(o,s){o.emit("error",s)}function a(o,s){var u=o._readableState,c=o._writableState;u&&u.autoDestroy||c&&c.autoDestroy?o.destroy(s):o.emit("error",s)}return J1={destroy:r,undestroy:n,errorOrDestroy:a},J1}var Q1={},tx;function ku(){if(tx)return Q1;tx=1;function r(s,u){s.prototype=Object.create(u.prototype),s.prototype.constructor=s,s.__proto__=u}var t={};function e(s,u,c){c||(c=Error);function l(h,f,g){return typeof u=="string"?u:u(h,f,g)}var d=function(h){r(f,h);function f(g,m,p){return h.call(this,l(g,m,p))||this}return f}(c);d.prototype.name=c.name,d.prototype.code=s,t[s]=d}function n(s,u){if(Array.isArray(s)){var c=s.length;return s=s.map(function(l){return String(l)}),c>2?"one of ".concat(u," ").concat(s.slice(0,c-1).join(", "),", or ")+s[c-1]:c===2?"one of ".concat(u," ").concat(s[0]," or ").concat(s[1]):"of ".concat(u," ").concat(s[0])}else return"of ".concat(u," ").concat(String(s))}function i(s,u,c){return s.substr(0,u.length)===u}function a(s,u,c){return(c===void 0||c>s.length)&&(c=s.length),s.substring(c-u.length,c)===u}function o(s,u,c){return typeof c!="number"&&(c=0),c+u.length>s.length?!1:s.indexOf(u,c)!==-1}return e("ERR_INVALID_OPT_VALUE",function(s,u){return'The value "'+u+'" is invalid for option "'+s+'"'},TypeError),e("ERR_INVALID_ARG_TYPE",function(s,u,c){var l;typeof u=="string"&&i(u,"not ")?(l="must not be",u=u.replace(/^not /,"")):l="must be";var d;if(a(s," argument"))d="The ".concat(s," ").concat(l," ").concat(n(u,"type"));else{var h=o(s,".")?"property":"argument";d='The "'.concat(s,'" ').concat(h," ").concat(l," ").concat(n(u,"type"))}return d+=". Received type ".concat(typeof c),d},TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),e("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),e("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),e("ERR_STREAM_WRITE_AFTER_END","write after end"),e("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),e("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Q1.codes=t,Q1}var em,rx;function nx(){if(rx)return em;rx=1;var r=ku().codes.ERR_INVALID_OPT_VALUE;function t(n,i,a){return n.highWaterMark!=null?n.highWaterMark:i?n[a]:null}function e(n,i,a,o){var s=t(i,o,a);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var u=o?a:"highWaterMark";throw new r(u,s)}return Math.floor(s)}return n.objectMode?16:16*1024}return em={getHighWaterMark:e},em}var tm,ix;function OM(){if(ix)return tm;ix=1,tm=r;function r(e,n){if(t("noDeprecation"))return e;var i=!1;function a(){if(!i){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),i=!0}return e.apply(this,arguments)}return a}function t(e){try{if(!Ma.localStorage)return!1}catch{return!1}var n=Ma.localStorage[e];return n==null?!1:String(n).toLowerCase()==="true"}return tm}var rm,ax;function ox(){if(ax)return rm;ax=1,rm=W;function r($){var q=this;this.next=null,this.entry=null,this.finish=function(){te(q,$)}}var t;W.WritableState=M;var e={deprecate:OM()},n=cw(),i=Bh().Buffer,a=Ma.Uint8Array||function(){};function o($){return i.from($)}function s($){return i.isBuffer($)||$ instanceof a}var u=ex(),c=nx(),l=c.getHighWaterMark,d=ku().codes,h=d.ERR_INVALID_ARG_TYPE,f=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,p=d.ERR_STREAM_DESTROYED,y=d.ERR_STREAM_NULL_VALUES,v=d.ERR_STREAM_WRITE_AFTER_END,b=d.ERR_UNKNOWN_ENCODING,A=u.errorOrDestroy;ts(W,n);function C(){}function M($,q,k){t=t||Ru(),$=$||{},typeof k!="boolean"&&(k=q instanceof t),this.objectMode=!!$.objectMode,k&&(this.objectMode=this.objectMode||!!$.writableObjectMode),this.highWaterMark=l(this,$,"writableHighWaterMark",k),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var L=$.decodeStrings===!1;this.decodeStrings=!L,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(V){x(q,V)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=$.emitClose!==!1,this.autoDestroy=!!$.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}M.prototype.getBuffer=function(){for(var q=this.bufferedRequest,k=[];q;)k.push(q),q=q.next;return k},function(){try{Object.defineProperty(M.prototype,"buffer",{get:e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var z;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(z=Function.prototype[Symbol.hasInstance],Object.defineProperty(W,Symbol.hasInstance,{value:function(q){return z.call(this,q)?!0:this!==W?!1:q&&q._writableState instanceof M}})):z=function(q){return q instanceof this};function W($){t=t||Ru();var q=this instanceof t;if(!q&&!z.call(W,this))return new W($);this._writableState=new M($,this,q),this.writable=!0,$&&(typeof $.write=="function"&&(this._write=$.write),typeof $.writev=="function"&&(this._writev=$.writev),typeof $.destroy=="function"&&(this._destroy=$.destroy),typeof $.final=="function"&&(this._final=$.final)),n.call(this)}W.prototype.pipe=function(){A(this,new m)};function U($,q){var k=new v;A($,k),tr.nextTick(q,k)}function G($,q,k,L){var V;return k===null?V=new y:typeof k!="string"&&!q.objectMode&&(V=new h("chunk",["string","Buffer"],k)),V?(A($,V),tr.nextTick(L,V),!1):!0}W.prototype.write=function($,q,k){var L=this._writableState,V=!1,J=!L.objectMode&&s($);return J&&!i.isBuffer($)&&($=o($)),typeof q=="function"&&(k=q,q=null),J?q="buffer":q||(q=L.defaultEncoding),typeof k!="function"&&(k=C),L.ending?U(this,k):(J||G(this,L,$,k))&&(L.pendingcb++,V=I(this,L,J,$,q,k)),V},W.prototype.cork=function(){this._writableState.corked++},W.prototype.uncork=function(){var $=this._writableState;$.corked&&($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest&&E(this,$))},W.prototype.setDefaultEncoding=function(q){if(typeof q=="string"&&(q=q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((q+"").toLowerCase())>-1))throw new b(q);return this._writableState.defaultEncoding=q,this},Object.defineProperty(W.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ee($,q,k){return!$.objectMode&&$.decodeStrings!==!1&&typeof q=="string"&&(q=i.from(q,k)),q}Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function I($,q,k,L,V,J){if(!k){var re=ee(q,L,V);L!==re&&(k=!0,V="buffer",L=re)}var ae=q.objectMode?1:L.length;q.length+=ae;var j=q.length<q.highWaterMark;if(j||(q.needDrain=!0),q.writing||q.corked){var ue=q.lastBufferedRequest;q.lastBufferedRequest={chunk:L,encoding:V,isBuf:k,callback:J,next:null},ue?ue.next=q.lastBufferedRequest:q.bufferedRequest=q.lastBufferedRequest,q.bufferedRequestCount+=1}else O($,q,!1,ae,L,V,J);return j}function O($,q,k,L,V,J,re){q.writelen=L,q.writecb=re,q.writing=!0,q.sync=!0,q.destroyed?q.onwrite(new p("write")):k?$._writev(V,q.onwrite):$._write(V,J,q.onwrite),q.sync=!1}function T($,q,k,L,V){--q.pendingcb,k?(tr.nextTick(V,L),tr.nextTick(X,$,q),$._writableState.errorEmitted=!0,A($,L)):(V(L),$._writableState.errorEmitted=!0,A($,L),X($,q))}function S($){$.writing=!1,$.writecb=null,$.length-=$.writelen,$.writelen=0}function x($,q){var k=$._writableState,L=k.sync,V=k.writecb;if(typeof V!="function")throw new g;if(S(k),q)T($,k,L,q,V);else{var J=R(k)||$.destroyed;!J&&!k.corked&&!k.bufferProcessing&&k.bufferedRequest&&E($,k),L?tr.nextTick(w,$,k,J,V):w($,k,J,V)}}function w($,q,k,L){k||_($,q),q.pendingcb--,L(),X($,q)}function _($,q){q.length===0&&q.needDrain&&(q.needDrain=!1,$.emit("drain"))}function E($,q){q.bufferProcessing=!0;var k=q.bufferedRequest;if($._writev&&k&&k.next){var L=q.bufferedRequestCount,V=new Array(L),J=q.corkedRequestsFree;J.entry=k;for(var re=0,ae=!0;k;)V[re]=k,k.isBuf||(ae=!1),k=k.next,re+=1;V.allBuffers=ae,O($,q,!0,q.length,V,"",J.finish),q.pendingcb++,q.lastBufferedRequest=null,J.next?(q.corkedRequestsFree=J.next,J.next=null):q.corkedRequestsFree=new r(q),q.bufferedRequestCount=0}else{for(;k;){var j=k.chunk,ue=k.encoding,Q=k.callback,P=q.objectMode?1:j.length;if(O($,q,!1,P,j,ue,Q),k=k.next,q.bufferedRequestCount--,q.writing)break}k===null&&(q.lastBufferedRequest=null)}q.bufferedRequest=k,q.bufferProcessing=!1}W.prototype._write=function($,q,k){k(new f("_write()"))},W.prototype._writev=null,W.prototype.end=function($,q,k){var L=this._writableState;return typeof $=="function"?(k=$,$=null,q=null):typeof q=="function"&&(k=q,q=null),$!=null&&this.write($,q),L.corked&&(L.corked=1,this.uncork()),L.ending||K(this,L,k),this},Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function R($){return $.ending&&$.length===0&&$.bufferedRequest===null&&!$.finished&&!$.writing}function F($,q){$._final(function(k){q.pendingcb--,k&&A($,k),q.prefinished=!0,$.emit("prefinish"),X($,q)})}function B($,q){!q.prefinished&&!q.finalCalled&&(typeof $._final=="function"&&!q.destroyed?(q.pendingcb++,q.finalCalled=!0,tr.nextTick(F,$,q)):(q.prefinished=!0,$.emit("prefinish")))}function X($,q){var k=R(q);if(k&&(B($,q),q.pendingcb===0&&(q.finished=!0,$.emit("finish"),q.autoDestroy))){var L=$._readableState;(!L||L.autoDestroy&&L.endEmitted)&&$.destroy()}return k}function K($,q,k){q.ending=!0,X($,q),k&&(q.finished?tr.nextTick(k):$.once("finish",k)),q.ended=!0,$.writable=!1}function te($,q,k){var L=$.entry;for($.entry=null;L;){var V=L.callback;q.pendingcb--,V(k),L=L.next}q.corkedRequestsFree.next=$}return Object.defineProperty(W.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(q){!this._writableState||(this._writableState.destroyed=q)}}),W.prototype.destroy=u.destroy,W.prototype._undestroy=u.undestroy,W.prototype._destroy=function($,q){q($)},rm}var nm,sx;function Ru(){if(sx)return nm;sx=1;var r=Object.keys||function(c){var l=[];for(var d in c)l.push(d);return l};nm=o;var t=px(),e=ox();ts(o,t);for(var n=r(e.prototype),i=0;i<n.length;i++){var a=n[i];o.prototype[a]||(o.prototype[a]=e.prototype[a])}function o(c){if(!(this instanceof o))return new o(c);t.call(this,c),e.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||tr.nextTick(u,this)}function u(c){c.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(l){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=l,this._writableState.destroyed=l)}}),nm}var im={},Ph={exports:{}},ux;function IM(){return ux||(ux=1,function(r,t){var e=Bh(),n=e.Buffer;function i(o,s){for(var u in o)s[u]=o[u]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?r.exports=e:(i(e,t),t.Buffer=a);function a(o,s,u){return n(o,s,u)}i(n,a),a.from=function(o,s,u){if(typeof o=="number")throw new TypeError("Argument must not be a number");return n(o,s,u)},a.alloc=function(o,s,u){if(typeof o!="number")throw new TypeError("Argument must be a number");var c=n(o);return s!==void 0?typeof u=="string"?c.fill(s,u):c.fill(s):c.fill(0),c},a.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n(o)},a.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return e.SlowBuffer(o)}}(Ph,Ph.exports)),Ph.exports}var cx;function am(){if(cx)return im;cx=1;var r=IM().Buffer,t=r.isEncoding||function(y){switch(y=""+y,y&&y.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function e(y){if(!y)return"utf8";for(var v;;)switch(y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return y;default:if(v)return;y=(""+y).toLowerCase(),v=!0}}function n(y){var v=e(y);if(typeof v!="string"&&(r.isEncoding===t||!t(y)))throw new Error("Unknown encoding: "+y);return v||y}im.StringDecoder=i;function i(y){this.encoding=n(y);var v;switch(this.encoding){case"utf16le":this.text=d,this.end=h,v=4;break;case"utf8":this.fillLast=u,v=4;break;case"base64":this.text=f,this.end=g,v=3;break;default:this.write=m,this.end=p;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(v)}i.prototype.write=function(y){if(y.length===0)return"";var v,b;if(this.lastNeed){if(v=this.fillLast(y),v===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b<y.length?v?v+this.text(y,b):this.text(y,b):v||""},i.prototype.end=l,i.prototype.text=c,i.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length};function a(y){return y<=127?0:y>>5==6?2:y>>4==14?3:y>>3==30?4:y>>6==2?-1:-2}function o(y,v,b){var A=v.length-1;if(A<b)return 0;var C=a(v[A]);return C>=0?(C>0&&(y.lastNeed=C-1),C):--A<b||C===-2?0:(C=a(v[A]),C>=0?(C>0&&(y.lastNeed=C-2),C):--A<b||C===-2?0:(C=a(v[A]),C>=0?(C>0&&(C===2?C=0:y.lastNeed=C-3),C):0))}function s(y,v,b){if((v[0]&192)!=128)return y.lastNeed=0,"\uFFFD";if(y.lastNeed>1&&v.length>1){if((v[1]&192)!=128)return y.lastNeed=1,"\uFFFD";if(y.lastNeed>2&&v.length>2&&(v[2]&192)!=128)return y.lastNeed=2,"\uFFFD"}}function u(y){var v=this.lastTotal-this.lastNeed,b=s(this,y);if(b!==void 0)return b;if(this.lastNeed<=y.length)return y.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,v,0,y.length),this.lastNeed-=y.length}function c(y,v){var b=o(this,y,v);if(!this.lastNeed)return y.toString("utf8",v);this.lastTotal=b;var A=y.length-(b-this.lastNeed);return y.copy(this.lastChar,0,A),y.toString("utf8",v,A)}function l(y){var v=y&&y.length?this.write(y):"";return this.lastNeed?v+"\uFFFD":v}function d(y,v){if((y.length-v)%2==0){var b=y.toString("utf16le",v);if(b){var A=b.charCodeAt(b.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",v,y.length-1)}function h(y){var v=y&&y.length?this.write(y):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,b)}return v}function f(y,v){var b=(y.length-v)%3;return b===0?y.toString("base64",v):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",v,y.length-b))}function g(y){var v=y&&y.length?this.write(y):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function m(y){return y.toString(this.encoding)}function p(y){return y&&y.length?this.write(y):""}return im}var om,lx;function sm(){if(lx)return om;lx=1;var r=ku().codes.ERR_STREAM_PREMATURE_CLOSE;function t(a){var o=!1;return function(){if(!o){o=!0;for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];a.apply(this,u)}}}function e(){}function n(a){return a.setHeader&&typeof a.abort=="function"}function i(a,o,s){if(typeof o=="function")return i(a,null,o);o||(o={}),s=t(s||e);var u=o.readable||o.readable!==!1&&a.readable,c=o.writable||o.writable!==!1&&a.writable,l=function(){a.writable||h()},d=a._writableState&&a._writableState.finished,h=function(){c=!1,d=!0,u||s.call(a)},f=a._readableState&&a._readableState.endEmitted,g=function(){u=!1,f=!0,c||s.call(a)},m=function(b){s.call(a,b)},p=function(){var b;if(u&&!f)return(!a._readableState||!a._readableState.ended)&&(b=new r),s.call(a,b);if(c&&!d)return(!a._writableState||!a._writableState.ended)&&(b=new r),s.call(a,b)},y=function(){a.req.on("finish",h)};return n(a)?(a.on("complete",h),a.on("abort",p),a.req?y():a.on("request",y)):c&&!a._writableState&&(a.on("end",l),a.on("close",l)),a.on("end",g),a.on("finish",h),o.error!==!1&&a.on("error",m),a.on("close",p),function(){a.removeListener("complete",h),a.removeListener("abort",p),a.removeListener("request",y),a.req&&a.req.removeListener("finish",h),a.removeListener("end",l),a.removeListener("close",l),a.removeListener("finish",h),a.removeListener("end",g),a.removeListener("error",m),a.removeListener("close",p)}}return om=i,om}var um,fx;function kM(){if(fx)return um;fx=1;var r;function t(y,v,b){return v in y?Object.defineProperty(y,v,{value:b,enumerable:!0,configurable:!0,writable:!0}):y[v]=b,y}var e=sm(),n=Symbol("lastResolve"),i=Symbol("lastReject"),a=Symbol("error"),o=Symbol("ended"),s=Symbol("lastPromise"),u=Symbol("handlePromise"),c=Symbol("stream");function l(y,v){return{value:y,done:v}}function d(y){var v=y[n];if(v!==null){var b=y[c].read();b!==null&&(y[s]=null,y[n]=null,y[i]=null,v(l(b,!1)))}}function h(y){tr.nextTick(d,y)}function f(y,v){return function(b,A){y.then(function(){if(v[o]){b(l(void 0,!0));return}v[u](b,A)},A)}}var g=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((r={get stream(){return this[c]},next:function(){var v=this,b=this[a];if(b!==null)return Promise.reject(b);if(this[o])return Promise.resolve(l(void 0,!0));if(this[c].destroyed)return new Promise(function(z,W){tr.nextTick(function(){v[a]?W(v[a]):z(l(void 0,!0))})});var A=this[s],C;if(A)C=new Promise(f(A,this));else{var M=this[c].read();if(M!==null)return Promise.resolve(l(M,!1));C=new Promise(this[u])}return this[s]=C,C}},t(r,Symbol.asyncIterator,function(){return this}),t(r,"return",function(){var v=this;return new Promise(function(b,A){v[c].destroy(null,function(C){if(C){A(C);return}b(l(void 0,!0))})})}),r),g),p=function(v){var b,A=Object.create(m,(b={},t(b,c,{value:v,writable:!0}),t(b,n,{value:null,writable:!0}),t(b,i,{value:null,writable:!0}),t(b,a,{value:null,writable:!0}),t(b,o,{value:v._readableState.endEmitted,writable:!0}),t(b,u,{value:function(M,z){var W=A[c].read();W?(A[s]=null,A[n]=null,A[i]=null,M(l(W,!1))):(A[n]=M,A[i]=z)},writable:!0}),b));return A[s]=null,e(v,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var M=A[i];M!==null&&(A[s]=null,A[n]=null,A[i]=null,M(C)),A[a]=C;return}var z=A[n];z!==null&&(A[s]=null,A[n]=null,A[i]=null,z(l(void 0,!0))),A[o]=!0}),v.on("readable",h.bind(null,A)),A};return um=p,um}var cm,hx;function RM(){return hx||(hx=1,cm=function(){throw new Error("Readable.from is not available in the browser")}),cm}var lm,dx;function px(){if(dx)return lm;dx=1,lm=U;var r;U.ReadableState=W,u1.EventEmitter;var t=function(re,ae){return re.listeners(ae).length},e=cw(),n=Bh().Buffer,i=Ma.Uint8Array||function(){};function a(J){return n.from(J)}function o(J){return n.isBuffer(J)||J instanceof i}var s=Yw(),u;s&&s.debuglog?u=s.debuglog("stream"):u=function(){};var c=CM(),l=ex(),d=nx(),h=d.getHighWaterMark,f=ku().codes,g=f.ERR_INVALID_ARG_TYPE,m=f.ERR_STREAM_PUSH_AFTER_EOF,p=f.ERR_METHOD_NOT_IMPLEMENTED,y=f.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,v,b,A;ts(U,e);var C=l.errorOrDestroy,M=["error","close","destroy","pause","resume"];function z(J,re,ae){if(typeof J.prependListener=="function")return J.prependListener(re,ae);!J._events||!J._events[re]?J.on(re,ae):Array.isArray(J._events[re])?J._events[re].unshift(ae):J._events[re]=[ae,J._events[re]]}function W(J,re,ae){r=r||Ru(),J=J||{},typeof ae!="boolean"&&(ae=re instanceof r),this.objectMode=!!J.objectMode,ae&&(this.objectMode=this.objectMode||!!J.readableObjectMode),this.highWaterMark=h(this,J,"readableHighWaterMark",ae),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=J.emitClose!==!1,this.autoDestroy=!!J.autoDestroy,this.destroyed=!1,this.defaultEncoding=J.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,J.encoding&&(v||(v=am().StringDecoder),this.decoder=new v(J.encoding),this.encoding=J.encoding)}function U(J){if(r=r||Ru(),!(this instanceof U))return new U(J);var re=this instanceof r;this._readableState=new W(J,this,re),this.readable=!0,J&&(typeof J.read=="function"&&(this._read=J.read),typeof J.destroy=="function"&&(this._destroy=J.destroy)),e.call(this)}Object.defineProperty(U.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(re){!this._readableState||(this._readableState.destroyed=re)}}),U.prototype.destroy=l.destroy,U.prototype._undestroy=l.undestroy,U.prototype._destroy=function(J,re){re(J)},U.prototype.push=function(J,re){var ae=this._readableState,j;return ae.objectMode?j=!0:typeof J=="string"&&(re=re||ae.defaultEncoding,re!==ae.encoding&&(J=n.from(J,re),re=""),j=!0),G(this,J,re,!1,j)},U.prototype.unshift=function(J){return G(this,J,null,!0,!1)};function G(J,re,ae,j,ue){u("readableAddChunk",re);var Q=J._readableState;if(re===null)Q.reading=!1,x(J,Q);else{var P;if(ue||(P=I(Q,re)),P)C(J,P);else if(Q.objectMode||re&&re.length>0)if(typeof re!="string"&&!Q.objectMode&&Object.getPrototypeOf(re)!==n.prototype&&(re=a(re)),j)Q.endEmitted?C(J,new y):ee(J,Q,re,!0);else if(Q.ended)C(J,new m);else{if(Q.destroyed)return!1;Q.reading=!1,Q.decoder&&!ae?(re=Q.decoder.write(re),Q.objectMode||re.length!==0?ee(J,Q,re,!1):E(J,Q)):ee(J,Q,re,!1)}else j||(Q.reading=!1,E(J,Q))}return!Q.ended&&(Q.length<Q.highWaterMark||Q.length===0)}function ee(J,re,ae,j){re.flowing&&re.length===0&&!re.sync?(re.awaitDrain=0,J.emit("data",ae)):(re.length+=re.objectMode?1:ae.length,j?re.buffer.unshift(ae):re.buffer.push(ae),re.needReadable&&w(J)),E(J,re)}function I(J,re){var ae;return!o(re)&&typeof re!="string"&&re!==void 0&&!J.objectMode&&(ae=new g("chunk",["string","Buffer","Uint8Array"],re)),ae}U.prototype.isPaused=function(){return this._readableState.flowing===!1},U.prototype.setEncoding=function(J){v||(v=am().StringDecoder);var re=new v(J);this._readableState.decoder=re,this._readableState.encoding=this._readableState.decoder.encoding;for(var ae=this._readableState.buffer.head,j="";ae!==null;)j+=re.write(ae.data),ae=ae.next;return this._readableState.buffer.clear(),j!==""&&this._readableState.buffer.push(j),this._readableState.length=j.length,this};var O=1073741824;function T(J){return J>=O?J=O:(J--,J|=J>>>1,J|=J>>>2,J|=J>>>4,J|=J>>>8,J|=J>>>16,J++),J}function S(J,re){return J<=0||re.length===0&&re.ended?0:re.objectMode?1:J!==J?re.flowing&&re.length?re.buffer.head.data.length:re.length:(J>re.highWaterMark&&(re.highWaterMark=T(J)),J<=re.length?J:re.ended?re.length:(re.needReadable=!0,0))}U.prototype.read=function(J){u("read",J),J=parseInt(J,10);var re=this._readableState,ae=J;if(J!==0&&(re.emittedReadable=!1),J===0&&re.needReadable&&((re.highWaterMark!==0?re.length>=re.highWaterMark:re.length>0)||re.ended))return u("read: emitReadable",re.length,re.ended),re.length===0&&re.ended?k(this):w(this),null;if(J=S(J,re),J===0&&re.ended)return re.length===0&&k(this),null;var j=re.needReadable;u("need readable",j),(re.length===0||re.length-J<re.highWaterMark)&&(j=!0,u("length less than watermark",j)),re.ended||re.reading?(j=!1,u("reading or ended",j)):j&&(u("do read"),re.reading=!0,re.sync=!0,re.length===0&&(re.needReadable=!0),this._read(re.highWaterMark),re.sync=!1,re.reading||(J=S(ae,re)));var ue;return J>0?ue=q(J,re):ue=null,ue===null?(re.needReadable=re.length<=re.highWaterMark,J=0):(re.length-=J,re.awaitDrain=0),re.length===0&&(re.ended||(re.needReadable=!0),ae!==J&&re.ended&&k(this)),ue!==null&&this.emit("data",ue),ue};function x(J,re){if(u("onEofChunk"),!re.ended){if(re.decoder){var ae=re.decoder.end();ae&&ae.length&&(re.buffer.push(ae),re.length+=re.objectMode?1:ae.length)}re.ended=!0,re.sync?w(J):(re.needReadable=!1,re.emittedReadable||(re.emittedReadable=!0,_(J)))}}function w(J){var re=J._readableState;u("emitReadable",re.needReadable,re.emittedReadable),re.needReadable=!1,re.emittedReadable||(u("emitReadable",re.flowing),re.emittedReadable=!0,tr.nextTick(_,J))}function _(J){var re=J._readableState;u("emitReadable_",re.destroyed,re.length,re.ended),!re.destroyed&&(re.length||re.ended)&&(J.emit("readable"),re.emittedReadable=!1),re.needReadable=!re.flowing&&!re.ended&&re.length<=re.highWaterMark,$(J)}function E(J,re){re.readingMore||(re.readingMore=!0,tr.nextTick(R,J,re))}function R(J,re){for(;!re.reading&&!re.ended&&(re.length<re.highWaterMark||re.flowing&&re.length===0);){var ae=re.length;if(u("maybeReadMore read 0"),J.read(0),ae===re.length)break}re.readingMore=!1}U.prototype._read=function(J){C(this,new p("_read()"))},U.prototype.pipe=function(J,re){var ae=this,j=this._readableState;switch(j.pipesCount){case 0:j.pipes=J;break;case 1:j.pipes=[j.pipes,J];break;default:j.pipes.push(J);break}j.pipesCount+=1,u("pipe count=%d opts=%j",j.pipesCount,re);var ue=(!re||re.end!==!1)&&J!==tr.stdout&&J!==tr.stderr,Q=ue?H:ve;j.endEmitted?tr.nextTick(Q):ae.once("end",Q),J.on("unpipe",P);function P(Ee,Se){u("onunpipe"),Ee===ae&&Se&&Se.hasUnpiped===!1&&(Se.hasUnpiped=!0,ce())}function H(){u("onend"),J.end()}var Z=F(ae);J.on("drain",Z);var oe=!1;function ce(){u("cleanup"),J.removeListener("close",fe),J.removeListener("finish",de),J.removeListener("drain",Z),J.removeListener("error",se),J.removeListener("unpipe",P),ae.removeListener("end",H),ae.removeListener("end",ve),ae.removeListener("data",ne),oe=!0,j.awaitDrain&&(!J._writableState||J._writableState.needDrain)&&Z()}ae.on("data",ne);function ne(Ee){u("ondata");var Se=J.write(Ee);u("dest.write",Se),Se===!1&&((j.pipesCount===1&&j.pipes===J||j.pipesCount>1&&V(j.pipes,J)!==-1)&&!oe&&(u("false write response, pause",j.awaitDrain),j.awaitDrain++),ae.pause())}function se(Ee){u("onerror",Ee),ve(),J.removeListener("error",se),t(J,"error")===0&&C(J,Ee)}z(J,"error",se);function fe(){J.removeListener("finish",de),ve()}J.once("close",fe);function de(){u("onfinish"),J.removeListener("close",fe),ve()}J.once("finish",de);function ve(){u("unpipe"),ae.unpipe(J)}return J.emit("pipe",ae),j.flowing||(u("pipe resume"),ae.resume()),J};function F(J){return function(){var ae=J._readableState;u("pipeOnDrain",ae.awaitDrain),ae.awaitDrain&&ae.awaitDrain--,ae.awaitDrain===0&&t(J,"data")&&(ae.flowing=!0,$(J))}}U.prototype.unpipe=function(J){var re=this._readableState,ae={hasUnpiped:!1};if(re.pipesCount===0)return this;if(re.pipesCount===1)return J&&J!==re.pipes?this:(J||(J=re.pipes),re.pipes=null,re.pipesCount=0,re.flowing=!1,J&&J.emit("unpipe",this,ae),this);if(!J){var j=re.pipes,ue=re.pipesCount;re.pipes=null,re.pipesCount=0,re.flowing=!1;for(var Q=0;Q<ue;Q++)j[Q].emit("unpipe",this,{hasUnpiped:!1});return this}var P=V(re.pipes,J);return P===-1?this:(re.pipes.splice(P,1),re.pipesCount-=1,re.pipesCount===1&&(re.pipes=re.pipes[0]),J.emit("unpipe",this,ae),this)},U.prototype.on=function(J,re){var ae=e.prototype.on.call(this,J,re),j=this._readableState;return J==="data"?(j.readableListening=this.listenerCount("readable")>0,j.flowing!==!1&&this.resume()):J==="readable"&&!j.endEmitted&&!j.readableListening&&(j.readableListening=j.needReadable=!0,j.flowing=!1,j.emittedReadable=!1,u("on readable",j.length,j.reading),j.length?w(this):j.reading||tr.nextTick(X,this)),ae},U.prototype.addListener=U.prototype.on,U.prototype.removeListener=function(J,re){var ae=e.prototype.removeListener.call(this,J,re);return J==="readable"&&tr.nextTick(B,this),ae},U.prototype.removeAllListeners=function(J){var re=e.prototype.removeAllListeners.apply(this,arguments);return(J==="readable"||J===void 0)&&tr.nextTick(B,this),re};function B(J){var re=J._readableState;re.readableListening=J.listenerCount("readable")>0,re.resumeScheduled&&!re.paused?re.flowing=!0:J.listenerCount("data")>0&&J.resume()}function X(J){u("readable nexttick read 0"),J.read(0)}U.prototype.resume=function(){var J=this._readableState;return J.flowing||(u("resume"),J.flowing=!J.readableListening,K(this,J)),J.paused=!1,this};function K(J,re){re.resumeScheduled||(re.resumeScheduled=!0,tr.nextTick(te,J,re))}function te(J,re){u("resume",re.reading),re.reading||J.read(0),re.resumeScheduled=!1,J.emit("resume"),$(J),re.flowing&&!re.reading&&J.read(0)}U.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function $(J){var re=J._readableState;for(u("flow",re.flowing);re.flowing&&J.read()!==null;);}U.prototype.wrap=function(J){var re=this,ae=this._readableState,j=!1;J.on("end",function(){if(u("wrapped end"),ae.decoder&&!ae.ended){var P=ae.decoder.end();P&&P.length&&re.push(P)}re.push(null)}),J.on("data",function(P){if(u("wrapped data"),ae.decoder&&(P=ae.decoder.write(P)),!(ae.objectMode&&P==null)&&!(!ae.objectMode&&(!P||!P.length))){var H=re.push(P);H||(j=!0,J.pause())}});for(var ue in J)this[ue]===void 0&&typeof J[ue]=="function"&&(this[ue]=function(H){return function(){return J[H].apply(J,arguments)}}(ue));for(var Q=0;Q<M.length;Q++)J.on(M[Q],this.emit.bind(this,M[Q]));return this._read=function(P){u("wrapped _read",P),j&&(j=!1,J.resume())},this},typeof Symbol=="function"&&(U.prototype[Symbol.asyncIterator]=function(){return b===void 0&&(b=kM()),b(this)}),Object.defineProperty(U.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(U.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(U.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(re){this._readableState&&(this._readableState.flowing=re)}}),U._fromList=q,Object.defineProperty(U.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function q(J,re){if(re.length===0)return null;var ae;return re.objectMode?ae=re.buffer.shift():!J||J>=re.length?(re.decoder?ae=re.buffer.join(""):re.buffer.length===1?ae=re.buffer.first():ae=re.buffer.concat(re.length),re.buffer.clear()):ae=re.buffer.consume(J,re.decoder),ae}function k(J){var re=J._readableState;u("endReadable",re.endEmitted),re.endEmitted||(re.ended=!0,tr.nextTick(L,re,J))}function L(J,re){if(u("endReadableNT",J.endEmitted,J.length),!J.endEmitted&&J.length===0&&(J.endEmitted=!0,re.readable=!1,re.emit("end"),J.autoDestroy)){var ae=re._writableState;(!ae||ae.autoDestroy&&ae.finished)&&re.destroy()}}typeof Symbol=="function"&&(U.from=function(J,re){return A===void 0&&(A=RM()),A(U,J,re)});function V(J,re){for(var ae=0,j=J.length;ae<j;ae++)if(J[ae]===re)return ae;return-1}return lm}var fm,mx;function gx(){if(mx)return fm;mx=1,fm=s;var r=ku().codes,t=r.ERR_METHOD_NOT_IMPLEMENTED,e=r.ERR_MULTIPLE_CALLBACK,n=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=r.ERR_TRANSFORM_WITH_LENGTH_0,a=Ru();ts(s,a);function o(l,d){var h=this._transformState;h.transforming=!1;var f=h.writecb;if(f===null)return this.emit("error",new e);h.writechunk=null,h.writecb=null,d!=null&&this.push(d),f(l);var g=this._readableState;g.reading=!1,(g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}function s(l){if(!(this instanceof s))return new s(l);a.call(this,l),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,l&&(typeof l.transform=="function"&&(this._transform=l.transform),typeof l.flush=="function"&&(this._flush=l.flush)),this.on("prefinish",u)}function u(){var l=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(d,h){c(l,d,h)}):c(this,null,null)}s.prototype.push=function(l,d){return this._transformState.needTransform=!1,a.prototype.push.call(this,l,d)},s.prototype._transform=function(l,d,h){h(new t("_transform()"))},s.prototype._write=function(l,d,h){var f=this._transformState;if(f.writecb=h,f.writechunk=l,f.writeencoding=d,!f.transforming){var g=this._readableState;(f.needTransform||g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}},s.prototype._read=function(l){var d=this._transformState;d.writechunk!==null&&!d.transforming?(d.transforming=!0,this._transform(d.writechunk,d.writeencoding,d.afterTransform)):d.needTransform=!0},s.prototype._destroy=function(l,d){a.prototype._destroy.call(this,l,function(h){d(h)})};function c(l,d,h){if(d)return l.emit("error",d);if(h!=null&&l.push(h),l._writableState.length)throw new i;if(l._transformState.transforming)throw new n;return l.push(null)}return fm}var hm,vx;function FM(){if(vx)return hm;vx=1,hm=t;var r=gx();ts(t,r);function t(e){if(!(this instanceof t))return new t(e);r.call(this,e)}return t.prototype._transform=function(e,n,i){i(null,e)},hm}var dm,yx;function NM(){if(yx)return dm;yx=1;var r;function t(h){var f=!1;return function(){f||(f=!0,h.apply(void 0,arguments))}}var e=ku().codes,n=e.ERR_MISSING_ARGS,i=e.ERR_STREAM_DESTROYED;function a(h){if(h)throw h}function o(h){return h.setHeader&&typeof h.abort=="function"}function s(h,f,g,m){m=t(m);var p=!1;h.on("close",function(){p=!0}),r===void 0&&(r=sm()),r(h,{readable:f,writable:g},function(v){if(v)return m(v);p=!0,m()});var y=!1;return function(v){if(!p&&!y){if(y=!0,o(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();m(v||new i("pipe"))}}}function u(h){h()}function c(h,f){return h.pipe(f)}function l(h){return!h.length||typeof h[h.length-1]!="function"?a:h.pop()}function d(){for(var h=arguments.length,f=new Array(h),g=0;g<h;g++)f[g]=arguments[g];var m=l(f);if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new n("streams");var p,y=f.map(function(v,b){var A=b<f.length-1,C=b>0;return s(v,A,C,function(M){p||(p=M),M&&y.forEach(u),!A&&(y.forEach(u),m(p))})});return f.reduce(c)}return dm=d,dm}var pm=na,mm=u1.EventEmitter,MM=ts;MM(na,mm);na.Readable=px();na.Writable=ox();na.Duplex=Ru();na.Transform=gx();na.PassThrough=FM();na.finished=sm();na.pipeline=NM();na.Stream=na;function na(){mm.call(this)}na.prototype.pipe=function(r,t){var e=this;function n(l){r.writable&&r.write(l)===!1&&e.pause&&e.pause()}e.on("data",n);function i(){e.readable&&e.resume&&e.resume()}r.on("drain",i),!r._isStdio&&(!t||t.end!==!1)&&(e.on("end",o),e.on("close",s));var a=!1;function o(){a||(a=!0,r.end())}function s(){a||(a=!0,typeof r.destroy=="function"&&r.destroy())}function u(l){if(c(),mm.listenerCount(this,"error")===0)throw l}e.on("error",u),r.on("error",u);function c(){e.removeListener("data",n),r.removeListener("drain",i),e.removeListener("end",o),e.removeListener("close",s),e.removeListener("error",u),r.removeListener("error",u),e.removeListener("end",c),e.removeListener("close",c),r.removeListener("close",c)}return e.on("end",c),e.on("close",c),r.on("close",c),r.emit("pipe",e),r};(function(r){(function(t){t.parser=function(q,k){return new n(q,k)},t.SAXParser=n,t.SAXStream=l,t.createStream=c,t.MAX_BUFFER_LENGTH=64*1024;var e=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(q,k){if(!(this instanceof n))return new n(q,k);var L=this;a(L),L.q=L.c="",L.bufferCheckPosition=t.MAX_BUFFER_LENGTH,L.opt=k||{},L.opt.lowercase=L.opt.lowercase||L.opt.lowercasetags,L.looseCase=L.opt.lowercase?"toLowerCase":"toUpperCase",L.tags=[],L.closed=L.closedRoot=L.sawRoot=!1,L.tag=L.error=null,L.strict=!!q,L.noscript=!!(q||L.opt.noscript),L.state=U.BEGIN,L.strictEntities=L.opt.strictEntities,L.ENTITIES=L.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),L.attribList=[],L.opt.xmlns&&(L.ns=Object.create(m)),L.trackPosition=L.opt.position!==!1,L.trackPosition&&(L.position=L.line=L.column=0),ee(L,"onready")}Object.create||(Object.create=function(q){function k(){}k.prototype=q;var L=new k;return L}),Object.keys||(Object.keys=function(q){var k=[];for(var L in q)q.hasOwnProperty(L)&&k.push(L);return k});function i(q){for(var k=Math.max(t.MAX_BUFFER_LENGTH,10),L=0,V=0,J=e.length;V<J;V++){var re=q[e[V]].length;if(re>k)switch(e[V]){case"textNode":O(q);break;case"cdata":I(q,"oncdata",q.cdata),q.cdata="";break;case"script":I(q,"onscript",q.script),q.script="";break;default:S(q,"Max buffer length exceeded: "+e[V])}L=Math.max(L,re)}var ae=t.MAX_BUFFER_LENGTH-L;q.bufferCheckPosition=ae+q.position}function a(q){for(var k=0,L=e.length;k<L;k++)q[e[k]]=""}function o(q){O(q),q.cdata!==""&&(I(q,"oncdata",q.cdata),q.cdata=""),q.script!==""&&(I(q,"onscript",q.script),q.script="")}n.prototype={end:function(){x(this)},write:$,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){o(this)}};var s;try{s=pm.Stream}catch{s=function(){}}var u=t.EVENTS.filter(function(q){return q!=="error"&&q!=="end"});function c(q,k){return new l(q,k)}function l(q,k){if(!(this instanceof l))return new l(q,k);s.apply(this),this._parser=new n(q,k),this.writable=!0,this.readable=!0;var L=this;this._parser.onend=function(){L.emit("end")},this._parser.onerror=function(V){L.emit("error",V),L._parser.error=null},this._decoder=null,u.forEach(function(V){Object.defineProperty(L,"on"+V,{get:function(){return L._parser["on"+V]},set:function(J){if(!J)return L.removeAllListeners(V),L._parser["on"+V]=J,J;L.on(V,J)},enumerable:!0,configurable:!1})})}l.prototype=Object.create(s.prototype,{constructor:{value:l}}),l.prototype.write=function(q){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(q)){if(!this._decoder){var k=am().StringDecoder;this._decoder=new k("utf8")}q=this._decoder.write(q)}return this._parser.write(q.toString()),this.emit("data",q),!0},l.prototype.end=function(q){return q&&q.length&&this.write(q),this._parser.end(),!0},l.prototype.on=function(q,k){var L=this;return!L._parser["on"+q]&&u.indexOf(q)!==-1&&(L._parser["on"+q]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,q),L.emit.apply(L,V)}),s.prototype.on.call(L,q,k)};var d="[CDATA[",h="DOCTYPE",f="http://www.w3.org/XML/1998/namespace",g="http://www.w3.org/2000/xmlns/",m={xml:f,xmlns:g},p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,b=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function A(q){return q===" "||q===`
`||q==="\r"||q===" "}function C(q){return q==='"'||q==="'"}function M(q){return q===">"||A(q)}function z(q,k){return q.test(k)}function W(q,k){return!z(q,k)}var U=0;t.STATE={BEGIN:U++,BEGIN_WHITESPACE:U++,TEXT:U++,TEXT_ENTITY:U++,OPEN_WAKA:U++,SGML_DECL:U++,SGML_DECL_QUOTED:U++,DOCTYPE:U++,DOCTYPE_QUOTED:U++,DOCTYPE_DTD:U++,DOCTYPE_DTD_QUOTED:U++,COMMENT_STARTING:U++,COMMENT:U++,COMMENT_ENDING:U++,COMMENT_ENDED:U++,CDATA:U++,CDATA_ENDING:U++,CDATA_ENDING_2:U++,PROC_INST:U++,PROC_INST_BODY:U++,PROC_INST_ENDING:U++,OPEN_TAG:U++,OPEN_TAG_SLASH:U++,ATTRIB:U++,ATTRIB_NAME:U++,ATTRIB_NAME_SAW_WHITE:U++,ATTRIB_VALUE:U++,ATTRIB_VALUE_QUOTED:U++,ATTRIB_VALUE_CLOSED:U++,ATTRIB_VALUE_UNQUOTED:U++,ATTRIB_VALUE_ENTITY_Q:U++,ATTRIB_VALUE_ENTITY_U:U++,CLOSE_TAG:U++,CLOSE_TAG_SAW_WHITE:U++,SCRIPT:U++,SCRIPT_ENDING:U++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(q){var k=t.ENTITIES[q],L=typeof k=="number"?String.fromCharCode(k):k;t.ENTITIES[q]=L});for(var G in t.STATE)t.STATE[t.STATE[G]]=G;U=t.STATE;function ee(q,k,L){q[k]&&q[k](L)}function I(q,k,L){q.textNode&&O(q),ee(q,k,L)}function O(q){q.textNode=T(q.opt,q.textNode),q.textNode&&ee(q,"ontext",q.textNode),q.textNode=""}function T(q,k){return q.trim&&(k=k.trim()),q.normalize&&(k=k.replace(/\s+/g," ")),k}function S(q,k){return O(q),q.trackPosition&&(k+=`
Line: `+q.line+`
Column: `+q.column+`
Char: `+q.c),k=new Error(k),q.error=k,ee(q,"onerror",k),q}function x(q){return q.sawRoot&&!q.closedRoot&&w(q,"Unclosed root tag"),q.state!==U.BEGIN&&q.state!==U.BEGIN_WHITESPACE&&q.state!==U.TEXT&&S(q,"Unexpected end"),O(q),q.c="",q.closed=!0,ee(q,"onend"),n.call(q,q.strict,q.opt),q}function w(q,k){if(typeof q!="object"||!(q instanceof n))throw new Error("bad call to strictFail");q.strict&&S(q,k)}function _(q){q.strict||(q.tagName=q.tagName[q.looseCase]());var k=q.tags[q.tags.length-1]||q,L=q.tag={name:q.tagName,attributes:{}};q.opt.xmlns&&(L.ns=k.ns),q.attribList.length=0,I(q,"onopentagstart",L)}function E(q,k){var L=q.indexOf(":"),V=L<0?["",q]:q.split(":"),J=V[0],re=V[1];return k&&q==="xmlns"&&(J="xmlns",re=""),{prefix:J,local:re}}function R(q){if(q.strict||(q.attribName=q.attribName[q.looseCase]()),q.attribList.indexOf(q.attribName)!==-1||q.tag.attributes.hasOwnProperty(q.attribName)){q.attribName=q.attribValue="";return}if(q.opt.xmlns){var k=E(q.attribName,!0),L=k.prefix,V=k.local;if(L==="xmlns")if(V==="xml"&&q.attribValue!==f)w(q,"xml: prefix must be bound to "+f+`
Actual: `+q.attribValue);else if(V==="xmlns"&&q.attribValue!==g)w(q,"xmlns: prefix must be bound to "+g+`
Actual: `+q.attribValue);else{var J=q.tag,re=q.tags[q.tags.length-1]||q;J.ns===re.ns&&(J.ns=Object.create(re.ns)),J.ns[V]=q.attribValue}q.attribList.push([q.attribName,q.attribValue])}else q.tag.attributes[q.attribName]=q.attribValue,I(q,"onattribute",{name:q.attribName,value:q.attribValue});q.attribName=q.attribValue=""}function F(q,k){if(q.opt.xmlns){var L=q.tag,V=E(q.tagName);L.prefix=V.prefix,L.local=V.local,L.uri=L.ns[V.prefix]||"",L.prefix&&!L.uri&&(w(q,"Unbound namespace prefix: "+JSON.stringify(q.tagName)),L.uri=V.prefix);var J=q.tags[q.tags.length-1]||q;L.ns&&J.ns!==L.ns&&Object.keys(L.ns).forEach(function(ne){I(q,"onopennamespace",{prefix:ne,uri:L.ns[ne]})});for(var re=0,ae=q.attribList.length;re<ae;re++){var j=q.attribList[re],ue=j[0],Q=j[1],P=E(ue,!0),H=P.prefix,Z=P.local,oe=H===""?"":L.ns[H]||"",ce={name:ue,value:Q,prefix:H,local:Z,uri:oe};H&&H!=="xmlns"&&!oe&&(w(q,"Unbound namespace prefix: "+JSON.stringify(H)),ce.uri=H),q.tag.attributes[ue]=ce,I(q,"onattribute",ce)}q.attribList.length=0}q.tag.isSelfClosing=!!k,q.sawRoot=!0,q.tags.push(q.tag),I(q,"onopentag",q.tag),k||(!q.noscript&&q.tagName.toLowerCase()==="script"?q.state=U.SCRIPT:q.state=U.TEXT,q.tag=null,q.tagName=""),q.attribName=q.attribValue="",q.attribList.length=0}function B(q){if(!q.tagName){w(q,"Weird empty close tag."),q.textNode+="</>",q.state=U.TEXT;return}if(q.script){if(q.tagName!=="script"){q.script+="</"+q.tagName+">",q.tagName="",q.state=U.SCRIPT;return}I(q,"onscript",q.script),q.script=""}var k=q.tags.length,L=q.tagName;q.strict||(L=L[q.looseCase]());for(var V=L;k--;){var J=q.tags[k];if(J.name!==V)w(q,"Unexpected close tag");else break}if(k<0){w(q,"Unmatched closing tag: "+q.tagName),q.textNode+="</"+q.tagName+">",q.state=U.TEXT;return}q.tagName=L;for(var re=q.tags.length;re-- >k;){var ae=q.tag=q.tags.pop();q.tagName=q.tag.name,I(q,"onclosetag",q.tagName);var j={};for(var ue in ae.ns)j[ue]=ae.ns[ue];var Q=q.tags[q.tags.length-1]||q;q.opt.xmlns&&ae.ns!==Q.ns&&Object.keys(ae.ns).forEach(function(P){var H=ae.ns[P];I(q,"onclosenamespace",{prefix:P,uri:H})})}k===0&&(q.closedRoot=!0),q.tagName=q.attribValue=q.attribName="",q.attribList.length=0,q.state=U.TEXT}function X(q){var k=q.entity,L=k.toLowerCase(),V,J="";return q.ENTITIES[k]?q.ENTITIES[k]:q.ENTITIES[L]?q.ENTITIES[L]:(k=L,k.charAt(0)==="#"&&(k.charAt(1)==="x"?(k=k.slice(2),V=parseInt(k,16),J=V.toString(16)):(k=k.slice(1),V=parseInt(k,10),J=V.toString(10))),k=k.replace(/^0+/,""),isNaN(V)||J.toLowerCase()!==k?(w(q,"Invalid character entity"),"&"+q.entity+";"):String.fromCodePoint(V))}function K(q,k){k==="<"?(q.state=U.OPEN_WAKA,q.startTagPosition=q.position):A(k)||(w(q,"Non-whitespace before first tag."),q.textNode=k,q.state=U.TEXT)}function te(q,k){var L="";return k<q.length&&(L=q.charAt(k)),L}function $(q){var k=this;if(this.error)throw this.error;if(k.closed)return S(k,"Cannot write after close. Assign an onready handler.");if(q===null)return x(k);typeof q=="object"&&(q=q.toString());for(var L=0,V="";V=te(q,L++),k.c=V,!!V;)switch(k.trackPosition&&(k.position++,V===`
`?(k.line++,k.column=0):k.column++),k.state){case U.BEGIN:if(k.state=U.BEGIN_WHITESPACE,V==="\uFEFF")continue;K(k,V);continue;case U.BEGIN_WHITESPACE:K(k,V);continue;case U.TEXT:if(k.sawRoot&&!k.closedRoot){for(var J=L-1;V&&V!=="<"&&V!=="&";)V=te(q,L++),V&&k.trackPosition&&(k.position++,V===`
`?(k.line++,k.column=0):k.column++);k.textNode+=q.substring(J,L-1)}V==="<"&&!(k.sawRoot&&k.closedRoot&&!k.strict)?(k.state=U.OPEN_WAKA,k.startTagPosition=k.position):(!A(V)&&(!k.sawRoot||k.closedRoot)&&w(k,"Text data outside of root node."),V==="&"?k.state=U.TEXT_ENTITY:k.textNode+=V);continue;case U.SCRIPT:V==="<"?k.state=U.SCRIPT_ENDING:k.script+=V;continue;case U.SCRIPT_ENDING:V==="/"?k.state=U.CLOSE_TAG:(k.script+="<"+V,k.state=U.SCRIPT);continue;case U.OPEN_WAKA:if(V==="!")k.state=U.SGML_DECL,k.sgmlDecl="";else if(!A(V))if(z(p,V))k.state=U.OPEN_TAG,k.tagName=V;else if(V==="/")k.state=U.CLOSE_TAG,k.tagName="";else if(V==="?")k.state=U.PROC_INST,k.procInstName=k.procInstBody="";else{if(w(k,"Unencoded <"),k.startTagPosition+1<k.position){var re=k.position-k.startTagPosition;V=new Array(re).join(" ")+V}k.textNode+="<"+V,k.state=U.TEXT}continue;case U.SGML_DECL:(k.sgmlDecl+V).toUpperCase()===d?(I(k,"onopencdata"),k.state=U.CDATA,k.sgmlDecl="",k.cdata=""):k.sgmlDecl+V==="--"?(k.state=U.COMMENT,k.comment="",k.sgmlDecl=""):(k.sgmlDecl+V).toUpperCase()===h?(k.state=U.DOCTYPE,(k.doctype||k.sawRoot)&&w(k,"Inappropriately located doctype declaration"),k.doctype="",k.sgmlDecl=""):V===">"?(I(k,"onsgmldeclaration",k.sgmlDecl),k.sgmlDecl="",k.state=U.TEXT):(C(V)&&(k.state=U.SGML_DECL_QUOTED),k.sgmlDecl+=V);continue;case U.SGML_DECL_QUOTED:V===k.q&&(k.state=U.SGML_DECL,k.q=""),k.sgmlDecl+=V;continue;case U.DOCTYPE:V===">"?(k.state=U.TEXT,I(k,"ondoctype",k.doctype),k.doctype=!0):(k.doctype+=V,V==="["?k.state=U.DOCTYPE_DTD:C(V)&&(k.state=U.DOCTYPE_QUOTED,k.q=V));continue;case U.DOCTYPE_QUOTED:k.doctype+=V,V===k.q&&(k.q="",k.state=U.DOCTYPE);continue;case U.DOCTYPE_DTD:k.doctype+=V,V==="]"?k.state=U.DOCTYPE:C(V)&&(k.state=U.DOCTYPE_DTD_QUOTED,k.q=V);continue;case U.DOCTYPE_DTD_QUOTED:k.doctype+=V,V===k.q&&(k.state=U.DOCTYPE_DTD,k.q="");continue;case U.COMMENT:V==="-"?k.state=U.COMMENT_ENDING:k.comment+=V;continue;case U.COMMENT_ENDING:V==="-"?(k.state=U.COMMENT_ENDED,k.comment=T(k.opt,k.comment),k.comment&&I(k,"oncomment",k.comment),k.comment=""):(k.comment+="-"+V,k.state=U.COMMENT);continue;case U.COMMENT_ENDED:V!==">"?(w(k,"Malformed comment"),k.comment+="--"+V,k.state=U.COMMENT):k.state=U.TEXT;continue;case U.CDATA:V==="]"?k.state=U.CDATA_ENDING:k.cdata+=V;continue;case U.CDATA_ENDING:V==="]"?k.state=U.CDATA_ENDING_2:(k.cdata+="]"+V,k.state=U.CDATA);continue;case U.CDATA_ENDING_2:V===">"?(k.cdata&&I(k,"oncdata",k.cdata),I(k,"onclosecdata"),k.cdata="",k.state=U.TEXT):V==="]"?k.cdata+="]":(k.cdata+="]]"+V,k.state=U.CDATA);continue;case U.PROC_INST:V==="?"?k.state=U.PROC_INST_ENDING:A(V)?k.state=U.PROC_INST_BODY:k.procInstName+=V;continue;case U.PROC_INST_BODY:if(!k.procInstBody&&A(V))continue;V==="?"?k.state=U.PROC_INST_ENDING:k.procInstBody+=V;continue;case U.PROC_INST_ENDING:V===">"?(I(k,"onprocessinginstruction",{name:k.procInstName,body:k.procInstBody}),k.procInstName=k.procInstBody="",k.state=U.TEXT):(k.procInstBody+="?"+V,k.state=U.PROC_INST_BODY);continue;case U.OPEN_TAG:z(y,V)?k.tagName+=V:(_(k),V===">"?F(k):V==="/"?k.state=U.OPEN_TAG_SLASH:(A(V)||w(k,"Invalid character in tag name"),k.state=U.ATTRIB));continue;case U.OPEN_TAG_SLASH:V===">"?(F(k,!0),B(k)):(w(k,"Forward-slash in opening tag not followed by >"),k.state=U.ATTRIB);continue;case U.ATTRIB:if(A(V))continue;V===">"?F(k):V==="/"?k.state=U.OPEN_TAG_SLASH:z(p,V)?(k.attribName=V,k.attribValue="",k.state=U.ATTRIB_NAME):w(k,"Invalid attribute name");continue;case U.ATTRIB_NAME:V==="="?k.state=U.ATTRIB_VALUE:V===">"?(w(k,"Attribute without value"),k.attribValue=k.attribName,R(k),F(k)):A(V)?k.state=U.ATTRIB_NAME_SAW_WHITE:z(y,V)?k.attribName+=V:w(k,"Invalid attribute name");continue;case U.ATTRIB_NAME_SAW_WHITE:if(V==="=")k.state=U.ATTRIB_VALUE;else{if(A(V))continue;w(k,"Attribute without value"),k.tag.attributes[k.attribName]="",k.attribValue="",I(k,"onattribute",{name:k.attribName,value:""}),k.attribName="",V===">"?F(k):z(p,V)?(k.attribName=V,k.state=U.ATTRIB_NAME):(w(k,"Invalid attribute name"),k.state=U.ATTRIB)}continue;case U.ATTRIB_VALUE:if(A(V))continue;C(V)?(k.q=V,k.state=U.ATTRIB_VALUE_QUOTED):(w(k,"Unquoted attribute value"),k.state=U.ATTRIB_VALUE_UNQUOTED,k.attribValue=V);continue;case U.ATTRIB_VALUE_QUOTED:if(V!==k.q){V==="&"?k.state=U.ATTRIB_VALUE_ENTITY_Q:k.attribValue+=V;continue}R(k),k.q="",k.state=U.ATTRIB_VALUE_CLOSED;continue;case U.ATTRIB_VALUE_CLOSED:A(V)?k.state=U.ATTRIB:V===">"?F(k):V==="/"?k.state=U.OPEN_TAG_SLASH:z(p,V)?(w(k,"No whitespace between attributes"),k.attribName=V,k.attribValue="",k.state=U.ATTRIB_NAME):w(k,"Invalid attribute name");continue;case U.ATTRIB_VALUE_UNQUOTED:if(!M(V)){V==="&"?k.state=U.ATTRIB_VALUE_ENTITY_U:k.attribValue+=V;continue}R(k),V===">"?F(k):k.state=U.ATTRIB;continue;case U.CLOSE_TAG:if(k.tagName)V===">"?B(k):z(y,V)?k.tagName+=V:k.script?(k.script+="</"+k.tagName,k.tagName="",k.state=U.SCRIPT):(A(V)||w(k,"Invalid tagname in closing tag"),k.state=U.CLOSE_TAG_SAW_WHITE);else{if(A(V))continue;W(p,V)?k.script?(k.script+="</"+V,k.state=U.SCRIPT):w(k,"Invalid tagname in closing tag."):k.tagName=V}continue;case U.CLOSE_TAG_SAW_WHITE:if(A(V))continue;V===">"?B(k):w(k,"Invalid characters in closing tag");continue;case U.TEXT_ENTITY:case U.ATTRIB_VALUE_ENTITY_Q:case U.ATTRIB_VALUE_ENTITY_U:var ae,j;switch(k.state){case U.TEXT_ENTITY:ae=U.TEXT,j="textNode";break;case U.ATTRIB_VALUE_ENTITY_Q:ae=U.ATTRIB_VALUE_QUOTED,j="attribValue";break;case U.ATTRIB_VALUE_ENTITY_U:ae=U.ATTRIB_VALUE_UNQUOTED,j="attribValue";break}V===";"?(k[j]+=X(k),k.entity="",k.state=ae):z(k.entity.length?b:v,V)?k.entity+=V:(w(k,"Invalid character in entity name"),k[j]+="&"+k.entity+V,k.entity="",k.state=ae);continue;default:throw new Error(k,"Unknown state: "+k.state)}return k.position>=k.bufferCheckPosition&&i(k),k}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var q=String.fromCharCode,k=Math.floor,L=function(){var V=16384,J=[],re,ae,j=-1,ue=arguments.length;if(!ue)return"";for(var Q="";++j<ue;){var P=Number(arguments[j]);if(!isFinite(P)||P<0||P>1114111||k(P)!==P)throw RangeError("Invalid code point: "+P);P<=65535?J.push(P):(P-=65536,re=(P>>10)+55296,ae=P%1024+56320,J.push(re,ae)),(j+1===ue||J.length>V)&&(Q+=q.apply(null,J),J.length=0)}return Q};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:L,configurable:!0,writable:!0}):String.fromCodePoint=L}()})(r)})(Gb);var gm={isArray:function(r){return Array.isArray?Array.isArray(r):Object.prototype.toString.call(r)==="[object Array]"}},BM=gm.isArray,vm={copyOptions:function(r){var t,e={};for(t in r)r.hasOwnProperty(t)&&(e[t]=r[t]);return e},ensureFlagExists:function(r,t){(!(r in t)||typeof t[r]!="boolean")&&(t[r]=!1)},ensureSpacesExists:function(r){(!("spaces"in r)||typeof r.spaces!="number"&&typeof r.spaces!="string")&&(r.spaces=0)},ensureAlwaysArrayExists:function(r){(!("alwaysArray"in r)||typeof r.alwaysArray!="boolean"&&!BM(r.alwaysArray))&&(r.alwaysArray=!1)},ensureKeyExists:function(r,t){(!(r+"Key"in t)||typeof t[r+"Key"]!="string")&&(t[r+"Key"]=t.compact?"_"+r:r)},checkFnExists:function(r,t){return r+"Fn"in t}},UM=Gb,kr=vm,Fu=gm.isArray,Le,zt;function PM(r){return Le=kr.copyOptions(r),kr.ensureFlagExists("ignoreDeclaration",Le),kr.ensureFlagExists("ignoreInstruction",Le),kr.ensureFlagExists("ignoreAttributes",Le),kr.ensureFlagExists("ignoreText",Le),kr.ensureFlagExists("ignoreComment",Le),kr.ensureFlagExists("ignoreCdata",Le),kr.ensureFlagExists("ignoreDoctype",Le),kr.ensureFlagExists("compact",Le),kr.ensureFlagExists("alwaysChildren",Le),kr.ensureFlagExists("addParent",Le),kr.ensureFlagExists("trim",Le),kr.ensureFlagExists("nativeType",Le),kr.ensureFlagExists("nativeTypeAttributes",Le),kr.ensureFlagExists("sanitize",Le),kr.ensureFlagExists("instructionHasAttributes",Le),kr.ensureFlagExists("captureSpacesBetweenElements",Le),kr.ensureAlwaysArrayExists(Le),kr.ensureKeyExists("declaration",Le),kr.ensureKeyExists("instruction",Le),kr.ensureKeyExists("attributes",Le),kr.ensureKeyExists("text",Le),kr.ensureKeyExists("comment",Le),kr.ensureKeyExists("cdata",Le),kr.ensureKeyExists("doctype",Le),kr.ensureKeyExists("type",Le),kr.ensureKeyExists("name",Le),kr.ensureKeyExists("elements",Le),kr.ensureKeyExists("parent",Le),Le}function bx(r){var t=Number(r);if(!isNaN(t))return t;var e=r.toLowerCase();return e==="true"?!0:e==="false"?!1:r}function il(r,t){var e;if(Le.compact){if(!zt[Le[r+"Key"]]&&(Fu(Le.alwaysArray)?Le.alwaysArray.indexOf(Le[r+"Key"])!==-1:Le.alwaysArray)&&(zt[Le[r+"Key"]]=[]),zt[Le[r+"Key"]]&&!Fu(zt[Le[r+"Key"]])&&(zt[Le[r+"Key"]]=[zt[Le[r+"Key"]]]),r+"Fn"in Le&&typeof t=="string"&&(t=Le[r+"Fn"](t,zt)),r==="instruction"&&("instructionFn"in Le||"instructionNameFn"in Le)){for(e in t)if(t.hasOwnProperty(e))if("instructionFn"in Le)t[e]=Le.instructionFn(t[e],e,zt);else{var n=t[e];delete t[e],t[Le.instructionNameFn(e,n,zt)]=n}}Fu(zt[Le[r+"Key"]])?zt[Le[r+"Key"]].push(t):zt[Le[r+"Key"]]=t}else{zt[Le.elementsKey]||(zt[Le.elementsKey]=[]);var i={};if(i[Le.typeKey]=r,r==="instruction"){for(e in t)if(t.hasOwnProperty(e))break;i[Le.nameKey]="instructionNameFn"in Le?Le.instructionNameFn(e,t,zt):e,Le.instructionHasAttributes?(i[Le.attributesKey]=t[e][Le.attributesKey],"instructionFn"in Le&&(i[Le.attributesKey]=Le.instructionFn(i[Le.attributesKey],e,zt))):("instructionFn"in Le&&(t[e]=Le.instructionFn(t[e],e,zt)),i[Le.instructionKey]=t[e])}else r+"Fn"in Le&&(t=Le[r+"Fn"](t,zt)),i[Le[r+"Key"]]=t;Le.addParent&&(i[Le.parentKey]=zt),zt[Le.elementsKey].push(i)}}function wx(r){if("attributesFn"in Le&&r&&(r=Le.attributesFn(r,zt)),(Le.trim||"attributeValueFn"in Le||"attributeNameFn"in Le||Le.nativeTypeAttributes)&&r){var t;for(t in r)if(r.hasOwnProperty(t)&&(Le.trim&&(r[t]=r[t].trim()),Le.nativeTypeAttributes&&(r[t]=bx(r[t])),"attributeValueFn"in Le&&(r[t]=Le.attributeValueFn(r[t],t,zt)),"attributeNameFn"in Le)){var e=r[t];delete r[t],r[Le.attributeNameFn(t,r[t],zt)]=e}}return r}function LM(r){var t={};if(r.body&&(r.name.toLowerCase()==="xml"||Le.instructionHasAttributes)){for(var e=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,n;(n=e.exec(r.body))!==null;)t[n[1]]=n[2]||n[3]||n[4];t=wx(t)}if(r.name.toLowerCase()==="xml"){if(Le.ignoreDeclaration)return;zt[Le.declarationKey]={},Object.keys(t).length&&(zt[Le.declarationKey][Le.attributesKey]=t),Le.addParent&&(zt[Le.declarationKey][Le.parentKey]=zt)}else{if(Le.ignoreInstruction)return;Le.trim&&(r.body=r.body.trim());var i={};Le.instructionHasAttributes&&Object.keys(t).length?(i[r.name]={},i[r.name][Le.attributesKey]=t):i[r.name]=r.body,il("instruction",i)}}function jM(r,t){var e;if(typeof r=="object"&&(t=r.attributes,r=r.name),t=wx(t),"elementNameFn"in Le&&(r=Le.elementNameFn(r,zt)),Le.compact){if(e={},!Le.ignoreAttributes&&t&&Object.keys(t).length){e[Le.attributesKey]={};var n;for(n in t)t.hasOwnProperty(n)&&(e[Le.attributesKey][n]=t[n])}!(r in zt)&&(Fu(Le.alwaysArray)?Le.alwaysArray.indexOf(r)!==-1:Le.alwaysArray)&&(zt[r]=[]),zt[r]&&!Fu(zt[r])&&(zt[r]=[zt[r]]),Fu(zt[r])?zt[r].push(e):zt[r]=e}else zt[Le.elementsKey]||(zt[Le.elementsKey]=[]),e={},e[Le.typeKey]="element",e[Le.nameKey]=r,!Le.ignoreAttributes&&t&&Object.keys(t).length&&(e[Le.attributesKey]=t),Le.alwaysChildren&&(e[Le.elementsKey]=[]),zt[Le.elementsKey].push(e);e[Le.parentKey]=zt,zt=e}function WM(r){Le.ignoreText||!r.trim()&&!Le.captureSpacesBetweenElements||(Le.trim&&(r=r.trim()),Le.nativeType&&(r=bx(r)),Le.sanitize&&(r=r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),il("text",r))}function zM(r){Le.ignoreComment||(Le.trim&&(r=r.trim()),il("comment",r))}function HM(r){var t=zt[Le.parentKey];Le.addParent||delete zt[Le.parentKey],zt=t}function $M(r){Le.ignoreCdata||(Le.trim&&(r=r.trim()),il("cdata",r))}function VM(r){Le.ignoreDoctype||(r=r.replace(/^ /,""),Le.trim&&(r=r.trim()),il("doctype",r))}function qM(r){r.note=r}var xx=function(r,t){var e=UM.parser(!0,{}),n={};if(zt=n,Le=PM(t),e.opt={strictEntities:!0},e.onopentag=jM,e.ontext=WM,e.oncomment=zM,e.onclosetag=HM,e.onerror=qM,e.oncdata=$M,e.ondoctype=VM,e.onprocessinginstruction=LM,e.write(r).close(),n[Le.elementsKey]){var i=n[Le.elementsKey];delete n[Le.elementsKey],n[Le.elementsKey]=i,delete n.text}return n},_x=vm,GM=xx;function XM(r){var t=_x.copyOptions(r);return _x.ensureSpacesExists(t),t}var KM=function(r,t){var e,n,i,a;return e=XM(t),n=GM(r,e),a="compact"in e&&e.compact?"_parent":"parent","addParent"in e&&e.addParent?i=JSON.stringify(n,function(o,s){return o===a?"_":s},e.spaces):i=JSON.stringify(n,null,e.spaces),i.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Vr=vm,ZM=gm.isArray,Qn,ei;function YM(r){var t=Vr.copyOptions(r);return Vr.ensureFlagExists("ignoreDeclaration",t),Vr.ensureFlagExists("ignoreInstruction",t),Vr.ensureFlagExists("ignoreAttributes",t),Vr.ensureFlagExists("ignoreText",t),Vr.ensureFlagExists("ignoreComment",t),Vr.ensureFlagExists("ignoreCdata",t),Vr.ensureFlagExists("ignoreDoctype",t),Vr.ensureFlagExists("compact",t),Vr.ensureFlagExists("indentText",t),Vr.ensureFlagExists("indentCdata",t),Vr.ensureFlagExists("indentAttributes",t),Vr.ensureFlagExists("indentInstruction",t),Vr.ensureFlagExists("fullTagEmptyElement",t),Vr.ensureFlagExists("noQuotesForNativeAttributes",t),Vr.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),Vr.ensureKeyExists("declaration",t),Vr.ensureKeyExists("instruction",t),Vr.ensureKeyExists("attributes",t),Vr.ensureKeyExists("text",t),Vr.ensureKeyExists("comment",t),Vr.ensureKeyExists("cdata",t),Vr.ensureKeyExists("doctype",t),Vr.ensureKeyExists("type",t),Vr.ensureKeyExists("name",t),Vr.ensureKeyExists("elements",t),t}function Pa(r,t,e){return(!e&&r.spaces?`
`:"")+Array(t+1).join(r.spaces)}function Lh(r,t,e){if(t.ignoreAttributes)return"";"attributesFn"in t&&(r=t.attributesFn(r,ei,Qn));var n,i,a,o,s=[];for(n in r)r.hasOwnProperty(n)&&r[n]!==null&&r[n]!==void 0&&(o=t.noQuotesForNativeAttributes&&typeof r[n]!="string"?"":'"',i=""+r[n],i=i.replace(/"/g,"&quot;"),a="attributeNameFn"in t?t.attributeNameFn(n,i,ei,Qn):n,s.push(t.spaces&&t.indentAttributes?Pa(t,e+1,!1):" "),s.push(a+"="+o+("attributeValueFn"in t?t.attributeValueFn(i,n,ei,Qn):i)+o));return r&&Object.keys(r).length&&t.spaces&&t.indentAttributes&&s.push(Pa(t,e,!1)),s.join("")}function Ex(r,t,e){return Qn=r,ei="xml",t.ignoreDeclaration?"":"<?xml"+Lh(r[t.attributesKey],t,e)+"?>"}function Ax(r,t,e){if(t.ignoreInstruction)return"";var n;for(n in r)if(r.hasOwnProperty(n))break;var i="instructionNameFn"in t?t.instructionNameFn(n,r[n],ei,Qn):n;if(typeof r[n]=="object")return Qn=r,ei=i,"<?"+i+Lh(r[n][t.attributesKey],t,e)+"?>";var a=r[n]?r[n]:"";return"instructionFn"in t&&(a=t.instructionFn(a,n,ei,Qn)),"<?"+i+(a?" "+a:"")+"?>"}function Tx(r,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(r,ei,Qn):r)+"-->"}function Sx(r,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(r,ei,Qn):r.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function Dx(r,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(r,ei,Qn):r)+">"}function ym(r,t){return t.ignoreText?"":(r=""+r,r=r.replace(/&amp;/g,"&"),r=r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(r,ei,Qn):r)}function JM(r,t){var e;if(r.elements&&r.elements.length)for(e=0;e<r.elements.length;++e)switch(r.elements[e][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function QM(r,t,e){Qn=r,ei=r.name;var n=[],i="elementNameFn"in t?t.elementNameFn(r.name,r):r.name;n.push("<"+i),r[t.attributesKey]&&n.push(Lh(r[t.attributesKey],t,e));var a=r[t.elementsKey]&&r[t.elementsKey].length||r[t.attributesKey]&&r[t.attributesKey]["xml:space"]==="preserve";return a||("fullTagEmptyElementFn"in t?a=t.fullTagEmptyElementFn(r.name,r):a=t.fullTagEmptyElement),a?(n.push(">"),r[t.elementsKey]&&r[t.elementsKey].length&&(n.push(Cx(r[t.elementsKey],t,e+1)),Qn=r,ei=r.name),n.push(t.spaces&&JM(r,t)?`
`+Array(e+1).join(t.spaces):""),n.push("</"+i+">")):n.push("/>"),n.join("")}function Cx(r,t,e,n){return r.reduce(function(i,a){var o=Pa(t,e,n&&!i);switch(a.type){case"element":return i+o+QM(a,t,e);case"comment":return i+o+Tx(a[t.commentKey],t);case"doctype":return i+o+Dx(a[t.doctypeKey],t);case"cdata":return i+(t.indentCdata?o:"")+Sx(a[t.cdataKey],t);case"text":return i+(t.indentText?o:"")+ym(a[t.textKey],t);case"instruction":var s={};return s[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],i+(t.indentInstruction?o:"")+Ax(s,t,e)}},"")}function Ox(r,t,e){var n;for(n in r)if(r.hasOwnProperty(n))switch(n){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||e)return!0;break;case t.cdataKey:if(t.indentCdata||e)return!0;break;case t.instructionKey:if(t.indentInstruction||e)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}function eB(r,t,e,n,i){Qn=r,ei=t;var a="elementNameFn"in e?e.elementNameFn(t,r):t;if(typeof r=="undefined"||r===null||r==="")return"fullTagEmptyElementFn"in e&&e.fullTagEmptyElementFn(t,r)||e.fullTagEmptyElement?"<"+a+"></"+a+">":"<"+a+"/>";var o=[];if(t){if(o.push("<"+a),typeof r!="object")return o.push(">"+ym(r,e)+"</"+a+">"),o.join("");r[e.attributesKey]&&o.push(Lh(r[e.attributesKey],e,n));var s=Ox(r,e,!0)||r[e.attributesKey]&&r[e.attributesKey]["xml:space"]==="preserve";if(s||("fullTagEmptyElementFn"in e?s=e.fullTagEmptyElementFn(t,r):s=e.fullTagEmptyElement),s)o.push(">");else return o.push("/>"),o.join("")}return o.push(Ix(r,e,n+1,!1)),Qn=r,ei=t,t&&o.push((i?Pa(e,n,!1):"")+"</"+a+">"),o.join("")}function Ix(r,t,e,n){var i,a,o,s=[];for(a in r)if(r.hasOwnProperty(a))for(o=ZM(r[a])?r[a]:[r[a]],i=0;i<o.length;++i){switch(a){case t.declarationKey:s.push(Ex(o[i],t,e));break;case t.instructionKey:s.push((t.indentInstruction?Pa(t,e,n):"")+Ax(o[i],t,e));break;case t.attributesKey:case t.parentKey:break;case t.textKey:s.push((t.indentText?Pa(t,e,n):"")+ym(o[i],t));break;case t.cdataKey:s.push((t.indentCdata?Pa(t,e,n):"")+Sx(o[i],t));break;case t.doctypeKey:s.push(Pa(t,e,n)+Dx(o[i],t));break;case t.commentKey:s.push(Pa(t,e,n)+Tx(o[i],t));break;default:s.push(Pa(t,e,n)+eB(o[i],a,t,e,Ox(o[i],t)))}n=n&&!s.length}return s.join("")}var kx=function(r,t){t=YM(t);var e=[];return Qn=r,ei="_root_",t.compact?e.push(Ix(r,t,0,!0)):(r[t.declarationKey]&&e.push(Ex(r[t.declarationKey],t,0)),r[t.elementsKey]&&r[t.elementsKey].length&&e.push(Cx(r[t.elementsKey],t,0,!e.length))),e.join("")},tB=kx,rB=function(r,t){r instanceof Buffer&&(r=r.toString());var e=null;if(typeof r=="string")try{e=JSON.parse(r)}catch{throw new Error("The JSON structure is invalid")}else e=r;return tB(e,t)},nB=xx,iB=KM,aB=kx,oB=rB,Rx={xml2js:nB,xml2json:iB,js2xml:aB,json2xml:oB};const bm=r=>{switch(r.type){case void 0:case"element":const t=new uB(r.name,r.attributes),e=r.elements||[];for(const n of e){const i=bm(n);i!==void 0&&t.push(i)}return t;case"text":return r.text;default:return}};class sB extends ht{}class uB extends Me{static fromXmlString(t){const e=Rx.xml2js(t,{compact:!1});return bm(e)}constructor(t,e){super(t);e&&this.root.push(new sB(e))}push(t){this.root.push(t)}}class cB extends Me{constructor(t){super("");this._attr=t}prepForXml(t){return{_attr:this._attr}}}class Fx extends Me{constructor(t,e){super(t);e&&(this.root=e.root)}}const ti=r=>{if(isNaN(r))throw new Error(`Invalid value '${r}' specified. Must be an integer.`);return Math.floor(r)},jh=r=>{const t=ti(r);if(t<0)throw new Error(`Invalid value '${r}' specified. Must be a positive integer.`);return t},Nx=(r,t)=>{const e=t*2;if(r.length!==e||isNaN(Number(`0x${r}`)))throw new Error(`Invalid hex value '${r}'. Expected ${e} digit hex value`);return r},Mx=r=>Nx(r,1),wm=r=>{const t=r.slice(-2),e=r.substring(0,r.length-2);return`${Number(e)}${t}`},Bx=r=>{const t=wm(r);if(parseFloat(t)<0)throw new Error(`Invalid value '${t}' specified. Expected a positive number.`);return t},Nu=r=>{if(r==="auto")return r;const t=r.charAt(0)==="#"?r.substring(1):r;return Nx(t,3)},wo=r=>typeof r=="string"?wm(r):ti(r),lB=r=>typeof r=="string"?Bx(r):jh(r),Vn=r=>typeof r=="string"?Bx(r):jh(r),fB=r=>{const t=r.substring(0,r.length-1);return`${Number(t)}%`},hB=r=>typeof r=="number"?ti(r):r.slice(-1)==="%"?fB(r):wm(r),dB=jh,pB=jh,mB=r=>r.toISOString();class Qe extends Me{constructor(t,e=!0){super(t);e!==!0&&this.root.push(new an({val:e}))}}class xm extends Me{constructor(t,e){super(t);this.root.push(new an({val:lB(e)}))}}class gB extends Me{}class Ns extends Me{constructor(t,e){super(t);this.root.push(new an({val:e}))}}const al=(r,t)=>new wn({name:r,attributes:{value:{key:"w:val",value:t}}});class _m extends Me{constructor(t,e){super(t);this.root.push(new an({val:e}))}}class vB extends Me{constructor(t,e){super(t);this.root.push(new an({val:e}))}}class Ms extends Me{constructor(t,e){super(t);this.root.push(e)}}class wn extends Me{constructor({name:t,attributes:e,children:n}){super(t);e&&this.root.push(new vo(e)),n&&this.root.push(...n)}}const La={START:"start",CENTER:"center",END:"end",BOTH:"both",MEDIUM_KASHIDA:"mediumKashida",DISTRIBUTE:"distribute",NUM_TAB:"numTab",HIGH_KASHIDA:"highKashida",LOW_KASHIDA:"lowKashida",THAI_DISTRIBUTE:"thaiDistribute",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"};class yB extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{val:"w:val"})}}class Ux extends Me{constructor(t){super("w:jc");this.root.push(new yB({val:t}))}}class Ur extends Me{constructor(t,{color:e,size:n,space:i,style:a}){super(t);this.root.push(new bB({style:a,color:e===void 0?void 0:Nu(e),size:n===void 0?void 0:dB(n),space:i===void 0?void 0:pB(i)}))}}class bB extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const Em={SINGLE:"single",DASH_DOT_STROKED:"dashDotStroked",DASHED:"dashed",DASH_SMALL_GAP:"dashSmallGap",DOT_DASH:"dotDash",DOT_DOT_DASH:"dotDotDash",DOTTED:"dotted",DOUBLE:"double",DOUBLE_WAVE:"doubleWave",INSET:"inset",NIL:"nil",NONE:"none",OUTSET:"outset",THICK:"thick",THICK_THIN_LARGE_GAP:"thickThinLargeGap",THICK_THIN_MEDIUM_GAP:"thickThinMediumGap",THICK_THIN_SMALL_GAP:"thickThinSmallGap",THIN_THICK_LARGE_GAP:"thinThickLargeGap",THIN_THICK_MEDIUM_GAP:"thinThickMediumGap",THIN_THICK_SMALL_GAP:"thinThickSmallGap",THIN_THICK_THIN_LARGE_GAP:"thinThickThinLargeGap",THIN_THICK_THIN_MEDIUM_GAP:"thinThickThinMediumGap",THIN_THICK_THIN_SMALL_GAP:"thinThickThinSmallGap",THREE_D_EMBOSS:"threeDEmboss",THREE_D_ENGRAVE:"threeDEngrave",TRIPLE:"triple",WAVE:"wave"};class wB extends go{constructor(t){super("w:pBdr");t.top&&this.root.push(new Ur("w:top",t.top)),t.bottom&&this.root.push(new Ur("w:bottom",t.bottom)),t.left&&this.root.push(new Ur("w:left",t.left)),t.right&&this.root.push(new Ur("w:right",t.right))}}class xB extends Me{constructor(){super("w:pBdr");const t=new Ur("w:bottom",{color:"auto",space:1,style:Em.SINGLE,size:6});this.root.push(t)}}class _B extends Me{constructor({start:t,end:e,left:n,right:i,hanging:a,firstLine:o}){super("w:ind");this.root.push(new vo({start:{key:"w:start",value:t===void 0?void 0:wo(t)},end:{key:"w:end",value:e===void 0?void 0:wo(e)},left:{key:"w:left",value:n===void 0?void 0:wo(n)},right:{key:"w:right",value:i===void 0?void 0:wo(i)},hanging:{key:"w:hanging",value:a===void 0?void 0:Vn(a)},firstLine:{key:"w:firstLine",value:o===void 0?void 0:Vn(o)}}))}}let EB=class extends Me{constructor(){super("w:br")}};const Am={BEGIN:"begin",END:"end",SEPARATE:"separate"};class Tm extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class Wh extends Me{constructor(t){super("w:fldChar");this.root.push(new Tm({type:Am.BEGIN,dirty:t}))}}class zh extends Me{constructor(t){super("w:fldChar");this.root.push(new Tm({type:Am.SEPARATE,dirty:t}))}}class Hh extends Me{constructor(t){super("w:fldChar");this.root.push(new Tm({type:Am.END,dirty:t}))}}const Mu={DEFAULT:"default",PRESERVE:"preserve"};class Bu extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{space:"xml:space"})}}class AB extends Me{constructor(){super("w:instrText");this.root.push(new Bu({space:Mu.PRESERVE})),this.root.push("PAGE")}}class TB extends Me{constructor(){super("w:instrText");this.root.push(new Bu({space:Mu.PRESERVE})),this.root.push("NUMPAGES")}}class SB extends Me{constructor(){super("w:instrText");this.root.push(new Bu({space:Mu.PRESERVE})),this.root.push("SECTIONPAGES")}}class DB extends Me{constructor(){super("w:instrText");this.root.push(new Bu({space:Mu.PRESERVE})),this.root.push("SECTION")}}class CB extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class $h extends Me{constructor({fill:t,color:e,type:n}){super("w:shd");this.root.push(new CB({fill:t===void 0?void 0:Nu(t),color:e===void 0?void 0:Nu(e),type:n}))}}class OB extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const IB={DOT:"dot"};class kB extends Me{constructor(t){super("w:em");this.root.push(new an({val:t}))}}class RB extends kB{constructor(t=IB.DOT){super(t)}}class FB extends Me{constructor(t){super("w:spacing");this.root.push(new an({val:wo(t)}))}}class NB extends Me{constructor(t){super("w:color");this.root.push(new an({val:Nu(t)}))}}class MB extends Me{constructor(t){super("w:highlight");this.root.push(new an({val:t}))}}class BB extends Me{constructor(t){super("w:highlightCs");this.root.push(new an({val:t}))}}const UB=r=>new wn({name:"w:lang",attributes:{value:{key:"w:val",value:r.value},eastAsia:{key:"w:eastAsia",value:r.eastAsia},bidirectional:{key:"w:bidi",value:r.bidirectional}}});class Px extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class Sm extends Me{constructor(t,e){super("w:rFonts");if(typeof t=="string"){const n=t;this.root.push(new Px({ascii:n,cs:n,eastAsia:n,hAnsi:n,hint:e}))}else{const n=t;this.root.push(new Px(n))}}}let Lx=class extends Me{constructor(t){super("w:vertAlign");this.root.push(new an({val:t}))}};class PB extends Lx{constructor(){super("superscript")}}class LB extends Lx{constructor(){super("subscript")}}const jx={SINGLE:"single",WORDS:"words",DOUBLE:"double",THICK:"thick",DOTTED:"dotted",DOTTEDHEAVY:"dottedHeavy",DASH:"dash",DASHEDHEAVY:"dashedHeavy",DASHLONG:"dashLong",DASHLONGHEAVY:"dashLongHeavy",DOTDASH:"dotDash",DASHDOTHEAVY:"dashDotHeavy",DOTDOTDASH:"dotDotDash",DASHDOTDOTHEAVY:"dashDotDotHeavy",WAVE:"wave",WAVYHEAVY:"wavyHeavy",WAVYDOUBLE:"wavyDouble",NONE:"none"};class jB extends Me{constructor(t=jx.SINGLE,e){super("w:u");this.root.push(new an({val:t,color:e===void 0?void 0:Nu(e)}))}}class Bs extends go{constructor(t){var e,n;super("w:rPr");if(!t)return;t.noProof!==void 0&&this.push(new Qe("w:noProof",t.noProof)),t.bold!==void 0&&this.push(new Qe("w:b",t.bold)),(t.boldComplexScript===void 0&&t.bold!==void 0||t.boldComplexScript)&&this.push(new Qe("w:bCs",(e=t.boldComplexScript)!=null?e:t.bold)),t.italics!==void 0&&this.push(new Qe("w:i",t.italics)),(t.italicsComplexScript===void 0&&t.italics!==void 0||t.italicsComplexScript)&&this.push(new Qe("w:iCs",(n=t.italicsComplexScript)!=null?n:t.italics)),t.underline&&this.push(new jB(t.underline.type,t.underline.color)),t.effect&&this.push(new Ns("w:effect",t.effect)),t.emphasisMark&&this.push(new RB(t.emphasisMark.type)),t.color&&this.push(new NB(t.color)),t.kern&&this.push(new xm("w:kern",t.kern)),t.position&&this.push(new Ns("w:position",t.position)),t.size!==void 0&&this.push(new xm("w:sz",t.size));const i=t.sizeComplexScript===void 0||t.sizeComplexScript===!0?t.size:t.sizeComplexScript;i&&this.push(new xm("w:szCs",i)),t.rightToLeft!==void 0&&this.push(new Qe("w:rtl",t.rightToLeft)),t.smallCaps!==void 0?this.push(new Qe("w:smallCaps",t.smallCaps)):t.allCaps!==void 0&&this.push(new Qe("w:caps",t.allCaps)),t.strike!==void 0&&this.push(new Qe("w:strike",t.strike)),t.doubleStrike!==void 0&&this.push(new Qe("w:dstrike",t.doubleStrike)),t.subScript&&this.push(new LB),t.superScript&&this.push(new PB),t.style&&this.push(new Ns("w:rStyle",t.style)),t.font&&(typeof t.font=="string"?this.push(new Sm(t.font)):"name"in t.font?this.push(new Sm(t.font.name,t.font.hint)):this.push(new Sm(t.font))),t.highlight&&this.push(new MB(t.highlight));const a=t.highlightComplexScript===void 0||t.highlightComplexScript===!0?t.highlight:t.highlightComplexScript;a&&this.push(new BB(a)),t.characterSpacing&&this.push(new FB(t.characterSpacing)),t.emboss!==void 0&&this.push(new Qe("w:emboss",t.emboss)),t.imprint!==void 0&&this.push(new Qe("w:imprint",t.imprint)),t.shading&&this.push(new $h(t.shading)),t.revision&&this.push(new WB(t.revision)),t.border&&this.push(new Ur("w:bdr",t.border)),t.snapToGrid!==void 0&&this.push(new Qe("w:snapToGrid",t.snapToGrid)),t.vanish&&this.push(new Qe("w:vanish",t.vanish)),t.specVanish&&this.push(new Qe("w:specVanish",t.vanish)),t.scale!==void 0&&this.push(new _m("w:w",t.scale)),t.language&&this.push(UB(t.language)),t.math&&this.push(new Qe("w:oMath",t.math))}push(t){this.root.push(t)}}class WB extends Me{constructor(t){super("w:rPrChange");this.root.push(new OB({id:t.id,author:t.author,date:t.date})),this.addChildElement(new Bs(t))}}class Dm extends Me{constructor(t){var e;super("w:t");typeof t=="string"?(this.root.push(new Bu({space:Mu.PRESERVE})),this.root.push(t)):(this.root.push(new Bu({space:(e=t.space)!=null?e:Mu.DEFAULT})),this.root.push(t.text))}}const Vh={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class ol extends Me{constructor(t){super("w:r");if(Be(this,"properties"),this.properties=new Bs(t),this.root.push(this.properties),t.break)for(let e=0;e<t.break;e++)this.root.push(new EB);if(t.children)for(const e of t.children){if(typeof e=="string"){switch(e){case Vh.CURRENT:this.root.push(new Wh),this.root.push(new AB),this.root.push(new zh),this.root.push(new Hh);break;case Vh.TOTAL_PAGES:this.root.push(new Wh),this.root.push(new TB),this.root.push(new zh),this.root.push(new Hh);break;case Vh.TOTAL_PAGES_IN_SECTION:this.root.push(new Wh),this.root.push(new SB),this.root.push(new zh),this.root.push(new Hh);break;case Vh.CURRENT_SECTION:this.root.push(new Wh),this.root.push(new DB),this.root.push(new zh),this.root.push(new Hh);break;default:this.root.push(new Dm(e));break}continue}this.root.push(e)}else t.text&&this.root.push(new Dm(t.text))}}class Wx extends ol{constructor(t){if(typeof t=="string"){super({});return this.root.push(new Dm(t)),this}super(t)}}var zx={},cr={},sl=Hx;function Hx(r,t){if(!r)throw new Error(t||"Assertion failed")}Hx.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)};var zB=sl,HB=ts;cr.inherits=HB;function $B(r,t){return(r.charCodeAt(t)&64512)!=55296||t<0||t+1>=r.length?!1:(r.charCodeAt(t+1)&64512)==56320}function VB(r,t){if(Array.isArray(r))return r.slice();if(!r)return[];var e=[];if(typeof r=="string")if(t){if(t==="hex")for(r=r.replace(/[^a-z0-9]+/ig,""),r.length%2!=0&&(r="0"+r),i=0;i<r.length;i+=2)e.push(parseInt(r[i]+r[i+1],16))}else for(var n=0,i=0;i<r.length;i++){var a=r.charCodeAt(i);a<128?e[n++]=a:a<2048?(e[n++]=a>>6|192,e[n++]=a&63|128):$B(r,i)?(a=65536+((a&1023)<<10)+(r.charCodeAt(++i)&1023),e[n++]=a>>18|240,e[n++]=a>>12&63|128,e[n++]=a>>6&63|128,e[n++]=a&63|128):(e[n++]=a>>12|224,e[n++]=a>>6&63|128,e[n++]=a&63|128)}else for(i=0;i<r.length;i++)e[i]=r[i]|0;return e}cr.toArray=VB;function qB(r){for(var t="",e=0;e<r.length;e++)t+=Vx(r[e].toString(16));return t}cr.toHex=qB;function $x(r){var t=r>>>24|r>>>8&65280|r<<8&16711680|(r&255)<<24;return t>>>0}cr.htonl=$x;function GB(r,t){for(var e="",n=0;n<r.length;n++){var i=r[n];t==="little"&&(i=$x(i)),e+=qx(i.toString(16))}return e}cr.toHex32=GB;function Vx(r){return r.length===1?"0"+r:r}cr.zero2=Vx;function qx(r){return r.length===7?"0"+r:r.length===6?"00"+r:r.length===5?"000"+r:r.length===4?"0000"+r:r.length===3?"00000"+r:r.length===2?"000000"+r:r.length===1?"0000000"+r:r}cr.zero8=qx;function XB(r,t,e,n){var i=e-t;zB(i%4==0);for(var a=new Array(i/4),o=0,s=t;o<a.length;o++,s+=4){var u;n==="big"?u=r[s]<<24|r[s+1]<<16|r[s+2]<<8|r[s+3]:u=r[s+3]<<24|r[s+2]<<16|r[s+1]<<8|r[s],a[o]=u>>>0}return a}cr.join32=XB;function KB(r,t){for(var e=new Array(r.length*4),n=0,i=0;n<r.length;n++,i+=4){var a=r[n];t==="big"?(e[i]=a>>>24,e[i+1]=a>>>16&255,e[i+2]=a>>>8&255,e[i+3]=a&255):(e[i+3]=a>>>24,e[i+2]=a>>>16&255,e[i+1]=a>>>8&255,e[i]=a&255)}return e}cr.split32=KB;function ZB(r,t){return r>>>t|r<<32-t}cr.rotr32=ZB;function YB(r,t){return r<<t|r>>>32-t}cr.rotl32=YB;function JB(r,t){return r+t>>>0}cr.sum32=JB;function QB(r,t,e){return r+t+e>>>0}cr.sum32_3=QB;function eU(r,t,e,n){return r+t+e+n>>>0}cr.sum32_4=eU;function tU(r,t,e,n,i){return r+t+e+n+i>>>0}cr.sum32_5=tU;function rU(r,t,e,n){var i=r[t],a=r[t+1],o=n+a>>>0,s=(o<n?1:0)+e+i;r[t]=s>>>0,r[t+1]=o}cr.sum64=rU;function nU(r,t,e,n){var i=t+n>>>0,a=(i<t?1:0)+r+e;return a>>>0}cr.sum64_hi=nU;function iU(r,t,e,n){var i=t+n;return i>>>0}cr.sum64_lo=iU;function aU(r,t,e,n,i,a,o,s){var u=0,c=t;c=c+n>>>0,u+=c<t?1:0,c=c+a>>>0,u+=c<a?1:0,c=c+s>>>0,u+=c<s?1:0;var l=r+e+i+o+u;return l>>>0}cr.sum64_4_hi=aU;function oU(r,t,e,n,i,a,o,s){var u=t+n+a+s;return u>>>0}cr.sum64_4_lo=oU;function sU(r,t,e,n,i,a,o,s,u,c){var l=0,d=t;d=d+n>>>0,l+=d<t?1:0,d=d+a>>>0,l+=d<a?1:0,d=d+s>>>0,l+=d<s?1:0,d=d+c>>>0,l+=d<c?1:0;var h=r+e+i+o+u+l;return h>>>0}cr.sum64_5_hi=sU;function uU(r,t,e,n,i,a,o,s,u,c){var l=t+n+a+s+c;return l>>>0}cr.sum64_5_lo=uU;function cU(r,t,e){var n=t<<32-e|r>>>e;return n>>>0}cr.rotr64_hi=cU;function lU(r,t,e){var n=r<<32-e|t>>>e;return n>>>0}cr.rotr64_lo=lU;function fU(r,t,e){return r>>>e}cr.shr64_hi=fU;function hU(r,t,e){var n=r<<32-e|t>>>e;return n>>>0}cr.shr64_lo=hU;var Uu={},Gx=cr,dU=sl;function qh(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Uu.BlockHash=qh;qh.prototype.update=function(t,e){if(t=Gx.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),this.pending.length===0&&(this.pending=null),t=Gx.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this};qh.prototype.digest=function(t){return this.update(this._pad()),dU(this.pending===null),this._digest(t)};qh.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,i=new Array(n+this.padLength);i[0]=128;for(var a=1;a<n;a++)i[a]=0;if(t<<=3,this.endian==="big"){for(var o=8;o<this.padLength;o++)i[a++]=0;i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=t>>>24&255,i[a++]=t>>>16&255,i[a++]=t>>>8&255,i[a++]=t&255}else for(i[a++]=t&255,i[a++]=t>>>8&255,i[a++]=t>>>16&255,i[a++]=t>>>24&255,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0,o=8;o<this.padLength;o++)i[a++]=0;return i};var Pu={},ja={},pU=cr,Wa=pU.rotr32;function mU(r,t,e,n){if(r===0)return Xx(t,e,n);if(r===1||r===3)return Zx(t,e,n);if(r===2)return Kx(t,e,n)}ja.ft_1=mU;function Xx(r,t,e){return r&t^~r&e}ja.ch32=Xx;function Kx(r,t,e){return r&t^r&e^t&e}ja.maj32=Kx;function Zx(r,t,e){return r^t^e}ja.p32=Zx;function gU(r){return Wa(r,2)^Wa(r,13)^Wa(r,22)}ja.s0_256=gU;function vU(r){return Wa(r,6)^Wa(r,11)^Wa(r,25)}ja.s1_256=vU;function yU(r){return Wa(r,7)^Wa(r,18)^r>>>3}ja.g0_256=yU;function bU(r){return Wa(r,17)^Wa(r,19)^r>>>10}ja.g1_256=bU;var Lu=cr,wU=Uu,xU=ja,Cm=Lu.rotl32,ul=Lu.sum32,_U=Lu.sum32_5,EU=xU.ft_1,Yx=wU.BlockHash,AU=[1518500249,1859775393,2400959708,3395469782];function za(){if(!(this instanceof za))return new za;Yx.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Lu.inherits(za,Yx);var TU=za;za.blockSize=512;za.outSize=160;za.hmacStrength=80;za.padLength=64;za.prototype._update=function(t,e){for(var n=this.W,i=0;i<16;i++)n[i]=t[e+i];for(;i<n.length;i++)n[i]=Cm(n[i-3]^n[i-8]^n[i-14]^n[i-16],1);var a=this.h[0],o=this.h[1],s=this.h[2],u=this.h[3],c=this.h[4];for(i=0;i<n.length;i++){var l=~~(i/20),d=_U(Cm(a,5),EU(l,o,s,u),c,n[i],AU[l]);c=u,u=s,s=Cm(o,30),o=a,a=d}this.h[0]=ul(this.h[0],a),this.h[1]=ul(this.h[1],o),this.h[2]=ul(this.h[2],s),this.h[3]=ul(this.h[3],u),this.h[4]=ul(this.h[4],c)};za.prototype._digest=function(t){return t==="hex"?Lu.toHex32(this.h,"big"):Lu.split32(this.h,"big")};var ju=cr,SU=Uu,Wu=ja,DU=sl,wa=ju.sum32,CU=ju.sum32_4,OU=ju.sum32_5,IU=Wu.ch32,kU=Wu.maj32,RU=Wu.s0_256,FU=Wu.s1_256,NU=Wu.g0_256,MU=Wu.g1_256,Jx=SU.BlockHash,BU=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function Ha(){if(!(this instanceof Ha))return new Ha;Jx.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=BU,this.W=new Array(64)}ju.inherits(Ha,Jx);var Qx=Ha;Ha.blockSize=512;Ha.outSize=256;Ha.hmacStrength=192;Ha.padLength=64;Ha.prototype._update=function(t,e){for(var n=this.W,i=0;i<16;i++)n[i]=t[e+i];for(;i<n.length;i++)n[i]=CU(MU(n[i-2]),n[i-7],NU(n[i-15]),n[i-16]);var a=this.h[0],o=this.h[1],s=this.h[2],u=this.h[3],c=this.h[4],l=this.h[5],d=this.h[6],h=this.h[7];for(DU(this.k.length===n.length),i=0;i<n.length;i++){var f=OU(h,FU(c),IU(c,l,d),this.k[i],n[i]),g=wa(RU(a),kU(a,o,s));h=d,d=l,l=c,c=wa(u,f),u=s,s=o,o=a,a=wa(f,g)}this.h[0]=wa(this.h[0],a),this.h[1]=wa(this.h[1],o),this.h[2]=wa(this.h[2],s),this.h[3]=wa(this.h[3],u),this.h[4]=wa(this.h[4],c),this.h[5]=wa(this.h[5],l),this.h[6]=wa(this.h[6],d),this.h[7]=wa(this.h[7],h)};Ha.prototype._digest=function(t){return t==="hex"?ju.toHex32(this.h,"big"):ju.split32(this.h,"big")};var Om=cr,e_=Qx;function xo(){if(!(this instanceof xo))return new xo;e_.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Om.inherits(xo,e_);var UU=xo;xo.blockSize=512;xo.outSize=224;xo.hmacStrength=192;xo.padLength=64;xo.prototype._digest=function(t){return t==="hex"?Om.toHex32(this.h.slice(0,7),"big"):Om.split32(this.h.slice(0,7),"big")};var Di=cr,PU=Uu,LU=sl,$a=Di.rotr64_hi,Va=Di.rotr64_lo,t_=Di.shr64_hi,r_=Di.shr64_lo,rs=Di.sum64,Im=Di.sum64_hi,km=Di.sum64_lo,jU=Di.sum64_4_hi,WU=Di.sum64_4_lo,zU=Di.sum64_5_hi,HU=Di.sum64_5_lo,n_=PU.BlockHash,$U=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function xa(){if(!(this instanceof xa))return new xa;n_.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=$U,this.W=new Array(160)}Di.inherits(xa,n_);var i_=xa;xa.blockSize=1024;xa.outSize=512;xa.hmacStrength=192;xa.padLength=128;xa.prototype._prepareBlock=function(t,e){for(var n=this.W,i=0;i<32;i++)n[i]=t[e+i];for(;i<n.length;i+=2){var a=tP(n[i-4],n[i-3]),o=rP(n[i-4],n[i-3]),s=n[i-14],u=n[i-13],c=QU(n[i-30],n[i-29]),l=eP(n[i-30],n[i-29]),d=n[i-32],h=n[i-31];n[i]=jU(a,o,s,u,c,l,d,h),n[i+1]=WU(a,o,s,u,c,l,d,h)}};xa.prototype._update=function(t,e){this._prepareBlock(t,e);var n=this.W,i=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],u=this.h[4],c=this.h[5],l=this.h[6],d=this.h[7],h=this.h[8],f=this.h[9],g=this.h[10],m=this.h[11],p=this.h[12],y=this.h[13],v=this.h[14],b=this.h[15];LU(this.k.length===n.length);for(var A=0;A<n.length;A+=2){var C=v,M=b,z=YU(h,f),W=JU(h,f),U=VU(h,f,g,m,p),G=qU(h,f,g,m,p,y),ee=this.k[A],I=this.k[A+1],O=n[A],T=n[A+1],S=zU(C,M,z,W,U,G,ee,I,O,T),x=HU(C,M,z,W,U,G,ee,I,O,T);C=KU(i,a),M=ZU(i,a),z=GU(i,a,o,s,u),W=XU(i,a,o,s,u,c);var w=Im(C,M,z,W),_=km(C,M,z,W);v=p,b=y,p=g,y=m,g=h,m=f,h=Im(l,d,S,x),f=km(d,d,S,x),l=u,d=c,u=o,c=s,o=i,s=a,i=Im(S,x,w,_),a=km(S,x,w,_)}rs(this.h,0,i,a),rs(this.h,2,o,s),rs(this.h,4,u,c),rs(this.h,6,l,d),rs(this.h,8,h,f),rs(this.h,10,g,m),rs(this.h,12,p,y),rs(this.h,14,v,b)};xa.prototype._digest=function(t){return t==="hex"?Di.toHex32(this.h,"big"):Di.split32(this.h,"big")};function VU(r,t,e,n,i){var a=r&e^~r&i;return a<0&&(a+=4294967296),a}function qU(r,t,e,n,i,a){var o=t&n^~t&a;return o<0&&(o+=4294967296),o}function GU(r,t,e,n,i){var a=r&e^r&i^e&i;return a<0&&(a+=4294967296),a}function XU(r,t,e,n,i,a){var o=t&n^t&a^n&a;return o<0&&(o+=4294967296),o}function KU(r,t){var e=$a(r,t,28),n=$a(t,r,2),i=$a(t,r,7),a=e^n^i;return a<0&&(a+=4294967296),a}function ZU(r,t){var e=Va(r,t,28),n=Va(t,r,2),i=Va(t,r,7),a=e^n^i;return a<0&&(a+=4294967296),a}function YU(r,t){var e=$a(r,t,14),n=$a(r,t,18),i=$a(t,r,9),a=e^n^i;return a<0&&(a+=4294967296),a}function JU(r,t){var e=Va(r,t,14),n=Va(r,t,18),i=Va(t,r,9),a=e^n^i;return a<0&&(a+=4294967296),a}function QU(r,t){var e=$a(r,t,1),n=$a(r,t,8),i=t_(r,t,7),a=e^n^i;return a<0&&(a+=4294967296),a}function eP(r,t){var e=Va(r,t,1),n=Va(r,t,8),i=r_(r,t,7),a=e^n^i;return a<0&&(a+=4294967296),a}function tP(r,t){var e=$a(r,t,19),n=$a(t,r,29),i=t_(r,t,6),a=e^n^i;return a<0&&(a+=4294967296),a}function rP(r,t){var e=Va(r,t,19),n=Va(t,r,29),i=r_(r,t,6),a=e^n^i;return a<0&&(a+=4294967296),a}var Rm=cr,a_=i_;function _o(){if(!(this instanceof _o))return new _o;a_.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Rm.inherits(_o,a_);var nP=_o;_o.blockSize=1024;_o.outSize=384;_o.hmacStrength=192;_o.padLength=128;_o.prototype._digest=function(t){return t==="hex"?Rm.toHex32(this.h.slice(0,12),"big"):Rm.split32(this.h.slice(0,12),"big")};Pu.sha1=TU;Pu.sha224=UU;Pu.sha256=Qx;Pu.sha384=nP;Pu.sha512=i_;var o_={},Us=cr,iP=Uu,Gh=Us.rotl32,s_=Us.sum32,cl=Us.sum32_3,u_=Us.sum32_4,c_=iP.BlockHash;function qa(){if(!(this instanceof qa))return new qa;c_.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Us.inherits(qa,c_);o_.ripemd160=qa;qa.blockSize=512;qa.outSize=160;qa.hmacStrength=192;qa.padLength=64;qa.prototype._update=function(t,e){for(var n=this.h[0],i=this.h[1],a=this.h[2],o=this.h[3],s=this.h[4],u=n,c=i,l=a,d=o,h=s,f=0;f<80;f++){var g=s_(Gh(u_(n,l_(f,i,a,o),t[sP[f]+e],aP(f)),cP[f]),s);n=s,s=o,o=Gh(a,10),a=i,i=g,g=s_(Gh(u_(u,l_(79-f,c,l,d),t[uP[f]+e],oP(f)),lP[f]),h),u=h,h=d,d=Gh(l,10),l=c,c=g}g=cl(this.h[1],a,d),this.h[1]=cl(this.h[2],o,h),this.h[2]=cl(this.h[3],s,u),this.h[3]=cl(this.h[4],n,c),this.h[4]=cl(this.h[0],i,l),this.h[0]=g};qa.prototype._digest=function(t){return t==="hex"?Us.toHex32(this.h,"little"):Us.split32(this.h,"little")};function l_(r,t,e,n){return r<=15?t^e^n:r<=31?t&e|~t&n:r<=47?(t|~e)^n:r<=63?t&n|e&~n:t^(e|~n)}function aP(r){return r<=15?0:r<=31?1518500249:r<=47?1859775393:r<=63?2400959708:2840853838}function oP(r){return r<=15?1352829926:r<=31?1548603684:r<=47?1836072691:r<=63?2053994217:0}var sP=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],uP=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],cP=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],lP=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],fP=cr,hP=sl;function zu(r,t,e){if(!(this instanceof zu))return new zu(r,t,e);this.Hash=r,this.blockSize=r.blockSize/8,this.outSize=r.outSize/8,this.inner=null,this.outer=null,this._init(fP.toArray(t,e))}var dP=zu;zu.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),hP(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=new this.Hash().update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=new this.Hash().update(t)};zu.prototype.update=function(t,e){return this.inner.update(t,e),this};zu.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};(function(r){var t=r;t.utils=cr,t.common=Uu,t.sha=Pu,t.ripemd=o_,t.hmac=dP,t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})(zx);const pP=o1(zx);let mP="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",gP=(r,t=21)=>(e=t)=>{let n="",i=e;for(;i--;)n+=r[Math.random()*r.length|0];return n},vP=(r=21)=>{let t="",e=r;for(;e--;)t+=mP[Math.random()*64|0];return t};const _a=r=>Math.floor(r*72*20),Xh=(r=0)=>{let t=r;return()=>++t},yP=()=>Xh(),bP=()=>Xh(1),wP=()=>Xh(),xP=()=>Xh(),_P=()=>vP().toLowerCase(),f_=r=>pP.sha1().update(r instanceof ArrayBuffer?new Uint8Array(r):r).digest("hex"),ll=r=>gP("1234567890abcdef",r)(),EP=()=>`${ll(8)}-${ll(4)}-${ll(4)}-${ll(4)}-${ll(12)}`,AP={CHARACTER:"character",COLUMN:"column",INSIDE_MARGIN:"insideMargin",LEFT_MARGIN:"leftMargin",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",RIGHT_MARGIN:"rightMargin"},TP={BOTTOM_MARGIN:"bottomMargin",INSIDE_MARGIN:"insideMargin",LINE:"line",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",PARAGRAPH:"paragraph",TOP_MARGIN:"topMargin"};class SP extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{x:"x",y:"y"})}}class DP extends Me{constructor(){super("wp:simplePos");this.root.push(new SP({x:0,y:0}))}}class h_ extends Me{constructor(t){super("wp:align");this.root.push(t)}}class d_ extends Me{constructor(t){super("wp:posOffset");this.root.push(t.toString())}}class CP extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{relativeFrom:"relativeFrom"})}}class OP extends Me{constructor(t){super("wp:positionH");if(this.root.push(new CP({relativeFrom:t.relative||AP.PAGE})),t.align)this.root.push(new h_(t.align));else if(t.offset!==void 0)this.root.push(new d_(t.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}}class IP extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{relativeFrom:"relativeFrom"})}}class kP extends Me{constructor(t){super("wp:positionV");if(this.root.push(new IP({relativeFrom:t.relative||TP.PAGE})),t.align)this.root.push(new h_(t.align));else if(t.offset!==void 0)this.root.push(new d_(t.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}}class RP extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{uri:"uri"})}}const FP=r=>new wn({name:"asvg:svgBlip",attributes:{asvg:{key:"xmlns:asvg",value:"http://schemas.microsoft.com/office/drawing/2016/SVG/main"},embed:{key:"r:embed",value:`rId{${r.fileName}}`}}}),NP=r=>new wn({name:"a:ext",attributes:{uri:{key:"uri",value:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}"}},children:[FP(r)]}),MP=r=>new wn({name:"a:extLst",children:[NP(r)]}),BP=r=>new wn({name:"a:blip",attributes:{embed:{key:"r:embed",value:`rId{${r.type==="svg"?r.fallback.fileName:r.fileName}}`},cstate:{key:"cstate",value:"none"}},children:r.type==="svg"?[MP(r)]:[]});class UP extends Me{constructor(){super("a:srcRect")}}class PP extends Me{constructor(){super("a:fillRect")}}class LP extends Me{constructor(){super("a:stretch");this.root.push(new PP)}}class jP extends Me{constructor(t){super("pic:blipFill");this.root.push(BP(t)),this.root.push(new UP),this.root.push(new LP)}}class WP extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}}class zP extends Me{constructor(){super("a:picLocks");this.root.push(new WP({noChangeAspect:1,noChangeArrowheads:1}))}}class HP extends Me{constructor(){super("pic:cNvPicPr");this.root.push(new zP)}}const p_=(r,t)=>new wn({name:"a:hlinkClick",attributes:es(sr({},t?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{id:{key:"r:id",value:`rId${r}`}})});class $P extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}}class VP extends Me{constructor(){super("pic:cNvPr");this.root.push(new $P({id:0,name:"",descr:""}))}prepForXml(t){for(let e=t.stack.length-1;e>=0;e--){const n=t.stack[e];if(n instanceof Bm){this.root.push(p_(n.linkId,!1));break}}return super.prepForXml(t)}}class qP extends Me{constructor(){super("pic:nvPicPr");this.root.push(new VP),this.root.push(new HP)}}class GP extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{xmlns:"xmlns:pic"})}}class XP extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class KP extends Me{constructor(t,e){super("a:ext");Be(this,"attributes"),this.attributes=new XP({cx:t,cy:e}),this.root.push(this.attributes)}}class ZP extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{x:"x",y:"y"})}}class YP extends Me{constructor(){super("a:off");this.root.push(new ZP({x:0,y:0}))}}class JP extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}}class QP extends Me{constructor(t){var e,n;super("a:xfrm");Be(this,"extents"),this.root.push(new JP({flipVertical:(e=t.flip)==null?void 0:e.vertical,flipHorizontal:(n=t.flip)==null?void 0:n.horizontal,rotation:t.rotation})),this.extents=new KP(t.emus.x,t.emus.y),this.root.push(new YP),this.root.push(this.extents)}}const m_=()=>new wn({name:"a:noFill"}),eL=r=>new wn({name:"a:srgbClr",attributes:{value:{key:"val",value:r.value}}}),tL=r=>new wn({name:"a:schemeClr",attributes:{value:{key:"val",value:r.value}}}),g_=r=>new wn({name:"a:solidFill",children:[r.type==="rgb"?eL(r):tL(r)]}),rL=r=>new wn({name:"a:ln",attributes:{width:{key:"w",value:r.width},cap:{key:"cap",value:r.cap},compoundLine:{key:"cmpd",value:r.compoundLine},align:{key:"algn",value:r.align}},children:[r.type==="noFill"?m_():r.solidFillType==="rgb"?g_({type:"rgb",value:r.value}):g_({type:"scheme",value:r.value})]});class nL extends Me{constructor(){super("a:avLst")}}class iL extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{prst:"prst"})}}class aL extends Me{constructor(){super("a:prstGeom");this.root.push(new iL({prst:"rect"})),this.root.push(new nL)}}class oL extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{bwMode:"bwMode"})}}class sL extends Me{constructor({outline:t,transform:e}){super("pic:spPr");Be(this,"form"),this.root.push(new oL({bwMode:"auto"})),this.form=new QP(e),this.root.push(this.form),this.root.push(new aL),t&&(this.root.push(m_()),this.root.push(rL(t)))}}class uL extends Me{constructor({mediaData:t,transform:e,outline:n}){super("pic:pic");this.root.push(new GP({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new qP),this.root.push(new jP(t)),this.root.push(new sL({transform:e,outline:n}))}}class cL extends Me{constructor({mediaData:t,transform:e,outline:n}){super("a:graphicData");Be(this,"pic"),this.root.push(new RP({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new uL({mediaData:t,transform:e,outline:n}),this.root.push(this.pic)}}class lL extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{a:"xmlns:a"})}}class v_ extends Me{constructor({mediaData:t,transform:e,outline:n}){super("a:graphic");Be(this,"data"),this.root.push(new lL({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new cL({mediaData:t,transform:e,outline:n}),this.root.push(this.data)}}const Kh={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3},fL={BOTH_SIDES:"bothSides",LEFT:"left",RIGHT:"right",LARGEST:"largest"};class y_ extends Me{constructor(){super("wp:wrapNone")}}class hL extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"})}}class dL extends Me{constructor(t,e={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare");this.root.push(new hL({wrapText:t.side||fL.BOTH_SIDES,distT:e.top,distB:e.bottom,distL:e.left,distR:e.right}))}}class pL extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class mL extends Me{constructor(t={top:0,bottom:0}){super("wp:wrapTight");this.root.push(new pL({distT:t.top,distB:t.bottom}))}}class gL extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class vL extends Me{constructor(t={top:0,bottom:0}){super("wp:wrapTopAndBottom");this.root.push(new gL({distT:t.top,distB:t.bottom}))}}class b_ extends Me{constructor({name:t,description:e,title:n}={name:"",description:"",title:""}){super("wp:docPr");Be(this,"docPropertiesUniqueNumericId",wP()),this.root.push(new vo({id:{key:"id",value:this.docPropertiesUniqueNumericId()},name:{key:"name",value:t},description:{key:"descr",value:e},title:{key:"title",value:n}}))}prepForXml(t){for(let e=t.stack.length-1;e>=0;e--){const n=t.stack[e];if(n instanceof Bm){this.root.push(p_(n.linkId,!0));break}}return super.prepForXml(t)}}const w_=({top:r,right:t,bottom:e,left:n})=>new wn({name:"wp:effectExtent",attributes:{top:{key:"t",value:r},right:{key:"r",value:t},bottom:{key:"b",value:e},left:{key:"l",value:n}}});class yL extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class x_ extends Me{constructor(t,e){super("wp:extent");Be(this,"attributes"),this.attributes=new yL({cx:t,cy:e}),this.root.push(this.attributes)}}class bL extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}}class wL extends Me{constructor(){super("a:graphicFrameLocks");this.root.push(new bL({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}}class __ extends Me{constructor(){super("wp:cNvGraphicFramePr");this.root.push(new wL)}}class xL extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}}class _L extends Me{constructor({mediaData:t,transform:e,drawingOptions:n}){super("wp:anchor");const i=sr({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},n.floating);if(this.root.push(new xL({distT:i.margins&&i.margins.top||0,distB:i.margins&&i.margins.bottom||0,distL:i.margins&&i.margins.left||0,distR:i.margins&&i.margins.right||0,simplePos:"0",allowOverlap:i.allowOverlap===!0?"1":"0",behindDoc:i.behindDocument===!0?"1":"0",locked:i.lockAnchor===!0?"1":"0",layoutInCell:i.layoutInCell===!0?"1":"0",relativeHeight:i.zIndex?i.zIndex:e.emus.y})),this.root.push(new DP),this.root.push(new OP(i.horizontalPosition)),this.root.push(new kP(i.verticalPosition)),this.root.push(new x_(e.emus.x,e.emus.y)),this.root.push(w_({top:0,right:0,bottom:0,left:0})),n.floating!==void 0&&n.floating.wrap!==void 0)switch(n.floating.wrap.type){case Kh.SQUARE:this.root.push(new dL(n.floating.wrap,n.floating.margins));break;case Kh.TIGHT:this.root.push(new mL(n.floating.margins));break;case Kh.TOP_AND_BOTTOM:this.root.push(new vL(n.floating.margins));break;case Kh.NONE:default:this.root.push(new y_)}else this.root.push(new y_);this.root.push(new b_(n.docProperties)),this.root.push(new __),this.root.push(new v_({mediaData:t,transform:e,outline:n.outline}))}}const EL=({mediaData:r,transform:t,docProperties:e,outline:n})=>{var i,a,o,s;return new wn({name:"wp:inline",attributes:{distanceTop:{key:"distT",value:0},distanceBottom:{key:"distB",value:0},distanceLeft:{key:"distL",value:0},distanceRight:{key:"distR",value:0}},children:[new x_(t.emus.x,t.emus.y),w_(n?{top:((i=n.width)!=null?i:9525)*2,right:((a=n.width)!=null?a:9525)*2,bottom:((o=n.width)!=null?o:9525)*2,left:((s=n.width)!=null?s:9525)*2}:{top:0,right:0,bottom:0,left:0}),new b_(e),new __,new v_({mediaData:r,transform:t,outline:n})]})};class AL extends Me{constructor(t,e={}){super("w:drawing");e.floating?this.root.push(new _L({mediaData:t,transform:t.transformation,drawingOptions:e})):this.root.push(EL({mediaData:t,transform:t.transformation,docProperties:e.docProperties,outline:e.outline}))}}const TL=r=>{if(typeof atob=="function"){const t=";base64,",e=r.indexOf(t),n=e===-1?0:e+t.length;return new Uint8Array(atob(r.substring(n)).split("").map(i=>i.charCodeAt(0)))}else{const t=require("buffer");return new t.Buffer(r,"base64")}},SL=r=>typeof r=="string"?TL(r):r,Fm=(r,t)=>({data:SL(r.data),fileName:t,transformation:{pixels:{x:Math.round(r.transformation.width),y:Math.round(r.transformation.height)},emus:{x:Math.round(r.transformation.width*9525),y:Math.round(r.transformation.height*9525)},flip:r.transformation.flip,rotation:r.transformation.rotation?r.transformation.rotation*6e4:void 0}});class wX extends ol{constructor(t){super({});Be(this,"imageData");const n=`${f_(t.data)}.${t.type}`;this.imageData=t.type==="svg"?es(sr({type:t.type},Fm(t,n)),{fallback:sr({type:t.fallback.type},Fm(es(sr({},t.fallback),{transformation:t.transformation}),`${f_(t.fallback.data)}.${t.fallback.type}`))}):sr({type:t.type},Fm(t,n));const i=new AL(this.imageData,{floating:t.floating,docProperties:t.altText,outline:t.outline});this.root.push(i)}prepForXml(t){return t.file.Media.addImage(this.imageData.fileName,this.imageData),this.imageData.type==="svg"&&t.file.Media.addImage(this.imageData.fallback.fileName,this.imageData.fallback),super.prepForXml(t)}}class DL extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class CL extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}}class OL extends Me{constructor({id:t,initials:e,author:n,date:i=new Date,children:a}){super("w:comment");this.root.push(new DL({id:t,initials:e,author:n,date:i.toISOString()}));for(const o of a)this.root.push(o)}}class IL extends Me{constructor({children:t}){super("w:comments");this.root.push(new CL({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const e of t)this.root.push(new OL(e))}}class xX extends gB{constructor(){super("w:tab")}}class kL extends Me{constructor(){super("w:pageBreakBefore")}}const Nm={AT_LEAST:"atLeast",EXACTLY:"exactly",EXACT:"exact",AUTO:"auto"};class RL extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule",beforeAutoSpacing:"w:beforeAutospacing",afterAutoSpacing:"w:afterAutoSpacing"})}}class FL extends Me{constructor(t){super("w:spacing");this.root.push(new RL(t))}}const _X={HEADING_1:"Heading1",HEADING_2:"Heading2",HEADING_3:"Heading3",HEADING_4:"Heading4",HEADING_5:"Heading5",HEADING_6:"Heading6",TITLE:"Title"};let Zh=class extends Me{constructor(t){super("w:pStyle");this.root.push(new an({val:t}))}};class NL extends Me{constructor(t){super("w:tabs");for(const e of t)this.root.push(new BL(e))}}const E_={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"};class ML extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class BL extends Me{constructor({type:t,position:e,leader:n}){super("w:tab");this.root.push(new ML({val:t,pos:e,leader:n}))}}class Mm extends Me{constructor(t,e){super("w:numPr");this.root.push(new UL(e)),this.root.push(new PL(t))}}class UL extends Me{constructor(t){super("w:ilvl");if(t>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new an({val:t}))}}class PL extends Me{constructor(t){super("w:numId");this.root.push(new an({val:typeof t=="string"?`{${t}}`:t}))}}class A_ extends Me{constructor(){super(...arguments);Be(this,"fileChild",Symbol())}}class LL extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const jL={EXTERNAL:"External"};class WL extends Me{constructor(t,e,n,i){super("Relationship");this.root.push(new LL({id:t,type:e,target:n,targetMode:i}))}}class zL extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class Bm extends Me{constructor(t,e,n){super("w:hyperlink");Be(this,"linkId"),this.linkId=e;const i={history:1,anchor:n||void 0,id:n?void 0:`rId${this.linkId}`},a=new zL(i);this.root.push(a),t.forEach(o=>{this.root.push(o)})}}class HL extends Me{constructor(t){super("w:externalHyperlink");this.options=t}}class $L extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class VL extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{id:"w:id"})}}class qL{constructor(t){Be(this,"bookmarkUniqueNumericId",xP()),Be(this,"start"),Be(this,"children"),Be(this,"end");const e=this.bookmarkUniqueNumericId();this.start=new GL(t.id,e),this.children=t.children,this.end=new XL(e)}}class GL extends Me{constructor(t,e){super("w:bookmarkStart");const n=new $L({name:t,id:e});this.root.push(n)}}class XL extends Me{constructor(t){super("w:bookmarkEnd");const e=new VL({id:t});this.root.push(e)}}class KL extends Me{constructor(t){super("w:outlineLvl");this.level=t,this.root.push(new an({val:t}))}}class ZL extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{verticalAlign:"w:val"})}}class T_ extends Me{constructor(t){super("w:vAlign");this.root.push(new ZL({verticalAlign:t}))}}class YL extends Me{constructor({space:t,count:e,separate:n,equalWidth:i,children:a}){super("w:cols");this.root.push(new vo({space:{key:"w:space",value:t===void 0?void 0:Vn(t)},count:{key:"w:num",value:e===void 0?void 0:ti(e)},separate:{key:"w:sep",value:n},equalWidth:{key:"w:equalWidth",value:i}})),!i&&a&&a.forEach(o=>this.addChildElement(o))}}class JL extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}}class QL extends Me{constructor(t,e,n){super("w:docGrid");this.root.push(new JL({type:n,linePitch:ti(t),charSpace:e?ti(e):void 0}))}}const Hu={DEFAULT:"default",FIRST:"first",EVEN:"even"};class ej extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const S_={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class Um extends Me{constructor(t,e){super(t);this.root.push(new ej({type:e.type||Hu.DEFAULT,id:`rId${e.id}`}))}}const tj=({countBy:r,start:t,restart:e,distance:n})=>new wn({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:r===void 0?void 0:ti(r)},start:{key:"w:start",value:t===void 0?void 0:ti(t)},restart:{key:"w:restart",value:e},distance:{key:"w:distance",value:n===void 0?void 0:Vn(n)}}});class D_ extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class rj extends go{constructor(t){super("w:pgBorders");if(!t)return this;t.pageBorders?this.root.push(new D_({display:t.pageBorders.display,offsetFrom:t.pageBorders.offsetFrom,zOrder:t.pageBorders.zOrder})):this.root.push(new D_({})),t.pageBorderTop&&this.root.push(new Ur("w:top",t.pageBorderTop)),t.pageBorderLeft&&this.root.push(new Ur("w:left",t.pageBorderLeft)),t.pageBorderBottom&&this.root.push(new Ur("w:bottom",t.pageBorderBottom)),t.pageBorderRight&&this.root.push(new Ur("w:right",t.pageBorderRight))}}class nj extends Me{constructor(t,e,n,i,a,o,s){super("w:pgMar");this.root.push(new vo({top:{key:"w:top",value:wo(t)},right:{key:"w:right",value:Vn(e)},bottom:{key:"w:bottom",value:wo(n)},left:{key:"w:left",value:Vn(i)},header:{key:"w:header",value:Vn(a)},footer:{key:"w:footer",value:Vn(o)},gutter:{key:"w:gutter",value:Vn(s)}}))}}class ij extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class aj extends Me{constructor({start:t,formatType:e,separator:n}){super("w:pgNumType");this.root.push(new ij({start:t===void 0?void 0:ti(t),formatType:e,separator:n}))}}const C_={PORTRAIT:"portrait",LANDSCAPE:"landscape"};class oj extends Me{constructor(t,e,n){super("w:pgSz");const i=n===C_.LANDSCAPE,a=Vn(t),o=Vn(e);this.root.push(new vo({width:{key:"w:w",value:i?o:a},height:{key:"w:h",value:i?a:o},orientation:{key:"w:orient",value:n}}))}}class sj extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{val:"w:val"})}}class uj extends Me{constructor(t){super("w:textDirection");this.root.push(new sj({val:t}))}}class cj extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{val:"w:val"})}}class lj extends Me{constructor(t){super("w:type");this.root.push(new cj({val:t}))}}const Ps={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},Pm={WIDTH:11906,HEIGHT:16838,ORIENTATION:C_.PORTRAIT};class fj extends Me{constructor({page:{size:{width:t=Pm.WIDTH,height:e=Pm.HEIGHT,orientation:n=Pm.ORIENTATION}={},margin:{top:i=Ps.TOP,right:a=Ps.RIGHT,bottom:o=Ps.BOTTOM,left:s=Ps.LEFT,header:u=Ps.HEADER,footer:c=Ps.FOOTER,gutter:l=Ps.GUTTER}={},pageNumbers:d={},borders:h,textDirection:f}={},grid:{linePitch:g=360,charSpace:m,type:p}={},headerWrapperGroup:y={},footerWrapperGroup:v={},lineNumbers:b,titlePage:A,verticalAlign:C,column:M,type:z}={}){super("w:sectPr");this.addHeaderFooterGroup(S_.HEADER,y),this.addHeaderFooterGroup(S_.FOOTER,v),z&&this.root.push(new lj(z)),this.root.push(new oj(t,e,n)),this.root.push(new nj(i,a,o,s,u,c,l)),h&&this.root.push(new rj(h)),b&&this.root.push(tj(b)),this.root.push(new aj(d)),M&&this.root.push(new YL(M)),C&&this.root.push(new T_(C)),A!==void 0&&this.root.push(new Qe("w:titlePg",A)),f&&this.root.push(new uj(f)),this.root.push(new QL(g,m,p))}addHeaderFooterGroup(t,e){e.default&&this.root.push(new Um(t,{type:Hu.DEFAULT,id:e.default.View.ReferenceId})),e.first&&this.root.push(new Um(t,{type:Hu.FIRST,id:e.first.View.ReferenceId})),e.even&&this.root.push(new Um(t,{type:Hu.EVEN,id:e.even.View.ReferenceId}))}}class hj extends Me{constructor(){super("w:body");Be(this,"sections",[])}addSection(t){const e=this.sections.pop();this.root.push(this.createSectionParagraph(e)),this.sections.push(new fj(t))}prepForXml(t){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(t)}push(t){this.root.push(t)}createSectionParagraph(t){const e=new hl({}),n=new Vu({});return n.push(t),e.addChildElement(n),e}}class fl extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",aink:"xmlns:aink",am3d:"xmlns:am3d",w16cex:"xmlns:w16cex",w16cid:"xmlns:w16cid",w16:"xmlns:w16",w16sdtdh:"xmlns:w16sdtdh",w16se:"xmlns:w16se"})}}class dj extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class pj extends Me{constructor(t){super("w:background");this.root.push(new dj({color:t.color===void 0?void 0:Nu(t.color),themeColor:t.themeColor,themeShade:t.themeShade===void 0?void 0:Mx(t.themeShade),themeTint:t.themeTint===void 0?void 0:Mx(t.themeTint)}))}}class mj extends Me{constructor(t){super("w:document");Be(this,"body"),this.root.push(new fl({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",Ignorable:"w14 w15 wp14"})),this.body=new hj,t.background&&this.root.push(new pj(t.background)),this.root.push(this.body)}add(t){return this.body.push(t),this}get Body(){return this.body}}class gj extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{xmlns:"xmlns"})}}class $u extends Me{constructor(){super("Relationships");this.root.push(new gj({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(t,e,n,i){const a=new WL(`rId${t}`,e,n,i);return this.root.push(a),a}get RelationshipCount(){return this.root.length-1}}class O_{constructor(t){Be(this,"document"),Be(this,"relationships"),this.document=new mj(t),this.relationships=new $u}get View(){return this.document}get Relationships(){return this.relationships}}class vj extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{val:"w:val"})}}class yj extends Me{constructor(){super("w:wordWrap");this.root.push(new vj({val:0}))}}const bj=r=>{var t,e;return new wn({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:r.anchorLock},dropCap:{key:"w:dropCap",value:r.dropCap},width:{key:"w:w",value:r.width},height:{key:"w:h",value:r.height},x:{key:"w:x",value:r.position?r.position.x:void 0},y:{key:"w:y",value:r.position?r.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:r.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:r.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(t=r.space)==null?void 0:t.horizontal},spaceVertical:{key:"w:vSpace",value:(e=r.space)==null?void 0:e.vertical},rule:{key:"w:hRule",value:r.rule},alignmentX:{key:"w:xAlign",value:r.alignment?r.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:r.alignment?r.alignment.y:void 0},lines:{key:"w:lines",value:r.lines},wrap:{key:"w:wrap",value:r.wrap}}})};class Vu extends go{constructor(t){var e,n;super("w:pPr");if(Be(this,"numberingReferences",[]),!t)return this;t.heading&&this.push(new Zh(t.heading)),t.bullet&&this.push(new Zh("ListParagraph")),t.numbering&&!t.style&&!t.heading&&(t.numbering.custom||this.push(new Zh("ListParagraph"))),t.style&&this.push(new Zh(t.style)),t.keepNext!==void 0&&this.push(new Qe("w:keepNext",t.keepNext)),t.keepLines!==void 0&&this.push(new Qe("w:keepLines",t.keepLines)),t.pageBreakBefore&&this.push(new kL),t.frame&&this.push(bj(t.frame)),t.widowControl!==void 0&&this.push(new Qe("w:widowControl",t.widowControl)),t.bullet&&this.push(new Mm(1,t.bullet.level)),t.numbering?(this.numberingReferences.push({reference:t.numbering.reference,instance:(e=t.numbering.instance)!=null?e:0}),this.push(new Mm(`${t.numbering.reference}-${(n=t.numbering.instance)!=null?n:0}`,t.numbering.level))):t.numbering===!1&&this.push(new Mm(0,0)),t.border&&this.push(new wB(t.border)),t.thematicBreak&&this.push(new xB),t.shading&&this.push(new $h(t.shading)),t.wordWrap&&this.push(new yj),t.overflowPunctuation&&this.push(new Qe("w:overflowPunct",t.overflowPunctuation));const i=[...t.rightTabStop!==void 0?[{type:E_.RIGHT,position:t.rightTabStop}]:[],...t.tabStops?t.tabStops:[],...t.leftTabStop!==void 0?[{type:E_.LEFT,position:t.leftTabStop}]:[]];i.length>0&&this.push(new NL(i)),t.bidirectional!==void 0&&this.push(new Qe("w:bidi",t.bidirectional)),t.spacing&&this.push(new FL(t.spacing)),t.indent&&this.push(new _B(t.indent)),t.contextualSpacing!==void 0&&this.push(new Qe("w:contextualSpacing",t.contextualSpacing)),t.alignment&&this.push(new Ux(t.alignment)),t.outlineLevel!==void 0&&this.push(new KL(t.outlineLevel)),t.suppressLineNumbers!==void 0&&this.push(new Qe("w:suppressLineNumbers",t.suppressLineNumbers)),t.autoSpaceEastAsianText!==void 0&&this.push(new Qe("w:autoSpaceDN",t.autoSpaceEastAsianText)),t.run&&this.push(new Bs(t.run))}push(t){this.root.push(t)}prepForXml(t){if(t.viewWrapper instanceof O_)for(const e of this.numberingReferences)t.file.Numbering.createConcreteNumberingInstance(e.reference,e.instance);return super.prepForXml(t)}}class hl extends A_{constructor(t){super("w:p");if(Be(this,"properties"),typeof t=="string")return this.properties=new Vu({}),this.root.push(this.properties),this.root.push(new Wx(t)),this;if(this.properties=new Vu(t),this.root.push(this.properties),t.text&&this.root.push(new Wx(t.text)),t.children)for(const e of t.children){if(e instanceof qL){this.root.push(e.start);for(const n of e.children)this.root.push(n);this.root.push(e.end);continue}this.root.push(e)}}prepForXml(t){for(const e of this.root)if(e instanceof HL){const n=this.root.indexOf(e),i=new Bm(e.options.children,_P());t.viewWrapper.Relationships.createRelationship(i.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",e.options.link,jL.EXTERNAL),this.root[n]=i}return super.prepForXml(t)}addRunToFront(t){return this.root.splice(1,0,t),this}}class wj extends Me{constructor(t){super("m:t");this.root.push(t)}}class AX extends Me{constructor(t){super("m:r");this.root.push(new wj(t))}}class xj extends Me{constructor(t){super("w:tblGrid");for(const e of t)this.root.push(new _j(e))}}class _j extends Me{constructor(t){super("w:gridCol");t!==void 0&&this.root.push(new vo({width:{key:"w:w",value:Vn(t)}}))}}const I_={TABLE:"w:tblCellMar",TABLE_CELL:"w:tcMar"};class k_ extends go{constructor(t,{marginUnitType:e=Lm.DXA,top:n,left:i,bottom:a,right:o}){super(t);n!==void 0&&this.root.push(new Ls("w:top",{type:e,size:n})),i!==void 0&&this.root.push(new Ls("w:left",{type:e,size:i})),a!==void 0&&this.root.push(new Ls("w:bottom",{type:e,size:a})),o!==void 0&&this.root.push(new Ls("w:right",{type:e,size:o}))}}const Lm={AUTO:"auto",DXA:"dxa",NIL:"nil",PERCENTAGE:"pct"};class Ls extends Me{constructor(t,{type:e=Lm.AUTO,size:n}){super(t);let i=n;e===Lm.PERCENTAGE&&typeof n=="number"&&(i=`${n}%`),this.root.push(new vo({type:{key:"w:type",value:e},size:{key:"w:w",value:hB(i)}}))}}class Ej extends go{constructor(t){super("w:tcBorders");t.top&&this.root.push(new Ur("w:top",t.top)),t.start&&this.root.push(new Ur("w:start",t.start)),t.left&&this.root.push(new Ur("w:left",t.left)),t.bottom&&this.root.push(new Ur("w:bottom",t.bottom)),t.end&&this.root.push(new Ur("w:end",t.end)),t.right&&this.root.push(new Ur("w:right",t.right))}}class Aj extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{val:"w:val"})}}class Tj extends Me{constructor(t){super("w:gridSpan");this.root.push(new Aj({val:ti(t)}))}}const R_={CONTINUE:"continue",RESTART:"restart"};class Sj extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{val:"w:val"})}}class F_ extends Me{constructor(t){super("w:vMerge");this.root.push(new Sj({val:t}))}}class Dj extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{val:"w:val"})}}class Cj extends Me{constructor(t){super("w:textDirection");this.root.push(new Dj({val:t}))}}class Oj extends go{constructor(t){super("w:tcPr");t.width&&this.root.push(new Ls("w:tcW",t.width)),t.columnSpan&&this.root.push(new Tj(t.columnSpan)),t.verticalMerge?this.root.push(new F_(t.verticalMerge)):t.rowSpan&&t.rowSpan>1&&this.root.push(new F_(R_.RESTART)),t.borders&&this.root.push(new Ej(t.borders)),t.shading&&this.root.push(new $h(t.shading)),t.margins&&this.root.push(new k_(I_.TABLE_CELL,t.margins)),t.textDirection&&this.root.push(new Cj(t.textDirection)),t.verticalAlign&&this.root.push(new T_(t.verticalAlign))}}class N_ extends Me{constructor(t){super("w:tc");this.options=t,this.root.push(new Oj(t));for(const e of t.children)this.root.push(e)}prepForXml(t){return this.root[this.root.length-1]instanceof hl||this.root.push(new hl({})),super.prepForXml(t)}}const qu={style:Em.NONE,size:0,color:"auto"},Gu={style:Em.SINGLE,size:4,color:"auto"};class M_ extends Me{constructor(t){super("w:tblBorders");t.top?this.root.push(new Ur("w:top",t.top)):this.root.push(new Ur("w:top",Gu)),t.left?this.root.push(new Ur("w:left",t.left)):this.root.push(new Ur("w:left",Gu)),t.bottom?this.root.push(new Ur("w:bottom",t.bottom)):this.root.push(new Ur("w:bottom",Gu)),t.right?this.root.push(new Ur("w:right",t.right)):this.root.push(new Ur("w:right",Gu)),t.insideHorizontal?this.root.push(new Ur("w:insideH",t.insideHorizontal)):this.root.push(new Ur("w:insideH",Gu)),t.insideVertical?this.root.push(new Ur("w:insideV",t.insideVertical)):this.root.push(new Ur("w:insideV",Gu))}}Be(M_,"NONE",{top:qu,bottom:qu,left:qu,right:qu,insideHorizontal:qu,insideVertical:qu});class Ij extends Me{constructor({horizontalAnchor:t,verticalAnchor:e,absoluteHorizontalPosition:n,relativeHorizontalPosition:i,absoluteVerticalPosition:a,relativeVerticalPosition:o,bottomFromText:s,topFromText:u,leftFromText:c,rightFromText:l,overlap:d}){super("w:tblpPr");this.root.push(new vo({leftFromText:{key:"w:leftFromText",value:c===void 0?void 0:Vn(c)},rightFromText:{key:"w:rightFromText",value:l===void 0?void 0:Vn(l)},topFromText:{key:"w:topFromText",value:u===void 0?void 0:Vn(u)},bottomFromText:{key:"w:bottomFromText",value:s===void 0?void 0:Vn(s)},absoluteHorizontalPosition:{key:"w:tblpX",value:n===void 0?void 0:wo(n)},absoluteVerticalPosition:{key:"w:tblpY",value:a===void 0?void 0:wo(a)},horizontalAnchor:{key:"w:horzAnchor",value:t===void 0?void 0:t},relativeHorizontalPosition:{key:"w:tblpXSpec",value:i},relativeVerticalPosition:{key:"w:tblpYSpec",value:o},verticalAnchor:{key:"w:vertAnchor",value:e}})),d&&this.root.push(new vB("w:tblOverlap",d))}}class kj extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{type:"w:type"})}}class Rj extends Me{constructor(t){super("w:tblLayout");this.root.push(new kj({type:t}))}}class Fj extends go{constructor(t){super("w:tblPr");t.style&&this.root.push(new Ns("w:tblStyle",t.style)),t.float&&this.root.push(new Ij(t.float)),t.visuallyRightToLeft!==void 0&&this.root.push(new Qe("w:bidiVisual",t.visuallyRightToLeft)),t.width&&this.root.push(new Ls("w:tblW",t.width)),t.alignment&&this.root.push(new Ux(t.alignment)),t.indent&&this.root.push(new Ls("w:tblInd",t.indent)),t.borders&&this.root.push(new M_(t.borders)),t.shading&&this.root.push(new $h(t.shading)),t.layout&&this.root.push(new Rj(t.layout)),t.cellMargin&&this.root.push(new k_(I_.TABLE,t.cellMargin))}}class TX extends A_{constructor({rows:t,width:e,columnWidths:n=Array(Math.max(...t.map(h=>h.CellCount))).fill(100),margins:i,indent:a,float:o,layout:s,style:u,borders:c,alignment:l,visuallyRightToLeft:d}){super("w:tbl");this.root.push(new Fj({borders:c!=null?c:{},width:e!=null?e:{size:100},indent:a,float:o,layout:s,style:u,alignment:l,cellMargin:i,visuallyRightToLeft:d})),this.root.push(new xj(n));for(const h of t)this.root.push(h);t.forEach((h,f)=>{if(f===t.length-1)return;let g=0;h.cells.forEach(m=>{if(m.options.rowSpan&&m.options.rowSpan>1){const p=new N_({rowSpan:m.options.rowSpan-1,columnSpan:m.options.columnSpan,borders:m.options.borders,children:[],verticalMerge:R_.CONTINUE});t[f+1].addCellToColumnIndex(p,g)}g+=m.options.columnSpan||1})})}}class Nj extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{value:"w:val",rule:"w:hRule"})}}class Mj extends Me{constructor(t,e){super("w:trHeight");this.root.push(new Nj({value:Vn(t),rule:e}))}}class Bj extends go{constructor(t){super("w:trPr");t.cantSplit!==void 0&&this.root.push(new Qe("w:cantSplit",t.cantSplit)),t.tableHeader!==void 0&&this.root.push(new Qe("w:tblHeader",t.tableHeader)),t.height&&this.root.push(new Mj(t.height.value,t.height.rule))}}class SX extends Me{constructor(t){super("w:tr");this.options=t,this.root.push(new Bj(t));for(const e of t.children)this.root.push(e)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(t=>t instanceof N_)}addCellToIndex(t,e){this.root.splice(e+1,0,t)}addCellToColumnIndex(t,e){const n=this.columnIndexToRootIndex(e,!0);this.addCellToIndex(t,n-1)}rootIndexToColumnIndex(t){if(t<1||t>=this.root.length)throw new Error(`cell 'rootIndex' should between 1 to ${this.root.length-1}`);let e=0;for(let n=1;n<t;n++)e+=this.root[n].options.columnSpan||1;return e}columnIndexToRootIndex(t,e=!1){if(t<0)throw new Error("cell 'columnIndex' should not less than zero");let n=0,i=1;for(;n<=t;){if(i>=this.root.length){if(e)return this.root.length;throw new Error(`cell 'columnIndex' should not great than ${n-1}`)}const a=this.root[i];i+=1,n+=a&&a.options.columnSpan||1}return i-1}}class Uj extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class Pj extends Me{constructor(){super("Properties");this.root.push(new Uj({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class Lj extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{xmlns:"xmlns"})}}class jj extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class Eo extends Me{constructor(t,e){super("Default");this.root.push(new jj({contentType:t,extension:e}))}}class Wj extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class ia extends Me{constructor(t,e){super("Override");this.root.push(new Wj({contentType:t,partName:e}))}}class zj extends Me{constructor(){super("Types");this.root.push(new Lj({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new Eo("image/png","png")),this.root.push(new Eo("image/jpeg","jpeg")),this.root.push(new Eo("image/jpeg","jpg")),this.root.push(new Eo("image/bmp","bmp")),this.root.push(new Eo("image/gif","gif")),this.root.push(new Eo("image/svg+xml","svg")),this.root.push(new Eo("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new Eo("application/xml","xml")),this.root.push(new Eo("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new ia("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new ia("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new ia("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new ia("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new ia("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new ia("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new ia("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new ia("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new ia("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new ia("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(t){this.root.push(new ia("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${t}.xml`))}addHeader(t){this.root.push(new ia("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${t}.xml`))}}class Hj extends Me{constructor(t){super("cp:coreProperties");this.root.push(new fl({cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"})),t.title&&this.root.push(new Ms("dc:title",t.title)),t.subject&&this.root.push(new Ms("dc:subject",t.subject)),t.creator&&this.root.push(new Ms("dc:creator",t.creator)),t.keywords&&this.root.push(new Ms("cp:keywords",t.keywords)),t.description&&this.root.push(new Ms("dc:description",t.description)),t.lastModifiedBy&&this.root.push(new Ms("cp:lastModifiedBy",t.lastModifiedBy)),t.revision&&this.root.push(new Ms("cp:revision",String(t.revision))),this.root.push(new B_("dcterms:created")),this.root.push(new B_("dcterms:modified"))}}class B_ extends Me{constructor(t){super(t);this.root.push(new fl({type:"dcterms:W3CDTF"})),this.root.push(mB(new Date))}}class $j extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class Vj extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class qj extends Me{constructor(t,e){super("property");this.root.push(new Vj({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t.toString(),name:e.name})),this.root.push(new Gj(e.value))}}class Gj extends Me{constructor(t){super("vt:lpwstr");this.root.push(t)}}class Xj extends Me{constructor(t){super("Properties");Be(this,"nextId"),Be(this,"properties",[]),this.root.push(new $j({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const e of t)this.addCustomProperty(e)}prepForXml(t){return this.properties.forEach(e=>this.root.push(e)),super.prepForXml(t)}addCustomProperty(t){this.properties.push(new qj(this.nextId++,t))}}const Yh=({id:r,fontKey:t,subsetted:e},n)=>new wn({name:n,attributes:sr({id:{key:"r:id",value:r}},t?{fontKey:{key:"w:fontKey",value:`{${t}}`}}:{}),children:[...e?[new Qe("w:subsetted",e)]:[]]}),Kj=({name:r,altName:t,panose1:e,charset:n,family:i,notTrueType:a,pitch:o,sig:s,embedRegular:u,embedBold:c,embedItalic:l,embedBoldItalic:d})=>new wn({name:"w:font",attributes:{name:{key:"w:name",value:r}},children:[...t?[al("w:altName",t)]:[],...e?[al("w:panose1",e)]:[],...n?[al("w:charset",n)]:[],...i?[al("w:family",i)]:[],...a?[new Qe("w:notTrueType",a)]:[],...o?[al("w:pitch",o)]:[],...s?[new wn({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:s.usb0},usb1:{key:"w:usb1",value:s.usb1},usb2:{key:"w:usb2",value:s.usb2},usb3:{key:"w:usb3",value:s.usb3},csb0:{key:"w:csb0",value:s.csb0},csb1:{key:"w:csb1",value:s.csb1}}})]:[],...u?[Yh(u,"w:embedRegular")]:[],...c?[Yh(c,"w:embedBold")]:[],...l?[Yh(l,"w:embedItalic")]:[],...d?[Yh(d,"w:embedBoldItalic")]:[]]}),Zj=({name:r,index:t,fontKey:e,characterSet:n})=>Kj({name:r,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:n,family:"auto",pitch:"variable",embedRegular:{fontKey:e,id:`rId${t}`}}),Yj=r=>new wn({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:r.map((t,e)=>Zj({name:t.name,index:e+1,fontKey:t.fontKey}))});class Jj{constructor(t){Be(this,"fontTable"),Be(this,"relationships"),Be(this,"fontOptionsWithKey",[]),this.options=t,this.fontOptionsWithKey=t.map(e=>es(sr({},e),{fontKey:EP()})),this.fontTable=Yj(this.fontOptionsWithKey),this.relationships=new $u;for(let e=0;e<t.length;e++)this.relationships.createRelationship(e+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/${t[e].name}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}}class Qj extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}}let eW=class extends Fx{constructor(t,e){super("w:ftr",e);Be(this,"refId"),this.refId=t,e||this.root.push(new Qj({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(t){this.root.push(t)}};class tW{constructor(t,e,n){Be(this,"footer"),Be(this,"relationships"),this.media=t,this.footer=new eW(e,n),this.relationships=new $u}add(t){this.footer.add(t)}addChildElement(t){this.footer.addChildElement(t)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class rW extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class nW extends Me{constructor(){super("w:footnoteRef")}}class iW extends ol{constructor(){super({style:"FootnoteReference"});this.root.push(new nW)}}const U_={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class jm extends Me{constructor(t){super("w:footnote");this.root.push(new rW({type:t.type,id:t.id}));for(let e=0;e<t.children.length;e++){const n=t.children[e];e===0&&n.addRunToFront(new iW),this.root.push(n)}}}class aW extends Me{constructor(){super("w:continuationSeparator")}}class oW extends ol{constructor(){super({});this.root.push(new aW)}}class sW extends Me{constructor(){super("w:separator")}}class uW extends ol{constructor(){super({});this.root.push(new sW)}}class cW extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class lW extends Me{constructor(){super("w:footnotes");this.root.push(new cW({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const t=new jm({id:-1,type:U_.SEPERATOR,children:[new hl({spacing:{after:0,line:240,lineRule:Nm.AUTO},children:[new uW]})]});this.root.push(t);const e=new jm({id:0,type:U_.CONTINUATION_SEPERATOR,children:[new hl({spacing:{after:0,line:240,lineRule:Nm.AUTO},children:[new oW]})]});this.root.push(e)}createFootNote(t,e){const n=new jm({id:t,children:e});this.root.push(n)}}class fW{constructor(){Be(this,"footnotess"),Be(this,"relationships"),this.footnotess=new lW,this.relationships=new $u}get View(){return this.footnotess}get Relationships(){return this.relationships}}class hW extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}}let dW=class extends Fx{constructor(t,e){super("w:hdr",e);Be(this,"refId"),this.refId=t,e||this.root.push(new hW({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(t){this.root.push(t)}};class pW{constructor(t,e,n){Be(this,"header"),Be(this,"relationships"),this.media=t,this.header=new dW(e,n),this.relationships=new $u}add(t){return this.header.add(t),this}addChildElement(t){this.header.addChildElement(t)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}}class mW{constructor(){Be(this,"map"),this.map=new Map}addImage(t,e){this.map.set(t,e)}get Array(){return Array.from(this.map.values())}}const Ao={DECIMAL:"decimal",UPPER_ROMAN:"upperRoman",LOWER_ROMAN:"lowerRoman",UPPER_LETTER:"upperLetter",LOWER_LETTER:"lowerLetter",ORDINAL:"ordinal",CARDINAL_TEXT:"cardinalText",ORDINAL_TEXT:"ordinalText",HEX:"hex",CHICAGO:"chicago",IDEOGRAPH__DIGITAL:"ideographDigital",JAPANESE_COUNTING:"japaneseCounting",AIUEO:"aiueo",IROHA:"iroha",DECIMAL_FULL_WIDTH:"decimalFullWidth",DECIMAL_HALF_WIDTH:"decimalHalfWidth",JAPANESE_LEGAL:"japaneseLegal",JAPANESE_DIGITAL_TEN_THOUSAND:"japaneseDigitalTenThousand",DECIMAL_ENCLOSED_CIRCLE:"decimalEnclosedCircle",DECIMAL_FULL_WIDTH2:"decimalFullWidth2",AIUEO_FULL_WIDTH:"aiueoFullWidth",IROHA_FULL_WIDTH:"irohaFullWidth",DECIMAL_ZERO:"decimalZero",BULLET:"bullet",GANADA:"ganada",CHOSUNG:"chosung",DECIMAL_ENCLOSED_FULLSTOP:"decimalEnclosedFullstop",DECIMAL_ENCLOSED_PARENTHESES:"decimalEnclosedParen",DECIMAL_ENCLOSED_CIRCLE_CHINESE:"decimalEnclosedCircleChinese",IDEOGRAPH_ENCLOSED_CIRCLE:"ideographEnclosedCircle",IDEOGRAPH_TRADITIONAL:"ideographTraditional",IDEOGRAPH_ZODIAC:"ideographZodiac",IDEOGRAPH_ZODIAC_TRADITIONAL:"ideographZodiacTraditional",TAIWANESE_COUNTING:"taiwaneseCounting",IDEOGRAPH_LEGAL_TRADITIONAL:"ideographLegalTraditional",TAIWANESE_COUNTING_THOUSAND:"taiwaneseCountingThousand",TAIWANESE_DIGITAL:"taiwaneseDigital",CHINESE_COUNTING:"chineseCounting",CHINESE_LEGAL_SIMPLIFIED:"chineseLegalSimplified",CHINESE_COUNTING_THOUSAND:"chineseCountingThousand",KOREAN_DIGITAL:"koreanDigital",KOREAN_COUNTING:"koreanCounting",KOREAN_LEGAL:"koreanLegal",KOREAN_DIGITAL2:"koreanDigital2",VIETNAMESE_COUNTING:"vietnameseCounting",RUSSIAN_LOWER:"russianLower",RUSSIAN_UPPER:"russianUpper",NONE:"none",NUMBER_IN_DASH:"numberInDash",HEBREW1:"hebrew1",HEBREW2:"hebrew2",ARABIC_ALPHA:"arabicAlpha",ARABIC_ABJAD:"arabicAbjad",HINDI_VOWELS:"hindiVowels",HINDI_CONSONANTS:"hindiConsonants",HINDI_NUMBERS:"hindiNumbers",HINDI_COUNTING:"hindiCounting",THAI_LETTERS:"thaiLetters",THAI_NUMBERS:"thaiNumbers",THAI_COUNTING:"thaiCounting",BAHT_TEXT:"bahtText",DOLLAR_TEXT:"dollarText",CUSTOM:"custom"};class gW extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}}class vW extends Me{constructor(t){super("w:numFmt");this.root.push(new an({val:t}))}}class yW extends Me{constructor(t){super("w:lvlText");this.root.push(new an({val:t}))}}class bW extends Me{constructor(t){super("w:lvlJc");this.root.push(new an({val:t}))}}class wW extends Me{constructor(t){super("w:suff");this.root.push(new an({val:t}))}}class xW extends Me{constructor(){super("w:isLgl")}}class _W extends Me{constructor({level:t,format:e,text:n,alignment:i=La.START,start:a=1,style:o,suffix:s,isLegalNumberingStyle:u}){super("w:lvl");if(Be(this,"paragraphProperties"),Be(this,"runProperties"),this.root.push(new _m("w:start",ti(a))),e&&this.root.push(new vW(e)),s&&this.root.push(new wW(s)),u&&this.root.push(new xW),n&&this.root.push(new yW(n)),this.root.push(new bW(i)),this.paragraphProperties=new Vu(o&&o.paragraph),this.runProperties=new Bs(o&&o.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),t>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new gW({ilvl:ti(t),tentative:1}))}}class EW extends _W{}class AW extends Me{constructor(t){super("w:multiLevelType");this.root.push(new an({val:t}))}}class TW extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class P_ extends Me{constructor(t,e){super("w:abstractNum");Be(this,"id"),this.root.push(new TW({abstractNumId:ti(t),restartNumberingAfterBreak:0})),this.root.push(new AW("hybridMultilevel")),this.id=t;for(const n of e)this.root.push(new EW(n))}}class SW extends Me{constructor(t){super("w:abstractNumId");this.root.push(new an({val:t}))}}class DW extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{numId:"w:numId"})}}class L_ extends Me{constructor(t){super("w:num");if(Be(this,"numId"),Be(this,"reference"),Be(this,"instance"),this.numId=t.numId,this.reference=t.reference,this.instance=t.instance,this.root.push(new DW({numId:ti(t.numId)})),this.root.push(new SW(ti(t.abstractNumId))),t.overrideLevels&&t.overrideLevels.length)for(const e of t.overrideLevels)this.root.push(new OW(e.num,e.start))}}class CW extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{ilvl:"w:ilvl"})}}class OW extends Me{constructor(t,e){super("w:lvlOverride");this.root.push(new CW({ilvl:t})),e!==void 0&&this.root.push(new kW(e))}}class IW extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{val:"w:val"})}}class kW extends Me{constructor(t){super("w:startOverride");this.root.push(new IW({val:t}))}}class RW extends Me{constructor(t){super("w:numbering");Be(this,"abstractNumberingMap",new Map),Be(this,"concreteNumberingMap",new Map),Be(this,"referenceConfigMap",new Map),Be(this,"abstractNumUniqueNumericId",yP()),Be(this,"concreteNumUniqueNumericId",bP()),this.root.push(new fl({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const e=new P_(this.abstractNumUniqueNumericId(),[{level:0,format:Ao.BULLET,text:"\u25CF",alignment:La.LEFT,style:{paragraph:{indent:{left:_a(.5),hanging:_a(.25)}}}},{level:1,format:Ao.BULLET,text:"\u25CB",alignment:La.LEFT,style:{paragraph:{indent:{left:_a(1),hanging:_a(.25)}}}},{level:2,format:Ao.BULLET,text:"\u25A0",alignment:La.LEFT,style:{paragraph:{indent:{left:2160,hanging:_a(.25)}}}},{level:3,format:Ao.BULLET,text:"\u25CF",alignment:La.LEFT,style:{paragraph:{indent:{left:2880,hanging:_a(.25)}}}},{level:4,format:Ao.BULLET,text:"\u25CB",alignment:La.LEFT,style:{paragraph:{indent:{left:3600,hanging:_a(.25)}}}},{level:5,format:Ao.BULLET,text:"\u25A0",alignment:La.LEFT,style:{paragraph:{indent:{left:4320,hanging:_a(.25)}}}},{level:6,format:Ao.BULLET,text:"\u25CF",alignment:La.LEFT,style:{paragraph:{indent:{left:5040,hanging:_a(.25)}}}},{level:7,format:Ao.BULLET,text:"\u25CF",alignment:La.LEFT,style:{paragraph:{indent:{left:5760,hanging:_a(.25)}}}},{level:8,format:Ao.BULLET,text:"\u25CF",alignment:La.LEFT,style:{paragraph:{indent:{left:6480,hanging:_a(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new L_({numId:1,abstractNumId:e.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",e);for(const n of t.config)this.abstractNumberingMap.set(n.reference,new P_(this.abstractNumUniqueNumericId(),n.levels)),this.referenceConfigMap.set(n.reference,n.levels)}prepForXml(t){for(const e of this.abstractNumberingMap.values())this.root.push(e);for(const e of this.concreteNumberingMap.values())this.root.push(e);return super.prepForXml(t)}createConcreteNumberingInstance(t,e){const n=this.abstractNumberingMap.get(t);if(!n)return;const i=`${t}-${e}`;if(this.concreteNumberingMap.has(i))return;const a=this.referenceConfigMap.get(t),o=a&&a[0].start,s={numId:this.concreteNumUniqueNumericId(),abstractNumId:n.id,reference:t,instance:e,overrideLevels:[o&&Number.isInteger(o)?{num:0,start:o}:{num:0,start:1}]};this.concreteNumberingMap.set(i,new L_(s))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class FW extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class NW extends Me{constructor(t){super("w:compatSetting");this.root.push(new FW({version:t,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class MW extends Me{constructor(t){super("w:compat");t.version&&this.root.push(new NW(t.version)),t.useSingleBorderforContiguousCells&&this.root.push(new Qe("w:useSingleBorderforContiguousCells",t.useSingleBorderforContiguousCells)),t.wordPerfectJustification&&this.root.push(new Qe("w:wpJustification",t.wordPerfectJustification)),t.noTabStopForHangingIndent&&this.root.push(new Qe("w:noTabHangInd",t.noTabStopForHangingIndent)),t.noLeading&&this.root.push(new Qe("w:noLeading",t.noLeading)),t.spaceForUnderline&&this.root.push(new Qe("w:spaceForUL",t.spaceForUnderline)),t.noColumnBalance&&this.root.push(new Qe("w:noColumnBalance",t.noColumnBalance)),t.balanceSingleByteDoubleByteWidth&&this.root.push(new Qe("w:balanceSingleByteDoubleByteWidth",t.balanceSingleByteDoubleByteWidth)),t.noExtraLineSpacing&&this.root.push(new Qe("w:noExtraLineSpacing",t.noExtraLineSpacing)),t.doNotLeaveBackslashAlone&&this.root.push(new Qe("w:doNotLeaveBackslashAlone",t.doNotLeaveBackslashAlone)),t.underlineTrailingSpaces&&this.root.push(new Qe("w:ulTrailSpace",t.underlineTrailingSpaces)),t.doNotExpandShiftReturn&&this.root.push(new Qe("w:doNotExpandShiftReturn",t.doNotExpandShiftReturn)),t.spacingInWholePoints&&this.root.push(new Qe("w:spacingInWholePoints",t.spacingInWholePoints)),t.lineWrapLikeWord6&&this.root.push(new Qe("w:lineWrapLikeWord6",t.lineWrapLikeWord6)),t.printBodyTextBeforeHeader&&this.root.push(new Qe("w:printBodyTextBeforeHeader",t.printBodyTextBeforeHeader)),t.printColorsBlack&&this.root.push(new Qe("w:printColBlack",t.printColorsBlack)),t.spaceWidth&&this.root.push(new Qe("w:wpSpaceWidth",t.spaceWidth)),t.showBreaksInFrames&&this.root.push(new Qe("w:showBreaksInFrames",t.showBreaksInFrames)),t.subFontBySize&&this.root.push(new Qe("w:subFontBySize",t.subFontBySize)),t.suppressBottomSpacing&&this.root.push(new Qe("w:suppressBottomSpacing",t.suppressBottomSpacing)),t.suppressTopSpacing&&this.root.push(new Qe("w:suppressTopSpacing",t.suppressTopSpacing)),t.suppressSpacingAtTopOfPage&&this.root.push(new Qe("w:suppressSpacingAtTopOfPage",t.suppressSpacingAtTopOfPage)),t.suppressTopSpacingWP&&this.root.push(new Qe("w:suppressTopSpacingWP",t.suppressTopSpacingWP)),t.suppressSpBfAfterPgBrk&&this.root.push(new Qe("w:suppressSpBfAfterPgBrk",t.suppressSpBfAfterPgBrk)),t.swapBordersFacingPages&&this.root.push(new Qe("w:swapBordersFacingPages",t.swapBordersFacingPages)),t.convertMailMergeEsc&&this.root.push(new Qe("w:convMailMergeEsc",t.convertMailMergeEsc)),t.truncateFontHeightsLikeWP6&&this.root.push(new Qe("w:truncateFontHeightsLikeWP6",t.truncateFontHeightsLikeWP6)),t.macWordSmallCaps&&this.root.push(new Qe("w:mwSmallCaps",t.macWordSmallCaps)),t.usePrinterMetrics&&this.root.push(new Qe("w:usePrinterMetrics",t.usePrinterMetrics)),t.doNotSuppressParagraphBorders&&this.root.push(new Qe("w:doNotSuppressParagraphBorders",t.doNotSuppressParagraphBorders)),t.wrapTrailSpaces&&this.root.push(new Qe("w:wrapTrailSpaces",t.wrapTrailSpaces)),t.footnoteLayoutLikeWW8&&this.root.push(new Qe("w:footnoteLayoutLikeWW8",t.footnoteLayoutLikeWW8)),t.shapeLayoutLikeWW8&&this.root.push(new Qe("w:shapeLayoutLikeWW8",t.shapeLayoutLikeWW8)),t.alignTablesRowByRow&&this.root.push(new Qe("w:alignTablesRowByRow",t.alignTablesRowByRow)),t.forgetLastTabAlignment&&this.root.push(new Qe("w:forgetLastTabAlignment",t.forgetLastTabAlignment)),t.adjustLineHeightInTable&&this.root.push(new Qe("w:adjustLineHeightInTable",t.adjustLineHeightInTable)),t.autoSpaceLikeWord95&&this.root.push(new Qe("w:autoSpaceLikeWord95",t.autoSpaceLikeWord95)),t.noSpaceRaiseLower&&this.root.push(new Qe("w:noSpaceRaiseLower",t.noSpaceRaiseLower)),t.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new Qe("w:doNotUseHTMLParagraphAutoSpacing",t.doNotUseHTMLParagraphAutoSpacing)),t.layoutRawTableWidth&&this.root.push(new Qe("w:layoutRawTableWidth",t.layoutRawTableWidth)),t.layoutTableRowsApart&&this.root.push(new Qe("w:layoutTableRowsApart",t.layoutTableRowsApart)),t.useWord97LineBreakRules&&this.root.push(new Qe("w:useWord97LineBreakRules",t.useWord97LineBreakRules)),t.doNotBreakWrappedTables&&this.root.push(new Qe("w:doNotBreakWrappedTables",t.doNotBreakWrappedTables)),t.doNotSnapToGridInCell&&this.root.push(new Qe("w:doNotSnapToGridInCell",t.doNotSnapToGridInCell)),t.selectFieldWithFirstOrLastCharacter&&this.root.push(new Qe("w:selectFldWithFirstOrLastChar",t.selectFieldWithFirstOrLastCharacter)),t.applyBreakingRules&&this.root.push(new Qe("w:applyBreakingRules",t.applyBreakingRules)),t.doNotWrapTextWithPunctuation&&this.root.push(new Qe("w:doNotWrapTextWithPunct",t.doNotWrapTextWithPunctuation)),t.doNotUseEastAsianBreakRules&&this.root.push(new Qe("w:doNotUseEastAsianBreakRules",t.doNotUseEastAsianBreakRules)),t.useWord2002TableStyleRules&&this.root.push(new Qe("w:useWord2002TableStyleRules",t.useWord2002TableStyleRules)),t.growAutofit&&this.root.push(new Qe("w:growAutofit",t.growAutofit)),t.useFELayout&&this.root.push(new Qe("w:useFELayout",t.useFELayout)),t.useNormalStyleForList&&this.root.push(new Qe("w:useNormalStyleForList",t.useNormalStyleForList)),t.doNotUseIndentAsNumberingTabStop&&this.root.push(new Qe("w:doNotUseIndentAsNumberingTabStop",t.doNotUseIndentAsNumberingTabStop)),t.useAlternateEastAsianLineBreakRules&&this.root.push(new Qe("w:useAltKinsokuLineBreakRules",t.useAlternateEastAsianLineBreakRules)),t.allowSpaceOfSameStyleInTable&&this.root.push(new Qe("w:allowSpaceOfSameStyleInTable",t.allowSpaceOfSameStyleInTable)),t.doNotSuppressIndentation&&this.root.push(new Qe("w:doNotSuppressIndentation",t.doNotSuppressIndentation)),t.doNotAutofitConstrainedTables&&this.root.push(new Qe("w:doNotAutofitConstrainedTables",t.doNotAutofitConstrainedTables)),t.autofitToFirstFixedWidthCell&&this.root.push(new Qe("w:autofitToFirstFixedWidthCell",t.autofitToFirstFixedWidthCell)),t.underlineTabInNumberingList&&this.root.push(new Qe("w:underlineTabInNumList",t.underlineTabInNumberingList)),t.displayHangulFixedWidth&&this.root.push(new Qe("w:displayHangulFixedWidth",t.displayHangulFixedWidth)),t.splitPgBreakAndParaMark&&this.root.push(new Qe("w:splitPgBreakAndParaMark",t.splitPgBreakAndParaMark)),t.doNotVerticallyAlignCellWithSp&&this.root.push(new Qe("w:doNotVertAlignCellWithSp",t.doNotVerticallyAlignCellWithSp)),t.doNotBreakConstrainedForcedTable&&this.root.push(new Qe("w:doNotBreakConstrainedForcedTable",t.doNotBreakConstrainedForcedTable)),t.ignoreVerticalAlignmentInTextboxes&&this.root.push(new Qe("w:doNotVertAlignInTxbx",t.ignoreVerticalAlignmentInTextboxes)),t.useAnsiKerningPairs&&this.root.push(new Qe("w:useAnsiKerningPairs",t.useAnsiKerningPairs)),t.cachedColumnBalance&&this.root.push(new Qe("w:cachedColBalance",t.cachedColumnBalance))}}class BW extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class UW extends Me{constructor(t){var e,n,i,a;super("w:settings");this.root.push(new BW({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new Qe("w:displayBackgroundShape",!0)),t.trackRevisions!==void 0&&this.root.push(new Qe("w:trackRevisions",t.trackRevisions)),t.evenAndOddHeaders!==void 0&&this.root.push(new Qe("w:evenAndOddHeaders",t.evenAndOddHeaders)),t.updateFields!==void 0&&this.root.push(new Qe("w:updateFields",t.updateFields)),t.defaultTabStop!==void 0&&this.root.push(new _m("w:defaultTabStop",t.defaultTabStop)),this.root.push(new MW(es(sr({},(e=t.compatibility)!=null?e:{}),{version:(a=(i=(n=t.compatibility)==null?void 0:n.version)!=null?i:t.compatibilityModeVersion)!=null?a:15})))}}class j_ extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{val:"w:val"})}}class PW extends Me{constructor(t){super("w:name");this.root.push(new j_({val:t}))}}class LW extends Me{constructor(t){super("w:uiPriority");this.root.push(new j_({val:ti(t)}))}}class jW extends ht{constructor(){super(...arguments);Be(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class W_ extends Me{constructor(t,e){super("w:style");this.root.push(new jW(t)),e.name&&this.root.push(new PW(e.name)),e.basedOn&&this.root.push(new Ns("w:basedOn",e.basedOn)),e.next&&this.root.push(new Ns("w:next",e.next)),e.link&&this.root.push(new Ns("w:link",e.link)),e.uiPriority!==void 0&&this.root.push(new LW(e.uiPriority)),e.semiHidden!==void 0&&this.root.push(new Qe("w:semiHidden",e.semiHidden)),e.unhideWhenUsed!==void 0&&this.root.push(new Qe("w:unhideWhenUsed",e.unhideWhenUsed)),e.quickFormat!==void 0&&this.root.push(new Qe("w:qFormat",e.quickFormat))}}class Jh extends W_{constructor(t){super({type:"paragraph",styleId:t.id},t);Be(this,"paragraphProperties"),Be(this,"runProperties"),this.paragraphProperties=new Vu(t.paragraph),this.runProperties=new Bs(t.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class Qh extends W_{constructor(t){super({type:"character",styleId:t.id},sr({uiPriority:99,unhideWhenUsed:!0},t));Be(this,"runProperties"),this.runProperties=new Bs(t.run),this.root.push(this.runProperties)}}class ns extends Jh{constructor(t){super(sr({basedOn:"Normal",next:"Normal",quickFormat:!0},t))}}class WW extends ns{constructor(t){super(sr({id:"Title",name:"Title"},t))}}class zW extends ns{constructor(t){super(sr({id:"Heading1",name:"Heading 1"},t))}}class HW extends ns{constructor(t){super(sr({id:"Heading2",name:"Heading 2"},t))}}class $W extends ns{constructor(t){super(sr({id:"Heading3",name:"Heading 3"},t))}}class VW extends ns{constructor(t){super(sr({id:"Heading4",name:"Heading 4"},t))}}class qW extends ns{constructor(t){super(sr({id:"Heading5",name:"Heading 5"},t))}}class GW extends ns{constructor(t){super(sr({id:"Heading6",name:"Heading 6"},t))}}class XW extends ns{constructor(t){super(sr({id:"Strong",name:"Strong"},t))}}class KW extends Jh{constructor(t){super(sr({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},t))}}class ZW extends Jh{constructor(t){super(sr({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:Nm.AUTO}},run:{size:20}},t))}}class YW extends Qh{constructor(t){super(sr({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},t))}}class JW extends Qh{constructor(t){super(sr({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},t))}}class QW extends Qh{constructor(t){super(sr({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:jx.SINGLE}}},t))}}class Wm extends Me{constructor(t){super("w:styles");if(t.initialStyles&&this.root.push(t.initialStyles),t.importedStyles)for(const e of t.importedStyles)this.root.push(e);if(t.paragraphStyles)for(const e of t.paragraphStyles)this.root.push(new Jh(e));if(t.characterStyles)for(const e of t.characterStyles)this.root.push(new Qh(e))}}class ez extends Me{constructor(t){super("w:pPrDefault");this.root.push(new Vu(t))}}class tz extends Me{constructor(t){super("w:rPrDefault");this.root.push(new Bs(t))}}class rz extends Me{constructor(t){super("w:docDefaults");Be(this,"runPropertiesDefaults"),Be(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new tz(t.run),this.paragraphPropertiesDefaults=new ez(t.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class nz{newInstance(t){const e=Rx.xml2js(t,{compact:!1});let n;for(const o of e.elements||[])o.name==="w:styles"&&(n=o);if(n===void 0)throw new Error("can not find styles element");const i=n.elements||[];return new Wm({initialStyles:new cB(n.attributes),importedStyles:i.map(o=>bm(o))})}}class z_{newInstance(t={}){var e;return{initialStyles:new fl({mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",Ignorable:"w14 w15"}),importedStyles:[new rz((e=t.document)!=null?e:{}),new WW(sr({run:{size:56}},t.title)),new zW(sr({run:{color:"2E74B5",size:32}},t.heading1)),new HW(sr({run:{color:"2E74B5",size:26}},t.heading2)),new $W(sr({run:{color:"1F4D78",size:24}},t.heading3)),new VW(sr({run:{color:"2E74B5",italics:!0}},t.heading4)),new qW(sr({run:{color:"2E74B5"}},t.heading5)),new GW(sr({run:{color:"1F4D78"}},t.heading6)),new XW(sr({run:{bold:!0}},t.strong)),new KW(t.listParagraph||{}),new QW(t.hyperlink||{}),new YW(t.footnoteReference||{}),new ZW(t.footnoteText||{}),new JW(t.footnoteTextChar||{})]}}}class OX{constructor(t){Be(this,"currentRelationshipId",1),Be(this,"documentWrapper"),Be(this,"headers",[]),Be(this,"footers",[]),Be(this,"coreProperties"),Be(this,"numbering"),Be(this,"media"),Be(this,"fileRelationships"),Be(this,"footnotesWrapper"),Be(this,"settings"),Be(this,"contentTypes"),Be(this,"customProperties"),Be(this,"appProperties"),Be(this,"styles"),Be(this,"comments"),Be(this,"fontWrapper");var e,n,i,a,o,s,u,c;if(this.coreProperties=new Hj(es(sr({},t),{creator:(e=t.creator)!=null?e:"Un-named",revision:(n=t.revision)!=null?n:1,lastModifiedBy:(i=t.lastModifiedBy)!=null?i:"Un-named"})),this.numbering=new RW(t.numbering?t.numbering:{config:[]}),this.comments=new IL((a=t.comments)!=null?a:{children:[]}),this.fileRelationships=new $u,this.customProperties=new Xj((o=t.customProperties)!=null?o:[]),this.appProperties=new Pj,this.footnotesWrapper=new fW,this.contentTypes=new zj,this.documentWrapper=new O_({background:t.background}),this.settings=new UW({compatibilityModeVersion:t.compatabilityModeVersion,compatibility:t.compatibility,evenAndOddHeaders:!!t.evenAndOddHeaderAndFooters,trackRevisions:(s=t.features)==null?void 0:s.trackRevisions,updateFields:(u=t.features)==null?void 0:u.updateFields,defaultTabStop:t.defaultTabStop}),this.media=new mW,t.externalStyles!==void 0){const l=new nz;this.styles=l.newInstance(t.externalStyles)}else if(t.styles){const d=new z_().newInstance(t.styles.default);this.styles=new Wm(sr(sr({},d),t.styles))}else{const l=new z_;this.styles=new Wm(l.newInstance())}this.addDefaultRelationships();for(const l of t.sections)this.addSection(l);if(t.footnotes)for(const l in t.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(l),t.footnotes[l].children);this.fontWrapper=new Jj((c=t.fonts)!=null?c:[])}addSection({headers:t={},footers:e={},children:n,properties:i}){this.documentWrapper.View.Body.addSection(es(sr({},i),{headerWrapperGroup:{default:t.default?this.createHeader(t.default):void 0,first:t.first?this.createHeader(t.first):void 0,even:t.even?this.createHeader(t.even):void 0},footerWrapperGroup:{default:e.default?this.createFooter(e.default):void 0,first:e.first?this.createFooter(e.first):void 0,even:e.even?this.createFooter(e.even):void 0}}));for(const a of n)this.documentWrapper.View.add(a)}createHeader(t){const e=new pW(this.media,this.currentRelationshipId++);for(const n of t.options.children)e.add(n);return this.addHeaderToDocument(e),e}createFooter(t){const e=new tW(this.media,this.currentRelationshipId++);for(const n of t.options.children)e.add(n);return this.addFooterToDocument(e),e}addHeaderToDocument(t,e=Hu.DEFAULT){this.headers.push({header:t,type:e}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(t,e=Hu.DEFAULT){this.footers.push({footer:t,type:e}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(t=>t.header)}get Footers(){return this.footers.map(t=>t.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}}class IX{constructor(t={children:[]}){Be(this,"options"),this.options=t}}class kX{constructor(t={children:[]}){Be(this,"options"),this.options=t}}function ed(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var H_={exports:{}};(function(r,t){(function(e){r.exports=e()})(function(){return function e(n,i,a){function o(c,l){if(!i[c]){if(!n[c]){var d=typeof ed=="function"&&ed;if(!l&&d)return d(c,!0);if(s)return s(c,!0);var h=new Error("Cannot find module '"+c+"'");throw h.code="MODULE_NOT_FOUND",h}var f=i[c]={exports:{}};n[c][0].call(f.exports,function(g){var m=n[c][1][g];return o(m||g)},f,f.exports,e,n,i,a)}return i[c].exports}for(var s=typeof ed=="function"&&ed,u=0;u<a.length;u++)o(a[u]);return o}({1:[function(e,n,i){var a=e("./utils"),o=e("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(u){for(var c,l,d,h,f,g,m,p=[],y=0,v=u.length,b=v,A=a.getTypeOf(u)!=="string";y<u.length;)b=v-y,d=A?(c=u[y++],l=y<v?u[y++]:0,y<v?u[y++]:0):(c=u.charCodeAt(y++),l=y<v?u.charCodeAt(y++):0,y<v?u.charCodeAt(y++):0),h=c>>2,f=(3&c)<<4|l>>4,g=1<b?(15&l)<<2|d>>6:64,m=2<b?63&d:64,p.push(s.charAt(h)+s.charAt(f)+s.charAt(g)+s.charAt(m));return p.join("")},i.decode=function(u){var c,l,d,h,f,g,m=0,p=0,y="data:";if(u.substr(0,y.length)===y)throw new Error("Invalid base64 input, it looks like a data url.");var v,b=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===s.charAt(64)&&b--,u.charAt(u.length-2)===s.charAt(64)&&b--,b%1!=0)throw new Error("Invalid base64 input, bad content length.");for(v=o.uint8array?new Uint8Array(0|b):new Array(0|b);m<u.length;)c=s.indexOf(u.charAt(m++))<<2|(h=s.indexOf(u.charAt(m++)))>>4,l=(15&h)<<4|(f=s.indexOf(u.charAt(m++)))>>2,d=(3&f)<<6|(g=s.indexOf(u.charAt(m++))),v[p++]=c,f!==64&&(v[p++]=l),g!==64&&(v[p++]=d);return v}},{"./support":30,"./utils":32}],2:[function(e,n,i){var a=e("./external"),o=e("./stream/DataWorker"),s=e("./stream/Crc32Probe"),u=e("./stream/DataLengthProbe");function c(l,d,h,f,g){this.compressedSize=l,this.uncompressedSize=d,this.crc32=h,this.compression=f,this.compressedContent=g}c.prototype={getContentWorker:function(){var l=new o(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),d=this;return l.on("end",function(){if(this.streamInfo.data_length!==d.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new o(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(l,d,h){return l.pipe(new s).pipe(new u("uncompressedSize")).pipe(d.compressWorker(h)).pipe(new u("compressedSize")).withStreamInfo("compression",d)},n.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,n,i){var a=e("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}},i.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,n,i){var a=e("./utils"),o=function(){for(var s,u=[],c=0;c<256;c++){s=c;for(var l=0;l<8;l++)s=1&s?3988292384^s>>>1:s>>>1;u[c]=s}return u}();n.exports=function(s,u){return s!==void 0&&s.length?a.getTypeOf(s)!=="string"?function(c,l,d,h){var f=o,g=h+d;c^=-1;for(var m=h;m<g;m++)c=c>>>8^f[255&(c^l[m])];return-1^c}(0|u,s,s.length,0):function(c,l,d,h){var f=o,g=h+d;c^=-1;for(var m=h;m<g;m++)c=c>>>8^f[255&(c^l.charCodeAt(m))];return-1^c}(0|u,s,s.length,0):0}},{"./utils":32}],5:[function(e,n,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(e,n,i){var a=null;a=typeof Promise!="undefined"?Promise:e("lie"),n.exports={Promise:a}},{lie:37}],7:[function(e,n,i){var a=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",o=e("pako"),s=e("./utils"),u=e("./stream/GenericWorker"),c=a?"uint8array":"array";function l(d,h){u.call(this,"FlateWorker/"+d),this._pako=null,this._pakoAction=d,this._pakoOptions=h,this.meta={}}i.magic="\b\0",s.inherits(l,u),l.prototype.processChunk=function(d){this.meta=d.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(c,d.data),!1)},l.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var d=this;this._pako.onData=function(h){d.push({data:h,meta:d.meta})}},i.compressWorker=function(d){return new l("Deflate",d)},i.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,n,i){function a(f,g){var m,p="";for(m=0;m<g;m++)p+=String.fromCharCode(255&f),f>>>=8;return p}function o(f,g,m,p,y,v){var b,A,C=f.file,M=f.compression,z=v!==c.utf8encode,W=s.transformTo("string",v(C.name)),U=s.transformTo("string",c.utf8encode(C.name)),G=C.comment,ee=s.transformTo("string",v(G)),I=s.transformTo("string",c.utf8encode(G)),O=U.length!==C.name.length,T=I.length!==G.length,S="",x="",w="",_=C.dir,E=C.date,R={crc32:0,compressedSize:0,uncompressedSize:0};g&&!m||(R.crc32=f.crc32,R.compressedSize=f.compressedSize,R.uncompressedSize=f.uncompressedSize);var F=0;g&&(F|=8),z||!O&&!T||(F|=2048);var B=0,X=0;_&&(B|=16),y==="UNIX"?(X=798,B|=function(te,$){var q=te;return te||(q=$?16893:33204),(65535&q)<<16}(C.unixPermissions,_)):(X=20,B|=function(te){return 63&(te||0)}(C.dosPermissions)),b=E.getUTCHours(),b<<=6,b|=E.getUTCMinutes(),b<<=5,b|=E.getUTCSeconds()/2,A=E.getUTCFullYear()-1980,A<<=4,A|=E.getUTCMonth()+1,A<<=5,A|=E.getUTCDate(),O&&(x=a(1,1)+a(l(W),4)+U,S+="up"+a(x.length,2)+x),T&&(w=a(1,1)+a(l(ee),4)+I,S+="uc"+a(w.length,2)+w);var K="";return K+=`
\0`,K+=a(F,2),K+=M.magic,K+=a(b,2),K+=a(A,2),K+=a(R.crc32,4),K+=a(R.compressedSize,4),K+=a(R.uncompressedSize,4),K+=a(W.length,2),K+=a(S.length,2),{fileRecord:d.LOCAL_FILE_HEADER+K+W+S,dirRecord:d.CENTRAL_FILE_HEADER+a(X,2)+K+a(ee.length,2)+"\0\0\0\0"+a(B,4)+a(p,4)+W+S+ee}}var s=e("../utils"),u=e("../stream/GenericWorker"),c=e("../utf8"),l=e("../crc32"),d=e("../signature");function h(f,g,m,p){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,this.zipPlatform=m,this.encodeFileName=p,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(h,u),h.prototype.push=function(f){var g=f.meta.percent||0,m=this.entriesCount,p=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,u.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:m?(g+100*(m-p-1))/m:100}}))},h.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var g=this.streamFiles&&!f.file.dir;if(g){var m=o(f,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:m.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(f){this.accumulate=!1;var g=this.streamFiles&&!f.file.dir,m=o(f,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(m.dirRecord),g)this.push({data:function(p){return d.DATA_DESCRIPTOR+a(p.crc32,4)+a(p.compressedSize,4)+a(p.uncompressedSize,4)}(f),meta:{percent:100}});else for(this.push({data:m.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var f=this.bytesWritten,g=0;g<this.dirRecords.length;g++)this.push({data:this.dirRecords[g],meta:{percent:100}});var m=this.bytesWritten-f,p=function(y,v,b,A,C){var M=s.transformTo("string",C(A));return d.CENTRAL_DIRECTORY_END+"\0\0\0\0"+a(y,2)+a(y,2)+a(v,4)+a(b,4)+a(M.length,2)+M}(this.dirRecords.length,m,f,this.zipComment,this.encodeFileName);this.push({data:p,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.prototype.registerPrevious=function(f){this._sources.push(f);var g=this;return f.on("data",function(m){g.processChunk(m)}),f.on("end",function(){g.closedSource(g.previous.streamInfo),g._sources.length?g.prepareNextSource():g.end()}),f.on("error",function(m){g.error(m)}),this},h.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(f){var g=this._sources;if(!u.prototype.error.call(this,f))return!1;for(var m=0;m<g.length;m++)try{g[m].error(f)}catch{}return!0},h.prototype.lock=function(){u.prototype.lock.call(this);for(var f=this._sources,g=0;g<f.length;g++)f[g].lock()},n.exports=h},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,n,i){var a=e("../compressions"),o=e("./ZipFileWorker");i.generateWorker=function(s,u,c){var l=new o(u.streamFiles,c,u.platform,u.encodeFileName),d=0;try{s.forEach(function(h,f){d++;var g=function(v,b){var A=v||b,C=a[A];if(!C)throw new Error(A+" is not a valid compression method !");return C}(f.options.compression,u.compression),m=f.options.compressionOptions||u.compressionOptions||{},p=f.dir,y=f.date;f._compressWorker(g,m).withStreamInfo("file",{name:h,dir:p,date:y,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(l)}),l.entriesCount=d}catch(h){l.error(h)}return l}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,n,i){function a(){if(!(this instanceof a))return new a;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new a;for(var s in this)typeof this[s]!="function"&&(o[s]=this[s]);return o}}(a.prototype=e("./object")).loadAsync=e("./load"),a.support=e("./support"),a.defaults=e("./defaults"),a.version="3.10.1",a.loadAsync=function(o,s){return new a().loadAsync(o,s)},a.external=e("./external"),n.exports=a},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,n,i){var a=e("./utils"),o=e("./external"),s=e("./utf8"),u=e("./zipEntries"),c=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function d(h){return new o.Promise(function(f,g){var m=h.decompressed.getContentWorker().pipe(new c);m.on("error",function(p){g(p)}).on("end",function(){m.streamInfo.crc32!==h.decompressed.crc32?g(new Error("Corrupted zip : CRC32 mismatch")):f()}).resume()})}n.exports=function(h,f){var g=this;return f=a.extend(f||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),l.isNode&&l.isStream(h)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):a.prepareContent("the loaded zip file",h,!0,f.optimizedBinaryString,f.base64).then(function(m){var p=new u(f);return p.load(m),p}).then(function(m){var p=[o.Promise.resolve(m)],y=m.files;if(f.checkCRC32)for(var v=0;v<y.length;v++)p.push(d(y[v]));return o.Promise.all(p)}).then(function(m){for(var p=m.shift(),y=p.files,v=0;v<y.length;v++){var b=y[v],A=b.fileNameStr,C=a.resolve(b.fileNameStr);g.file(C,b.decompressed,{binary:!0,optimizedBinaryString:!0,date:b.date,dir:b.dir,comment:b.fileCommentStr.length?b.fileCommentStr:null,unixPermissions:b.unixPermissions,dosPermissions:b.dosPermissions,createFolders:f.createFolders}),b.dir||(g.file(C).unsafeOriginalName=A)}return p.zipComment.length&&(g.comment=p.zipComment),g})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,n,i){var a=e("../utils"),o=e("../stream/GenericWorker");function s(u,c){o.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(c)}a.inherits(s,o),s.prototype._bindStream=function(u){var c=this;(this._stream=u).pause(),u.on("data",function(l){c.push({data:l,meta:{percent:0}})}).on("error",function(l){c.isPaused?this.generatedError=l:c.error(l)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},s.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},n.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,n,i){var a=e("readable-stream").Readable;function o(s,u,c){a.call(this,u),this._helper=s;var l=this;s.on("data",function(d,h){l.push(d)||l._helper.pause(),c&&c(h)}).on("error",function(d){l.emit("error",d)}).on("end",function(){l.push(null)})}e("../utils").inherits(o,a),o.prototype._read=function(){this._helper.resume()},n.exports=o},{"../utils":32,"readable-stream":16}],14:[function(e,n,i){n.exports={isNode:typeof Buffer!="undefined",newBufferFrom:function(a,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(a,o);if(typeof a=="number")throw new Error('The "data" argument must not be a number');return new Buffer(a,o)},allocBuffer:function(a){if(Buffer.alloc)return Buffer.alloc(a);var o=new Buffer(a);return o.fill(0),o},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&typeof a.on=="function"&&typeof a.pause=="function"&&typeof a.resume=="function"}}},{}],15:[function(e,n,i){function a(C,M,z){var W,U=s.getTypeOf(M),G=s.extend(z||{},l);G.date=G.date||new Date,G.compression!==null&&(G.compression=G.compression.toUpperCase()),typeof G.unixPermissions=="string"&&(G.unixPermissions=parseInt(G.unixPermissions,8)),G.unixPermissions&&16384&G.unixPermissions&&(G.dir=!0),G.dosPermissions&&16&G.dosPermissions&&(G.dir=!0),G.dir&&(C=y(C)),G.createFolders&&(W=p(C))&&v.call(this,W,!0);var ee=U==="string"&&G.binary===!1&&G.base64===!1;z&&z.binary!==void 0||(G.binary=!ee),(M instanceof d&&M.uncompressedSize===0||G.dir||!M||M.length===0)&&(G.base64=!1,G.binary=!0,M="",G.compression="STORE",U="string");var I=null;I=M instanceof d||M instanceof u?M:g.isNode&&g.isStream(M)?new m(C,M):s.prepareContent(C,M,G.binary,G.optimizedBinaryString,G.base64);var O=new h(C,I,G);this.files[C]=O}var o=e("./utf8"),s=e("./utils"),u=e("./stream/GenericWorker"),c=e("./stream/StreamHelper"),l=e("./defaults"),d=e("./compressedObject"),h=e("./zipObject"),f=e("./generate"),g=e("./nodejsUtils"),m=e("./nodejs/NodejsStreamInputAdapter"),p=function(C){C.slice(-1)==="/"&&(C=C.substring(0,C.length-1));var M=C.lastIndexOf("/");return 0<M?C.substring(0,M):""},y=function(C){return C.slice(-1)!=="/"&&(C+="/"),C},v=function(C,M){return M=M!==void 0?M:l.createFolders,C=y(C),this.files[C]||a.call(this,C,null,{dir:!0,createFolders:M}),this.files[C]};function b(C){return Object.prototype.toString.call(C)==="[object RegExp]"}var A={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(C){var M,z,W;for(M in this.files)W=this.files[M],(z=M.slice(this.root.length,M.length))&&M.slice(0,this.root.length)===this.root&&C(z,W)},filter:function(C){var M=[];return this.forEach(function(z,W){C(z,W)&&M.push(W)}),M},file:function(C,M,z){if(arguments.length!==1)return C=this.root+C,a.call(this,C,M,z),this;if(b(C)){var W=C;return this.filter(function(G,ee){return!ee.dir&&W.test(G)})}var U=this.files[this.root+C];return U&&!U.dir?U:null},folder:function(C){if(!C)return this;if(b(C))return this.filter(function(U,G){return G.dir&&C.test(U)});var M=this.root+C,z=v.call(this,M),W=this.clone();return W.root=z.name,W},remove:function(C){C=this.root+C;var M=this.files[C];if(M||(C.slice(-1)!=="/"&&(C+="/"),M=this.files[C]),M&&!M.dir)delete this.files[C];else for(var z=this.filter(function(U,G){return G.name.slice(0,C.length)===C}),W=0;W<z.length;W++)delete this.files[z[W].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(C){var M,z={};try{if((z=s.extend(C||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=z.type.toLowerCase(),z.compression=z.compression.toUpperCase(),z.type==="binarystring"&&(z.type="string"),!z.type)throw new Error("No output type specified.");s.checkSupport(z.type),z.platform!=="darwin"&&z.platform!=="freebsd"&&z.platform!=="linux"&&z.platform!=="sunos"||(z.platform="UNIX"),z.platform==="win32"&&(z.platform="DOS");var W=z.comment||this.comment||"";M=f.generateWorker(this,z,W)}catch(U){(M=new u("error")).error(U)}return new c(M,z.type||"string",z.mimeType)},generateAsync:function(C,M){return this.generateInternalStream(C).accumulate(M)},generateNodeStream:function(C,M){return(C=C||{}).type||(C.type="nodebuffer"),this.generateInternalStream(C).toNodejsStream(M)}};n.exports=A},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,n,i){n.exports=e("stream")},{stream:void 0}],17:[function(e,n,i){var a=e("./DataReader");function o(s){a.call(this,s);for(var u=0;u<this.data.length;u++)s[u]=255&s[u]}e("../utils").inherits(o,a),o.prototype.byteAt=function(s){return this.data[this.zero+s]},o.prototype.lastIndexOfSignature=function(s){for(var u=s.charCodeAt(0),c=s.charCodeAt(1),l=s.charCodeAt(2),d=s.charCodeAt(3),h=this.length-4;0<=h;--h)if(this.data[h]===u&&this.data[h+1]===c&&this.data[h+2]===l&&this.data[h+3]===d)return h-this.zero;return-1},o.prototype.readAndCheckSignature=function(s){var u=s.charCodeAt(0),c=s.charCodeAt(1),l=s.charCodeAt(2),d=s.charCodeAt(3),h=this.readData(4);return u===h[0]&&c===h[1]&&l===h[2]&&d===h[3]},o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,u},n.exports=o},{"../utils":32,"./DataReader":18}],18:[function(e,n,i){var a=e("../utils");function o(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var u,c=0;for(this.checkOffset(s),u=this.index+s-1;u>=this.index;u--)c=(c<<8)+this.byteAt(u);return this.index+=s,c},readString:function(s){return a.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},n.exports=o},{"../utils":32}],19:[function(e,n,i){var a=e("./Uint8ArrayReader");function o(s){a.call(this,s)}e("../utils").inherits(o,a),o.prototype.readData=function(s){this.checkOffset(s);var u=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,u},n.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,n,i){var a=e("./DataReader");function o(s){a.call(this,s)}e("../utils").inherits(o,a),o.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},o.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},o.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},o.prototype.readData=function(s){this.checkOffset(s);var u=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,u},n.exports=o},{"../utils":32,"./DataReader":18}],21:[function(e,n,i){var a=e("./ArrayReader");function o(s){a.call(this,s)}e("../utils").inherits(o,a),o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,u},n.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(e,n,i){var a=e("../utils"),o=e("../support"),s=e("./ArrayReader"),u=e("./StringReader"),c=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");n.exports=function(d){var h=a.getTypeOf(d);return a.checkSupport(h),h!=="string"||o.uint8array?h==="nodebuffer"?new c(d):o.uint8array?new l(a.transformTo("uint8array",d)):new s(a.transformTo("array",d)):new u(d)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,n,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,n,i){var a=e("./GenericWorker"),o=e("../utils");function s(u){a.call(this,"ConvertWorker to "+u),this.destType=u}o.inherits(s,a),s.prototype.processChunk=function(u){this.push({data:o.transformTo(this.destType,u.data),meta:u.meta})},n.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(e,n,i){var a=e("./GenericWorker"),o=e("../crc32");function s(){a.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(s,a),s.prototype.processChunk=function(u){this.streamInfo.crc32=o(u.data,this.streamInfo.crc32||0),this.push(u)},n.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,n,i){var a=e("../utils"),o=e("./GenericWorker");function s(u){o.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}a.inherits(s,o),s.prototype.processChunk=function(u){if(u){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+u.data.length}o.prototype.processChunk.call(this,u)},n.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(e,n,i){var a=e("../utils"),o=e("./GenericWorker");function s(u){o.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(l){c.dataIsReady=!0,c.data=l,c.max=l&&l.length||0,c.type=a.getTypeOf(l),c.isPaused||c._tickAndRepeat()},function(l){c.error(l)})}a.inherits(s,o),s.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,a.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(a.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,c);break;case"uint8array":u=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":u=this.data.slice(this.index,c)}return this.index=c,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(e,n,i){function a(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}a.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,s){return this._listeners[o].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,s){if(this._listeners[o])for(var u=0;u<this._listeners[o].length;u++)this._listeners[o][u].call(this,s)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var s=this;return o.on("data",function(u){s.processChunk(u)}),o.on("end",function(){s.end()}),o.on("error",function(u){s.error(u)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,s){return this.extraStreamInfo[o]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},n.exports=a},{}],29:[function(e,n,i){var a=e("../utils"),o=e("./ConvertWorker"),s=e("./GenericWorker"),u=e("../base64"),c=e("../support"),l=e("../external"),d=null;if(c.nodestream)try{d=e("../nodejs/NodejsStreamOutputAdapter")}catch{}function h(g,m){return new l.Promise(function(p,y){var v=[],b=g._internalType,A=g._outputType,C=g._mimeType;g.on("data",function(M,z){v.push(M),m&&m(z)}).on("error",function(M){v=[],y(M)}).on("end",function(){try{var M=function(z,W,U){switch(z){case"blob":return a.newBlob(a.transformTo("arraybuffer",W),U);case"base64":return u.encode(W);default:return a.transformTo(z,W)}}(A,function(z,W){var U,G=0,ee=null,I=0;for(U=0;U<W.length;U++)I+=W[U].length;switch(z){case"string":return W.join("");case"array":return Array.prototype.concat.apply([],W);case"uint8array":for(ee=new Uint8Array(I),U=0;U<W.length;U++)ee.set(W[U],G),G+=W[U].length;return ee;case"nodebuffer":return Buffer.concat(W);default:throw new Error("concat : unsupported type '"+z+"'")}}(b,v),C);p(M)}catch(z){y(z)}v=[]}).resume()})}function f(g,m,p){var y=m;switch(m){case"blob":case"arraybuffer":y="uint8array";break;case"base64":y="string"}try{this._internalType=y,this._outputType=m,this._mimeType=p,a.checkSupport(y),this._worker=g.pipe(new o(y)),g.lock()}catch(v){this._worker=new s("error"),this._worker.error(v)}}f.prototype={accumulate:function(g){return h(this,g)},on:function(g,m){var p=this;return g==="data"?this._worker.on(g,function(y){m.call(p,y.data,y.meta)}):this._worker.on(g,function(){a.delay(m,arguments,p)}),this},resume:function(){return a.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(g){if(a.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new d(this,{objectMode:this._outputType!=="nodebuffer"},g)}},n.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,n,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",i.nodebuffer=typeof Buffer!="undefined",i.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")i.blob=!1;else{var a=new ArrayBuffer(0);try{i.blob=new Blob([a],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(a),i.blob=o.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!e("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(e,n,i){for(var a=e("./utils"),o=e("./support"),s=e("./nodejsUtils"),u=e("./stream/GenericWorker"),c=new Array(256),l=0;l<256;l++)c[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;c[254]=c[254]=1;function d(){u.call(this,"utf-8 decode"),this.leftOver=null}function h(){u.call(this,"utf-8 encode")}i.utf8encode=function(f){return o.nodebuffer?s.newBufferFrom(f,"utf-8"):function(g){var m,p,y,v,b,A=g.length,C=0;for(v=0;v<A;v++)(64512&(p=g.charCodeAt(v)))==55296&&v+1<A&&(64512&(y=g.charCodeAt(v+1)))==56320&&(p=65536+(p-55296<<10)+(y-56320),v++),C+=p<128?1:p<2048?2:p<65536?3:4;for(m=o.uint8array?new Uint8Array(C):new Array(C),v=b=0;b<C;v++)(64512&(p=g.charCodeAt(v)))==55296&&v+1<A&&(64512&(y=g.charCodeAt(v+1)))==56320&&(p=65536+(p-55296<<10)+(y-56320),v++),p<128?m[b++]=p:(p<2048?m[b++]=192|p>>>6:(p<65536?m[b++]=224|p>>>12:(m[b++]=240|p>>>18,m[b++]=128|p>>>12&63),m[b++]=128|p>>>6&63),m[b++]=128|63&p);return m}(f)},i.utf8decode=function(f){return o.nodebuffer?a.transformTo("nodebuffer",f).toString("utf-8"):function(g){var m,p,y,v,b=g.length,A=new Array(2*b);for(m=p=0;m<b;)if((y=g[m++])<128)A[p++]=y;else if(4<(v=c[y]))A[p++]=65533,m+=v-1;else{for(y&=v===2?31:v===3?15:7;1<v&&m<b;)y=y<<6|63&g[m++],v--;1<v?A[p++]=65533:y<65536?A[p++]=y:(y-=65536,A[p++]=55296|y>>10&1023,A[p++]=56320|1023&y)}return A.length!==p&&(A.subarray?A=A.subarray(0,p):A.length=p),a.applyFromCharCode(A)}(f=a.transformTo(o.uint8array?"uint8array":"array",f))},a.inherits(d,u),d.prototype.processChunk=function(f){var g=a.transformTo(o.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var m=g;(g=new Uint8Array(m.length+this.leftOver.length)).set(this.leftOver,0),g.set(m,this.leftOver.length)}else g=this.leftOver.concat(g);this.leftOver=null}var p=function(v,b){var A;for((b=b||v.length)>v.length&&(b=v.length),A=b-1;0<=A&&(192&v[A])==128;)A--;return A<0||A===0?b:A+c[v[A]]>b?A:b}(g),y=g;p!==g.length&&(o.uint8array?(y=g.subarray(0,p),this.leftOver=g.subarray(p,g.length)):(y=g.slice(0,p),this.leftOver=g.slice(p,g.length))),this.push({data:i.utf8decode(y),meta:f.meta})},d.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=d,a.inherits(h,u),h.prototype.processChunk=function(f){this.push({data:i.utf8encode(f.data),meta:f.meta})},i.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,n,i){var a=e("./support"),o=e("./base64"),s=e("./nodejsUtils"),u=e("./external");function c(m){return m}function l(m,p){for(var y=0;y<m.length;++y)p[y]=255&m.charCodeAt(y);return p}e("setimmediate"),i.newBlob=function(m,p){i.checkSupport("blob");try{return new Blob([m],{type:p})}catch{try{var y=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return y.append(m),y.getBlob(p)}catch{throw new Error("Bug : can't construct the Blob.")}}};var d={stringifyByChunk:function(m,p,y){var v=[],b=0,A=m.length;if(A<=y)return String.fromCharCode.apply(null,m);for(;b<A;)p==="array"||p==="nodebuffer"?v.push(String.fromCharCode.apply(null,m.slice(b,Math.min(b+y,A)))):v.push(String.fromCharCode.apply(null,m.subarray(b,Math.min(b+y,A)))),b+=y;return v.join("")},stringifyByChar:function(m){for(var p="",y=0;y<m.length;y++)p+=String.fromCharCode(m[y]);return p},applyCanBeUsed:{uint8array:function(){try{return a.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return a.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}}()}};function h(m){var p=65536,y=i.getTypeOf(m),v=!0;if(y==="uint8array"?v=d.applyCanBeUsed.uint8array:y==="nodebuffer"&&(v=d.applyCanBeUsed.nodebuffer),v)for(;1<p;)try{return d.stringifyByChunk(m,y,p)}catch{p=Math.floor(p/2)}return d.stringifyByChar(m)}function f(m,p){for(var y=0;y<m.length;y++)p[y]=m[y];return p}i.applyFromCharCode=h;var g={};g.string={string:c,array:function(m){return l(m,new Array(m.length))},arraybuffer:function(m){return g.string.uint8array(m).buffer},uint8array:function(m){return l(m,new Uint8Array(m.length))},nodebuffer:function(m){return l(m,s.allocBuffer(m.length))}},g.array={string:h,array:c,arraybuffer:function(m){return new Uint8Array(m).buffer},uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return s.newBufferFrom(m)}},g.arraybuffer={string:function(m){return h(new Uint8Array(m))},array:function(m){return f(new Uint8Array(m),new Array(m.byteLength))},arraybuffer:c,uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return s.newBufferFrom(new Uint8Array(m))}},g.uint8array={string:h,array:function(m){return f(m,new Array(m.length))},arraybuffer:function(m){return m.buffer},uint8array:c,nodebuffer:function(m){return s.newBufferFrom(m)}},g.nodebuffer={string:h,array:function(m){return f(m,new Array(m.length))},arraybuffer:function(m){return g.nodebuffer.uint8array(m).buffer},uint8array:function(m){return f(m,new Uint8Array(m.length))},nodebuffer:c},i.transformTo=function(m,p){if(p=p||"",!m)return p;i.checkSupport(m);var y=i.getTypeOf(p);return g[y][m](p)},i.resolve=function(m){for(var p=m.split("/"),y=[],v=0;v<p.length;v++){var b=p[v];b==="."||b===""&&v!==0&&v!==p.length-1||(b===".."?y.pop():y.push(b))}return y.join("/")},i.getTypeOf=function(m){return typeof m=="string"?"string":Object.prototype.toString.call(m)==="[object Array]"?"array":a.nodebuffer&&s.isBuffer(m)?"nodebuffer":a.uint8array&&m instanceof Uint8Array?"uint8array":a.arraybuffer&&m instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(m){if(!a[m.toLowerCase()])throw new Error(m+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(m){var p,y,v="";for(y=0;y<(m||"").length;y++)v+="\\x"+((p=m.charCodeAt(y))<16?"0":"")+p.toString(16).toUpperCase();return v},i.delay=function(m,p,y){setImmediate(function(){m.apply(y||null,p||[])})},i.inherits=function(m,p){function y(){}y.prototype=p.prototype,m.prototype=new y},i.extend=function(){var m,p,y={};for(m=0;m<arguments.length;m++)for(p in arguments[m])Object.prototype.hasOwnProperty.call(arguments[m],p)&&y[p]===void 0&&(y[p]=arguments[m][p]);return y},i.prepareContent=function(m,p,y,v,b){return u.Promise.resolve(p).then(function(A){return a.blob&&(A instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(A))!==-1)&&typeof FileReader!="undefined"?new u.Promise(function(C,M){var z=new FileReader;z.onload=function(W){C(W.target.result)},z.onerror=function(W){M(W.target.error)},z.readAsArrayBuffer(A)}):A}).then(function(A){var C=i.getTypeOf(A);return C?(C==="arraybuffer"?A=i.transformTo("uint8array",A):C==="string"&&(b?A=o.decode(A):y&&v!==!0&&(A=function(M){return l(M,a.uint8array?new Uint8Array(M.length):new Array(M.length))}(A))),A):u.Promise.reject(new Error("Can't read the data of '"+m+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,n,i){var a=e("./reader/readerFor"),o=e("./utils"),s=e("./signature"),u=e("./zipEntry"),c=e("./support");function l(d){this.files=[],this.loadOptions=d}l.prototype={checkSignature:function(d){if(!this.reader.readAndCheckSignature(d)){this.reader.index-=4;var h=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(h)+", expected "+o.pretty(d)+")")}},isSignature:function(d,h){var f=this.reader.index;this.reader.setIndex(d);var g=this.reader.readString(4)===h;return this.reader.setIndex(f),g},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var d=this.reader.readData(this.zipCommentLength),h=c.uint8array?"uint8array":"array",f=o.transformTo(h,d);this.zipComment=this.loadOptions.decodeFileName(f)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var d,h,f,g=this.zip64EndOfCentralSize-44;0<g;)d=this.reader.readInt(2),h=this.reader.readInt(4),f=this.reader.readData(h),this.zip64ExtensibleData[d]={id:d,length:h,value:f}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var d,h;for(d=0;d<this.files.length;d++)h=this.files[d],this.reader.setIndex(h.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),h.readLocalPart(this.reader),h.handleUTF8(),h.processAttributes()},readCentralDir:function(){var d;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(d=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(d);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var d=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(d<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(d);var h=d;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(d=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(d),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var f=this.centralDirOffset+this.centralDirSize;this.zip64&&(f+=20,f+=12+this.zip64EndOfCentralSize);var g=h-f;if(0<g)this.isSignature(h,s.CENTRAL_FILE_HEADER)||(this.reader.zero=g);else if(g<0)throw new Error("Corrupted zip: missing "+Math.abs(g)+" bytes.")},prepareReader:function(d){this.reader=a(d)},load:function(d){this.prepareReader(d),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},n.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,n,i){var a=e("./reader/readerFor"),o=e("./utils"),s=e("./compressedObject"),u=e("./crc32"),c=e("./utf8"),l=e("./compressions"),d=e("./support");function h(f,g){this.options=f,this.loadOptions=g}h.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(f){var g,m;if(f.skip(22),this.fileNameLength=f.readInt(2),m=f.readInt(2),this.fileName=f.readData(this.fileNameLength),f.skip(m),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((g=function(p){for(var y in l)if(Object.prototype.hasOwnProperty.call(l,y)&&l[y].magic===p)return l[y];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,g,f.readData(this.compressedSize))},readCentralPart:function(f){this.versionMadeBy=f.readInt(2),f.skip(2),this.bitFlag=f.readInt(2),this.compressionMethod=f.readString(2),this.date=f.readDate(),this.crc32=f.readInt(4),this.compressedSize=f.readInt(4),this.uncompressedSize=f.readInt(4);var g=f.readInt(2);if(this.extraFieldsLength=f.readInt(2),this.fileCommentLength=f.readInt(2),this.diskNumberStart=f.readInt(2),this.internalFileAttributes=f.readInt(2),this.externalFileAttributes=f.readInt(4),this.localHeaderOffset=f.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");f.skip(g),this.readExtraFields(f),this.parseZIP64ExtraField(f),this.fileComment=f.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var f=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=a(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var g,m,p,y=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<y;)g=f.readInt(2),m=f.readInt(2),p=f.readData(m),this.extraFields[g]={id:g,length:m,value:p};f.setIndex(y)},handleUTF8:function(){var f=d.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var g=this.findExtraFieldUnicodePath();if(g!==null)this.fileNameStr=g;else{var m=o.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(m)}var p=this.findExtraFieldUnicodeComment();if(p!==null)this.fileCommentStr=p;else{var y=o.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(y)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var g=a(f.value);return g.readInt(1)!==1||u(this.fileName)!==g.readInt(4)?null:c.utf8decode(g.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var g=a(f.value);return g.readInt(1)!==1||u(this.fileComment)!==g.readInt(4)?null:c.utf8decode(g.readData(f.length-5))}return null}},n.exports=h},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,n,i){function a(g,m,p){this.name=g,this.dir=p.dir,this.date=p.date,this.comment=p.comment,this.unixPermissions=p.unixPermissions,this.dosPermissions=p.dosPermissions,this._data=m,this._dataBinary=p.binary,this.options={compression:p.compression,compressionOptions:p.compressionOptions}}var o=e("./stream/StreamHelper"),s=e("./stream/DataWorker"),u=e("./utf8"),c=e("./compressedObject"),l=e("./stream/GenericWorker");a.prototype={internalStream:function(g){var m=null,p="string";try{if(!g)throw new Error("No output type specified.");var y=(p=g.toLowerCase())==="string"||p==="text";p!=="binarystring"&&p!=="text"||(p="string"),m=this._decompressWorker();var v=!this._dataBinary;v&&!y&&(m=m.pipe(new u.Utf8EncodeWorker)),!v&&y&&(m=m.pipe(new u.Utf8DecodeWorker))}catch(b){(m=new l("error")).error(b)}return new o(m,p,"")},async:function(g,m){return this.internalStream(g).accumulate(m)},nodeStream:function(g,m){return this.internalStream(g||"nodebuffer").toNodejsStream(m)},_compressWorker:function(g,m){if(this._data instanceof c&&this._data.compression.magic===g.magic)return this._data.getCompressedWorker();var p=this._decompressWorker();return this._dataBinary||(p=p.pipe(new u.Utf8EncodeWorker)),c.createWorkerFrom(p,g,m)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof l?this._data:new s(this._data)}};for(var d=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<d.length;f++)a.prototype[d[f]]=h;n.exports=a},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,n,i){(function(a){var o,s,u=a.MutationObserver||a.WebKitMutationObserver;if(u){var c=0,l=new u(g),d=a.document.createTextNode("");l.observe(d,{characterData:!0}),o=function(){d.data=c=++c%2}}else if(a.setImmediate||a.MessageChannel===void 0)o="document"in a&&"onreadystatechange"in a.document.createElement("script")?function(){var m=a.document.createElement("script");m.onreadystatechange=function(){g(),m.onreadystatechange=null,m.parentNode.removeChild(m),m=null},a.document.documentElement.appendChild(m)}:function(){setTimeout(g,0)};else{var h=new a.MessageChannel;h.port1.onmessage=g,o=function(){h.port2.postMessage(0)}}var f=[];function g(){var m,p;s=!0;for(var y=f.length;y;){for(p=f,f=[],m=-1;++m<y;)p[m]();y=f.length}s=!1}n.exports=function(m){f.push(m)!==1||s||o()}}).call(this,typeof Ma!="undefined"?Ma:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(e,n,i){var a=e("immediate");function o(){}var s={},u=["REJECTED"],c=["FULFILLED"],l=["PENDING"];function d(y){if(typeof y!="function")throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,y!==o&&m(this,y)}function h(y,v,b){this.promise=y,typeof v=="function"&&(this.onFulfilled=v,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}function f(y,v,b){a(function(){var A;try{A=v(b)}catch(C){return s.reject(y,C)}A===y?s.reject(y,new TypeError("Cannot resolve promise with itself")):s.resolve(y,A)})}function g(y){var v=y&&y.then;if(y&&(typeof y=="object"||typeof y=="function")&&typeof v=="function")return function(){v.apply(y,arguments)}}function m(y,v){var b=!1;function A(z){b||(b=!0,s.reject(y,z))}function C(z){b||(b=!0,s.resolve(y,z))}var M=p(function(){v(C,A)});M.status==="error"&&A(M.value)}function p(y,v){var b={};try{b.value=y(v),b.status="success"}catch(A){b.status="error",b.value=A}return b}(n.exports=d).prototype.finally=function(y){if(typeof y!="function")return this;var v=this.constructor;return this.then(function(b){return v.resolve(y()).then(function(){return b})},function(b){return v.resolve(y()).then(function(){throw b})})},d.prototype.catch=function(y){return this.then(null,y)},d.prototype.then=function(y,v){if(typeof y!="function"&&this.state===c||typeof v!="function"&&this.state===u)return this;var b=new this.constructor(o);return this.state!==l?f(b,this.state===c?y:v,this.outcome):this.queue.push(new h(b,y,v)),b},h.prototype.callFulfilled=function(y){s.resolve(this.promise,y)},h.prototype.otherCallFulfilled=function(y){f(this.promise,this.onFulfilled,y)},h.prototype.callRejected=function(y){s.reject(this.promise,y)},h.prototype.otherCallRejected=function(y){f(this.promise,this.onRejected,y)},s.resolve=function(y,v){var b=p(g,v);if(b.status==="error")return s.reject(y,b.value);var A=b.value;if(A)m(y,A);else{y.state=c,y.outcome=v;for(var C=-1,M=y.queue.length;++C<M;)y.queue[C].callFulfilled(v)}return y},s.reject=function(y,v){y.state=u,y.outcome=v;for(var b=-1,A=y.queue.length;++b<A;)y.queue[b].callRejected(v);return y},d.resolve=function(y){return y instanceof this?y:s.resolve(new this(o),y)},d.reject=function(y){var v=new this(o);return s.reject(v,y)},d.all=function(y){var v=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=y.length,A=!1;if(!b)return this.resolve([]);for(var C=new Array(b),M=0,z=-1,W=new this(o);++z<b;)U(y[z],z);return W;function U(G,ee){v.resolve(G).then(function(I){C[ee]=I,++M!==b||A||(A=!0,s.resolve(W,C))},function(I){A||(A=!0,s.reject(W,I))})}},d.race=function(y){var v=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=y.length,A=!1;if(!b)return this.resolve([]);for(var C=-1,M=new this(o);++C<b;)z=y[C],v.resolve(z).then(function(W){A||(A=!0,s.resolve(M,W))},function(W){A||(A=!0,s.reject(M,W))});var z;return M}},{immediate:36}],38:[function(e,n,i){var a={};(0,e("./lib/utils/common").assign)(a,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),n.exports=a},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,n,i){var a=e("./zlib/deflate"),o=e("./utils/common"),s=e("./utils/strings"),u=e("./zlib/messages"),c=e("./zlib/zstream"),l=Object.prototype.toString,d=0,h=-1,f=0,g=8;function m(y){if(!(this instanceof m))return new m(y);this.options=o.assign({level:h,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},y||{});var v=this.options;v.raw&&0<v.windowBits?v.windowBits=-v.windowBits:v.gzip&&0<v.windowBits&&v.windowBits<16&&(v.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var b=a.deflateInit2(this.strm,v.level,v.method,v.windowBits,v.memLevel,v.strategy);if(b!==d)throw new Error(u[b]);if(v.header&&a.deflateSetHeader(this.strm,v.header),v.dictionary){var A;if(A=typeof v.dictionary=="string"?s.string2buf(v.dictionary):l.call(v.dictionary)==="[object ArrayBuffer]"?new Uint8Array(v.dictionary):v.dictionary,(b=a.deflateSetDictionary(this.strm,A))!==d)throw new Error(u[b]);this._dict_set=!0}}function p(y,v){var b=new m(v);if(b.push(y,!0),b.err)throw b.msg||u[b.err];return b.result}m.prototype.push=function(y,v){var b,A,C=this.strm,M=this.options.chunkSize;if(this.ended)return!1;A=v===~~v?v:v===!0?4:0,typeof y=="string"?C.input=s.string2buf(y):l.call(y)==="[object ArrayBuffer]"?C.input=new Uint8Array(y):C.input=y,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new o.Buf8(M),C.next_out=0,C.avail_out=M),(b=a.deflate(C,A))!==1&&b!==d)return this.onEnd(b),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||A!==4&&A!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(o.shrinkBuf(C.output,C.next_out))):this.onData(o.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&b!==1);return A===4?(b=a.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===d):A!==2||(this.onEnd(d),!(C.avail_out=0))},m.prototype.onData=function(y){this.chunks.push(y)},m.prototype.onEnd=function(y){y===d&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},i.Deflate=m,i.deflate=p,i.deflateRaw=function(y,v){return(v=v||{}).raw=!0,p(y,v)},i.gzip=function(y,v){return(v=v||{}).gzip=!0,p(y,v)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,n,i){var a=e("./zlib/inflate"),o=e("./utils/common"),s=e("./utils/strings"),u=e("./zlib/constants"),c=e("./zlib/messages"),l=e("./zlib/zstream"),d=e("./zlib/gzheader"),h=Object.prototype.toString;function f(m){if(!(this instanceof f))return new f(m);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},m||{});var p=this.options;p.raw&&0<=p.windowBits&&p.windowBits<16&&(p.windowBits=-p.windowBits,p.windowBits===0&&(p.windowBits=-15)),!(0<=p.windowBits&&p.windowBits<16)||m&&m.windowBits||(p.windowBits+=32),15<p.windowBits&&p.windowBits<48&&(15&p.windowBits)==0&&(p.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var y=a.inflateInit2(this.strm,p.windowBits);if(y!==u.Z_OK)throw new Error(c[y]);this.header=new d,a.inflateGetHeader(this.strm,this.header)}function g(m,p){var y=new f(p);if(y.push(m,!0),y.err)throw y.msg||c[y.err];return y.result}f.prototype.push=function(m,p){var y,v,b,A,C,M,z=this.strm,W=this.options.chunkSize,U=this.options.dictionary,G=!1;if(this.ended)return!1;v=p===~~p?p:p===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof m=="string"?z.input=s.binstring2buf(m):h.call(m)==="[object ArrayBuffer]"?z.input=new Uint8Array(m):z.input=m,z.next_in=0,z.avail_in=z.input.length;do{if(z.avail_out===0&&(z.output=new o.Buf8(W),z.next_out=0,z.avail_out=W),(y=a.inflate(z,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&U&&(M=typeof U=="string"?s.string2buf(U):h.call(U)==="[object ArrayBuffer]"?new Uint8Array(U):U,y=a.inflateSetDictionary(this.strm,M)),y===u.Z_BUF_ERROR&&G===!0&&(y=u.Z_OK,G=!1),y!==u.Z_STREAM_END&&y!==u.Z_OK)return this.onEnd(y),!(this.ended=!0);z.next_out&&(z.avail_out!==0&&y!==u.Z_STREAM_END&&(z.avail_in!==0||v!==u.Z_FINISH&&v!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(b=s.utf8border(z.output,z.next_out),A=z.next_out-b,C=s.buf2string(z.output,b),z.next_out=A,z.avail_out=W-A,A&&o.arraySet(z.output,z.output,b,A,0),this.onData(C)):this.onData(o.shrinkBuf(z.output,z.next_out)))),z.avail_in===0&&z.avail_out===0&&(G=!0)}while((0<z.avail_in||z.avail_out===0)&&y!==u.Z_STREAM_END);return y===u.Z_STREAM_END&&(v=u.Z_FINISH),v===u.Z_FINISH?(y=a.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===u.Z_OK):v!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(z.avail_out=0))},f.prototype.onData=function(m){this.chunks.push(m)},f.prototype.onEnd=function(m){m===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},i.Inflate=f,i.inflate=g,i.inflateRaw=function(m,p){return(p=p||{}).raw=!0,g(m,p)},i.ungzip=g},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,n,i){var a=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";i.assign=function(u){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var l=c.shift();if(l){if(typeof l!="object")throw new TypeError(l+"must be non-object");for(var d in l)l.hasOwnProperty(d)&&(u[d]=l[d])}}return u},i.shrinkBuf=function(u,c){return u.length===c?u:u.subarray?u.subarray(0,c):(u.length=c,u)};var o={arraySet:function(u,c,l,d,h){if(c.subarray&&u.subarray)u.set(c.subarray(l,l+d),h);else for(var f=0;f<d;f++)u[h+f]=c[l+f]},flattenChunks:function(u){var c,l,d,h,f,g;for(c=d=0,l=u.length;c<l;c++)d+=u[c].length;for(g=new Uint8Array(d),c=h=0,l=u.length;c<l;c++)f=u[c],g.set(f,h),h+=f.length;return g}},s={arraySet:function(u,c,l,d,h){for(var f=0;f<d;f++)u[h+f]=c[l+f]},flattenChunks:function(u){return[].concat.apply([],u)}};i.setTyped=function(u){u?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,o)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,s))},i.setTyped(a)},{}],42:[function(e,n,i){var a=e("./common"),o=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var u=new a.Buf8(256),c=0;c<256;c++)u[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function l(d,h){if(h<65537&&(d.subarray&&s||!d.subarray&&o))return String.fromCharCode.apply(null,a.shrinkBuf(d,h));for(var f="",g=0;g<h;g++)f+=String.fromCharCode(d[g]);return f}u[254]=u[254]=1,i.string2buf=function(d){var h,f,g,m,p,y=d.length,v=0;for(m=0;m<y;m++)(64512&(f=d.charCodeAt(m)))==55296&&m+1<y&&(64512&(g=d.charCodeAt(m+1)))==56320&&(f=65536+(f-55296<<10)+(g-56320),m++),v+=f<128?1:f<2048?2:f<65536?3:4;for(h=new a.Buf8(v),m=p=0;p<v;m++)(64512&(f=d.charCodeAt(m)))==55296&&m+1<y&&(64512&(g=d.charCodeAt(m+1)))==56320&&(f=65536+(f-55296<<10)+(g-56320),m++),f<128?h[p++]=f:(f<2048?h[p++]=192|f>>>6:(f<65536?h[p++]=224|f>>>12:(h[p++]=240|f>>>18,h[p++]=128|f>>>12&63),h[p++]=128|f>>>6&63),h[p++]=128|63&f);return h},i.buf2binstring=function(d){return l(d,d.length)},i.binstring2buf=function(d){for(var h=new a.Buf8(d.length),f=0,g=h.length;f<g;f++)h[f]=d.charCodeAt(f);return h},i.buf2string=function(d,h){var f,g,m,p,y=h||d.length,v=new Array(2*y);for(f=g=0;f<y;)if((m=d[f++])<128)v[g++]=m;else if(4<(p=u[m]))v[g++]=65533,f+=p-1;else{for(m&=p===2?31:p===3?15:7;1<p&&f<y;)m=m<<6|63&d[f++],p--;1<p?v[g++]=65533:m<65536?v[g++]=m:(m-=65536,v[g++]=55296|m>>10&1023,v[g++]=56320|1023&m)}return l(v,g)},i.utf8border=function(d,h){var f;for((h=h||d.length)>d.length&&(h=d.length),f=h-1;0<=f&&(192&d[f])==128;)f--;return f<0||f===0?h:f+u[d[f]]>h?f:h}},{"./common":41}],43:[function(e,n,i){n.exports=function(a,o,s,u){for(var c=65535&a|0,l=a>>>16&65535|0,d=0;s!==0;){for(s-=d=2e3<s?2e3:s;l=l+(c=c+o[u++]|0)|0,--d;);c%=65521,l%=65521}return c|l<<16|0}},{}],44:[function(e,n,i){n.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,n,i){var a=function(){for(var o,s=[],u=0;u<256;u++){o=u;for(var c=0;c<8;c++)o=1&o?3988292384^o>>>1:o>>>1;s[u]=o}return s}();n.exports=function(o,s,u,c){var l=a,d=c+u;o^=-1;for(var h=c;h<d;h++)o=o>>>8^l[255&(o^s[h])];return-1^o}},{}],46:[function(e,n,i){var a,o=e("../utils/common"),s=e("./trees"),u=e("./adler32"),c=e("./crc32"),l=e("./messages"),d=0,h=4,f=0,g=-2,m=-1,p=4,y=2,v=8,b=9,A=286,C=30,M=19,z=2*A+1,W=15,U=3,G=258,ee=G+U+1,I=42,O=113,T=1,S=2,x=3,w=4;function _(j,ue){return j.msg=l[ue],ue}function E(j){return(j<<1)-(4<j?9:0)}function R(j){for(var ue=j.length;0<=--ue;)j[ue]=0}function F(j){var ue=j.state,Q=ue.pending;Q>j.avail_out&&(Q=j.avail_out),Q!==0&&(o.arraySet(j.output,ue.pending_buf,ue.pending_out,Q,j.next_out),j.next_out+=Q,ue.pending_out+=Q,j.total_out+=Q,j.avail_out-=Q,ue.pending-=Q,ue.pending===0&&(ue.pending_out=0))}function B(j,ue){s._tr_flush_block(j,0<=j.block_start?j.block_start:-1,j.strstart-j.block_start,ue),j.block_start=j.strstart,F(j.strm)}function X(j,ue){j.pending_buf[j.pending++]=ue}function K(j,ue){j.pending_buf[j.pending++]=ue>>>8&255,j.pending_buf[j.pending++]=255&ue}function te(j,ue){var Q,P,H=j.max_chain_length,Z=j.strstart,oe=j.prev_length,ce=j.nice_match,ne=j.strstart>j.w_size-ee?j.strstart-(j.w_size-ee):0,se=j.window,fe=j.w_mask,de=j.prev,ve=j.strstart+G,Ee=se[Z+oe-1],Se=se[Z+oe];j.prev_length>=j.good_match&&(H>>=2),ce>j.lookahead&&(ce=j.lookahead);do if(se[(Q=ue)+oe]===Se&&se[Q+oe-1]===Ee&&se[Q]===se[Z]&&se[++Q]===se[Z+1]){Z+=2,Q++;do;while(se[++Z]===se[++Q]&&se[++Z]===se[++Q]&&se[++Z]===se[++Q]&&se[++Z]===se[++Q]&&se[++Z]===se[++Q]&&se[++Z]===se[++Q]&&se[++Z]===se[++Q]&&se[++Z]===se[++Q]&&Z<ve);if(P=G-(ve-Z),Z=ve-G,oe<P){if(j.match_start=ue,ce<=(oe=P))break;Ee=se[Z+oe-1],Se=se[Z+oe]}}while((ue=de[ue&fe])>ne&&--H!=0);return oe<=j.lookahead?oe:j.lookahead}function $(j){var ue,Q,P,H,Z,oe,ce,ne,se,fe,de=j.w_size;do{if(H=j.window_size-j.lookahead-j.strstart,j.strstart>=de+(de-ee)){for(o.arraySet(j.window,j.window,de,de,0),j.match_start-=de,j.strstart-=de,j.block_start-=de,ue=Q=j.hash_size;P=j.head[--ue],j.head[ue]=de<=P?P-de:0,--Q;);for(ue=Q=de;P=j.prev[--ue],j.prev[ue]=de<=P?P-de:0,--Q;);H+=de}if(j.strm.avail_in===0)break;if(oe=j.strm,ce=j.window,ne=j.strstart+j.lookahead,se=H,fe=void 0,fe=oe.avail_in,se<fe&&(fe=se),Q=fe===0?0:(oe.avail_in-=fe,o.arraySet(ce,oe.input,oe.next_in,fe,ne),oe.state.wrap===1?oe.adler=u(oe.adler,ce,fe,ne):oe.state.wrap===2&&(oe.adler=c(oe.adler,ce,fe,ne)),oe.next_in+=fe,oe.total_in+=fe,fe),j.lookahead+=Q,j.lookahead+j.insert>=U)for(Z=j.strstart-j.insert,j.ins_h=j.window[Z],j.ins_h=(j.ins_h<<j.hash_shift^j.window[Z+1])&j.hash_mask;j.insert&&(j.ins_h=(j.ins_h<<j.hash_shift^j.window[Z+U-1])&j.hash_mask,j.prev[Z&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=Z,Z++,j.insert--,!(j.lookahead+j.insert<U)););}while(j.lookahead<ee&&j.strm.avail_in!==0)}function q(j,ue){for(var Q,P;;){if(j.lookahead<ee){if($(j),j.lookahead<ee&&ue===d)return T;if(j.lookahead===0)break}if(Q=0,j.lookahead>=U&&(j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+U-1])&j.hash_mask,Q=j.prev[j.strstart&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=j.strstart),Q!==0&&j.strstart-Q<=j.w_size-ee&&(j.match_length=te(j,Q)),j.match_length>=U)if(P=s._tr_tally(j,j.strstart-j.match_start,j.match_length-U),j.lookahead-=j.match_length,j.match_length<=j.max_lazy_match&&j.lookahead>=U){for(j.match_length--;j.strstart++,j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+U-1])&j.hash_mask,Q=j.prev[j.strstart&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=j.strstart,--j.match_length!=0;);j.strstart++}else j.strstart+=j.match_length,j.match_length=0,j.ins_h=j.window[j.strstart],j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+1])&j.hash_mask;else P=s._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++;if(P&&(B(j,!1),j.strm.avail_out===0))return T}return j.insert=j.strstart<U-1?j.strstart:U-1,ue===h?(B(j,!0),j.strm.avail_out===0?x:w):j.last_lit&&(B(j,!1),j.strm.avail_out===0)?T:S}function k(j,ue){for(var Q,P,H;;){if(j.lookahead<ee){if($(j),j.lookahead<ee&&ue===d)return T;if(j.lookahead===0)break}if(Q=0,j.lookahead>=U&&(j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+U-1])&j.hash_mask,Q=j.prev[j.strstart&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=j.strstart),j.prev_length=j.match_length,j.prev_match=j.match_start,j.match_length=U-1,Q!==0&&j.prev_length<j.max_lazy_match&&j.strstart-Q<=j.w_size-ee&&(j.match_length=te(j,Q),j.match_length<=5&&(j.strategy===1||j.match_length===U&&4096<j.strstart-j.match_start)&&(j.match_length=U-1)),j.prev_length>=U&&j.match_length<=j.prev_length){for(H=j.strstart+j.lookahead-U,P=s._tr_tally(j,j.strstart-1-j.prev_match,j.prev_length-U),j.lookahead-=j.prev_length-1,j.prev_length-=2;++j.strstart<=H&&(j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+U-1])&j.hash_mask,Q=j.prev[j.strstart&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=j.strstart),--j.prev_length!=0;);if(j.match_available=0,j.match_length=U-1,j.strstart++,P&&(B(j,!1),j.strm.avail_out===0))return T}else if(j.match_available){if((P=s._tr_tally(j,0,j.window[j.strstart-1]))&&B(j,!1),j.strstart++,j.lookahead--,j.strm.avail_out===0)return T}else j.match_available=1,j.strstart++,j.lookahead--}return j.match_available&&(P=s._tr_tally(j,0,j.window[j.strstart-1]),j.match_available=0),j.insert=j.strstart<U-1?j.strstart:U-1,ue===h?(B(j,!0),j.strm.avail_out===0?x:w):j.last_lit&&(B(j,!1),j.strm.avail_out===0)?T:S}function L(j,ue,Q,P,H){this.good_length=j,this.max_lazy=ue,this.nice_length=Q,this.max_chain=P,this.func=H}function V(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=v,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*z),this.dyn_dtree=new o.Buf16(2*(2*C+1)),this.bl_tree=new o.Buf16(2*(2*M+1)),R(this.dyn_ltree),R(this.dyn_dtree),R(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(W+1),this.heap=new o.Buf16(2*A+1),R(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*A+1),R(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function J(j){var ue;return j&&j.state?(j.total_in=j.total_out=0,j.data_type=y,(ue=j.state).pending=0,ue.pending_out=0,ue.wrap<0&&(ue.wrap=-ue.wrap),ue.status=ue.wrap?I:O,j.adler=ue.wrap===2?0:1,ue.last_flush=d,s._tr_init(ue),f):_(j,g)}function re(j){var ue=J(j);return ue===f&&function(Q){Q.window_size=2*Q.w_size,R(Q.head),Q.max_lazy_match=a[Q.level].max_lazy,Q.good_match=a[Q.level].good_length,Q.nice_match=a[Q.level].nice_length,Q.max_chain_length=a[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=U-1,Q.match_available=0,Q.ins_h=0}(j.state),ue}function ae(j,ue,Q,P,H,Z){if(!j)return g;var oe=1;if(ue===m&&(ue=6),P<0?(oe=0,P=-P):15<P&&(oe=2,P-=16),H<1||b<H||Q!==v||P<8||15<P||ue<0||9<ue||Z<0||p<Z)return _(j,g);P===8&&(P=9);var ce=new V;return(j.state=ce).strm=j,ce.wrap=oe,ce.gzhead=null,ce.w_bits=P,ce.w_size=1<<ce.w_bits,ce.w_mask=ce.w_size-1,ce.hash_bits=H+7,ce.hash_size=1<<ce.hash_bits,ce.hash_mask=ce.hash_size-1,ce.hash_shift=~~((ce.hash_bits+U-1)/U),ce.window=new o.Buf8(2*ce.w_size),ce.head=new o.Buf16(ce.hash_size),ce.prev=new o.Buf16(ce.w_size),ce.lit_bufsize=1<<H+6,ce.pending_buf_size=4*ce.lit_bufsize,ce.pending_buf=new o.Buf8(ce.pending_buf_size),ce.d_buf=1*ce.lit_bufsize,ce.l_buf=3*ce.lit_bufsize,ce.level=ue,ce.strategy=Z,ce.method=Q,re(j)}a=[new L(0,0,0,0,function(j,ue){var Q=65535;for(Q>j.pending_buf_size-5&&(Q=j.pending_buf_size-5);;){if(j.lookahead<=1){if($(j),j.lookahead===0&&ue===d)return T;if(j.lookahead===0)break}j.strstart+=j.lookahead,j.lookahead=0;var P=j.block_start+Q;if((j.strstart===0||j.strstart>=P)&&(j.lookahead=j.strstart-P,j.strstart=P,B(j,!1),j.strm.avail_out===0)||j.strstart-j.block_start>=j.w_size-ee&&(B(j,!1),j.strm.avail_out===0))return T}return j.insert=0,ue===h?(B(j,!0),j.strm.avail_out===0?x:w):(j.strstart>j.block_start&&(B(j,!1),j.strm.avail_out),T)}),new L(4,4,8,4,q),new L(4,5,16,8,q),new L(4,6,32,32,q),new L(4,4,16,16,k),new L(8,16,32,32,k),new L(8,16,128,128,k),new L(8,32,128,256,k),new L(32,128,258,1024,k),new L(32,258,258,4096,k)],i.deflateInit=function(j,ue){return ae(j,ue,v,15,8,0)},i.deflateInit2=ae,i.deflateReset=re,i.deflateResetKeep=J,i.deflateSetHeader=function(j,ue){return j&&j.state?j.state.wrap!==2?g:(j.state.gzhead=ue,f):g},i.deflate=function(j,ue){var Q,P,H,Z;if(!j||!j.state||5<ue||ue<0)return j?_(j,g):g;if(P=j.state,!j.output||!j.input&&j.avail_in!==0||P.status===666&&ue!==h)return _(j,j.avail_out===0?-5:g);if(P.strm=j,Q=P.last_flush,P.last_flush=ue,P.status===I)if(P.wrap===2)j.adler=0,X(P,31),X(P,139),X(P,8),P.gzhead?(X(P,(P.gzhead.text?1:0)+(P.gzhead.hcrc?2:0)+(P.gzhead.extra?4:0)+(P.gzhead.name?8:0)+(P.gzhead.comment?16:0)),X(P,255&P.gzhead.time),X(P,P.gzhead.time>>8&255),X(P,P.gzhead.time>>16&255),X(P,P.gzhead.time>>24&255),X(P,P.level===9?2:2<=P.strategy||P.level<2?4:0),X(P,255&P.gzhead.os),P.gzhead.extra&&P.gzhead.extra.length&&(X(P,255&P.gzhead.extra.length),X(P,P.gzhead.extra.length>>8&255)),P.gzhead.hcrc&&(j.adler=c(j.adler,P.pending_buf,P.pending,0)),P.gzindex=0,P.status=69):(X(P,0),X(P,0),X(P,0),X(P,0),X(P,0),X(P,P.level===9?2:2<=P.strategy||P.level<2?4:0),X(P,3),P.status=O);else{var oe=v+(P.w_bits-8<<4)<<8;oe|=(2<=P.strategy||P.level<2?0:P.level<6?1:P.level===6?2:3)<<6,P.strstart!==0&&(oe|=32),oe+=31-oe%31,P.status=O,K(P,oe),P.strstart!==0&&(K(P,j.adler>>>16),K(P,65535&j.adler)),j.adler=1}if(P.status===69)if(P.gzhead.extra){for(H=P.pending;P.gzindex<(65535&P.gzhead.extra.length)&&(P.pending!==P.pending_buf_size||(P.gzhead.hcrc&&P.pending>H&&(j.adler=c(j.adler,P.pending_buf,P.pending-H,H)),F(j),H=P.pending,P.pending!==P.pending_buf_size));)X(P,255&P.gzhead.extra[P.gzindex]),P.gzindex++;P.gzhead.hcrc&&P.pending>H&&(j.adler=c(j.adler,P.pending_buf,P.pending-H,H)),P.gzindex===P.gzhead.extra.length&&(P.gzindex=0,P.status=73)}else P.status=73;if(P.status===73)if(P.gzhead.name){H=P.pending;do{if(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>H&&(j.adler=c(j.adler,P.pending_buf,P.pending-H,H)),F(j),H=P.pending,P.pending===P.pending_buf_size)){Z=1;break}Z=P.gzindex<P.gzhead.name.length?255&P.gzhead.name.charCodeAt(P.gzindex++):0,X(P,Z)}while(Z!==0);P.gzhead.hcrc&&P.pending>H&&(j.adler=c(j.adler,P.pending_buf,P.pending-H,H)),Z===0&&(P.gzindex=0,P.status=91)}else P.status=91;if(P.status===91)if(P.gzhead.comment){H=P.pending;do{if(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>H&&(j.adler=c(j.adler,P.pending_buf,P.pending-H,H)),F(j),H=P.pending,P.pending===P.pending_buf_size)){Z=1;break}Z=P.gzindex<P.gzhead.comment.length?255&P.gzhead.comment.charCodeAt(P.gzindex++):0,X(P,Z)}while(Z!==0);P.gzhead.hcrc&&P.pending>H&&(j.adler=c(j.adler,P.pending_buf,P.pending-H,H)),Z===0&&(P.status=103)}else P.status=103;if(P.status===103&&(P.gzhead.hcrc?(P.pending+2>P.pending_buf_size&&F(j),P.pending+2<=P.pending_buf_size&&(X(P,255&j.adler),X(P,j.adler>>8&255),j.adler=0,P.status=O)):P.status=O),P.pending!==0){if(F(j),j.avail_out===0)return P.last_flush=-1,f}else if(j.avail_in===0&&E(ue)<=E(Q)&&ue!==h)return _(j,-5);if(P.status===666&&j.avail_in!==0)return _(j,-5);if(j.avail_in!==0||P.lookahead!==0||ue!==d&&P.status!==666){var ce=P.strategy===2?function(ne,se){for(var fe;;){if(ne.lookahead===0&&($(ne),ne.lookahead===0)){if(se===d)return T;break}if(ne.match_length=0,fe=s._tr_tally(ne,0,ne.window[ne.strstart]),ne.lookahead--,ne.strstart++,fe&&(B(ne,!1),ne.strm.avail_out===0))return T}return ne.insert=0,se===h?(B(ne,!0),ne.strm.avail_out===0?x:w):ne.last_lit&&(B(ne,!1),ne.strm.avail_out===0)?T:S}(P,ue):P.strategy===3?function(ne,se){for(var fe,de,ve,Ee,Se=ne.window;;){if(ne.lookahead<=G){if($(ne),ne.lookahead<=G&&se===d)return T;if(ne.lookahead===0)break}if(ne.match_length=0,ne.lookahead>=U&&0<ne.strstart&&(de=Se[ve=ne.strstart-1])===Se[++ve]&&de===Se[++ve]&&de===Se[++ve]){Ee=ne.strstart+G;do;while(de===Se[++ve]&&de===Se[++ve]&&de===Se[++ve]&&de===Se[++ve]&&de===Se[++ve]&&de===Se[++ve]&&de===Se[++ve]&&de===Se[++ve]&&ve<Ee);ne.match_length=G-(Ee-ve),ne.match_length>ne.lookahead&&(ne.match_length=ne.lookahead)}if(ne.match_length>=U?(fe=s._tr_tally(ne,1,ne.match_length-U),ne.lookahead-=ne.match_length,ne.strstart+=ne.match_length,ne.match_length=0):(fe=s._tr_tally(ne,0,ne.window[ne.strstart]),ne.lookahead--,ne.strstart++),fe&&(B(ne,!1),ne.strm.avail_out===0))return T}return ne.insert=0,se===h?(B(ne,!0),ne.strm.avail_out===0?x:w):ne.last_lit&&(B(ne,!1),ne.strm.avail_out===0)?T:S}(P,ue):a[P.level].func(P,ue);if(ce!==x&&ce!==w||(P.status=666),ce===T||ce===x)return j.avail_out===0&&(P.last_flush=-1),f;if(ce===S&&(ue===1?s._tr_align(P):ue!==5&&(s._tr_stored_block(P,0,0,!1),ue===3&&(R(P.head),P.lookahead===0&&(P.strstart=0,P.block_start=0,P.insert=0))),F(j),j.avail_out===0))return P.last_flush=-1,f}return ue!==h?f:P.wrap<=0?1:(P.wrap===2?(X(P,255&j.adler),X(P,j.adler>>8&255),X(P,j.adler>>16&255),X(P,j.adler>>24&255),X(P,255&j.total_in),X(P,j.total_in>>8&255),X(P,j.total_in>>16&255),X(P,j.total_in>>24&255)):(K(P,j.adler>>>16),K(P,65535&j.adler)),F(j),0<P.wrap&&(P.wrap=-P.wrap),P.pending!==0?f:1)},i.deflateEnd=function(j){var ue;return j&&j.state?(ue=j.state.status)!==I&&ue!==69&&ue!==73&&ue!==91&&ue!==103&&ue!==O&&ue!==666?_(j,g):(j.state=null,ue===O?_(j,-3):f):g},i.deflateSetDictionary=function(j,ue){var Q,P,H,Z,oe,ce,ne,se,fe=ue.length;if(!j||!j.state||(Z=(Q=j.state).wrap)===2||Z===1&&Q.status!==I||Q.lookahead)return g;for(Z===1&&(j.adler=u(j.adler,ue,fe,0)),Q.wrap=0,fe>=Q.w_size&&(Z===0&&(R(Q.head),Q.strstart=0,Q.block_start=0,Q.insert=0),se=new o.Buf8(Q.w_size),o.arraySet(se,ue,fe-Q.w_size,Q.w_size,0),ue=se,fe=Q.w_size),oe=j.avail_in,ce=j.next_in,ne=j.input,j.avail_in=fe,j.next_in=0,j.input=ue,$(Q);Q.lookahead>=U;){for(P=Q.strstart,H=Q.lookahead-(U-1);Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[P+U-1])&Q.hash_mask,Q.prev[P&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=P,P++,--H;);Q.strstart=P,Q.lookahead=U-1,$(Q)}return Q.strstart+=Q.lookahead,Q.block_start=Q.strstart,Q.insert=Q.lookahead,Q.lookahead=0,Q.match_length=Q.prev_length=U-1,Q.match_available=0,j.next_in=ce,j.input=ne,j.avail_in=oe,Q.wrap=Z,f},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,n,i){n.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,n,i){n.exports=function(a,o){var s,u,c,l,d,h,f,g,m,p,y,v,b,A,C,M,z,W,U,G,ee,I,O,T,S;s=a.state,u=a.next_in,T=a.input,c=u+(a.avail_in-5),l=a.next_out,S=a.output,d=l-(o-a.avail_out),h=l+(a.avail_out-257),f=s.dmax,g=s.wsize,m=s.whave,p=s.wnext,y=s.window,v=s.hold,b=s.bits,A=s.lencode,C=s.distcode,M=(1<<s.lenbits)-1,z=(1<<s.distbits)-1;e:do{b<15&&(v+=T[u++]<<b,b+=8,v+=T[u++]<<b,b+=8),W=A[v&M];t:for(;;){if(v>>>=U=W>>>24,b-=U,(U=W>>>16&255)==0)S[l++]=65535&W;else{if(!(16&U)){if((64&U)==0){W=A[(65535&W)+(v&(1<<U)-1)];continue t}if(32&U){s.mode=12;break e}a.msg="invalid literal/length code",s.mode=30;break e}G=65535&W,(U&=15)&&(b<U&&(v+=T[u++]<<b,b+=8),G+=v&(1<<U)-1,v>>>=U,b-=U),b<15&&(v+=T[u++]<<b,b+=8,v+=T[u++]<<b,b+=8),W=C[v&z];r:for(;;){if(v>>>=U=W>>>24,b-=U,!(16&(U=W>>>16&255))){if((64&U)==0){W=C[(65535&W)+(v&(1<<U)-1)];continue r}a.msg="invalid distance code",s.mode=30;break e}if(ee=65535&W,b<(U&=15)&&(v+=T[u++]<<b,(b+=8)<U&&(v+=T[u++]<<b,b+=8)),f<(ee+=v&(1<<U)-1)){a.msg="invalid distance too far back",s.mode=30;break e}if(v>>>=U,b-=U,(U=l-d)<ee){if(m<(U=ee-U)&&s.sane){a.msg="invalid distance too far back",s.mode=30;break e}if(O=y,(I=0)===p){if(I+=g-U,U<G){for(G-=U;S[l++]=y[I++],--U;);I=l-ee,O=S}}else if(p<U){if(I+=g+p-U,(U-=p)<G){for(G-=U;S[l++]=y[I++],--U;);if(I=0,p<G){for(G-=U=p;S[l++]=y[I++],--U;);I=l-ee,O=S}}}else if(I+=p-U,U<G){for(G-=U;S[l++]=y[I++],--U;);I=l-ee,O=S}for(;2<G;)S[l++]=O[I++],S[l++]=O[I++],S[l++]=O[I++],G-=3;G&&(S[l++]=O[I++],1<G&&(S[l++]=O[I++]))}else{for(I=l-ee;S[l++]=S[I++],S[l++]=S[I++],S[l++]=S[I++],2<(G-=3););G&&(S[l++]=S[I++],1<G&&(S[l++]=S[I++]))}break}}break}}while(u<c&&l<h);u-=G=b>>3,v&=(1<<(b-=G<<3))-1,a.next_in=u,a.next_out=l,a.avail_in=u<c?c-u+5:5-(u-c),a.avail_out=l<h?h-l+257:257-(l-h),s.hold=v,s.bits=b}},{}],49:[function(e,n,i){var a=e("../utils/common"),o=e("./adler32"),s=e("./crc32"),u=e("./inffast"),c=e("./inftrees"),l=1,d=2,h=0,f=-2,g=1,m=852,p=592;function y(I){return(I>>>24&255)+(I>>>8&65280)+((65280&I)<<8)+((255&I)<<24)}function v(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new a.Buf16(320),this.work=new a.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(I){var O;return I&&I.state?(O=I.state,I.total_in=I.total_out=O.total=0,I.msg="",O.wrap&&(I.adler=1&O.wrap),O.mode=g,O.last=0,O.havedict=0,O.dmax=32768,O.head=null,O.hold=0,O.bits=0,O.lencode=O.lendyn=new a.Buf32(m),O.distcode=O.distdyn=new a.Buf32(p),O.sane=1,O.back=-1,h):f}function A(I){var O;return I&&I.state?((O=I.state).wsize=0,O.whave=0,O.wnext=0,b(I)):f}function C(I,O){var T,S;return I&&I.state?(S=I.state,O<0?(T=0,O=-O):(T=1+(O>>4),O<48&&(O&=15)),O&&(O<8||15<O)?f:(S.window!==null&&S.wbits!==O&&(S.window=null),S.wrap=T,S.wbits=O,A(I))):f}function M(I,O){var T,S;return I?(S=new v,(I.state=S).window=null,(T=C(I,O))!==h&&(I.state=null),T):f}var z,W,U=!0;function G(I){if(U){var O;for(z=new a.Buf32(512),W=new a.Buf32(32),O=0;O<144;)I.lens[O++]=8;for(;O<256;)I.lens[O++]=9;for(;O<280;)I.lens[O++]=7;for(;O<288;)I.lens[O++]=8;for(c(l,I.lens,0,288,z,0,I.work,{bits:9}),O=0;O<32;)I.lens[O++]=5;c(d,I.lens,0,32,W,0,I.work,{bits:5}),U=!1}I.lencode=z,I.lenbits=9,I.distcode=W,I.distbits=5}function ee(I,O,T,S){var x,w=I.state;return w.window===null&&(w.wsize=1<<w.wbits,w.wnext=0,w.whave=0,w.window=new a.Buf8(w.wsize)),S>=w.wsize?(a.arraySet(w.window,O,T-w.wsize,w.wsize,0),w.wnext=0,w.whave=w.wsize):(S<(x=w.wsize-w.wnext)&&(x=S),a.arraySet(w.window,O,T-S,x,w.wnext),(S-=x)?(a.arraySet(w.window,O,T-S,S,0),w.wnext=S,w.whave=w.wsize):(w.wnext+=x,w.wnext===w.wsize&&(w.wnext=0),w.whave<w.wsize&&(w.whave+=x))),0}i.inflateReset=A,i.inflateReset2=C,i.inflateResetKeep=b,i.inflateInit=function(I){return M(I,15)},i.inflateInit2=M,i.inflate=function(I,O){var T,S,x,w,_,E,R,F,B,X,K,te,$,q,k,L,V,J,re,ae,j,ue,Q,P,H=0,Z=new a.Buf8(4),oe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!I||!I.state||!I.output||!I.input&&I.avail_in!==0)return f;(T=I.state).mode===12&&(T.mode=13),_=I.next_out,x=I.output,R=I.avail_out,w=I.next_in,S=I.input,E=I.avail_in,F=T.hold,B=T.bits,X=E,K=R,ue=h;e:for(;;)switch(T.mode){case g:if(T.wrap===0){T.mode=13;break}for(;B<16;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if(2&T.wrap&&F===35615){Z[T.check=0]=255&F,Z[1]=F>>>8&255,T.check=s(T.check,Z,2,0),B=F=0,T.mode=2;break}if(T.flags=0,T.head&&(T.head.done=!1),!(1&T.wrap)||(((255&F)<<8)+(F>>8))%31){I.msg="incorrect header check",T.mode=30;break}if((15&F)!=8){I.msg="unknown compression method",T.mode=30;break}if(B-=4,j=8+(15&(F>>>=4)),T.wbits===0)T.wbits=j;else if(j>T.wbits){I.msg="invalid window size",T.mode=30;break}T.dmax=1<<j,I.adler=T.check=1,T.mode=512&F?10:12,B=F=0;break;case 2:for(;B<16;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if(T.flags=F,(255&T.flags)!=8){I.msg="unknown compression method",T.mode=30;break}if(57344&T.flags){I.msg="unknown header flags set",T.mode=30;break}T.head&&(T.head.text=F>>8&1),512&T.flags&&(Z[0]=255&F,Z[1]=F>>>8&255,T.check=s(T.check,Z,2,0)),B=F=0,T.mode=3;case 3:for(;B<32;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}T.head&&(T.head.time=F),512&T.flags&&(Z[0]=255&F,Z[1]=F>>>8&255,Z[2]=F>>>16&255,Z[3]=F>>>24&255,T.check=s(T.check,Z,4,0)),B=F=0,T.mode=4;case 4:for(;B<16;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}T.head&&(T.head.xflags=255&F,T.head.os=F>>8),512&T.flags&&(Z[0]=255&F,Z[1]=F>>>8&255,T.check=s(T.check,Z,2,0)),B=F=0,T.mode=5;case 5:if(1024&T.flags){for(;B<16;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}T.length=F,T.head&&(T.head.extra_len=F),512&T.flags&&(Z[0]=255&F,Z[1]=F>>>8&255,T.check=s(T.check,Z,2,0)),B=F=0}else T.head&&(T.head.extra=null);T.mode=6;case 6:if(1024&T.flags&&(E<(te=T.length)&&(te=E),te&&(T.head&&(j=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),a.arraySet(T.head.extra,S,w,te,j)),512&T.flags&&(T.check=s(T.check,S,te,w)),E-=te,w+=te,T.length-=te),T.length))break e;T.length=0,T.mode=7;case 7:if(2048&T.flags){if(E===0)break e;for(te=0;j=S[w+te++],T.head&&j&&T.length<65536&&(T.head.name+=String.fromCharCode(j)),j&&te<E;);if(512&T.flags&&(T.check=s(T.check,S,te,w)),E-=te,w+=te,j)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=8;case 8:if(4096&T.flags){if(E===0)break e;for(te=0;j=S[w+te++],T.head&&j&&T.length<65536&&(T.head.comment+=String.fromCharCode(j)),j&&te<E;);if(512&T.flags&&(T.check=s(T.check,S,te,w)),E-=te,w+=te,j)break e}else T.head&&(T.head.comment=null);T.mode=9;case 9:if(512&T.flags){for(;B<16;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if(F!==(65535&T.check)){I.msg="header crc mismatch",T.mode=30;break}B=F=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),I.adler=T.check=0,T.mode=12;break;case 10:for(;B<32;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}I.adler=T.check=y(F),B=F=0,T.mode=11;case 11:if(T.havedict===0)return I.next_out=_,I.avail_out=R,I.next_in=w,I.avail_in=E,T.hold=F,T.bits=B,2;I.adler=T.check=1,T.mode=12;case 12:if(O===5||O===6)break e;case 13:if(T.last){F>>>=7&B,B-=7&B,T.mode=27;break}for(;B<3;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}switch(T.last=1&F,B-=1,3&(F>>>=1)){case 0:T.mode=14;break;case 1:if(G(T),T.mode=20,O!==6)break;F>>>=2,B-=2;break e;case 2:T.mode=17;break;case 3:I.msg="invalid block type",T.mode=30}F>>>=2,B-=2;break;case 14:for(F>>>=7&B,B-=7&B;B<32;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if((65535&F)!=(F>>>16^65535)){I.msg="invalid stored block lengths",T.mode=30;break}if(T.length=65535&F,B=F=0,T.mode=15,O===6)break e;case 15:T.mode=16;case 16:if(te=T.length){if(E<te&&(te=E),R<te&&(te=R),te===0)break e;a.arraySet(x,S,w,te,_),E-=te,w+=te,R-=te,_+=te,T.length-=te;break}T.mode=12;break;case 17:for(;B<14;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if(T.nlen=257+(31&F),F>>>=5,B-=5,T.ndist=1+(31&F),F>>>=5,B-=5,T.ncode=4+(15&F),F>>>=4,B-=4,286<T.nlen||30<T.ndist){I.msg="too many length or distance symbols",T.mode=30;break}T.have=0,T.mode=18;case 18:for(;T.have<T.ncode;){for(;B<3;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}T.lens[oe[T.have++]]=7&F,F>>>=3,B-=3}for(;T.have<19;)T.lens[oe[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,Q={bits:T.lenbits},ue=c(0,T.lens,0,19,T.lencode,0,T.work,Q),T.lenbits=Q.bits,ue){I.msg="invalid code lengths set",T.mode=30;break}T.have=0,T.mode=19;case 19:for(;T.have<T.nlen+T.ndist;){for(;L=(H=T.lencode[F&(1<<T.lenbits)-1])>>>16&255,V=65535&H,!((k=H>>>24)<=B);){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if(V<16)F>>>=k,B-=k,T.lens[T.have++]=V;else{if(V===16){for(P=k+2;B<P;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if(F>>>=k,B-=k,T.have===0){I.msg="invalid bit length repeat",T.mode=30;break}j=T.lens[T.have-1],te=3+(3&F),F>>>=2,B-=2}else if(V===17){for(P=k+3;B<P;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}B-=k,j=0,te=3+(7&(F>>>=k)),F>>>=3,B-=3}else{for(P=k+7;B<P;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}B-=k,j=0,te=11+(127&(F>>>=k)),F>>>=7,B-=7}if(T.have+te>T.nlen+T.ndist){I.msg="invalid bit length repeat",T.mode=30;break}for(;te--;)T.lens[T.have++]=j}}if(T.mode===30)break;if(T.lens[256]===0){I.msg="invalid code -- missing end-of-block",T.mode=30;break}if(T.lenbits=9,Q={bits:T.lenbits},ue=c(l,T.lens,0,T.nlen,T.lencode,0,T.work,Q),T.lenbits=Q.bits,ue){I.msg="invalid literal/lengths set",T.mode=30;break}if(T.distbits=6,T.distcode=T.distdyn,Q={bits:T.distbits},ue=c(d,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,Q),T.distbits=Q.bits,ue){I.msg="invalid distances set",T.mode=30;break}if(T.mode=20,O===6)break e;case 20:T.mode=21;case 21:if(6<=E&&258<=R){I.next_out=_,I.avail_out=R,I.next_in=w,I.avail_in=E,T.hold=F,T.bits=B,u(I,K),_=I.next_out,x=I.output,R=I.avail_out,w=I.next_in,S=I.input,E=I.avail_in,F=T.hold,B=T.bits,T.mode===12&&(T.back=-1);break}for(T.back=0;L=(H=T.lencode[F&(1<<T.lenbits)-1])>>>16&255,V=65535&H,!((k=H>>>24)<=B);){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if(L&&(240&L)==0){for(J=k,re=L,ae=V;L=(H=T.lencode[ae+((F&(1<<J+re)-1)>>J)])>>>16&255,V=65535&H,!(J+(k=H>>>24)<=B);){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}F>>>=J,B-=J,T.back+=J}if(F>>>=k,B-=k,T.back+=k,T.length=V,L===0){T.mode=26;break}if(32&L){T.back=-1,T.mode=12;break}if(64&L){I.msg="invalid literal/length code",T.mode=30;break}T.extra=15&L,T.mode=22;case 22:if(T.extra){for(P=T.extra;B<P;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}T.length+=F&(1<<T.extra)-1,F>>>=T.extra,B-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=23;case 23:for(;L=(H=T.distcode[F&(1<<T.distbits)-1])>>>16&255,V=65535&H,!((k=H>>>24)<=B);){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if((240&L)==0){for(J=k,re=L,ae=V;L=(H=T.distcode[ae+((F&(1<<J+re)-1)>>J)])>>>16&255,V=65535&H,!(J+(k=H>>>24)<=B);){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}F>>>=J,B-=J,T.back+=J}if(F>>>=k,B-=k,T.back+=k,64&L){I.msg="invalid distance code",T.mode=30;break}T.offset=V,T.extra=15&L,T.mode=24;case 24:if(T.extra){for(P=T.extra;B<P;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}T.offset+=F&(1<<T.extra)-1,F>>>=T.extra,B-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){I.msg="invalid distance too far back",T.mode=30;break}T.mode=25;case 25:if(R===0)break e;if(te=K-R,T.offset>te){if((te=T.offset-te)>T.whave&&T.sane){I.msg="invalid distance too far back",T.mode=30;break}$=te>T.wnext?(te-=T.wnext,T.wsize-te):T.wnext-te,te>T.length&&(te=T.length),q=T.window}else q=x,$=_-T.offset,te=T.length;for(R<te&&(te=R),R-=te,T.length-=te;x[_++]=q[$++],--te;);T.length===0&&(T.mode=21);break;case 26:if(R===0)break e;x[_++]=T.length,R--,T.mode=21;break;case 27:if(T.wrap){for(;B<32;){if(E===0)break e;E--,F|=S[w++]<<B,B+=8}if(K-=R,I.total_out+=K,T.total+=K,K&&(I.adler=T.check=T.flags?s(T.check,x,K,_-K):o(T.check,x,K,_-K)),K=R,(T.flags?F:y(F))!==T.check){I.msg="incorrect data check",T.mode=30;break}B=F=0}T.mode=28;case 28:if(T.wrap&&T.flags){for(;B<32;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if(F!==(4294967295&T.total)){I.msg="incorrect length check",T.mode=30;break}B=F=0}T.mode=29;case 29:ue=1;break e;case 30:ue=-3;break e;case 31:return-4;case 32:default:return f}return I.next_out=_,I.avail_out=R,I.next_in=w,I.avail_in=E,T.hold=F,T.bits=B,(T.wsize||K!==I.avail_out&&T.mode<30&&(T.mode<27||O!==4))&&ee(I,I.output,I.next_out,K-I.avail_out)?(T.mode=31,-4):(X-=I.avail_in,K-=I.avail_out,I.total_in+=X,I.total_out+=K,T.total+=K,T.wrap&&K&&(I.adler=T.check=T.flags?s(T.check,x,K,I.next_out-K):o(T.check,x,K,I.next_out-K)),I.data_type=T.bits+(T.last?64:0)+(T.mode===12?128:0)+(T.mode===20||T.mode===15?256:0),(X==0&&K===0||O===4)&&ue===h&&(ue=-5),ue)},i.inflateEnd=function(I){if(!I||!I.state)return f;var O=I.state;return O.window&&(O.window=null),I.state=null,h},i.inflateGetHeader=function(I,O){var T;return I&&I.state?(2&(T=I.state).wrap)==0?f:((T.head=O).done=!1,h):f},i.inflateSetDictionary=function(I,O){var T,S=O.length;return I&&I.state?(T=I.state).wrap!==0&&T.mode!==11?f:T.mode===11&&o(1,O,S,0)!==T.check?-3:ee(I,O,S,S)?(T.mode=31,-4):(T.havedict=1,h):f},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,n,i){var a=e("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];n.exports=function(l,d,h,f,g,m,p,y){var v,b,A,C,M,z,W,U,G,ee=y.bits,I=0,O=0,T=0,S=0,x=0,w=0,_=0,E=0,R=0,F=0,B=null,X=0,K=new a.Buf16(16),te=new a.Buf16(16),$=null,q=0;for(I=0;I<=15;I++)K[I]=0;for(O=0;O<f;O++)K[d[h+O]]++;for(x=ee,S=15;1<=S&&K[S]===0;S--);if(S<x&&(x=S),S===0)return g[m++]=20971520,g[m++]=20971520,y.bits=1,0;for(T=1;T<S&&K[T]===0;T++);for(x<T&&(x=T),I=E=1;I<=15;I++)if(E<<=1,(E-=K[I])<0)return-1;if(0<E&&(l===0||S!==1))return-1;for(te[1]=0,I=1;I<15;I++)te[I+1]=te[I]+K[I];for(O=0;O<f;O++)d[h+O]!==0&&(p[te[d[h+O]]++]=O);if(z=l===0?(B=$=p,19):l===1?(B=o,X-=257,$=s,q-=257,256):(B=u,$=c,-1),I=T,M=m,_=O=F=0,A=-1,C=(R=1<<(w=x))-1,l===1&&852<R||l===2&&592<R)return 1;for(;;){for(W=I-_,G=p[O]<z?(U=0,p[O]):p[O]>z?(U=$[q+p[O]],B[X+p[O]]):(U=96,0),v=1<<I-_,T=b=1<<w;g[M+(F>>_)+(b-=v)]=W<<24|U<<16|G|0,b!==0;);for(v=1<<I-1;F&v;)v>>=1;if(v!==0?(F&=v-1,F+=v):F=0,O++,--K[I]==0){if(I===S)break;I=d[h+p[O]]}if(x<I&&(F&C)!==A){for(_===0&&(_=x),M+=T,E=1<<(w=I-_);w+_<S&&!((E-=K[w+_])<=0);)w++,E<<=1;if(R+=1<<w,l===1&&852<R||l===2&&592<R)return 1;g[A=F&C]=x<<24|w<<16|M-m|0}}return F!==0&&(g[M+F]=I-_<<24|64<<16|0),y.bits=x,0}},{"../utils/common":41}],51:[function(e,n,i){n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,n,i){var a=e("../utils/common"),o=0,s=1;function u(H){for(var Z=H.length;0<=--Z;)H[Z]=0}var c=0,l=29,d=256,h=d+1+l,f=30,g=19,m=2*h+1,p=15,y=16,v=7,b=256,A=16,C=17,M=18,z=[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],W=[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],U=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ee=new Array(2*(h+2));u(ee);var I=new Array(2*f);u(I);var O=new Array(512);u(O);var T=new Array(256);u(T);var S=new Array(l);u(S);var x,w,_,E=new Array(f);function R(H,Z,oe,ce,ne){this.static_tree=H,this.extra_bits=Z,this.extra_base=oe,this.elems=ce,this.max_length=ne,this.has_stree=H&&H.length}function F(H,Z){this.dyn_tree=H,this.max_code=0,this.stat_desc=Z}function B(H){return H<256?O[H]:O[256+(H>>>7)]}function X(H,Z){H.pending_buf[H.pending++]=255&Z,H.pending_buf[H.pending++]=Z>>>8&255}function K(H,Z,oe){H.bi_valid>y-oe?(H.bi_buf|=Z<<H.bi_valid&65535,X(H,H.bi_buf),H.bi_buf=Z>>y-H.bi_valid,H.bi_valid+=oe-y):(H.bi_buf|=Z<<H.bi_valid&65535,H.bi_valid+=oe)}function te(H,Z,oe){K(H,oe[2*Z],oe[2*Z+1])}function $(H,Z){for(var oe=0;oe|=1&H,H>>>=1,oe<<=1,0<--Z;);return oe>>>1}function q(H,Z,oe){var ce,ne,se=new Array(p+1),fe=0;for(ce=1;ce<=p;ce++)se[ce]=fe=fe+oe[ce-1]<<1;for(ne=0;ne<=Z;ne++){var de=H[2*ne+1];de!==0&&(H[2*ne]=$(se[de]++,de))}}function k(H){var Z;for(Z=0;Z<h;Z++)H.dyn_ltree[2*Z]=0;for(Z=0;Z<f;Z++)H.dyn_dtree[2*Z]=0;for(Z=0;Z<g;Z++)H.bl_tree[2*Z]=0;H.dyn_ltree[2*b]=1,H.opt_len=H.static_len=0,H.last_lit=H.matches=0}function L(H){8<H.bi_valid?X(H,H.bi_buf):0<H.bi_valid&&(H.pending_buf[H.pending++]=H.bi_buf),H.bi_buf=0,H.bi_valid=0}function V(H,Z,oe,ce){var ne=2*Z,se=2*oe;return H[ne]<H[se]||H[ne]===H[se]&&ce[Z]<=ce[oe]}function J(H,Z,oe){for(var ce=H.heap[oe],ne=oe<<1;ne<=H.heap_len&&(ne<H.heap_len&&V(Z,H.heap[ne+1],H.heap[ne],H.depth)&&ne++,!V(Z,ce,H.heap[ne],H.depth));)H.heap[oe]=H.heap[ne],oe=ne,ne<<=1;H.heap[oe]=ce}function re(H,Z,oe){var ce,ne,se,fe,de=0;if(H.last_lit!==0)for(;ce=H.pending_buf[H.d_buf+2*de]<<8|H.pending_buf[H.d_buf+2*de+1],ne=H.pending_buf[H.l_buf+de],de++,ce===0?te(H,ne,Z):(te(H,(se=T[ne])+d+1,Z),(fe=z[se])!==0&&K(H,ne-=S[se],fe),te(H,se=B(--ce),oe),(fe=W[se])!==0&&K(H,ce-=E[se],fe)),de<H.last_lit;);te(H,b,Z)}function ae(H,Z){var oe,ce,ne,se=Z.dyn_tree,fe=Z.stat_desc.static_tree,de=Z.stat_desc.has_stree,ve=Z.stat_desc.elems,Ee=-1;for(H.heap_len=0,H.heap_max=m,oe=0;oe<ve;oe++)se[2*oe]!==0?(H.heap[++H.heap_len]=Ee=oe,H.depth[oe]=0):se[2*oe+1]=0;for(;H.heap_len<2;)se[2*(ne=H.heap[++H.heap_len]=Ee<2?++Ee:0)]=1,H.depth[ne]=0,H.opt_len--,de&&(H.static_len-=fe[2*ne+1]);for(Z.max_code=Ee,oe=H.heap_len>>1;1<=oe;oe--)J(H,se,oe);for(ne=ve;oe=H.heap[1],H.heap[1]=H.heap[H.heap_len--],J(H,se,1),ce=H.heap[1],H.heap[--H.heap_max]=oe,H.heap[--H.heap_max]=ce,se[2*ne]=se[2*oe]+se[2*ce],H.depth[ne]=(H.depth[oe]>=H.depth[ce]?H.depth[oe]:H.depth[ce])+1,se[2*oe+1]=se[2*ce+1]=ne,H.heap[1]=ne++,J(H,se,1),2<=H.heap_len;);H.heap[--H.heap_max]=H.heap[1],function(Se,Ne){var He,qe,et,Ue,Ge,tt,rt=Ne.dyn_tree,lt=Ne.max_code,Ft=Ne.stat_desc.static_tree,Wt=Ne.stat_desc.has_stree,dt=Ne.stat_desc.extra_bits,Pt=Ne.stat_desc.extra_base,xt=Ne.stat_desc.max_length,gt=0;for(Ue=0;Ue<=p;Ue++)Se.bl_count[Ue]=0;for(rt[2*Se.heap[Se.heap_max]+1]=0,He=Se.heap_max+1;He<m;He++)xt<(Ue=rt[2*rt[2*(qe=Se.heap[He])+1]+1]+1)&&(Ue=xt,gt++),rt[2*qe+1]=Ue,lt<qe||(Se.bl_count[Ue]++,Ge=0,Pt<=qe&&(Ge=dt[qe-Pt]),tt=rt[2*qe],Se.opt_len+=tt*(Ue+Ge),Wt&&(Se.static_len+=tt*(Ft[2*qe+1]+Ge)));if(gt!==0){do{for(Ue=xt-1;Se.bl_count[Ue]===0;)Ue--;Se.bl_count[Ue]--,Se.bl_count[Ue+1]+=2,Se.bl_count[xt]--,gt-=2}while(0<gt);for(Ue=xt;Ue!==0;Ue--)for(qe=Se.bl_count[Ue];qe!==0;)lt<(et=Se.heap[--He])||(rt[2*et+1]!==Ue&&(Se.opt_len+=(Ue-rt[2*et+1])*rt[2*et],rt[2*et+1]=Ue),qe--)}}(H,Z),q(se,Ee,H.bl_count)}function j(H,Z,oe){var ce,ne,se=-1,fe=Z[1],de=0,ve=7,Ee=4;for(fe===0&&(ve=138,Ee=3),Z[2*(oe+1)+1]=65535,ce=0;ce<=oe;ce++)ne=fe,fe=Z[2*(ce+1)+1],++de<ve&&ne===fe||(de<Ee?H.bl_tree[2*ne]+=de:ne!==0?(ne!==se&&H.bl_tree[2*ne]++,H.bl_tree[2*A]++):de<=10?H.bl_tree[2*C]++:H.bl_tree[2*M]++,se=ne,Ee=(de=0)===fe?(ve=138,3):ne===fe?(ve=6,3):(ve=7,4))}function ue(H,Z,oe){var ce,ne,se=-1,fe=Z[1],de=0,ve=7,Ee=4;for(fe===0&&(ve=138,Ee=3),ce=0;ce<=oe;ce++)if(ne=fe,fe=Z[2*(ce+1)+1],!(++de<ve&&ne===fe)){if(de<Ee)for(;te(H,ne,H.bl_tree),--de!=0;);else ne!==0?(ne!==se&&(te(H,ne,H.bl_tree),de--),te(H,A,H.bl_tree),K(H,de-3,2)):de<=10?(te(H,C,H.bl_tree),K(H,de-3,3)):(te(H,M,H.bl_tree),K(H,de-11,7));se=ne,Ee=(de=0)===fe?(ve=138,3):ne===fe?(ve=6,3):(ve=7,4)}}u(E);var Q=!1;function P(H,Z,oe,ce){K(H,(c<<1)+(ce?1:0),3),function(ne,se,fe,de){L(ne),X(ne,fe),X(ne,~fe),a.arraySet(ne.pending_buf,ne.window,se,fe,ne.pending),ne.pending+=fe}(H,Z,oe)}i._tr_init=function(H){Q||(function(){var Z,oe,ce,ne,se,fe=new Array(p+1);for(ne=ce=0;ne<l-1;ne++)for(S[ne]=ce,Z=0;Z<1<<z[ne];Z++)T[ce++]=ne;for(T[ce-1]=ne,ne=se=0;ne<16;ne++)for(E[ne]=se,Z=0;Z<1<<W[ne];Z++)O[se++]=ne;for(se>>=7;ne<f;ne++)for(E[ne]=se<<7,Z=0;Z<1<<W[ne]-7;Z++)O[256+se++]=ne;for(oe=0;oe<=p;oe++)fe[oe]=0;for(Z=0;Z<=143;)ee[2*Z+1]=8,Z++,fe[8]++;for(;Z<=255;)ee[2*Z+1]=9,Z++,fe[9]++;for(;Z<=279;)ee[2*Z+1]=7,Z++,fe[7]++;for(;Z<=287;)ee[2*Z+1]=8,Z++,fe[8]++;for(q(ee,h+1,fe),Z=0;Z<f;Z++)I[2*Z+1]=5,I[2*Z]=$(Z,5);x=new R(ee,z,d+1,h,p),w=new R(I,W,0,f,p),_=new R(new Array(0),U,0,g,v)}(),Q=!0),H.l_desc=new F(H.dyn_ltree,x),H.d_desc=new F(H.dyn_dtree,w),H.bl_desc=new F(H.bl_tree,_),H.bi_buf=0,H.bi_valid=0,k(H)},i._tr_stored_block=P,i._tr_flush_block=function(H,Z,oe,ce){var ne,se,fe=0;0<H.level?(H.strm.data_type===2&&(H.strm.data_type=function(de){var ve,Ee=4093624447;for(ve=0;ve<=31;ve++,Ee>>>=1)if(1&Ee&&de.dyn_ltree[2*ve]!==0)return o;if(de.dyn_ltree[18]!==0||de.dyn_ltree[20]!==0||de.dyn_ltree[26]!==0)return s;for(ve=32;ve<d;ve++)if(de.dyn_ltree[2*ve]!==0)return s;return o}(H)),ae(H,H.l_desc),ae(H,H.d_desc),fe=function(de){var ve;for(j(de,de.dyn_ltree,de.l_desc.max_code),j(de,de.dyn_dtree,de.d_desc.max_code),ae(de,de.bl_desc),ve=g-1;3<=ve&&de.bl_tree[2*G[ve]+1]===0;ve--);return de.opt_len+=3*(ve+1)+5+5+4,ve}(H),ne=H.opt_len+3+7>>>3,(se=H.static_len+3+7>>>3)<=ne&&(ne=se)):ne=se=oe+5,oe+4<=ne&&Z!==-1?P(H,Z,oe,ce):H.strategy===4||se===ne?(K(H,2+(ce?1:0),3),re(H,ee,I)):(K(H,4+(ce?1:0),3),function(de,ve,Ee,Se){var Ne;for(K(de,ve-257,5),K(de,Ee-1,5),K(de,Se-4,4),Ne=0;Ne<Se;Ne++)K(de,de.bl_tree[2*G[Ne]+1],3);ue(de,de.dyn_ltree,ve-1),ue(de,de.dyn_dtree,Ee-1)}(H,H.l_desc.max_code+1,H.d_desc.max_code+1,fe+1),re(H,H.dyn_ltree,H.dyn_dtree)),k(H),ce&&L(H)},i._tr_tally=function(H,Z,oe){return H.pending_buf[H.d_buf+2*H.last_lit]=Z>>>8&255,H.pending_buf[H.d_buf+2*H.last_lit+1]=255&Z,H.pending_buf[H.l_buf+H.last_lit]=255&oe,H.last_lit++,Z===0?H.dyn_ltree[2*oe]++:(H.matches++,Z--,H.dyn_ltree[2*(T[oe]+d+1)]++,H.dyn_dtree[2*B(Z)]++),H.last_lit===H.lit_bufsize-1},i._tr_align=function(H){K(H,2,3),te(H,b,ee),function(Z){Z.bi_valid===16?(X(Z,Z.bi_buf),Z.bi_buf=0,Z.bi_valid=0):8<=Z.bi_valid&&(Z.pending_buf[Z.pending++]=255&Z.bi_buf,Z.bi_buf>>=8,Z.bi_valid-=8)}(H)}},{"../utils/common":41}],53:[function(e,n,i){n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,n,i){(function(a){(function(o,s){if(!o.setImmediate){var u,c,l,d,h=1,f={},g=!1,m=o.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(o);p=p&&p.setTimeout?p:o,u={}.toString.call(o.process)==="[object process]"?function(A){tr.nextTick(function(){v(A)})}:function(){if(o.postMessage&&!o.importScripts){var A=!0,C=o.onmessage;return o.onmessage=function(){A=!1},o.postMessage("","*"),o.onmessage=C,A}}()?(d="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",b,!1):o.attachEvent("onmessage",b),function(A){o.postMessage(d+A,"*")}):o.MessageChannel?((l=new MessageChannel).port1.onmessage=function(A){v(A.data)},function(A){l.port2.postMessage(A)}):m&&"onreadystatechange"in m.createElement("script")?(c=m.documentElement,function(A){var C=m.createElement("script");C.onreadystatechange=function(){v(A),C.onreadystatechange=null,c.removeChild(C),C=null},c.appendChild(C)}):function(A){setTimeout(v,0,A)},p.setImmediate=function(A){typeof A!="function"&&(A=new Function(""+A));for(var C=new Array(arguments.length-1),M=0;M<C.length;M++)C[M]=arguments[M+1];var z={callback:A,args:C};return f[h]=z,u(h),h++},p.clearImmediate=y}function y(A){delete f[A]}function v(A){if(g)setTimeout(v,0,A);else{var C=f[A];if(C){g=!0;try{(function(M){var z=M.callback,W=M.args;switch(W.length){case 0:z();break;case 1:z(W[0]);break;case 2:z(W[0],W[1]);break;case 3:z(W[0],W[1],W[2]);break;default:z.apply(s,W)}})(C)}finally{y(A),g=!1}}}}function b(A){A.source===o&&typeof A.data=="string"&&A.data.indexOf(d)===0&&v(+A.data.slice(d.length))}})(typeof self=="undefined"?a===void 0?this:a:self)}).call(this,typeof Ma!="undefined"?Ma:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})})(H_);var iz=H_.exports;const az=o1(iz);var td={exports:{}},oz={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};function sz(r){return r&&r.replace?r.replace(/([&"<>'])/g,function(t,e){return oz[e]}):r}var uz=sz,zm=uz,$_=pm.Stream,cz=" ";function lz(r,t){typeof t!="object"&&(t={indent:t});var e=t.stream?new $_:null,n="",i=!1,a=t.indent?t.indent===!0?cz:t.indent:"",o=!0;function s(h){o?tr.nextTick(h):h()}function u(h,f){if(f!==void 0&&(n+=f),h&&!i&&(e=e||new $_,i=!0),h&&i){var g=n;s(function(){e.emit("data",g)}),n=""}}function c(h,f){Hm(u,rd(h,a,a?1:0),f)}function l(){if(e){var h=n;s(function(){e.emit("data",h),e.emit("end"),e.readable=!1,e.emit("close")})}}function d(h){var f=h.encoding||"UTF-8",g={version:"1.0",encoding:f};h.standalone&&(g.standalone=h.standalone),c({"?xml":{_attr:g}}),n=n.replace("/>","?>")}return s(function(){o=!1}),t.declaration&&d(t.declaration),r&&r.forEach?r.forEach(function(h,f){var g;f+1===r.length&&(g=l),c(h,g)}):c(r,l),e?(e.readable=!0,e):n}function fz(){var r=Array.prototype.slice.call(arguments),t={_elem:rd(r)};return t.push=function(e){if(!this.append)throw new Error("not assigned to a parent!");var n=this,i=this._elem.indent;Hm(this.append,rd(e,i,this._elem.icount+(i?1:0)),function(){n.append(!0)})},t.close=function(e){e!==void 0&&this.push(e),this.end&&this.end()},t}function hz(r,t){return new Array(t||0).join(r||"")}function rd(r,t,e){e=e||0;var n=hz(t,e),i,a=r,o=!1;if(typeof r=="object"){var s=Object.keys(r);if(i=s[0],a=r[i],a&&a._elem)return a._elem.name=i,a._elem.icount=e,a._elem.indent=t,a._elem.indents=n,a._elem.interrupt=a,a._elem}var u=[],c=[],l;function d(h){var f=Object.keys(h);f.forEach(function(g){u.push(dz(g,h[g]))})}switch(typeof a){case"object":if(a===null)break;a._attr&&d(a._attr),a._cdata&&c.push(("<![CDATA["+a._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),a.forEach&&(l=!1,c.push(""),a.forEach(function(h){if(typeof h=="object"){var f=Object.keys(h)[0];f=="_attr"?d(h._attr):c.push(rd(h,t,e+1))}else c.pop(),l=!0,c.push(zm(h))}),l||c.push(""));break;default:c.push(zm(a))}return{name:i,interrupt:o,attributes:u,content:c,icount:e,indents:n,indent:t}}function Hm(r,t,e){if(typeof t!="object")return r(!1,t);var n=t.interrupt?1:t.content.length;function i(){for(;t.content.length;){var o=t.content.shift();if(o!==void 0){if(a(o))return;Hm(r,o)}}r(!1,(n>1?t.indents:"")+(t.name?"</"+t.name+">":"")+(t.indent&&!e?`
`:"")),e&&e()}function a(o){return o.interrupt?(o.interrupt.append=r,o.interrupt.end=i,o.interrupt=!1,r(!0),!0):!1}if(r(!1,t.indents+(t.name?"<"+t.name:"")+(t.attributes.length?" "+t.attributes.join(" "):"")+(n?t.name?">":"":t.name?"/>":"")+(t.indent&&n>1?`
`:"")),!n)return r(!1,t.indent?`
`:"");a(t)||i()}function dz(r,t){return r+'="'+zm(t)+'"'}td.exports=lz;td.exports.element=td.exports.Element=fz;var pz=td.exports;const hn=o1(pz),V_=0,q_=32,mz=32,gz=(r,t)=>{const e=t.replace(/-/g,"");if(e.length!==mz)throw new Error(`Error: Cannot extract GUID from font filename: ${t}`);const i=e.replace(/(..)/g,"$1 ").trim().split(" ").map(u=>parseInt(u,16));i.reverse();const o=r.slice(V_,q_).map((u,c)=>u^i[c%i.length]);return Buffer.concat([r.slice(0,V_),o,r.slice(q_)])};class vz{format(t,e={stack:[]}){const n=t.prepForXml(e);if(n)return n;throw Error("XMLComponent did not format correctly")}}class yz{replace(t,e,n){let i=t;return e.forEach((a,o)=>{i=i.replace(new RegExp(`{${a.fileName}}`,"g"),(n+o).toString())}),i}getMediaData(t,e){return e.Array.filter(n=>t.search(`{${n.fileName}}`)>0)}}class bz{replace(t,e){let n=t;for(const i of e)n=n.replace(new RegExp(`{${i.reference}-${i.instance}}`,"g"),i.numId.toString());return n}}class wz{constructor(){Be(this,"formatter"),Be(this,"imageReplacer"),Be(this,"numberingReplacer"),this.formatter=new vz,this.imageReplacer=new yz,this.numberingReplacer=new bz}compile(t,e){const n=new az,i=this.xmlifyFile(t,e),a=new Map(Object.entries(i));for(const[,o]of a)if(Array.isArray(o))for(const s of o)n.file(s.path,s.data);else n.file(o.path,o.data);for(const o of t.Media.Array)o.type!=="svg"?n.file(`word/media/${o.fileName}`,o.data):(n.file(`word/media/${o.fileName}`,o.data),n.file(`word/media/${o.fallback.fileName}`,o.fallback.data));for(const{data:o,name:s,fontKey:u}of t.FontTable.fontOptionsWithKey){const[c]=s.split(".");n.file(`word/fonts/${c}.odttf`,gz(o,u))}return n}xmlifyFile(t,e){const n=t.Document.Relationships.RelationshipCount+1,i=hn(this.formatter.format(t.Document.View,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),a=this.imageReplacer.getMediaData(i,t.Media);return{Relationships:{data:(()=>(a.forEach((o,s)=>{t.Document.Relationships.createRelationship(n+s,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${o.fileName}`)}),hn(this.formatter.format(t.Document.Relationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}})))(),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const o=this.imageReplacer.replace(i,a,n);return this.numberingReplacer.replace(o,t.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const o=hn(this.formatter.format(t.Styles,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(o,t.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:hn(this.formatter.format(t.CoreProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:hn(this.formatter.format(t.Numbering,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:hn(this.formatter.format(t.FileRelationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:t.Headers.map((o,s)=>{const u=hn(this.formatter.format(o.View,{viewWrapper:o,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(u,t.Media).forEach((l,d)=>{o.Relationships.createRelationship(d,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${l.fileName}`)}),{data:hn(this.formatter.format(o.Relationships,{viewWrapper:o,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${s+1}.xml.rels`}}),FooterRelationships:t.Footers.map((o,s)=>{const u=hn(this.formatter.format(o.View,{viewWrapper:o,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(u,t.Media).forEach((l,d)=>{o.Relationships.createRelationship(d,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${l.fileName}`)}),{data:hn(this.formatter.format(o.Relationships,{viewWrapper:o,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${s+1}.xml.rels`}}),Headers:t.Headers.map((o,s)=>{const u=hn(this.formatter.format(o.View,{viewWrapper:o,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}),c=this.imageReplacer.getMediaData(u,t.Media),l=this.imageReplacer.replace(u,c,0);return{data:this.numberingReplacer.replace(l,t.Numbering.ConcreteNumbering),path:`word/header${s+1}.xml`}}),Footers:t.Footers.map((o,s)=>{const u=hn(this.formatter.format(o.View,{viewWrapper:o,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}),c=this.imageReplacer.getMediaData(u,t.Media),l=this.imageReplacer.replace(u,c,0);return{data:this.numberingReplacer.replace(l,t.Numbering.ConcreteNumbering),path:`word/footer${s+1}.xml`}}),ContentTypes:{data:hn(this.formatter.format(t.ContentTypes,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:hn(this.formatter.format(t.CustomProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:hn(this.formatter.format(t.AppProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:hn(this.formatter.format(t.FootNotes.View,{viewWrapper:t.FootNotes,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:hn(this.formatter.format(t.FootNotes.Relationships,{viewWrapper:t.FootNotes,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:hn(this.formatter.format(t.Settings,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:hn(this.formatter.format(t.Comments,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:hn(this.formatter.format(t.FontTable.View,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:(()=>hn(this.formatter.format(t.FontTable.Relationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}))(),path:"word/_rels/fontTable.xml.rels"}}}}const xz={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},dl=r=>r===!0?xz.WITH_2_BLANKS:r===!1?void 0:r;class _z{static toString(t,e){return Ih(this,null,function*(){return yield this.compiler.compile(t,dl(e)).generateAsync({type:"string",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBuffer(t,e){return Ih(this,null,function*(){return yield this.compiler.compile(t,dl(e)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBase64String(t,e){return Ih(this,null,function*(){return yield this.compiler.compile(t,dl(e)).generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBlob(t,e){return Ih(this,null,function*(){return yield this.compiler.compile(t,dl(e)).generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toStream(t,e){const n=new pm.Stream;return this.compiler.compile(t,dl(e)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(a=>{n.emit("data",a),n.emit("end")}),n}}Be(_z,"compiler",new wz);var Ez={exports:{}},Az=new Proxy({},{get(){throw new Error('Module "" has been externalized for browser compatibility and cannot be accessed in client code.')}}),Tz=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Az}),G_=iT(Tz);/**
* [js-md5]{@link https://github.com/emn178/js-md5}
*
* @namespace md5
* @version 0.8.3
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2023
* @license MIT
*/(function(r){(function(){var t="input is invalid type",e="finalize already called",n=typeof window=="object",i=n?window:{};i.JS_MD5_NO_WINDOW&&(n=!1);var a=!n&&typeof self=="object",o=!i.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?i=ot:a&&(i=self);var s=!i.JS_MD5_NO_COMMON_JS&&!0&&r.exports,u=!i.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",c="0123456789abcdef".split(""),l=[128,32768,8388608,-2147483648],d=[0,8,16,24],h=["hex","array","digest","buffer","arrayBuffer","base64"],f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),g=[],m;if(u){var p=new ArrayBuffer(68);m=new Uint8Array(p),g=new Uint32Array(p)}var y=Array.isArray;(i.JS_MD5_NO_NODE_JS||!y)&&(y=function(I){return Object.prototype.toString.call(I)==="[object Array]"});var v=ArrayBuffer.isView;u&&(i.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!v)&&(v=function(I){return typeof I=="object"&&I.buffer&&I.buffer.constructor===ArrayBuffer});var b=function(I){var O=typeof I;if(O==="string")return[I,!0];if(O!=="object"||I===null)throw new Error(t);if(u&&I.constructor===ArrayBuffer)return[new Uint8Array(I),!1];if(!y(I)&&!v(I))throw new Error(t);return[I,!1]},A=function(I){return function(O){return new U(!0).update(O)[I]()}},C=function(){var I=A("hex");o&&(I=M(I)),I.create=function(){return new U},I.update=function(S){return I.create().update(S)};for(var O=0;O<h.length;++O){var T=h[O];I[T]=A(T)}return I},M=function(I){var O=G_,T=G_.Buffer,S;T.from&&!i.JS_MD5_NO_BUFFER_FROM?S=T.from:S=function(w){return new T(w)};var x=function(w){if(typeof w=="string")return O.createHash("md5").update(w,"utf8").digest("hex");if(w==null)throw new Error(t);return w.constructor===ArrayBuffer&&(w=new Uint8Array(w)),y(w)||v(w)||w.constructor===T?O.createHash("md5").update(S(w)).digest("hex"):I(w)};return x},z=function(I){return function(O,T){return new G(O,!0).update(T)[I]()}},W=function(){var I=z("hex");I.create=function(S){return new G(S)},I.update=function(S,x){return I.create(S).update(x)};for(var O=0;O<h.length;++O){var T=h[O];I[T]=z(T)}return I};function U(I){if(I)g[0]=g[16]=g[1]=g[2]=g[3]=g[4]=g[5]=g[6]=g[7]=g[8]=g[9]=g[10]=g[11]=g[12]=g[13]=g[14]=g[15]=0,this.blocks=g,this.buffer8=m;else if(u){var O=new ArrayBuffer(68);this.buffer8=new Uint8Array(O),this.blocks=new Uint32Array(O)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}U.prototype.update=function(I){if(this.finalized)throw new Error(e);var O=b(I);I=O[0];for(var T=O[1],S,x=0,w,_=I.length,E=this.blocks,R=this.buffer8;x<_;){if(this.hashed&&(this.hashed=!1,E[0]=E[16],E[16]=E[1]=E[2]=E[3]=E[4]=E[5]=E[6]=E[7]=E[8]=E[9]=E[10]=E[11]=E[12]=E[13]=E[14]=E[15]=0),T)if(u)for(w=this.start;x<_&&w<64;++x)S=I.charCodeAt(x),S<128?R[w++]=S:S<2048?(R[w++]=192|S>>>6,R[w++]=128|S&63):S<55296||S>=57344?(R[w++]=224|S>>>12,R[w++]=128|S>>>6&63,R[w++]=128|S&63):(S=65536+((S&1023)<<10|I.charCodeAt(++x)&1023),R[w++]=240|S>>>18,R[w++]=128|S>>>12&63,R[w++]=128|S>>>6&63,R[w++]=128|S&63);else for(w=this.start;x<_&&w<64;++x)S=I.charCodeAt(x),S<128?E[w>>>2]|=S<<d[w++&3]:S<2048?(E[w>>>2]|=(192|S>>>6)<<d[w++&3],E[w>>>2]|=(128|S&63)<<d[w++&3]):S<55296||S>=57344?(E[w>>>2]|=(224|S>>>12)<<d[w++&3],E[w>>>2]|=(128|S>>>6&63)<<d[w++&3],E[w>>>2]|=(128|S&63)<<d[w++&3]):(S=65536+((S&1023)<<10|I.charCodeAt(++x)&1023),E[w>>>2]|=(240|S>>>18)<<d[w++&3],E[w>>>2]|=(128|S>>>12&63)<<d[w++&3],E[w>>>2]|=(128|S>>>6&63)<<d[w++&3],E[w>>>2]|=(128|S&63)<<d[w++&3]);else if(u)for(w=this.start;x<_&&w<64;++x)R[w++]=I[x];else for(w=this.start;x<_&&w<64;++x)E[w>>>2]|=I[x]<<d[w++&3];this.lastByteIndex=w,this.bytes+=w-this.start,w>=64?(this.start=w-64,this.hash(),this.hashed=!0):this.start=w}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},U.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var I=this.blocks,O=this.lastByteIndex;I[O>>>2]|=l[O&3],O>=56&&(this.hashed||this.hash(),I[0]=I[16],I[16]=I[1]=I[2]=I[3]=I[4]=I[5]=I[6]=I[7]=I[8]=I[9]=I[10]=I[11]=I[12]=I[13]=I[14]=I[15]=0),I[14]=this.bytes<<3,I[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},U.prototype.hash=function(){var I,O,T,S,x,w,_=this.blocks;this.first?(I=_[0]-680876937,I=(I<<7|I>>>25)-271733879<<0,S=(-1732584194^I&2004318071)+_[1]-117830708,S=(S<<12|S>>>20)+I<<0,T=(-271733879^S&(I^-271733879))+_[2]-1126478375,T=(T<<17|T>>>15)+S<<0,O=(I^T&(S^I))+_[3]-1316259209,O=(O<<22|O>>>10)+T<<0):(I=this.h0,O=this.h1,T=this.h2,S=this.h3,I+=(S^O&(T^S))+_[0]-680876936,I=(I<<7|I>>>25)+O<<0,S+=(T^I&(O^T))+_[1]-389564586,S=(S<<12|S>>>20)+I<<0,T+=(O^S&(I^O))+_[2]+606105819,T=(T<<17|T>>>15)+S<<0,O+=(I^T&(S^I))+_[3]-1044525330,O=(O<<22|O>>>10)+T<<0),I+=(S^O&(T^S))+_[4]-176418897,I=(I<<7|I>>>25)+O<<0,S+=(T^I&(O^T))+_[5]+1200080426,S=(S<<12|S>>>20)+I<<0,T+=(O^S&(I^O))+_[6]-1473231341,T=(T<<17|T>>>15)+S<<0,O+=(I^T&(S^I))+_[7]-45705983,O=(O<<22|O>>>10)+T<<0,I+=(S^O&(T^S))+_[8]+1770035416,I=(I<<7|I>>>25)+O<<0,S+=(T^I&(O^T))+_[9]-1958414417,S=(S<<12|S>>>20)+I<<0,T+=(O^S&(I^O))+_[10]-42063,T=(T<<17|T>>>15)+S<<0,O+=(I^T&(S^I))+_[11]-1990404162,O=(O<<22|O>>>10)+T<<0,I+=(S^O&(T^S))+_[12]+1804603682,I=(I<<7|I>>>25)+O<<0,S+=(T^I&(O^T))+_[13]-40341101,S=(S<<12|S>>>20)+I<<0,T+=(O^S&(I^O))+_[14]-1502002290,T=(T<<17|T>>>15)+S<<0,O+=(I^T&(S^I))+_[15]+1236535329,O=(O<<22|O>>>10)+T<<0,I+=(T^S&(O^T))+_[1]-165796510,I=(I<<5|I>>>27)+O<<0,S+=(O^T&(I^O))+_[6]-1069501632,S=(S<<9|S>>>23)+I<<0,T+=(I^O&(S^I))+_[11]+643717713,T=(T<<14|T>>>18)+S<<0,O+=(S^I&(T^S))+_[0]-373897302,O=(O<<20|O>>>12)+T<<0,I+=(T^S&(O^T))+_[5]-701558691,I=(I<<5|I>>>27)+O<<0,S+=(O^T&(I^O))+_[10]+38016083,S=(S<<9|S>>>23)+I<<0,T+=(I^O&(S^I))+_[15]-660478335,T=(T<<14|T>>>18)+S<<0,O+=(S^I&(T^S))+_[4]-405537848,O=(O<<20|O>>>12)+T<<0,I+=(T^S&(O^T))+_[9]+568446438,I=(I<<5|I>>>27)+O<<0,S+=(O^T&(I^O))+_[14]-1019803690,S=(S<<9|S>>>23)+I<<0,T+=(I^O&(S^I))+_[3]-187363961,T=(T<<14|T>>>18)+S<<0,O+=(S^I&(T^S))+_[8]+1163531501,O=(O<<20|O>>>12)+T<<0,I+=(T^S&(O^T))+_[13]-1444681467,I=(I<<5|I>>>27)+O<<0,S+=(O^T&(I^O))+_[2]-51403784,S=(S<<9|S>>>23)+I<<0,T+=(I^O&(S^I))+_[7]+1735328473,T=(T<<14|T>>>18)+S<<0,O+=(S^I&(T^S))+_[12]-1926607734,O=(O<<20|O>>>12)+T<<0,x=O^T,I+=(x^S)+_[5]-378558,I=(I<<4|I>>>28)+O<<0,S+=(x^I)+_[8]-2022574463,S=(S<<11|S>>>21)+I<<0,w=S^I,T+=(w^O)+_[11]+1839030562,T=(T<<16|T>>>16)+S<<0,O+=(w^T)+_[14]-35309556,O=(O<<23|O>>>9)+T<<0,x=O^T,I+=(x^S)+_[1]-1530992060,I=(I<<4|I>>>28)+O<<0,S+=(x^I)+_[4]+1272893353,S=(S<<11|S>>>21)+I<<0,w=S^I,T+=(w^O)+_[7]-155497632,T=(T<<16|T>>>16)+S<<0,O+=(w^T)+_[10]-1094730640,O=(O<<23|O>>>9)+T<<0,x=O^T,I+=(x^S)+_[13]+681279174,I=(I<<4|I>>>28)+O<<0,S+=(x^I)+_[0]-358537222,S=(S<<11|S>>>21)+I<<0,w=S^I,T+=(w^O)+_[3]-722521979,T=(T<<16|T>>>16)+S<<0,O+=(w^T)+_[6]+76029189,O=(O<<23|O>>>9)+T<<0,x=O^T,I+=(x^S)+_[9]-640364487,I=(I<<4|I>>>28)+O<<0,S+=(x^I)+_[12]-421815835,S=(S<<11|S>>>21)+I<<0,w=S^I,T+=(w^O)+_[15]+530742520,T=(T<<16|T>>>16)+S<<0,O+=(w^T)+_[2]-995338651,O=(O<<23|O>>>9)+T<<0,I+=(T^(O|~S))+_[0]-198630844,I=(I<<6|I>>>26)+O<<0,S+=(O^(I|~T))+_[7]+1126891415,S=(S<<10|S>>>22)+I<<0,T+=(I^(S|~O))+_[14]-1416354905,T=(T<<15|T>>>17)+S<<0,O+=(S^(T|~I))+_[5]-57434055,O=(O<<21|O>>>11)+T<<0,I+=(T^(O|~S))+_[12]+1700485571,I=(I<<6|I>>>26)+O<<0,S+=(O^(I|~T))+_[3]-1894986606,S=(S<<10|S>>>22)+I<<0,T+=(I^(S|~O))+_[10]-1051523,T=(T<<15|T>>>17)+S<<0,O+=(S^(T|~I))+_[1]-2054922799,O=(O<<21|O>>>11)+T<<0,I+=(T^(O|~S))+_[8]+1873313359,I=(I<<6|I>>>26)+O<<0,S+=(O^(I|~T))+_[15]-30611744,S=(S<<10|S>>>22)+I<<0,T+=(I^(S|~O))+_[6]-1560198380,T=(T<<15|T>>>17)+S<<0,O+=(S^(T|~I))+_[13]+1309151649,O=(O<<21|O>>>11)+T<<0,I+=(T^(O|~S))+_[4]-145523070,I=(I<<6|I>>>26)+O<<0,S+=(O^(I|~T))+_[11]-1120210379,S=(S<<10|S>>>22)+I<<0,T+=(I^(S|~O))+_[2]+718787259,T=(T<<15|T>>>17)+S<<0,O+=(S^(T|~I))+_[9]-343485551,O=(O<<21|O>>>11)+T<<0,this.first?(this.h0=I+1732584193<<0,this.h1=O-271733879<<0,this.h2=T-1732584194<<0,this.h3=S+271733878<<0,this.first=!1):(this.h0=this.h0+I<<0,this.h1=this.h1+O<<0,this.h2=this.h2+T<<0,this.h3=this.h3+S<<0)},U.prototype.hex=function(){this.finalize();var I=this.h0,O=this.h1,T=this.h2,S=this.h3;return c[I>>>4&15]+c[I&15]+c[I>>>12&15]+c[I>>>8&15]+c[I>>>20&15]+c[I>>>16&15]+c[I>>>28&15]+c[I>>>24&15]+c[O>>>4&15]+c[O&15]+c[O>>>12&15]+c[O>>>8&15]+c[O>>>20&15]+c[O>>>16&15]+c[O>>>28&15]+c[O>>>24&15]+c[T>>>4&15]+c[T&15]+c[T>>>12&15]+c[T>>>8&15]+c[T>>>20&15]+c[T>>>16&15]+c[T>>>28&15]+c[T>>>24&15]+c[S>>>4&15]+c[S&15]+c[S>>>12&15]+c[S>>>8&15]+c[S>>>20&15]+c[S>>>16&15]+c[S>>>28&15]+c[S>>>24&15]},U.prototype.toString=U.prototype.hex,U.prototype.digest=function(){this.finalize();var I=this.h0,O=this.h1,T=this.h2,S=this.h3;return[I&255,I>>>8&255,I>>>16&255,I>>>24&255,O&255,O>>>8&255,O>>>16&255,O>>>24&255,T&255,T>>>8&255,T>>>16&255,T>>>24&255,S&255,S>>>8&255,S>>>16&255,S>>>24&255]},U.prototype.array=U.prototype.digest,U.prototype.arrayBuffer=function(){this.finalize();var I=new ArrayBuffer(16),O=new Uint32Array(I);return O[0]=this.h0,O[1]=this.h1,O[2]=this.h2,O[3]=this.h3,I},U.prototype.buffer=U.prototype.arrayBuffer,U.prototype.base64=function(){for(var I,O,T,S="",x=this.array(),w=0;w<15;)I=x[w++],O=x[w++],T=x[w++],S+=f[I>>>2]+f[(I<<4|O>>>4)&63]+f[(O<<2|T>>>6)&63]+f[T&63];return I=x[w],S+=f[I>>>2]+f[I<<4&63]+"==",S};function G(I,O){var T,S=b(I);if(I=S[0],S[1]){var x=[],w=I.length,_=0,E;for(T=0;T<w;++T)E=I.charCodeAt(T),E<128?x[_++]=E:E<2048?(x[_++]=192|E>>>6,x[_++]=128|E&63):E<55296||E>=57344?(x[_++]=224|E>>>12,x[_++]=128|E>>>6&63,x[_++]=128|E&63):(E=65536+((E&1023)<<10|I.charCodeAt(++T)&1023),x[_++]=240|E>>>18,x[_++]=128|E>>>12&63,x[_++]=128|E>>>6&63,x[_++]=128|E&63);I=x}I.length>64&&(I=new U(!0).update(I).array());var R=[],F=[];for(T=0;T<64;++T){var B=I[T]||0;R[T]=92^B,F[T]=54^B}U.call(this,O),this.update(F),this.oKeyPad=R,this.inner=!0,this.sharedMemory=O}G.prototype=new U,G.prototype.finalize=function(){if(U.prototype.finalize.call(this),this.inner){this.inner=!1;var I=this.array();U.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(I),U.prototype.finalize.call(this)}};var ee=C();ee.md5=ee,ee.md5.hmac=W(),s?r.exports=ee:i.md5=ee})()})(Ez);var Ga={},on={exports:{}};(function(r,t){(function(e,n){r.exports=n()})(ot,function(){var e="1.13.7",n=typeof self=="object"&&self.self===self&&self||typeof ot=="object"&&ot.global===ot&&ot||Function("return this")()||{},i=Array.prototype,a=Object.prototype,o=typeof Symbol!="undefined"?Symbol.prototype:null,s=i.push,u=i.slice,c=a.toString,l=a.hasOwnProperty,d=typeof ArrayBuffer!="undefined",h=typeof DataView!="undefined",f=Array.isArray,g=Object.keys,m=Object.create,p=d&&ArrayBuffer.isView,y=isNaN,v=isFinite,b=!{toString:null}.propertyIsEnumerable("toString"),A=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],C=Math.pow(2,53)-1;function M(le,pe){return pe=pe==null?le.length-1:+pe,function(){for(var we=Math.max(arguments.length-pe,0),_e=Array(we),Ce=0;Ce<we;Ce++)_e[Ce]=arguments[Ce+pe];switch(pe){case 0:return le.call(this,_e);case 1:return le.call(this,arguments[0],_e);case 2:return le.call(this,arguments[0],arguments[1],_e)}var De=Array(pe+1);for(Ce=0;Ce<pe;Ce++)De[Ce]=arguments[Ce];return De[pe]=_e,le.apply(this,De)}}function z(le){var pe=typeof le;return pe==="function"||pe==="object"&&!!le}function W(le){return le===null}function U(le){return le===void 0}function G(le){return le===!0||le===!1||c.call(le)==="[object Boolean]"}function ee(le){return!!(le&&le.nodeType===1)}function I(le){var pe="[object "+le+"]";return function(we){return c.call(we)===pe}}var O=I("String"),T=I("Number"),S=I("Date"),x=I("RegExp"),w=I("Error"),_=I("Symbol"),E=I("ArrayBuffer"),R=I("Function"),F=n.document&&n.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof F!="function"&&(R=function(le){return typeof le=="function"||!1});var B=R,X=I("Object"),K=h&&(!/\[native code\]/.test(String(DataView))||X(new DataView(new ArrayBuffer(8)))),te=typeof Map!="undefined"&&X(new Map),$=I("DataView");function q(le){return le!=null&&B(le.getInt8)&&E(le.buffer)}var k=K?q:$,L=f||I("Array");function V(le,pe){return le!=null&&l.call(le,pe)}var J=I("Arguments");(function(){J(arguments)||(J=function(le){return V(le,"callee")})})();var re=J;function ae(le){return!_(le)&&v(le)&&!isNaN(parseFloat(le))}function j(le){return T(le)&&y(le)}function ue(le){return function(){return le}}function Q(le){return function(pe){var we=le(pe);return typeof we=="number"&&we>=0&&we<=C}}function P(le){return function(pe){return pe==null?void 0:pe[le]}}var H=P("byteLength"),Z=Q(H),oe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function ce(le){return p?p(le)&&!k(le):Z(le)&&oe.test(c.call(le))}var ne=d?ce:ue(!1),se=P("length");function fe(le){for(var pe={},we=le.length,_e=0;_e<we;++_e)pe[le[_e]]=!0;return{contains:function(Ce){return pe[Ce]===!0},push:function(Ce){return pe[Ce]=!0,le.push(Ce)}}}function de(le,pe){pe=fe(pe);var we=A.length,_e=le.constructor,Ce=B(_e)&&_e.prototype||a,De="constructor";for(V(le,De)&&!pe.contains(De)&&pe.push(De);we--;)De=A[we],De in le&&le[De]!==Ce[De]&&!pe.contains(De)&&pe.push(De)}function ve(le){if(!z(le))return[];if(g)return g(le);var pe=[];for(var we in le)V(le,we)&&pe.push(we);return b&&de(le,pe),pe}function Ee(le){if(le==null)return!0;var pe=se(le);return typeof pe=="number"&&(L(le)||O(le)||re(le))?pe===0:se(ve(le))===0}function Se(le,pe){var we=ve(pe),_e=we.length;if(le==null)return!_e;for(var Ce=Object(le),De=0;De<_e;De++){var Ve=we[De];if(pe[Ve]!==Ce[Ve]||!(Ve in Ce))return!1}return!0}function Ne(le){if(le instanceof Ne)return le;if(!(this instanceof Ne))return new Ne(le);this._wrapped=le}Ne.VERSION=e,Ne.prototype.value=function(){return this._wrapped},Ne.prototype.valueOf=Ne.prototype.toJSON=Ne.prototype.value,Ne.prototype.toString=function(){return String(this._wrapped)};function He(le){return new Uint8Array(le.buffer||le,le.byteOffset||0,H(le))}var qe="[object DataView]";function et(le,pe,we,_e){if(le===pe)return le!==0||1/le==1/pe;if(le==null||pe==null)return!1;if(le!==le)return pe!==pe;var Ce=typeof le;return Ce!=="function"&&Ce!=="object"&&typeof pe!="object"?!1:Ue(le,pe,we,_e)}function Ue(le,pe,we,_e){le instanceof Ne&&(le=le._wrapped),pe instanceof Ne&&(pe=pe._wrapped);var Ce=c.call(le);if(Ce!==c.call(pe))return!1;if(K&&Ce=="[object Object]"&&k(le)){if(!k(pe))return!1;Ce=qe}switch(Ce){case"[object RegExp]":case"[object String]":return""+le==""+pe;case"[object Number]":return+le!=+le?+pe!=+pe:+le==0?1/+le==1/pe:+le==+pe;case"[object Date]":case"[object Boolean]":return+le==+pe;case"[object Symbol]":return o.valueOf.call(le)===o.valueOf.call(pe);case"[object ArrayBuffer]":case qe:return Ue(He(le),He(pe),we,_e)}var De=Ce==="[object Array]";if(!De&&ne(le)){var Ve=H(le);if(Ve!==H(pe))return!1;if(le.buffer===pe.buffer&&le.byteOffset===pe.byteOffset)return!0;De=!0}if(!De){if(typeof le!="object"||typeof pe!="object")return!1;var ut=le.constructor,Vt=pe.constructor;if(ut!==Vt&&!(B(ut)&&ut instanceof ut&&B(Vt)&&Vt instanceof Vt)&&"constructor"in le&&"constructor"in pe)return!1}we=we||[],_e=_e||[];for(var jt=we.length;jt--;)if(we[jt]===le)return _e[jt]===pe;if(we.push(le),_e.push(pe),De){if(jt=le.length,jt!==pe.length)return!1;for(;jt--;)if(!et(le[jt],pe[jt],we,_e))return!1}else{var yn=ve(le),tn;if(jt=yn.length,ve(pe).length!==jt)return!1;for(;jt--;)if(tn=yn[jt],!(V(pe,tn)&&et(le[tn],pe[tn],we,_e)))return!1}return we.pop(),_e.pop(),!0}function Ge(le,pe){return et(le,pe)}function tt(le){if(!z(le))return[];var pe=[];for(var we in le)pe.push(we);return b&&de(le,pe),pe}function rt(le){var pe=se(le);return function(we){if(we==null)return!1;var _e=tt(we);if(se(_e))return!1;for(var Ce=0;Ce<pe;Ce++)if(!B(we[le[Ce]]))return!1;return le!==xt||!B(we[lt])}}var lt="forEach",Ft="has",Wt=["clear","delete"],dt=["get",Ft,"set"],Pt=Wt.concat(lt,dt),xt=Wt.concat(dt),gt=["add"].concat(Wt,lt,Ft),hr=te?rt(Pt):I("Map"),nr=te?rt(xt):I("WeakMap"),Tt=te?rt(gt):I("Set"),Kt=I("WeakSet");function rr(le){for(var pe=ve(le),we=pe.length,_e=Array(we),Ce=0;Ce<we;Ce++)_e[Ce]=le[pe[Ce]];return _e}function Ct(le){for(var pe=ve(le),we=pe.length,_e=Array(we),Ce=0;Ce<we;Ce++)_e[Ce]=[pe[Ce],le[pe[Ce]]];return _e}function ir(le){for(var pe={},we=ve(le),_e=0,Ce=we.length;_e<Ce;_e++)pe[le[we[_e]]]=we[_e];return pe}function ar(le){var pe=[];for(var we in le)B(le[we])&&pe.push(we);return pe.sort()}function kt(le,pe){return function(we){var _e=arguments.length;if(pe&&(we=Object(we)),_e<2||we==null)return we;for(var Ce=1;Ce<_e;Ce++)for(var De=arguments[Ce],Ve=le(De),ut=Ve.length,Vt=0;Vt<ut;Vt++){var jt=Ve[Vt];(!pe||we[jt]===void 0)&&(we[jt]=De[jt])}return we}}var Ae=kt(tt),Ie=kt(ve),je=kt(tt,!0);function at(){return function(){}}function _t(le){if(!z(le))return{};if(m)return m(le);var pe=at();pe.prototype=le;var we=new pe;return pe.prototype=null,we}function st(le,pe){var we=_t(le);return pe&&Ie(we,pe),we}function Ot(le){return z(le)?L(le)?le.slice():Ae({},le):le}function At(le,pe){return pe(le),le}function vt(le){return L(le)?le:[le]}Ne.toPath=vt;function St(le){return Ne.toPath(le)}function Dt(le,pe){for(var we=pe.length,_e=0;_e<we;_e++){if(le==null)return;le=le[pe[_e]]}return we?le:void 0}function Ht(le,pe,we){var _e=Dt(le,St(pe));return U(_e)?we:_e}function jr(le,pe){pe=St(pe);for(var we=pe.length,_e=0;_e<we;_e++){var Ce=pe[_e];if(!V(le,Ce))return!1;le=le[Ce]}return!!we}function gr(le){return le}function Pr(le){return le=Ie({},le),function(pe){return Se(pe,le)}}function Gr(le){return le=St(le),function(pe){return Dt(pe,le)}}function Xr(le,pe,we){if(pe===void 0)return le;switch(we==null?3:we){case 1:return function(_e){return le.call(pe,_e)};case 3:return function(_e,Ce,De){return le.call(pe,_e,Ce,De)};case 4:return function(_e,Ce,De,Ve){return le.call(pe,_e,Ce,De,Ve)}}return function(){return le.apply(pe,arguments)}}function be(le,pe,we){return le==null?gr:B(le)?Xr(le,pe,we):z(le)&&!L(le)?Pr(le):Gr(le)}function Re(le,pe){return be(le,pe,1/0)}Ne.iteratee=Re;function We(le,pe,we){return Ne.iteratee!==Re?Ne.iteratee(le,pe):be(le,pe,we)}function Ze(le,pe,we){pe=We(pe,we);for(var _e=ve(le),Ce=_e.length,De={},Ve=0;Ve<Ce;Ve++){var ut=_e[Ve];De[ut]=pe(le[ut],ut,le)}return De}function mt(){}function nt(le){return le==null?mt:function(pe){return Ht(le,pe)}}function it(le,pe,we){var _e=Array(Math.max(0,le));pe=Xr(pe,we,1);for(var Ce=0;Ce<le;Ce++)_e[Ce]=pe(Ce);return _e}function $t(le,pe){return pe==null&&(pe=le,le=0),le+Math.floor(Math.random()*(pe-le+1))}var Nt=Date.now||function(){return new Date().getTime()};function Lt(le){var pe=function(De){return le[De]},we="(?:"+ve(le).join("|")+")",_e=RegExp(we),Ce=RegExp(we,"g");return function(De){return De=De==null?"":""+De,_e.test(De)?De.replace(Ce,pe):De}}var Et={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},dr=Lt(Et),_r=ir(Et),Jt=Lt(_r),Sr=Ne.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Fr=/(.)^/,mn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Xn=/\\|'|\r|\n|\u2028|\u2029/g;function jn(le){return"\\"+mn[le]}var ca=/^\s*(\w|\$)+\s*$/;function Da(le,pe,we){!pe&&we&&(pe=we),pe=je({},pe,Ne.templateSettings);var _e=RegExp([(pe.escape||Fr).source,(pe.interpolate||Fr).source,(pe.evaluate||Fr).source].join("|")+"|$","g"),Ce=0,De="__p+='";le.replace(_e,function(jt,yn,tn,df,pf){return De+=le.slice(Ce,pf).replace(Xn,jn),Ce=pf+jt.length,yn?De+=`'+
((__t=(`+yn+`))==null?'':_.escape(__t))+
'`:tn?De+=`'+
((__t=(`+tn+`))==null?'':__t)+
'`:df&&(De+=`';
`+df+`
__p+='`),jt}),De+=`';
`;var Ve=pe.variable;if(Ve){if(!ca.test(Ve))throw new Error("variable is not a bare identifier: "+Ve)}else De=`with(obj||{}){
`+De+`}
`,Ve="obj";De=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
`+De+`return __p;
`;var ut;try{ut=new Function(Ve,"_",De)}catch(jt){throw jt.source=De,jt}var Vt=function(jt){return ut.call(this,jt,Ne)};return Vt.source="function("+Ve+`){
`+De+"}",Vt}function la(le,pe,we){pe=St(pe);var _e=pe.length;if(!_e)return B(we)?we.call(le):we;for(var Ce=0;Ce<_e;Ce++){var De=le==null?void 0:le[pe[Ce]];De===void 0&&(De=we,Ce=_e),le=B(De)?De.call(le):De}return le}var lr=0;function Zt(le){var pe=++lr+"";return le?le+pe:pe}function Vi(le){var pe=Ne(le);return pe._chain=!0,pe}function Fi(le,pe,we,_e,Ce){if(!(_e instanceof pe))return le.apply(we,Ce);var De=_t(le.prototype),Ve=le.apply(De,Ce);return z(Ve)?Ve:De}var oi=M(function(le,pe){var we=oi.placeholder,_e=function(){for(var Ce=0,De=pe.length,Ve=Array(De),ut=0;ut<De;ut++)Ve[ut]=pe[ut]===we?arguments[Ce++]:pe[ut];for(;Ce<arguments.length;)Ve.push(arguments[Ce++]);return Fi(le,_e,this,this,Ve)};return _e});oi.placeholder=Ne;var gn=M(function(le,pe,we){if(!B(le))throw new TypeError("Bind must be called on a function");var _e=M(function(Ce){return Fi(le,_e,pe,this,we.concat(Ce))});return _e}),Er=Q(se);function xn(le,pe,we,_e){if(_e=_e||[],!pe&&pe!==0)pe=1/0;else if(pe<=0)return _e.concat(le);for(var Ce=_e.length,De=0,Ve=se(le);De<Ve;De++){var ut=le[De];if(Er(ut)&&(L(ut)||re(ut)))if(pe>1)xn(ut,pe-1,we,_e),Ce=_e.length;else for(var Vt=0,jt=ut.length;Vt<jt;)_e[Ce++]=ut[Vt++];else we||(_e[Ce++]=ut)}return _e}var Ca=M(function(le,pe){pe=xn(pe,!1,!1);var we=pe.length;if(we<1)throw new Error("bindAll must be passed function names");for(;we--;){var _e=pe[we];le[_e]=gn(le[_e],le)}return le});function ko(le,pe){var we=function(_e){var Ce=we.cache,De=""+(pe?pe.apply(this,arguments):_e);return V(Ce,De)||(Ce[De]=le.apply(this,arguments)),Ce[De]};return we.cache={},we}var qi=M(function(le,pe,we){return setTimeout(function(){return le.apply(null,we)},pe)}),Ni=oi(qi,Ne,1);function fs(le,pe,we){var _e,Ce,De,Ve,ut=0;we||(we={});var Vt=function(){ut=we.leading===!1?0:Nt(),_e=null,Ve=le.apply(Ce,De),_e||(Ce=De=null)},jt=function(){var yn=Nt();!ut&&we.leading===!1&&(ut=yn);var tn=pe-(yn-ut);return Ce=this,De=arguments,tn<=0||tn>pe?(_e&&(clearTimeout(_e),_e=null),ut=yn,Ve=le.apply(Ce,De),_e||(Ce=De=null)):!_e&&we.trailing!==!1&&(_e=setTimeout(Vt,tn)),Ve};return jt.cancel=function(){clearTimeout(_e),ut=0,_e=Ce=De=null},jt}function Qa(le,pe,we){var _e,Ce,De,Ve,ut,Vt=function(){var yn=Nt()-Ce;pe>yn?_e=setTimeout(Vt,pe-yn):(_e=null,we||(Ve=le.apply(ut,De)),_e||(De=ut=null))},jt=M(function(yn){return ut=this,De=yn,Ce=Nt(),_e||(_e=setTimeout(Vt,pe),we&&(Ve=le.apply(ut,De))),Ve});return jt.cancel=function(){clearTimeout(_e),_e=De=ut=null},jt}function hs(le,pe){return oi(pe,le)}function Oa(le){return function(){return!le.apply(this,arguments)}}function Ro(){var le=arguments,pe=le.length-1;return function(){for(var we=pe,_e=le[pe].apply(this,arguments);we--;)_e=le[we].call(this,_e);return _e}}function ds(le,pe){return function(){if(--le<1)return pe.apply(this,arguments)}}function eo(le,pe){var we;return function(){return--le>0&&(we=pe.apply(this,arguments)),le<=1&&(pe=null),we}}var Fo=oi(eo,2);function Gl(le,pe,we){pe=We(pe,we);for(var _e=ve(le),Ce,De=0,Ve=_e.length;De<Ve;De++)if(Ce=_e[De],pe(le[Ce],Ce,le))return Ce}function Xl(le){return function(pe,we,_e){we=We(we,_e);for(var Ce=se(pe),De=le>0?0:Ce-1;De>=0&&De<Ce;De+=le)if(we(pe[De],De,pe))return De;return-1}}var ps=Xl(1),Kl=Xl(-1);function Zl(le,pe,we,_e){we=We(we,_e,1);for(var Ce=we(pe),De=0,Ve=se(le);De<Ve;){var ut=Math.floor((De+Ve)/2);we(le[ut])<Ce?De=ut+1:Ve=ut}return De}function Yl(le,pe,we){return function(_e,Ce,De){var Ve=0,ut=se(_e);if(typeof De=="number")le>0?Ve=De>=0?De:Math.max(De+ut,Ve):ut=De>=0?Math.min(De+1,ut):De+ut+1;else if(we&&De&&ut)return De=we(_e,Ce),_e[De]===Ce?De:-1;if(Ce!==Ce)return De=pe(u.call(_e,Ve,ut),j),De>=0?De+Ve:-1;for(De=le>0?Ve:ut-1;De>=0&&De<ut;De+=le)if(_e[De]===Ce)return De;return-1}}var Jl=Yl(1,ps,Zl),zd=Yl(-1,Kl);function Dr(le,pe,we){var _e=Er(le)?ps:Gl,Ce=_e(le,pe,we);if(Ce!==void 0&&Ce!==-1)return le[Ce]}function Nr(le,pe){return Dr(le,Pr(pe))}function fa(le,pe,we){pe=Xr(pe,we);var _e,Ce;if(Er(le))for(_e=0,Ce=le.length;_e<Ce;_e++)pe(le[_e],_e,le);else{var De=ve(le);for(_e=0,Ce=De.length;_e<Ce;_e++)pe(le[De[_e]],De[_e],le)}return le}function to(le,pe,we){pe=We(pe,we);for(var _e=!Er(le)&&ve(le),Ce=(_e||le).length,De=Array(Ce),Ve=0;Ve<Ce;Ve++){var ut=_e?_e[Ve]:Ve;De[Ve]=pe(le[ut],ut,le)}return De}function Ql(le){var pe=function(we,_e,Ce,De){var Ve=!Er(we)&&ve(we),ut=(Ve||we).length,Vt=le>0?0:ut-1;for(De||(Ce=we[Ve?Ve[Vt]:Vt],Vt+=le);Vt>=0&&Vt<ut;Vt+=le){var jt=Ve?Ve[Vt]:Vt;Ce=_e(Ce,we[jt],jt,we)}return Ce};return function(we,_e,Ce,De){var Ve=arguments.length>=3;return pe(we,Xr(_e,De,4),Ce,Ve)}}var dc=Ql(1),ef=Ql(-1);function No(le,pe,we){var _e=[];return pe=We(pe,we),fa(le,function(Ce,De,Ve){pe(Ce,De,Ve)&&_e.push(Ce)}),_e}function tf(le,pe,we){return No(le,Oa(We(pe)),we)}function rf(le,pe,we){pe=We(pe,we);for(var _e=!Er(le)&&ve(le),Ce=(_e||le).length,De=0;De<Ce;De++){var Ve=_e?_e[De]:De;if(!pe(le[Ve],Ve,le))return!1}return!0}function vn(le,pe,we){pe=We(pe,we);for(var _e=!Er(le)&&ve(le),Ce=(_e||le).length,De=0;De<Ce;De++){var Ve=_e?_e[De]:De;if(pe(le[Ve],Ve,le))return!0}return!1}function Mi(le,pe,we,_e){return Er(le)||(le=rr(le)),(typeof we!="number"||_e)&&(we=0),Jl(le,pe,we)>=0}var ro=M(function(le,pe,we){var _e,Ce;return B(pe)?Ce=pe:(pe=St(pe),_e=pe.slice(0,-1),pe=pe[pe.length-1]),to(le,function(De){var Ve=Ce;if(!Ve){if(_e&&_e.length&&(De=Dt(De,_e)),De==null)return;Ve=De[pe]}return Ve==null?Ve:Ve.apply(De,we)})});function qs(le,pe){return to(le,Gr(pe))}function pc(le,pe){return No(le,Pr(pe))}function si(le,pe,we){var _e=-1/0,Ce=-1/0,De,Ve;if(pe==null||typeof pe=="number"&&typeof le[0]!="object"&&le!=null){le=Er(le)?le:rr(le);for(var ut=0,Vt=le.length;ut<Vt;ut++)De=le[ut],De!=null&&De>_e&&(_e=De)}else pe=We(pe,we),fa(le,function(jt,yn,tn){Ve=pe(jt,yn,tn),(Ve>Ce||Ve===-1/0&&_e===-1/0)&&(_e=jt,Ce=Ve)});return _e}function nf(le,pe,we){var _e=1/0,Ce=1/0,De,Ve;if(pe==null||typeof pe=="number"&&typeof le[0]!="object"&&le!=null){le=Er(le)?le:rr(le);for(var ut=0,Vt=le.length;ut<Vt;ut++)De=le[ut],De!=null&&De<_e&&(_e=De)}else pe=We(pe,we),fa(le,function(jt,yn,tn){Ve=pe(jt,yn,tn),(Ve<Ce||Ve===1/0&&_e===1/0)&&(_e=jt,Ce=Ve)});return _e}var af=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function mc(le){return le?L(le)?u.call(le):O(le)?le.match(af):Er(le)?to(le,gr):rr(le):[]}function gc(le,pe,we){if(pe==null||we)return Er(le)||(le=rr(le)),le[$t(le.length-1)];var _e=mc(le),Ce=se(_e);pe=Math.max(Math.min(pe,Ce),0);for(var De=Ce-1,Ve=0;Ve<pe;Ve++){var ut=$t(Ve,De),Vt=_e[Ve];_e[Ve]=_e[ut],_e[ut]=Vt}return _e.slice(0,pe)}function of(le){return gc(le,1/0)}function sf(le,pe,we){var _e=0;return pe=We(pe,we),qs(to(le,function(Ce,De,Ve){return{value:Ce,index:_e++,criteria:pe(Ce,De,Ve)}}).sort(function(Ce,De){var Ve=Ce.criteria,ut=De.criteria;if(Ve!==ut){if(Ve>ut||Ve===void 0)return 1;if(Ve<ut||ut===void 0)return-1}return Ce.index-De.index}),"value")}function Rn(le,pe){return function(we,_e,Ce){var De=pe?[[],[]]:{};return _e=We(_e,Ce),fa(we,function(Ve,ut){var Vt=_e(Ve,ut,we);le(De,Ve,Vt)}),De}}var Hd=Rn(function(le,pe,we){V(le,we)?le[we].push(pe):le[we]=[pe]}),vi=Rn(function(le,pe,we){le[we]=pe}),$d=Rn(function(le,pe,we){V(le,we)?le[we]++:le[we]=1}),uf=Rn(function(le,pe,we){le[we?0:1].push(pe)},!0);function Ia(le){return le==null?0:Er(le)?le.length:ve(le).length}function Gs(le,pe,we){return pe in we}var Xs=M(function(le,pe){var we={},_e=pe[0];if(le==null)return we;B(_e)?(pe.length>1&&(_e=Xr(_e,pe[1])),pe=tt(le)):(_e=Gs,pe=xn(pe,!1,!1),le=Object(le));for(var Ce=0,De=pe.length;Ce<De;Ce++){var Ve=pe[Ce],ut=le[Ve];_e(ut,Ve,le)&&(we[Ve]=ut)}return we}),Wr=M(function(le,pe){var we=pe[0],_e;return B(we)?(we=Oa(we),pe.length>1&&(_e=pe[1])):(pe=to(xn(pe,!1,!1),String),we=function(Ce,De){return!Mi(pe,De)}),Xs(le,we,_e)});function ha(le,pe,we){return u.call(le,0,Math.max(0,le.length-(pe==null||we?1:pe)))}function ms(le,pe,we){return le==null||le.length<1?pe==null||we?void 0:[]:pe==null||we?le[0]:ha(le,le.length-pe)}function Ks(le,pe,we){return u.call(le,pe==null||we?1:pe)}function vc(le,pe,we){return le==null||le.length<1?pe==null||we?void 0:[]:pe==null||we?le[le.length-1]:Ks(le,Math.max(0,le.length-pe))}function Vd(le){return No(le,Boolean)}function qd(le,pe){return xn(le,pe,!1)}var cf=M(function(le,pe){return pe=xn(pe,!0,!0),No(le,function(we){return!Mi(pe,we)})}),lf=M(function(le,pe){return cf(le,pe)});function Mo(le,pe,we,_e){G(pe)||(_e=we,we=pe,pe=!1),we!=null&&(we=We(we,_e));for(var Ce=[],De=[],Ve=0,ut=se(le);Ve<ut;Ve++){var Vt=le[Ve],jt=we?we(Vt,Ve,le):Vt;pe&&!we?((!Ve||De!==jt)&&Ce.push(Vt),De=jt):we?Mi(De,jt)||(De.push(jt),Ce.push(Vt)):Mi(Ce,Vt)||Ce.push(Vt)}return Ce}var Bo=M(function(le){return Mo(xn(le,!0,!0))});function Gd(le){for(var pe=[],we=arguments.length,_e=0,Ce=se(le);_e<Ce;_e++){var De=le[_e];if(!Mi(pe,De)){var Ve;for(Ve=1;Ve<we&&Mi(arguments[Ve],De);Ve++);Ve===we&&pe.push(De)}}return pe}function Zs(le){for(var pe=le&&si(le,se).length||0,we=Array(pe),_e=0;_e<pe;_e++)we[_e]=qs(le,_e);return we}var ff=M(Zs);function yc(le,pe){for(var we={},_e=0,Ce=se(le);_e<Ce;_e++)pe?we[le[_e]]=pe[_e]:we[le[_e][0]]=le[_e][1];return we}function bc(le,pe,we){pe==null&&(pe=le||0,le=0),we||(we=pe<le?-1:1);for(var _e=Math.max(Math.ceil((pe-le)/we),0),Ce=Array(_e),De=0;De<_e;De++,le+=we)Ce[De]=le;return Ce}function hf(le,pe){if(pe==null||pe<1)return[];for(var we=[],_e=0,Ce=le.length;_e<Ce;)we.push(u.call(le,_e,_e+=pe));return we}function wc(le,pe){return le._chain?Ne(pe).chain():pe}function Ys(le){return fa(ar(le),function(pe){var we=Ne[pe]=le[pe];Ne.prototype[pe]=function(){var _e=[this._wrapped];return s.apply(_e,arguments),wc(this,we.apply(Ne,_e))}}),Ne}fa(["pop","push","reverse","shift","sort","splice","unshift"],function(le){var pe=i[le];Ne.prototype[le]=function(){var we=this._wrapped;return we!=null&&(pe.apply(we,arguments),(le==="shift"||le==="splice")&&we.length===0&&delete we[0]),wc(this,we)}}),fa(["concat","join","slice"],function(le){var pe=i[le];Ne.prototype[le]=function(){var we=this._wrapped;return we!=null&&(we=pe.apply(we,arguments)),wc(this,we)}});var xc={__proto__:null,VERSION:e,restArguments:M,isObject:z,isNull:W,isUndefined:U,isBoolean:G,isElement:ee,isString:O,isNumber:T,isDate:S,isRegExp:x,isError:w,isSymbol:_,isArrayBuffer:E,isDataView:k,isArray:L,isFunction:B,isArguments:re,isFinite:ae,isNaN:j,isTypedArray:ne,isEmpty:Ee,isMatch:Se,isEqual:Ge,isMap:hr,isWeakMap:nr,isSet:Tt,isWeakSet:Kt,keys:ve,allKeys:tt,values:rr,pairs:Ct,invert:ir,functions:ar,methods:ar,extend:Ae,extendOwn:Ie,assign:Ie,defaults:je,create:st,clone:Ot,tap:At,get:Ht,has:jr,mapObject:Ze,identity:gr,constant:ue,noop:mt,toPath:vt,property:Gr,propertyOf:nt,matcher:Pr,matches:Pr,times:it,random:$t,now:Nt,escape:dr,unescape:Jt,templateSettings:Sr,template:Da,result:la,uniqueId:Zt,chain:Vi,iteratee:Re,partial:oi,bind:gn,bindAll:Ca,memoize:ko,delay:qi,defer:Ni,throttle:fs,debounce:Qa,wrap:hs,negate:Oa,compose:Ro,after:ds,before:eo,once:Fo,findKey:Gl,findIndex:ps,findLastIndex:Kl,sortedIndex:Zl,indexOf:Jl,lastIndexOf:zd,find:Dr,detect:Dr,findWhere:Nr,each:fa,forEach:fa,map:to,collect:to,reduce:dc,foldl:dc,inject:dc,reduceRight:ef,foldr:ef,filter:No,select:No,reject:tf,every:rf,all:rf,some:vn,any:vn,contains:Mi,includes:Mi,include:Mi,invoke:ro,pluck:qs,where:pc,max:si,min:nf,shuffle:of,sample:gc,sortBy:sf,groupBy:Hd,indexBy:vi,countBy:$d,partition:uf,toArray:mc,size:Ia,pick:Xs,omit:Wr,first:ms,head:ms,take:ms,initial:ha,last:vc,rest:Ks,tail:Ks,drop:Ks,compact:Vd,flatten:qd,without:lf,uniq:Mo,unique:Mo,union:Bo,intersection:Gd,difference:cf,unzip:Zs,transpose:Zs,zip:ff,object:yc,range:bc,chunk:hf,mixin:Ys,default:Ne},_c=Ys(xc);return _c._=_c,_c})})(on);var $m={},Un={},X_={exports:{}},is={exports:{}},Vm=function(){return this===void 0}();if(Vm)is.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:Vm,propertyIsWritable:function(r,t){var e=Object.getOwnPropertyDescriptor(r,t);return!!(!e||e.writable||e.set)}};else{var Sz={}.hasOwnProperty,Dz={}.toString,Cz={}.constructor.prototype,K_=function(r){var t=[];for(var e in r)Sz.call(r,e)&&t.push(e);return t},Oz=function(r,t){return{value:r[t]}},Iz=function(r,t,e){return r[t]=e.value,r},kz=function(r){return r},Rz=function(r){try{return Object(r).constructor.prototype}catch{return Cz}},Fz=function(r){try{return Dz.call(r)==="[object Array]"}catch{return!1}};is.exports={isArray:Fz,keys:K_,names:K_,defineProperty:Iz,getDescriptor:Oz,freeze:kz,getPrototypeOf:Rz,isES5:Vm,propertyIsWritable:function(){return!0}}}var Ci=is.exports,Nz=typeof navigator=="undefined",qm={e:{}},Gm,Mz=typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ot!="undefined"||ot!==void 0?ot:null;function Bz(){try{var r=Gm;return Gm=null,r.apply(this,arguments)}catch(t){return qm.e=t,qm}}function Uz(r){return Gm=r,Bz}var Pz=function(r,t){var e={}.hasOwnProperty;function n(){this.constructor=r,this.constructor$=t;for(var i in t.prototype)e.call(t.prototype,i)&&i.charAt(i.length-1)!=="$"&&(this[i+"$"]=t.prototype[i])}return n.prototype=t.prototype,r.prototype=new n,r.prototype};function Xm(r){return r==null||r===!0||r===!1||typeof r=="string"||typeof r=="number"}function Lz(r){return typeof r=="function"||typeof r=="object"&&r!==null}function jz(r){return Xm(r)?new Error(nd(r)):r}function Wz(r,t){var e=r.length,n=new Array(e+1),i;for(i=0;i<e;++i)n[i]=r[i];return n[i]=t,n}function zz(r,t,e){if(Ci.isES5){var n=Object.getOwnPropertyDescriptor(r,t);if(n!=null)return n.get==null&&n.set==null?n.value:e}else return{}.hasOwnProperty.call(r,t)?r[t]:void 0}function Z_(r,t,e){if(Xm(r))return r;var n={value:e,configurable:!0,enumerable:!1,writable:!0};return Ci.defineProperty(r,t,n),r}function Hz(r){throw r}var $z=function(){var r=[Array.prototype,Object.prototype,Function.prototype],t=function(i){for(var a=0;a<r.length;++a)if(r[a]===i)return!0;return!1};if(Ci.isES5){var e=Object.getOwnPropertyNames;return function(i){for(var a=[],o=Object.create(null);i!=null&&!t(i);){var s;try{s=e(i)}catch{return a}for(var u=0;u<s.length;++u){var c=s[u];if(!o[c]){o[c]=!0;var l=Object.getOwnPropertyDescriptor(i,c);l!=null&&l.get==null&&l.set==null&&a.push(c)}}i=Ci.getPrototypeOf(i)}return a}}else{var n={}.hasOwnProperty;return function(i){if(t(i))return[];var a=[];e:for(var o in i)if(n.call(i,o))a.push(o);else{for(var s=0;s<r.length;++s)if(n.call(r[s],o))continue e;a.push(o)}return a}}}(),Vz=/this\s*\.\s*\S+\s*=/;function qz(r){try{if(typeof r=="function"){var t=Ci.names(r.prototype),e=Ci.isES5&&t.length>1,n=t.length>0&&!(t.length===1&&t[0]==="constructor"),i=Vz.test(r+"")&&Ci.names(r).length>0;if(e||n||i)return!0}return!1}catch{return!1}}function Gz(r){return r}var Xz=/^[a-z$_][a-z$_0-9]*$/i;function Kz(r){return Xz.test(r)}function Zz(r,t,e){for(var n=new Array(r),i=0;i<r;++i)n[i]=t+i+e;return n}function nd(r){try{return r+""}catch{return"[no string representation]"}}function Y_(r){return r!==null&&typeof r=="object"&&typeof r.message=="string"&&typeof r.name=="string"}function Yz(r){try{Z_(r,"isOperational",!0)}catch{}}function Jz(r){return r==null?!1:r instanceof Error.__BluebirdErrorTypes__.OperationalError||r.isOperational===!0}function Km(r){return Y_(r)&&Ci.propertyIsWritable(r,"stack")}var Qz=function(){return"stack"in new Error?function(r){return Km(r)?r:new Error(nd(r))}:function(r){if(Km(r))return r;try{throw new Error(nd(r))}catch(t){return t}}}();function J_(r){return{}.toString.call(r)}function eH(r,t,e){for(var n=Ci.names(r),i=0;i<n.length;++i){var a=n[i];if(e(a))try{Ci.defineProperty(t,a,Ci.getDescriptor(r,a))}catch{}}}var Q_=function(r){return Ci.isArray(r)?r:null};if(typeof Symbol!="undefined"&&Symbol.iterator){var tH=typeof Array.from=="function"?function(r){return Array.from(r)}:function(r){for(var t=[],e=r[Symbol.iterator](),n;!(n=e.next()).done;)t.push(n.value);return t};Q_=function(r){return Ci.isArray(r)?r:r!=null&&typeof r[Symbol.iterator]=="function"?tH(r):null}}var rH=typeof process!="undefined"&&J_(process).toLowerCase()==="[object process]",e3=typeof process!="undefined"&&typeof process.env!="undefined";function nH(r){return e3?process.env[r]:void 0}function iH(){if(typeof Promise=="function")try{var r=new Promise(function(){});if({}.toString.call(r)==="[object Promise]")return Promise}catch{}}function aH(r,t){return r.bind(t)}var Xu={isClass:qz,isIdentifier:Kz,inheritedDataKeys:$z,getDataPropertyOrDefault:zz,thrower:Hz,isArray:Ci.isArray,asArray:Q_,notEnumerableProp:Z_,isPrimitive:Xm,isObject:Lz,isError:Y_,canEvaluate:Nz,errorObj:qm,tryCatch:Uz,inherits:Pz,withAppended:Wz,maybeWrapAsError:jz,toFastProperties:Gz,filledRange:Zz,toString:nd,canAttachTrace:Km,ensureErrorObject:Qz,originatesFromRejection:Jz,markAsOriginatingFromRejection:Yz,classString:J_,copyDescriptors:eH,hasDevTools:typeof chrome!="undefined"&&chrome&&typeof chrome.loadTimes=="function",isNode:rH,hasEnvVariables:e3,env:nH,global:Mz,getNativePromise:iH,domainBind:aH};Xu.isRecentNode=Xu.isNode&&function(){var r=process.versions.node.split(".").map(Number);return r[0]===0&&r[1]>10||r[0]>0}();Xu.isNode&&Xu.toFastProperties(process);try{throw new Error}catch(r){Xu.lastLineError=r}var qr=Xu,Zm={exports:{}},Ym=qr,js,oH=function(){throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)},Jm=Ym.getNativePromise();if(Ym.isNode&&typeof MutationObserver=="undefined"){var sH=ot.setImmediate,uH=process.nextTick;js=Ym.isRecentNode?function(r){sH.call(ot,r)}:function(r){uH.call(process,r)}}else if(typeof Jm=="function"&&typeof Jm.resolve=="function"){var cH=Jm.resolve();js=function(r){cH.then(r)}}else typeof MutationObserver!="undefined"&&!(typeof window!="undefined"&&window.navigator&&(window.navigator.standalone||window.cordova))?js=function(){var r=document.createElement("div"),t={attributes:!0},e=!1,n=document.createElement("div"),i=new MutationObserver(function(){r.classList.toggle("foo"),e=!1});i.observe(n,t);var a=function(){e||(e=!0,n.classList.toggle("foo"))};return function(s){var u=new MutationObserver(function(){u.disconnect(),s()});u.observe(r,t),a()}}():typeof setImmediate!="undefined"?js=function(r){setImmediate(r)}:typeof setTimeout!="undefined"?js=function(r){setTimeout(r,0)}:js=oH;var lH=js;function fH(r,t,e,n,i){for(var a=0;a<i;++a)e[a+n]=r[a+t],r[a+t]=void 0}function as(r){this._capacity=r,this._length=0,this._front=0}as.prototype._willBeOverCapacity=function(r){return this._capacity<r};as.prototype._pushOne=function(r){var t=this.length();this._checkCapacity(t+1);var e=this._front+t&this._capacity-1;this[e]=r,this._length=t+1};as.prototype.push=function(r,t,e){var n=this.length()+3;if(this._willBeOverCapacity(n)){this._pushOne(r),this._pushOne(t),this._pushOne(e);return}var i=this._front+n-3;this._checkCapacity(n);var a=this._capacity-1;this[i+0&a]=r,this[i+1&a]=t,this[i+2&a]=e,this._length=n};as.prototype.shift=function(){var r=this._front,t=this[r];return this[r]=void 0,this._front=r+1&this._capacity-1,this._length--,t};as.prototype.length=function(){return this._length};as.prototype._checkCapacity=function(r){this._capacity<r&&this._resizeTo(this._capacity<<1)};as.prototype._resizeTo=function(r){var t=this._capacity;this._capacity=r;var e=this._front,n=this._length,i=e+n&t-1;fH(this,0,this,t,i)};var hH=as,t3;try{throw new Error}catch(r){t3=r}var dH=lH,r3=hH,n3=qr;function Pn(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new r3(16),this._normalQueue=new r3(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var r=this;this.drainQueues=function(){r._drainQueues()},this._schedule=dH}Pn.prototype.setScheduler=function(r){var t=this._schedule;return this._schedule=r,this._customScheduler=!0,t};Pn.prototype.hasCustomScheduler=function(){return this._customScheduler};Pn.prototype.enableTrampoline=function(){this._trampolineEnabled=!0};Pn.prototype.disableTrampolineIfNecessary=function(){n3.hasDevTools&&(this._trampolineEnabled=!1)};Pn.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};Pn.prototype.fatalError=function(r,t){t?(process.stderr.write("Fatal "+(r instanceof Error?r.stack:r)+`
`),process.exit(2)):this.throwLater(r)};Pn.prototype.throwLater=function(r,t){if(arguments.length===1&&(t=r,r=function(){throw t}),typeof setTimeout!="undefined")setTimeout(function(){r(t)},0);else try{this._schedule(function(){r(t)})}catch{throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}};function i3(r,t,e){this._lateQueue.push(r,t,e),this._queueTick()}function a3(r,t,e){this._normalQueue.push(r,t,e),this._queueTick()}function o3(r){this._normalQueue._pushOne(r),this._queueTick()}n3.hasDevTools?(Pn.prototype.invokeLater=function(r,t,e){this._trampolineEnabled?i3.call(this,r,t,e):this._schedule(function(){setTimeout(function(){r.call(t,e)},100)})},Pn.prototype.invoke=function(r,t,e){this._trampolineEnabled?a3.call(this,r,t,e):this._schedule(function(){r.call(t,e)})},Pn.prototype.settlePromises=function(r){this._trampolineEnabled?o3.call(this,r):this._schedule(function(){r._settlePromises()})}):(Pn.prototype.invokeLater=i3,Pn.prototype.invoke=a3,Pn.prototype.settlePromises=o3);Pn.prototype._drainQueue=function(r){for(;r.length()>0;){var t=r.shift();if(typeof t!="function"){t._settlePromises();continue}var e=r.shift(),n=r.shift();t.call(e,n)}};Pn.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)};Pn.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))};Pn.prototype._reset=function(){this._isTickUsed=!1};Zm.exports=Pn;Zm.exports.firstLineError=t3;var Qm=is.exports,pH=Qm.freeze,s3=qr,u3=s3.inherits,Ku=s3.notEnumerableProp;function Zu(r,t){function e(n){if(!(this instanceof e))return new e(n);Ku(this,"message",typeof n=="string"?n:t),Ku(this,"name",r),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return u3(e,Error),e}var eg,tg,mH=Zu("Warning","warning"),gH=Zu("CancellationError","cancellation error"),vH=Zu("TimeoutError","timeout error"),pl=Zu("AggregateError","aggregate error");try{eg=TypeError,tg=RangeError}catch{eg=Zu("TypeError","type error"),tg=Zu("RangeError","range error")}var id="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" ");for(var ml=0;ml<id.length;++ml)typeof Array.prototype[id[ml]]=="function"&&(pl.prototype[id[ml]]=Array.prototype[id[ml]]);Qm.defineProperty(pl.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0});pl.prototype.isOperational=!0;var ad=0;pl.prototype.toString=function(){var r=Array(ad*4+1).join(" "),t=`
`+r+`AggregateError of:
`;ad++,r=Array(ad*4+1).join(" ");for(var e=0;e<this.length;++e){for(var n=this[e]===this?"[Circular AggregateError]":this[e]+"",i=n.split(`
`),a=0;a<i.length;++a)i[a]=r+i[a];n=i.join(`
`),t+=n+`
`}return ad--,t};function gl(r){if(!(this instanceof gl))return new gl(r);Ku(this,"name","OperationalError"),Ku(this,"message",r),this.cause=r,this.isOperational=!0,r instanceof Error?(Ku(this,"message",r.message),Ku(this,"stack",r.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}u3(gl,Error);var Ws=Error.__BluebirdErrorTypes__;Ws||(Ws=pH({CancellationError:gH,TimeoutError:vH,OperationalError:gl,RejectionError:gl,AggregateError:pl}),Qm.defineProperty(Error,"__BluebirdErrorTypes__",{value:Ws,writable:!1,enumerable:!1,configurable:!1}));var os={Error,TypeError:eg,RangeError:tg,CancellationError:Ws.CancellationError,OperationalError:Ws.OperationalError,TimeoutError:Ws.TimeoutError,AggregateError:Ws.AggregateError,Warning:mH},yH=function(r,t){var e=qr,n=e.errorObj,i=e.isObject;function a(d,h){if(i(d)){if(d instanceof r)return d;var f=s(d);if(f===n){h&&h._pushContext();var g=r.reject(f.e);return h&&h._popContext(),g}else if(typeof f=="function"){if(c(d)){var g=new r(t);return d._then(g._fulfill,g._reject,void 0,g,null),g}return l(d,f,h)}}return d}function o(d){return d.then}function s(d){try{return o(d)}catch(h){return n.e=h,n}}var u={}.hasOwnProperty;function c(d){try{return u.call(d,"_promise0")}catch{return!1}}function l(d,h,f){var g=new r(t),m=g;f&&f._pushContext(),g._captureStackTrace(),f&&f._popContext();var p=!0,y=e.tryCatch(h).call(d,v,b);p=!1,g&&y===n&&(g._rejectCallback(y.e,!0,!0),g=null);function v(A){!g||(g._resolveCallback(A),g=null)}function b(A){!g||(g._rejectCallback(A,p,!0),g=null)}return m}return a},bH=function(r,t,e,n,i){var a=qr;a.isArray;function o(u){switch(u){case-2:return[];case-3:return{}}}function s(u){var c=this._promise=new r(t);u instanceof r&&c._propagateFrom(u,3),c._setOnCancel(this),this._values=u,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return a.inherits(s,i),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function u(c,l){var d=e(this._values,this._promise);if(d instanceof r){d=d._target();var h=d._bitField;if(this._values=d,(h&50397184)==0)return this._promise._setAsyncGuaranteed(),d._then(u,this._reject,void 0,this,l);if((h&33554432)!=0)d=d._value();else return(h&16777216)!=0?this._reject(d._reason()):this._cancel()}if(d=a.asArray(d),d===null){var f=n("expecting an array or an iterable object but got "+a.classString(d)).reason();this._promise._rejectCallback(f,!1);return}if(d.length===0){l===-5?this._resolveEmptyArray():this._resolve(o(l));return}this._iterate(d)},s.prototype._iterate=function(u){var c=this.getActualLength(u.length);this._length=c,this._values=this.shouldCopyValues()?new Array(c):this._values;for(var l=this._promise,d=!1,h=null,f=0;f<c;++f){var g=e(u[f],l);g instanceof r?(g=g._target(),h=g._bitField):h=null,d?h!==null&&g.suppressUnhandledRejections():h!==null?(h&50397184)==0?(g._proxy(this,f),this._values[f]=g):(h&33554432)!=0?d=this._promiseFulfilled(g._value(),f):(h&16777216)!=0?d=this._promiseRejected(g._reason(),f):d=this._promiseCancelled(f):d=this._promiseFulfilled(g,f)}d||l._setAsyncGuaranteed()},s.prototype._isResolved=function(){return this._values===null},s.prototype._resolve=function(u){this._values=null,this._promise._fulfill(u)},s.prototype._cancel=function(){this._isResolved()||!this._promise._isCancellable()||(this._values=null,this._promise._cancel())},s.prototype._reject=function(u){this._values=null,this._promise._rejectCallback(u,!1)},s.prototype._promiseFulfilled=function(u,c){this._values[c]=u;var l=++this._totalResolved;return l>=this._length?(this._resolve(this._values),!0):!1},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(u){return this._totalResolved++,this._reject(u),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var u=this._values;if(this._cancel(),u instanceof r)u.cancel();else for(var c=0;c<u.length;++c)u[c]instanceof r&&u[c].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(u){return u},s},wH=function(r){var t=!1,e=[];r.prototype._promiseCreated=function(){},r.prototype._pushContext=function(){},r.prototype._popContext=function(){return null},r._peekContext=r.prototype._peekContext=function(){};function n(){this._trace=new n.CapturedTrace(a())}n.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,e.push(this._trace))},n.prototype._popContext=function(){if(this._trace!==void 0){var o=e.pop(),s=o._promiseCreated;return o._promiseCreated=null,s}return null};function i(){if(t)return new n}function a(){var o=e.length-1;if(o>=0)return e[o]}return n.CapturedTrace=null,n.create=i,n.deactivateLongStackTraces=function(){},n.activateLongStackTraces=function(){var o=r.prototype._pushContext,s=r.prototype._popContext,u=r._peekContext,c=r.prototype._peekContext,l=r.prototype._promiseCreated;n.deactivateLongStackTraces=function(){r.prototype._pushContext=o,r.prototype._popContext=s,r._peekContext=u,r.prototype._peekContext=c,r.prototype._promiseCreated=l,t=!1},t=!0,r.prototype._pushContext=n.prototype._pushContext,r.prototype._popContext=n.prototype._popContext,r._peekContext=r.prototype._peekContext=a,r.prototype._promiseCreated=function(){var d=this._peekContext();d&&d._promiseCreated==null&&(d._promiseCreated=this)}},n},xH=function(r,t){var e=r._getDomain,n=r._async,i=os.Warning,a=qr,o=a.canAttachTrace,s,u,c=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,l=/\((?:timers\.js):\d+:\d+\)/,d=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,h=null,f=null,g=!1,m,p=!!(a.env("BLUEBIRD_DEBUG")!=0&&(a.env("BLUEBIRD_DEBUG")||a.env("NODE_ENV")==="development")),y=!!(a.env("BLUEBIRD_WARNINGS")!=0&&(p||a.env("BLUEBIRD_WARNINGS"))),v=!!(a.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(p||a.env("BLUEBIRD_LONG_STACK_TRACES"))),b=a.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(y||!!a.env("BLUEBIRD_W_FORGOTTEN_RETURN"));r.prototype.suppressUnhandledRejections=function(){var se=this._target();se._bitField=se._bitField&~1048576|524288},r.prototype._ensurePossibleRejectionHandled=function(){(this._bitField&524288)==0&&(this._setRejectionIsUnhandled(),n.invokeLater(this._notifyUnhandledRejection,this,void 0))},r.prototype._notifyUnhandledRejectionIsHandled=function(){re("rejectionHandled",s,void 0,this)},r.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456},r.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!=0},r.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var se=this._settledValue();this._setUnhandledRejectionIsNotified(),re("unhandledRejection",u,se,this)}},r.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144},r.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&~262144},r.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0},r.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576},r.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&~1048576,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},r.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0},r.prototype._warn=function(se,fe,de){return K(se,fe,de||this)},r.onPossiblyUnhandledRejection=function(se){var fe=e();u=typeof se=="function"?fe===null?se:a.domainBind(fe,se):void 0},r.onUnhandledRejectionHandled=function(se){var fe=e();s=typeof se=="function"?fe===null?se:a.domainBind(fe,se):void 0};var A=function(){};r.longStackTraces=function(){if(n.haveItemsQueued()&&!ne.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);if(!ne.longStackTraces&&ue()){var se=r.prototype._captureStackTrace,fe=r.prototype._attachExtraTrace;ne.longStackTraces=!0,A=function(){if(n.haveItemsQueued()&&!ne.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);r.prototype._captureStackTrace=se,r.prototype._attachExtraTrace=fe,t.deactivateLongStackTraces(),n.enableTrampoline(),ne.longStackTraces=!1},r.prototype._captureStackTrace=R,r.prototype._attachExtraTrace=F,t.activateLongStackTraces(),n.disableTrampolineIfNecessary()}},r.hasLongStackTraces=function(){return ne.longStackTraces&&ue()};var C=function(){try{if(typeof CustomEvent=="function"){var se=new CustomEvent("CustomEvent");return a.global.dispatchEvent(se),function(fe,de){var ve=new CustomEvent(fe.toLowerCase(),{detail:de,cancelable:!0});return!a.global.dispatchEvent(ve)}}else if(typeof Event=="function"){var se=new Event("CustomEvent");return a.global.dispatchEvent(se),function(de,ve){var Ee=new Event(de.toLowerCase(),{cancelable:!0});return Ee.detail=ve,!a.global.dispatchEvent(Ee)}}else{var se=document.createEvent("CustomEvent");return se.initCustomEvent("testingtheevent",!1,!0,{}),a.global.dispatchEvent(se),function(de,ve){var Ee=document.createEvent("CustomEvent");return Ee.initCustomEvent(de.toLowerCase(),!1,!0,ve),!a.global.dispatchEvent(Ee)}}}catch{}return function(){return!1}}(),M=function(){return a.isNode?function(){return process.emit.apply(process,arguments)}:a.global?function(se){var fe="on"+se.toLowerCase(),de=a.global[fe];return de?(de.apply(a.global,[].slice.call(arguments,1)),!0):!1}:function(){return!1}}();function z(se,fe){return{promise:fe}}var W={promiseCreated:z,promiseFulfilled:z,promiseRejected:z,promiseResolved:z,promiseCancelled:z,promiseChained:function(se,fe,de){return{promise:fe,child:de}},warning:function(se,fe){return{warning:fe}},unhandledRejection:function(se,fe,de){return{reason:fe,promise:de}},rejectionHandled:z},U=function(se){var fe=!1;try{fe=M.apply(null,arguments)}catch(ve){n.throwLater(ve),fe=!0}var de=!1;try{de=C(se,W[se].apply(null,arguments))}catch(ve){n.throwLater(ve),de=!0}return de||fe};r.config=function(se){if(se=Object(se),"longStackTraces"in se&&(se.longStackTraces?r.longStackTraces():!se.longStackTraces&&r.hasLongStackTraces()&&A()),"warnings"in se){var fe=se.warnings;ne.warnings=!!fe,b=ne.warnings,a.isObject(fe)&&"wForgottenReturn"in fe&&(b=!!fe.wForgottenReturn)}if("cancellation"in se&&se.cancellation&&!ne.cancellation){if(n.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");r.prototype._clearCancellationData=S,r.prototype._propagateFrom=x,r.prototype._onCancel=O,r.prototype._setOnCancel=T,r.prototype._attachCancellationCallback=I,r.prototype._execute=ee,_=x,ne.cancellation=!0}return"monitoring"in se&&(se.monitoring&&!ne.monitoring?(ne.monitoring=!0,r.prototype._fireEvent=U):!se.monitoring&&ne.monitoring&&(ne.monitoring=!1,r.prototype._fireEvent=G)),r};function G(){return!1}r.prototype._fireEvent=G,r.prototype._execute=function(se,fe,de){try{se(fe,de)}catch(ve){return ve}},r.prototype._onCancel=function(){},r.prototype._setOnCancel=function(se){},r.prototype._attachCancellationCallback=function(se){},r.prototype._captureStackTrace=function(){},r.prototype._attachExtraTrace=function(){},r.prototype._clearCancellationData=function(){},r.prototype._propagateFrom=function(se,fe){};function ee(se,fe,de){var ve=this;try{se(fe,de,function(Ee){if(typeof Ee!="function")throw new TypeError("onCancel must be a function, got: "+a.toString(Ee));ve._attachCancellationCallback(Ee)})}catch(Ee){return Ee}}function I(se){if(!this._isCancellable())return this;var fe=this._onCancel();fe!==void 0?a.isArray(fe)?fe.push(se):this._setOnCancel([fe,se]):this._setOnCancel(se)}function O(){return this._onCancelField}function T(se){this._onCancelField=se}function S(){this._cancellationParent=void 0,this._onCancelField=void 0}function x(se,fe){if((fe&1)!=0){this._cancellationParent=se;var de=se._branchesRemainingToCancel;de===void 0&&(de=0),se._branchesRemainingToCancel=de+1}(fe&2)!=0&&se._isBound()&&this._setBoundTo(se._boundTo)}function w(se,fe){(fe&2)!=0&&se._isBound()&&this._setBoundTo(se._boundTo)}var _=w;function E(){var se=this._boundTo;return se!==void 0&&se instanceof r?se.isFulfilled()?se.value():void 0:se}function R(){this._trace=new oe(this._peekContext())}function F(se,fe){if(o(se)){var de=this._trace;if(de!==void 0&&fe&&(de=de._parent),de!==void 0)de.attachExtraTrace(se);else if(!se.__stackCleaned__){var ve=V(se);a.notEnumerableProp(se,"stack",ve.message+`
`+ve.stack.join(`
`)),a.notEnumerableProp(se,"__stackCleaned__",!0)}}}function B(se,fe,de,ve,Ee){if(se===void 0&&fe!==null&&b){if(Ee!==void 0&&Ee._returnedNonUndefined()||(ve._bitField&65535)==0)return;de&&(de=de+" ");var Se="",Ne="";if(fe._trace){for(var He=fe._trace.stack.split(`
`),qe=k(He),et=qe.length-1;et>=0;--et){var Ue=qe[et];if(!l.test(Ue)){var Ge=Ue.match(d);Ge&&(Se="at "+Ge[1]+":"+Ge[2]+":"+Ge[3]+" ");break}}if(qe.length>0){for(var tt=qe[0],et=0;et<He.length;++et)if(He[et]===tt){et>0&&(Ne=`
`+He[et-1]);break}}}var rt="a promise was created in a "+de+"handler "+Se+"but was not returned from it, see http://goo.gl/rRqMUw"+Ne;ve._warn(rt,!0,fe)}}function X(se,fe){var de=se+" is deprecated and will be removed in a future version.";return fe&&(de+=" Use "+fe+" instead."),K(de)}function K(se,fe,de){if(!!ne.warnings){var ve=new i(se),Ee;if(fe)de._attachExtraTrace(ve);else if(ne.longStackTraces&&(Ee=r._peekContext()))Ee.attachExtraTrace(ve);else{var Se=V(ve);ve.stack=Se.message+`
`+Se.stack.join(`
`)}U("warning",ve)||J(ve,"",!0)}}function te(se,fe){for(var de=0;de<fe.length-1;++de)fe[de].push("From previous event:"),fe[de]=fe[de].join(`
`);return de<fe.length&&(fe[de]=fe[de].join(`
`)),se+`
`+fe.join(`
`)}function $(se){for(var fe=0;fe<se.length;++fe)(se[fe].length===0||fe+1<se.length&&se[fe][0]===se[fe+1][0])&&(se.splice(fe,1),fe--)}function q(se){for(var fe=se[0],de=1;de<se.length;++de){for(var ve=se[de],Ee=fe.length-1,Se=fe[Ee],Ne=-1,He=ve.length-1;He>=0;--He)if(ve[He]===Se){Ne=He;break}for(var He=Ne;He>=0;--He){var qe=ve[He];if(fe[Ee]===qe)fe.pop(),Ee--;else break}fe=ve}}function k(se){for(var fe=[],de=0;de<se.length;++de){var ve=se[de],Ee=ve===" (No stack trace)"||h.test(ve),Se=Ee&&Q(ve);Ee&&!Se&&(g&&ve.charAt(0)!==" "&&(ve=" "+ve),fe.push(ve))}return fe}function L(se){for(var fe=se.stack.replace(/\s+$/g,"").split(`
`),de=0;de<fe.length;++de){var ve=fe[de];if(ve===" (No stack trace)"||h.test(ve))break}return de>0&&se.name!="SyntaxError"&&(fe=fe.slice(de)),fe}function V(se){var fe=se.stack,de=se.toString();return fe=typeof fe=="string"&&fe.length>0?L(se):[" (No stack trace)"],{message:de,stack:se.name=="SyntaxError"?fe:k(fe)}}function J(se,fe,de){if(typeof console!="undefined"){var ve;if(a.isObject(se)){var Ee=se.stack;ve=fe+f(Ee,se)}else ve=fe+String(se);typeof m=="function"?m(ve,de):(typeof console.log=="function"||typeof console.log=="object")&&console.log(ve)}}function re(se,fe,de,ve){var Ee=!1;try{typeof fe=="function"&&(Ee=!0,se==="rejectionHandled"?fe(ve):fe(de,ve))}catch(Se){n.throwLater(Se)}se==="unhandledRejection"?!U(se,de,ve)&&!Ee&&J(de,"Unhandled rejection "):U(se,ve)}function ae(se){var fe;if(typeof se=="function")fe="[function "+(se.name||"anonymous")+"]";else{fe=se&&typeof se.toString=="function"?se.toString():a.toString(se);var de=/\[object [a-zA-Z0-9$_]+\]/;if(de.test(fe))try{var ve=JSON.stringify(se);fe=ve}catch{}fe.length===0&&(fe="(empty array)")}return"(<"+j(fe)+">, no stack trace)"}function j(se){var fe=41;return se.length<fe?se:se.substr(0,fe-3)+"..."}function ue(){return typeof ce=="function"}var Q=function(){return!1},P=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function H(se){var fe=se.match(P);if(fe)return{fileName:fe[1],line:parseInt(fe[2],10)}}function Z(se,fe){if(!!ue()){for(var de=se.stack.split(`
`),ve=fe.stack.split(`
`),Ee=-1,Se=-1,Ne,He,qe=0;qe<de.length;++qe){var et=H(de[qe]);if(et){Ne=et.fileName,Ee=et.line;break}}for(var qe=0;qe<ve.length;++qe){var et=H(ve[qe]);if(et){He=et.fileName,Se=et.line;break}}Ee<0||Se<0||!Ne||!He||Ne!==He||Ee>=Se||(Q=function(Ue){if(c.test(Ue))return!0;var Ge=H(Ue);return!!(Ge&&Ge.fileName===Ne&&Ee<=Ge.line&&Ge.line<=Se)})}}function oe(se){this._parent=se,this._promisesCreated=0;var fe=this._length=1+(se===void 0?0:se._length);ce(this,oe),fe>32&&this.uncycle()}a.inherits(oe,Error),t.CapturedTrace=oe,oe.prototype.uncycle=function(){var se=this._length;if(!(se<2)){for(var fe=[],de={},ve=0,Ee=this;Ee!==void 0;++ve)fe.push(Ee),Ee=Ee._parent;se=this._length=ve;for(var ve=se-1;ve>=0;--ve){var Se=fe[ve].stack;de[Se]===void 0&&(de[Se]=ve)}for(var ve=0;ve<se;++ve){var Ne=fe[ve].stack,He=de[Ne];if(He!==void 0&&He!==ve){He>0&&(fe[He-1]._parent=void 0,fe[He-1]._length=1),fe[ve]._parent=void 0,fe[ve]._length=1;var qe=ve>0?fe[ve-1]:this;He<se-1?(qe._parent=fe[He+1],qe._parent.uncycle(),qe._length=qe._parent._length+1):(qe._parent=void 0,qe._length=1);for(var et=qe._length+1,Ue=ve-2;Ue>=0;--Ue)fe[Ue]._length=et,et++;return}}}},oe.prototype.attachExtraTrace=function(se){if(!se.__stackCleaned__){this.uncycle();for(var fe=V(se),de=fe.message,ve=[fe.stack],Ee=this;Ee!==void 0;)ve.push(k(Ee.stack.split(`
`))),Ee=Ee._parent;q(ve),$(ve),a.notEnumerableProp(se,"stack",te(de,ve)),a.notEnumerableProp(se,"__stackCleaned__",!0)}};var ce=function(){var fe=/^\s*at\s*/,de=function(Ne,He){return typeof Ne=="string"?Ne:He.name!==void 0&&He.message!==void 0?He.toString():ae(He)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,h=fe,f=de;var ve=Error.captureStackTrace;return Q=function(Ne){return c.test(Ne)},function(Ne,He){Error.stackTraceLimit+=6,ve(Ne,He),Error.stackTraceLimit-=6}}var Ee=new Error;if(typeof Ee.stack=="string"&&Ee.stack.split(`
`)[0].indexOf("stackDetection@")>=0)return h=/@/,f=de,g=!0,function(He){He.stack=new Error().stack};var Se;try{throw new Error}catch(Ne){Se="stack"in Ne}return!("stack"in Ee)&&Se&&typeof Error.stackTraceLimit=="number"?(h=fe,f=de,function(He){Error.stackTraceLimit+=6;try{throw new Error}catch(qe){He.stack=qe.stack}Error.stackTraceLimit-=6}):(f=function(Ne,He){return typeof Ne=="string"?Ne:(typeof He=="object"||typeof He=="function")&&He.name!==void 0&&He.message!==void 0?He.toString():ae(He)},null)}();typeof console!="undefined"&&typeof console.warn!="undefined"&&(m=function(se){console.warn(se)},a.isNode&&process.stderr.isTTY?m=function(se,fe){var de=fe?"":"";console.warn(de+se+`
`)}:!a.isNode&&typeof new Error().stack=="string"&&(m=function(se,fe){console.warn("%c"+se,fe?"color: darkorange":"color: red")}));var ne={warnings:y,longStackTraces:!1,cancellation:!1,monitoring:!1};return v&&r.longStackTraces(),{longStackTraces:function(){return ne.longStackTraces},warnings:function(){return ne.warnings},cancellation:function(){return ne.cancellation},monitoring:function(){return ne.monitoring},propagateFromFunction:function(){return _},boundValueFunction:function(){return E},checkForgottenReturns:B,setBounds:Z,warn:K,deprecated:X,CapturedTrace:oe,fireDomEvent:C,fireGlobalEvent:M}},_H=function(r,t){var e=qr,n=r.CancellationError,i=e.errorObj;function a(d,h,f){this.promise=d,this.type=h,this.handler=f,this.called=!1,this.cancelPromise=null}a.prototype.isFinallyHandler=function(){return this.type===0};function o(d){this.finallyHandler=d}o.prototype._resultCancelled=function(){s(this.finallyHandler)};function s(d,h){return d.cancelPromise!=null?(arguments.length>1?d.cancelPromise._reject(h):d.cancelPromise._cancel(),d.cancelPromise=null,!0):!1}function u(){return l.call(this,this.promise._target()._settledValue())}function c(d){if(!s(this,d))return i.e=d,i}function l(d){var h=this.promise,f=this.handler;if(!this.called){this.called=!0;var g=this.isFinallyHandler()?f.call(h._boundValue()):f.call(h._boundValue(),d);if(g!==void 0){h._setReturnedNonUndefined();var m=t(g,h);if(m instanceof r){if(this.cancelPromise!=null)if(m._isCancelled()){var p=new n("late cancellation observer");return h._attachExtraTrace(p),i.e=p,i}else m.isPending()&&m._attachCancellationCallback(new o(this));return m._then(u,c,void 0,this,void 0)}}}return h.isRejected()?(s(this),i.e=d,i):(s(this),d)}return r.prototype._passThrough=function(d,h,f,g){return typeof d!="function"?this.then():this._then(f,g,void 0,new a(this,h,d),void 0)},r.prototype.lastly=r.prototype.finally=function(d){return this._passThrough(d,0,l,l)},r.prototype.tap=function(d){return this._passThrough(d,1,l)},a},EH=function(r){var t=qr,e=is.exports.keys,n=t.tryCatch,i=t.errorObj;function a(o,s,u){return function(c){var l=u._boundValue();e:for(var d=0;d<o.length;++d){var h=o[d];if(h===Error||h!=null&&h.prototype instanceof Error){if(c instanceof h)return n(s).call(l,c)}else if(typeof h=="function"){var f=n(h).call(l,c);if(f===i)return f;if(f)return n(s).call(l,c)}else if(t.isObject(c)){for(var g=e(h),m=0;m<g.length;++m){var p=g[m];if(h[p]!=c[p])continue e}return n(s).call(l,c)}}return r}}return a},c3=qr,AH=c3.maybeWrapAsError,TH=os,SH=TH.OperationalError,l3=is.exports;function DH(r){return r instanceof Error&&l3.getPrototypeOf(r)===Error.prototype}var CH=/^(?:name|message|stack|cause)$/;function OH(r){var t;if(DH(r)){t=new SH(r),t.name=r.name,t.message=r.message,t.stack=r.stack;for(var e=l3.keys(r),n=0;n<e.length;++n){var i=e[n];CH.test(i)||(t[i]=r[i])}return t}return c3.markAsOriginatingFromRejection(r),r}function IH(r,t){return function(e,n){if(r!==null){if(e){var i=OH(AH(e));r._attachExtraTrace(i),r._reject(i)}else if(!t)r._fulfill(n);else{for(var a=arguments.length,o=new Array(Math.max(a-1,0)),s=1;s<a;++s)o[s-1]=arguments[s];r._fulfill(o)}r=null}}}var f3=IH,kH=function(r,t,e,n,i){var a=qr,o=a.tryCatch;r.method=function(s){if(typeof s!="function")throw new r.TypeError("expecting a function but got "+a.classString(s));return function(){var u=new r(t);u._captureStackTrace(),u._pushContext();var c=o(s).apply(this,arguments),l=u._popContext();return i.checkForgottenReturns(c,l,"Promise.method",u),u._resolveFromSyncValue(c),u}},r.attempt=r.try=function(s){if(typeof s!="function")return n("expecting a function but got "+a.classString(s));var u=new r(t);u._captureStackTrace(),u._pushContext();var c;if(arguments.length>1){i.deprecated("calling Promise.try with more than 1 argument");var l=arguments[1],d=arguments[2];c=a.isArray(l)?o(s).apply(d,l):o(s).call(d,l)}else c=o(s)();var h=u._popContext();return i.checkForgottenReturns(c,h,"Promise.try",u),u._resolveFromSyncValue(c),u},r.prototype._resolveFromSyncValue=function(s){s===a.errorObj?this._rejectCallback(s.e,!1):this._resolveCallback(s,!0)}},RH=function(r,t,e,n){var i=!1,a=function(c,l){this._reject(l)},o=function(c,l){l.promiseRejectionQueued=!0,l.bindingPromise._then(a,a,null,this,c)},s=function(c,l){(this._bitField&50397184)==0&&this._resolveCallback(l.target)},u=function(c,l){l.promiseRejectionQueued||this._reject(c)};r.prototype.bind=function(c){i||(i=!0,r.prototype._propagateFrom=n.propagateFromFunction(),r.prototype._boundValue=n.boundValueFunction());var l=e(c),d=new r(t);d._propagateFrom(this,1);var h=this._target();if(d._setBoundTo(l),l instanceof r){var f={promiseRejectionQueued:!1,promise:d,target:h,bindingPromise:l};h._then(t,o,void 0,d,f),l._then(s,u,void 0,d,f),d._setOnCancel(l)}else d._resolveCallback(h);return d},r.prototype._setBoundTo=function(c){c!==void 0?(this._bitField=this._bitField|2097152,this._boundTo=c):this._bitField=this._bitField&~2097152},r.prototype._isBound=function(){return(this._bitField&2097152)==2097152},r.bind=function(c,l){return r.resolve(l).bind(c)}},FH=function(r,t,e,n){var i=qr,a=i.tryCatch,o=i.errorObj,s=r._async;r.prototype.break=r.prototype.cancel=function(){if(!n.cancellation())return this._warn("cancellation is disabled");for(var u=this,c=u;u._isCancellable();){if(!u._cancelBy(c)){c._isFollowing()?c._followee().cancel():c._cancelBranched();break}var l=u._cancellationParent;if(l==null||!l._isCancellable()){u._isFollowing()?u._followee().cancel():u._cancelBranched();break}else u._isFollowing()&&u._followee().cancel(),u._setWillBeCancelled(),c=u,u=l}},r.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},r.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},r.prototype._cancelBy=function(u){return u===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1)},r.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},r.prototype._cancel=function(){!this._isCancellable()||(this._setCancelled(),s.invoke(this._cancelPromises,this,void 0))},r.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},r.prototype._unsetOnCancel=function(){this._onCancelField=void 0},r.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},r.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},r.prototype._doInvokeOnCancel=function(u,c){if(i.isArray(u))for(var l=0;l<u.length;++l)this._doInvokeOnCancel(u[l],c);else if(u!==void 0)if(typeof u=="function"){if(!c){var d=a(u).call(this._boundValue());d===o&&(this._attachExtraTrace(d.e),s.throwLater(d.e))}}else u._resultCancelled(this)},r.prototype._invokeOnCancel=function(){var u=this._onCancel();this._unsetOnCancel(),s.invoke(this._doInvokeOnCancel,this,u)},r.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},r.prototype._resultCancelled=function(){this.cancel()}},NH=function(r){function t(){return this.value}function e(){throw this.reason}r.prototype.return=r.prototype.thenReturn=function(n){return n instanceof r&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},r.prototype.throw=r.prototype.thenThrow=function(n){return this._then(e,void 0,void 0,{reason:n},void 0)},r.prototype.catchThrow=function(n){if(arguments.length<=1)return this._then(void 0,e,void 0,{reason:n},void 0);var i=arguments[1],a=function(){throw i};return this.caught(n,a)},r.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof r&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var i=arguments[1];i instanceof r&&i.suppressUnhandledRejections();var a=function(){return i};return this.caught(n,a)}},MH=function(r){function t(u){u!==void 0?(u=u._target(),this._bitField=u._bitField,this._settledValueField=u._isFateSealed()?u._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var e=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise
See http://goo.gl/MqrFmX
`);return this._settledValue()},n=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
See http://goo.gl/MqrFmX
`);return this._settledValue()},i=t.prototype.isFulfilled=function(){return(this._bitField&33554432)!=0},a=t.prototype.isRejected=function(){return(this._bitField&16777216)!=0},o=t.prototype.isPending=function(){return(this._bitField&50397184)==0},s=t.prototype.isResolved=function(){return(this._bitField&50331648)!=0};t.prototype.isCancelled=function(){return(this._bitField&8454144)!=0},r.prototype.__isCancelled=function(){return(this._bitField&65536)==65536},r.prototype._isCancelled=function(){return this._target().__isCancelled()},r.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!=0},r.prototype.isPending=function(){return o.call(this._target())},r.prototype.isRejected=function(){return a.call(this._target())},r.prototype.isFulfilled=function(){return i.call(this._target())},r.prototype.isResolved=function(){return s.call(this._target())},r.prototype.value=function(){return e.call(this._target())},r.prototype.reason=function(){var u=this._target();return u._unsetRejectionIsUnhandled(),n.call(u)},r.prototype._value=function(){return this._settledValue()},r.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},r.PromiseInspection=t},BH=function(r,t,e,n,i,a){var o=qr,s=o.canEvaluate,u=o.tryCatch,c=o.errorObj,l;if(s){for(var d=function(v){return new Function("value","holder",`
'use strict';
holder.pIndex = value;
holder.checkFulfillment(this);
`.replace(/Index/g,v))},h=function(v){return new Function("promise","holder",`
'use strict';
holder.pIndex = promise;
`.replace(/Index/g,v))},f=function(v){for(var b=new Array(v),A=0;A<b.length;++A)b[A]="this.p"+(A+1);var C=b.join(" = ")+" = null;",M=`var promise;
`+b.map(function(G){return`
promise = `+G+`;
if (promise instanceof Promise) {
promise.cancel();
}
`}).join(`
`),z=b.join(", "),W="Holder$"+v,U=`return function(tryCatch, errorObj, Promise, async) {
'use strict';
function [TheName](fn) {
[TheProperties]
this.fn = fn;
this.asyncNeeded = true;
this.now = 0;
}
[TheName].prototype._callFunction = function(promise) {
promise._pushContext();
var ret = tryCatch(this.fn)([ThePassedArguments]);
promise._popContext();
if (ret === errorObj) {
promise._rejectCallback(ret.e, false);
} else {
promise._resolveCallback(ret);
}
};
[TheName].prototype.checkFulfillment = function(promise) {
var now = ++this.now;
if (now === [TheTotal]) {
if (this.asyncNeeded) {
async.invoke(this._callFunction, this, promise);
} else {
this._callFunction(promise);
}
}
};
[TheName].prototype._resultCancelled = function() {
[CancellationCode]
};
return [TheName];
}(tryCatch, errorObj, Promise, async);
`;return U=U.replace(/\[TheName\]/g,W).replace(/\[TheTotal\]/g,v).replace(/\[ThePassedArguments\]/g,z).replace(/\[TheProperties\]/g,C).replace(/\[CancellationCode\]/g,M),new Function("tryCatch","errorObj","Promise","async",U)(u,c,r,i)},g=[],m=[],p=[],y=0;y<8;++y)g.push(f(y+1)),m.push(d(y+1)),p.push(h(y+1));l=function(v){this._reject(v)}}r.join=function(){var v=arguments.length-1,b;if(v>0&&typeof arguments[v]=="function"&&(b=arguments[v],v<=8&&s)){var T=new r(n);T._captureStackTrace();for(var A=g[v-1],C=new A(b),M=m,z=0;z<v;++z){var W=e(arguments[z],T);if(W instanceof r){W=W._target();var U=W._bitField;(U&50397184)==0?(W._then(M[z],l,void 0,T,C),p[z](W,C),C.asyncNeeded=!1):(U&33554432)!=0?M[z].call(T,W._value(),C):(U&16777216)!=0?T._reject(W._reason()):T._cancel()}else M[z].call(T,W,C)}if(!T._isFateSealed()){if(C.asyncNeeded){var G=a();G!==null&&(C.fn=o.domainBind(G,C.fn))}T._setAsyncGuaranteed(),T._setOnCancel(C)}return T}for(var ee=arguments.length,I=new Array(ee),O=0;O<ee;++O)I[O]=arguments[O];b&&I.pop();var T=new t(I).promise();return b!==void 0?T.spread(b):T}},UH=function(r,t,e,n,i,a){var o=r._getDomain,s=qr,u=s.tryCatch,c=s.errorObj,l=r._async;function d(f,g,m,p){this.constructor$(f),this._promise._captureStackTrace();var y=o();this._callback=y===null?g:s.domainBind(y,g),this._preservedValues=p===i?new Array(this.length()):null,this._limit=m,this._inFlight=0,this._queue=[],l.invoke(this._asyncInit,this,void 0)}s.inherits(d,t),d.prototype._asyncInit=function(){this._init$(void 0,-2)},d.prototype._init=function(){},d.prototype._promiseFulfilled=function(f,g){var m=this._values,p=this.length(),y=this._preservedValues,v=this._limit;if(g<0){if(g=g*-1-1,m[g]=f,v>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(v>=1&&this._inFlight>=v)return m[g]=f,this._queue.push(g),!1;y!==null&&(y[g]=f);var b=this._promise,A=this._callback,C=b._boundValue();b._pushContext();var M=u(A).call(C,f,g,p),z=b._popContext();if(a.checkForgottenReturns(M,z,y!==null?"Promise.filter":"Promise.map",b),M===c)return this._reject(M.e),!0;var W=n(M,this._promise);if(W instanceof r){W=W._target();var U=W._bitField;if((U&50397184)==0)return v>=1&&this._inFlight++,m[g]=W,W._proxy(this,(g+1)*-1),!1;if((U&33554432)!=0)M=W._value();else return(U&16777216)!=0?(this._reject(W._reason()),!0):(this._cancel(),!0)}m[g]=M}var G=++this._totalResolved;return G>=p?(y!==null?this._filter(m,y):this._resolve(m),!0):!1},d.prototype._drainQueue=function(){for(var f=this._queue,g=this._limit,m=this._values;f.length>0&&this._inFlight<g;){if(this._isResolved())return;var p=f.pop();this._promiseFulfilled(m[p],p)}},d.prototype._filter=function(f,g){for(var m=g.length,p=new Array(m),y=0,v=0;v<m;++v)f[v]&&(p[y++]=g[v]);p.length=y,this._resolve(p)},d.prototype.preservedValues=function(){return this._preservedValues};function h(f,g,m,p){if(typeof g!="function")return e("expecting a function but got "+s.classString(g));var y=0;if(m!==void 0)if(typeof m=="object"&&m!==null){if(typeof m.concurrency!="number")return r.reject(new TypeError("'concurrency' must be a number but it is "+s.classString(m.concurrency)));y=m.concurrency}else return r.reject(new TypeError("options argument must be an object but it is "+s.classString(m)));return y=typeof y=="number"&&isFinite(y)&&y>=1?y:0,new d(f,g,y,p).promise()}r.prototype.map=function(f,g){return h(this,f,g,null)},r.map=function(f,g,m,p){return h(f,g,m,p)}},rg=Object.create;if(rg){var h3=rg(null),d3=rg(null);h3[" size"]=d3[" size"]=0}var PH=function(r){var t=qr,e=t.canEvaluate,n=t.isIdentifier,i,a;{var o=function(f){return new Function("ensureMethod",`
return function(obj) {
'use strict'
var len = this.length;
ensureMethod(obj, 'methodName');
switch(len) {
case 1: return obj.methodName(this[0]);
case 2: return obj.methodName(this[0], this[1]);
case 3: return obj.methodName(this[0], this[1], this[2]);
case 0: return obj.methodName();
default:
return obj.methodName.apply(obj, this);
}
};
`.replace(/methodName/g,f))(c)},s=function(f){return new Function("obj",`
'use strict';
return obj.propertyName;
`.replace("propertyName",f))},u=function(f,g,m){var p=m[f];if(typeof p!="function"){if(!n(f))return null;if(p=g(f),m[f]=p,m[" size"]++,m[" size"]>512){for(var y=Object.keys(m),v=0;v<256;++v)delete m[y[v]];m[" size"]=y.length-256}}return p};i=function(f){return u(f,o,h3)},a=function(f){return u(f,s,d3)}}function c(f,g){var m;if(f!=null&&(m=f[g]),typeof m!="function"){var p="Object "+t.classString(f)+" has no method '"+t.toString(g)+"'";throw new r.TypeError(p)}return m}function l(f){var g=this.pop(),m=c(f,g);return m.apply(f,this)}r.prototype.call=function(f){for(var g=arguments.length,m=new Array(Math.max(g-1,0)),p=1;p<g;++p)m[p-1]=arguments[p];if(e){var y=i(f);if(y!==null)return this._then(y,void 0,void 0,m,void 0)}return m.push(f),this._then(l,void 0,void 0,m,void 0)};function d(f){return f[this]}function h(f){var g=+this;return g<0&&(g=Math.max(0,g+f.length)),f[g]}r.prototype.get=function(f){var g=typeof f=="number",m;if(g)m=h;else if(e){var p=a(f);m=p!==null?p:d}else m=d;return this._then(m,void 0,void 0,f,void 0)}},LH=function(r,t,e,n,i,a){var o=qr,s=os.TypeError,u=qr.inherits,c=o.errorObj,l=o.tryCatch,d={};function h(b){setTimeout(function(){throw b},0)}function f(b){var A=e(b);return A!==b&&typeof b._isDisposable=="function"&&typeof b._getDisposer=="function"&&b._isDisposable()&&A._setDisposable(b._getDisposer()),A}function g(b,A){var C=0,M=b.length,z=new r(i);function W(){if(C>=M)return z._fulfill();var U=f(b[C++]);if(U instanceof r&&U._isDisposable()){try{U=e(U._getDisposer().tryDispose(A),b.promise)}catch(G){return h(G)}if(U instanceof r)return U._then(W,h,null,null,null)}W()}return W(),z}function m(b,A,C){this._data=b,this._promise=A,this._context=C}m.prototype.data=function(){return this._data},m.prototype.promise=function(){return this._promise},m.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():d},m.prototype.tryDispose=function(b){var A=this.resource(),C=this._context;C!==void 0&&C._pushContext();var M=A!==d?this.doDispose(A,b):null;return C!==void 0&&C._popContext(),this._promise._unsetDisposable(),this._data=null,M},m.isDisposer=function(b){return b!=null&&typeof b.resource=="function"&&typeof b.tryDispose=="function"};function p(b,A,C){this.constructor$(b,A,C)}u(p,m),p.prototype.doDispose=function(b,A){var C=this.data();return C.call(b,b,A)};function y(b){return m.isDisposer(b)?(this.resources[this.index]._setDisposable(b),b.promise()):b}function v(b){this.length=b,this.promise=null,this[b-1]=null}v.prototype._resultCancelled=function(){for(var b=this.length,A=0;A<b;++A){var C=this[A];C instanceof r&&C.cancel()}},r.using=function(){var b=arguments.length;if(b<2)return t("you must pass at least 2 arguments to Promise.using");var A=arguments[b-1];if(typeof A!="function")return t("expecting a function but got "+o.classString(A));var C,M=!0;b===2&&Array.isArray(arguments[0])?(C=arguments[0],b=C.length,M=!1):(C=arguments,b--);for(var z=new v(b),W=0;W<b;++W){var U=C[W];if(m.isDisposer(U)){var G=U;U=U.promise(),U._setDisposable(G)}else{var ee=e(U);ee instanceof r&&(U=ee._then(y,null,null,{resources:z,index:W},void 0))}z[W]=U}for(var I=new Array(z.length),W=0;W<I.length;++W)I[W]=r.resolve(z[W]).reflect();var O=r.all(I).then(function(S){for(var x=0;x<S.length;++x){var w=S[x];if(w.isRejected())return c.e=w.error(),c;if(!w.isFulfilled()){O.cancel();return}S[x]=w.value()}T._pushContext(),A=l(A);var _=M?A.apply(void 0,S):A(S),E=T._popContext();return a.checkForgottenReturns(_,E,"Promise.using",T),_}),T=O.lastly(function(){var S=new r.PromiseInspection(O);return g(z,S)});return z.promise=T,T._setOnCancel(z),T},r.prototype._setDisposable=function(b){this._bitField=this._bitField|131072,this._disposer=b},r.prototype._isDisposable=function(){return(this._bitField&131072)>0},r.prototype._getDisposer=function(){return this._disposer},r.prototype._unsetDisposable=function(){this._bitField=this._bitField&~131072,this._disposer=void 0},r.prototype.disposer=function(b){if(typeof b=="function")return new p(b,this,n());throw new s}},jH=function(r,t,e){var n=qr,i=r.TimeoutError;function a(d){this.handle=d}a.prototype._resultCancelled=function(){clearTimeout(this.handle)};var o=function(d){return s(+this).thenReturn(d)},s=r.delay=function(d,h){var f,g;return h!==void 0?(f=r.resolve(h)._then(o,null,null,d,void 0),e.cancellation()&&h instanceof r&&f._setOnCancel(h)):(f=new r(t),g=setTimeout(function(){f._fulfill()},+d),e.cancellation()&&f._setOnCancel(new a(g)),f._captureStackTrace()),f._setAsyncGuaranteed(),f};r.prototype.delay=function(d){return s(d,this)};var u=function(d,h,f){var g;typeof h!="string"?h instanceof Error?g=h:g=new i("operation timed out"):g=new i(h),n.markAsOriginatingFromRejection(g),d._attachExtraTrace(g),d._reject(g),f!=null&&f.cancel()};function c(d){return clearTimeout(this.handle),d}function l(d){throw clearTimeout(this.handle),d}r.prototype.timeout=function(d,h){d=+d;var f,g,m=new a(setTimeout(function(){f.isPending()&&u(f,h,g)},d));return e.cancellation()?(g=this.then(),f=g._then(c,l,void 0,m,void 0),f._setOnCancel(m)):f=this._then(c,l,void 0,m,void 0),f}},WH=function(r,t,e,n,i,a){var o=os,s=o.TypeError,u=qr,c=u.errorObj,l=u.tryCatch,d=[];function h(g,m,p){for(var y=0;y<m.length;++y){p._pushContext();var v=l(m[y])(g);if(p._popContext(),v===c){p._pushContext();var b=r.reject(c.e);return p._popContext(),b}var A=n(v,p);if(A instanceof r)return A}return null}function f(g,m,p,y){if(a.cancellation()){var v=new r(e),b=this._finallyPromise=new r(e);this._promise=v.lastly(function(){return b}),v._captureStackTrace(),v._setOnCancel(this)}else{var A=this._promise=new r(e);A._captureStackTrace()}this._stack=y,this._generatorFunction=g,this._receiver=m,this._generator=void 0,this._yieldHandlers=typeof p=="function"?[p].concat(d):d,this._yieldedPromise=null,this._cancellationPhase=!1}u.inherits(f,i),f.prototype._isResolved=function(){return this._promise===null},f.prototype._cleanup=function(){this._promise=this._generator=null,a.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},f.prototype._promiseCancelled=function(){if(!this._isResolved()){var g=typeof this._generator.return!="undefined",m;if(g)this._promise._pushContext(),m=l(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var p=new r.CancellationError("generator .return() sentinel");r.coroutine.returnSentinel=p,this._promise._attachExtraTrace(p),this._promise._pushContext(),m=l(this._generator.throw).call(this._generator,p),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(m)}},f.prototype._promiseFulfilled=function(g){this._yieldedPromise=null,this._promise._pushContext();var m=l(this._generator.next).call(this._generator,g);this._promise._popContext(),this._continue(m)},f.prototype._promiseRejected=function(g){this._yieldedPromise=null,this._promise._attachExtraTrace(g),this._promise._pushContext();var m=l(this._generator.throw).call(this._generator,g);this._promise._popContext(),this._continue(m)},f.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof r){var g=this._yieldedPromise;this._yieldedPromise=null,g.cancel()}},f.prototype.promise=function(){return this._promise},f.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},f.prototype._continue=function(g){var m=this._promise;if(g===c)return this._cleanup(),this._cancellationPhase?m.cancel():m._rejectCallback(g.e,!1);var p=g.value;if(g.done===!0)return this._cleanup(),this._cancellationPhase?m.cancel():m._resolveCallback(p);var y=n(p,this._promise);if(!(y instanceof r)&&(y=h(y,this._yieldHandlers,this._promise),y===null)){this._promiseRejected(new s(`A value %s was yielded that could not be treated as a promise
See http://goo.gl/MqrFmX
`.replace("%s",p)+`From coroutine:
`+this._stack.split(`
`).slice(1,-7).join(`
`)));return}y=y._target();var v=y._bitField;(v&50397184)==0?(this._yieldedPromise=y,y._proxy(this,null)):(v&33554432)!=0?r._async.invoke(this._promiseFulfilled,this,y._value()):(v&16777216)!=0?r._async.invoke(this._promiseRejected,this,y._reason()):this._promiseCancelled()},r.coroutine=function(g,m){if(typeof g!="function")throw new s(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var p=Object(m).yieldHandler,y=f,v=new Error().stack;return function(){var b=g.apply(this,arguments),A=new y(void 0,void 0,p,v),C=A.promise();return A._generator=b,A._promiseFulfilled(void 0),C}},r.coroutine.addYieldHandler=function(g){if(typeof g!="function")throw new s("expecting a function but got "+u.classString(g));d.push(g)},r.spawn=function(g){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),typeof g!="function")return t(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var m=new f(g,this),p=m.promise();return m._run(r.spawn),p}},zH=function(r){var t=qr,e=r._async,n=t.tryCatch,i=t.errorObj;function a(u,c){var l=this;if(!t.isArray(u))return o.call(l,u,c);var d=n(c).apply(l._boundValue(),[null].concat(u));d===i&&e.throwLater(d.e)}function o(u,c){var l=this,d=l._boundValue(),h=u===void 0?n(c).call(d,null):n(c).call(d,null,u);h===i&&e.throwLater(h.e)}function s(u,c){var l=this;if(!u){var d=new Error(u+"");d.cause=u,u=d}var h=n(c).call(l._boundValue(),u);h===i&&e.throwLater(h.e)}r.prototype.asCallback=r.prototype.nodeify=function(u,c){if(typeof u=="function"){var l=o;c!==void 0&&Object(c).spread&&(l=a),this._then(l,s,void 0,this,u)}return this}},HH=function(r,t){var e={},n=qr,i=f3,a=n.withAppended,o=n.maybeWrapAsError,s=n.canEvaluate,u=os.TypeError,c="Async",l={__isPromisified__:!0},d=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],h=new RegExp("^(?:"+d.join("|")+")$"),f=function(O){return n.isIdentifier(O)&&O.charAt(0)!=="_"&&O!=="constructor"};function g(O){return!h.test(O)}function m(O){try{return O.__isPromisified__===!0}catch{return!1}}function p(O,T,S){var x=n.getDataPropertyOrDefault(O,T+S,l);return x?m(x):!1}function y(O,T,S){for(var x=0;x<O.length;x+=2){var w=O[x];if(S.test(w)){for(var _=w.replace(S,""),E=0;E<O.length;E+=2)if(O[E]===_)throw new u(`Cannot promisify an API that has normal methods with '%s'-suffix
See http://goo.gl/MqrFmX
`.replace("%s",T))}}}function v(O,T,S,x){for(var w=n.inheritedDataKeys(O),_=[],E=0;E<w.length;++E){var R=w[E],F=O[R],B=x===f?!0:f(R);typeof F=="function"&&!m(F)&&!p(O,R,T)&&x(R,F,O,B)&&_.push(R,F)}return y(_,T,S),_}var b=function(O){return O.replace(/([$])/,"\\$")},A;{var C=function(O){for(var T=[O],S=Math.max(0,O-1-3),x=O-1;x>=S;--x)T.push(x);for(var x=O+1;x<=3;++x)T.push(x);return T},M=function(O){return n.filledRange(O,"_arg","")},z=function(O){return n.filledRange(Math.max(O,3),"_arg","")},W=function(O){return typeof O.length=="number"?Math.max(Math.min(O.length,1023+1),0):0};A=function(O,T,S,x,w,_){var E=Math.max(0,W(x)-1),R=C(E),F=typeof O=="string"||T===e;function B($){var q=M($).join(", "),k=$>0?", ":"",L;return F?L=`ret = callback.call(this, {{args}}, nodeback); break;
`:L=T===void 0?`ret = callback({{args}}, nodeback); break;
`:`ret = callback.call(receiver, {{args}}, nodeback); break;
`,L.replace("{{args}}",q).replace(", ",k)}function X(){for(var $="",q=0;q<R.length;++q)$+="case "+R[q]+":"+B(R[q]);return $+=`
default:
var args = new Array(len + 1);
var i = 0;
for (var i = 0; i < len; ++i) {
args[i] = arguments[i];
}
args[i] = nodeback;
[CodeForCall]
break;
`.replace("[CodeForCall]",F?`ret = callback.apply(this, args);
`:`ret = callback.apply(receiver, args);
`),$}var K=typeof O=="string"?"this != null ? this['"+O+"'] : fn":"fn",te=`'use strict';
var ret = function (Parameters) {
'use strict';
var len = arguments.length;
var promise = new Promise(INTERNAL);
promise._captureStackTrace();
var nodeback = nodebackForPromise(promise, `+_+`);
var ret;
var callback = tryCatch([GetFunctionCode]);
switch(len) {
[CodeForSwitchCase]
}
if (ret === errorObj) {
promise._rejectCallback(maybeWrapAsError(ret.e), true, true);
}
if (!promise._isFateSealed()) promise._setAsyncGuaranteed();
return promise;
};
notEnumerableProp(ret, '__isPromisified__', true);
return ret;
`.replace("[CodeForSwitchCase]",X()).replace("[GetFunctionCode]",K);return te=te.replace("Parameters",z(E)),new Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",te)(r,x,T,a,o,i,n.tryCatch,n.errorObj,n.notEnumerableProp,t)}}function U(O,T,S,x,w,_){var E=function(){return this}(),R=O;typeof R=="string"&&(O=x);function F(){var B=T;T===e&&(B=this);var X=new r(t);X._captureStackTrace();var K=typeof R=="string"&&this!==E?this[R]:O,te=i(X,_);try{K.apply(B,a(arguments,te))}catch($){X._rejectCallback(o($),!0,!0)}return X._isFateSealed()||X._setAsyncGuaranteed(),X}return n.notEnumerableProp(F,"__isPromisified__",!0),F}var G=s?A:U;function ee(O,T,S,x,w){for(var _=new RegExp(b(T)+"$"),E=v(O,T,_,S),R=0,F=E.length;R<F;R+=2){var B=E[R],X=E[R+1],K=B+T;if(x===G)O[K]=G(B,e,B,X,T,w);else{var te=x(X,function(){return G(B,e,B,X,T,w)});n.notEnumerableProp(te,"__isPromisified__",!0),O[K]=te}}return n.toFastProperties(O),O}function I(O,T,S){return G(O,T,void 0,O,null,S)}r.promisify=function(O,T){if(typeof O!="function")throw new u("expecting a function but got "+n.classString(O));if(m(O))return O;T=Object(T);var S=T.context===void 0?e:T.context,x=!!T.multiArgs,w=I(O,S,x);return n.copyDescriptors(O,w,g),w},r.promisifyAll=function(O,T){if(typeof O!="function"&&typeof O!="object")throw new u(`the target of promisifyAll must be an object or a function
See http://goo.gl/MqrFmX
`);T=Object(T);var S=!!T.multiArgs,x=T.suffix;typeof x!="string"&&(x=c);var w=T.filter;typeof w!="function"&&(w=f);var _=T.promisifier;if(typeof _!="function"&&(_=G),!n.isIdentifier(x))throw new RangeError(`suffix must be a valid identifier
See http://goo.gl/MqrFmX
`);for(var E=n.inheritedDataKeys(O),R=0;R<E.length;++R){var F=O[E[R]];E[R]!=="constructor"&&n.isClass(F)&&(ee(F.prototype,x,w,_,S),ee(F,x,w,_,S))}return ee(O,x,w,_,S)}},$H=function(r,t,e,n){var i=qr,a=i.isObject,o=is.exports,s;typeof Map=="function"&&(s=Map);var u=function(){var h=0,f=0;function g(m,p){this[h]=m,this[h+f]=p,h++}return function(p){f=p.size,h=0;var y=new Array(p.size*2);return p.forEach(g,y),y}}(),c=function(h){for(var f=new s,g=h.length/2|0,m=0;m<g;++m){var p=h[g+m],y=h[m];f.set(p,y)}return f};function l(h){var f=!1,g;if(s!==void 0&&h instanceof s)g=u(h),f=!0;else{var m=o.keys(h),p=m.length;g=new Array(p*2);for(var y=0;y<p;++y){var v=m[y];g[y]=h[v],g[y+p]=v}}this.constructor$(g),this._isMap=f,this._init$(void 0,-3)}i.inherits(l,t),l.prototype._init=function(){},l.prototype._promiseFulfilled=function(h,f){this._values[f]=h;var g=++this._totalResolved;if(g>=this._length){var m;if(this._isMap)m=c(this._values);else{m={};for(var p=this.length(),y=0,v=this.length();y<v;++y)m[this._values[y+p]]=this._values[y]}return this._resolve(m),!0}return!1},l.prototype.shouldCopyValues=function(){return!1},l.prototype.getActualLength=function(h){return h>>1};function d(h){var f,g=e(h);if(a(g))g instanceof r?f=g._then(r.props,void 0,void 0,void 0,void 0):f=new l(g).promise();else return n(`cannot await properties of a non-object
See http://goo.gl/MqrFmX
`);return g instanceof r&&f._propagateFrom(g,2),f}r.prototype.props=function(){return d(this)},r.props=function(h){return d(h)}},VH=function(r,t,e,n){var i=qr,a=function(s){return s.then(function(u){return o(u,s)})};function o(s,u){var c=e(s);if(c instanceof r)return a(c);if(s=i.asArray(s),s===null)return n("expecting an array or an iterable object but got "+i.classString(s));var l=new r(t);u!==void 0&&l._propagateFrom(u,3);for(var d=l._fulfill,h=l._reject,f=0,g=s.length;f<g;++f){var m=s[f];m===void 0&&!(f in s)||r.cast(m)._then(d,h,void 0,l,null)}return l}r.race=function(s){return o(s,void 0)},r.prototype.race=function(){return o(this,void 0)}},qH=function(r,t,e,n,i,a){var o=r._getDomain,s=qr,u=s.tryCatch;function c(g,m,p,y){this.constructor$(g);var v=o();this._fn=v===null?m:s.domainBind(v,m),p!==void 0&&(p=r.resolve(p),p._attachCancellationCallback(this)),this._initialValue=p,this._currentCancellable=null,y===i?this._eachValues=Array(this._length):y===0?this._eachValues=null:this._eachValues=void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}s.inherits(c,t),c.prototype._gotAccum=function(g){this._eachValues!==void 0&&this._eachValues!==null&&g!==i&&this._eachValues.push(g)},c.prototype._eachComplete=function(g){return this._eachValues!==null&&this._eachValues.push(g),this._eachValues},c.prototype._init=function(){},c.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},c.prototype.shouldCopyValues=function(){return!1},c.prototype._resolve=function(g){this._promise._resolveCallback(g),this._values=null},c.prototype._resultCancelled=function(g){if(g===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof r&&this._currentCancellable.cancel(),this._initialValue instanceof r&&this._initialValue.cancel())},c.prototype._iterate=function(g){this._values=g;var m,p,y=g.length;if(this._initialValue!==void 0?(m=this._initialValue,p=0):(m=r.resolve(g[0]),p=1),this._currentCancellable=m,!m.isRejected())for(;p<y;++p){var v={accum:null,value:g[p],index:p,length:y,array:this};m=m._then(h,void 0,void 0,v,void 0)}this._eachValues!==void 0&&(m=m._then(this._eachComplete,void 0,void 0,this,void 0)),m._then(l,l,void 0,m,this)},r.prototype.reduce=function(g,m){return d(this,g,m,null)},r.reduce=function(g,m,p,y){return d(g,m,p,y)};function l(g,m){this.isFulfilled()?m._resolve(g):m._reject(g)}function d(g,m,p,y){if(typeof m!="function")return e("expecting a function but got "+s.classString(m));var v=new c(g,m,p,y);return v.promise()}function h(g){this.accum=g,this.array._gotAccum(g);var m=n(this.value,this.array._promise);return m instanceof r?(this.array._currentCancellable=m,m._then(f,void 0,void 0,this,void 0)):f.call(this,m)}function f(g){var m=this.array,p=m._promise,y=u(m._fn);p._pushContext();var v;m._eachValues!==void 0?v=y.call(p._boundValue(),g,this.index,this.length):v=y.call(p._boundValue(),this.accum,g,this.index,this.length),v instanceof r&&(m._currentCancellable=v);var b=p._popContext();return a.checkForgottenReturns(v,b,m._eachValues!==void 0?"Promise.each":"Promise.reduce",p),v}},GH=function(r,t,e){var n=r.PromiseInspection,i=qr;function a(o){this.constructor$(o)}i.inherits(a,t),a.prototype._promiseResolved=function(o,s){this._values[o]=s;var u=++this._totalResolved;return u>=this._length?(this._resolve(this._values),!0):!1},a.prototype._promiseFulfilled=function(o,s){var u=new n;return u._bitField=33554432,u._settledValueField=o,this._promiseResolved(s,u)},a.prototype._promiseRejected=function(o,s){var u=new n;return u._bitField=16777216,u._settledValueField=o,this._promiseResolved(s,u)},r.settle=function(o){return e.deprecated(".settle()",".reflect()"),new a(o).promise()},r.prototype.settle=function(){return r.settle(this)}},XH=function(r,t,e){var n=qr,i=os.RangeError,a=os.AggregateError,o=n.isArray,s={};function u(l){this.constructor$(l),this._howMany=0,this._unwrap=!1,this._initialized=!1}n.inherits(u,t),u.prototype._init=function(){if(!!this._initialized){if(this._howMany===0){this._resolve([]);return}this._init$(void 0,-5);var l=o(this._values);!this._isResolved()&&l&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},u.prototype.init=function(){this._initialized=!0,this._init()},u.prototype.setUnwrap=function(){this._unwrap=!0},u.prototype.howMany=function(){return this._howMany},u.prototype.setHowMany=function(l){this._howMany=l},u.prototype._promiseFulfilled=function(l){return this._addFulfilled(l),this._fulfilled()===this.howMany()?(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0):!1},u.prototype._promiseRejected=function(l){return this._addRejected(l),this._checkOutcome()},u.prototype._promiseCancelled=function(){return this._values instanceof r||this._values==null?this._cancel():(this._addRejected(s),this._checkOutcome())},u.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var l=new a,d=this.length();d<this._values.length;++d)this._values[d]!==s&&l.push(this._values[d]);return l.length>0?this._reject(l):this._cancel(),!0}return!1},u.prototype._fulfilled=function(){return this._totalResolved},u.prototype._rejected=function(){return this._values.length-this.length()},u.prototype._addRejected=function(l){this._values.push(l)},u.prototype._addFulfilled=function(l){this._values[this._totalResolved++]=l},u.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},u.prototype._getRangeError=function(l){var d="Input array must contain at least "+this._howMany+" items but contains only "+l+" items";return new i(d)},u.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function c(l,d){if((d|0)!==d||d<0)return e(`expecting a positive integer
See http://goo.gl/MqrFmX
`);var h=new u(l),f=h.promise();return h.setHowMany(d),h.init(),f}r.some=function(l,d){return c(l,d)},r.prototype.some=function(l){return c(this,l)},r._SomePromiseArray=u},KH=function(r,t){var e=r.map;r.prototype.filter=function(n,i){return e(this,n,i,t)},r.filter=function(n,i,a){return e(n,i,a,t)}},ZH=function(r,t){var e=r.reduce,n=r.all;function i(){return n(this)}function a(o,s){return e(o,s,t,t)}r.prototype.each=function(o){return e(this,o,t,0)._then(i,void 0,void 0,this,void 0)},r.prototype.mapSeries=function(o){return e(this,o,t,t)},r.each=function(o,s){return e(o,s,t,0)._then(i,void 0,void 0,o,void 0)},r.mapSeries=a},YH=function(r){var t=r._SomePromiseArray;function e(n){var i=new t(n),a=i.promise();return i.setHowMany(1),i.setUnwrap(),i.init(),a}r.any=function(n){return e(n)},r.prototype.any=function(){return e(this)}};(function(r){r.exports=function(){var t=function(){return new h(`circular promise resolution chain
See http://goo.gl/MqrFmX
`)},e=function(){return new I.PromiseInspection(this._target())},n=function(x){return I.reject(new h(x))};function i(){}var a={},o=qr,s;o.isNode?s=function(){var x=process.domain;return x===void 0&&(x=null),x}:s=function(){return null},o.notEnumerableProp(I,"_getDomain",s);var u=is.exports,c=Zm.exports,l=new c;u.defineProperty(I,"_async",{value:l});var d=os,h=I.TypeError=d.TypeError;I.RangeError=d.RangeError;var f=I.CancellationError=d.CancellationError;I.TimeoutError=d.TimeoutError,I.OperationalError=d.OperationalError,I.RejectionError=d.OperationalError,I.AggregateError=d.AggregateError;var g=function(){},m={},p={},y=yH(I,g),v=bH(I,g,y,n,i),b=wH(I),A=b.create,C=xH(I,b);C.CapturedTrace;var M=_H(I,y),z=EH(p),W=f3,U=o.errorObj,G=o.tryCatch;function ee(x,w){if(typeof w!="function")throw new h("expecting a function but got "+o.classString(w));if(x.constructor!==I)throw new h(`the promise constructor cannot be invoked directly
See http://goo.gl/MqrFmX
`)}function I(x){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,x!==g&&(ee(this,x),this._resolveFromExecutor(x)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}I.prototype.toString=function(){return"[object Promise]"},I.prototype.caught=I.prototype.catch=function(x){var w=arguments.length;if(w>1){var _=new Array(w-1),E=0,R;for(R=0;R<w-1;++R){var F=arguments[R];if(o.isObject(F))_[E++]=F;else return n("expecting an object but got A catch statement predicate "+o.classString(F))}return _.length=E,x=arguments[R],this.then(void 0,z(_,x,this))}return this.then(void 0,x)},I.prototype.reflect=function(){return this._then(e,e,void 0,this,void 0)},I.prototype.then=function(x,w){if(C.warnings()&&arguments.length>0&&typeof x!="function"&&typeof w!="function"){var _=".then() only accepts functions but was passed: "+o.classString(x);arguments.length>1&&(_+=", "+o.classString(w)),this._warn(_)}return this._then(x,w,void 0,void 0,void 0)},I.prototype.done=function(x,w){var _=this._then(x,w,void 0,void 0,void 0);_._setIsFinal()},I.prototype.spread=function(x){return typeof x!="function"?n("expecting a function but got "+o.classString(x)):this.all()._then(x,void 0,void 0,m,void 0)},I.prototype.toJSON=function(){var x={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(x.fulfillmentValue=this.value(),x.isFulfilled=!0):this.isRejected()&&(x.rejectionReason=this.reason(),x.isRejected=!0),x},I.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new v(this).promise()},I.prototype.error=function(x){return this.caught(o.originatesFromRejection,x)},I.getNewLibraryCopy=r.exports,I.is=function(x){return x instanceof I},I.fromNode=I.fromCallback=function(x){var w=new I(g);w._captureStackTrace();var _=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,E=G(x)(W(w,_));return E===U&&w._rejectCallback(E.e,!0),w._isFateSealed()||w._setAsyncGuaranteed(),w},I.all=function(x){return new v(x).promise()},I.cast=function(x){var w=y(x);return w instanceof I||(w=new I(g),w._captureStackTrace(),w._setFulfilled(),w._rejectionHandler0=x),w},I.resolve=I.fulfilled=I.cast,I.reject=I.rejected=function(x){var w=new I(g);return w._captureStackTrace(),w._rejectCallback(x,!0),w},I.setScheduler=function(x){if(typeof x!="function")throw new h("expecting a function but got "+o.classString(x));return l.setScheduler(x)},I.prototype._then=function(x,w,_,E,R){var F=R!==void 0,B=F?R:new I(g),X=this._target(),K=X._bitField;F||(B._propagateFrom(this,3),B._captureStackTrace(),E===void 0&&(this._bitField&2097152)!=0&&((K&50397184)!=0?E=this._boundValue():E=X===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,B));var te=s();if((K&50397184)!=0){var $,q,k=X._settlePromiseCtx;(K&33554432)!=0?(q=X._rejectionHandler0,$=x):(K&16777216)!=0?(q=X._fulfillmentHandler0,$=w,X._unsetRejectionIsUnhandled()):(k=X._settlePromiseLateCancellationObserver,q=new f("late cancellation observer"),X._attachExtraTrace(q),$=w),l.invoke(k,X,{handler:te===null?$:typeof $=="function"&&o.domainBind(te,$),promise:B,receiver:E,value:q})}else X._addCallbacks(x,w,B,E,te);return B},I.prototype._length=function(){return this._bitField&65535},I.prototype._isFateSealed=function(){return(this._bitField&117506048)!=0},I.prototype._isFollowing=function(){return(this._bitField&67108864)==67108864},I.prototype._setLength=function(x){this._bitField=this._bitField&-65536|x&65535},I.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},I.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},I.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},I.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},I.prototype._isFinal=function(){return(this._bitField&4194304)>0},I.prototype._unsetCancelled=function(){this._bitField=this._bitField&~65536},I.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},I.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},I.prototype._setAsyncGuaranteed=function(){l.hasCustomScheduler()||(this._bitField=this._bitField|134217728)},I.prototype._receiverAt=function(x){var w=x===0?this._receiver0:this[x*4-4+3];if(w!==a)return w===void 0&&this._isBound()?this._boundValue():w},I.prototype._promiseAt=function(x){return this[x*4-4+2]},I.prototype._fulfillmentHandlerAt=function(x){return this[x*4-4+0]},I.prototype._rejectionHandlerAt=function(x){return this[x*4-4+1]},I.prototype._boundValue=function(){},I.prototype._migrateCallback0=function(x){x._bitField;var w=x._fulfillmentHandler0,_=x._rejectionHandler0,E=x._promise0,R=x._receiverAt(0);R===void 0&&(R=a),this._addCallbacks(w,_,E,R,null)},I.prototype._migrateCallbackAt=function(x,w){var _=x._fulfillmentHandlerAt(w),E=x._rejectionHandlerAt(w),R=x._promiseAt(w),F=x._receiverAt(w);F===void 0&&(F=a),this._addCallbacks(_,E,R,F,null)},I.prototype._addCallbacks=function(x,w,_,E,R){var F=this._length();if(F>=65535-4&&(F=0,this._setLength(0)),F===0)this._promise0=_,this._receiver0=E,typeof x=="function"&&(this._fulfillmentHandler0=R===null?x:o.domainBind(R,x)),typeof w=="function"&&(this._rejectionHandler0=R===null?w:o.domainBind(R,w));else{var B=F*4-4;this[B+2]=_,this[B+3]=E,typeof x=="function"&&(this[B+0]=R===null?x:o.domainBind(R,x)),typeof w=="function"&&(this[B+1]=R===null?w:o.domainBind(R,w))}return this._setLength(F+1),F},I.prototype._proxy=function(x,w){this._addCallbacks(void 0,void 0,w,x,null)},I.prototype._resolveCallback=function(x,w){if((this._bitField&117506048)==0){if(x===this)return this._rejectCallback(t(),!1);var _=y(x,this);if(!(_ instanceof I))return this._fulfill(x);w&&this._propagateFrom(_,2);var E=_._target();if(E===this){this._reject(t());return}var R=E._bitField;if((R&50397184)==0){var F=this._length();F>0&&E._migrateCallback0(this);for(var B=1;B<F;++B)E._migrateCallbackAt(this,B);this._setFollowing(),this._setLength(0),this._setFollowee(E)}else if((R&33554432)!=0)this._fulfill(E._value());else if((R&16777216)!=0)this._reject(E._reason());else{var X=new f("late cancellation observer");E._attachExtraTrace(X),this._reject(X)}}},I.prototype._rejectCallback=function(x,w,_){var E=o.ensureErrorObject(x),R=E===x;if(!R&&!_&&C.warnings()){var F="a promise was rejected with a non-error: "+o.classString(x);this._warn(F,!0)}this._attachExtraTrace(E,w?R:!1),this._reject(x)},I.prototype._resolveFromExecutor=function(x){var w=this;this._captureStackTrace(),this._pushContext();var _=!0,E=this._execute(x,function(R){w._resolveCallback(R)},function(R){w._rejectCallback(R,_)});_=!1,this._popContext(),E!==void 0&&w._rejectCallback(E,!0)},I.prototype._settlePromiseFromHandler=function(x,w,_,E){var R=E._bitField;if((R&65536)==0){E._pushContext();var F;w===m?!_||typeof _.length!="number"?(F=U,F.e=new h("cannot .spread() a non-array: "+o.classString(_))):F=G(x).apply(this._boundValue(),_):F=G(x).call(w,_);var B=E._popContext();R=E._bitField,(R&65536)==0&&(F===p?E._reject(_):F===U?E._rejectCallback(F.e,!1):(C.checkForgottenReturns(F,B,"",E,this),E._resolveCallback(F)))}},I.prototype._target=function(){for(var x=this;x._isFollowing();)x=x._followee();return x},I.prototype._followee=function(){return this._rejectionHandler0},I.prototype._setFollowee=function(x){this._rejectionHandler0=x},I.prototype._settlePromise=function(x,w,_,E){var R=x instanceof I,F=this._bitField,B=(F&134217728)!=0;(F&65536)!=0?(R&&x._invokeInternalOnCancel(),_ instanceof M&&_.isFinallyHandler()?(_.cancelPromise=x,G(w).call(_,E)===U&&x._reject(U.e)):w===e?x._fulfill(e.call(_)):_ instanceof i?_._promiseCancelled(x):R||x instanceof v?x._cancel():_.cancel()):typeof w=="function"?R?(B&&x._setAsyncGuaranteed(),this._settlePromiseFromHandler(w,_,E,x)):w.call(_,E,x):_ instanceof i?_._isResolved()||((F&33554432)!=0?_._promiseFulfilled(E,x):_._promiseRejected(E,x)):R&&(B&&x._setAsyncGuaranteed(),(F&33554432)!=0?x._fulfill(E):x._reject(E))},I.prototype._settlePromiseLateCancellationObserver=function(x){var w=x.handler,_=x.promise,E=x.receiver,R=x.value;typeof w=="function"?_ instanceof I?this._settlePromiseFromHandler(w,E,R,_):w.call(E,R,_):_ instanceof I&&_._reject(R)},I.prototype._settlePromiseCtx=function(x){this._settlePromise(x.promise,x.handler,x.receiver,x.value)},I.prototype._settlePromise0=function(x,w,_){var E=this._promise0,R=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(E,x,R,w)},I.prototype._clearCallbackDataAtIndex=function(x){var w=x*4-4;this[w+2]=this[w+3]=this[w+0]=this[w+1]=void 0},I.prototype._fulfill=function(x){var w=this._bitField;if(!((w&117506048)>>>16)){if(x===this){var _=t();return this._attachExtraTrace(_),this._reject(_)}this._setFulfilled(),this._rejectionHandler0=x,(w&65535)>0&&((w&134217728)!=0?this._settlePromises():l.settlePromises(this))}},I.prototype._reject=function(x){var w=this._bitField;if(!((w&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=x,this._isFinal())return l.fatalError(x,o.isNode);(w&65535)>0?l.settlePromises(this):this._ensurePossibleRejectionHandled()}},I.prototype._fulfillPromises=function(x,w){for(var _=1;_<x;_++){var E=this._fulfillmentHandlerAt(_),R=this._promiseAt(_),F=this._receiverAt(_);this._clearCallbackDataAtIndex(_),this._settlePromise(R,E,F,w)}},I.prototype._rejectPromises=function(x,w){for(var _=1;_<x;_++){var E=this._rejectionHandlerAt(_),R=this._promiseAt(_),F=this._receiverAt(_);this._clearCallbackDataAtIndex(_),this._settlePromise(R,E,F,w)}},I.prototype._settlePromises=function(){var x=this._bitField,w=x&65535;if(w>0){if((x&16842752)!=0){var _=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,_,x),this._rejectPromises(w,_)}else{var E=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,E,x),this._fulfillPromises(w,E)}this._setLength(0)}this._clearCancellationData()},I.prototype._settledValue=function(){var x=this._bitField;if((x&33554432)!=0)return this._rejectionHandler0;if((x&16777216)!=0)return this._fulfillmentHandler0};function O(x){this.promise._resolveCallback(x)}function T(x){this.promise._rejectCallback(x,!1)}I.defer=I.pending=function(){C.deprecated("Promise.defer","new Promise");var x=new I(g);return{promise:x,resolve:O,reject:T}},o.notEnumerableProp(I,"_makeSelfResolutionError",t),kH(I,g,y,n,C),RH(I,g,y,C),FH(I,v,n,C),NH(I),MH(I),BH(I,v,y,g,l,s),I.Promise=I,I.version="3.4.7",UH(I,v,n,y,g,C),PH(I),LH(I,n,y,A,g,C),jH(I,g,C),WH(I,n,g,y,i,C),zH(I),HH(I,g),$H(I,v,y,n),VH(I,g,y,n),qH(I,v,n,y,g,C),GH(I,v,C),XH(I,v,n),KH(I,g),ZH(I,g),YH(I),o.toFastProperties(I),o.toFastProperties(I.prototype);function S(x){var w=new I(g);w._fulfillmentHandler0=x,w._rejectionHandler0=x,w._promise0=x,w._receiver0=x}return S({a:1}),S({b:2}),S({c:3}),S(1),S(function(){}),S(void 0),S(!1),S(new I(g)),C.setBounds(c.firstLineError,o.lastLineError),I}})(X_);var JH=on.exports,Oi=X_.exports();Un.defer=QH;Un.when=Oi.resolve;Un.resolve=Oi.resolve;Un.all=Oi.all;Un.props=Oi.props;Un.reject=Oi.reject;Un.promisify=Oi.promisify;Un.mapSeries=Oi.mapSeries;Un.attempt=Oi.attempt;Un.nfcall=function(r){var t=Array.prototype.slice.call(arguments,1),e=Oi.promisify(r);return e.apply(null,t)};Oi.prototype.fail=Oi.prototype.caught;Oi.prototype.also=function(r){return this.then(function(t){var e=JH.extend({},t,r(t));return Oi.props(e)})};function QH(){var r,t,e=new Oi.Promise(function(n,i){r=n,t=i});return{resolve:r,reject:t,promise:e}}var pr={},e$=on.exports,ri=pr.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"};function t$(r,t){return t=t||{},{type:ri.document,children:r,notes:t.notes||new od({}),comments:t.comments||[]}}function r$(r,t){t=t||{};var e=t.indent||{};return{type:ri.paragraph,children:r,styleId:t.styleId||null,styleName:t.styleName||null,numbering:t.numbering||null,alignment:t.alignment||null,indent:{start:e.start||null,end:e.end||null,firstLine:e.firstLine||null,hanging:e.hanging||null}}}function n$(r,t){return t=t||{},{type:ri.run,children:r,styleId:t.styleId||null,styleName:t.styleName||null,isBold:!!t.isBold,isUnderline:!!t.isUnderline,isItalic:!!t.isItalic,isStrikethrough:!!t.isStrikethrough,isAllCaps:!!t.isAllCaps,isSmallCaps:!!t.isSmallCaps,verticalAlignment:t.verticalAlignment||p3.baseline,font:t.font||null,fontSize:t.fontSize||null,highlight:t.highlight||null}}var p3={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function i$(r){return{type:ri.text,value:r}}function a$(){return{type:ri.tab}}function o$(r,t){return{type:ri.hyperlink,children:r,href:t.href,anchor:t.anchor,targetFrame:t.targetFrame}}function s$(r){return{type:ri.noteReference,noteType:r.noteType,noteId:r.noteId}}function od(r){this._notes=e$.indexBy(r,function(t){return m3(t.noteType,t.noteId)})}od.prototype.resolve=function(r){return this.findNoteByKey(m3(r.noteType,r.noteId))};od.prototype.findNoteByKey=function(r){return this._notes[r]||null};function u$(r){return{type:ri.note,noteType:r.noteType,noteId:r.noteId,body:r.body}}function c$(r){return{type:ri.commentReference,commentId:r.commentId}}function l$(r){return{type:ri.comment,commentId:r.commentId,body:r.body,authorName:r.authorName,authorInitials:r.authorInitials}}function m3(r,t){return r+"-"+t}function f$(r){return{type:ri.image,read:function(t){return t?r.readImage(t):r.readImage().then(function(e){return Buffer.from(e)})},readAsArrayBuffer:function(){return r.readImage()},readAsBase64String:function(){return r.readImage("base64")},readAsBuffer:function(){return r.readImage().then(function(t){return Buffer.from(t)})},altText:r.altText,contentType:r.contentType}}function h$(r,t){return t=t||{},{type:ri.table,children:r,styleId:t.styleId||null,styleName:t.styleName||null}}function d$(r,t){return t=t||{},{type:ri.tableRow,children:r,isHeader:t.isHeader||!1}}function p$(r,t){return t=t||{},{type:ri.tableCell,children:r,colSpan:t.colSpan==null?1:t.colSpan,rowSpan:t.rowSpan==null?1:t.rowSpan}}function ng(r){return{type:ri.break,breakType:r}}function m$(r){return{type:ri.bookmarkStart,name:r.name}}pr.document=pr.Document=t$;pr.paragraph=pr.Paragraph=r$;pr.run=pr.Run=n$;pr.text=pr.Text=i$;pr.tab=pr.Tab=a$;pr.Hyperlink=o$;pr.noteReference=pr.NoteReference=s$;pr.Notes=od;pr.Note=u$;pr.commentReference=c$;pr.comment=l$;pr.Image=f$;pr.Table=h$;pr.TableRow=d$;pr.TableCell=p$;pr.lineBreak=ng("line");pr.pageBreak=ng("page");pr.columnBreak=ng("column");pr.BookmarkStart=m$;pr.verticalAlignment=p3;var $i={},vl=on.exports;$i.Result=Xa;$i.success=g$;$i.warning=v$;$i.error=y$;function Xa(r,t){this.value=r,this.messages=t||[]}Xa.prototype.map=function(r){return new Xa(r(this.value),this.messages)};Xa.prototype.flatMap=function(r){var t=r(this.value);return new Xa(t.value,ig([this,t]))};Xa.prototype.flatMapThen=function(r){var t=this;return r(this.value).then(function(e){return new Xa(e.value,ig([t,e]))})};Xa.combine=function(r){var t=vl.flatten(vl.pluck(r,"value")),e=ig(r);return new Xa(t,e)};function g$(r){return new Xa(r,[])}function v$(r){return{type:"warning",message:r}}function y$(r){return{type:"error",message:r.message,error:r}}function ig(r){var t=[];return vl.flatten(vl.pluck(r,"messages"),!0).forEach(function(e){b$(t,e)||t.push(e)}),t}function b$(r,t){return vl.find(r,w$.bind(null,t))!==void 0}function w$(r,t){return r.type===t.type&&r.message===t.message}var yl={},sd={};sd.byteLength=E$;sd.toByteArray=T$;sd.fromByteArray=C$;var Ka=[],aa=[],x$=typeof Uint8Array!="undefined"?Uint8Array:Array,ag="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Yu=0,_$=ag.length;Yu<_$;++Yu)Ka[Yu]=ag[Yu],aa[ag.charCodeAt(Yu)]=Yu;aa["-".charCodeAt(0)]=62;aa["_".charCodeAt(0)]=63;function g3(r){var t=r.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");e===-1&&(e=t);var n=e===t?0:4-e%4;return[e,n]}function E$(r){var t=g3(r),e=t[0],n=t[1];return(e+n)*3/4-n}function A$(r,t,e){return(t+e)*3/4-e}function T$(r){var t,e=g3(r),n=e[0],i=e[1],a=new x$(A$(r,n,i)),o=0,s=i>0?n-4:n,u;for(u=0;u<s;u+=4)t=aa[r.charCodeAt(u)]<<18|aa[r.charCodeAt(u+1)]<<12|aa[r.charCodeAt(u+2)]<<6|aa[r.charCodeAt(u+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=aa[r.charCodeAt(u)]<<2|aa[r.charCodeAt(u+1)]>>4,a[o++]=t&255),i===1&&(t=aa[r.charCodeAt(u)]<<10|aa[r.charCodeAt(u+1)]<<4|aa[r.charCodeAt(u+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function S$(r){return Ka[r>>18&63]+Ka[r>>12&63]+Ka[r>>6&63]+Ka[r&63]}function D$(r,t,e){for(var n,i=[],a=t;a<e;a+=3)n=(r[a]<<16&16711680)+(r[a+1]<<8&65280)+(r[a+2]&255),i.push(S$(n));return i.join("")}function C$(r){for(var t,e=r.length,n=e%3,i=[],a=16383,o=0,s=e-n;o<s;o+=a)i.push(D$(r,o,o+a>s?s:o+a));return n===1?(t=r[e-1],i.push(Ka[t>>2]+Ka[t<<4&63]+"==")):n===2&&(t=(r[e-2]<<8)+r[e-1],i.push(Ka[t>>10]+Ka[t>>4&63]+Ka[t<<2&63]+"=")),i.join("")}var v3={exports:{}};/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/(function(r,t){(function(e){r.exports=e()})(function(){return function e(n,i,a){function o(c,l){if(!i[c]){if(!n[c]){var d=typeof Vo=="function"&&Vo;if(!l&&d)return d(c,!0);if(s)return s(c,!0);var h=new Error("Cannot find module '"+c+"'");throw h.code="MODULE_NOT_FOUND",h}var f=i[c]={exports:{}};n[c][0].call(f.exports,function(g){var m=n[c][1][g];return o(m||g)},f,f.exports,e,n,i,a)}return i[c].exports}for(var s=typeof Vo=="function"&&Vo,u=0;u<a.length;u++)o(a[u]);return o}({1:[function(e,n,i){var a=e("./utils"),o=e("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(u){for(var c,l,d,h,f,g,m,p=[],y=0,v=u.length,b=v,A=a.getTypeOf(u)!=="string";y<u.length;)b=v-y,d=A?(c=u[y++],l=y<v?u[y++]:0,y<v?u[y++]:0):(c=u.charCodeAt(y++),l=y<v?u.charCodeAt(y++):0,y<v?u.charCodeAt(y++):0),h=c>>2,f=(3&c)<<4|l>>4,g=1<b?(15&l)<<2|d>>6:64,m=2<b?63&d:64,p.push(s.charAt(h)+s.charAt(f)+s.charAt(g)+s.charAt(m));return p.join("")},i.decode=function(u){var c,l,d,h,f,g,m=0,p=0,y="data:";if(u.substr(0,y.length)===y)throw new Error("Invalid base64 input, it looks like a data url.");var v,b=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===s.charAt(64)&&b--,u.charAt(u.length-2)===s.charAt(64)&&b--,b%1!=0)throw new Error("Invalid base64 input, bad content length.");for(v=o.uint8array?new Uint8Array(0|b):new Array(0|b);m<u.length;)c=s.indexOf(u.charAt(m++))<<2|(h=s.indexOf(u.charAt(m++)))>>4,l=(15&h)<<4|(f=s.indexOf(u.charAt(m++)))>>2,d=(3&f)<<6|(g=s.indexOf(u.charAt(m++))),v[p++]=c,f!==64&&(v[p++]=l),g!==64&&(v[p++]=d);return v}},{"./support":30,"./utils":32}],2:[function(e,n,i){var a=e("./external"),o=e("./stream/DataWorker"),s=e("./stream/Crc32Probe"),u=e("./stream/DataLengthProbe");function c(l,d,h,f,g){this.compressedSize=l,this.uncompressedSize=d,this.crc32=h,this.compression=f,this.compressedContent=g}c.prototype={getContentWorker:function(){var l=new o(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),d=this;return l.on("end",function(){if(this.streamInfo.data_length!==d.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new o(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(l,d,h){return l.pipe(new s).pipe(new u("uncompressedSize")).pipe(d.compressWorker(h)).pipe(new u("compressedSize")).withStreamInfo("compression",d)},n.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,n,i){var a=e("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}},i.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,n,i){var a=e("./utils"),o=function(){for(var s,u=[],c=0;c<256;c++){s=c;for(var l=0;l<8;l++)s=1&s?3988292384^s>>>1:s>>>1;u[c]=s}return u}();n.exports=function(s,u){return s!==void 0&&s.length?a.getTypeOf(s)!=="string"?function(c,l,d,h){var f=o,g=h+d;c^=-1;for(var m=h;m<g;m++)c=c>>>8^f[255&(c^l[m])];return-1^c}(0|u,s,s.length,0):function(c,l,d,h){var f=o,g=h+d;c^=-1;for(var m=h;m<g;m++)c=c>>>8^f[255&(c^l.charCodeAt(m))];return-1^c}(0|u,s,s.length,0):0}},{"./utils":32}],5:[function(e,n,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(e,n,i){var a=null;a=typeof Promise!="undefined"?Promise:e("lie"),n.exports={Promise:a}},{lie:37}],7:[function(e,n,i){var a=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",o=e("pako"),s=e("./utils"),u=e("./stream/GenericWorker"),c=a?"uint8array":"array";function l(d,h){u.call(this,"FlateWorker/"+d),this._pako=null,this._pakoAction=d,this._pakoOptions=h,this.meta={}}i.magic="\b\0",s.inherits(l,u),l.prototype.processChunk=function(d){this.meta=d.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(c,d.data),!1)},l.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var d=this;this._pako.onData=function(h){d.push({data:h,meta:d.meta})}},i.compressWorker=function(d){return new l("Deflate",d)},i.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,n,i){function a(f,g){var m,p="";for(m=0;m<g;m++)p+=String.fromCharCode(255&f),f>>>=8;return p}function o(f,g,m,p,y,v){var b,A,C=f.file,M=f.compression,z=v!==c.utf8encode,W=s.transformTo("string",v(C.name)),U=s.transformTo("string",c.utf8encode(C.name)),G=C.comment,ee=s.transformTo("string",v(G)),I=s.transformTo("string",c.utf8encode(G)),O=U.length!==C.name.length,T=I.length!==G.length,S="",x="",w="",_=C.dir,E=C.date,R={crc32:0,compressedSize:0,uncompressedSize:0};g&&!m||(R.crc32=f.crc32,R.compressedSize=f.compressedSize,R.uncompressedSize=f.uncompressedSize);var F=0;g&&(F|=8),z||!O&&!T||(F|=2048);var B=0,X=0;_&&(B|=16),y==="UNIX"?(X=798,B|=function(te,$){var q=te;return te||(q=$?16893:33204),(65535&q)<<16}(C.unixPermissions,_)):(X=20,B|=function(te){return 63&(te||0)}(C.dosPermissions)),b=E.getUTCHours(),b<<=6,b|=E.getUTCMinutes(),b<<=5,b|=E.getUTCSeconds()/2,A=E.getUTCFullYear()-1980,A<<=4,A|=E.getUTCMonth()+1,A<<=5,A|=E.getUTCDate(),O&&(x=a(1,1)+a(l(W),4)+U,S+="up"+a(x.length,2)+x),T&&(w=a(1,1)+a(l(ee),4)+I,S+="uc"+a(w.length,2)+w);var K="";return K+=`
\0`,K+=a(F,2),K+=M.magic,K+=a(b,2),K+=a(A,2),K+=a(R.crc32,4),K+=a(R.compressedSize,4),K+=a(R.uncompressedSize,4),K+=a(W.length,2),K+=a(S.length,2),{fileRecord:d.LOCAL_FILE_HEADER+K+W+S,dirRecord:d.CENTRAL_FILE_HEADER+a(X,2)+K+a(ee.length,2)+"\0\0\0\0"+a(B,4)+a(p,4)+W+S+ee}}var s=e("../utils"),u=e("../stream/GenericWorker"),c=e("../utf8"),l=e("../crc32"),d=e("../signature");function h(f,g,m,p){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,this.zipPlatform=m,this.encodeFileName=p,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(h,u),h.prototype.push=function(f){var g=f.meta.percent||0,m=this.entriesCount,p=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,u.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:m?(g+100*(m-p-1))/m:100}}))},h.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var g=this.streamFiles&&!f.file.dir;if(g){var m=o(f,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:m.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(f){this.accumulate=!1;var g=this.streamFiles&&!f.file.dir,m=o(f,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(m.dirRecord),g)this.push({data:function(p){return d.DATA_DESCRIPTOR+a(p.crc32,4)+a(p.compressedSize,4)+a(p.uncompressedSize,4)}(f),meta:{percent:100}});else for(this.push({data:m.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var f=this.bytesWritten,g=0;g<this.dirRecords.length;g++)this.push({data:this.dirRecords[g],meta:{percent:100}});var m=this.bytesWritten-f,p=function(y,v,b,A,C){var M=s.transformTo("string",C(A));return d.CENTRAL_DIRECTORY_END+"\0\0\0\0"+a(y,2)+a(y,2)+a(v,4)+a(b,4)+a(M.length,2)+M}(this.dirRecords.length,m,f,this.zipComment,this.encodeFileName);this.push({data:p,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.prototype.registerPrevious=function(f){this._sources.push(f);var g=this;return f.on("data",function(m){g.processChunk(m)}),f.on("end",function(){g.closedSource(g.previous.streamInfo),g._sources.length?g.prepareNextSource():g.end()}),f.on("error",function(m){g.error(m)}),this},h.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(f){var g=this._sources;if(!u.prototype.error.call(this,f))return!1;for(var m=0;m<g.length;m++)try{g[m].error(f)}catch{}return!0},h.prototype.lock=function(){u.prototype.lock.call(this);for(var f=this._sources,g=0;g<f.length;g++)f[g].lock()},n.exports=h},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,n,i){var a=e("../compressions"),o=e("./ZipFileWorker");i.generateWorker=function(s,u,c){var l=new o(u.streamFiles,c,u.platform,u.encodeFileName),d=0;try{s.forEach(function(h,f){d++;var g=function(v,b){var A=v||b,C=a[A];if(!C)throw new Error(A+" is not a valid compression method !");return C}(f.options.compression,u.compression),m=f.options.compressionOptions||u.compressionOptions||{},p=f.dir,y=f.date;f._compressWorker(g,m).withStreamInfo("file",{name:h,dir:p,date:y,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(l)}),l.entriesCount=d}catch(h){l.error(h)}return l}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,n,i){function a(){if(!(this instanceof a))return new a;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new a;for(var s in this)typeof this[s]!="function"&&(o[s]=this[s]);return o}}(a.prototype=e("./object")).loadAsync=e("./load"),a.support=e("./support"),a.defaults=e("./defaults"),a.version="3.10.1",a.loadAsync=function(o,s){return new a().loadAsync(o,s)},a.external=e("./external"),n.exports=a},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,n,i){var a=e("./utils"),o=e("./external"),s=e("./utf8"),u=e("./zipEntries"),c=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function d(h){return new o.Promise(function(f,g){var m=h.decompressed.getContentWorker().pipe(new c);m.on("error",function(p){g(p)}).on("end",function(){m.streamInfo.crc32!==h.decompressed.crc32?g(new Error("Corrupted zip : CRC32 mismatch")):f()}).resume()})}n.exports=function(h,f){var g=this;return f=a.extend(f||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),l.isNode&&l.isStream(h)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):a.prepareContent("the loaded zip file",h,!0,f.optimizedBinaryString,f.base64).then(function(m){var p=new u(f);return p.load(m),p}).then(function(m){var p=[o.Promise.resolve(m)],y=m.files;if(f.checkCRC32)for(var v=0;v<y.length;v++)p.push(d(y[v]));return o.Promise.all(p)}).then(function(m){for(var p=m.shift(),y=p.files,v=0;v<y.length;v++){var b=y[v],A=b.fileNameStr,C=a.resolve(b.fileNameStr);g.file(C,b.decompressed,{binary:!0,optimizedBinaryString:!0,date:b.date,dir:b.dir,comment:b.fileCommentStr.length?b.fileCommentStr:null,unixPermissions:b.unixPermissions,dosPermissions:b.dosPermissions,createFolders:f.createFolders}),b.dir||(g.file(C).unsafeOriginalName=A)}return p.zipComment.length&&(g.comment=p.zipComment),g})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,n,i){var a=e("../utils"),o=e("../stream/GenericWorker");function s(u,c){o.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(c)}a.inherits(s,o),s.prototype._bindStream=function(u){var c=this;(this._stream=u).pause(),u.on("data",function(l){c.push({data:l,meta:{percent:0}})}).on("error",function(l){c.isPaused?this.generatedError=l:c.error(l)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},s.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},n.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,n,i){var a=e("readable-stream").Readable;function o(s,u,c){a.call(this,u),this._helper=s;var l=this;s.on("data",function(d,h){l.push(d)||l._helper.pause(),c&&c(h)}).on("error",function(d){l.emit("error",d)}).on("end",function(){l.push(null)})}e("../utils").inherits(o,a),o.prototype._read=function(){this._helper.resume()},n.exports=o},{"../utils":32,"readable-stream":16}],14:[function(e,n,i){n.exports={isNode:typeof Buffer!="undefined",newBufferFrom:function(a,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(a,o);if(typeof a=="number")throw new Error('The "data" argument must not be a number');return new Buffer(a,o)},allocBuffer:function(a){if(Buffer.alloc)return Buffer.alloc(a);var o=new Buffer(a);return o.fill(0),o},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&typeof a.on=="function"&&typeof a.pause=="function"&&typeof a.resume=="function"}}},{}],15:[function(e,n,i){function a(C,M,z){var W,U=s.getTypeOf(M),G=s.extend(z||{},l);G.date=G.date||new Date,G.compression!==null&&(G.compression=G.compression.toUpperCase()),typeof G.unixPermissions=="string"&&(G.unixPermissions=parseInt(G.unixPermissions,8)),G.unixPermissions&&16384&G.unixPermissions&&(G.dir=!0),G.dosPermissions&&16&G.dosPermissions&&(G.dir=!0),G.dir&&(C=y(C)),G.createFolders&&(W=p(C))&&v.call(this,W,!0);var ee=U==="string"&&G.binary===!1&&G.base64===!1;z&&z.binary!==void 0||(G.binary=!ee),(M instanceof d&&M.uncompressedSize===0||G.dir||!M||M.length===0)&&(G.base64=!1,G.binary=!0,M="",G.compression="STORE",U="string");var I=null;I=M instanceof d||M instanceof u?M:g.isNode&&g.isStream(M)?new m(C,M):s.prepareContent(C,M,G.binary,G.optimizedBinaryString,G.base64);var O=new h(C,I,G);this.files[C]=O}var o=e("./utf8"),s=e("./utils"),u=e("./stream/GenericWorker"),c=e("./stream/StreamHelper"),l=e("./defaults"),d=e("./compressedObject"),h=e("./zipObject"),f=e("./generate"),g=e("./nodejsUtils"),m=e("./nodejs/NodejsStreamInputAdapter"),p=function(C){C.slice(-1)==="/"&&(C=C.substring(0,C.length-1));var M=C.lastIndexOf("/");return 0<M?C.substring(0,M):""},y=function(C){return C.slice(-1)!=="/"&&(C+="/"),C},v=function(C,M){return M=M!==void 0?M:l.createFolders,C=y(C),this.files[C]||a.call(this,C,null,{dir:!0,createFolders:M}),this.files[C]};function b(C){return Object.prototype.toString.call(C)==="[object RegExp]"}var A={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(C){var M,z,W;for(M in this.files)W=this.files[M],(z=M.slice(this.root.length,M.length))&&M.slice(0,this.root.length)===this.root&&C(z,W)},filter:function(C){var M=[];return this.forEach(function(z,W){C(z,W)&&M.push(W)}),M},file:function(C,M,z){if(arguments.length!==1)return C=this.root+C,a.call(this,C,M,z),this;if(b(C)){var W=C;return this.filter(function(G,ee){return!ee.dir&&W.test(G)})}var U=this.files[this.root+C];return U&&!U.dir?U:null},folder:function(C){if(!C)return this;if(b(C))return this.filter(function(U,G){return G.dir&&C.test(U)});var M=this.root+C,z=v.call(this,M),W=this.clone();return W.root=z.name,W},remove:function(C){C=this.root+C;var M=this.files[C];if(M||(C.slice(-1)!=="/"&&(C+="/"),M=this.files[C]),M&&!M.dir)delete this.files[C];else for(var z=this.filter(function(U,G){return G.name.slice(0,C.length)===C}),W=0;W<z.length;W++)delete this.files[z[W].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(C){var M,z={};try{if((z=s.extend(C||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=z.type.toLowerCase(),z.compression=z.compression.toUpperCase(),z.type==="binarystring"&&(z.type="string"),!z.type)throw new Error("No output type specified.");s.checkSupport(z.type),z.platform!=="darwin"&&z.platform!=="freebsd"&&z.platform!=="linux"&&z.platform!=="sunos"||(z.platform="UNIX"),z.platform==="win32"&&(z.platform="DOS");var W=z.comment||this.comment||"";M=f.generateWorker(this,z,W)}catch(U){(M=new u("error")).error(U)}return new c(M,z.type||"string",z.mimeType)},generateAsync:function(C,M){return this.generateInternalStream(C).accumulate(M)},generateNodeStream:function(C,M){return(C=C||{}).type||(C.type="nodebuffer"),this.generateInternalStream(C).toNodejsStream(M)}};n.exports=A},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,n,i){n.exports=e("stream")},{stream:void 0}],17:[function(e,n,i){var a=e("./DataReader");function o(s){a.call(this,s);for(var u=0;u<this.data.length;u++)s[u]=255&s[u]}e("../utils").inherits(o,a),o.prototype.byteAt=function(s){return this.data[this.zero+s]},o.prototype.lastIndexOfSignature=function(s){for(var u=s.charCodeAt(0),c=s.charCodeAt(1),l=s.charCodeAt(2),d=s.charCodeAt(3),h=this.length-4;0<=h;--h)if(this.data[h]===u&&this.data[h+1]===c&&this.data[h+2]===l&&this.data[h+3]===d)return h-this.zero;return-1},o.prototype.readAndCheckSignature=function(s){var u=s.charCodeAt(0),c=s.charCodeAt(1),l=s.charCodeAt(2),d=s.charCodeAt(3),h=this.readData(4);return u===h[0]&&c===h[1]&&l===h[2]&&d===h[3]},o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,u},n.exports=o},{"../utils":32,"./DataReader":18}],18:[function(e,n,i){var a=e("../utils");function o(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var u,c=0;for(this.checkOffset(s),u=this.index+s-1;u>=this.index;u--)c=(c<<8)+this.byteAt(u);return this.index+=s,c},readString:function(s){return a.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},n.exports=o},{"../utils":32}],19:[function(e,n,i){var a=e("./Uint8ArrayReader");function o(s){a.call(this,s)}e("../utils").inherits(o,a),o.prototype.readData=function(s){this.checkOffset(s);var u=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,u},n.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,n,i){var a=e("./DataReader");function o(s){a.call(this,s)}e("../utils").inherits(o,a),o.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},o.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},o.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},o.prototype.readData=function(s){this.checkOffset(s);var u=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,u},n.exports=o},{"../utils":32,"./DataReader":18}],21:[function(e,n,i){var a=e("./ArrayReader");function o(s){a.call(this,s)}e("../utils").inherits(o,a),o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,u},n.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(e,n,i){var a=e("../utils"),o=e("../support"),s=e("./ArrayReader"),u=e("./StringReader"),c=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");n.exports=function(d){var h=a.getTypeOf(d);return a.checkSupport(h),h!=="string"||o.uint8array?h==="nodebuffer"?new c(d):o.uint8array?new l(a.transformTo("uint8array",d)):new s(a.transformTo("array",d)):new u(d)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,n,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,n,i){var a=e("./GenericWorker"),o=e("../utils");function s(u){a.call(this,"ConvertWorker to "+u),this.destType=u}o.inherits(s,a),s.prototype.processChunk=function(u){this.push({data:o.transformTo(this.destType,u.data),meta:u.meta})},n.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(e,n,i){var a=e("./GenericWorker"),o=e("../crc32");function s(){a.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(s,a),s.prototype.processChunk=function(u){this.streamInfo.crc32=o(u.data,this.streamInfo.crc32||0),this.push(u)},n.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,n,i){var a=e("../utils"),o=e("./GenericWorker");function s(u){o.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}a.inherits(s,o),s.prototype.processChunk=function(u){if(u){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+u.data.length}o.prototype.processChunk.call(this,u)},n.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(e,n,i){var a=e("../utils"),o=e("./GenericWorker");function s(u){o.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(l){c.dataIsReady=!0,c.data=l,c.max=l&&l.length||0,c.type=a.getTypeOf(l),c.isPaused||c._tickAndRepeat()},function(l){c.error(l)})}a.inherits(s,o),s.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,a.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(a.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,c);break;case"uint8array":u=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":u=this.data.slice(this.index,c)}return this.index=c,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(e,n,i){function a(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}a.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,s){return this._listeners[o].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,s){if(this._listeners[o])for(var u=0;u<this._listeners[o].length;u++)this._listeners[o][u].call(this,s)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var s=this;return o.on("data",function(u){s.processChunk(u)}),o.on("end",function(){s.end()}),o.on("error",function(u){s.error(u)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,s){return this.extraStreamInfo[o]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},n.exports=a},{}],29:[function(e,n,i){var a=e("../utils"),o=e("./ConvertWorker"),s=e("./GenericWorker"),u=e("../base64"),c=e("../support"),l=e("../external"),d=null;if(c.nodestream)try{d=e("../nodejs/NodejsStreamOutputAdapter")}catch{}function h(g,m){return new l.Promise(function(p,y){var v=[],b=g._internalType,A=g._outputType,C=g._mimeType;g.on("data",function(M,z){v.push(M),m&&m(z)}).on("error",function(M){v=[],y(M)}).on("end",function(){try{var M=function(z,W,U){switch(z){case"blob":return a.newBlob(a.transformTo("arraybuffer",W),U);case"base64":return u.encode(W);default:return a.transformTo(z,W)}}(A,function(z,W){var U,G=0,ee=null,I=0;for(U=0;U<W.length;U++)I+=W[U].length;switch(z){case"string":return W.join("");case"array":return Array.prototype.concat.apply([],W);case"uint8array":for(ee=new Uint8Array(I),U=0;U<W.length;U++)ee.set(W[U],G),G+=W[U].length;return ee;case"nodebuffer":return Buffer.concat(W);default:throw new Error("concat : unsupported type '"+z+"'")}}(b,v),C);p(M)}catch(z){y(z)}v=[]}).resume()})}function f(g,m,p){var y=m;switch(m){case"blob":case"arraybuffer":y="uint8array";break;case"base64":y="string"}try{this._internalType=y,this._outputType=m,this._mimeType=p,a.checkSupport(y),this._worker=g.pipe(new o(y)),g.lock()}catch(v){this._worker=new s("error"),this._worker.error(v)}}f.prototype={accumulate:function(g){return h(this,g)},on:function(g,m){var p=this;return g==="data"?this._worker.on(g,function(y){m.call(p,y.data,y.meta)}):this._worker.on(g,function(){a.delay(m,arguments,p)}),this},resume:function(){return a.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(g){if(a.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new d(this,{objectMode:this._outputType!=="nodebuffer"},g)}},n.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,n,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",i.nodebuffer=typeof Buffer!="undefined",i.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")i.blob=!1;else{var a=new ArrayBuffer(0);try{i.blob=new Blob([a],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(a),i.blob=o.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!e("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(e,n,i){for(var a=e("./utils"),o=e("./support"),s=e("./nodejsUtils"),u=e("./stream/GenericWorker"),c=new Array(256),l=0;l<256;l++)c[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;c[254]=c[254]=1;function d(){u.call(this,"utf-8 decode"),this.leftOver=null}function h(){u.call(this,"utf-8 encode")}i.utf8encode=function(f){return o.nodebuffer?s.newBufferFrom(f,"utf-8"):function(g){var m,p,y,v,b,A=g.length,C=0;for(v=0;v<A;v++)(64512&(p=g.charCodeAt(v)))==55296&&v+1<A&&(64512&(y=g.charCodeAt(v+1)))==56320&&(p=65536+(p-55296<<10)+(y-56320),v++),C+=p<128?1:p<2048?2:p<65536?3:4;for(m=o.uint8array?new Uint8Array(C):new Array(C),v=b=0;b<C;v++)(64512&(p=g.charCodeAt(v)))==55296&&v+1<A&&(64512&(y=g.charCodeAt(v+1)))==56320&&(p=65536+(p-55296<<10)+(y-56320),v++),p<128?m[b++]=p:(p<2048?m[b++]=192|p>>>6:(p<65536?m[b++]=224|p>>>12:(m[b++]=240|p>>>18,m[b++]=128|p>>>12&63),m[b++]=128|p>>>6&63),m[b++]=128|63&p);return m}(f)},i.utf8decode=function(f){return o.nodebuffer?a.transformTo("nodebuffer",f).toString("utf-8"):function(g){var m,p,y,v,b=g.length,A=new Array(2*b);for(m=p=0;m<b;)if((y=g[m++])<128)A[p++]=y;else if(4<(v=c[y]))A[p++]=65533,m+=v-1;else{for(y&=v===2?31:v===3?15:7;1<v&&m<b;)y=y<<6|63&g[m++],v--;1<v?A[p++]=65533:y<65536?A[p++]=y:(y-=65536,A[p++]=55296|y>>10&1023,A[p++]=56320|1023&y)}return A.length!==p&&(A.subarray?A=A.subarray(0,p):A.length=p),a.applyFromCharCode(A)}(f=a.transformTo(o.uint8array?"uint8array":"array",f))},a.inherits(d,u),d.prototype.processChunk=function(f){var g=a.transformTo(o.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var m=g;(g=new Uint8Array(m.length+this.leftOver.length)).set(this.leftOver,0),g.set(m,this.leftOver.length)}else g=this.leftOver.concat(g);this.leftOver=null}var p=function(v,b){var A;for((b=b||v.length)>v.length&&(b=v.length),A=b-1;0<=A&&(192&v[A])==128;)A--;return A<0||A===0?b:A+c[v[A]]>b?A:b}(g),y=g;p!==g.length&&(o.uint8array?(y=g.subarray(0,p),this.leftOver=g.subarray(p,g.length)):(y=g.slice(0,p),this.leftOver=g.slice(p,g.length))),this.push({data:i.utf8decode(y),meta:f.meta})},d.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=d,a.inherits(h,u),h.prototype.processChunk=function(f){this.push({data:i.utf8encode(f.data),meta:f.meta})},i.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,n,i){var a=e("./support"),o=e("./base64"),s=e("./nodejsUtils"),u=e("./external");function c(m){return m}function l(m,p){for(var y=0;y<m.length;++y)p[y]=255&m.charCodeAt(y);return p}e("setimmediate"),i.newBlob=function(m,p){i.checkSupport("blob");try{return new Blob([m],{type:p})}catch{try{var y=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return y.append(m),y.getBlob(p)}catch{throw new Error("Bug : can't construct the Blob.")}}};var d={stringifyByChunk:function(m,p,y){var v=[],b=0,A=m.length;if(A<=y)return String.fromCharCode.apply(null,m);for(;b<A;)p==="array"||p==="nodebuffer"?v.push(String.fromCharCode.apply(null,m.slice(b,Math.min(b+y,A)))):v.push(String.fromCharCode.apply(null,m.subarray(b,Math.min(b+y,A)))),b+=y;return v.join("")},stringifyByChar:function(m){for(var p="",y=0;y<m.length;y++)p+=String.fromCharCode(m[y]);return p},applyCanBeUsed:{uint8array:function(){try{return a.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return a.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}}()}};function h(m){var p=65536,y=i.getTypeOf(m),v=!0;if(y==="uint8array"?v=d.applyCanBeUsed.uint8array:y==="nodebuffer"&&(v=d.applyCanBeUsed.nodebuffer),v)for(;1<p;)try{return d.stringifyByChunk(m,y,p)}catch{p=Math.floor(p/2)}return d.stringifyByChar(m)}function f(m,p){for(var y=0;y<m.length;y++)p[y]=m[y];return p}i.applyFromCharCode=h;var g={};g.string={string:c,array:function(m){return l(m,new Array(m.length))},arraybuffer:function(m){return g.string.uint8array(m).buffer},uint8array:function(m){return l(m,new Uint8Array(m.length))},nodebuffer:function(m){return l(m,s.allocBuffer(m.length))}},g.array={string:h,array:c,arraybuffer:function(m){return new Uint8Array(m).buffer},uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return s.newBufferFrom(m)}},g.arraybuffer={string:function(m){return h(new Uint8Array(m))},array:function(m){return f(new Uint8Array(m),new Array(m.byteLength))},arraybuffer:c,uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return s.newBufferFrom(new Uint8Array(m))}},g.uint8array={string:h,array:function(m){return f(m,new Array(m.length))},arraybuffer:function(m){return m.buffer},uint8array:c,nodebuffer:function(m){return s.newBufferFrom(m)}},g.nodebuffer={string:h,array:function(m){return f(m,new Array(m.length))},arraybuffer:function(m){return g.nodebuffer.uint8array(m).buffer},uint8array:function(m){return f(m,new Uint8Array(m.length))},nodebuffer:c},i.transformTo=function(m,p){if(p=p||"",!m)return p;i.checkSupport(m);var y=i.getTypeOf(p);return g[y][m](p)},i.resolve=function(m){for(var p=m.split("/"),y=[],v=0;v<p.length;v++){var b=p[v];b==="."||b===""&&v!==0&&v!==p.length-1||(b===".."?y.pop():y.push(b))}return y.join("/")},i.getTypeOf=function(m){return typeof m=="string"?"string":Object.prototype.toString.call(m)==="[object Array]"?"array":a.nodebuffer&&s.isBuffer(m)?"nodebuffer":a.uint8array&&m instanceof Uint8Array?"uint8array":a.arraybuffer&&m instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(m){if(!a[m.toLowerCase()])throw new Error(m+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(m){var p,y,v="";for(y=0;y<(m||"").length;y++)v+="\\x"+((p=m.charCodeAt(y))<16?"0":"")+p.toString(16).toUpperCase();return v},i.delay=function(m,p,y){setImmediate(function(){m.apply(y||null,p||[])})},i.inherits=function(m,p){function y(){}y.prototype=p.prototype,m.prototype=new y},i.extend=function(){var m,p,y={};for(m=0;m<arguments.length;m++)for(p in arguments[m])Object.prototype.hasOwnProperty.call(arguments[m],p)&&y[p]===void 0&&(y[p]=arguments[m][p]);return y},i.prepareContent=function(m,p,y,v,b){return u.Promise.resolve(p).then(function(A){return a.blob&&(A instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(A))!==-1)&&typeof FileReader!="undefined"?new u.Promise(function(C,M){var z=new FileReader;z.onload=function(W){C(W.target.result)},z.onerror=function(W){M(W.target.error)},z.readAsArrayBuffer(A)}):A}).then(function(A){var C=i.getTypeOf(A);return C?(C==="arraybuffer"?A=i.transformTo("uint8array",A):C==="string"&&(b?A=o.decode(A):y&&v!==!0&&(A=function(M){return l(M,a.uint8array?new Uint8Array(M.length):new Array(M.length))}(A))),A):u.Promise.reject(new Error("Can't read the data of '"+m+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,n,i){var a=e("./reader/readerFor"),o=e("./utils"),s=e("./signature"),u=e("./zipEntry"),c=e("./support");function l(d){this.files=[],this.loadOptions=d}l.prototype={checkSignature:function(d){if(!this.reader.readAndCheckSignature(d)){this.reader.index-=4;var h=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(h)+", expected "+o.pretty(d)+")")}},isSignature:function(d,h){var f=this.reader.index;this.reader.setIndex(d);var g=this.reader.readString(4)===h;return this.reader.setIndex(f),g},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var d=this.reader.readData(this.zipCommentLength),h=c.uint8array?"uint8array":"array",f=o.transformTo(h,d);this.zipComment=this.loadOptions.decodeFileName(f)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var d,h,f,g=this.zip64EndOfCentralSize-44;0<g;)d=this.reader.readInt(2),h=this.reader.readInt(4),f=this.reader.readData(h),this.zip64ExtensibleData[d]={id:d,length:h,value:f}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var d,h;for(d=0;d<this.files.length;d++)h=this.files[d],this.reader.setIndex(h.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),h.readLocalPart(this.reader),h.handleUTF8(),h.processAttributes()},readCentralDir:function(){var d;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(d=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(d);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var d=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(d<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(d);var h=d;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(d=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(d),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var f=this.centralDirOffset+this.centralDirSize;this.zip64&&(f+=20,f+=12+this.zip64EndOfCentralSize);var g=h-f;if(0<g)this.isSignature(h,s.CENTRAL_FILE_HEADER)||(this.reader.zero=g);else if(g<0)throw new Error("Corrupted zip: missing "+Math.abs(g)+" bytes.")},prepareReader:function(d){this.reader=a(d)},load:function(d){this.prepareReader(d),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},n.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,n,i){var a=e("./reader/readerFor"),o=e("./utils"),s=e("./compressedObject"),u=e("./crc32"),c=e("./utf8"),l=e("./compressions"),d=e("./support");function h(f,g){this.options=f,this.loadOptions=g}h.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(f){var g,m;if(f.skip(22),this.fileNameLength=f.readInt(2),m=f.readInt(2),this.fileName=f.readData(this.fileNameLength),f.skip(m),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((g=function(p){for(var y in l)if(Object.prototype.hasOwnProperty.call(l,y)&&l[y].magic===p)return l[y];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,g,f.readData(this.compressedSize))},readCentralPart:function(f){this.versionMadeBy=f.readInt(2),f.skip(2),this.bitFlag=f.readInt(2),this.compressionMethod=f.readString(2),this.date=f.readDate(),this.crc32=f.readInt(4),this.compressedSize=f.readInt(4),this.uncompressedSize=f.readInt(4);var g=f.readInt(2);if(this.extraFieldsLength=f.readInt(2),this.fileCommentLength=f.readInt(2),this.diskNumberStart=f.readInt(2),this.internalFileAttributes=f.readInt(2),this.externalFileAttributes=f.readInt(4),this.localHeaderOffset=f.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");f.skip(g),this.readExtraFields(f),this.parseZIP64ExtraField(f),this.fileComment=f.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var f=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=a(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var g,m,p,y=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<y;)g=f.readInt(2),m=f.readInt(2),p=f.readData(m),this.extraFields[g]={id:g,length:m,value:p};f.setIndex(y)},handleUTF8:function(){var f=d.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var g=this.findExtraFieldUnicodePath();if(g!==null)this.fileNameStr=g;else{var m=o.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(m)}var p=this.findExtraFieldUnicodeComment();if(p!==null)this.fileCommentStr=p;else{var y=o.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(y)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var g=a(f.value);return g.readInt(1)!==1||u(this.fileName)!==g.readInt(4)?null:c.utf8decode(g.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var g=a(f.value);return g.readInt(1)!==1||u(this.fileComment)!==g.readInt(4)?null:c.utf8decode(g.readData(f.length-5))}return null}},n.exports=h},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,n,i){function a(g,m,p){this.name=g,this.dir=p.dir,this.date=p.date,this.comment=p.comment,this.unixPermissions=p.unixPermissions,this.dosPermissions=p.dosPermissions,this._data=m,this._dataBinary=p.binary,this.options={compression:p.compression,compressionOptions:p.compressionOptions}}var o=e("./stream/StreamHelper"),s=e("./stream/DataWorker"),u=e("./utf8"),c=e("./compressedObject"),l=e("./stream/GenericWorker");a.prototype={internalStream:function(g){var m=null,p="string";try{if(!g)throw new Error("No output type specified.");var y=(p=g.toLowerCase())==="string"||p==="text";p!=="binarystring"&&p!=="text"||(p="string"),m=this._decompressWorker();var v=!this._dataBinary;v&&!y&&(m=m.pipe(new u.Utf8EncodeWorker)),!v&&y&&(m=m.pipe(new u.Utf8DecodeWorker))}catch(b){(m=new l("error")).error(b)}return new o(m,p,"")},async:function(g,m){return this.internalStream(g).accumulate(m)},nodeStream:function(g,m){return this.internalStream(g||"nodebuffer").toNodejsStream(m)},_compressWorker:function(g,m){if(this._data instanceof c&&this._data.compression.magic===g.magic)return this._data.getCompressedWorker();var p=this._decompressWorker();return this._dataBinary||(p=p.pipe(new u.Utf8EncodeWorker)),c.createWorkerFrom(p,g,m)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof l?this._data:new s(this._data)}};for(var d=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<d.length;f++)a.prototype[d[f]]=h;n.exports=a},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,n,i){(function(a){var o,s,u=a.MutationObserver||a.WebKitMutationObserver;if(u){var c=0,l=new u(g),d=a.document.createTextNode("");l.observe(d,{characterData:!0}),o=function(){d.data=c=++c%2}}else if(a.setImmediate||a.MessageChannel===void 0)o="document"in a&&"onreadystatechange"in a.document.createElement("script")?function(){var m=a.document.createElement("script");m.onreadystatechange=function(){g(),m.onreadystatechange=null,m.parentNode.removeChild(m),m=null},a.document.documentElement.appendChild(m)}:function(){setTimeout(g,0)};else{var h=new a.MessageChannel;h.port1.onmessage=g,o=function(){h.port2.postMessage(0)}}var f=[];function g(){var m,p;s=!0;for(var y=f.length;y;){for(p=f,f=[],m=-1;++m<y;)p[m]();y=f.length}s=!1}n.exports=function(m){f.push(m)!==1||s||o()}}).call(this,typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(e,n,i){var a=e("immediate");function o(){}var s={},u=["REJECTED"],c=["FULFILLED"],l=["PENDING"];function d(y){if(typeof y!="function")throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,y!==o&&m(this,y)}function h(y,v,b){this.promise=y,typeof v=="function"&&(this.onFulfilled=v,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}function f(y,v,b){a(function(){var A;try{A=v(b)}catch(C){return s.reject(y,C)}A===y?s.reject(y,new TypeError("Cannot resolve promise with itself")):s.resolve(y,A)})}function g(y){var v=y&&y.then;if(y&&(typeof y=="object"||typeof y=="function")&&typeof v=="function")return function(){v.apply(y,arguments)}}function m(y,v){var b=!1;function A(z){b||(b=!0,s.reject(y,z))}function C(z){b||(b=!0,s.resolve(y,z))}var M=p(function(){v(C,A)});M.status==="error"&&A(M.value)}function p(y,v){var b={};try{b.value=y(v),b.status="success"}catch(A){b.status="error",b.value=A}return b}(n.exports=d).prototype.finally=function(y){if(typeof y!="function")return this;var v=this.constructor;return this.then(function(b){return v.resolve(y()).then(function(){return b})},function(b){return v.resolve(y()).then(function(){throw b})})},d.prototype.catch=function(y){return this.then(null,y)},d.prototype.then=function(y,v){if(typeof y!="function"&&this.state===c||typeof v!="function"&&this.state===u)return this;var b=new this.constructor(o);return this.state!==l?f(b,this.state===c?y:v,this.outcome):this.queue.push(new h(b,y,v)),b},h.prototype.callFulfilled=function(y){s.resolve(this.promise,y)},h.prototype.otherCallFulfilled=function(y){f(this.promise,this.onFulfilled,y)},h.prototype.callRejected=function(y){s.reject(this.promise,y)},h.prototype.otherCallRejected=function(y){f(this.promise,this.onRejected,y)},s.resolve=function(y,v){var b=p(g,v);if(b.status==="error")return s.reject(y,b.value);var A=b.value;if(A)m(y,A);else{y.state=c,y.outcome=v;for(var C=-1,M=y.queue.length;++C<M;)y.queue[C].callFulfilled(v)}return y},s.reject=function(y,v){y.state=u,y.outcome=v;for(var b=-1,A=y.queue.length;++b<A;)y.queue[b].callRejected(v);return y},d.resolve=function(y){return y instanceof this?y:s.resolve(new this(o),y)},d.reject=function(y){var v=new this(o);return s.reject(v,y)},d.all=function(y){var v=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=y.length,A=!1;if(!b)return this.resolve([]);for(var C=new Array(b),M=0,z=-1,W=new this(o);++z<b;)U(y[z],z);return W;function U(G,ee){v.resolve(G).then(function(I){C[ee]=I,++M!==b||A||(A=!0,s.resolve(W,C))},function(I){A||(A=!0,s.reject(W,I))})}},d.race=function(y){var v=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=y.length,A=!1;if(!b)return this.resolve([]);for(var C=-1,M=new this(o);++C<b;)z=y[C],v.resolve(z).then(function(W){A||(A=!0,s.resolve(M,W))},function(W){A||(A=!0,s.reject(M,W))});var z;return M}},{immediate:36}],38:[function(e,n,i){var a={};(0,e("./lib/utils/common").assign)(a,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),n.exports=a},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,n,i){var a=e("./zlib/deflate"),o=e("./utils/common"),s=e("./utils/strings"),u=e("./zlib/messages"),c=e("./zlib/zstream"),l=Object.prototype.toString,d=0,h=-1,f=0,g=8;function m(y){if(!(this instanceof m))return new m(y);this.options=o.assign({level:h,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},y||{});var v=this.options;v.raw&&0<v.windowBits?v.windowBits=-v.windowBits:v.gzip&&0<v.windowBits&&v.windowBits<16&&(v.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var b=a.deflateInit2(this.strm,v.level,v.method,v.windowBits,v.memLevel,v.strategy);if(b!==d)throw new Error(u[b]);if(v.header&&a.deflateSetHeader(this.strm,v.header),v.dictionary){var A;if(A=typeof v.dictionary=="string"?s.string2buf(v.dictionary):l.call(v.dictionary)==="[object ArrayBuffer]"?new Uint8Array(v.dictionary):v.dictionary,(b=a.deflateSetDictionary(this.strm,A))!==d)throw new Error(u[b]);this._dict_set=!0}}function p(y,v){var b=new m(v);if(b.push(y,!0),b.err)throw b.msg||u[b.err];return b.result}m.prototype.push=function(y,v){var b,A,C=this.strm,M=this.options.chunkSize;if(this.ended)return!1;A=v===~~v?v:v===!0?4:0,typeof y=="string"?C.input=s.string2buf(y):l.call(y)==="[object ArrayBuffer]"?C.input=new Uint8Array(y):C.input=y,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new o.Buf8(M),C.next_out=0,C.avail_out=M),(b=a.deflate(C,A))!==1&&b!==d)return this.onEnd(b),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||A!==4&&A!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(o.shrinkBuf(C.output,C.next_out))):this.onData(o.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&b!==1);return A===4?(b=a.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===d):A!==2||(this.onEnd(d),!(C.avail_out=0))},m.prototype.onData=function(y){this.chunks.push(y)},m.prototype.onEnd=function(y){y===d&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},i.Deflate=m,i.deflate=p,i.deflateRaw=function(y,v){return(v=v||{}).raw=!0,p(y,v)},i.gzip=function(y,v){return(v=v||{}).gzip=!0,p(y,v)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,n,i){var a=e("./zlib/inflate"),o=e("./utils/common"),s=e("./utils/strings"),u=e("./zlib/constants"),c=e("./zlib/messages"),l=e("./zlib/zstream"),d=e("./zlib/gzheader"),h=Object.prototype.toString;function f(m){if(!(this instanceof f))return new f(m);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},m||{});var p=this.options;p.raw&&0<=p.windowBits&&p.windowBits<16&&(p.windowBits=-p.windowBits,p.windowBits===0&&(p.windowBits=-15)),!(0<=p.windowBits&&p.windowBits<16)||m&&m.windowBits||(p.windowBits+=32),15<p.windowBits&&p.windowBits<48&&(15&p.windowBits)==0&&(p.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var y=a.inflateInit2(this.strm,p.windowBits);if(y!==u.Z_OK)throw new Error(c[y]);this.header=new d,a.inflateGetHeader(this.strm,this.header)}function g(m,p){var y=new f(p);if(y.push(m,!0),y.err)throw y.msg||c[y.err];return y.result}f.prototype.push=function(m,p){var y,v,b,A,C,M,z=this.strm,W=this.options.chunkSize,U=this.options.dictionary,G=!1;if(this.ended)return!1;v=p===~~p?p:p===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof m=="string"?z.input=s.binstring2buf(m):h.call(m)==="[object ArrayBuffer]"?z.input=new Uint8Array(m):z.input=m,z.next_in=0,z.avail_in=z.input.length;do{if(z.avail_out===0&&(z.output=new o.Buf8(W),z.next_out=0,z.avail_out=W),(y=a.inflate(z,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&U&&(M=typeof U=="string"?s.string2buf(U):h.call(U)==="[object ArrayBuffer]"?new Uint8Array(U):U,y=a.inflateSetDictionary(this.strm,M)),y===u.Z_BUF_ERROR&&G===!0&&(y=u.Z_OK,G=!1),y!==u.Z_STREAM_END&&y!==u.Z_OK)return this.onEnd(y),!(this.ended=!0);z.next_out&&(z.avail_out!==0&&y!==u.Z_STREAM_END&&(z.avail_in!==0||v!==u.Z_FINISH&&v!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(b=s.utf8border(z.output,z.next_out),A=z.next_out-b,C=s.buf2string(z.output,b),z.next_out=A,z.avail_out=W-A,A&&o.arraySet(z.output,z.output,b,A,0),this.onData(C)):this.onData(o.shrinkBuf(z.output,z.next_out)))),z.avail_in===0&&z.avail_out===0&&(G=!0)}while((0<z.avail_in||z.avail_out===0)&&y!==u.Z_STREAM_END);return y===u.Z_STREAM_END&&(v=u.Z_FINISH),v===u.Z_FINISH?(y=a.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===u.Z_OK):v!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(z.avail_out=0))},f.prototype.onData=function(m){this.chunks.push(m)},f.prototype.onEnd=function(m){m===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},i.Inflate=f,i.inflate=g,i.inflateRaw=function(m,p){return(p=p||{}).raw=!0,g(m,p)},i.ungzip=g},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,n,i){var a=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";i.assign=function(u){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var l=c.shift();if(l){if(typeof l!="object")throw new TypeError(l+"must be non-object");for(var d in l)l.hasOwnProperty(d)&&(u[d]=l[d])}}return u},i.shrinkBuf=function(u,c){return u.length===c?u:u.subarray?u.subarray(0,c):(u.length=c,u)};var o={arraySet:function(u,c,l,d,h){if(c.subarray&&u.subarray)u.set(c.subarray(l,l+d),h);else for(var f=0;f<d;f++)u[h+f]=c[l+f]},flattenChunks:function(u){var c,l,d,h,f,g;for(c=d=0,l=u.length;c<l;c++)d+=u[c].length;for(g=new Uint8Array(d),c=h=0,l=u.length;c<l;c++)f=u[c],g.set(f,h),h+=f.length;return g}},s={arraySet:function(u,c,l,d,h){for(var f=0;f<d;f++)u[h+f]=c[l+f]},flattenChunks:function(u){return[].concat.apply([],u)}};i.setTyped=function(u){u?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,o)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,s))},i.setTyped(a)},{}],42:[function(e,n,i){var a=e("./common"),o=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var u=new a.Buf8(256),c=0;c<256;c++)u[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function l(d,h){if(h<65537&&(d.subarray&&s||!d.subarray&&o))return String.fromCharCode.apply(null,a.shrinkBuf(d,h));for(var f="",g=0;g<h;g++)f+=String.fromCharCode(d[g]);return f}u[254]=u[254]=1,i.string2buf=function(d){var h,f,g,m,p,y=d.length,v=0;for(m=0;m<y;m++)(64512&(f=d.charCodeAt(m)))==55296&&m+1<y&&(64512&(g=d.charCodeAt(m+1)))==56320&&(f=65536+(f-55296<<10)+(g-56320),m++),v+=f<128?1:f<2048?2:f<65536?3:4;for(h=new a.Buf8(v),m=p=0;p<v;m++)(64512&(f=d.charCodeAt(m)))==55296&&m+1<y&&(64512&(g=d.charCodeAt(m+1)))==56320&&(f=65536+(f-55296<<10)+(g-56320),m++),f<128?h[p++]=f:(f<2048?h[p++]=192|f>>>6:(f<65536?h[p++]=224|f>>>12:(h[p++]=240|f>>>18,h[p++]=128|f>>>12&63),h[p++]=128|f>>>6&63),h[p++]=128|63&f);return h},i.buf2binstring=function(d){return l(d,d.length)},i.binstring2buf=function(d){for(var h=new a.Buf8(d.length),f=0,g=h.length;f<g;f++)h[f]=d.charCodeAt(f);return h},i.buf2string=function(d,h){var f,g,m,p,y=h||d.length,v=new Array(2*y);for(f=g=0;f<y;)if((m=d[f++])<128)v[g++]=m;else if(4<(p=u[m]))v[g++]=65533,f+=p-1;else{for(m&=p===2?31:p===3?15:7;1<p&&f<y;)m=m<<6|63&d[f++],p--;1<p?v[g++]=65533:m<65536?v[g++]=m:(m-=65536,v[g++]=55296|m>>10&1023,v[g++]=56320|1023&m)}return l(v,g)},i.utf8border=function(d,h){var f;for((h=h||d.length)>d.length&&(h=d.length),f=h-1;0<=f&&(192&d[f])==128;)f--;return f<0||f===0?h:f+u[d[f]]>h?f:h}},{"./common":41}],43:[function(e,n,i){n.exports=function(a,o,s,u){for(var c=65535&a|0,l=a>>>16&65535|0,d=0;s!==0;){for(s-=d=2e3<s?2e3:s;l=l+(c=c+o[u++]|0)|0,--d;);c%=65521,l%=65521}return c|l<<16|0}},{}],44:[function(e,n,i){n.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,n,i){var a=function(){for(var o,s=[],u=0;u<256;u++){o=u;for(var c=0;c<8;c++)o=1&o?3988292384^o>>>1:o>>>1;s[u]=o}return s}();n.exports=function(o,s,u,c){var l=a,d=c+u;o^=-1;for(var h=c;h<d;h++)o=o>>>8^l[255&(o^s[h])];return-1^o}},{}],46:[function(e,n,i){var a,o=e("../utils/common"),s=e("./trees"),u=e("./adler32"),c=e("./crc32"),l=e("./messages"),d=0,h=4,f=0,g=-2,m=-1,p=4,y=2,v=8,b=9,A=286,C=30,M=19,z=2*A+1,W=15,U=3,G=258,ee=G+U+1,I=42,O=113,T=1,S=2,x=3,w=4;function _(j,ue){return j.msg=l[ue],ue}function E(j){return(j<<1)-(4<j?9:0)}function R(j){for(var ue=j.length;0<=--ue;)j[ue]=0}function F(j){var ue=j.state,Q=ue.pending;Q>j.avail_out&&(Q=j.avail_out),Q!==0&&(o.arraySet(j.output,ue.pending_buf,ue.pending_out,Q,j.next_out),j.next_out+=Q,ue.pending_out+=Q,j.total_out+=Q,j.avail_out-=Q,ue.pending-=Q,ue.pending===0&&(ue.pending_out=0))}function B(j,ue){s._tr_flush_block(j,0<=j.block_start?j.block_start:-1,j.strstart-j.block_start,ue),j.block_start=j.strstart,F(j.strm)}function X(j,ue){j.pending_buf[j.pending++]=ue}function K(j,ue){j.pending_buf[j.pending++]=ue>>>8&255,j.pending_buf[j.pending++]=255&ue}function te(j,ue){var Q,P,H=j.max_chain_length,Z=j.strstart,oe=j.prev_length,ce=j.nice_match,ne=j.strstart>j.w_size-ee?j.strstart-(j.w_size-ee):0,se=j.window,fe=j.w_mask,de=j.prev,ve=j.strstart+G,Ee=se[Z+oe-1],Se=se[Z+oe];j.prev_length>=j.good_match&&(H>>=2),ce>j.lookahead&&(ce=j.lookahead);do if(se[(Q=ue)+oe]===Se&&se[Q+oe-1]===Ee&&se[Q]===se[Z]&&se[++Q]===se[Z+1]){Z+=2,Q++;do;while(se[++Z]===se[++Q]&&se[++Z]===se[++Q]&&se[++Z]===se[++Q]&&se[++Z]===se[++Q]&&se[++Z]===se[++Q]&&se[++Z]===se[++Q]&&se[++Z]===se[++Q]&&se[++Z]===se[++Q]&&Z<ve);if(P=G-(ve-Z),Z=ve-G,oe<P){if(j.match_start=ue,ce<=(oe=P))break;Ee=se[Z+oe-1],Se=se[Z+oe]}}while((ue=de[ue&fe])>ne&&--H!=0);return oe<=j.lookahead?oe:j.lookahead}function $(j){var ue,Q,P,H,Z,oe,ce,ne,se,fe,de=j.w_size;do{if(H=j.window_size-j.lookahead-j.strstart,j.strstart>=de+(de-ee)){for(o.arraySet(j.window,j.window,de,de,0),j.match_start-=de,j.strstart-=de,j.block_start-=de,ue=Q=j.hash_size;P=j.head[--ue],j.head[ue]=de<=P?P-de:0,--Q;);for(ue=Q=de;P=j.prev[--ue],j.prev[ue]=de<=P?P-de:0,--Q;);H+=de}if(j.strm.avail_in===0)break;if(oe=j.strm,ce=j.window,ne=j.strstart+j.lookahead,se=H,fe=void 0,fe=oe.avail_in,se<fe&&(fe=se),Q=fe===0?0:(oe.avail_in-=fe,o.arraySet(ce,oe.input,oe.next_in,fe,ne),oe.state.wrap===1?oe.adler=u(oe.adler,ce,fe,ne):oe.state.wrap===2&&(oe.adler=c(oe.adler,ce,fe,ne)),oe.next_in+=fe,oe.total_in+=fe,fe),j.lookahead+=Q,j.lookahead+j.insert>=U)for(Z=j.strstart-j.insert,j.ins_h=j.window[Z],j.ins_h=(j.ins_h<<j.hash_shift^j.window[Z+1])&j.hash_mask;j.insert&&(j.ins_h=(j.ins_h<<j.hash_shift^j.window[Z+U-1])&j.hash_mask,j.prev[Z&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=Z,Z++,j.insert--,!(j.lookahead+j.insert<U)););}while(j.lookahead<ee&&j.strm.avail_in!==0)}function q(j,ue){for(var Q,P;;){if(j.lookahead<ee){if($(j),j.lookahead<ee&&ue===d)return T;if(j.lookahead===0)break}if(Q=0,j.lookahead>=U&&(j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+U-1])&j.hash_mask,Q=j.prev[j.strstart&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=j.strstart),Q!==0&&j.strstart-Q<=j.w_size-ee&&(j.match_length=te(j,Q)),j.match_length>=U)if(P=s._tr_tally(j,j.strstart-j.match_start,j.match_length-U),j.lookahead-=j.match_length,j.match_length<=j.max_lazy_match&&j.lookahead>=U){for(j.match_length--;j.strstart++,j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+U-1])&j.hash_mask,Q=j.prev[j.strstart&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=j.strstart,--j.match_length!=0;);j.strstart++}else j.strstart+=j.match_length,j.match_length=0,j.ins_h=j.window[j.strstart],j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+1])&j.hash_mask;else P=s._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++;if(P&&(B(j,!1),j.strm.avail_out===0))return T}return j.insert=j.strstart<U-1?j.strstart:U-1,ue===h?(B(j,!0),j.strm.avail_out===0?x:w):j.last_lit&&(B(j,!1),j.strm.avail_out===0)?T:S}function k(j,ue){for(var Q,P,H;;){if(j.lookahead<ee){if($(j),j.lookahead<ee&&ue===d)return T;if(j.lookahead===0)break}if(Q=0,j.lookahead>=U&&(j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+U-1])&j.hash_mask,Q=j.prev[j.strstart&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=j.strstart),j.prev_length=j.match_length,j.prev_match=j.match_start,j.match_length=U-1,Q!==0&&j.prev_length<j.max_lazy_match&&j.strstart-Q<=j.w_size-ee&&(j.match_length=te(j,Q),j.match_length<=5&&(j.strategy===1||j.match_length===U&&4096<j.strstart-j.match_start)&&(j.match_length=U-1)),j.prev_length>=U&&j.match_length<=j.prev_length){for(H=j.strstart+j.lookahead-U,P=s._tr_tally(j,j.strstart-1-j.prev_match,j.prev_length-U),j.lookahead-=j.prev_length-1,j.prev_length-=2;++j.strstart<=H&&(j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+U-1])&j.hash_mask,Q=j.prev[j.strstart&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=j.strstart),--j.prev_length!=0;);if(j.match_available=0,j.match_length=U-1,j.strstart++,P&&(B(j,!1),j.strm.avail_out===0))return T}else if(j.match_available){if((P=s._tr_tally(j,0,j.window[j.strstart-1]))&&B(j,!1),j.strstart++,j.lookahead--,j.strm.avail_out===0)return T}else j.match_available=1,j.strstart++,j.lookahead--}return j.match_available&&(P=s._tr_tally(j,0,j.window[j.strstart-1]),j.match_available=0),j.insert=j.strstart<U-1?j.strstart:U-1,ue===h?(B(j,!0),j.strm.avail_out===0?x:w):j.last_lit&&(B(j,!1),j.strm.avail_out===0)?T:S}function L(j,ue,Q,P,H){this.good_length=j,this.max_lazy=ue,this.nice_length=Q,this.max_chain=P,this.func=H}function V(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=v,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*z),this.dyn_dtree=new o.Buf16(2*(2*C+1)),this.bl_tree=new o.Buf16(2*(2*M+1)),R(this.dyn_ltree),R(this.dyn_dtree),R(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(W+1),this.heap=new o.Buf16(2*A+1),R(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*A+1),R(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function J(j){var ue;return j&&j.state?(j.total_in=j.total_out=0,j.data_type=y,(ue=j.state).pending=0,ue.pending_out=0,ue.wrap<0&&(ue.wrap=-ue.wrap),ue.status=ue.wrap?I:O,j.adler=ue.wrap===2?0:1,ue.last_flush=d,s._tr_init(ue),f):_(j,g)}function re(j){var ue=J(j);return ue===f&&function(Q){Q.window_size=2*Q.w_size,R(Q.head),Q.max_lazy_match=a[Q.level].max_lazy,Q.good_match=a[Q.level].good_length,Q.nice_match=a[Q.level].nice_length,Q.max_chain_length=a[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=U-1,Q.match_available=0,Q.ins_h=0}(j.state),ue}function ae(j,ue,Q,P,H,Z){if(!j)return g;var oe=1;if(ue===m&&(ue=6),P<0?(oe=0,P=-P):15<P&&(oe=2,P-=16),H<1||b<H||Q!==v||P<8||15<P||ue<0||9<ue||Z<0||p<Z)return _(j,g);P===8&&(P=9);var ce=new V;return(j.state=ce).strm=j,ce.wrap=oe,ce.gzhead=null,ce.w_bits=P,ce.w_size=1<<ce.w_bits,ce.w_mask=ce.w_size-1,ce.hash_bits=H+7,ce.hash_size=1<<ce.hash_bits,ce.hash_mask=ce.hash_size-1,ce.hash_shift=~~((ce.hash_bits+U-1)/U),ce.window=new o.Buf8(2*ce.w_size),ce.head=new o.Buf16(ce.hash_size),ce.prev=new o.Buf16(ce.w_size),ce.lit_bufsize=1<<H+6,ce.pending_buf_size=4*ce.lit_bufsize,ce.pending_buf=new o.Buf8(ce.pending_buf_size),ce.d_buf=1*ce.lit_bufsize,ce.l_buf=3*ce.lit_bufsize,ce.level=ue,ce.strategy=Z,ce.method=Q,re(j)}a=[new L(0,0,0,0,function(j,ue){var Q=65535;for(Q>j.pending_buf_size-5&&(Q=j.pending_buf_size-5);;){if(j.lookahead<=1){if($(j),j.lookahead===0&&ue===d)return T;if(j.lookahead===0)break}j.strstart+=j.lookahead,j.lookahead=0;var P=j.block_start+Q;if((j.strstart===0||j.strstart>=P)&&(j.lookahead=j.strstart-P,j.strstart=P,B(j,!1),j.strm.avail_out===0)||j.strstart-j.block_start>=j.w_size-ee&&(B(j,!1),j.strm.avail_out===0))return T}return j.insert=0,ue===h?(B(j,!0),j.strm.avail_out===0?x:w):(j.strstart>j.block_start&&(B(j,!1),j.strm.avail_out),T)}),new L(4,4,8,4,q),new L(4,5,16,8,q),new L(4,6,32,32,q),new L(4,4,16,16,k),new L(8,16,32,32,k),new L(8,16,128,128,k),new L(8,32,128,256,k),new L(32,128,258,1024,k),new L(32,258,258,4096,k)],i.deflateInit=function(j,ue){return ae(j,ue,v,15,8,0)},i.deflateInit2=ae,i.deflateReset=re,i.deflateResetKeep=J,i.deflateSetHeader=function(j,ue){return j&&j.state?j.state.wrap!==2?g:(j.state.gzhead=ue,f):g},i.deflate=function(j,ue){var Q,P,H,Z;if(!j||!j.state||5<ue||ue<0)return j?_(j,g):g;if(P=j.state,!j.output||!j.input&&j.avail_in!==0||P.status===666&&ue!==h)return _(j,j.avail_out===0?-5:g);if(P.strm=j,Q=P.last_flush,P.last_flush=ue,P.status===I)if(P.wrap===2)j.adler=0,X(P,31),X(P,139),X(P,8),P.gzhead?(X(P,(P.gzhead.text?1:0)+(P.gzhead.hcrc?2:0)+(P.gzhead.extra?4:0)+(P.gzhead.name?8:0)+(P.gzhead.comment?16:0)),X(P,255&P.gzhead.time),X(P,P.gzhead.time>>8&255),X(P,P.gzhead.time>>16&255),X(P,P.gzhead.time>>24&255),X(P,P.level===9?2:2<=P.strategy||P.level<2?4:0),X(P,255&P.gzhead.os),P.gzhead.extra&&P.gzhead.extra.length&&(X(P,255&P.gzhead.extra.length),X(P,P.gzhead.extra.length>>8&255)),P.gzhead.hcrc&&(j.adler=c(j.adler,P.pending_buf,P.pending,0)),P.gzindex=0,P.status=69):(X(P,0),X(P,0),X(P,0),X(P,0),X(P,0),X(P,P.level===9?2:2<=P.strategy||P.level<2?4:0),X(P,3),P.status=O);else{var oe=v+(P.w_bits-8<<4)<<8;oe|=(2<=P.strategy||P.level<2?0:P.level<6?1:P.level===6?2:3)<<6,P.strstart!==0&&(oe|=32),oe+=31-oe%31,P.status=O,K(P,oe),P.strstart!==0&&(K(P,j.adler>>>16),K(P,65535&j.adler)),j.adler=1}if(P.status===69)if(P.gzhead.extra){for(H=P.pending;P.gzindex<(65535&P.gzhead.extra.length)&&(P.pending!==P.pending_buf_size||(P.gzhead.hcrc&&P.pending>H&&(j.adler=c(j.adler,P.pending_buf,P.pending-H,H)),F(j),H=P.pending,P.pending!==P.pending_buf_size));)X(P,255&P.gzhead.extra[P.gzindex]),P.gzindex++;P.gzhead.hcrc&&P.pending>H&&(j.adler=c(j.adler,P.pending_buf,P.pending-H,H)),P.gzindex===P.gzhead.extra.length&&(P.gzindex=0,P.status=73)}else P.status=73;if(P.status===73)if(P.gzhead.name){H=P.pending;do{if(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>H&&(j.adler=c(j.adler,P.pending_buf,P.pending-H,H)),F(j),H=P.pending,P.pending===P.pending_buf_size)){Z=1;break}Z=P.gzindex<P.gzhead.name.length?255&P.gzhead.name.charCodeAt(P.gzindex++):0,X(P,Z)}while(Z!==0);P.gzhead.hcrc&&P.pending>H&&(j.adler=c(j.adler,P.pending_buf,P.pending-H,H)),Z===0&&(P.gzindex=0,P.status=91)}else P.status=91;if(P.status===91)if(P.gzhead.comment){H=P.pending;do{if(P.pending===P.pending_buf_size&&(P.gzhead.hcrc&&P.pending>H&&(j.adler=c(j.adler,P.pending_buf,P.pending-H,H)),F(j),H=P.pending,P.pending===P.pending_buf_size)){Z=1;break}Z=P.gzindex<P.gzhead.comment.length?255&P.gzhead.comment.charCodeAt(P.gzindex++):0,X(P,Z)}while(Z!==0);P.gzhead.hcrc&&P.pending>H&&(j.adler=c(j.adler,P.pending_buf,P.pending-H,H)),Z===0&&(P.status=103)}else P.status=103;if(P.status===103&&(P.gzhead.hcrc?(P.pending+2>P.pending_buf_size&&F(j),P.pending+2<=P.pending_buf_size&&(X(P,255&j.adler),X(P,j.adler>>8&255),j.adler=0,P.status=O)):P.status=O),P.pending!==0){if(F(j),j.avail_out===0)return P.last_flush=-1,f}else if(j.avail_in===0&&E(ue)<=E(Q)&&ue!==h)return _(j,-5);if(P.status===666&&j.avail_in!==0)return _(j,-5);if(j.avail_in!==0||P.lookahead!==0||ue!==d&&P.status!==666){var ce=P.strategy===2?function(ne,se){for(var fe;;){if(ne.lookahead===0&&($(ne),ne.lookahead===0)){if(se===d)return T;break}if(ne.match_length=0,fe=s._tr_tally(ne,0,ne.window[ne.strstart]),ne.lookahead--,ne.strstart++,fe&&(B(ne,!1),ne.strm.avail_out===0))return T}return ne.insert=0,se===h?(B(ne,!0),ne.strm.avail_out===0?x:w):ne.last_lit&&(B(ne,!1),ne.strm.avail_out===0)?T:S}(P,ue):P.strategy===3?function(ne,se){for(var fe,de,ve,Ee,Se=ne.window;;){if(ne.lookahead<=G){if($(ne),ne.lookahead<=G&&se===d)return T;if(ne.lookahead===0)break}if(ne.match_length=0,ne.lookahead>=U&&0<ne.strstart&&(de=Se[ve=ne.strstart-1])===Se[++ve]&&de===Se[++ve]&&de===Se[++ve]){Ee=ne.strstart+G;do;while(de===Se[++ve]&&de===Se[++ve]&&de===Se[++ve]&&de===Se[++ve]&&de===Se[++ve]&&de===Se[++ve]&&de===Se[++ve]&&de===Se[++ve]&&ve<Ee);ne.match_length=G-(Ee-ve),ne.match_length>ne.lookahead&&(ne.match_length=ne.lookahead)}if(ne.match_length>=U?(fe=s._tr_tally(ne,1,ne.match_length-U),ne.lookahead-=ne.match_length,ne.strstart+=ne.match_length,ne.match_length=0):(fe=s._tr_tally(ne,0,ne.window[ne.strstart]),ne.lookahead--,ne.strstart++),fe&&(B(ne,!1),ne.strm.avail_out===0))return T}return ne.insert=0,se===h?(B(ne,!0),ne.strm.avail_out===0?x:w):ne.last_lit&&(B(ne,!1),ne.strm.avail_out===0)?T:S}(P,ue):a[P.level].func(P,ue);if(ce!==x&&ce!==w||(P.status=666),ce===T||ce===x)return j.avail_out===0&&(P.last_flush=-1),f;if(ce===S&&(ue===1?s._tr_align(P):ue!==5&&(s._tr_stored_block(P,0,0,!1),ue===3&&(R(P.head),P.lookahead===0&&(P.strstart=0,P.block_start=0,P.insert=0))),F(j),j.avail_out===0))return P.last_flush=-1,f}return ue!==h?f:P.wrap<=0?1:(P.wrap===2?(X(P,255&j.adler),X(P,j.adler>>8&255),X(P,j.adler>>16&255),X(P,j.adler>>24&255),X(P,255&j.total_in),X(P,j.total_in>>8&255),X(P,j.total_in>>16&255),X(P,j.total_in>>24&255)):(K(P,j.adler>>>16),K(P,65535&j.adler)),F(j),0<P.wrap&&(P.wrap=-P.wrap),P.pending!==0?f:1)},i.deflateEnd=function(j){var ue;return j&&j.state?(ue=j.state.status)!==I&&ue!==69&&ue!==73&&ue!==91&&ue!==103&&ue!==O&&ue!==666?_(j,g):(j.state=null,ue===O?_(j,-3):f):g},i.deflateSetDictionary=function(j,ue){var Q,P,H,Z,oe,ce,ne,se,fe=ue.length;if(!j||!j.state||(Z=(Q=j.state).wrap)===2||Z===1&&Q.status!==I||Q.lookahead)return g;for(Z===1&&(j.adler=u(j.adler,ue,fe,0)),Q.wrap=0,fe>=Q.w_size&&(Z===0&&(R(Q.head),Q.strstart=0,Q.block_start=0,Q.insert=0),se=new o.Buf8(Q.w_size),o.arraySet(se,ue,fe-Q.w_size,Q.w_size,0),ue=se,fe=Q.w_size),oe=j.avail_in,ce=j.next_in,ne=j.input,j.avail_in=fe,j.next_in=0,j.input=ue,$(Q);Q.lookahead>=U;){for(P=Q.strstart,H=Q.lookahead-(U-1);Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[P+U-1])&Q.hash_mask,Q.prev[P&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=P,P++,--H;);Q.strstart=P,Q.lookahead=U-1,$(Q)}return Q.strstart+=Q.lookahead,Q.block_start=Q.strstart,Q.insert=Q.lookahead,Q.lookahead=0,Q.match_length=Q.prev_length=U-1,Q.match_available=0,j.next_in=ce,j.input=ne,j.avail_in=oe,Q.wrap=Z,f},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,n,i){n.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,n,i){n.exports=function(a,o){var s,u,c,l,d,h,f,g,m,p,y,v,b,A,C,M,z,W,U,G,ee,I,O,T,S;s=a.state,u=a.next_in,T=a.input,c=u+(a.avail_in-5),l=a.next_out,S=a.output,d=l-(o-a.avail_out),h=l+(a.avail_out-257),f=s.dmax,g=s.wsize,m=s.whave,p=s.wnext,y=s.window,v=s.hold,b=s.bits,A=s.lencode,C=s.distcode,M=(1<<s.lenbits)-1,z=(1<<s.distbits)-1;e:do{b<15&&(v+=T[u++]<<b,b+=8,v+=T[u++]<<b,b+=8),W=A[v&M];t:for(;;){if(v>>>=U=W>>>24,b-=U,(U=W>>>16&255)==0)S[l++]=65535&W;else{if(!(16&U)){if((64&U)==0){W=A[(65535&W)+(v&(1<<U)-1)];continue t}if(32&U){s.mode=12;break e}a.msg="invalid literal/length code",s.mode=30;break e}G=65535&W,(U&=15)&&(b<U&&(v+=T[u++]<<b,b+=8),G+=v&(1<<U)-1,v>>>=U,b-=U),b<15&&(v+=T[u++]<<b,b+=8,v+=T[u++]<<b,b+=8),W=C[v&z];r:for(;;){if(v>>>=U=W>>>24,b-=U,!(16&(U=W>>>16&255))){if((64&U)==0){W=C[(65535&W)+(v&(1<<U)-1)];continue r}a.msg="invalid distance code",s.mode=30;break e}if(ee=65535&W,b<(U&=15)&&(v+=T[u++]<<b,(b+=8)<U&&(v+=T[u++]<<b,b+=8)),f<(ee+=v&(1<<U)-1)){a.msg="invalid distance too far back",s.mode=30;break e}if(v>>>=U,b-=U,(U=l-d)<ee){if(m<(U=ee-U)&&s.sane){a.msg="invalid distance too far back",s.mode=30;break e}if(O=y,(I=0)===p){if(I+=g-U,U<G){for(G-=U;S[l++]=y[I++],--U;);I=l-ee,O=S}}else if(p<U){if(I+=g+p-U,(U-=p)<G){for(G-=U;S[l++]=y[I++],--U;);if(I=0,p<G){for(G-=U=p;S[l++]=y[I++],--U;);I=l-ee,O=S}}}else if(I+=p-U,U<G){for(G-=U;S[l++]=y[I++],--U;);I=l-ee,O=S}for(;2<G;)S[l++]=O[I++],S[l++]=O[I++],S[l++]=O[I++],G-=3;G&&(S[l++]=O[I++],1<G&&(S[l++]=O[I++]))}else{for(I=l-ee;S[l++]=S[I++],S[l++]=S[I++],S[l++]=S[I++],2<(G-=3););G&&(S[l++]=S[I++],1<G&&(S[l++]=S[I++]))}break}}break}}while(u<c&&l<h);u-=G=b>>3,v&=(1<<(b-=G<<3))-1,a.next_in=u,a.next_out=l,a.avail_in=u<c?c-u+5:5-(u-c),a.avail_out=l<h?h-l+257:257-(l-h),s.hold=v,s.bits=b}},{}],49:[function(e,n,i){var a=e("../utils/common"),o=e("./adler32"),s=e("./crc32"),u=e("./inffast"),c=e("./inftrees"),l=1,d=2,h=0,f=-2,g=1,m=852,p=592;function y(I){return(I>>>24&255)+(I>>>8&65280)+((65280&I)<<8)+((255&I)<<24)}function v(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new a.Buf16(320),this.work=new a.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(I){var O;return I&&I.state?(O=I.state,I.total_in=I.total_out=O.total=0,I.msg="",O.wrap&&(I.adler=1&O.wrap),O.mode=g,O.last=0,O.havedict=0,O.dmax=32768,O.head=null,O.hold=0,O.bits=0,O.lencode=O.lendyn=new a.Buf32(m),O.distcode=O.distdyn=new a.Buf32(p),O.sane=1,O.back=-1,h):f}function A(I){var O;return I&&I.state?((O=I.state).wsize=0,O.whave=0,O.wnext=0,b(I)):f}function C(I,O){var T,S;return I&&I.state?(S=I.state,O<0?(T=0,O=-O):(T=1+(O>>4),O<48&&(O&=15)),O&&(O<8||15<O)?f:(S.window!==null&&S.wbits!==O&&(S.window=null),S.wrap=T,S.wbits=O,A(I))):f}function M(I,O){var T,S;return I?(S=new v,(I.state=S).window=null,(T=C(I,O))!==h&&(I.state=null),T):f}var z,W,U=!0;function G(I){if(U){var O;for(z=new a.Buf32(512),W=new a.Buf32(32),O=0;O<144;)I.lens[O++]=8;for(;O<256;)I.lens[O++]=9;for(;O<280;)I.lens[O++]=7;for(;O<288;)I.lens[O++]=8;for(c(l,I.lens,0,288,z,0,I.work,{bits:9}),O=0;O<32;)I.lens[O++]=5;c(d,I.lens,0,32,W,0,I.work,{bits:5}),U=!1}I.lencode=z,I.lenbits=9,I.distcode=W,I.distbits=5}function ee(I,O,T,S){var x,w=I.state;return w.window===null&&(w.wsize=1<<w.wbits,w.wnext=0,w.whave=0,w.window=new a.Buf8(w.wsize)),S>=w.wsize?(a.arraySet(w.window,O,T-w.wsize,w.wsize,0),w.wnext=0,w.whave=w.wsize):(S<(x=w.wsize-w.wnext)&&(x=S),a.arraySet(w.window,O,T-S,x,w.wnext),(S-=x)?(a.arraySet(w.window,O,T-S,S,0),w.wnext=S,w.whave=w.wsize):(w.wnext+=x,w.wnext===w.wsize&&(w.wnext=0),w.whave<w.wsize&&(w.whave+=x))),0}i.inflateReset=A,i.inflateReset2=C,i.inflateResetKeep=b,i.inflateInit=function(I){return M(I,15)},i.inflateInit2=M,i.inflate=function(I,O){var T,S,x,w,_,E,R,F,B,X,K,te,$,q,k,L,V,J,re,ae,j,ue,Q,P,H=0,Z=new a.Buf8(4),oe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!I||!I.state||!I.output||!I.input&&I.avail_in!==0)return f;(T=I.state).mode===12&&(T.mode=13),_=I.next_out,x=I.output,R=I.avail_out,w=I.next_in,S=I.input,E=I.avail_in,F=T.hold,B=T.bits,X=E,K=R,ue=h;e:for(;;)switch(T.mode){case g:if(T.wrap===0){T.mode=13;break}for(;B<16;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if(2&T.wrap&&F===35615){Z[T.check=0]=255&F,Z[1]=F>>>8&255,T.check=s(T.check,Z,2,0),B=F=0,T.mode=2;break}if(T.flags=0,T.head&&(T.head.done=!1),!(1&T.wrap)||(((255&F)<<8)+(F>>8))%31){I.msg="incorrect header check",T.mode=30;break}if((15&F)!=8){I.msg="unknown compression method",T.mode=30;break}if(B-=4,j=8+(15&(F>>>=4)),T.wbits===0)T.wbits=j;else if(j>T.wbits){I.msg="invalid window size",T.mode=30;break}T.dmax=1<<j,I.adler=T.check=1,T.mode=512&F?10:12,B=F=0;break;case 2:for(;B<16;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if(T.flags=F,(255&T.flags)!=8){I.msg="unknown compression method",T.mode=30;break}if(57344&T.flags){I.msg="unknown header flags set",T.mode=30;break}T.head&&(T.head.text=F>>8&1),512&T.flags&&(Z[0]=255&F,Z[1]=F>>>8&255,T.check=s(T.check,Z,2,0)),B=F=0,T.mode=3;case 3:for(;B<32;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}T.head&&(T.head.time=F),512&T.flags&&(Z[0]=255&F,Z[1]=F>>>8&255,Z[2]=F>>>16&255,Z[3]=F>>>24&255,T.check=s(T.check,Z,4,0)),B=F=0,T.mode=4;case 4:for(;B<16;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}T.head&&(T.head.xflags=255&F,T.head.os=F>>8),512&T.flags&&(Z[0]=255&F,Z[1]=F>>>8&255,T.check=s(T.check,Z,2,0)),B=F=0,T.mode=5;case 5:if(1024&T.flags){for(;B<16;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}T.length=F,T.head&&(T.head.extra_len=F),512&T.flags&&(Z[0]=255&F,Z[1]=F>>>8&255,T.check=s(T.check,Z,2,0)),B=F=0}else T.head&&(T.head.extra=null);T.mode=6;case 6:if(1024&T.flags&&(E<(te=T.length)&&(te=E),te&&(T.head&&(j=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),a.arraySet(T.head.extra,S,w,te,j)),512&T.flags&&(T.check=s(T.check,S,te,w)),E-=te,w+=te,T.length-=te),T.length))break e;T.length=0,T.mode=7;case 7:if(2048&T.flags){if(E===0)break e;for(te=0;j=S[w+te++],T.head&&j&&T.length<65536&&(T.head.name+=String.fromCharCode(j)),j&&te<E;);if(512&T.flags&&(T.check=s(T.check,S,te,w)),E-=te,w+=te,j)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=8;case 8:if(4096&T.flags){if(E===0)break e;for(te=0;j=S[w+te++],T.head&&j&&T.length<65536&&(T.head.comment+=String.fromCharCode(j)),j&&te<E;);if(512&T.flags&&(T.check=s(T.check,S,te,w)),E-=te,w+=te,j)break e}else T.head&&(T.head.comment=null);T.mode=9;case 9:if(512&T.flags){for(;B<16;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if(F!==(65535&T.check)){I.msg="header crc mismatch",T.mode=30;break}B=F=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),I.adler=T.check=0,T.mode=12;break;case 10:for(;B<32;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}I.adler=T.check=y(F),B=F=0,T.mode=11;case 11:if(T.havedict===0)return I.next_out=_,I.avail_out=R,I.next_in=w,I.avail_in=E,T.hold=F,T.bits=B,2;I.adler=T.check=1,T.mode=12;case 12:if(O===5||O===6)break e;case 13:if(T.last){F>>>=7&B,B-=7&B,T.mode=27;break}for(;B<3;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}switch(T.last=1&F,B-=1,3&(F>>>=1)){case 0:T.mode=14;break;case 1:if(G(T),T.mode=20,O!==6)break;F>>>=2,B-=2;break e;case 2:T.mode=17;break;case 3:I.msg="invalid block type",T.mode=30}F>>>=2,B-=2;break;case 14:for(F>>>=7&B,B-=7&B;B<32;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if((65535&F)!=(F>>>16^65535)){I.msg="invalid stored block lengths",T.mode=30;break}if(T.length=65535&F,B=F=0,T.mode=15,O===6)break e;case 15:T.mode=16;case 16:if(te=T.length){if(E<te&&(te=E),R<te&&(te=R),te===0)break e;a.arraySet(x,S,w,te,_),E-=te,w+=te,R-=te,_+=te,T.length-=te;break}T.mode=12;break;case 17:for(;B<14;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if(T.nlen=257+(31&F),F>>>=5,B-=5,T.ndist=1+(31&F),F>>>=5,B-=5,T.ncode=4+(15&F),F>>>=4,B-=4,286<T.nlen||30<T.ndist){I.msg="too many length or distance symbols",T.mode=30;break}T.have=0,T.mode=18;case 18:for(;T.have<T.ncode;){for(;B<3;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}T.lens[oe[T.have++]]=7&F,F>>>=3,B-=3}for(;T.have<19;)T.lens[oe[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,Q={bits:T.lenbits},ue=c(0,T.lens,0,19,T.lencode,0,T.work,Q),T.lenbits=Q.bits,ue){I.msg="invalid code lengths set",T.mode=30;break}T.have=0,T.mode=19;case 19:for(;T.have<T.nlen+T.ndist;){for(;L=(H=T.lencode[F&(1<<T.lenbits)-1])>>>16&255,V=65535&H,!((k=H>>>24)<=B);){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if(V<16)F>>>=k,B-=k,T.lens[T.have++]=V;else{if(V===16){for(P=k+2;B<P;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if(F>>>=k,B-=k,T.have===0){I.msg="invalid bit length repeat",T.mode=30;break}j=T.lens[T.have-1],te=3+(3&F),F>>>=2,B-=2}else if(V===17){for(P=k+3;B<P;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}B-=k,j=0,te=3+(7&(F>>>=k)),F>>>=3,B-=3}else{for(P=k+7;B<P;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}B-=k,j=0,te=11+(127&(F>>>=k)),F>>>=7,B-=7}if(T.have+te>T.nlen+T.ndist){I.msg="invalid bit length repeat",T.mode=30;break}for(;te--;)T.lens[T.have++]=j}}if(T.mode===30)break;if(T.lens[256]===0){I.msg="invalid code -- missing end-of-block",T.mode=30;break}if(T.lenbits=9,Q={bits:T.lenbits},ue=c(l,T.lens,0,T.nlen,T.lencode,0,T.work,Q),T.lenbits=Q.bits,ue){I.msg="invalid literal/lengths set",T.mode=30;break}if(T.distbits=6,T.distcode=T.distdyn,Q={bits:T.distbits},ue=c(d,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,Q),T.distbits=Q.bits,ue){I.msg="invalid distances set",T.mode=30;break}if(T.mode=20,O===6)break e;case 20:T.mode=21;case 21:if(6<=E&&258<=R){I.next_out=_,I.avail_out=R,I.next_in=w,I.avail_in=E,T.hold=F,T.bits=B,u(I,K),_=I.next_out,x=I.output,R=I.avail_out,w=I.next_in,S=I.input,E=I.avail_in,F=T.hold,B=T.bits,T.mode===12&&(T.back=-1);break}for(T.back=0;L=(H=T.lencode[F&(1<<T.lenbits)-1])>>>16&255,V=65535&H,!((k=H>>>24)<=B);){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if(L&&(240&L)==0){for(J=k,re=L,ae=V;L=(H=T.lencode[ae+((F&(1<<J+re)-1)>>J)])>>>16&255,V=65535&H,!(J+(k=H>>>24)<=B);){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}F>>>=J,B-=J,T.back+=J}if(F>>>=k,B-=k,T.back+=k,T.length=V,L===0){T.mode=26;break}if(32&L){T.back=-1,T.mode=12;break}if(64&L){I.msg="invalid literal/length code",T.mode=30;break}T.extra=15&L,T.mode=22;case 22:if(T.extra){for(P=T.extra;B<P;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}T.length+=F&(1<<T.extra)-1,F>>>=T.extra,B-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=23;case 23:for(;L=(H=T.distcode[F&(1<<T.distbits)-1])>>>16&255,V=65535&H,!((k=H>>>24)<=B);){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if((240&L)==0){for(J=k,re=L,ae=V;L=(H=T.distcode[ae+((F&(1<<J+re)-1)>>J)])>>>16&255,V=65535&H,!(J+(k=H>>>24)<=B);){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}F>>>=J,B-=J,T.back+=J}if(F>>>=k,B-=k,T.back+=k,64&L){I.msg="invalid distance code",T.mode=30;break}T.offset=V,T.extra=15&L,T.mode=24;case 24:if(T.extra){for(P=T.extra;B<P;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}T.offset+=F&(1<<T.extra)-1,F>>>=T.extra,B-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){I.msg="invalid distance too far back",T.mode=30;break}T.mode=25;case 25:if(R===0)break e;if(te=K-R,T.offset>te){if((te=T.offset-te)>T.whave&&T.sane){I.msg="invalid distance too far back",T.mode=30;break}$=te>T.wnext?(te-=T.wnext,T.wsize-te):T.wnext-te,te>T.length&&(te=T.length),q=T.window}else q=x,$=_-T.offset,te=T.length;for(R<te&&(te=R),R-=te,T.length-=te;x[_++]=q[$++],--te;);T.length===0&&(T.mode=21);break;case 26:if(R===0)break e;x[_++]=T.length,R--,T.mode=21;break;case 27:if(T.wrap){for(;B<32;){if(E===0)break e;E--,F|=S[w++]<<B,B+=8}if(K-=R,I.total_out+=K,T.total+=K,K&&(I.adler=T.check=T.flags?s(T.check,x,K,_-K):o(T.check,x,K,_-K)),K=R,(T.flags?F:y(F))!==T.check){I.msg="incorrect data check",T.mode=30;break}B=F=0}T.mode=28;case 28:if(T.wrap&&T.flags){for(;B<32;){if(E===0)break e;E--,F+=S[w++]<<B,B+=8}if(F!==(4294967295&T.total)){I.msg="incorrect length check",T.mode=30;break}B=F=0}T.mode=29;case 29:ue=1;break e;case 30:ue=-3;break e;case 31:return-4;case 32:default:return f}return I.next_out=_,I.avail_out=R,I.next_in=w,I.avail_in=E,T.hold=F,T.bits=B,(T.wsize||K!==I.avail_out&&T.mode<30&&(T.mode<27||O!==4))&&ee(I,I.output,I.next_out,K-I.avail_out)?(T.mode=31,-4):(X-=I.avail_in,K-=I.avail_out,I.total_in+=X,I.total_out+=K,T.total+=K,T.wrap&&K&&(I.adler=T.check=T.flags?s(T.check,x,K,I.next_out-K):o(T.check,x,K,I.next_out-K)),I.data_type=T.bits+(T.last?64:0)+(T.mode===12?128:0)+(T.mode===20||T.mode===15?256:0),(X==0&&K===0||O===4)&&ue===h&&(ue=-5),ue)},i.inflateEnd=function(I){if(!I||!I.state)return f;var O=I.state;return O.window&&(O.window=null),I.state=null,h},i.inflateGetHeader=function(I,O){var T;return I&&I.state?(2&(T=I.state).wrap)==0?f:((T.head=O).done=!1,h):f},i.inflateSetDictionary=function(I,O){var T,S=O.length;return I&&I.state?(T=I.state).wrap!==0&&T.mode!==11?f:T.mode===11&&o(1,O,S,0)!==T.check?-3:ee(I,O,S,S)?(T.mode=31,-4):(T.havedict=1,h):f},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,n,i){var a=e("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];n.exports=function(l,d,h,f,g,m,p,y){var v,b,A,C,M,z,W,U,G,ee=y.bits,I=0,O=0,T=0,S=0,x=0,w=0,_=0,E=0,R=0,F=0,B=null,X=0,K=new a.Buf16(16),te=new a.Buf16(16),$=null,q=0;for(I=0;I<=15;I++)K[I]=0;for(O=0;O<f;O++)K[d[h+O]]++;for(x=ee,S=15;1<=S&&K[S]===0;S--);if(S<x&&(x=S),S===0)return g[m++]=20971520,g[m++]=20971520,y.bits=1,0;for(T=1;T<S&&K[T]===0;T++);for(x<T&&(x=T),I=E=1;I<=15;I++)if(E<<=1,(E-=K[I])<0)return-1;if(0<E&&(l===0||S!==1))return-1;for(te[1]=0,I=1;I<15;I++)te[I+1]=te[I]+K[I];for(O=0;O<f;O++)d[h+O]!==0&&(p[te[d[h+O]]++]=O);if(z=l===0?(B=$=p,19):l===1?(B=o,X-=257,$=s,q-=257,256):(B=u,$=c,-1),I=T,M=m,_=O=F=0,A=-1,C=(R=1<<(w=x))-1,l===1&&852<R||l===2&&592<R)return 1;for(;;){for(W=I-_,G=p[O]<z?(U=0,p[O]):p[O]>z?(U=$[q+p[O]],B[X+p[O]]):(U=96,0),v=1<<I-_,T=b=1<<w;g[M+(F>>_)+(b-=v)]=W<<24|U<<16|G|0,b!==0;);for(v=1<<I-1;F&v;)v>>=1;if(v!==0?(F&=v-1,F+=v):F=0,O++,--K[I]==0){if(I===S)break;I=d[h+p[O]]}if(x<I&&(F&C)!==A){for(_===0&&(_=x),M+=T,E=1<<(w=I-_);w+_<S&&!((E-=K[w+_])<=0);)w++,E<<=1;if(R+=1<<w,l===1&&852<R||l===2&&592<R)return 1;g[A=F&C]=x<<24|w<<16|M-m|0}}return F!==0&&(g[M+F]=I-_<<24|64<<16|0),y.bits=x,0}},{"../utils/common":41}],51:[function(e,n,i){n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,n,i){var a=e("../utils/common"),o=0,s=1;function u(H){for(var Z=H.length;0<=--Z;)H[Z]=0}var c=0,l=29,d=256,h=d+1+l,f=30,g=19,m=2*h+1,p=15,y=16,v=7,b=256,A=16,C=17,M=18,z=[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],W=[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],U=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ee=new Array(2*(h+2));u(ee);var I=new Array(2*f);u(I);var O=new Array(512);u(O);var T=new Array(256);u(T);var S=new Array(l);u(S);var x,w,_,E=new Array(f);function R(H,Z,oe,ce,ne){this.static_tree=H,this.extra_bits=Z,this.extra_base=oe,this.elems=ce,this.max_length=ne,this.has_stree=H&&H.length}function F(H,Z){this.dyn_tree=H,this.max_code=0,this.stat_desc=Z}function B(H){return H<256?O[H]:O[256+(H>>>7)]}function X(H,Z){H.pending_buf[H.pending++]=255&Z,H.pending_buf[H.pending++]=Z>>>8&255}function K(H,Z,oe){H.bi_valid>y-oe?(H.bi_buf|=Z<<H.bi_valid&65535,X(H,H.bi_buf),H.bi_buf=Z>>y-H.bi_valid,H.bi_valid+=oe-y):(H.bi_buf|=Z<<H.bi_valid&65535,H.bi_valid+=oe)}function te(H,Z,oe){K(H,oe[2*Z],oe[2*Z+1])}function $(H,Z){for(var oe=0;oe|=1&H,H>>>=1,oe<<=1,0<--Z;);return oe>>>1}function q(H,Z,oe){var ce,ne,se=new Array(p+1),fe=0;for(ce=1;ce<=p;ce++)se[ce]=fe=fe+oe[ce-1]<<1;for(ne=0;ne<=Z;ne++){var de=H[2*ne+1];de!==0&&(H[2*ne]=$(se[de]++,de))}}function k(H){var Z;for(Z=0;Z<h;Z++)H.dyn_ltree[2*Z]=0;for(Z=0;Z<f;Z++)H.dyn_dtree[2*Z]=0;for(Z=0;Z<g;Z++)H.bl_tree[2*Z]=0;H.dyn_ltree[2*b]=1,H.opt_len=H.static_len=0,H.last_lit=H.matches=0}function L(H){8<H.bi_valid?X(H,H.bi_buf):0<H.bi_valid&&(H.pending_buf[H.pending++]=H.bi_buf),H.bi_buf=0,H.bi_valid=0}function V(H,Z,oe,ce){var ne=2*Z,se=2*oe;return H[ne]<H[se]||H[ne]===H[se]&&ce[Z]<=ce[oe]}function J(H,Z,oe){for(var ce=H.heap[oe],ne=oe<<1;ne<=H.heap_len&&(ne<H.heap_len&&V(Z,H.heap[ne+1],H.heap[ne],H.depth)&&ne++,!V(Z,ce,H.heap[ne],H.depth));)H.heap[oe]=H.heap[ne],oe=ne,ne<<=1;H.heap[oe]=ce}function re(H,Z,oe){var ce,ne,se,fe,de=0;if(H.last_lit!==0)for(;ce=H.pending_buf[H.d_buf+2*de]<<8|H.pending_buf[H.d_buf+2*de+1],ne=H.pending_buf[H.l_buf+de],de++,ce===0?te(H,ne,Z):(te(H,(se=T[ne])+d+1,Z),(fe=z[se])!==0&&K(H,ne-=S[se],fe),te(H,se=B(--ce),oe),(fe=W[se])!==0&&K(H,ce-=E[se],fe)),de<H.last_lit;);te(H,b,Z)}function ae(H,Z){var oe,ce,ne,se=Z.dyn_tree,fe=Z.stat_desc.static_tree,de=Z.stat_desc.has_stree,ve=Z.stat_desc.elems,Ee=-1;for(H.heap_len=0,H.heap_max=m,oe=0;oe<ve;oe++)se[2*oe]!==0?(H.heap[++H.heap_len]=Ee=oe,H.depth[oe]=0):se[2*oe+1]=0;for(;H.heap_len<2;)se[2*(ne=H.heap[++H.heap_len]=Ee<2?++Ee:0)]=1,H.depth[ne]=0,H.opt_len--,de&&(H.static_len-=fe[2*ne+1]);for(Z.max_code=Ee,oe=H.heap_len>>1;1<=oe;oe--)J(H,se,oe);for(ne=ve;oe=H.heap[1],H.heap[1]=H.heap[H.heap_len--],J(H,se,1),ce=H.heap[1],H.heap[--H.heap_max]=oe,H.heap[--H.heap_max]=ce,se[2*ne]=se[2*oe]+se[2*ce],H.depth[ne]=(H.depth[oe]>=H.depth[ce]?H.depth[oe]:H.depth[ce])+1,se[2*oe+1]=se[2*ce+1]=ne,H.heap[1]=ne++,J(H,se,1),2<=H.heap_len;);H.heap[--H.heap_max]=H.heap[1],function(Se,Ne){var He,qe,et,Ue,Ge,tt,rt=Ne.dyn_tree,lt=Ne.max_code,Ft=Ne.stat_desc.static_tree,Wt=Ne.stat_desc.has_stree,dt=Ne.stat_desc.extra_bits,Pt=Ne.stat_desc.extra_base,xt=Ne.stat_desc.max_length,gt=0;for(Ue=0;Ue<=p;Ue++)Se.bl_count[Ue]=0;for(rt[2*Se.heap[Se.heap_max]+1]=0,He=Se.heap_max+1;He<m;He++)xt<(Ue=rt[2*rt[2*(qe=Se.heap[He])+1]+1]+1)&&(Ue=xt,gt++),rt[2*qe+1]=Ue,lt<qe||(Se.bl_count[Ue]++,Ge=0,Pt<=qe&&(Ge=dt[qe-Pt]),tt=rt[2*qe],Se.opt_len+=tt*(Ue+Ge),Wt&&(Se.static_len+=tt*(Ft[2*qe+1]+Ge)));if(gt!==0){do{for(Ue=xt-1;Se.bl_count[Ue]===0;)Ue--;Se.bl_count[Ue]--,Se.bl_count[Ue+1]+=2,Se.bl_count[xt]--,gt-=2}while(0<gt);for(Ue=xt;Ue!==0;Ue--)for(qe=Se.bl_count[Ue];qe!==0;)lt<(et=Se.heap[--He])||(rt[2*et+1]!==Ue&&(Se.opt_len+=(Ue-rt[2*et+1])*rt[2*et],rt[2*et+1]=Ue),qe--)}}(H,Z),q(se,Ee,H.bl_count)}function j(H,Z,oe){var ce,ne,se=-1,fe=Z[1],de=0,ve=7,Ee=4;for(fe===0&&(ve=138,Ee=3),Z[2*(oe+1)+1]=65535,ce=0;ce<=oe;ce++)ne=fe,fe=Z[2*(ce+1)+1],++de<ve&&ne===fe||(de<Ee?H.bl_tree[2*ne]+=de:ne!==0?(ne!==se&&H.bl_tree[2*ne]++,H.bl_tree[2*A]++):de<=10?H.bl_tree[2*C]++:H.bl_tree[2*M]++,se=ne,Ee=(de=0)===fe?(ve=138,3):ne===fe?(ve=6,3):(ve=7,4))}function ue(H,Z,oe){var ce,ne,se=-1,fe=Z[1],de=0,ve=7,Ee=4;for(fe===0&&(ve=138,Ee=3),ce=0;ce<=oe;ce++)if(ne=fe,fe=Z[2*(ce+1)+1],!(++de<ve&&ne===fe)){if(de<Ee)for(;te(H,ne,H.bl_tree),--de!=0;);else ne!==0?(ne!==se&&(te(H,ne,H.bl_tree),de--),te(H,A,H.bl_tree),K(H,de-3,2)):de<=10?(te(H,C,H.bl_tree),K(H,de-3,3)):(te(H,M,H.bl_tree),K(H,de-11,7));se=ne,Ee=(de=0)===fe?(ve=138,3):ne===fe?(ve=6,3):(ve=7,4)}}u(E);var Q=!1;function P(H,Z,oe,ce){K(H,(c<<1)+(ce?1:0),3),function(ne,se,fe,de){L(ne),de&&(X(ne,fe),X(ne,~fe)),a.arraySet(ne.pending_buf,ne.window,se,fe,ne.pending),ne.pending+=fe}(H,Z,oe,!0)}i._tr_init=function(H){Q||(function(){var Z,oe,ce,ne,se,fe=new Array(p+1);for(ne=ce=0;ne<l-1;ne++)for(S[ne]=ce,Z=0;Z<1<<z[ne];Z++)T[ce++]=ne;for(T[ce-1]=ne,ne=se=0;ne<16;ne++)for(E[ne]=se,Z=0;Z<1<<W[ne];Z++)O[se++]=ne;for(se>>=7;ne<f;ne++)for(E[ne]=se<<7,Z=0;Z<1<<W[ne]-7;Z++)O[256+se++]=ne;for(oe=0;oe<=p;oe++)fe[oe]=0;for(Z=0;Z<=143;)ee[2*Z+1]=8,Z++,fe[8]++;for(;Z<=255;)ee[2*Z+1]=9,Z++,fe[9]++;for(;Z<=279;)ee[2*Z+1]=7,Z++,fe[7]++;for(;Z<=287;)ee[2*Z+1]=8,Z++,fe[8]++;for(q(ee,h+1,fe),Z=0;Z<f;Z++)I[2*Z+1]=5,I[2*Z]=$(Z,5);x=new R(ee,z,d+1,h,p),w=new R(I,W,0,f,p),_=new R(new Array(0),U,0,g,v)}(),Q=!0),H.l_desc=new F(H.dyn_ltree,x),H.d_desc=new F(H.dyn_dtree,w),H.bl_desc=new F(H.bl_tree,_),H.bi_buf=0,H.bi_valid=0,k(H)},i._tr_stored_block=P,i._tr_flush_block=function(H,Z,oe,ce){var ne,se,fe=0;0<H.level?(H.strm.data_type===2&&(H.strm.data_type=function(de){var ve,Ee=4093624447;for(ve=0;ve<=31;ve++,Ee>>>=1)if(1&Ee&&de.dyn_ltree[2*ve]!==0)return o;if(de.dyn_ltree[18]!==0||de.dyn_ltree[20]!==0||de.dyn_ltree[26]!==0)return s;for(ve=32;ve<d;ve++)if(de.dyn_ltree[2*ve]!==0)return s;return o}(H)),ae(H,H.l_desc),ae(H,H.d_desc),fe=function(de){var ve;for(j(de,de.dyn_ltree,de.l_desc.max_code),j(de,de.dyn_dtree,de.d_desc.max_code),ae(de,de.bl_desc),ve=g-1;3<=ve&&de.bl_tree[2*G[ve]+1]===0;ve--);return de.opt_len+=3*(ve+1)+5+5+4,ve}(H),ne=H.opt_len+3+7>>>3,(se=H.static_len+3+7>>>3)<=ne&&(ne=se)):ne=se=oe+5,oe+4<=ne&&Z!==-1?P(H,Z,oe,ce):H.strategy===4||se===ne?(K(H,2+(ce?1:0),3),re(H,ee,I)):(K(H,4+(ce?1:0),3),function(de,ve,Ee,Se){var Ne;for(K(de,ve-257,5),K(de,Ee-1,5),K(de,Se-4,4),Ne=0;Ne<Se;Ne++)K(de,de.bl_tree[2*G[Ne]+1],3);ue(de,de.dyn_ltree,ve-1),ue(de,de.dyn_dtree,Ee-1)}(H,H.l_desc.max_code+1,H.d_desc.max_code+1,fe+1),re(H,H.dyn_ltree,H.dyn_dtree)),k(H),ce&&L(H)},i._tr_tally=function(H,Z,oe){return H.pending_buf[H.d_buf+2*H.last_lit]=Z>>>8&255,H.pending_buf[H.d_buf+2*H.last_lit+1]=255&Z,H.pending_buf[H.l_buf+H.last_lit]=255&oe,H.last_lit++,Z===0?H.dyn_ltree[2*oe]++:(H.matches++,Z--,H.dyn_ltree[2*(T[oe]+d+1)]++,H.dyn_dtree[2*B(Z)]++),H.last_lit===H.lit_bufsize-1},i._tr_align=function(H){K(H,2,3),te(H,b,ee),function(Z){Z.bi_valid===16?(X(Z,Z.bi_buf),Z.bi_buf=0,Z.bi_valid=0):8<=Z.bi_valid&&(Z.pending_buf[Z.pending++]=255&Z.bi_buf,Z.bi_buf>>=8,Z.bi_valid-=8)}(H)}},{"../utils/common":41}],53:[function(e,n,i){n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,n,i){(function(a){(function(o,s){if(!o.setImmediate){var u,c,l,d,h=1,f={},g=!1,m=o.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(o);p=p&&p.setTimeout?p:o,u={}.toString.call(o.process)==="[object process]"?function(A){process.nextTick(function(){v(A)})}:function(){if(o.postMessage&&!o.importScripts){var A=!0,C=o.onmessage;return o.onmessage=function(){A=!1},o.postMessage("","*"),o.onmessage=C,A}}()?(d="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",b,!1):o.attachEvent("onmessage",b),function(A){o.postMessage(d+A,"*")}):o.MessageChannel?((l=new MessageChannel).port1.onmessage=function(A){v(A.data)},function(A){l.port2.postMessage(A)}):m&&"onreadystatechange"in m.createElement("script")?(c=m.documentElement,function(A){var C=m.createElement("script");C.onreadystatechange=function(){v(A),C.onreadystatechange=null,c.removeChild(C),C=null},c.appendChild(C)}):function(A){setTimeout(v,0,A)},p.setImmediate=function(A){typeof A!="function"&&(A=new Function(""+A));for(var C=new Array(arguments.length-1),M=0;M<C.length;M++)C[M]=arguments[M+1];var z={callback:A,args:C};return f[h]=z,u(h),h++},p.clearImmediate=y}function y(A){delete f[A]}function v(A){if(g)setTimeout(v,0,A);else{var C=f[A];if(C){g=!0;try{(function(M){var z=M.callback,W=M.args;switch(W.length){case 0:z();break;case 1:z(W[0]);break;case 2:z(W[0],W[1]);break;case 3:z(W[0],W[1],W[2]);break;default:z.apply(s,W)}})(C)}finally{y(A),g=!1}}}}function b(A){A.source===o&&typeof A.data=="string"&&A.data.indexOf(d)===0&&v(+A.data.slice(d.length))}})(typeof self=="undefined"?a===void 0?this:a:self)}).call(this,typeof ot!="undefined"?ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})})(v3);var O$=sd,I$=v3.exports;yl.openArrayBuffer=k$;yl.splitPath=R$;yl.joinPath=F$;function k$(r){return I$.loadAsync(r).then(function(t){function e(o){return t.file(o)!==null}function n(o,s){return t.file(o).async("uint8array").then(function(u){if(s==="base64")return O$.fromByteArray(u);if(s){var c=new TextDecoder(s);return c.decode(u)}else return u})}function i(o,s){t.file(o,s)}function a(){return t.generateAsync({type:"arraybuffer"})}return{exists:e,read:n,write:i,toArrayBuffer:a}})}function R$(r){var t=r.lastIndexOf("/");return t===-1?{dirname:"",basename:r}:{dirname:r.substring(0,t),basename:r.substring(t+1)}}function F$(){var r=Array.prototype.filter.call(arguments,function(e){return e}),t=[];return r.forEach(function(e){/^\//.test(e)?t=[e]:t.push(e)}),t.join("/")}var og={},zs={},bl={},ud=on.exports;bl.Element=Ju;bl.element=function(r,t,e){return new Ju(r,t,e)};bl.text=function(r){return{type:"text",value:r}};var y3={first:function(){return null},firstOrEmpty:function(){return y3},attributes:{}};function Ju(r,t,e){this.type="element",this.name=r,this.attributes=t||{},this.children=e||[]}Ju.prototype.first=function(r){return ud.find(this.children,function(t){return t.name===r})};Ju.prototype.firstOrEmpty=function(r){return this.first(r)||y3};Ju.prototype.getElementsByTagName=function(r){var t=ud.filter(this.children,function(e){return e.name===r});return b3(t)};Ju.prototype.text=function(){if(this.children.length===0)return"";if(this.children.length!==1||this.children[0].type!=="text")throw new Error("Not implemented");return this.children[0].value};var N$={getElementsByTagName:function(r){return b3(ud.flatten(this.map(function(t){return t.getElementsByTagName(r)},!0)))}};function b3(r){return ud.extend(r,N$)}var w3={},sg={},cd={},Za={},To={};function M$(r,t,e){if(e===void 0&&(e=Array.prototype),r&&typeof e.find=="function")return e.find.call(r,t);for(var n=0;n<r.length;n++)if(Object.prototype.hasOwnProperty.call(r,n)){var i=r[n];if(t.call(void 0,i,n,r))return i}}function ug(r,t){return t===void 0&&(t=Object),t&&typeof t.freeze=="function"?t.freeze(r):r}function B$(r,t){if(r===null||typeof r!="object")throw new TypeError("target is not an object");for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r}var x3=ug({HTML:"text/html",isHTML:function(r){return r===x3.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),_3=ug({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(r){return r===_3.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});To.assign=B$;To.find=M$;To.freeze=ug;To.MIME_TYPE=x3;To.NAMESPACE=_3;var E3=To,Ya=E3.find,wl=E3.NAMESPACE;function U$(r){return r!==""}function P$(r){return r?r.split(/[\t\n\f\r ]+/).filter(U$):[]}function L$(r,t){return r.hasOwnProperty(t)||(r[t]=!0),r}function A3(r){if(!r)return[];var t=P$(r);return Object.keys(t.reduce(L$,{}))}function j$(r){return function(t){return r&&r.indexOf(t)!==-1}}function xl(r,t){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}function Ii(r,t){var e=r.prototype;if(!(e instanceof t)){let n=function(){};n.prototype=t.prototype,n=new n,xl(e,n),r.prototype=e=n}e.constructor!=r&&(typeof r!="function"&&console.error("unknown Class:"+r),e.constructor=r)}var ki={},Ea=ki.ELEMENT_NODE=1,Qu=ki.ATTRIBUTE_NODE=2,ld=ki.TEXT_NODE=3,T3=ki.CDATA_SECTION_NODE=4,S3=ki.ENTITY_REFERENCE_NODE=5,W$=ki.ENTITY_NODE=6,D3=ki.PROCESSING_INSTRUCTION_NODE=7,C3=ki.COMMENT_NODE=8,O3=ki.DOCUMENT_NODE=9,I3=ki.DOCUMENT_TYPE_NODE=10,So=ki.DOCUMENT_FRAGMENT_NODE=11,z$=ki.NOTATION_NODE=12,ni={},Ln={};ni.INDEX_SIZE_ERR=(Ln[1]="Index size error",1);ni.DOMSTRING_SIZE_ERR=(Ln[2]="DOMString size error",2);var Ri=ni.HIERARCHY_REQUEST_ERR=(Ln[3]="Hierarchy request error",3);ni.WRONG_DOCUMENT_ERR=(Ln[4]="Wrong document",4);ni.INVALID_CHARACTER_ERR=(Ln[5]="Invalid character",5);ni.NO_DATA_ALLOWED_ERR=(Ln[6]="No data allowed",6);ni.NO_MODIFICATION_ALLOWED_ERR=(Ln[7]="No modification allowed",7);var k3=ni.NOT_FOUND_ERR=(Ln[8]="Not found",8);ni.NOT_SUPPORTED_ERR=(Ln[9]="Not supported",9);var R3=ni.INUSE_ATTRIBUTE_ERR=(Ln[10]="Attribute in use",10);ni.INVALID_STATE_ERR=(Ln[11]="Invalid state",11);ni.SYNTAX_ERR=(Ln[12]="Syntax error",12);ni.INVALID_MODIFICATION_ERR=(Ln[13]="Invalid modification",13);ni.NAMESPACE_ERR=(Ln[14]="Invalid namespace",14);ni.INVALID_ACCESS_ERR=(Ln[15]="Invalid access",15);function dn(r,t){if(t instanceof Error)var e=t;else e=this,Error.call(this,Ln[r]),this.message=Ln[r],Error.captureStackTrace&&Error.captureStackTrace(this,dn);return e.code=r,t&&(this.message=this.message+": "+t),e}dn.prototype=Error.prototype;xl(ni,dn);function Do(){}Do.prototype={length:0,item:function(r){return r>=0&&r<this.length?this[r]:null},toString:function(r,t){for(var e=[],n=0;n<this.length;n++)tc(this[n],e,r,t);return e.join("")},filter:function(r){return Array.prototype.filter.call(this,r)},indexOf:function(r){return Array.prototype.indexOf.call(this,r)}};function ec(r,t){this._node=r,this._refresh=t,cg(this)}function cg(r){var t=r._node._inc||r._node.ownerDocument._inc;if(r._inc!==t){var e=r._refresh(r._node);if(K3(r,"length",e.length),!r.$$length||e.length<r.$$length)for(var n=e.length;n in r;n++)Object.prototype.hasOwnProperty.call(r,n)&&delete r[n];xl(e,r),r._inc=t}}ec.prototype.item=function(r){return cg(this),this[r]||null};Ii(ec,Do);function fd(){}function F3(r,t){for(var e=r.length;e--;)if(r[e]===t)return e}function N3(r,t,e,n){if(n?t[F3(t,n)]=e:t[t.length++]=e,r){e.ownerElement=r;var i=r.ownerDocument;i&&(n&&P3(i,r,n),H$(i,r,e))}}function M3(r,t,e){var n=F3(t,e);if(n>=0){for(var i=t.length-1;n<i;)t[n]=t[++n];if(t.length=i,r){var a=r.ownerDocument;a&&(P3(a,r,e),e.ownerElement=null)}}else throw new dn(k3,new Error(r.tagName+"@"+e))}fd.prototype={length:0,item:Do.prototype.item,getNamedItem:function(r){for(var t=this.length;t--;){var e=this[t];if(e.nodeName==r)return e}},setNamedItem:function(r){var t=r.ownerElement;if(t&&t!=this._ownerElement)throw new dn(R3);var e=this.getNamedItem(r.nodeName);return N3(this._ownerElement,this,r,e),e},setNamedItemNS:function(r){var t=r.ownerElement,e;if(t&&t!=this._ownerElement)throw new dn(R3);return e=this.getNamedItemNS(r.namespaceURI,r.localName),N3(this._ownerElement,this,r,e),e},removeNamedItem:function(r){var t=this.getNamedItem(r);return M3(this._ownerElement,this,t),t},removeNamedItemNS:function(r,t){var e=this.getNamedItemNS(r,t);return M3(this._ownerElement,this,e),e},getNamedItemNS:function(r,t){for(var e=this.length;e--;){var n=this[e];if(n.localName==t&&n.namespaceURI==r)return n}return null}};function B3(){}B3.prototype={hasFeature:function(r,t){return!0},createDocument:function(r,t,e){var n=new El;if(n.implementation=this,n.childNodes=new Do,n.doctype=e||null,e&&n.appendChild(e),t){var i=n.createElementNS(r,t);n.appendChild(i)}return n},createDocumentType:function(r,t,e){var n=new pd;return n.name=r,n.nodeName=r,n.publicId=t||"",n.systemId=e||"",n}};function Rr(){}Rr.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(r,t){return hd(this,r,t)},replaceChild:function(r,t){hd(this,r,t,z3),t&&this.removeChild(t)},removeChild:function(r){return L3(this,r)},appendChild:function(r){return this.insertBefore(r,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(r){return yg(this.ownerDocument||this,this,r)},normalize:function(){for(var r=this.firstChild;r;){var t=r.nextSibling;t&&t.nodeType==ld&&r.nodeType==ld?(this.removeChild(t),r.appendData(t.data)):(r.normalize(),r=t)}},isSupported:function(r,t){return this.ownerDocument.implementation.hasFeature(r,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(r){for(var t=this;t;){var e=t._nsMap;if(e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&e[n]===r)return n}t=t.nodeType==Qu?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(r){for(var t=this;t;){var e=t._nsMap;if(e&&Object.prototype.hasOwnProperty.call(e,r))return e[r];t=t.nodeType==Qu?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(r){var t=this.lookupPrefix(r);return t==null}};function U3(r){return r=="<"&&"&lt;"||r==">"&&"&gt;"||r=="&"&&"&amp;"||r=='"'&&"&quot;"||"&#"+r.charCodeAt()+";"}xl(ki,Rr);xl(ki,Rr.prototype);function _l(r,t){if(t(r))return!0;if(r=r.firstChild)do if(_l(r,t))return!0;while(r=r.nextSibling)}function El(){this.ownerDocument=this}function H$(r,t,e){r&&r._inc++;var n=e.namespaceURI;n===wl.XMLNS&&(t._nsMap[e.prefix?e.localName:""]=e.value)}function P3(r,t,e,n){r&&r._inc++;var i=e.namespaceURI;i===wl.XMLNS&&delete t._nsMap[e.prefix?e.localName:""]}function lg(r,t,e){if(r&&r._inc){r._inc++;var n=t.childNodes;if(e)n[n.length++]=e;else{for(var i=t.firstChild,a=0;i;)n[a++]=i,i=i.nextSibling;n.length=a,delete n[n.length]}}}function L3(r,t){var e=t.previousSibling,n=t.nextSibling;return e?e.nextSibling=n:r.firstChild=n,n?n.previousSibling=e:r.lastChild=e,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,lg(r.ownerDocument,r),t}function $$(r){return r&&(r.nodeType===Rr.DOCUMENT_NODE||r.nodeType===Rr.DOCUMENT_FRAGMENT_NODE||r.nodeType===Rr.ELEMENT_NODE)}function V$(r){return r&&(Ja(r)||fg(r)||Co(r)||r.nodeType===Rr.DOCUMENT_FRAGMENT_NODE||r.nodeType===Rr.COMMENT_NODE||r.nodeType===Rr.PROCESSING_INSTRUCTION_NODE)}function Co(r){return r&&r.nodeType===Rr.DOCUMENT_TYPE_NODE}function Ja(r){return r&&r.nodeType===Rr.ELEMENT_NODE}function fg(r){return r&&r.nodeType===Rr.TEXT_NODE}function j3(r,t){var e=r.childNodes||[];if(Ya(e,Ja)||Co(t))return!1;var n=Ya(e,Co);return!(t&&n&&e.indexOf(n)>e.indexOf(t))}function W3(r,t){var e=r.childNodes||[];function n(a){return Ja(a)&&a!==t}if(Ya(e,n))return!1;var i=Ya(e,Co);return!(t&&i&&e.indexOf(i)>e.indexOf(t))}function q$(r,t,e){if(!$$(r))throw new dn(Ri,"Unexpected parent node type "+r.nodeType);if(e&&e.parentNode!==r)throw new dn(k3,"child not in parent");if(!V$(t)||Co(t)&&r.nodeType!==Rr.DOCUMENT_NODE)throw new dn(Ri,"Unexpected node type "+t.nodeType+" for parent node type "+r.nodeType)}function G$(r,t,e){var n=r.childNodes||[],i=t.childNodes||[];if(t.nodeType===Rr.DOCUMENT_FRAGMENT_NODE){var a=i.filter(Ja);if(a.length>1||Ya(i,fg))throw new dn(Ri,"More than one element or text in fragment");if(a.length===1&&!j3(r,e))throw new dn(Ri,"Element in fragment can not be inserted before doctype")}if(Ja(t)&&!j3(r,e))throw new dn(Ri,"Only one element can be added and only after doctype");if(Co(t)){if(Ya(n,Co))throw new dn(Ri,"Only one doctype is allowed");var o=Ya(n,Ja);if(e&&n.indexOf(o)<n.indexOf(e))throw new dn(Ri,"Doctype can only be inserted before an element");if(!e&&o)throw new dn(Ri,"Doctype can not be appended since element is present")}}function z3(r,t,e){var n=r.childNodes||[],i=t.childNodes||[];if(t.nodeType===Rr.DOCUMENT_FRAGMENT_NODE){var a=i.filter(Ja);if(a.length>1||Ya(i,fg))throw new dn(Ri,"More than one element or text in fragment");if(a.length===1&&!W3(r,e))throw new dn(Ri,"Element in fragment can not be inserted before doctype")}if(Ja(t)&&!W3(r,e))throw new dn(Ri,"Only one element can be added and only after doctype");if(Co(t)){if(Ya(n,function(u){return Co(u)&&u!==e}))throw new dn(Ri,"Only one doctype is allowed");var o=Ya(n,Ja);if(e&&n.indexOf(o)<n.indexOf(e))throw new dn(Ri,"Doctype can only be inserted before an element")}}function hd(r,t,e,n){q$(r,t,e),r.nodeType===Rr.DOCUMENT_NODE&&(n||G$)(r,t,e);var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===So){var a=t.firstChild;if(a==null)return t;var o=t.lastChild}else a=o=t;var s=e?e.previousSibling:r.lastChild;a.previousSibling=s,o.nextSibling=e,s?s.nextSibling=a:r.firstChild=a,e==null?r.lastChild=o:e.previousSibling=o;do a.parentNode=r;while(a!==o&&(a=a.nextSibling));return lg(r.ownerDocument||r,r),t.nodeType==So&&(t.firstChild=t.lastChild=null),t}function X$(r,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=r,t.previousSibling=r.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:r.firstChild=t,r.lastChild=t,lg(r.ownerDocument,r,t),t}El.prototype={nodeName:"#document",nodeType:O3,doctype:null,documentElement:null,_inc:1,insertBefore:function(r,t){if(r.nodeType==So){for(var e=r.firstChild;e;){var n=e.nextSibling;this.insertBefore(e,t),e=n}return r}return hd(this,r,t),r.ownerDocument=this,this.documentElement===null&&r.nodeType===Ea&&(this.documentElement=r),r},removeChild:function(r){return this.documentElement==r&&(this.documentElement=null),L3(this,r)},replaceChild:function(r,t){hd(this,r,t,z3),r.ownerDocument=this,t&&this.removeChild(t),Ja(r)&&(this.documentElement=r)},importNode:function(r,t){return X3(this,r,t)},getElementById:function(r){var t=null;return _l(this.documentElement,function(e){if(e.nodeType==Ea&&e.getAttribute("id")==r)return t=e,!0}),t},getElementsByClassName:function(r){var t=A3(r);return new ec(this,function(e){var n=[];return t.length>0&&_l(e.documentElement,function(i){if(i!==e&&i.nodeType===Ea){var a=i.getAttribute("class");if(a){var o=r===a;if(!o){var s=A3(a);o=t.every(j$(s))}o&&n.push(i)}}}),n})},createElement:function(r){var t=new Hs;t.ownerDocument=this,t.nodeName=r,t.tagName=r,t.localName=r,t.childNodes=new Do;var e=t.attributes=new fd;return e._ownerElement=t,t},createDocumentFragment:function(){var r=new md;return r.ownerDocument=this,r.childNodes=new Do,r},createTextNode:function(r){var t=new hg;return t.ownerDocument=this,t.appendData(r),t},createComment:function(r){var t=new dg;return t.ownerDocument=this,t.appendData(r),t},createCDATASection:function(r){var t=new pg;return t.ownerDocument=this,t.appendData(r),t},createProcessingInstruction:function(r,t){var e=new gg;return e.ownerDocument=this,e.tagName=e.nodeName=e.target=r,e.nodeValue=e.data=t,e},createAttribute:function(r){var t=new dd;return t.ownerDocument=this,t.name=r,t.nodeName=r,t.localName=r,t.specified=!0,t},createEntityReference:function(r){var t=new mg;return t.ownerDocument=this,t.nodeName=r,t},createElementNS:function(r,t){var e=new Hs,n=t.split(":"),i=e.attributes=new fd;return e.childNodes=new Do,e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.namespaceURI=r,n.length==2?(e.prefix=n[0],e.localName=n[1]):e.localName=t,i._ownerElement=e,e},createAttributeNS:function(r,t){var e=new dd,n=t.split(":");return e.ownerDocument=this,e.nodeName=t,e.name=t,e.namespaceURI=r,e.specified=!0,n.length==2?(e.prefix=n[0],e.localName=n[1]):e.localName=t,e}};Ii(El,Rr);function Hs(){this._nsMap={}}Hs.prototype={nodeType:Ea,hasAttribute:function(r){return this.getAttributeNode(r)!=null},getAttribute:function(r){var t=this.getAttributeNode(r);return t&&t.value||""},getAttributeNode:function(r){return this.attributes.getNamedItem(r)},setAttribute:function(r,t){var e=this.ownerDocument.createAttribute(r);e.value=e.nodeValue=""+t,this.setAttributeNode(e)},removeAttribute:function(r){var t=this.getAttributeNode(r);t&&this.removeAttributeNode(t)},appendChild:function(r){return r.nodeType===So?this.insertBefore(r,null):X$(this,r)},setAttributeNode:function(r){return this.attributes.setNamedItem(r)},setAttributeNodeNS:function(r){return this.attributes.setNamedItemNS(r)},removeAttributeNode:function(r){return this.attributes.removeNamedItem(r.nodeName)},removeAttributeNS:function(r,t){var e=this.getAttributeNodeNS(r,t);e&&this.removeAttributeNode(e)},hasAttributeNS:function(r,t){return this.getAttributeNodeNS(r,t)!=null},getAttributeNS:function(r,t){var e=this.getAttributeNodeNS(r,t);return e&&e.value||""},setAttributeNS:function(r,t,e){var n=this.ownerDocument.createAttributeNS(r,t);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},getAttributeNodeNS:function(r,t){return this.attributes.getNamedItemNS(r,t)},getElementsByTagName:function(r){return new ec(this,function(t){var e=[];return _l(t,function(n){n!==t&&n.nodeType==Ea&&(r==="*"||n.tagName==r)&&e.push(n)}),e})},getElementsByTagNameNS:function(r,t){return new ec(this,function(e){var n=[];return _l(e,function(i){i!==e&&i.nodeType===Ea&&(r==="*"||i.namespaceURI===r)&&(t==="*"||i.localName==t)&&n.push(i)}),n})}};El.prototype.getElementsByTagName=Hs.prototype.getElementsByTagName;El.prototype.getElementsByTagNameNS=Hs.prototype.getElementsByTagNameNS;Ii(Hs,Rr);function dd(){}dd.prototype.nodeType=Qu;Ii(dd,Rr);function Al(){}Al.prototype={data:"",substringData:function(r,t){return this.data.substring(r,r+t)},appendData:function(r){r=this.data+r,this.nodeValue=this.data=r,this.length=r.length},insertData:function(r,t){this.replaceData(r,0,t)},appendChild:function(r){throw new Error(Ln[Ri])},deleteData:function(r,t){this.replaceData(r,t,"")},replaceData:function(r,t,e){var n=this.data.substring(0,r),i=this.data.substring(r+t);e=n+e+i,this.nodeValue=this.data=e,this.length=e.length}};Ii(Al,Rr);function hg(){}hg.prototype={nodeName:"#text",nodeType:ld,splitText:function(r){var t=this.data,e=t.substring(r);t=t.substring(0,r),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(e);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}};Ii(hg,Al);function dg(){}dg.prototype={nodeName:"#comment",nodeType:C3};Ii(dg,Al);function pg(){}pg.prototype={nodeName:"#cdata-section",nodeType:T3};Ii(pg,Al);function pd(){}pd.prototype.nodeType=I3;Ii(pd,Rr);function H3(){}H3.prototype.nodeType=z$;Ii(H3,Rr);function $3(){}$3.prototype.nodeType=W$;Ii($3,Rr);function mg(){}mg.prototype.nodeType=S3;Ii(mg,Rr);function md(){}md.prototype.nodeName="#document-fragment";md.prototype.nodeType=So;Ii(md,Rr);function gg(){}gg.prototype.nodeType=D3;Ii(gg,Rr);function V3(){}V3.prototype.serializeToString=function(r,t,e){return q3.call(r,t,e)};Rr.prototype.toString=q3;function q3(r,t){var e=[],n=this.nodeType==9&&this.documentElement||this,i=n.prefix,a=n.namespaceURI;if(a&&i==null){var i=n.lookupPrefix(a);if(i==null)var o=[{namespace:a,prefix:null}]}return tc(this,e,r,t,o),e.join("")}function G3(r,t,e){var n=r.prefix||"",i=r.namespaceURI;if(!i||n==="xml"&&i===wl.XML||i===wl.XMLNS)return!1;for(var a=e.length;a--;){var o=e[a];if(o.prefix===n)return o.namespace!==i}return!0}function vg(r,t,e){r.push(" ",t,'="',e.replace(/[<>&"\t\n\r]/g,U3),'"')}function tc(r,t,e,n,i){if(i||(i=[]),n)if(r=n(r),r){if(typeof r=="string"){t.push(r);return}}else return;switch(r.nodeType){case Ea:var a=r.attributes,o=a.length,s=r.firstChild,u=r.tagName;e=wl.isHTML(r.namespaceURI)||e;var c=u;if(!e&&!r.prefix&&r.namespaceURI){for(var l,d=0;d<a.length;d++)if(a.item(d).name==="xmlns"){l=a.item(d).value;break}if(!l)for(var h=i.length-1;h>=0;h--){var f=i[h];if(f.prefix===""&&f.namespace===r.namespaceURI){l=f.namespace;break}}if(l!==r.namespaceURI)for(var h=i.length-1;h>=0;h--){var f=i[h];if(f.namespace===r.namespaceURI){f.prefix&&(c=f.prefix+":"+u);break}}}t.push("<",c);for(var g=0;g<o;g++){var m=a.item(g);m.prefix=="xmlns"?i.push({prefix:m.localName,namespace:m.value}):m.nodeName=="xmlns"&&i.push({prefix:"",namespace:m.value})}for(var g=0;g<o;g++){var m=a.item(g);if(G3(m,e,i)){var p=m.prefix||"",y=m.namespaceURI;vg(t,p?"xmlns:"+p:"xmlns",y),i.push({prefix:p,namespace:y})}tc(m,t,e,n,i)}if(u===c&&G3(r,e,i)){var p=r.prefix||"",y=r.namespaceURI;vg(t,p?"xmlns:"+p:"xmlns",y),i.push({prefix:p,namespace:y})}if(s||e&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){if(t.push(">"),e&&/^script$/i.test(u))for(;s;)s.data?t.push(s.data):tc(s,t,e,n,i.slice()),s=s.nextSibling;else for(;s;)tc(s,t,e,n,i.slice()),s=s.nextSibling;t.push("</",c,">")}else t.push("/>");return;case O3:case So:for(var s=r.firstChild;s;)tc(s,t,e,n,i.slice()),s=s.nextSibling;return;case Qu:return vg(t,r.name,r.value);case ld:return t.push(r.data.replace(/[<&>]/g,U3));case T3:return t.push("<![CDATA[",r.data,"]]>");case C3:return t.push("<!--",r.data,"-->");case I3:var v=r.publicId,b=r.systemId;if(t.push("<!DOCTYPE ",r.name),v)t.push(" PUBLIC ",v),b&&b!="."&&t.push(" ",b),t.push(">");else if(b&&b!=".")t.push(" SYSTEM ",b,">");else{var A=r.internalSubset;A&&t.push(" [",A,"]"),t.push(">")}return;case D3:return t.push("<?",r.target," ",r.data,"?>");case S3:return t.push("&",r.nodeName,";");default:t.push("??",r.nodeName)}}function X3(r,t,e){var n;switch(t.nodeType){case Ea:n=t.cloneNode(!1),n.ownerDocument=r;case So:break;case Qu:e=!0;break}if(n||(n=t.cloneNode(!1)),n.ownerDocument=r,n.parentNode=null,e)for(var i=t.firstChild;i;)n.appendChild(X3(r,i,e)),i=i.nextSibling;return n}function yg(r,t,e){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=t[i];typeof a!="object"&&a!=n[i]&&(n[i]=a)}switch(t.childNodes&&(n.childNodes=new Do),n.ownerDocument=r,n.nodeType){case Ea:var o=t.attributes,s=n.attributes=new fd,u=o.length;s._ownerElement=n;for(var c=0;c<u;c++)n.setAttributeNode(yg(r,o.item(c),!0));break;case Qu:e=!0}if(e)for(var l=t.firstChild;l;)n.appendChild(yg(r,l,e)),l=l.nextSibling;return n}function K3(r,t,e){r[t]=e}try{if(Object.defineProperty){let r=function(t){switch(t.nodeType){case Ea:case So:var e=[];for(t=t.firstChild;t;)t.nodeType!==7&&t.nodeType!==8&&e.push(r(t)),t=t.nextSibling;return e.join("");default:return t.nodeValue}};Object.defineProperty(ec.prototype,"length",{get:function(){return cg(this),this.$$length}}),Object.defineProperty(Rr.prototype,"textContent",{get:function(){return r(this)},set:function(t){switch(this.nodeType){case Ea:case So:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),K3=function(t,e,n){t["$$"+e]=n}}}catch{}Za.DocumentType=pd;Za.DOMException=dn;Za.DOMImplementation=B3;Za.Element=Hs;Za.Node=Rr;Za.NodeList=Do;Za.XMLSerializer=V3;var gd={},Z3={};(function(r){var t=To.freeze;r.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),r.HTML_ENTITIES=t({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}),r.entityMap=r.HTML_ENTITIES})(Z3);var bg={},Tl=To.NAMESPACE,wg=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Y3=new RegExp("[\\-\\.0-9"+wg.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),J3=new RegExp("^"+wg.source+Y3.source+"*(?::"+wg.source+Y3.source+"*)?$"),Sl=0,ss=1,rc=2,Dl=3,nc=4,ic=5,Cl=6,vd=7;function ac(r,t){this.message=r,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,ac)}ac.prototype=new Error;ac.prototype.name=ac.name;function Q3(){}Q3.prototype={parse:function(r,t,e){var n=this.domBuilder;n.startDocument(),r8(t,t={}),K$(r,t,e,n,this.errorHandler),n.endDocument()}};function K$(r,t,e,n,i){function a(x){if(x>65535){x-=65536;var w=55296+(x>>10),_=56320+(x&1023);return String.fromCharCode(w,_)}else return String.fromCharCode(x)}function o(x){var w=x.slice(1,-1);return Object.hasOwnProperty.call(e,w)?e[w]:w.charAt(0)==="#"?a(parseInt(w.substr(1).replace("x","0x"))):(i.error("entity not found:"+x),x)}function s(x){if(x>m){var w=r.substring(m,x).replace(/&#?\w+;/g,o);h&&u(m),n.characters(w,0,x-m),m=x}}function u(x,w){for(;x>=l&&(w=d.exec(r));)c=w.index,l=c+w[0].length,h.lineNumber++;h.columnNumber=x-c+1}for(var c=0,l=0,d=/.*(?:\r\n?|\n)|.*$/g,h=n.locator,f=[{currentNSMap:t}],g={},m=0;;){try{var p=r.indexOf("<",m);if(p<0){if(!r.substr(m).match(/^\s*$/)){var y=n.doc,v=y.createTextNode(r.substr(m));y.appendChild(v),n.currentElement=v}return}switch(p>m&&s(p),r.charAt(p+1)){case"/":var b=r.indexOf(">",p+3),A=r.substring(p+2,b).replace(/[ \t\n\r]+$/g,""),C=f.pop();b<0?(A=r.substring(p+2).replace(/[\s<].*/,""),i.error("end tag name: "+A+" is not complete:"+C.tagName),b=p+1+A.length):A.match(/\s</)&&(A=A.replace(/[\s<].*/,""),i.error("end tag name: "+A+" maybe not complete"),b=p+1+A.length);var M=C.localNSMap,z=C.tagName==A,W=z||C.tagName&&C.tagName.toLowerCase()==A.toLowerCase();if(W){if(n.endElement(C.uri,C.localName,A),M)for(var U in M)Object.prototype.hasOwnProperty.call(M,U)&&n.endPrefixMapping(U);z||i.fatalError("end tag name: "+A+" is not match the current start tagName:"+C.tagName)}else f.push(C);b++;break;case"?":h&&u(p),b=eV(r,p,n);break;case"!":h&&u(p),b=Q$(r,p,n,i);break;default:h&&u(p);var G=new n8,ee=f[f.length-1].currentNSMap,b=Z$(r,p,G,ee,o,i),I=G.length;if(!G.closed&&J$(r,b,G.tagName,g)&&(G.closed=!0,e.nbsp||i.warning("unclosed xml attribute")),h&&I){for(var O=e8(h,{}),T=0;T<I;T++){var S=G[T];u(S.offset),S.locator=e8(h,{})}n.locator=O,t8(G,n,ee)&&f.push(G),n.locator=h}else t8(G,n,ee)&&f.push(G);Tl.isHTML(G.uri)&&!G.closed?b=Y$(r,b,G.tagName,o,n):b++}}catch(x){if(x instanceof ac)throw x;i.error("element parse error: "+x),b=-1}b>m?m=b:s(Math.max(p,m)+1)}}function e8(r,t){return t.lineNumber=r.lineNumber,t.columnNumber=r.columnNumber,t}function Z$(r,t,e,n,i,a){function o(h,f,g){e.attributeNames.hasOwnProperty(h)&&a.fatalError("Attribute "+h+" redefined"),e.addValue(h,f.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,i),g)}for(var s,u,c=++t,l=Sl;;){var d=r.charAt(c);switch(d){case"=":if(l===ss)s=r.slice(t,c),l=Dl;else if(l===rc)l=Dl;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(l===Dl||l===ss)if(l===ss&&(a.warning('attribute value must after "="'),s=r.slice(t,c)),t=c+1,c=r.indexOf(d,t),c>0)u=r.slice(t,c),o(s,u,t-1),l=ic;else throw new Error("attribute value no end '"+d+"' match");else if(l==nc)u=r.slice(t,c),o(s,u,t),a.warning('attribute "'+s+'" missed start quot('+d+")!!"),t=c+1,l=ic;else throw new Error('attribute value must after "="');break;case"/":switch(l){case Sl:e.setTagName(r.slice(t,c));case ic:case Cl:case vd:l=vd,e.closed=!0;case nc:case ss:break;case rc:e.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),l==Sl&&e.setTagName(r.slice(t,c)),c;case">":switch(l){case Sl:e.setTagName(r.slice(t,c));case ic:case Cl:case vd:break;case nc:case ss:u=r.slice(t,c),u.slice(-1)==="/"&&(e.closed=!0,u=u.slice(0,-1));case rc:l===rc&&(u=s),l==nc?(a.warning('attribute "'+u+'" missed quot(")!'),o(s,u,t)):((!Tl.isHTML(n[""])||!u.match(/^(?:disabled|checked|selected)$/i))&&a.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),o(u,u,t));break;case Dl:throw new Error("attribute value missed!!")}return c;case"\x80":d=" ";default:if(d<=" ")switch(l){case Sl:e.setTagName(r.slice(t,c)),l=Cl;break;case ss:s=r.slice(t,c),l=rc;break;case nc:var u=r.slice(t,c);a.warning('attribute "'+u+'" missed quot(")!!'),o(s,u,t);case ic:l=Cl;break}else switch(l){case rc:e.tagName,(!Tl.isHTML(n[""])||!s.match(/^(?:disabled|checked|selected)$/i))&&a.warning('attribute "'+s+'" missed value!! "'+s+'" instead2!!'),o(s,s,t),t=c,l=ss;break;case ic:a.warning('attribute space is required"'+s+'"!!');case Cl:l=ss,t=c;break;case Dl:l=nc,t=c;break;case vd:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function t8(r,t,e){for(var n=r.tagName,i=null,a=r.length;a--;){var o=r[a],s=o.qName,u=o.value,h=s.indexOf(":");if(h>0)var c=o.prefix=s.slice(0,h),l=s.slice(h+1),d=c==="xmlns"&&l;else l=s,c=null,d=s==="xmlns"&&"";o.localName=l,d!==!1&&(i==null&&(i={},r8(e,e={})),e[d]=i[d]=u,o.uri=Tl.XMLNS,t.startPrefixMapping(d,u))}for(var a=r.length;a--;){o=r[a];var c=o.prefix;c&&(c==="xml"&&(o.uri=Tl.XML),c!=="xmlns"&&(o.uri=e[c||""]))}var h=n.indexOf(":");h>0?(c=r.prefix=n.slice(0,h),l=r.localName=n.slice(h+1)):(c=null,l=r.localName=n);var f=r.uri=e[c||""];if(t.startElement(f,l,n,r),r.closed){if(t.endElement(f,l,n),i)for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&t.endPrefixMapping(c)}else return r.currentNSMap=e,r.localNSMap=i,!0}function Y$(r,t,e,n,i){if(/^(?:script|textarea)$/i.test(e)){var a=r.indexOf("</"+e+">",t),o=r.substring(t+1,a);if(/[&<]/.test(o))return/^script$/i.test(e)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,n),i.characters(o,0,o.length),a)}return t+1}function J$(r,t,e,n){var i=n[e];return i==null&&(i=r.lastIndexOf("</"+e+">"),i<t&&(i=r.lastIndexOf("</"+e)),n[e]=i),i<t}function r8(r,t){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}function Q$(r,t,e,n){var i=r.charAt(t+2);switch(i){case"-":if(r.charAt(t+3)==="-"){var a=r.indexOf("-->",t+4);return a>t?(e.comment(r,t+4,a-t-4),a+3):(n.error("Unclosed comment"),-1)}else return-1;default:if(r.substr(t+3,6)=="CDATA["){var a=r.indexOf("]]>",t+9);return e.startCDATA(),e.characters(r,t+9,a-t-9),e.endCDATA(),a+3}var o=tV(r,t),s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var u=o[1][0],c=!1,l=!1;s>3&&(/^public$/i.test(o[2][0])?(c=o[3][0],l=s>4&&o[4][0]):/^system$/i.test(o[2][0])&&(l=o[3][0]));var d=o[s-1];return e.startDTD(u,c,l),e.endDTD(),d.index+d[0].length}}return-1}function eV(r,t,e){var n=r.indexOf("?>",t);if(n){var i=r.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return i?(i[0].length,e.processingInstruction(i[1],i[2]),n+2):-1}return-1}function n8(){this.attributeNames={}}n8.prototype={setTagName:function(r){if(!J3.test(r))throw new Error("invalid tagName:"+r);this.tagName=r},addValue:function(r,t,e){if(!J3.test(r))throw new Error("invalid attribute:"+r);this.attributeNames[r]=this.length,this[this.length++]={qName:r,value:t,offset:e}},length:0,getLocalName:function(r){return this[r].localName},getLocator:function(r){return this[r].locator},getQName:function(r){return this[r].qName},getURI:function(r){return this[r].uri},getValue:function(r){return this[r].value}};function tV(r,t){var e,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=t,i.exec(r);e=i.exec(r);)if(n.push(e),e[1])return n}bg.XMLReader=Q3;bg.ParseError=ac;var rV=To,nV=Za,i8=Z3,a8=bg,iV=nV.DOMImplementation,o8=rV.NAMESPACE,aV=a8.ParseError,oV=a8.XMLReader;function s8(r){return r.replace(/\r[\n\u0085]/g,`
`).replace(/[\r\u0085\u2028]/g,`
`)}function u8(r){this.options=r||{locator:{}}}u8.prototype.parseFromString=function(r,t){var e=this.options,n=new oV,i=e.domBuilder||new Ol,a=e.errorHandler,o=e.locator,s=e.xmlns||{},u=/\/x?html?$/.test(t),c=u?i8.HTML_ENTITIES:i8.XML_ENTITIES;o&&i.setDocumentLocator(o),n.errorHandler=sV(a,i,o),n.domBuilder=e.domBuilder||i,u&&(s[""]=o8.HTML),s.xml=s.xml||o8.XML;var l=e.normalizeLineEndings||s8;return r&&typeof r=="string"?n.parse(l(r),s,c):n.errorHandler.error("invalid doc source"),i.doc};function sV(r,t,e){if(!r){if(t instanceof Ol)return t;r=t}var n={},i=r instanceof Function;e=e||{};function a(o){var s=r[o];!s&&i&&(s=r.length==2?function(u){r(o,u)}:r),n[o]=s&&function(u){s("[xmldom "+o+"] "+u+xg(e))}||function(){}}return a("warning"),a("error"),a("fatalError"),n}function Ol(){this.cdata=!1}function oc(r,t){t.lineNumber=r.lineNumber,t.columnNumber=r.columnNumber}Ol.prototype={startDocument:function(){this.doc=new iV().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(r,t,e,n){var i=this.doc,a=i.createElementNS(r,e||t),o=n.length;yd(this,a),this.currentElement=a,this.locator&&oc(this.locator,a);for(var s=0;s<o;s++){var r=n.getURI(s),u=n.getValue(s),e=n.getQName(s),c=i.createAttributeNS(r,e);this.locator&&oc(n.getLocator(s),c),c.value=c.nodeValue=u,a.setAttributeNode(c)}},endElement:function(r,t,e){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(r,t){},endPrefixMapping:function(r){},processingInstruction:function(r,t){var e=this.doc.createProcessingInstruction(r,t);this.locator&&oc(this.locator,e),yd(this,e)},ignorableWhitespace:function(r,t,e){},characters:function(r,t,e){if(r=c8.apply(this,arguments),r){if(this.cdata)var n=this.doc.createCDATASection(r);else var n=this.doc.createTextNode(r);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(r)&&this.doc.appendChild(n),this.locator&&oc(this.locator,n)}},skippedEntity:function(r){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(r){(this.locator=r)&&(r.lineNumber=0)},comment:function(r,t,e){r=c8.apply(this,arguments);var n=this.doc.createComment(r);this.locator&&oc(this.locator,n),yd(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(r,t,e){var n=this.doc.implementation;if(n&&n.createDocumentType){var i=n.createDocumentType(r,t,e);this.locator&&oc(this.locator,i),yd(this,i),this.doc.doctype=i}},warning:function(r){console.warn("[xmldom warning] "+r,xg(this.locator))},error:function(r){console.error("[xmldom error] "+r,xg(this.locator))},fatalError:function(r){throw new aV(r,this.locator)}};function xg(r){if(r)return`
@`+(r.systemId||"")+"#[line:"+r.lineNumber+",col:"+r.columnNumber+"]"}function c8(r,t,e){return typeof r=="string"?r.substr(t,e):r.length>=t+e||t?new java.lang.String(r,t,e)+"":r}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(r){Ol.prototype[r]=function(){return null}});function yd(r,t){r.currentElement?r.currentElement.appendChild(t):r.doc.appendChild(t)}gd.__DOMHandler=Ol;gd.normalizeLineEndings=s8;gd.DOMParser=u8;var l8=Za;cd.DOMImplementation=l8.DOMImplementation;cd.XMLSerializer=l8.XMLSerializer;cd.DOMParser=gd.DOMParser;var uV=cd,cV=Za;function lV(r){var t=null,e=new uV.DOMParser({errorHandler:function(i,a){t={level:i,message:a}}}),n=e.parseFromString(r);if(t===null)return n;throw new Error(t.level+": "+t.message)}sg.parseFromString=lV;sg.Node=cV.Node;var _g=Un,f8=on.exports,h8=sg,d8=bl,fV=d8.Element;w3.readString=hV;var p8=h8.Node;function hV(r,t){t=t||{};try{var e=h8.parseFromString(r,"text/xml")}catch(o){return _g.reject(o)}if(e.documentElement.tagName==="parsererror")return _g.resolve(new Error(e.documentElement.textContent));function n(o){switch(o.nodeType){case p8.ELEMENT_NODE:return i(o);case p8.TEXT_NODE:return d8.text(o.nodeValue)}}function i(o){var s=a(o),u=[];f8.forEach(o.childNodes,function(l){var d=n(l);d&&u.push(d)});var c={};return f8.forEach(o.attributes,function(l){c[a(l)]=l.value}),new fV(s,c,u)}function a(o){if(o.namespaceURI){var s=t[o.namespaceURI],u;return s?u=s+":":u="{"+o.namespaceURI+"}",u+o.localName}else return o.localName}return _g.resolve(n(e.documentElement))}var m8={},Il={},mi={};(function(){var r,t,e,n,i,a,o,s=[].slice,u={}.hasOwnProperty;r=function(){var c,l,d,h,f,g;if(g=arguments[0],f=2<=arguments.length?s.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(c=0,d=f.length;c<d;c++)if(h=f[c],h!=null)for(l in h)!u.call(h,l)||(g[l]=h[l]);return g},i=function(c){return!!c&&Object.prototype.toString.call(c)==="[object Function]"},a=function(c){var l;return!!c&&((l=typeof c)==="function"||l==="object")},e=function(c){return i(Array.isArray)?Array.isArray(c):Object.prototype.toString.call(c)==="[object Array]"},n=function(c){var l;if(e(c))return!c.length;for(l in c)if(!!u.call(c,l))return!1;return!0},o=function(c){var l,d;return a(c)&&(d=Object.getPrototypeOf(c))&&(l=d.constructor)&&typeof l=="function"&&l instanceof l&&Function.prototype.toString.call(l)===Function.prototype.toString.call(Object)},t=function(c){return i(c.valueOf)?c.valueOf():c},mi.assign=r,mi.isFunction=i,mi.isObject=a,mi.isArray=e,mi.isEmpty=n,mi.isPlainObject=o,mi.getValue=t}).call(ot);var g8={exports:{}},gi={exports:{}},kl={exports:{}},Eg={exports:{}};(function(){Eg.exports=function(){function r(t,e,n){if(this.options=t.options,this.stringify=t.stringify,this.parent=t,e==null)throw new Error("Missing attribute name. "+this.debugInfo(e));if(n==null)throw new Error("Missing attribute value. "+this.debugInfo(e));this.name=this.stringify.attName(e),this.value=this.stringify.attValue(n)}return r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(t){return this.options.writer.set(t).attribute(this)},r.prototype.debugInfo=function(t){return t=t||this.name,t==null?"parent: <"+this.parent.name+">":"attribute: {"+t+"}, parent: <"+this.parent.name+">"},r}()}).call(ot);(function(){var r,t,e,n,i,a,o=function(u,c){for(var l in c)s.call(c,l)&&(u[l]=c[l]);function d(){this.constructor=u}return d.prototype=c.prototype,u.prototype=new d,u.__super__=c.prototype,u},s={}.hasOwnProperty;a=mi,i=a.isObject,n=a.isFunction,e=a.getValue,t=gi.exports,r=Eg.exports,kl.exports=function(u){o(c,u);function c(l,d,h){if(c.__super__.constructor.call(this,l),d==null)throw new Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(d),this.attributes={},h!=null&&this.attribute(h),l.isDocument&&(this.isRoot=!0,this.documentObject=l,l.rootObject=this)}return c.prototype.clone=function(){var l,d,h,f;h=Object.create(this),h.isRoot&&(h.documentObject=null),h.attributes={},f=this.attributes;for(d in f)!s.call(f,d)||(l=f[d],h.attributes[d]=l.clone());return h.children=[],this.children.forEach(function(g){var m;return m=g.clone(),m.parent=h,h.children.push(m)}),h},c.prototype.attribute=function(l,d){var h,f;if(l!=null&&(l=e(l)),i(l))for(h in l)!s.call(l,h)||(f=l[h],this.attribute(h,f));else n(d)&&(d=d.apply()),(!this.options.skipNullAttributes||d!=null)&&(this.attributes[l]=new r(this,l,d));return this},c.prototype.removeAttribute=function(l){var d,h,f;if(l==null)throw new Error("Missing attribute name. "+this.debugInfo());if(l=e(l),Array.isArray(l))for(h=0,f=l.length;h<f;h++)d=l[h],delete this.attributes[d];else delete this.attributes[l];return this},c.prototype.toString=function(l){return this.options.writer.set(l).element(this)},c.prototype.att=function(l,d){return this.attribute(l,d)},c.prototype.a=function(l,d){return this.attribute(l,d)},c}(t)}).call(ot);var Rl={exports:{}};(function(){var r,t=function(n,i){for(var a in i)e.call(i,a)&&(n[a]=i[a]);function o(){this.constructor=n}return o.prototype=i.prototype,n.prototype=new o,n.__super__=i.prototype,n},e={}.hasOwnProperty;r=gi.exports,Rl.exports=function(n){t(i,n);function i(a,o){if(i.__super__.constructor.call(this,a),o==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(o)}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(a){return this.options.writer.set(a).cdata(this)},i}(r)}).call(ot);var Fl={exports:{}};(function(){var r,t=function(n,i){for(var a in i)e.call(i,a)&&(n[a]=i[a]);function o(){this.constructor=n}return o.prototype=i.prototype,n.prototype=new o,n.__super__=i.prototype,n},e={}.hasOwnProperty;r=gi.exports,Fl.exports=function(n){t(i,n);function i(a,o){if(i.__super__.constructor.call(this,a),o==null)throw new Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(o)}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(a){return this.options.writer.set(a).comment(this)},i}(r)}).call(ot);var Nl={exports:{}};(function(){var r,t,e=function(i,a){for(var o in a)n.call(a,o)&&(i[o]=a[o]);function s(){this.constructor=i}return s.prototype=a.prototype,i.prototype=new s,i.__super__=a.prototype,i},n={}.hasOwnProperty;t=mi.isObject,r=gi.exports,Nl.exports=function(i){e(a,i);function a(o,s,u,c){var l;a.__super__.constructor.call(this,o),t(s)&&(l=s,s=l.version,u=l.encoding,c=l.standalone),s||(s="1.0"),this.version=this.stringify.xmlVersion(s),u!=null&&(this.encoding=this.stringify.xmlEncoding(u)),c!=null&&(this.standalone=this.stringify.xmlStandalone(c))}return a.prototype.toString=function(o){return this.options.writer.set(o).declaration(this)},a}(r)}).call(ot);var Ml={exports:{}},Bl={exports:{}};(function(){var r,t=function(n,i){for(var a in i)e.call(i,a)&&(n[a]=i[a]);function o(){this.constructor=n}return o.prototype=i.prototype,n.prototype=new o,n.__super__=i.prototype,n},e={}.hasOwnProperty;r=gi.exports,Bl.exports=function(n){t(i,n);function i(a,o,s,u,c,l){if(i.__super__.constructor.call(this,a),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(s==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(o));if(!u)throw new Error("Missing DTD attribute type. "+this.debugInfo(o));if(!c)throw new Error("Missing DTD attribute default. "+this.debugInfo(o));if(c.indexOf("#")!==0&&(c="#"+c),!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(o));if(l&&!c.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(o));this.elementName=this.stringify.eleName(o),this.attributeName=this.stringify.attName(s),this.attributeType=this.stringify.dtdAttType(u),this.defaultValue=this.stringify.dtdAttDefault(l),this.defaultValueType=c}return i.prototype.toString=function(a){return this.options.writer.set(a).dtdAttList(this)},i}(r)}).call(ot);var Ul={exports:{}};(function(){var r,t,e=function(i,a){for(var o in a)n.call(a,o)&&(i[o]=a[o]);function s(){this.constructor=i}return s.prototype=a.prototype,i.prototype=new s,i.__super__=a.prototype,i},n={}.hasOwnProperty;t=mi.isObject,r=gi.exports,Ul.exports=function(i){e(a,i);function a(o,s,u,c){if(a.__super__.constructor.call(this,o),u==null)throw new Error("Missing DTD entity name. "+this.debugInfo(u));if(c==null)throw new Error("Missing DTD entity value. "+this.debugInfo(u));if(this.pe=!!s,this.name=this.stringify.eleName(u),!t(c))this.value=this.stringify.dtdEntityValue(c);else{if(!c.pubID&&!c.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(u));if(c.pubID&&!c.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(u));if(c.pubID!=null&&(this.pubID=this.stringify.dtdPubID(c.pubID)),c.sysID!=null&&(this.sysID=this.stringify.dtdSysID(c.sysID)),c.nData!=null&&(this.nData=this.stringify.dtdNData(c.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(u))}}return a.prototype.toString=function(o){return this.options.writer.set(o).dtdEntity(this)},a}(r)}).call(ot);var Pl={exports:{}};(function(){var r,t=function(n,i){for(var a in i)e.call(i,a)&&(n[a]=i[a]);function o(){this.constructor=n}return o.prototype=i.prototype,n.prototype=new o,n.__super__=i.prototype,n},e={}.hasOwnProperty;r=gi.exports,Pl.exports=function(n){t(i,n);function i(a,o,s){if(i.__super__.constructor.call(this,a),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());s||(s="(#PCDATA)"),Array.isArray(s)&&(s="("+s.join(",")+")"),this.name=this.stringify.eleName(o),this.value=this.stringify.dtdElementValue(s)}return i.prototype.toString=function(a){return this.options.writer.set(a).dtdElement(this)},i}(r)}).call(ot);var Ll={exports:{}};(function(){var r,t=function(n,i){for(var a in i)e.call(i,a)&&(n[a]=i[a]);function o(){this.constructor=n}return o.prototype=i.prototype,n.prototype=new o,n.__super__=i.prototype,n},e={}.hasOwnProperty;r=gi.exports,Ll.exports=function(n){t(i,n);function i(a,o,s){if(i.__super__.constructor.call(this,a),o==null)throw new Error("Missing DTD notation name. "+this.debugInfo(o));if(!s.pubID&&!s.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(o));this.name=this.stringify.eleName(o),s.pubID!=null&&(this.pubID=this.stringify.dtdPubID(s.pubID)),s.sysID!=null&&(this.sysID=this.stringify.dtdSysID(s.sysID))}return i.prototype.toString=function(a){return this.options.writer.set(a).dtdNotation(this)},i}(r)}).call(ot);(function(){var r,t,e,n,i,a,o=function(u,c){for(var l in c)s.call(c,l)&&(u[l]=c[l]);function d(){this.constructor=u}return d.prototype=c.prototype,u.prototype=new d,u.__super__=c.prototype,u},s={}.hasOwnProperty;a=mi.isObject,i=gi.exports,r=Bl.exports,e=Ul.exports,t=Pl.exports,n=Ll.exports,Ml.exports=function(u){o(c,u);function c(l,d,h){var f,g;c.__super__.constructor.call(this,l),this.name="!DOCTYPE",this.documentObject=l,a(d)&&(f=d,d=f.pubID,h=f.sysID),h==null&&(g=[d,h],h=g[0],d=g[1]),d!=null&&(this.pubID=this.stringify.dtdPubID(d)),h!=null&&(this.sysID=this.stringify.dtdSysID(h))}return c.prototype.element=function(l,d){var h;return h=new t(this,l,d),this.children.push(h),this},c.prototype.attList=function(l,d,h,f,g){var m;return m=new r(this,l,d,h,f,g),this.children.push(m),this},c.prototype.entity=function(l,d){var h;return h=new e(this,!1,l,d),this.children.push(h),this},c.prototype.pEntity=function(l,d){var h;return h=new e(this,!0,l,d),this.children.push(h),this},c.prototype.notation=function(l,d){var h;return h=new n(this,l,d),this.children.push(h),this},c.prototype.toString=function(l){return this.options.writer.set(l).docType(this)},c.prototype.ele=function(l,d){return this.element(l,d)},c.prototype.att=function(l,d,h,f,g){return this.attList(l,d,h,f,g)},c.prototype.ent=function(l,d){return this.entity(l,d)},c.prototype.pent=function(l,d){return this.pEntity(l,d)},c.prototype.not=function(l,d){return this.notation(l,d)},c.prototype.up=function(){return this.root()||this.documentObject},c}(i)}).call(ot);var jl={exports:{}};(function(){var r,t=function(n,i){for(var a in i)e.call(i,a)&&(n[a]=i[a]);function o(){this.constructor=n}return o.prototype=i.prototype,n.prototype=new o,n.__super__=i.prototype,n},e={}.hasOwnProperty;r=gi.exports,jl.exports=function(n){t(i,n);function i(a,o){if(i.__super__.constructor.call(this,a),o==null)throw new Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(o)}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(a){return this.options.writer.set(a).raw(this)},i}(r)}).call(ot);var Wl={exports:{}};(function(){var r,t=function(n,i){for(var a in i)e.call(i,a)&&(n[a]=i[a]);function o(){this.constructor=n}return o.prototype=i.prototype,n.prototype=new o,n.__super__=i.prototype,n},e={}.hasOwnProperty;r=gi.exports,Wl.exports=function(n){t(i,n);function i(a,o){if(i.__super__.constructor.call(this,a),o==null)throw new Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(o)}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(a){return this.options.writer.set(a).text(this)},i}(r)}).call(ot);var zl={exports:{}};(function(){var r,t=function(n,i){for(var a in i)e.call(i,a)&&(n[a]=i[a]);function o(){this.constructor=n}return o.prototype=i.prototype,n.prototype=new o,n.__super__=i.prototype,n},e={}.hasOwnProperty;r=gi.exports,zl.exports=function(n){t(i,n);function i(a,o,s){if(i.__super__.constructor.call(this,a),o==null)throw new Error("Missing instruction target. "+this.debugInfo());this.target=this.stringify.insTarget(o),s&&(this.value=this.stringify.insValue(s))}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(a){return this.options.writer.set(a).processingInstruction(this)},i}(r)}).call(ot);var bd={exports:{}};(function(){var r,t=function(n,i){for(var a in i)e.call(i,a)&&(n[a]=i[a]);function o(){this.constructor=n}return o.prototype=i.prototype,n.prototype=new o,n.__super__=i.prototype,n},e={}.hasOwnProperty;r=gi.exports,bd.exports=function(n){t(i,n);function i(a){i.__super__.constructor.call(this,a),this.isDummy=!0}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(a){return""},i}(r)}).call(ot);(function(){var r,t,e,n,i,a,o,s,u,c,l,d,h,f,g={}.hasOwnProperty;f=mi,h=f.isObject,d=f.isFunction,l=f.isEmpty,c=f.getValue,a=null,r=null,t=null,e=null,n=null,s=null,u=null,o=null,i=null,gi.exports=function(){function m(p){this.parent=p,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],a||(a=kl.exports,r=Rl.exports,t=Fl.exports,e=Nl.exports,n=Ml.exports,s=jl.exports,u=Wl.exports,o=zl.exports,i=bd.exports)}return m.prototype.element=function(p,y,v){var b,A,C,M,z,W,U,G,ee,I,O;if(W=null,y===null&&v==null&&(ee=[{},null],y=ee[0],v=ee[1]),y==null&&(y={}),y=c(y),h(y)||(I=[y,v],v=I[0],y=I[1]),p!=null&&(p=c(p)),Array.isArray(p))for(C=0,U=p.length;C<U;C++)A=p[C],W=this.element(A);else if(d(p))W=this.element(p.apply());else if(h(p)){for(z in p)if(!!g.call(p,z))if(O=p[z],d(O)&&(O=O.apply()),h(O)&&l(O)&&(O=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&z.indexOf(this.stringify.convertAttKey)===0)W=this.attribute(z.substr(this.stringify.convertAttKey.length),O);else if(!this.options.separateArrayItems&&Array.isArray(O))for(M=0,G=O.length;M<G;M++)A=O[M],b={},b[z]=A,W=this.element(b);else h(O)?(W=this.element(z),W.element(O)):W=this.element(z,O)}else this.options.skipNullNodes&&v===null?W=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&p.indexOf(this.stringify.convertTextKey)===0?W=this.text(v):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&p.indexOf(this.stringify.convertCDataKey)===0?W=this.cdata(v):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&p.indexOf(this.stringify.convertCommentKey)===0?W=this.comment(v):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&p.indexOf(this.stringify.convertRawKey)===0?W=this.raw(v):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&p.indexOf(this.stringify.convertPIKey)===0?W=this.instruction(p.substr(this.stringify.convertPIKey.length),v):W=this.node(p,y,v);if(W==null)throw new Error("Could not create any elements with: "+p+". "+this.debugInfo());return W},m.prototype.insertBefore=function(p,y,v){var b,A,C;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(p));return A=this.parent.children.indexOf(this),C=this.parent.children.splice(A),b=this.parent.element(p,y,v),Array.prototype.push.apply(this.parent.children,C),b},m.prototype.insertAfter=function(p,y,v){var b,A,C;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(p));return A=this.parent.children.indexOf(this),C=this.parent.children.splice(A+1),b=this.parent.element(p,y,v),Array.prototype.push.apply(this.parent.children,C),b},m.prototype.remove=function(){var p;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return p=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[p,p-p+1].concat([])),this.parent},m.prototype.node=function(p,y,v){var b,A;return p!=null&&(p=c(p)),y||(y={}),y=c(y),h(y)||(A=[y,v],v=A[0],y=A[1]),b=new a(this,p,y),v!=null&&b.text(v),this.children.push(b),b},m.prototype.text=function(p){var y;return y=new u(this,p),this.children.push(y),this},m.prototype.cdata=function(p){var y;return y=new r(this,p),this.children.push(y),this},m.prototype.comment=function(p){var y;return y=new t(this,p),this.children.push(y),this},m.prototype.commentBefore=function(p){var y,v;return y=this.parent.children.indexOf(this),v=this.parent.children.splice(y),this.parent.comment(p),Array.prototype.push.apply(this.parent.children,v),this},m.prototype.commentAfter=function(p){var y,v;return y=this.parent.children.indexOf(this),v=this.parent.children.splice(y+1),this.parent.comment(p),Array.prototype.push.apply(this.parent.children,v),this},m.prototype.raw=function(p){var y;return y=new s(this,p),this.children.push(y),this},m.prototype.dummy=function(){var p;return p=new i(this),this.children.push(p),p},m.prototype.instruction=function(p,y){var v,b,A,C,M;if(p!=null&&(p=c(p)),y!=null&&(y=c(y)),Array.isArray(p))for(C=0,M=p.length;C<M;C++)v=p[C],this.instruction(v);else if(h(p))for(v in p)!g.call(p,v)||(b=p[v],this.instruction(v,b));else d(y)&&(y=y.apply()),A=new o(this,p,y),this.children.push(A);return this},m.prototype.instructionBefore=function(p,y){var v,b;return v=this.parent.children.indexOf(this),b=this.parent.children.splice(v),this.parent.instruction(p,y),Array.prototype.push.apply(this.parent.children,b),this},m.prototype.instructionAfter=function(p,y){var v,b;return v=this.parent.children.indexOf(this),b=this.parent.children.splice(v+1),this.parent.instruction(p,y),Array.prototype.push.apply(this.parent.children,b),this},m.prototype.declaration=function(p,y,v){var b,A;return b=this.document(),A=new e(b,p,y,v),b.children[0]instanceof e?b.children[0]=A:b.children.unshift(A),b.root()||b},m.prototype.doctype=function(p,y){var v,b,A,C,M,z,W,U,G,ee;for(b=this.document(),A=new n(b,p,y),G=b.children,C=M=0,W=G.length;M<W;C=++M)if(v=G[C],v instanceof n)return b.children[C]=A,A;for(ee=b.children,C=z=0,U=ee.length;z<U;C=++z)if(v=ee[C],v.isRoot)return b.children.splice(C,0,A),A;return b.children.push(A),A},m.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},m.prototype.root=function(){var p;for(p=this;p;){if(p.isDocument)return p.rootObject;if(p.isRoot)return p;p=p.parent}},m.prototype.document=function(){var p;for(p=this;p;){if(p.isDocument)return p;p=p.parent}},m.prototype.end=function(p){return this.document().end(p)},m.prototype.prev=function(){var p;for(p=this.parent.children.indexOf(this);p>0&&this.parent.children[p-1].isDummy;)p=p-1;if(p<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[p-1]},m.prototype.next=function(){var p;for(p=this.parent.children.indexOf(this);p<this.parent.children.length-1&&this.parent.children[p+1].isDummy;)p=p+1;if(p===-1||p===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[p+1]},m.prototype.importDocument=function(p){var y;return y=p.root().clone(),y.parent=this,y.isRoot=!1,this.children.push(y),this},m.prototype.debugInfo=function(p){var y,v;return p=p||this.name,p==null&&!((y=this.parent)!=null?y.name:void 0)?"":p==null?"parent: <"+this.parent.name+">":((v=this.parent)!=null?v.name:void 0)?"node: <"+p+">, parent: <"+this.parent.name+">":"node: <"+p+">"},m.prototype.ele=function(p,y,v){return this.element(p,y,v)},m.prototype.nod=function(p,y,v){return this.node(p,y,v)},m.prototype.txt=function(p){return this.text(p)},m.prototype.dat=function(p){return this.cdata(p)},m.prototype.com=function(p){return this.comment(p)},m.prototype.ins=function(p,y){return this.instruction(p,y)},m.prototype.doc=function(){return this.document()},m.prototype.dec=function(p,y,v){return this.declaration(p,y,v)},m.prototype.dtd=function(p,y){return this.doctype(p,y)},m.prototype.e=function(p,y,v){return this.element(p,y,v)},m.prototype.n=function(p,y,v){return this.node(p,y,v)},m.prototype.t=function(p){return this.text(p)},m.prototype.d=function(p){return this.cdata(p)},m.prototype.c=function(p){return this.comment(p)},m.prototype.r=function(p){return this.raw(p)},m.prototype.i=function(p,y){return this.instruction(p,y)},m.prototype.u=function(){return this.up()},m.prototype.importXMLBuilder=function(p){return this.importDocument(p)},m}()}).call(ot);var Ag={exports:{}};(function(){var r=function(e,n){return function(){return e.apply(n,arguments)}},t={}.hasOwnProperty;Ag.exports=function(){function e(n){this.assertLegalChar=r(this.assertLegalChar,this);var i,a,o;n||(n={}),this.noDoubleEncoding=n.noDoubleEncoding,a=n.stringify||{};for(i in a)!t.call(a,i)||(o=a[i],this[i]=o)}return e.prototype.eleName=function(n){return n=""+n||"",this.assertLegalChar(n)},e.prototype.eleText=function(n){return n=""+n||"",this.assertLegalChar(this.elEscape(n))},e.prototype.cdata=function(n){return n=""+n||"",n=n.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(n)},e.prototype.comment=function(n){if(n=""+n||"",n.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+n);return this.assertLegalChar(n)},e.prototype.raw=function(n){return""+n||""},e.prototype.attName=function(n){return n=""+n||""},e.prototype.attValue=function(n){return n=""+n||"",this.attEscape(n)},e.prototype.insTarget=function(n){return""+n||""},e.prototype.insValue=function(n){if(n=""+n||"",n.match(/\?>/))throw new Error("Invalid processing instruction value: "+n);return n},e.prototype.xmlVersion=function(n){if(n=""+n||"",!n.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+n);return n},e.prototype.xmlEncoding=function(n){if(n=""+n||"",!n.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+n);return n},e.prototype.xmlStandalone=function(n){return n?"yes":"no"},e.prototype.dtdPubID=function(n){return""+n||""},e.prototype.dtdSysID=function(n){return""+n||""},e.prototype.dtdElementValue=function(n){return""+n||""},e.prototype.dtdAttType=function(n){return""+n||""},e.prototype.dtdAttDefault=function(n){return n!=null?""+n||"":n},e.prototype.dtdEntityValue=function(n){return""+n||""},e.prototype.dtdNData=function(n){return""+n||""},e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e.prototype.assertLegalChar=function(n){var i;if(i=n.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),i)throw new Error("Invalid character in string: "+n+" at index "+i.index);return n},e.prototype.elEscape=function(n){var i;return i=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,n.replace(i,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")},e.prototype.attEscape=function(n){var i;return i=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,n.replace(i,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")},e}()}).call(ot);var wd={exports:{}},Tg={exports:{}};(function(){var r={}.hasOwnProperty;Tg.exports=function(){function t(e){var n,i,a,o,s,u,c,l,d;e||(e={}),this.pretty=e.pretty||!1,this.allowEmpty=(i=e.allowEmpty)!=null?i:!1,this.pretty?(this.indent=(a=e.indent)!=null?a:" ",this.newline=(o=e.newline)!=null?o:`
`,this.offset=(s=e.offset)!=null?s:0,this.dontprettytextnodes=(u=e.dontprettytextnodes)!=null?u:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(c=e.spacebeforeslash)!=null?c:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,l=e.writer||{};for(n in l)!r.call(l,n)||(d=l[n],this[n]=d)}return t.prototype.set=function(e){var n,i,a;e||(e={}),"pretty"in e&&(this.pretty=e.pretty),"allowEmpty"in e&&(this.allowEmpty=e.allowEmpty),this.pretty?(this.indent="indent"in e?e.indent:" ",this.newline="newline"in e?e.newline:`
`,this.offset="offset"in e?e.offset:0,this.dontprettytextnodes="dontprettytextnodes"in e?e.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in e?e.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,i=e.writer||{};for(n in i)!r.call(i,n)||(a=i[n],this[n]=a);return this},t.prototype.space=function(e){var n;return this.pretty?(n=(e||0)+this.offset+1,n>0?new Array(n).join(this.indent):""):""},t}()}).call(ot);(function(){var r,t,e,n,i,a,o,s,u,c,l,d,h,f,g=function(p,y){for(var v in y)m.call(y,v)&&(p[v]=y[v]);function b(){this.constructor=p}return b.prototype=y.prototype,p.prototype=new b,p.__super__=y.prototype,p},m={}.hasOwnProperty;o=Nl.exports,s=Ml.exports,r=Rl.exports,t=Fl.exports,c=kl.exports,d=jl.exports,h=Wl.exports,l=zl.exports,u=bd.exports,e=Bl.exports,n=Pl.exports,i=Ul.exports,a=Ll.exports,f=Tg.exports,wd.exports=function(p){g(y,p);function y(v){y.__super__.constructor.call(this,v)}return y.prototype.document=function(v){var b,A,C,M,z;for(this.textispresent=!1,M="",z=v.children,A=0,C=z.length;A<C;A++)b=z[A],!(b instanceof u)&&(M+=function(){switch(!1){case!(b instanceof o):return this.declaration(b);case!(b instanceof s):return this.docType(b);case!(b instanceof t):return this.comment(b);case!(b instanceof l):return this.processingInstruction(b);default:return this.element(b,0)}}.call(this));return this.pretty&&M.slice(-this.newline.length)===this.newline&&(M=M.slice(0,-this.newline.length)),M},y.prototype.attribute=function(v){return" "+v.name+'="'+v.value+'"'},y.prototype.cdata=function(v,b){return this.space(b)+"<![CDATA["+v.text+"]]>"+this.newline},y.prototype.comment=function(v,b){return this.space(b)+"<!-- "+v.text+" -->"+this.newline},y.prototype.declaration=function(v,b){var A;return A=this.space(b),A+='<?xml version="'+v.version+'"',v.encoding!=null&&(A+=' encoding="'+v.encoding+'"'),v.standalone!=null&&(A+=' standalone="'+v.standalone+'"'),A+=this.spacebeforeslash+"?>",A+=this.newline,A},y.prototype.docType=function(v,b){var A,C,M,z,W;if(b||(b=0),z=this.space(b),z+="<!DOCTYPE "+v.root().name,v.pubID&&v.sysID?z+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(z+=' SYSTEM "'+v.sysID+'"'),v.children.length>0){for(z+=" [",z+=this.newline,W=v.children,C=0,M=W.length;C<M;C++)A=W[C],z+=function(){switch(!1){case!(A instanceof e):return this.dtdAttList(A,b+1);case!(A instanceof n):return this.dtdElement(A,b+1);case!(A instanceof i):return this.dtdEntity(A,b+1);case!(A instanceof a):return this.dtdNotation(A,b+1);case!(A instanceof r):return this.cdata(A,b+1);case!(A instanceof t):return this.comment(A,b+1);case!(A instanceof l):return this.processingInstruction(A,b+1);default:throw new Error("Unknown DTD node type: "+A.constructor.name)}}.call(this);z+="]"}return z+=this.spacebeforeslash+">",z+=this.newline,z},y.prototype.element=function(v,b){var A,C,M,z,W,U,G,ee,I,O,T,S,x;b||(b=0),x=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),S=this.space(b),ee="",ee+=S+"<"+v.name,I=v.attributes;for(G in I)!m.call(I,G)||(A=I[G],ee+=this.attribute(A));if(v.children.length===0||v.children.every(function(w){return w.value===""}))this.allowEmpty?ee+="></"+v.name+">"+this.newline:ee+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&v.children.length===1&&v.children[0].value!=null)ee+=">",ee+=v.children[0].value,ee+="</"+v.name+">"+this.newline;else{if(this.dontprettytextnodes){for(O=v.children,M=0,W=O.length;M<W;M++)if(C=O[M],C.value!=null){this.textispresent++,x=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,S=this.space(b)),ee+=">"+this.newline,T=v.children,z=0,U=T.length;z<U;z++)C=T[z],ee+=function(){switch(!1){case!(C instanceof r):return this.cdata(C,b+1);case!(C instanceof t):return this.comment(C,b+1);case!(C instanceof c):return this.element(C,b+1);case!(C instanceof d):return this.raw(C,b+1);case!(C instanceof h):return this.text(C,b+1);case!(C instanceof l):return this.processingInstruction(C,b+1);case!(C instanceof u):return"";default:throw new Error("Unknown XML node type: "+C.constructor.name)}}.call(this);x&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),ee+=S+"</"+v.name+">"+this.newline}return ee},y.prototype.processingInstruction=function(v,b){var A;return A=this.space(b)+"<?"+v.target,v.value&&(A+=" "+v.value),A+=this.spacebeforeslash+"?>"+this.newline,A},y.prototype.raw=function(v,b){return this.space(b)+v.value+this.newline},y.prototype.text=function(v,b){return this.space(b)+v.value+this.newline},y.prototype.dtdAttList=function(v,b){var A;return A=this.space(b)+"<!ATTLIST "+v.elementName+" "+v.attributeName+" "+v.attributeType,v.defaultValueType!=="#DEFAULT"&&(A+=" "+v.defaultValueType),v.defaultValue&&(A+=' "'+v.defaultValue+'"'),A+=this.spacebeforeslash+">"+this.newline,A},y.prototype.dtdElement=function(v,b){return this.space(b)+"<!ELEMENT "+v.name+" "+v.value+this.spacebeforeslash+">"+this.newline},y.prototype.dtdEntity=function(v,b){var A;return A=this.space(b)+"<!ENTITY",v.pe&&(A+=" %"),A+=" "+v.name,v.value?A+=' "'+v.value+'"':(v.pubID&&v.sysID?A+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(A+=' SYSTEM "'+v.sysID+'"'),v.nData&&(A+=" NDATA "+v.nData)),A+=this.spacebeforeslash+">"+this.newline,A},y.prototype.dtdNotation=function(v,b){var A;return A=this.space(b)+"<!NOTATION "+v.name,v.pubID&&v.sysID?A+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.pubID?A+=' PUBLIC "'+v.pubID+'"':v.sysID&&(A+=' SYSTEM "'+v.sysID+'"'),A+=this.spacebeforeslash+">"+this.newline,A},y.prototype.openNode=function(v,b){var A,C,M,z;if(b||(b=0),v instanceof c){M=this.space(b)+"<"+v.name,z=v.attributes;for(C in z)!m.call(z,C)||(A=z[C],M+=this.attribute(A));return M+=(v.children?">":"/>")+this.newline,M}else return M=this.space(b)+"<!DOCTYPE "+v.rootNodeName,v.pubID&&v.sysID?M+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(M+=' SYSTEM "'+v.sysID+'"'),M+=(v.children?" [":">")+this.newline,M},y.prototype.closeNode=function(v,b){switch(b||(b=0),!1){case!(v instanceof c):return this.space(b)+"</"+v.name+">"+this.newline;case!(v instanceof s):return this.space(b)+"]>"+this.newline}},y}(f)}).call(ot);(function(){var r,t,e,n,i=function(o,s){for(var u in s)a.call(s,u)&&(o[u]=s[u]);function c(){this.constructor=o}return c.prototype=s.prototype,o.prototype=new c,o.__super__=s.prototype,o},a={}.hasOwnProperty;n=mi.isPlainObject,r=gi.exports,e=Ag.exports,t=wd.exports,g8.exports=function(o){i(s,o);function s(u){s.__super__.constructor.call(this,null),this.name="?xml",u||(u={}),u.writer||(u.writer=new t),this.options=u,this.stringify=new e(u),this.isDocument=!0}return s.prototype.end=function(u){var c;return u?n(u)&&(c=u,u=this.options.writer.set(c)):u=this.options.writer,u.document(this)},s.prototype.toString=function(u){return this.options.writer.set(u).document(this)},s}(r)}).call(ot);var v8={exports:{}};(function(){var r,t,e,n,i,a,o,s,u,c,l,d,h,f,g,m,p,y,v,b,A={}.hasOwnProperty;b=mi,y=b.isObject,p=b.isFunction,v=b.isPlainObject,m=b.getValue,c=kl.exports,t=Rl.exports,e=Fl.exports,d=jl.exports,g=Wl.exports,l=zl.exports,s=Nl.exports,u=Ml.exports,n=Bl.exports,a=Ul.exports,i=Pl.exports,o=Ll.exports,r=Eg.exports,f=Ag.exports,h=wd.exports,v8.exports=function(){function C(M,z,W){var U;this.name="?xml",M||(M={}),M.writer?v(M.writer)&&(U=M.writer,M.writer=new h(U)):M.writer=new h(M),this.options=M,this.writer=M.writer,this.stringify=new f(M),this.onDataCallback=z||function(){},this.onEndCallback=W||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return C.prototype.node=function(M,z,W){var U,G;if(M==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(M));return this.openCurrent(),M=m(M),z===null&&W==null&&(U=[{},null],z=U[0],W=U[1]),z==null&&(z={}),z=m(z),y(z)||(G=[z,W],W=G[0],z=G[1]),this.currentNode=new c(this,M,z),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,W!=null&&this.text(W),this},C.prototype.element=function(M,z,W){return this.currentNode&&this.currentNode instanceof u?this.dtdElement.apply(this,arguments):this.node(M,z,W)},C.prototype.attribute=function(M,z){var W,U;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(M));if(M!=null&&(M=m(M)),y(M))for(W in M)!A.call(M,W)||(U=M[W],this.attribute(W,U));else p(z)&&(z=z.apply()),(!this.options.skipNullAttributes||z!=null)&&(this.currentNode.attributes[M]=new r(this,M,z));return this},C.prototype.text=function(M){var z;return this.openCurrent(),z=new g(this,M),this.onData(this.writer.text(z,this.currentLevel+1),this.currentLevel+1),this},C.prototype.cdata=function(M){var z;return this.openCurrent(),z=new t(this,M),this.onData(this.writer.cdata(z,this.currentLevel+1),this.currentLevel+1),this},C.prototype.comment=function(M){var z;return this.openCurrent(),z=new e(this,M),this.onData(this.writer.comment(z,this.currentLevel+1),this.currentLevel+1),this},C.prototype.raw=function(M){var z;return this.openCurrent(),z=new d(this,M),this.onData(this.writer.raw(z,this.currentLevel+1),this.currentLevel+1),this},C.prototype.instruction=function(M,z){var W,U,G,ee,I;if(this.openCurrent(),M!=null&&(M=m(M)),z!=null&&(z=m(z)),Array.isArray(M))for(W=0,ee=M.length;W<ee;W++)U=M[W],this.instruction(U);else if(y(M))for(U in M)!A.call(M,U)||(G=M[U],this.instruction(U,G));else p(z)&&(z=z.apply()),I=new l(this,M,z),this.onData(this.writer.processingInstruction(I,this.currentLevel+1),this.currentLevel+1);return this},C.prototype.declaration=function(M,z,W){var U;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return U=new s(this,M,z,W),this.onData(this.writer.declaration(U,this.currentLevel+1),this.currentLevel+1),this},C.prototype.doctype=function(M,z,W){if(this.openCurrent(),M==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new u(this,z,W),this.currentNode.rootNodeName=M,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},C.prototype.dtdElement=function(M,z){var W;return this.openCurrent(),W=new i(this,M,z),this.onData(this.writer.dtdElement(W,this.currentLevel+1),this.currentLevel+1),this},C.prototype.attList=function(M,z,W,U,G){var ee;return this.openCurrent(),ee=new n(this,M,z,W,U,G),this.onData(this.writer.dtdAttList(ee,this.currentLevel+1),this.currentLevel+1),this},C.prototype.entity=function(M,z){var W;return this.openCurrent(),W=new a(this,!1,M,z),this.onData(this.writer.dtdEntity(W,this.currentLevel+1),this.currentLevel+1),this},C.prototype.pEntity=function(M,z){var W;return this.openCurrent(),W=new a(this,!0,M,z),this.onData(this.writer.dtdEntity(W,this.currentLevel+1),this.currentLevel+1),this},C.prototype.notation=function(M,z){var W;return this.openCurrent(),W=new o(this,M,z),this.onData(this.writer.dtdNotation(W,this.currentLevel+1),this.currentLevel+1),this},C.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},C.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},C.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},C.prototype.openNode=function(M){if(!M.isOpen)return!this.root&&this.currentLevel===0&&M instanceof c&&(this.root=M),this.onData(this.writer.openNode(M,this.currentLevel),this.currentLevel),M.isOpen=!0},C.prototype.closeNode=function(M){if(!M.isClosed)return this.onData(this.writer.closeNode(M,this.currentLevel),this.currentLevel),M.isClosed=!0},C.prototype.onData=function(M,z){return this.documentStarted=!0,this.onDataCallback(M,z+1)},C.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},C.prototype.debugInfo=function(M){return M==null?"":"node: <"+M+">"},C.prototype.ele=function(){return this.element.apply(this,arguments)},C.prototype.nod=function(M,z,W){return this.node(M,z,W)},C.prototype.txt=function(M){return this.text(M)},C.prototype.dat=function(M){return this.cdata(M)},C.prototype.com=function(M){return this.comment(M)},C.prototype.ins=function(M,z){return this.instruction(M,z)},C.prototype.dec=function(M,z,W){return this.declaration(M,z,W)},C.prototype.dtd=function(M,z,W){return this.doctype(M,z,W)},C.prototype.e=function(M,z,W){return this.element(M,z,W)},C.prototype.n=function(M,z,W){return this.node(M,z,W)},C.prototype.t=function(M){return this.text(M)},C.prototype.d=function(M){return this.cdata(M)},C.prototype.c=function(M){return this.comment(M)},C.prototype.r=function(M){return this.raw(M)},C.prototype.i=function(M,z){return this.instruction(M,z)},C.prototype.att=function(){return this.currentNode&&this.currentNode instanceof u?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.a=function(){return this.currentNode&&this.currentNode instanceof u?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.ent=function(M,z){return this.entity(M,z)},C.prototype.pent=function(M,z){return this.pEntity(M,z)},C.prototype.not=function(M,z){return this.notation(M,z)},C}()}).call(ot);var y8={exports:{}};(function(){var r,t,e,n,i,a,o,s,u,c,l,d,h,f,g=function(p,y){for(var v in y)m.call(y,v)&&(p[v]=y[v]);function b(){this.constructor=p}return b.prototype=y.prototype,p.prototype=new b,p.__super__=y.prototype,p},m={}.hasOwnProperty;o=Nl.exports,s=Ml.exports,r=Rl.exports,t=Fl.exports,c=kl.exports,d=jl.exports,h=Wl.exports,l=zl.exports,u=bd.exports,e=Bl.exports,n=Pl.exports,i=Ul.exports,a=Ll.exports,f=Tg.exports,y8.exports=function(p){g(y,p);function y(v,b){y.__super__.constructor.call(this,b),this.stream=v}return y.prototype.document=function(v){var b,A,C,M,z,W,U,G;for(W=v.children,A=0,M=W.length;A<M;A++)b=W[A],b.isLastRootNode=!1;for(v.children[v.children.length-1].isLastRootNode=!0,U=v.children,G=[],C=0,z=U.length;C<z;C++)if(b=U[C],!(b instanceof u))switch(!1){case!(b instanceof o):G.push(this.declaration(b));break;case!(b instanceof s):G.push(this.docType(b));break;case!(b instanceof t):G.push(this.comment(b));break;case!(b instanceof l):G.push(this.processingInstruction(b));break;default:G.push(this.element(b))}return G},y.prototype.attribute=function(v){return this.stream.write(" "+v.name+'="'+v.value+'"')},y.prototype.cdata=function(v,b){return this.stream.write(this.space(b)+"<![CDATA["+v.text+"]]>"+this.endline(v))},y.prototype.comment=function(v,b){return this.stream.write(this.space(b)+"<!-- "+v.text+" -->"+this.endline(v))},y.prototype.declaration=function(v,b){return this.stream.write(this.space(b)),this.stream.write('<?xml version="'+v.version+'"'),v.encoding!=null&&this.stream.write(' encoding="'+v.encoding+'"'),v.standalone!=null&&this.stream.write(' standalone="'+v.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(v))},y.prototype.docType=function(v,b){var A,C,M,z;if(b||(b=0),this.stream.write(this.space(b)),this.stream.write("<!DOCTYPE "+v.root().name),v.pubID&&v.sysID?this.stream.write(' PUBLIC "'+v.pubID+'" "'+v.sysID+'"'):v.sysID&&this.stream.write(' SYSTEM "'+v.sysID+'"'),v.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(v)),z=v.children,C=0,M=z.length;C<M;C++)switch(A=z[C],!1){case!(A instanceof e):this.dtdAttList(A,b+1);break;case!(A instanceof n):this.dtdElement(A,b+1);break;case!(A instanceof i):this.dtdEntity(A,b+1);break;case!(A instanceof a):this.dtdNotation(A,b+1);break;case!(A instanceof r):this.cdata(A,b+1);break;case!(A instanceof t):this.comment(A,b+1);break;case!(A instanceof l):this.processingInstruction(A,b+1);break;default:throw new Error("Unknown DTD node type: "+A.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(v))},y.prototype.element=function(v,b){var A,C,M,z,W,U,G,ee;b||(b=0),ee=this.space(b),this.stream.write(ee+"<"+v.name),U=v.attributes;for(W in U)!m.call(U,W)||(A=U[W],this.attribute(A));if(v.children.length===0||v.children.every(function(I){return I.value===""}))this.allowEmpty?this.stream.write("></"+v.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&v.children.length===1&&v.children[0].value!=null)this.stream.write(">"),this.stream.write(v.children[0].value),this.stream.write("</"+v.name+">");else{for(this.stream.write(">"+this.newline),G=v.children,M=0,z=G.length;M<z;M++)switch(C=G[M],!1){case!(C instanceof r):this.cdata(C,b+1);break;case!(C instanceof t):this.comment(C,b+1);break;case!(C instanceof c):this.element(C,b+1);break;case!(C instanceof d):this.raw(C,b+1);break;case!(C instanceof h):this.text(C,b+1);break;case!(C instanceof l):this.processingInstruction(C,b+1);break;case!(C instanceof u):break;default:throw new Error("Unknown XML node type: "+C.constructor.name)}this.stream.write(ee+"</"+v.name+">")}return this.stream.write(this.endline(v))},y.prototype.processingInstruction=function(v,b){return this.stream.write(this.space(b)+"<?"+v.target),v.value&&this.stream.write(" "+v.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(v))},y.prototype.raw=function(v,b){return this.stream.write(this.space(b)+v.value+this.endline(v))},y.prototype.text=function(v,b){return this.stream.write(this.space(b)+v.value+this.endline(v))},y.prototype.dtdAttList=function(v,b){return this.stream.write(this.space(b)+"<!ATTLIST "+v.elementName+" "+v.attributeName+" "+v.attributeType),v.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+v.defaultValueType),v.defaultValue&&this.stream.write(' "'+v.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(v))},y.prototype.dtdElement=function(v,b){return this.stream.write(this.space(b)+"<!ELEMENT "+v.name+" "+v.value),this.stream.write(this.spacebeforeslash+">"+this.endline(v))},y.prototype.dtdEntity=function(v,b){return this.stream.write(this.space(b)+"<!ENTITY"),v.pe&&this.stream.write(" %"),this.stream.write(" "+v.name),v.value?this.stream.write(' "'+v.value+'"'):(v.pubID&&v.sysID?this.stream.write(' PUBLIC "'+v.pubID+'" "'+v.sysID+'"'):v.sysID&&this.stream.write(' SYSTEM "'+v.sysID+'"'),v.nData&&this.stream.write(" NDATA "+v.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(v))},y.prototype.dtdNotation=function(v,b){return this.stream.write(this.space(b)+"<!NOTATION "+v.name),v.pubID&&v.sysID?this.stream.write(' PUBLIC "'+v.pubID+'" "'+v.sysID+'"'):v.pubID?this.stream.write(' PUBLIC "'+v.pubID+'"'):v.sysID&&this.stream.write(' SYSTEM "'+v.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(v))},y.prototype.endline=function(v){return v.isLastRootNode?"":this.newline},y}(f)}).call(ot);(function(){var r,t,e,n,i,a,o;o=mi,i=o.assign,a=o.isFunction,r=g8.exports,t=v8.exports,n=wd.exports,e=y8.exports,Il.create=function(s,u,c,l){var d,h;if(s==null)throw new Error("Root element needs a name.");return l=i({},u,c,l),d=new r(l),h=d.element(s),l.headless||(d.declaration(l),(l.pubID!=null||l.sysID!=null)&&d.doctype(l)),h},Il.begin=function(s,u,c){var l;return a(s)&&(l=[s,u],u=l[0],c=l[1],s={}),u?new t(s,u,c):new r(s)},Il.stringWriter=function(s){return new n(s)},Il.streamWriter=function(s,u){return new e(s,u)}}).call(ot);var b8=on.exports,dV=Il;m8.writeString=pV;function pV(r,t){var e=b8.invert(t),n={element:a,text:mV};function i(u,c){return n[c.type](u,c)}function a(u,c){var l=u.element(o(c.name),c.attributes);c.children.forEach(function(d){i(l,d)})}function o(u){var c=/^\{(.*)\}(.*)$/.exec(u);if(c){var l=e[c[1]];return l+(l===""?"":":")+c[2]}else return u}function s(u){var c=dV.create(o(u.name),{version:"1.0",encoding:"UTF-8",standalone:!0});return b8.forEach(t,function(l,d){var h="xmlns"+(d===""?"":":"+d);c.attribute(h,l)}),u.children.forEach(function(l){i(c,l)}),c.end()}return s(r)}function mV(r,t){r.text(t.value)}var Sg=bl;zs.Element=Sg.Element;zs.element=Sg.element;zs.text=Sg.text;zs.readString=w3.readString;zs.writeString=m8.writeString;var gV=on.exports,vV=Un,yV=zs;og.read=w8;og.readXmlFromZipFile=wV;var bV={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://purl.oclc.org/ooxml/wordprocessingml/main":"w","http://purl.oclc.org/ooxml/officeDocument/relationships":"r","http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":"wp","http://purl.oclc.org/ooxml/drawingml/main":"a","http://purl.oclc.org/ooxml/drawingml/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","http://schemas.openxmlformats.org/package/2006/relationships":"relationships","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:word":"office-word"};function w8(r){return yV.readString(r,bV).then(function(t){return x8(t)[0]})}function wV(r,t){return r.exists(t)?r.read(t,"utf-8").then(xV).then(w8):vV.resolve(null)}function xV(r){return r.replace(/^\uFEFF/g,"")}function x8(r){return r.type==="element"?r.name==="mc:AlternateContent"?r.first("mc:Fallback").children:(r.children=gV.flatten(r.children.map(x8,!0)),[r]):[r]}var Dg={},us={},Cg={};Object.defineProperty(Cg,"__esModule",{value:!0});var _V=[{"Typeface name":"Symbol","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Symbol","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"33","Unicode hex":"21"},{"Typeface name":"Symbol","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"8704","Unicode hex":"2200"},{"Typeface name":"Symbol","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"35","Unicode hex":"23"},{"Typeface name":"Symbol","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"8707","Unicode hex":"2203"},{"Typeface name":"Symbol","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"37","Unicode hex":"25"},{"Typeface name":"Symbol","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"38","Unicode hex":"26"},{"Typeface name":"Symbol","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"8717","Unicode hex":"220D"},{"Typeface name":"Symbol","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"40","Unicode hex":"28"},{"Typeface name":"Symbol","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"41","Unicode hex":"29"},{"Typeface name":"Symbol","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"42","Unicode hex":"2A"},{"Typeface name":"Symbol","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"43","Unicode hex":"2B"},{"Typeface name":"Symbol","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"44","Unicode hex":"2C"},{"Typeface name":"Symbol","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"8722","Unicode hex":"2212"},{"Typeface name":"Symbol","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"46","Unicode hex":"2E"},{"Typeface name":"Symbol","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"47","Unicode hex":"2F"},{"Typeface name":"Symbol","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"48","Unicode hex":"30"},{"Typeface name":"Symbol","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"49","Unicode hex":"31"},{"Typeface name":"Symbol","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"50","Unicode hex":"32"},{"Typeface name":"Symbol","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"51","Unicode hex":"33"},{"Typeface name":"Symbol","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"52","Unicode hex":"34"},{"Typeface name":"Symbol","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"53","Unicode hex":"35"},{"Typeface name":"Symbol","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"54","Unicode hex":"36"},{"Typeface name":"Symbol","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"55","Unicode hex":"37"},{"Typeface name":"Symbol","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"56","Unicode hex":"38"},{"Typeface name":"Symbol","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"57","Unicode hex":"39"},{"Typeface name":"Symbol","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"58","Unicode hex":"3A"},{"Typeface name":"Symbol","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"59","Unicode hex":"3B"},{"Typeface name":"Symbol","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"60","Unicode hex":"3C"},{"Typeface name":"Symbol","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"61","Unicode hex":"3D"},{"Typeface name":"Symbol","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"62","Unicode hex":"3E"},{"Typeface name":"Symbol","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"63","Unicode hex":"3F"},{"Typeface name":"Symbol","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"8773","Unicode hex":"2245"},{"Typeface name":"Symbol","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"913","Unicode hex":"391"},{"Typeface name":"Symbol","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"914","Unicode hex":"392"},{"Typeface name":"Symbol","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"935","Unicode hex":"3A7"},{"Typeface name":"Symbol","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"916","Unicode hex":"394"},{"Typeface name":"Symbol","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"917","Unicode hex":"395"},{"Typeface name":"Symbol","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"934","Unicode hex":"3A6"},{"Typeface name":"Symbol","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"915","Unicode hex":"393"},{"Typeface name":"Symbol","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"919","Unicode hex":"397"},{"Typeface name":"Symbol","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"921","Unicode hex":"399"},{"Typeface name":"Symbol","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"977","Unicode hex":"3D1"},{"Typeface name":"Symbol","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"922","Unicode hex":"39A"},{"Typeface name":"Symbol","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"923","Unicode hex":"39B"},{"Typeface name":"Symbol","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"924","Unicode hex":"39C"},{"Typeface name":"Symbol","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"925","Unicode hex":"39D"},{"Typeface name":"Symbol","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"927","Unicode hex":"39F"},{"Typeface name":"Symbol","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"928","Unicode hex":"3A0"},{"Typeface name":"Symbol","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"920","Unicode hex":"398"},{"Typeface name":"Symbol","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"929","Unicode hex":"3A1"},{"Typeface name":"Symbol","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"931","Unicode hex":"3A3"},{"Typeface name":"Symbol","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"932","Unicode hex":"3A4"},{"Typeface name":"Symbol","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"933","Unicode hex":"3A5"},{"Typeface name":"Symbol","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"962","Unicode hex":"3C2"},{"Typeface name":"Symbol","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"937","Unicode hex":"3A9"},{"Typeface name":"Symbol","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"926","Unicode hex":"39E"},{"Typeface name":"Symbol","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"936","Unicode hex":"3A8"},{"Typeface name":"Symbol","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"918","Unicode hex":"396"},{"Typeface name":"Symbol","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"91","Unicode hex":"5B"},{"Typeface name":"Symbol","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"8756","Unicode hex":"2234"},{"Typeface name":"Symbol","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"93","Unicode hex":"5D"},{"Typeface name":"Symbol","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"8869","Unicode hex":"22A5"},{"Typeface name":"Symbol","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"95","Unicode hex":"5F"},{"Typeface name":"Symbol","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"8254","Unicode hex":"203E"},{"Typeface name":"Symbol","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"945","Unicode hex":"3B1"},{"Typeface name":"Symbol","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"946","Unicode hex":"3B2"},{"Typeface name":"Symbol","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"967","Unicode hex":"3C7"},{"Typeface name":"Symbol","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"948","Unicode hex":"3B4"},{"Typeface name":"Symbol","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"949","Unicode hex":"3B5"},{"Typeface name":"Symbol","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"966","Unicode hex":"3C6"},{"Typeface name":"Symbol","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"947","Unicode hex":"3B3"},{"Typeface name":"Symbol","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"951","Unicode hex":"3B7"},{"Typeface name":"Symbol","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"953","Unicode hex":"3B9"},{"Typeface name":"Symbol","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"981","Unicode hex":"3D5"},{"Typeface name":"Symbol","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"954","Unicode hex":"3BA"},{"Typeface name":"Symbol","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"955","Unicode hex":"3BB"},{"Typeface name":"Symbol","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"956","Unicode hex":"3BC"},{"Typeface name":"Symbol","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"957","Unicode hex":"3BD"},{"Typeface name":"Symbol","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"959","Unicode hex":"3BF"},{"Typeface name":"Symbol","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"960","Unicode hex":"3C0"},{"Typeface name":"Symbol","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"952","Unicode hex":"3B8"},{"Typeface name":"Symbol","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"961","Unicode hex":"3C1"},{"Typeface name":"Symbol","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"963","Unicode hex":"3C3"},{"Typeface name":"Symbol","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"964","Unicode hex":"3C4"},{"Typeface name":"Symbol","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"965","Unicode hex":"3C5"},{"Typeface name":"Symbol","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"982","Unicode hex":"3D6"},{"Typeface name":"Symbol","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"969","Unicode hex":"3C9"},{"Typeface name":"Symbol","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"958","Unicode hex":"3BE"},{"Typeface name":"Symbol","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"968","Unicode hex":"3C8"},{"Typeface name":"Symbol","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"950","Unicode hex":"3B6"},{"Typeface name":"Symbol","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"123","Unicode hex":"7B"},{"Typeface name":"Symbol","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"124","Unicode hex":"7C"},{"Typeface name":"Symbol","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"125","Unicode hex":"7D"},{"Typeface name":"Symbol","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"126","Unicode hex":"7E"},{"Typeface name":"Symbol","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"8364","Unicode hex":"20AC"},{"Typeface name":"Symbol","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"978","Unicode hex":"3D2"},{"Typeface name":"Symbol","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"8242","Unicode hex":"2032"},{"Typeface name":"Symbol","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"8804","Unicode hex":"2264"},{"Typeface name":"Symbol","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"8260","Unicode hex":"2044"},{"Typeface name":"Symbol","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"8734","Unicode hex":"221E"},{"Typeface name":"Symbol","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"402","Unicode hex":"192"},{"Typeface name":"Symbol","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9827","Unicode hex":"2663"},{"Typeface name":"Symbol","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9830","Unicode hex":"2666"},{"Typeface name":"Symbol","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"9829","Unicode hex":"2665"},{"Typeface name":"Symbol","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"9824","Unicode hex":"2660"},{"Typeface name":"Symbol","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"8596","Unicode hex":"2194"},{"Typeface name":"Symbol","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"8592","Unicode hex":"2190"},{"Typeface name":"Symbol","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"8593","Unicode hex":"2191"},{"Typeface name":"Symbol","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"8594","Unicode hex":"2192"},{"Typeface name":"Symbol","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"8595","Unicode hex":"2193"},{"Typeface name":"Symbol","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"176","Unicode hex":"B0"},{"Typeface name":"Symbol","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"177","Unicode hex":"B1"},{"Typeface name":"Symbol","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"8243","Unicode hex":"2033"},{"Typeface name":"Symbol","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"8805","Unicode hex":"2265"},{"Typeface name":"Symbol","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"215","Unicode hex":"D7"},{"Typeface name":"Symbol","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"8733","Unicode hex":"221D"},{"Typeface name":"Symbol","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"8706","Unicode hex":"2202"},{"Typeface name":"Symbol","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Symbol","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"247","Unicode hex":"F7"},{"Typeface name":"Symbol","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"8800","Unicode hex":"2260"},{"Typeface name":"Symbol","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"8801","Unicode hex":"2261"},{"Typeface name":"Symbol","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"8776","Unicode hex":"2248"},{"Typeface name":"Symbol","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"8230","Unicode hex":"2026"},{"Typeface name":"Symbol","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Symbol","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"9135","Unicode hex":"23AF"},{"Typeface name":"Symbol","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"8629","Unicode hex":"21B5"},{"Typeface name":"Symbol","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"8501","Unicode hex":"2135"},{"Typeface name":"Symbol","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"8465","Unicode hex":"2111"},{"Typeface name":"Symbol","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"8476","Unicode hex":"211C"},{"Typeface name":"Symbol","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"8472","Unicode hex":"2118"},{"Typeface name":"Symbol","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"8855","Unicode hex":"2297"},{"Typeface name":"Symbol","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"8853","Unicode hex":"2295"},{"Typeface name":"Symbol","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"8709","Unicode hex":"2205"},{"Typeface name":"Symbol","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"8745","Unicode hex":"2229"},{"Typeface name":"Symbol","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"8746","Unicode hex":"222A"},{"Typeface name":"Symbol","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"8835","Unicode hex":"2283"},{"Typeface name":"Symbol","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"8839","Unicode hex":"2287"},{"Typeface name":"Symbol","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"8836","Unicode hex":"2284"},{"Typeface name":"Symbol","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"8834","Unicode hex":"2282"},{"Typeface name":"Symbol","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"8838","Unicode hex":"2286"},{"Typeface name":"Symbol","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"8712","Unicode hex":"2208"},{"Typeface name":"Symbol","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"8713","Unicode hex":"2209"},{"Typeface name":"Symbol","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"8736","Unicode hex":"2220"},{"Typeface name":"Symbol","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"8711","Unicode hex":"2207"},{"Typeface name":"Symbol","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"8719","Unicode hex":"220F"},{"Typeface name":"Symbol","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8730","Unicode hex":"221A"},{"Typeface name":"Symbol","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Symbol","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"172","Unicode hex":"AC"},{"Typeface name":"Symbol","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"8743","Unicode hex":"2227"},{"Typeface name":"Symbol","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"8744","Unicode hex":"2228"},{"Typeface name":"Symbol","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"8660","Unicode hex":"21D4"},{"Typeface name":"Symbol","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"8656","Unicode hex":"21D0"},{"Typeface name":"Symbol","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"8657","Unicode hex":"21D1"},{"Typeface name":"Symbol","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"8658","Unicode hex":"21D2"},{"Typeface name":"Symbol","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"8659","Unicode hex":"21D3"},{"Typeface name":"Symbol","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Symbol","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"12296","Unicode hex":"3008"},{"Typeface name":"Symbol","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"8721","Unicode hex":"2211"},{"Typeface name":"Symbol","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"9115","Unicode hex":"239B"},{"Typeface name":"Symbol","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"9116","Unicode hex":"239C"},{"Typeface name":"Symbol","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9117","Unicode hex":"239D"},{"Typeface name":"Symbol","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9121","Unicode hex":"23A1"},{"Typeface name":"Symbol","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"9122","Unicode hex":"23A2"},{"Typeface name":"Symbol","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"9123","Unicode hex":"23A3"},{"Typeface name":"Symbol","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"9127","Unicode hex":"23A7"},{"Typeface name":"Symbol","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"9128","Unicode hex":"23A8"},{"Typeface name":"Symbol","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"9129","Unicode hex":"23A9"},{"Typeface name":"Symbol","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"9130","Unicode hex":"23AA"},{"Typeface name":"Symbol","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"63743","Unicode hex":"F8FF"},{"Typeface name":"Symbol","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"12297","Unicode hex":"3009"},{"Typeface name":"Symbol","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8747","Unicode hex":"222B"},{"Typeface name":"Symbol","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"8992","Unicode hex":"2320"},{"Typeface name":"Symbol","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"9134","Unicode hex":"23AE"},{"Typeface name":"Symbol","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"8993","Unicode hex":"2321"},{"Typeface name":"Symbol","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"9118","Unicode hex":"239E"},{"Typeface name":"Symbol","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"9119","Unicode hex":"239F"},{"Typeface name":"Symbol","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"9120","Unicode hex":"23A0"},{"Typeface name":"Symbol","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"9124","Unicode hex":"23A4"},{"Typeface name":"Symbol","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"9125","Unicode hex":"23A5"},{"Typeface name":"Symbol","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"9126","Unicode hex":"23A6"},{"Typeface name":"Symbol","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"9131","Unicode hex":"23AB"},{"Typeface name":"Symbol","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"9132","Unicode hex":"23AC"},{"Typeface name":"Symbol","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"9133","Unicode hex":"23AD"},{"Typeface name":"Webdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Webdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128375","Unicode hex":"1F577"},{"Typeface name":"Webdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128376","Unicode hex":"1F578"},{"Typeface name":"Webdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128370","Unicode hex":"1F572"},{"Typeface name":"Webdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128374","Unicode hex":"1F576"},{"Typeface name":"Webdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"127942","Unicode hex":"1F3C6"},{"Typeface name":"Webdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"127894","Unicode hex":"1F396"},{"Typeface name":"Webdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128391","Unicode hex":"1F587"},{"Typeface name":"Webdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128488","Unicode hex":"1F5E8"},{"Typeface name":"Webdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128489","Unicode hex":"1F5E9"},{"Typeface name":"Webdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128496","Unicode hex":"1F5F0"},{"Typeface name":"Webdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128497","Unicode hex":"1F5F1"},{"Typeface name":"Webdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"127798","Unicode hex":"1F336"},{"Typeface name":"Webdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"127895","Unicode hex":"1F397"},{"Typeface name":"Webdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128638","Unicode hex":"1F67E"},{"Typeface name":"Webdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128636","Unicode hex":"1F67C"},{"Typeface name":"Webdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128469","Unicode hex":"1F5D5"},{"Typeface name":"Webdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128470","Unicode hex":"1F5D6"},{"Typeface name":"Webdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128471","Unicode hex":"1F5D7"},{"Typeface name":"Webdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"9204","Unicode hex":"23F4"},{"Typeface name":"Webdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"9205","Unicode hex":"23F5"},{"Typeface name":"Webdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"9206","Unicode hex":"23F6"},{"Typeface name":"Webdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"9207","Unicode hex":"23F7"},{"Typeface name":"Webdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"9194","Unicode hex":"23EA"},{"Typeface name":"Webdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"9193","Unicode hex":"23E9"},{"Typeface name":"Webdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"9198","Unicode hex":"23EE"},{"Typeface name":"Webdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"9197","Unicode hex":"23ED"},{"Typeface name":"Webdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"9208","Unicode hex":"23F8"},{"Typeface name":"Webdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"9209","Unicode hex":"23F9"},{"Typeface name":"Webdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"9210","Unicode hex":"23FA"},{"Typeface name":"Webdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128474","Unicode hex":"1F5DA"},{"Typeface name":"Webdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128499","Unicode hex":"1F5F3"},{"Typeface name":"Webdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128736","Unicode hex":"1F6E0"},{"Typeface name":"Webdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"127959","Unicode hex":"1F3D7"},{"Typeface name":"Webdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"127960","Unicode hex":"1F3D8"},{"Typeface name":"Webdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"127961","Unicode hex":"1F3D9"},{"Typeface name":"Webdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"127962","Unicode hex":"1F3DA"},{"Typeface name":"Webdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"127964","Unicode hex":"1F3DC"},{"Typeface name":"Webdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"127981","Unicode hex":"1F3ED"},{"Typeface name":"Webdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"127963","Unicode hex":"1F3DB"},{"Typeface name":"Webdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"127968","Unicode hex":"1F3E0"},{"Typeface name":"Webdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"127958","Unicode hex":"1F3D6"},{"Typeface name":"Webdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"127965","Unicode hex":"1F3DD"},{"Typeface name":"Webdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128739","Unicode hex":"1F6E3"},{"Typeface name":"Webdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128269","Unicode hex":"1F50D"},{"Typeface name":"Webdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"127956","Unicode hex":"1F3D4"},{"Typeface name":"Webdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128065","Unicode hex":"1F441"},{"Typeface name":"Webdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128066","Unicode hex":"1F442"},{"Typeface name":"Webdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127966","Unicode hex":"1F3DE"},{"Typeface name":"Webdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"127957","Unicode hex":"1F3D5"},{"Typeface name":"Webdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"128740","Unicode hex":"1F6E4"},{"Typeface name":"Webdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127967","Unicode hex":"1F3DF"},{"Typeface name":"Webdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"128755","Unicode hex":"1F6F3"},{"Typeface name":"Webdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128364","Unicode hex":"1F56C"},{"Typeface name":"Webdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"128363","Unicode hex":"1F56B"},{"Typeface name":"Webdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128360","Unicode hex":"1F568"},{"Typeface name":"Webdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"128264","Unicode hex":"1F508"},{"Typeface name":"Webdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"127892","Unicode hex":"1F394"},{"Typeface name":"Webdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"127893","Unicode hex":"1F395"},{"Typeface name":"Webdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128492","Unicode hex":"1F5EC"},{"Typeface name":"Webdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128637","Unicode hex":"1F67D"},{"Typeface name":"Webdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"128493","Unicode hex":"1F5ED"},{"Typeface name":"Webdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128490","Unicode hex":"1F5EA"},{"Typeface name":"Webdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128491","Unicode hex":"1F5EB"},{"Typeface name":"Webdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"11156","Unicode hex":"2B94"},{"Typeface name":"Webdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"10004","Unicode hex":"2714"},{"Typeface name":"Webdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128690","Unicode hex":"1F6B2"},{"Typeface name":"Webdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"11036","Unicode hex":"2B1C"},{"Typeface name":"Webdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128737","Unicode hex":"1F6E1"},{"Typeface name":"Webdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128230","Unicode hex":"1F4E6"},{"Typeface name":"Webdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128753","Unicode hex":"1F6F1"},{"Typeface name":"Webdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"11035","Unicode hex":"2B1B"},{"Typeface name":"Webdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128657","Unicode hex":"1F691"},{"Typeface name":"Webdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"128712","Unicode hex":"1F6C8"},{"Typeface name":"Webdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128745","Unicode hex":"1F6E9"},{"Typeface name":"Webdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128752","Unicode hex":"1F6F0"},{"Typeface name":"Webdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"128968","Unicode hex":"1F7C8"},{"Typeface name":"Webdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128372","Unicode hex":"1F574"},{"Typeface name":"Webdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"11044","Unicode hex":"2B24"},{"Typeface name":"Webdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128741","Unicode hex":"1F6E5"},{"Typeface name":"Webdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128660","Unicode hex":"1F694"},{"Typeface name":"Webdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"128472","Unicode hex":"1F5D8"},{"Typeface name":"Webdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"128473","Unicode hex":"1F5D9"},{"Typeface name":"Webdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"10067","Unicode hex":"2753"},{"Typeface name":"Webdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"128754","Unicode hex":"1F6F2"},{"Typeface name":"Webdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"128647","Unicode hex":"1F687"},{"Typeface name":"Webdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"128653","Unicode hex":"1F68D"},{"Typeface name":"Webdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9971","Unicode hex":"26F3"},{"Typeface name":"Webdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Webdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"8854","Unicode hex":"2296"},{"Typeface name":"Webdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"128685","Unicode hex":"1F6AD"},{"Typeface name":"Webdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"128494","Unicode hex":"1F5EE"},{"Typeface name":"Webdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Webdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128495","Unicode hex":"1F5EF"},{"Typeface name":"Webdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128498","Unicode hex":"1F5F2"},{"Typeface name":"Webdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128697","Unicode hex":"1F6B9"},{"Typeface name":"Webdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"128698","Unicode hex":"1F6BA"},{"Typeface name":"Webdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"128713","Unicode hex":"1F6C9"},{"Typeface name":"Webdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"128714","Unicode hex":"1F6CA"},{"Typeface name":"Webdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"128700","Unicode hex":"1F6BC"},{"Typeface name":"Webdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"128125","Unicode hex":"1F47D"},{"Typeface name":"Webdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"127947","Unicode hex":"1F3CB"},{"Typeface name":"Webdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"9975","Unicode hex":"26F7"},{"Typeface name":"Webdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"127938","Unicode hex":"1F3C2"},{"Typeface name":"Webdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"127948","Unicode hex":"1F3CC"},{"Typeface name":"Webdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"127946","Unicode hex":"1F3CA"},{"Typeface name":"Webdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127940","Unicode hex":"1F3C4"},{"Typeface name":"Webdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"127949","Unicode hex":"1F3CD"},{"Typeface name":"Webdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"127950","Unicode hex":"1F3CE"},{"Typeface name":"Webdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128664","Unicode hex":"1F698"},{"Typeface name":"Webdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128480","Unicode hex":"1F5E0"},{"Typeface name":"Webdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128738","Unicode hex":"1F6E2"},{"Typeface name":"Webdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128176","Unicode hex":"1F4B0"},{"Typeface name":"Webdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"127991","Unicode hex":"1F3F7"},{"Typeface name":"Webdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128179","Unicode hex":"1F4B3"},{"Typeface name":"Webdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128106","Unicode hex":"1F46A"},{"Typeface name":"Webdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"128481","Unicode hex":"1F5E1"},{"Typeface name":"Webdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128482","Unicode hex":"1F5E2"},{"Typeface name":"Webdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128483","Unicode hex":"1F5E3"},{"Typeface name":"Webdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Webdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128388","Unicode hex":"1F584"},{"Typeface name":"Webdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128389","Unicode hex":"1F585"},{"Typeface name":"Webdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Webdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128390","Unicode hex":"1F586"},{"Typeface name":"Webdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128441","Unicode hex":"1F5B9"},{"Typeface name":"Webdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"128442","Unicode hex":"1F5BA"},{"Typeface name":"Webdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128443","Unicode hex":"1F5BB"},{"Typeface name":"Webdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128373","Unicode hex":"1F575"},{"Typeface name":"Webdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"128368","Unicode hex":"1F570"},{"Typeface name":"Webdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128445","Unicode hex":"1F5BD"},{"Typeface name":"Webdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128446","Unicode hex":"1F5BE"},{"Typeface name":"Webdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Webdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128466","Unicode hex":"1F5D2"},{"Typeface name":"Webdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128467","Unicode hex":"1F5D3"},{"Typeface name":"Webdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Webdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128218","Unicode hex":"1F4DA"},{"Typeface name":"Webdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128478","Unicode hex":"1F5DE"},{"Typeface name":"Webdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128479","Unicode hex":"1F5DF"},{"Typeface name":"Webdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128451","Unicode hex":"1F5C3"},{"Typeface name":"Webdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128450","Unicode hex":"1F5C2"},{"Typeface name":"Webdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128444","Unicode hex":"1F5BC"},{"Typeface name":"Webdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"127917","Unicode hex":"1F3AD"},{"Typeface name":"Webdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"127900","Unicode hex":"1F39C"},{"Typeface name":"Webdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"127896","Unicode hex":"1F398"},{"Typeface name":"Webdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"127897","Unicode hex":"1F399"},{"Typeface name":"Webdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"127911","Unicode hex":"1F3A7"},{"Typeface name":"Webdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128191","Unicode hex":"1F4BF"},{"Typeface name":"Webdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"127902","Unicode hex":"1F39E"},{"Typeface name":"Webdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128247","Unicode hex":"1F4F7"},{"Typeface name":"Webdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"127903","Unicode hex":"1F39F"},{"Typeface name":"Webdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"127916","Unicode hex":"1F3AC"},{"Typeface name":"Webdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128253","Unicode hex":"1F4FD"},{"Typeface name":"Webdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128249","Unicode hex":"1F4F9"},{"Typeface name":"Webdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128254","Unicode hex":"1F4FE"},{"Typeface name":"Webdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128251","Unicode hex":"1F4FB"},{"Typeface name":"Webdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"127898","Unicode hex":"1F39A"},{"Typeface name":"Webdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"127899","Unicode hex":"1F39B"},{"Typeface name":"Webdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128250","Unicode hex":"1F4FA"},{"Typeface name":"Webdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128187","Unicode hex":"1F4BB"},{"Typeface name":"Webdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128421","Unicode hex":"1F5A5"},{"Typeface name":"Webdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128422","Unicode hex":"1F5A6"},{"Typeface name":"Webdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128423","Unicode hex":"1F5A7"},{"Typeface name":"Webdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"128377","Unicode hex":"1F579"},{"Typeface name":"Webdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"127918","Unicode hex":"1F3AE"},{"Typeface name":"Webdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"128379","Unicode hex":"1F57B"},{"Typeface name":"Webdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128380","Unicode hex":"1F57C"},{"Typeface name":"Webdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128223","Unicode hex":"1F4DF"},{"Typeface name":"Webdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128385","Unicode hex":"1F581"},{"Typeface name":"Webdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128384","Unicode hex":"1F580"},{"Typeface name":"Webdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128424","Unicode hex":"1F5A8"},{"Typeface name":"Webdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128425","Unicode hex":"1F5A9"},{"Typeface name":"Webdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128447","Unicode hex":"1F5BF"},{"Typeface name":"Webdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128426","Unicode hex":"1F5AA"},{"Typeface name":"Webdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128476","Unicode hex":"1F5DC"},{"Typeface name":"Webdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128274","Unicode hex":"1F512"},{"Typeface name":"Webdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128275","Unicode hex":"1F513"},{"Typeface name":"Webdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128477","Unicode hex":"1F5DD"},{"Typeface name":"Webdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128229","Unicode hex":"1F4E5"},{"Typeface name":"Webdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128228","Unicode hex":"1F4E4"},{"Typeface name":"Webdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128371","Unicode hex":"1F573"},{"Typeface name":"Webdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"127779","Unicode hex":"1F323"},{"Typeface name":"Webdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"127780","Unicode hex":"1F324"},{"Typeface name":"Webdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"127781","Unicode hex":"1F325"},{"Typeface name":"Webdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"127782","Unicode hex":"1F326"},{"Typeface name":"Webdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"9729","Unicode hex":"2601"},{"Typeface name":"Webdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"127784","Unicode hex":"1F328"},{"Typeface name":"Webdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"127783","Unicode hex":"1F327"},{"Typeface name":"Webdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"127785","Unicode hex":"1F329"},{"Typeface name":"Webdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"127786","Unicode hex":"1F32A"},{"Typeface name":"Webdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"127788","Unicode hex":"1F32C"},{"Typeface name":"Webdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"127787","Unicode hex":"1F32B"},{"Typeface name":"Webdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"127772","Unicode hex":"1F31C"},{"Typeface name":"Webdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"127777","Unicode hex":"1F321"},{"Typeface name":"Webdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128715","Unicode hex":"1F6CB"},{"Typeface name":"Webdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128719","Unicode hex":"1F6CF"},{"Typeface name":"Webdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"127869","Unicode hex":"1F37D"},{"Typeface name":"Webdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"127864","Unicode hex":"1F378"},{"Typeface name":"Webdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128718","Unicode hex":"1F6CE"},{"Typeface name":"Webdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128717","Unicode hex":"1F6CD"},{"Typeface name":"Webdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9413","Unicode hex":"24C5"},{"Typeface name":"Webdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9855","Unicode hex":"267F"},{"Typeface name":"Webdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128710","Unicode hex":"1F6C6"},{"Typeface name":"Webdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"128392","Unicode hex":"1F588"},{"Typeface name":"Webdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"127891","Unicode hex":"1F393"},{"Typeface name":"Webdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128484","Unicode hex":"1F5E4"},{"Typeface name":"Webdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128485","Unicode hex":"1F5E5"},{"Typeface name":"Webdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128486","Unicode hex":"1F5E6"},{"Typeface name":"Webdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"128487","Unicode hex":"1F5E7"},{"Typeface name":"Webdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128746","Unicode hex":"1F6EA"},{"Typeface name":"Webdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128063","Unicode hex":"1F43F"},{"Typeface name":"Webdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"128038","Unicode hex":"1F426"},{"Typeface name":"Webdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128031","Unicode hex":"1F41F"},{"Typeface name":"Webdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128021","Unicode hex":"1F415"},{"Typeface name":"Webdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"128008","Unicode hex":"1F408"},{"Typeface name":"Webdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"128620","Unicode hex":"1F66C"},{"Typeface name":"Webdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"128622","Unicode hex":"1F66E"},{"Typeface name":"Webdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"128621","Unicode hex":"1F66D"},{"Typeface name":"Webdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"128623","Unicode hex":"1F66F"},{"Typeface name":"Webdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128506","Unicode hex":"1F5FA"},{"Typeface name":"Webdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"127757","Unicode hex":"1F30D"},{"Typeface name":"Webdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"127759","Unicode hex":"1F30F"},{"Typeface name":"Webdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"127758","Unicode hex":"1F30E"},{"Typeface name":"Webdings","Dingbat dec":"255","Dingbat hex":"FF","Unicode dec":"128330","Unicode hex":"1F54A"},{"Typeface name":"Wingdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128393","Unicode hex":"1F589"},{"Typeface name":"Wingdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"9986","Unicode hex":"2702"},{"Typeface name":"Wingdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"9985","Unicode hex":"2701"},{"Typeface name":"Wingdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128083","Unicode hex":"1F453"},{"Typeface name":"Wingdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"128365","Unicode hex":"1F56D"},{"Typeface name":"Wingdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Wingdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128367","Unicode hex":"1F56F"},{"Typeface name":"Wingdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128383","Unicode hex":"1F57F"},{"Typeface name":"Wingdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"9990","Unicode hex":"2706"},{"Typeface name":"Wingdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128386","Unicode hex":"1F582"},{"Typeface name":"Wingdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Wingdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128234","Unicode hex":"1F4EA"},{"Typeface name":"Wingdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128235","Unicode hex":"1F4EB"},{"Typeface name":"Wingdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128236","Unicode hex":"1F4EC"},{"Typeface name":"Wingdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128237","Unicode hex":"1F4ED"},{"Typeface name":"Wingdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128448","Unicode hex":"1F5C0"},{"Typeface name":"Wingdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128449","Unicode hex":"1F5C1"},{"Typeface name":"Wingdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128462","Unicode hex":"1F5CE"},{"Typeface name":"Wingdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128463","Unicode hex":"1F5CF"},{"Typeface name":"Wingdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128464","Unicode hex":"1F5D0"},{"Typeface name":"Wingdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128452","Unicode hex":"1F5C4"},{"Typeface name":"Wingdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"8987","Unicode hex":"231B"},{"Typeface name":"Wingdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128430","Unicode hex":"1F5AE"},{"Typeface name":"Wingdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128432","Unicode hex":"1F5B0"},{"Typeface name":"Wingdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128434","Unicode hex":"1F5B2"},{"Typeface name":"Wingdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128435","Unicode hex":"1F5B3"},{"Typeface name":"Wingdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128436","Unicode hex":"1F5B4"},{"Typeface name":"Wingdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128427","Unicode hex":"1F5AB"},{"Typeface name":"Wingdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128428","Unicode hex":"1F5AC"},{"Typeface name":"Wingdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"9991","Unicode hex":"2707"},{"Typeface name":"Wingdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"9997","Unicode hex":"270D"},{"Typeface name":"Wingdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128398","Unicode hex":"1F58E"},{"Typeface name":"Wingdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"9996","Unicode hex":"270C"},{"Typeface name":"Wingdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128399","Unicode hex":"1F58F"},{"Typeface name":"Wingdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128077","Unicode hex":"1F44D"},{"Typeface name":"Wingdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128078","Unicode hex":"1F44E"},{"Typeface name":"Wingdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"9756","Unicode hex":"261C"},{"Typeface name":"Wingdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"9758","Unicode hex":"261E"},{"Typeface name":"Wingdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"9757","Unicode hex":"261D"},{"Typeface name":"Wingdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"9759","Unicode hex":"261F"},{"Typeface name":"Wingdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128400","Unicode hex":"1F590"},{"Typeface name":"Wingdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"9786","Unicode hex":"263A"},{"Typeface name":"Wingdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128528","Unicode hex":"1F610"},{"Typeface name":"Wingdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"9785","Unicode hex":"2639"},{"Typeface name":"Wingdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128163","Unicode hex":"1F4A3"},{"Typeface name":"Wingdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128369","Unicode hex":"1F571"},{"Typeface name":"Wingdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"127987","Unicode hex":"1F3F3"},{"Typeface name":"Wingdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127985","Unicode hex":"1F3F1"},{"Typeface name":"Wingdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"9992","Unicode hex":"2708"},{"Typeface name":"Wingdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9788","Unicode hex":"263C"},{"Typeface name":"Wingdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127778","Unicode hex":"1F322"},{"Typeface name":"Wingdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"10052","Unicode hex":"2744"},{"Typeface name":"Wingdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128326","Unicode hex":"1F546"},{"Typeface name":"Wingdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"10014","Unicode hex":"271E"},{"Typeface name":"Wingdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128328","Unicode hex":"1F548"},{"Typeface name":"Wingdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10016","Unicode hex":"2720"},{"Typeface name":"Wingdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"10017","Unicode hex":"2721"},{"Typeface name":"Wingdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"9770","Unicode hex":"262A"},{"Typeface name":"Wingdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"9775","Unicode hex":"262F"},{"Typeface name":"Wingdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128329","Unicode hex":"1F549"},{"Typeface name":"Wingdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"9784","Unicode hex":"2638"},{"Typeface name":"Wingdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"9800","Unicode hex":"2648"},{"Typeface name":"Wingdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"9801","Unicode hex":"2649"},{"Typeface name":"Wingdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"9802","Unicode hex":"264A"},{"Typeface name":"Wingdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"9803","Unicode hex":"264B"},{"Typeface name":"Wingdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"9804","Unicode hex":"264C"},{"Typeface name":"Wingdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"9805","Unicode hex":"264D"},{"Typeface name":"Wingdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"9806","Unicode hex":"264E"},{"Typeface name":"Wingdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"9807","Unicode hex":"264F"},{"Typeface name":"Wingdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"9808","Unicode hex":"2650"},{"Typeface name":"Wingdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"9809","Unicode hex":"2651"},{"Typeface name":"Wingdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"9810","Unicode hex":"2652"},{"Typeface name":"Wingdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9811","Unicode hex":"2653"},{"Typeface name":"Wingdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128624","Unicode hex":"1F670"},{"Typeface name":"Wingdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128629","Unicode hex":"1F675"},{"Typeface name":"Wingdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9899","Unicode hex":"26AB"},{"Typeface name":"Wingdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128318","Unicode hex":"1F53E"},{"Typeface name":"Wingdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9724","Unicode hex":"25FC"},{"Typeface name":"Wingdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128911","Unicode hex":"1F78F"},{"Typeface name":"Wingdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128912","Unicode hex":"1F790"},{"Typeface name":"Wingdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"10065","Unicode hex":"2751"},{"Typeface name":"Wingdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"10066","Unicode hex":"2752"},{"Typeface name":"Wingdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"128927","Unicode hex":"1F79F"},{"Typeface name":"Wingdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"10731","Unicode hex":"29EB"},{"Typeface name":"Wingdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9670","Unicode hex":"25C6"},{"Typeface name":"Wingdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10070","Unicode hex":"2756"},{"Typeface name":"Wingdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"8999","Unicode hex":"2327"},{"Typeface name":"Wingdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"11193","Unicode hex":"2BB9"},{"Typeface name":"Wingdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"8984","Unicode hex":"2318"},{"Typeface name":"Wingdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"127989","Unicode hex":"1F3F5"},{"Typeface name":"Wingdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"127990","Unicode hex":"1F3F6"},{"Typeface name":"Wingdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128630","Unicode hex":"1F676"},{"Typeface name":"Wingdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128631","Unicode hex":"1F677"},{"Typeface name":"Wingdings","Dingbat dec":"127","Dingbat hex":"7F","Unicode dec":"9647","Unicode hex":"25AF"},{"Typeface name":"Wingdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"127243","Unicode hex":"1F10B"},{"Typeface name":"Wingdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"10112","Unicode hex":"2780"},{"Typeface name":"Wingdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"10113","Unicode hex":"2781"},{"Typeface name":"Wingdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"10114","Unicode hex":"2782"},{"Typeface name":"Wingdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"10115","Unicode hex":"2783"},{"Typeface name":"Wingdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10116","Unicode hex":"2784"},{"Typeface name":"Wingdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"10117","Unicode hex":"2785"},{"Typeface name":"Wingdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"10118","Unicode hex":"2786"},{"Typeface name":"Wingdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"10119","Unicode hex":"2787"},{"Typeface name":"Wingdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"10120","Unicode hex":"2788"},{"Typeface name":"Wingdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"10121","Unicode hex":"2789"},{"Typeface name":"Wingdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127244","Unicode hex":"1F10C"},{"Typeface name":"Wingdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"10122","Unicode hex":"278A"},{"Typeface name":"Wingdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"10123","Unicode hex":"278B"},{"Typeface name":"Wingdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"10124","Unicode hex":"278C"},{"Typeface name":"Wingdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"10125","Unicode hex":"278D"},{"Typeface name":"Wingdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"10126","Unicode hex":"278E"},{"Typeface name":"Wingdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"10127","Unicode hex":"278F"},{"Typeface name":"Wingdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"10128","Unicode hex":"2790"},{"Typeface name":"Wingdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"10129","Unicode hex":"2791"},{"Typeface name":"Wingdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"10130","Unicode hex":"2792"},{"Typeface name":"Wingdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"10131","Unicode hex":"2793"},{"Typeface name":"Wingdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128610","Unicode hex":"1F662"},{"Typeface name":"Wingdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128608","Unicode hex":"1F660"},{"Typeface name":"Wingdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"128609","Unicode hex":"1F661"},{"Typeface name":"Wingdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128611","Unicode hex":"1F663"},{"Typeface name":"Wingdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128606","Unicode hex":"1F65E"},{"Typeface name":"Wingdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128604","Unicode hex":"1F65C"},{"Typeface name":"Wingdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128605","Unicode hex":"1F65D"},{"Typeface name":"Wingdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128607","Unicode hex":"1F65F"},{"Typeface name":"Wingdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"8729","Unicode hex":"2219"},{"Typeface name":"Wingdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Wingdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"11037","Unicode hex":"2B1D"},{"Typeface name":"Wingdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"11096","Unicode hex":"2B58"},{"Typeface name":"Wingdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128902","Unicode hex":"1F786"},{"Typeface name":"Wingdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128904","Unicode hex":"1F788"},{"Typeface name":"Wingdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128906","Unicode hex":"1F78A"},{"Typeface name":"Wingdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128907","Unicode hex":"1F78B"},{"Typeface name":"Wingdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128319","Unicode hex":"1F53F"},{"Typeface name":"Wingdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9642","Unicode hex":"25AA"},{"Typeface name":"Wingdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128910","Unicode hex":"1F78E"},{"Typeface name":"Wingdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128961","Unicode hex":"1F7C1"},{"Typeface name":"Wingdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128965","Unicode hex":"1F7C5"},{"Typeface name":"Wingdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"9733","Unicode hex":"2605"},{"Typeface name":"Wingdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128971","Unicode hex":"1F7CB"},{"Typeface name":"Wingdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128975","Unicode hex":"1F7CF"},{"Typeface name":"Wingdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"128979","Unicode hex":"1F7D3"},{"Typeface name":"Wingdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"128977","Unicode hex":"1F7D1"},{"Typeface name":"Wingdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"11216","Unicode hex":"2BD0"},{"Typeface name":"Wingdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"8982","Unicode hex":"2316"},{"Typeface name":"Wingdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"11214","Unicode hex":"2BCE"},{"Typeface name":"Wingdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"11215","Unicode hex":"2BCF"},{"Typeface name":"Wingdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"11217","Unicode hex":"2BD1"},{"Typeface name":"Wingdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"10026","Unicode hex":"272A"},{"Typeface name":"Wingdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"10032","Unicode hex":"2730"},{"Typeface name":"Wingdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"128336","Unicode hex":"1F550"},{"Typeface name":"Wingdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128337","Unicode hex":"1F551"},{"Typeface name":"Wingdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128338","Unicode hex":"1F552"},{"Typeface name":"Wingdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128339","Unicode hex":"1F553"},{"Typeface name":"Wingdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128340","Unicode hex":"1F554"},{"Typeface name":"Wingdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"128341","Unicode hex":"1F555"},{"Typeface name":"Wingdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"128342","Unicode hex":"1F556"},{"Typeface name":"Wingdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128343","Unicode hex":"1F557"},{"Typeface name":"Wingdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128344","Unicode hex":"1F558"},{"Typeface name":"Wingdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128345","Unicode hex":"1F559"},{"Typeface name":"Wingdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128346","Unicode hex":"1F55A"},{"Typeface name":"Wingdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128347","Unicode hex":"1F55B"},{"Typeface name":"Wingdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11184","Unicode hex":"2BB0"},{"Typeface name":"Wingdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11185","Unicode hex":"2BB1"},{"Typeface name":"Wingdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11186","Unicode hex":"2BB2"},{"Typeface name":"Wingdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"11187","Unicode hex":"2BB3"},{"Typeface name":"Wingdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"11188","Unicode hex":"2BB4"},{"Typeface name":"Wingdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"11189","Unicode hex":"2BB5"},{"Typeface name":"Wingdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11190","Unicode hex":"2BB6"},{"Typeface name":"Wingdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11191","Unicode hex":"2BB7"},{"Typeface name":"Wingdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128618","Unicode hex":"1F66A"},{"Typeface name":"Wingdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128619","Unicode hex":"1F66B"},{"Typeface name":"Wingdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128597","Unicode hex":"1F655"},{"Typeface name":"Wingdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128596","Unicode hex":"1F654"},{"Typeface name":"Wingdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128599","Unicode hex":"1F657"},{"Typeface name":"Wingdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128598","Unicode hex":"1F656"},{"Typeface name":"Wingdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128592","Unicode hex":"1F650"},{"Typeface name":"Wingdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128593","Unicode hex":"1F651"},{"Typeface name":"Wingdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128594","Unicode hex":"1F652"},{"Typeface name":"Wingdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128595","Unicode hex":"1F653"},{"Typeface name":"Wingdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"9003","Unicode hex":"232B"},{"Typeface name":"Wingdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8998","Unicode hex":"2326"},{"Typeface name":"Wingdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"11160","Unicode hex":"2B98"},{"Typeface name":"Wingdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"11162","Unicode hex":"2B9A"},{"Typeface name":"Wingdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"11161","Unicode hex":"2B99"},{"Typeface name":"Wingdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"11163","Unicode hex":"2B9B"},{"Typeface name":"Wingdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"11144","Unicode hex":"2B88"},{"Typeface name":"Wingdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"11146","Unicode hex":"2B8A"},{"Typeface name":"Wingdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"11145","Unicode hex":"2B89"},{"Typeface name":"Wingdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"11147","Unicode hex":"2B8B"},{"Typeface name":"Wingdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129128","Unicode hex":"1F868"},{"Typeface name":"Wingdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129130","Unicode hex":"1F86A"},{"Typeface name":"Wingdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129129","Unicode hex":"1F869"},{"Typeface name":"Wingdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129131","Unicode hex":"1F86B"},{"Typeface name":"Wingdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129132","Unicode hex":"1F86C"},{"Typeface name":"Wingdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129133","Unicode hex":"1F86D"},{"Typeface name":"Wingdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129135","Unicode hex":"1F86F"},{"Typeface name":"Wingdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129134","Unicode hex":"1F86E"},{"Typeface name":"Wingdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129144","Unicode hex":"1F878"},{"Typeface name":"Wingdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129146","Unicode hex":"1F87A"},{"Typeface name":"Wingdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129145","Unicode hex":"1F879"},{"Typeface name":"Wingdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129147","Unicode hex":"1F87B"},{"Typeface name":"Wingdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129148","Unicode hex":"1F87C"},{"Typeface name":"Wingdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129149","Unicode hex":"1F87D"},{"Typeface name":"Wingdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129151","Unicode hex":"1F87F"},{"Typeface name":"Wingdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129150","Unicode hex":"1F87E"},{"Typeface name":"Wingdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"8678","Unicode hex":"21E6"},{"Typeface name":"Wingdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"8680","Unicode hex":"21E8"},{"Typeface name":"Wingdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"8679","Unicode hex":"21E7"},{"Typeface name":"Wingdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8681","Unicode hex":"21E9"},{"Typeface name":"Wingdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"11012","Unicode hex":"2B04"},{"Typeface name":"Wingdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"8691","Unicode hex":"21F3"},{"Typeface name":"Wingdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"11009","Unicode hex":"2B01"},{"Typeface name":"Wingdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11008","Unicode hex":"2B00"},{"Typeface name":"Wingdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11011","Unicode hex":"2B03"},{"Typeface name":"Wingdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"11010","Unicode hex":"2B02"},{"Typeface name":"Wingdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"129196","Unicode hex":"1F8AC"},{"Typeface name":"Wingdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"129197","Unicode hex":"1F8AD"},{"Typeface name":"Wingdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128502","Unicode hex":"1F5F6"},{"Typeface name":"Wingdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"10003","Unicode hex":"2713"},{"Typeface name":"Wingdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"128503","Unicode hex":"1F5F7"},{"Typeface name":"Wingdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"128505","Unicode hex":"1F5F9"},{"Typeface name":"Wingdings 2","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 2","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128394","Unicode hex":"1F58A"},{"Typeface name":"Wingdings 2","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128395","Unicode hex":"1F58B"},{"Typeface name":"Wingdings 2","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128396","Unicode hex":"1F58C"},{"Typeface name":"Wingdings 2","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128397","Unicode hex":"1F58D"},{"Typeface name":"Wingdings 2","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"9988","Unicode hex":"2704"},{"Typeface name":"Wingdings 2","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"9984","Unicode hex":"2700"},{"Typeface name":"Wingdings 2","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128382","Unicode hex":"1F57E"},{"Typeface name":"Wingdings 2","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128381","Unicode hex":"1F57D"},{"Typeface name":"Wingdings 2","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128453","Unicode hex":"1F5C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128454","Unicode hex":"1F5C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128455","Unicode hex":"1F5C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128456","Unicode hex":"1F5C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128457","Unicode hex":"1F5C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128458","Unicode hex":"1F5CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128459","Unicode hex":"1F5CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128460","Unicode hex":"1F5CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128461","Unicode hex":"1F5CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128465","Unicode hex":"1F5D1"},{"Typeface name":"Wingdings 2","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128468","Unicode hex":"1F5D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128437","Unicode hex":"1F5B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"128438","Unicode hex":"1F5B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128439","Unicode hex":"1F5B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128440","Unicode hex":"1F5B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128429","Unicode hex":"1F5AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128431","Unicode hex":"1F5AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128433","Unicode hex":"1F5B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128402","Unicode hex":"1F592"},{"Typeface name":"Wingdings 2","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128403","Unicode hex":"1F593"},{"Typeface name":"Wingdings 2","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128408","Unicode hex":"1F598"},{"Typeface name":"Wingdings 2","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128409","Unicode hex":"1F599"},{"Typeface name":"Wingdings 2","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128410","Unicode hex":"1F59A"},{"Typeface name":"Wingdings 2","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"128411","Unicode hex":"1F59B"},{"Typeface name":"Wingdings 2","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128072","Unicode hex":"1F448"},{"Typeface name":"Wingdings 2","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128073","Unicode hex":"1F449"},{"Typeface name":"Wingdings 2","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128412","Unicode hex":"1F59C"},{"Typeface name":"Wingdings 2","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"128413","Unicode hex":"1F59D"},{"Typeface name":"Wingdings 2","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"128414","Unicode hex":"1F59E"},{"Typeface name":"Wingdings 2","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"128415","Unicode hex":"1F59F"},{"Typeface name":"Wingdings 2","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"128416","Unicode hex":"1F5A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128417","Unicode hex":"1F5A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"128070","Unicode hex":"1F446"},{"Typeface name":"Wingdings 2","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128071","Unicode hex":"1F447"},{"Typeface name":"Wingdings 2","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128418","Unicode hex":"1F5A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128419","Unicode hex":"1F5A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128401","Unicode hex":"1F591"},{"Typeface name":"Wingdings 2","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128500","Unicode hex":"1F5F4"},{"Typeface name":"Wingdings 2","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"128504","Unicode hex":"1F5F8"},{"Typeface name":"Wingdings 2","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"128501","Unicode hex":"1F5F5"},{"Typeface name":"Wingdings 2","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9745","Unicode hex":"2611"},{"Typeface name":"Wingdings 2","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"11197","Unicode hex":"2BBD"},{"Typeface name":"Wingdings 2","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"9746","Unicode hex":"2612"},{"Typeface name":"Wingdings 2","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"11198","Unicode hex":"2BBE"},{"Typeface name":"Wingdings 2","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"11199","Unicode hex":"2BBF"},{"Typeface name":"Wingdings 2","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128711","Unicode hex":"1F6C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"128625","Unicode hex":"1F671"},{"Typeface name":"Wingdings 2","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"128628","Unicode hex":"1F674"},{"Typeface name":"Wingdings 2","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128626","Unicode hex":"1F672"},{"Typeface name":"Wingdings 2","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128627","Unicode hex":"1F673"},{"Typeface name":"Wingdings 2","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"8253","Unicode hex":"203D"},{"Typeface name":"Wingdings 2","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128633","Unicode hex":"1F679"},{"Typeface name":"Wingdings 2","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128634","Unicode hex":"1F67A"},{"Typeface name":"Wingdings 2","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"128635","Unicode hex":"1F67B"},{"Typeface name":"Wingdings 2","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"128614","Unicode hex":"1F666"},{"Typeface name":"Wingdings 2","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128612","Unicode hex":"1F664"},{"Typeface name":"Wingdings 2","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"128613","Unicode hex":"1F665"},{"Typeface name":"Wingdings 2","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128615","Unicode hex":"1F667"},{"Typeface name":"Wingdings 2","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128602","Unicode hex":"1F65A"},{"Typeface name":"Wingdings 2","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128600","Unicode hex":"1F658"},{"Typeface name":"Wingdings 2","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"128601","Unicode hex":"1F659"},{"Typeface name":"Wingdings 2","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128603","Unicode hex":"1F65B"},{"Typeface name":"Wingdings 2","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9450","Unicode hex":"24EA"},{"Typeface name":"Wingdings 2","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"9312","Unicode hex":"2460"},{"Typeface name":"Wingdings 2","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"9313","Unicode hex":"2461"},{"Typeface name":"Wingdings 2","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9314","Unicode hex":"2462"},{"Typeface name":"Wingdings 2","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"9315","Unicode hex":"2463"},{"Typeface name":"Wingdings 2","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9316","Unicode hex":"2464"},{"Typeface name":"Wingdings 2","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"9317","Unicode hex":"2465"},{"Typeface name":"Wingdings 2","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9318","Unicode hex":"2466"},{"Typeface name":"Wingdings 2","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9319","Unicode hex":"2467"},{"Typeface name":"Wingdings 2","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9320","Unicode hex":"2468"},{"Typeface name":"Wingdings 2","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9321","Unicode hex":"2469"},{"Typeface name":"Wingdings 2","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9471","Unicode hex":"24FF"},{"Typeface name":"Wingdings 2","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"10102","Unicode hex":"2776"},{"Typeface name":"Wingdings 2","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10103","Unicode hex":"2777"},{"Typeface name":"Wingdings 2","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"10104","Unicode hex":"2778"},{"Typeface name":"Wingdings 2","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10105","Unicode hex":"2779"},{"Typeface name":"Wingdings 2","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"10106","Unicode hex":"277A"},{"Typeface name":"Wingdings 2","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"10107","Unicode hex":"277B"},{"Typeface name":"Wingdings 2","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"10108","Unicode hex":"277C"},{"Typeface name":"Wingdings 2","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"10109","Unicode hex":"277D"},{"Typeface name":"Wingdings 2","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"10110","Unicode hex":"277E"},{"Typeface name":"Wingdings 2","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"10111","Unicode hex":"277F"},{"Typeface name":"Wingdings 2","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"9737","Unicode hex":"2609"},{"Typeface name":"Wingdings 2","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"127765","Unicode hex":"1F315"},{"Typeface name":"Wingdings 2","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"9789","Unicode hex":"263D"},{"Typeface name":"Wingdings 2","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"9790","Unicode hex":"263E"},{"Typeface name":"Wingdings 2","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11839","Unicode hex":"2E3F"},{"Typeface name":"Wingdings 2","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10013","Unicode hex":"271D"},{"Typeface name":"Wingdings 2","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"128327","Unicode hex":"1F547"},{"Typeface name":"Wingdings 2","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"128348","Unicode hex":"1F55C"},{"Typeface name":"Wingdings 2","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"128349","Unicode hex":"1F55D"},{"Typeface name":"Wingdings 2","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"128350","Unicode hex":"1F55E"},{"Typeface name":"Wingdings 2","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"128351","Unicode hex":"1F55F"},{"Typeface name":"Wingdings 2","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"128352","Unicode hex":"1F560"},{"Typeface name":"Wingdings 2","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"128353","Unicode hex":"1F561"},{"Typeface name":"Wingdings 2","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"128354","Unicode hex":"1F562"},{"Typeface name":"Wingdings 2","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128355","Unicode hex":"1F563"},{"Typeface name":"Wingdings 2","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128356","Unicode hex":"1F564"},{"Typeface name":"Wingdings 2","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128357","Unicode hex":"1F565"},{"Typeface name":"Wingdings 2","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128358","Unicode hex":"1F566"},{"Typeface name":"Wingdings 2","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"128359","Unicode hex":"1F567"},{"Typeface name":"Wingdings 2","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128616","Unicode hex":"1F668"},{"Typeface name":"Wingdings 2","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128617","Unicode hex":"1F669"},{"Typeface name":"Wingdings 2","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128900","Unicode hex":"1F784"},{"Typeface name":"Wingdings 2","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"10625","Unicode hex":"2981"},{"Typeface name":"Wingdings 2","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"9679","Unicode hex":"25CF"},{"Typeface name":"Wingdings 2","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"9675","Unicode hex":"25CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128901","Unicode hex":"1F785"},{"Typeface name":"Wingdings 2","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128903","Unicode hex":"1F787"},{"Typeface name":"Wingdings 2","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128905","Unicode hex":"1F789"},{"Typeface name":"Wingdings 2","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"8857","Unicode hex":"2299"},{"Typeface name":"Wingdings 2","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"10687","Unicode hex":"29BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128908","Unicode hex":"1F78C"},{"Typeface name":"Wingdings 2","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128909","Unicode hex":"1F78D"},{"Typeface name":"Wingdings 2","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"9726","Unicode hex":"25FE"},{"Typeface name":"Wingdings 2","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"9632","Unicode hex":"25A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"9633","Unicode hex":"25A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128913","Unicode hex":"1F791"},{"Typeface name":"Wingdings 2","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128914","Unicode hex":"1F792"},{"Typeface name":"Wingdings 2","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128915","Unicode hex":"1F793"},{"Typeface name":"Wingdings 2","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128916","Unicode hex":"1F794"},{"Typeface name":"Wingdings 2","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9635","Unicode hex":"25A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128917","Unicode hex":"1F795"},{"Typeface name":"Wingdings 2","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128918","Unicode hex":"1F796"},{"Typeface name":"Wingdings 2","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128919","Unicode hex":"1F797"},{"Typeface name":"Wingdings 2","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128920","Unicode hex":"1F798"},{"Typeface name":"Wingdings 2","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings 2","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"11045","Unicode hex":"2B25"},{"Typeface name":"Wingdings 2","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"9671","Unicode hex":"25C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"128922","Unicode hex":"1F79A"},{"Typeface name":"Wingdings 2","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"9672","Unicode hex":"25C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"128923","Unicode hex":"1F79B"},{"Typeface name":"Wingdings 2","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128924","Unicode hex":"1F79C"},{"Typeface name":"Wingdings 2","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"128925","Unicode hex":"1F79D"},{"Typeface name":"Wingdings 2","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128926","Unicode hex":"1F79E"},{"Typeface name":"Wingdings 2","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"11050","Unicode hex":"2B2A"},{"Typeface name":"Wingdings 2","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"11047","Unicode hex":"2B27"},{"Typeface name":"Wingdings 2","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128928","Unicode hex":"1F7A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"9686","Unicode hex":"25D6"},{"Typeface name":"Wingdings 2","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"9687","Unicode hex":"25D7"},{"Typeface name":"Wingdings 2","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"11210","Unicode hex":"2BCA"},{"Typeface name":"Wingdings 2","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"11211","Unicode hex":"2BCB"},{"Typeface name":"Wingdings 2","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"11200","Unicode hex":"2BC0"},{"Typeface name":"Wingdings 2","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"11201","Unicode hex":"2BC1"},{"Typeface name":"Wingdings 2","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"11039","Unicode hex":"2B1F"},{"Typeface name":"Wingdings 2","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"11202","Unicode hex":"2BC2"},{"Typeface name":"Wingdings 2","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"11043","Unicode hex":"2B23"},{"Typeface name":"Wingdings 2","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11042","Unicode hex":"2B22"},{"Typeface name":"Wingdings 2","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11203","Unicode hex":"2BC3"},{"Typeface name":"Wingdings 2","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11204","Unicode hex":"2BC4"},{"Typeface name":"Wingdings 2","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128929","Unicode hex":"1F7A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128930","Unicode hex":"1F7A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128931","Unicode hex":"1F7A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128932","Unicode hex":"1F7A4"},{"Typeface name":"Wingdings 2","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128933","Unicode hex":"1F7A5"},{"Typeface name":"Wingdings 2","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128934","Unicode hex":"1F7A6"},{"Typeface name":"Wingdings 2","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128935","Unicode hex":"1F7A7"},{"Typeface name":"Wingdings 2","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128936","Unicode hex":"1F7A8"},{"Typeface name":"Wingdings 2","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128937","Unicode hex":"1F7A9"},{"Typeface name":"Wingdings 2","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128938","Unicode hex":"1F7AA"},{"Typeface name":"Wingdings 2","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128939","Unicode hex":"1F7AB"},{"Typeface name":"Wingdings 2","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128940","Unicode hex":"1F7AC"},{"Typeface name":"Wingdings 2","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128941","Unicode hex":"1F7AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128942","Unicode hex":"1F7AE"},{"Typeface name":"Wingdings 2","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128943","Unicode hex":"1F7AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"128944","Unicode hex":"1F7B0"},{"Typeface name":"Wingdings 2","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"128945","Unicode hex":"1F7B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"128946","Unicode hex":"1F7B2"},{"Typeface name":"Wingdings 2","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"128947","Unicode hex":"1F7B3"},{"Typeface name":"Wingdings 2","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"128948","Unicode hex":"1F7B4"},{"Typeface name":"Wingdings 2","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"128949","Unicode hex":"1F7B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"128950","Unicode hex":"1F7B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"128951","Unicode hex":"1F7B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"128952","Unicode hex":"1F7B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"128953","Unicode hex":"1F7B9"},{"Typeface name":"Wingdings 2","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"128954","Unicode hex":"1F7BA"},{"Typeface name":"Wingdings 2","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"128955","Unicode hex":"1F7BB"},{"Typeface name":"Wingdings 2","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"128956","Unicode hex":"1F7BC"},{"Typeface name":"Wingdings 2","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128957","Unicode hex":"1F7BD"},{"Typeface name":"Wingdings 2","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128958","Unicode hex":"1F7BE"},{"Typeface name":"Wingdings 2","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"128959","Unicode hex":"1F7BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"128960","Unicode hex":"1F7C0"},{"Typeface name":"Wingdings 2","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128962","Unicode hex":"1F7C2"},{"Typeface name":"Wingdings 2","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128964","Unicode hex":"1F7C4"},{"Typeface name":"Wingdings 2","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"128966","Unicode hex":"1F7C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"128969","Unicode hex":"1F7C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128970","Unicode hex":"1F7CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"10038","Unicode hex":"2736"},{"Typeface name":"Wingdings 2","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"128972","Unicode hex":"1F7CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128974","Unicode hex":"1F7CE"},{"Typeface name":"Wingdings 2","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128976","Unicode hex":"1F7D0"},{"Typeface name":"Wingdings 2","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128978","Unicode hex":"1F7D2"},{"Typeface name":"Wingdings 2","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"10041","Unicode hex":"2739"},{"Typeface name":"Wingdings 2","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128963","Unicode hex":"1F7C3"},{"Typeface name":"Wingdings 2","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128967","Unicode hex":"1F7C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Wingdings 2","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128973","Unicode hex":"1F7CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128980","Unicode hex":"1F7D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11212","Unicode hex":"2BCC"},{"Typeface name":"Wingdings 2","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11213","Unicode hex":"2BCD"},{"Typeface name":"Wingdings 2","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"8251","Unicode hex":"203B"},{"Typeface name":"Wingdings 2","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"8258","Unicode hex":"2042"},{"Typeface name":"Wingdings 3","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 3","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"11104","Unicode hex":"2B60"},{"Typeface name":"Wingdings 3","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"11106","Unicode hex":"2B62"},{"Typeface name":"Wingdings 3","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"11105","Unicode hex":"2B61"},{"Typeface name":"Wingdings 3","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"11107","Unicode hex":"2B63"},{"Typeface name":"Wingdings 3","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"11110","Unicode hex":"2B66"},{"Typeface name":"Wingdings 3","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"11111","Unicode hex":"2B67"},{"Typeface name":"Wingdings 3","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"11113","Unicode hex":"2B69"},{"Typeface name":"Wingdings 3","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"11112","Unicode hex":"2B68"},{"Typeface name":"Wingdings 3","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"11120","Unicode hex":"2B70"},{"Typeface name":"Wingdings 3","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"11122","Unicode hex":"2B72"},{"Typeface name":"Wingdings 3","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"11121","Unicode hex":"2B71"},{"Typeface name":"Wingdings 3","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"11123","Unicode hex":"2B73"},{"Typeface name":"Wingdings 3","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"11126","Unicode hex":"2B76"},{"Typeface name":"Wingdings 3","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"11128","Unicode hex":"2B78"},{"Typeface name":"Wingdings 3","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"11131","Unicode hex":"2B7B"},{"Typeface name":"Wingdings 3","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"11133","Unicode hex":"2B7D"},{"Typeface name":"Wingdings 3","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"11108","Unicode hex":"2B64"},{"Typeface name":"Wingdings 3","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"11109","Unicode hex":"2B65"},{"Typeface name":"Wingdings 3","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"11114","Unicode hex":"2B6A"},{"Typeface name":"Wingdings 3","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"11116","Unicode hex":"2B6C"},{"Typeface name":"Wingdings 3","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"11115","Unicode hex":"2B6B"},{"Typeface name":"Wingdings 3","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"11117","Unicode hex":"2B6D"},{"Typeface name":"Wingdings 3","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"11085","Unicode hex":"2B4D"},{"Typeface name":"Wingdings 3","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"11168","Unicode hex":"2BA0"},{"Typeface name":"Wingdings 3","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"11169","Unicode hex":"2BA1"},{"Typeface name":"Wingdings 3","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"11170","Unicode hex":"2BA2"},{"Typeface name":"Wingdings 3","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"11171","Unicode hex":"2BA3"},{"Typeface name":"Wingdings 3","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"11172","Unicode hex":"2BA4"},{"Typeface name":"Wingdings 3","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"11173","Unicode hex":"2BA5"},{"Typeface name":"Wingdings 3","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"11174","Unicode hex":"2BA6"},{"Typeface name":"Wingdings 3","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"11175","Unicode hex":"2BA7"},{"Typeface name":"Wingdings 3","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"11152","Unicode hex":"2B90"},{"Typeface name":"Wingdings 3","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"11153","Unicode hex":"2B91"},{"Typeface name":"Wingdings 3","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"11154","Unicode hex":"2B92"},{"Typeface name":"Wingdings 3","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"11155","Unicode hex":"2B93"},{"Typeface name":"Wingdings 3","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"11136","Unicode hex":"2B80"},{"Typeface name":"Wingdings 3","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"11139","Unicode hex":"2B83"},{"Typeface name":"Wingdings 3","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"11134","Unicode hex":"2B7E"},{"Typeface name":"Wingdings 3","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"11135","Unicode hex":"2B7F"},{"Typeface name":"Wingdings 3","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"11140","Unicode hex":"2B84"},{"Typeface name":"Wingdings 3","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"11142","Unicode hex":"2B86"},{"Typeface name":"Wingdings 3","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"11141","Unicode hex":"2B85"},{"Typeface name":"Wingdings 3","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"11143","Unicode hex":"2B87"},{"Typeface name":"Wingdings 3","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"11151","Unicode hex":"2B8F"},{"Typeface name":"Wingdings 3","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"11149","Unicode hex":"2B8D"},{"Typeface name":"Wingdings 3","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"11150","Unicode hex":"2B8E"},{"Typeface name":"Wingdings 3","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"11148","Unicode hex":"2B8C"},{"Typeface name":"Wingdings 3","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"11118","Unicode hex":"2B6E"},{"Typeface name":"Wingdings 3","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"11119","Unicode hex":"2B6F"},{"Typeface name":"Wingdings 3","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9099","Unicode hex":"238B"},{"Typeface name":"Wingdings 3","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"8996","Unicode hex":"2324"},{"Typeface name":"Wingdings 3","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"8963","Unicode hex":"2303"},{"Typeface name":"Wingdings 3","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"8997","Unicode hex":"2325"},{"Typeface name":"Wingdings 3","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"9251","Unicode hex":"2423"},{"Typeface name":"Wingdings 3","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"9085","Unicode hex":"237D"},{"Typeface name":"Wingdings 3","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"8682","Unicode hex":"21EA"},{"Typeface name":"Wingdings 3","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"11192","Unicode hex":"2BB8"},{"Typeface name":"Wingdings 3","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"129184","Unicode hex":"1F8A0"},{"Typeface name":"Wingdings 3","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"129185","Unicode hex":"1F8A1"},{"Typeface name":"Wingdings 3","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"129186","Unicode hex":"1F8A2"},{"Typeface name":"Wingdings 3","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"129187","Unicode hex":"1F8A3"},{"Typeface name":"Wingdings 3","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"129188","Unicode hex":"1F8A4"},{"Typeface name":"Wingdings 3","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"129189","Unicode hex":"1F8A5"},{"Typeface name":"Wingdings 3","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"129190","Unicode hex":"1F8A6"},{"Typeface name":"Wingdings 3","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"129191","Unicode hex":"1F8A7"},{"Typeface name":"Wingdings 3","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"129192","Unicode hex":"1F8A8"},{"Typeface name":"Wingdings 3","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"129193","Unicode hex":"1F8A9"},{"Typeface name":"Wingdings 3","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"129194","Unicode hex":"1F8AA"},{"Typeface name":"Wingdings 3","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"129195","Unicode hex":"1F8AB"},{"Typeface name":"Wingdings 3","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"129104","Unicode hex":"1F850"},{"Typeface name":"Wingdings 3","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"129106","Unicode hex":"1F852"},{"Typeface name":"Wingdings 3","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"129105","Unicode hex":"1F851"},{"Typeface name":"Wingdings 3","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"129107","Unicode hex":"1F853"},{"Typeface name":"Wingdings 3","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"129108","Unicode hex":"1F854"},{"Typeface name":"Wingdings 3","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"129109","Unicode hex":"1F855"},{"Typeface name":"Wingdings 3","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"129111","Unicode hex":"1F857"},{"Typeface name":"Wingdings 3","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"129110","Unicode hex":"1F856"},{"Typeface name":"Wingdings 3","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"129112","Unicode hex":"1F858"},{"Typeface name":"Wingdings 3","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"129113","Unicode hex":"1F859"},{"Typeface name":"Wingdings 3","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9650","Unicode hex":"25B2"},{"Typeface name":"Wingdings 3","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9660","Unicode hex":"25BC"},{"Typeface name":"Wingdings 3","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9651","Unicode hex":"25B3"},{"Typeface name":"Wingdings 3","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9661","Unicode hex":"25BD"},{"Typeface name":"Wingdings 3","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9664","Unicode hex":"25C0"},{"Typeface name":"Wingdings 3","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9654","Unicode hex":"25B6"},{"Typeface name":"Wingdings 3","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"9665","Unicode hex":"25C1"},{"Typeface name":"Wingdings 3","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9655","Unicode hex":"25B7"},{"Typeface name":"Wingdings 3","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"9699","Unicode hex":"25E3"},{"Typeface name":"Wingdings 3","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"9698","Unicode hex":"25E2"},{"Typeface name":"Wingdings 3","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"9700","Unicode hex":"25E4"},{"Typeface name":"Wingdings 3","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"9701","Unicode hex":"25E5"},{"Typeface name":"Wingdings 3","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"128896","Unicode hex":"1F780"},{"Typeface name":"Wingdings 3","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128898","Unicode hex":"1F782"},{"Typeface name":"Wingdings 3","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128897","Unicode hex":"1F781"},{"Typeface name":"Wingdings 3","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128899","Unicode hex":"1F783"},{"Typeface name":"Wingdings 3","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"11205","Unicode hex":"2BC5"},{"Typeface name":"Wingdings 3","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"11206","Unicode hex":"2BC6"},{"Typeface name":"Wingdings 3","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"11207","Unicode hex":"2BC7"},{"Typeface name":"Wingdings 3","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11208","Unicode hex":"2BC8"},{"Typeface name":"Wingdings 3","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"11164","Unicode hex":"2B9C"},{"Typeface name":"Wingdings 3","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"11166","Unicode hex":"2B9E"},{"Typeface name":"Wingdings 3","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"11165","Unicode hex":"2B9D"},{"Typeface name":"Wingdings 3","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"11167","Unicode hex":"2B9F"},{"Typeface name":"Wingdings 3","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"129040","Unicode hex":"1F810"},{"Typeface name":"Wingdings 3","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"129042","Unicode hex":"1F812"},{"Typeface name":"Wingdings 3","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"129041","Unicode hex":"1F811"},{"Typeface name":"Wingdings 3","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"129043","Unicode hex":"1F813"},{"Typeface name":"Wingdings 3","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"129044","Unicode hex":"1F814"},{"Typeface name":"Wingdings 3","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"129046","Unicode hex":"1F816"},{"Typeface name":"Wingdings 3","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"129045","Unicode hex":"1F815"},{"Typeface name":"Wingdings 3","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"129047","Unicode hex":"1F817"},{"Typeface name":"Wingdings 3","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"129048","Unicode hex":"1F818"},{"Typeface name":"Wingdings 3","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"129050","Unicode hex":"1F81A"},{"Typeface name":"Wingdings 3","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"129049","Unicode hex":"1F819"},{"Typeface name":"Wingdings 3","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"129051","Unicode hex":"1F81B"},{"Typeface name":"Wingdings 3","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"129052","Unicode hex":"1F81C"},{"Typeface name":"Wingdings 3","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"129054","Unicode hex":"1F81E"},{"Typeface name":"Wingdings 3","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"129053","Unicode hex":"1F81D"},{"Typeface name":"Wingdings 3","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"129055","Unicode hex":"1F81F"},{"Typeface name":"Wingdings 3","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"129024","Unicode hex":"1F800"},{"Typeface name":"Wingdings 3","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"129026","Unicode hex":"1F802"},{"Typeface name":"Wingdings 3","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"129025","Unicode hex":"1F801"},{"Typeface name":"Wingdings 3","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"129027","Unicode hex":"1F803"},{"Typeface name":"Wingdings 3","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"129028","Unicode hex":"1F804"},{"Typeface name":"Wingdings 3","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"129030","Unicode hex":"1F806"},{"Typeface name":"Wingdings 3","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"129029","Unicode hex":"1F805"},{"Typeface name":"Wingdings 3","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"129031","Unicode hex":"1F807"},{"Typeface name":"Wingdings 3","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"129032","Unicode hex":"1F808"},{"Typeface name":"Wingdings 3","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"129034","Unicode hex":"1F80A"},{"Typeface name":"Wingdings 3","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"129033","Unicode hex":"1F809"},{"Typeface name":"Wingdings 3","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"129035","Unicode hex":"1F80B"},{"Typeface name":"Wingdings 3","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"129056","Unicode hex":"1F820"},{"Typeface name":"Wingdings 3","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"129058","Unicode hex":"1F822"},{"Typeface name":"Wingdings 3","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"129060","Unicode hex":"1F824"},{"Typeface name":"Wingdings 3","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"129062","Unicode hex":"1F826"},{"Typeface name":"Wingdings 3","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"129064","Unicode hex":"1F828"},{"Typeface name":"Wingdings 3","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"129066","Unicode hex":"1F82A"},{"Typeface name":"Wingdings 3","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"129068","Unicode hex":"1F82C"},{"Typeface name":"Wingdings 3","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"129180","Unicode hex":"1F89C"},{"Typeface name":"Wingdings 3","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"129181","Unicode hex":"1F89D"},{"Typeface name":"Wingdings 3","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"129182","Unicode hex":"1F89E"},{"Typeface name":"Wingdings 3","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"129183","Unicode hex":"1F89F"},{"Typeface name":"Wingdings 3","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"129070","Unicode hex":"1F82E"},{"Typeface name":"Wingdings 3","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"129072","Unicode hex":"1F830"},{"Typeface name":"Wingdings 3","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"129074","Unicode hex":"1F832"},{"Typeface name":"Wingdings 3","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"129076","Unicode hex":"1F834"},{"Typeface name":"Wingdings 3","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"129078","Unicode hex":"1F836"},{"Typeface name":"Wingdings 3","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"129080","Unicode hex":"1F838"},{"Typeface name":"Wingdings 3","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"129082","Unicode hex":"1F83A"},{"Typeface name":"Wingdings 3","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"129081","Unicode hex":"1F839"},{"Typeface name":"Wingdings 3","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"129083","Unicode hex":"1F83B"},{"Typeface name":"Wingdings 3","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"129176","Unicode hex":"1F898"},{"Typeface name":"Wingdings 3","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"129178","Unicode hex":"1F89A"},{"Typeface name":"Wingdings 3","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"129177","Unicode hex":"1F899"},{"Typeface name":"Wingdings 3","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"129179","Unicode hex":"1F89B"},{"Typeface name":"Wingdings 3","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"129084","Unicode hex":"1F83C"},{"Typeface name":"Wingdings 3","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"129086","Unicode hex":"1F83E"},{"Typeface name":"Wingdings 3","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"129085","Unicode hex":"1F83D"},{"Typeface name":"Wingdings 3","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"129087","Unicode hex":"1F83F"},{"Typeface name":"Wingdings 3","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"129088","Unicode hex":"1F840"},{"Typeface name":"Wingdings 3","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"129090","Unicode hex":"1F842"},{"Typeface name":"Wingdings 3","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"129089","Unicode hex":"1F841"},{"Typeface name":"Wingdings 3","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"129091","Unicode hex":"1F843"},{"Typeface name":"Wingdings 3","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"129092","Unicode hex":"1F844"},{"Typeface name":"Wingdings 3","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"129094","Unicode hex":"1F846"},{"Typeface name":"Wingdings 3","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"129093","Unicode hex":"1F845"},{"Typeface name":"Wingdings 3","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"129095","Unicode hex":"1F847"},{"Typeface name":"Wingdings 3","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11176","Unicode hex":"2BA8"},{"Typeface name":"Wingdings 3","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11177","Unicode hex":"2BA9"},{"Typeface name":"Wingdings 3","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"11178","Unicode hex":"2BAA"},{"Typeface name":"Wingdings 3","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"11179","Unicode hex":"2BAB"},{"Typeface name":"Wingdings 3","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"11180","Unicode hex":"2BAC"},{"Typeface name":"Wingdings 3","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"11181","Unicode hex":"2BAD"},{"Typeface name":"Wingdings 3","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"11182","Unicode hex":"2BAE"},{"Typeface name":"Wingdings 3","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"11183","Unicode hex":"2BAF"},{"Typeface name":"Wingdings 3","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"129120","Unicode hex":"1F860"},{"Typeface name":"Wingdings 3","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"129122","Unicode hex":"1F862"},{"Typeface name":"Wingdings 3","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"129121","Unicode hex":"1F861"},{"Typeface name":"Wingdings 3","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"129123","Unicode hex":"1F863"},{"Typeface name":"Wingdings 3","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"129124","Unicode hex":"1F864"},{"Typeface name":"Wingdings 3","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"129125","Unicode hex":"1F865"},{"Typeface name":"Wingdings 3","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"129127","Unicode hex":"1F867"},{"Typeface name":"Wingdings 3","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"129126","Unicode hex":"1F866"},{"Typeface name":"Wingdings 3","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"129136","Unicode hex":"1F870"},{"Typeface name":"Wingdings 3","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"129138","Unicode hex":"1F872"},{"Typeface name":"Wingdings 3","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"129137","Unicode hex":"1F871"},{"Typeface name":"Wingdings 3","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"129139","Unicode hex":"1F873"},{"Typeface name":"Wingdings 3","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"129140","Unicode hex":"1F874"},{"Typeface name":"Wingdings 3","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"129141","Unicode hex":"1F875"},{"Typeface name":"Wingdings 3","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129143","Unicode hex":"1F877"},{"Typeface name":"Wingdings 3","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129142","Unicode hex":"1F876"},{"Typeface name":"Wingdings 3","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129152","Unicode hex":"1F880"},{"Typeface name":"Wingdings 3","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129154","Unicode hex":"1F882"},{"Typeface name":"Wingdings 3","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129153","Unicode hex":"1F881"},{"Typeface name":"Wingdings 3","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129155","Unicode hex":"1F883"},{"Typeface name":"Wingdings 3","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129156","Unicode hex":"1F884"},{"Typeface name":"Wingdings 3","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129157","Unicode hex":"1F885"},{"Typeface name":"Wingdings 3","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129159","Unicode hex":"1F887"},{"Typeface name":"Wingdings 3","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129158","Unicode hex":"1F886"},{"Typeface name":"Wingdings 3","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129168","Unicode hex":"1F890"},{"Typeface name":"Wingdings 3","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129170","Unicode hex":"1F892"},{"Typeface name":"Wingdings 3","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129169","Unicode hex":"1F891"},{"Typeface name":"Wingdings 3","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129171","Unicode hex":"1F893"},{"Typeface name":"Wingdings 3","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129172","Unicode hex":"1F894"},{"Typeface name":"Wingdings 3","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129174","Unicode hex":"1F896"},{"Typeface name":"Wingdings 3","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"129173","Unicode hex":"1F895"},{"Typeface name":"Wingdings 3","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"129175","Unicode hex":"1F897"}];Cg.default=_V;var EV=ot&&ot.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(us,"__esModule",{value:!0});us.hex=us.dec=us.codePoint=void 0;var AV=EV(Cg),_8={},TV=String.fromCodePoint?String.fromCodePoint:OV;for(var Og=0,E8=AV.default;Og<E8.length;Og++){var Ig=E8[Og],A8=parseInt(Ig["Unicode dec"],10),SV={codePoint:A8,string:TV(A8)};_8[Ig["Typeface name"].toUpperCase()+"_"+Ig["Dingbat dec"]]=SV}function kg(r,t){return _8[r.toUpperCase()+"_"+t]}us.codePoint=kg;function DV(r,t){return kg(r,parseInt(t,10))}us.dec=DV;function CV(r,t){return kg(r,parseInt(t,16))}us.hex=CV;function OV(r){if(r<=65535)return String.fromCharCode(r);var t=Math.floor((r-65536)/1024)+55296,e=(r-65536)%1024+56320;return String.fromCharCode(t,e)}var Rg={};Rg.uriToZipEntryName=IV;Rg.replaceFragment=kV;function IV(r,t){return t.charAt(0)==="/"?t.substr(1):r+"/"+t}function kV(r,t){var e=r.indexOf("#");return e!==-1&&(r=r.substring(0,e)),r+"#"+t}Dg.createBodyReader=RV;Dg._readNumberingProperties=O8;var T8=us,oa=on.exports,pn=pr,S8=$i.Result,Oo=$i.warning,D8=Rg;function RV(r){return{readXmlElement:function(t){return new C8(r).readXmlElement(t)},readXmlElements:function(t){return new C8(r).readXmlElements(t)}}}function C8(r){var t=[],e=[],n=[],i=r.relationships,a=r.contentTypes,o=r.docxFile,s=r.files,u=r.numbering,c=r.styles;function l(V){var J=V.map(d);return I8(J)}function d(V){if(V.type==="element"){var J=S[V.name];if(J)return J(V);if(!Object.prototype.hasOwnProperty.call(NV,V.name)){var re=Oo("An unrecognised element was ignored: "+V.name);return Hl([re])}}return $l()}function h(V){return v(V).map(function(J){return{type:"paragraphProperties",styleId:J.styleId,styleName:J.name,alignment:V.firstOrEmpty("w:jc").attributes["w:val"],numbering:O8(J.styleId,V.firstOrEmpty("w:numPr"),u),indent:f(V.firstOrEmpty("w:ind"))}})}function f(V){return{start:V.attributes["w:start"]||V.attributes["w:left"],end:V.attributes["w:end"]||V.attributes["w:right"],firstLine:V.attributes["w:firstLine"],hanging:V.attributes["w:hanging"]}}function g(V){return b(V).map(function(J){var re=V.firstOrEmpty("w:sz").attributes["w:val"],ae=/^[0-9]+$/.test(re)?parseInt(re,10)/2:null;return{type:"runProperties",styleId:J.styleId,styleName:J.name,verticalAlignment:V.firstOrEmpty("w:vertAlign").attributes["w:val"],font:V.firstOrEmpty("w:rFonts").attributes["w:ascii"],fontSize:ae,isBold:p(V.first("w:b")),isUnderline:m(V.first("w:u")),isItalic:p(V.first("w:i")),isStrikethrough:p(V.first("w:strike")),isAllCaps:p(V.first("w:caps")),isSmallCaps:p(V.first("w:smallCaps")),highlight:y(V.firstOrEmpty("w:highlight").attributes["w:val"])}})}function m(V){if(V){var J=V.attributes["w:val"];return J!==void 0&&J!=="false"&&J!=="0"&&J!=="none"}else return!1}function p(V){if(V){var J=V.attributes["w:val"];return J!=="false"&&J!=="0"}else return!1}function y(V){return!V||V==="none"?null:V}function v(V){return C(V,"w:pStyle","Paragraph",c.findParagraphStyleById)}function b(V){return C(V,"w:rStyle","Run",c.findCharacterStyleById)}function A(V){return C(V,"w:tblStyle","Table",c.findTableStyleById)}function C(V,J,re,ae){var j=[],ue=V.first(J),Q=null,P=null;if(ue&&(Q=ue.attributes["w:val"],Q)){var H=ae(Q);H?P=H.name:j.push(L(re,Q))}return xd({styleId:Q,name:P},j)}var M={type:"unknown"};function z(V){var J=V.attributes["w:fldCharType"];if(J==="begin")t.push(M),e=[];else if(J==="end")t.pop();else if(J==="separate"){var re=U(e.join("")),ae=re===null?M:{type:"hyperlink",options:re};t.pop(),t.push(ae)}return $l()}function W(){var V=oa.last(t.filter(function(J){return J.type==="hyperlink"}));return V?V.options:null}function U(V){var J=/\s*HYPERLINK "(.*)"/.exec(V);if(J)return{href:J[1]};var re=/\s*HYPERLINK\s+\\l\s+"(.*)"/.exec(V);return re?{anchor:re[1]}:null}function G(V){return e.push(V.text()),$l()}function ee(V){var J=V.attributes["w:font"],re=V.attributes["w:char"],ae=T8.hex(J,re);return ae==null&&/^F0..$/.test(re)&&(ae=T8.hex(J,re.substring(2))),ae==null?Hl([Oo("A w:sym element with an unsupported character was ignored: char "+re+" in font "+J)]):sa(new pn.Text(ae.string))}function I(V){return function(J){var re=J.attributes["w:id"];return sa(new pn.NoteReference({noteType:V,noteId:re}))}}function O(V){return sa(pn.commentReference({commentId:V.attributes["w:id"]}))}function T(V){return l(V.children)}var S={"w:p":function(V){var J=V.firstOrEmpty("w:pPr"),re=!!J.firstOrEmpty("w:rPr").first("w:del");if(re)return V.children.forEach(function(j){n.push(j)}),$l();var ae=V.children;return n.length>0&&(ae=n.concat(ae),n=[]),qn.map(h(J),l(ae),function(j,ue){return new pn.Paragraph(ue,j)}).insertExtra()},"w:r":function(V){return qn.map(g(V.firstOrEmpty("w:rPr")),l(V.children),function(J,re){var ae=W();return ae!==null&&(re=[new pn.Hyperlink(re,ae)]),new pn.Run(re,J)})},"w:fldChar":z,"w:instrText":G,"w:t":function(V){return sa(new pn.Text(V.text()))},"w:tab":function(V){return sa(new pn.Tab)},"w:noBreakHyphen":function(){return sa(new pn.Text("\u2011"))},"w:softHyphen":function(V){return sa(new pn.Text("\xAD"))},"w:sym":ee,"w:hyperlink":function(V){var J=V.attributes["r:id"],re=V.attributes["w:anchor"];return l(V.children).map(function(ae){function j(Q){var P=V.attributes["w:tgtFrame"]||null;return new pn.Hyperlink(ae,oa.extend({targetFrame:P},Q))}if(J){var ue=i.findTargetByRelationshipId(J);return re&&(ue=D8.replaceFragment(ue,re)),j({href:ue})}else return re?j({anchor:re}):ae})},"w:tbl":x,"w:tr":_,"w:tc":E,"w:footnoteReference":I("footnote"),"w:endnoteReference":I("endnote"),"w:commentReference":O,"w:br":function(V){var J=V.attributes["w:type"];return J==null||J==="textWrapping"?sa(pn.lineBreak):J==="page"?sa(pn.pageBreak):J==="column"?sa(pn.columnBreak):Hl([Oo("Unsupported break type: "+J)])},"w:bookmarkStart":function(V){var J=V.attributes["w:name"];return J==="_GoBack"?$l():sa(new pn.BookmarkStart({name:J}))},"mc:AlternateContent":function(V){return T(V.first("mc:Fallback"))},"w:sdt":function(V){return l(V.firstOrEmpty("w:sdtContent").children)},"w:ins":T,"w:object":T,"w:smartTag":T,"w:drawing":T,"w:pict":function(V){return T(V).toExtra()},"v:roundrect":T,"v:shape":T,"v:textbox":T,"w:txbxContent":T,"wp:inline":B,"wp:anchor":B,"v:imagedata":$,"v:group":T,"v:rect":T};return{readXmlElement:d,readXmlElements:l};function x(V){var J=w(V.firstOrEmpty("w:tblPr"));return l(V.children).flatMap(F).flatMap(function(re){return J.map(function(ae){return pn.Table(re,ae)})})}function w(V){return A(V).map(function(J){return{styleId:J.styleId,styleName:J.name}})}function _(V){var J=V.firstOrEmpty("w:trPr"),re=!!J.first("w:tblHeader");return l(V.children).map(function(ae){return pn.TableRow(ae,{isHeader:re})})}function E(V){return l(V.children).map(function(J){var re=V.firstOrEmpty("w:tcPr"),ae=re.firstOrEmpty("w:gridSpan").attributes["w:val"],j=ae?parseInt(ae,10):1,ue=pn.TableCell(J,{colSpan:j});return ue._vMerge=R(re),ue})}function R(V){var J=V.first("w:vMerge");if(J){var re=J.attributes["w:val"];return re==="continue"||!re}else return null}function F(V){var J=oa.any(V,function(j){return j.type!==pn.types.tableRow});if(J)return xd(V,[Oo("unexpected non-row element in table, cell merging may be incorrect")]);var re=oa.any(V,function(j){return oa.any(j.children,function(ue){return ue.type!==pn.types.tableCell})});if(re)return xd(V,[Oo("unexpected non-cell element in table row, cell merging may be incorrect")]);var ae={};return V.forEach(function(j){var ue=0;j.children.forEach(function(Q){Q._vMerge&&ae[ue]?ae[ue].rowSpan++:(ae[ue]=Q,Q._vMerge=!1),ue+=Q.colSpan})}),V.forEach(function(j){j.children=j.children.filter(function(ue){return!ue._vMerge}),j.children.forEach(function(ue){delete ue._vMerge})}),sa(V)}function B(V){var J=V.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return I8(J.map(X.bind(null,V)))}function X(V,J){var re=V.first("wp:docPr").attributes,ae=K(re.descr)?re.title:re.descr,j=te(J);return j===null?Hl([Oo("Could not find image file for a:blip element")]):k(j,ae)}function K(V){return V==null||/^\s*$/.test(V)}function te(V){var J=V.attributes["r:embed"],re=V.attributes["r:link"];if(J)return q(J);if(re){var ae=i.findTargetByRelationshipId(re);return{path:ae,read:s.read.bind(s,ae)}}else return null}function $(V){var J=V.attributes["r:id"];return J?k(q(J),V.attributes["o:title"]):Hl([Oo("A v:imagedata element without a relationship ID was ignored")])}function q(V){var J=D8.uriToZipEntryName("word",i.findTargetByRelationshipId(V));return{path:J,read:o.read.bind(o,J)}}function k(V,J){var re=a.findContentType(V.path),ae=pn.Image({readImage:V.read,altText:J,contentType:re}),j=FV[re]?[]:Oo("Image of type "+re+" is unlikely to display in web browsers");return xd(ae,j)}function L(V,J){return Oo(V+" style with ID "+J+" was referenced but not defined in the document")}}function O8(r,t,e){var n=t.firstOrEmpty("w:ilvl").attributes["w:val"],i=t.firstOrEmpty("w:numId").attributes["w:val"];if(n!==void 0&&i!==void 0)return e.findLevel(i,n);if(r!=null){var a=e.findLevelByParagraphStyleId(r);if(a!=null)return a}return null}var FV={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},NV={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function Hl(r){return new qn(null,null,r)}function $l(){return new qn(null)}function sa(r){return new qn(r)}function xd(r,t){return new qn(r,null,t)}function qn(r,t,e){this.value=r||[],this.extra=t||[],this._result=new S8({element:this.value,extra:t},e),this.messages=this._result.messages}qn.prototype.toExtra=function(){return new qn(null,_d(this.extra,this.value),this.messages)};qn.prototype.insertExtra=function(){var r=this.extra;return r&&r.length?new qn(_d(this.value,r),null,this.messages):this};qn.prototype.map=function(r){var t=this._result.map(function(e){return r(e.element)});return new qn(t.value,this.extra,t.messages)};qn.prototype.flatMap=function(r){var t=this._result.flatMap(function(e){return r(e.element)._result});return new qn(t.value.element,_d(this.extra,t.value.extra),t.messages)};qn.map=function(r,t,e){return new qn(e(r.value,t.value),_d(r.extra,t.extra),r.messages.concat(t.messages))};function I8(r){var t=S8.combine(oa.pluck(r,"_result"));return new qn(oa.flatten(oa.pluck(t.value,"element")),oa.filter(oa.flatten(oa.pluck(t.value,"extra")),MV),t.messages)}function _d(r,t){return oa.flatten([r,t])}function MV(r){return r}var k8={};k8.DocumentXmlReader=PV;var BV=pr,UV=$i.Result;function PV(r){var t=r.bodyReader;function e(n){var i=n.first("w:body");if(i==null)throw new Error("Could not find the body element: are you sure this is a docx file?");var a=t.readXmlElements(i.children).map(function(o){return new BV.Document(o,{notes:r.notes,comments:r.comments})});return new UV(a.value,a.messages)}return{convertXmlToDocument:e}}var Ed={};Ed.readRelationships=LV;Ed.defaultValue=new Fg([]);Ed.Relationships=Fg;function LV(r){var t=[];return r.children.forEach(function(e){if(e.name==="relationships:Relationship"){var n={relationshipId:e.attributes.Id,target:e.attributes.Target,type:e.attributes.Type};t.push(n)}}),new Fg(t)}function Fg(r){var t={};r.forEach(function(n){t[n.relationshipId]=n.target});var e={};return r.forEach(function(n){e[n.type]||(e[n.type]=[]),e[n.type].push(n.target)}),{findTargetByRelationshipId:function(n){return t[n]},findTargetsByType:function(n){return e[n]||[]}}}var Ng={};Ng.readContentTypesFromXml=WV;var jV={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};Ng.defaultContentTypes=R8({},{});function WV(r){var t={},e={};return r.children.forEach(function(n){if(n.name==="content-types:Default"&&(t[n.attributes.Extension]=n.attributes.ContentType),n.name==="content-types:Override"){var i=n.attributes.PartName;i.charAt(0)==="/"&&(i=i.substring(1)),e[i]=n.attributes.ContentType}}),R8(e,t)}function R8(r,t){return{findContentType:function(e){var n=r[e];if(n)return n;var i=e.split("."),a=i[i.length-1];if(t.hasOwnProperty(a))return t[a];var o=jV[a.toLowerCase()];return o?"image/"+o:null}}}var Ad={},Td=on.exports;Ad.readNumberingXml=zV;Ad.Numbering=Mg;Ad.defaultNumbering=new Mg({},{});function Mg(r,t,e){var n=Td.flatten(Td.values(t).map(function(s){return Td.values(s.levels)})),i=Td.indexBy(n.filter(function(s){return s.paragraphStyleId!=null}),"paragraphStyleId");function a(s,u){var c=r[s];if(c){var l=t[c.abstractNumId];if(l){if(l.numStyleLink==null)return t[c.abstractNumId].levels[u];var d=e.findNumberingStyleById(l.numStyleLink);return a(d.numId,u)}else return null}else return null}function o(s){return i[s]||null}return{findLevel:a,findLevelByParagraphStyleId:o}}function zV(r,t){if(!t||!t.styles)throw new Error("styles is missing");var e=HV(r),n=VV(r);return new Mg(n,e,t.styles)}function HV(r){var t={};return r.getElementsByTagName("w:abstractNum").forEach(function(e){var n=e.attributes["w:abstractNumId"];t[n]=$V(e)}),t}function $V(r){var t={};r.getElementsByTagName("w:lvl").forEach(function(n){var i=n.attributes["w:ilvl"],a=n.firstOrEmpty("w:numFmt").attributes["w:val"],o=n.firstOrEmpty("w:pStyle").attributes["w:val"];t[i]={isOrdered:a!=="bullet",level:i,paragraphStyleId:o}});var e=r.firstOrEmpty("w:numStyleLink").attributes["w:val"];return{levels:t,numStyleLink:e}}function VV(r){var t={};return r.getElementsByTagName("w:num").forEach(function(e){var n=e.attributes["w:numId"],i=e.first("w:abstractNumId").attributes["w:val"];t[n]={abstractNumId:i}}),t}var Sd={};Sd.readStylesXml=qV;Sd.Styles=Vl;Sd.defaultStyles=new Vl({},{});function Vl(r,t,e,n){return{findParagraphStyleById:function(i){return r[i]},findCharacterStyleById:function(i){return t[i]},findTableStyleById:function(i){return e[i]},findNumberingStyleById:function(i){return n[i]}}}Vl.EMPTY=new Vl({},{},{},{});function qV(r){var t={},e={},n={},i={},a={paragraph:t,character:e,table:n};return r.getElementsByTagName("w:style").forEach(function(o){var s=GV(o);if(s.type==="numbering")i[s.styleId]=KV(o);else{var u=a[s.type];u&&(u[s.styleId]=s)}}),new Vl(t,e,n,i)}function GV(r){var t=r.attributes["w:type"],e=r.attributes["w:styleId"],n=XV(r);return{type:t,styleId:e,name:n}}function XV(r){var t=r.first("w:name");return t?t.attributes["w:val"]:null}function KV(r){var t=r.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{numId:t}}var Bg={},ZV=pr,YV=$i.Result;Bg.createFootnotesReader=F8.bind(ot,"footnote");Bg.createEndnotesReader=F8.bind(ot,"endnote");function F8(r,t){function e(a){return YV.combine(a.getElementsByTagName("w:"+r).filter(n).map(i))}function n(a){var o=a.attributes["w:type"];return o!=="continuationSeparator"&&o!=="separator"}function i(a){var o=a.attributes["w:id"];return t.readXmlElements(a.children).map(function(s){return ZV.Note({noteType:r,noteId:o,body:s})})}return e}var N8={},JV=pr,QV=$i.Result;function eq(r){function t(n){return QV.combine(n.getElementsByTagName("w:comment").map(e))}function e(n){var i=n.attributes["w:id"];function a(o){return(n.attributes[o]||"").trim()||null}return r.readXmlElements(n.children).map(function(o){return JV.comment({commentId:i,body:o,authorName:a("w:author"),authorInitials:a("w:initials")})})}return t}N8.createCommentsReader=eq;var M8={},tq=Un;M8.Files=rq;function rq(){function r(t){return tq.reject(new Error("could not open external image: '"+t+`'
cannot open linked files from a web browser`))}return{read:r}}$m.read=uq;$m._findPartPaths=z8;var nq=Un,iq=pr,Ug=$i.Result,Dd=yl,B8=og.readXmlFromZipFile,aq=Dg.createBodyReader,oq=k8.DocumentXmlReader,sc=Ed,U8=Ng,P8=Ad,L8=Sd,j8=Bg,sq=N8,W8=M8.Files;function uq(r,t){return t=t||{},nq.props({contentTypes:lq(r),partPaths:z8(r),docxFile:r,files:t.path?W8.relativeToFile(t.path):new W8(null)}).also(function(e){return{styles:hq(r,e.partPaths.styles)}}).also(function(e){return{numbering:fq(r,e.partPaths.numbering,e.styles)}}).also(function(e){return{footnotes:Cd(e.partPaths.footnotes,e,function(n,i){return i?j8.createFootnotesReader(n)(i):new Ug([])}),endnotes:Cd(e.partPaths.endnotes,e,function(n,i){return i?j8.createEndnotesReader(n)(i):new Ug([])}),comments:Cd(e.partPaths.comments,e,function(n,i){return i?sq.createCommentsReader(n)(i):new Ug([])})}}).also(function(e){return{notes:e.footnotes.flatMap(function(n){return e.endnotes.map(function(i){return new iq.Notes(n.concat(i))})})}}).then(function(e){return Cd(e.partPaths.mainDocument,e,function(n,i){return e.notes.flatMap(function(a){return e.comments.flatMap(function(o){var s=new oq({bodyReader:n,notes:a,comments:o});return s.convertXmlToDocument(i)})})})})}function z8(r){return dq(r).then(function(t){var e=H8({docxFile:r,relationships:t,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!r.exists(e))throw new Error("Could not find main document part. Are you sure this is a valid .docx file?");return uc({filename:$8(e),readElement:sc.readRelationships,defaultValue:sc.defaultValue})(r).then(function(n){function i(a){return H8({docxFile:r,relationships:n,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+a,basePath:Dd.splitPath(e).dirname,fallbackPath:"word/"+a+".xml"})}return{mainDocument:e,comments:i("comments"),endnotes:i("endnotes"),footnotes:i("footnotes"),numbering:i("numbering"),styles:i("styles")}})})}function H8(r){var t=r.docxFile,e=r.relationships,n=r.relationshipType,i=r.basePath,a=r.fallbackPath,o=e.findTargetsByType(n),s=o.map(function(c){return cq(Dd.joinPath(i,c),"/")}),u=s.filter(function(c){return t.exists(c)});return u.length===0?a:u[0]}function cq(r,t){return r.substring(0,t.length)===t?r.substring(t.length):r}function uc(r){return function(t){return B8(t,r.filename).then(function(e){return e?r.readElement(e):r.defaultValue})}}function Cd(r,t,e){var n=uc({filename:$8(r),readElement:sc.readRelationships,defaultValue:sc.defaultValue});return n(t.docxFile).then(function(i){var a=new aq({relationships:i,contentTypes:t.contentTypes,docxFile:t.docxFile,numbering:t.numbering,styles:t.styles,files:t.files});return B8(t.docxFile,r).then(function(o){return e(a,o)})})}function $8(r){var t=Dd.splitPath(r);return Dd.joinPath(t.dirname,"_rels",t.basename+".rels")}var lq=uc({filename:"[Content_Types].xml",readElement:U8.readContentTypesFromXml,defaultValue:U8.defaultContentTypes});function fq(r,t,e){return uc({filename:t,readElement:function(n){return P8.readNumberingXml(n,{styles:e})},defaultValue:P8.defaultNumbering})(r)}function hq(r,t){return uc({filename:t,readElement:L8.readStylesXml,defaultValue:L8.defaultStyles})(r)}var dq=uc({filename:"_rels/.rels",readElement:sc.readRelationships,defaultValue:sc.defaultValue}),Pg={},pq=on.exports,mq=Un,ql=zs;Pg.writeStyleMap=vq;Pg.readStyleMap=wq;var gq="http://schemas.zwobble.org/mammoth/style-map",Od="mammoth/style-map",V8="/"+Od;function vq(r,t){return r.write(Od,t),yq(r).then(function(){return bq(r)})}function yq(r){var t="word/_rels/document.xml.rels",e="http://schemas.openxmlformats.org/package/2006/relationships",n="{"+e+"}Relationship";return r.read(t,"utf8").then(ql.readString).then(function(i){var a=i.children;q8(a,n,"Id",{Id:"rMammothStyleMap",Type:gq,Target:V8});var o={"":e};return r.write(t,ql.writeString(i,o))})}function bq(r){var t="[Content_Types].xml",e="http://schemas.openxmlformats.org/package/2006/content-types",n="{"+e+"}Override";return r.read(t,"utf8").then(ql.readString).then(function(i){var a=i.children;q8(a,n,"PartName",{PartName:V8,ContentType:"text/prs.mammoth.style-map"});var o={"":e};return r.write(t,ql.writeString(i,o))})}function q8(r,t,e,n){var i=pq.find(r,function(a){return a.name===t&&a.attributes[e]===n[e]});i?i.attributes=n:r.push(ql.element(t,n))}function wq(r){return r.exists(Od)?r.read(Od,"utf8"):mq.resolve(null)}var Lg={},Io={},Aa={},cs={},G8=Io;function xq(r,t,e){return jg(G8.element(r,t,{fresh:!1}),e)}function _q(r,t,e){var n=G8.element(r,t,{fresh:!0});return jg(n,e)}function jg(r,t){return{type:"element",tag:r,children:t||[]}}function Eq(r){return{type:"text",value:r}}var Aq={type:"forceWrite"};cs.freshElement=_q;cs.nonFreshElement=xq;cs.elementWithTag=jg;cs.text=Eq;cs.forceWrite=Aq;var Tq={br:!0,hr:!0,img:!0};function Sq(r){return r.children.length===0&&Tq[r.tag.tagName]}cs.isVoidElement=Sq;var X8=on.exports,Id=cs;function Dq(r){return K8(Y8(r))}function K8(r){var t=[];return r.map(Cq).forEach(function(e){Wg(t,e)}),t}function Cq(r){return Oq[r.type](r)}var Oq={element:Iq,text:Z8,forceWrite:Z8};function Iq(r){return Id.elementWithTag(r.tag,K8(r.children))}function Z8(r){return r}function Wg(r,t){var e=r[r.length-1];t.type==="element"&&!t.tag.fresh&&e&&e.type==="element"&&t.tag.matchesElement(e.tag)?(t.tag.separator&&Wg(e.children,Id.text(t.tag.separator)),t.children.forEach(function(n){Wg(e.children,n)})):r.push(t)}function Y8(r){return kq(r,function(t){return Rq[t.type](t)})}function kq(r,t){return X8.flatten(X8.map(r,t),!0)}var Rq={element:Nq,text:Mq,forceWrite:Fq};function Fq(r){return[r]}function Nq(r){var t=Y8(r.children);return t.length===0&&!Id.isVoidElement(r)?[]:[Id.elementWithTag(r.tag,t)]}function Mq(r){return r.value.length===0?[]:[r]}var Bq=Dq,cc=cs;Aa.freshElement=cc.freshElement;Aa.nonFreshElement=cc.nonFreshElement;Aa.elementWithTag=cc.elementWithTag;Aa.text=cc.text;Aa.forceWrite=cc.forceWrite;Aa.simplify=Bq;function J8(r,t){t.forEach(function(e){Uq(r,e)})}function Uq(r,t){Pq[t.type](r,t)}var Pq={element:Lq,text:jq,forceWrite:function(){}};function Lq(r,t){cc.isVoidElement(t)?r.selfClosing(t.tag.tagName,t.tag.attributes):(r.open(t.tag.tagName,t.tag.attributes),J8(r,t.children),r.close(t.tag.tagName))}function jq(r,t){r.text(t.value)}Aa.write=J8;var zg=on.exports,Wq=Aa;Io.topLevelElement=zq;Io.elements=Hg;Io.element=$g;function zq(r,t){return Hg([$g(r,t,{fresh:!0})])}function Hg(r){return new Q8(r.map(function(t){return zg.isString(t)?$g(t):t}))}function Q8(r){this._elements=r}Q8.prototype.wrap=function(t){for(var e=t(),n=this._elements.length-1;n>=0;n--)e=this._elements[n].wrapNodes(e);return e};function $g(r,t,e){return e=e||{},new kd(r,t,e)}function kd(r,t,e){var n={};zg.isArray(r)?(r.forEach(function(i){n[i]=!0}),r=r[0]):n[r]=!0,this.tagName=r,this.tagNames=n,this.attributes=t||{},this.fresh=e.fresh,this.separator=e.separator}kd.prototype.matchesElement=function(r){return this.tagNames[r.tagName]&&zg.isEqual(this.attributes||{},r.attributes||{})};kd.prototype.wrap=function(t){return this.wrapNodes(t())};kd.prototype.wrapNodes=function(t){return[Wq.elementWithTag(this,t)]};Io.empty=Hg([]);Io.ignore={wrap:function(){return[]}};var Vg={};(function(r){var t=on.exports,e=Un,n=Aa;r.imgElement=i;function i(a){return function(o,s){return e.when(a(o)).then(function(u){var c={};return o.altText&&(c.alt=o.altText),t.extend(c,u),[n.freshElement("img",c)]})}}r.inline=r.imgElement,r.dataUri=i(function(a){return a.readAsBase64String().then(function(o){return{src:"data:"+a.contentType+";base64,"+o}})})})(Vg);var e4={},t4={},r4=on.exports;t4.writer=Hq;function Hq(r){return r=r||{},r.prettyPrint?$q():n4()}var Rd={div:!0,p:!0,ul:!0,li:!0};function $q(){var r=0,t=" ",e=[],n=!0,i=!1,a=n4();function o(g,m){Rd[g]&&h(),e.push(g),a.open(g,m),Rd[g]&&r++,n=!1}function s(g){Rd[g]&&(r--,h()),e.pop(),a.close(g)}function u(g){d();var m=f()?g:g.replace(`
`,`
`+t);a.text(m)}function c(g,m){h(),a.selfClosing(g,m)}function l(){return e.length===0||Rd[e[e.length-1]]}function d(){i||(h(),i=!0)}function h(){if(i=!1,!n&&l()&&!f()){a._append(`
`);for(var g=0;g<r;g++)a._append(t)}}function f(){return r4.some(e,function(g){return g==="pre"})}return{asString:a.asString,open:o,close:s,text:u,selfClosing:c}}function n4(){var r=[];function t(u,c){var l=i(c);r.push("<"+u+l+">")}function e(u){r.push("</"+u+">")}function n(u,c){var l=i(c);r.push("<"+u+l+" />")}function i(u){return r4.map(u,function(c,l){return" "+l+'="'+qq(c)+'"'}).join("")}function a(u){r.push(Vq(u))}function o(u){r.push(u)}function s(){return r.join("")}return{asString:s,open:t,close:e,text:a,selfClosing:n,_append:o}}function Vq(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function qq(r){return r.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}var i4={},Gq=on.exports;function a4(r){return Fd(r,r)}function Fd(r,t){return function(){return{start:r,end:t}}}function Xq(r){var t=r.href||"";return t?{start:"[",end:"]("+t+")",anchorPosition:"before"}:{}}function Kq(r){var t=r.src||"",e=r.alt||"";return t||e?{start:"!["+e+"]("+t+")"}:{}}function o4(r){return function(t,e){return{start:e?`
`:"",end:e?"":`
`,list:{isOrdered:r.isOrdered,indent:e?e.indent+1:0,count:0}}}}function Zq(r,t,e){t=t||{indent:0,isOrdered:!1,count:0},t.count++,e.hasClosed=!1;var n=t.isOrdered?t.count+".":"-",i=u4(" ",t.indent)+n+" ";return{start:i,end:function(){if(!e.hasClosed)return e.hasClosed=!0,`
`}}}var s4={p:Fd("",`
`),br:Fd("",`
`),ul:o4({isOrdered:!1}),ol:o4({isOrdered:!0}),li:Zq,strong:a4("__"),em:a4("*"),a:Xq,img:Kq};(function(){for(var r=1;r<=6;r++)s4["h"+r]=Fd(u4("#",r)+" ",`
`)})();function u4(r,t){return new Array(t+1).join(r)}function Yq(){var r=[],t=[],e=null,n={};function i(l,d){d=d||{};var h=s4[l]||function(){return{}},f=h(d,e,n);t.push({end:f.end,list:e}),f.list&&(e=f.list);var g=f.anchorPosition==="before";g&&a(d),r.push(f.start||""),g||a(d)}function a(l){l.id&&r.push('<a id="'+l.id+'"></a>')}function o(l){var d=t.pop();e=d.list;var h=Gq.isFunction(d.end)?d.end():d.end;r.push(h||"")}function s(l,d){i(l,d),o()}function u(l){r.push(Jq(l))}function c(){return r.join("")}return{asString:c,open:i,close:o,text:u,selfClosing:s}}i4.writer=Yq;function Jq(r){return r.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}var Qq=t4,eG=i4;e4.writer=tG;function tG(r){return r=r||{},r.outputFormat==="markdown"?eG.writer():Qq.writer(r)}var ls=on.exports,c4=Un,Nd=pr,ua=Io,qg=$i,rG=Vg,mr=Aa,nG=e4;Lg.DocumentConverter=iG;function iG(r){return{convertToHtml:function(t){var e=ls.indexBy(t.type===Nd.types.document?t.comments:[],"commentId"),n=new aG(r,e);return n.convertToHtml(t)}}}function aG(r,t){var e=1,n=[],i=[];r=ls.extend({ignoreEmptyParagraphs:!0},r);var a=r.idPrefix===void 0?"":r.idPrefix,o=r.ignoreEmptyParagraphs,s=ua.topLevelElement("p"),u=r.styleMap||[];function c(_){var E=[],R=d(_,E,{}),F=[];f4(R,function(X){X.type==="deferred"&&F.push(X)});var B={};return c4.mapSeries(F,function(X){return X.value().then(function(K){B[X.id]=K})}).then(function(){function X(te){return Gg(te,function($){return $.type==="deferred"?B[$.id]:$.children?[ls.extend({},$,{children:X($.children)})]:[$]})}var K=nG.writer({prettyPrint:r.prettyPrint,outputFormat:r.outputFormat});return mr.write(K,mr.simplify(X(R))),new qg.Result(K.asString(),E)})}function l(_,E,R){return Gg(_,function(F){return d(F,E,R)})}function d(_,E,R){if(!R)throw new Error("options not set");var F=w[_.type];return F?F(_,E,R):[]}function h(_,E,R){return f(_,E).wrap(function(){var F=l(_.children,E,R);return o?F:[mr.forceWrite].concat(F)})}function f(_,E){var R=y(_);return R?R.to:(_.styleId&&E.push(l4("paragraph",_)),s)}function g(_,E,R){var F=function(){return l(_.children,E,R)},B=[];if(_.highlight!==null){var X=p({type:"highlight",color:_.highlight});X&&B.push(X)}_.isSmallCaps&&B.push(m("smallCaps")),_.isAllCaps&&B.push(m("allCaps")),_.isStrikethrough&&B.push(m("strikethrough","s")),_.isUnderline&&B.push(m("underline")),_.verticalAlignment===Nd.verticalAlignment.subscript&&B.push(ua.element("sub",{},{fresh:!1})),_.verticalAlignment===Nd.verticalAlignment.superscript&&B.push(ua.element("sup",{},{fresh:!1})),_.isItalic&&B.push(m("italic","em")),_.isBold&&B.push(m("bold","strong"));var K=ua.empty,te=y(_);return te?K=te.to:_.styleId&&E.push(l4("run",_)),B.push(K),B.forEach(function($){F=$.wrap.bind($,F)}),F()}function m(_,E){var R=p({type:_});return R||(E?ua.element(E,{},{fresh:!1}):ua.empty)}function p(_,E){var R=y(_);return R?R.to:E}function y(_){for(var E=0;E<u.length;E++)if(u[E].from.matches(_))return u[E]}function v(_){return function(E,R){return c4.attempt(function(){return _(E,R)}).caught(function(F){return R.push(qg.error(F)),[]})}}function b(_){return C(_.noteType,_.noteId)}function A(_){return M(_.noteType,_.noteId)}function C(_,E){return z(_+"-"+E)}function M(_,E){return z(_+"-ref-"+E)}function z(_){return a+_}var W=ua.elements([ua.element("table",{},{fresh:!0})]);function U(_,E,R){return p(_,W).wrap(function(){return G(_,E,R)})}function G(_,E,R){var F=ls.findIndex(_.children,function(te){return!te.type===Nd.types.tableRow||!te.isHeader});F===-1&&(F=_.children.length);var B;if(F===0)B=l(_.children,E,ls.extend({},R,{isTableHeader:!1}));else{var X=l(_.children.slice(0,F),E,ls.extend({},R,{isTableHeader:!0})),K=l(_.children.slice(F),E,ls.extend({},R,{isTableHeader:!1}));B=[mr.freshElement("thead",{},X),mr.freshElement("tbody",{},K)]}return[mr.forceWrite].concat(B)}function ee(_,E,R){var F=l(_.children,E,R);return[mr.freshElement("tr",{},[mr.forceWrite].concat(F))]}function I(_,E,R){var F=R.isTableHeader?"th":"td",B=l(_.children,E,R),X={};return _.colSpan!==1&&(X.colspan=_.colSpan.toString()),_.rowSpan!==1&&(X.rowspan=_.rowSpan.toString()),[mr.freshElement(F,X,[mr.forceWrite].concat(B))]}function O(_,E,R){return p(_,ua.ignore).wrap(function(){var F=t[_.commentId],B=i.length+1,X="["+uG(F)+B+"]";return i.push({label:X,comment:F}),[mr.freshElement("a",{href:"#"+C("comment",_.commentId),id:M("comment",_.commentId)},[mr.text(X)])]})}function T(_,E,R){var F=_.label,B=_.comment,X=l(B.body,E,R).concat([mr.nonFreshElement("p",{},[mr.text(" "),mr.freshElement("a",{href:"#"+M("comment",B.commentId)},[mr.text("\u2191")])])]);return[mr.freshElement("dt",{id:C("comment",B.commentId)},[mr.text("Comment "+F)]),mr.freshElement("dd",{},X)]}function S(_,E,R){return x(_).wrap(function(){return[]})}function x(_){var E=y(_);return E?E.to:_.breakType==="line"?ua.topLevelElement("br"):ua.empty}var w={document:function(_,E,R){var F=l(_.children,E,R),B=n.map(function(K){return _.notes.resolve(K)}),X=l(B,E,R);return F.concat([mr.freshElement("ol",{},X),mr.freshElement("dl",{},Gg(i,function(K){return T(K,E,R)}))])},paragraph:h,run:g,text:function(_,E,R){return[mr.text(_.value)]},tab:function(_,E,R){return[mr.text(" ")]},hyperlink:function(_,E,R){var F=_.anchor?"#"+z(_.anchor):_.href,B={href:F};_.targetFrame!=null&&(B.target=_.targetFrame);var X=l(_.children,E,R);return[mr.nonFreshElement("a",B,X)]},bookmarkStart:function(_,E,R){var F=mr.freshElement("a",{id:z(_.name)},[mr.forceWrite]);return[F]},noteReference:function(_,E,R){n.push(_);var F=mr.freshElement("a",{href:"#"+b(_),id:A(_)},[mr.text("["+e+++"]")]);return[mr.freshElement("sup",{},[F])]},note:function(_,E,R){var F=l(_.body,E,R),B=mr.elementWithTag(ua.element("p",{},{fresh:!1}),[mr.text(" "),mr.freshElement("a",{href:"#"+A(_)},[mr.text("\u2191")])]),X=F.concat([B]);return mr.freshElement("li",{id:b(_)},X)},commentReference:O,comment:T,image:sG(v(r.convertImage||rG.dataUri)),table:U,tableRow:ee,tableCell:I,break:S};return{convertToHtml:c}}var oG=1;function sG(r){return function(t,e,n){return[{type:"deferred",id:oG++,value:function(){return r(t,e,n)}}]}}function l4(r,t){return qg.warning("Unrecognised "+r+" style: '"+t.styleName+"' (Style ID: "+t.styleId+")")}function Gg(r,t){return ls.flatten(r.map(t),!0)}function f4(r,t){r.forEach(function(e){t(e),e.children&&f4(e.children,t)})}var uG=Lg.commentAuthorLabel=function(t){return t.authorInitials||""},h4={},cG=pr;function d4(r){if(r.type==="text")return r.value;if(r.type===cG.types.tab)return" ";var t=r.type==="paragraph"?`
`:"";return(r.children||[]).map(d4).join("")+t}h4.convertElementToRawText=d4;var Md={},Ta={},p4={},m4={exports:{}},lc=m4.exports=function(r,t){this._tokens=r,this._startIndex=t||0};lc.prototype.head=function(){return this._tokens[this._startIndex]};lc.prototype.tail=function(r){return new lc(this._tokens,this._startIndex+1)};lc.prototype.toArray=function(){return this._tokens.slice(this._startIndex)};lc.prototype.end=function(){return this._tokens[this._tokens.length-1]};lc.prototype.to=function(r){var t=this.head().source,e=r.head()||r.end();return t.to(e.source)};var lG=m4.exports;p4.Parser=function(r){var t=function(e,n){return e(new lG(n))};return{parseTokens:t}};var Xg={},g4={};(function(r){r.none=Object.create({value:function(){throw new Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return r.none},flatMap:function(){return r.none},filter:function(){return r.none},toArray:function(){return[]},orElse:t,valueOrElse:t});function t(n){return typeof n=="function"?n():n}r.some=function(n){return new e(n)};var e=function(n){this._value=n};e.prototype.value=function(){return this._value},e.prototype.isNone=function(){return!1},e.prototype.isSome=function(){return!0},e.prototype.map=function(n){return new e(n(this._value))},e.prototype.flatMap=function(n){return n(this._value)},e.prototype.filter=function(n){return n(this._value)?this:r.none},e.prototype.toArray=function(){return[this._value]},e.prototype.orElse=function(n){return this},e.prototype.valueOrElse=function(n){return this._value},r.isOption=function(n){return n===r.none||n instanceof e},r.fromNullable=function(n){return n==null?r.none:new e(n)}})(g4);var Kg={failure:function(r,t){if(r.length<1)throw new Error("Failure must have errors");return new ii({status:"failure",remaining:t,errors:r})},error:function(r,t){if(r.length<1)throw new Error("Failure must have errors");return new ii({status:"error",remaining:t,errors:r})},success:function(r,t,e){return new ii({status:"success",value:r,source:e,remaining:t,errors:[]})},cut:function(r){return new ii({status:"cut",remaining:r,errors:[]})}},ii=function(r){this._value=r.value,this._status=r.status,this._hasValue=r.value!==void 0,this._remaining=r.remaining,this._source=r.source,this._errors=r.errors};ii.prototype.map=function(r){return this._hasValue?new ii({value:r(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors}):this};ii.prototype.changeRemaining=function(r){return new ii({value:this._value,status:this._status,remaining:r,source:this._source,errors:this._errors})};ii.prototype.isSuccess=function(){return this._status==="success"||this._status==="cut"};ii.prototype.isFailure=function(){return this._status==="failure"};ii.prototype.isError=function(){return this._status==="error"};ii.prototype.isCut=function(){return this._status==="cut"};ii.prototype.value=function(){return this._value};ii.prototype.remaining=function(){return this._remaining};ii.prototype.source=function(){return this._source};ii.prototype.errors=function(){return this._errors};var Zg={};Zg.error=function(r){return new Bd(r)};var Bd=function(r){this.expected=r.expected,this.actual=r.actual,this._location=r.location};Bd.prototype.describe=function(){var r=this._location?this._location.describe()+`:
`:"";return r+"Expected "+this.expected+`
but got `+this.actual};Bd.prototype.lineNumber=function(){return this._location.lineNumber()};Bd.prototype.characterNumber=function(){return this._location.characterNumber()};var v4={};v4.fromArray=function(r){var t=0,e=function(){return t<r.length};return new $s({hasNext:e,next:function(){if(e())return r[t++];throw new Error("No more elements")}})};var $s=function(r){this._iterator=r};$s.prototype.map=function(r){var t=this._iterator;return new $s({hasNext:function(){return t.hasNext()},next:function(){return r(t.next())}})};$s.prototype.filter=function(r){var t=this._iterator,e=!1,n=!1,i,a=function(){if(!e)for(e=!0,n=!1;t.hasNext()&&!n;)i=t.next(),n=r(i)};return new $s({hasNext:function(){return a(),n},next:function(){a();var o=i;return e=!1,o}})};$s.prototype.first=function(){var r=this._iterator;return this._iterator.hasNext()?r.next():null};$s.prototype.toArray=function(){for(var r=[];this._iterator.hasNext();)r.push(this._iterator.next());return r};(function(r){var t=on.exports,e=g4,n=Kg,i=Zg,a=v4;r.token=function(h,f){var g=f!==void 0;return function(m){var p=m.head();if(p&&p.name===h&&(!g||p.value===f))return n.success(p.value,m.tail(),p.source);var y=l({name:h,value:f});return d(m,y)}},r.tokenOfType=function(h){return r.token(h)},r.firstOf=function(h,f){return t.isArray(f)||(f=Array.prototype.slice.call(arguments,1)),function(g){return a.fromArray(f).map(function(m){return m(g)}).filter(function(m){return m.isSuccess()||m.isError()}).first()||d(g,h)}},r.then=function(h,f){return function(g){var m=h(g);return m.map||console.log(m),m.map(f)}},r.sequence=function(){var h=Array.prototype.slice.call(arguments,0),f=function(m){var p=t.foldl(h,function(v,b){var A=v.result,C=v.hasCut;if(!A.isSuccess())return{result:A,hasCut:C};var M=b(A.remaining());if(M.isCut())return{result:A,hasCut:!0};if(M.isSuccess()){var z;b.isCaptured?z=A.value().withValue(b,M.value()):z=A.value();var W=M.remaining(),U=m.to(W);return{result:n.success(z,W,U),hasCut:C}}else return C?{result:n.error(M.errors(),M.remaining()),hasCut:C}:{result:M,hasCut:C}},{result:n.success(new o,m),hasCut:!1}).result,y=m.to(p.remaining());return p.map(function(v){return v.withValue(r.sequence.source,y)})};f.head=function(){var m=t.find(h,g);return r.then(f,r.sequence.extract(m))},f.map=function(m){return r.then(f,function(p){return m.apply(this,p.toArray())})};function g(m){return m.isCaptured}return f};var o=function(h,f){this._values=h||{},this._valuesArray=f||[]};o.prototype.withValue=function(h,f){if(h.captureName&&h.captureName in this._values)throw new Error('Cannot add second value for capture "'+h.captureName+'"');var g=t.clone(this._values);g[h.captureName]=f;var m=this._valuesArray.concat([f]);return new o(g,m)},o.prototype.get=function(h){if(h.captureName in this._values)return this._values[h.captureName];throw new Error('No value for capture "'+h.captureName+'"')},o.prototype.toArray=function(){return this._valuesArray},r.sequence.capture=function(h,f){var g=function(){return h.apply(this,arguments)};return g.captureName=f,g.isCaptured=!0,g},r.sequence.extract=function(h){return function(f){return f.get(h)}},r.sequence.applyValues=function(h){var f=Array.prototype.slice.call(arguments,1);return function(g){var m=f.map(function(p){return g.get(p)});return h.apply(this,m)}},r.sequence.source={captureName:"\u2603source\u2603"},r.sequence.cut=function(){return function(h){return n.cut(h)}},r.optional=function(h){return function(f){var g=h(f);return g.isSuccess()?g.map(e.some):g.isFailure()?n.success(e.none,f):g}},r.zeroOrMoreWithSeparator=function(h,f){return c(h,f,!1)},r.oneOrMoreWithSeparator=function(h,f){return c(h,f,!0)};var s=r.zeroOrMore=function(h){return function(f){for(var g=[],m;(m=h(f))&&m.isSuccess();)f=m.remaining(),g.push(m.value());return m.isError()?m:n.success(g,f)}};r.oneOrMore=function(h){return r.oneOrMoreWithSeparator(h,u)};function u(h){return n.success(null,h)}var c=function(h,f,g){return function(m){var p=h(m);if(p.isSuccess()){var y=r.sequence.capture(h,"main"),v=s(r.then(r.sequence(f,y),r.sequence.extract(y))),b=v(p.remaining());return n.success([p.value()].concat(b.value()),b.remaining())}else return g||p.isError()?p:n.success([],m)}};r.leftAssociative=function(h,f,g){var m;g?m=[{func:g,rule:f}]:m=f,m=m.map(function(y){return r.then(y.rule,function(v){return function(b,A){return y.func(b,v,A)}})});var p=r.firstOf.apply(null,["rules"].concat(m));return function(y){var v=y,b=h(y);if(!b.isSuccess())return b;for(var A=p(b.remaining());A.isSuccess();){var C=A.remaining(),M=v.to(A.remaining()),z=A.value();b=n.success(z(b.value(),M),C,M),A=p(b.remaining())}return A.isError()?A:b}},r.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},r.nonConsuming=function(h){return function(f){return h(f).changeRemaining(f)}};var l=function(h){return h.value?h.name+' "'+h.value+'"':h.name};function d(h,f){var g,m=h.head();return m?g=i.error({expected:f,actual:l(m),location:m.source}):g=i.error({expected:f,actual:"end of tokens"}),n.failure([g],h)}})(Xg);var Yg={exports:{}};Yg.exports=function(r,t){var e={asString:function(){return r},range:function(n,i){return new Vs(r,t,n,i)}};return e};var Vs=function(r,t,e,n){this._string=r,this._description=t,this._startIndex=e,this._endIndex=n};Vs.prototype.to=function(r){return new Vs(this._string,this._description,this._startIndex,r._endIndex)};Vs.prototype.describe=function(){var r=this._position(),t=this._description?this._description+`
`:"";return t+"Line number: "+r.lineNumber+`
Character number: `+r.characterNumber};Vs.prototype.lineNumber=function(){return this._position().lineNumber};Vs.prototype.characterNumber=function(){return this._position().characterNumber};Vs.prototype._position=function(){for(var r=this,t=0,e=function(){return r._string.indexOf(`
`,t)},n=1;e()!==-1&&e()<this._startIndex;)t=e()+1,n+=1;var i=this._startIndex-t+1;return{lineNumber:n,characterNumber:i}};var y4=function(r,t,e){this.name=r,this.value=t,e&&(this.source=e)},b4={};(function(r){var t=Xg,e=Kg;r.parser=function(a,o,s){var u={rule:h,leftAssociative:f,rightAssociative:g},c=new n(s.map(d)),l=t.firstOf(a,o);function d(y){return{name:y.name,rule:i(y.ruleBuilder.bind(null,u))}}function h(){return m(c)}function f(y){return m(c.untilExclusive(y))}function g(y){return m(c.untilInclusive(y))}function m(y){return p.bind(null,y)}function p(y,v){var b=l(v);return b.isSuccess()?y.apply(b):b}return u};function n(a){function o(d){return new n(a.slice(0,u().indexOf(d)))}function s(d){return new n(a.slice(0,u().indexOf(d)+1))}function u(){return a.map(function(d){return d.name})}function c(d){for(var h,f;;)if(h=l(d.remaining()),h.isSuccess())f=d.source().to(h.source()),d=e.success(h.value()(d.value(),f),h.remaining(),f);else return h.isFailure()?d:h}function l(d){return t.firstOf("infix",a.map(function(h){return h.rule}))(d)}return{apply:c,untilExclusive:o,untilInclusive:s}}r.infix=function(a,o){function s(u){return r.infix(a,function(c){var l=o(c);return function(d){var h=l(d);return h.map(function(f){return function(g,m){return u(g,f,m)}})}})}return{name:a,ruleBuilder:o,map:s}};var i=function(a){var o;return function(s){return o||(o=a()),o(s)}}})(b4);var w4={},Jg=y4,fG=Yg.exports;w4.RegexTokeniser=hG;function hG(r){r=r.map(function(i){return{name:i.name,regex:new RegExp(i.regex.source,"g")}});function t(i,a){for(var o=new fG(i,a),s=0,u=[];s<i.length;){var c=e(i,s,o);s=c.endIndex,u.push(c.token)}return u.push(n(i,o)),u}function e(i,a,o){for(var s=0;s<r.length;s++){var u=r[s].regex;u.lastIndex=a;var c=u.exec(i);if(c){var d=a+c[0].length;if(c.index===a&&d>a){var l=c[1],h=new Jg(r[s].name,l,o.range(a,d));return{token:h,endIndex:d}}}}var d=a+1,h=new Jg("unrecognisedCharacter",i.substring(a,d),o.range(a,d));return{token:h,endIndex:d}}function n(i,a){return new Jg("end",null,a.range(i.length,i.length))}return{tokenise:t}}Ta.Parser=p4.Parser;Ta.rules=Xg;Ta.errors=Zg;Ta.results=Kg;Ta.StringSource=Yg.exports;Ta.Token=y4;Ta.bottomUp=b4;Ta.RegexTokeniser=w4.RegexTokeniser;Ta.rule=function(r){var t;return function(e){return t||(t=r()),t(e)}};var Gn={};Gn.paragraph=dG;Gn.run=pG;Gn.table=mG;Gn.bold=new Sa("bold");Gn.italic=new Sa("italic");Gn.underline=new Sa("underline");Gn.strikethrough=new Sa("strikethrough");Gn.allCaps=new Sa("allCaps");Gn.smallCaps=new Sa("smallCaps");Gn.highlight=gG;Gn.commentReference=new Sa("commentReference");Gn.lineBreak=new Ud({breakType:"line"});Gn.pageBreak=new Ud({breakType:"page"});Gn.columnBreak=new Ud({breakType:"column"});Gn.equalTo=yG;Gn.startsWith=bG;function dG(r){return new Sa("paragraph",r)}function pG(r){return new Sa("run",r)}function mG(r){return new Sa("table",r)}function gG(r){return new x4(r)}function Sa(r,t){t=t||{},this._elementType=r,this._styleId=t.styleId,this._styleName=t.styleName,t.list&&(this._listIndex=t.list.levelIndex,this._listIsOrdered=t.list.isOrdered)}Sa.prototype.matches=function(r){return r.type===this._elementType&&(this._styleId===void 0||r.styleId===this._styleId)&&(this._styleName===void 0||r.styleName&&this._styleName.operator(this._styleName.operand,r.styleName))&&(this._listIndex===void 0||vG(r,this._listIndex,this._listIsOrdered))&&(this._breakType===void 0||this._breakType===r.breakType)};function x4(r){r=r||{},this._color=r.color}x4.prototype.matches=function(r){return r.type==="highlight"&&(this._color===void 0||r.color===this._color)};function Ud(r){r=r||{},this._breakType=r.breakType}Ud.prototype.matches=function(r){return r.type==="break"&&(this._breakType===void 0||r.breakType===this._breakType)};function vG(r,t,e){return r.numbering&&r.numbering.level==t&&r.numbering.isOrdered==e}function yG(r){return{operator:wG,operand:r}}function bG(r){return{operator:xG,operand:r}}function wG(r,t){return r.toUpperCase()===t.toUpperCase()}function xG(r,t){return t.toUpperCase().indexOf(r.toUpperCase())===0}var _4={},_G=Ta,EG=_G.RegexTokeniser;_4.tokenise=AG;var E4="'((?:\\\\.|[^'])*)";function AG(r){var t="(?:[a-zA-Z\\-_]|\\\\.)",e=new EG([{name:"identifier",regex:new RegExp("("+t+"(?:"+t+"|[0-9])*)")},{name:"dot",regex:/\./},{name:"colon",regex:/:/},{name:"gt",regex:/>/},{name:"whitespace",regex:/\s+/},{name:"arrow",regex:/=>/},{name:"equals",regex:/=/},{name:"startsWith",regex:/\^=/},{name:"open-paren",regex:/\(/},{name:"close-paren",regex:/\)/},{name:"open-square-bracket",regex:/\[/},{name:"close-square-bracket",regex:/\]/},{name:"string",regex:new RegExp(E4+"'")},{name:"unterminated-string",regex:new RegExp(E4)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]);return e.tokenise(r)}var TG=on.exports,Je=Ta,ai=Gn,Pd=Io,SG=_4.tokenise,Qg=$i;Md.readHtmlPath=IG;Md.readDocumentMatcher=OG;Md.readStyle=DG;function DG(r){return e2(PG,r)}function CG(){return Je.rules.sequence(Je.rules.sequence.capture(A4()),Je.rules.tokenOfType("whitespace"),Je.rules.tokenOfType("arrow"),Je.rules.sequence.capture(Je.rules.optional(Je.rules.sequence(Je.rules.tokenOfType("whitespace"),Je.rules.sequence.capture(T4())).head())),Je.rules.tokenOfType("end")).map(function(r,t){return{from:r,to:t.valueOrElse(Pd.empty)}})}function OG(r){return e2(A4(),r)}function A4(){var r=Je.rules.sequence,t=function(M,z){return Je.rules.then(Je.rules.token("identifier",M),function(){return z})},e=t("p",ai.paragraph),n=t("r",ai.run),i=Je.rules.firstOf("p or r or table",e,n),a=Je.rules.sequence(Je.rules.tokenOfType("dot"),Je.rules.sequence.cut(),Je.rules.sequence.capture(Ld)).map(function(M){return{styleId:M}}),o=Je.rules.firstOf("style name matcher",Je.rules.then(Je.rules.sequence(Je.rules.tokenOfType("equals"),Je.rules.sequence.cut(),Je.rules.sequence.capture(fc)).head(),function(M){return{styleName:ai.equalTo(M)}}),Je.rules.then(Je.rules.sequence(Je.rules.tokenOfType("startsWith"),Je.rules.sequence.cut(),Je.rules.sequence.capture(fc)).head(),function(M){return{styleName:ai.startsWith(M)}})),s=Je.rules.sequence(Je.rules.tokenOfType("open-square-bracket"),Je.rules.sequence.cut(),Je.rules.token("identifier","style-name"),Je.rules.sequence.capture(o),Je.rules.tokenOfType("close-square-bracket")).head(),u=Je.rules.firstOf("list type",t("ordered-list",{isOrdered:!0}),t("unordered-list",{isOrdered:!1})),c=r(Je.rules.tokenOfType("colon"),r.capture(u),r.cut(),Je.rules.tokenOfType("open-paren"),r.capture(kG),Je.rules.tokenOfType("close-paren")).map(function(M,z){return{list:{isOrdered:M.isOrdered,levelIndex:z-1}}});function l(M){var z=Je.rules.firstOf.apply(Je.rules.firstOf,["matcher suffix"].concat(M)),W=Je.rules.zeroOrMore(z);return Je.rules.then(W,function(U){var G={};return U.forEach(function(ee){TG.extend(G,ee)}),G})}var d=r(r.capture(i),r.capture(l([a,s,c]))).map(function(M,z){return M(z)}),h=r(Je.rules.token("identifier","table"),r.capture(l([a,s]))).map(function(M){return ai.table(M)}),f=t("b",ai.bold),g=t("i",ai.italic),m=t("u",ai.underline),p=t("strike",ai.strikethrough),y=t("all-caps",ai.allCaps),v=t("small-caps",ai.smallCaps),b=r(Je.rules.token("identifier","highlight"),Je.rules.sequence.capture(Je.rules.optional(Je.rules.sequence(Je.rules.tokenOfType("open-square-bracket"),Je.rules.sequence.cut(),Je.rules.token("identifier","color"),Je.rules.tokenOfType("equals"),Je.rules.sequence.capture(fc),Je.rules.tokenOfType("close-square-bracket")).head()))).map(function(M){return ai.highlight({color:M.valueOrElse(void 0)})}),A=t("comment-reference",ai.commentReference),C=r(Je.rules.token("identifier","br"),r.cut(),Je.rules.tokenOfType("open-square-bracket"),Je.rules.token("identifier","type"),Je.rules.tokenOfType("equals"),r.capture(fc),Je.rules.tokenOfType("close-square-bracket")).map(function(M){switch(M){case"line":return ai.lineBreak;case"page":return ai.pageBreak;case"column":return ai.columnBreak}});return Je.rules.firstOf("element type",d,h,f,g,m,p,y,v,b,A,C)}function IG(r){return e2(T4(),r)}function T4(){var r=Je.rules.sequence.capture,t=Je.rules.tokenOfType("whitespace"),e=Je.rules.then(Je.rules.optional(Je.rules.sequence(Je.rules.tokenOfType("colon"),Je.rules.token("identifier","fresh"))),function(o){return o.map(function(){return!0}).valueOrElse(!1)}),n=Je.rules.then(Je.rules.optional(Je.rules.sequence(Je.rules.tokenOfType("colon"),Je.rules.token("identifier","separator"),Je.rules.tokenOfType("open-paren"),r(fc),Je.rules.tokenOfType("close-paren")).head()),function(o){return o.valueOrElse("")}),i=Je.rules.oneOrMoreWithSeparator(Ld,Je.rules.tokenOfType("choice")),a=Je.rules.sequence(r(i),r(Je.rules.zeroOrMore(MG)),r(e),r(n)).map(function(o,s,u,c){var l={},d={};return s.forEach(function(h){h.append&&l[h.name]?l[h.name]+=" "+h.value:l[h.name]=h.value}),u&&(d.fresh=!0),c&&(d.separator=c),Pd.element(o,l,d)});return Je.rules.firstOf("html path",Je.rules.then(Je.rules.tokenOfType("bang"),function(){return Pd.ignore}),Je.rules.then(Je.rules.zeroOrMoreWithSeparator(a,Je.rules.sequence(t,Je.rules.tokenOfType("gt"),t)),Pd.elements))}var Ld=Je.rules.then(Je.rules.tokenOfType("identifier"),S4),kG=Je.rules.tokenOfType("integer"),fc=Je.rules.then(Je.rules.tokenOfType("string"),S4),RG={n:`
`,r:"\r",t:" "};function S4(r){return r.replace(/\\(.)/g,function(t,e){return RG[e]||e})}var FG=Je.rules.sequence(Je.rules.tokenOfType("open-square-bracket"),Je.rules.sequence.cut(),Je.rules.sequence.capture(Ld),Je.rules.tokenOfType("equals"),Je.rules.sequence.capture(fc),Je.rules.tokenOfType("close-square-bracket")).map(function(r,t){return{name:r,value:t,append:!1}}),NG=Je.rules.sequence(Je.rules.tokenOfType("dot"),Je.rules.sequence.cut(),Je.rules.sequence.capture(Ld)).map(function(r){return{name:"class",value:r,append:!0}}),MG=Je.rules.firstOf("attribute or class",FG,NG);function e2(r,t){var e=SG(t),n=Je.Parser(),i=n.parseTokens(r,e);return i.isSuccess()?Qg.success(i.value()):new Qg.Result(null,[Qg.warning(BG(t,i))])}function BG(r,t){return"Did not understand this style mapping, so ignored it: "+r+`
`+t.errors().map(UG).join(`
`)}function UG(r){return"Error was at character number "+r.characterNumber()+": Expected "+r.expected+" but got "+r.actual}var PG=CG(),jd={};jd.readOptions=WG;var D4=on.exports,LG=jd._defaultStyleMap=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh"],jG=jd._standardOptions={transformDocument:zG,includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function WG(r){return r=r||{},D4.extend({},jG,r,{customStyleMap:C4(r.styleMap),readStyleMap:function(){var t=this.customStyleMap;return this.includeEmbeddedStyleMap&&(t=t.concat(C4(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(t=t.concat(LG)),t}})}function C4(r){return r?D4.isString(r)?r.split(`
`).map(function(t){return t.trim()}).filter(function(t){return t!==""&&t.charAt(0)!=="#"}):r:[]}function zG(r){return r}var O4={},I4=Un,HG=yl;O4.openZip=$G;function $G(r){return r.arrayBuffer?I4.resolve(HG.openArrayBuffer(r.arrayBuffer)):I4.reject(new Error("Could not find file in options"))}var hc={},k4=on.exports;hc.paragraph=VG;hc.run=qG;hc._elements=F4;hc.getDescendantsOfType=GG;hc.getDescendants=N4;function VG(r){return R4("paragraph",r)}function qG(r){return R4("run",r)}function R4(r,t){return F4(function(e){return e.type===r?t(e):e})}function F4(r){return function t(e){if(e.children){var n=k4.map(e.children,t);e=k4.extend(e,{children:n})}return r(e)}}function GG(r,t){return N4(r).filter(function(e){return e.type===t})}function N4(r){var t=[];return M4(r,function(e){t.push(e)}),t}function M4(r,t){r.children&&r.children.forEach(function(e){M4(e,t),t(e)})}var B4={},XG=Io,KG=Aa;B4.element=ZG;function ZG(r){return function(t){return KG.elementWithTag(XG.element(r),[t])}}var YG=on.exports,U4=$m,t2=Pg,JG=Lg.DocumentConverter,QG=h4.convertElementToRawText,eX=Md.readStyle,tX=jd.readOptions,Wd=O4,rX=$i.Result;Ga.convertToHtml=nX;Ga.convertToMarkdown=iX;Ga.convert=r2;Ga.extractRawText=uX;Ga.images=Vg;Ga.transforms=hc;Ga.underline=B4;Ga.embedStyleMap=cX;Ga.readEmbeddedStyleMap=aX;function nX(r,t){return r2(r,t)}function iX(r,t){var e=Object.create(t||{});return e.outputFormat="markdown",r2(r,e)}function r2(r,t){return t=tX(t),Wd.openZip(r).tap(function(e){return t2.readStyleMap(e).then(function(n){t.embeddedStyleMap=n})}).then(function(e){return U4.read(e,r).then(function(n){return n.map(t.transformDocument)}).then(function(n){return oX(n,t)})})}function aX(r){return Wd.openZip(r).then(t2.readStyleMap)}function oX(r,t){var e=sX(t.readStyleMap()),n=YG.extend({},t,{styleMap:e.value}),i=new JG(n);return r.flatMapThen(function(a){return e.flatMapThen(function(o){return i.convertToHtml(a)})})}function sX(r){return rX.combine((r||[]).map(eX)).map(function(t){return t.filter(function(e){return!!e})})}function uX(r){return Wd.openZip(r).then(U4.read).then(function(t){return t.map(QG)})}function cX(r,t){return Wd.openZip(r).tap(function(e){return t2.writeStyleMap(e,t)}).then(function(e){return e.toArrayBuffer()}).then(function(e){return{toArrayBuffer:function(){return e},toBuffer:function(){return Buffer.from(e)}}})}Ga.styleMapping=function(){throw new Error(`Use a raw string instead of mammoth.styleMapping e.g. "p[style-name='Title'] => h1" instead of mammoth.styleMapping("p[style-name='Title'] => h1")`)};var n2={exports:{}};/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(r,t){(function(){var e,n="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,l="__lodash_placeholder__",d=1,h=2,f=4,g=1,m=2,p=1,y=2,v=4,b=8,A=16,C=32,M=64,z=128,W=256,U=512,G=30,ee="...",I=800,O=16,T=1,S=2,x=3,w=1/0,_=9007199254740991,E=17976931348623157e292,R=0/0,F=4294967295,B=F-1,X=F>>>1,K=[["ary",z],["bind",p],["bindKey",y],["curry",b],["curryRight",A],["flip",U],["partial",C],["partialRight",M],["rearg",W]],te="[object Arguments]",$="[object Array]",q="[object AsyncFunction]",k="[object Boolean]",L="[object Date]",V="[object DOMException]",J="[object Error]",re="[object Function]",ae="[object GeneratorFunction]",j="[object Map]",ue="[object Number]",Q="[object Null]",P="[object Object]",H="[object Promise]",Z="[object Proxy]",oe="[object RegExp]",ce="[object Set]",ne="[object String]",se="[object Symbol]",fe="[object Undefined]",de="[object WeakMap]",ve="[object WeakSet]",Ee="[object ArrayBuffer]",Se="[object DataView]",Ne="[object Float32Array]",He="[object Float64Array]",qe="[object Int8Array]",et="[object Int16Array]",Ue="[object Int32Array]",Ge="[object Uint8Array]",tt="[object Uint8ClampedArray]",rt="[object Uint16Array]",lt="[object Uint32Array]",Ft=/\b__p \+= '';/g,Wt=/\b(__p \+=) '' \+/g,dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pt=/&(?:amp|lt|gt|quot|#39);/g,xt=/[&<>"']/g,gt=RegExp(Pt.source),hr=RegExp(xt.source),nr=/<%-([\s\S]+?)%>/g,Tt=/<%([\s\S]+?)%>/g,Kt=/<%=([\s\S]+?)%>/g,rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ct=/^\w*$/,ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ar=/[\\^$.*+?()[\]{}|]/g,kt=RegExp(ar.source),Ae=/^\s+/,Ie=/\s/,je=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,at=/\{\n\/\* \[wrapped with (.+)\] \*/,_t=/,? & /,st=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ot=/[()=,{}\[\]\/\s]/,At=/\\(\\)?/g,vt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,St=/\w*$/,Dt=/^[-+]0x[0-9a-f]+$/i,Ht=/^0b[01]+$/i,jr=/^\[object .+?Constructor\]$/,gr=/^0o[0-7]+$/i,Pr=/^(?:0|[1-9]\d*)$/,Gr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xr=/($^)/,be=/['\n\r\u2028\u2029\\]/g,Re="\\ud800-\\udfff",We="\\u0300-\\u036f",Ze="\\ufe20-\\ufe2f",mt="\\u20d0-\\u20ff",nt=We+Ze+mt,it="\\u2700-\\u27bf",$t="a-z\\xdf-\\xf6\\xf8-\\xff",Nt="\\xac\\xb1\\xd7\\xf7",Lt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Et="\\u2000-\\u206f",dr=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_r="A-Z\\xc0-\\xd6\\xd8-\\xde",Jt="\\ufe0e\\ufe0f",Sr=Nt+Lt+Et+dr,Fr="['\u2019]",mn="["+Re+"]",Xn="["+Sr+"]",jn="["+nt+"]",ca="\\d+",Da="["+it+"]",la="["+$t+"]",lr="[^"+Re+Sr+ca+it+$t+_r+"]",Zt="\\ud83c[\\udffb-\\udfff]",Vi="(?:"+jn+"|"+Zt+")",Fi="[^"+Re+"]",oi="(?:\\ud83c[\\udde6-\\uddff]){2}",gn="[\\ud800-\\udbff][\\udc00-\\udfff]",Er="["+_r+"]",xn="\\u200d",Ca="(?:"+la+"|"+lr+")",ko="(?:"+Er+"|"+lr+")",qi="(?:"+Fr+"(?:d|ll|m|re|s|t|ve))?",Ni="(?:"+Fr+"(?:D|LL|M|RE|S|T|VE))?",fs=Vi+"?",Qa="["+Jt+"]?",hs="(?:"+xn+"(?:"+[Fi,oi,gn].join("|")+")"+Qa+fs+")*",Oa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ro="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ds=Qa+fs+hs,eo="(?:"+[Da,oi,gn].join("|")+")"+ds,Fo="(?:"+[Fi+jn+"?",jn,oi,gn,mn].join("|")+")",Gl=RegExp(Fr,"g"),Xl=RegExp(jn,"g"),ps=RegExp(Zt+"(?="+Zt+")|"+Fo+ds,"g"),Kl=RegExp([Er+"?"+la+"+"+qi+"(?="+[Xn,Er,"$"].join("|")+")",ko+"+"+Ni+"(?="+[Xn,Er+Ca,"$"].join("|")+")",Er+"?"+Ca+"+"+qi,Er+"+"+Ni,Ro,Oa,ca,eo].join("|"),"g"),Zl=RegExp("["+xn+Re+nt+Jt+"]"),Yl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Jl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],zd=-1,Dr={};Dr[Ne]=Dr[He]=Dr[qe]=Dr[et]=Dr[Ue]=Dr[Ge]=Dr[tt]=Dr[rt]=Dr[lt]=!0,Dr[te]=Dr[$]=Dr[Ee]=Dr[k]=Dr[Se]=Dr[L]=Dr[J]=Dr[re]=Dr[j]=Dr[ue]=Dr[P]=Dr[oe]=Dr[ce]=Dr[ne]=Dr[de]=!1;var Nr={};Nr[te]=Nr[$]=Nr[Ee]=Nr[Se]=Nr[k]=Nr[L]=Nr[Ne]=Nr[He]=Nr[qe]=Nr[et]=Nr[Ue]=Nr[j]=Nr[ue]=Nr[P]=Nr[oe]=Nr[ce]=Nr[ne]=Nr[se]=Nr[Ge]=Nr[tt]=Nr[rt]=Nr[lt]=!0,Nr[J]=Nr[re]=Nr[de]=!1;var fa={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},to={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ql={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},dc={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ef=parseFloat,No=parseInt,tf=typeof ot=="object"&&ot&&ot.Object===Object&&ot,rf=typeof self=="object"&&self&&self.Object===Object&&self,vn=tf||rf||Function("return this")(),Mi=t&&!t.nodeType&&t,ro=Mi&&!0&&r&&!r.nodeType&&r,qs=ro&&ro.exports===Mi,pc=qs&&tf.process,si=function(){try{var Oe=ro&&ro.require&&ro.require("util").types;return Oe||pc&&pc.binding&&pc.binding("util")}catch{}}(),nf=si&&si.isArrayBuffer,af=si&&si.isDate,mc=si&&si.isMap,gc=si&&si.isRegExp,of=si&&si.isSet,sf=si&&si.isTypedArray;function Rn(Oe,$e,Pe){switch(Pe.length){case 0:return Oe.call($e);case 1:return Oe.call($e,Pe[0]);case 2:return Oe.call($e,Pe[0],Pe[1]);case 3:return Oe.call($e,Pe[0],Pe[1],Pe[2])}return Oe.apply($e,Pe)}function Hd(Oe,$e,Pe,pt){for(var qt=-1,br=Oe==null?0:Oe.length;++qt<br;){var _n=Oe[qt];$e(pt,_n,Pe(_n),Oe)}return pt}function vi(Oe,$e){for(var Pe=-1,pt=Oe==null?0:Oe.length;++Pe<pt&&$e(Oe[Pe],Pe,Oe)!==!1;);return Oe}function $d(Oe,$e){for(var Pe=Oe==null?0:Oe.length;Pe--&&$e(Oe[Pe],Pe,Oe)!==!1;);return Oe}function uf(Oe,$e){for(var Pe=-1,pt=Oe==null?0:Oe.length;++Pe<pt;)if(!$e(Oe[Pe],Pe,Oe))return!1;return!0}function Ia(Oe,$e){for(var Pe=-1,pt=Oe==null?0:Oe.length,qt=0,br=[];++Pe<pt;){var _n=Oe[Pe];$e(_n,Pe,Oe)&&(br[qt++]=_n)}return br}function Gs(Oe,$e){var Pe=Oe==null?0:Oe.length;return!!Pe&&Bo(Oe,$e,0)>-1}function Xs(Oe,$e,Pe){for(var pt=-1,qt=Oe==null?0:Oe.length;++pt<qt;)if(Pe($e,Oe[pt]))return!0;return!1}function Wr(Oe,$e){for(var Pe=-1,pt=Oe==null?0:Oe.length,qt=Array(pt);++Pe<pt;)qt[Pe]=$e(Oe[Pe],Pe,Oe);return qt}function ha(Oe,$e){for(var Pe=-1,pt=$e.length,qt=Oe.length;++Pe<pt;)Oe[qt+Pe]=$e[Pe];return Oe}function ms(Oe,$e,Pe,pt){var qt=-1,br=Oe==null?0:Oe.length;for(pt&&br&&(Pe=Oe[++qt]);++qt<br;)Pe=$e(Pe,Oe[qt],qt,Oe);return Pe}function Ks(Oe,$e,Pe,pt){var qt=Oe==null?0:Oe.length;for(pt&&qt&&(Pe=Oe[--qt]);qt--;)Pe=$e(Pe,Oe[qt],qt,Oe);return Pe}function vc(Oe,$e){for(var Pe=-1,pt=Oe==null?0:Oe.length;++Pe<pt;)if($e(Oe[Pe],Pe,Oe))return!0;return!1}var Vd=yc("length");function qd(Oe){return Oe.split("")}function cf(Oe){return Oe.match(st)||[]}function lf(Oe,$e,Pe){var pt;return Pe(Oe,function(qt,br,_n){if($e(qt,br,_n))return pt=br,!1}),pt}function Mo(Oe,$e,Pe,pt){for(var qt=Oe.length,br=Pe+(pt?1:-1);pt?br--:++br<qt;)if($e(Oe[br],br,Oe))return br;return-1}function Bo(Oe,$e,Pe){return $e===$e?L4(Oe,$e,Pe):Mo(Oe,Zs,Pe)}function Gd(Oe,$e,Pe,pt){for(var qt=Pe-1,br=Oe.length;++qt<br;)if(pt(Oe[qt],$e))return qt;return-1}function Zs(Oe){return Oe!==Oe}function ff(Oe,$e){var Pe=Oe==null?0:Oe.length;return Pe?Ys(Oe,$e)/Pe:R}function yc(Oe){return function($e){return $e==null?e:$e[Oe]}}function bc(Oe){return function($e){return Oe==null?e:Oe[$e]}}function hf(Oe,$e,Pe,pt,qt){return qt(Oe,function(br,_n,Lr){Pe=pt?(pt=!1,br):$e(Pe,br,_n,Lr)}),Pe}function wc(Oe,$e){var Pe=Oe.length;for(Oe.sort($e);Pe--;)Oe[Pe]=Oe[Pe].value;return Oe}function Ys(Oe,$e){for(var Pe,pt=-1,qt=Oe.length;++pt<qt;){var br=$e(Oe[pt]);br!==e&&(Pe=Pe===e?br:Pe+br)}return Pe}function xc(Oe,$e){for(var Pe=-1,pt=Array(Oe);++Pe<Oe;)pt[Pe]=$e(Pe);return pt}function _c(Oe,$e){return Wr($e,function(Pe){return[Pe,Oe[Pe]]})}function le(Oe){return Oe&&Oe.slice(0,a2(Oe)+1).replace(Ae,"")}function pe(Oe){return function($e){return Oe($e)}}function we(Oe,$e){return Wr($e,function(Pe){return Oe[Pe]})}function _e(Oe,$e){return Oe.has($e)}function Ce(Oe,$e){for(var Pe=-1,pt=Oe.length;++Pe<pt&&Bo($e,Oe[Pe],0)>-1;);return Pe}function De(Oe,$e){for(var Pe=Oe.length;Pe--&&Bo($e,Oe[Pe],0)>-1;);return Pe}function Ve(Oe,$e){for(var Pe=Oe.length,pt=0;Pe--;)Oe[Pe]===$e&&++pt;return pt}var ut=bc(fa),Vt=bc(to);function jt(Oe){return"\\"+dc[Oe]}function yn(Oe,$e){return Oe==null?e:Oe[$e]}function tn(Oe){return Zl.test(Oe)}function df(Oe){return Yl.test(Oe)}function pf(Oe){for(var $e,Pe=[];!($e=Oe.next()).done;)Pe.push($e.value);return Pe}function Xd(Oe){var $e=-1,Pe=Array(Oe.size);return Oe.forEach(function(pt,qt){Pe[++$e]=[qt,pt]}),Pe}function i2(Oe,$e){return function(Pe){return Oe($e(Pe))}}function Uo(Oe,$e){for(var Pe=-1,pt=Oe.length,qt=0,br=[];++Pe<pt;){var _n=Oe[Pe];(_n===$e||_n===l)&&(Oe[Pe]=l,br[qt++]=Pe)}return br}function mf(Oe){var $e=-1,Pe=Array(Oe.size);return Oe.forEach(function(pt){Pe[++$e]=pt}),Pe}function P4(Oe){var $e=-1,Pe=Array(Oe.size);return Oe.forEach(function(pt){Pe[++$e]=[pt,pt]}),Pe}function L4(Oe,$e,Pe){for(var pt=Pe-1,qt=Oe.length;++pt<qt;)if(Oe[pt]===$e)return pt;return-1}function j4(Oe,$e,Pe){for(var pt=Pe+1;pt--;)if(Oe[pt]===$e)return pt;return pt}function Js(Oe){return tn(Oe)?z4(Oe):Vd(Oe)}function da(Oe){return tn(Oe)?H4(Oe):qd(Oe)}function a2(Oe){for(var $e=Oe.length;$e--&&Ie.test(Oe.charAt($e)););return $e}var W4=bc(Ql);function z4(Oe){for(var $e=ps.lastIndex=0;ps.test(Oe);)++$e;return $e}function H4(Oe){return Oe.match(ps)||[]}function $4(Oe){return Oe.match(Kl)||[]}var V4=function Oe($e){$e=$e==null?vn:Qs.defaults(vn.Object(),$e,Qs.pick(vn,Jl));var Pe=$e.Array,pt=$e.Date,qt=$e.Error,br=$e.Function,_n=$e.Math,Lr=$e.Object,Kd=$e.RegExp,q4=$e.String,Gi=$e.TypeError,gf=Pe.prototype,G4=br.prototype,eu=Lr.prototype,vf=$e["__core-js_shared__"],yf=G4.toString,Cr=eu.hasOwnProperty,X4=0,o2=function(){var D=/[^.]+$/.exec(vf&&vf.keys&&vf.keys.IE_PROTO||"");return D?"Symbol(src)_1."+D:""}(),bf=eu.toString,K4=yf.call(Lr),Z4=vn._,Y4=Kd("^"+yf.call(Cr).replace(ar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wf=qs?$e.Buffer:e,Po=$e.Symbol,xf=$e.Uint8Array,s2=wf?wf.allocUnsafe:e,_f=i2(Lr.getPrototypeOf,Lr),u2=Lr.create,c2=eu.propertyIsEnumerable,Ef=gf.splice,l2=Po?Po.isConcatSpreadable:e,Ec=Po?Po.iterator:e,gs=Po?Po.toStringTag:e,Af=function(){try{var D=xs(Lr,"defineProperty");return D({},"",{}),D}catch{}}(),J4=$e.clearTimeout!==vn.clearTimeout&&$e.clearTimeout,Q4=pt&&pt.now!==vn.Date.now&&pt.now,e6=$e.setTimeout!==vn.setTimeout&&$e.setTimeout,Tf=_n.ceil,Sf=_n.floor,Zd=Lr.getOwnPropertySymbols,t6=wf?wf.isBuffer:e,f2=$e.isFinite,r6=gf.join,n6=i2(Lr.keys,Lr),En=_n.max,Kn=_n.min,i6=pt.now,a6=$e.parseInt,h2=_n.random,o6=gf.reverse,Yd=xs($e,"DataView"),Ac=xs($e,"Map"),Jd=xs($e,"Promise"),tu=xs($e,"Set"),Tc=xs($e,"WeakMap"),Sc=xs(Lr,"create"),Df=Tc&&new Tc,ru={},s6=_s(Yd),u6=_s(Ac),c6=_s(Jd),l6=_s(tu),f6=_s(Tc),Cf=Po?Po.prototype:e,Dc=Cf?Cf.valueOf:e,d2=Cf?Cf.toString:e;function me(D){if(rn(D)&&!Gt(D)&&!(D instanceof ur)){if(D instanceof Xi)return D;if(Cr.call(D,"__wrapped__"))return pv(D)}return new Xi(D)}var nu=function(){function D(){}return function(N){if(!Jr(N))return{};if(u2)return u2(N);D.prototype=N;var Y=new D;return D.prototype=e,Y}}();function Of(){}function Xi(D,N){this.__wrapped__=D,this.__actions__=[],this.__chain__=!!N,this.__index__=0,this.__values__=e}me.templateSettings={escape:nr,evaluate:Tt,interpolate:Kt,variable:"",imports:{_:me}},me.prototype=Of.prototype,me.prototype.constructor=me,Xi.prototype=nu(Of.prototype),Xi.prototype.constructor=Xi;function ur(D){this.__wrapped__=D,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=F,this.__views__=[]}function h6(){var D=new ur(this.__wrapped__);return D.__actions__=yi(this.__actions__),D.__dir__=this.__dir__,D.__filtered__=this.__filtered__,D.__iteratees__=yi(this.__iteratees__),D.__takeCount__=this.__takeCount__,D.__views__=yi(this.__views__),D}function d6(){if(this.__filtered__){var D=new ur(this);D.__dir__=-1,D.__filtered__=!0}else D=this.clone(),D.__dir__*=-1;return D}function p6(){var D=this.__wrapped__.value(),N=this.__dir__,Y=Gt(D),ie=N<0,he=Y?D.length:0,ge=S5(0,he,this.__views__),xe=ge.start,Te=ge.end,ke=Te-xe,Xe=ie?Te:xe-1,Ke=this.__iteratees__,Ye=Ke.length,ft=0,wt=Kn(ke,this.__takeCount__);if(!Y||!ie&&he==ke&&wt==ke)return U2(D,this.__actions__);var Mt=[];e:for(;ke--&&ft<wt;){Xe+=N;for(var Yt=-1,Bt=D[Xe];++Yt<Ye;){var or=Ke[Yt],fr=or.iteratee,Pi=or.type,li=fr(Bt);if(Pi==S)Bt=li;else if(!li){if(Pi==T)continue e;break e}}Mt[ft++]=Bt}return Mt}ur.prototype=nu(Of.prototype),ur.prototype.constructor=ur;function vs(D){var N=-1,Y=D==null?0:D.length;for(this.clear();++N<Y;){var ie=D[N];this.set(ie[0],ie[1])}}function m6(){this.__data__=Sc?Sc(null):{},this.size=0}function g6(D){var N=this.has(D)&&delete this.__data__[D];return this.size-=N?1:0,N}function v6(D){var N=this.__data__;if(Sc){var Y=N[D];return Y===u?e:Y}return Cr.call(N,D)?N[D]:e}function y6(D){var N=this.__data__;return Sc?N[D]!==e:Cr.call(N,D)}function b6(D,N){var Y=this.__data__;return this.size+=this.has(D)?0:1,Y[D]=Sc&&N===e?u:N,this}vs.prototype.clear=m6,vs.prototype.delete=g6,vs.prototype.get=v6,vs.prototype.has=y6,vs.prototype.set=b6;function no(D){var N=-1,Y=D==null?0:D.length;for(this.clear();++N<Y;){var ie=D[N];this.set(ie[0],ie[1])}}function w6(){this.__data__=[],this.size=0}function x6(D){var N=this.__data__,Y=If(N,D);if(Y<0)return!1;var ie=N.length-1;return Y==ie?N.pop():Ef.call(N,Y,1),--this.size,!0}function _6(D){var N=this.__data__,Y=If(N,D);return Y<0?e:N[Y][1]}function E6(D){return If(this.__data__,D)>-1}function A6(D,N){var Y=this.__data__,ie=If(Y,D);return ie<0?(++this.size,Y.push([D,N])):Y[ie][1]=N,this}no.prototype.clear=w6,no.prototype.delete=x6,no.prototype.get=_6,no.prototype.has=E6,no.prototype.set=A6;function io(D){var N=-1,Y=D==null?0:D.length;for(this.clear();++N<Y;){var ie=D[N];this.set(ie[0],ie[1])}}function T6(){this.size=0,this.__data__={hash:new vs,map:new(Ac||no),string:new vs}}function S6(D){var N=zf(this,D).delete(D);return this.size-=N?1:0,N}function D6(D){return zf(this,D).get(D)}function C6(D){return zf(this,D).has(D)}function O6(D,N){var Y=zf(this,D),ie=Y.size;return Y.set(D,N),this.size+=Y.size==ie?0:1,this}io.prototype.clear=T6,io.prototype.delete=S6,io.prototype.get=D6,io.prototype.has=C6,io.prototype.set=O6;function ys(D){var N=-1,Y=D==null?0:D.length;for(this.__data__=new io;++N<Y;)this.add(D[N])}function I6(D){return this.__data__.set(D,u),this}function k6(D){return this.__data__.has(D)}ys.prototype.add=ys.prototype.push=I6,ys.prototype.has=k6;function pa(D){var N=this.__data__=new no(D);this.size=N.size}function R6(){this.__data__=new no,this.size=0}function F6(D){var N=this.__data__,Y=N.delete(D);return this.size=N.size,Y}function N6(D){return this.__data__.get(D)}function M6(D){return this.__data__.has(D)}function B6(D,N){var Y=this.__data__;if(Y instanceof no){var ie=Y.__data__;if(!Ac||ie.length<i-1)return ie.push([D,N]),this.size=++Y.size,this;Y=this.__data__=new io(ie)}return Y.set(D,N),this.size=Y.size,this}pa.prototype.clear=R6,pa.prototype.delete=F6,pa.prototype.get=N6,pa.prototype.has=M6,pa.prototype.set=B6;function p2(D,N){var Y=Gt(D),ie=!Y&&Es(D),he=!Y&&!ie&&Ho(D),ge=!Y&&!ie&&!he&&su(D),xe=Y||ie||he||ge,Te=xe?xc(D.length,q4):[],ke=Te.length;for(var Xe in D)(N||Cr.call(D,Xe))&&!(xe&&(Xe=="length"||he&&(Xe=="offset"||Xe=="parent")||ge&&(Xe=="buffer"||Xe=="byteLength"||Xe=="byteOffset")||uo(Xe,ke)))&&Te.push(Xe);return Te}function m2(D){var N=D.length;return N?D[cp(0,N-1)]:e}function U6(D,N){return Hf(yi(D),bs(N,0,D.length))}function P6(D){return Hf(yi(D))}function Qd(D,N,Y){(Y!==e&&!ma(D[N],Y)||Y===e&&!(N in D))&&ao(D,N,Y)}function Cc(D,N,Y){var ie=D[N];(!(Cr.call(D,N)&&ma(ie,Y))||Y===e&&!(N in D))&&ao(D,N,Y)}function If(D,N){for(var Y=D.length;Y--;)if(ma(D[Y][0],N))return Y;return-1}function L6(D,N,Y,ie){return Lo(D,function(he,ge,xe){N(ie,he,Y(he),xe)}),ie}function g2(D,N){return D&&Ra(N,Fn(N),D)}function j6(D,N){return D&&Ra(N,wi(N),D)}function ao(D,N,Y){N=="__proto__"&&Af?Af(D,N,{configurable:!0,enumerable:!0,value:Y,writable:!0}):D[N]=Y}function ep(D,N){for(var Y=-1,ie=N.length,he=Pe(ie),ge=D==null;++Y<ie;)he[Y]=ge?e:Np(D,N[Y]);return he}function bs(D,N,Y){return D===D&&(Y!==e&&(D=D<=Y?D:Y),N!==e&&(D=D>=N?D:N)),D}function Ki(D,N,Y,ie,he,ge){var xe,Te=N&d,ke=N&h,Xe=N&f;if(Y&&(xe=he?Y(D,ie,he,ge):Y(D)),xe!==e)return xe;if(!Jr(D))return D;var Ke=Gt(D);if(Ke){if(xe=C5(D),!Te)return yi(D,xe)}else{var Ye=Zn(D),ft=Ye==re||Ye==ae;if(Ho(D))return j2(D,Te);if(Ye==P||Ye==te||ft&&!he){if(xe=ke||ft?{}:av(D),!Te)return ke?v5(D,j6(xe,D)):g5(D,g2(xe,D))}else{if(!Nr[Ye])return he?D:{};xe=O5(D,Ye,Te)}}ge||(ge=new pa);var wt=ge.get(D);if(wt)return wt;ge.set(D,xe),Nv(D)?D.forEach(function(Bt){xe.add(Ki(Bt,N,Y,Bt,D,ge))}):Rv(D)&&D.forEach(function(Bt,or){xe.set(or,Ki(Bt,N,Y,or,D,ge))});var Mt=Xe?ke?wp:bp:ke?wi:Fn,Yt=Ke?e:Mt(D);return vi(Yt||D,function(Bt,or){Yt&&(or=Bt,Bt=D[or]),Cc(xe,or,Ki(Bt,N,Y,or,D,ge))}),xe}function W6(D){var N=Fn(D);return function(Y){return v2(Y,D,N)}}function v2(D,N,Y){var ie=Y.length;if(D==null)return!ie;for(D=Lr(D);ie--;){var he=Y[ie],ge=N[he],xe=D[he];if(xe===e&&!(he in D)||!ge(xe))return!1}return!0}function y2(D,N,Y){if(typeof D!="function")throw new Gi(o);return Mc(function(){D.apply(e,Y)},N)}function Oc(D,N,Y,ie){var he=-1,ge=Gs,xe=!0,Te=D.length,ke=[],Xe=N.length;if(!Te)return ke;Y&&(N=Wr(N,pe(Y))),ie?(ge=Xs,xe=!1):N.length>=i&&(ge=_e,xe=!1,N=new ys(N));e:for(;++he<Te;){var Ke=D[he],Ye=Y==null?Ke:Y(Ke);if(Ke=ie||Ke!==0?Ke:0,xe&&Ye===Ye){for(var ft=Xe;ft--;)if(N[ft]===Ye)continue e;ke.push(Ke)}else ge(N,Ye,ie)||ke.push(Ke)}return ke}var Lo=V2(ka),b2=V2(rp,!0);function z6(D,N){var Y=!0;return Lo(D,function(ie,he,ge){return Y=!!N(ie,he,ge),Y}),Y}function kf(D,N,Y){for(var ie=-1,he=D.length;++ie<he;){var ge=D[ie],xe=N(ge);if(xe!=null&&(Te===e?xe===xe&&!Ui(xe):Y(xe,Te)))var Te=xe,ke=ge}return ke}function H6(D,N,Y,ie){var he=D.length;for(Y=Xt(Y),Y<0&&(Y=-Y>he?0:he+Y),ie=ie===e||ie>he?he:Xt(ie),ie<0&&(ie+=he),ie=Y>ie?0:Bv(ie);Y<ie;)D[Y++]=N;return D}function w2(D,N){var Y=[];return Lo(D,function(ie,he,ge){N(ie,he,ge)&&Y.push(ie)}),Y}function Wn(D,N,Y,ie,he){var ge=-1,xe=D.length;for(Y||(Y=k5),he||(he=[]);++ge<xe;){var Te=D[ge];N>0&&Y(Te)?N>1?Wn(Te,N-1,Y,ie,he):ha(he,Te):ie||(he[he.length]=Te)}return he}var tp=q2(),x2=q2(!0);function ka(D,N){return D&&tp(D,N,Fn)}function rp(D,N){return D&&x2(D,N,Fn)}function Rf(D,N){return Ia(N,function(Y){return co(D[Y])})}function ws(D,N){N=Wo(N,D);for(var Y=0,ie=N.length;D!=null&&Y<ie;)D=D[Fa(N[Y++])];return Y&&Y==ie?D:e}function _2(D,N,Y){var ie=N(D);return Gt(D)?ie:ha(ie,Y(D))}function ui(D){return D==null?D===e?fe:Q:gs&&gs in Lr(D)?T5(D):P5(D)}function np(D,N){return D>N}function $6(D,N){return D!=null&&Cr.call(D,N)}function V6(D,N){return D!=null&&N in Lr(D)}function q6(D,N,Y){return D>=Kn(N,Y)&&D<En(N,Y)}function ip(D,N,Y){for(var ie=Y?Xs:Gs,he=D[0].length,ge=D.length,xe=ge,Te=Pe(ge),ke=1/0,Xe=[];xe--;){var Ke=D[xe];xe&&N&&(Ke=Wr(Ke,pe(N))),ke=Kn(Ke.length,ke),Te[xe]=!Y&&(N||he>=120&&Ke.length>=120)?new ys(xe&&Ke):e}Ke=D[0];var Ye=-1,ft=Te[0];e:for(;++Ye<he&&Xe.length<ke;){var wt=Ke[Ye],Mt=N?N(wt):wt;if(wt=Y||wt!==0?wt:0,!(ft?_e(ft,Mt):ie(Xe,Mt,Y))){for(xe=ge;--xe;){var Yt=Te[xe];if(!(Yt?_e(Yt,Mt):ie(D[xe],Mt,Y)))continue e}ft&&ft.push(Mt),Xe.push(wt)}}return Xe}function G6(D,N,Y,ie){return ka(D,function(he,ge,xe){N(ie,Y(he),ge,xe)}),ie}function Ic(D,N,Y){N=Wo(N,D),D=cv(D,N);var ie=D==null?D:D[Fa(Yi(N))];return ie==null?e:Rn(ie,D,Y)}function E2(D){return rn(D)&&ui(D)==te}function X6(D){return rn(D)&&ui(D)==Ee}function K6(D){return rn(D)&&ui(D)==L}function kc(D,N,Y,ie,he){return D===N?!0:D==null||N==null||!rn(D)&&!rn(N)?D!==D&&N!==N:Z6(D,N,Y,ie,kc,he)}function Z6(D,N,Y,ie,he,ge){var xe=Gt(D),Te=Gt(N),ke=xe?$:Zn(D),Xe=Te?$:Zn(N);ke=ke==te?P:ke,Xe=Xe==te?P:Xe;var Ke=ke==P,Ye=Xe==P,ft=ke==Xe;if(ft&&Ho(D)){if(!Ho(N))return!1;xe=!0,Ke=!1}if(ft&&!Ke)return ge||(ge=new pa),xe||su(D)?rv(D,N,Y,ie,he,ge):E5(D,N,ke,Y,ie,he,ge);if(!(Y&g)){var wt=Ke&&Cr.call(D,"__wrapped__"),Mt=Ye&&Cr.call(N,"__wrapped__");if(wt||Mt){var Yt=wt?D.value():D,Bt=Mt?N.value():N;return ge||(ge=new pa),he(Yt,Bt,Y,ie,ge)}}return ft?(ge||(ge=new pa),A5(D,N,Y,ie,he,ge)):!1}function Y6(D){return rn(D)&&Zn(D)==j}function ap(D,N,Y,ie){var he=Y.length,ge=he,xe=!ie;if(D==null)return!ge;for(D=Lr(D);he--;){var Te=Y[he];if(xe&&Te[2]?Te[1]!==D[Te[0]]:!(Te[0]in D))return!1}for(;++he<ge;){Te=Y[he];var ke=Te[0],Xe=D[ke],Ke=Te[1];if(xe&&Te[2]){if(Xe===e&&!(ke in D))return!1}else{var Ye=new pa;if(ie)var ft=ie(Xe,Ke,ke,D,N,Ye);if(!(ft===e?kc(Ke,Xe,g|m,ie,Ye):ft))return!1}}return!0}function A2(D){if(!Jr(D)||F5(D))return!1;var N=co(D)?Y4:jr;return N.test(_s(D))}function J6(D){return rn(D)&&ui(D)==oe}function Q6(D){return rn(D)&&Zn(D)==ce}function e5(D){return rn(D)&&Kf(D.length)&&!!Dr[ui(D)]}function T2(D){return typeof D=="function"?D:D==null?xi:typeof D=="object"?Gt(D)?C2(D[0],D[1]):D2(D):Gv(D)}function op(D){if(!Nc(D))return n6(D);var N=[];for(var Y in Lr(D))Cr.call(D,Y)&&Y!="constructor"&&N.push(Y);return N}function t5(D){if(!Jr(D))return U5(D);var N=Nc(D),Y=[];for(var ie in D)ie=="constructor"&&(N||!Cr.call(D,ie))||Y.push(ie);return Y}function sp(D,N){return D<N}function S2(D,N){var Y=-1,ie=bi(D)?Pe(D.length):[];return Lo(D,function(he,ge,xe){ie[++Y]=N(he,ge,xe)}),ie}function D2(D){var N=_p(D);return N.length==1&&N[0][2]?sv(N[0][0],N[0][1]):function(Y){return Y===D||ap(Y,D,N)}}function C2(D,N){return Ap(D)&&ov(N)?sv(Fa(D),N):function(Y){var ie=Np(Y,D);return ie===e&&ie===N?Mp(Y,D):kc(N,ie,g|m)}}function Ff(D,N,Y,ie,he){D!==N&&tp(N,function(ge,xe){if(he||(he=new pa),Jr(ge))r5(D,N,xe,Y,Ff,ie,he);else{var Te=ie?ie(Sp(D,xe),ge,xe+"",D,N,he):e;Te===e&&(Te=ge),Qd(D,xe,Te)}},wi)}function r5(D,N,Y,ie,he,ge,xe){var Te=Sp(D,Y),ke=Sp(N,Y),Xe=xe.get(ke);if(Xe){Qd(D,Y,Xe);return}var Ke=ge?ge(Te,ke,Y+"",D,N,xe):e,Ye=Ke===e;if(Ye){var ft=Gt(ke),wt=!ft&&Ho(ke),Mt=!ft&&!wt&&su(ke);Ke=ke,ft||wt||Mt?Gt(Te)?Ke=Te:sn(Te)?Ke=yi(Te):wt?(Ye=!1,Ke=j2(ke,!0)):Mt?(Ye=!1,Ke=W2(ke,!0)):Ke=[]:Bc(ke)||Es(ke)?(Ke=Te,Es(Te)?Ke=Uv(Te):(!Jr(Te)||co(Te))&&(Ke=av(ke))):Ye=!1}Ye&&(xe.set(ke,Ke),he(Ke,ke,ie,ge,xe),xe.delete(ke)),Qd(D,Y,Ke)}function O2(D,N){var Y=D.length;if(!!Y)return N+=N<0?Y:0,uo(N,Y)?D[N]:e}function I2(D,N,Y){N.length?N=Wr(N,function(ge){return Gt(ge)?function(xe){return ws(xe,ge.length===1?ge[0]:ge)}:ge}):N=[xi];var ie=-1;N=Wr(N,pe(Rt()));var he=S2(D,function(ge,xe,Te){var ke=Wr(N,function(Xe){return Xe(ge)});return{criteria:ke,index:++ie,value:ge}});return wc(he,function(ge,xe){return m5(ge,xe,Y)})}function n5(D,N){return k2(D,N,function(Y,ie){return Mp(D,ie)})}function k2(D,N,Y){for(var ie=-1,he=N.length,ge={};++ie<he;){var xe=N[ie],Te=ws(D,xe);Y(Te,xe)&&Rc(ge,Wo(xe,D),Te)}return ge}function i5(D){return function(N){return ws(N,D)}}function up(D,N,Y,ie){var he=ie?Gd:Bo,ge=-1,xe=N.length,Te=D;for(D===N&&(N=yi(N)),Y&&(Te=Wr(D,pe(Y)));++ge<xe;)for(var ke=0,Xe=N[ge],Ke=Y?Y(Xe):Xe;(ke=he(Te,Ke,ke,ie))>-1;)Te!==D&&Ef.call(Te,ke,1),Ef.call(D,ke,1);return D}function R2(D,N){for(var Y=D?N.length:0,ie=Y-1;Y--;){var he=N[Y];if(Y==ie||he!==ge){var ge=he;uo(he)?Ef.call(D,he,1):hp(D,he)}}return D}function cp(D,N){return D+Sf(h2()*(N-D+1))}function a5(D,N,Y,ie){for(var he=-1,ge=En(Tf((N-D)/(Y||1)),0),xe=Pe(ge);ge--;)xe[ie?ge:++he]=D,D+=Y;return xe}function lp(D,N){var Y="";if(!D||N<1||N>_)return Y;do N%2&&(Y+=D),N=Sf(N/2),N&&(D+=D);while(N);return Y}function Qt(D,N){return Dp(uv(D,N,xi),D+"")}function o5(D){return m2(uu(D))}function s5(D,N){var Y=uu(D);return Hf(Y,bs(N,0,Y.length))}function Rc(D,N,Y,ie){if(!Jr(D))return D;N=Wo(N,D);for(var he=-1,ge=N.length,xe=ge-1,Te=D;Te!=null&&++he<ge;){var ke=Fa(N[he]),Xe=Y;if(ke==="__proto__"||ke==="constructor"||ke==="prototype")return D;if(he!=xe){var Ke=Te[ke];Xe=ie?ie(Ke,ke,Te):e,Xe===e&&(Xe=Jr(Ke)?Ke:uo(N[he+1])?[]:{})}Cc(Te,ke,Xe),Te=Te[ke]}return D}var F2=Df?function(D,N){return Df.set(D,N),D}:xi,u5=Af?function(D,N){return Af(D,"toString",{configurable:!0,enumerable:!1,value:Up(N),writable:!0})}:xi;function c5(D){return Hf(uu(D))}function Zi(D,N,Y){var ie=-1,he=D.length;N<0&&(N=-N>he?0:he+N),Y=Y>he?he:Y,Y<0&&(Y+=he),he=N>Y?0:Y-N>>>0,N>>>=0;for(var ge=Pe(he);++ie<he;)ge[ie]=D[ie+N];return ge}function l5(D,N){var Y;return Lo(D,function(ie,he,ge){return Y=N(ie,he,ge),!Y}),!!Y}function Nf(D,N,Y){var ie=0,he=D==null?ie:D.length;if(typeof N=="number"&&N===N&&he<=X){for(;ie<he;){var ge=ie+he>>>1,xe=D[ge];xe!==null&&!Ui(xe)&&(Y?xe<=N:xe<N)?ie=ge+1:he=ge}return he}return fp(D,N,xi,Y)}function fp(D,N,Y,ie){var he=0,ge=D==null?0:D.length;if(ge===0)return 0;N=Y(N);for(var xe=N!==N,Te=N===null,ke=Ui(N),Xe=N===e;he<ge;){var Ke=Sf((he+ge)/2),Ye=Y(D[Ke]),ft=Ye!==e,wt=Ye===null,Mt=Ye===Ye,Yt=Ui(Ye);if(xe)var Bt=ie||Mt;else Xe?Bt=Mt&&(ie||ft):Te?Bt=Mt&&ft&&(ie||!wt):ke?Bt=Mt&&ft&&!wt&&(ie||!Yt):wt||Yt?Bt=!1:Bt=ie?Ye<=N:Ye<N;Bt?he=Ke+1:ge=Ke}return Kn(ge,B)}function N2(D,N){for(var Y=-1,ie=D.length,he=0,ge=[];++Y<ie;){var xe=D[Y],Te=N?N(xe):xe;if(!Y||!ma(Te,ke)){var ke=Te;ge[he++]=xe===0?0:xe}}return ge}function M2(D){return typeof D=="number"?D:Ui(D)?R:+D}function Bi(D){if(typeof D=="string")return D;if(Gt(D))return Wr(D,Bi)+"";if(Ui(D))return d2?d2.call(D):"";var N=D+"";return N=="0"&&1/D==-w?"-0":N}function jo(D,N,Y){var ie=-1,he=Gs,ge=D.length,xe=!0,Te=[],ke=Te;if(Y)xe=!1,he=Xs;else if(ge>=i){var Xe=N?null:x5(D);if(Xe)return mf(Xe);xe=!1,he=_e,ke=new ys}else ke=N?[]:Te;e:for(;++ie<ge;){var Ke=D[ie],Ye=N?N(Ke):Ke;if(Ke=Y||Ke!==0?Ke:0,xe&&Ye===Ye){for(var ft=ke.length;ft--;)if(ke[ft]===Ye)continue e;N&&ke.push(Ye),Te.push(Ke)}else he(ke,Ye,Y)||(ke!==Te&&ke.push(Ye),Te.push(Ke))}return Te}function hp(D,N){return N=Wo(N,D),D=cv(D,N),D==null||delete D[Fa(Yi(N))]}function B2(D,N,Y,ie){return Rc(D,N,Y(ws(D,N)),ie)}function Mf(D,N,Y,ie){for(var he=D.length,ge=ie?he:-1;(ie?ge--:++ge<he)&&N(D[ge],ge,D););return Y?Zi(D,ie?0:ge,ie?ge+1:he):Zi(D,ie?ge+1:0,ie?he:ge)}function U2(D,N){var Y=D;return Y instanceof ur&&(Y=Y.value()),ms(N,function(ie,he){return he.func.apply(he.thisArg,ha([ie],he.args))},Y)}function dp(D,N,Y){var ie=D.length;if(ie<2)return ie?jo(D[0]):[];for(var he=-1,ge=Pe(ie);++he<ie;)for(var xe=D[he],Te=-1;++Te<ie;)Te!=he&&(ge[he]=Oc(ge[he]||xe,D[Te],N,Y));return jo(Wn(ge,1),N,Y)}function P2(D,N,Y){for(var ie=-1,he=D.length,ge=N.length,xe={};++ie<he;){var Te=ie<ge?N[ie]:e;Y(xe,D[ie],Te)}return xe}function pp(D){return sn(D)?D:[]}function mp(D){return typeof D=="function"?D:xi}function Wo(D,N){return Gt(D)?D:Ap(D,N)?[D]:dv(Ar(D))}var f5=Qt;function zo(D,N,Y){var ie=D.length;return Y=Y===e?ie:Y,!N&&Y>=ie?D:Zi(D,N,Y)}var L2=J4||function(D){return vn.clearTimeout(D)};function j2(D,N){if(N)return D.slice();var Y=D.length,ie=s2?s2(Y):new D.constructor(Y);return D.copy(ie),ie}function gp(D){var N=new D.constructor(D.byteLength);return new xf(N).set(new xf(D)),N}function h5(D,N){var Y=N?gp(D.buffer):D.buffer;return new D.constructor(Y,D.byteOffset,D.byteLength)}function d5(D){var N=new D.constructor(D.source,St.exec(D));return N.lastIndex=D.lastIndex,N}function p5(D){return Dc?Lr(Dc.call(D)):{}}function W2(D,N){var Y=N?gp(D.buffer):D.buffer;return new D.constructor(Y,D.byteOffset,D.length)}function z2(D,N){if(D!==N){var Y=D!==e,ie=D===null,he=D===D,ge=Ui(D),xe=N!==e,Te=N===null,ke=N===N,Xe=Ui(N);if(!Te&&!Xe&&!ge&&D>N||ge&&xe&&ke&&!Te&&!Xe||ie&&xe&&ke||!Y&&ke||!he)return 1;if(!ie&&!ge&&!Xe&&D<N||Xe&&Y&&he&&!ie&&!ge||Te&&Y&&he||!xe&&he||!ke)return-1}return 0}function m5(D,N,Y){for(var ie=-1,he=D.criteria,ge=N.criteria,xe=he.length,Te=Y.length;++ie<xe;){var ke=z2(he[ie],ge[ie]);if(ke){if(ie>=Te)return ke;var Xe=Y[ie];return ke*(Xe=="desc"?-1:1)}}return D.index-N.index}function H2(D,N,Y,ie){for(var he=-1,ge=D.length,xe=Y.length,Te=-1,ke=N.length,Xe=En(ge-xe,0),Ke=Pe(ke+Xe),Ye=!ie;++Te<ke;)Ke[Te]=N[Te];for(;++he<xe;)(Ye||he<ge)&&(Ke[Y[he]]=D[he]);for(;Xe--;)Ke[Te++]=D[he++];return Ke}function $2(D,N,Y,ie){for(var he=-1,ge=D.length,xe=-1,Te=Y.length,ke=-1,Xe=N.length,Ke=En(ge-Te,0),Ye=Pe(Ke+Xe),ft=!ie;++he<Ke;)Ye[he]=D[he];for(var wt=he;++ke<Xe;)Ye[wt+ke]=N[ke];for(;++xe<Te;)(ft||he<ge)&&(Ye[wt+Y[xe]]=D[he++]);return Ye}function yi(D,N){var Y=-1,ie=D.length;for(N||(N=Pe(ie));++Y<ie;)N[Y]=D[Y];return N}function Ra(D,N,Y,ie){var he=!Y;Y||(Y={});for(var ge=-1,xe=N.length;++ge<xe;){var Te=N[ge],ke=ie?ie(Y[Te],D[Te],Te,Y,D):e;ke===e&&(ke=D[Te]),he?ao(Y,Te,ke):Cc(Y,Te,ke)}return Y}function g5(D,N){return Ra(D,Ep(D),N)}function v5(D,N){return Ra(D,nv(D),N)}function Bf(D,N){return function(Y,ie){var he=Gt(Y)?Hd:L6,ge=N?N():{};return he(Y,D,Rt(ie,2),ge)}}function iu(D){return Qt(function(N,Y){var ie=-1,he=Y.length,ge=he>1?Y[he-1]:e,xe=he>2?Y[2]:e;for(ge=D.length>3&&typeof ge=="function"?(he--,ge):e,xe&&ci(Y[0],Y[1],xe)&&(ge=he<3?e:ge,he=1),N=Lr(N);++ie<he;){var Te=Y[ie];Te&&D(N,Te,ie,ge)}return N})}function V2(D,N){return function(Y,ie){if(Y==null)return Y;if(!bi(Y))return D(Y,ie);for(var he=Y.length,ge=N?he:-1,xe=Lr(Y);(N?ge--:++ge<he)&&ie(xe[ge],ge,xe)!==!1;);return Y}}function q2(D){return function(N,Y,ie){for(var he=-1,ge=Lr(N),xe=ie(N),Te=xe.length;Te--;){var ke=xe[D?Te:++he];if(Y(ge[ke],ke,ge)===!1)break}return N}}function y5(D,N,Y){var ie=N&p,he=Fc(D);function ge(){var xe=this&&this!==vn&&this instanceof ge?he:D;return xe.apply(ie?Y:this,arguments)}return ge}function G2(D){return function(N){N=Ar(N);var Y=tn(N)?da(N):e,ie=Y?Y[0]:N.charAt(0),he=Y?zo(Y,1).join(""):N.slice(1);return ie[D]()+he}}function au(D){return function(N){return ms(Vv($v(N).replace(Gl,"")),D,"")}}function Fc(D){return function(){var N=arguments;switch(N.length){case 0:return new D;case 1:return new D(N[0]);case 2:return new D(N[0],N[1]);case 3:return new D(N[0],N[1],N[2]);case 4:return new D(N[0],N[1],N[2],N[3]);case 5:return new D(N[0],N[1],N[2],N[3],N[4]);case 6:return new D(N[0],N[1],N[2],N[3],N[4],N[5]);case 7:return new D(N[0],N[1],N[2],N[3],N[4],N[5],N[6])}var Y=nu(D.prototype),ie=D.apply(Y,N);return Jr(ie)?ie:Y}}function b5(D,N,Y){var ie=Fc(D);function he(){for(var ge=arguments.length,xe=Pe(ge),Te=ge,ke=ou(he);Te--;)xe[Te]=arguments[Te];var Xe=ge<3&&xe[0]!==ke&&xe[ge-1]!==ke?[]:Uo(xe,ke);if(ge-=Xe.length,ge<Y)return J2(D,N,Uf,he.placeholder,e,xe,Xe,e,e,Y-ge);var Ke=this&&this!==vn&&this instanceof he?ie:D;return Rn(Ke,this,xe)}return he}function X2(D){return function(N,Y,ie){var he=Lr(N);if(!bi(N)){var ge=Rt(Y,3);N=Fn(N),Y=function(Te){return ge(he[Te],Te,he)}}var xe=D(N,Y,ie);return xe>-1?he[ge?N[xe]:xe]:e}}function K2(D){return so(function(N){var Y=N.length,ie=Y,he=Xi.prototype.thru;for(D&&N.reverse();ie--;){var ge=N[ie];if(typeof ge!="function")throw new Gi(o);if(he&&!xe&&Wf(ge)=="wrapper")var xe=new Xi([],!0)}for(ie=xe?ie:Y;++ie<Y;){ge=N[ie];var Te=Wf(ge),ke=Te=="wrapper"?xp(ge):e;ke&&Tp(ke[0])&&ke[1]==(z|b|C|W)&&!ke[4].length&&ke[9]==1?xe=xe[Wf(ke[0])].apply(xe,ke[3]):xe=ge.length==1&&Tp(ge)?xe[Te]():xe.thru(ge)}return function(){var Xe=arguments,Ke=Xe[0];if(xe&&Xe.length==1&&Gt(Ke))return xe.plant(Ke).value();for(var Ye=0,ft=Y?N[Ye].apply(this,Xe):Ke;++Ye<Y;)ft=N[Ye].call(this,ft);return ft}})}function Uf(D,N,Y,ie,he,ge,xe,Te,ke,Xe){var Ke=N&z,Ye=N&p,ft=N&y,wt=N&(b|A),Mt=N&U,Yt=ft?e:Fc(D);function Bt(){for(var or=arguments.length,fr=Pe(or),Pi=or;Pi--;)fr[Pi]=arguments[Pi];if(wt)var li=ou(Bt),Li=Ve(fr,li);if(ie&&(fr=H2(fr,ie,he,wt)),ge&&(fr=$2(fr,ge,xe,wt)),or-=Li,wt&&or<Xe){var un=Uo(fr,li);return J2(D,N,Uf,Bt.placeholder,Y,fr,un,Te,ke,Xe-or)}var ga=Ye?Y:this,fo=ft?ga[D]:D;return or=fr.length,Te?fr=L5(fr,Te):Mt&&or>1&&fr.reverse(),Ke&&ke<or&&(fr.length=ke),this&&this!==vn&&this instanceof Bt&&(fo=Yt||Fc(fo)),fo.apply(ga,fr)}return Bt}function Z2(D,N){return function(Y,ie){return G6(Y,D,N(ie),{})}}function Pf(D,N){return function(Y,ie){var he;if(Y===e&&ie===e)return N;if(Y!==e&&(he=Y),ie!==e){if(he===e)return ie;typeof Y=="string"||typeof ie=="string"?(Y=Bi(Y),ie=Bi(ie)):(Y=M2(Y),ie=M2(ie)),he=D(Y,ie)}return he}}function vp(D){return so(function(N){return N=Wr(N,pe(Rt())),Qt(function(Y){var ie=this;return D(N,function(he){return Rn(he,ie,Y)})})})}function Lf(D,N){N=N===e?" ":Bi(N);var Y=N.length;if(Y<2)return Y?lp(N,D):N;var ie=lp(N,Tf(D/Js(N)));return tn(N)?zo(da(ie),0,D).join(""):ie.slice(0,D)}function w5(D,N,Y,ie){var he=N&p,ge=Fc(D);function xe(){for(var Te=-1,ke=arguments.length,Xe=-1,Ke=ie.length,Ye=Pe(Ke+ke),ft=this&&this!==vn&&this instanceof xe?ge:D;++Xe<Ke;)Ye[Xe]=ie[Xe];for(;ke--;)Ye[Xe++]=arguments[++Te];return Rn(ft,he?Y:this,Ye)}return xe}function Y2(D){return function(N,Y,ie){return ie&&typeof ie!="number"&&ci(N,Y,ie)&&(Y=ie=e),N=lo(N),Y===e?(Y=N,N=0):Y=lo(Y),ie=ie===e?N<Y?1:-1:lo(ie),a5(N,Y,ie,D)}}function jf(D){return function(N,Y){return typeof N=="string"&&typeof Y=="string"||(N=Ji(N),Y=Ji(Y)),D(N,Y)}}function J2(D,N,Y,ie,he,ge,xe,Te,ke,Xe){var Ke=N&b,Ye=Ke?xe:e,ft=Ke?e:xe,wt=Ke?ge:e,Mt=Ke?e:ge;N|=Ke?C:M,N&=~(Ke?M:C),N&v||(N&=~(p|y));var Yt=[D,N,he,wt,Ye,Mt,ft,Te,ke,Xe],Bt=Y.apply(e,Yt);return Tp(D)&&lv(Bt,Yt),Bt.placeholder=ie,fv(Bt,D,N)}function yp(D){var N=_n[D];return function(Y,ie){if(Y=Ji(Y),ie=ie==null?0:Kn(Xt(ie),292),ie&&f2(Y)){var he=(Ar(Y)+"e").split("e"),ge=N(he[0]+"e"+(+he[1]+ie));return he=(Ar(ge)+"e").split("e"),+(he[0]+"e"+(+he[1]-ie))}return N(Y)}}var x5=tu&&1/mf(new tu([,-0]))[1]==w?function(D){return new tu(D)}:jp;function Q2(D){return function(N){var Y=Zn(N);return Y==j?Xd(N):Y==ce?P4(N):_c(N,D(N))}}function oo(D,N,Y,ie,he,ge,xe,Te){var ke=N&y;if(!ke&&typeof D!="function")throw new Gi(o);var Xe=ie?ie.length:0;if(Xe||(N&=~(C|M),ie=he=e),xe=xe===e?xe:En(Xt(xe),0),Te=Te===e?Te:Xt(Te),Xe-=he?he.length:0,N&M){var Ke=ie,Ye=he;ie=he=e}var ft=ke?e:xp(D),wt=[D,N,Y,ie,he,Ke,Ye,ge,xe,Te];if(ft&&B5(wt,ft),D=wt[0],N=wt[1],Y=wt[2],ie=wt[3],he=wt[4],Te=wt[9]=wt[9]===e?ke?0:D.length:En(wt[9]-Xe,0),!Te&&N&(b|A)&&(N&=~(b|A)),!N||N==p)var Mt=y5(D,N,Y);else N==b||N==A?Mt=b5(D,N,Te):(N==C||N==(p|C))&&!he.length?Mt=w5(D,N,Y,ie):Mt=Uf.apply(e,wt);var Yt=ft?F2:lv;return fv(Yt(Mt,wt),D,N)}function ev(D,N,Y,ie){return D===e||ma(D,eu[Y])&&!Cr.call(ie,Y)?N:D}function tv(D,N,Y,ie,he,ge){return Jr(D)&&Jr(N)&&(ge.set(N,D),Ff(D,N,e,tv,ge),ge.delete(N)),D}function _5(D){return Bc(D)?e:D}function rv(D,N,Y,ie,he,ge){var xe=Y&g,Te=D.length,ke=N.length;if(Te!=ke&&!(xe&&ke>Te))return!1;var Xe=ge.get(D),Ke=ge.get(N);if(Xe&&Ke)return Xe==N&&Ke==D;var Ye=-1,ft=!0,wt=Y&m?new ys:e;for(ge.set(D,N),ge.set(N,D);++Ye<Te;){var Mt=D[Ye],Yt=N[Ye];if(ie)var Bt=xe?ie(Yt,Mt,Ye,N,D,ge):ie(Mt,Yt,Ye,D,N,ge);if(Bt!==e){if(Bt)continue;ft=!1;break}if(wt){if(!vc(N,function(or,fr){if(!_e(wt,fr)&&(Mt===or||he(Mt,or,Y,ie,ge)))return wt.push(fr)})){ft=!1;break}}else if(!(Mt===Yt||he(Mt,Yt,Y,ie,ge))){ft=!1;break}}return ge.delete(D),ge.delete(N),ft}function E5(D,N,Y,ie,he,ge,xe){switch(Y){case Se:if(D.byteLength!=N.byteLength||D.byteOffset!=N.byteOffset)return!1;D=D.buffer,N=N.buffer;case Ee:return!(D.byteLength!=N.byteLength||!ge(new xf(D),new xf(N)));case k:case L:case ue:return ma(+D,+N);case J:return D.name==N.name&&D.message==N.message;case oe:case ne:return D==N+"";case j:var Te=Xd;case ce:var ke=ie&g;if(Te||(Te=mf),D.size!=N.size&&!ke)return!1;var Xe=xe.get(D);if(Xe)return Xe==N;ie|=m,xe.set(D,N);var Ke=rv(Te(D),Te(N),ie,he,ge,xe);return xe.delete(D),Ke;case se:if(Dc)return Dc.call(D)==Dc.call(N)}return!1}function A5(D,N,Y,ie,he,ge){var xe=Y&g,Te=bp(D),ke=Te.length,Xe=bp(N),Ke=Xe.length;if(ke!=Ke&&!xe)return!1;for(var Ye=ke;Ye--;){var ft=Te[Ye];if(!(xe?ft in N:Cr.call(N,ft)))return!1}var wt=ge.get(D),Mt=ge.get(N);if(wt&&Mt)return wt==N&&Mt==D;var Yt=!0;ge.set(D,N),ge.set(N,D);for(var Bt=xe;++Ye<ke;){ft=Te[Ye];var or=D[ft],fr=N[ft];if(ie)var Pi=xe?ie(fr,or,ft,N,D,ge):ie(or,fr,ft,D,N,ge);if(!(Pi===e?or===fr||he(or,fr,Y,ie,ge):Pi)){Yt=!1;break}Bt||(Bt=ft=="constructor")}if(Yt&&!Bt){var li=D.constructor,Li=N.constructor;li!=Li&&"constructor"in D&&"constructor"in N&&!(typeof li=="function"&&li instanceof li&&typeof Li=="function"&&Li instanceof Li)&&(Yt=!1)}return ge.delete(D),ge.delete(N),Yt}function so(D){return Dp(uv(D,e,vv),D+"")}function bp(D){return _2(D,Fn,Ep)}function wp(D){return _2(D,wi,nv)}var xp=Df?function(D){return Df.get(D)}:jp;function Wf(D){for(var N=D.name+"",Y=ru[N],ie=Cr.call(ru,N)?Y.length:0;ie--;){var he=Y[ie],ge=he.func;if(ge==null||ge==D)return he.name}return N}function ou(D){var N=Cr.call(me,"placeholder")?me:D;return N.placeholder}function Rt(){var D=me.iteratee||Pp;return D=D===Pp?T2:D,arguments.length?D(arguments[0],arguments[1]):D}function zf(D,N){var Y=D.__data__;return R5(N)?Y[typeof N=="string"?"string":"hash"]:Y.map}function _p(D){for(var N=Fn(D),Y=N.length;Y--;){var ie=N[Y],he=D[ie];N[Y]=[ie,he,ov(he)]}return N}function xs(D,N){var Y=yn(D,N);return A2(Y)?Y:e}function T5(D){var N=Cr.call(D,gs),Y=D[gs];try{D[gs]=e;var ie=!0}catch{}var he=bf.call(D);return ie&&(N?D[gs]=Y:delete D[gs]),he}var Ep=Zd?function(D){return D==null?[]:(D=Lr(D),Ia(Zd(D),function(N){return c2.call(D,N)}))}:Wp,nv=Zd?function(D){for(var N=[];D;)ha(N,Ep(D)),D=_f(D);return N}:Wp,Zn=ui;(Yd&&Zn(new Yd(new ArrayBuffer(1)))!=Se||Ac&&Zn(new Ac)!=j||Jd&&Zn(Jd.resolve())!=H||tu&&Zn(new tu)!=ce||Tc&&Zn(new Tc)!=de)&&(Zn=function(D){var N=ui(D),Y=N==P?D.constructor:e,ie=Y?_s(Y):"";if(ie)switch(ie){case s6:return Se;case u6:return j;case c6:return H;case l6:return ce;case f6:return de}return N});function S5(D,N,Y){for(var ie=-1,he=Y.length;++ie<he;){var ge=Y[ie],xe=ge.size;switch(ge.type){case"drop":D+=xe;break;case"dropRight":N-=xe;break;case"take":N=Kn(N,D+xe);break;case"takeRight":D=En(D,N-xe);break}}return{start:D,end:N}}function D5(D){var N=D.match(at);return N?N[1].split(_t):[]}function iv(D,N,Y){N=Wo(N,D);for(var ie=-1,he=N.length,ge=!1;++ie<he;){var xe=Fa(N[ie]);if(!(ge=D!=null&&Y(D,xe)))break;D=D[xe]}return ge||++ie!=he?ge:(he=D==null?0:D.length,!!he&&Kf(he)&&uo(xe,he)&&(Gt(D)||Es(D)))}function C5(D){var N=D.length,Y=new D.constructor(N);return N&&typeof D[0]=="string"&&Cr.call(D,"index")&&(Y.index=D.index,Y.input=D.input),Y}function av(D){return typeof D.constructor=="function"&&!Nc(D)?nu(_f(D)):{}}function O5(D,N,Y){var ie=D.constructor;switch(N){case Ee:return gp(D);case k:case L:return new ie(+D);case Se:return h5(D,Y);case Ne:case He:case qe:case et:case Ue:case Ge:case tt:case rt:case lt:return W2(D,Y);case j:return new ie;case ue:case ne:return new ie(D);case oe:return d5(D);case ce:return new ie;case se:return p5(D)}}function I5(D,N){var Y=N.length;if(!Y)return D;var ie=Y-1;return N[ie]=(Y>1?"& ":"")+N[ie],N=N.join(Y>2?", ":" "),D.replace(je,`{
/* [wrapped with `+N+`] */
`)}function k5(D){return Gt(D)||Es(D)||!!(l2&&D&&D[l2])}function uo(D,N){var Y=typeof D;return N=N==null?_:N,!!N&&(Y=="number"||Y!="symbol"&&Pr.test(D))&&D>-1&&D%1==0&&D<N}function ci(D,N,Y){if(!Jr(Y))return!1;var ie=typeof N;return(ie=="number"?bi(Y)&&uo(N,Y.length):ie=="string"&&N in Y)?ma(Y[N],D):!1}function Ap(D,N){if(Gt(D))return!1;var Y=typeof D;return Y=="number"||Y=="symbol"||Y=="boolean"||D==null||Ui(D)?!0:Ct.test(D)||!rr.test(D)||N!=null&&D in Lr(N)}function R5(D){var N=typeof D;return N=="string"||N=="number"||N=="symbol"||N=="boolean"?D!=="__proto__":D===null}function Tp(D){var N=Wf(D),Y=me[N];if(typeof Y!="function"||!(N in ur.prototype))return!1;if(D===Y)return!0;var ie=xp(Y);return!!ie&&D===ie[0]}function F5(D){return!!o2&&o2 in D}var N5=vf?co:zp;function Nc(D){var N=D&&D.constructor,Y=typeof N=="function"&&N.prototype||eu;return D===Y}function ov(D){return D===D&&!Jr(D)}function sv(D,N){return function(Y){return Y==null?!1:Y[D]===N&&(N!==e||D in Lr(Y))}}function M5(D){var N=Gf(D,function(ie){return Y.size===c&&Y.clear(),ie}),Y=N.cache;return N}function B5(D,N){var Y=D[1],ie=N[1],he=Y|ie,ge=he<(p|y|z),xe=ie==z&&Y==b||ie==z&&Y==W&&D[7].length<=N[8]||ie==(z|W)&&N[7].length<=N[8]&&Y==b;if(!(ge||xe))return D;ie&p&&(D[2]=N[2],he|=Y&p?0:v);var Te=N[3];if(Te){var ke=D[3];D[3]=ke?H2(ke,Te,N[4]):Te,D[4]=ke?Uo(D[3],l):N[4]}return Te=N[5],Te&&(ke=D[5],D[5]=ke?$2(ke,Te,N[6]):Te,D[6]=ke?Uo(D[5],l):N[6]),Te=N[7],Te&&(D[7]=Te),ie&z&&(D[8]=D[8]==null?N[8]:Kn(D[8],N[8])),D[9]==null&&(D[9]=N[9]),D[0]=N[0],D[1]=he,D}function U5(D){var N=[];if(D!=null)for(var Y in Lr(D))N.push(Y);return N}function P5(D){return bf.call(D)}function uv(D,N,Y){return N=En(N===e?D.length-1:N,0),function(){for(var ie=arguments,he=-1,ge=En(ie.length-N,0),xe=Pe(ge);++he<ge;)xe[he]=ie[N+he];he=-1;for(var Te=Pe(N+1);++he<N;)Te[he]=ie[he];return Te[N]=Y(xe),Rn(D,this,Te)}}function cv(D,N){return N.length<2?D:ws(D,Zi(N,0,-1))}function L5(D,N){for(var Y=D.length,ie=Kn(N.length,Y),he=yi(D);ie--;){var ge=N[ie];D[ie]=uo(ge,Y)?he[ge]:e}return D}function Sp(D,N){if(!(N==="constructor"&&typeof D[N]=="function")&&N!="__proto__")return D[N]}var lv=hv(F2),Mc=e6||function(D,N){return vn.setTimeout(D,N)},Dp=hv(u5);function fv(D,N,Y){var ie=N+"";return Dp(D,I5(ie,j5(D5(ie),Y)))}function hv(D){var N=0,Y=0;return function(){var ie=i6(),he=O-(ie-Y);if(Y=ie,he>0){if(++N>=I)return arguments[0]}else N=0;return D.apply(e,arguments)}}function Hf(D,N){var Y=-1,ie=D.length,he=ie-1;for(N=N===e?ie:N;++Y<N;){var ge=cp(Y,he),xe=D[ge];D[ge]=D[Y],D[Y]=xe}return D.length=N,D}var dv=M5(function(D){var N=[];return D.charCodeAt(0)===46&&N.push(""),D.replace(ir,function(Y,ie,he,ge){N.push(he?ge.replace(At,"$1"):ie||Y)}),N});function Fa(D){if(typeof D=="string"||Ui(D))return D;var N=D+"";return N=="0"&&1/D==-w?"-0":N}function _s(D){if(D!=null){try{return yf.call(D)}catch{}try{return D+""}catch{}}return""}function j5(D,N){return vi(K,function(Y){var ie="_."+Y[0];N&Y[1]&&!Gs(D,ie)&&D.push(ie)}),D.sort()}function pv(D){if(D instanceof ur)return D.clone();var N=new Xi(D.__wrapped__,D.__chain__);return N.__actions__=yi(D.__actions__),N.__index__=D.__index__,N.__values__=D.__values__,N}function W5(D,N,Y){(Y?ci(D,N,Y):N===e)?N=1:N=En(Xt(N),0);var ie=D==null?0:D.length;if(!ie||N<1)return[];for(var he=0,ge=0,xe=Pe(Tf(ie/N));he<ie;)xe[ge++]=Zi(D,he,he+=N);return xe}function z5(D){for(var N=-1,Y=D==null?0:D.length,ie=0,he=[];++N<Y;){var ge=D[N];ge&&(he[ie++]=ge)}return he}function H5(){var D=arguments.length;if(!D)return[];for(var N=Pe(D-1),Y=arguments[0],ie=D;ie--;)N[ie-1]=arguments[ie];return ha(Gt(Y)?yi(Y):[Y],Wn(N,1))}var $5=Qt(function(D,N){return sn(D)?Oc(D,Wn(N,1,sn,!0)):[]}),V5=Qt(function(D,N){var Y=Yi(N);return sn(Y)&&(Y=e),sn(D)?Oc(D,Wn(N,1,sn,!0),Rt(Y,2)):[]}),q5=Qt(function(D,N){var Y=Yi(N);return sn(Y)&&(Y=e),sn(D)?Oc(D,Wn(N,1,sn,!0),e,Y):[]});function G5(D,N,Y){var ie=D==null?0:D.length;return ie?(N=Y||N===e?1:Xt(N),Zi(D,N<0?0:N,ie)):[]}function X5(D,N,Y){var ie=D==null?0:D.length;return ie?(N=Y||N===e?1:Xt(N),N=ie-N,Zi(D,0,N<0?0:N)):[]}function K5(D,N){return D&&D.length?Mf(D,Rt(N,3),!0,!0):[]}function Z5(D,N){return D&&D.length?Mf(D,Rt(N,3),!0):[]}function Y5(D,N,Y,ie){var he=D==null?0:D.length;return he?(Y&&typeof Y!="number"&&ci(D,N,Y)&&(Y=0,ie=he),H6(D,N,Y,ie)):[]}function mv(D,N,Y){var ie=D==null?0:D.length;if(!ie)return-1;var he=Y==null?0:Xt(Y);return he<0&&(he=En(ie+he,0)),Mo(D,Rt(N,3),he)}function gv(D,N,Y){var ie=D==null?0:D.length;if(!ie)return-1;var he=ie-1;return Y!==e&&(he=Xt(Y),he=Y<0?En(ie+he,0):Kn(he,ie-1)),Mo(D,Rt(N,3),he,!0)}function vv(D){var N=D==null?0:D.length;return N?Wn(D,1):[]}function J5(D){var N=D==null?0:D.length;return N?Wn(D,w):[]}function Q5(D,N){var Y=D==null?0:D.length;return Y?(N=N===e?1:Xt(N),Wn(D,N)):[]}function e9(D){for(var N=-1,Y=D==null?0:D.length,ie={};++N<Y;){var he=D[N];ie[he[0]]=he[1]}return ie}function yv(D){return D&&D.length?D[0]:e}function t9(D,N,Y){var ie=D==null?0:D.length;if(!ie)return-1;var he=Y==null?0:Xt(Y);return he<0&&(he=En(ie+he,0)),Bo(D,N,he)}function r9(D){var N=D==null?0:D.length;return N?Zi(D,0,-1):[]}var n9=Qt(function(D){var N=Wr(D,pp);return N.length&&N[0]===D[0]?ip(N):[]}),i9=Qt(function(D){var N=Yi(D),Y=Wr(D,pp);return N===Yi(Y)?N=e:Y.pop(),Y.length&&Y[0]===D[0]?ip(Y,Rt(N,2)):[]}),a9=Qt(function(D){var N=Yi(D),Y=Wr(D,pp);return N=typeof N=="function"?N:e,N&&Y.pop(),Y.length&&Y[0]===D[0]?ip(Y,e,N):[]});function o9(D,N){return D==null?"":r6.call(D,N)}function Yi(D){var N=D==null?0:D.length;return N?D[N-1]:e}function s9(D,N,Y){var ie=D==null?0:D.length;if(!ie)return-1;var he=ie;return Y!==e&&(he=Xt(Y),he=he<0?En(ie+he,0):Kn(he,ie-1)),N===N?j4(D,N,he):Mo(D,Zs,he,!0)}function u9(D,N){return D&&D.length?O2(D,Xt(N)):e}var c9=Qt(bv);function bv(D,N){return D&&D.length&&N&&N.length?up(D,N):D}function l9(D,N,Y){return D&&D.length&&N&&N.length?up(D,N,Rt(Y,2)):D}function f9(D,N,Y){return D&&D.length&&N&&N.length?up(D,N,e,Y):D}var h9=so(function(D,N){var Y=D==null?0:D.length,ie=ep(D,N);return R2(D,Wr(N,function(he){return uo(he,Y)?+he:he}).sort(z2)),ie});function d9(D,N){var Y=[];if(!(D&&D.length))return Y;var ie=-1,he=[],ge=D.length;for(N=Rt(N,3);++ie<ge;){var xe=D[ie];N(xe,ie,D)&&(Y.push(xe),he.push(ie))}return R2(D,he),Y}function Cp(D){return D==null?D:o6.call(D)}function p9(D,N,Y){var ie=D==null?0:D.length;return ie?(Y&&typeof Y!="number"&&ci(D,N,Y)?(N=0,Y=ie):(N=N==null?0:Xt(N),Y=Y===e?ie:Xt(Y)),Zi(D,N,Y)):[]}function m9(D,N){return Nf(D,N)}function g9(D,N,Y){return fp(D,N,Rt(Y,2))}function v9(D,N){var Y=D==null?0:D.length;if(Y){var ie=Nf(D,N);if(ie<Y&&ma(D[ie],N))return ie}return-1}function y9(D,N){return Nf(D,N,!0)}function b9(D,N,Y){return fp(D,N,Rt(Y,2),!0)}function w9(D,N){var Y=D==null?0:D.length;if(Y){var ie=Nf(D,N,!0)-1;if(ma(D[ie],N))return ie}return-1}function x9(D){return D&&D.length?N2(D):[]}function _9(D,N){return D&&D.length?N2(D,Rt(N,2)):[]}function E9(D){var N=D==null?0:D.length;return N?Zi(D,1,N):[]}function A9(D,N,Y){return D&&D.length?(N=Y||N===e?1:Xt(N),Zi(D,0,N<0?0:N)):[]}function T9(D,N,Y){var ie=D==null?0:D.length;return ie?(N=Y||N===e?1:Xt(N),N=ie-N,Zi(D,N<0?0:N,ie)):[]}function S9(D,N){return D&&D.length?Mf(D,Rt(N,3),!1,!0):[]}function D9(D,N){return D&&D.length?Mf(D,Rt(N,3)):[]}var C9=Qt(function(D){return jo(Wn(D,1,sn,!0))}),O9=Qt(function(D){var N=Yi(D);return sn(N)&&(N=e),jo(Wn(D,1,sn,!0),Rt(N,2))}),I9=Qt(function(D){var N=Yi(D);return N=typeof N=="function"?N:e,jo(Wn(D,1,sn,!0),e,N)});function k9(D){return D&&D.length?jo(D):[]}function R9(D,N){return D&&D.length?jo(D,Rt(N,2)):[]}function F9(D,N){return N=typeof N=="function"?N:e,D&&D.length?jo(D,e,N):[]}function Op(D){if(!(D&&D.length))return[];var N=0;return D=Ia(D,function(Y){if(sn(Y))return N=En(Y.length,N),!0}),xc(N,function(Y){return Wr(D,yc(Y))})}function wv(D,N){if(!(D&&D.length))return[];var Y=Op(D);return N==null?Y:Wr(Y,function(ie){return Rn(N,e,ie)})}var N9=Qt(function(D,N){return sn(D)?Oc(D,N):[]}),M9=Qt(function(D){return dp(Ia(D,sn))}),B9=Qt(function(D){var N=Yi(D);return sn(N)&&(N=e),dp(Ia(D,sn),Rt(N,2))}),U9=Qt(function(D){var N=Yi(D);return N=typeof N=="function"?N:e,dp(Ia(D,sn),e,N)}),P9=Qt(Op);function L9(D,N){return P2(D||[],N||[],Cc)}function j9(D,N){return P2(D||[],N||[],Rc)}var W9=Qt(function(D){var N=D.length,Y=N>1?D[N-1]:e;return Y=typeof Y=="function"?(D.pop(),Y):e,wv(D,Y)});function xv(D){var N=me(D);return N.__chain__=!0,N}function z9(D,N){return N(D),D}function $f(D,N){return N(D)}var H9=so(function(D){var N=D.length,Y=N?D[0]:0,ie=this.__wrapped__,he=function(ge){return ep(ge,D)};return N>1||this.__actions__.length||!(ie instanceof ur)||!uo(Y)?this.thru(he):(ie=ie.slice(Y,+Y+(N?1:0)),ie.__actions__.push({func:$f,args:[he],thisArg:e}),new Xi(ie,this.__chain__).thru(function(ge){return N&&!ge.length&&ge.push(e),ge}))});function $9(){return xv(this)}function V9(){return new Xi(this.value(),this.__chain__)}function q9(){this.__values__===e&&(this.__values__=Mv(this.value()));var D=this.__index__>=this.__values__.length,N=D?e:this.__values__[this.__index__++];return{done:D,value:N}}function G9(){return this}function X9(D){for(var N,Y=this;Y instanceof Of;){var ie=pv(Y);ie.__index__=0,ie.__values__=e,N?he.__wrapped__=ie:N=ie;var he=ie;Y=Y.__wrapped__}return he.__wrapped__=D,N}function K9(){var D=this.__wrapped__;if(D instanceof ur){var N=D;return this.__actions__.length&&(N=new ur(this)),N=N.reverse(),N.__actions__.push({func:$f,args:[Cp],thisArg:e}),new Xi(N,this.__chain__)}return this.thru(Cp)}function Z9(){return U2(this.__wrapped__,this.__actions__)}var Y9=Bf(function(D,N,Y){Cr.call(D,Y)?++D[Y]:ao(D,Y,1)});function J9(D,N,Y){var ie=Gt(D)?uf:z6;return Y&&ci(D,N,Y)&&(N=e),ie(D,Rt(N,3))}function Q9(D,N){var Y=Gt(D)?Ia:w2;return Y(D,Rt(N,3))}var eE=X2(mv),tE=X2(gv);function rE(D,N){return Wn(Vf(D,N),1)}function nE(D,N){return Wn(Vf(D,N),w)}function iE(D,N,Y){return Y=Y===e?1:Xt(Y),Wn(Vf(D,N),Y)}function _v(D,N){var Y=Gt(D)?vi:Lo;return Y(D,Rt(N,3))}function Ev(D,N){var Y=Gt(D)?$d:b2;return Y(D,Rt(N,3))}var aE=Bf(function(D,N,Y){Cr.call(D,Y)?D[Y].push(N):ao(D,Y,[N])});function oE(D,N,Y,ie){D=bi(D)?D:uu(D),Y=Y&&!ie?Xt(Y):0;var he=D.length;return Y<0&&(Y=En(he+Y,0)),Zf(D)?Y<=he&&D.indexOf(N,Y)>-1:!!he&&Bo(D,N,Y)>-1}var sE=Qt(function(D,N,Y){var ie=-1,he=typeof N=="function",ge=bi(D)?Pe(D.length):[];return Lo(D,function(xe){ge[++ie]=he?Rn(N,xe,Y):Ic(xe,N,Y)}),ge}),uE=Bf(function(D,N,Y){ao(D,Y,N)});function Vf(D,N){var Y=Gt(D)?Wr:S2;return Y(D,Rt(N,3))}function cE(D,N,Y,ie){return D==null?[]:(Gt(N)||(N=N==null?[]:[N]),Y=ie?e:Y,Gt(Y)||(Y=Y==null?[]:[Y]),I2(D,N,Y))}var lE=Bf(function(D,N,Y){D[Y?0:1].push(N)},function(){return[[],[]]});function fE(D,N,Y){var ie=Gt(D)?ms:hf,he=arguments.length<3;return ie(D,Rt(N,4),Y,he,Lo)}function hE(D,N,Y){var ie=Gt(D)?Ks:hf,he=arguments.length<3;return ie(D,Rt(N,4),Y,he,b2)}function dE(D,N){var Y=Gt(D)?Ia:w2;return Y(D,Xf(Rt(N,3)))}function pE(D){var N=Gt(D)?m2:o5;return N(D)}function mE(D,N,Y){(Y?ci(D,N,Y):N===e)?N=1:N=Xt(N);var ie=Gt(D)?U6:s5;return ie(D,N)}function gE(D){var N=Gt(D)?P6:c5;return N(D)}function vE(D){if(D==null)return 0;if(bi(D))return Zf(D)?Js(D):D.length;var N=Zn(D);return N==j||N==ce?D.size:op(D).length}function yE(D,N,Y){var ie=Gt(D)?vc:l5;return Y&&ci(D,N,Y)&&(N=e),ie(D,Rt(N,3))}var bE=Qt(function(D,N){if(D==null)return[];var Y=N.length;return Y>1&&ci(D,N[0],N[1])?N=[]:Y>2&&ci(N[0],N[1],N[2])&&(N=[N[0]]),I2(D,Wn(N,1),[])}),qf=Q4||function(){return vn.Date.now()};function wE(D,N){if(typeof N!="function")throw new Gi(o);return D=Xt(D),function(){if(--D<1)return N.apply(this,arguments)}}function Av(D,N,Y){return N=Y?e:N,N=D&&N==null?D.length:N,oo(D,z,e,e,e,e,N)}function Tv(D,N){var Y;if(typeof N!="function")throw new Gi(o);return D=Xt(D),function(){return--D>0&&(Y=N.apply(this,arguments)),D<=1&&(N=e),Y}}var Ip=Qt(function(D,N,Y){var ie=p;if(Y.length){var he=Uo(Y,ou(Ip));ie|=C}return oo(D,ie,N,Y,he)}),Sv=Qt(function(D,N,Y){var ie=p|y;if(Y.length){var he=Uo(Y,ou(Sv));ie|=C}return oo(N,ie,D,Y,he)});function Dv(D,N,Y){N=Y?e:N;var ie=oo(D,b,e,e,e,e,e,N);return ie.placeholder=Dv.placeholder,ie}function Cv(D,N,Y){N=Y?e:N;var ie=oo(D,A,e,e,e,e,e,N);return ie.placeholder=Cv.placeholder,ie}function Ov(D,N,Y){var ie,he,ge,xe,Te,ke,Xe=0,Ke=!1,Ye=!1,ft=!0;if(typeof D!="function")throw new Gi(o);N=Ji(N)||0,Jr(Y)&&(Ke=!!Y.leading,Ye="maxWait"in Y,ge=Ye?En(Ji(Y.maxWait)||0,N):ge,ft="trailing"in Y?!!Y.trailing:ft);function wt(un){var ga=ie,fo=he;return ie=he=e,Xe=un,xe=D.apply(fo,ga),xe}function Mt(un){return Xe=un,Te=Mc(or,N),Ke?wt(un):xe}function Yt(un){var ga=un-ke,fo=un-Xe,Xv=N-ga;return Ye?Kn(Xv,ge-fo):Xv}function Bt(un){var ga=un-ke,fo=un-Xe;return ke===e||ga>=N||ga<0||Ye&&fo>=ge}function or(){var un=qf();if(Bt(un))return fr(un);Te=Mc(or,Yt(un))}function fr(un){return Te=e,ft&&ie?wt(un):(ie=he=e,xe)}function Pi(){Te!==e&&L2(Te),Xe=0,ie=ke=he=Te=e}function li(){return Te===e?xe:fr(qf())}function Li(){var un=qf(),ga=Bt(un);if(ie=arguments,he=this,ke=un,ga){if(Te===e)return Mt(ke);if(Ye)return L2(Te),Te=Mc(or,N),wt(ke)}return Te===e&&(Te=Mc(or,N)),xe}return Li.cancel=Pi,Li.flush=li,Li}var xE=Qt(function(D,N){return y2(D,1,N)}),_E=Qt(function(D,N,Y){return y2(D,Ji(N)||0,Y)});function EE(D){return oo(D,U)}function Gf(D,N){if(typeof D!="function"||N!=null&&typeof N!="function")throw new Gi(o);var Y=function(){var ie=arguments,he=N?N.apply(this,ie):ie[0],ge=Y.cache;if(ge.has(he))return ge.get(he);var xe=D.apply(this,ie);return Y.cache=ge.set(he,xe)||ge,xe};return Y.cache=new(Gf.Cache||io),Y}Gf.Cache=io;function Xf(D){if(typeof D!="function")throw new Gi(o);return function(){var N=arguments;switch(N.length){case 0:return!D.call(this);case 1:return!D.call(this,N[0]);case 2:return!D.call(this,N[0],N[1]);case 3:return!D.call(this,N[0],N[1],N[2])}return!D.apply(this,N)}}function AE(D){return Tv(2,D)}var TE=f5(function(D,N){N=N.length==1&&Gt(N[0])?Wr(N[0],pe(Rt())):Wr(Wn(N,1),pe(Rt()));var Y=N.length;return Qt(function(ie){for(var he=-1,ge=Kn(ie.length,Y);++he<ge;)ie[he]=N[he].call(this,ie[he]);return Rn(D,this,ie)})}),kp=Qt(function(D,N){var Y=Uo(N,ou(kp));return oo(D,C,e,N,Y)}),Iv=Qt(function(D,N){var Y=Uo(N,ou(Iv));return oo(D,M,e,N,Y)}),SE=so(function(D,N){return oo(D,W,e,e,e,N)});function DE(D,N){if(typeof D!="function")throw new Gi(o);return N=N===e?N:Xt(N),Qt(D,N)}function CE(D,N){if(typeof D!="function")throw new Gi(o);return N=N==null?0:En(Xt(N),0),Qt(function(Y){var ie=Y[N],he=zo(Y,0,N);return ie&&ha(he,ie),Rn(D,this,he)})}function OE(D,N,Y){var ie=!0,he=!0;if(typeof D!="function")throw new Gi(o);return Jr(Y)&&(ie="leading"in Y?!!Y.leading:ie,he="trailing"in Y?!!Y.trailing:he),Ov(D,N,{leading:ie,maxWait:N,trailing:he})}function IE(D){return Av(D,1)}function kE(D,N){return kp(mp(N),D)}function RE(){if(!arguments.length)return[];var D=arguments[0];return Gt(D)?D:[D]}function FE(D){return Ki(D,f)}function NE(D,N){return N=typeof N=="function"?N:e,Ki(D,f,N)}function ME(D){return Ki(D,d|f)}function BE(D,N){return N=typeof N=="function"?N:e,Ki(D,d|f,N)}function UE(D,N){return N==null||v2(D,N,Fn(N))}function ma(D,N){return D===N||D!==D&&N!==N}var PE=jf(np),LE=jf(function(D,N){return D>=N}),Es=E2(function(){return arguments}())?E2:function(D){return rn(D)&&Cr.call(D,"callee")&&!c2.call(D,"callee")},Gt=Pe.isArray,jE=nf?pe(nf):X6;function bi(D){return D!=null&&Kf(D.length)&&!co(D)}function sn(D){return rn(D)&&bi(D)}function WE(D){return D===!0||D===!1||rn(D)&&ui(D)==k}var Ho=t6||zp,zE=af?pe(af):K6;function HE(D){return rn(D)&&D.nodeType===1&&!Bc(D)}function $E(D){if(D==null)return!0;if(bi(D)&&(Gt(D)||typeof D=="string"||typeof D.splice=="function"||Ho(D)||su(D)||Es(D)))return!D.length;var N=Zn(D);if(N==j||N==ce)return!D.size;if(Nc(D))return!op(D).length;for(var Y in D)if(Cr.call(D,Y))return!1;return!0}function VE(D,N){return kc(D,N)}function qE(D,N,Y){Y=typeof Y=="function"?Y:e;var ie=Y?Y(D,N):e;return ie===e?kc(D,N,e,Y):!!ie}function Rp(D){if(!rn(D))return!1;var N=ui(D);return N==J||N==V||typeof D.message=="string"&&typeof D.name=="string"&&!Bc(D)}function GE(D){return typeof D=="number"&&f2(D)}function co(D){if(!Jr(D))return!1;var N=ui(D);return N==re||N==ae||N==q||N==Z}function kv(D){return typeof D=="number"&&D==Xt(D)}function Kf(D){return typeof D=="number"&&D>-1&&D%1==0&&D<=_}function Jr(D){var N=typeof D;return D!=null&&(N=="object"||N=="function")}function rn(D){return D!=null&&typeof D=="object"}var Rv=mc?pe(mc):Y6;function XE(D,N){return D===N||ap(D,N,_p(N))}function KE(D,N,Y){return Y=typeof Y=="function"?Y:e,ap(D,N,_p(N),Y)}function ZE(D){return Fv(D)&&D!=+D}function YE(D){if(N5(D))throw new qt(a);return A2(D)}function JE(D){return D===null}function QE(D){return D==null}function Fv(D){return typeof D=="number"||rn(D)&&ui(D)==ue}function Bc(D){if(!rn(D)||ui(D)!=P)return!1;var N=_f(D);if(N===null)return!0;var Y=Cr.call(N,"constructor")&&N.constructor;return typeof Y=="function"&&Y instanceof Y&&yf.call(Y)==K4}var Fp=gc?pe(gc):J6;function e7(D){return kv(D)&&D>=-_&&D<=_}var Nv=of?pe(of):Q6;function Zf(D){return typeof D=="string"||!Gt(D)&&rn(D)&&ui(D)==ne}function Ui(D){return typeof D=="symbol"||rn(D)&&ui(D)==se}var su=sf?pe(sf):e5;function t7(D){return D===e}function r7(D){return rn(D)&&Zn(D)==de}function n7(D){return rn(D)&&ui(D)==ve}var i7=jf(sp),a7=jf(function(D,N){return D<=N});function Mv(D){if(!D)return[];if(bi(D))return Zf(D)?da(D):yi(D);if(Ec&&D[Ec])return pf(D[Ec]());var N=Zn(D),Y=N==j?Xd:N==ce?mf:uu;return Y(D)}function lo(D){if(!D)return D===0?D:0;if(D=Ji(D),D===w||D===-w){var N=D<0?-1:1;return N*E}return D===D?D:0}function Xt(D){var N=lo(D),Y=N%1;return N===N?Y?N-Y:N:0}function Bv(D){return D?bs(Xt(D),0,F):0}function Ji(D){if(typeof D=="number")return D;if(Ui(D))return R;if(Jr(D)){var N=typeof D.valueOf=="function"?D.valueOf():D;D=Jr(N)?N+"":N}if(typeof D!="string")return D===0?D:+D;D=le(D);var Y=Ht.test(D);return Y||gr.test(D)?No(D.slice(2),Y?2:8):Dt.test(D)?R:+D}function Uv(D){return Ra(D,wi(D))}function o7(D){return D?bs(Xt(D),-_,_):D===0?D:0}function Ar(D){return D==null?"":Bi(D)}var s7=iu(function(D,N){if(Nc(N)||bi(N)){Ra(N,Fn(N),D);return}for(var Y in N)Cr.call(N,Y)&&Cc(D,Y,N[Y])}),Pv=iu(function(D,N){Ra(N,wi(N),D)}),Yf=iu(function(D,N,Y,ie){Ra(N,wi(N),D,ie)}),u7=iu(function(D,N,Y,ie){Ra(N,Fn(N),D,ie)}),c7=so(ep);function l7(D,N){var Y=nu(D);return N==null?Y:g2(Y,N)}var f7=Qt(function(D,N){D=Lr(D);var Y=-1,ie=N.length,he=ie>2?N[2]:e;for(he&&ci(N[0],N[1],he)&&(ie=1);++Y<ie;)for(var ge=N[Y],xe=wi(ge),Te=-1,ke=xe.length;++Te<ke;){var Xe=xe[Te],Ke=D[Xe];(Ke===e||ma(Ke,eu[Xe])&&!Cr.call(D,Xe))&&(D[Xe]=ge[Xe])}return D}),h7=Qt(function(D){return D.push(e,tv),Rn(Lv,e,D)});function d7(D,N){return lf(D,Rt(N,3),ka)}function p7(D,N){return lf(D,Rt(N,3),rp)}function m7(D,N){return D==null?D:tp(D,Rt(N,3),wi)}function g7(D,N){return D==null?D:x2(D,Rt(N,3),wi)}function v7(D,N){return D&&ka(D,Rt(N,3))}function y7(D,N){return D&&rp(D,Rt(N,3))}function b7(D){return D==null?[]:Rf(D,Fn(D))}function w7(D){return D==null?[]:Rf(D,wi(D))}function Np(D,N,Y){var ie=D==null?e:ws(D,N);return ie===e?Y:ie}function x7(D,N){return D!=null&&iv(D,N,$6)}function Mp(D,N){return D!=null&&iv(D,N,V6)}var _7=Z2(function(D,N,Y){N!=null&&typeof N.toString!="function"&&(N=bf.call(N)),D[N]=Y},Up(xi)),E7=Z2(function(D,N,Y){N!=null&&typeof N.toString!="function"&&(N=bf.call(N)),Cr.call(D,N)?D[N].push(Y):D[N]=[Y]},Rt),A7=Qt(Ic);function Fn(D){return bi(D)?p2(D):op(D)}function wi(D){return bi(D)?p2(D,!0):t5(D)}function T7(D,N){var Y={};return N=Rt(N,3),ka(D,function(ie,he,ge){ao(Y,N(ie,he,ge),ie)}),Y}function S7(D,N){var Y={};return N=Rt(N,3),ka(D,function(ie,he,ge){ao(Y,he,N(ie,he,ge))}),Y}var D7=iu(function(D,N,Y){Ff(D,N,Y)}),Lv=iu(function(D,N,Y,ie){Ff(D,N,Y,ie)}),C7=so(function(D,N){var Y={};if(D==null)return Y;var ie=!1;N=Wr(N,function(ge){return ge=Wo(ge,D),ie||(ie=ge.length>1),ge}),Ra(D,wp(D),Y),ie&&(Y=Ki(Y,d|h|f,_5));for(var he=N.length;he--;)hp(Y,N[he]);return Y});function O7(D,N){return jv(D,Xf(Rt(N)))}var I7=so(function(D,N){return D==null?{}:n5(D,N)});function jv(D,N){if(D==null)return{};var Y=Wr(wp(D),function(ie){return[ie]});return N=Rt(N),k2(D,Y,function(ie,he){return N(ie,he[0])})}function k7(D,N,Y){N=Wo(N,D);var ie=-1,he=N.length;for(he||(he=1,D=e);++ie<he;){var ge=D==null?e:D[Fa(N[ie])];ge===e&&(ie=he,ge=Y),D=co(ge)?ge.call(D):ge}return D}function R7(D,N,Y){return D==null?D:Rc(D,N,Y)}function F7(D,N,Y,ie){return ie=typeof ie=="function"?ie:e,D==null?D:Rc(D,N,Y,ie)}var Wv=Q2(Fn),zv=Q2(wi);function N7(D,N,Y){var ie=Gt(D),he=ie||Ho(D)||su(D);if(N=Rt(N,4),Y==null){var ge=D&&D.constructor;he?Y=ie?new ge:[]:Jr(D)?Y=co(ge)?nu(_f(D)):{}:Y={}}return(he?vi:ka)(D,function(xe,Te,ke){return N(Y,xe,Te,ke)}),Y}function M7(D,N){return D==null?!0:hp(D,N)}function B7(D,N,Y){return D==null?D:B2(D,N,mp(Y))}function U7(D,N,Y,ie){return ie=typeof ie=="function"?ie:e,D==null?D:B2(D,N,mp(Y),ie)}function uu(D){return D==null?[]:we(D,Fn(D))}function P7(D){return D==null?[]:we(D,wi(D))}function L7(D,N,Y){return Y===e&&(Y=N,N=e),Y!==e&&(Y=Ji(Y),Y=Y===Y?Y:0),N!==e&&(N=Ji(N),N=N===N?N:0),bs(Ji(D),N,Y)}function j7(D,N,Y){return N=lo(N),Y===e?(Y=N,N=0):Y=lo(Y),D=Ji(D),q6(D,N,Y)}function W7(D,N,Y){if(Y&&typeof Y!="boolean"&&ci(D,N,Y)&&(N=Y=e),Y===e&&(typeof N=="boolean"?(Y=N,N=e):typeof D=="boolean"&&(Y=D,D=e)),D===e&&N===e?(D=0,N=1):(D=lo(D),N===e?(N=D,D=0):N=lo(N)),D>N){var ie=D;D=N,N=ie}if(Y||D%1||N%1){var he=h2();return Kn(D+he*(N-D+ef("1e-"+((he+"").length-1))),N)}return cp(D,N)}var z7=au(function(D,N,Y){return N=N.toLowerCase(),D+(Y?Hv(N):N)});function Hv(D){return Bp(Ar(D).toLowerCase())}function $v(D){return D=Ar(D),D&&D.replace(Gr,ut).replace(Xl,"")}function H7(D,N,Y){D=Ar(D),N=Bi(N);var ie=D.length;Y=Y===e?ie:bs(Xt(Y),0,ie);var he=Y;return Y-=N.length,Y>=0&&D.slice(Y,he)==N}function $7(D){return D=Ar(D),D&&hr.test(D)?D.replace(xt,Vt):D}function V7(D){return D=Ar(D),D&&kt.test(D)?D.replace(ar,"\\$&"):D}var q7=au(function(D,N,Y){return D+(Y?"-":"")+N.toLowerCase()}),G7=au(function(D,N,Y){return D+(Y?" ":"")+N.toLowerCase()}),X7=G2("toLowerCase");function K7(D,N,Y){D=Ar(D),N=Xt(N);var ie=N?Js(D):0;if(!N||ie>=N)return D;var he=(N-ie)/2;return Lf(Sf(he),Y)+D+Lf(Tf(he),Y)}function Z7(D,N,Y){D=Ar(D),N=Xt(N);var ie=N?Js(D):0;return N&&ie<N?D+Lf(N-ie,Y):D}function Y7(D,N,Y){D=Ar(D),N=Xt(N);var ie=N?Js(D):0;return N&&ie<N?Lf(N-ie,Y)+D:D}function J7(D,N,Y){return Y||N==null?N=0:N&&(N=+N),a6(Ar(D).replace(Ae,""),N||0)}function Q7(D,N,Y){return(Y?ci(D,N,Y):N===e)?N=1:N=Xt(N),lp(Ar(D),N)}function eA(){var D=arguments,N=Ar(D[0]);return D.length<3?N:N.replace(D[1],D[2])}var tA=au(function(D,N,Y){return D+(Y?"_":"")+N.toLowerCase()});function rA(D,N,Y){return Y&&typeof Y!="number"&&ci(D,N,Y)&&(N=Y=e),Y=Y===e?F:Y>>>0,Y?(D=Ar(D),D&&(typeof N=="string"||N!=null&&!Fp(N))&&(N=Bi(N),!N&&tn(D))?zo(da(D),0,Y):D.split(N,Y)):[]}var nA=au(function(D,N,Y){return D+(Y?" ":"")+Bp(N)});function iA(D,N,Y){return D=Ar(D),Y=Y==null?0:bs(Xt(Y),0,D.length),N=Bi(N),D.slice(Y,Y+N.length)==N}function aA(D,N,Y){var ie=me.templateSettings;Y&&ci(D,N,Y)&&(N=e),D=Ar(D),N=Yf({},N,ie,ev);var he=Yf({},N.imports,ie.imports,ev),ge=Fn(he),xe=we(he,ge),Te,ke,Xe=0,Ke=N.interpolate||Xr,Ye="__p += '",ft=Kd((N.escape||Xr).source+"|"+Ke.source+"|"+(Ke===Kt?vt:Xr).source+"|"+(N.evaluate||Xr).source+"|$","g"),wt="//# sourceURL="+(Cr.call(N,"sourceURL")?(N.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zd+"]")+`
`;D.replace(ft,function(Bt,or,fr,Pi,li,Li){return fr||(fr=Pi),Ye+=D.slice(Xe,Li).replace(be,jt),or&&(Te=!0,Ye+=`' +
__e(`+or+`) +
'`),li&&(ke=!0,Ye+=`';
`+li+`;
__p += '`),fr&&(Ye+=`' +
((__t = (`+fr+`)) == null ? '' : __t) +
'`),Xe=Li+Bt.length,Bt}),Ye+=`';
`;var Mt=Cr.call(N,"variable")&&N.variable;if(!Mt)Ye=`with (obj) {
`+Ye+`
}
`;else if(Ot.test(Mt))throw new qt(s);Ye=(ke?Ye.replace(Ft,""):Ye).replace(Wt,"$1").replace(dt,"$1;"),Ye="function("+(Mt||"obj")+`) {
`+(Mt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Te?", __e = _.escape":"")+(ke?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Ye+`return __p
}`;var Yt=qv(function(){return br(ge,wt+"return "+Ye).apply(e,xe)});if(Yt.source=Ye,Rp(Yt))throw Yt;return Yt}function oA(D){return Ar(D).toLowerCase()}function sA(D){return Ar(D).toUpperCase()}function uA(D,N,Y){if(D=Ar(D),D&&(Y||N===e))return le(D);if(!D||!(N=Bi(N)))return D;var ie=da(D),he=da(N),ge=Ce(ie,he),xe=De(ie,he)+1;return zo(ie,ge,xe).join("")}function cA(D,N,Y){if(D=Ar(D),D&&(Y||N===e))return D.slice(0,a2(D)+1);if(!D||!(N=Bi(N)))return D;var ie=da(D),he=De(ie,da(N))+1;return zo(ie,0,he).join("")}function lA(D,N,Y){if(D=Ar(D),D&&(Y||N===e))return D.replace(Ae,"");if(!D||!(N=Bi(N)))return D;var ie=da(D),he=Ce(ie,da(N));return zo(ie,he).join("")}function fA(D,N){var Y=G,ie=ee;if(Jr(N)){var he="separator"in N?N.separator:he;Y="length"in N?Xt(N.length):Y,ie="omission"in N?Bi(N.omission):ie}D=Ar(D);var ge=D.length;if(tn(D)){var xe=da(D);ge=xe.length}if(Y>=ge)return D;var Te=Y-Js(ie);if(Te<1)return ie;var ke=xe?zo(xe,0,Te).join(""):D.slice(0,Te);if(he===e)return ke+ie;if(xe&&(Te+=ke.length-Te),Fp(he)){if(D.slice(Te).search(he)){var Xe,Ke=ke;for(he.global||(he=Kd(he.source,Ar(St.exec(he))+"g")),he.lastIndex=0;Xe=he.exec(Ke);)var Ye=Xe.index;ke=ke.slice(0,Ye===e?Te:Ye)}}else if(D.indexOf(Bi(he),Te)!=Te){var ft=ke.lastIndexOf(he);ft>-1&&(ke=ke.slice(0,ft))}return ke+ie}function hA(D){return D=Ar(D),D&&gt.test(D)?D.replace(Pt,W4):D}var dA=au(function(D,N,Y){return D+(Y?" ":"")+N.toUpperCase()}),Bp=G2("toUpperCase");function Vv(D,N,Y){return D=Ar(D),N=Y?e:N,N===e?df(D)?$4(D):cf(D):D.match(N)||[]}var qv=Qt(function(D,N){try{return Rn(D,e,N)}catch(Y){return Rp(Y)?Y:new qt(Y)}}),pA=so(function(D,N){return vi(N,function(Y){Y=Fa(Y),ao(D,Y,Ip(D[Y],D))}),D});function mA(D){var N=D==null?0:D.length,Y=Rt();return D=N?Wr(D,function(ie){if(typeof ie[1]!="function")throw new Gi(o);return[Y(ie[0]),ie[1]]}):[],Qt(function(ie){for(var he=-1;++he<N;){var ge=D[he];if(Rn(ge[0],this,ie))return Rn(ge[1],this,ie)}})}function gA(D){return W6(Ki(D,d))}function Up(D){return function(){return D}}function vA(D,N){return D==null||D!==D?N:D}var yA=K2(),bA=K2(!0);function xi(D){return D}function Pp(D){return T2(typeof D=="function"?D:Ki(D,d))}function wA(D){return D2(Ki(D,d))}function xA(D,N){return C2(D,Ki(N,d))}var _A=Qt(function(D,N){return function(Y){return Ic(Y,D,N)}}),EA=Qt(function(D,N){return function(Y){return Ic(D,Y,N)}});function Lp(D,N,Y){var ie=Fn(N),he=Rf(N,ie);Y==null&&!(Jr(N)&&(he.length||!ie.length))&&(Y=N,N=D,D=this,he=Rf(N,Fn(N)));var ge=!(Jr(Y)&&"chain"in Y)||!!Y.chain,xe=co(D);return vi(he,function(Te){var ke=N[Te];D[Te]=ke,xe&&(D.prototype[Te]=function(){var Xe=this.__chain__;if(ge||Xe){var Ke=D(this.__wrapped__),Ye=Ke.__actions__=yi(this.__actions__);return Ye.push({func:ke,args:arguments,thisArg:D}),Ke.__chain__=Xe,Ke}return ke.apply(D,ha([this.value()],arguments))})}),D}function AA(){return vn._===this&&(vn._=Z4),this}function jp(){}function TA(D){return D=Xt(D),Qt(function(N){return O2(N,D)})}var SA=vp(Wr),DA=vp(uf),CA=vp(vc);function Gv(D){return Ap(D)?yc(Fa(D)):i5(D)}function OA(D){return function(N){return D==null?e:ws(D,N)}}var IA=Y2(),kA=Y2(!0);function Wp(){return[]}function zp(){return!1}function RA(){return{}}function FA(){return""}function NA(){return!0}function MA(D,N){if(D=Xt(D),D<1||D>_)return[];var Y=F,ie=Kn(D,F);N=Rt(N),D-=F;for(var he=xc(ie,N);++Y<D;)N(Y);return he}function BA(D){return Gt(D)?Wr(D,Fa):Ui(D)?[D]:yi(dv(Ar(D)))}function UA(D){var N=++X4;return Ar(D)+N}var PA=Pf(function(D,N){return D+N},0),LA=yp("ceil"),jA=Pf(function(D,N){return D/N},1),WA=yp("floor");function zA(D){return D&&D.length?kf(D,xi,np):e}function HA(D,N){return D&&D.length?kf(D,Rt(N,2),np):e}function $A(D){return ff(D,xi)}function VA(D,N){return ff(D,Rt(N,2))}function qA(D){return D&&D.length?kf(D,xi,sp):e}function GA(D,N){return D&&D.length?kf(D,Rt(N,2),sp):e}var XA=Pf(function(D,N){return D*N},1),KA=yp("round"),ZA=Pf(function(D,N){return D-N},0);function YA(D){return D&&D.length?Ys(D,xi):0}function JA(D,N){return D&&D.length?Ys(D,Rt(N,2)):0}return me.after=wE,me.ary=Av,me.assign=s7,me.assignIn=Pv,me.assignInWith=Yf,me.assignWith=u7,me.at=c7,me.before=Tv,me.bind=Ip,me.bindAll=pA,me.bindKey=Sv,me.castArray=RE,me.chain=xv,me.chunk=W5,me.compact=z5,me.concat=H5,me.cond=mA,me.conforms=gA,me.constant=Up,me.countBy=Y9,me.create=l7,me.curry=Dv,me.curryRight=Cv,me.debounce=Ov,me.defaults=f7,me.defaultsDeep=h7,me.defer=xE,me.delay=_E,me.difference=$5,me.differenceBy=V5,me.differenceWith=q5,me.drop=G5,me.dropRight=X5,me.dropRightWhile=K5,me.dropWhile=Z5,me.fill=Y5,me.filter=Q9,me.flatMap=rE,me.flatMapDeep=nE,me.flatMapDepth=iE,me.flatten=vv,me.flattenDeep=J5,me.flattenDepth=Q5,me.flip=EE,me.flow=yA,me.flowRight=bA,me.fromPairs=e9,me.functions=b7,me.functionsIn=w7,me.groupBy=aE,me.initial=r9,me.intersection=n9,me.intersectionBy=i9,me.intersectionWith=a9,me.invert=_7,me.invertBy=E7,me.invokeMap=sE,me.iteratee=Pp,me.keyBy=uE,me.keys=Fn,me.keysIn=wi,me.map=Vf,me.mapKeys=T7,me.mapValues=S7,me.matches=wA,me.matchesProperty=xA,me.memoize=Gf,me.merge=D7,me.mergeWith=Lv,me.method=_A,me.methodOf=EA,me.mixin=Lp,me.negate=Xf,me.nthArg=TA,me.omit=C7,me.omitBy=O7,me.once=AE,me.orderBy=cE,me.over=SA,me.overArgs=TE,me.overEvery=DA,me.overSome=CA,me.partial=kp,me.partialRight=Iv,me.partition=lE,me.pick=I7,me.pickBy=jv,me.property=Gv,me.propertyOf=OA,me.pull=c9,me.pullAll=bv,me.pullAllBy=l9,me.pullAllWith=f9,me.pullAt=h9,me.range=IA,me.rangeRight=kA,me.rearg=SE,me.reject=dE,me.remove=d9,me.rest=DE,me.reverse=Cp,me.sampleSize=mE,me.set=R7,me.setWith=F7,me.shuffle=gE,me.slice=p9,me.sortBy=bE,me.sortedUniq=x9,me.sortedUniqBy=_9,me.split=rA,me.spread=CE,me.tail=E9,me.take=A9,me.takeRight=T9,me.takeRightWhile=S9,me.takeWhile=D9,me.tap=z9,me.throttle=OE,me.thru=$f,me.toArray=Mv,me.toPairs=Wv,me.toPairsIn=zv,me.toPath=BA,me.toPlainObject=Uv,me.transform=N7,me.unary=IE,me.union=C9,me.unionBy=O9,me.unionWith=I9,me.uniq=k9,me.uniqBy=R9,me.uniqWith=F9,me.unset=M7,me.unzip=Op,me.unzipWith=wv,me.update=B7,me.updateWith=U7,me.values=uu,me.valuesIn=P7,me.without=N9,me.words=Vv,me.wrap=kE,me.xor=M9,me.xorBy=B9,me.xorWith=U9,me.zip=P9,me.zipObject=L9,me.zipObjectDeep=j9,me.zipWith=W9,me.entries=Wv,me.entriesIn=zv,me.extend=Pv,me.extendWith=Yf,Lp(me,me),me.add=PA,me.attempt=qv,me.camelCase=z7,me.capitalize=Hv,me.ceil=LA,me.clamp=L7,me.clone=FE,me.cloneDeep=ME,me.cloneDeepWith=BE,me.cloneWith=NE,me.conformsTo=UE,me.deburr=$v,me.defaultTo=vA,me.divide=jA,me.endsWith=H7,me.eq=ma,me.escape=$7,me.escapeRegExp=V7,me.every=J9,me.find=eE,me.findIndex=mv,me.findKey=d7,me.findLast=tE,me.findLastIndex=gv,me.findLastKey=p7,me.floor=WA,me.forEach=_v,me.forEachRight=Ev,me.forIn=m7,me.forInRight=g7,me.forOwn=v7,me.forOwnRight=y7,me.get=Np,me.gt=PE,me.gte=LE,me.has=x7,me.hasIn=Mp,me.head=yv,me.identity=xi,me.includes=oE,me.indexOf=t9,me.inRange=j7,me.invoke=A7,me.isArguments=Es,me.isArray=Gt,me.isArrayBuffer=jE,me.isArrayLike=bi,me.isArrayLikeObject=sn,me.isBoolean=WE,me.isBuffer=Ho,me.isDate=zE,me.isElement=HE,me.isEmpty=$E,me.isEqual=VE,me.isEqualWith=qE,me.isError=Rp,me.isFinite=GE,me.isFunction=co,me.isInteger=kv,me.isLength=Kf,me.isMap=Rv,me.isMatch=XE,me.isMatchWith=KE,me.isNaN=ZE,me.isNative=YE,me.isNil=QE,me.isNull=JE,me.isNumber=Fv,me.isObject=Jr,me.isObjectLike=rn,me.isPlainObject=Bc,me.isRegExp=Fp,me.isSafeInteger=e7,me.isSet=Nv,me.isString=Zf,me.isSymbol=Ui,me.isTypedArray=su,me.isUndefined=t7,me.isWeakMap=r7,me.isWeakSet=n7,me.join=o9,me.kebabCase=q7,me.last=Yi,me.lastIndexOf=s9,me.lowerCase=G7,me.lowerFirst=X7,me.lt=i7,me.lte=a7,me.max=zA,me.maxBy=HA,me.mean=$A,me.meanBy=VA,me.min=qA,me.minBy=GA,me.stubArray=Wp,me.stubFalse=zp,me.stubObject=RA,me.stubString=FA,me.stubTrue=NA,me.multiply=XA,me.nth=u9,me.noConflict=AA,me.noop=jp,me.now=qf,me.pad=K7,me.padEnd=Z7,me.padStart=Y7,me.parseInt=J7,me.random=W7,me.reduce=fE,me.reduceRight=hE,me.repeat=Q7,me.replace=eA,me.result=k7,me.round=KA,me.runInContext=Oe,me.sample=pE,me.size=vE,me.snakeCase=tA,me.some=yE,me.sortedIndex=m9,me.sortedIndexBy=g9,me.sortedIndexOf=v9,me.sortedLastIndex=y9,me.sortedLastIndexBy=b9,me.sortedLastIndexOf=w9,me.startCase=nA,me.startsWith=iA,me.subtract=ZA,me.sum=YA,me.sumBy=JA,me.template=aA,me.times=MA,me.toFinite=lo,me.toInteger=Xt,me.toLength=Bv,me.toLower=oA,me.toNumber=Ji,me.toSafeInteger=o7,me.toString=Ar,me.toUpper=sA,me.trim=uA,me.trimEnd=cA,me.trimStart=lA,me.truncate=fA,me.unescape=hA,me.uniqueId=UA,me.upperCase=dA,me.upperFirst=Bp,me.each=_v,me.eachRight=Ev,me.first=yv,Lp(me,function(){var D={};return ka(me,function(N,Y){Cr.call(me.prototype,Y)||(D[Y]=N)}),D}(),{chain:!1}),me.VERSION=n,vi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(D){me[D].placeholder=me}),vi(["drop","take"],function(D,N){ur.prototype[D]=function(Y){Y=Y===e?1:En(Xt(Y),0);var ie=this.__filtered__&&!N?new ur(this):this.clone();return ie.__filtered__?ie.__takeCount__=Kn(Y,ie.__takeCount__):ie.__views__.push({size:Kn(Y,F),type:D+(ie.__dir__<0?"Right":"")}),ie},ur.prototype[D+"Right"]=function(Y){return this.reverse()[D](Y).reverse()}}),vi(["filter","map","takeWhile"],function(D,N){var Y=N+1,ie=Y==T||Y==x;ur.prototype[D]=function(he){var ge=this.clone();return ge.__iteratees__.push({iteratee:Rt(he,3),type:Y}),ge.__filtered__=ge.__filtered__||ie,ge}}),vi(["head","last"],function(D,N){var Y="take"+(N?"Right":"");ur.prototype[D]=function(){return this[Y](1).value()[0]}}),vi(["initial","tail"],function(D,N){var Y="drop"+(N?"":"Right");ur.prototype[D]=function(){return this.__filtered__?new ur(this):this[Y](1)}}),ur.prototype.compact=function(){return this.filter(xi)},ur.prototype.find=function(D){return this.filter(D).head()},ur.prototype.findLast=function(D){return this.reverse().find(D)},ur.prototype.invokeMap=Qt(function(D,N){return typeof D=="function"?new ur(this):this.map(function(Y){return Ic(Y,D,N)})}),ur.prototype.reject=function(D){return this.filter(Xf(Rt(D)))},ur.prototype.slice=function(D,N){D=Xt(D);var Y=this;return Y.__filtered__&&(D>0||N<0)?new ur(Y):(D<0?Y=Y.takeRight(-D):D&&(Y=Y.drop(D)),N!==e&&(N=Xt(N),Y=N<0?Y.dropRight(-N):Y.take(N-D)),Y)},ur.prototype.takeRightWhile=function(D){return this.reverse().takeWhile(D).reverse()},ur.prototype.toArray=function(){return this.take(F)},ka(ur.prototype,function(D,N){var Y=/^(?:filter|find|map|reject)|While$/.test(N),ie=/^(?:head|last)$/.test(N),he=me[ie?"take"+(N=="last"?"Right":""):N],ge=ie||/^find/.test(N);!he||(me.prototype[N]=function(){var xe=this.__wrapped__,Te=ie?[1]:arguments,ke=xe instanceof ur,Xe=Te[0],Ke=ke||Gt(xe),Ye=function(or){var fr=he.apply(me,ha([or],Te));return ie&&ft?fr[0]:fr};Ke&&Y&&typeof Xe=="function"&&Xe.length!=1&&(ke=Ke=!1);var ft=this.__chain__,wt=!!this.__actions__.length,Mt=ge&&!ft,Yt=ke&&!wt;if(!ge&&Ke){xe=Yt?xe:new ur(this);var Bt=D.apply(xe,Te);return Bt.__actions__.push({func:$f,args:[Ye],thisArg:e}),new Xi(Bt,ft)}return Mt&&Yt?D.apply(this,Te):(Bt=this.thru(Ye),Mt?ie?Bt.value()[0]:Bt.value():Bt)})}),vi(["pop","push","shift","sort","splice","unshift"],function(D){var N=gf[D],Y=/^(?:push|sort|unshift)$/.test(D)?"tap":"thru",ie=/^(?:pop|shift)$/.test(D);me.prototype[D]=function(){var he=arguments;if(ie&&!this.__chain__){var ge=this.value();return N.apply(Gt(ge)?ge:[],he)}return this[Y](function(xe){return N.apply(Gt(xe)?xe:[],he)})}}),ka(ur.prototype,function(D,N){var Y=me[N];if(Y){var ie=Y.name+"";Cr.call(ru,ie)||(ru[ie]=[]),ru[ie].push({name:N,func:Y})}}),ru[Uf(e,y).name]=[{name:"wrapper",func:e}],ur.prototype.clone=h6,ur.prototype.reverse=d6,ur.prototype.value=p6,me.prototype.at=H9,me.prototype.chain=$9,me.prototype.commit=V9,me.prototype.next=q9,me.prototype.plant=X9,me.prototype.reverse=K9,me.prototype.toJSON=me.prototype.valueOf=me.prototype.value=Z9,me.prototype.first=me.prototype.head,Ec&&(me.prototype[Ec]=G9),me},Qs=V4();ro?((ro.exports=Qs)._=Qs,Mi._=Qs):vn._=Qs}).call(ot)})(n2,n2.exports);var RX=n2.exports;export{dX as B,vX as C,Jo as E,OX as F,_X as H,wX as I,hX as J,AX as M,mX as P,Wx as T,Lm as W,RX as _,pX as a,gX as b,IX as c,kX as d,_z as e,hl as f,N_ as g,SX as h,TX as i,HL as j,xX as k,Ga as l,Ez as m,fX as p};