mirror of https://gitee.com/godoos/godoos.git
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.
415 lines
2.3 MiB
415 lines
2.3 MiB
var JA=Object.defineProperty,QA=Object.defineProperties;var eT=Object.getOwnPropertyDescriptors;var Kv=Object.getOwnPropertySymbols;var tT=Object.prototype.hasOwnProperty,rT=Object.prototype.propertyIsEnumerable;var Hp=(r,t,e)=>t in r?JA(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,An=(r,t)=>{for(var e in t||(t={}))tT.call(t,e)&&Hp(r,e,t[e]);if(Kv)for(var e of Kv(t))rT.call(t,e)&&Hp(r,e,t[e]);return r},$o=(r,t)=>QA(r,eT(t));var fi=(r,t,e)=>(Hp(r,typeof t!="symbol"?t+"":t,e),e);var st=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 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,"&").replace(/</g,"<").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,E){E=E||{};var D,F;switch(s.util.type(b)){case"Object":if(F=s.util.objId(b),E[F])return E[F];D={},E[F]=D;for(var z in b)b.hasOwnProperty(z)&&(D[z]=v(b[z],E));return D;case"Array":return F=s.util.objId(b),E[F]?E[F]:(D=[],E[F]=D,b.forEach(function(W,U){D[U]=v(W,E)}),D);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(D){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(D.stack)||[])[1];if(v){var b=document.getElementsByTagName("script");for(var E in b)if(b[E].src==v)return b[E]}return null}},isActive:function(v,b,E){for(var D="no-"+b;v;){var F=v.classList;if(F.contains(b))return!0;if(F.contains(D))return!1;v=v.parentElement}return!!E}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(v,b){var E=s.util.clone(s.languages[v]);for(var D in b)E[D]=b[D];return E},insertBefore:function(v,b,E,D){D=D||s.languages;var F=D[v],z={};for(var W in F)if(F.hasOwnProperty(W)){if(W==b)for(var U in E)E.hasOwnProperty(U)&&(z[U]=E[U]);E.hasOwnProperty(W)||(z[W]=F[W])}var G=D[v];return D[v]=z,s.languages.DFS(s.languages,function(ee,P){P===G&&ee!=v&&(this[ee]=z)}),z},DFS:function v(b,E,D,F){F=F||{};var z=s.util.objId;for(var W in b)if(b.hasOwnProperty(W)){E.call(b,W,b[W],D||W);var U=b[W],G=s.util.type(U);G==="Object"&&!F[z(U)]?(F[z(U)]=!0,v(U,E,null,F)):G==="Array"&&!F[z(U)]&&(F[z(U)]=!0,v(U,E,W,F))}}},plugins:{},highlightAll:function(v,b){s.highlightAllUnder(document,v,b)},highlightAllUnder:function(v,b,E){var D={callback:E,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",D),D.elements=Array.prototype.slice.apply(D.container.querySelectorAll(D.selector)),s.hooks.run("before-all-elements-highlight",D);for(var F=0,z;z=D.elements[F++];)s.highlightElement(z,b===!0,D.callback)},highlightElement:function(v,b,E){var D=s.util.getLanguage(v),F=s.languages[D];s.util.setLanguage(v,D);var z=v.parentElement;z&&z.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(z,D);var W=v.textContent,U={element:v,language:D,grammar:F,code:W};function G(P){U.highlightedCode=P,s.hooks.run("before-insert",U),U.element.innerHTML=U.highlightedCode,s.hooks.run("after-highlight",U),s.hooks.run("complete",U),E&&E.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),E&&E.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(P){G(P.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,E){var D={code:v,grammar:b,language:E};if(s.hooks.run("before-tokenize",D),!D.grammar)throw new Error('The language "'+D.language+'" has no grammar.');return D.tokens=s.tokenize(D.code,D.grammar),s.hooks.run("after-tokenize",D),u.stringify(s.util.encode(D.tokens),D.language)},tokenize:function(v,b){var E=b.rest;if(E){for(var D in E)b[D]=E[D];delete b.rest}var F=new d;return h(F,F.head,v),l(v,F,b,F.head,0),g(F)},hooks:{all:{},add:function(v,b){var E=s.hooks.all;E[v]=E[v]||[],E[v].push(b)},run:function(v,b){var E=s.hooks.all[v];if(!(!E||!E.length))for(var D=0,F;F=E[D++];)F(b)}},Token:u};n.Prism=s;function u(v,b,E,D){this.type=v,this.content=b,this.alias=E,this.length=(D||"").length|0}u.stringify=function v(b,E){if(typeof b=="string")return b;if(Array.isArray(b)){var D="";return b.forEach(function(G){D+=v(G,E)}),D}var F={type:b.type,content:v(b.content,E),tag:"span",classes:["token",b.type],attributes:{},language:E},z=b.alias;z&&(Array.isArray(z)?Array.prototype.push.apply(F.classes,z):F.classes.push(z)),s.hooks.run("wrap",F);var W="";for(var U in F.attributes)W+=" "+U+'="'+(F.attributes[U]||"").replace(/"/g,""")+'"';return"<"+F.tag+' class="'+F.classes.join(" ")+'"'+W+">"+F.content+"</"+F.tag+">"};function c(v,b,E,D){v.lastIndex=b;var F=v.exec(E);if(F&&D&&F[1]){var z=F[1].length;F.index+=z,F[0]=F[0].slice(z)}return F}function l(v,b,E,D,F,z){for(var W in E)if(!(!E.hasOwnProperty(W)||!E[W])){var U=E[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],P=ee.inside,I=!!ee.lookbehind,S=!!ee.greedy,C=ee.alias;if(S&&!ee.pattern.global){var _=ee.pattern.toString().match(/[imsuy]*$/)[0];ee.pattern=RegExp(ee.pattern.source,_+"g")}for(var w=ee.pattern||ee,x=D.next,A=F;x!==b.tail&&!(z&&A>=z.reach);A+=x.value.length,x=x.next){var k=x.value;if(b.length>v.length)return;if(!(k instanceof u)){var R=1,M;if(S){if(M=c(w,A,v,I),!M||M.index>=v.length)break;var $=M.index,X=M.index+M[0].length,K=A;for(K+=x.value.length;$>=K;)x=x.next,K+=x.value.length;if(K-=x.value.length,A=K,x.value instanceof u)continue;for(var te=x;te!==b.tail&&(K<X||typeof te.value=="string");te=te.next)R++,K+=te.value.length;R--,k=v.slice(A,K),M.index-=A}else if(M=c(w,0,k,I),!M)continue;var $=M.index,q=M[0],O=k.slice(0,$),L=k.slice($+q.length),V=A+k.length;z&&V>z.reach&&(z.reach=V);var J=x.prev;O&&(J=h(b,J,O),A+=O.length),f(b,J,R);var re=new u(W,P?s.tokenize(q,P):q,C,q);if(x=h(b,J,re),L&&h(b,x,L),R>1){var ae={cause:W+","+G,reach:V};l(v,b,E,x.prev,A,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,E){var D=b.next,F={value:E,prev:b,next:D};return b.next=F,D.prev=F,v.length++,F}function f(v,b,E){for(var D=b.next,F=0;F<E&&D!==v.tail;F++)D=D.next;b.next=D,D.prev=b,v.length-=F}function g(v){for(var b=[],E=v.head.next;E!==v.tail;)b.push(E.value),E=E.next;return b}if(!n.document)return n.addEventListener&&(s.disableWorkerMessageHandler||n.addEventListener("message",function(v){var b=JSON.parse(v.data),E=b.language,D=b.code,F=b.immediateClose;n.postMessage(s.highlight(D,s.languages[E],E)),F&&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 st!="undefined"&&(st.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(/&/,"&"))}),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 E=(/\.(\w+)$/.exec(v)||[,"none"])[1];b=o[E]||E}e.util.setLanguage(y,b),e.util.setLanguage(p,b);var D=e.plugins.autoloader;D&&D.loadLanguages(b),h(v,function(F){p.setAttribute(s,c);var z=f(p.getAttribute("data-range"));if(z){var W=F.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)),F=W.slice(U,G).join(`
|
|
`),p.hasAttribute("data-start")||p.setAttribute("data-start",String(U+1))}y.textContent=F,e.highlightElement(y)},function(F){p.setAttribute(s,l),y.textContent=F})}}),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 oX=Yv.exports,$p={},Jf={},xi={};Object.defineProperty(xi,"__esModule",{value:!0});function nT(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}var iT=function r(t,e){nT(this,r),this.data=t,this.text=e.text||t,this.options=e};xi.default=iT;Object.defineProperty(Jf,"__esModule",{value:!0});Jf.CODE39=void 0;var aT=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}}(),oT=xi,sT=uT(oT);function uT(r){return r&&r.__esModule?r:{default:r}}function cT(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function lT(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 fT(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 hT=function(r){fT(t,r);function t(e,n){return cT(this,t),e=e.toUpperCase(),n.mod43&&(e+=mT(gT(e))),lT(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return aT(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}(sT.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","-","."," ","$","/","+","%","*"],dT=[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 pT(Qv(r))}function pT(r){return dT[r].toString(2)}function mT(r){return Jv[r]}function Qv(r){return Jv.indexOf(r)}function gT(r){for(var t=0,e=0;e<r.length;e++)t+=Qv(r[e]);return t=t%43,t}Jf.CODE39=hT;var Fa={},qp={},cu={},Kr={};Object.defineProperty(Kr,"__esModule",{value:!0});var Bc;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 vT=Kr.START_A=103,yT=Kr.START_B=104,bT=Kr.START_C=105;Kr.MODULO=103;Kr.STOP=106;Kr.FNC1=207;Kr.SET_BY_CODE=(Bc={},Gp(Bc,vT,ey),Gp(Bc,yT,ty),Gp(Bc,bT,ry),Bc);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 wT=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}}(),_T=xi,xT=ET(_T),ji=Kr;function ET(r){return r&&r.__esModule?r:{default:r}}function AT(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function TT(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 ST(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 DT=function(r){ST(t,r);function t(e,n){AT(this,t);var i=TT(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 wT(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}(xT.default);cu.default=DT;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 CT=cu,OT=sy(CT),IT=Xp,kT=sy(IT);function sy(r){return r&&r.__esModule?r:{default:r}}function RT(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 NT(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 FT=function(r){NT(t,r);function t(e,n){if(RT(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(e))var i=Zp(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,kT.default)(e),n));else var i=Zp(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return Zp(i)}return t}(OT.default);qp.default=FT;var Yp={};Object.defineProperty(Yp,"__esModule",{value:!0});var MT=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=cu,BT=PT(UT),uy=Kr;function PT(r){return r&&r.__esModule?r:{default:r}}function LT(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function jT(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 WT(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 zT=function(r){WT(t,r);function t(e,n){return LT(this,t),jT(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,uy.A_START_CHAR+e,n))}return MT(t,[{key:"valid",value:function(){return new RegExp("^"+uy.A_CHARS+"+$").test(this.data)}}]),t}(BT.default);Yp.default=zT;var Jp={};Object.defineProperty(Jp,"__esModule",{value:!0});var HT=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}}(),$T=cu,VT=qT($T),cy=Kr;function qT(r){return r&&r.__esModule?r:{default:r}}function GT(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function XT(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 KT(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 ZT=function(r){KT(t,r);function t(e,n){return GT(this,t),XT(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,cy.B_START_CHAR+e,n))}return HT(t,[{key:"valid",value:function(){return new RegExp("^"+cy.B_CHARS+"+$").test(this.data)}}]),t}(VT.default);Jp.default=ZT;var Qp={};Object.defineProperty(Qp,"__esModule",{value:!0});var YT=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}}(),JT=cu,QT=eS(JT),ly=Kr;function eS(r){return r&&r.__esModule?r:{default:r}}function tS(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function rS(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 nS(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 iS=function(r){nS(t,r);function t(e,n){return tS(this,t),rS(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,ly.C_START_CHAR+e,n))}return YT(t,[{key:"valid",value:function(){return new RegExp("^"+ly.C_CHARS+"+$").test(this.data)}}]),t}(QT.default);Qp.default=iS;Object.defineProperty(Fa,"__esModule",{value:!0});Fa.CODE128C=Fa.CODE128B=Fa.CODE128A=Fa.CODE128=void 0;var aS=qp,oS=Qf(aS),sS=Yp,uS=Qf(sS),cS=Jp,lS=Qf(cS),fS=Qp,hS=Qf(fS);function Qf(r){return r&&r.__esModule?r:{default:r}}Fa.CODE128=oS.default;Fa.CODE128A=uS.default;Fa.CODE128B=lS.default;Fa.CODE128C=hS.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 dS=Qi,pS=function(t,e,n){var i=t.split("").map(function(o,s){return dS.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=pS;Object.defineProperty(eh,"__esModule",{value:!0});var mS=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,gS=As,fy=hy(gS),vS=xi,yS=hy(vS);function hy(r){return r&&r.__esModule?r:{default:r}}function bS(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function wS(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 _S(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 xS=function(r){_S(t,r);function t(e,n){bS(this,t);var i=wS(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 mS(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}(yS.default);eh.default=xS;Object.defineProperty(e0,"__esModule",{value:!0});var ES=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)}},AS=Qi,TS=eh,SS=DS(TS);function DS(r){return r&&r.__esModule?r:{default:r}}function CS(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function OS(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 IS(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},kS=function(r){IS(t,r);function t(e,n){CS(this,t),e.search(/^[0-9]{12}$/)!==-1&&(e+=dy(e));var i=OS(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.lastChar=n.lastChar,i}return ES(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=AS.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}(SS.default);e0.default=kS;var t0={};Object.defineProperty(t0,"__esModule",{value:!0});var RS=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)}},NS=eh,FS=MS(NS);function MS(r){return r&&r.__esModule?r:{default:r}}function US(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function BS(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 PS(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},LS=function(r){PS(t,r);function t(e,n){return US(this,t),e.search(/^[0-9]{7}$/)!==-1&&(e+=py(e)),BS(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return RS(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}(FS.default);t0.default=LS;var r0={};Object.defineProperty(r0,"__esModule",{value:!0});var jS=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}}(),WS=Qi,zS=As,HS=my(zS),$S=xi,VS=my($S);function my(r){return r&&r.__esModule?r:{default:r}}function qS(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function GS(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 XS(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 KS=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},ZS=function(r){XS(t,r);function t(e,n){return qS(this,t),GS(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return jS(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var n=WS.EAN5_STRUCTURE[KS(this.data)];return{data:"1011"+(0,HS.default)(this.data,n,"01"),text:this.text}}}]),t}(VS.default);r0.default=ZS;var n0={};Object.defineProperty(n0,"__esModule",{value:!0});var YS=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}}(),JS=Qi,QS=As,eD=gy(QS),tD=xi,rD=gy(tD);function gy(r){return r&&r.__esModule?r:{default:r}}function nD(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function iD(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 oD=function(r){aD(t,r);function t(e,n){return nD(this,t),iD(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return YS(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var n=JS.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,eD.default)(this.data,n,"01"),text:this.text}}}]),t}(rD.default);n0.default=oD;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});var sD=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 uD=As,fu=vy(uD),cD=xi,lD=vy(cD);function vy(r){return r&&r.__esModule?r:{default:r}}function fD(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function hD(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 dD(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 pD=function(r){dD(t,r);function t(e,n){fD(this,t),e.search(/^[0-9]{11}$/)!==-1&&(e+=i0(e));var i=hD(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 sD(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}(lD.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=pD;var a0={};Object.defineProperty(a0,"__esModule",{value:!0});var mD=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}}(),gD=As,vD=yy(gD),yD=xi,bD=yy(yD),wD=Lc;function yy(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 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 xD(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 ED=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],AD=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],TD=function(r){xD(t,r);function t(e,n){_D(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 mD(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=AD[parseInt(i)][parseInt(n)];return(0,vD.default)(this.middleDigits,a)}}]),t}(bD.default);function by(r,t){for(var e=parseInt(r[r.length-1]),n=ED[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,wD.checksum)(i)}a0.default=TD;Object.defineProperty(Ei,"__esModule",{value:!0});Ei.UPCE=Ei.UPC=Ei.EAN2=Ei.EAN5=Ei.EAN8=Ei.EAN13=void 0;var SD=e0,DD=hu(SD),CD=t0,OD=hu(CD),ID=r0,kD=hu(ID),RD=n0,ND=hu(RD),FD=Lc,MD=hu(FD),UD=a0,BD=hu(UD);function hu(r){return r&&r.__esModule?r:{default:r}}Ei.EAN13=DD.default;Ei.EAN8=OD.default;Ei.EAN5=kD.default;Ei.EAN2=ND.default;Ei.UPC=MD.default;Ei.UPCE=BD.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 PD=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,LD=xi,jD=WD(LD);function WD(r){return r&&r.__esModule?r:{default:r}}function zD(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function HD(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 $D(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 VD=function(r){$D(t,r);function t(){return zD(this,t),HD(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return PD(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}(jD.default);rh.default=VD;var s0={};Object.defineProperty(s0,"__esModule",{value:!0});var qD=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}}(),GD=rh,XD=KD(GD);function KD(r){return r&&r.__esModule?r:{default:r}}function ZD(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function YD(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 JD(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},QD=function(r){JD(t,r);function t(e,n){return ZD(this,t),e.search(/^[0-9]{13}$/)!==-1&&(e+=wy(e)),YD(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return qD(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===wy(this.data)}}]),t}(XD.default);s0.default=QD;Object.defineProperty(du,"__esModule",{value:!0});du.ITF14=du.ITF=void 0;var eC=rh,tC=_y(eC),rC=s0,nC=_y(rC);function _y(r){return r&&r.__esModule?r:{default:r}}du.ITF=tC.default;du.ITF14=nC.default;var ea={},Ts={};Object.defineProperty(Ts,"__esModule",{value:!0});var iC=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}}(),aC=xi,oC=sC(aC);function sC(r){return r&&r.__esModule?r:{default:r}}function uC(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function cC(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 lC(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 fC=function(r){lC(t,r);function t(e,n){return uC(this,t),cC(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return iC(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=hC(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}(oC.default);function hC(r,t){for(var e=0;e<t;e++)r="0"+r;return r}Ts.default=fC;var u0={},Ss={};Object.defineProperty(Ss,"__esModule",{value:!0});Ss.mod10=dC;Ss.mod11=pC;function dC(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 pC(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 mC=Ts,gC=yC(mC),vC=Ss;function yC(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 wC(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 _C(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 xC=function(r){_C(t,r);function t(e,n){return bC(this,t),wC(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,vC.mod10)(e),n))}return t}(gC.default);u0.default=xC;var c0={};Object.defineProperty(c0,"__esModule",{value:!0});var EC=Ts,AC=SC(EC),TC=Ss;function SC(r){return r&&r.__esModule?r:{default:r}}function DC(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function CC(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 OC(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 IC=function(r){OC(t,r);function t(e,n){return DC(this,t),CC(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,TC.mod11)(e),n))}return t}(AC.default);c0.default=IC;var l0={};Object.defineProperty(l0,"__esModule",{value:!0});var kC=Ts,RC=NC(kC),xy=Ss;function NC(r){return r&&r.__esModule?r:{default:r}}function FC(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function MC(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 UC(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 BC=function(r){UC(t,r);function t(e,n){return FC(this,t),e+=(0,xy.mod10)(e),e+=(0,xy.mod10)(e),MC(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return t}(RC.default);l0.default=BC;var f0={};Object.defineProperty(f0,"__esModule",{value:!0});var PC=Ts,LC=jC(PC),Ey=Ss;function jC(r){return r&&r.__esModule?r:{default:r}}function WC(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function zC(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 $C=function(r){HC(t,r);function t(e,n){return WC(this,t),e+=(0,Ey.mod11)(e),e+=(0,Ey.mod10)(e),zC(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return t}(LC.default);f0.default=$C;Object.defineProperty(ea,"__esModule",{value:!0});ea.MSI1110=ea.MSI1010=ea.MSI11=ea.MSI10=ea.MSI=void 0;var VC=Ts,qC=Wc(VC),GC=u0,XC=Wc(GC),KC=c0,ZC=Wc(KC),YC=l0,JC=Wc(YC),QC=f0,eO=Wc(QC);function Wc(r){return r&&r.__esModule?r:{default:r}}ea.MSI=qC.default;ea.MSI10=XC.default;ea.MSI11=ZC.default;ea.MSI1010=JC.default;ea.MSI1110=eO.default;var ih={};Object.defineProperty(ih,"__esModule",{value:!0});ih.pharmacode=void 0;var tO=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}}(),rO=xi,nO=iO(rO);function iO(r){return r&&r.__esModule?r:{default:r}}function aO(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function oO(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 sO(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 uO=function(r){sO(t,r);function t(e,n){aO(this,t);var i=oO(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.number=parseInt(e,10),i}return tO(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}(nO.default);ih.pharmacode=uO;var ah={};Object.defineProperty(ah,"__esModule",{value:!0});ah.codabar=void 0;var cO=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}}(),lO=xi,fO=hO(lO);function hO(r){return r&&r.__esModule?r:{default:r}}function dO(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function pO(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 mO(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 gO=function(r){mO(t,r);function t(e,n){dO(this,t),e.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(e="A"+e+"A");var i=pO(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 cO(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}(fO.default);ah.codabar=gO;var oh={};Object.defineProperty(oh,"__esModule",{value:!0});oh.GenericBarcode=void 0;var vO=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}}(),yO=xi,bO=wO(yO);function wO(r){return r&&r.__esModule?r:{default:r}}function _O(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function xO(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 EO(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 AO=function(r){EO(t,r);function t(e,n){return _O(this,t),xO(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return vO(t,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),t}(bO.default);oh.GenericBarcode=AO;Object.defineProperty($p,"__esModule",{value:!0});var TO=Jf,sh=Fa,pu=Ei,Ay=du,zc=ea,SO=ih,DO=ah,CO=oh;$p.default={CODE39:TO.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:SO.pharmacode,codabar:DO.codabar,GenericBarcode:CO.GenericBarcode};var mu={};Object.defineProperty(mu,"__esModule",{value:!0});var OO=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 OO({},r,t)};var h0={};Object.defineProperty(h0,"__esModule",{value:!0});h0.default=IO;function IO(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=kO;function kO(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=RO;function RO(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 NO={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=NO;Object.defineProperty(m0,"__esModule",{value:!0});var FO=uh,MO=Sy(FO),UO=ch,Ty=Sy(UO);function Sy(r){return r&&r.__esModule?r:{default:r}}function BO(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,MO.default)(t),t}m0.default=BO;var g0={},v0={},Wi={};Object.defineProperty(Wi,"__esModule",{value:!0});Wi.getTotalWidthOfEncodings=Wi.calculateEncodingAttributes=Wi.getBarcodePadding=Wi.getEncodingHeight=Wi.getMaximumHeightOfEncodings=void 0;var PO=mu,LO=jO(PO);function jO(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 WO(r,t,e){for(var n=0;n<r.length;n++){var i=r[n],a=(0,LO.default)(t,i.options),o;a.displayValue?o=$O(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 zO(r){for(var t=0,e=0;e<r.length;e++)t+=r[e].width;return t}function HO(r){for(var t=0,e=0;e<r.length;e++)r[e].height>t&&(t=r[e].height);return t}function $O(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=HO;Wi.getEncodingHeight=Dy;Wi.getBarcodePadding=Cy;Wi.calculateEncodingAttributes=WO;Wi.getTotalWidthOfEncodings=zO;Object.defineProperty(v0,"__esModule",{value:!0});var VO=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}}(),qO=mu,GO=XO(qO),y0=Wi;function XO(r){return r&&r.__esModule?r:{default:r}}function KO(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}var ZO=function(){function r(t,e,n){KO(this,r),this.canvas=t,this.encodings=e,this.options=n}return VO(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,GO.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=ZO;var b0={};Object.defineProperty(b0,"__esModule",{value:!0});var YO=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}}(),JO=mu,QO=eI(JO),w0=Wi;function eI(r){return r&&r.__esModule?r:{default:r}}function tI(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}var lh="http://www.w3.org/2000/svg",rI=function(){function r(t,e,n){tI(this,r),this.svg=t,this.encodings=e,this.options=n,this.document=n.xmlDocument||document}return YO(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,QO.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=rI;var _0={};Object.defineProperty(_0,"__esModule",{value:!0});var nI=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 iI(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}var aI=function(){function r(t,e,n){iI(this,r),this.object=t,this.encodings=e,this.options=n}return nI(r,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),r}();_0.default=aI;Object.defineProperty(g0,"__esModule",{value:!0});var oI=v0,sI=x0(oI),uI=b0,cI=x0(uI),lI=_0,fI=x0(lI);function x0(r){return r&&r.__esModule?r:{default:r}}g0.default={CanvasRenderer:sI.default,SVGRenderer:cI.default,ObjectRenderer:fI.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 hI=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),dI=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),pI=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=hI;gu.InvalidElementException=dI;gu.NoElementException=pI;Object.defineProperty(p0,"__esModule",{value:!0});var mI=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},gI=m0,S0=Oy(gI),vI=g0,Hc=Oy(vI),yI=gu;function Oy(r){return r&&r.__esModule?r:{default:r}}function D0(r){if(typeof r=="string")return bI(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 wI(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":mI(r))==="object"&&!r.nodeName)return{element:r,renderer:Hc.default.ObjectRenderer};throw new yI.InvalidElementException}}function bI(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 wI(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 _I=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 xI(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}var EI=function(){function r(t){xI(this,r),this.api=t}return _I(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=EI;var AI=$p,Ds=Go(AI),TI=mu,$c=Go(TI),SI=h0,Iy=Go(SI),DI=d0,ky=Go(DI),CI=p0,OI=Go(CI),II=uh,kI=Go(II),RI=C0,NI=Go(RI),Ry=gu,FI=ch,Ny=Go(FI);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,OI.default)(t),i._encodings=[],i._options=Ny.default,i._errorHandler=new NI.default(i),typeof e!="undefined"&&(n=n||{},n.format||(n.format=Uy()),i.options(n)[n.format](e,n).render()),i};fh.getModule=function(r){return Ds.default[r]};for(var Fy in Ds.default)Ds.default.hasOwnProperty(Fy)&&MI(Ds.default,Fy);function MI(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,kI.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 Uy(){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=Uy()),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=Ny.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 sX=fh;function UI(r,t){var e=Object.setPrototypeOf;e?e(r,t):r.__proto__=t}function BI(r,t){t===void 0&&(t=r.constructor);var e=Error.captureStackTrace;e&&e(r,t)}var PI=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)}}(),LI=function(r){PI(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}),UI(a,i.prototype),BI(a),a}return t}(Error),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)}}(),Ai=function(r){jI(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}(LI),WI=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){WI(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.kind="ArgumentException",t}(Ai),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)}}(),Bt=function(r){zI(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.kind="IllegalArgumentException",t}(Ai),By=function(){function r(t){if(this.binarizer=t,t===null)throw new Bt("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}(),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)}}(),bn=function(r){HI(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.getChecksumInstance=function(){return new t},t.kind="ChecksumException",t}(Ai),$I=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}(),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)}}(),I0=function(r){VI(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.kind="IndexOutOfBoundsException",t}(Ai),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)}}(),Py=function(r){qI(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),GI=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 Bt("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=GI(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 Bt;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 Bt;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 Bt("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 Bt("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,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)}}(),ct=function(r){XI(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.getFormatInstance=function(){return new t},t.kind="FormatException",t}(Ai),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.")},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=KI(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}(),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)}}(),hh=function(r){ZI(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 E=t[b]&255;o&&(s>0?(E&128)==0?o=!1:s--:(E&128)!=0&&((E&64)==0?o=!1:(s++,(E&32)==0?u++:(s++,(E&16)==0?c++:(s++,(E&8)==0?l++:o=!1))))),i&&(E>127&&E<160?i=!1:E>159&&(E<192||E===215||E===247)&&y++),a&&(d>0?E<64||E===127||E>252?a=!1:d--:E===128||E===160||E>239?a=!1:E>160&&E<224?(h++,g=0,f++,f>m&&(m=f)):E>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 Bt("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 Bt("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 Bt("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 Bt("illegal character encountered: "+t.substring(c));if(a>o){if(s===-1)s=a-o;else if(a-o!==s)throw new Bt("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 Bt("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 Bt("Left and top must be nonnegative");if(i<1||n<1)throw new Bt("Height and width must be at least 1");var a=t+n,o=e+i;if(o>this.height||a>this.width)throw new Bt("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}(),YI=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){YI(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.getNotFoundInstance=function(){return new t},t.kind="NotFoundException",t}(Ai),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)}}(),QI=function(r){JI(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}($I),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)}}(),Ly=function(r){ek(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 E=y/25;t.thresholdBlock(e,m,h,E,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 E=e[v+b]&255;g+=E,E<m&&(m=E),E>p&&(p=E)}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 D=g>>t.BLOCK_SIZE_POWER*2;if(p-m<=t.MIN_DYNAMIC_RANGE&&(D=m/2,l>0&&h>0)){var F=(c[l-1][h]+2*c[l][h-1]+c[l-1][h-1])/4;m<F&&(D=F)}c[l][h]=D}}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}(QI),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}(),tk=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){tk(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),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)}}(),nk=function(r){rk(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 Bt("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),ik=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}}},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.")},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=ak(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 ik(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 nk(n,e),a=new Ly(i);return new By(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,N0;(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"})(N0||(N0={}));var zn=N0,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 Bt;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 Bt;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 Bt("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 Bt("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 Bt;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 Bt("GenericGFPolys do not have same GenericGF field");if(t.isZero())throw new Bt("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}(),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)}}(),jy=function(r){ok(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.kind="ArithmeticException",t}(Ai),sk=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){sk(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 Bt;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),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)}}(),mh=function(r){uk(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.kind="ReedSolomonException",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)}}(),yu=function(r){ck(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),E=s.multiplyScalar(v);return[b,E]},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}(),F0=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*F0.floatToIntBits(this.x)+F0.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}(),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)}}(),fk=function(r){lk(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),U0=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,E=1;b===null&&E<v;E++)b=this.getBlackPointOnSegment(t,i-E,t+E,i);if(b==null)throw new ze;for(var D=null,E=1;D===null&&E<v;E++)D=this.getBlackPointOnSegment(t,n+E,t+E,n);if(D==null)throw new ze;for(var F=null,E=1;F===null&&E<v;E++)F=this.getBlackPointOnSegment(e,n+E,e-E,n);if(F==null)throw new ze;for(var z=null,E=1;z===null&&E<v;E++)z=this.getBlackPointOnSegment(e,i-E,e-E,i);if(z==null)throw new ze;return this.centerEdges(z,b,F,D)}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}(),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(){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,E){var D=Hy.quadrilateralToQuadrilateral(a,o,s,u,c,l,d,h,f,g,m,p,y,v,b,E);return this.sampleGridWithTransform(e,n,i,D)},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),B0=function(){function r(){}return r.setGridSampler=function(t){r.gridSampler=t},r.getInstance=function(){return r.gridSampler},r.gridSampler=new dk,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}(),pk=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 fk(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 U0(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 U0(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=B0.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 pk(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}(),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)}}();(function(r){mk(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(F,z){return b.set(z,F)}),b.delete(Hr.NEED_RESULT_POINT_CALLBACK),e=b}try{var E=m.decodeRow(f,a,e);if(v===1){E.putMetadata(zn.ORIENTATION,180);var D=E.getResultPoints();D!==null&&(D[0]=new yt(n-D[0].getX()-1,D[0].getY()),D[1]=new yt(n-D[1].getX()-1,D[1].getY()))}return{value:E}}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}(),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)}}(),$y=function(r){gk(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,E=0,D=!0,F=!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&&(D=!0),v!==t.CODE_STOP&&(E++,b+=E*v),g=m,m+=p.reduce(function(w,x){return w+x},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===F?f+=String.fromCharCode(" ".charCodeAt(0)+v):f+=String.fromCharCode(" ".charCodeAt(0)+v+128),z=!1;else if(v<96)z===F?f+=String.fromCharCode(v-64):f+=String.fromCharCode(v+64),z=!1;else switch(v!==t.CODE_STOP&&(D=!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:!F&&z?(F=!0,z=!1):F&&z?(F=!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===F?f+=String.fromCharCode(" ".charCodeAt(0)+v):f+=String.fromCharCode(" ".charCodeAt(0)+v+128),z=!1;else switch(v!==t.CODE_STOP&&(D=!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:!F&&z?(F=!0,z=!1):F&&z?(F=!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&&(D=!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-=E*y,b%103!==y)throw new bn;var G=f.length;if(G===0)throw new ze;G>0&&D&&(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,P=g+U/2,I=c.length,S=new Uint8Array(I),C=0;C<I;C++)S[C]=c[C];var _=[new yt(ee,e),new yt(P,e)];return new Yn(f,S,0,_,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),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)}}(),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){vk(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(I){a={error:I}}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 E=P0(c),D=E.next();!D.done;D=E.next()){var v=D.value;b+=v}}catch(I){s={error:I}}finally{try{D&&!D.done&&(u=E.return)&&u.call(E)}finally{if(s)throw s.error}}var F=d-g-b;if(d!==h&&F*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,P=g+b/2;return new Yn(G,null,0,[new yt(ee,e),new yt(P,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),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)}}(),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){yk(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 E=L0(h),D=E.next();!D.done;D=E.next()){var v=D.value;b+=v}}catch(U){s={error:U}}finally{try{D&&!D.done&&(u=E.return)&&u.call(E)}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 F=this.decodeExtended(this.decodeRowResult),z=(c[1]+c[0])/2,W=g+b/2;return new Yn(F,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),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)}}(),wk=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){bk(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=wk(d),p=m.next();!p.done;p=m.next()){var y=p.value;if(h===y){f=!0;break}y>g&&(g=y)}}catch(E){a={error:E}}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),_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)}}(),bu=function(r){_k(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),xk=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.")},Ek=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,xk(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}(),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.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,Ak(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}(),Sk=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 Ek;return a.decodeRow(t,e,i)}catch{var o=new Tk;return o.decodeRow(t,e,i)}},r.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),r}(),Dk=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){Dk(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(),E=[new yt(y,e),new yt(v,e)],D=new Yn(p,null,0,E,b,new Date().getTime()),F=0;try{var z=Sk.decodeRow(e,n,h[1]);D.putMetadata(zn.UPC_EAN_EXTENSION,z.getText()),D.putAllMetadata(z.getResultMetadata()),D.addResultPoints(z.getResultPoints()),F=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(F.toString()===G){U=!0;break}if(!U)throw new ze}return b===It.EAN_13||b===It.UPC_A,D},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),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)}}(),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){Ck(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(D){a={error:D}}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)),E=b.next();!E.done;E=b.next()){var y=E.value;d+=y}}catch(z){s={error:z}}finally{try{E&&!E.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),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)}}(),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){Ok(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(E){a={error:E}}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(F){s={error:F}}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),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)}}(),Yy=function(r){Ik(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),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)}}(),Rk=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){kk(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,Rk(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),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)}}(),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){Nk(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),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)}}(),Mk=function(r){Fk(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),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)}}(),Bk=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){Uk(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=Bk(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}(),Pk=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=Pk(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}(),Lk=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}(),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)}}(),va=function(r){jk(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),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)}}(),Is=function(r){Wk(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),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)}}(),_u=function(r){zk(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.")},Hk=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(F){e={error:F}}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(F){i={error:F}}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(F){o={error:F}}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 E=bh(r.FOUR_DIGIT_DATA_LENGTH),D=E.next();!D.done;D=E.next()){var f=D.value;if(f[0]===b)return f[1]===r.VARIABLE_LENGTH?r.processVariableAI(4,f[2],t):r.processFixedAI(4,f[1],t)}}catch(F){u={error:F}}finally{try{D&&!D.done&&(c=E.return)&&c.call(E)}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=Hk.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 _u(this.information.getSize(),_u.FNC1,_u.FNC1):new _u(this.information.getSize(),e-1,_u.FNC1)}var n=this.extractNumericValueFromBitArray(t,7),i=(n-8)/11,a=(n-8)%11;return new _u(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}(),$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)}}(),ya=function(r){$k(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),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)}}(),qk=function(r){Vk(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),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;return this.getGeneralDecoder().decodeAllCodes(e,t.HEADER_SIZE)},t.HEADER_SIZE=2+1+2,t}(tb),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)}}(),_h=function(r){Kk(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),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)}}(),rb=function(r){Zk(t,r);function t(e){return r.call(this,e)||this}return t.prototype.parseInformation=function(){if(this.getInformation().getSize()!==t.HEADER_SIZE+_h.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+_h.GTIN_SIZE,t.WEIGHT_SIZE),e.toString()},t.HEADER_SIZE=4+1,t.WEIGHT_SIZE=15,t}(_h),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)}}(),Jk=function(r){Yk(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),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){n<1e4?e.append("(3202)"):e.append("(3203)")},t.prototype.checkWeight=function(e){return e<1e4?e:e-1e4},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.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),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("(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),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)}}(),Ko=function(r){aR(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}(_h);function oR(r){try{if(r.get(1))return new qk(r);if(!r.get(2))return new Xk(r);var t=wh.extractNumericValueFromBitArray(r,1,4);switch(t){case 4:return new Jk(r);case 5:return new eR(r)}var e=wh.extractNumericValueFromBitArray(r,1,5);switch(e){case 12:return new rR(r);case 13:return new iR(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}(),sR=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}(),uR=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.")},cR=function(r){uR(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 sR(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 E=b.value;if(nb.equals(p,E)){y=!0;break}}}catch(D){u={error:D}}finally{try{b&&!b.done&&(c=v.return)&&c.call(v)}finally{if(u)throw u.error}}y||(f=!1)}}catch(D){o={error:D}}finally{try{m&&!m.done&&(s=g.return)&&s.call(g)}finally{if(o)throw o.error}}}}}catch(D){i={error:D}}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 E=b.value;if(p.equals(E)){y=!0;break}}}catch(D){u={error:D}}finally{try{b&&!b.done&&(c=v.return)&&c.call(v)}finally{if(u)throw u.error}}if(!y){f=!1;break}}}catch(D){o={error:D}}finally{try{m&&!m.done&&(s=g.return)&&s.call(g)}finally{if(o)throw o.error}}if(f)return!0}}catch(D){i={error:D}}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=Lk.buildBitArray(e),i=oR(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 E=u/2;(u&1)==0?(g[E]=b,p[E]=v-b):(m[E]=b,y[E]=v-b)}this.adjustOddEvenCounts(d);for(var D=4*n.getValue()+(i?0:2)+(a?0:1)-1,F=0,z=0,u=g.length-1;u>=0;u--){if(t.isNotA1left(n,i,a)){var W=t.WEIGHTS[D][2*u];z+=g[u]*W}F+=g[u]}for(var U=0,u=m.length-1;u>=0;u--)if(t.isNotA1left(n,i,a)){var W=t.WEIGHTS[D][2*u+1];U+=m[u]*W}var G=z+U;if((F&1)!=0||F>13||F<4)throw new ze;var ee=(13-F)/2,P=t.SYMBOL_WIDEST[ee],I=9-P,S=wu.getRSSvalue(g,P,!0),C=wu.getRSSvalue(m,I,!1),_=t.EVEN_TOTAL_SUBSET[ee],w=t.GSUM[ee],x=S*_+C+w;return new yh(x,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),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)}}(),fR=function(r){lR(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),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)}}(),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){hR(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 fR(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,E=0,s=h.length-1;s>=0;s--)E*=9,E+=h[s],b+=h[s];for(var D=0,F=0,s=f.length-1;s>=0;s--)D*=9,D+=f[s],F+=f[s];var z=E+3*D;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),P=wu.getRSSvalue(f,G,!0),I=t.OUTSIDE_EVEN_TOTAL_SUBSET[W],S=t.OUTSIDE_GSUM[W];return new yh(ee*I+P+S,z)}else{if((F&1)!=0||F>10||F<4)throw new ze;var W=(10-F)/2,U=t.INSIDE_ODD_WIDEST[W],G=9-U,ee=wu.getRSSvalue(h,U,!0),P=wu.getRSSvalue(f,G,!1),C=t.INSIDE_ODD_TOTAL_SUBSET[W],S=t.INSIDE_GSUM[W];return new yh(P*C+ee+S,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),dR=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){dR(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 Mk),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 cR))),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),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)}}();(function(r){pR(t,r);function t(e,n){return e===void 0&&(e=500),r.call(this,new xu(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}(),mR=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}(),gR=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 mR.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 Bt("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 E=g+v;l.set(E,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.")},vR=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(S){n={error:S}}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(S){a={error:S}}finally{try{p&&!p.done&&(o=m.return)&&o.call(m)}finally{if(a)throw a.error}}for(var E=f[0].codewords.length,D=E-s.getECCodewords(),F=D-1,z=0,y=0;y<F;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[D-1]=t[z++];for(var ee=f[0].codewords.length,y=D;y<ee;y++)for(var W=0;W<g;W++){var P=U?(W+8)%g:W,I=U&&P>7?y-1:y;f[P].codewords[I]=t[z++]}if(z!==t.length)throw new Bt;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 Bt(""+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 yR=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}(),bR=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.")},wR=function(){function r(){this.rsDecoder=new gh(mo.DATA_MATRIX_FIELD_256)}return r.prototype.decode=function(t){var e,n,i=new gR(t),a=i.getVersion(),o=i.readCodewords(),s=vR.getDataBlocks(o,a),u=0;try{for(var c=bR(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 yR.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}(),_R=function(){function r(t){this.image=t,this.rectangleDetector=new U0(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=B0.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}(),xh=function(){function r(){this.decoder=new wR}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 _R(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}(),xR=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){xR(t,r);function t(e){return e===void 0&&(e=500),r.call(this,new xh,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 Bt;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}(),ER=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=ER(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}(),AR=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.")},Ne=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=AR(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}(),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.")},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=TR(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 Bt;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 Ne(7,new ye(1,19)),new Ne(10,new ye(1,16)),new Ne(13,new ye(1,13)),new Ne(17,new ye(1,9))),new r(2,Int32Array.from([6,18]),new Ne(10,new ye(1,34)),new Ne(16,new ye(1,28)),new Ne(22,new ye(1,22)),new Ne(28,new ye(1,16))),new r(3,Int32Array.from([6,22]),new Ne(15,new ye(1,55)),new Ne(26,new ye(1,44)),new Ne(18,new ye(2,17)),new Ne(22,new ye(2,13))),new r(4,Int32Array.from([6,26]),new Ne(20,new ye(1,80)),new Ne(18,new ye(2,32)),new Ne(26,new ye(2,24)),new Ne(16,new ye(4,9))),new r(5,Int32Array.from([6,30]),new Ne(26,new ye(1,108)),new Ne(24,new ye(2,43)),new Ne(18,new ye(2,15),new ye(2,16)),new Ne(22,new ye(2,11),new ye(2,12))),new r(6,Int32Array.from([6,34]),new Ne(18,new ye(2,68)),new Ne(16,new ye(4,27)),new Ne(24,new ye(4,19)),new Ne(28,new ye(4,15))),new r(7,Int32Array.from([6,22,38]),new Ne(20,new ye(2,78)),new Ne(18,new ye(4,31)),new Ne(18,new ye(2,14),new ye(4,15)),new Ne(26,new ye(4,13),new ye(1,14))),new r(8,Int32Array.from([6,24,42]),new Ne(24,new ye(2,97)),new Ne(22,new ye(2,38),new ye(2,39)),new Ne(22,new ye(4,18),new ye(2,19)),new Ne(26,new ye(4,14),new ye(2,15))),new r(9,Int32Array.from([6,26,46]),new Ne(30,new ye(2,116)),new Ne(22,new ye(3,36),new ye(2,37)),new Ne(20,new ye(4,16),new ye(4,17)),new Ne(24,new ye(4,12),new ye(4,13))),new r(10,Int32Array.from([6,28,50]),new Ne(18,new ye(2,68),new ye(2,69)),new Ne(26,new ye(4,43),new ye(1,44)),new Ne(24,new ye(6,19),new ye(2,20)),new Ne(28,new ye(6,15),new ye(2,16))),new r(11,Int32Array.from([6,30,54]),new Ne(20,new ye(4,81)),new Ne(30,new ye(1,50),new ye(4,51)),new Ne(28,new ye(4,22),new ye(4,23)),new Ne(24,new ye(3,12),new ye(8,13))),new r(12,Int32Array.from([6,32,58]),new Ne(24,new ye(2,92),new ye(2,93)),new Ne(22,new ye(6,36),new ye(2,37)),new Ne(26,new ye(4,20),new ye(6,21)),new Ne(28,new ye(7,14),new ye(4,15))),new r(13,Int32Array.from([6,34,62]),new Ne(26,new ye(4,107)),new Ne(22,new ye(8,37),new ye(1,38)),new Ne(24,new ye(8,20),new ye(4,21)),new Ne(22,new ye(12,11),new ye(4,12))),new r(14,Int32Array.from([6,26,46,66]),new Ne(30,new ye(3,115),new ye(1,116)),new Ne(24,new ye(4,40),new ye(5,41)),new Ne(20,new ye(11,16),new ye(5,17)),new Ne(24,new ye(11,12),new ye(5,13))),new r(15,Int32Array.from([6,26,48,70]),new Ne(22,new ye(5,87),new ye(1,88)),new Ne(24,new ye(5,41),new ye(5,42)),new Ne(30,new ye(5,24),new ye(7,25)),new Ne(24,new ye(11,12),new ye(7,13))),new r(16,Int32Array.from([6,26,50,74]),new Ne(24,new ye(5,98),new ye(1,99)),new Ne(28,new ye(7,45),new ye(3,46)),new Ne(24,new ye(15,19),new ye(2,20)),new Ne(30,new ye(3,15),new ye(13,16))),new r(17,Int32Array.from([6,30,54,78]),new Ne(28,new ye(1,107),new ye(5,108)),new Ne(28,new ye(10,46),new ye(1,47)),new Ne(28,new ye(1,22),new ye(15,23)),new Ne(28,new ye(2,14),new ye(17,15))),new r(18,Int32Array.from([6,30,56,82]),new Ne(30,new ye(5,120),new ye(1,121)),new Ne(26,new ye(9,43),new ye(4,44)),new Ne(28,new ye(17,22),new ye(1,23)),new Ne(28,new ye(2,14),new ye(19,15))),new r(19,Int32Array.from([6,30,58,86]),new Ne(28,new ye(3,113),new ye(4,114)),new Ne(26,new ye(3,44),new ye(11,45)),new Ne(26,new ye(17,21),new ye(4,22)),new Ne(26,new ye(9,13),new ye(16,14))),new r(20,Int32Array.from([6,34,62,90]),new Ne(28,new ye(3,107),new ye(5,108)),new Ne(26,new ye(3,41),new ye(13,42)),new Ne(30,new ye(15,24),new ye(5,25)),new Ne(28,new ye(15,15),new ye(10,16))),new r(21,Int32Array.from([6,28,50,72,94]),new Ne(28,new ye(4,116),new ye(4,117)),new Ne(26,new ye(17,42)),new Ne(28,new ye(17,22),new ye(6,23)),new Ne(30,new ye(19,16),new ye(6,17))),new r(22,Int32Array.from([6,26,50,74,98]),new Ne(28,new ye(2,111),new ye(7,112)),new Ne(28,new ye(17,46)),new Ne(30,new ye(7,24),new ye(16,25)),new Ne(24,new ye(34,13))),new r(23,Int32Array.from([6,30,54,78,102]),new Ne(30,new ye(4,121),new ye(5,122)),new Ne(28,new ye(4,47),new ye(14,48)),new Ne(30,new ye(11,24),new ye(14,25)),new Ne(30,new ye(16,15),new ye(14,16))),new r(24,Int32Array.from([6,28,54,80,106]),new Ne(30,new ye(6,117),new ye(4,118)),new Ne(28,new ye(6,45),new ye(14,46)),new Ne(30,new ye(11,24),new ye(16,25)),new Ne(30,new ye(30,16),new ye(2,17))),new r(25,Int32Array.from([6,32,58,84,110]),new Ne(26,new ye(8,106),new ye(4,107)),new Ne(28,new ye(8,47),new ye(13,48)),new Ne(30,new ye(7,24),new ye(22,25)),new Ne(30,new ye(22,15),new ye(13,16))),new r(26,Int32Array.from([6,30,58,86,114]),new Ne(28,new ye(10,114),new ye(2,115)),new Ne(28,new ye(19,46),new ye(4,47)),new Ne(28,new ye(28,22),new ye(6,23)),new Ne(30,new ye(33,16),new ye(4,17))),new r(27,Int32Array.from([6,34,62,90,118]),new Ne(30,new ye(8,122),new ye(4,123)),new Ne(28,new ye(22,45),new ye(3,46)),new Ne(30,new ye(8,23),new ye(26,24)),new Ne(30,new ye(12,15),new ye(28,16))),new r(28,Int32Array.from([6,26,50,74,98,122]),new Ne(30,new ye(3,117),new ye(10,118)),new Ne(28,new ye(3,45),new ye(23,46)),new Ne(30,new ye(4,24),new ye(31,25)),new Ne(30,new ye(11,15),new ye(31,16))),new r(29,Int32Array.from([6,30,54,78,102,126]),new Ne(30,new ye(7,116),new ye(7,117)),new Ne(28,new ye(21,45),new ye(7,46)),new Ne(30,new ye(1,23),new ye(37,24)),new Ne(30,new ye(19,15),new ye(26,16))),new r(30,Int32Array.from([6,26,52,78,104,130]),new Ne(30,new ye(5,115),new ye(10,116)),new Ne(28,new ye(19,47),new ye(10,48)),new Ne(30,new ye(15,24),new ye(25,25)),new Ne(30,new ye(23,15),new ye(25,16))),new r(31,Int32Array.from([6,30,56,82,108,134]),new Ne(30,new ye(13,115),new ye(3,116)),new Ne(28,new ye(2,46),new ye(29,47)),new Ne(30,new ye(42,24),new ye(1,25)),new Ne(30,new ye(23,15),new ye(28,16))),new r(32,Int32Array.from([6,34,60,86,112,138]),new Ne(30,new ye(17,115)),new Ne(28,new ye(10,46),new ye(23,47)),new Ne(30,new ye(10,24),new ye(35,25)),new Ne(30,new ye(19,15),new ye(35,16))),new r(33,Int32Array.from([6,30,58,86,114,142]),new Ne(30,new ye(17,115),new ye(1,116)),new Ne(28,new ye(14,46),new ye(21,47)),new Ne(30,new ye(29,24),new ye(19,25)),new Ne(30,new ye(11,15),new ye(46,16))),new r(34,Int32Array.from([6,34,62,90,118,146]),new Ne(30,new ye(13,115),new ye(6,116)),new Ne(28,new ye(14,46),new ye(23,47)),new Ne(30,new ye(44,24),new ye(7,25)),new Ne(30,new ye(59,16),new ye(1,17))),new r(35,Int32Array.from([6,30,54,78,102,126,150]),new Ne(30,new ye(12,121),new ye(7,122)),new Ne(28,new ye(12,47),new ye(26,48)),new Ne(30,new ye(39,24),new ye(14,25)),new Ne(30,new ye(22,15),new ye(41,16))),new r(36,Int32Array.from([6,24,50,76,102,128,154]),new Ne(30,new ye(6,121),new ye(14,122)),new Ne(28,new ye(6,47),new ye(34,48)),new Ne(30,new ye(46,24),new ye(10,25)),new Ne(30,new ye(2,15),new ye(64,16))),new r(37,Int32Array.from([6,28,54,80,106,132,158]),new Ne(30,new ye(17,122),new ye(4,123)),new Ne(28,new ye(29,46),new ye(14,47)),new Ne(30,new ye(49,24),new ye(10,25)),new Ne(30,new ye(24,15),new ye(46,16))),new r(38,Int32Array.from([6,32,58,84,110,136,162]),new Ne(30,new ye(4,122),new ye(18,123)),new Ne(28,new ye(13,46),new ye(32,47)),new Ne(30,new ye(48,24),new ye(14,25)),new Ne(30,new ye(42,15),new ye(32,16))),new r(39,Int32Array.from([6,26,54,82,110,138,166]),new Ne(30,new ye(20,117),new ye(4,118)),new Ne(28,new ye(40,47),new ye(7,48)),new Ne(30,new ye(43,24),new ye(22,25)),new Ne(30,new ye(10,15),new ye(67,16))),new r(40,Int32Array.from([6,30,58,86,114,142,170]),new Ne(30,new ye(19,118),new ye(6,119)),new Ne(28,new ye(18,47),new ye(31,48)),new Ne(30,new ye(34,24),new ye(34,25)),new Ne(30,new ye(20,15),new ye(61,16)))],r}(),Fn;(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"})(Fn||(Fn={}));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([[Fn.DATA_MASK_000,new r(Fn.DATA_MASK_000,function(t,e){return(t+e&1)==0})],[Fn.DATA_MASK_001,new r(Fn.DATA_MASK_001,function(t,e){return(t&1)==0})],[Fn.DATA_MASK_010,new r(Fn.DATA_MASK_010,function(t,e){return e%3==0})],[Fn.DATA_MASK_011,new r(Fn.DATA_MASK_011,function(t,e){return(t+e)%3==0})],[Fn.DATA_MASK_100,new r(Fn.DATA_MASK_100,function(t,e){return(Math.floor(t/2)+Math.floor(e/3)&1)==0})],[Fn.DATA_MASK_101,new r(Fn.DATA_MASK_101,function(t,e){return t*e%6==0})],[Fn.DATA_MASK_110,new r(Fn.DATA_MASK_110,function(t,e){return t*e%6<3})],[Fn.DATA_MASK_111,new r(Fn.DATA_MASK_111,function(t,e){return(t+e+t*e%3&1)==0})]]),r}(),SR=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.")},DR=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 Bt;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(I){i={error:I}}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(),E=u.getECCodewordsPerBlock()+b;g[m++]=new r(b,new Uint8Array(E))}}catch(I){o={error:I}}finally{try{y&&!y.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}for(var D=g[0].codewords.length,F=g.length-1;F>=0;){var z=g[F].codewords.length;if(z===D)break;F--}F++;for(var W=D-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=F;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 P=G<F?v:v+1;g[G].codewords[P]=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 Bt;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}(),CR=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.")},OR=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 SR(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=DR.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(F){n={error:F}}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(),E=g.getNumDataCodewords();this.correctErrors(b,E);for(var D=0;D<E;D++)m[p++]=b[D]}}catch(F){a={error:F}}finally{try{v&&!v.done&&(o=y.return)&&o.call(y)}finally{if(a)throw a.error}}return CR.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}(),IR=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)}}(),kR=function(r){IR(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),RR=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.")},NR=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=RR(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 kR(s,u,c);this.possibleCenters.push(f),this.resultPointCallback!==null&&this.resultPointCallback!==void 0&&this.resultPointCallback.foundPossibleResultPoint(f)}return null},r}(),FR=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)}}(),MR=function(r){FR(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),UR=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.")},BR=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 UR(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 MR(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(D){t={error:D}}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(D,F){var z=Math.abs(F.getEstimatedModuleSize()-s),W=Math.abs(D.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 E=b.value;u+=E.getEstimatedModuleSize()}}catch(F){n={error:F}}finally{try{b&&!b.done&&(i=v.return)&&i.call(v)}finally{if(n)throw n.error}}s=u/o.length,o.sort(function(F,z){if(z.getCount()===F.getCount()){var W=Math.abs(z.getEstimatedModuleSize()-s),U=Math.abs(F.getEstimatedModuleSize()-s);return W<U?1:W>U?-1:0}else return z.getCount()-F.getCount()}),o.splice(3)}return[o[0],o[1],o[2]]},r.CENTER_QUORUM=2,r.MIN_SKIP=3,r.MAX_MODULES=57,r}(),PR=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 BR(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=B0.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 NR(this.image,o,u,s-o,c-u,t,this.resultPointCallback);return l.find()},r}(),Eh=function(){function r(){this.decoder=new OR}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 PR(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}(),LR=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=LR(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}(),jR=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}(),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.")},zR=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 jR(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,WR(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}(),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.")},Rs=function(){function r(t,e){if(e.length===0)throw new Bt;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=HR(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 Bt("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 Bt("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 Bt("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 Bt;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}(),$R=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 Bt;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}(),VR=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)}}(),qR=function(r){VR(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 Bt;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}($R),GR=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(){this.field=qR.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=GR(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],E=v[1],D=this.findErrorLocations(b),F=this.findErrorMagnitudes(E,b,D),c=0;c<D.length;c++){var z=t.length-1-this.field.log(D[c]);if(z<0)throw bn.getChecksumInstance();t[z]=this.field.subtract(t[z],F[c])}return D.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}(),KR=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}(),ZR=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=ZR(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}(),YR=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.")},JR=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=YR(this.values.entries()),s=o.next();!s.done;s=o.next()){var u=JR(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}(),QR=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){QR(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 KR(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),eN=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(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=eN(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}(),rN=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}(),nN=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=F0.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}(),iN=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}(),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)}}(),oN=function(r){aN(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.kind="NullPointerException",t}(Ai),sN=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 oN;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}(),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)}}(),cN=function(r){uN(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Ai),lN=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)}}(),fN=function(r){lN(t,r);function t(e){e===void 0&&(e=32);var n=r.call(this)||this;if(n.count=0,e<0)throw new Bt("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 cN;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}(sN),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 hN(){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 dN=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 iN;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 fN,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()?hN():[],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.")},pN=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,E=b,D=u.getMinY();D<=u.getMaxY();D++){if(b=r.getStartColumn(d,y,D,m),b<0||b>u.getMaxX()){if(E===-1)continue;b=E}var F=r.detectCodeword(t,u.getMinX(),u.getMaxX(),m,b,D,o,s);F!=null&&(v.setCodeword(D,F),E=b,o=Math.min(o,F.getWidth()),s=Math.max(s,F.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 tN(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=nN.getDecodedValue(c),m=vr.getCodeword(g);return m===-1?null:new rN(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=dN.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 XR,r}(),mN=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=zR.detectMultiple(t,e,n);try{for(var u=mN(s.getPoints()),c=u.next();!c.done;c=u.next()){var l=c.value,d=pN.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}(),gN=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){gN(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 xu(t)),n.includes(It.QR_CODE)&&i.push(new Eh),n.includes(It.DATA_MATRIX)&&i.push(new xh),n.includes(It.AZTEC)&&i.push(new vh),n.includes(It.PDF_417)&&i.push(new Th),a&&e&&i.push(new xu(t))}i.length===0&&(e||i.push(new xu(t)),i.push(new Eh),i.push(new xh),i.push(new vh),i.push(new Th),e&&i.push(new xu(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}(),vN=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){vN(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 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)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){yN(t,r);function t(e){return e===void 0&&(e=500),r.call(this,new Th,e)||this}return t})(vu);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)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){bN(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,wN=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 Bt("No error correction bytes");var n=t.length-e;if(n<=0)throw new Bt("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 Bt("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}(),_N=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.")},xN=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=_N(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}(),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)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){EN(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 Bt("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}(),AN=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}(),_b=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.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(),E=new xN(b,b),D=this.chooseMaskPattern(y,e,l,E);return v.setMaskPattern(D),wb.buildMatrix(y,e,l,D,E),v.setMatrix(E),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 AN(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 E=(a=void 0,_b(h)),D=E.next();!D.done;D=E.next()){var F=D.value,y=F.getDataBytes();f<y.length&&b.appendBits(y[f],8)}}catch(G){a={error:G}}finally{try{D&&!D.done&&(o=E.return)&&o.call(E)}finally{if(a)throw a.error}}for(var f=0;f<d;++f)try{for(var z=(s=void 0,_b(h)),W=z.next();!W.done;W=z.next()){var F=W.value,v=F.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 wN(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}(),SN=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){SN(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 Bt("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 Bt("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 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)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){DN(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 Bt("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 Bt("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 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)}}(),ON=function(r){CN(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.forName=function(e){return this.getCharacterSetECIByName(e)},t}(Sn),IN=function(){function r(){}return r.ISO_8859_1=Sn.ISO8859_1,r}(),Z0,kN=301,RN=function(r,t){for(var e=1,n=0;n<255;n++)t[n]=e,r[e]=n,e*=2,e>=256&&(e^=kN);return{LOG:r,ALOG:t}};Z0=RN([],[]),Z0.LOG;Z0.ALOG;var xb;(function(r){r[r.FORCE_NONE=0]="FORCE_NONE",r[r.FORCE_SQUARE=1]="FORCE_SQUARE",r[r.FORCE_RECTANGLE=2]="FORCE_RECTANGLE"})(xb||(xb={}));var Eb=129,Ab=230,NN=231,FN=235,MN=236,UN=237,BN=238,PN=239,LN=240,Y0=254,jN=254,Tb="[)>05",Sb="[)>06",Db="",Ir=0,$n=1,pi=2,In=3,Mn=4,Jn=5,WN=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(NN),t.signalEncoderChange(Jn);return;case $n:t.writeCodeword(Ab),t.signalEncoderChange($n);return;case In:t.writeCodeword(BN),t.signalEncoderChange(In);break;case pi:t.writeCodeword(PN),t.signalEncoderChange(pi);break;case Mn:t.writeCodeword(LN),t.signalEncoderChange(Mn);break;default:throw new Error("Illegal mode: "+i)}else ba.isExtendedASCII(n)?(t.writeCodeword(FN),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}(),zN=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}(),HN=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}(),$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)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)}}(),VN=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(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=VN(GN),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}(),qN=function(r){$N(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}(_r),GN=[new _r(!1,3,5,8,8,1),new _r(!1,5,7,10,10,1),new _r(!0,5,7,16,6,1),new _r(!1,8,10,12,12,1),new _r(!0,10,11,14,6,2),new _r(!1,12,12,14,14,1),new _r(!0,16,14,24,10,1),new _r(!1,18,14,16,16,1),new _r(!1,22,18,18,18,1),new _r(!0,22,18,16,10,2),new _r(!1,30,20,20,20,1),new _r(!0,32,24,16,14,2),new _r(!1,36,24,22,22,1),new _r(!1,44,28,24,24,1),new _r(!0,49,28,22,14,2),new _r(!1,62,36,14,14,4),new _r(!1,86,42,16,16,4),new _r(!1,114,48,18,18,4),new _r(!1,144,56,20,20,4),new _r(!1,174,68,22,22,4),new _r(!1,204,84,24,24,4,102,42),new _r(!1,280,112,14,14,16,140,56),new _r(!1,368,144,16,16,16,92,36),new _r(!1,456,192,18,18,16,114,48),new _r(!1,576,224,20,20,16,144,56),new _r(!1,696,272,22,22,16,174,68),new _r(!1,816,336,24,24,16,136,56),new _r(!1,1050,408,18,18,36,175,68),new _r(!1,1304,496,20,20,36,163,62),new qN],XN=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=_r.lookup(t,this.shape,this.minSize,this.maxSize,!0))},r.prototype.resetSymbolInfo=function(){this.symbolInfo=null},r}(),KN=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)}}(),ZN=function(r){KN(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(jN),e.getNewEncoding()<0&&e.signalEncoderChange(Ir)},t}(J0),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)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)}}(),JN=function(r){YN(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),QN=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 WN,o,new JN,new ZN,new HN,new zN],u=new XN(t);u.setSymbolShape(e),u.setSizeConstraints(n,i),t.startsWith(Tb)&&t.endsWith(Db)?(u.writeCodeword(MN),u.setSkipAtEnd(2),u.pos+=Tb.length):t.startsWith(Sb)&&t.endsWith(Db)&&(u.writeCodeword(UN),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=QN,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}(),eF=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(ON.forName(U))}),this.encoders=[];var l=[];l.push(new Cb(IN.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)),E=b.next();!E.done;E=b.next()){var p=E.value;if(p.canEncode(t.charAt(h))){l.push(p),f=!0;break}}}catch(U){o={error:U}}finally{try{E&&!E.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 D=0;try{for(var F=Q0(l),z=F.next();!z.done;z=F.next()){var p=z.value;this.encoders[D++]=p}}catch(U){u={error:U}}finally{try{z&&!z.done&&(c=F.return)&&c.call(F)}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}(),tF=3,rF=function(){function r(t,e,n){this.fnc1=n;var i=new eF(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+=tF),i!=null&&(o+=i.cachedTotalSize),this.cachedTotalSize=o}return r.prototype.isFNC1=function(){return this.c===1e3},r}(),nF=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 iF=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){nF(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})(rF);var aF=function(){function r(t){this.previous=t}return r.prototype.getPrevious=function(){return this.previous},r}(),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)}}(),kb=function(r){oF(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}(aF),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)}}();(function(r){sF(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 uF=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 cF(r){var t,e;try{for(var n=uF(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}cF(Tn.createInt32Array(6,6));globalThis&&globalThis.__values;function lF(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}lF(Tn.createInt32Array(5,256));globalThis&&globalThis.__values;globalThis&&globalThis.__values;var fF=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)}}(),hF=function(r){fF(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 Bt("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 Nb(){return typeof navigator!="undefined"}function dF(){return Nb()&&!!navigator.mediaDevices}function pF(){return!!(dF()&&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.")},mF={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({},mF),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 hF(t),n=new Ly(e);return new By(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(!Nb())throw new Error("Can't enumerate devices, navigator is not present.");if(!pF())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,E,D,F,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]:(E=b.value,[4,E.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 D=W.sent(),F={error:D},[3,8];case 7:try{b&&!b.done&&(z=v.return)&&z.call(v)}finally{if(F)throw F.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}(),gF=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){gF(t,r);function t(e,n){return r.call(this,new vh,e,n)||this}return t})(Su);var vF=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){vF(t,r);function t(e,n){return r.call(this,new xu(e),e,n)||this}return t})(Su);var 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)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){yF(t,r);function t(e,n){return r.call(this,new xh,e,n)||this}return t})(Su);var 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)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){bF(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 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)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){wF(t,r);function t(e,n){return r.call(this,new Th,e,n)||this}return t})(Su);var _F=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)}}(),uX=function(r){_F(t,r);function t(e,n){return r.call(this,new Eh,e,n)||this}return t}(Su),Fb="http://www.w3.org/2000/svg",cX=function(){function r(){}return r.prototype.write=function(t,e,n,i){if(t.length===0)throw new Bt("Found empty contents");if(e<0||n<0)throw new Bt("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=TN.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 E=this.createSvgRectElement(b,y,h,h);m.appendChild(E)}return m},r.prototype.createSVGElement=function(t,e){var n=document.createElementNS(Fb,"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(Fb,"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:(_,w)=>{for(var x in w)e.o(w,x)&&!e.o(_,x)&&Object.defineProperty(_,x,{enumerable:!0,get:w[x]})},o:(_,w)=>Object.prototype.hasOwnProperty.call(_,w),r:_=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})}},n={};e.d(n,{default:()=>S});var i={};function a(_,w,x,A,k={}){w instanceof HTMLCollection||w instanceof NodeList?w=Array.from(w):Array.isArray(w)||(w=[w]),Array.isArray(x)||(x=[x]);for(const R of w)for(const M of x)R[_](M,A,An({capture:!1},k));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(_){const w=document.createElement("div");return w.innerHTML=_.trim(),w.firstElementChild}function c(_){const w=(A,k)=>{const R=A.getAttribute(k);return A.removeAttribute(k),R},x=(A,k={})=>{const R=w(A,":obj"),M=w(A,":ref"),X=R?k[R]={}:k;M&&(k[M]=A);for(const K of Array.from(A.children)){const te=w(K,":arr"),$=x(K,te?{}:X);te&&(X[te]||(X[te]=[])).push(Object.keys($).length?$:K)}return k};return x(u(_))}function l(_){let w=_.path||_.composedPath&&_.composedPath();if(w)return w;let x=_.target.parentElement;for(w=[_.target,x];x=x.parentElement;)w.push(x);return w.push(document,window),w}function d(_){return _ instanceof Element?_:typeof _=="string"?_.split(/>>/g).reduce((w,x,A,k)=>(w=w.querySelector(x),A<k.length-1?w.shadowRoot:w),document):null}function h(_,w=x=>x){function x(A){const k=[.001,.01,.1][Number(A.shiftKey||2*A.ctrlKey)]*(A.deltaY<0?1:-1);let R=0,M=_.selectionStart;_.value=_.value.replace(/[\d.]+/g,(X,K)=>K<=M&&K+X.length>=M?(M=K,w(Number(X),k,R)):(R++,X)),_.focus(),_.setSelectionRange(M,M),A.preventDefault(),_.dispatchEvent(new Event("input"))}o(_,"focus",()=>o(window,"wheel",x,{passive:!1})),o(_,"blur",()=>s(window,"wheel",x))}const{min:f,max:g,floor:m,round:p}=Math;function y(_,w,x){w/=100,x/=100;const A=m(_=_/360*6),k=_-A,R=x*(1-w),M=x*(1-k*w),X=x*(1-(1-k)*w),K=A%6;return[255*[x,M,R,R,X,x][K],255*[X,x,x,M,R,R][K],255*[R,R,X,x,x,M][K]]}function v(_,w,x){const A=(2-(w/=100))*(x/=100)/2;return A!==0&&(w=A===1?0:A<.5?w*x/(2*A):w*x/(2-2*A)),[_,100*w,100*A]}function b(_,w,x){const A=f(_/=255,w/=255,x/=255),k=g(_,w,x),R=k-A;let M,X;if(R===0)M=X=0;else{X=R/k;const K=((k-_)/6+R/2)/R,te=((k-w)/6+R/2)/R,$=((k-x)/6+R/2)/R;_===k?M=$-te:w===k?M=1/3+K-$:x===k&&(M=2/3+te-K),M<0?M+=1:M>1&&(M-=1)}return[360*M,100*X,100*k]}function E(_,w,x,A){return w/=100,x/=100,[...b(255*(1-f(1,(_/=100)*(1-(A/=100))+A)),255*(1-f(1,w*(1-A)+A)),255*(1-f(1,x*(1-A)+A)))]}function D(_,w,x){w/=100;const A=2*(w*=(x/=100)<.5?x:1-x)/(x+w)*100,k=100*(x+w);return[_,isNaN(A)?0:A,k]}function F(_){return b(..._.match(/.{2}/g).map(w=>parseInt(w,16)))}function z(_){_=_.match(/^[a-zA-Z]+$/)?function(k){if(k.toLowerCase()==="black")return"#000";const R=document.createElement("canvas").getContext("2d");return R.fillStyle=k,R.fillStyle==="#000"?null:R.fillStyle}(_):_;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},x=k=>k.map(R=>/^(|\d+)\.\d+|\d+$/.test(R)?Number(R):void 0);let A;e:for(const k in w)if(A=w[k].exec(_))switch(k){case"cmyk":{const[,R,M,X,K]=x(A);if(R>100||M>100||X>100||K>100)break e;return{values:E(R,M,X,K),type:k}}case"rgba":{let[,R,,M,,X,,,K]=x(A);if(R=A[2]==="%"?R/100*255:R,M=A[4]==="%"?M/100*255:M,X=A[6]==="%"?X/100*255:X,K=A[9]==="%"?K/100:K,R>255||M>255||X>255||K<0||K>1)break e;return{values:[...b(R,M,X),K],a:K,type:k}}case"hexa":{let[,R]=A;R.length!==4&&R.length!==3||(R=R.split("").map(K=>K+K).join(""));const M=R.substring(0,6);let X=R.substring(6);return X=X?parseInt(X,16)/255:void 0,{values:[...F(M),X],a:X,type:k}}case"hsla":{let[,R,M,X,,K]=x(A);if(K=A[6]==="%"?K/100:K,R>360||M>100||X>100||K<0||K>1)break e;return{values:[...D(R,M,X),K],a:K,type:k}}case"hsva":{let[,R,M,X,,K]=x(A);if(K=A[6]==="%"?K/100:K,R>360||M>100||X>100||K<0||K>1)break e;return{values:[R,M,X,K],a:K,type:k}}}return{values:null,type:null}}function W(_=0,w=0,x=0,A=1){const k=(M,X)=>(K=-1)=>X(~K?M.map(te=>Number(te.toFixed(K))):M),R={h:_,s:w,v:x,a:A,toHSVA(){const M=[R.h,R.s,R.v,R.a];return M.toString=k(M,X=>`hsva(${X[0]}, ${X[1]}%, ${X[2]}%, ${R.a})`),M},toHSLA(){const M=[...v(R.h,R.s,R.v),R.a];return M.toString=k(M,X=>`hsla(${X[0]}, ${X[1]}%, ${X[2]}%, ${R.a})`),M},toRGBA(){const M=[...y(R.h,R.s,R.v),R.a];return M.toString=k(M,X=>`rgba(${X[0]}, ${X[1]}, ${X[2]}, ${R.a})`),M},toCMYK(){const M=function(X,K,te){const $=y(X,K,te),q=$[0]/255,O=$[1]/255,L=$[2]/255,V=f(1-q,1-O,1-L);return[100*(V===1?0:(1-q-V)/(1-V)),100*(V===1?0:(1-O-V)/(1-V)),100*(V===1?0:(1-L-V)/(1-V)),100*V]}(R.h,R.s,R.v);return M.toString=k(M,X=>`cmyk(${X[0]}%, ${X[1]}%, ${X[2]}%, ${X[3]}%)`),M},toHEXA(){const M=function(K,te,$){return y(K,te,$).map(q=>p(q).toString(16).padStart(2,"0"))}(R.h,R.s,R.v),X=R.a>=1?"":Number((255*R.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return X&&M.push(X),M.toString=()=>`#${M.join("").toUpperCase()}`,M},clone:()=>W(R.h,R.s,R.v,R.a)};return R}const U=_=>Math.max(Math.min(_,1),0);function G(_){const w={options:Object.assign({lock:null,onchange:()=>0,onstop:()=>0},_),_keyboard(R){const{options:M}=w,{type:X,key:K}=R;if(document.activeElement===M.wrapper){const{lock:te}=w.options,$=K==="ArrowUp",q=K==="ArrowRight",O=K==="ArrowDown",L=K==="ArrowLeft";if(X==="keydown"&&($||q||O||L)){let V=0,J=0;te==="v"?V=$||q?1:-1:te==="h"?V=$||q?-1:1:(J=$?-1:O?1:0,V=L?-1:q?1:0),w.update(U(w.cache.x+.01*V),U(w.cache.y+.01*J)),R.preventDefault()}else K.startsWith("Arrow")&&(w.options.onstop(),R.preventDefault())}},_tapstart(R){o(document,["mouseup","touchend","touchcancel"],w._tapstop),o(document,["mousemove","touchmove"],w._tapmove),R.cancelable&&R.preventDefault(),w._tapmove(R)},_tapmove(R){const{options:M,cache:X}=w,{lock:K,element:te,wrapper:$}=M,q=$.getBoundingClientRect();let O=0,L=0;if(R){const re=R&&R.touches&&R.touches[0];O=R?(re||R).clientX:0,L=R?(re||R).clientY:0,O<q.left?O=q.left:O>q.left+q.width&&(O=q.left+q.width),L<q.top?L=q.top:L>q.top+q.height&&(L=q.top+q.height),O-=q.left,L-=q.top}else X&&(O=X.x*q.width,L=X.y*q.height);K!=="h"&&(te.style.left=`calc(${O/q.width*100}% - ${te.offsetWidth/2}px)`),K!=="v"&&(te.style.top=`calc(${L/q.height*100}% - ${te.offsetHeight/2}px)`),w.cache={x:O/q.width,y:L/q.height};const V=U(O/q.width),J=U(L/q.height);switch(K){case"v":return M.onchange(V);case"h":return M.onchange(J);default:return M.onchange(V,J)}},_tapstop(){w.options.onstop(),s(document,["mouseup","touchend","touchcancel"],w._tapstop),s(document,["mousemove","touchmove"],w._tapmove)},trigger(){w._tapmove()},update(R=0,M=0){const{left:X,top:K,width:te,height:$}=w.options.wrapper.getBoundingClientRect();w.options.lock==="h"&&(M=R),w._tapmove({clientX:X+te*R,clientY:K+$*M})},destroy(){const{options:R,_tapstart:M,_keyboard:X}=w;s(document,["keydown","keyup"],X),s([R.wrapper,R.element],"mousedown",M),s([R.wrapper,R.element],"touchstart",M,{passive:!1})}},{options:x,_tapstart:A,_keyboard:k}=w;return o([x.wrapper,x.element],"mousedown",A),o([x.wrapper,x.element],"touchstart",A,{passive:!1}),o(document,["keydown","keyup"],k),w}function ee(_={}){_=Object.assign({onchange:()=>0,className:"",elements:[]},_);const w=o(_.elements,"click",x=>{_.elements.forEach(A=>A.classList[x.target===A?"add":"remove"](_.className)),_.onchange(x),x.stopPropagation()});return{destroy:()=>s(...w)}}const P={variantFlipOrder:{start:"sme",middle:"mse",end:"ems"},positionFlipOrder:{top:"tbrl",right:"rltb",bottom:"btrl",left:"lrbt"},position:"bottom",margin:8,padding:0},I=(_,w,x)=>{const A=typeof _!="object"||_ instanceof HTMLElement?An({reference:_,popper:w},x):_;return{update(k=A){const{reference:R,popper:M}=Object.assign(A,k);if(!M||!R)throw new Error("Popper- or reference-element missing.");return((X,K,te)=>{const{container:$,arrow:q,margin:O,padding:L,position:V,variantFlipOrder:J,positionFlipOrder:re}=An(An({container:document.documentElement.getBoundingClientRect()},P),te),{left:ae,top:j}=K.style;K.style.left="0",K.style.top="0";const ue=X.getBoundingClientRect(),Q=K.getBoundingClientRect(),B={t:ue.top-Q.height-O,b:ue.bottom+O,r:ue.right+O,l:ue.left-Q.width-O},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 Fe=B[Ee];const[He,qe]=Se?["top","left"]:["left","top"],[et,Be]=Se?[Q.height,Q.width]:[Q.width,Q.height],[Ge,tt]=Se?[de,ve]:[ve,de],[rt,lt]=Se?[se,fe]:[fe,se];if(!(Fe<rt||Fe+et+L>Ge))for(const Nt of ne){let Wt=H[(Se?"v":"h")+Nt];if(!(Wt<lt||Wt+Be+L>tt)){if(Wt-=Q[qe],Fe-=Q[He],K.style[qe]=`${Wt}px`,K.style[He]=`${Fe}px`,q){const dt=Se?ue.width/2:ue.height/2,Pt=Be/2,_t=dt>Pt,gt=Wt+{s:_t?Pt:dt,m:Pt,e:_t?Pt:Be-dt}[Nt],hr=Fe+{t:et,b:0,r:0,l:et}[Ee];q.style[qe]=`${gt}px`,q.style[He]=`${hr}px`}return Ee+Nt}}}return K.style.left=ae,K.style.top=j,null})(R,M,A)}}},C=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({},C.DEFAULT_OPTIONS),w);const{swatches:x,components:A,theme:k,sliders:R,lockOpacity:M,padding:X}=w;["nano","monolith"].includes(k)&&!R&&(w.sliders="h"),A.interaction||(A.interaction={});const{preview:K,opacity:te,hue:$,palette:q}=A;A.opacity=!M&&te,A.palette=q||K||te||$,this._preBuild(),this._buildComponents(),this._bindEvents(),this._finalBuild(),x&&x.length&&x.forEach(J=>this.addSwatch(J));const{button:O,app:L}=this._root;this._nanopop=I(O,L,{margin:X}),O.setAttribute("role","button"),O.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 x of["el","container"])w[x]=d(w[x]);this._root=(x=>{const{components:A,useAsButton:k,inline:R,appClass:M,theme:X,lockOpacity:K}=x.options,te=L=>L?"":'style="display:none" hidden',$=L=>x._t(L),q=c(`
|
|
<div :ref="root" class="pickr">
|
|
|
|
${k?"":'<button type="button" :ref="button" class="pcr-button"></button>'}
|
|
|
|
<div :ref="app" class="pcr-app ${M||""}" data-theme="${X}" ${R?'style="position: unset"':""} aria-label="${$("ui:dialog")}" role="window">
|
|
<div class="pcr-selection" ${te(A.palette)}>
|
|
<div :obj="preview" class="pcr-color-preview" ${te(A.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(A.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(A.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 ${A.palette?"":"pcr-last"}" :ref="swatches"></div>
|
|
|
|
<div :obj="interaction" class="pcr-interaction" ${te(Object.keys(A.interaction).length)}>
|
|
<input :ref="result" class="pcr-result" type="text" spellcheck="false" ${te(A.interaction.input)} aria-label="${$("aria:input")}">
|
|
|
|
<input :arr="options" class="pcr-type" data-type="HEXA" value="${K?"HEX":"HEXA"}" type="button" ${te(A.interaction.hex)}>
|
|
<input :arr="options" class="pcr-type" data-type="RGBA" value="${K?"RGB":"RGBA"}" type="button" ${te(A.interaction.rgba)}>
|
|
<input :arr="options" class="pcr-type" data-type="HSLA" value="${K?"HSL":"HSLA"}" type="button" ${te(A.interaction.hsla)}>
|
|
<input :arr="options" class="pcr-type" data-type="HSVA" value="${K?"HSV":"HSVA"}" type="button" ${te(A.interaction.hsva)}>
|
|
<input :arr="options" class="pcr-type" data-type="CMYK" value="CMYK" type="button" ${te(A.interaction.cmyk)}>
|
|
|
|
<input :ref="save" class="pcr-save" value="${$("btn:save")}" type="button" ${te(A.interaction.save)} aria-label="${$("aria:btn:save")}">
|
|
<input :ref="cancel" class="pcr-cancel" value="${$("btn:cancel")}" type="button" ${te(A.interaction.cancel)} aria-label="${$("aria:btn:cancel")}">
|
|
<input :ref="clear" class="pcr-clear" value="${$("btn:clear")}" type="button" ${te(A.interaction.clear)} aria-label="${$("aria:btn:clear")}">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`),O=q.interaction;return O.options.find(L=>!L.hidden&&!L.classList.add("active")),O.type=()=>O.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,x=this._root;if(w.container.removeChild(x.root),w.inline){const A=w.el.parentElement;w.el.nextSibling?A.insertBefore(x.app,w.el.nextSibling):A.appendChild(x.app)}else w.container.appendChild(x.app);w.useAsButton?w.inline&&w.el.remove():w.el.parentNode.replaceChild(x.root,w.el),w.disabled&&this.disable(),w.comparison||(x.button.style.transition="none",w.useAsButton||(x.preview.lastColor.style.transition="none")),this.hide()}_buildComponents(){const w=this,x=this.options.components,A=(w.options.sliders||"v").repeat(2),[k,R]=A.match(/^[vh]+$/g)?A:[],M=()=>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(!x.palette)return;const $=M(),{_root:q,options:O}=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}))
|
|
`,O.comparison?O.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:R==="v"?"h":"v",element:w._root.hue.picker,wrapper:w._root.hue.slider,onstop:()=>w._emit("changestop","slider",w),onchange(K){if(!x.hue||!x.palette)return;const te=M();w._recalc&&(te.h=360*K),this.element.style.backgroundColor=`hsl(${te.h}, 100%, 50%)`,X.palette.trigger()}}),opacity:G({lock:k==="v"?"h":"v",element:w._root.opacity.picker,wrapper:w._root.opacity.slider,onstop:()=>w._emit("changestop","slider",w),onchange(K){if(!x.opacity||!x.palette)return;const te=M();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:x}=this,A=[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()&&!x.showAlways&&this.hide()}),o(w.interaction.result,["keyup","input"],k=>{this.setColor(k.target.value,!0)&&!this._initializingActive&&(this._emit("change",this._color,"input",this),this._emit("changestop","input",this)),k.stopImmediatePropagation()}),o(w.interaction.result,["focus","blur"],k=>{this._recalc=k.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(!x.showAlways){const k=x.closeWithKey;A.push(o(w.button,"click",()=>this.isOpen()?this.hide():this.show()),o(document,"keyup",R=>this.isOpen()&&(R.key===k||R.code===k)&&this.hide()),o(document,["touchstart","mousedown"],R=>{this.isOpen()&&!l(R).some(M=>M===w.app||M===w.button)&&this.hide()},{capture:!0}))}if(x.adjustableNumbers){const k={rgba:[255,255,255,1],hsva:[360,100,100,1],hsla:[360,100,100,1],cmyk:[100,100,100,100]};h(w.interaction.result,(R,M,X)=>{const K=k[this.getColorRepresentation().toLowerCase()];if(K){const te=K[X],$=R+(te>=100?1e3*M:M);return $<=0?0:Number(($<te?$:te).toPrecision(3))}return R})}if(x.autoReposition&&!x.inline){let k=null;const R=this;A.push(o(window,["scroll","resize"],()=>{R.isOpen()&&(x.closeOnScroll&&R.hide(),k===null?(k=setTimeout(()=>k=null,100),requestAnimationFrame(function M(){R._rePositioningPicker(),k!==null&&requestAnimationFrame(M)})):(clearTimeout(k),k=setTimeout(()=>k=null,100)))},{capture:!0}))}this._eventBindings=A}_rePositioningPicker(){const{options:w}=this;if(!w.inline&&!this._nanopop.update({container:document.body.getBoundingClientRect(),position:w.position})){const x=this._root.app,A=x.getBoundingClientRect();x.style.top=(window.innerHeight-A.height)/2+"px",x.style.left=(window.innerWidth-A.width)/2+"px"}}_updateOutput(w){const{_root:x,_color:A,options:k}=this;if(x.interaction.type()){const R=`to${x.interaction.type().getAttribute("data-type")}`;x.interaction.result.value=typeof A[R]=="function"?A[R]().toString(k.outputPrecision):""}!this._initializingActive&&this._recalc&&this._emit("change",A,w,this)}_clearColor(w=!1){const{_root:x,options:A}=this;A.useAsButton||x.button.style.setProperty("--pcr-color","rgba(0, 0, 0, 0.15)"),x.button.classList.add("clear"),A.showAlways||this.hide(),this._lastColor=null,this._initializingActive||w||(this._emit("save",null),this._emit("clear"))}_parseLocalColor(w){const{values:x,type:A,a:k}=z(w),{lockOpacity:R}=this.options,M=k!==void 0&&k!==1;return x&&x.length===3&&(x[3]=void 0),{values:!x||R&&M?null:x,type:A}}_t(w){return this.options.i18n[w]||C.I18N_DEFAULTS[w]}_emit(w,...x){this._eventListener[w].forEach(A=>A(...x,this))}on(w,x){return this._eventListener[w].push(x),this}off(w,x){const A=this._eventListener[w]||[],k=A.indexOf(x);return~k&&A.splice(k,1),this}addSwatch(w){const{values:x}=this._parseLocalColor(w);if(x){const{_swatchColors:A,_root:k}=this,R=W(...x),M=u(`<button type="button" style="--pcr-color: ${R.toRGBA().toString(0)}" aria-label="${this._t("btn:swatch")}"/>`);return k.swatches.appendChild(M),A.push({el:M,color:R}),this._eventBindings.push(o(M,"click",()=>{this.setHSVA(...R.toHSVA(),!0),this._emit("swatchselect",R),this._emit("change",R,"swatch",this)})),!0}return!1}removeSwatch(w){const x=this._swatchColors[w];if(x){const{el:A}=x;return this._root.swatches.removeChild(A),this._swatchColors.splice(w,1),!0}return!1}applyColor(w=!1){const{preview:x,button:A}=this._root,k=this._color.toRGBA().toString(0);return x.lastColor.style.setProperty("--pcr-color",k),this.options.useAsButton||A.style.setProperty("--pcr-color",k),A.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:x}=this._root;w.parentElement&&w.parentElement.removeChild(w),x.parentElement.removeChild(x),Object.keys(this).forEach(A=>this[A]=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,x=0,A=0,k=1,R=!1){const M=this._recalc;if(this._recalc=!1,w<0||w>360||x<0||x>100||A<0||A>100||k<0||k>1)return!1;this._color=W(w,x,A,k);const{hue:X,opacity:K,palette:te}=this._components;return X.update(w/360),K.update(k),te.update(x/100,1-A/100),R||this.applyColor(),M&&this._updateOutput(),this._recalc=M,!0}setColor(w,x=!1){if(w===null)return this._clearColor(x),!0;const{values:A,type:k}=this._parseLocalColor(w);if(A){const R=k.toUpperCase(),{options:M}=this._root.interaction,X=M.find(K=>K.getAttribute("data-type")===R);if(X&&!X.hidden)for(const K of M)K.classList[K===X?"add":"remove"]("active");return!!this.setHSVA(...A,x)&&this.setColorRepresentation(R)}return!1}setColorRepresentation(w){return w=w.toUpperCase(),!!this._root.interaction.options.find(x=>x.getAttribute("data-type").startsWith(w)&&!x.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 S=C;return fi(S,"utils",i),fi(S,"version","1.9.1"),fi(S,"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(S,"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(S,"create",w=>new C(w)),n=n.default})())})(Mb);var lX=Zv(Mb.exports),Ub={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(D){if(D==="")return null;const F=Number(D);if(!Number.isNaN(F)&&F!==1/0)return F;const z=v.reduce((U,G)=>{if(U)return U;const ee=c(D,G,!0);return ee.isValid()?ee:null},null);if(z)return new Date(z.valueOf());const W=h[D];return W!==void 0?W:D},E=o.parse(g.parserOptions).on("data",D=>{y.addRow(D.map(b))}).on("end",()=>{E.emit("worksheet",y)});E.on("worksheet",m).on("error",p),f.pipe(E)})}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:E}=g,D=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?E?c.utc(W).format(b):c(W).format(b):E?c.utc(W).format():c(W).format();if(W.error)return W.error;if(typeof W=="object")return JSON.stringify(W)}return W}),F=g.includeEmptyRows===void 0||g.includeEmptyRows;let z=1;y&&y.eachRow((W,U)=>{if(F)for(;z++<U-1;)v.write([]);const{values:G}=W;G.shift(),v.write(G.map(D)),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 E=f&&f.fill||g&&g.fill;E&&(m.fill=E);const D=f&&f.protection||g&&g.protection;return D&&(m.protection=D),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 E=l.findCellAt(h,v,d.col);return!(!E||!E.mark)&&(f[b]=v,E.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 E=[];for(m=f.top;m<=f.bottom;m++){const D=l.findCellAt(h,m,v);if(!D||!D.mark)return!1;E.push(D)}f[b]=v;for(let D=0;D<E.length;D++)E[D].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,E)=>{const D=(E.header?1:E.headers&&E.headers.length)||0;return Math.max(b,D)},0);let y=1;const v=this._columns=[];p.forEach(b=>{const E=new c(this,y++,!1);v.push(E),E.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,E=new Array(b>2?b-2:0),D=2;D<b;D++)E[D-2]=arguments[D];if(E.length>0)for(let U=0;U<v;U++){const G=[p,y];E.forEach(P=>{G.push(P[U]||null)});const ee=this.getRow(U+1);ee.splice.apply(ee,G)}else this._rows.forEach(U=>{U&&U.splice(p,y)});const F=E.length-y,z=p+y,W=this._columns.length;if(F<0)for(let U=p+E.length;U<=W;U++)this.getColumn(U).defn=this.getColumn(U-F).defn;else if(F>0)for(let U=W;U>=z;U--)this.getColumn(U+F).defn=this.getColumn(U).defn;for(let U=p;U<p+E.length;U++)this.getColumn(U).defn=null;this.workbook.definedNames.spliceColumns(this.name,p,y,E.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:E}=b;p[E]||(p[E]=!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),E=this.getRow(y);E.style=m(b.style),b.eachCell({includeEmpty:v},(D,F)=>{E.getCell(F).style=m(D.style)}),E.height=b.height}duplicateRow(p,y){let v=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const b=this._rows[p-1],E=new Array(y).fill(b.values);this.spliceRows(p+1,v?0:y,...E);for(let D=0;D<y;D++){const F=this._rows[p+D];F.style=b.style,F.height=b.height,b.eachCell({includeEmpty:!0},(z,W)=>{F.getCell(W).style=z.style})}}spliceRows(p,y){const v=p+y;for(var b=arguments.length,E=new Array(b>2?b-2:0),D=2;D<b;D++)E[D-2]=arguments[D];const F=E.length,z=F-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},(P,I)=>{ee.getCell(I).style=P.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},(P,I)=>{if(ee.getCell(I).style=P.style,P._value.constructor.name==="MergeValue"){const S=this.getRow(P._row._number+F).getCell(I),C=P._value._master,_=this.getRow(C._row._number+F).getCell(C._column._number);S.merge(_)}})}else this._rows[U+z-1]=void 0;for(U=0;U<F;U++){const ee=this.getRow(p+U);ee.style={},ee.values=E[U]}this.workbook.definedNames.spliceRows(this.name,p,y,F)}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 E=p.left;E<=p.right;E++)(b>p.top||E>p.left)&&this.getCell(b,E).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 E=b.top;E<=b.bottom;E++)for(let D=b.left;D<=b.right;D++){const F=this.findCell(E,D);F&&(F.type===l.ValueType.Merge?this._unMergeMaster(F.master):this._merges[F.address]&&this._unMergeMaster(F))}}fillFormula(p,y,v){let b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const E=o.decode(p),{top:D,left:F,bottom:z,right:W}=E,U=W-F+1,G=o.encodeAddress(D,F),ee=b==="shared";let P;P=typeof v=="function"?v:Array.isArray(v)?Array.isArray(v[0])?(S,C)=>v[S-D][C-F]:(S,C)=>v[(S-D)*U+(C-F)]:()=>{};let I=!0;for(let S=D;S<=z;S++)for(let C=F;C<=W;C++)I?(this.getCell(S,C).value={shareType:b,formula:y,ref:p,result:P(S,C)},I=!1):this.getCell(S,C).value=ee?{sharedFormula:G,result:P(S,C)}:P(S,C)}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 E=b&&b.model;E&&(v.expand(E.number,E.min,E.number,E.max),y.push(E))}),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],E=v[2].toUpperCase(),D=v[3],F=v[4];if(E.length>3||E.length===3&&E>"XFD")return f;let z=a.l2n(E),W=parseInt(F,10);return b||(z+=h.col-d.col),D||(W+=h.row-d.row),(g||"")+(b||"")+a.n2l(z)+(D||"")+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(E=>{E.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=""";break;case"&":d="&";break;case"'":d="'";break;case"<":d="<";break;case">":d=">";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=""";break;case 38:f="&";break;case 39:f="'";break;case 60:f="<";break;case 62:f=">";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"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":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 st!="undefined"?st: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 E=0;v.sheets.forEach(D=>{if(D.pageSetup&&D.pageSetup.printArea&&D.pageSetup.printArea.split("&&").forEach(F=>{const z=F.split(":"),W={name:"_xlnm.Print_Area",ranges:[`'${D.name}'!$${z[0]}:$${z[1]}`],localSheetId:E};b.push(W)}),D.pageSetup&&(D.pageSetup.printTitlesRow||D.pageSetup.printTitlesColumn)){const F=[];if(D.pageSetup.printTitlesColumn){const W=D.pageSetup.printTitlesColumn.split(":");F.push(`'${D.name}'!$${W[0]}:$${W[1]}`)}if(D.pageSetup.printTitlesRow){const W=D.pageSetup.printTitlesRow.split(":");F.push(`'${D.name}'!$${W[0]}:$${W[1]}`)}const z={name:"_xlnm.Print_Titles",ranges:F,localSheetId:E};b.push(z)}E++}),b.length&&(v.definedNames=v.definedNames.concat(b)),(v.media||[]).forEach((D,F)=>{D.name=D.type+(F+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),{}),E=[];let D,F=0;(v.sheets||[]).forEach(W=>{const U=b[W.rId];U&&(D=v.worksheetHash["xl/"+U.Target.replace(/^(\s|\/xl\/)+/,"")],D&&(D.name=W.name,D.id=W.id,D.state=W.state,E[F++]=D))});const z=[];a.each(v.definedNames,W=>{if(W.name==="_xlnm.Print_Area"){if(D=E[W.localSheetId],D){D.pageSetup||(D.pageSetup={});const U=o.decodeEx(W.ranges[0]);D.pageSetup.printArea=D.pageSetup.printArea?`${D.pageSetup.printArea}&&${U.dimensions}`:U.dimensions}}else if(W.name==="_xlnm.Print_Titles"){if(D=E[W.localSheetId],D){D.pageSetup||(D.pageSetup={});const U=W.ranges.join(","),G=/\$/g,ee=/\$\d+:\$\d+/,P=U.match(ee);if(P&&P.length){const C=P[0];D.pageSetup.printTitlesRow=C.replace(G,"")}const I=/\$[A-Z]+:\$[A-Z]+/,S=U.match(I);if(S&&S.length){const C=S[0];D.pageSetup.printTitlesColumn=C.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=(E=>{if(E.formulae&&E.formulae[0])return E.formulae[0];const D=new s(E.ref),{tl:F}=D;switch(E.operator){case"containsText":return`NOT(ISERROR(SEARCH("${E.text}",${F})))`;case"containsBlanks":return`LEN(TRIM(${F}))=0`;case"notContainsBlanks":return`LEN(TRIM(${F}))>0`;case"containsErrors":return`ISERROR(${F})`;case"notContainsErrors":return`NOT(ISERROR(${F}))`;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=(E=>{if(E.formulae&&E.formulae[0])return E.formulae[0];const D=new s(E.ref),{tl:F}=D;switch(E.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${F},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${F},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${F},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${F},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${F},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${F},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${F},1)=TODAY()-1`;case"today":return`FLOOR(${F},1)=TODAY()`;case"tomorrow":return`FLOOR(${F},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${F},1)<=6,FLOOR(${F},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${F})=MONTH(EDATE(TODAY(),0-1)),YEAR(${F})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${F})=MONTH(TODAY()),YEAR(${F})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${F})=MONTH(EDATE(TODAY(),0+1)),YEAR(${F})=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,E)=>({address:E,dataValidation:b,marked:!1})).sort((b,E)=>a.strcmp(b.address,E.address)),y=a.keyBy(p,"address"),v=(b,E,D)=>{for(let F=0;F<E;F++){const z=s.encodeAddress(b.row+F,D);if(!m[z]||!a.isEqual(m[b.address],m[z]))return!1}return!0};return p.map(b=>{if(!b.marked){const E=s.decodeEx(b.address);if(E.dimensions)return y[E.dimensions].marked=!0,$o(An({},b.dataValidation),{sqref:b.address});let D=1,F=s.encodeAddress(E.row+D,E.col);for(;m[F]&&a.isEqual(b.dataValidation,m[F]);)D++,F=s.encodeAddress(E.row+D,E.col);let z=1;for(;v(E,D,E.col+z);)z++;for(let W=0;W<D;W++)for(let U=0;U<z;U++)F=s.encodeAddress(E.row+W,E.col+U),y[F].marked=!0;if(D>1||z>1){const W=E.row+(D-1),U=E.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"),E=e("./sheet-view-xform"),D=e("./sheet-protection-xform"),F=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"),P=e("./table-part-xform"),I=e("./row-breaks-xform"),S=e("./header-footer-xform"),C=e("./cf/conditional-formattings-xform"),_=e("./ext-lst-xform"),w=(A,k)=>{if(!k||!k.length)return A;if(!A||!A.length)return k;const R={},M={};return A.forEach(X=>{R[X.ref]=X,X.rules.forEach(K=>{const{x14Id:te}=K;te&&(M[te]=K)})}),k.forEach(X=>{X.rules.forEach(K=>{const te=M[K.x14Id];te?(($,q)=>{Object.keys(q).forEach(O=>{const L=$[O],V=q[O];L===void 0&&V!==void 0&&($[O]=V)})})(te,K):R[X.ref]?R[X.ref].rules.push(K):A.push({ref:X.ref,rules:[K]})})}),A};class x extends l{constructor(k){super();const{maxRows:R,maxCols:M,ignoreNodes:X}=k||{};this.ignoreNodes=X||[],this.map={sheetPr:new v,dimension:new g,sheetViews:new d({tag:"sheetViews",count:!1,childXform:new E}),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:M}),maxItems:R}),autoFilter:new U,mergeCells:new d({tag:"mergeCells",count:!0,childXform:new p}),rowBreaks:new I,hyperlinks:new d({tag:"hyperlinks",count:!1,childXform:new m}),pageMargins:new F,dataValidations:new y,pageSetup:new z,headerFooter:new S,printOptions:new W,picture:new G,drawing:new ee,sheetProtection:new D,tableParts:new d({tag:"tableParts",count:!0,childXform:new P}),conditionalFormatting:new C,extLst:new _}}prepare(k,R){R.merges=new c,k.hyperlinks=R.hyperlinks=[],k.comments=R.comments=[],R.formulae={},R.siFormulae=0,this.map.cols.prepare(k.cols,R),this.map.sheetData.prepare(k.rows,R),this.map.conditionalFormatting.prepare(k.conditionalFormattings,R),k.mergeCells=R.merges.mergeCells;const M=k.rels=[];function X($){return"rId"+($.length+1)}if(k.hyperlinks.forEach($=>{const q=X(M);$.rId=q,M.push({Id:q,Type:u.Hyperlink,Target:$.target,TargetMode:"External"})}),k.comments.length>0){const $={Id:X(M),Type:u.Comments,Target:`../comments${k.id}.xml`};M.push($);const q={Id:X(M),Type:u.VmlDrawing,Target:`../drawings/vmlDrawing${k.id}.vml`};M.push(q),k.comments.forEach(O=>{O.refAddress=o.decodeAddress(O.ref)}),R.commentRefs.push({commentName:"comments"+k.id,vmlDrawing:"vmlDrawing"+k.id})}const K=[];let te;k.media.forEach($=>{if($.type==="background"){const q=X(M);te=R.media[$.imageId],M.push({Id:q,Type:u.Image,Target:`../media/${te.name}.${te.extension}`}),k.background={rId:q},k.image=R.media[$.imageId]}else if($.type==="image"){let{drawing:q}=k;te=R.media[$.imageId],q||(q=k.drawing={rId:X(M),name:"drawing"+ ++R.drawingsCount,anchors:[],rels:[]},R.drawings.push(q),M.push({Id:q.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${q.name}.xml`}));let O=this.preImageId===$.imageId?K[$.imageId]:K[q.rels.length];O||(O=X(q.rels),K[q.rels.length]=O,q.rels.push({Id:O,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${te.name}.${te.extension}`}));const L={picture:{rId:O},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)}}),k.tables.forEach($=>{const q=X(M);$.rId=q,M.push({Id:q,Type:u.Table,Target:"../tables/"+$.target}),$.columns.forEach(O=>{const{style:L}=O;L&&(O.dxfId=R.styles.addDxfStyle(L))})}),this.map.extLst.prepare(k,R)}render(k,R){k.openXml(s.StdDocAttributes),k.openNode("worksheet",x.WORKSHEET_ATTRIBUTES);const M=R.properties?{defaultRowHeight:R.properties.defaultRowHeight,dyDescent:R.properties.dyDescent,outlineLevelCol:R.properties.outlineLevelCol,outlineLevelRow:R.properties.outlineLevelRow}:void 0;R.properties&&R.properties.defaultColWidth&&(M.defaultColWidth=R.properties.defaultColWidth);const X={outlineProperties:R.properties&&R.properties.outlineProperties,tabColor:R.properties&&R.properties.tabColor,pageSetup:R.pageSetup&&R.pageSetup.fitToPage?{fitToPage:R.pageSetup.fitToPage}:void 0},K=R.pageSetup&&R.pageSetup.margins,te={showRowColHeaders:R.pageSetup&&R.pageSetup.showRowColHeaders,showGridLines:R.pageSetup&&R.pageSetup.showGridLines,horizontalCentered:R.pageSetup&&R.pageSetup.horizontalCentered,verticalCentered:R.pageSetup&&R.pageSetup.verticalCentered},$=R.sheetProtection;this.map.sheetPr.render(k,X),this.map.dimension.render(k,R.dimensions),this.map.sheetViews.render(k,R.views),this.map.sheetFormatPr.render(k,M),this.map.cols.render(k,R.cols),this.map.sheetData.render(k,R.rows),this.map.sheetProtection.render(k,$),this.map.autoFilter.render(k,R.autoFilter),this.map.mergeCells.render(k,R.mergeCells),this.map.conditionalFormatting.render(k,R.conditionalFormattings),this.map.dataValidations.render(k,R.dataValidations),this.map.hyperlinks.render(k,R.hyperlinks),this.map.printOptions.render(k,te),this.map.pageMargins.render(k,K),this.map.pageSetup.render(k,R.pageSetup),this.map.headerFooter.render(k,R.headerFooter),this.map.rowBreaks.render(k,R.rowBreaks),this.map.drawing.render(k,R.drawing),this.map.picture.render(k,R.background),this.map.tableParts.render(k,R.tables),this.map.extLst.render(k,R),R.rels&&R.rels.forEach(q=>{q.Type===u.VmlDrawing&&k.leafNode("legacyDrawing",{"r:id":q.Id})}),k.closeNode()}parseOpen(k){return this.parser?(this.parser.parseOpen(k),!0):k.name==="worksheet"?(a.each(this.map,R=>{R.reset()}),!0):(this.map[k.name]&&!this.ignoreNodes.includes(k.name)&&(this.parser=this.map[k.name],this.parser.parseOpen(k)),!0)}parseText(k){this.parser&&this.parser.parseText(k)}parseClose(k){if(this.parser)return this.parser.parseClose(k)||(this.parser=void 0),!0;switch(k){case"worksheet":{const R=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(R.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(R.outlineProperties=this.map.sheetPr.model.outlineProperties);const M={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(M,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:R,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(k,R){const M=(k.relationships||[]).reduce((K,te)=>{if(K[te.Id]=te,te.Type===u.Comments&&(k.comments=R.comments[te.Target].comments),te.Type===u.VmlDrawing&&k.comments&&k.comments.length){const $=R.vmlDrawings[te.Target].comments;k.comments.forEach((q,O)=>{q.note=Object.assign({},q.note,$[O])})}return K},{});if(R.commentsMap=(k.comments||[]).reduce((K,te)=>(te.ref&&(K[te.ref]=te),K),{}),R.hyperlinkMap=(k.hyperlinks||[]).reduce((K,te)=>(te.rId&&(K[te.address]=M[te.rId].Target),K),{}),R.formulae={},k.rows=k.rows&&k.rows.filter(Boolean)||[],k.rows.forEach(K=>{K.cells=K.cells&&K.cells.filter(Boolean)||[]}),this.map.cols.reconcile(k.cols,R),this.map.sheetData.reconcile(k.rows,R),this.map.conditionalFormatting.reconcile(k.conditionalFormattings,R),k.media=[],k.drawing){const K=M[k.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(K){const te=K[1];R.drawings[te].anchors.forEach($=>{if($.medium){const q={type:"image",imageId:$.medium.index,range:$.range,hyperlinks:$.picture.hyperlinks};k.media.push(q)}})}}const X=k.background&&M[k.background.rId];if(X){const K=X.Target.split("/media/")[1],te=R.mediaIndex&&R.mediaIndex[K];te!==void 0&&k.media.push({type:"background",imageId:te})}k.tables=(k.tables||[]).map(K=>{const te=M[K.rId];return R.tables[te.Target]}),delete k.relationships,delete k.hyperlinks,delete k.comments}}x.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=x},{"../../../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(E=>{v.writeXml(E)}),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(E=>{v.writeXml(E)}),v.closeNode(),v.openNode("fills",{count:b.fills.length}),b.fills.forEach(E=>{v.writeXml(E)}),v.closeNode(),v.openNode("borders",{count:b.borders.length}),b.borders.forEach(E=>{v.writeXml(E)}),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(E=>{v.writeXml(E)}),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=(E,D)=>{D.model&&D.model.length&&(this.model[E]=D.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 E=this.index.numFmt;this.model.numFmts.forEach(D=>{E[D.id]=D.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 E={};if(b=b||a.ValueType.Number,v.numFmt)E.numFmtId=this._addNumFmtStr(v.numFmt);else switch(b){case a.ValueType.Number:E.numFmtId=this._addNumFmtStr("General");break;case a.ValueType.Date:E.numFmtId=this._addNumFmtStr("mm-dd-yy")}v.font&&(E.fontId=this._addFont(v.font)),v.border&&(E.borderId=this._addBorder(v.border)),v.fill&&(E.fillId=this._addFill(v.fill)),v.alignment&&(E.alignment=v.alignment),v.protection&&(E.protection=v.protection);const D=this._addStyle(E);return this.weakMap&&this.weakMap.set(v,D),D}getStyleModel(v){const b=this.model.styles[v];if(!b)return null;let E=this.index.model[v];if(E)return E;if(E=this.index.model[v]={},b.numFmtId){const F=this.index.numFmt[b.numFmtId]||f.getDefaultFmtCode(b.numFmtId);F&&(E.numFmt=F)}function D(F,z,W){if(W||W===0){const U=z[W];U&&(E[F]=U)}}return D("font",this.model.fonts,b.fontId),D("border",this.model.borders,b.borderId),D("fill",this.model.fills,b.fillId),b.alignment&&(E.alignment=b.alignment),b.protection&&(E.protection=b.protection),E}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 E=this.index.style[b];return E===void 0&&(E=this.index.style[b]=this.model.styles.length,this.model.styles.push(b)),E}_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 E=this.map.numFmt.toXml({id:b,formatCode:v});return this.model.numFmts.push(E),b}_addFont(v){const b=this.map.font.toXml(v);let E=this.index.font[b];return E===void 0&&(E=this.index.font[b]=this.model.fonts.length,this.model.fonts.push(b)),E}_addBorder(v){const b=this.map.border.toXml(v);let E=this.index.border[b];return E===void 0&&(E=this.index.border[b]=this.model.borders.length,this.model.borders.push(b)),E}_addFill(v){const b=this.map.fill.toXml(v);let E=this.index.fill[b];return E===void 0&&(E=this.index.fill[b]=this.model.fills.length,this.model.fills.push(b)),E}}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"),E=e("./xform/core/app-xform"),D=e("./xform/book/workbook-xform"),F=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 P{constructor(S){this.workbook=S}async readFile(S,C){if(!await h.fs.exists(S))throw new Error("File not found: "+S);const _=s.createReadStream(S);try{const w=await this.read(_,C);return _.close(),w}catch(w){throw _.close(),w}}parseRels(S){return new v().parseStream(S)}parseWorkbook(S){return new D().parseStream(S)}parseSharedStrings(S){return new y().parseStream(S)}reconcile(S,C){const _=new D,w=new F(C),x=new z,A=new W;_.reconcile(S);const k={media:S.media,mediaIndex:S.mediaIndex};Object.keys(S.drawings).forEach(X=>{const K=S.drawings[X],te=S.drawingRels[X];te&&(k.rels=te.reduce(($,q)=>($[q.Id]=q,$),{}),(K.anchors||[]).forEach($=>{const q=$.picture&&$.picture.hyperlinks;q&&k.rels[q.rId]&&(q.hyperlink=k.rels[q.rId].Target,delete q.rId)}),x.reconcile(K,k))});const R={styles:S.styles};Object.values(S.tables).forEach(X=>{A.reconcile(X,R)});const M={styles:S.styles,sharedStrings:S.sharedStrings,media:S.media,mediaIndex:S.mediaIndex,date1904:S.properties&&S.properties.date1904,drawings:S.drawings,comments:S.comments,tables:S.tables,vmlDrawings:S.vmlDrawings};S.worksheets.forEach(X=>{X.relationships=S.worksheetRels[X.sheetNo],w.reconcile(X,M)}),delete S.worksheetHash,delete S.worksheetRels,delete S.globalRels,delete S.sharedStrings,delete S.workbookRels,delete S.sheetDefs,delete S.styles,delete S.mediaIndex,delete S.drawings,delete S.drawingRels,delete S.vmlDrawings}async _processWorksheetEntry(S,C,_,w,x){const A=new F(w),k=await A.parseStream(S);k.sheetNo=_,C.worksheetHash[x]=k,C.worksheets.push(k)}async _processCommentEntry(S,C,_){const w=new U,x=await w.parseStream(S);C.comments[`../${_}.xml`]=x}async _processTableEntry(S,C,_){const w=new W,x=await w.parseStream(S);C.tables[`../tables/${_}.xml`]=x}async _processWorksheetRelsEntry(S,C,_){const w=new v,x=await w.parseStream(S);C.worksheetRels[_]=x}async _processMediaEntry(S,C,_){const w=_.lastIndexOf(".");if(w>=1){const x=_.substr(w+1),A=_.substr(0,w);await new Promise((k,R)=>{const M=new d;M.on("finish",()=>{C.mediaIndex[_]=C.media.length,C.mediaIndex[A]=C.media.length;const X={type:"image",name:A,extension:x,buffer:M.toBuffer()};C.media.push(X),k()}),S.on("error",X=>{R(X)}),S.pipe(M)})}}async _processDrawingEntry(S,C,_){const w=new z,x=await w.parseStream(S);C.drawings[_]=x}async _processDrawingRelsEntry(S,C,_){const w=new v,x=await w.parseStream(S);C.drawingRels[_]=x}async _processVmlDrawingEntry(S,C,_){const w=new G,x=await w.parseStream(S);C.vmlDrawings[`../drawings/${_}.vml`]=x}async _processThemeEntry(S,C,_){await new Promise((w,x)=>{const A=new d;S.on("error",x),A.on("error",x),A.on("finish",()=>{C.themes[_]=A.read().toString(),w()}),S.pipe(A)})}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(S,C){!S[Symbol.asyncIterator]&&S.pipe&&(S=S.pipe(new c));const _=[];for await(const w of S)_.push(w);return this.load(o.concat(_),C)}async load(S,C){let _;_=C&&C.base64?o.from(S.toString(),"base64"):S;const w={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},x=await u.loadAsync(_);for(const A of Object.values(x.files))if(!A.dir){let k,R=A.name;if(R[0]==="/"&&(R=R.substr(1)),R.match(/xl\/media\//)||R.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))k=new c,k.write(await A.async("nodebuffer"));else{let M;k=new c({writableObjectMode:!0,readableObjectMode:!0}),M=a.browser?g(await A.async("nodebuffer")):await A.async("string");const X=16384;for(let K=0;K<M.length;K+=X)k.write(M.substring(K,K+X))}switch(k.end(),R){case"_rels/.rels":w.globalRels=await this.parseRels(k);break;case"xl/workbook.xml":{const M=await this.parseWorkbook(k);w.sheets=M.sheets,w.definedNames=M.definedNames,w.views=M.views,w.properties=M.properties,w.calcProperties=M.calcProperties;break}case"xl/_rels/workbook.xml.rels":w.workbookRels=await this.parseRels(k);break;case"xl/sharedStrings.xml":w.sharedStrings=new y,await w.sharedStrings.parseStream(k);break;case"xl/styles.xml":w.styles=new m,await w.styles.parseStream(k);break;case"docProps/app.xml":{const M=new E,X=await M.parseStream(k);w.company=X.company,w.manager=X.manager;break}case"docProps/core.xml":{const M=new p,X=await M.parseStream(k);Object.assign(w,X);break}default:{let M=R.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(M){await this._processWorksheetEntry(k,w,M[1],C,R);break}if(M=R.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),M){await this._processWorksheetRelsEntry(k,w,M[1]);break}if(M=R.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),M){await this._processThemeEntry(k,w,M[1]);break}if(M=R.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),M){await this._processMediaEntry(k,w,M[1]);break}if(M=R.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),M){await this._processDrawingEntry(k,w,M[1]);break}if(M=R.match(/xl\/(comments\d+)[.]xml/),M){await this._processCommentEntry(k,w,M[1]);break}if(M=R.match(/xl\/tables\/(table\d+)[.]xml/),M){await this._processTableEntry(k,w,M[1]);break}if(M=R.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),M){await this._processDrawingRelsEntry(k,w,M[1]);break}if(M=R.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),M){await this._processVmlDrawingEntry(k,w,M[1]);break}}}}return this.reconcile(w,C),this.workbook.model=w,this.workbook}async addMedia(S,C){await Promise.all(C.media.map(async _=>{if(_.type==="image"){const w=`xl/media/${_.name}.${_.extension}`;if(_.filename){const x=await function(A,k){return new Promise((R,M)=>{s.readFile(A,k,(X,K)=>{X?M(X):R(K)})})}(_.filename);return S.append(x,{name:w})}if(_.buffer)return S.append(_.buffer,{name:w});if(_.base64){const x=_.base64,A=x.substring(x.indexOf(",")+1);return S.append(A,{name:w,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(S,C){const _=new z,w=new v;C.worksheets.forEach(x=>{const{drawing:A}=x;if(A){_.prepare(A,{});let k=_.toXml(A);S.append(k,{name:`xl/drawings/${A.name}.xml`}),k=w.toXml(A.rels),S.append(k,{name:`xl/drawings/_rels/${A.name}.xml.rels`})}})}addTables(S,C){const _=new W;C.worksheets.forEach(w=>{const{tables:x}=w;x.forEach(A=>{_.prepare(A,{});const k=_.toXml(A);S.append(k,{name:"xl/tables/"+A.target})})})}async addContentTypes(S,C){const _=new b().toXml(C);S.append(_,{name:"[Content_Types].xml"})}async addApp(S,C){const _=new E().toXml(C);S.append(_,{name:"docProps/app.xml"})}async addCore(S,C){const _=new p;S.append(_.toXml(C),{name:"docProps/core.xml"})}async addThemes(S,C){const _=C.themes||{theme1:ee};Object.keys(_).forEach(w=>{const x=_[w],A=`xl/theme/${w}.xml`;S.append(x,{name:A})})}async addOfficeRels(S){const C=new v().toXml([{Id:"rId1",Type:P.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:P.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:P.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);S.append(C,{name:"_rels/.rels"})}async addWorkbookRels(S,C){let _=1;const w=[{Id:"rId"+_++,Type:P.RelType.Styles,Target:"styles.xml"},{Id:"rId"+_++,Type:P.RelType.Theme,Target:"theme/theme1.xml"}];C.sharedStrings.count&&w.push({Id:"rId"+_++,Type:P.RelType.SharedStrings,Target:"sharedStrings.xml"}),C.worksheets.forEach(A=>{A.rId="rId"+_++,w.push({Id:A.rId,Type:P.RelType.Worksheet,Target:`worksheets/sheet${A.id}.xml`})});const x=new v().toXml(w);S.append(x,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(S,C){C.sharedStrings&&C.sharedStrings.count&&S.append(C.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(S,C){const{xml:_}=C.styles;_&&S.append(_,{name:"xl/styles.xml"})}async addWorkbook(S,C){const _=new D;S.append(_.toXml(C),{name:"xl/workbook.xml"})}async addWorksheets(S,C){const _=new F,w=new v,x=new U,A=new G;C.worksheets.forEach(k=>{let R=new f;_.render(R,k),S.append(R.xml,{name:`xl/worksheets/sheet${k.id}.xml`}),k.rels&&k.rels.length&&(R=new f,w.render(R,k.rels),S.append(R.xml,{name:`xl/worksheets/_rels/sheet${k.id}.xml.rels`})),k.comments.length>0&&(R=new f,x.render(R,k),S.append(R.xml,{name:`xl/comments${k.id}.xml`}),R=new f,A.render(R,k),S.append(R.xml,{name:`xl/drawings/vmlDrawing${k.id}.vml`}))})}_finalize(S){return new Promise((C,_)=>{S.on("finish",()=>{C(this)}),S.on("error",_),S.finalize()})}prepareModel(S,C){S.creator=S.creator||"ExcelJS",S.lastModifiedBy=S.lastModifiedBy||"ExcelJS",S.created=S.created||new Date,S.modified=S.modified||new Date,S.useSharedStrings=C.useSharedStrings===void 0||C.useSharedStrings,S.useStyles=C.useStyles===void 0||C.useStyles,S.sharedStrings=new y,S.styles=S.useStyles?new m(!0):new m.Mock;const _=new D,w=new F;_.prepare(S);const x={sharedStrings:S.sharedStrings,styles:S.styles,date1904:S.properties.date1904,drawingsCount:0,media:S.media};x.drawings=S.drawings=[],x.commentRefs=S.commentRefs=[];let A=0;S.tables=[],S.worksheets.forEach(k=>{k.tables.forEach(R=>{A++,R.target=`table${A}.xml`,R.id=A,S.tables.push(R)}),w.prepare(k,x)})}async write(S,C){C=C||{};const{model:_}=this.workbook,w=new l.ZipWriter(C.zip);return w.pipe(S),this.prepareModel(_,C),await this.addContentTypes(w,_),await this.addOfficeRels(w,_),await this.addWorkbookRels(w,_),await this.addWorksheets(w,_),await this.addSharedStrings(w,_),await this.addDrawings(w,_),await this.addTables(w,_),await Promise.all([this.addThemes(w,_),this.addStyles(w,_)]),await this.addMedia(w,_),await Promise.all([this.addApp(w,_),this.addCore(w,_)]),await this.addWorkbook(w,_),this._finalize(w)}writeFile(S,C){const _=s.createWriteStream(S);return new Promise((w,x)=>{_.on("finish",()=>{w()}),_.on("error",A=>{x(A)}),this.write(_,C).then(()=>{_.end()}).catch(A=>{x(A)})})}async writeBuffer(S){const C=new d;return await this.write(C,S),C.read()}}P.RelType=e("./rel-type"),n.exports=P}).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,E){E===void 0&&(E=b),Object.defineProperty(y,E,{enumerable:!0,get:function(){return v[b]}})}:function(y,v,b,E){E===void 0&&(E=b),y[E]=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),E=l.promisify((D,F)=>{b.write(D,void 0,F)});return y.reduce((D,F)=>D.then(()=>E(F)),Promise.resolve()).then(()=>b.end()).catch(D=>{b.emit("error",D)}),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=[],E=new d.Writable({write(D,F,z){b.push(D),z()}});return new Promise((D,F)=>{E.on("error",F).on("finish",()=>D(a.concat(b))),i.write(y,v).pipe(E)})},i.writeToString=(y,v)=>i.writeToBuffer(y,v).then(b=>b.toString()),i.writeToPath=(y,v,b)=>{const E=h.createWriteStream(y,{encoding:"utf8"});return i.write(v,b).pipe(E)}}).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=E=>E?f(E):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,(E,D)=>{if(E)return this.rowCount-=1,y(E);if(!D)return y(new Error("expected transform result"));if(D.isValid){if(D.row)return this.pushRow(D.row,y)}else this.emit("data-invalid",D.row,b,D.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 E=null;if(m.explicit!==null?E=m.explicit:m.implicit!==null?E=m.implicit:m.tag!==null&&(E=m.tag),E!==null||m.any){if(v=this._peekTag(f,E,m.any),f.isError(v))return v}else{const D=f.save();try{m.choice===null?this._decodeGeneric(m.tag,f,g):this._decodeChoice(f,g),v=!0}catch{v=!1}f.restore(D)}}if(m.obj&&v&&(p=f.enterObject()),v){if(m.explicit!==null){const D=this._decodeTag(f,m.explicit);if(f.isError(D))return D;f=D}const E=f.offset;if(m.use===null&&m.choice===null){let D;m.any&&(D=f.save());const F=this._decodeTag(f,m.implicit!==null?m.implicit:m.tag,m.any);if(f.isError(F))return F;m.any?y=f.raw(D):f=F}if(g&&g.track&&m.tag!==null&&g.track(f.path(),E,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(D){D._decode(f,g)}),m.contains&&(m.tag==="octstr"||m.tag==="bitstr")){const D=new s(y);y=this._getUse(m.contains,f._reporterState.obj)._decode(D,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(),E=m.choice[v];try{const D=E._decode(f,g);if(f.isError(D))return!1;p={type:v,value:D},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(E){if(E._baseState.tag==="null_")return E._encode(null,g,f);if(E._baseState.key===null)return g.error("Child should have a key");const D=g.enterKey(E._baseState.key);if(typeof f!="object")return g.error("Child expected, but input is not object");const F=E._encode(f[E._baseState.key],g,f);return g.leaveKey(D),F},this).filter(function(E){return E}),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 E=this.clone();E._baseState.implicit=null,v=this._createEncoderBuffer(f.map(function(D){const F=this._baseState;return this._getUse(F.args[0],f)._encode(D,g)},E))}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 E=p.implicit!==null?p.implicit:p.tag,D=p.implicit===null?"universal":"context";E===null?p.use===null&&g.error("Tag could be omitted only for .use()"):p.use===null&&(y=this._encodeComposite(E,b,D,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 E=g.readUInt8(p);if(g.isError(E))return E;y|=E}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(),E=this._skipUntilEnd(g,'Failed to skip indefinite length body: "'+this.tag+'"');return g.isError(E)?E:(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 E=p.decode(g,"der",y);if(g.isError(E)&&b)break;v.push(E)}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,E=0;for(;!g.isEmpty();)E=g.readUInt8(),b<<=7,b|=127&E,(128&E)==0&&(v.push(b),b=0);128&E&&v.push(b);const D=v[0]/40|0,F=v[0]%40;if(y=p?v:[D,F].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,E,D,F;if(m==="gentime")y=0|p.slice(0,4),v=0|p.slice(4,6),b=0|p.slice(6,8),E=0|p.slice(8,10),D=0|p.slice(10,12),F=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),E=0|p.slice(6,8),D=0|p.slice(8,10),F=0|p.slice(10,12),y=y<70?2e3+y:1900+y}return Date.UTC(y,v-1,b,E,D,F,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,E,D,F){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 F.error("Unknown tag: "+b);z=b}return z>=31?F.error("Multi-octet tag encoding unsupported"):(E||(z|=32),z|=u.tagClassByName[D||"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,E=m.length;E>0;b--,E>>=8)v[b]=255&E;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(I,S){if(!I)throw new Error(S||"Assertion failed")}function u(I,S){I.super_=S;var C=function(){};C.prototype=S.prototype,I.prototype=new C,I.prototype.constructor=I}function c(I,S,C){if(c.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&(S!=="le"&&S!=="be"||(C=S,S=10),this._init(I||0,S||10,C||"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(I,S){var C=I.charCodeAt(S);return C>=65&&C<=70?C-55:C>=97&&C<=102?C-87:C-48&15}function h(I,S,C){var _=d(I,C);return C-1>=S&&(_|=d(I,C-1)<<4),_}function f(I,S,C,_){for(var w=0,x=Math.min(I.length,C),A=S;A<x;A++){var k=I.charCodeAt(A)-48;w*=_,w+=k>=49?k-49+10:k>=17?k-17+10:k}return w}c.isBN=function(I){return I instanceof c||I!==null&&typeof I=="object"&&I.constructor.wordSize===c.wordSize&&Array.isArray(I.words)},c.max=function(I,S){return I.cmp(S)>0?I:S},c.min=function(I,S){return I.cmp(S)<0?I:S},c.prototype._init=function(I,S,C){if(typeof I=="number")return this._initNumber(I,S,C);if(typeof I=="object")return this._initArray(I,S,C);S==="hex"&&(S=16),s(S===(0|S)&&S>=2&&S<=36);var _=0;(I=I.toString().replace(/\s+/g,""))[0]==="-"&&(_++,this.negative=1),_<I.length&&(S===16?this._parseHex(I,_,C):(this._parseBase(I,S,_),C==="le"&&this._initArray(this.toArray(),S,C)))},c.prototype._initNumber=function(I,S,C){I<0&&(this.negative=1,I=-I),I<67108864?(this.words=[67108863&I],this.length=1):I<4503599627370496?(this.words=[67108863&I,I/67108864&67108863],this.length=2):(s(I<9007199254740992),this.words=[67108863&I,I/67108864&67108863,1],this.length=3),C==="le"&&this._initArray(this.toArray(),S,C)},c.prototype._initArray=function(I,S,C){if(s(typeof I.length=="number"),I.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(I.length/3),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var w,x,A=0;if(C==="be")for(_=I.length-1,w=0;_>=0;_-=3)x=I[_]|I[_-1]<<8|I[_-2]<<16,this.words[w]|=x<<A&67108863,this.words[w+1]=x>>>26-A&67108863,(A+=24)>=26&&(A-=26,w++);else if(C==="le")for(_=0,w=0;_<I.length;_+=3)x=I[_]|I[_+1]<<8|I[_+2]<<16,this.words[w]|=x<<A&67108863,this.words[w+1]=x>>>26-A&67108863,(A+=24)>=26&&(A-=26,w++);return this.strip()},c.prototype._parseHex=function(I,S,C){this.length=Math.ceil((I.length-S)/6),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var w,x=0,A=0;if(C==="be")for(_=I.length-1;_>=S;_-=2)w=h(I,S,_)<<x,this.words[A]|=67108863&w,x>=18?(x-=18,A+=1,this.words[A]|=w>>>26):x+=8;else for(_=(I.length-S)%2==0?S+1:S;_<I.length;_+=2)w=h(I,S,_)<<x,this.words[A]|=67108863&w,x>=18?(x-=18,A+=1,this.words[A]|=w>>>26):x+=8;this.strip()},c.prototype._parseBase=function(I,S,C){this.words=[0],this.length=1;for(var _=0,w=1;w<=67108863;w*=S)_++;_--,w=w/S|0;for(var x=I.length-C,A=x%_,k=Math.min(x,x-A)+C,R=0,M=C;M<k;M+=_)R=f(I,M,M+_,S),this.imuln(w),this.words[0]+R<67108864?this.words[0]+=R:this._iaddn(R);if(A!==0){var X=1;for(R=f(I,M,I.length,S),M=0;M<A;M++)X*=S;this.imuln(X),this.words[0]+R<67108864?this.words[0]+=R:this._iaddn(R)}this.strip()},c.prototype.copy=function(I){I.words=new Array(this.length);for(var S=0;S<this.length;S++)I.words[S]=this.words[S];I.length=this.length,I.negative=this.negative,I.red=this.red},c.prototype.clone=function(){var I=new c(null);return this.copy(I),I},c.prototype._expand=function(I){for(;this.length<I;)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(I,S,C){C.negative=S.negative^I.negative;var _=I.length+S.length|0;C.length=_,_=_-1|0;var w=0|I.words[0],x=0|S.words[0],A=w*x,k=67108863&A,R=A/67108864|0;C.words[0]=k;for(var M=1;M<_;M++){for(var X=R>>>26,K=67108863&R,te=Math.min(M,S.length-1),$=Math.max(0,M-I.length+1);$<=te;$++){var q=M-$|0;X+=(A=(w=0|I.words[q])*(x=0|S.words[$])+K)/67108864|0,K=67108863&A}C.words[M]=0|K,R=0|X}return R!==0?C.words[M]=0|R:C.length--,C.strip()}c.prototype.toString=function(I,S){var C;if(S=0|S||1,(I=I||10)===16||I==="hex"){C="";for(var _=0,w=0,x=0;x<this.length;x++){var A=this.words[x],k=(16777215&(A<<_|w)).toString(16);C=(w=A>>>24-_&16777215)!=0||x!==this.length-1?g[6-k.length]+k+C:k+C,(_+=2)>=26&&(_-=26,x--)}for(w!==0&&(C=w.toString(16)+C);C.length%S!=0;)C="0"+C;return this.negative!==0&&(C="-"+C),C}if(I===(0|I)&&I>=2&&I<=36){var R=m[I],M=p[I];C="";var X=this.clone();for(X.negative=0;!X.isZero();){var K=X.modn(M).toString(I);C=(X=X.idivn(M)).isZero()?K+C:g[R-K.length]+K+C}for(this.isZero()&&(C="0"+C);C.length%S!=0;)C="0"+C;return this.negative!==0&&(C="-"+C),C}s(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var I=this.words[0];return this.length===2?I+=67108864*this.words[1]:this.length===3&&this.words[2]===1?I+=4503599627370496+67108864*this.words[1]:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-I:I},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(I,S){return s(l!==void 0),this.toArrayLike(l,I,S)},c.prototype.toArray=function(I,S){return this.toArrayLike(Array,I,S)},c.prototype.toArrayLike=function(I,S,C){var _=this.byteLength(),w=C||Math.max(1,_);s(_<=w,"byte array longer than desired length"),s(w>0,"Requested array length <= 0"),this.strip();var x,A,k=S==="le",R=new I(w),M=this.clone();if(k){for(A=0;!M.isZero();A++)x=M.andln(255),M.iushrn(8),R[A]=x;for(;A<w;A++)R[A]=0}else{for(A=0;A<w-_;A++)R[A]=0;for(A=0;!M.isZero();A++)x=M.andln(255),M.iushrn(8),R[w-A-1]=x}return R},Math.clz32?c.prototype._countBits=function(I){return 32-Math.clz32(I)}:c.prototype._countBits=function(I){var S=I,C=0;return S>=4096&&(C+=13,S>>>=13),S>=64&&(C+=7,S>>>=7),S>=8&&(C+=4,S>>>=4),S>=2&&(C+=2,S>>>=2),C+S},c.prototype._zeroBits=function(I){if(I===0)return 26;var S=I,C=0;return(8191&S)==0&&(C+=13,S>>>=13),(127&S)==0&&(C+=7,S>>>=7),(15&S)==0&&(C+=4,S>>>=4),(3&S)==0&&(C+=2,S>>>=2),(1&S)==0&&C++,C},c.prototype.bitLength=function(){var I=this.words[this.length-1],S=this._countBits(I);return 26*(this.length-1)+S},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var I=0,S=0;S<this.length;S++){var C=this._zeroBits(this.words[S]);if(I+=C,C!==26)break}return I},c.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},c.prototype.toTwos=function(I){return this.negative!==0?this.abs().inotn(I).iaddn(1):this.clone()},c.prototype.fromTwos=function(I){return this.testn(I-1)?this.notn(I).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(I){for(;this.length<I.length;)this.words[this.length++]=0;for(var S=0;S<I.length;S++)this.words[S]=this.words[S]|I.words[S];return this.strip()},c.prototype.ior=function(I){return s((this.negative|I.negative)==0),this.iuor(I)},c.prototype.or=function(I){return this.length>I.length?this.clone().ior(I):I.clone().ior(this)},c.prototype.uor=function(I){return this.length>I.length?this.clone().iuor(I):I.clone().iuor(this)},c.prototype.iuand=function(I){var S;S=this.length>I.length?I:this;for(var C=0;C<S.length;C++)this.words[C]=this.words[C]&I.words[C];return this.length=S.length,this.strip()},c.prototype.iand=function(I){return s((this.negative|I.negative)==0),this.iuand(I)},c.prototype.and=function(I){return this.length>I.length?this.clone().iand(I):I.clone().iand(this)},c.prototype.uand=function(I){return this.length>I.length?this.clone().iuand(I):I.clone().iuand(this)},c.prototype.iuxor=function(I){var S,C;this.length>I.length?(S=this,C=I):(S=I,C=this);for(var _=0;_<C.length;_++)this.words[_]=S.words[_]^C.words[_];if(this!==S)for(;_<S.length;_++)this.words[_]=S.words[_];return this.length=S.length,this.strip()},c.prototype.ixor=function(I){return s((this.negative|I.negative)==0),this.iuxor(I)},c.prototype.xor=function(I){return this.length>I.length?this.clone().ixor(I):I.clone().ixor(this)},c.prototype.uxor=function(I){return this.length>I.length?this.clone().iuxor(I):I.clone().iuxor(this)},c.prototype.inotn=function(I){s(typeof I=="number"&&I>=0);var S=0|Math.ceil(I/26),C=I%26;this._expand(S),C>0&&S--;for(var _=0;_<S;_++)this.words[_]=67108863&~this.words[_];return C>0&&(this.words[_]=~this.words[_]&67108863>>26-C),this.strip()},c.prototype.notn=function(I){return this.clone().inotn(I)},c.prototype.setn=function(I,S){s(typeof I=="number"&&I>=0);var C=I/26|0,_=I%26;return this._expand(C+1),this.words[C]=S?this.words[C]|1<<_:this.words[C]&~(1<<_),this.strip()},c.prototype.iadd=function(I){var S,C,_;if(this.negative!==0&&I.negative===0)return this.negative=0,S=this.isub(I),this.negative^=1,this._normSign();if(this.negative===0&&I.negative!==0)return I.negative=0,S=this.isub(I),I.negative=1,S._normSign();this.length>I.length?(C=this,_=I):(C=I,_=this);for(var w=0,x=0;x<_.length;x++)S=(0|C.words[x])+(0|_.words[x])+w,this.words[x]=67108863&S,w=S>>>26;for(;w!==0&&x<C.length;x++)S=(0|C.words[x])+w,this.words[x]=67108863&S,w=S>>>26;if(this.length=C.length,w!==0)this.words[this.length]=w,this.length++;else if(C!==this)for(;x<C.length;x++)this.words[x]=C.words[x];return this},c.prototype.add=function(I){var S;return I.negative!==0&&this.negative===0?(I.negative=0,S=this.sub(I),I.negative^=1,S):I.negative===0&&this.negative!==0?(this.negative=0,S=I.sub(this),this.negative=1,S):this.length>I.length?this.clone().iadd(I):I.clone().iadd(this)},c.prototype.isub=function(I){if(I.negative!==0){I.negative=0;var S=this.iadd(I);return I.negative=1,S._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(I),this.negative=1,this._normSign();var C,_,w=this.cmp(I);if(w===0)return this.negative=0,this.length=1,this.words[0]=0,this;w>0?(C=this,_=I):(C=I,_=this);for(var x=0,A=0;A<_.length;A++)x=(S=(0|C.words[A])-(0|_.words[A])+x)>>26,this.words[A]=67108863&S;for(;x!==0&&A<C.length;A++)x=(S=(0|C.words[A])+x)>>26,this.words[A]=67108863&S;if(x===0&&A<C.length&&C!==this)for(;A<C.length;A++)this.words[A]=C.words[A];return this.length=Math.max(this.length,A),C!==this&&(this.negative=1),this.strip()},c.prototype.sub=function(I){return this.clone().isub(I)};var v=function(I,S,C){var _,w,x,A=I.words,k=S.words,R=C.words,M=0,X=0|A[0],K=8191&X,te=X>>>13,$=0|A[1],q=8191&$,O=$>>>13,L=0|A[2],V=8191&L,J=L>>>13,re=0|A[3],ae=8191&re,j=re>>>13,ue=0|A[4],Q=8191&ue,B=ue>>>13,H=0|A[5],Z=8191&H,oe=H>>>13,ce=0|A[6],ne=8191&ce,se=ce>>>13,fe=0|A[7],de=8191&fe,ve=fe>>>13,Ee=0|A[8],Se=8191&Ee,Fe=Ee>>>13,He=0|A[9],qe=8191&He,et=He>>>13,Be=0|k[0],Ge=8191&Be,tt=Be>>>13,rt=0|k[1],lt=8191&rt,Nt=rt>>>13,Wt=0|k[2],dt=8191&Wt,Pt=Wt>>>13,_t=0|k[3],gt=8191&_t,hr=_t>>>13,nr=0|k[4],Tt=8191&nr,Kt=nr>>>13,rr=0|k[5],Ct=8191&rr,ir=rr>>>13,ar=0|k[6],kt=8191&ar,Ae=ar>>>13,Ie=0|k[7],je=8191&Ie,at=Ie>>>13,xt=0|k[8],ot=8191&xt,Ot=xt>>>13,At=0|k[9],vt=8191&At,St=At>>>13;C.negative=I.negative^S.negative,C.length=19;var Dt=(M+(_=Math.imul(K,Ge))|0)+((8191&(w=(w=Math.imul(K,tt))+Math.imul(te,Ge)|0))<<13)|0;M=((x=Math.imul(te,tt))+(w>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,_=Math.imul(q,Ge),w=(w=Math.imul(q,tt))+Math.imul(O,Ge)|0,x=Math.imul(O,tt);var Ht=(M+(_=_+Math.imul(K,lt)|0)|0)+((8191&(w=(w=w+Math.imul(K,Nt)|0)+Math.imul(te,lt)|0))<<13)|0;M=((x=x+Math.imul(te,Nt)|0)+(w>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,_=Math.imul(V,Ge),w=(w=Math.imul(V,tt))+Math.imul(J,Ge)|0,x=Math.imul(J,tt),_=_+Math.imul(q,lt)|0,w=(w=w+Math.imul(q,Nt)|0)+Math.imul(O,lt)|0,x=x+Math.imul(O,Nt)|0;var jr=(M+(_=_+Math.imul(K,dt)|0)|0)+((8191&(w=(w=w+Math.imul(K,Pt)|0)+Math.imul(te,dt)|0))<<13)|0;M=((x=x+Math.imul(te,Pt)|0)+(w>>>13)|0)+(jr>>>26)|0,jr&=67108863,_=Math.imul(ae,Ge),w=(w=Math.imul(ae,tt))+Math.imul(j,Ge)|0,x=Math.imul(j,tt),_=_+Math.imul(V,lt)|0,w=(w=w+Math.imul(V,Nt)|0)+Math.imul(J,lt)|0,x=x+Math.imul(J,Nt)|0,_=_+Math.imul(q,dt)|0,w=(w=w+Math.imul(q,Pt)|0)+Math.imul(O,dt)|0,x=x+Math.imul(O,Pt)|0;var gr=(M+(_=_+Math.imul(K,gt)|0)|0)+((8191&(w=(w=w+Math.imul(K,hr)|0)+Math.imul(te,gt)|0))<<13)|0;M=((x=x+Math.imul(te,hr)|0)+(w>>>13)|0)+(gr>>>26)|0,gr&=67108863,_=Math.imul(Q,Ge),w=(w=Math.imul(Q,tt))+Math.imul(B,Ge)|0,x=Math.imul(B,tt),_=_+Math.imul(ae,lt)|0,w=(w=w+Math.imul(ae,Nt)|0)+Math.imul(j,lt)|0,x=x+Math.imul(j,Nt)|0,_=_+Math.imul(V,dt)|0,w=(w=w+Math.imul(V,Pt)|0)+Math.imul(J,dt)|0,x=x+Math.imul(J,Pt)|0,_=_+Math.imul(q,gt)|0,w=(w=w+Math.imul(q,hr)|0)+Math.imul(O,gt)|0,x=x+Math.imul(O,hr)|0;var Pr=(M+(_=_+Math.imul(K,Tt)|0)|0)+((8191&(w=(w=w+Math.imul(K,Kt)|0)+Math.imul(te,Tt)|0))<<13)|0;M=((x=x+Math.imul(te,Kt)|0)+(w>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,_=Math.imul(Z,Ge),w=(w=Math.imul(Z,tt))+Math.imul(oe,Ge)|0,x=Math.imul(oe,tt),_=_+Math.imul(Q,lt)|0,w=(w=w+Math.imul(Q,Nt)|0)+Math.imul(B,lt)|0,x=x+Math.imul(B,Nt)|0,_=_+Math.imul(ae,dt)|0,w=(w=w+Math.imul(ae,Pt)|0)+Math.imul(j,dt)|0,x=x+Math.imul(j,Pt)|0,_=_+Math.imul(V,gt)|0,w=(w=w+Math.imul(V,hr)|0)+Math.imul(J,gt)|0,x=x+Math.imul(J,hr)|0,_=_+Math.imul(q,Tt)|0,w=(w=w+Math.imul(q,Kt)|0)+Math.imul(O,Tt)|0,x=x+Math.imul(O,Kt)|0;var Gr=(M+(_=_+Math.imul(K,Ct)|0)|0)+((8191&(w=(w=w+Math.imul(K,ir)|0)+Math.imul(te,Ct)|0))<<13)|0;M=((x=x+Math.imul(te,ir)|0)+(w>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,_=Math.imul(ne,Ge),w=(w=Math.imul(ne,tt))+Math.imul(se,Ge)|0,x=Math.imul(se,tt),_=_+Math.imul(Z,lt)|0,w=(w=w+Math.imul(Z,Nt)|0)+Math.imul(oe,lt)|0,x=x+Math.imul(oe,Nt)|0,_=_+Math.imul(Q,dt)|0,w=(w=w+Math.imul(Q,Pt)|0)+Math.imul(B,dt)|0,x=x+Math.imul(B,Pt)|0,_=_+Math.imul(ae,gt)|0,w=(w=w+Math.imul(ae,hr)|0)+Math.imul(j,gt)|0,x=x+Math.imul(j,hr)|0,_=_+Math.imul(V,Tt)|0,w=(w=w+Math.imul(V,Kt)|0)+Math.imul(J,Tt)|0,x=x+Math.imul(J,Kt)|0,_=_+Math.imul(q,Ct)|0,w=(w=w+Math.imul(q,ir)|0)+Math.imul(O,Ct)|0,x=x+Math.imul(O,ir)|0;var Xr=(M+(_=_+Math.imul(K,kt)|0)|0)+((8191&(w=(w=w+Math.imul(K,Ae)|0)+Math.imul(te,kt)|0))<<13)|0;M=((x=x+Math.imul(te,Ae)|0)+(w>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,_=Math.imul(de,Ge),w=(w=Math.imul(de,tt))+Math.imul(ve,Ge)|0,x=Math.imul(ve,tt),_=_+Math.imul(ne,lt)|0,w=(w=w+Math.imul(ne,Nt)|0)+Math.imul(se,lt)|0,x=x+Math.imul(se,Nt)|0,_=_+Math.imul(Z,dt)|0,w=(w=w+Math.imul(Z,Pt)|0)+Math.imul(oe,dt)|0,x=x+Math.imul(oe,Pt)|0,_=_+Math.imul(Q,gt)|0,w=(w=w+Math.imul(Q,hr)|0)+Math.imul(B,gt)|0,x=x+Math.imul(B,hr)|0,_=_+Math.imul(ae,Tt)|0,w=(w=w+Math.imul(ae,Kt)|0)+Math.imul(j,Tt)|0,x=x+Math.imul(j,Kt)|0,_=_+Math.imul(V,Ct)|0,w=(w=w+Math.imul(V,ir)|0)+Math.imul(J,Ct)|0,x=x+Math.imul(J,ir)|0,_=_+Math.imul(q,kt)|0,w=(w=w+Math.imul(q,Ae)|0)+Math.imul(O,kt)|0,x=x+Math.imul(O,Ae)|0;var be=(M+(_=_+Math.imul(K,je)|0)|0)+((8191&(w=(w=w+Math.imul(K,at)|0)+Math.imul(te,je)|0))<<13)|0;M=((x=x+Math.imul(te,at)|0)+(w>>>13)|0)+(be>>>26)|0,be&=67108863,_=Math.imul(Se,Ge),w=(w=Math.imul(Se,tt))+Math.imul(Fe,Ge)|0,x=Math.imul(Fe,tt),_=_+Math.imul(de,lt)|0,w=(w=w+Math.imul(de,Nt)|0)+Math.imul(ve,lt)|0,x=x+Math.imul(ve,Nt)|0,_=_+Math.imul(ne,dt)|0,w=(w=w+Math.imul(ne,Pt)|0)+Math.imul(se,dt)|0,x=x+Math.imul(se,Pt)|0,_=_+Math.imul(Z,gt)|0,w=(w=w+Math.imul(Z,hr)|0)+Math.imul(oe,gt)|0,x=x+Math.imul(oe,hr)|0,_=_+Math.imul(Q,Tt)|0,w=(w=w+Math.imul(Q,Kt)|0)+Math.imul(B,Tt)|0,x=x+Math.imul(B,Kt)|0,_=_+Math.imul(ae,Ct)|0,w=(w=w+Math.imul(ae,ir)|0)+Math.imul(j,Ct)|0,x=x+Math.imul(j,ir)|0,_=_+Math.imul(V,kt)|0,w=(w=w+Math.imul(V,Ae)|0)+Math.imul(J,kt)|0,x=x+Math.imul(J,Ae)|0,_=_+Math.imul(q,je)|0,w=(w=w+Math.imul(q,at)|0)+Math.imul(O,je)|0,x=x+Math.imul(O,at)|0;var Re=(M+(_=_+Math.imul(K,ot)|0)|0)+((8191&(w=(w=w+Math.imul(K,Ot)|0)+Math.imul(te,ot)|0))<<13)|0;M=((x=x+Math.imul(te,Ot)|0)+(w>>>13)|0)+(Re>>>26)|0,Re&=67108863,_=Math.imul(qe,Ge),w=(w=Math.imul(qe,tt))+Math.imul(et,Ge)|0,x=Math.imul(et,tt),_=_+Math.imul(Se,lt)|0,w=(w=w+Math.imul(Se,Nt)|0)+Math.imul(Fe,lt)|0,x=x+Math.imul(Fe,Nt)|0,_=_+Math.imul(de,dt)|0,w=(w=w+Math.imul(de,Pt)|0)+Math.imul(ve,dt)|0,x=x+Math.imul(ve,Pt)|0,_=_+Math.imul(ne,gt)|0,w=(w=w+Math.imul(ne,hr)|0)+Math.imul(se,gt)|0,x=x+Math.imul(se,hr)|0,_=_+Math.imul(Z,Tt)|0,w=(w=w+Math.imul(Z,Kt)|0)+Math.imul(oe,Tt)|0,x=x+Math.imul(oe,Kt)|0,_=_+Math.imul(Q,Ct)|0,w=(w=w+Math.imul(Q,ir)|0)+Math.imul(B,Ct)|0,x=x+Math.imul(B,ir)|0,_=_+Math.imul(ae,kt)|0,w=(w=w+Math.imul(ae,Ae)|0)+Math.imul(j,kt)|0,x=x+Math.imul(j,Ae)|0,_=_+Math.imul(V,je)|0,w=(w=w+Math.imul(V,at)|0)+Math.imul(J,je)|0,x=x+Math.imul(J,at)|0,_=_+Math.imul(q,ot)|0,w=(w=w+Math.imul(q,Ot)|0)+Math.imul(O,ot)|0,x=x+Math.imul(O,Ot)|0;var We=(M+(_=_+Math.imul(K,vt)|0)|0)+((8191&(w=(w=w+Math.imul(K,St)|0)+Math.imul(te,vt)|0))<<13)|0;M=((x=x+Math.imul(te,St)|0)+(w>>>13)|0)+(We>>>26)|0,We&=67108863,_=Math.imul(qe,lt),w=(w=Math.imul(qe,Nt))+Math.imul(et,lt)|0,x=Math.imul(et,Nt),_=_+Math.imul(Se,dt)|0,w=(w=w+Math.imul(Se,Pt)|0)+Math.imul(Fe,dt)|0,x=x+Math.imul(Fe,Pt)|0,_=_+Math.imul(de,gt)|0,w=(w=w+Math.imul(de,hr)|0)+Math.imul(ve,gt)|0,x=x+Math.imul(ve,hr)|0,_=_+Math.imul(ne,Tt)|0,w=(w=w+Math.imul(ne,Kt)|0)+Math.imul(se,Tt)|0,x=x+Math.imul(se,Kt)|0,_=_+Math.imul(Z,Ct)|0,w=(w=w+Math.imul(Z,ir)|0)+Math.imul(oe,Ct)|0,x=x+Math.imul(oe,ir)|0,_=_+Math.imul(Q,kt)|0,w=(w=w+Math.imul(Q,Ae)|0)+Math.imul(B,kt)|0,x=x+Math.imul(B,Ae)|0,_=_+Math.imul(ae,je)|0,w=(w=w+Math.imul(ae,at)|0)+Math.imul(j,je)|0,x=x+Math.imul(j,at)|0,_=_+Math.imul(V,ot)|0,w=(w=w+Math.imul(V,Ot)|0)+Math.imul(J,ot)|0,x=x+Math.imul(J,Ot)|0;var Ze=(M+(_=_+Math.imul(q,vt)|0)|0)+((8191&(w=(w=w+Math.imul(q,St)|0)+Math.imul(O,vt)|0))<<13)|0;M=((x=x+Math.imul(O,St)|0)+(w>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,_=Math.imul(qe,dt),w=(w=Math.imul(qe,Pt))+Math.imul(et,dt)|0,x=Math.imul(et,Pt),_=_+Math.imul(Se,gt)|0,w=(w=w+Math.imul(Se,hr)|0)+Math.imul(Fe,gt)|0,x=x+Math.imul(Fe,hr)|0,_=_+Math.imul(de,Tt)|0,w=(w=w+Math.imul(de,Kt)|0)+Math.imul(ve,Tt)|0,x=x+Math.imul(ve,Kt)|0,_=_+Math.imul(ne,Ct)|0,w=(w=w+Math.imul(ne,ir)|0)+Math.imul(se,Ct)|0,x=x+Math.imul(se,ir)|0,_=_+Math.imul(Z,kt)|0,w=(w=w+Math.imul(Z,Ae)|0)+Math.imul(oe,kt)|0,x=x+Math.imul(oe,Ae)|0,_=_+Math.imul(Q,je)|0,w=(w=w+Math.imul(Q,at)|0)+Math.imul(B,je)|0,x=x+Math.imul(B,at)|0,_=_+Math.imul(ae,ot)|0,w=(w=w+Math.imul(ae,Ot)|0)+Math.imul(j,ot)|0,x=x+Math.imul(j,Ot)|0;var mt=(M+(_=_+Math.imul(V,vt)|0)|0)+((8191&(w=(w=w+Math.imul(V,St)|0)+Math.imul(J,vt)|0))<<13)|0;M=((x=x+Math.imul(J,St)|0)+(w>>>13)|0)+(mt>>>26)|0,mt&=67108863,_=Math.imul(qe,gt),w=(w=Math.imul(qe,hr))+Math.imul(et,gt)|0,x=Math.imul(et,hr),_=_+Math.imul(Se,Tt)|0,w=(w=w+Math.imul(Se,Kt)|0)+Math.imul(Fe,Tt)|0,x=x+Math.imul(Fe,Kt)|0,_=_+Math.imul(de,Ct)|0,w=(w=w+Math.imul(de,ir)|0)+Math.imul(ve,Ct)|0,x=x+Math.imul(ve,ir)|0,_=_+Math.imul(ne,kt)|0,w=(w=w+Math.imul(ne,Ae)|0)+Math.imul(se,kt)|0,x=x+Math.imul(se,Ae)|0,_=_+Math.imul(Z,je)|0,w=(w=w+Math.imul(Z,at)|0)+Math.imul(oe,je)|0,x=x+Math.imul(oe,at)|0,_=_+Math.imul(Q,ot)|0,w=(w=w+Math.imul(Q,Ot)|0)+Math.imul(B,ot)|0,x=x+Math.imul(B,Ot)|0;var nt=(M+(_=_+Math.imul(ae,vt)|0)|0)+((8191&(w=(w=w+Math.imul(ae,St)|0)+Math.imul(j,vt)|0))<<13)|0;M=((x=x+Math.imul(j,St)|0)+(w>>>13)|0)+(nt>>>26)|0,nt&=67108863,_=Math.imul(qe,Tt),w=(w=Math.imul(qe,Kt))+Math.imul(et,Tt)|0,x=Math.imul(et,Kt),_=_+Math.imul(Se,Ct)|0,w=(w=w+Math.imul(Se,ir)|0)+Math.imul(Fe,Ct)|0,x=x+Math.imul(Fe,ir)|0,_=_+Math.imul(de,kt)|0,w=(w=w+Math.imul(de,Ae)|0)+Math.imul(ve,kt)|0,x=x+Math.imul(ve,Ae)|0,_=_+Math.imul(ne,je)|0,w=(w=w+Math.imul(ne,at)|0)+Math.imul(se,je)|0,x=x+Math.imul(se,at)|0,_=_+Math.imul(Z,ot)|0,w=(w=w+Math.imul(Z,Ot)|0)+Math.imul(oe,ot)|0,x=x+Math.imul(oe,Ot)|0;var it=(M+(_=_+Math.imul(Q,vt)|0)|0)+((8191&(w=(w=w+Math.imul(Q,St)|0)+Math.imul(B,vt)|0))<<13)|0;M=((x=x+Math.imul(B,St)|0)+(w>>>13)|0)+(it>>>26)|0,it&=67108863,_=Math.imul(qe,Ct),w=(w=Math.imul(qe,ir))+Math.imul(et,Ct)|0,x=Math.imul(et,ir),_=_+Math.imul(Se,kt)|0,w=(w=w+Math.imul(Se,Ae)|0)+Math.imul(Fe,kt)|0,x=x+Math.imul(Fe,Ae)|0,_=_+Math.imul(de,je)|0,w=(w=w+Math.imul(de,at)|0)+Math.imul(ve,je)|0,x=x+Math.imul(ve,at)|0,_=_+Math.imul(ne,ot)|0,w=(w=w+Math.imul(ne,Ot)|0)+Math.imul(se,ot)|0,x=x+Math.imul(se,Ot)|0;var $t=(M+(_=_+Math.imul(Z,vt)|0)|0)+((8191&(w=(w=w+Math.imul(Z,St)|0)+Math.imul(oe,vt)|0))<<13)|0;M=((x=x+Math.imul(oe,St)|0)+(w>>>13)|0)+($t>>>26)|0,$t&=67108863,_=Math.imul(qe,kt),w=(w=Math.imul(qe,Ae))+Math.imul(et,kt)|0,x=Math.imul(et,Ae),_=_+Math.imul(Se,je)|0,w=(w=w+Math.imul(Se,at)|0)+Math.imul(Fe,je)|0,x=x+Math.imul(Fe,at)|0,_=_+Math.imul(de,ot)|0,w=(w=w+Math.imul(de,Ot)|0)+Math.imul(ve,ot)|0,x=x+Math.imul(ve,Ot)|0;var Ft=(M+(_=_+Math.imul(ne,vt)|0)|0)+((8191&(w=(w=w+Math.imul(ne,St)|0)+Math.imul(se,vt)|0))<<13)|0;M=((x=x+Math.imul(se,St)|0)+(w>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,_=Math.imul(qe,je),w=(w=Math.imul(qe,at))+Math.imul(et,je)|0,x=Math.imul(et,at),_=_+Math.imul(Se,ot)|0,w=(w=w+Math.imul(Se,Ot)|0)+Math.imul(Fe,ot)|0,x=x+Math.imul(Fe,Ot)|0;var Lt=(M+(_=_+Math.imul(de,vt)|0)|0)+((8191&(w=(w=w+Math.imul(de,St)|0)+Math.imul(ve,vt)|0))<<13)|0;M=((x=x+Math.imul(ve,St)|0)+(w>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,_=Math.imul(qe,ot),w=(w=Math.imul(qe,Ot))+Math.imul(et,ot)|0,x=Math.imul(et,Ot);var Et=(M+(_=_+Math.imul(Se,vt)|0)|0)+((8191&(w=(w=w+Math.imul(Se,St)|0)+Math.imul(Fe,vt)|0))<<13)|0;M=((x=x+Math.imul(Fe,St)|0)+(w>>>13)|0)+(Et>>>26)|0,Et&=67108863;var dr=(M+(_=Math.imul(qe,vt))|0)+((8191&(w=(w=Math.imul(qe,St))+Math.imul(et,vt)|0))<<13)|0;return M=((x=Math.imul(et,St))+(w>>>13)|0)+(dr>>>26)|0,dr&=67108863,R[0]=Dt,R[1]=Ht,R[2]=jr,R[3]=gr,R[4]=Pr,R[5]=Gr,R[6]=Xr,R[7]=be,R[8]=Re,R[9]=We,R[10]=Ze,R[11]=mt,R[12]=nt,R[13]=it,R[14]=$t,R[15]=Ft,R[16]=Lt,R[17]=Et,R[18]=dr,M!==0&&(R[19]=M,C.length++),C};function b(I,S,C){return new E().mulp(I,S,C)}function E(I,S){this.x=I,this.y=S}Math.imul||(v=y),c.prototype.mulTo=function(I,S){var C=this.length+I.length;return this.length===10&&I.length===10?v(this,I,S):C<63?y(this,I,S):C<1024?function(_,w,x){x.negative=w.negative^_.negative,x.length=_.length+w.length;for(var A=0,k=0,R=0;R<x.length-1;R++){var M=k;k=0;for(var X=67108863&A,K=Math.min(R,w.length-1),te=Math.max(0,R-_.length+1);te<=K;te++){var $=R-te,q=(0|_.words[$])*(0|w.words[te]),O=67108863&q;X=67108863&(O=O+X|0),k+=(M=(M=M+(q/67108864|0)|0)+(O>>>26)|0)>>>26,M&=67108863}x.words[R]=X,A=M,M=k}return A!==0?x.words[R]=A:x.length--,x.strip()}(this,I,S):b(this,I,S)},E.prototype.makeRBT=function(I){for(var S=new Array(I),C=c.prototype._countBits(I)-1,_=0;_<I;_++)S[_]=this.revBin(_,C,I);return S},E.prototype.revBin=function(I,S,C){if(I===0||I===C-1)return I;for(var _=0,w=0;w<S;w++)_|=(1&I)<<S-w-1,I>>=1;return _},E.prototype.permute=function(I,S,C,_,w,x){for(var A=0;A<x;A++)_[A]=S[I[A]],w[A]=C[I[A]]},E.prototype.transform=function(I,S,C,_,w,x){this.permute(x,I,S,C,_,w);for(var A=1;A<w;A<<=1)for(var k=A<<1,R=Math.cos(2*Math.PI/k),M=Math.sin(2*Math.PI/k),X=0;X<w;X+=k)for(var K=R,te=M,$=0;$<A;$++){var q=C[X+$],O=_[X+$],L=C[X+$+A],V=_[X+$+A],J=K*L-te*V;V=K*V+te*L,L=J,C[X+$]=q+L,_[X+$]=O+V,C[X+$+A]=q-L,_[X+$+A]=O-V,$!==k&&(J=R*K-M*te,te=R*te+M*K,K=J)}},E.prototype.guessLen13b=function(I,S){var C=1|Math.max(S,I),_=1&C,w=0;for(C=C/2|0;C;C>>>=1)w++;return 1<<w+1+_},E.prototype.conjugate=function(I,S,C){if(!(C<=1))for(var _=0;_<C/2;_++){var w=I[_];I[_]=I[C-_-1],I[C-_-1]=w,w=S[_],S[_]=-S[C-_-1],S[C-_-1]=-w}},E.prototype.normalize13b=function(I,S){for(var C=0,_=0;_<S/2;_++){var w=8192*Math.round(I[2*_+1]/S)+Math.round(I[2*_]/S)+C;I[_]=67108863&w,C=w<67108864?0:w/67108864|0}return I},E.prototype.convert13b=function(I,S,C,_){for(var w=0,x=0;x<S;x++)w+=0|I[x],C[2*x]=8191&w,w>>>=13,C[2*x+1]=8191&w,w>>>=13;for(x=2*S;x<_;++x)C[x]=0;s(w===0),s((-8192&w)==0)},E.prototype.stub=function(I){for(var S=new Array(I),C=0;C<I;C++)S[C]=0;return S},E.prototype.mulp=function(I,S,C){var _=2*this.guessLen13b(I.length,S.length),w=this.makeRBT(_),x=this.stub(_),A=new Array(_),k=new Array(_),R=new Array(_),M=new Array(_),X=new Array(_),K=new Array(_),te=C.words;te.length=_,this.convert13b(I.words,I.length,A,_),this.convert13b(S.words,S.length,M,_),this.transform(A,x,k,R,_,w),this.transform(M,x,X,K,_,w);for(var $=0;$<_;$++){var q=k[$]*X[$]-R[$]*K[$];R[$]=k[$]*K[$]+R[$]*X[$],k[$]=q}return this.conjugate(k,R,_),this.transform(k,R,te,x,_,w),this.conjugate(te,x,_),this.normalize13b(te,_),C.negative=I.negative^S.negative,C.length=I.length+S.length,C.strip()},c.prototype.mul=function(I){var S=new c(null);return S.words=new Array(this.length+I.length),this.mulTo(I,S)},c.prototype.mulf=function(I){var S=new c(null);return S.words=new Array(this.length+I.length),b(this,I,S)},c.prototype.imul=function(I){return this.clone().mulTo(I,this)},c.prototype.imuln=function(I){s(typeof I=="number"),s(I<67108864);for(var S=0,C=0;C<this.length;C++){var _=(0|this.words[C])*I,w=(67108863&_)+(67108863&S);S>>=26,S+=_/67108864|0,S+=w>>>26,this.words[C]=67108863&w}return S!==0&&(this.words[C]=S,this.length++),this},c.prototype.muln=function(I){return this.clone().imuln(I)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(I){var S=function(x){for(var A=new Array(x.bitLength()),k=0;k<A.length;k++){var R=k/26|0,M=k%26;A[k]=(x.words[R]&1<<M)>>>M}return A}(I);if(S.length===0)return new c(1);for(var C=this,_=0;_<S.length&&S[_]===0;_++,C=C.sqr());if(++_<S.length)for(var w=C.sqr();_<S.length;_++,w=w.sqr())S[_]!==0&&(C=C.mul(w));return C},c.prototype.iushln=function(I){s(typeof I=="number"&&I>=0);var S,C=I%26,_=(I-C)/26,w=67108863>>>26-C<<26-C;if(C!==0){var x=0;for(S=0;S<this.length;S++){var A=this.words[S]&w,k=(0|this.words[S])-A<<C;this.words[S]=k|x,x=A>>>26-C}x&&(this.words[S]=x,this.length++)}if(_!==0){for(S=this.length-1;S>=0;S--)this.words[S+_]=this.words[S];for(S=0;S<_;S++)this.words[S]=0;this.length+=_}return this.strip()},c.prototype.ishln=function(I){return s(this.negative===0),this.iushln(I)},c.prototype.iushrn=function(I,S,C){var _;s(typeof I=="number"&&I>=0),_=S?(S-S%26)/26:0;var w=I%26,x=Math.min((I-w)/26,this.length),A=67108863^67108863>>>w<<w,k=C;if(_-=x,_=Math.max(0,_),k){for(var R=0;R<x;R++)k.words[R]=this.words[R];k.length=x}if(x!==0)if(this.length>x)for(this.length-=x,R=0;R<this.length;R++)this.words[R]=this.words[R+x];else this.words[0]=0,this.length=1;var M=0;for(R=this.length-1;R>=0&&(M!==0||R>=_);R--){var X=0|this.words[R];this.words[R]=M<<26-w|X>>>w,M=X&A}return k&&M!==0&&(k.words[k.length++]=M),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(I,S,C){return s(this.negative===0),this.iushrn(I,S,C)},c.prototype.shln=function(I){return this.clone().ishln(I)},c.prototype.ushln=function(I){return this.clone().iushln(I)},c.prototype.shrn=function(I){return this.clone().ishrn(I)},c.prototype.ushrn=function(I){return this.clone().iushrn(I)},c.prototype.testn=function(I){s(typeof I=="number"&&I>=0);var S=I%26,C=(I-S)/26,_=1<<S;return!(this.length<=C)&&!!(this.words[C]&_)},c.prototype.imaskn=function(I){s(typeof I=="number"&&I>=0);var S=I%26,C=(I-S)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=C)return this;if(S!==0&&C++,this.length=Math.min(C,this.length),S!==0){var _=67108863^67108863>>>S<<S;this.words[this.length-1]&=_}return this.strip()},c.prototype.maskn=function(I){return this.clone().imaskn(I)},c.prototype.iaddn=function(I){return s(typeof I=="number"),s(I<67108864),I<0?this.isubn(-I):this.negative!==0?this.length===1&&(0|this.words[0])<I?(this.words[0]=I-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(I),this.negative=1,this):this._iaddn(I)},c.prototype._iaddn=function(I){this.words[0]+=I;for(var S=0;S<this.length&&this.words[S]>=67108864;S++)this.words[S]-=67108864,S===this.length-1?this.words[S+1]=1:this.words[S+1]++;return this.length=Math.max(this.length,S+1),this},c.prototype.isubn=function(I){if(s(typeof I=="number"),s(I<67108864),I<0)return this.iaddn(-I);if(this.negative!==0)return this.negative=0,this.iaddn(I),this.negative=1,this;if(this.words[0]-=I,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var S=0;S<this.length&&this.words[S]<0;S++)this.words[S]+=67108864,this.words[S+1]-=1;return this.strip()},c.prototype.addn=function(I){return this.clone().iaddn(I)},c.prototype.subn=function(I){return this.clone().isubn(I)},c.prototype.iabs=function(){return this.negative=0,this},c.prototype.abs=function(){return this.clone().iabs()},c.prototype._ishlnsubmul=function(I,S,C){var _,w,x=I.length+C;this._expand(x);var A=0;for(_=0;_<I.length;_++){w=(0|this.words[_+C])+A;var k=(0|I.words[_])*S;A=((w-=67108863&k)>>26)-(k/67108864|0),this.words[_+C]=67108863&w}for(;_<this.length-C;_++)A=(w=(0|this.words[_+C])+A)>>26,this.words[_+C]=67108863&w;if(A===0)return this.strip();for(s(A===-1),A=0,_=0;_<this.length;_++)A=(w=-(0|this.words[_])+A)>>26,this.words[_]=67108863&w;return this.negative=1,this.strip()},c.prototype._wordDiv=function(I,S){var C=(this.length,I.length),_=this.clone(),w=I,x=0|w.words[w.length-1];(C=26-this._countBits(x))!=0&&(w=w.ushln(C),_.iushln(C),x=0|w.words[w.length-1]);var A,k=_.length-w.length;if(S!=="mod"){(A=new c(null)).length=k+1,A.words=new Array(A.length);for(var R=0;R<A.length;R++)A.words[R]=0}var M=_.clone()._ishlnsubmul(w,1,k);M.negative===0&&(_=M,A&&(A.words[k]=1));for(var X=k-1;X>=0;X--){var K=67108864*(0|_.words[w.length+X])+(0|_.words[w.length+X-1]);for(K=Math.min(K/x|0,67108863),_._ishlnsubmul(w,K,X);_.negative!==0;)K--,_.negative=0,_._ishlnsubmul(w,1,X),_.isZero()||(_.negative^=1);A&&(A.words[X]=K)}return A&&A.strip(),_.strip(),S!=="div"&&C!==0&&_.iushrn(C),{div:A||null,mod:_}},c.prototype.divmod=function(I,S,C){return s(!I.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:this.negative!==0&&I.negative===0?(x=this.neg().divmod(I,S),S!=="mod"&&(_=x.div.neg()),S!=="div"&&(w=x.mod.neg(),C&&w.negative!==0&&w.iadd(I)),{div:_,mod:w}):this.negative===0&&I.negative!==0?(x=this.divmod(I.neg(),S),S!=="mod"&&(_=x.div.neg()),{div:_,mod:x.mod}):(this.negative&I.negative)!=0?(x=this.neg().divmod(I.neg(),S),S!=="div"&&(w=x.mod.neg(),C&&w.negative!==0&&w.isub(I)),{div:x.div,mod:w}):I.length>this.length||this.cmp(I)<0?{div:new c(0),mod:this}:I.length===1?S==="div"?{div:this.divn(I.words[0]),mod:null}:S==="mod"?{div:null,mod:new c(this.modn(I.words[0]))}:{div:this.divn(I.words[0]),mod:new c(this.modn(I.words[0]))}:this._wordDiv(I,S);var _,w,x},c.prototype.div=function(I){return this.divmod(I,"div",!1).div},c.prototype.mod=function(I){return this.divmod(I,"mod",!1).mod},c.prototype.umod=function(I){return this.divmod(I,"mod",!0).mod},c.prototype.divRound=function(I){var S=this.divmod(I);if(S.mod.isZero())return S.div;var C=S.div.negative!==0?S.mod.isub(I):S.mod,_=I.ushrn(1),w=I.andln(1),x=C.cmp(_);return x<0||w===1&&x===0?S.div:S.div.negative!==0?S.div.isubn(1):S.div.iaddn(1)},c.prototype.modn=function(I){s(I<=67108863);for(var S=(1<<26)%I,C=0,_=this.length-1;_>=0;_--)C=(S*C+(0|this.words[_]))%I;return C},c.prototype.idivn=function(I){s(I<=67108863);for(var S=0,C=this.length-1;C>=0;C--){var _=(0|this.words[C])+67108864*S;this.words[C]=_/I|0,S=_%I}return this.strip()},c.prototype.divn=function(I){return this.clone().idivn(I)},c.prototype.egcd=function(I){s(I.negative===0),s(!I.isZero());var S=this,C=I.clone();S=S.negative!==0?S.umod(I):S.clone();for(var _=new c(1),w=new c(0),x=new c(0),A=new c(1),k=0;S.isEven()&&C.isEven();)S.iushrn(1),C.iushrn(1),++k;for(var R=C.clone(),M=S.clone();!S.isZero();){for(var X=0,K=1;(S.words[0]&K)==0&&X<26;++X,K<<=1);if(X>0)for(S.iushrn(X);X-- >0;)(_.isOdd()||w.isOdd())&&(_.iadd(R),w.isub(M)),_.iushrn(1),w.iushrn(1);for(var te=0,$=1;(C.words[0]&$)==0&&te<26;++te,$<<=1);if(te>0)for(C.iushrn(te);te-- >0;)(x.isOdd()||A.isOdd())&&(x.iadd(R),A.isub(M)),x.iushrn(1),A.iushrn(1);S.cmp(C)>=0?(S.isub(C),_.isub(x),w.isub(A)):(C.isub(S),x.isub(_),A.isub(w))}return{a:x,b:A,gcd:C.iushln(k)}},c.prototype._invmp=function(I){s(I.negative===0),s(!I.isZero());var S=this,C=I.clone();S=S.negative!==0?S.umod(I):S.clone();for(var _,w=new c(1),x=new c(0),A=C.clone();S.cmpn(1)>0&&C.cmpn(1)>0;){for(var k=0,R=1;(S.words[0]&R)==0&&k<26;++k,R<<=1);if(k>0)for(S.iushrn(k);k-- >0;)w.isOdd()&&w.iadd(A),w.iushrn(1);for(var M=0,X=1;(C.words[0]&X)==0&&M<26;++M,X<<=1);if(M>0)for(C.iushrn(M);M-- >0;)x.isOdd()&&x.iadd(A),x.iushrn(1);S.cmp(C)>=0?(S.isub(C),w.isub(x)):(C.isub(S),x.isub(w))}return(_=S.cmpn(1)===0?w:x).cmpn(0)<0&&_.iadd(I),_},c.prototype.gcd=function(I){if(this.isZero())return I.abs();if(I.isZero())return this.abs();var S=this.clone(),C=I.clone();S.negative=0,C.negative=0;for(var _=0;S.isEven()&&C.isEven();_++)S.iushrn(1),C.iushrn(1);for(;;){for(;S.isEven();)S.iushrn(1);for(;C.isEven();)C.iushrn(1);var w=S.cmp(C);if(w<0){var x=S;S=C,C=x}else if(w===0||C.cmpn(1)===0)break;S.isub(C)}return C.iushln(_)},c.prototype.invm=function(I){return this.egcd(I).a.umod(I)},c.prototype.isEven=function(){return(1&this.words[0])==0},c.prototype.isOdd=function(){return(1&this.words[0])==1},c.prototype.andln=function(I){return this.words[0]&I},c.prototype.bincn=function(I){s(typeof I=="number");var S=I%26,C=(I-S)/26,_=1<<S;if(this.length<=C)return this._expand(C+1),this.words[C]|=_,this;for(var w=_,x=C;w!==0&&x<this.length;x++){var A=0|this.words[x];w=(A+=w)>>>26,A&=67108863,this.words[x]=A}return w!==0&&(this.words[x]=w,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(I){var S,C=I<0;if(this.negative!==0&&!C)return-1;if(this.negative===0&&C)return 1;if(this.strip(),this.length>1)S=1;else{C&&(I=-I),s(I<=67108863,"Number is too big");var _=0|this.words[0];S=_===I?0:_<I?-1:1}return this.negative!==0?0|-S:S},c.prototype.cmp=function(I){if(this.negative!==0&&I.negative===0)return-1;if(this.negative===0&&I.negative!==0)return 1;var S=this.ucmp(I);return this.negative!==0?0|-S:S},c.prototype.ucmp=function(I){if(this.length>I.length)return 1;if(this.length<I.length)return-1;for(var S=0,C=this.length-1;C>=0;C--){var _=0|this.words[C],w=0|I.words[C];if(_!==w){_<w?S=-1:_>w&&(S=1);break}}return S},c.prototype.gtn=function(I){return this.cmpn(I)===1},c.prototype.gt=function(I){return this.cmp(I)===1},c.prototype.gten=function(I){return this.cmpn(I)>=0},c.prototype.gte=function(I){return this.cmp(I)>=0},c.prototype.ltn=function(I){return this.cmpn(I)===-1},c.prototype.lt=function(I){return this.cmp(I)===-1},c.prototype.lten=function(I){return this.cmpn(I)<=0},c.prototype.lte=function(I){return this.cmp(I)<=0},c.prototype.eqn=function(I){return this.cmpn(I)===0},c.prototype.eq=function(I){return this.cmp(I)===0},c.red=function(I){return new ee(I)},c.prototype.toRed=function(I){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),I.convertTo(this)._forceRed(I)},c.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(I){return this.red=I,this},c.prototype.forceRed=function(I){return s(!this.red,"Already a number in reduction context"),this._forceRed(I)},c.prototype.redAdd=function(I){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,I)},c.prototype.redIAdd=function(I){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,I)},c.prototype.redSub=function(I){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,I)},c.prototype.redISub=function(I){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,I)},c.prototype.redShl=function(I){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,I)},c.prototype.redMul=function(I){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,I),this.red.mul(this,I)},c.prototype.redIMul=function(I){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,I),this.red.imul(this,I)},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(I){return s(this.red&&!I.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,I)};var D={k256:null,p224:null,p192:null,p25519:null};function F(I,S){this.name=I,this.p=new c(S,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function z(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function W(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function U(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function G(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ee(I){if(typeof I=="string"){var S=c._prime(I);this.m=S.p,this.prime=S}else s(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}function P(I){ee.call(this,I),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)}F.prototype._tmp=function(){var I=new c(null);return I.words=new Array(Math.ceil(this.n/13)),I},F.prototype.ireduce=function(I){var S,C=I;do this.split(C,this.tmp),S=(C=(C=this.imulK(C)).iadd(this.tmp)).bitLength();while(S>this.n);var _=S<this.n?-1:C.ucmp(this.p);return _===0?(C.words[0]=0,C.length=1):_>0?C.isub(this.p):C.strip!==void 0?C.strip():C._strip(),C},F.prototype.split=function(I,S){I.iushrn(this.n,0,S)},F.prototype.imulK=function(I){return I.imul(this.k)},u(z,F),z.prototype.split=function(I,S){for(var C=Math.min(I.length,9),_=0;_<C;_++)S.words[_]=I.words[_];if(S.length=C,I.length<=9)return I.words[0]=0,void(I.length=1);var w=I.words[9];for(S.words[S.length++]=4194303&w,_=10;_<I.length;_++){var x=0|I.words[_];I.words[_-10]=(4194303&x)<<4|w>>>22,w=x}w>>>=22,I.words[_-10]=w,w===0&&I.length>10?I.length-=10:I.length-=9},z.prototype.imulK=function(I){I.words[I.length]=0,I.words[I.length+1]=0,I.length+=2;for(var S=0,C=0;C<I.length;C++){var _=0|I.words[C];S+=977*_,I.words[C]=67108863&S,S=64*_+(S/67108864|0)}return I.words[I.length-1]===0&&(I.length--,I.words[I.length-1]===0&&I.length--),I},u(W,F),u(U,F),u(G,F),G.prototype.imulK=function(I){for(var S=0,C=0;C<I.length;C++){var _=19*(0|I.words[C])+S,w=67108863&_;_>>>=26,I.words[C]=w,S=_}return S!==0&&(I.words[I.length++]=S),I},c._prime=function(I){if(D[I])return D[I];var S;if(I==="k256")S=new z;else if(I==="p224")S=new W;else if(I==="p192")S=new U;else{if(I!=="p25519")throw new Error("Unknown prime "+I);S=new G}return D[I]=S,S},ee.prototype._verify1=function(I){s(I.negative===0,"red works only with positives"),s(I.red,"red works only with red numbers")},ee.prototype._verify2=function(I,S){s((I.negative|S.negative)==0,"red works only with positives"),s(I.red&&I.red===S.red,"red works only with red numbers")},ee.prototype.imod=function(I){return this.prime?this.prime.ireduce(I)._forceRed(this):I.umod(this.m)._forceRed(this)},ee.prototype.neg=function(I){return I.isZero()?I.clone():this.m.sub(I)._forceRed(this)},ee.prototype.add=function(I,S){this._verify2(I,S);var C=I.add(S);return C.cmp(this.m)>=0&&C.isub(this.m),C._forceRed(this)},ee.prototype.iadd=function(I,S){this._verify2(I,S);var C=I.iadd(S);return C.cmp(this.m)>=0&&C.isub(this.m),C},ee.prototype.sub=function(I,S){this._verify2(I,S);var C=I.sub(S);return C.cmpn(0)<0&&C.iadd(this.m),C._forceRed(this)},ee.prototype.isub=function(I,S){this._verify2(I,S);var C=I.isub(S);return C.cmpn(0)<0&&C.iadd(this.m),C},ee.prototype.shl=function(I,S){return this._verify1(I),this.imod(I.ushln(S))},ee.prototype.imul=function(I,S){return this._verify2(I,S),this.imod(I.imul(S))},ee.prototype.mul=function(I,S){return this._verify2(I,S),this.imod(I.mul(S))},ee.prototype.isqr=function(I){return this.imul(I,I.clone())},ee.prototype.sqr=function(I){return this.mul(I,I)},ee.prototype.sqrt=function(I){if(I.isZero())return I.clone();var S=this.m.andln(3);if(s(S%2==1),S===3){var C=this.m.add(new c(1)).iushrn(2);return this.pow(I,C)}for(var _=this.m.subn(1),w=0;!_.isZero()&&_.andln(1)===0;)w++,_.iushrn(1);s(!_.isZero());var x=new c(1).toRed(this),A=x.redNeg(),k=this.m.subn(1).iushrn(1),R=this.m.bitLength();for(R=new c(2*R*R).toRed(this);this.pow(R,k).cmp(A)!==0;)R.redIAdd(A);for(var M=this.pow(R,_),X=this.pow(I,_.addn(1).iushrn(1)),K=this.pow(I,_),te=w;K.cmp(x)!==0;){for(var $=K,q=0;$.cmp(x)!==0;q++)$=$.redSqr();s(q<te);var O=this.pow(M,new c(1).iushln(te-q-1));X=X.redMul(O),M=O.redSqr(),K=K.redMul(M),te=q}return X},ee.prototype.invm=function(I){var S=I._invmp(this.m);return S.negative!==0?(S.negative=0,this.imod(S).redNeg()):this.imod(S)},ee.prototype.pow=function(I,S){if(S.isZero())return new c(1).toRed(this);if(S.cmpn(1)===0)return I.clone();var C=new Array(16);C[0]=new c(1).toRed(this),C[1]=I;for(var _=2;_<C.length;_++)C[_]=this.mul(C[_-1],I);var w=C[0],x=0,A=0,k=S.bitLength()%26;for(k===0&&(k=26),_=S.length-1;_>=0;_--){for(var R=S.words[_],M=k-1;M>=0;M--){var X=R>>M&1;w!==C[0]&&(w=this.sqr(w)),X!==0||x!==0?(x<<=1,x|=X,(++A==4||_===0&&M===0)&&(w=this.mul(w,C[x]),A=0,x=0)):A=0}k=26}return w},ee.prototype.convertTo=function(I){var S=I.umod(this.m);return S===I?S.clone():S},ee.prototype.convertFrom=function(I){var S=I.clone();return S.red=null,S},c.mont=function(I){return new P(I)},u(P,ee),P.prototype.convertTo=function(I){return this.imod(I.ushln(this.shift))},P.prototype.convertFrom=function(I){var S=this.imod(I.mul(this.rinv));return S.red=null,S},P.prototype.imul=function(I,S){if(I.isZero()||S.isZero())return I.words[0]=0,I.length=1,I;var C=I.imul(S),_=C.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=C.isub(_).iushrn(this.shift),x=w;return w.cmp(this.m)>=0?x=w.isub(this.m):w.cmpn(0)<0&&(x=w.iadd(this.m)),x._forceRed(this)},P.prototype.mul=function(I,S){if(I.isZero()||S.isZero())return new c(0)._forceRed(this);var C=I.mul(S),_=C.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=C.isub(_).iushrn(this.shift),x=w;return w.cmp(this.m)>=0?x=w.isub(this.m):w.cmpn(0)<0&&(x=w.iadd(this.m)),x._forceRed(this)},P.prototype.invm=function(I){return this.imod(I._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(F,z,W){return 3*(z+W)/4-W}(0,y,v)),E=0,D=v>0?y-4:y;for(m=0;m<D;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[E++]=g>>16&255,b[E++]=g>>8&255,b[E++]=255&g;return v===2&&(g=o[f.charCodeAt(m)]<<2|o[f.charCodeAt(m+1)]>>4,b[E++]=255&g),v===1&&(g=o[f.charCodeAt(m)]<<10|o[f.charCodeAt(m+1)]<<4|o[f.charCodeAt(m+2)]>>2,b[E++]=g>>8&255,b[E++]=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(C,_){if(!C)throw new Error(_||"Assertion failed")}function u(C,_){C.super_=_;var w=function(){};w.prototype=_.prototype,C.prototype=new w,C.prototype.constructor=C}function c(C,_,w){if(c.isBN(C))return C;this.negative=0,this.words=null,this.length=0,this.red=null,C!==null&&(_!=="le"&&_!=="be"||(w=_,_=10),this._init(C||0,_||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(C,_){var w=C.charCodeAt(_);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 "+C)}function h(C,_,w){var x=d(C,w);return w-1>=_&&(x|=d(C,w-1)<<4),x}function f(C,_,w,x){for(var A=0,k=0,R=Math.min(C.length,w),M=_;M<R;M++){var X=C.charCodeAt(M)-48;A*=x,k=X>=49?X-49+10:X>=17?X-17+10:X,s(X>=0&&k<x,"Invalid character"),A+=k}return A}function g(C,_){C.words=_.words,C.length=_.length,C.negative=_.negative,C.red=_.red}if(c.isBN=function(C){return C instanceof c||C!==null&&typeof C=="object"&&C.constructor.wordSize===c.wordSize&&Array.isArray(C.words)},c.max=function(C,_){return C.cmp(_)>0?C:_},c.min=function(C,_){return C.cmp(_)<0?C:_},c.prototype._init=function(C,_,w){if(typeof C=="number")return this._initNumber(C,_,w);if(typeof C=="object")return this._initArray(C,_,w);_==="hex"&&(_=16),s(_===(0|_)&&_>=2&&_<=36);var x=0;(C=C.toString().replace(/\s+/g,""))[0]==="-"&&(x++,this.negative=1),x<C.length&&(_===16?this._parseHex(C,x,w):(this._parseBase(C,_,x),w==="le"&&this._initArray(this.toArray(),_,w)))},c.prototype._initNumber=function(C,_,w){C<0&&(this.negative=1,C=-C),C<67108864?(this.words=[67108863&C],this.length=1):C<4503599627370496?(this.words=[67108863&C,C/67108864&67108863],this.length=2):(s(C<9007199254740992),this.words=[67108863&C,C/67108864&67108863,1],this.length=3),w==="le"&&this._initArray(this.toArray(),_,w)},c.prototype._initArray=function(C,_,w){if(s(typeof C.length=="number"),C.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(C.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var A,k,R=0;if(w==="be")for(x=C.length-1,A=0;x>=0;x-=3)k=C[x]|C[x-1]<<8|C[x-2]<<16,this.words[A]|=k<<R&67108863,this.words[A+1]=k>>>26-R&67108863,(R+=24)>=26&&(R-=26,A++);else if(w==="le")for(x=0,A=0;x<C.length;x+=3)k=C[x]|C[x+1]<<8|C[x+2]<<16,this.words[A]|=k<<R&67108863,this.words[A+1]=k>>>26-R&67108863,(R+=24)>=26&&(R-=26,A++);return this._strip()},c.prototype._parseHex=function(C,_,w){this.length=Math.ceil((C.length-_)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var A,k=0,R=0;if(w==="be")for(x=C.length-1;x>=_;x-=2)A=h(C,_,x)<<k,this.words[R]|=67108863&A,k>=18?(k-=18,R+=1,this.words[R]|=A>>>26):k+=8;else for(x=(C.length-_)%2==0?_+1:_;x<C.length;x+=2)A=h(C,_,x)<<k,this.words[R]|=67108863&A,k>=18?(k-=18,R+=1,this.words[R]|=A>>>26):k+=8;this._strip()},c.prototype._parseBase=function(C,_,w){this.words=[0],this.length=1;for(var x=0,A=1;A<=67108863;A*=_)x++;x--,A=A/_|0;for(var k=C.length-w,R=k%x,M=Math.min(k,k-R)+w,X=0,K=w;K<M;K+=x)X=f(C,K,K+x,_),this.imuln(A),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X);if(R!==0){var te=1;for(X=f(C,K,C.length,_),K=0;K<R;K++)te*=_;this.imuln(te),this.words[0]+X<67108864?this.words[0]+=X:this._iaddn(X)}this._strip()},c.prototype.copy=function(C){C.words=new Array(this.length);for(var _=0;_<this.length;_++)C.words[_]=this.words[_];C.length=this.length,C.negative=this.negative,C.red=this.red},c.prototype._move=function(C){g(C,this)},c.prototype.clone=function(){var C=new c(null);return this.copy(C),C},c.prototype._expand=function(C){for(;this.length<C;)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(C,_){var w;if(_=0|_||1,(C=C||10)===16||C==="hex"){w="";for(var x=0,A=0,k=0;k<this.length;k++){var R=this.words[k],M=(16777215&(R<<x|A)).toString(16);A=R>>>24-x&16777215,(x+=2)>=26&&(x-=26,k--),w=A!==0||k!==this.length-1?p[6-M.length]+M+w:M+w}for(A!==0&&(w=A.toString(16)+w);w.length%_!=0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}if(C===(0|C)&&C>=2&&C<=36){var X=y[C],K=v[C];w="";var te=this.clone();for(te.negative=0;!te.isZero();){var $=te.modrn(K).toString(C);w=(te=te.idivn(K)).isZero()?$+w:p[X-$.length]+$+w}for(this.isZero()&&(w="0"+w);w.length%_!=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 C=this.words[0];return this.length===2?C+=67108864*this.words[1]:this.length===3&&this.words[2]===1?C+=4503599627370496+67108864*this.words[1]:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-C:C},c.prototype.toJSON=function(){return this.toString(16,2)},l&&(c.prototype.toBuffer=function(C,_){return this.toArrayLike(l,C,_)}),c.prototype.toArray=function(C,_){return this.toArrayLike(Array,C,_)};function b(C,_,w){w.negative=_.negative^C.negative;var x=C.length+_.length|0;w.length=x,x=x-1|0;var A=0|C.words[0],k=0|_.words[0],R=A*k,M=67108863&R,X=R/67108864|0;w.words[0]=M;for(var K=1;K<x;K++){for(var te=X>>>26,$=67108863&X,q=Math.min(K,_.length-1),O=Math.max(0,K-C.length+1);O<=q;O++){var L=K-O|0;te+=(R=(A=0|C.words[L])*(k=0|_.words[O])+$)/67108864|0,$=67108863&R}w.words[K]=0|$,X=0|te}return X!==0?w.words[K]=0|X:w.length--,w._strip()}c.prototype.toArrayLike=function(C,_,w){this._strip();var x=this.byteLength(),A=w||Math.max(1,x);s(x<=A,"byte array longer than desired length"),s(A>0,"Requested array length <= 0");var k=function(R,M){return R.allocUnsafe?R.allocUnsafe(M):new R(M)}(C,A);return this["_toArrayLike"+(_==="le"?"LE":"BE")](k,x),k},c.prototype._toArrayLikeLE=function(C,_){for(var w=0,x=0,A=0,k=0;A<this.length;A++){var R=this.words[A]<<k|x;C[w++]=255&R,w<C.length&&(C[w++]=R>>8&255),w<C.length&&(C[w++]=R>>16&255),k===6?(w<C.length&&(C[w++]=R>>24&255),x=0,k=0):(x=R>>>24,k+=2)}if(w<C.length)for(C[w++]=x;w<C.length;)C[w++]=0},c.prototype._toArrayLikeBE=function(C,_){for(var w=C.length-1,x=0,A=0,k=0;A<this.length;A++){var R=this.words[A]<<k|x;C[w--]=255&R,w>=0&&(C[w--]=R>>8&255),w>=0&&(C[w--]=R>>16&255),k===6?(w>=0&&(C[w--]=R>>24&255),x=0,k=0):(x=R>>>24,k+=2)}if(w>=0)for(C[w--]=x;w>=0;)C[w--]=0},Math.clz32?c.prototype._countBits=function(C){return 32-Math.clz32(C)}:c.prototype._countBits=function(C){var _=C,w=0;return _>=4096&&(w+=13,_>>>=13),_>=64&&(w+=7,_>>>=7),_>=8&&(w+=4,_>>>=4),_>=2&&(w+=2,_>>>=2),w+_},c.prototype._zeroBits=function(C){if(C===0)return 26;var _=C,w=0;return(8191&_)==0&&(w+=13,_>>>=13),(127&_)==0&&(w+=7,_>>>=7),(15&_)==0&&(w+=4,_>>>=4),(3&_)==0&&(w+=2,_>>>=2),(1&_)==0&&w++,w},c.prototype.bitLength=function(){var C=this.words[this.length-1],_=this._countBits(C);return 26*(this.length-1)+_},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var C=0,_=0;_<this.length;_++){var w=this._zeroBits(this.words[_]);if(C+=w,w!==26)break}return C},c.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},c.prototype.toTwos=function(C){return this.negative!==0?this.abs().inotn(C).iaddn(1):this.clone()},c.prototype.fromTwos=function(C){return this.testn(C-1)?this.notn(C).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(C){for(;this.length<C.length;)this.words[this.length++]=0;for(var _=0;_<C.length;_++)this.words[_]=this.words[_]|C.words[_];return this._strip()},c.prototype.ior=function(C){return s((this.negative|C.negative)==0),this.iuor(C)},c.prototype.or=function(C){return this.length>C.length?this.clone().ior(C):C.clone().ior(this)},c.prototype.uor=function(C){return this.length>C.length?this.clone().iuor(C):C.clone().iuor(this)},c.prototype.iuand=function(C){var _;_=this.length>C.length?C:this;for(var w=0;w<_.length;w++)this.words[w]=this.words[w]&C.words[w];return this.length=_.length,this._strip()},c.prototype.iand=function(C){return s((this.negative|C.negative)==0),this.iuand(C)},c.prototype.and=function(C){return this.length>C.length?this.clone().iand(C):C.clone().iand(this)},c.prototype.uand=function(C){return this.length>C.length?this.clone().iuand(C):C.clone().iuand(this)},c.prototype.iuxor=function(C){var _,w;this.length>C.length?(_=this,w=C):(_=C,w=this);for(var x=0;x<w.length;x++)this.words[x]=_.words[x]^w.words[x];if(this!==_)for(;x<_.length;x++)this.words[x]=_.words[x];return this.length=_.length,this._strip()},c.prototype.ixor=function(C){return s((this.negative|C.negative)==0),this.iuxor(C)},c.prototype.xor=function(C){return this.length>C.length?this.clone().ixor(C):C.clone().ixor(this)},c.prototype.uxor=function(C){return this.length>C.length?this.clone().iuxor(C):C.clone().iuxor(this)},c.prototype.inotn=function(C){s(typeof C=="number"&&C>=0);var _=0|Math.ceil(C/26),w=C%26;this._expand(_),w>0&&_--;for(var x=0;x<_;x++)this.words[x]=67108863&~this.words[x];return w>0&&(this.words[x]=~this.words[x]&67108863>>26-w),this._strip()},c.prototype.notn=function(C){return this.clone().inotn(C)},c.prototype.setn=function(C,_){s(typeof C=="number"&&C>=0);var w=C/26|0,x=C%26;return this._expand(w+1),this.words[w]=_?this.words[w]|1<<x:this.words[w]&~(1<<x),this._strip()},c.prototype.iadd=function(C){var _,w,x;if(this.negative!==0&&C.negative===0)return this.negative=0,_=this.isub(C),this.negative^=1,this._normSign();if(this.negative===0&&C.negative!==0)return C.negative=0,_=this.isub(C),C.negative=1,_._normSign();this.length>C.length?(w=this,x=C):(w=C,x=this);for(var A=0,k=0;k<x.length;k++)_=(0|w.words[k])+(0|x.words[k])+A,this.words[k]=67108863&_,A=_>>>26;for(;A!==0&&k<w.length;k++)_=(0|w.words[k])+A,this.words[k]=67108863&_,A=_>>>26;if(this.length=w.length,A!==0)this.words[this.length]=A,this.length++;else if(w!==this)for(;k<w.length;k++)this.words[k]=w.words[k];return this},c.prototype.add=function(C){var _;return C.negative!==0&&this.negative===0?(C.negative=0,_=this.sub(C),C.negative^=1,_):C.negative===0&&this.negative!==0?(this.negative=0,_=C.sub(this),this.negative=1,_):this.length>C.length?this.clone().iadd(C):C.clone().iadd(this)},c.prototype.isub=function(C){if(C.negative!==0){C.negative=0;var _=this.iadd(C);return C.negative=1,_._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(C),this.negative=1,this._normSign();var w,x,A=this.cmp(C);if(A===0)return this.negative=0,this.length=1,this.words[0]=0,this;A>0?(w=this,x=C):(w=C,x=this);for(var k=0,R=0;R<x.length;R++)k=(_=(0|w.words[R])-(0|x.words[R])+k)>>26,this.words[R]=67108863&_;for(;k!==0&&R<w.length;R++)k=(_=(0|w.words[R])+k)>>26,this.words[R]=67108863&_;if(k===0&&R<w.length&&w!==this)for(;R<w.length;R++)this.words[R]=w.words[R];return this.length=Math.max(this.length,R),w!==this&&(this.negative=1),this._strip()},c.prototype.sub=function(C){return this.clone().isub(C)};var E=function(C,_,w){var x,A,k,R=C.words,M=_.words,X=w.words,K=0,te=0|R[0],$=8191&te,q=te>>>13,O=0|R[1],L=8191&O,V=O>>>13,J=0|R[2],re=8191&J,ae=J>>>13,j=0|R[3],ue=8191&j,Q=j>>>13,B=0|R[4],H=8191&B,Z=B>>>13,oe=0|R[5],ce=8191&oe,ne=oe>>>13,se=0|R[6],fe=8191&se,de=se>>>13,ve=0|R[7],Ee=8191&ve,Se=ve>>>13,Fe=0|R[8],He=8191&Fe,qe=Fe>>>13,et=0|R[9],Be=8191&et,Ge=et>>>13,tt=0|M[0],rt=8191&tt,lt=tt>>>13,Nt=0|M[1],Wt=8191&Nt,dt=Nt>>>13,Pt=0|M[2],_t=8191&Pt,gt=Pt>>>13,hr=0|M[3],nr=8191&hr,Tt=hr>>>13,Kt=0|M[4],rr=8191&Kt,Ct=Kt>>>13,ir=0|M[5],ar=8191&ir,kt=ir>>>13,Ae=0|M[6],Ie=8191&Ae,je=Ae>>>13,at=0|M[7],xt=8191&at,ot=at>>>13,Ot=0|M[8],At=8191&Ot,vt=Ot>>>13,St=0|M[9],Dt=8191&St,Ht=St>>>13;w.negative=C.negative^_.negative,w.length=19;var jr=(K+(x=Math.imul($,rt))|0)+((8191&(A=(A=Math.imul($,lt))+Math.imul(q,rt)|0))<<13)|0;K=((k=Math.imul(q,lt))+(A>>>13)|0)+(jr>>>26)|0,jr&=67108863,x=Math.imul(L,rt),A=(A=Math.imul(L,lt))+Math.imul(V,rt)|0,k=Math.imul(V,lt);var gr=(K+(x=x+Math.imul($,Wt)|0)|0)+((8191&(A=(A=A+Math.imul($,dt)|0)+Math.imul(q,Wt)|0))<<13)|0;K=((k=k+Math.imul(q,dt)|0)+(A>>>13)|0)+(gr>>>26)|0,gr&=67108863,x=Math.imul(re,rt),A=(A=Math.imul(re,lt))+Math.imul(ae,rt)|0,k=Math.imul(ae,lt),x=x+Math.imul(L,Wt)|0,A=(A=A+Math.imul(L,dt)|0)+Math.imul(V,Wt)|0,k=k+Math.imul(V,dt)|0;var Pr=(K+(x=x+Math.imul($,_t)|0)|0)+((8191&(A=(A=A+Math.imul($,gt)|0)+Math.imul(q,_t)|0))<<13)|0;K=((k=k+Math.imul(q,gt)|0)+(A>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,x=Math.imul(ue,rt),A=(A=Math.imul(ue,lt))+Math.imul(Q,rt)|0,k=Math.imul(Q,lt),x=x+Math.imul(re,Wt)|0,A=(A=A+Math.imul(re,dt)|0)+Math.imul(ae,Wt)|0,k=k+Math.imul(ae,dt)|0,x=x+Math.imul(L,_t)|0,A=(A=A+Math.imul(L,gt)|0)+Math.imul(V,_t)|0,k=k+Math.imul(V,gt)|0;var Gr=(K+(x=x+Math.imul($,nr)|0)|0)+((8191&(A=(A=A+Math.imul($,Tt)|0)+Math.imul(q,nr)|0))<<13)|0;K=((k=k+Math.imul(q,Tt)|0)+(A>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,x=Math.imul(H,rt),A=(A=Math.imul(H,lt))+Math.imul(Z,rt)|0,k=Math.imul(Z,lt),x=x+Math.imul(ue,Wt)|0,A=(A=A+Math.imul(ue,dt)|0)+Math.imul(Q,Wt)|0,k=k+Math.imul(Q,dt)|0,x=x+Math.imul(re,_t)|0,A=(A=A+Math.imul(re,gt)|0)+Math.imul(ae,_t)|0,k=k+Math.imul(ae,gt)|0,x=x+Math.imul(L,nr)|0,A=(A=A+Math.imul(L,Tt)|0)+Math.imul(V,nr)|0,k=k+Math.imul(V,Tt)|0;var Xr=(K+(x=x+Math.imul($,rr)|0)|0)+((8191&(A=(A=A+Math.imul($,Ct)|0)+Math.imul(q,rr)|0))<<13)|0;K=((k=k+Math.imul(q,Ct)|0)+(A>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,x=Math.imul(ce,rt),A=(A=Math.imul(ce,lt))+Math.imul(ne,rt)|0,k=Math.imul(ne,lt),x=x+Math.imul(H,Wt)|0,A=(A=A+Math.imul(H,dt)|0)+Math.imul(Z,Wt)|0,k=k+Math.imul(Z,dt)|0,x=x+Math.imul(ue,_t)|0,A=(A=A+Math.imul(ue,gt)|0)+Math.imul(Q,_t)|0,k=k+Math.imul(Q,gt)|0,x=x+Math.imul(re,nr)|0,A=(A=A+Math.imul(re,Tt)|0)+Math.imul(ae,nr)|0,k=k+Math.imul(ae,Tt)|0,x=x+Math.imul(L,rr)|0,A=(A=A+Math.imul(L,Ct)|0)+Math.imul(V,rr)|0,k=k+Math.imul(V,Ct)|0;var be=(K+(x=x+Math.imul($,ar)|0)|0)+((8191&(A=(A=A+Math.imul($,kt)|0)+Math.imul(q,ar)|0))<<13)|0;K=((k=k+Math.imul(q,kt)|0)+(A>>>13)|0)+(be>>>26)|0,be&=67108863,x=Math.imul(fe,rt),A=(A=Math.imul(fe,lt))+Math.imul(de,rt)|0,k=Math.imul(de,lt),x=x+Math.imul(ce,Wt)|0,A=(A=A+Math.imul(ce,dt)|0)+Math.imul(ne,Wt)|0,k=k+Math.imul(ne,dt)|0,x=x+Math.imul(H,_t)|0,A=(A=A+Math.imul(H,gt)|0)+Math.imul(Z,_t)|0,k=k+Math.imul(Z,gt)|0,x=x+Math.imul(ue,nr)|0,A=(A=A+Math.imul(ue,Tt)|0)+Math.imul(Q,nr)|0,k=k+Math.imul(Q,Tt)|0,x=x+Math.imul(re,rr)|0,A=(A=A+Math.imul(re,Ct)|0)+Math.imul(ae,rr)|0,k=k+Math.imul(ae,Ct)|0,x=x+Math.imul(L,ar)|0,A=(A=A+Math.imul(L,kt)|0)+Math.imul(V,ar)|0,k=k+Math.imul(V,kt)|0;var Re=(K+(x=x+Math.imul($,Ie)|0)|0)+((8191&(A=(A=A+Math.imul($,je)|0)+Math.imul(q,Ie)|0))<<13)|0;K=((k=k+Math.imul(q,je)|0)+(A>>>13)|0)+(Re>>>26)|0,Re&=67108863,x=Math.imul(Ee,rt),A=(A=Math.imul(Ee,lt))+Math.imul(Se,rt)|0,k=Math.imul(Se,lt),x=x+Math.imul(fe,Wt)|0,A=(A=A+Math.imul(fe,dt)|0)+Math.imul(de,Wt)|0,k=k+Math.imul(de,dt)|0,x=x+Math.imul(ce,_t)|0,A=(A=A+Math.imul(ce,gt)|0)+Math.imul(ne,_t)|0,k=k+Math.imul(ne,gt)|0,x=x+Math.imul(H,nr)|0,A=(A=A+Math.imul(H,Tt)|0)+Math.imul(Z,nr)|0,k=k+Math.imul(Z,Tt)|0,x=x+Math.imul(ue,rr)|0,A=(A=A+Math.imul(ue,Ct)|0)+Math.imul(Q,rr)|0,k=k+Math.imul(Q,Ct)|0,x=x+Math.imul(re,ar)|0,A=(A=A+Math.imul(re,kt)|0)+Math.imul(ae,ar)|0,k=k+Math.imul(ae,kt)|0,x=x+Math.imul(L,Ie)|0,A=(A=A+Math.imul(L,je)|0)+Math.imul(V,Ie)|0,k=k+Math.imul(V,je)|0;var We=(K+(x=x+Math.imul($,xt)|0)|0)+((8191&(A=(A=A+Math.imul($,ot)|0)+Math.imul(q,xt)|0))<<13)|0;K=((k=k+Math.imul(q,ot)|0)+(A>>>13)|0)+(We>>>26)|0,We&=67108863,x=Math.imul(He,rt),A=(A=Math.imul(He,lt))+Math.imul(qe,rt)|0,k=Math.imul(qe,lt),x=x+Math.imul(Ee,Wt)|0,A=(A=A+Math.imul(Ee,dt)|0)+Math.imul(Se,Wt)|0,k=k+Math.imul(Se,dt)|0,x=x+Math.imul(fe,_t)|0,A=(A=A+Math.imul(fe,gt)|0)+Math.imul(de,_t)|0,k=k+Math.imul(de,gt)|0,x=x+Math.imul(ce,nr)|0,A=(A=A+Math.imul(ce,Tt)|0)+Math.imul(ne,nr)|0,k=k+Math.imul(ne,Tt)|0,x=x+Math.imul(H,rr)|0,A=(A=A+Math.imul(H,Ct)|0)+Math.imul(Z,rr)|0,k=k+Math.imul(Z,Ct)|0,x=x+Math.imul(ue,ar)|0,A=(A=A+Math.imul(ue,kt)|0)+Math.imul(Q,ar)|0,k=k+Math.imul(Q,kt)|0,x=x+Math.imul(re,Ie)|0,A=(A=A+Math.imul(re,je)|0)+Math.imul(ae,Ie)|0,k=k+Math.imul(ae,je)|0,x=x+Math.imul(L,xt)|0,A=(A=A+Math.imul(L,ot)|0)+Math.imul(V,xt)|0,k=k+Math.imul(V,ot)|0;var Ze=(K+(x=x+Math.imul($,At)|0)|0)+((8191&(A=(A=A+Math.imul($,vt)|0)+Math.imul(q,At)|0))<<13)|0;K=((k=k+Math.imul(q,vt)|0)+(A>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,x=Math.imul(Be,rt),A=(A=Math.imul(Be,lt))+Math.imul(Ge,rt)|0,k=Math.imul(Ge,lt),x=x+Math.imul(He,Wt)|0,A=(A=A+Math.imul(He,dt)|0)+Math.imul(qe,Wt)|0,k=k+Math.imul(qe,dt)|0,x=x+Math.imul(Ee,_t)|0,A=(A=A+Math.imul(Ee,gt)|0)+Math.imul(Se,_t)|0,k=k+Math.imul(Se,gt)|0,x=x+Math.imul(fe,nr)|0,A=(A=A+Math.imul(fe,Tt)|0)+Math.imul(de,nr)|0,k=k+Math.imul(de,Tt)|0,x=x+Math.imul(ce,rr)|0,A=(A=A+Math.imul(ce,Ct)|0)+Math.imul(ne,rr)|0,k=k+Math.imul(ne,Ct)|0,x=x+Math.imul(H,ar)|0,A=(A=A+Math.imul(H,kt)|0)+Math.imul(Z,ar)|0,k=k+Math.imul(Z,kt)|0,x=x+Math.imul(ue,Ie)|0,A=(A=A+Math.imul(ue,je)|0)+Math.imul(Q,Ie)|0,k=k+Math.imul(Q,je)|0,x=x+Math.imul(re,xt)|0,A=(A=A+Math.imul(re,ot)|0)+Math.imul(ae,xt)|0,k=k+Math.imul(ae,ot)|0,x=x+Math.imul(L,At)|0,A=(A=A+Math.imul(L,vt)|0)+Math.imul(V,At)|0,k=k+Math.imul(V,vt)|0;var mt=(K+(x=x+Math.imul($,Dt)|0)|0)+((8191&(A=(A=A+Math.imul($,Ht)|0)+Math.imul(q,Dt)|0))<<13)|0;K=((k=k+Math.imul(q,Ht)|0)+(A>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(Be,Wt),A=(A=Math.imul(Be,dt))+Math.imul(Ge,Wt)|0,k=Math.imul(Ge,dt),x=x+Math.imul(He,_t)|0,A=(A=A+Math.imul(He,gt)|0)+Math.imul(qe,_t)|0,k=k+Math.imul(qe,gt)|0,x=x+Math.imul(Ee,nr)|0,A=(A=A+Math.imul(Ee,Tt)|0)+Math.imul(Se,nr)|0,k=k+Math.imul(Se,Tt)|0,x=x+Math.imul(fe,rr)|0,A=(A=A+Math.imul(fe,Ct)|0)+Math.imul(de,rr)|0,k=k+Math.imul(de,Ct)|0,x=x+Math.imul(ce,ar)|0,A=(A=A+Math.imul(ce,kt)|0)+Math.imul(ne,ar)|0,k=k+Math.imul(ne,kt)|0,x=x+Math.imul(H,Ie)|0,A=(A=A+Math.imul(H,je)|0)+Math.imul(Z,Ie)|0,k=k+Math.imul(Z,je)|0,x=x+Math.imul(ue,xt)|0,A=(A=A+Math.imul(ue,ot)|0)+Math.imul(Q,xt)|0,k=k+Math.imul(Q,ot)|0,x=x+Math.imul(re,At)|0,A=(A=A+Math.imul(re,vt)|0)+Math.imul(ae,At)|0,k=k+Math.imul(ae,vt)|0;var nt=(K+(x=x+Math.imul(L,Dt)|0)|0)+((8191&(A=(A=A+Math.imul(L,Ht)|0)+Math.imul(V,Dt)|0))<<13)|0;K=((k=k+Math.imul(V,Ht)|0)+(A>>>13)|0)+(nt>>>26)|0,nt&=67108863,x=Math.imul(Be,_t),A=(A=Math.imul(Be,gt))+Math.imul(Ge,_t)|0,k=Math.imul(Ge,gt),x=x+Math.imul(He,nr)|0,A=(A=A+Math.imul(He,Tt)|0)+Math.imul(qe,nr)|0,k=k+Math.imul(qe,Tt)|0,x=x+Math.imul(Ee,rr)|0,A=(A=A+Math.imul(Ee,Ct)|0)+Math.imul(Se,rr)|0,k=k+Math.imul(Se,Ct)|0,x=x+Math.imul(fe,ar)|0,A=(A=A+Math.imul(fe,kt)|0)+Math.imul(de,ar)|0,k=k+Math.imul(de,kt)|0,x=x+Math.imul(ce,Ie)|0,A=(A=A+Math.imul(ce,je)|0)+Math.imul(ne,Ie)|0,k=k+Math.imul(ne,je)|0,x=x+Math.imul(H,xt)|0,A=(A=A+Math.imul(H,ot)|0)+Math.imul(Z,xt)|0,k=k+Math.imul(Z,ot)|0,x=x+Math.imul(ue,At)|0,A=(A=A+Math.imul(ue,vt)|0)+Math.imul(Q,At)|0,k=k+Math.imul(Q,vt)|0;var it=(K+(x=x+Math.imul(re,Dt)|0)|0)+((8191&(A=(A=A+Math.imul(re,Ht)|0)+Math.imul(ae,Dt)|0))<<13)|0;K=((k=k+Math.imul(ae,Ht)|0)+(A>>>13)|0)+(it>>>26)|0,it&=67108863,x=Math.imul(Be,nr),A=(A=Math.imul(Be,Tt))+Math.imul(Ge,nr)|0,k=Math.imul(Ge,Tt),x=x+Math.imul(He,rr)|0,A=(A=A+Math.imul(He,Ct)|0)+Math.imul(qe,rr)|0,k=k+Math.imul(qe,Ct)|0,x=x+Math.imul(Ee,ar)|0,A=(A=A+Math.imul(Ee,kt)|0)+Math.imul(Se,ar)|0,k=k+Math.imul(Se,kt)|0,x=x+Math.imul(fe,Ie)|0,A=(A=A+Math.imul(fe,je)|0)+Math.imul(de,Ie)|0,k=k+Math.imul(de,je)|0,x=x+Math.imul(ce,xt)|0,A=(A=A+Math.imul(ce,ot)|0)+Math.imul(ne,xt)|0,k=k+Math.imul(ne,ot)|0,x=x+Math.imul(H,At)|0,A=(A=A+Math.imul(H,vt)|0)+Math.imul(Z,At)|0,k=k+Math.imul(Z,vt)|0;var $t=(K+(x=x+Math.imul(ue,Dt)|0)|0)+((8191&(A=(A=A+Math.imul(ue,Ht)|0)+Math.imul(Q,Dt)|0))<<13)|0;K=((k=k+Math.imul(Q,Ht)|0)+(A>>>13)|0)+($t>>>26)|0,$t&=67108863,x=Math.imul(Be,rr),A=(A=Math.imul(Be,Ct))+Math.imul(Ge,rr)|0,k=Math.imul(Ge,Ct),x=x+Math.imul(He,ar)|0,A=(A=A+Math.imul(He,kt)|0)+Math.imul(qe,ar)|0,k=k+Math.imul(qe,kt)|0,x=x+Math.imul(Ee,Ie)|0,A=(A=A+Math.imul(Ee,je)|0)+Math.imul(Se,Ie)|0,k=k+Math.imul(Se,je)|0,x=x+Math.imul(fe,xt)|0,A=(A=A+Math.imul(fe,ot)|0)+Math.imul(de,xt)|0,k=k+Math.imul(de,ot)|0,x=x+Math.imul(ce,At)|0,A=(A=A+Math.imul(ce,vt)|0)+Math.imul(ne,At)|0,k=k+Math.imul(ne,vt)|0;var Ft=(K+(x=x+Math.imul(H,Dt)|0)|0)+((8191&(A=(A=A+Math.imul(H,Ht)|0)+Math.imul(Z,Dt)|0))<<13)|0;K=((k=k+Math.imul(Z,Ht)|0)+(A>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,x=Math.imul(Be,ar),A=(A=Math.imul(Be,kt))+Math.imul(Ge,ar)|0,k=Math.imul(Ge,kt),x=x+Math.imul(He,Ie)|0,A=(A=A+Math.imul(He,je)|0)+Math.imul(qe,Ie)|0,k=k+Math.imul(qe,je)|0,x=x+Math.imul(Ee,xt)|0,A=(A=A+Math.imul(Ee,ot)|0)+Math.imul(Se,xt)|0,k=k+Math.imul(Se,ot)|0,x=x+Math.imul(fe,At)|0,A=(A=A+Math.imul(fe,vt)|0)+Math.imul(de,At)|0,k=k+Math.imul(de,vt)|0;var Lt=(K+(x=x+Math.imul(ce,Dt)|0)|0)+((8191&(A=(A=A+Math.imul(ce,Ht)|0)+Math.imul(ne,Dt)|0))<<13)|0;K=((k=k+Math.imul(ne,Ht)|0)+(A>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,x=Math.imul(Be,Ie),A=(A=Math.imul(Be,je))+Math.imul(Ge,Ie)|0,k=Math.imul(Ge,je),x=x+Math.imul(He,xt)|0,A=(A=A+Math.imul(He,ot)|0)+Math.imul(qe,xt)|0,k=k+Math.imul(qe,ot)|0,x=x+Math.imul(Ee,At)|0,A=(A=A+Math.imul(Ee,vt)|0)+Math.imul(Se,At)|0,k=k+Math.imul(Se,vt)|0;var Et=(K+(x=x+Math.imul(fe,Dt)|0)|0)+((8191&(A=(A=A+Math.imul(fe,Ht)|0)+Math.imul(de,Dt)|0))<<13)|0;K=((k=k+Math.imul(de,Ht)|0)+(A>>>13)|0)+(Et>>>26)|0,Et&=67108863,x=Math.imul(Be,xt),A=(A=Math.imul(Be,ot))+Math.imul(Ge,xt)|0,k=Math.imul(Ge,ot),x=x+Math.imul(He,At)|0,A=(A=A+Math.imul(He,vt)|0)+Math.imul(qe,At)|0,k=k+Math.imul(qe,vt)|0;var dr=(K+(x=x+Math.imul(Ee,Dt)|0)|0)+((8191&(A=(A=A+Math.imul(Ee,Ht)|0)+Math.imul(Se,Dt)|0))<<13)|0;K=((k=k+Math.imul(Se,Ht)|0)+(A>>>13)|0)+(dr>>>26)|0,dr&=67108863,x=Math.imul(Be,At),A=(A=Math.imul(Be,vt))+Math.imul(Ge,At)|0,k=Math.imul(Ge,vt);var xr=(K+(x=x+Math.imul(He,Dt)|0)|0)+((8191&(A=(A=A+Math.imul(He,Ht)|0)+Math.imul(qe,Dt)|0))<<13)|0;K=((k=k+Math.imul(qe,Ht)|0)+(A>>>13)|0)+(xr>>>26)|0,xr&=67108863;var Jt=(K+(x=Math.imul(Be,Dt))|0)+((8191&(A=(A=Math.imul(Be,Ht))+Math.imul(Ge,Dt)|0))<<13)|0;return K=((k=Math.imul(Ge,Ht))+(A>>>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]=Ft,X[14]=Lt,X[15]=Et,X[16]=dr,X[17]=xr,X[18]=Jt,K!==0&&(X[19]=K,w.length++),w};function D(C,_,w){w.negative=_.negative^C.negative,w.length=C.length+_.length;for(var x=0,A=0,k=0;k<w.length-1;k++){var R=A;A=0;for(var M=67108863&x,X=Math.min(k,_.length-1),K=Math.max(0,k-C.length+1);K<=X;K++){var te=k-K,$=(0|C.words[te])*(0|_.words[K]),q=67108863&$;M=67108863&(q=q+M|0),A+=(R=(R=R+($/67108864|0)|0)+(q>>>26)|0)>>>26,R&=67108863}w.words[k]=M,x=R,R=A}return x!==0?w.words[k]=x:w.length--,w._strip()}function F(C,_,w){return D(C,_,w)}Math.imul||(E=b),c.prototype.mulTo=function(C,_){var w=this.length+C.length;return this.length===10&&C.length===10?E(this,C,_):w<63?b(this,C,_):w<1024?D(this,C,_):F(this,C,_)},c.prototype.mul=function(C){var _=new c(null);return _.words=new Array(this.length+C.length),this.mulTo(C,_)},c.prototype.mulf=function(C){var _=new c(null);return _.words=new Array(this.length+C.length),F(this,C,_)},c.prototype.imul=function(C){return this.clone().mulTo(C,this)},c.prototype.imuln=function(C){var _=C<0;_&&(C=-C),s(typeof C=="number"),s(C<67108864);for(var w=0,x=0;x<this.length;x++){var A=(0|this.words[x])*C,k=(67108863&A)+(67108863&w);w>>=26,w+=A/67108864|0,w+=k>>>26,this.words[x]=67108863&k}return w!==0&&(this.words[x]=w,this.length++),_?this.ineg():this},c.prototype.muln=function(C){return this.clone().imuln(C)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(C){var _=function(k){for(var R=new Array(k.bitLength()),M=0;M<R.length;M++){var X=M/26|0,K=M%26;R[M]=k.words[X]>>>K&1}return R}(C);if(_.length===0)return new c(1);for(var w=this,x=0;x<_.length&&_[x]===0;x++,w=w.sqr());if(++x<_.length)for(var A=w.sqr();x<_.length;x++,A=A.sqr())_[x]!==0&&(w=w.mul(A));return w},c.prototype.iushln=function(C){s(typeof C=="number"&&C>=0);var _,w=C%26,x=(C-w)/26,A=67108863>>>26-w<<26-w;if(w!==0){var k=0;for(_=0;_<this.length;_++){var R=this.words[_]&A,M=(0|this.words[_])-R<<w;this.words[_]=M|k,k=R>>>26-w}k&&(this.words[_]=k,this.length++)}if(x!==0){for(_=this.length-1;_>=0;_--)this.words[_+x]=this.words[_];for(_=0;_<x;_++)this.words[_]=0;this.length+=x}return this._strip()},c.prototype.ishln=function(C){return s(this.negative===0),this.iushln(C)},c.prototype.iushrn=function(C,_,w){var x;s(typeof C=="number"&&C>=0),x=_?(_-_%26)/26:0;var A=C%26,k=Math.min((C-A)/26,this.length),R=67108863^67108863>>>A<<A,M=w;if(x-=k,x=Math.max(0,x),M){for(var X=0;X<k;X++)M.words[X]=this.words[X];M.length=k}if(k!==0)if(this.length>k)for(this.length-=k,X=0;X<this.length;X++)this.words[X]=this.words[X+k];else this.words[0]=0,this.length=1;var K=0;for(X=this.length-1;X>=0&&(K!==0||X>=x);X--){var te=0|this.words[X];this.words[X]=K<<26-A|te>>>A,K=te&R}return M&&K!==0&&(M.words[M.length++]=K),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},c.prototype.ishrn=function(C,_,w){return s(this.negative===0),this.iushrn(C,_,w)},c.prototype.shln=function(C){return this.clone().ishln(C)},c.prototype.ushln=function(C){return this.clone().iushln(C)},c.prototype.shrn=function(C){return this.clone().ishrn(C)},c.prototype.ushrn=function(C){return this.clone().iushrn(C)},c.prototype.testn=function(C){s(typeof C=="number"&&C>=0);var _=C%26,w=(C-_)/26,x=1<<_;return!(this.length<=w)&&!!(this.words[w]&x)},c.prototype.imaskn=function(C){s(typeof C=="number"&&C>=0);var _=C%26,w=(C-_)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(_!==0&&w++,this.length=Math.min(w,this.length),_!==0){var x=67108863^67108863>>>_<<_;this.words[this.length-1]&=x}return this._strip()},c.prototype.maskn=function(C){return this.clone().imaskn(C)},c.prototype.iaddn=function(C){return s(typeof C=="number"),s(C<67108864),C<0?this.isubn(-C):this.negative!==0?this.length===1&&(0|this.words[0])<=C?(this.words[0]=C-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(C),this.negative=1,this):this._iaddn(C)},c.prototype._iaddn=function(C){this.words[0]+=C;for(var _=0;_<this.length&&this.words[_]>=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+1),this},c.prototype.isubn=function(C){if(s(typeof C=="number"),s(C<67108864),C<0)return this.iaddn(-C);if(this.negative!==0)return this.negative=0,this.iaddn(C),this.negative=1,this;if(this.words[0]-=C,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_<this.length&&this.words[_]<0;_++)this.words[_]+=67108864,this.words[_+1]-=1;return this._strip()},c.prototype.addn=function(C){return this.clone().iaddn(C)},c.prototype.subn=function(C){return this.clone().isubn(C)},c.prototype.iabs=function(){return this.negative=0,this},c.prototype.abs=function(){return this.clone().iabs()},c.prototype._ishlnsubmul=function(C,_,w){var x,A,k=C.length+w;this._expand(k);var R=0;for(x=0;x<C.length;x++){A=(0|this.words[x+w])+R;var M=(0|C.words[x])*_;R=((A-=67108863&M)>>26)-(M/67108864|0),this.words[x+w]=67108863&A}for(;x<this.length-w;x++)R=(A=(0|this.words[x+w])+R)>>26,this.words[x+w]=67108863&A;if(R===0)return this._strip();for(s(R===-1),R=0,x=0;x<this.length;x++)R=(A=-(0|this.words[x])+R)>>26,this.words[x]=67108863&A;return this.negative=1,this._strip()},c.prototype._wordDiv=function(C,_){var w=(this.length,C.length),x=this.clone(),A=C,k=0|A.words[A.length-1];(w=26-this._countBits(k))!=0&&(A=A.ushln(w),x.iushln(w),k=0|A.words[A.length-1]);var R,M=x.length-A.length;if(_!=="mod"){(R=new c(null)).length=M+1,R.words=new Array(R.length);for(var X=0;X<R.length;X++)R.words[X]=0}var K=x.clone()._ishlnsubmul(A,1,M);K.negative===0&&(x=K,R&&(R.words[M]=1));for(var te=M-1;te>=0;te--){var $=67108864*(0|x.words[A.length+te])+(0|x.words[A.length+te-1]);for($=Math.min($/k|0,67108863),x._ishlnsubmul(A,$,te);x.negative!==0;)$--,x.negative=0,x._ishlnsubmul(A,1,te),x.isZero()||(x.negative^=1);R&&(R.words[te]=$)}return R&&R._strip(),x._strip(),_!=="div"&&w!==0&&x.iushrn(w),{div:R||null,mod:x}},c.prototype.divmod=function(C,_,w){return s(!C.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:this.negative!==0&&C.negative===0?(k=this.neg().divmod(C,_),_!=="mod"&&(x=k.div.neg()),_!=="div"&&(A=k.mod.neg(),w&&A.negative!==0&&A.iadd(C)),{div:x,mod:A}):this.negative===0&&C.negative!==0?(k=this.divmod(C.neg(),_),_!=="mod"&&(x=k.div.neg()),{div:x,mod:k.mod}):(this.negative&C.negative)!=0?(k=this.neg().divmod(C.neg(),_),_!=="div"&&(A=k.mod.neg(),w&&A.negative!==0&&A.isub(C)),{div:k.div,mod:A}):C.length>this.length||this.cmp(C)<0?{div:new c(0),mod:this}:C.length===1?_==="div"?{div:this.divn(C.words[0]),mod:null}:_==="mod"?{div:null,mod:new c(this.modrn(C.words[0]))}:{div:this.divn(C.words[0]),mod:new c(this.modrn(C.words[0]))}:this._wordDiv(C,_);var x,A,k},c.prototype.div=function(C){return this.divmod(C,"div",!1).div},c.prototype.mod=function(C){return this.divmod(C,"mod",!1).mod},c.prototype.umod=function(C){return this.divmod(C,"mod",!0).mod},c.prototype.divRound=function(C){var _=this.divmod(C);if(_.mod.isZero())return _.div;var w=_.div.negative!==0?_.mod.isub(C):_.mod,x=C.ushrn(1),A=C.andln(1),k=w.cmp(x);return k<0||A===1&&k===0?_.div:_.div.negative!==0?_.div.isubn(1):_.div.iaddn(1)},c.prototype.modrn=function(C){var _=C<0;_&&(C=-C),s(C<=67108863);for(var w=(1<<26)%C,x=0,A=this.length-1;A>=0;A--)x=(w*x+(0|this.words[A]))%C;return _?-x:x},c.prototype.modn=function(C){return this.modrn(C)},c.prototype.idivn=function(C){var _=C<0;_&&(C=-C),s(C<=67108863);for(var w=0,x=this.length-1;x>=0;x--){var A=(0|this.words[x])+67108864*w;this.words[x]=A/C|0,w=A%C}return this._strip(),_?this.ineg():this},c.prototype.divn=function(C){return this.clone().idivn(C)},c.prototype.egcd=function(C){s(C.negative===0),s(!C.isZero());var _=this,w=C.clone();_=_.negative!==0?_.umod(C):_.clone();for(var x=new c(1),A=new c(0),k=new c(0),R=new c(1),M=0;_.isEven()&&w.isEven();)_.iushrn(1),w.iushrn(1),++M;for(var X=w.clone(),K=_.clone();!_.isZero();){for(var te=0,$=1;(_.words[0]&$)==0&&te<26;++te,$<<=1);if(te>0)for(_.iushrn(te);te-- >0;)(x.isOdd()||A.isOdd())&&(x.iadd(X),A.isub(K)),x.iushrn(1),A.iushrn(1);for(var q=0,O=1;(w.words[0]&O)==0&&q<26;++q,O<<=1);if(q>0)for(w.iushrn(q);q-- >0;)(k.isOdd()||R.isOdd())&&(k.iadd(X),R.isub(K)),k.iushrn(1),R.iushrn(1);_.cmp(w)>=0?(_.isub(w),x.isub(k),A.isub(R)):(w.isub(_),k.isub(x),R.isub(A))}return{a:k,b:R,gcd:w.iushln(M)}},c.prototype._invmp=function(C){s(C.negative===0),s(!C.isZero());var _=this,w=C.clone();_=_.negative!==0?_.umod(C):_.clone();for(var x,A=new c(1),k=new c(0),R=w.clone();_.cmpn(1)>0&&w.cmpn(1)>0;){for(var M=0,X=1;(_.words[0]&X)==0&&M<26;++M,X<<=1);if(M>0)for(_.iushrn(M);M-- >0;)A.isOdd()&&A.iadd(R),A.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;)k.isOdd()&&k.iadd(R),k.iushrn(1);_.cmp(w)>=0?(_.isub(w),A.isub(k)):(w.isub(_),k.isub(A))}return(x=_.cmpn(1)===0?A:k).cmpn(0)<0&&x.iadd(C),x},c.prototype.gcd=function(C){if(this.isZero())return C.abs();if(C.isZero())return this.abs();var _=this.clone(),w=C.clone();_.negative=0,w.negative=0;for(var x=0;_.isEven()&&w.isEven();x++)_.iushrn(1),w.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;w.isEven();)w.iushrn(1);var A=_.cmp(w);if(A<0){var k=_;_=w,w=k}else if(A===0||w.cmpn(1)===0)break;_.isub(w)}return w.iushln(x)},c.prototype.invm=function(C){return this.egcd(C).a.umod(C)},c.prototype.isEven=function(){return(1&this.words[0])==0},c.prototype.isOdd=function(){return(1&this.words[0])==1},c.prototype.andln=function(C){return this.words[0]&C},c.prototype.bincn=function(C){s(typeof C=="number");var _=C%26,w=(C-_)/26,x=1<<_;if(this.length<=w)return this._expand(w+1),this.words[w]|=x,this;for(var A=x,k=w;A!==0&&k<this.length;k++){var R=0|this.words[k];A=(R+=A)>>>26,R&=67108863,this.words[k]=R}return A!==0&&(this.words[k]=A,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(C){var _,w=C<0;if(this.negative!==0&&!w)return-1;if(this.negative===0&&w)return 1;if(this._strip(),this.length>1)_=1;else{w&&(C=-C),s(C<=67108863,"Number is too big");var x=0|this.words[0];_=x===C?0:x<C?-1:1}return this.negative!==0?0|-_:_},c.prototype.cmp=function(C){if(this.negative!==0&&C.negative===0)return-1;if(this.negative===0&&C.negative!==0)return 1;var _=this.ucmp(C);return this.negative!==0?0|-_:_},c.prototype.ucmp=function(C){if(this.length>C.length)return 1;if(this.length<C.length)return-1;for(var _=0,w=this.length-1;w>=0;w--){var x=0|this.words[w],A=0|C.words[w];if(x!==A){x<A?_=-1:x>A&&(_=1);break}}return _},c.prototype.gtn=function(C){return this.cmpn(C)===1},c.prototype.gt=function(C){return this.cmp(C)===1},c.prototype.gten=function(C){return this.cmpn(C)>=0},c.prototype.gte=function(C){return this.cmp(C)>=0},c.prototype.ltn=function(C){return this.cmpn(C)===-1},c.prototype.lt=function(C){return this.cmp(C)===-1},c.prototype.lten=function(C){return this.cmpn(C)<=0},c.prototype.lte=function(C){return this.cmp(C)<=0},c.prototype.eqn=function(C){return this.cmpn(C)===0},c.prototype.eq=function(C){return this.cmp(C)===0},c.red=function(C){return new I(C)},c.prototype.toRed=function(C){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),C.convertTo(this)._forceRed(C)},c.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(C){return this.red=C,this},c.prototype.forceRed=function(C){return s(!this.red,"Already a number in reduction context"),this._forceRed(C)},c.prototype.redAdd=function(C){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,C)},c.prototype.redIAdd=function(C){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,C)},c.prototype.redSub=function(C){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,C)},c.prototype.redISub=function(C){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,C)},c.prototype.redShl=function(C){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,C)},c.prototype.redMul=function(C){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,C),this.red.mul(this,C)},c.prototype.redIMul=function(C){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,C),this.red.imul(this,C)},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(C){return s(this.red&&!C.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,C)};var z={k256:null,p224:null,p192:null,p25519:null};function W(C,_){this.name=C,this.p=new c(_,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 P(){W.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(C){if(typeof C=="string"){var _=c._prime(C);this.m=_.p,this.prime=_}else s(C.gtn(1),"modulus must be greater than 1"),this.m=C,this.prime=null}function S(C){I.call(this,C),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 C=new c(null);return C.words=new Array(Math.ceil(this.n/13)),C},W.prototype.ireduce=function(C){var _,w=C;do this.split(w,this.tmp),_=(w=(w=this.imulK(w)).iadd(this.tmp)).bitLength();while(_>this.n);var x=_<this.n?-1:w.ucmp(this.p);return x===0?(w.words[0]=0,w.length=1):x>0?w.isub(this.p):w.strip!==void 0?w.strip():w._strip(),w},W.prototype.split=function(C,_){C.iushrn(this.n,0,_)},W.prototype.imulK=function(C){return C.imul(this.k)},u(U,W),U.prototype.split=function(C,_){for(var w=Math.min(C.length,9),x=0;x<w;x++)_.words[x]=C.words[x];if(_.length=w,C.length<=9)return C.words[0]=0,void(C.length=1);var A=C.words[9];for(_.words[_.length++]=4194303&A,x=10;x<C.length;x++){var k=0|C.words[x];C.words[x-10]=(4194303&k)<<4|A>>>22,A=k}A>>>=22,C.words[x-10]=A,A===0&&C.length>10?C.length-=10:C.length-=9},U.prototype.imulK=function(C){C.words[C.length]=0,C.words[C.length+1]=0,C.length+=2;for(var _=0,w=0;w<C.length;w++){var x=0|C.words[w];_+=977*x,C.words[w]=67108863&_,_=64*x+(_/67108864|0)}return C.words[C.length-1]===0&&(C.length--,C.words[C.length-1]===0&&C.length--),C},u(G,W),u(ee,W),u(P,W),P.prototype.imulK=function(C){for(var _=0,w=0;w<C.length;w++){var x=19*(0|C.words[w])+_,A=67108863&x;x>>>=26,C.words[w]=A,_=x}return _!==0&&(C.words[C.length++]=_),C},c._prime=function(C){if(z[C])return z[C];var _;if(C==="k256")_=new U;else if(C==="p224")_=new G;else if(C==="p192")_=new ee;else{if(C!=="p25519")throw new Error("Unknown prime "+C);_=new P}return z[C]=_,_},I.prototype._verify1=function(C){s(C.negative===0,"red works only with positives"),s(C.red,"red works only with red numbers")},I.prototype._verify2=function(C,_){s((C.negative|_.negative)==0,"red works only with positives"),s(C.red&&C.red===_.red,"red works only with red numbers")},I.prototype.imod=function(C){return this.prime?this.prime.ireduce(C)._forceRed(this):(g(C,C.umod(this.m)._forceRed(this)),C)},I.prototype.neg=function(C){return C.isZero()?C.clone():this.m.sub(C)._forceRed(this)},I.prototype.add=function(C,_){this._verify2(C,_);var w=C.add(_);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},I.prototype.iadd=function(C,_){this._verify2(C,_);var w=C.iadd(_);return w.cmp(this.m)>=0&&w.isub(this.m),w},I.prototype.sub=function(C,_){this._verify2(C,_);var w=C.sub(_);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},I.prototype.isub=function(C,_){this._verify2(C,_);var w=C.isub(_);return w.cmpn(0)<0&&w.iadd(this.m),w},I.prototype.shl=function(C,_){return this._verify1(C),this.imod(C.ushln(_))},I.prototype.imul=function(C,_){return this._verify2(C,_),this.imod(C.imul(_))},I.prototype.mul=function(C,_){return this._verify2(C,_),this.imod(C.mul(_))},I.prototype.isqr=function(C){return this.imul(C,C.clone())},I.prototype.sqr=function(C){return this.mul(C,C)},I.prototype.sqrt=function(C){if(C.isZero())return C.clone();var _=this.m.andln(3);if(s(_%2==1),_===3){var w=this.m.add(new c(1)).iushrn(2);return this.pow(C,w)}for(var x=this.m.subn(1),A=0;!x.isZero()&&x.andln(1)===0;)A++,x.iushrn(1);s(!x.isZero());var k=new c(1).toRed(this),R=k.redNeg(),M=this.m.subn(1).iushrn(1),X=this.m.bitLength();for(X=new c(2*X*X).toRed(this);this.pow(X,M).cmp(R)!==0;)X.redIAdd(R);for(var K=this.pow(X,x),te=this.pow(C,x.addn(1).iushrn(1)),$=this.pow(C,x),q=A;$.cmp(k)!==0;){for(var O=$,L=0;O.cmp(k)!==0;L++)O=O.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},I.prototype.invm=function(C){var _=C._invmp(this.m);return _.negative!==0?(_.negative=0,this.imod(_).redNeg()):this.imod(_)},I.prototype.pow=function(C,_){if(_.isZero())return new c(1).toRed(this);if(_.cmpn(1)===0)return C.clone();var w=new Array(16);w[0]=new c(1).toRed(this),w[1]=C;for(var x=2;x<w.length;x++)w[x]=this.mul(w[x-1],C);var A=w[0],k=0,R=0,M=_.bitLength()%26;for(M===0&&(M=26),x=_.length-1;x>=0;x--){for(var X=_.words[x],K=M-1;K>=0;K--){var te=X>>K&1;A!==w[0]&&(A=this.sqr(A)),te!==0||k!==0?(k<<=1,k|=te,(++R==4||x===0&&K===0)&&(A=this.mul(A,w[k]),R=0,k=0)):R=0}M=26}return A},I.prototype.convertTo=function(C){var _=C.umod(this.m);return _===C?_.clone():_},I.prototype.convertFrom=function(C){var _=C.clone();return _.red=null,_},c.mont=function(C){return new S(C)},u(S,I),S.prototype.convertTo=function(C){return this.imod(C.ushln(this.shift))},S.prototype.convertFrom=function(C){var _=this.imod(C.mul(this.rinv));return _.red=null,_},S.prototype.imul=function(C,_){if(C.isZero()||_.isZero())return C.words[0]=0,C.length=1,C;var w=C.imul(_),x=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),A=w.isub(x).iushrn(this.shift),k=A;return A.cmp(this.m)>=0?k=A.isub(this.m):A.cmpn(0)<0&&(k=A.iadd(this.m)),k._forceRed(this)},S.prototype.mul=function(C,_){if(C.isZero()||_.isZero())return new c(0)._forceRed(this);var w=C.mul(_),x=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),A=w.isub(x).iushrn(this.shift),k=A;return A.cmp(this.m)>=0?k=A.isub(this.m):A.cmpn(0)<0&&(k=A.iadd(this.m)),k._forceRed(this)},S.prototype.invm=function(C){return this.imod(C._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,E,D=g[0],F=g[1],z=g[2],W=g[3],U=h[0]^f[0],G=h[1]^f[1],ee=h[2]^f[2],P=h[3]^f[3],I=4,S=1;S<p;S++)y=D[U>>>24]^F[G>>>16&255]^z[ee>>>8&255]^W[255&P]^f[I++],v=D[G>>>24]^F[ee>>>16&255]^z[P>>>8&255]^W[255&U]^f[I++],b=D[ee>>>24]^F[P>>>16&255]^z[U>>>8&255]^W[255&G]^f[I++],E=D[P>>>24]^F[U>>>16&255]^z[G>>>8&255]^W[255&ee]^f[I++],U=y,G=v,ee=b,P=E;return y=(m[U>>>24]<<24|m[G>>>16&255]<<16|m[ee>>>8&255]<<8|m[255&P])^f[I++],v=(m[G>>>24]<<24|m[ee>>>16&255]<<16|m[P>>>8&255]<<8|m[255&U])^f[I++],b=(m[ee>>>24]<<24|m[P>>>16&255]<<16|m[U>>>8&255]<<8|m[255&G])^f[I++],E=(m[P>>>24]<<24|m[U>>>16&255]<<16|m[G>>>8&255]<<8|m[255&ee])^f[I++],[y>>>=0,v>>>=0,b>>>=0,E>>>=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,E=0;E<256;++E){var D=b^b<<1^b<<2^b<<3^b<<4;D=D>>>8^255&D^99,g[v]=D,m[D]=v;var F=h[v],z=h[F],W=h[z],U=257*h[D]^16843008*D;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*F^16843008*v,y[0][D]=U<<24|U>>>8,y[1][D]=U<<16|U>>>16,y[2][D]=U<<8|U>>>24,y[3][D]=U,v===0?v=b=1:(v=F^h[h[h[W^F]]],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=[],E=0;E<m;E++){var D=m-E,F=p[D-(E%4?0:4)];b[E]=E<4||D<=4?F:l.INV_SUB_MIX[0][l.SBOX[F>>>24]]^l.INV_SUB_MIX[1][l.SBOX[F>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[F>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&F]]}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,E,D){if(E.length===12)return b._finID=o.concat([E,o.from([0,0,0,1])]),o.concat([E,o.from([0,0,0,2])]);var F=new c(D),z=E.length,W=z%16;F.update(E),W&&(W=16-W,F.update(o.alloc(W,0))),F.update(o.alloc(8,0));var U=8*z,G=o.alloc(8);G.writeUIntBE(U,0,8),F.update(G),b._finID=F.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,E=m.redPow(d.exponent1).fromRed(),D=p.redPow(d.exponent2).fromRed(),F=E.isub(D).imul(y).umod(v).imul(b);return D.iadd(F).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 E=a.alloc(y.byteLength()-p.length);p=a.concat([E,p])}var D=v.length,F=function(U,G){U=(U=f(U,G)).mod(G);var ee=a.from(U.toArray());if(ee.length<G.byteLength()){var P=a.alloc(G.byteLength()-ee.length);ee=a.concat([P,ee])}return ee}(v,y),z=a.alloc(D);z.fill(1);var W=a.alloc(D);return W=o(b,W).update(z).update(a.from([0])).update(p).update(F).digest(),z=o(b,W).update(z).digest(),{k:W=o(b,W).update(z).update(a.from([1])).update(p).update(F).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,E;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]);E=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(E.cmp(p)!==-1);return E}function m(p,y,v,b){return p.toRed(c.mont(v)).redPow(y).fromRed().mod(b)}n.exports=function(p,y,v,b,E){var D=l(y);if(D.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 P=new u(ee).keyFromPrivate(G.privateKey).sign(U);return a.from(P.toDER())}(p,D)}if(D.type==="dsa"){if(b!=="dsa")throw new Error("wrong private key type");return function(U,G,ee){for(var P,I=G.params.priv_key,S=G.params.p,C=G.params.q,_=G.params.g,w=new c(0),x=f(U,C).mod(C),A=!1,k=h(I,C,U,ee);A===!1;)P=g(C,k,ee),w=m(_,P,S,C),(A=P.invm(C).imul(x.add(I.mul(w))).mod(C)).cmpn(0)===0&&(A=!1,w=new c(0));return function(R,M){R=R.toArray(),M=M.toArray(),128&R[0]&&(R=[0].concat(R)),128&M[0]&&(M=[0].concat(M));var X=[48,R.length+M.length+4,2,R.length];return X=X.concat(R,[2,M.length],M),a.from(X)}(w,A)}(p,D,v)}if(b!=="rsa"&&b!=="ecdsa/rsa")throw new Error("wrong private key type");p=a.concat([E,p]);for(var F=D.modulus.byteLength(),z=[0,1];p.length+z.length+1<F;)z.push(255);z.push(0);for(var W=-1;++W<p.length;)z.push(p[W]);return s(z,D)},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),P=U.data.subjectPrivateKey.data;return ee.verify(W,z,P)}(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,P=U.data.g,I=U.data.pub_key,S=u.signature.decode(z,"der"),C=S.s,_=S.r;l(C,ee),l(_,ee);var w=o.mont(G),x=C.invm(ee);return P.toRed(w).redPow(new o(W).mul(x).mod(ee)).fromRed().mul(I.toRed(w).redPow(_.mul(x).mod(ee)).fromRed()).mod(G).mod(ee).cmp(_)===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 E=-1;++E<h.length;)v.push(h[E]);v=a.from(v);var D=o.mont(p.modulus);d=(d=new o(d).toRed(D)).redPow(new o(p.publicExponent)),d=a.from(d.fromRed().toArray());var F=b<8?1:0;for(y=Math.min(d.length,v.length),d.length!==v.length&&(F=1),E=-1;++E<y;)F|=d[E]^v[E];return F===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(E){if(!E)return"utf8";for(var D;;)switch(E){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 E;default:if(D)return;E=(""+E).toLowerCase(),D=!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,E,D){if((192&E[0])!=128)return b.lastNeed=0,"\uFFFD";if(b.lastNeed>1&&E.length>1){if((192&E[1])!=128)return b.lastNeed=1,"\uFFFD";if(b.lastNeed>2&&E.length>2&&(192&E[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(E,D,F){var z=D.length-1;if(z<F)return 0;var W=u(D[z]);return W>=0?(W>0&&(E.lastNeed=W-1),W):--z<F||W===-2?0:(W=u(D[z]))>=0?(W>0&&(E.lastNeed=W-2),W):--z<F||W===-2?0:(W=u(D[z]))>=0?(W>0&&(W===2?W=0:E.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(O){return+O!=O&&(O=0),c.alloc(+O)},i.INSPECT_MAX_BYTES=50;function u(O){if(O>2147483647)throw new RangeError('The value "'+O+'" is invalid for option "size"');var L=new Uint8Array(O);return L.__proto__=c.prototype,L}function c(O,L,V){if(typeof O=="number"){if(typeof L=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(O)}return l(O,L,V)}function l(O,L,V){if(typeof O=="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),B=Q.write(ae,j);return B!==ue&&(Q=Q.slice(0,B)),Q}(O,L);if(ArrayBuffer.isView(O))return f(O);if(O==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O);if($(O,ArrayBuffer)||O&&$(O.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}(O,L,V);if(typeof O=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var J=O.valueOf&&O.valueOf();if(J!=null&&J!==O)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)}(O);if(re)return re;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return c.from(O[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 O)}function d(O){if(typeof O!="number")throw new TypeError('"size" argument must be of type number');if(O<0)throw new RangeError('The value "'+O+'" is invalid for option "size"')}function h(O){return d(O),u(O<0?0:0|g(O))}function f(O){for(var L=O.length<0?0:0|g(O.length),V=u(L),J=0;J<L;J+=1)V[J]=255&O[J];return V}function g(O){if(O>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647 .toString(16)+" bytes");return 0|O}function m(O,L){if(c.isBuffer(O))return O.length;if(ArrayBuffer.isView(O)||$(O,ArrayBuffer))return O.byteLength;if(typeof O!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof O);var V=O.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(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*V;case"hex":return V>>>1;case"base64":return K(O).length;default:if(re)return J?-1:X(O).length;L=(""+L).toLowerCase(),re=!0}}function p(O,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(O||(O="utf8");;)switch(O){case"hex":return S(this,L,V);case"utf8":case"utf-8":return ee(this,L,V);case"ascii":return P(this,L,V);case"latin1":case"binary":return I(this,L,V);case"base64":return G(this,L,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,L,V);default:if(J)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),J=!0}}function y(O,L,V){var J=O[L];O[L]=O[V],O[V]=J}function v(O,L,V,J,re){if(O.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:O.length-1),V<0&&(V=O.length+V),V>=O.length){if(re)return-1;V=O.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(O,L,V,J,re);if(typeof L=="number")return L&=255,typeof Uint8Array.prototype.indexOf=="function"?re?Uint8Array.prototype.indexOf.call(O,L,V):Uint8Array.prototype.lastIndexOf.call(O,L,V):b(O,[L],V,J,re);throw new TypeError("val must be string, number or Buffer")}function b(O,L,V,J,re){var ae,j=1,ue=O.length,Q=L.length;if(J!==void 0&&((J=String(J).toLowerCase())==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(O.length<2||L.length<2)return-1;j=2,ue/=2,Q/=2,V/=2}function B(ce,ne){return j===1?ce[ne]:ce.readUInt16BE(ne*j)}if(re){var H=-1;for(ae=V;ae<ue;ae++)if(B(O,ae)===B(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(B(O,ae+oe)!==B(L,oe)){Z=!1;break}if(Z)return ae}return-1}function E(O,L,V,J){V=Number(V)||0;var re=O.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;O[V+j]=ue}return j}function D(O,L,V,J){return te(X(L,O.length-V),O,V,J)}function F(O,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),O,V,J)}function z(O,L,V,J){return F(O,L,V,J)}function W(O,L,V,J){return te(K(L),O,V,J)}function U(O,L,V,J){return te(function(re,ae){for(var j,ue,Q,B=[],H=0;H<re.length&&!((ae-=2)<0);++H)j=re.charCodeAt(H),ue=j>>8,Q=j%256,B.push(Q),B.push(ue);return B}(L,O.length-V),O,V,J)}function G(O,L,V){return L===0&&V===O.length?o.fromByteArray(O):o.fromByteArray(O.slice(L,V))}function ee(O,L,V){V=Math.min(O.length,V);for(var J=[],re=L;re<V;){var ae,j,ue,Q,B=O[re],H=null,Z=B>239?4:B>223?3:B>191?2:1;if(re+Z<=V)switch(Z){case 1:B<128&&(H=B);break;case 2:(192&(ae=O[re+1]))==128&&(Q=(31&B)<<6|63&ae)>127&&(H=Q);break;case 3:ae=O[re+1],j=O[re+2],(192&ae)==128&&(192&j)==128&&(Q=(15&B)<<12|(63&ae)<<6|63&j)>2047&&(Q<55296||Q>57343)&&(H=Q);break;case 4:ae=O[re+1],j=O[re+2],ue=O[re+3],(192&ae)==128&&(192&j)==128&&(192&ue)==128&&(Q=(15&B)<<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 O=new Uint8Array(1);return O.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},O.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(O,L,V){return l(O,L,V)},c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,c.alloc=function(O,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)}(O,L,V)},c.allocUnsafe=function(O){return h(O)},c.allocUnsafeSlow=function(O){return h(O)},c.isBuffer=function(O){return O!=null&&O._isBuffer===!0&&O!==c.prototype},c.compare=function(O,L){if($(O,Uint8Array)&&(O=c.from(O,O.offset,O.byteLength)),$(L,Uint8Array)&&(L=c.from(L,L.offset,L.byteLength)),!c.isBuffer(O)||!c.isBuffer(L))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(O===L)return 0;for(var V=O.length,J=L.length,re=0,ae=Math.min(V,J);re<ae;++re)if(O[re]!==L[re]){V=O[re],J=L[re];break}return V<J?-1:J<V?1:0},c.isEncoding=function(O){switch(String(O).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(O,L){if(!Array.isArray(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return c.alloc(0);var V;if(L===void 0)for(L=0,V=0;V<O.length;++V)L+=O[V].length;var J=c.allocUnsafe(L),re=0;for(V=0;V<O.length;++V){var ae=O[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 O=this.length;if(O%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var L=0;L<O;L+=2)y(this,L,L+1);return this},c.prototype.swap32=function(){var O=this.length;if(O%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var L=0;L<O;L+=4)y(this,L,L+3),y(this,L+1,L+2);return this},c.prototype.swap64=function(){var O=this.length;if(O%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var L=0;L<O;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 O=this.length;return O===0?"":arguments.length===0?ee(this,0,O):p.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(O){if(!c.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O||c.compare(this,O)===0},c.prototype.inspect=function(){var O="",L=i.INSPECT_MAX_BYTES;return O=this.toString("hex",0,L).replace(/(.{2})/g,"$1 ").trim(),this.length>L&&(O+=" ... "),"<Buffer "+O+">"},c.prototype.compare=function(O,L,V,J,re){if($(O,Uint8Array)&&(O=c.from(O,O.offset,O.byteLength)),!c.isBuffer(O))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof O);if(L===void 0&&(L=0),V===void 0&&(V=O?O.length:0),J===void 0&&(J=0),re===void 0&&(re=this.length),L<0||V>O.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===O)return 0;for(var ae=(re>>>=0)-(J>>>=0),j=(V>>>=0)-(L>>>=0),ue=Math.min(ae,j),Q=this.slice(J,re),B=O.slice(L,V),H=0;H<ue;++H)if(Q[H]!==B[H]){ae=Q[H],j=B[H];break}return ae<j?-1:j<ae?1:0},c.prototype.includes=function(O,L,V){return this.indexOf(O,L,V)!==-1},c.prototype.indexOf=function(O,L,V){return v(this,O,L,V,!0)},c.prototype.lastIndexOf=function(O,L,V){return v(this,O,L,V,!1)},c.prototype.write=function(O,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),O.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 E(this,O,L,V);case"utf8":case"utf-8":return D(this,O,L,V);case"ascii":return F(this,O,L,V);case"latin1":case"binary":return z(this,O,L,V);case"base64":return W(this,O,L,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,O,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 P(O,L,V){var J="";V=Math.min(O.length,V);for(var re=L;re<V;++re)J+=String.fromCharCode(127&O[re]);return J}function I(O,L,V){var J="";V=Math.min(O.length,V);for(var re=L;re<V;++re)J+=String.fromCharCode(O[re]);return J}function S(O,L,V){var J=O.length;(!L||L<0)&&(L=0),(!V||V<0||V>J)&&(V=J);for(var re="",ae=L;ae<V;++ae)re+=M(O[ae]);return re}function C(O,L,V){for(var J=O.slice(L,V),re="",ae=0;ae<J.length;ae+=2)re+=String.fromCharCode(J[ae]+256*J[ae+1]);return re}function _(O,L,V){if(O%1!=0||O<0)throw new RangeError("offset is not uint");if(O+L>V)throw new RangeError("Trying to access beyond buffer length")}function w(O,L,V,J,re,ae){if(!c.isBuffer(O))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>O.length)throw new RangeError("Index out of range")}function x(O,L,V,J,re,ae){if(V+J>O.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("Index out of range")}function A(O,L,V,J,re){return L=+L,V>>>=0,re||x(O,0,V,4),s.write(O,L,V,J,23,4),V+4}function k(O,L,V,J,re){return L=+L,V>>>=0,re||x(O,0,V,8),s.write(O,L,V,J,52,8),V+8}c.prototype.slice=function(O,L){var V=this.length;(O=~~O)<0?(O+=V)<0&&(O=0):O>V&&(O=V),(L=L===void 0?V:~~L)<0?(L+=V)<0&&(L=0):L>V&&(L=V),L<O&&(L=O);var J=this.subarray(O,L);return J.__proto__=c.prototype,J},c.prototype.readUIntLE=function(O,L,V){O>>>=0,L>>>=0,V||_(O,L,this.length);for(var J=this[O],re=1,ae=0;++ae<L&&(re*=256);)J+=this[O+ae]*re;return J},c.prototype.readUIntBE=function(O,L,V){O>>>=0,L>>>=0,V||_(O,L,this.length);for(var J=this[O+--L],re=1;L>0&&(re*=256);)J+=this[O+--L]*re;return J},c.prototype.readUInt8=function(O,L){return O>>>=0,L||_(O,1,this.length),this[O]},c.prototype.readUInt16LE=function(O,L){return O>>>=0,L||_(O,2,this.length),this[O]|this[O+1]<<8},c.prototype.readUInt16BE=function(O,L){return O>>>=0,L||_(O,2,this.length),this[O]<<8|this[O+1]},c.prototype.readUInt32LE=function(O,L){return O>>>=0,L||_(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+16777216*this[O+3]},c.prototype.readUInt32BE=function(O,L){return O>>>=0,L||_(O,4,this.length),16777216*this[O]+(this[O+1]<<16|this[O+2]<<8|this[O+3])},c.prototype.readIntLE=function(O,L,V){O>>>=0,L>>>=0,V||_(O,L,this.length);for(var J=this[O],re=1,ae=0;++ae<L&&(re*=256);)J+=this[O+ae]*re;return J>=(re*=128)&&(J-=Math.pow(2,8*L)),J},c.prototype.readIntBE=function(O,L,V){O>>>=0,L>>>=0,V||_(O,L,this.length);for(var J=L,re=1,ae=this[O+--J];J>0&&(re*=256);)ae+=this[O+--J]*re;return ae>=(re*=128)&&(ae-=Math.pow(2,8*L)),ae},c.prototype.readInt8=function(O,L){return O>>>=0,L||_(O,1,this.length),128&this[O]?-1*(255-this[O]+1):this[O]},c.prototype.readInt16LE=function(O,L){O>>>=0,L||_(O,2,this.length);var V=this[O]|this[O+1]<<8;return 32768&V?4294901760|V:V},c.prototype.readInt16BE=function(O,L){O>>>=0,L||_(O,2,this.length);var V=this[O+1]|this[O]<<8;return 32768&V?4294901760|V:V},c.prototype.readInt32LE=function(O,L){return O>>>=0,L||_(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},c.prototype.readInt32BE=function(O,L){return O>>>=0,L||_(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},c.prototype.readFloatLE=function(O,L){return O>>>=0,L||_(O,4,this.length),s.read(this,O,!0,23,4)},c.prototype.readFloatBE=function(O,L){return O>>>=0,L||_(O,4,this.length),s.read(this,O,!1,23,4)},c.prototype.readDoubleLE=function(O,L){return O>>>=0,L||_(O,8,this.length),s.read(this,O,!0,52,8)},c.prototype.readDoubleBE=function(O,L){return O>>>=0,L||_(O,8,this.length),s.read(this,O,!1,52,8)},c.prototype.writeUIntLE=function(O,L,V,J){O=+O,L>>>=0,V>>>=0,J||w(this,O,L,V,Math.pow(2,8*V)-1,0);var re=1,ae=0;for(this[L]=255&O;++ae<V&&(re*=256);)this[L+ae]=O/re&255;return L+V},c.prototype.writeUIntBE=function(O,L,V,J){O=+O,L>>>=0,V>>>=0,J||w(this,O,L,V,Math.pow(2,8*V)-1,0);var re=V-1,ae=1;for(this[L+re]=255&O;--re>=0&&(ae*=256);)this[L+re]=O/ae&255;return L+V},c.prototype.writeUInt8=function(O,L,V){return O=+O,L>>>=0,V||w(this,O,L,1,255,0),this[L]=255&O,L+1},c.prototype.writeUInt16LE=function(O,L,V){return O=+O,L>>>=0,V||w(this,O,L,2,65535,0),this[L]=255&O,this[L+1]=O>>>8,L+2},c.prototype.writeUInt16BE=function(O,L,V){return O=+O,L>>>=0,V||w(this,O,L,2,65535,0),this[L]=O>>>8,this[L+1]=255&O,L+2},c.prototype.writeUInt32LE=function(O,L,V){return O=+O,L>>>=0,V||w(this,O,L,4,4294967295,0),this[L+3]=O>>>24,this[L+2]=O>>>16,this[L+1]=O>>>8,this[L]=255&O,L+4},c.prototype.writeUInt32BE=function(O,L,V){return O=+O,L>>>=0,V||w(this,O,L,4,4294967295,0),this[L]=O>>>24,this[L+1]=O>>>16,this[L+2]=O>>>8,this[L+3]=255&O,L+4},c.prototype.writeIntLE=function(O,L,V,J){if(O=+O,L>>>=0,!J){var re=Math.pow(2,8*V-1);w(this,O,L,V,re-1,-re)}var ae=0,j=1,ue=0;for(this[L]=255&O;++ae<V&&(j*=256);)O<0&&ue===0&&this[L+ae-1]!==0&&(ue=1),this[L+ae]=(O/j>>0)-ue&255;return L+V},c.prototype.writeIntBE=function(O,L,V,J){if(O=+O,L>>>=0,!J){var re=Math.pow(2,8*V-1);w(this,O,L,V,re-1,-re)}var ae=V-1,j=1,ue=0;for(this[L+ae]=255&O;--ae>=0&&(j*=256);)O<0&&ue===0&&this[L+ae+1]!==0&&(ue=1),this[L+ae]=(O/j>>0)-ue&255;return L+V},c.prototype.writeInt8=function(O,L,V){return O=+O,L>>>=0,V||w(this,O,L,1,127,-128),O<0&&(O=255+O+1),this[L]=255&O,L+1},c.prototype.writeInt16LE=function(O,L,V){return O=+O,L>>>=0,V||w(this,O,L,2,32767,-32768),this[L]=255&O,this[L+1]=O>>>8,L+2},c.prototype.writeInt16BE=function(O,L,V){return O=+O,L>>>=0,V||w(this,O,L,2,32767,-32768),this[L]=O>>>8,this[L+1]=255&O,L+2},c.prototype.writeInt32LE=function(O,L,V){return O=+O,L>>>=0,V||w(this,O,L,4,2147483647,-2147483648),this[L]=255&O,this[L+1]=O>>>8,this[L+2]=O>>>16,this[L+3]=O>>>24,L+4},c.prototype.writeInt32BE=function(O,L,V){return O=+O,L>>>=0,V||w(this,O,L,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),this[L]=O>>>24,this[L+1]=O>>>16,this[L+2]=O>>>8,this[L+3]=255&O,L+4},c.prototype.writeFloatLE=function(O,L,V){return A(this,O,L,!0,V)},c.prototype.writeFloatBE=function(O,L,V){return A(this,O,L,!1,V)},c.prototype.writeDoubleLE=function(O,L,V){return k(this,O,L,!0,V)},c.prototype.writeDoubleBE=function(O,L,V){return k(this,O,L,!1,V)},c.prototype.copy=function(O,L,V,J){if(!c.isBuffer(O))throw new TypeError("argument should be a Buffer");if(V||(V=0),J||J===0||(J=this.length),L>=O.length&&(L=O.length),L||(L=0),J>0&&J<V&&(J=V),J===V||O.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),O.length-L<J-V&&(J=O.length-L+V);var re=J-V;if(this===O&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(L,V,J);else if(this===O&&V<L&&L<J)for(var ae=re-1;ae>=0;--ae)O[ae+L]=this[ae+V];else Uint8Array.prototype.set.call(O,this.subarray(V,J),L);return re},c.prototype.fill=function(O,L,V,J){if(typeof O=="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(O.length===1){var re=O.charCodeAt(0);(J==="utf8"&&re<128||J==="latin1")&&(O=re)}}else typeof O=="number"&&(O&=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,O||(O=0),typeof O=="number")for(ae=L;ae<V;++ae)this[ae]=O;else{var j=c.isBuffer(O)?O:c.from(O,J),ue=j.length;if(ue===0)throw new TypeError('The value "'+O+'" is invalid for argument "value"');for(ae=0;ae<V-L;++ae)this[ae+L]=j[ae%ue]}return this};var R=/[^+/0-9A-Za-z-_]/g;function M(O){return O<16?"0"+O.toString(16):O.toString(16)}function X(O,L){var V;L=L||1/0;for(var J=O.length,re=null,ae=[],j=0;j<J;++j){if((V=O.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(O){return o.toByteArray(function(L){if((L=(L=L.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;L.length%4!=0;)L+="=";return L}(O))}function te(O,L,V,J){for(var re=0;re<J&&!(re+V>=L.length||re>=O.length);++re)L[re+V]=O[re];return re}function $(O,L){return O instanceof L||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===L.name}function q(O){return O!=O}}).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,E=f===5||v;return function(D,F,z,W){for(var U,G,ee=u(D),P=s(ee),I=a(F,z),S=c(P),C=0,_=W||l,w=g?_(D,S):m||b?_(D,0):void 0;S>C;C++)if((E||C in P)&&(G=I(U=P[C],C,ee),f))if(g)w[C]=G;else if(G)switch(f){case 3:return!0;case 5:return U;case 6:return C;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,E=h.global,D=h.stat;if(g=E?a:D?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(E?m:b+(D?".":"#")+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 E=0;E<p;E++)if(f[E]===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 st!="undefined"?st: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(E,D){if(v.has(E))throw new p("Object already initialized");return D.facade=E,v.set(E,D),D},o=function(E){return v.get(E)||{}},s=function(E){return v.has(E)}}else{var b=g("state");m[b]=!0,a=function(E,D){if(h(E,b))throw new p("Object already initialized");return D.facade=E,d(E,b,D),D},o=function(E){return h(E,b)?E[b]:{}},s=function(E){return h(E,b)}}n.exports={set:a,get:o,has:s,enforce:function(E){return s(E)?o(E):a(E,{})},getterFor:function(E){return function(D){var F;if(!l(D)||(F=o(D)).type!==E)throw new p("Incompatible receiver, "+E+" required");return F}}}},{"../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,E){var D,F,z,W,U,G,ee,P=E&&E.that,I=!(!E||!E.AS_ENTRIES),S=!(!E||!E.IS_RECORD),C=!(!E||!E.IS_ITERATOR),_=!(!E||!E.INTERRUPTED),w=a(b,P),x=function(k){return D&&g(D,"normal",k),new p(!0,k)},A=function(k){return I?(s(k),_?w(k[0],k[1],x):w(k[0],k[1])):_?w(k,x):w(k)};if(S)D=v.iterator;else if(C)D=v;else{if(!(F=f(v)))throw new m(u(v)+" is not iterable");if(c(F)){for(z=0,W=l(v);W>z;z++)if((U=A(v[z]))&&d(y,U))return U;return new p(!1)}D=h(v,F)}for(G=S?v.next:D.next;!(ee=o(G,D)).done;){try{U=A(ee.value)}catch(k){g(D,"throw",k)}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,E=u.CONFIGURABLE,D=v.IteratorPrototype,F=v.BUGGY_SAFARI_ITERATORS,z=p("iterator"),W=function(){return this};n.exports=function(U,G,ee,P,I,S,C){l(ee,G,P);var _,w,x,A=function($){if($===I&&K)return K;if(!F&&$&&$ in M)return M[$];switch($){case"keys":case"values":case"entries":return function(){return new ee(this,$)}}return function(){return new ee(this)}},k=G+" Iterator",R=!1,M=U.prototype,X=M[z]||M["@@iterator"]||I&&M[I],K=!F&&X||A(I),te=G==="Array"&&M.entries||X;if(te&&(_=d(te.call(new U)))!==Object.prototype&&_.next&&(s||d(_)===D||(h?h(_,D):c(_[z])||m(_,z,W)),f(_,k,!0,!0),s&&(y[k]=W)),b&&I==="values"&&X&&X.name!=="values"&&(!s&&E?g(M,"name","values"):(R=!0,K=function(){return o(X,this)})),I)if(w={values:A("values"),keys:S?K:A("keys"),entries:A("entries")},C)for(x in w)(F||R||!(x in M))&&m(M,x,w[x]);else a({target:G,proto:!0,forced:F||R},w);return s&&!C||M[z]===K||m(M,z,K,{name:I}),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),E=c&&!o(function(){return p(function(){},"length",{value:8}).length!==8}),D=String(String).split("String"),F=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),E&&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(D,typeof W=="string"?W:"")),z};Function.prototype.toString=F(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,E=l.document,D=l.process,F=l.Promise,z=h(l,"queueMicrotask"),W=z&&z.value;if(!W){var U=new g,G=function(){var ee,P;for(v&&(ee=D.domain)&&ee.exit();P=U.get();)try{P()}catch(I){throw U.head&&a(),I}ee&&ee.enter()};m||v||y||!b||!E?!p&&F&&F.resolve?((u=F.resolve(void 0)).constructor=F,c=d(u.then,u),a=function(){c(G)}):v?a=function(){D.nextTick(G)}:(f=d(f,l),a=function(){f(G)}):(o=!0,s=E.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(E){v[E]=E}),g({},y)[b]!==7||c(g({},v)).join("")!=="abcdefghijklmnopqrst"})?function(y,v){for(var b=h(y),E=arguments.length,D=1,F=l.f,z=d.f;E>D;)for(var W,U=f(arguments[D++]),G=F?p(c(U),F(U)):c(U),ee=G.length,P=0;ee>P;)W=G[P++],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 E=u.length;E--;)delete y.prototype[u[E]];return y()};c[f]=!0,n.exports=Object.create||function(v,b){var E;return v!==null?(g.prototype=o(v),E=new g,g.prototype=null,E[f]=v):E=y(),b===void 0?E:s.f(E,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),E=f&&u(v)===null,D=b.length,F=0,z=[];D>F;)y=b[F++],a&&!(E?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 E=c(o),D=E!==String(o);if(!D&&g===66||f&&(!m.catch||!m.finally))return!0;if(!g||g<51||!/native code/.test(E)){var F=new o(function(W){W(1)}),z=function(W){W(function(){},function(){})};if((F.constructor={})[p]=z,!(y=F.then(function(){})instanceof z))return!0}return!D&&(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"),E=e("../internals/engine-is-node"),D=c.setImmediate,F=c.clearImmediate,z=c.process,W=c.Dispatch,U=c.Function,G=c.MessageChannel,ee=c.String,P=0,I={};g(function(){a=c.location});var S=function(x){if(f(I,x)){var A=I[x];delete I[x],A()}},C=function(x){return function(){S(x)}},_=function(x){S(x.data)},w=function(x){c.postMessage(ee(x),a.protocol+"//"+a.host)};D&&F||(D=function(x){v(arguments.length,1);var A=h(x)?x:U(x),k=p(arguments,1);return I[++P]=function(){l(A,void 0,k)},o(P),P},F=function(x){delete I[x]},E?o=function(x){z.nextTick(C(x))}:W&&W.now?o=function(x){W.now(C(x))}:G&&!b?(u=(s=new G).port2,s.port1.onmessage=_,o=d(u.postMessage,u)):c.addEventListener&&h(c.postMessage)&&!c.importScripts&&a&&a.protocol!=="file:"&&!g(w)?(o=w,c.addEventListener("message",_,!1)):o="onreadystatechange"in y("script")?function(x){m.appendChild(y("script")).onreadystatechange=function(){m.removeChild(this),S(x)}}:function(x){setTimeout(C(x),0)}),n.exports={set:D,clear:F}},{"../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,E=y.index++;if(!v||E>=v.length)return y.target=void 0,d(void 0,!0);switch(b){case"keys":return d(E,!1);case"values":return d(v[E],!1)}return d([E,v[E]],!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),E=c("".charCodeAt),D=c("".replace),F=c(1 .toString),z=/[\uD800-\uDFFF]/g,W=/^[\uD800-\uDBFF]$/,U=/^[\uDC00-\uDFFF]$/,G=!m||l(function(){var S=o("Symbol")("stringify detection");return y([S])!=="[null]"||y({a:S})!=="{}"||y(Object(S))!=="{}"}),ee=l(function(){return y("\uDF06\uD834")!=='"\\udf06\\ud834"'||y("\uDEAD")!=='"\\udead"'}),P=function(S,C){var _=f(arguments),w=g(C);if(d(w)||S!==void 0&&!h(S))return _[1]=function(x,A){if(d(w)&&(A=u(w,this,p(x),A)),!h(A))return A},s(y,null,_)},I=function(S,C,_){var w=b(_,C-1),x=b(_,C+1);return v(W,S)&&!v(U,x)||v(U,S)&&!v(W,w)?"\\u"+F(E(S,0),16):S};y&&a({target:"JSON",stat:!0,arity:3,forced:G||ee},{stringify:function(S,C,_){var w=f(arguments),x=s(G?P:y,null,w);return ee&&typeof x=="string"?D(x,z,I):x}})},{"../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,E=1;l(d,function(D){var F=b++,z=!1;E++,o(y,h,D).then(function(W){z||(z=!0,v[F]=W,--E||g(v))},m)}),--E||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"),E=e("../internals/an-instance"),D=e("../internals/species-constructor"),F=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"),P=e("../internals/promise-native-constructor"),I=e("../internals/promise-constructor-detection"),S=e("../internals/new-promise-capability"),C=I.CONSTRUCTOR,_=I.REJECTION_EVENT,w=I.SUBCLASSING,x=ee.getterFor("Promise"),A=ee.set,k=P&&P.prototype,R=P,M=k,X=d.TypeError,K=d.document,te=d.process,$=S.f,q=$,O=!!(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,Fe=Z.domain;try{ve?(de||(oe.rejection===2&&ue(oe),oe.rejection=1),ve===!0?ce=fe:(Fe&&Fe.enter(),ce=ve(fe),Fe&&(Fe.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){Fe&&!se&&Fe.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;O?((ne=K.createEvent("Event")).promise=oe,ne.reason=ce,ne.initEvent(Z,!1,!0),d.dispatchEvent(ne)):ne={promise:oe,reason:ce},!_&&(se=d["on"+Z])?se(ne):Z==="unhandledrejection"&&W("Unhandled promise rejection",ce)},ae=function(Z){h(F,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(F,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)}},B=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(B,se,Z))}catch(fe){B(se,fe,Z)}}):(Z.value=oe,Z.state=1,J(Z,!1))}catch(se){B({done:!1},se,Z)}}};if(C&&(M=(R=function(Z){E(this,M),y(Z),h(a,this);var oe=x(this);try{Z(Q(H,oe),Q(B,oe))}catch(ce){B(oe,ce)}}).prototype,(a=function(Z){A(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new G,rejection:!1,state:0,value:void 0})}).prototype=f(M,"then",function(Z,oe){var ce=x(this),ne=$(D(this,R));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=x(Z);this.promise=Z,this.resolve=Q(H,oe),this.reject=Q(B,oe)},S.f=$=function(Z){return Z===R||Z===void 0?new o(Z):q(Z)},!c&&v(P)&&k!==Object.prototype)){s=k.then,w||f(k,"then",function(Z,oe){var ce=this;return new R(function(ne,se){h(s,ce,ne,se)}).then(Z,oe)},{unsafe:!0});try{delete k.constructor}catch{}g&&g(k,M)}u({global:!0,constructor:!0,wrap:!0,forced:C},{Promise:R}),m(R,"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"),E=e("../internals/object-create"),D=e("../internals/object-keys"),F=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"),P=e("../internals/object-property-is-enumerable"),I=e("../internals/define-built-in"),S=e("../internals/define-built-in-accessor"),C=e("../internals/shared"),_=e("../internals/shared-key"),w=e("../internals/hidden-keys"),x=e("../internals/uid"),A=e("../internals/well-known-symbol"),k=e("../internals/well-known-symbol-wrapped"),R=e("../internals/well-known-symbol-define"),M=e("../internals/symbol-define-to-primitive"),X=e("../internals/set-to-string-tag"),K=e("../internals/internal-state"),te=e("../internals/array-iteration").forEach,$=_("hidden"),q=K.set,O=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,B=z.f,H=P.f,Z=u([].push),oe=C("symbols"),ce=C("op-symbols"),ne=C("wks"),se=!j||!j.prototype||!j.prototype.findChild,fe=function(Be,Ge,tt){var rt=ue(L,Ge);rt&&delete L[Ge],Q(Be,Ge,tt),rt&&Be!==L&&Q(L,Ge,rt)},de=l&&h(function(){return E(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a!==7})?fe:Q,ve=function(Be,Ge){var tt=oe[Be]=E(J);return q(tt,{type:"Symbol",tag:Be,description:Ge}),l||(tt.description=Ge),tt},Ee=function(Be,Ge,tt){Be===L&&Ee(ce,Ge,tt),m(Be);var rt=y(Ge);return m(tt),f(oe,rt)?(tt.enumerable?(f(Be,$)&&Be[$][rt]&&(Be[$][rt]=!1),tt=E(tt,{enumerable:b(0,!1)})):(f(Be,$)||Q(Be,$,b(1,{})),Be[$][rt]=!0),de(Be,rt,tt)):Q(Be,rt,tt)},Se=function(Be,Ge){m(Be);var tt=p(Ge),rt=D(tt).concat(et(tt));return te(rt,function(lt){l&&!s(Fe,tt,lt)||Ee(Be,lt,tt[lt])}),Be},Fe=function(Be){var Ge=y(Be),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(Be,Ge){var tt=p(Be),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(Be){var Ge=B(p(Be)),tt=[];return te(Ge,function(rt){f(oe,rt)||f(w,rt)||Z(tt,rt)}),tt},et=function(Be){var Ge=Be===L,tt=B(Ge?ce:p(Be)),rt=[];return te(tt,function(lt){!f(oe,lt)||Ge&&!f(L,lt)||Z(rt,oe[lt])}),rt};d||(I(J=(V=function(){if(g(J,this))throw new ae("Symbol is not a constructor");var Be=arguments.length&&arguments[0]!==void 0?v(arguments[0]):void 0,Ge=x(Be),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(Nt){if(!(Nt instanceof re))throw Nt;fe(this,Ge,lt)}};return l&&se&&de(L,Ge,{configurable:!0,set:tt}),ve(Ge,Be)}).prototype,"toString",function(){return O(this).tag}),I(V,"withoutSetter",function(Be){return ve(x(Be),Be)}),P.f=Fe,G.f=Ee,ee.f=Se,U.f=He,F.f=z.f=qe,W.f=et,k.f=function(Be){return ve(A(Be),Be)},l&&(S(J,"description",{configurable:!0,get:function(){return O(this).description}}),c||I(L,"propertyIsEnumerable",Fe,{unsafe:!0}))),a({global:!0,constructor:!0,wrap:!0,forced:!d,sham:!d},{Symbol:V}),te(D(ne),function(Be){R(Be)}),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(Be,Ge){return Ge===void 0?E(Be):Se(E(Be),Ge)},defineProperty:Ee,defineProperties:Se,getOwnPropertyDescriptor:He}),a({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:qe}),M(),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,E={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(_){var w=["th","st","nd","rd"],x=_%100;return"["+_+(w[(x-20)%10]||w[x]||w[0])+"]"}},D=function(_,w,x){var A=String(_);return!A||A.length>=w?_:""+Array(w+1-A.length).join(x)+_},F={s:D,z:function(_){var w=-_.utcOffset(),x=Math.abs(w),A=Math.floor(x/60),k=x%60;return(w<=0?"+":"-")+D(A,2,"0")+":"+D(k,2,"0")},m:function _(w,x){if(w.date()<x.date())return-_(x,w);var A=12*(x.year()-w.year())+(x.month()-w.month()),k=w.clone().add(A,f),R=x-k<0,M=w.clone().add(A+(R?-1:1),f);return+(-(A+(x-k)/(R?k-M:M-k))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:f,y:m,w:h,d,D:p,h:l,m:c,s:u,ms:s,Q:g}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},z="en",W={};W[z]=E;var U="$isDayjsObject",G=function(_){return _ instanceof S||!(!_||!_[U])},ee=function _(w,x,A){var k;if(!w)return z;if(typeof w=="string"){var R=w.toLowerCase();W[R]&&(k=R),x&&(W[R]=x,k=R);var M=w.split("-");if(!k&&M.length>1)return _(M[0])}else{var X=w.name;W[X]=w,k=X}return!A&&k&&(z=k),k||!A&&z},P=function(_,w){if(G(_))return _.clone();var x=typeof w=="object"?w:{};return x.date=_,x.args=arguments,new S(x)},I=F;I.l=ee,I.i=G,I.w=function(_,w){return P(_,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var S=function(){function _(x){this.$L=ee(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[U]=!0}var w=_.prototype;return w.parse=function(x){this.$d=function(A){var k=A.date,R=A.utc;if(k===null)return new Date(NaN);if(I.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var M=k.match(v);if(M){var X=M[2]-1||0,K=(M[7]||"0").substring(0,3);return R?new Date(Date.UTC(M[1],X,M[3]||1,M[4]||0,M[5]||0,M[6]||0,K)):new Date(M[1],X,M[3]||1,M[4]||0,M[5]||0,M[6]||0,K)}}return new Date(k)}(x),this.init()},w.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},w.$utils=function(){return I},w.isValid=function(){return this.$d.toString()!==y},w.isSame=function(x,A){var k=P(x);return this.startOf(A)<=k&&k<=this.endOf(A)},w.isAfter=function(x,A){return P(x)<this.startOf(A)},w.isBefore=function(x,A){return this.endOf(A)<P(x)},w.$g=function(x,A,k){return I.u(x)?this[A]:this.set(k,x)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(x,A){var k=this,R=!!I.u(A)||A,M=I.p(x),X=function(J,re){var ae=I.w(k.$u?Date.UTC(k.$y,re,J):new Date(k.$y,re,J),k);return R?ae:ae.endOf(d)},K=function(J,re){return I.w(k.toDate()[J].apply(k.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(re)),k)},te=this.$W,$=this.$M,q=this.$D,O="set"+(this.$u?"UTC":"");switch(M){case m:return R?X(1,0):X(31,11);case f:return R?X(1,$):X(0,$+1);case h:var L=this.$locale().weekStart||0,V=(te<L?te+7:te)-L;return X(R?q-V:q+(6-V),$);case d:case p:return K(O+"Hours",0);case l:return K(O+"Minutes",1);case c:return K(O+"Seconds",2);case u:return K(O+"Milliseconds",3);default:return this.clone()}},w.endOf=function(x){return this.startOf(x,!1)},w.$set=function(x,A){var k,R=I.p(x),M="set"+(this.$u?"UTC":""),X=(k={},k[d]=M+"Date",k[p]=M+"Date",k[f]=M+"Month",k[m]=M+"FullYear",k[l]=M+"Hours",k[c]=M+"Minutes",k[u]=M+"Seconds",k[s]=M+"Milliseconds",k)[R],K=R===d?this.$D+(A-this.$W):A;if(R===f||R===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(x,A){return this.clone().$set(x,A)},w.get=function(x){return this[I.p(x)]()},w.add=function(x,A){var k,R=this;x=Number(x);var M=I.p(A),X=function($){var q=P(R);return I.w(q.date(q.date()+Math.round($*x)),R)};if(M===f)return this.set(f,this.$M+x);if(M===m)return this.set(m,this.$y+x);if(M===d)return X(1);if(M===h)return X(7);var K=(k={},k[c]=a,k[l]=o,k[u]=1e3,k)[M]||1,te=this.$d.getTime()+x*K;return I.w(te,this)},w.subtract=function(x,A){return this.add(-1*x,A)},w.format=function(x){var A=this,k=this.$locale();if(!this.isValid())return k.invalidDate||y;var R=x||"YYYY-MM-DDTHH:mm:ssZ",M=I.z(this),X=this.$H,K=this.$m,te=this.$M,$=k.weekdays,q=k.months,O=k.meridiem,L=function(re,ae,j,ue){return re&&(re[ae]||re(A,R))||j[ae].slice(0,ue)},V=function(re){return I.s(X%12||12,re,"0")},J=O||function(re,ae,j){var ue=re<12?"AM":"PM";return j?ue.toLowerCase():ue};return R.replace(b,function(re,ae){return ae||function(j){switch(j){case"YY":return String(A.$y).slice(-2);case"YYYY":return I.s(A.$y,4,"0");case"M":return te+1;case"MM":return I.s(te+1,2,"0");case"MMM":return L(k.monthsShort,te,q,3);case"MMMM":return L(q,te);case"D":return A.$D;case"DD":return I.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return L(k.weekdaysMin,A.$W,$,2);case"ddd":return L(k.weekdaysShort,A.$W,$,3);case"dddd":return $[A.$W];case"H":return String(X);case"HH":return I.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 I.s(K,2,"0");case"s":return String(A.$s);case"ss":return I.s(A.$s,2,"0");case"SSS":return I.s(A.$ms,3,"0");case"Z":return M}return null}(re)||M.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(x,A,k){var R,M=this,X=I.p(A),K=P(x),te=(K.utcOffset()-this.utcOffset())*a,$=this-K,q=function(){return I.m(M,K)};switch(X){case m:R=q()/12;break;case f:R=q();break;case g:R=q()/3;break;case h:R=($-te)/6048e5;break;case d:R=($-te)/864e5;break;case l:R=$/o;break;case c:R=$/a;break;case u:R=$/1e3;break;default:R=$}return k?R:I.a(R)},w.daysInMonth=function(){return this.endOf(f).$D},w.$locale=function(){return W[this.$L]},w.locale=function(x,A){if(!x)return this.$L;var k=this.clone(),R=ee(x,A,!0);return R&&(k.$L=R),k},w.clone=function(){return I.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()},_}(),C=S.prototype;return P.prototype=C,[["$ms",s],["$s",u],["$m",c],["$H",l],["$W",d],["$M",f],["$y",m],["$D",p]].forEach(function(_){C[_[1]]=function(w){return this.$g(w,_[0],_[1])}}),P.extend=function(_,w){return _.$i||(_(w,S,P),_.$i=!0),P},P.locale=ee,P.isDayjs=G,P.unix=function(_){return P(1e3*_)},P.en=W[z],P.Ls=W,P.p={},P})},{}],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 E=b.match(/([+-]|\d\d)/g),D=60*E[1]+(+E[2]||0);return D===0?0:E[0]==="+"?-D:D}(v)}],g=function(v){var b=l[v];return b&&(b.indexOf?b:b.s.concat(b.f))},m=function(v,b){var E,D=l.meridiem;if(D){for(var F=1;F<=24;F+=1)if(v.indexOf(D(F,0,b))>-1){E=F>12;break}}else E=v===(b?"pm":"PM");return E},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,E=v.match(/\d+/);if(this.day=E[0],b)for(var D=1;D<=31;D+=1)b(D).replace(/\[|\]/g,"")===v&&(this.day=D)}],M:[u,h("month")],MM:[s,h("month")],MMM:[c,function(v){var b=g("months"),E=(g("monthsShort")||b.map(function(D){return D.slice(0,3)})).indexOf(v)+1;if(E<1)throw new Error;this.month=E%12||E}],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,E;b=v,E=l&&l.formats;for(var D=(v=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,I,S){var C=S&&S.toUpperCase();return I||E[S]||a[S]||E[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(_,w,x){return w||x.slice(1)})})).match(o),F=D.length,z=0;z<F;z+=1){var W=D[z],U=p[W],G=U&&U[0],ee=U&&U[1];D[z]=ee?{regex:G,parser:ee}:W.replace(/^\[|\]$/g,"")}return function(P){for(var I={},S=0,C=0;S<F;S+=1){var _=D[S];if(typeof _=="string")C+=_.length;else{var w=_.regex,x=_.parser,A=P.slice(C),k=w.exec(A)[0];x.call(I,k),P=P.replace(k,"")}}return function(R){var M=R.afternoon;if(M!==void 0){var X=R.hours;M?X<12&&(R.hours+=12):X===12&&(R.hours=0),delete R.afternoon}}(I),I}}return function(v,b,E){E.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(d=v.parseTwoDigitYear);var D=b.prototype,F=D.parse;D.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 P=G[2]===!0,I=G[3]===!0,S=P||I,C=G[2];I&&(C=G[2]),l=this.$locale(),!P&&C&&(l=E.Ls[C]),this.$d=function(A,k,R){try{if(["x","X"].indexOf(k)>-1)return new Date((k==="X"?1e3:1)*A);var M=y(k)(A),X=M.year,K=M.month,te=M.day,$=M.hours,q=M.minutes,O=M.seconds,L=M.milliseconds,V=M.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,B=O||0,H=L||0;return V?new Date(Date.UTC(ae,j,re,ue,Q,B,H+60*V.offset*1e3)):R?new Date(Date.UTC(ae,j,re,ue,Q,B,H)):new Date(ae,j,re,ue,Q,B,H)}catch{return new Date("")}}(W,ee,U),this.init(),C&&C!==!0&&(this.$L=this.locale(C).$L),S&&W!=this.format(ee)&&(this.$d=new Date("")),l={}}else if(ee instanceof Array)for(var _=ee.length,w=1;w<=_;w+=1){G[1]=ee[w-1];var x=E.apply(this,G);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}w===_&&(this.$d=new Date(""))}else F.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 E=this.$utils().u;if(E(v))return this.$u?0:E(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],P=60*+G[1]+ +G[2];return P===0?0:ee==="+"?P:-P}(v))===null)return this;var D=Math.abs(v)<=16?60*v:v,F=this;if(b)return F.$offset=D,F.$u=v===0,F;if(v!==0){var z=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(F=this.local().add(D+z,a)).$offset=D,F.$x.$localOffset=z}else F=this.utc();return F};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,E){if(v&&this.$u===v.$u)return y.call(this,v,b,E);var D=this.local(),F=l(v).local();return y.call(D,F,b,E)}}})},{}],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 E=h.keys[b],D=h.keys[b+1];s.expand(v,h.tmp,0),E^=h.tmp[0],D^=h.tmp[1];var F=s.substitute(E,D),z=v;v=(y^s.permute(F))>>>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 E=h.keys[b],D=h.keys[b+1];s.expand(y,h.tmp,0),E^=h.tmp[0],D^=h.tmp[1];var F=s.substitute(E,D),z=y;y=(v^s.permute(F))>>>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(E,D){return D=D||"utf8",a.isBuffer(E)||(E=new a(E,D)),this._pub=new o(E),this}function p(E,D){return D=D||"utf8",a.isBuffer(E)||(E=new a(E,D)),this._priv=new o(E),this}n.exports=v;var y={};function v(E,D,F){this.setGenerator(D),this.__prime=new o(E),this._prime=o.mont(this.__prime),this._primeLen=E.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,F?(this.setPublicKey=m,this.setPrivateKey=p):this._primeCode=8}function b(E,D){var F=new a(E.toArray());return D?F.toString(D):F}Object.defineProperty(v.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=function(E,D){var F=D.toString("hex"),z=[F,E.toString(16)].join("_");if(z in y)return y[z];var W,U=0;if(E.isEven()||!f.simpleSieve||!f.fermatTest(E)||!s.test(E))return U+=1,U+=F==="02"||F==="05"?8:4,y[z]=U,U;switch(s.test(E.shrn(1))||(U+=2),F){case"02":E.mod(u).cmp(c)&&(U+=8);break;case"05":(W=E.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(E){var D=(E=(E=new o(E)).toRed(this._prime)).redPow(this._priv).fromRed(),F=new a(D.toArray()),z=this.getPrime();if(F.length<z.length){var W=new a(z.length-F.length);W.fill(0),F=a.concat([W,F])}return F},v.prototype.getPublicKey=function(E){return b(this._pub,E)},v.prototype.getPrivateKey=function(E){return b(this._priv,E)},v.prototype.getPrime=function(E){return b(this.__prime,E)},v.prototype.getGenerator=function(E){return b(this._gen,E)},v.prototype.setGenerator=function(E,D){return D=D||"utf8",a.isBuffer(E)||(E=new a(E,D)),this.__gen=E,this._gen=new o(E),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=E,E.simpleSieve=v,E.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 D=[];D[0]=2;for(var F=1,z=3;z<1048576;z+=2){for(var W=Math.ceil(Math.sqrt(z)),U=0;U<F&&D[U]<=W&&z%D[U]!=0;U++);F!==U&&D[U]<=W||(D[F++]=z)}return p=D,D}function v(D){for(var F=y(),z=0;z<F.length;z++)if(D.modn(F[z])===0)return D.cmpn(F[z])===0;return!0}function b(D){var F=o.mont(D);return l.toRed(F).redPow(D.subn(1)).fromRed().cmpn(1)===0}function E(D,F){if(D<16)return new o(F===2||F===5?[140,123]:[140,39]);var z,W;for(F=new o(F);;){for(z=new o(a(Math.ceil(D/8)));z.bitLength()>D;)z.ishrn(1);if(z.isEven()&&z.iadd(c),z.testn(1)||z.iadd(l),F.cmp(l)){if(!F.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 E=y+g.step-1;E>=y;E--)v=(v<<1)+m[E];b.push(v)}for(var D=this.jpoint(null,null,null),F=this.jpoint(null,null,null),z=p;z>0;z--){for(y=0;y<b.length;y++)(v=b[y])===z?F=F.mixedAdd(g.points[y]):v===-z&&(F=F.mixedAdd(g.points[y].neg()));D=D.add(F)}return D.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 E=0;b>=0&&y[b]===0;b--)E++;if(b>=0&&E++,v=v.dblp(E),b<0)break;var D=y[b];c(D!==0),v=h.type==="affine"?D>0?v.mixedAdd(p[D-1>>1]):v.mixedAdd(p[-D-1>>1].neg()):D>0?v.add(p[D-1>>1]):v.add(p[-D-1>>1].neg())}return h.type==="affine"?v.toP():v},l.prototype._wnafMulAdd=function(h,f,g,m,p){var y,v,b,E=this._wnafT1,D=this._wnafT2,F=this._wnafT3,z=0;for(y=0;y<m;y++){var W=(b=f[y])._getNAFPoints(h);E[y]=W.wnd,D[y]=W.points}for(y=m-1;y>=1;y-=2){var U=y-1,G=y;if(E[U]===1&&E[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 P=[-3,-1,-5,-7,0,7,5,1,3],I=u(g[U],g[G]);for(z=Math.max(I[0].length,z),F[U]=new Array(z),F[G]=new Array(z),v=0;v<z;v++){var S=0|I[0][v],C=0|I[1][v];F[U][v]=P[3*(S+1)+(C+1)],F[G][v]=0,D[U]=ee}}else F[U]=s(g[U],E[U],this._bitLength),F[G]=s(g[G],E[G],this._bitLength),z=Math.max(F[U].length,z),z=Math.max(F[G].length,z)}var _=this.jpoint(null,null,null),w=this._wnafT4;for(y=z;y>=0;y--){for(var x=0;y>=0;){var A=!0;for(v=0;v<m;v++)w[v]=0|F[v][y],w[v]!==0&&(A=!1);if(!A)break;x++,y--}if(y>=0&&x++,_=_.dblp(x),y<0)break;for(v=0;v<m;v++){var k=w[v];k!==0&&(k>0?b=D[v][k-1>>1]:k<0&&(b=D[v][-k-1>>1].neg()),_=b.type==="affine"?_.mixedAdd(b):_.add(b))}}for(y=0;y<m;y++)D[y]=null;return p?_:_.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),E=p.redMul(v),D=y.redMul(b),F=p.redMul(b),z=v.redMul(y);return this.curve.point(E,D,z,F)},d.prototype._projDbl=function(){var h,f,g,m,p,y,v=this.x.redAdd(this.y).redSqr(),b=this.x.redSqr(),E=this.y.redSqr();if(this.curve.twisted){var D=(m=this.curve._mulA(b)).redAdd(E);this.zOne?(h=v.redSub(b).redSub(E).redMul(D.redSub(this.curve.two)),f=D.redMul(m.redSub(E)),g=D.redSqr().redSub(D).redSub(D)):(p=this.z.redSqr(),y=D.redSub(p).redISub(p),h=v.redSub(b).redISub(E).redMul(y),f=D.redMul(m.redSub(E)),g=D.redMul(y))}else m=b.redAdd(E),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(E)),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),E=g.redAdd(f),D=y.redMul(v),F=b.redMul(E),z=y.redMul(E),W=v.redMul(b);return this.curve.point(D,F,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),E=p.redSub(b),D=p.redAdd(b),F=this.x.redAdd(this.y).redMul(h.x.redAdd(h.y)).redISub(y).redISub(v),z=m.redMul(E).redMul(F);return this.curve.twisted?(f=m.redMul(D).redMul(v.redSub(this.curve._mulA(y))),g=E.redMul(D)):(f=m.redMul(D).redMul(v.redSub(y)),g=this.curve._mulC(E).redMul(D)),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,E,D,F,z=this.n.ushrn(Math.floor(this.n.bitLength()/2)),W=f,U=this.n.clone(),G=new o(1),ee=new o(0),P=new o(0),I=new o(1),S=0;W.cmpn(0)!==0;){var C=U.div(W);D=U.sub(C.mul(W)),F=P.sub(C.mul(G));var _=I.sub(C.mul(ee));if(!p&&D.cmp(z)<0)g=E.neg(),m=G,p=D.neg(),y=F;else if(p&&++S==2)break;E=D,U=W,W=D,P=G,G=F,I=ee,ee=_}v=D.neg(),b=F;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),E=v.mul(p.a),D=y.mul(m.b),F=v.mul(p.b);return{k1:f.sub(b).sub(E),k2:D.add(F).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]),E=f[v],D=E._getBeta();b.k1.negative&&(b.k1.ineg(),E=E.neg(!0)),b.k2.negative&&(b.k2.ineg(),D=D.neg(!0)),p[2*v]=E,p[2*v+1]=D,y[2*v]=b.k1,y[2*v+1]=b.k2}for(var F=this._wnafMulAdd(1,p,y,2*v,m),z=0;z<2*v;z++)p[z]=null,y[z]=null;return F},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)),E=p.redSub(y),D=v.redSub(b);if(E.cmpn(0)===0)return D.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var F=E.redSqr(),z=F.redMul(E),W=p.redMul(F),U=D.redSqr().redIAdd(z).redISub(W).redISub(W),G=D.redMul(W.redISub(U)).redISub(v.redMul(z)),ee=this.z.redMul(f.z).redMul(E);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),E=y.redSub(v);if(b.cmpn(0)===0)return E.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var D=b.redSqr(),F=D.redMul(b),z=m.redMul(D),W=E.redSqr().redIAdd(F).redISub(z).redISub(z),U=E.redMul(z.redISub(W)).redISub(y.redMul(F)),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,E=this.z,D=E.redSqr().redSqr(),F=b.redAdd(b);for(g=0;g<f;g++){var z=v.redSqr(),W=F.redSqr(),U=W.redSqr(),G=z.redAdd(z).redIAdd(z).redIAdd(p.redMul(D)),ee=v.redMul(W),P=G.redSqr().redISub(ee.redAdd(ee)),I=ee.redISub(P),S=G.redMul(I);S=S.redIAdd(S).redISub(U);var C=F.redMul(E);g+1<f&&(D=D.redMul(U)),v=P,E=C,F=S}return this.curve.jpoint(v,F.redMul(y),E)},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 E=p.redAdd(p).redIAdd(p),D=E.redSqr().redISub(b).redISub(b),F=v.redIAdd(v);F=(F=F.redIAdd(F)).redIAdd(F),f=D,g=E.redMul(b.redISub(D)).redISub(F),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),P=ee.redSqr(),I=U.redIAdd(U);I=(I=I.redIAdd(I)).redIAdd(I),f=P.redISub(G).redISub(G),g=ee.redMul(G.redISub(f)).redISub(I),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 E=p.redAdd(p).redIAdd(p).redIAdd(this.curve.a),D=E.redSqr().redISub(b).redISub(b);f=D;var F=v.redIAdd(v);F=(F=F.redIAdd(F)).redIAdd(F),g=E.redMul(b.redISub(D)).redISub(F),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),P=(ee=ee.redIAdd(ee)).redAdd(ee);f=G.redSqr().redISub(P),m=this.y.redAdd(this.z).redSqr().redISub(W).redISub(z);var I=W.redSqr();I=(I=(I=I.redIAdd(I)).redIAdd(I)).redIAdd(I),g=G.redMul(ee.redISub(f)).redISub(I)}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(),E=v.redAdd(v).redIAdd(v).redIAdd(f.redMul(y)),D=g.redAdd(g),F=(D=D.redIAdd(D)).redMul(b),z=E.redSqr().redISub(F.redAdd(F)),W=F.redISub(z),U=b.redSqr();U=(U=(U=U.redIAdd(U)).redIAdd(U)).redIAdd(U);var G=E.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),E=(b=(b=(b=b.redIAdd(b)).redAdd(b).redIAdd(b)).redISub(v)).redSqr(),D=p.redIAdd(p);D=(D=(D=D.redIAdd(D)).redIAdd(D)).redIAdd(D);var F=y.redIAdd(b).redSqr().redISub(v).redISub(E).redISub(D),z=g.redMul(F);z=(z=z.redIAdd(z)).redIAdd(z);var W=this.x.redMul(E).redISub(z);W=(W=W.redIAdd(W)).redIAdd(W);var U=this.y.redMul(F.redMul(D.redISub(F)).redISub(b.redMul(E)));U=(U=(U=U.redIAdd(U)).redIAdd(U)).redIAdd(U);var G=this.z.redAdd(b).redSqr().redISub(m).redISub(E);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),E=g.toArray("be",v),D=new o({hash:this.hash,entropy:b,nonce:E,pers:y.pers,persEnc:y.persEnc||"utf8"}),F=this.n.sub(new a(1)),z=0;;z++){var W=y.k?y.k(z):new a(D.generate(this.n.byteLength()));if(!((W=this._truncateToN(W,!0)).cmpn(1)<=0||W.cmp(F)>=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 P=W.invm(this.n).mul(ee.mul(m.getPrivate()).iadd(g));if((P=P.umod(this.n)).cmpn(0)!==0){var I=(U.getY().isOdd()?1:0)|(G.cmp(ee)!==0?2:0);return y.canonical&&P.cmp(this.nh)>0&&(P=this.n.sub(P),I^=1),new h({r:ee,s:P,recoveryParam:I})}}}}}},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 E,D=b.invm(this.n),F=D.mul(g).umod(this.n),z=D.mul(v).umod(this.n);return this.curve._maxwellTrick?!(E=this.g.jmulAdd(F,p.getPublic(),z)).isInfinity()&&E.eqXToP(v):!(E=this.g.mulAdd(F,p.getPublic(),z)).isInfinity()&&E.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),E=m.r,D=m.s,F=1&p,z=p>>1;if(E.cmp(this.curve.p.umod(this.curve.n))>=0&&z)throw new Error("Unable to find sencond key candinate");E=z?this.curve.pointFromX(E.add(this.curve.n),F):this.curve.pointFromX(E,F);var W=m.r.invm(v),U=v.sub(b).mul(W).umod(v),G=D.mul(W).umod(v);return this.g.mulAdd(U,E,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 E=f.slice(m.place,b+m.place);if(v[0]===0){if(!(128&v[1]))return!1;v=v.slice(1)}if(E[0]===0){if(!(128&E[1]))return!1;E=E.slice(1)}return this.r=new a(v),this.s=new a(E),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()),E=p.add(b).umod(this.curve.n);return this.makeSignature({R:y,S:E,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,P=z(W,ee),I=0;I<ee;++I)P[I].call(G)}function g(W,U,G,ee){if(U)W.call(G,ee);else for(var P=W.length,I=z(W,P),S=0;S<P;++S)I[S].call(G,ee)}function m(W,U,G,ee,P){if(U)W.call(G,ee,P);else for(var I=W.length,S=z(W,I),C=0;C<I;++C)S[C].call(G,ee,P)}function p(W,U,G,ee,P,I){if(U)W.call(G,ee,P,I);else for(var S=W.length,C=z(W,S),_=0;_<S;++_)C[_].call(G,ee,P,I)}function y(W,U,G,ee){if(U)W.apply(G,ee);else for(var P=W.length,I=z(W,P),S=0;S<P;++S)I[S].apply(G,ee)}function v(W,U,G,ee){var P,I,S;if(typeof G!="function")throw new TypeError('"listener" argument must be a function');if((I=W._events)?(I.newListener&&(W.emit("newListener",U,G.listener?G.listener:G),I=W._events),S=I[U]):(I=W._events=a(null),W._eventsCount=0),S){if(typeof S=="function"?S=I[U]=ee?[G,S]:[S,G]:ee?S.unshift(G):S.push(G),!S.warned&&(P=h(W))&&P>0&&S.length>P){S.warned=!0;var C=new Error("Possible EventEmitter memory leak detected. "+S.length+' "'+String(U)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');C.name="MaxListenersExceededWarning",C.emitter=W,C.type=U,C.count=S.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",C.name,C.message)}}else S=I[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 E(W,U,G){var ee={fired:!1,wrapFn:void 0,target:W,type:U,listener:G},P=s.call(b,ee);return P.listener=G,ee.wrapFn=P,P}function D(W,U,G){var ee=W._events;if(!ee)return[];var P=ee[U];return P?typeof P=="function"?G?[P.listener||P]:[P]:G?function(I){for(var S=new Array(I.length),C=0;C<S.length;++C)S[C]=I[C].listener||I[C];return S}(P):z(P,P.length):[]}function F(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,P,I,S,C=W==="error";if(S=this._events)C=C&&S.error==null;else if(!C)return!1;if(C){if(arguments.length>1&&(U=arguments[1]),U instanceof Error)throw U;var _=new Error('Unhandled "error" event. ('+U+")");throw _.context=U,_}if(!(G=S[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(P=new Array(ee-1),I=1;I<ee;I++)P[I-1]=arguments[I];y(G,w,this,P)}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,E(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,E(this,W,U)),this},u.prototype.removeListener=function(W,U){var G,ee,P,I,S;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(P=-1,I=G.length-1;I>=0;I--)if(G[I]===U||G[I].listener===U){S=G[I].listener,P=I;break}if(P<0)return this;P===0?G.shift():function(C,_){for(var w=_,x=w+1,A=C.length;x<A;w+=1,x+=1)C[w]=C[x];C.pop()}(G,P),G.length===1&&(ee[W]=G[0]),ee.removeListener&&this.emit("removeListener",W,S||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 P,I=o(G);for(ee=0;ee<I.length;++ee)(P=I[ee])!=="removeListener"&&this.removeAllListeners(P);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 D(this,W,!0)},u.prototype.rawListeners=function(W){return D(this,W,!1)},u.listenerCount=function(W,U){return typeof W.listenerCount=="function"?W.listenerCount(U):F.call(W,U)},u.prototype.listenerCount=F,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(E,D,F,z){return E<=15?D^F^z:E<=31?D&F|~D&z:E<=47?(D|~F)^z:E<=63?D&z|F&~z:D^(F|~z)}function g(E){return E<=15?0:E<=31?1518500249:E<=47?1859775393:E<=63?2400959708:2840853838}function m(E){return E<=15?1352829926:E<=31?1548603684:E<=47?1836072691:E<=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(E,D){for(var F=this.h[0],z=this.h[1],W=this.h[2],U=this.h[3],G=this.h[4],ee=F,P=z,I=W,S=U,C=G,_=0;_<80;_++){var w=u(s(l(F,f(_,z,W,U),E[p[_]+D],g(_)),v[_]),G);F=G,G=U,U=s(W,10),W=z,z=w,w=u(s(l(ee,f(79-_,P,I,S),E[y[_]+D],m(_)),b[_]),C),ee=C,C=S,S=s(I,10),I=P,P=w}w=c(this.h[1],W,S),this.h[1]=c(this.h[2],U,C),this.h[2]=c(this.h[3],G,ee),this.h[3]=c(this.h[4],F,P),this.h[4]=c(this.h[0],z,I),this.h[0]=w},h.prototype._digest=function(E){return E==="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],E=this.h[1],D=this.h[2],F=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,E,D,F),z,y[v],f[W]);z=F,F=D,D=u(E,30),E=b,b=U}this.h[0]=c(this.h[0],b),this.h[1]=c(this.h[1],E),this.h[2]=c(this.h[2],D),this.h[3]=c(this.h[3],F),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 E(){if(!(this instanceof E))return new E;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}a.inherits(E,v),n.exports=E,E.blockSize=512,E.outSize=256,E.hmacStrength=192,E.padLength=64,E.prototype._update=function(D,F){for(var z=this.W,W=0;W<16;W++)z[W]=D[F+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],P=this.h[3],I=this.h[4],S=this.h[5],C=this.h[6],_=this.h[7];for(u(this.k.length===z.length),W=0;W<z.length;W++){var w=d(_,m(I),h(I,S,C),this.k[W],z[W]),x=c(g(U),f(U,G,ee));_=C,C=S,S=I,I=c(P,w),P=ee,ee=G,G=U,U=c(w,x)}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],P),this.h[4]=c(this.h[4],I),this.h[5]=c(this.h[5],S),this.h[6]=c(this.h[6],C),this.h[7]=c(this.h[7],_)},E.prototype._digest=function(D){return D==="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,E=[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 D(){if(!(this instanceof D))return new D;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=E,this.W=new Array(160)}function F(x,A,k,R,M){var X=x&k^~x&M;return X<0&&(X+=4294967296),X}function z(x,A,k,R,M,X){var K=A&R^~A&X;return K<0&&(K+=4294967296),K}function W(x,A,k,R,M){var X=x&k^x&M^k&M;return X<0&&(X+=4294967296),X}function U(x,A,k,R,M,X){var K=A&R^A&X^R&X;return K<0&&(K+=4294967296),K}function G(x,A){var k=u(x,A,28)^u(A,x,2)^u(A,x,7);return k<0&&(k+=4294967296),k}function ee(x,A){var k=c(x,A,28)^c(A,x,2)^c(A,x,7);return k<0&&(k+=4294967296),k}function P(x,A){var k=u(x,A,14)^u(x,A,18)^u(A,x,9);return k<0&&(k+=4294967296),k}function I(x,A){var k=c(x,A,14)^c(x,A,18)^c(A,x,9);return k<0&&(k+=4294967296),k}function S(x,A){var k=u(x,A,1)^u(x,A,8)^l(x,A,7);return k<0&&(k+=4294967296),k}function C(x,A){var k=c(x,A,1)^c(x,A,8)^d(x,A,7);return k<0&&(k+=4294967296),k}function _(x,A){var k=u(x,A,19)^u(A,x,29)^l(x,A,6);return k<0&&(k+=4294967296),k}function w(x,A){var k=c(x,A,19)^c(A,x,29)^d(x,A,6);return k<0&&(k+=4294967296),k}a.inherits(D,b),n.exports=D,D.blockSize=1024,D.outSize=512,D.hmacStrength=192,D.padLength=128,D.prototype._prepareBlock=function(x,A){for(var k=this.W,R=0;R<32;R++)k[R]=x[A+R];for(;R<k.length;R+=2){var M=_(k[R-4],k[R-3]),X=w(k[R-4],k[R-3]),K=k[R-14],te=k[R-13],$=S(k[R-30],k[R-29]),q=C(k[R-30],k[R-29]),O=k[R-32],L=k[R-31];k[R]=m(M,X,K,te,$,q,O,L),k[R+1]=p(M,X,K,te,$,q,O,L)}},D.prototype._update=function(x,A){this._prepareBlock(x,A);var k=this.W,R=this.h[0],M=this.h[1],X=this.h[2],K=this.h[3],te=this.h[4],$=this.h[5],q=this.h[6],O=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===k.length);for(var B=0;B<k.length;B+=2){var H=ue,Z=Q,oe=P(L,V),ce=I(L,V),ne=F(L,V,J,re,ae),se=z(L,V,J,re,ae,j),fe=this.k[B],de=this.k[B+1],ve=k[B],Ee=k[B+1],Se=y(H,Z,oe,ce,ne,se,fe,de,ve,Ee),Fe=v(H,Z,oe,ce,ne,se,fe,de,ve,Ee);H=G(R,M),Z=ee(R,M),oe=W(R,M,X,K,te),ce=U(R,M,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,O,Se,Fe),V=g(O,O,Se,Fe),q=te,O=$,te=X,$=K,X=R,K=M,R=f(Se,Fe,He,qe),M=g(Se,Fe,He,qe)}h(this.h,0,R,M),h(this.h,2,X,K),h(this.h,4,te,$),h(this.h,6,q,O),h(this.h,8,L,V),h(this.h,10,J,re),h(this.h,12,ae,j),h(this.h,14,ue,Q)},D.prototype._digest=function(x){return x==="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,E=h;return b+=(E=E+g>>>0)<h?1:0,b+=(E=E+p>>>0)<p?1:0,d+f+m+y+(b+=(E=E+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,E){var D=0,F=h;return D+=(F=F+g>>>0)<h?1:0,D+=(F=F+p>>>0)<p?1:0,D+=(F=F+v>>>0)<v?1:0,d+f+m+y+b+(D+=(F=F+E>>>0)<E?1:0)>>>0},i.sum64_5_lo=function(d,h,f,g,m,p,y,v,b,E){return h+g+p+v+E>>>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,E=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*E}},{}],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(E,D){if(!m[E]){if(!g[E]){var F=typeof e=="function"&&e;if(!D&&F)return F(E,!0);if(v)return v(E,!0);var z=new Error("Cannot find module '"+E+"'");throw z.code="MODULE_NOT_FOUND",z}var W=m[E]={exports:{}};g[E][0].call(W.exports,function(U){return y(g[E][1][U]||U)},W,W.exports,f,g,m,p)}return m[E].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 E,D,F,z,W,U,G,ee=[],P=0,I=b.length,S=I,C=p.getTypeOf(b)!=="string";P<b.length;)S=I-P,F=C?(E=b[P++],D=P<I?b[P++]:0,P<I?b[P++]:0):(E=b.charCodeAt(P++),D=P<I?b.charCodeAt(P++):0,P<I?b.charCodeAt(P++):0),z=E>>2,W=(3&E)<<4|D>>4,U=1<S?(15&D)<<2|F>>6:64,G=2<S?63&F:64,ee.push(v.charAt(z)+v.charAt(W)+v.charAt(U)+v.charAt(G));return ee.join("")},m.decode=function(b){var E,D,F,z,W,U,G=0,ee=0,P="data:";if(b.substr(0,P.length)===P)throw new Error("Invalid base64 input, it looks like a data url.");var I,S=3*(b=b.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(b.charAt(b.length-1)===v.charAt(64)&&S--,b.charAt(b.length-2)===v.charAt(64)&&S--,S%1!=0)throw new Error("Invalid base64 input, bad content length.");for(I=y.uint8array?new Uint8Array(0|S):new Array(0|S);G<b.length;)E=v.indexOf(b.charAt(G++))<<2|(z=v.indexOf(b.charAt(G++)))>>4,D=(15&z)<<4|(W=v.indexOf(b.charAt(G++)))>>2,F=(3&W)<<6|(U=v.indexOf(b.charAt(G++))),I[ee++]=E,W!==64&&(I[ee++]=D),U!==64&&(I[ee++]=F);return I}},{"./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 E(D,F,z,W,U){this.compressedSize=D,this.uncompressedSize=F,this.crc32=z,this.compression=W,this.compressedContent=U}E.prototype={getContentWorker:function(){var D=new y(p.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new b("data_length")),F=this;return D.on("end",function(){if(this.streamInfo.data_length!==F.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),D},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)}},E.createWorkerFrom=function(D,F,z){return D.pipe(new v).pipe(new b("uncompressedSize")).pipe(F.compressWorker(z)).pipe(new b("compressedSize")).withStreamInfo("compression",F)},g.exports=E},{"./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=[],E=0;E<256;E++){v=E;for(var D=0;D<8;D++)v=1&v?3988292384^v>>>1:v>>>1;b[E]=v}return b}();g.exports=function(v,b){return v!==void 0&&v.length?p.getTypeOf(v)!=="string"?function(E,D,F,z){var W=y,U=0+F;E^=-1;for(var G=0;G<U;G++)E=E>>>8^W[255&(E^D[G])];return-1^E}(0|b,v,v.length):function(E,D,F,z){var W=y,U=0+F;E^=-1;for(var G=0;G<U;G++)E=E>>>8^W[255&(E^D.charCodeAt(G))];return-1^E}(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"),E=p?"uint8array":"array";function D(F,z){b.call(this,"FlateWorker/"+F),this._pako=null,this._pakoAction=F,this._pakoOptions=z,this.meta={}}m.magic="\b\0",v.inherits(D,b),D.prototype.processChunk=function(F){this.meta=F.meta,this._pako===null&&this._createPako(),this._pako.push(v.transformTo(E,F.data),!1)},D.prototype.flush=function(){b.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},D.prototype.cleanUp=function(){b.prototype.cleanUp.call(this),this._pako=null},D.prototype._createPako=function(){this._pako=new y[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var F=this;this._pako.onData=function(z){F.push({data:z,meta:F.meta})}},m.compressWorker=function(F){return new D("Deflate",F)},m.uncompressWorker=function(){return new D("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,P,I){var S,C,_=W.file,w=W.compression,x=I!==E.utf8encode,A=v.transformTo("string",I(_.name)),k=v.transformTo("string",E.utf8encode(_.name)),R=_.comment,M=v.transformTo("string",I(R)),X=v.transformTo("string",E.utf8encode(R)),K=k.length!==_.name.length,te=X.length!==R.length,$="",q="",O="",L=_.dir,V=_.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),x||!K&&!te||(re|=2048);var ae=0,j=0;L&&(ae|=16),P==="UNIX"?(j=798,ae|=function(Q,B){var H=Q;return Q||(H=B?16893:33204),(65535&H)<<16}(_.unixPermissions,L)):(j=20,ae|=function(Q){return 63&(Q||0)}(_.dosPermissions)),S=V.getUTCHours(),S<<=6,S|=V.getUTCMinutes(),S<<=5,S|=V.getUTCSeconds()/2,C=V.getUTCFullYear()-1980,C<<=4,C|=V.getUTCMonth()+1,C<<=5,C|=V.getUTCDate(),K&&(q=p(1,1)+p(D(A),4)+k,$+="up"+p(q.length,2)+q),te&&(O=p(1,1)+p(D(M),4)+X,$+="uc"+p(O.length,2)+O);var ue="";return ue+=`
|
|
\0`,ue+=p(re,2),ue+=w.magic,ue+=p(S,2),ue+=p(C,2),ue+=p(J.crc32,4),ue+=p(J.compressedSize,4),ue+=p(J.uncompressedSize,4),ue+=p(A.length,2),ue+=p($.length,2),{fileRecord:F.LOCAL_FILE_HEADER+ue+A+$,dirRecord:F.CENTRAL_FILE_HEADER+p(j,2)+ue+p(M.length,2)+"\0\0\0\0"+p(ae,4)+p(ee,4)+A+$+M}}var v=f("../utils"),b=f("../stream/GenericWorker"),E=f("../utf8"),D=f("../crc32"),F=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 F.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(P,I,S,C,_){var w=v.transformTo("string",_(C));return F.CENTRAL_DIRECTORY_END+"\0\0\0\0"+p(P,2)+p(P,2)+p(I,4)+p(S,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,E){var D=new y(b.streamFiles,E,b.platform,b.encodeFileName),F=0;try{v.forEach(function(z,W){F++;var U=function(I,S){var C=I||S,_=p[C];if(!_)throw new Error(C+" is not a valid compression method !");return _}(W.options.compression,b.compression),G=W.options.compressionOptions||b.compressionOptions||{},ee=W.dir,P=W.date;W._compressWorker(U,G).withStreamInfo("file",{name:z,dir:ee,date:P,comment:W.comment||"",unixPermissions:W.unixPermissions,dosPermissions:W.dosPermissions}).pipe(D)}),D.entriesCount=F}catch(z){D.error(z)}return D}},{"../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"),E=f("./stream/Crc32Probe"),D=f("./nodejsUtils");function F(z){return new y.Promise(function(W,U){var G=z.decompressed.getContentWorker().pipe(new E);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}),D.isNode&&D.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)],P=G.files;if(W.checkCRC32)for(var I=0;I<P.length;I++)ee.push(F(P[I]));return y.Promise.all(ee)}).then(function(G){for(var ee=G.shift(),P=ee.files,I=0;I<P.length;I++){var S=P[I],C=S.fileNameStr,_=p.resolve(S.fileNameStr);U.file(_,S.decompressed,{binary:!0,optimizedBinaryString:!0,date:S.date,dir:S.dir,comment:S.fileCommentStr.length?S.fileCommentStr:null,unixPermissions:S.unixPermissions,dosPermissions:S.dosPermissions,createFolders:W.createFolders}),S.dir||(U.file(_).unsafeOriginalName=C)}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,E){y.call(this,"Nodejs stream input adapter for "+b),this._upstreamEnded=!1,this._bindStream(E)}p.inherits(v,y),v.prototype._bindStream=function(b){var E=this;(this._stream=b).pause(),b.on("data",function(D){E.push({data:D,meta:{percent:0}})}).on("error",function(D){E.isPaused?this.generatedError=D:E.error(D)}).on("end",function(){E.isPaused?E._upstreamEnded=!0:E.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,E){p.call(this,b),this._helper=v;var D=this;v.on("data",function(F,z){D.push(F)||D._helper.pause(),E&&E(z)}).on("error",function(F){D.emit("error",F)}).on("end",function(){D.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(_,w,x){var A,k=v.getTypeOf(w),R=v.extend(x||{},D);R.date=R.date||new Date,R.compression!==null&&(R.compression=R.compression.toUpperCase()),typeof R.unixPermissions=="string"&&(R.unixPermissions=parseInt(R.unixPermissions,8)),R.unixPermissions&&16384&R.unixPermissions&&(R.dir=!0),R.dosPermissions&&16&R.dosPermissions&&(R.dir=!0),R.dir&&(_=P(_)),R.createFolders&&(A=ee(_))&&I.call(this,A,!0);var M=k==="string"&&R.binary===!1&&R.base64===!1;x&&x.binary!==void 0||(R.binary=!M),(w instanceof F&&w.uncompressedSize===0||R.dir||!w||w.length===0)&&(R.base64=!1,R.binary=!0,w="",R.compression="STORE",k="string");var X;X=w instanceof F||w instanceof b?w:U.isNode&&U.isStream(w)?new G(_,w):v.prepareContent(_,w,R.binary,R.optimizedBinaryString,R.base64);var K=new z(_,X,R);this.files[_]=K}var y=f("./utf8"),v=f("./utils"),b=f("./stream/GenericWorker"),E=f("./stream/StreamHelper"),D=f("./defaults"),F=f("./compressedObject"),z=f("./zipObject"),W=f("./generate"),U=f("./nodejsUtils"),G=f("./nodejs/NodejsStreamInputAdapter"),ee=function(_){_.slice(-1)==="/"&&(_=_.substring(0,_.length-1));var w=_.lastIndexOf("/");return 0<w?_.substring(0,w):""},P=function(_){return _.slice(-1)!=="/"&&(_+="/"),_},I=function(_,w){return w=w!==void 0?w:D.createFolders,_=P(_),this.files[_]||p.call(this,_,null,{dir:!0,createFolders:w}),this.files[_]};function S(_){return Object.prototype.toString.call(_)==="[object RegExp]"}var C={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(_){var w,x,A;for(w in this.files)A=this.files[w],(x=w.slice(this.root.length,w.length))&&w.slice(0,this.root.length)===this.root&&_(x,A)},filter:function(_){var w=[];return this.forEach(function(x,A){_(x,A)&&w.push(A)}),w},file:function(_,w,x){if(arguments.length!==1)return _=this.root+_,p.call(this,_,w,x),this;if(S(_)){var A=_;return this.filter(function(R,M){return!M.dir&&A.test(R)})}var k=this.files[this.root+_];return k&&!k.dir?k:null},folder:function(_){if(!_)return this;if(S(_))return this.filter(function(k,R){return R.dir&&_.test(k)});var w=this.root+_,x=I.call(this,w),A=this.clone();return A.root=x.name,A},remove:function(_){_=this.root+_;var w=this.files[_];if(w||(_.slice(-1)!=="/"&&(_+="/"),w=this.files[_]),w&&!w.dir)delete this.files[_];else for(var x=this.filter(function(k,R){return R.name.slice(0,_.length)===_}),A=0;A<x.length;A++)delete this.files[x[A].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(_){var w,x={};try{if((x=v.extend(_||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:y.utf8encode})).type=x.type.toLowerCase(),x.compression=x.compression.toUpperCase(),x.type==="binarystring"&&(x.type="string"),!x.type)throw new Error("No output type specified.");v.checkSupport(x.type),x.platform!=="darwin"&&x.platform!=="freebsd"&&x.platform!=="linux"&&x.platform!=="sunos"||(x.platform="UNIX"),x.platform==="win32"&&(x.platform="DOS");var A=x.comment||this.comment||"";w=W.generateWorker(this,x,A)}catch(k){(w=new b("error")).error(k)}return new E(w,x.type||"string",x.mimeType)},generateAsync:function(_,w){return this.generateInternalStream(_).accumulate(w)},generateNodeStream:function(_,w){return(_=_||{}).type||(_.type="nodebuffer"),this.generateInternalStream(_).toNodejsStream(w)}};g.exports=C},{"./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),E=v.charCodeAt(1),D=v.charCodeAt(2),F=v.charCodeAt(3),z=this.length-4;0<=z;--z)if(this.data[z]===b&&this.data[z+1]===E&&this.data[z+2]===D&&this.data[z+3]===F)return z-this.zero;return-1},y.prototype.readAndCheckSignature=function(v){var b=v.charCodeAt(0),E=v.charCodeAt(1),D=v.charCodeAt(2),F=v.charCodeAt(3),z=this.readData(4);return b===z[0]&&E===z[1]&&D===z[2]&&F===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,E=0;for(this.checkOffset(v),b=this.index+v-1;b>=this.index;b--)E=(E<<8)+this.byteAt(b);return this.index+=v,E},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"),E=f("./NodeBufferReader"),D=f("./Uint8ArrayReader");g.exports=function(F){var z=p.getTypeOf(F);return p.checkSupport(z),z!=="string"||y.uint8array?z==="nodebuffer"?new E(F):y.uint8array?new D(p.transformTo("uint8array",F)):new v(p.transformTo("array",F)):new b(F)}},{"../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 E=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=E+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 E=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,b.then(function(D){E.dataIsReady=!0,E.data=D,E.max=D&&D.length||0,E.type=p.getTypeOf(D),E.isPaused||E._tickAndRepeat()},function(D){E.error(D)})}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,E=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,E);break;case"uint8array":b=this.data.subarray(this.index,E);break;case"array":case"nodebuffer":b=this.data.slice(this.index,E)}return this.index=E,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"),E=f("../support"),D=f("../external"),F=null;if(E.nodestream)try{F=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(P){this._worker=new v("error"),this._worker.error(P)}}z.prototype={accumulate:function(W){return function(U,G){return new D.Promise(function(ee,P){var I=[],S=U._internalType,C=U._outputType,_=U._mimeType;U.on("data",function(w,x){I.push(w),G&&G(x)}).on("error",function(w){I=[],P(w)}).on("end",function(){try{var w=function(x,A,k){switch(x){case"blob":return p.newBlob(p.transformTo("arraybuffer",A),k);case"base64":return b.encode(A);default:return p.transformTo(x,A)}}(C,function(x,A){var k,R=0,M=null,X=0;for(k=0;k<A.length;k++)X+=A[k].length;switch(x){case"string":return A.join("");case"array":return Array.prototype.concat.apply([],A);case"uint8array":for(M=new Uint8Array(X),k=0;k<A.length;k++)M.set(A[k],R),R+=A[k].length;return M;case"nodebuffer":return s.concat(A);default:throw new Error("concat : unsupported type '"+x+"'")}}(S,I),_);ee(w)}catch(x){P(x)}I=[]}).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 F(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"),E=new Array(256),D=0;D<256;D++)E[D]=252<=D?6:248<=D?5:240<=D?4:224<=D?3:192<=D?2:1;function F(){b.call(this,"utf-8 decode"),this.leftOver=null}function z(){b.call(this,"utf-8 encode")}E[254]=E[254]=1,m.utf8encode=function(W){return y.nodebuffer?v.newBufferFrom(W,"utf-8"):function(U){var G,ee,P,I,S,C=U.length,_=0;for(I=0;I<C;I++)(64512&(ee=U.charCodeAt(I)))==55296&&I+1<C&&(64512&(P=U.charCodeAt(I+1)))==56320&&(ee=65536+(ee-55296<<10)+(P-56320),I++),_+=ee<128?1:ee<2048?2:ee<65536?3:4;for(G=y.uint8array?new Uint8Array(_):new Array(_),I=S=0;S<_;I++)(64512&(ee=U.charCodeAt(I)))==55296&&I+1<C&&(64512&(P=U.charCodeAt(I+1)))==56320&&(ee=65536+(ee-55296<<10)+(P-56320),I++),ee<128?G[S++]=ee:(ee<2048?G[S++]=192|ee>>>6:(ee<65536?G[S++]=224|ee>>>12:(G[S++]=240|ee>>>18,G[S++]=128|ee>>>12&63),G[S++]=128|ee>>>6&63),G[S++]=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,P,I,S=U.length,C=new Array(2*S);for(G=ee=0;G<S;)if((P=U[G++])<128)C[ee++]=P;else if(4<(I=E[P]))C[ee++]=65533,G+=I-1;else{for(P&=I===2?31:I===3?15:7;1<I&&G<S;)P=P<<6|63&U[G++],I--;1<I?C[ee++]=65533:P<65536?C[ee++]=P:(P-=65536,C[ee++]=55296|P>>10&1023,C[ee++]=56320|1023&P)}return C.length!==ee&&(C.subarray?C=C.subarray(0,ee):C.length=ee),p.applyFromCharCode(C)}(W=p.transformTo(y.uint8array?"uint8array":"array",W))},p.inherits(F,b),F.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(I,S){var C;for((S=S||I.length)>I.length&&(S=I.length),C=S-1;0<=C&&(192&I[C])==128;)C--;return C<0||C===0?S:C+E[I[C]]>S?C:S}(U),P=U;ee!==U.length&&(y.uint8array?(P=U.subarray(0,ee),this.leftOver=U.subarray(ee,U.length)):(P=U.slice(0,ee),this.leftOver=U.slice(ee,U.length))),this.push({data:m.utf8decode(P),meta:W.meta})},F.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:m.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},m.Utf8DecodeWorker=F,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 E(G){return G}function D(G,ee){for(var P=0;P<G.length;++P)ee[P]=255&G.charCodeAt(P);return ee}f("setimmediate"),m.newBlob=function(G,ee){m.checkSupport("blob");try{return new Blob([G],{type:ee})}catch{try{var P=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return P.append(G),P.getBlob(ee)}catch{throw new Error("Bug : can't construct the Blob.")}}};var F={stringifyByChunk:function(G,ee,P){var I=[],S=0,C=G.length;if(C<=P)return String.fromCharCode.apply(null,G);for(;S<C;)ee==="array"||ee==="nodebuffer"?I.push(String.fromCharCode.apply(null,G.slice(S,Math.min(S+P,C)))):I.push(String.fromCharCode.apply(null,G.subarray(S,Math.min(S+P,C)))),S+=P;return I.join("")},stringifyByChar:function(G){for(var ee="",P=0;P<G.length;P++)ee+=String.fromCharCode(G[P]);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,P=m.getTypeOf(G),I=!0;if(P==="uint8array"?I=F.applyCanBeUsed.uint8array:P==="nodebuffer"&&(I=F.applyCanBeUsed.nodebuffer),I)for(;1<ee;)try{return F.stringifyByChunk(G,P,ee)}catch{ee=Math.floor(ee/2)}return F.stringifyByChar(G)}function W(G,ee){for(var P=0;P<G.length;P++)ee[P]=G[P];return ee}m.applyFromCharCode=z;var U={};U.string={string:E,array:function(G){return D(G,new Array(G.length))},arraybuffer:function(G){return U.string.uint8array(G).buffer},uint8array:function(G){return D(G,new Uint8Array(G.length))},nodebuffer:function(G){return D(G,v.allocBuffer(G.length))}},U.array={string:z,array:E,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:E,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:E,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:E},m.transformTo=function(G,ee){if(ee=ee||"",!G)return ee;m.checkSupport(G);var P=m.getTypeOf(ee);return U[P][G](ee)},m.resolve=function(G){for(var ee=G.split("/"),P=[],I=0;I<ee.length;I++){var S=ee[I];S==="."||S===""&&I!==0&&I!==ee.length-1||(S===".."?P.pop():P.push(S))}return P.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,P,I="";for(P=0;P<(G||"").length;P++)I+="\\x"+((ee=G.charCodeAt(P))<16?"0":"")+ee.toString(16).toUpperCase();return I},m.delay=function(G,ee,P){h(function(){G.apply(P||null,ee||[])})},m.inherits=function(G,ee){function P(){}P.prototype=ee.prototype,G.prototype=new P},m.extend=function(){var G,ee,P={};for(G=0;G<arguments.length;G++)for(ee in arguments[G])Object.prototype.hasOwnProperty.call(arguments[G],ee)&&P[ee]===void 0&&(P[ee]=arguments[G][ee]);return P},m.prepareContent=function(G,ee,P,I,S){return b.Promise.resolve(ee).then(function(C){return p.blob&&(C instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(C))!==-1)&&typeof FileReader!="undefined"?new b.Promise(function(_,w){var x=new FileReader;x.onload=function(A){_(A.target.result)},x.onerror=function(A){w(A.target.error)},x.readAsArrayBuffer(C)}):C}).then(function(C){var _=m.getTypeOf(C);return _?(_==="arraybuffer"?C=m.transformTo("uint8array",C):_==="string"&&(S?C=y.decode(C):P&&I!==!0&&(C=function(w){return D(w,p.uint8array?new Uint8Array(w.length):new Array(w.length))}(C))),C):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"),E=f("./support");function D(F){this.files=[],this.loadOptions=F}D.prototype={checkSignature:function(F){if(!this.reader.readAndCheckSignature(F)){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(F)+")")}},isSignature:function(F,z){var W=this.reader.index;this.reader.setIndex(F);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 F=this.reader.readData(this.zipCommentLength),z=E.uint8array?"uint8array":"array",W=y.transformTo(z,F);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 F,z,W,U=this.zip64EndOfCentralSize-44;0<U;)F=this.reader.readInt(2),z=this.reader.readInt(4),W=this.reader.readData(z),this.zip64ExtensibleData[F]={id:F,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 F,z;for(F=0;F<this.files.length;F++)z=this.files[F],this.reader.setIndex(z.localHeaderOffset),this.checkSignature(v.LOCAL_FILE_HEADER),z.readLocalPart(this.reader),z.handleUTF8(),z.processAttributes()},readCentralDir:function(){var F;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(v.CENTRAL_FILE_HEADER);)(F=new b({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(F);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 F=this.reader.lastIndexOfSignature(v.CENTRAL_DIRECTORY_END);if(F<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(F);var z=F;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,(F=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(F),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(F){this.reader=p(F)},load:function(F){this.prepareReader(F),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},g.exports=D},{"./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"),E=f("./utf8"),D=f("./compressions"),F=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 P in D)if(Object.prototype.hasOwnProperty.call(D,P)&&D[P].magic===ee)return D[P];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,P=W.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});W.index+4<P;)U=W.readInt(2),G=W.readInt(2),ee=W.readData(G),this.extraFields[U]={id:U,length:G,value:ee};W.setIndex(P)},handleUTF8:function(){var W=F.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=E.utf8decode(this.fileName),this.fileCommentStr=E.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 P=y.transformTo(W,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(P)}}},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:E.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:E.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"),E=f("./compressedObject"),D=f("./stream/GenericWorker");p.prototype={internalStream:function(U){var G=null,ee="string";try{if(!U)throw new Error("No output type specified.");var P=(ee=U.toLowerCase())==="string"||ee==="text";ee!=="binarystring"&&ee!=="text"||(ee="string"),G=this._decompressWorker();var I=!this._dataBinary;I&&!P&&(G=G.pipe(new b.Utf8EncodeWorker)),!I&&P&&(G=G.pipe(new b.Utf8DecodeWorker))}catch(S){(G=new D("error")).error(S)}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 E&&this._data.compression.magic===U.magic)return this._data.getCompressedWorker();var ee=this._decompressWorker();return this._dataBinary||(ee=ee.pipe(new b.Utf8EncodeWorker)),E.createWorkerFrom(ee,U,G)},_decompressWorker:function(){return this._data instanceof E?this._data.getContentWorker():this._data instanceof D?this._data:new v(this._data)}};for(var F=["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<F.length;W++)p.prototype[F[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 E=0,D=new b(U),F=p.document.createTextNode("");D.observe(F,{characterData:!0}),y=function(){F.data=E=++E%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 P=W.length;P;){for(ee=W,W=[],G=-1;++G<P;)ee[G]();P=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"],E=["FULFILLED"],D=["PENDING"];function F(P){if(typeof P!="function")throw new TypeError("resolver must be a function");this.state=D,this.queue=[],this.outcome=void 0,P!==y&&G(this,P)}function z(P,I,S){this.promise=P,typeof I=="function"&&(this.onFulfilled=I,this.callFulfilled=this.otherCallFulfilled),typeof S=="function"&&(this.onRejected=S,this.callRejected=this.otherCallRejected)}function W(P,I,S){p(function(){var C;try{C=I(S)}catch(_){return v.reject(P,_)}C===P?v.reject(P,new TypeError("Cannot resolve promise with itself")):v.resolve(P,C)})}function U(P){var I=P&&P.then;if(P&&(typeof P=="object"||typeof P=="function")&&typeof I=="function")return function(){I.apply(P,arguments)}}function G(P,I){var S=!1;function C(x){S||(S=!0,v.reject(P,x))}function _(x){S||(S=!0,v.resolve(P,x))}var w=ee(function(){I(_,C)});w.status==="error"&&C(w.value)}function ee(P,I){var S={};try{S.value=P(I),S.status="success"}catch(C){S.status="error",S.value=C}return S}(g.exports=F).prototype.finally=function(P){if(typeof P!="function")return this;var I=this.constructor;return this.then(function(S){return I.resolve(P()).then(function(){return S})},function(S){return I.resolve(P()).then(function(){throw S})})},F.prototype.catch=function(P){return this.then(null,P)},F.prototype.then=function(P,I){if(typeof P!="function"&&this.state===E||typeof I!="function"&&this.state===b)return this;var S=new this.constructor(y);return this.state!==D?W(S,this.state===E?P:I,this.outcome):this.queue.push(new z(S,P,I)),S},z.prototype.callFulfilled=function(P){v.resolve(this.promise,P)},z.prototype.otherCallFulfilled=function(P){W(this.promise,this.onFulfilled,P)},z.prototype.callRejected=function(P){v.reject(this.promise,P)},z.prototype.otherCallRejected=function(P){W(this.promise,this.onRejected,P)},v.resolve=function(P,I){var S=ee(U,I);if(S.status==="error")return v.reject(P,S.value);var C=S.value;if(C)G(P,C);else{P.state=E,P.outcome=I;for(var _=-1,w=P.queue.length;++_<w;)P.queue[_].callFulfilled(I)}return P},v.reject=function(P,I){P.state=b,P.outcome=I;for(var S=-1,C=P.queue.length;++S<C;)P.queue[S].callRejected(I);return P},F.resolve=function(P){return P instanceof this?P:v.resolve(new this(y),P)},F.reject=function(P){var I=new this(y);return v.reject(I,P)},F.all=function(P){var I=this;if(Object.prototype.toString.call(P)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=P.length,C=!1;if(!S)return this.resolve([]);for(var _=new Array(S),w=0,x=-1,A=new this(y);++x<S;)k(P[x],x);return A;function k(R,M){I.resolve(R).then(function(X){_[M]=X,++w!==S||C||(C=!0,v.resolve(A,_))},function(X){C||(C=!0,v.reject(A,X))})}},F.race=function(P){if(Object.prototype.toString.call(P)!=="[object Array]")return this.reject(new TypeError("must be an array"));var I=P.length,S=!1;if(!I)return this.resolve([]);for(var C,_=-1,w=new this(y);++_<I;)C=P[_],this.resolve(C).then(function(x){S||(S=!0,v.resolve(w,x))},function(x){S||(S=!0,v.reject(w,x))});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"),E=f("./zlib/zstream"),D=Object.prototype.toString;function F(W){if(!(this instanceof F))return new F(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 E,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):D.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 F(U);if(G.push(W,!0),G.err)throw G.msg||b[G.err];return G.result}F.prototype.push=function(W,U){var G,ee,P=this.strm,I=this.options.chunkSize;if(this.ended)return!1;ee=U===~~U?U:U===!0?4:0,typeof W=="string"?P.input=v.string2buf(W):D.call(W)==="[object ArrayBuffer]"?P.input=new Uint8Array(W):P.input=W,P.next_in=0,P.avail_in=P.input.length;do{if(P.avail_out===0&&(P.output=new y.Buf8(I),P.next_out=0,P.avail_out=I),(G=p.deflate(P,ee))!==1&&G!==0)return this.onEnd(G),!(this.ended=!0);P.avail_out!==0&&(P.avail_in!==0||ee!==4&&ee!==2)||(this.options.to==="string"?this.onData(v.buf2binstring(y.shrinkBuf(P.output,P.next_out))):this.onData(y.shrinkBuf(P.output,P.next_out)))}while((0<P.avail_in||P.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),!(P.avail_out=0))},F.prototype.onData=function(W){this.chunks.push(W)},F.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=F,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"),E=f("./zlib/messages"),D=f("./zlib/zstream"),F=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 D,this.strm.avail_out=0;var P=p.inflateInit2(this.strm,ee.windowBits);if(P!==b.Z_OK)throw new Error(E[P]);this.header=new F,p.inflateGetHeader(this.strm,this.header)}function U(G,ee){var P=new W(ee);if(P.push(G,!0),P.err)throw P.msg||E[P.err];return P.result}W.prototype.push=function(G,ee){var P,I,S,C,_,w,x=this.strm,A=this.options.chunkSize,k=this.options.dictionary,R=!1;if(this.ended)return!1;I=ee===~~ee?ee:ee===!0?b.Z_FINISH:b.Z_NO_FLUSH,typeof G=="string"?x.input=v.binstring2buf(G):z.call(G)==="[object ArrayBuffer]"?x.input=new Uint8Array(G):x.input=G,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new y.Buf8(A),x.next_out=0,x.avail_out=A),(P=p.inflate(x,b.Z_NO_FLUSH))===b.Z_NEED_DICT&&k&&(w=typeof k=="string"?v.string2buf(k):z.call(k)==="[object ArrayBuffer]"?new Uint8Array(k):k,P=p.inflateSetDictionary(this.strm,w)),P===b.Z_BUF_ERROR&&R===!0&&(P=b.Z_OK,R=!1),P!==b.Z_STREAM_END&&P!==b.Z_OK)return this.onEnd(P),!(this.ended=!0);x.next_out&&(x.avail_out!==0&&P!==b.Z_STREAM_END&&(x.avail_in!==0||I!==b.Z_FINISH&&I!==b.Z_SYNC_FLUSH)||(this.options.to==="string"?(S=v.utf8border(x.output,x.next_out),C=x.next_out-S,_=v.buf2string(x.output,S),x.next_out=C,x.avail_out=A-C,C&&y.arraySet(x.output,x.output,S,C,0),this.onData(_)):this.onData(y.shrinkBuf(x.output,x.next_out)))),x.avail_in===0&&x.avail_out===0&&(R=!0)}while((0<x.avail_in||x.avail_out===0)&&P!==b.Z_STREAM_END);return P===b.Z_STREAM_END&&(I=b.Z_FINISH),I===b.Z_FINISH?(P=p.inflateEnd(this.strm),this.onEnd(P),this.ended=!0,P===b.Z_OK):I!==b.Z_SYNC_FLUSH||(this.onEnd(b.Z_OK),!(x.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 E=Array.prototype.slice.call(arguments,1);E.length;){var D=E.shift();if(D){if(typeof D!="object")throw new TypeError(D+"must be non-object");for(var F in D)D.hasOwnProperty(F)&&(b[F]=D[F])}}return b},m.shrinkBuf=function(b,E){return b.length===E?b:b.subarray?b.subarray(0,E):(b.length=E,b)};var y={arraySet:function(b,E,D,F,z){if(E.subarray&&b.subarray)b.set(E.subarray(D,D+F),z);else for(var W=0;W<F;W++)b[z+W]=E[D+W]},flattenChunks:function(b){var E,D,F,z,W,U;for(E=F=0,D=b.length;E<D;E++)F+=b[E].length;for(U=new Uint8Array(F),E=z=0,D=b.length;E<D;E++)W=b[E],U.set(W,z),z+=W.length;return U}},v={arraySet:function(b,E,D,F,z){for(var W=0;W<F;W++)b[z+W]=E[D+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),E=0;E<256;E++)b[E]=252<=E?6:248<=E?5:240<=E?4:224<=E?3:192<=E?2:1;function D(F,z){if(z<65537&&(F.subarray&&v||!F.subarray&&y))return String.fromCharCode.apply(null,p.shrinkBuf(F,z));for(var W="",U=0;U<z;U++)W+=String.fromCharCode(F[U]);return W}b[254]=b[254]=1,m.string2buf=function(F){var z,W,U,G,ee,P=F.length,I=0;for(G=0;G<P;G++)(64512&(W=F.charCodeAt(G)))==55296&&G+1<P&&(64512&(U=F.charCodeAt(G+1)))==56320&&(W=65536+(W-55296<<10)+(U-56320),G++),I+=W<128?1:W<2048?2:W<65536?3:4;for(z=new p.Buf8(I),G=ee=0;ee<I;G++)(64512&(W=F.charCodeAt(G)))==55296&&G+1<P&&(64512&(U=F.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(F){return D(F,F.length)},m.binstring2buf=function(F){for(var z=new p.Buf8(F.length),W=0,U=z.length;W<U;W++)z[W]=F.charCodeAt(W);return z},m.buf2string=function(F,z){var W,U,G,ee,P=z||F.length,I=new Array(2*P);for(W=U=0;W<P;)if((G=F[W++])<128)I[U++]=G;else if(4<(ee=b[G]))I[U++]=65533,W+=ee-1;else{for(G&=ee===2?31:ee===3?15:7;1<ee&&W<P;)G=G<<6|63&F[W++],ee--;1<ee?I[U++]=65533:G<65536?I[U++]=G:(G-=65536,I[U++]=55296|G>>10&1023,I[U++]=56320|1023&G)}return D(I,U)},m.utf8border=function(F,z){var W;for((z=z||F.length)>F.length&&(z=F.length),W=z-1;0<=W&&(192&F[W])==128;)W--;return W<0||W===0?z:W+b[F[W]]>z?W:z}},{"./common":41}],43:[function(f,g,m){g.exports=function(p,y,v,b){for(var E=65535&p|0,D=p>>>16&65535|0,F=0;v!==0;){for(v-=F=2e3<v?2e3:v;D=D+(E=E+y[b++]|0)|0,--F;);E%=65521,D%=65521}return E|D<<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 E=0;E<8;E++)y=1&y?3988292384^y>>>1:y>>>1;v[b]=y}return v}();g.exports=function(y,v,b,E){var D=p,F=E+b;y^=-1;for(var z=E;z<F;z++)y=y>>>8^D[255&(y^v[z])];return-1^y}},{}],46:[function(f,g,m){var p,y=f("../utils/common"),v=f("./trees"),b=f("./adler32"),E=f("./crc32"),D=f("./messages"),F=-2,z=258,W=262,U=113;function G($,q){return $.msg=D[q],q}function ee($){return($<<1)-(4<$?9:0)}function P($){for(var q=$.length;0<=--q;)$[q]=0}function I($){var q=$.state,O=q.pending;O>$.avail_out&&(O=$.avail_out),O!==0&&(y.arraySet($.output,q.pending_buf,q.pending_out,O,$.next_out),$.next_out+=O,q.pending_out+=O,$.total_out+=O,$.avail_out-=O,q.pending-=O,q.pending===0&&(q.pending_out=0))}function S($,q){v._tr_flush_block($,0<=$.block_start?$.block_start:-1,$.strstart-$.block_start,q),$.block_start=$.strstart,I($.strm)}function C($,q){$.pending_buf[$.pending++]=q}function _($,q){$.pending_buf[$.pending++]=q>>>8&255,$.pending_buf[$.pending++]=255&q}function w($,q){var O,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,B=$.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[(O=q)+re]===oe&&ue[O+re-1]===Z&&ue[O]===ue[J]&&ue[++O]===ue[J+1]){J+=2,O++;do;while(ue[++J]===ue[++O]&&ue[++J]===ue[++O]&&ue[++J]===ue[++O]&&ue[++J]===ue[++O]&&ue[++J]===ue[++O]&&ue[++J]===ue[++O]&&ue[++J]===ue[++O]&&ue[++J]===ue[++O]&&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=B[q&Q])>j&&--V!=0);return re<=$.lookahead?re:$.lookahead}function x($){var q,O,L,V,J,re,ae,j,ue,Q,B=$.w_size;do{if(V=$.window_size-$.lookahead-$.strstart,$.strstart>=B+(B-W)){for(y.arraySet($.window,$.window,B,B,0),$.match_start-=B,$.strstart-=B,$.block_start-=B,q=O=$.hash_size;L=$.head[--q],$.head[q]=B<=L?L-B:0,--O;);for(q=O=B;L=$.prev[--q],$.prev[q]=B<=L?L-B:0,--O;);V+=B}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),O=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=E(re.adler,ae,Q,j)),re.next_in+=Q,re.total_in+=Q,Q),$.lookahead+=O,$.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 A($,q){for(var O,L;;){if($.lookahead<W){if(x($),$.lookahead<W&&q===0)return 1;if($.lookahead===0)break}if(O=0,$.lookahead>=3&&($.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+3-1])&$.hash_mask,O=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart),O!==0&&$.strstart-O<=$.w_size-W&&($.match_length=w($,O)),$.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,O=$.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&&(S($,!1),$.strm.avail_out===0))return 1}return $.insert=$.strstart<2?$.strstart:2,q===4?(S($,!0),$.strm.avail_out===0?3:4):$.last_lit&&(S($,!1),$.strm.avail_out===0)?1:2}function k($,q){for(var O,L,V;;){if($.lookahead<W){if(x($),$.lookahead<W&&q===0)return 1;if($.lookahead===0)break}if(O=0,$.lookahead>=3&&($.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+3-1])&$.hash_mask,O=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart),$.prev_length=$.match_length,$.prev_match=$.match_start,$.match_length=2,O!==0&&$.prev_length<$.max_lazy_match&&$.strstart-O<=$.w_size-W&&($.match_length=w($,O),$.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,O=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart),--$.prev_length!=0;);if($.match_available=0,$.match_length=2,$.strstart++,L&&(S($,!1),$.strm.avail_out===0))return 1}else if($.match_available){if((L=v._tr_tally($,0,$.window[$.strstart-1]))&&S($,!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?(S($,!0),$.strm.avail_out===0?3:4):$.last_lit&&(S($,!1),$.strm.avail_out===0)?1:2}function R($,q,O,L,V){this.good_length=$,this.max_lazy=q,this.nice_length=O,this.max_chain=L,this.func=V}function M(){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),P(this.dyn_ltree),P(this.dyn_dtree),P(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),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new y.Buf16(573),P(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($,F)}function K($){var q=X($);return q===0&&function(O){O.window_size=2*O.w_size,P(O.head),O.max_lazy_match=p[O.level].max_lazy,O.good_match=p[O.level].good_length,O.nice_match=p[O.level].nice_length,O.max_chain_length=p[O.level].max_chain,O.strstart=0,O.block_start=0,O.lookahead=0,O.insert=0,O.match_length=O.prev_length=2,O.match_available=0,O.ins_h=0}($.state),q}function te($,q,O,L,V,J){if(!$)return F;var re=1;if(q===-1&&(q=6),L<0?(re=0,L=-L):15<L&&(re=2,L-=16),V<1||9<V||O!==8||L<8||15<L||q<0||9<q||J<0||4<J)return G($,F);L===8&&(L=9);var ae=new M;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=O,K($)}p=[new R(0,0,0,0,function($,q){var O=65535;for(O>$.pending_buf_size-5&&(O=$.pending_buf_size-5);;){if($.lookahead<=1){if(x($),$.lookahead===0&&q===0)return 1;if($.lookahead===0)break}$.strstart+=$.lookahead,$.lookahead=0;var L=$.block_start+O;if(($.strstart===0||$.strstart>=L)&&($.lookahead=$.strstart-L,$.strstart=L,S($,!1),$.strm.avail_out===0)||$.strstart-$.block_start>=$.w_size-W&&(S($,!1),$.strm.avail_out===0))return 1}return $.insert=0,q===4?(S($,!0),$.strm.avail_out===0?3:4):($.strstart>$.block_start&&(S($,!1),$.strm.avail_out),1)}),new R(4,4,8,4,A),new R(4,5,16,8,A),new R(4,6,32,32,A),new R(4,4,16,16,k),new R(8,16,32,32,k),new R(8,16,128,128,k),new R(8,32,128,256,k),new R(32,128,258,1024,k),new R(32,258,258,4096,k)],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?F:($.state.gzhead=q,0):F},m.deflate=function($,q){var O,L,V,J;if(!$||!$.state||5<q||q<0)return $?G($,F):F;if(L=$.state,!$.output||!$.input&&$.avail_in!==0||L.status===666&&q!==4)return G($,$.avail_out===0?-5:F);if(L.strm=$,O=L.last_flush,L.last_flush=q,L.status===42)if(L.wrap===2)$.adler=0,C(L,31),C(L,139),C(L,8),L.gzhead?(C(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)),C(L,255&L.gzhead.time),C(L,L.gzhead.time>>8&255),C(L,L.gzhead.time>>16&255),C(L,L.gzhead.time>>24&255),C(L,L.level===9?2:2<=L.strategy||L.level<2?4:0),C(L,255&L.gzhead.os),L.gzhead.extra&&L.gzhead.extra.length&&(C(L,255&L.gzhead.extra.length),C(L,L.gzhead.extra.length>>8&255)),L.gzhead.hcrc&&($.adler=E($.adler,L.pending_buf,L.pending,0)),L.gzindex=0,L.status=69):(C(L,0),C(L,0),C(L,0),C(L,0),C(L,0),C(L,L.level===9?2:2<=L.strategy||L.level<2?4:0),C(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,_(L,re),L.strstart!==0&&(_(L,$.adler>>>16),_(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=E($.adler,L.pending_buf,L.pending-V,V)),I($),V=L.pending,L.pending!==L.pending_buf_size));)C(L,255&L.gzhead.extra[L.gzindex]),L.gzindex++;L.gzhead.hcrc&&L.pending>V&&($.adler=E($.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=E($.adler,L.pending_buf,L.pending-V,V)),I($),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,C(L,J)}while(J!==0);L.gzhead.hcrc&&L.pending>V&&($.adler=E($.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=E($.adler,L.pending_buf,L.pending-V,V)),I($),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,C(L,J)}while(J!==0);L.gzhead.hcrc&&L.pending>V&&($.adler=E($.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&&I($),L.pending+2<=L.pending_buf_size&&(C(L,255&$.adler),C(L,$.adler>>8&255),$.adler=0,L.status=U)):L.status=U),L.pending!==0){if(I($),$.avail_out===0)return L.last_flush=-1,0}else if($.avail_in===0&&ee(q)<=ee(O)&&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&&(x(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&&(S(j,!1),j.strm.avail_out===0))return 1}return j.insert=0,ue===4?(S(j,!0),j.strm.avail_out===0?3:4):j.last_lit&&(S(j,!1),j.strm.avail_out===0)?1:2}(L,q):L.strategy===3?function(j,ue){for(var Q,B,H,Z,oe=j.window;;){if(j.lookahead<=z){if(x(j),j.lookahead<=z&&ue===0)return 1;if(j.lookahead===0)break}if(j.match_length=0,j.lookahead>=3&&0<j.strstart&&(B=oe[H=j.strstart-1])===oe[++H]&&B===oe[++H]&&B===oe[++H]){Z=j.strstart+z;do;while(B===oe[++H]&&B===oe[++H]&&B===oe[++H]&&B===oe[++H]&&B===oe[++H]&&B===oe[++H]&&B===oe[++H]&&B===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&&(S(j,!1),j.strm.avail_out===0))return 1}return j.insert=0,ue===4?(S(j,!0),j.strm.avail_out===0?3:4):j.last_lit&&(S(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&&(P(L.head),L.lookahead===0&&(L.strstart=0,L.block_start=0,L.insert=0))),I($),$.avail_out===0))return L.last_flush=-1,0}return q!==4?0:L.wrap<=0?1:(L.wrap===2?(C(L,255&$.adler),C(L,$.adler>>8&255),C(L,$.adler>>16&255),C(L,$.adler>>24&255),C(L,255&$.total_in),C(L,$.total_in>>8&255),C(L,$.total_in>>16&255),C(L,$.total_in>>24&255)):(_(L,$.adler>>>16),_(L,65535&$.adler)),I($),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($,F):($.state=null,q===U?G($,-3):0):F},m.deflateSetDictionary=function($,q){var O,L,V,J,re,ae,j,ue,Q=q.length;if(!$||!$.state||(J=(O=$.state).wrap)===2||J===1&&O.status!==42||O.lookahead)return F;for(J===1&&($.adler=b($.adler,q,Q,0)),O.wrap=0,Q>=O.w_size&&(J===0&&(P(O.head),O.strstart=0,O.block_start=0,O.insert=0),ue=new y.Buf8(O.w_size),y.arraySet(ue,q,Q-O.w_size,O.w_size,0),q=ue,Q=O.w_size),re=$.avail_in,ae=$.next_in,j=$.input,$.avail_in=Q,$.next_in=0,$.input=q,x(O);O.lookahead>=3;){for(L=O.strstart,V=O.lookahead-2;O.ins_h=(O.ins_h<<O.hash_shift^O.window[L+3-1])&O.hash_mask,O.prev[L&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=L,L++,--V;);O.strstart=L,O.lookahead=2,x(O)}return O.strstart+=O.lookahead,O.block_start=O.strstart,O.insert=O.lookahead,O.lookahead=0,O.match_length=O.prev_length=2,O.match_available=0,$.next_in=ae,$.input=j,$.avail_in=re,O.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,E,D,F,z,W,U,G,ee,P,I,S,C,_,w,x,A,k,R,M,X,K,te,$;v=p.state,b=p.next_in,te=p.input,E=b+(p.avail_in-5),D=p.next_out,$=p.output,F=D-(y-p.avail_out),z=D+(p.avail_out-257),W=v.dmax,U=v.wsize,G=v.whave,ee=v.wnext,P=v.window,I=v.hold,S=v.bits,C=v.lencode,_=v.distcode,w=(1<<v.lenbits)-1,x=(1<<v.distbits)-1;e:do{S<15&&(I+=te[b++]<<S,S+=8,I+=te[b++]<<S,S+=8),A=C[I&w];t:for(;;){if(I>>>=k=A>>>24,S-=k,(k=A>>>16&255)==0)$[D++]=65535&A;else{if(!(16&k)){if((64&k)==0){A=C[(65535&A)+(I&(1<<k)-1)];continue t}if(32&k){v.mode=12;break e}p.msg="invalid literal/length code",v.mode=30;break e}R=65535&A,(k&=15)&&(S<k&&(I+=te[b++]<<S,S+=8),R+=I&(1<<k)-1,I>>>=k,S-=k),S<15&&(I+=te[b++]<<S,S+=8,I+=te[b++]<<S,S+=8),A=_[I&x];r:for(;;){if(I>>>=k=A>>>24,S-=k,!(16&(k=A>>>16&255))){if((64&k)==0){A=_[(65535&A)+(I&(1<<k)-1)];continue r}p.msg="invalid distance code",v.mode=30;break e}if(M=65535&A,S<(k&=15)&&(I+=te[b++]<<S,(S+=8)<k&&(I+=te[b++]<<S,S+=8)),W<(M+=I&(1<<k)-1)){p.msg="invalid distance too far back",v.mode=30;break e}if(I>>>=k,S-=k,(k=D-F)<M){if(G<(k=M-k)&&v.sane){p.msg="invalid distance too far back",v.mode=30;break e}if(K=P,(X=0)===ee){if(X+=U-k,k<R){for(R-=k;$[D++]=P[X++],--k;);X=D-M,K=$}}else if(ee<k){if(X+=U+ee-k,(k-=ee)<R){for(R-=k;$[D++]=P[X++],--k;);if(X=0,ee<R){for(R-=k=ee;$[D++]=P[X++],--k;);X=D-M,K=$}}}else if(X+=ee-k,k<R){for(R-=k;$[D++]=P[X++],--k;);X=D-M,K=$}for(;2<R;)$[D++]=K[X++],$[D++]=K[X++],$[D++]=K[X++],R-=3;R&&($[D++]=K[X++],1<R&&($[D++]=K[X++]))}else{for(X=D-M;$[D++]=$[X++],$[D++]=$[X++],$[D++]=$[X++],2<(R-=3););R&&($[D++]=$[X++],1<R&&($[D++]=$[X++]))}break}}break}}while(b<E&&D<z);b-=R=S>>3,I&=(1<<(S-=R<<3))-1,p.next_in=b,p.next_out=D,p.avail_in=b<E?E-b+5:5-(b-E),p.avail_out=D<z?z-D+257:257-(D-z),v.hold=I,v.bits=S}},{}],49:[function(f,g,m){var p=f("../utils/common"),y=f("./adler32"),v=f("./crc32"),b=f("./inffast"),E=f("./inftrees"),D=-2;function F(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 x;return w&&w.state?(x=w.state,w.total_in=w.total_out=x.total=0,w.msg="",x.wrap&&(w.adler=1&x.wrap),x.mode=1,x.last=0,x.havedict=0,x.dmax=32768,x.head=null,x.hold=0,x.bits=0,x.lencode=x.lendyn=new p.Buf32(852),x.distcode=x.distdyn=new p.Buf32(592),x.sane=1,x.back=-1,0):D}function U(w){var x;return w&&w.state?((x=w.state).wsize=0,x.whave=0,x.wnext=0,W(w)):D}function G(w,x){var A,k;return w&&w.state?(k=w.state,x<0?(A=0,x=-x):(A=1+(x>>4),x<48&&(x&=15)),x&&(x<8||15<x)?D:(k.window!==null&&k.wbits!==x&&(k.window=null),k.wrap=A,k.wbits=x,U(w))):D}function ee(w,x){var A,k;return w?(k=new z,(w.state=k).window=null,(A=G(w,x))!==0&&(w.state=null),A):D}var P,I,S=!0;function C(w){if(S){var x;for(P=new p.Buf32(512),I=new p.Buf32(32),x=0;x<144;)w.lens[x++]=8;for(;x<256;)w.lens[x++]=9;for(;x<280;)w.lens[x++]=7;for(;x<288;)w.lens[x++]=8;for(E(1,w.lens,0,288,P,0,w.work,{bits:9}),x=0;x<32;)w.lens[x++]=5;E(2,w.lens,0,32,I,0,w.work,{bits:5}),S=!1}w.lencode=P,w.lenbits=9,w.distcode=I,w.distbits=5}function _(w,x,A,k){var R,M=w.state;return M.window===null&&(M.wsize=1<<M.wbits,M.wnext=0,M.whave=0,M.window=new p.Buf8(M.wsize)),k>=M.wsize?(p.arraySet(M.window,x,A-M.wsize,M.wsize,0),M.wnext=0,M.whave=M.wsize):(k<(R=M.wsize-M.wnext)&&(R=k),p.arraySet(M.window,x,A-k,R,M.wnext),(k-=R)?(p.arraySet(M.window,x,A-k,k,0),M.wnext=k,M.whave=M.wsize):(M.wnext+=R,M.wnext===M.wsize&&(M.wnext=0),M.whave<M.wsize&&(M.whave+=R))),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,x){var A,k,R,M,X,K,te,$,q,O,L,V,J,re,ae,j,ue,Q,B,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 D;(A=w.state).mode===12&&(A.mode=13),X=w.next_out,R=w.output,te=w.avail_out,M=w.next_in,k=w.input,K=w.avail_in,$=A.hold,q=A.bits,O=K,L=te,oe=0;e:for(;;)switch(A.mode){case 1:if(A.wrap===0){A.mode=13;break}for(;q<16;){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}if(2&A.wrap&&$===35615){fe[A.check=0]=255&$,fe[1]=$>>>8&255,A.check=v(A.check,fe,2,0),q=$=0,A.mode=2;break}if(A.flags=0,A.head&&(A.head.done=!1),!(1&A.wrap)||(((255&$)<<8)+($>>8))%31){w.msg="incorrect header check",A.mode=30;break}if((15&$)!=8){w.msg="unknown compression method",A.mode=30;break}if(q-=4,Z=8+(15&($>>>=4)),A.wbits===0)A.wbits=Z;else if(Z>A.wbits){w.msg="invalid window size",A.mode=30;break}A.dmax=1<<Z,w.adler=A.check=1,A.mode=512&$?10:12,q=$=0;break;case 2:for(;q<16;){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}if(A.flags=$,(255&A.flags)!=8){w.msg="unknown compression method",A.mode=30;break}if(57344&A.flags){w.msg="unknown header flags set",A.mode=30;break}A.head&&(A.head.text=$>>8&1),512&A.flags&&(fe[0]=255&$,fe[1]=$>>>8&255,A.check=v(A.check,fe,2,0)),q=$=0,A.mode=3;case 3:for(;q<32;){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}A.head&&(A.head.time=$),512&A.flags&&(fe[0]=255&$,fe[1]=$>>>8&255,fe[2]=$>>>16&255,fe[3]=$>>>24&255,A.check=v(A.check,fe,4,0)),q=$=0,A.mode=4;case 4:for(;q<16;){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}A.head&&(A.head.xflags=255&$,A.head.os=$>>8),512&A.flags&&(fe[0]=255&$,fe[1]=$>>>8&255,A.check=v(A.check,fe,2,0)),q=$=0,A.mode=5;case 5:if(1024&A.flags){for(;q<16;){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}A.length=$,A.head&&(A.head.extra_len=$),512&A.flags&&(fe[0]=255&$,fe[1]=$>>>8&255,A.check=v(A.check,fe,2,0)),q=$=0}else A.head&&(A.head.extra=null);A.mode=6;case 6:if(1024&A.flags&&(K<(V=A.length)&&(V=K),V&&(A.head&&(Z=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Array(A.head.extra_len)),p.arraySet(A.head.extra,k,M,V,Z)),512&A.flags&&(A.check=v(A.check,k,V,M)),K-=V,M+=V,A.length-=V),A.length))break e;A.length=0,A.mode=7;case 7:if(2048&A.flags){if(K===0)break e;for(V=0;Z=k[M+V++],A.head&&Z&&A.length<65536&&(A.head.name+=String.fromCharCode(Z)),Z&&V<K;);if(512&A.flags&&(A.check=v(A.check,k,V,M)),K-=V,M+=V,Z)break e}else A.head&&(A.head.name=null);A.length=0,A.mode=8;case 8:if(4096&A.flags){if(K===0)break e;for(V=0;Z=k[M+V++],A.head&&Z&&A.length<65536&&(A.head.comment+=String.fromCharCode(Z)),Z&&V<K;);if(512&A.flags&&(A.check=v(A.check,k,V,M)),K-=V,M+=V,Z)break e}else A.head&&(A.head.comment=null);A.mode=9;case 9:if(512&A.flags){for(;q<16;){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}if($!==(65535&A.check)){w.msg="header crc mismatch",A.mode=30;break}q=$=0}A.head&&(A.head.hcrc=A.flags>>9&1,A.head.done=!0),w.adler=A.check=0,A.mode=12;break;case 10:for(;q<32;){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}w.adler=A.check=F($),q=$=0,A.mode=11;case 11:if(A.havedict===0)return w.next_out=X,w.avail_out=te,w.next_in=M,w.avail_in=K,A.hold=$,A.bits=q,2;w.adler=A.check=1,A.mode=12;case 12:if(x===5||x===6)break e;case 13:if(A.last){$>>>=7&q,q-=7&q,A.mode=27;break}for(;q<3;){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}switch(A.last=1&$,q-=1,3&($>>>=1)){case 0:A.mode=14;break;case 1:if(C(A),A.mode=20,x!==6)break;$>>>=2,q-=2;break e;case 2:A.mode=17;break;case 3:w.msg="invalid block type",A.mode=30}$>>>=2,q-=2;break;case 14:for($>>>=7&q,q-=7&q;q<32;){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}if((65535&$)!=($>>>16^65535)){w.msg="invalid stored block lengths",A.mode=30;break}if(A.length=65535&$,q=$=0,A.mode=15,x===6)break e;case 15:A.mode=16;case 16:if(V=A.length){if(K<V&&(V=K),te<V&&(V=te),V===0)break e;p.arraySet(R,k,M,V,X),K-=V,M+=V,te-=V,X+=V,A.length-=V;break}A.mode=12;break;case 17:for(;q<14;){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}if(A.nlen=257+(31&$),$>>>=5,q-=5,A.ndist=1+(31&$),$>>>=5,q-=5,A.ncode=4+(15&$),$>>>=4,q-=4,286<A.nlen||30<A.ndist){w.msg="too many length or distance symbols",A.mode=30;break}A.have=0,A.mode=18;case 18:for(;A.have<A.ncode;){for(;q<3;){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}A.lens[de[A.have++]]=7&$,$>>>=3,q-=3}for(;A.have<19;)A.lens[de[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,ce={bits:A.lenbits},oe=E(0,A.lens,0,19,A.lencode,0,A.work,ce),A.lenbits=ce.bits,oe){w.msg="invalid code lengths set",A.mode=30;break}A.have=0,A.mode=19;case 19:for(;A.have<A.nlen+A.ndist;){for(;j=(se=A.lencode[$&(1<<A.lenbits)-1])>>>16&255,ue=65535&se,!((ae=se>>>24)<=q);){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}if(ue<16)$>>>=ae,q-=ae,A.lens[A.have++]=ue;else{if(ue===16){for(ne=ae+2;q<ne;){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}if($>>>=ae,q-=ae,A.have===0){w.msg="invalid bit length repeat",A.mode=30;break}Z=A.lens[A.have-1],V=3+(3&$),$>>>=2,q-=2}else if(ue===17){for(ne=ae+3;q<ne;){if(K===0)break e;K--,$+=k[M++]<<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--,$+=k[M++]<<q,q+=8}q-=ae,Z=0,V=11+(127&($>>>=ae)),$>>>=7,q-=7}if(A.have+V>A.nlen+A.ndist){w.msg="invalid bit length repeat",A.mode=30;break}for(;V--;)A.lens[A.have++]=Z}}if(A.mode===30)break;if(A.lens[256]===0){w.msg="invalid code -- missing end-of-block",A.mode=30;break}if(A.lenbits=9,ce={bits:A.lenbits},oe=E(1,A.lens,0,A.nlen,A.lencode,0,A.work,ce),A.lenbits=ce.bits,oe){w.msg="invalid literal/lengths set",A.mode=30;break}if(A.distbits=6,A.distcode=A.distdyn,ce={bits:A.distbits},oe=E(2,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,ce),A.distbits=ce.bits,oe){w.msg="invalid distances set",A.mode=30;break}if(A.mode=20,x===6)break e;case 20:A.mode=21;case 21:if(6<=K&&258<=te){w.next_out=X,w.avail_out=te,w.next_in=M,w.avail_in=K,A.hold=$,A.bits=q,b(w,L),X=w.next_out,R=w.output,te=w.avail_out,M=w.next_in,k=w.input,K=w.avail_in,$=A.hold,q=A.bits,A.mode===12&&(A.back=-1);break}for(A.back=0;j=(se=A.lencode[$&(1<<A.lenbits)-1])>>>16&255,ue=65535&se,!((ae=se>>>24)<=q);){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}if(j&&(240&j)==0){for(Q=ae,B=j,H=ue;j=(se=A.lencode[H+(($&(1<<Q+B)-1)>>Q)])>>>16&255,ue=65535&se,!(Q+(ae=se>>>24)<=q);){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}$>>>=Q,q-=Q,A.back+=Q}if($>>>=ae,q-=ae,A.back+=ae,A.length=ue,j===0){A.mode=26;break}if(32&j){A.back=-1,A.mode=12;break}if(64&j){w.msg="invalid literal/length code",A.mode=30;break}A.extra=15&j,A.mode=22;case 22:if(A.extra){for(ne=A.extra;q<ne;){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}A.length+=$&(1<<A.extra)-1,$>>>=A.extra,q-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=23;case 23:for(;j=(se=A.distcode[$&(1<<A.distbits)-1])>>>16&255,ue=65535&se,!((ae=se>>>24)<=q);){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}if((240&j)==0){for(Q=ae,B=j,H=ue;j=(se=A.distcode[H+(($&(1<<Q+B)-1)>>Q)])>>>16&255,ue=65535&se,!(Q+(ae=se>>>24)<=q);){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}$>>>=Q,q-=Q,A.back+=Q}if($>>>=ae,q-=ae,A.back+=ae,64&j){w.msg="invalid distance code",A.mode=30;break}A.offset=ue,A.extra=15&j,A.mode=24;case 24:if(A.extra){for(ne=A.extra;q<ne;){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}A.offset+=$&(1<<A.extra)-1,$>>>=A.extra,q-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){w.msg="invalid distance too far back",A.mode=30;break}A.mode=25;case 25:if(te===0)break e;if(V=L-te,A.offset>V){if((V=A.offset-V)>A.whave&&A.sane){w.msg="invalid distance too far back",A.mode=30;break}J=V>A.wnext?(V-=A.wnext,A.wsize-V):A.wnext-V,V>A.length&&(V=A.length),re=A.window}else re=R,J=X-A.offset,V=A.length;for(te<V&&(V=te),te-=V,A.length-=V;R[X++]=re[J++],--V;);A.length===0&&(A.mode=21);break;case 26:if(te===0)break e;R[X++]=A.length,te--,A.mode=21;break;case 27:if(A.wrap){for(;q<32;){if(K===0)break e;K--,$|=k[M++]<<q,q+=8}if(L-=te,w.total_out+=L,A.total+=L,L&&(w.adler=A.check=A.flags?v(A.check,R,L,X-L):y(A.check,R,L,X-L)),L=te,(A.flags?$:F($))!==A.check){w.msg="incorrect data check",A.mode=30;break}q=$=0}A.mode=28;case 28:if(A.wrap&&A.flags){for(;q<32;){if(K===0)break e;K--,$+=k[M++]<<q,q+=8}if($!==(4294967295&A.total)){w.msg="incorrect length check",A.mode=30;break}q=$=0}A.mode=29;case 29:oe=1;break e;case 30:oe=-3;break e;case 31:return-4;case 32:default:return D}return w.next_out=X,w.avail_out=te,w.next_in=M,w.avail_in=K,A.hold=$,A.bits=q,(A.wsize||L!==w.avail_out&&A.mode<30&&(A.mode<27||x!==4))&&_(w,w.output,w.next_out,L-w.avail_out)?(A.mode=31,-4):(O-=w.avail_in,L-=w.avail_out,w.total_in+=O,w.total_out+=L,A.total+=L,A.wrap&&L&&(w.adler=A.check=A.flags?v(A.check,R,L,w.next_out-L):y(A.check,R,L,w.next_out-L)),w.data_type=A.bits+(A.last?64:0)+(A.mode===12?128:0)+(A.mode===20||A.mode===15?256:0),(O==0&&L===0||x===4)&&oe===0&&(oe=-5),oe)},m.inflateEnd=function(w){if(!w||!w.state)return D;var x=w.state;return x.window&&(x.window=null),w.state=null,0},m.inflateGetHeader=function(w,x){var A;return w&&w.state?(2&(A=w.state).wrap)==0?D:((A.head=x).done=!1,0):D},m.inflateSetDictionary=function(w,x){var A,k=x.length;return w&&w.state?(A=w.state).wrap!==0&&A.mode!==11?D:A.mode===11&&y(1,x,k,0)!==A.check?-3:_(w,x,k,k)?(A.mode=31,-4):(A.havedict=1,0):D},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],E=[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(D,F,z,W,U,G,ee,P){var I,S,C,_,w,x,A,k,R,M=P.bits,X=0,K=0,te=0,$=0,q=0,O=0,L=0,V=0,J=0,re=0,ae=null,j=0,ue=new p.Buf16(16),Q=new p.Buf16(16),B=null,H=0;for(X=0;X<=15;X++)ue[X]=0;for(K=0;K<W;K++)ue[F[z+K]]++;for(q=M,$=15;1<=$&&ue[$]===0;$--);if($<q&&(q=$),$===0)return U[G++]=20971520,U[G++]=20971520,P.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&&(D===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++)F[z+K]!==0&&(ee[Q[F[z+K]]++]=K);if(x=D===0?(ae=B=ee,19):D===1?(ae=y,j-=257,B=v,H-=257,256):(ae=b,B=E,-1),X=te,w=G,L=K=re=0,C=-1,_=(J=1<<(O=q))-1,D===1&&852<J||D===2&&592<J)return 1;for(;;){for(A=X-L,R=ee[K]<x?(k=0,ee[K]):ee[K]>x?(k=B[H+ee[K]],ae[j+ee[K]]):(k=96,0),I=1<<X-L,te=S=1<<O;U[w+(re>>L)+(S-=I)]=A<<24|k<<16|R|0,S!==0;);for(I=1<<X-1;re&I;)I>>=1;if(I!==0?(re&=I-1,re+=I):re=0,K++,--ue[X]==0){if(X===$)break;X=F[z+ee[K]]}if(q<X&&(re&_)!==C){for(L===0&&(L=q),w+=te,V=1<<(O=X-L);O+L<$&&!((V-=ue[O+L])<=0);)O++,V<<=1;if(J+=1<<O,D===1&&852<J||D===2&&592<J)return 1;U[C=re&_]=q<<24|O<<16|w-G|0}}return re!==0&&(U[w+re]=X-L<<24|64<<16|0),P.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(B){for(var H=B.length;0<=--H;)B[H]=0}var v=256,b=286,E=30,D=15,F=[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 P=new Array(512);y(P);var I=new Array(256);y(I);var S=new Array(29);y(S);var C,_,w,x=new Array(E);function A(B,H,Z,oe,ce){this.static_tree=B,this.extra_bits=H,this.extra_base=Z,this.elems=oe,this.max_length=ce,this.has_stree=B&&B.length}function k(B,H){this.dyn_tree=B,this.max_code=0,this.stat_desc=H}function R(B){return B<256?P[B]:P[256+(B>>>7)]}function M(B,H){B.pending_buf[B.pending++]=255&H,B.pending_buf[B.pending++]=H>>>8&255}function X(B,H,Z){B.bi_valid>16-Z?(B.bi_buf|=H<<B.bi_valid&65535,M(B,B.bi_buf),B.bi_buf=H>>16-B.bi_valid,B.bi_valid+=Z-16):(B.bi_buf|=H<<B.bi_valid&65535,B.bi_valid+=Z)}function K(B,H,Z){X(B,Z[2*H],Z[2*H+1])}function te(B,H){for(var Z=0;Z|=1&B,B>>>=1,Z<<=1,0<--H;);return Z>>>1}function $(B,H,Z){var oe,ce,ne=new Array(16),se=0;for(oe=1;oe<=D;oe++)ne[oe]=se=se+Z[oe-1]<<1;for(ce=0;ce<=H;ce++){var fe=B[2*ce+1];fe!==0&&(B[2*ce]=te(ne[fe]++,fe))}}function q(B){var H;for(H=0;H<b;H++)B.dyn_ltree[2*H]=0;for(H=0;H<E;H++)B.dyn_dtree[2*H]=0;for(H=0;H<19;H++)B.bl_tree[2*H]=0;B.dyn_ltree[512]=1,B.opt_len=B.static_len=0,B.last_lit=B.matches=0}function O(B){8<B.bi_valid?M(B,B.bi_buf):0<B.bi_valid&&(B.pending_buf[B.pending++]=B.bi_buf),B.bi_buf=0,B.bi_valid=0}function L(B,H,Z,oe){var ce=2*H,ne=2*Z;return B[ce]<B[ne]||B[ce]===B[ne]&&oe[H]<=oe[Z]}function V(B,H,Z){for(var oe=B.heap[Z],ce=Z<<1;ce<=B.heap_len&&(ce<B.heap_len&&L(H,B.heap[ce+1],B.heap[ce],B.depth)&&ce++,!L(H,oe,B.heap[ce],B.depth));)B.heap[Z]=B.heap[ce],Z=ce,ce<<=1;B.heap[Z]=oe}function J(B,H,Z){var oe,ce,ne,se,fe=0;if(B.last_lit!==0)for(;oe=B.pending_buf[B.d_buf+2*fe]<<8|B.pending_buf[B.d_buf+2*fe+1],ce=B.pending_buf[B.l_buf+fe],fe++,oe===0?K(B,ce,H):(K(B,(ne=I[ce])+v+1,H),(se=F[ne])!==0&&X(B,ce-=S[ne],se),K(B,ne=R(--oe),Z),(se=z[ne])!==0&&X(B,oe-=x[ne],se)),fe<B.last_lit;);K(B,256,H)}function re(B,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(B.heap_len=0,B.heap_max=573,Z=0;Z<de;Z++)ne[2*Z]!==0?(B.heap[++B.heap_len]=ve=Z,B.depth[Z]=0):ne[2*Z+1]=0;for(;B.heap_len<2;)ne[2*(ce=B.heap[++B.heap_len]=ve<2?++ve:0)]=1,B.depth[ce]=0,B.opt_len--,fe&&(B.static_len-=se[2*ce+1]);for(H.max_code=ve,Z=B.heap_len>>1;1<=Z;Z--)V(B,ne,Z);for(ce=de;Z=B.heap[1],B.heap[1]=B.heap[B.heap_len--],V(B,ne,1),oe=B.heap[1],B.heap[--B.heap_max]=Z,B.heap[--B.heap_max]=oe,ne[2*ce]=ne[2*Z]+ne[2*oe],B.depth[ce]=(B.depth[Z]>=B.depth[oe]?B.depth[Z]:B.depth[oe])+1,ne[2*Z+1]=ne[2*oe+1]=ce,B.heap[1]=ce++,V(B,ne,1),2<=B.heap_len;);B.heap[--B.heap_max]=B.heap[1],function(Ee,Se){var Fe,He,qe,et,Be,Ge,tt=Se.dyn_tree,rt=Se.max_code,lt=Se.stat_desc.static_tree,Nt=Se.stat_desc.has_stree,Wt=Se.stat_desc.extra_bits,dt=Se.stat_desc.extra_base,Pt=Se.stat_desc.max_length,_t=0;for(et=0;et<=D;et++)Ee.bl_count[et]=0;for(tt[2*Ee.heap[Ee.heap_max]+1]=0,Fe=Ee.heap_max+1;Fe<573;Fe++)Pt<(et=tt[2*tt[2*(He=Ee.heap[Fe])+1]+1]+1)&&(et=Pt,_t++),tt[2*He+1]=et,rt<He||(Ee.bl_count[et]++,Be=0,dt<=He&&(Be=Wt[He-dt]),Ge=tt[2*He],Ee.opt_len+=Ge*(et+Be),Nt&&(Ee.static_len+=Ge*(lt[2*He+1]+Be)));if(_t!==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]--,_t-=2}while(0<_t);for(et=Pt;et!==0;et--)for(He=Ee.bl_count[et];He!==0;)rt<(qe=Ee.heap[--Fe])||(tt[2*qe+1]!==et&&(Ee.opt_len+=(et-tt[2*qe+1])*tt[2*qe],tt[2*qe+1]=et),He--)}}(B,H),$(ne,ve,B.bl_count)}function ae(B,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?B.bl_tree[2*ce]+=fe:ce!==0?(ce!==ne&&B.bl_tree[2*ce]++,B.bl_tree[32]++):fe<=10?B.bl_tree[34]++:B.bl_tree[36]++,ne=ce,ve=(fe=0)===se?(de=138,3):ce===se?(de=6,3):(de=7,4))}function j(B,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(B,ce,B.bl_tree),--fe!=0;);else ce!==0?(ce!==ne&&(K(B,ce,B.bl_tree),fe--),K(B,16,B.bl_tree),X(B,fe-3,2)):fe<=10?(K(B,17,B.bl_tree),X(B,fe-3,3)):(K(B,18,B.bl_tree),X(B,fe-11,7));ne=ce,ve=(fe=0)===se?(de=138,3):ce===se?(de=6,3):(de=7,4)}}y(x);var ue=!1;function Q(B,H,Z,oe){X(B,0+(oe?1:0),3),function(ce,ne,se,fe){O(ce),M(ce,se),M(ce,~se),p.arraySet(ce.pending_buf,ce.window,ne,se,ce.pending),ce.pending+=se}(B,H,Z)}m._tr_init=function(B){ue||(function(){var H,Z,oe,ce,ne,se=new Array(16);for(ce=oe=0;ce<28;ce++)for(S[ce]=oe,H=0;H<1<<F[ce];H++)I[oe++]=ce;for(I[oe-1]=ce,ce=ne=0;ce<16;ce++)for(x[ce]=ne,H=0;H<1<<z[ce];H++)P[ne++]=ce;for(ne>>=7;ce<E;ce++)for(x[ce]=ne<<7,H=0;H<1<<z[ce]-7;H++)P[256+ne++]=ce;for(Z=0;Z<=D;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<E;H++)ee[2*H+1]=5,ee[2*H]=te(H,5);C=new A(G,F,257,b,D),_=new A(ee,z,0,E,D),w=new A(new Array(0),W,0,19,7)}(),ue=!0),B.l_desc=new k(B.dyn_ltree,C),B.d_desc=new k(B.dyn_dtree,_),B.bl_desc=new k(B.bl_tree,w),B.bi_buf=0,B.bi_valid=0,q(B)},m._tr_stored_block=Q,m._tr_flush_block=function(B,H,Z,oe){var ce,ne,se=0;0<B.level?(B.strm.data_type===2&&(B.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}(B)),re(B,B.l_desc),re(B,B.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}(B),ce=B.opt_len+3+7>>>3,(ne=B.static_len+3+7>>>3)<=ce&&(ce=ne)):ce=ne=Z+5,Z+4<=ce&&H!==-1?Q(B,H,Z,oe):B.strategy===4||ne===ce?(X(B,2+(oe?1:0),3),J(B,G,ee)):(X(B,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)}(B,B.l_desc.max_code+1,B.d_desc.max_code+1,se+1),J(B,B.dyn_ltree,B.dyn_dtree)),q(B),oe&&O(B)},m._tr_tally=function(B,H,Z){return B.pending_buf[B.d_buf+2*B.last_lit]=H>>>8&255,B.pending_buf[B.d_buf+2*B.last_lit+1]=255&H,B.pending_buf[B.l_buf+B.last_lit]=255&Z,B.last_lit++,H===0?B.dyn_ltree[2*Z]++:(B.matches++,H--,B.dyn_ltree[2*(I[Z]+v+1)]++,B.dyn_dtree[2*R(H)]++),B.last_lit===B.lit_bufsize-1},m._tr_align=function(B){X(B,2,3),K(B,256,G),function(H){H.bi_valid===16?(M(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)}(B)}},{"../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,E,D,F,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(C){a.nextTick(function(){I(C)})}:function(){if(y.postMessage&&!y.importScripts){var C=!0,_=y.onmessage;return y.onmessage=function(){C=!1},y.postMessage("","*"),y.onmessage=_,C}}()?(F="setImmediate$"+Math.random()+"$",y.addEventListener?y.addEventListener("message",S,!1):y.attachEvent("onmessage",S),function(C){y.postMessage(F+C,"*")}):y.MessageChannel?((D=new MessageChannel).port1.onmessage=function(C){I(C.data)},function(C){D.port2.postMessage(C)}):G&&"onreadystatechange"in G.createElement("script")?(E=G.documentElement,function(C){var _=G.createElement("script");_.onreadystatechange=function(){I(C),_.onreadystatechange=null,E.removeChild(_),_=null},E.appendChild(_)}):function(C){setTimeout(I,0,C)},ee.setImmediate=function(C){typeof C!="function"&&(C=new Function(""+C));for(var _=new Array(arguments.length-1),w=0;w<_.length;w++)_[w]=arguments[w+1];var x={callback:C,args:_};return W[z]=x,b(z),z++},ee.clearImmediate=P}function P(C){delete W[C]}function I(C){if(U)setTimeout(I,0,C);else{var _=W[C];if(_){U=!0;try{(function(w){var x=w.callback,A=w.args;switch(A.length){case 0:x();break;case 1:x(A[0]);break;case 2:x(A[0],A[1]);break;case 3:x(A[0],A[1],A[2]);break;default:x.apply(void 0,A)}})(_)}finally{P(C),U=!1}}}}function S(C){C.source===y&&typeof C.data=="string"&&C.data.indexOf(F)===0&&I(+C.data.slice(F.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 st!="undefined"?st: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 st!="undefined"?st: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,E=v||b||Function("return this")(),D=typeof i=="object"&&i&&!i.nodeType&&i,F=D&&typeof n=="object"&&n&&!n.nodeType&&n,z=F&&F.exports===D&&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 P(be){var Re=!1;if(be!=null&&typeof be.toString!="function")try{Re=!!(be+"")}catch{}return Re}function I(be){var Re=-1,We=Array(be.size);return be.forEach(function(Ze,mt){We[++Re]=[mt,Ze]}),We}function S(be){var Re=-1,We=Array(be.size);return be.forEach(function(Ze){We[++Re]=Ze}),We}var C,_,w,x=Array.prototype,A=Function.prototype,k=Object.prototype,R=E["__core-js_shared__"],M=(C=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",X=A.toString,K=k.hasOwnProperty,te=k.toString,$=RegExp("^"+X.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=E.Symbol,O=E.Uint8Array,L=k.propertyIsEnumerable,V=x.splice,J=(_=Object.keys,w=Object,function(be){return _(w(be))}),re=Tt(E,"DataView"),ae=Tt(E,"Map"),j=Tt(E,"Promise"),ue=Tt(E,"Set"),Q=Tt(E,"WeakMap"),B=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 Fe(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 Ft=-1,Lt=Array(it);++Ft<it;)Lt[Ft]=$t(Ft);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(ot(be[We][0],Re))return We;return-1}function Be(be,Re,We,Ze){return tt(be,function(mt,nt,it){Re(Ze,mt,We(mt),it)}),Ze}ve.prototype.clear=function(){this.__data__=B?B(null):{}},ve.prototype.delete=function(be){return this.has(be)&&delete this.__data__[be]},ve.prototype.get=function(be){var Re=this.__data__;if(B){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 B?Re[be]!==void 0:K.call(Re,be)},ve.prototype.set=function(be,Re){return this.__data__[be]=B&&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},Fe.prototype.add=Fe.prototype.push=function(be){return this.__data__.set(be,"__lodash_hash_undefined__"),this},Fe.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 Ft=it[be?$t:++mt];if(We(nt[Ft],Ft,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 Nt(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,Ft,Lt,Et){var dr=At(nt),xr=At(it),Jt="[object Array]",Sr="[object Array]";dr||(Jt=(Jt=Kt(nt))==o?u:Jt),xr||(Sr=(Sr=Kt(it))==o?u:Sr);var Nr=Jt==u&&!P(nt),mn=Sr==u&&!P(it),Xn=Jt==Sr;if(Xn&&!Nr)return Et||(Et=new He),dr||Pr(nt)?hr(nt,it,$t,Ft,Lt,Et):function(lr,Zt,Vi,Ni,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||!Ni(new O(lr),new O(Zt)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ot(+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 _n=I;case c:var Ca=2&gn;if(_n||(_n=S),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(_n(lr),_n(Zt),Ni,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,Ft,Lt,Et);if(!(2&Lt)){var jn=Nr&&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,Ft,Lt,Et)}}return Xn?(Et||(Et=new He),function(lr,Zt,Vi,Ni,oi,gn){var Er=2&oi,_n=Gr(lr),Ca=_n.length,ko=Gr(Zt).length;if(Ca!=ko&&!Er)return!1;for(var qi=Ca;qi--;){var Fi=_n[qi];if(!(Er?Fi in Zt:K.call(Zt,Fi)))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;){Fi=_n[qi];var Oa=lr[Fi],Ro=Zt[Fi];if(Ni)var ds=Er?Ni(Ro,Oa,Fi,Zt,lr,gn):Ni(Oa,Ro,Fi,lr,Zt,gn);if(!(ds===void 0?Oa===Ro||Vi(Oa,Ro,Ni,oi,gn):ds)){Qa=!1;break}hs||(hs=Fi=="constructor")}if(Qa&&!hs){var eo=lr.constructor,No=Zt.constructor;eo==No||!("constructor"in lr)||!("constructor"in Zt)||typeof eo=="function"&&eo instanceof eo&&typeof No=="function"&&No instanceof No||(Qa=!1)}return gn.delete(lr),gn.delete(Zt),Qa}(nt,it,$t,Ft,Lt,Et)):!1}(be,Re,Wt,We,Ze,mt))}function dt(be){return!(!Ht(be)||function(Re){return!!M&&M in Re}(be))&&(St(be)||P(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,Ft,Lt){var Et=$t==null?void 0:lt($t,Ft);return Et===void 0?Lt:Et}(nt,Ze);return it===void 0&&it===mt?function($t,Ft){return $t!=null&&function(Lt,Et,dr){Et=Ct(Et,Lt)?[Et]:gt(Et);for(var xr,Jt=-1,Sr=Et.length;++Jt<Sr;){var Nr=Ae(Et[Jt]);if(!(xr=Lt!=null&&dr(Lt,Nr)))break;Lt=Lt[Nr]}return xr||!!(Sr=Lt?Lt.length:0)&&Dt(Sr)&&rr(Nr,Sr)&&(At(Lt)||Ot(Lt))}($t,Ft,Nt)}(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 Ft=it[$t],Lt=nt[Ft];it[$t]=[Ft,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,Ft,Lt){var Et=Ft.length,dr=Et,xr=!Lt;if(it==null)return!dr;for(it=Object(it);Et--;){var Jt=Ft[Et];if(xr&&Jt[2]?Jt[1]!==it[Jt[0]]:!(Jt[0]in it))return!1}for(;++Et<dr;){var Sr=(Jt=Ft[Et])[0],Nr=it[Sr],mn=Jt[1];if(xr&&Jt[2]){if(Nr===void 0&&!(Sr in it))return!1}else{var Xn=new He;if(Lt)var jn=Lt(Nr,mn,Sr,it,$t,Xn);if(!(jn===void 0?Wt(mn,Nr,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 _t(be){if(We=(Re=be)&&Re.constructor,Ze=typeof We=="function"&&We.prototype||k,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,Ft=Re.length;if($t!=Ft&&!(it&&Ft>$t))return!1;var Lt=nt.get(be);if(Lt&&nt.get(Re))return Lt==Re;var Et=-1,dr=!0,xr=1&mt?new Fe:void 0;for(nt.set(be,Re),nt.set(Re,be);++Et<$t;){var Jt=be[Et],Sr=Re[Et];if(Ze)var Nr=it?Ze(Sr,Jt,Et,Re,be,nt):Ze(Jt,Sr,Et,be,Re,nt);if(Nr!==void 0){if(Nr)continue;dr=!1;break}if(xr){if(!ee(Re,function(mn,Xn){if(!xr.has(Xn)&&(Jt===mn||We(Jt,mn,Ze,mt,nt)))return xr.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=xt(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:Be,Ze={};return We(be,je,Pt(Re),Ze)});function xt(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(xt.Cache||Se),We}function ot(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)}xt.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):_t(be)}function Xr(be){return be}n.exports=at}).call(this)}).call(this,typeof st!="undefined"?st: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,E=function(){try{return b&&b.binding&&b.binding("util")}catch{}}(),D=E&&E.isTypedArray;function F(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,xt){je[++Ie]=[xt,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,P=Array.prototype,I=Function.prototype,S=Object.prototype,C=m["__core-js_shared__"],_=I.toString,w=S.hasOwnProperty,x=(U=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+U:"",A=S.toString,k=RegExp("^"+_.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=v?m.Buffer:void 0,M=m.Symbol,X=m.Uint8Array,K=S.propertyIsEnumerable,te=P.splice,$=M?M.toStringTag:void 0,q=Object.getOwnPropertySymbols,O=R?R.isBuffer:void 0,L=(G=Object.keys,ee=Object,function(Ae){return G(ee(Ae))}),V=Nt(m,"DataView"),J=Nt(m,"Map"),re=Nt(m,"Promise"),ae=Nt(m,"Set"),j=Nt(m,"WeakMap"),ue=Nt(Object,"create"),Q=_t(V),B=_t(J),H=_t(re),Z=_t(ae),oe=_t(j),ce=M?M.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),xt=!je&&!at&&Tt(Ae),ot=!je&&!at&&!xt&&ar(Ae),Ot=je||at||xt||ot,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"||xt&&(St=="offset"||St=="parent")||ot&&(St=="buffer"||St=="byteLength"||St=="byteOffset")||Pt(St,vt))||At.push(St);return At}function Fe(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 xt=!0}catch{}var ot=A.call(Ie);return xt&&(je?Ie[$]=at:delete Ie[$]),ot}(Ae):function(Ie){return A.call(Ie)}(Ae)}function qe(Ae){return ir(Ae)&&He(Ae)==o}function et(Ae,Ie,je,at,xt){return Ae===Ie||(Ae==null||Ie==null||!ir(Ae)&&!ir(Ie)?Ae!=Ae&&Ie!=Ie:function(ot,Ot,At,vt,St,Dt){var Ht=nr(ot),jr=nr(Ot),gr=Ht?"[object Array]":dt(ot),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(ot)){if(!Tt(Ot))return!1;Ht=!0,Gr=!1}if(be&&!Gr)return Dt||(Dt=new Ee),Ht||ar(ot)?tt(ot,Ot,At,vt,St,Dt):function(nt,it,$t,Ft,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 xr=z;case c:var Jt=1&Ft;if(xr||(xr=W),nt.size!=it.size&&!Jt)return!1;var Sr=dr.get(nt);if(Sr)return Sr==it;Ft|=2,dr.set(nt,it);var Nr=tt(xr(nt),xr(it),Ft,Lt,Et,dr);return dr.delete(nt),Nr;case"[object Symbol]":if(ne)return ne.call(nt)==ne.call(it)}return!1}(ot,Ot,gr,At,vt,St,Dt);if(!(1&At)){var Re=Gr&&w.call(ot,"__wrapped__"),We=Xr&&w.call(Ot,"__wrapped__");if(Re||We){var Ze=Re?ot.value():ot,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,Ft,Lt,Et){var dr=1&$t,xr=rt(nt),Jt=xr.length,Sr=rt(it).length;if(Jt!=Sr&&!dr)return!1;for(var Nr=Jt;Nr--;){var mn=xr[Nr];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;++Nr<Jt;){mn=xr[Nr];var Da=nt[mn],la=it[mn];if(Ft)var lr=dr?Ft(la,Da,mn,it,nt,Et):Ft(Da,la,mn,nt,it,Et);if(!(lr===void 0?Da===la||Lt(Da,la,$t,Ft,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}(ot,Ot,At,vt,St,Dt)):!1}(Ae,Ie,je,at,et,xt))}function Be(Ae){return!(!Ct(Ae)||function(Ie){return!!x&&x in Ie}(Ae))&&(Kt(Ae)?k:l).test(_t(Ae))}function Ge(Ae){if(je=(Ie=Ae)&&Ie.constructor,at=typeof je=="function"&&je.prototype||S,Ie!==at)return L(Ae);var Ie,je,at,xt=[];for(var ot in Object(Ae))w.call(Ae,ot)&&ot!="constructor"&&xt.push(ot);return xt}function tt(Ae,Ie,je,at,xt,ot){var Ot=1&je,At=Ae.length,vt=Ie.length;if(At!=vt&&!(Ot&&vt>At))return!1;var St=ot.get(Ae);if(St&&ot.get(Ie))return St==Ie;var Dt=-1,Ht=!0,jr=2&je?new ve:void 0;for(ot.set(Ae,Ie),ot.set(Ie,Ae);++Dt<At;){var gr=Ae[Dt],Pr=Ie[Dt];if(at)var Gr=Ot?at(Pr,gr,Dt,Ie,Ae,ot):at(gr,Pr,Dt,Ae,Ie,ot);if(Gr!==void 0){if(Gr)continue;Ht=!1;break}if(jr){if(!F(Ie,function(Xr,be){if(Re=be,!jr.has(Re)&&(gr===Xr||xt(gr,Xr,je,at,ot)))return jr.push(be);var Re})){Ht=!1;break}}else if(gr!==Pr&&!xt(gr,Pr,je,at,ot)){Ht=!1;break}}return ot.delete(Ae),ot.delete(Ie),Ht}function rt(Ae){return function(Ie,je,at){var xt=je(Ie);return nr(Ie)?xt:function(ot,Ot){for(var At=-1,vt=Ot.length,St=ot.length;++At<vt;)ot[St+At]=Ot[At];return ot}(xt,at(Ie))}(Ae,kt,Wt)}function lt(Ae,Ie){var je,at,xt=Ae.__data__;return((at=typeof(je=Ie))=="string"||at=="number"||at=="symbol"||at=="boolean"?je!=="__proto__":je===null)?xt[typeof Ie=="string"?"string":"hash"]:xt.map}function Nt(Ae,Ie){var je=function(at,xt){return at==null?void 0:at[xt]}(Ae,Ie);return Be(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=Fe(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=Fe(Ie,Ae);return je<0?void 0:Ie[je][1]},fe.prototype.has=function(Ae){return Fe(this.__data__,Ae)>-1},fe.prototype.set=function(Ae,Ie){var je=this.__data__,at=Fe(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,xt=Ie==null?0:Ie.length,ot=0,Ot=[];++at<xt;){var At=Ie[at];je(At,at,Ie)&&(Ot[ot++]=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 _t(Ae){if(Ae!=null){try{return _.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?_t(je):"";if(at)switch(at){case Q:return"[object DataView]";case B: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=O||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=D?function(Ae){return function(Ie){return Ae(Ie)}}(D):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 st!="undefined"?st: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 E=d.call(p);return b&&(y?p[f]=v:delete p[f]),E}(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 st!="undefined"?st: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 O=q-1,L=te.length;++O<L;)if(te[O]===$)return O;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__"],E=(m=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"",D=y.toString,F=v.hasOwnProperty,z=v.toString,W=RegExp("^"+D.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U=p.splice,G=R(c,"Map"),ee=R(c,"Set"),P=R(Object,"create");function I(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 C(X){var K=-1,te=X?X.length:0;for(this.clear();++K<te;){var $=X[K];this.set($[0],$[1])}}function _(X){var K=-1,te=X?X.length:0;for(this.__data__=new C;++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(X){return!(!M(X)||(K=X,E&&E in K))&&(function(te){var $=M(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 D.call(te)}catch{}try{return te+""}catch{}}return""}(X));var K}I.prototype.clear=function(){this.__data__=P?P(null):{}},I.prototype.delete=function(X){return this.has(X)&&delete this.__data__[X]},I.prototype.get=function(X){var K=this.__data__;if(P){var te=K[X];return te==="__lodash_hash_undefined__"?void 0:te}return F.call(K,X)?K[X]:void 0},I.prototype.has=function(X){var K=this.__data__;return P?K[X]!==void 0:F.call(K,X)},I.prototype.set=function(X,K){return this.__data__[X]=P&&K===void 0?"__lodash_hash_undefined__":K,this},S.prototype.clear=function(){this.__data__=[]},S.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)},S.prototype.get=function(X){var K=this.__data__,te=w(K,X);return te<0?void 0:K[te][1]},S.prototype.has=function(X){return w(this.__data__,X)>-1},S.prototype.set=function(X,K){var te=this.__data__,$=w(te,X);return $<0?te.push([X,K]):te[$][1]=K,this},C.prototype.clear=function(){this.__data__={hash:new I,map:new(G||S),string:new I}},C.prototype.delete=function(X){return k(this,X).delete(X)},C.prototype.get=function(X){return k(this,X).get(X)},C.prototype.has=function(X){return k(this,X).has(X)},C.prototype.set=function(X,K){return k(this,X).set(X,K),this},_.prototype.add=_.prototype.push=function(X){return this.__data__.set(X,"__lodash_hash_undefined__"),this},_.prototype.has=function(X){return this.__data__.has(X)};var A=ee&&1/g(new ee([,-0]))[1]==1/0?function(X){return new ee(X)}:function(){};function k(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 R(X,K){var te=function($,q){return $==null?void 0:$[q]}(X,K);return x(te)?te:void 0}function M(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,O=l,L=K.length,V=!0,J=[],re=J;if($)V=!1,O=d;else if(L>=200){var ae=te?null:A(K);if(ae)return g(ae);V=!1,O=f,re=new _}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 O(re,ue,$)||(re!==J&&re.push(ue),J.push(j))}return J}(X):[]}}).call(this)}).call(this,typeof st!="undefined"?st: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,E,D){return l(m+(p&y|~p&v)+b+E|0,D)+p|0}function h(m,p,y,v,b,E,D){return l(m+(p&v|y&~v)+b+E|0,D)+p|0}function f(m,p,y,v,b,E,D){return l(m+(p^y^v)+b+E|0,D)+p|0}function g(m,p,y,v,b,E,D){return l(m+(y^(p|~v))+b+E|0,D)+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,E=this._d;y=d(y,v,b,E,m[0],3614090360,7),E=d(E,y,v,b,m[1],3905402710,12),b=d(b,E,y,v,m[2],606105819,17),v=d(v,b,E,y,m[3],3250441966,22),y=d(y,v,b,E,m[4],4118548399,7),E=d(E,y,v,b,m[5],1200080426,12),b=d(b,E,y,v,m[6],2821735955,17),v=d(v,b,E,y,m[7],4249261313,22),y=d(y,v,b,E,m[8],1770035416,7),E=d(E,y,v,b,m[9],2336552879,12),b=d(b,E,y,v,m[10],4294925233,17),v=d(v,b,E,y,m[11],2304563134,22),y=d(y,v,b,E,m[12],1804603682,7),E=d(E,y,v,b,m[13],4254626195,12),b=d(b,E,y,v,m[14],2792965006,17),y=h(y,v=d(v,b,E,y,m[15],1236535329,22),b,E,m[1],4129170786,5),E=h(E,y,v,b,m[6],3225465664,9),b=h(b,E,y,v,m[11],643717713,14),v=h(v,b,E,y,m[0],3921069994,20),y=h(y,v,b,E,m[5],3593408605,5),E=h(E,y,v,b,m[10],38016083,9),b=h(b,E,y,v,m[15],3634488961,14),v=h(v,b,E,y,m[4],3889429448,20),y=h(y,v,b,E,m[9],568446438,5),E=h(E,y,v,b,m[14],3275163606,9),b=h(b,E,y,v,m[3],4107603335,14),v=h(v,b,E,y,m[8],1163531501,20),y=h(y,v,b,E,m[13],2850285829,5),E=h(E,y,v,b,m[2],4243563512,9),b=h(b,E,y,v,m[7],1735328473,14),y=f(y,v=h(v,b,E,y,m[12],2368359562,20),b,E,m[5],4294588738,4),E=f(E,y,v,b,m[8],2272392833,11),b=f(b,E,y,v,m[11],1839030562,16),v=f(v,b,E,y,m[14],4259657740,23),y=f(y,v,b,E,m[1],2763975236,4),E=f(E,y,v,b,m[4],1272893353,11),b=f(b,E,y,v,m[7],4139469664,16),v=f(v,b,E,y,m[10],3200236656,23),y=f(y,v,b,E,m[13],681279174,4),E=f(E,y,v,b,m[0],3936430074,11),b=f(b,E,y,v,m[3],3572445317,16),v=f(v,b,E,y,m[6],76029189,23),y=f(y,v,b,E,m[9],3654602809,4),E=f(E,y,v,b,m[12],3873151461,11),b=f(b,E,y,v,m[15],530742520,16),y=g(y,v=f(v,b,E,y,m[2],3299628645,23),b,E,m[0],4096336452,6),E=g(E,y,v,b,m[7],1126891415,10),b=g(b,E,y,v,m[14],2878612391,15),v=g(v,b,E,y,m[5],4237533241,21),y=g(y,v,b,E,m[12],1700485571,6),E=g(E,y,v,b,m[3],2399980690,10),b=g(b,E,y,v,m[10],4293915773,15),v=g(v,b,E,y,m[1],2240044497,21),y=g(y,v,b,E,m[8],1873313359,6),E=g(E,y,v,b,m[15],4264355552,10),b=g(b,E,y,v,m[6],2734768916,15),v=g(v,b,E,y,m[13],1309151649,21),y=g(y,v,b,E,m[4],4149444226,6),E=g(E,y,v,b,m[11],3174756917,10),b=g(b,E,y,v,m[2],718787259,15),v=g(v,b,E,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+E|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 E=1;E<m;E++){if((b=b.redSqr()).cmp(f)===0)return!1;if(b.cmp(y)===0)break}if(E===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 E=1;E<g;E++){if((b=b.redSqr()).cmp(h)===0)return b.fromRed().subn(1).gcd(u);if(b.cmp(p)===0)break}if(E===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,E=[],D=c.createDecipheriv(p,b,y);E.push(D.update(v)),E.push(D.final()),f=l.concat(E)}else{var F=g.match(s);f=l.from(F[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,E){var D=b.algorithm.decrypt.kde.kdeparams.salt,F=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(E,D,F,G,"sha1"),P=u.createDecipheriv(z,ee,W),I=[];return I.push(P.update(U)),I.push(P.final()),l.concat(I)}(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,E,D,F){return f.importKey("raw",v,{name:"PBKDF2"},!1,["deriveBits"]).then(function(z){return f.deriveBits({name:"PBKDF2",salt:b,iterations:E,hash:{name:F}},z,D<<3)}).then(function(z){return u.from(z)})}n.exports=function(v,b,E,D,F,z){typeof F=="function"&&(z=F,F=void 0);var W=g[(F=F||"sha1").toLowerCase()];if(W&&typeof a.Promise=="function"){if(c(E,D),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,E,D,W):d(v,b,E,D,F)}),z)}else p()(function(){var U;try{U=d(v,b,E,D,F)}catch(G){return z(G)}z(null,U)})}}).call(this)}).call(this,typeof st!="undefined"?st: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 st!="undefined"?st: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 E=u.allocUnsafe(b+f[m]),D=u.allocUnsafe(b+f[m]),F=0;F<b;F++)E[F]=54^p[F],D[F]=92^p[F];var z=u.allocUnsafe(b+y+4);E.copy(z,0,0,b),this.ipad1=z,this.ipad2=E,this.opad=D,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 E=new g(b=b||"sha1",m=d(m,l,"Password"),(p=d(p,l,"Salt")).length),D=u.allocUnsafe(v),F=u.allocUnsafe(p.length+4);p.copy(F,0,0,p.length);for(var z=0,W=f[b],U=Math.ceil(v/W),G=1;G<=U;G++){F.writeUInt32BE(G,p.length);for(var ee=E.run(F,E.ipad1),P=ee,I=1;I<y;I++){P=E.run(P,E.ipad2);for(var S=0;S<W;S++)ee[S]^=P[S]}ee.copy(D,z),z+=W}return D}},{"./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 E=h.length;E;){for(d=h,h=[];++g<E;)d&&d[g].run();g=-1,E=h.length}d=null,f=!1,function(D){if(o===clearTimeout)return clearTimeout(D);if((o===c||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(D);try{o(D)}catch{try{return o.call(null,D)}catch{return o.call(this,D)}}}(b)}}function y(b,E){this.fun=b,this.array=E}function v(){}s.nextTick=function(b){var E=new Array(arguments.length-1);if(arguments.length>1)for(var D=1;D<arguments.length;D++)E[D-1]=arguments[D];h.push(new y(b,E)),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 E=h.alloc(b-y.length);if(y=h.concat([E,y],b),p===4)return function(D,F){var z=D.modulus.byteLength(),W=l("sha1").update(h.alloc(0)).digest(),U=W.length;if(F[0]!==0)throw new Error("decryption error");var G=F.slice(1,U+1),ee=F.slice(U+1),P=s(G,o(ee,U)),I=s(ee,o(P,z-U-1));if(function(C,_){C=h.from(C),_=h.from(_);var w=0,x=C.length;C.length!==_.length&&(w++,x=Math.min(C.length,_.length));for(var A=-1;++A<x;)w+=C[A]^_[A];return w}(W,I.slice(0,U)))throw new Error("decryption error");for(var S=U;I[S]===0;)S++;if(I[S++]!==1)throw new Error("decryption error");return I.slice(S)}(v,y);if(p===1)return function(D,F,z){for(var W=F.slice(0,2),U=2,G=0;F[U++]!==0;)if(U>=F.length){G++;break}var ee=F.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 F.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(E,D){var F=E.modulus.byteLength(),z=D.length,W=s("sha1").update(f.alloc(0)).digest(),U=W.length,G=2*U;if(z>F-G-2)throw new Error("message too long");var ee=f.alloc(F-z-G-2),P=F-U-1,I=o(U),S=c(f.concat([W,ee,f.alloc(1,1),D],P),u(I,P)),C=c(I,u(S,U));return new l(f.concat([f.alloc(1),C,S],F))}(b,m);else if(y===1)v=function(E,D,F){var z,W=D.length,U=E.modulus.byteLength();if(W>U-11)throw new Error("message too long");return z=F?f.alloc(U-W-3,255):function(G){for(var ee,P=f.allocUnsafe(G),I=0,S=o(2*G),C=0;I<G;)C===S.length&&(S=o(2*G),C=0),(ee=S[C++])&&(P[I++]=ee);return P}(U-W-3),new l(f.concat([f.from([0,F?1:2]),z,f.alloc(1),D],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 st!="undefined"?st: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,E){if(a.browser){var D=y.buffer,F=new Uint8Array(D,v,b);return h.getRandomValues(F),E?void a.nextTick(function(){E(null,y)}):y}if(!E)return c(b).copy(y,v),y;c(b,function(z,W){if(z)return E(z);W.copy(y,v),E(null,y)})}h&&h.getRandomValues||!a.browser?(i.randomFill=function(y,v,b,E){if(!(l.isBuffer(y)||y instanceof o.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof v=="function")E=v,v=0,b=y.length;else if(typeof b=="function")E=b,b=y.length-v;else if(typeof E!="function")throw new TypeError('"cb" argument must be a function');return g(v,y.length),m(b,v,y.length),p(y,v,b,E)},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 st!="undefined"?st: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,E,D){return typeof c=="string"?c:c(b,E,D)}(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=P,P.ReadableState=ee,e("events").EventEmitter;var u=function(O,L){return O.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,E=e("../errors").codes,D=E.ERR_INVALID_ARG_TYPE,F=E.ERR_STREAM_PUSH_AFTER_EOF,z=E.ERR_METHOD_NOT_IMPLEMENTED,W=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(P,c);var U=v.errorOrDestroy,G=["error","close","destroy","pause","resume"];function ee(O,L,V){s=s||e("./_stream_duplex"),O=O||{},typeof V!="boolean"&&(V=L instanceof s),this.objectMode=!!O.objectMode,V&&(this.objectMode=this.objectMode||!!O.readableObjectMode),this.highWaterMark=b(this,O,"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=O.emitClose!==!1,this.autoDestroy=!!O.autoDestroy,this.destroyed=!1,this.defaultEncoding=O.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,O.encoding&&(g||(g=e("string_decoder/").StringDecoder),this.decoder=new g(O.encoding),this.encoding=O.encoding)}function P(O){if(s=s||e("./_stream_duplex"),!(this instanceof P))return new P(O);var L=this instanceof s;this._readableState=new ee(O,this,L),this.readable=!0,O&&(typeof O.read=="function"&&(this._read=O.read),typeof O.destroy=="function"&&(this._destroy=O.destroy)),c.call(this)}function I(O,L,V,J,re){h("readableAddChunk",L);var ae,j=O._readableState;if(L===null)j.reading=!1,function(ue,Q){if(h("onEofChunk"),!Q.ended){if(Q.decoder){var B=Q.decoder.end();B&&B.length&&(Q.buffer.push(B),Q.length+=Q.objectMode?1:B.length)}Q.ended=!0,Q.sync?_(ue):(Q.needReadable=!1,Q.emittedReadable||(Q.emittedReadable=!0,w(ue)))}}(O,j);else if(re||(ae=function(ue,Q){var B;H=Q,l.isBuffer(H)||H instanceof d||typeof Q=="string"||Q===void 0||ue.objectMode||(B=new D("chunk",["string","Buffer","Uint8Array"],Q));var H;return B}(j,L)),ae)U(O,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(O,new W):S(O,j,L,!0);else if(j.ended)U(O,new F);else{if(j.destroyed)return!1;j.reading=!1,j.decoder&&!V?(L=j.decoder.write(L),j.objectMode||L.length!==0?S(O,j,L,!1):x(O,j)):S(O,j,L,!1)}else J||(j.reading=!1,x(O,j));return!j.ended&&(j.length<j.highWaterMark||j.length===0)}function S(O,L,V,J){L.flowing&&L.length===0&&!L.sync?(L.awaitDrain=0,O.emit("data",V)):(L.length+=L.objectMode?1:V.length,J?L.buffer.unshift(V):L.buffer.push(V),L.needReadable&&_(O)),x(O,L)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(O){this._readableState&&(this._readableState.destroyed=O)}}),P.prototype.destroy=v.destroy,P.prototype._undestroy=v.undestroy,P.prototype._destroy=function(O,L){L(O)},P.prototype.push=function(O,L){var V,J=this._readableState;return J.objectMode?V=!0:typeof O=="string"&&((L=L||J.defaultEncoding)!==J.encoding&&(O=l.from(O,L),L=""),V=!0),I(this,O,L,!1,V)},P.prototype.unshift=function(O){return I(this,O,null,!0,!1)},P.prototype.isPaused=function(){return this._readableState.flowing===!1},P.prototype.setEncoding=function(O){g||(g=e("string_decoder/").StringDecoder);var L=new g(O);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 C(O,L){return O<=0||L.length===0&&L.ended?0:L.objectMode?1:O!=O?L.flowing&&L.length?L.buffer.head.data.length:L.length:(O>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}(O)),O<=L.length?O:L.ended?L.length:(L.needReadable=!0,0))}function _(O){var L=O._readableState;h("emitReadable",L.needReadable,L.emittedReadable),L.needReadable=!1,L.emittedReadable||(h("emitReadable",L.flowing),L.emittedReadable=!0,a.nextTick(w,O))}function w(O){var L=O._readableState;h("emitReadable_",L.destroyed,L.length,L.ended),L.destroyed||!L.length&&!L.ended||(O.emit("readable"),L.emittedReadable=!1),L.needReadable=!L.flowing&&!L.ended&&L.length<=L.highWaterMark,X(O)}function x(O,L){L.readingMore||(L.readingMore=!0,a.nextTick(A,O,L))}function A(O,L){for(;!L.reading&&!L.ended&&(L.length<L.highWaterMark||L.flowing&&L.length===0);){var V=L.length;if(h("maybeReadMore read 0"),O.read(0),V===L.length)break}L.readingMore=!1}function k(O){var L=O._readableState;L.readableListening=O.listenerCount("readable")>0,L.resumeScheduled&&!L.paused?L.flowing=!0:O.listenerCount("data")>0&&O.resume()}function R(O){h("readable nexttick read 0"),O.read(0)}function M(O,L){h("resume",L.reading),L.reading||O.read(0),L.resumeScheduled=!1,O.emit("resume"),X(O),L.flowing&&!L.reading&&O.read(0)}function X(O){var L=O._readableState;for(h("flow",L.flowing);L.flowing&&O.read()!==null;);}function K(O,L){return L.length===0?null:(L.objectMode?V=L.buffer.shift():!O||O>=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(O,L.decoder),V);var V}function te(O){var L=O._readableState;h("endReadable",L.endEmitted),L.endEmitted||(L.ended=!0,a.nextTick($,L,O))}function $(O,L){if(h("endReadableNT",O.endEmitted,O.length),!O.endEmitted&&O.length===0&&(O.endEmitted=!0,L.readable=!1,L.emit("end"),O.autoDestroy)){var V=L._writableState;(!V||V.autoDestroy&&V.finished)&&L.destroy()}}function q(O,L){for(var V=0,J=O.length;V<J;V++)if(O[V]===L)return V;return-1}P.prototype.read=function(O){h("read",O),O=parseInt(O,10);var L=this._readableState,V=O;if(O!==0&&(L.emittedReadable=!1),O===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):_(this),null;if((O=C(O,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-O<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||(O=C(V,L))),(J=O>0?K(O,L):null)===null?(L.needReadable=L.length<=L.highWaterMark,O=0):(L.length-=O,L.awaitDrain=0),L.length===0&&(L.ended||(L.needReadable=!0),V!==O&&L.ended&&te(this)),J!==null&&this.emit("data",J),J},P.prototype._read=function(O){U(this,new z("_read()"))},P.prototype.pipe=function(O,L){var V=this,J=this._readableState;switch(J.pipesCount){case 0:J.pipes=O;break;case 1:J.pipes=[J.pipes,O];break;default:J.pipes.push(O)}J.pipesCount+=1,h("pipe count=%d opts=%j",J.pipesCount,L);var re=(!L||L.end!==!1)&&O!==a.stdout&&O!==a.stderr?j:ce;function ae(ne,se){h("onunpipe"),ne===V&&se&&se.hasUnpiped===!1&&(se.hasUnpiped=!0,h("cleanup"),O.removeListener("close",Z),O.removeListener("finish",oe),O.removeListener("drain",ue),O.removeListener("error",H),O.removeListener("unpipe",ae),V.removeListener("end",j),V.removeListener("end",ce),V.removeListener("data",B),Q=!0,!J.awaitDrain||O._writableState&&!O._writableState.needDrain||ue())}function j(){h("onend"),O.end()}J.endEmitted?a.nextTick(re):V.once("end",re),O.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);O.on("drain",ue);var Q=!1;function B(ne){h("ondata");var se=O.write(ne);h("dest.write",se),se===!1&&((J.pipesCount===1&&J.pipes===O||J.pipesCount>1&&q(J.pipes,O)!==-1)&&!Q&&(h("false write response, pause",J.awaitDrain),J.awaitDrain++),V.pause())}function H(ne){h("onerror",ne),ce(),O.removeListener("error",H),u(O,"error")===0&&U(O,ne)}function Z(){O.removeListener("finish",oe),ce()}function oe(){h("onfinish"),O.removeListener("close",Z),ce()}function ce(){h("unpipe"),V.unpipe(O)}return V.on("data",B),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)}(O,"error",H),O.once("close",Z),O.once("finish",oe),O.emit("pipe",V),J.flowing||(h("pipe resume"),V.resume()),O},P.prototype.unpipe=function(O){var L=this._readableState,V={hasUnpiped:!1};if(L.pipesCount===0)return this;if(L.pipesCount===1)return O&&O!==L.pipes||(O||(O=L.pipes),L.pipes=null,L.pipesCount=0,L.flowing=!1,O&&O.emit("unpipe",this,V)),this;if(!O){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,O);return j===-1||(L.pipes.splice(j,1),L.pipesCount-=1,L.pipesCount===1&&(L.pipes=L.pipes[0]),O.emit("unpipe",this,V)),this},P.prototype.on=function(O,L){var V=c.prototype.on.call(this,O,L),J=this._readableState;return O==="data"?(J.readableListening=this.listenerCount("readable")>0,J.flowing!==!1&&this.resume()):O==="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?_(this):J.reading||a.nextTick(R,this))),V},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(O,L){var V=c.prototype.removeListener.call(this,O,L);return O==="readable"&&a.nextTick(k,this),V},P.prototype.removeAllListeners=function(O){var L=c.prototype.removeAllListeners.apply(this,arguments);return O!=="readable"&&O!==void 0||a.nextTick(k,this),L},P.prototype.resume=function(){var O=this._readableState;return O.flowing||(h("resume"),O.flowing=!O.readableListening,function(L,V){V.resumeScheduled||(V.resumeScheduled=!0,a.nextTick(M,L,V))}(this,O)),O.paused=!1,this},P.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},P.prototype.wrap=function(O){var L=this,V=this._readableState,J=!1;for(var re in O.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)}),O.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,O.pause()))}),O)this[re]===void 0&&typeof O[re]=="function"&&(this[re]=function(j){return function(){return O[j].apply(O,arguments)}}(re));for(var ae=0;ae<G.length;ae++)O.on(G[ae],this.emit.bind(this,G[ae]));return this._read=function(j){h("wrapped _read",j),J&&(J=!1,O.resume())},this},typeof Symbol=="function"&&(P.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=e("./internal/streams/async_iterator")),m(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(O){this._readableState&&(this._readableState.flowing=O)}}),P._fromList=K,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(P.from=function(O,L){return p===void 0&&(p=e("./internal/streams/from")),p(P,O,L)})}).call(this)}).call(this,e("_process"),typeof st!="undefined"?st: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(A){var k=this;this.next=null,this.entry=null,this.finish=function(){(function(R,M,X){var K=R.entry;for(R.entry=null;K;){var te=K.callback;M.pendingcb--,te(X),K=K.next}M.corkedRequestsFree.next=R})(k,A)}}var u;n.exports=P,P.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,E=p.ERR_STREAM_CANNOT_PIPE,D=p.ERR_STREAM_DESTROYED,F=p.ERR_STREAM_NULL_VALUES,z=p.ERR_STREAM_WRITE_AFTER_END,W=p.ERR_UNKNOWN_ENCODING,U=g.errorOrDestroy;function G(){}function ee(A,k,R){u=u||e("./_stream_duplex"),A=A||{},typeof R!="boolean"&&(R=k instanceof u),this.objectMode=!!A.objectMode,R&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=m(this,A,"writableHighWaterMark",R),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var M=A.decodeStrings===!1;this.decodeStrings=!M,this.defaultEncoding=A.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,O=$.writecb;if(typeof O!="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(x,V,J),V._writableState.errorEmitted=!0,U(V,ae)):(j(ae),V._writableState.errorEmitted=!0,U(V,ae),x(V,J))})(K,$,q,te,O);else{var L=_($)||K.destroyed;L||$.corked||$.bufferProcessing||!$.bufferedRequest||C(K,$),q?a.nextTick(S,K,$,L,O):S(K,$,L,O)}})(k,X)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function P(A){var k=this instanceof(u=u||e("./_stream_duplex"));if(!k&&!f.call(P,this))return new P(A);this._writableState=new ee(A,this,k),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),l.call(this)}function I(A,k,R,M,X,K,te){k.writelen=M,k.writecb=te,k.writing=!0,k.sync=!0,k.destroyed?k.onwrite(new D("write")):R?A._writev(X,k.onwrite):A._write(X,K,k.onwrite),k.sync=!1}function S(A,k,R,M){R||function(X,K){K.length===0&&K.needDrain&&(K.needDrain=!1,X.emit("drain"))}(A,k),k.pendingcb--,M(),x(A,k)}function C(A,k){k.bufferProcessing=!0;var R=k.bufferedRequest;if(A._writev&&R&&R.next){var M=k.bufferedRequestCount,X=new Array(M),K=k.corkedRequestsFree;K.entry=R;for(var te=0,$=!0;R;)X[te]=R,R.isBuf||($=!1),R=R.next,te+=1;X.allBuffers=$,I(A,k,!0,k.length,X,"",K.finish),k.pendingcb++,k.lastBufferedRequest=null,K.next?(k.corkedRequestsFree=K.next,K.next=null):k.corkedRequestsFree=new s(k),k.bufferedRequestCount=0}else{for(;R;){var q=R.chunk,O=R.encoding,L=R.callback;if(I(A,k,!1,k.objectMode?1:q.length,q,O,L),R=R.next,k.bufferedRequestCount--,k.writing)break}R===null&&(k.lastBufferedRequest=null)}k.bufferedRequest=R,k.bufferProcessing=!1}function _(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function w(A,k){A._final(function(R){k.pendingcb--,R&&U(A,R),k.prefinished=!0,A.emit("prefinish"),x(A,k)})}function x(A,k){var R=_(k);if(R&&(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)))}(A,k),k.pendingcb===0&&(k.finished=!0,A.emit("finish"),k.autoDestroy))){var M=A._readableState;(!M||M.autoDestroy&&M.endEmitted)&&A.destroy()}return R}e("inherits")(P,l),ee.prototype.getBuffer=function(){for(var A=this.bufferedRequest,k=[];A;)k.push(A),A=A.next;return k},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(P,Symbol.hasInstance,{value:function(A){return!!f.call(this,A)||this===P&&A&&A._writableState instanceof ee}})):f=function(A){return A instanceof this},P.prototype.pipe=function(){U(this,new E)},P.prototype.write=function(A,k,R){var M,X=this._writableState,K=!1,te=!X.objectMode&&(M=A,d.isBuffer(M)||M instanceof h);return te&&!d.isBuffer(A)&&(A=function($){return d.from($)}(A)),typeof k=="function"&&(R=k,k=null),te?k="buffer":k||(k=X.defaultEncoding),typeof R!="function"&&(R=G),X.ending?function($,q){var O=new z;U($,O),a.nextTick(q,O)}(this,R):(te||function($,q,O,L){var V;return O===null?V=new F:typeof O=="string"||q.objectMode||(V=new y("chunk",["string","Buffer"],O)),!V||(U($,V),a.nextTick(L,V),!1)}(this,X,A,R))&&(X.pendingcb++,K=function($,q,O,L,V,J){if(!O){var re=function(Q,B,H){return Q.objectMode||Q.decodeStrings===!1||typeof B!="string"||(B=d.from(B,H)),B}(q,L,V);L!==re&&(O=!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:O,callback:J,next:null},ue?ue.next=q.lastBufferedRequest:q.bufferedRequest=q.lastBufferedRequest,q.bufferedRequestCount+=1}else I($,q,!1,ae,L,V,J);return j}(this,X,te,A,k,R)),K},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,A.writing||A.corked||A.bufferProcessing||!A.bufferedRequest||C(this,A))},P.prototype.setDefaultEncoding=function(A){if(typeof A=="string"&&(A=A.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((A+"").toLowerCase())>-1))throw new W(A);return this._writableState.defaultEncoding=A,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),P.prototype._write=function(A,k,R){R(new v("_write()"))},P.prototype._writev=null,P.prototype.end=function(A,k,R){var M=this._writableState;return typeof A=="function"?(R=A,A=null,k=null):typeof k=="function"&&(R=k,k=null),A!=null&&this.write(A,k),M.corked&&(M.corked=1,this.uncork()),M.ending||function(X,K,te){K.ending=!0,x(X,K),te&&(K.finished?a.nextTick(te):X.once("finish",te)),K.ended=!0,X.writable=!1}(this,M,R),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(A){this._writableState&&(this._writableState.destroyed=A)}}),P.prototype.destroy=g.destroy,P.prototype._undestroy=g.undestroy,P.prototype._destroy=function(A,k){k(A)}}).call(this)}).call(this,e("_process"),typeof st!="undefined"?st: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(D,F,z){return(F=function(W){var U=function(G,ee){if(typeof G!="object"||G===null)return G;var P=G[Symbol.toPrimitive];if(P!==void 0){var I=P.call(G,ee||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ee==="string"?String:Number)(G)}(W,"string");return typeof U=="symbol"?U:String(U)}(F))in D?Object.defineProperty(D,F,{value:z,enumerable:!0,configurable:!0,writable:!0}):D[F]=z,D}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(D,F){return{value:D,done:F}}function y(D){var F=D[c];if(F!==null){var z=D[m].read();z!==null&&(D[f]=null,D[c]=null,D[l]=null,F(p(z,!1)))}}function v(D){a.nextTick(y,D)}var b=Object.getPrototypeOf(function(){}),E=Object.setPrototypeOf((s(o={get stream(){return this[m]},next:function(){var D=this,F=this[d];if(F!==null)return Promise.reject(F);if(this[h])return Promise.resolve(p(void 0,!0));if(this[m].destroyed)return new Promise(function(G,ee){a.nextTick(function(){D[d]?ee(D[d]):G(p(void 0,!0))})});var z,W=this[f];if(W)z=new Promise(function(G,ee){return function(P,I){G.then(function(){ee[h]?P(p(void 0,!0)):ee[g](P,I)},I)}}(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 D=this;return new Promise(function(F,z){D[m].destroy(null,function(W){W?z(W):F(p(void 0,!0))})})}),o),b);n.exports=function(D){var F,z=Object.create(E,(s(F={},m,{value:D,writable:!0}),s(F,c,{value:null,writable:!0}),s(F,l,{value:null,writable:!0}),s(F,d,{value:null,writable:!0}),s(F,h,{value:D._readableState.endEmitted,writable:!0}),s(F,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}),F));return z[f]=null,u(D,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}),D.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,E=l.allocUnsafe(p>>>0),D=this.head,F=0;D;)y=D.data,v=E,b=F,l.prototype.copy.call(y,v,b),F+=D.data.length,D=D.next;return E}},{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 E=y.data,D=p>E.length?E.length:p;if(D===E.length?b+=E:b+=E.slice(0,p),(p-=D)==0){D===E.length?(++v,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=E.slice(D));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 E=v.data,D=p>E.length?E.length:p;if(E.copy(y,y.length-p,0,D),(p-=D)==0){D===E.length?(++b,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=E.slice(D));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(D){var F=!1;return function(){if(!F){F=!0;for(var z=arguments.length,W=new Array(z),U=0;U<z;U++)W[U]=arguments[U];D.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(D){l.call(u,D)},b=function(){var D;return d&&!p?(u._readableState&&u._readableState.ended||(D=new a),l.call(u,D)):h&&!g?(u._writableState&&u._writableState.ended||(D=new a),l.call(u,D)):void 0},E=function(){u.req.on("finish",m)};return function(D){return D.setHeader&&typeof D.abort=="function"}(u)?(u.on("complete",m),u.on("abort",b),u.req?E():u.on("request",E)):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",E),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(E){var D=!1;return function(){D||(D=!0,E.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(E){if(E)return y(E);v=!0,y()});var b=!1;return function(E){if(!v&&!b)return b=!0,function(D){return D.setHeader&&typeof D.abort=="function"}(g)?g.abort():typeof g.destroy=="function"?g.destroy():void y(E||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(E,D){var F=D<m.length-1;return l(E,F,D>0,function(z){y||(y=z),z&&b.forEach(d),F||(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(x,A,k){x[A]=k.value},l=typeof Symbol=="function"?Symbol:{},d=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",f=l.toStringTag||"@@toStringTag";function g(x,A,k){return Object.defineProperty(x,A,{value:k,enumerable:!0,configurable:!0,writable:!0}),x[A]}try{g({},"")}catch{g=function(A,k,R){return A[k]=R}}function m(x,A,k,R){var M=A&&A.prototype instanceof v?A:v,X=Object.create(M.prototype),K=new C(R||[]);return c(X,"_invoke",{value:ee(x,k,K)}),X}function p(x,A,k){try{return{type:"normal",arg:x.call(A,k)}}catch(R){return{type:"throw",arg:R}}}o.wrap=m;var y={};function v(){}function b(){}function E(){}var D={};g(D,d,function(){return this});var F=Object.getPrototypeOf,z=F&&F(F(_([])));z&&z!==s&&u.call(z,d)&&(D=z);var W=E.prototype=v.prototype=Object.create(D);function U(x){["next","throw","return"].forEach(function(A){g(x,A,function(k){return this._invoke(A,k)})})}function G(x,A){var k;c(this,"_invoke",{value:function(R,M){function X(){return new A(function(K,te){(function $(q,O,L,V){var J=p(x[q],x,O);if(J.type!=="throw"){var re=J.arg,ae=re.value;return ae&&typeof ae=="object"&&u.call(ae,"__await")?A.resolve(ae.__await).then(function(j){$("next",j,L,V)},function(j){$("throw",j,L,V)}):A.resolve(ae).then(function(j){re.value=j,L(re)},function(j){return $("throw",j,L,V)})}V(J.arg)})(R,M,K,te)})}return k=k?k.then(X,X):X()}})}function ee(x,A,k){var R="suspendedStart";return function(M,X){if(R==="executing")throw new Error("Generator is already running");if(R==="completed"){if(M==="throw")throw X;return w()}for(k.method=M,k.arg=X;;){var K=k.delegate;if(K){var te=P(K,k);if(te){if(te===y)continue;return te}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(R==="suspendedStart")throw R="completed",k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);R="executing";var $=p(x,A,k);if($.type==="normal"){if(R=k.done?"completed":"suspendedYield",$.arg===y)continue;return{value:$.arg,done:k.done}}$.type==="throw"&&(R="completed",k.method="throw",k.arg=$.arg)}}}function P(x,A){var k=A.method,R=x.iterator[k];if(R===void 0)return A.delegate=null,k==="throw"&&x.iterator.return&&(A.method="return",A.arg=void 0,P(x,A),A.method==="throw")||k!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+k+"' method")),y;var M=p(R,x.iterator,A.arg);if(M.type==="throw")return A.method="throw",A.arg=M.arg,A.delegate=null,y;var X=M.arg;return X?X.done?(A[x.resultName]=X.value,A.next=x.nextLoc,A.method!=="return"&&(A.method="next",A.arg=void 0),A.delegate=null,y):X:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,y)}function I(x){var A={tryLoc:x[0]};1 in x&&(A.catchLoc=x[1]),2 in x&&(A.finallyLoc=x[2],A.afterLoc=x[3]),this.tryEntries.push(A)}function S(x){var A=x.completion||{};A.type="normal",delete A.arg,x.completion=A}function C(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(I,this),this.reset(!0)}function _(x){if(x){var A=x[d];if(A)return A.call(x);if(typeof x.next=="function")return x;if(!isNaN(x.length)){var k=-1,R=function M(){for(;++k<x.length;)if(u.call(x,k))return M.value=x[k],M.done=!1,M;return M.value=void 0,M.done=!0,M};return R.next=R}}return{next:w}}function w(){return{value:void 0,done:!0}}return b.prototype=E,c(W,"constructor",{value:E,configurable:!0}),c(E,"constructor",{value:b,configurable:!0}),b.displayName=g(E,f,"GeneratorFunction"),o.isGeneratorFunction=function(x){var A=typeof x=="function"&&x.constructor;return!!A&&(A===b||(A.displayName||A.name)==="GeneratorFunction")},o.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,E):(x.__proto__=E,g(x,f,"GeneratorFunction")),x.prototype=Object.create(W),x},o.awrap=function(x){return{__await:x}},U(G.prototype),g(G.prototype,h,function(){return this}),o.AsyncIterator=G,o.async=function(x,A,k,R,M){M===void 0&&(M=Promise);var X=new G(m(x,A,k,R),M);return o.isGeneratorFunction(A)?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(x){var A=Object(x),k=[];for(var R in A)k.push(R);return k.reverse(),function M(){for(;k.length;){var X=k.pop();if(X in A)return M.value=X,M.done=!1,M}return M.done=!0,M}},o.values=_,C.prototype={constructor:C,reset:function(x){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(S),!x)for(var A in this)A.charAt(0)==="t"&&u.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var x=this.tryEntries[0].completion;if(x.type==="throw")throw x.arg;return this.rval},dispatchException:function(x){if(this.done)throw x;var A=this;function k($,q){return X.type="throw",X.arg=x,A.next=$,q&&(A.method="next",A.arg=void 0),!!q}for(var R=this.tryEntries.length-1;R>=0;--R){var M=this.tryEntries[R],X=M.completion;if(M.tryLoc==="root")return k("end");if(M.tryLoc<=this.prev){var K=u.call(M,"catchLoc"),te=u.call(M,"finallyLoc");if(K&&te){if(this.prev<M.catchLoc)return k(M.catchLoc,!0);if(this.prev<M.finallyLoc)return k(M.finallyLoc)}else if(K){if(this.prev<M.catchLoc)return k(M.catchLoc,!0)}else{if(!te)throw new Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return k(M.finallyLoc)}}}},abrupt:function(x,A){for(var k=this.tryEntries.length-1;k>=0;--k){var R=this.tryEntries[k];if(R.tryLoc<=this.prev&&u.call(R,"finallyLoc")&&this.prev<R.finallyLoc){var M=R;break}}M&&(x==="break"||x==="continue")&&M.tryLoc<=A&&A<=M.finallyLoc&&(M=null);var X=M?M.completion:{};return X.type=x,X.arg=A,M?(this.method="next",this.next=M.finallyLoc,y):this.complete(X)},complete:function(x,A){if(x.type==="throw")throw x.arg;return x.type==="break"||x.type==="continue"?this.next=x.arg:x.type==="return"?(this.rval=this.arg=x.arg,this.method="return",this.next="end"):x.type==="normal"&&A&&(this.next=A),y},finish:function(x){for(var A=this.tryEntries.length-1;A>=0;--A){var k=this.tryEntries[A];if(k.finallyLoc===x)return this.complete(k.completion,k.afterLoc),S(k),y}},catch:function(x){for(var A=this.tryEntries.length-1;A>=0;--A){var k=this.tryEntries[A];if(k.tryLoc===x){var R=k.completion;if(R.type==="throw"){var M=R.arg;S(k)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(x,A,k){return this.delegate={iterator:_(x),resultName:A,nextLoc:k},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(F,z){return F<<z|F>>>32-z}function y(F,z,W,U,G,ee,P,I){return p(F+(z^W^U)+ee+P|0,I)+G|0}function v(F,z,W,U,G,ee,P,I){return p(F+(z&W|~z&U)+ee+P|0,I)+G|0}function b(F,z,W,U,G,ee,P,I){return p(F+((z|~W)^U)+ee+P|0,I)+G|0}function E(F,z,W,U,G,ee,P,I){return p(F+(z&U|W&~U)+ee+P|0,I)+G|0}function D(F,z,W,U,G,ee,P,I){return p(F+(z^(W|~U))+ee+P|0,I)+G|0}o(m,s),m.prototype._update=function(){for(var F=u,z=0;z<16;++z)F[z]=this._block.readInt32LE(4*z);for(var W=0|this._a,U=0|this._b,G=0|this._c,ee=0|this._d,P=0|this._e,I=0|this._a,S=0|this._b,C=0|this._c,_=0|this._d,w=0|this._e,x=0;x<80;x+=1){var A,k;x<16?(A=y(W,U,G,ee,P,F[c[x]],f[0],d[x]),k=D(I,S,C,_,w,F[l[x]],g[0],h[x])):x<32?(A=v(W,U,G,ee,P,F[c[x]],f[1],d[x]),k=E(I,S,C,_,w,F[l[x]],g[1],h[x])):x<48?(A=b(W,U,G,ee,P,F[c[x]],f[2],d[x]),k=b(I,S,C,_,w,F[l[x]],g[2],h[x])):x<64?(A=E(W,U,G,ee,P,F[c[x]],f[3],d[x]),k=v(I,S,C,_,w,F[l[x]],g[3],h[x])):(A=D(W,U,G,ee,P,F[c[x]],f[4],d[x]),k=y(I,S,C,_,w,F[l[x]],g[4],h[x])),W=P,P=ee,ee=p(G,10),G=U,U=A,I=w,w=_,_=p(C,10),C=S,S=k}var R=this._b+G+_|0;this._b=this._c+ee+w|0,this._c=this._d+P+I|0,this._d=this._e+W+S|0,this._e=this._a+U+C|0,this._a=R},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 F=a.alloc?a.alloc(20):new a(20);return F.writeInt32LE(this._a,0),F.writeInt32LE(this._b,4),F.writeInt32LE(this._c,8),F.writeInt32LE(this._d,12),F.writeInt32LE(this._e,16),F},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/",E={__proto__:null,xml:v,xmlns:b},D={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},F=_=>_===34||_===39,z=[34,39],W=[...z,91,62],U=[...z,60,93],G=[61,63,...h],ee=[...h,62,38,60];function P(_,w,x){switch(w){case"xml":x!==v&&_.fail(`xml prefix must be bound to ${v}.`);break;case"xmlns":x!==b&&_.fail(`xmlns prefix must be bound to ${b}.`)}switch(x){case b:_.fail(w===""?`the default namespace may not be set to ${x}.`:`may not assign a prefix (even "xmlns") to the URI ${b}.`);break;case v:switch(w){case"xml":break;case"":_.fail(`the default namespace may not be set to ${x}.`);break;default:_.fail("may not assign the xml namespace to another prefix.")}}}const I=_=>y.test(_),S=_=>f.test(_);i.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const C={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(_){this.opt=_!=null?_:{},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=I,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},E);const x=this.opt.additionalNamespaces;x!=null&&(function(A,k){for(const R of Object.keys(k))P(A,R,k[R])}(this,x),Object.assign(this.ns,x))}else this.nameStartCheck=l,this.nameCheck=d,this.isName=S,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 _;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:x}=this.opt;if(x===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");x="1.0"}this.setXMLVersion(x),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(D),(_=this.readyHandler)===null||_===void 0||_.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(_,w){this[C[_]]=w}off(_){this[C[_]]=void 0}makeError(_){var w;let x=(w=this.fileName)!==null&&w!==void 0?w:"";return this.trackPosition&&(x.length>0&&(x+=":"),x+=`${this.line}:${this.column}`),x.length>0&&(x+=": "),new Error(x+_)}fail(_){const w=this.makeError(_),x=this.errorHandler;if(x===void 0)throw w;return x(w),this}write(_){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let w=!1;_===null?(w=!0,_=""):typeof _=="object"&&(_=_.toString()),this.carriedFromPrevious!==void 0&&(_=`${this.carriedFromPrevious}${_}`,this.carriedFromPrevious=void 0);let x=_.length;const A=_.charCodeAt(x-1);!w&&(A===13||A>=55296&&A<=56319)&&(this.carriedFromPrevious=_[x-1],x--,_=_.slice(0,x));const{stateTable:k}=this;for(this.chunk=_,this.i=0;this.i<x;)k[this.state].call(this);return this.chunkPosition+=x,w?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:_,i:w}=this;if(this.prevI=w,this.i=w+1,w>=_.length)return-1;const x=_.charCodeAt(w);if(this.column++,x<55296){if(x>=32||x===9)return x;switch(x){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return _.charCodeAt(w+1)===10&&(this.i=w+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),x}}if(x>56319)return x>=57344&&x<=65533||this.fail("disallowed character."),x;const A=65536+1024*(x-55296)+(_.charCodeAt(w+1)-56320);return this.i=w+2,A>1114111&&this.fail("disallowed character."),A}getCode11(){const{chunk:_,i:w}=this;if(this.prevI=w,this.i=w+1,w>=_.length)return-1;const x=_.charCodeAt(w);if(this.column++,x<55296){if(x>31&&x<127||x>159&&x!==8232||x===9)return x;switch(x){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const k=_.charCodeAt(w+1);k!==10&&k!==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."),x}}if(x>56319)return x>=57344&&x<=65533||this.fail("disallowed character."),x;const A=65536+1024*(x-55296)+(_.charCodeAt(w+1)-56320);return this.i=w+2,A>1114111&&this.fail("disallowed character."),A}getCodeNorm(){const _=this.getCode();return _===-2?10:_}unget(){this.i=this.prevI,this.column--}captureTo(_){let{i:w}=this;const{chunk:x}=this;for(;;){const A=this.getCode(),k=A===-2,R=k?10:A;if(R===-1||_.includes(R))return this.text+=x.slice(w,this.prevI),R;k&&(this.text+=x.slice(w,this.prevI)+`
|
|
`,w=this.i)}}captureToChar(_){let{i:w}=this;const{chunk:x}=this;for(;;){let A=this.getCode();switch(A){case-2:this.text+=x.slice(w,this.prevI)+`
|
|
`,w=this.i,A=10;break;case-1:return this.text+=x.slice(w),!1}if(A===_)return this.text+=x.slice(w,this.prevI),!0}}captureNameChars(){const{chunk:_,i:w}=this;for(;;){const x=this.getCode();if(x===-1)return this.name+=_.slice(w),-1;if(!d(x))return this.name+=_.slice(w,this.prevI),x===-2?10:x}}skipSpaces(){for(;;){const _=this.getCodeNorm();if(_===-1||!u(_))return _}}setXMLVersion(_){this.currentXMLVersion=_,_==="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 _=this.i,w=this.skipSpaces();switch(this.prevI!==_&&(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 _;const w=this.captureTo(W);switch(w){case 62:(_=this.doctypeHandler)===null||_===void 0||_.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:F(w)&&(this.state=3,this.q=w)}}sDoctypeQuote(){const _=this.q;this.captureToChar(_)&&(this.text+=String.fromCodePoint(_),this.q=null,this.state=2)}sDTD(){const _=this.captureTo(U);_!==-1&&(this.text+=String.fromCodePoint(_),_===93?this.state=2:_===60?this.state=6:F(_)&&(this.state=5,this.q=_))}sDTDQuoted(){const _=this.q;this.captureToChar(_)&&(this.text+=String.fromCodePoint(_),this.state=4,this.q=null)}sDTDOpenWaka(){const _=this.getCodeNorm();switch(this.text+=String.fromCodePoint(_),_){case 33:this.state=7,this.openWakaBang="";break;case 63:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const _=String.fromCodePoint(this.getCodeNorm()),w=this.openWakaBang+=_;this.text+=_,w!=="-"&&(this.state=w==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const _=this.getCodeNorm();this.text+=String.fromCodePoint(_),this.state=_===45?10:8}sDTDCommentEnded(){const _=this.getCodeNorm();this.text+=String.fromCodePoint(_),_===62?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(63)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const _=this.getCodeNorm();this.text+=String.fromCodePoint(_),_===62&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:_}=this;const{chunk:w}=this;e:for(;;)switch(this.getCode()){case-2:this.entity+=w.slice(_,this.prevI)+`
|
|
`,_=this.i;break;case 59:{const{entityReturnState:x}=this,A=this.entity+w.slice(_,this.prevI);let k;this.state=x,A===""?(this.fail("empty entity name."),k="&;"):(k=this.parseEntity(A),this.entity=""),x===13&&this.textHandler===void 0||(this.text+=k);break e}case-1:this.entity+=w.slice(_);break e}}sOpenWaka(){const _=this.getCode();if(l(_))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(_){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 _;const w=this.getCodeNorm();w===45?(this.state=19,(_=this.commentHandler)===null||_===void 0||_.call(this,this.text),this.text=""):(this.text+="-"+String.fromCodePoint(w),this.state=17)}sCommentEnded(){const _=this.getCodeNorm();_!==62?(this.fail("malformed comment."),this.text+="--"+String.fromCodePoint(_),this.state=17):this.state=13}sCData(){this.captureToChar(93)&&(this.state=21)}sCDataEnding(){const _=this.getCodeNorm();_===93?this.state=22:(this.text+="]"+String.fromCodePoint(_),this.state=20)}sCDataEnding2(){var _;const w=this.getCodeNorm();switch(w){case 62:(_=this.cdataHandler)===null||_===void 0||_.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 _=this.getCodeNorm();this.nameStartCheck(_)?(this.piTarget+=String.fromCodePoint(_),this.state=24):_===63||u(_)?(this.fail("processing instruction without a target."),this.state=_===63?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(_),this.state=24)}sPIRest(){const{chunk:_,i:w}=this;for(;;){const x=this.getCodeNorm();if(x===-1)return void(this.piTarget+=_.slice(w));if(!this.nameCheck(x)){this.piTarget+=_.slice(w,this.prevI);const A=x===63;A||u(x)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=A?33:27):this.state=A?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(x));break}}}sPIBody(){if(this.text.length===0){const _=this.getCodeNorm();_===63?this.state=26:u(_)||(this.text=String.fromCodePoint(_))}else this.captureToChar(63)&&(this.state=26)}sPIEnding(){var _;const w=this.getCodeNorm();if(w===62){const{piTarget:x}=this;x.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(_=this.piHandler)===null||_===void 0||_.call(this,{target:x,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 _=this.skipSpaces();_!==63?_!==-1&&(this.state=28,this.name=String.fromCodePoint(_)):this.state=33}sXMLDeclName(){const _=this.captureTo(G);if(_===63)return this.state=33,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(u(_)||_===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=_===61?30:29}}sXMLDeclEq(){const _=this.getCodeNorm();if(_===63)return this.state=33,void this.fail("XML declaration is incomplete.");u(_)||(_!==61&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const _=this.getCodeNorm();if(_===63)return this.state=33,void this.fail("XML declaration is incomplete.");u(_)||(F(_)?this.q=_:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const _=this.captureTo([this.q,63]);if(_===63)return this.state=33,this.text="",void this.fail("XML declaration is incomplete.");if(_===-1)return;const w=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const x=w;this.xmlDecl.version=x,/^1\.[0-9]+$/.test(x)?this.opt.forceXMLVersion||this.setXMLVersion(x):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 _=this.getCodeNorm();_!==63?(u(_)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=33}sXMLDeclEnding(){var _;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."),(_=this.xmldeclHandler)===null||_===void 0||_.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 _;const w=this.captureNameChars();if(w===-1)return;const x=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=x.ns=Object.create(null)),(_=this.openTagStartHandler)===null||_===void 0||_.call(this,x),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 _=this.skipSpaces();_!==-1&&(l(_)?(this.unget(),this.state=37):_===62?this.openTag():_===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const _=this.captureNameChars();_===61?this.state=39:u(_)?this.state=38:_===62?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):_!==-1&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const _=this.skipSpaces();switch(_){case-1:return;case 61:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",_===62?this.openTag():l(_)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const _=this.getCodeNorm();F(_)?(this.q=_,this.state=40):u(_)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:_,chunk:w}=this;let{i:x}=this;for(;;)switch(this.getCode()){case _:return this.pushAttrib(this.name,this.text+w.slice(x,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=w.slice(x,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+=w.slice(x,this.prevI)+" ",x=this.i;break;case 60:return this.text+=w.slice(x,this.prevI),void this.fail("disallowed character.");case-1:return void(this.text+=w.slice(x))}}sAttribValueClosed(){const _=this.getCodeNorm();u(_)?this.state=36:_===62?this.openTag():_===47?this.state=35:l(_)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const _=this.captureTo(ee);switch(_){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="",_===62?this.openTag():this.state=36}}sCloseTag(){const _=this.captureNameChars();_===62?this.closeTag():u(_)?this.state=44:_!==-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:_,forbiddenState:w}=this;const{chunk:x,textHandler:A}=this;e:for(;;)switch(this.getCode()){case 60:if(this.state=15,A!==void 0){const{text:k}=this,R=x.slice(_,this.prevI);k.length!==0?(A(k+R),this.text=""):R.length!==0&&A(R)}w=0;break e;case 38:this.state=14,this.entityReturnState=13,A!==void 0&&(this.text+=x.slice(_,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:A!==void 0&&(this.text+=x.slice(_,this.prevI)+`
|
|
`),_=this.i,w=0;break;case-1:A!==void 0&&(this.text+=x.slice(_));break e;default:w=0}this.forbiddenState=w}handleTextOutsideRoot(){let{i:_}=this;const{chunk:w,textHandler:x}=this;let A=!1;e:for(;;){const k=this.getCode();switch(k){case 60:if(this.state=15,x!==void 0){const{text:R}=this,M=w.slice(_,this.prevI);R.length!==0?(x(R+M),this.text=""):M.length!==0&&x(M)}break e;case 38:this.state=14,this.entityReturnState=13,x!==void 0&&(this.text+=w.slice(_,this.prevI)),A=!0;break e;case-2:x!==void 0&&(this.text+=w.slice(_,this.prevI)+`
|
|
`),_=this.i;break;case-1:x!==void 0&&(this.text+=w.slice(_));break e;default:u(k)||(A=!0)}}A&&(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(_,w){var x;const{prefix:A,local:k}=this.qname(_),R={name:_,prefix:A,local:k,value:w};if(this.attribList.push(R),(x=this.attributeHandler)===null||x===void 0||x.call(this,R),A==="xmlns"){const M=w.trim();this.currentXMLVersion==="1.0"&&M===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[k]=M,P(this,k,M)}else if(_==="xmlns"){const M=w.trim();this.topNS[""]=M,P(this,"",M)}}pushAttribPlain(_,w){var x;const A={name:_,value:w};this.attribList.push(A),(x=this.attributeHandler)===null||x===void 0||x.call(this,A)}end(){var _,w;this.sawRoot||this.fail("document must contain a root element.");const{tags:x}=this;for(;x.length>0;){const k=x.pop();this.fail("unclosed tag: "+k.name)}this.state!==0&&this.state!==13&&this.fail("unexpected end.");const{text:A}=this;return A.length!==0&&((_=this.textHandler)===null||_===void 0||_.call(this,A),this.text=""),this._closed=!0,(w=this.endHandler)===null||w===void 0||w.call(this),this._init(),this}resolve(_){var w,x;let A=this.topNS[_];if(A!==void 0)return A;const{tags:k}=this;for(let R=k.length-1;R>=0;R--)if(A=k[R].ns[_],A!==void 0)return A;return A=this.ns[_],A!==void 0?A:(x=(w=this.opt).resolvePrefix)===null||x===void 0?void 0:x.call(w,_)}qname(_){const w=_.indexOf(":");if(w===-1)return{prefix:"",local:_};const x=_.slice(w+1),A=_.slice(0,w);return(A===""||x===""||x.includes(":"))&&this.fail(`malformed name: ${_}.`),{prefix:A,local:x}}processAttribsNS(){var _;const{attribList:w}=this,x=this.tag;{const{prefix:R,local:M}=this.qname(x.name);x.prefix=R,x.local=M;const X=x.uri=(_=this.resolve(R))!==null&&_!==void 0?_:"";R!==""&&(R==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),X===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(R)}.`),x.uri=R))}if(w.length===0)return;const{attributes:A}=x,k=new Set;for(const R of w){const{name:M,prefix:X,local:K}=R;let te,$;X===""?(te=M==="xmlns"?b:"",$=M):(te=this.resolve(X),te===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(X)}.`),te=X),$=`{${te}}${K}`),k.has($)&&this.fail(`duplicate attribute: ${$}.`),k.add($),R.uri=te,A[M]=R}this.attribList=[]}processAttribsPlain(){const{attribList:_}=this,w=this.tag.attributes;for(const{name:x,value:A}of _)w[x]!==void 0&&this.fail(`duplicate attribute: ${x}.`),w[x]=A;this.attribList=[]}openTag(){var _;this.processAttribs();const{tags:w}=this,x=this.tag;x.isSelfClosing=!1,(_=this.openTagHandler)===null||_===void 0||_.call(this,x),w.push(x),this.state=13,this.name=""}openSelfClosingTag(){var _,w,x;this.processAttribs();const{tags:A}=this,k=this.tag;k.isSelfClosing=!0,(_=this.openTagHandler)===null||_===void 0||_.call(this,k),(w=this.closeTagHandler)===null||w===void 0||w.call(this,k),(this.tag=(x=A[A.length-1])!==null&&x!==void 0?x:null)===null&&(this.closedRoot=!0),this.state=13,this.name=""}closeTag(){const{tags:_,name:w}=this;if(this.state=13,this.name="",w==="")return this.fail("weird empty close tag."),void(this.text+="</>");const x=this.closeTagHandler;let A=_.length;for(;A-- >0;){const k=this.tag=_.pop();if(this.topNS=k.ns,x==null||x(k),k.name===w)break;this.fail("unexpected close tag.")}A===0?this.closedRoot=!0:A<0&&(this.fail(`unmatched closing tag: ${w}.`),this.text+=`</${w}>`)}parseEntity(_){if(_[0]!=="#"){const x=this.ENTITIES[_];return x!==void 0?x:(this.fail(this.isName(_)?"undefined entity.":"disallowed character in entity name."),`&${_};`)}let w=NaN;return _[1]==="x"&&/^#x[0-9a-f]+$/i.test(_)?w=parseInt(_.slice(2),16):/^#[0-9]+$/.test(_)&&(w=parseInt(_.slice(1),10)),this.isChar(w)?String.fromCodePoint(w):(this.fail("malformed character entity."),`&${_};`)}}},{"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,E=0|this._e,D=0;D<16;++D)m[D]=f.readInt32BE(4*D);for(;D<80;++D)m[D]=m[D-3]^m[D-8]^m[D-14]^m[D-16];for(var F=0;F<80;++F){var z=~~(F/20),W=0|((g=p)<<5|g>>>27)+h(z,y,v,b)+E+m[F]+u[z];E=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=E+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,E=0|this._d,D=0|this._e,F=0;F<16;++F)p[F]=g.readInt32BE(4*F);for(;F<80;++F)p[F]=(m=p[F-3]^p[F-8]^p[F-14]^p[F-16])<<1|m>>>31;for(var z=0;z<80;++z){var W=~~(z/20),U=d(y)+f(W,v,b,E)+D+p[z]+u[W]|0;D=E,E=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=E+this._d|0,this._e=D+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,E=0|this._b,D=0|this._c,F=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 P=0;P<64;++P){var I=G+g(z)+d(z,W,U)+u[P]+v[P]|0,S=f(b)+h(b,E,D)|0;G=U,U=W,W=z,z=F+I|0,F=D,D=E,E=b,b=I+S|0}this._a=b+this._a|0,this._b=E+this._b|0,this._c=D+this._c|0,this._d=F+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(E,D,F){return F^E&(D^F)}function h(E,D,F){return E&D|F&(E|D)}function f(E,D){return(E>>>28|D<<4)^(D>>>2|E<<30)^(D>>>7|E<<25)}function g(E,D){return(E>>>14|D<<18)^(E>>>18|D<<14)^(D>>>9|E<<23)}function m(E,D){return(E>>>1|D<<31)^(E>>>8|D<<24)^E>>>7}function p(E,D){return(E>>>1|D<<31)^(E>>>8|D<<24)^(E>>>7|D<<25)}function y(E,D){return(E>>>19|D<<13)^(D>>>29|E<<3)^E>>>6}function v(E,D){return(E>>>19|D<<13)^(D>>>29|E<<3)^(E>>>6|D<<26)}function b(E,D){return E>>>0<D>>>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(E){for(var D=this._w,F=0|this._ah,z=0|this._bh,W=0|this._ch,U=0|this._dh,G=0|this._eh,ee=0|this._fh,P=0|this._gh,I=0|this._hh,S=0|this._al,C=0|this._bl,_=0|this._cl,w=0|this._dl,x=0|this._el,A=0|this._fl,k=0|this._gl,R=0|this._hl,M=0;M<32;M+=2)D[M]=E.readInt32BE(4*M),D[M+1]=E.readInt32BE(4*M+4);for(;M<160;M+=2){var X=D[M-30],K=D[M-30+1],te=m(X,K),$=p(K,X),q=y(X=D[M-4],K=D[M-4+1]),O=v(K,X),L=D[M-14],V=D[M-14+1],J=D[M-32],re=D[M-32+1],ae=$+V|0,j=te+L+b(ae,$)|0;j=(j=j+q+b(ae=ae+O|0,O)|0)+J+b(ae=ae+re|0,re)|0,D[M]=j,D[M+1]=ae}for(var ue=0;ue<160;ue+=2){j=D[ue],ae=D[ue+1];var Q=h(F,z,W),B=h(S,C,_),H=f(F,S),Z=f(S,F),oe=g(G,x),ce=g(x,G),ne=u[ue],se=u[ue+1],fe=d(G,ee,P),de=d(x,A,k),ve=R+ce|0,Ee=I+oe+b(ve,R)|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+B|0,Fe=H+Q+b(Se,Z)|0;I=P,R=k,P=ee,k=A,ee=G,A=x,G=U+Ee+b(x=w+ve|0,w)|0,U=W,w=_,W=z,_=C,z=F,C=S,F=Ee+Fe+b(S=ve+Se|0,ve)|0}this._al=this._al+S|0,this._bl=this._bl+C|0,this._cl=this._cl+_|0,this._dl=this._dl+w|0,this._el=this._el+x|0,this._fl=this._fl+A|0,this._gl=this._gl+k|0,this._hl=this._hl+R|0,this._ah=this._ah+F+b(this._al,S)|0,this._bh=this._bh+z+b(this._bl,C)|0,this._ch=this._ch+W+b(this._cl,_)|0,this._dh=this._dh+U+b(this._dl,w)|0,this._eh=this._eh+G+b(this._el,x)|0,this._fh=this._fh+ee+b(this._fl,A)|0,this._gh=this._gh+P+b(this._gl,k)|0,this._hh=this._hh+I+b(this._hl,R)|0},l.prototype._hash=function(){var E=s.allocUnsafe(64);function D(F,z,W){E.writeInt32BE(F,W),E.writeInt32BE(z,W+4)}return D(this._ah,this._al,0),D(this._bh,this._bl,8),D(this._ch,this._cl,16),D(this._dh,this._dl,24),D(this._eh,this._el,32),D(this._fh,this._fl,40),D(this._gh,this._gl,48),D(this._hh,this._hl,56),E},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=F;var u,c=e("isarray");F.ReadableState=D,e("events").EventEmitter;var l=function(R,M){return R.listeners(M).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(F,d);var E=["error","close","destroy","pause","resume"];function D(R,M){R=R||{};var X=M instanceof(u=u||e("./_stream_duplex"));this.objectMode=!!R.objectMode,X&&(this.objectMode=this.objectMode||!!R.readableObjectMode);var K=R.highWaterMark,te=R.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=R.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,R.encoding&&(y||(y=e("string_decoder/").StringDecoder),this.decoder=new y(R.encoding),this.encoding=R.encoding)}function F(R){if(u=u||e("./_stream_duplex"),!(this instanceof F))return new F(R);this._readableState=new D(R,this),this.readable=!0,R&&(typeof R.read=="function"&&(this._read=R.read),typeof R.destroy=="function"&&(this._destroy=R.destroy)),d.call(this)}function z(R,M,X,K,te){var $,q=R._readableState;return M===null?(q.reading=!1,function(O,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(O)}}(R,q)):(te||($=function(O,L){var V;J=L,h.isBuffer(J)||J instanceof f||typeof L=="string"||L===void 0||O.objectMode||(V=new TypeError("Invalid non-string/buffer chunk"));var J;return V}(q,M)),$?R.emit("error",$):q.objectMode||M&&M.length>0?(typeof M=="string"||q.objectMode||Object.getPrototypeOf(M)===h.prototype||(M=function(O){return h.from(O)}(M)),K?q.endEmitted?R.emit("error",new Error("stream.unshift() after end event")):W(R,q,M,!0):q.ended?R.emit("error",new Error("stream.push() after EOF")):(q.reading=!1,q.decoder&&!X?(M=q.decoder.write(M),q.objectMode||M.length!==0?W(R,q,M,!1):P(R,q)):W(R,q,M,!1))):K||(q.reading=!1)),function(O){return!O.ended&&(O.needReadable||O.length<O.highWaterMark||O.length===0)}(q)}function W(R,M,X,K){M.flowing&&M.length===0&&!M.sync?(R.emit("data",X),R.read(0)):(M.length+=M.objectMode?1:X.length,K?M.buffer.unshift(X):M.buffer.push(X),M.needReadable&&G(R)),P(R,M)}Object.defineProperty(F.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(R){this._readableState&&(this._readableState.destroyed=R)}}),F.prototype.destroy=b.destroy,F.prototype._undestroy=b.undestroy,F.prototype._destroy=function(R,M){this.push(null),M(R)},F.prototype.push=function(R,M){var X,K=this._readableState;return K.objectMode?X=!0:typeof R=="string"&&((M=M||K.defaultEncoding)!==K.encoding&&(R=h.from(R,M),M=""),X=!0),z(this,R,M,!1,X)},F.prototype.unshift=function(R){return z(this,R,null,!0,!1)},F.prototype.isPaused=function(){return this._readableState.flowing===!1},F.prototype.setEncoding=function(R){return y||(y=e("string_decoder/").StringDecoder),this._readableState.decoder=new y(R),this._readableState.encoding=R,this};function U(R,M){return R<=0||M.length===0&&M.ended?0:M.objectMode?1:R!=R?M.flowing&&M.length?M.buffer.head.data.length:M.length:(R>M.highWaterMark&&(M.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}(R)),R<=M.length?R:M.ended?M.length:(M.needReadable=!0,0))}function G(R){var M=R._readableState;M.needReadable=!1,M.emittedReadable||(p("emitReadable",M.flowing),M.emittedReadable=!0,M.sync?s.nextTick(ee,R):ee(R))}function ee(R){p("emit readable"),R.emit("readable"),_(R)}function P(R,M){M.readingMore||(M.readingMore=!0,s.nextTick(I,R,M))}function I(R,M){for(var X=M.length;!M.reading&&!M.flowing&&!M.ended&&M.length<M.highWaterMark&&(p("maybeReadMore read 0"),R.read(0),X!==M.length);)X=M.length;M.readingMore=!1}function S(R){p("readable nexttick read 0"),R.read(0)}function C(R,M){M.reading||(p("resume read 0"),R.read(0)),M.resumeScheduled=!1,M.awaitDrain=0,R.emit("resume"),_(R),M.flowing&&!M.reading&&R.read(0)}function _(R){var M=R._readableState;for(p("flow",M.flowing);M.flowing&&R.read()!==null;);}function w(R,M){return M.length===0?null:(M.objectMode?X=M.buffer.shift():!R||R>=M.length?(X=M.decoder?M.buffer.join(""):M.buffer.length===1?M.buffer.head.data:M.buffer.concat(M.length),M.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(O,L){var V=L.head,J=1,re=V.data;for(O-=re.length;V=V.next;){var ae=V.data,j=O>ae.length?ae.length:O;if(j===ae.length?re+=ae:re+=ae.slice(0,O),(O-=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(O,L){var V=h.allocUnsafe(O),J=L.head,re=1;for(J.data.copy(V),O-=J.data.length;J=J.next;){var ae=J.data,j=O>ae.length?ae.length:O;if(ae.copy(V,V.length-O,0,j),(O-=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}(R,M.buffer,M.decoder),X);var X}function x(R){var M=R._readableState;if(M.length>0)throw new Error('"endReadable()" called on non-empty stream');M.endEmitted||(M.ended=!0,s.nextTick(A,M,R))}function A(R,M){R.endEmitted||R.length!==0||(R.endEmitted=!0,M.readable=!1,M.emit("end"))}function k(R,M){for(var X=0,K=R.length;X<K;X++)if(R[X]===M)return X;return-1}F.prototype.read=function(R){p("read",R),R=parseInt(R,10);var M=this._readableState,X=R;if(R!==0&&(M.emittedReadable=!1),R===0&&M.needReadable&&(M.length>=M.highWaterMark||M.ended))return p("read: emitReadable",M.length,M.ended),M.length===0&&M.ended?x(this):G(this),null;if((R=U(R,M))===0&&M.ended)return M.length===0&&x(this),null;var K,te=M.needReadable;return p("need readable",te),(M.length===0||M.length-R<M.highWaterMark)&&p("length less than watermark",te=!0),M.ended||M.reading?p("reading or ended",te=!1):te&&(p("do read"),M.reading=!0,M.sync=!0,M.length===0&&(M.needReadable=!0),this._read(M.highWaterMark),M.sync=!1,M.reading||(R=U(X,M))),(K=R>0?w(R,M):null)===null?(M.needReadable=!0,R=0):M.length-=R,M.length===0&&(M.ended||(M.needReadable=!0),X!==R&&M.ended&&x(this)),K!==null&&this.emit("data",K),K},F.prototype._read=function(R){this.emit("error",new Error("_read() is not implemented"))},F.prototype.pipe=function(R,M){var X=this,K=this._readableState;switch(K.pipesCount){case 0:K.pipes=R;break;case 1:K.pipes=[K.pipes,R];break;default:K.pipes.push(R)}K.pipesCount+=1,p("pipe count=%d opts=%j",K.pipesCount,M);var te=(!M||M.end!==!1)&&R!==a.stdout&&R!==a.stderr?q:ue;function $(Q,B){p("onunpipe"),Q===X&&B&&B.hasUnpiped===!1&&(B.hasUnpiped=!0,p("cleanup"),R.removeListener("close",ae),R.removeListener("finish",j),R.removeListener("drain",O),R.removeListener("error",re),R.removeListener("unpipe",$),X.removeListener("end",q),X.removeListener("end",ue),X.removeListener("data",J),L=!0,!K.awaitDrain||R._writableState&&!R._writableState.needDrain||O())}function q(){p("onend"),R.end()}K.endEmitted?s.nextTick(te):X.once("end",te),R.on("unpipe",$);var O=function(Q){return function(){var B=Q._readableState;p("pipeOnDrain",B.awaitDrain),B.awaitDrain&&B.awaitDrain--,B.awaitDrain===0&&l(Q,"data")&&(B.flowing=!0,_(Q))}}(X);R.on("drain",O);var L=!1,V=!1;function J(Q){p("ondata"),V=!1,R.write(Q)!==!1||V||((K.pipesCount===1&&K.pipes===R||K.pipesCount>1&&k(K.pipes,R)!==-1)&&!L&&(p("false write response, pause",K.awaitDrain),K.awaitDrain++,V=!0),X.pause())}function re(Q){p("onerror",Q),ue(),R.removeListener("error",re),l(R,"error")===0&&R.emit("error",Q)}function ae(){R.removeListener("finish",j),ue()}function j(){p("onfinish"),R.removeListener("close",ae),ue()}function ue(){p("unpipe"),X.unpipe(R)}return X.on("data",J),function(Q,B,H){if(typeof Q.prependListener=="function")return Q.prependListener(B,H);Q._events&&Q._events[B]?c(Q._events[B])?Q._events[B].unshift(H):Q._events[B]=[H,Q._events[B]]:Q.on(B,H)}(R,"error",re),R.once("close",ae),R.once("finish",j),R.emit("pipe",X),K.flowing||(p("pipe resume"),X.resume()),R},F.prototype.unpipe=function(R){var M=this._readableState,X={hasUnpiped:!1};if(M.pipesCount===0)return this;if(M.pipesCount===1)return R&&R!==M.pipes||(R||(R=M.pipes),M.pipes=null,M.pipesCount=0,M.flowing=!1,R&&R.emit("unpipe",this,X)),this;if(!R){var K=M.pipes,te=M.pipesCount;M.pipes=null,M.pipesCount=0,M.flowing=!1;for(var $=0;$<te;$++)K[$].emit("unpipe",this,{hasUnpiped:!1});return this}var q=k(M.pipes,R);return q===-1||(M.pipes.splice(q,1),M.pipesCount-=1,M.pipesCount===1&&(M.pipes=M.pipes[0]),R.emit("unpipe",this,X)),this},F.prototype.on=function(R,M){var X=d.prototype.on.call(this,R,M);if(R==="data")this._readableState.flowing!==!1&&this.resume();else if(R==="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(S,this))}return X},F.prototype.addListener=F.prototype.on,F.prototype.resume=function(){var R=this._readableState;return R.flowing||(p("resume"),R.flowing=!0,function(M,X){X.resumeScheduled||(X.resumeScheduled=!0,s.nextTick(C,M,X))}(this,R)),this},F.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},F.prototype.wrap=function(R){var M=this,X=this._readableState,K=!1;for(var te in R.on("end",function(){if(p("wrapped end"),X.decoder&&!X.ended){var q=X.decoder.end();q&&q.length&&M.push(q)}M.push(null)}),R.on("data",function(q){p("wrapped data"),X.decoder&&(q=X.decoder.write(q)),X.objectMode&&q==null||(X.objectMode||q&&q.length)&&(M.push(q)||(K=!0,R.pause()))}),R)this[te]===void 0&&typeof R[te]=="function"&&(this[te]=function(q){return function(){return R[q].apply(R,arguments)}}(te));for(var $=0;$<E.length;$++)R.on(E[$],this.emit.bind(this,E[$]));return this._read=function(q){p("wrapped _read",q),K&&(K=!1,R.resume())},this},Object.defineProperty(F.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),F._fromList=w}).call(this)}).call(this,e("_process"),typeof st!="undefined"?st: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(P){var I=this;this.next=null,this.entry=null,this.finish=function(){(function(S,C,_){var w=S.entry;for(S.entry=null;w;){var x=w.callback;C.pendingcb--,x(_),w=w.next}C.corkedRequestsFree.next=S})(I,P)}}n.exports=D;var l,d=!a.browser&&["v0.10","v0.9."].indexOf(a.version.slice(0,5))>-1?s:u.nextTick;D.WritableState=E;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 E(P,I){l=l||e("./_stream_duplex"),P=P||{};var S=I instanceof l;this.objectMode=!!P.objectMode,S&&(this.objectMode=this.objectMode||!!P.writableObjectMode);var C=P.highWaterMark,_=P.writableHighWaterMark,w=this.objectMode?16:16384;this.highWaterMark=C||C===0?C:S&&(_||_===0)?_: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 x=P.decodeStrings===!1;this.decodeStrings=!x,this.defaultEncoding=P.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(A){(function(k,R){var M=k._writableState,X=M.sync,K=M.writecb;if(function($){$.writing=!1,$.writecb=null,$.length-=$.writelen,$.writelen=0}(M),R)(function($,q,O,L,V){--q.pendingcb,O?(u.nextTick(V,L),u.nextTick(ee,$,q),$._writableState.errorEmitted=!0,$.emit("error",L)):(V(L),$._writableState.errorEmitted=!0,$.emit("error",L),ee($,q))})(k,M,X,R,K);else{var te=U(M);te||M.corked||M.bufferProcessing||!M.bufferedRequest||W(k,M),X?d(z,k,M,te,K):z(k,M,te,K)}})(I,A)},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 D(P){if(l=l||e("./_stream_duplex"),!(y.call(D,this)||this instanceof l))return new D(P);this._writableState=new E(P,this),this.writable=!0,P&&(typeof P.write=="function"&&(this._write=P.write),typeof P.writev=="function"&&(this._writev=P.writev),typeof P.destroy=="function"&&(this._destroy=P.destroy),typeof P.final=="function"&&(this._final=P.final)),g.call(this)}function F(P,I,S,C,_,w,x){I.writelen=C,I.writecb=x,I.writing=!0,I.sync=!0,S?P._writev(_,I.onwrite):P._write(_,w,I.onwrite),I.sync=!1}function z(P,I,S,C){S||function(_,w){w.length===0&&w.needDrain&&(w.needDrain=!1,_.emit("drain"))}(P,I),I.pendingcb--,C(),ee(P,I)}function W(P,I){I.bufferProcessing=!0;var S=I.bufferedRequest;if(P._writev&&S&&S.next){var C=I.bufferedRequestCount,_=new Array(C),w=I.corkedRequestsFree;w.entry=S;for(var x=0,A=!0;S;)_[x]=S,S.isBuf||(A=!1),S=S.next,x+=1;_.allBuffers=A,F(P,I,!0,I.length,_,"",w.finish),I.pendingcb++,I.lastBufferedRequest=null,w.next?(I.corkedRequestsFree=w.next,w.next=null):I.corkedRequestsFree=new c(I),I.bufferedRequestCount=0}else{for(;S;){var k=S.chunk,R=S.encoding,M=S.callback;if(F(P,I,!1,I.objectMode?1:k.length,k,R,M),S=S.next,I.bufferedRequestCount--,I.writing)break}S===null&&(I.lastBufferedRequest=null)}I.bufferedRequest=S,I.bufferProcessing=!1}function U(P){return P.ending&&P.length===0&&P.bufferedRequest===null&&!P.finished&&!P.writing}function G(P,I){P._final(function(S){I.pendingcb--,S&&P.emit("error",S),I.prefinished=!0,P.emit("prefinish"),ee(P,I)})}function ee(P,I){var S=U(I);return S&&(function(C,_){_.prefinished||_.finalCalled||(typeof C._final=="function"?(_.pendingcb++,_.finalCalled=!0,u.nextTick(G,C,_)):(_.prefinished=!0,C.emit("prefinish")))}(P,I),I.pendingcb===0&&(I.finished=!0,P.emit("finish"))),S}h.inherits(D,g),E.prototype.getBuffer=function(){for(var P=this.bufferedRequest,I=[];P;)I.push(P),P=P.next;return I},function(){try{Object.defineProperty(E.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(D,Symbol.hasInstance,{value:function(P){return!!y.call(this,P)||this===D&&P&&P._writableState instanceof E}})):y=function(P){return P instanceof this},D.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},D.prototype.write=function(P,I,S){var C,_=this._writableState,w=!1,x=!_.objectMode&&(C=P,m.isBuffer(C)||C instanceof p);return x&&!m.isBuffer(P)&&(P=function(A){return m.from(A)}(P)),typeof I=="function"&&(S=I,I=null),x?I="buffer":I||(I=_.defaultEncoding),typeof S!="function"&&(S=b),_.ended?function(A,k){var R=new Error("write after end");A.emit("error",R),u.nextTick(k,R)}(this,S):(x||function(A,k,R,M){var X=!0,K=!1;return R===null?K=new TypeError("May not write null values to stream"):typeof R=="string"||R===void 0||k.objectMode||(K=new TypeError("Invalid non-string/buffer chunk")),K&&(A.emit("error",K),u.nextTick(M,K),X=!1),X}(this,_,P,S))&&(_.pendingcb++,w=function(A,k,R,M,X,K){if(!R){var te=function(L,V,J){return L.objectMode||L.decodeStrings===!1||typeof V!="string"||(V=m.from(V,J)),V}(k,M,X);M!==te&&(R=!0,X="buffer",M=te)}var $=k.objectMode?1:M.length;k.length+=$;var q=k.length<k.highWaterMark;if(q||(k.needDrain=!0),k.writing||k.corked){var O=k.lastBufferedRequest;k.lastBufferedRequest={chunk:M,encoding:X,isBuf:R,callback:K,next:null},O?O.next=k.lastBufferedRequest:k.bufferedRequest=k.lastBufferedRequest,k.bufferedRequestCount+=1}else F(A,k,!1,$,M,X,K);return q}(this,_,x,P,I,S)),w},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){var P=this._writableState;P.corked&&(P.corked--,P.writing||P.corked||P.bufferProcessing||!P.bufferedRequest||W(this,P))},D.prototype.setDefaultEncoding=function(P){if(typeof P=="string"&&(P=P.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((P+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+P);return this._writableState.defaultEncoding=P,this},Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),D.prototype._write=function(P,I,S){S(new Error("_write() is not implemented"))},D.prototype._writev=null,D.prototype.end=function(P,I,S){var C=this._writableState;typeof P=="function"?(S=P,P=null,I=null):typeof I=="function"&&(S=I,I=null),P!=null&&this.write(P,I),C.corked&&(C.corked=1,this.uncork()),C.ending||function(_,w,x){w.ending=!0,ee(_,w),x&&(w.finished?u.nextTick(x):_.once("finish",x)),w.ended=!0,_.writable=!1}(this,C,S)},Object.defineProperty(D.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(P){this._writableState&&(this._writableState.destroyed=P)}}),D.prototype.destroy=v.destroy,D.prototype._undestroy=v.undestroy,D.prototype._destroy=function(P,I){this.end(),I(P)}}).call(this)}).call(this,e("_process"),typeof st!="undefined"?st: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 st!="undefined"?st: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(_){if(!E(_)){for(var w=[],x=0;x<arguments.length;x++)w.push(l(arguments[x]));return w.join(" ")}x=1;for(var A=arguments,k=A.length,R=String(_).replace(s,function(X){if(X==="%%")return"%";if(x>=k)return X;switch(X){case"%s":return String(A[x++]);case"%d":return Number(A[x++]);case"%j":try{return JSON.stringify(A[x++])}catch{return"[Circular]"}default:return X}}),M=A[x];x<k;M=A[++x])v(M)||!z(M)?R+=" "+M:R+=" "+l(M);return R},i.deprecate=function(_,w){if(D(o.process))return function(){return i.deprecate(_,w).apply(this,arguments)};if(a.noDeprecation===!0)return _;var x=!1;return function(){if(!x){if(a.throwDeprecation)throw new Error(w);a.traceDeprecation?console.trace(w):console.error(w),x=!0}return _.apply(this,arguments)}};var u,c={};function l(_,w){var x={seen:[],stylize:h};return arguments.length>=3&&(x.depth=arguments[2]),arguments.length>=4&&(x.colors=arguments[3]),y(w)?x.showHidden=w:w&&i._extend(x,w),D(x.showHidden)&&(x.showHidden=!1),D(x.depth)&&(x.depth=2),D(x.colors)&&(x.colors=!1),D(x.customInspect)&&(x.customInspect=!0),x.colors&&(x.stylize=d),f(x,_,x.depth)}function d(_,w){var x=l.styles[w];return x?"["+l.colors[x][0]+"m"+_+"["+l.colors[x][1]+"m":_}function h(_,w){return _}function f(_,w,x){if(_.customInspect&&w&&G(w.inspect)&&w.inspect!==i.inspect&&(!w.constructor||w.constructor.prototype!==w)){var A=w.inspect(x,_);return E(A)||(A=f(_,A,x)),A}var k=function(O,L){if(D(L))return O.stylize("undefined","undefined");if(E(L)){var V="'"+JSON.stringify(L).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return O.stylize(V,"string")}if(b(L))return O.stylize(""+L,"number");if(y(L))return O.stylize(""+L,"boolean");if(v(L))return O.stylize("null","null")}(_,w);if(k)return k;var R=Object.keys(w),M=function(O){var L={};return O.forEach(function(V,J){L[V]=!0}),L}(R);if(_.showHidden&&(R=Object.getOwnPropertyNames(w)),U(w)&&(R.indexOf("message")>=0||R.indexOf("description")>=0))return g(w);if(R.length===0){if(G(w)){var X=w.name?": "+w.name:"";return _.stylize("[Function"+X+"]","special")}if(F(w))return _.stylize(RegExp.prototype.toString.call(w),"regexp");if(W(w))return _.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:"")+"]"),F(w)&&(te=" "+RegExp.prototype.toString.call(w)),W(w)&&(te=" "+Date.prototype.toUTCString.call(w)),U(w)&&(te=" "+g(w)),R.length!==0||$&&w.length!=0?x<0?F(w)?_.stylize(RegExp.prototype.toString.call(w),"regexp"):_.stylize("[Object]","special"):(_.seen.push(w),K=$?function(O,L,V,J,re){for(var ae=[],j=0,ue=L.length;j<ue;++j)C(L,String(j))?ae.push(m(O,L,V,J,String(j),!0)):ae.push("");return re.forEach(function(Q){Q.match(/^\d+$/)||ae.push(m(O,L,V,J,Q,!0))}),ae}(_,w,x,M,R):R.map(function(O){return m(_,w,x,M,O,$)}),_.seen.pop(),function(O,L,V){return O.reduce(function(J,re){return re.indexOf(`
|
|
`)>=0,J+re.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?V[0]+(L===""?"":L+`
|
|
`)+" "+O.join(`,
|
|
`)+" "+V[1]:V[0]+L+" "+O.join(", ")+" "+V[1]}(K,te,q)):q[0]+te+q[1]}function g(_){return"["+Error.prototype.toString.call(_)+"]"}function m(_,w,x,A,k,R){var M,X,K;if((K=Object.getOwnPropertyDescriptor(w,k)||{value:w[k]}).get?X=K.set?_.stylize("[Getter/Setter]","special"):_.stylize("[Getter]","special"):K.set&&(X=_.stylize("[Setter]","special")),C(A,k)||(M="["+k+"]"),X||(_.seen.indexOf(K.value)<0?(X=v(x)?f(_,K.value,null):f(_,K.value,x-1)).indexOf(`
|
|
`)>-1&&(X=R?X.split(`
|
|
`).map(function(te){return" "+te}).join(`
|
|
`).substr(2):`
|
|
`+X.split(`
|
|
`).map(function(te){return" "+te}).join(`
|
|
`)):X=_.stylize("[Circular]","special")),D(M)){if(R&&k.match(/^\d+$/))return X;(M=JSON.stringify(""+k)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(M=M.substr(1,M.length-2),M=_.stylize(M,"name")):(M=M.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),M=_.stylize(M,"string"))}return M+": "+X}function p(_){return Array.isArray(_)}function y(_){return typeof _=="boolean"}function v(_){return _===null}function b(_){return typeof _=="number"}function E(_){return typeof _=="string"}function D(_){return _===void 0}function F(_){return z(_)&&ee(_)==="[object RegExp]"}function z(_){return typeof _=="object"&&_!==null}function W(_){return z(_)&&ee(_)==="[object Date]"}function U(_){return z(_)&&(ee(_)==="[object Error]"||_ instanceof Error)}function G(_){return typeof _=="function"}function ee(_){return Object.prototype.toString.call(_)}function P(_){return _<10?"0"+_.toString(10):_.toString(10)}i.debuglog=function(_){if(D(u)&&(u=a.env.NODE_DEBUG||""),_=_.toUpperCase(),!c[_])if(new RegExp("\\b"+_+"\\b","i").test(u)){var w=a.pid;c[_]=function(){var x=i.format.apply(i,arguments);console.error("%s %d: %s",_,w,x)}}else c[_]=function(){};return c[_]},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(_){return _==null},i.isNumber=b,i.isString=E,i.isSymbol=function(_){return typeof _=="symbol"},i.isUndefined=D,i.isRegExp=F,i.isObject=z,i.isDate=W,i.isError=U,i.isFunction=G,i.isPrimitive=function(_){return _===null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"||typeof _=="symbol"||_===void 0},i.isBuffer=e("./support/isBuffer");var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(){var _=new Date,w=[P(_.getHours()),P(_.getMinutes()),P(_.getSeconds())].join(":");return[_.getDate(),I[_.getMonth()],w].join(" ")}function C(_,w){return Object.prototype.hasOwnProperty.call(_,w)}i.log=function(){console.log("%s - %s",S(),i.format.apply(i,arguments))},i.inherits=e("inherits"),i._extend=function(_,w){if(!w||!z(w))return _;for(var x=Object.keys(w),A=x.length;A--;)_[x[A]]=w[x[A]];return _}}).call(this)}).call(this,e("_process"),typeof st!="undefined"?st: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)))<<(E=y)|b>>>32-E,m);var b,E}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 E=0;E<g.length;E+=16){const D=p,F=y,z=v,W=b;p=u(p,y,v,b,g[E],7,-680876936),b=u(b,p,y,v,g[E+1],12,-389564586),v=u(v,b,p,y,g[E+2],17,606105819),y=u(y,v,b,p,g[E+3],22,-1044525330),p=u(p,y,v,b,g[E+4],7,-176418897),b=u(b,p,y,v,g[E+5],12,1200080426),v=u(v,b,p,y,g[E+6],17,-1473231341),y=u(y,v,b,p,g[E+7],22,-45705983),p=u(p,y,v,b,g[E+8],7,1770035416),b=u(b,p,y,v,g[E+9],12,-1958414417),v=u(v,b,p,y,g[E+10],17,-42063),y=u(y,v,b,p,g[E+11],22,-1990404162),p=u(p,y,v,b,g[E+12],7,1804603682),b=u(b,p,y,v,g[E+13],12,-40341101),v=u(v,b,p,y,g[E+14],17,-1502002290),y=u(y,v,b,p,g[E+15],22,1236535329),p=c(p,y,v,b,g[E+1],5,-165796510),b=c(b,p,y,v,g[E+6],9,-1069501632),v=c(v,b,p,y,g[E+11],14,643717713),y=c(y,v,b,p,g[E],20,-373897302),p=c(p,y,v,b,g[E+5],5,-701558691),b=c(b,p,y,v,g[E+10],9,38016083),v=c(v,b,p,y,g[E+15],14,-660478335),y=c(y,v,b,p,g[E+4],20,-405537848),p=c(p,y,v,b,g[E+9],5,568446438),b=c(b,p,y,v,g[E+14],9,-1019803690),v=c(v,b,p,y,g[E+3],14,-187363961),y=c(y,v,b,p,g[E+8],20,1163531501),p=c(p,y,v,b,g[E+13],5,-1444681467),b=c(b,p,y,v,g[E+2],9,-51403784),v=c(v,b,p,y,g[E+7],14,1735328473),y=c(y,v,b,p,g[E+12],20,-1926607734),p=l(p,y,v,b,g[E+5],4,-378558),b=l(b,p,y,v,g[E+8],11,-2022574463),v=l(v,b,p,y,g[E+11],16,1839030562),y=l(y,v,b,p,g[E+14],23,-35309556),p=l(p,y,v,b,g[E+1],4,-1530992060),b=l(b,p,y,v,g[E+4],11,1272893353),v=l(v,b,p,y,g[E+7],16,-155497632),y=l(y,v,b,p,g[E+10],23,-1094730640),p=l(p,y,v,b,g[E+13],4,681279174),b=l(b,p,y,v,g[E],11,-358537222),v=l(v,b,p,y,g[E+3],16,-722521979),y=l(y,v,b,p,g[E+6],23,76029189),p=l(p,y,v,b,g[E+9],4,-640364487),b=l(b,p,y,v,g[E+12],11,-421815835),v=l(v,b,p,y,g[E+15],16,530742520),y=l(y,v,b,p,g[E+2],23,-995338651),p=d(p,y,v,b,g[E],6,-198630844),b=d(b,p,y,v,g[E+7],10,1126891415),v=d(v,b,p,y,g[E+14],15,-1416354905),y=d(y,v,b,p,g[E+5],21,-57434055),p=d(p,y,v,b,g[E+12],6,1700485571),b=d(b,p,y,v,g[E+3],10,-1894986606),v=d(v,b,p,y,g[E+10],15,-1051523),y=d(y,v,b,p,g[E+1],21,-2054922799),p=d(p,y,v,b,g[E+8],6,1873313359),b=d(b,p,y,v,g[E+15],10,-30611744),v=d(v,b,p,y,g[E+6],15,-1560198380),y=d(y,v,b,p,g[E+13],21,1309151649),p=d(p,y,v,b,g[E+4],6,-145523070),b=d(b,p,y,v,g[E+11],10,-1120210379),v=d(v,b,p,y,g[E+2],15,718787259),y=d(y,v,b,p,g[E+9],21,-343485551),p=o(p,D),y=o(y,F),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 D=0;D<16;++D)m[D]=f[g][D];for(let D=16;D<80;++D)m[D]=o(m[D-3]^m[D-8]^m[D-14]^m[D-16],1);let p=l[0],y=l[1],v=l[2],b=l[3],E=l[4];for(let D=0;D<80;++D){const F=Math.floor(D/20),z=o(p,5)+a(F,y,v,b)+E+c[F]+m[D]>>>0;E=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]+E>>>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 E=f.msecs!==void 0?f.msecs:Date.now(),D=f.nsecs!==void 0?f.nsecs:d+1;const F=E-l+(D-d)/1e4;if(F<0&&f.clockseq===void 0&&(b=b+1&16383),(F<0||E>l)&&f.nsecs===void 0&&(D=0),D>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=E,d=D,c=b,E+=122192928e5;const z=(1e4*(268435455&E)+D)%4294967296;y[p++]=z>>>24&255,y[p++]=z>>>16&255,y[p++]=z>>>8&255,y[p++]=255&z;const W=E/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 E=[];for(let D=0;D<b.length;++D)E.push(b.charCodeAt(D));return E}(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)})})(Ub);var fX=Zv(Ub.exports),Bb={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:{}},xF=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")},EF=xF,AF=Array.prototype.concat,TF=Array.prototype.slice,jb=Lb.exports=function(t){for(var e=[],n=0,i=t.length;n<i;n++){var a=t[n];EF(a)?e=AF.call(e,TF.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=Bb.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 SF(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=SF(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 DF(){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 CF(r){const t=DF(),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 OF(r,t){return function(e){return t(r(e))}}function IF(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=OF(Ch[t[i].parent][i],n),i=t[i].parent;return n.conversion=e,n}var kF=function(r){const t=CF(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]=IF(o,t))}return e};const r1=$b,RF=kF,Du={},NF=Object.keys(r1);function FF(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 MF(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}NF.forEach(r=>{Du[r]={},Object.defineProperty(Du[r],"channels",{value:r1[r].channels}),Object.defineProperty(Du[r],"labels",{value:r1[r].labels});const t=RF(r);Object.keys(t).forEach(n=>{const i=t[n];Du[r][n]=MF(i),Du[r][n].raw=FF(i)})});var UF=Du;const Cu=Bb.exports,Hi=UF,Vb=["keyword","gray","hex"],n1={};for(const r of Object.keys(Hi))n1[[...Hi[r].labels].sort().join("")]=r;const Oh={};function Un(r,t){if(!(this instanceof Un))return new Un(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 Un)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)}Un.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 Un([...this.color.map(PF(r)),this.valpha],this.model)},alpha(r){return r!==void 0?new Un([...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 Un(r):Hi[this.model].keyword(this.color)},hex(r){return r!==void 0?new Un(r):Cu.to.hex(this.rgb().round().color)},hexa(r){if(r!==void 0)return new Un(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 Un.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 Un.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];Un.prototype[r]=function(...e){return this.model===r?new Un(this):e.length>0?new Un(e,r):new Un([...LF(Hi[this.model][r].raw(this.color)),this.valpha],r)},Un[r]=function(...e){let n=e[0];return typeof n=="number"&&(n=i1(e,t)),new Un(n,r)}}function BF(r,t){return Number(r.toFixed(t))}function PF(r){return function(t){return BF(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 LF(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 jF=Un,hX=jF,WF=Object.defineProperty,zF=Object.defineProperties,HF=Object.getOwnPropertyDescriptors,qb=Object.getOwnPropertySymbols,$F=Object.prototype.hasOwnProperty,VF=Object.prototype.propertyIsEnumerable,a1=(r,t,e)=>t in r?WF(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,sr=(r,t)=>{for(var e in t||(t={}))$F.call(t,e)&&a1(r,e,t[e]);if(qb)for(var e of qb(t))VF.call(t,e)&&a1(r,e,t[e]);return r},es=(r,t)=>zF(r,HF(t)),Ue=(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){Ue(this,"rootKey"),this.rootKey=t}}const qF=Object.seal({});class Me extends kh{constructor(t){super(t);Ue(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:qF}}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");Ue(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);Ue(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 GF(r){console&&console.warn&&console.warn(r)}var Kb=Number.isNaN||function(t){return t!==t};function Ur(){Ur.init.call(this)}s1.exports=Ur;s1.exports.once=YF;Ur.EventEmitter=Ur;Ur.prototype._events=void 0;Ur.prototype._eventsCount=0;Ur.prototype._maxListeners=void 0;var Zb=10;function Nh(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty(Ur,"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}});Ur.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};Ur.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?Ur.defaultMaxListeners:r._maxListeners}Ur.prototype.getMaxListeners=function(){return Yb(this)};Ur.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(Nh(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,GF(s)}return r}Ur.prototype.addListener=function(t,e){return Jb(this,t,e,!1)};Ur.prototype.on=Ur.prototype.addListener;Ur.prototype.prependListener=function(t,e){return Jb(this,t,e,!0)};function XF(){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=XF.bind(n);return i.listener=e,n.wrapFn=i,i}Ur.prototype.once=function(t,e){return Nh(e),this.on(t,Qb(this,t,e)),this};Ur.prototype.prependOnceListener=function(t,e){return Nh(e),this.prependListener(t,Qb(this,t,e)),this};Ur.prototype.removeListener=function(t,e){var n,i,a,o,s;if(Nh(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():KF(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||e)}return this};Ur.prototype.off=Ur.prototype.removeListener;Ur.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?ZF(i):rw(i,i.length)}Ur.prototype.listeners=function(t){return ew(this,t,!0)};Ur.prototype.rawListeners=function(t){return ew(this,t,!1)};Ur.listenerCount=function(r,t){return typeof r.listenerCount=="function"?r.listenerCount(t):tw.call(r,t)};Ur.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}Ur.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 KF(r,t){for(;t+1<r.length;t++)r[t]=r[t+1];r.pop()}function ZF(r){for(var t=new Array(r.length),e=0;e<t.length;++e)t[e]=r[e].listener||r[e];return t}function YF(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"&&JF(r,i,{once:!0})})}function JF(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 QF(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var iw={exports:{}},fn=iw.exports={},Ua,Ba;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"?Ua=setTimeout:Ua=l1}catch{Ua=l1}try{typeof clearTimeout=="function"?Ba=clearTimeout:Ba=f1}catch{Ba=f1}})();function aw(r){if(Ua===setTimeout)return setTimeout(r,0);if((Ua===l1||!Ua)&&setTimeout)return Ua=setTimeout,setTimeout(r,0);try{return Ua(r,0)}catch{try{return Ua.call(null,r,0)}catch{return Ua.call(this,r,0)}}}function eM(r){if(Ba===clearTimeout)return clearTimeout(r);if((Ba===f1||!Ba)&&clearTimeout)return Ba=clearTimeout,clearTimeout(r);try{return Ba(r)}catch{try{return Ba.call(null,r)}catch{return Ba.call(this,r)}}}var yo=[],Iu=!1,Ns,Fh=-1;function tM(){!Iu||!Ns||(Iu=!1,Ns.length?yo=Ns.concat(yo):Fh=-1,yo.length&&ow())}function ow(){if(!Iu){var r=aw(tM);Iu=!0;for(var t=yo.length;t;){for(Ns=yo,yo=[];++Fh<t;)Ns&&Ns[Fh].run();Fh=-1,t=yo.length}Ns=null,Iu=!1,eM(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 rM=iw.exports;const tr=QF(rM);var h1,uw;function cw(){return uw||(uw=1,h1=u1.EventEmitter),h1}var d1={},rl={},lw;function nM(){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,E=y>0?p-4:p,D;for(D=0;D<E;D+=4)g=t[f.charCodeAt(D)]<<18|t[f.charCodeAt(D+1)]<<12|t[f.charCodeAt(D+2)]<<6|t[f.charCodeAt(D+3)],v[b++]=g>>16&255,v[b++]=g>>8&255,v[b++]=g&255;return y===2&&(g=t[f.charCodeAt(D)]<<2|t[f.charCodeAt(D+1)]>>4,v[b++]=g&255),y===1&&(g=t[f.charCodeAt(D)]<<10|t[f.charCodeAt(D+1)]<<4|t[f.charCodeAt(D+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,E=m-p;b<E;b+=v)y.push(d(f,b,b+v>E?E: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 iM(){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 Uh(){return hw||(hw=1,function(r){var t=nM(),e=iM(),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),B={foo:function(){return 42}};return Object.setPrototypeOf(B,Uint8Array.prototype),Object.setPrototypeOf(Q,B),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 B=new Uint8Array(Q);return Object.setPrototypeOf(B,s.prototype),B}function s(Q,B,H){if(typeof Q=="number"){if(typeof B=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(Q)}return u(Q,B,H)}s.poolSize=8192;function u(Q,B,H){if(typeof Q=="string")return h(Q,B);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,B,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,B,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"),B,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,B,H){return u(Q,B,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,B,H){return c(Q),Q<=0?o(Q):B!==void 0?typeof H=="string"?o(Q).fill(B,H):o(Q).fill(B):o(Q)}s.alloc=function(Q,B,H){return l(Q,B,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,B){if((typeof B!="string"||B==="")&&(B="utf8"),!s.isEncoding(B))throw new TypeError("Unknown encoding: "+B);var H=b(Q,B)|0,Z=o(H),oe=Z.write(Q,B);return oe!==H&&(Z=Z.slice(0,oe)),Z}function f(Q){for(var B=Q.length<0?0:y(Q.length)|0,H=o(B),Z=0;Z<B;Z+=1)H[Z]=Q[Z]&255;return H}function g(Q){if(ae(Q,Uint8Array)){var B=new Uint8Array(Q);return m(B.buffer,B.byteOffset,B.byteLength)}return f(Q)}function m(Q,B,H){if(B<0||Q.byteLength<B)throw new RangeError('"offset" is outside of buffer bounds');if(Q.byteLength<B+(H||0))throw new RangeError('"length" is outside of buffer bounds');var Z;return B===void 0&&H===void 0?Z=new Uint8Array(Q):H===void 0?Z=new Uint8Array(Q,B):Z=new Uint8Array(Q,B,H),Object.setPrototypeOf(Z,s.prototype),Z}function p(Q){if(s.isBuffer(Q)){var B=y(Q.length)|0,H=o(B);return H.length===0||Q.copy(H,0,0,B),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(B){return B!=null&&B._isBuffer===!0&&B!==s.prototype},s.compare=function(B,H){if(ae(B,Uint8Array)&&(B=s.from(B,B.offset,B.byteLength)),ae(H,Uint8Array)&&(H=s.from(H,H.offset,H.byteLength)),!s.isBuffer(B)||!s.isBuffer(H))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(B===H)return 0;for(var Z=B.length,oe=H.length,ce=0,ne=Math.min(Z,oe);ce<ne;++ce)if(B[ce]!==H[ce]){Z=B[ce],oe=H[ce];break}return Z<oe?-1:oe<Z?1:0},s.isEncoding=function(B){switch(String(B).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(B,H){if(!Array.isArray(B))throw new TypeError('"list" argument must be an Array of Buffers');if(B.length===0)return s.alloc(0);var Z;if(H===void 0)for(H=0,Z=0;Z<B.length;++Z)H+=B[Z].length;var oe=s.allocUnsafe(H),ce=0;for(Z=0;Z<B.length;++Z){var ne=B[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,B){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(B){case"ascii":case"latin1":case"binary":return H;case"utf8":case"utf-8":return O(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:O(Q).length;B=(""+B).toLowerCase(),oe=!0}}s.byteLength=b;function E(Q,B,H){var Z=!1;if((B===void 0||B<0)&&(B=0),B>this.length||((H===void 0||H>this.length)&&(H=this.length),H<=0)||(H>>>=0,B>>>=0,H<=B))return"";for(Q||(Q="utf8");;)switch(Q){case"hex":return A(this,B,H);case"utf8":case"utf-8":return S(this,B,H);case"ascii":return w(this,B,H);case"latin1":case"binary":return x(this,B,H);case"base64":return I(this,B,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,B,H);default:if(Z)throw new TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),Z=!0}}s.prototype._isBuffer=!0;function D(Q,B,H){var Z=Q[B];Q[B]=Q[H],Q[H]=Z}s.prototype.swap16=function(){var B=this.length;if(B%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var H=0;H<B;H+=2)D(this,H,H+1);return this},s.prototype.swap32=function(){var B=this.length;if(B%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var H=0;H<B;H+=4)D(this,H,H+3),D(this,H+1,H+2);return this},s.prototype.swap64=function(){var B=this.length;if(B%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var H=0;H<B;H+=8)D(this,H,H+7),D(this,H+1,H+6),D(this,H+2,H+5),D(this,H+3,H+4);return this},s.prototype.toString=function(){var B=this.length;return B===0?"":arguments.length===0?S(this,0,B):E.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(B){if(!s.isBuffer(B))throw new TypeError("Argument must be a Buffer");return this===B?!0:s.compare(this,B)===0},s.prototype.inspect=function(){var B="",H=r.INSPECT_MAX_BYTES;return B=this.toString("hex",0,H).replace(/(.{2})/g,"$1 ").trim(),this.length>H&&(B+=" ... "),"<Buffer "+B+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(B,H,Z,oe,ce){if(ae(B,Uint8Array)&&(B=s.from(B,B.offset,B.byteLength)),!s.isBuffer(B))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof B);if(H===void 0&&(H=0),Z===void 0&&(Z=B?B.length:0),oe===void 0&&(oe=0),ce===void 0&&(ce=this.length),H<0||Z>B.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===B)return 0;for(var ne=ce-oe,se=Z-H,fe=Math.min(ne,se),de=this.slice(oe,ce),ve=B.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 F(Q,B,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 B=="string"&&(B=s.from(B,Z)),s.isBuffer(B))return B.length===0?-1:z(Q,B,H,Z,oe);if(typeof B=="number")return B=B&255,typeof Uint8Array.prototype.indexOf=="function"?oe?Uint8Array.prototype.indexOf.call(Q,B,H):Uint8Array.prototype.lastIndexOf.call(Q,B,H):z(Q,[B],H,Z,oe);throw new TypeError("val must be string, number or Buffer")}function z(Q,B,H,Z,oe){var ce=1,ne=Q.length,se=B.length;if(Z!==void 0&&(Z=String(Z).toLowerCase(),Z==="ucs2"||Z==="ucs-2"||Z==="utf16le"||Z==="utf-16le")){if(Q.length<2||B.length<2)return-1;ce=2,ne/=2,se/=2,H/=2}function fe(Fe,He){return ce===1?Fe[He]:Fe.readUInt16BE(He*ce)}var de;if(oe){var ve=-1;for(de=H;de<ne;de++)if(fe(Q,de)===fe(B,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(B,Se)){Ee=!1;break}if(Ee)return de}return-1}s.prototype.includes=function(B,H,Z){return this.indexOf(B,H,Z)!==-1},s.prototype.indexOf=function(B,H,Z){return F(this,B,H,Z,!0)},s.prototype.lastIndexOf=function(B,H,Z){return F(this,B,H,Z,!1)};function W(Q,B,H,Z){H=Number(H)||0;var oe=Q.length-H;Z?(Z=Number(Z),Z>oe&&(Z=oe)):Z=oe;var ce=B.length;Z>ce/2&&(Z=ce/2);for(var ne=0;ne<Z;++ne){var se=parseInt(B.substr(ne*2,2),16);if(j(se))return ne;Q[H+ne]=se}return ne}function U(Q,B,H,Z){return re(O(B,Q.length-H),Q,H,Z)}function G(Q,B,H,Z){return re(L(B),Q,H,Z)}function ee(Q,B,H,Z){return re(J(B),Q,H,Z)}function P(Q,B,H,Z){return re(V(B,Q.length-H),Q,H,Z)}s.prototype.write=function(B,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),B.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,B,H,Z);case"utf8":case"utf-8":return U(this,B,H,Z);case"ascii":case"latin1":case"binary":return G(this,B,H,Z);case"base64":return ee(this,B,H,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,B,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 I(Q,B,H){return B===0&&H===Q.length?t.fromByteArray(Q):t.fromByteArray(Q.slice(B,H))}function S(Q,B,H){H=Math.min(Q.length,H);for(var Z=[],oe=B;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 _(Z)}var C=4096;function _(Q){var B=Q.length;if(B<=C)return String.fromCharCode.apply(String,Q);for(var H="",Z=0;Z<B;)H+=String.fromCharCode.apply(String,Q.slice(Z,Z+=C));return H}function w(Q,B,H){var Z="";H=Math.min(Q.length,H);for(var oe=B;oe<H;++oe)Z+=String.fromCharCode(Q[oe]&127);return Z}function x(Q,B,H){var Z="";H=Math.min(Q.length,H);for(var oe=B;oe<H;++oe)Z+=String.fromCharCode(Q[oe]);return Z}function A(Q,B,H){var Z=Q.length;(!B||B<0)&&(B=0),(!H||H<0||H>Z)&&(H=Z);for(var oe="",ce=B;ce<H;++ce)oe+=ue[Q[ce]];return oe}function k(Q,B,H){for(var Z=Q.slice(B,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(B,H){var Z=this.length;B=~~B,H=H===void 0?Z:~~H,B<0?(B+=Z,B<0&&(B=0)):B>Z&&(B=Z),H<0?(H+=Z,H<0&&(H=0)):H>Z&&(H=Z),H<B&&(H=B);var oe=this.subarray(B,H);return Object.setPrototypeOf(oe,s.prototype),oe};function R(Q,B,H){if(Q%1!=0||Q<0)throw new RangeError("offset is not uint");if(Q+B>H)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(B,H,Z){B=B>>>0,H=H>>>0,Z||R(B,H,this.length);for(var oe=this[B],ce=1,ne=0;++ne<H&&(ce*=256);)oe+=this[B+ne]*ce;return oe},s.prototype.readUintBE=s.prototype.readUIntBE=function(B,H,Z){B=B>>>0,H=H>>>0,Z||R(B,H,this.length);for(var oe=this[B+--H],ce=1;H>0&&(ce*=256);)oe+=this[B+--H]*ce;return oe},s.prototype.readUint8=s.prototype.readUInt8=function(B,H){return B=B>>>0,H||R(B,1,this.length),this[B]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(B,H){return B=B>>>0,H||R(B,2,this.length),this[B]|this[B+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(B,H){return B=B>>>0,H||R(B,2,this.length),this[B]<<8|this[B+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(B,H){return B=B>>>0,H||R(B,4,this.length),(this[B]|this[B+1]<<8|this[B+2]<<16)+this[B+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(B,H){return B=B>>>0,H||R(B,4,this.length),this[B]*16777216+(this[B+1]<<16|this[B+2]<<8|this[B+3])},s.prototype.readIntLE=function(B,H,Z){B=B>>>0,H=H>>>0,Z||R(B,H,this.length);for(var oe=this[B],ce=1,ne=0;++ne<H&&(ce*=256);)oe+=this[B+ne]*ce;return ce*=128,oe>=ce&&(oe-=Math.pow(2,8*H)),oe},s.prototype.readIntBE=function(B,H,Z){B=B>>>0,H=H>>>0,Z||R(B,H,this.length);for(var oe=H,ce=1,ne=this[B+--oe];oe>0&&(ce*=256);)ne+=this[B+--oe]*ce;return ce*=128,ne>=ce&&(ne-=Math.pow(2,8*H)),ne},s.prototype.readInt8=function(B,H){return B=B>>>0,H||R(B,1,this.length),this[B]&128?(255-this[B]+1)*-1:this[B]},s.prototype.readInt16LE=function(B,H){B=B>>>0,H||R(B,2,this.length);var Z=this[B]|this[B+1]<<8;return Z&32768?Z|4294901760:Z},s.prototype.readInt16BE=function(B,H){B=B>>>0,H||R(B,2,this.length);var Z=this[B+1]|this[B]<<8;return Z&32768?Z|4294901760:Z},s.prototype.readInt32LE=function(B,H){return B=B>>>0,H||R(B,4,this.length),this[B]|this[B+1]<<8|this[B+2]<<16|this[B+3]<<24},s.prototype.readInt32BE=function(B,H){return B=B>>>0,H||R(B,4,this.length),this[B]<<24|this[B+1]<<16|this[B+2]<<8|this[B+3]},s.prototype.readFloatLE=function(B,H){return B=B>>>0,H||R(B,4,this.length),e.read(this,B,!0,23,4)},s.prototype.readFloatBE=function(B,H){return B=B>>>0,H||R(B,4,this.length),e.read(this,B,!1,23,4)},s.prototype.readDoubleLE=function(B,H){return B=B>>>0,H||R(B,8,this.length),e.read(this,B,!0,52,8)},s.prototype.readDoubleBE=function(B,H){return B=B>>>0,H||R(B,8,this.length),e.read(this,B,!1,52,8)};function M(Q,B,H,Z,oe,ce){if(!s.isBuffer(Q))throw new TypeError('"buffer" argument must be a Buffer instance');if(B>oe||B<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(B,H,Z,oe){if(B=+B,H=H>>>0,Z=Z>>>0,!oe){var ce=Math.pow(2,8*Z)-1;M(this,B,H,Z,ce,0)}var ne=1,se=0;for(this[H]=B&255;++se<Z&&(ne*=256);)this[H+se]=B/ne&255;return H+Z},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(B,H,Z,oe){if(B=+B,H=H>>>0,Z=Z>>>0,!oe){var ce=Math.pow(2,8*Z)-1;M(this,B,H,Z,ce,0)}var ne=Z-1,se=1;for(this[H+ne]=B&255;--ne>=0&&(se*=256);)this[H+ne]=B/se&255;return H+Z},s.prototype.writeUint8=s.prototype.writeUInt8=function(B,H,Z){return B=+B,H=H>>>0,Z||M(this,B,H,1,255,0),this[H]=B&255,H+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(B,H,Z){return B=+B,H=H>>>0,Z||M(this,B,H,2,65535,0),this[H]=B&255,this[H+1]=B>>>8,H+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(B,H,Z){return B=+B,H=H>>>0,Z||M(this,B,H,2,65535,0),this[H]=B>>>8,this[H+1]=B&255,H+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(B,H,Z){return B=+B,H=H>>>0,Z||M(this,B,H,4,4294967295,0),this[H+3]=B>>>24,this[H+2]=B>>>16,this[H+1]=B>>>8,this[H]=B&255,H+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(B,H,Z){return B=+B,H=H>>>0,Z||M(this,B,H,4,4294967295,0),this[H]=B>>>24,this[H+1]=B>>>16,this[H+2]=B>>>8,this[H+3]=B&255,H+4},s.prototype.writeIntLE=function(B,H,Z,oe){if(B=+B,H=H>>>0,!oe){var ce=Math.pow(2,8*Z-1);M(this,B,H,Z,ce-1,-ce)}var ne=0,se=1,fe=0;for(this[H]=B&255;++ne<Z&&(se*=256);)B<0&&fe===0&&this[H+ne-1]!==0&&(fe=1),this[H+ne]=(B/se>>0)-fe&255;return H+Z},s.prototype.writeIntBE=function(B,H,Z,oe){if(B=+B,H=H>>>0,!oe){var ce=Math.pow(2,8*Z-1);M(this,B,H,Z,ce-1,-ce)}var ne=Z-1,se=1,fe=0;for(this[H+ne]=B&255;--ne>=0&&(se*=256);)B<0&&fe===0&&this[H+ne+1]!==0&&(fe=1),this[H+ne]=(B/se>>0)-fe&255;return H+Z},s.prototype.writeInt8=function(B,H,Z){return B=+B,H=H>>>0,Z||M(this,B,H,1,127,-128),B<0&&(B=255+B+1),this[H]=B&255,H+1},s.prototype.writeInt16LE=function(B,H,Z){return B=+B,H=H>>>0,Z||M(this,B,H,2,32767,-32768),this[H]=B&255,this[H+1]=B>>>8,H+2},s.prototype.writeInt16BE=function(B,H,Z){return B=+B,H=H>>>0,Z||M(this,B,H,2,32767,-32768),this[H]=B>>>8,this[H+1]=B&255,H+2},s.prototype.writeInt32LE=function(B,H,Z){return B=+B,H=H>>>0,Z||M(this,B,H,4,2147483647,-2147483648),this[H]=B&255,this[H+1]=B>>>8,this[H+2]=B>>>16,this[H+3]=B>>>24,H+4},s.prototype.writeInt32BE=function(B,H,Z){return B=+B,H=H>>>0,Z||M(this,B,H,4,2147483647,-2147483648),B<0&&(B=4294967295+B+1),this[H]=B>>>24,this[H+1]=B>>>16,this[H+2]=B>>>8,this[H+3]=B&255,H+4};function X(Q,B,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,B,H,Z,oe){return B=+B,H=H>>>0,oe||X(Q,B,H,4),e.write(Q,B,H,Z,23,4),H+4}s.prototype.writeFloatLE=function(B,H,Z){return K(this,B,H,!0,Z)},s.prototype.writeFloatBE=function(B,H,Z){return K(this,B,H,!1,Z)};function te(Q,B,H,Z,oe){return B=+B,H=H>>>0,oe||X(Q,B,H,8),e.write(Q,B,H,Z,52,8),H+8}s.prototype.writeDoubleLE=function(B,H,Z){return te(this,B,H,!0,Z)},s.prototype.writeDoubleBE=function(B,H,Z){return te(this,B,H,!1,Z)},s.prototype.copy=function(B,H,Z,oe){if(!s.isBuffer(B))throw new TypeError("argument should be a Buffer");if(Z||(Z=0),!oe&&oe!==0&&(oe=this.length),H>=B.length&&(H=B.length),H||(H=0),oe>0&&oe<Z&&(oe=Z),oe===Z||B.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),B.length-H<oe-Z&&(oe=B.length-H+Z);var ce=oe-Z;return this===B&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(H,Z,oe):Uint8Array.prototype.set.call(B,this.subarray(Z,oe),H),ce},s.prototype.fill=function(B,H,Z,oe){if(typeof B=="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(B.length===1){var ce=B.charCodeAt(0);(oe==="utf8"&&ce<128||oe==="latin1")&&(B=ce)}}else typeof B=="number"?B=B&255:typeof B=="boolean"&&(B=Number(B));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,B||(B=0);var ne;if(typeof B=="number")for(ne=H;ne<Z;++ne)this[ne]=B;else{var se=s.isBuffer(B)?B:s.from(B,oe),fe=se.length;if(fe===0)throw new TypeError('The value "'+B+'" 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 O(Q,B){B=B||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){(B-=3)>-1&&ce.push(239,191,189);continue}else if(ne+1===Z){(B-=3)>-1&&ce.push(239,191,189);continue}oe=H;continue}if(H<56320){(B-=3)>-1&&ce.push(239,191,189),oe=H;continue}H=(oe-55296<<10|H-56320)+65536}else oe&&(B-=3)>-1&&ce.push(239,191,189);if(oe=null,H<128){if((B-=1)<0)break;ce.push(H)}else if(H<2048){if((B-=2)<0)break;ce.push(H>>6|192,H&63|128)}else if(H<65536){if((B-=3)<0)break;ce.push(H>>12|224,H>>6&63|128,H&63|128)}else if(H<1114112){if((B-=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 B=[],H=0;H<Q.length;++H)B.push(Q.charCodeAt(H)&255);return B}function V(Q,B){for(var H,Z,oe,ce=[],ne=0;ne<Q.length&&!((B-=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,B,H,Z){for(var oe=0;oe<Z&&!(oe+H>=B.length||oe>=Q.length);++oe)B[oe+H]=Q[oe];return oe}function ae(Q,B){return Q instanceof B||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===B.name}function j(Q){return Q!==Q}var ue=function(){for(var Q="0123456789abcdef",B=new Array(256),H=0;H<16;++H)for(var Z=H*16,oe=0;oe<16;++oe)B[Z+oe]=Q[H]+Q[oe];return B}()}(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 aM(){return gw||(gw=1,b1=Error),b1}var w1,vw;function oM(){return vw||(vw=1,w1=EvalError),w1}var _1,yw;function sM(){return yw||(yw=1,_1=RangeError),_1}var x1,bw;function uM(){return bw||(bw=1,x1=ReferenceError),x1}var E1,ww;function _w(){return ww||(ww=1,E1=SyntaxError),E1}var A1,xw;function Bh(){return xw||(xw=1,A1=TypeError),A1}var T1,Ew;function cM(){return Ew||(Ew=1,T1=URIError),T1}var S1,Aw;function lM(){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 fM(){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 hM(){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=hM();return O1=Function.prototype.bind||r,O1}var k1,Cw;function dM(){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=aM(),e=oM(),n=sM(),i=uM(),a=_w(),o=Bh(),s=cM(),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=lM()(),g=fM()(),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 E=function w(x){var A;if(x==="%AsyncFunction%")A=c("async function () {}");else if(x==="%GeneratorFunction%")A=c("function* () {}");else if(x==="%AsyncGeneratorFunction%")A=c("async function* () {}");else if(x==="%AsyncGenerator%"){var k=w("%AsyncGeneratorFunction%");k&&(A=k.prototype)}else if(x==="%AsyncIteratorPrototype%"){var R=w("%AsyncGenerator%");R&&m&&(A=m(R.prototype))}return v[x]=A,A},D={__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"]},F=I1(),z=dM(),W=F.call(Function.call,Array.prototype.concat),U=F.call(Function.apply,Array.prototype.splice),G=F.call(Function.call,String.prototype.replace),ee=F.call(Function.call,String.prototype.slice),P=F.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,C=function(x){var A=ee(x,0,1),k=ee(x,-1);if(A==="%"&&k!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(k==="%"&&A!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var R=[];return G(x,I,function(M,X,K,te){R[R.length]=K?G(te,S,"$1"):X||M}),R},_=function(x,A){var k=x,R;if(z(D,k)&&(R=D[k],k="%"+R[0]+"%"),z(v,k)){var M=v[k];if(M===p&&(M=E(k)),typeof M=="undefined"&&!A)throw new o("intrinsic "+x+" exists, but is not available. Please file an issue!");return{alias:R,name:k,value:M}}throw new a("intrinsic "+x+" does not exist!")};return R1=function(x,A){if(typeof x!="string"||x.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof A!="boolean")throw new o('"allowMissing" argument must be a boolean');if(P(/^%?[^%]*%?$/,x)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var k=C(x),R=k.length>0?k[0]:"",M=_("%"+R+"%",A),X=M.name,K=M.value,te=!1,$=M.alias;$&&(R=$[0],U(k,W([0,1],$)));for(var q=1,O=!0;q<k.length;q+=1){var L=k[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"||!O)&&(te=!0),R+="."+L,X="%"+R+"%",z(v,X))K=v[X];else if(K!=null){if(!(L in K)){if(!A)throw new o("base intrinsic for "+x+" exists, but the property is not available.");return}if(l&&q+1>=k.length){var re=l(K,L);O=!!re,O&&"get"in re&&!("originalValue"in re.get)?K=re.get:K=K[L]}else O=z(K,L),K=K[L];O&&!te&&(v[X]=K)}}return K},R1}var N1={exports:{}},F1,Iw;function M1(){if(Iw)return F1;Iw=1;var r=nl(),t=r("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return F1=t,F1}var U1,kw;function B1(){if(kw)return U1;kw=1;var r=nl(),t=r("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return U1=t,U1}var P1,Rw;function pM(){if(Rw)return P1;Rw=1;var r=M1(),t=_w(),e=Bh(),n=B1();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,Nw;function mM(){if(Nw)return L1;Nw=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,Fw;function gM(){if(Fw)return j1;Fw=1;var r=nl(),t=pM(),e=mM()(),n=B1(),i=Bh(),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 Uw(){return Mw||(Mw=1,function(r){var t=I1(),e=nl(),n=gM(),i=Bh(),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}(N1)),N1.exports}var W1,Bw;function Pw(){if(Bw)return W1;Bw=1;var r=nl(),t=Uw(),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 vM(){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 yM(){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 bM(){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 E=r.call(b);return i.test(E)}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 E=s.call(b);return(E===d||E===h||E===f||E===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(E){if(E!==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 E=s.call(b);return E!==c&&E!==l&&!/^\[object HTML/.test(E)?!1:o(b)},$1}var V1,zw;function wM(){if(zw)return V1;zw=1;var r=bM(),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 _M(){return Hw||(Hw=1,q1=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),q1}var G1,$w;function xM(){if($w)return G1;$w=1;var r=_M(),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=wM(),t=xM(),e=Uw(),n=Pw(),i=B1(),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 EM(){if(Gw)return K1;Gw=1;var r=qw();return K1=function(e){return!!r(e)},K1}var Xw;function AM(){return Xw||(Xw=1,function(r){var t=vM(),e=yM(),n=qw(),i=EM();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 E(Z){return n(Z)==="Uint32Array"}r.isUint32Array=E;function D(Z){return n(Z)==="Int8Array"}r.isInt8Array=D;function F(Z){return n(Z)==="Int16Array"}r.isInt16Array=F;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 P(Z){return u(Z)==="[object Map]"}P.working=typeof Map!="undefined"&&P(new Map);function I(Z){return typeof Map=="undefined"?!1:P.working?P(Z):Z instanceof Map}r.isMap=I;function S(Z){return u(Z)==="[object Set]"}S.working=typeof Set!="undefined"&&S(new Set);function C(Z){return typeof Set=="undefined"?!1:S.working?S(Z):Z instanceof Set}r.isSet=C;function _(Z){return u(Z)==="[object WeakMap]"}_.working=typeof WeakMap!="undefined"&&_(new WeakMap);function w(Z){return typeof WeakMap=="undefined"?!1:_.working?_(Z):Z instanceof WeakMap}r.isWeakMap=w;function x(Z){return u(Z)==="[object WeakSet]"}x.working=typeof WeakSet!="undefined"&&x(new WeakSet);function A(Z){return x(Z)}r.isWeakSet=A;function k(Z){return u(Z)==="[object ArrayBuffer]"}k.working=typeof ArrayBuffer!="undefined"&&k(new ArrayBuffer);function R(Z){return typeof ArrayBuffer=="undefined"?!1:k.working?k(Z):Z instanceof ArrayBuffer}r.isArrayBuffer=R;function M(Z){return u(Z)==="[object DataView]"}M.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&M(new DataView(new ArrayBuffer(1),0,1));function X(Z){return typeof DataView=="undefined"?!1:M.working?M(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 O(Z){return u(Z)==="[object Map Iterator]"}r.isMapIterator=O;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 B(Z){return re(Z)||ae(Z)||j(Z)||ue(Z)||Q(Z)}r.isBoxedPrimitive=B;function H(Z){return typeof Uint8Array!="undefined"&&(R(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 TM(){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(M){if(!D(M)){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(M).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}}),O=te[K];K<$;O=te[++K])v(O)||!U(O)?q+=" "+O:q+=" "+o(O);return q},r.deprecate=function(M,X){if(typeof tr!="undefined"&&tr.noDeprecation===!0)return M;if(typeof tr=="undefined")return function(){return r.deprecate(M,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 M.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(M){if(M=M.toUpperCase(),!n[M])if(i.test(M)){var X=tr.pid;n[M]=function(){var K=r.format.apply(r,arguments);console.error("%s %d: %s",M,X,K)}}else n[M]=function(){};return n[M]};function o(M,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,M,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(M,X){var K=o.styles[X];return K?"["+o.colors[K][0]+"m"+M+"["+o.colors[K][1]+"m":M}function u(M,X){return M}function c(M){var X={};return M.forEach(function(K,te){X[K]=!0}),X}function l(M,X,K){if(M.customInspect&&X&&P(X.inspect)&&X.inspect!==r.inspect&&!(X.constructor&&X.constructor.prototype===X)){var te=X.inspect(K,M);return D(te)||(te=l(M,te,K)),te}var $=d(M,X);if($)return $;var q=Object.keys(X),O=c(q);if(M.showHidden&&(q=Object.getOwnPropertyNames(X)),ee(X)&&(q.indexOf("message")>=0||q.indexOf("description")>=0))return h(X);if(q.length===0){if(P(X)){var L=X.name?": "+X.name:"";return M.stylize("[Function"+L+"]","special")}if(W(X))return M.stylize(RegExp.prototype.toString.call(X),"regexp");if(G(X))return M.stylize(Date.prototype.toString.call(X),"date");if(ee(X))return h(X)}var V="",J=!1,re=["{","}"];if(p(X)&&(J=!0,re=["[","]"]),P(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)?M.stylize(RegExp.prototype.toString.call(X),"regexp"):M.stylize("[Object]","special");M.seen.push(X);var j;return J?j=f(M,X,K,O,q):j=q.map(function(ue){return g(M,X,K,O,ue,J)}),M.seen.pop(),m(j,V,re)}function d(M,X){if(z(X))return M.stylize("undefined","undefined");if(D(X)){var K="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return M.stylize(K,"string")}if(E(X))return M.stylize(""+X,"number");if(y(X))return M.stylize(""+X,"boolean");if(v(X))return M.stylize("null","null")}function h(M){return"["+Error.prototype.toString.call(M)+"]"}function f(M,X,K,te,$){for(var q=[],O=0,L=X.length;O<L;++O)x(X,String(O))?q.push(g(M,X,K,te,String(O),!0)):q.push("");return $.forEach(function(V){V.match(/^\d+$/)||q.push(g(M,X,K,te,V,!0))}),q}function g(M,X,K,te,$,q){var O,L,V;if(V=Object.getOwnPropertyDescriptor(X,$)||{value:X[$]},V.get?V.set?L=M.stylize("[Getter/Setter]","special"):L=M.stylize("[Getter]","special"):V.set&&(L=M.stylize("[Setter]","special")),x(te,$)||(O="["+$+"]"),L||(M.seen.indexOf(V.value)<0?(v(K)?L=l(M,V.value,null):L=l(M,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=M.stylize("[Circular]","special")),z(O)){if(q&&$.match(/^\d+$/))return L;O=JSON.stringify(""+$),O.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(O=O.slice(1,-1),O=M.stylize(O,"name")):(O=O.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),O=M.stylize(O,"string"))}return O+": "+L}function m(M,X,K){var te=M.reduce(function($,q){return q.indexOf(`
|
|
`)>=0,$+q.replace(/\u001b\[\d\d?m/g,"").length+1},0);return te>60?K[0]+(X===""?"":X+`
|
|
`)+" "+M.join(`,
|
|
`)+" "+K[1]:K[0]+X+" "+M.join(", ")+" "+K[1]}r.types=AM();function p(M){return Array.isArray(M)}r.isArray=p;function y(M){return typeof M=="boolean"}r.isBoolean=y;function v(M){return M===null}r.isNull=v;function b(M){return M==null}r.isNullOrUndefined=b;function E(M){return typeof M=="number"}r.isNumber=E;function D(M){return typeof M=="string"}r.isString=D;function F(M){return typeof M=="symbol"}r.isSymbol=F;function z(M){return M===void 0}r.isUndefined=z;function W(M){return U(M)&&S(M)==="[object RegExp]"}r.isRegExp=W,r.types.isRegExp=W;function U(M){return typeof M=="object"&&M!==null}r.isObject=U;function G(M){return U(M)&&S(M)==="[object Date]"}r.isDate=G,r.types.isDate=G;function ee(M){return U(M)&&(S(M)==="[object Error]"||M instanceof Error)}r.isError=ee,r.types.isNativeError=ee;function P(M){return typeof M=="function"}r.isFunction=P;function I(M){return M===null||typeof M=="boolean"||typeof M=="number"||typeof M=="string"||typeof M=="symbol"||typeof M=="undefined"}r.isPrimitive=I,r.isBuffer=TM();function S(M){return Object.prototype.toString.call(M)}function C(M){return M<10?"0"+M.toString(10):M.toString(10)}var _=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function w(){var M=new Date,X=[C(M.getHours()),C(M.getMinutes()),C(M.getSeconds())].join(":");return[M.getDate(),_[M.getMonth()],X].join(" ")}r.log=function(){console.log("%s - %s",w(),r.format.apply(r,arguments))},r.inherits=ts,r._extend=function(M,X){if(!X||!U(X))return M;for(var K=Object.keys(X),te=K.length;te--;)M[K[te]]=X[K[te]];return M};function x(M,X){return Object.prototype.hasOwnProperty.call(M,X)}var A=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(A&&X[A]){var K=X[A];if(typeof K!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(K,A,{value:K,enumerable:!1,writable:!1,configurable:!0}),K}function K(){for(var te,$,q=new Promise(function(V,J){te=V,$=J}),O=[],L=0;L<arguments.length;L++)O.push(arguments[L]);O.push(function(V,J){V?$(V):te(J)});try{X.apply(this,O)}catch(V){$(V)}return q}return Object.setPrototypeOf(K,Object.getPrototypeOf(X)),A&&Object.defineProperty(K,A,{value:K,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(K,t(X))},r.promisify.custom=A;function k(M,X){if(!M){var K=new Error("Promise was rejected with a falsy value");K.reason=M,M=K}return X(M)}function R(M){if(typeof M!="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,O=function(){return $.apply(q,arguments)};M.apply(this,K).then(function(L){tr.nextTick(O.bind(null,null,L))},function(L){tr.nextTick(k.bind(null,L,O))})}return Object.setPrototypeOf(X,Object.getPrototypeOf(M)),Object.defineProperties(X,t(M)),X}r.callbackify=R}(p1)),p1}var Y1,Jw;function SM(){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=Uh(),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 e_(){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={},t_;function ku(){if(t_)return Q1;t_=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,r_;function n_(){if(r_)return em;r_=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,i_;function DM(){if(i_)return tm;i_=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,a_;function o_(){if(a_)return rm;a_=1,rm=W;function r($){var q=this;this.next=null,this.entry=null,this.finish=function(){te(q,$)}}var t;W.WritableState=F;var e={deprecate:DM()},n=cw(),i=Uh().Buffer,a=Ma.Uint8Array||function(){};function o($){return i.from($)}function s($){return i.isBuffer($)||$ instanceof a}var u=e_(),c=n_(),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,E=u.errorOrDestroy;ts(W,n);function D(){}function F($,q,O){t=t||Ru(),$=$||{},typeof O!="boolean"&&(O=q instanceof t),this.objectMode=!!$.objectMode,O&&(this.objectMode=this.objectMode||!!$.writableObjectMode),this.highWaterMark=l(this,$,"writableHighWaterMark",O),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){_(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)}F.prototype.getBuffer=function(){for(var q=this.bufferedRequest,O=[];q;)O.push(q),q=q.next;return O},function(){try{Object.defineProperty(F.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 F}})):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 F($,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(){E(this,new m)};function U($,q){var O=new v;E($,O),tr.nextTick(q,O)}function G($,q,O,L){var V;return O===null?V=new y:typeof O!="string"&&!q.objectMode&&(V=new h("chunk",["string","Buffer"],O)),V?(E($,V),tr.nextTick(L,V),!1):!0}W.prototype.write=function($,q,O){var L=this._writableState,V=!1,J=!L.objectMode&&s($);return J&&!i.isBuffer($)&&($=o($)),typeof q=="function"&&(O=q,q=null),J?q="buffer":q||(q=L.defaultEncoding),typeof O!="function"&&(O=D),L.ending?U(this,O):(J||G(this,L,$,O))&&(L.pendingcb++,V=P(this,L,J,$,q,O)),V},W.prototype.cork=function(){this._writableState.corked++},W.prototype.uncork=function(){var $=this._writableState;$.corked&&($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest&&A(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,O){return!$.objectMode&&$.decodeStrings!==!1&&typeof q=="string"&&(q=i.from(q,O)),q}Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function P($,q,O,L,V,J){if(!O){var re=ee(q,L,V);L!==re&&(O=!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:O,callback:J,next:null},ue?ue.next=q.lastBufferedRequest:q.bufferedRequest=q.lastBufferedRequest,q.bufferedRequestCount+=1}else I($,q,!1,ae,L,V,J);return j}function I($,q,O,L,V,J,re){q.writelen=L,q.writecb=re,q.writing=!0,q.sync=!0,q.destroyed?q.onwrite(new p("write")):O?$._writev(V,q.onwrite):$._write(V,J,q.onwrite),q.sync=!1}function S($,q,O,L,V){--q.pendingcb,O?(tr.nextTick(V,L),tr.nextTick(X,$,q),$._writableState.errorEmitted=!0,E($,L)):(V(L),$._writableState.errorEmitted=!0,E($,L),X($,q))}function C($){$.writing=!1,$.writecb=null,$.length-=$.writelen,$.writelen=0}function _($,q){var O=$._writableState,L=O.sync,V=O.writecb;if(typeof V!="function")throw new g;if(C(O),q)S($,O,L,q,V);else{var J=k(O)||$.destroyed;!J&&!O.corked&&!O.bufferProcessing&&O.bufferedRequest&&A($,O),L?tr.nextTick(w,$,O,J,V):w($,O,J,V)}}function w($,q,O,L){O||x($,q),q.pendingcb--,L(),X($,q)}function x($,q){q.length===0&&q.needDrain&&(q.needDrain=!1,$.emit("drain"))}function A($,q){q.bufferProcessing=!0;var O=q.bufferedRequest;if($._writev&&O&&O.next){var L=q.bufferedRequestCount,V=new Array(L),J=q.corkedRequestsFree;J.entry=O;for(var re=0,ae=!0;O;)V[re]=O,O.isBuf||(ae=!1),O=O.next,re+=1;V.allBuffers=ae,I($,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(;O;){var j=O.chunk,ue=O.encoding,Q=O.callback,B=q.objectMode?1:j.length;if(I($,q,!1,B,j,ue,Q),O=O.next,q.bufferedRequestCount--,q.writing)break}O===null&&(q.lastBufferedRequest=null)}q.bufferedRequest=O,q.bufferProcessing=!1}W.prototype._write=function($,q,O){O(new f("_write()"))},W.prototype._writev=null,W.prototype.end=function($,q,O){var L=this._writableState;return typeof $=="function"?(O=$,$=null,q=null):typeof q=="function"&&(O=q,q=null),$!=null&&this.write($,q),L.corked&&(L.corked=1,this.uncork()),L.ending||K(this,L,O),this},Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function k($){return $.ending&&$.length===0&&$.bufferedRequest===null&&!$.finished&&!$.writing}function R($,q){$._final(function(O){q.pendingcb--,O&&E($,O),q.prefinished=!0,$.emit("prefinish"),X($,q)})}function M($,q){!q.prefinished&&!q.finalCalled&&(typeof $._final=="function"&&!q.destroyed?(q.pendingcb++,q.finalCalled=!0,tr.nextTick(R,$,q)):(q.prefinished=!0,$.emit("prefinish")))}function X($,q){var O=k(q);if(O&&(M($,q),q.pendingcb===0&&(q.finished=!0,$.emit("finish"),q.autoDestroy))){var L=$._readableState;(!L||L.autoDestroy&&L.endEmitted)&&$.destroy()}return O}function K($,q,O){q.ending=!0,X($,q),O&&(q.finished?tr.nextTick(O):$.once("finish",O)),q.ended=!0,$.writable=!1}function te($,q,O){var L=$.entry;for($.entry=null;L;){var V=L.callback;q.pendingcb--,V(O),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,s_;function Ru(){if(s_)return nm;s_=1;var r=Object.keys||function(c){var l=[];for(var d in c)l.push(d);return l};nm=o;var t=p_(),e=o_();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:{}},u_;function CM(){return u_||(u_=1,function(r,t){var e=Uh(),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 c_;function am(){if(c_)return im;c_=1;var r=CM().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 E=v.length-1;if(E<b)return 0;var D=a(v[E]);return D>=0?(D>0&&(y.lastNeed=D-1),D):--E<b||D===-2?0:(D=a(v[E]),D>=0?(D>0&&(y.lastNeed=D-2),D):--E<b||D===-2?0:(D=a(v[E]),D>=0?(D>0&&(D===2?D=0:y.lastNeed=D-3),D):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 E=y.length-(b-this.lastNeed);return y.copy(this.lastChar,0,E),y.toString("utf8",v,E)}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 E=b.charCodeAt(b.length-1);if(E>=55296&&E<=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,l_;function sm(){if(l_)return om;l_=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,f_;function OM(){if(f_)return um;f_=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,E){y.then(function(){if(v[o]){b(l(void 0,!0));return}v[u](b,E)},E)}}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 E=this[s],D;if(E)D=new Promise(f(E,this));else{var F=this[c].read();if(F!==null)return Promise.resolve(l(F,!1));D=new Promise(this[u])}return this[s]=D,D}},t(r,Symbol.asyncIterator,function(){return this}),t(r,"return",function(){var v=this;return new Promise(function(b,E){v[c].destroy(null,function(D){if(D){E(D);return}b(l(void 0,!0))})})}),r),g),p=function(v){var b,E=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(F,z){var W=E[c].read();W?(E[s]=null,E[n]=null,E[i]=null,F(l(W,!1))):(E[n]=F,E[i]=z)},writable:!0}),b));return E[s]=null,e(v,function(D){if(D&&D.code!=="ERR_STREAM_PREMATURE_CLOSE"){var F=E[i];F!==null&&(E[s]=null,E[n]=null,E[i]=null,F(D)),E[a]=D;return}var z=E[n];z!==null&&(E[s]=null,E[n]=null,E[i]=null,z(l(void 0,!0))),E[o]=!0}),v.on("readable",h.bind(null,E)),E};return um=p,um}var cm,h_;function IM(){return h_||(h_=1,cm=function(){throw new Error("Readable.from is not available in the browser")}),cm}var lm,d_;function p_(){if(d_)return lm;d_=1,lm=U;var r;U.ReadableState=W,u1.EventEmitter;var t=function(re,ae){return re.listeners(ae).length},e=cw(),n=Uh().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=SM(),l=e_(),d=n_(),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,E;ts(U,e);var D=l.errorOrDestroy,F=["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,_(J,Q);else{var B;if(ue||(B=P(Q,re)),B)D(J,B);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?D(J,new y):ee(J,Q,re,!0);else if(Q.ended)D(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):A(J,Q)):ee(J,Q,re,!1)}else j||(Q.reading=!1,A(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)),A(J,re)}function P(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 I=1073741824;function S(J){return J>=I?J=I:(J--,J|=J>>>1,J|=J>>>2,J|=J>>>4,J|=J>>>8,J|=J>>>16,J++),J}function C(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=S(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?O(this):w(this),null;if(J=C(J,re),J===0&&re.ended)return re.length===0&&O(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=C(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&&O(this)),ue!==null&&this.emit("data",ue),ue};function _(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,x(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(x,J))}function x(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 A(J,re){re.readingMore||(re.readingMore=!0,tr.nextTick(k,J,re))}function k(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){D(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",B);function B(Ee,Se){u("onunpipe"),Ee===ae&&Se&&Se.hasUnpiped===!1&&(Se.hasUnpiped=!0,ce())}function H(){u("onend"),J.end()}var Z=R(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",B),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&&D(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 R(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 B=V(re.pipes,J);return B===-1?this:(re.pipes.splice(B,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(M,this),ae},U.prototype.removeAllListeners=function(J){var re=e.prototype.removeAllListeners.apply(this,arguments);return(J==="readable"||J===void 0)&&tr.nextTick(M,this),re};function M(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 B=ae.decoder.end();B&&B.length&&re.push(B)}re.push(null)}),J.on("data",function(B){if(u("wrapped data"),ae.decoder&&(B=ae.decoder.write(B)),!(ae.objectMode&&B==null)&&!(!ae.objectMode&&(!B||!B.length))){var H=re.push(B);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<F.length;Q++)J.on(F[Q],this.emit.bind(this,F[Q]));return this._read=function(B){u("wrapped _read",B),j&&(j=!1,J.resume())},this},typeof Symbol=="function"&&(U.prototype[Symbol.asyncIterator]=function(){return b===void 0&&(b=OM()),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 O(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 E===void 0&&(E=IM()),E(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,m_;function g_(){if(m_)return fm;m_=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,v_;function kM(){if(v_)return hm;v_=1,hm=t;var r=g_();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,y_;function RM(){if(y_)return dm;y_=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 E=b<f.length-1,D=b>0;return s(v,E,D,function(F){p||(p=F),F&&y.forEach(u),!E&&(y.forEach(u),m(p))})});return f.reduce(c)}return dm=d,dm}var pm=na,mm=u1.EventEmitter,NM=ts;NM(na,mm);na.Readable=p_();na.Writable=o_();na.Duplex=Ru();na.Transform=g_();na.PassThrough=kM();na.finished=sm();na.pipeline=RM();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,O){return new n(q,O)},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,O){if(!(this instanceof n))return new n(q,O);var L=this;a(L),L.q=L.c="",L.bufferCheckPosition=t.MAX_BUFFER_LENGTH,L.opt=O||{},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 O(){}O.prototype=q;var L=new O;return L}),Object.keys||(Object.keys=function(q){var O=[];for(var L in q)q.hasOwnProperty(L)&&O.push(L);return O});function i(q){for(var O=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>O)switch(e[V]){case"textNode":I(q);break;case"cdata":P(q,"oncdata",q.cdata),q.cdata="";break;case"script":P(q,"onscript",q.script),q.script="";break;default:C(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 O=0,L=e.length;O<L;O++)q[e[O]]=""}function o(q){I(q),q.cdata!==""&&(P(q,"oncdata",q.cdata),q.cdata=""),q.script!==""&&(P(q,"onscript",q.script),q.script="")}n.prototype={end:function(){_(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,O){return new l(q,O)}function l(q,O){if(!(this instanceof l))return new l(q,O);s.apply(this),this._parser=new n(q,O),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 O=am().StringDecoder;this._decoder=new O("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,O){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,O)};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 E(q){return q===" "||q===`
|
|
`||q==="\r"||q===" "}function D(q){return q==='"'||q==="'"}function F(q){return q===">"||E(q)}function z(q,O){return q.test(O)}function W(q,O){return!z(q,O)}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 O=t.ENTITIES[q],L=typeof O=="number"?String.fromCharCode(O):O;t.ENTITIES[q]=L});for(var G in t.STATE)t.STATE[t.STATE[G]]=G;U=t.STATE;function ee(q,O,L){q[O]&&q[O](L)}function P(q,O,L){q.textNode&&I(q),ee(q,O,L)}function I(q){q.textNode=S(q.opt,q.textNode),q.textNode&&ee(q,"ontext",q.textNode),q.textNode=""}function S(q,O){return q.trim&&(O=O.trim()),q.normalize&&(O=O.replace(/\s+/g," ")),O}function C(q,O){return I(q),q.trackPosition&&(O+=`
|
|
Line: `+q.line+`
|
|
Column: `+q.column+`
|
|
Char: `+q.c),O=new Error(O),q.error=O,ee(q,"onerror",O),q}function _(q){return q.sawRoot&&!q.closedRoot&&w(q,"Unclosed root tag"),q.state!==U.BEGIN&&q.state!==U.BEGIN_WHITESPACE&&q.state!==U.TEXT&&C(q,"Unexpected end"),I(q),q.c="",q.closed=!0,ee(q,"onend"),n.call(q,q.strict,q.opt),q}function w(q,O){if(typeof q!="object"||!(q instanceof n))throw new Error("bad call to strictFail");q.strict&&C(q,O)}function x(q){q.strict||(q.tagName=q.tagName[q.looseCase]());var O=q.tags[q.tags.length-1]||q,L=q.tag={name:q.tagName,attributes:{}};q.opt.xmlns&&(L.ns=O.ns),q.attribList.length=0,P(q,"onopentagstart",L)}function A(q,O){var L=q.indexOf(":"),V=L<0?["",q]:q.split(":"),J=V[0],re=V[1];return O&&q==="xmlns"&&(J="xmlns",re=""),{prefix:J,local:re}}function k(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 O=A(q.attribName,!0),L=O.prefix,V=O.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,P(q,"onattribute",{name:q.attribName,value:q.attribValue});q.attribName=q.attribValue=""}function R(q,O){if(q.opt.xmlns){var L=q.tag,V=A(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){P(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],B=A(ue,!0),H=B.prefix,Z=B.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,P(q,"onattribute",ce)}q.attribList.length=0}q.tag.isSelfClosing=!!O,q.sawRoot=!0,q.tags.push(q.tag),P(q,"onopentag",q.tag),O||(!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 M(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}P(q,"onscript",q.script),q.script=""}var O=q.tags.length,L=q.tagName;q.strict||(L=L[q.looseCase]());for(var V=L;O--;){var J=q.tags[O];if(J.name!==V)w(q,"Unexpected close tag");else break}if(O<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-- >O;){var ae=q.tag=q.tags.pop();q.tagName=q.tag.name,P(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(B){var H=ae.ns[B];P(q,"onclosenamespace",{prefix:B,uri:H})})}O===0&&(q.closedRoot=!0),q.tagName=q.attribValue=q.attribName="",q.attribList.length=0,q.state=U.TEXT}function X(q){var O=q.entity,L=O.toLowerCase(),V,J="";return q.ENTITIES[O]?q.ENTITIES[O]:q.ENTITIES[L]?q.ENTITIES[L]:(O=L,O.charAt(0)==="#"&&(O.charAt(1)==="x"?(O=O.slice(2),V=parseInt(O,16),J=V.toString(16)):(O=O.slice(1),V=parseInt(O,10),J=V.toString(10))),O=O.replace(/^0+/,""),isNaN(V)||J.toLowerCase()!==O?(w(q,"Invalid character entity"),"&"+q.entity+";"):String.fromCodePoint(V))}function K(q,O){O==="<"?(q.state=U.OPEN_WAKA,q.startTagPosition=q.position):E(O)||(w(q,"Non-whitespace before first tag."),q.textNode=O,q.state=U.TEXT)}function te(q,O){var L="";return O<q.length&&(L=q.charAt(O)),L}function $(q){var O=this;if(this.error)throw this.error;if(O.closed)return C(O,"Cannot write after close. Assign an onready handler.");if(q===null)return _(O);typeof q=="object"&&(q=q.toString());for(var L=0,V="";V=te(q,L++),O.c=V,!!V;)switch(O.trackPosition&&(O.position++,V===`
|
|
`?(O.line++,O.column=0):O.column++),O.state){case U.BEGIN:if(O.state=U.BEGIN_WHITESPACE,V==="\uFEFF")continue;K(O,V);continue;case U.BEGIN_WHITESPACE:K(O,V);continue;case U.TEXT:if(O.sawRoot&&!O.closedRoot){for(var J=L-1;V&&V!=="<"&&V!=="&";)V=te(q,L++),V&&O.trackPosition&&(O.position++,V===`
|
|
`?(O.line++,O.column=0):O.column++);O.textNode+=q.substring(J,L-1)}V==="<"&&!(O.sawRoot&&O.closedRoot&&!O.strict)?(O.state=U.OPEN_WAKA,O.startTagPosition=O.position):(!E(V)&&(!O.sawRoot||O.closedRoot)&&w(O,"Text data outside of root node."),V==="&"?O.state=U.TEXT_ENTITY:O.textNode+=V);continue;case U.SCRIPT:V==="<"?O.state=U.SCRIPT_ENDING:O.script+=V;continue;case U.SCRIPT_ENDING:V==="/"?O.state=U.CLOSE_TAG:(O.script+="<"+V,O.state=U.SCRIPT);continue;case U.OPEN_WAKA:if(V==="!")O.state=U.SGML_DECL,O.sgmlDecl="";else if(!E(V))if(z(p,V))O.state=U.OPEN_TAG,O.tagName=V;else if(V==="/")O.state=U.CLOSE_TAG,O.tagName="";else if(V==="?")O.state=U.PROC_INST,O.procInstName=O.procInstBody="";else{if(w(O,"Unencoded <"),O.startTagPosition+1<O.position){var re=O.position-O.startTagPosition;V=new Array(re).join(" ")+V}O.textNode+="<"+V,O.state=U.TEXT}continue;case U.SGML_DECL:(O.sgmlDecl+V).toUpperCase()===d?(P(O,"onopencdata"),O.state=U.CDATA,O.sgmlDecl="",O.cdata=""):O.sgmlDecl+V==="--"?(O.state=U.COMMENT,O.comment="",O.sgmlDecl=""):(O.sgmlDecl+V).toUpperCase()===h?(O.state=U.DOCTYPE,(O.doctype||O.sawRoot)&&w(O,"Inappropriately located doctype declaration"),O.doctype="",O.sgmlDecl=""):V===">"?(P(O,"onsgmldeclaration",O.sgmlDecl),O.sgmlDecl="",O.state=U.TEXT):(D(V)&&(O.state=U.SGML_DECL_QUOTED),O.sgmlDecl+=V);continue;case U.SGML_DECL_QUOTED:V===O.q&&(O.state=U.SGML_DECL,O.q=""),O.sgmlDecl+=V;continue;case U.DOCTYPE:V===">"?(O.state=U.TEXT,P(O,"ondoctype",O.doctype),O.doctype=!0):(O.doctype+=V,V==="["?O.state=U.DOCTYPE_DTD:D(V)&&(O.state=U.DOCTYPE_QUOTED,O.q=V));continue;case U.DOCTYPE_QUOTED:O.doctype+=V,V===O.q&&(O.q="",O.state=U.DOCTYPE);continue;case U.DOCTYPE_DTD:O.doctype+=V,V==="]"?O.state=U.DOCTYPE:D(V)&&(O.state=U.DOCTYPE_DTD_QUOTED,O.q=V);continue;case U.DOCTYPE_DTD_QUOTED:O.doctype+=V,V===O.q&&(O.state=U.DOCTYPE_DTD,O.q="");continue;case U.COMMENT:V==="-"?O.state=U.COMMENT_ENDING:O.comment+=V;continue;case U.COMMENT_ENDING:V==="-"?(O.state=U.COMMENT_ENDED,O.comment=S(O.opt,O.comment),O.comment&&P(O,"oncomment",O.comment),O.comment=""):(O.comment+="-"+V,O.state=U.COMMENT);continue;case U.COMMENT_ENDED:V!==">"?(w(O,"Malformed comment"),O.comment+="--"+V,O.state=U.COMMENT):O.state=U.TEXT;continue;case U.CDATA:V==="]"?O.state=U.CDATA_ENDING:O.cdata+=V;continue;case U.CDATA_ENDING:V==="]"?O.state=U.CDATA_ENDING_2:(O.cdata+="]"+V,O.state=U.CDATA);continue;case U.CDATA_ENDING_2:V===">"?(O.cdata&&P(O,"oncdata",O.cdata),P(O,"onclosecdata"),O.cdata="",O.state=U.TEXT):V==="]"?O.cdata+="]":(O.cdata+="]]"+V,O.state=U.CDATA);continue;case U.PROC_INST:V==="?"?O.state=U.PROC_INST_ENDING:E(V)?O.state=U.PROC_INST_BODY:O.procInstName+=V;continue;case U.PROC_INST_BODY:if(!O.procInstBody&&E(V))continue;V==="?"?O.state=U.PROC_INST_ENDING:O.procInstBody+=V;continue;case U.PROC_INST_ENDING:V===">"?(P(O,"onprocessinginstruction",{name:O.procInstName,body:O.procInstBody}),O.procInstName=O.procInstBody="",O.state=U.TEXT):(O.procInstBody+="?"+V,O.state=U.PROC_INST_BODY);continue;case U.OPEN_TAG:z(y,V)?O.tagName+=V:(x(O),V===">"?R(O):V==="/"?O.state=U.OPEN_TAG_SLASH:(E(V)||w(O,"Invalid character in tag name"),O.state=U.ATTRIB));continue;case U.OPEN_TAG_SLASH:V===">"?(R(O,!0),M(O)):(w(O,"Forward-slash in opening tag not followed by >"),O.state=U.ATTRIB);continue;case U.ATTRIB:if(E(V))continue;V===">"?R(O):V==="/"?O.state=U.OPEN_TAG_SLASH:z(p,V)?(O.attribName=V,O.attribValue="",O.state=U.ATTRIB_NAME):w(O,"Invalid attribute name");continue;case U.ATTRIB_NAME:V==="="?O.state=U.ATTRIB_VALUE:V===">"?(w(O,"Attribute without value"),O.attribValue=O.attribName,k(O),R(O)):E(V)?O.state=U.ATTRIB_NAME_SAW_WHITE:z(y,V)?O.attribName+=V:w(O,"Invalid attribute name");continue;case U.ATTRIB_NAME_SAW_WHITE:if(V==="=")O.state=U.ATTRIB_VALUE;else{if(E(V))continue;w(O,"Attribute without value"),O.tag.attributes[O.attribName]="",O.attribValue="",P(O,"onattribute",{name:O.attribName,value:""}),O.attribName="",V===">"?R(O):z(p,V)?(O.attribName=V,O.state=U.ATTRIB_NAME):(w(O,"Invalid attribute name"),O.state=U.ATTRIB)}continue;case U.ATTRIB_VALUE:if(E(V))continue;D(V)?(O.q=V,O.state=U.ATTRIB_VALUE_QUOTED):(w(O,"Unquoted attribute value"),O.state=U.ATTRIB_VALUE_UNQUOTED,O.attribValue=V);continue;case U.ATTRIB_VALUE_QUOTED:if(V!==O.q){V==="&"?O.state=U.ATTRIB_VALUE_ENTITY_Q:O.attribValue+=V;continue}k(O),O.q="",O.state=U.ATTRIB_VALUE_CLOSED;continue;case U.ATTRIB_VALUE_CLOSED:E(V)?O.state=U.ATTRIB:V===">"?R(O):V==="/"?O.state=U.OPEN_TAG_SLASH:z(p,V)?(w(O,"No whitespace between attributes"),O.attribName=V,O.attribValue="",O.state=U.ATTRIB_NAME):w(O,"Invalid attribute name");continue;case U.ATTRIB_VALUE_UNQUOTED:if(!F(V)){V==="&"?O.state=U.ATTRIB_VALUE_ENTITY_U:O.attribValue+=V;continue}k(O),V===">"?R(O):O.state=U.ATTRIB;continue;case U.CLOSE_TAG:if(O.tagName)V===">"?M(O):z(y,V)?O.tagName+=V:O.script?(O.script+="</"+O.tagName,O.tagName="",O.state=U.SCRIPT):(E(V)||w(O,"Invalid tagname in closing tag"),O.state=U.CLOSE_TAG_SAW_WHITE);else{if(E(V))continue;W(p,V)?O.script?(O.script+="</"+V,O.state=U.SCRIPT):w(O,"Invalid tagname in closing tag."):O.tagName=V}continue;case U.CLOSE_TAG_SAW_WHITE:if(E(V))continue;V===">"?M(O):w(O,"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(O.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===";"?(O[j]+=X(O),O.entity="",O.state=ae):z(O.entity.length?b:v,V)?O.entity+=V:(w(O,"Invalid character in entity name"),O[j]+="&"+O.entity+V,O.entity="",O.state=ae);continue;default:throw new Error(O,"Unknown state: "+O.state)}return O.position>=O.bufferCheckPosition&&i(O),O}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var q=String.fromCharCode,O=Math.floor,L=function(){var V=16384,J=[],re,ae,j=-1,ue=arguments.length;if(!ue)return"";for(var Q="";++j<ue;){var B=Number(arguments[j]);if(!isFinite(B)||B<0||B>1114111||O(B)!==B)throw RangeError("Invalid code point: "+B);B<=65535?J.push(B):(B-=65536,re=(B>>10)+55296,ae=B%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]"}},FM=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"&&!FM(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}},MM=Gb,kr=vm,Nu=gm.isArray,Le,zt;function UM(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 b_(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"]]&&(Nu(Le.alwaysArray)?Le.alwaysArray.indexOf(Le[r+"Key"])!==-1:Le.alwaysArray)&&(zt[Le[r+"Key"]]=[]),zt[Le[r+"Key"]]&&!Nu(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}}Nu(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 w_(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]=b_(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 BM(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=w_(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 PM(r,t){var e;if(typeof r=="object"&&(t=r.attributes,r=r.name),t=w_(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)&&(Nu(Le.alwaysArray)?Le.alwaysArray.indexOf(r)!==-1:Le.alwaysArray)&&(zt[r]=[]),zt[r]&&!Nu(zt[r])&&(zt[r]=[zt[r]]),Nu(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 LM(r){Le.ignoreText||!r.trim()&&!Le.captureSpacesBetweenElements||(Le.trim&&(r=r.trim()),Le.nativeType&&(r=b_(r)),Le.sanitize&&(r=r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),il("text",r))}function jM(r){Le.ignoreComment||(Le.trim&&(r=r.trim()),il("comment",r))}function WM(r){var t=zt[Le.parentKey];Le.addParent||delete zt[Le.parentKey],zt=t}function zM(r){Le.ignoreCdata||(Le.trim&&(r=r.trim()),il("cdata",r))}function HM(r){Le.ignoreDoctype||(r=r.replace(/^ /,""),Le.trim&&(r=r.trim()),il("doctype",r))}function $M(r){r.note=r}var __=function(r,t){var e=MM.parser(!0,{}),n={};if(zt=n,Le=UM(t),e.opt={strictEntities:!0},e.onopentag=PM,e.ontext=LM,e.oncomment=jM,e.onclosetag=WM,e.onerror=$M,e.oncdata=zM,e.ondoctype=HM,e.onprocessinginstruction=BM,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,VM=__;function qM(r){var t=x_.copyOptions(r);return x_.ensureSpacesExists(t),t}var GM=function(r,t){var e,n,i,a;return e=qM(t),n=VM(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,XM=gm.isArray,Qn,ei;function KM(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,"""),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 E_(r,t,e){return Qn=r,ei="xml",t.ignoreDeclaration?"":"<?xml"+Lh(r[t.attributesKey],t,e)+"?>"}function A_(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 T_(r,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(r,ei,Qn):r)+"-->"}function S_(r,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(r,ei,Qn):r.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function D_(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(/&/g,"&"),r=r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in t?t.textFn(r,ei,Qn):r)}function ZM(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 YM(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(C_(r[t.elementsKey],t,e+1)),Qn=r,ei=r.name),n.push(t.spaces&&ZM(r,t)?`
|
|
`+Array(e+1).join(t.spaces):""),n.push("</"+i+">")):n.push("/>"),n.join("")}function C_(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+YM(a,t,e);case"comment":return i+o+T_(a[t.commentKey],t);case"doctype":return i+o+D_(a[t.doctypeKey],t);case"cdata":return i+(t.indentCdata?o:"")+S_(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:"")+A_(s,t,e)}},"")}function O_(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 JM(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=O_(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(I_(r,e,n+1,!1)),Qn=r,ei=t,t&&o.push((i?Pa(e,n,!1):"")+"</"+a+">"),o.join("")}function I_(r,t,e,n){var i,a,o,s=[];for(a in r)if(r.hasOwnProperty(a))for(o=XM(r[a])?r[a]:[r[a]],i=0;i<o.length;++i){switch(a){case t.declarationKey:s.push(E_(o[i],t,e));break;case t.instructionKey:s.push((t.indentInstruction?Pa(t,e,n):"")+A_(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):"")+S_(o[i],t));break;case t.doctypeKey:s.push(Pa(t,e,n)+D_(o[i],t));break;case t.commentKey:s.push(Pa(t,e,n)+T_(o[i],t));break;default:s.push(Pa(t,e,n)+JM(o[i],a,t,e,O_(o[i],t)))}n=n&&!s.length}return s.join("")}var k_=function(r,t){t=KM(t);var e=[];return Qn=r,ei="_root_",t.compact?e.push(I_(r,t,0,!0)):(r[t.declarationKey]&&e.push(E_(r[t.declarationKey],t,0)),r[t.elementsKey]&&r[t.elementsKey].length&&e.push(C_(r[t.elementsKey],t,0,!e.length))),e.join("")},QM=k_,eU=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 QM(e,t)},tU=__,rU=GM,nU=k_,iU=eU,R_={xml2js:tU,xml2json:rU,js2xml:nU,json2xml:iU};const bm=r=>{switch(r.type){case void 0:case"element":const t=new oU(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 aU extends ht{}class oU extends Me{static fromXmlString(t){const e=R_.xml2js(t,{compact:!1});return bm(e)}constructor(t,e){super(t);e&&this.root.push(new aU(e))}push(t){this.root.push(t)}}class sU extends Me{constructor(t){super("");this._attr=t}prepForXml(t){return{_attr:this._attr}}}class N_ 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},F_=(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},M_=r=>F_(r,1),wm=r=>{const t=r.slice(-2),e=r.substring(0,r.length-2);return`${Number(e)}${t}`},U_=r=>{const t=wm(r);if(parseFloat(t)<0)throw new Error(`Invalid value '${t}' specified. Expected a positive number.`);return t},Fu=r=>{if(r==="auto")return r;const t=r.charAt(0)==="#"?r.substring(1):r;return F_(t,3)},wo=r=>typeof r=="string"?wm(r):ti(r),uU=r=>typeof r=="string"?U_(r):jh(r),Vn=r=>typeof r=="string"?U_(r):jh(r),cU=r=>{const t=r.substring(0,r.length-1);return`${Number(t)}%`},lU=r=>typeof r=="number"?ti(r):r.slice(-1)==="%"?cU(r):wm(r),fU=jh,hU=jh,dU=r=>r.toISOString();class Qe extends Me{constructor(t,e=!0){super(t);e!==!0&&this.root.push(new an({val:e}))}}class _m extends Me{constructor(t,e){super(t);this.root.push(new an({val:uU(e)}))}}class pU extends Me{}class Fs 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 xm extends Me{constructor(t,e){super(t);this.root.push(new an({val:e}))}}class mU 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 gU extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{val:"w:val"})}}class B_ extends Me{constructor(t){super("w:jc");this.root.push(new gU({val:t}))}}class Br extends Me{constructor(t,{color:e,size:n,space:i,style:a}){super(t);this.root.push(new vU({style:a,color:e===void 0?void 0:Fu(e),size:n===void 0?void 0:fU(n),space:i===void 0?void 0:hU(i)}))}}class vU extends ht{constructor(){super(...arguments);Ue(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 yU extends go{constructor(t){super("w:pBdr");t.top&&this.root.push(new Br("w:top",t.top)),t.bottom&&this.root.push(new Br("w:bottom",t.bottom)),t.left&&this.root.push(new Br("w:left",t.left)),t.right&&this.root.push(new Br("w:right",t.right))}}class bU extends Me{constructor(){super("w:pBdr");const t=new Br("w:bottom",{color:"auto",space:1,style:Em.SINGLE,size:6});this.root.push(t)}}class wU 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 _U=class extends Me{constructor(){super("w:br")}};const Am={BEGIN:"begin",END:"end",SEPARATE:"separate"};class Tm extends ht{constructor(){super(...arguments);Ue(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 Uu extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{space:"xml:space"})}}class xU extends Me{constructor(){super("w:instrText");this.root.push(new Uu({space:Mu.PRESERVE})),this.root.push("PAGE")}}class EU extends Me{constructor(){super("w:instrText");this.root.push(new Uu({space:Mu.PRESERVE})),this.root.push("NUMPAGES")}}class AU extends Me{constructor(){super("w:instrText");this.root.push(new Uu({space:Mu.PRESERVE})),this.root.push("SECTIONPAGES")}}class TU extends Me{constructor(){super("w:instrText");this.root.push(new Uu({space:Mu.PRESERVE})),this.root.push("SECTION")}}class SU extends ht{constructor(){super(...arguments);Ue(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 SU({fill:t===void 0?void 0:Fu(t),color:e===void 0?void 0:Fu(e),type:n}))}}class DU extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const CU={DOT:"dot"};class OU extends Me{constructor(t){super("w:em");this.root.push(new an({val:t}))}}class IU extends OU{constructor(t=CU.DOT){super(t)}}class kU extends Me{constructor(t){super("w:spacing");this.root.push(new an({val:wo(t)}))}}class RU extends Me{constructor(t){super("w:color");this.root.push(new an({val:Fu(t)}))}}class NU extends Me{constructor(t){super("w:highlight");this.root.push(new an({val:t}))}}class FU extends Me{constructor(t){super("w:highlightCs");this.root.push(new an({val:t}))}}const MU=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 P_ extends ht{constructor(){super(...arguments);Ue(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 P_({ascii:n,cs:n,eastAsia:n,hAnsi:n,hint:e}))}else{const n=t;this.root.push(new P_(n))}}}let L_=class extends Me{constructor(t){super("w:vertAlign");this.root.push(new an({val:t}))}};class UU extends L_{constructor(){super("superscript")}}class BU extends L_{constructor(){super("subscript")}}const j_={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 PU extends Me{constructor(t=j_.SINGLE,e){super("w:u");this.root.push(new an({val:t,color:e===void 0?void 0:Fu(e)}))}}class Us 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 PU(t.underline.type,t.underline.color)),t.effect&&this.push(new Fs("w:effect",t.effect)),t.emphasisMark&&this.push(new IU(t.emphasisMark.type)),t.color&&this.push(new RU(t.color)),t.kern&&this.push(new _m("w:kern",t.kern)),t.position&&this.push(new Fs("w:position",t.position)),t.size!==void 0&&this.push(new _m("w:sz",t.size));const i=t.sizeComplexScript===void 0||t.sizeComplexScript===!0?t.size:t.sizeComplexScript;i&&this.push(new _m("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 BU),t.superScript&&this.push(new UU),t.style&&this.push(new Fs("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 NU(t.highlight));const a=t.highlightComplexScript===void 0||t.highlightComplexScript===!0?t.highlight:t.highlightComplexScript;a&&this.push(new FU(a)),t.characterSpacing&&this.push(new kU(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 LU(t.revision)),t.border&&this.push(new Br("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 xm("w:w",t.scale)),t.language&&this.push(MU(t.language)),t.math&&this.push(new Qe("w:oMath",t.math))}push(t){this.root.push(t)}}class LU extends Me{constructor(t){super("w:rPrChange");this.root.push(new DU({id:t.id,author:t.author,date:t.date})),this.addChildElement(new Us(t))}}class Dm extends Me{constructor(t){var e;super("w:t");typeof t=="string"?(this.root.push(new Uu({space:Mu.PRESERVE})),this.root.push(t)):(this.root.push(new Uu({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(Ue(this,"properties"),this.properties=new Us(t),this.root.push(this.properties),t.break)for(let e=0;e<t.break;e++)this.root.push(new _U);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 xU),this.root.push(new zh),this.root.push(new Hh);break;case Vh.TOTAL_PAGES:this.root.push(new Wh),this.root.push(new EU),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 AU),this.root.push(new zh),this.root.push(new Hh);break;case Vh.CURRENT_SECTION:this.root.push(new Wh),this.root.push(new TU),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 W_ extends ol{constructor(t){if(typeof t=="string"){super({});return this.root.push(new Dm(t)),this}super(t)}}var z_={},cr={},sl=H_;function H_(r,t){if(!r)throw new Error(t||"Assertion failed")}H_.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)};var jU=sl,WU=ts;cr.inherits=WU;function zU(r,t){return(r.charCodeAt(t)&64512)!=55296||t<0||t+1>=r.length?!1:(r.charCodeAt(t+1)&64512)==56320}function HU(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):zU(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=HU;function $U(r){for(var t="",e=0;e<r.length;e++)t+=V_(r[e].toString(16));return t}cr.toHex=$U;function $_(r){var t=r>>>24|r>>>8&65280|r<<8&16711680|(r&255)<<24;return t>>>0}cr.htonl=$_;function VU(r,t){for(var e="",n=0;n<r.length;n++){var i=r[n];t==="little"&&(i=$_(i)),e+=q_(i.toString(16))}return e}cr.toHex32=VU;function V_(r){return r.length===1?"0"+r:r}cr.zero2=V_;function q_(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=q_;function qU(r,t,e,n){var i=e-t;jU(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=qU;function GU(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=GU;function XU(r,t){return r>>>t|r<<32-t}cr.rotr32=XU;function KU(r,t){return r<<t|r>>>32-t}cr.rotl32=KU;function ZU(r,t){return r+t>>>0}cr.sum32=ZU;function YU(r,t,e){return r+t+e>>>0}cr.sum32_3=YU;function JU(r,t,e,n){return r+t+e+n>>>0}cr.sum32_4=JU;function QU(r,t,e,n,i){return r+t+e+n+i>>>0}cr.sum32_5=QU;function eB(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=eB;function tB(r,t,e,n){var i=t+n>>>0,a=(i<t?1:0)+r+e;return a>>>0}cr.sum64_hi=tB;function rB(r,t,e,n){var i=t+n;return i>>>0}cr.sum64_lo=rB;function nB(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=nB;function iB(r,t,e,n,i,a,o,s){var u=t+n+a+s;return u>>>0}cr.sum64_4_lo=iB;function aB(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=aB;function oB(r,t,e,n,i,a,o,s,u,c){var l=t+n+a+s+c;return l>>>0}cr.sum64_5_lo=oB;function sB(r,t,e){var n=t<<32-e|r>>>e;return n>>>0}cr.rotr64_hi=sB;function uB(r,t,e){var n=r<<32-e|t>>>e;return n>>>0}cr.rotr64_lo=uB;function cB(r,t,e){return r>>>e}cr.shr64_hi=cB;function lB(r,t,e){var n=r<<32-e|t>>>e;return n>>>0}cr.shr64_lo=lB;var Bu={},G_=cr,fB=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}Bu.BlockHash=qh;qh.prototype.update=function(t,e){if(t=G_.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=G_.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()),fB(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={},hB=cr,Wa=hB.rotr32;function dB(r,t,e,n){if(r===0)return X_(t,e,n);if(r===1||r===3)return Z_(t,e,n);if(r===2)return K_(t,e,n)}ja.ft_1=dB;function X_(r,t,e){return r&t^~r&e}ja.ch32=X_;function K_(r,t,e){return r&t^r&e^t&e}ja.maj32=K_;function Z_(r,t,e){return r^t^e}ja.p32=Z_;function pB(r){return Wa(r,2)^Wa(r,13)^Wa(r,22)}ja.s0_256=pB;function mB(r){return Wa(r,6)^Wa(r,11)^Wa(r,25)}ja.s1_256=mB;function gB(r){return Wa(r,7)^Wa(r,18)^r>>>3}ja.g0_256=gB;function vB(r){return Wa(r,17)^Wa(r,19)^r>>>10}ja.g1_256=vB;var Lu=cr,yB=Bu,bB=ja,Cm=Lu.rotl32,ul=Lu.sum32,wB=Lu.sum32_5,_B=bB.ft_1,Y_=yB.BlockHash,xB=[1518500249,1859775393,2400959708,3395469782];function za(){if(!(this instanceof za))return new za;Y_.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Lu.inherits(za,Y_);var EB=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=wB(Cm(a,5),_B(l,o,s,u),c,n[i],xB[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,AB=Bu,Wu=ja,TB=sl,wa=ju.sum32,SB=ju.sum32_4,DB=ju.sum32_5,CB=Wu.ch32,OB=Wu.maj32,IB=Wu.s0_256,kB=Wu.s1_256,RB=Wu.g0_256,NB=Wu.g1_256,J_=AB.BlockHash,FB=[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;J_.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=FB,this.W=new Array(64)}ju.inherits(Ha,J_);var Q_=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]=SB(NB(n[i-2]),n[i-7],RB(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(TB(this.k.length===n.length),i=0;i<n.length;i++){var f=DB(h,kB(c),CB(c,l,d),this.k[i],n[i]),g=wa(IB(a),OB(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,ex=Q_;function _o(){if(!(this instanceof _o))return new _o;ex.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Om.inherits(_o,ex);var MB=_o;_o.blockSize=512;_o.outSize=224;_o.hmacStrength=192;_o.padLength=64;_o.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,UB=Bu,BB=sl,$a=Di.rotr64_hi,Va=Di.rotr64_lo,tx=Di.shr64_hi,rx=Di.shr64_lo,rs=Di.sum64,Im=Di.sum64_hi,km=Di.sum64_lo,PB=Di.sum64_4_hi,LB=Di.sum64_4_lo,jB=Di.sum64_5_hi,WB=Di.sum64_5_lo,nx=UB.BlockHash,zB=[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 _a(){if(!(this instanceof _a))return new _a;nx.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=zB,this.W=new Array(160)}Di.inherits(_a,nx);var ix=_a;_a.blockSize=1024;_a.outSize=512;_a.hmacStrength=192;_a.padLength=128;_a.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=QB(n[i-4],n[i-3]),o=eP(n[i-4],n[i-3]),s=n[i-14],u=n[i-13],c=YB(n[i-30],n[i-29]),l=JB(n[i-30],n[i-29]),d=n[i-32],h=n[i-31];n[i]=PB(a,o,s,u,c,l,d,h),n[i+1]=LB(a,o,s,u,c,l,d,h)}};_a.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];BB(this.k.length===n.length);for(var E=0;E<n.length;E+=2){var D=v,F=b,z=KB(h,f),W=ZB(h,f),U=HB(h,f,g,m,p),G=$B(h,f,g,m,p,y),ee=this.k[E],P=this.k[E+1],I=n[E],S=n[E+1],C=jB(D,F,z,W,U,G,ee,P,I,S),_=WB(D,F,z,W,U,G,ee,P,I,S);D=GB(i,a),F=XB(i,a),z=VB(i,a,o,s,u),W=qB(i,a,o,s,u,c);var w=Im(D,F,z,W),x=km(D,F,z,W);v=p,b=y,p=g,y=m,g=h,m=f,h=Im(l,d,C,_),f=km(d,d,C,_),l=u,d=c,u=o,c=s,o=i,s=a,i=Im(C,_,w,x),a=km(C,_,w,x)}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)};_a.prototype._digest=function(t){return t==="hex"?Di.toHex32(this.h,"big"):Di.split32(this.h,"big")};function HB(r,t,e,n,i){var a=r&e^~r&i;return a<0&&(a+=4294967296),a}function $B(r,t,e,n,i,a){var o=t&n^~t&a;return o<0&&(o+=4294967296),o}function VB(r,t,e,n,i){var a=r&e^r&i^e&i;return a<0&&(a+=4294967296),a}function qB(r,t,e,n,i,a){var o=t&n^t&a^n&a;return o<0&&(o+=4294967296),o}function GB(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 XB(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 KB(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 ZB(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 YB(r,t){var e=$a(r,t,1),n=$a(r,t,8),i=tx(r,t,7),a=e^n^i;return a<0&&(a+=4294967296),a}function JB(r,t){var e=Va(r,t,1),n=Va(r,t,8),i=rx(r,t,7),a=e^n^i;return a<0&&(a+=4294967296),a}function QB(r,t){var e=$a(r,t,19),n=$a(t,r,29),i=tx(r,t,6),a=e^n^i;return a<0&&(a+=4294967296),a}function eP(r,t){var e=Va(r,t,19),n=Va(t,r,29),i=rx(r,t,6),a=e^n^i;return a<0&&(a+=4294967296),a}var Rm=cr,ax=ix;function xo(){if(!(this instanceof xo))return new xo;ax.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Rm.inherits(xo,ax);var tP=xo;xo.blockSize=1024;xo.outSize=384;xo.hmacStrength=192;xo.padLength=128;xo.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=EB;Pu.sha224=MB;Pu.sha256=Q_;Pu.sha384=tP;Pu.sha512=ix;var ox={},Bs=cr,rP=Bu,Gh=Bs.rotl32,sx=Bs.sum32,cl=Bs.sum32_3,ux=Bs.sum32_4,cx=rP.BlockHash;function qa(){if(!(this instanceof qa))return new qa;cx.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Bs.inherits(qa,cx);ox.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=sx(Gh(ux(n,lx(f,i,a,o),t[aP[f]+e],nP(f)),sP[f]),s);n=s,s=o,o=Gh(a,10),a=i,i=g,g=sx(Gh(ux(u,lx(79-f,c,l,d),t[oP[f]+e],iP(f)),uP[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"?Bs.toHex32(this.h,"little"):Bs.split32(this.h,"little")};function lx(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 nP(r){return r<=15?0:r<=31?1518500249:r<=47?1859775393:r<=63?2400959708:2840853838}function iP(r){return r<=15?1352829926:r<=31?1548603684:r<=47?1836072691:r<=63?2053994217:0}var aP=[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],oP=[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],sP=[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],uP=[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],cP=cr,lP=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(cP.toArray(t,e))}var fP=zu;zu.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),lP(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=Bu,t.sha=Pu,t.ripemd=ox,t.hmac=fP,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})(z_);const hP=o1(z_);let dP="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",pP=(r,t=21)=>(e=t)=>{let n="",i=e;for(;i--;)n+=r[Math.random()*r.length|0];return n},mP=(r=21)=>{let t="",e=r;for(;e--;)t+=dP[Math.random()*64|0];return t};const xa=r=>Math.floor(r*72*20),Xh=(r=0)=>{let t=r;return()=>++t},gP=()=>Xh(),vP=()=>Xh(1),yP=()=>Xh(),bP=()=>Xh(),wP=()=>mP().toLowerCase(),fx=r=>hP.sha1().update(r instanceof ArrayBuffer?new Uint8Array(r):r).digest("hex"),ll=r=>pP("1234567890abcdef",r)(),_P=()=>`${ll(8)}-${ll(4)}-${ll(4)}-${ll(4)}-${ll(12)}`,xP={CHARACTER:"character",COLUMN:"column",INSIDE_MARGIN:"insideMargin",LEFT_MARGIN:"leftMargin",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",RIGHT_MARGIN:"rightMargin"},EP={BOTTOM_MARGIN:"bottomMargin",INSIDE_MARGIN:"insideMargin",LINE:"line",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",PARAGRAPH:"paragraph",TOP_MARGIN:"topMargin"};class AP extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{x:"x",y:"y"})}}class TP extends Me{constructor(){super("wp:simplePos");this.root.push(new AP({x:0,y:0}))}}class hx extends Me{constructor(t){super("wp:align");this.root.push(t)}}class dx extends Me{constructor(t){super("wp:posOffset");this.root.push(t.toString())}}class SP extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{relativeFrom:"relativeFrom"})}}class DP extends Me{constructor(t){super("wp:positionH");if(this.root.push(new SP({relativeFrom:t.relative||xP.PAGE})),t.align)this.root.push(new hx(t.align));else if(t.offset!==void 0)this.root.push(new dx(t.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}}class CP extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{relativeFrom:"relativeFrom"})}}class OP extends Me{constructor(t){super("wp:positionV");if(this.root.push(new CP({relativeFrom:t.relative||EP.PAGE})),t.align)this.root.push(new hx(t.align));else if(t.offset!==void 0)this.root.push(new dx(t.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}}class IP extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{uri:"uri"})}}const kP=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}}`}}}),RP=r=>new wn({name:"a:ext",attributes:{uri:{key:"uri",value:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}"}},children:[kP(r)]}),NP=r=>new wn({name:"a:extLst",children:[RP(r)]}),FP=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"?[NP(r)]:[]});class MP extends Me{constructor(){super("a:srcRect")}}class UP extends Me{constructor(){super("a:fillRect")}}class BP extends Me{constructor(){super("a:stretch");this.root.push(new UP)}}class PP extends Me{constructor(t){super("pic:blipFill");this.root.push(FP(t)),this.root.push(new MP),this.root.push(new BP)}}class LP extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}}class jP extends Me{constructor(){super("a:picLocks");this.root.push(new LP({noChangeAspect:1,noChangeArrowheads:1}))}}class WP extends Me{constructor(){super("pic:cNvPicPr");this.root.push(new jP)}}const px=(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 zP extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}}class HP extends Me{constructor(){super("pic:cNvPr");this.root.push(new zP({id:0,name:"",descr:""}))}prepForXml(t){for(let e=t.stack.length-1;e>=0;e--){const n=t.stack[e];if(n instanceof Um){this.root.push(px(n.linkId,!1));break}}return super.prepForXml(t)}}class $P extends Me{constructor(){super("pic:nvPicPr");this.root.push(new HP),this.root.push(new WP)}}class VP extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{xmlns:"xmlns:pic"})}}class qP extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class GP extends Me{constructor(t,e){super("a:ext");Ue(this,"attributes"),this.attributes=new qP({cx:t,cy:e}),this.root.push(this.attributes)}}class XP extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{x:"x",y:"y"})}}class KP extends Me{constructor(){super("a:off");this.root.push(new XP({x:0,y:0}))}}class ZP extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}}class YP extends Me{constructor(t){var e,n;super("a:xfrm");Ue(this,"extents"),this.root.push(new ZP({flipVertical:(e=t.flip)==null?void 0:e.vertical,flipHorizontal:(n=t.flip)==null?void 0:n.horizontal,rotation:t.rotation})),this.extents=new GP(t.emus.x,t.emus.y),this.root.push(new KP),this.root.push(this.extents)}}const mx=()=>new wn({name:"a:noFill"}),JP=r=>new wn({name:"a:srgbClr",attributes:{value:{key:"val",value:r.value}}}),QP=r=>new wn({name:"a:schemeClr",attributes:{value:{key:"val",value:r.value}}}),gx=r=>new wn({name:"a:solidFill",children:[r.type==="rgb"?JP(r):QP(r)]}),eL=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"?mx():r.solidFillType==="rgb"?gx({type:"rgb",value:r.value}):gx({type:"scheme",value:r.value})]});class tL extends Me{constructor(){super("a:avLst")}}class rL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{prst:"prst"})}}class nL extends Me{constructor(){super("a:prstGeom");this.root.push(new rL({prst:"rect"})),this.root.push(new tL)}}class iL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{bwMode:"bwMode"})}}class aL extends Me{constructor({outline:t,transform:e}){super("pic:spPr");Ue(this,"form"),this.root.push(new iL({bwMode:"auto"})),this.form=new YP(e),this.root.push(this.form),this.root.push(new nL),t&&(this.root.push(mx()),this.root.push(eL(t)))}}class oL extends Me{constructor({mediaData:t,transform:e,outline:n}){super("pic:pic");this.root.push(new VP({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new $P),this.root.push(new PP(t)),this.root.push(new aL({transform:e,outline:n}))}}class sL extends Me{constructor({mediaData:t,transform:e,outline:n}){super("a:graphicData");Ue(this,"pic"),this.root.push(new IP({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new oL({mediaData:t,transform:e,outline:n}),this.root.push(this.pic)}}class uL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{a:"xmlns:a"})}}class vx extends Me{constructor({mediaData:t,transform:e,outline:n}){super("a:graphic");Ue(this,"data"),this.root.push(new uL({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new sL({mediaData:t,transform:e,outline:n}),this.root.push(this.data)}}const Kh={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3},cL={BOTH_SIDES:"bothSides",LEFT:"left",RIGHT:"right",LARGEST:"largest"};class yx extends Me{constructor(){super("wp:wrapNone")}}class lL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"})}}class fL extends Me{constructor(t,e={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare");this.root.push(new lL({wrapText:t.side||cL.BOTH_SIDES,distT:e.top,distB:e.bottom,distL:e.left,distR:e.right}))}}class hL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class dL extends Me{constructor(t={top:0,bottom:0}){super("wp:wrapTight");this.root.push(new hL({distT:t.top,distB:t.bottom}))}}class pL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class mL extends Me{constructor(t={top:0,bottom:0}){super("wp:wrapTopAndBottom");this.root.push(new pL({distT:t.top,distB:t.bottom}))}}class bx extends Me{constructor({name:t,description:e,title:n}={name:"",description:"",title:""}){super("wp:docPr");Ue(this,"docPropertiesUniqueNumericId",yP()),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 Um){this.root.push(px(n.linkId,!0));break}}return super.prepForXml(t)}}const wx=({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 gL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class _x extends Me{constructor(t,e){super("wp:extent");Ue(this,"attributes"),this.attributes=new gL({cx:t,cy:e}),this.root.push(this.attributes)}}class vL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}}class yL extends Me{constructor(){super("a:graphicFrameLocks");this.root.push(new vL({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}}class xx extends Me{constructor(){super("wp:cNvGraphicFramePr");this.root.push(new yL)}}class bL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}}class wL 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 bL({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 TP),this.root.push(new DP(i.horizontalPosition)),this.root.push(new OP(i.verticalPosition)),this.root.push(new _x(e.emus.x,e.emus.y)),this.root.push(wx({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 fL(n.floating.wrap,n.floating.margins));break;case Kh.TIGHT:this.root.push(new dL(n.floating.margins));break;case Kh.TOP_AND_BOTTOM:this.root.push(new mL(n.floating.margins));break;case Kh.NONE:default:this.root.push(new yx)}else this.root.push(new yx);this.root.push(new bx(n.docProperties)),this.root.push(new xx),this.root.push(new vx({mediaData:t,transform:e,outline:n.outline}))}}const _L=({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),wx(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 bx(e),new xx,new vx({mediaData:r,transform:t,outline:n})]})};class xL extends Me{constructor(t,e={}){super("w:drawing");e.floating?this.root.push(new wL({mediaData:t,transform:t.transformation,drawingOptions:e})):this.root.push(_L({mediaData:t,transform:t.transformation,docProperties:e.docProperties,outline:e.outline}))}}const EL=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")}},AL=r=>typeof r=="string"?EL(r):r,Nm=(r,t)=>({data:AL(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 mX extends ol{constructor(t){super({});Ue(this,"imageData");const n=`${fx(t.data)}.${t.type}`;this.imageData=t.type==="svg"?es(sr({type:t.type},Nm(t,n)),{fallback:sr({type:t.fallback.type},Nm(es(sr({},t.fallback),{transformation:t.transformation}),`${fx(t.fallback.data)}.${t.fallback.type}`))}):sr({type:t.type},Nm(t,n));const i=new xL(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 TL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class SL extends ht{constructor(){super(...arguments);Ue(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 DL extends Me{constructor({id:t,initials:e,author:n,date:i=new Date,children:a}){super("w:comment");this.root.push(new TL({id:t,initials:e,author:n,date:i.toISOString()}));for(const o of a)this.root.push(o)}}class CL extends Me{constructor({children:t}){super("w:comments");this.root.push(new SL({"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 DL(e))}}class gX extends pU{constructor(){super("w:tab")}}class OL extends Me{constructor(){super("w:pageBreakBefore")}}const Fm={AT_LEAST:"atLeast",EXACTLY:"exactly",EXACT:"exact",AUTO:"auto"};class IL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule",beforeAutoSpacing:"w:beforeAutospacing",afterAutoSpacing:"w:afterAutoSpacing"})}}class kL extends Me{constructor(t){super("w:spacing");this.root.push(new IL(t))}}const vX={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 RL extends Me{constructor(t){super("w:tabs");for(const e of t)this.root.push(new FL(e))}}const Ex={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"};class NL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class FL extends Me{constructor({type:t,position:e,leader:n}){super("w:tab");this.root.push(new NL({val:t,pos:e,leader:n}))}}class Mm extends Me{constructor(t,e){super("w:numPr");this.root.push(new ML(e)),this.root.push(new UL(t))}}class ML 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 UL extends Me{constructor(t){super("w:numId");this.root.push(new an({val:typeof t=="string"?`{${t}}`:t}))}}class Ax extends Me{constructor(){super(...arguments);Ue(this,"fileChild",Symbol())}}class BL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const PL={EXTERNAL:"External"};class LL extends Me{constructor(t,e,n,i){super("Relationship");this.root.push(new BL({id:t,type:e,target:n,targetMode:i}))}}class jL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class Um extends Me{constructor(t,e,n){super("w:hyperlink");Ue(this,"linkId"),this.linkId=e;const i={history:1,anchor:n||void 0,id:n?void 0:`rId${this.linkId}`},a=new jL(i);this.root.push(a),t.forEach(o=>{this.root.push(o)})}}class WL extends Me{constructor(t){super("w:externalHyperlink");this.options=t}}class zL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class HL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{id:"w:id"})}}class $L{constructor(t){Ue(this,"bookmarkUniqueNumericId",bP()),Ue(this,"start"),Ue(this,"children"),Ue(this,"end");const e=this.bookmarkUniqueNumericId();this.start=new VL(t.id,e),this.children=t.children,this.end=new qL(e)}}class VL extends Me{constructor(t,e){super("w:bookmarkStart");const n=new zL({name:t,id:e});this.root.push(n)}}class qL extends Me{constructor(t){super("w:bookmarkEnd");const e=new HL({id:t});this.root.push(e)}}class GL extends Me{constructor(t){super("w:outlineLvl");this.level=t,this.root.push(new an({val:t}))}}class XL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{verticalAlign:"w:val"})}}class Tx extends Me{constructor(t){super("w:vAlign");this.root.push(new XL({verticalAlign:t}))}}class KL 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 ZL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}}class YL extends Me{constructor(t,e,n){super("w:docGrid");this.root.push(new ZL({type:n,linePitch:ti(t),charSpace:e?ti(e):void 0}))}}const Hu={DEFAULT:"default",FIRST:"first",EVEN:"even"};class JL extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const Sx={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class Bm extends Me{constructor(t,e){super(t);this.root.push(new JL({type:e.type||Hu.DEFAULT,id:`rId${e.id}`}))}}const QL=({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 Dx extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class ej extends go{constructor(t){super("w:pgBorders");if(!t)return this;t.pageBorders?this.root.push(new Dx({display:t.pageBorders.display,offsetFrom:t.pageBorders.offsetFrom,zOrder:t.pageBorders.zOrder})):this.root.push(new Dx({})),t.pageBorderTop&&this.root.push(new Br("w:top",t.pageBorderTop)),t.pageBorderLeft&&this.root.push(new Br("w:left",t.pageBorderLeft)),t.pageBorderBottom&&this.root.push(new Br("w:bottom",t.pageBorderBottom)),t.pageBorderRight&&this.root.push(new Br("w:right",t.pageBorderRight))}}class tj 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 rj extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class nj extends Me{constructor({start:t,formatType:e,separator:n}){super("w:pgNumType");this.root.push(new rj({start:t===void 0?void 0:ti(t),formatType:e,separator:n}))}}const Cx={PORTRAIT:"portrait",LANDSCAPE:"landscape"};class ij extends Me{constructor(t,e,n){super("w:pgSz");const i=n===Cx.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 aj extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{val:"w:val"})}}class oj extends Me{constructor(t){super("w:textDirection");this.root.push(new aj({val:t}))}}class sj extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{val:"w:val"})}}class uj extends Me{constructor(t){super("w:type");this.root.push(new sj({val:t}))}}const Ps={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},Pm={WIDTH:11906,HEIGHT:16838,ORIENTATION:Cx.PORTRAIT};class cj 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:E,verticalAlign:D,column:F,type:z}={}){super("w:sectPr");this.addHeaderFooterGroup(Sx.HEADER,y),this.addHeaderFooterGroup(Sx.FOOTER,v),z&&this.root.push(new uj(z)),this.root.push(new ij(t,e,n)),this.root.push(new tj(i,a,o,s,u,c,l)),h&&this.root.push(new ej(h)),b&&this.root.push(QL(b)),this.root.push(new nj(d)),F&&this.root.push(new KL(F)),D&&this.root.push(new Tx(D)),E!==void 0&&this.root.push(new Qe("w:titlePg",E)),f&&this.root.push(new oj(f)),this.root.push(new YL(g,m,p))}addHeaderFooterGroup(t,e){e.default&&this.root.push(new Bm(t,{type:Hu.DEFAULT,id:e.default.View.ReferenceId})),e.first&&this.root.push(new Bm(t,{type:Hu.FIRST,id:e.first.View.ReferenceId})),e.even&&this.root.push(new Bm(t,{type:Hu.EVEN,id:e.even.View.ReferenceId}))}}class lj extends Me{constructor(){super("w:body");Ue(this,"sections",[])}addSection(t){const e=this.sections.pop();this.root.push(this.createSectionParagraph(e)),this.sections.push(new cj(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);Ue(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 fj extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class hj extends Me{constructor(t){super("w:background");this.root.push(new fj({color:t.color===void 0?void 0:Fu(t.color),themeColor:t.themeColor,themeShade:t.themeShade===void 0?void 0:M_(t.themeShade),themeTint:t.themeTint===void 0?void 0:M_(t.themeTint)}))}}class dj extends Me{constructor(t){super("w:document");Ue(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 lj,t.background&&this.root.push(new hj(t.background)),this.root.push(this.body)}add(t){return this.body.push(t),this}get Body(){return this.body}}class pj extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{xmlns:"xmlns"})}}class $u extends Me{constructor(){super("Relationships");this.root.push(new pj({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(t,e,n,i){const a=new LL(`rId${t}`,e,n,i);return this.root.push(a),a}get RelationshipCount(){return this.root.length-1}}class Ox{constructor(t){Ue(this,"document"),Ue(this,"relationships"),this.document=new dj(t),this.relationships=new $u}get View(){return this.document}get Relationships(){return this.relationships}}class mj extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{val:"w:val"})}}class gj extends Me{constructor(){super("w:wordWrap");this.root.push(new mj({val:0}))}}const vj=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(Ue(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 OL),t.frame&&this.push(vj(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 yU(t.border)),t.thematicBreak&&this.push(new bU),t.shading&&this.push(new $h(t.shading)),t.wordWrap&&this.push(new gj),t.overflowPunctuation&&this.push(new Qe("w:overflowPunct",t.overflowPunctuation));const i=[...t.rightTabStop!==void 0?[{type:Ex.RIGHT,position:t.rightTabStop}]:[],...t.tabStops?t.tabStops:[],...t.leftTabStop!==void 0?[{type:Ex.LEFT,position:t.leftTabStop}]:[]];i.length>0&&this.push(new RL(i)),t.bidirectional!==void 0&&this.push(new Qe("w:bidi",t.bidirectional)),t.spacing&&this.push(new kL(t.spacing)),t.indent&&this.push(new wU(t.indent)),t.contextualSpacing!==void 0&&this.push(new Qe("w:contextualSpacing",t.contextualSpacing)),t.alignment&&this.push(new B_(t.alignment)),t.outlineLevel!==void 0&&this.push(new GL(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 Us(t.run))}push(t){this.root.push(t)}prepForXml(t){if(t.viewWrapper instanceof Ox)for(const e of this.numberingReferences)t.file.Numbering.createConcreteNumberingInstance(e.reference,e.instance);return super.prepForXml(t)}}class hl extends Ax{constructor(t){super("w:p");if(Ue(this,"properties"),typeof t=="string")return this.properties=new Vu({}),this.root.push(this.properties),this.root.push(new W_(t)),this;if(this.properties=new Vu(t),this.root.push(this.properties),t.text&&this.root.push(new W_(t.text)),t.children)for(const e of t.children){if(e instanceof $L){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 WL){const n=this.root.indexOf(e),i=new Um(e.options.children,wP());t.viewWrapper.Relationships.createRelationship(i.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",e.options.link,PL.EXTERNAL),this.root[n]=i}return super.prepForXml(t)}addRunToFront(t){return this.root.splice(1,0,t),this}}class yj extends Me{constructor(t){super("m:t");this.root.push(t)}}class bX extends Me{constructor(t){super("m:r");this.root.push(new yj(t))}}class bj extends Me{constructor(t){super("w:tblGrid");for(const e of t)this.root.push(new wj(e))}}class wj extends Me{constructor(t){super("w:gridCol");t!==void 0&&this.root.push(new vo({width:{key:"w:w",value:Vn(t)}}))}}const Ix={TABLE:"w:tblCellMar",TABLE_CELL:"w:tcMar"};class kx 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:lU(i)}}))}}class _j extends go{constructor(t){super("w:tcBorders");t.top&&this.root.push(new Br("w:top",t.top)),t.start&&this.root.push(new Br("w:start",t.start)),t.left&&this.root.push(new Br("w:left",t.left)),t.bottom&&this.root.push(new Br("w:bottom",t.bottom)),t.end&&this.root.push(new Br("w:end",t.end)),t.right&&this.root.push(new Br("w:right",t.right))}}class xj extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{val:"w:val"})}}class Ej extends Me{constructor(t){super("w:gridSpan");this.root.push(new xj({val:ti(t)}))}}const Rx={CONTINUE:"continue",RESTART:"restart"};class Aj extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{val:"w:val"})}}class Nx extends Me{constructor(t){super("w:vMerge");this.root.push(new Aj({val:t}))}}class Tj extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{val:"w:val"})}}class Sj extends Me{constructor(t){super("w:textDirection");this.root.push(new Tj({val:t}))}}class Dj extends go{constructor(t){super("w:tcPr");t.width&&this.root.push(new Ls("w:tcW",t.width)),t.columnSpan&&this.root.push(new Ej(t.columnSpan)),t.verticalMerge?this.root.push(new Nx(t.verticalMerge)):t.rowSpan&&t.rowSpan>1&&this.root.push(new Nx(Rx.RESTART)),t.borders&&this.root.push(new _j(t.borders)),t.shading&&this.root.push(new $h(t.shading)),t.margins&&this.root.push(new kx(Ix.TABLE_CELL,t.margins)),t.textDirection&&this.root.push(new Sj(t.textDirection)),t.verticalAlign&&this.root.push(new Tx(t.verticalAlign))}}class Fx extends Me{constructor(t){super("w:tc");this.options=t,this.root.push(new Dj(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 Mx extends Me{constructor(t){super("w:tblBorders");t.top?this.root.push(new Br("w:top",t.top)):this.root.push(new Br("w:top",Gu)),t.left?this.root.push(new Br("w:left",t.left)):this.root.push(new Br("w:left",Gu)),t.bottom?this.root.push(new Br("w:bottom",t.bottom)):this.root.push(new Br("w:bottom",Gu)),t.right?this.root.push(new Br("w:right",t.right)):this.root.push(new Br("w:right",Gu)),t.insideHorizontal?this.root.push(new Br("w:insideH",t.insideHorizontal)):this.root.push(new Br("w:insideH",Gu)),t.insideVertical?this.root.push(new Br("w:insideV",t.insideVertical)):this.root.push(new Br("w:insideV",Gu))}}Ue(Mx,"NONE",{top:qu,bottom:qu,left:qu,right:qu,insideHorizontal:qu,insideVertical:qu});class Cj 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 mU("w:tblOverlap",d))}}class Oj extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{type:"w:type"})}}class Ij extends Me{constructor(t){super("w:tblLayout");this.root.push(new Oj({type:t}))}}class kj extends go{constructor(t){super("w:tblPr");t.style&&this.root.push(new Fs("w:tblStyle",t.style)),t.float&&this.root.push(new Cj(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 B_(t.alignment)),t.indent&&this.root.push(new Ls("w:tblInd",t.indent)),t.borders&&this.root.push(new Mx(t.borders)),t.shading&&this.root.push(new $h(t.shading)),t.layout&&this.root.push(new Ij(t.layout)),t.cellMargin&&this.root.push(new kx(Ix.TABLE,t.cellMargin))}}class wX extends Ax{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 kj({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 bj(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 Fx({rowSpan:m.options.rowSpan-1,columnSpan:m.options.columnSpan,borders:m.options.borders,children:[],verticalMerge:Rx.CONTINUE});t[f+1].addCellToColumnIndex(p,g)}g+=m.options.columnSpan||1})})}}class Rj extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{value:"w:val",rule:"w:hRule"})}}class Nj extends Me{constructor(t,e){super("w:trHeight");this.root.push(new Rj({value:Vn(t),rule:e}))}}class Fj 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 Nj(t.height.value,t.height.rule))}}class _X extends Me{constructor(t){super("w:tr");this.options=t,this.root.push(new Fj(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 Fx)}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 Mj extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class Uj extends Me{constructor(){super("Properties");this.root.push(new Mj({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class Bj extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{xmlns:"xmlns"})}}class Pj extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class Eo extends Me{constructor(t,e){super("Default");this.root.push(new Pj({contentType:t,extension:e}))}}class Lj extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class ia extends Me{constructor(t,e){super("Override");this.root.push(new Lj({contentType:t,partName:e}))}}class jj extends Me{constructor(){super("Types");this.root.push(new Bj({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 Wj 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 Ux("dcterms:created")),this.root.push(new Ux("dcterms:modified"))}}class Ux extends Me{constructor(t){super(t);this.root.push(new fl({type:"dcterms:W3CDTF"})),this.root.push(dU(new Date))}}class zj extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class Hj extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class $j extends Me{constructor(t,e){super("property");this.root.push(new Hj({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t.toString(),name:e.name})),this.root.push(new Vj(e.value))}}class Vj extends Me{constructor(t){super("vt:lpwstr");this.root.push(t)}}class qj extends Me{constructor(t){super("Properties");Ue(this,"nextId"),Ue(this,"properties",[]),this.root.push(new zj({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 $j(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)]:[]]}),Gj=({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")]:[]]}),Xj=({name:r,index:t,fontKey:e,characterSet:n})=>Gj({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}`}}),Kj=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)=>Xj({name:t.name,index:e+1,fontKey:t.fontKey}))});class Zj{constructor(t){Ue(this,"fontTable"),Ue(this,"relationships"),Ue(this,"fontOptionsWithKey",[]),this.options=t,this.fontOptionsWithKey=t.map(e=>es(sr({},e),{fontKey:_P()})),this.fontTable=Kj(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 Yj extends ht{constructor(){super(...arguments);Ue(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 Jj=class extends N_{constructor(t,e){super("w:ftr",e);Ue(this,"refId"),this.refId=t,e||this.root.push(new Yj({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 Qj{constructor(t,e,n){Ue(this,"footer"),Ue(this,"relationships"),this.media=t,this.footer=new Jj(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 eW extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class tW extends Me{constructor(){super("w:footnoteRef")}}class rW extends ol{constructor(){super({style:"FootnoteReference"});this.root.push(new tW)}}const Bx={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class jm extends Me{constructor(t){super("w:footnote");this.root.push(new eW({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 rW),this.root.push(n)}}}class nW extends Me{constructor(){super("w:continuationSeparator")}}class iW extends ol{constructor(){super({});this.root.push(new nW)}}class aW extends Me{constructor(){super("w:separator")}}class oW extends ol{constructor(){super({});this.root.push(new aW)}}class sW extends ht{constructor(){super(...arguments);Ue(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(){super("w:footnotes");this.root.push(new sW({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:Bx.SEPERATOR,children:[new hl({spacing:{after:0,line:240,lineRule:Fm.AUTO},children:[new oW]})]});this.root.push(t);const e=new jm({id:0,type:Bx.CONTINUATION_SEPERATOR,children:[new hl({spacing:{after:0,line:240,lineRule:Fm.AUTO},children:[new iW]})]});this.root.push(e)}createFootNote(t,e){const n=new jm({id:t,children:e});this.root.push(n)}}class cW{constructor(){Ue(this,"footnotess"),Ue(this,"relationships"),this.footnotess=new uW,this.relationships=new $u}get View(){return this.footnotess}get Relationships(){return this.relationships}}class lW extends ht{constructor(){super(...arguments);Ue(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 fW=class extends N_{constructor(t,e){super("w:hdr",e);Ue(this,"refId"),this.refId=t,e||this.root.push(new lW({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 hW{constructor(t,e,n){Ue(this,"header"),Ue(this,"relationships"),this.media=t,this.header=new fW(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 dW{constructor(){Ue(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 pW extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}}class mW extends Me{constructor(t){super("w:numFmt");this.root.push(new an({val:t}))}}class gW extends Me{constructor(t){super("w:lvlText");this.root.push(new an({val:t}))}}class vW extends Me{constructor(t){super("w:lvlJc");this.root.push(new an({val:t}))}}class yW extends Me{constructor(t){super("w:suff");this.root.push(new an({val:t}))}}class bW extends Me{constructor(){super("w:isLgl")}}class wW 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(Ue(this,"paragraphProperties"),Ue(this,"runProperties"),this.root.push(new xm("w:start",ti(a))),e&&this.root.push(new mW(e)),s&&this.root.push(new yW(s)),u&&this.root.push(new bW),n&&this.root.push(new gW(n)),this.root.push(new vW(i)),this.paragraphProperties=new Vu(o&&o.paragraph),this.runProperties=new Us(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 pW({ilvl:ti(t),tentative:1}))}}class _W extends wW{}class xW extends Me{constructor(t){super("w:multiLevelType");this.root.push(new an({val:t}))}}class EW extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class Px extends Me{constructor(t,e){super("w:abstractNum");Ue(this,"id"),this.root.push(new EW({abstractNumId:ti(t),restartNumberingAfterBreak:0})),this.root.push(new xW("hybridMultilevel")),this.id=t;for(const n of e)this.root.push(new _W(n))}}class AW extends Me{constructor(t){super("w:abstractNumId");this.root.push(new an({val:t}))}}class TW extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{numId:"w:numId"})}}class Lx extends Me{constructor(t){super("w:num");if(Ue(this,"numId"),Ue(this,"reference"),Ue(this,"instance"),this.numId=t.numId,this.reference=t.reference,this.instance=t.instance,this.root.push(new TW({numId:ti(t.numId)})),this.root.push(new AW(ti(t.abstractNumId))),t.overrideLevels&&t.overrideLevels.length)for(const e of t.overrideLevels)this.root.push(new DW(e.num,e.start))}}class SW extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{ilvl:"w:ilvl"})}}class DW extends Me{constructor(t,e){super("w:lvlOverride");this.root.push(new SW({ilvl:t})),e!==void 0&&this.root.push(new OW(e))}}class CW extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{val:"w:val"})}}class OW extends Me{constructor(t){super("w:startOverride");this.root.push(new CW({val:t}))}}class IW extends Me{constructor(t){super("w:numbering");Ue(this,"abstractNumberingMap",new Map),Ue(this,"concreteNumberingMap",new Map),Ue(this,"referenceConfigMap",new Map),Ue(this,"abstractNumUniqueNumericId",gP()),Ue(this,"concreteNumUniqueNumericId",vP()),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 Px(this.abstractNumUniqueNumericId(),[{level:0,format:Ao.BULLET,text:"\u25CF",alignment:La.LEFT,style:{paragraph:{indent:{left:xa(.5),hanging:xa(.25)}}}},{level:1,format:Ao.BULLET,text:"\u25CB",alignment:La.LEFT,style:{paragraph:{indent:{left:xa(1),hanging:xa(.25)}}}},{level:2,format:Ao.BULLET,text:"\u25A0",alignment:La.LEFT,style:{paragraph:{indent:{left:2160,hanging:xa(.25)}}}},{level:3,format:Ao.BULLET,text:"\u25CF",alignment:La.LEFT,style:{paragraph:{indent:{left:2880,hanging:xa(.25)}}}},{level:4,format:Ao.BULLET,text:"\u25CB",alignment:La.LEFT,style:{paragraph:{indent:{left:3600,hanging:xa(.25)}}}},{level:5,format:Ao.BULLET,text:"\u25A0",alignment:La.LEFT,style:{paragraph:{indent:{left:4320,hanging:xa(.25)}}}},{level:6,format:Ao.BULLET,text:"\u25CF",alignment:La.LEFT,style:{paragraph:{indent:{left:5040,hanging:xa(.25)}}}},{level:7,format:Ao.BULLET,text:"\u25CF",alignment:La.LEFT,style:{paragraph:{indent:{left:5760,hanging:xa(.25)}}}},{level:8,format:Ao.BULLET,text:"\u25CF",alignment:La.LEFT,style:{paragraph:{indent:{left:6480,hanging:xa(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new Lx({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 Px(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 Lx(s))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class kW extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class RW extends Me{constructor(t){super("w:compatSetting");this.root.push(new kW({version:t,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class NW extends Me{constructor(t){super("w:compat");t.version&&this.root.push(new RW(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 FW extends ht{constructor(){super(...arguments);Ue(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 MW extends Me{constructor(t){var e,n,i,a;super("w:settings");this.root.push(new FW({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 xm("w:defaultTabStop",t.defaultTabStop)),this.root.push(new NW(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 jx extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{val:"w:val"})}}class UW extends Me{constructor(t){super("w:name");this.root.push(new jx({val:t}))}}class BW extends Me{constructor(t){super("w:uiPriority");this.root.push(new jx({val:ti(t)}))}}class PW extends ht{constructor(){super(...arguments);Ue(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class Wx extends Me{constructor(t,e){super("w:style");this.root.push(new PW(t)),e.name&&this.root.push(new UW(e.name)),e.basedOn&&this.root.push(new Fs("w:basedOn",e.basedOn)),e.next&&this.root.push(new Fs("w:next",e.next)),e.link&&this.root.push(new Fs("w:link",e.link)),e.uiPriority!==void 0&&this.root.push(new BW(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 Wx{constructor(t){super({type:"paragraph",styleId:t.id},t);Ue(this,"paragraphProperties"),Ue(this,"runProperties"),this.paragraphProperties=new Vu(t.paragraph),this.runProperties=new Us(t.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class Qh extends Wx{constructor(t){super({type:"character",styleId:t.id},sr({uiPriority:99,unhideWhenUsed:!0},t));Ue(this,"runProperties"),this.runProperties=new Us(t.run),this.root.push(this.runProperties)}}class ns extends Jh{constructor(t){super(sr({basedOn:"Normal",next:"Normal",quickFormat:!0},t))}}class LW extends ns{constructor(t){super(sr({id:"Title",name:"Title"},t))}}class jW extends ns{constructor(t){super(sr({id:"Heading1",name:"Heading 1"},t))}}class WW extends ns{constructor(t){super(sr({id:"Heading2",name:"Heading 2"},t))}}class zW extends ns{constructor(t){super(sr({id:"Heading3",name:"Heading 3"},t))}}class HW extends ns{constructor(t){super(sr({id:"Heading4",name:"Heading 4"},t))}}class $W extends ns{constructor(t){super(sr({id:"Heading5",name:"Heading 5"},t))}}class VW extends ns{constructor(t){super(sr({id:"Heading6",name:"Heading 6"},t))}}class qW extends ns{constructor(t){super(sr({id:"Strong",name:"Strong"},t))}}class GW extends Jh{constructor(t){super(sr({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},t))}}class XW 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:Fm.AUTO}},run:{size:20}},t))}}class KW extends Qh{constructor(t){super(sr({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},t))}}class ZW extends Qh{constructor(t){super(sr({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},t))}}class YW extends Qh{constructor(t){super(sr({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:j_.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 JW extends Me{constructor(t){super("w:pPrDefault");this.root.push(new Vu(t))}}class QW extends Me{constructor(t){super("w:rPrDefault");this.root.push(new Us(t))}}class ez extends Me{constructor(t){super("w:docDefaults");Ue(this,"runPropertiesDefaults"),Ue(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new QW(t.run),this.paragraphPropertiesDefaults=new JW(t.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class tz{newInstance(t){const e=R_.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 sU(n.attributes),importedStyles:i.map(o=>bm(o))})}}class zx{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 ez((e=t.document)!=null?e:{}),new LW(sr({run:{size:56}},t.title)),new jW(sr({run:{color:"2E74B5",size:32}},t.heading1)),new WW(sr({run:{color:"2E74B5",size:26}},t.heading2)),new zW(sr({run:{color:"1F4D78",size:24}},t.heading3)),new HW(sr({run:{color:"2E74B5",italics:!0}},t.heading4)),new $W(sr({run:{color:"2E74B5"}},t.heading5)),new VW(sr({run:{color:"1F4D78"}},t.heading6)),new qW(sr({run:{bold:!0}},t.strong)),new GW(t.listParagraph||{}),new YW(t.hyperlink||{}),new KW(t.footnoteReference||{}),new XW(t.footnoteText||{}),new ZW(t.footnoteTextChar||{})]}}}class AX{constructor(t){Ue(this,"currentRelationshipId",1),Ue(this,"documentWrapper"),Ue(this,"headers",[]),Ue(this,"footers",[]),Ue(this,"coreProperties"),Ue(this,"numbering"),Ue(this,"media"),Ue(this,"fileRelationships"),Ue(this,"footnotesWrapper"),Ue(this,"settings"),Ue(this,"contentTypes"),Ue(this,"customProperties"),Ue(this,"appProperties"),Ue(this,"styles"),Ue(this,"comments"),Ue(this,"fontWrapper");var e,n,i,a,o,s,u,c;if(this.coreProperties=new Wj(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 IW(t.numbering?t.numbering:{config:[]}),this.comments=new CL((a=t.comments)!=null?a:{children:[]}),this.fileRelationships=new $u,this.customProperties=new qj((o=t.customProperties)!=null?o:[]),this.appProperties=new Uj,this.footnotesWrapper=new cW,this.contentTypes=new jj,this.documentWrapper=new Ox({background:t.background}),this.settings=new MW({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 dW,t.externalStyles!==void 0){const l=new tz;this.styles=l.newInstance(t.externalStyles)}else if(t.styles){const d=new zx().newInstance(t.styles.default);this.styles=new Wm(sr(sr({},d),t.styles))}else{const l=new zx;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 Zj((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 hW(this.media,this.currentRelationshipId++);for(const n of t.options.children)e.add(n);return this.addHeaderToDocument(e),e}createFooter(t){const e=new Qj(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 TX{constructor(t={children:[]}){Ue(this,"options"),this.options=t}}class SX{constructor(t={children:[]}){Ue(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 Hx={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,E=a.getTypeOf(u)!=="string";y<u.length;)b=v-y,d=E?(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,E,D=f.file,F=f.compression,z=v!==c.utf8encode,W=s.transformTo("string",v(D.name)),U=s.transformTo("string",c.utf8encode(D.name)),G=D.comment,ee=s.transformTo("string",v(G)),P=s.transformTo("string",c.utf8encode(G)),I=U.length!==D.name.length,S=P.length!==G.length,C="",_="",w="",x=D.dir,A=D.date,k={crc32:0,compressedSize:0,uncompressedSize:0};g&&!m||(k.crc32=f.crc32,k.compressedSize=f.compressedSize,k.uncompressedSize=f.uncompressedSize);var R=0;g&&(R|=8),z||!I&&!S||(R|=2048);var M=0,X=0;x&&(M|=16),y==="UNIX"?(X=798,M|=function(te,$){var q=te;return te||(q=$?16893:33204),(65535&q)<<16}(D.unixPermissions,x)):(X=20,M|=function(te){return 63&(te||0)}(D.dosPermissions)),b=A.getUTCHours(),b<<=6,b|=A.getUTCMinutes(),b<<=5,b|=A.getUTCSeconds()/2,E=A.getUTCFullYear()-1980,E<<=4,E|=A.getUTCMonth()+1,E<<=5,E|=A.getUTCDate(),I&&(_=a(1,1)+a(l(W),4)+U,C+="up"+a(_.length,2)+_),S&&(w=a(1,1)+a(l(ee),4)+P,C+="uc"+a(w.length,2)+w);var K="";return K+=`
|
|
\0`,K+=a(R,2),K+=F.magic,K+=a(b,2),K+=a(E,2),K+=a(k.crc32,4),K+=a(k.compressedSize,4),K+=a(k.uncompressedSize,4),K+=a(W.length,2),K+=a(C.length,2),{fileRecord:d.LOCAL_FILE_HEADER+K+W+C,dirRecord:d.CENTRAL_FILE_HEADER+a(X,2)+K+a(ee.length,2)+"\0\0\0\0"+a(M,4)+a(p,4)+W+C+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,E,D){var F=s.transformTo("string",D(E));return d.CENTRAL_DIRECTORY_END+"\0\0\0\0"+a(y,2)+a(y,2)+a(v,4)+a(b,4)+a(F.length,2)+F}(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 E=v||b,D=a[E];if(!D)throw new Error(E+" is not a valid compression method !");return D}(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],E=b.fileNameStr,D=a.resolve(b.fileNameStr);g.file(D,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(D).unsafeOriginalName=E)}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(D,F,z){var W,U=s.getTypeOf(F),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&&(D=y(D)),G.createFolders&&(W=p(D))&&v.call(this,W,!0);var ee=U==="string"&&G.binary===!1&&G.base64===!1;z&&z.binary!==void 0||(G.binary=!ee),(F instanceof d&&F.uncompressedSize===0||G.dir||!F||F.length===0)&&(G.base64=!1,G.binary=!0,F="",G.compression="STORE",U="string");var P=null;P=F instanceof d||F instanceof u?F:g.isNode&&g.isStream(F)?new m(D,F):s.prepareContent(D,F,G.binary,G.optimizedBinaryString,G.base64);var I=new h(D,P,G);this.files[D]=I}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(D){D.slice(-1)==="/"&&(D=D.substring(0,D.length-1));var F=D.lastIndexOf("/");return 0<F?D.substring(0,F):""},y=function(D){return D.slice(-1)!=="/"&&(D+="/"),D},v=function(D,F){return F=F!==void 0?F:l.createFolders,D=y(D),this.files[D]||a.call(this,D,null,{dir:!0,createFolders:F}),this.files[D]};function b(D){return Object.prototype.toString.call(D)==="[object RegExp]"}var E={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(D){var F,z,W;for(F in this.files)W=this.files[F],(z=F.slice(this.root.length,F.length))&&F.slice(0,this.root.length)===this.root&&D(z,W)},filter:function(D){var F=[];return this.forEach(function(z,W){D(z,W)&&F.push(W)}),F},file:function(D,F,z){if(arguments.length!==1)return D=this.root+D,a.call(this,D,F,z),this;if(b(D)){var W=D;return this.filter(function(G,ee){return!ee.dir&&W.test(G)})}var U=this.files[this.root+D];return U&&!U.dir?U:null},folder:function(D){if(!D)return this;if(b(D))return this.filter(function(U,G){return G.dir&&D.test(U)});var F=this.root+D,z=v.call(this,F),W=this.clone();return W.root=z.name,W},remove:function(D){D=this.root+D;var F=this.files[D];if(F||(D.slice(-1)!=="/"&&(D+="/"),F=this.files[D]),F&&!F.dir)delete this.files[D];else for(var z=this.filter(function(U,G){return G.name.slice(0,D.length)===D}),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(D){var F,z={};try{if((z=s.extend(D||{},{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||"";F=f.generateWorker(this,z,W)}catch(U){(F=new u("error")).error(U)}return new c(F,z.type||"string",z.mimeType)},generateAsync:function(D,F){return this.generateInternalStream(D).accumulate(F)},generateNodeStream:function(D,F){return(D=D||{}).type||(D.type="nodebuffer"),this.generateInternalStream(D).toNodejsStream(F)}};n.exports=E},{"./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,E=g._outputType,D=g._mimeType;g.on("data",function(F,z){v.push(F),m&&m(z)}).on("error",function(F){v=[],y(F)}).on("end",function(){try{var F=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)}}(E,function(z,W){var U,G=0,ee=null,P=0;for(U=0;U<W.length;U++)P+=W[U].length;switch(z){case"string":return W.join("");case"array":return Array.prototype.concat.apply([],W);case"uint8array":for(ee=new Uint8Array(P),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),D);p(F)}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,E=g.length,D=0;for(v=0;v<E;v++)(64512&(p=g.charCodeAt(v)))==55296&&v+1<E&&(64512&(y=g.charCodeAt(v+1)))==56320&&(p=65536+(p-55296<<10)+(y-56320),v++),D+=p<128?1:p<2048?2:p<65536?3:4;for(m=o.uint8array?new Uint8Array(D):new Array(D),v=b=0;b<D;v++)(64512&(p=g.charCodeAt(v)))==55296&&v+1<E&&(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,E=new Array(2*b);for(m=p=0;m<b;)if((y=g[m++])<128)E[p++]=y;else if(4<(v=c[y]))E[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?E[p++]=65533:y<65536?E[p++]=y:(y-=65536,E[p++]=55296|y>>10&1023,E[p++]=56320|1023&y)}return E.length!==p&&(E.subarray?E=E.subarray(0,p):E.length=p),a.applyFromCharCode(E)}(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 E;for((b=b||v.length)>v.length&&(b=v.length),E=b-1;0<=E&&(192&v[E])==128;)E--;return E<0||E===0?b:E+c[v[E]]>b?E: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,E=m.length;if(E<=y)return String.fromCharCode.apply(null,m);for(;b<E;)p==="array"||p==="nodebuffer"?v.push(String.fromCharCode.apply(null,m.slice(b,Math.min(b+y,E)))):v.push(String.fromCharCode.apply(null,m.subarray(b,Math.min(b+y,E)))),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(E){return a.blob&&(E instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(E))!==-1)&&typeof FileReader!="undefined"?new u.Promise(function(D,F){var z=new FileReader;z.onload=function(W){D(W.target.result)},z.onerror=function(W){F(W.target.error)},z.readAsArrayBuffer(E)}):E}).then(function(E){var D=i.getTypeOf(E);return D?(D==="arraybuffer"?E=i.transformTo("uint8array",E):D==="string"&&(b?E=o.decode(E):y&&v!==!0&&(E=function(F){return l(F,a.uint8array?new Uint8Array(F.length):new Array(F.length))}(E))),E):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 E;try{E=v(b)}catch(D){return s.reject(y,D)}E===y?s.reject(y,new TypeError("Cannot resolve promise with itself")):s.resolve(y,E)})}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 E(z){b||(b=!0,s.reject(y,z))}function D(z){b||(b=!0,s.resolve(y,z))}var F=p(function(){v(D,E)});F.status==="error"&&E(F.value)}function p(y,v){var b={};try{b.value=y(v),b.status="success"}catch(E){b.status="error",b.value=E}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 E=b.value;if(E)m(y,E);else{y.state=c,y.outcome=v;for(var D=-1,F=y.queue.length;++D<F;)y.queue[D].callFulfilled(v)}return y},s.reject=function(y,v){y.state=u,y.outcome=v;for(var b=-1,E=y.queue.length;++b<E;)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,E=!1;if(!b)return this.resolve([]);for(var D=new Array(b),F=0,z=-1,W=new this(o);++z<b;)U(y[z],z);return W;function U(G,ee){v.resolve(G).then(function(P){D[ee]=P,++F!==b||E||(E=!0,s.resolve(W,D))},function(P){E||(E=!0,s.reject(W,P))})}},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,E=!1;if(!b)return this.resolve([]);for(var D=-1,F=new this(o);++D<b;)z=y[D],v.resolve(z).then(function(W){E||(E=!0,s.resolve(F,W))},function(W){E||(E=!0,s.reject(F,W))});var z;return F}},{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 E;if(E=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,E))!==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,E,D=this.strm,F=this.options.chunkSize;if(this.ended)return!1;E=v===~~v?v:v===!0?4:0,typeof y=="string"?D.input=s.string2buf(y):l.call(y)==="[object ArrayBuffer]"?D.input=new Uint8Array(y):D.input=y,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new o.Buf8(F),D.next_out=0,D.avail_out=F),(b=a.deflate(D,E))!==1&&b!==d)return this.onEnd(b),!(this.ended=!0);D.avail_out!==0&&(D.avail_in!==0||E!==4&&E!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(o.shrinkBuf(D.output,D.next_out))):this.onData(o.shrinkBuf(D.output,D.next_out)))}while((0<D.avail_in||D.avail_out===0)&&b!==1);return E===4?(b=a.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===d):E!==2||(this.onEnd(d),!(D.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,E,D,F,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&&(F=typeof U=="string"?s.string2buf(U):h.call(U)==="[object ArrayBuffer]"?new Uint8Array(U):U,y=a.inflateSetDictionary(this.strm,F)),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),E=z.next_out-b,D=s.buf2string(z.output,b),z.next_out=E,z.avail_out=W-E,E&&o.arraySet(z.output,z.output,b,E,0),this.onData(D)):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,E=286,D=30,F=19,z=2*E+1,W=15,U=3,G=258,ee=G+U+1,P=42,I=113,S=1,C=2,_=3,w=4;function x(j,ue){return j.msg=l[ue],ue}function A(j){return(j<<1)-(4<j?9:0)}function k(j){for(var ue=j.length;0<=--ue;)j[ue]=0}function R(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 M(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,R(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,B,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(B=G-(ve-Z),Z=ve-G,oe<B){if(j.match_start=ue,ce<=(oe=B))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,B,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;B=j.head[--ue],j.head[ue]=de<=B?B-de:0,--Q;);for(ue=Q=de;B=j.prev[--ue],j.prev[ue]=de<=B?B-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,B;;){if(j.lookahead<ee){if($(j),j.lookahead<ee&&ue===d)return S;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(B=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 B=s._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++;if(B&&(M(j,!1),j.strm.avail_out===0))return S}return j.insert=j.strstart<U-1?j.strstart:U-1,ue===h?(M(j,!0),j.strm.avail_out===0?_:w):j.last_lit&&(M(j,!1),j.strm.avail_out===0)?S:C}function O(j,ue){for(var Q,B,H;;){if(j.lookahead<ee){if($(j),j.lookahead<ee&&ue===d)return S;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,B=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++,B&&(M(j,!1),j.strm.avail_out===0))return S}else if(j.match_available){if((B=s._tr_tally(j,0,j.window[j.strstart-1]))&&M(j,!1),j.strstart++,j.lookahead--,j.strm.avail_out===0)return S}else j.match_available=1,j.strstart++,j.lookahead--}return j.match_available&&(B=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?(M(j,!0),j.strm.avail_out===0?_:w):j.last_lit&&(M(j,!1),j.strm.avail_out===0)?S:C}function L(j,ue,Q,B,H){this.good_length=j,this.max_lazy=ue,this.nice_length=Q,this.max_chain=B,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*D+1)),this.bl_tree=new o.Buf16(2*(2*F+1)),k(this.dyn_ltree),k(this.dyn_dtree),k(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*E+1),k(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*E+1),k(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?P:I,j.adler=ue.wrap===2?0:1,ue.last_flush=d,s._tr_init(ue),f):x(j,g)}function re(j){var ue=J(j);return ue===f&&function(Q){Q.window_size=2*Q.w_size,k(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,B,H,Z){if(!j)return g;var oe=1;if(ue===m&&(ue=6),B<0?(oe=0,B=-B):15<B&&(oe=2,B-=16),H<1||b<H||Q!==v||B<8||15<B||ue<0||9<ue||Z<0||p<Z)return x(j,g);B===8&&(B=9);var ce=new V;return(j.state=ce).strm=j,ce.wrap=oe,ce.gzhead=null,ce.w_bits=B,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 S;if(j.lookahead===0)break}j.strstart+=j.lookahead,j.lookahead=0;var B=j.block_start+Q;if((j.strstart===0||j.strstart>=B)&&(j.lookahead=j.strstart-B,j.strstart=B,M(j,!1),j.strm.avail_out===0)||j.strstart-j.block_start>=j.w_size-ee&&(M(j,!1),j.strm.avail_out===0))return S}return j.insert=0,ue===h?(M(j,!0),j.strm.avail_out===0?_:w):(j.strstart>j.block_start&&(M(j,!1),j.strm.avail_out),S)}),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,O),new L(8,16,32,32,O),new L(8,16,128,128,O),new L(8,32,128,256,O),new L(32,128,258,1024,O),new L(32,258,258,4096,O)],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,B,H,Z;if(!j||!j.state||5<ue||ue<0)return j?x(j,g):g;if(B=j.state,!j.output||!j.input&&j.avail_in!==0||B.status===666&&ue!==h)return x(j,j.avail_out===0?-5:g);if(B.strm=j,Q=B.last_flush,B.last_flush=ue,B.status===P)if(B.wrap===2)j.adler=0,X(B,31),X(B,139),X(B,8),B.gzhead?(X(B,(B.gzhead.text?1:0)+(B.gzhead.hcrc?2:0)+(B.gzhead.extra?4:0)+(B.gzhead.name?8:0)+(B.gzhead.comment?16:0)),X(B,255&B.gzhead.time),X(B,B.gzhead.time>>8&255),X(B,B.gzhead.time>>16&255),X(B,B.gzhead.time>>24&255),X(B,B.level===9?2:2<=B.strategy||B.level<2?4:0),X(B,255&B.gzhead.os),B.gzhead.extra&&B.gzhead.extra.length&&(X(B,255&B.gzhead.extra.length),X(B,B.gzhead.extra.length>>8&255)),B.gzhead.hcrc&&(j.adler=c(j.adler,B.pending_buf,B.pending,0)),B.gzindex=0,B.status=69):(X(B,0),X(B,0),X(B,0),X(B,0),X(B,0),X(B,B.level===9?2:2<=B.strategy||B.level<2?4:0),X(B,3),B.status=I);else{var oe=v+(B.w_bits-8<<4)<<8;oe|=(2<=B.strategy||B.level<2?0:B.level<6?1:B.level===6?2:3)<<6,B.strstart!==0&&(oe|=32),oe+=31-oe%31,B.status=I,K(B,oe),B.strstart!==0&&(K(B,j.adler>>>16),K(B,65535&j.adler)),j.adler=1}if(B.status===69)if(B.gzhead.extra){for(H=B.pending;B.gzindex<(65535&B.gzhead.extra.length)&&(B.pending!==B.pending_buf_size||(B.gzhead.hcrc&&B.pending>H&&(j.adler=c(j.adler,B.pending_buf,B.pending-H,H)),R(j),H=B.pending,B.pending!==B.pending_buf_size));)X(B,255&B.gzhead.extra[B.gzindex]),B.gzindex++;B.gzhead.hcrc&&B.pending>H&&(j.adler=c(j.adler,B.pending_buf,B.pending-H,H)),B.gzindex===B.gzhead.extra.length&&(B.gzindex=0,B.status=73)}else B.status=73;if(B.status===73)if(B.gzhead.name){H=B.pending;do{if(B.pending===B.pending_buf_size&&(B.gzhead.hcrc&&B.pending>H&&(j.adler=c(j.adler,B.pending_buf,B.pending-H,H)),R(j),H=B.pending,B.pending===B.pending_buf_size)){Z=1;break}Z=B.gzindex<B.gzhead.name.length?255&B.gzhead.name.charCodeAt(B.gzindex++):0,X(B,Z)}while(Z!==0);B.gzhead.hcrc&&B.pending>H&&(j.adler=c(j.adler,B.pending_buf,B.pending-H,H)),Z===0&&(B.gzindex=0,B.status=91)}else B.status=91;if(B.status===91)if(B.gzhead.comment){H=B.pending;do{if(B.pending===B.pending_buf_size&&(B.gzhead.hcrc&&B.pending>H&&(j.adler=c(j.adler,B.pending_buf,B.pending-H,H)),R(j),H=B.pending,B.pending===B.pending_buf_size)){Z=1;break}Z=B.gzindex<B.gzhead.comment.length?255&B.gzhead.comment.charCodeAt(B.gzindex++):0,X(B,Z)}while(Z!==0);B.gzhead.hcrc&&B.pending>H&&(j.adler=c(j.adler,B.pending_buf,B.pending-H,H)),Z===0&&(B.status=103)}else B.status=103;if(B.status===103&&(B.gzhead.hcrc?(B.pending+2>B.pending_buf_size&&R(j),B.pending+2<=B.pending_buf_size&&(X(B,255&j.adler),X(B,j.adler>>8&255),j.adler=0,B.status=I)):B.status=I),B.pending!==0){if(R(j),j.avail_out===0)return B.last_flush=-1,f}else if(j.avail_in===0&&A(ue)<=A(Q)&&ue!==h)return x(j,-5);if(B.status===666&&j.avail_in!==0)return x(j,-5);if(j.avail_in!==0||B.lookahead!==0||ue!==d&&B.status!==666){var ce=B.strategy===2?function(ne,se){for(var fe;;){if(ne.lookahead===0&&($(ne),ne.lookahead===0)){if(se===d)return S;break}if(ne.match_length=0,fe=s._tr_tally(ne,0,ne.window[ne.strstart]),ne.lookahead--,ne.strstart++,fe&&(M(ne,!1),ne.strm.avail_out===0))return S}return ne.insert=0,se===h?(M(ne,!0),ne.strm.avail_out===0?_:w):ne.last_lit&&(M(ne,!1),ne.strm.avail_out===0)?S:C}(B,ue):B.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 S;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&&(M(ne,!1),ne.strm.avail_out===0))return S}return ne.insert=0,se===h?(M(ne,!0),ne.strm.avail_out===0?_:w):ne.last_lit&&(M(ne,!1),ne.strm.avail_out===0)?S:C}(B,ue):a[B.level].func(B,ue);if(ce!==_&&ce!==w||(B.status=666),ce===S||ce===_)return j.avail_out===0&&(B.last_flush=-1),f;if(ce===C&&(ue===1?s._tr_align(B):ue!==5&&(s._tr_stored_block(B,0,0,!1),ue===3&&(k(B.head),B.lookahead===0&&(B.strstart=0,B.block_start=0,B.insert=0))),R(j),j.avail_out===0))return B.last_flush=-1,f}return ue!==h?f:B.wrap<=0?1:(B.wrap===2?(X(B,255&j.adler),X(B,j.adler>>8&255),X(B,j.adler>>16&255),X(B,j.adler>>24&255),X(B,255&j.total_in),X(B,j.total_in>>8&255),X(B,j.total_in>>16&255),X(B,j.total_in>>24&255)):(K(B,j.adler>>>16),K(B,65535&j.adler)),R(j),0<B.wrap&&(B.wrap=-B.wrap),B.pending!==0?f:1)},i.deflateEnd=function(j){var ue;return j&&j.state?(ue=j.state.status)!==P&&ue!==69&&ue!==73&&ue!==91&&ue!==103&&ue!==I&&ue!==666?x(j,g):(j.state=null,ue===I?x(j,-3):f):g},i.deflateSetDictionary=function(j,ue){var Q,B,H,Z,oe,ce,ne,se,fe=ue.length;if(!j||!j.state||(Z=(Q=j.state).wrap)===2||Z===1&&Q.status!==P||Q.lookahead)return g;for(Z===1&&(j.adler=u(j.adler,ue,fe,0)),Q.wrap=0,fe>=Q.w_size&&(Z===0&&(k(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(B=Q.strstart,H=Q.lookahead-(U-1);Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[B+U-1])&Q.hash_mask,Q.prev[B&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=B,B++,--H;);Q.strstart=B,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,E,D,F,z,W,U,G,ee,P,I,S,C;s=a.state,u=a.next_in,S=a.input,c=u+(a.avail_in-5),l=a.next_out,C=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,E=s.lencode,D=s.distcode,F=(1<<s.lenbits)-1,z=(1<<s.distbits)-1;e:do{b<15&&(v+=S[u++]<<b,b+=8,v+=S[u++]<<b,b+=8),W=E[v&F];t:for(;;){if(v>>>=U=W>>>24,b-=U,(U=W>>>16&255)==0)C[l++]=65535&W;else{if(!(16&U)){if((64&U)==0){W=E[(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+=S[u++]<<b,b+=8),G+=v&(1<<U)-1,v>>>=U,b-=U),b<15&&(v+=S[u++]<<b,b+=8,v+=S[u++]<<b,b+=8),W=D[v&z];r:for(;;){if(v>>>=U=W>>>24,b-=U,!(16&(U=W>>>16&255))){if((64&U)==0){W=D[(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+=S[u++]<<b,(b+=8)<U&&(v+=S[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(I=y,(P=0)===p){if(P+=g-U,U<G){for(G-=U;C[l++]=y[P++],--U;);P=l-ee,I=C}}else if(p<U){if(P+=g+p-U,(U-=p)<G){for(G-=U;C[l++]=y[P++],--U;);if(P=0,p<G){for(G-=U=p;C[l++]=y[P++],--U;);P=l-ee,I=C}}}else if(P+=p-U,U<G){for(G-=U;C[l++]=y[P++],--U;);P=l-ee,I=C}for(;2<G;)C[l++]=I[P++],C[l++]=I[P++],C[l++]=I[P++],G-=3;G&&(C[l++]=I[P++],1<G&&(C[l++]=I[P++]))}else{for(P=l-ee;C[l++]=C[P++],C[l++]=C[P++],C[l++]=C[P++],2<(G-=3););G&&(C[l++]=C[P++],1<G&&(C[l++]=C[P++]))}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(P){return(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<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(P){var I;return P&&P.state?(I=P.state,P.total_in=P.total_out=I.total=0,P.msg="",I.wrap&&(P.adler=1&I.wrap),I.mode=g,I.last=0,I.havedict=0,I.dmax=32768,I.head=null,I.hold=0,I.bits=0,I.lencode=I.lendyn=new a.Buf32(m),I.distcode=I.distdyn=new a.Buf32(p),I.sane=1,I.back=-1,h):f}function E(P){var I;return P&&P.state?((I=P.state).wsize=0,I.whave=0,I.wnext=0,b(P)):f}function D(P,I){var S,C;return P&&P.state?(C=P.state,I<0?(S=0,I=-I):(S=1+(I>>4),I<48&&(I&=15)),I&&(I<8||15<I)?f:(C.window!==null&&C.wbits!==I&&(C.window=null),C.wrap=S,C.wbits=I,E(P))):f}function F(P,I){var S,C;return P?(C=new v,(P.state=C).window=null,(S=D(P,I))!==h&&(P.state=null),S):f}var z,W,U=!0;function G(P){if(U){var I;for(z=new a.Buf32(512),W=new a.Buf32(32),I=0;I<144;)P.lens[I++]=8;for(;I<256;)P.lens[I++]=9;for(;I<280;)P.lens[I++]=7;for(;I<288;)P.lens[I++]=8;for(c(l,P.lens,0,288,z,0,P.work,{bits:9}),I=0;I<32;)P.lens[I++]=5;c(d,P.lens,0,32,W,0,P.work,{bits:5}),U=!1}P.lencode=z,P.lenbits=9,P.distcode=W,P.distbits=5}function ee(P,I,S,C){var _,w=P.state;return w.window===null&&(w.wsize=1<<w.wbits,w.wnext=0,w.whave=0,w.window=new a.Buf8(w.wsize)),C>=w.wsize?(a.arraySet(w.window,I,S-w.wsize,w.wsize,0),w.wnext=0,w.whave=w.wsize):(C<(_=w.wsize-w.wnext)&&(_=C),a.arraySet(w.window,I,S-C,_,w.wnext),(C-=_)?(a.arraySet(w.window,I,S-C,C,0),w.wnext=C,w.whave=w.wsize):(w.wnext+=_,w.wnext===w.wsize&&(w.wnext=0),w.whave<w.wsize&&(w.whave+=_))),0}i.inflateReset=E,i.inflateReset2=D,i.inflateResetKeep=b,i.inflateInit=function(P){return F(P,15)},i.inflateInit2=F,i.inflate=function(P,I){var S,C,_,w,x,A,k,R,M,X,K,te,$,q,O,L,V,J,re,ae,j,ue,Q,B,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(!P||!P.state||!P.output||!P.input&&P.avail_in!==0)return f;(S=P.state).mode===12&&(S.mode=13),x=P.next_out,_=P.output,k=P.avail_out,w=P.next_in,C=P.input,A=P.avail_in,R=S.hold,M=S.bits,X=A,K=k,ue=h;e:for(;;)switch(S.mode){case g:if(S.wrap===0){S.mode=13;break}for(;M<16;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if(2&S.wrap&&R===35615){Z[S.check=0]=255&R,Z[1]=R>>>8&255,S.check=s(S.check,Z,2,0),M=R=0,S.mode=2;break}if(S.flags=0,S.head&&(S.head.done=!1),!(1&S.wrap)||(((255&R)<<8)+(R>>8))%31){P.msg="incorrect header check",S.mode=30;break}if((15&R)!=8){P.msg="unknown compression method",S.mode=30;break}if(M-=4,j=8+(15&(R>>>=4)),S.wbits===0)S.wbits=j;else if(j>S.wbits){P.msg="invalid window size",S.mode=30;break}S.dmax=1<<j,P.adler=S.check=1,S.mode=512&R?10:12,M=R=0;break;case 2:for(;M<16;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if(S.flags=R,(255&S.flags)!=8){P.msg="unknown compression method",S.mode=30;break}if(57344&S.flags){P.msg="unknown header flags set",S.mode=30;break}S.head&&(S.head.text=R>>8&1),512&S.flags&&(Z[0]=255&R,Z[1]=R>>>8&255,S.check=s(S.check,Z,2,0)),M=R=0,S.mode=3;case 3:for(;M<32;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}S.head&&(S.head.time=R),512&S.flags&&(Z[0]=255&R,Z[1]=R>>>8&255,Z[2]=R>>>16&255,Z[3]=R>>>24&255,S.check=s(S.check,Z,4,0)),M=R=0,S.mode=4;case 4:for(;M<16;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}S.head&&(S.head.xflags=255&R,S.head.os=R>>8),512&S.flags&&(Z[0]=255&R,Z[1]=R>>>8&255,S.check=s(S.check,Z,2,0)),M=R=0,S.mode=5;case 5:if(1024&S.flags){for(;M<16;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}S.length=R,S.head&&(S.head.extra_len=R),512&S.flags&&(Z[0]=255&R,Z[1]=R>>>8&255,S.check=s(S.check,Z,2,0)),M=R=0}else S.head&&(S.head.extra=null);S.mode=6;case 6:if(1024&S.flags&&(A<(te=S.length)&&(te=A),te&&(S.head&&(j=S.head.extra_len-S.length,S.head.extra||(S.head.extra=new Array(S.head.extra_len)),a.arraySet(S.head.extra,C,w,te,j)),512&S.flags&&(S.check=s(S.check,C,te,w)),A-=te,w+=te,S.length-=te),S.length))break e;S.length=0,S.mode=7;case 7:if(2048&S.flags){if(A===0)break e;for(te=0;j=C[w+te++],S.head&&j&&S.length<65536&&(S.head.name+=String.fromCharCode(j)),j&&te<A;);if(512&S.flags&&(S.check=s(S.check,C,te,w)),A-=te,w+=te,j)break e}else S.head&&(S.head.name=null);S.length=0,S.mode=8;case 8:if(4096&S.flags){if(A===0)break e;for(te=0;j=C[w+te++],S.head&&j&&S.length<65536&&(S.head.comment+=String.fromCharCode(j)),j&&te<A;);if(512&S.flags&&(S.check=s(S.check,C,te,w)),A-=te,w+=te,j)break e}else S.head&&(S.head.comment=null);S.mode=9;case 9:if(512&S.flags){for(;M<16;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if(R!==(65535&S.check)){P.msg="header crc mismatch",S.mode=30;break}M=R=0}S.head&&(S.head.hcrc=S.flags>>9&1,S.head.done=!0),P.adler=S.check=0,S.mode=12;break;case 10:for(;M<32;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}P.adler=S.check=y(R),M=R=0,S.mode=11;case 11:if(S.havedict===0)return P.next_out=x,P.avail_out=k,P.next_in=w,P.avail_in=A,S.hold=R,S.bits=M,2;P.adler=S.check=1,S.mode=12;case 12:if(I===5||I===6)break e;case 13:if(S.last){R>>>=7&M,M-=7&M,S.mode=27;break}for(;M<3;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}switch(S.last=1&R,M-=1,3&(R>>>=1)){case 0:S.mode=14;break;case 1:if(G(S),S.mode=20,I!==6)break;R>>>=2,M-=2;break e;case 2:S.mode=17;break;case 3:P.msg="invalid block type",S.mode=30}R>>>=2,M-=2;break;case 14:for(R>>>=7&M,M-=7&M;M<32;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if((65535&R)!=(R>>>16^65535)){P.msg="invalid stored block lengths",S.mode=30;break}if(S.length=65535&R,M=R=0,S.mode=15,I===6)break e;case 15:S.mode=16;case 16:if(te=S.length){if(A<te&&(te=A),k<te&&(te=k),te===0)break e;a.arraySet(_,C,w,te,x),A-=te,w+=te,k-=te,x+=te,S.length-=te;break}S.mode=12;break;case 17:for(;M<14;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if(S.nlen=257+(31&R),R>>>=5,M-=5,S.ndist=1+(31&R),R>>>=5,M-=5,S.ncode=4+(15&R),R>>>=4,M-=4,286<S.nlen||30<S.ndist){P.msg="too many length or distance symbols",S.mode=30;break}S.have=0,S.mode=18;case 18:for(;S.have<S.ncode;){for(;M<3;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}S.lens[oe[S.have++]]=7&R,R>>>=3,M-=3}for(;S.have<19;)S.lens[oe[S.have++]]=0;if(S.lencode=S.lendyn,S.lenbits=7,Q={bits:S.lenbits},ue=c(0,S.lens,0,19,S.lencode,0,S.work,Q),S.lenbits=Q.bits,ue){P.msg="invalid code lengths set",S.mode=30;break}S.have=0,S.mode=19;case 19:for(;S.have<S.nlen+S.ndist;){for(;L=(H=S.lencode[R&(1<<S.lenbits)-1])>>>16&255,V=65535&H,!((O=H>>>24)<=M);){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if(V<16)R>>>=O,M-=O,S.lens[S.have++]=V;else{if(V===16){for(B=O+2;M<B;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if(R>>>=O,M-=O,S.have===0){P.msg="invalid bit length repeat",S.mode=30;break}j=S.lens[S.have-1],te=3+(3&R),R>>>=2,M-=2}else if(V===17){for(B=O+3;M<B;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}M-=O,j=0,te=3+(7&(R>>>=O)),R>>>=3,M-=3}else{for(B=O+7;M<B;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}M-=O,j=0,te=11+(127&(R>>>=O)),R>>>=7,M-=7}if(S.have+te>S.nlen+S.ndist){P.msg="invalid bit length repeat",S.mode=30;break}for(;te--;)S.lens[S.have++]=j}}if(S.mode===30)break;if(S.lens[256]===0){P.msg="invalid code -- missing end-of-block",S.mode=30;break}if(S.lenbits=9,Q={bits:S.lenbits},ue=c(l,S.lens,0,S.nlen,S.lencode,0,S.work,Q),S.lenbits=Q.bits,ue){P.msg="invalid literal/lengths set",S.mode=30;break}if(S.distbits=6,S.distcode=S.distdyn,Q={bits:S.distbits},ue=c(d,S.lens,S.nlen,S.ndist,S.distcode,0,S.work,Q),S.distbits=Q.bits,ue){P.msg="invalid distances set",S.mode=30;break}if(S.mode=20,I===6)break e;case 20:S.mode=21;case 21:if(6<=A&&258<=k){P.next_out=x,P.avail_out=k,P.next_in=w,P.avail_in=A,S.hold=R,S.bits=M,u(P,K),x=P.next_out,_=P.output,k=P.avail_out,w=P.next_in,C=P.input,A=P.avail_in,R=S.hold,M=S.bits,S.mode===12&&(S.back=-1);break}for(S.back=0;L=(H=S.lencode[R&(1<<S.lenbits)-1])>>>16&255,V=65535&H,!((O=H>>>24)<=M);){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if(L&&(240&L)==0){for(J=O,re=L,ae=V;L=(H=S.lencode[ae+((R&(1<<J+re)-1)>>J)])>>>16&255,V=65535&H,!(J+(O=H>>>24)<=M);){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}R>>>=J,M-=J,S.back+=J}if(R>>>=O,M-=O,S.back+=O,S.length=V,L===0){S.mode=26;break}if(32&L){S.back=-1,S.mode=12;break}if(64&L){P.msg="invalid literal/length code",S.mode=30;break}S.extra=15&L,S.mode=22;case 22:if(S.extra){for(B=S.extra;M<B;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}S.length+=R&(1<<S.extra)-1,R>>>=S.extra,M-=S.extra,S.back+=S.extra}S.was=S.length,S.mode=23;case 23:for(;L=(H=S.distcode[R&(1<<S.distbits)-1])>>>16&255,V=65535&H,!((O=H>>>24)<=M);){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if((240&L)==0){for(J=O,re=L,ae=V;L=(H=S.distcode[ae+((R&(1<<J+re)-1)>>J)])>>>16&255,V=65535&H,!(J+(O=H>>>24)<=M);){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}R>>>=J,M-=J,S.back+=J}if(R>>>=O,M-=O,S.back+=O,64&L){P.msg="invalid distance code",S.mode=30;break}S.offset=V,S.extra=15&L,S.mode=24;case 24:if(S.extra){for(B=S.extra;M<B;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}S.offset+=R&(1<<S.extra)-1,R>>>=S.extra,M-=S.extra,S.back+=S.extra}if(S.offset>S.dmax){P.msg="invalid distance too far back",S.mode=30;break}S.mode=25;case 25:if(k===0)break e;if(te=K-k,S.offset>te){if((te=S.offset-te)>S.whave&&S.sane){P.msg="invalid distance too far back",S.mode=30;break}$=te>S.wnext?(te-=S.wnext,S.wsize-te):S.wnext-te,te>S.length&&(te=S.length),q=S.window}else q=_,$=x-S.offset,te=S.length;for(k<te&&(te=k),k-=te,S.length-=te;_[x++]=q[$++],--te;);S.length===0&&(S.mode=21);break;case 26:if(k===0)break e;_[x++]=S.length,k--,S.mode=21;break;case 27:if(S.wrap){for(;M<32;){if(A===0)break e;A--,R|=C[w++]<<M,M+=8}if(K-=k,P.total_out+=K,S.total+=K,K&&(P.adler=S.check=S.flags?s(S.check,_,K,x-K):o(S.check,_,K,x-K)),K=k,(S.flags?R:y(R))!==S.check){P.msg="incorrect data check",S.mode=30;break}M=R=0}S.mode=28;case 28:if(S.wrap&&S.flags){for(;M<32;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if(R!==(4294967295&S.total)){P.msg="incorrect length check",S.mode=30;break}M=R=0}S.mode=29;case 29:ue=1;break e;case 30:ue=-3;break e;case 31:return-4;case 32:default:return f}return P.next_out=x,P.avail_out=k,P.next_in=w,P.avail_in=A,S.hold=R,S.bits=M,(S.wsize||K!==P.avail_out&&S.mode<30&&(S.mode<27||I!==4))&&ee(P,P.output,P.next_out,K-P.avail_out)?(S.mode=31,-4):(X-=P.avail_in,K-=P.avail_out,P.total_in+=X,P.total_out+=K,S.total+=K,S.wrap&&K&&(P.adler=S.check=S.flags?s(S.check,_,K,P.next_out-K):o(S.check,_,K,P.next_out-K)),P.data_type=S.bits+(S.last?64:0)+(S.mode===12?128:0)+(S.mode===20||S.mode===15?256:0),(X==0&&K===0||I===4)&&ue===h&&(ue=-5),ue)},i.inflateEnd=function(P){if(!P||!P.state)return f;var I=P.state;return I.window&&(I.window=null),P.state=null,h},i.inflateGetHeader=function(P,I){var S;return P&&P.state?(2&(S=P.state).wrap)==0?f:((S.head=I).done=!1,h):f},i.inflateSetDictionary=function(P,I){var S,C=I.length;return P&&P.state?(S=P.state).wrap!==0&&S.mode!==11?f:S.mode===11&&o(1,I,C,0)!==S.check?-3:ee(P,I,C,C)?(S.mode=31,-4):(S.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,E,D,F,z,W,U,G,ee=y.bits,P=0,I=0,S=0,C=0,_=0,w=0,x=0,A=0,k=0,R=0,M=null,X=0,K=new a.Buf16(16),te=new a.Buf16(16),$=null,q=0;for(P=0;P<=15;P++)K[P]=0;for(I=0;I<f;I++)K[d[h+I]]++;for(_=ee,C=15;1<=C&&K[C]===0;C--);if(C<_&&(_=C),C===0)return g[m++]=20971520,g[m++]=20971520,y.bits=1,0;for(S=1;S<C&&K[S]===0;S++);for(_<S&&(_=S),P=A=1;P<=15;P++)if(A<<=1,(A-=K[P])<0)return-1;if(0<A&&(l===0||C!==1))return-1;for(te[1]=0,P=1;P<15;P++)te[P+1]=te[P]+K[P];for(I=0;I<f;I++)d[h+I]!==0&&(p[te[d[h+I]]++]=I);if(z=l===0?(M=$=p,19):l===1?(M=o,X-=257,$=s,q-=257,256):(M=u,$=c,-1),P=S,F=m,x=I=R=0,E=-1,D=(k=1<<(w=_))-1,l===1&&852<k||l===2&&592<k)return 1;for(;;){for(W=P-x,G=p[I]<z?(U=0,p[I]):p[I]>z?(U=$[q+p[I]],M[X+p[I]]):(U=96,0),v=1<<P-x,S=b=1<<w;g[F+(R>>x)+(b-=v)]=W<<24|U<<16|G|0,b!==0;);for(v=1<<P-1;R&v;)v>>=1;if(v!==0?(R&=v-1,R+=v):R=0,I++,--K[P]==0){if(P===C)break;P=d[h+p[I]]}if(_<P&&(R&D)!==E){for(x===0&&(x=_),F+=S,A=1<<(w=P-x);w+x<C&&!((A-=K[w+x])<=0);)w++,A<<=1;if(k+=1<<w,l===1&&852<k||l===2&&592<k)return 1;g[E=R&D]=_<<24|w<<16|F-m|0}}return R!==0&&(g[F+R]=P-x<<24|64<<16|0),y.bits=_,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,E=16,D=17,F=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 P=new Array(2*f);u(P);var I=new Array(512);u(I);var S=new Array(256);u(S);var C=new Array(l);u(C);var _,w,x,A=new Array(f);function k(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 R(H,Z){this.dyn_tree=H,this.max_code=0,this.stat_desc=Z}function M(H){return H<256?I[H]:I[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 O(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=S[ne])+d+1,Z),(fe=z[se])!==0&&K(H,ne-=C[se],fe),te(H,se=M(--ce),oe),(fe=W[se])!==0&&K(H,ce-=A[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,Fe){var He,qe,et,Be,Ge,tt,rt=Fe.dyn_tree,lt=Fe.max_code,Nt=Fe.stat_desc.static_tree,Wt=Fe.stat_desc.has_stree,dt=Fe.stat_desc.extra_bits,Pt=Fe.stat_desc.extra_base,_t=Fe.stat_desc.max_length,gt=0;for(Be=0;Be<=p;Be++)Se.bl_count[Be]=0;for(rt[2*Se.heap[Se.heap_max]+1]=0,He=Se.heap_max+1;He<m;He++)_t<(Be=rt[2*rt[2*(qe=Se.heap[He])+1]+1]+1)&&(Be=_t,gt++),rt[2*qe+1]=Be,lt<qe||(Se.bl_count[Be]++,Ge=0,Pt<=qe&&(Ge=dt[qe-Pt]),tt=rt[2*qe],Se.opt_len+=tt*(Be+Ge),Wt&&(Se.static_len+=tt*(Nt[2*qe+1]+Ge)));if(gt!==0){do{for(Be=_t-1;Se.bl_count[Be]===0;)Be--;Se.bl_count[Be]--,Se.bl_count[Be+1]+=2,Se.bl_count[_t]--,gt-=2}while(0<gt);for(Be=_t;Be!==0;Be--)for(qe=Se.bl_count[Be];qe!==0;)lt<(et=Se.heap[--He])||(rt[2*et+1]!==Be&&(Se.opt_len+=(Be-rt[2*et+1])*rt[2*et],rt[2*et+1]=Be),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*E]++):de<=10?H.bl_tree[2*D]++:H.bl_tree[2*F]++,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,E,H.bl_tree),K(H,de-3,2)):de<=10?(te(H,D,H.bl_tree),K(H,de-3,3)):(te(H,F,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(A);var Q=!1;function B(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(C[ne]=ce,Z=0;Z<1<<z[ne];Z++)S[ce++]=ne;for(S[ce-1]=ne,ne=se=0;ne<16;ne++)for(A[ne]=se,Z=0;Z<1<<W[ne];Z++)I[se++]=ne;for(se>>=7;ne<f;ne++)for(A[ne]=se<<7,Z=0;Z<1<<W[ne]-7;Z++)I[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++)P[2*Z+1]=5,P[2*Z]=$(Z,5);_=new k(ee,z,d+1,h,p),w=new k(P,W,0,f,p),x=new k(new Array(0),U,0,g,v)}(),Q=!0),H.l_desc=new R(H.dyn_ltree,_),H.d_desc=new R(H.dyn_dtree,w),H.bl_desc=new R(H.bl_tree,x),H.bi_buf=0,H.bi_valid=0,O(H)},i._tr_stored_block=B,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?B(H,Z,oe,ce):H.strategy===4||se===ne?(K(H,2+(ce?1:0),3),re(H,ee,P)):(K(H,4+(ce?1:0),3),function(de,ve,Ee,Se){var Fe;for(K(de,ve-257,5),K(de,Ee-1,5),K(de,Se-4,4),Fe=0;Fe<Se;Fe++)K(de,de.bl_tree[2*G[Fe]+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)),O(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*(S[oe]+d+1)]++,H.dyn_dtree[2*M(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(E){tr.nextTick(function(){v(E)})}:function(){if(o.postMessage&&!o.importScripts){var E=!0,D=o.onmessage;return o.onmessage=function(){E=!1},o.postMessage("","*"),o.onmessage=D,E}}()?(d="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",b,!1):o.attachEvent("onmessage",b),function(E){o.postMessage(d+E,"*")}):o.MessageChannel?((l=new MessageChannel).port1.onmessage=function(E){v(E.data)},function(E){l.port2.postMessage(E)}):m&&"onreadystatechange"in m.createElement("script")?(c=m.documentElement,function(E){var D=m.createElement("script");D.onreadystatechange=function(){v(E),D.onreadystatechange=null,c.removeChild(D),D=null},c.appendChild(D)}):function(E){setTimeout(v,0,E)},p.setImmediate=function(E){typeof E!="function"&&(E=new Function(""+E));for(var D=new Array(arguments.length-1),F=0;F<D.length;F++)D[F]=arguments[F+1];var z={callback:E,args:D};return f[h]=z,u(h),h++},p.clearImmediate=y}function y(E){delete f[E]}function v(E){if(g)setTimeout(v,0,E);else{var D=f[E];if(D){g=!0;try{(function(F){var z=F.callback,W=F.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)}})(D)}finally{y(E),g=!1}}}}function b(E){E.source===o&&typeof E.data=="string"&&E.data.indexOf(d)===0&&v(+E.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)})})(Hx);var rz=Hx.exports;const nz=o1(rz);var td={exports:{}},iz={"&":"&",'"':""","'":"'","<":"<",">":">"};function az(r){return r&&r.replace?r.replace(/([&"<>'])/g,function(t,e){return iz[e]}):r}var oz=az,zm=oz,$x=pm.Stream,sz=" ";function uz(r,t){typeof t!="object"&&(t={indent:t});var e=t.stream?new $x:null,n="",i=!1,a=t.indent?t.indent===!0?sz: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 $x,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 cz(){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 lz(r,t){return new Array(t||0).join(r||"")}function rd(r,t,e){e=e||0;var n=lz(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(fz(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 fz(r,t){return r+'="'+zm(t)+'"'}td.exports=uz;td.exports.element=td.exports.Element=cz;var hz=td.exports;const hn=o1(hz),Vx=0,qx=32,dz=32,pz=(r,t)=>{const e=t.replace(/-/g,"");if(e.length!==dz)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(Vx,qx).map((u,c)=>u^i[c%i.length]);return Buffer.concat([r.slice(0,Vx),o,r.slice(qx)])};class mz{format(t,e={stack:[]}){const n=t.prepForXml(e);if(n)return n;throw Error("XMLComponent did not format correctly")}}class gz{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 vz{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 yz{constructor(){Ue(this,"formatter"),Ue(this,"imageReplacer"),Ue(this,"numberingReplacer"),this.formatter=new mz,this.imageReplacer=new gz,this.numberingReplacer=new vz}compile(t,e){const n=new nz,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`,pz(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 bz={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},dl=r=>r===!0?bz.WITH_2_BLANKS:r===!1?void 0:r;class wz{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}}Ue(wz,"compiler",new yz);var Ga={},on={exports:{}};(function(r,t){(function(e,n){r.exports=n()})(st,function(){var e="1.13.7",n=typeof self=="object"&&self.self===self&&self||typeof st=="object"&&st.global===st&&st||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"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],D=Math.pow(2,53)-1;function F(le,pe){return pe=pe==null?le.length-1:+pe,function(){for(var we=Math.max(arguments.length-pe,0),xe=Array(we),Ce=0;Ce<we;Ce++)xe[Ce]=arguments[Ce+pe];switch(pe){case 0:return le.call(this,xe);case 1:return le.call(this,arguments[0],xe);case 2:return le.call(this,arguments[0],arguments[1],xe)}var De=Array(pe+1);for(Ce=0;Ce<pe;Ce++)De[Ce]=arguments[Ce];return De[pe]=xe,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 P(le){var pe="[object "+le+"]";return function(we){return c.call(we)===pe}}var I=P("String"),S=P("Number"),C=P("Date"),_=P("RegExp"),w=P("Error"),x=P("Symbol"),A=P("ArrayBuffer"),k=P("Function"),R=n.document&&n.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof R!="function"&&(k=function(le){return typeof le=="function"||!1});var M=k,X=P("Object"),K=h&&(!/\[native code\]/.test(String(DataView))||X(new DataView(new ArrayBuffer(8)))),te=typeof Map!="undefined"&&X(new Map),$=P("DataView");function q(le){return le!=null&&M(le.getInt8)&&A(le.buffer)}var O=K?q:$,L=f||P("Array");function V(le,pe){return le!=null&&l.call(le,pe)}var J=P("Arguments");(function(){J(arguments)||(J=function(le){return V(le,"callee")})})();var re=J;function ae(le){return!x(le)&&v(le)&&!isNaN(parseFloat(le))}function j(le){return S(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<=D}}function B(le){return function(pe){return pe==null?void 0:pe[le]}}var H=B("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)&&!O(le):Z(le)&&oe.test(c.call(le))}var ne=d?ce:ue(!1),se=B("length");function fe(le){for(var pe={},we=le.length,xe=0;xe<we;++xe)pe[le[xe]]=!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=E.length,xe=le.constructor,Ce=M(xe)&&xe.prototype||a,De="constructor";for(V(le,De)&&!pe.contains(De)&&pe.push(De);we--;)De=E[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)||I(le)||re(le))?pe===0:se(ve(le))===0}function Se(le,pe){var we=ve(pe),xe=we.length;if(le==null)return!xe;for(var Ce=Object(le),De=0;De<xe;De++){var Ve=we[De];if(pe[Ve]!==Ce[Ve]||!(Ve in Ce))return!1}return!0}function Fe(le){if(le instanceof Fe)return le;if(!(this instanceof Fe))return new Fe(le);this._wrapped=le}Fe.VERSION=e,Fe.prototype.value=function(){return this._wrapped},Fe.prototype.valueOf=Fe.prototype.toJSON=Fe.prototype.value,Fe.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,xe){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:Be(le,pe,we,xe)}function Be(le,pe,we,xe){le instanceof Fe&&(le=le._wrapped),pe instanceof Fe&&(pe=pe._wrapped);var Ce=c.call(le);if(Ce!==c.call(pe))return!1;if(K&&Ce=="[object Object]"&&O(le)){if(!O(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 Be(He(le),He(pe),we,xe)}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&&!(M(ut)&&ut instanceof ut&&M(Vt)&&Vt instanceof Vt)&&"constructor"in le&&"constructor"in pe)return!1}we=we||[],xe=xe||[];for(var jt=we.length;jt--;)if(we[jt]===le)return xe[jt]===pe;if(we.push(le),xe.push(pe),De){if(jt=le.length,jt!==pe.length)return!1;for(;jt--;)if(!et(le[jt],pe[jt],we,xe))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,xe)))return!1}return we.pop(),xe.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 xe=tt(we);if(se(xe))return!1;for(var Ce=0;Ce<pe;Ce++)if(!M(we[le[Ce]]))return!1;return le!==_t||!M(we[lt])}}var lt="forEach",Nt="has",Wt=["clear","delete"],dt=["get",Nt,"set"],Pt=Wt.concat(lt,dt),_t=Wt.concat(dt),gt=["add"].concat(Wt,lt,Nt),hr=te?rt(Pt):P("Map"),nr=te?rt(_t):P("WeakMap"),Tt=te?rt(gt):P("Set"),Kt=P("WeakSet");function rr(le){for(var pe=ve(le),we=pe.length,xe=Array(we),Ce=0;Ce<we;Ce++)xe[Ce]=le[pe[Ce]];return xe}function Ct(le){for(var pe=ve(le),we=pe.length,xe=Array(we),Ce=0;Ce<we;Ce++)xe[Ce]=[pe[Ce],le[pe[Ce]]];return xe}function ir(le){for(var pe={},we=ve(le),xe=0,Ce=we.length;xe<Ce;xe++)pe[le[we[xe]]]=we[xe];return pe}function ar(le){var pe=[];for(var we in le)M(le[we])&&pe.push(we);return pe.sort()}function kt(le,pe){return function(we){var xe=arguments.length;if(pe&&(we=Object(we)),xe<2||we==null)return we;for(var Ce=1;Ce<xe;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 xt(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 ot(le,pe){var we=xt(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]}Fe.toPath=vt;function St(le){return Fe.toPath(le)}function Dt(le,pe){for(var we=pe.length,xe=0;xe<we;xe++){if(le==null)return;le=le[pe[xe]]}return we?le:void 0}function Ht(le,pe,we){var xe=Dt(le,St(pe));return U(xe)?we:xe}function jr(le,pe){pe=St(pe);for(var we=pe.length,xe=0;xe<we;xe++){var Ce=pe[xe];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(xe){return le.call(pe,xe)};case 3:return function(xe,Ce,De){return le.call(pe,xe,Ce,De)};case 4:return function(xe,Ce,De,Ve){return le.call(pe,xe,Ce,De,Ve)}}return function(){return le.apply(pe,arguments)}}function be(le,pe,we){return le==null?gr:M(le)?Xr(le,pe,we):z(le)&&!L(le)?Pr(le):Gr(le)}function Re(le,pe){return be(le,pe,1/0)}Fe.iteratee=Re;function We(le,pe,we){return Fe.iteratee!==Re?Fe.iteratee(le,pe):be(le,pe,we)}function Ze(le,pe,we){pe=We(pe,we);for(var xe=ve(le),Ce=xe.length,De={},Ve=0;Ve<Ce;Ve++){var ut=xe[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 xe=Array(Math.max(0,le));pe=Xr(pe,we,1);for(var Ce=0;Ce<le;Ce++)xe[Ce]=pe(Ce);return xe}function $t(le,pe){return pe==null&&(pe=le,le=0),le+Math.floor(Math.random()*(pe-le+1))}var Ft=Date.now||function(){return new Date().getTime()};function Lt(le){var pe=function(De){return le[De]},we="(?:"+ve(le).join("|")+")",xe=RegExp(we),Ce=RegExp(we,"g");return function(De){return De=De==null?"":""+De,xe.test(De)?De.replace(Ce,pe):De}}var Et={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},dr=Lt(Et),xr=ir(Et),Jt=Lt(xr),Sr=Fe.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Nr=/(.)^/,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,Fe.templateSettings);var xe=RegExp([(pe.escape||Nr).source,(pe.interpolate||Nr).source,(pe.evaluate||Nr).source].join("|")+"|$","g"),Ce=0,De="__p+='";le.replace(xe,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,Fe)};return Vt.source="function("+Ve+`){
|
|
`+De+"}",Vt}function la(le,pe,we){pe=St(pe);var xe=pe.length;if(!xe)return M(we)?we.call(le):we;for(var Ce=0;Ce<xe;Ce++){var De=le==null?void 0:le[pe[Ce]];De===void 0&&(De=we,Ce=xe),le=M(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=Fe(le);return pe._chain=!0,pe}function Ni(le,pe,we,xe,Ce){if(!(xe instanceof pe))return le.apply(we,Ce);var De=xt(le.prototype),Ve=le.apply(De,Ce);return z(Ve)?Ve:De}var oi=F(function(le,pe){var we=oi.placeholder,xe=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 Ni(le,xe,this,this,Ve)};return xe});oi.placeholder=Fe;var gn=F(function(le,pe,we){if(!M(le))throw new TypeError("Bind must be called on a function");var xe=F(function(Ce){return Ni(le,xe,pe,this,we.concat(Ce))});return xe}),Er=Q(se);function _n(le,pe,we,xe){if(xe=xe||[],!pe&&pe!==0)pe=1/0;else if(pe<=0)return xe.concat(le);for(var Ce=xe.length,De=0,Ve=se(le);De<Ve;De++){var ut=le[De];if(Er(ut)&&(L(ut)||re(ut)))if(pe>1)_n(ut,pe-1,we,xe),Ce=xe.length;else for(var Vt=0,jt=ut.length;Vt<jt;)xe[Ce++]=ut[Vt++];else we||(xe[Ce++]=ut)}return xe}var Ca=F(function(le,pe){pe=_n(pe,!1,!1);var we=pe.length;if(we<1)throw new Error("bindAll must be passed function names");for(;we--;){var xe=pe[we];le[xe]=gn(le[xe],le)}return le});function ko(le,pe){var we=function(xe){var Ce=we.cache,De=""+(pe?pe.apply(this,arguments):xe);return V(Ce,De)||(Ce[De]=le.apply(this,arguments)),Ce[De]};return we.cache={},we}var qi=F(function(le,pe,we){return setTimeout(function(){return le.apply(null,we)},pe)}),Fi=oi(qi,Fe,1);function fs(le,pe,we){var xe,Ce,De,Ve,ut=0;we||(we={});var Vt=function(){ut=we.leading===!1?0:Ft(),xe=null,Ve=le.apply(Ce,De),xe||(Ce=De=null)},jt=function(){var yn=Ft();!ut&&we.leading===!1&&(ut=yn);var tn=pe-(yn-ut);return Ce=this,De=arguments,tn<=0||tn>pe?(xe&&(clearTimeout(xe),xe=null),ut=yn,Ve=le.apply(Ce,De),xe||(Ce=De=null)):!xe&&we.trailing!==!1&&(xe=setTimeout(Vt,tn)),Ve};return jt.cancel=function(){clearTimeout(xe),ut=0,xe=Ce=De=null},jt}function Qa(le,pe,we){var xe,Ce,De,Ve,ut,Vt=function(){var yn=Ft()-Ce;pe>yn?xe=setTimeout(Vt,pe-yn):(xe=null,we||(Ve=le.apply(ut,De)),xe||(De=ut=null))},jt=F(function(yn){return ut=this,De=yn,Ce=Ft(),xe||(xe=setTimeout(Vt,pe),we&&(Ve=le.apply(ut,De))),Ve});return jt.cancel=function(){clearTimeout(xe),xe=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,xe=le[pe].apply(this,arguments);we--;)xe=le[we].call(this,xe);return xe}}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 No=oi(eo,2);function Gl(le,pe,we){pe=We(pe,we);for(var xe=ve(le),Ce,De=0,Ve=xe.length;De<Ve;De++)if(Ce=xe[De],pe(le[Ce],Ce,le))return Ce}function Xl(le){return function(pe,we,xe){we=We(we,xe);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,xe){we=We(we,xe,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(xe,Ce,De){var Ve=0,ut=se(xe);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(xe,Ce),xe[De]===Ce?De:-1;if(Ce!==Ce)return De=pe(u.call(xe,Ve,ut),j),De>=0?De+Ve:-1;for(De=le>0?Ve:ut-1;De>=0&&De<ut;De+=le)if(xe[De]===Ce)return De;return-1}}var Jl=Yl(1,ps,Zl),zd=Yl(-1,Kl);function Dr(le,pe,we){var xe=Er(le)?ps:Gl,Ce=xe(le,pe,we);if(Ce!==void 0&&Ce!==-1)return le[Ce]}function Fr(le,pe){return Dr(le,Pr(pe))}function fa(le,pe,we){pe=Xr(pe,we);var xe,Ce;if(Er(le))for(xe=0,Ce=le.length;xe<Ce;xe++)pe(le[xe],xe,le);else{var De=ve(le);for(xe=0,Ce=De.length;xe<Ce;xe++)pe(le[De[xe]],De[xe],le)}return le}function to(le,pe,we){pe=We(pe,we);for(var xe=!Er(le)&&ve(le),Ce=(xe||le).length,De=Array(Ce),Ve=0;Ve<Ce;Ve++){var ut=xe?xe[Ve]:Ve;De[Ve]=pe(le[ut],ut,le)}return De}function Ql(le){var pe=function(we,xe,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=xe(Ce,we[jt],jt,we)}return Ce};return function(we,xe,Ce,De){var Ve=arguments.length>=3;return pe(we,Xr(xe,De,4),Ce,Ve)}}var dc=Ql(1),ef=Ql(-1);function Fo(le,pe,we){var xe=[];return pe=We(pe,we),fa(le,function(Ce,De,Ve){pe(Ce,De,Ve)&&xe.push(Ce)}),xe}function tf(le,pe,we){return Fo(le,Oa(We(pe)),we)}function rf(le,pe,we){pe=We(pe,we);for(var xe=!Er(le)&&ve(le),Ce=(xe||le).length,De=0;De<Ce;De++){var Ve=xe?xe[De]:De;if(!pe(le[Ve],Ve,le))return!1}return!0}function vn(le,pe,we){pe=We(pe,we);for(var xe=!Er(le)&&ve(le),Ce=(xe||le).length,De=0;De<Ce;De++){var Ve=xe?xe[De]:De;if(pe(le[Ve],Ve,le))return!0}return!1}function Mi(le,pe,we,xe){return Er(le)||(le=rr(le)),(typeof we!="number"||xe)&&(we=0),Jl(le,pe,we)>=0}var ro=F(function(le,pe,we){var xe,Ce;return M(pe)?Ce=pe:(pe=St(pe),xe=pe.slice(0,-1),pe=pe[pe.length-1]),to(le,function(De){var Ve=Ce;if(!Ve){if(xe&&xe.length&&(De=Dt(De,xe)),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 Fo(le,Pr(pe))}function si(le,pe,we){var xe=-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>xe&&(xe=De)}else pe=We(pe,we),fa(le,function(jt,yn,tn){Ve=pe(jt,yn,tn),(Ve>Ce||Ve===-1/0&&xe===-1/0)&&(xe=jt,Ce=Ve)});return xe}function nf(le,pe,we){var xe=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<xe&&(xe=De)}else pe=We(pe,we),fa(le,function(jt,yn,tn){Ve=pe(jt,yn,tn),(Ve<Ce||Ve===1/0&&xe===1/0)&&(xe=jt,Ce=Ve)});return xe}var af=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function mc(le){return le?L(le)?u.call(le):I(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 xe=mc(le),Ce=se(xe);pe=Math.max(Math.min(pe,Ce),0);for(var De=Ce-1,Ve=0;Ve<pe;Ve++){var ut=$t(Ve,De),Vt=xe[Ve];xe[Ve]=xe[ut],xe[ut]=Vt}return xe.slice(0,pe)}function of(le){return gc(le,1/0)}function sf(le,pe,we){var xe=0;return pe=We(pe,we),qs(to(le,function(Ce,De,Ve){return{value:Ce,index:xe++,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,xe,Ce){var De=pe?[[],[]]:{};return xe=We(xe,Ce),fa(we,function(Ve,ut){var Vt=xe(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=F(function(le,pe){var we={},xe=pe[0];if(le==null)return we;M(xe)?(pe.length>1&&(xe=Xr(xe,pe[1])),pe=tt(le)):(xe=Gs,pe=_n(pe,!1,!1),le=Object(le));for(var Ce=0,De=pe.length;Ce<De;Ce++){var Ve=pe[Ce],ut=le[Ve];xe(ut,Ve,le)&&(we[Ve]=ut)}return we}),Wr=F(function(le,pe){var we=pe[0],xe;return M(we)?(we=Oa(we),pe.length>1&&(xe=pe[1])):(pe=to(_n(pe,!1,!1),String),we=function(Ce,De){return!Mi(pe,De)}),Xs(le,we,xe)});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 Fo(le,Boolean)}function qd(le,pe){return _n(le,pe,!1)}var cf=F(function(le,pe){return pe=_n(pe,!0,!0),Fo(le,function(we){return!Mi(pe,we)})}),lf=F(function(le,pe){return cf(le,pe)});function Mo(le,pe,we,xe){G(pe)||(xe=we,we=pe,pe=!1),we!=null&&(we=We(we,xe));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 Uo=F(function(le){return Mo(_n(le,!0,!0))});function Gd(le){for(var pe=[],we=arguments.length,xe=0,Ce=se(le);xe<Ce;xe++){var De=le[xe];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),xe=0;xe<pe;xe++)we[xe]=qs(le,xe);return we}var ff=F(Zs);function yc(le,pe){for(var we={},xe=0,Ce=se(le);xe<Ce;xe++)pe?we[le[xe]]=pe[xe]:we[le[xe][0]]=le[xe][1];return we}function bc(le,pe,we){pe==null&&(pe=le||0,le=0),we||(we=pe<le?-1:1);for(var xe=Math.max(Math.ceil((pe-le)/we),0),Ce=Array(xe),De=0;De<xe;De++,le+=we)Ce[De]=le;return Ce}function hf(le,pe){if(pe==null||pe<1)return[];for(var we=[],xe=0,Ce=le.length;xe<Ce;)we.push(u.call(le,xe,xe+=pe));return we}function wc(le,pe){return le._chain?Fe(pe).chain():pe}function Ys(le){return fa(ar(le),function(pe){var we=Fe[pe]=le[pe];Fe.prototype[pe]=function(){var xe=[this._wrapped];return s.apply(xe,arguments),wc(this,we.apply(Fe,xe))}}),Fe}fa(["pop","push","reverse","shift","sort","splice","unshift"],function(le){var pe=i[le];Fe.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];Fe.prototype[le]=function(){var we=this._wrapped;return we!=null&&(we=pe.apply(we,arguments)),wc(this,we)}});var _c={__proto__:null,VERSION:e,restArguments:F,isObject:z,isNull:W,isUndefined:U,isBoolean:G,isElement:ee,isString:I,isNumber:S,isDate:C,isRegExp:_,isError:w,isSymbol:x,isArrayBuffer:A,isDataView:O,isArray:L,isFunction:M,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:ot,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:Ft,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:Fi,throttle:fs,debounce:Qa,wrap:hs,negate:Oa,compose:Ro,after:ds,before:eo,once:No,findKey:Gl,findIndex:ps,findLastIndex:Kl,sortedIndex:Zl,indexOf:Jl,lastIndexOf:zd,find:Dr,detect:Dr,findWhere:Fr,each:fa,forEach:fa,map:to,collect:to,reduce:dc,foldl:dc,inject:dc,reduceRight:ef,foldr:ef,filter:Fo,select:Fo,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:Uo,intersection:Gd,difference:cf,unzip:Zs,transpose:Zs,zip:ff,object:yc,range:bc,chunk:hf,mixin:Ys,default:Fe},xc=Ys(_c);return xc._=xc,xc})})(on);var $m={},Bn={},Gx={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 _z={}.hasOwnProperty,xz={}.toString,Ez={}.constructor.prototype,Xx=function(r){var t=[];for(var e in r)_z.call(r,e)&&t.push(e);return t},Az=function(r,t){return{value:r[t]}},Tz=function(r,t,e){return r[t]=e.value,r},Sz=function(r){return r},Dz=function(r){try{return Object(r).constructor.prototype}catch{return Ez}},Cz=function(r){try{return xz.call(r)==="[object Array]"}catch{return!1}};is.exports={isArray:Cz,keys:Xx,names:Xx,defineProperty:Tz,getDescriptor:Az,freeze:Sz,getPrototypeOf:Dz,isES5:Vm,propertyIsWritable:function(){return!0}}}var Ci=is.exports,Oz=typeof navigator=="undefined",qm={e:{}},Gm,Iz=typeof self!="undefined"?self:typeof window!="undefined"?window:typeof st!="undefined"||st!==void 0?st:null;function kz(){try{var r=Gm;return Gm=null,r.apply(this,arguments)}catch(t){return qm.e=t,qm}}function Rz(r){return Gm=r,kz}var Nz=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 Fz(r){return typeof r=="function"||typeof r=="object"&&r!==null}function Mz(r){return Xm(r)?new Error(nd(r)):r}function Uz(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 Bz(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 Kx(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 Pz(r){throw r}var Lz=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}}}(),jz=/this\s*\.\s*\S+\s*=/;function Wz(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=jz.test(r+"")&&Ci.names(r).length>0;if(e||n||i)return!0}return!1}catch{return!1}}function zz(r){return r}var Hz=/^[a-z$_][a-z$_0-9]*$/i;function $z(r){return Hz.test(r)}function Vz(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 Zx(r){return r!==null&&typeof r=="object"&&typeof r.message=="string"&&typeof r.name=="string"}function qz(r){try{Kx(r,"isOperational",!0)}catch{}}function Gz(r){return r==null?!1:r instanceof Error.__BluebirdErrorTypes__.OperationalError||r.isOperational===!0}function Km(r){return Zx(r)&&Ci.propertyIsWritable(r,"stack")}var Xz=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 Yx(r){return{}.toString.call(r)}function Kz(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 Jx=function(r){return Ci.isArray(r)?r:null};if(typeof Symbol!="undefined"&&Symbol.iterator){var Zz=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};Jx=function(r){return Ci.isArray(r)?r:r!=null&&typeof r[Symbol.iterator]=="function"?Zz(r):null}}var Yz=typeof process!="undefined"&&Yx(process).toLowerCase()==="[object process]",Qx=typeof process!="undefined"&&typeof process.env!="undefined";function Jz(r){return Qx?process.env[r]:void 0}function Qz(){if(typeof Promise=="function")try{var r=new Promise(function(){});if({}.toString.call(r)==="[object Promise]")return Promise}catch{}}function eH(r,t){return r.bind(t)}var Xu={isClass:Wz,isIdentifier:$z,inheritedDataKeys:Lz,getDataPropertyOrDefault:Bz,thrower:Pz,isArray:Ci.isArray,asArray:Jx,notEnumerableProp:Kx,isPrimitive:Xm,isObject:Fz,isError:Zx,canEvaluate:Oz,errorObj:qm,tryCatch:Rz,inherits:Nz,withAppended:Uz,maybeWrapAsError:Mz,toFastProperties:zz,filledRange:Vz,toString:nd,canAttachTrace:Km,ensureErrorObject:Xz,originatesFromRejection:Gz,markAsOriginatingFromRejection:qz,classString:Yx,copyDescriptors:Kz,hasDevTools:typeof chrome!="undefined"&&chrome&&typeof chrome.loadTimes=="function",isNode:Yz,hasEnvVariables:Qx,env:Jz,global:Iz,getNativePromise:Qz,domainBind:eH};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,tH=function(){throw new Error(`No async scheduler available
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`)},Jm=Ym.getNativePromise();if(Ym.isNode&&typeof MutationObserver=="undefined"){var rH=st.setImmediate,nH=process.nextTick;js=Ym.isRecentNode?function(r){rH.call(st,r)}:function(r){nH.call(process,r)}}else if(typeof Jm=="function"&&typeof Jm.resolve=="function"){var iH=Jm.resolve();js=function(r){iH.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=tH;var aH=js;function oH(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;oH(this,0,this,t,i)};var sH=as,e3;try{throw new Error}catch(r){e3=r}var uH=aH,t3=sH,r3=qr;function Pn(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new t3(16),this._normalQueue=new t3(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var r=this;this.drainQueues=function(){r._drainQueues()},this._schedule=uH}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(){r3.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 n3(r,t,e){this._lateQueue.push(r,t,e),this._queueTick()}function i3(r,t,e){this._normalQueue.push(r,t,e),this._queueTick()}function a3(r){this._normalQueue._pushOne(r),this._queueTick()}r3.hasDevTools?(Pn.prototype.invokeLater=function(r,t,e){this._trampolineEnabled?n3.call(this,r,t,e):this._schedule(function(){setTimeout(function(){r.call(t,e)},100)})},Pn.prototype.invoke=function(r,t,e){this._trampolineEnabled?i3.call(this,r,t,e):this._schedule(function(){r.call(t,e)})},Pn.prototype.settlePromises=function(r){this._trampolineEnabled?a3.call(this,r):this._schedule(function(){r._settlePromises()})}):(Pn.prototype.invokeLater=n3,Pn.prototype.invoke=i3,Pn.prototype.settlePromises=a3);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=e3;var Qm=is.exports,cH=Qm.freeze,o3=qr,s3=o3.inherits,Ku=o3.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 s3(e,Error),e}var eg,tg,lH=Zu("Warning","warning"),fH=Zu("CancellationError","cancellation error"),hH=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)}s3(gl,Error);var Ws=Error.__BluebirdErrorTypes__;Ws||(Ws=cH({CancellationError:fH,TimeoutError:hH,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:lH},dH=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(E){!g||(g._resolveCallback(E),g=null)}function b(E){!g||(g._rejectCallback(E,p,!0),g=null)}return m}return a},pH=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},mH=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},gH=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 E=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,E=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=k,r.prototype._attachExtraTrace=R,t.activateLongStackTraces(),n.disableTrampolineIfNecessary()}},r.hasLongStackTraces=function(){return ne.longStackTraces&&ue()};var D=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}}(),F=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=F.apply(null,arguments)}catch(ve){n.throwLater(ve),fe=!0}var de=!1;try{de=D(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()&&E()),"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=C,r.prototype._propagateFrom=_,r.prototype._onCancel=I,r.prototype._setOnCancel=S,r.prototype._attachCancellationCallback=P,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 P(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 I(){return this._onCancelField}function S(se){this._onCancelField=se}function C(){this._cancellationParent=void 0,this._onCancelField=void 0}function _(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 x=w;function A(){var se=this._boundTo;return se!==void 0&&se instanceof r?se.isFulfilled()?se.value():void 0:se}function k(){this._trace=new oe(this._peekContext())}function R(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 M(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="",Fe="";if(fe._trace){for(var He=fe._trace.stack.split(`
|
|
`),qe=O(He),et=qe.length-1;et>=0;--et){var Be=qe[et];if(!l.test(Be)){var Ge=Be.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&&(Fe=`
|
|
`+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"+Fe;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],Fe=-1,He=ve.length-1;He>=0;--He)if(ve[He]===Se){Fe=He;break}for(var He=Fe;He>=0;--He){var qe=ve[He];if(fe[Ee]===qe)fe.pop(),Ee--;else break}fe=ve}}function O(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:O(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},B=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function H(se){var fe=se.match(B);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,Fe,He,qe=0;qe<de.length;++qe){var et=H(de[qe]);if(et){Fe=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||!Fe||!He||Fe!==He||Ee>=Se||(Q=function(Be){if(c.test(Be))return!0;var Ge=H(Be);return!!(Ge&&Ge.fileName===Fe&&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 Fe=fe[ve].stack,He=de[Fe];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,Be=ve-2;Be>=0;--Be)fe[Be]._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(O(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(Fe,He){return typeof Fe=="string"?Fe: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(Fe){return c.test(Fe)},function(Fe,He){Error.stackTraceLimit+=6,ve(Fe,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(Fe){Se="stack"in Fe}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(Fe,He){return typeof Fe=="string"?Fe:(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?"[33m":"[31m";console.warn(de+se+`[0m
|
|
`)}:!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 x},boundValueFunction:function(){return A},checkForgottenReturns:M,setBounds:Z,warn:K,deprecated:X,CapturedTrace:oe,fireDomEvent:D,fireGlobalEvent:F}},vH=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},yH=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},u3=qr,bH=u3.maybeWrapAsError,wH=os,_H=wH.OperationalError,c3=is.exports;function xH(r){return r instanceof Error&&c3.getPrototypeOf(r)===Error.prototype}var EH=/^(?:name|message|stack|cause)$/;function AH(r){var t;if(xH(r)){t=new _H(r),t.name=r.name,t.message=r.message,t.stack=r.stack;for(var e=c3.keys(r),n=0;n<e.length;++n){var i=e[n];EH.test(i)||(t[i]=r[i])}return t}return u3.markAsOriginatingFromRejection(r),r}function TH(r,t){return function(e,n){if(r!==null){if(e){var i=AH(bH(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 l3=TH,SH=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)}},DH=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)}},CH=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()}},OH=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)}},IH=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},kH=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),E=0;E<b.length;++E)b[E]="this.p"+(E+1);var D=b.join(" = ")+" = null;",F=`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,D).replace(/\[CancellationCode\]/g,F),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 S=new r(n);S._captureStackTrace();for(var E=g[v-1],D=new E(b),F=m,z=0;z<v;++z){var W=e(arguments[z],S);if(W instanceof r){W=W._target();var U=W._bitField;(U&50397184)==0?(W._then(F[z],l,void 0,S,D),p[z](W,D),D.asyncNeeded=!1):(U&33554432)!=0?F[z].call(S,W._value(),D):(U&16777216)!=0?S._reject(W._reason()):S._cancel()}else F[z].call(S,W,D)}if(!S._isFateSealed()){if(D.asyncNeeded){var G=a();G!==null&&(D.fn=o.domainBind(G,D.fn))}S._setAsyncGuaranteed(),S._setOnCancel(D)}return S}for(var ee=arguments.length,P=new Array(ee),I=0;I<ee;++I)P[I]=arguments[I];b&&P.pop();var S=new t(P).promise();return b!==void 0?S.spread(b):S}},RH=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,E=this._callback,D=b._boundValue();b._pushContext();var F=u(E).call(D,f,g,p),z=b._popContext();if(a.checkForgottenReturns(F,z,y!==null?"Promise.filter":"Promise.map",b),F===c)return this._reject(F.e),!0;var W=n(F,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)F=W._value();else return(U&16777216)!=0?(this._reject(W._reason()),!0):(this._cancel(),!0)}m[g]=F}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 f3=rg(null),h3=rg(null);f3[" size"]=h3[" size"]=0}var NH=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,f3)},a=function(f){return u(f,s,h3)}}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)}},FH=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 E=e(b);return E!==b&&typeof b._isDisposable=="function"&&typeof b._getDisposer=="function"&&b._isDisposable()&&E._setDisposable(b._getDisposer()),E}function g(b,E){var D=0,F=b.length,z=new r(i);function W(){if(D>=F)return z._fulfill();var U=f(b[D++]);if(U instanceof r&&U._isDisposable()){try{U=e(U._getDisposer().tryDispose(E),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,E,D){this._data=b,this._promise=E,this._context=D}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 E=this.resource(),D=this._context;D!==void 0&&D._pushContext();var F=E!==d?this.doDispose(E,b):null;return D!==void 0&&D._popContext(),this._promise._unsetDisposable(),this._data=null,F},m.isDisposer=function(b){return b!=null&&typeof b.resource=="function"&&typeof b.tryDispose=="function"};function p(b,E,D){this.constructor$(b,E,D)}u(p,m),p.prototype.doDispose=function(b,E){var D=this.data();return D.call(b,b,E)};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,E=0;E<b;++E){var D=this[E];D instanceof r&&D.cancel()}},r.using=function(){var b=arguments.length;if(b<2)return t("you must pass at least 2 arguments to Promise.using");var E=arguments[b-1];if(typeof E!="function")return t("expecting a function but got "+o.classString(E));var D,F=!0;b===2&&Array.isArray(arguments[0])?(D=arguments[0],b=D.length,F=!1):(D=arguments,b--);for(var z=new v(b),W=0;W<b;++W){var U=D[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 P=new Array(z.length),W=0;W<P.length;++W)P[W]=r.resolve(z[W]).reflect();var I=r.all(P).then(function(C){for(var _=0;_<C.length;++_){var w=C[_];if(w.isRejected())return c.e=w.error(),c;if(!w.isFulfilled()){I.cancel();return}C[_]=w.value()}S._pushContext(),E=l(E);var x=F?E.apply(void 0,C):E(C),A=S._popContext();return a.checkForgottenReturns(x,A,"Promise.using",S),x}),S=I.lastly(function(){var C=new r.PromiseInspection(I);return g(z,C)});return z.promise=S,S._setOnCancel(z),S},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}},MH=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}},UH=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 E=n(v,p);if(E instanceof r)return E}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 E=this._promise=new r(e);E._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),E=new y(void 0,void 0,p,v),D=E.promise();return E._generator=b,E._promiseFulfilled(void 0),D}},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}},BH=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}},PH=function(r,t){var e={},n=qr,i=l3,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(I){return n.isIdentifier(I)&&I.charAt(0)!=="_"&&I!=="constructor"};function g(I){return!h.test(I)}function m(I){try{return I.__isPromisified__===!0}catch{return!1}}function p(I,S,C){var _=n.getDataPropertyOrDefault(I,S+C,l);return _?m(_):!1}function y(I,S,C){for(var _=0;_<I.length;_+=2){var w=I[_];if(C.test(w)){for(var x=w.replace(C,""),A=0;A<I.length;A+=2)if(I[A]===x)throw new u(`Cannot promisify an API that has normal methods with '%s'-suffix
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`.replace("%s",S))}}}function v(I,S,C,_){for(var w=n.inheritedDataKeys(I),x=[],A=0;A<w.length;++A){var k=w[A],R=I[k],M=_===f?!0:f(k);typeof R=="function"&&!m(R)&&!p(I,k,S)&&_(k,R,I,M)&&x.push(k,R)}return y(x,S,C),x}var b=function(I){return I.replace(/([$])/,"\\$")},E;{var D=function(I){for(var S=[I],C=Math.max(0,I-1-3),_=I-1;_>=C;--_)S.push(_);for(var _=I+1;_<=3;++_)S.push(_);return S},F=function(I){return n.filledRange(I,"_arg","")},z=function(I){return n.filledRange(Math.max(I,3),"_arg","")},W=function(I){return typeof I.length=="number"?Math.max(Math.min(I.length,1023+1),0):0};E=function(I,S,C,_,w,x){var A=Math.max(0,W(_)-1),k=D(A),R=typeof I=="string"||S===e;function M($){var q=F($).join(", "),O=$>0?", ":"",L;return R?L=`ret = callback.call(this, {{args}}, nodeback); break;
|
|
`:L=S===void 0?`ret = callback({{args}}, nodeback); break;
|
|
`:`ret = callback.call(receiver, {{args}}, nodeback); break;
|
|
`,L.replace("{{args}}",q).replace(", ",O)}function X(){for(var $="",q=0;q<k.length;++q)$+="case "+k[q]+":"+M(k[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]",R?`ret = callback.apply(this, args);
|
|
`:`ret = callback.apply(receiver, args);
|
|
`),$}var K=typeof I=="string"?"this != null ? this['"+I+"'] : 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, `+x+`);
|
|
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(A)),new Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",te)(r,_,S,a,o,i,n.tryCatch,n.errorObj,n.notEnumerableProp,t)}}function U(I,S,C,_,w,x){var A=function(){return this}(),k=I;typeof k=="string"&&(I=_);function R(){var M=S;S===e&&(M=this);var X=new r(t);X._captureStackTrace();var K=typeof k=="string"&&this!==A?this[k]:I,te=i(X,x);try{K.apply(M,a(arguments,te))}catch($){X._rejectCallback(o($),!0,!0)}return X._isFateSealed()||X._setAsyncGuaranteed(),X}return n.notEnumerableProp(R,"__isPromisified__",!0),R}var G=s?E:U;function ee(I,S,C,_,w){for(var x=new RegExp(b(S)+"$"),A=v(I,S,x,C),k=0,R=A.length;k<R;k+=2){var M=A[k],X=A[k+1],K=M+S;if(_===G)I[K]=G(M,e,M,X,S,w);else{var te=_(X,function(){return G(M,e,M,X,S,w)});n.notEnumerableProp(te,"__isPromisified__",!0),I[K]=te}}return n.toFastProperties(I),I}function P(I,S,C){return G(I,S,void 0,I,null,C)}r.promisify=function(I,S){if(typeof I!="function")throw new u("expecting a function but got "+n.classString(I));if(m(I))return I;S=Object(S);var C=S.context===void 0?e:S.context,_=!!S.multiArgs,w=P(I,C,_);return n.copyDescriptors(I,w,g),w},r.promisifyAll=function(I,S){if(typeof I!="function"&&typeof I!="object")throw new u(`the target of promisifyAll must be an object or a function
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`);S=Object(S);var C=!!S.multiArgs,_=S.suffix;typeof _!="string"&&(_=c);var w=S.filter;typeof w!="function"&&(w=f);var x=S.promisifier;if(typeof x!="function"&&(x=G),!n.isIdentifier(_))throw new RangeError(`suffix must be a valid identifier
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`);for(var A=n.inheritedDataKeys(I),k=0;k<A.length;++k){var R=I[A[k]];A[k]!=="constructor"&&n.isClass(R)&&(ee(R.prototype,_,w,x,C),ee(R,_,w,x,C))}return ee(I,_,w,x,C)}},LH=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)}},jH=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)}},WH=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}},zH=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)}},HH=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},$H=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)}},VH=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},qH=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 P.PromiseInspection(this._target())},n=function(_){return P.reject(new h(_))};function i(){}var a={},o=qr,s;o.isNode?s=function(){var _=process.domain;return _===void 0&&(_=null),_}:s=function(){return null},o.notEnumerableProp(P,"_getDomain",s);var u=is.exports,c=Zm.exports,l=new c;u.defineProperty(P,"_async",{value:l});var d=os,h=P.TypeError=d.TypeError;P.RangeError=d.RangeError;var f=P.CancellationError=d.CancellationError;P.TimeoutError=d.TimeoutError,P.OperationalError=d.OperationalError,P.RejectionError=d.OperationalError,P.AggregateError=d.AggregateError;var g=function(){},m={},p={},y=dH(P,g),v=pH(P,g,y,n,i),b=mH(P),E=b.create,D=gH(P,b);D.CapturedTrace;var F=vH(P,y),z=yH(p),W=l3,U=o.errorObj,G=o.tryCatch;function ee(_,w){if(typeof w!="function")throw new h("expecting a function but got "+o.classString(w));if(_.constructor!==P)throw new h(`the promise constructor cannot be invoked directly
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`)}function P(_){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,_!==g&&(ee(this,_),this._resolveFromExecutor(_)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}P.prototype.toString=function(){return"[object Promise]"},P.prototype.caught=P.prototype.catch=function(_){var w=arguments.length;if(w>1){var x=new Array(w-1),A=0,k;for(k=0;k<w-1;++k){var R=arguments[k];if(o.isObject(R))x[A++]=R;else return n("expecting an object but got A catch statement predicate "+o.classString(R))}return x.length=A,_=arguments[k],this.then(void 0,z(x,_,this))}return this.then(void 0,_)},P.prototype.reflect=function(){return this._then(e,e,void 0,this,void 0)},P.prototype.then=function(_,w){if(D.warnings()&&arguments.length>0&&typeof _!="function"&&typeof w!="function"){var x=".then() only accepts functions but was passed: "+o.classString(_);arguments.length>1&&(x+=", "+o.classString(w)),this._warn(x)}return this._then(_,w,void 0,void 0,void 0)},P.prototype.done=function(_,w){var x=this._then(_,w,void 0,void 0,void 0);x._setIsFinal()},P.prototype.spread=function(_){return typeof _!="function"?n("expecting a function but got "+o.classString(_)):this.all()._then(_,void 0,void 0,m,void 0)},P.prototype.toJSON=function(){var _={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(_.fulfillmentValue=this.value(),_.isFulfilled=!0):this.isRejected()&&(_.rejectionReason=this.reason(),_.isRejected=!0),_},P.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new v(this).promise()},P.prototype.error=function(_){return this.caught(o.originatesFromRejection,_)},P.getNewLibraryCopy=r.exports,P.is=function(_){return _ instanceof P},P.fromNode=P.fromCallback=function(_){var w=new P(g);w._captureStackTrace();var x=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,A=G(_)(W(w,x));return A===U&&w._rejectCallback(A.e,!0),w._isFateSealed()||w._setAsyncGuaranteed(),w},P.all=function(_){return new v(_).promise()},P.cast=function(_){var w=y(_);return w instanceof P||(w=new P(g),w._captureStackTrace(),w._setFulfilled(),w._rejectionHandler0=_),w},P.resolve=P.fulfilled=P.cast,P.reject=P.rejected=function(_){var w=new P(g);return w._captureStackTrace(),w._rejectCallback(_,!0),w},P.setScheduler=function(_){if(typeof _!="function")throw new h("expecting a function but got "+o.classString(_));return l.setScheduler(_)},P.prototype._then=function(_,w,x,A,k){var R=k!==void 0,M=R?k:new P(g),X=this._target(),K=X._bitField;R||(M._propagateFrom(this,3),M._captureStackTrace(),A===void 0&&(this._bitField&2097152)!=0&&((K&50397184)!=0?A=this._boundValue():A=X===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,M));var te=s();if((K&50397184)!=0){var $,q,O=X._settlePromiseCtx;(K&33554432)!=0?(q=X._rejectionHandler0,$=_):(K&16777216)!=0?(q=X._fulfillmentHandler0,$=w,X._unsetRejectionIsUnhandled()):(O=X._settlePromiseLateCancellationObserver,q=new f("late cancellation observer"),X._attachExtraTrace(q),$=w),l.invoke(O,X,{handler:te===null?$:typeof $=="function"&&o.domainBind(te,$),promise:M,receiver:A,value:q})}else X._addCallbacks(_,w,M,A,te);return M},P.prototype._length=function(){return this._bitField&65535},P.prototype._isFateSealed=function(){return(this._bitField&117506048)!=0},P.prototype._isFollowing=function(){return(this._bitField&67108864)==67108864},P.prototype._setLength=function(_){this._bitField=this._bitField&-65536|_&65535},P.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},P.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},P.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},P.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},P.prototype._isFinal=function(){return(this._bitField&4194304)>0},P.prototype._unsetCancelled=function(){this._bitField=this._bitField&~65536},P.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},P.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},P.prototype._setAsyncGuaranteed=function(){l.hasCustomScheduler()||(this._bitField=this._bitField|134217728)},P.prototype._receiverAt=function(_){var w=_===0?this._receiver0:this[_*4-4+3];if(w!==a)return w===void 0&&this._isBound()?this._boundValue():w},P.prototype._promiseAt=function(_){return this[_*4-4+2]},P.prototype._fulfillmentHandlerAt=function(_){return this[_*4-4+0]},P.prototype._rejectionHandlerAt=function(_){return this[_*4-4+1]},P.prototype._boundValue=function(){},P.prototype._migrateCallback0=function(_){_._bitField;var w=_._fulfillmentHandler0,x=_._rejectionHandler0,A=_._promise0,k=_._receiverAt(0);k===void 0&&(k=a),this._addCallbacks(w,x,A,k,null)},P.prototype._migrateCallbackAt=function(_,w){var x=_._fulfillmentHandlerAt(w),A=_._rejectionHandlerAt(w),k=_._promiseAt(w),R=_._receiverAt(w);R===void 0&&(R=a),this._addCallbacks(x,A,k,R,null)},P.prototype._addCallbacks=function(_,w,x,A,k){var R=this._length();if(R>=65535-4&&(R=0,this._setLength(0)),R===0)this._promise0=x,this._receiver0=A,typeof _=="function"&&(this._fulfillmentHandler0=k===null?_:o.domainBind(k,_)),typeof w=="function"&&(this._rejectionHandler0=k===null?w:o.domainBind(k,w));else{var M=R*4-4;this[M+2]=x,this[M+3]=A,typeof _=="function"&&(this[M+0]=k===null?_:o.domainBind(k,_)),typeof w=="function"&&(this[M+1]=k===null?w:o.domainBind(k,w))}return this._setLength(R+1),R},P.prototype._proxy=function(_,w){this._addCallbacks(void 0,void 0,w,_,null)},P.prototype._resolveCallback=function(_,w){if((this._bitField&117506048)==0){if(_===this)return this._rejectCallback(t(),!1);var x=y(_,this);if(!(x instanceof P))return this._fulfill(_);w&&this._propagateFrom(x,2);var A=x._target();if(A===this){this._reject(t());return}var k=A._bitField;if((k&50397184)==0){var R=this._length();R>0&&A._migrateCallback0(this);for(var M=1;M<R;++M)A._migrateCallbackAt(this,M);this._setFollowing(),this._setLength(0),this._setFollowee(A)}else if((k&33554432)!=0)this._fulfill(A._value());else if((k&16777216)!=0)this._reject(A._reason());else{var X=new f("late cancellation observer");A._attachExtraTrace(X),this._reject(X)}}},P.prototype._rejectCallback=function(_,w,x){var A=o.ensureErrorObject(_),k=A===_;if(!k&&!x&&D.warnings()){var R="a promise was rejected with a non-error: "+o.classString(_);this._warn(R,!0)}this._attachExtraTrace(A,w?k:!1),this._reject(_)},P.prototype._resolveFromExecutor=function(_){var w=this;this._captureStackTrace(),this._pushContext();var x=!0,A=this._execute(_,function(k){w._resolveCallback(k)},function(k){w._rejectCallback(k,x)});x=!1,this._popContext(),A!==void 0&&w._rejectCallback(A,!0)},P.prototype._settlePromiseFromHandler=function(_,w,x,A){var k=A._bitField;if((k&65536)==0){A._pushContext();var R;w===m?!x||typeof x.length!="number"?(R=U,R.e=new h("cannot .spread() a non-array: "+o.classString(x))):R=G(_).apply(this._boundValue(),x):R=G(_).call(w,x);var M=A._popContext();k=A._bitField,(k&65536)==0&&(R===p?A._reject(x):R===U?A._rejectCallback(R.e,!1):(D.checkForgottenReturns(R,M,"",A,this),A._resolveCallback(R)))}},P.prototype._target=function(){for(var _=this;_._isFollowing();)_=_._followee();return _},P.prototype._followee=function(){return this._rejectionHandler0},P.prototype._setFollowee=function(_){this._rejectionHandler0=_},P.prototype._settlePromise=function(_,w,x,A){var k=_ instanceof P,R=this._bitField,M=(R&134217728)!=0;(R&65536)!=0?(k&&_._invokeInternalOnCancel(),x instanceof F&&x.isFinallyHandler()?(x.cancelPromise=_,G(w).call(x,A)===U&&_._reject(U.e)):w===e?_._fulfill(e.call(x)):x instanceof i?x._promiseCancelled(_):k||_ instanceof v?_._cancel():x.cancel()):typeof w=="function"?k?(M&&_._setAsyncGuaranteed(),this._settlePromiseFromHandler(w,x,A,_)):w.call(x,A,_):x instanceof i?x._isResolved()||((R&33554432)!=0?x._promiseFulfilled(A,_):x._promiseRejected(A,_)):k&&(M&&_._setAsyncGuaranteed(),(R&33554432)!=0?_._fulfill(A):_._reject(A))},P.prototype._settlePromiseLateCancellationObserver=function(_){var w=_.handler,x=_.promise,A=_.receiver,k=_.value;typeof w=="function"?x instanceof P?this._settlePromiseFromHandler(w,A,k,x):w.call(A,k,x):x instanceof P&&x._reject(k)},P.prototype._settlePromiseCtx=function(_){this._settlePromise(_.promise,_.handler,_.receiver,_.value)},P.prototype._settlePromise0=function(_,w,x){var A=this._promise0,k=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(A,_,k,w)},P.prototype._clearCallbackDataAtIndex=function(_){var w=_*4-4;this[w+2]=this[w+3]=this[w+0]=this[w+1]=void 0},P.prototype._fulfill=function(_){var w=this._bitField;if(!((w&117506048)>>>16)){if(_===this){var x=t();return this._attachExtraTrace(x),this._reject(x)}this._setFulfilled(),this._rejectionHandler0=_,(w&65535)>0&&((w&134217728)!=0?this._settlePromises():l.settlePromises(this))}},P.prototype._reject=function(_){var w=this._bitField;if(!((w&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=_,this._isFinal())return l.fatalError(_,o.isNode);(w&65535)>0?l.settlePromises(this):this._ensurePossibleRejectionHandled()}},P.prototype._fulfillPromises=function(_,w){for(var x=1;x<_;x++){var A=this._fulfillmentHandlerAt(x),k=this._promiseAt(x),R=this._receiverAt(x);this._clearCallbackDataAtIndex(x),this._settlePromise(k,A,R,w)}},P.prototype._rejectPromises=function(_,w){for(var x=1;x<_;x++){var A=this._rejectionHandlerAt(x),k=this._promiseAt(x),R=this._receiverAt(x);this._clearCallbackDataAtIndex(x),this._settlePromise(k,A,R,w)}},P.prototype._settlePromises=function(){var _=this._bitField,w=_&65535;if(w>0){if((_&16842752)!=0){var x=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,x,_),this._rejectPromises(w,x)}else{var A=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,A,_),this._fulfillPromises(w,A)}this._setLength(0)}this._clearCancellationData()},P.prototype._settledValue=function(){var _=this._bitField;if((_&33554432)!=0)return this._rejectionHandler0;if((_&16777216)!=0)return this._fulfillmentHandler0};function I(_){this.promise._resolveCallback(_)}function S(_){this.promise._rejectCallback(_,!1)}P.defer=P.pending=function(){D.deprecated("Promise.defer","new Promise");var _=new P(g);return{promise:_,resolve:I,reject:S}},o.notEnumerableProp(P,"_makeSelfResolutionError",t),SH(P,g,y,n,D),DH(P,g,y,D),CH(P,v,n,D),OH(P),IH(P),kH(P,v,y,g,l,s),P.Promise=P,P.version="3.4.7",RH(P,v,n,y,g,D),NH(P),FH(P,n,y,E,g,D),MH(P,g,D),UH(P,n,g,y,i,D),BH(P),PH(P,g),LH(P,v,y,n),jH(P,g,y,n),WH(P,v,n,y,g,D),zH(P,v,D),HH(P,v,n),$H(P,g),VH(P,g),qH(P),o.toFastProperties(P),o.toFastProperties(P.prototype);function C(_){var w=new P(g);w._fulfillmentHandler0=_,w._rejectionHandler0=_,w._promise0=_,w._receiver0=_}return C({a:1}),C({b:2}),C({c:3}),C(1),C(function(){}),C(void 0),C(!1),C(new P(g)),D.setBounds(c.firstLineError,o.lastLineError),P}})(Gx);var GH=on.exports,Oi=Gx.exports();Bn.defer=XH;Bn.when=Oi.resolve;Bn.resolve=Oi.resolve;Bn.all=Oi.all;Bn.props=Oi.props;Bn.reject=Oi.reject;Bn.promisify=Oi.promisify;Bn.mapSeries=Oi.mapSeries;Bn.attempt=Oi.attempt;Bn.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=GH.extend({},t,r(t));return Oi.props(e)})};function XH(){var r,t,e=new Oi.Promise(function(n,i){r=n,t=i});return{resolve:r,reject:t,promise:e}}var pr={},KH=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 ZH(r,t){return t=t||{},{type:ri.document,children:r,notes:t.notes||new od({}),comments:t.comments||[]}}function YH(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 JH(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||d3.baseline,font:t.font||null,fontSize:t.fontSize||null,highlight:t.highlight||null}}var d3={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function QH(r){return{type:ri.text,value:r}}function e$(){return{type:ri.tab}}function t$(r,t){return{type:ri.hyperlink,children:r,href:t.href,anchor:t.anchor,targetFrame:t.targetFrame}}function r$(r){return{type:ri.noteReference,noteType:r.noteType,noteId:r.noteId}}function od(r){this._notes=KH.indexBy(r,function(t){return p3(t.noteType,t.noteId)})}od.prototype.resolve=function(r){return this.findNoteByKey(p3(r.noteType,r.noteId))};od.prototype.findNoteByKey=function(r){return this._notes[r]||null};function n$(r){return{type:ri.note,noteType:r.noteType,noteId:r.noteId,body:r.body}}function i$(r){return{type:ri.commentReference,commentId:r.commentId}}function a$(r){return{type:ri.comment,commentId:r.commentId,body:r.body,authorName:r.authorName,authorInitials:r.authorInitials}}function p3(r,t){return r+"-"+t}function o$(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 s$(r,t){return t=t||{},{type:ri.table,children:r,styleId:t.styleId||null,styleName:t.styleName||null}}function u$(r,t){return t=t||{},{type:ri.tableRow,children:r,isHeader:t.isHeader||!1}}function c$(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 l$(r){return{type:ri.bookmarkStart,name:r.name}}pr.document=pr.Document=ZH;pr.paragraph=pr.Paragraph=YH;pr.run=pr.Run=JH;pr.text=pr.Text=QH;pr.tab=pr.Tab=e$;pr.Hyperlink=t$;pr.noteReference=pr.NoteReference=r$;pr.Notes=od;pr.Note=n$;pr.commentReference=i$;pr.comment=a$;pr.Image=o$;pr.Table=s$;pr.TableRow=u$;pr.TableCell=c$;pr.lineBreak=ng("line");pr.pageBreak=ng("page");pr.columnBreak=ng("column");pr.BookmarkStart=l$;pr.verticalAlignment=d3;var $i={},vl=on.exports;$i.Result=Xa;$i.success=f$;$i.warning=h$;$i.error=d$;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 f$(r){return new Xa(r,[])}function h$(r){return{type:"warning",message:r}}function d$(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){p$(t,e)||t.push(e)}),t}function p$(r,t){return vl.find(r,m$.bind(null,t))!==void 0}function m$(r,t){return r.type===t.type&&r.message===t.message}var yl={},sd={};sd.byteLength=y$;sd.toByteArray=w$;sd.fromByteArray=E$;var Ka=[],aa=[],g$=typeof Uint8Array!="undefined"?Uint8Array:Array,ag="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Yu=0,v$=ag.length;Yu<v$;++Yu)Ka[Yu]=ag[Yu],aa[ag.charCodeAt(Yu)]=Yu;aa["-".charCodeAt(0)]=62;aa["_".charCodeAt(0)]=63;function m3(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 y$(r){var t=m3(r),e=t[0],n=t[1];return(e+n)*3/4-n}function b$(r,t,e){return(t+e)*3/4-e}function w$(r){var t,e=m3(r),n=e[0],i=e[1],a=new g$(b$(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 _$(r){return Ka[r>>18&63]+Ka[r>>12&63]+Ka[r>>6&63]+Ka[r&63]}function x$(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(_$(n));return i.join("")}function E$(r){for(var t,e=r.length,n=e%3,i=[],a=16383,o=0,s=e-n;o<s;o+=a)i.push(x$(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 g3={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,E=a.getTypeOf(u)!=="string";y<u.length;)b=v-y,d=E?(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,E,D=f.file,F=f.compression,z=v!==c.utf8encode,W=s.transformTo("string",v(D.name)),U=s.transformTo("string",c.utf8encode(D.name)),G=D.comment,ee=s.transformTo("string",v(G)),P=s.transformTo("string",c.utf8encode(G)),I=U.length!==D.name.length,S=P.length!==G.length,C="",_="",w="",x=D.dir,A=D.date,k={crc32:0,compressedSize:0,uncompressedSize:0};g&&!m||(k.crc32=f.crc32,k.compressedSize=f.compressedSize,k.uncompressedSize=f.uncompressedSize);var R=0;g&&(R|=8),z||!I&&!S||(R|=2048);var M=0,X=0;x&&(M|=16),y==="UNIX"?(X=798,M|=function(te,$){var q=te;return te||(q=$?16893:33204),(65535&q)<<16}(D.unixPermissions,x)):(X=20,M|=function(te){return 63&(te||0)}(D.dosPermissions)),b=A.getUTCHours(),b<<=6,b|=A.getUTCMinutes(),b<<=5,b|=A.getUTCSeconds()/2,E=A.getUTCFullYear()-1980,E<<=4,E|=A.getUTCMonth()+1,E<<=5,E|=A.getUTCDate(),I&&(_=a(1,1)+a(l(W),4)+U,C+="up"+a(_.length,2)+_),S&&(w=a(1,1)+a(l(ee),4)+P,C+="uc"+a(w.length,2)+w);var K="";return K+=`
|
|
\0`,K+=a(R,2),K+=F.magic,K+=a(b,2),K+=a(E,2),K+=a(k.crc32,4),K+=a(k.compressedSize,4),K+=a(k.uncompressedSize,4),K+=a(W.length,2),K+=a(C.length,2),{fileRecord:d.LOCAL_FILE_HEADER+K+W+C,dirRecord:d.CENTRAL_FILE_HEADER+a(X,2)+K+a(ee.length,2)+"\0\0\0\0"+a(M,4)+a(p,4)+W+C+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,E,D){var F=s.transformTo("string",D(E));return d.CENTRAL_DIRECTORY_END+"\0\0\0\0"+a(y,2)+a(y,2)+a(v,4)+a(b,4)+a(F.length,2)+F}(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 E=v||b,D=a[E];if(!D)throw new Error(E+" is not a valid compression method !");return D}(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],E=b.fileNameStr,D=a.resolve(b.fileNameStr);g.file(D,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(D).unsafeOriginalName=E)}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(D,F,z){var W,U=s.getTypeOf(F),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&&(D=y(D)),G.createFolders&&(W=p(D))&&v.call(this,W,!0);var ee=U==="string"&&G.binary===!1&&G.base64===!1;z&&z.binary!==void 0||(G.binary=!ee),(F instanceof d&&F.uncompressedSize===0||G.dir||!F||F.length===0)&&(G.base64=!1,G.binary=!0,F="",G.compression="STORE",U="string");var P=null;P=F instanceof d||F instanceof u?F:g.isNode&&g.isStream(F)?new m(D,F):s.prepareContent(D,F,G.binary,G.optimizedBinaryString,G.base64);var I=new h(D,P,G);this.files[D]=I}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(D){D.slice(-1)==="/"&&(D=D.substring(0,D.length-1));var F=D.lastIndexOf("/");return 0<F?D.substring(0,F):""},y=function(D){return D.slice(-1)!=="/"&&(D+="/"),D},v=function(D,F){return F=F!==void 0?F:l.createFolders,D=y(D),this.files[D]||a.call(this,D,null,{dir:!0,createFolders:F}),this.files[D]};function b(D){return Object.prototype.toString.call(D)==="[object RegExp]"}var E={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(D){var F,z,W;for(F in this.files)W=this.files[F],(z=F.slice(this.root.length,F.length))&&F.slice(0,this.root.length)===this.root&&D(z,W)},filter:function(D){var F=[];return this.forEach(function(z,W){D(z,W)&&F.push(W)}),F},file:function(D,F,z){if(arguments.length!==1)return D=this.root+D,a.call(this,D,F,z),this;if(b(D)){var W=D;return this.filter(function(G,ee){return!ee.dir&&W.test(G)})}var U=this.files[this.root+D];return U&&!U.dir?U:null},folder:function(D){if(!D)return this;if(b(D))return this.filter(function(U,G){return G.dir&&D.test(U)});var F=this.root+D,z=v.call(this,F),W=this.clone();return W.root=z.name,W},remove:function(D){D=this.root+D;var F=this.files[D];if(F||(D.slice(-1)!=="/"&&(D+="/"),F=this.files[D]),F&&!F.dir)delete this.files[D];else for(var z=this.filter(function(U,G){return G.name.slice(0,D.length)===D}),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(D){var F,z={};try{if((z=s.extend(D||{},{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||"";F=f.generateWorker(this,z,W)}catch(U){(F=new u("error")).error(U)}return new c(F,z.type||"string",z.mimeType)},generateAsync:function(D,F){return this.generateInternalStream(D).accumulate(F)},generateNodeStream:function(D,F){return(D=D||{}).type||(D.type="nodebuffer"),this.generateInternalStream(D).toNodejsStream(F)}};n.exports=E},{"./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,E=g._outputType,D=g._mimeType;g.on("data",function(F,z){v.push(F),m&&m(z)}).on("error",function(F){v=[],y(F)}).on("end",function(){try{var F=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)}}(E,function(z,W){var U,G=0,ee=null,P=0;for(U=0;U<W.length;U++)P+=W[U].length;switch(z){case"string":return W.join("");case"array":return Array.prototype.concat.apply([],W);case"uint8array":for(ee=new Uint8Array(P),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),D);p(F)}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,E=g.length,D=0;for(v=0;v<E;v++)(64512&(p=g.charCodeAt(v)))==55296&&v+1<E&&(64512&(y=g.charCodeAt(v+1)))==56320&&(p=65536+(p-55296<<10)+(y-56320),v++),D+=p<128?1:p<2048?2:p<65536?3:4;for(m=o.uint8array?new Uint8Array(D):new Array(D),v=b=0;b<D;v++)(64512&(p=g.charCodeAt(v)))==55296&&v+1<E&&(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,E=new Array(2*b);for(m=p=0;m<b;)if((y=g[m++])<128)E[p++]=y;else if(4<(v=c[y]))E[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?E[p++]=65533:y<65536?E[p++]=y:(y-=65536,E[p++]=55296|y>>10&1023,E[p++]=56320|1023&y)}return E.length!==p&&(E.subarray?E=E.subarray(0,p):E.length=p),a.applyFromCharCode(E)}(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 E;for((b=b||v.length)>v.length&&(b=v.length),E=b-1;0<=E&&(192&v[E])==128;)E--;return E<0||E===0?b:E+c[v[E]]>b?E: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,E=m.length;if(E<=y)return String.fromCharCode.apply(null,m);for(;b<E;)p==="array"||p==="nodebuffer"?v.push(String.fromCharCode.apply(null,m.slice(b,Math.min(b+y,E)))):v.push(String.fromCharCode.apply(null,m.subarray(b,Math.min(b+y,E)))),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(E){return a.blob&&(E instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(E))!==-1)&&typeof FileReader!="undefined"?new u.Promise(function(D,F){var z=new FileReader;z.onload=function(W){D(W.target.result)},z.onerror=function(W){F(W.target.error)},z.readAsArrayBuffer(E)}):E}).then(function(E){var D=i.getTypeOf(E);return D?(D==="arraybuffer"?E=i.transformTo("uint8array",E):D==="string"&&(b?E=o.decode(E):y&&v!==!0&&(E=function(F){return l(F,a.uint8array?new Uint8Array(F.length):new Array(F.length))}(E))),E):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 st!="undefined"?st: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 E;try{E=v(b)}catch(D){return s.reject(y,D)}E===y?s.reject(y,new TypeError("Cannot resolve promise with itself")):s.resolve(y,E)})}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 E(z){b||(b=!0,s.reject(y,z))}function D(z){b||(b=!0,s.resolve(y,z))}var F=p(function(){v(D,E)});F.status==="error"&&E(F.value)}function p(y,v){var b={};try{b.value=y(v),b.status="success"}catch(E){b.status="error",b.value=E}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 E=b.value;if(E)m(y,E);else{y.state=c,y.outcome=v;for(var D=-1,F=y.queue.length;++D<F;)y.queue[D].callFulfilled(v)}return y},s.reject=function(y,v){y.state=u,y.outcome=v;for(var b=-1,E=y.queue.length;++b<E;)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,E=!1;if(!b)return this.resolve([]);for(var D=new Array(b),F=0,z=-1,W=new this(o);++z<b;)U(y[z],z);return W;function U(G,ee){v.resolve(G).then(function(P){D[ee]=P,++F!==b||E||(E=!0,s.resolve(W,D))},function(P){E||(E=!0,s.reject(W,P))})}},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,E=!1;if(!b)return this.resolve([]);for(var D=-1,F=new this(o);++D<b;)z=y[D],v.resolve(z).then(function(W){E||(E=!0,s.resolve(F,W))},function(W){E||(E=!0,s.reject(F,W))});var z;return F}},{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 E;if(E=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,E))!==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,E,D=this.strm,F=this.options.chunkSize;if(this.ended)return!1;E=v===~~v?v:v===!0?4:0,typeof y=="string"?D.input=s.string2buf(y):l.call(y)==="[object ArrayBuffer]"?D.input=new Uint8Array(y):D.input=y,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new o.Buf8(F),D.next_out=0,D.avail_out=F),(b=a.deflate(D,E))!==1&&b!==d)return this.onEnd(b),!(this.ended=!0);D.avail_out!==0&&(D.avail_in!==0||E!==4&&E!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(o.shrinkBuf(D.output,D.next_out))):this.onData(o.shrinkBuf(D.output,D.next_out)))}while((0<D.avail_in||D.avail_out===0)&&b!==1);return E===4?(b=a.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===d):E!==2||(this.onEnd(d),!(D.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,E,D,F,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&&(F=typeof U=="string"?s.string2buf(U):h.call(U)==="[object ArrayBuffer]"?new Uint8Array(U):U,y=a.inflateSetDictionary(this.strm,F)),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),E=z.next_out-b,D=s.buf2string(z.output,b),z.next_out=E,z.avail_out=W-E,E&&o.arraySet(z.output,z.output,b,E,0),this.onData(D)):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,E=286,D=30,F=19,z=2*E+1,W=15,U=3,G=258,ee=G+U+1,P=42,I=113,S=1,C=2,_=3,w=4;function x(j,ue){return j.msg=l[ue],ue}function A(j){return(j<<1)-(4<j?9:0)}function k(j){for(var ue=j.length;0<=--ue;)j[ue]=0}function R(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 M(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,R(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,B,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(B=G-(ve-Z),Z=ve-G,oe<B){if(j.match_start=ue,ce<=(oe=B))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,B,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;B=j.head[--ue],j.head[ue]=de<=B?B-de:0,--Q;);for(ue=Q=de;B=j.prev[--ue],j.prev[ue]=de<=B?B-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,B;;){if(j.lookahead<ee){if($(j),j.lookahead<ee&&ue===d)return S;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(B=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 B=s._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++;if(B&&(M(j,!1),j.strm.avail_out===0))return S}return j.insert=j.strstart<U-1?j.strstart:U-1,ue===h?(M(j,!0),j.strm.avail_out===0?_:w):j.last_lit&&(M(j,!1),j.strm.avail_out===0)?S:C}function O(j,ue){for(var Q,B,H;;){if(j.lookahead<ee){if($(j),j.lookahead<ee&&ue===d)return S;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,B=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++,B&&(M(j,!1),j.strm.avail_out===0))return S}else if(j.match_available){if((B=s._tr_tally(j,0,j.window[j.strstart-1]))&&M(j,!1),j.strstart++,j.lookahead--,j.strm.avail_out===0)return S}else j.match_available=1,j.strstart++,j.lookahead--}return j.match_available&&(B=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?(M(j,!0),j.strm.avail_out===0?_:w):j.last_lit&&(M(j,!1),j.strm.avail_out===0)?S:C}function L(j,ue,Q,B,H){this.good_length=j,this.max_lazy=ue,this.nice_length=Q,this.max_chain=B,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*D+1)),this.bl_tree=new o.Buf16(2*(2*F+1)),k(this.dyn_ltree),k(this.dyn_dtree),k(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*E+1),k(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*E+1),k(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?P:I,j.adler=ue.wrap===2?0:1,ue.last_flush=d,s._tr_init(ue),f):x(j,g)}function re(j){var ue=J(j);return ue===f&&function(Q){Q.window_size=2*Q.w_size,k(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,B,H,Z){if(!j)return g;var oe=1;if(ue===m&&(ue=6),B<0?(oe=0,B=-B):15<B&&(oe=2,B-=16),H<1||b<H||Q!==v||B<8||15<B||ue<0||9<ue||Z<0||p<Z)return x(j,g);B===8&&(B=9);var ce=new V;return(j.state=ce).strm=j,ce.wrap=oe,ce.gzhead=null,ce.w_bits=B,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 S;if(j.lookahead===0)break}j.strstart+=j.lookahead,j.lookahead=0;var B=j.block_start+Q;if((j.strstart===0||j.strstart>=B)&&(j.lookahead=j.strstart-B,j.strstart=B,M(j,!1),j.strm.avail_out===0)||j.strstart-j.block_start>=j.w_size-ee&&(M(j,!1),j.strm.avail_out===0))return S}return j.insert=0,ue===h?(M(j,!0),j.strm.avail_out===0?_:w):(j.strstart>j.block_start&&(M(j,!1),j.strm.avail_out),S)}),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,O),new L(8,16,32,32,O),new L(8,16,128,128,O),new L(8,32,128,256,O),new L(32,128,258,1024,O),new L(32,258,258,4096,O)],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,B,H,Z;if(!j||!j.state||5<ue||ue<0)return j?x(j,g):g;if(B=j.state,!j.output||!j.input&&j.avail_in!==0||B.status===666&&ue!==h)return x(j,j.avail_out===0?-5:g);if(B.strm=j,Q=B.last_flush,B.last_flush=ue,B.status===P)if(B.wrap===2)j.adler=0,X(B,31),X(B,139),X(B,8),B.gzhead?(X(B,(B.gzhead.text?1:0)+(B.gzhead.hcrc?2:0)+(B.gzhead.extra?4:0)+(B.gzhead.name?8:0)+(B.gzhead.comment?16:0)),X(B,255&B.gzhead.time),X(B,B.gzhead.time>>8&255),X(B,B.gzhead.time>>16&255),X(B,B.gzhead.time>>24&255),X(B,B.level===9?2:2<=B.strategy||B.level<2?4:0),X(B,255&B.gzhead.os),B.gzhead.extra&&B.gzhead.extra.length&&(X(B,255&B.gzhead.extra.length),X(B,B.gzhead.extra.length>>8&255)),B.gzhead.hcrc&&(j.adler=c(j.adler,B.pending_buf,B.pending,0)),B.gzindex=0,B.status=69):(X(B,0),X(B,0),X(B,0),X(B,0),X(B,0),X(B,B.level===9?2:2<=B.strategy||B.level<2?4:0),X(B,3),B.status=I);else{var oe=v+(B.w_bits-8<<4)<<8;oe|=(2<=B.strategy||B.level<2?0:B.level<6?1:B.level===6?2:3)<<6,B.strstart!==0&&(oe|=32),oe+=31-oe%31,B.status=I,K(B,oe),B.strstart!==0&&(K(B,j.adler>>>16),K(B,65535&j.adler)),j.adler=1}if(B.status===69)if(B.gzhead.extra){for(H=B.pending;B.gzindex<(65535&B.gzhead.extra.length)&&(B.pending!==B.pending_buf_size||(B.gzhead.hcrc&&B.pending>H&&(j.adler=c(j.adler,B.pending_buf,B.pending-H,H)),R(j),H=B.pending,B.pending!==B.pending_buf_size));)X(B,255&B.gzhead.extra[B.gzindex]),B.gzindex++;B.gzhead.hcrc&&B.pending>H&&(j.adler=c(j.adler,B.pending_buf,B.pending-H,H)),B.gzindex===B.gzhead.extra.length&&(B.gzindex=0,B.status=73)}else B.status=73;if(B.status===73)if(B.gzhead.name){H=B.pending;do{if(B.pending===B.pending_buf_size&&(B.gzhead.hcrc&&B.pending>H&&(j.adler=c(j.adler,B.pending_buf,B.pending-H,H)),R(j),H=B.pending,B.pending===B.pending_buf_size)){Z=1;break}Z=B.gzindex<B.gzhead.name.length?255&B.gzhead.name.charCodeAt(B.gzindex++):0,X(B,Z)}while(Z!==0);B.gzhead.hcrc&&B.pending>H&&(j.adler=c(j.adler,B.pending_buf,B.pending-H,H)),Z===0&&(B.gzindex=0,B.status=91)}else B.status=91;if(B.status===91)if(B.gzhead.comment){H=B.pending;do{if(B.pending===B.pending_buf_size&&(B.gzhead.hcrc&&B.pending>H&&(j.adler=c(j.adler,B.pending_buf,B.pending-H,H)),R(j),H=B.pending,B.pending===B.pending_buf_size)){Z=1;break}Z=B.gzindex<B.gzhead.comment.length?255&B.gzhead.comment.charCodeAt(B.gzindex++):0,X(B,Z)}while(Z!==0);B.gzhead.hcrc&&B.pending>H&&(j.adler=c(j.adler,B.pending_buf,B.pending-H,H)),Z===0&&(B.status=103)}else B.status=103;if(B.status===103&&(B.gzhead.hcrc?(B.pending+2>B.pending_buf_size&&R(j),B.pending+2<=B.pending_buf_size&&(X(B,255&j.adler),X(B,j.adler>>8&255),j.adler=0,B.status=I)):B.status=I),B.pending!==0){if(R(j),j.avail_out===0)return B.last_flush=-1,f}else if(j.avail_in===0&&A(ue)<=A(Q)&&ue!==h)return x(j,-5);if(B.status===666&&j.avail_in!==0)return x(j,-5);if(j.avail_in!==0||B.lookahead!==0||ue!==d&&B.status!==666){var ce=B.strategy===2?function(ne,se){for(var fe;;){if(ne.lookahead===0&&($(ne),ne.lookahead===0)){if(se===d)return S;break}if(ne.match_length=0,fe=s._tr_tally(ne,0,ne.window[ne.strstart]),ne.lookahead--,ne.strstart++,fe&&(M(ne,!1),ne.strm.avail_out===0))return S}return ne.insert=0,se===h?(M(ne,!0),ne.strm.avail_out===0?_:w):ne.last_lit&&(M(ne,!1),ne.strm.avail_out===0)?S:C}(B,ue):B.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 S;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&&(M(ne,!1),ne.strm.avail_out===0))return S}return ne.insert=0,se===h?(M(ne,!0),ne.strm.avail_out===0?_:w):ne.last_lit&&(M(ne,!1),ne.strm.avail_out===0)?S:C}(B,ue):a[B.level].func(B,ue);if(ce!==_&&ce!==w||(B.status=666),ce===S||ce===_)return j.avail_out===0&&(B.last_flush=-1),f;if(ce===C&&(ue===1?s._tr_align(B):ue!==5&&(s._tr_stored_block(B,0,0,!1),ue===3&&(k(B.head),B.lookahead===0&&(B.strstart=0,B.block_start=0,B.insert=0))),R(j),j.avail_out===0))return B.last_flush=-1,f}return ue!==h?f:B.wrap<=0?1:(B.wrap===2?(X(B,255&j.adler),X(B,j.adler>>8&255),X(B,j.adler>>16&255),X(B,j.adler>>24&255),X(B,255&j.total_in),X(B,j.total_in>>8&255),X(B,j.total_in>>16&255),X(B,j.total_in>>24&255)):(K(B,j.adler>>>16),K(B,65535&j.adler)),R(j),0<B.wrap&&(B.wrap=-B.wrap),B.pending!==0?f:1)},i.deflateEnd=function(j){var ue;return j&&j.state?(ue=j.state.status)!==P&&ue!==69&&ue!==73&&ue!==91&&ue!==103&&ue!==I&&ue!==666?x(j,g):(j.state=null,ue===I?x(j,-3):f):g},i.deflateSetDictionary=function(j,ue){var Q,B,H,Z,oe,ce,ne,se,fe=ue.length;if(!j||!j.state||(Z=(Q=j.state).wrap)===2||Z===1&&Q.status!==P||Q.lookahead)return g;for(Z===1&&(j.adler=u(j.adler,ue,fe,0)),Q.wrap=0,fe>=Q.w_size&&(Z===0&&(k(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(B=Q.strstart,H=Q.lookahead-(U-1);Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[B+U-1])&Q.hash_mask,Q.prev[B&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=B,B++,--H;);Q.strstart=B,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,E,D,F,z,W,U,G,ee,P,I,S,C;s=a.state,u=a.next_in,S=a.input,c=u+(a.avail_in-5),l=a.next_out,C=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,E=s.lencode,D=s.distcode,F=(1<<s.lenbits)-1,z=(1<<s.distbits)-1;e:do{b<15&&(v+=S[u++]<<b,b+=8,v+=S[u++]<<b,b+=8),W=E[v&F];t:for(;;){if(v>>>=U=W>>>24,b-=U,(U=W>>>16&255)==0)C[l++]=65535&W;else{if(!(16&U)){if((64&U)==0){W=E[(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+=S[u++]<<b,b+=8),G+=v&(1<<U)-1,v>>>=U,b-=U),b<15&&(v+=S[u++]<<b,b+=8,v+=S[u++]<<b,b+=8),W=D[v&z];r:for(;;){if(v>>>=U=W>>>24,b-=U,!(16&(U=W>>>16&255))){if((64&U)==0){W=D[(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+=S[u++]<<b,(b+=8)<U&&(v+=S[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(I=y,(P=0)===p){if(P+=g-U,U<G){for(G-=U;C[l++]=y[P++],--U;);P=l-ee,I=C}}else if(p<U){if(P+=g+p-U,(U-=p)<G){for(G-=U;C[l++]=y[P++],--U;);if(P=0,p<G){for(G-=U=p;C[l++]=y[P++],--U;);P=l-ee,I=C}}}else if(P+=p-U,U<G){for(G-=U;C[l++]=y[P++],--U;);P=l-ee,I=C}for(;2<G;)C[l++]=I[P++],C[l++]=I[P++],C[l++]=I[P++],G-=3;G&&(C[l++]=I[P++],1<G&&(C[l++]=I[P++]))}else{for(P=l-ee;C[l++]=C[P++],C[l++]=C[P++],C[l++]=C[P++],2<(G-=3););G&&(C[l++]=C[P++],1<G&&(C[l++]=C[P++]))}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(P){return(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<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(P){var I;return P&&P.state?(I=P.state,P.total_in=P.total_out=I.total=0,P.msg="",I.wrap&&(P.adler=1&I.wrap),I.mode=g,I.last=0,I.havedict=0,I.dmax=32768,I.head=null,I.hold=0,I.bits=0,I.lencode=I.lendyn=new a.Buf32(m),I.distcode=I.distdyn=new a.Buf32(p),I.sane=1,I.back=-1,h):f}function E(P){var I;return P&&P.state?((I=P.state).wsize=0,I.whave=0,I.wnext=0,b(P)):f}function D(P,I){var S,C;return P&&P.state?(C=P.state,I<0?(S=0,I=-I):(S=1+(I>>4),I<48&&(I&=15)),I&&(I<8||15<I)?f:(C.window!==null&&C.wbits!==I&&(C.window=null),C.wrap=S,C.wbits=I,E(P))):f}function F(P,I){var S,C;return P?(C=new v,(P.state=C).window=null,(S=D(P,I))!==h&&(P.state=null),S):f}var z,W,U=!0;function G(P){if(U){var I;for(z=new a.Buf32(512),W=new a.Buf32(32),I=0;I<144;)P.lens[I++]=8;for(;I<256;)P.lens[I++]=9;for(;I<280;)P.lens[I++]=7;for(;I<288;)P.lens[I++]=8;for(c(l,P.lens,0,288,z,0,P.work,{bits:9}),I=0;I<32;)P.lens[I++]=5;c(d,P.lens,0,32,W,0,P.work,{bits:5}),U=!1}P.lencode=z,P.lenbits=9,P.distcode=W,P.distbits=5}function ee(P,I,S,C){var _,w=P.state;return w.window===null&&(w.wsize=1<<w.wbits,w.wnext=0,w.whave=0,w.window=new a.Buf8(w.wsize)),C>=w.wsize?(a.arraySet(w.window,I,S-w.wsize,w.wsize,0),w.wnext=0,w.whave=w.wsize):(C<(_=w.wsize-w.wnext)&&(_=C),a.arraySet(w.window,I,S-C,_,w.wnext),(C-=_)?(a.arraySet(w.window,I,S-C,C,0),w.wnext=C,w.whave=w.wsize):(w.wnext+=_,w.wnext===w.wsize&&(w.wnext=0),w.whave<w.wsize&&(w.whave+=_))),0}i.inflateReset=E,i.inflateReset2=D,i.inflateResetKeep=b,i.inflateInit=function(P){return F(P,15)},i.inflateInit2=F,i.inflate=function(P,I){var S,C,_,w,x,A,k,R,M,X,K,te,$,q,O,L,V,J,re,ae,j,ue,Q,B,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(!P||!P.state||!P.output||!P.input&&P.avail_in!==0)return f;(S=P.state).mode===12&&(S.mode=13),x=P.next_out,_=P.output,k=P.avail_out,w=P.next_in,C=P.input,A=P.avail_in,R=S.hold,M=S.bits,X=A,K=k,ue=h;e:for(;;)switch(S.mode){case g:if(S.wrap===0){S.mode=13;break}for(;M<16;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if(2&S.wrap&&R===35615){Z[S.check=0]=255&R,Z[1]=R>>>8&255,S.check=s(S.check,Z,2,0),M=R=0,S.mode=2;break}if(S.flags=0,S.head&&(S.head.done=!1),!(1&S.wrap)||(((255&R)<<8)+(R>>8))%31){P.msg="incorrect header check",S.mode=30;break}if((15&R)!=8){P.msg="unknown compression method",S.mode=30;break}if(M-=4,j=8+(15&(R>>>=4)),S.wbits===0)S.wbits=j;else if(j>S.wbits){P.msg="invalid window size",S.mode=30;break}S.dmax=1<<j,P.adler=S.check=1,S.mode=512&R?10:12,M=R=0;break;case 2:for(;M<16;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if(S.flags=R,(255&S.flags)!=8){P.msg="unknown compression method",S.mode=30;break}if(57344&S.flags){P.msg="unknown header flags set",S.mode=30;break}S.head&&(S.head.text=R>>8&1),512&S.flags&&(Z[0]=255&R,Z[1]=R>>>8&255,S.check=s(S.check,Z,2,0)),M=R=0,S.mode=3;case 3:for(;M<32;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}S.head&&(S.head.time=R),512&S.flags&&(Z[0]=255&R,Z[1]=R>>>8&255,Z[2]=R>>>16&255,Z[3]=R>>>24&255,S.check=s(S.check,Z,4,0)),M=R=0,S.mode=4;case 4:for(;M<16;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}S.head&&(S.head.xflags=255&R,S.head.os=R>>8),512&S.flags&&(Z[0]=255&R,Z[1]=R>>>8&255,S.check=s(S.check,Z,2,0)),M=R=0,S.mode=5;case 5:if(1024&S.flags){for(;M<16;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}S.length=R,S.head&&(S.head.extra_len=R),512&S.flags&&(Z[0]=255&R,Z[1]=R>>>8&255,S.check=s(S.check,Z,2,0)),M=R=0}else S.head&&(S.head.extra=null);S.mode=6;case 6:if(1024&S.flags&&(A<(te=S.length)&&(te=A),te&&(S.head&&(j=S.head.extra_len-S.length,S.head.extra||(S.head.extra=new Array(S.head.extra_len)),a.arraySet(S.head.extra,C,w,te,j)),512&S.flags&&(S.check=s(S.check,C,te,w)),A-=te,w+=te,S.length-=te),S.length))break e;S.length=0,S.mode=7;case 7:if(2048&S.flags){if(A===0)break e;for(te=0;j=C[w+te++],S.head&&j&&S.length<65536&&(S.head.name+=String.fromCharCode(j)),j&&te<A;);if(512&S.flags&&(S.check=s(S.check,C,te,w)),A-=te,w+=te,j)break e}else S.head&&(S.head.name=null);S.length=0,S.mode=8;case 8:if(4096&S.flags){if(A===0)break e;for(te=0;j=C[w+te++],S.head&&j&&S.length<65536&&(S.head.comment+=String.fromCharCode(j)),j&&te<A;);if(512&S.flags&&(S.check=s(S.check,C,te,w)),A-=te,w+=te,j)break e}else S.head&&(S.head.comment=null);S.mode=9;case 9:if(512&S.flags){for(;M<16;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if(R!==(65535&S.check)){P.msg="header crc mismatch",S.mode=30;break}M=R=0}S.head&&(S.head.hcrc=S.flags>>9&1,S.head.done=!0),P.adler=S.check=0,S.mode=12;break;case 10:for(;M<32;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}P.adler=S.check=y(R),M=R=0,S.mode=11;case 11:if(S.havedict===0)return P.next_out=x,P.avail_out=k,P.next_in=w,P.avail_in=A,S.hold=R,S.bits=M,2;P.adler=S.check=1,S.mode=12;case 12:if(I===5||I===6)break e;case 13:if(S.last){R>>>=7&M,M-=7&M,S.mode=27;break}for(;M<3;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}switch(S.last=1&R,M-=1,3&(R>>>=1)){case 0:S.mode=14;break;case 1:if(G(S),S.mode=20,I!==6)break;R>>>=2,M-=2;break e;case 2:S.mode=17;break;case 3:P.msg="invalid block type",S.mode=30}R>>>=2,M-=2;break;case 14:for(R>>>=7&M,M-=7&M;M<32;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if((65535&R)!=(R>>>16^65535)){P.msg="invalid stored block lengths",S.mode=30;break}if(S.length=65535&R,M=R=0,S.mode=15,I===6)break e;case 15:S.mode=16;case 16:if(te=S.length){if(A<te&&(te=A),k<te&&(te=k),te===0)break e;a.arraySet(_,C,w,te,x),A-=te,w+=te,k-=te,x+=te,S.length-=te;break}S.mode=12;break;case 17:for(;M<14;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if(S.nlen=257+(31&R),R>>>=5,M-=5,S.ndist=1+(31&R),R>>>=5,M-=5,S.ncode=4+(15&R),R>>>=4,M-=4,286<S.nlen||30<S.ndist){P.msg="too many length or distance symbols",S.mode=30;break}S.have=0,S.mode=18;case 18:for(;S.have<S.ncode;){for(;M<3;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}S.lens[oe[S.have++]]=7&R,R>>>=3,M-=3}for(;S.have<19;)S.lens[oe[S.have++]]=0;if(S.lencode=S.lendyn,S.lenbits=7,Q={bits:S.lenbits},ue=c(0,S.lens,0,19,S.lencode,0,S.work,Q),S.lenbits=Q.bits,ue){P.msg="invalid code lengths set",S.mode=30;break}S.have=0,S.mode=19;case 19:for(;S.have<S.nlen+S.ndist;){for(;L=(H=S.lencode[R&(1<<S.lenbits)-1])>>>16&255,V=65535&H,!((O=H>>>24)<=M);){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if(V<16)R>>>=O,M-=O,S.lens[S.have++]=V;else{if(V===16){for(B=O+2;M<B;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if(R>>>=O,M-=O,S.have===0){P.msg="invalid bit length repeat",S.mode=30;break}j=S.lens[S.have-1],te=3+(3&R),R>>>=2,M-=2}else if(V===17){for(B=O+3;M<B;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}M-=O,j=0,te=3+(7&(R>>>=O)),R>>>=3,M-=3}else{for(B=O+7;M<B;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}M-=O,j=0,te=11+(127&(R>>>=O)),R>>>=7,M-=7}if(S.have+te>S.nlen+S.ndist){P.msg="invalid bit length repeat",S.mode=30;break}for(;te--;)S.lens[S.have++]=j}}if(S.mode===30)break;if(S.lens[256]===0){P.msg="invalid code -- missing end-of-block",S.mode=30;break}if(S.lenbits=9,Q={bits:S.lenbits},ue=c(l,S.lens,0,S.nlen,S.lencode,0,S.work,Q),S.lenbits=Q.bits,ue){P.msg="invalid literal/lengths set",S.mode=30;break}if(S.distbits=6,S.distcode=S.distdyn,Q={bits:S.distbits},ue=c(d,S.lens,S.nlen,S.ndist,S.distcode,0,S.work,Q),S.distbits=Q.bits,ue){P.msg="invalid distances set",S.mode=30;break}if(S.mode=20,I===6)break e;case 20:S.mode=21;case 21:if(6<=A&&258<=k){P.next_out=x,P.avail_out=k,P.next_in=w,P.avail_in=A,S.hold=R,S.bits=M,u(P,K),x=P.next_out,_=P.output,k=P.avail_out,w=P.next_in,C=P.input,A=P.avail_in,R=S.hold,M=S.bits,S.mode===12&&(S.back=-1);break}for(S.back=0;L=(H=S.lencode[R&(1<<S.lenbits)-1])>>>16&255,V=65535&H,!((O=H>>>24)<=M);){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if(L&&(240&L)==0){for(J=O,re=L,ae=V;L=(H=S.lencode[ae+((R&(1<<J+re)-1)>>J)])>>>16&255,V=65535&H,!(J+(O=H>>>24)<=M);){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}R>>>=J,M-=J,S.back+=J}if(R>>>=O,M-=O,S.back+=O,S.length=V,L===0){S.mode=26;break}if(32&L){S.back=-1,S.mode=12;break}if(64&L){P.msg="invalid literal/length code",S.mode=30;break}S.extra=15&L,S.mode=22;case 22:if(S.extra){for(B=S.extra;M<B;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}S.length+=R&(1<<S.extra)-1,R>>>=S.extra,M-=S.extra,S.back+=S.extra}S.was=S.length,S.mode=23;case 23:for(;L=(H=S.distcode[R&(1<<S.distbits)-1])>>>16&255,V=65535&H,!((O=H>>>24)<=M);){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if((240&L)==0){for(J=O,re=L,ae=V;L=(H=S.distcode[ae+((R&(1<<J+re)-1)>>J)])>>>16&255,V=65535&H,!(J+(O=H>>>24)<=M);){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}R>>>=J,M-=J,S.back+=J}if(R>>>=O,M-=O,S.back+=O,64&L){P.msg="invalid distance code",S.mode=30;break}S.offset=V,S.extra=15&L,S.mode=24;case 24:if(S.extra){for(B=S.extra;M<B;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}S.offset+=R&(1<<S.extra)-1,R>>>=S.extra,M-=S.extra,S.back+=S.extra}if(S.offset>S.dmax){P.msg="invalid distance too far back",S.mode=30;break}S.mode=25;case 25:if(k===0)break e;if(te=K-k,S.offset>te){if((te=S.offset-te)>S.whave&&S.sane){P.msg="invalid distance too far back",S.mode=30;break}$=te>S.wnext?(te-=S.wnext,S.wsize-te):S.wnext-te,te>S.length&&(te=S.length),q=S.window}else q=_,$=x-S.offset,te=S.length;for(k<te&&(te=k),k-=te,S.length-=te;_[x++]=q[$++],--te;);S.length===0&&(S.mode=21);break;case 26:if(k===0)break e;_[x++]=S.length,k--,S.mode=21;break;case 27:if(S.wrap){for(;M<32;){if(A===0)break e;A--,R|=C[w++]<<M,M+=8}if(K-=k,P.total_out+=K,S.total+=K,K&&(P.adler=S.check=S.flags?s(S.check,_,K,x-K):o(S.check,_,K,x-K)),K=k,(S.flags?R:y(R))!==S.check){P.msg="incorrect data check",S.mode=30;break}M=R=0}S.mode=28;case 28:if(S.wrap&&S.flags){for(;M<32;){if(A===0)break e;A--,R+=C[w++]<<M,M+=8}if(R!==(4294967295&S.total)){P.msg="incorrect length check",S.mode=30;break}M=R=0}S.mode=29;case 29:ue=1;break e;case 30:ue=-3;break e;case 31:return-4;case 32:default:return f}return P.next_out=x,P.avail_out=k,P.next_in=w,P.avail_in=A,S.hold=R,S.bits=M,(S.wsize||K!==P.avail_out&&S.mode<30&&(S.mode<27||I!==4))&&ee(P,P.output,P.next_out,K-P.avail_out)?(S.mode=31,-4):(X-=P.avail_in,K-=P.avail_out,P.total_in+=X,P.total_out+=K,S.total+=K,S.wrap&&K&&(P.adler=S.check=S.flags?s(S.check,_,K,P.next_out-K):o(S.check,_,K,P.next_out-K)),P.data_type=S.bits+(S.last?64:0)+(S.mode===12?128:0)+(S.mode===20||S.mode===15?256:0),(X==0&&K===0||I===4)&&ue===h&&(ue=-5),ue)},i.inflateEnd=function(P){if(!P||!P.state)return f;var I=P.state;return I.window&&(I.window=null),P.state=null,h},i.inflateGetHeader=function(P,I){var S;return P&&P.state?(2&(S=P.state).wrap)==0?f:((S.head=I).done=!1,h):f},i.inflateSetDictionary=function(P,I){var S,C=I.length;return P&&P.state?(S=P.state).wrap!==0&&S.mode!==11?f:S.mode===11&&o(1,I,C,0)!==S.check?-3:ee(P,I,C,C)?(S.mode=31,-4):(S.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,E,D,F,z,W,U,G,ee=y.bits,P=0,I=0,S=0,C=0,_=0,w=0,x=0,A=0,k=0,R=0,M=null,X=0,K=new a.Buf16(16),te=new a.Buf16(16),$=null,q=0;for(P=0;P<=15;P++)K[P]=0;for(I=0;I<f;I++)K[d[h+I]]++;for(_=ee,C=15;1<=C&&K[C]===0;C--);if(C<_&&(_=C),C===0)return g[m++]=20971520,g[m++]=20971520,y.bits=1,0;for(S=1;S<C&&K[S]===0;S++);for(_<S&&(_=S),P=A=1;P<=15;P++)if(A<<=1,(A-=K[P])<0)return-1;if(0<A&&(l===0||C!==1))return-1;for(te[1]=0,P=1;P<15;P++)te[P+1]=te[P]+K[P];for(I=0;I<f;I++)d[h+I]!==0&&(p[te[d[h+I]]++]=I);if(z=l===0?(M=$=p,19):l===1?(M=o,X-=257,$=s,q-=257,256):(M=u,$=c,-1),P=S,F=m,x=I=R=0,E=-1,D=(k=1<<(w=_))-1,l===1&&852<k||l===2&&592<k)return 1;for(;;){for(W=P-x,G=p[I]<z?(U=0,p[I]):p[I]>z?(U=$[q+p[I]],M[X+p[I]]):(U=96,0),v=1<<P-x,S=b=1<<w;g[F+(R>>x)+(b-=v)]=W<<24|U<<16|G|0,b!==0;);for(v=1<<P-1;R&v;)v>>=1;if(v!==0?(R&=v-1,R+=v):R=0,I++,--K[P]==0){if(P===C)break;P=d[h+p[I]]}if(_<P&&(R&D)!==E){for(x===0&&(x=_),F+=S,A=1<<(w=P-x);w+x<C&&!((A-=K[w+x])<=0);)w++,A<<=1;if(k+=1<<w,l===1&&852<k||l===2&&592<k)return 1;g[E=R&D]=_<<24|w<<16|F-m|0}}return R!==0&&(g[F+R]=P-x<<24|64<<16|0),y.bits=_,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,E=16,D=17,F=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 P=new Array(2*f);u(P);var I=new Array(512);u(I);var S=new Array(256);u(S);var C=new Array(l);u(C);var _,w,x,A=new Array(f);function k(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 R(H,Z){this.dyn_tree=H,this.max_code=0,this.stat_desc=Z}function M(H){return H<256?I[H]:I[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 O(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=S[ne])+d+1,Z),(fe=z[se])!==0&&K(H,ne-=C[se],fe),te(H,se=M(--ce),oe),(fe=W[se])!==0&&K(H,ce-=A[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,Fe){var He,qe,et,Be,Ge,tt,rt=Fe.dyn_tree,lt=Fe.max_code,Nt=Fe.stat_desc.static_tree,Wt=Fe.stat_desc.has_stree,dt=Fe.stat_desc.extra_bits,Pt=Fe.stat_desc.extra_base,_t=Fe.stat_desc.max_length,gt=0;for(Be=0;Be<=p;Be++)Se.bl_count[Be]=0;for(rt[2*Se.heap[Se.heap_max]+1]=0,He=Se.heap_max+1;He<m;He++)_t<(Be=rt[2*rt[2*(qe=Se.heap[He])+1]+1]+1)&&(Be=_t,gt++),rt[2*qe+1]=Be,lt<qe||(Se.bl_count[Be]++,Ge=0,Pt<=qe&&(Ge=dt[qe-Pt]),tt=rt[2*qe],Se.opt_len+=tt*(Be+Ge),Wt&&(Se.static_len+=tt*(Nt[2*qe+1]+Ge)));if(gt!==0){do{for(Be=_t-1;Se.bl_count[Be]===0;)Be--;Se.bl_count[Be]--,Se.bl_count[Be+1]+=2,Se.bl_count[_t]--,gt-=2}while(0<gt);for(Be=_t;Be!==0;Be--)for(qe=Se.bl_count[Be];qe!==0;)lt<(et=Se.heap[--He])||(rt[2*et+1]!==Be&&(Se.opt_len+=(Be-rt[2*et+1])*rt[2*et],rt[2*et+1]=Be),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*E]++):de<=10?H.bl_tree[2*D]++:H.bl_tree[2*F]++,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,E,H.bl_tree),K(H,de-3,2)):de<=10?(te(H,D,H.bl_tree),K(H,de-3,3)):(te(H,F,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(A);var Q=!1;function B(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(C[ne]=ce,Z=0;Z<1<<z[ne];Z++)S[ce++]=ne;for(S[ce-1]=ne,ne=se=0;ne<16;ne++)for(A[ne]=se,Z=0;Z<1<<W[ne];Z++)I[se++]=ne;for(se>>=7;ne<f;ne++)for(A[ne]=se<<7,Z=0;Z<1<<W[ne]-7;Z++)I[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++)P[2*Z+1]=5,P[2*Z]=$(Z,5);_=new k(ee,z,d+1,h,p),w=new k(P,W,0,f,p),x=new k(new Array(0),U,0,g,v)}(),Q=!0),H.l_desc=new R(H.dyn_ltree,_),H.d_desc=new R(H.dyn_dtree,w),H.bl_desc=new R(H.bl_tree,x),H.bi_buf=0,H.bi_valid=0,O(H)},i._tr_stored_block=B,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?B(H,Z,oe,ce):H.strategy===4||se===ne?(K(H,2+(ce?1:0),3),re(H,ee,P)):(K(H,4+(ce?1:0),3),function(de,ve,Ee,Se){var Fe;for(K(de,ve-257,5),K(de,Ee-1,5),K(de,Se-4,4),Fe=0;Fe<Se;Fe++)K(de,de.bl_tree[2*G[Fe]+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)),O(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*(S[oe]+d+1)]++,H.dyn_dtree[2*M(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(E){process.nextTick(function(){v(E)})}:function(){if(o.postMessage&&!o.importScripts){var E=!0,D=o.onmessage;return o.onmessage=function(){E=!1},o.postMessage("","*"),o.onmessage=D,E}}()?(d="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",b,!1):o.attachEvent("onmessage",b),function(E){o.postMessage(d+E,"*")}):o.MessageChannel?((l=new MessageChannel).port1.onmessage=function(E){v(E.data)},function(E){l.port2.postMessage(E)}):m&&"onreadystatechange"in m.createElement("script")?(c=m.documentElement,function(E){var D=m.createElement("script");D.onreadystatechange=function(){v(E),D.onreadystatechange=null,c.removeChild(D),D=null},c.appendChild(D)}):function(E){setTimeout(v,0,E)},p.setImmediate=function(E){typeof E!="function"&&(E=new Function(""+E));for(var D=new Array(arguments.length-1),F=0;F<D.length;F++)D[F]=arguments[F+1];var z={callback:E,args:D};return f[h]=z,u(h),h++},p.clearImmediate=y}function y(E){delete f[E]}function v(E){if(g)setTimeout(v,0,E);else{var D=f[E];if(D){g=!0;try{(function(F){var z=F.callback,W=F.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)}})(D)}finally{y(E),g=!1}}}}function b(E){E.source===o&&typeof E.data=="string"&&E.data.indexOf(d)===0&&v(+E.data.slice(d.length))}})(typeof self=="undefined"?a===void 0?this:a:self)}).call(this,typeof st!="undefined"?st:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})})(g3);var A$=sd,T$=g3.exports;yl.openArrayBuffer=S$;yl.splitPath=D$;yl.joinPath=C$;function S$(r){return T$.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 A$.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 D$(r){var t=r.lastIndexOf("/");return t===-1?{dirname:"",basename:r}:{dirname:r.substring(0,t),basename:r.substring(t+1)}}function C$(){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 v3={first:function(){return null},firstOrEmpty:function(){return v3},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)||v3};Ju.prototype.getElementsByTagName=function(r){var t=ud.filter(this.children,function(e){return e.name===r});return y3(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 O$={getElementsByTagName:function(r){return y3(ud.flatten(this.map(function(t){return t.getElementsByTagName(r)},!0)))}};function y3(r){return ud.extend(r,O$)}var b3={},sg={},cd={},Za={},To={};function I$(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 k$(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 w3=ug({HTML:"text/html",isHTML:function(r){return r===w3.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=k$;To.find=I$;To.freeze=ug;To.MIME_TYPE=w3;To.NAMESPACE=_3;var x3=To,Ya=x3.find,wl=x3.NAMESPACE;function R$(r){return r!==""}function N$(r){return r?r.split(/[\t\n\f\r ]+/).filter(R$):[]}function F$(r,t){return r.hasOwnProperty(t)||(r[t]=!0),r}function E3(r){if(!r)return[];var t=N$(r);return Object.keys(t.reduce(F$,{}))}function M$(r){return function(t){return r&&r.indexOf(t)!==-1}}function _l(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,_l(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,A3=ki.CDATA_SECTION_NODE=4,T3=ki.ENTITY_REFERENCE_NODE=5,U$=ki.ENTITY_NODE=6,S3=ki.PROCESSING_INSTRUCTION_NODE=7,D3=ki.COMMENT_NODE=8,C3=ki.DOCUMENT_NODE=9,O3=ki.DOCUMENT_TYPE_NODE=10,So=ki.DOCUMENT_FRAGMENT_NODE=11,B$=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 I3=ni.NOT_FOUND_ERR=(Ln[8]="Not found",8);ni.NOT_SUPPORTED_ERR=(Ln[9]="Not supported",9);var k3=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;_l(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(X3(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];_l(e,r),r._inc=t}}ec.prototype.item=function(r){return cg(this),this[r]||null};Ii(ec,Do);function fd(){}function R3(r,t){for(var e=r.length;e--;)if(r[e]===t)return e}function N3(r,t,e,n){if(n?t[R3(t,n)]=e:t[t.length++]=e,r){e.ownerElement=r;var i=r.ownerDocument;i&&(n&&B3(i,r,n),P$(i,r,e))}}function F3(r,t,e){var n=R3(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&&(B3(a,r,e),e.ownerElement=null)}}else throw new dn(I3,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(k3);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(k3);return e=this.getNamedItemNS(r.namespaceURI,r.localName),N3(this._ownerElement,this,r,e),e},removeNamedItem:function(r){var t=this.getNamedItem(r);return F3(this._ownerElement,this,t),t},removeNamedItemNS:function(r,t){var e=this.getNamedItemNS(r,t);return F3(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 M3(){}M3.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,W3),t&&this.removeChild(t)},removeChild:function(r){return P3(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=="<"&&"<"||r==">"&&">"||r=="&"&&"&"||r=='"'&&"""||"&#"+r.charCodeAt()+";"}_l(ki,Rr);_l(ki,Rr.prototype);function xl(r,t){if(t(r))return!0;if(r=r.firstChild)do if(xl(r,t))return!0;while(r=r.nextSibling)}function El(){this.ownerDocument=this}function P$(r,t,e){r&&r._inc++;var n=e.namespaceURI;n===wl.XMLNS&&(t._nsMap[e.prefix?e.localName:""]=e.value)}function B3(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 P3(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 L$(r){return r&&(r.nodeType===Rr.DOCUMENT_NODE||r.nodeType===Rr.DOCUMENT_FRAGMENT_NODE||r.nodeType===Rr.ELEMENT_NODE)}function j$(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 L3(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 j3(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 W$(r,t,e){if(!L$(r))throw new dn(Ri,"Unexpected parent node type "+r.nodeType);if(e&&e.parentNode!==r)throw new dn(I3,"child not in parent");if(!j$(t)||Co(t)&&r.nodeType!==Rr.DOCUMENT_NODE)throw new dn(Ri,"Unexpected node type "+t.nodeType+" for parent node type "+r.nodeType)}function z$(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&&!L3(r,e))throw new dn(Ri,"Element in fragment can not be inserted before doctype")}if(Ja(t)&&!L3(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 W3(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,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){W$(r,t,e),r.nodeType===Rr.DOCUMENT_NODE&&(n||z$)(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 H$(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:C3,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),P3(this,r)},replaceChild:function(r,t){hd(this,r,t,W3),r.ownerDocument=this,t&&this.removeChild(t),Ja(r)&&(this.documentElement=r)},importNode:function(r,t){return G3(this,r,t)},getElementById:function(r){var t=null;return xl(this.documentElement,function(e){if(e.nodeType==Ea&&e.getAttribute("id")==r)return t=e,!0}),t},getElementsByClassName:function(r){var t=E3(r);return new ec(this,function(e){var n=[];return t.length>0&&xl(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=E3(a);o=t.every(M$(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):H$(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 xl(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 xl(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:D3};Ii(dg,Al);function pg(){}pg.prototype={nodeName:"#cdata-section",nodeType:A3};Ii(pg,Al);function pd(){}pd.prototype.nodeType=O3;Ii(pd,Rr);function z3(){}z3.prototype.nodeType=B$;Ii(z3,Rr);function H3(){}H3.prototype.nodeType=U$;Ii(H3,Rr);function mg(){}mg.prototype.nodeType=T3;Ii(mg,Rr);function md(){}md.prototype.nodeName="#document-fragment";md.prototype.nodeType=So;Ii(md,Rr);function gg(){}gg.prototype.nodeType=S3;Ii(gg,Rr);function $3(){}$3.prototype.serializeToString=function(r,t,e){return V3.call(r,t,e)};Rr.prototype.toString=V3;function V3(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 q3(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(q3(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&&q3(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 C3: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 A3:return t.push("<![CDATA[",r.data,"]]>");case D3:return t.push("<!--",r.data,"-->");case O3: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 E=r.internalSubset;E&&t.push(" [",E,"]"),t.push(">")}return;case S3:return t.push("<?",r.target," ",r.data,"?>");case T3:return t.push("&",r.nodeName,";");default:t.push("??",r.nodeName)}}function G3(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(G3(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 X3(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}}}),X3=function(t,e,n){t["$$"+e]=n}}}catch{}Za.DocumentType=pd;Za.DOMException=dn;Za.DOMImplementation=M3;Za.Element=Hs;Za.Node=Rr;Za.NodeList=Do;Za.XMLSerializer=$3;var gd={},K3={};(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})(K3);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]/,Z3=new RegExp("[\\-\\.0-9"+wg.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),Y3=new RegExp("^"+wg.source+Z3.source+"*(?::"+wg.source+Z3.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 J3(){}J3.prototype={parse:function(r,t,e){var n=this.domBuilder;n.startDocument(),t8(t,t={}),$$(r,t,e,n,this.errorHandler),n.endDocument()}};function $$(r,t,e,n,i){function a(_){if(_>65535){_-=65536;var w=55296+(_>>10),x=56320+(_&1023);return String.fromCharCode(w,x)}else return String.fromCharCode(_)}function o(_){var w=_.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:"+_),_)}function s(_){if(_>m){var w=r.substring(m,_).replace(/&#?\w+;/g,o);h&&u(m),n.characters(w,0,_-m),m=_}}function u(_,w){for(;_>=l&&(w=d.exec(r));)c=w.index,l=c+w[0].length,h.lineNumber++;h.columnNumber=_-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),E=r.substring(p+2,b).replace(/[ \t\n\r]+$/g,""),D=f.pop();b<0?(E=r.substring(p+2).replace(/[\s<].*/,""),i.error("end tag name: "+E+" is not complete:"+D.tagName),b=p+1+E.length):E.match(/\s</)&&(E=E.replace(/[\s<].*/,""),i.error("end tag name: "+E+" maybe not complete"),b=p+1+E.length);var F=D.localNSMap,z=D.tagName==E,W=z||D.tagName&&D.tagName.toLowerCase()==E.toLowerCase();if(W){if(n.endElement(D.uri,D.localName,E),F)for(var U in F)Object.prototype.hasOwnProperty.call(F,U)&&n.endPrefixMapping(U);z||i.fatalError("end tag name: "+E+" is not match the current start tagName:"+D.tagName)}else f.push(D);b++;break;case"?":h&&u(p),b=K$(r,p,n);break;case"!":h&&u(p),b=X$(r,p,n,i);break;default:h&&u(p);var G=new r8,ee=f[f.length-1].currentNSMap,b=V$(r,p,G,ee,o,i),P=G.length;if(!G.closed&&G$(r,b,G.tagName,g)&&(G.closed=!0,e.nbsp||i.warning("unclosed xml attribute")),h&&P){for(var I=Q3(h,{}),S=0;S<P;S++){var C=G[S];u(C.offset),C.locator=Q3(h,{})}n.locator=I,e8(G,n,ee)&&f.push(G),n.locator=h}else e8(G,n,ee)&&f.push(G);Tl.isHTML(G.uri)&&!G.closed?b=q$(r,b,G.tagName,o,n):b++}}catch(_){if(_ instanceof ac)throw _;i.error("element parse error: "+_),b=-1}b>m?m=b:s(Math.max(p,m)+1)}}function Q3(r,t){return t.lineNumber=r.lineNumber,t.columnNumber=r.columnNumber,t}function V$(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 e8(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={},t8(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 q$(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 G$(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 t8(r,t){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}function X$(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=Z$(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 K$(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 r8(){this.attributeNames={}}r8.prototype={setTagName:function(r){if(!Y3.test(r))throw new Error("invalid tagName:"+r);this.tagName=r},addValue:function(r,t,e){if(!Y3.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 Z$(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=J3;bg.ParseError=ac;var Y$=To,J$=Za,n8=K3,i8=bg,Q$=J$.DOMImplementation,a8=Y$.NAMESPACE,eV=i8.ParseError,tV=i8.XMLReader;function o8(r){return r.replace(/\r[\n\u0085]/g,`
|
|
`).replace(/[\r\u0085\u2028]/g,`
|
|
`)}function s8(r){this.options=r||{locator:{}}}s8.prototype.parseFromString=function(r,t){var e=this.options,n=new tV,i=e.domBuilder||new Ol,a=e.errorHandler,o=e.locator,s=e.xmlns||{},u=/\/x?html?$/.test(t),c=u?n8.HTML_ENTITIES:n8.XML_ENTITIES;o&&i.setDocumentLocator(o),n.errorHandler=rV(a,i,o),n.domBuilder=e.domBuilder||i,u&&(s[""]=a8.HTML),s.xml=s.xml||a8.XML;var l=e.normalizeLineEndings||o8;return r&&typeof r=="string"?n.parse(l(r),s,c):n.errorHandler.error("invalid doc source"),i.doc};function rV(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+_g(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 Q$().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=u8.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=u8.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,_g(this.locator))},error:function(r){console.error("[xmldom error] "+r,_g(this.locator))},fatalError:function(r){throw new eV(r,this.locator)}};function _g(r){if(r)return`
|
|
@`+(r.systemId||"")+"#[line:"+r.lineNumber+",col:"+r.columnNumber+"]"}function u8(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=o8;gd.DOMParser=s8;var c8=Za;cd.DOMImplementation=c8.DOMImplementation;cd.XMLSerializer=c8.XMLSerializer;cd.DOMParser=gd.DOMParser;var nV=cd,iV=Za;function aV(r){var t=null,e=new nV.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=aV;sg.Node=iV.Node;var xg=Bn,l8=on.exports,f8=sg,h8=bl,oV=h8.Element;b3.readString=sV;var d8=f8.Node;function sV(r,t){t=t||{};try{var e=f8.parseFromString(r,"text/xml")}catch(o){return xg.reject(o)}if(e.documentElement.tagName==="parsererror")return xg.resolve(new Error(e.documentElement.textContent));function n(o){switch(o.nodeType){case d8.ELEMENT_NODE:return i(o);case d8.TEXT_NODE:return h8.text(o.nodeValue)}}function i(o){var s=a(o),u=[];l8.forEach(o.childNodes,function(l){var d=n(l);d&&u.push(d)});var c={};return l8.forEach(o.attributes,function(l){c[a(l)]=l.value}),new oV(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 xg.resolve(n(e.documentElement))}var p8={},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(st);var m8={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(st);(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(st);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(st);var Nl={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,Nl.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(st);var Fl={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,Fl.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(st);var Ml={exports:{}},Ul={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,Ul.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(st);var Bl={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,Bl.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(st);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(st);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(st);(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=Ul.exports,e=Bl.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(st);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(st);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(st);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(st);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(st);(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=Nl.exports,e=Fl.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,E,D,F,z,W,U,G,ee,P,I;if(W=null,y===null&&v==null&&(ee=[{},null],y=ee[0],v=ee[1]),y==null&&(y={}),y=c(y),h(y)||(P=[y,v],v=P[0],y=P[1]),p!=null&&(p=c(p)),Array.isArray(p))for(D=0,U=p.length;D<U;D++)E=p[D],W=this.element(E);else if(d(p))W=this.element(p.apply());else if(h(p)){for(z in p)if(!!g.call(p,z))if(I=p[z],d(I)&&(I=I.apply()),h(I)&&l(I)&&(I=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&z.indexOf(this.stringify.convertAttKey)===0)W=this.attribute(z.substr(this.stringify.convertAttKey.length),I);else if(!this.options.separateArrayItems&&Array.isArray(I))for(F=0,G=I.length;F<G;F++)E=I[F],b={},b[z]=E,W=this.element(b);else h(I)?(W=this.element(z),W.element(I)):W=this.element(z,I)}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,E,D;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(p));return E=this.parent.children.indexOf(this),D=this.parent.children.splice(E),b=this.parent.element(p,y,v),Array.prototype.push.apply(this.parent.children,D),b},m.prototype.insertAfter=function(p,y,v){var b,E,D;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(p));return E=this.parent.children.indexOf(this),D=this.parent.children.splice(E+1),b=this.parent.element(p,y,v),Array.prototype.push.apply(this.parent.children,D),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,E;return p!=null&&(p=c(p)),y||(y={}),y=c(y),h(y)||(E=[y,v],v=E[0],y=E[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,E,D,F;if(p!=null&&(p=c(p)),y!=null&&(y=c(y)),Array.isArray(p))for(D=0,F=p.length;D<F;D++)v=p[D],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()),E=new o(this,p,y),this.children.push(E);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,E;return b=this.document(),E=new e(b,p,y,v),b.children[0]instanceof e?b.children[0]=E:b.children.unshift(E),b.root()||b},m.prototype.doctype=function(p,y){var v,b,E,D,F,z,W,U,G,ee;for(b=this.document(),E=new n(b,p,y),G=b.children,D=F=0,W=G.length;F<W;D=++F)if(v=G[D],v instanceof n)return b.children[D]=E,E;for(ee=b.children,D=z=0,U=ee.length;z<U;D=++z)if(v=ee[D],v.isRoot)return b.children.splice(D,0,E),E;return b.children.push(E),E},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(st);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,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},e.prototype.attEscape=function(n){var i;return i=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,n.replace(i,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},e}()}).call(st);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(st);(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=Fl.exports,s=Ml.exports,r=Rl.exports,t=Nl.exports,c=kl.exports,d=jl.exports,h=Wl.exports,l=zl.exports,u=bd.exports,e=Ul.exports,n=Pl.exports,i=Bl.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,E,D,F,z;for(this.textispresent=!1,F="",z=v.children,E=0,D=z.length;E<D;E++)b=z[E],!(b instanceof u)&&(F+=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&&F.slice(-this.newline.length)===this.newline&&(F=F.slice(0,-this.newline.length)),F},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 E;return E=this.space(b),E+='<?xml version="'+v.version+'"',v.encoding!=null&&(E+=' encoding="'+v.encoding+'"'),v.standalone!=null&&(E+=' standalone="'+v.standalone+'"'),E+=this.spacebeforeslash+"?>",E+=this.newline,E},y.prototype.docType=function(v,b){var E,D,F,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,D=0,F=W.length;D<F;D++)E=W[D],z+=function(){switch(!1){case!(E instanceof e):return this.dtdAttList(E,b+1);case!(E instanceof n):return this.dtdElement(E,b+1);case!(E instanceof i):return this.dtdEntity(E,b+1);case!(E instanceof a):return this.dtdNotation(E,b+1);case!(E instanceof r):return this.cdata(E,b+1);case!(E instanceof t):return this.comment(E,b+1);case!(E instanceof l):return this.processingInstruction(E,b+1);default:throw new Error("Unknown DTD node type: "+E.constructor.name)}}.call(this);z+="]"}return z+=this.spacebeforeslash+">",z+=this.newline,z},y.prototype.element=function(v,b){var E,D,F,z,W,U,G,ee,P,I,S,C,_;b||(b=0),_=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),C=this.space(b),ee="",ee+=C+"<"+v.name,P=v.attributes;for(G in P)!m.call(P,G)||(E=P[G],ee+=this.attribute(E));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(I=v.children,F=0,W=I.length;F<W;F++)if(D=I[F],D.value!=null){this.textispresent++,_=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,C=this.space(b)),ee+=">"+this.newline,S=v.children,z=0,U=S.length;z<U;z++)D=S[z],ee+=function(){switch(!1){case!(D instanceof r):return this.cdata(D,b+1);case!(D instanceof t):return this.comment(D,b+1);case!(D instanceof c):return this.element(D,b+1);case!(D instanceof d):return this.raw(D,b+1);case!(D instanceof h):return this.text(D,b+1);case!(D instanceof l):return this.processingInstruction(D,b+1);case!(D instanceof u):return"";default:throw new Error("Unknown XML node type: "+D.constructor.name)}}.call(this);_&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),ee+=C+"</"+v.name+">"+this.newline}return ee},y.prototype.processingInstruction=function(v,b){var E;return E=this.space(b)+"<?"+v.target,v.value&&(E+=" "+v.value),E+=this.spacebeforeslash+"?>"+this.newline,E},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 E;return E=this.space(b)+"<!ATTLIST "+v.elementName+" "+v.attributeName+" "+v.attributeType,v.defaultValueType!=="#DEFAULT"&&(E+=" "+v.defaultValueType),v.defaultValue&&(E+=' "'+v.defaultValue+'"'),E+=this.spacebeforeslash+">"+this.newline,E},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 E;return E=this.space(b)+"<!ENTITY",v.pe&&(E+=" %"),E+=" "+v.name,v.value?E+=' "'+v.value+'"':(v.pubID&&v.sysID?E+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(E+=' SYSTEM "'+v.sysID+'"'),v.nData&&(E+=" NDATA "+v.nData)),E+=this.spacebeforeslash+">"+this.newline,E},y.prototype.dtdNotation=function(v,b){var E;return E=this.space(b)+"<!NOTATION "+v.name,v.pubID&&v.sysID?E+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.pubID?E+=' PUBLIC "'+v.pubID+'"':v.sysID&&(E+=' SYSTEM "'+v.sysID+'"'),E+=this.spacebeforeslash+">"+this.newline,E},y.prototype.openNode=function(v,b){var E,D,F,z;if(b||(b=0),v instanceof c){F=this.space(b)+"<"+v.name,z=v.attributes;for(D in z)!m.call(z,D)||(E=z[D],F+=this.attribute(E));return F+=(v.children?">":"/>")+this.newline,F}else return F=this.space(b)+"<!DOCTYPE "+v.rootNodeName,v.pubID&&v.sysID?F+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(F+=' SYSTEM "'+v.sysID+'"'),F+=(v.children?" [":">")+this.newline,F},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(st);(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,m8.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(st);var g8={exports:{}};(function(){var r,t,e,n,i,a,o,s,u,c,l,d,h,f,g,m,p,y,v,b,E={}.hasOwnProperty;b=mi,y=b.isObject,p=b.isFunction,v=b.isPlainObject,m=b.getValue,c=kl.exports,t=Rl.exports,e=Nl.exports,d=jl.exports,g=Wl.exports,l=zl.exports,s=Fl.exports,u=Ml.exports,n=Ul.exports,a=Bl.exports,i=Pl.exports,o=Ll.exports,r=Eg.exports,f=Ag.exports,h=wd.exports,g8.exports=function(){function D(F,z,W){var U;this.name="?xml",F||(F={}),F.writer?v(F.writer)&&(U=F.writer,F.writer=new h(U)):F.writer=new h(F),this.options=F,this.writer=F.writer,this.stringify=new f(F),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 D.prototype.node=function(F,z,W){var U,G;if(F==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(F));return this.openCurrent(),F=m(F),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,F,z),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,W!=null&&this.text(W),this},D.prototype.element=function(F,z,W){return this.currentNode&&this.currentNode instanceof u?this.dtdElement.apply(this,arguments):this.node(F,z,W)},D.prototype.attribute=function(F,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(F));if(F!=null&&(F=m(F)),y(F))for(W in F)!E.call(F,W)||(U=F[W],this.attribute(W,U));else p(z)&&(z=z.apply()),(!this.options.skipNullAttributes||z!=null)&&(this.currentNode.attributes[F]=new r(this,F,z));return this},D.prototype.text=function(F){var z;return this.openCurrent(),z=new g(this,F),this.onData(this.writer.text(z,this.currentLevel+1),this.currentLevel+1),this},D.prototype.cdata=function(F){var z;return this.openCurrent(),z=new t(this,F),this.onData(this.writer.cdata(z,this.currentLevel+1),this.currentLevel+1),this},D.prototype.comment=function(F){var z;return this.openCurrent(),z=new e(this,F),this.onData(this.writer.comment(z,this.currentLevel+1),this.currentLevel+1),this},D.prototype.raw=function(F){var z;return this.openCurrent(),z=new d(this,F),this.onData(this.writer.raw(z,this.currentLevel+1),this.currentLevel+1),this},D.prototype.instruction=function(F,z){var W,U,G,ee,P;if(this.openCurrent(),F!=null&&(F=m(F)),z!=null&&(z=m(z)),Array.isArray(F))for(W=0,ee=F.length;W<ee;W++)U=F[W],this.instruction(U);else if(y(F))for(U in F)!E.call(F,U)||(G=F[U],this.instruction(U,G));else p(z)&&(z=z.apply()),P=new l(this,F,z),this.onData(this.writer.processingInstruction(P,this.currentLevel+1),this.currentLevel+1);return this},D.prototype.declaration=function(F,z,W){var U;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return U=new s(this,F,z,W),this.onData(this.writer.declaration(U,this.currentLevel+1),this.currentLevel+1),this},D.prototype.doctype=function(F,z,W){if(this.openCurrent(),F==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=F,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},D.prototype.dtdElement=function(F,z){var W;return this.openCurrent(),W=new i(this,F,z),this.onData(this.writer.dtdElement(W,this.currentLevel+1),this.currentLevel+1),this},D.prototype.attList=function(F,z,W,U,G){var ee;return this.openCurrent(),ee=new n(this,F,z,W,U,G),this.onData(this.writer.dtdAttList(ee,this.currentLevel+1),this.currentLevel+1),this},D.prototype.entity=function(F,z){var W;return this.openCurrent(),W=new a(this,!1,F,z),this.onData(this.writer.dtdEntity(W,this.currentLevel+1),this.currentLevel+1),this},D.prototype.pEntity=function(F,z){var W;return this.openCurrent(),W=new a(this,!0,F,z),this.onData(this.writer.dtdEntity(W,this.currentLevel+1),this.currentLevel+1),this},D.prototype.notation=function(F,z){var W;return this.openCurrent(),W=new o(this,F,z),this.onData(this.writer.dtdNotation(W,this.currentLevel+1),this.currentLevel+1),this},D.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},D.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},D.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},D.prototype.openNode=function(F){if(!F.isOpen)return!this.root&&this.currentLevel===0&&F instanceof c&&(this.root=F),this.onData(this.writer.openNode(F,this.currentLevel),this.currentLevel),F.isOpen=!0},D.prototype.closeNode=function(F){if(!F.isClosed)return this.onData(this.writer.closeNode(F,this.currentLevel),this.currentLevel),F.isClosed=!0},D.prototype.onData=function(F,z){return this.documentStarted=!0,this.onDataCallback(F,z+1)},D.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},D.prototype.debugInfo=function(F){return F==null?"":"node: <"+F+">"},D.prototype.ele=function(){return this.element.apply(this,arguments)},D.prototype.nod=function(F,z,W){return this.node(F,z,W)},D.prototype.txt=function(F){return this.text(F)},D.prototype.dat=function(F){return this.cdata(F)},D.prototype.com=function(F){return this.comment(F)},D.prototype.ins=function(F,z){return this.instruction(F,z)},D.prototype.dec=function(F,z,W){return this.declaration(F,z,W)},D.prototype.dtd=function(F,z,W){return this.doctype(F,z,W)},D.prototype.e=function(F,z,W){return this.element(F,z,W)},D.prototype.n=function(F,z,W){return this.node(F,z,W)},D.prototype.t=function(F){return this.text(F)},D.prototype.d=function(F){return this.cdata(F)},D.prototype.c=function(F){return this.comment(F)},D.prototype.r=function(F){return this.raw(F)},D.prototype.i=function(F,z){return this.instruction(F,z)},D.prototype.att=function(){return this.currentNode&&this.currentNode instanceof u?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},D.prototype.a=function(){return this.currentNode&&this.currentNode instanceof u?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},D.prototype.ent=function(F,z){return this.entity(F,z)},D.prototype.pent=function(F,z){return this.pEntity(F,z)},D.prototype.not=function(F,z){return this.notation(F,z)},D}()}).call(st);var v8={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=Fl.exports,s=Ml.exports,r=Rl.exports,t=Nl.exports,c=kl.exports,d=jl.exports,h=Wl.exports,l=zl.exports,u=bd.exports,e=Ul.exports,n=Pl.exports,i=Bl.exports,a=Ll.exports,f=Tg.exports,v8.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,E,D,F,z,W,U,G;for(W=v.children,E=0,F=W.length;E<F;E++)b=W[E],b.isLastRootNode=!1;for(v.children[v.children.length-1].isLastRootNode=!0,U=v.children,G=[],D=0,z=U.length;D<z;D++)if(b=U[D],!(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 E,D,F,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,D=0,F=z.length;D<F;D++)switch(E=z[D],!1){case!(E instanceof e):this.dtdAttList(E,b+1);break;case!(E instanceof n):this.dtdElement(E,b+1);break;case!(E instanceof i):this.dtdEntity(E,b+1);break;case!(E instanceof a):this.dtdNotation(E,b+1);break;case!(E instanceof r):this.cdata(E,b+1);break;case!(E instanceof t):this.comment(E,b+1);break;case!(E instanceof l):this.processingInstruction(E,b+1);break;default:throw new Error("Unknown DTD node type: "+E.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(v))},y.prototype.element=function(v,b){var E,D,F,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)||(E=U[W],this.attribute(E));if(v.children.length===0||v.children.every(function(P){return P.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,F=0,z=G.length;F<z;F++)switch(D=G[F],!1){case!(D instanceof r):this.cdata(D,b+1);break;case!(D instanceof t):this.comment(D,b+1);break;case!(D instanceof c):this.element(D,b+1);break;case!(D instanceof d):this.raw(D,b+1);break;case!(D instanceof h):this.text(D,b+1);break;case!(D instanceof l):this.processingInstruction(D,b+1);break;case!(D instanceof u):break;default:throw new Error("Unknown XML node type: "+D.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(st);(function(){var r,t,e,n,i,a,o;o=mi,i=o.assign,a=o.isFunction,r=m8.exports,t=g8.exports,n=wd.exports,e=v8.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(st);var y8=on.exports,uV=Il;p8.writeString=cV;function cV(r,t){var e=y8.invert(t),n={element:a,text:lV};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=uV.create(o(u.name),{version:"1.0",encoding:"UTF-8",standalone:!0});return y8.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 lV(r,t){r.text(t.value)}var Sg=bl;zs.Element=Sg.Element;zs.element=Sg.element;zs.text=Sg.text;zs.readString=b3.readString;zs.writeString=p8.writeString;var fV=on.exports,hV=Bn,dV=zs;og.read=b8;og.readXmlFromZipFile=mV;var pV={"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 b8(r){return dV.readString(r,pV).then(function(t){return w8(t)[0]})}function mV(r,t){return r.exists(t)?r.read(t,"utf-8").then(gV).then(b8):hV.resolve(null)}function gV(r){return r.replace(/^\uFEFF/g,"")}function w8(r){return r.type==="element"?r.name==="mc:AlternateContent"?r.first("mc:Fallback").children:(r.children=fV.flatten(r.children.map(w8,!0)),[r]):[r]}var Dg={},us={},Cg={};Object.defineProperty(Cg,"__esModule",{value:!0});var vV=[{"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=vV;var yV=st&&st.__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 bV=yV(Cg),_8={},wV=String.fromCodePoint?String.fromCodePoint:AV;for(var Og=0,x8=bV.default;Og<x8.length;Og++){var Ig=x8[Og],E8=parseInt(Ig["Unicode dec"],10),_V={codePoint:E8,string:wV(E8)};_8[Ig["Typeface name"].toUpperCase()+"_"+Ig["Dingbat dec"]]=_V}function kg(r,t){return _8[r.toUpperCase()+"_"+t]}us.codePoint=kg;function xV(r,t){return kg(r,parseInt(t,10))}us.dec=xV;function EV(r,t){return kg(r,parseInt(t,16))}us.hex=EV;function AV(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=TV;Rg.replaceFragment=SV;function TV(r,t){return t.charAt(0)==="/"?t.substr(1):r+"/"+t}function SV(r,t){var e=r.indexOf("#");return e!==-1&&(r=r.substring(0,e)),r+"#"+t}Dg.createBodyReader=DV;Dg._readNumberingProperties=C8;var A8=us,oa=on.exports,pn=pr,T8=$i.Result,Oo=$i.warning,S8=Rg;function DV(r){return{readXmlElement:function(t){return new D8(r).readXmlElement(t)},readXmlElements:function(t){return new D8(r).readXmlElements(t)}}}function D8(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 O8(J)}function d(V){if(V.type==="element"){var J=C[V.name];if(J)return J(V);if(!Object.prototype.hasOwnProperty.call(OV,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:C8(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 D(V,"w:pStyle","Paragraph",c.findParagraphStyleById)}function b(V){return D(V,"w:rStyle","Run",c.findCharacterStyleById)}function E(V){return D(V,"w:tblStyle","Table",c.findTableStyleById)}function D(V,J,re,ae){var j=[],ue=V.first(J),Q=null,B=null;if(ue&&(Q=ue.attributes["w:val"],Q)){var H=ae(Q);H?B=H.name:j.push(L(re,Q))}return _d({styleId:Q,name:B},j)}var F={type:"unknown"};function z(V){var J=V.attributes["w:fldCharType"];if(J==="begin")t.push(F),e=[];else if(J==="end")t.pop();else if(J==="separate"){var re=U(e.join("")),ae=re===null?F:{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=A8.hex(J,re);return ae==null&&/^F0..$/.test(re)&&(ae=A8.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 P(V){return function(J){var re=J.attributes["w:id"];return sa(new pn.NoteReference({noteType:V,noteId:re}))}}function I(V){return sa(pn.commentReference({commentId:V.attributes["w:id"]}))}function S(V){return l(V.children)}var C={"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 B=V.attributes["w:tgtFrame"]||null;return new pn.Hyperlink(ae,oa.extend({targetFrame:B},Q))}if(J){var ue=i.findTargetByRelationshipId(J);return re&&(ue=S8.replaceFragment(ue,re)),j({href:ue})}else return re?j({anchor:re}):ae})},"w:tbl":_,"w:tr":x,"w:tc":A,"w:footnoteReference":P("footnote"),"w:endnoteReference":P("endnote"),"w:commentReference":I,"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 S(V.first("mc:Fallback"))},"w:sdt":function(V){return l(V.firstOrEmpty("w:sdtContent").children)},"w:ins":S,"w:object":S,"w:smartTag":S,"w:drawing":S,"w:pict":function(V){return S(V).toExtra()},"v:roundrect":S,"v:shape":S,"v:textbox":S,"w:txbxContent":S,"wp:inline":M,"wp:anchor":M,"v:imagedata":$,"v:group":S,"v:rect":S};return{readXmlElement:d,readXmlElements:l};function _(V){var J=w(V.firstOrEmpty("w:tblPr"));return l(V.children).flatMap(R).flatMap(function(re){return J.map(function(ae){return pn.Table(re,ae)})})}function w(V){return E(V).map(function(J){return{styleId:J.styleId,styleName:J.name}})}function x(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 A(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=k(re),ue})}function k(V){var J=V.first("w:vMerge");if(J){var re=J.attributes["w:val"];return re==="continue"||!re}else return null}function R(V){var J=oa.any(V,function(j){return j.type!==pn.types.tableRow});if(J)return _d(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 _d(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 M(V){var J=V.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return O8(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")]):O(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?O(q(J),V.attributes["o:title"]):Hl([Oo("A v:imagedata element without a relationship ID was ignored")])}function q(V){var J=S8.uriToZipEntryName("word",i.findTargetByRelationshipId(V));return{path:J,read:o.read.bind(o,J)}}function O(V,J){var re=a.findContentType(V.path),ae=pn.Image({readImage:V.read,altText:J,contentType:re}),j=CV[re]?[]:Oo("Image of type "+re+" is unlikely to display in web browsers");return _d(ae,j)}function L(V,J){return Oo(V+" style with ID "+J+" was referenced but not defined in the document")}}function C8(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 CV={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},OV={"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 _d(r,t){return new qn(r,null,t)}function qn(r,t,e){this.value=r||[],this.extra=t||[],this._result=new T8({element:this.value,extra:t},e),this.messages=this._result.messages}qn.prototype.toExtra=function(){return new qn(null,xd(this.extra,this.value),this.messages)};qn.prototype.insertExtra=function(){var r=this.extra;return r&&r.length?new qn(xd(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,xd(this.extra,t.value.extra),t.messages)};qn.map=function(r,t,e){return new qn(e(r.value,t.value),xd(r.extra,t.extra),r.messages.concat(t.messages))};function O8(r){var t=T8.combine(oa.pluck(r,"_result"));return new qn(oa.flatten(oa.pluck(t.value,"element")),oa.filter(oa.flatten(oa.pluck(t.value,"extra")),IV),t.messages)}function xd(r,t){return oa.flatten([r,t])}function IV(r){return r}var I8={};I8.DocumentXmlReader=NV;var kV=pr,RV=$i.Result;function NV(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 kV.Document(o,{notes:r.notes,comments:r.comments})});return new RV(a.value,a.messages)}return{convertXmlToDocument:e}}var Ed={};Ed.readRelationships=FV;Ed.defaultValue=new Ng([]);Ed.Relationships=Ng;function FV(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 Ng(t)}function Ng(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 Fg={};Fg.readContentTypesFromXml=UV;var MV={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};Fg.defaultContentTypes=k8({},{});function UV(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}}),k8(e,t)}function k8(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=MV[a.toLowerCase()];return o?"image/"+o:null}}}var Ad={},Td=on.exports;Ad.readNumberingXml=BV;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 BV(r,t){if(!t||!t.styles)throw new Error("styles is missing");var e=PV(r),n=jV(r);return new Mg(n,e,t.styles)}function PV(r){var t={};return r.getElementsByTagName("w:abstractNum").forEach(function(e){var n=e.attributes["w:abstractNumId"];t[n]=LV(e)}),t}function LV(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 jV(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=WV;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 WV(r){var t={},e={},n={},i={},a={paragraph:t,character:e,table:n};return r.getElementsByTagName("w:style").forEach(function(o){var s=zV(o);if(s.type==="numbering")i[s.styleId]=$V(o);else{var u=a[s.type];u&&(u[s.styleId]=s)}}),new Vl(t,e,n,i)}function zV(r){var t=r.attributes["w:type"],e=r.attributes["w:styleId"],n=HV(r);return{type:t,styleId:e,name:n}}function HV(r){var t=r.first("w:name");return t?t.attributes["w:val"]:null}function $V(r){var t=r.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{numId:t}}var Ug={},VV=pr,qV=$i.Result;Ug.createFootnotesReader=R8.bind(st,"footnote");Ug.createEndnotesReader=R8.bind(st,"endnote");function R8(r,t){function e(a){return qV.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 VV.Note({noteType:r,noteId:o,body:s})})}return e}var N8={},GV=pr,XV=$i.Result;function KV(r){function t(n){return XV.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 GV.comment({commentId:i,body:o,authorName:a("w:author"),authorInitials:a("w:initials")})})}return t}N8.createCommentsReader=KV;var F8={},ZV=Bn;F8.Files=YV;function YV(){function r(t){return ZV.reject(new Error("could not open external image: '"+t+`'
|
|
cannot open linked files from a web browser`))}return{read:r}}$m.read=nq;$m._findPartPaths=W8;var JV=Bn,QV=pr,Bg=$i.Result,Dd=yl,M8=og.readXmlFromZipFile,eq=Dg.createBodyReader,tq=I8.DocumentXmlReader,sc=Ed,U8=Fg,B8=Ad,P8=Sd,L8=Ug,rq=N8,j8=F8.Files;function nq(r,t){return t=t||{},JV.props({contentTypes:aq(r),partPaths:W8(r),docxFile:r,files:t.path?j8.relativeToFile(t.path):new j8(null)}).also(function(e){return{styles:sq(r,e.partPaths.styles)}}).also(function(e){return{numbering:oq(r,e.partPaths.numbering,e.styles)}}).also(function(e){return{footnotes:Cd(e.partPaths.footnotes,e,function(n,i){return i?L8.createFootnotesReader(n)(i):new Bg([])}),endnotes:Cd(e.partPaths.endnotes,e,function(n,i){return i?L8.createEndnotesReader(n)(i):new Bg([])}),comments:Cd(e.partPaths.comments,e,function(n,i){return i?rq.createCommentsReader(n)(i):new Bg([])})}}).also(function(e){return{notes:e.footnotes.flatMap(function(n){return e.endnotes.map(function(i){return new QV.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 tq({bodyReader:n,notes:a,comments:o});return s.convertXmlToDocument(i)})})})})}function W8(r){return uq(r).then(function(t){var e=z8({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:H8(e),readElement:sc.readRelationships,defaultValue:sc.defaultValue})(r).then(function(n){function i(a){return z8({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 z8(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 iq(Dd.joinPath(i,c),"/")}),u=s.filter(function(c){return t.exists(c)});return u.length===0?a:u[0]}function iq(r,t){return r.substring(0,t.length)===t?r.substring(t.length):r}function uc(r){return function(t){return M8(t,r.filename).then(function(e){return e?r.readElement(e):r.defaultValue})}}function Cd(r,t,e){var n=uc({filename:H8(r),readElement:sc.readRelationships,defaultValue:sc.defaultValue});return n(t.docxFile).then(function(i){var a=new eq({relationships:i,contentTypes:t.contentTypes,docxFile:t.docxFile,numbering:t.numbering,styles:t.styles,files:t.files});return M8(t.docxFile,r).then(function(o){return e(a,o)})})}function H8(r){var t=Dd.splitPath(r);return Dd.joinPath(t.dirname,"_rels",t.basename+".rels")}var aq=uc({filename:"[Content_Types].xml",readElement:U8.readContentTypesFromXml,defaultValue:U8.defaultContentTypes});function oq(r,t,e){return uc({filename:t,readElement:function(n){return B8.readNumberingXml(n,{styles:e})},defaultValue:B8.defaultNumbering})(r)}function sq(r,t){return uc({filename:t,readElement:P8.readStylesXml,defaultValue:P8.defaultStyles})(r)}var uq=uc({filename:"_rels/.rels",readElement:sc.readRelationships,defaultValue:sc.defaultValue}),Pg={},cq=on.exports,lq=Bn,ql=zs;Pg.writeStyleMap=hq;Pg.readStyleMap=mq;var fq="http://schemas.zwobble.org/mammoth/style-map",Od="mammoth/style-map",$8="/"+Od;function hq(r,t){return r.write(Od,t),dq(r).then(function(){return pq(r)})}function dq(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;V8(a,n,"Id",{Id:"rMammothStyleMap",Type:fq,Target:$8});var o={"":e};return r.write(t,ql.writeString(i,o))})}function pq(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;V8(a,n,"PartName",{PartName:$8,ContentType:"text/prs.mammoth.style-map"});var o={"":e};return r.write(t,ql.writeString(i,o))})}function V8(r,t,e,n){var i=cq.find(r,function(a){return a.name===t&&a.attributes[e]===n[e]});i?i.attributes=n:r.push(ql.element(t,n))}function mq(r){return r.exists(Od)?r.read(Od,"utf8"):lq.resolve(null)}var Lg={},Io={},Aa={},cs={},q8=Io;function gq(r,t,e){return jg(q8.element(r,t,{fresh:!1}),e)}function vq(r,t,e){var n=q8.element(r,t,{fresh:!0});return jg(n,e)}function jg(r,t){return{type:"element",tag:r,children:t||[]}}function yq(r){return{type:"text",value:r}}var bq={type:"forceWrite"};cs.freshElement=vq;cs.nonFreshElement=gq;cs.elementWithTag=jg;cs.text=yq;cs.forceWrite=bq;var wq={br:!0,hr:!0,img:!0};function _q(r){return r.children.length===0&&wq[r.tag.tagName]}cs.isVoidElement=_q;var G8=on.exports,Id=cs;function xq(r){return X8(Z8(r))}function X8(r){var t=[];return r.map(Eq).forEach(function(e){Wg(t,e)}),t}function Eq(r){return Aq[r.type](r)}var Aq={element:Tq,text:K8,forceWrite:K8};function Tq(r){return Id.elementWithTag(r.tag,X8(r.children))}function K8(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 Z8(r){return Sq(r,function(t){return Dq[t.type](t)})}function Sq(r,t){return G8.flatten(G8.map(r,t),!0)}var Dq={element:Oq,text:Iq,forceWrite:Cq};function Cq(r){return[r]}function Oq(r){var t=Z8(r.children);return t.length===0&&!Id.isVoidElement(r)?[]:[Id.elementWithTag(r.tag,t)]}function Iq(r){return r.value.length===0?[]:[r]}var kq=xq,cc=cs;Aa.freshElement=cc.freshElement;Aa.nonFreshElement=cc.nonFreshElement;Aa.elementWithTag=cc.elementWithTag;Aa.text=cc.text;Aa.forceWrite=cc.forceWrite;Aa.simplify=kq;function Y8(r,t){t.forEach(function(e){Rq(r,e)})}function Rq(r,t){Nq[t.type](r,t)}var Nq={element:Fq,text:Mq,forceWrite:function(){}};function Fq(r,t){cc.isVoidElement(t)?r.selfClosing(t.tag.tagName,t.tag.attributes):(r.open(t.tag.tagName,t.tag.attributes),Y8(r,t.children),r.close(t.tag.tagName))}function Mq(r,t){r.text(t.value)}Aa.write=Y8;var zg=on.exports,Uq=Aa;Io.topLevelElement=Bq;Io.elements=Hg;Io.element=$g;function Bq(r,t){return Hg([$g(r,t,{fresh:!0})])}function Hg(r){return new J8(r.map(function(t){return zg.isString(t)?$g(t):t}))}function J8(r){this._elements=r}J8.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[Uq.elementWithTag(this,t)]};Io.empty=Hg([]);Io.ignore={wrap:function(){return[]}};var Vg={};(function(r){var t=on.exports,e=Bn,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 Q8={},e4={},t4=on.exports;e4.writer=Pq;function Pq(r){return r=r||{},r.prettyPrint?Lq():r4()}var Rd={div:!0,p:!0,ul:!0,li:!0};function Lq(){var r=0,t=" ",e=[],n=!0,i=!1,a=r4();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 t4.some(e,function(g){return g==="pre"})}return{asString:a.asString,open:o,close:s,text:u,selfClosing:c}}function r4(){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 t4.map(u,function(c,l){return" "+l+'="'+Wq(c)+'"'}).join("")}function a(u){r.push(jq(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 jq(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Wq(r){return r.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}var n4={},zq=on.exports;function i4(r){return Nd(r,r)}function Nd(r,t){return function(){return{start:r,end:t}}}function Hq(r){var t=r.href||"";return t?{start:"[",end:"]("+t+")",anchorPosition:"before"}:{}}function $q(r){var t=r.src||"",e=r.alt||"";return t||e?{start:""}:{}}function a4(r){return function(t,e){return{start:e?`
|
|
`:"",end:e?"":`
|
|
`,list:{isOrdered:r.isOrdered,indent:e?e.indent+1:0,count:0}}}}function Vq(r,t,e){t=t||{indent:0,isOrdered:!1,count:0},t.count++,e.hasClosed=!1;var n=t.isOrdered?t.count+".":"-",i=s4(" ",t.indent)+n+" ";return{start:i,end:function(){if(!e.hasClosed)return e.hasClosed=!0,`
|
|
`}}}var o4={p:Nd("",`
|
|
|
|
`),br:Nd("",`
|
|
`),ul:a4({isOrdered:!1}),ol:a4({isOrdered:!0}),li:Vq,strong:i4("__"),em:i4("*"),a:Hq,img:$q};(function(){for(var r=1;r<=6;r++)o4["h"+r]=Nd(s4("#",r)+" ",`
|
|
|
|
`)})();function s4(r,t){return new Array(t+1).join(r)}function qq(){var r=[],t=[],e=null,n={};function i(l,d){d=d||{};var h=o4[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=zq.isFunction(d.end)?d.end():d.end;r.push(h||"")}function s(l,d){i(l,d),o()}function u(l){r.push(Gq(l))}function c(){return r.join("")}return{asString:c,open:i,close:o,text:u,selfClosing:s}}n4.writer=qq;function Gq(r){return r.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}var Xq=e4,Kq=n4;Q8.writer=Zq;function Zq(r){return r=r||{},r.outputFormat==="markdown"?Kq.writer():Xq.writer(r)}var ls=on.exports,u4=Bn,Fd=pr,ua=Io,qg=$i,Yq=Vg,mr=Aa,Jq=Q8;Lg.DocumentConverter=Qq;function Qq(r){return{convertToHtml:function(t){var e=ls.indexBy(t.type===Fd.types.document?t.comments:[],"commentId"),n=new eG(r,e);return n.convertToHtml(t)}}}function eG(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(x){var A=[],k=d(x,A,{}),R=[];l4(k,function(X){X.type==="deferred"&&R.push(X)});var M={};return u4.mapSeries(R,function(X){return X.value().then(function(K){M[X.id]=K})}).then(function(){function X(te){return Gg(te,function($){return $.type==="deferred"?M[$.id]:$.children?[ls.extend({},$,{children:X($.children)})]:[$]})}var K=Jq.writer({prettyPrint:r.prettyPrint,outputFormat:r.outputFormat});return mr.write(K,mr.simplify(X(k))),new qg.Result(K.asString(),A)})}function l(x,A,k){return Gg(x,function(R){return d(R,A,k)})}function d(x,A,k){if(!k)throw new Error("options not set");var R=w[x.type];return R?R(x,A,k):[]}function h(x,A,k){return f(x,A).wrap(function(){var R=l(x.children,A,k);return o?R:[mr.forceWrite].concat(R)})}function f(x,A){var k=y(x);return k?k.to:(x.styleId&&A.push(c4("paragraph",x)),s)}function g(x,A,k){var R=function(){return l(x.children,A,k)},M=[];if(x.highlight!==null){var X=p({type:"highlight",color:x.highlight});X&&M.push(X)}x.isSmallCaps&&M.push(m("smallCaps")),x.isAllCaps&&M.push(m("allCaps")),x.isStrikethrough&&M.push(m("strikethrough","s")),x.isUnderline&&M.push(m("underline")),x.verticalAlignment===Fd.verticalAlignment.subscript&&M.push(ua.element("sub",{},{fresh:!1})),x.verticalAlignment===Fd.verticalAlignment.superscript&&M.push(ua.element("sup",{},{fresh:!1})),x.isItalic&&M.push(m("italic","em")),x.isBold&&M.push(m("bold","strong"));var K=ua.empty,te=y(x);return te?K=te.to:x.styleId&&A.push(c4("run",x)),M.push(K),M.forEach(function($){R=$.wrap.bind($,R)}),R()}function m(x,A){var k=p({type:x});return k||(A?ua.element(A,{},{fresh:!1}):ua.empty)}function p(x,A){var k=y(x);return k?k.to:A}function y(x){for(var A=0;A<u.length;A++)if(u[A].from.matches(x))return u[A]}function v(x){return function(A,k){return u4.attempt(function(){return x(A,k)}).caught(function(R){return k.push(qg.error(R)),[]})}}function b(x){return D(x.noteType,x.noteId)}function E(x){return F(x.noteType,x.noteId)}function D(x,A){return z(x+"-"+A)}function F(x,A){return z(x+"-ref-"+A)}function z(x){return a+x}var W=ua.elements([ua.element("table",{},{fresh:!0})]);function U(x,A,k){return p(x,W).wrap(function(){return G(x,A,k)})}function G(x,A,k){var R=ls.findIndex(x.children,function(te){return!te.type===Fd.types.tableRow||!te.isHeader});R===-1&&(R=x.children.length);var M;if(R===0)M=l(x.children,A,ls.extend({},k,{isTableHeader:!1}));else{var X=l(x.children.slice(0,R),A,ls.extend({},k,{isTableHeader:!0})),K=l(x.children.slice(R),A,ls.extend({},k,{isTableHeader:!1}));M=[mr.freshElement("thead",{},X),mr.freshElement("tbody",{},K)]}return[mr.forceWrite].concat(M)}function ee(x,A,k){var R=l(x.children,A,k);return[mr.freshElement("tr",{},[mr.forceWrite].concat(R))]}function P(x,A,k){var R=k.isTableHeader?"th":"td",M=l(x.children,A,k),X={};return x.colSpan!==1&&(X.colspan=x.colSpan.toString()),x.rowSpan!==1&&(X.rowspan=x.rowSpan.toString()),[mr.freshElement(R,X,[mr.forceWrite].concat(M))]}function I(x,A,k){return p(x,ua.ignore).wrap(function(){var R=t[x.commentId],M=i.length+1,X="["+nG(R)+M+"]";return i.push({label:X,comment:R}),[mr.freshElement("a",{href:"#"+D("comment",x.commentId),id:F("comment",x.commentId)},[mr.text(X)])]})}function S(x,A,k){var R=x.label,M=x.comment,X=l(M.body,A,k).concat([mr.nonFreshElement("p",{},[mr.text(" "),mr.freshElement("a",{href:"#"+F("comment",M.commentId)},[mr.text("\u2191")])])]);return[mr.freshElement("dt",{id:D("comment",M.commentId)},[mr.text("Comment "+R)]),mr.freshElement("dd",{},X)]}function C(x,A,k){return _(x).wrap(function(){return[]})}function _(x){var A=y(x);return A?A.to:x.breakType==="line"?ua.topLevelElement("br"):ua.empty}var w={document:function(x,A,k){var R=l(x.children,A,k),M=n.map(function(K){return x.notes.resolve(K)}),X=l(M,A,k);return R.concat([mr.freshElement("ol",{},X),mr.freshElement("dl",{},Gg(i,function(K){return S(K,A,k)}))])},paragraph:h,run:g,text:function(x,A,k){return[mr.text(x.value)]},tab:function(x,A,k){return[mr.text(" ")]},hyperlink:function(x,A,k){var R=x.anchor?"#"+z(x.anchor):x.href,M={href:R};x.targetFrame!=null&&(M.target=x.targetFrame);var X=l(x.children,A,k);return[mr.nonFreshElement("a",M,X)]},bookmarkStart:function(x,A,k){var R=mr.freshElement("a",{id:z(x.name)},[mr.forceWrite]);return[R]},noteReference:function(x,A,k){n.push(x);var R=mr.freshElement("a",{href:"#"+b(x),id:E(x)},[mr.text("["+e+++"]")]);return[mr.freshElement("sup",{},[R])]},note:function(x,A,k){var R=l(x.body,A,k),M=mr.elementWithTag(ua.element("p",{},{fresh:!1}),[mr.text(" "),mr.freshElement("a",{href:"#"+E(x)},[mr.text("\u2191")])]),X=R.concat([M]);return mr.freshElement("li",{id:b(x)},X)},commentReference:I,comment:S,image:rG(v(r.convertImage||Yq.dataUri)),table:U,tableRow:ee,tableCell:P,break:C};return{convertToHtml:c}}var tG=1;function rG(r){return function(t,e,n){return[{type:"deferred",id:tG++,value:function(){return r(t,e,n)}}]}}function c4(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 l4(r,t){r.forEach(function(e){t(e),e.children&&l4(e.children,t)})}var nG=Lg.commentAuthorLabel=function(t){return t.authorInitials||""},f4={},iG=pr;function h4(r){if(r.type==="text")return r.value;if(r.type===iG.types.tab)return" ";var t=r.type==="paragraph"?`
|
|
|
|
`:"";return(r.children||[]).map(h4).join("")+t}f4.convertElementToRawText=h4;var Md={},Ta={},d4={},p4={exports:{}},lc=p4.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 aG=p4.exports;d4.Parser=function(r){var t=function(e,n){return e(new aG(n))};return{parseTokens:t}};var Xg={},m4={};(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)}})(m4);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 Ud(r)};var Ud=function(r){this.expected=r.expected,this.actual=r.actual,this._location=r.location};Ud.prototype.describe=function(){var r=this._location?this._location.describe()+`:
|
|
`:"";return r+"Expected "+this.expected+`
|
|
but got `+this.actual};Ud.prototype.lineNumber=function(){return this._location.lineNumber()};Ud.prototype.characterNumber=function(){return this._location.characterNumber()};var g4={};g4.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=m4,n=Kg,i=Zg,a=g4;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 E=v.result,D=v.hasCut;if(!E.isSuccess())return{result:E,hasCut:D};var F=b(E.remaining());if(F.isCut())return{result:E,hasCut:!0};if(F.isSuccess()){var z;b.isCaptured?z=E.value().withValue(b,F.value()):z=E.value();var W=F.remaining(),U=m.to(W);return{result:n.success(z,W,U),hasCut:D}}else return D?{result:n.error(F.errors(),F.remaining()),hasCut:D}:{result:F,hasCut:D}},{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,E){return y.func(b,v,E)}})});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 E=p(b.remaining());E.isSuccess();){var D=E.remaining(),F=v.to(E.remaining()),z=E.value();b=n.success(z(b.value(),F),D,F),E=p(b.remaining())}return E.isError()?E: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 v4=function(r,t,e){this.name=r,this.value=t,e&&(this.source=e)},y4={};(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)}}})(y4);var b4={},Jg=v4,oG=Yg.exports;b4.RegexTokeniser=sG;function sG(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 oG(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=d4.Parser;Ta.rules=Xg;Ta.errors=Zg;Ta.results=Kg;Ta.StringSource=Yg.exports;Ta.Token=v4;Ta.bottomUp=y4;Ta.RegexTokeniser=b4.RegexTokeniser;Ta.rule=function(r){var t;return function(e){return t||(t=r()),t(e)}};var Gn={};Gn.paragraph=uG;Gn.run=cG;Gn.table=lG;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=fG;Gn.commentReference=new Sa("commentReference");Gn.lineBreak=new Bd({breakType:"line"});Gn.pageBreak=new Bd({breakType:"page"});Gn.columnBreak=new Bd({breakType:"column"});Gn.equalTo=dG;Gn.startsWith=pG;function uG(r){return new Sa("paragraph",r)}function cG(r){return new Sa("run",r)}function lG(r){return new Sa("table",r)}function fG(r){return new w4(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||hG(r,this._listIndex,this._listIsOrdered))&&(this._breakType===void 0||this._breakType===r.breakType)};function w4(r){r=r||{},this._color=r.color}w4.prototype.matches=function(r){return r.type==="highlight"&&(this._color===void 0||r.color===this._color)};function Bd(r){r=r||{},this._breakType=r.breakType}Bd.prototype.matches=function(r){return r.type==="break"&&(this._breakType===void 0||r.breakType===this._breakType)};function hG(r,t,e){return r.numbering&&r.numbering.level==t&&r.numbering.isOrdered==e}function dG(r){return{operator:mG,operand:r}}function pG(r){return{operator:gG,operand:r}}function mG(r,t){return r.toUpperCase()===t.toUpperCase()}function gG(r,t){return t.toUpperCase().indexOf(r.toUpperCase())===0}var _4={},vG=Ta,yG=vG.RegexTokeniser;_4.tokenise=bG;var x4="'((?:\\\\.|[^'])*)";function bG(r){var t="(?:[a-zA-Z\\-_]|\\\\.)",e=new yG([{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(x4+"'")},{name:"unterminated-string",regex:new RegExp(x4)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]);return e.tokenise(r)}var wG=on.exports,Je=Ta,ai=Gn,Pd=Io,_G=_4.tokenise,Qg=$i;Md.readHtmlPath=TG;Md.readDocumentMatcher=AG;Md.readStyle=xG;function xG(r){return e2(NG,r)}function EG(){return Je.rules.sequence(Je.rules.sequence.capture(E4()),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(A4())).head())),Je.rules.tokenOfType("end")).map(function(r,t){return{from:r,to:t.valueOrElse(Pd.empty)}})}function AG(r){return e2(E4(),r)}function E4(){var r=Je.rules.sequence,t=function(F,z){return Je.rules.then(Je.rules.token("identifier",F),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(F){return{styleId:F}}),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(F){return{styleName:ai.equalTo(F)}}),Je.rules.then(Je.rules.sequence(Je.rules.tokenOfType("startsWith"),Je.rules.sequence.cut(),Je.rules.sequence.capture(fc)).head(),function(F){return{styleName:ai.startsWith(F)}})),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(SG),Je.rules.tokenOfType("close-paren")).map(function(F,z){return{list:{isOrdered:F.isOrdered,levelIndex:z-1}}});function l(F){var z=Je.rules.firstOf.apply(Je.rules.firstOf,["matcher suffix"].concat(F)),W=Je.rules.zeroOrMore(z);return Je.rules.then(W,function(U){var G={};return U.forEach(function(ee){wG.extend(G,ee)}),G})}var d=r(r.capture(i),r.capture(l([a,s,c]))).map(function(F,z){return F(z)}),h=r(Je.rules.token("identifier","table"),r.capture(l([a,s]))).map(function(F){return ai.table(F)}),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(F){return ai.highlight({color:F.valueOrElse(void 0)})}),E=t("comment-reference",ai.commentReference),D=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(F){switch(F){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,E,D)}function TG(r){return e2(A4(),r)}function A4(){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(IG)),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"),T4),SG=Je.rules.tokenOfType("integer"),fc=Je.rules.then(Je.rules.tokenOfType("string"),T4),DG={n:`
|
|
`,r:"\r",t:" "};function T4(r){return r.replace(/\\(.)/g,function(t,e){return DG[e]||e})}var CG=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}}),OG=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}}),IG=Je.rules.firstOf("attribute or class",CG,OG);function e2(r,t){var e=_G(t),n=Je.Parser(),i=n.parseTokens(r,e);return i.isSuccess()?Qg.success(i.value()):new Qg.Result(null,[Qg.warning(kG(t,i))])}function kG(r,t){return"Did not understand this style mapping, so ignored it: "+r+`
|
|
`+t.errors().map(RG).join(`
|
|
`)}function RG(r){return"Error was at character number "+r.characterNumber()+": Expected "+r.expected+" but got "+r.actual}var NG=EG(),jd={};jd.readOptions=UG;var S4=on.exports,FG=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"],MG=jd._standardOptions={transformDocument:BG,includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function UG(r){return r=r||{},S4.extend({},MG,r,{customStyleMap:D4(r.styleMap),readStyleMap:function(){var t=this.customStyleMap;return this.includeEmbeddedStyleMap&&(t=t.concat(D4(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(t=t.concat(FG)),t}})}function D4(r){return r?S4.isString(r)?r.split(`
|
|
`).map(function(t){return t.trim()}).filter(function(t){return t!==""&&t.charAt(0)!=="#"}):r:[]}function BG(r){return r}var C4={},O4=Bn,PG=yl;C4.openZip=LG;function LG(r){return r.arrayBuffer?O4.resolve(PG.openArrayBuffer(r.arrayBuffer)):O4.reject(new Error("Could not find file in options"))}var hc={},I4=on.exports;hc.paragraph=jG;hc.run=WG;hc._elements=R4;hc.getDescendantsOfType=zG;hc.getDescendants=N4;function jG(r){return k4("paragraph",r)}function WG(r){return k4("run",r)}function k4(r,t){return R4(function(e){return e.type===r?t(e):e})}function R4(r){return function t(e){if(e.children){var n=I4.map(e.children,t);e=I4.extend(e,{children:n})}return r(e)}}function zG(r,t){return N4(r).filter(function(e){return e.type===t})}function N4(r){var t=[];return F4(r,function(e){t.push(e)}),t}function F4(r,t){r.children&&r.children.forEach(function(e){F4(e,t),t(e)})}var M4={},HG=Io,$G=Aa;M4.element=VG;function VG(r){return function(t){return $G.elementWithTag(HG.element(r),[t])}}var qG=on.exports,U4=$m,t2=Pg,GG=Lg.DocumentConverter,XG=f4.convertElementToRawText,KG=Md.readStyle,ZG=jd.readOptions,Wd=C4,YG=$i.Result;Ga.convertToHtml=JG;Ga.convertToMarkdown=QG;Ga.convert=r2;Ga.extractRawText=nX;Ga.images=Vg;Ga.transforms=hc;Ga.underline=M4;Ga.embedStyleMap=iX;Ga.readEmbeddedStyleMap=eX;function JG(r,t){return r2(r,t)}function QG(r,t){var e=Object.create(t||{});return e.outputFormat="markdown",r2(r,e)}function r2(r,t){return t=ZG(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 tX(n,t)})})}function eX(r){return Wd.openZip(r).then(t2.readStyleMap)}function tX(r,t){var e=rX(t.readStyleMap()),n=qG.extend({},t,{styleMap:e.value}),i=new GG(n);return r.flatMapThen(function(a){return e.flatMapThen(function(o){return i.convertToHtml(a)})})}function rX(r){return YG.combine((r||[]).map(KG)).map(function(t){return t.filter(function(e){return!!e})})}function nX(r){return Wd.openZip(r).then(U4.read).then(function(t){return t.map(XG)})}function iX(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,E=16,D=32,F=64,z=128,W=256,U=512,G=30,ee="...",P=800,I=16,S=1,C=2,_=3,w=1/0,x=9007199254740991,A=17976931348623157e292,k=0/0,R=4294967295,M=R-1,X=R>>>1,K=[["ary",z],["bind",p],["bindKey",y],["curry",b],["curryRight",E],["flip",U],["partial",D],["partialRight",F],["rearg",W]],te="[object Arguments]",$="[object Array]",q="[object AsyncFunction]",O="[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]",B="[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]",Fe="[object Float32Array]",He="[object Float64Array]",qe="[object Int8Array]",et="[object Int16Array]",Be="[object Int32Array]",Ge="[object Uint8Array]",tt="[object Uint8ClampedArray]",rt="[object Uint16Array]",lt="[object Uint32Array]",Nt=/\b__p \+= '';/g,Wt=/\b(__p \+=) '' \+/g,dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pt=/&(?:amp|lt|gt|quot|#39);/g,_t=/[&<>"']/g,gt=RegExp(Pt.source),hr=RegExp(_t.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 (.+)\] \*/,xt=/,? & /,ot=/[^\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",Ft="\\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",xr="A-Z\\xc0-\\xd6\\xd8-\\xde",Jt="\\ufe0e\\ufe0f",Sr=Ft+Lt+Et+dr,Nr="['\u2019]",mn="["+Re+"]",Xn="["+Sr+"]",jn="["+nt+"]",ca="\\d+",Da="["+it+"]",la="["+$t+"]",lr="[^"+Re+Sr+ca+it+$t+xr+"]",Zt="\\ud83c[\\udffb-\\udfff]",Vi="(?:"+jn+"|"+Zt+")",Ni="[^"+Re+"]",oi="(?:\\ud83c[\\udde6-\\uddff]){2}",gn="[\\ud800-\\udbff][\\udc00-\\udfff]",Er="["+xr+"]",_n="\\u200d",Ca="(?:"+la+"|"+lr+")",ko="(?:"+Er+"|"+lr+")",qi="(?:"+Nr+"(?:d|ll|m|re|s|t|ve))?",Fi="(?:"+Nr+"(?:D|LL|M|RE|S|T|VE))?",fs=Vi+"?",Qa="["+Jt+"]?",hs="(?:"+_n+"(?:"+[Ni,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,No="(?:"+[Ni+jn+"?",jn,oi,gn,mn].join("|")+")",Gl=RegExp(Nr,"g"),Xl=RegExp(jn,"g"),ps=RegExp(Zt+"(?="+Zt+")|"+No+ds,"g"),Kl=RegExp([Er+"?"+la+"+"+qi+"(?="+[Xn,Er,"$"].join("|")+")",ko+"+"+Fi+"(?="+[Xn,Er+Ca,"$"].join("|")+")",Er+"?"+Ca+"+"+qi,Er+"+"+Fi,Ro,Oa,ca,eo].join("|"),"g"),Zl=RegExp("["+_n+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[Fe]=Dr[He]=Dr[qe]=Dr[et]=Dr[Be]=Dr[Ge]=Dr[tt]=Dr[rt]=Dr[lt]=!0,Dr[te]=Dr[$]=Dr[Ee]=Dr[O]=Dr[Se]=Dr[L]=Dr[J]=Dr[re]=Dr[j]=Dr[ue]=Dr[B]=Dr[oe]=Dr[ce]=Dr[ne]=Dr[de]=!1;var Fr={};Fr[te]=Fr[$]=Fr[Ee]=Fr[Se]=Fr[O]=Fr[L]=Fr[Fe]=Fr[He]=Fr[qe]=Fr[et]=Fr[Be]=Fr[j]=Fr[ue]=Fr[B]=Fr[oe]=Fr[ce]=Fr[ne]=Fr[se]=Fr[Ge]=Fr[tt]=Fr[rt]=Fr[lt]=!0,Fr[J]=Fr[re]=Fr[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={"&":"&","<":"<",">":">",'"':""","'":"'"},Ql={"&":"&","<":"<",">":">",""":'"',"'":"'"},dc={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ef=parseFloat,Fo=parseInt,tf=typeof st=="object"&&st&&st.Object===Object&&st,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 xn=Oe[qt];$e(pt,xn,Pe(xn),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 xn=Oe[Pe];$e(xn,Pe,Oe)&&(br[qt++]=xn)}return br}function Gs(Oe,$e){var Pe=Oe==null?0:Oe.length;return!!Pe&&Uo(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(ot)||[]}function lf(Oe,$e,Pe){var pt;return Pe(Oe,function(qt,br,xn){if($e(qt,br,xn))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 Uo(Oe,$e,Pe){return $e===$e?P4(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:k}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,xn,Lr){Pe=pt?(pt=!1,br):$e(Pe,br,xn,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 _c(Oe,$e){for(var Pe=-1,pt=Array(Oe);++Pe<Oe;)pt[Pe]=$e(Pe);return pt}function xc(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 xe(Oe,$e){return Oe.has($e)}function Ce(Oe,$e){for(var Pe=-1,pt=Oe.length;++Pe<pt&&Uo($e,Oe[Pe],0)>-1;);return Pe}function De(Oe,$e){for(var Pe=Oe.length;Pe--&&Uo($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 Bo(Oe,$e){for(var Pe=-1,pt=Oe.length,qt=0,br=[];++Pe<pt;){var xn=Oe[Pe];(xn===$e||xn===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 B4(Oe){var $e=-1,Pe=Array(Oe.size);return Oe.forEach(function(pt){Pe[++$e]=[pt,pt]}),Pe}function P4(Oe,$e,Pe){for(var pt=Pe-1,qt=Oe.length;++pt<qt;)if(Oe[pt]===$e)return pt;return-1}function L4(Oe,$e,Pe){for(var pt=Pe+1;pt--;)if(Oe[pt]===$e)return pt;return pt}function Js(Oe){return tn(Oe)?W4(Oe):Vd(Oe)}function da(Oe){return tn(Oe)?z4(Oe):qd(Oe)}function a2(Oe){for(var $e=Oe.length;$e--&&Ie.test(Oe.charAt($e)););return $e}var j4=bc(Ql);function W4(Oe){for(var $e=ps.lastIndex=0;ps.test(Oe);)++$e;return $e}function z4(Oe){return Oe.match(ps)||[]}function H4(Oe){return Oe.match(Kl)||[]}var $4=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,xn=$e.Math,Lr=$e.Object,Kd=$e.RegExp,V4=$e.String,Gi=$e.TypeError,gf=Pe.prototype,q4=br.prototype,eu=Lr.prototype,vf=$e["__core-js_shared__"],yf=q4.toString,Cr=eu.hasOwnProperty,G4=0,o2=function(){var T=/[^.]+$/.exec(vf&&vf.keys&&vf.keys.IE_PROTO||"");return T?"Symbol(src)_1."+T:""}(),bf=eu.toString,X4=yf.call(Lr),K4=vn._,Z4=Kd("^"+yf.call(Cr).replace(ar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wf=qs?$e.Buffer:e,Po=$e.Symbol,_f=$e.Uint8Array,s2=wf?wf.allocUnsafe:e,xf=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 T=_s(Lr,"defineProperty");return T({},"",{}),T}catch{}}(),Y4=$e.clearTimeout!==vn.clearTimeout&&$e.clearTimeout,J4=pt&&pt.now!==vn.Date.now&&pt.now,Q4=$e.setTimeout!==vn.setTimeout&&$e.setTimeout,Tf=xn.ceil,Sf=xn.floor,Zd=Lr.getOwnPropertySymbols,e6=wf?wf.isBuffer:e,f2=$e.isFinite,t6=gf.join,r6=i2(Lr.keys,Lr),En=xn.max,Kn=xn.min,n6=pt.now,i6=$e.parseInt,h2=xn.random,a6=gf.reverse,Yd=_s($e,"DataView"),Ac=_s($e,"Map"),Jd=_s($e,"Promise"),tu=_s($e,"Set"),Tc=_s($e,"WeakMap"),Sc=_s(Lr,"create"),Df=Tc&&new Tc,ru={},o6=xs(Yd),s6=xs(Ac),u6=xs(Jd),c6=xs(tu),l6=xs(Tc),Cf=Po?Po.prototype:e,Dc=Cf?Cf.valueOf:e,d2=Cf?Cf.toString:e;function me(T){if(rn(T)&&!Gt(T)&&!(T instanceof ur)){if(T instanceof Xi)return T;if(Cr.call(T,"__wrapped__"))return pv(T)}return new Xi(T)}var nu=function(){function T(){}return function(N){if(!Jr(N))return{};if(u2)return u2(N);T.prototype=N;var Y=new T;return T.prototype=e,Y}}();function Of(){}function Xi(T,N){this.__wrapped__=T,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(T){this.__wrapped__=T,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function f6(){var T=new ur(this.__wrapped__);return T.__actions__=yi(this.__actions__),T.__dir__=this.__dir__,T.__filtered__=this.__filtered__,T.__iteratees__=yi(this.__iteratees__),T.__takeCount__=this.__takeCount__,T.__views__=yi(this.__views__),T}function h6(){if(this.__filtered__){var T=new ur(this);T.__dir__=-1,T.__filtered__=!0}else T=this.clone(),T.__dir__*=-1;return T}function d6(){var T=this.__wrapped__.value(),N=this.__dir__,Y=Gt(T),ie=N<0,he=Y?T.length:0,ge=T5(0,he,this.__views__),_e=ge.start,Te=ge.end,ke=Te-_e,Xe=ie?Te:_e-1,Ke=this.__iteratees__,Ye=Ke.length,ft=0,wt=Kn(ke,this.__takeCount__);if(!Y||!ie&&he==ke&&wt==ke)return B2(T,this.__actions__);var Mt=[];e:for(;ke--&&ft<wt;){Xe+=N;for(var Yt=-1,Ut=T[Xe];++Yt<Ye;){var or=Ke[Yt],fr=or.iteratee,Pi=or.type,li=fr(Ut);if(Pi==C)Ut=li;else if(!li){if(Pi==S)continue e;break e}}Mt[ft++]=Ut}return Mt}ur.prototype=nu(Of.prototype),ur.prototype.constructor=ur;function vs(T){var N=-1,Y=T==null?0:T.length;for(this.clear();++N<Y;){var ie=T[N];this.set(ie[0],ie[1])}}function p6(){this.__data__=Sc?Sc(null):{},this.size=0}function m6(T){var N=this.has(T)&&delete this.__data__[T];return this.size-=N?1:0,N}function g6(T){var N=this.__data__;if(Sc){var Y=N[T];return Y===u?e:Y}return Cr.call(N,T)?N[T]:e}function v6(T){var N=this.__data__;return Sc?N[T]!==e:Cr.call(N,T)}function y6(T,N){var Y=this.__data__;return this.size+=this.has(T)?0:1,Y[T]=Sc&&N===e?u:N,this}vs.prototype.clear=p6,vs.prototype.delete=m6,vs.prototype.get=g6,vs.prototype.has=v6,vs.prototype.set=y6;function no(T){var N=-1,Y=T==null?0:T.length;for(this.clear();++N<Y;){var ie=T[N];this.set(ie[0],ie[1])}}function b6(){this.__data__=[],this.size=0}function w6(T){var N=this.__data__,Y=If(N,T);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(T){var N=this.__data__,Y=If(N,T);return Y<0?e:N[Y][1]}function x6(T){return If(this.__data__,T)>-1}function E6(T,N){var Y=this.__data__,ie=If(Y,T);return ie<0?(++this.size,Y.push([T,N])):Y[ie][1]=N,this}no.prototype.clear=b6,no.prototype.delete=w6,no.prototype.get=_6,no.prototype.has=x6,no.prototype.set=E6;function io(T){var N=-1,Y=T==null?0:T.length;for(this.clear();++N<Y;){var ie=T[N];this.set(ie[0],ie[1])}}function A6(){this.size=0,this.__data__={hash:new vs,map:new(Ac||no),string:new vs}}function T6(T){var N=zf(this,T).delete(T);return this.size-=N?1:0,N}function S6(T){return zf(this,T).get(T)}function D6(T){return zf(this,T).has(T)}function C6(T,N){var Y=zf(this,T),ie=Y.size;return Y.set(T,N),this.size+=Y.size==ie?0:1,this}io.prototype.clear=A6,io.prototype.delete=T6,io.prototype.get=S6,io.prototype.has=D6,io.prototype.set=C6;function ys(T){var N=-1,Y=T==null?0:T.length;for(this.__data__=new io;++N<Y;)this.add(T[N])}function O6(T){return this.__data__.set(T,u),this}function I6(T){return this.__data__.has(T)}ys.prototype.add=ys.prototype.push=O6,ys.prototype.has=I6;function pa(T){var N=this.__data__=new no(T);this.size=N.size}function k6(){this.__data__=new no,this.size=0}function R6(T){var N=this.__data__,Y=N.delete(T);return this.size=N.size,Y}function N6(T){return this.__data__.get(T)}function F6(T){return this.__data__.has(T)}function M6(T,N){var Y=this.__data__;if(Y instanceof no){var ie=Y.__data__;if(!Ac||ie.length<i-1)return ie.push([T,N]),this.size=++Y.size,this;Y=this.__data__=new io(ie)}return Y.set(T,N),this.size=Y.size,this}pa.prototype.clear=k6,pa.prototype.delete=R6,pa.prototype.get=N6,pa.prototype.has=F6,pa.prototype.set=M6;function p2(T,N){var Y=Gt(T),ie=!Y&&Es(T),he=!Y&&!ie&&Ho(T),ge=!Y&&!ie&&!he&&su(T),_e=Y||ie||he||ge,Te=_e?_c(T.length,V4):[],ke=Te.length;for(var Xe in T)(N||Cr.call(T,Xe))&&!(_e&&(Xe=="length"||he&&(Xe=="offset"||Xe=="parent")||ge&&(Xe=="buffer"||Xe=="byteLength"||Xe=="byteOffset")||uo(Xe,ke)))&&Te.push(Xe);return Te}function m2(T){var N=T.length;return N?T[cp(0,N-1)]:e}function U6(T,N){return Hf(yi(T),bs(N,0,T.length))}function B6(T){return Hf(yi(T))}function Qd(T,N,Y){(Y!==e&&!ma(T[N],Y)||Y===e&&!(N in T))&&ao(T,N,Y)}function Cc(T,N,Y){var ie=T[N];(!(Cr.call(T,N)&&ma(ie,Y))||Y===e&&!(N in T))&&ao(T,N,Y)}function If(T,N){for(var Y=T.length;Y--;)if(ma(T[Y][0],N))return Y;return-1}function P6(T,N,Y,ie){return Lo(T,function(he,ge,_e){N(ie,he,Y(he),_e)}),ie}function g2(T,N){return T&&Ra(N,Nn(N),T)}function L6(T,N){return T&&Ra(N,wi(N),T)}function ao(T,N,Y){N=="__proto__"&&Af?Af(T,N,{configurable:!0,enumerable:!0,value:Y,writable:!0}):T[N]=Y}function ep(T,N){for(var Y=-1,ie=N.length,he=Pe(ie),ge=T==null;++Y<ie;)he[Y]=ge?e:Fp(T,N[Y]);return he}function bs(T,N,Y){return T===T&&(Y!==e&&(T=T<=Y?T:Y),N!==e&&(T=T>=N?T:N)),T}function Ki(T,N,Y,ie,he,ge){var _e,Te=N&d,ke=N&h,Xe=N&f;if(Y&&(_e=he?Y(T,ie,he,ge):Y(T)),_e!==e)return _e;if(!Jr(T))return T;var Ke=Gt(T);if(Ke){if(_e=D5(T),!Te)return yi(T,_e)}else{var Ye=Zn(T),ft=Ye==re||Ye==ae;if(Ho(T))return j2(T,Te);if(Ye==B||Ye==te||ft&&!he){if(_e=ke||ft?{}:av(T),!Te)return ke?g5(T,L6(_e,T)):m5(T,g2(_e,T))}else{if(!Fr[Ye])return he?T:{};_e=C5(T,Ye,Te)}}ge||(ge=new pa);var wt=ge.get(T);if(wt)return wt;ge.set(T,_e),Fv(T)?T.forEach(function(Ut){_e.add(Ki(Ut,N,Y,Ut,T,ge))}):Rv(T)&&T.forEach(function(Ut,or){_e.set(or,Ki(Ut,N,Y,or,T,ge))});var Mt=Xe?ke?wp:bp:ke?wi:Nn,Yt=Ke?e:Mt(T);return vi(Yt||T,function(Ut,or){Yt&&(or=Ut,Ut=T[or]),Cc(_e,or,Ki(Ut,N,Y,or,T,ge))}),_e}function j6(T){var N=Nn(T);return function(Y){return v2(Y,T,N)}}function v2(T,N,Y){var ie=Y.length;if(T==null)return!ie;for(T=Lr(T);ie--;){var he=Y[ie],ge=N[he],_e=T[he];if(_e===e&&!(he in T)||!ge(_e))return!1}return!0}function y2(T,N,Y){if(typeof T!="function")throw new Gi(o);return Mc(function(){T.apply(e,Y)},N)}function Oc(T,N,Y,ie){var he=-1,ge=Gs,_e=!0,Te=T.length,ke=[],Xe=N.length;if(!Te)return ke;Y&&(N=Wr(N,pe(Y))),ie?(ge=Xs,_e=!1):N.length>=i&&(ge=xe,_e=!1,N=new ys(N));e:for(;++he<Te;){var Ke=T[he],Ye=Y==null?Ke:Y(Ke);if(Ke=ie||Ke!==0?Ke:0,_e&&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 W6(T,N){var Y=!0;return Lo(T,function(ie,he,ge){return Y=!!N(ie,he,ge),Y}),Y}function kf(T,N,Y){for(var ie=-1,he=T.length;++ie<he;){var ge=T[ie],_e=N(ge);if(_e!=null&&(Te===e?_e===_e&&!Bi(_e):Y(_e,Te)))var Te=_e,ke=ge}return ke}function z6(T,N,Y,ie){var he=T.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:Uv(ie);Y<ie;)T[Y++]=N;return T}function w2(T,N){var Y=[];return Lo(T,function(ie,he,ge){N(ie,he,ge)&&Y.push(ie)}),Y}function Wn(T,N,Y,ie,he){var ge=-1,_e=T.length;for(Y||(Y=I5),he||(he=[]);++ge<_e;){var Te=T[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(),_2=q2(!0);function ka(T,N){return T&&tp(T,N,Nn)}function rp(T,N){return T&&_2(T,N,Nn)}function Rf(T,N){return Ia(N,function(Y){return co(T[Y])})}function ws(T,N){N=Wo(N,T);for(var Y=0,ie=N.length;T!=null&&Y<ie;)T=T[Na(N[Y++])];return Y&&Y==ie?T:e}function x2(T,N,Y){var ie=N(T);return Gt(T)?ie:ha(ie,Y(T))}function ui(T){return T==null?T===e?fe:Q:gs&&gs in Lr(T)?A5(T):B5(T)}function np(T,N){return T>N}function H6(T,N){return T!=null&&Cr.call(T,N)}function $6(T,N){return T!=null&&N in Lr(T)}function V6(T,N,Y){return T>=Kn(N,Y)&&T<En(N,Y)}function ip(T,N,Y){for(var ie=Y?Xs:Gs,he=T[0].length,ge=T.length,_e=ge,Te=Pe(ge),ke=1/0,Xe=[];_e--;){var Ke=T[_e];_e&&N&&(Ke=Wr(Ke,pe(N))),ke=Kn(Ke.length,ke),Te[_e]=!Y&&(N||he>=120&&Ke.length>=120)?new ys(_e&&Ke):e}Ke=T[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?xe(ft,Mt):ie(Xe,Mt,Y))){for(_e=ge;--_e;){var Yt=Te[_e];if(!(Yt?xe(Yt,Mt):ie(T[_e],Mt,Y)))continue e}ft&&ft.push(Mt),Xe.push(wt)}}return Xe}function q6(T,N,Y,ie){return ka(T,function(he,ge,_e){N(ie,Y(he),ge,_e)}),ie}function Ic(T,N,Y){N=Wo(N,T),T=cv(T,N);var ie=T==null?T:T[Na(Yi(N))];return ie==null?e:Rn(ie,T,Y)}function E2(T){return rn(T)&&ui(T)==te}function G6(T){return rn(T)&&ui(T)==Ee}function X6(T){return rn(T)&&ui(T)==L}function kc(T,N,Y,ie,he){return T===N?!0:T==null||N==null||!rn(T)&&!rn(N)?T!==T&&N!==N:K6(T,N,Y,ie,kc,he)}function K6(T,N,Y,ie,he,ge){var _e=Gt(T),Te=Gt(N),ke=_e?$:Zn(T),Xe=Te?$:Zn(N);ke=ke==te?B:ke,Xe=Xe==te?B:Xe;var Ke=ke==B,Ye=Xe==B,ft=ke==Xe;if(ft&&Ho(T)){if(!Ho(N))return!1;_e=!0,Ke=!1}if(ft&&!Ke)return ge||(ge=new pa),_e||su(T)?rv(T,N,Y,ie,he,ge):x5(T,N,ke,Y,ie,he,ge);if(!(Y&g)){var wt=Ke&&Cr.call(T,"__wrapped__"),Mt=Ye&&Cr.call(N,"__wrapped__");if(wt||Mt){var Yt=wt?T.value():T,Ut=Mt?N.value():N;return ge||(ge=new pa),he(Yt,Ut,Y,ie,ge)}}return ft?(ge||(ge=new pa),E5(T,N,Y,ie,he,ge)):!1}function Z6(T){return rn(T)&&Zn(T)==j}function ap(T,N,Y,ie){var he=Y.length,ge=he,_e=!ie;if(T==null)return!ge;for(T=Lr(T);he--;){var Te=Y[he];if(_e&&Te[2]?Te[1]!==T[Te[0]]:!(Te[0]in T))return!1}for(;++he<ge;){Te=Y[he];var ke=Te[0],Xe=T[ke],Ke=Te[1];if(_e&&Te[2]){if(Xe===e&&!(ke in T))return!1}else{var Ye=new pa;if(ie)var ft=ie(Xe,Ke,ke,T,N,Ye);if(!(ft===e?kc(Ke,Xe,g|m,ie,Ye):ft))return!1}}return!0}function A2(T){if(!Jr(T)||R5(T))return!1;var N=co(T)?Z4:jr;return N.test(xs(T))}function Y6(T){return rn(T)&&ui(T)==oe}function J6(T){return rn(T)&&Zn(T)==ce}function Q6(T){return rn(T)&&Kf(T.length)&&!!Dr[ui(T)]}function T2(T){return typeof T=="function"?T:T==null?_i:typeof T=="object"?Gt(T)?C2(T[0],T[1]):D2(T):Gv(T)}function op(T){if(!Fc(T))return r6(T);var N=[];for(var Y in Lr(T))Cr.call(T,Y)&&Y!="constructor"&&N.push(Y);return N}function e5(T){if(!Jr(T))return U5(T);var N=Fc(T),Y=[];for(var ie in T)ie=="constructor"&&(N||!Cr.call(T,ie))||Y.push(ie);return Y}function sp(T,N){return T<N}function S2(T,N){var Y=-1,ie=bi(T)?Pe(T.length):[];return Lo(T,function(he,ge,_e){ie[++Y]=N(he,ge,_e)}),ie}function D2(T){var N=xp(T);return N.length==1&&N[0][2]?sv(N[0][0],N[0][1]):function(Y){return Y===T||ap(Y,T,N)}}function C2(T,N){return Ap(T)&&ov(N)?sv(Na(T),N):function(Y){var ie=Fp(Y,T);return ie===e&&ie===N?Mp(Y,T):kc(N,ie,g|m)}}function Nf(T,N,Y,ie,he){T!==N&&tp(N,function(ge,_e){if(he||(he=new pa),Jr(ge))t5(T,N,_e,Y,Nf,ie,he);else{var Te=ie?ie(Sp(T,_e),ge,_e+"",T,N,he):e;Te===e&&(Te=ge),Qd(T,_e,Te)}},wi)}function t5(T,N,Y,ie,he,ge,_e){var Te=Sp(T,Y),ke=Sp(N,Y),Xe=_e.get(ke);if(Xe){Qd(T,Y,Xe);return}var Ke=ge?ge(Te,ke,Y+"",T,N,_e):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=[]:Uc(ke)||Es(ke)?(Ke=Te,Es(Te)?Ke=Bv(Te):(!Jr(Te)||co(Te))&&(Ke=av(ke))):Ye=!1}Ye&&(_e.set(ke,Ke),he(Ke,ke,ie,ge,_e),_e.delete(ke)),Qd(T,Y,Ke)}function O2(T,N){var Y=T.length;if(!!Y)return N+=N<0?Y:0,uo(N,Y)?T[N]:e}function I2(T,N,Y){N.length?N=Wr(N,function(ge){return Gt(ge)?function(_e){return ws(_e,ge.length===1?ge[0]:ge)}:ge}):N=[_i];var ie=-1;N=Wr(N,pe(Rt()));var he=S2(T,function(ge,_e,Te){var ke=Wr(N,function(Xe){return Xe(ge)});return{criteria:ke,index:++ie,value:ge}});return wc(he,function(ge,_e){return p5(ge,_e,Y)})}function r5(T,N){return k2(T,N,function(Y,ie){return Mp(T,ie)})}function k2(T,N,Y){for(var ie=-1,he=N.length,ge={};++ie<he;){var _e=N[ie],Te=ws(T,_e);Y(Te,_e)&&Rc(ge,Wo(_e,T),Te)}return ge}function n5(T){return function(N){return ws(N,T)}}function up(T,N,Y,ie){var he=ie?Gd:Uo,ge=-1,_e=N.length,Te=T;for(T===N&&(N=yi(N)),Y&&(Te=Wr(T,pe(Y)));++ge<_e;)for(var ke=0,Xe=N[ge],Ke=Y?Y(Xe):Xe;(ke=he(Te,Ke,ke,ie))>-1;)Te!==T&&Ef.call(Te,ke,1),Ef.call(T,ke,1);return T}function R2(T,N){for(var Y=T?N.length:0,ie=Y-1;Y--;){var he=N[Y];if(Y==ie||he!==ge){var ge=he;uo(he)?Ef.call(T,he,1):hp(T,he)}}return T}function cp(T,N){return T+Sf(h2()*(N-T+1))}function i5(T,N,Y,ie){for(var he=-1,ge=En(Tf((N-T)/(Y||1)),0),_e=Pe(ge);ge--;)_e[ie?ge:++he]=T,T+=Y;return _e}function lp(T,N){var Y="";if(!T||N<1||N>x)return Y;do N%2&&(Y+=T),N=Sf(N/2),N&&(T+=T);while(N);return Y}function Qt(T,N){return Dp(uv(T,N,_i),T+"")}function a5(T){return m2(uu(T))}function o5(T,N){var Y=uu(T);return Hf(Y,bs(N,0,Y.length))}function Rc(T,N,Y,ie){if(!Jr(T))return T;N=Wo(N,T);for(var he=-1,ge=N.length,_e=ge-1,Te=T;Te!=null&&++he<ge;){var ke=Na(N[he]),Xe=Y;if(ke==="__proto__"||ke==="constructor"||ke==="prototype")return T;if(he!=_e){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 T}var N2=Df?function(T,N){return Df.set(T,N),T}:_i,s5=Af?function(T,N){return Af(T,"toString",{configurable:!0,enumerable:!1,value:Bp(N),writable:!0})}:_i;function u5(T){return Hf(uu(T))}function Zi(T,N,Y){var ie=-1,he=T.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]=T[ie+N];return ge}function c5(T,N){var Y;return Lo(T,function(ie,he,ge){return Y=N(ie,he,ge),!Y}),!!Y}function Ff(T,N,Y){var ie=0,he=T==null?ie:T.length;if(typeof N=="number"&&N===N&&he<=X){for(;ie<he;){var ge=ie+he>>>1,_e=T[ge];_e!==null&&!Bi(_e)&&(Y?_e<=N:_e<N)?ie=ge+1:he=ge}return he}return fp(T,N,_i,Y)}function fp(T,N,Y,ie){var he=0,ge=T==null?0:T.length;if(ge===0)return 0;N=Y(N);for(var _e=N!==N,Te=N===null,ke=Bi(N),Xe=N===e;he<ge;){var Ke=Sf((he+ge)/2),Ye=Y(T[Ke]),ft=Ye!==e,wt=Ye===null,Mt=Ye===Ye,Yt=Bi(Ye);if(_e)var Ut=ie||Mt;else Xe?Ut=Mt&&(ie||ft):Te?Ut=Mt&&ft&&(ie||!wt):ke?Ut=Mt&&ft&&!wt&&(ie||!Yt):wt||Yt?Ut=!1:Ut=ie?Ye<=N:Ye<N;Ut?he=Ke+1:ge=Ke}return Kn(ge,M)}function F2(T,N){for(var Y=-1,ie=T.length,he=0,ge=[];++Y<ie;){var _e=T[Y],Te=N?N(_e):_e;if(!Y||!ma(Te,ke)){var ke=Te;ge[he++]=_e===0?0:_e}}return ge}function M2(T){return typeof T=="number"?T:Bi(T)?k:+T}function Ui(T){if(typeof T=="string")return T;if(Gt(T))return Wr(T,Ui)+"";if(Bi(T))return d2?d2.call(T):"";var N=T+"";return N=="0"&&1/T==-w?"-0":N}function jo(T,N,Y){var ie=-1,he=Gs,ge=T.length,_e=!0,Te=[],ke=Te;if(Y)_e=!1,he=Xs;else if(ge>=i){var Xe=N?null:w5(T);if(Xe)return mf(Xe);_e=!1,he=xe,ke=new ys}else ke=N?[]:Te;e:for(;++ie<ge;){var Ke=T[ie],Ye=N?N(Ke):Ke;if(Ke=Y||Ke!==0?Ke:0,_e&&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(T,N){return N=Wo(N,T),T=cv(T,N),T==null||delete T[Na(Yi(N))]}function U2(T,N,Y,ie){return Rc(T,N,Y(ws(T,N)),ie)}function Mf(T,N,Y,ie){for(var he=T.length,ge=ie?he:-1;(ie?ge--:++ge<he)&&N(T[ge],ge,T););return Y?Zi(T,ie?0:ge,ie?ge+1:he):Zi(T,ie?ge+1:0,ie?he:ge)}function B2(T,N){var Y=T;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(T,N,Y){var ie=T.length;if(ie<2)return ie?jo(T[0]):[];for(var he=-1,ge=Pe(ie);++he<ie;)for(var _e=T[he],Te=-1;++Te<ie;)Te!=he&&(ge[he]=Oc(ge[he]||_e,T[Te],N,Y));return jo(Wn(ge,1),N,Y)}function P2(T,N,Y){for(var ie=-1,he=T.length,ge=N.length,_e={};++ie<he;){var Te=ie<ge?N[ie]:e;Y(_e,T[ie],Te)}return _e}function pp(T){return sn(T)?T:[]}function mp(T){return typeof T=="function"?T:_i}function Wo(T,N){return Gt(T)?T:Ap(T,N)?[T]:dv(Ar(T))}var l5=Qt;function zo(T,N,Y){var ie=T.length;return Y=Y===e?ie:Y,!N&&Y>=ie?T:Zi(T,N,Y)}var L2=Y4||function(T){return vn.clearTimeout(T)};function j2(T,N){if(N)return T.slice();var Y=T.length,ie=s2?s2(Y):new T.constructor(Y);return T.copy(ie),ie}function gp(T){var N=new T.constructor(T.byteLength);return new _f(N).set(new _f(T)),N}function f5(T,N){var Y=N?gp(T.buffer):T.buffer;return new T.constructor(Y,T.byteOffset,T.byteLength)}function h5(T){var N=new T.constructor(T.source,St.exec(T));return N.lastIndex=T.lastIndex,N}function d5(T){return Dc?Lr(Dc.call(T)):{}}function W2(T,N){var Y=N?gp(T.buffer):T.buffer;return new T.constructor(Y,T.byteOffset,T.length)}function z2(T,N){if(T!==N){var Y=T!==e,ie=T===null,he=T===T,ge=Bi(T),_e=N!==e,Te=N===null,ke=N===N,Xe=Bi(N);if(!Te&&!Xe&&!ge&&T>N||ge&&_e&&ke&&!Te&&!Xe||ie&&_e&&ke||!Y&&ke||!he)return 1;if(!ie&&!ge&&!Xe&&T<N||Xe&&Y&&he&&!ie&&!ge||Te&&Y&&he||!_e&&he||!ke)return-1}return 0}function p5(T,N,Y){for(var ie=-1,he=T.criteria,ge=N.criteria,_e=he.length,Te=Y.length;++ie<_e;){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 T.index-N.index}function H2(T,N,Y,ie){for(var he=-1,ge=T.length,_e=Y.length,Te=-1,ke=N.length,Xe=En(ge-_e,0),Ke=Pe(ke+Xe),Ye=!ie;++Te<ke;)Ke[Te]=N[Te];for(;++he<_e;)(Ye||he<ge)&&(Ke[Y[he]]=T[he]);for(;Xe--;)Ke[Te++]=T[he++];return Ke}function $2(T,N,Y,ie){for(var he=-1,ge=T.length,_e=-1,Te=Y.length,ke=-1,Xe=N.length,Ke=En(ge-Te,0),Ye=Pe(Ke+Xe),ft=!ie;++he<Ke;)Ye[he]=T[he];for(var wt=he;++ke<Xe;)Ye[wt+ke]=N[ke];for(;++_e<Te;)(ft||he<ge)&&(Ye[wt+Y[_e]]=T[he++]);return Ye}function yi(T,N){var Y=-1,ie=T.length;for(N||(N=Pe(ie));++Y<ie;)N[Y]=T[Y];return N}function Ra(T,N,Y,ie){var he=!Y;Y||(Y={});for(var ge=-1,_e=N.length;++ge<_e;){var Te=N[ge],ke=ie?ie(Y[Te],T[Te],Te,Y,T):e;ke===e&&(ke=T[Te]),he?ao(Y,Te,ke):Cc(Y,Te,ke)}return Y}function m5(T,N){return Ra(T,Ep(T),N)}function g5(T,N){return Ra(T,nv(T),N)}function Uf(T,N){return function(Y,ie){var he=Gt(Y)?Hd:P6,ge=N?N():{};return he(Y,T,Rt(ie,2),ge)}}function iu(T){return Qt(function(N,Y){var ie=-1,he=Y.length,ge=he>1?Y[he-1]:e,_e=he>2?Y[2]:e;for(ge=T.length>3&&typeof ge=="function"?(he--,ge):e,_e&&ci(Y[0],Y[1],_e)&&(ge=he<3?e:ge,he=1),N=Lr(N);++ie<he;){var Te=Y[ie];Te&&T(N,Te,ie,ge)}return N})}function V2(T,N){return function(Y,ie){if(Y==null)return Y;if(!bi(Y))return T(Y,ie);for(var he=Y.length,ge=N?he:-1,_e=Lr(Y);(N?ge--:++ge<he)&&ie(_e[ge],ge,_e)!==!1;);return Y}}function q2(T){return function(N,Y,ie){for(var he=-1,ge=Lr(N),_e=ie(N),Te=_e.length;Te--;){var ke=_e[T?Te:++he];if(Y(ge[ke],ke,ge)===!1)break}return N}}function v5(T,N,Y){var ie=N&p,he=Nc(T);function ge(){var _e=this&&this!==vn&&this instanceof ge?he:T;return _e.apply(ie?Y:this,arguments)}return ge}function G2(T){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[T]()+he}}function au(T){return function(N){return ms(Vv($v(N).replace(Gl,"")),T,"")}}function Nc(T){return function(){var N=arguments;switch(N.length){case 0:return new T;case 1:return new T(N[0]);case 2:return new T(N[0],N[1]);case 3:return new T(N[0],N[1],N[2]);case 4:return new T(N[0],N[1],N[2],N[3]);case 5:return new T(N[0],N[1],N[2],N[3],N[4]);case 6:return new T(N[0],N[1],N[2],N[3],N[4],N[5]);case 7:return new T(N[0],N[1],N[2],N[3],N[4],N[5],N[6])}var Y=nu(T.prototype),ie=T.apply(Y,N);return Jr(ie)?ie:Y}}function y5(T,N,Y){var ie=Nc(T);function he(){for(var ge=arguments.length,_e=Pe(ge),Te=ge,ke=ou(he);Te--;)_e[Te]=arguments[Te];var Xe=ge<3&&_e[0]!==ke&&_e[ge-1]!==ke?[]:Bo(_e,ke);if(ge-=Xe.length,ge<Y)return J2(T,N,Bf,he.placeholder,e,_e,Xe,e,e,Y-ge);var Ke=this&&this!==vn&&this instanceof he?ie:T;return Rn(Ke,this,_e)}return he}function X2(T){return function(N,Y,ie){var he=Lr(N);if(!bi(N)){var ge=Rt(Y,3);N=Nn(N),Y=function(Te){return ge(he[Te],Te,he)}}var _e=T(N,Y,ie);return _e>-1?he[ge?N[_e]:_e]:e}}function K2(T){return so(function(N){var Y=N.length,ie=Y,he=Xi.prototype.thru;for(T&&N.reverse();ie--;){var ge=N[ie];if(typeof ge!="function")throw new Gi(o);if(he&&!_e&&Wf(ge)=="wrapper")var _e=new Xi([],!0)}for(ie=_e?ie:Y;++ie<Y;){ge=N[ie];var Te=Wf(ge),ke=Te=="wrapper"?_p(ge):e;ke&&Tp(ke[0])&&ke[1]==(z|b|D|W)&&!ke[4].length&&ke[9]==1?_e=_e[Wf(ke[0])].apply(_e,ke[3]):_e=ge.length==1&&Tp(ge)?_e[Te]():_e.thru(ge)}return function(){var Xe=arguments,Ke=Xe[0];if(_e&&Xe.length==1&&Gt(Ke))return _e.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 Bf(T,N,Y,ie,he,ge,_e,Te,ke,Xe){var Ke=N&z,Ye=N&p,ft=N&y,wt=N&(b|E),Mt=N&U,Yt=ft?e:Nc(T);function Ut(){for(var or=arguments.length,fr=Pe(or),Pi=or;Pi--;)fr[Pi]=arguments[Pi];if(wt)var li=ou(Ut),Li=Ve(fr,li);if(ie&&(fr=H2(fr,ie,he,wt)),ge&&(fr=$2(fr,ge,_e,wt)),or-=Li,wt&&or<Xe){var un=Bo(fr,li);return J2(T,N,Bf,Ut.placeholder,Y,fr,un,Te,ke,Xe-or)}var ga=Ye?Y:this,fo=ft?ga[T]:T;return or=fr.length,Te?fr=P5(fr,Te):Mt&&or>1&&fr.reverse(),Ke&&ke<or&&(fr.length=ke),this&&this!==vn&&this instanceof Ut&&(fo=Yt||Nc(fo)),fo.apply(ga,fr)}return Ut}function Z2(T,N){return function(Y,ie){return q6(Y,T,N(ie),{})}}function Pf(T,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=Ui(Y),ie=Ui(ie)):(Y=M2(Y),ie=M2(ie)),he=T(Y,ie)}return he}}function vp(T){return so(function(N){return N=Wr(N,pe(Rt())),Qt(function(Y){var ie=this;return T(N,function(he){return Rn(he,ie,Y)})})})}function Lf(T,N){N=N===e?" ":Ui(N);var Y=N.length;if(Y<2)return Y?lp(N,T):N;var ie=lp(N,Tf(T/Js(N)));return tn(N)?zo(da(ie),0,T).join(""):ie.slice(0,T)}function b5(T,N,Y,ie){var he=N&p,ge=Nc(T);function _e(){for(var Te=-1,ke=arguments.length,Xe=-1,Ke=ie.length,Ye=Pe(Ke+ke),ft=this&&this!==vn&&this instanceof _e?ge:T;++Xe<Ke;)Ye[Xe]=ie[Xe];for(;ke--;)Ye[Xe++]=arguments[++Te];return Rn(ft,he?Y:this,Ye)}return _e}function Y2(T){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),i5(N,Y,ie,T)}}function jf(T){return function(N,Y){return typeof N=="string"&&typeof Y=="string"||(N=Ji(N),Y=Ji(Y)),T(N,Y)}}function J2(T,N,Y,ie,he,ge,_e,Te,ke,Xe){var Ke=N&b,Ye=Ke?_e:e,ft=Ke?e:_e,wt=Ke?ge:e,Mt=Ke?e:ge;N|=Ke?D:F,N&=~(Ke?F:D),N&v||(N&=~(p|y));var Yt=[T,N,he,wt,Ye,Mt,ft,Te,ke,Xe],Ut=Y.apply(e,Yt);return Tp(T)&&lv(Ut,Yt),Ut.placeholder=ie,fv(Ut,T,N)}function yp(T){var N=xn[T];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 w5=tu&&1/mf(new tu([,-0]))[1]==w?function(T){return new tu(T)}:jp;function Q2(T){return function(N){var Y=Zn(N);return Y==j?Xd(N):Y==ce?B4(N):xc(N,T(N))}}function oo(T,N,Y,ie,he,ge,_e,Te){var ke=N&y;if(!ke&&typeof T!="function")throw new Gi(o);var Xe=ie?ie.length:0;if(Xe||(N&=~(D|F),ie=he=e),_e=_e===e?_e:En(Xt(_e),0),Te=Te===e?Te:Xt(Te),Xe-=he?he.length:0,N&F){var Ke=ie,Ye=he;ie=he=e}var ft=ke?e:_p(T),wt=[T,N,Y,ie,he,Ke,Ye,ge,_e,Te];if(ft&&M5(wt,ft),T=wt[0],N=wt[1],Y=wt[2],ie=wt[3],he=wt[4],Te=wt[9]=wt[9]===e?ke?0:T.length:En(wt[9]-Xe,0),!Te&&N&(b|E)&&(N&=~(b|E)),!N||N==p)var Mt=v5(T,N,Y);else N==b||N==E?Mt=y5(T,N,Te):(N==D||N==(p|D))&&!he.length?Mt=b5(T,N,Y,ie):Mt=Bf.apply(e,wt);var Yt=ft?N2:lv;return fv(Yt(Mt,wt),T,N)}function ev(T,N,Y,ie){return T===e||ma(T,eu[Y])&&!Cr.call(ie,Y)?N:T}function tv(T,N,Y,ie,he,ge){return Jr(T)&&Jr(N)&&(ge.set(N,T),Nf(T,N,e,tv,ge),ge.delete(N)),T}function _5(T){return Uc(T)?e:T}function rv(T,N,Y,ie,he,ge){var _e=Y&g,Te=T.length,ke=N.length;if(Te!=ke&&!(_e&&ke>Te))return!1;var Xe=ge.get(T),Ke=ge.get(N);if(Xe&&Ke)return Xe==N&&Ke==T;var Ye=-1,ft=!0,wt=Y&m?new ys:e;for(ge.set(T,N),ge.set(N,T);++Ye<Te;){var Mt=T[Ye],Yt=N[Ye];if(ie)var Ut=_e?ie(Yt,Mt,Ye,N,T,ge):ie(Mt,Yt,Ye,T,N,ge);if(Ut!==e){if(Ut)continue;ft=!1;break}if(wt){if(!vc(N,function(or,fr){if(!xe(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(T),ge.delete(N),ft}function x5(T,N,Y,ie,he,ge,_e){switch(Y){case Se:if(T.byteLength!=N.byteLength||T.byteOffset!=N.byteOffset)return!1;T=T.buffer,N=N.buffer;case Ee:return!(T.byteLength!=N.byteLength||!ge(new _f(T),new _f(N)));case O:case L:case ue:return ma(+T,+N);case J:return T.name==N.name&&T.message==N.message;case oe:case ne:return T==N+"";case j:var Te=Xd;case ce:var ke=ie&g;if(Te||(Te=mf),T.size!=N.size&&!ke)return!1;var Xe=_e.get(T);if(Xe)return Xe==N;ie|=m,_e.set(T,N);var Ke=rv(Te(T),Te(N),ie,he,ge,_e);return _e.delete(T),Ke;case se:if(Dc)return Dc.call(T)==Dc.call(N)}return!1}function E5(T,N,Y,ie,he,ge){var _e=Y&g,Te=bp(T),ke=Te.length,Xe=bp(N),Ke=Xe.length;if(ke!=Ke&&!_e)return!1;for(var Ye=ke;Ye--;){var ft=Te[Ye];if(!(_e?ft in N:Cr.call(N,ft)))return!1}var wt=ge.get(T),Mt=ge.get(N);if(wt&&Mt)return wt==N&&Mt==T;var Yt=!0;ge.set(T,N),ge.set(N,T);for(var Ut=_e;++Ye<ke;){ft=Te[Ye];var or=T[ft],fr=N[ft];if(ie)var Pi=_e?ie(fr,or,ft,N,T,ge):ie(or,fr,ft,T,N,ge);if(!(Pi===e?or===fr||he(or,fr,Y,ie,ge):Pi)){Yt=!1;break}Ut||(Ut=ft=="constructor")}if(Yt&&!Ut){var li=T.constructor,Li=N.constructor;li!=Li&&"constructor"in T&&"constructor"in N&&!(typeof li=="function"&&li instanceof li&&typeof Li=="function"&&Li instanceof Li)&&(Yt=!1)}return ge.delete(T),ge.delete(N),Yt}function so(T){return Dp(uv(T,e,vv),T+"")}function bp(T){return x2(T,Nn,Ep)}function wp(T){return x2(T,wi,nv)}var _p=Df?function(T){return Df.get(T)}:jp;function Wf(T){for(var N=T.name+"",Y=ru[N],ie=Cr.call(ru,N)?Y.length:0;ie--;){var he=Y[ie],ge=he.func;if(ge==null||ge==T)return he.name}return N}function ou(T){var N=Cr.call(me,"placeholder")?me:T;return N.placeholder}function Rt(){var T=me.iteratee||Pp;return T=T===Pp?T2:T,arguments.length?T(arguments[0],arguments[1]):T}function zf(T,N){var Y=T.__data__;return k5(N)?Y[typeof N=="string"?"string":"hash"]:Y.map}function xp(T){for(var N=Nn(T),Y=N.length;Y--;){var ie=N[Y],he=T[ie];N[Y]=[ie,he,ov(he)]}return N}function _s(T,N){var Y=yn(T,N);return A2(Y)?Y:e}function A5(T){var N=Cr.call(T,gs),Y=T[gs];try{T[gs]=e;var ie=!0}catch{}var he=bf.call(T);return ie&&(N?T[gs]=Y:delete T[gs]),he}var Ep=Zd?function(T){return T==null?[]:(T=Lr(T),Ia(Zd(T),function(N){return c2.call(T,N)}))}:Wp,nv=Zd?function(T){for(var N=[];T;)ha(N,Ep(T)),T=xf(T);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(T){var N=ui(T),Y=N==B?T.constructor:e,ie=Y?xs(Y):"";if(ie)switch(ie){case o6:return Se;case s6:return j;case u6:return H;case c6:return ce;case l6:return de}return N});function T5(T,N,Y){for(var ie=-1,he=Y.length;++ie<he;){var ge=Y[ie],_e=ge.size;switch(ge.type){case"drop":T+=_e;break;case"dropRight":N-=_e;break;case"take":N=Kn(N,T+_e);break;case"takeRight":T=En(T,N-_e);break}}return{start:T,end:N}}function S5(T){var N=T.match(at);return N?N[1].split(xt):[]}function iv(T,N,Y){N=Wo(N,T);for(var ie=-1,he=N.length,ge=!1;++ie<he;){var _e=Na(N[ie]);if(!(ge=T!=null&&Y(T,_e)))break;T=T[_e]}return ge||++ie!=he?ge:(he=T==null?0:T.length,!!he&&Kf(he)&&uo(_e,he)&&(Gt(T)||Es(T)))}function D5(T){var N=T.length,Y=new T.constructor(N);return N&&typeof T[0]=="string"&&Cr.call(T,"index")&&(Y.index=T.index,Y.input=T.input),Y}function av(T){return typeof T.constructor=="function"&&!Fc(T)?nu(xf(T)):{}}function C5(T,N,Y){var ie=T.constructor;switch(N){case Ee:return gp(T);case O:case L:return new ie(+T);case Se:return f5(T,Y);case Fe:case He:case qe:case et:case Be:case Ge:case tt:case rt:case lt:return W2(T,Y);case j:return new ie;case ue:case ne:return new ie(T);case oe:return h5(T);case ce:return new ie;case se:return d5(T)}}function O5(T,N){var Y=N.length;if(!Y)return T;var ie=Y-1;return N[ie]=(Y>1?"& ":"")+N[ie],N=N.join(Y>2?", ":" "),T.replace(je,`{
|
|
/* [wrapped with `+N+`] */
|
|
`)}function I5(T){return Gt(T)||Es(T)||!!(l2&&T&&T[l2])}function uo(T,N){var Y=typeof T;return N=N==null?x:N,!!N&&(Y=="number"||Y!="symbol"&&Pr.test(T))&&T>-1&&T%1==0&&T<N}function ci(T,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],T):!1}function Ap(T,N){if(Gt(T))return!1;var Y=typeof T;return Y=="number"||Y=="symbol"||Y=="boolean"||T==null||Bi(T)?!0:Ct.test(T)||!rr.test(T)||N!=null&&T in Lr(N)}function k5(T){var N=typeof T;return N=="string"||N=="number"||N=="symbol"||N=="boolean"?T!=="__proto__":T===null}function Tp(T){var N=Wf(T),Y=me[N];if(typeof Y!="function"||!(N in ur.prototype))return!1;if(T===Y)return!0;var ie=_p(Y);return!!ie&&T===ie[0]}function R5(T){return!!o2&&o2 in T}var N5=vf?co:zp;function Fc(T){var N=T&&T.constructor,Y=typeof N=="function"&&N.prototype||eu;return T===Y}function ov(T){return T===T&&!Jr(T)}function sv(T,N){return function(Y){return Y==null?!1:Y[T]===N&&(N!==e||T in Lr(Y))}}function F5(T){var N=Gf(T,function(ie){return Y.size===c&&Y.clear(),ie}),Y=N.cache;return N}function M5(T,N){var Y=T[1],ie=N[1],he=Y|ie,ge=he<(p|y|z),_e=ie==z&&Y==b||ie==z&&Y==W&&T[7].length<=N[8]||ie==(z|W)&&N[7].length<=N[8]&&Y==b;if(!(ge||_e))return T;ie&p&&(T[2]=N[2],he|=Y&p?0:v);var Te=N[3];if(Te){var ke=T[3];T[3]=ke?H2(ke,Te,N[4]):Te,T[4]=ke?Bo(T[3],l):N[4]}return Te=N[5],Te&&(ke=T[5],T[5]=ke?$2(ke,Te,N[6]):Te,T[6]=ke?Bo(T[5],l):N[6]),Te=N[7],Te&&(T[7]=Te),ie&z&&(T[8]=T[8]==null?N[8]:Kn(T[8],N[8])),T[9]==null&&(T[9]=N[9]),T[0]=N[0],T[1]=he,T}function U5(T){var N=[];if(T!=null)for(var Y in Lr(T))N.push(Y);return N}function B5(T){return bf.call(T)}function uv(T,N,Y){return N=En(N===e?T.length-1:N,0),function(){for(var ie=arguments,he=-1,ge=En(ie.length-N,0),_e=Pe(ge);++he<ge;)_e[he]=ie[N+he];he=-1;for(var Te=Pe(N+1);++he<N;)Te[he]=ie[he];return Te[N]=Y(_e),Rn(T,this,Te)}}function cv(T,N){return N.length<2?T:ws(T,Zi(N,0,-1))}function P5(T,N){for(var Y=T.length,ie=Kn(N.length,Y),he=yi(T);ie--;){var ge=N[ie];T[ie]=uo(ge,Y)?he[ge]:e}return T}function Sp(T,N){if(!(N==="constructor"&&typeof T[N]=="function")&&N!="__proto__")return T[N]}var lv=hv(N2),Mc=Q4||function(T,N){return vn.setTimeout(T,N)},Dp=hv(s5);function fv(T,N,Y){var ie=N+"";return Dp(T,O5(ie,L5(S5(ie),Y)))}function hv(T){var N=0,Y=0;return function(){var ie=n6(),he=I-(ie-Y);if(Y=ie,he>0){if(++N>=P)return arguments[0]}else N=0;return T.apply(e,arguments)}}function Hf(T,N){var Y=-1,ie=T.length,he=ie-1;for(N=N===e?ie:N;++Y<N;){var ge=cp(Y,he),_e=T[ge];T[ge]=T[Y],T[Y]=_e}return T.length=N,T}var dv=F5(function(T){var N=[];return T.charCodeAt(0)===46&&N.push(""),T.replace(ir,function(Y,ie,he,ge){N.push(he?ge.replace(At,"$1"):ie||Y)}),N});function Na(T){if(typeof T=="string"||Bi(T))return T;var N=T+"";return N=="0"&&1/T==-w?"-0":N}function xs(T){if(T!=null){try{return yf.call(T)}catch{}try{return T+""}catch{}}return""}function L5(T,N){return vi(K,function(Y){var ie="_."+Y[0];N&Y[1]&&!Gs(T,ie)&&T.push(ie)}),T.sort()}function pv(T){if(T instanceof ur)return T.clone();var N=new Xi(T.__wrapped__,T.__chain__);return N.__actions__=yi(T.__actions__),N.__index__=T.__index__,N.__values__=T.__values__,N}function j5(T,N,Y){(Y?ci(T,N,Y):N===e)?N=1:N=En(Xt(N),0);var ie=T==null?0:T.length;if(!ie||N<1)return[];for(var he=0,ge=0,_e=Pe(Tf(ie/N));he<ie;)_e[ge++]=Zi(T,he,he+=N);return _e}function W5(T){for(var N=-1,Y=T==null?0:T.length,ie=0,he=[];++N<Y;){var ge=T[N];ge&&(he[ie++]=ge)}return he}function z5(){var T=arguments.length;if(!T)return[];for(var N=Pe(T-1),Y=arguments[0],ie=T;ie--;)N[ie-1]=arguments[ie];return ha(Gt(Y)?yi(Y):[Y],Wn(N,1))}var H5=Qt(function(T,N){return sn(T)?Oc(T,Wn(N,1,sn,!0)):[]}),$5=Qt(function(T,N){var Y=Yi(N);return sn(Y)&&(Y=e),sn(T)?Oc(T,Wn(N,1,sn,!0),Rt(Y,2)):[]}),V5=Qt(function(T,N){var Y=Yi(N);return sn(Y)&&(Y=e),sn(T)?Oc(T,Wn(N,1,sn,!0),e,Y):[]});function q5(T,N,Y){var ie=T==null?0:T.length;return ie?(N=Y||N===e?1:Xt(N),Zi(T,N<0?0:N,ie)):[]}function G5(T,N,Y){var ie=T==null?0:T.length;return ie?(N=Y||N===e?1:Xt(N),N=ie-N,Zi(T,0,N<0?0:N)):[]}function X5(T,N){return T&&T.length?Mf(T,Rt(N,3),!0,!0):[]}function K5(T,N){return T&&T.length?Mf(T,Rt(N,3),!0):[]}function Z5(T,N,Y,ie){var he=T==null?0:T.length;return he?(Y&&typeof Y!="number"&&ci(T,N,Y)&&(Y=0,ie=he),z6(T,N,Y,ie)):[]}function mv(T,N,Y){var ie=T==null?0:T.length;if(!ie)return-1;var he=Y==null?0:Xt(Y);return he<0&&(he=En(ie+he,0)),Mo(T,Rt(N,3),he)}function gv(T,N,Y){var ie=T==null?0:T.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(T,Rt(N,3),he,!0)}function vv(T){var N=T==null?0:T.length;return N?Wn(T,1):[]}function Y5(T){var N=T==null?0:T.length;return N?Wn(T,w):[]}function J5(T,N){var Y=T==null?0:T.length;return Y?(N=N===e?1:Xt(N),Wn(T,N)):[]}function Q5(T){for(var N=-1,Y=T==null?0:T.length,ie={};++N<Y;){var he=T[N];ie[he[0]]=he[1]}return ie}function yv(T){return T&&T.length?T[0]:e}function eE(T,N,Y){var ie=T==null?0:T.length;if(!ie)return-1;var he=Y==null?0:Xt(Y);return he<0&&(he=En(ie+he,0)),Uo(T,N,he)}function tE(T){var N=T==null?0:T.length;return N?Zi(T,0,-1):[]}var rE=Qt(function(T){var N=Wr(T,pp);return N.length&&N[0]===T[0]?ip(N):[]}),nE=Qt(function(T){var N=Yi(T),Y=Wr(T,pp);return N===Yi(Y)?N=e:Y.pop(),Y.length&&Y[0]===T[0]?ip(Y,Rt(N,2)):[]}),iE=Qt(function(T){var N=Yi(T),Y=Wr(T,pp);return N=typeof N=="function"?N:e,N&&Y.pop(),Y.length&&Y[0]===T[0]?ip(Y,e,N):[]});function aE(T,N){return T==null?"":t6.call(T,N)}function Yi(T){var N=T==null?0:T.length;return N?T[N-1]:e}function oE(T,N,Y){var ie=T==null?0:T.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?L4(T,N,he):Mo(T,Zs,he,!0)}function sE(T,N){return T&&T.length?O2(T,Xt(N)):e}var uE=Qt(bv);function bv(T,N){return T&&T.length&&N&&N.length?up(T,N):T}function cE(T,N,Y){return T&&T.length&&N&&N.length?up(T,N,Rt(Y,2)):T}function lE(T,N,Y){return T&&T.length&&N&&N.length?up(T,N,e,Y):T}var fE=so(function(T,N){var Y=T==null?0:T.length,ie=ep(T,N);return R2(T,Wr(N,function(he){return uo(he,Y)?+he:he}).sort(z2)),ie});function hE(T,N){var Y=[];if(!(T&&T.length))return Y;var ie=-1,he=[],ge=T.length;for(N=Rt(N,3);++ie<ge;){var _e=T[ie];N(_e,ie,T)&&(Y.push(_e),he.push(ie))}return R2(T,he),Y}function Cp(T){return T==null?T:a6.call(T)}function dE(T,N,Y){var ie=T==null?0:T.length;return ie?(Y&&typeof Y!="number"&&ci(T,N,Y)?(N=0,Y=ie):(N=N==null?0:Xt(N),Y=Y===e?ie:Xt(Y)),Zi(T,N,Y)):[]}function pE(T,N){return Ff(T,N)}function mE(T,N,Y){return fp(T,N,Rt(Y,2))}function gE(T,N){var Y=T==null?0:T.length;if(Y){var ie=Ff(T,N);if(ie<Y&&ma(T[ie],N))return ie}return-1}function vE(T,N){return Ff(T,N,!0)}function yE(T,N,Y){return fp(T,N,Rt(Y,2),!0)}function bE(T,N){var Y=T==null?0:T.length;if(Y){var ie=Ff(T,N,!0)-1;if(ma(T[ie],N))return ie}return-1}function wE(T){return T&&T.length?F2(T):[]}function _E(T,N){return T&&T.length?F2(T,Rt(N,2)):[]}function xE(T){var N=T==null?0:T.length;return N?Zi(T,1,N):[]}function EE(T,N,Y){return T&&T.length?(N=Y||N===e?1:Xt(N),Zi(T,0,N<0?0:N)):[]}function AE(T,N,Y){var ie=T==null?0:T.length;return ie?(N=Y||N===e?1:Xt(N),N=ie-N,Zi(T,N<0?0:N,ie)):[]}function TE(T,N){return T&&T.length?Mf(T,Rt(N,3),!1,!0):[]}function SE(T,N){return T&&T.length?Mf(T,Rt(N,3)):[]}var DE=Qt(function(T){return jo(Wn(T,1,sn,!0))}),CE=Qt(function(T){var N=Yi(T);return sn(N)&&(N=e),jo(Wn(T,1,sn,!0),Rt(N,2))}),OE=Qt(function(T){var N=Yi(T);return N=typeof N=="function"?N:e,jo(Wn(T,1,sn,!0),e,N)});function IE(T){return T&&T.length?jo(T):[]}function kE(T,N){return T&&T.length?jo(T,Rt(N,2)):[]}function RE(T,N){return N=typeof N=="function"?N:e,T&&T.length?jo(T,e,N):[]}function Op(T){if(!(T&&T.length))return[];var N=0;return T=Ia(T,function(Y){if(sn(Y))return N=En(Y.length,N),!0}),_c(N,function(Y){return Wr(T,yc(Y))})}function wv(T,N){if(!(T&&T.length))return[];var Y=Op(T);return N==null?Y:Wr(Y,function(ie){return Rn(N,e,ie)})}var NE=Qt(function(T,N){return sn(T)?Oc(T,N):[]}),FE=Qt(function(T){return dp(Ia(T,sn))}),ME=Qt(function(T){var N=Yi(T);return sn(N)&&(N=e),dp(Ia(T,sn),Rt(N,2))}),UE=Qt(function(T){var N=Yi(T);return N=typeof N=="function"?N:e,dp(Ia(T,sn),e,N)}),BE=Qt(Op);function PE(T,N){return P2(T||[],N||[],Cc)}function LE(T,N){return P2(T||[],N||[],Rc)}var jE=Qt(function(T){var N=T.length,Y=N>1?T[N-1]:e;return Y=typeof Y=="function"?(T.pop(),Y):e,wv(T,Y)});function _v(T){var N=me(T);return N.__chain__=!0,N}function WE(T,N){return N(T),T}function $f(T,N){return N(T)}var zE=so(function(T){var N=T.length,Y=N?T[0]:0,ie=this.__wrapped__,he=function(ge){return ep(ge,T)};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 HE(){return _v(this)}function $E(){return new Xi(this.value(),this.__chain__)}function VE(){this.__values__===e&&(this.__values__=Mv(this.value()));var T=this.__index__>=this.__values__.length,N=T?e:this.__values__[this.__index__++];return{done:T,value:N}}function qE(){return this}function GE(T){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__=T,N}function XE(){var T=this.__wrapped__;if(T instanceof ur){var N=T;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 KE(){return B2(this.__wrapped__,this.__actions__)}var ZE=Uf(function(T,N,Y){Cr.call(T,Y)?++T[Y]:ao(T,Y,1)});function YE(T,N,Y){var ie=Gt(T)?uf:W6;return Y&&ci(T,N,Y)&&(N=e),ie(T,Rt(N,3))}function JE(T,N){var Y=Gt(T)?Ia:w2;return Y(T,Rt(N,3))}var QE=X2(mv),e9=X2(gv);function t9(T,N){return Wn(Vf(T,N),1)}function r9(T,N){return Wn(Vf(T,N),w)}function n9(T,N,Y){return Y=Y===e?1:Xt(Y),Wn(Vf(T,N),Y)}function xv(T,N){var Y=Gt(T)?vi:Lo;return Y(T,Rt(N,3))}function Ev(T,N){var Y=Gt(T)?$d:b2;return Y(T,Rt(N,3))}var i9=Uf(function(T,N,Y){Cr.call(T,Y)?T[Y].push(N):ao(T,Y,[N])});function a9(T,N,Y,ie){T=bi(T)?T:uu(T),Y=Y&&!ie?Xt(Y):0;var he=T.length;return Y<0&&(Y=En(he+Y,0)),Zf(T)?Y<=he&&T.indexOf(N,Y)>-1:!!he&&Uo(T,N,Y)>-1}var o9=Qt(function(T,N,Y){var ie=-1,he=typeof N=="function",ge=bi(T)?Pe(T.length):[];return Lo(T,function(_e){ge[++ie]=he?Rn(N,_e,Y):Ic(_e,N,Y)}),ge}),s9=Uf(function(T,N,Y){ao(T,Y,N)});function Vf(T,N){var Y=Gt(T)?Wr:S2;return Y(T,Rt(N,3))}function u9(T,N,Y,ie){return T==null?[]:(Gt(N)||(N=N==null?[]:[N]),Y=ie?e:Y,Gt(Y)||(Y=Y==null?[]:[Y]),I2(T,N,Y))}var c9=Uf(function(T,N,Y){T[Y?0:1].push(N)},function(){return[[],[]]});function l9(T,N,Y){var ie=Gt(T)?ms:hf,he=arguments.length<3;return ie(T,Rt(N,4),Y,he,Lo)}function f9(T,N,Y){var ie=Gt(T)?Ks:hf,he=arguments.length<3;return ie(T,Rt(N,4),Y,he,b2)}function h9(T,N){var Y=Gt(T)?Ia:w2;return Y(T,Xf(Rt(N,3)))}function d9(T){var N=Gt(T)?m2:a5;return N(T)}function p9(T,N,Y){(Y?ci(T,N,Y):N===e)?N=1:N=Xt(N);var ie=Gt(T)?U6:o5;return ie(T,N)}function m9(T){var N=Gt(T)?B6:u5;return N(T)}function g9(T){if(T==null)return 0;if(bi(T))return Zf(T)?Js(T):T.length;var N=Zn(T);return N==j||N==ce?T.size:op(T).length}function v9(T,N,Y){var ie=Gt(T)?vc:c5;return Y&&ci(T,N,Y)&&(N=e),ie(T,Rt(N,3))}var y9=Qt(function(T,N){if(T==null)return[];var Y=N.length;return Y>1&&ci(T,N[0],N[1])?N=[]:Y>2&&ci(N[0],N[1],N[2])&&(N=[N[0]]),I2(T,Wn(N,1),[])}),qf=J4||function(){return vn.Date.now()};function b9(T,N){if(typeof N!="function")throw new Gi(o);return T=Xt(T),function(){if(--T<1)return N.apply(this,arguments)}}function Av(T,N,Y){return N=Y?e:N,N=T&&N==null?T.length:N,oo(T,z,e,e,e,e,N)}function Tv(T,N){var Y;if(typeof N!="function")throw new Gi(o);return T=Xt(T),function(){return--T>0&&(Y=N.apply(this,arguments)),T<=1&&(N=e),Y}}var Ip=Qt(function(T,N,Y){var ie=p;if(Y.length){var he=Bo(Y,ou(Ip));ie|=D}return oo(T,ie,N,Y,he)}),Sv=Qt(function(T,N,Y){var ie=p|y;if(Y.length){var he=Bo(Y,ou(Sv));ie|=D}return oo(N,ie,T,Y,he)});function Dv(T,N,Y){N=Y?e:N;var ie=oo(T,b,e,e,e,e,e,N);return ie.placeholder=Dv.placeholder,ie}function Cv(T,N,Y){N=Y?e:N;var ie=oo(T,E,e,e,e,e,e,N);return ie.placeholder=Cv.placeholder,ie}function Ov(T,N,Y){var ie,he,ge,_e,Te,ke,Xe=0,Ke=!1,Ye=!1,ft=!0;if(typeof T!="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,_e=T.apply(fo,ga),_e}function Mt(un){return Xe=un,Te=Mc(or,N),Ke?wt(un):_e}function Yt(un){var ga=un-ke,fo=un-Xe,Xv=N-ga;return Ye?Kn(Xv,ge-fo):Xv}function Ut(un){var ga=un-ke,fo=un-Xe;return ke===e||ga>=N||ga<0||Ye&&fo>=ge}function or(){var un=qf();if(Ut(un))return fr(un);Te=Mc(or,Yt(un))}function fr(un){return Te=e,ft&&ie?wt(un):(ie=he=e,_e)}function Pi(){Te!==e&&L2(Te),Xe=0,ie=ke=he=Te=e}function li(){return Te===e?_e:fr(qf())}function Li(){var un=qf(),ga=Ut(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)),_e}return Li.cancel=Pi,Li.flush=li,Li}var w9=Qt(function(T,N){return y2(T,1,N)}),_9=Qt(function(T,N,Y){return y2(T,Ji(N)||0,Y)});function x9(T){return oo(T,U)}function Gf(T,N){if(typeof T!="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 _e=T.apply(this,ie);return Y.cache=ge.set(he,_e)||ge,_e};return Y.cache=new(Gf.Cache||io),Y}Gf.Cache=io;function Xf(T){if(typeof T!="function")throw new Gi(o);return function(){var N=arguments;switch(N.length){case 0:return!T.call(this);case 1:return!T.call(this,N[0]);case 2:return!T.call(this,N[0],N[1]);case 3:return!T.call(this,N[0],N[1],N[2])}return!T.apply(this,N)}}function E9(T){return Tv(2,T)}var A9=l5(function(T,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(T,this,ie)})}),kp=Qt(function(T,N){var Y=Bo(N,ou(kp));return oo(T,D,e,N,Y)}),Iv=Qt(function(T,N){var Y=Bo(N,ou(Iv));return oo(T,F,e,N,Y)}),T9=so(function(T,N){return oo(T,W,e,e,e,N)});function S9(T,N){if(typeof T!="function")throw new Gi(o);return N=N===e?N:Xt(N),Qt(T,N)}function D9(T,N){if(typeof T!="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(T,this,he)})}function C9(T,N,Y){var ie=!0,he=!0;if(typeof T!="function")throw new Gi(o);return Jr(Y)&&(ie="leading"in Y?!!Y.leading:ie,he="trailing"in Y?!!Y.trailing:he),Ov(T,N,{leading:ie,maxWait:N,trailing:he})}function O9(T){return Av(T,1)}function I9(T,N){return kp(mp(N),T)}function k9(){if(!arguments.length)return[];var T=arguments[0];return Gt(T)?T:[T]}function R9(T){return Ki(T,f)}function N9(T,N){return N=typeof N=="function"?N:e,Ki(T,f,N)}function F9(T){return Ki(T,d|f)}function M9(T,N){return N=typeof N=="function"?N:e,Ki(T,d|f,N)}function U9(T,N){return N==null||v2(T,N,Nn(N))}function ma(T,N){return T===N||T!==T&&N!==N}var B9=jf(np),P9=jf(function(T,N){return T>=N}),Es=E2(function(){return arguments}())?E2:function(T){return rn(T)&&Cr.call(T,"callee")&&!c2.call(T,"callee")},Gt=Pe.isArray,L9=nf?pe(nf):G6;function bi(T){return T!=null&&Kf(T.length)&&!co(T)}function sn(T){return rn(T)&&bi(T)}function j9(T){return T===!0||T===!1||rn(T)&&ui(T)==O}var Ho=e6||zp,W9=af?pe(af):X6;function z9(T){return rn(T)&&T.nodeType===1&&!Uc(T)}function H9(T){if(T==null)return!0;if(bi(T)&&(Gt(T)||typeof T=="string"||typeof T.splice=="function"||Ho(T)||su(T)||Es(T)))return!T.length;var N=Zn(T);if(N==j||N==ce)return!T.size;if(Fc(T))return!op(T).length;for(var Y in T)if(Cr.call(T,Y))return!1;return!0}function $9(T,N){return kc(T,N)}function V9(T,N,Y){Y=typeof Y=="function"?Y:e;var ie=Y?Y(T,N):e;return ie===e?kc(T,N,e,Y):!!ie}function Rp(T){if(!rn(T))return!1;var N=ui(T);return N==J||N==V||typeof T.message=="string"&&typeof T.name=="string"&&!Uc(T)}function q9(T){return typeof T=="number"&&f2(T)}function co(T){if(!Jr(T))return!1;var N=ui(T);return N==re||N==ae||N==q||N==Z}function kv(T){return typeof T=="number"&&T==Xt(T)}function Kf(T){return typeof T=="number"&&T>-1&&T%1==0&&T<=x}function Jr(T){var N=typeof T;return T!=null&&(N=="object"||N=="function")}function rn(T){return T!=null&&typeof T=="object"}var Rv=mc?pe(mc):Z6;function G9(T,N){return T===N||ap(T,N,xp(N))}function X9(T,N,Y){return Y=typeof Y=="function"?Y:e,ap(T,N,xp(N),Y)}function K9(T){return Nv(T)&&T!=+T}function Z9(T){if(N5(T))throw new qt(a);return A2(T)}function Y9(T){return T===null}function J9(T){return T==null}function Nv(T){return typeof T=="number"||rn(T)&&ui(T)==ue}function Uc(T){if(!rn(T)||ui(T)!=B)return!1;var N=xf(T);if(N===null)return!0;var Y=Cr.call(N,"constructor")&&N.constructor;return typeof Y=="function"&&Y instanceof Y&&yf.call(Y)==X4}var Np=gc?pe(gc):Y6;function Q9(T){return kv(T)&&T>=-x&&T<=x}var Fv=of?pe(of):J6;function Zf(T){return typeof T=="string"||!Gt(T)&&rn(T)&&ui(T)==ne}function Bi(T){return typeof T=="symbol"||rn(T)&&ui(T)==se}var su=sf?pe(sf):Q6;function e7(T){return T===e}function t7(T){return rn(T)&&Zn(T)==de}function r7(T){return rn(T)&&ui(T)==ve}var n7=jf(sp),i7=jf(function(T,N){return T<=N});function Mv(T){if(!T)return[];if(bi(T))return Zf(T)?da(T):yi(T);if(Ec&&T[Ec])return pf(T[Ec]());var N=Zn(T),Y=N==j?Xd:N==ce?mf:uu;return Y(T)}function lo(T){if(!T)return T===0?T:0;if(T=Ji(T),T===w||T===-w){var N=T<0?-1:1;return N*A}return T===T?T:0}function Xt(T){var N=lo(T),Y=N%1;return N===N?Y?N-Y:N:0}function Uv(T){return T?bs(Xt(T),0,R):0}function Ji(T){if(typeof T=="number")return T;if(Bi(T))return k;if(Jr(T)){var N=typeof T.valueOf=="function"?T.valueOf():T;T=Jr(N)?N+"":N}if(typeof T!="string")return T===0?T:+T;T=le(T);var Y=Ht.test(T);return Y||gr.test(T)?Fo(T.slice(2),Y?2:8):Dt.test(T)?k:+T}function Bv(T){return Ra(T,wi(T))}function a7(T){return T?bs(Xt(T),-x,x):T===0?T:0}function Ar(T){return T==null?"":Ui(T)}var o7=iu(function(T,N){if(Fc(N)||bi(N)){Ra(N,Nn(N),T);return}for(var Y in N)Cr.call(N,Y)&&Cc(T,Y,N[Y])}),Pv=iu(function(T,N){Ra(N,wi(N),T)}),Yf=iu(function(T,N,Y,ie){Ra(N,wi(N),T,ie)}),s7=iu(function(T,N,Y,ie){Ra(N,Nn(N),T,ie)}),u7=so(ep);function c7(T,N){var Y=nu(T);return N==null?Y:g2(Y,N)}var l7=Qt(function(T,N){T=Lr(T);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],_e=wi(ge),Te=-1,ke=_e.length;++Te<ke;){var Xe=_e[Te],Ke=T[Xe];(Ke===e||ma(Ke,eu[Xe])&&!Cr.call(T,Xe))&&(T[Xe]=ge[Xe])}return T}),f7=Qt(function(T){return T.push(e,tv),Rn(Lv,e,T)});function h7(T,N){return lf(T,Rt(N,3),ka)}function d7(T,N){return lf(T,Rt(N,3),rp)}function p7(T,N){return T==null?T:tp(T,Rt(N,3),wi)}function m7(T,N){return T==null?T:_2(T,Rt(N,3),wi)}function g7(T,N){return T&&ka(T,Rt(N,3))}function v7(T,N){return T&&rp(T,Rt(N,3))}function y7(T){return T==null?[]:Rf(T,Nn(T))}function b7(T){return T==null?[]:Rf(T,wi(T))}function Fp(T,N,Y){var ie=T==null?e:ws(T,N);return ie===e?Y:ie}function w7(T,N){return T!=null&&iv(T,N,H6)}function Mp(T,N){return T!=null&&iv(T,N,$6)}var _7=Z2(function(T,N,Y){N!=null&&typeof N.toString!="function"&&(N=bf.call(N)),T[N]=Y},Bp(_i)),x7=Z2(function(T,N,Y){N!=null&&typeof N.toString!="function"&&(N=bf.call(N)),Cr.call(T,N)?T[N].push(Y):T[N]=[Y]},Rt),E7=Qt(Ic);function Nn(T){return bi(T)?p2(T):op(T)}function wi(T){return bi(T)?p2(T,!0):e5(T)}function A7(T,N){var Y={};return N=Rt(N,3),ka(T,function(ie,he,ge){ao(Y,N(ie,he,ge),ie)}),Y}function T7(T,N){var Y={};return N=Rt(N,3),ka(T,function(ie,he,ge){ao(Y,he,N(ie,he,ge))}),Y}var S7=iu(function(T,N,Y){Nf(T,N,Y)}),Lv=iu(function(T,N,Y,ie){Nf(T,N,Y,ie)}),D7=so(function(T,N){var Y={};if(T==null)return Y;var ie=!1;N=Wr(N,function(ge){return ge=Wo(ge,T),ie||(ie=ge.length>1),ge}),Ra(T,wp(T),Y),ie&&(Y=Ki(Y,d|h|f,_5));for(var he=N.length;he--;)hp(Y,N[he]);return Y});function C7(T,N){return jv(T,Xf(Rt(N)))}var O7=so(function(T,N){return T==null?{}:r5(T,N)});function jv(T,N){if(T==null)return{};var Y=Wr(wp(T),function(ie){return[ie]});return N=Rt(N),k2(T,Y,function(ie,he){return N(ie,he[0])})}function I7(T,N,Y){N=Wo(N,T);var ie=-1,he=N.length;for(he||(he=1,T=e);++ie<he;){var ge=T==null?e:T[Na(N[ie])];ge===e&&(ie=he,ge=Y),T=co(ge)?ge.call(T):ge}return T}function k7(T,N,Y){return T==null?T:Rc(T,N,Y)}function R7(T,N,Y,ie){return ie=typeof ie=="function"?ie:e,T==null?T:Rc(T,N,Y,ie)}var Wv=Q2(Nn),zv=Q2(wi);function N7(T,N,Y){var ie=Gt(T),he=ie||Ho(T)||su(T);if(N=Rt(N,4),Y==null){var ge=T&&T.constructor;he?Y=ie?new ge:[]:Jr(T)?Y=co(ge)?nu(xf(T)):{}:Y={}}return(he?vi:ka)(T,function(_e,Te,ke){return N(Y,_e,Te,ke)}),Y}function F7(T,N){return T==null?!0:hp(T,N)}function M7(T,N,Y){return T==null?T:U2(T,N,mp(Y))}function U7(T,N,Y,ie){return ie=typeof ie=="function"?ie:e,T==null?T:U2(T,N,mp(Y),ie)}function uu(T){return T==null?[]:we(T,Nn(T))}function B7(T){return T==null?[]:we(T,wi(T))}function P7(T,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(T),N,Y)}function L7(T,N,Y){return N=lo(N),Y===e?(Y=N,N=0):Y=lo(Y),T=Ji(T),V6(T,N,Y)}function j7(T,N,Y){if(Y&&typeof Y!="boolean"&&ci(T,N,Y)&&(N=Y=e),Y===e&&(typeof N=="boolean"?(Y=N,N=e):typeof T=="boolean"&&(Y=T,T=e)),T===e&&N===e?(T=0,N=1):(T=lo(T),N===e?(N=T,T=0):N=lo(N)),T>N){var ie=T;T=N,N=ie}if(Y||T%1||N%1){var he=h2();return Kn(T+he*(N-T+ef("1e-"+((he+"").length-1))),N)}return cp(T,N)}var W7=au(function(T,N,Y){return N=N.toLowerCase(),T+(Y?Hv(N):N)});function Hv(T){return Up(Ar(T).toLowerCase())}function $v(T){return T=Ar(T),T&&T.replace(Gr,ut).replace(Xl,"")}function z7(T,N,Y){T=Ar(T),N=Ui(N);var ie=T.length;Y=Y===e?ie:bs(Xt(Y),0,ie);var he=Y;return Y-=N.length,Y>=0&&T.slice(Y,he)==N}function H7(T){return T=Ar(T),T&&hr.test(T)?T.replace(_t,Vt):T}function $7(T){return T=Ar(T),T&&kt.test(T)?T.replace(ar,"\\$&"):T}var V7=au(function(T,N,Y){return T+(Y?"-":"")+N.toLowerCase()}),q7=au(function(T,N,Y){return T+(Y?" ":"")+N.toLowerCase()}),G7=G2("toLowerCase");function X7(T,N,Y){T=Ar(T),N=Xt(N);var ie=N?Js(T):0;if(!N||ie>=N)return T;var he=(N-ie)/2;return Lf(Sf(he),Y)+T+Lf(Tf(he),Y)}function K7(T,N,Y){T=Ar(T),N=Xt(N);var ie=N?Js(T):0;return N&&ie<N?T+Lf(N-ie,Y):T}function Z7(T,N,Y){T=Ar(T),N=Xt(N);var ie=N?Js(T):0;return N&&ie<N?Lf(N-ie,Y)+T:T}function Y7(T,N,Y){return Y||N==null?N=0:N&&(N=+N),i6(Ar(T).replace(Ae,""),N||0)}function J7(T,N,Y){return(Y?ci(T,N,Y):N===e)?N=1:N=Xt(N),lp(Ar(T),N)}function Q7(){var T=arguments,N=Ar(T[0]);return T.length<3?N:N.replace(T[1],T[2])}var eA=au(function(T,N,Y){return T+(Y?"_":"")+N.toLowerCase()});function tA(T,N,Y){return Y&&typeof Y!="number"&&ci(T,N,Y)&&(N=Y=e),Y=Y===e?R:Y>>>0,Y?(T=Ar(T),T&&(typeof N=="string"||N!=null&&!Np(N))&&(N=Ui(N),!N&&tn(T))?zo(da(T),0,Y):T.split(N,Y)):[]}var rA=au(function(T,N,Y){return T+(Y?" ":"")+Up(N)});function nA(T,N,Y){return T=Ar(T),Y=Y==null?0:bs(Xt(Y),0,T.length),N=Ui(N),T.slice(Y,Y+N.length)==N}function iA(T,N,Y){var ie=me.templateSettings;Y&&ci(T,N,Y)&&(N=e),T=Ar(T),N=Yf({},N,ie,ev);var he=Yf({},N.imports,ie.imports,ev),ge=Nn(he),_e=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+"]")+`
|
|
`;T.replace(ft,function(Ut,or,fr,Pi,li,Li){return fr||(fr=Pi),Ye+=T.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+Ut.length,Ut}),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(Nt,""):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,_e)});if(Yt.source=Ye,Rp(Yt))throw Yt;return Yt}function aA(T){return Ar(T).toLowerCase()}function oA(T){return Ar(T).toUpperCase()}function sA(T,N,Y){if(T=Ar(T),T&&(Y||N===e))return le(T);if(!T||!(N=Ui(N)))return T;var ie=da(T),he=da(N),ge=Ce(ie,he),_e=De(ie,he)+1;return zo(ie,ge,_e).join("")}function uA(T,N,Y){if(T=Ar(T),T&&(Y||N===e))return T.slice(0,a2(T)+1);if(!T||!(N=Ui(N)))return T;var ie=da(T),he=De(ie,da(N))+1;return zo(ie,0,he).join("")}function cA(T,N,Y){if(T=Ar(T),T&&(Y||N===e))return T.replace(Ae,"");if(!T||!(N=Ui(N)))return T;var ie=da(T),he=Ce(ie,da(N));return zo(ie,he).join("")}function lA(T,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?Ui(N.omission):ie}T=Ar(T);var ge=T.length;if(tn(T)){var _e=da(T);ge=_e.length}if(Y>=ge)return T;var Te=Y-Js(ie);if(Te<1)return ie;var ke=_e?zo(_e,0,Te).join(""):T.slice(0,Te);if(he===e)return ke+ie;if(_e&&(Te+=ke.length-Te),Np(he)){if(T.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(T.indexOf(Ui(he),Te)!=Te){var ft=ke.lastIndexOf(he);ft>-1&&(ke=ke.slice(0,ft))}return ke+ie}function fA(T){return T=Ar(T),T&>.test(T)?T.replace(Pt,j4):T}var hA=au(function(T,N,Y){return T+(Y?" ":"")+N.toUpperCase()}),Up=G2("toUpperCase");function Vv(T,N,Y){return T=Ar(T),N=Y?e:N,N===e?df(T)?H4(T):cf(T):T.match(N)||[]}var qv=Qt(function(T,N){try{return Rn(T,e,N)}catch(Y){return Rp(Y)?Y:new qt(Y)}}),dA=so(function(T,N){return vi(N,function(Y){Y=Na(Y),ao(T,Y,Ip(T[Y],T))}),T});function pA(T){var N=T==null?0:T.length,Y=Rt();return T=N?Wr(T,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=T[he];if(Rn(ge[0],this,ie))return Rn(ge[1],this,ie)}})}function mA(T){return j6(Ki(T,d))}function Bp(T){return function(){return T}}function gA(T,N){return T==null||T!==T?N:T}var vA=K2(),yA=K2(!0);function _i(T){return T}function Pp(T){return T2(typeof T=="function"?T:Ki(T,d))}function bA(T){return D2(Ki(T,d))}function wA(T,N){return C2(T,Ki(N,d))}var _A=Qt(function(T,N){return function(Y){return Ic(Y,T,N)}}),xA=Qt(function(T,N){return function(Y){return Ic(T,Y,N)}});function Lp(T,N,Y){var ie=Nn(N),he=Rf(N,ie);Y==null&&!(Jr(N)&&(he.length||!ie.length))&&(Y=N,N=T,T=this,he=Rf(N,Nn(N)));var ge=!(Jr(Y)&&"chain"in Y)||!!Y.chain,_e=co(T);return vi(he,function(Te){var ke=N[Te];T[Te]=ke,_e&&(T.prototype[Te]=function(){var Xe=this.__chain__;if(ge||Xe){var Ke=T(this.__wrapped__),Ye=Ke.__actions__=yi(this.__actions__);return Ye.push({func:ke,args:arguments,thisArg:T}),Ke.__chain__=Xe,Ke}return ke.apply(T,ha([this.value()],arguments))})}),T}function EA(){return vn._===this&&(vn._=K4),this}function jp(){}function AA(T){return T=Xt(T),Qt(function(N){return O2(N,T)})}var TA=vp(Wr),SA=vp(uf),DA=vp(vc);function Gv(T){return Ap(T)?yc(Na(T)):n5(T)}function CA(T){return function(N){return T==null?e:ws(T,N)}}var OA=Y2(),IA=Y2(!0);function Wp(){return[]}function zp(){return!1}function kA(){return{}}function RA(){return""}function NA(){return!0}function FA(T,N){if(T=Xt(T),T<1||T>x)return[];var Y=R,ie=Kn(T,R);N=Rt(N),T-=R;for(var he=_c(ie,N);++Y<T;)N(Y);return he}function MA(T){return Gt(T)?Wr(T,Na):Bi(T)?[T]:yi(dv(Ar(T)))}function UA(T){var N=++G4;return Ar(T)+N}var BA=Pf(function(T,N){return T+N},0),PA=yp("ceil"),LA=Pf(function(T,N){return T/N},1),jA=yp("floor");function WA(T){return T&&T.length?kf(T,_i,np):e}function zA(T,N){return T&&T.length?kf(T,Rt(N,2),np):e}function HA(T){return ff(T,_i)}function $A(T,N){return ff(T,Rt(N,2))}function VA(T){return T&&T.length?kf(T,_i,sp):e}function qA(T,N){return T&&T.length?kf(T,Rt(N,2),sp):e}var GA=Pf(function(T,N){return T*N},1),XA=yp("round"),KA=Pf(function(T,N){return T-N},0);function ZA(T){return T&&T.length?Ys(T,_i):0}function YA(T,N){return T&&T.length?Ys(T,Rt(N,2)):0}return me.after=b9,me.ary=Av,me.assign=o7,me.assignIn=Pv,me.assignInWith=Yf,me.assignWith=s7,me.at=u7,me.before=Tv,me.bind=Ip,me.bindAll=dA,me.bindKey=Sv,me.castArray=k9,me.chain=_v,me.chunk=j5,me.compact=W5,me.concat=z5,me.cond=pA,me.conforms=mA,me.constant=Bp,me.countBy=ZE,me.create=c7,me.curry=Dv,me.curryRight=Cv,me.debounce=Ov,me.defaults=l7,me.defaultsDeep=f7,me.defer=w9,me.delay=_9,me.difference=H5,me.differenceBy=$5,me.differenceWith=V5,me.drop=q5,me.dropRight=G5,me.dropRightWhile=X5,me.dropWhile=K5,me.fill=Z5,me.filter=JE,me.flatMap=t9,me.flatMapDeep=r9,me.flatMapDepth=n9,me.flatten=vv,me.flattenDeep=Y5,me.flattenDepth=J5,me.flip=x9,me.flow=vA,me.flowRight=yA,me.fromPairs=Q5,me.functions=y7,me.functionsIn=b7,me.groupBy=i9,me.initial=tE,me.intersection=rE,me.intersectionBy=nE,me.intersectionWith=iE,me.invert=_7,me.invertBy=x7,me.invokeMap=o9,me.iteratee=Pp,me.keyBy=s9,me.keys=Nn,me.keysIn=wi,me.map=Vf,me.mapKeys=A7,me.mapValues=T7,me.matches=bA,me.matchesProperty=wA,me.memoize=Gf,me.merge=S7,me.mergeWith=Lv,me.method=_A,me.methodOf=xA,me.mixin=Lp,me.negate=Xf,me.nthArg=AA,me.omit=D7,me.omitBy=C7,me.once=E9,me.orderBy=u9,me.over=TA,me.overArgs=A9,me.overEvery=SA,me.overSome=DA,me.partial=kp,me.partialRight=Iv,me.partition=c9,me.pick=O7,me.pickBy=jv,me.property=Gv,me.propertyOf=CA,me.pull=uE,me.pullAll=bv,me.pullAllBy=cE,me.pullAllWith=lE,me.pullAt=fE,me.range=OA,me.rangeRight=IA,me.rearg=T9,me.reject=h9,me.remove=hE,me.rest=S9,me.reverse=Cp,me.sampleSize=p9,me.set=k7,me.setWith=R7,me.shuffle=m9,me.slice=dE,me.sortBy=y9,me.sortedUniq=wE,me.sortedUniqBy=_E,me.split=tA,me.spread=D9,me.tail=xE,me.take=EE,me.takeRight=AE,me.takeRightWhile=TE,me.takeWhile=SE,me.tap=WE,me.throttle=C9,me.thru=$f,me.toArray=Mv,me.toPairs=Wv,me.toPairsIn=zv,me.toPath=MA,me.toPlainObject=Bv,me.transform=N7,me.unary=O9,me.union=DE,me.unionBy=CE,me.unionWith=OE,me.uniq=IE,me.uniqBy=kE,me.uniqWith=RE,me.unset=F7,me.unzip=Op,me.unzipWith=wv,me.update=M7,me.updateWith=U7,me.values=uu,me.valuesIn=B7,me.without=NE,me.words=Vv,me.wrap=I9,me.xor=FE,me.xorBy=ME,me.xorWith=UE,me.zip=BE,me.zipObject=PE,me.zipObjectDeep=LE,me.zipWith=jE,me.entries=Wv,me.entriesIn=zv,me.extend=Pv,me.extendWith=Yf,Lp(me,me),me.add=BA,me.attempt=qv,me.camelCase=W7,me.capitalize=Hv,me.ceil=PA,me.clamp=P7,me.clone=R9,me.cloneDeep=F9,me.cloneDeepWith=M9,me.cloneWith=N9,me.conformsTo=U9,me.deburr=$v,me.defaultTo=gA,me.divide=LA,me.endsWith=z7,me.eq=ma,me.escape=H7,me.escapeRegExp=$7,me.every=YE,me.find=QE,me.findIndex=mv,me.findKey=h7,me.findLast=e9,me.findLastIndex=gv,me.findLastKey=d7,me.floor=jA,me.forEach=xv,me.forEachRight=Ev,me.forIn=p7,me.forInRight=m7,me.forOwn=g7,me.forOwnRight=v7,me.get=Fp,me.gt=B9,me.gte=P9,me.has=w7,me.hasIn=Mp,me.head=yv,me.identity=_i,me.includes=a9,me.indexOf=eE,me.inRange=L7,me.invoke=E7,me.isArguments=Es,me.isArray=Gt,me.isArrayBuffer=L9,me.isArrayLike=bi,me.isArrayLikeObject=sn,me.isBoolean=j9,me.isBuffer=Ho,me.isDate=W9,me.isElement=z9,me.isEmpty=H9,me.isEqual=$9,me.isEqualWith=V9,me.isError=Rp,me.isFinite=q9,me.isFunction=co,me.isInteger=kv,me.isLength=Kf,me.isMap=Rv,me.isMatch=G9,me.isMatchWith=X9,me.isNaN=K9,me.isNative=Z9,me.isNil=J9,me.isNull=Y9,me.isNumber=Nv,me.isObject=Jr,me.isObjectLike=rn,me.isPlainObject=Uc,me.isRegExp=Np,me.isSafeInteger=Q9,me.isSet=Fv,me.isString=Zf,me.isSymbol=Bi,me.isTypedArray=su,me.isUndefined=e7,me.isWeakMap=t7,me.isWeakSet=r7,me.join=aE,me.kebabCase=V7,me.last=Yi,me.lastIndexOf=oE,me.lowerCase=q7,me.lowerFirst=G7,me.lt=n7,me.lte=i7,me.max=WA,me.maxBy=zA,me.mean=HA,me.meanBy=$A,me.min=VA,me.minBy=qA,me.stubArray=Wp,me.stubFalse=zp,me.stubObject=kA,me.stubString=RA,me.stubTrue=NA,me.multiply=GA,me.nth=sE,me.noConflict=EA,me.noop=jp,me.now=qf,me.pad=X7,me.padEnd=K7,me.padStart=Z7,me.parseInt=Y7,me.random=j7,me.reduce=l9,me.reduceRight=f9,me.repeat=J7,me.replace=Q7,me.result=I7,me.round=XA,me.runInContext=Oe,me.sample=d9,me.size=g9,me.snakeCase=eA,me.some=v9,me.sortedIndex=pE,me.sortedIndexBy=mE,me.sortedIndexOf=gE,me.sortedLastIndex=vE,me.sortedLastIndexBy=yE,me.sortedLastIndexOf=bE,me.startCase=rA,me.startsWith=nA,me.subtract=KA,me.sum=ZA,me.sumBy=YA,me.template=iA,me.times=FA,me.toFinite=lo,me.toInteger=Xt,me.toLength=Uv,me.toLower=aA,me.toNumber=Ji,me.toSafeInteger=a7,me.toString=Ar,me.toUpper=oA,me.trim=sA,me.trimEnd=uA,me.trimStart=cA,me.truncate=lA,me.unescape=fA,me.uniqueId=UA,me.upperCase=hA,me.upperFirst=Up,me.each=xv,me.eachRight=Ev,me.first=yv,Lp(me,function(){var T={};return ka(me,function(N,Y){Cr.call(me.prototype,Y)||(T[Y]=N)}),T}(),{chain:!1}),me.VERSION=n,vi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(T){me[T].placeholder=me}),vi(["drop","take"],function(T,N){ur.prototype[T]=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,R),type:T+(ie.__dir__<0?"Right":"")}),ie},ur.prototype[T+"Right"]=function(Y){return this.reverse()[T](Y).reverse()}}),vi(["filter","map","takeWhile"],function(T,N){var Y=N+1,ie=Y==S||Y==_;ur.prototype[T]=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(T,N){var Y="take"+(N?"Right":"");ur.prototype[T]=function(){return this[Y](1).value()[0]}}),vi(["initial","tail"],function(T,N){var Y="drop"+(N?"":"Right");ur.prototype[T]=function(){return this.__filtered__?new ur(this):this[Y](1)}}),ur.prototype.compact=function(){return this.filter(_i)},ur.prototype.find=function(T){return this.filter(T).head()},ur.prototype.findLast=function(T){return this.reverse().find(T)},ur.prototype.invokeMap=Qt(function(T,N){return typeof T=="function"?new ur(this):this.map(function(Y){return Ic(Y,T,N)})}),ur.prototype.reject=function(T){return this.filter(Xf(Rt(T)))},ur.prototype.slice=function(T,N){T=Xt(T);var Y=this;return Y.__filtered__&&(T>0||N<0)?new ur(Y):(T<0?Y=Y.takeRight(-T):T&&(Y=Y.drop(T)),N!==e&&(N=Xt(N),Y=N<0?Y.dropRight(-N):Y.take(N-T)),Y)},ur.prototype.takeRightWhile=function(T){return this.reverse().takeWhile(T).reverse()},ur.prototype.toArray=function(){return this.take(R)},ka(ur.prototype,function(T,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 _e=this.__wrapped__,Te=ie?[1]:arguments,ke=_e instanceof ur,Xe=Te[0],Ke=ke||Gt(_e),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){_e=Yt?_e:new ur(this);var Ut=T.apply(_e,Te);return Ut.__actions__.push({func:$f,args:[Ye],thisArg:e}),new Xi(Ut,ft)}return Mt&&Yt?T.apply(this,Te):(Ut=this.thru(Ye),Mt?ie?Ut.value()[0]:Ut.value():Ut)})}),vi(["pop","push","shift","sort","splice","unshift"],function(T){var N=gf[T],Y=/^(?:push|sort|unshift)$/.test(T)?"tap":"thru",ie=/^(?:pop|shift)$/.test(T);me.prototype[T]=function(){var he=arguments;if(ie&&!this.__chain__){var ge=this.value();return N.apply(Gt(ge)?ge:[],he)}return this[Y](function(_e){return N.apply(Gt(_e)?_e:[],he)})}}),ka(ur.prototype,function(T,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[Bf(e,y).name]=[{name:"wrapper",func:e}],ur.prototype.clone=f6,ur.prototype.reverse=h6,ur.prototype.value=d6,me.prototype.at=zE,me.prototype.chain=HE,me.prototype.commit=$E,me.prototype.next=VE,me.prototype.plant=GE,me.prototype.reverse=XE,me.prototype.toJSON=me.prototype.valueOf=me.prototype.value=KE,me.prototype.first=me.prototype.head,Ec&&(me.prototype[Ec]=qE),me},Qs=$4();ro?((ro.exports=Qs)._=Qs,Mi._=Qs):vn._=Qs}).call(st)})(n2,n2.exports);var DX=n2.exports;export{uX as B,hX as C,Jo as E,AX as F,vX as H,mX as I,sX as J,bX as M,lX as P,W_ as T,Lm as W,DX as _,cX as a,fX as b,TX as c,SX as d,wz as e,hl as f,Fx as g,_X as h,wX as i,WL as j,gX as k,Ga as l,oX as p};
|