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.
446 lines
1.8 MiB
446 lines
1.8 MiB
var Tx=Object.defineProperty;var Sx=(t,e,n)=>e in t?Tx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Xn=(t,e,n)=>(Sx(t,typeof e!="symbol"?e+"":e,n),n);const Dx=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}};Dx();const _x=[],D1=[],Ox={margins:[100,120,100,120],watermark:{data:"",size:120},pageNumber:{format:"\u7B2C{pageNo}\u9875/\u5171{pageCount}\u9875"},placeholder:{data:"\u8BF7\u8F93\u5165\u6B63\u6587"},zone:{tipDisabled:!1},maskMargin:[60,0,30,0]};var qe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ex(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Zm(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach(function(n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}),e}function vc(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Qm={exports:{}};(function(t){var e=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 n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,a={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function m(v){return v instanceof c?new c(v.type,m(v.content),v.alias):Array.isArray(v)?v.map(m):v.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(m){return Object.prototype.toString.call(m).slice(8,-1)},objId:function(m){return m.__id||Object.defineProperty(m,"__id",{value:++o}),m.__id},clone:function m(v,x){x=x||{};var _,E;switch(s.util.type(v)){case"Object":if(E=s.util.objId(v),x[E])return x[E];_={},x[E]=_;for(var N in v)v.hasOwnProperty(N)&&(_[N]=m(v[N],x));return _;case"Array":return E=s.util.objId(v),x[E]?x[E]:(_=[],x[E]=_,v.forEach(function(U,O){_[O]=m(U,x)}),_);default:return v}},getLanguage:function(m){for(;m;){var v=i.exec(m.className);if(v)return v[1].toLowerCase();m=m.parentElement}return"none"},setLanguage:function(m,v){m.className=m.className.replace(RegExp(i,"gi"),""),m.classList.add("language-"+v)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(_){var m=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(_.stack)||[])[1];if(m){var v=document.getElementsByTagName("script");for(var x in v)if(v[x].src==m)return v[x]}return null}},isActive:function(m,v,x){for(var _="no-"+v;m;){var E=m.classList;if(E.contains(v))return!0;if(E.contains(_))return!1;m=m.parentElement}return!!x}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(m,v){var x=s.util.clone(s.languages[m]);for(var _ in v)x[_]=v[_];return x},insertBefore:function(m,v,x,_){_=_||s.languages;var E=_[m],N={};for(var U in E)if(E.hasOwnProperty(U)){if(U==v)for(var O in x)x.hasOwnProperty(O)&&(N[O]=x[O]);x.hasOwnProperty(U)||(N[U]=E[U])}var Q=_[m];return _[m]=N,s.languages.DFS(s.languages,function(ne,T){T===Q&&ne!=m&&(this[ne]=N)}),N},DFS:function m(v,x,_,E){E=E||{};var N=s.util.objId;for(var U in v)if(v.hasOwnProperty(U)){x.call(v,U,v[U],_||U);var O=v[U],Q=s.util.type(O);Q==="Object"&&!E[N(O)]?(E[N(O)]=!0,m(O,x,null,E)):Q==="Array"&&!E[N(O)]&&(E[N(O)]=!0,m(O,x,U,E))}}},plugins:{},highlightAll:function(m,v){s.highlightAllUnder(document,m,v)},highlightAllUnder:function(m,v,x){var _={callback:x,container:m,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",_),_.elements=Array.prototype.slice.apply(_.container.querySelectorAll(_.selector)),s.hooks.run("before-all-elements-highlight",_);for(var E=0,N;N=_.elements[E++];)s.highlightElement(N,v===!0,_.callback)},highlightElement:function(m,v,x){var _=s.util.getLanguage(m),E=s.languages[_];s.util.setLanguage(m,_);var N=m.parentElement;N&&N.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(N,_);var U=m.textContent,O={element:m,language:_,grammar:E,code:U};function Q(T){O.highlightedCode=T,s.hooks.run("before-insert",O),O.element.innerHTML=O.highlightedCode,s.hooks.run("after-highlight",O),s.hooks.run("complete",O),x&&x.call(O.element)}if(s.hooks.run("before-sanity-check",O),N=O.element.parentElement,N&&N.nodeName.toLowerCase()==="pre"&&!N.hasAttribute("tabindex")&&N.setAttribute("tabindex","0"),!O.code){s.hooks.run("complete",O),x&&x.call(O.element);return}if(s.hooks.run("before-highlight",O),!O.grammar){Q(s.util.encode(O.code));return}if(v&&r.Worker){var ne=new Worker(s.filename);ne.onmessage=function(T){Q(T.data)},ne.postMessage(JSON.stringify({language:O.language,code:O.code,immediateClose:!0}))}else Q(s.highlight(O.code,O.grammar,O.language))},highlight:function(m,v,x){var _={code:m,grammar:v,language:x};if(s.hooks.run("before-tokenize",_),!_.grammar)throw new Error('The language "'+_.language+'" has no grammar.');return _.tokens=s.tokenize(_.code,_.grammar),s.hooks.run("after-tokenize",_),c.stringify(s.util.encode(_.tokens),_.language)},tokenize:function(m,v){var x=v.rest;if(x){for(var _ in x)v[_]=x[_];delete v.rest}var E=new h;return f(E,E.head,m),l(m,E,v,E.head,0),p(E)},hooks:{all:{},add:function(m,v){var x=s.hooks.all;x[m]=x[m]||[],x[m].push(v)},run:function(m,v){var x=s.hooks.all[m];if(!(!x||!x.length))for(var _=0,E;E=x[_++];)E(v)}},Token:c};r.Prism=s;function c(m,v,x,_){this.type=m,this.content=v,this.alias=x,this.length=(_||"").length|0}c.stringify=function m(v,x){if(typeof v=="string")return v;if(Array.isArray(v)){var _="";return v.forEach(function(Q){_+=m(Q,x)}),_}var E={type:v.type,content:m(v.content,x),tag:"span",classes:["token",v.type],attributes:{},language:x},N=v.alias;N&&(Array.isArray(N)?Array.prototype.push.apply(E.classes,N):E.classes.push(N)),s.hooks.run("wrap",E);var U="";for(var O in E.attributes)U+=" "+O+'="'+(E.attributes[O]||"").replace(/"/g,""")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+U+">"+E.content+"</"+E.tag+">"};function u(m,v,x,_){m.lastIndex=v;var E=m.exec(x);if(E&&_&&E[1]){var N=E[1].length;E.index+=N,E[0]=E[0].slice(N)}return E}function l(m,v,x,_,E,N){for(var U in x)if(!(!x.hasOwnProperty(U)||!x[U])){var O=x[U];O=Array.isArray(O)?O:[O];for(var Q=0;Q<O.length;++Q){if(N&&N.cause==U+","+Q)return;var ne=O[Q],T=ne.inside,I=!!ne.lookbehind,b=!!ne.greedy,M=ne.alias;if(b&&!ne.pattern.global){var C=ne.pattern.toString().match(/[imsuy]*$/)[0];ne.pattern=RegExp(ne.pattern.source,C+"g")}for(var F=ne.pattern||ne,A=_.next,B=E;A!==v.tail&&!(N&&B>=N.reach);B+=A.value.length,A=A.next){var $=A.value;if(v.length>m.length)return;if(!($ instanceof c)){var V=1,L;if(b){if(L=u(F,B,m,I),!L||L.index>=m.length)break;var ae=L.index,z=L.index+L[0].length,q=B;for(q+=A.value.length;ae>=q;)A=A.next,q+=A.value.length;if(q-=A.value.length,B=q,A.value instanceof c)continue;for(var se=A;se!==v.tail&&(q<z||typeof se.value=="string");se=se.next)V++,q+=se.value.length;V--,$=m.slice(B,q),L.index-=B}else if(L=u(F,0,$,I),!L)continue;var ae=L.index,Y=L[0],X=$.slice(0,ae),k=$.slice(ae+Y.length),G=B+$.length;N&&G>N.reach&&(N.reach=G);var H=A.prev;X&&(H=f(v,H,X),B+=X.length),d(v,H,V);var te=new c(U,T?s.tokenize(Y,T):Y,M,Y);if(A=f(v,H,te),k&&f(v,A,k),V>1){var pe={cause:U+","+Q,reach:G};l(m,v,x,A.prev,B,pe),N&&pe.reach>N.reach&&(N.reach=pe.reach)}}}}}}function h(){var m={value:null,prev:null,next:null},v={value:null,prev:m,next:null};m.next=v,this.head=m,this.tail=v,this.length=0}function f(m,v,x){var _=v.next,E={value:x,prev:v,next:_};return v.next=E,_.prev=E,m.length++,E}function d(m,v,x){for(var _=v.next,E=0;E<x&&_!==m.tail;E++)_=_.next;v.next=_,_.prev=v,m.length-=E}function p(m){for(var v=[],x=m.head.next;x!==m.tail;)v.push(x.value),x=x.next;return v}if(!r.document)return r.addEventListener&&(s.disableWorkerMessageHandler||r.addEventListener("message",function(m){var v=JSON.parse(m.data),x=v.language,_=v.code,E=v.immediateClose;r.postMessage(s.highlight(_,s.languages[x],x)),E&&r.close()},!1)),s;var g=s.util.currentScript();g&&(s.filename=g.src,g.hasAttribute("data-manual")&&(s.manual=!0));function y(){s.manual||s.highlightAll()}if(!s.manual){var R=document.readyState;R==="loading"||R==="interactive"&&g&&g.defer?document.addEventListener("DOMContentLoaded",y):window.requestAnimationFrame?window.requestAnimationFrame(y):window.setTimeout(y,16)}return s}(e);t.exports&&(t.exports=n),typeof qe!="undefined"&&(qe.Prism=n),n.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"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var a={};a["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};s["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:s},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\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:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),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:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.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:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.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}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.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:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.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:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.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:n.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"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.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")),n.languages.js=n.languages.javascript,function(){if(typeof n=="undefined"||typeof document=="undefined")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading\u2026",i=function(g,y){return"\u2716 Error "+g+" while fetching file: "+y},o="\u2716 Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",c="loading",u="loaded",l="failed",h="pre[data-src]:not(["+s+'="'+u+'"]):not(['+s+'="'+c+'"])';function f(g,y,R){var m=new XMLHttpRequest;m.open("GET",g,!0),m.onreadystatechange=function(){m.readyState==4&&(m.status<400&&m.responseText?y(m.responseText):m.status>=400?R(i(m.status,m.statusText)):R(o))},m.send(null)}function d(g){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g||"");if(y){var R=Number(y[1]),m=y[2],v=y[3];return m?v?[R,Number(v)]:[R,void 0]:[R,R]}}n.hooks.add("before-highlightall",function(g){g.selector+=", "+h}),n.hooks.add("before-sanity-check",function(g){var y=g.element;if(y.matches(h)){g.code="",y.setAttribute(s,c);var R=y.appendChild(document.createElement("CODE"));R.textContent=r;var m=y.getAttribute("data-src"),v=g.language;if(v==="none"){var x=(/\.(\w+)$/.exec(m)||[,"none"])[1];v=a[x]||x}n.util.setLanguage(R,v),n.util.setLanguage(y,v);var _=n.plugins.autoloader;_&&_.loadLanguages(v),f(m,function(E){y.setAttribute(s,u);var N=d(y.getAttribute("data-range"));if(N){var U=E.split(/\r\n?|\n/g),O=N[0],Q=N[1]==null?U.length:N[1];O<0&&(O+=U.length),O=Math.max(0,Math.min(O-1,U.length)),Q<0&&(Q+=U.length),Q=Math.max(0,Math.min(Q,U.length)),E=U.slice(O,Q).join(`
|
|
`),y.hasAttribute("data-start")||y.setAttribute("data-start",String(O+1))}R.textContent=E,n.highlightElement(R)},function(E){y.setAttribute(s,l),R.textContent=E})}}),n.plugins.fileHighlight={highlight:function(y){for(var R=(y||document).querySelectorAll(h),m=0,v;v=R[m++];)n.highlightElement(v)}};var p=!1;n.fileHighlight=function(){p||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),p=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Qm);var _1=Qm.exports;const Ix="0.9.81";var ia=(t=>(t.HALF="half",t.ONE_THIRD="one-third",t.QUARTER="quarter",t))(ia||{}),uu=(t=>(t.ARABIC="arabic",t.CHINESE="chinese",t))(uu||{}),ht=(t=>(t.INLINE="inline",t.BLOCK="block",t.FLOAT_TOP="float-top",t.FLOAT_BOTTOM="float-bottom",t))(ht||{});const We="\u200B",O1=`
|
|
`,Nx=" ",E1=" ",Fx=["\xB7","\u3001",":","\uFF1A",",","\uFF0C",".","\u3002",";","\uFF1B","?","\uFF1F","!","\uFF01"],Km={[ia.HALF]:1/2,[ia.ONE_THIRD]:1/3,[ia.QUARTER]:1/4},Px={ENGLISH:"A-Za-z",SPANISH:"A-Za-z\xC1\xC9\xCD\xD3\xDA\xE1\xE9\xED\xF3\xFA\xD1\xF1\xDC\xFC",FRENCH:"A-Za-z\xC0\xC2\xC7\xE0\xE2\xE7\xC9\xE9\xC8\xE8\xCA\xEA\xCB\xEB\xCE\xEE\xCF\xEF\xD4\xF4\xD9\xF9\xDB\xFB\u0178\xFF",GERMAN:"A-Za-z\xC4\xE4\xD6\xF6\xDC\xFC\xDF",RUSSIAN:"\u0410-\u042F\u0430-\u044F\u0401\u0451",PORTUGUESE:"A-Za-z\xC1\xC9\xCD\xD3\xDA\xE1\xE9\xED\xF3\xFA\xC3\xD5\xE3\xF5\xC7\xE7",ITALIAN:"A-Za-z\xC0\xE0\xC8\xE8\xC9\xE9\xCC\xEC\xCD\xED\xCE\xEE\xD3\xF3\xD2\xF2\xD9\xF9",DUTCH:"A-Za-z\xC0\xE0\xC1\xE1\xC2\xE2\xC4\xE4\xC8\xE8\xC9\xE9\xCA\xEA\xCB\xEB\xCC\xEC\xCD\xED\xCE\xEE\xCF\xEF\xD3\xF3\xD2\xF2\xD4\xF4\xD6\xF6\xD9\xF9\xDB\xFB\xDC\xFC",SWEDISH:"A-Za-z\xC5\xE5\xC4\xE4\xD6\xF6",GREEK:"\u0391\u03B1\u0392\u03B2\u0393\u03B3\u0394\u03B4\u0395\u03B5\u0396\u03B6\u0397\u03B7\u0398\u03B8\u0399\u03B9\u039A\u03BA\u039B\u03BB\u039C\u03BC\u039D\u03BD\u039E\u03BE\u039F\u03BF\u03A0\u03C0\u03A1\u03C1\u03A3\u03C3\u03C2\u03A4\u03C4\u03A5\u03C5\u03A6\u03C6\u03A7\u03C7\u03A8\u03C8\u03A9\u03C9"},Lx="\u65E5";var st=(t=>(t.LEFT="left",t.CENTER="center",t.RIGHT="right",t.ALIGNMENT="alignment",t.JUSTIFY="justify",t))(st||{});const Al=/[0-9.]/,Mx=/[\uD800-\uDBFF][\uDC00-\uDFFF]/,Cx=/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,Ax=new RegExp(`${Cx.source}|${Mx.source}`,"g"),Ux=/[、,。?!;:……「」“”‘’*()【】〔〕〖〗〘〙〚〛《》———﹝﹞–—\\/·.,!?;:`~<>()[\]{}'"|]/,Hm=new RegExp(`^[${We}
|
|
]`);function Gm(t,e){let n;return function(...r){n&&window.clearTimeout(n),n=window.setTimeout(()=>{t.apply(this,r)},e)}}function Wx(t,e){let n=0,r;return function(...i){const o=Date.now();o-n>=e?(window.clearTimeout(r),t.apply(this,i),n=o):(window.clearTimeout(r),r=window.setTimeout(()=>{t.apply(this,i),n=o},e))}}function ud(t,e){if(!t||typeof t!="object")return t;let n={};return Array.isArray(t)?n=t.map(r=>ud(r,e)):Object.keys(t).forEach(r=>{if(!e.includes(r))return n[r]=ud(t[r],e)}),n}function Pt(t){if(!t||typeof t!="object")return t;let e={};return Array.isArray(t)?e=t.map(n=>Pt(n)):Object.keys(t).forEach(n=>e[n]=Pt(t[n])),e}function Ul(t){return t&&t.nodeType===1&&t.tagName.toLowerCase()==="body"}function lu(t,e,n){if(t&&!Ul(t))for(t=n?t:t.parentNode;t;){if(!e||e(t)||Ul(t))return e&&!e(t)&&Ul(t)?null:t;t=t.parentNode}return null}function bt(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}function Tr(t){const e=[];if(Intl.Segmenter){const r=new Intl.Segmenter().segment(t);for(const{segment:i}of r)e.push(i)}else{const n=new Map;for(const i of t.matchAll(Ax))n.set(i.index,i[0]);let r=0;for(;r<t.length;){const i=n.get(r);i?(e.push(i),r+=i.length):(e.push(t[r]),r++)}}return e}function Jm(t,e){const n=document.createElement("a");n.href=t,n.download=e,n.click()}function Xx(t,e){Vx(3,t,e)}function Vx(t,e,n){let r=0,i=0;const o=function(a){r=new Date().getTime()-i<300?r+1:0,i=new Date().getTime(),r>=t-1&&(n(a),r=0)};e.addEventListener("click",o)}function hu(t){return Object.prototype.toString.call(t)==="[object Object]"}function I1(t){return Array.isArray(t)}function zm(t,e){if(hu(t)&&hu(e)){const n=e;for(const[r,i]of Object.entries(t))n[r]?n[r]=zm(i,n[r]):n[r]=i}else I1(t)&&I1(e)&&e.push(...t);return e}function du(t){setTimeout(()=>{t()},0)}function N1(t){const e=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],n=["","\u5341","\u767E","\u5343","\u4E07","\u5341","\u767E","\u5343","\u4EBF","\u5341","\u767E","\u5343","\u4E07","\u5341","\u767E","\u5343","\u4EBF"];if(!t||isNaN(t))return"\u96F6";const r=t.toString().split("");let i="";for(let o=0;o<r.length;o++){const a=r.length-1-o;i=`${n[o]}${i}`,i=`${e[Number(r[a])]}${i}`}return i=i.replace(/零(千|百|十)/g,"\u96F6").replace(/十零/g,"\u5341"),i=i.replace(/零+/g,"\u96F6"),i=i.replace(/零亿/g,"\u4EBF").replace(/零万/g,"\u4E07"),i=i.replace(/亿万/g,"\u4EBF"),i=i.replace(/零+$/,""),i=i.replace(/^一十/g,"\u5341"),i}function jc(t,e,n){for(let r=0;r<t.length;r++){const i=t[r],o=e[i];o!==void 0?n[i]=o:delete n[i]}}function zr(t,e){const n={};for(const r in t)e.includes(r)&&(n[r]=t[r]);return n}function Ts(t,e){const n={};for(const r in t)e.includes(r)||(n[r]=t[r]);return n}function Yx(t){const n=new TextEncoder().encode(t),r=Array.from(n,o=>String.fromCharCode(o));return window.btoa(r.join(""))}function Bx(t){let e=t.parentElement;for(;e;){const r=window.getComputedStyle(e).getPropertyValue("overflow-y");if(e.scrollHeight>e.clientHeight&&(r==="auto"||r==="scroll"))return e;e=e.parentElement}return document.documentElement}function kx(t,e){return t.length!==e.length?!1:!t.some(n=>!e.includes(n))}function Zx(t,e){if(!hu(t)||!hu(e))return!1;const n=Object.keys(t),r=Object.keys(e);return n.length!==r.length?!1:!n.some(i=>e[i]!==t[i])}const Qx=12,Kx={width:1,color:"#000000",dragWidth:2,dragColor:"#0000FF"},ei="editor-component",Ze="ce",tf=`${Ze}-clipboard`;var wn=(t=>(t.UP="top",t.DOWN="down",t.LEFT="left",t.RIGHT="right",t))(wn||{}),fe=(t=>(t.TEXT="text",t.IMAGE="image",t.TABLE="table",t.HYPERLINK="hyperlink",t.SUPERSCRIPT="superscript",t.SUBSCRIPT="subscript",t.SEPARATOR="separator",t.PAGE_BREAK="pageBreak",t.CONTROL="control",t.CHECKBOX="checkbox",t.RADIO="radio",t.LATEX="latex",t.TAB="tab",t.DATE="date",t.BLOCK="block",t.TITLE="title",t.LIST="list",t))(fe||{});const Ro=["bold","color","highlight","font","size","italic","underline","strikeout","textDecoration"],Ms=["rowFlex","rowMargin"],Hx=["type","font","size","bold","color","italic","highlight","underline","strikeout","rowFlex","url","hyperlinkId","dateId","dateFormat","groupIds","rowMargin","textDecoration"],Gx=["type","font","size","bold","color","italic","highlight","underline","strikeout","rowFlex","rowMargin","dashArray","trList","borderType","width","height","url","colgroup","valueList","control","checkbox","radio","dateFormat","block","level","title","listType","listStyle","listWrap","groupIds","conceptId","imgDisplay","imgFloatPosition","textDecoration","extension","externalId"],Jx=["verticalAlign","backgroundColor","borderTypes","slashTypes"],nf=["tdId","trId","tableId"],zx=["level","titleId","title"],$m=["listId","listType","listStyle"],F1=["control","controlId","controlComponent"],ha=["font","size","bold","highlight","italic","strikeout"],jm=[...nf,...zx,...$m,...Ms],Mr=[fe.TEXT,fe.HYPERLINK,fe.SUBSCRIPT,fe.SUPERSCRIPT,fe.CONTROL,fe.DATE],$x=[fe.IMAGE,fe.LATEX],jx=[fe.BLOCK,fe.PAGE_BREAK,fe.SEPARATOR,fe.TABLE],qx=["HR","TABLE","UL","OL"],ew=[fe.TITLE,fe.LIST];class qm{constructor(e){this.draw=e,this.options=e.getOptions(),this.container=e.getContainer(),this.imageCache=new Map,this.floatImageContainer=null,this.floatImage=null}createFloatImage(e){const{scale:n}=this.options;let r=this.floatImageContainer,i=this.floatImage;r||(r=document.createElement("div"),r.classList.add(`${Ze}-float-image`),this.container.append(r),this.floatImageContainer=r),i||(i=document.createElement("img"),r.append(i),this.floatImage=i),r.style.display="none",i.style.width=`${e.width*n}px`,i.style.height=`${e.height*n}px`;const o=this.draw.getHeight(),a=this.draw.getPageGap(),s=this.draw.getPageNo()*(o+a),c=e.imgFloatPosition;r.style.left=`${c.x}px`,r.style.top=`${s+c.y}px`,i.src=e.value}dragFloatImage(e,n){if(!this.floatImageContainer)return;this.floatImageContainer.style.display="block";const r=parseFloat(this.floatImageContainer.style.left)+e,i=parseFloat(this.floatImageContainer.style.top)+n;this.floatImageContainer.style.left=`${r}px`,this.floatImageContainer.style.top=`${i}px`}destroyFloatImage(){this.floatImageContainer&&(this.floatImageContainer.style.display="none")}addImageObserver(e){this.draw.getImageObserver().add(e)}getFallbackImage(e,n){const i=(e-Math.ceil(e/8)*8)/2,o=(n-Math.ceil(n/8)*8)/2,a=`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${n}" viewBox="0 0 ${e} ${n}">
|
|
<rect width="${e}" height="${n}" fill="url(#mosaic)" />
|
|
<defs>
|
|
<pattern id="mosaic" x="${i}" y="${o}" width="${8*2}" height="${8*2}" patternUnits="userSpaceOnUse">
|
|
<rect width="${8}" height="${8}" fill="#cccccc" />
|
|
<rect width="${8}" height="${8}" fill="#cccccc" transform="translate(${8}, ${8})" />
|
|
</pattern>
|
|
</defs>
|
|
</svg>`,s=new Image;return s.src=`data:image/svg+xml;base64,${Yx(a)}`,s}render(e,n,r,i){const{scale:o}=this.options,a=n.width*o,s=n.height*o;if(this.imageCache.has(n.id)){const c=this.imageCache.get(n.id);e.drawImage(c,r,i,a,s)}else{const c=new Promise((u,l)=>{const h=new Image;h.setAttribute("crossOrigin","Anonymous"),h.src=n.value,h.onload=()=>{this.imageCache.set(n.id,h),u(n),n.imgDisplay===ht.FLOAT_BOTTOM?this.draw.render({isCompute:!1,isSetCursor:!1,isSubmitHistory:!1}):e.drawImage(h,r,i,a,s)},h.onerror=f=>{const d=this.getFallbackImage(a,s);d.onload=()=>{e.drawImage(d,r,i,a,s),this.imageCache.set(n.id,d)},l(f)}});this.addImageObserver(c)}}}const bc="R".charCodeAt(0);function Jo(t){return ld[t]==null&&tw(t),ld[t]}function tw(t){const e=nw[t];if(e==null)return;const n=e.substring(3,5),r=1*n.charCodeAt(0)-bc,i=1*n.charCodeAt(1)-bc,o=e.substring(5),a=[[]];let s=1/0,c=-1/0,u=1/0,l=-1/0,h=0;for(;h<o.length;){const f=o.substring(h,h+2);if(f==" R")a.push([]);else{const d=f.charCodeAt(0)-bc-r,p=f.charCodeAt(1)-bc;s=Math.min(p,s),c=Math.max(p,c),u=Math.min(d,u),l=Math.max(d,l),a[a.length-1].push([d,p])}h+=2}ld[t]={w:i-r,xmin:u,xmax:l,ymin:s,ymax:c,polylines:a}}const ld={},nw={1:" 9MWRMNV RRMVV RPSTS",2:" 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV",3:" 11MXVNTMRMPNOPOSPURVTVVU",4:" 12MWOMOV ROMRMTNUPUSTURVOV",5:" 12MWOMOV ROMUM ROQSQ ROVUV",6:" 9MVOMOV ROMUM ROQSQ",7:" 15MXVNTMRMPNOPOSPURVTVVUVR RSRVR",8:" 9MWOMOV RUMUV ROQUQ",9:" 3PTRMRV",10:" 7NUSMSTRVPVOTOS",11:" 9MWOMOV RUMOS RQQUV",12:" 6MVOMOV ROVUV",13:" 12LXNMNV RNMRV RVMRV RVMVV",14:" 9MWOMOV ROMUV RUMUV",15:" 14MXRMPNOPOSPURVSVUUVSVPUNSMRM",16:" 10MWOMOV ROMSMUNUQSROR",17:" 17MXRMPNOPOSPURVSVUUVSVPUNSMRM RSTVW",18:" 13MWOMOV ROMSMUNUQSROR RRRUV",19:" 13MWUNSMQMONOOPPTRUSUUSVQVOU",20:" 6MWRMRV RNMVM",21:" 9MXOMOSPURVSVUUVSVM",22:" 6MWNMRV RVMRV",23:" 12LXNMPV RRMPV RRMTV RVMTV",24:" 6MWOMUV RUMOV",25:" 7MWNMRQRV RVMRQ",26:" 9MWUMOV ROMUM ROVUV",27:" 9MWRMNV RRMVV RPSTS",28:" 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV",29:" 6MVOMOV ROMUM",30:" 9MWRMNV RRMVV RNVVV",31:" 12MWOMOV ROMUM ROQSQ ROVUV",32:" 9MWUMOV ROMUM ROVUV",33:" 9MWOMOV RUMUV ROQUQ",34:" 20MXRMPNOPOSPURVSVUUVSVPUNSMRM RQQTR RTQQR",35:" 3PTRMRV",36:" 9MWOMOV RUMOS RQQUV",37:" 6MWRMNV RRMVV",38:" 12LXNMNV RNMRV RVMRV RVMVV",39:" 9MWOMOV ROMUV RUMUV",40:" 12MWOMUM RPQTR RTQPR ROVUV",41:" 14MXRMPNOPOSPURVSVUUVSVPUNSMRM",42:" 9MWOMOV RUMUV ROMUM",43:" 10MWOMOV ROMSMUNUQSROR",44:" 10MWOMRQOV ROMUM ROVUV",45:" 6MWRMRV RNMVM",46:" 15MWNONNOMPMQNRPRV RVOVNUMTMSNRP",47:" 13LXRMRV RPONPNSPTTTVSVPTOPO",48:" 6MWOMUV RUMOV",49:" 12LXRMRV RNOOPOSQTSTUSUPVO",50:" 13MXOVQVOROPPNRMSMUNVPVRTVVV",200:" 12MWRMPNOPOSPURVTUUSUPTNRM",201:" 4MWPORMRV",202:" 9MWONQMSMUNUPTROVUV",203:" 15MWONQMSMUNUPSQ RRQSQURUUSVQVOU",204:" 7MWSMSV RSMNSVS",205:" 14MWPMOQQPRPTQUSTURVQVOU RPMTM",206:" 14MWTMRMPNOPOSPURVTUUSTQRPPQOS",207:" 6MWUMQV ROMUM",208:" 19MWQMONOPQQSQUPUNSMQM RQQOROUQVSVUUURSQ",209:" 14MWUPTRRSPROPPNRMTNUPUSTURVPV",210:" 6PURURVSVSURU",211:" 7PUSVRVRUSUSWRY",212:" 12PURPRQSQSPRP RRURVSVSURU",213:" 13PURPRQSQSPRP RSVRVRUSUSWRY",214:" 12PURMRR RSMSR RRURVSVSURU",215:" 17NWPNRMSMUNUPRQRRSRSQUP RRURVSVSURU",216:" 3PTRMRQ",217:" 6NVPMPQ RTMTQ",218:" 10NVQMPNPPQQSQTPTNSMQM",219:" 16MWUNSMQMONOPQQTRUSUUSVQVOU RRLRW",220:" 3MWVLNW",221:" 7OVTLRNQPQSRUTW",222:" 7NUPLRNSPSSRUPW",223:" 3PTRLRW",224:" 3LXNRVR",225:" 6LXRNRV RNRVR",226:" 6LXNPVP RNTVT",227:" 6MWOOUU RUOOU",228:" 9MWRORU ROPUT RUPOT",229:" 6PURQRRSRSQRQ",230:" 7PUSMRORQSQSPRP",231:" 7PUSNRNRMSMSORQ",232:" 7LXSOVRSU RNRVR",233:" 12MXRLPW RULSW ROPVP ROSVS",234:" 21LXVRURTSSURVOVNUNSORRQSPSNRMPMONOPQSSUUVVV",235:" 20LXNNOQOSNV RVNUQUSVV RNNQOSOVN RNVQUSUVV",501:" 9I[RFJ[ RRFZ[ RMTWT",502:" 24G\\KFK[ RKFTFWGXHYJYLXNWOTP RKPTPWQXRYTYWXYWZT[K[",503:" 19H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZV",504:" 16G\\KFK[ RKFRFUGWIXKYNYSXVWXUZR[K[",505:" 12H[LFL[ RLFYF RLPTP RL[Y[",506:" 9HZLFL[ RLFYF RLPTP",507:" 23H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZVZS RUSZS",508:" 9G]KFK[ RYFY[ RKPYP",509:" 3NVRFR[",510:" 11JZVFVVUYTZR[P[NZMYLVLT",511:" 9G\\KFK[ RYFKT RPOY[",512:" 6HYLFL[ RL[X[",513:" 12F^JFJ[ RJFR[ RZFR[ RZFZ[",514:" 9G]KFK[ RKFY[ RYFY[",515:" 22G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF",516:" 14G\\KFK[ RKFTFWGXHYJYMXOWPTQKQ",517:" 25G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF RSWY]",518:" 17G\\KFK[ RKFTFWGXHYJYLXNWOTPKP RRPY[",519:" 21H\\YIWGTFPFMGKIKKLMMNOOUQWRXSYUYXWZT[P[MZKX",520:" 6JZRFR[ RKFYF",521:" 11G]KFKULXNZQ[S[VZXXYUYF",522:" 6I[JFR[ RZFR[",523:" 12F^HFM[ RRFM[ RRFW[ R\\FW[",524:" 6H\\KFY[ RYFK[",525:" 7I[JFRPR[ RZFRP",526:" 9H\\YFK[ RKFYF RK[Y[",527:" 9I[RFJ[ RRFZ[ RMTWT",528:" 24G\\KFK[ RKFTFWGXHYJYLXNWOTP RKPTPWQXRYTYWXYWZT[K[",529:" 6HYLFL[ RLFXF",530:" 9I[RFJ[ RRFZ[ RJ[Z[",531:" 12H[LFL[ RLFYF RLPTP RL[Y[",532:" 9H\\YFK[ RKFYF RK[Y[",533:" 9G]KFK[ RYFY[ RKPYP",534:" 25G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF ROPUP",535:" 3NVRFR[",536:" 9G\\KFK[ RYFKT RPOY[",537:" 6I[RFJ[ RRFZ[",538:" 12F^JFJ[ RJFR[ RZFR[ RZFZ[",539:" 9G]KFK[ RKFY[ RYFY[",540:" 9I[KFYF ROPUP RK[Y[",541:" 22G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF",542:" 9G]KFK[ RYFY[ RKFYF",543:" 14G\\KFK[ RKFTFWGXHYJYMXOWPTQKQ",544:" 10I[KFRPK[ RKFYF RK[Y[",545:" 6JZRFR[ RKFYF",546:" 19I[KKKILGMFOFPGQIRMR[ RYKYIXGWFUFTGSIRM",547:" 21H\\RFR[ RPKMLLMKOKRLTMUPVTVWUXTYRYOXMWLTKPK",548:" 6H\\KFY[ RK[YF",549:" 18G]RFR[ RILJLKMLQMSNTQUSUVTWSXQYMZL[L",550:" 17H\\K[O[LTKPKLLINGQFSFVGXIYLYPXTU[Y[",551:" 20G[G[IZLWOSSLVFV[UXSUQSNQLQKRKTLVNXQZT[Y[",552:" 41F]SHTITLSPRSQUOXMZK[J[IZIWJRKOLMNJPHRGUFXFZG[I[KZMYNWOTP RSPTPWQXRYTYWXYWZU[R[PZOX",553:" 24H\\TLTMUNWNYMZKZIYGWFTFQGOIMLLNKRKVLYMZO[Q[TZVXWV",554:" 35G^TFRGQIPMOSNVMXKZI[G[FZFXGWIWKXMZP[S[VZXXZT[O[KZHYGWFTFRHRJSMUPWRZT\\U",555:" 28H\\VJVKWLYLZKZIYGVFRFOGNINLONPOSPPPMQLRKTKWLYMZP[S[VZXXYV",556:" 28H\\RLPLNKMINGQFTFXG[G]F RXGVNTTRXPZN[L[JZIXIVJULUNV RQPZP",557:" 29G^G[IZMVPQQNRJRGQFPFOGNINLONQOUOXNYMZKZQYVXXVZS[O[LZJXIVIT",558:" 38F^MMKLJJJIKGMFNFPGQIQKPONULYJ[H[GZGX RMRVOXN[L]J^H^G]F\\FZHXLVRUWUZV[W[YZZY\\V",559:" 25IZWVUTSQROQLQIRGSFUFVGWIWLVQTVSXQZO[M[KZJXJVKUMUOV",560:" 25JYT^R[PVOPOJPGRFTFUGVJVMURR[PaOdNfLgKfKdLaN^P\\SZWX",561:" 39F^MMKLJJJIKGMFNFPGQIQKPONULYJ[H[GZGX R^I^G]F\\FZGXIVLTNROPO RROSQSXTZU[V[XZYY[V",562:" 29I\\MRORSQVOXMYKYHXFVFUGTISNRSQVPXNZL[J[IZIXJWLWNXQZT[V[YZ[X",563:" 45@aEMCLBJBICGEFFFHGIIIKHPGTE[ RGTJLLHMGOFPFRGSISKRPQTO[ RQTTLVHWGYFZF\\G]I]K\\PZWZZ[[\\[^Z_YaV",564:" 32E]JMHLGJGIHGJFKFMGNINKMPLTJ[ RLTOLQHRGTFVFXGYIYKXPVWVZW[X[ZZ[Y]V",565:" 29H]TFQGOIMLLNKRKVLYMZO[Q[TZVXXUYSZOZKYHXGVFTFRHRKSNUQWSZU\\V",566:" 31F_SHTITLSPRSQUOXMZK[J[IZIWJRKOLMNJPHRGUFZF\\G]H^J^M]O\\PZQWQUPTO",567:" 32H^ULTNSOQPOPNNNLOIQGTFWFYGZIZMYPWSSWPYNZK[I[HZHXIWKWMXPZS[V[YZ[X",568:" 38F_SHTITLSPRSQUOXMZK[J[IZIWJRKOLMNJPHRGUFYF[G\\H]J]M\\O[PYQVQSPTQUSUXVZX[ZZ[Y]V",569:" 28H\\H[JZLXOTQQSMTJTGSFRFQGPIPKQMSOVQXSYUYWXYWZT[P[MZKXJVJT",570:" 25H[RLPLNKMINGQFTFXG[G]F RXGVNTTRXPZN[L[JZIXIVJULUNV",571:" 33E]JMHLGJGIHGJFKFMGNINKMOLRKVKXLZN[P[RZSYUUXMZF RXMWQVWVZW[X[ZZ[Y]V",572:" 32F]KMILHJHIIGKFLFNGOIOKNOMRLVLYM[O[QZTWVTXPYMZIZGYFXFWGVIVKWNYP[Q",573:" 25C_HMFLEJEIFGHFIFKGLILLK[ RUFK[ RUFS[ RaF_G\\JYNVTS[",574:" 36F^NLLLKKKILGNFPFRGSISLQUQXRZT[V[XZYXYVXUVU R]I]G\\FZFXGVITLPUNXLZJ[H[GZGX",575:" 38F]KMILHJHIIGKFLFNGOIOKNOMRLVLXMZN[P[RZTXVUWSYM R[FYMVWT]RbPfNgMfMdNaP^S[VY[V",576:" 40H]ULTNSOQPOPNNNLOIQGTFWFYGZIZMYPWTTWPZN[K[JZJXKWNWPXQYR[R^QaPcNfLgKfKdLaN^Q[TYZV",583:" 9I[JFR[ RZFR[ RJFZF",601:" 18I\\XMX[ RXPVNTMQMONMPLSLUMXOZQ[T[VZXX",602:" 18H[LFL[ RLPNNPMSMUNWPXSXUWXUZS[P[NZLX",603:" 15I[XPVNTMQMONMPLSLUMXOZQ[T[VZXX",604:" 18I\\XFX[ RXPVNTMQMONMPLSLUMXOZQ[T[VZXX",605:" 18I[LSXSXQWOVNTMQMONMPLSLUMXOZQ[T[VZXX",606:" 9MYWFUFSGRJR[ ROMVM",607:" 23I\\XMX]W`VaTbQbOa RXPVNTMQMONMPLSLUMXOZQ[T[VZXX",608:" 11I\\MFM[ RMQPNRMUMWNXQX[",609:" 9NVQFRGSFREQF RRMR[",610:" 12MWRFSGTFSERF RSMS^RaPbNb",611:" 9IZMFM[ RWMMW RQSX[",612:" 3NVRFR[",613:" 19CaGMG[ RGQJNLMOMQNRQR[ RRQUNWMZM\\N]Q][",614:" 11I\\MMM[ RMQPNRMUMWNXQX[",615:" 18I\\QMONMPLSLUMXOZQ[T[VZXXYUYSXPVNTMQM",616:" 18H[LMLb RLPNNPMSMUNWPXSXUWXUZS[P[NZLX",617:" 18I\\XMXb RXPVNTMQMONMPLSLUMXOZQ[T[VZXX",618:" 9KXOMO[ ROSPPRNTMWM",619:" 18J[XPWNTMQMNNMPNRPSUTWUXWXXWZT[Q[NZMX",620:" 9MYRFRWSZU[W[ ROMVM",621:" 11I\\MMMWNZP[S[UZXW RXMX[",622:" 6JZLMR[ RXMR[",623:" 12G]JMN[ RRMN[ RRMV[ RZMV[",624:" 6J[MMX[ RXMM[",625:" 10JZLMR[ RXMR[P_NaLbKb",626:" 9J[XMM[ RMMXM RM[X[",627:" 24H]QMONMPLRKUKXLZN[P[RZUWWTYPZM RQMSMTNUPWXXZY[Z[",628:" 31I\\UFSGQIOMNPMTLZKb RUFWFYHYKXMWNUORO RROTPVRWTWWVYUZS[Q[OZNYMV",629:" 17I\\JPLNNMOMQNROSRSVR[ RZMYPXRR[P_Ob",630:" 24I[TMQMONMPLSLVMYNZP[R[TZVXWUWRVOTMRKQIQGRFTFVGXI",631:" 19JZWOVNTMQMONOPPRSS RSSOTMVMXNZP[S[UZWX",632:" 23JYTFRGQHQIRJUKXK RXKTMQONRMUMWNYP[S]T_TaSbQbP`",633:" 19H\\IQJOLMNMONOPNTL[ RNTPPRNTMVMXOXRWWTb",634:" 27G\\HQIOKMMMNNNPMUMXNZO[Q[SZUWVUWRXMXJWGUFSFRHRJSMUPWRZT",635:" 9LWRMPTOXOZP[R[TYUW",636:" 19I[OMK[ RYNXMWMUNQROSNS RNSPTQUSZT[U[VZ",637:" 9JZKFMFOGPHX[ RRML[",638:" 21H]OMIb RNQMVMYO[Q[SZUXWT RYMWTVXVZW[Y[[Y\\W",639:" 14I[LMOMNSMXL[ RYMXPWRUURXOZL[",640:" 29JZTFRGQHQIRJUKXK RUKRLPMOOOQQSTTVT RTTPUNVMXMZO\\S^T_TaRbPb",641:" 18J[RMPNNPMSMVNYOZQ[S[UZWXXUXRWOVNTMRM",642:" 13G]PML[ RUMVSWXX[ RIPKNNM[M",643:" 19I[MSMVNYOZQ[S[UZWXXUXRWOVNTMRMPNNPMSIb",644:" 18I][MQMONMPLSLVMYNZP[R[TZVXWUWRVOUNSM",645:" 8H\\SMP[ RJPLNOMZM",646:" 16H\\IQJOLMNMONOPMVMYO[Q[TZVXXTYPYM",647:" 21G]ONMOKQJTJWKYLZN[Q[TZWXYUZRZOXMVMTORSPXMb",648:" 14I[KMMMOOU`WbYb RZMYOWRM]K`Jb",649:" 20F]VFNb RGQHOJMLMMNMPLULXMZO[Q[TZVXXUZP[M",650:" 23F]NMLNJQITIWJZK[M[OZQW RRSQWRZS[U[WZYWZTZQYNXM",651:" 22L\\UUTSRRPRNSMTLVLXMZO[Q[SZTXVRUWUZV[W[YZZY\\V",652:" 23M[MVOSRNSLTITGSFQGPIOMNTNZO[P[RZTXUUURVVWWYW[V",653:" 14MXTTTSSRQROSNTMVMXNZP[S[VYXV",654:" 24L\\UUTSRRPRNSMTLVLXMZO[Q[SZTXZF RVRUWUZV[W[YZZY\\V",655:" 17NXOYQXRWSUSSRRQROSNUNXOZQ[S[UZVYXV",656:" 24OWOVSQUNVLWIWGVFTGSIQQNZKaJdJfKgMfNcOZP[R[TZUYWV",657:" 28L[UUTSRRPRNSMTLVLXMZO[Q[SZTY RVRTYPdOfMgLfLdMaP^S\\U[XY[V",658:" 29M\\MVOSRNSLTITGSFQGPIOMNSM[ RM[NXOVQSSRURVSVUUXUZV[W[YZZY\\V",659:" 16PWSMSNTNTMSM RPVRRPXPZQ[R[TZUYWV",660:" 20PWSMSNTNTMSM RPVRRLdKfIgHfHdIaL^O\\Q[TYWV",661:" 33M[MVOSRNSLTITGSFQGPIOMNSM[ RM[NXOVQSSRURVSVUTVQV RQVSWTZU[V[XZYY[V",662:" 18OWOVQSTNULVIVGUFSGRIQMPTPZQ[R[TZUYWV",663:" 33E^EVGSIRJSJTIXH[ RIXJVLSNRPRQSQTPXO[ RPXQVSSURWRXSXUWXWZX[Y[[Z\\Y^V",664:" 23J\\JVLSNROSOTNXM[ RNXOVQSSRURVSVUUXUZV[W[YZZY\\V",665:" 23LZRRPRNSMTLVLXMZO[Q[SZTYUWUUTSRRQSQURWTXWXYWZV",666:" 24KZKVMSNQMUGg RMUNSPRRRTSUUUWTYSZQ[ RMZO[R[UZWYZV",667:" 27L[UUTSRRPRNSMTLVLXMZO[Q[SZ RVRUUSZPaOdOfPgRfScS\\U[XY[V",668:" 15MZMVOSPQPSSSTTTVSYSZT[U[WZXYZV",669:" 16NYNVPSQQQSSVTXTZR[ RNZP[T[VZWYYV",670:" 16OXOVQSSO RVFPXPZQ[S[UZVYXV RPNWN",671:" 19L[LVNRLXLZM[O[QZSXUU RVRTXTZU[V[XZYY[V",672:" 17L[LVNRMWMZN[O[RZTXUUUR RURVVWWYW[V",673:" 25I^LRJTIWIYJ[L[NZPX RRRPXPZQ[S[UZWXXUXR RXRYVZW\\W^V",674:" 20JZJVLSNRPRQSQZR[U[XYZV RWSVRTRSSOZN[L[KZ",675:" 23L[LVNRLXLZM[O[QZSXUU RVRPdOfMgLfLdMaP^S\\U[XY[V",676:" 23LZLVNSPRRRTTTVSXQZN[P\\Q^QaPdOfMgLfLdMaP^S\\WYZV",677:" 22J\\K[NZQXSVUSWOXKXIWGUFSGRHQJPOPTQXRZT[V[XZYY",683:" 26I[WUWRVOUNSMQMONMPLSLVMYNZP[R[TZVXWUXPXKWHVGTFRFPGNI",684:" 16JZWNUMRMPNNPMSMVNYOZQ[T[VZ RMTUT",685:" 23J[TFRGPJOLNOMTMXNZO[Q[SZUWVUWRXMXIWGVFTF RNPWP",686:" 21H\\VFNb RQMNNLPKSKVLXNZQ[S[VZXXYUYRXPVNSMQM",687:" 16I[XOWNTMQMNNMOLQLSMUOWSZT\\T^S_Q_",700:" 18H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF",701:" 5H\\NJPISFS[",702:" 15H\\LKLJMHNGPFTFVGWHXJXLWNUQK[Y[",703:" 16H\\MFXFRNUNWOXPYSYUXXVZS[P[MZLYKW",704:" 7H\\UFKTZT RUFU[",705:" 18H\\WFMFLOMNPMSMVNXPYSYUXXVZS[P[MZLYKW",706:" 24H\\XIWGTFRFOGMJLOLTMXOZR[S[VZXXYUYTXQVOSNRNOOMQLT",707:" 6H\\YFO[ RKFYF",708:" 30H\\PFMGLILKMMONSOVPXRYTYWXYWZT[P[MZLYKWKTLRNPQOUNWMXKXIWGTFPF",709:" 24H\\XMWPURRSQSNRLPKMKLLINGQFRFUGWIXMXRWWUZR[P[MZLX",710:" 6MWRYQZR[SZRY",711:" 9MWSZR[QZRYSZS\\R^Q_",712:" 12MWRMQNROSNRM RRYQZR[SZRY",713:" 15MWRMQNROSNRM RSZR[QZRYSZS\\R^Q_",714:" 9MWRFRT RRYQZR[SZRY",715:" 21I[LKLJMHNGPFTFVGWHXJXLWNVORQRT RRYQZR[SZRY",716:" 3NVRFRM",717:" 6JZNFNM RVFVM",718:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",719:" 27H\\PBP_ RTBT_ RYIWGTFPFMGKIKKLMMNOOUQWRXSYUYXWZT[P[MZKX",720:" 3G][BIb",721:" 11KYVBTDRGPKOPOTPYR]T`Vb",722:" 11KYNBPDRGTKUPUTTYR]P`Nb",723:" 3NVRBRb",724:" 3E_IR[R",725:" 6E_RIR[ RIR[R",726:" 6E_IO[O RIU[U",727:" 6G]KKYY RYKKY",728:" 9JZRLRX RMOWU RWOMU",729:" 6MWRQQRRSSRRQ",730:" 8MWSFRGQIQKRLSKRJ",731:" 8MWRHQGRFSGSIRKQL",732:" 9E_UMXP[RXTUW RIR[R",733:" 12H]SBLb RYBRb RLOZO RKUYU",734:" 35E_\\O\\N[MZMYNXPVUTXRZP[L[JZIYHWHUISJRQNRMSKSIRGPFNGMIMKNNPQUXWZY[[[\\Z\\Y",735:" 28G]IIJKKOKUJYI[ R[IZKYOYUZY[[ RIIKJOKUKYJ[I RI[KZOYUYYZ[[",737:" 6KYOBO[ RUBU[",738:" 6F^RBR[ RI[[[",739:" 4F^[BI[[[",740:" 18E_RIQJRKSJRI RIYHZI[JZIY R[YZZ[[\\Z[Y",741:" 33F^RHNLKPJSJUKWMXOXQWRU RRHVLYPZSZUYWWXUXSWRU RRUQYP\\ RRUSYT\\ RP\\T\\",742:" 26F^RNQKPINHMHKIJKJOKRLTNWR\\ RRNSKTIVHWHYIZKZOYRXTVWR\\",743:" 20F^RGPJLOIR RRGTJXO[R RIRLUPZR] R[RXUTZR]",744:" 48F^RTTWVXXXZW[U[SZQXPVPSQ RSQUOVMVKUISHQHOINKNMOOQQ RQQNPLPJQISIUJWLXNXPWRT RRTQYP\\ RRTSYT\\ RP\\T\\",745:" 55F^RRR[Q\\ RRVQ\\ RRIQHOHNINKONRR RRISHUHVIVKUNRR RRRNOLNJNIOIQJR RRRVOXNZN[O[QZR RRRNULVJVIUISJR RRRVUXVZV[U[SZR",746:" 55F^ISJSLTMVMXLZ RISIRJQLQMRNTNWMYLZ RRGPIOLOOQUQXPZR\\ RRGTIULUOSUSXTZR\\ R[S[RZQXQWRVTVWWYXZ R[SZSXTWVWXXZ RKVYV",750:" 18PSSRRSQSPRPQQPRPSQSSRUQV RQQQRRRRQQQ",751:" 16PTQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",752:" 9NVPOTU RTOPU RNRVR",753:" 28MWRKQMOPMR RRKSMUPWR RRMOQ RRMUQ RROPQ RROTQ RQQSQ RMRWR",754:" 26MWMRMQNOONQMSMUNVOWQWR RPNTN ROOUO RNPVP RNQVQ RMRWR",755:" 14LRLFLRRRLF RLIPQ RLLOR RLOMQ",756:" 10MWRKQMOPMR RRKSMUPWR",757:" 11MWWRWQVOUNSMQMONNOMQMR",758:" 13G]]R]P\\MZJWHTGPGMHJJHMGPGR",759:" 11MWMRMSNUOVQWSWUVVUWSWR",760:" 7LXLPNRQSSSVRXP",761:" 6RURUTTURTPRO",762:" 7RVRRUPVNVLUKTK",763:" 7NRRROPNNNLOKPK",764:" 21MWWHVGTFQFOGNHMJMLNNOOUSVTWVWXVZU[S\\P\\N[MZ",765:" 21G]IWHVGTGQHOINKMMMONPOTUUVWWYW[V\\U]S]P\\N[M",766:" 31G]RRTUUVWWYW[V\\U]S]Q\\O[NYMWMUNTOPUOVMWKWIVHUGSGQHOINKMMMONPORR",767:" 22H\\KFK[ RHF[FQP[Z RZV[Y\\[ RZVZY RWYZY RWYZZ\\[",768:" 30KYUARBPCNELHKLKRLUNWQXSXVWXUYR RKPLMNKQJSJVKXMYPYVXZV]T_R`Oa",796:" 3>f>RfR",797:" 3D`D``D",798:" 3RRR>Rf",799:" 3D`DD``",800:" 3D`DR`R",801:" 3F^FY^K",802:" 3KYK^YF",803:" 3RRRDR`",804:" 3KYKFY^",805:" 3F^FK^Y",806:" 3KYKRYR",807:" 3MWMWWM",808:" 3RRRKRY",809:" 3MWMMWW",810:" 8GRRGPGMHJJHMGPGR",811:" 8GRGRGTHWJZM\\P]R]",812:" 8R]R]T]W\\ZZ\\W]T]R",813:" 8R]]R]P\\MZJWHTGRG",814:" 9D`DOGQKSPTTTYS]Q`O",815:" 9PUUDSGQKPPPTQYS]U`",816:" 9OTODQGSKTPTTSYQ]O`",817:" 9D`DUGSKQPPTPYQ]S`U",818:" 5KYRJYNKVRZ",819:" 5JZJRNKVYZR",820:" 5KYKVKNYVYN",821:" 5JZLXJPZTXL",822:" 23JZJ]L]O\\Q[TXUVVSVOULTJSIQIPJOLNONSOVPXS[U\\X]Z]",823:" 23I]]Z]X\\U[SXPVOSNONLOJPIQISJTLUOVSVVUXT[Q\\O]L]J",824:" 23JZZGXGUHSIPLONNQNUOXPZQ[S[TZUXVUVQUNTLQIOHLGJG",825:" 23G[GJGLHOIQLTNUQVUVXUZT[S[QZPXOUNQNNOLPISHUGXGZ",826:" 21E[EPFRHTJUMVQVUUXSZP[NZLWLSMQNNPLSKVKYL\\M^",827:" 19EYETHVKWPWSVVTXQYNYLXKVKSLPNNQMTMYN\\P_",828:" 26OUQOOQOSQUSUUSUQSOQO RQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",829:" 11RWRMSMUNVOWQWSVUUVSWRW",830:" 9D`DRJR RORUR RZR`R",831:" 5D`DUDO`O`U",832:" 6JZRDJR RRDZR",833:" 9D`DR`R RJYZY RP`T`",834:" 9D`DR`R RDRRb R`RRb",840:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",841:" 6LXLLLXXXXLLL",842:" 5KYRJKVYVRJ",843:" 6LXRHLRR\\XRRH",844:" 12JZRIPOJOOSMYRUWYUSZOTORI",845:" 6KYRKRY RKRYR",846:" 6MWMMWW RWMMW",847:" 9MWRLRX RMOWU RWOMU",850:" 35NVQNOONQNSOUQVSVUUVSVQUOSNQN ROQOS RPPPT RQOQU RRORU RSOSU RTPTT RUQUS",851:" 27NVNNNVVVVNNN ROOOU RPOPU RQOQU RRORU RSOSU RTOTU RUOUU",852:" 17MWRLMUWURL RROOT RROUT RRRQT RRRST",853:" 17LULRUWUMLR RORTU RORTO RRRTS RRRTQ",854:" 17MWRXWOMORX RRUUP RRUOP RRRSP RRRQP",855:" 17OXXROMOWXR RURPO RURPU RRRPQ RRRPS",856:" 22LXRLNWXPLPVWRL RRRRL RRRLP RRRNW RRRVW RRRXP",857:" 11RYRKRY RRKYNRQ RSMVNSO",860:" 13MWRLRX ROOUO RMUOWQXSXUWWU",861:" 11LXRLRX RLQMOWOXQ RPWTW",862:" 14KYMNWX RWNMX ROLLOKQ RULXOYQ",863:" 18I[NII[ RVI[[ RMM[[ RWMI[ RNIVI RMMWM",864:" 21I[RGRV RMJWP RWJMP RIVL\\ R[VX\\ RIV[V RL\\X\\",865:" 11G[MJSV RKPSL RG\\[\\[RG\\",866:" 14LXPLPPLPLTPTPXTXTTXTXPTPTLPL",867:" 32KYYPXNVLSKQKNLLNKQKSLVNXQYSYVXXVYT RYPWNUMSMQNPOOQOSPUQVSWUWWVYT",868:" 10KYRJKVYVRJ RRZYNKNRZ",869:" 34G]PIPGQFSFTGTI RGZHXJVKTLPLKMJOIUIWJXKXPYTZV\\X]Z RGZ]Z RQZP[Q\\S\\T[SZ",870:" 64JZRMRS RRSQ\\ RRSS\\ RQ\\S\\ RRMQJPHNG RQJNG RRMSJTHVG RSJVG RRMNKLKJM RPLLLJM RRMVKXKZM RTLXLZM RRMPNOOOR RRMPOOR RRMTNUOUR RRMTOUR",871:" 94JZRIRK RRNRP RRSRU RRYQ\\ RRYS\\ RQ\\S\\ RRGQIPJ RRGSITJ RPJRITJ RRKPNNOMN RRKTNVOWN RNOPORNTOVO RRPPSNTLTKRKSLT RRPTSVTXTYRYSXT RNTPTRSTTVT RRUPXOYMZLZKYJWJYLZ RRUTXUYWZXZYYZWZYXZ RMZOZRYUZWZ",872:" 40JZRYQ\\ RRYS\\ RQ\\S\\ RRYUZXZZXZUYTWTYRZOYMWLUMVJUHSGQGOHNJOMMLKMJOKRMTKTJUJXLZOZRY",873:" 32JZRYQ\\ RRYS\\ RQ\\S\\ RRYVXVVXUXRZQZLYIXHVHTGPGNHLHKIJLJQLRLUNVNXRY",874:" 15I[IPKR RLKNP RRGRO RXKVP R[PYR",899:" 6QSRQQRRSSRRQ",900:" 10PTQPPQPSQTSTTSTQSPQP",901:" 14NVQNOONQNSOUQVSVUUVSVQUOSNQN",902:" 18MWQMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM",903:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",904:" 22G]PGMHJJHMGPGTHWJZM\\P]T]W\\ZZ\\W]T]P\\MZJWHTGPG",905:" 34AcPALBJCGEEGCJBLAPATBXCZE]G_JaLbPcTcXbZa]__]aZbXcTcPbLaJ_G]EZCXBTAPA",906:" 34<hP<K=G?DAAD?G=K<P<T=Y?]A`DcGeKgPhThYg]e`cc`e]gYhThPgKeGcD`A]?Y=T<P<",907:" 50){O)I*E+@-;073370;-@+E*I)O)U*[+_-d0i3m7q;t@wEyIzO{U{[z_ydwitmqqmtiwdy_z[{U{OzIyEw@t;q7m3i0d-_+[*U)O)",908:" 34>fRAPCMDJDGCEA>H@JAMAZB]D_G`M`PaRc RRATCWDZD]C_AfHdJcMcZb]`_]`W`TaRc",909:" 33AcRAPCMDJDGCEABGAKAPBTDXG\\L`Rc RRATCWDZD]C_AbGcKcPbT`X]\\X`Rc RBHbH",997:" 3MWMXWX",998:" 3JZJZZZ",999:" 3JZJ]Z]",1001:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1002:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1003:" 24KYVLWKWOVLTKQKOLNMMPMSNVOWQXTXVWWU RQKOMNPNSOVQX",1004:" 26JZNKNX ROKOX RLKSKVLWMXPXSWVVWSXLX RSKULVMWPWSVVUWSX",1005:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1006:" 20JXNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXQX",1007:" 36K[VLWKWOVLTKQKOLNMMPMSNVOWQXTXVW RQKOMNPNSOVQX RTXUWVU RVSVX RWSWX RTSYS",1008:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1009:" 12NWRKRX RSKSX RPKUK RPXUX",1010:" 19LXSKSURWQX RTKTUSWQXPXNWMUNTOUNV RQKVK",1011:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1012:" 14KXOKOX RPKPX RMKRK RMXWXWTVX",1013:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1014:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1015:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1016:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1017:" 47KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RPWPUQTSTTUUZV[W[XZ RTUUXVZW[",1018:" 37JZNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX RSRTSUWVXWXXW RSRUSVWWX",1019:" 32KZVMWKWOVMULSKQKOLNMNOOPQQTRVSWT RNNOOQPTQVRWSWVVWTXRXPWOVNTNXOV",1020:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1021:" 20J[NKNUOWQXTXVWWUWK ROKOUPWQX RLKQK RUKYK",1022:" 15KYMKRX RNKRU RWKRX RKKPK RTKYK",1023:" 24I[LKOX RMKOT RRKOX RRKUX RSKUT RXKUX RJKOK RVKZK",1024:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1025:" 20LYNKRRRX ROKSR RWKSRSX RLKQK RTKYK RPXUX",1026:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1027:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1028:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1029:" 14KXOKOX RPKPX RMKWKWOVK RMXRX",1030:" 15KYRKLX RRMWX RRKXX RMWVW RLXXX",1031:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1032:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1033:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1034:" 44KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RQOQT RTOTT RQQTQ RQRTR",1035:" 12NWRKRX RSKSX RPKUK RPXUX",1036:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1037:" 15KYRKMX RRNVX RRKWX RKXPX RTXYX",1038:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1039:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1040:" 36JZMJLM RXJWM RPPOS RUPTS RMVLY RXVWY RMKWK RMLWL RPQTQ RPRTR RMWWW RMXWX",1041:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1042:" 21J[NKNX ROKOX RVKVX RWKWX RLKYK RLXQX RTXYX",1043:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1044:" 20K[MKRQ RNKSQMX RMKWKXOVK RNWWW RMXWXXTVX",1045:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1046:" 33KZMONLOKPKQLRORX RXOWLVKUKTLSOSX RMONMOLPLQMRO RXOWMVLULTMSO RPXUX",1047:" 40KZRKRX RSKSX RQNNOMQMRNTQUTUWTXRXQWOTNQN RQNOONQNROTQU RTUVTWRWQVOTN RPKUK RPXUX",1048:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1049:" 33J[RKRX RSKSX RLPMONOOSQU RTUVSWOXOYP RMONROTQUTUVTWRXO RPKUK RPXUX",1050:" 35KZMVNXQXMRMONMOLQKTKVLWMXOXRTXWXXV ROUNRNOOMQK RTKVMWOWRVU RNWPW RUWWW",1051:" 18KYTKKX RSMTX RTKUX RNTTT RIXNX RRXWX",1052:" 34JYPKLX RQKMX RNKUKWLWNVPSQ RUKVLVNUPSQ ROQRQTRUSUUTWQXJX RRQTSTUSWQX",1053:" 25KXVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUU RRKPMOONRNVPX",1054:" 26JYPKLX RQKMX RNKTKVLWNWQVTUVTWQXJX RTKULVNVQUTTVSWQX",1055:" 22JYPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXTXUUSX",1056:" 20JXPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXOX",1057:" 33KYVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUVVS RRKPMOONRNVPX RRXTVUS RSSXS",1058:" 27J[PKLX RQKMX RXKTX RYKUX RNKSK RVK[K ROQVQ RJXOX RRXWX",1059:" 12NWTKPX RUKQX RRKWK RNXSX",1060:" 19LXUKRUQWPX RVKSURWPXOXMWLUMTNUMV RSKXK",1061:" 27JZPKLX RQKMX RYKOR RRPTX RSPUX RNKSK RVK[K RJXOX RRXWX",1062:" 14KXQKMX RRKNX ROKTK RKXUXVUTX",1063:" 30I\\OKKX ROMPX RPKQV RYKPX RYKUX RZKVX RMKPK RYK\\K RIXMX RSXXX",1064:" 21JZPKLX RPKTX RQKTU RXKTX RNKQK RVKZK RJXNX",1065:" 32KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK",1066:" 24JYPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RJXOX",1067:" 46KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK ROWOVPUQURVRZS[T[UZ RRVSZT[",1068:" 35JZPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RSRTWUXVXWW RSRTSUWVX RJXOX",1069:" 28KZWLXLYKXNWLUKRKPLOMOOPPUSVT RONPOURVSVVUWSXPXNWMULXMWNW",1070:" 16KZTKPX RUKQX RPKNNOKZKYNYK RNXSX",1071:" 20J[PKMUMWOXSXUWVUYK RQKNUNWOX RNKSK RWK[K",1072:" 15KYOKPX RPKQV RYKPX RMKRK RVK[K",1073:" 24I[NKMX ROKNV RTKMX RTKSX RUKTV RZKSX RLKQK RXK\\K",1074:" 21KZPKTX RQKUX RYKLX RNKSK RVK[K RJXOX RRXWX",1075:" 20LYPKRQPX RQKSQ RYKSQQX RNKSK RVK[K RNXSX",1076:" 16LYXKLX RYKMX RQKONPKYK RLXUXVUTX",1101:" 32LZQOPPPQOQOPQOTOVQVWWXXX RTOUQUWWX RURRSPTOUOWPXSXTWUU RRSPUPWQX",1102:" 29JYNKNX ROKOX RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLKOK",1103:" 24LXVQUQURVRVQUPSOQOOPNRNUOWQXSXUWVV RQOPPOROUPWQX",1104:" 32L[VKVX RWKWX RVRUPSOQOOPNRNUOWQXSXUWVU RQOPPOROUPWQX RTKWK RVXYX",1105:" 26LXOSVSVRUPSOQOOPNRNUOWQXSXUWVV RUSUQSO RQOPPOROUPWQX",1106:" 20LWTKULUMVMVLTKRKPMPX RRKQMQX RNOSO RNXSX",1107:" 42LYQOOQOSQUSUUSUQSOQO RQOPQPSQU RSUTSTQSO RTPUOVO RPTOUOXPYTYVZ ROWPXTXVYV[T\\P\\N[NYPX",1108:" 28J[NKNX ROKOX RORPPROTOVPWRWX RTOUPVRVX RLKOK RLXQX RTXYX",1109:" 18NWRKRLSLSKRK RRORX RSOSX RPOSO RPXUX",1110:" 23NWSKSLTLTKSK RSOSZR\\ RTOTZR\\P\\O[OZPZP[O[ RQOTO",1111:" 27JZNKNX ROKOX RWOOU RRSVX RSSWX RLKOK RTOYO RLXQX RTXYX",1112:" 12NWRKRX RSKSX RPKSK RPXUX",1113:" 44F_JOJX RKOKX RKRLPNOPORPSRSX RPOQPRRRX RSRTPVOXOZP[R[X RXOYPZRZX RHOKO RHXMX RPXUX RXX]X",1114:" 28J[NONX ROOOX RORPPROTOVPWRWX RTOUPVRVX RLOOO RLXQX RTXYX",1115:" 28LYQOOPNRNUOWQXTXVWWUWRVPTOQO RQOPPOROUPWQX RTXUWVUVRUPTO",1116:" 32JYNON\\ ROOO\\ RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLOOO RL\\Q\\",1117:" 29KYUOU\\ RVOV\\ RURTPROPONPMRMUNWPXRXTWUU RPOOPNRNUOWPX RS\\X\\",1118:" 22KXOOOX RPOPX RPRQPSOUOVPVQUQUPVP RMOPO RMXRX",1119:" 26LYTOUPUQVQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWOVPVPWQX",1120:" 14LWPKPVRXTXUWUV RQKQVRX RNOTO",1121:" 28J[NONUOWQXSXUWVU ROOOUPWQX RVOVX RWOWX RLOOO RTOWO RVXYX",1122:" 15KYNORX ROORV RVORX RLOQO RTOXO",1123:" 24I[LOOX RMOOU RROOX RROUX RSOUU RXOUX RJOOO RVOZO",1124:" 21KYNOUX ROOVX RVONX RLOQO RTOXO RLXPX RSXXX",1125:" 23KYNORX ROORV RVORXP[N\\M\\L[LZMZM[L[ RLOQO RTOXO",1126:" 16LXUONX RVOOX ROONQNOVO RNXVXVVUX",1127:" 32K[QOOPNQMSMUNWPXQXSWUUWRXO RQOOQNSNUOWPX RQOSOUPWWXX RSOTPVWXXYX",1128:" 40KXRKPMOOMUK\\ RQLPNNTL\\ RRKTKVLVNUPRQ RTKULUNTPRQ RRQTRUTUVTWRXQXOWNT RRQSRTTTVRX",1129:" 19KYLQNOPORPSSSXR\\ RLQNPPPRQSS RWOVRSXQ\\",1130:" 39KYSOQOOPNQMSMUNWPXRXTWUVVTVRUPRNQLQKRJTJUKVM RQOOQNSNVPX RRXTVUTUQSO RQLRKTKVM",1131:" 27LXVPTOQOOPOQPRRS RQOPPPQRS RRSOTNUNWPXSXUW RRSPTOUOWPX",1132:" 28LWRKQLQMSNVNVMSNPOOPNRNTOVPWRXSYS[R\\P\\O[ RSNQOPPOROTPVRX",1133:" 26IYJRKPLONOOPOQMX RMONPNQLX ROQPPROTOVPVRS\\ RTOUPURR\\",1134:" 35IYJSKQLPNPOQOVPX RMPNQNUOWPXQXSWTVUTVQVNULTKRKQLQNRPURWS RQXSVTTUQUNTK",1135:" 13NWROPVPWQXSXUWVU RSOQVQWRX",1136:" 26KYOOLX RPOMX RUOVPWPVOTORQOR RORPSRWTXVWWU RORQSSWTX",1137:" 15LXLKNKPLWX RNKOLVX RRPMX RRPNX",1138:" 26KZOOK\\ RPOL\\ RNUNWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1139:" 19JYNOMX ROONUMX RVRVOWOVRTUQWNXMX RLOOO",1140:" 36MXRKQLQMSNVN RTNQOPPPRRSUS RTNROQPQRRS RSSPTOUOWQXSYTZT[S\\Q\\ RSSQTPUPWQX",1141:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1142:" 20IZPPMX RPPNX RTPSX RTPTX RKQMOXO RKQMPXP",1143:" 29JXSOQOOPNQMSJ\\ RQOOQNSK\\ RSOUPVRVTUVTWRXPXNWMU RSOUQUTTVRX",1144:" 28K[YOQOOPNQMSMUNWPXRXTWUVVTVRUPYP RQOOQNSNVPX RRXTVUTUQSO",1145:" 14KZSPQX RSPRX RMQOOXO RMQOPXP",1146:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1147:" 35KZOPNQMSMUNWPXRXUWWUXRXPWOUOTPSRRUO\\ RMUNVPWRWUVWTXR RXQWPUPSR RRUQXP\\",1148:" 17KXMONOPPS[T\\ RNOOPR[T\\U\\ RVOTRNYL\\",1149:" 28I[TKQ\\ RUKP\\ RJRKPLONOOPOVPWSWUVWT RMONPNTOWPXSXUWWTXRYO",1150:" 36JZNPPPPONPMQLSLUMWNXPXQWRUSR RLUNWPWRU RRRRWSXUXWVXTXRWPVOVPWP RRUSWUWWV",1151:" 32KZVOTVTWUXWXXWYU RWOUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1152:" 32JXOKMR RPKNRNVPX RNROPQOSOUPVRVTUVTWRXPXNWMUMR RSOUQUTTVRX RMKPK",1153:" 22KXUPUQVQUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1154:" 35KZWKTVTWUXWXXWYU RXKUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RUKXK",1155:" 23KWNURTTSURUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1156:" 23MXWKXLXKVKTLSNPYO[N\\ RVKULTNQYP[N\\L\\L[M\\ RPOVO",1157:" 34KYVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1158:" 29KZPKLX RQKMX ROQPPROTOVPVRUUUWVX RTOUPURTUTWUXWXXWYU RNKQK",1159:" 26MWSKSLTLTKSK RNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1160:" 26MWTKTLULUKTK RORPPQOSOTPTRRYQ[O\\M\\M[N\\ RROSPSRQYP[O\\",1161:" 32KXPKLX RQKMX RVPUQVQVPUOTORQPROR RORPSQWRXTXUWVU RORQSRWSX RNKQK",1162:" 16NVSKPVPWQXSXTWUU RTKQVQWRX RQKTK",1163:" 46F^GRHPIOKOLPLQJX RJOKPKQIX RLQMPOOQOSPSQQX RQORPRQPX RSQTPVOXOZPZRYUYWZX RXOYPYRXUXWYX[X\\W]U",1164:" 33J[KRLPMOOOPPPQNX RNOOPOQMX RPQQPSOUOWPWRVUVWWX RUOVPVRUUUWVXXXYWZU",1165:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1166:" 35JYKRLPMOOOPPPQM\\ RNOOPOQL\\ RPQROTOVPWRWTVVUWSXQXOVOT RTOVQVTUVSX RJ\\O\\",1167:" 28KYVOR\\ RWOS\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RP\\U\\",1168:" 22LXMRNPOOQORPRQPX RPOQPQQOX RRQSPUOVOWPWQVQWP",1169:" 24LYVPVQWQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWNVOVOW",1170:" 16NWSKPVPWQXSXTWUU RTKQVQWRX RPOUO",1171:" 33IZJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1172:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1173:" 37H\\IRJPKOMONPNRMUMWNX RLOMPMRLULWNXOXQWRV RTORVRWTX RUOSVSWTXUXWWYUZRZOYOZP",1174:" 38JZMRNPPOROSPSR RQORPRRQUPWNXMXLWLVMVLW RXPWQXQXPWOVOTPSRRURWSX RQUQWRXTXVWWU",1175:" 35IYJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\",1176:" 27KYWOWPVQNVMWMX RNQOOROUQ ROPRPUQVQ RNVOVRWUW ROVRXUXVV",1177:" 39H[RKSLSMTMTLRKOKMLLNLX ROKNLMNMX RXKYLYMZMZLXKVKTMTX RVKUMUX RJOWO RJXOX RRXWX",1178:" 29J[UKVLWLWKQKOLNNNX RQKPLONOX RVOVX RWOWX RLOWO RLXQX RTXYX",1179:" 27J[WKQKOLNNNX RQKPLONOX RUKVLVX RWKWX RLOVO RLXQX RTXYX",1180:" 48F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX RYKZL[L[KUKSLRNRX RUKTLSNSX RZOZX R[O[X RHO[O RHXMX RPXUX RXX]X",1181:" 46F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX R[KUKSLRNRX RUKTLSNSX RYKZLZX R[K[X RHOZO RHXMX RPXUX RXX]X",1182:" 12NWRORX RSOSX RPOSO RPXUX",1184:" 21LXVPTOROPPOQNSNUOWQXSXUW RROPQOSOVQX ROSSS",1185:" 35LYSKQLPMOONRNUOWPXRXTWUVVTWQWNVLUKSK RSKQMPOOSOVPX RRXTVUTVPVMUK ROQVQ",1186:" 34KZTKQ\\ RUKP\\ RQONPMRMUNWQXTXWWXUXRWPTOQO RQOOPNRNUOWQX RTXVWWUWRVPTO",1187:" 22LXUPVRVQUPSOQOOPNRNTOVRX RQOOQOTPVRXSYS[R\\P\\",1191:" 45I[VKWLXLVKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RZK[L[KYKWLVNSYR[Q\\ RYKXLWNTYS[Q\\O\\O[P\\ RLOYO",1192:" 38IZVKWLXLXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RVOTVTWUXWXXWYU RWOUVUWVX RLOWO",1193:" 38IZVKWL RXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RWKTVTWUXWXXWYU RXKUVUWVX RLOVO",1194:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L\\L\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ RZOXVXWYX[X\\W]U R[OYVYWZX RIO[O",1195:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L R\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ R[KXVXWYX[X\\W]U R\\KYVYWZX RIOZO",1196:" 20MWNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1200:" 28LYQKOLNONTOWQXTXVWWTWOVLTKQK RQKPLOOOTPWQX RTXUWVTVOULTK",1201:" 10LYPNSKSX RRLRX ROXVX",1202:" 35LYOMONNNNMOLQKTKVLWNVPTQQROSNUNX RTKULVNUPTQ RNWOVPVSWVWWV RPVSXVXWVWU",1203:" 39LYOMONNNNMOLQKTKVLWNVPTQ RTKULVNUPTQ RRQTQVRWTWUVWTXQXOWNVNUOUOV RTQURVTVUUWTX",1204:" 13LYSMSX RTKTX RTKMTXT RQXVX",1205:" 33LYOKNQ ROKVK ROLSLVK RNQOPQOTOVPWRWUVWTXQXOWNVNUOUOV RTOUPVRVUUWTX",1206:" 36LYVMVNWNWMVLTKRKPLOMNPNUOWQXTXVWWUWSVQTPQPNR RRKPMOPOUPWQX RTXUWVUVSUQTP",1207:" 22LYNKNO RVMRTPX RWKTQQX RNMPKRKUM RNMPLRLUMVM",1208:" 51LYQKOLNNOPQQTQVPWNVLTKQK RQKPLONPPQQ RTQUPVNULTK RQQORNTNUOWQXTXVWWUWTVRTQ RQQPROTOUPWQX RTXUWVUVTURTQ",1209:" 36LYOVOUNUNVOWQXSXUWVVWSWNVLTKQKOLNNNPORQSTSWQ RSXUVVSVNULTK RQKPLONOPPRQS",1210:" 6NVRVQWRXSWRV",1211:" 8NVSWRXQWRVSWSYQ[",1212:" 12NVROQPRQSPRO RRVQWRXSWRV",1213:" 14NVROQPRQSPRO RSWRXQWRVSWSYQ[",1214:" 15NVRKQLRSSLRK RRLRO RRVQWRXSWRV",1215:" 29LYNNONOONONNOLQKTKVLWNWOVQSRRSRTST RTKVMVPUQSR RRWRXSXSWRW",1216:" 6OVRKRP RSKRP",1217:" 12LXOKOP RPKOP RUKUP RVKUP",1218:" 10MWQKPLPNQOSOTNTLSKQK",1219:" 9MWRJRP ROKUO RUKOO",1220:" 3KZXHM\\",1221:" 16MWUHSJQMPPPTQWSZU\\ RSJRLQPQTRXSZ",1222:" 16MWOHQJSMTPTTSWQZO\\ RQJRLSPSTRXQZ",1223:" 12MWPHP\\ RQHQ\\ RPHUH RP\\U\\",1224:" 12MWSHS\\ RTHT\\ ROHTH RO\\T\\",1225:" 38LWSHQIPJPLRNSP RQIPL RSNRQ RPJQLSNSPRQPRRSSTSVQXPZ RRSSV RPXQ[ RSTRVPXPZQ[S\\",1226:" 38MXQHSITJTLRNQP RSITL RQNRQ RTJSLQNQPRQTRRSQTQVSXTZ RRSQV RTXS[ RQTRVTXTZS[Q\\",1227:" 4MWTHPRT\\",1228:" 4MWPHTRP\\",1229:" 3OURHR\\",1230:" 6MWPHP\\ RTHT\\",1231:" 3I[LRXR",1232:" 6I[RLRX RLRXR",1233:" 9JZRMRX RMRWR RMXWX",1234:" 9JZRMRX RMMWM RMRWR",1235:" 6JZMMWW RWMMW",1236:" 6NVRQQRRSSRRQ",1237:" 15I[RLQMRNSMRL RLRXR RRVQWRXSWRV",1238:" 6I[LPXP RLTXT",1239:" 9I[WLMX RLPXP RLTXT",1240:" 9I[LNXN RLRXR RLVXV",1241:" 4JZWLMRWX",1242:" 4JZMLWRMX",1243:" 10JZWKMOWS RMTWT RMXWX",1244:" 10JZMKWOMS RMTWT RMXWX",1245:" 21H[YUWUUTTSRPQOONNNLOKQKRLTNUOUQTRSTPUOWNYN",1246:" 16JZLTLRMPOPUSWSXR RLRMQOQUTWTXRXP",1247:" 8JZMSRPWS RMSRQWS",1248:" 7NVSKPO RSKTLPO",1249:" 7NVQKTO RQKPLTO",1250:" 14LXNKOMQNSNUMVK RNKONQOSOUNVK",1251:" 8NVSLRMQLRKSLSNQP",1252:" 8NVSKQMQORPSORNQO",1253:" 8NVQLRMSLRKQLQNSP",1254:" 8NVQKSMSORPQORNSO",1256:" 11JZWMQMONNOMQMSNUOVQWWW",1257:" 11JZMMMSNUOVQWSWUVVUWSWM",1258:" 11JZMMSMUNVOWQWSVUUVSWMW",1259:" 11JZMWMQNOONQMSMUNVOWQWW",1260:" 14JZWMQMONNOMQMSNUOVQWWW RMRUR",1261:" 13I[TOUPXRUTTU RUPWRUT RLRWR",1262:" 13MWRMRX ROPPORLTOUP RPORMTO",1263:" 13I[POOPLROTPU ROPMROT RMRXR",1264:" 13MWRLRW ROTPURXTUUT RPURWTU",1265:" 37KYVSUPSOQOOPNQMSMUNWPXRXTWUVVTWQWNVLTKQKPLQLRK RQOOQNSNVPX RRXTVUTVQVNULTK",1266:" 15JZLKRX RMKRV RXKRX RLKXK RNLWL",1267:" 10G[IOLORW RKORX R[FRX",1268:" 26I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[",1269:" 40I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[ RQNOONQNSOUQVSVUUVSVQUOSNQN",1270:" 26H\\ZRYTWUVUTTSSQPPONNMNKOJQJRKTMUNUPTQSSPTOVNWNYOZQZR",1271:" 26JZXKLX ROKPLPNOOMOLNLLMKOKSLVLXK RUTTUTWUXWXXWXUWTUT",1272:" 41J[YPXPXQYQYPXOWOVPUTTVSWQXOXMWLVLTMSORRPSNSLRKPKOLONPQUWWXXXYW ROXMVMTOR RONPPVWWX",1273:" 29J[UPSOQOPQPRQTSTUS RUOUSVTXTYRYQXNVLSKRKOLMNLQLRMUOWRXSXVW",1274:" 34KZQHQ\\ RTHT\\ RWLVLVMWMWLUKPKNLNNOPVSWT RNNOOVRWTWVVWTXQXOWNVNUOUOVNV",1275:" 12KYRKN\\ RVKR\\ RNQWQ RMVVV",1276:" 40LXTLSLSMTMTLSKQKPLPNQPTRUS RPNQOTQUSUUSW RQPOROTPVSXTY ROTPUSWTYT[S\\Q\\P[PZQZQ[P[",1277:" 29LXRKQLRMSLRK RRMRQ RRQQSRVSSRQ RRVR\\ RPOONNOOPPOTOUNVOUPTO",1278:" 42LXRMSLRKQLRMRQQRSURV RRQSRQURVRZQ[R\\S[RZ RPOONNOOPPOTOUNVOUPTO RPXOWNXOYPXTXUWVXUYTX",1279:" 12LYVKVX RNKVK RQQVQ RNXVX",1281:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRQQRRSSRRQ",1282:" 33LYQKPLPMQN RTKULUMTN RRNPOOQORPTRUSUUTVRVQUOSNRN RRURY RSUSY ROWVW",1283:" 23LYRKPLONOOPQRRSRUQVOVNULSKRK RRRRX RSRSX ROUVU",1284:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRKRY RKRYR",1285:" 25JYRRPQOQMRLTLUMWOXPXRWSUSTRR RWMRR RRMWMWR RRMVNWR",1286:" 25JZLLMKOKQLRNRPQRPSNT ROKPLQNQQPS RVKUX RWKTX RNTXT",1287:" 27JYNKNU ROKNR RNROPQOSOUPVQVTTVTXUYVYWX RSOUQUTTV RLKOK",1288:" 27LYONRKRQ RVNSKSQ RRQPROTOUPWRXSXUWVUVTURSQ RRTRUSUSTRT",1289:" 27JZRKRY RMKMPNRPSTSVRWPWK RLMMKNM RQMRKSM RVMWKXM ROVUV",1290:" 27JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXVXVUUX",1291:" 20LYWKTKQLONNQNSOVQXTYWY RWKTLRNQQQSRVTXWY",1292:" 23JZRRPQOQMRLTLUMWOXPXRWSUSTRR RSLQQ RWMRR RXQSS",1293:" 12KYPMTW RTMPW RMPWT RWPMT",1294:" 34J[OUMULVLXMYOYPXPVNTMRMONMOLQKTKVLWMXOXRWTUVUXVYXYYXYVXUVU RNMPLULWM",1295:" 34J[OOMOLNLLMKOKPLPNNPMRMUNWOXQYTYVXWWXUXRWPUNULVKXKYLYNXOVO RNWPXUXWW",1401:" 21F^KHK\\ RLHL\\ RXHX\\ RYHY\\ RHH\\H RH\\O\\ RU\\\\\\",1402:" 20H]KHRQJ\\ RJHQQ RJHYHZMXH RK[X[ RJ\\Y\\ZWX\\",1403:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",1404:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",1405:" 12KYOBOb RPBPb ROBVB RObVb",1406:" 12KYTBTb RUBUb RNBUB RNbUb",1407:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",1408:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",1409:" 24KYU@RCPFOIOLPOSVTYT\\S_Ra RRCQEPHPKQNTUUXU[T^RaOd",1410:" 24KYO@RCTFUIULTOQVPYP\\Q_Ra RRCSETHTKSNPUOXO[P^RaUd",1411:" 13AXCRGRR` RGSRa RFSRb RX:Rb",1412:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2001:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2002:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2003:" 32G\\XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXXYV RQFOGMILKKNKSLVMXOZQ[",2004:" 30G]LFL[ RMFM[ RIFSFVGXIYKZNZSYVXXVZS[I[ RSFUGWIXKYNYSXVWXUZS[",2005:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2006:" 20G[LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[P[",2007:" 40G^XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXX RQFOGMILKKNKSLVMXOZQ[ RXSX[ RYSY[ RUS\\S",2008:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2009:" 12MXRFR[ RSFS[ ROFVF RO[V[",2010:" 20KZUFUWTZR[P[NZMXMVNUOVNW RTFTWSZR[ RQFXF",2011:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2012:" 14I[NFN[ ROFO[ RKFRF RK[Z[ZUY[",2013:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2014:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2015:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2016:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2017:" 64G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF RNYNXOVQURUTVUXV_W`Y`Z^Z] RUXV\\W^X_Y_Z^",2018:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUPMP RUFWGXHYJYLXNWOUP RI[P[ RRPTQURXYYZZZ[Y RTQUSWZX[Z[[Y[X",2019:" 34H\\XIYFYLXIVGSFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[Q[NZLXKUK[LX",2020:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2021:" 23F^KFKULXNZQ[S[VZXXYUYF RLFLUMXOZQ[ RHFOF RVF\\F",2022:" 15H\\KFR[ RLFRX RYFR[ RIFOF RUF[F",2023:" 24F^JFN[ RKFNV RRFN[ RRFV[ RSFVV RZFV[ RGFNF RWF]F",2024:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2025:" 20H]KFRQR[ RLFSQS[ RZFSQ RIFOF RVF\\F RO[V[",2026:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2027:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2028:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2029:" 14I[NFN[ ROFO[ RKFZFZLYF RK[R[",2030:" 15H\\RFJ[ RRFZ[ RRIY[ RKZYZ RJ[Z[",2031:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2032:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2033:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2034:" 56G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF ROMOT RUMUT ROPUP ROQUQ",2035:" 12MXRFR[ RSFS[ ROFVF RO[V[",2036:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2037:" 15H\\RFK[ RRFY[ RRIX[ RI[O[ RU[[[",2038:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2039:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2040:" 36G]KEJJ RZEYJ RONNS RVNUS RKWJ\\ RZWY\\ RKGYG RKHYH ROPUP ROQUQ RKYYY RKZYZ",2041:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2042:" 21F^KFK[ RLFL[ RXFX[ RYFY[ RHF\\F RH[O[ RU[\\[",2043:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2044:" 20H]KFRPJ[ RJFQP RJFYFZLXF RKZXZ RJ[Y[ZUX[",2045:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2046:" 33I\\KKKILGMFOFPGQIRMR[ RKIMGOGQI RZKZIYGXFVFUGTISMS[ RZIXGVGTI RO[V[",2047:" 48H]RFR[ RSFS[ RPKMLLMKOKRLTMUPVUVXUYTZRZOYMXLUKPK RPKNLMMLOLRMTNUPV RUVWUXTYRYOXMWLUK ROFVF RO[V[",2048:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2049:" 41G^RFR[ RSFS[ RIMJLLMMQNSOTQU RJLKMLQMSNTQUTUWTXSYQZM[L RTUVTWSXQYM[L\\M ROFVF RO[V[",2050:" 43G]JXK[O[MWKSJPJLKIMGPFTFWGYIZLZPYSWWU[Y[ZX RMWLTKPKLLINGPF RTFVGXIYLYPXTWW RKZNZ RVZYZ",2051:" 18H\\UFH[ RUFV[ RTHU[ RLUUU RF[L[ RR[X[",2052:" 41F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVP RWFYGZIZKYNXOVP RMPVPXQYSYUXXVZR[F[ RVPWQXSXUWXUZR[",2053:" 34H]ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[S[UZWXXV RTFRGPINLMOLSLVMYNZP[",2054:" 30F]OFI[ RPFJ[ RLFUFXGYHZKZOYSWWUYSZO[F[ RUFWGXHYKYOXSVWTYRZO[",2055:" 22F]OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[U[WVT[",2056:" 20F\\OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[M[",2057:" 42H^ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[R[UZWXYT RTFRGPINLMOLSLVMYNZP[ RR[TZVXXT RUT\\T",2058:" 27E_NFH[ ROFI[ R[FU[ R\\FV[ RKFRF RXF_F RLPXP RE[L[ RR[Y[",2059:" 12LYUFO[ RVFP[ RRFYF RL[S[",2060:" 21I[XFSWRYQZO[M[KZJXJVKULVKW RWFRWQYO[ RTF[F",2061:" 27F]OFI[ RPFJ[ R]FLS RSOW[ RROV[ RLFSF RYF_F RF[M[ RS[Y[",2062:" 14H\\QFK[ RRFL[ RNFUF RH[W[YUV[",2063:" 30E`NFH[ RNFO[ ROFPY R\\FO[ R\\FV[ R]FW[ RKFOF R\\F`F RE[K[ RS[Z[",2064:" 21F_OFI[ ROFVX ROIV[ R\\FV[ RLFOF RYF_F RF[L[",2065:" 42G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF",2066:" 27F]OFI[ RPFJ[ RLFXF[G\\I\\K[NYPUQMQ RXFZG[I[KZNXPUQ RF[M[",2067:" 61G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF RLYLXMVOUPURVSXS_T`V`W^W] RSXT^U_V_W^",2068:" 42F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVPMP RWFYGZIZKYNXOVP RRPTQURVZW[Y[ZYZX RURWYXZYZZY RF[M[",2069:" 35G^ZH[H\\F[L[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJUI[JYKY",2070:" 16H]UFO[ RVFP[ ROFLLNF]F\\L\\F RL[S[",2071:" 25F_NFKQJUJXKZN[R[UZWXXU\\F ROFLQKUKXLZN[ RKFRF RYF_F",2072:" 15H\\NFO[ ROFPY R\\FO[ RLFRF RXF^F",2073:" 24E_MFK[ RNFLY RUFK[ RUFS[ RVFTY R]FS[ RJFQF RZF`F",2074:" 21G]NFU[ ROFV[ R\\FH[ RLFRF RXF^F RF[L[ RR[X[",2075:" 20H]NFRPO[ ROFSPP[ R]FSP RLFRF RYF_F RL[S[",2076:" 16G][FH[ R\\FI[ ROFLLNF\\F RH[V[XUU[",2077:" 46H\\KILKXWYYY[ RLLXX RKIKKLMXYY[ RPPLTKVKXLZK[ RKVMZ RLTLVMXMZK[ RSSXN RVIVLWNYNYLWKVI RVIWLYN",2101:" 39I]NONPMPMONNPMTMVNWOXQXXYZZ[ RWOWXXZZ[[[ RWQVRPSMTLVLXMZP[S[UZWX RPSNTMVMXNZP[",2102:" 33G\\LFL[ RMFM[ RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIFMF",2103:" 28H[WPVQWRXQXPVNTMQMNNLPKSKULXNZQ[S[VZXX RQMONMPLSLUMXOZQ[",2104:" 36H]WFW[ RXFX[ RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTFXF RW[[[",2105:" 31H[LSXSXQWOVNTMQMNNLPKSKULXNZQ[S[VZXX RWSWPVN RQMONMPLSLUMXOZQ[",2106:" 22KXUGTHUIVHVGUFSFQGPIP[ RSFRGQIQ[ RMMUM RM[T[",2107:" 60I\\QMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM RONNPNTOV RUVVTVPUN RVOWNYMYNWN RNUMVLXLYM[P\\U\\X]Y^ RLYMZP[U[X\\Y^Y_XaUbObLaK_K^L\\O[",2108:" 28G]LFL[ RMFM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIFMF RI[P[ RT[[[",2109:" 18MXRFQGRHSGRF RRMR[ RSMS[ ROMSM RO[V[",2110:" 25MXSFRGSHTGSF RTMT_SaQbObNaN`O_P`Oa RSMS_RaQb RPMTM",2111:" 27G\\LFL[ RMFM[ RWMMW RRSX[ RQSW[ RIFMF RTMZM RI[P[ RT[Z[",2112:" 12MXRFR[ RSFS[ ROFSF RO[V[",2113:" 44BcGMG[ RHMH[ RHPJNMMOMRNSPS[ ROMQNRPR[ RSPUNXMZM]N^P^[ RZM\\N]P][ RDMHM RD[K[ RO[V[ RZ[a[",2114:" 28G]LML[ RMMM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIMMM RI[P[ RT[[[",2115:" 36H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2116:" 36G\\LMLb RMMMb RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIMMM RIbPb",2117:" 33H\\WMWb RXMXb RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTb[b",2118:" 23IZNMN[ ROMO[ ROSPPRNTMWMXNXOWPVOWN RKMOM RK[R[",2119:" 32J[WOXMXQWOVNTMPMNNMOMQNRPSUUWVXW RMPNQPRUTWUXVXYWZU[Q[OZNYMWM[NY",2120:" 16KZPFPWQZS[U[WZXX RQFQWRZS[ RMMUM",2121:" 28G]LMLXMZP[R[UZWX RMMMXNZP[ RWMW[ RXMX[ RIMMM RTMXM RW[[[",2122:" 15I[LMR[ RMMRY RXMR[ RJMPM RTMZM",2123:" 24F^JMN[ RKMNX RRMN[ RRMV[ RSMVX RZMV[ RGMNM RWM]M",2124:" 21H\\LMW[ RMMX[ RXML[ RJMPM RTMZM RJ[P[ RT[Z[",2125:" 22H[LMR[ RMMRY RXMR[P_NaLbKbJaK`La RJMPM RTMZM",2126:" 16I[WML[ RXMM[ RMMLQLMXM RL[X[XWW[",2127:" 40G^QMNNLPKRJUJXKZN[P[RZUWWTYPZM RQMONMPLRKUKXLZN[ RQMSMUNVPXXYZZ[ RSMTNUPWXXZZ[[[",2128:" 57G\\TFQGOIMMLPKTJZIb RTFRGPINMMPLTKZJb RTFVFXGYHYKXMWNTOPO RVFXHXKWMVNTO RPOTPVRWTWWVYUZR[P[NZMYLV RPOSPURVTVWUYTZR[",2129:" 28H\\IPKNMMOMQNROSRSVRZOb RJOLNPNRO RZMYPXRSYP^Nb RYMXPWRSY",2130:" 44I\\VNTMRMONMQLTLWMYNZP[R[UZWWXTXQWOSJRHRFSEUEWFYH RRMPNNQMTMXNZ RR[TZVWWTWPVNTKSISGTFVFYH",2131:" 32I[XPVNTMPMNNNPPRSS RPMONOPQRSS RSSNTLVLXMZP[S[UZWX RSSOTMVMXNZP[",2132:" 31I[TFRGQHQIRJUKZKZJWKSMPOMRLULWMYP[S]T_TaSbQbPa RULQONRMUMWNYP[",2133:" 32G]HQIOKMNMONOPNTL[ RMMNNNPMTK[ RNTPPRNTMVMXNYOYRXWUb RVMXOXRWWTb",2134:" 44F]GQHOJMMMNNNPMUMXNZO[ RLMMNMPLULXMZO[Q[SZUXWUXRYMYIXGVFTFRHRJSMUPWRZT RSZUWVUWRXMXIWGVF",2135:" 15LXRMPTOXOZP[S[UYVW RSMQTPXPZQ[",2136:" 29H\\NMJ[ ROMK[ RXMYNZNYMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW",2137:" 23H\\KFMFOGPHQJWXXZY[ RMFOHPJVXWZY[Z[ RRMJ[ RRMK[",2138:" 28F]MMGb RNMHb RMPLVLYN[P[RZTXVU RXMUXUZV[Y[[Y\\W RYMVXVZW[",2139:" 24H\\NML[ ROMNSMXL[ RYMXQVU RZMYPXRVUTWQYOZL[ RKMOM",2140:" 45IZTFRGQHQIRJUKXK RUKQLOMNONQPSSTVT RUKRLPMOOOQQSST RSTOUMVLXLZN\\S^T_TaRbPb RSTPUNVMXMZO\\S^",2141:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2142:" 22G]PNL[ RPNM[ RVNV[ RVNW[ RIPKNNM[M RIPKONN[N",2143:" 31H[LVMYNZP[R[UZWWXTXQWOVNTMRMONMQLTHb RR[TZVWWTWPVN RRMPNNQMTIb",2144:" 35H][MQMNNLQKTKWLYMZO[Q[TZVWWTWQVOUNSM RQMONMQLTLXMZ RQ[SZUWVTVPUN RUN[N",2145:" 16H\\SNP[ RSNQ[ RJPLNOMZM RJPLOONZN",2146:" 31H\\IQJOLMOMPNPPNVNYP[ RNMONOPMVMYNZP[Q[TZVXXUYRYOXMWNXOYR RXUYO",2147:" 37G]ONMOKQJTJWKYLZN[Q[TZWXYUZRZOXMVMTORSPXMb RJWLYNZQZTYWWYU RZOXNVNTPRSPYNb",2148:" 23I[KMMMONPPU_VaWb RMMNNOPT_UaWbYb RZMYOWRM]K`Jb",2149:" 34F]UFOb RVFNb RGQHOJMMMNNNPMUMXOZRZTYWVYS RLMMNMPLULXMZO[R[TZVXXUYS[M",2150:" 44F]JQLOONNMLNJQITIWJZK[M[OZQWRT RIWJYKZMZOYQW RQTQWRZS[U[WZYWZTZQYNXMWNYOZQ RQWRYSZUZWYYW",2151:" 39H]XMVTUXUZV[Y[[Y\\W RYMWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2152:" 36H[PFLSLVMYNZ RQFMS RMSNPPNRMTMVNWOXQXTWWUZR[P[NZMWMS RVNWPWTVWTZR[ RMFQF",2153:" 25I[WPWQXQXPWNUMRMONMQLTLWMYNZP[R[UZWW RRMPNNQMTMXNZ",2154:" 42H]ZFVTUXUZV[Y[[Y\\W R[FWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RWF[F",2155:" 26I[MVQUTTWRXPWNUMRMONMQLTLWMYNZP[R[UZWX RRMPNNQMTMXNZ",2156:" 35KZZGYHZI[H[GZFXFVGUHTJSMP[O_Na RXFVHUJTNRWQ[P^O`NaLbJbIaI`J_K`Ja ROMYM",2157:" 43H\\YMU[T^RaObLbJaI`I_J^K_J` RXMT[S^QaOb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2158:" 31H]PFJ[ RQFK[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W RMFQF",2159:" 26LYUFTGUHVGUF RMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2160:" 32LYVFUGVHWGVF RNQOOQMTMUNUQR[Q^P`OaMbKbJaJ`K_L`Ka RSMTNTQQ[P^O`Mb",2161:" 34H\\PFJ[ RQFK[ RXNWOXPYOYNXMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW RMFQF",2162:" 18MYUFQTPXPZQ[T[VYWW RVFRTQXQZR[ RRFVF",2163:" 52AbBQCOEMHMINIPHTF[ RGMHNHPGTE[ RHTJPLNNMPMRNSOSQP[ RPMRORQO[ RRTTPVNXMZM\\N]O]Q[W[Z\\[ RZM\\O\\QZWZZ[[^[`YaW",2164:" 37F]GQHOJMMMNNNPMTK[ RLMMNMPLTJ[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W",2165:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2166:" 42G\\HQIOKMNMONOPNTJb RMMNNNPMTIb RNTOQQNSMUMWNXOYQYTXWVZS[Q[OZNWNT RWNXPXTWWUZS[ RFbMb",2167:" 33H\\XMRb RYMSb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RObVb",2168:" 26IZJQKOMMPMQNQPPTN[ ROMPNPPOTM[ RPTRPTNVMXMYNYOXPWOXN",2169:" 28J[XOXPYPYOXNUMRMONNONQORVVWW RNPOQVUWVWYVZS[P[MZLYLXMXMY",2170:" 18KYTFPTOXOZP[S[UYVW RUFQTPXPZQ[ RNMWM",2171:" 37F]GQHOJMMMNNNQLWLYN[ RLMMNMQKWKYLZN[P[RZTXVT RXMVTUXUZV[Y[[Y\\W RYMWTVXVZW[",2172:" 26H\\IQJOLMOMPNPQNWNYP[ RNMONOQMWMYNZP[Q[TZVXXUYQYMXMYO",2173:" 41C`DQEOGMJMKNKQIWIYK[ RIMJNJQHWHYIZK[M[OZQXRV RTMRVRYSZU[W[YZ[X\\V]R]M\\M]O RUMSVSYU[",2174:" 42H\\KQMNOMRMSOSR RQMRORRQVPXNZL[K[JZJYKXLYKZ RQVQYR[U[WZYW RYNXOYPZOZNYMXMVNTPSRRVRYS[",2175:" 41G\\HQIOKMNMONOQMWMYO[ RMMNNNQLWLYMZO[Q[SZUXWT RZMV[U^SaPbMbKaJ`J_K^L_K` RYMU[T^RaPb",2176:" 31H\\YMXOVQNWLYK[ RLQMOOMRMVO RMOONRNVOXO RLYNYRZUZWY RNYR[U[WYXW",2177:" 43G^VGUHVIWHWGUFRFOGMILLL[ RRFPGNIMLM[ R\\G[H\\I]H]G\\FZFXGWIW[ RZFYGXIX[ RIM[M RI[P[ RT[[[",2178:" 33G]WGVHWIXHWGUFRFOGMILLL[ RRFPGNIMLM[ RWMW[ RXMX[ RIMXM RI[P[ RT[[[",2179:" 35G]VGUHVIWHWGUF RXFRFOGMILLL[ RRFPGNIMLM[ RWHW[ RXFX[ RIMWM RI[P[ RT[[[",2180:" 54BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R]G\\H]I^H]G[FXFUGSIRLR[ RXFVGTISLS[ R]M][ R^M^[ RDM^M RD[K[ RO[V[ RZ[a[",2181:" 56BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R\\G[H\\I]H]G[F R^FXFUGSIRLR[ RXFVGTISLS[ R]H][ R^F^[ RDM]M RD[K[ RO[V[ RZ[a[",2182:" 12MXRMR[ RSMS[ ROMSM RO[V[",2184:" 25IZWNUMRMONMPLSLVMYNZQ[T[VZ RRMPNNPMSMVNYOZQ[ RMTUT",2185:" 43I\\TFQGOJNLMOLTLXMZO[Q[TZVWWUXRYMYIXGVFTF RTFRGPJOLNOMTMXNZO[ RQ[SZUWVUWRXMXIWGVF RNPWP",2186:" 42G]UFOb RVFNb RQMMNKPJSJVKXMZP[S[WZYXZUZRYPWNTMQM RQMNNLPKSKVLXNZP[ RS[VZXXYUYRXPVNTM",2187:" 27I[TMVNXPXOWNTMQMNNMOLQLSMUOWSZ RQMONNOMQMSNUSZT\\T^S_Q_",2190:" 45G]LMKNJPJRKUOYP[ RJRKTOXP[P]O`MbLbKaJ_J\\KXMTOQRNTMVMYNZPZTYXWZU[T[SZSXTWUXTY RVMXNYPYTXXWZ",2191:" 69E_YGXHYIZHYGWFTFQGOINKMNLRJ[I_Ha RTFRGPIOKNNLWK[J^I`HaFbDbCaC`D_E`Da R_G^H_I`H`G_F]F[GZHYJXMU[T_Sa R]F[HZJYNWWV[U^T`SaQbObNaN`O_P`Oa RIM^M",2192:" 52F^[GZH[I\\H[GXFUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea RYMWTVXVZW[Z[\\Y]W RZMXTWXWZX[ RJMZM",2193:" 54F^YGXHYIZHZGXF R\\FUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea R[FWTVXVZW[Z[\\Y]W R\\FXTWXWZX[ RJMYM",2194:" 86@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R`G_H`IaH`G]FZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R^M\\T[X[Z\\[_[aYbW R_M]T\\X\\Z][ RDM_M",2195:" 88@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R^G]H^I_H_G]F RaFZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R`F\\T[X[Z\\[_[aYbW RaF]T\\X\\Z][ RDM^M",2196:" 20LYMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2200:" 40H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF RQFOGNHMJLOLRMWNYOZQ[ RS[UZVYWWXRXOWJVHUGSF",2201:" 11H\\NJPISFS[ RRGR[ RN[W[",2202:" 45H\\LJMKLLKKKJLHMGPFTFWGXHYJYLXNUPPRNSLUKXK[ RTFVGWHXJXLWNTPPR RKYLXNXSZVZXYYX RNXS[W[XZYXYV",2203:" 47H\\LJMKLLKKKJLHMGPFTFWGXIXLWNTOQO RTFVGWIWLVNTO RTOVPXRYTYWXYWZT[P[MZLYKWKVLUMVLW RWQXTXWWYVZT[",2204:" 13H\\THT[ RUFU[ RUFJUZU RQ[X[",2205:" 39H\\MFKP RKPMNPMSMVNXPYSYUXXVZS[P[MZLYKWKVLUMVLW RSMUNWPXSXUWXUZS[ RMFWF RMGRGWF",2206:" 48H\\WIVJWKXJXIWGUFRFOGMILKKOKULXNZQ[S[VZXXYUYTXQVOSNRNOOMQLT RRFPGNIMKLOLUMXOZQ[ RS[UZWXXUXTWQUOSN",2207:" 31H\\KFKL RKJLHNFPFUIWIXHYF RLHNGPGUI RYFYIXLTQSSRVR[ RXLSQRSQVQ[",2208:" 63H\\PFMGLILLMNPOTOWNXLXIWGTFPF RPFNGMIMLNNPO RTOVNWLWIVGTF RPOMPLQKSKWLYMZP[T[WZXYYWYSXQWPTO RPONPMQLSLWMYNZP[ RT[VZWYXWXSWQVPTO",2209:" 48H\\XMWPURRSQSNRLPKMKLLINGQFSFVGXIYLYRXVWXUZR[O[MZLXLWMVNWMX RQSORMPLMLLMIOGQF RSFUGWIXLXRWVVXTZR[",2210:" 6MWRYQZR[SZRY",2211:" 8MWR[QZRYSZS\\R^Q_",2212:" 12MWRMQNROSNRM RRYQZR[SZRY",2213:" 14MWRMQNROSNRM RR[QZRYSZS\\R^Q_",2214:" 15MWRFQHRTSHRF RRHRN RRYQZR[SZRY",2215:" 32I[MJNKMLLKLJMHNGPFSFVGWHXJXLWNVORQRT RSFUGVHWJWLVNTP RRYQZR[SZRY",2216:" 6NVRFQM RSFQM",2217:" 12JZNFMM ROFMM RVFUM RWFUM",2218:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",2219:" 9JZRFRR RMIWO RWIMO",2220:" 3G][BIb",2221:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",2222:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",2223:" 12KYOBOb RPBPb ROBVB RObVb",2224:" 12KYTBTb RUBUb RNBUB RNbUb",2225:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",2226:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",2227:" 4KYUBNRUb",2228:" 4KYOBVROb",2229:" 3NVRBRb",2230:" 6KYOBOb RUBUb",2231:" 3E_IR[R",2232:" 6E_RIR[ RIR[R",2233:" 9F^RJR[ RJRZR RJ[Z[",2234:" 9F^RJR[ RJJZJ RJRZR",2235:" 6G]KKYY RYKKY",2236:" 6MWRQQRRSSRRQ",2237:" 15E_RIQJRKSJRI RIR[R RRYQZR[SZRY",2238:" 6E_IO[O RIU[U",2239:" 9E_YIK[ RIO[O RIU[U",2240:" 9E_IM[M RIR[R RIW[W",2241:" 4F^ZIJRZ[",2242:" 4F^JIZRJ[",2243:" 10F^ZFJMZT RJVZV RJ[Z[",2244:" 10F^JFZMJT RJVZV RJ[Z[",2245:" 21F_[WYWWVUTRPQOONMNKOJQJSKUMVOVQURTUPWNYM[M",2246:" 24F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",2247:" 8G]JTROZT RJTRPZT",2248:" 7LXTFOL RTFUGOL",2249:" 7LXPFUL RPFOGUL",2250:" 18H\\KFLHNJQKSKVJXHYF RKFLINKQLSLVKXIYF",2251:" 8MWRHQGRFSGSIRKQL",2252:" 8MWSFRGQIQKRLSKRJ",2253:" 8MWRHSGRFQGQIRKSL",2254:" 8MWQFRGSISKRLQKRJ",2255:" 10E[HMLMRY RKMR[ R[BR[",2256:" 13F^ZJSJOKMLKNJQJSKVMXOYSZZZ",2257:" 13F^JJJQKULWNYQZSZVYXWYUZQZJ",2258:" 13F^JJQJUKWLYNZQZSYVWXUYQZJZ",2259:" 13F^JZJSKOLMNKQJSJVKXMYOZSZZ",2260:" 16F^ZJSJOKMLKNJQJSKVMXOYSZZZ RJRVR",2261:" 11E_XP[RXT RUMZRUW RIRZR",2262:" 11JZPLRITL RMORJWO RRJR[",2263:" 11E_LPIRLT ROMJROW RJR[R",2264:" 11JZPXR[TX RMURZWU RRIRZ",2265:" 44I\\XRWOVNTMRMONMQLTLWMYNZP[R[UZWXXUYPYKXHWGUFRFPGOHOIPIPH RRMPNNQMTMXNZ RR[TZVXWUXPXKWHUF",2266:" 15H\\JFR[ RKFRY RZFR[ RJFZF RKGYG",2267:" 10AbDMIMRY RHNR[ Rb:R[",2268:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2269:" 50F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia RQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",2270:" 26F_\\S[UYVWVUUTTQPPONNLNJOIQISJULVNVPUQTTPUOWNYN[O\\Q\\S",2271:" 32F^[FI[ RNFPHPJOLMMKMIKIIJGLFNFPGSHVHYG[F RWTUUTWTYV[X[ZZ[X[VYTWT",2272:" 49F_[NZO[P\\O\\N[MZMYNXPVUTXRZP[M[JZIXIUJSPORMSKSIRGPFNGMIMKNNPQUXWZZ[[[\\Z\\Y RM[KZJXJUKSMQ RMKNMVXXZZ[",2273:" 56E`WNVLTKQKOLNMMPMSNUPVSVUUVS RQKOMNPNSOUPV RWKVSVUXVZV\\T]Q]O\\L[JYHWGTFQFNGLHJJILHOHRIUJWLYNZQ[T[WZYYZX RXKWSWUXV",2274:" 42H\\PBP_ RTBT_ RXIWJXKYJYIWGTFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[P[MZKXKWLVMWLX",2275:" 12H]SFLb RYFRb RLQZQ RKWYW",2276:" 46JZUITJUKVJVIUGSFQFOGNINKOMQOVR ROMTPVRWTWVVXTZ RPNNPMRMTNVPXU[ RNVSYU[V]V_UaSbQbOaN_N^O]P^O_",2277:" 30JZRFQHRJSHRF RRFRb RRQQTRbSTRQ RLMNNPMNLLM RLMXM RTMVNXMVLTM",2278:" 56JZRFQHRJSHRF RRFRT RRPQRSVRXQVSRRP RRTRb RR^Q`RbS`R^ RLMNNPMNLLM RLMXM RTMVNXMVLTM RL[N\\P[NZL[ RL[X[ RT[V\\X[VZT[",2279:" 12I\\XFX[ RKFXF RPPXP RK[X[",2281:" 38E`QFNGKIILHOHRIUKXNZQ[T[WZZX\\U]R]O\\LZIWGTFQF RROQPQQRRSRTQTPSORO RRPRQSQSPRP",2282:" 45J[PFNGOIQJ RPFOGOI RUFWGVITJ RUFVGVI RQJOKNLMNMQNSOTQUTUVTWSXQXNWLVKTJQJ RRUR[ RSUS[ RNXWX",2283:" 27I\\RFOGMILLLMMPORRSSSVRXPYMYLXIVGSFRF RRSR[ RSSS[ RNWWW",2284:" 28D`PFMGJIHLGOGSHVJYM[P\\T\\W[ZY\\V]S]O\\LZIWGTFPF RRFR\\ RGQ]Q",2285:" 31G`PMMNKPJSJTKWMYPZQZTYVWWTWSVPTNQMPM R]GWG[HUN R]G]M\\IVO R\\HVN",2286:" 28F\\IIJGLFOFQGRIRLQOPQNSKU ROFPGQIQMPPNS RVFT[ RWFS[ RKUYU",2287:" 30I\\MFMU RNFMQ RMQNOONQMTMWNXPXRWTUV RTMVNWPWRTXTZU[W[YY RKFNF",2288:" 44I\\RNOOMQLTLUMXOZR[S[VZXXYUYTXQVOSNRN RRHNJRFRN RSHWJSFSN RRSQTQURVSVTUTTSSRS RRTRUSUSTRT",2289:" 37G^QHRFR[ RTHSFS[ RJHKFKMLPNRQSRS RMHLFLNMQ R[HZFZMYPWRTSSS RXHYFYNXQ RNWWW",2290:" 31G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[Y[YVX[",2291:" 24H[YGUGQHNJLMKPKSLVNYQ[U\\Y\\ RYGVHSJQMPPPSQVSYV[Y\\",2292:" 27F_OQMQKRJSIUIWJYKZM[O[QZRYSWSURSQROQ RSHPQ RZJRR R\\QST",2293:" 12H\\OKUY RUKOY RKOYU RYOKU",2294:" 48F^NVLUKUIVHXHYI[K\\L\\N[OYOXNVKRJOJMKJMHPGTGWHYJZMZOYRVVUXUYV[X\\Y\\[[\\Y\\X[VYUXUVV RJMKKMIPHTHWIYKZM",2295:" 48F^NMLNKNIMHKHJIHKGLGNHOJOKNMKQJTJVKYM[P\\T\\W[YYZVZTYQVMUKUJVHXGYG[H\\J\\K[MYNXNVM RJVKXMZP[T[WZYXZV",2301:" 40F_JMILIJJHLGNGPHQIRKSP RIJKHMHOIPJQLRPR[ R[M\\L\\J[HYGWGUHTISKRP R\\JZHXHVIUJTLSPS[",2302:" 51F^IGJKKMMOPPTPWOYMZK[G RIGJJKLMNPOTOWNYLZJ[G RPONPMQLSLVMXOZQ[S[UZWXXVXSWQVPTO RPPNQMSMVNY RVYWVWSVQTP",2303:" 30F^MJMV RNKNU RVKVU RWJWV RIGKIMJPKTKWJYI[G RIYKWMVPUTUWVYW[Y",2304:" 48F^[ILIJJILINJPLQNQPPQNQLPJ[J RIMJOKPMQ RQMPKOJMI RIXXXZW[U[SZQXPVPTQSSSUTWIW R[TZRYQWP RSTTVUWWX",2305:" 48F]OUMTLTJUIWIXJZL[M[OZPXPWOUJPINIKJILHOGSGWHYJZLZOYRVUUWUYV[X[YZZX RMSKPJNJKKILH RSGVHXJYLYOXRVU",2306:" 48G_HKKHMKMV RJILLLV RMKPHRKRU ROIQLQU RRKUHWKW[ RTIVLV[ RWKZH[J\\M\\P[SZUXWUYP[ RYIZJ[M[PZSYUWWTYP[",2307:" 41F^ISMSLRKOKMLJNHQGSGVHXJYMYOXRWS[S RITOTMRLOLMMJOHQG RSGUHWJXMXOWRUT[T RKXYX RKYYY",2308:" 30F_GLJIMLMX RIJLMLX RMLPISLSX ROJRMRX RSLVIYLYW[Y RUJXMXXZZ]W",2309:" 33G]ZIJY RZIWJQJ RXKUKQJ RZIYLYR RXKXNYR RQRJR RPSMSJR RQRQY RPSPVQY",2310:" 33F^HOJKOU RJMOWRPWPZO[M[KZIXHWHUITKTMUPVRWUWXUZ RWHVIUKUMWQXTXWWYUZ",2311:" 36F^IOLLPN RKMOORLUN RQMTOWLYN RVMXO[L RIULRPT RKSOURRUT RQSTUWRYT RVSXU[R",2312:" 48F^JHNJPLQOQRPUNWJY RJHMIOJQLRO RRRQUOWMXJY RZHWIUJSLRO RRRSUUWWXZY RZHVJTLSOSRTUVWZY RIP[P RIQ[Q",2317:" 12NVQQQSSSSQQQ RQQSS RSQQS",2318:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2319:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2320:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2321:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2322:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2323:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2324:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2325:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2326:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2327:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2328:" 49JZMLWX RMLONQOTOVNWMWKUKUMTO RONTO RQOWM RVKVN RULWL RWXUVSUPUNVMWMYOYOWPU RUVPU RSUMW RNVNY RMXOX",2329:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLWY",2330:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2331:"103EfNSOUQVSVUUVSVQUOSNQNOONPMSMVNYP[S\\V\\Y[[Y\\W]T]P\\MZJXIUHRHOIMJKLIOHSHXI]KaMcPeTfYf]e`cba RKLJNIRIXJ\\L`NbQdUeYe]d_cba RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU RaLaNcNcLaL RbLbN RaMcM RaVaXcXcVaV RbVbX RaWcW",2332:" 30D`H@Hd RM@Md RW@Wd R\\@\\d RMMWK RMNWL RMOWM RMWWU RMXWV RMYWW",2367:" 12NVQQQSSSSQQQ RQQSS RSQQS",2368:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2369:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2370:" 32H\\PMMNLOKQKSLUMVPWTWWVXUYSYQXOWNTMPM RMNLPLSMUNVPW RWVXTXQWOVNTM",2371:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2372:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2373:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2374:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2375:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2376:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2377:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2378:" 36JZQCVMRTRU RULQS RTITKPRRUUY RW\\UYSXQXOYN[N]O_Ra RW\\UZSYOYO]P_Ra RSXPZN]",2379:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLSY",2380:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2381:" 89IjNQOOQNSNUOVQVSUUSVQVOUNTMQMNNKPISHWH[I^K`NaRaW`[_]]`ZcVfQiMk RWHZI]K_N`R`W_[^]\\`YcTgQi RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU ReLeNgNgLeL RfLfN ReMgM ReVeXgXgVeV RfVfX ReWgW",2382:" 85D`H>Hf RI>If RM>Mf RQBSBSDQDQAR?T>W>Y?[A\\D\\I[LYNWOUOSNRLQNOQNROSQVRXSVUUWUYV[X\\[\\`[cYeWfTfReQcQ`S`SbQb RRBRD RQCSC RY?ZA[D[IZLYN RRLRNPQNRPSRVRX RYVZX[[[`ZcYe RR`Rb RQaSa",2401:" 21AcHBHb RIBIb R[B[b R\\B\\b RDB`B RDbMb RWb`b",2402:" 23BaGBQPFb RFBPP REBPQ REB\\B^I[B RGa\\a RFb\\b^[[b",2403:" 28I[X+U1R8P=OANFMNMVN^OcPgRlUsXy RU1S6Q<P@OFNNNVO^PdQhSnUs",2404:" 28I[L+O1R8T=UAVFWNWVV^UcTgRlOsLy RO1Q6S<T@UFVNVVU^TdShQnOs",2405:" 14I[M+MRMy RN+NRNy RM+X+ RMyXy",2406:" 14I[V+VRVy RW+WRWy RL+W+ RLyWy",2407:" 48I[V+S-Q/P1O4O8P<TDUGUJTMRP RS-Q0P4P8Q;UCVGVJUMRPNRRTUWVZV]UaQiPlPpQtSw RRTTWUZU]T`PhOlOpPsQuSwVy",2408:" 48I[N+Q-S/T1U4U8T<PDOGOJPMRP RQ-S0T4T8S;OCNGNJOMRPVRRTOWNZN]OaSiTlTpStQw RRTPWOZO]P`ThUlUpTsSuQwNy",2409:" 32I[V.S1Q4O8N=NCOIPMSXT\\UbUgTlSoQs RS1Q5P8O=OBPHQLTWU[VaVgUlSpQsNv",2410:" 32I[N.Q1S4U8V=VCUITMQXP\\ObOgPlQoSs RQ1S5T8U=UBTHSLPWO[NaNgOlQpSsVv",2411:' 147Z:RARRo R@RQo R?RRr RZ"VJRr',2412:" 57Ca].\\.[/[0\\1]1^0^.],[+Y+W,U.T0S3R:QJQjPsOv R\\/\\0]0]/\\/ RR:Rj RU.T1S:SZRjQqPtOvMxKyIyGxFvFtGsHsItIuHvGv RGtGuHuHtGt",2501:" 20H\\RFJ[ RRIK[J[ RRIY[Z[ RRFZ[ RMUWU RLVXV",2502:" 44H\\LFL[ RMGMZ RLFTFWGXHYJYMXOWPTQ RMGTGWHXJXMWOTP RMPTPWQXRYTYWXYWZT[L[ RMQTQWRXTXWWYTZMZ",2503:" 38H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZV RZKYKXIWHUGQGOHMKLNLSMVOYQZUZWYXXYVZV",2504:" 32H]LFL[ RMGMZ RLFSFVGXIYKZNZSYVXXVZS[L[ RMGSGVHWIXKYNYSXVWXVYSZMZ",2505:" 27I\\MFM[ RNGNZ RMFYF RNGYGYF RNPTPTQ RNQTQ RNZYZY[ RM[Y[",2506:" 21I[MFM[ RNGN[M[ RMFYF RNGYGYF RNPTPTQ RNQTQ",2507:" 44H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZVZRUR RZKYKXIWHUGQGOHNIMKLNLSMVNXOYQZUZWYXXYVYSUSUR",2508:" 22G]KFK[ RKFLFL[K[ RYFXFX[Y[ RYFY[ RLPXP RLQXQ",2509:" 8NWRFR[S[ RRFSFS[",2510:" 20J[VFVVUYSZQZOYNVMV RVFWFWVVYUZS[Q[OZNYMV",2511:" 22H]LFL[M[ RLFMFM[ RZFYFMR RZFMS RPOY[Z[ RQOZ[",2512:" 14IZMFM[ RMFNFNZ RNZYZY[ RM[Y[",2513:" 26F^JFJ[ RKKK[J[ RKKR[ RJFRX RZFRX RYKR[ RYKY[Z[ RZFZ[",2514:" 20G]KFK[ RLIL[K[ RLIY[ RKFXX RXFXX RXFYFY[",2515:" 40G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF RQGNHLKKNKSLVNYQZSZVYXVYSYNXKVHSGQG",2516:" 27H\\LFL[ RMGM[L[ RLFUFWGXHYJYMXOWPUQMQ RMGUGWHXJXMWOUPMP",2517:" 48G]PFNGLIKKJNJSKVLXNZP[T[VZXXYVZSZNYKXIVGTFPF RQGNHLKKNKSLVNYQZSZVYXVYSYNXKVHSGQG RSXX]Y] RSXTXY]",2518:" 34H\\LFL[ RMGM[L[ RLFTFWGXHYJYMXOWPTQMQ RMGTGWHXJXMWOTPMP RRQX[Y[ RSQY[",2519:" 43H\\YIWGTFPFMGKIKKLMMNOOTQVRWSXUXXWYTZPZNYMXKX RYIWIVHTGPGMHLILKMMONTPVQXSYUYXWZT[P[MZKX",2520:" 15J[RGR[ RSGS[R[ RLFYFYG RLFLGYG",2521:" 24G]KFKULXNZQ[S[VZXXYUYF RKFLFLUMXNYQZSZVYWXXUXFYF",2522:" 14H\\JFR[ RJFKFRX RZFYFRX RZFR[",2523:" 26E_GFM[ RGFHFMX RRFMX RRIM[ RRIW[ RRFWX R]F\\FWX R]FW[",2524:" 16H\\KFX[Y[ RKFLFY[ RYFXFK[ RYFL[K[",2525:" 17I\\KFRPR[S[ RKFLFSP RZFYFRP RZFSPS[",2526:" 20H\\XFK[ RYFL[ RKFYF RKFKGXG RLZYZY[ RK[Y[",2551:" 38E\\XFVHTKQPOSLWIZG[E[DZDXEWFXEY RXFWJUTT[ RXFU[ RT[TYSVRTPRNQLQKRKTLWOZR[V[XZ",2552:" 70F^UGTHSJQOOUNWLZJ[ RTHSKQSPVOXMZJ[H[GZGXHWIXHY ROLNNMOKOJNJLKJMHOGRFXFZG[I[KZMXNTORO RXFYGZIZKYMXN RTOWPXQYSYVXYWZU[S[RZRXSU RTOVPWQXSXVWYU[",2553:" 41H]KHJJJLKNNOQOUNWMYKZIZGYFWFTGQJOMMQLULXMZP[R[UZWXXVXTWRURSSRU RWFUGRJPMNQMUMXNZP[",2554:" 43F]UGTHSJQOOUNWLZJ[ RTHSKQSPVOXMZJ[H[GZGXHWJWLXNZP[S[UZWXYTZOZLYIWGUFPFMGKIJKJMKNMNNMOK",2555:" 49I\\WIVJVLWMYMZKZIYGWFTFRGQHPJPLQNSO RTFRHQJQMSO RSOQONPLRKTKWLYMZO[R[UZWXXVXTWRURSSRU RQOOPMRLTLXMZ",2556:" 46G\\WHVJTORUQWOZM[ RQLPNNOLOKMKKLINGQF[FXGWHVKTSSVRXPZM[K[IZHYHXIWJXIY RSFWGXG ROSPRRQVQXPZMXT",2557:" 53G]JIIKIMJOLPOPROTNWKXHXGWFVFTGRIQKPNPQQSSTUTWSYQZO RWFUGSIRKQNQRST RZOYSWWUYSZO[L[JZIXIWJVKWJX RYSWVUXRZO[",2558:" 55F^LLKKKILGOFRFOQMWLYKZI[G[FZFXGWHXGY RRFOONRLWKYI[ RJTKSMRVOXN[L]J^H^G]F\\FZGXJWLURTVTYV[W[YZ[X R\\FZHXLVRUVUYV[",2559:" 33IYWHUKSPQUPWNZL[ RYLWNTOQOONNLNJOHQGUFYFWHVJTPRVQXOZL[J[IZIXJWKXJY",2560:" 34IZYFWHUKSPPYN] RYMWOTPQPOONMNKOIQGUFYFWIVKSTQXPZN]M^K_J^J\\KZMXOWRVVU",2561:" 59F^LLKKKIMGPFRFOQMWLYKZI[G[FZFXGWHXGY RRFOONRLWKYI[ RZGWKUMSNPO R]G\\H]I^H^G]F\\FZGWLVMTNPO RPOSPTRUYV[ RPORPSRTYV[W[YZ[X",2562:" 40I[MILKLMMOOPRPUOWNZK[H[GZFYFWGVHTKPUOWMZK[ RVHTLRSQVPXNZK[I[HZHXIWKWMXPZR[U[WZYX",2563:" 49D`RFNOKUIXGZE[C[BZBXCWDXCY RRFPMOQNVNZP[ RRFQJPOOVOZP[ R[FWORXP[ R[FYMXQWVWZY[Z[\\Z^X R[FZJYOXVXZY[",2564:" 38G^RFQJOPMULWJZH[F[EZEXFWGXFY RRFRKSVT[ RRFSKTVT[ R`G_H`IaHaG`F^F\\GZJYLWQUWT[",2565:" 34H]SFQGOIMLLNKRKVLYMZO[Q[TZVXXUYSZOZKYHXGWGUHSJQNPSPV RQGOJMNLRLVMYO[",2566:" 53F]UGTHSJQOOUNWLZJ[ RTHSKQSPVOXMZJ[H[GZGXHWIXHY ROLNNMOKOJNJLKJMHOGRFVFYGZH[J[MZOYPVQTQRP RVFXGYHZJZMYOXPVQ",2567:" 43H]UJULTNSOQPOPNNNLOIQGTFWFYGZIZMYPWSSWPYNZK[I[HZHXIWKWMXPZS[V[XZZX RWFXGYIYMXPVSSVOYK[",2568:" 65F^UGTHSJQOOUNWLZJ[ RTHSKQSPVOXMZJ[H[GZGXHWIXHY ROLNNMOKOJNJLKJMHOGRFWFZG[I[KZMYNVORO RWFYGZIZKYMXNVO RROUPVRWYX[ RROTPURVYX[Y[[Z]X",2569:" 36H\\NIMKMMNOPPSPVOXN[K\\H\\G[FZFXGWHVJUMSTRWPZN[ RVJUNTUSXQZN[K[IZHXHWIVJWIX",2570:" 38I[YHXJVOTUSWQZO[ RSLRNPONOMMMKNIPGSF\\FZGYHXKVSUVTXRZO[M[KZJYJXKWLXKY RUFYGZG",2571:" 39G]HJJGLFMFOHOKNNKVKYL[ RMFNHNKKSJVJYL[N[PZSWUTVR RZFVRUVUYW[X[ZZ\\X R[FWRVVVYW[",2572:" 36G\\HJJGLFMFOHOKNOLVLYM[ RMFNHNKLRKVKYM[N[QZTWVTXPYMZIZGYFXFWGVIVLWNYP[Q]Q",2573:" 41F]ILHLGKGIHGJFNFMHLLKUJ[ RLLLUK[ RVFTHRLOUMYK[ RVFUHTLSUR[ RTLTUS[ R`F^G\\IZLWUUYS[",2574:" 52H\\PKOLMLLKLIMGOFQFSGTITLSPQUOXMZJ[H[GZGXHWIXHY RQFRGSISLRPPUNXLZJ[ R]G\\H]I^H^G]F[FYGWIULSPRURXSZT[U[WZYX",2575:" 42G]JJLGNFOFQGQIOOORPT ROFPGPINONRPTRTUSWQYNZL R\\FZLWTUX R]F[LYQWUUXSZP[L[JZIXIWJVKWJX",2576:" 44G\\ZHYJWOVRUTSWQYOZL[ RSLRNPONOMMMKNIPGSF]F[GZHYKXOVUTXQZL[H[GZGXHWJWLXOZQ[T[WZYX RVFZG[G",2601:" 36H\\WMW[X[ RWMXMX[ RWPUNSMPMNNLPKSKULXNZP[S[UZWX RWPSNPNNOMPLSLUMXNYPZSZWX",2602:" 36H\\LFL[M[ RLFMFM[ RMPONQMTMVNXPYSYUXXVZT[Q[OZMX RMPQNTNVOWPXSXUWXVYTZQZMX",2603:" 32I[XPVNTMQMONMPLSLUMXOZQ[T[VZXX RXPWQVOTNQNOONPMSMUNXOYQZTZVYWWXX",2604:" 36H\\WFW[X[ RWFXFX[ RWPUNSMPMNNLPKSKULXNZP[S[UZWX RWPSNPNNOMPLSLUMXNYPZSZWX",2605:" 36I[MTXTXQWOVNTMQMONMPLSLUMXOZQ[T[VZXX RMSWSWQVOTNQNOONPMSMUNXOYQZTZVYWWXX",2606:" 24LZWFUFSGRJR[S[ RWFWGUGSH RTGSJS[ ROMVMVN ROMONVN",2607:" 48H\\XMWMW\\V_U`SaQaO`N_L_ RXMX\\W_UaSbPbNaL_ RWPUNSMPMNNLPKSKULXNZP[S[UZWX RWPSNPNNOMPLSLUMXNYPZSZWX",2608:" 25H\\LFL[M[ RLFMFM[ RMQPNRMUMWNXQX[ RMQPORNTNVOWQW[X[",2609:" 24NWRFQGQHRISITHTGSFRF RRGRHSHSGRG RRMR[S[ RRMSMS[",2610:" 24NWRFQGQHRISITHTGSFRF RRGRHSHSGRG RRMRbSb RRMSMSb",2611:" 22H[LFL[M[ RLFMFM[ RXMWMMW RXMMX RPTV[X[ RQSX[",2612:" 8NWRFR[S[ RRFSFS[",2613:" 42CbGMG[H[ RGMHMH[ RHQKNMMPMRNSQS[ RHQKOMNONQORQR[S[ RSQVNXM[M]N^Q^[ RSQVOXNZN\\O]Q][^[",2614:" 25H\\LML[M[ RLMMMM[ RMQPNRMUMWNXQX[ RMQPORNTNVOWQW[X[",2615:" 36I\\QMONMPLSLUMXOZQ[T[VZXXYUYSXPVNTMQM RQNOONPMSMUNXOYQZTZVYWXXUXSWPVOTNQN",2616:" 36H\\LMLbMb RLMMMMb RMPONQMTMVNXPYSYUXXVZT[Q[OZMX RMPQNTNVOWPXSXUWXVYTZQZMX",2617:" 36H\\WMWbXb RWMXMXb RWPUNSMPMNNLPKSKULXNZP[S[UZWX RWPSNPNNOMPLSLUMXNYPZSZWX",2618:" 21KYOMO[P[ ROMPMP[ RPSQPSNUMXM RPSQQSOUNXNXM",2619:" 50J[XPWNTMQMNNMPNRPSUUWV RVUWWWXVZ RWYTZQZNY ROZNXMX RXPWPVN RWOTNQNNO RONNPOR RNQPRUTWUXWXXWZT[Q[NZMX",2620:" 16MXRFR[S[ RRFSFS[ ROMVMVN ROMONVN",2621:" 25H\\LMLWMZO[R[TZWW RLMMMMWNYPZRZTYWW RWMW[X[ RWMXMX[",2622:" 14JZLMR[ RLMMMRY RXMWMRY RXMR[",2623:" 26F^IMN[ RIMJMNX RRMNX RRPN[ RRPV[ RRMVX R[MZMVX R[MV[",2624:" 16I[LMW[X[ RLMMMX[ RXMWML[ RXMM[L[",2625:" 17JZLMR[ RLMMMRY RXMWMRYNb RXMR[ObNb",2626:" 20I[VNL[ RXMNZ RLMXM RLMLNVN RNZXZX[ RL[X[",2651:" 33K[UUTSRRPRNSMTLVLXMZO[Q[SZTX RPRNTMVMYO[ RVRTXTZV[XZYY[V RWRUXUZV[",2652:" 23LZLVNSPO RSFMXMZO[P[RZTXUUURVVWWXWZV RTFNXNZO[",2653:" 22LXTSSTTTTSSRQROSNTMVMXNZP[S[VYXV RQROTNVNYP[",2654:" 33K[UUTSRRPRNSMTLVLXMZO[Q[SZTX RPRNTMVMYO[ RZFTXTZV[XZYY[V R[FUXUZV[",2655:" 23LXOYQXRWSUSSRRQROSNTMVMXNZP[S[VYXV RQROTNVNYP[",2656:" 27OXRRUOWLXIXGWFUGTIKdKfLgNfOcPZQ[S[UZVYXV RTISNRRO[M`Kd",2657:" 38K[UUTSRRPRNSMTLVLXMZO[Q[SZTX RPRNTMVMYO[ RVRPd RWRT[R`PdOfMgLfLdMaO_R]V[YY[V",2658:" 30L[LVNSPO RSFL[ RTFM[ ROUQSSRTRVSVUUXUZV[ RTRUSUUTXTZV[XZYY[V",2659:" 19NVSLRMSNTMSL RQROXOZQ[SZTYVV RRRPXPZQ[",2660:" 24NVSLRMSNTMSL RQRKd RRRO[M`KdJfHgGfGdHaJ_M]Q[TYVV",2661:" 31LZLVNSPO RSFL[ RTFM[ RURUSVSURTRRTOU ROURVSZT[ ROUQVRZT[U[XYZV",2662:" 17NVNVPSRO RUFOXOZQ[SZTYVV RVFPXPZQ[",2663:" 45E^EVGSIRKSKUI[ RIRJSJUH[ RKUMSORPRRSRUP[ RPRQSQUO[ RRUTSVRWRYSYUXXXZY[ RWRXSXUWXWZY[[Z\\Y^V",2664:" 32I[IVKSMROSOUM[ RMRNSNUL[ ROUQSSRTRVSVUUXUZV[ RTRUSUUTXTZV[XZYY[V",2665:" 29KYRRPRNSMTLVLXMZO[Q[SZTYUWUUTSRRQSQURWTXVXXWYV RPRNTMVMYO[",2666:" 30L[LVNSPO RQLHg RRLIg ROUQSSRTRVSVUUXUZV[ RTRUSUUTXTZV[XZYY[V",2667:" 35K[UUTSRRPRNSMTLVLXMZO[Q[SZ RPRNTMVMYO[ RVRPdPfQgSfTcT[V[YY[V RWRT[R`Pd",2668:" 24LZLVNSPRRSRUP[ RPRQSQUO[ RRUTSVRWRVU RVRVUWWXWZV",2669:" 22NZNVPSQQQSTUUWUYTZR[ RQSSUTWTYR[ RNZP[U[XYZV",2670:" 20NVNVPSRO RUFOXOZQ[SZTYVV RVFPXPZQ[ RPNVN",2671:" 27K[NRLXLZN[O[QZSXUU RORMXMZN[ RVRTXTZV[XZYY[V RWRUXUZV[",2672:" 23KZNRMTLWLZN[O[RZTXUUUR RORNTMWMZN[ RURVVWWXWZV",2673:" 36H]LRJTIWIZK[L[NZPX RMRKTJWJZK[ RRRPXPZR[S[UZWXXUXR RSRQXQZR[ RXRYVZW[W]V",2674:" 42JZJVLSNRPRQSQUPXOZM[L[KZKYLYKZ RWSVTWTWSVRURSSRUQXQZR[U[XYZV RQSRU RSSQU RPXQZ RQXOZ",2675:" 32K[NRLXLZN[O[QZSXUU RORMXMZN[ RVRPd RWRT[R`PdOfMgLfLdMaO_R]V[YY[V",2676:" 38LYLVNSPRRRTSTVSXPZN[ RRRSSSVRXPZ RN[P\\Q^QaPdNfLgKfKdLaO^R\\VYYV RN[O\\P^PaOdNf",2700:" 42H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF ROGMJLOLRMWOZ RNYQZSZVY RUZWWXRXOWJUG RVHSGQGNH",2701:" 12H\\NJPISFS[ RNJNKPJRHR[S[",2702:" 34H\\LKLJMHNGPFTFVGWHXJXLWNUQL[ RLKMKMJNHPGTGVHWJWLVNTQK[ RLZYZY[ RK[Y[",2703:" 48H\\MFXFQO RMFMGWG RWFPO RQNSNVOXQYTYUXXVZS[P[MZLYKWLW RPOSOVPXS RTOWQXTXUWXTZ RXVVYSZPZMYLW ROZLX",2704:" 18H\\UIU[V[ RVFV[ RVFKVZV RUILV RLUZUZV",2705:" 53H\\MFLO RNGMN RMFWFWG RNGWG RMNPMSMVNXPYSYUXXVZS[P[MZLYKWLW RLOMOONSNVOXR RTNWPXSXUWXTZ RXVVYSZPZMYLW ROZLX",2706:" 62H\\VGWIXIWGTFRFOGMJLOLTMXOZR[S[VZXXYUYTXQVOSNRNOOMQ RWHTGRGOH RPGNJMOMTNXQZ RMVOYRZSZVYXV RTZWXXUXTWQTO RXSVPSOROOPMS RQONQMT",2707:" 12H\\KFYFO[ RKFKGXG RXFN[O[",2708:" 68H\\PFMGLILKMMNNPOTPVQWRXTXWWYTZPZMYLWLTMRNQPPTOVNWMXKXIWGTFPF RNGMIMKNMPNTOVPXRYTYWXYWZT[P[MZLYKWKTLRNPPOTNVMWKWIVG RWHTGPGMH RLXOZ RUZXX",2709:" 62H\\WPURRSQSNRLPKMKLLINGQFRFUGWIXMXRWWUZR[P[MZLXMXNZ RWMVPSR RWNUQRRQRNQLN RPRMPLMLLMIPG RLKNHQGRGUHWK RSGVIWMWRVWTZ RUYRZPZMY",2710:" 16MXRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",2711:" 24MXTZS[R[QZQYRXSXTYT\\S^Q_ RRYRZSZSYRY RS[T\\ RTZS^",2712:" 32MXRMQNQORPSPTOTNSMRM RRNROSOSNRN RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",2713:" 40MXRMQNQORPSPTOTNSMRM RRNROSOSNRN RTZS[R[QZQYRXSXTYT\\S^Q_ RRYRZSZSYRY RS[T\\ RTZS^",2714:" 24MXRFRTST RRFSFST RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",2715:" 58I\\LKLJMHNGQFTFWGXHYJYLXNWOUPRQ RLKMKMJNHQGTGWHXJXLWNUORP RMIPG RUGXI RXMTP RRPRTSTSP RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",2716:" 24MXTFRGQIQLRMSMTLTKSJRJQK RRKRLSLSKRK RRGQK RQIRJ",2717:" 24MXTHSIRIQHQGRFSFTGTJSLQM RRGRHSHSGRG RSITJ RTHSL",2718:" 71F_\\MZMXNWPUVTXSYQZMZKYJWJUKSLRQOSMTKTISGQFPFNGMIMKNNPQUWXZZ[\\[ R\\M\\NZNXO RYNXPVVUXSZQ[M[KZJYIWIUJSLQQNRMSKSIRG RSHQGPGNH ROGNINKONQQVWXYZZ\\Z\\[",2719:" 51I\\RBR_S_ RRBSBS_ RWIYIWGTFQFNGLILKMMNNVRWSXUXWWYTZQZOYNX RWIVHTGQGNHMIMKNMVQXSYUYWXYWZT[Q[NZLXNX RXXUZ",2720:" 8G^[BIbJb R[B\\BJb",2721:" 24KYUBSDQGOKNPNTOYQ]S`UbVb RUBVBTDRGPKOPOTPYR]T`Vb",2722:" 24KYNBPDRGTKUPUTTYR]P`NbOb RNBOBQDSGUKVPVTUYS]Q`Ob",2723:" 39JZRFQGSQRR RRFRR RRFSGQQRR RMINIVOWO RMIWO RMIMJWNWO RWIVINOMO RWIMO RWIWJMNMO",2724:" 8F_JQ[Q[R RJQJR[R",2725:" 16F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",2726:" 16F_JM[M[N RJMJN[N RJU[U[V RJUJV[V",2727:" 11NWSFRGRM RSGRM RSFTGRM",2728:" 22I[NFMGMM RNGMM RNFOGMM RWFVGVM RWGVM RWFXGVM",2729:" 30KYQFOGNINKOMQNSNUMVKVIUGSFQF RQFNIOMSNVKUGQF RSFOGNKQNUMVISF",2750:" 42H]TFQGOIMLLOKSKVLYMZO[Q[TZVXXUYRZNZKYHXGVFTF RTFRGPINLMOLSLVMYO[ RQ[SZUXWUXRYNYKXHVF",2751:" 15H]TJO[ RVFP[ RVFSIPKNL RUIQKNL",2752:" 42H]OJPKOLNKNJOHPGSFVFYGZIZKYMWOTQPSMUKWI[ RVFXGYIYKXMVOPS RJYKXMXRZUZWYXW RMXR[U[WZXW",2753:" 50H]OJPKOLNKNJOHPGSFVFYGZIZKYMVOSP RVFXGYIYKXMVO RQPSPVQWRXTXWWYVZS[O[LZKYJWJVKULVKW RSPUQVRWTWWVYUZS[",2754:" 10H]XGR[ RYFS[ RYFJUZU",2755:" 39H]QFLP RQF[F RQGVG[F RLPMOPNSNVOWPXRXUWXUZR[O[LZKYJWJVKULVKW RSNUOVPWRWUVXTZR[",2756:" 46H]YIXJYKZJZIYGWFTFQGOIMLLOKSKWLYMZO[R[UZWXXVXSWQVPTOQOOPMRLT RTFRGPINLMOLSLXMZ RR[TZVXWVWRVP",2757:" 30H]NFLL R[FZIXLSRQUPWO[ RXLRRPUOWN[ RMIPFRFWI RNHPGRGWIYIZH[F",2758:" 63H]SFPGOHNJNMOOQPTPXOYNZLZIYGVFSF RSFQGPHOJOMPOQP RTPWOXNYLYIXGVF RQPMQKSJUJXKZN[R[VZWYXWXTWRVQTP RQPNQLSKUKXLZN[ RR[UZVYWWWSVQ",2759:" 46H]YMXOVQTRQROQNPMNMKNIPGSFVFXGYHZJZNYRXUVXTZQ[N[LZKXKWLVMWLX ROQNONKOIQGSF RXGYIYNXRWUUXSZQ[",2760:" 6MXPYOZP[QZPY",2761:" 8MXP[OZPYQZQ[P]N_",2762:" 11MXSMRNSOTNSM RPYOZP[QZ",2763:" 14MXSMRNSOTNSM RP[OZPYQZQ[P]N_",2764:" 17MXUFTGRS RUGRS RUFVGRS RPYOZP[QZPY",2765:" 34H]OJPKOLNKNJOHPGSFWFZG[I[KZMYNSPQQQSRTTT RWFYGZIZKYMXNVO RPYOZP[QZPY",2766:" 8MXVFTHSJSKTLUKTJ",2767:" 8MXUHTGUFVGVHUJSL",2768:" 55E_\\N[O\\P]O]N\\M[MYNWPRXPZN[K[HZGXGVHTISKRPPROTMUKUITGRFPGOIOLPRQUSXUZW[Y[ZYZX RK[IZHXHVITJSPP ROLPQQTSWUYWZYZZY",2769:" 41H]TBL_ RYBQ_ RZJYKZL[K[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJVKULVKW",2770:" 3G]_BEb",2771:" 20KZZBVESHQKOONTNXO]P`Qb RVESIQMPPOUOZP_Qb",2772:" 20JYSBTDUGVLVPUUSYQ\\N_Jb RSBTEUJUOTTSWQ[N_",2773:" 9J[TFTR ROIYO RYIOO",2774:" 3E_IR[R",2775:" 6E_RIR[ RIR[R",2776:" 6E_IO[O RIU[U",2777:" 6NWUFSM RVFSM",2778:" 12I[PFNM RQFNM RYFWM RZFWM",2779:" 14KZSFQGPIPKQMSNUNWMXKXIWGUFSF",2801:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2802:" 31G]LFL[ RMFM[ RIFYFYLXF RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2803:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2804:" 14I[NFN[ ROFO[ RKFZFZLYF RK[R[",2805:" 31F^NFNLMTLXKZJ[ RXFX[ RYFY[ RKF\\F RG[\\[ RG[Gb RH[Gb R[[\\b R\\[\\b",2806:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2807:" 71CbRFR[ RSFS[ ROFVF RGGHHGIFHFGGFHFIGJIKMLONPWPYOZM[I\\G]F^F_G_H^I]H^G RNPLQKSJXIZH[ RNPMQLSKXJZI[G[FZEX RWPYQZS[X\\Z][ RWPXQYSZX[Z\\[^[_Z`X RO[V[",2808:" 45H\\LIKFKLLINGPFTFWGXIXLWNTOQO RTFVGWIWLVNTO RTOVPXRYTYWXYWZT[O[MZLYKWKVLUMVLW RWQXTXWWYVZT[",2809:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RXHLY RH[O[ RU[\\[",2810:" 37F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RXHLY RH[O[ RU[\\[ RN@N?M?M@NBPCTCVBW@",2811:" 43F^KFK[ RLFL[ RHFOF RLPSPUOVMWIXGYFZF[G[HZIYHZG RSPUQVSWXXZY[ RSPTQUSVXWZX[Z[[Z\\X RH[O[",2812:" 25E^MFMLLTKXJZI[H[GZGYHXIYHZ RXFX[ RYFY[ RJF\\F RU[\\[",2813:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2814:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2815:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2816:" 21F^KFK[ RLFL[ RXFX[ RYFY[ RHF\\F RH[O[ RU[\\[",2817:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2818:" 32G\\XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXXYV RQFOGMILKKNKSLVMXOZQ[",2819:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2820:" 24H]KFRV RLFSV RZFSVQYPZN[M[LZLYMXNYMZ RIFOF RVF\\F",2821:" 48F_RFR[ RSFS[ ROFVF RPILJJLIOIRJULWPXUXYW[U\\R\\O[LYJUIPI RPIMJKLJOJRKUMWPX RUXXWZU[R[OZLXJUI RO[V[",2822:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2823:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RH[\\[ R[[\\b R\\[\\b",2824:" 28F]KFKQLSOTRTUSWQ RLFLQMSOT RWFW[ RXFX[ RHFOF RTF[F RT[[[",2825:" 30BcGFG[ RHFH[ RRFR[ RSFS[ R]F][ R^F^[ RDFKF ROFVF RZFaF RD[a[",2826:" 36BcGFG[ RHFH[ RRFR[ RSFS[ R]F][ R^F^[ RDFKF ROFVF RZFaF RD[a[ R`[ab Ra[ab",2827:" 31F`PFP[ RQFQ[ RIFHLHFTF RQPXP[Q\\R]T]W\\Y[ZX[M[ RXPZQ[R\\T\\W[YZZX[",2828:" 41CaHFH[ RIFI[ REFLF RIPPPSQTRUTUWTYSZP[E[ RPPRQSRTTTWSYRZP[ R[F[[ R\\F\\[ RXF_F RX[_[",2829:" 29H]MFM[ RNFN[ RJFQF RNPUPXQYRZTZWYYXZU[J[ RUPWQXRYTYWXYWZU[",2830:" 39H]LIKFKLLINGQFSFVGXIYKZNZSYVXXVZS[P[MZLYKWKVLUMVLW RSFUGWIXKYNYSXVWXUZS[ RPPYP",2831:" 59CbHFH[ RIFI[ REFLF RE[L[ RVFSGQIPKOOORPVQXSZV[X[[Z]X^V_R_O^K]I[GXFVF RVFTGRIQKPOPRQVRXTZV[ RX[ZZ\\X]V^R^O]K\\IZGXF RIPOP",2832:" 45G]WFW[ RXFX[ R[FOFLGKHJJJLKNLOOPWP ROFMGLHKJKLLNMOOP RRPPQORLYKZJZIY RPQOSMZL[J[IYIX RT[[[",2901:" 39I]NONPMPMONNPMTMVNWOXQXXYZZ[ RWOWXXZZ[[[ RWQVRPSMTLVLXMZP[S[UZWX RPSNTMVMXNZP[",2902:" 48H\\XFWGQINKLNKQKULXNZQ[S[VZXXYUYSXPVNSMQMNNLPKS RXFWHUIQJNLLN RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2903:" 37H\\MMM[ RNMN[ RJMUMXNYPYQXSUT RUMWNXPXQWSUT RNTUTXUYWYXXZU[J[ RUTWUXWXXWZU[",2904:" 14HZMMM[ RNMN[ RJMXMXRWM RJ[Q[",2905:" 22F]NMNQMWLZK[ RWMW[ RXMX[ RKM[M RI[H`H[[[[`Z[",2906:" 31H[LSXSXQWOVNTMQMNNLPKSKULXNZQ[S[VZXX RWSWPVN RQMONMPLSLUMXOZQ[",2907:" 59E`RMR[ RSMS[ ROMVM RJNIOHNIMJMKNMRNSPTUTWSXRZN[M\\M]N\\O[N RPTNUMVKZJ[ RPTNVLZK[I[HZGX RUTWUXVZZ[[ RUTWVYZZ[\\[]Z^X RO[V[",2908:" 42I[MOLMLQMONNPMTMWNXPXQWSTT RTMVNWPWQVSTT RQTTTWUXWXXWZT[P[MZLXLWMVNWMX RTTVUWWWXVZT[",2909:" 27G]LML[ RMMM[ RWMW[ RXMX[ RIMPM RTM[M RI[P[ RT[[[ RWNMZ",2910:" 37G]LML[ RMMM[ RWMW[ RXMX[ RIMPM RTM[M RI[P[ RT[[[ RWNMZ ROGOFNFNGOIQJSJUIVG",2911:" 38H\\MMM[ RNMN[ RJMQM RNTPTSSTRVNWMXMYNXOWN RPTSUTVVZW[ RPTRUSVUZV[X[YZZX RJ[Q[",2912:" 22G]NMNQMWLZK[J[IZJYKZ RWMW[ RXMX[ RKM[M RT[[[",2913:" 30G^LML[ RLMR[ RMMRY RXMR[ RXMX[ RYMY[ RIMMM RXM\\M RI[O[ RU[\\[",2914:" 27G]LML[ RMMM[ RWMW[ RXMX[ RIMPM RTM[M RMTWT RI[P[ RT[[[",2915:" 36H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2916:" 21G]LML[ RMMM[ RWMW[ RXMX[ RIM[M RI[P[ RT[[[",2917:" 36G\\LMLb RMMMb RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIMMM RIbPb",2918:" 28H[WPVQWRXQXPVNTMQMNNLPKSKULXNZQ[S[VZXX RQMONMPLSLUMXOZQ[",2919:" 16I\\RMR[ RSMS[ RMMLRLMYMYRXM RO[V[",2920:" 22I[LMR[ RMMRY RXMR[P_NaLbKbJaK`La RJMPM RTMZM",2921:" 52H]RFRb RSFSb ROFSF RRPQNPMNMLNKQKWLZN[P[QZRX RNMMNLQLWMZN[ RWMXNYQYWXZW[ RSPTNUMWMYNZQZWYZW[U[TZSX RObVb",2922:" 21H\\LMW[ RMMX[ RXML[ RJMPM RTMZM RJ[P[ RT[Z[",2923:" 23G]LML[ RMMM[ RWMW[ RXMX[ RIMPM RTM[M RI[[[[`Z[",2924:" 28G]LMLTMVPWRWUVWT RMMMTNVPW RWMW[ RXMX[ RIMPM RTM[M RT[[[",2925:" 30CbHMH[ RIMI[ RRMR[ RSMS[ R\\M\\[ R]M][ REMLM ROMVM RYM`M RE[`[",2926:" 32CbHMH[ RIMI[ RRMR[ RSMS[ R\\M\\[ R]M][ REMLM ROMVM RYM`M RE[`[``_[",2927:" 27H]QMQ[ RRMR[ RLMKRKMUM RRTVTYUZWZXYZV[N[ RVTXUYWYXXZV[",2928:" 37E_JMJ[ RKMK[ RGMNM RKTOTRUSWSXRZO[G[ ROTQURWRXQZO[ RYMY[ RZMZ[ RVM]M RV[][",2929:" 25J[OMO[ RPMP[ RLMSM RPTTTWUXWXXWZT[L[ RTTVUWWWXVZT[",2930:" 34I\\MOLMLQMONNPMSMVNXPYSYUXXVZS[P[NZLXLWMVNWMX RSMUNWPXSXUWXUZS[ RRTXT",2931:" 51DaIMI[ RJMJ[ RFMMM RF[M[ RVMSNQPPSPUQXSZV[X[[Z]X^U^S]P[NXMVM RVMTNRPQSQURXTZV[ RX[ZZ\\X]U]S\\PZNXM RJTPT",2932:" 40G\\VMV[ RWMW[ RZMOMLNKPKQLSOTVT ROMMNLPLQMSOT RTTQUPVNZM[ RTTRUQVOZN[L[KZJX RS[Z[",3001:" 36H\\RFKZ RQIW[ RRIX[ RRFY[ RMUVU RI[O[ RT[[[ RKZJ[ RKZM[ RWZU[ RWYV[ RXYZ[",3002:" 78G]LFL[ RMGMZ RNFN[ RIFUFXGYHZJZLYNXOUP RXHYJYLXN RUFWGXIXMWOUP RNPUPXQYRZTZWYYXZU[I[ RXRYTYWXY RUPWQXSXXWZU[ RJFLG RKFLH ROFNH RPFNG RLZJ[ RLYK[ RNYO[ RNZP[",3003:" 37G\\XIYFYLXIVGTFQFNGLIKKJNJSKVLXNZQ[T[VZXXYV RMILKKNKSLVMX RQFOGMJLNLSMWOZQ[",3004:" 62G]LFL[ RMGMZ RNFN[ RIFSFVGXIYKZNZSYVXXVZS[I[ RWIXKYNYSXVWX RSFUGWJXNXSWWUZS[ RJFLG RKFLH ROFNH RPFNG RLZJ[ RLYK[ RNYO[ RNZP[",3005:" 83G\\LFL[ RMGMZ RNFN[ RIFYFYL RNPTP RTLTT RI[Y[YU RJFLG RKFLH ROFNH RPFNG RTFYG RVFYH RWFYI RXFYL RTLSPTT RTNRPTR RTOPPTQ RLZJ[ RLYK[ RNYO[ RNZP[ RT[YZ RV[YY RW[YX RX[YU",3006:" 70G[LFL[ RMGMZ RNFN[ RIFYFYL RNPTP RTLTT RI[Q[ RJFLG RKFLH ROFNH RPFNG RTFYG RVFYH RWFYI RXFYL RTLSPTT RTNRPTR RTOPPTQ RLZJ[ RLYK[ RNYO[ RNZP[",3007:" 60G^XIYFYLXIVGTFQFNGLIKKJNJSKVLXNZQ[T[VZXZY[YS RMILKKNKSLVMX RQFOGMJLNLSMWOZQ[ RXTXY RWSWYVZ RTS\\S RUSWT RVSWU RZSYU R[SYT",3008:" 81F^KFK[ RLGLZ RMFM[ RWFW[ RXGXZ RYFY[ RHFPF RTF\\F RMPWP RH[P[ RT[\\[ RIFKG RJFKH RNFMH ROFMG RUFWG RVFWH RZFYH R[FYG RKZI[ RKYJ[ RMYN[ RMZO[ RWZU[ RWYV[ RYYZ[ RYZ[[",3009:" 39LXQFQ[ RRGRZ RSFS[ RNFVF RN[V[ ROFQG RPFQH RTFSH RUFSG RQZO[ RQYP[ RSYT[ RSZU[",3010:" 45JYSFSWRZQ[ RTGTWSZ RUFUWTZQ[O[MZLXLVMUNUOVOWNXMX RMVMWNWNVMV RPFXF RQFSG RRFSH RVFUH RWFUG",3011:" 69F\\KFK[ RLGLZ RMFM[ RXGMR RPPW[ RQPX[ RQNY[ RHFPF RUF[F RH[P[ RT[[[ RIFKG RJFKH RNFMH ROFMG RWFXG RZFXG RKZI[ RKYJ[ RMYN[ RMZO[ RWYU[ RWYZ[",3012:" 52I[NFN[ ROGOZ RPFP[ RKFSF RK[Z[ZU RLFNG RMFNH RQFPH RRFPG RNZL[ RNYM[ RPYQ[ RPZR[ RU[ZZ RW[ZY RX[ZX RY[ZU",3013:" 63E_JFJZ RJFQ[ RKFQX RLFRX RXFQ[ RXFX[ RYGYZ RZFZ[ RGFLF RXF]F RG[M[ RU[][ RHFJG R[FZH R\\FZG RJZH[ RJZL[ RXZV[ RXYW[ RZY[[ RZZ\\[",3014:" 39F^KFKZ RKFY[ RLFXX RMFYX RYGY[ RHFMF RVF\\F RH[N[ RIFKG RWFYG R[FYG RKZI[ RKZM[",3015:" 54G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RMILKKNKSLVMX RWXXVYSYNXKWI RQFOGMJLNLSMWOZQ[ RS[UZWWXSXNWJUGSF",3016:" 59G]LFL[ RMGMZ RNFN[ RIFUFXGYHZJZMYOXPUQNQ RXHYJYMXO RUFWGXIXNWPUQ RI[Q[ RJFLG RKFLH ROFNH RPFNG RLZJ[ RLYK[ RNYO[ RNZP[",3017:" 77G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RMILKKNKSLVMX RWXXVYSYNXKWI RQFOGMJLNLSMWOZQ[ RS[UZWWXSXNWJUGSF RNXOVQURUTVUXV^W`Y`Z^Z\\ RV\\W^X_Y_ RUXW]X^Y^Z]",3018:" 80G]LFL[ RMGMZ RNFN[ RIFUFXGYHZJZLYNXOUPNP RXHYJYLXN RUFWGXIXMWOUP RRPTQUSWYX[Z[[Y[W RWWXYYZZZ RTQURXXYYZY[X RI[Q[ RJFLG RKFLH ROFNH RPFNG RLZJ[ RLYK[ RNYO[ RNZP[",3019:" 44H\\XIYFYLXIVGSFPFMGKIKLLNOPURWSXUXXWZ RLLMNOOUQWRXT RMGLILKMMONUPXRYTYWXYWZT[Q[NZLXKUK[LX",3020:" 57H\\JFJL RQFQ[ RRGRZ RSFS[ RZFZL RJFZF RN[V[ RKFJL RLFJI RMFJH ROFJG RUFZG RWFZH RXFZI RYFZL RQZO[ RQYP[ RSYT[ RSZU[",3021:" 45F^KFKULXNZQ[S[VZXXYUYG RLGLVMX RMFMVNYOZQ[ RHFPF RVF\\F RIFKG RJFKH RNFMH ROFMG RWFYG R[FYG",3022:" 34H\\KFR[ RLFRXR[ RMFSX RYGR[ RIFPF RUF[F RJFLH RNFMH ROFMG RWFYG RZFYG",3023:" 55F^JFN[ RKFNVN[ RLFOV RRFOVN[ RRFV[ RSFVVV[ RTFWV RZGWVV[ RGFOF RRFTF RWF]F RHFKG RIFKH RMFLH RNFLG RXFZG R\\FZG",3024:" 54H\\KFW[ RLFX[ RMFY[ RXGLZ RIFPF RUF[F RI[O[ RT[[[ RJFMH RNFMH ROFMG RVFXG RZFXG RLZJ[ RLZN[ RWZU[ RWYV[ RWYZ[",3025:" 48G]JFQQQ[ RKFRQRZ RLFSQS[ RYGSQ RHFOF RVF\\F RN[V[ RIFKG RNFLG RWFYG R[FYG RQZO[ RQYP[ RSYT[ RSZU[",3026:" 41H\\YFKFKL RWFK[ RXFL[ RYFM[ RK[Y[YU RLFKL RMFKI RNFKH RPFKG RT[YZ RV[YY RW[YX RX[YU",3051:" 38H\\UFIZ RSJT[ RTHUZ RUFUHVYV[ RLUTU RF[L[ RQ[X[ RIZG[ RIZK[ RTZR[ RTYS[ RVYW[",3052:" 78F^OFI[ RPFJ[ RQFK[ RLFWFZG[I[KZNYOVP RYGZIZKYNXO RWFXGYIYKXNVP RNPVPXQYSYUXXVZR[F[ RWQXSXUWXUZ RVPWRWUVXTZR[ RMFPG RNFOH RRFPH RSFPG RJZG[ RJYH[ RKYL[ RJZM[",3053:" 41H]ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[S[UZWXXV RQHOJNLMOLSLWMY RTFRGPJOLNOMSMXNZP[",3054:" 63F]OFI[ RPFJ[ RQFK[ RLFUFXGYHZKZOYSWWUYSZO[F[ RWGXHYKYOXSVWTY RUFWHXKXOWSUWRZO[ RMFPG RNFOH RRFPH RSFPG RJZG[ RJYH[ RKYL[ RJZM[",3055:" 80F]OFI[ RPFJ[ RQFK[ RULST RLF[FZL RNPTP RF[U[WV RMFPG RNFOH RRFPH RSFPG RWFZG RXFZH RYFZI RZFZL RULSPST RTNRPSR RTOQPSQ RJZG[ RJYH[ RKYL[ RJZM[ RP[UZ RR[UY RUYWV",3056:" 70F\\OFI[ RPFJ[ RQFK[ RULST RLF[FZL RNPTP RF[N[ RMFPG RNFOH RRFPH RSFPG RWFZG RXFZH RYFZI RZFZL RULSPST RTNRPSR RTOQPSQ RJZG[ RJYH[ RKYL[ RJZM[",3057:" 65H^ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[R[UZWXYT RQHOJNLMOLSLWMY RVXWWXT RTFRGPJOLNOMSMXNZP[ RR[TZVWWT RTT\\T RUTWU RVTWW RZTXV R[TXU",3058:" 81E_NFH[ ROFI[ RPFJ[ RZFT[ R[FU[ R\\FV[ RKFSF RWF_F RLPXP RE[M[ RQ[Y[ RLFOG RMFNH RQFOH RRFOG RXF[G RYFZH R]F[H R^F[G RIZF[ RIYG[ RJYK[ RIZL[ RUZR[ RUYS[ RVYW[ RUZX[",3059:" 39KYTFN[ RUFO[ RVFP[ RQFYF RK[S[ RRFUG RSFTH RWFUH RXFUG ROZL[ ROYM[ RPYQ[ ROZR[",3060:" 47I\\WFRWQYO[ RXFTSSVRX RYFUSSXQZO[M[KZJXJVKULUMVMWLXKX RKVKWLWLVKV RTF\\F RUFXG RVFWH RZFXH R[FXG",3061:" 72F]OFI[ RPFJ[ RQFK[ R\\GMR RQOU[ RROV[ RSNWZ RLFTF RYF_F RF[N[ RR[Y[ RMFPG RNFOH RRFPH RSFPG RZF\\G R^F\\G RJZG[ RJYH[ RKYL[ RJZM[ RUZS[ RUYT[ RVYX[",3062:" 49H\\QFK[ RRFL[ RSFM[ RNFVF RH[W[YU ROFRG RPFQH RTFRH RUFRG RLZI[ RLYJ[ RMYN[ RLZO[ RR[WZ RT[XX RV[YU",3063:" 68D`MFGZ RMGNYN[ RNFOY ROFPX R[FPXN[ R[FU[ R\\FV[ R]FW[ RJFOF R[F`F RD[J[ RR[Z[ RKFMG RLFMH R^F\\H R_F\\G RGZE[ RGZI[ RVZS[ RVYT[ RWYX[ RVZY[",3064:" 43F_OFIZ ROFV[ RPFVX RQFWX R\\GWXV[ RLFQF RYF_F RF[L[ RMFPG RNFPH RZF\\G R^F\\G RIZG[ RIZK[",3065:" 56G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF ROIMLLOKSKWLY RUXWUXRYNYJXH RSFQGOJNLMOLSLXMZN[ RQ[SZUWVUWRXNXIWGVF",3066:" 60F]OFI[ RPFJ[ RQFK[ RLFXF[G\\I\\K[NYPUQMQ RZG[I[KZNXP RXFYGZIZKYNWPUQ RF[N[ RMFPG RNFOH RRFPH RSFPG RJZG[ RJYH[ RKYL[ RJZM[",3067:" 78G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF ROIMLLOKSKWLY RUXWUXRYNYJXH RSFQGOJNLMOLSLXMZN[ RQ[SZUWVUWRXNXIWGVF RLXMVOUPURVSXT]U^V^W] RT^U_V_ RSXS_T`V`W]W\\",3068:" 78F^OFI[ RPFJ[ RQFK[ RLFWFZG[I[KZNYOVPNP RYGZIZKYNXO RWFXGYIYKXNVP RRPTQURWXXYYYZX RWYXZYZ RURVZW[Y[ZXZW RF[N[ RMFPG RNFOH RRFPH RSFPG RJZG[ RJYH[ RKYL[ RJZM[",3069:" 44G^ZH[H\\F[L[JZHYGVFRFOGMIMLNNPPVSWUWXVZ RNLONVRWT ROGNINKOMUPWRXTXWWYVZS[O[LZKYJWJUI[JYKY",3070:" 54G]TFN[ RUFO[ RVFP[ RMFKL R]F\\L RMF]F RK[S[ RNFKL RPFLI RRFMG RYF\\G RZF\\H R[F\\I R\\F\\L ROZL[ ROYM[ RPYQ[ ROZR[",3071:" 48F_NFKQJUJXKZN[R[UZWXXU\\G ROFLQKUKYLZ RPFMQLULYN[ RKFSF RYF_F RLFOG RMFNH RQFOH RRFOG RZF\\G R^F\\G",3072:" 35H\\NFNHOYO[ ROGPX RPFQW R[GO[ RLFSF RXF^F RMFNH RQFPH RRFOG RYF[G R]F[G",3073:" 57E_MFMHKYK[ RNGLX ROFMW RUFMWK[ RUFUHSYS[ RVGTX RWFUW R]GUWS[ RJFRF RUFWF RZF`F RKFNG RLFMH RPFNI RQFNG R[F]G R_F]G",3074:" 54G]NFT[ ROFU[ RPFV[ R[GIZ RLFSF RXF^F RF[L[ RQ[X[ RMFOH RQFPH RRFPG RYF[G R]F[G RIZG[ RIZK[ RTZR[ RTYS[ RUYW[",3075:" 51G]MFQPN[ RNFRPO[ ROFSPP[ R\\GSP RKFRF RYF_F RK[S[ RLFNG RPFOH RQFNG RZF\\G R^F\\G ROZL[ ROYM[ RPYQ[ ROZR[",3076:" 35G]ZFH[ R[FI[ R\\FJ[ R\\FNFLL RH[V[XU ROFLL RPFMI RRFNG RR[VZ RT[WX RU[XU",3101:" 54I]NPNOOOOQMQMONNPMTMVNWOXQXXYZZ[ RVOWQWXXZ RTMUNVPVXWZZ[[[ RVRUSPTMULWLXMZP[S[UZVX RNUMWMXNZ RUSQTOUNWNXOZP[",3102:" 47G\\LFL[MZOZ RMGMY RIFNFNZ RNPONQMSMVNXPYSYUXXVZS[Q[OZNX RWPXRXVWX RSMUNVOWRWVVYUZS[ RJFLG RKFLH",3103:" 34H[WQWPVPVRXRXPVNTMQMNNLPKSKULXNZQ[S[VZXX RMPLRLVMX RQMONNOMRMVNYOZQ[",3104:" 52H]VFV[[[ RWGWZ RSFXFX[ RVPUNSMQMNNLPKSKULXNZQ[S[UZVX RMPLRLVMX RQMONNOMRMVNYOZQ[ RTFVG RUFVH RXYY[ RXZZ[",3105:" 41H[MSXSXQWOVNSMQMNNLPKSKULXNZQ[S[VZXX RWRWQVO RMPLRLVMX RVSVPUNSM RQMONNOMRMVNYOZQ[",3106:" 40KYWHWGVGVIXIXGWFTFRGQHPKP[ RRHQKQZ RTFSGRIR[ RMMVM RM[U[ RPZN[ RPYO[ RRYS[ RRZT[",3107:" 89I\\XNYOZNYMXMVNUO RQMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM ROONQNSOU RUUVSVQUO RQMPNOPOTPVQW RSWTVUTUPTNSM RNUMVLXLYM[N\\Q]U]X^Y_ RN[Q\\U\\X] RLYMZP[U[X\\Y^Y_XaUbObLaK_K^L\\O[ RObMaL_L^M\\O[",3108:" 65G^LFL[ RMGMZ RIFNFN[ RNQOOPNRMUMWNXOYRY[ RWOXRXZ RUMVNWQW[ RI[Q[ RT[\\[ RJFLG RKFLH RLZJ[ RLYK[ RNYO[ RNZP[ RWZU[ RWYV[ RYYZ[ RYZ[[",3109:" 43LXQFQHSHSFQF RRFRH RQGSG RQMQ[ RRNRZ RNMSMS[ RN[V[ ROMQN RPMQO RQZO[ RQYP[ RSYT[ RSZU[",3110:" 41KXRFRHTHTFRF RSFSH RRGTG RRMR^QaPb RSNS]R` ROMTMT]S`RaPbMbLaL_N_NaMaM` RPMRN RQMRO",3111:" 61G]LFL[ RMGMZ RIFNFN[ RWNNW RRSY[ RRTX[ RQTW[ RTM[M RI[Q[ RT[[[ RJFLG RKFLH RUMWN RZMWN RLZJ[ RLYK[ RNYO[ RNZP[ RWYU[ RVYZ[",3112:" 31LXQFQ[ RRGRZ RNFSFS[ RN[V[ ROFQG RPFQH RQZO[ RQYP[ RSYT[ RSZU[",3113:" 99AcFMF[ RGNGZ RCMHMH[ RHQIOJNLMOMQNROSRS[ RQORRRZ ROMPNQQQ[ RSQTOUNWMZM\\N]O^R^[ R\\O]R]Z RZM[N\\Q\\[ RC[K[ RN[V[ RY[a[ RDMFN REMFO RFZD[ RFYE[ RHYI[ RHZJ[ RQZO[ RQYP[ RSYT[ RSZU[ R\\ZZ[ R\\Y[[ R^Y_[ R^Z`[",3114:" 65G^LML[ RMNMZ RIMNMN[ RNQOOPNRMUMWNXOYRY[ RWOXRXZ RUMVNWQW[ RI[Q[ RT[\\[ RJMLN RKMLO RLZJ[ RLYK[ RNYO[ RNZP[ RWZU[ RWYV[ RYYZ[ RYZ[[",3115:" 46H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RMPLRLVMX RWXXVXRWP RQMONNOMRMVNYOZQ[ RS[UZVYWVWRVOUNSM",3116:" 60G\\LMLb RMNMa RIMNMNb RNPONQMSMVNXPYSYUXXVZS[Q[OZNX RWPXRXVWX RSMUNVOWRWVVYUZS[ RIbQb RJMLN RKMLO RLaJb RL`Kb RN`Ob RNaPb",3117:" 55H\\VNVb RWOWa RUNWNXMXb RVPUNSMQMNNLPKSKULXNZQ[S[UZVX RMPLRLVMX RQMONNOMRMVNYOZQ[ RSb[b RVaTb RV`Ub RX`Yb RXaZb",3118:" 43IZNMN[ RONOZ RKMPMP[ RWOWNVNVPXPXNWMUMSNQPPS RK[S[ RLMNN RMMNO RNZL[ RNYM[ RPYQ[ RPZR[",3119:" 43J[WOXMXQWOVNTMPMNNMOMQNSPTUUWVXY RNNMQ RNRPSUTWU RXVWZ RMONQPRUSWTXVXYWZU[Q[OZNYMWM[NY",3120:" 22KZPHPVQYRZT[V[XZYX RQHQWRY RPHRFRWSZT[ RMMVM",3121:" 43G^LMLVMYNZP[S[UZVYWW RMNMWNY RIMNMNWOZP[ RWMW[\\[ RXNXZ RTMYMY[ RJMLN RKMLO RYYZ[ RYZ[[",3122:" 31I[LMR[ RMMRY RNMSY RXNSYR[ RJMQM RTMZM RKMNO RPMNN RVMXN RYMXN",3123:" 45F^JMN[ RKMNX RLMOX RRMOXN[ RRMV[ RSMVX RRMTMWX RZNWXV[ RGMOM RWM]M RHMKN RNMLN RXMZN R\\MZN",3124:" 48H\\LMV[ RMMW[ RNMX[ RWNMZ RJMQM RTMZM RJ[P[ RS[Z[ RKMMN RPMNN RUMWN RYMWN RMZK[ RMZO[ RVZT[ RWZY[",3125:" 40H[LMR[ RMMRY RNMSY RXNSYP_NaLbJbIaI_K_KaJaJ` RJMQM RTMZM RKMNO RPMNN RVMXN RYMXN",3126:" 41I[VML[ RWMM[ RXMN[ RXMLMLQ RL[X[XW RMMLQ RNMLP ROMLO RQMLN RS[XZ RU[XY RV[XX RW[XW",3151:" 50G]WMUTUXVZW[Y[[Y\\W RXMVTVZ RWMYMWTVX RUTUQTNRMPMMNKQJTJVKYLZN[P[RZSYTWUT RNNLQKTKWLY RPMNOMQLTLWMZN[",3152:" 52I\\PFNMMSMWNYOZQ[S[VZXWYTYRXOWNUMSMQNPOOQNT RQFOMNQNWOZ RVYWWXTXQWO RMFRFPMNT RS[UYVWWTWQVNUM RNFQG ROFPH",3153:" 34I[WQWPVPVRXRXPWNUMRMONMQLTLVMYNZP[R[UZWW ROONQMTMWNY RRMPOOQNTNWOZP[",3154:" 58G]YFVQUUUXVZW[Y[[Y\\W RZFWQVUVZ RVF[FWTVX RUTUQTNRMPMMNKQJTJVKYLZN[P[RZSYTWUT RMOLQKTKWLY RPMNOMQLTLWMZN[ RWFZG RXFYH",3155:" 33I[MVQUTTWRXPWNUMRMONMQLTLVMYNZP[R[UZWX ROONQMTMWNY RRMPOOQNTNWOZP[",3156:" 45JZZHZGYGYI[I[GZFXFVGTISKRNQRO[N^M`Kb RTJSMRRP[O^ RXFVHUJTMSRQZP]O_MaKbIbHaH_J_JaIaI` RNMYM",3157:" 57H]XMT[S^QaOb RYMU[S_ RXMZMV[T_RaObLbJaI`I^K^K`J`J_ RVTVQUNSMQMNNLQKTKVLYMZO[Q[SZTYUWVT RNOMQLTLWMY RQMOONQMTMWNZO[",3158:" 41G]OFI[K[ RPFJ[ RLFQFK[ RMTOPQNSMUMWNXPXSVX RWNWRVVVZ RWPUUUXVZW[Y[[Y\\W RMFPG RNFOH",3159:" 35KXSFSHUHUFSF RTFTH RSGUG RLQMOOMQMRNSPSSQX RRNRRQVQZ RRPPUPXQZR[T[VYWW",3160:" 45KXUFUHWHWFUF RVFVH RUGWG RMQNOPMRMSNTPTSRZQ]P_NaLbJbIaI_K_KaJaJ` RSNSSQZP]O_ RSPRTP[O^N`Lb",3161:" 49G]OFI[K[ RPFJ[ RLFQFK[ RYOYNXNXPZPZNYMWMUNQROS RMSOSQTRUTYUZWZ RQUSYTZ ROSPTRZS[U[WZYW RMFPG RNFOH",3162:" 26LXTFQQPUPXQZR[T[VYWW RUFRQQUQZ RQFVFRTQX RRFUG RSFTH",3163:" 61@cAQBODMFMGNHPHSF[ RGNGSE[ RGPFTD[F[ RHSJPLNNMPMRNSPSSQ[ RRNRSP[ RRPQTO[Q[ RSSUPWNYM[M]N^P^S\\X R]N]R\\V\\Z R]P[U[X\\Z][_[aYbW",3164:" 42F^GQHOJMLMMNNPNSL[ RMNMSK[ RMPLTJ[L[ RNSPPRNTMVMXNYPYSWX RXNXRWVWZ RXPVUVXWZX[Z[\\Y]W",3165:" 46H\\QMNNLQKTKVLYMZP[S[VZXWYTYRXOWNTMQM RNOMQLTLWMY RVYWWXTXQWO RQMOONQMTMWNZP[ RS[UYVWWTWQVNTM",3166:" 66G]HQIOKMMMNNOPOSNWKb RNNNSMWJb RNPMTIb ROTPQQORNTMVMXNYOZRZTYWWZT[R[PZOWOT RXOYQYTXWWY RVMWNXQXTWWVYT[ RFbNb RJaGb RJ`Hb RK`Lb RJaMb",3167:" 57G\\WMQb RXMRb RWMYMSb RUTUQTNRMPMMNKQJTJVKYLZN[P[RZSYTWUT RMOLQKTKWLY RPMNOMQLTLWMZN[ RNbVb RRaOb RR`Pb RS`Tb RRaUb",3168:" 30I[JQKOMMOMPNQPQTO[ RPNPTN[ RPPOTM[O[ RYOYNXNXPZPZNYMWMUNSPQT",3169:" 47J[XPXOWOWQYQYOXNUMRMONNONQOSQTTUVVWX RONNQ RORQSTTVU RWVVZ RNOOQQRTSVTWVWXVZS[P[MZLYLWNWNYMYMX",3170:" 23KYTFQQPUPXQZR[T[VYWW RUFRQQUQZ RTFVFRTQX RNMXM",3171:" 42F^GQHOJMLMMNNPNSLX RMNMRLVLZ RMPKUKXLZN[P[RZTXVU RXMVUVXWZX[Z[\\Y]W RYMWUWZ RXMZMXTWX",3172:" 29H\\IQJOLMNMONPPPSNX RONORNVNZ ROPMUMXNZP[R[TZVXXUYQYMXMXNYP",3173:" 48CaDQEOGMIMJNKPKSIX RJNJRIVIZ RJPHUHXIZK[M[OZQXRU RTMRURXSZU[W[YZ[X]U^Q^M]M]N^P RUMSUSZ RTMVMTTSX",3174:" 51G]JQLNNMPMRNSPSR RPMQNQRPVOXMZK[I[HZHXJXJZIZIY RRORRQVQY RZOZNYNYP[P[NZMXMVNTPSRRVRZS[ RPVPXQZS[U[WZYW",3175:" 49G]HQIOKMMMNNOPOSMX RNNNRMVMZ RNPLULXMZO[Q[SZUXWT RYMU[T^RaPb RZMV[T_ RYM[MW[U_SaPbMbKaJ`J^L^L`K`K_",3176:" 39H\\YMXOVQNWLYK[ RXOOOMPLR RVORNONNO RVORMOMMOLR RLYUYWXXV RNYRZUZVY RNYR[U[WYXV",3200:" 50H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF RNHMJLNLSMWNY RVYWWXSXNWJVH RQFOGNIMNMSNXOZQ[ RS[UZVXWSWNVIUGSF",3201:" 28H\\QHQ[ RRHRZ RSFS[ RSFPINJ RM[W[ RQZO[ RQYP[ RSYT[ RSZU[",3202:" 62H\\LJLKMKMJLJ RLIMINJNKMLLLKKKJLHMGPFTFWGXHYJYLXNUPPRNSLUKXK[ RWHXJXLWN RTFVGWJWLVNTPPR RKYLXNXSYWYYX RNXSZWZXY RNXS[W[XZYXYV",3203:" 76H\\LJLKMKMJLJ RLIMINJNKMLLLKKKJLHMGPFTFWGXIXLWNTO RVGWIWLVN RSFUGVIVLUNSO RQOTOVPXRYTYWXYWZT[P[MZLYKWKVLUMUNVNWMXLX RWRXTXWWY RSOUPVQWTWWVZT[ RLVLWMWMVLV",3204:" 28H\\SIS[ RTHTZ RUFU[ RUFJUZU RP[X[ RSZQ[ RSYR[ RUYV[ RUZW[",3205:" 55H\\MFKPMNPMSMVNXPYSYUXXVZS[P[MZLYKWKVLUMUNVNWMXLX RWPXRXVWX RSMUNVOWRWVVYUZS[ RLVLWMWMVLV RMFWF RMGUG RMHQHUGWF",3206:" 69H\\VIVJWJWIVI RWHVHUIUJVKWKXJXIWGUFRFOGMILKKOKULXNZQ[S[VZXXYUYTXQVOSNQNOONPMR RNIMKLOLUMXNY RWXXVXSWQ RRFPGOHNJMNMUNXOZQ[ RS[UZVYWVWSVPUOSN",3207:" 43H\\KFKL RYFYIXLTQSSRWR[ RSRRTQWQ[ RXLSQQTPWP[R[ RKJLHNFPFUIWIXHYF RMHNGPGRH RKJLINHPHUI",3208:" 79H\\PFMGLILLMNPOTOWNXLXIWGTFPF RNGMIMLNN RVNWLWIVG RPFOGNINLONPO RTOUNVLVIUGTF RPOMPLQKSKWLYMZP[T[WZXYYWYSXQWPTO RMQLSLWMY RWYXWXSWQ RPONPMSMWNZP[ RT[VZWWWSVPTO",3209:" 69H\\MWMXNXNWMW RWOVQURSSQSNRLPKMKLLINGQFSFVGXIYLYRXVWXUZR[O[MZLXLWMVNVOWOXNYMY RMPLNLKMI RVHWIXLXRWVVX RQSORNQMNMKNHOGQF RSFUGVIWLWSVWUYTZR[",3210:" 16MXRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",3211:" 24MXTZS[R[QZQYRXSXTYT\\S^Q_ RRYRZSZSYRY RS[T\\ RTZS^",3212:" 32MXRMQNQORPSPTOTNSMRM RRNROSOSNRN RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",3213:" 40MXRMQNQORPSPTOTNSMRM RRNROSOSNRN RTZS[R[QZQYRXSXTYT\\S^Q_ RRYRZSZSYRY RS[T\\ RTZS^",3214:" 34MXRFQGQIRQ RRFRTST RRFSFST RSFTGTISQ RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",3215:" 52I\\MKMJNJNLLLLJMHNGPFTFWGXHYJYLXNWOSQ RWHXIXMWN RTFVGWIWMVOUP RRQRTSTSQRQ RRXQYQZR[S[TZTYSXRX RRYRZSZSYRY",3216:" 24MXTFRGQIQLRMSMTLTKSJRJQK RRKRLSLSKRK RRGQK RQIRJ",3217:" 24MXTHSIRIQHQGRFSFTGTJSLQM RRGRHSHSGRG RSITJ RTHSL",3218:" 74E_[O[NZNZP\\P\\N[MZMYNXPVUTXRZP[L[JZIXIUJSPORMSKSIRGPFNGMIMLNOPRTWWZY[[[\\Y\\X RKZJXJUKSLR RRMSI RSKRG RNGMK RNNPQTVWYYZ RN[LZKXKULSPO RMINMQQUVXYZZ[Z\\Y",3219:" 56H\\PBP_ RTBT_ RXKXJWJWLYLYJXHWGTFPFMGKIKLLNOPURWSXUXXWZ RLLMNOOUQWRXT RMGLILKMMONUPXRYTYWXYWZT[P[MZLYKWKUMUMWLWLV",3220:" 8G^[BIbJb R[B\\BJb",3221:" 27KYUBSDQGOKNPNTOYQ]S`Ub RQHPKOOOUPYQ\\ RSDRFQIPOPUQ[R^S`",3222:" 27KYOBQDSGUKVPVTUYS]Q`Ob RSHTKUOUUTYS\\ RQDRFSITOTUS[R^Q`",3223:" 39JZRFQGSQRR RRFRR RRFSGQQRR RMINIVOWO RMIWO RMIMJWNWO RWIVINOMO RWIMO RWIWJMNMO",3224:" 8F_JQ[Q[R RJQJR[R",3225:" 16F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",3226:" 16F_JM[M[N RJMJN[N RJU[U[V RJUJV[V",3227:" 11NWSFRGRM RSGRM RSFTGRM",3228:" 22I[NFMGMM RNGMM RNFOGMM RWFVGVM RWGVM RWFXGVM",3229:" 30KYQFOGNINKOMQNSNUMVKVIUGSFQF RQFNIOMSNVKUGQF RSFOGNKQNUMVISF",3250:" 58H]TFQGOIMLLOKSKVLYMZO[Q[TZVXXUYRZNZKYHXGVFTF RQHOJNLMOLSLWMY RTYVWWUXRYNYJXH RTFRGPJOLNOMSMXNZO[ RQ[SZUWVUWRXNXIWGVF",3251:" 20H]TJO[Q[ RWFUJP[ RWFQ[ RWFTIQKOL RTJRKOL",3252:" 52H]OKOJPJPLNLNJOHPGSFVFYGZIZKYMWOMUKWI[ RXGYIYKXMVOSQ RVFWGXIXKWMUOMU RJYKXMXRYWYXX RMXRZWZ RMXR[U[WZXXXW",3253:" 64H]OKOJPJPLNLNJOHPGSFVFYGZIZKYMXNVOSP RXGYIYKXMWN RVFWGXIXKWMUOSP RQPSPVQWRXTXWWYUZR[O[LZKYJWJULULWKWKV RVRWTWWVY RSPUQVSVWUYTZR[",3254:" 15H]WJR[T[ RZFXJS[ RZFT[ RZFJUZU",3255:" 49H]QFLP RQF[F RQGYG RPHUHYG[F RLPMOPNSNVOWPXRXUWXUZQ[N[LZKYJWJULULWKWKV RVPWRWUVXTZ RSNUOVQVUUXSZQ[",3256:" 61H]YJYIXIXKZKZIYGWFTFQGOIMLLOKSKVLYMZO[R[UZWXXVXSWQVPTOQOOPNQMS RPINLMOLSLWMY RVXWVWSVQ RTFRGPJOLNOMSMXNZO[ RR[TZUYVVVRUPTO",3257:" 39H]NFLL R[FZIXLTQRTQWP[ RRSPWO[ RXLRRPUOWN[P[ RMIPFRFWI ROGRGWI RMIOHRHWIYIZH[F",3258:"104H]SFPGOHNJNMOOQPTPWOYNZLZIYGWFSF RUFPG RPHOJONPO ROORP RSPWO RXNYLYIXG RYGUF RSFQHPJPNQP RTPVOWNXLXHWF RQPMQKSJUJXKZN[R[VZWYXWXTWRVQTP RRPMQ RNQLSKUKXLZ RKZP[VZ RVYWWWTVR RVQSP RQPOQMSLULXMZN[ RR[TZUYVWVSUQTP",3259:" 61H]XNWPVQTRQROQNPMNMKNIPGSFVFXGYHZKZNYRXUVXTZQ[N[LZKXKVMVMXLXLW ROPNNNKOI RXHYJYNXRWUUX RQRPQOOOKPHQGSF RVFWGXIXNWRVUUWSZQ[",3260:" 16MXPXOYOZP[Q[RZRYQXPX RPYPZQZQYPY",3261:" 22MXQ[P[OZOYPXQXRYR[Q]P^N_ RPYPZQZQYPY RQ[Q\\P^",3262:" 32MXSMRNROSPTPUOUNTMSM RSNSOTOTNSN RPXOYOZP[Q[RZRYQXPX RPYPZQZQYPY",3263:" 38MXSMRNROSPTPUOUNTMSM RSNSOTOTNSN RQ[P[OZOYPXQXRYR[Q]P^N_ RPYPZQZQYPY RQ[Q\\P^",3264:" 34MXVFUFTGRT RVGUGRT RVGVHRT RVFWGWHRT RPXOYOZP[Q[RZRYQXPX RPYPZQZQYPY",3265:" 59H]OKOJPJPLNLNJOHPGSFWFZG[I[KZMYNWOSPQQQSSTTT RUFZG RYGZIZKYMXNVO RWFXGYIYKXMWNSPRQRSST RPXOYOZP[Q[RZRYQXPX RPYPZQZQYPY",3266:" 22MXWFUGTHSJSLTMUMVLVKUJTJ RUGTITJ RTKTLULUKTK",3267:" 22MXVIUITHTGUFVFWGWIVKULSM RUGUHVHVGUG RVIVJUL",3268:" 72E_\\O\\N[N[P]P]N\\M[MYNWPRXPZN[K[HZGXGVHTISKRPPROTMUKUITGRFPGOIOLPRQURWTZV[X[YYYX RL[HZ RIZHXHVITJSLR RPPQSTYVZ RK[JZIXIVJTKSMRRO ROLPOQRSVUYWZXZYY",3269:" 52H]TBL_ RYBQ_ RZKZJYJYL[L[JZHYGVFRFOGMIMLNNPPVSWUWXVZ RNLONVRWT ROGNINKOMUPWRXTXWWYVZS[O[LZKYJWJULULWKWKV",3270:" 8G^_BEbFb R_B`BFb",3271:" 32JZZBXCUERHPKNOMSMXN\\O_Qb RSHQKOONTN\\ RZBWDTGRJQLPOOSN\\ RNTO]P`Qb",3272:" 32JZSBUEVHWLWQVUTYR\\O_LaJb RVHVPUUSYQ\\ RSBTDUGVP RVHUQTUSXRZP]M`Jb",3273:" 39J[TFSGUQTR RTFTR RTFUGSQTR ROIPIXOYO ROIYO ROIOJYNYO RYIXIPOOO RYIOO RYIYJONOO",3274:" 8F_JQ[Q[R RJQJR[R",3275:" 16F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",3276:" 16F_JM[M[N RJMJN[N RJU[U[V RJUJV[V",3277:" 11MWUFTGRM RUGRM RUFVGRM",3278:" 22H\\PFOGMM RPGMM RPFQGMM RZFYGWM RZGWM RZF[GWM",3279:" 30KZSFQGPIPKQMSNUNWMXKXIWGUFSF RSFPIQMUNXKWGSF RUFQGPKSNWMXIUF",3301:" 62F^IHJIIJHIIGKFMFOGPHQKQOPRNTLUIV ROHPKPPOR RMFNGOJOPNSLU RLVOY RKVOZ RIVN[UV R\\G[H\\H\\G[FYFWGVHUJUYW[[W RWHVJVXXZ RYFXGWJWWYY",3302:"101E_GQGRHSJSLRLOKMIJIHKF RKOIK RJSKRKPIMHKHIIGKFNFPGQHRJRRQUOW RPHQJQT RNFOGPJPUOW RRISGUFWFYGZH[J\\K RYHZJ RWFXGYJZK\\K R\\KRP RYM[O\\R\\U[XYZV[S[PZJWIWHX RXNYN[P RVNYO[Q\\S RTZRZLWKW RZYXZUZRYNWKVIVHXHZI[JZIY",3303:" 79F^RHPFNFLGJJINIRJVLYNZQ[T[WZYY[W RLHKJJMJRKVMYPZ RNFMGLIKMKQLUMWOYRZUZXY[W RUFRHQIPKPLQNTPURUT RQKQLUPUQ RQIQJRLUNVPVRUTSURUPTOR RUFVGXHZH RUGVHWH RTGVIXIZH[G",3304:" 79E_HLHKIIKGNFRFUGWHYJ[M\\Q\\U[XYZV[S[PZJWIWHX RKHMGRGUHWIYK[N RTZRZLWKW RHKJIMHRHUIWJYL[O\\R RZYXZUZRYNWKVIVHXHZI[JZIY RPHMKLMLONSNU RMNMONQNR RMKMMOQOSNUMVKVJUJT",3305:" 95F^RHPFNFLGJJINIRJVLYNZQ[T[WZYY[W RLHKJJMJRKVMYPZ RNFMGLIKMKQLUMWOYRZUZXY[W RUFRHQIPKPLQNTPURUT RQKQLUPUQ RQIQJRLUNVPVRUTSURUPTOR RUFVGXHZH RUGVHWH RTGVIXIZH[G RUNYK RYKZL\\L RXLYMZM RWMXNZN\\L",3306:" 94F^MNKMJKJIKGNFQFTGXI RKHMGRGUH RJKKIMHRHXIZI[H[GZFYF RSHRIQKQMROVSWVWYV\\U]S^ RTPWSXVXYW[ RQMSOVQXSYVYYX[V]S^O^L]K\\JZJWLTLRKQ RL\\K[KWLU RO^M]L[LWMTMRLQJQIRIS RUPYL RYLZM\\M RXMYNZN RWNXOZO\\M",3307:" 99E_UJTHSGQFNFKGIJHNHRIUJWLYNZQ[T[WZYY[W\\T\\Q[NYL RKHJJIMIRJUKW RZW[U[QZNYM RNFLGKIJMJRKVLXNZ RWZYXZUZQYOWM RUFRHPJOLOMPOSQTSTU RPLPMTQTR RPJPKQMTOUQUSTURVQVOUNS RTOYLZJ R\\FZJ RYG]I R\\F[GYGZHZJ[I]I\\H\\F",3308:" 92F_RFPGNIMKMMNOPQQSQU RNLNMQQQR RNINKOMQORQRSQUPVNWLWJVIUHSHQIPJQIR RRFTHVHXG RQGSH RPGQHSIUIXG RRPYK RYK[N\\Q\\T[WYYVZR[ RXLZN[Q[UZW RVMWMYOZRZVYXXYVZ RVZTZRYPYNZM\\N^P_R_T^ RSZQZ RR[PZNZ",3309:" 83F_PPNPLOKNJLJJKHLGOFQFTGWJYK RLHNGRGTHUI RJJKIMHQHTIVJYK[K\\J\\H[GYG RJXKYJZIYIWJVLVNWPYR\\T^ RNXOYQ\\R] RLVMWNYP\\Q]S^V^X]Y\\ZZZWYUWRVPVO RYXYWVRVQ RX]Y[YYXWVTURUPWNYNZOZP",3310:" 83F_PPNPLOKNJLJJKHLGOFQFTGWJYK RLHNGRGTHUI RJJKIMHQHTIVJYK[K\\J\\H[GYG RJXKYJZIYIWJVLVNWPYR\\T^ RNXOYQ\\R] RLVMWNYP\\Q]S^V^X]Y\\ZZZWYUWRVPVO RYXYWVRVQ RX]Y[YYXWVTURUPWNYNZOZP",3311:" 81E_[KZIXGUFRFOGMILKLNMQPWPYN[ RMNMOPUPV RNHMJMMNOPSQVQXPZN[L[JZ RHVJZ RGYKW RHVHXGYIYJZJXKWIWHV RNONMOKQJTJVKXMYM RUKWM RRJTKULVN RYMPQ RUOYXZY[Y RTPXXZZ RSPWYY[\\X",3312:" 73G^ZSYTVTUSUQVOXLYJYH RVQVPYLYK RWTVSVRWPYNZLZJYHXGUFPFMGLHKJKLLNNQOSOTNV RLKLLOQOR RLHLJMLOOPQPSOUMWJY RMWOWRYUZXZZY RNXOXSZTZ RJYLXMXQZT[V[YZZY[W",3313:"128BbEQERFSHSJRJOIMGJGHIF RIOGK RHSIRIPGMFKFIGGIFKFMGOIPLPROUNWLYI[HZGZ RNIOLORNUMW RJZIYHY RKFMHNKNRMVLXKYJXIXF[ RNGPFRFTGVIWLWRVUUWSYQ[PZOZ RUIVLVRUV RRZQYPY RRFTHUKUSTWSYRXQXN[ RUHVGXFZF\\G]H^J_K R\\H]J RZF[G\\J]K_K R_K\\M[NZQZT[X][`X R\\N[P[T\\W^Z R_K]M\\O\\S]W_Y",3314:" 96D`GQGRHSJSLRLOKMIJIHKF RKOIK RJSKRKPIMHKHIIGKFNFPGRISLSRRUQWOYL[KZIZG[ RQIRKRRQUPWOX RMZKYIY RNFPHQKQRPVNYLXJXG[ RRHSGUFWFYGZH[J\\K RYHZJ RWFXGYJZK\\K R\\KYMXNWQWTXXZ[]X RYNXPXTYW[Z R\\KZMYOYSZW\\Y",3315:" 72D`PFNGLIKKKMMQMS RLLLMMOMP RLILKNONQMSLTJTISIR RPFQGWIZK[M\\P\\S[VZXXZU[R[OZIWHWGX RPGQHWJYKZL RPFPHQIWKYL[N\\P RSZQZKWJW RYYWZTZQYMWJVHVGXGZH[IZHY",3316:"100E`HQHRISKSMRMOLMJJJHLF RLOJK RKSLRLPJMIKIIJGLFOFQGRHSJSU RSWS\\R^P_M_L^L\\M[N\\M] RQHRJR\\Q^ ROFPGQJQU RQWQ\\P^O_ RSJXF RXFZI[K\\O\\R[UYXV[ RWGZK[N[O RVHXJZM[P[SZVYX RWYUVSU RQUOVMX RWZUWSVPV RV[TXSW RQWOWMX",3317:" 88D`PFNGLIKKKMMQMS RLLLMMOMP RLILKNONQMSLTJTISIR RPFQGWIZK[M\\P\\S[VZX RXZU[R[OZIWHWGX RPGQHWJYKZL RPFPHQIWKYL[N\\P RSZQZKWJW RXZTZQYMWJVHVGXGZH[IZHY RTXVVXV\\Z]Z RWWXW[Z RUWVWZ[\\[^Y",3318:" 96D`GQGRHSJSLRLOKMIJIHKF RKOIK RJSKRKPIMHKHIIGKFNFPGQHRJRVQXOZM[K[IZ RPHQJQVPX RNFOGPJPVOYM[ RGVIZ RFYJW RGVGXFYHYIZIXJWHWGV RRISGUFWFYGZH[J\\K RYHZJ RWFXGYJZK\\K R\\KRP RTOXYZ[]X RUOYX[Z RVNZX[Y\\Y",3319:" 83E`\\H[G\\F]G]I\\KZKVISHOHKIIK RYJVHSGOGLH R]I\\JZJVGSFOFLGJIIKHNHRIUJWLYNZQ[U[XZZY\\W]T]Q\\OZNWNUOSRQSOS RLXNYQZUZYY RIUKWMXPYUYYX[W\\V]T RXOWOSSRS R]Q[OYOWPUSSTQTOSNQNOOMQL",3320:" 81F_LNJMIKIIJGMFRFUGYJ[J\\I RJHLGRGUHXJ RIKJILHRHUIYK[K\\I\\G[FZG[H RUIRLQNQPSTSV RRORPSRSS RRLRNTRTTSVRWPWOVOT RJYKZJ[IZIXJVLVOWSYVZYZ[Y RLWMWSZUZ RIXJWKWMXQZT[W[ZZ\\X",3321:" 45G]JHKHLILWJX RKGMHMXPZ RIILFNHNWPYRY RJXKXMYO[RYVV RTHUHVIVYX[[X RUGWHWYYZ RSIVFYHXIXXYYZY",3322:"100D`GQGRHSJSLRLOKMIJIHKF RKOIK RJSKRKPIMHKHIIGKFNFPGQHRJRRQUOW RPHQJQT RNFOGPJPUOW RRISGUFWFYG[J\\K RYHZJ RWFXGYJZK\\K RZKXKWLWNXP[R\\T RXO[Q RWMXN[P\\R\\V[XYZW[S[PZJWIWHX RTZRZLWKW RZYXZUZRYNWKVIVHXHZI[JZIY",3323:"143BcEQERFSHSJRJOIMGJGHIF RIOGK RHSIRIPGMFKFIGGIFLFNGOHPJPNOQMTKV RNHOJOONR RLFMGNJNOMSKV RNGPFSFUG RWFTGSISMTPVSWUWWVY RTMTNWSWT RWFUGTITLUNWQXTXVWXUZS[O[MZKXIWGWFX RNZKWJW RQ[OZLWJVGVFXFZG[HZGY RWFZF\\G^J_K R\\H]J RZF[G\\J]K_K R]K[KZLZN[P^R_T R[O^Q RZM[N^P_R_W^Y]Z[[X[UZ RYZXZVY R^Y\\ZZZXYWX",3324:" 86F^KHMHOIPJQMQO RQQQUPXM[KZI[ RNZLYKY ROYNYLXI[ RMGPHQIRLRUSWUYWZ RIINFPGRISLSO RSQSTTWUXWYYY RQURXTZV[[X RSLTIWFYG[F RVGXHYH RUHVHXI[F RKSMOQO RSOWOYM RMPWP RKSMQQQ RSQWQYM",3325:" 74E_HQHRISKSMRMOLMJJJHLF RLOJK RKSLRLPJMIKIIJGLFOFQGRHSJSORRQTQUSWTW RQHRJRPQSPUSX ROFPGQJQPPTOVRYUV RSJ[F RYGYZX] RZGZXY[ R[F[VZZY\\W^T_P_M^K\\JZKYLZK[",3326:" 74F^NIOGQFTFVGWHXJXMWOVPTQ RQQOPNN RVHWIWNVO RTFUGVIVNUPTQ RMUNSORQQTQWRYTZVZZY\\W^T_P_N^KZJY RXTYVYZX\\ RTQWSXUX[W]V^T_ RO^N]LZKY RR_P^O]MZLYIYHZH\\I]J]",3401:" 46J[TMQNOONPMSMVNYO[UX RNVOYPZ RQNOPNSNUOXQZ RRNSOUPUYW[ZX RSNVPVXXZ RTMUNWOXO RWPXO RWPWXXYYY",3402:" 50J[LHMINK RTFQGOINKNXMY RPIOKOXRZ RTFRGQHPKPXRYSZ RMYNYPZQ[TZ RPPVMWOXRXUWXVYTZ RUNVOWQ RTNVPWSWUVXTZ",3403:" 27KXRNTPVOTMRNOPNRNWOYQ[UY RSNUO RPPOROWPYQZ RQOPQPVQXSZ",3404:" 47J[QFNINKOLSNVPWRWUVXTZ ROJOKSMVOWP ROHOIPJUMWOXRXUWXTZQ[ RRNNPNXMY ROPOXRZ RPOPXRYSZ RMYNYPZQ[",3405:" 27KXPUVQSMOPNRNWOYQ[UY RUQRN RPPOROWPYQZ RTRROQOPQPVQXSZ",3406:" 49LYXFWGUGSFQFPHPMOONP RVHTHRGQG RXFWHVITIRHQHPI RPKQMRNTOVOVP RNPPP RRPVP RPPPTQ` RSOPOQNQ[ RRPRTQ`",3407:" 53J[TMQNOONPMSMVNYO[UX RNWOYPZ RQNOPNSNUOXQZ RRNSOUPUXV[V]U_ RSNVPVZ RTMUNWOXO RWPXO RWPW\\V^U_S`P`N_M^M]N]N^",3408:" 50J[LHMINK RTFQGOINKNXMY RPIOKOYPZ RTFRGQHPKPXQYRY RMYOZP[SX RPPVMWOXSXWWZV\\T^Q` RUNVOWR RTNVQWTWWV[T^",3409:" 39MWRFQGQHRISHSGRF RQGSH RQHSG ROOPOQPQYS[VX RPNRORXTZ RNPQMRNTO RSPTO RSPSXTYUY",3410:" 45MWRFQGQHRISHSGRF RQGSH RQHSG ROOPOQPQ[P^O_M` RPNROR[Q] RNPQMRNTO RSPTO RSPS[R]P_M` RS[T]U^",3411:" 63KYNHOIPK RUFSGQIPKPMOONP RPPPXOY RRIQKQM RQOPOQMQXSZ RUFSHRKRO RRPRXSYTY ROYQZR[UX RRLVIWJWLUNSO RUJVKVLUN RROWOWP RNPPP RRPWP",3412:" 29MWOHPIQK RWFTGRIQKQXPY RSIRKRYTZ RWFUGTHSKSXTYUY RPYRZS[VX",3413:" 74E_GOHOIPIXHYJ[ RHNJPJXIYJZKYJX RFPIMKOKXLYJ[ RNNPOQQQXPYR[ RPNQORQRXQYRZSYRX RKPNNPMRNSPSXTYR[ RVNWOYPYY[[^X RWNZPZX\\Z RSPVNXMYN[O\\O R[P\\O R[P[X\\Y]Y",3414:" 49I[KOLOMPMXLYN[ RLNNPNXMYNZOYNX RJPMMOOOXPYN[ RRNSOUPUYW[ZX RSNVPVXXZ ROPRNTMUNWOXO RWPXO RWPWXXYYY",3415:" 41J[NPNXMY ROPOXRZ RQOPPPXRYSZ RMYNYPZQ[TZ RNPQOVMWOXRXUWXVYTZ RUNVOWQ RTNVPWSWUVXTZ",3416:" 57J[OJMLMNNQNXLZ RNYO` RNMNNOQO[ RNKNLONPQPXQXSYTZ RPYO` RSZQY RTZR[PY RNYLZ RPPVMWOXRXUWXVYTZ RUNVOWQ RTNVPWSWUVXTZ",3417:" 43J[TMQNOONPMSMVNYO[UX RNWOYPZ RQNOPNSNUOXQZ RRNSOUPUXV` RSNVPV[ RTMUNWOXO RWPXO RWPWXV`",3418:" 32KYNOOOPPPXOY RONQPQYSZ RMPPMRORXSYTY ROYQZR[UX RTNUPWOVMRO RUNVO",3419:" 42LWXFWGUGSFQFPHPMOONP RVHTHRGQG RXFWHVITIRHQHPI RPKRP RPPPTQ` RQOPOQNQ[ RRPRTQ` RNPPP",3420:" 37LXSIRLQNPONP RSISOVOVP RNPQP RSPVP RQPQXPY RROQORMRXTZ RSPSXTYUY RPYRZS[VX",3421:" 47I[KOLOMPMXLY RLNNPNXPZ RJPMMOOOXQYRZ RLYMYOZP[RZUX RVMTOUPUYW[ZX RVPWOVNUOVPVXXZ RVMXOWPWXXYYY",3422:" 47J[OKMMMONRNXMY RNNNOOROXRZ RNLNMOOPRPXRYSZ RMYNYPZQ[TZ RPPVMWOXRXUWXVYTZ RUNVOWQ RTNVPWSWUVXTZ",3423:" 72F_KKIMIOJRJXIYK[ RJNJOKRKXJYKZLYKX RJLJMKOLRLXMYK[ RONQORQRXQY RQNROSQSXVZ RLPONQMSNTPTXVYWZ RQYRYTZU[XZ RTPZM[O\\R\\T[XZYXZ RYNZO[Q RXNZP[S[UZXXZ",3424:" 44KZOOPOQPQXPXNYM[M]N_P`S`V_V^U^U_ RPNRPRXUZ RNPQMSOSXUYVZ RXYT[SZQYOYM[ RUNVPXOWMSO RVNWO",3425:" 47J[OKMMMONRNXMY RNNNOOROYQZ RNLNMOOPRPXQYRY RMYOZP[SX RPPVMWOXSXWWZV\\T^Q` RUNVOWR RTNVQWTWWV[T^",3426:" 43KYNPSMUNVPVRUTQV RSNUO RRNTOUQURTTSU RSUUWVYV]U_S`Q`O_N]N[OYQXWV RRVTWUY RQVTXUZU]T_S`",3427:" 61JZRMPNMPMRNU RNPNROT RPNOOORPT RPNROTOVNWMWKVJTJ RQNSN RRMTNVN RNUVRWUWWVYR[ RUSVUVXUY RTSUUUXTZ RTZRYOYL[ RSZQZ RR[PZNZL[",3428:" 78J[VFUGSGQFOFNHNMMOLP RTHRHPGOG RVFUHTIRIPHOHNI RNKPP RNPNTO` ROONOONO[ RPPPTO` RLPNP RPPUMWNXPXRWTSV RUNWO RTNVOWQWRVTUU RUUWVXXX[W]U_R` RUVWW RSVTVVWWYW\\V^",3429:" 62J[PIOLNNMOKP RPIPXQYO[ ROONOONOXNYOZPYOX RKPNPNXMYO[ RPPUMWNXPXRWTSV RUNWO RTNVOWQWRVTUU RUUWVXXX[W]U_R` RUVWW RSVTVVWWYW\\V^",3501:" 60G]LINGPFRFSGZW[X]X RQGRHYXZZ[YYX RNGPGQHXXYZZ[[[]X RLMMLOKPKQL RPLPM RMLOLPN RG[IYKXNXPY RJYNYOZ RG[JZMZN[PY RRJLX RNSVS",3502:"110F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RRIQJPLPU RQKQS RRIRRQTPU RRIXFZG[I[KYMUO RXGZIZK RVGXHYIYLWN RWNZP[R[X RYPZRZW RWNXOYQYX RJ[MYPXTXWY RLZOYTYVZ RJ[NZSZU[WYYX[X RUOUX RURYR RUUYU",3503:" 69E]NGLHJJILHOHSIVJXMZP[S[VZXYZW[U RJKINISKWNYQZTZWY RNGLIKKJNJRKUNXQYTYWXYW[U RPJPV RQJQT RRIRSQUPV RPJRIUFWGYGZF RTGVHXH RSHUIWIYHZF RWIWX",3504:" 72G^IFWFYGZIZX RKGWGYIYW RIFJGLHWHXIXX ROKNLMNMOKOJPJRKQMQMV RNMNT RKPNP ROKOSNUMV RI[LYOXSXVY RKZNYSYUZ RI[MZRZT[VYXXZX RRHRX RRMTNVNXM RRSTRVRXS",3505:" 94G]IHKFMFOGQF RLGNG RIHKGMHOHQF RNKMLLNLOJOIPIRJQLQLW RMMMU RJPMP RNKNTMVLW RQMRJSHTGVFXF[G RTHVGXGZH RRJSIUHWHYI[G RQURRSPTOVOXP RTPVPWQ RRRSQUQVRXP RK[NYRXWX[Y RMZPYWYZZ RK[OZVZY[[Y RQMQX",3506:" 91F]JHLFOFQGSF RMGPG RJHLGNHQHSF RPKOLNNNOLOKPKRLQNQNV ROMOT RLPOP RPKPSOUNV RSJSYRZQZMXKXIYG[ RTJTX RTPXP RPZOZMYJY RUIUOXO RXQUQUWTYP[N[LZJZG[ RSJUIXFZG\\G]F RWGYH[H RVHXIZI\\H]F RXIXW",3507:" 87E^NGLHJJILHOHRIUJWLYNZQ[U[XZZX[V[SZQYPWOUO RJKINISJV RNGLIKKJNJSKVLXNZ RYXZWZSYQ RU[WZXYYWYSXQWPUO RPJPW RQJQU RRIRTQVPW RPJRIUFWGYGZF RTGVHXH RSHUIWIYHZF RYHUOU[ RUSYS RUVYV",3508:"112F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RJ[MYPXSXUY RLZOYRYTZ RJ[NZQZS[UY RRIQJPLPU RQKQS RRIRRQTPU RRITGVFXFZG RWGXGYH RTGVGXIZG RUOWNYLZM[P[TZXX[ RXMYNZPZUYX RWNXNYPYUX[ RUOUY RURYR RUUYU",3509:" 67I\\LHNFQFTGVF ROGSG RLHNGQHTHVF RSKRLQNQOOONPNROQQQQV RRMRT ROPRP RSKSSRUQV RYHWJVMVXUZSZOXMXKYI[ RWKWW RRZQZOYLY RYHXJXVWXUZS[P[NZKZI[",3510:" 65H\\LHNFQFTGVF ROGSG RLHNGQHTHVF RSKRLQNQOOONPNROQQQQV RRMRT ROPRP RSKSSRUQV RYHWJVMVXUZ RWKWW RYHXJXVWXUZR[O[LZJXJVKULUMVLWKW RJVMV",3511:"115F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RJ[MYPXSXUY RLZNYRYTZ RJ[NZQZS[UY RRIQJPLPU RQKQS RRIRRQTPU RRITGVFXFZG RWGXGYH RTGVGXIZG RUOXLYM[N RWMYN[N R[NYQWSUU RWSYTZX[Z\\Z RYVZZ RWSXTYZZ[[[\\Z RUOUY",3512:" 85G]IHKFNFPGRF RLGOG RIHKGMHPHRF RNKMLLNLOJOIPIRJQLQLW RMMMU RJPMP RNKNTMVLW RK[NYRXWX[Y RMZPYWYZZ RK[OZVZY[[Y RSIRJQLQU RRKRS RSISRRTQU RSIUGWFYF[G RXGYGZH RUGWGYI[G RWGWX",3513:"107D`LJKKJMJOHOGPGRHQJQJU RKLKS RHPKP RLJLRKTJU RE[GYIXKXMYNYOX RHYKYMZ RE[GZJZL[M[NZOX RLJPFTJTWUYVY RPGSJSXRYSZTYSX RPPSP RNHOHRKROOO ROQRQRXQYS[VYWX RTJXF\\J\\W]Y^Y RXG[J[X]Z RXP[P RVHWHZKZOWO RWQZQZY\\[^Y ROHOX RWHWX",3514:" 84E^GIIGKFMFOGQJVUXXYY RMGOIPKVWYZ RIGKGMHOKTVVYWZY[ RVHXIZI\\H]F RWGYH[H RVHXFZG\\G]F RKOIOHPHRIQKQ RIPKP RG[IYKXNXPY RJYMYOZ RG[JZMZN[PY RKGKX RYIY[ RRLSMUNWNYM RKTMSQSST",3515:" 79E_NFLGJIIKHNHRIUJWLYNZQ[S[VZXYZW[U\\R\\N[KZIXGVFUGRIOJ RJJIMISJV RNFLHKJJMJSKVLXNZ RZV[S[MYIXH RVZXXYVZSZMYKWHUG ROJOW RPJPU RQJQTPVOW RUGUZ RUMWNXNZM RUSWRXRZS",3516:" 70H^KFLGMIMOKOJPJRKQMQMYJ[MZMbO` RMHNJN` RKPNP RKFMGNHOJO` ROKRIVFZJZX RVGYJYX RTHUHXKXY RRXUXXY RSYUYWZ RRZTZV[XYZX RRIR_ RRMTNVNXM RRSTRVRXS",3517:" 99E_NFLGJIIKHNHRIUJWLYNZP[T[VZXYZW[U\\R\\N[KZIXGVFUGRIOJ RJJIMISJV RNFLHKJJMJSKVLXNZ RZV[S[MYIXH RVZXXYVZSZMYKWHUG ROJOW RPJPU RQJQTPVOW RUGUZ RUMWNXNZM RUSWRXRZS RP[QZRZT[X`Za[a RT\\V_XaYa RRZS[VaXbZb[a",3518:"108F^HHJFMFOGQF RKGNG RHHJGLHOHQF RMKLLKNKOIOHPHRIQKQKW RLMLU RIPLP RMKMTLVKW RJ[MYPXRXUY RLZNYRYTZ RJ[NZQZS[UY RRIQJPLPU RQKQS RRIRRQTPU RRIUGWFYGZIZLYNXOTQRR RWGXGYIYMXN RUGWHXJXMWOTQ RTQVRWSZX[Y\\Y RWTYX[Z RTQVSXYZ[\\Y",3519:" 94G^UITHRGOF RVHTG RWGSFOFLGKHJJKLLMONWNYOZPZRYU RKKLLOMXMZN[O[QZS RKHKJLKOLYL[M\\O\\QYUU[ RIOJPLQUQVRVSUU RJQLRTRUS RIOIPJRLSSSUTUU RI[LYPXSXVY RKZNYRYUZ RI[MZRZU[ RWGUISL RRNPQ ROSMUKVJVJUKV",3520:" 71E]JJILHOHSIVKYMZP[S[VZXYZW[U RISJVLXNYQZTZWY RJJIMIQJTLWNXQYTYWXYW[U RHIIGKFOFUGYG[F RPGTHXH RHIIHKGNGTIWIYH[F RSIRJPKPV RQKQT RRJRSQUPV RWIWX",3521:" 89F^HHJFLFOGQF RKGNG RHHJGMHOHQF RKJJLIOISJVKXMZP[S[VZXYZ[\\Y RJSKVNYQZTZ RKJJNJQKTLVNXQYUYXX RUIQJPLPV RQKQT RRJRSQUPV RUIWHYFZG\\HZIZW[Y\\Y RYIZHYGXHYIYX[Z RWHXIXX RUIUY RUNXN RURXR",3522:" 72G^JFKGLILOJOIPIRJQLQLXJY RLHMJMX RJPMP RNYQYSZ RJFLGMHNJNXRXUY RJYMYPZR[UYXXZX RRJUIWHYFZG\\HZIZX RYIZHYGXHYIYW RWHXIXX RRJRX RRMTNVNXM RRSTRVRXS",3523:" 95E`HFIGJIJOHOGPGRHQJQJXHY RJHKJKX RHPKP RLYNYPZ RHFJGKHLJLXOXQY RHYKYNZO[QYTXVYW[YY\\X ROHRFTHTXWXYY RRGSHSX ROHQHRIRXQY RWYXZ RWHZF\\H\\X RZG[H[X RWHYHZIZXYY ROHOX RWHWX RONRN RORRR RWNZN RWRZR",3524:" 65G]HIJGLFNFOGWYXZZZ RMGNHVYWZ RJGLGMHUZV[X[ZZ\\X RWFYG[G\\F RWGXHZH RVHWIYI[H\\F RH[IYKXMXNY RJYLYMZ RH[IZKZM[ RWFSO RQRM[ RLPPP RSPXP",3525:" 86G^JFKGLILOJOIPIRJQLQLXJY RLHMJMX RJPMP RNYQYSZ RJFLGMHNJNXRXUY RJYMYPZR[UYXX RRJUIWHYFZG\\HZIZ^Y`WbUaQ`L` RYIZHYGXHYIYY RWHXIXXZ[ RXaV`S` RY`V_P_L` RRJRX RRMTNVNXM RRSTRVRXS",3526:" 57H\\XGWIROOSMWJ[ RVKNV RZFWJUNRRMXLZ RJHLFOGUGZF RKGOHSHWG RJHNIRIVHXG RLZNYRXVXZY RMZQYUYYZ RJ[OZUZX[ZY RMPQP RTPXP",3601:" 53J[PRNTMVMXNZP[RYUX RMVNXOYQZ RNTNVOXQYRY RNPPPSOUNVMXOWPWXXYYY RONNOQO RTOWOVNVYWZ RMOOMPNROUPUYW[YY RMORT",3602:" 44I[LHMJMXKY RNJMHNGNXQZ RLHOFOXQYRZ RKYMYOZP[RZUYWY ROPROTNUMVNXOYOWPWY RTNVOVX RROSOUPUY",3603:" 35JXNONXLYMYOZP[ ROOOYQZ RPOPXRYSYQZP[ RNORNTMUNWOXO RSNTOVO RPORNTPVPXO",3604:" 41IZRMPNMOMXKY RNONXQZ RRMOOOXQYRZ RKYMYOZP[RZUYWY RMHPFQIWOWY RPINHOGPIVOVX RMHUPUY",3605:" 32JXNONXLYMYOZP[ ROOOYQZ RPOPXRYSYQZP[ RNORNTMWQURPU RSNVQ RPORNUR",3606:" 41JWNHNXLYMYOZP[ ROHOYQZ RPHPXRYSYQZP[ RNHQGSFTGVHWH RRGSHUH RPHQGSIUIWH RKMNM RPMTM",3607:" 56I[MOMXKYLYNZO[PZRYUX RNPNYPZ ROOOXQYRY RMOOORNTMUNWOYOWPW\\V_TaRbQaO`M` RSNVPV\\ RSaQ`P` RRNSOUPUZV]V_ RTaS`Q_O_M`",3608:" 47I[LHMJMXKYLYNZO[ RNJMHNGNYPZ RLHOFOXQYO[ ROPROTNUMVNXOYOWPWYU[T] RTNVOVYU[ RROSOUPUYT]T`UbVbT`",3609:" 35MWRFPHRITHRF RRGQHSHRG RRMQNOOQPQYS[UY RRPSORNQORPRYSZ RRMSNUOSPSXTYUY",3610:" 39MWRFPHRITHRF RRGQHSHRG RRMQNOOQPQYS[T] RRPSORNQORPRYS[ RRMSNUOSPSYT]T`RbPbPaRb",3611:" 50IZLHMJMXKYLYNZO[ RNJMHNGNYPZ RLHOFOXQYO[ ROPRNTMVPSROU RSNUP RRNTQ RSRTSVXWYXY RSSTTUYVZ RRSSTTYV[XY",3612:" 22MWPHQJQXOYPYRZS[ RRJQHRGRYTZ RPHSFSXUYVYTZS[",3613:" 67E_GOHOIPIXGYHYJZK[ RINJOJYLZ RGOIMKOKXMYK[ RKPNOPNQMSOSXUYS[ RPNRORYTZ RNOOOQPQXPYRZS[ RSPVOXNYMZN\\O]O[P[X\\Y]Y RXNZOZY[Z RVOWOYPYY[[]Y",3614:" 45I[KOLOMPMXKYLYNZO[ RMNNONYPZ RKOMMOOOXQYO[ ROPROTNUMVNXOYOWPWXXYYY RTNVOVYWZ RROSOUPUYW[YY",3615:" 40I[MOMXKY RNPNXQZ ROOOXQYRZ RKYMYOZP[RZUYWY RMOOORNTMUNWOYOWPWY RSNVPVX RRNSOUPUY",3616:" 54I[LMMOMXKYMYMb RMNNONaO`N^ RNYOYQZ RLMNNOOOXQYRZ ROZP[RZUYWY ROZO^P`Mb ROPROTNUMVNXOYOWPWY RTNVOVX RROSOUPUY",3617:" 44I[MOMXKY RNPNYPZ ROOOXQYRY RKYLYNZO[PZRYUX RMOOORNTMUNWOYOWPWb RSNVPVaU`V^ RRNSOUPU^T`Wb",3618:" 38JXLOMONPNXLYMYOZP[ RMNOOOYQZ RLONMPOPXRYSYQZP[ RPOTMUNWOXO RSNTOVO RRNTPVPXO",3619:" 59JZMOMSOTUTWUWY RNONS RVUVY RPNOOOSQT RSTUUUYTZ RMOPNRMTNVNWM RQNSN RPNROTOVN RWYTZR[PZNZL[ RSZQZ RTZRYOYL[ RWMVOTROWL[",3620:" 28MWPHQJQXOYPYRZS[ RRJQHRGRYTZ RPHSFSXUYVYTZS[ RNMQM RSMVM",3621:" 47I[KOLOMPMXKY RLNNONYPZ RKOMMOOOXQYRY RKYLYNZO[PZRYUX RUMVNXOYOWPWXXYYY RTNVOVYWZ RUMSOUPUYW[YY",3622:" 36I[LMMOMXP[RYUXWX RMNNONXQZ RLMNNOOOWPXRY RUMVNXOYOWPWX RTNVOVW RUMSOUPUX",3623:" 57E_HMIOIXL[NYQX RINJOJXMZ RHMJNKOKWLXNY RQMOOQPQXT[VYYX[X RPNRORXUZ RQMRNTOSPSWTXVY RYMZN\\O]O[P[X RXNZOZW RYMWOYPYX",3624:" 59H[KOLONPOQSYTZV[XY RMNOOTYVZ RKOMMONPOTWUXWYXY RRSUMVNXNYM RUNVOWO RTOVPXOYM RQUN[MZKZJ[ RNZMYLY ROYMXKYJ[ RMTPT RSTVT",3625:" 60I[KOLOMPMXKY RLNNONYPZ RKOMMOOOXQYRY RKYLYNZO[PZRYUX RUMVNXOYOWPW\\V_TaRbQaO`M` RTNVOV\\ RSaQ`P` RUMSOUPUZV]V_ RTaS`Q_O_M`",3626:" 38I[XML[ RLONPQPTOXM RMNOOSO RLONMPNTNXM RL[PYSXVXXY RQYUYWZ RL[PZTZV[XY RNTVT",3700:" 42H\\LHLXJY RMIMXPZ RNHNXPYQZ RLHNHSGUF RSGTHVIVY RTGWIWX RUFVGXHZHXIXY RJYLYNZO[QZVYXY",3701:" 27H\\OHPIQKQXOY RQIPHQGRIRYTZ ROHRFSHSXUYVY ROYPYRZS[TZVY",3702:" 48H\\LHNHPGQFSGVHXH RPHRG RLHNIPIRHSG RVHVP RWIWO RXHXPQPNQLSKVK[ RK[OYSXVXZY RNZQYVYYZ RK[PZUZX[ZY",3703:" 57H\\LHMHOGPFRGVHXH ROHQG RLHNIPIRG RVHVO RWIWN RXHXOVOSPQQ RQPSQVRXRXY RWSWX RVRVY RKYMXOXQYRZ ROYQZ RKYMYOZP[RZVYXY",3704:" 41H\\UFKPKUTU RVUZU[V[TZU RLPLT RMNMU RTGTXRY RUJVHUGUYWZ RUFWHVJVXXYYY RRYSYUZV[WZYY",3705:" 53H\\LFLO RLFXF RMGVG RLHUHWGXF RVLUMSNOOLO RSNTNVOVY RUMWNWX RVLWMYNZNXOXY RKYMXOXQYRZ ROYQZ RKYMYOZP[RZVYXY",3706:" 59H\\LHLXJY RMIMXPZ RNHNXPYQZ RLHNHRGTFUGWHXH RSGUH RRGTIVIXH RNPOPSOUNVM RSOTOVPVY RUNWPWX RVMWNYOZOXPXY RJYLYNZO[QZVYXY",3707:" 38H\\KHMFPGUGZF RLGOHTHWG RKHOIRIVHZF RZFYHWKSOQRPUPXQ[ RRQQTQWRZ RUMSPRSRVSYQ[",3708:" 71H\\LILO RMJMN RNINO RLINISHUGVF RSHTHVIVO RUGWHWN RVFWGYHZHXIXO RLONOVRXR RXOVONRLR RLRLXJY RMSMXPZ RNRNXPYQZ RVRVY RWSWX RXRXY RJYLYNZO[QZVYXY",3709:" 60H\\LHLQJR RMIMROS RNHNQPRQR RLHNHSGUF RSGTHVIVY RTGWIWX RUFVGXHZHXIXY RJRKRMSNTOSQRUQVQ RKYMXOXQYRZ ROYQZ RKYMYOZP[RZVYXY",3710:" 11LXRXPZR[TZRX RRYQZSZRY",3711:" 14LXR^R\\PZRXSZS\\R^P_ RRYQZR[RY",3712:" 22LXRMPORPTORM RRNQOSORN RRXPZR[TZRX RRYQZSZRY",3713:" 25LXRMPORPTORM RRNQOSORN RR^R\\PZRXSZS\\R^P_ RRYQZR[RY",3714:" 30LXRFQGOHQIRT RRISHRGQHRIRT RRFSGUHSIRT RRXPZR[TZRX RRYQZSZRY",3715:" 51I[LJMHNGQFSFVGWHXJXLWNUPSQ RMJNH RVHWIWMVN RLJNKNIOGQF RSFUGVIVMUOSQ RRQRTSQQQRT RRXPZR[TZRX RRYQZSZRY",3716:" 14LXTFRGQIQKRMTKRIRG RRJRLSKRJ",3717:" 14LXRLRJPHRFSHSJRLPM RRGQHRIRG",3718:" 62E_YNZO[O\\N RXOYP[P RXPYQZQ[P\\N RYNST RRUL[HVNP ROOSKOFJLPRTXVZX[Z[[Z\\X RLZIV RRKOG RKLPQTWVYXZ[Z RMZIU RRLNG RKKQQUWVXXY[Y\\X",3719:" 60H\\PBP_ RTBT_ RTFVGWIWKYJXHWGTFPFMGKIKLLNOPURWSXUXXWZ RXJWH RLLMNOOUQWRXT RMYLW RMGLILKMMONUPXRYTYWXYWZT[P[MZLYKWMVMXNZP[",3720:" 8G^[BIbJb R[B\\BJb",3721:" 27KYUBSDQGOKNPNTOYQ]S`Ub RQHPKOOOUPYQ\\ RSDRFQIPOPUQ[R^S`",3722:" 27KYOBQDSGUKVPVTUYS]Q`Ob RSHTKUOUUTYS\\ RQDRFSITOTUS[R^Q`",3723:" 39JZRFQGSQRR RRFRR RRFSGQQRR RMINIVOWO RMIWO RMIMJWNWO RWIVINOMO RWIMO RWIWJMNMO",3724:" 8F_JQ[Q[R RJQJR[R",3725:" 16F_RIRZSZ RRISISZ RJQ[Q[R RJQJR[R",3726:" 16F_JM[M[N RJMJN[N RJU[U[V RJUJV[V",3727:" 11NWSFRGRM RSGRM RSFTGRM",3728:" 22I[NFMGMM RNGMM RNFOGMM RWFVGVM RWGVM RWFXGVM",3729:" 30KYQFOGNINKOMQNSNUMVKVIUGSFQF RQFNIOMSNVKUGQF RSFOGNKQNUMVISF",3801:" 52E_NHLIJKIMHPHSIUKV RJLIOISJU RNHLJKLJOJRKVKXJZH[ RVHXHXYVY RYHYY RZGZZ RHFKGQHVHZG\\F RJPXP RH[KZQYVYZZ\\[",3802:" 65E_LGLZ RMGMZ RPFNGNZP[ RHJJHLGPFUFXGZIZKYM RXHYIYKXM RUFWGXIXKWL RQUOTNRNPONPMSLVLYM[O\\Q\\T[WYYWZT[P[LZJYHW RZO[Q[UZW RVLYNZQZUYXWZ",3803:" 60E_\\F[HZJXHVGSFQFNGLHJJILHOHRIUJWLYNZQ[S[VZXYZW[Y\\[ R[HZMZT[Y RZKYJ RZNYKXIVG RJKINISJV RNGLIKKJNJSKVLXNZ RYWZV RVZXXYVZS",3804:" 46E_KGKZ RLGLZ RNFMGMZN[ RHKIIKGNFSFVGXHZJ[L\\O\\R[UZWXYVZS[N[KZIXHV RZK[N[SZV RVGXIYKZNZSYVXXVZ",3805:" 86E_\\F[HZJXHVGSFQFNGLHJJILHOHRIUJWLYNZQ[S[VZXYZW[Y\\[ R[HZMZT[Y RZKYJ RZMXIVG RJKINISJV RNGLIKKJNJSKVLXNZ RYWZV RVZXXYVZS RJPKONOUQXQZP RPPRQURWRYQ RMORRUSWSYRZP RZMYLXLWMXNYM",3806:" 69E_JHJZ RMGKHKY ROFMGLILYNY RHJJHLGOFSFVGXHYI\\F R\\F[HZLZO[S\\U RZIYK RVGXIYLZO RLPMOOOTPWPYO RQPTQVQXP RNOTRVRXQYOYLXKWKVLWMXL RH[JZNYSYYZ\\[",3807:" 90E_\\F[HZJXHVGSFQFNGLHJJILHOHRIUJWLYNZQ[T[VZXYYXZV[Y\\[ R[HZMZT[Y RZKYJ RZNYKXIVG RJKINISJV RNGLIKKJNJSKVLXNZ RXXYVYR RVZWYXVXQ RKSLRMSLTKTJS RJPKNMMOMRNUPWQ RKOMNONROTP RJPLOOOUQYQZP",3808:" 50E_JGJZH[ RKHKZ RNHLHLZ RHFJGNHSHYG\\F RLPMNOLRKVKYL[N\\Q\\T[UYV RZN[P[SZU RVKXLYMZOZSYVYXZZ\\[ RH[LZPZU[",3809:" 23E_QIQY RRJRX RSISY RHFLHPITIXH\\F RH[KZOYUYYZ\\[",3810:" 42E_TIVIVXUZS[ RWIWXVY RXHXY RHFLHPITIXH\\F RIOHQHUIXKZN[S[VZXYZW\\T RIUJXKY RHSJUKXLZN[",3811:" 70E_JGJZH[ RKHKZ RNHLHLZ RHFJGNHSHYG\\F RLPMNOLRKUKXLYMYOXPSRQSPTPUQVRUQT RWLXMXOWP RUKWMWOVPSR RSRVRYSZUZWYX RWSYUYW RSRVSXUYXZZ[[\\[ RH[LZPZU[",3812:" 45E_JGJZ RKHKY RNHLHLYNY R\\KZNYPXSXUYW[X RZOYRYUZW R\\K[MZQZT[X\\[ RHFJGNHSHYG\\F RH[JZNYSYYZ\\[",3813:" 68E_QIQY RRJRX RSISY RNYLWJVIUHRHMIJKHMGPFTFWGYH[J\\M\\R[UZVXWVY RJUIRIMJJ RLWKUJRJLKIMG RZJ[M[RZU RWGYIZLZRYUXW RHFLHPITIXH\\F RH[KZOYUYYZ\\[",3814:" 48E_JHJZH[ RLHKIKZ ROFMGLILZ RHJJHLGOFSFVGXHZJ[L\\O\\S[UYV RZK[N[RZU RVGXIYKZNZRYVYXZZ[[\\[ RH[LZPZU[",3815:" 54E_QFNGLHJJILHOHRIUJWLYNZQ[S[VZXYZW[U\\R\\O[LZJXHVGSFQF RJKINISJV RNGLIKKJNJSKVLXNZ RZV[S[NZK RVZXXYVZSZNYKXIVG",3816:" 51E_JIJZ RMHKJKY RQFOGMILKLYNY RHKJINGQFTFWGYH[J\\M\\O[RYTVURUOTMRLO RZJ[L[PZR RWGYIZLZPYSVU RH[JZNYSYYZ\\[",3817:" 74E_QFNGLHJJILHOHRIUJWLYNZQ[S[VZXYZW[U\\R\\O[LZJXHVGSFQF RJKINISJV RNGLIKKJNJSKVLXNZ RZV[S[NZK RVZXXYVZSZNYKXIVG RJSKUNVTW[W\\X\\Z[[[Z\\Y RPWRW RKUNWQXSXTW",3818:" 69E_JIJZH[ RKIKZ RLHLZ RHKJILHNGQFUFYG[I\\K\\N[PZQ RYHZI[K[NZP RUFWGYIZKZOYQ RXRUSRSPRPPROUOXPZR\\U\\W[XZX RXQYR[V[WZT RTOVPXRYTZX[Z\\[ RH[LZPZU[",3819:" 94E_TFZG\\F[H[JYHWGTFPFMGJJIMIOJRLTOURUTTUSVQVP R[GZH[J RJPKRLSOTRTTS RKIJKJNKPMRPSRSTRVPWOXO RLQMQNPPNRMUMWNYPZRZUYXWZ RPMRLULXMZO[R[UZW RIWJYIZ RNPNOOMPLRKUKXL[O\\R\\T[WYYWZT[P[MZKYIWIYH[JZP[",3820:" 66E_QHMHKIJJILHOHSIVJXKYMZP[S[VZXYZW[U\\R\\N[KYIWH RUHTITKULVKUJ RISJVLXNYQZTZWY RJJINIQJTLWNXQYTYWXYW[T\\R RHFKI RKHLG RIGJGKFMGQHWHZG\\F",3821:" 51E_LHJJILHOHRIUJWLYNZQ[U[XZZY RKJJLIOISJV RKILJLKKMJPJSKVLXNZ RVHXHXXWZU[ RYHYXXY RZGZY\\[ RHFKGQHVHZG\\F",3822:" 31E_HFR[ RIGJHQWRY RJGKHRWSX R\\FR[ RWNUS RYLUQTTTV RHFJGOHUHZG\\F",3823:" 67E_LHJJILHOHRIUJWLYNZQ[S[VZXYZW[U\\R\\O[LZJXH RJLIOIRJUKW RJJKKKLJOJRKVLXNZ RYWZU[R[OZL RVZXXYVZRZOYLYKZJ RQIQ[ RRJRZ RSIS[ RHFLHPITIXH\\F",3824:" 41E_HFXYYZ RIGKHZZ RLH\\[ R\\FSP RQRJZ RPSMULW RQRMTLUKWKY RHFLHPITIXH\\F RH[JZNYSYYZ\\[",3825:" 47E_XHXZ RYHYY RZGZY RKHIJHMHPISKUMVPWSWVVXU RLUOVUV RHPIRKTNUTUVV RHFLHPITIXH\\F RHWJYLZP[T[XZ\\X",3826:" 73E_HFIGKHNHSFVFYGZIZKYM RXGYIYKXM RVFWGXIXL RXNTOROPNPLRKTKXL RTKVLWMVNTO RYM[O\\R\\T[WYYWZT[P[MZKYIWHTHRIOJNLMNMPNPPOQNPOO RXMZO[Q[UZW RXNYOZQZUYXWZ",3901:" 42J[PQMTMXP[TY RNTNXPZ ROROWRZ RRSMNNMONNO RONSNUMWOWXXY RUNVOVXUYVZWYVX RSNUPUXTYV[XY",3902:" 31IZNHLFMJMXP[UYWX RNHNXPZ RNHPFOJOWRZ ROOTMWPWX RTNVPVX RRNUQUY",3903:" 23KWNPNYP[RY ROPOYPZ RPOPXQYRY RNPTMVOTPRN RSNUO",3904:" 32JZRMMPMXP[RZUYWY RNPNXPZ ROOOWRZ RPIPFQIWPWY RPIVPVX RPIMIPJUPUY",3905:" 25KXNPNYP[RY ROPOYPZ RPOPXQYRY RNPTMWQPU RSNVQ RRNUR",3906:" 32KWOIOXNYP[ RPIPXOYPZQYPX RQHQXRYP[ ROIUFWHUISG RTGVH RLMOM RQMUM",3907:" 41J[MPMXP[UY RNPNXPZ ROOOWRZ RMPOOTMWPW]V_U`SaQaO`MaObQa RTNVPV]U_ RPaNa RRNUQU^T`Sa",3908:" 42I[NHLFMJMXLYN[ RNHNXMYNZOYNX RNHPFOJOXPYN[ ROORNTMWPWYT]T`UbVbT` RTNVPVYU[ RRNUQUZT]",3909:" 37MWRFPHRJTHRF RRGQHRISHRG RRMPOQPQXPYR[ RRPSORNQORPRXQYRZSYRX RRMTOSPSXTYR[",3910:" 37MWRFPHRJTHRF RRGQHRISHRG RRMPOQPQYT] RRPSORNQORPRYS[ RRMTOSPSZT]T`RbPaPbRb",3911:" 51IZNHLFMJMXLYN[ RNHNXMYNZOYNX RNHPFOJOXPYN[ ROPRNTMVPSROU RSNUP RRNTQ RRSSTTYV[XY RSSTUUYVZ RSRTSVXWYXY",3912:" 21MWRHPFQJQXPYR[ RRHRXQYRZSYRX RRHTFSJSXTYR[",3913:" 66E_GOHOIPIXHYJ[ RINJOJXIYJZKYJX RGOIMKOKXLYJ[ RKONNPMSOSXTYR[ RPNRORXQYRZSYRX RNNQPQXPYR[ RSOVNXM[O[X\\YZ[ RXNZOZXYYZZ[YZX RVNYPYXXYZ[",3914:" 44I[KOLOMPMXLYN[ RMNNONXMYNZOYNX RKOMMOOOXPYN[ ROORNTMWOWXXYV[ RTNVOVXUYVZWYVX RRNUPUXTYV[",3915:" 28JZMPMXP[UYWX RNPNXPZ ROOOWRZ RMPOOTMWPWX RTNVPVX RRNUQUY",3916:" 47IZLMMOMXKYMYM_LbN` RNON` RLMNNOOOXQYRZ RNYOYQZ ROZP[UYWX ROZO_PbN` ROORNTMWPWX RTNVPVX RRNUQUY",3917:" 31J[MPMXP[UY RNPNXPZ ROOOWRZ RMPOOTMWPW_XbV` RTNVPV` RRNUQU_TbV`",3918:" 31KXMONOOPOXNYP[ RONPOPXOYPZQYPX RMOOMQOQXRYP[ RQOUMWOUPSN RTNVO",3919:" 41JZMPMSOUURWTWX RNPNSOT ROOOSPT RUSVTVX RTSUTUY RMPSMVNTOQN RRNUN RWXQ[MYOXSZ ROYQZ",3920:" 27MWRHPFQJQXPYR[ RRHRXQYRZSYRX RRHTFSJSXTYR[ RNMQM RSMVM",3921:" 40I[KOLOMPMYP[UY RMNNONYPZ RKOMMOOOXRZ RVMXOWPWXXYYY RVPWOVNUOVPVYWZ RVMTOUPUYW[YY",3922:" 36I[LMMOMXQ[SYWW RMNNONXQZ RLMNNOOOWRYSY RVMXOWPWW RVPWOVNUOVPVW RVMTOUPUX",3923:" 59E_HMIOIXM[OYQX RINJOJXMZ RHMJNKOKWNYOY RRMPOQPQXU[WY[W RRPSORNQORPRXUZ RRMTOSPSWVYWY RZM\\O[P[W RZP[OZNYOZPZW RZMXOYPYX",3924:" 39I[LONPUZV[XY RMNOOUYWZ RLONMONVXXY RXMVMVOXOXMVOSS RQUNYL[N[NYLYL[ RNTQT RSTVT",3925:" 49I[KOLOMPMYP[UY RMNNONYPZ RKOMMOOOXRZ RVMXOWPW]V_U`SaQaO`MaObQa RVPWOVNUOVPV^U_ RPaNa RVMTOUPU^T`Sa",3926:" 43L[RNOPOORNTMWOWSRU RTNVOVS RRNUPUSTT RRUWWW]V_U`SaQaO`MaObQa RVWV^U_ RPaNa RTVUWU^T`Sa"},ot={"\\frac":{glyph:0,arity:2,flags:{}},"\\binom":{glyph:0,arity:2,flags:{}},"\\sqrt":{glyph:2267,arity:1,flags:{opt:!0,xfl:!0,yfl:!0}},"^":{glyph:0,arity:1,flags:{}},_:{glyph:0,arity:1,flags:{}},"(":{glyph:2221,arity:0,flags:{yfl:!0}},")":{glyph:2222,arity:0,flags:{yfl:!0}},"[":{glyph:2223,arity:0,flags:{yfl:!0}},"]":{glyph:2224,arity:0,flags:{yfl:!0}},"\\langle":{glyph:2227,arity:0,flags:{yfl:!0}},"\\rangle":{glyph:2228,arity:0,flags:{yfl:!0}},"|":{glyph:2229,arity:0,flags:{yfl:!0}},"\\|":{glyph:2230,arity:0,flags:{yfl:!0}},"\\{":{glyph:2225,arity:0,flags:{yfl:!0}},"\\}":{glyph:2226,arity:0,flags:{yfl:!0}},"\\#":{glyph:2275,arity:0,flags:{}},"\\$":{glyph:2274,arity:0,flags:{}},"\\&":{glyph:2273,arity:0,flags:{}},"\\%":{glyph:2271,arity:0,flags:{}},"\\begin":{glyph:0,arity:1,flags:{}},"\\end":{glyph:0,arity:1,flags:{}},"\\left":{glyph:0,arity:1,flags:{}},"\\right":{glyph:0,arity:1,flags:{}},"\\middle":{glyph:0,arity:1,flags:{}},"\\cdot":{glyph:2236,arity:0,flags:{}},"\\pm":{glyph:2233,arity:0,flags:{}},"\\mp":{glyph:2234,arity:0,flags:{}},"\\times":{glyph:2235,arity:0,flags:{}},"\\div":{glyph:2237,arity:0,flags:{}},"\\leqq":{glyph:2243,arity:0,flags:{}},"\\geqq":{glyph:2244,arity:0,flags:{}},"\\leq":{glyph:2243,arity:0,flags:{}},"\\geq":{glyph:2244,arity:0,flags:{}},"\\propto":{glyph:2245,arity:0,flags:{}},"\\sim":{glyph:2246,arity:0,flags:{}},"\\equiv":{glyph:2240,arity:0,flags:{}},"\\dagger":{glyph:2277,arity:0,flags:{}},"\\ddagger":{glyph:2278,arity:0,flags:{}},"\\ell":{glyph:662,arity:0,flags:{}},"\\vec":{glyph:2261,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\overrightarrow":{glyph:2261,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\overleftarrow":{glyph:2263,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\bar":{glyph:2231,arity:1,flags:{hat:!0,xfl:!0}},"\\overline":{glyph:2231,arity:1,flags:{hat:!0,xfl:!0}},"\\widehat":{glyph:2247,arity:1,flags:{hat:!0,xfl:!0,yfl:!0}},"\\hat":{glyph:2247,arity:1,flags:{hat:!0}},"\\acute":{glyph:2248,arity:1,flags:{hat:!0}},"\\grave":{glyph:2249,arity:1,flags:{hat:!0}},"\\breve":{glyph:2250,arity:1,flags:{hat:!0}},"\\tilde":{glyph:2246,arity:1,flags:{hat:!0}},"\\underline":{glyph:2231,arity:1,flags:{mat:!0,xfl:!0}},"\\not":{glyph:2220,arity:1,flags:{}},"\\neq":{glyph:2239,arity:1,flags:{}},"\\ne":{glyph:2239,arity:1,flags:{}},"\\exists":{glyph:2279,arity:0,flags:{}},"\\in":{glyph:2260,arity:0,flags:{}},"\\subset":{glyph:2256,arity:0,flags:{}},"\\supset":{glyph:2258,arity:0,flags:{}},"\\cup":{glyph:2257,arity:0,flags:{}},"\\cap":{glyph:2259,arity:0,flags:{}},"\\infty":{glyph:2270,arity:0,flags:{}},"\\partial":{glyph:2265,arity:0,flags:{}},"\\nabla":{glyph:2266,arity:0,flags:{}},"\\aleph":{glyph:2077,arity:0,flags:{}},"\\wp":{glyph:2190,arity:0,flags:{}},"\\therefore":{glyph:740,arity:0,flags:{}},"\\mid":{glyph:2229,arity:0,flags:{}},"\\sum":{glyph:2402,arity:0,flags:{big:!0}},"\\prod":{glyph:2401,arity:0,flags:{big:!0}},"\\bigoplus":{glyph:2284,arity:0,flags:{big:!0}},"\\bigodot":{glyph:2281,arity:0,flags:{big:!0}},"\\int":{glyph:2412,arity:0,flags:{yfl:!0}},"\\oint":{glyph:2269,arity:0,flags:{yfl:!0}},"\\oplus":{glyph:1284,arity:0,flags:{}},"\\odot":{glyph:1281,arity:0,flags:{}},"\\perp":{glyph:738,arity:0,flags:{}},"\\angle":{glyph:739,arity:0,flags:{}},"\\triangle":{glyph:842,arity:0,flags:{}},"\\Box":{glyph:841,arity:0,flags:{}},"\\rightarrow":{glyph:2261,arity:0,flags:{}},"\\to":{glyph:2261,arity:0,flags:{}},"\\leftarrow":{glyph:2263,arity:0,flags:{}},"\\gets":{glyph:2263,arity:0,flags:{}},"\\circ":{glyph:902,arity:0,flags:{}},"\\bigcirc":{glyph:904,arity:0,flags:{}},"\\bullet":{glyph:828,arity:0,flags:{}},"\\star":{glyph:856,arity:0,flags:{}},"\\diamond":{glyph:743,arity:0,flags:{}},"\\ast":{glyph:728,arity:0,flags:{}},"\\log":{glyph:0,arity:0,flags:{txt:!0}},"\\ln":{glyph:0,arity:0,flags:{txt:!0}},"\\exp":{glyph:0,arity:0,flags:{txt:!0}},"\\mod":{glyph:0,arity:0,flags:{txt:!0}},"\\lim":{glyph:0,arity:0,flags:{txt:!0,big:!0}},"\\sin":{glyph:0,arity:0,flags:{txt:!0}},"\\cos":{glyph:0,arity:0,flags:{txt:!0}},"\\tan":{glyph:0,arity:0,flags:{txt:!0}},"\\csc":{glyph:0,arity:0,flags:{txt:!0}},"\\sec":{glyph:0,arity:0,flags:{txt:!0}},"\\cot":{glyph:0,arity:0,flags:{txt:!0}},"\\sinh":{glyph:0,arity:0,flags:{txt:!0}},"\\cosh":{glyph:0,arity:0,flags:{txt:!0}},"\\tanh":{glyph:0,arity:0,flags:{txt:!0}},"\\csch":{glyph:0,arity:0,flags:{txt:!0}},"\\sech":{glyph:0,arity:0,flags:{txt:!0}},"\\coth":{glyph:0,arity:0,flags:{txt:!0}},"\\arcsin":{glyph:0,arity:0,flags:{txt:!0}},"\\arccos":{glyph:0,arity:0,flags:{txt:!0}},"\\arctan":{glyph:0,arity:0,flags:{txt:!0}},"\\arccsc":{glyph:0,arity:0,flags:{txt:!0}},"\\arcsec":{glyph:0,arity:0,flags:{txt:!0}},"\\arccot":{glyph:0,arity:0,flags:{txt:!0}},"\\text":{glyph:0,arity:1,flags:{}},"\\mathnormal":{glyph:0,arity:1,flags:{}},"\\mathrm":{glyph:0,arity:1,flags:{}},"\\mathit":{glyph:0,arity:1,flags:{}},"\\mathbf":{glyph:0,arity:1,flags:{}},"\\mathsf":{glyph:0,arity:1,flags:{}},"\\mathtt":{glyph:0,arity:1,flags:{}},"\\mathfrak":{glyph:0,arity:1,flags:{}},"\\mathcal":{glyph:0,arity:1,flags:{}},"\\mathbb":{glyph:0,arity:1,flags:{}},"\\mathscr":{glyph:0,arity:1,flags:{}},"\\rm":{glyph:0,arity:1,flags:{}},"\\it":{glyph:0,arity:1,flags:{}},"\\bf":{glyph:0,arity:1,flags:{}},"\\sf":{glyph:0,arity:1,flags:{}},"\\tt":{glyph:0,arity:1,flags:{}},"\\frak":{glyph:0,arity:1,flags:{}},"\\cal":{glyph:0,arity:1,flags:{}},"\\bb":{glyph:0,arity:1,flags:{}},"\\scr":{glyph:0,arity:1,flags:{}},"\\quad":{glyph:0,arity:0,flags:{}},"\\,":{glyph:0,arity:0,flags:{}},"\\.":{glyph:0,arity:0,flags:{}},"\\;":{glyph:0,arity:0,flags:{}},"\\!":{glyph:0,arity:0,flags:{}},"\\alpha":{glyph:2127,flags:{}},"\\beta":{glyph:2128,flags:{}},"\\gamma":{glyph:2129,flags:{}},"\\delta":{glyph:2130,flags:{}},"\\varepsilon":{glyph:2131,flags:{}},"\\zeta":{glyph:2132,flags:{}},"\\eta":{glyph:2133,flags:{}},"\\vartheta":{glyph:2134,flags:{}},"\\iota":{glyph:2135,flags:{}},"\\kappa":{glyph:2136,flags:{}},"\\lambda":{glyph:2137,flags:{}},"\\mu":{glyph:2138,flags:{}},"\\nu":{glyph:2139,flags:{}},"\\xi":{glyph:2140,flags:{}},"\\omicron":{glyph:2141,flags:{}},"\\pi":{glyph:2142,flags:{}},"\\rho":{glyph:2143,flags:{}},"\\sigma":{glyph:2144,flags:{}},"\\tau":{glyph:2145,flags:{}},"\\upsilon":{glyph:2146,flags:{}},"\\varphi":{glyph:2147,flags:{}},"\\chi":{glyph:2148,flags:{}},"\\psi":{glyph:2149,flags:{}},"\\omega":{glyph:2150,flags:{}},"\\epsilon":{glyph:2184,flags:{}},"\\theta":{glyph:2185,flags:{}},"\\phi":{glyph:2186,flags:{}},"\\varsigma":{glyph:2187,flags:{}},"\\Alpha":{glyph:2027,flags:{}},"\\Beta":{glyph:2028,flags:{}},"\\Gamma":{glyph:2029,flags:{}},"\\Delta":{glyph:2030,flags:{}},"\\Epsilon":{glyph:2031,flags:{}},"\\Zeta":{glyph:2032,flags:{}},"\\Eta":{glyph:2033,flags:{}},"\\Theta":{glyph:2034,flags:{}},"\\Iota":{glyph:2035,flags:{}},"\\Kappa":{glyph:2036,flags:{}},"\\Lambda":{glyph:2037,flags:{}},"\\Mu":{glyph:2038,flags:{}},"\\Nu":{glyph:2039,flags:{}},"\\Xi":{glyph:2040,flags:{}},"\\Omicron":{glyph:2041,flags:{}},"\\Pi":{glyph:2042,flags:{}},"\\Rho":{glyph:2043,flags:{}},"\\Sigma":{glyph:2044,flags:{}},"\\Tau":{glyph:2045,flags:{}},"\\Upsilon":{glyph:2046,flags:{}},"\\Phi":{glyph:2047,flags:{}},"\\Chi":{glyph:2048,flags:{}},"\\Psi":{glyph:2049,flags:{}},"\\Omega":{glyph:2050,flags:{}}};function qc(t,e="math"){const n=t.charCodeAt(0);if(65<=n&&n<=90){const r=n-65;return e=="text"||e=="rm"?r+2001:e=="tt"?r+501:e=="bf"||e=="bb"?r+3001:e=="sf"?r+2501:e=="frak"?r+3301:e=="scr"||e=="cal"?r+2551:r+2051}if(97<=n&&n<=122){const r=n-97;return e=="text"||e=="rm"?r+2101:e=="tt"?r+601:e=="bf"||e=="bb"?r+3101:e=="sf"?r+2601:e=="frak"?r+3401:e=="scr"||e=="cal"?r+2651:r+2151}if(48<=n&&n<=57){const r=n-48;return e=="it"?r+2750:e=="bf"?r+3200:e=="tt"?r+700:r+2200}return{".":2210,",":2211,":":2212,";":2213,"!":2214,"?":2215,"'":2216,'"':2217,"*":2219,"/":2220,"-":2231,"+":2232,"=":2238,"<":2241,">":2242,"~":2246,"@":2273,"\\":804}[t]}const xr={SUB_SUP_SCALE:.5,SQRT_MAG_SCALE:.5,FRAC_SCALE:.85,LINE_SPACING:.5,FRAC_SPACING:.4};function rw(t){t=t.replace(/\n/g," ");let e=0;const n=[];let r="";for(;e<t.length;)t[e]==" "?r.length&&(n.push(r),r=""):t[e]=="\\"?r.length==1&&r[0]=="\\"?(r+=t[e],n.push(r),r=""):(r.length&&n.push(r),r=t[e]):/[A-Za-z0-9\.]/.test(t[e])?r+=t[e]:(r.length&&r!="\\"&&(n.push(r),r=""),r+=t[e],n.push(r),r=""),e++;return r.length&&n.push(r),n}function iw(t){return{type:ot[t]?"symb":"char",mode:"math",text:t,chld:[],bbox:null}}function hd(t){let e=0,n={type:"node",text:"",mode:"math",chld:[],bbox:null};function r(){if(t[e]!="[")return null;let o=0,a=e;for(;a<t.length;){if(t[a]=="[")o++;else if(t[a]=="]"&&(o--,!o))break;a++}const s=hd(t.slice(e+1,a));return e=a,s}function i(o){let a=e,s=a,c=0,u=0;const l=[];for(;a<t.length;){if(t[a]=="{")c||(s=a),c++;else if(t[a]=="}"){if(c--,!c&&(l.push(hd(t.slice(s+1,a))),u++,u==o))break}else if(c==0&&(l.push(iw(t[a])),u++,u==o))break;a++}return e=a,l}for(e=0;e<t.length;e++){const o=ot[t[e]],a={type:"",text:t[e],mode:"math",chld:[],bbox:null};if(o)if(o.arity){e++,a.type="func";let s=null;o.flags.opt&&(s=r(),s&&e++);const c=i(o.arity);a.chld=c,s&&a.chld.push(s)}else a.type="symb";else t[e]=="{"?(a.type="node",a.text="",a.chld=i(1)):a.type="char";n.chld.push(a)}return n.chld.length==1&&(n=n.chld[0]),n}function eR(t){let e=0;for(;e<t.length;){if(t[e].text=="\\begin"){let n;for(n=e;n<t.length&&t[n].text!="\\end";n++);const r=t.splice(e+1,n-(e+1));eR(r),t[e].text=t[e].chld[0].text,t[e].chld=r,t.splice(e+1,1)}e++}}function Gn(t,e,n,r,i,o){if(n==null&&(n=e),!!t.bbox){o&&(t.bbox.x*=e,t.bbox.y*=n),t.bbox.w*=e,t.bbox.h*=n;for(let a=0;a<t.chld.length;a++)Gn(t.chld[a],e,n,0,0,!0);t.bbox.x+=r,t.bbox.y+=i}}function tR(t){let e=1/0,n=-1/0,r=1/0,i=-1/0;for(let o=0;o<t.length;o++)!t[o].bbox||(e=Math.min(e,t[o].bbox.x),r=Math.min(r,t[o].bbox.y),n=Math.max(n,t[o].bbox.x+t[o].bbox.w),i=Math.max(i,t[o].bbox.y+t[o].bbox.h));return{x:e,y:r,w:n-e,h:i-r}}function ow(t){if(!t.length)return null;const e=tR(t);for(let r=0;r<t.length;r++)!t[r].bbox||(t[r].bbox.x-=e.x,t[r].bbox.y-=e.y);return{type:"node",text:"",mode:"math",chld:t,bbox:e}}function aw(t,e="center"){for(let u=0;u<t.length;u++)if(t[u].text=="^"||t[u].text=="'"){let l=0,h=u;for(;h>0&&(t[h].text=="^"||t[h].text=="_"||t[h].text=="'");)h--;l=t[h].bbox.y,t[u].text=="'"?t[u].bbox.y=l:(Gn(t[u],xr.SUB_SUP_SCALE,null,0,0),ot[t[h].text]&&ot[t[h].text].flags.big?t[u].bbox.y=l-t[u].bbox.h:t[h].text=="\\int"?t[u].bbox.y=l:t[u].bbox.y=l-t[u].bbox.h/2)}else if(t[u].text=="_"){let l=1,h=u;for(;h>0&&(t[h].text=="^"||t[h].text=="_"||t[h].text=="'");)h--;l=t[h].bbox.y+t[h].bbox.h,Gn(t[u],xr.SUB_SUP_SCALE,null,0,0),ot[t[h].text]&&ot[t[h].text].flags.big?t[u].bbox.y=l:t[h].text=="\\int"?t[u].bbox.y=l-t[u].bbox.h:t[u].bbox.y=l-t[u].bbox.h/2}function n(u,l,h,f,d){let p=u,g=d,y=1/0,R=-1/0;for(;f>0?p<t.length:p>=0;){if(t[p].text==l)g++;else if(t[p].text==h){if(g--,g==0)break}else t[p].text=="^"||t[p].text=="_"||t[p].bbox&&(y=Math.min(y,t[p].bbox.y),R=Math.max(R,t[p].bbox.y+t[p].bbox.h));p+=f}return[y,R]}for(let u=0;u<t.length;u++)if(t[u].text=="\\left"){const[l,h]=n(u,"\\left","\\right",1,0);l!=1/0&&h!=-1/0&&(t[u].bbox.y=l,Gn(t[u],1,(h-l)/t[u].bbox.h,0,0))}else if(t[u].text=="\\right"){const[l,h]=n(u,"\\right","\\left",-1,0);l!=1/0&&h!=-1/0&&(t[u].bbox.y=l,Gn(t[u],1,(h-l)/t[u].bbox.h,0,0))}else if(t[u].text=="\\middle"){const[l,h]=n(u,"\\right","\\left",-1,1),[f,d]=n(u,"\\left","\\right",1,1),p=Math.min(l,f),g=Math.max(h,d);p!=1/0&&g!=-1/0&&(t[u].bbox.y=p,Gn(t[u],1,(g-p)/t[u].bbox.h,0,0))}if(!t.some(u=>u.text=="&"||u.text=="\\\\"))return;const r=[];let i=[],o=[];for(let u=0;u<t.length;u++)t[u].text=="&"?(i.push(o),o=[]):t[u].text=="\\\\"?(o.length&&(i.push(o),o=[]),r.push(i),i=[]):o.push(t[u]);o.length&&i.push(o),i.length&&r.push(i);const a=[],s=[];for(let u=0;u<r.length;u++){const l=[];for(let h=0;h<r[u].length;h++){const f=ow(r[u][h]);f&&(a[h]=a[h]||0,a[h]=Math.max(f.bbox.w+1,a[h])),l[h]=f}s.push(l)}const c=[];for(let u=0;u<s.length;u++){let l=1/0,h=-1/0;for(let f=0;f<s[u].length;f++)!s[u][f]||(l=Math.min(l,s[u][f].bbox.y),h=Math.max(h,s[u][f].bbox.y+s[u][f].bbox.h));c.push([l,h])}for(let u=0;u<c.length;u++)(c[u][0]==1/0||c[u][1]==1/0)&&(c[u][0]=u==0?0:c[u-1][1],c[u][1]=c[u][0]+2);for(let u=1;u<s.length;u++){const l=c[u-1][1]-c[u][0]+xr.LINE_SPACING;for(let h=0;h<s[u].length;h++)s[u][h]&&(s[u][h].bbox.y+=l);c[u][0]+=l,c[u][1]+=l}t.splice(0,t.length);for(let u=0;u<s.length;u++){let l=0;for(let h=0;h<s[u].length;h++){const f=s[u][h];if(!f){l+=a[h];continue}f.bbox.x+=l,l+=a[h]-f.bbox.w,e=="center"?f.bbox.x+=(a[h]-f.bbox.w)/2:e=="left"||(e=="right"||e=="equation"&&h!=s[u].length-1)&&(f.bbox.x+=a[h]-f.bbox.w),t.push(f)}}}function Xr(t,e="math"){var r,i,o;const n=(r={"\\text":"text","\\mathnormal":"math","\\mathrm":"rm","\\mathit":"it","\\mathbf":"bf","\\mathsf":"sf","\\mathtt":"tt","\\mathfrak":"frak","\\mathcal":"cal","\\mathbb":"bb","\\mathscr":"scr","\\rm":"rm","\\it":"it","\\bf":"bf","\\sf":"tt","\\tt":"tt","\\frak":"frak","\\cal":"cal","\\bb":"bb","\\scr":"scr"}[t.text])!=null?r:e;if(!t.chld.length){if(ot[t.text])if(ot[t.text].flags.big)t.text=="\\lim"?t.bbox={x:0,y:0,w:3.5,h:2}:t.bbox={x:0,y:-.5,w:3,h:3};else if(ot[t.text].flags.txt){let a=0;for(let s=1;s<t.text.length;s++)a+=Jo(qc(t.text[s],"text")).w;a/=16,t.bbox={x:0,y:0,w:a,h:2}}else if(ot[t.text].glyph){let a=Jo(ot[t.text].glyph).w;a/=16,t.text=="\\int"||t.text=="\\oint"?t.bbox={x:0,y:-1.5,w:a,h:5}:t.bbox={x:0,y:0,w:a,h:2}}else t.bbox={x:0,y:0,w:1,h:2};else{let a=0;for(let s=0;s<t.text.length;s++)!Jo(qc(t.text[s],n))||(n=="tt"?a+=16:a+=Jo(qc(t.text[s],n)).w);a/=16,t.bbox={x:0,y:0,w:a,h:2}}t.mode=n;return}if(t.text=="\\frac"){const a=t.chld[0],s=t.chld[1],c=xr.FRAC_SCALE;Xr(a),Xr(s),a.bbox.x=0,a.bbox.y=0,s.bbox.x=0,s.bbox.y=0;const u=Math.max(a.bbox.w,s.bbox.w)*c;Gn(a,c,null,(u-a.bbox.w*c)/2,0),Gn(s,c,null,(u-s.bbox.w*c)/2,a.bbox.h+xr.FRAC_SPACING),t.bbox={x:0,y:-a.bbox.h+1-xr.FRAC_SPACING/2,w:u,h:a.bbox.h+s.bbox.h+xr.FRAC_SPACING}}else if(t.text=="\\binom"){const a=t.chld[0],s=t.chld[1];Xr(a),Xr(s),a.bbox.x=0,a.bbox.y=0,s.bbox.x=0,s.bbox.y=0;const c=Math.max(a.bbox.w,s.bbox.w);Gn(a,1,null,(c-a.bbox.w)/2+1,0),Gn(s,1,null,(c-s.bbox.w)/2+1,a.bbox.h),t.bbox={x:0,y:-a.bbox.h+1,w:c+2,h:a.bbox.h+s.bbox.h}}else if(t.text=="\\sqrt"){const a=t.chld[0];Xr(a);const s=t.chld[1];let c=0;s&&(Xr(s),c=Math.max(s.bbox.w*xr.SQRT_MAG_SCALE-.5,0),Gn(s,xr.SQRT_MAG_SCALE,null,0,.5)),Gn(a,1,null,1+c,.5),t.bbox={x:0,y:2-a.bbox.h-.5,w:a.bbox.w+1+c,h:a.bbox.h+.5}}else if(ot[t.text]&&ot[t.text].flags.hat){const a=t.chld[0];Xr(a);const s=a.bbox.y-.5;a.bbox.y=.5,t.bbox={x:0,y:s,w:a.bbox.w,h:a.bbox.h+.5}}else if(ot[t.text]&&ot[t.text].flags.mat){const a=t.chld[0];Xr(a),t.bbox={x:0,y:0,w:a.bbox.w,h:a.bbox.h+.5}}else{let a=0,s=0,c=1;for(let p=0;p<t.chld.length;p++){const g=t.chld[p],y=(i={"\\quad":2,"\\,":2*3/18,"\\:":2*4/18,"\\;":2*5/18,"\\!":2*-3/18}[g.text])!=null?i:null;if(g.text=="\\\\"){s+=c,a=0,c=1;continue}else{if(g.text=="&")continue;if(y!=null){a+=y;continue}else{if(Xr(g,n),Gn(g,1,null,a,s),g.text=="^"||g.text=="_"||g.text=="'"){let R=p;for(;R>0&&(t.chld[R].text=="^"||t.chld[R].text=="_"||t.chld[R].text=="'");)R--;const m=ot[t.chld[R].text]&&ot[t.chld[R].text].flags.big;if(g.text=="'"){let v=R+1,x=0;for(;v<p;)t.chld[v].text=="'"&&x++,v++;g.bbox.x=t.chld[R].bbox.x+t.chld[R].bbox.w+g.bbox.w*x,a=Math.max(a,g.bbox.x+g.bbox.w)}else if(m){const v=t.chld[R].bbox.x+(t.chld[R].bbox.w-g.bbox.w*xr.SUB_SUP_SCALE)/2;g.bbox.x=v,a=Math.max(a,t.chld[R].bbox.x+t.chld[R].bbox.w+(g.bbox.w*xr.SUB_SUP_SCALE-t.chld[R].bbox.w)/2)}else g.bbox.x=t.chld[R].bbox.x+t.chld[R].bbox.w,a=Math.max(a,g.bbox.x+g.bbox.w*xr.SUB_SUP_SCALE)}else a+=g.bbox.w;e=="text"&&(a+=1),c=Math.max(g.bbox.y+g.bbox.h-s,c)}}}s+=c;const u={bmatrix:["[","]"],pmatrix:["(",")"],Bmatrix:["\\{","\\}"],cases:["\\{"]},l=(o={bmatrix:"center",pmatrix:"center",Bmatrix:"center",cases:"left",matrix:"center",aligned:"equation"}[t.text])!=null?o:"left",h=!!u[t.text],f=!!u[t.text]&&u[t.text].length>1;aw(t.chld,l);const d=tR(t.chld);t.text=="\\text"&&(d.x-=1,d.w+=2);for(let p=0;p<t.chld.length;p++)Gn(t.chld[p],1,null,-d.x+(h?1.5:0),-d.y);t.bbox={x:0,y:0,w:d.w+1.5*Number(h)+1.5*Number(f),h:d.h},h&&t.chld.unshift({type:"symb",text:u[t.text][0],mode:t.mode,chld:[],bbox:{x:0,y:0,w:1,h:d.h}}),f&&t.chld.push({type:"symb",text:u[t.text][1],mode:t.mode,chld:[],bbox:{x:d.w+2,y:0,w:1,h:d.h}}),(h||f||t.text=="matrix")&&(t.type="node",t.text="",t.bbox.y-=(t.bbox.h-2)/2)}}function sw(t){function e(r,i,o){const a=[];if(r.bbox){if(i+=r.bbox.x,o+=r.bbox.y,r.text=="\\frac"){const s=r.chld[1].bbox.y-(r.chld[0].bbox.y+r.chld[0].bbox.h),c={type:"symb",mode:r.mode,text:"\\bar",bbox:{x:i,y:o+(r.chld[1].bbox.y-s/2)-s/2,w:r.bbox.w,h:s},chld:[]};a.push(c)}else if(r.text=="\\sqrt"){const s=r.chld[0].bbox.y,c=Math.max(0,r.chld[0].bbox.x-r.chld[0].bbox.h/2),u={type:"symb",mode:r.mode,text:"\\sqrt",bbox:{x:i+c,y:o+s/2,w:r.chld[0].bbox.x-c,h:r.bbox.h-s/2},chld:[]};a.push(u),a.push({type:"symb",text:"\\bar",mode:r.mode,bbox:{x:i+r.chld[0].bbox.x,y:o,w:r.bbox.w-r.chld[0].bbox.x,h:s},chld:[]})}else if(r.text=="\\binom"){const s=Math.min(r.chld[0].bbox.x,r.chld[1].bbox.x),c={type:"symb",mode:r.mode,text:"(",bbox:{x:i,y:o,w:s,h:r.bbox.h},chld:[]};a.push(c),a.push({type:"symb",text:")",mode:r.mode,bbox:{x:i+r.bbox.w-s,y:o,w:s,h:r.bbox.h},chld:[]})}else if(ot[r.text]&&ot[r.text].flags.hat){const s=r.chld[0].bbox.y,c={type:"symb",mode:r.mode,text:r.text,bbox:{x:i,y:o,w:r.bbox.w,h:s},chld:[]};a.push(c)}else if(ot[r.text]&&ot[r.text].flags.mat){const s=r.chld[0].bbox.h,c={type:"symb",text:r.text,mode:r.mode,bbox:{x:i,y:o+s,w:r.bbox.w,h:r.bbox.h-s},chld:[]};a.push(c)}else if(r.type!="node"&&r.text!="^"&&r.text!="_"){const s={type:r.type=="func"?"symb":r.type,text:r.text,mode:r.mode,bbox:{x:i,y:o,w:r.bbox.w,h:r.bbox.h},chld:[]};a.push(s)}}for(let s=0;s<r.chld.length;s++){const c=e(r.chld[s],i,o);a.push(...c)}return a}const n=e(t,-t.bbox.x,-t.bbox.y);t.type="node",t.text="",t.chld=n}function cw(t){const e=[];for(let n=0;n<t.chld.length;n++){const r=t.chld[n];let i=r.bbox.h/2,o=!1;if(ot[r.text]&&ot[r.text].flags.hat&&!ot[r.text].flags.xfl&&!ot[r.text].flags.yfl&&(i*=4,o=!0),ot[r.text]&&ot[r.text].glyph){const a=Jo(ot[r.text].glyph);for(let s=0;s<a.polylines.length;s++){const c=[];for(let u=0;u<a.polylines[s].length;u++){let l=a.polylines[s][u][0],h=a.polylines[s][u][1];if(ot[r.text].flags.xfl)l=(l-a.xmin)/Math.max(a.xmax-a.xmin,1)*r.bbox.w,l+=r.bbox.x;else if(a.w/16*i>r.bbox.w)l=l/Math.max(a.w,1)*r.bbox.w,l+=r.bbox.x;else{l=l/16*i;const f=(r.bbox.w-a.w/16*i)/2;l+=r.bbox.x+f}ot[r.text].flags.yfl?(h=(h-a.ymin)/Math.max(a.ymax-a.ymin,1)*r.bbox.h,h+=r.bbox.y):(h=h/16*i,o&&(h-=(a.ymax+a.ymin)/2/16*i),h+=r.bbox.y+r.bbox.h/2),c.push([l,h])}e.push(c)}}else if(ot[r.text]&&ot[r.text].flags.txt||r.type=="char"){let a=r.bbox.x;const s=!!(ot[r.text]&&ot[r.text].flags.txt);for(let c=Number(s);c<r.text.length;c++){const u=Jo(qc(r.text[c],s?"text":r.mode));if(!u){console.warn("unmapped character: "+r.text[c]);continue}for(let l=0;l<u.polylines.length;l++){const h=[];for(let f=0;f<u.polylines[l].length;f++){let d=u.polylines[l][f][0],p=u.polylines[l][f][1];d/=16,p/=16,d*=i,p*=i,r.mode=="tt"&&(u.w>16?d*=16/u.w:d+=(16-u.w)/2/16),d+=a,p+=r.bbox.y+r.bbox.h/2,h.push([d,p])}e.push(h)}r.mode=="tt"?a+=i:a+=u.w/16*i}}}return e}function Wr(t){return Math.round(t*100)/100}class uw{constructor(e){this._latex=e,this._tokens=rw(e),this._tree=hd(this._tokens),eR(this._tree.chld),Xr(this._tree),sw(this._tree),this._polylines=cw(this._tree)}resolveScale(e){var a,s,c,u;if(e==null)return[16,16,16,16];let n=(a=e.SCALE_X)!=null?a:16,r=(s=e.SCALE_Y)!=null?s:16;if(e.MIN_CHAR_H!=null){let l=0;for(let f=0;f<this._tree.chld.length;f++){const d=this._tree.chld[f];(d.type=="char"||ot[d.text]&&(ot[d.text].flags.txt||!Object.keys(ot[d.text].flags).length))&&(l=Math.min(d.bbox.h,l))}const h=Math.max(1,e.MIN_CHAR_H/l);n*=h,r*=h}if(e.MAX_W!=null){const l=n;n=Math.min(n,e.MAX_W/this._tree.bbox.w),r*=n/l}if(e.MAX_H!=null){const l=r;r=Math.min(r,e.MAX_H/this._tree.bbox.h),n*=r/l}const i=(c=e.MARGIN_X)!=null?c:n,o=(u=e.MARGIN_Y)!=null?u:r;return[i,o,n,r]}polylines(e){e||(e={});const n=[],[r,i,o,a]=this.resolveScale(e);for(let s=0;s<this._polylines.length;s++){n.push([]);for(let c=0;c<this._polylines[s].length;c++){const[u,l]=this._polylines[s][c];n[n.length-1].push([r+u*o,i+l*a])}}return n}pathd(e){e||(e={});let n="";const[r,i,o,a]=this.resolveScale(e);for(let s=0;s<this._polylines.length;s++)for(let c=0;c<this._polylines[s].length;c++){const[u,l]=this._polylines[s][c];n+=c?"L":"M",n+=`${Wr(r+u*o)} ${Wr(i+l*a)}`}return n}svg(e){var u,l;e||(e={});const[n,r,i,o]=this.resolveScale(e),a=Wr(this._tree.bbox.w*i+n*2),s=Wr(this._tree.bbox.h*o+r*2);let c=`<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
width="${a}" height="${s}"
|
|
fill="none" stroke="${(u=e.FG_COLOR)!=null?u:"black"}" stroke-width="${(l=e.STROKE_W)!=null?l:1}"
|
|
stroke-linecap="round" stroke-linejoin="round"
|
|
>`;e.BG_COLOR&&(c+=`<rect x="${0}" y="${0}" width="${a}" height="${s}" fill="${e.BG_COLOR}" stroke="none"></rect>`),c+='<path d="';for(let h=0;h<this._polylines.length;h++){c+="M";for(let f=0;f<this._polylines[h].length;f++){const[d,p]=this._polylines[h][f];c+=Wr(n+d*i)+" "+Wr(r+p*o)+" "}}return c+='"/>',c+="</svg>",{svg:`data:image/svg+xml;base64,${window.btoa(c)}`,width:Math.ceil(a),height:Math.ceil(s)}}pdf(e){var h;e||(e={});const[n,r,i,o]=this.resolveScale(e),a=Wr(this._tree.bbox.w*i+n*2),s=Wr(this._tree.bbox.h*o+r*2);let c=`%PDF-1.1
|
|
%%\xA5\xB1\xEB
|
|
1 0 obj
|
|
<< /Type /Catalog
|
|
/Pages 2 0 R
|
|
>>endobj
|
|
2 0 obj
|
|
<< /Type /Pages
|
|
/Kids [3 0 R]
|
|
/Count 1
|
|
/MediaBox [0 0 ${a} ${s}]
|
|
>>
|
|
endobj
|
|
3 0 obj
|
|
<< /Type /Page
|
|
/Parent 2 0 R
|
|
/Resources
|
|
<< /Font
|
|
<< /F1
|
|
<< /Type /Font
|
|
/Subtype /Type1
|
|
/BaseFont /Times-Roman
|
|
>>
|
|
>>
|
|
>>
|
|
/Contents [`,u="",l=4;for(let f=0;f<this._polylines.length;f++){u+=`${l} 0 obj
|
|
<< /Length 0 >>
|
|
stream
|
|
1 j 1 J ${(h=e.STROKE_W)!=null?h:1} w
|
|
`;for(let d=0;d<this._polylines[f].length;d++){const[p,g]=this._polylines[f][d];u+=`${Wr(n+p*i)} ${Wr(s-(r+g*o))} ${d?"l":"m"} `}u+=`
|
|
S
|
|
endstream
|
|
endobj
|
|
`,c+=`${l} 0 R `,l++}return c+=`]
|
|
>>
|
|
endobj
|
|
`,u+=`
|
|
trailer
|
|
<< /Root 1 0 R
|
|
/Size 0
|
|
>>startxref
|
|
|
|
%%EOF
|
|
`,c+u}boxes(e){e||(e={});const[n,r,i,o]=this.resolveScale(e),a=[];for(let s=0;s<this._tree.chld.length;s++){const{x:c,y:u,w:l,h}=this._tree.chld[s].bbox;a.push({x:n+c*i,y:r+u*o,w:l*i,h:h*o})}return a}box(e){e||(e={});const[n,r,i,o]=this.resolveScale(e);return{x:n+this._tree.bbox.x*i,y:r+this._tree.bbox.y*o,w:this._tree.bbox.w*i,h:this._tree.bbox.h*o}}}class nR extends qm{static convertLaTextToSVG(e){return new uw(e).svg({SCALE_X:10,SCALE_Y:10,MARGIN_X:0,MARGIN_Y:0})}render(e,n,r,i){const{scale:o}=this.options,a=n.width*o,s=n.height*o;if(this.imageCache.has(n.value)){const c=this.imageCache.get(n.value);e.drawImage(c,r,i,a,s)}else{const c=new Promise((u,l)=>{const h=new Image;h.src=n.laTexSVG,h.onload=()=>{e.drawImage(h,r,i,a,s),this.imageCache.set(n.value,h),u(n)},h.onerror=f=>{l(f)}});this.addImageObserver(c)}}}var ti=(t=>(t.UL="ul",t.OL="ol",t))(ti||{}),zo=(t=>(t.DISC="disc",t.CIRCLE="circle",t.SQUARE="square",t.CHECKBOX="checkbox",t))(zo||{}),ur=(t=>(t.DISC="disc",t.CIRCLE="circle",t.SQUARE="square",t.DECIMAL="decimal",t.CHECKBOX="checkbox",t))(ur||{});const dd={[zo.DISC]:"\u2022",[zo.CIRCLE]:"\u25E6",[zo.SQUARE]:"\u25AB\uFE0E",[zo.CHECKBOX]:"\u2611\uFE0F"},lw={[ti.OL]:"ol",[ti.UL]:"ul"},hw={[ur.DISC]:"disc",[ur.CIRCLE]:"circle",[ur.SQUARE]:"square",[ur.DECIMAL]:"decimal",[ur.CHECKBOX]:"checkbox"};var mt=(t=>(t.FIRST="first",t.SECOND="second",t.THIRD="third",t.FOURTH="fourth",t.FIFTH="fifth",t.SIXTH="sixth",t))(mt||{});const dw={defaultFirstSize:26,defaultSecondSize:24,defaultThirdSize:22,defaultFourthSize:20,defaultFifthSize:18,defaultSixthSize:16},rR={[mt.FIRST]:"defaultFirstSize",[mt.SECOND]:"defaultSecondSize",[mt.THIRD]:"defaultThirdSize",[mt.FOURTH]:"defaultFourthSize",[mt.FIFTH]:"defaultFifthSize",[mt.SIXTH]:"defaultSixthSize"},fd={[mt.FIRST]:1,[mt.SECOND]:2,[mt.THIRD]:3,[mt.FOURTH]:4,[mt.FIFTH]:5,[mt.SIXTH]:6},fw={H1:mt.FIRST,H2:mt.SECOND,H3:mt.THIRD,H4:mt.FOURTH,H5:mt.FIFTH,H6:mt.SIXTH};var vt=(t=>(t.TEXT="text",t.SELECT="select",t.CHECKBOX="checkbox",t.RADIO="radio",t.DATE="date",t))(vt||{}),Se=(t=>(t.PREFIX="prefix",t.POSTFIX="postfix",t.PLACEHOLDER="placeholder",t.VALUE="value",t.CHECKBOX="checkbox",t.RADIO="radio",t))(Se||{}),iR=(t=>(t.ROW_START="rowStart",t.VALUE_START="valueStart",t))(iR||{});function P1(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n],i=Tr(r.value);for(let o=0;o<i.length;o++)e.push({...r,value:i[o]})}return e}function dr(t,e){const{isHandleFirstElement:n,editorOptions:r}={isHandleFirstElement:!0,...e},i=t[0];n&&(i==null?void 0:i.type)!==fe.LIST&&((i==null?void 0:i.type)&&i.type!==fe.TEXT||!Hm.test(i==null?void 0:i.value))&&t.unshift({value:We});let o=0;for(;o<t.length;){let a=t[o];if(a.type===fe.TITLE){t.splice(o,1);const s=a.valueList||[];if(dr(s,{...e,isHandleFirstElement:!1}),s.length){const c=bt(),u=r.title;for(let l=0;l<s.length;l++){const h=s[l];h.title=a.title,a.level&&(h.titleId=c,h.level=a.level),aR(h)&&(h.size||(h.size=u[rR[h.level]]),h.bold===void 0&&(h.bold=!0)),t.splice(o,0,h),o++}}o--}else if(a.type===fe.LIST){t.splice(o,1);const s=a.valueList||[];if(dr(s,{...e,isHandleFirstElement:!0}),s.length){const c=bt();for(let u=0;u<s.length;u++){const l=s[u];l.listId=c,l.listType=a.listType,l.listStyle=a.listStyle,t.splice(o,0,l),o++}}o--}else if(a.type===fe.TABLE){const s=bt();if(a.id=s,a.trList){const{defaultTrMinHeight:c}=r.table;for(let u=0;u<a.trList.length;u++){const l=a.trList[u],h=bt();l.id=h,(!l.minHeight||l.minHeight<c)&&(l.minHeight=c),l.height<l.minHeight&&(l.height=l.minHeight);for(let f=0;f<l.tdList.length;f++){const d=l.tdList[f],p=bt();d.id=p,dr(d.value,{...e,isHandleFirstElement:!0});for(let g=0;g<d.value.length;g++){const y=d.value[g];y.tdId=p,y.trId=h,y.tableId=s}}}}}else if(a.type===fe.HYPERLINK){t.splice(o,1);const s=P1(a.valueList||[]);if(s.length){const c=bt();for(let u=0;u<s.length;u++){const l=s[u];l.type=a.type,l.url=a.url,l.hyperlinkId=c,t.splice(o,0,l),o++}}o--}else if(a.type===fe.DATE){t.splice(o,1);const s=P1(a.valueList||[]);if(s.length){const c=bt();for(let u=0;u<s.length;u++){const l=s[u];l.type=a.type,l.dateFormat=a.dateFormat,l.dateId=c,t.splice(o,0,l),o++}}o--}else if(a.type===fe.CONTROL){if(!a.control){o++;continue}const{prefix:s,postfix:c,value:u,placeholder:l,code:h,type:f,valueSets:d}=a.control,{editorOptions:{control:p,checkbox:g,radio:y}}=e,R=bt();t.splice(o,1);const m=zr(a,jm),v=zr(a.control,ha),x={...v,color:r.control.bracketColor},_=Tr(s||p.prefix);for(let N=0;N<_.length;N++){const U=_[N];t.splice(o,0,{...m,...x,controlId:R,value:U,type:a.type,control:a.control,controlComponent:Se.PREFIX}),o++}if(u&&u.length||f===vt.CHECKBOX||f===vt.RADIO||f===vt.SELECT&&h&&(!u||!u.length)){let N=u||[];if(f===vt.CHECKBOX){const U=h?h.split(","):[];if(Array.isArray(d)&&d.length){const O=N.reduce((ne,T)=>ne.concat(T.value.split("").map(I=>({...T,value:I}))),[]);let Q=0;for(let ne=0;ne<d.length;ne++){const T=d[ne];t.splice(o,0,{...m,controlId:R,value:"",type:a.type,control:a.control,controlComponent:Se.CHECKBOX,checkbox:{code:T.code,value:U.includes(T.code)}}),o++;const I=Tr(T.value);for(let b=0;b<I.length;b++){const M=I[b],C=b===I.length-1;t.splice(o,0,{...m,...v,...O[Q],controlId:R,value:M===`
|
|
`?We:M,letterSpacing:C?g.gap:0,control:a.control,controlComponent:Se.VALUE}),Q++,o++}}}}else if(f===vt.RADIO){if(Array.isArray(d)&&d.length){const U=N.reduce((Q,ne)=>Q.concat(ne.value.split("").map(T=>({...ne,value:T}))),[]);let O=0;for(let Q=0;Q<d.length;Q++){const ne=d[Q];t.splice(o,0,{...m,controlId:R,value:"",type:a.type,control:a.control,controlComponent:Se.RADIO,radio:{code:ne.code,value:h===ne.code}}),o++;const T=Tr(ne.value);for(let I=0;I<T.length;I++){const b=T[I],M=I===T.length-1;t.splice(o,0,{...m,...v,...U[O],controlId:R,value:b===`
|
|
`?We:b,letterSpacing:M?y.gap:0,control:a.control,controlComponent:Se.VALUE}),O++,o++}}}}else{if((!u||!u.length)&&Array.isArray(d)&&d.length){const U=d.find(O=>O.code===h);U&&(N=[{value:U.value}])}dr(N,{...e,isHandleFirstElement:!1});for(let U=0;U<N.length;U++){const O=N[U],Q=O.value;t.splice(o,0,{...m,...v,...O,controlId:R,value:Q===`
|
|
`?We:Q,type:O.type||fe.TEXT,control:a.control,controlComponent:Se.VALUE}),o++}}}else if(l){const N={...v,color:r.control.placeholderColor},U=Tr(l);for(let O=0;O<U.length;O++){const Q=U[O];t.splice(o,0,{...m,...N,controlId:R,value:Q===`
|
|
`?We:Q,type:a.type,control:a.control,controlComponent:Se.PLACEHOLDER}),o++}}const E=Tr(c||p.postfix);for(let N=0;N<E.length;N++){const U=E[N];t.splice(o,0,{...m,...x,controlId:R,value:U,type:a.type,control:a.control,controlComponent:Se.POSTFIX}),o++}o--}else if((!a.type||Mr.includes(a.type))&&a.value.length>1){t.splice(o,1);const s=Tr(a.value);for(let c=0;c<s.length;c++)t.splice(o+c,0,{...a,value:s[c]});a=t[o]}if(a.value===`
|
|
`&&(a.value=We),(a.type===fe.IMAGE||a.type===fe.BLOCK)&&(a.id=bt()),a.type===fe.LATEX){const{svg:s,width:c,height:u}=nR.convertLaTextToSVG(a.value);a.width=a.width||c,a.height=a.height||u,a.laTexSVG=s,a.id=bt()}o++}}function pw(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++){const o=n[i];if(o!=="value"&&!(o==="groupIds"&&Array.isArray(t[o])&&Array.isArray(e[o])&&kx(t[o],e[o]))&&t[o]!==e[o])return!1}return!0}function oa(t,e={}){const{extraPickAttrs:n}=e,r=Gx;n&&r.push(...n);const i={value:t.value===We?`
|
|
`:t.value};return r.forEach(o=>{const a=t[o];a!==void 0&&(i[o]=a)}),i}function Xt(t,e={}){const{extraPickAttrs:n}=e,r=Pt(t),i=[];let o=0;for(;o<r.length;){let a=r[o];if(o===0&&a.value===We&&!a.listId&&(!a.type||a.type===fe.TEXT)){o++;continue}if(a.titleId&&a.level){const c=a.titleId;if(c){const u=a.level,l={type:fe.TITLE,title:a.title,value:"",level:u},h=[];for(;o<r.length;){const f=r[o];if(c!==f.titleId){o--;break}delete f.level,delete f.title,h.push(f),o++}l.valueList=Xt(h,e),a=l}}else if(a.listId&&a.listType){const c=a.listId;if(c){const u=a.listType,l=a.listStyle,h={type:fe.LIST,value:"",listId:c,listType:u,listStyle:l},f=[];for(;o<r.length;){const d=r[o];if(c!==d.listId){o--;break}delete d.listType,delete d.listStyle,f.push(d),o++}h.valueList=Xt(f,e),a=h}}else if(a.type===fe.TABLE){if(a.pagingId){let c=o+1,u=0;for(;c<r.length;){const l=r[c];if(l.pagingId===a.pagingId)a.height+=l.height,a.trList.push(...l.trList),c++,u++;else break}o+=u}if(a.trList)for(let c=0;c<a.trList.length;c++){const u=a.trList[c];delete u.id;for(let l=0;l<u.tdList.length;l++){const h=u.tdList[l],f={colspan:h.colspan,rowspan:h.rowspan,value:Xt(h.value,e)};Jx.forEach(d=>{const p=h[d];p!==void 0&&(f[d]=p)}),u.tdList[l]=f}}}else if(a.type===fe.HYPERLINK){const c=a.hyperlinkId;if(c){const u={type:fe.HYPERLINK,value:"",url:a.url},l=[];for(;o<r.length;){const h=r[o];if(c!==h.hyperlinkId){o--;break}delete h.type,delete h.url,l.push(h),o++}u.valueList=Xt(l,e),a=u}}else if(a.type===fe.DATE){const c=a.dateId;if(c){const u={type:fe.DATE,value:"",dateFormat:a.dateFormat},l=[];for(;o<r.length;){const h=r[o];if(c!==h.dateId){o--;break}delete h.type,delete h.dateFormat,l.push(h),o++}u.valueList=Xt(l,e),a=u}}else if(a.controlId){const c=a.controlId;if(c){const u=zr(a,ha),l={...a.control,...u},h={...zr(a,Ms),type:fe.CONTROL,value:"",control:l,controlId:c},f=[];for(;o<r.length;){const d=r[o];if(c!==d.controlId){o--;break}d.controlComponent===Se.VALUE&&(delete d.control,delete d.controlId,f.push(d)),o++}h.control.value=Xt(f,e),a=oa(h,{extraPickAttrs:n})}}const s=oa(a,{extraPickAttrs:n});if(!a.type||a.type===fe.TEXT||a.type===fe.SUBSCRIPT||a.type===fe.SUPERSCRIPT)for(;o<r.length;){const c=r[o+1];if(o++,c&&pw(s,oa(c,{extraPickAttrs:n}))){const u=c.value===We?`
|
|
`:c.value;s.value+=u}else break}else o++;i.push(s)}return i}function gw(t){switch(window.getComputedStyle(t).textAlign){case"left":case"start":return st.LEFT;case"center":return st.CENTER;case"right":case"end":return st.RIGHT;case"justify":return st.ALIGNMENT;case"justify-all":return st.JUSTIFY;default:return st.LEFT}}function oR(t){return t===st.ALIGNMENT?"justify":t}function mw(t){switch(t){case st.LEFT:return"flex-start";case st.CENTER:return"center";case st.RIGHT:return"flex-end";case st.ALIGNMENT:case st.JUSTIFY:return"space-between";default:return"flex-start"}}function aR(t){return!t.type||Mr.includes(t.type)}function Cs(t,e){const n=t[e];if(!n)return null;const r=t[e+1];return!n.listId&&n.value===We&&r&&r.value!==We?r:n}function Sn(t,e,n,r){var s,c;const i=Cs(t,n);if(!i)return;const{isBreakWhenWrap:o=!1}=r||{};let a=!1;for(let u=0;u<e.length;u++){const l=e[u];if(o&&!i.listId&&/^\n/.test(l.value)&&(a=!0),a||!i.listId&&l.type===fe.LIST){const h=[...nf,...Ms];jc(h,i,l),(s=l.valueList)==null||s.forEach(f=>{jc(h,i,f)});continue}(c=l.valueList)!=null&&c.length&&Sn(t,l.valueList,n),jc(jm,i,l)}}function Rw(t,e){let n="span";t.type===fe.SUPERSCRIPT?n="sup":t.type===fe.SUBSCRIPT&&(n="sub");const r=document.createElement(n);return r.style.fontFamily=t.font||e.defaultFont,t.rowFlex&&(r.style.textAlign=oR(t.rowFlex)),t.color&&(r.style.color=t.color),t.bold&&(r.style.fontWeight="600"),t.italic&&(r.style.fontStyle="italic"),r.style.fontSize=`${t.size||e.defaultSize}px`,t.highlight&&(r.style.backgroundColor=t.highlight),t.underline&&(r.style.textDecoration="underline"),t.strikeout&&(r.style.textDecoration+=" line-through"),r.innerText=t.value.replace(new RegExp(`${We}`,"g"),`
|
|
`),r}function sR(t){let e=0;const n=new Map;for(let r=0;r<t.length;r++){const i=t[r];if(r===0){if(i.checkbox)continue;i.value=i.value.replace(Hm,"")}if(i.listWrap){const o=n.get(e)||[];o.push(i),n.set(e,o)}else{const o=i.value.split(`
|
|
`);for(let a=0;a<o.length;a++){a>0&&(e+=1);const s=o[a],c=n.get(e)||[];c.push({...i,value:s}),n.set(e,c)}}}return n}function yw(t){var r;const e=[];if(!t.length)return e;let n=((r=t[0])==null?void 0:r.rowFlex)||null;e.push({rowFlex:n,data:[t[0]]});for(let i=1;i<t.length;i++){const o=t[i],a=o.rowFlex||null;n===a&&!fu(o)&&!fu(t[i-1])?e[e.length-1].data.push(o):(e.push({rowFlex:a,data:[o]}),n=a)}for(let i=0;i<e.length;i++){const o=e[i];o.data=Xt(o.data)}return e}function ys(t,e){function n(o){var s,c,u,l,h,f,d,p,g;const a=document.createElement("div");for(let y=0;y<o.length;y++){const R=o[y];if(R.type===fe.TABLE){const m=document.createElement("table");m.setAttribute("cellSpacing","0"),m.setAttribute("cellpadding","0"),m.setAttribute("border","0");const v="1px solid #000000";!R.borderType||R.borderType===$r.ALL?(m.style.borderTop=v,m.style.borderLeft=v):R.borderType===$r.EXTERNAL&&(m.style.border=v),m.style.width=`${R.width}px`;const x=document.createElement("colgroup");for(let E=0;E<R.colgroup.length;E++){const N=R.colgroup[E],U=document.createElement("col");U.setAttribute("width",`${N.width}`),x.append(U)}m.append(x);const _=R.trList;for(let E=0;E<_.length;E++){const N=document.createElement("tr"),U=_[E];N.style.height=`${U.height}px`;for(let O=0;O<U.tdList.length;O++){const Q=document.createElement("td");(!R.borderType||R.borderType===$r.ALL)&&(Q.style.borderBottom=Q.style.borderRight="1px solid");const ne=U.tdList[O];Q.colSpan=ne.colspan,Q.rowSpan=ne.rowspan,Q.style.verticalAlign=ne.verticalAlign||"top",(s=ne.borderTypes)!=null&&s.includes(fr.TOP)&&(Q.style.borderTop=v),(c=ne.borderTypes)!=null&&c.includes(fr.RIGHT)&&(Q.style.borderRight=v),(u=ne.borderTypes)!=null&&u.includes(fr.BOTTOM)&&(Q.style.borderBottom=v),(l=ne.borderTypes)!=null&&l.includes(fr.LEFT)&&(Q.style.borderLeft=v);const T=ys(ne.value,e);Q.innerHTML=T.innerHTML,ne.backgroundColor&&(Q.style.backgroundColor=ne.backgroundColor),N.append(Q)}m.append(N)}a.append(m)}else if(R.type===fe.HYPERLINK){const m=document.createElement("a");m.innerText=R.valueList.map(v=>v.value).join(""),R.url&&(m.href=R.url),a.append(m)}else if(R.type===fe.TITLE){const m=document.createElement(`h${fd[R.level]}`),v=n(R.valueList);m.innerHTML=v.innerHTML,a.append(m)}else if(R.type===fe.LIST){const m=document.createElement(lw[R.listType]);R.listStyle&&(m.style.listStyleType=hw[R.listStyle]);const v=Xt(R.valueList);sR(v).forEach(_=>{const E=document.createElement("li"),N=n(_);E.innerHTML=N.innerHTML,m.append(E)}),a.append(m)}else if(R.type===fe.IMAGE){const m=document.createElement("img");R.value&&(m.src=R.value,m.width=R.width,m.height=R.height),a.append(m)}else if(R.type===fe.SEPARATOR){const m=document.createElement("hr");a.append(m)}else if(R.type===fe.CHECKBOX){const m=document.createElement("input");m.type="checkbox",(h=R.checkbox)!=null&&h.value&&m.setAttribute("checked","true"),a.append(m)}else if(R.type===fe.RADIO){const m=document.createElement("input");m.type="radio",(f=R.radio)!=null&&f.value&&m.setAttribute("checked","true"),a.append(m)}else if(R.type===fe.TAB){const m=document.createElement("span");m.innerHTML=`${E1}${E1}`,a.append(m)}else if(R.type===fe.CONTROL){const m=document.createElement("span"),v=n(((d=R.control)==null?void 0:d.value)||[]);m.innerHTML=v.innerHTML,a.append(m)}else if(!R.type||R.type===fe.LATEX||Mr.includes(R.type)){let m="";if(R.type===fe.DATE?m=((p=R.valueList)==null?void 0:p.map(x=>x.value).join(""))||"":m=R.value,!m)continue;const v=Rw(R,e);((g=o[y-1])==null?void 0:g.type)===fe.TITLE&&(m=m.replace(/^\n/,"")),v.innerText=m.replace(new RegExp(`${We}`,"g"),`
|
|
`),a.append(v)}}return a}const r=document.createElement("div"),i=yw(t);for(let o=0;o<i.length;o++){const a=i[o],s=!a.rowFlex||a.rowFlex===st.LEFT,c=document.createElement("div");if(!s){const u=a.data[0];fu(u)?(c.style.display="flex",c.style.justifyContent=mw(u.rowFlex)):c.style.textAlign=oR(a.rowFlex)}c.innerHTML=n(a.data).innerHTML,s?c.childNodes.forEach(u=>{r.append(u.cloneNode(!0))}):r.append(c)}return r}function vw(t){if(!t||t.nodeType!==3)return null;const e=t.parentNode,n=e.nodeName==="FONT"?e.parentNode:e,r=gw(n),i=t.textContent,o=window.getComputedStyle(n);if(!i||n.nodeName==="STYLE")return null;const a={value:i,color:o.color,bold:Number(o.fontWeight)>500,italic:o.fontStyle.includes("italic"),size:Math.floor(parseFloat(o.fontSize))};return n.nodeName==="SUB"||o.verticalAlign==="sub"?a.type=fe.SUBSCRIPT:(n.nodeName==="SUP"||o.verticalAlign==="super")&&(a.type=fe.SUPERSCRIPT),r!==st.LEFT&&(a.rowFlex=r),o.backgroundColor!=="rgba(0, 0, 0, 0)"&&(a.highlight=o.backgroundColor),o.textDecorationLine.includes("underline")&&(a.underline=!0),o.textDecorationLine.includes("line-through")&&(a.strikeout=!0),a}function vs(t,e){const n=[];function r(a){if(a.nodeType===3){const s=vw(a);s&&n.push(s)}else if(a.nodeType===1){const s=a.childNodes;for(let c=0;c<s.length;c++){const u=s[c];if(u.nodeName==="BR")n.push({value:`
|
|
`});else if(u.nodeName==="A"){const l=u,h=l.innerText;h&&n.push({type:fe.HYPERLINK,value:"",valueList:[{value:h}],url:l.href})}else if(/H[1-6]/.test(u.nodeName)){const h=vs(bw(u,"div").outerHTML,e);n.push({value:"",type:fe.TITLE,level:fw[u.nodeName],valueList:h}),u.nextSibling&&!qx.includes(u.nextSibling.nodeName)&&n.push({value:`
|
|
`})}else if(u.nodeName==="UL"||u.nodeName==="OL"){const l=u,h={value:"",type:fe.LIST,valueList:[]};u.nodeName==="OL"?h.listType=ti.OL:(h.listType=ti.UL,h.listStyle=l.style.listStyleType),l.querySelectorAll("li").forEach(f=>{const d=vs(f.innerHTML,e);d.forEach(p=>{p.value===`
|
|
`&&(p.listWrap=!0)}),d.unshift({value:`
|
|
`}),h.valueList.push(...d)}),n.push(h)}else if(u.nodeName==="HR")n.push({value:`
|
|
`,type:fe.SEPARATOR});else if(u.nodeName==="IMG"){const{src:l,width:h,height:f}=u;l&&h&&f&&n.push({width:h,height:f,value:l,type:fe.IMAGE})}else if(u.nodeName==="TABLE"){const l=u,h={type:fe.TABLE,value:`
|
|
`,colgroup:[],trList:[]};if(l.querySelectorAll("tr").forEach(f=>{const d=window.getComputedStyle(f).height.replace("px",""),p={height:Number(d),tdList:[]};f.querySelectorAll("th,td").forEach(g=>{const y=g,R=vs(y.innerHTML,e),m={colspan:y.colSpan,rowspan:y.rowSpan,value:R};y.style.backgroundColor&&(m.backgroundColor=y.style.backgroundColor),p.tdList.push(m)}),p.tdList.length&&h.trList.push(p)}),h.trList.length){const f=h.trList[0].tdList.reduce((p,g)=>p+g.colspan,0),d=Math.ceil(e.innerWidth/f);for(let p=0;p<f;p++)h.colgroup.push({width:d});n.push(h)}}else u.nodeName==="INPUT"&&u.type===Se.CHECKBOX?n.push({type:fe.CHECKBOX,value:"",checkbox:{value:u.checked}}):u.nodeName==="INPUT"&&u.type===Se.RADIO?n.push({type:fe.RADIO,value:"",radio:{value:u.checked}}):(r(u),u.nodeType===1&&c!==s.length-1&&window.getComputedStyle(u).display==="block"&&n.push({value:`
|
|
`}))}}}const i=document.createElement("div");i.innerHTML=t,document.body.appendChild(i);const o=[];return i.childNodes.forEach(a=>{var s;a.nodeType!==1&&!((s=a.textContent)!=null&&s.trim())&&o.push(a)}),o.forEach(a=>a.remove()),r(i),i.remove(),n}function xc(t){function e(n){var i,o,a,s,c;let r="";for(let u=0;u<n.length;u++){const l=n[u];if(l.type===fe.TABLE){r+=`
|
|
`;const h=l.trList;for(let f=0;f<h.length;f++){const d=h[f];for(let p=0;p<d.tdList.length;p++){const g=d.tdList[p],y=e(Xt(g.value)),R=p===0,m=d.tdList.length-1===p;r+=`${R?"":" "}${y}${m?`
|
|
`:""}`}}}else if(l.type===fe.TAB)r+=" ";else if(l.type===fe.HYPERLINK)r+=l.valueList.map(h=>h.value).join("");else if(l.type===fe.TITLE)r+=`${e(Xt(l.valueList))}`;else if(l.type===fe.LIST){const h=Xt(l.valueList),f=sR(h);let d="";l.listType===ti.UL&&(d=dd[l.listStyle]),f.forEach((p,g)=>{const y=f.size-1===g;r+=`
|
|
${d||`${g+1}.`}${e(p)}${y?`
|
|
`:""}`})}else if(l.type===fe.CHECKBOX)r+=(i=l.checkbox)!=null&&i.value?"\u2611":"\u25A1";else if(l.type===fe.RADIO)r+=(o=l.radio)!=null&&o.value?"\u2609":"\u25CB";else if(!l.type||l.type===fe.LATEX||Mr.includes(l.type)){let h="";l.type===fe.CONTROL?h=((s=(a=l.control.value)==null?void 0:a[0])==null?void 0:s.value)||"":l.type===fe.DATE?h=((c=l.valueList)==null?void 0:c.map(f=>f.value).join(""))||"":h=l.value,r+=h.replace(new RegExp(`${We}`,"g"),`
|
|
`)}}return r}return e(Xt(t))}function Wl(t){return ud(t,["metrics","style"])}function fu(t){return!!(t!=null&&t.type)&&(jx.includes(t.type)||t.imgDisplay===ht.INLINE)}function bw(t,e){const n=document.createElement(e);for(let r=0;r<t.attributes.length;r++){const i=t.attributes[r];n.setAttribute(i.name,i.value)}return n.innerHTML=t.innerHTML,n}function xw(t){localStorage.setItem(tf,JSON.stringify({text:t.text,elementList:t.elementList}))}function cR(){const t=localStorage.getItem(tf);return t?JSON.parse(t):null}function uR(){localStorage.removeItem(tf)}function ww(t,e,n){if(!t&&!e&&!n.length)return;const r=new Blob([t],{type:"text/plain"}),i=new Blob([e],{type:"text/html"});if(window.ClipboardItem){const o=new ClipboardItem({[r.type]:r,[i.type]:i});window.navigator.clipboard.write([o])}else{const o=document.createElement("div");o.setAttribute("contenteditable","true"),o.innerHTML=e,document.body.append(o);const a=window.getSelection(),s=document.createRange(),c=document.createElement("span");c.innerText=`
|
|
`,o.append(c),s.selectNodeContents(o),a==null||a.removeAllRanges(),a==null||a.addRange(s),document.execCommand("copy"),o.remove()}xw({text:t,elementList:n})}function lR(t,e){const n=ys(t,e);document.body.append(n);const r=n.innerText;n.remove();const i=n.innerHTML;!r&&!i&&!t.length||ww(r,i,Xt(t))}function Tw(t){let e=!1;for(let n=0;n<t.items.length;n++)if(t.items[n].kind==="file"){e=!0;break}return e}function rf(t,e){const n=t.getDraw();if(n.isReadonly())return;const i=n.getRange(),{startIndex:o}=i.getRange(),a=n.getElementList();if(~o&&!i.getIsSelectAll()){const s=a[o];if((s==null?void 0:s.titleId)||(s==null?void 0:s.listId)){let c=0;for(;c<e.length;){const u=e[c];if(s.titleId&&/^\n/.test(u.value))break;if(ew.includes(u.type)){if(e.splice(c,1),u.valueList)for(let l=0;l<u.valueList.length;l++){const h=u.valueList[l];h.value===We||h.value===`
|
|
`||(e.splice(c,0,h),c++)}c--}c++}}Sn(a,e,o,{isBreakWhenWrap:!0})}n.insertElementList(e)}function hR(t,e){const n=t.getDraw();if(n.isReadonly())return;const i=vs(e,{innerWidth:n.getOriginalInnerWidth()});rf(t,i)}function of(t,e){const n=t.getDraw();if(n.isReadonly())return;const i=n.getRange(),{startIndex:o}=i.getRange(),a=n.getElementList(),s=new FileReader;s.readAsDataURL(e),s.onload=()=>{const c=new Image,u=s.result;c.src=u,c.onload=()=>{const l={value:u,type:fe.IMAGE,width:c.width,height:c.height};~o&&Sn(a,[l],o),n.insertElementList([l])}}}function Sw(t,e){const n=t.getDraw();if(n.isReadonly())return;const i=e.clipboardData;if(!i)return;const{paste:o}=n.getOverride();if(o){o(e);return}if(!Tw(i)){const s=i.getData("text"),c=cR();if(s===(c==null?void 0:c.text)){rf(t,c.elementList);return}}uR();let a=!1;for(let s=0;s<i.items.length;s++)if(i.items[s].type==="text/html"){a=!0;break}for(let s=0;s<i.items.length;s++){const c=i.items[s];if(c.kind==="string"){if(c.type==="text/plain"&&!a){c.getAsString(u=>{t.input(u)});break}if(c.type==="text/html"&&a){c.getAsString(u=>{hR(t,u)});break}}else if(c.kind==="file"&&c.type.includes("image")){const u=c.getAsFile();u&&of(t,u)}}}async function Dw(t,e){const n=t.getDraw();if(n.isReadonly())return;const{paste:i}=n.getOverride();if(i){i();return}const o=await navigator.clipboard.readText(),a=cR();if(o===(a==null?void 0:a.text)){rf(t,a.elementList);return}if(uR(),e!=null&&e.isPlainText)o&&t.input(o);else{const s=await navigator.clipboard.read();let c=!1;for(const u of s)if(u.types.includes("text/html")){c=!0;break}for(const u of s)if(u.types.includes("text/plain")&&!c){const h=await(await u.getType("text/plain")).text();h&&t.input(h)}else if(u.types.includes("text/html")&&c){const h=await(await u.getType("text/html")).text();h&&hR(t,h)}else if(u.types.some(l=>l.startsWith("image/"))){const l=u.types.find(f=>f.startsWith("image/")),h=await u.getType(l);of(t,h)}}}class _w{constructor(e,n){this.draw=e,this.container=e.getContainer(),this.canvasEvent=n;const r=document.createElement("textarea");r.autocomplete="off",r.classList.add(`${Ze}-inputarea`),r.innerText="",this.container.append(r),this.agentCursorDom=r,r.onkeydown=i=>this._keyDown(i),r.oninput=Gm(this._input.bind(this),0),r.onpaste=i=>this._paste(i),r.addEventListener("compositionstart",this._compositionstart.bind(this)),r.addEventListener("compositionend",this._compositionend.bind(this))}getAgentCursorDom(){return this.agentCursorDom}_keyDown(e){this.canvasEvent.keydown(e)}_input(e){!e.data||this.canvasEvent.input(e.data)}_paste(e){this.draw.isReadonly()||!e.clipboardData||(Sw(this.canvasEvent,e),e.preventDefault())}_compositionstart(){this.canvasEvent.compositionstart()}_compositionend(e){this.canvasEvent.compositionend(e)}}class Ow{constructor(e,n){this.ANIMATION_CLASS=`${Ze}-cursor--animation`,this.draw=e,this.container=e.getContainer(),this.position=e.getPosition(),this.options=e.getOptions(),this.cursorDom=document.createElement("div"),this.cursorDom.classList.add(`${Ze}-cursor`),this.container.append(this.cursorDom),this.cursorAgent=new _w(e,n),this.blinkTimeout=null}getCursorDom(){return this.cursorDom}getAgentDom(){return this.cursorAgent.getAgentCursorDom()}getAgentIsActive(){return this.getAgentDom()===document.activeElement}getAgentDomValue(){return this.getAgentDom().value}clearAgentDomValue(){this.getAgentDom().value=""}_blinkStart(){this.cursorDom.classList.add(this.ANIMATION_CLASS)}_blinkStop(){this.cursorDom.classList.remove(this.ANIMATION_CLASS)}_setBlinkTimeout(){this._clearBlinkTimeout(),this.blinkTimeout=window.setTimeout(()=>{this._blinkStart()},500)}_clearBlinkTimeout(){this.blinkTimeout&&(this._blinkStop(),window.clearTimeout(this.blinkTimeout),this.blinkTimeout=null)}drawCursor(e){let n=this.position.getCursorPosition();if(!n)return;const{scale:r,cursor:i}=this.options,{color:o,width:a,isShow:s=!0,isBlink:c=!0,isFocus:u=!0,hitLineStartIndex:l}={...i,...e},h=this.draw.getHeight(),f=this.draw.getPageGap();l&&(n=this.position.getPositionList()[l]);const{metrics:d,coordinate:{leftTop:p,rightTop:g},ascent:y,pageNo:R}=n,x=(this.draw.getZone().isMainActive()?R:this.draw.getPageNo())*(h+f),_=Qx*r,E=Math.min(d.height/4,_),N=d.height+E*2,U=this.cursorAgent.getAgentCursorDom();u&&setTimeout(()=>{U.focus(),U.setSelectionRange(0,0)});const O=d.boundingBoxDescent<0?0:d.boundingBoxDescent,Q=p[1]+y+O-(N-E)+x,ne=l?p[0]:g[0];if(U.style.left=`${ne}px`,U.style.top=`${Q+N-_}px`,!s){this.recoveryCursor();return}const T=this.draw.isReadonly();this.cursorDom.style.width=`${a*r}px`,this.cursorDom.style.backgroundColor=o,this.cursorDom.style.left=`${ne}px`,this.cursorDom.style.top=`${Q}px`,this.cursorDom.style.display=T?"none":"block",this.cursorDom.style.height=`${N}px`,c?this._setBlinkTimeout():this._clearBlinkTimeout()}recoveryCursor(){this.cursorDom.style.display="none",this._clearBlinkTimeout()}moveCursorToVisible(e){const{cursorPosition:n,direction:r}=e;if(!n||!r)return;const{pageNo:i,coordinate:{leftTop:o,leftBottom:a}}=n,s=i*(this.draw.getHeight()+this.draw.getPageGap())+this.container.getBoundingClientRect().top,c=r===wn.UP,u=a[0],l=c?o[1]+s:a[1]+s,h=Bx(this.container),f={left:0,right:0,top:0,bottom:0};if(h===document.documentElement)f.right=window.innerWidth,f.bottom=window.innerHeight;else{const{left:p,right:g,top:y,bottom:R}=h.getBoundingClientRect();f.left=p,f.right=g,f.top=y,f.bottom=R}const{maskMargin:d}=this.options;if(f.top+=d[0],f.bottom-=d[2],!(u>=f.left&&u<=f.right&&l>=f.top&&l<=f.bottom)){const{scrollLeft:p,scrollTop:g}=h;c?h.scroll(p,g-(f.top-l)):h.scroll(p,g+l-f.bottom)}}}var dR=(t=>(t[t.LEFT=0]="LEFT",t[t.CENTER=1]="CENTER",t[t.RIGHT=2]="RIGHT",t))(dR||{});const so=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent),Ew=typeof navigator!="undefined"&&/iPad|iPhone/.test(navigator.userAgent);function kr(t){return so?t.metaKey:t.ctrlKey}var Ke=(t=>(t.Delete="Delete",t.Backspace="Backspace",t.Enter="Enter",t.Left="ArrowLeft",t.Right="ArrowRight",t.Up="ArrowUp",t.Down="ArrowDown",t.ESC="Escape",t.TAB="Tab",t.META="Meta",t.LEFT_BRACKET="[",t.RIGHT_BRACKET="]",t.COMMA=",",t.PERIOD=".",t.LEFT_ANGLE_BRACKET="<",t.RIGHT_ANGLE_BRACKET=">",t.EQUAL="=",t.MINUS="-",t.PLUS="+",t.A="a",t.B="b",t.C="c",t.D="d",t.E="e",t.F="f",t.G="g",t.H="h",t.I="i",t.J="j",t.K="k",t.L="l",t.M="m",t.N="n",t.O="o",t.P="p",t.Q="q",t.R="r",t.S="s",t.T="t",t.U="u",t.V="v",t.W="w",t.X="x",t.Y="y",t.Z="z",t.A_UPPERCASE="A",t.B_UPPERCASE="B",t.C_UPPERCASE="C",t.D_UPPERCASE="D",t.E_UPPERCASE="E",t.F_UPPERCASE="F",t.G_UPPERCASE="G",t.H_UPPERCASE="H",t.I_UPPERCASE="I",t.J_UPPERCASE="J",t.K_UPPERCASE="K",t.L_UPPERCASE="L",t.M_UPPERCASE="M",t.N_UPPERCASE="N",t.O_UPPERCASE="O",t.P_UPPERCASE="P",t.Q_UPPERCASE="Q",t.R_UPPERCASE="R",t.S_UPPERCASE="S",t.T_UPPERCASE="T",t.U_UPPERCASE="U",t.V_UPPERCASE="V",t.W_UPPERCASE="W",t.X_UPPERCASE="X",t.Y_UPPERCASE="Y",t.Z_UPPERCASE="Z",t.ZERO="0",t.ONE="1",t.TWO="2",t.THREE="3",t.FOUR="4",t.FIVE="5",t.SIX="6",t.SEVEN="7",t.EIGHT="8",t.NINE="9",t))(Ke||{});class pu{constructor(e,n){this.element=e,this.control=n}setElement(e){this.element=e}getElement(){return this.element}getCode(){var e;return((e=this.element.control)==null?void 0:e.code)||null}getValue(){const e=this.control.getElementList(),{startIndex:n}=this.control.getRange(),r=e[n],i=[];let o=n;for(;o>0;){const s=e[o];if(s.controlId!==r.controlId||s.controlComponent===Se.PREFIX)break;s.controlComponent===Se.VALUE&&i.unshift(s),o--}let a=n+1;for(;a<e.length;){const s=e[a];if(s.controlId!==r.controlId||s.controlComponent===Se.POSTFIX)break;s.controlComponent===Se.VALUE&&i.push(s),a++}return i}setValue(){return-1}setSelect(e,n={},r={}){if(!r.isIgnoreDisabledRule&&this.control.getIsDisabledControl())return;const{control:i}=this.element,o=n.elementList||this.control.getElementList(),{startIndex:a}=n.range||this.control.getRange(),s=o[a];let c=a;for(;c>0;){const l=o[c];if(l.controlId!==s.controlId||l.controlComponent===Se.PREFIX)break;if(l.controlComponent===Se.CHECKBOX){const h=l.checkbox;h.value=e.includes(h.code)}c--}let u=a+1;for(;u<o.length;){const l=o[u];if(l.controlId!==s.controlId||l.controlComponent===Se.POSTFIX)break;if(l.controlComponent===Se.CHECKBOX){const h=l.checkbox;h.value=e.includes(h.code)}u++}i.code=e.join(","),this.control.repaintControl()}keydown(e){if(this.control.getIsDisabledControl())return null;const n=this.control.getRange();this.control.shrinkBoundary();const{startIndex:r,endIndex:i}=n;return e.key===Ke.Backspace||e.key===Ke.Delete?this.control.removeControl(r):i}cut(){return-1}}class pd extends pu{setSelect(e,n={},r={}){if(!r.isIgnoreDisabledRule&&this.control.getIsDisabledControl())return;const{control:i}=this.element,o=n.elementList||this.control.getElementList(),{startIndex:a}=n.range||this.control.getRange(),s=o[a];let c=a;for(;c>0;){const l=o[c];if(l.controlId!==s.controlId||l.controlComponent===Se.PREFIX)break;if(l.controlComponent===Se.RADIO){const h=l.radio;h.value=e.includes(h.code)}c--}let u=a+1;for(;u<o.length;){const l=o[u];if(l.controlId!==s.controlId||l.controlComponent===Se.POSTFIX)break;if(l.controlComponent===Se.RADIO){const h=l.radio;h.value=e.includes(h.code)}u++}i.code=e.join(","),this.control.repaintControl()}}function L1(t){const e=t.getDraw(),n=e.getPosition(),r=e.getRange();t.isAllowDrag=!0,t.cacheRange=Pt(r.getRange()),t.cacheElementList=e.getElementList(),t.cachePositionList=n.getPositionList(),t.cachePositionContext=n.getPositionContext()}function Iw(t,e){var T;if(t.button===dR.RIGHT)return;const n=e.getDraw(),r=n.isReadonly(),i=n.getRange(),o=n.getPosition();if(!e.isAllowDrag){const I=i.getRange();if(!r&&I.startIndex!==I.endIndex&&i.getIsPointInRange(t.offsetX,t.offsetY)){L1(e);return}}const s=t.target.dataset.index;s&&n.setPageNo(Number(s)),e.isAllowSelection=!0;const c=o.adjustPositionContext({x:t.offsetX,y:t.offsetY});if(!c)return;const{index:u,isDirectHit:l,isCheckbox:h,isRadio:f,isImage:d,isTable:p,tdValueIndex:g,hitLineStartIndex:y}=c;e.mouseDownStartPosition={...c,index:p?g:u,x:t.offsetX,y:t.offsetY};const R=n.getElementList(),m=o.getPositionList(),v=p?g:u,x=R[v],_=!!(l&&d),E=!!(l&&h),N=!!(l&&f);if(~u){i.setRange(v,v),o.setCursorPosition(m[v]);const I=E&&!r,b=N&&!r;if(I){const{checkbox:M,control:C}=x;if(!C)n.getCheckboxParticle().setSelect(x);else{const F=((T=C==null?void 0:C.code)==null?void 0:T.split(","))||[];if(M!=null&&M.value){const B=F.findIndex($=>$===M.code);F.splice(B,1)}else M!=null&&M.code&&F.push(M.code);const A=n.getControl().getActiveControl();A instanceof pu&&A.setSelect(F)}}else if(b){const{control:M,radio:C}=x;if(!M)n.getRadioParticle().setSelect(x);else{const F=C!=null&&C.code?[C.code]:[],A=n.getControl().getActiveControl();A instanceof pd&&A.setSelect(F)}}else n.render({curIndex:v,isCompute:!1,isSubmitHistory:!1,isSetCursor:!_&&!E&&!N});y&&e.getDraw().getCursor().drawCursor({hitLineStartIndex:y})}const U=n.getPreviewer();U.clearResizer(),_&&(U.drawResizer(x,m[v],x.type===fe.LATEX?{mime:"svg",srcKey:"laTexSVG"}:{}),n.getCursor().drawCursor({isShow:!1}),L1(e),(x.imgDisplay===ht.FLOAT_TOP||x.imgDisplay===ht.FLOAT_BOTTOM)&&n.getImageParticle().createFloatImage(x));const O=n.getTableTool();O.dispose(),p&&!r&&O.render();const Q=n.getHyperlinkParticle();Q.clearHyperlinkPopup(),x.type===fe.HYPERLINK&&(kr(t)?Q.openHyperlink(x):Q.drawHyperlinkPopup(x,m[v]));const ne=n.getDateParticle();ne.clearDatePicker(),x.type===fe.DATE&&!r&&ne.renderDatePicker(x,m[v])}function wc(t){const e=bt();return Reflect.set(t,"dragId",e),e}function Tc(t,e){return e.findIndex(n=>n.dragId===t)}function M1(t,e,n){const r=n.getDraw();if(t.imgDisplay===ht.FLOAT_TOP||t.imgDisplay===ht.FLOAT_BOTTOM){const i=e.offsetX-n.mouseDownStartPosition.x,o=e.offsetY-n.mouseDownStartPosition.y,a=t.imgFloatPosition;t.imgFloatPosition={x:a.x+i,y:a.y+o}}r.getImageParticle().destroyFloatImage()}function Nw(t,e){var n,r,i,o;if(e.isAllowDrop){const a=e.getDraw();if(a.isReadonly())return;const s=a.getPosition(),c=s.getPositionList(),u=s.getPositionContext(),l=a.getRange(),h=e.cacheRange,f=e.cacheElementList,d=e.cachePositionList,p=l.getRange(),g=h.startIndex===h.endIndex,y=g?h.startIndex-1:h.startIndex,R=h.endIndex;if(p.startIndex>=y&&p.endIndex<=R&&((n=e.cachePositionContext)==null?void 0:n.tdId)===u.tdId){a.clearSideEffect();let X=!1;if(g){const k=f[R];if(k.type===fe.IMAGE||k.type===fe.LATEX)if(M1(k,t,e),k.imgDisplay===ht.FLOAT_TOP||k.imgDisplay===ht.FLOAT_BOTTOM)a.getPreviewer().drawResizer(k),X=!0;else{const G=d[R];a.getPreviewer().drawResizer(k,G)}}l.replaceRange({...h}),a.render({isSetCursor:!1,isCompute:!1,isSubmitHistory:X});return}const m=f.slice(y+1,R+1),v=m.find(X=>X.controlId);if(v){const X=f[y+1],k=f[R];if(!((!X.controlId||X.controlComponent===Se.PREFIX)&&(!k.controlId||k.controlComponent===Se.POSTFIX)||X.controlId===k.controlId&&X.controlComponent===Se.PREFIX&&k.controlComponent===Se.POSTFIX||((r=X.control)==null?void 0:r.type)===vt.TEXT&&X.controlComponent===Se.VALUE&&((i=k.control)==null?void 0:i.type)===vt.TEXT&&k.controlComponent===Se.VALUE)){a.render({curIndex:p.startIndex,isCompute:!1,isSubmitHistory:!1});return}}const x=a.getControl(),_=a.getElementList(),E=!v||!!_[p.startIndex].controlId||!x.getIsElementListContainFullControl(m),N=a.getOptions(),U=m.map(X=>{if(!X.type||X.type===fe.TEXT){const k={value:X.value},G=Ro;return E||G.push(...F1),G.forEach(H=>{const te=X[H];te!==void 0&&(k[H]=te)}),k}else{let k=Pt(X);return E&&(k=Ts(k,F1)),dr([k],{isHandleFirstElement:!1,editorOptions:N}),k}});Sn(_,U,p.startIndex);const O=f[y],Q=d[y],ne=wc(f[y]),T=wc(f[R]),I=U.length;let b=p.startIndex,M=b+I;const C=x.getActiveControl();if(C&&f[b].controlComponent!==Se.POSTFIX?(M=C.setValue(U),b=M-I):a.spliceElementList(_,b+1,0,...U),!~M){a.render({isSetCursor:!1});return}const F=wc(_[b]),A=wc(_[M]),B=Tc(ne,f),$=Tc(T,f),V=f[$];V.controlId&&V.controlComponent!==Se.POSTFIX?(l.replaceRange({...h,startIndex:B,endIndex:$}),(o=x.getActiveControl())==null||o.cut()):a.spliceElementList(f,B+1,$-B);const L=_[p.startIndex],z=c[p.startIndex];let q=u.index;q&&(L.tableId&&!O.tableId?Q.index<q&&(q-=I):!L.tableId&&O.tableId&&z.index<q&&(q+=I),s.setPositionContext({...u,index:q}));const se=Tc(F,_),ae=Tc(A,_);l.setRange(g?ae:se,ae,p.tableId,p.startTdIndex,p.endTdIndex,p.startTrIndex,p.endTrIndex),a.clearSideEffect();let Y=null;if(g){const k=a.getElementList()[ae];(k.type===fe.IMAGE||k.type===fe.LATEX)&&(M1(k,t,e),Y=k)}if(a.render({isSetCursor:!1}),Y)if(Y.imgDisplay===ht.FLOAT_TOP||Y.imgDisplay===ht.FLOAT_BOTTOM)a.getPreviewer().drawResizer(Y);else{const k=s.getPositionList()[ae];a.getPreviewer().drawResizer(Y,k)}}else e.isAllowDrag&&e.mousedown(t)}function Fw(t,e){const r=e.getDraw().getPageContainer(),{x:i,y:o,width:a,height:s}=r.getBoundingClientRect();t.x>=i&&t.x<=i+a&&t.y>=o&&t.y<=o+s||e.setIsAllowSelection(!1)}function Pw(t,e){var x;const n=e.getDraw();if(e.isAllowDrag){const _=t.offsetX,E=t.offsetY,{startIndex:N,endIndex:U}=e.cacheRange,O=e.cachePositionList;for(let ne=N+1;ne<=U;ne++){const{coordinate:{leftTop:T,rightBottom:I}}=O[ne];if(_>=T[0]&&_<=I[0]&&E>=T[1]&&E<=I[1])return}const Q=(x=e.cacheRange)==null?void 0:x.startIndex;if(Q){const ne=e.cacheElementList[Q];(ne==null?void 0:ne.type)===fe.IMAGE&&(ne.imgDisplay===ht.FLOAT_TOP||ne.imgDisplay===ht.FLOAT_BOTTOM)&&(n.getPreviewer().clearResizer(),n.getImageParticle().dragFloatImage(t.movementX,t.movementY))}e.dragover(t),e.isAllowDrop=!0;return}if(!e.isAllowSelection||!e.mouseDownStartPosition)return;const i=t.target.dataset.index;i&&n.setPageNo(Number(i));const a=n.getPosition().getPositionByXY({x:t.offsetX,y:t.offsetY});if(!~a.index)return;const{index:s,isTable:c,tdValueIndex:u,tdIndex:l,trIndex:h,tableId:f}=a,{index:d,isTable:p,tdIndex:g,trIndex:y,tableId:R}=e.mouseDownStartPosition,m=c?u:s,v=n.getRange();if(c&&p&&(l!==g||h!==y))v.setRange(m,m,f,g,l,y,h);else{let _=~m?m:0;if((p||c)&&R!==f)return;let E=d;if(E>_&&([E,_]=[_,E]),E===_)return;const N=n.getElementList(),U=N[E+1],O=N[_];if((U==null?void 0:U.controlComponent)===Se.PLACEHOLDER&&(O==null?void 0:O.controlComponent)===Se.PLACEHOLDER&&U.controlId===O.controlId)return;v.setRange(E,_)}n.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1})}var ni=(t=>(t.COMPONENT="component",t.MENU="menu",t.MAIN="main",t.FOOTER="footer",t.CONTEXTMENU="contextmenu",t.POPUP="popup",t.CATALOG="catalog",t.COMMENT="comment",t))(ni||{}),Mi=(t=>(t.PAGE="page",t.TABLE="table",t))(Mi||{}),kt=(t=>(t.EDIT="edit",t.CLEAN="clean",t.READONLY="readonly",t.FORM="form",t.PRINT="print",t))(kt||{}),it=(t=>(t.HEADER="header",t.MAIN="main",t.FOOTER="footer",t))(it||{}),Ci=(t=>(t.PAGING="paging",t.CONTINUITY="continuity",t))(Ci||{}),fo=(t=>(t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t))(fo||{}),af=(t=>(t.BREAK_ALL="break-all",t.BREAK_WORD="break-word",t))(af||{});function Lw(t,e){const n=e.getDraw();if(n.isReadonly())return;const r=n.getRange();if(!r.getIsCanInput())return;const i=n.getControl();let o;if(i.getActiveControl()&&i.getIsRangeCanCaptureEvent())o=i.keydown(t);else{const a=n.getPosition(),s=a.getCursorPosition();if(!s)return;const{index:c}=s,{startIndex:u,endIndex:l}=r.getRange(),h=r.getIsCollapsed(),f=n.getElementList();if(h&&c===0){const p=f[c];if(p.value===We){p.listId&&n.getListParticle().unsetList(),t.preventDefault();return}}const d=f[u];if(h&&d.rowFlex&&d.value===We){const p=n.getRowList(),y=a.getPositionList()[u].rowNo;p[y].elementList.forEach(m=>{delete m.rowFlex})}h?n.spliceElementList(f,c,1):n.spliceElementList(f,u+1,l-u),o=h?c-1:u}o!==null&&(n.getGlobalEvent().setCanvasEventAbility(),r.setRange(o,o),n.render({curIndex:o}))}function Mw(t,e){var u;const n=e.getDraw();if(n.isReadonly())return;const r=n.getRange();if(!r.getIsCanInput())return;const{startIndex:i,endIndex:o}=r.getRange(),a=n.getElementList(),s=n.getControl();let c;if(s.getActiveControl()&&s.getIsRangeWithinControl())c=s.keydown(t);else if((u=a[o+1])!=null&&u.controlId)c=s.removeControl(o+1);else{const l=n.getPosition(),h=l.getCursorPosition();if(!h)return;const{index:f}=h,d=l.getPositionContext();if(d.isDirectHit&&d.isImage)n.spliceElementList(a,f,1),c=f-1;else{const p=r.getIsCollapsed();if(!p)n.spliceElementList(a,i+1,o-i);else{if(!a[f+1])return;n.spliceElementList(a,f+1,1)}c=p?f:i}}c!==null&&(n.getGlobalEvent().setCanvasEventAbility(),r.setRange(c,c),n.render({curIndex:c}))}function Cw(t,e){var p,g;const n=e.getDraw();if(n.isReadonly())return;const r=n.getRange();if(!r.getIsCanInput())return;const{startIndex:i,endIndex:o}=r.getRange(),a=r.getIsCollapsed(),s=n.getElementList(),c=s[i],u=s[o];if(a&&u.listId&&u.value===We&&((p=s[o+1])==null?void 0:p.listId)!==u.listId){n.getListParticle().unsetList();return}const l={value:We};if(t.shiftKey&&c.listId&&(l.listWrap=!0),!(u.titleId&&u.titleId!==((g=s[o+1])==null?void 0:g.titleId))){Sn(s,[l],i);const y=Cs(s,o);if(y){const R=[...Ms];y.controlComponent!==Se.POSTFIX&&R.push(...Ro),R.forEach(m=>{const v=y[m];v!==void 0&&(l[m]=v)})}}const h=n.getControl(),f=h.getActiveControl();let d;if(f&&h.getIsRangeWithinControl())d=h.setValue([l]);else{const R=n.getPosition().getCursorPosition();if(!R)return;const{index:m}=R;a?n.spliceElementList(s,m+1,0,l):n.spliceElementList(s,i+1,o-i,l),d=m+1}~d&&(r.setRange(d,d),n.render({curIndex:d})),t.preventDefault()}function Aw(t,e){var v,x;const n=e.getDraw();if(n.isReadonly())return;const i=n.getPosition(),o=i.getCursorPosition();if(!o)return;const a=i.getPositionContext(),{index:s}=o;if(s<=0&&!a.isTable)return;const c=n.getRange(),{startIndex:u,endIndex:l}=c.getRange(),h=c.getIsCollapsed(),f=n.getElementList(),d=n.getControl();if(n.getMode()===kt.FORM&&d.getActiveControl()&&((v=f[s])==null?void 0:v.controlComponent)===Se.PREFIX){d.initNextControl({direction:wn.UP});return}let p=1;if(kr(t)){const _=n.getLetterReg(),E=t.shiftKey&&!h&&u===(o==null?void 0:o.index)?l:u;if(_.test((x=f[E])==null?void 0:x.value)){let N=E-1;for(;N>0;){const U=f[N];if(!_.test(U.value))break;p++,N--}}}const g=u-p;let y=g,R=g;if(t.shiftKey&&o&&(u!==l?u===o.index?(y=u,R=l-p):(y=g,R=l):R=l),!t.shiftKey){const _=f[u];if(_.type===fe.TABLE){const E=_.trList,N=E.length-1,U=E[N],O=U.tdList.length-1,Q=U.tdList[O];i.setPositionContext({isTable:!0,index:u,trIndex:N,tdIndex:O,tdId:Q.id,trId:U.id,tableId:_.id}),y=Q.value.length-1,R=y,n.getTableTool().render()}else if(_.tableId&&u===0){const N=n.getOriginalElementList()[a.index].trList;e:for(let U=0;U<N.length;U++){const O=N[U];if(O.id!==_.trId)continue;const Q=O.tdList;for(let ne=0;ne<Q.length;ne++)if(Q[ne].id===_.tdId){if(U===0&&ne===0)i.setPositionContext({isTable:!1}),y=a.index-1,R=y,n.getTableTool().dispose();else{let I=U,b=ne-1;b<0&&(I=U-1,b=N[I].tdList.length-1);const M=N[I],C=M.tdList[b];i.setPositionContext({isTable:!0,index:a.index,trIndex:I,tdIndex:b,tdId:C.id,trId:M.id,tableId:_.id}),y=C.value.length-1,R=y,n.getTableTool().render()}break e}}}}if(!~y||!~R)return;c.setRange(y,R);const m=y===R;n.render({curIndex:m?y:void 0,isSetCursor:m,isSubmitHistory:!1,isCompute:!1}),t.preventDefault()}function Uw(t,e){var _,E;const n=e.getDraw();if(n.isReadonly())return;const i=n.getPosition(),o=i.getCursorPosition();if(!o)return;const{index:a}=o,s=i.getPositionList(),c=i.getPositionContext();if(a>s.length-1&&!c.isTable)return;const u=n.getRange(),{startIndex:l,endIndex:h}=u.getRange(),f=u.getIsCollapsed();let d=n.getElementList();const p=n.getControl();if(n.getMode()===kt.FORM&&p.getActiveControl()&&((_=d[a+1])==null?void 0:_.controlComponent)===Se.POSTFIX){p.initNextControl({direction:wn.DOWN});return}let g=1;if(kr(t)){const N=n.getLetterReg(),U=t.shiftKey&&!f&&l===(o==null?void 0:o.index)?h:l;if(N.test((E=d[U+1])==null?void 0:E.value)){let O=U+2;for(;O<d.length;){const Q=d[O];if(!N.test(Q.value))break;g++,O++}}}const y=h+g;let R=y,m=y;if(t.shiftKey&&o&&(l!==h?l===o.index?(R=l,m=y):(R=l+g,m=h):R=l),!t.shiftKey){const N=d[h],U=d[h+1];if((U==null?void 0:U.type)===fe.TABLE){const Q=U.trList[0],ne=Q.tdList[0];i.setPositionContext({isTable:!0,index:h+1,trIndex:0,tdIndex:0,tdId:ne.id,trId:Q.id,tableId:U.id}),R=0,m=0,n.getTableTool().render()}else if(N.tableId&&!U){const Q=n.getOriginalElementList()[c.index].trList;e:for(let ne=0;ne<Q.length;ne++){const T=Q[ne];if(T.id!==N.trId)continue;const I=T.tdList;for(let b=0;b<I.length;b++)if(I[b].id===N.tdId){if(ne===Q.length-1&&b===I.length-1)i.setPositionContext({isTable:!1}),R=c.index,m=R,d=n.getElementList(),n.getTableTool().dispose();else{let C=ne,F=b+1;F>I.length-1&&(C=ne+1,F=0);const A=Q[C],B=A.tdList[F];i.setPositionContext({isTable:!0,index:c.index,trIndex:C,tdIndex:F,tdId:B.id,trId:A.id,tableId:N.id}),R=0,m=R,n.getTableTool().render()}break e}}}}const v=d.length-1;if(R>v||m>v)return;u.setRange(R,m);const x=R===m;n.render({curIndex:x?R:void 0,isSetCursor:x,isSubmitHistory:!1,isCompute:!1}),t.preventDefault()}function Ww(t,e){const n=e.getDraw();if(n.isReadonly())return;t.preventDefault();const i=n.getControl();if(i.getActiveControl()&&i.getIsRangeWithinControl())i.initNextControl({direction:t.shiftKey?wn.UP:wn.DOWN});else{const a={type:fe.TAB,value:""},s=n.getRange(),{startIndex:c}=s.getRange(),u=n.getElementList();Sn(u,[a],c),n.insertElementList([a])}}function Xl(t){const{positionList:e,index:n,isUp:r,rowNo:i,cursorX:o}=t;let a=-1;const s=[];if(r){let c=n-1;for(;c>=0;){const u=e[c];if(c--,u.rowNo!==i){if(s[0]&&s[0].rowNo!==u.rowNo)break;s.unshift(u)}}}else{let c=n+1;for(;c<e.length;){const u=e[c];if(c++,u.rowNo!==i){if(s[0]&&s[0].rowNo!==u.rowNo)break;s.push(u)}}}for(let c=0;c<s.length;c++){const u=s[c],{coordinate:{leftTop:[l],rightTop:[h]}}=u;if(c===s.length-1&&(a=u.index),!(o<l||o>h)){a=u.index;break}}return a}function Xw(t,e){const n=e.getDraw();if(n.isReadonly())return;const i=n.getPosition(),o=i.getCursorPosition();if(!o)return;const a=n.getRange(),{startIndex:s,endIndex:c}=a.getRange();let u=i.getPositionList();const l=t.key===Ke.Up;let h=-1,f=-1;const d=i.getPositionContext();if(!t.shiftKey&&d.isTable&&(l&&o.rowIndex===0||!l&&o.rowIndex===n.getRowCount()-1)){const{index:g,trIndex:y,tdIndex:R,tableId:m}=d;if(l)if(y===0)i.setPositionContext({isTable:!1}),h=g-1,f=h,n.getTableTool().dispose();else{let v=-1,x=-1;const E=n.getOriginalElementList()[g].trList,N=E[y].tdList[R].colIndex;e:for(let Q=y-1;Q>=0;Q--){const T=E[Q].tdList;for(let I=0;I<T.length;I++){const b=T[I];if(b.colIndex===N||b.colIndex+b.colspan-1>=N&&b.colIndex<=N){v=Q,x=I;break e}}}if(!~v||!~x)return;const U=E[v],O=U.tdList[x];i.setPositionContext({isTable:!0,index:g,trIndex:v,tdIndex:x,tdId:U.id,trId:O.id,tableId:m}),h=O.value.length-1,f=h,n.getTableTool().render()}else{const x=n.getOriginalElementList()[g].trList;if(y===x.length-1)i.setPositionContext({isTable:!1}),h=g,f=h,n.getTableTool().dispose();else{let _=-1,E=-1;const N=x[y].tdList[R].colIndex;e:for(let Q=y+1;Q<x.length;Q++){const T=x[Q].tdList;for(let I=0;I<T.length;I++){const b=T[I];if(b.colIndex===N||b.colIndex+b.colspan-1>=N&&b.colIndex<=N){_=Q,E=I;break e}}}if(!~_||!~E)return;const U=x[_],O=U.tdList[E];i.setPositionContext({isTable:!0,index:g,trIndex:_,tdIndex:E,tdId:U.id,trId:O.id,tableId:m}),h=O.value.length-1,f=h,n.getTableTool().render()}}}else{let g=o;t.shiftKey&&(s===o.index?g=u[c]:g=u[s]);const{index:y,rowNo:R,rowIndex:m,coordinate:{rightTop:[v]}}=g;if(l&&m===0||!l&&m===n.getRowCount()-1)return;const x=Xl({positionList:u,index:y,rowNo:R,isUp:l,cursorX:v});if(x<0)return;h=x,f=x,t.shiftKey&&(s!==c?s===o.index?h=s:f=c:l?f=c:h=s);const E=n.getElementList()[x];if(E.type===fe.TABLE){const{scale:N}=n.getOptions(),U=n.getMargins(),O=E.trList;let Q=-1,ne=-1,T=-1;if(l){e:for(let I=O.length-1;I>=0;I--){const M=O[I].tdList;for(let C=0;C<M.length;C++){const F=M[C],A=F.x*N+U[3],B=F.width*N;if(v>=A&&v<=A+B){const $=F.positionList,V=$[$.length-1],L=Xl({positionList:$,index:V.index+1,rowNo:V.rowNo-1,isUp:l,cursorX:v})||V.index;Q=I,ne=C,T=L;break e}}}}else{e:for(let I=0;I<O.length;I++){const M=O[I].tdList;for(let C=0;C<M.length;C++){const F=M[C],A=F.x*N+U[3],B=F.width*N;if(v>=A&&v<=A+B){const $=F.positionList,V=Xl({positionList:$,index:-1,rowNo:-1,isUp:l,cursorX:v})||0;Q=I,ne=C,T=V;break e}}}}if(~Q&&~ne&&~T){const I=O[Q],b=I.tdList[ne];i.setPositionContext({isTable:!0,index:x,trIndex:Q,tdIndex:ne,tdId:b.id,trId:I.id,tableId:E.id}),h=T,f=h,u=i.getPositionList(),n.getTableTool().render()}}}if(!~h||!~f)return;h>f&&([h,f]=[f,h]),a.setRange(h,f);const p=h===f;n.render({curIndex:p?h:void 0,isSetCursor:p,isSubmitHistory:!1,isCompute:!1}),n.getCursor().moveCursorToVisible({cursorPosition:u[l?h:f],direction:l?wn.UP:wn.DOWN})}function Vw(t,e){if(e.isComposing)return;const n=e.getDraw();if(t.key===Ke.Backspace)Lw(t,e);else if(t.key===Ke.Delete)Mw(t,e);else if(t.key===Ke.Enter)Cw(t,e);else if(t.key===Ke.Left)Aw(t,e);else if(t.key===Ke.Right)Uw(t,e);else if(t.key===Ke.Up||t.key===Ke.Down)Xw(t,e);else if(kr(t)&&t.key===Ke.Z){if(n.isReadonly()&&n.getMode()!==kt.FORM)return;n.getHistoryManager().undo(),t.preventDefault()}else if(kr(t)&&t.key===Ke.Y){if(n.isReadonly()&&n.getMode()!==kt.FORM)return;n.getHistoryManager().redo(),t.preventDefault()}else if(kr(t)&&t.key===Ke.C)e.copy(),t.preventDefault();else if(kr(t)&&t.key===Ke.X)e.cut(),t.preventDefault();else if(kr(t)&&t.key===Ke.A)e.selectAll(),t.preventDefault();else if(kr(t)&&t.key===Ke.S){if(n.isReadonly())return;const r=n.getListener();r.saved&&r.saved(n.getValue());const i=n.getEventBus();i.isSubscribe("saved")&&i.emit("saved",n.getValue()),t.preventDefault()}else if(t.key===Ke.ESC){e.clearPainterStyle();const r=n.getZone();r.isMainActive()||r.setZone(it.MAIN),t.preventDefault()}else t.key===Ke.TAB&&Ww(t,e)}function fR(t,e){var x;const n=e.getDraw();if(n.isReadonly())return;const i=n.getPosition().getCursorPosition();if(!t||!i)return;const o=e.isComposing;if(o&&((x=e.compositionInfo)==null?void 0:x.value)===t)return;const a=n.getRange();if(!a.getIsCanInput())return;pR(e),o||n.getCursor().clearAgentDomValue();const{TEXT:s,HYPERLINK:c,SUBSCRIPT:u,SUPERSCRIPT:l,DATE:h}=fe,f=t.replaceAll(`
|
|
`,We),{startIndex:d,endIndex:p}=a.getRange(),g=n.getElementList(),y=Cs(g,p);if(!y)return;const R=Tr(f).map(_=>{const E={value:_},N=g[p+1];return(!y.type||y.type===s||y.type===c&&(N==null?void 0:N.type)===c||y.type===h&&(N==null?void 0:N.type)===h||y.type===u&&(N==null?void 0:N.type)===u||y.type===l&&(N==null?void 0:N.type)===l)&&Hx.forEach(U=>{if(U==="groupIds"&&!(N!=null&&N.groupIds))return;const O=y[U];O!==void 0&&(E[U]=O)}),o&&(E.underline=!0),E}),m=n.getControl();let v;if(m.getActiveControl()&&m.getIsRangeWithinControl())v=m.setValue(R);else{const _=d+1;d!==p&&n.spliceElementList(g,_,p-d),Sn(g,R,d),n.spliceElementList(g,_,0,...R),v=d+R.length}~v&&(a.setRange(v,v),n.render({curIndex:v,isSubmitHistory:!o})),o&&(e.compositionInfo={elementList:g,value:f,startIndex:v-R.length,endIndex:v})}function pR(t){if(!t.compositionInfo)return;const{elementList:e,startIndex:n,endIndex:r}=t.compositionInfo;e.splice(n+1,r-n),t.getDraw().getRange().setRange(n,n),t.compositionInfo=null}function Yw(t){const e=t.getDraw(),n=e.getRange(),{startIndex:r,endIndex:i}=n.getRange();if(!~r&&!~r||e.isReadonly()||!n.getIsCanInput())return;const o=e.getElementList();let a=r,s=i;if(r===i){const f=e.getPosition().getPositionList(),d=f[r],p=d.rowNo,g=d.pageNo,y=[];for(let m=0;m<f.length;m++){const v=f[m];if(v.pageNo>g)break;v.pageNo===g&&v.rowNo===p&&y.push(m)}const R=y[0]-1;a=R<0?0:R,s=y[y.length-1]}const c=e.getOptions();lR(o.slice(a+1,s+1),c);const u=e.getControl();let l;u.getActiveControl()&&u.getIsRangeWithinControl()?l=u.cut():(e.spliceElementList(o,a+1,s-a),l=a),n.setRange(l,l),e.render({curIndex:l})}function Bw(t){const e=t.getDraw(),{copy:n}=e.getOverride();if(n){n();return}const r=e.getRange(),i=r.getIsCollapsed()?r.getRangeRowElementList():r.getSelectionElementList();!(i!=null&&i.length)||lR(i,e.getOptions())}function kw(t,e){var o,a;const n=e.getDraw(),{drop:r}=n.getOverride();if(r){r(t);return}t.preventDefault();const i=(o=t.dataTransfer)==null?void 0:o.getData("text");if(i)e.input(i);else{const s=(a=t.dataTransfer)==null?void 0:a.files;if(!s)return;for(let c=0;c<s.length;c++){const u=s[c];u.type.startsWith("image")&&of(e,u)}}}function Zw(t){var f;if(!Intl.Segmenter)return null;const e=t.getDraw(),n=e.getPosition().getCursorPosition();if(!n)return null;const i=e.getRange().getRangeParagraphInfo();if(!i)return null;const o=((f=i==null?void 0:i.elementList)==null?void 0:f.map(d=>!d.type||d.type!==fe.CONTROL&&Mr.includes(d.type)?d.value:We).join(""))||"";if(!o)return null;const a=n.index,s=i.startIndex,u=new Intl.Segmenter(void 0,{granularity:"word"}).segment(o);let l=-1,h=-1;for(const{segment:d,index:p,isWordLike:g}of u){const y=p+s;if(g&&a>=y&&a<y+d.length){l=y-1,h=l+d.length;break}}return~l&&~h?{startIndex:l,endIndex:h}:null}function Qw(t){const e=t.getDraw(),n=e.getPosition().getCursorPosition();if(!n)return null;const{value:r,index:i}=n,o=e.getLetterReg();let a=0,s=0;const c=Al.test(r);if(c||o.test(r)){const l=e.getElementList();let h=i-1;for(;h>0;){const d=l[h].value;if(c&&Al.test(d)||!c&&o.test(d))a++,h--;else break}let f=i+1;for(;f<l.length;){const d=l[f].value;if(c&&Al.test(d)||!c&&o.test(d))s++,f++;else break}}const u=i-a-1;return u<0?null:{startIndex:u,endIndex:i+s}}function Kw(t,e){const n=t.getDraw(),r=n.getPosition(),i=r.getPositionByXY({x:e.offsetX,y:e.offsetY});if(i.isImage&&i.isDirectHit){n.getPreviewer().render();return}if(n.getIsPagingMode()&&!~i.index&&i.zone){n.getZone().setZone(i.zone),n.clearSideEffect(),r.setPositionContext({isTable:!1});return}if((i.isCheckbox||i.isRadio)&&i.isDirectHit)return;const o=n.getRange(),a=Zw(t)||Qw(t);!a||(o.setRange(a.startIndex,a.endIndex),n.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1}),o.setRangeStyle())}function Hw(t){var d,p;const e=t.getDraw(),r=e.getPosition().getCursorPosition();if(!r)return;const{index:i}=r,o=e.getElementList();let a=0,s=0,c=i-1;for(;c>0;){const g=o[c],y=o[c-1];if(g.value===We&&!g.listWrap||g.listId!==(y==null?void 0:y.listId)||g.titleId!==(y==null?void 0:y.titleId))break;a++,c--}let u=i+1;for(;u<o.length;){const g=o[u],y=o[u+1];if(g.value===We&&!g.listWrap||g.listId!==(y==null?void 0:y.listId)||g.titleId!==(y==null?void 0:y.titleId))break;s++,u++}const l=e.getRange();let h=i-a-1;if(((d=o[h])==null?void 0:d.value)!==We&&(h-=1),h<0)return;let f=i+s+1;((p=o[f])==null?void 0:p.value)===We&&(f-=1),l.setRange(h,f),e.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1})}var C1={dblclick:Kw,threeClick:Hw};function Gw(t){t.isComposing=!0}function Jw(t,e){t.isComposing=!1;const n=t.getDraw();if(e.data)setTimeout(()=>{t.compositionInfo&&fR(e.data,t)},1);else{pR(t);const i=n.getRange(),{endIndex:o}=i.getRange();n.render({curIndex:o,isSubmitHistory:!1})}n.getCursor().clearAgentDomValue()}var A1={compositionstart:Gw,compositionend:Jw};function zw(t,e){const n=e.getDraw();if(n.isReadonly())return;t.preventDefault();const i=n.getPageContainer();if(!lu(t.target,m=>m===i,!0))return;const s=t.target.dataset.index;s&&n.setPageNo(Number(s));const c=n.getPosition(),u=c.adjustPositionContext({x:t.offsetX,y:t.offsetY});if(!u)return;const{isTable:l,tdValueIndex:h,index:f}=u,d=c.getPositionList(),p=l?h:f;~f&&(n.getRange().setRange(p,p),c.setCursorPosition(d[p]));const g=n.getCursor(),{cursor:{dragColor:y,dragWidth:R}}=n.getOptions();g.drawCursor({width:R,color:y,isBlink:!1})}var $w={dragover:zw};class jw{constructor(e){this.draw=e,this.pageContainer=e.getPageContainer(),this.pageList=e.getPageList(),this.range=this.draw.getRange(),this.position=this.draw.getPosition(),this.isAllowSelection=!1,this.isComposing=!1,this.compositionInfo=null,this.isAllowDrag=!1,this.isAllowDrop=!1,this.cacheRange=null,this.cacheElementList=null,this.cachePositionList=null,this.cachePositionContext=null,this.mouseDownStartPosition=null}getDraw(){return this.draw}register(){this.pageContainer.addEventListener("click",this.click.bind(this)),this.pageContainer.addEventListener("mousedown",this.mousedown.bind(this)),this.pageContainer.addEventListener("mouseup",this.mouseup.bind(this)),this.pageContainer.addEventListener("mouseleave",this.mouseleave.bind(this)),this.pageContainer.addEventListener("mousemove",this.mousemove.bind(this)),this.pageContainer.addEventListener("dblclick",this.dblclick.bind(this)),this.pageContainer.addEventListener("dragover",this.dragover.bind(this)),this.pageContainer.addEventListener("drop",this.drop.bind(this)),Xx(this.pageContainer,this.threeClick.bind(this))}setIsAllowSelection(e){this.isAllowSelection=e,e||this.applyPainterStyle()}setIsAllowDrag(e){this.isAllowDrag=e,this.isAllowDrop=e}clearPainterStyle(){this.pageList.forEach(e=>{e.style.cursor="text"}),this.draw.setPainterStyle(null)}applyPainterStyle(){const e=this.draw.getPainterStyle();if(!e)return;const n=this.range.getSelection();if(!n)return;const r=Object.keys(e);n.forEach(o=>{r.forEach(a=>{const s=a;o[s]=e[s]})}),this.draw.render({isSetCursor:!1});const i=this.draw.getPainterOptions();(!i||!i.isDblclick)&&this.clearPainterStyle()}selectAll(){const e=this.position.getPositionList();this.range.setRange(0,e.length-1),this.draw.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1})}mousemove(e){Pw(e,this)}mousedown(e){Iw(e,this)}click(){Ew&&!this.draw.isReadonly()&&this.draw.getCursor().getAgentDom().focus()}mouseup(e){Nw(e,this)}mouseleave(e){Fw(e,this)}keydown(e){Vw(e,this)}dblclick(e){C1.dblclick(this,e)}threeClick(){C1.threeClick(this)}input(e){fR(e,this)}cut(){Yw(this)}copy(){Bw(this)}compositionstart(){A1.compositionstart(this)}compositionend(e){A1.compositionend(this,e)}drop(e){kw(e,this)}dragover(e){$w.dragover(e,this)}}class qw{constructor(e,n){this.clearSideEffect=r=>{if(!this.cursor)return;const i=(r==null?void 0:r.composedPath()[0])||r.target,o=this.draw.getPageList();if(lu(i,c=>o.includes(c),!0)){this.setRangeStyle();return}if(lu(i,c=>!!c&&c.nodeType===1&&!!c.getAttribute(ei),!0)){this.setRangeStyle(),this.watchCursorActive();return}this.cursor.recoveryCursor(),this.range.recoveryRangeStyle(),this.previewer.clearResizer(),this.tableTool.dispose(),this.hyperlinkParticle.clearHyperlinkPopup(),this.control.destroyControl(),this.dateParticle.clearDatePicker()},this.setCanvasEventAbility=()=>{this.canvasEvent.setIsAllowDrag(!1),this.canvasEvent.setIsAllowSelection(!1)},this.setRangeStyle=()=>{this.range.setRangeStyle()},this.setPageScale=r=>{if(!r.ctrlKey)return;r.preventDefault();const{scale:i}=this.options;if(r.deltaY<0){const o=i*10+1;o<=30&&this.draw.setPageScale(o/10)}else{const o=i*10-1;o>=5&&this.draw.setPageScale(o/10)}},this._handleVisibilityChange=()=>{if(document.visibilityState==="visible"){const r=this.range.getRange(),i=!!~r.startIndex&&!!~r.endIndex&&r.startIndex===r.endIndex;this.range.replaceRange(r),this.draw.render({isSetCursor:i,isCompute:!1,isSubmitHistory:!1,curIndex:r.startIndex})}},this._handleDprChange=()=>{this.draw.setPageDevicePixel()},this.draw=e,this.options=e.getOptions(),this.canvasEvent=n,this.cursor=null,this.range=e.getRange(),this.previewer=e.getPreviewer(),this.tableTool=e.getTableTool(),this.hyperlinkParticle=e.getHyperlinkParticle(),this.dateParticle=e.getDateParticle(),this.control=e.getControl(),this.dprMediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`)}register(){this.cursor=this.draw.getCursor(),this.addEvent()}addEvent(){window.addEventListener("blur",this.clearSideEffect),document.addEventListener("keyup",this.setRangeStyle),document.addEventListener("click",this.clearSideEffect),document.addEventListener("mouseup",this.setCanvasEventAbility),document.addEventListener("wheel",this.setPageScale,{passive:!1}),document.addEventListener("visibilitychange",this._handleVisibilityChange),this.dprMediaQueryList.addEventListener("change",this._handleDprChange)}removeEvent(){window.removeEventListener("blur",this.clearSideEffect),document.removeEventListener("keyup",this.setRangeStyle),document.removeEventListener("click",this.clearSideEffect),document.removeEventListener("mouseup",this.setCanvasEventAbility),document.removeEventListener("wheel",this.setPageScale),document.removeEventListener("visibilitychange",this._handleVisibilityChange),this.dprMediaQueryList.removeEventListener("change",this._handleDprChange)}watchCursorActive(){!this.range.getIsCollapsed()||setTimeout(()=>{var e,n;(e=this.cursor)!=null&&e.getAgentIsActive()||(n=this.cursor)==null||n.drawCursor({isFocus:!1,isBlink:!1})})}}class eT{constructor(e){this.undoStack=[],this.redoStack=[],this.maxRecordCount=e.getOptions().historyMaxRecordCount+1}undo(){if(this.undoStack.length>1){const e=this.undoStack.pop();this.redoStack.push(e),this.undoStack.length&&this.undoStack[this.undoStack.length-1]()}}redo(){if(this.redoStack.length){const e=this.redoStack.pop();this.undoStack.push(e),e()}}execute(e){for(this.undoStack.push(e),this.redoStack.length&&(this.redoStack=[]);this.undoStack.length>this.maxRecordCount;)this.undoStack.shift()}isCanUndo(){return this.undoStack.length>1}isCanRedo(){return!!this.redoStack.length}isStackEmpty(){return!this.undoStack.length&&!this.redoStack.length}recovery(){this.undoStack=[],this.redoStack=[]}popUndo(){return this.undoStack.pop()}}class tT{constructor(e){this.positionList=[],this.floatPositionList=[],this.cursorPosition=null,this.positionContext={isTable:!1,isControl:!1},this.draw=e,this.options=e.getOptions()}getFloatPositionList(){return this.floatPositionList}getTablePositionList(e){const{index:n,trIndex:r,tdIndex:i}=this.positionContext;return e[n].trList[r].tdList[i].positionList||[]}getPositionList(){return this.positionContext.isTable?this.getTablePositionList(this.draw.getOriginalElementList()):this.getOriginalPositionList()}getMainPositionList(){return this.positionContext.isTable?this.getTablePositionList(this.draw.getOriginalMainElementList()):this.positionList}getOriginalPositionList(){const e=this.draw.getZone();return e.isHeaderActive()?this.draw.getHeader().getPositionList():e.isFooterActive()?this.draw.getFooter().getPositionList():this.positionList}getOriginalMainPositionList(){return this.positionList}getSelectionPositionList(){const{startIndex:e,endIndex:n}=this.draw.getRange().getRange();return e===n?null:this.getPositionList().slice(e+1,n+1)}setPositionList(e){this.positionList=e}setFloatPositionList(e){this.floatPositionList=e}computePageRowPosition(e){const{positionList:n,rowList:r,pageNo:i,startX:o,startY:a,startRowIndex:s,startIndex:c,innerWidth:u,zone:l}=e,{scale:h,table:{tdPadding:f}}=this.options;let d=o,p=a,g=c;for(let y=0;y<r.length;y++){const R=r[y],m=R.width+(R.offsetX||0);R.rowFlex===st.CENTER?d+=(u-m)/2:R.rowFlex===st.RIGHT&&(d+=u-m),d+=R.offsetX||0;const v=d,x=p;for(let _=0;_<R.elementList.length;_++){const E=R.elementList[_],N=E.metrics,U=E.imgDisplay!==ht.INLINE&&E.type===fe.IMAGE||E.type===fe.LATEX?R.ascent-N.height:R.ascent;E.left&&(d+=E.left);const O={pageNo:i,index:g,value:E.value,rowIndex:s+y,rowNo:y,metrics:N,left:E.left||0,ascent:U,lineHeight:R.height,isFirstLetter:_===0,isLastLetter:_===R.elementList.length-1,coordinate:{leftTop:[d,p],leftBottom:[d,p+R.height],rightTop:[d+N.width,p],rightBottom:[d+N.width,p+R.height]}};if(E.imgDisplay===ht.FLOAT_TOP||E.imgDisplay===ht.FLOAT_BOTTOM){const Q=n[n.length-1];Q&&(O.metrics=Q.metrics,O.coordinate=Q.coordinate),E.imgFloatPosition||(E.imgFloatPosition={x:d,y:p}),this.floatPositionList.push({pageNo:i,element:E,position:O,isTable:e.isTable,index:e.index,tdIndex:e.tdIndex,trIndex:e.trIndex,tdValueIndex:g,zone:l})}if(n.push(O),g++,d+=N.width,E.type===fe.TABLE){const Q=f[1]+f[3],ne=f[0]+f[2];for(let T=0;T<E.trList.length;T++){const I=E.trList[T];for(let b=0;b<I.tdList.length;b++){const M=I.tdList[b];M.positionList=[];const C=M.rowList,F=this.computePageRowPosition({positionList:M.positionList,rowList:C,pageNo:i,startRowIndex:0,startIndex:0,startX:(M.x+f[3])*h+v,startY:(M.y+f[0])*h+x,innerWidth:(M.width-Q)*h,isTable:!0,index:g-1,tdIndex:b,trIndex:T,zone:l});if(M.verticalAlign===Ai.MIDDLE||M.verticalAlign===Ai.BOTTOM){const A=C.reduce((V,L)=>V+L.height,0),B=(M.height-ne)*h-A,$=M.verticalAlign===Ai.MIDDLE?B/2:B;Math.floor($)>0&&M.positionList.forEach(V=>{const{coordinate:{leftTop:L,leftBottom:z,rightBottom:q,rightTop:se}}=V;L[1]+=$,z[1]+=$,q[1]+=$,se[1]+=$})}d=F.x,p=F.y}}d=v,p=x}}d=o,p+=R.height}return{x:d,y:p,index:g}}computePositionList(){var u;this.positionList=[];const e=this.draw.getInnerWidth(),n=this.draw.getPageRowList(),r=this.draw.getMargins(),i=r[3],a=this.draw.getHeader().getExtraHeight(),s=r[0]+a;let c=0;for(let l=0;l<n.length;l++){const h=n[l],f=(u=h[0])==null?void 0:u.startIndex;this.computePageRowPosition({positionList:this.positionList,rowList:h,pageNo:l,startRowIndex:c,startIndex:f,startX:i,startY:s,innerWidth:e}),c+=h.length}}computeRowPosition(e){const{row:n,innerWidth:r}=e,i=[];return this.computePageRowPosition({positionList:i,innerWidth:r,rowList:[Pt(n)],pageNo:0,startX:0,startY:0,startIndex:0,startRowIndex:0}),i}setCursorPosition(e){this.cursorPosition=e}getCursorPosition(){return this.cursorPosition}getPositionContext(){return this.positionContext}setPositionContext(e){this.positionContext=e}getPositionByXY(e){var g,y,R,m,v;const{x:n,y:r,isTable:i}=e;let{elementList:o,positionList:a}=e;o||(o=this.draw.getOriginalElementList()),a||(a=this.getOriginalPositionList());const s=this.draw.getZone(),c=(g=e.pageNo)!=null?g:this.draw.getPageNo(),u=s.isMainActive(),l=u?c:0;if(!i){const x=this.getFloatPositionByXY({...e,imgDisplay:ht.FLOAT_TOP});if(x)return x}for(let x=0;x<a.length;x++){const{index:_,pageNo:E,left:N,isFirstLetter:U,coordinate:{leftTop:O,rightTop:Q,leftBottom:ne}}=a[x];if(l===E){if(E>l)break;if(O[0]-N<=n&&Q[0]>=n&&O[1]<=r&&ne[1]>=r){let T=x;const I=o[x];if(I.type===fe.TABLE)for(let M=0;M<I.trList.length;M++){const C=I.trList[M];for(let F=0;F<C.tdList.length;F++){const A=C.tdList[F],B=this.getPositionByXY({x:n,y:r,td:A,tablePosition:a[x],isTable:!0,elementList:A.value,positionList:A.positionList});if(~B.index){const{index:$,hitLineStartIndex:V}=B,L=A.value[$];return{index:_,isCheckbox:B.isCheckbox||L.type===fe.CHECKBOX||L.controlComponent===Se.CHECKBOX,isRadio:L.type===fe.RADIO||L.controlComponent===Se.RADIO,isControl:!!L.controlId,isImage:B.isImage,isDirectHit:B.isDirectHit,isTable:!0,tdIndex:F,trIndex:M,tdValueIndex:$,tdId:A.id,trId:C.id,tableId:I.id,hitLineStartIndex:V}}}}if(I.type===fe.IMAGE||I.type===fe.LATEX)return{index:T,isDirectHit:!0,isImage:!0};if(I.type===fe.CHECKBOX||I.controlComponent===Se.CHECKBOX)return{index:T,isDirectHit:!0,isCheckbox:!0};if(I.type===fe.RADIO||I.controlComponent===Se.RADIO)return{index:T,isDirectHit:!0,isRadio:!0};let b;if(o[_].value!==We){const M=Q[0]-O[0];n<O[0]+M/2&&(T=x-1,U&&(b=x))}return{hitLineStartIndex:b,index:T,isControl:!!I.controlId}}}}if(!i){const x=this.getFloatPositionByXY({...e,imgDisplay:ht.FLOAT_BOTTOM});if(x)return x}let h=!1,f=-1,d;if(i){const{scale:x}=this.options,{td:_,tablePosition:E}=e;if(_&&E){const{leftTop:N}=E.coordinate,U=_.x*x+N[0],O=_.y*x+N[1],Q=_.width*x,ne=_.height*x;if(!(U<n&&n<U+Q&&O<r&&r<O+ne))return{index:f}}}const p=a.filter(x=>x.isLastLetter&&x.pageNo===l);for(let x=0;x<p.length;x++){const{index:_,rowNo:E,coordinate:{leftTop:N,leftBottom:U}}=p[x];if(r>N[1]&&r<=U[1]){const O=a.findIndex(Q=>Q.pageNo===l&&Q.rowNo===E);if(n<this.options.margins[3])~O?a[O].value===We?f=O:(f=O-1,d=O):f=_;else{if(o[O].listStyle===ur.CHECKBOX&&n<N[0])return{index:O,isDirectHit:!0,isCheckbox:!0};f=_}h=!0;break}}if(!h){const x=this.draw.getHeader(),_=x.getHeight(),E=x.getHeaderTop()+_,N=this.draw.getFooter(),O=this.draw.getHeight()-(N.getFooterBottom()+N.getHeight());if(u){if(r<E)return{index:-1,zone:it.HEADER};if(r>O)return{index:-1,zone:it.FOOTER}}else if(r<=O&&r>=E)return{index:-1,zone:it.MAIN};const Q=this.draw.getMargins();if(r<=Q[1])for(let ne=0;ne<a.length;ne++){const T=a[ne];if(T.pageNo!==l||T.rowNo!==0)continue;const{leftTop:I,rightTop:b}=T.coordinate;if(n<=Q[3]||n>=I[0]&&n<=b[0]||((y=a[ne+1])==null?void 0:y.rowNo)!==0)return{index:T.index}}else{const ne=p[p.length-1];if(ne){const T=ne.rowNo;for(let I=0;I<a.length;I++){const b=a[I];if(b.pageNo!==l||b.rowNo!==T)continue;const{leftTop:M,rightTop:C}=b.coordinate;if(n<=Q[3]||n>=M[0]&&n<=C[0]||((R=a[I+1])==null?void 0:R.rowNo)!==T)return{index:b.index}}}}return{index:((m=p[p.length-1])==null?void 0:m.index)||a.length-1}}return{hitLineStartIndex:d,index:f,isControl:!!((v=o[f])!=null&&v.controlId)}}getFloatPositionByXY(e){const{x:n,y:r}=e,i=this.draw.getZone().getZone();for(let o=0;o<this.floatPositionList.length;o++){const{position:a,element:s,isTable:c,index:u,trIndex:l,tdIndex:h,tdValueIndex:f,zone:d}=this.floatPositionList[o];if(s.type===fe.IMAGE&&s.imgDisplay===e.imgDisplay&&(!d||d===i)){const p=s.imgFloatPosition;if(n>=p.x&&n<=p.x+s.width&&r>=p.y&&r<=p.y+s.height)return c?{index:u,isDirectHit:!0,isImage:!0,isTable:c,trIndex:l,tdIndex:h,tdValueIndex:f,tdId:s.tdId,trId:s.trId,tableId:s.tableId}:{index:a.index,isDirectHit:!0,isImage:!0}}}}adjustPositionContext(e){const n=this.getPositionByXY(e);if(!~n.index)return null;if(n.isControl&&this.draw.getMode()!==kt.READONLY){const{index:g,isTable:y,trIndex:R,tdIndex:m,tdValueIndex:v}=n,x=this.draw.getControl(),{newIndex:_}=x.moveCursor({index:g,isTable:y,trIndex:R,tdIndex:m,tdValueIndex:v});y?n.tdValueIndex=_:n.index=_}const{index:r,isCheckbox:i,isRadio:o,isControl:a,isImage:s,isDirectHit:c,isTable:u,trIndex:l,tdIndex:h,tdId:f,trId:d,tableId:p}=n;return this.setPositionContext({isTable:u||!1,isCheckbox:i||!1,isRadio:o||!1,isControl:a||!1,isImage:s||!1,isDirectHit:c||!1,index:r,trIndex:l,tdIndex:h,tdId:f,trId:d,tableId:p}),n}}class nT{constructor(e){this.draw=e,this.options=e.getOptions(),this.listener=e.getListener(),this.eventBus=e.getEventBus(),this.position=e.getPosition(),this.historyManager=e.getHistoryManager(),this.range={startIndex:-1,endIndex:-1}}getRange(){return this.range}clearRange(){this.setRange(-1,-1)}getIsCollapsed(){const{startIndex:e,endIndex:n}=this.range;return e===n}getSelection(){const{startIndex:e,endIndex:n}=this.range;return e===n?null:this.draw.getElementList().slice(e+1,n+1)}getSelectionElementList(){if(this.range.isCrossRowCol){const e=this.draw.getTableParticle().getRangeRowCol();if(!e)return null;const n=[];for(let r=0;r<e.length;r++){const i=e[r];for(let o=0;o<i.length;o++){const a=i[o];n.push(...a.value)}}return n}return this.getSelection()}getTextLikeSelection(){const e=this.getSelection();return e?e.filter(n=>!n.type||Mr.includes(n.type)):null}getTextLikeSelectionElementList(){const e=this.getSelectionElementList();return e?e.filter(n=>!n.type||Mr.includes(n.type)):null}getRangeRow(){const{startIndex:e,endIndex:n}=this.range;if(!~e&&!~n)return null;const r=this.position.getPositionList(),i=new Map;for(let o=e;o<n+1;o++){const{pageNo:a,rowNo:s}=r[o],c=i.get(a);c?c.has(s)||c.add(s):i.set(a,new Set([s]))}return i}getRangeRowElementList(){const{startIndex:e,endIndex:n,isCrossRowCol:r}=this.range;if(!~e&&!~n)return null;if(r)return this.getSelectionElementList();const i=this.getRangeRow();if(!i)return null;const o=this.position.getPositionList(),a=this.draw.getElementList(),s=[];for(let c=0;c<o.length;c++){const u=o[c],l=i.get(u.pageNo);!l||l.has(u.rowNo)&&s.push(a[c])}return s}getRangeParagraph(){const{startIndex:e,endIndex:n}=this.range;if(!~e&&!~n)return null;const r=this.position.getPositionList(),i=this.draw.getElementList(),o=new Map;let a=e;for(;a>=0;){const{pageNo:c,rowNo:u}=r[a];let l=o.get(c);l||(l=[],o.set(c,l)),l.includes(u)||l.unshift(u);const h=i[a],f=i[a-1];if(h.value===We&&!h.listWrap||h.listId!==(f==null?void 0:f.listId)||h.titleId!==(f==null?void 0:f.titleId))break;a--}if(e!==n){let c=e+1;for(;c<n;){const{pageNo:u,rowNo:l}=r[c];let h=o.get(u);h||(h=[],o.set(u,h)),h.includes(l)||h.push(l),c++}}let s=n;for(;s<r.length;){const c=i[s],u=i[s+1];if(c.value===We&&!c.listWrap||c.listId!==(u==null?void 0:u.listId)||c.titleId!==(u==null?void 0:u.titleId))break;const{pageNo:l,rowNo:h}=r[s];let f=o.get(l);f||(f=[],o.set(l,f)),f.includes(h)||f.push(h),s++}return o}getRangeParagraphInfo(){const{startIndex:e,endIndex:n}=this.range;if(!~e&&!~n)return null;let r=-1;const i=[],o=this.getRangeParagraph();if(!o)return null;const a=this.draw.getElementList(),s=this.position.getPositionList();for(let c=0;c<s.length;c++){const u=s[c],l=o.get(u.pageNo);!l||l.includes(u.rowNo)&&(~r||(r=u.index),i.push(a[c]))}return i.length?{elementList:i,startIndex:r}:null}getRangeParagraphElementList(){var e;return((e=this.getRangeParagraphInfo())==null?void 0:e.elementList)||null}getIsSelectAll(){const e=this.draw.getElementList(),{startIndex:n,endIndex:r}=this.range;return n===0&&e.length-1===r&&!this.position.getPositionContext().isTable}getIsPointInRange(e,n){const{startIndex:r,endIndex:i}=this.range,o=this.position.getPositionList();for(let a=r+1;a<=i&&o[a];a++){const{coordinate:{leftTop:c,rightBottom:u}}=o[a];if(e>=c[0]&&e<=u[0]&&n>=c[1]&&n<=u[1])return!0}return!1}getKeywordRangeList(e){const n=this.draw.getSearch().getMatchList(e,this.draw.getOriginalElementList()),r=new Map;for(const o of n){const a=r.get(o.groupId);if(a)a.endIndex+=1;else{const{type:s,groupId:c,tableId:u,index:l,tdIndex:h,trIndex:f}=o,d={startIndex:l-1,endIndex:l};s===Mi.TABLE&&(d.tableId=u,d.startTdIndex=h,d.endTdIndex=h,d.startTrIndex=f,d.endTrIndex=f),r.set(c,d)}}const i=[];return r.forEach(o=>{i.push(o)}),i}getIsCanInput(){const{startIndex:e,endIndex:n}=this.getRange();if(!~e&&!~n)return!1;if(e===n)return!0;const r=this.draw.getElementList(),i=r[e],o=r[n];return!i.controlId&&!o.controlId||(!i.controlId||i.controlComponent===Se.POSTFIX)&&(!o.controlId||o.controlComponent===Se.POSTFIX)||!!i.controlId&&o.controlId===i.controlId&&o.controlComponent!==Se.POSTFIX}setRange(e,n,r,i,o,a,s){this.range.startIndex=e,this.range.endIndex=n,this.range.tableId=r,this.range.startTdIndex=i,this.range.endTdIndex=o,this.range.startTrIndex=a,this.range.endTrIndex=s,this.range.isCrossRowCol=!!(i||o||a||s),this.range.zone=this.draw.getZone().getZone();const c=this.draw.getControl();if(~e&&~n){const l=this.draw.getElementList()[e];if(l!=null&&l.controlId){c.initControl();return}}c.destroyControl()}replaceRange(e){this.setRange(e.startIndex,e.endIndex,e.tableId,e.startTdIndex,e.endTdIndex,e.startTrIndex,e.endTrIndex)}setRangeStyle(){var b;const e=this.listener.rangeStyleChange,n=this.eventBus.isSubscribe("rangeStyleChange");if(!e&&!n)return;const{startIndex:r,endIndex:i,isCrossRowCol:o}=this.range;if(!~r&&!~i)return;let a;if(o){const M=this.draw.getOriginalElementList(),C=this.position.getPositionContext();a=M[C.index]}else{const M=~i?i:0,C=this.draw.getElementList();a=Cs(C,M)}if(!a)return;const s=this.getSelection()||[a],c=a.type||fe.TEXT,u=a.font||this.options.defaultFont,l=a.size||this.options.defaultSize,h=!~s.findIndex(M=>!M.bold),f=!~s.findIndex(M=>!M.italic),d=!~s.findIndex(M=>{var C;return!M.underline&&!((C=M.control)!=null&&C.underline)}),p=!~s.findIndex(M=>!M.strikeout),g=a.color||null,y=a.highlight||null,R=a.rowFlex||null,m=a.rowMargin||this.options.defaultRowMargin,v=a.dashArray||[],x=a.level||null,_=a.listType||null,E=a.listStyle||null,N=d&&a.textDecoration||null,U=!!this.draw.getPainterStyle(),O=this.historyManager.isCanUndo(),Q=this.historyManager.isCanRedo(),ne=a.groupIds||null,T=(b=a.extension)!=null?b:null,I={type:c,undo:O,redo:Q,painter:U,font:u,size:l,bold:h,italic:f,underline:d,strikeout:p,color:g,highlight:y,rowFlex:R,rowMargin:m,dashArray:v,level:x,listType:_,listStyle:E,groupIds:ne,textDecoration:N,extension:T};e&&e(I),n&&this.eventBus.emit("rangeStyleChange",I)}recoveryRangeStyle(){const e=this.listener.rangeStyleChange,n=this.eventBus.isSubscribe("rangeStyleChange");if(!e&&!n)return;const r=this.options.defaultFont,i=this.options.defaultSize,o=this.options.defaultRowMargin,a=!!this.draw.getPainterStyle(),s=this.historyManager.isCanUndo(),c=this.historyManager.isCanRedo(),u={type:null,undo:s,redo:c,painter:a,font:r,size:i,bold:!1,italic:!1,underline:!1,strikeout:!1,color:null,highlight:null,rowFlex:null,rowMargin:o,dashArray:[],level:null,listType:null,listStyle:null,groupIds:null,textDecoration:null,extension:null};e&&e(u),n&&this.eventBus.emit("rangeStyleChange",u)}shrinkBoundary(e={}){const n=e.elementList||this.draw.getElementList(),r=e.range||this.getRange(),{startIndex:i,endIndex:o}=r;if(!~i&&!~o)return;const a=n[i],s=n[o];if(i===o){if(a.controlComponent===Se.PLACEHOLDER){let c=i-1;for(;c>0;){const u=n[c];if(u.controlId!==a.controlId||u.controlComponent===Se.PREFIX){r.startIndex=c,r.endIndex=c;break}c--}}}else{if(a.controlComponent===Se.PLACEHOLDER||s.controlComponent===Se.PLACEHOLDER){let c=o-1;for(;c>0;){const u=n[c];if(u.controlId!==s.controlId||u.controlComponent===Se.PREFIX){r.startIndex=c,r.endIndex=c;return}c--}}if(a.controlComponent===Se.PREFIX){let c=i+1;for(;c<n.length;){const u=n[c];if(u.controlId!==a.controlId||u.controlComponent===Se.VALUE){r.startIndex=c-1;break}else if(u.controlComponent===Se.PLACEHOLDER){r.startIndex=c-1,r.endIndex=c-1;return}c++}}if(s.controlComponent!==Se.VALUE){let c=i-1;for(;c>0;){const u=n[c];if(u.controlId!==a.controlId||u.controlComponent===Se.VALUE){r.startIndex=c;break}else if(u.controlComponent===Se.PLACEHOLDER){r.startIndex=c,r.endIndex=c;return}c--}}}}render(e,n,r,i,o){e.save(),e.globalAlpha=this.options.rangeAlpha,e.fillStyle=this.options.rangeColor,e.fillRect(n,r,i,o),e.restore()}toString(){const e=this.getTextLikeSelection();return e?e.map(n=>n.value).join("").replace(new RegExp(We,"g"),""):""}}var sf=(t=>(t.CONTAIN="contain",t.COVER="cover",t))(sf||{}),ao=(t=>(t.REPEAT="repeat",t.NO_REPEAT="no-repeat",t.REPEAT_X="repeat-x",t.REPEAT_Y="repeat-y",t))(ao||{});class rT{constructor(e){this.draw=e,this.options=e.getOptions(),this.imageCache=new Map}_renderBackgroundColor(e,n,r,i){e.save(),e.fillStyle=n,e.fillRect(0,0,r,i),e.restore()}_drawImage(e,n,r,i){const{background:o,scale:a}=this.options;if(o.size===sf.CONTAIN){const s=n.width*a,c=n.height*a;if(!o.repeat||o.repeat===ao.NO_REPEAT)e.drawImage(n,0,0,s,c);else{let u=0,l=0;const h=o.repeat===ao.REPEAT||o.repeat===ao.REPEAT_X?Math.ceil(r*a/s):1,f=o.repeat===ao.REPEAT||o.repeat===ao.REPEAT_Y?Math.ceil(i*a/c):1;for(let d=0;d<h;d++){for(let p=0;p<f;p++)e.drawImage(n,u,l,s,c),l+=c;l=0,u+=s}}}else e.drawImage(n,0,0,r*a,i*a)}_renderBackgroundImage(e,n,r){const{background:i}=this.options,o=this.imageCache.get(i.image);if(o)this._drawImage(e,o,n,r);else{const a=new Image;a.setAttribute("crossOrigin","Anonymous"),a.src=i.image,a.onload=()=>{this.imageCache.set(i.image,a),this._drawImage(e,a,n,r),this.draw.render({isCompute:!1,isSubmitHistory:!1})}}}render(e,n){const{background:r}=this.options;if(r.image){const{width:i,height:o}=this.options;this._renderBackgroundImage(e,i,o)}else{const i=this.draw.getCanvasWidth(n),o=this.draw.getCanvasHeight(n);this._renderBackgroundColor(e,r.color,i,o)}}}class cf{constructor(){this.fillRect=this.clearFillInfo()}clearFillInfo(){return this.fillColor=void 0,this.fillDecorationStyle=void 0,this.fillRect={x:0,y:0,width:0,height:0},this.fillRect}recordFillInfo(e,n,r,i,o,a,s){const c=!this.fillRect.width;if(!c&&(this.fillColor!==a||this.fillDecorationStyle!==s)){this.render(e),this.clearFillInfo(),this.recordFillInfo(e,n,r,i,o,a,s);return}c&&(this.fillRect.x=n,this.fillRect.y=r),o&&this.fillRect.height<o&&(this.fillRect.height=o),this.fillRect.width+=i,this.fillColor=a,this.fillDecorationStyle=s}}class iT extends cf{constructor(e){super(),this.options=e.getOptions()}render(e){if(!this.fillRect.width)return;const{highlightAlpha:n}=this.options,{x:r,y:i,width:o,height:a}=this.fillRect;e.save(),e.globalAlpha=n,e.fillStyle=this.fillColor,e.fillRect(r,i,o,a),e.restore(),this.clearFillInfo()}}class oT{constructor(e){this.draw=e,this.options=e.getOptions()}render(e,n){const{marginIndicatorColor:r,pageMode:i}=this.options,o=this.draw.getWidth(),a=i===Ci.CONTINUITY?this.draw.getCanvasHeight(n):this.draw.getHeight(),s=this.draw.getMargins(),c=this.draw.getMarginIndicatorSize();e.save(),e.translate(.5,.5),e.strokeStyle=r,e.beginPath();const u=[s[3],s[0]],l=[o-s[1],s[0]],h=[s[3],a-s[2]],f=[o-s[1],a-s[2]];e.moveTo(u[0]-c,u[1]),e.lineTo(...u),e.lineTo(u[0],u[1]-c),e.moveTo(l[0]+c,l[1]),e.lineTo(...l),e.lineTo(l[0],l[1]-c),e.moveTo(h[0]-c,h[1]),e.lineTo(...h),e.lineTo(h[0],h[1]+c),e.moveTo(f[0]+c,f[1]),e.lineTo(...f),e.lineTo(f[0],f[1]+c),e.stroke(),e.restore()}}class aT{constructor(e){this.draw=e,this.options=e.getOptions(),this.position=e.getPosition(),this.searchNavigateIndex=null,this.searchKeyword=null,this.searchMatchList=[]}getSearchKeyword(){return this.searchKeyword}setSearchKeyword(e){this.searchKeyword=e,this.searchNavigateIndex=null}searchNavigatePre(){if(!this.searchMatchList.length||!this.searchKeyword)return null;if(this.searchNavigateIndex===null)this.searchNavigateIndex=0;else{let e=this.searchNavigateIndex-1,n=!1;const r=this.searchMatchList[this.searchNavigateIndex].groupId;for(;e>=0;){const i=this.searchMatchList[e];if(r!==i.groupId){n=!0,this.searchNavigateIndex=e-(this.searchKeyword.length-1);break}e--}if(!n){if(this.searchMatchList[this.searchMatchList.length-1].groupId===r)return null;this.searchNavigateIndex=this.searchMatchList.length-1-(this.searchKeyword.length-1)}}return this.searchNavigateIndex}searchNavigateNext(){if(!this.searchMatchList.length||!this.searchKeyword)return null;if(this.searchNavigateIndex===null)this.searchNavigateIndex=0;else{let e=this.searchNavigateIndex+1,n=!1;const r=this.searchMatchList[this.searchNavigateIndex].groupId;for(;e<this.searchMatchList.length;){const i=this.searchMatchList[e];if(r!==i.groupId){n=!0,this.searchNavigateIndex=e;break}e++}if(!n){if(this.searchMatchList[0].groupId===r)return null;this.searchNavigateIndex=0}}return this.searchNavigateIndex}searchNavigateScrollIntoView(e){const{coordinate:{leftTop:n,leftBottom:r,rightTop:i},pageNo:o}=e,a=this.draw.getHeight(),s=this.draw.getPageGap(),c=o*(a+s),u=document.createElement("div");u.style.position="absolute";const l=50;u.style.width=`${i[0]-n[0]+l}px`,u.style.height=`${r[1]-n[1]+l}px`,u.style.left=`${n[0]}px`,u.style.top=`${n[1]+c}px`,this.draw.getContainer().append(u),u.scrollIntoView(!1),u.remove()}getSearchNavigateIndexList(){return this.searchNavigateIndex===null||!this.searchKeyword?[]:new Array(this.searchKeyword.length).fill(this.searchNavigateIndex).map((e,n)=>e+n)}getSearchMatchList(){return this.searchMatchList}getSearchNavigateInfo(){if(!this.searchKeyword||!this.searchMatchList.length)return null;const e=this.searchNavigateIndex!==null?this.searchNavigateIndex/this.searchKeyword.length+1:0;let n=0,r=null;for(let i=0;i<this.searchMatchList.length;i++){const o=this.searchMatchList[i];r!==o.groupId&&(r=o.groupId,n+=1)}return{index:e,count:n}}getMatchList(e,n){const r=e.toLocaleLowerCase(),i=[],o=[],a=n.length,s=[];for(let h=0;h<a;h++)n[h].type===fe.TABLE&&s.push(h);let c=0,u=0;for(;u<a-1;){const h=s.length?s[c]:a,f=n.slice(u,h);f.length&&o.push({index:u,type:Mi.PAGE,elementList:f});const d=n[h];d&&o.push({index:h,type:Mi.TABLE,elementList:[d]}),u=h+1,c++}function l(h,f,d,p){if(!h)return;const g=d.map(m=>!m.type||Mr.includes(m.type)&&m.controlComponent!==Se.CHECKBOX?m.value:We).filter(Boolean).join("").toLocaleLowerCase(),y=[];let R=g.indexOf(h);for(;R!==-1;)y.push(R),R=g.indexOf(h,R+h.length);for(let m=0;m<y.length;m++){const v=y[m],x=bt();for(let _=0;_<h.length;_++){const E=v+_+((p==null?void 0:p.startIndex)||0);i.push({type:f,index:E,groupId:x,...p})}}}for(let h=0;h<o.length;h++){const f=o[h];if(f.type===Mi.TABLE){const d=f.elementList[0];for(let p=0;p<d.trList.length;p++){const g=d.trList[p];for(let y=0;y<g.tdList.length;y++){const R=g.tdList[y],m={tableId:d.id,tableIndex:f.index,trIndex:p,tdIndex:y,tdId:R.id};l(r,f.type,R.value,m)}}}else l(r,f.type,f.elementList,{startIndex:f.index})}return i}compute(e){this.searchMatchList=this.getMatchList(e,this.draw.getOriginalElementList())}render(e,n){var c,u;if(!this.searchMatchList||!this.searchMatchList.length||!this.searchKeyword)return;const{searchMatchAlpha:r,searchMatchColor:i,searchNavigateMatchColor:o}=this.options,a=this.position.getOriginalPositionList(),s=this.draw.getOriginalElementList();e.save(),e.globalAlpha=r;for(let l=0;l<this.searchMatchList.length;l++){const h=this.searchMatchList[l];let f=null;if(h.type===Mi.TABLE){const{tableIndex:E,trIndex:N,tdIndex:U,index:O}=h;f=(u=(c=s[E])==null?void 0:c.trList[N].tdList[U])==null?void 0:u.positionList[O]}else f=a[h.index];if(!f)continue;const{coordinate:{leftTop:d,leftBottom:p,rightTop:g},pageNo:y}=f;if(y!==n)continue;if(this.getSearchNavigateIndexList().includes(l)){e.fillStyle=o;const E=this.searchMatchList[l-1];(!E||E.groupId!==h.groupId)&&this.searchNavigateScrollIntoView(f)}else e.fillStyle=i;const m=d[0],v=d[1],x=g[0]-d[0],_=p[1]-d[1];e.fillRect(m,v,x,_)}e.restore()}}class sT extends cf{constructor(e){super(),this.options=e.getOptions()}render(e){if(!this.fillRect.width)return;const{scale:n,strikeoutColor:r}=this.options,{x:i,y:o,width:a}=this.fillRect;e.save(),e.lineWidth=n,e.strokeStyle=r;const s=o+.5;e.beginPath(),e.moveTo(i,s),e.lineTo(i+a,s),e.stroke(),e.restore(),this.clearFillInfo()}}var ls=(t=>(t.SOLID="solid",t.DOUBLE="double",t.DASHED="dashed",t.DOTTED="dotted",t.WAVY="wavy",t))(ls||{}),hs=(t=>(t.SOLID="solid",t.DASHED="dashed",t.DOTTED="dotted",t))(hs||{});class cT extends cf{constructor(e){super(),this.options=e.getOptions()}_drawLine(e,n,r,i,o){const a=n+i;switch(e.beginPath(),o){case hs.DASHED:e.setLineDash([3,1]);break;case hs.DOTTED:e.setLineDash([1,1]);break}e.moveTo(n,r),e.lineTo(a,r),e.stroke()}_drawDouble(e,n,r,i){const a=n+i,s=r+3*this.options.scale;e.beginPath(),e.moveTo(n,r),e.lineTo(a,r),e.stroke(),e.beginPath(),e.moveTo(n,s),e.lineTo(a,s),e.stroke()}_drawWave(e,n,r,i){const{scale:o}=this.options,a=1.2*o,s=1/o,c=r+2*a;e.beginPath();for(let u=0;u<i;u++){const l=a*Math.sin(s*u);e.lineTo(n+u,c+l)}e.stroke()}render(e){if(!this.fillRect.width)return;const{underlineColor:n,scale:r}=this.options,{x:i,y:o,width:a}=this.fillRect;e.save(),e.strokeStyle=this.fillColor||n,e.lineWidth=r;const s=Math.floor(o+2*e.lineWidth)+.5;switch(this.fillDecorationStyle){case ls.WAVY:this._drawWave(e,i,s,a);break;case ls.DOUBLE:this._drawDouble(e,i,s,a);break;case ls.DASHED:this._drawLine(e,i,s,a,hs.DASHED);break;case ls.DOTTED:this._drawLine(e,i,s,a,hs.DOTTED);break;default:this._drawLine(e,i,s,a);break}e.restore(),this.clearFillInfo()}}class uT{constructor(e){this.draw=e,this.options=e.getOptions(),this.ctx=e.getCtx(),this.curX=-1,this.curY=-1,this.text="",this.curStyle="",this.cacheMeasureText=new Map}measureBasisWord(e,n){e.save(),e.font=n;const r=this.measureText(e,{value:Lx});return e.restore(),r}measureWord(e,n,r){const i=this.draw.getLetterReg();let o=0,a=n[r],s=r;for(;s<n.length;){const c=n[s];if(c.type&&c.type!==fe.TEXT||!i.test(c.value)){a=c;break}o+=this.measureText(e,c).width,s++}return{width:o,endElement:a}}measurePunctuationWidth(e,n){return!n||!Fx.includes(n.value)?0:this.measureText(e,n).width}measureText(e,n){if(n.width){const a=e.measureText(n.value);return{width:n.width,actualBoundingBoxAscent:a.actualBoundingBoxAscent,actualBoundingBoxDescent:a.actualBoundingBoxDescent,actualBoundingBoxLeft:a.actualBoundingBoxLeft,actualBoundingBoxRight:a.actualBoundingBoxRight,fontBoundingBoxAscent:a.fontBoundingBoxAscent,fontBoundingBoxDescent:a.fontBoundingBoxDescent}}const r=`${n.value}${e.font}`,i=this.cacheMeasureText.get(r);if(i)return i;const o=e.measureText(n.value);return this.cacheMeasureText.set(r,o),o}complete(){this._render(),this.text=""}record(e,n,r,i){this.ctx=e,this.text||this._setCurXY(r,i),(this.curStyle&&n.style!==this.curStyle||n.color!==this.curColor)&&(this.complete(),this._setCurXY(r,i)),this.text+=n.value,this.curStyle=n.style,this.curColor=n.color}_setCurXY(e,n){this.curX=e,this.curY=n}_render(){!this.text||!~this.curX||!~this.curX||(this.ctx.save(),this.ctx.font=this.curStyle,this.ctx.fillStyle=this.curColor||this.options.defaultColor,this.ctx.fillText(this.text,this.curX,this.curY),this.ctx.restore())}}const gd={PAGE_NO:"{pageNo}",PAGE_COUNT:"{pageCount}"},lT={bottom:60,size:12,font:"Microsoft YaHei",color:"#000000",rowFlex:st.CENTER,format:gd.PAGE_NO,numberType:uu.ARABIC,disabled:!1,startPageNo:1,fromPageNo:0,maxPageNo:null};class hT{constructor(e){this.draw=e,this.options=e.getOptions()}render(e,n){const{scale:r,pageMode:i,pageNumber:{size:o,font:a,color:s,rowFlex:c,numberType:u,format:l,startPageNo:h,fromPageNo:f}}=this.options;if(n<f)return;let d=l;const p=new RegExp(gd.PAGE_NO);if(p.test(d)){const N=n+h-f,U=u===uu.CHINESE?N1(N):`${N}`;d=d.replace(p,U)}const g=new RegExp(gd.PAGE_COUNT);if(g.test(d)){const N=this.draw.getPageCount()-f,U=u===uu.CHINESE?N1(N):`${N}`;d=d.replace(g,U)}const y=this.draw.getWidth(),R=i===Ci.CONTINUITY?this.draw.getCanvasHeight(n):this.draw.getHeight(),m=this.draw.getPageNumberBottom(),v=R-m;e.save(),e.fillStyle=s,e.font=`${o*r}px ${a}`;let x=0;const _=this.draw.getMargins(),{width:E}=e.measureText(d);c===st.CENTER?x=(y-E)/2:c===st.RIGHT?x=y-E-_[1]:x=_[3],e.fillText(d,x,v),e.restore()}}class dT{constructor(e){this._observer=Gm(()=>{const{intersectionPageNo:n,visiblePageNoList:r}=this.getPageVisibleInfo();this.draw.setIntersectionPageNo(n),this.draw.setVisiblePageNoList(r)},150),this.draw=e,this.options=e.getOptions(),this.scrollContainer=this.getScrollContainer(),setTimeout(()=>{window.scrollY||this._observer()}),this._addEvent()}getScrollContainer(){return this.options.scrollContainerSelector&&document.querySelector(this.options.scrollContainerSelector)||document}_addEvent(){this.scrollContainer.addEventListener("scroll",this._observer)}removeEvent(){this.scrollContainer.removeEventListener("scroll",this._observer)}getElementVisibleInfo(e){const n=e.getBoundingClientRect(),r=this.scrollContainer===document?Math.max(document.documentElement.clientHeight,window.innerHeight):this.scrollContainer.clientHeight,i=Math.min(n.bottom,r)-Math.max(n.top,0);return{intersectionHeight:i>0?i:0}}getPageVisibleInfo(){const e=this.draw.getPageList(),n=[];let r=0,i=0;for(let o=0;o<e.length;o++){const a=e[o],{intersectionHeight:s}=this.getElementVisibleInfo(a);if(i&&!s)break;s&&n.push(o),s>i&&(i=s,r=o)}return{intersectionPageNo:r,visiblePageNoList:n}}}class fT{constructor(e){this.step=5,this.thresholdPoints=[70,40,10,20],this._mousedown=()=>{this.isMousedown=!0},this._mouseup=()=>{this.isMousedown=!1,this._stopMove()},this._mousemove=n=>{if(!this.isMousedown||this.rangeManager.getIsCollapsed())return;const{x:r,y:i}=n,o=document.documentElement.clientWidth,a=document.documentElement.clientHeight;i<this.thresholdPoints[0]?this._startMove(wn.UP):a-i<=this.thresholdPoints[1]?this._startMove(wn.DOWN):r<this.thresholdPoints[2]?this._startMove(wn.LEFT):o-r<this.thresholdPoints[3]?this._startMove(wn.RIGHT):this._stopMove()},this.requestAnimationFrameId=null,this.isMousedown=!1,this.isMoving=!1,this.rangeManager=e.getRange(),this._addEvent()}_addEvent(){document.addEventListener("mousedown",this._mousedown),document.addEventListener("mousemove",this._mousemove),document.addEventListener("mouseup",this._mouseup)}removeEvent(){document.removeEventListener("mousedown",this._mousedown),document.removeEventListener("mousemove",this._mousemove),document.removeEventListener("mouseup",this._mouseup)}_move(e){const n=window.scrollX,r=window.scrollY;e===wn.DOWN?window.scrollTo(n,r+this.step):e===wn.UP?window.scrollTo(n,r-this.step):e===wn.LEFT?window.scrollTo(n-this.step,r):window.scrollTo(n+this.step,r),this.requestAnimationFrameId=window.requestAnimationFrame(this._move.bind(this,e))}_startMove(e){this.isMoving||(this.isMoving=!0,this._move(e))}_stopMove(){this.requestAnimationFrameId&&(window.cancelAnimationFrame(this.requestAnimationFrameId),this.requestAnimationFrameId=null,this.isMoving=!1)}}var $r=(t=>(t.ALL="all",t.EMPTY="empty",t.EXTERNAL="external",t))($r||{}),fr=(t=>(t.TOP="top",t.RIGHT="right",t.BOTTOM="bottom",t.LEFT="left",t))(fr||{}),Ss=(t=>(t.FORWARD="forward",t.BACK="back",t))(Ss||{});class pT{constructor(e){this.draw=e,this.range=e.getRange(),this.options=e.getOptions()}getTrListGroupByCol(e){var r;const n=Pt(e);for(let i=0;i<e.length;i++){const o=n[i];for(let a=o.tdList.length-1;a>=0;a--){const s=o.tdList[a],{rowspan:c,rowIndex:u,colIndex:l}=s,h=u+c-1;if(h!==a){const f=o.tdList.splice(a,1)[0];(r=n[h])==null||r.tdList.splice(l,0,f)}}}return n}getRangeRowCol(){const{isTable:e,index:n,trIndex:r,tdIndex:i}=this.draw.getPosition().getPositionContext();if(!e)return null;const{isCrossRowCol:o,startTdIndex:a,endTdIndex:s,startTrIndex:c,endTrIndex:u}=this.range.getRange(),f=this.draw.getOriginalElementList()[n].trList;if(!o)return[[f[r].tdList[i]]];let d=f[c].tdList[a],p=f[u].tdList[s];(d.x>p.x||d.y>p.y)&&([d,p]=[p,d]);const g=d.colIndex,y=p.colIndex+(p.colspan-1),R=d.rowIndex,m=p.rowIndex+(p.rowspan-1),v=[];for(let x=0;x<f.length;x++){const _=f[x],E=[];for(let N=0;N<_.tdList.length;N++){const U=_.tdList[N],O=U.colIndex,Q=U.rowIndex;O>=g&&O<=y&&Q>=R&&Q<=m&&E.push(U)}E.length&&v.push(E)}return v.length?v:null}_drawOuterBorder(e){const{ctx:n,startX:r,startY:i,width:o,height:a,isDrawFullBorder:s}=e;n.beginPath();const c=Math.round(r),u=Math.round(i);n.translate(.5,.5),s?n.rect(c,u,o,a):(n.moveTo(c,u+a),n.lineTo(c,u),n.lineTo(c+o,u)),n.stroke(),n.translate(-.5,-.5)}_drawSlash(e,n,r,i){var l,h;const{scale:o}=this.options;e.save();const a=n.width*o,s=n.height*o,c=Math.round(n.x*o+r),u=Math.round(n.y*o+i);(l=n.slashTypes)!=null&&l.includes(Ss.FORWARD)&&(e.moveTo(c+a,u),e.lineTo(c,u+s)),(h=n.slashTypes)!=null&&h.includes(Ss.BACK)&&(e.moveTo(c,u),e.lineTo(c+a,u+s)),e.stroke(),e.restore()}_drawBorder(e,n,r,i){var d,p,g,y,R,m;const{colgroup:o,trList:a,borderType:s}=n;if(!o||!a)return;const{scale:c}=this.options,u=n.width*c,l=n.height*c,h=s===$r.EMPTY,f=s===$r.EXTERNAL;e.save(),e.lineWidth=c,h||this._drawOuterBorder({ctx:e,startX:r,startY:i,width:u,height:l,isDrawFullBorder:f});for(let v=0;v<a.length;v++){const x=a[v];for(let _=0;_<x.tdList.length;_++){const E=x.tdList[_];if((d=E.slashTypes)!=null&&d.length&&this._drawSlash(e,E,r,i),!((p=E.borderTypes)!=null&&p.length)&&(h||f))continue;const N=E.width*c,U=E.height*c,O=Math.round(E.x*c+r+N),Q=Math.round(E.y*c+i);e.translate(.5,.5),e.beginPath(),(g=E.borderTypes)!=null&&g.includes(fr.TOP)&&(e.moveTo(O-N,Q),e.lineTo(O,Q),e.stroke()),(y=E.borderTypes)!=null&&y.includes(fr.RIGHT)&&(e.moveTo(O,Q),e.lineTo(O,Q+U),e.stroke()),(R=E.borderTypes)!=null&&R.includes(fr.BOTTOM)&&(e.moveTo(O,Q+U),e.lineTo(O-N,Q+U),e.stroke()),(m=E.borderTypes)!=null&&m.includes(fr.LEFT)&&(e.moveTo(O-N,Q),e.lineTo(O-N,Q+U),e.stroke()),!h&&!f&&(e.moveTo(O,Q),e.lineTo(O,Q+U),e.lineTo(O-N,Q+U),e.stroke()),e.translate(-.5,-.5)}}e.restore()}_drawBackgroundColor(e,n,r,i){const{trList:o}=n;if(!o)return;const{scale:a}=this.options;for(let s=0;s<o.length;s++){const c=o[s];for(let u=0;u<c.tdList.length;u++){const l=c.tdList[u];if(!l.backgroundColor)continue;e.save();const h=l.width*a,f=l.height*a,d=Math.round(l.x*a+r),p=Math.round(l.y*a+i);e.fillStyle=l.backgroundColor,e.fillRect(d,p,h,f),e.restore()}}}getTableWidth(e){return e.colgroup.reduce((n,r)=>n+r.width,0)}getTableHeight(e){const n=e.trList;return n!=null&&n.length?this.getTdListByColIndex(n,0).reduce((r,i)=>r+i.height,0):0}getRowCountByColIndex(e,n){return this.getTdListByColIndex(e,n).reduce((r,i)=>r+i.rowspan,0)}getTdListByColIndex(e,n){const r=[];for(let i=0;i<e.length;i++){const o=e[i].tdList;for(let a=0;a<o.length;a++){const s=o[a],c=s.colIndex,u=c+s.colspan-1;n>=c&&n<=u&&r.push(s)}}return r}computeRowColInfo(e){const{colgroup:n,trList:r}=e;if(!n||!r)return;let i=0,o=0;for(let a=0;a<r.length;a++){const s=r[a],c=r.length-1===a;let u=0;for(let l=0;l<s.tdList.length;l++){const h=s.tdList[l];let f=0;if(r.length>1&&a!==0){const m=s.tdList[l-1],v=m?m.colIndex+m.colspan:l;for(let x=v;x<n.length;x++)if(this.getRowCountByColIndex(r.slice(0,a),x)===a){f=x;let E=0;for(let N=0;N<x;N++)E+=n[N].width;i=E;break}}else{const m=s.tdList[l-1];m&&(f=m.colIndex+m.colspan)}let d=0;for(let m=0;m<h.colspan;m++)d+=n[m+f].width;let p=0;for(let m=0;m<h.rowspan;m++)p+=(r[m+a]||r[a]).height;(u===0||u>p)&&(u=p);const g=s.tdList.length-1===l;let y=c;if(!y&&h.rowspan>1){const m=r.length-1-a;y=h.rowspan-1===m}const R=c&&g;h.isLastRowTd=g,h.isLastColTd=y,h.isLastTd=R,h.x=i,h.y=o,h.width=d,h.height=p,h.rowIndex=a,h.colIndex=f,i+=d,g&&!R&&(i=0,o+=u)}}}drawRange(e,n,r,i){const{scale:o,rangeAlpha:a,rangeColor:s}=this.options,{type:c,trList:u}=n;if(!u||c!==fe.TABLE)return;const{isCrossRowCol:l,startTdIndex:h,endTdIndex:f,startTrIndex:d,endTrIndex:p}=this.range.getRange();if(!l)return;let g=u[d].tdList[h],y=u[p].tdList[f];(g.x>y.x||g.y>y.y)&&([g,y]=[y,g]);const R=g.colIndex,m=y.colIndex+(y.colspan-1),v=g.rowIndex,x=y.rowIndex+(y.rowspan-1);e.save();for(let _=0;_<u.length;_++){const E=u[_];for(let N=0;N<E.tdList.length;N++){const U=E.tdList[N],O=U.colIndex,Q=U.rowIndex;if(O>=R&&O<=m&&Q>=v&&Q<=x){const ne=U.x*o,T=U.y*o,I=U.width*o,b=U.height*o;e.globalAlpha=a,e.fillStyle=s,e.fillRect(ne+r,T+i,I,b)}}}e.restore()}render(e,n,r,i){this._drawBackgroundColor(e,n,r,i),this._drawBorder(e,n,r,i)}}var Fi=(t=>(t.ROW="row",t.COL="col",t))(Fi||{});class gT{constructor(e){this.MIN_TD_WIDTH=20,this.ROW_COL_OFFSET=18,this.BORDER_VALUE=4,this.draw=e,this.canvas=e.getPage(),this.options=e.getOptions(),this.position=e.getPosition(),this.container=e.getContainer(),this.toolRowContainer=null,this.toolColContainer=null,this.toolBorderContainer=null,this.anchorLine=null,this.mousedownX=0,this.mousedownY=0}dispose(){var e,n,r;(e=this.toolRowContainer)==null||e.remove(),(n=this.toolColContainer)==null||n.remove(),(r=this.toolBorderContainer)==null||r.remove(),this.toolRowContainer=null,this.toolColContainer=null,this.toolBorderContainer=null}render(){const{isTable:e,index:n,trIndex:r,tdIndex:i}=this.position.getPositionContext();if(!e)return;this.dispose();const{scale:o}=this.options,a=this.draw.getOriginalElementList(),s=this.position.getOriginalPositionList(),c=a[n],u=s[n],{colgroup:l,trList:h}=c,{coordinate:{leftTop:f}}=u,d=this.draw.getHeight(),p=this.draw.getPageGap(),g=this.draw.getPageNo()*(d+p),y=f[0],R=f[1]+g,m=c.trList[r].tdList[i],v=m.rowIndex,x=m.colIndex,_=h.map(T=>T.height),E=document.createElement("div");E.classList.add(`${Ze}-table-tool__row`),E.style.transform=`translateX(-${this.ROW_COL_OFFSET*o}px)`;for(let T=0;T<_.length;T++){const I=_[T]*o,b=document.createElement("div");b.classList.add(`${Ze}-table-tool__row__item`),T===v&&b.classList.add("active");const M=document.createElement("div");M.classList.add(`${Ze}-table-tool__anchor`),M.onmousedown=C=>{this._mousedown({evt:C,element:c,index:T,order:Fi.ROW})},b.append(M),b.style.height=`${I}px`,E.append(b)}E.style.left=`${y}px`,E.style.top=`${R}px`,this.container.append(E),this.toolRowContainer=E;const N=l.map(T=>T.width),U=document.createElement("div");U.classList.add(`${Ze}-table-tool__col`),U.style.transform=`translateY(-${this.ROW_COL_OFFSET*o}px)`;for(let T=0;T<N.length;T++){const I=N[T]*o,b=document.createElement("div");b.classList.add(`${Ze}-table-tool__col__item`),T===x&&b.classList.add("active");const M=document.createElement("div");M.classList.add(`${Ze}-table-tool__anchor`),M.onmousedown=C=>{this._mousedown({evt:C,element:c,index:T,order:Fi.COL})},b.append(M),b.style.width=`${I}px`,U.append(b)}U.style.left=`${y}px`,U.style.top=`${R}px`,this.container.append(U),this.toolColContainer=U;const O=c.height*o,Q=c.width*o,ne=document.createElement("div");ne.classList.add(`${Ze}-table-tool__border`),ne.style.height=`${O}px`,ne.style.width=`${Q}px`,ne.style.left=`${y}px`,ne.style.top=`${R}px`;for(let T=0;T<h.length;T++){const I=h[T];for(let b=0;b<I.tdList.length;b++){const M=I.tdList[b],C=document.createElement("div");C.classList.add(`${Ze}-table-tool__border__row`),C.style.width=`${M.width*o}px`,C.style.height=`${this.BORDER_VALUE}px`,C.style.top=`${(M.y+M.height)*o-this.BORDER_VALUE/2}px`,C.style.left=`${M.x*o}px`,C.onmousedown=A=>{this._mousedown({evt:A,element:c,index:M.rowIndex+M.rowspan-1,order:Fi.ROW})},ne.appendChild(C);const F=document.createElement("div");F.classList.add(`${Ze}-table-tool__border__col`),F.style.width=`${this.BORDER_VALUE}px`,F.style.height=`${M.height*o}px`,F.style.top=`${M.y*o}px`,F.style.left=`${(M.x+M.width)*o-this.BORDER_VALUE/2}px`,F.onmousedown=A=>{this._mousedown({evt:A,element:c,index:M.colIndex+M.colspan-1,order:Fi.COL})},ne.appendChild(F)}}this.container.append(ne),this.toolBorderContainer=ne}_mousedown(e){const{evt:n,index:r,order:i,element:o}=e;this.canvas=this.draw.getPage();const{scale:a}=this.options,s=this.draw.getWidth(),c=this.draw.getHeight(),u=this.draw.getPageGap(),l=this.draw.getPageNo()*(c+u);this.mousedownX=n.x,this.mousedownY=n.y;const h=n.target,f=this.canvas.getBoundingClientRect(),d=window.getComputedStyle(h).cursor;document.body.style.cursor=d,this.canvas.style.cursor=d;let p=0,g=0;const y=document.createElement("div");y.classList.add(`${Ze}-table-anchor__line`),i===Fi.ROW?(y.classList.add(`${Ze}-table-anchor__line__row`),y.style.width=`${s}px`,p=0,g=l+this.mousedownY-f.top):(y.classList.add(`${Ze}-table-anchor__line__col`),y.style.height=`${c}px`,p=this.mousedownX-f.left,g=l),y.style.left=`${p}px`,y.style.top=`${g}px`,this.container.append(y),this.anchorLine=y;let R=0,m=0;const v=x=>{const _=this._mousemove(x,i,p,g);_&&(R=_.dx,m=_.dy)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",()=>{var _;let x=!1;if(i===Fi.ROW){const E=o.trList,N=E[r]||E[r-1],{defaultTrMinHeight:U}=this.options.table;m<0&&N.height+m<U&&(m=U-N.height),m&&(N.height+=m,N.minHeight=N.height,x=!0)}else{const{colgroup:E}=o;if(E&&R){const N=this.draw.getInnerWidth(),U=E[r].width;R<0&&U+R<this.MIN_TD_WIDTH&&(R=this.MIN_TD_WIDTH-U);const O=(_=E[r+1])==null?void 0:_.width;R>0&&O&&O-R<this.MIN_TD_WIDTH&&(R=O-this.MIN_TD_WIDTH);const Q=U+R;if(r===E.length-1){let ne=0;for(let T=0;T<E.length;T++){const I=E[T];T===r+1&&(ne-=R),T===r&&(ne+=Q),T!==r&&(ne+=I.width)}if(ne>N){const T=o.width;R=N-T}}R&&(E.length-1!==r&&(E[r+1].width-=R/a),E[r].width+=R/a,x=!0)}}x&&this.draw.render({isSetCursor:!1}),y.remove(),document.removeEventListener("mousemove",v),document.body.style.cursor="",this.canvas.style.cursor="text"},{once:!0}),n.preventDefault()}_mousemove(e,n,r,i){if(!this.anchorLine)return null;const o=e.x-this.mousedownX,a=e.y-this.mousedownY;return n===Fi.ROW?this.anchorLine.style.top=`${i+a}px`:this.anchorLine.style.left=`${r+o}px`,e.preventDefault(),{dx:o,dy:a}}}class mT{constructor(e){this.draw=e,this.options=e.getOptions(),this.container=e.getContainer();const{hyperlinkPopupContainer:n,hyperlinkDom:r}=this._createHyperlinkPopupDom();this.hyperlinkDom=r,this.hyperlinkPopupContainer=n}_createHyperlinkPopupDom(){const e=document.createElement("div");e.classList.add(`${Ze}-hyperlink-popup`);const n=document.createElement("a");return n.target="_blank",n.rel="noopener",e.append(n),this.container.append(e),{hyperlinkPopupContainer:e,hyperlinkDom:n}}drawHyperlinkPopup(e,n){const{coordinate:{leftTop:[r,i]},lineHeight:o}=n,a=this.draw.getHeight(),s=this.draw.getPageGap(),c=this.draw.getPageNo()*(a+s);this.hyperlinkPopupContainer.style.display="block",this.hyperlinkPopupContainer.style.left=`${r}px`,this.hyperlinkPopupContainer.style.top=`${i+c+o}px`;const u=e.url||"#";this.hyperlinkDom.href=u,this.hyperlinkDom.title=u,this.hyperlinkDom.innerText=u}clearHyperlinkPopup(){this.hyperlinkPopupContainer.style.display="none"}openHyperlink(e){const n=window.open(e.url,"_blank");n&&(n.opener=null)}render(e,n,r,i){e.save(),e.font=n.style,n.color||(n.color=this.options.defaultHyperlinkColor),e.fillStyle=n.color,n.underline===void 0&&(n.underline=!0),e.fillText(n.value,r,i),e.restore()}}class RT{constructor(e,n){this.draw=e,this.position=e.getPosition(),this.options=e.getOptions(),this.elementList=n||[],this.rowList=[],this.positionList=[]}getRowList(){return this.rowList}setElementList(e){this.elementList=e}getElementList(){return this.elementList}getPositionList(){return this.positionList}compute(){this.recovery(),this._computeRowList(),this._computePositionList()}recovery(){this.rowList=[],this.positionList=[]}_computeRowList(){const e=this.draw.getInnerWidth();this.rowList=this.draw.computeRowList({innerWidth:e,elementList:this.elementList})}_computePositionList(){const e=this.getHeaderTop(),n=this.draw.getInnerWidth(),i=this.draw.getMargins()[3],o=e;this.position.computePageRowPosition({positionList:this.positionList,rowList:this.rowList,pageNo:0,startRowIndex:0,startIndex:0,startX:i,startY:o,innerWidth:n,zone:it.HEADER})}getHeaderTop(){const{header:{top:e,disabled:n},scale:r}=this.options;return n?0:Math.floor(e*r)}getMaxHeight(){const{header:{maxHeightRadio:e}}=this.options,n=this.draw.getHeight();return Math.floor(n*Km[e])}getHeight(){const e=this.getMaxHeight(),n=this.getRowHeight();return n>e?e:n}getRowHeight(){return this.rowList.reduce((e,n)=>e+n.height,0)}getExtraHeight(){const e=this.draw.getMargins(),n=this.getHeight(),i=this.getHeaderTop()+n-e[0];return i<=0?0:i}render(e,n){e.globalAlpha=1;const r=this.draw.getInnerWidth(),i=this.getMaxHeight(),o=[];let a=0;for(let s=0;s<this.rowList.length;s++){const c=this.rowList[s];if(a+c.height>i)break;o.push(c),a+=c.height}this.draw.drawRow(e,{elementList:this.elementList,positionList:this.positionList,rowList:o,pageNo:n,startIndex:0,innerWidth:r,zone:it.HEADER})}}class yT{getOffsetY(e){return-e.metrics.height/2}render(e,n,r,i){e.save(),e.font=n.style,n.color&&(e.fillStyle=n.color),e.fillText(n.value,r,i+this.getOffsetY(n)),e.restore()}}class vT{getOffsetY(e){return e.metrics.height/2}render(e,n,r,i){e.save(),e.font=n.style,n.color&&(e.fillStyle=n.color),e.fillText(n.value,r,i+this.getOffsetY(n)),e.restore()}}class bT{constructor(e){this.options=e.getOptions()}render(e,n,r,i){var u;e.save();const{scale:o,separator:{lineWidth:a,strokeStyle:s}}=this.options;e.lineWidth=a*o,e.strokeStyle=n.color||s,(u=n.dashArray)!=null&&u.length&&e.setLineDash(n.dashArray);const c=Math.round(i);e.translate(0,e.lineWidth/2),e.beginPath(),e.moveTo(r,c),e.lineTo(r+n.width*o,c),e.stroke(),e.restore()}}class xT{constructor(e){this.draw=e,this.options=e.getOptions(),this.i18n=e.getI18n()}render(e,n,r,i){const{pageBreak:{font:o,fontSize:a,lineDash:s}}=this.options,c=this.i18n.t("pageBreak.displayName"),{scale:u,defaultRowMargin:l}=this.options,h=a*u,f=n.width*u,d=this.draw.getDefaultBasicRowMarginHeight()*l;e.save(),e.font=`${h}px ${o}`;const p=e.measureText(c),g=(f-p.width)/2;e.setLineDash(s),e.translate(0,.5+d),e.beginPath(),e.moveTo(r,i),e.lineTo(r+g,i),e.moveTo(r+g+p.width,i),e.lineTo(r+f,i),e.stroke(),e.fillText(c,r+g,i+p.actualBoundingBoxAscent-h/2),e.restore()}}class wT{constructor(e){this.draw=e,this.options=e.getOptions()}render(e){const{watermark:{data:n,opacity:r,font:i,size:o,color:a},scale:s}=this.options,c=this.draw.getWidth(),u=this.draw.getHeight(),l=c/2,h=u/2;e.save(),e.globalAlpha=r,e.font=`${o*s}px ${i}`,e.fillStyle=a;const f=e.measureText(n);e.translate(l,h),e.rotate(-45*Math.PI/180),e.fillText(n,-f.width/2,f.actualBoundingBoxAscent-o/2),e.restore()}}class TT{constructor(e){this.draw=e.getDraw(),this.options=this.draw.getOptions(),this.highlightList=[],this.highlightMatchResult=[]}getHighlightMatchResult(){return this.highlightMatchResult}getHighlightList(){return this.highlightList}setHighlightList(e){this.highlightList=e}computeHighlightList(){const e=this.draw.getSearch(),n=(r,i)=>{var a;let o=0;for(;o<r.length;){const s=r[o];if(o++,s.type===fe.TABLE){const g=s.trList;for(let y=0;y<g.length;y++){const R=g[y];for(let m=0;m<R.tdList.length;m++){const v=R.tdList[m],x={tableId:s.id,tableIndex:o-1,trIndex:y,tdIndex:m,tdId:v.id};n(v.value,x)}}}const c=(a=s==null?void 0:s.control)==null?void 0:a.conceptId;if(!c)continue;const u=this.highlightList.findIndex(g=>g.conceptId===c);if(!~u)continue;const l=o;let h=o;for(;h<r.length&&r[h].controlId===s.controlId;)h++;o=h;const f=r.slice(l,h),d=this.highlightList[u],{ruleList:p}=d;for(let g=0;g<p.length;g++){const y=p[g],R=e.getMatchList(y.keyword,f);this.highlightMatchResult.push(...R.map(m=>({...m,...y,...i,index:m.index+l})))}}};this.highlightMatchResult=[],n(this.draw.getOriginalMainElementList())}renderHighlightList(e,n){var s,c,u;if(!((s=this.highlightMatchResult)!=null&&s.length))return;const{searchMatchAlpha:r,searchMatchColor:i}=this.options,o=this.draw.getPosition().getOriginalPositionList(),a=this.draw.getOriginalElementList();e.save();for(let l=0;l<this.highlightMatchResult.length;l++){const h=this.highlightMatchResult[l];let f=null;if(h.tableId){const{tableIndex:_,trIndex:E,tdIndex:N,index:U}=h;f=(u=(c=a[_])==null?void 0:c.trList[E].tdList[N])==null?void 0:u.positionList[U]}else f=o[h.index];if(!f)continue;const{coordinate:{leftTop:d,leftBottom:p,rightTop:g},pageNo:y}=f;if(y!==n)continue;e.fillStyle=h.backgroundColor||i,e.globalAlpha=h.alpha||r;const R=d[0],m=d[1],v=g[0]-d[0],x=p[1]-d[1];e.fillRect(R,m,v,x)}e.restore()}}class ST{constructor(e){this.borderRect=this.clearBorderInfo(),this.options=e.getOptions()}clearBorderInfo(){return this.borderRect={x:0,y:0,width:0,height:0},this.borderRect}recordBorderInfo(e,n,r,i){!this.borderRect.width&&(this.borderRect.x=e,this.borderRect.y=n,this.borderRect.height=i),this.borderRect.width+=r}render(e){if(!this.borderRect.width)return;const{scale:n,control:{borderWidth:r,borderColor:i}}=this.options,{x:o,y:a,width:s,height:c}=this.borderRect;e.save(),e.translate(0,1*n),e.lineWidth=r*n,e.strokeStyle=i,e.beginPath(),e.rect(o,a,s,c),e.stroke(),e.restore(),this.clearBorderInfo()}}class Ha{constructor(e,n){this.element=e,this.control=n,this.isPopup=!1,this.selectDom=null}setElement(e){this.element=e}getElement(){return this.element}getIsPopup(){return this.isPopup}getCode(){var e;return((e=this.element.control)==null?void 0:e.code)||null}getValue(e={}){const n=e.elementList||this.control.getElementList(),{startIndex:r}=e.range||this.control.getRange(),i=n[r],o=[];let a=r;for(;a>0;){const c=n[a];if(c.controlId!==i.controlId||c.controlComponent===Se.PREFIX)break;c.controlComponent===Se.VALUE&&o.unshift(c),a--}let s=r+1;for(;s<n.length;){const c=n[s];if(c.controlId!==i.controlId||c.controlComponent===Se.POSTFIX)break;c.controlComponent===Se.VALUE&&o.push(c),s++}return o}setValue(){return-1}keydown(e){if(this.control.getIsDisabledControl())return null;const n=this.control.getElementList(),r=this.control.getRange();this.control.shrinkBoundary();const{startIndex:i,endIndex:o}=r,a=n[i],s=n[o];if(e.key===Ke.Backspace)return i!==o?this.clearSelect():a.controlComponent===Se.PREFIX||s.controlComponent===Se.POSTFIX||a.controlComponent===Se.PLACEHOLDER?this.control.removeControl(i):this.clearSelect();if(e.key===Ke.Delete){if(i!==o)return this.clearSelect();{const c=n[o+1];return a.controlComponent===Se.PREFIX&&c.controlComponent===Se.PLACEHOLDER||c.controlComponent===Se.POSTFIX||a.controlComponent===Se.PLACEHOLDER?this.control.removeControl(i):this.clearSelect()}}return o}cut(){if(this.control.getIsDisabledControl())return-1;this.control.shrinkBoundary();const{startIndex:e,endIndex:n}=this.control.getRange();return e===n?e:this.clearSelect()}clearSelect(e={},n={}){const{isIgnoreDisabledRule:r=!1,isAddPlaceholder:i=!0}=n;if(!r&&this.control.getIsDisabledControl())return-1;const o=e.elementList||this.control.getElementList(),{startIndex:a}=e.range||this.control.getRange(),s=o[a];let c=-1,u=-1,l=a;for(;l>0;){const d=o[l];if(d.controlId!==s.controlId||d.controlComponent===Se.PREFIX){c=l;break}l--}let h=a+1;for(;h<o.length;){const d=o[h];if(d.controlId!==s.controlId||d.controlComponent===Se.POSTFIX){u=h-1;break}h++}return!~c||!~u?-1:(this.control.getDraw().spliceElementList(o,c+1,u-c),i&&this.control.addPlaceholder(l,e),this.element.control.code=null,l)}setSelect(e,n={},r={}){if(!r.isIgnoreDisabledRule&&this.control.getIsDisabledControl())return;const i=n.elementList||this.control.getElementList(),o=n.range||this.control.getRange(),a=this.element.control,s=a.code;if(e===s){this.control.repaintControl({curIndex:o.startIndex,isCompute:!1,isSubmitHistory:!1}),this.destroy();return}const c=a.valueSets;if(!Array.isArray(c)||!c.length)return;const u=c.find(R=>R.code===e);if(!u)return;const l=this.getValue(n)[0],h=l?zr(l,Ro):zr(i[o.startIndex],ha),f=this.clearSelect(n,{isAddPlaceholder:!1});if(!~f)return;s||this.control.removePlaceholder(f,n);const d=Ts(i[f],Ro),p=f+1,g=Tr(u.value),y=this.control.getDraw();for(let R=0;R<g.length;R++){const m={...h,...d,type:fe.TEXT,value:g[R],controlComponent:Se.VALUE};Sn(i,[m],f),y.spliceElementList(i,p+R,0,m)}if(a.code=e,!n.range){const R=p+g.length-1;this.control.repaintControl({curIndex:R}),this.destroy()}}_createSelectPopupDom(){const n=this.element.control.valueSets;if(!Array.isArray(n)||!n.length)return;const r=this.control.getPosition();if(!r)return;const i=document.createElement("div");i.classList.add(`${Ze}-select-control-popup`),i.setAttribute(ei,ni.POPUP);const o=document.createElement("ul");for(let h=0;h<n.length;h++){const f=n[h],d=document.createElement("li");this.getCode()===f.code&&d.classList.add("active"),d.onclick=()=>{this.setSelect(f.code)},d.append(document.createTextNode(f.value)),o.append(d)}i.append(o);const{coordinate:{leftTop:[a,s]},lineHeight:c}=r,u=this.control.getPreY();i.style.left=`${a}px`,i.style.top=`${s+u+c}px`,this.control.getContainer().append(i),this.selectDom=i}awake(){var r;if(this.isPopup||this.control.getIsDisabledControl())return;const{startIndex:e}=this.control.getRange();((r=this.control.getElementList()[e+1])==null?void 0:r.controlId)===this.element.controlId&&(this._createSelectPopupDom(),this.isPopup=!0)}destroy(){var e;!this.isPopup||((e=this.selectDom)==null||e.remove(),this.isPopup=!1)}}class U1{constructor(e,n){this.element=e,this.control=n}setElement(e){this.element=e}getElement(){return this.element}getValue(e={}){const n=e.elementList||this.control.getElementList(),{startIndex:r}=e.range||this.control.getRange(),i=n[r],o=[];let a=r;for(;a>0;){const c=n[a];if(c.controlId!==i.controlId||c.controlComponent===Se.PREFIX)break;c.controlComponent===Se.VALUE&&o.unshift(c),a--}let s=r+1;for(;s<n.length;){const c=n[s];if(c.controlId!==i.controlId||c.controlComponent===Se.POSTFIX)break;c.controlComponent===Se.VALUE&&o.push(c),s++}return o}setValue(e,n={},r={}){if(!r.isIgnoreDisabledRule&&this.control.getIsDisabledControl())return-1;const i=n.elementList||this.control.getElementList(),o=n.range||this.control.getRange();this.control.shrinkBoundary(n);const{startIndex:a,endIndex:s}=o,c=this.control.getDraw();a!==s?c.spliceElementList(i,a+1,s-a):this.control.removePlaceholder(a,n);const u=i[a],l=u.type&&!Mr.includes(u.type)||u.controlComponent===Se.PREFIX?zr(u,["control","controlId",...ha]):Ts(u,["type"]),h=o.startIndex+1;for(let f=0;f<e.length;f++){const d={...l,...e[f],controlComponent:Se.VALUE};Sn(i,[d],a),c.spliceElementList(i,h+f,0,d)}return h+e.length-1}clearValue(e={},n={}){if(!n.isIgnoreDisabledRule&&this.control.getIsDisabledControl())return-1;const r=e.elementList||this.control.getElementList(),i=e.range||this.control.getRange(),{startIndex:o,endIndex:a}=i;return this.control.getDraw().spliceElementList(r,o+1,a-o),this.getValue(e).length||this.control.addPlaceholder(o),o}keydown(e){if(this.control.getIsDisabledControl())return null;const n=this.control.getElementList(),r=this.control.getRange();this.control.shrinkBoundary();const{startIndex:i,endIndex:o}=r,a=n[i],s=n[o],c=this.control.getDraw();if(e.key===Ke.Backspace)return i!==o?(c.spliceElementList(n,i+1,o-i),this.getValue().length||this.control.addPlaceholder(i),i):a.controlComponent===Se.PREFIX||s.controlComponent===Se.POSTFIX||a.controlComponent===Se.PLACEHOLDER?this.control.removeControl(i):(c.spliceElementList(n,i,1),this.getValue().length||this.control.addPlaceholder(i-1),i-1);if(e.key===Ke.Delete){if(i!==o)return c.spliceElementList(n,i+1,o-i),this.getValue().length||this.control.addPlaceholder(i),i;{const u=n[o+1];return a.controlComponent===Se.PREFIX&&u.controlComponent===Se.PLACEHOLDER||u.controlComponent===Se.POSTFIX||a.controlComponent===Se.PLACEHOLDER?this.control.removeControl(i):(c.spliceElementList(n,i+1,1),this.getValue().length||this.control.addPlaceholder(i),i)}}return o}cut(){if(this.control.getIsDisabledControl())return-1;this.control.shrinkBoundary();const{startIndex:e,endIndex:n}=this.control.getRange();if(e===n)return e;const r=this.control.getDraw(),i=this.control.getElementList();return r.spliceElementList(i,e+1,n-e),this.getValue().length||this.control.addPlaceholder(e),e}}class gR{constructor(e,n={}){this.draw=e,this.options=n,this.lang=this._getLang(),this.now=new Date,this.dom=this._createDom(),this.renderOptions=null,this.isDatePicker=!0,this.pickDate=null,this._bindEvent()}_createDom(){const e=document.createElement("div");e.classList.add(`${Ze}-date-container`),e.setAttribute(ei,ni.POPUP);const n=document.createElement("div");n.classList.add(`${Ze}-date-wrap`);const r=document.createElement("div");r.classList.add(`${Ze}-date-title`);const i=document.createElement("span");i.classList.add(`${Ze}-date-title__pre-year`),i.innerText="<<";const o=document.createElement("span");o.classList.add(`${Ze}-date-title__pre-month`),o.innerText="<";const a=document.createElement("span");a.classList.add(`${Ze}-date-title__now`);const s=document.createElement("span");s.classList.add(`${Ze}-date-title__next-month`),s.innerText=">";const c=document.createElement("span");c.classList.add(`${Ze}-date-title__next-year`),c.innerText=">>",r.append(i),r.append(o),r.append(a),r.append(s),r.append(c);const u=document.createElement("div");u.classList.add(`${Ze}-date-week`);const{weeks:{sun:l,mon:h,tue:f,wed:d,thu:p,fri:g,sat:y}}=this.lang;[l,h,f,d,p,g,y].forEach(T=>{const I=document.createElement("span");I.innerText=`${T}`,u.append(I)});const m=document.createElement("div");m.classList.add(`${Ze}-date-day`),n.append(r),n.append(u),n.append(m);const v=document.createElement("ul");v.classList.add(`${Ze}-time-wrap`);let x,_,E;[this.lang.hour,this.lang.minute,this.lang.second].forEach((T,I)=>{const b=document.createElement("li"),M=document.createElement("span");M.innerText=T,b.append(M);const C=document.createElement("ol"),F=I===0,A=I===1,B=F?24:60;for(let $=0;$<B;$++){const V=document.createElement("li");V.innerText=`${String($).padStart(2,"0")}`,V.setAttribute("data-id",`${$}`),C.append(V)}F?x=C:A?_=C:E=C,b.append(C),v.append(b)});const U=document.createElement("div");U.classList.add(`${Ze}-date-menu`);const O=document.createElement("button");O.classList.add(`${Ze}-date-menu__time`),O.innerText=this.lang.timeSelect;const Q=document.createElement("button");Q.classList.add(`${Ze}-date-menu__now`),Q.innerText=this.lang.now;const ne=document.createElement("button");return ne.classList.add(`${Ze}-date-menu__submit`),ne.innerText=this.lang.confirm,U.append(O),U.append(Q),U.append(ne),e.append(n),e.append(v),e.append(U),this.draw.getContainer().append(e),{container:e,dateWrap:n,datePickerWeek:u,timeWrap:v,title:{preYear:i,preMonth:o,now:a,nextMonth:s,nextYear:c},day:m,time:{hour:x,minute:_,second:E},menu:{time:O,now:Q,submit:ne}}}_bindEvent(){this.dom.title.preYear.onclick=()=>{this._preYear()},this.dom.title.preMonth.onclick=()=>{this._preMonth()},this.dom.title.nextMonth.onclick=()=>{this._nextMonth()},this.dom.title.nextYear.onclick=()=>{this._nextYear()},this.dom.menu.time.onclick=()=>{this.isDatePicker=!this.isDatePicker,this._toggleDateTimePicker()},this.dom.menu.now.onclick=()=>{this._now(),this._submit()},this.dom.menu.submit.onclick=()=>{this.dispose(),this._submit()},this.dom.time.hour.onclick=e=>{if(!this.pickDate)return;const r=e.target.dataset.id;!r||(this.pickDate.setHours(Number(r)),this._setTimePick(!1))},this.dom.time.minute.onclick=e=>{if(!this.pickDate)return;const r=e.target.dataset.id;!r||(this.pickDate.setMinutes(Number(r)),this._setTimePick(!1))},this.dom.time.second.onclick=e=>{if(!this.pickDate)return;const r=e.target.dataset.id;!r||(this.pickDate.setSeconds(Number(r)),this._setTimePick(!1))}}_setPosition(){if(!this.renderOptions)return;const{position:{coordinate:{leftTop:[e,n]},lineHeight:r,pageNo:i}}=this.renderOptions,o=this.draw.getHeight(),a=this.draw.getPageGap(),c=(i!=null?i:this.draw.getPageNo())*(o+a);this.dom.container.style.left=`${e}px`,this.dom.container.style.top=`${n+c+r}px`}isInvalidDate(e){return e.toDateString()==="Invalid Date"}_setValue(){var n;const e=(n=this.renderOptions)==null?void 0:n.value;if(e){const r=new Date(e);this.now=this.isInvalidDate(r)?new Date:r}else this.now=new Date;this.pickDate=new Date(this.now)}_getLang(){const e=this.draw.getI18n(),n=e.t.bind(e);return{now:n("datePicker.now"),confirm:n("datePicker.confirm"),return:n("datePicker.return"),timeSelect:n("datePicker.timeSelect"),weeks:{sun:n("datePicker.weeks.sun"),mon:n("datePicker.weeks.mon"),tue:n("datePicker.weeks.tue"),wed:n("datePicker.weeks.wed"),thu:n("datePicker.weeks.thu"),fri:n("datePicker.weeks.fri"),sat:n("datePicker.weeks.sat")},year:n("datePicker.year"),month:n("datePicker.month"),hour:n("datePicker.hour"),minute:n("datePicker.minute"),second:n("datePicker.second")}}_setLangChange(){this.dom.menu.time.innerText=this.lang.timeSelect,this.dom.menu.now.innerText=this.lang.now,this.dom.menu.submit.innerText=this.lang.confirm;const{weeks:{sun:e,mon:n,tue:r,wed:i,thu:o,fri:a,sat:s}}=this.lang,c=[e,n,r,i,o,a,s];this.dom.datePickerWeek.childNodes.forEach((f,d)=>{const p=f;p.innerText=c[d]});const u=this.dom.time.hour.previousElementSibling;u.innerText=this.lang.hour;const l=this.dom.time.minute.previousElementSibling;l.innerText=this.lang.minute;const h=this.dom.time.second.previousElementSibling;h.innerText=this.lang.second}_update(){const e=new Date,n=e.getFullYear(),r=e.getMonth()+1,i=e.getDate();let o=null,a=null,s=null;this.pickDate&&(o=this.pickDate.getFullYear(),a=this.pickDate.getMonth()+1,s=this.pickDate.getDate());const c=this.now.getFullYear(),u=this.now.getMonth()+1;this.dom.title.now.innerText=`${c}${this.lang.year} ${String(u).padStart(2,"0")}${this.lang.month}`;const h=new Date(c,u,0).getDate();let f=new Date(c,u-1,1).getDay();f===0&&(f=7);const d=new Date(c,u-1,0).getDate();this.dom.day.innerHTML="";const p=d-f+1;for(let y=p;y<=d;y++){const R=document.createElement("div");R.classList.add("disable"),R.innerText=`${y}`,R.onclick=()=>{const m=u-2;this.now=new Date(c,m,y),this._setDatePick(c,m,y)},this.dom.day.append(R)}for(let y=1;y<=h;y++){const R=document.createElement("div");n===c&&r===u&&i===y&&R.classList.add("active"),this.pickDate&&o===c&&a===u&&s===y&&R.classList.add("select"),R.innerText=`${y}`,R.onclick=m=>{const v=u-1;this.now=new Date(c,v,y),this._setDatePick(c,v,y),m.stopPropagation()},this.dom.day.append(R)}const g=6*7-f-h;for(let y=1;y<=g;y++){const R=document.createElement("div");R.classList.add("disable"),R.innerText=`${y}`,R.onclick=()=>{this.now=new Date(c,u,y),this._setDatePick(c,u,y)},this.dom.day.append(R)}}_toggleDateTimePicker(){this.isDatePicker?(this.dom.dateWrap.classList.add("active"),this.dom.timeWrap.classList.remove("active"),this.dom.menu.time.innerText=this.lang.timeSelect):(this.dom.dateWrap.classList.remove("active"),this.dom.timeWrap.classList.add("active"),this.dom.menu.time.innerText=this.lang.return,this._setTimePick())}_setDatePick(e,n,r){var i,o,a;this.now=new Date(e,n,r),(i=this.pickDate)==null||i.setFullYear(e),(o=this.pickDate)==null||o.setMonth(n),(a=this.pickDate)==null||a.setDate(r),this._update()}_setTimePick(e=!0){var l,h,f;const n=((l=this.pickDate)==null?void 0:l.getHours())||0,r=((h=this.pickDate)==null?void 0:h.getMinutes())||0,i=((f=this.pickDate)==null?void 0:f.getSeconds())||0,{hour:o,minute:a,second:s}=this.dom.time;[o,a,s].forEach(d=>{d.querySelectorAll("li").forEach(p=>p.classList.remove("active"))}),[[o,n],[a,r],[s,i]].forEach(([d,p])=>{const g=d.querySelector(`[data-id='${p}']`);g.classList.add("active"),e&&this._scrollIntoView(d,g)})}_scrollIntoView(e,n){if(!n){e.scrollTop=0;return}const r=[];let i=n.offsetParent;for(;i&&e!==i&&e.contains(i);)r.push(i),i=i.offsetParent;const o=n.offsetTop+r.reduce((u,l)=>u+l.offsetTop,0),a=o+n.offsetHeight,s=e.scrollTop,c=s+e.clientHeight;o<s?e.scrollTop=o:a>c&&(e.scrollTop=a-e.clientHeight)}_preMonth(){this.now.setMonth(this.now.getMonth()-1),this._update()}_nextMonth(){this.now.setMonth(this.now.getMonth()+1),this._update()}_preYear(){this.now.setFullYear(this.now.getFullYear()-1),this._update()}_nextYear(){this.now.setFullYear(this.now.getFullYear()+1),this._update()}_now(){this.pickDate=new Date,this.dispose()}_toggleVisible(e){e?this.dom.container.classList.add("active"):this.dom.container.classList.remove("active")}_submit(){var e;if(this.options.onSubmit&&this.pickDate){const n=(e=this.renderOptions)==null?void 0:e.dateFormat,r=this.formatDate(this.pickDate,n);this.options.onSubmit(r)}}formatDate(e,n="yyyy-MM-dd hh:mm:ss"){let r=n;const i={"y+":e.getFullYear().toString(),"M+":(e.getMonth()+1).toString(),"d+":e.getDate().toString(),"h+":e.getHours().toString(),"m+":e.getMinutes().toString(),"s+":e.getSeconds().toString()};for(const o in i){const a=new RegExp("("+o+")").exec(n),s=o;a&&(r=r.replace(a[1],a[1].length===1?i[s]:i[s].padStart(a[1].length,"0")))}return r}render(e){this.renderOptions=e,this.lang=this._getLang(),this._setLangChange(),this._setValue(),this._update(),this._setPosition(),this.isDatePicker=!0,this._toggleDateTimePicker(),this._toggleVisible(!0)}dispose(){this._toggleVisible(!1)}destroy(){this.dom.container.remove()}}class Ga{constructor(e,n){const r=n.getDraw();this.draw=r,this.element=e,this.control=n,this.isPopup=!1,this.datePicker=null}setElement(e){this.element=e}getElement(){return this.element}getIsPopup(){return this.isPopup}getValueRange(e={}){const n=e.elementList||this.control.getElementList(),{startIndex:r}=e.range||this.control.getRange(),i=n[r];let o=r;for(;o>0;){const s=n[o];if(s.controlId!==i.controlId||s.controlComponent===Se.PREFIX)break;o--}let a=r+1;for(;a<n.length;){const s=n[a];if(s.controlId!==i.controlId||s.controlComponent===Se.POSTFIX)break;a++}return o===a?null:[o,a-1]}getValue(e={}){const n=e.elementList||this.control.getElementList(),r=this.getValueRange(e);if(!r)return[];const i=[],[o,a]=r;for(let s=o;s<=a;s++){const c=n[s];c.controlComponent===Se.VALUE&&i.push(c)}return i}setValue(e,n={},r={}){if(!r.isIgnoreDisabledRule&&this.control.getIsDisabledControl())return-1;const i=n.elementList||this.control.getElementList(),o=n.range||this.control.getRange();this.control.shrinkBoundary(n);const{startIndex:a,endIndex:s}=o,c=this.control.getDraw();a!==s?c.spliceElementList(i,a+1,s-a):this.control.removePlaceholder(a,n);const u=i[a],l=u.type&&!Mr.includes(u.type)||u.controlComponent===Se.PREFIX?zr(u,["control","controlId",...ha]):Ts(u,["type"]),h=o.startIndex+1;for(let f=0;f<e.length;f++){const d={...l,...e[f],controlComponent:Se.VALUE};Sn(i,[d],a),c.spliceElementList(i,h+f,0,d)}return h+e.length-1}clearSelect(e={},n={}){const{isIgnoreDisabledRule:r=!1,isAddPlaceholder:i=!0}=n;if(!r&&this.control.getIsDisabledControl())return-1;const o=this.getValueRange(e);if(!o)return-1;const[a,s]=o;if(!~a||!~s)return-1;const c=e.elementList||this.control.getElementList();return this.control.getDraw().spliceElementList(c,a+1,s-a),i&&this.control.addPlaceholder(a,e),a}setSelect(e,n={},r={}){if(!r.isIgnoreDisabledRule&&this.control.getIsDisabledControl())return;const i=n.elementList||this.control.getElementList(),o=n.range||this.control.getRange(),a=this.getValue(n)[0],s=a?zr(a,Ro):zr(i[o.startIndex],ha),c=this.clearSelect(n,{isAddPlaceholder:!1});if(!~c)return;const u=Ts(i[c],Ro),l=c+1,h=this.control.getDraw();for(let f=0;f<e.length;f++){const d={...s,...u,type:fe.TEXT,value:e[f],controlComponent:Se.VALUE};Sn(i,[d],c),h.spliceElementList(i,l+f,0,d)}if(!n.range){const f=l+e.length-1;this.control.repaintControl({curIndex:f}),this.destroy()}}keydown(e){if(this.control.getIsDisabledControl())return null;const n=this.control.getElementList(),r=this.control.getRange();this.control.shrinkBoundary();const{startIndex:i,endIndex:o}=r,a=n[i],s=n[o],c=this.control.getDraw();if(e.key===Ke.Backspace)return i!==o?(c.spliceElementList(n,i+1,o-i),this.getValue().length||this.control.addPlaceholder(i),i):a.controlComponent===Se.PREFIX||s.controlComponent===Se.POSTFIX||a.controlComponent===Se.PLACEHOLDER?this.control.removeControl(i):(c.spliceElementList(n,i,1),this.getValue().length||this.control.addPlaceholder(i-1),i-1);if(e.key===Ke.Delete){if(i!==o)return c.spliceElementList(n,i+1,o-i),this.getValue().length||this.control.addPlaceholder(i),i;{const u=n[o+1];return a.controlComponent===Se.PREFIX&&u.controlComponent===Se.PLACEHOLDER||u.controlComponent===Se.POSTFIX||a.controlComponent===Se.PLACEHOLDER?this.control.removeControl(i):(c.spliceElementList(n,i+1,1),this.getValue().length||this.control.addPlaceholder(i),i)}}return o}cut(){if(this.control.getIsDisabledControl())return-1;this.control.shrinkBoundary();const{startIndex:e,endIndex:n}=this.control.getRange();if(e===n)return e;const r=this.control.getDraw(),i=this.control.getElementList();return r.spliceElementList(i,e+1,n-e),this.getValue().length||this.control.addPlaceholder(e),e}awake(){var a,s;if(this.isPopup||this.control.getIsDisabledControl())return;const e=this.control.getPosition();if(!e)return;const n=this.draw.getElementList(),{startIndex:r}=this.control.getRange();if(((a=n[r+1])==null?void 0:a.controlId)!==this.element.controlId)return;this.datePicker=new gR(this.draw,{onSubmit:this._setDate.bind(this)});const i=this.getValue().map(c=>c.value).join("")||"",o=(s=this.element.control)==null?void 0:s.dateFormat;this.datePicker.render({value:i,position:e,dateFormat:o}),this.isPopup=!0}destroy(){var e;!this.isPopup||((e=this.datePicker)==null||e.destroy(),this.isPopup=!1)}_setDate(e){e?this.setSelect(e):this.clearSelect(),this.destroy()}}class DT{constructor(e){this.controlBorder=new ST(e),this.draw=e,this.range=e.getRange(),this.listener=e.getListener(),this.eventBus=e.getEventBus(),this.controlSearch=new TT(this),this.options=e.getOptions(),this.controlOptions=this.options.control,this.activeControl=null}setHighlightList(e){this.controlSearch.setHighlightList(e)}computeHighlightList(){this.controlSearch.getHighlightList().length&&this.controlSearch.computeHighlightList()}renderHighlightList(e,n){this.controlSearch.getHighlightMatchResult().length&&this.controlSearch.renderHighlightList(e,n)}getDraw(){return this.draw}filterAssistElement(e){return e.filter(n=>{var r;if(n.type===fe.TABLE){const i=n.trList;for(let o=0;o<i.length;o++){const a=i[o];for(let s=0;s<a.tdList.length;s++){const c=a.tdList[s];c.value=this.filterAssistElement(c.value)}}}return n.controlId?(r=n.control)!=null&&r.minWidth&&(n.controlComponent===Se.PREFIX||n.controlComponent===Se.POSTFIX)?(n.value="",!0):n.controlComponent!==Se.PREFIX&&n.controlComponent!==Se.POSTFIX&&n.controlComponent!==Se.PLACEHOLDER:!0})}getIsRangeCanCaptureEvent(){if(!this.activeControl)return!1;const{startIndex:e,endIndex:n}=this.getRange();if(!~e&&!~n)return!1;const r=this.getElementList(),i=r[e];if(e===n&&i.controlComponent===Se.POSTFIX)return!0;const o=r[n];return!!(i.controlId&&i.controlId===o.controlId&&o.controlComponent!==Se.POSTFIX)}getIsRangeInPostfix(){if(!this.activeControl)return!1;const{startIndex:e,endIndex:n}=this.getRange();return e!==n?!1:this.getElementList()[e].controlComponent===Se.POSTFIX}getIsRangeWithinControl(){const{startIndex:e,endIndex:n}=this.getRange();if(!~e&&!~n)return!1;const r=this.getElementList(),i=r[e],o=r[n];return!!(i.controlId&&i.controlId===o.controlId&&o.controlComponent!==Se.POSTFIX)}getIsElementListContainFullControl(e){if(!e.some(i=>i.controlId))return!1;let n=0,r=0;for(let i=0;i<e.length;i++){const o=e[i];o.controlComponent===Se.PREFIX?n++:o.controlComponent===Se.POSTFIX&&r++}return!n||!r?!1:n===r}getIsDisabledControl(){var e,n;return!!((n=(e=this.activeControl)==null?void 0:e.getElement().control)!=null&&n.disabled)}getContainer(){return this.draw.getContainer()}getElementList(){return this.draw.getElementList()}getPosition(){const e=this.draw.getPosition().getPositionList(),{endIndex:n}=this.range.getRange();return e[n]||null}getPreY(){var i,o;const e=this.draw.getHeight(),n=this.draw.getPageGap();return((o=(i=this.getPosition())==null?void 0:i.pageNo)!=null?o:this.draw.getPageNo())*(e+n)}getRange(){return this.range.getRange()}shrinkBoundary(e={}){this.range.shrinkBoundary(e)}getActiveControl(){return this.activeControl}initControl(){if(this.draw.isReadonly())return;const n=this.getElementList(),r=this.getRange(),i=n[r.startIndex];if(this.activeControl){(this.activeControl instanceof Ha||this.activeControl instanceof Ga)&&(i.controlComponent===Se.POSTFIX?this.activeControl.destroy():this.activeControl.awake());const a=this.activeControl.getElement();if(i.controlId===a.controlId)return}this.destroyControl();const o=i.control;if(o.type===vt.TEXT)this.activeControl=new U1(i,this);else if(o.type===vt.SELECT){const a=new Ha(i,this);this.activeControl=a,a.awake()}else if(o.type===vt.CHECKBOX)this.activeControl=new pu(i,this);else if(o.type===vt.RADIO)this.activeControl=new pd(i,this);else if(o.type===vt.DATE){const a=new Ga(i,this);this.activeControl=a,a.awake()}du(()=>{var l;const a=this.listener.controlChange,s=this.eventBus.isSubscribe("controlChange");if(!a&&!s)return;let c;const u=(l=this.activeControl)==null?void 0:l.getValue();u&&u.length?c=Xt(u)[0].control:c=oa(Pt(i)).control,a&&a(c),s&&this.eventBus.emit("controlChange",c)})}destroyControl(){this.activeControl&&((this.activeControl instanceof Ha||this.activeControl instanceof Ga)&&this.activeControl.destroy(),this.activeControl=null,du(()=>{const e=this.listener.controlChange,n=this.eventBus.isSubscribe("controlChange");!e&&!n||(e&&e(null),n&&this.eventBus.emit("controlChange",null))}))}repaintControl(e={}){const{curIndex:n,isCompute:r=!0,isSubmitHistory:i=!0}=e;n===void 0?(this.range.clearRange(),this.draw.render({isCompute:r,isSubmitHistory:i,isSetCursor:!1})):(this.range.setRange(n,n),this.draw.render({curIndex:n,isCompute:r,isSubmitHistory:i}))}reAwakeControl(){if(!this.activeControl)return;const e=this.getElementList(),n=this.getRange(),r=e[n.startIndex];this.activeControl.setElement(r),(this.activeControl instanceof Ga||this.activeControl instanceof Ha)&&this.activeControl.getIsPopup()&&(this.activeControl.destroy(),this.activeControl.awake())}moveCursor(e){const{index:n,trIndex:r,tdIndex:i,tdValueIndex:o}=e;let a=this.draw.getOriginalElementList(),s;const c=e.isTable?o:n;if(e.isTable?(a=a[n].trList[r].tdList[i].value,s=a[o]):s=a[n],s.controlComponent===Se.VALUE)return{newIndex:c,newElement:s};if(s.controlComponent===Se.POSTFIX){let u=c+1;for(;u<a.length;){if(a[u].controlId!==s.controlId)return{newIndex:u-1,newElement:a[u-1]};u++}}else if(s.controlComponent===Se.PREFIX){let u=c+1;for(;u<a.length;){const l=a[u];if(l.controlId!==s.controlId||l.controlComponent!==Se.PREFIX)return{newIndex:u-1,newElement:a[u-1]};u++}}else if(s.controlComponent===Se.PLACEHOLDER){let u=c-1;for(;u>0;){const l=a[u];if(l.controlId!==s.controlId||l.controlComponent===Se.PREFIX)return{newIndex:u,newElement:a[u]};u--}}return{newIndex:c,newElement:s}}removeControl(e,n={}){const r=n.elementList||this.getElementList(),i=r[e],{deletable:o=!0}=i.control;if(!o)return null;let a=-1,s=-1,c=e;for(;c>0;){if(r[c].controlId!==i.controlId){a=c;break}c--}let u=e+1;for(;u<r.length;){if(r[u].controlId!==i.controlId){s=u-1;break}u++}return u===r.length&&(s=u-1),!~a&&!~s?e:(a=~a?a:0,this.draw.spliceElementList(r,a+1,s-a),a)}removePlaceholder(e,n={}){const r=n.elementList||this.getElementList(),i=r[e],o=r[e+1];if(i.controlComponent===Se.PLACEHOLDER||o.controlComponent===Se.PLACEHOLDER){let a=!1,s=e;for(;s<r.length;){const c=r[s];if(c.controlId!==i.controlId)break;c.controlComponent===Se.PLACEHOLDER?(a||(a=!0,this.draw.getHistoryManager().popUndo(),this.draw.submitHistory(e)),r.splice(s,1)):s++}}}addPlaceholder(e,n={}){const r=n.elementList||this.getElementList(),i=r[e],o=i.control;if(!o.placeholder)return;const a=Tr(o.placeholder);for(let s=0;s<a.length;s++){const u={value:a[s],controlId:i.controlId,type:fe.CONTROL,control:i.control,controlComponent:Se.PLACEHOLDER,color:this.controlOptions.placeholderColor};Sn(r,[u],e),this.draw.spliceElementList(r,e+s+1,0,u)}}setValue(e){if(!this.activeControl)throw new Error("active control is null");return this.activeControl.setValue(e)}keydown(e){if(!this.activeControl)throw new Error("active control is null");return this.activeControl.keydown(e)}cut(){if(!this.activeControl)throw new Error("active control is null");return this.activeControl.cut()}getValueByConceptId(e){const{conceptId:n}=e,r=[],i=(a,s)=>{var u;let c=0;for(;c<a.length;){const l=a[c];if(c++,l.type===fe.TABLE){const y=l.trList;for(let R=0;R<y.length;R++){const m=y[R];for(let v=0;v<m.tdList.length;v++){const x=m.tdList[v];i(x.value,s)}}}if(((u=l==null?void 0:l.control)==null?void 0:u.conceptId)!==n)continue;const{type:h,code:f,valueSets:d}=l.control;let p=c,g="";for(;p<a.length;){const y=a[p];if(y.controlId!==l.controlId)break;(h===vt.TEXT||h===vt.DATE)&&y.controlComponent===Se.VALUE&&(g+=y.value),p++}if(h===vt.TEXT||h===vt.DATE)r.push({...l.control,zone:s,value:g||null,innerText:g||null});else if(h===vt.SELECT||h===vt.CHECKBOX||h===vt.RADIO){const y=f==null?void 0:f.split(",").map(R=>{var m;return(m=d==null?void 0:d.find(v=>v.code===R))==null?void 0:m.value}).filter(Boolean).join("");r.push({...l.control,zone:s,value:f||null,innerText:y||null})}c=p}},o=[{zone:it.HEADER,elementList:this.draw.getHeaderElementList()},{zone:it.MAIN,elementList:this.draw.getOriginalMainElementList()},{zone:it.FOOTER,elementList:this.draw.getFooterElementList()}];for(const{zone:a,elementList:s}of o)i(s,a);return r}setValueByConceptId(e){if(this.draw.isReadonly())return;let r=!1;const{conceptId:i,value:o}=e,a=c=>{var l;let u=0;for(;u<c.length;){const h=c[u];if(u++,h.type===fe.TABLE){const m=h.trList;for(let v=0;v<m.length;v++){const x=m[v];for(let _=0;_<x.tdList.length;_++){const E=x.tdList[_];a(E.value)}}}if(((l=h==null?void 0:h.control)==null?void 0:l.conceptId)!==i)continue;r=!0;const{type:f}=h.control;let d=u;for(;d<c.length&&c[d].controlId===h.controlId;)d++;const g={range:{startIndex:u-1,endIndex:d-2},elementList:c},y={isIgnoreDisabledRule:!0};if(f===vt.TEXT){const m=[{value:o}];dr(m,{isHandleFirstElement:!1,editorOptions:this.options});const v=new U1(h,this);this.activeControl=v,o?v.setValue(m,g,y):v.clearValue(g,y)}else if(f===vt.SELECT){const m=new Ha(h,this);this.activeControl=m,o?m.setSelect(o,g,y):m.clearSelect(g,y)}else if(f===vt.CHECKBOX){const m=new pu(h,this);this.activeControl=m;const v=(o==null?void 0:o.split(","))||[];m.setSelect(v,g,y)}else if(f===vt.RADIO){const m=new pd(h,this);this.activeControl=m;const v=o?[o]:[];m.setSelect(v,g,y)}else if(f===vt.DATE){const m=new Ga(h,this);this.activeControl=m,o?m.setSelect(o,g,y):m.clearSelect(g,y)}this.activeControl=null;let R=u;for(;R<c.length&&c[R].controlId===h.controlId;)R++;u=R}};this.destroyControl();const s=[this.draw.getHeaderElementList(),this.draw.getOriginalMainElementList(),this.draw.getFooterElementList()];for(const c of s)a(c);r&&this.draw.render({isSetCursor:!1})}setExtensionByConceptId(e){if(this.draw.isReadonly())return;const{conceptId:r,extension:i}=e,o=s=>{var u;let c=0;for(;c<s.length;){const l=s[c];if(c++,l.type===fe.TABLE){const f=l.trList;for(let d=0;d<f.length;d++){const p=f[d];for(let g=0;g<p.tdList.length;g++){const y=p.tdList[g];o(y.value)}}}if(((u=l==null?void 0:l.control)==null?void 0:u.conceptId)!==r)continue;l.control.extension=i;let h=c;for(;h<s.length&&s[h].controlId===l.controlId;)h++;c=h}},a=[this.draw.getHeaderElementList(),this.draw.getOriginalMainElementList(),this.draw.getFooterElementList()];for(const s of a)o(s)}setPropertiesByConceptId(e){var s;if(this.draw.isReadonly())return;const{conceptId:r,properties:i}=e;let o=!1;const a={header:this.draw.getHeaderElementList(),main:this.draw.getOriginalMainElementList(),footer:this.draw.getFooterElementList()};for(const c in a){const u=a[c];let l=0;for(;l<u.length;){const h=u[l];if(l++,((s=h==null?void 0:h.control)==null?void 0:s.conceptId)!==r)continue;o=!0,h.control={...h.control,...i,value:h.control.value};let f=l;for(;f<u.length&&u[f].controlId===h.controlId;)f++;l=f}}if(!!o){for(const c in a){const u=c,l=Xt(a[u]);a[u]=l,dr(l,{editorOptions:this.options})}this.draw.setEditorData(a),this.draw.render({isSetCursor:!1})}}getList(){const e=[];function n(i){for(let o=0;o<i.length;o++){const a=i[o];if(a.type===fe.TABLE){const s=a.trList;for(let c=0;c<s.length;c++){const u=s[c];for(let l=0;l<u.tdList.length;l++){const f=u.tdList[l].value;n(f)}}}a.controlId&&e.push(a)}}const r=[this.draw.getHeader().getElementList(),this.draw.getOriginalMainElementList(),this.draw.getFooter().getElementList()];for(const i of r)n(i);return Xt(e,{extraPickAttrs:["controlId"]})}recordBorderInfo(e,n,r,i){this.controlBorder.recordBorderInfo(e,n,r,i)}drawBorder(e){this.controlBorder.render(e)}getPreControlContext(){if(!this.activeControl)return null;const n=this.draw.getPosition().getPositionContext();if(!n)return null;const r=this.activeControl.getElement();function i(c,u){for(let l=u;l>0;l--){const h=c[l];if(h.type===fe.TABLE){const d=h.trList||[];for(let p=d.length-1;p>=0;p--){const g=d[p],y=g.tdList;for(let R=y.length-1;R>=0;R--){const m=y[R],v=i(m.value,m.value.length-1);if(v)return{positionContext:{isTable:!0,index:l,trIndex:p,tdIndex:R,tdId:m.id,trId:g.id,tableId:h.id},nextIndex:v.nextIndex}}}}if(!h.controlId||h.controlId===r.controlId)continue;let f=l;for(;f>0;){const d=c[f];if(d.controlComponent===Se.VALUE||d.controlComponent===Se.PREFIX)break;f--}return{positionContext:{isTable:!1},nextIndex:f}}return null}const{startIndex:o}=this.range.getRange(),a=this.getElementList(),s=i(a,o);if(s)return{positionContext:n.isTable?n:s.positionContext,nextIndex:s.nextIndex};if(r.tableId){const c=this.draw.getOriginalElementList(),{index:u,trIndex:l,tdIndex:h}=n,f=c[u].trList;for(let p=l;p>=0;p--){const g=f[p],y=g.tdList;for(let R=y.length-1;R>=0;R--){if(l===p&&R>=h)continue;const m=y[R],v=i(m.value,m.value.length-1);if(v)return{positionContext:{isTable:!0,index:n.index,trIndex:p,tdIndex:R,tdId:m.id,trId:g.id,tableId:r.tableId},nextIndex:v.nextIndex}}}const d=i(c,u-1);if(d)return{positionContext:{isTable:!1},nextIndex:d.nextIndex}}return null}getNextControlContext(){if(!this.activeControl)return null;const n=this.draw.getPosition().getPositionContext();if(!n)return null;const r=this.activeControl.getElement();function i(c,u){for(let l=u;l<c.length;l++){const h=c[l];if(h.type===fe.TABLE){const f=h.trList||[];for(let d=0;d<f.length;d++){const p=f[d],g=p.tdList;for(let y=0;y<g.length;y++){const R=g[y],m=i(R.value,0);if(m)return{positionContext:{isTable:!0,index:l,trIndex:d,tdIndex:y,tdId:R.id,trId:p.id,tableId:h.id},nextIndex:m.nextIndex}}}}if(!(!h.controlId||h.controlId===r.controlId))return{positionContext:{isTable:!1},nextIndex:l}}return null}const{endIndex:o}=this.range.getRange(),a=this.getElementList(),s=i(a,o);if(s)return{positionContext:n.isTable?n:s.positionContext,nextIndex:s.nextIndex};if(r.tableId){const c=this.draw.getOriginalElementList(),{index:u,trIndex:l,tdIndex:h}=n,f=c[u].trList;for(let p=l;p<f.length;p++){const g=f[p],y=g.tdList;for(let R=0;R<y.length;R++){if(l===p&&R<=h)continue;const m=y[R],v=i(m.value,0);if(v)return{positionContext:{isTable:!0,index:n.index,trIndex:p,tdIndex:R,tdId:m.id,trId:g.id,tableId:r.tableId},nextIndex:v.nextIndex}}}const d=i(c,u+1);if(d)return{positionContext:{isTable:!1},nextIndex:d.nextIndex}}return null}initNextControl(e={}){const{direction:n=wn.DOWN}=e;let r=null;if(n===wn.UP?r=this.getPreControlContext():r=this.getNextControlContext(),!r)return;const{nextIndex:i,positionContext:o}=r,a=this.draw.getPosition();a.setPositionContext(o),this.draw.getRange().replaceRange({startIndex:i,endIndex:i}),this.draw.render({curIndex:i,isCompute:!1,isSetCursor:!0,isSubmitHistory:!1});const s=a.getPositionList();this.draw.getCursor().moveCursorToVisible({cursorPosition:s[i],direction:n})}}class _T{constructor(e){this.draw=e,this.options=e.getOptions()}setSelect(e){const{checkbox:n}=e;n?n.value=!n.value:e.checkbox={value:!0},this.draw.render({isCompute:!1,isSetCursor:!1})}render(e,n,r,i){const{checkbox:{gap:o,lineWidth:a,fillStyle:s,strokeStyle:c},scale:u}=this.options,{metrics:l,checkbox:h}=n,f=Math.round(r+o*u),d=Math.round(i-l.height+a),p=l.width-o*2*u,g=l.height;e.save(),e.beginPath(),e.translate(.5,.5),h!=null&&h.value?(e.lineWidth=a,e.strokeStyle=s,e.rect(f,d,p,g),e.stroke(),e.beginPath(),e.fillStyle=s,e.fillRect(f,d,p,g),e.beginPath(),e.strokeStyle=c,e.lineWidth=a*2*u,e.moveTo(f+2*u,d+g/2),e.lineTo(f+p/2,d+g-3*u),e.lineTo(f+p-2*u,d+3*u),e.stroke()):(e.lineWidth=a,e.rect(f,d,p,g),e.stroke()),e.closePath(),e.restore()}}class OT{constructor(e){this.draw=e,this.options=e.getOptions()}setSelect(e){const{radio:n}=e;n?n.value=!n.value:e.radio={value:!0},this.draw.render({isCompute:!1,isSetCursor:!1})}render(e,n,r,i){const{radio:{gap:o,lineWidth:a,fillStyle:s,strokeStyle:c},scale:u}=this.options,{metrics:l,radio:h}=n,f=Math.round(r+o*u),d=Math.round(i-l.height+a),p=l.width-o*2*u,g=l.height;e.save(),e.beginPath(),e.translate(.5,.5),e.strokeStyle=h!=null&&h.value?s:c,e.lineWidth=a,e.arc(f+p/2,d+g/2,p/2,0,Math.PI*2),e.stroke(),h!=null&&h.value&&(e.beginPath(),e.fillStyle=s,e.arc(f+p/2,d+g/2,p/3,0,Math.PI*2),e.fill()),e.closePath(),e.restore()}}const mR="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2NvbnN0IGE9Ilx1MjAwQiIsdT1gCmA7ZnVuY3Rpb24gZihpKXtsZXQgcz0iIixuPTA7Zm9yKDtuPGkubGVuZ3RoOyl7Y29uc3QgZT1pW25dO2lmKGUudHlwZT09PSJ0YWJsZSIpe2lmKGUudHJMaXN0KWZvcihsZXQgbD0wO2w8ZS50ckxpc3QubGVuZ3RoO2wrKyl7Y29uc3Qgbz1lLnRyTGlzdFtsXTtmb3IobGV0IHQ9MDt0PG8udGRMaXN0Lmxlbmd0aDt0Kyspe2NvbnN0IHI9by50ZExpc3RbdF07cys9ZihyLnZhbHVlKX19fWVsc2UgaWYoZS50eXBlPT09Imh5cGVybGluayIpe2NvbnN0IGw9ZS5oeXBlcmxpbmtJZCxvPVtdO2Zvcig7bjxpLmxlbmd0aDspe2NvbnN0IHQ9aVtuXTtpZihsIT09dC5oeXBlcmxpbmtJZCl7bi0tO2JyZWFrfWRlbGV0ZSB0LnR5cGUsby5wdXNoKHQpLG4rK31zKz1mKG8pfWVsc2UgaWYoZS5jb250cm9sSWQpe2NvbnN0IGw9ZS5jb250cm9sSWQsbz1bXTtmb3IoO248aS5sZW5ndGg7KXtjb25zdCB0PWlbbl07aWYobCE9PXQuY29udHJvbElkKXtuLS07YnJlYWt9dC5jb250cm9sQ29tcG9uZW50PT09InZhbHVlIiYmKGRlbGV0ZSB0LmNvbnRyb2xJZCxvLnB1c2godCkpLG4rK31zKz1mKG8pfWVsc2UoIWUudHlwZXx8ZS50eXBlPT09InRleHQiKSYmKHMrPWUudmFsdWUpO24rK31yZXR1cm4gc31mdW5jdGlvbiBoKGkpe2NvbnN0IHM9W10sbj0vWzAtOV0vLGU9L1tBLVphLXpdLyxsPS9ccy87bGV0IG89ITEsdD0hMSxyPSIiO2Z1bmN0aW9uIHAoKXtyJiYocy5wdXNoKHIpLHI9IiIpfWZvcihjb25zdCBjIG9mIGkpZS50ZXN0KGMpPyhvfHxwKCkscis9YyxvPSEwLHQ9ITEpOm4udGVzdChjKT8odHx8cCgpLHIrPWMsbz0hMSx0PSEwKToocCgpLG89ITEsdD0hMSxsLnRlc3QoYyl8fHMucHVzaChjKSk7cmV0dXJuIHAoKSxzfW9ubWVzc2FnZT1pPT57Y29uc3Qgcz1pLmRhdGEsZT1mKHMpLnJlcGxhY2UobmV3IFJlZ0V4cChgXiR7YX1gKSwiIikucmVwbGFjZShuZXcgUmVnRXhwKGEsImciKSx1KSxsPWgoZSk7cG9zdE1lc3NhZ2UobC5sZW5ndGgpfX0pKCk7Cg==",W1=typeof window!="undefined"&&window.Blob&&new Blob([atob(mR)],{type:"text/javascript;charset=utf-8"});function ET(){const t=W1&&(window.URL||window.webkitURL).createObjectURL(W1);try{return t?new Worker(t,{}):new Worker("data:application/javascript;base64,"+mR,{type:"module"})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}const RR="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2NvbnN0IHU9e2ZpcnN0OjEsc2Vjb25kOjIsdGhpcmQ6Myxmb3VydGg6NCxmaWZ0aDo1LHNpeHRoOjZ9LGc9WyJ0ZXh0IiwiaHlwZXJsaW5rIiwic3Vic2NyaXB0Iiwic3VwZXJzY3JpcHQiLCJjb250cm9sIiwiZGF0ZSJdLGg9Ilx1MjAwQiI7ZnVuY3Rpb24gcChuKXtyZXR1cm4hbi50eXBlfHxnLmluY2x1ZGVzKG4udHlwZSl9ZnVuY3Rpb24gZChuKXtjb25zdCBvPVtdO2xldCBzPTA7Zm9yKDtzPG4ubGVuZ3RoOyl7Y29uc3QgZT1uW3NdO2lmKGUudGl0bGVJZCl7Y29uc3QgbD1lLnRpdGxlSWQsdD1lLmxldmVsLGk9e3R5cGU6InRpdGxlIix2YWx1ZToiIixsZXZlbDp0LHRpdGxlSWQ6bH0sYz1bXTtmb3IoO3M8bi5sZW5ndGg7KXtjb25zdCBhPW5bc107aWYobCE9PWEudGl0bGVJZCl7cy0tO2JyZWFrfWMucHVzaChhKSxzKyt9aS52YWx1ZT1jLmZpbHRlcihhPT5wKGEpKS5tYXAoYT0+YS52YWx1ZSkuam9pbigiIikucmVwbGFjZShuZXcgUmVnRXhwKGgsImciKSwiIiksby5wdXNoKGkpfXMrK31pZighby5sZW5ndGgpcmV0dXJuIG51bGw7Y29uc3Qgdj0oZSxsKT0+e2NvbnN0IHQ9bC5zdWJDYXRhbG9nW2wuc3ViQ2F0YWxvZy5sZW5ndGgtMV0saT11W3Q9PW51bGw/dm9pZCAwOnQubGV2ZWxdLGM9dVtlLmxldmVsXTt0JiZjPmk/dihlLHQpOmwuc3ViQ2F0YWxvZy5wdXNoKHtpZDplLnRpdGxlSWQsbmFtZTplLnZhbHVlLGxldmVsOmUubGV2ZWwsc3ViQ2F0YWxvZzpbXX0pfSxyPVtdO2ZvcihsZXQgZT0wO2U8by5sZW5ndGg7ZSsrKXtjb25zdCBsPW9bZV0sdD1yW3IubGVuZ3RoLTFdLGk9dVt0PT1udWxsP3ZvaWQgMDp0LmxldmVsXSxjPXVbbC5sZXZlbF07dCYmYz5pP3YobCx0KTpyLnB1c2goe2lkOmwudGl0bGVJZCxuYW1lOmwudmFsdWUsbGV2ZWw6bC5sZXZlbCxzdWJDYXRhbG9nOltdfSl9cmV0dXJuIHJ9b25tZXNzYWdlPW49Pntjb25zdCBvPW4uZGF0YSxzPWQobyk7cG9zdE1lc3NhZ2Uocyl9fSkoKTsK",X1=typeof window!="undefined"&&window.Blob&&new Blob([atob(RR)],{type:"text/javascript;charset=utf-8"});function IT(){const t=X1&&(window.URL||window.webkitURL).createObjectURL(X1);try{return t?new Worker(t,{}):new Worker("data:application/javascript;base64,"+RR,{type:"module"})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}const yR="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Z1bmN0aW9uIHUoZSl7Y29uc3QgdD1bXTtmb3IoY29uc3QgcyBvZiBlKXtpZihzLnR5cGU9PT0idGFibGUiKXtjb25zdCBvPXMudHJMaXN0O2ZvcihsZXQgbj0wO248by5sZW5ndGg7bisrKXtjb25zdCBjPW9bbl07Zm9yKGxldCByPTA7cjxjLnRkTGlzdC5sZW5ndGg7cisrKXtjb25zdCBpPWMudGRMaXN0W3JdO3QucHVzaCguLi51KGkudmFsdWUpKX19fWlmKCEhcy5ncm91cElkcylmb3IoY29uc3QgbyBvZiBzLmdyb3VwSWRzKXQuaW5jbHVkZXMobyl8fHQucHVzaChvKX1yZXR1cm4gdH1vbm1lc3NhZ2U9ZT0+e2NvbnN0IHQ9ZS5kYXRhLHM9dSh0KTtwb3N0TWVzc2FnZShzKX19KSgpOwo=",V1=typeof window!="undefined"&&window.Blob&&new Blob([atob(yR)],{type:"text/javascript;charset=utf-8"});function NT(){const t=V1&&(window.URL||window.webkitURL).createObjectURL(V1);try{return t?new Worker(t,{}):new Worker("data:application/javascript;base64,"+yR,{type:"module"})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class FT{constructor(e){this.draw=e,this.wordCountWorker=new ET,this.catalogWorker=new IT,this.groupWorker=new NT}getWordCount(){return new Promise((e,n)=>{this.wordCountWorker.onmessage=i=>{e(i.data)},this.wordCountWorker.onerror=i=>{n(i)};const r=this.draw.getOriginalMainElementList();this.wordCountWorker.postMessage(r)})}getCatalog(){return new Promise((e,n)=>{this.catalogWorker.onmessage=i=>{e(i.data)},this.catalogWorker.onerror=i=>{n(i)};const r=this.draw.getOriginalMainElementList();this.catalogWorker.postMessage(r)})}getGroupIds(){return new Promise((e,n)=>{this.groupWorker.onmessage=i=>{e(i.data)},this.groupWorker.onerror=i=>{n(i)};const r=this.draw.getOriginalMainElementList();this.groupWorker.postMessage(r)})}}class PT{constructor(e){this._keydown=()=>{this.resizerSelection.style.display==="block"&&(this.clearResizer(),document.removeEventListener("keydown",this._keydown))},this.container=e.getContainer(),this.canvas=e.getPage(),this.draw=e,this.options=e.getOptions(),this.curElement=null,this.curElementSrc="",this.previewerDrawOption={},this.curPosition=null;const{resizerSelection:n,resizerHandleList:r,resizerImageContainer:i,resizerImage:o,resizerSize:a}=this._createResizerDom();this.resizerSelection=n,this.resizerHandleList=r,this.resizerImageContainer=i,this.resizerImage=o,this.resizerSize=a,this.width=0,this.height=0,this.mousedownX=0,this.mousedownY=0,this.curHandleIndex=0,this.previewerContainer=null,this.previewerImage=null}_getElementPosition(e,n=null){var u;let r=0,i=0;const o=this.draw.getHeight(),a=this.draw.getPageGap(),c=((u=n==null?void 0:n.pageNo)!=null?u:this.draw.getPageNo())*(o+a);if(e.imgFloatPosition)r=e.imgFloatPosition.x,i=e.imgFloatPosition.y+c;else if(n){const{coordinate:{leftTop:[l,h]},ascent:f}=n;r=l,i=h+c+f}return{x:r,y:i}}_createResizerDom(){const e=document.createElement("div");e.classList.add(`${Ze}-resizer-selection`),e.style.display="none",e.style.borderColor=this.options.resizerColor;const n=[];for(let s=0;s<8;s++){const c=document.createElement("div");c.style.background=this.options.resizerColor,c.classList.add("resizer-handle"),c.classList.add(`handle-${s}`),c.setAttribute("data-index",String(s)),c.onmousedown=this._mousedown.bind(this),e.append(c),n.push(c)}this.container.append(e);const r=document.createElement("div");r.classList.add(`${Ze}-resizer-size-view`);const i=document.createElement("span");r.append(i),e.append(r);const o=document.createElement("div");o.classList.add(`${Ze}-resizer-image`),o.style.display="none";const a=document.createElement("img");return o.append(a),this.container.append(o),{resizerSelection:e,resizerHandleList:n,resizerImageContainer:o,resizerImage:a,resizerSize:i}}_mousedown(e){if(this.canvas=this.draw.getPage(),!this.curElement)return;const{scale:n}=this.options;this.mousedownX=e.x,this.mousedownY=e.y;const r=e.target;this.curHandleIndex=Number(r.dataset.index);const i=window.getComputedStyle(r).cursor;document.body.style.cursor=i,this.canvas.style.cursor=i,this.resizerImage.src=this.curElementSrc,this.resizerImageContainer.style.display="block";const{x:o,y:a}=this._getElementPosition(this.curElement,this.curPosition);this.resizerImageContainer.style.left=`${o}px`,this.resizerImageContainer.style.top=`${a}px`,this.resizerImage.style.width=`${this.curElement.width*n}px`,this.resizerImage.style.height=`${this.curElement.height*n}px`;const s=this._mousemove.bind(this);document.addEventListener("mousemove",s),document.addEventListener("mouseup",()=>{var c;this.curElement&&(this.curElement.width=this.width,this.curElement.height=this.height,this.draw.render({isSetCursor:!0,curIndex:(c=this.curPosition)==null?void 0:c.index})),this.resizerImageContainer.style.display="none",document.removeEventListener("mousemove",s),document.body.style.cursor="",this.canvas.style.cursor="text"},{once:!0}),e.preventDefault()}_mousemove(e){if(!this.curElement)return;const{scale:n}=this.options;let r=0,i=0;switch(this.curHandleIndex){case 0:{const u=this.mousedownX-e.x,l=this.mousedownY-e.y;r=Math.cbrt(u**3+l**3),i=this.curElement.height*r/this.curElement.width}break;case 1:i=this.mousedownY-e.y;break;case 2:{const u=e.x-this.mousedownX,l=this.mousedownY-e.y;r=Math.cbrt(u**3+l**3),i=this.curElement.height*r/this.curElement.width}break;case 4:{const u=e.x-this.mousedownX,l=e.y-this.mousedownY;r=Math.cbrt(u**3+l**3),i=this.curElement.height*r/this.curElement.width}break;case 3:r=e.x-this.mousedownX;break;case 5:i=e.y-this.mousedownY;break;case 6:{const u=this.mousedownX-e.x,l=e.y-this.mousedownY;r=Math.cbrt(u**3+l**3),i=this.curElement.height*r/this.curElement.width}break;case 7:r=this.mousedownX-e.x;break}const o=this.curElement.width+r/n,a=this.curElement.height+i/n;if(o<=0||a<=0)return;this.width=o,this.height=a;const s=o*n,c=a*n;this.resizerImage.style.width=`${s}px`,this.resizerImage.style.height=`${c}px`,this._updateResizerRect(s,c),this._updateResizerSizeView(s,c),e.preventDefault()}_drawPreviewer(){const e=document.createElement("div");e.classList.add(`${Ze}-image-previewer`);const n=document.createElement("i");n.classList.add("image-close"),n.onclick=()=>{this._clearPreviewer()},e.append(n);const r=document.createElement("div");r.classList.add(`${Ze}-image-container`);const i=document.createElement("img");i.src=this.curElementSrc,i.draggable=!1,r.append(i),this.previewerImage=i,e.append(r);let o=0,a=0,s=1,c=0;const u=document.createElement("div");u.classList.add(`${Ze}-image-menu`);const l=document.createElement("i");l.classList.add("zoom-in"),l.onclick=()=>{s+=.1,this._setPreviewerTransform(s,c,o,a)},u.append(l);const h=document.createElement("i");h.onclick=()=>{s-.1<=.1||(s-=.1,this._setPreviewerTransform(s,c,o,a))},h.classList.add("zoom-out"),u.append(h);const f=document.createElement("i");f.classList.add("rotate"),f.onclick=()=>{c+=1,this._setPreviewerTransform(s,c,o,a)},u.append(f);const d=document.createElement("i");d.classList.add("original-size"),d.onclick=()=>{o=0,a=0,s=1,c=0,this._setPreviewerTransform(s,c,o,a)},u.append(d);const p=document.createElement("i");p.classList.add("image-download"),p.onclick=()=>{var v;const{mime:m}=this.previewerDrawOption;Jm(i.src,`${(v=this.curElement)==null?void 0:v.id}.${m||"png"}`)},u.append(p),e.append(u),this.previewerContainer=e,document.body.append(e);let g=0,y=0,R=!1;i.onmousedown=m=>{R=!0,g=m.x,y=m.y,e.style.cursor="move"},e.onmousemove=m=>{!R||(o+=m.x-g,a+=m.y-y,g=m.x,y=m.y,this._setPreviewerTransform(s,c,o,a))},e.onmouseup=()=>{R=!1,e.style.cursor="auto"},e.onwheel=m=>{if(m.preventDefault(),m.deltaY<0)s+=.1;else{if(s-.1<=.1)return;s-=.1}this._setPreviewerTransform(s,c,o,a)}}_setPreviewerTransform(e,n,r,i){!this.previewerImage||(this.previewerImage.style.left=`${r}px`,this.previewerImage.style.top=`${i}px`,this.previewerImage.style.transform=`scale(${e}) rotate(${n*90}deg)`)}_clearPreviewer(){var e;(e=this.previewerContainer)==null||e.remove(),this.previewerContainer=null,document.body.style.overflow="auto"}_updateResizerRect(e,n){const r=this.options.resizerSize;this.resizerSelection.style.width=`${e}px`,this.resizerSelection.style.height=`${n}px`;for(let i=0;i<8;i++){const o=i===0||i===6||i===7?-r:i===1||i===5?e/2:e-r,a=i===0||i===1||i===2?-r:i===3||i===7?n/2-r:n-r;this.resizerHandleList[i].style.left=`${o}px`,this.resizerHandleList[i].style.top=`${a}px`}}_updateResizerSizeView(e,n){this.resizerSize.innerText=`${Math.round(e)} \xD7 ${Math.round(n)}`}render(){this._drawPreviewer(),document.body.style.overflow="hidden"}drawResizer(e,n=null,r={}){this.previewerDrawOption=r,this.curElementSrc=e[r.srcKey||"value"]||"",this.updateResizer(e,n),document.addEventListener("keydown",this._keydown)}updateResizer(e,n=null){const{scale:r}=this.options,i=e.width*r,o=e.height*r;this._updateResizerSizeView(i,o);const{x:a,y:s}=this._getElementPosition(e,n);this.resizerSelection.style.left=`${a}px`,this.resizerSelection.style.top=`${s}px`,this._updateResizerRect(i,o),this.resizerSelection.style.display="block",this.curElement=e,this.curPosition=n,this.width=i,this.height=o}clearResizer(){this.resizerSelection.style.display="none",document.removeEventListener("keydown",this._keydown)}}class LT{constructor(e){this.draw=e,this.range=e.getRange(),this.datePicker=new gR(e,{onSubmit:this._setValue.bind(this)})}_setValue(e){if(!e)return;const n=this.getDateElementRange();if(!n)return;const[r,i]=n,o=this.draw.getElementList(),a=o[r+1];this.draw.spliceElementList(o,r+1,i-r),this.range.setRange(r,r);const s={type:fe.DATE,value:"",dateFormat:a.dateFormat,valueList:[{value:e}]};Sn(o,[s],r),this.draw.insertElementList([s])}getDateElementRange(){let e=-1,n=-1;const{startIndex:r,endIndex:i}=this.range.getRange();if(!~r&&!~i)return null;const o=this.draw.getElementList(),a=o[r];if(a.type!==fe.DATE)return null;let s=r;for(;s>0;){if(o[s].dateId!==a.dateId){e=s;break}s--}let c=r+1;for(;c<o.length;){if(o[c].dateId!==a.dateId){n=c-1;break}c++}return c===o.length&&(n=c-1),!~e||!~n?null:[e,n]}clearDatePicker(){this.datePicker.dispose()}renderDatePicker(e,n){const r=this.draw.getElementList(),i=this.getDateElementRange(),o=i?r.slice(i[0]+1,i[1]+1).map(a=>a.value).join(""):"";this.datePicker.render({value:o,position:n,dateFormat:e.dateFormat})}}var Ds=(t=>(t.IFRAME="iframe",t.VIDEO="video",t))(Ds||{});const vR=class{constructor(t){this.element=t}_defineIframeProperties(t){Object.defineProperties(t,{parent:{get:()=>null},__POWERED_BY_CANVAS_EDITOR__:{get:()=>!0}})}render(t){var r,i;const e=this.element.block,n=document.createElement("iframe");n.setAttribute("data-id",this.element.id),n.sandbox.add(...vR.sandbox),n.style.border="none",n.style.width="100%",n.style.height="100%",(r=e.iframeBlock)!=null&&r.src?n.src=e.iframeBlock.src:(i=e.iframeBlock)!=null&&i.srcdoc&&(n.srcdoc=e.iframeBlock.srcdoc),t.append(n),this._defineIframeProperties(n.contentWindow)}};let bR=vR;bR.sandbox=["allow-scripts","allow-same-origin"];class MT{constructor(e){this.element=e}render(e){var i;const n=this.element.block,r=document.createElement("video");r.style.width="100%",r.style.height="100%",r.style.objectFit="contain",r.src=((i=n.videoBlock)==null?void 0:i.src)||"",r.controls=!0,r.crossOrigin="anonymous",e.append(r)}}class CT{constructor(e,n){this.draw=e.getDraw(),this.blockContainer=e.getBlockContainer(),this.element=n,this.block=null,this.blockItem=this._createBlockItem(),this.blockContainer.append(this.blockItem)}getBlockElement(){return this.element}_createBlockItem(){const e=document.createElement("div");return e.classList.add(`${Ze}-block-item`),e}render(){const e=this.element.block;e.type===Ds.IFRAME?(this.block=new bR(this.element),this.block.render(this.blockItem)):e.type===Ds.VIDEO&&(this.block=new MT(this.element),this.block.render(this.blockItem))}setClientRects(e,n,r){const i=this.draw.getHeight(),o=this.draw.getPageGap(),a=e*(i+o),{metrics:s}=this.element;this.blockItem.style.width=`${s.width}px`,this.blockItem.style.height=`${s.height}px`,this.blockItem.style.left=`${n}px`,this.blockItem.style.top=`${a+r}px`}remove(){this.blockItem.remove()}}class AT{constructor(e){this.draw=e,this.container=e.getContainer(),this.blockMap=new Map,this.blockContainer=this._createBlockContainer(),this.container.append(this.blockContainer)}_createBlockContainer(){const e=document.createElement("div");return e.classList.add(`${Ze}-block-container`),e}getDraw(){return this.draw}getBlockContainer(){return this.blockContainer}render(e,n,r,i){const o=n.id,a=this.blockMap.get(o);if(a)a.setClientRects(e,r,i);else{const s=new CT(this,n);s.render(),s.setClientRects(e,r,i),this.blockMap.set(o,s)}}clear(){if(!this.blockMap.size)return;const e=this.draw.getElementList(),n=[];for(let r=0;r<e.length;r++){const i=e[r];i.type===fe.BLOCK&&n.push(i.id)}this.blockMap.forEach(r=>{const i=r.getBlockElement().id;n.includes(i)||(r.remove(),this.blockMap.delete(i))})}}const UT={global:{cut:"\u526A\u5207",copy:"\u590D\u5236",paste:"\u7C98\u8D34",selectAll:"\u5168\u9009",print:"\u6253\u5370"},control:{delete:"\u5220\u9664\u63A7\u4EF6"},hyperlink:{delete:"\u5220\u9664\u94FE\u63A5",cancel:"\u53D6\u6D88\u94FE\u63A5",edit:"\u7F16\u8F91\u94FE\u63A5"},image:{change:"\u66F4\u6539\u56FE\u7247",saveAs:"\u53E6\u5B58\u4E3A\u56FE\u7247",textWrap:"\u6587\u5B57\u73AF\u7ED5",textWrapType:{embed:"\u5D4C\u5165\u578B",upDown:"\u4E0A\u4E0B\u578B\u73AF\u7ED5",floatTop:"\u6D6E\u4E8E\u6587\u5B57\u4E0A\u65B9",floatBottom:"\u886C\u4E8E\u6587\u5B57\u4E0B\u65B9"}},table:{insertRowCol:"\u63D2\u5165\u884C\u5217",insertTopRow:"\u4E0A\u65B9\u63D2\u51651\u884C",insertBottomRow:"\u4E0B\u65B9\u63D2\u51651\u884C",insertLeftCol:"\u5DE6\u4FA7\u63D2\u51651\u5217",insertRightCol:"\u53F3\u4FA7\u63D2\u51651\u5217",deleteRowCol:"\u5220\u9664\u884C\u5217",deleteRow:"\u5220\u96641\u884C",deleteCol:"\u5220\u96641\u5217",deleteTable:"\u5220\u9664\u6574\u4E2A\u8868\u683C",mergeCell:"\u5408\u5E76\u5355\u5143\u683C",mergeCancelCell:"\u53D6\u6D88\u5408\u5E76",verticalAlign:"\u5782\u76F4\u5BF9\u9F50",verticalAlignTop:"\u9876\u7AEF\u5BF9\u9F50",verticalAlignMiddle:"\u5782\u76F4\u5C45\u4E2D",verticalAlignBottom:"\u5E95\u7AEF\u5BF9\u9F50",border:"\u8868\u683C\u8FB9\u6846",borderAll:"\u6240\u6709\u6846\u7EBF",borderEmpty:"\u65E0\u6846\u7EBF",borderExternal:"\u5916\u4FA7\u6846\u7EBF",borderTd:"\u5355\u5143\u683C\u8FB9\u6846",borderTdTop:"\u4E0A\u8FB9\u6846",borderTdRight:"\u53F3\u8FB9\u6846",borderTdBottom:"\u4E0B\u8FB9\u6846",borderTdLeft:"\u5DE6\u8FB9\u6846",borderTdForward:"\u6B63\u659C\u7EBF",borderTdBack:"\u53CD\u659C\u7EBF"}},WT={now:"\u6B64\u523B",confirm:"\u786E\u5B9A",return:"\u8FD4\u56DE\u65E5\u671F",timeSelect:"\u65F6\u95F4\u9009\u62E9",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},year:"\u5E74",month:"\u6708",hour:"\u65F6",minute:"\u5206",second:"\u79D2"},XT={header:"\u9875\u7709",footer:"\u9875\u811A"},VT={displayName:"\u5206\u9875\u7B26"},YT={headerTip:"\u53CC\u51FB\u7F16\u8F91\u9875\u7709",footerTip:"\u53CC\u51FB\u7F16\u8F91\u9875\u811A"};var Vl={contextmenu:UT,datePicker:WT,frame:XT,pageBreak:VT,zone:YT};const BT={global:{cut:"Cut",copy:"Copy",paste:"Paste",selectAll:"Select all",print:"Print"},control:{delete:"Delete control"},hyperlink:{delete:"Delete hyperlink",cancel:"Cancel hyperlink",edit:"Edit hyperlink"},image:{change:"Change image",saveAs:"Save as image",textWrap:"Text wrap",textWrapType:{embed:"Embed",upDown:"Up down",floatTop:"Float above text",floatBottom:"Float below text"}},table:{insertRowCol:"Insert row col",insertTopRow:"Insert top 1 row",insertBottomRow:"Insert bottom 1 row",insertLeftCol:"Insert left 1 col",insertRightCol:"Insert right 1 col",deleteRowCol:"Delete row col",deleteRow:"Delete 1 row",deleteCol:"Delete 1 col",deleteTable:"Delete table",mergeCell:"Merge cell",mergeCancelCell:"Cancel merge cell",verticalAlign:"Vertical align",verticalAlignTop:"Top",verticalAlignMiddle:"Middle",verticalAlignBottom:"Bottom",border:"Table border",borderAll:"All",borderEmpty:"Empty",borderExternal:"External",borderTd:"Table cell border",borderTdTop:"Top",borderTdRight:"Right",borderTdBottom:"Bottom",borderTdLeft:"Left",borderTdForward:"Forward",borderTdBack:"Back"}},kT={now:"Now",confirm:"Confirm",return:"Return",timeSelect:"Time select",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},year:" ",month:" ",hour:"Hour",minute:"Minute",second:"Second"},ZT={header:"Header",footer:"Footer"},QT={displayName:"Page Break"},KT={headerTip:"Double click to edit header",footerTip:"Double click to edit footer"};var HT={contextmenu:BT,datePicker:kT,frame:ZT,pageBreak:QT,zone:KT};class GT{constructor(){this.langMap=new Map([["zhCN",Vl],["en",HT]]),this.currentLocale="zhCN"}registerLangMap(e,n){const r=this.langMap.get(e);this.langMap.set(e,zm(r||Vl,n))}getLocale(){return this.currentLocale}setLocale(e){this.currentLocale=e}getLang(){return this.langMap.get(this.currentLocale)||Vl}t(e){const n=e.split(".");let r="",i=this.getLang();for(let o=0;o<n.length;o++){const a=n[o],s=Reflect.get(i,a);if(s)r=i=s;else return""}return r}}class JT{constructor(){this.promiseList=[]}add(e){this.promiseList.push(e)}clearAll(){this.promiseList=[]}allSettled(){return Promise.allSettled(this.promiseList)}}class zT{constructor(e,n){this.draw=e,this.zone=n,this.i18n=e.getI18n(),this.container=e.getContainer(),this.pageContainer=e.getPageContainer();const{tipContainer:r,tipContent:i}=this._drawZoneTip();this.tipContainer=r,this.tipContent=i,this.isDisableMouseMove=!0,this.currentMoveZone=it.MAIN;const o=[],{header:a,footer:s}=e.getOptions();a.disabled||o.push(it.HEADER),s.disabled||o.push(it.FOOTER),o.length&&this._watchMouseMoveZoneChange(o)}_watchMouseMoveZoneChange(e){this.pageContainer.addEventListener("mousemove",Wx(n=>{if(!(this.isDisableMouseMove||!this.draw.getIsPagingMode())&&!!n.offsetY)if(n.target instanceof HTMLCanvasElement){const r=this.zone.getZoneByY(n.offsetY);if(!e.includes(r)){this._updateZoneTip(!1);return}this.currentMoveZone=r,this._updateZoneTip(this.zone.getZone()===it.MAIN&&(r===it.HEADER||r===it.FOOTER),n.x,n.y)}else this._updateZoneTip(!1)},250)),this.pageContainer.addEventListener("mouseenter",()=>{this.isDisableMouseMove=!1}),this.pageContainer.addEventListener("mouseleave",()=>{this.isDisableMouseMove=!0,this._updateZoneTip(!1)})}_drawZoneTip(){const e=document.createElement("div");e.classList.add(`${Ze}-zone-tip`);const n=document.createElement("span");return e.append(n),this.container.append(e),{tipContainer:e,tipContent:n}}_updateZoneTip(e,n,r){e?(this.tipContainer.classList.add("show"),this.tipContainer.style.left=`${n}px`,this.tipContainer.style.top=`${r}px`,this.tipContent.innerText=this.i18n.t(`zone.${this.currentMoveZone===it.HEADER?"headerTip":"footerTip"}`)):this.tipContainer.classList.remove("show")}}class $T{constructor(e){this.INDICATOR_PADDING=2,this.INDICATOR_TITLE_TRANSLATE=[20,5],this.draw=e,this.i18n=e.getI18n(),this.options=e.getOptions(),this.container=e.getContainer(),this.currentZone=it.MAIN,this.indicatorContainer=null,this.options.zone.tipDisabled||new zT(e,this)}isHeaderActive(){return this.getZone()===it.HEADER}isMainActive(){return this.getZone()===it.MAIN}isFooterActive(){return this.getZone()===it.FOOTER}getZone(){return this.currentZone}setZone(e){this.currentZone!==e&&(this.currentZone=e,this.draw.getRange().clearRange(),this.draw.render({isSubmitHistory:!1,isSetCursor:!1,isCompute:!1}),this.drawZoneIndicator(),du(()=>{const n=this.draw.getListener();n.zoneChange&&n.zoneChange(e);const r=this.draw.getEventBus();r.isSubscribe("zoneChange")&&r.emit("zoneChange",e)}))}getZoneByY(e){const n=this.draw.getHeader(),r=n.getHeaderTop()+n.getHeight(),i=this.draw.getFooter(),a=this.draw.getHeight()-(i.getFooterBottom()+i.getHeight());return e<r?it.HEADER:e>a?it.FOOTER:it.MAIN}drawZoneIndicator(){if(this._clearZoneIndicator(),!this.isHeaderActive()&&!this.isFooterActive())return;const{scale:e}=this.options,n=this.isHeaderActive(),[r,i]=this.INDICATOR_TITLE_TRANSLATE,o=this.draw.getPageList(),a=this.draw.getMargins(),s=this.draw.getInnerWidth(),c=this.draw.getHeight(),u=this.draw.getPageGap(),l=c+u;this.indicatorContainer=document.createElement("div"),this.indicatorContainer.classList.add(`${Ze}-zone-indicator`);const h=this.draw.getHeader(),f=this.draw.getFooter(),d=n?h.getHeight():f.getHeight(),p=n?h.getHeaderTop():c-f.getFooterBottom()-d;for(let g=0;g<o.length;g++){const y=l*g+p,R=a[3]-this.INDICATOR_PADDING,m=a[3]+s+this.INDICATOR_PADDING,v=n?y-this.INDICATOR_PADDING:y+d+this.INDICATOR_PADDING,x=n?y+d+this.INDICATOR_PADDING:y-this.INDICATOR_PADDING,_=document.createElement("div");_.innerText=this.i18n.t(`frame.${n?"header":"footer"}`),_.style.top=`${x}px`,_.style.transform=`translate(${r*e}px, ${i*e}px) scale(${e})`,this.indicatorContainer.append(_);const E=document.createElement("span");E.classList.add(`${Ze}-zone-indicator-border__top`),E.style.top=`${v}px`,E.style.width=`${s}px`,E.style.marginLeft=`${a[3]}px`,this.indicatorContainer.append(E);const N=document.createElement("span");N.classList.add(`${Ze}-zone-indicator-border__left`),N.style.top=`${y}px`,N.style.height=`${d}px`,N.style.left=`${R}px`,this.indicatorContainer.append(N);const U=document.createElement("span");U.classList.add(`${Ze}-zone-indicator-border__bottom`),U.style.top=`${x}px`,this.indicatorContainer.append(U);const O=document.createElement("span");O.classList.add(`${Ze}-zone-indicator-border__right`),O.style.top=`${y}px`,O.style.height=`${d}px`,O.style.left=`${m}px`,this.indicatorContainer.append(O)}this.container.append(this.indicatorContainer)}_clearZoneIndicator(){var e;(e=this.indicatorContainer)==null||e.remove(),this.indicatorContainer=null}}class jT{constructor(e,n){this.draw=e,this.position=e.getPosition(),this.options=e.getOptions(),this.elementList=n||[],this.rowList=[],this.positionList=[]}getRowList(){return this.rowList}setElementList(e){this.elementList=e}getElementList(){return this.elementList}getPositionList(){return this.positionList}compute(){this.recovery(),this._computeRowList(),this._computePositionList()}recovery(){this.rowList=[],this.positionList=[]}_computeRowList(){const e=this.draw.getInnerWidth();this.rowList=this.draw.computeRowList({innerWidth:e,elementList:this.elementList})}_computePositionList(){const e=this.getFooterBottom(),n=this.draw.getInnerWidth(),i=this.draw.getMargins()[3],o=this.draw.getHeight(),a=this.getHeight(),s=o-e-a;this.position.computePageRowPosition({positionList:this.positionList,rowList:this.rowList,pageNo:0,startRowIndex:0,startIndex:0,startX:i,startY:s,innerWidth:n,zone:it.FOOTER})}getFooterBottom(){const{footer:{bottom:e,disabled:n},scale:r}=this.options;return n?0:Math.floor(e*r)}getMaxHeight(){const{footer:{maxHeightRadio:e}}=this.options,n=this.draw.getHeight();return Math.floor(n*Km[e])}getHeight(){const e=this.getMaxHeight(),n=this.getRowHeight();return n>e?e:n}getRowHeight(){return this.rowList.reduce((e,n)=>e+n.height,0)}getExtraHeight(){const e=this.draw.getMargins(),n=this.getHeight(),i=this.getFooterBottom()+n-e[2];return i<=0?0:i}render(e,n){e.globalAlpha=1;const r=this.draw.getInnerWidth(),i=this.getMaxHeight(),o=[];let a=0;for(let s=0;s<this.rowList.length;s++){const c=this.rowList[s];if(a+c.height>i)break;o.push(c),a+=c.height}this.draw.drawRow(e,{elementList:this.elementList,positionList:this.positionList,rowList:o,pageNo:n,startIndex:0,innerWidth:r,zone:it.FOOTER})}}class qT{constructor(e){this.UN_COUNT_STYLE_WIDTH=20,this.MEASURE_BASE_TEXT="0",this.LIST_GAP=10,this.draw=e,this.range=e.getRange(),this.options=e.getOptions()}setList(e,n){if(this.draw.isReadonly())return;const{startIndex:i,endIndex:o}=this.range.getRange();if(!~i&&!~o)return;const a=this.range.getRangeParagraphElementList();if(!a||!a.length)return;if(a.find(h=>h.listType===e&&h.listStyle===n)||!e){this.unsetList();return}const c=bt();a.forEach(h=>{h.listId=c,h.listType=e,h.listStyle=n});const u=i===o,l=u?o:i;this.draw.render({curIndex:l,isSetCursor:u})}unsetList(){var u;if(this.draw.isReadonly())return;const{startIndex:n,endIndex:r}=this.range.getRange();if(!~n&&!~r)return;const i=(u=this.range.getRangeParagraphElementList())==null?void 0:u.filter(l=>l.listId);if(!i||!i.length)return;const o=this.draw.getElementList(),a=o[r];if(a.listId){let l=r+1;for(;l<o.length;){const h=o[l];if(h.value===We&&!h.listWrap)break;if(h.listId!==a.listId){this.draw.spliceElementList(o,l,0,{value:We});break}l++}}i.forEach(l=>{delete l.listId,delete l.listType,delete l.listStyle,delete l.listWrap});const s=n===r,c=s?r:n;this.draw.render({curIndex:c,isSetCursor:s})}computeListStyle(e,n){const r=new Map;let i=0,o=n[i].listId,a=[];const s=n.length;for(;i<s;){const c=n[i];if(o&&o===c.listId)a.push(c);else if(c.listId&&c.listId!==o){if(a.length){const u=this.getListStyleWidth(e,a);r.set(o,u)}o=c.listId,a=o?[c]:[]}i++}if(a.length){const c=this.getListStyleWidth(e,a);r.set(o,c)}return r}getListStyleWidth(e,n){const{scale:r,checkbox:i}=this.options,o=n[0];if(o.listStyle&&o.listStyle!==ur.DECIMAL)return o.listStyle===ur.CHECKBOX?(i.width+this.LIST_GAP)*r:this.UN_COUNT_STYLE_WIDTH*r;const a=n.reduce((u,l)=>(l.value===We&&(u+=1),u),0);if(!a)return 0;const s=`${this.MEASURE_BASE_TEXT.repeat(String(a).length)}${Ke.PERIOD}`,c=e.measureText(s);return Math.ceil((c.width+this.LIST_GAP)*r)}drawListStyle(e,n,r){var m;const{elementList:i,offsetX:o,listIndex:a,ascent:s}=n,c=i[0];if(c.value!==We||c.listWrap)return;let u=0;const{defaultTabWidth:l,scale:h,defaultFont:f,defaultSize:d}=this.options;for(let v=1;v<i.length;v++){const x=i[v];if((x==null?void 0:x.type)!==fe.TAB)break;u+=l*h}const{coordinate:{leftTop:[p,g]}}=r,y=p-o+u,R=g+s;if(c.listStyle===ur.CHECKBOX){const{width:v,height:x,gap:_}=this.options.checkbox,E={...c,checkbox:{value:!!((m=c.checkbox)!=null&&m.value)},metrics:{...c.metrics,width:(v+_*2)*h,height:x*h}};this.draw.getCheckboxParticle().render(e,E,y-_*h,R)}else{let v="";if(c.listType===ti.UL?v=dd[c.listStyle]||dd[zo.DISC]:v=`${a+1}${Ke.PERIOD}`,!v)return;e.save(),e.font=`${d*h}px ${f}`,e.fillText(v,y,R),e.restore()}}}const xR=class{constructor(t){this.options=t.getOptions()}render(t,e,n,r){const{scale:i,lineBreak:{color:o,lineWidth:a}}=this.options;t.save(),t.beginPath();const s=r-xR.HEIGHT*i/2,c=n+e.metrics.width;t.translate(c,s),t.scale(i,i),t.strokeStyle=o,t.lineWidth=a,t.lineCap="round",t.lineJoin="round",t.beginPath(),t.moveTo(8,0),t.lineTo(12,0),t.lineTo(12,6),t.lineTo(3,6),t.moveTo(3,6),t.lineTo(6,3),t.moveTo(3,6),t.lineTo(6,9),t.stroke(),t.closePath(),t.restore()}};let da=xR;da.WIDTH=12;da.HEIGHT=9;da.GAP=3;class eS{constructor(e){this.draw=e,this.position=e.getPosition(),this.options=e.getOptions(),this.elementList=[],this.rowList=[],this.positionList=[]}_recovery(){this.elementList=[],this.rowList=[],this.positionList=[]}_compute(){this._computeRowList(),this._computePositionList()}_computeRowList(){const e=this.draw.getInnerWidth();this.rowList=this.draw.computeRowList({innerWidth:e,elementList:this.elementList})}_computePositionList(){const{lineBreak:e,scale:n}=this.options,r=this.draw.getHeader().getExtraHeight(),i=this.draw.getInnerWidth(),o=this.draw.getMargins();let a=o[3];e.disabled||(a+=(da.WIDTH+da.GAP)*n);const s=o[0]+r;this.position.computePageRowPosition({positionList:this.positionList,rowList:this.rowList,pageNo:0,startRowIndex:0,startIndex:0,startX:a,startY:s,innerWidth:i})}render(e){const{placeholder:{data:n,font:r,size:i,color:o,opacity:a}}=this.options;if(!n)return;this._recovery(),this.elementList=[{value:n,font:r,size:i,color:o}],dr(this.elementList,{editorOptions:this.options}),this._compute();const s=this.draw.getInnerWidth();e.save(),e.globalAlpha=a,this.draw.drawRow(e,{elementList:this.elementList,positionList:this.positionList,rowList:this.rowList,pageNo:0,startIndex:0,innerWidth:s,isDrawLineBreak:!1}),e.restore()}}class tS{constructor(e){this.draw=e,this.options=e.getOptions(),this.range=e.getRange(),this.fillRectMap=new Map}setGroup(){if(this.draw.isReadonly()||this.draw.getZone().getZone()!==it.MAIN)return null;const e=this.range.getSelection();if(!e)return null;const n=bt();return e.forEach(r=>{Array.isArray(r.groupIds)||(r.groupIds=[]),r.groupIds.push(n)}),this.draw.render({isSetCursor:!1,isCompute:!1}),n}getElementListByGroupId(e,n){var i,o;const r=[];for(let a=0;a<e.length;a++){const s=e[a];if(s.type===fe.TABLE){const c=s.trList;for(let u=0;u<c.length;u++){const l=c[u];for(let h=0;h<l.tdList.length;h++){const f=l.tdList[h],d=this.getElementListByGroupId(f.value,n);if(d.length)return r.push(...d),r}}}if((i=s==null?void 0:s.groupIds)!=null&&i.includes(n)){r.push(s);const c=e[a+1];if(!((o=c==null?void 0:c.groupIds)!=null&&o.includes(n)))break}}return r}deleteGroup(e){if(this.draw.isReadonly())return;const n=this.draw.getOriginalMainElementList(),r=this.getElementListByGroupId(n,e);if(!!r.length){for(let i=0;i<r.length;i++){const o=r[i],a=o.groupIds,s=a.findIndex(c=>c===e);a.splice(s,1),a.length||delete o.groupIds}this.draw.render({isSetCursor:!1,isCompute:!1})}}getContextByGroupId(e,n){var r,i;for(let o=0;o<e.length;o++){const a=e[o];if(a.type===fe.TABLE){const c=a.trList;for(let u=0;u<c.length;u++){const l=c[u];for(let h=0;h<l.tdList.length;h++){const f=l.tdList[h],d=this.getContextByGroupId(f.value,n);if(d)return{...d,isTable:!0,index:o,trIndex:u,tdIndex:h,tdId:f.id,trId:l.id,tableId:a.tableId}}}}const s=e[o+1];if(((r=a.groupIds)==null?void 0:r.includes(n))&&!((i=s==null?void 0:s.groupIds)!=null&&i.includes(n)))return{isTable:!1,startIndex:o,endIndex:o}}return null}clearFillInfo(){this.fillRectMap.clear()}recordFillInfo(e,n,r,i,o){const a=e.groupIds;if(!!a)for(const s of a){const c=this.fillRectMap.get(s);c?c.width+=i:this.fillRectMap.set(s,{x:n,y:r,width:i,height:o})}}render(e){var u;if(!this.fillRectMap.size)return;const n=this.range.getRange(),i=(u=this.draw.getElementList()[n.endIndex])==null?void 0:u.groupIds,{group:{backgroundColor:o,opacity:a,activeOpacity:s,activeBackgroundColor:c}}=this.options;e.save(),this.fillRectMap.forEach((l,h)=>{const{x:f,y:d,width:p,height:g}=l;i!=null&&i.includes(h)?(e.globalAlpha=s,e.fillStyle=c):(e.globalAlpha=a,e.fillStyle=o),e.fillRect(f,d,p,g)}),e.restore(),this.clearFillInfo()}}class nS{constructor(e,n,r,i,o,a){this.container=this._wrapContainer(e),this.pageList=[],this.ctxList=[],this.pageNo=0,this.pagePixelRatio=null,this.mode=n.mode,this.options=n,this.elementList=r.main,this.listener=i,this.eventBus=o,this.override=a,this._formatContainer(),this.pageContainer=this._createPageContainer(),this._createPage(0),this.i18n=new GT,this.historyManager=new eT(this),this.position=new tT(this),this.zone=new $T(this),this.range=new nT(this),this.margin=new oT(this),this.background=new rT(this),this.search=new aT(this),this.group=new tS(this),this.underline=new cT(this),this.strikeout=new sT(this),this.highlight=new iT(this),this.previewer=new PT(this),this.imageParticle=new qm(this),this.laTexParticle=new nR(this),this.textParticle=new uT(this),this.tableParticle=new pT(this),this.tableTool=new gT(this),this.pageNumber=new hT(this),this.waterMark=new wT(this),this.placeholder=new eS(this),this.header=new RT(this,r.header),this.footer=new jT(this,r.footer),this.hyperlinkParticle=new mT(this),this.dateParticle=new LT(this),this.separatorParticle=new bT(this),this.pageBreakParticle=new xT(this),this.superscriptParticle=new yT,this.subscriptParticle=new vT,this.checkboxParticle=new _T(this),this.radioParticle=new OT(this),this.blockParticle=new AT(this),this.listParticle=new qT(this),this.lineBreakParticle=new da(this),this.control=new DT(this),this.scrollObserver=new dT(this),this.selectionObserver=new fT(this),this.imageObserver=new JT,this.canvasEvent=new jw(this),this.cursor=new Ow(this,this.canvasEvent),this.canvasEvent.register(),this.globalEvent=new qw(this,this.canvasEvent),this.globalEvent.register(),this.workerManager=new FT(this);const{letterClass:s}=n;this.LETTER_REG=new RegExp(`[${s.join("")}]`),this.WORD_LIKE_REG=new RegExp(`${s.map(c=>`[^${c}][${c}]`).join("|")}`),this.rowList=[],this.pageRowList=[],this.painterStyle=null,this.painterOptions=null,this.visiblePageNoList=[],this.intersectionPageNo=0,this.lazyRenderIntersectionObserver=null,this.printModeData=null,this.render({isInit:!0,isSetCursor:!1,isFirstRender:!0})}getLetterReg(){return this.LETTER_REG}getMode(){return this.mode}setMode(e){if(this.mode!==e){if(e===kt.PRINT){this.printModeData={header:this.header.getElementList(),main:this.elementList,footer:this.footer.getElementList()};const n=Pt(this.printModeData);["header","main","footer"].forEach(i=>{n[i]=this.control.filterAssistElement(n[i])}),this.setEditorData(n)}this.mode===kt.PRINT&&this.printModeData&&(this.setEditorData(this.printModeData),this.printModeData=null),this.range.clearRange(),this.mode=e,this.render({isSetCursor:!1,isSubmitHistory:!1})}}isReadonly(){switch(this.mode){case kt.READONLY:case kt.PRINT:return!0;case kt.FORM:return!this.control.getIsRangeWithinControl();default:return!1}}getOriginalWidth(){const{paperDirection:e,width:n,height:r}=this.options;return e===fo.VERTICAL?n:r}getOriginalHeight(){const{paperDirection:e,width:n,height:r}=this.options;return e===fo.VERTICAL?r:n}getWidth(){return Math.floor(this.getOriginalWidth()*this.options.scale)}getHeight(){return Math.floor(this.getOriginalHeight()*this.options.scale)}getMainHeight(){return this.getHeight()-this.getMainOuterHeight()}getMainOuterHeight(){const e=this.getMargins(),n=this.header.getExtraHeight(),r=this.footer.getExtraHeight();return e[0]+e[2]+n+r}getCanvasWidth(e=-1){return this.getPage(e).width}getCanvasHeight(e=-1){return this.getPage(e).height}getInnerWidth(){const e=this.getWidth(),n=this.getMargins();return e-n[1]-n[3]}getOriginalInnerWidth(){const e=this.getOriginalWidth(),n=this.getOriginalMargins();return e-n[1]-n[3]}getMargins(){return this.getOriginalMargins().map(e=>e*this.options.scale)}getOriginalMargins(){const{margins:e,paperDirection:n}=this.options;return n===fo.VERTICAL?e:[e[1],e[2],e[3],e[0]]}getPageGap(){return this.options.pageGap*this.options.scale}getOriginalPageGap(){return this.options.pageGap}getPageNumberBottom(){const{pageNumber:{bottom:e},scale:n}=this.options;return e*n}getMarginIndicatorSize(){return this.options.marginIndicatorSize*this.options.scale}getDefaultBasicRowMarginHeight(){return this.options.defaultBasicRowMarginHeight*this.options.scale}getTdPadding(){const{table:{tdPadding:e},scale:n}=this.options;return e.map(r=>r*n)}getContainer(){return this.container}getPageContainer(){return this.pageContainer}getVisiblePageNoList(){return this.visiblePageNoList}setVisiblePageNoList(e){this.visiblePageNoList=e,this.listener.visiblePageNoListChange&&this.listener.visiblePageNoListChange(this.visiblePageNoList),this.eventBus.isSubscribe("visiblePageNoListChange")&&this.eventBus.emit("visiblePageNoListChange",this.visiblePageNoList)}getIntersectionPageNo(){return this.intersectionPageNo}setIntersectionPageNo(e){this.intersectionPageNo=e,this.listener.intersectionPageNoChange&&this.listener.intersectionPageNoChange(this.intersectionPageNo),this.eventBus.isSubscribe("intersectionPageNoChange")&&this.eventBus.emit("intersectionPageNoChange",this.intersectionPageNo)}getPageNo(){return this.pageNo}setPageNo(e){this.pageNo=e}getPage(e=-1){return this.pageList[~e?e:this.pageNo]}getPageList(){return this.pageList}getPageCount(){return this.pageList.length}getTableRowList(e){const n=this.position.getPositionContext(),{index:r,trIndex:i,tdIndex:o}=n;return e[r].trList[i].tdList[o].rowList}getOriginalRowList(){const e=this.getZone();return e.isHeaderActive()?this.header.getRowList():e.isFooterActive()?this.footer.getRowList():this.rowList}getRowList(){return this.position.getPositionContext().isTable?this.getTableRowList(this.getOriginalElementList()):this.getOriginalRowList()}getPageRowList(){return this.pageRowList}getCtx(){return this.ctxList[this.pageNo]}getOptions(){return this.options}getSearch(){return this.search}getGroup(){return this.group}getHistoryManager(){return this.historyManager}getPosition(){return this.position}getZone(){return this.zone}getRange(){return this.range}getLineBreakParticle(){return this.lineBreakParticle}getHeaderElementList(){return this.header.getElementList()}getTableElementList(e){var a;const n=this.position.getPositionContext(),{index:r,trIndex:i,tdIndex:o}=n;return((a=e[r].trList)==null?void 0:a[i].tdList[o].value)||[]}getElementList(){const e=this.position.getPositionContext(),n=this.getOriginalElementList();return e.isTable?this.getTableElementList(n):n}getMainElementList(){return this.position.getPositionContext().isTable?this.getTableElementList(this.elementList):this.elementList}getOriginalElementList(){const e=this.getZone();return e.isHeaderActive()?this.getHeaderElementList():e.isFooterActive()?this.getFooterElementList():this.elementList}getOriginalMainElementList(){return this.elementList}getFooterElementList(){return this.footer.getElementList()}insertElementList(e){if(!e.length||!this.range.getIsCanInput())return;const{startIndex:n,endIndex:r}=this.range.getRange();if(!~n&&!~r)return;dr(e,{isHandleFirstElement:!1,editorOptions:this.options});let i=-1,o=this.control.getActiveControl();if(!o&&this.control.getIsRangeWithinControl()&&(this.control.initControl(),o=this.control.getActiveControl()),o&&this.control.getIsRangeWithinControl())i=o.setValue(e,void 0,{isIgnoreDisabledRule:!0});else{const a=this.getElementList(),s=n===r,c=n+1;s||this.spliceElementList(a,c,r-n),this.spliceElementList(a,c,0,...e),i=n+e.length;const u=a[c-1];e[0].listId&&u&&!u.listId&&(u==null?void 0:u.value)===We&&(!u.type||u.type===fe.TEXT)&&(a.splice(n,1),i-=1)}~i&&(this.range.setRange(i,i),this.render({curIndex:i}))}appendElementList(e,n={}){if(!e.length)return;dr(e,{isHandleFirstElement:!1,editorOptions:this.options});let r;const{isPrepend:i}=n;i?(this.elementList.splice(1,0,...e),r=e.length):(this.elementList.push(...e),r=this.elementList.length-1),this.range.setRange(r,r),this.render({curIndex:r})}spliceElementList(e,n,r,...i){var o,a,s;if(r>0){const c=n+r,u=e[c],l=u==null?void 0:u.listId;if(l&&((o=e[n-1])==null?void 0:o.listId)!==l){let h=c;for(;h<e.length;){const f=e[h];if(f.listId!==l||f.value===We)break;delete f.listId,delete f.listType,delete f.listStyle,h++}}if(this.control.getActiveControl())e.splice(n,r);else{let h=c-1;for(;h>=n;)((s=(a=e[h])==null?void 0:a.control)==null?void 0:s.deletable)!==!1&&e.splice(h,1),h--}}for(let c=0;c<i.length;c++)e.splice(n+c,0,i[c])}getCanvasEvent(){return this.canvasEvent}getGlobalEvent(){return this.globalEvent}getListener(){return this.listener}getEventBus(){return this.eventBus}getOverride(){return this.override}getCursor(){return this.cursor}getPreviewer(){return this.previewer}getImageParticle(){return this.imageParticle}getTableTool(){return this.tableTool}getTableParticle(){return this.tableParticle}getHeader(){return this.header}getFooter(){return this.footer}getHyperlinkParticle(){return this.hyperlinkParticle}getDateParticle(){return this.dateParticle}getListParticle(){return this.listParticle}getCheckboxParticle(){return this.checkboxParticle}getRadioParticle(){return this.radioParticle}getControl(){return this.control}getWorkerManager(){return this.workerManager}getImageObserver(){return this.imageObserver}getI18n(){return this.i18n}getRowCount(){return this.getRowList().length}async getDataURL(e={}){const{pixelRatio:n,mode:r}=e;n&&this.setPagePixelRatio(n);const i=this.mode,o=!!r&&i!==r;o&&this.setMode(r),this.render({isLazy:!1,isCompute:!1,isSetCursor:!1,isSubmitHistory:!1}),await this.imageObserver.allSettled();const a=this.pageList.map(s=>s.toDataURL());return n&&this.setPagePixelRatio(null),o&&this.setMode(i),a}getPainterStyle(){return this.painterStyle&&Object.keys(this.painterStyle).length?this.painterStyle:null}getPainterOptions(){return this.painterOptions}setPainterStyle(e,n){this.painterStyle=e,this.painterOptions=n||null,this.getPainterStyle()&&this.pageList.forEach(r=>r.style.cursor="copy")}setDefaultRange(){!this.elementList.length||setTimeout(()=>{const e=this.elementList.length-1;this.range.setRange(e,e),this.range.setRangeStyle()})}getIsPagingMode(){return this.options.pageMode===Ci.PAGING}setPageMode(e){if(!e||this.options.pageMode===e)return;if(this.options.pageMode=e,e===Ci.PAGING){const{height:i}=this.options,o=this.getPagePixelRatio(),a=this.pageList[0];a.style.height=`${i}px`,a.height=i*o,this._initPageContext(this.ctxList[0])}else this._disconnectLazyRender(),this.header.recovery(),this.footer.recovery(),this.zone.setZone(it.MAIN);const{startIndex:n}=this.range.getRange(),r=this.range.getIsCollapsed();this.render({isSetCursor:!0,curIndex:n,isSubmitHistory:!1}),r||this.cursor.drawCursor({isShow:!1}),setTimeout(()=>{this.listener.pageModeChange&&this.listener.pageModeChange(e),this.eventBus.isSubscribe("pageModeChange")&&this.eventBus.emit("pageModeChange",e)})}setPageScale(e){const n=this.getPagePixelRatio();this.options.scale=e;const r=this.getWidth(),i=this.getHeight();this.container.style.width=`${r}px`,this.pageList.forEach((a,s)=>{a.width=r*n,a.height=i*n,a.style.width=`${r}px`,a.style.height=`${i}px`,a.style.marginBottom=`${this.getPageGap()}px`,this._initPageContext(this.ctxList[s])});const o=this.position.getCursorPosition();this.render({isSubmitHistory:!1,isSetCursor:!!o,curIndex:o==null?void 0:o.index}),this.listener.pageScaleChange&&this.listener.pageScaleChange(e),this.eventBus.isSubscribe("pageScaleChange")&&this.eventBus.emit("pageScaleChange",e)}getPagePixelRatio(){return this.pagePixelRatio||window.devicePixelRatio}setPagePixelRatio(e){!this.pagePixelRatio&&e===window.devicePixelRatio||e===this.pagePixelRatio||(this.pagePixelRatio=e,this.setPageDevicePixel())}setPageDevicePixel(){const e=this.getPagePixelRatio(),n=this.getWidth(),r=this.getHeight();this.pageList.forEach((i,o)=>{i.width=n*e,i.height=r*e,this._initPageContext(this.ctxList[o])}),this.render({isSubmitHistory:!1,isSetCursor:!1})}setPaperSize(e,n){this.options.width=e,this.options.height=n;const r=this.getPagePixelRatio(),i=this.getWidth(),o=this.getHeight();this.container.style.width=`${i}px`,this.pageList.forEach((a,s)=>{a.width=i*r,a.height=o*r,a.style.width=`${i}px`,a.style.height=`${o}px`,this._initPageContext(this.ctxList[s])}),this.render({isSubmitHistory:!1,isSetCursor:!1})}setPaperDirection(e){const n=this.getPagePixelRatio();this.options.paperDirection=e;const r=this.getWidth(),i=this.getHeight();this.container.style.width=`${r}px`,this.pageList.forEach((o,a)=>{o.width=r*n,o.height=i*n,o.style.width=`${r}px`,o.style.height=`${i}px`,this._initPageContext(this.ctxList[a])}),this.render({isSubmitHistory:!1,isSetCursor:!1})}setPaperMargin(e){this.options.margins=e,this.render({isSubmitHistory:!1,isSetCursor:!1})}getValue(e={}){const{pageNo:n}=e;let r=this.elementList;Number.isInteger(n)&&n>=0&&n<this.pageRowList.length&&(r=this.pageRowList[n].flatMap(o=>o.elementList));const i={header:Xt(this.getHeaderElementList()),main:Xt(r),footer:Xt(this.getFooterElementList())};return{version:Ix,data:i,options:Pt(this.options)}}setValue(e){const{header:n,main:r,footer:i}=Pt(e);if(!n&&!r&&!i)return;[n,r,i].forEach(a=>{!a||dr(a,{editorOptions:this.options})}),this.setEditorData({header:n,main:r,footer:i}),this.historyManager.recovery(),this.render({isSetCursor:!1,isFirstRender:!0})}setEditorData(e){const{header:n,main:r,footer:i}=e;n&&this.header.setElementList(n),r&&(this.elementList=r),i&&this.footer.setElementList(i)}_wrapContainer(e){const n=document.createElement("div");return e.append(n),n}_formatContainer(){this.container.style.position="relative",this.container.style.width=`${this.getWidth()}px`,this.container.setAttribute(ei,ni.MAIN)}_createPageContainer(){const e=document.createElement("div");return e.classList.add(`${Ze}-page-container`),this.container.append(e),e}_createPage(e){const n=this.getWidth(),r=this.getHeight(),i=document.createElement("canvas");i.style.width=`${n}px`,i.style.height=`${r}px`,i.style.display="block",i.style.backgroundColor="#ffffff",i.style.marginBottom=`${this.getPageGap()}px`,i.setAttribute("data-index",String(e)),this.pageContainer.append(i);const o=this.getPagePixelRatio();i.width=n*o,i.height=r*o,i.style.cursor="text";const a=i.getContext("2d");this._initPageContext(a),this.pageList.push(i),this.ctxList.push(a)}_initPageContext(e){const n=this.getPagePixelRatio();e.scale(n,n),e.letterSpacing="0px",e.wordSpacing="0px",e.direction="ltr"}getElementFont(e,n=1){const{defaultSize:r,defaultFont:i}=this.options,o=e.font||i,a=e.actualSize||e.size||r;return`${e.italic?"italic ":""}${e.bold?"bold ":""}${a*n}px ${o}`}getElementSize(e){return e.actualSize||e.size||this.options.defaultSize}getElementRowMargin(e){const{defaultBasicRowMarginHeight:n,defaultRowMargin:r,scale:i}=this.options;return n*(e.rowMargin||r)*i}computeRowList(e){var m,v,x,_,E,N,U,O,Q,ne;const{innerWidth:n,elementList:r,isPagingMode:i=!1}=e,{defaultSize:o,defaultRowMargin:a,scale:s,table:{tdPadding:c},defaultTabWidth:u}=this.options,l=this.getDefaultBasicRowMarginHeight(),f=document.createElement("canvas").getContext("2d"),d=this.listParticle.computeListStyle(f,r),p=[];r.length&&p.push({width:0,height:0,ascent:0,elementList:[],startIndex:0,rowFlex:((m=r==null?void 0:r[0])==null?void 0:m.rowFlex)||((v=r==null?void 0:r[1])==null?void 0:v.rowFlex)});let g,y=0,R=0;for(let T=0;T<r.length;T++){const I=p[p.length-1],b=r[T],M=l*(b.rowMargin||a),C={width:0,height:0,boundingBoxAscent:0,boundingBoxDescent:0},F=I.offsetX||b.listId&&d.get(b.listId)||0,A=n-F;if(b.type===fe.IMAGE||b.type===fe.LATEX){if(b.imgDisplay===ht.FLOAT_TOP||b.imgDisplay===ht.FLOAT_BOTTOM)C.width=0,C.height=0,C.boundingBoxDescent=0;else{const Y=b.width*s,X=b.height*s;if(Y>A){const k=X*A/Y;b.width=A/s,b.height=k/s,C.width=A,C.height=k,C.boundingBoxDescent=k}else C.width=Y,C.height=X,C.boundingBoxDescent=X}C.boundingBoxAscent=0}else if(b.type===fe.TABLE){const Y=c[1]+c[3],X=c[0]+c[2];if(b.pagingId){let oe=T+1,W=0;for(;oe<r.length;){const w=r[oe];if(w.pagingId===b.pagingId){const S=w.trList.filter(P=>!P.pagingRepeat);b.trList.push(...S),b.height+=w.height,oe++,W++}else break}W&&r.splice(T+1,W)}b.pagingIndex=(x=b.pagingIndex)!=null?x:0,this.tableParticle.computeRowColInfo(b);const k=b.trList;for(let oe=0;oe<k.length;oe++){const W=k[oe];for(let w=0;w<W.tdList.length;w++){const S=W.tdList[w],P=this.computeRowList({innerWidth:(S.width-Y)*s,elementList:S.value,isPagingMode:i}),J=P.reduce((ce,he)=>ce+he.height,0);S.rowList=P;const ie=J/s+X;if(S.height<ie){const ce=ie-S.height,he=k[oe+S.rowspan-1];he.height+=ce,he.tdList.forEach(ve=>{ve.height+=ce})}let K=0,j=0,re=0;for(;re<S.rowspan;){const ce=k[re+oe]||k[oe];K+=ce.minHeight,j+=ce.height,re++}S.realMinHeight=K,S.realHeight=j,S.mainHeight=ie}}const G=this.tableParticle.getTrListGroupByCol(k);for(let oe=0;oe<G.length;oe++){const W=G[oe];let w=-1;for(let S=0;S<W.tdList.length;S++){const P=W.tdList[S],J=P.realHeight,ie=P.mainHeight,K=P.realMinHeight,j=ie<K?J-K:J-ie;(!~w||j<w)&&(w=j)}if(w>0){const S=k[oe];S.height-=w,S.tdList.forEach(P=>{P.height-=w})}}this.tableParticle.computeRowColInfo(b);const H=this.tableParticle.getTableHeight(b),te=this.tableParticle.getTableWidth(b);b.width=te,b.height=H;const pe=te*s,D=H*s;if(C.width=pe,C.height=D,C.boundingBoxDescent=D,C.boundingBoxAscent=-M,i){const oe=this.getHeight(),W=this.getMainOuterHeight();let w=W;for(let P=0;P<p.length;P++){const J=p[P];J.height+w>oe||((_=p[P-1])==null?void 0:_.isPageBreak)?w=W+J.height:w+=J.height}const S=M*2*s;if((w+b.trList[0].height+S>oe||b.pagingIndex!==0&&b.trList[0].pagingRepeat)&&(w=W),w+S+D>oe){const P=b.trList;let J=0,ie=0,K=0;if(P.length>1)for(let j=0;j<P.length;j++){const re=P[j],ce=re.height*s;if(w+S+K+ce>oe){const he=re.tdList.reduce((ve,_e)=>ve+_e.colspan,0);((E=b.colgroup)==null?void 0:E.length)!==he&&(ie=0);break}else J=j+1,ie=P.length-J,K+=ce}if(ie){const j=P.splice(J,ie),re=j.reduce((_e,Fe)=>_e+Fe.height,0),ce=b.pagingId||bt();b.pagingId=ce,b.height-=re,C.height-=re,C.boundingBoxDescent-=re;const he=Pt(b);he.pagingId=ce,he.pagingIndex=b.pagingIndex+1;const ve=P.filter(_e=>_e.pagingRepeat);if(ve.length){const _e=Pt(ve);_e.forEach(Fe=>Fe.id=bt()),j.unshift(..._e)}he.trList=j,he.id=bt(),this.spliceElementList(r,T+1,0,he)}}if(b.pagingId){const P=this.position.getPositionContext();if(P.isTable){let J=-1,ie=-1,K=T;for(;K<r.length;){const j=r[K];if(j.pagingId!==b.pagingId)break;const re=j.trList.findIndex(ce=>ce.id===P.trId);if(~re){J=K,ie=re;break}K++}~J&&(P.index=J,P.trIndex=ie,this.position.setPositionContext(P))}}}}else if(b.type===fe.SEPARATOR){const{separator:{lineWidth:Y}}=this.options;b.width=A/s,C.width=A,C.height=Y*s,C.boundingBoxAscent=-M,C.boundingBoxDescent=-M+C.height}else if(b.type===fe.PAGE_BREAK)b.width=A/s,C.width=A,C.height=o;else if(b.type===fe.RADIO||b.controlComponent===Se.RADIO){const{width:Y,height:X,gap:k}=this.options.radio,G=Y+k*2;b.width=G,C.width=G*s,C.height=X*s}else if(b.type===fe.CHECKBOX||b.controlComponent===Se.CHECKBOX){const{width:Y,height:X,gap:k}=this.options.checkbox,G=Y+k*2;b.width=G,C.width=G*s,C.height=X*s}else if(b.type===fe.TAB)C.width=u*s,C.height=o*s,C.boundingBoxDescent=0,C.boundingBoxAscent=C.height;else if(b.type===fe.BLOCK){if(!b.width)C.width=A;else{const Y=b.width*s;C.width=Math.min(Y,A)}C.height=b.height*s,C.boundingBoxDescent=C.height,C.boundingBoxAscent=0}else{const Y=b.size||o;(b.type===fe.SUPERSCRIPT||b.type===fe.SUBSCRIPT)&&(b.actualSize=Math.ceil(Y*.6)),C.height=(b.actualSize||Y)*s,f.font=this.getElementFont(b);const X=this.textParticle.measureText(f,b);C.width=X.width*s,b.letterSpacing&&(C.width+=b.letterSpacing*s),C.boundingBoxAscent=(b.value===We?b.size||o:X.actualBoundingBoxAscent)*s,C.boundingBoxDescent=X.actualBoundingBoxDescent*s,b.type===fe.SUPERSCRIPT?C.boundingBoxAscent+=C.height/2:b.type===fe.SUBSCRIPT&&(C.boundingBoxDescent+=C.height/2)}const B=b.imgDisplay!==ht.INLINE&&b.type===fe.IMAGE||b.type===fe.LATEX?C.height+M:C.boundingBoxAscent+M,$=M+C.boundingBoxAscent+C.boundingBoxDescent+M,V=Object.assign(b,{metrics:C,style:this.getElementFont(b,s)});if((N=V.control)!=null&&N.minWidth&&(V.controlComponent&&(R+=C.width),V.controlComponent===Se.POSTFIX)){const Y=V.control.minWidth-R;if(Y>0){const X=A-I.width-C.width,k=Math.min(X,Y)*s;V.left=k,I.width+=k}else V.left=0;R=0}const L=r[T-1];let z=r[T+1],q=I.width+C.width;if(this.options.wordBreak===af.BREAK_WORD&&(!(L!=null&&L.type)||(L==null?void 0:L.type)===fe.TEXT)&&(!b.type||b.type===fe.TEXT)){const Y=`${(L==null?void 0:L.value)||""}${b.value}`;if(this.WORD_LIKE_REG.test(Y)){const{width:X,endElement:k}=this.textParticle.measureWord(f,r,T);X<=A&&(q+=X,z=k)}q+=this.textParticle.measurePunctuationWidth(f,z)}b.listId&&(b.listId!==g?y=0:b.value===We&&!b.listWrap&&y++),g=b.listId;const se=b.type===fe.SEPARATOR||b.type===fe.TABLE||(L==null?void 0:L.type)===fe.TABLE||(L==null?void 0:L.type)===fe.BLOCK||b.type===fe.BLOCK||(L==null?void 0:L.imgDisplay)===ht.INLINE||b.imgDisplay===ht.INLINE||(L==null?void 0:L.listId)!==b.listId||T!==0&&b.value===We,ae=q>A;if(se||ae){const Y={width:C.width,height:$,startIndex:T,elementList:[V],ascent:B,rowFlex:((U=r[T])==null?void 0:U.rowFlex)||((O=r[T+1])==null?void 0:O.rowFlex),isPageBreak:b.type===fe.PAGE_BREAK};if(V.controlComponent!==Se.PREFIX&&((Q=V.control)==null?void 0:Q.indentation)===iR.VALUE_START){const X=I.elementList.findIndex(k=>k.controlId===V.controlId&&k.controlComponent!==Se.PREFIX);if(~X){const G=this.position.computeRowPosition({row:I,innerWidth:this.getInnerWidth()})[X];G&&(Y.offsetX=G.coordinate.leftTop[0])}}b.listId&&(Y.isList=!0,Y.offsetX=d.get(b.listId),Y.listIndex=y),p.push(Y)}else I.width+=C.width,T===0&&fu(r[1])?(I.height=l,I.ascent=l):I.height<$&&(I.height=$,I.ascent=B),I.elementList.push(V);if((se||ae||T===r.length-1)&&(I.isWidthNotEnough=ae&&!se,(L==null?void 0:L.rowFlex)===st.JUSTIFY||(L==null?void 0:L.rowFlex)===st.ALIGNMENT&&ae)){const Y=((ne=I.elementList[0])==null?void 0:ne.value)===We?I.elementList.slice(1):I.elementList,X=(A-I.width)/(Y.length-1);for(let k=0;k<Y.length-1;k++){const G=Y[k];G.metrics.width+=X}I.width=A}}return p}_computePageList(){var c;const e=[[]],{pageMode:n,pageNumber:{maxPageNo:r}}=this.options,i=this.getHeight(),o=this.getMainOuterHeight();let a=o,s=0;if(n===Ci.CONTINUITY){e[0]=this.rowList,a+=this.rowList.reduce((f,d)=>f+d.height,0);const u=this.getPagePixelRatio(),l=this.pageList[0],h=Number(l.style.height.replace("px",""));if(a>h)l.style.height=`${a}px`,l.height=a*u;else{const f=a<i?i:a;l.style.height=`${f}px`,l.height=f*u}this._initPageContext(this.ctxList[0])}else for(let u=0;u<this.rowList.length;u++){const l=this.rowList[u];if(l.height+a>i||((c=this.rowList[u-1])==null?void 0:c.isPageBreak)){if(Number.isInteger(r)&&s>=r){this.elementList=this.elementList.slice(0,l.startIndex);break}a=o+l.height,e.push([l]),s++}else a+=l.height,e[s].push(l)}return e}_drawHighlight(e,n){const{rowList:r,positionList:i}=n;for(let o=0;o<r.length;o++){const a=r[o];for(let s=0;s<a.elementList.length;s++){const c=a.elementList[s],u=a.elementList[s-1];if(c.highlight){u&&u.highlight&&u.highlight!==c.highlight&&this.highlight.render(e);const{coordinate:{leftTop:[l,h]}}=i[a.startIndex+s];this.highlight.recordFillInfo(e,l,h,c.metrics.width,a.height,c.highlight)}else u!=null&&u.highlight&&this.highlight.render(e)}this.highlight.render(e)}}drawRow(e,n){var m,v,x,_,E,N;this._drawHighlight(e,n);const{scale:r,table:{tdPadding:i},group:o,lineBreak:a}=this.options,{rowList:s,pageNo:c,elementList:u,positionList:l,startIndex:h,zone:f,isDrawLineBreak:d=!a.disabled}=n,p=this.mode===kt.PRINT,{isCrossRowCol:g,tableId:y}=this.range.getRange();let R=h;for(let U=0;U<s.length;U++){const O=s[U],Q={x:0,y:0,width:0,height:0};let ne=null;for(let T=0;T<O.elementList.length;T++){const I=O.elementList[T],b=I.metrics,{ascent:M,coordinate:{leftTop:[C,F]}}=l[O.startIndex+T],A=O.elementList[T-1];if(I.type===fe.IMAGE)this.textParticle.complete(),I.imgDisplay!==ht.FLOAT_TOP&&I.imgDisplay!==ht.FLOAT_BOTTOM&&this.imageParticle.render(e,I,C,F+M);else if(I.type===fe.LATEX)this.textParticle.complete(),this.laTexParticle.render(e,I,C,F+M);else if(I.type===fe.TABLE)g&&(Q.x=C,Q.y=F,ne=I),this.tableParticle.render(e,I,C,F);else if(I.type===fe.HYPERLINK)this.textParticle.complete(),this.hyperlinkParticle.render(e,I,C,F+M);else if(I.type===fe.DATE){const L=O.elementList[T+1];(!A||A.dateId!==I.dateId)&&this.textParticle.complete(),this.textParticle.record(e,I,C,F+M),(!L||L.dateId!==I.dateId)&&this.textParticle.complete()}else I.type===fe.SUPERSCRIPT?(this.textParticle.complete(),this.superscriptParticle.render(e,I,C,F+M)):I.type===fe.SUBSCRIPT?(this.underline.render(e),this.textParticle.complete(),this.subscriptParticle.render(e,I,C,F+M)):I.type===fe.SEPARATOR?this.separatorParticle.render(e,I,C,F):I.type===fe.PAGE_BREAK?this.mode!==kt.CLEAN&&!p&&this.pageBreakParticle.render(e,I,C,F):I.type===fe.CHECKBOX||I.controlComponent===Se.CHECKBOX?(this.textParticle.complete(),this.checkboxParticle.render(e,I,C,F+M)):I.type===fe.RADIO||I.controlComponent===Se.RADIO?(this.textParticle.complete(),this.radioParticle.render(e,I,C,F+M)):I.type===fe.TAB?this.textParticle.complete():I.rowFlex===st.ALIGNMENT||I.rowFlex===st.JUSTIFY?(this.textParticle.record(e,I,C,F+M),this.textParticle.complete()):I.type===fe.BLOCK?(this.textParticle.complete(),this.blockParticle.render(c,I,C,F)):(I.left&&this.textParticle.complete(),this.textParticle.record(e,I,C,F+M),(I.width||I.letterSpacing||Ux.test(I.value))&&this.textParticle.complete());if(d&&!p&&this.mode!==kt.CLEAN&&!O.isWidthNotEnough&&T===O.elementList.length-1&&this.lineBreakParticle.render(e,I,C,F+O.height/2),(m=I.control)!=null&&m.border){((v=A==null?void 0:A.control)==null?void 0:v.border)&&A.controlId!==I.controlId&&this.control.drawBorder(e);const L=this.getElementRowMargin(I);this.control.recordBorderInfo(C,F+L,I.metrics.width,O.height-2*L)}else(x=A==null?void 0:A.control)!=null&&x.border&&this.control.drawBorder(e);if(I.underline||((_=I.control)==null?void 0:_.underline)){(A==null?void 0:A.type)===fe.SUBSCRIPT&&I.type!==fe.SUBSCRIPT&&this.underline.render(e);const L=this.getElementRowMargin(I),z=I.left||0;let q=0;I.type===fe.SUBSCRIPT&&(q=this.subscriptParticle.getOffsetY(I));const se=I.controlComponent===Se.PLACEHOLDER?void 0:I.color;this.underline.recordFillInfo(e,C-z,F+O.height-L+q,b.width+z,0,se,(E=I.textDecoration)==null?void 0:E.style)}else((A==null?void 0:A.underline)||((N=A==null?void 0:A.control)==null?void 0:N.underline))&&this.underline.render(e);if(I.strikeout){if(!I.type||Mr.includes(I.type)){A&&(A.type===fe.SUBSCRIPT&&I.type!==fe.SUBSCRIPT||A.type===fe.SUPERSCRIPT&&I.type!==fe.SUPERSCRIPT||this.getElementSize(A)!==this.getElementSize(I))&&this.strikeout.render(e);const L=this.textParticle.measureBasisWord(e,this.getElementFont(I));let z=F+M+L.actualBoundingBoxDescent*r-b.height/2;I.type===fe.SUBSCRIPT?z+=this.subscriptParticle.getOffsetY(I):I.type===fe.SUPERSCRIPT&&(z+=this.superscriptParticle.getOffsetY(I)),this.strikeout.recordFillInfo(e,C,z,b.width)}}else A!=null&&A.strikeout&&this.strikeout.render(e);const{zone:B,startIndex:$,endIndex:V}=this.range.getRange();if(B===f&&$!==V&&$<=R&&R<=V){const L=this.position.getPositionContext();if(!L.isTable&&!I.tdId||L.tdId===I.tdId)if($===R){const z=u[$+1];z&&z.value===We&&(Q.x=C+b.width,Q.y=F,Q.height=O.height,Q.width+=this.options.rangeMinWidth)}else{let z=b.width;z===0&&O.elementList.length===1&&(z=this.options.rangeMinWidth),Q.width||(Q.x=C,Q.y=F,Q.height=O.height),Q.width+=z}}if(!o.disabled&&I.groupIds&&this.group.recordFillInfo(I,C,F,b.width,O.height),R++,I.type===fe.TABLE){const L=i[1]+i[3];for(let z=0;z<I.trList.length;z++){const q=I.trList[z];for(let se=0;se<q.tdList.length;se++){const ae=q.tdList[se];this.drawRow(e,{elementList:ae.value,positionList:ae.positionList,rowList:ae.rowList,pageNo:c,startIndex:0,innerWidth:(ae.width-L)*r,zone:f,isDrawLineBreak:d})}}}}if(O.isList&&this.listParticle.drawListStyle(e,O,l[O.startIndex]),this.textParticle.complete(),this.control.drawBorder(e),this.underline.render(e),this.strikeout.render(e),this.group.render(e),!p){if(Q.width&&Q.height){const{x:T,y:I,width:b,height:M}=Q;this.range.render(e,T,I,b,M)}if(g&&ne&&ne.id===y){const{coordinate:{leftTop:[T,I]}}=l[O.startIndex];this.tableParticle.drawRange(e,ne,T,I)}}}}_drawFloat(e,n){const r=this.position.getFloatPositionList(),{imgDisplay:i,pageNo:o}=n;for(let a=0;a<r.length;a++){const s=r[a],c=s.element;if((o===s.pageNo||s.zone===it.HEADER||s.zone==it.FOOTER)&&c.imgDisplay===i&&c.type===fe.IMAGE){const u=c.imgFloatPosition;this.imageParticle.render(e,c,u.x,u.y)}}}_clearPage(e){const n=this.ctxList[e],r=this.pageList[e];n.clearRect(0,0,Math.max(r.width,this.getWidth()),Math.max(r.height,this.getHeight())),this.blockParticle.clear()}_drawPage(e){var p,g;const{elementList:n,positionList:r,rowList:i,pageNo:o}=e,{inactiveAlpha:a,pageMode:s,header:c,footer:u,pageNumber:l}=this.options,h=this.getInnerWidth(),f=this.ctxList[o];f.globalAlpha=this.zone.isMainActive()?1:a,this._clearPage(o),this.background.render(f,o),this.mode!==kt.PRINT&&this.margin.render(f,o),this._drawFloat(f,{pageNo:o,imgDisplay:ht.FLOAT_BOTTOM}),this.control.renderHighlightList(f,o);const d=(p=i[0])==null?void 0:p.startIndex;this.drawRow(f,{elementList:n,positionList:r,rowList:i,pageNo:o,startIndex:d,innerWidth:h,zone:it.MAIN}),this.getIsPagingMode()&&(c.disabled||this.header.render(f,o),l.disabled||this.pageNumber.render(f,o),u.disabled||this.footer.render(f,o)),this._drawFloat(f,{pageNo:o,imgDisplay:ht.FLOAT_TOP}),this.search.getSearchKeyword()&&this.search.render(f,o),s!==Ci.CONTINUITY&&this.options.watermark.data&&this.waterMark.render(f),this.elementList.length<=1&&!((g=this.elementList[0])!=null&&g.listId)&&this.placeholder.render(f)}_disconnectLazyRender(){var e;(e=this.lazyRenderIntersectionObserver)==null||e.disconnect()}_lazyRender(){const e=this.position.getOriginalMainPositionList(),n=this.getOriginalMainElementList();this._disconnectLazyRender(),this.lazyRenderIntersectionObserver=new IntersectionObserver(r=>{r.forEach(i=>{if(i.isIntersecting){const o=Number(i.target.dataset.index);this._drawPage({elementList:n,positionList:e,rowList:this.pageRowList[o],pageNo:o})}})}),this.pageList.forEach(r=>{this.lazyRenderIntersectionObserver.observe(r)})}_immediateRender(){const e=this.position.getOriginalMainPositionList(),n=this.getOriginalMainElementList();for(let r=0;r<this.pageRowList.length;r++)this._drawPage({elementList:n,positionList:e,rowList:this.pageRowList[r],pageNo:r})}render(e){const{header:n,footer:r}=this.options,{isSubmitHistory:i=!0,isSetCursor:o=!0,isCompute:a=!0,isLazy:s=!0,isInit:c=!1,isSourceHistory:u=!1,isFirstRender:l=!1}=e||{};let{curIndex:h}=e||{};const f=this.getInnerWidth(),d=this.getIsPagingMode();if(a){this.position.setFloatPositionList([]),d&&(n.disabled||this.header.compute(),r.disabled||this.footer.compute()),this.rowList=this.computeRowList({isPagingMode:d,innerWidth:f,elementList:this.elementList}),this.pageRowList=this._computePageList(),this.position.computePositionList();const y=this.search.getSearchKeyword();y&&this.search.compute(y),this.control.computeHighlightList()}this.imageObserver.clearAll(),this.cursor.recoveryCursor();for(let y=0;y<this.pageRowList.length;y++)this.pageList[y]||this._createPage(y);const p=this.pageRowList.length,g=this.pageList.length;if(g>p){const y=g-p;this.ctxList.splice(p,y),this.pageList.splice(p,y).forEach(R=>R.remove())}s&&d?this._lazyRender():this._immediateRender(),o&&(h=this.setCursor(h)),(i&&!l||h!==void 0&&this.historyManager.isStackEmpty())&&this.submitHistory(h),du(()=>{a&&this.control.getActiveControl()&&this.control.reAwakeControl(),a&&!this.isReadonly()&&this.position.getPositionContext().isTable&&this.tableTool.render(),a&&!this.zone.isMainActive()&&this.zone.drawZoneIndicator(),this.listener.pageSizeChange&&this.listener.pageSizeChange(this.pageRowList.length),this.eventBus.isSubscribe("pageSizeChange")&&this.eventBus.emit("pageSizeChange",this.pageRowList.length),(i||u)&&!c&&(this.listener.contentChange&&this.listener.contentChange(),this.eventBus.isSubscribe("contentChange")&&this.eventBus.emit("contentChange"))})}setCursor(e){var o;const n=this.position.getPositionContext(),r=this.position.getPositionList();if(n.isTable){const{index:a,trIndex:s,tdIndex:c}=n,l=(o=this.getOriginalElementList()[a].trList)==null?void 0:o[s].tdList[c].positionList;e===void 0&&l&&(e=l.length-1);const h=l==null?void 0:l[e];this.position.setCursorPosition(h||null)}else this.position.setCursorPosition(e!==void 0?r[e]:null);let i=!0;if(e!==void 0&&n.isImage&&n.isDirectHit){const s=this.getElementList()[e];if($x.includes(s.type)){i=!1;const c=this.position.getCursorPosition();this.previewer.updateResizer(s,c)}}return this.cursor.drawCursor({isShow:i}),e}submitHistory(e){const n=this.position.getPositionContext(),r=Wl(this.elementList),i=Wl(this.header.getElementList()),o=Wl(this.footer.getElementList()),a=Pt(this.range.getRange()),s=this.pageNo,c=Pt(n),u=this.zone.getZone();this.historyManager.execute(()=>{this.zone.setZone(u),this.setPageNo(s),this.position.setPositionContext(Pt(c)),this.header.setElementList(Pt(i)),this.footer.setElementList(Pt(o)),this.elementList=Pt(r),this.range.replaceRange(Pt(a)),this.render({curIndex:e,isSubmitHistory:!1,isSourceHistory:!0})})}destroy(){this.container.remove(),this.globalEvent.removeEvent(),this.scrollObserver.removeEvent(),this.selectionObserver.removeEvent()}clearSideEffect(){this.getPreviewer().clearResizer(),this.getTableTool().dispose(),this.getHyperlinkParticle().clearHyperlinkPopup(),this.getDateParticle().clearDatePicker()}}class rS{constructor(e){this.executeMode=e.mode.bind(e),this.executeCut=e.cut.bind(e),this.executeCopy=e.copy.bind(e),this.executePaste=e.paste.bind(e),this.executeSelectAll=e.selectAll.bind(e),this.executeBackspace=e.backspace.bind(e),this.executeSetRange=e.setRange.bind(e),this.executeReplaceRange=e.replaceRange.bind(e),this.executeSetPositionContext=e.setPositionContext.bind(e),this.executeForceUpdate=e.forceUpdate.bind(e),this.executeBlur=e.blur.bind(e),this.executeUndo=e.undo.bind(e),this.executeRedo=e.redo.bind(e),this.executePainter=e.painter.bind(e),this.executeApplyPainterStyle=e.applyPainterStyle.bind(e),this.executeFormat=e.format.bind(e),this.executeFont=e.font.bind(e),this.executeSize=e.size.bind(e),this.executeSizeAdd=e.sizeAdd.bind(e),this.executeSizeMinus=e.sizeMinus.bind(e),this.executeBold=e.bold.bind(e),this.executeItalic=e.italic.bind(e),this.executeUnderline=e.underline.bind(e),this.executeStrikeout=e.strikeout.bind(e),this.executeSuperscript=e.superscript.bind(e),this.executeSubscript=e.subscript.bind(e),this.executeColor=e.color.bind(e),this.executeHighlight=e.highlight.bind(e),this.executeTitle=e.title.bind(e),this.executeList=e.list.bind(e),this.executeRowFlex=e.rowFlex.bind(e),this.executeRowMargin=e.rowMargin.bind(e),this.executeInsertTable=e.insertTable.bind(e),this.executeInsertTableTopRow=e.insertTableTopRow.bind(e),this.executeInsertTableBottomRow=e.insertTableBottomRow.bind(e),this.executeInsertTableLeftCol=e.insertTableLeftCol.bind(e),this.executeInsertTableRightCol=e.insertTableRightCol.bind(e),this.executeDeleteTableRow=e.deleteTableRow.bind(e),this.executeDeleteTableCol=e.deleteTableCol.bind(e),this.executeDeleteTable=e.deleteTable.bind(e),this.executeMergeTableCell=e.mergeTableCell.bind(e),this.executeCancelMergeTableCell=e.cancelMergeTableCell.bind(e),this.executeTableTdVerticalAlign=e.tableTdVerticalAlign.bind(e),this.executeTableBorderType=e.tableBorderType.bind(e),this.executeTableTdBorderType=e.tableTdBorderType.bind(e),this.executeTableTdSlashType=e.tableTdSlashType.bind(e),this.executeTableTdBackgroundColor=e.tableTdBackgroundColor.bind(e),this.executeTableSelectAll=e.tableSelectAll.bind(e),this.executeImage=e.image.bind(e),this.executeHyperlink=e.hyperlink.bind(e),this.executeDeleteHyperlink=e.deleteHyperlink.bind(e),this.executeCancelHyperlink=e.cancelHyperlink.bind(e),this.executeEditHyperlink=e.editHyperlink.bind(e),this.executeSeparator=e.separator.bind(e),this.executePageBreak=e.pageBreak.bind(e),this.executeAddWatermark=e.addWatermark.bind(e),this.executeDeleteWatermark=e.deleteWatermark.bind(e),this.executeSearch=e.search.bind(e),this.executeSearchNavigatePre=e.searchNavigatePre.bind(e),this.executeSearchNavigateNext=e.searchNavigateNext.bind(e),this.executeReplace=e.replace.bind(e),this.executePrint=e.print.bind(e),this.executeReplaceImageElement=e.replaceImageElement.bind(e),this.executeSaveAsImageElement=e.saveAsImageElement.bind(e),this.executeChangeImageDisplay=e.changeImageDisplay.bind(e),this.executePageMode=e.pageMode.bind(e),this.executePageScaleRecovery=e.pageScaleRecovery.bind(e),this.executePageScaleMinus=e.pageScaleMinus.bind(e),this.executePageScaleAdd=e.pageScaleAdd.bind(e),this.executePaperSize=e.paperSize.bind(e),this.executePaperDirection=e.paperDirection.bind(e),this.executeSetPaperMargin=e.setPaperMargin.bind(e),this.executeInsertElementList=e.insertElementList.bind(e),this.executeAppendElementList=e.appendElementList.bind(e),this.executeSetValue=e.setValue.bind(e),this.executeRemoveControl=e.removeControl.bind(e),this.executeSetLocale=e.setLocale.bind(e),this.executeLocationCatalog=e.locationCatalog.bind(e),this.executeWordTool=e.wordTool.bind(e),this.executeSetHTML=e.setHTML.bind(e),this.executeSetGroup=e.setGroup.bind(e),this.executeDeleteGroup=e.deleteGroup.bind(e),this.executeLocationGroup=e.locationGroup.bind(e),this.executeSetZone=e.setZone.bind(e),this.executeUpdateOptions=e.updateOptions.bind(e),this.executeInsertTitle=e.insertTitle.bind(e),this.getImage=e.getImage.bind(e),this.getOptions=e.getOptions.bind(e),this.getValue=e.getValue.bind(e),this.getHTML=e.getHTML.bind(e),this.getText=e.getText.bind(e),this.getWordCount=e.getWordCount.bind(e),this.getRange=e.getRange.bind(e),this.getRangeText=e.getRangeText.bind(e),this.getRangeContext=e.getRangeContext.bind(e),this.getRangeRow=e.getRangeRow.bind(e),this.getRangeParagraph=e.getRangeParagraph.bind(e),this.getKeywordRangeList=e.getKeywordRangeList.bind(e),this.getCatalog=e.getCatalog.bind(e),this.getPaperMargin=e.getPaperMargin.bind(e),this.getSearchNavigateInfo=e.getSearchNavigateInfo.bind(e),this.getLocale=e.getLocale.bind(e),this.getGroupIds=e.getGroupIds.bind(e),this.getContainer=e.getContainer.bind(e),this.getTitleValue=e.getTitleValue.bind(e),this.executeSetControlValue=e.setControlValue.bind(e),this.executeSetControlExtension=e.setControlExtension.bind(e),this.executeSetControlProperties=e.setControlProperties.bind(e),this.executeSetControlHighlight=e.setControlHighlight.bind(e),this.getControlValue=e.getControlValue.bind(e),this.getControlList=e.getControlList.bind(e),this.executeLocationControl=e.locationControl.bind(e)}}const md={data:"",color:"#AEB5C0",opacity:.3,size:200,font:"Microsoft YaHei"};var Ai=(t=>(t.TOP="top",t.MIDDLE="middle",t.BOTTOM="bottom",t))(Ai||{});const iS={color:"#FFFFFF",image:"",size:sf.COVER,repeat:ao.NO_REPEAT},oS={width:14,height:14,gap:5,lineWidth:1,fillStyle:"#5175f4",strokeStyle:"#ffffff"},aS={placeholderColor:"#9c9b9b",bracketColor:"#000000",prefix:"{",postfix:"}",borderWidth:1,borderColor:"#000000"},sS={bottom:30,maxHeightRadio:ia.HALF,disabled:!1},cS={opacity:.1,backgroundColor:"#E99D00",activeOpacity:.5,activeBackgroundColor:"#E99D00",disabled:!1},uS={top:30,maxHeightRadio:ia.HALF,disabled:!1},lS={disabled:!0,color:"#CCCCCC",lineWidth:1.5},hS={font:"Microsoft YaHei",fontSize:12,lineDash:[3,1]},dS={data:"",color:"#DCDFE6",opacity:1,size:16,font:"Microsoft YaHei"},fS={width:14,height:14,gap:5,lineWidth:1,fillStyle:"#5175f4",strokeStyle:"#000000"},pS={lineWidth:1,strokeStyle:"#000000"},gS={tdPadding:[0,5,5,5],defaultTrMinHeight:42,defaultColMinWidth:40},mS={tipDisabled:!0};function wR(t={}){const e={...gS,...t.table},n={...uS,...t.header},r={...sS,...t.footer},i={...lT,...t.pageNumber},o={...md,...t.watermark},a={...aS,...t.control},s={...oS,...t.checkbox},c={...fS,...t.radio},u={...Kx,...t.cursor},l={...dw,...t.title},h={...dS,...t.placeholder},f={...cS,...t.group},d={...hS,...t.pageBreak},p={...mS,...t.zone},g={...iS,...t.background},y={...lS,...t.lineBreak},R={...pS,...t.separator};return{mode:kt.EDIT,defaultType:"TEXT",defaultColor:"#000000",defaultFont:"Microsoft YaHei",defaultSize:16,minSize:5,maxSize:72,defaultRowMargin:1,defaultBasicRowMarginHeight:8,defaultTabWidth:32,width:794,height:1123,scale:1,pageGap:20,underlineColor:"#000000",strikeoutColor:"#FF0000",rangeAlpha:.6,rangeColor:"#AECBFA",rangeMinWidth:5,searchMatchAlpha:.6,searchMatchColor:"#FFFF00",searchNavigateMatchColor:"#AAD280",highlightAlpha:.6,resizerColor:"#4182D9",resizerSize:5,marginIndicatorSize:35,marginIndicatorColor:"#BABABA",margins:[100,120,100,120],pageMode:Ci.PAGING,defaultHyperlinkColor:"#0000FF",paperDirection:fo.VERTICAL,inactiveAlpha:.6,historyMaxRecordCount:100,wordBreak:af.BREAK_WORD,printPixelRatio:3,maskMargin:[0,0,0,0],letterClass:[Px.ENGLISH],contextMenuDisableKeys:[],scrollContainerSelector:"",...t,table:e,header:n,footer:r,pageNumber:i,watermark:o,control:a,checkbox:s,radio:c,cursor:u,title:l,placeholder:h,group:f,pageBreak:d,zone:p,background:g,lineBreak:y,separator:R}}function RS(t,e){const{width:n,height:r,direction:i=fo.VERTICAL}=e,o=document.createElement("iframe");o.style.visibility="hidden",o.style.position="absolute",o.style.left="0",o.style.top="0",o.style.width="0",o.style.height="0",o.style.border="none",document.body.append(o);const a=o.contentWindow,s=a.document;s.open();const c=document.createElement("div");t.forEach(h=>{const f=document.createElement("img");f.style.width=`${n}px`,f.style.height=`${r}px`,f.src=h,c.append(f)});const u=document.createElement("style"),l=`
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
@page {
|
|
margin: 0;
|
|
size: ${i===fo.HORIZONTAL?"landscape":"portrait"};
|
|
}`;u.append(document.createTextNode(l)),setTimeout(()=>{s.write(`${u.outerHTML}${c.innerHTML}`),a.print(),s.close(),window.addEventListener("mouseover",()=>{o==null||o.remove()},{once:!0})})}class yS{constructor(e){this.draw=e,this.range=e.getRange(),this.position=e.getPosition(),this.historyManager=e.getHistoryManager(),this.canvasEvent=e.getCanvasEvent(),this.tableTool=e.getTableTool(),this.options=e.getOptions(),this.control=e.getControl(),this.workerManager=e.getWorkerManager(),this.searchManager=e.getSearch(),this.i18n=e.getI18n()}mode(e){this.draw.setMode(e)}cut(){this.draw.isReadonly()||this.canvasEvent.cut()}copy(){this.canvasEvent.copy()}paste(e){this.draw.isReadonly()||Dw(this.canvasEvent,e)}selectAll(){this.canvasEvent.selectAll()}backspace(){if(this.draw.isReadonly())return;const n=this.draw.getElementList(),{startIndex:r,endIndex:i}=this.range.getRange(),o=r===i;if(o&&n[r].value===We&&r===0)return;o?this.draw.spliceElementList(n,r,1):this.draw.spliceElementList(n,r+1,i-r);const a=o?r-1:r;this.range.setRange(a,a),this.draw.render({curIndex:a})}setRange(e,n,r,i,o,a,s){if(e<0||n<0||n<e)return;this.range.setRange(e,n,r,i,o,a,s);const c=e===n;this.draw.render({curIndex:c?e:void 0,isCompute:!1,isSubmitHistory:!1,isSetCursor:c})}replaceRange(e){this.setRange(e.startIndex,e.endIndex,e.tableId,e.startTdIndex,e.endTdIndex,e.startTrIndex,e.endTrIndex)}setPositionContext(e){const{tableId:n,startTrIndex:r,startTdIndex:i}=e,o=this.draw.getOriginalElementList();if(n){const a=o.findIndex(l=>l.id===n);if(!~a)return;const c=o[a].trList[r],u=c.tdList[i];this.position.setPositionContext({isTable:!0,index:a,trIndex:r,tdIndex:i,tdId:u.id,trId:c.id,tableId:n})}else this.position.setPositionContext({isTable:!1})}forceUpdate(e){const{isSubmitHistory:n=!1}=e||{};this.range.clearRange(),this.draw.render({isSubmitHistory:n,isSetCursor:!1})}blur(){this.range.clearRange(),this.draw.getCursor().recoveryCursor()}undo(){this.draw.isReadonly()||this.historyManager.undo()}redo(){this.draw.isReadonly()||this.historyManager.redo()}painter(e){if(!e.isDblclick&&this.draw.getPainterStyle()){this.canvasEvent.clearPainterStyle();return}const n=this.range.getSelection();if(!n)return;const r={};n.forEach(i=>{Ro.forEach(a=>{const s=a;r[s]===void 0&&(r[s]=i[s])})}),this.draw.setPainterStyle(r,e)}applyPainterStyle(){this.draw.isReadonly()||this.control.getIsDisabledControl()||this.canvasEvent.applyPainterStyle()}format(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getSelectionElementList();let r={},i=[];if(n!=null&&n.length)i=n,r={isSetCursor:!1};else{const{endIndex:o}=this.range.getRange(),s=this.draw.getElementList()[o];(s==null?void 0:s.value)===We&&(i.push(s),r={curIndex:o})}!i.length||(i.forEach(o=>{delete o.size,delete o.font,delete o.color,delete o.bold,delete o.italic,delete o.underline,delete o.strikeout}),this.draw.render(r))}font(e){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const r=this.range.getSelectionElementList();if(r!=null&&r.length)r.forEach(i=>{i.font=e}),this.draw.render({isSetCursor:!1});else{const{endIndex:i}=this.range.getRange(),a=this.draw.getElementList()[i];(a==null?void 0:a.value)===We&&(a.font=e,this.draw.render({curIndex:i,isCompute:!1}))}}size(e){const{minSize:n,maxSize:r,defaultSize:i}=this.options;if(e<n||e>r||this.draw.isReadonly()||this.control.getIsDisabledControl())return;let a={},s=[];const c=this.range.getTextLikeSelectionElementList();if(c!=null&&c.length)s=c,a={isSetCursor:!1};else{const{endIndex:l}=this.range.getRange(),f=this.draw.getElementList()[l];(f==null?void 0:f.value)===We&&(s.push(f),a={curIndex:l})}if(!s.length)return;let u=!1;s.forEach(l=>{!l.size&&e===i||l.size&&l.size===e||(l.size=e,u=!0)}),u&&this.draw.render(a)}sizeAdd(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getTextLikeSelectionElementList();let r={},i=[];if(n!=null&&n.length)i=n,r={isSetCursor:!1};else{const{endIndex:c}=this.range.getRange(),l=this.draw.getElementList()[c];(l==null?void 0:l.value)===We&&(i.push(l),r={curIndex:c})}if(!i.length)return;const{defaultSize:o,maxSize:a}=this.options;let s=!1;i.forEach(c=>{c.size||(c.size=o),!(c.size>=a)&&(c.size+2>a?c.size=a:c.size+=2,s=!0)}),s&&this.draw.render(r)}sizeMinus(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getTextLikeSelectionElementList();let r={},i=[];if(n!=null&&n.length)i=n,r={isSetCursor:!1};else{const{endIndex:c}=this.range.getRange(),l=this.draw.getElementList()[c];(l==null?void 0:l.value)===We&&(i.push(l),r={curIndex:c})}if(!i.length)return;const{defaultSize:o,minSize:a}=this.options;let s=!1;i.forEach(c=>{c.size||(c.size=o),!(c.size<=a)&&(c.size-2<a?c.size=a:c.size-=2,s=!0)}),s&&this.draw.render(r)}bold(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getSelectionElementList();if(n!=null&&n.length){const r=n.findIndex(i=>!i.bold);n.forEach(i=>{i.bold=!!~r}),this.draw.render({isSetCursor:!1})}else{const{endIndex:r}=this.range.getRange(),o=this.draw.getElementList()[r];(o==null?void 0:o.value)===We&&(o.bold=!o.bold,this.draw.render({curIndex:r,isCompute:!1}))}}italic(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getSelectionElementList();if(n!=null&&n.length){const r=n.findIndex(i=>!i.italic);n.forEach(i=>{i.italic=!!~r}),this.draw.render({isSetCursor:!1})}else{const{endIndex:r}=this.range.getRange(),o=this.draw.getElementList()[r];(o==null?void 0:o.value)===We&&(o.italic=!o.italic,this.draw.render({curIndex:r,isCompute:!1}))}}underline(e){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const r=this.range.getSelectionElementList();if(r!=null&&r.length){const i=r.some(o=>!o.underline||!e&&o.textDecoration||e&&!o.textDecoration||e&&o.textDecoration&&!Zx(o.textDecoration,e));r.forEach(o=>{o.underline=i,i&&e?o.textDecoration=e:delete o.textDecoration}),this.draw.render({isSetCursor:!1,isCompute:!1})}else{const{endIndex:i}=this.range.getRange(),a=this.draw.getElementList()[i];(a==null?void 0:a.value)===We&&(a.underline=!a.underline,this.draw.render({curIndex:i,isCompute:!1}))}}strikeout(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getSelectionElementList();if(n!=null&&n.length){const r=n.findIndex(i=>!i.strikeout);n.forEach(i=>{i.strikeout=!!~r}),this.draw.render({isSetCursor:!1,isCompute:!1})}else{const{endIndex:r}=this.range.getRange(),o=this.draw.getElementList()[r];(o==null?void 0:o.value)===We&&(o.strikeout=!o.strikeout,this.draw.render({curIndex:r,isCompute:!1}))}}superscript(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getSelectionElementList();if(!n)return;const r=n.findIndex(i=>i.type===fe.SUPERSCRIPT);n.forEach(i=>{~r?i.type===fe.SUPERSCRIPT&&(i.type=fe.TEXT,delete i.actualSize):(!i.type||i.type===fe.TEXT||i.type===fe.SUBSCRIPT)&&(i.type=fe.SUPERSCRIPT)}),this.draw.render({isSetCursor:!1})}subscript(){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const n=this.range.getSelectionElementList();if(!n)return;const r=n.findIndex(i=>i.type===fe.SUBSCRIPT);n.forEach(i=>{~r?i.type===fe.SUBSCRIPT&&(i.type=fe.TEXT,delete i.actualSize):(!i.type||i.type===fe.TEXT||i.type===fe.SUPERSCRIPT)&&(i.type=fe.SUBSCRIPT)}),this.draw.render({isSetCursor:!1})}color(e){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const r=this.range.getSelectionElementList();if(r!=null&&r.length)r.forEach(i=>{e?i.color=e:delete i.color}),this.draw.render({isSetCursor:!1,isCompute:!1});else{const{endIndex:i}=this.range.getRange(),a=this.draw.getElementList()[i];(a==null?void 0:a.value)===We&&(e?a.color=e:delete a.color,this.draw.render({curIndex:i,isCompute:!1}))}}highlight(e){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const r=this.range.getSelectionElementList();if(r!=null&&r.length)r.forEach(i=>{e?i.highlight=e:delete i.highlight}),this.draw.render({isSetCursor:!1,isCompute:!1});else{const{endIndex:i}=this.range.getRange(),a=this.draw.getElementList()[i];(a==null?void 0:a.value)===We&&(e?a.highlight=e:delete a.highlight,this.draw.render({curIndex:i,isCompute:!1}))}}title(e){if(this.draw.isReadonly())return;const{startIndex:r,endIndex:i}=this.range.getRange();if(!~r&&!~i)return;const o=this.draw.getElementList(),a=r===i?this.range.getRangeParagraphElementList():o.slice(r+1,i+1);if(!a||!a.length)return;const s=bt(),c=this.draw.getOptions().title;a.forEach(h=>{!h.type&&h.value===We||(e?(h.level=e,h.titleId=s,aR(h)&&(h.size=c[rR[e]],h.bold=!0)):h.titleId&&(delete h.titleId,delete h.title,delete h.level,delete h.size,delete h.bold))});const u=r===i,l=u?i:r;this.draw.render({curIndex:l,isSetCursor:u})}list(e,n){this.draw.isReadonly()||this.draw.getListParticle().setList(e,n)}rowFlex(e){if(this.draw.isReadonly())return;const{startIndex:r,endIndex:i}=this.range.getRange();if(!~r&&!~i)return;const o=this.range.getRangeRowElementList();if(!o)return;o.forEach(c=>{c.rowFlex=e});const a=r===i,s=a?i:r;this.draw.render({curIndex:s,isSetCursor:a})}rowMargin(e){if(this.draw.isReadonly())return;const{startIndex:r,endIndex:i}=this.range.getRange();if(!~r&&!~i)return;const o=this.range.getRangeRowElementList();if(!o)return;o.forEach(c=>{c.rowMargin=e});const a=r===i,s=a?i:r;this.draw.render({curIndex:s,isSetCursor:a})}insertTable(e,n){var y;if(this.draw.isReadonly()||this.control.getActiveControl())return;const{startIndex:o,endIndex:a}=this.range.getRange();if(!~o&&!~a)return;const{defaultTrMinHeight:s}=this.options.table,c=this.draw.getElementList();let u=0;if((y=c[o])!=null&&y.listId){const R=this.position.getPositionList(),{rowIndex:m}=R[o],x=this.draw.getRowList()[m];u=(x==null?void 0:x.offsetX)||0}const l=this.draw.getOriginalInnerWidth()-u,h=[],f=l/n;for(let R=0;R<n;R++)h.push({width:f});const d=[];for(let R=0;R<e;R++){const m=[],v={height:s,tdList:m};for(let x=0;x<n;x++)m.push({colspan:1,rowspan:1,value:[{value:We,size:16}]});d.push(v)}const p={type:fe.TABLE,value:"",colgroup:h,trList:d};dr([p],{editorOptions:this.options}),Sn(c,[p],o);const g=o+1;this.draw.spliceElementList(c,g,o===a?0:a-o,p),this.range.setRange(g,g),this.draw.render({curIndex:g,isSetCursor:!1})}insertTableTopRow(){if(this.draw.isReadonly())return;const n=this.position.getPositionContext();if(!n.isTable)return;const{index:r,trIndex:i,tableId:o}=n,s=this.draw.getOriginalElementList()[r],c=s.trList,u=c[i];if(u.tdList.length<s.colgroup.length){const f=u.tdList[0].rowIndex;for(let d=0;d<i;d++){const p=c[d];for(let g=0;g<p.tdList.length;g++){const y=p.tdList[g];y.rowspan>1&&y.rowIndex+y.rowspan>=f+1&&(y.rowspan+=1)}}}const l=bt(),h={height:u.height,id:l,tdList:[]};for(let f=0;f<u.tdList.length;f++){const d=u.tdList[f],p=bt();h.tdList.push({id:p,rowspan:1,colspan:d.colspan,value:[{value:We,size:16,tableId:o,trId:l,tdId:p}]})}c.splice(i,0,h),this.position.setPositionContext({isTable:!0,index:r,trIndex:i,tdIndex:0,tdId:h.tdList[0].id,trId:h.id,tableId:o}),this.range.setRange(0,0),this.draw.render({curIndex:0}),this.tableTool.render()}insertTableBottomRow(){if(this.draw.isReadonly())return;const n=this.position.getPositionContext();if(!n.isTable)return;const{index:r,trIndex:i,tableId:o}=n,s=this.draw.getOriginalElementList()[r],c=s.trList,u=c[i],l=c.length-1===i?u:c[i+1];if(l.tdList.length<s.colgroup.length){const d=l.tdList[0].rowIndex;for(let p=0;p<i+1;p++){const g=c[p];for(let y=0;y<g.tdList.length;y++){const R=g.tdList[y];R.rowspan>1&&R.rowIndex+R.rowspan>=d+1&&(R.rowspan+=1)}}}const h=bt(),f={height:l.height,id:h,tdList:[]};for(let d=0;d<l.tdList.length;d++){const p=l.tdList[d],g=bt();f.tdList.push({id:g,rowspan:1,colspan:p.colspan,value:[{value:We,size:16,tableId:o,trId:h,tdId:g}]})}c.splice(i+1,0,f),this.position.setPositionContext({isTable:!0,index:r,trIndex:i+1,tdIndex:0,tdId:f.tdList[0].id,trId:f.id,tableId:o}),this.range.setRange(0,0),this.draw.render({curIndex:0}),this.tableTool.render()}insertTableLeftCol(){if(this.draw.isReadonly())return;const n=this.position.getPositionContext();if(!n.isTable)return;const{index:r,tdIndex:i,tableId:o}=n,s=this.draw.getOriginalElementList()[r],c=s.trList,u=i;for(let d=0;d<c.length;d++){const p=c[d],g=bt();p.tdList.splice(u,0,{id:g,rowspan:1,colspan:1,value:[{value:We,size:16,tableId:o,trId:p.id,tdId:g}]})}const l=s.colgroup;l.splice(u,0,{width:this.options.table.defaultColMinWidth});const h=l.reduce((d,p)=>d+p.width,0),f=this.draw.getOriginalInnerWidth();if(h>f){const d=(h-f)/l.length;for(let p=0;p<l.length;p++){const g=l[p];g.width-=d}}this.position.setPositionContext({isTable:!0,index:r,trIndex:0,tdIndex:u,tdId:c[0].tdList[u].id,trId:c[0].id,tableId:o}),this.range.setRange(0,0),this.draw.render({curIndex:0}),this.tableTool.render()}insertTableRightCol(){if(this.draw.isReadonly())return;const n=this.position.getPositionContext();if(!n.isTable)return;const{index:r,tdIndex:i,tableId:o}=n,s=this.draw.getOriginalElementList()[r],c=s.trList,u=i+1;for(let d=0;d<c.length;d++){const p=c[d],g=bt();p.tdList.splice(u,0,{id:g,rowspan:1,colspan:1,value:[{value:We,size:16,tableId:o,trId:p.id,tdId:g}]})}const l=s.colgroup;l.splice(u,0,{width:this.options.table.defaultColMinWidth});const h=l.reduce((d,p)=>d+p.width,0),f=this.draw.getOriginalInnerWidth();if(h>f){const d=(h-f)/l.length;for(let p=0;p<l.length;p++){const g=l[p];g.width-=d}}this.position.setPositionContext({isTable:!0,index:r,trIndex:0,tdIndex:u,tdId:c[0].tdList[u].id,trId:c[0].id,tableId:o}),this.range.setRange(0,0),this.draw.render({curIndex:0}),this.tableTool.render()}deleteTableRow(){if(this.draw.isReadonly())return;const n=this.position.getPositionContext();if(!n.isTable)return;const{index:r,trIndex:i,tdIndex:o}=n,s=this.draw.getOriginalElementList()[r],c=s.trList,u=c[i],l=u.tdList[o].rowIndex;if(c.length<=1){this.deleteTable();return}for(let h=0;h<l;h++){const d=c[h].tdList;for(let p=0;p<d.length;p++){const g=d[p];g.rowIndex+g.rowspan>l&&g.rowspan--}}for(let h=0;h<u.tdList.length;h++){const f=u.tdList[h];if(f.rowspan>1){const d=bt(),p=c[i+1];p.tdList.splice(h,0,{id:d,rowspan:f.rowspan-1,colspan:f.colspan,value:[{value:We,size:16,tableId:s.id,trId:p.id,tdId:d}]})}}c.splice(i,1),this.position.setPositionContext({isTable:!1}),this.range.clearRange(),this.draw.render({curIndex:n.index}),this.tableTool.dispose()}deleteTableCol(){var f;if(this.draw.isReadonly())return;const n=this.position.getPositionContext();if(!n.isTable)return;const{index:r,tdIndex:i,trIndex:o}=n,s=this.draw.getOriginalElementList()[r],c=s.trList,l=c[o].tdList[i].colIndex;if(!c.find(d=>d.tdList.length>1)){this.deleteTable();return}for(let d=0;d<c.length;d++){const p=c[d];for(let g=0;g<p.tdList.length;g++){const y=p.tdList[g];if(y.colspan>1){const R=y.colIndex;R<=l&&R+y.colspan-1>=l&&(y.colspan-=1)}}}for(let d=0;d<c.length;d++){const p=c[d];let g=-1;for(let y=0;y<p.tdList.length;y++)p.tdList[y].colIndex===l&&(g=y);~g&&p.tdList.splice(g,1)}(f=s.colgroup)==null||f.splice(l,1),this.position.setPositionContext({isTable:!1}),this.range.setRange(0,0),this.draw.render({curIndex:n.index}),this.tableTool.dispose()}deleteTable(){if(this.draw.isReadonly())return;const n=this.position.getPositionContext();if(!n.isTable)return;this.draw.getOriginalElementList().splice(n.index,1);const i=n.index-1;this.position.setPositionContext({isTable:!1,index:i}),this.range.setRange(i,i),this.draw.render({curIndex:i}),this.tableTool.dispose()}mergeTableCell(){if(this.draw.isReadonly())return;const n=this.position.getPositionContext();if(!n.isTable)return;const{isCrossRowCol:r,startTdIndex:i,endTdIndex:o,startTrIndex:a,endTrIndex:s}=this.range.getRange();if(!r)return;const{index:c}=n,h=this.draw.getOriginalElementList()[c].trList;let f=h[a].tdList[i],d=h[s].tdList[o];(f.x>d.x||f.y>d.y)&&([f,d]=[d,f]);const p=f.colIndex,g=d.colIndex+(d.colspan-1),y=f.rowIndex,R=d.rowIndex+(d.rowspan-1),m=[];for(let I=0;I<h.length;I++){const b=h[I],M=[];for(let C=0;C<b.tdList.length;C++){const F=b.tdList[C],A=F.colIndex,B=F.rowIndex;A>=p&&A<=g&&B>=y&&B<=R&&M.push(F)}M.length&&m.push(M)}if(!m.length)return;const v=m[m.length-1],x=m[0][0],_=v[v.length-1],E=x.x,N=x.y,U=_.x+_.width,O=_.y+_.height;for(let I=0;I<m.length;I++){const b=m[I];for(let M=0;M<b.length;M++){const C=b[M],F=C.x,A=C.y,B=F+C.width,$=A+C.height;if(E>F||N>A||U<B||O<$)return}}const Q=[],ne=m[0][0];for(let I=0;I<m.length;I++){const b=m[I];for(let M=0;M<b.length;M++){const C=b[M];I===0&&M===0||Q.push(C.id),I===0&&M!==0&&(ne.colspan+=C.colspan),I!==0&&ne.colIndex===C.colIndex&&(ne.rowspan+=C.rowspan)}}for(let I=0;I<h.length;I++){const b=h[I];let M=0;for(;M<b.tdList.length;){const C=b.tdList[M];Q.includes(C.id)&&(b.tdList.splice(M,1),M--),M++}}const T=f.value.length-1;this.range.setRange(T,T),this.draw.render(),this.tableTool.render()}cancelMergeTableCell(){if(this.draw.isReadonly())return;const n=this.position.getPositionContext();if(!n.isTable)return;const{index:r,tdIndex:i,trIndex:o}=n,s=this.draw.getOriginalElementList()[r],c=s.trList,u=c[o],l=u.tdList[i];if(l.rowspan===1&&l.colspan===1)return;const h=l.colspan;if(l.colspan>1){for(let d=1;d<l.colspan;d++){const p=bt();u.tdList.splice(i+d,0,{id:p,rowspan:1,colspan:1,value:[{value:We,size:16,tableId:s.id,trId:u.id,tdId:p}]})}l.colspan=1}if(l.rowspan>1){for(let d=1;d<l.rowspan;d++){const p=c[o+d];for(let g=0;g<h;g++){const y=bt();p.tdList.splice(l.colIndex,0,{id:y,rowspan:1,colspan:1,value:[{value:We,size:16,tableId:s.id,trId:p.id,tdId:y}]})}}l.rowspan=1}const f=l.value.length-1;this.range.setRange(f,f),this.draw.render(),this.tableTool.render()}tableTdVerticalAlign(e){if(this.draw.isReadonly())return;const r=this.draw.getTableParticle().getRangeRowCol();if(!r)return;for(let o=0;o<r.length;o++){const a=r[o];for(let s=0;s<a.length;s++){const c=a[s];!c||c.verticalAlign===e||!c.verticalAlign&&e===Ai.TOP||(c.verticalAlign=e)}}const{endIndex:i}=this.range.getRange();this.draw.render({curIndex:i})}tableBorderType(e){if(this.draw.isReadonly())return;const r=this.position.getPositionContext();if(!r.isTable)return;const{index:i}=r,a=this.draw.getOriginalElementList()[i];if(!a.borderType&&e===$r.ALL||a.borderType===e)return;a.borderType=e;const{endIndex:s}=this.range.getRange();this.draw.render({curIndex:s})}tableTdBorderType(e){if(this.draw.isReadonly())return;const r=this.draw.getTableParticle().getRangeRowCol();if(!r)return;const i=r.flat(),o=i.some(s=>{var c;return!((c=s.borderTypes)!=null&&c.includes(e))});i.forEach(s=>{s.borderTypes||(s.borderTypes=[]);const c=s.borderTypes.findIndex(u=>u===e);o?~c||s.borderTypes.push(e):~c&&s.borderTypes.splice(c,1),s.borderTypes.length||delete s.borderTypes});const{endIndex:a}=this.range.getRange();this.draw.render({curIndex:a})}tableTdSlashType(e){if(this.draw.isReadonly())return;const r=this.draw.getTableParticle().getRangeRowCol();if(!r)return;const i=r.flat(),o=i.some(s=>{var c;return!((c=s.slashTypes)!=null&&c.includes(e))});i.forEach(s=>{s.slashTypes||(s.slashTypes=[]);const c=s.slashTypes.findIndex(u=>u===e);o?~c||s.slashTypes.push(e):~c&&s.slashTypes.splice(c,1),s.slashTypes.length||delete s.slashTypes});const{endIndex:a}=this.range.getRange();this.draw.render({curIndex:a})}tableTdBackgroundColor(e){if(this.draw.isReadonly())return;const r=this.draw.getTableParticle().getRangeRowCol();if(!r)return;for(let o=0;o<r.length;o++){const a=r[o];for(let s=0;s<a.length;s++){const c=a[s];c.backgroundColor=e}}const{endIndex:i}=this.range.getRange();this.range.setRange(i,i),this.draw.render({isCompute:!1})}tableSelectAll(){const e=this.position.getPositionContext(),{index:n,tableId:r,isTable:i}=e;if(!i||!r)return;const{startIndex:o,endIndex:a}=this.range.getRange(),c=this.draw.getOriginalElementList()[n].trList,u=c.length-1,l=c[u].tdList.length-1;this.range.replaceRange({startIndex:o,endIndex:a,tableId:r,startTdIndex:0,endTdIndex:l,startTrIndex:0,endTrIndex:u}),this.draw.render({isCompute:!1,isSubmitHistory:!1})}hyperlink(e){if(this.draw.isReadonly()||this.control.getActiveControl())return;const{startIndex:i,endIndex:o}=this.range.getRange();if(!~i&&!~o)return;const a=this.draw.getElementList(),{valueList:s,url:c}=e,u=bt(),l=s==null?void 0:s.map(d=>({url:c,hyperlinkId:u,value:d.value,type:fe.HYPERLINK}));if(!l)return;const h=i+1;Sn(a,l,i),this.draw.spliceElementList(a,h,i===o?0:o-i,...l);const f=h+l.length-1;this.range.setRange(f,f),this.draw.render({curIndex:f})}getHyperlinkRange(){let e=-1,n=-1;const{startIndex:r,endIndex:i}=this.range.getRange();if(!~r&&!~i)return null;const o=this.draw.getElementList(),a=o[r];if(a.type!==fe.HYPERLINK)return null;let s=r;for(;s>0;){if(o[s].hyperlinkId!==a.hyperlinkId){e=s+1;break}s--}let c=r+1;for(;c<o.length;){if(o[c].hyperlinkId!==a.hyperlinkId){n=c-1;break}c++}return c===o.length&&(n=c-1),!~e||!~n?null:[e,n]}deleteHyperlink(){if(this.draw.isReadonly())return;const n=this.getHyperlinkRange();if(!n)return;const r=this.draw.getElementList(),[i,o]=n;this.draw.spliceElementList(r,i,o-i+1),this.draw.getHyperlinkParticle().clearHyperlinkPopup();const a=i-1;this.range.setRange(a,a),this.draw.render({curIndex:a})}cancelHyperlink(){if(this.draw.isReadonly())return;const n=this.getHyperlinkRange();if(!n)return;const r=this.draw.getElementList(),[i,o]=n;for(let s=i;s<=o;s++){const c=r[s];delete c.type,delete c.url,delete c.hyperlinkId,delete c.underline}this.draw.getHyperlinkParticle().clearHyperlinkPopup();const{endIndex:a}=this.range.getRange();this.draw.render({curIndex:a,isCompute:!1})}editHyperlink(e){if(this.draw.isReadonly())return;const r=this.getHyperlinkRange();if(!r)return;const i=this.draw.getElementList(),[o,a]=r;for(let c=o;c<=a;c++){const u=i[c];u.url=e}this.draw.getHyperlinkParticle().clearHyperlinkPopup();const{endIndex:s}=this.range.getRange();this.draw.render({curIndex:s,isCompute:!1})}separator(e){if(this.draw.isReadonly()||this.control.getActiveControl())return;const{startIndex:i,endIndex:o}=this.range.getRange();if(!~i&&!~o)return;const a=this.draw.getElementList();let s=-1;const c=a[o+1];if(c&&c.type===fe.SEPARATOR){if(c.dashArray&&c.dashArray.join()===e.join())return;s=o,c.dashArray=e}else{const u={value:O1,type:fe.SEPARATOR,dashArray:e};Sn(a,[u],i),i!==0&&a[i].value===We?(this.draw.spliceElementList(a,i,1,u),s=i-1):(this.draw.spliceElementList(a,i+1,0,u),s=i)}this.range.setRange(s,s),this.draw.render({curIndex:s})}pageBreak(){this.draw.isReadonly()||this.control.getActiveControl()||this.insertElementList([{type:fe.PAGE_BREAK,value:O1}])}addWatermark(e){if(this.draw.isReadonly())return;const r=this.draw.getOptions(),{color:i,size:o,opacity:a,font:s}=md;r.watermark.data=e.data,r.watermark.color=e.color||i,r.watermark.size=e.size||o,r.watermark.opacity=e.opacity||a,r.watermark.font=e.font||s,this.draw.render({isSetCursor:!1,isSubmitHistory:!1,isCompute:!1})}deleteWatermark(){if(this.draw.isReadonly())return;const n=this.draw.getOptions();n.watermark&&n.watermark.data&&(n.watermark={...md},this.draw.render({isSetCursor:!1,isSubmitHistory:!1,isCompute:!1}))}image(e){if(this.draw.isReadonly()||this.control.getIsDisabledControl())return;const{startIndex:r,endIndex:i}=this.range.getRange();if(!~r&&!~i)return;const{value:o,width:a,height:s,imgDisplay:c}=e;this.insertElementList([{value:o,width:a,height:s,id:bt(),type:fe.IMAGE,imgDisplay:c}])}search(e){this.searchManager.setSearchKeyword(e),this.draw.render({isSetCursor:!1,isSubmitHistory:!1})}searchNavigatePre(){this.searchManager.searchNavigatePre()!==null&&this.draw.render({isSetCursor:!1,isSubmitHistory:!1,isCompute:!1,isLazy:!1})}searchNavigateNext(){this.searchManager.searchNavigateNext()!==null&&this.draw.render({isSetCursor:!1,isSubmitHistory:!1,isCompute:!1,isLazy:!1})}getSearchNavigateInfo(){return this.searchManager.getSearchNavigateInfo()}replace(e){if(this.draw.isReadonly()||!e||new RegExp(`${We}`,"g").test(e))return;const r=this.draw.getSearch().getSearchMatchList();if(!r.length)return;let i=0,o=0,a="",s="",c=-1;const u=this.draw.getOriginalElementList();for(let f=0;f<r.length;f++){const d=r[f];if(d.type===Mi.TABLE){const{tableIndex:p,trIndex:g,tdIndex:y,index:R,tdId:m}=d;s&&m!==s&&(o=0),s=m;const v=p+i,x=u[v].trList[g].tdList[y].value,_=R+o,E=x[_];if(a===d.groupId){this.draw.spliceElementList(x,_,1),o--;continue}for(let N=0;N<e.length;N++){const U=e[N];N===0?E.value=U:(this.draw.spliceElementList(x,_+N,0,{...E,value:U}),o++)}}else{const p=d.index+i,g=u[p];if(g.type===fe.CONTROL&&g.controlComponent!==Se.VALUE)continue;if(~c||(c=f),a===d.groupId){this.draw.spliceElementList(u,p,1),i--;continue}for(let y=0;y<e.length;y++){const R=e[y];y===0?g.value=R:(this.draw.spliceElementList(u,p+y,0,{...g,value:R}),i++)}}a=d.groupId}if(!~c)return;const l=r[c],h=l.index+(e.length-1);if(l.type===Mi.TABLE){const{tableIndex:f,trIndex:d,tdIndex:p,index:g}=l,y=u[f].trList[d].tdList[p].value[g];this.position.setPositionContext({isTable:!0,index:f,trIndex:d,tdIndex:p,tdId:y.tdId,trId:y.trId,tableId:y.tableId})}else this.position.setPositionContext({isTable:!1});this.range.setRange(h,h),this.draw.render({curIndex:h})}async print(){const{scale:e,printPixelRatio:n,paperDirection:r}=this.options;e!==1&&this.draw.setPageScale(1);const i=this.draw.getOriginalWidth(),o=this.draw.getOriginalHeight(),a=await this.draw.getDataURL({pixelRatio:n,mode:kt.PRINT});RS(a,{width:i,height:o,direction:r}),e!==1&&this.draw.setPageScale(e)}replaceImageElement(e){const{startIndex:n}=this.range.getRange(),i=this.draw.getElementList()[n];!i||i.type!==fe.IMAGE||(i.id=bt(),i.value=e,this.draw.render({isSetCursor:!1}))}saveAsImageElement(){const{startIndex:e}=this.range.getRange(),r=this.draw.getElementList()[e];!r||r.type!==fe.IMAGE||Jm(r.value,`${r.id}.png`)}changeImageDisplay(e,n){if(e.imgDisplay===n)return;e.imgDisplay=n;const{startIndex:r,endIndex:i}=this.range.getRange();if(n===ht.FLOAT_TOP||n===ht.FLOAT_BOTTOM){const o=this.position.getPositionList(),{coordinate:{leftTop:a}}=o[r];e.imgFloatPosition={x:a[0],y:a[1]}}else delete e.imgFloatPosition;this.draw.getPreviewer().clearResizer(),this.draw.render({isSetCursor:!0,curIndex:i})}getImage(e){return this.draw.getDataURL(e)}getOptions(){return this.options}getValue(e){return this.draw.getValue(e)}getHTML(){const e=this.options,n=this.draw.getHeaderElementList(),r=this.draw.getOriginalMainElementList(),i=this.draw.getFooterElementList();return{header:ys(n,e).innerHTML,main:ys(r,e).innerHTML,footer:ys(i,e).innerHTML}}getText(){const e=this.draw.getHeaderElementList(),n=this.draw.getOriginalMainElementList(),r=this.draw.getFooterElementList();return{header:xc(e),main:xc(n),footer:xc(r)}}getWordCount(){return this.workerManager.getWordCount()}getRange(){return Pt(this.range.getRange())}getRangeText(){return this.range.toString()}getRangeContext(){const e=this.range.getRange(),{startIndex:n,endIndex:r}=e;if(!~n&&!~r)return null;const i=n===r,o=this.range.toString(),a=Xt(this.range.getSelectionElementList()||[]),s=this.draw.getElementList(),c=oa(s[i?n:n+1]),u=oa(s[r]),l=this.position.getPositionList(),h=l[n].pageNo,f=l[r].pageNo,d=[],p=this.draw.getOriginalHeight(),g=this.draw.getOriginalPageGap(),y=this.position.getSelectionPositionList();if(y){let N=null,U=0,O=null;for(let Q=0;Q<y.length;Q++){const{rowNo:ne,pageNo:T,coordinate:{leftTop:I,rightTop:b},lineHeight:M}=y[Q];N===null||N!==ne?(O&&d.push(O),O={x:I[0],y:I[1]+T*(p+g),width:b[0]-I[0],height:M},N=ne,U=I[0]):O.width=b[0]-U,Q===y.length-1&&O&&d.push(O)}}else{const U=this.position.getPositionList()[r],{coordinate:{rightTop:O},pageNo:Q,lineHeight:ne}=U;d.push({x:O[0],y:O[1]+Q*(p+g),width:0,height:ne})}const R=this.draw.getZone().getZone(),{isTable:m,trIndex:v,tdIndex:x,index:_}=this.position.getPositionContext();let E=null;if(m){const U=this.draw.getOriginalElementList()[_]||null;U&&(E=Xt([U])[0])}return Pt({isCollapsed:i,startElement:c,endElement:u,startPageNo:h,endPageNo:f,rangeRects:d,zone:R,isTable:m,trIndex:v!=null?v:null,tdIndex:x!=null?x:null,tableElement:E,selectionText:o,selectionElementList:a})}getRangeRow(){const e=this.range.getRangeRowElementList();return e?Xt(e):null}getRangeParagraph(){const e=this.range.getRangeParagraphElementList();return e?Xt(e):null}getKeywordRangeList(e){return this.range.getKeywordRangeList(e)}pageMode(e){this.draw.setPageMode(e)}pageScaleRecovery(){const{scale:e}=this.options;e!==1&&this.draw.setPageScale(1)}pageScaleMinus(){const{scale:e}=this.options,n=e*10-1;n>=5&&this.draw.setPageScale(n/10)}pageScaleAdd(){const{scale:e}=this.options,n=e*10+1;n<=30&&this.draw.setPageScale(n/10)}paperSize(e,n){this.draw.setPaperSize(e,n)}paperDirection(e){this.draw.setPaperDirection(e)}getPaperMargin(){return this.options.margins}setPaperMargin(e){return this.draw.setPaperMargin(e)}insertElementList(e){if(!e.length||this.draw.isReadonly())return;const r=Pt(e),{startIndex:i}=this.range.getRange(),o=this.draw.getElementList();Sn(o,r,i),this.draw.insertElementList(r)}appendElementList(e,n){!e.length||this.draw.isReadonly()||this.draw.appendElementList(Pt(e),n)}setValue(e){this.draw.setValue(e)}removeControl(){const{startIndex:e,endIndex:n}=this.range.getRange();if(e!==n||!this.draw.getElementList()[e].controlId)return;const a=this.draw.getControl().removeControl(e);a!==null&&(this.range.setRange(a,a),this.draw.render({curIndex:a}))}setLocale(e){this.i18n.setLocale(e)}getLocale(){return this.i18n.getLocale()}getCatalog(){return this.workerManager.getCatalog()}locationCatalog(e){var i;const n=this.draw.getMainElementList();let r=-1;for(let o=0;o<n.length;o++)if(n[o].titleId===e&&((i=n[o+1])==null?void 0:i.titleId)!==e){r=o;break}!~r||(this.range.setRange(r,r),this.draw.render({curIndex:r,isCompute:!1,isSubmitHistory:!1}))}wordTool(){const e=this.draw.getMainElementList();let n=!1;for(let r=0;r<e.length;r++)if(e[r].value===We)for(;r+1<e.length;){const o=e[r+1];if(o.value!==We&&o.value!==Nx)break;e.splice(r+1,1),n=!0}if(n)this.draw.render({isSetCursor:!1});else{const r=this.range.getIsCollapsed();this.draw.getCursor().drawCursor({isShow:r})}}setHTML(e){const{header:n,main:r,footer:i}=e,o=this.draw.getOriginalInnerWidth(),a=s=>s!==void 0?vs(s,{innerWidth:o}):void 0;this.setValue({header:a(n),main:a(r),footer:a(i)})}setGroup(){return this.draw.isReadonly()?null:this.draw.getGroup().setGroup()}deleteGroup(e){this.draw.isReadonly()||this.draw.getGroup().deleteGroup(e)}getGroupIds(){return this.draw.getWorkerManager().getGroupIds()}locationGroup(e){const n=this.draw.getOriginalMainElementList(),r=this.draw.getGroup().getContextByGroupId(n,e);if(!r)return;const{isTable:i,index:o,trIndex:a,tdIndex:s,tdId:c,trId:u,tableId:l,endIndex:h}=r;this.position.setPositionContext({isTable:i,index:o,trIndex:a,tdIndex:s,tdId:c,trId:u,tableId:l}),this.range.setRange(h,h),this.draw.render({curIndex:h,isCompute:!1,isSubmitHistory:!1})}setZone(e){this.draw.getZone().setZone(e)}getControlValue(e){return this.draw.getControl().getValueByConceptId(e)}setControlValue(e){this.draw.isReadonly()||this.draw.getControl().setValueByConceptId(e)}setControlExtension(e){this.draw.isReadonly()||this.draw.getControl().setExtensionByConceptId(e)}setControlProperties(e){this.draw.isReadonly()||this.draw.getControl().setPropertiesByConceptId(e)}setControlHighlight(e){this.draw.getControl().setHighlightList(e)}updateOptions(e){const n=wR(e);Object.entries(n).forEach(([r,i])=>{Reflect.set(this.options,r,i)}),this.forceUpdate()}getControlList(){return this.draw.getControl().getList()}locationControl(e){function n(i,o){let a=0;for(;a<i.length;){const s=i[a];if(a++,s.type===fe.TABLE){const u=s.trList;for(let l=0;l<u.length;l++){const h=u[l];for(let f=0;f<h.tdList.length;f++){const d=h.tdList[f],p=n(d.value,o);if(p)return{...p,positionContext:{isTable:!0,index:a-1,trIndex:l,tdIndex:f,tdId:s.tdId,trId:s.trId,tableId:s.tableId}}}}}if((s==null?void 0:s.controlId)!==e)continue;const c=a-1;return{zone:o,range:{startIndex:c,endIndex:c},positionContext:{isTable:!1}}}return null}const r=[{zone:it.HEADER,elementList:this.draw.getHeaderElementList()},{zone:it.MAIN,elementList:this.draw.getOriginalMainElementList()},{zone:it.FOOTER,elementList:this.draw.getFooterElementList()}];for(const i of r){const o=n(i.elementList,i.zone);if(o){this.setZone(o.zone),this.position.setPositionContext(o.positionContext),this.range.replaceRange(o.range),this.draw.render({curIndex:o.range.startIndex,isCompute:!1,isSubmitHistory:!1});break}}}getContainer(){return this.draw.getContainer()}getTitleValue(e){const{conceptId:n}=e,r=[],i=(a,s)=>{var u;let c=0;for(;c<a.length;){const l=a[c];if(c++,l.type===fe.TABLE){const d=l.trList;for(let p=0;p<d.length;p++){const g=d[p];for(let y=0;y<g.tdList.length;y++){const R=g.tdList[y];i(R.value,s)}}}if(((u=l==null?void 0:l.title)==null?void 0:u.conceptId)!==n)continue;const h=[];let f=c;for(;f<a.length;){const d=a[f];if(f++,l.titleId!==d.titleId){if(d.level&&fd[d.level]<=fd[l.level])break;h.push(d)}}r.push({...l.title,value:xc(h),elementList:Xt(h),zone:s}),c=f}},o=[{zone:it.HEADER,elementList:this.draw.getHeaderElementList()},{zone:it.MAIN,elementList:this.draw.getOriginalMainElementList()},{zone:it.FOOTER,elementList:this.draw.getFooterElementList()}];for(const{zone:a,elementList:s}of o)i(s,a);return r}insertTitle(e){var c;if(this.draw.isReadonly())return;const r=Pt(e),{startIndex:i}=this.range.getRange(),o=this.draw.getElementList(),a=Cs(o,i);if(!a)return;const s=[...nf,...Ms,...$m];(c=r.valueList)==null||c.forEach(u=>{jc(s,a,u)}),this.draw.insertElementList([r])}}class vS{constructor(){this.rangeStyleChange=null,this.visiblePageNoListChange=null,this.intersectionPageNoChange=null,this.pageSizeChange=null,this.pageScaleChange=null,this.saved=null,this.contentChange=null,this.controlChange=null,this.pageModeChange=null,this.zoneChange=null}}class bS{constructor(e){const{contextMenu:n,shortcut:r,i18n:i}=e;this.contextMenuList=n.registerContextMenuList.bind(n),this.getContextMenuList=n.getContextMenuList.bind(n),this.shortcutList=r.registerShortcutList.bind(r),this.langMap=i.registerLangMap.bind(i)}}const Y1={SELECTED_TEXT:"%s"},As={GLOBAL:{CUT:"globalCut",COPY:"globalCopy",PASTE:"globalPaste",SELECT_ALL:"globalSelectAll",PRINT:"globalPrint"},CONTROL:{DELETE:"controlDelete"},HYPERLINK:{DELETE:"hyperlinkDelete",CANCEL:"hyperlinkCancel",EDIT:"hyperlinkEdit"},IMAGE:{CHANGE:"imageChange",SAVE_AS:"imageSaveAs",TEXT_WRAP:"imageTextWrap",TEXT_WRAP_EMBED:"imageTextWrapEmbed",TEXT_WRAP_UP_DOWN:"imageTextWrapUpDown",TEXT_WRAP_FLOAT_TOP:"imageTextWrapFloatTop",TEXT_WRAP_FLOAT_BOTTOM:"imageTextWrapFloatBottom"},TABLE:{BORDER:"border",BORDER_ALL:"tableBorderAll",BORDER_EMPTY:"tableBorderEmpty",BORDER_EXTERNAL:"tableBorderExternal",BORDER_TD:"tableBorderTd",BORDER_TD_TOP:"tableBorderTdTop",BORDER_TD_RIGHT:"tableBorderTdRight",BORDER_TD_BOTTOM:"tableBorderTdBottom",BORDER_TD_LEFT:"tableBorderTdLeft",BORDER_TD_FORWARD:"tableBorderTdForward",BORDER_TD_BACK:"tableBorderTdBack",VERTICAL_ALIGN:"tableVerticalAlign",VERTICAL_ALIGN_TOP:"tableVerticalAlignTop",VERTICAL_ALIGN_MIDDLE:"tableVerticalAlignMiddle",VERTICAL_ALIGN_BOTTOM:"tableVerticalAlignBottom",INSERT_ROW_COL:"tableInsertRowCol",INSERT_TOP_ROW:"tableInsertTopRow",INSERT_BOTTOM_ROW:"tableInsertBottomRow",INSERT_LEFT_COL:"tableInsertLeftCol",INSERT_RIGHT_COL:"tableInsertRightCol",DELETE_ROW_COL:"tableDeleteRowCol",DELETE_ROW:"tableDeleteRow",DELETE_COL:"tableDeleteCol",DELETE_TABLE:"tableDeleteTable",MERGE_CELL:"tableMergeCell",CANCEL_MERGE_CELL:"tableCancelMergeCell"}},{CONTROL:{DELETE:xS}}=As,wS=[{key:xS,i18nPath:"contextmenu.control.delete",when:t=>{var e;return!t.isReadonly&&!t.editorHasSelection&&!!((e=t.startElement)!=null&&e.controlId)},callback:t=>{t.executeRemoveControl()}}],{GLOBAL:{CUT:TS,COPY:SS,PASTE:DS,SELECT_ALL:_S,PRINT:OS}}=As,ES=[{key:TS,i18nPath:"contextmenu.global.cut",shortCut:`${so?"\u2318":"Ctrl"} + X`,when:t=>!t.isReadonly,callback:t=>{t.executeCut()}},{key:SS,i18nPath:"contextmenu.global.copy",shortCut:`${so?"\u2318":"Ctrl"} + C`,when:t=>t.editorHasSelection||t.isCrossRowCol,callback:t=>{t.executeCopy()}},{key:DS,i18nPath:"contextmenu.global.paste",shortCut:`${so?"\u2318":"Ctrl"} + V`,when:t=>!t.isReadonly&&t.editorTextFocus,callback:t=>{t.executePaste()}},{key:_S,i18nPath:"contextmenu.global.selectAll",shortCut:`${so?"\u2318":"Ctrl"} + A`,when:t=>t.editorTextFocus,callback:t=>{t.executeSelectAll()}},{isDivider:!0},{key:OS,i18nPath:"contextmenu.global.print",icon:"print",when:()=>!0,callback:t=>{t.executePrint()}}],{HYPERLINK:{DELETE:IS,CANCEL:NS,EDIT:FS}}=As,PS=[{key:IS,i18nPath:"contextmenu.hyperlink.delete",when:t=>{var e;return!t.isReadonly&&((e=t.startElement)==null?void 0:e.type)===fe.HYPERLINK},callback:t=>{t.executeDeleteHyperlink()}},{key:NS,i18nPath:"contextmenu.hyperlink.cancel",when:t=>{var e;return!t.isReadonly&&((e=t.startElement)==null?void 0:e.type)===fe.HYPERLINK},callback:t=>{t.executeCancelHyperlink()}},{key:FS,i18nPath:"contextmenu.hyperlink.edit",when:t=>{var e;return!t.isReadonly&&((e=t.startElement)==null?void 0:e.type)===fe.HYPERLINK},callback:(t,e)=>{var r;const n=window.prompt("\u7F16\u8F91\u94FE\u63A5",(r=e.startElement)==null?void 0:r.url);n&&t.executeEditHyperlink(n)}}],{IMAGE:{CHANGE:LS,SAVE_AS:MS,TEXT_WRAP:CS,TEXT_WRAP_EMBED:AS,TEXT_WRAP_UP_DOWN:US,TEXT_WRAP_FLOAT_TOP:WS,TEXT_WRAP_FLOAT_BOTTOM:XS}}=As,VS=[{key:LS,i18nPath:"contextmenu.image.change",icon:"image-change",when:t=>{var e;return!t.isReadonly&&!t.editorHasSelection&&((e=t.startElement)==null?void 0:e.type)===fe.IMAGE},callback:t=>{const e=document.createElement("input");e.type="file",e.accept=".png, .jpg, .jpeg",e.onchange=()=>{const n=e.files[0],r=new FileReader;r.readAsDataURL(n),r.onload=()=>{const i=r.result;t.executeReplaceImageElement(i)}},e.click()}},{key:MS,i18nPath:"contextmenu.image.saveAs",icon:"image",when:t=>{var e;return!t.editorHasSelection&&((e=t.startElement)==null?void 0:e.type)===fe.IMAGE},callback:t=>{t.executeSaveAsImageElement()}},{key:CS,i18nPath:"contextmenu.image.textWrap",when:t=>{var e;return!t.isReadonly&&!t.editorHasSelection&&((e=t.startElement)==null?void 0:e.type)===fe.IMAGE},childMenus:[{key:AS,i18nPath:"contextmenu.image.textWrapType.embed",when:()=>!0,callback:(t,e)=>{t.executeChangeImageDisplay(e.startElement,ht.BLOCK)}},{key:US,i18nPath:"contextmenu.image.textWrapType.upDown",when:()=>!0,callback:(t,e)=>{t.executeChangeImageDisplay(e.startElement,ht.INLINE)}},{key:WS,i18nPath:"contextmenu.image.textWrapType.floatTop",when:()=>!0,callback:(t,e)=>{t.executeChangeImageDisplay(e.startElement,ht.FLOAT_TOP)}},{key:XS,i18nPath:"contextmenu.image.textWrapType.floatBottom",when:()=>!0,callback:(t,e)=>{t.executeChangeImageDisplay(e.startElement,ht.FLOAT_BOTTOM)}}]}],{TABLE:{BORDER:YS,BORDER_ALL:BS,BORDER_EMPTY:kS,BORDER_EXTERNAL:ZS,BORDER_TD:QS,BORDER_TD_TOP:KS,BORDER_TD_LEFT:HS,BORDER_TD_BOTTOM:GS,BORDER_TD_RIGHT:JS,BORDER_TD_BACK:zS,BORDER_TD_FORWARD:$S,VERTICAL_ALIGN:jS,VERTICAL_ALIGN_TOP:qS,VERTICAL_ALIGN_MIDDLE:eD,VERTICAL_ALIGN_BOTTOM:tD,INSERT_ROW_COL:nD,INSERT_TOP_ROW:rD,INSERT_BOTTOM_ROW:iD,INSERT_LEFT_COL:oD,INSERT_RIGHT_COL:aD,DELETE_ROW_COL:sD,DELETE_ROW:cD,DELETE_COL:uD,DELETE_TABLE:lD,MERGE_CELL:hD,CANCEL_MERGE_CELL:dD}}=As,fD=[{isDivider:!0},{key:YS,i18nPath:"contextmenu.table.border",icon:"border-all",when:t=>!t.isReadonly&&t.isInTable,childMenus:[{key:BS,i18nPath:"contextmenu.table.borderAll",icon:"border-all",when:()=>!0,callback:t=>{t.executeTableBorderType($r.ALL)}},{key:kS,i18nPath:"contextmenu.table.borderEmpty",icon:"border-empty",when:()=>!0,callback:t=>{t.executeTableBorderType($r.EMPTY)}},{key:ZS,i18nPath:"contextmenu.table.borderExternal",icon:"border-external",when:()=>!0,callback:t=>{t.executeTableBorderType($r.EXTERNAL)}},{key:QS,i18nPath:"contextmenu.table.borderTd",icon:"border-td",when:()=>!0,childMenus:[{key:KS,i18nPath:"contextmenu.table.borderTdTop",icon:"border-td-top",when:()=>!0,callback:t=>{t.executeTableTdBorderType(fr.TOP)}},{key:JS,i18nPath:"contextmenu.table.borderTdRight",icon:"border-td-right",when:()=>!0,callback:t=>{t.executeTableTdBorderType(fr.RIGHT)}},{key:GS,i18nPath:"contextmenu.table.borderTdBottom",icon:"border-td-bottom",when:()=>!0,callback:t=>{t.executeTableTdBorderType(fr.BOTTOM)}},{key:HS,i18nPath:"contextmenu.table.borderTdLeft",icon:"border-td-left",when:()=>!0,callback:t=>{t.executeTableTdBorderType(fr.LEFT)}},{key:$S,i18nPath:"contextmenu.table.borderTdForward",icon:"border-td-forward",when:()=>!0,callback:t=>{t.executeTableTdSlashType(Ss.FORWARD)}},{key:zS,i18nPath:"contextmenu.table.borderTdBack",icon:"border-td-back",when:()=>!0,callback:t=>{t.executeTableTdSlashType(Ss.BACK)}}]}]},{key:jS,i18nPath:"contextmenu.table.verticalAlign",icon:"vertical-align",when:t=>!t.isReadonly&&t.isInTable,childMenus:[{key:qS,i18nPath:"contextmenu.table.verticalAlignTop",icon:"vertical-align-top",when:()=>!0,callback:t=>{t.executeTableTdVerticalAlign(Ai.TOP)}},{key:eD,i18nPath:"contextmenu.table.verticalAlignMiddle",icon:"vertical-align-middle",when:()=>!0,callback:t=>{t.executeTableTdVerticalAlign(Ai.MIDDLE)}},{key:tD,i18nPath:"contextmenu.table.verticalAlignBottom",icon:"vertical-align-bottom",when:()=>!0,callback:t=>{t.executeTableTdVerticalAlign(Ai.BOTTOM)}}]},{key:nD,i18nPath:"contextmenu.table.insertRowCol",icon:"insert-row-col",when:t=>!t.isReadonly&&t.isInTable,childMenus:[{key:rD,i18nPath:"contextmenu.table.insertTopRow",icon:"insert-top-row",when:()=>!0,callback:t=>{t.executeInsertTableTopRow()}},{key:iD,i18nPath:"contextmenu.table.insertBottomRow",icon:"insert-bottom-row",when:()=>!0,callback:t=>{t.executeInsertTableBottomRow()}},{key:oD,i18nPath:"contextmenu.table.insertLeftCol",icon:"insert-left-col",when:()=>!0,callback:t=>{t.executeInsertTableLeftCol()}},{key:aD,i18nPath:"contextmenu.table.insertRightCol",icon:"insert-right-col",when:()=>!0,callback:t=>{t.executeInsertTableRightCol()}}]},{key:sD,i18nPath:"contextmenu.table.deleteRowCol",icon:"delete-row-col",when:t=>!t.isReadonly&&t.isInTable,childMenus:[{key:cD,i18nPath:"contextmenu.table.deleteRow",icon:"delete-row",when:()=>!0,callback:t=>{t.executeDeleteTableRow()}},{key:uD,i18nPath:"contextmenu.table.deleteCol",icon:"delete-col",when:()=>!0,callback:t=>{t.executeDeleteTableCol()}},{key:lD,i18nPath:"contextmenu.table.deleteTable",icon:"delete-table",when:()=>!0,callback:t=>{t.executeDeleteTable()}}]},{key:hD,i18nPath:"contextmenu.table.mergeCell",icon:"merge-cell",when:t=>!t.isReadonly&&t.isCrossRowCol,callback:t=>{t.executeMergeTableCell()}},{key:dD,i18nPath:"contextmenu.table.mergeCancelCell",icon:"merge-cancel-cell",when:t=>!t.isReadonly&&t.isInTable,callback:t=>{t.executeCancelMergeTableCell()}}];class pD{constructor(e,n){this._proxyContextMenuEvent=r=>{this.context=this._getContext();const i=this._filterMenuList(this.contextMenuList);i.some(a=>!a.isDivider)&&(this.dispose(),this._render({contextMenuList:i,left:r.x,top:r.y})),r.preventDefault()},this._handleSideEffect=r=>{if(this.contextMenuContainerList.length){const i=(r==null?void 0:r.composedPath()[0])||r.target;lu(i,a=>!!a&&a.nodeType===1&&a.getAttribute(ei)===ni.CONTEXTMENU,!0)||this.dispose()}},this.options=e.getOptions(),this.draw=e,this.command=n,this.range=e.getRange(),this.position=e.getPosition(),this.i18n=e.getI18n(),this.container=e.getContainer(),this.context=null,this.contextMenuList=[...ES,...fD,...VS,...wS,...PS],this.contextMenuContainerList=[],this.contextMenuRelationShip=new Map,this._addEvent()}getContextMenuList(){return this.contextMenuList}_addEvent(){this.container.addEventListener("contextmenu",this._proxyContextMenuEvent),document.addEventListener("mousedown",this._handleSideEffect)}removeEvent(){this.container.removeEventListener("contextmenu",this._proxyContextMenuEvent),document.removeEventListener("mousedown",this._handleSideEffect)}_filterMenuList(e){var i;const{contextMenuDisableKeys:n}=this.options,r=[];for(let o=0;o<e.length;o++){const a=e[o];a.disable||a.key&&n.includes(a.key)||(a.isDivider||(i=a.when)!=null&&i.call(a,this.context))&&r.push(a)}return r}_getContext(){const e=this.draw.isReadonly(),{isCrossRowCol:n,startIndex:r,endIndex:i}=this.range.getRange(),o=!!(~r||~i),a=o&&r!==i,{isTable:s,trIndex:c,tdIndex:u,index:l}=this.position.getPositionContext();let h=null;if(s){const m=this.draw.getOriginalElementList()[l]||null;m&&(h=Xt([m])[0])}const f=s&&!!n,d=this.draw.getElementList(),p=d[r]||null,g=d[i]||null,y=this.draw.getZone().getZone();return{startElement:p,endElement:g,isReadonly:e,editorHasSelection:a,editorTextFocus:o,isCrossRowCol:f,zone:y,isInTable:s,trIndex:c!=null?c:null,tdIndex:u!=null?u:null,tableElement:h}}_createContextMenuContainer(){const e=document.createElement("div");return e.classList.add(`${Ze}-contextmenu-container`),e.setAttribute(ei,ni.CONTEXTMENU),this.container.append(e),e}_render(e){var y;const{contextMenuList:n,left:r,top:i,parentMenuContainer:o}=e,a=this._createContextMenuContainer(),s=document.createElement("div");s.classList.add(`${Ze}-contextmenu-content`);let c=null;o&&this.contextMenuRelationShip.set(o,a);for(let R=0;R<n.length;R++){const m=n[R];if(m.isDivider){if(R!==0&&R!==n.length-1&&!((y=n[R-1])!=null&&y.isDivider)){const v=document.createElement("div");v.classList.add(`${Ze}-contextmenu-divider`),s.append(v)}}else{const v=document.createElement("div");if(v.classList.add(`${Ze}-contextmenu-item`),m.childMenus){const N=this._filterMenuList(m.childMenus);N.some(O=>!O.isDivider)&&(v.classList.add(`${Ze}-contextmenu-sub-item`),v.onmouseenter=()=>{this._setHoverStatus(v,!0),this._removeSubMenu(a);const O=v.getBoundingClientRect(),Q=O.left+O.width,ne=O.top;c=this._render({contextMenuList:N,left:Q,top:ne,parentMenuContainer:a})},v.onmouseleave=O=>{(!c||!c.contains(O.relatedTarget))&&this._setHoverStatus(v,!1)})}else v.onmouseenter=()=>{this._setHoverStatus(v,!0),this._removeSubMenu(a)},v.onmouseleave=()=>{this._setHoverStatus(v,!1)},v.onclick=()=>{m.callback&&this.context&&m.callback(this.command,this.context),this.dispose()};const x=document.createElement("i");v.append(x),m.icon&&x.classList.add(`${Ze}-contextmenu-${m.icon}`);const _=document.createElement("span"),E=m.i18nPath?this._formatName(this.i18n.t(m.i18nPath)):this._formatName(m.name||"");if(_.append(document.createTextNode(E)),v.append(_),m.shortCut){const N=document.createElement("span");N.classList.add(`${Ze}-shortcut`),N.append(document.createTextNode(m.shortCut)),v.append(N)}s.append(v)}}a.append(s),a.style.display="block";const u=window.innerWidth,l=a.getBoundingClientRect(),h=l.width,f=r+h>u?r-h:r;a.style.left=`${f}px`;const d=window.innerHeight,p=l.height,g=i+p>d?i-p:i;return a.style.top=`${g}px`,this.contextMenuContainerList.push(a),a}_removeSubMenu(e){const n=this.contextMenuRelationShip.get(e);n&&(this._removeSubMenu(n),n.remove(),this.contextMenuRelationShip.delete(e))}_setHoverStatus(e,n){var r;n?((r=e.parentNode)==null||r.querySelectorAll(`${Ze}-contextmenu-item`).forEach(i=>i.classList.remove("hover")),e.classList.add("hover")):e.classList.remove("hover")}_formatName(e){const n=Object.values(Y1),r=new RegExp(`${n.join("|")}`);let i=e;if(r.test(i)){const o=new RegExp(Y1.SELECTED_TEXT,"g");if(o.test(i)){const a=this.range.toString();i=i.replace(o,a)}}return i}registerContextMenuList(e){this.contextMenuList.push(...e)}dispose(){this.contextMenuContainerList.forEach(e=>e.remove()),this.contextMenuContainerList=[],this.contextMenuRelationShip.clear()}}const gD=[{key:Ke.X,ctrl:!0,shift:!0,callback:t=>{t.executeStrikeout()}},{key:Ke.LEFT_BRACKET,mod:!0,callback:t=>{t.executeSizeAdd()}},{key:Ke.RIGHT_BRACKET,mod:!0,callback:t=>{t.executeSizeMinus()}},{key:Ke.B,mod:!0,callback:t=>{t.executeBold()}},{key:Ke.I,mod:!0,callback:t=>{t.executeItalic()}},{key:Ke.U,mod:!0,callback:t=>{t.executeUnderline()}},{key:so?Ke.COMMA:Ke.RIGHT_ANGLE_BRACKET,mod:!0,shift:!0,callback:t=>{t.executeSuperscript()}},{key:so?Ke.PERIOD:Ke.LEFT_ANGLE_BRACKET,mod:!0,shift:!0,callback:t=>{t.executeSubscript()}},{key:Ke.L,mod:!0,callback:t=>{t.executeRowFlex(st.LEFT)}},{key:Ke.E,mod:!0,callback:t=>{t.executeRowFlex(st.CENTER)}},{key:Ke.R,mod:!0,callback:t=>{t.executeRowFlex(st.RIGHT)}},{key:Ke.J,mod:!0,callback:t=>{t.executeRowFlex(st.ALIGNMENT)}},{key:Ke.J,mod:!0,shift:!0,callback:t=>{t.executeRowFlex(st.JUSTIFY)}}],mD=[{key:Ke.ZERO,alt:!0,ctrl:!0,callback:t=>{t.executeTitle(null)}},{key:Ke.ONE,alt:!0,ctrl:!0,callback:t=>{t.executeTitle(mt.FIRST)}},{key:Ke.TWO,alt:!0,ctrl:!0,callback:t=>{t.executeTitle(mt.SECOND)}},{key:Ke.THREE,alt:!0,ctrl:!0,callback:t=>{t.executeTitle(mt.THIRD)}},{key:Ke.FOUR,alt:!0,ctrl:!0,callback:t=>{t.executeTitle(mt.FOURTH)}},{key:Ke.FIVE,alt:!0,ctrl:!0,callback:t=>{t.executeTitle(mt.FIFTH)}},{key:Ke.SIX,alt:!0,ctrl:!0,callback:t=>{t.executeTitle(mt.SIXTH)}}],RD=[{key:Ke.I,shift:!0,mod:!0,callback:t=>{t.executeList(ti.UL,ur.DISC)}},{key:Ke.U,shift:!0,mod:!0,callback:t=>{t.executeList(ti.OL)}}];class yD{constructor(e,n){this._globalKeydown=i=>{!this.globalShortcutList.length||this._execute(i,this.globalShortcutList)},this.command=n,this.globalShortcutList=[],this.agentShortcutList=[],this._addShortcutList([...gD,...mD,...RD]),this._addEvent(),e.getCursor().getAgentDom().addEventListener("keydown",this._agentKeydown.bind(this))}_addEvent(){document.addEventListener("keydown",this._globalKeydown)}removeEvent(){document.removeEventListener("keydown",this._globalKeydown)}_addShortcutList(e){for(let n=e.length-1;n>=0;n--){const r=e[n];r.isGlobal?this.globalShortcutList.unshift(r):this.agentShortcutList.unshift(r)}}registerShortcutList(e){this._addShortcutList(e)}_agentKeydown(e){!this.agentShortcutList.length||this._execute(e,this.agentShortcutList)}_execute(e,n){var r;for(let i=0;i<n.length;i++){const o=n[i];if((o.mod?kr(e)===!!o.mod:e.ctrlKey===!!o.ctrl&&e.metaKey===!!o.meta)&&e.shiftKey===!!o.shift&&e.altKey===!!o.alt&&e.key.toLowerCase()===o.key.toLowerCase()){o.disable||((r=o==null?void 0:o.callback)==null||r.call(o,this.command),e.preventDefault());break}}}}class vD{constructor(e){this.editor=e}use(e,n){e(this.editor,n)}}class bD{constructor(){this.eventHub=new Map}on(e,n){if(!e||typeof n!="function")return;const r=this.eventHub.get(e)||new Set;r.add(n),this.eventHub.set(e,r)}emit(e,n){if(!e)return;const r=this.eventHub.get(e);if(!!r){if(r.size===1)return[...r][0](n);r.forEach(i=>i(n))}}off(e,n){if(!e||typeof n!="function")return;const r=this.eventHub.get(e);!r||r.delete(n)}isSubscribe(e){const n=this.eventHub.get(e);return!!n&&n.size>0}}class xD{}class wD{constructor(e,n,r={}){const i=wR(r);n=Pt(n);let o=[],a=[],s=[];Array.isArray(n)?a=n:(o=n.header||[],a=n.main,s=n.footer||[]),[o,a,s].forEach(d=>{dr(d,{editorOptions:i})}),this.listener=new vS,this.eventBus=new bD,this.override=new xD;const u=new nS(e,i,{header:o,main:a,footer:s},this.listener,this.eventBus,this.override);this.command=new rS(new yS(u));const l=new pD(u,this.command),h=new yD(u,this.command);this.register=new bS({contextMenu:l,shortcut:h,i18n:u.getI18n()}),this.destroy=()=>{u.destroy(),h.removeEvent(),l.removeEvent()};const f=new vD(this);this.use=f.use.bind(f)}}class fn{constructor(e){this.options=e,this.mask=null,this.container=null,this.inputList=[],this._render()}_render(){var y;const{title:e,data:n,onClose:r,onCancel:i,onConfirm:o}=this.options,a=document.createElement("div");a.classList.add("dialog-mask"),a.setAttribute(ei,ni.COMPONENT),document.body.append(a);const s=document.createElement("div");s.classList.add("dialog-container"),s.setAttribute(ei,ni.COMPONENT);const c=document.createElement("div");c.classList.add("dialog"),s.append(c);const u=document.createElement("div");u.classList.add("dialog-title");const l=document.createElement("span");l.append(document.createTextNode(e));const h=document.createElement("i");h.onclick=()=>{r&&r(),this._dispose()},u.append(l),u.append(h),c.append(u);const f=document.createElement("div");f.classList.add("dialog-option");for(let R=0;R<n.length;R++){const m=n[R],v=document.createElement("div");if(v.classList.add("dialog-option__item"),m.label){const _=document.createElement("span");_.append(document.createTextNode(m.label)),v.append(_),m.required&&_.classList.add("dialog-option__item--require")}let x;m.type==="select"?(x=document.createElement("select"),(y=m.options)==null||y.forEach(_=>{const E=document.createElement("option");E.value=_.value,E.label=_.label,x.append(E)})):m.type==="textarea"?x=document.createElement("textarea"):(x=document.createElement("input"),x.type=m.type),m.width&&(x.style.width=`${m.width}px`),m.height&&(x.style.height=`${m.height}px`),x.name=m.name,x.value=m.value||"",x instanceof HTMLSelectElement||(x.placeholder=m.placeholder||""),v.append(x),f.append(v),this.inputList.push(x)}c.append(f);const d=document.createElement("div");d.classList.add("dialog-menu");const p=document.createElement("button");p.classList.add("dialog-menu__cancel"),p.append(document.createTextNode("\u53D6\u6D88")),p.type="button",p.onclick=()=>{i&&i(),this._dispose()},d.append(p);const g=document.createElement("button");g.append(document.createTextNode("\u786E\u5B9A")),g.type="submit",g.onclick=()=>{if(o){const R=this.inputList.map(m=>({name:m.name,value:m.value}));o(R)}this._dispose()},d.append(g),c.append(d),document.body.append(s),this.container=s,this.mask=a}_dispose(){var e,n;(e=this.mask)==null||e.remove(),(n=this.container)==null||n.remove()}}function TD(t){switch(t){case"comment":case"prolog":case"doctype":case"cdata":return{color:"#008000",italic:!0};case"namespace":return{opacity:.7};case"string":return{color:"#A31515"};case"punctuation":case"operator":return{color:"#393A34"};case"url":case"symbol":case"number":case"boolean":case"variable":case"constant":case"inserted":return{color:"#36acaa"};case"atrule":case"keyword":case"attr-value":return{color:"#0000ff"};case"function":return{color:"#b9a40a"};case"deleted":case"tag":return{color:"#9a050f"};case"selector":return{color:"#00009f"};case"important":return{color:"#e90",bold:!0};case"italic":return{italic:!0};case"class-name":case"property":return{color:"#2B91AF"};case"attr-name":case"regex":case"entity":return{color:"#ff0000"};default:return null}}function SD(t){const e=[];function n(r){for(let i=0;i<r.length;i++){const o=r[i];if(typeof o=="string")e.push({content:o});else if(Array.isArray(o.content))n(o.content);else{const{type:a,content:s}=o;typeof s=="string"&&e.push({type:a,content:s,...TD(a)})}}}return n(t),e}class DD{constructor(e){this.MAX_RECORD_COUNT=1e3,this.DEFAULT_WIDTH=390,this.DEFAULT_HEIGHT=180,this.undoStack=[],this.x=0,this.y=0,this.isDrawing=!1,this.isDrawn=!1,this.linePoints=[],this.options=e,this.preTimeStamp=0,this.dpr=window.devicePixelRatio,this.canvasWidth=(e.width||this.DEFAULT_WIDTH)*this.dpr,this.canvasHeight=(e.height||this.DEFAULT_HEIGHT)*this.dpr;const{mask:n,container:r,trashContainer:i,undoContainer:o,canvas:a}=this._render();this.mask=n,this.container=r,this.trashContainer=i,this.undoContainer=o,this.canvas=a,this.ctx=a.getContext("2d"),this.ctx.scale(this.dpr,this.dpr),this.ctx.lineCap="round",this._bindEvent(),this._clearUndoFn()}_render(){const{onClose:e,onCancel:n,onConfirm:r}=this.options,i=document.createElement("div");i.classList.add("signature-mask"),i.setAttribute(ei,ni.COMPONENT),document.body.append(i);const o=document.createElement("div");o.classList.add("signature-container"),o.setAttribute(ei,ni.COMPONENT);const a=document.createElement("div");a.classList.add("signature"),o.append(a);const s=document.createElement("div");s.classList.add("signature-title");const c=document.createElement("span");c.append(document.createTextNode("\u63D2\u5165\u7B7E\u540D"));const u=document.createElement("i");u.onclick=()=>{e&&e(),this._dispose()},s.append(c),s.append(u),a.append(s);const l=document.createElement("div");l.classList.add("signature-operation");const h=document.createElement("div");h.classList.add("signature-operation__undo");const f=document.createElement("i"),d=document.createElement("span");d.innerText="\u64A4\u9500",h.append(f),h.append(d),l.append(h);const p=document.createElement("div");p.classList.add("signature-operation__trash");const g=document.createElement("i"),y=document.createElement("span");y.innerText="\u6E05\u7A7A",p.append(g),p.append(y),l.append(p),a.append(l);const R=document.createElement("div");R.classList.add("signature-canvas");const m=document.createElement("canvas");m.width=this.canvasWidth,m.height=this.canvasHeight,m.style.width=`${this.canvasWidth/this.dpr}px`,m.style.height=`${this.canvasHeight/this.dpr}px`,R.append(m),a.append(R);const v=document.createElement("div");v.classList.add("signature-menu");const x=document.createElement("button");x.classList.add("signature-menu__cancel"),x.append(document.createTextNode("\u53D6\u6D88")),x.type="button",x.onclick=()=>{n&&n(),this._dispose()},v.append(x);const _=document.createElement("button");return _.append(document.createTextNode("\u786E\u5B9A")),_.type="submit",_.onclick=()=>{r&&r(this._toData()),this._dispose()},v.append(_),a.append(v),document.body.append(o),this.container=o,this.mask=i,{mask:i,canvas:m,container:o,trashContainer:p,undoContainer:h}}_bindEvent(){this.trashContainer.onclick=this._clearCanvas.bind(this),this.undoContainer.onclick=this._undo.bind(this),this.canvas.onmousedown=this._startDraw.bind(this),this.canvas.onmousemove=this._draw.bind(this),this.container.onmouseup=this._stopDraw.bind(this)}_undo(){this.undoStack.length>1&&(this.undoStack.pop(),this.undoStack.length&&this.undoStack[this.undoStack.length-1]())}_saveUndoFn(e){for(this.undoStack.push(e);this.undoStack.length>this.MAX_RECORD_COUNT;)this.undoStack.shift()}_clearUndoFn(){const e=()=>{this.ctx.clearRect(0,0,this.canvasWidth,this.canvasHeight)};this.undoStack=[e]}_clearCanvas(){this._clearUndoFn(),this.ctx.clearRect(0,0,this.canvasWidth,this.canvasHeight)}_startDraw(e){this.isDrawing=!0,this.x=e.offsetX,this.y=e.offsetY,this.ctx.lineWidth=1}_draw(e){if(!this.isDrawing)return;const n=performance.now(),i=Math.sqrt(e.movementX**2+e.movementY**2)/(n-this.preTimeStamp),a=Math.min(5,Math.max(1,5-i*3)),s=.2;this.ctx.lineWidth=this.ctx.lineWidth*(1-s)+a*s;const{offsetX:c,offsetY:u}=e;this.ctx.beginPath(),this.ctx.moveTo(this.x,this.y),this.ctx.lineTo(c,u),this.ctx.stroke(),this.x=c,this.y=u,this.linePoints.push([c,u]),this.isDrawn=!0,this.preTimeStamp=n}_stopDraw(){if(this.isDrawing=!1,this.isDrawn){const e=this.ctx.getImageData(0,0,this.canvasWidth,this.canvasHeight),n=this;this._saveUndoFn(function(){n.ctx.clearRect(0,0,n.canvasWidth,n.canvasHeight),n.ctx.putImageData(e,0,0)}),this.isDrawn=!1}}_toData(){if(!this.linePoints.length)return null;const e=this.linePoints[0][0],n=this.linePoints[0][1];let r=e,i=n,o=e,a=n;for(let p=0;p<this.linePoints.length;p++){const g=this.linePoints[p];r>g[0]&&(r=g[0]),o<g[0]&&(o=g[0]),i>g[1]&&(i=g[1]),a<g[1]&&(a=g[1])}const s=this.ctx.lineWidth;r=r<s?0:r-s,i=i<s?0:i-s,o=o+s,a=a+s;const c=o-r,u=a-i,l=this.ctx.getImageData(r*this.dpr,i*this.dpr,c*this.dpr,u*this.dpr),h=document.createElement("canvas");return h.style.width=`${c}px`,h.style.height=`${u}px`,h.width=c*this.dpr,h.height=u*this.dpr,h.getContext("2d").putImageData(l,0,0),{value:h.toDataURL(),width:c,height:u}}_dispose(){this.mask.remove(),this.container.remove()}}function _D(t,e){let n;return function(...r){n&&window.clearTimeout(n),n=window.setTimeout(()=>{t.apply(this,r)},e)}}function OD(t,e){if(!e){t.scrollTop=0;return}const n=[];let r=e.offsetParent;for(;r&&t!==r&&t.contains(r);)n.push(r),r=r.offsetParent;const i=e.offsetTop+n.reduce((c,u)=>c+u.offsetTop,0),o=i+e.offsetHeight,a=t.scrollTop,s=a+t.clientHeight;i<a?t.scrollTop=i:o>s&&(t.scrollTop=o-t.clientHeight)}function B1(t){(window.requestIdleCallback||window.setTimeout)(()=>{t()})}var TR={exports:{}},SR={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]},DR={exports:{}},ED=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},ID=ED,ND=Array.prototype.concat,FD=Array.prototype.slice,k1=DR.exports=function(e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];ID(o)?n=ND.call(n,FD.call(o)):n.push(o)}return n};k1.wrap=function(t){return function(){return t(k1(arguments))}};var bs=SR,Us=DR.exports,_R=Object.hasOwnProperty,OR=Object.create(null);for(var Yl in bs)_R.call(bs,Yl)&&(OR[bs[Yl]]=Yl);var pr=TR.exports={to:{},get:{}};pr.get=function(t){var e=t.substring(0,3).toLowerCase(),n,r;switch(e){case"hsl":n=pr.get.hsl(t),r="hsl";break;case"hwb":n=pr.get.hwb(t),r="hwb";break;default:n=pr.get.rgb(t),r="rgb";break}return n?{model:r,value:n}:null};pr.get.rgb=function(t){if(!t)return null;var e=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,r=/^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*)?\)$/,o=/^(\w+)$/,a=[0,0,0,1],s,c,u;if(s=t.match(n)){for(u=s[2],s=s[1],c=0;c<3;c++){var l=c*2;a[c]=parseInt(s.slice(l,l+2),16)}u&&(a[3]=parseInt(u,16)/255)}else if(s=t.match(e)){for(s=s[1],u=s[3],c=0;c<3;c++)a[c]=parseInt(s[c]+s[c],16);u&&(a[3]=parseInt(u+u,16)/255)}else if(s=t.match(r)){for(c=0;c<3;c++)a[c]=parseInt(s[c+1],0);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else if(s=t.match(i)){for(c=0;c<3;c++)a[c]=Math.round(parseFloat(s[c+1])*2.55);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else return(s=t.match(o))?s[1]==="transparent"?[0,0,0,0]:_R.call(bs,s[1])?(a=bs[s[1]],a[3]=1,a):null:null;for(c=0;c<3;c++)a[c]=Ui(a[c],0,255);return a[3]=Ui(a[3],0,1),a};pr.get.hsl=function(t){if(!t)return null;var e=/^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*)?\)$/,n=t.match(e);if(n){var r=parseFloat(n[4]),i=(parseFloat(n[1])%360+360)%360,o=Ui(parseFloat(n[2]),0,100),a=Ui(parseFloat(n[3]),0,100),s=Ui(isNaN(r)?1:r,0,1);return[i,o,a,s]}return null};pr.get.hwb=function(t){if(!t)return null;var e=/^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*)?\)$/,n=t.match(e);if(n){var r=parseFloat(n[4]),i=(parseFloat(n[1])%360+360)%360,o=Ui(parseFloat(n[2]),0,100),a=Ui(parseFloat(n[3]),0,100),s=Ui(isNaN(r)?1:r,0,1);return[i,o,a,s]}return null};pr.to.hex=function(){var t=Us(arguments);return"#"+Sc(t[0])+Sc(t[1])+Sc(t[2])+(t[3]<1?Sc(Math.round(t[3]*255)):"")};pr.to.rgb=function(){var t=Us(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};pr.to.rgb.percent=function(){var t=Us(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"};pr.to.hsl=function(){var t=Us(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};pr.to.hwb=function(){var t=Us(arguments),e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};pr.to.keyword=function(t){return OR[t.slice(0,3)]};function Ui(t,e,n){return Math.min(Math.max(e,t),n)}function Sc(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}const _s=SR,ER={};for(const t of Object.keys(_s))ER[_s[t]]=t;const Be={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 IR=Be;for(const t of Object.keys(Be)){if(!("channels"in Be[t]))throw new Error("missing channels property: "+t);if(!("labels"in Be[t]))throw new Error("missing channel labels property: "+t);if(Be[t].labels.length!==Be[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=Be[t];delete Be[t].channels,delete Be[t].labels,Object.defineProperty(Be[t],"channels",{value:e}),Object.defineProperty(Be[t],"labels",{value:n})}Be.rgb.hsl=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=o-i;let s,c;o===i?s=0:e===o?s=(n-r)/a:n===o?s=2+(r-e)/a:r===o&&(s=4+(e-n)/a),s=Math.min(s*60,360),s<0&&(s+=360);const u=(i+o)/2;return o===i?c=0:u<=.5?c=a/(o+i):c=a/(2-o-i),[s,c*100,u*100]};Be.rgb.hsv=function(t){let e,n,r,i,o;const a=t[0]/255,s=t[1]/255,c=t[2]/255,u=Math.max(a,s,c),l=u-Math.min(a,s,c),h=function(f){return(u-f)/6/l+1/2};return l===0?(i=0,o=0):(o=l/u,e=h(a),n=h(s),r=h(c),a===u?i=r-n:s===u?i=1/3+e-r:c===u&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,u*100]};Be.rgb.hwb=function(t){const e=t[0],n=t[1];let r=t[2];const i=Be.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(n,r));return r=1-1/255*Math.max(e,Math.max(n,r)),[i,o*100,r*100]};Be.rgb.cmyk=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(1-e,1-n,1-r),o=(1-e-i)/(1-i)||0,a=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[o*100,a*100,s*100,i*100]};function PD(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}Be.rgb.keyword=function(t){const e=ER[t];if(e)return e;let n=1/0,r;for(const i of Object.keys(_s)){const o=_s[i],a=PD(t,o);a<n&&(n=a,r=i)}return r};Be.keyword.rgb=function(t){return _s[t]};Be.rgb.xyz=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=e*.4124+n*.3576+r*.1805,o=e*.2126+n*.7152+r*.0722,a=e*.0193+n*.1192+r*.9505;return[i*100,o*100,a*100]};Be.rgb.lab=function(t){const e=Be.rgb.xyz(t);let n=e[0],r=e[1],i=e[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*r-16,a=500*(n-r),s=200*(r-i);return[o,a,s]};Be.hsl.rgb=function(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100;let i,o,a;if(n===0)return a=r*255,[a,a,a];r<.5?i=r*(1+n):i=r+n-r*n;const s=2*r-i,c=[0,0,0];for(let u=0;u<3;u++)o=e+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?a=s+(i-s)*6*o:2*o<1?a=i:3*o<2?a=s+(i-s)*(2/3-o)*6:a=s,c[u]=a*255;return c};Be.hsl.hsv=function(t){const e=t[0];let n=t[1]/100,r=t[2]/100,i=n;const o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;const a=(r+n)/2,s=r===0?2*i/(o+i):2*n/(r+n);return[e,s*100,a*100]};Be.hsv.rgb=function(t){const e=t[0]/60,n=t[1]/100;let r=t[2]/100;const i=Math.floor(e)%6,o=e-Math.floor(e),a=255*r*(1-n),s=255*r*(1-n*o),c=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,c,a];case 1:return[s,r,a];case 2:return[a,r,c];case 3:return[a,s,r];case 4:return[c,a,r];case 5:return[r,a,s]}};Be.hsv.hsl=function(t){const e=t[0],n=t[1]/100,r=t[2]/100,i=Math.max(r,.01);let o,a;a=(2-n)*r;const s=(2-n)*i;return o=n*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};Be.hwb.rgb=function(t){const e=t[0]/360;let n=t[1]/100,r=t[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const a=Math.floor(6*e),s=1-r;o=6*e-a,(a&1)!==0&&(o=1-o);const c=n+o*(s-n);let u,l,h;switch(a){default:case 6:case 0:u=s,l=c,h=n;break;case 1:u=c,l=s,h=n;break;case 2:u=n,l=s,h=c;break;case 3:u=n,l=c,h=s;break;case 4:u=c,l=n,h=s;break;case 5:u=s,l=n,h=c;break}return[u*255,l*255,h*255]};Be.cmyk.rgb=function(t){const e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100,o=1-Math.min(1,e*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[o*255,a*255,s*255]};Be.xyz.rgb=function(t){const e=t[0]/100,n=t[1]/100,r=t[2]/100;let i,o,a;return i=e*3.2406+n*-1.5372+r*-.4986,o=e*-.9689+n*1.8758+r*.0415,a=e*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]};Be.xyz.lab=function(t){let e=t[0],n=t[1],r=t[2];e/=95.047,n/=100,r/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,o=500*(e-n),a=200*(n-r);return[i,o,a]};Be.lab.xyz=function(t){const e=t[0],n=t[1],r=t[2];let i,o,a;o=(e+16)/116,i=n/500+o,a=o-r/200;const s=o**3,c=i**3,u=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]};Be.lab.lch=function(t){const e=t[0],n=t[1],r=t[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const a=Math.sqrt(n*n+r*r);return[e,a,i]};Be.lch.lab=function(t){const e=t[0],n=t[1],i=t[2]/360*2*Math.PI,o=n*Math.cos(i),a=n*Math.sin(i);return[e,o,a]};Be.rgb.ansi16=function(t,e=null){const[n,r,i]=t;let o=e===null?Be.rgb.hsv(t)[2]:e;if(o=Math.round(o/50),o===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(a+=60),a};Be.hsv.ansi16=function(t){return Be.rgb.ansi16(Be.hsv.rgb(t),t[2])};Be.rgb.ansi256=function(t){const e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};Be.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const n=(~~(t>50)+1)*.5,r=(e&1)*n*255,i=(e>>1&1)*n*255,o=(e>>2&1)*n*255;return[r,i,o]};Be.ansi256.rgb=function(t){if(t>=232){const o=(t-232)*10+8;return[o,o,o]}t-=16;let e;const n=Math.floor(t/36)/5*255,r=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[n,r,i]};Be.rgb.hex=function(t){const n=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};Be.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let n=e[0];e[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const r=parseInt(n,16),i=r>>16&255,o=r>>8&255,a=r&255;return[i,o,a]};Be.rgb.hcg=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.max(Math.max(e,n),r),o=Math.min(Math.min(e,n),r),a=i-o;let s,c;return a<1?s=o/(1-a):s=0,a<=0?c=0:i===e?c=(n-r)/a%6:i===n?c=2+(r-e)/a:c=4+(e-n)/a,c/=6,c%=1,[c*360,a*100,s*100]};Be.hsl.hcg=function(t){const e=t[1]/100,n=t[2]/100,r=n<.5?2*e*n:2*e*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[t[0],r*100,i*100]};Be.hsv.hcg=function(t){const e=t[1]/100,n=t[2]/100,r=e*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],r*100,i*100]};Be.hcg.rgb=function(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],o=e%1*6,a=o%1,s=1-a;let c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,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]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-n)*r,[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]};Be.hcg.hsv=function(t){const e=t[1]/100,n=t[2]/100,r=e+n*(1-e);let i=0;return r>0&&(i=e/r),[t[0],i*100,r*100]};Be.hcg.hsl=function(t){const e=t[1]/100,r=t[2]/100*(1-e)+.5*e;let i=0;return r>0&&r<.5?i=e/(2*r):r>=.5&&r<1&&(i=e/(2*(1-r))),[t[0],i*100,r*100]};Be.hcg.hwb=function(t){const e=t[1]/100,n=t[2]/100,r=e+n*(1-e);return[t[0],(r-e)*100,(1-r)*100]};Be.hwb.hcg=function(t){const e=t[1]/100,n=t[2]/100,r=1-n,i=r-e;let o=0;return i<1&&(o=(r-i)/(1-i)),[t[0],i*100,o*100]};Be.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};Be.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};Be.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};Be.gray.hsl=function(t){return[0,0,t[0]]};Be.gray.hsv=Be.gray.hsl;Be.gray.hwb=function(t){return[0,100,t[0]]};Be.gray.cmyk=function(t){return[0,0,0,t[0]]};Be.gray.lab=function(t){return[t[0],0,0]};Be.gray.hex=function(t){const e=Math.round(t[0]/100*255)&255,r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r};Be.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};const gu=IR;function LD(){const t={},e=Object.keys(gu);for(let n=e.length,r=0;r<n;r++)t[e[r]]={distance:-1,parent:null};return t}function MD(t){const e=LD(),n=[t];for(e[t].distance=0;n.length;){const r=n.pop(),i=Object.keys(gu[r]);for(let o=i.length,a=0;a<o;a++){const s=i[a],c=e[s];c.distance===-1&&(c.distance=e[r].distance+1,c.parent=r,n.unshift(s))}}return e}function CD(t,e){return function(n){return e(t(n))}}function AD(t,e){const n=[e[t].parent,t];let r=gu[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)n.unshift(e[i].parent),r=CD(gu[e[i].parent][i],r),i=e[i].parent;return r.conversion=n,r}var UD=function(t){const e=MD(t),n={},r=Object.keys(e);for(let i=r.length,o=0;o<i;o++){const a=r[o];e[a].parent!==null&&(n[a]=AD(a,e))}return n};const Rd=IR,WD=UD,Ho={},XD=Object.keys(Rd);function VD(t){const e=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function YD(t){const e=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=t(n);if(typeof i=="object")for(let o=i.length,a=0;a<o;a++)i[a]=Math.round(i[a]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}XD.forEach(t=>{Ho[t]={},Object.defineProperty(Ho[t],"channels",{value:Rd[t].channels}),Object.defineProperty(Ho[t],"labels",{value:Rd[t].labels});const e=WD(t);Object.keys(e).forEach(r=>{const i=e[r];Ho[t][r]=YD(i),Ho[t][r].raw=VD(i)})});var BD=Ho;const Go=TR.exports,lr=BD,NR=["keyword","gray","hex"],yd={};for(const t of Object.keys(lr))yd[[...lr[t].labels].sort().join("")]=t;const mu={};function mn(t,e){if(!(this instanceof mn))return new mn(t,e);if(e&&e in NR&&(e=null),e&&!(e in lr))throw new Error("Unknown model: "+e);let n,r;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof mn)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){const i=Go.get(t);if(i===null)throw new Error("Unable to parse color from string: "+t);this.model=i.model,r=lr[this.model].channels,this.color=i.value.slice(0,r),this.valpha=typeof i.value[r]=="number"?i.value[r]:1}else if(t.length>0){this.model=e||"rgb",r=lr[this.model].channels;const i=Array.prototype.slice.call(t,0,r);this.color=vd(i,r),this.valpha=typeof t[r]=="number"?t[r]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(t);"alpha"in t&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);const o=i.sort().join("");if(!(o in yd))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=yd[o];const{labels:a}=lr[this.model],s=[];for(n=0;n<a.length;n++)s.push(t[a[n]]);this.color=vd(s)}if(mu[this.model])for(r=lr[this.model].channels,n=0;n<r;n++){const i=mu[this.model][n];i&&(this.color[n]=i(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}mn.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in Go.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);const n=e.valpha===1?e.color:[...e.color,this.valpha];return Go.to[e.model](n)},percentString(t){const e=this.rgb().round(typeof t=="number"?t:1),n=e.valpha===1?e.color:[...e.color,this.valpha];return Go.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:e}=lr[this.model],{labels:n}=lr[this.model];for(let r=0;r<e;r++)t[n[r]]=this.color[r];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new mn([...this.color.map(ZD(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new mn([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:Zt("rgb",0,rn(255)),green:Zt("rgb",1,rn(255)),blue:Zt("rgb",2,rn(255)),hue:Zt(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:Zt("hsl",1,rn(100)),lightness:Zt("hsl",2,rn(100)),saturationv:Zt("hsv",1,rn(100)),value:Zt("hsv",2,rn(100)),chroma:Zt("hcg",1,rn(100)),gray:Zt("hcg",2,rn(100)),white:Zt("hwb",1,rn(100)),wblack:Zt("hwb",2,rn(100)),cyan:Zt("cmyk",0,rn(100)),magenta:Zt("cmyk",1,rn(100)),yellow:Zt("cmyk",2,rn(100)),black:Zt("cmyk",3,rn(100)),x:Zt("xyz",0,rn(95.047)),y:Zt("xyz",1,rn(100)),z:Zt("xyz",2,rn(108.833)),l:Zt("lab",0,rn(100)),a:Zt("lab",1),b:Zt("lab",2),keyword(t){return t!==void 0?new mn(t):lr[this.model].keyword(this.color)},hex(t){return t!==void 0?new mn(t):Go.to.hex(this.rgb().round().color)},hexa(t){if(t!==void 0)return new mn(t);const e=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),Go.to.hex(e)+n},rgbNumber(){const t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){const t=this.rgb().color,e=[];for(const[n,r]of t.entries()){const i=r/255;e[n]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return mn.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let n=e.color[0];return n=(n+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const n=t.rgb(),r=this.rgb(),i=e===void 0?.5:e,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,c=1-s;return mn.rgb(s*n.red()+c*r.red(),s*n.green()+c*r.green(),s*n.blue()+c*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const t of Object.keys(lr)){if(NR.includes(t))continue;const{channels:e}=lr[t];mn.prototype[t]=function(...n){return this.model===t?new mn(this):n.length>0?new mn(n,t):new mn([...QD(lr[this.model][t].raw(this.color)),this.valpha],t)},mn[t]=function(...n){let r=n[0];return typeof r=="number"&&(r=vd(n,e)),new mn(r,t)}}function kD(t,e){return Number(t.toFixed(e))}function ZD(t){return function(e){return kD(e,t)}}function Zt(t,e,n){t=Array.isArray(t)?t:[t];for(const r of t)(mu[r]||(mu[r]=[]))[e]=n;return t=t[0],function(r){let i;return r!==void 0?(n&&(r=n(r)),i=this[t](),i.color[e]=r,i):(i=this[t]().color[e],n&&(i=n(i)),i)}}function rn(t){return function(e){return Math.max(0,Math.min(t,e))}}function QD(t){return Array.isArray(t)?t:[t]}function vd(t,e){for(let n=0;n<e;n++)typeof t[n]!="number"&&(t[n]=0);return t}var KD=mn,Z1=KD,HD=Object.defineProperty,GD=Object.defineProperties,JD=Object.getOwnPropertyDescriptors,Q1=Object.getOwnPropertySymbols,zD=Object.prototype.hasOwnProperty,$D=Object.prototype.propertyIsEnumerable,bd=(t,e,n)=>e in t?HD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dt=(t,e)=>{for(var n in e||(e={}))zD.call(e,n)&&bd(t,n,e[n]);if(Q1)for(var n of Q1(e))$D.call(e,n)&&bd(t,n,e[n]);return t},fa=(t,e)=>GD(t,JD(e)),xe=(t,e,n)=>(bd(t,typeof e!="symbol"?e+"":e,n),n),Dc=(t,e,n)=>new Promise((r,i)=>{var o=c=>{try{s(n.next(c))}catch(u){i(u)}},a=c=>{try{s(n.throw(c))}catch(u){i(u)}},s=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,a);s((n=n.apply(t,e)).next())});class Ru{constructor(e){xe(this,"rootKey"),this.rootKey=e}}const jD=Object.seal({});class be extends Ru{constructor(e){super(e),xe(this,"root"),this.root=new Array}prepForXml(e){var n;e.stack.push(this);const r=this.root.map(i=>i instanceof Ru?i.prepForXml(e):i).filter(i=>i!==void 0);return e.stack.pop(),{[this.rootKey]:r.length?r.length===1&&((n=r[0])==null?void 0:n._attr)?r[0]:r:jD}}addChildElement(e){return this.root.push(e),this}}class vi extends be{prepForXml(e){const n=super.prepForXml(e);if(n&&(typeof n[this.rootKey]!="object"||Object.keys(n[this.rootKey]).length))return n}}class Ue extends Ru{constructor(e){super("_attr"),xe(this,"xmlKeys"),this.root=e}prepForXml(e){const n={};return Object.keys(this.root).forEach(r=>{const i=this.root[r];if(i!==void 0){const o=this.xmlKeys&&this.xmlKeys[r]||r;n[o]=i}}),{_attr:n}}}class bi extends Ru{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:r})=>r!==void 0).reduce((r,{key:i,value:o})=>fa(dt({},r),{[i]:o}),{})}}}class Qt extends Ue{constructor(){super(...arguments),xe(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 Kr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function FR(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var PR={},uf={exports:{}},aa=typeof Reflect=="object"?Reflect:null,K1=aa&&typeof aa.apply=="function"?aa.apply:function(e,n,r){return Function.prototype.apply.call(e,n,r)},eu;aa&&typeof aa.ownKeys=="function"?eu=aa.ownKeys:Object.getOwnPropertySymbols?eu=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:eu=function(e){return Object.getOwnPropertyNames(e)};function qD(t){console&&console.warn&&console.warn(t)}var LR=Number.isNaN||function(e){return e!==e};function Et(){Et.init.call(this)}uf.exports=Et;uf.exports.once=r_;Et.EventEmitter=Et;Et.prototype._events=void 0;Et.prototype._eventsCount=0;Et.prototype._maxListeners=void 0;var H1=10;function Au(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(Et,"defaultMaxListeners",{enumerable:!0,get:function(){return H1},set:function(t){if(typeof t!="number"||t<0||LR(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");H1=t}});Et.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};Et.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||LR(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function MR(t){return t._maxListeners===void 0?Et.defaultMaxListeners:t._maxListeners}Et.prototype.getMaxListeners=function(){return MR(this)};Et.prototype.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var i=e==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var a;if(n.length>0&&(a=n[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(c===void 0)return!1;if(typeof c=="function")K1(c,this,n);else for(var u=c.length,l=XR(c,u),r=0;r<u;++r)K1(l[r],this,n);return!0};function CR(t,e,n,r){var i,o,a;if(Au(n),o=t._events,o===void 0?(o=t._events=Object.create(null),t._eventsCount=0):(o.newListener!==void 0&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]),a===void 0)a=o[e]=n,++t._eventsCount;else if(typeof a=="function"?a=o[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),i=MR(t),i>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=a.length,qD(s)}return t}Et.prototype.addListener=function(e,n){return CR(this,e,n,!1)};Et.prototype.on=Et.prototype.addListener;Et.prototype.prependListener=function(e,n){return CR(this,e,n,!0)};function e_(){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 AR(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=e_.bind(r);return i.listener=n,r.wrapFn=i,i}Et.prototype.once=function(e,n){return Au(n),this.on(e,AR(this,e,n)),this};Et.prototype.prependOnceListener=function(e,n){return Au(n),this.prependListener(e,AR(this,e,n)),this};Et.prototype.removeListener=function(e,n){var r,i,o,a,s;if(Au(n),i=this._events,i===void 0)return this;if(r=i[e],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||n));else if(typeof r!="function"){for(o=-1,a=r.length-1;a>=0;a--)if(r[a]===n||r[a].listener===n){s=r[a].listener,o=a;break}if(o<0)return this;o===0?r.shift():t_(r,o),r.length===1&&(i[e]=r[0]),i.removeListener!==void 0&&this.emit("removeListener",e,s||n)}return this};Et.prototype.off=Et.prototype.removeListener;Et.prototype.removeAllListeners=function(e){var n,r,i;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var o=Object.keys(r),a;for(i=0;i<o.length;++i)a=o[i],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[e],typeof n=="function")this.removeListener(e,n);else if(n!==void 0)for(i=n.length-1;i>=0;i--)this.removeListener(e,n[i]);return this};function UR(t,e,n){var r=t._events;if(r===void 0)return[];var i=r[e];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?n_(i):XR(i,i.length)}Et.prototype.listeners=function(e){return UR(this,e,!0)};Et.prototype.rawListeners=function(e){return UR(this,e,!1)};Et.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):WR.call(t,e)};Et.prototype.listenerCount=WR;function WR(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Et.prototype.eventNames=function(){return this._eventsCount>0?eu(this._events):[]};function XR(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function t_(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function n_(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function r_(t,e){return new Promise(function(n,r){function i(a){t.removeListener(e,o),r(a)}function o(){typeof t.removeListener=="function"&&t.removeListener("error",i),n([].slice.call(arguments))}VR(t,e,o,{once:!0}),e!=="error"&&i_(t,i,{once:!0})})}function i_(t,e,n){typeof t.on=="function"&&VR(t,"error",e,n)}function VR(t,e,n,r){if(typeof t.on=="function")r.once?t.once(e,n):t.on(e,n);else if(typeof t.addEventListener=="function")t.addEventListener(e,function i(o){r.once&&t.removeEventListener(e,i),n(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}var lf=uf.exports,xd={exports:{}};typeof Object.create=="function"?xd.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:xd.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}};var xo=xd.exports;function o_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var YR={exports:{}},jt=YR.exports={},Yr,Br;function wd(){throw new Error("setTimeout has not been defined")}function Td(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Yr=setTimeout:Yr=wd}catch{Yr=wd}try{typeof clearTimeout=="function"?Br=clearTimeout:Br=Td}catch{Br=Td}})();function BR(t){if(Yr===setTimeout)return setTimeout(t,0);if((Yr===wd||!Yr)&&setTimeout)return Yr=setTimeout,setTimeout(t,0);try{return Yr(t,0)}catch{try{return Yr.call(null,t,0)}catch{return Yr.call(this,t,0)}}}function a_(t){if(Br===clearTimeout)return clearTimeout(t);if((Br===Td||!Br)&&clearTimeout)return Br=clearTimeout,clearTimeout(t);try{return Br(t)}catch{try{return Br.call(null,t)}catch{return Br.call(this,t)}}}var hi=[],sa=!1,co,tu=-1;function s_(){!sa||!co||(sa=!1,co.length?hi=co.concat(hi):tu=-1,hi.length&&kR())}function kR(){if(!sa){var t=BR(s_);sa=!0;for(var e=hi.length;e;){for(co=hi,hi=[];++tu<e;)co&&co[tu].run();tu=-1,e=hi.length}co=null,sa=!1,a_(t)}}jt.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];hi.push(new ZR(t,e)),hi.length===1&&!sa&&BR(kR)};function ZR(t,e){this.fun=t,this.array=e}ZR.prototype.run=function(){this.fun.apply(null,this.array)};jt.title="browser";jt.browser=!0;jt.env={};jt.argv=[];jt.version="";jt.versions={};function xi(){}jt.on=xi;jt.addListener=xi;jt.once=xi;jt.off=xi;jt.removeListener=xi;jt.removeAllListeners=xi;jt.emit=xi;jt.prependListener=xi;jt.prependOnceListener=xi;jt.listeners=function(t){return[]};jt.binding=function(t){throw new Error("process.binding is not supported")};jt.cwd=function(){return"/"};jt.chdir=function(t){throw new Error("process.chdir is not supported")};jt.umask=function(){return 0};var c_=YR.exports;const nt=o_(c_);var Bl,G1;function QR(){return G1||(G1=1,Bl=lf.EventEmitter),Bl}var kl={},Ja={},J1;function u_(){if(J1)return Ja;J1=1,Ja.byteLength=s,Ja.toByteArray=u,Ja.fromByteArray=f;for(var t=[],e=[],n=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=r.length;i<o;++i)t[i]=r[i],e[r.charCodeAt(i)]=i;e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63;function a(d){var p=d.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=d.indexOf("=");g===-1&&(g=p);var y=g===p?0:4-g%4;return[g,y]}function s(d){var p=a(d),g=p[0],y=p[1];return(g+y)*3/4-y}function c(d,p,g){return(p+g)*3/4-g}function u(d){var p,g=a(d),y=g[0],R=g[1],m=new n(c(d,y,R)),v=0,x=R>0?y-4:y,_;for(_=0;_<x;_+=4)p=e[d.charCodeAt(_)]<<18|e[d.charCodeAt(_+1)]<<12|e[d.charCodeAt(_+2)]<<6|e[d.charCodeAt(_+3)],m[v++]=p>>16&255,m[v++]=p>>8&255,m[v++]=p&255;return R===2&&(p=e[d.charCodeAt(_)]<<2|e[d.charCodeAt(_+1)]>>4,m[v++]=p&255),R===1&&(p=e[d.charCodeAt(_)]<<10|e[d.charCodeAt(_+1)]<<4|e[d.charCodeAt(_+2)]>>2,m[v++]=p>>8&255,m[v++]=p&255),m}function l(d){return t[d>>18&63]+t[d>>12&63]+t[d>>6&63]+t[d&63]}function h(d,p,g){for(var y,R=[],m=p;m<g;m+=3)y=(d[m]<<16&16711680)+(d[m+1]<<8&65280)+(d[m+2]&255),R.push(l(y));return R.join("")}function f(d){for(var p,g=d.length,y=g%3,R=[],m=16383,v=0,x=g-y;v<x;v+=m)R.push(h(d,v,v+m>x?x:v+m));return y===1?(p=d[g-1],R.push(t[p>>2]+t[p<<4&63]+"==")):y===2&&(p=(d[g-2]<<8)+d[g-1],R.push(t[p>>10]+t[p>>4&63]+t[p<<2&63]+"=")),R.join("")}return Ja}var _c={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var z1;function l_(){return z1||(z1=1,_c.read=function(t,e,n,r,i){var o,a,s=i*8-r-1,c=(1<<s)-1,u=c>>1,l=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=o*256+t[e+h],h+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=a*256+t[e+h],h+=f,l-=8);if(o===0)o=1-u;else{if(o===c)return a?NaN:(d?-1:1)*(1/0);a=a+Math.pow(2,r),o=o-u}return(d?-1:1)*a*Math.pow(2,o-r)},_c.write=function(t,e,n,r,i,o){var a,s,c,u=o*8-i-1,l=(1<<u)-1,h=l>>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+h>=1?e+=f/c:e+=f*Math.pow(2,1-h),e*c>=2&&(a++,c/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*c-1)*Math.pow(2,i),a=a+h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=s&255,d+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[n+d]=a&255,d+=p,a/=256,u-=8);t[n+d-p]|=g*128}),_c}/*!
|
|
* The buffer module from node.js, for the browser.
|
|
*
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
* @license MIT
|
|
*/var $1;function Uu(){return $1||($1=1,function(t){var e=u_(),n=l_(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50;var i=2147483647;t.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=o(),!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 o(){try{var W=new Uint8Array(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,Uint8Array.prototype),Object.setPrototypeOf(W,w),W.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 a(W){if(W>i)throw new RangeError('The value "'+W+'" is invalid for option "size"');var w=new Uint8Array(W);return Object.setPrototypeOf(w,s.prototype),w}function s(W,w,S){if(typeof W=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(W)}return c(W,w,S)}s.poolSize=8192;function c(W,w,S){if(typeof W=="string")return f(W,w);if(ArrayBuffer.isView(W))return p(W);if(W==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W);if(pe(W,ArrayBuffer)||W&&pe(W.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(pe(W,SharedArrayBuffer)||W&&pe(W.buffer,SharedArrayBuffer)))return g(W,w,S);if(typeof W=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var P=W.valueOf&&W.valueOf();if(P!=null&&P!==W)return s.from(P,w,S);var J=y(W);if(J)return J;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof W[Symbol.toPrimitive]=="function")return s.from(W[Symbol.toPrimitive]("string"),w,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W)}s.from=function(W,w,S){return c(W,w,S)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(W){if(typeof W!="number")throw new TypeError('"size" argument must be of type number');if(W<0)throw new RangeError('The value "'+W+'" is invalid for option "size"')}function l(W,w,S){return u(W),W<=0?a(W):w!==void 0?typeof S=="string"?a(W).fill(w,S):a(W).fill(w):a(W)}s.alloc=function(W,w,S){return l(W,w,S)};function h(W){return u(W),a(W<0?0:R(W)|0)}s.allocUnsafe=function(W){return h(W)},s.allocUnsafeSlow=function(W){return h(W)};function f(W,w){if((typeof w!="string"||w==="")&&(w="utf8"),!s.isEncoding(w))throw new TypeError("Unknown encoding: "+w);var S=v(W,w)|0,P=a(S),J=P.write(W,w);return J!==S&&(P=P.slice(0,J)),P}function d(W){for(var w=W.length<0?0:R(W.length)|0,S=a(w),P=0;P<w;P+=1)S[P]=W[P]&255;return S}function p(W){if(pe(W,Uint8Array)){var w=new Uint8Array(W);return g(w.buffer,w.byteOffset,w.byteLength)}return d(W)}function g(W,w,S){if(w<0||W.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(W.byteLength<w+(S||0))throw new RangeError('"length" is outside of buffer bounds');var P;return w===void 0&&S===void 0?P=new Uint8Array(W):S===void 0?P=new Uint8Array(W,w):P=new Uint8Array(W,w,S),Object.setPrototypeOf(P,s.prototype),P}function y(W){if(s.isBuffer(W)){var w=R(W.length)|0,S=a(w);return S.length===0||W.copy(S,0,0,w),S}if(W.length!==void 0)return typeof W.length!="number"||D(W.length)?a(0):d(W);if(W.type==="Buffer"&&Array.isArray(W.data))return d(W.data)}function R(W){if(W>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return W|0}function m(W){return+W!=W&&(W=0),s.alloc(+W)}s.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==s.prototype},s.compare=function(w,S){if(pe(w,Uint8Array)&&(w=s.from(w,w.offset,w.byteLength)),pe(S,Uint8Array)&&(S=s.from(S,S.offset,S.byteLength)),!s.isBuffer(w)||!s.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===S)return 0;for(var P=w.length,J=S.length,ie=0,K=Math.min(P,J);ie<K;++ie)if(w[ie]!==S[ie]){P=w[ie],J=S[ie];break}return P<J?-1:J<P?1:0},s.isEncoding=function(w){switch(String(w).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(w,S){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return s.alloc(0);var P;if(S===void 0)for(S=0,P=0;P<w.length;++P)S+=w[P].length;var J=s.allocUnsafe(S),ie=0;for(P=0;P<w.length;++P){var K=w[P];if(pe(K,Uint8Array))ie+K.length>J.length?s.from(K).copy(J,ie):Uint8Array.prototype.set.call(J,K,ie);else if(s.isBuffer(K))K.copy(J,ie);else throw new TypeError('"list" argument must be an Array of Buffers');ie+=K.length}return J};function v(W,w){if(s.isBuffer(W))return W.length;if(ArrayBuffer.isView(W)||pe(W,ArrayBuffer))return W.byteLength;if(typeof W!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof W);var S=W.length,P=arguments.length>2&&arguments[2]===!0;if(!P&&S===0)return 0;for(var J=!1;;)switch(w){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return X(W).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return H(W).length;default:if(J)return P?-1:X(W).length;w=(""+w).toLowerCase(),J=!0}}s.byteLength=v;function x(W,w,S){var P=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,w>>>=0,S<=w))return"";for(W||(W="utf8");;)switch(W){case"hex":return B(this,w,S);case"utf8":case"utf-8":return b(this,w,S);case"ascii":return F(this,w,S);case"latin1":case"binary":return A(this,w,S);case"base64":return I(this,w,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,w,S);default:if(P)throw new TypeError("Unknown encoding: "+W);W=(W+"").toLowerCase(),P=!0}}s.prototype._isBuffer=!0;function _(W,w,S){var P=W[w];W[w]=W[S],W[S]=P}s.prototype.swap16=function(){var w=this.length;if(w%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var S=0;S<w;S+=2)_(this,S,S+1);return this},s.prototype.swap32=function(){var w=this.length;if(w%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var S=0;S<w;S+=4)_(this,S,S+3),_(this,S+1,S+2);return this},s.prototype.swap64=function(){var w=this.length;if(w%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var S=0;S<w;S+=8)_(this,S,S+7),_(this,S+1,S+6),_(this,S+2,S+5),_(this,S+3,S+4);return this},s.prototype.toString=function(){var w=this.length;return w===0?"":arguments.length===0?b(this,0,w):x.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(w){if(!s.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w?!0:s.compare(this,w)===0},s.prototype.inspect=function(){var w="",S=t.INSPECT_MAX_BYTES;return w=this.toString("hex",0,S).replace(/(.{2})/g,"$1 ").trim(),this.length>S&&(w+=" ... "),"<Buffer "+w+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(w,S,P,J,ie){if(pe(w,Uint8Array)&&(w=s.from(w,w.offset,w.byteLength)),!s.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(S===void 0&&(S=0),P===void 0&&(P=w?w.length:0),J===void 0&&(J=0),ie===void 0&&(ie=this.length),S<0||P>w.length||J<0||ie>this.length)throw new RangeError("out of range index");if(J>=ie&&S>=P)return 0;if(J>=ie)return-1;if(S>=P)return 1;if(S>>>=0,P>>>=0,J>>>=0,ie>>>=0,this===w)return 0;for(var K=ie-J,j=P-S,re=Math.min(K,j),ce=this.slice(J,ie),he=w.slice(S,P),ve=0;ve<re;++ve)if(ce[ve]!==he[ve]){K=ce[ve],j=he[ve];break}return K<j?-1:j<K?1:0};function E(W,w,S,P,J){if(W.length===0)return-1;if(typeof S=="string"?(P=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,D(S)&&(S=J?0:W.length-1),S<0&&(S=W.length+S),S>=W.length){if(J)return-1;S=W.length-1}else if(S<0)if(J)S=0;else return-1;if(typeof w=="string"&&(w=s.from(w,P)),s.isBuffer(w))return w.length===0?-1:N(W,w,S,P,J);if(typeof w=="number")return w=w&255,typeof Uint8Array.prototype.indexOf=="function"?J?Uint8Array.prototype.indexOf.call(W,w,S):Uint8Array.prototype.lastIndexOf.call(W,w,S):N(W,[w],S,P,J);throw new TypeError("val must be string, number or Buffer")}function N(W,w,S,P,J){var ie=1,K=W.length,j=w.length;if(P!==void 0&&(P=String(P).toLowerCase(),P==="ucs2"||P==="ucs-2"||P==="utf16le"||P==="utf-16le")){if(W.length<2||w.length<2)return-1;ie=2,K/=2,j/=2,S/=2}function re(Fe,Xe){return ie===1?Fe[Xe]:Fe.readUInt16BE(Xe*ie)}var ce;if(J){var he=-1;for(ce=S;ce<K;ce++)if(re(W,ce)===re(w,he===-1?0:ce-he)){if(he===-1&&(he=ce),ce-he+1===j)return he*ie}else he!==-1&&(ce-=ce-he),he=-1}else for(S+j>K&&(S=K-j),ce=S;ce>=0;ce--){for(var ve=!0,_e=0;_e<j;_e++)if(re(W,ce+_e)!==re(w,_e)){ve=!1;break}if(ve)return ce}return-1}s.prototype.includes=function(w,S,P){return this.indexOf(w,S,P)!==-1},s.prototype.indexOf=function(w,S,P){return E(this,w,S,P,!0)},s.prototype.lastIndexOf=function(w,S,P){return E(this,w,S,P,!1)};function U(W,w,S,P){S=Number(S)||0;var J=W.length-S;P?(P=Number(P),P>J&&(P=J)):P=J;var ie=w.length;P>ie/2&&(P=ie/2);for(var K=0;K<P;++K){var j=parseInt(w.substr(K*2,2),16);if(D(j))return K;W[S+K]=j}return K}function O(W,w,S,P){return te(X(w,W.length-S),W,S,P)}function Q(W,w,S,P){return te(k(w),W,S,P)}function ne(W,w,S,P){return te(H(w),W,S,P)}function T(W,w,S,P){return te(G(w,W.length-S),W,S,P)}s.prototype.write=function(w,S,P,J){if(S===void 0)J="utf8",P=this.length,S=0;else if(P===void 0&&typeof S=="string")J=S,P=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(P)?(P=P>>>0,J===void 0&&(J="utf8")):(J=P,P=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ie=this.length-S;if((P===void 0||P>ie)&&(P=ie),w.length>0&&(P<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");for(var K=!1;;)switch(J){case"hex":return U(this,w,S,P);case"utf8":case"utf-8":return O(this,w,S,P);case"ascii":case"latin1":case"binary":return Q(this,w,S,P);case"base64":return ne(this,w,S,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,w,S,P);default:if(K)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),K=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(W,w,S){return w===0&&S===W.length?e.fromByteArray(W):e.fromByteArray(W.slice(w,S))}function b(W,w,S){S=Math.min(W.length,S);for(var P=[],J=w;J<S;){var ie=W[J],K=null,j=ie>239?4:ie>223?3:ie>191?2:1;if(J+j<=S){var re,ce,he,ve;switch(j){case 1:ie<128&&(K=ie);break;case 2:re=W[J+1],(re&192)===128&&(ve=(ie&31)<<6|re&63,ve>127&&(K=ve));break;case 3:re=W[J+1],ce=W[J+2],(re&192)===128&&(ce&192)===128&&(ve=(ie&15)<<12|(re&63)<<6|ce&63,ve>2047&&(ve<55296||ve>57343)&&(K=ve));break;case 4:re=W[J+1],ce=W[J+2],he=W[J+3],(re&192)===128&&(ce&192)===128&&(he&192)===128&&(ve=(ie&15)<<18|(re&63)<<12|(ce&63)<<6|he&63,ve>65535&&ve<1114112&&(K=ve))}}K===null?(K=65533,j=1):K>65535&&(K-=65536,P.push(K>>>10&1023|55296),K=56320|K&1023),P.push(K),J+=j}return C(P)}var M=4096;function C(W){var w=W.length;if(w<=M)return String.fromCharCode.apply(String,W);for(var S="",P=0;P<w;)S+=String.fromCharCode.apply(String,W.slice(P,P+=M));return S}function F(W,w,S){var P="";S=Math.min(W.length,S);for(var J=w;J<S;++J)P+=String.fromCharCode(W[J]&127);return P}function A(W,w,S){var P="";S=Math.min(W.length,S);for(var J=w;J<S;++J)P+=String.fromCharCode(W[J]);return P}function B(W,w,S){var P=W.length;(!w||w<0)&&(w=0),(!S||S<0||S>P)&&(S=P);for(var J="",ie=w;ie<S;++ie)J+=oe[W[ie]];return J}function $(W,w,S){for(var P=W.slice(w,S),J="",ie=0;ie<P.length-1;ie+=2)J+=String.fromCharCode(P[ie]+P[ie+1]*256);return J}s.prototype.slice=function(w,S){var P=this.length;w=~~w,S=S===void 0?P:~~S,w<0?(w+=P,w<0&&(w=0)):w>P&&(w=P),S<0?(S+=P,S<0&&(S=0)):S>P&&(S=P),S<w&&(S=w);var J=this.subarray(w,S);return Object.setPrototypeOf(J,s.prototype),J};function V(W,w,S){if(W%1!==0||W<0)throw new RangeError("offset is not uint");if(W+w>S)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(w,S,P){w=w>>>0,S=S>>>0,P||V(w,S,this.length);for(var J=this[w],ie=1,K=0;++K<S&&(ie*=256);)J+=this[w+K]*ie;return J},s.prototype.readUintBE=s.prototype.readUIntBE=function(w,S,P){w=w>>>0,S=S>>>0,P||V(w,S,this.length);for(var J=this[w+--S],ie=1;S>0&&(ie*=256);)J+=this[w+--S]*ie;return J},s.prototype.readUint8=s.prototype.readUInt8=function(w,S){return w=w>>>0,S||V(w,1,this.length),this[w]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(w,S){return w=w>>>0,S||V(w,2,this.length),this[w]|this[w+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(w,S){return w=w>>>0,S||V(w,2,this.length),this[w]<<8|this[w+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(w,S){return w=w>>>0,S||V(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(w,S){return w=w>>>0,S||V(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},s.prototype.readIntLE=function(w,S,P){w=w>>>0,S=S>>>0,P||V(w,S,this.length);for(var J=this[w],ie=1,K=0;++K<S&&(ie*=256);)J+=this[w+K]*ie;return ie*=128,J>=ie&&(J-=Math.pow(2,8*S)),J},s.prototype.readIntBE=function(w,S,P){w=w>>>0,S=S>>>0,P||V(w,S,this.length);for(var J=S,ie=1,K=this[w+--J];J>0&&(ie*=256);)K+=this[w+--J]*ie;return ie*=128,K>=ie&&(K-=Math.pow(2,8*S)),K},s.prototype.readInt8=function(w,S){return w=w>>>0,S||V(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},s.prototype.readInt16LE=function(w,S){w=w>>>0,S||V(w,2,this.length);var P=this[w]|this[w+1]<<8;return P&32768?P|4294901760:P},s.prototype.readInt16BE=function(w,S){w=w>>>0,S||V(w,2,this.length);var P=this[w+1]|this[w]<<8;return P&32768?P|4294901760:P},s.prototype.readInt32LE=function(w,S){return w=w>>>0,S||V(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},s.prototype.readInt32BE=function(w,S){return w=w>>>0,S||V(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},s.prototype.readFloatLE=function(w,S){return w=w>>>0,S||V(w,4,this.length),n.read(this,w,!0,23,4)},s.prototype.readFloatBE=function(w,S){return w=w>>>0,S||V(w,4,this.length),n.read(this,w,!1,23,4)},s.prototype.readDoubleLE=function(w,S){return w=w>>>0,S||V(w,8,this.length),n.read(this,w,!0,52,8)},s.prototype.readDoubleBE=function(w,S){return w=w>>>0,S||V(w,8,this.length),n.read(this,w,!1,52,8)};function L(W,w,S,P,J,ie){if(!s.isBuffer(W))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>J||w<ie)throw new RangeError('"value" argument is out of bounds');if(S+P>W.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(w,S,P,J){if(w=+w,S=S>>>0,P=P>>>0,!J){var ie=Math.pow(2,8*P)-1;L(this,w,S,P,ie,0)}var K=1,j=0;for(this[S]=w&255;++j<P&&(K*=256);)this[S+j]=w/K&255;return S+P},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(w,S,P,J){if(w=+w,S=S>>>0,P=P>>>0,!J){var ie=Math.pow(2,8*P)-1;L(this,w,S,P,ie,0)}var K=P-1,j=1;for(this[S+K]=w&255;--K>=0&&(j*=256);)this[S+K]=w/j&255;return S+P},s.prototype.writeUint8=s.prototype.writeUInt8=function(w,S,P){return w=+w,S=S>>>0,P||L(this,w,S,1,255,0),this[S]=w&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(w,S,P){return w=+w,S=S>>>0,P||L(this,w,S,2,65535,0),this[S]=w&255,this[S+1]=w>>>8,S+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(w,S,P){return w=+w,S=S>>>0,P||L(this,w,S,2,65535,0),this[S]=w>>>8,this[S+1]=w&255,S+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(w,S,P){return w=+w,S=S>>>0,P||L(this,w,S,4,4294967295,0),this[S+3]=w>>>24,this[S+2]=w>>>16,this[S+1]=w>>>8,this[S]=w&255,S+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(w,S,P){return w=+w,S=S>>>0,P||L(this,w,S,4,4294967295,0),this[S]=w>>>24,this[S+1]=w>>>16,this[S+2]=w>>>8,this[S+3]=w&255,S+4},s.prototype.writeIntLE=function(w,S,P,J){if(w=+w,S=S>>>0,!J){var ie=Math.pow(2,8*P-1);L(this,w,S,P,ie-1,-ie)}var K=0,j=1,re=0;for(this[S]=w&255;++K<P&&(j*=256);)w<0&&re===0&&this[S+K-1]!==0&&(re=1),this[S+K]=(w/j>>0)-re&255;return S+P},s.prototype.writeIntBE=function(w,S,P,J){if(w=+w,S=S>>>0,!J){var ie=Math.pow(2,8*P-1);L(this,w,S,P,ie-1,-ie)}var K=P-1,j=1,re=0;for(this[S+K]=w&255;--K>=0&&(j*=256);)w<0&&re===0&&this[S+K+1]!==0&&(re=1),this[S+K]=(w/j>>0)-re&255;return S+P},s.prototype.writeInt8=function(w,S,P){return w=+w,S=S>>>0,P||L(this,w,S,1,127,-128),w<0&&(w=255+w+1),this[S]=w&255,S+1},s.prototype.writeInt16LE=function(w,S,P){return w=+w,S=S>>>0,P||L(this,w,S,2,32767,-32768),this[S]=w&255,this[S+1]=w>>>8,S+2},s.prototype.writeInt16BE=function(w,S,P){return w=+w,S=S>>>0,P||L(this,w,S,2,32767,-32768),this[S]=w>>>8,this[S+1]=w&255,S+2},s.prototype.writeInt32LE=function(w,S,P){return w=+w,S=S>>>0,P||L(this,w,S,4,2147483647,-2147483648),this[S]=w&255,this[S+1]=w>>>8,this[S+2]=w>>>16,this[S+3]=w>>>24,S+4},s.prototype.writeInt32BE=function(w,S,P){return w=+w,S=S>>>0,P||L(this,w,S,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[S]=w>>>24,this[S+1]=w>>>16,this[S+2]=w>>>8,this[S+3]=w&255,S+4};function z(W,w,S,P,J,ie){if(S+P>W.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function q(W,w,S,P,J){return w=+w,S=S>>>0,J||z(W,w,S,4),n.write(W,w,S,P,23,4),S+4}s.prototype.writeFloatLE=function(w,S,P){return q(this,w,S,!0,P)},s.prototype.writeFloatBE=function(w,S,P){return q(this,w,S,!1,P)};function se(W,w,S,P,J){return w=+w,S=S>>>0,J||z(W,w,S,8),n.write(W,w,S,P,52,8),S+8}s.prototype.writeDoubleLE=function(w,S,P){return se(this,w,S,!0,P)},s.prototype.writeDoubleBE=function(w,S,P){return se(this,w,S,!1,P)},s.prototype.copy=function(w,S,P,J){if(!s.isBuffer(w))throw new TypeError("argument should be a Buffer");if(P||(P=0),!J&&J!==0&&(J=this.length),S>=w.length&&(S=w.length),S||(S=0),J>0&&J<P&&(J=P),J===P||w.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(P<0||P>=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),w.length-S<J-P&&(J=w.length-S+P);var ie=J-P;return this===w&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(S,P,J):Uint8Array.prototype.set.call(w,this.subarray(P,J),S),ie},s.prototype.fill=function(w,S,P,J){if(typeof w=="string"){if(typeof S=="string"?(J=S,S=0,P=this.length):typeof P=="string"&&(J=P,P=this.length),J!==void 0&&typeof J!="string")throw new TypeError("encoding must be a string");if(typeof J=="string"&&!s.isEncoding(J))throw new TypeError("Unknown encoding: "+J);if(w.length===1){var ie=w.charCodeAt(0);(J==="utf8"&&ie<128||J==="latin1")&&(w=ie)}}else typeof w=="number"?w=w&255:typeof w=="boolean"&&(w=Number(w));if(S<0||this.length<S||this.length<P)throw new RangeError("Out of range index");if(P<=S)return this;S=S>>>0,P=P===void 0?this.length:P>>>0,w||(w=0);var K;if(typeof w=="number")for(K=S;K<P;++K)this[K]=w;else{var j=s.isBuffer(w)?w:s.from(w,J),re=j.length;if(re===0)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(K=0;K<P-S;++K)this[K+S]=j[K%re]}return this};var ae=/[^+/0-9A-Za-z-_]/g;function Y(W){if(W=W.split("=")[0],W=W.trim().replace(ae,""),W.length<2)return"";for(;W.length%4!==0;)W=W+"=";return W}function X(W,w){w=w||1/0;for(var S,P=W.length,J=null,ie=[],K=0;K<P;++K){if(S=W.charCodeAt(K),S>55295&&S<57344){if(!J){if(S>56319){(w-=3)>-1&&ie.push(239,191,189);continue}else if(K+1===P){(w-=3)>-1&&ie.push(239,191,189);continue}J=S;continue}if(S<56320){(w-=3)>-1&&ie.push(239,191,189),J=S;continue}S=(J-55296<<10|S-56320)+65536}else J&&(w-=3)>-1&&ie.push(239,191,189);if(J=null,S<128){if((w-=1)<0)break;ie.push(S)}else if(S<2048){if((w-=2)<0)break;ie.push(S>>6|192,S&63|128)}else if(S<65536){if((w-=3)<0)break;ie.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((w-=4)<0)break;ie.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return ie}function k(W){for(var w=[],S=0;S<W.length;++S)w.push(W.charCodeAt(S)&255);return w}function G(W,w){for(var S,P,J,ie=[],K=0;K<W.length&&!((w-=2)<0);++K)S=W.charCodeAt(K),P=S>>8,J=S%256,ie.push(J),ie.push(P);return ie}function H(W){return e.toByteArray(Y(W))}function te(W,w,S,P){for(var J=0;J<P&&!(J+S>=w.length||J>=W.length);++J)w[J+S]=W[J];return J}function pe(W,w){return W instanceof w||W!=null&&W.constructor!=null&&W.constructor.name!=null&&W.constructor.name===w.name}function D(W){return W!==W}var oe=function(){for(var W="0123456789abcdef",w=new Array(256),S=0;S<16;++S)for(var P=S*16,J=0;J<16;++J)w[P+J]=W[S]+W[J];return w}()}(kl)),kl}var Zl={},Ql={},Kl,j1;function KR(){return j1||(j1=1,Kl=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[n]=i;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,n);if(a.value!==i||a.enumerable!==!0)return!1}return!0}),Kl}var Hl,q1;function hf(){if(q1)return Hl;q1=1;var t=KR();return Hl=function(){return t()&&!!Symbol.toStringTag},Hl}var Gl,eg;function h_(){if(eg)return Gl;eg=1;var t=typeof Symbol!="undefined"&&Symbol,e=KR();return Gl=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Gl}var Jl,tg;function d_(){if(tg)return Jl;tg=1;var t={foo:{}},e=Object;return Jl=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof e)},Jl}var zl,ng;function f_(){if(ng)return zl;ng=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,n=Math.max,r="[object Function]",i=function(c,u){for(var l=[],h=0;h<c.length;h+=1)l[h]=c[h];for(var f=0;f<u.length;f+=1)l[f+c.length]=u[f];return l},o=function(c,u){for(var l=[],h=u||0,f=0;h<c.length;h+=1,f+=1)l[f]=c[h];return l},a=function(s,c){for(var u="",l=0;l<s.length;l+=1)u+=s[l],l+1<s.length&&(u+=c);return u};return zl=function(c){var u=this;if(typeof u!="function"||e.apply(u)!==r)throw new TypeError(t+u);for(var l=o(arguments,1),h,f=function(){if(this instanceof h){var R=u.apply(this,i(l,arguments));return Object(R)===R?R:this}return u.apply(c,i(l,arguments))},d=n(0,u.length-l.length),p=[],g=0;g<d;g++)p[g]="$"+g;if(h=Function("binder","return function ("+a(p,",")+"){ return binder.apply(this,arguments); }")(f),u.prototype){var y=function(){};y.prototype=u.prototype,h.prototype=new y,y.prototype=null}return h},zl}var $l,rg;function df(){if(rg)return $l;rg=1;var t=f_();return $l=Function.prototype.bind||t,$l}var jl,ig;function p_(){if(ig)return jl;ig=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,n=df();return jl=n.call(t,e),jl}var ql,og;function Ea(){if(og)return ql;og=1;var t,e=SyntaxError,n=Function,r=TypeError,i=function(T){try{return n('"use strict"; return ('+T+").constructor;")()}catch{}},o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch{o=null}var a=function(){throw new r},s=o?function(){try{return arguments.callee,a}catch{try{return o(arguments,"callee").get}catch{return a}}}():a,c=h_()(),u=d_()(),l=Object.getPrototypeOf||(u?function(T){return T.__proto__}:null),h={},f=typeof Uint8Array=="undefined"||!l?t:l(Uint8Array),d={"%AggregateError%":typeof AggregateError=="undefined"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?t:ArrayBuffer,"%ArrayIteratorPrototype%":c&&l?l([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics=="undefined"?t:Atomics,"%BigInt%":typeof BigInt=="undefined"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?t:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?t:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array=="undefined"?t:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?t:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&l?l(l([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map=="undefined"?t:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!c||!l?t:l(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?t:Promise,"%Proxy%":typeof Proxy=="undefined"?t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?t:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!c||!l?t:l(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&l?l(""[Symbol.iterator]()):t,"%Symbol%":c?Symbol:t,"%SyntaxError%":e,"%ThrowTypeError%":s,"%TypedArray%":f,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array=="undefined"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?t:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?t:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?t:WeakSet};if(l)try{null.error}catch(T){var p=l(l(T));d["%Error.prototype%"]=p}var g=function T(I){var b;if(I==="%AsyncFunction%")b=i("async function () {}");else if(I==="%GeneratorFunction%")b=i("function* () {}");else if(I==="%AsyncGeneratorFunction%")b=i("async function* () {}");else if(I==="%AsyncGenerator%"){var M=T("%AsyncGeneratorFunction%");M&&(b=M.prototype)}else if(I==="%AsyncIteratorPrototype%"){var C=T("%AsyncGenerator%");C&&l&&(b=l(C.prototype))}return d[I]=b,b},y={"%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"]},R=df(),m=p_(),v=R.call(Function.call,Array.prototype.concat),x=R.call(Function.apply,Array.prototype.splice),_=R.call(Function.call,String.prototype.replace),E=R.call(Function.call,String.prototype.slice),N=R.call(Function.call,RegExp.prototype.exec),U=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,Q=function(I){var b=E(I,0,1),M=E(I,-1);if(b==="%"&&M!=="%")throw new e("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&b!=="%")throw new e("invalid intrinsic syntax, expected opening `%`");var C=[];return _(I,U,function(F,A,B,$){C[C.length]=B?_($,O,"$1"):A||F}),C},ne=function(I,b){var M=I,C;if(m(y,M)&&(C=y[M],M="%"+C[0]+"%"),m(d,M)){var F=d[M];if(F===h&&(F=g(M)),typeof F=="undefined"&&!b)throw new r("intrinsic "+I+" exists, but is not available. Please file an issue!");return{alias:C,name:M,value:F}}throw new e("intrinsic "+I+" does not exist!")};return ql=function(I,b){if(typeof I!="string"||I.length===0)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof b!="boolean")throw new r('"allowMissing" argument must be a boolean');if(N(/^%?[^%]*%?$/,I)===null)throw new e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=Q(I),C=M.length>0?M[0]:"",F=ne("%"+C+"%",b),A=F.name,B=F.value,$=!1,V=F.alias;V&&(C=V[0],x(M,v([0,1],V)));for(var L=1,z=!0;L<M.length;L+=1){var q=M[L],se=E(q,0,1),ae=E(q,-1);if((se==='"'||se==="'"||se==="`"||ae==='"'||ae==="'"||ae==="`")&&se!==ae)throw new e("property names with quotes must have matching quotes");if((q==="constructor"||!z)&&($=!0),C+="."+q,A="%"+C+"%",m(d,A))B=d[A];else if(B!=null){if(!(q in B)){if(!b)throw new r("base intrinsic for "+I+" exists, but the property is not available.");return}if(o&&L+1>=M.length){var Y=o(B,q);z=!!Y,z&&"get"in Y&&!("originalValue"in Y.get)?B=Y.get:B=B[q]}else z=m(B,q),B=B[q];z&&!$&&(d[A]=B)}}return B},ql}var eh={exports:{}},th,ag;function HR(){if(ag)return th;ag=1;var t=Ea(),e=t("%Object.defineProperty%",!0),n=function(){if(e)try{return e({},"a",{value:1}),!0}catch{return!1}return!1};return n.hasArrayLengthDefineBug=function(){if(!n())return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},th=n,th}var nh,sg;function ff(){if(sg)return nh;sg=1;var t=Ea(),e=t("%Object.getOwnPropertyDescriptor%",!0);if(e)try{e([],"length")}catch{e=null}return nh=e,nh}var rh,cg;function g_(){if(cg)return rh;cg=1;var t=HR()(),e=Ea(),n=t&&e("%Object.defineProperty%",!0);if(n)try{n({},"a",{value:1})}catch{n=!1}var r=e("%SyntaxError%"),i=e("%TypeError%"),o=ff();return rh=function(s,c,u){if(!s||typeof s!="object"&&typeof s!="function")throw new i("`obj` must be an object or a function`");if(typeof c!="string"&&typeof c!="symbol")throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new i("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,h=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,p=!!o&&o(s,c);if(n)n(s,c,{configurable:f===null&&p?p.configurable:!f,enumerable:l===null&&p?p.enumerable:!l,value:u,writable:h===null&&p?p.writable:!h});else if(d||!l&&!h&&!f)s[c]=u;else throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},rh}var ih,ug;function m_(){if(ug)return ih;ug=1;var t=Ea(),e=g_(),n=HR()(),r=ff(),i=t("%TypeError%"),o=t("%Math.floor%");return ih=function(s,c){if(typeof s!="function")throw new i("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||o(c)!==c)throw new i("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],l=!0,h=!0;if("length"in s&&r){var f=r(s,"length");f&&!f.configurable&&(l=!1),f&&!f.writable&&(h=!1)}return(l||h||!u)&&(n?e(s,"length",c,!0,!0):e(s,"length",c)),s},ih}var lg;function GR(){return lg||(lg=1,function(t){var e=df(),n=Ea(),r=m_(),i=n("%TypeError%"),o=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||e.call(a,o),c=n("%Object.defineProperty%",!0),u=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}t.exports=function(f){if(typeof f!="function")throw new i("a function is required");var d=s(e,a,arguments);return r(d,1+u(0,f.length-(arguments.length-1)),!0)};var l=function(){return s(e,o,arguments)};c?c(t.exports,"apply",{value:l}):t.exports.apply=l}(eh)),eh.exports}var oh,hg;function JR(){if(hg)return oh;hg=1;var t=Ea(),e=GR(),n=e(t("String.prototype.indexOf"));return oh=function(i,o){var a=t(i,!!o);return typeof a=="function"&&n(i,".prototype.")>-1?e(a):a},oh}var ah,dg;function R_(){if(dg)return ah;dg=1;var t=hf()(),e=JR(),n=e("Object.prototype.toString"),r=function(s){return t&&s&&typeof s=="object"&&Symbol.toStringTag in s?!1:n(s)==="[object Arguments]"},i=function(s){return r(s)?!0:s!==null&&typeof s=="object"&&typeof s.length=="number"&&s.length>=0&&n(s)!=="[object Array]"&&n(s.callee)==="[object Function]"},o=function(){return r(arguments)}();return r.isLegacyArguments=i,ah=o?r:i,ah}var sh,fg;function y_(){if(fg)return sh;fg=1;var t=Object.prototype.toString,e=Function.prototype.toString,n=/^\s*(?:function)?\*/,r=hf()(),i=Object.getPrototypeOf,o=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}},a;return sh=function(c){if(typeof c!="function")return!1;if(n.test(e.call(c)))return!0;if(!r){var u=t.call(c);return u==="[object GeneratorFunction]"}if(!i)return!1;if(typeof a=="undefined"){var l=o();a=l?i(l):!1}return i(c)===a},sh}var ch,pg;function v_(){if(pg)return ch;pg=1;var t=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,n,r;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{n=Object.defineProperty({},"length",{get:function(){throw r}}),r={},e(function(){throw 42},null,n)}catch(m){m!==r&&(e=null)}else e=null;var i=/^\s*class\b/,o=function(v){try{var x=t.call(v);return i.test(x)}catch{return!1}},a=function(v){try{return o(v)?!1:(t.call(v),!0)}catch{return!1}},s=Object.prototype.toString,c="[object Object]",u="[object Function]",l="[object GeneratorFunction]",h="[object HTMLAllCollection]",f="[object HTML document.all class]",d="[object HTMLCollection]",p=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var R=document.all;s.call(R)===s.call(document.all)&&(y=function(v){if((g||!v)&&(typeof v=="undefined"||typeof v=="object"))try{var x=s.call(v);return(x===h||x===f||x===d||x===c)&&v("")==null}catch{}return!1})}return ch=e?function(v){if(y(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;try{e(v,null,n)}catch(x){if(x!==r)return!1}return!o(v)&&a(v)}:function(v){if(y(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;if(p)return a(v);if(o(v))return!1;var x=s.call(v);return x!==u&&x!==l&&!/^\[object HTML/.test(x)?!1:a(v)},ch}var uh,gg;function b_(){if(gg)return uh;gg=1;var t=v_(),e=Object.prototype.toString,n=Object.prototype.hasOwnProperty,r=function(c,u,l){for(var h=0,f=c.length;h<f;h++)n.call(c,h)&&(l==null?u(c[h],h,c):u.call(l,c[h],h,c))},i=function(c,u,l){for(var h=0,f=c.length;h<f;h++)l==null?u(c.charAt(h),h,c):u.call(l,c.charAt(h),h,c)},o=function(c,u,l){for(var h in c)n.call(c,h)&&(l==null?u(c[h],h,c):u.call(l,c[h],h,c))},a=function(c,u,l){if(!t(u))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=l),e.call(c)==="[object Array]"?r(c,u,h):typeof c=="string"?i(c,u,h):o(c,u,h)};return uh=a,uh}var lh,mg;function x_(){if(mg)return lh;mg=1;var t=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],e=typeof globalThis=="undefined"?Kr:globalThis;return lh=function(){for(var r=[],i=0;i<t.length;i++)typeof e[t[i]]=="function"&&(r[r.length]=t[i]);return r},lh}var hh,Rg;function zR(){if(Rg)return hh;Rg=1;var t=b_(),e=x_(),n=GR(),r=JR(),i=ff(),o=r("Object.prototype.toString"),a=hf()(),s=typeof globalThis=="undefined"?Kr:globalThis,c=e(),u=r("String.prototype.slice"),l=Object.getPrototypeOf,h=r("Array.prototype.indexOf",!0)||function(y,R){for(var m=0;m<y.length;m+=1)if(y[m]===R)return m;return-1},f={__proto__:null};a&&i&&l?t(c,function(g){var y=new s[g];if(Symbol.toStringTag in y){var R=l(y),m=i(R,Symbol.toStringTag);if(!m){var v=l(R);m=i(v,Symbol.toStringTag)}f["$"+g]=n(m.get)}}):t(c,function(g){var y=new s[g],R=y.slice||y.set;R&&(f["$"+g]=n(R))});var d=function(y){var R=!1;return t(f,function(m,v){if(!R)try{"$"+m(y)===v&&(R=u(v,1))}catch{}}),R},p=function(y){var R=!1;return t(f,function(m,v){if(!R)try{m(y),R=u(v,1)}catch{}}),R};return hh=function(y){if(!y||typeof y!="object")return!1;if(!a){var R=u(o(y),8,-1);return h(c,R)>-1?R:R!=="Object"?!1:p(y)}return i?d(y):null},hh}var dh,yg;function w_(){if(yg)return dh;yg=1;var t=zR();return dh=function(n){return!!t(n)},dh}var vg;function T_(){return vg||(vg=1,function(t){var e=R_(),n=y_(),r=zR(),i=w_();function o(P){return P.call.bind(P)}var a=typeof BigInt!="undefined",s=typeof Symbol!="undefined",c=o(Object.prototype.toString),u=o(Number.prototype.valueOf),l=o(String.prototype.valueOf),h=o(Boolean.prototype.valueOf);if(a)var f=o(BigInt.prototype.valueOf);if(s)var d=o(Symbol.prototype.valueOf);function p(P,J){if(typeof P!="object")return!1;try{return J(P),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=n,t.isTypedArray=i;function g(P){return typeof Promise!="undefined"&&P instanceof Promise||P!==null&&typeof P=="object"&&typeof P.then=="function"&&typeof P.catch=="function"}t.isPromise=g;function y(P){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(P):i(P)||z(P)}t.isArrayBufferView=y;function R(P){return r(P)==="Uint8Array"}t.isUint8Array=R;function m(P){return r(P)==="Uint8ClampedArray"}t.isUint8ClampedArray=m;function v(P){return r(P)==="Uint16Array"}t.isUint16Array=v;function x(P){return r(P)==="Uint32Array"}t.isUint32Array=x;function _(P){return r(P)==="Int8Array"}t.isInt8Array=_;function E(P){return r(P)==="Int16Array"}t.isInt16Array=E;function N(P){return r(P)==="Int32Array"}t.isInt32Array=N;function U(P){return r(P)==="Float32Array"}t.isFloat32Array=U;function O(P){return r(P)==="Float64Array"}t.isFloat64Array=O;function Q(P){return r(P)==="BigInt64Array"}t.isBigInt64Array=Q;function ne(P){return r(P)==="BigUint64Array"}t.isBigUint64Array=ne;function T(P){return c(P)==="[object Map]"}T.working=typeof Map!="undefined"&&T(new Map);function I(P){return typeof Map=="undefined"?!1:T.working?T(P):P instanceof Map}t.isMap=I;function b(P){return c(P)==="[object Set]"}b.working=typeof Set!="undefined"&&b(new Set);function M(P){return typeof Set=="undefined"?!1:b.working?b(P):P instanceof Set}t.isSet=M;function C(P){return c(P)==="[object WeakMap]"}C.working=typeof WeakMap!="undefined"&&C(new WeakMap);function F(P){return typeof WeakMap=="undefined"?!1:C.working?C(P):P instanceof WeakMap}t.isWeakMap=F;function A(P){return c(P)==="[object WeakSet]"}A.working=typeof WeakSet!="undefined"&&A(new WeakSet);function B(P){return A(P)}t.isWeakSet=B;function $(P){return c(P)==="[object ArrayBuffer]"}$.working=typeof ArrayBuffer!="undefined"&&$(new ArrayBuffer);function V(P){return typeof ArrayBuffer=="undefined"?!1:$.working?$(P):P instanceof ArrayBuffer}t.isArrayBuffer=V;function L(P){return c(P)==="[object DataView]"}L.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&L(new DataView(new ArrayBuffer(1),0,1));function z(P){return typeof DataView=="undefined"?!1:L.working?L(P):P instanceof DataView}t.isDataView=z;var q=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function se(P){return c(P)==="[object SharedArrayBuffer]"}function ae(P){return typeof q=="undefined"?!1:(typeof se.working=="undefined"&&(se.working=se(new q)),se.working?se(P):P instanceof q)}t.isSharedArrayBuffer=ae;function Y(P){return c(P)==="[object AsyncFunction]"}t.isAsyncFunction=Y;function X(P){return c(P)==="[object Map Iterator]"}t.isMapIterator=X;function k(P){return c(P)==="[object Set Iterator]"}t.isSetIterator=k;function G(P){return c(P)==="[object Generator]"}t.isGeneratorObject=G;function H(P){return c(P)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=H;function te(P){return p(P,u)}t.isNumberObject=te;function pe(P){return p(P,l)}t.isStringObject=pe;function D(P){return p(P,h)}t.isBooleanObject=D;function oe(P){return a&&p(P,f)}t.isBigIntObject=oe;function W(P){return s&&p(P,d)}t.isSymbolObject=W;function w(P){return te(P)||pe(P)||D(P)||oe(P)||W(P)}t.isBoxedPrimitive=w;function S(P){return typeof Uint8Array!="undefined"&&(V(P)||ae(P))}t.isAnyArrayBuffer=S,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(P){Object.defineProperty(t,P,{enumerable:!1,value:function(){throw new Error(P+" is not supported in userland")}})})}(Ql)),Ql}var fh,bg;function S_(){return bg||(bg=1,fh=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),fh}var xg;function $R(){return xg||(xg=1,function(t){var e=Object.getOwnPropertyDescriptors||function(z){for(var q=Object.keys(z),se={},ae=0;ae<q.length;ae++)se[q[ae]]=Object.getOwnPropertyDescriptor(z,q[ae]);return se},n=/%[sdj%]/g;t.format=function(L){if(!_(L)){for(var z=[],q=0;q<arguments.length;q++)z.push(a(arguments[q]));return z.join(" ")}for(var q=1,se=arguments,ae=se.length,Y=String(L).replace(n,function(k){if(k==="%%")return"%";if(q>=ae)return k;switch(k){case"%s":return String(se[q++]);case"%d":return Number(se[q++]);case"%j":try{return JSON.stringify(se[q++])}catch{return"[Circular]"}default:return k}}),X=se[q];q<ae;X=se[++q])m(X)||!O(X)?Y+=" "+X:Y+=" "+a(X);return Y},t.deprecate=function(L,z){if(typeof nt!="undefined"&&nt.noDeprecation===!0)return L;if(typeof nt=="undefined")return function(){return t.deprecate(L,z).apply(this,arguments)};var q=!1;function se(){if(!q){if(nt.throwDeprecation)throw new Error(z);nt.traceDeprecation?console.trace(z):console.error(z),q=!0}return L.apply(this,arguments)}return se};var r={},i=/^$/;if(nt.env.NODE_DEBUG){var o=nt.env.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+o+"$","i")}t.debuglog=function(L){if(L=L.toUpperCase(),!r[L])if(i.test(L)){var z=nt.pid;r[L]=function(){var q=t.format.apply(t,arguments);console.error("%s %d: %s",L,z,q)}}else r[L]=function(){};return r[L]};function a(L,z){var q={seen:[],stylize:c};return arguments.length>=3&&(q.depth=arguments[2]),arguments.length>=4&&(q.colors=arguments[3]),R(z)?q.showHidden=z:z&&t._extend(q,z),N(q.showHidden)&&(q.showHidden=!1),N(q.depth)&&(q.depth=2),N(q.colors)&&(q.colors=!1),N(q.customInspect)&&(q.customInspect=!0),q.colors&&(q.stylize=s),l(q,L,q.depth)}t.inspect=a,a.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]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(L,z){var q=a.styles[z];return q?"\x1B["+a.colors[q][0]+"m"+L+"\x1B["+a.colors[q][1]+"m":L}function c(L,z){return L}function u(L){var z={};return L.forEach(function(q,se){z[q]=!0}),z}function l(L,z,q){if(L.customInspect&&z&&T(z.inspect)&&z.inspect!==t.inspect&&!(z.constructor&&z.constructor.prototype===z)){var se=z.inspect(q,L);return _(se)||(se=l(L,se,q)),se}var ae=h(L,z);if(ae)return ae;var Y=Object.keys(z),X=u(Y);if(L.showHidden&&(Y=Object.getOwnPropertyNames(z)),ne(z)&&(Y.indexOf("message")>=0||Y.indexOf("description")>=0))return f(z);if(Y.length===0){if(T(z)){var k=z.name?": "+z.name:"";return L.stylize("[Function"+k+"]","special")}if(U(z))return L.stylize(RegExp.prototype.toString.call(z),"regexp");if(Q(z))return L.stylize(Date.prototype.toString.call(z),"date");if(ne(z))return f(z)}var G="",H=!1,te=["{","}"];if(y(z)&&(H=!0,te=["[","]"]),T(z)){var pe=z.name?": "+z.name:"";G=" [Function"+pe+"]"}if(U(z)&&(G=" "+RegExp.prototype.toString.call(z)),Q(z)&&(G=" "+Date.prototype.toUTCString.call(z)),ne(z)&&(G=" "+f(z)),Y.length===0&&(!H||z.length==0))return te[0]+G+te[1];if(q<0)return U(z)?L.stylize(RegExp.prototype.toString.call(z),"regexp"):L.stylize("[Object]","special");L.seen.push(z);var D;return H?D=d(L,z,q,X,Y):D=Y.map(function(oe){return p(L,z,q,X,oe,H)}),L.seen.pop(),g(D,G,te)}function h(L,z){if(N(z))return L.stylize("undefined","undefined");if(_(z)){var q="'"+JSON.stringify(z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return L.stylize(q,"string")}if(x(z))return L.stylize(""+z,"number");if(R(z))return L.stylize(""+z,"boolean");if(m(z))return L.stylize("null","null")}function f(L){return"["+Error.prototype.toString.call(L)+"]"}function d(L,z,q,se,ae){for(var Y=[],X=0,k=z.length;X<k;++X)A(z,String(X))?Y.push(p(L,z,q,se,String(X),!0)):Y.push("");return ae.forEach(function(G){G.match(/^\d+$/)||Y.push(p(L,z,q,se,G,!0))}),Y}function p(L,z,q,se,ae,Y){var X,k,G;if(G=Object.getOwnPropertyDescriptor(z,ae)||{value:z[ae]},G.get?G.set?k=L.stylize("[Getter/Setter]","special"):k=L.stylize("[Getter]","special"):G.set&&(k=L.stylize("[Setter]","special")),A(se,ae)||(X="["+ae+"]"),k||(L.seen.indexOf(G.value)<0?(m(q)?k=l(L,G.value,null):k=l(L,G.value,q-1),k.indexOf(`
|
|
`)>-1&&(Y?k=k.split(`
|
|
`).map(function(H){return" "+H}).join(`
|
|
`).slice(2):k=`
|
|
`+k.split(`
|
|
`).map(function(H){return" "+H}).join(`
|
|
`))):k=L.stylize("[Circular]","special")),N(X)){if(Y&&ae.match(/^\d+$/))return k;X=JSON.stringify(""+ae),X.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(X=X.slice(1,-1),X=L.stylize(X,"name")):(X=X.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),X=L.stylize(X,"string"))}return X+": "+k}function g(L,z,q){var se=L.reduce(function(ae,Y){return Y.indexOf(`
|
|
`)>=0,ae+Y.replace(/\u001b\[\d\d?m/g,"").length+1},0);return se>60?q[0]+(z===""?"":z+`
|
|
`)+" "+L.join(`,
|
|
`)+" "+q[1]:q[0]+z+" "+L.join(", ")+" "+q[1]}t.types=T_();function y(L){return Array.isArray(L)}t.isArray=y;function R(L){return typeof L=="boolean"}t.isBoolean=R;function m(L){return L===null}t.isNull=m;function v(L){return L==null}t.isNullOrUndefined=v;function x(L){return typeof L=="number"}t.isNumber=x;function _(L){return typeof L=="string"}t.isString=_;function E(L){return typeof L=="symbol"}t.isSymbol=E;function N(L){return L===void 0}t.isUndefined=N;function U(L){return O(L)&&b(L)==="[object RegExp]"}t.isRegExp=U,t.types.isRegExp=U;function O(L){return typeof L=="object"&&L!==null}t.isObject=O;function Q(L){return O(L)&&b(L)==="[object Date]"}t.isDate=Q,t.types.isDate=Q;function ne(L){return O(L)&&(b(L)==="[object Error]"||L instanceof Error)}t.isError=ne,t.types.isNativeError=ne;function T(L){return typeof L=="function"}t.isFunction=T;function I(L){return L===null||typeof L=="boolean"||typeof L=="number"||typeof L=="string"||typeof L=="symbol"||typeof L=="undefined"}t.isPrimitive=I,t.isBuffer=S_();function b(L){return Object.prototype.toString.call(L)}function M(L){return L<10?"0"+L.toString(10):L.toString(10)}var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(){var L=new Date,z=[M(L.getHours()),M(L.getMinutes()),M(L.getSeconds())].join(":");return[L.getDate(),C[L.getMonth()],z].join(" ")}t.log=function(){console.log("%s - %s",F(),t.format.apply(t,arguments))},t.inherits=xo,t._extend=function(L,z){if(!z||!O(z))return L;for(var q=Object.keys(z),se=q.length;se--;)L[q[se]]=z[q[se]];return L};function A(L,z){return Object.prototype.hasOwnProperty.call(L,z)}var B=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;t.promisify=function(z){if(typeof z!="function")throw new TypeError('The "original" argument must be of type Function');if(B&&z[B]){var q=z[B];if(typeof q!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(q,B,{value:q,enumerable:!1,writable:!1,configurable:!0}),q}function q(){for(var se,ae,Y=new Promise(function(G,H){se=G,ae=H}),X=[],k=0;k<arguments.length;k++)X.push(arguments[k]);X.push(function(G,H){G?ae(G):se(H)});try{z.apply(this,X)}catch(G){ae(G)}return Y}return Object.setPrototypeOf(q,Object.getPrototypeOf(z)),B&&Object.defineProperty(q,B,{value:q,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(q,e(z))},t.promisify.custom=B;function $(L,z){if(!L){var q=new Error("Promise was rejected with a falsy value");q.reason=L,L=q}return z(L)}function V(L){if(typeof L!="function")throw new TypeError('The "original" argument must be of type Function');function z(){for(var q=[],se=0;se<arguments.length;se++)q.push(arguments[se]);var ae=q.pop();if(typeof ae!="function")throw new TypeError("The last argument must be of type Function");var Y=this,X=function(){return ae.apply(Y,arguments)};L.apply(this,q).then(function(k){nt.nextTick(X.bind(null,null,k))},function(k){nt.nextTick($.bind(null,k,X))})}return Object.setPrototypeOf(z,Object.getPrototypeOf(L)),Object.defineProperties(z,e(L)),z}t.callbackify=V}(Zl)),Zl}var ph,wg;function D_(){if(wg)return ph;wg=1;function t(f,d){var p=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);d&&(g=g.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable})),p.push.apply(p,g)}return p}function e(f){for(var d=1;d<arguments.length;d++){var p=arguments[d]!=null?arguments[d]:{};d%2?t(Object(p),!0).forEach(function(g){n(f,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(p)):t(Object(p)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(p,g))})}return f}function n(f,d,p){return d in f?Object.defineProperty(f,d,{value:p,enumerable:!0,configurable:!0,writable:!0}):f[d]=p,f}function r(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function i(f,d){for(var p=0;p<d.length;p++){var g=d[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}function o(f,d,p){return d&&i(f.prototype,d),p&&i(f,p),f}var a=Uu(),s=a.Buffer,c=$R(),u=c.inspect,l=u&&u.custom||"inspect";function h(f,d,p){s.prototype.copy.call(f,d,p)}return ph=function(){function f(){r(this,f),this.head=null,this.tail=null,this.length=0}return o(f,[{key:"push",value:function(p){var g={data:p,next:null};this.length>0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(p){var g={data:p,next:this.head};this.length===0&&(this.tail=g),this.head=g,++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 g=this.head,y=""+g.data;g=g.next;)y+=p+g.data;return y}},{key:"concat",value:function(p){if(this.length===0)return s.alloc(0);for(var g=s.allocUnsafe(p>>>0),y=this.head,R=0;y;)h(y.data,g,R),R+=y.data.length,y=y.next;return g}},{key:"consume",value:function(p,g){var y;return p<this.head.data.length?(y=this.head.data.slice(0,p),this.head.data=this.head.data.slice(p)):p===this.head.data.length?y=this.shift():y=g?this._getString(p):this._getBuffer(p),y}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(p){var g=this.head,y=1,R=g.data;for(p-=R.length;g=g.next;){var m=g.data,v=p>m.length?m.length:p;if(v===m.length?R+=m:R+=m.slice(0,p),p-=v,p===0){v===m.length?(++y,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=m.slice(v));break}++y}return this.length-=y,R}},{key:"_getBuffer",value:function(p){var g=s.allocUnsafe(p),y=this.head,R=1;for(y.data.copy(g),p-=y.data.length;y=y.next;){var m=y.data,v=p>m.length?m.length:p;if(m.copy(g,g.length-p,0,v),p-=v,p===0){v===m.length?(++R,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=m.slice(v));break}++R}return this.length-=R,g}},{key:l,value:function(p,g){return u(this,e({},g,{depth:0,customInspect:!1}))}}]),f}(),ph}var gh,Tg;function jR(){if(Tg)return gh;Tg=1;function t(a,s){var c=this,u=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return u||l?(s?s(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,nt.nextTick(i,this,a)):nt.nextTick(i,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(h){!s&&h?c._writableState?c._writableState.errorEmitted?nt.nextTick(n,c):(c._writableState.errorEmitted=!0,nt.nextTick(e,c,h)):nt.nextTick(e,c,h):s?(nt.nextTick(n,c),s(h)):nt.nextTick(n,c)}),this)}function e(a,s){i(a,s),n(a)}function n(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function r(){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(a,s){a.emit("error",s)}function o(a,s){var c=a._readableState,u=a._writableState;c&&c.autoDestroy||u&&u.autoDestroy?a.destroy(s):a.emit("error",s)}return gh={destroy:t,undestroy:r,errorOrDestroy:o},gh}var mh={},Sg;function Ia(){if(Sg)return mh;Sg=1;function t(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,s.__proto__=c}var e={};function n(s,c,u){u||(u=Error);function l(f,d,p){return typeof c=="string"?c:c(f,d,p)}var h=function(f){t(d,f);function d(p,g,y){return f.call(this,l(p,g,y))||this}return d}(u);h.prototype.name=u.name,h.prototype.code=s,e[s]=h}function r(s,c){if(Array.isArray(s)){var u=s.length;return s=s.map(function(l){return String(l)}),u>2?"one of ".concat(c," ").concat(s.slice(0,u-1).join(", "),", or ")+s[u-1]:u===2?"one of ".concat(c," ").concat(s[0]," or ").concat(s[1]):"of ".concat(c," ").concat(s[0])}else return"of ".concat(c," ").concat(String(s))}function i(s,c,u){return s.substr(!u||u<0?0:+u,c.length)===c}function o(s,c,u){return(u===void 0||u>s.length)&&(u=s.length),s.substring(u-c.length,u)===c}function a(s,c,u){return typeof u!="number"&&(u=0),u+c.length>s.length?!1:s.indexOf(c,u)!==-1}return n("ERR_INVALID_OPT_VALUE",function(s,c){return'The value "'+c+'" is invalid for option "'+s+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(s,c,u){var l;typeof c=="string"&&i(c,"not ")?(l="must not be",c=c.replace(/^not /,"")):l="must be";var h;if(o(s," argument"))h="The ".concat(s," ").concat(l," ").concat(r(c,"type"));else{var f=a(s,".")?"property":"argument";h='The "'.concat(s,'" ').concat(f," ").concat(l," ").concat(r(c,"type"))}return h+=". Received type ".concat(typeof u),h},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),mh.codes=e,mh}var Rh,Dg;function qR(){if(Dg)return Rh;Dg=1;var t=Ia().codes.ERR_INVALID_OPT_VALUE;function e(r,i,o){return r.highWaterMark!=null?r.highWaterMark:i?r[o]:null}function n(r,i,o,a){var s=e(i,a,o);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var c=a?o:"highWaterMark";throw new t(c,s)}return Math.floor(s)}return r.objectMode?16:16*1024}return Rh={getHighWaterMark:n},Rh}var yh,_g;function __(){if(_g)return yh;_g=1,yh=t;function t(n,r){if(e("noDeprecation"))return n;var i=!1;function o(){if(!i){if(e("throwDeprecation"))throw new Error(r);e("traceDeprecation")?console.trace(r):console.warn(r),i=!0}return n.apply(this,arguments)}return o}function e(n){try{if(!Kr.localStorage)return!1}catch{return!1}var r=Kr.localStorage[n];return r==null?!1:String(r).toLowerCase()==="true"}return yh}var vh,Og;function e2(){if(Og)return vh;Og=1,vh=U;function t(ae){var Y=this;this.next=null,this.entry=null,this.finish=function(){se(Y,ae)}}var e;U.WritableState=E;var n={deprecate:__()},r=QR(),i=Uu().Buffer,o=Kr.Uint8Array||function(){};function a(ae){return i.from(ae)}function s(ae){return i.isBuffer(ae)||ae instanceof o}var c=jR(),u=qR(),l=u.getHighWaterMark,h=Ia().codes,f=h.ERR_INVALID_ARG_TYPE,d=h.ERR_METHOD_NOT_IMPLEMENTED,p=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,y=h.ERR_STREAM_DESTROYED,R=h.ERR_STREAM_NULL_VALUES,m=h.ERR_STREAM_WRITE_AFTER_END,v=h.ERR_UNKNOWN_ENCODING,x=c.errorOrDestroy;xo(U,r);function _(){}function E(ae,Y,X){e=e||pa(),ae=ae||{},typeof X!="boolean"&&(X=Y instanceof e),this.objectMode=!!ae.objectMode,X&&(this.objectMode=this.objectMode||!!ae.writableObjectMode),this.highWaterMark=l(this,ae,"writableHighWaterMark",X),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var k=ae.decodeStrings===!1;this.decodeStrings=!k,this.defaultEncoding=ae.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(G){C(Y,G)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=ae.emitClose!==!1,this.autoDestroy=!!ae.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}E.prototype.getBuffer=function(){for(var Y=this.bufferedRequest,X=[];Y;)X.push(Y),Y=Y.next;return X},function(){try{Object.defineProperty(E.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var N;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(N=Function.prototype[Symbol.hasInstance],Object.defineProperty(U,Symbol.hasInstance,{value:function(Y){return N.call(this,Y)?!0:this!==U?!1:Y&&Y._writableState instanceof E}})):N=function(Y){return Y instanceof this};function U(ae){e=e||pa();var Y=this instanceof e;if(!Y&&!N.call(U,this))return new U(ae);this._writableState=new E(ae,this,Y),this.writable=!0,ae&&(typeof ae.write=="function"&&(this._write=ae.write),typeof ae.writev=="function"&&(this._writev=ae.writev),typeof ae.destroy=="function"&&(this._destroy=ae.destroy),typeof ae.final=="function"&&(this._final=ae.final)),r.call(this)}U.prototype.pipe=function(){x(this,new g)};function O(ae,Y){var X=new m;x(ae,X),nt.nextTick(Y,X)}function Q(ae,Y,X,k){var G;return X===null?G=new R:typeof X!="string"&&!Y.objectMode&&(G=new f("chunk",["string","Buffer"],X)),G?(x(ae,G),nt.nextTick(k,G),!1):!0}U.prototype.write=function(ae,Y,X){var k=this._writableState,G=!1,H=!k.objectMode&&s(ae);return H&&!i.isBuffer(ae)&&(ae=a(ae)),typeof Y=="function"&&(X=Y,Y=null),H?Y="buffer":Y||(Y=k.defaultEncoding),typeof X!="function"&&(X=_),k.ending?O(this,X):(H||Q(this,k,ae,X))&&(k.pendingcb++,G=T(this,k,H,ae,Y,X)),G},U.prototype.cork=function(){this._writableState.corked++},U.prototype.uncork=function(){var ae=this._writableState;ae.corked&&(ae.corked--,!ae.writing&&!ae.corked&&!ae.bufferProcessing&&ae.bufferedRequest&&B(this,ae))},U.prototype.setDefaultEncoding=function(Y){if(typeof Y=="string"&&(Y=Y.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Y+"").toLowerCase())>-1))throw new v(Y);return this._writableState.defaultEncoding=Y,this},Object.defineProperty(U.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ne(ae,Y,X){return!ae.objectMode&&ae.decodeStrings!==!1&&typeof Y=="string"&&(Y=i.from(Y,X)),Y}Object.defineProperty(U.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function T(ae,Y,X,k,G,H){if(!X){var te=ne(Y,k,G);k!==te&&(X=!0,G="buffer",k=te)}var pe=Y.objectMode?1:k.length;Y.length+=pe;var D=Y.length<Y.highWaterMark;if(D||(Y.needDrain=!0),Y.writing||Y.corked){var oe=Y.lastBufferedRequest;Y.lastBufferedRequest={chunk:k,encoding:G,isBuf:X,callback:H,next:null},oe?oe.next=Y.lastBufferedRequest:Y.bufferedRequest=Y.lastBufferedRequest,Y.bufferedRequestCount+=1}else I(ae,Y,!1,pe,k,G,H);return D}function I(ae,Y,X,k,G,H,te){Y.writelen=k,Y.writecb=te,Y.writing=!0,Y.sync=!0,Y.destroyed?Y.onwrite(new y("write")):X?ae._writev(G,Y.onwrite):ae._write(G,H,Y.onwrite),Y.sync=!1}function b(ae,Y,X,k,G){--Y.pendingcb,X?(nt.nextTick(G,k),nt.nextTick(z,ae,Y),ae._writableState.errorEmitted=!0,x(ae,k)):(G(k),ae._writableState.errorEmitted=!0,x(ae,k),z(ae,Y))}function M(ae){ae.writing=!1,ae.writecb=null,ae.length-=ae.writelen,ae.writelen=0}function C(ae,Y){var X=ae._writableState,k=X.sync,G=X.writecb;if(typeof G!="function")throw new p;if(M(X),Y)b(ae,X,k,Y,G);else{var H=$(X)||ae.destroyed;!H&&!X.corked&&!X.bufferProcessing&&X.bufferedRequest&&B(ae,X),k?nt.nextTick(F,ae,X,H,G):F(ae,X,H,G)}}function F(ae,Y,X,k){X||A(ae,Y),Y.pendingcb--,k(),z(ae,Y)}function A(ae,Y){Y.length===0&&Y.needDrain&&(Y.needDrain=!1,ae.emit("drain"))}function B(ae,Y){Y.bufferProcessing=!0;var X=Y.bufferedRequest;if(ae._writev&&X&&X.next){var k=Y.bufferedRequestCount,G=new Array(k),H=Y.corkedRequestsFree;H.entry=X;for(var te=0,pe=!0;X;)G[te]=X,X.isBuf||(pe=!1),X=X.next,te+=1;G.allBuffers=pe,I(ae,Y,!0,Y.length,G,"",H.finish),Y.pendingcb++,Y.lastBufferedRequest=null,H.next?(Y.corkedRequestsFree=H.next,H.next=null):Y.corkedRequestsFree=new t(Y),Y.bufferedRequestCount=0}else{for(;X;){var D=X.chunk,oe=X.encoding,W=X.callback,w=Y.objectMode?1:D.length;if(I(ae,Y,!1,w,D,oe,W),X=X.next,Y.bufferedRequestCount--,Y.writing)break}X===null&&(Y.lastBufferedRequest=null)}Y.bufferedRequest=X,Y.bufferProcessing=!1}U.prototype._write=function(ae,Y,X){X(new d("_write()"))},U.prototype._writev=null,U.prototype.end=function(ae,Y,X){var k=this._writableState;return typeof ae=="function"?(X=ae,ae=null,Y=null):typeof Y=="function"&&(X=Y,Y=null),ae!=null&&this.write(ae,Y),k.corked&&(k.corked=1,this.uncork()),k.ending||q(this,k,X),this},Object.defineProperty(U.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function $(ae){return ae.ending&&ae.length===0&&ae.bufferedRequest===null&&!ae.finished&&!ae.writing}function V(ae,Y){ae._final(function(X){Y.pendingcb--,X&&x(ae,X),Y.prefinished=!0,ae.emit("prefinish"),z(ae,Y)})}function L(ae,Y){!Y.prefinished&&!Y.finalCalled&&(typeof ae._final=="function"&&!Y.destroyed?(Y.pendingcb++,Y.finalCalled=!0,nt.nextTick(V,ae,Y)):(Y.prefinished=!0,ae.emit("prefinish")))}function z(ae,Y){var X=$(Y);if(X&&(L(ae,Y),Y.pendingcb===0&&(Y.finished=!0,ae.emit("finish"),Y.autoDestroy))){var k=ae._readableState;(!k||k.autoDestroy&&k.endEmitted)&&ae.destroy()}return X}function q(ae,Y,X){Y.ending=!0,z(ae,Y),X&&(Y.finished?nt.nextTick(X):ae.once("finish",X)),Y.ended=!0,ae.writable=!1}function se(ae,Y,X){var k=ae.entry;for(ae.entry=null;k;){var G=k.callback;Y.pendingcb--,G(X),k=k.next}Y.corkedRequestsFree.next=ae}return Object.defineProperty(U.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Y){!this._writableState||(this._writableState.destroyed=Y)}}),U.prototype.destroy=c.destroy,U.prototype._undestroy=c.undestroy,U.prototype._destroy=function(ae,Y){Y(ae)},vh}var bh,Eg;function pa(){if(Eg)return bh;Eg=1;var t=Object.keys||function(u){var l=[];for(var h in u)l.push(h);return l};bh=a;var e=t2(),n=e2();xo(a,e);for(var r=t(n.prototype),i=0;i<r.length;i++){var o=r[i];a.prototype[o]||(a.prototype[o]=n.prototype[o])}function a(u){if(!(this instanceof a))return new a(u);e.call(this,u),n.call(this,u),this.allowHalfOpen=!0,u&&(u.readable===!1&&(this.readable=!1),u.writable===!1&&(this.writable=!1),u.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||nt.nextTick(c,this)}function c(u){u.end()}return Object.defineProperty(a.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)}}),bh}var xh={},Oc={exports:{}},Ig;function O_(){return Ig||(Ig=1,function(t,e){var n=Uu(),r=n.Buffer;function i(a,s){for(var c in a)s[c]=a[c]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=o);function o(a,s,c){return r(a,s,c)}i(r,o),o.from=function(a,s,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return r(a,s,c)},o.alloc=function(a,s,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var u=r(a);return s!==void 0?typeof c=="string"?u.fill(s,c):u.fill(s):u.fill(0),u},o.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r(a)},o.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}}(Oc,Oc.exports)),Oc.exports}var Ng;function Sd(){if(Ng)return xh;Ng=1;var t=O_().Buffer,e=t.isEncoding||function(R){switch(R=""+R,R&&R.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 n(R){if(!R)return"utf8";for(var m;;)switch(R){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 R;default:if(m)return;R=(""+R).toLowerCase(),m=!0}}function r(R){var m=n(R);if(typeof m!="string"&&(t.isEncoding===e||!e(R)))throw new Error("Unknown encoding: "+R);return m||R}xh.StringDecoder=i;function i(R){this.encoding=r(R);var m;switch(this.encoding){case"utf16le":this.text=h,this.end=f,m=4;break;case"utf8":this.fillLast=c,m=4;break;case"base64":this.text=d,this.end=p,m=3;break;default:this.write=g,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(m)}i.prototype.write=function(R){if(R.length===0)return"";var m,v;if(this.lastNeed){if(m=this.fillLast(R),m===void 0)return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v<R.length?m?m+this.text(R,v):this.text(R,v):m||""},i.prototype.end=l,i.prototype.text=u,i.prototype.fillLast=function(R){if(this.lastNeed<=R.length)return R.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);R.copy(this.lastChar,this.lastTotal-this.lastNeed,0,R.length),this.lastNeed-=R.length};function o(R){return R<=127?0:R>>5===6?2:R>>4===14?3:R>>3===30?4:R>>6===2?-1:-2}function a(R,m,v){var x=m.length-1;if(x<v)return 0;var _=o(m[x]);return _>=0?(_>0&&(R.lastNeed=_-1),_):--x<v||_===-2?0:(_=o(m[x]),_>=0?(_>0&&(R.lastNeed=_-2),_):--x<v||_===-2?0:(_=o(m[x]),_>=0?(_>0&&(_===2?_=0:R.lastNeed=_-3),_):0))}function s(R,m,v){if((m[0]&192)!==128)return R.lastNeed=0,"\uFFFD";if(R.lastNeed>1&&m.length>1){if((m[1]&192)!==128)return R.lastNeed=1,"\uFFFD";if(R.lastNeed>2&&m.length>2&&(m[2]&192)!==128)return R.lastNeed=2,"\uFFFD"}}function c(R){var m=this.lastTotal-this.lastNeed,v=s(this,R);if(v!==void 0)return v;if(this.lastNeed<=R.length)return R.copy(this.lastChar,m,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);R.copy(this.lastChar,m,0,R.length),this.lastNeed-=R.length}function u(R,m){var v=a(this,R,m);if(!this.lastNeed)return R.toString("utf8",m);this.lastTotal=v;var x=R.length-(v-this.lastNeed);return R.copy(this.lastChar,0,x),R.toString("utf8",m,x)}function l(R){var m=R&&R.length?this.write(R):"";return this.lastNeed?m+"\uFFFD":m}function h(R,m){if((R.length-m)%2===0){var v=R.toString("utf16le",m);if(v){var x=v.charCodeAt(v.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=R[R.length-2],this.lastChar[1]=R[R.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=R[R.length-1],R.toString("utf16le",m,R.length-1)}function f(R){var m=R&&R.length?this.write(R):"";if(this.lastNeed){var v=this.lastTotal-this.lastNeed;return m+this.lastChar.toString("utf16le",0,v)}return m}function d(R,m){var v=(R.length-m)%3;return v===0?R.toString("base64",m):(this.lastNeed=3-v,this.lastTotal=3,v===1?this.lastChar[0]=R[R.length-1]:(this.lastChar[0]=R[R.length-2],this.lastChar[1]=R[R.length-1]),R.toString("base64",m,R.length-v))}function p(R){var m=R&&R.length?this.write(R):"";return this.lastNeed?m+this.lastChar.toString("base64",0,3-this.lastNeed):m}function g(R){return R.toString(this.encoding)}function y(R){return R&&R.length?this.write(R):""}return xh}var wh,Fg;function pf(){if(Fg)return wh;Fg=1;var t=Ia().codes.ERR_STREAM_PREMATURE_CLOSE;function e(o){var a=!1;return function(){if(!a){a=!0;for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];o.apply(this,c)}}}function n(){}function r(o){return o.setHeader&&typeof o.abort=="function"}function i(o,a,s){if(typeof a=="function")return i(o,null,a);a||(a={}),s=e(s||n);var c=a.readable||a.readable!==!1&&o.readable,u=a.writable||a.writable!==!1&&o.writable,l=function(){o.writable||f()},h=o._writableState&&o._writableState.finished,f=function(){u=!1,h=!0,c||s.call(o)},d=o._readableState&&o._readableState.endEmitted,p=function(){c=!1,d=!0,u||s.call(o)},g=function(v){s.call(o,v)},y=function(){var v;if(c&&!d)return(!o._readableState||!o._readableState.ended)&&(v=new t),s.call(o,v);if(u&&!h)return(!o._writableState||!o._writableState.ended)&&(v=new t),s.call(o,v)},R=function(){o.req.on("finish",f)};return r(o)?(o.on("complete",f),o.on("abort",y),o.req?R():o.on("request",R)):u&&!o._writableState&&(o.on("end",l),o.on("close",l)),o.on("end",p),o.on("finish",f),a.error!==!1&&o.on("error",g),o.on("close",y),function(){o.removeListener("complete",f),o.removeListener("abort",y),o.removeListener("request",R),o.req&&o.req.removeListener("finish",f),o.removeListener("end",l),o.removeListener("close",l),o.removeListener("finish",f),o.removeListener("end",p),o.removeListener("error",g),o.removeListener("close",y)}}return wh=i,wh}var Th,Pg;function E_(){if(Pg)return Th;Pg=1;var t;function e(R,m,v){return m in R?Object.defineProperty(R,m,{value:v,enumerable:!0,configurable:!0,writable:!0}):R[m]=v,R}var n=pf(),r=Symbol("lastResolve"),i=Symbol("lastReject"),o=Symbol("error"),a=Symbol("ended"),s=Symbol("lastPromise"),c=Symbol("handlePromise"),u=Symbol("stream");function l(R,m){return{value:R,done:m}}function h(R){var m=R[r];if(m!==null){var v=R[u].read();v!==null&&(R[s]=null,R[r]=null,R[i]=null,m(l(v,!1)))}}function f(R){nt.nextTick(h,R)}function d(R,m){return function(v,x){R.then(function(){if(m[a]){v(l(void 0,!0));return}m[c](v,x)},x)}}var p=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((t={get stream(){return this[u]},next:function(){var m=this,v=this[o];if(v!==null)return Promise.reject(v);if(this[a])return Promise.resolve(l(void 0,!0));if(this[u].destroyed)return new Promise(function(N,U){nt.nextTick(function(){m[o]?U(m[o]):N(l(void 0,!0))})});var x=this[s],_;if(x)_=new Promise(d(x,this));else{var E=this[u].read();if(E!==null)return Promise.resolve(l(E,!1));_=new Promise(this[c])}return this[s]=_,_}},e(t,Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var m=this;return new Promise(function(v,x){m[u].destroy(null,function(_){if(_){x(_);return}v(l(void 0,!0))})})}),t),p),y=function(m){var v,x=Object.create(g,(v={},e(v,u,{value:m,writable:!0}),e(v,r,{value:null,writable:!0}),e(v,i,{value:null,writable:!0}),e(v,o,{value:null,writable:!0}),e(v,a,{value:m._readableState.endEmitted,writable:!0}),e(v,c,{value:function(E,N){var U=x[u].read();U?(x[s]=null,x[r]=null,x[i]=null,E(l(U,!1))):(x[r]=E,x[i]=N)},writable:!0}),v));return x[s]=null,n(m,function(_){if(_&&_.code!=="ERR_STREAM_PREMATURE_CLOSE"){var E=x[i];E!==null&&(x[s]=null,x[r]=null,x[i]=null,E(_)),x[o]=_;return}var N=x[r];N!==null&&(x[s]=null,x[r]=null,x[i]=null,N(l(void 0,!0))),x[a]=!0}),m.on("readable",f.bind(null,x)),x};return Th=y,Th}var Sh,Lg;function I_(){return Lg||(Lg=1,Sh=function(){throw new Error("Readable.from is not available in the browser")}),Sh}var Dh,Mg;function t2(){if(Mg)return Dh;Mg=1,Dh=O;var t;O.ReadableState=U,lf.EventEmitter;var e=function(te,pe){return te.listeners(pe).length},n=QR(),r=Uu().Buffer,i=Kr.Uint8Array||function(){};function o(H){return r.from(H)}function a(H){return r.isBuffer(H)||H instanceof i}var s=$R(),c;s&&s.debuglog?c=s.debuglog("stream"):c=function(){};var u=D_(),l=jR(),h=qR(),f=h.getHighWaterMark,d=Ia().codes,p=d.ERR_INVALID_ARG_TYPE,g=d.ERR_STREAM_PUSH_AFTER_EOF,y=d.ERR_METHOD_NOT_IMPLEMENTED,R=d.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,m,v,x;xo(O,n);var _=l.errorOrDestroy,E=["error","close","destroy","pause","resume"];function N(H,te,pe){if(typeof H.prependListener=="function")return H.prependListener(te,pe);!H._events||!H._events[te]?H.on(te,pe):Array.isArray(H._events[te])?H._events[te].unshift(pe):H._events[te]=[pe,H._events[te]]}function U(H,te,pe){t=t||pa(),H=H||{},typeof pe!="boolean"&&(pe=te instanceof t),this.objectMode=!!H.objectMode,pe&&(this.objectMode=this.objectMode||!!H.readableObjectMode),this.highWaterMark=f(this,H,"readableHighWaterMark",pe),this.buffer=new u,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=H.emitClose!==!1,this.autoDestroy=!!H.autoDestroy,this.destroyed=!1,this.defaultEncoding=H.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,H.encoding&&(m||(m=Sd().StringDecoder),this.decoder=new m(H.encoding),this.encoding=H.encoding)}function O(H){if(t=t||pa(),!(this instanceof O))return new O(H);var te=this instanceof t;this._readableState=new U(H,this,te),this.readable=!0,H&&(typeof H.read=="function"&&(this._read=H.read),typeof H.destroy=="function"&&(this._destroy=H.destroy)),n.call(this)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(te){!this._readableState||(this._readableState.destroyed=te)}}),O.prototype.destroy=l.destroy,O.prototype._undestroy=l.undestroy,O.prototype._destroy=function(H,te){te(H)},O.prototype.push=function(H,te){var pe=this._readableState,D;return pe.objectMode?D=!0:typeof H=="string"&&(te=te||pe.defaultEncoding,te!==pe.encoding&&(H=r.from(H,te),te=""),D=!0),Q(this,H,te,!1,D)},O.prototype.unshift=function(H){return Q(this,H,null,!0,!1)};function Q(H,te,pe,D,oe){c("readableAddChunk",te);var W=H._readableState;if(te===null)W.reading=!1,C(H,W);else{var w;if(oe||(w=T(W,te)),w)_(H,w);else if(W.objectMode||te&&te.length>0)if(typeof te!="string"&&!W.objectMode&&Object.getPrototypeOf(te)!==r.prototype&&(te=o(te)),D)W.endEmitted?_(H,new R):ne(H,W,te,!0);else if(W.ended)_(H,new g);else{if(W.destroyed)return!1;W.reading=!1,W.decoder&&!pe?(te=W.decoder.write(te),W.objectMode||te.length!==0?ne(H,W,te,!1):B(H,W)):ne(H,W,te,!1)}else D||(W.reading=!1,B(H,W))}return!W.ended&&(W.length<W.highWaterMark||W.length===0)}function ne(H,te,pe,D){te.flowing&&te.length===0&&!te.sync?(te.awaitDrain=0,H.emit("data",pe)):(te.length+=te.objectMode?1:pe.length,D?te.buffer.unshift(pe):te.buffer.push(pe),te.needReadable&&F(H)),B(H,te)}function T(H,te){var pe;return!a(te)&&typeof te!="string"&&te!==void 0&&!H.objectMode&&(pe=new p("chunk",["string","Buffer","Uint8Array"],te)),pe}O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(H){m||(m=Sd().StringDecoder);var te=new m(H);this._readableState.decoder=te,this._readableState.encoding=this._readableState.decoder.encoding;for(var pe=this._readableState.buffer.head,D="";pe!==null;)D+=te.write(pe.data),pe=pe.next;return this._readableState.buffer.clear(),D!==""&&this._readableState.buffer.push(D),this._readableState.length=D.length,this};var I=1073741824;function b(H){return H>=I?H=I:(H--,H|=H>>>1,H|=H>>>2,H|=H>>>4,H|=H>>>8,H|=H>>>16,H++),H}function M(H,te){return H<=0||te.length===0&&te.ended?0:te.objectMode?1:H!==H?te.flowing&&te.length?te.buffer.head.data.length:te.length:(H>te.highWaterMark&&(te.highWaterMark=b(H)),H<=te.length?H:te.ended?te.length:(te.needReadable=!0,0))}O.prototype.read=function(H){c("read",H),H=parseInt(H,10);var te=this._readableState,pe=H;if(H!==0&&(te.emittedReadable=!1),H===0&&te.needReadable&&((te.highWaterMark!==0?te.length>=te.highWaterMark:te.length>0)||te.ended))return c("read: emitReadable",te.length,te.ended),te.length===0&&te.ended?X(this):F(this),null;if(H=M(H,te),H===0&&te.ended)return te.length===0&&X(this),null;var D=te.needReadable;c("need readable",D),(te.length===0||te.length-H<te.highWaterMark)&&(D=!0,c("length less than watermark",D)),te.ended||te.reading?(D=!1,c("reading or ended",D)):D&&(c("do read"),te.reading=!0,te.sync=!0,te.length===0&&(te.needReadable=!0),this._read(te.highWaterMark),te.sync=!1,te.reading||(H=M(pe,te)));var oe;return H>0?oe=Y(H,te):oe=null,oe===null?(te.needReadable=te.length<=te.highWaterMark,H=0):(te.length-=H,te.awaitDrain=0),te.length===0&&(te.ended||(te.needReadable=!0),pe!==H&&te.ended&&X(this)),oe!==null&&this.emit("data",oe),oe};function C(H,te){if(c("onEofChunk"),!te.ended){if(te.decoder){var pe=te.decoder.end();pe&&pe.length&&(te.buffer.push(pe),te.length+=te.objectMode?1:pe.length)}te.ended=!0,te.sync?F(H):(te.needReadable=!1,te.emittedReadable||(te.emittedReadable=!0,A(H)))}}function F(H){var te=H._readableState;c("emitReadable",te.needReadable,te.emittedReadable),te.needReadable=!1,te.emittedReadable||(c("emitReadable",te.flowing),te.emittedReadable=!0,nt.nextTick(A,H))}function A(H){var te=H._readableState;c("emitReadable_",te.destroyed,te.length,te.ended),!te.destroyed&&(te.length||te.ended)&&(H.emit("readable"),te.emittedReadable=!1),te.needReadable=!te.flowing&&!te.ended&&te.length<=te.highWaterMark,ae(H)}function B(H,te){te.readingMore||(te.readingMore=!0,nt.nextTick($,H,te))}function $(H,te){for(;!te.reading&&!te.ended&&(te.length<te.highWaterMark||te.flowing&&te.length===0);){var pe=te.length;if(c("maybeReadMore read 0"),H.read(0),pe===te.length)break}te.readingMore=!1}O.prototype._read=function(H){_(this,new y("_read()"))},O.prototype.pipe=function(H,te){var pe=this,D=this._readableState;switch(D.pipesCount){case 0:D.pipes=H;break;case 1:D.pipes=[D.pipes,H];break;default:D.pipes.push(H);break}D.pipesCount+=1,c("pipe count=%d opts=%j",D.pipesCount,te);var oe=(!te||te.end!==!1)&&H!==nt.stdout&&H!==nt.stderr,W=oe?S:he;D.endEmitted?nt.nextTick(W):pe.once("end",W),H.on("unpipe",w);function w(ve,_e){c("onunpipe"),ve===pe&&_e&&_e.hasUnpiped===!1&&(_e.hasUnpiped=!0,ie())}function S(){c("onend"),H.end()}var P=V(pe);H.on("drain",P);var J=!1;function ie(){c("cleanup"),H.removeListener("close",re),H.removeListener("finish",ce),H.removeListener("drain",P),H.removeListener("error",j),H.removeListener("unpipe",w),pe.removeListener("end",S),pe.removeListener("end",he),pe.removeListener("data",K),J=!0,D.awaitDrain&&(!H._writableState||H._writableState.needDrain)&&P()}pe.on("data",K);function K(ve){c("ondata");var _e=H.write(ve);c("dest.write",_e),_e===!1&&((D.pipesCount===1&&D.pipes===H||D.pipesCount>1&&G(D.pipes,H)!==-1)&&!J&&(c("false write response, pause",D.awaitDrain),D.awaitDrain++),pe.pause())}function j(ve){c("onerror",ve),he(),H.removeListener("error",j),e(H,"error")===0&&_(H,ve)}N(H,"error",j);function re(){H.removeListener("finish",ce),he()}H.once("close",re);function ce(){c("onfinish"),H.removeListener("close",re),he()}H.once("finish",ce);function he(){c("unpipe"),pe.unpipe(H)}return H.emit("pipe",pe),D.flowing||(c("pipe resume"),pe.resume()),H};function V(H){return function(){var pe=H._readableState;c("pipeOnDrain",pe.awaitDrain),pe.awaitDrain&&pe.awaitDrain--,pe.awaitDrain===0&&e(H,"data")&&(pe.flowing=!0,ae(H))}}O.prototype.unpipe=function(H){var te=this._readableState,pe={hasUnpiped:!1};if(te.pipesCount===0)return this;if(te.pipesCount===1)return H&&H!==te.pipes?this:(H||(H=te.pipes),te.pipes=null,te.pipesCount=0,te.flowing=!1,H&&H.emit("unpipe",this,pe),this);if(!H){var D=te.pipes,oe=te.pipesCount;te.pipes=null,te.pipesCount=0,te.flowing=!1;for(var W=0;W<oe;W++)D[W].emit("unpipe",this,{hasUnpiped:!1});return this}var w=G(te.pipes,H);return w===-1?this:(te.pipes.splice(w,1),te.pipesCount-=1,te.pipesCount===1&&(te.pipes=te.pipes[0]),H.emit("unpipe",this,pe),this)},O.prototype.on=function(H,te){var pe=n.prototype.on.call(this,H,te),D=this._readableState;return H==="data"?(D.readableListening=this.listenerCount("readable")>0,D.flowing!==!1&&this.resume()):H==="readable"&&!D.endEmitted&&!D.readableListening&&(D.readableListening=D.needReadable=!0,D.flowing=!1,D.emittedReadable=!1,c("on readable",D.length,D.reading),D.length?F(this):D.reading||nt.nextTick(z,this)),pe},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(H,te){var pe=n.prototype.removeListener.call(this,H,te);return H==="readable"&&nt.nextTick(L,this),pe},O.prototype.removeAllListeners=function(H){var te=n.prototype.removeAllListeners.apply(this,arguments);return(H==="readable"||H===void 0)&&nt.nextTick(L,this),te};function L(H){var te=H._readableState;te.readableListening=H.listenerCount("readable")>0,te.resumeScheduled&&!te.paused?te.flowing=!0:H.listenerCount("data")>0&&H.resume()}function z(H){c("readable nexttick read 0"),H.read(0)}O.prototype.resume=function(){var H=this._readableState;return H.flowing||(c("resume"),H.flowing=!H.readableListening,q(this,H)),H.paused=!1,this};function q(H,te){te.resumeScheduled||(te.resumeScheduled=!0,nt.nextTick(se,H,te))}function se(H,te){c("resume",te.reading),te.reading||H.read(0),te.resumeScheduled=!1,H.emit("resume"),ae(H),te.flowing&&!te.reading&&H.read(0)}O.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ae(H){var te=H._readableState;for(c("flow",te.flowing);te.flowing&&H.read()!==null;);}O.prototype.wrap=function(H){var te=this,pe=this._readableState,D=!1;H.on("end",function(){if(c("wrapped end"),pe.decoder&&!pe.ended){var w=pe.decoder.end();w&&w.length&&te.push(w)}te.push(null)}),H.on("data",function(w){if(c("wrapped data"),pe.decoder&&(w=pe.decoder.write(w)),!(pe.objectMode&&w==null)&&!(!pe.objectMode&&(!w||!w.length))){var S=te.push(w);S||(D=!0,H.pause())}});for(var oe in H)this[oe]===void 0&&typeof H[oe]=="function"&&(this[oe]=function(S){return function(){return H[S].apply(H,arguments)}}(oe));for(var W=0;W<E.length;W++)H.on(E[W],this.emit.bind(this,E[W]));return this._read=function(w){c("wrapped _read",w),D&&(D=!1,H.resume())},this},typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return v===void 0&&(v=E_()),v(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(te){this._readableState&&(this._readableState.flowing=te)}}),O._fromList=Y,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Y(H,te){if(te.length===0)return null;var pe;return te.objectMode?pe=te.buffer.shift():!H||H>=te.length?(te.decoder?pe=te.buffer.join(""):te.buffer.length===1?pe=te.buffer.first():pe=te.buffer.concat(te.length),te.buffer.clear()):pe=te.buffer.consume(H,te.decoder),pe}function X(H){var te=H._readableState;c("endReadable",te.endEmitted),te.endEmitted||(te.ended=!0,nt.nextTick(k,te,H))}function k(H,te){if(c("endReadableNT",H.endEmitted,H.length),!H.endEmitted&&H.length===0&&(H.endEmitted=!0,te.readable=!1,te.emit("end"),H.autoDestroy)){var pe=te._writableState;(!pe||pe.autoDestroy&&pe.finished)&&te.destroy()}}typeof Symbol=="function"&&(O.from=function(H,te){return x===void 0&&(x=I_()),x(O,H,te)});function G(H,te){for(var pe=0,D=H.length;pe<D;pe++)if(H[pe]===te)return pe;return-1}return Dh}var _h,Cg;function n2(){if(Cg)return _h;Cg=1,_h=s;var t=Ia().codes,e=t.ERR_METHOD_NOT_IMPLEMENTED,n=t.ERR_MULTIPLE_CALLBACK,r=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=t.ERR_TRANSFORM_WITH_LENGTH_0,o=pa();xo(s,o);function a(l,h){var f=this._transformState;f.transforming=!1;var d=f.writecb;if(d===null)return this.emit("error",new n);f.writechunk=null,f.writecb=null,h!=null&&this.push(h),d(l);var p=this._readableState;p.reading=!1,(p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}function s(l){if(!(this instanceof s))return new s(l);o.call(this,l),this._transformState={afterTransform:a.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",c)}function c(){var l=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(h,f){u(l,h,f)}):u(this,null,null)}s.prototype.push=function(l,h){return this._transformState.needTransform=!1,o.prototype.push.call(this,l,h)},s.prototype._transform=function(l,h,f){f(new e("_transform()"))},s.prototype._write=function(l,h,f){var d=this._transformState;if(d.writecb=f,d.writechunk=l,d.writeencoding=h,!d.transforming){var p=this._readableState;(d.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},s.prototype._read=function(l){var h=this._transformState;h.writechunk!==null&&!h.transforming?(h.transforming=!0,this._transform(h.writechunk,h.writeencoding,h.afterTransform)):h.needTransform=!0},s.prototype._destroy=function(l,h){o.prototype._destroy.call(this,l,function(f){h(f)})};function u(l,h,f){if(h)return l.emit("error",h);if(f!=null&&l.push(f),l._writableState.length)throw new i;if(l._transformState.transforming)throw new r;return l.push(null)}return _h}var Oh,Ag;function N_(){if(Ag)return Oh;Ag=1,Oh=e;var t=n2();xo(e,t);function e(n){if(!(this instanceof e))return new e(n);t.call(this,n)}return e.prototype._transform=function(n,r,i){i(null,n)},Oh}var Eh,Ug;function F_(){if(Ug)return Eh;Ug=1;var t;function e(f){var d=!1;return function(){d||(d=!0,f.apply(void 0,arguments))}}var n=Ia().codes,r=n.ERR_MISSING_ARGS,i=n.ERR_STREAM_DESTROYED;function o(f){if(f)throw f}function a(f){return f.setHeader&&typeof f.abort=="function"}function s(f,d,p,g){g=e(g);var y=!1;f.on("close",function(){y=!0}),t===void 0&&(t=pf()),t(f,{readable:d,writable:p},function(m){if(m)return g(m);y=!0,g()});var R=!1;return function(m){if(!y&&!R){if(R=!0,a(f))return f.abort();if(typeof f.destroy=="function")return f.destroy();g(m||new i("pipe"))}}}function c(f){f()}function u(f,d){return f.pipe(d)}function l(f){return!f.length||typeof f[f.length-1]!="function"?o:f.pop()}function h(){for(var f=arguments.length,d=new Array(f),p=0;p<f;p++)d[p]=arguments[p];var g=l(d);if(Array.isArray(d[0])&&(d=d[0]),d.length<2)throw new r("streams");var y,R=d.map(function(m,v){var x=v<d.length-1,_=v>0;return s(m,x,_,function(E){y||(y=E),E&&R.forEach(c),!x&&(R.forEach(c),g(y))})});return d.reduce(u)}return Eh=h,Eh}var gf=Or,mf=lf.EventEmitter,P_=xo;P_(Or,mf);Or.Readable=t2();Or.Writable=e2();Or.Duplex=pa();Or.Transform=n2();Or.PassThrough=N_();Or.finished=pf();Or.pipeline=F_();Or.Stream=Or;function Or(){mf.call(this)}Or.prototype.pipe=function(t,e){var n=this;function r(l){t.writable&&t.write(l)===!1&&n.pause&&n.pause()}n.on("data",r);function i(){n.readable&&n.resume&&n.resume()}t.on("drain",i),!t._isStdio&&(!e||e.end!==!1)&&(n.on("end",a),n.on("close",s));var o=!1;function a(){o||(o=!0,t.end())}function s(){o||(o=!0,typeof t.destroy=="function"&&t.destroy())}function c(l){if(u(),mf.listenerCount(this,"error")===0)throw l}n.on("error",c),t.on("error",c);function u(){n.removeListener("data",r),t.removeListener("drain",i),n.removeListener("end",a),n.removeListener("close",s),n.removeListener("error",c),t.removeListener("error",c),n.removeListener("end",u),n.removeListener("close",u),t.removeListener("close",u)}return n.on("end",u),n.on("close",u),t.on("close",u),t.emit("pipe",n),t};(function(t){(function(e){e.parser=function(Y,X){return new r(Y,X)},e.SAXParser=r,e.SAXStream=l,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function r(Y,X){if(!(this instanceof r))return new r(Y,X);var k=this;o(k),k.q=k.c="",k.bufferCheckPosition=e.MAX_BUFFER_LENGTH,k.opt=X||{},k.opt.lowercase=k.opt.lowercase||k.opt.lowercasetags,k.looseCase=k.opt.lowercase?"toLowerCase":"toUpperCase",k.tags=[],k.closed=k.closedRoot=k.sawRoot=!1,k.tag=k.error=null,k.strict=!!Y,k.noscript=!!(Y||k.opt.noscript),k.state=O.BEGIN,k.strictEntities=k.opt.strictEntities,k.ENTITIES=k.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),k.attribList=[],k.opt.xmlns&&(k.ns=Object.create(g)),k.trackPosition=k.opt.position!==!1,k.trackPosition&&(k.position=k.line=k.column=0),ne(k,"onready")}Object.create||(Object.create=function(Y){function X(){}X.prototype=Y;var k=new X;return k}),Object.keys||(Object.keys=function(Y){var X=[];for(var k in Y)Y.hasOwnProperty(k)&&X.push(k);return X});function i(Y){for(var X=Math.max(e.MAX_BUFFER_LENGTH,10),k=0,G=0,H=n.length;G<H;G++){var te=Y[n[G]].length;if(te>X)switch(n[G]){case"textNode":I(Y);break;case"cdata":T(Y,"oncdata",Y.cdata),Y.cdata="";break;case"script":T(Y,"onscript",Y.script),Y.script="";break;default:M(Y,"Max buffer length exceeded: "+n[G])}k=Math.max(k,te)}var pe=e.MAX_BUFFER_LENGTH-k;Y.bufferCheckPosition=pe+Y.position}function o(Y){for(var X=0,k=n.length;X<k;X++)Y[n[X]]=""}function a(Y){I(Y),Y.cdata!==""&&(T(Y,"oncdata",Y.cdata),Y.cdata=""),Y.script!==""&&(T(Y,"onscript",Y.script),Y.script="")}r.prototype={end:function(){C(this)},write:ae,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var s;try{s=gf.Stream}catch{s=function(){}}var c=e.EVENTS.filter(function(Y){return Y!=="error"&&Y!=="end"});function u(Y,X){return new l(Y,X)}function l(Y,X){if(!(this instanceof l))return new l(Y,X);s.apply(this),this._parser=new r(Y,X),this.writable=!0,this.readable=!0;var k=this;this._parser.onend=function(){k.emit("end")},this._parser.onerror=function(G){k.emit("error",G),k._parser.error=null},this._decoder=null,c.forEach(function(G){Object.defineProperty(k,"on"+G,{get:function(){return k._parser["on"+G]},set:function(H){if(!H)return k.removeAllListeners(G),k._parser["on"+G]=H,H;k.on(G,H)},enumerable:!0,configurable:!1})})}l.prototype=Object.create(s.prototype,{constructor:{value:l}}),l.prototype.write=function(Y){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(Y)){if(!this._decoder){var X=Sd().StringDecoder;this._decoder=new X("utf8")}Y=this._decoder.write(Y)}return this._parser.write(Y.toString()),this.emit("data",Y),!0},l.prototype.end=function(Y){return Y&&Y.length&&this.write(Y),this._parser.end(),!0},l.prototype.on=function(Y,X){var k=this;return!k._parser["on"+Y]&&c.indexOf(Y)!==-1&&(k._parser["on"+Y]=function(){var G=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);G.splice(0,0,Y),k.emit.apply(k,G)}),s.prototype.on.call(k,Y,X)};var h="[CDATA[",f="DOCTYPE",d="http://www.w3.org/XML/1998/namespace",p="http://www.w3.org/2000/xmlns/",g={xml:d,xmlns:p},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]/,R=/[:_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-]/,m=/[#:_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]/,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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function x(Y){return Y===" "||Y===`
|
|
`||Y==="\r"||Y===" "}function _(Y){return Y==='"'||Y==="'"}function E(Y){return Y===">"||x(Y)}function N(Y,X){return Y.test(X)}function U(Y,X){return!N(Y,X)}var O=0;e.STATE={BEGIN:O++,BEGIN_WHITESPACE:O++,TEXT:O++,TEXT_ENTITY:O++,OPEN_WAKA:O++,SGML_DECL:O++,SGML_DECL_QUOTED:O++,DOCTYPE:O++,DOCTYPE_QUOTED:O++,DOCTYPE_DTD:O++,DOCTYPE_DTD_QUOTED:O++,COMMENT_STARTING:O++,COMMENT:O++,COMMENT_ENDING:O++,COMMENT_ENDED:O++,CDATA:O++,CDATA_ENDING:O++,CDATA_ENDING_2:O++,PROC_INST:O++,PROC_INST_BODY:O++,PROC_INST_ENDING:O++,OPEN_TAG:O++,OPEN_TAG_SLASH:O++,ATTRIB:O++,ATTRIB_NAME:O++,ATTRIB_NAME_SAW_WHITE:O++,ATTRIB_VALUE:O++,ATTRIB_VALUE_QUOTED:O++,ATTRIB_VALUE_CLOSED:O++,ATTRIB_VALUE_UNQUOTED:O++,ATTRIB_VALUE_ENTITY_Q:O++,ATTRIB_VALUE_ENTITY_U:O++,CLOSE_TAG:O++,CLOSE_TAG_SAW_WHITE:O++,SCRIPT:O++,SCRIPT_ENDING:O++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.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(e.ENTITIES).forEach(function(Y){var X=e.ENTITIES[Y],k=typeof X=="number"?String.fromCharCode(X):X;e.ENTITIES[Y]=k});for(var Q in e.STATE)e.STATE[e.STATE[Q]]=Q;O=e.STATE;function ne(Y,X,k){Y[X]&&Y[X](k)}function T(Y,X,k){Y.textNode&&I(Y),ne(Y,X,k)}function I(Y){Y.textNode=b(Y.opt,Y.textNode),Y.textNode&&ne(Y,"ontext",Y.textNode),Y.textNode=""}function b(Y,X){return Y.trim&&(X=X.trim()),Y.normalize&&(X=X.replace(/\s+/g," ")),X}function M(Y,X){return I(Y),Y.trackPosition&&(X+=`
|
|
Line: `+Y.line+`
|
|
Column: `+Y.column+`
|
|
Char: `+Y.c),X=new Error(X),Y.error=X,ne(Y,"onerror",X),Y}function C(Y){return Y.sawRoot&&!Y.closedRoot&&F(Y,"Unclosed root tag"),Y.state!==O.BEGIN&&Y.state!==O.BEGIN_WHITESPACE&&Y.state!==O.TEXT&&M(Y,"Unexpected end"),I(Y),Y.c="",Y.closed=!0,ne(Y,"onend"),r.call(Y,Y.strict,Y.opt),Y}function F(Y,X){if(typeof Y!="object"||!(Y instanceof r))throw new Error("bad call to strictFail");Y.strict&&M(Y,X)}function A(Y){Y.strict||(Y.tagName=Y.tagName[Y.looseCase]());var X=Y.tags[Y.tags.length-1]||Y,k=Y.tag={name:Y.tagName,attributes:{}};Y.opt.xmlns&&(k.ns=X.ns),Y.attribList.length=0,T(Y,"onopentagstart",k)}function B(Y,X){var k=Y.indexOf(":"),G=k<0?["",Y]:Y.split(":"),H=G[0],te=G[1];return X&&Y==="xmlns"&&(H="xmlns",te=""),{prefix:H,local:te}}function $(Y){if(Y.strict||(Y.attribName=Y.attribName[Y.looseCase]()),Y.attribList.indexOf(Y.attribName)!==-1||Y.tag.attributes.hasOwnProperty(Y.attribName)){Y.attribName=Y.attribValue="";return}if(Y.opt.xmlns){var X=B(Y.attribName,!0),k=X.prefix,G=X.local;if(k==="xmlns")if(G==="xml"&&Y.attribValue!==d)F(Y,"xml: prefix must be bound to "+d+`
|
|
Actual: `+Y.attribValue);else if(G==="xmlns"&&Y.attribValue!==p)F(Y,"xmlns: prefix must be bound to "+p+`
|
|
Actual: `+Y.attribValue);else{var H=Y.tag,te=Y.tags[Y.tags.length-1]||Y;H.ns===te.ns&&(H.ns=Object.create(te.ns)),H.ns[G]=Y.attribValue}Y.attribList.push([Y.attribName,Y.attribValue])}else Y.tag.attributes[Y.attribName]=Y.attribValue,T(Y,"onattribute",{name:Y.attribName,value:Y.attribValue});Y.attribName=Y.attribValue=""}function V(Y,X){if(Y.opt.xmlns){var k=Y.tag,G=B(Y.tagName);k.prefix=G.prefix,k.local=G.local,k.uri=k.ns[G.prefix]||"",k.prefix&&!k.uri&&(F(Y,"Unbound namespace prefix: "+JSON.stringify(Y.tagName)),k.uri=G.prefix);var H=Y.tags[Y.tags.length-1]||Y;k.ns&&H.ns!==k.ns&&Object.keys(k.ns).forEach(function(K){T(Y,"onopennamespace",{prefix:K,uri:k.ns[K]})});for(var te=0,pe=Y.attribList.length;te<pe;te++){var D=Y.attribList[te],oe=D[0],W=D[1],w=B(oe,!0),S=w.prefix,P=w.local,J=S===""?"":k.ns[S]||"",ie={name:oe,value:W,prefix:S,local:P,uri:J};S&&S!=="xmlns"&&!J&&(F(Y,"Unbound namespace prefix: "+JSON.stringify(S)),ie.uri=S),Y.tag.attributes[oe]=ie,T(Y,"onattribute",ie)}Y.attribList.length=0}Y.tag.isSelfClosing=!!X,Y.sawRoot=!0,Y.tags.push(Y.tag),T(Y,"onopentag",Y.tag),X||(!Y.noscript&&Y.tagName.toLowerCase()==="script"?Y.state=O.SCRIPT:Y.state=O.TEXT,Y.tag=null,Y.tagName=""),Y.attribName=Y.attribValue="",Y.attribList.length=0}function L(Y){if(!Y.tagName){F(Y,"Weird empty close tag."),Y.textNode+="</>",Y.state=O.TEXT;return}if(Y.script){if(Y.tagName!=="script"){Y.script+="</"+Y.tagName+">",Y.tagName="",Y.state=O.SCRIPT;return}T(Y,"onscript",Y.script),Y.script=""}var X=Y.tags.length,k=Y.tagName;Y.strict||(k=k[Y.looseCase]());for(var G=k;X--;){var H=Y.tags[X];if(H.name!==G)F(Y,"Unexpected close tag");else break}if(X<0){F(Y,"Unmatched closing tag: "+Y.tagName),Y.textNode+="</"+Y.tagName+">",Y.state=O.TEXT;return}Y.tagName=k;for(var te=Y.tags.length;te-- >X;){var pe=Y.tag=Y.tags.pop();Y.tagName=Y.tag.name,T(Y,"onclosetag",Y.tagName);var D={};for(var oe in pe.ns)D[oe]=pe.ns[oe];var W=Y.tags[Y.tags.length-1]||Y;Y.opt.xmlns&&pe.ns!==W.ns&&Object.keys(pe.ns).forEach(function(w){var S=pe.ns[w];T(Y,"onclosenamespace",{prefix:w,uri:S})})}X===0&&(Y.closedRoot=!0),Y.tagName=Y.attribValue=Y.attribName="",Y.attribList.length=0,Y.state=O.TEXT}function z(Y){var X=Y.entity,k=X.toLowerCase(),G,H="";return Y.ENTITIES[X]?Y.ENTITIES[X]:Y.ENTITIES[k]?Y.ENTITIES[k]:(X=k,X.charAt(0)==="#"&&(X.charAt(1)==="x"?(X=X.slice(2),G=parseInt(X,16),H=G.toString(16)):(X=X.slice(1),G=parseInt(X,10),H=G.toString(10))),X=X.replace(/^0+/,""),isNaN(G)||H.toLowerCase()!==X?(F(Y,"Invalid character entity"),"&"+Y.entity+";"):String.fromCodePoint(G))}function q(Y,X){X==="<"?(Y.state=O.OPEN_WAKA,Y.startTagPosition=Y.position):x(X)||(F(Y,"Non-whitespace before first tag."),Y.textNode=X,Y.state=O.TEXT)}function se(Y,X){var k="";return X<Y.length&&(k=Y.charAt(X)),k}function ae(Y){var X=this;if(this.error)throw this.error;if(X.closed)return M(X,"Cannot write after close. Assign an onready handler.");if(Y===null)return C(X);typeof Y=="object"&&(Y=Y.toString());for(var k=0,G="";G=se(Y,k++),X.c=G,!!G;)switch(X.trackPosition&&(X.position++,G===`
|
|
`?(X.line++,X.column=0):X.column++),X.state){case O.BEGIN:if(X.state=O.BEGIN_WHITESPACE,G==="\uFEFF")continue;q(X,G);continue;case O.BEGIN_WHITESPACE:q(X,G);continue;case O.TEXT:if(X.sawRoot&&!X.closedRoot){for(var H=k-1;G&&G!=="<"&&G!=="&";)G=se(Y,k++),G&&X.trackPosition&&(X.position++,G===`
|
|
`?(X.line++,X.column=0):X.column++);X.textNode+=Y.substring(H,k-1)}G==="<"&&!(X.sawRoot&&X.closedRoot&&!X.strict)?(X.state=O.OPEN_WAKA,X.startTagPosition=X.position):(!x(G)&&(!X.sawRoot||X.closedRoot)&&F(X,"Text data outside of root node."),G==="&"?X.state=O.TEXT_ENTITY:X.textNode+=G);continue;case O.SCRIPT:G==="<"?X.state=O.SCRIPT_ENDING:X.script+=G;continue;case O.SCRIPT_ENDING:G==="/"?X.state=O.CLOSE_TAG:(X.script+="<"+G,X.state=O.SCRIPT);continue;case O.OPEN_WAKA:if(G==="!")X.state=O.SGML_DECL,X.sgmlDecl="";else if(!x(G))if(N(y,G))X.state=O.OPEN_TAG,X.tagName=G;else if(G==="/")X.state=O.CLOSE_TAG,X.tagName="";else if(G==="?")X.state=O.PROC_INST,X.procInstName=X.procInstBody="";else{if(F(X,"Unencoded <"),X.startTagPosition+1<X.position){var te=X.position-X.startTagPosition;G=new Array(te).join(" ")+G}X.textNode+="<"+G,X.state=O.TEXT}continue;case O.SGML_DECL:(X.sgmlDecl+G).toUpperCase()===h?(T(X,"onopencdata"),X.state=O.CDATA,X.sgmlDecl="",X.cdata=""):X.sgmlDecl+G==="--"?(X.state=O.COMMENT,X.comment="",X.sgmlDecl=""):(X.sgmlDecl+G).toUpperCase()===f?(X.state=O.DOCTYPE,(X.doctype||X.sawRoot)&&F(X,"Inappropriately located doctype declaration"),X.doctype="",X.sgmlDecl=""):G===">"?(T(X,"onsgmldeclaration",X.sgmlDecl),X.sgmlDecl="",X.state=O.TEXT):(_(G)&&(X.state=O.SGML_DECL_QUOTED),X.sgmlDecl+=G);continue;case O.SGML_DECL_QUOTED:G===X.q&&(X.state=O.SGML_DECL,X.q=""),X.sgmlDecl+=G;continue;case O.DOCTYPE:G===">"?(X.state=O.TEXT,T(X,"ondoctype",X.doctype),X.doctype=!0):(X.doctype+=G,G==="["?X.state=O.DOCTYPE_DTD:_(G)&&(X.state=O.DOCTYPE_QUOTED,X.q=G));continue;case O.DOCTYPE_QUOTED:X.doctype+=G,G===X.q&&(X.q="",X.state=O.DOCTYPE);continue;case O.DOCTYPE_DTD:X.doctype+=G,G==="]"?X.state=O.DOCTYPE:_(G)&&(X.state=O.DOCTYPE_DTD_QUOTED,X.q=G);continue;case O.DOCTYPE_DTD_QUOTED:X.doctype+=G,G===X.q&&(X.state=O.DOCTYPE_DTD,X.q="");continue;case O.COMMENT:G==="-"?X.state=O.COMMENT_ENDING:X.comment+=G;continue;case O.COMMENT_ENDING:G==="-"?(X.state=O.COMMENT_ENDED,X.comment=b(X.opt,X.comment),X.comment&&T(X,"oncomment",X.comment),X.comment=""):(X.comment+="-"+G,X.state=O.COMMENT);continue;case O.COMMENT_ENDED:G!==">"?(F(X,"Malformed comment"),X.comment+="--"+G,X.state=O.COMMENT):X.state=O.TEXT;continue;case O.CDATA:G==="]"?X.state=O.CDATA_ENDING:X.cdata+=G;continue;case O.CDATA_ENDING:G==="]"?X.state=O.CDATA_ENDING_2:(X.cdata+="]"+G,X.state=O.CDATA);continue;case O.CDATA_ENDING_2:G===">"?(X.cdata&&T(X,"oncdata",X.cdata),T(X,"onclosecdata"),X.cdata="",X.state=O.TEXT):G==="]"?X.cdata+="]":(X.cdata+="]]"+G,X.state=O.CDATA);continue;case O.PROC_INST:G==="?"?X.state=O.PROC_INST_ENDING:x(G)?X.state=O.PROC_INST_BODY:X.procInstName+=G;continue;case O.PROC_INST_BODY:if(!X.procInstBody&&x(G))continue;G==="?"?X.state=O.PROC_INST_ENDING:X.procInstBody+=G;continue;case O.PROC_INST_ENDING:G===">"?(T(X,"onprocessinginstruction",{name:X.procInstName,body:X.procInstBody}),X.procInstName=X.procInstBody="",X.state=O.TEXT):(X.procInstBody+="?"+G,X.state=O.PROC_INST_BODY);continue;case O.OPEN_TAG:N(R,G)?X.tagName+=G:(A(X),G===">"?V(X):G==="/"?X.state=O.OPEN_TAG_SLASH:(x(G)||F(X,"Invalid character in tag name"),X.state=O.ATTRIB));continue;case O.OPEN_TAG_SLASH:G===">"?(V(X,!0),L(X)):(F(X,"Forward-slash in opening tag not followed by >"),X.state=O.ATTRIB);continue;case O.ATTRIB:if(x(G))continue;G===">"?V(X):G==="/"?X.state=O.OPEN_TAG_SLASH:N(y,G)?(X.attribName=G,X.attribValue="",X.state=O.ATTRIB_NAME):F(X,"Invalid attribute name");continue;case O.ATTRIB_NAME:G==="="?X.state=O.ATTRIB_VALUE:G===">"?(F(X,"Attribute without value"),X.attribValue=X.attribName,$(X),V(X)):x(G)?X.state=O.ATTRIB_NAME_SAW_WHITE:N(R,G)?X.attribName+=G:F(X,"Invalid attribute name");continue;case O.ATTRIB_NAME_SAW_WHITE:if(G==="=")X.state=O.ATTRIB_VALUE;else{if(x(G))continue;F(X,"Attribute without value"),X.tag.attributes[X.attribName]="",X.attribValue="",T(X,"onattribute",{name:X.attribName,value:""}),X.attribName="",G===">"?V(X):N(y,G)?(X.attribName=G,X.state=O.ATTRIB_NAME):(F(X,"Invalid attribute name"),X.state=O.ATTRIB)}continue;case O.ATTRIB_VALUE:if(x(G))continue;_(G)?(X.q=G,X.state=O.ATTRIB_VALUE_QUOTED):(F(X,"Unquoted attribute value"),X.state=O.ATTRIB_VALUE_UNQUOTED,X.attribValue=G);continue;case O.ATTRIB_VALUE_QUOTED:if(G!==X.q){G==="&"?X.state=O.ATTRIB_VALUE_ENTITY_Q:X.attribValue+=G;continue}$(X),X.q="",X.state=O.ATTRIB_VALUE_CLOSED;continue;case O.ATTRIB_VALUE_CLOSED:x(G)?X.state=O.ATTRIB:G===">"?V(X):G==="/"?X.state=O.OPEN_TAG_SLASH:N(y,G)?(F(X,"No whitespace between attributes"),X.attribName=G,X.attribValue="",X.state=O.ATTRIB_NAME):F(X,"Invalid attribute name");continue;case O.ATTRIB_VALUE_UNQUOTED:if(!E(G)){G==="&"?X.state=O.ATTRIB_VALUE_ENTITY_U:X.attribValue+=G;continue}$(X),G===">"?V(X):X.state=O.ATTRIB;continue;case O.CLOSE_TAG:if(X.tagName)G===">"?L(X):N(R,G)?X.tagName+=G:X.script?(X.script+="</"+X.tagName,X.tagName="",X.state=O.SCRIPT):(x(G)||F(X,"Invalid tagname in closing tag"),X.state=O.CLOSE_TAG_SAW_WHITE);else{if(x(G))continue;U(y,G)?X.script?(X.script+="</"+G,X.state=O.SCRIPT):F(X,"Invalid tagname in closing tag."):X.tagName=G}continue;case O.CLOSE_TAG_SAW_WHITE:if(x(G))continue;G===">"?L(X):F(X,"Invalid characters in closing tag");continue;case O.TEXT_ENTITY:case O.ATTRIB_VALUE_ENTITY_Q:case O.ATTRIB_VALUE_ENTITY_U:var pe,D;switch(X.state){case O.TEXT_ENTITY:pe=O.TEXT,D="textNode";break;case O.ATTRIB_VALUE_ENTITY_Q:pe=O.ATTRIB_VALUE_QUOTED,D="attribValue";break;case O.ATTRIB_VALUE_ENTITY_U:pe=O.ATTRIB_VALUE_UNQUOTED,D="attribValue";break}G===";"?(X[D]+=z(X),X.entity="",X.state=pe):N(X.entity.length?v:m,G)?X.entity+=G:(F(X,"Invalid character in entity name"),X[D]+="&"+X.entity+G,X.entity="",X.state=pe);continue;default:throw new Error(X,"Unknown state: "+X.state)}return X.position>=X.bufferCheckPosition&&i(X),X}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var Y=String.fromCharCode,X=Math.floor,k=function(){var G=16384,H=[],te,pe,D=-1,oe=arguments.length;if(!oe)return"";for(var W="";++D<oe;){var w=Number(arguments[D]);if(!isFinite(w)||w<0||w>1114111||X(w)!==w)throw RangeError("Invalid code point: "+w);w<=65535?H.push(w):(w-=65536,te=(w>>10)+55296,pe=w%1024+56320,H.push(te,pe)),(D+1===oe||H.length>G)&&(W+=Y.apply(null,H),H.length=0)}return W};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:k,configurable:!0,writable:!0}):String.fromCodePoint=k}()})(t)})(PR);var Rf={isArray:function(t){return Array.isArray?Array.isArray(t):Object.prototype.toString.call(t)==="[object Array]"}},L_=Rf.isArray,yf={copyOptions:function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n},ensureFlagExists:function(t,e){(!(t in e)||typeof e[t]!="boolean")&&(e[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!L_(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,e){(!(t+"Key"in e)||typeof e[t+"Key"]!="string")&&(e[t+"Key"]=e.compact?"_"+t:t)},checkFnExists:function(t,e){return t+"Fn"in e}},M_=PR,wt=yf,ca=Rf.isArray,Te,je;function C_(t){return Te=wt.copyOptions(t),wt.ensureFlagExists("ignoreDeclaration",Te),wt.ensureFlagExists("ignoreInstruction",Te),wt.ensureFlagExists("ignoreAttributes",Te),wt.ensureFlagExists("ignoreText",Te),wt.ensureFlagExists("ignoreComment",Te),wt.ensureFlagExists("ignoreCdata",Te),wt.ensureFlagExists("ignoreDoctype",Te),wt.ensureFlagExists("compact",Te),wt.ensureFlagExists("alwaysChildren",Te),wt.ensureFlagExists("addParent",Te),wt.ensureFlagExists("trim",Te),wt.ensureFlagExists("nativeType",Te),wt.ensureFlagExists("nativeTypeAttributes",Te),wt.ensureFlagExists("sanitize",Te),wt.ensureFlagExists("instructionHasAttributes",Te),wt.ensureFlagExists("captureSpacesBetweenElements",Te),wt.ensureAlwaysArrayExists(Te),wt.ensureKeyExists("declaration",Te),wt.ensureKeyExists("instruction",Te),wt.ensureKeyExists("attributes",Te),wt.ensureKeyExists("text",Te),wt.ensureKeyExists("comment",Te),wt.ensureKeyExists("cdata",Te),wt.ensureKeyExists("doctype",Te),wt.ensureKeyExists("type",Te),wt.ensureKeyExists("name",Te),wt.ensureKeyExists("elements",Te),wt.ensureKeyExists("parent",Te),Te}function r2(t){var e=Number(t);if(!isNaN(e))return e;var n=t.toLowerCase();return n==="true"?!0:n==="false"?!1:t}function Ws(t,e){var n;if(Te.compact){if(!je[Te[t+"Key"]]&&(ca(Te.alwaysArray)?Te.alwaysArray.indexOf(Te[t+"Key"])!==-1:Te.alwaysArray)&&(je[Te[t+"Key"]]=[]),je[Te[t+"Key"]]&&!ca(je[Te[t+"Key"]])&&(je[Te[t+"Key"]]=[je[Te[t+"Key"]]]),t+"Fn"in Te&&typeof e=="string"&&(e=Te[t+"Fn"](e,je)),t==="instruction"&&("instructionFn"in Te||"instructionNameFn"in Te)){for(n in e)if(e.hasOwnProperty(n))if("instructionFn"in Te)e[n]=Te.instructionFn(e[n],n,je);else{var r=e[n];delete e[n],e[Te.instructionNameFn(n,r,je)]=r}}ca(je[Te[t+"Key"]])?je[Te[t+"Key"]].push(e):je[Te[t+"Key"]]=e}else{je[Te.elementsKey]||(je[Te.elementsKey]=[]);var i={};if(i[Te.typeKey]=t,t==="instruction"){for(n in e)if(e.hasOwnProperty(n))break;i[Te.nameKey]="instructionNameFn"in Te?Te.instructionNameFn(n,e,je):n,Te.instructionHasAttributes?(i[Te.attributesKey]=e[n][Te.attributesKey],"instructionFn"in Te&&(i[Te.attributesKey]=Te.instructionFn(i[Te.attributesKey],n,je))):("instructionFn"in Te&&(e[n]=Te.instructionFn(e[n],n,je)),i[Te.instructionKey]=e[n])}else t+"Fn"in Te&&(e=Te[t+"Fn"](e,je)),i[Te[t+"Key"]]=e;Te.addParent&&(i[Te.parentKey]=je),je[Te.elementsKey].push(i)}}function i2(t){if("attributesFn"in Te&&t&&(t=Te.attributesFn(t,je)),(Te.trim||"attributeValueFn"in Te||"attributeNameFn"in Te||Te.nativeTypeAttributes)&&t){var e;for(e in t)if(t.hasOwnProperty(e)&&(Te.trim&&(t[e]=t[e].trim()),Te.nativeTypeAttributes&&(t[e]=r2(t[e])),"attributeValueFn"in Te&&(t[e]=Te.attributeValueFn(t[e],e,je)),"attributeNameFn"in Te)){var n=t[e];delete t[e],t[Te.attributeNameFn(e,t[e],je)]=n}}return t}function A_(t){var e={};if(t.body&&(t.name.toLowerCase()==="xml"||Te.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,r;(r=n.exec(t.body))!==null;)e[r[1]]=r[2]||r[3]||r[4];e=i2(e)}if(t.name.toLowerCase()==="xml"){if(Te.ignoreDeclaration)return;je[Te.declarationKey]={},Object.keys(e).length&&(je[Te.declarationKey][Te.attributesKey]=e),Te.addParent&&(je[Te.declarationKey][Te.parentKey]=je)}else{if(Te.ignoreInstruction)return;Te.trim&&(t.body=t.body.trim());var i={};Te.instructionHasAttributes&&Object.keys(e).length?(i[t.name]={},i[t.name][Te.attributesKey]=e):i[t.name]=t.body,Ws("instruction",i)}}function U_(t,e){var n;if(typeof t=="object"&&(e=t.attributes,t=t.name),e=i2(e),"elementNameFn"in Te&&(t=Te.elementNameFn(t,je)),Te.compact){if(n={},!Te.ignoreAttributes&&e&&Object.keys(e).length){n[Te.attributesKey]={};var r;for(r in e)e.hasOwnProperty(r)&&(n[Te.attributesKey][r]=e[r])}!(t in je)&&(ca(Te.alwaysArray)?Te.alwaysArray.indexOf(t)!==-1:Te.alwaysArray)&&(je[t]=[]),je[t]&&!ca(je[t])&&(je[t]=[je[t]]),ca(je[t])?je[t].push(n):je[t]=n}else je[Te.elementsKey]||(je[Te.elementsKey]=[]),n={},n[Te.typeKey]="element",n[Te.nameKey]=t,!Te.ignoreAttributes&&e&&Object.keys(e).length&&(n[Te.attributesKey]=e),Te.alwaysChildren&&(n[Te.elementsKey]=[]),je[Te.elementsKey].push(n);n[Te.parentKey]=je,je=n}function W_(t){Te.ignoreText||!t.trim()&&!Te.captureSpacesBetweenElements||(Te.trim&&(t=t.trim()),Te.nativeType&&(t=r2(t)),Te.sanitize&&(t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),Ws("text",t))}function X_(t){Te.ignoreComment||(Te.trim&&(t=t.trim()),Ws("comment",t))}function V_(t){var e=je[Te.parentKey];Te.addParent||delete je[Te.parentKey],je=e}function Y_(t){Te.ignoreCdata||(Te.trim&&(t=t.trim()),Ws("cdata",t))}function B_(t){Te.ignoreDoctype||(t=t.replace(/^ /,""),Te.trim&&(t=t.trim()),Ws("doctype",t))}function k_(t){t.note=t}var o2=function(t,e){var n=M_.parser(!0,{}),r={};if(je=r,Te=C_(e),n.opt={strictEntities:!0},n.onopentag=U_,n.ontext=W_,n.oncomment=X_,n.onclosetag=V_,n.onerror=k_,n.oncdata=Y_,n.ondoctype=B_,n.onprocessinginstruction=A_,n.write(t).close(),r[Te.elementsKey]){var i=r[Te.elementsKey];delete r[Te.elementsKey],r[Te.elementsKey]=i,delete r.text}return r},Wg=yf,Z_=o2;function Q_(t){var e=Wg.copyOptions(t);return Wg.ensureSpacesExists(e),e}var K_=function(t,e){var n,r,i,o;return n=Q_(e),r=Z_(t,n),o="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?i=JSON.stringify(r,function(a,s){return a===o?"_":s},n.spaces):i=JSON.stringify(r,null,n.spaces),i.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Ft=yf,H_=Rf.isArray,Nn,Fn;function G_(t){var e=Ft.copyOptions(t);return Ft.ensureFlagExists("ignoreDeclaration",e),Ft.ensureFlagExists("ignoreInstruction",e),Ft.ensureFlagExists("ignoreAttributes",e),Ft.ensureFlagExists("ignoreText",e),Ft.ensureFlagExists("ignoreComment",e),Ft.ensureFlagExists("ignoreCdata",e),Ft.ensureFlagExists("ignoreDoctype",e),Ft.ensureFlagExists("compact",e),Ft.ensureFlagExists("indentText",e),Ft.ensureFlagExists("indentCdata",e),Ft.ensureFlagExists("indentAttributes",e),Ft.ensureFlagExists("indentInstruction",e),Ft.ensureFlagExists("fullTagEmptyElement",e),Ft.ensureFlagExists("noQuotesForNativeAttributes",e),Ft.ensureSpacesExists(e),typeof e.spaces=="number"&&(e.spaces=Array(e.spaces+1).join(" ")),Ft.ensureKeyExists("declaration",e),Ft.ensureKeyExists("instruction",e),Ft.ensureKeyExists("attributes",e),Ft.ensureKeyExists("text",e),Ft.ensureKeyExists("comment",e),Ft.ensureKeyExists("cdata",e),Ft.ensureKeyExists("doctype",e),Ft.ensureKeyExists("type",e),Ft.ensureKeyExists("name",e),Ft.ensureKeyExists("elements",e),e}function Zr(t,e,n){return(!n&&t.spaces?`
|
|
`:"")+Array(e+1).join(t.spaces)}function Wu(t,e,n){if(e.ignoreAttributes)return"";"attributesFn"in e&&(t=e.attributesFn(t,Fn,Nn));var r,i,o,a,s=[];for(r in t)t.hasOwnProperty(r)&&t[r]!==null&&t[r]!==void 0&&(a=e.noQuotesForNativeAttributes&&typeof t[r]!="string"?"":'"',i=""+t[r],i=i.replace(/"/g,"""),o="attributeNameFn"in e?e.attributeNameFn(r,i,Fn,Nn):r,s.push(e.spaces&&e.indentAttributes?Zr(e,n+1,!1):" "),s.push(o+"="+a+("attributeValueFn"in e?e.attributeValueFn(i,r,Fn,Nn):i)+a));return t&&Object.keys(t).length&&e.spaces&&e.indentAttributes&&s.push(Zr(e,n,!1)),s.join("")}function a2(t,e,n){return Nn=t,Fn="xml",e.ignoreDeclaration?"":"<?xml"+Wu(t[e.attributesKey],e,n)+"?>"}function s2(t,e,n){if(e.ignoreInstruction)return"";var r;for(r in t)if(t.hasOwnProperty(r))break;var i="instructionNameFn"in e?e.instructionNameFn(r,t[r],Fn,Nn):r;if(typeof t[r]=="object")return Nn=t,Fn=i,"<?"+i+Wu(t[r][e.attributesKey],e,n)+"?>";var o=t[r]?t[r]:"";return"instructionFn"in e&&(o=e.instructionFn(o,r,Fn,Nn)),"<?"+i+(o?" "+o:"")+"?>"}function c2(t,e){return e.ignoreComment?"":"<!--"+("commentFn"in e?e.commentFn(t,Fn,Nn):t)+"-->"}function u2(t,e){return e.ignoreCdata?"":"<![CDATA["+("cdataFn"in e?e.cdataFn(t,Fn,Nn):t.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function l2(t,e){return e.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in e?e.doctypeFn(t,Fn,Nn):t)+">"}function vf(t,e){return e.ignoreText?"":(t=""+t,t=t.replace(/&/g,"&"),t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in e?e.textFn(t,Fn,Nn):t)}function J_(t,e){var n;if(t.elements&&t.elements.length)for(n=0;n<t.elements.length;++n)switch(t.elements[n][e.typeKey]){case"text":if(e.indentText)return!0;break;case"cdata":if(e.indentCdata)return!0;break;case"instruction":if(e.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function z_(t,e,n){Nn=t,Fn=t.name;var r=[],i="elementNameFn"in e?e.elementNameFn(t.name,t):t.name;r.push("<"+i),t[e.attributesKey]&&r.push(Wu(t[e.attributesKey],e,n));var o=t[e.elementsKey]&&t[e.elementsKey].length||t[e.attributesKey]&&t[e.attributesKey]["xml:space"]==="preserve";return o||("fullTagEmptyElementFn"in e?o=e.fullTagEmptyElementFn(t.name,t):o=e.fullTagEmptyElement),o?(r.push(">"),t[e.elementsKey]&&t[e.elementsKey].length&&(r.push(h2(t[e.elementsKey],e,n+1)),Nn=t,Fn=t.name),r.push(e.spaces&&J_(t,e)?`
|
|
`+Array(n+1).join(e.spaces):""),r.push("</"+i+">")):r.push("/>"),r.join("")}function h2(t,e,n,r){return t.reduce(function(i,o){var a=Zr(e,n,r&&!i);switch(o.type){case"element":return i+a+z_(o,e,n);case"comment":return i+a+c2(o[e.commentKey],e);case"doctype":return i+a+l2(o[e.doctypeKey],e);case"cdata":return i+(e.indentCdata?a:"")+u2(o[e.cdataKey],e);case"text":return i+(e.indentText?a:"")+vf(o[e.textKey],e);case"instruction":var s={};return s[o[e.nameKey]]=o[e.attributesKey]?o:o[e.instructionKey],i+(e.indentInstruction?a:"")+s2(s,e,n)}},"")}function d2(t,e,n){var r;for(r in t)if(t.hasOwnProperty(r))switch(r){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||n)return!0;break;case e.cdataKey:if(e.indentCdata||n)return!0;break;case e.instructionKey:if(e.indentInstruction||n)return!0;break;case e.doctypeKey:case e.commentKey:return!0;default:return!0}return!1}function $_(t,e,n,r,i){Nn=t,Fn=e;var o="elementNameFn"in n?n.elementNameFn(e,t):e;if(typeof t=="undefined"||t===null||t==="")return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(e,t)||n.fullTagEmptyElement?"<"+o+"></"+o+">":"<"+o+"/>";var a=[];if(e){if(a.push("<"+o),typeof t!="object")return a.push(">"+vf(t,n)+"</"+o+">"),a.join("");t[n.attributesKey]&&a.push(Wu(t[n.attributesKey],n,r));var s=d2(t,n,!0)||t[n.attributesKey]&&t[n.attributesKey]["xml:space"]==="preserve";if(s||("fullTagEmptyElementFn"in n?s=n.fullTagEmptyElementFn(e,t):s=n.fullTagEmptyElement),s)a.push(">");else return a.push("/>"),a.join("")}return a.push(f2(t,n,r+1,!1)),Nn=t,Fn=e,e&&a.push((i?Zr(n,r,!1):"")+"</"+o+">"),a.join("")}function f2(t,e,n,r){var i,o,a,s=[];for(o in t)if(t.hasOwnProperty(o))for(a=H_(t[o])?t[o]:[t[o]],i=0;i<a.length;++i){switch(o){case e.declarationKey:s.push(a2(a[i],e,n));break;case e.instructionKey:s.push((e.indentInstruction?Zr(e,n,r):"")+s2(a[i],e,n));break;case e.attributesKey:case e.parentKey:break;case e.textKey:s.push((e.indentText?Zr(e,n,r):"")+vf(a[i],e));break;case e.cdataKey:s.push((e.indentCdata?Zr(e,n,r):"")+u2(a[i],e));break;case e.doctypeKey:s.push(Zr(e,n,r)+l2(a[i],e));break;case e.commentKey:s.push(Zr(e,n,r)+c2(a[i],e));break;default:s.push(Zr(e,n,r)+$_(a[i],o,e,n,d2(a[i],e)))}r=r&&!s.length}return s.join("")}var p2=function(t,e){e=G_(e);var n=[];return Nn=t,Fn="_root_",e.compact?n.push(f2(t,e,0,!0)):(t[e.declarationKey]&&n.push(a2(t[e.declarationKey],e,0)),t[e.elementsKey]&&t[e.elementsKey].length&&n.push(h2(t[e.elementsKey],e,0,!n.length))),n.join("")},j_=p2,q_=function(t,e){t instanceof Buffer&&(t=t.toString());var n=null;if(typeof t=="string")try{n=JSON.parse(t)}catch{throw new Error("The JSON structure is invalid")}else n=t;return j_(n,e)},eO=o2,tO=K_,nO=p2,rO=q_,g2={xml2js:eO,xml2json:tO,js2xml:nO,json2xml:rO};const bf=t=>{switch(t.type){case void 0:case"element":const e=new oO(t.name,t.attributes),n=t.elements||[];for(const r of n){const i=bf(r);i!==void 0&&e.push(i)}return e;case"text":return t.text;default:return}};class iO extends Ue{}class oO extends be{static fromXmlString(e){const n=g2.xml2js(e,{compact:!1});return bf(n)}constructor(e,n){super(e),n&&this.root.push(new iO(n))}push(e){this.root.push(e)}}class aO extends be{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}}class m2 extends be{constructor(e,n){super(e),n&&(this.root=n.root)}}const Pn=t=>{if(isNaN(t))throw new Error(`Invalid value '${t}' specified. Must be an integer.`);return Math.floor(t)},Xu=t=>{const e=Pn(t);if(e<0)throw new Error(`Invalid value '${t}' specified. Must be a positive integer.`);return e},R2=(t,e)=>{const n=e*2;if(t.length!==n||isNaN(Number(`0x${t}`)))throw new Error(`Invalid hex value '${t}'. Expected ${n} digit hex value`);return t},Xg=t=>R2(t,1),xf=t=>{const e=t.slice(-2),n=t.substring(0,t.length-2);return`${Number(n)}${e}`},y2=t=>{const e=xf(t);if(parseFloat(e)<0)throw new Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},ga=t=>{if(t==="auto")return t;const e=t.charAt(0)==="#"?t.substring(1):t;return R2(e,3)},di=t=>typeof t=="string"?xf(t):Pn(t),sO=t=>typeof t=="string"?y2(t):Xu(t),Tn=t=>typeof t=="string"?y2(t):Xu(t),cO=t=>{const e=t.substring(0,t.length-1);return`${Number(e)}%`},uO=t=>typeof t=="number"?Pn(t):t.slice(-1)==="%"?cO(t):xf(t),lO=Xu,hO=Xu,dO=t=>t.toISOString();class Ne extends be{constructor(e,n=!0){super(e),n!==!0&&this.root.push(new Qt({val:n}))}}class Ih extends be{constructor(e,n){super(e),this.root.push(new Qt({val:sO(n)}))}}class fO extends be{}class po extends be{constructor(e,n){super(e),this.root.push(new Qt({val:n}))}}const za=(t,e)=>new Ln({name:t,attributes:{value:{key:"w:val",value:e}}});class wf extends be{constructor(e,n){super(e),this.root.push(new Qt({val:n}))}}class pO extends be{constructor(e,n){super(e),this.root.push(new Qt({val:n}))}}class eo extends be{constructor(e,n){super(e),this.root.push(n)}}class Ln extends be{constructor({name:e,attributes:n,children:r}){super(e),n&&this.root.push(new bi(n)),r&&this.root.push(...r)}}const Vr={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 gO extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{val:"w:val"})}}class v2 extends be{constructor(e){super("w:jc"),this.root.push(new gO({val:e}))}}class Ot extends be{constructor(e,{color:n,size:r,space:i,style:o}){super(e),this.root.push(new mO({style:o,color:n===void 0?void 0:ga(n),size:r===void 0?void 0:lO(r),space:i===void 0?void 0:hO(i)}))}}class mO extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const Tf={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 RO extends vi{constructor(e){super("w:pBdr"),e.top&&this.root.push(new Ot("w:top",e.top)),e.bottom&&this.root.push(new Ot("w:bottom",e.bottom)),e.left&&this.root.push(new Ot("w:left",e.left)),e.right&&this.root.push(new Ot("w:right",e.right))}}class yO extends be{constructor(){super("w:pBdr");const e=new Ot("w:bottom",{color:"auto",space:1,style:Tf.SINGLE,size:6});this.root.push(e)}}class vO extends be{constructor({start:e,end:n,left:r,right:i,hanging:o,firstLine:a}){super("w:ind"),this.root.push(new bi({start:{key:"w:start",value:e===void 0?void 0:di(e)},end:{key:"w:end",value:n===void 0?void 0:di(n)},left:{key:"w:left",value:r===void 0?void 0:di(r)},right:{key:"w:right",value:i===void 0?void 0:di(i)},hanging:{key:"w:hanging",value:o===void 0?void 0:Tn(o)},firstLine:{key:"w:firstLine",value:a===void 0?void 0:Tn(a)}}))}}let bO=class extends be{constructor(){super("w:br")}};const Sf={BEGIN:"begin",END:"end",SEPARATE:"separate"};class Df extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class Ec extends be{constructor(e){super("w:fldChar"),this.root.push(new Df({type:Sf.BEGIN,dirty:e}))}}class Ic extends be{constructor(e){super("w:fldChar"),this.root.push(new Df({type:Sf.SEPARATE,dirty:e}))}}class Nc extends be{constructor(e){super("w:fldChar"),this.root.push(new Df({type:Sf.END,dirty:e}))}}const ma={DEFAULT:"default",PRESERVE:"preserve"};class Ra extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{space:"xml:space"})}}class xO extends be{constructor(){super("w:instrText"),this.root.push(new Ra({space:ma.PRESERVE})),this.root.push("PAGE")}}class wO extends be{constructor(){super("w:instrText"),this.root.push(new Ra({space:ma.PRESERVE})),this.root.push("NUMPAGES")}}class TO extends be{constructor(){super("w:instrText"),this.root.push(new Ra({space:ma.PRESERVE})),this.root.push("SECTIONPAGES")}}class SO extends be{constructor(){super("w:instrText"),this.root.push(new Ra({space:ma.PRESERVE})),this.root.push("SECTION")}}class DO extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class Vu extends be{constructor({fill:e,color:n,type:r}){super("w:shd"),this.root.push(new DO({fill:e===void 0?void 0:ga(e),color:n===void 0?void 0:ga(n),type:r}))}}class _O extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const OO={DOT:"dot"};class EO extends be{constructor(e){super("w:em"),this.root.push(new Qt({val:e}))}}class IO extends EO{constructor(e=OO.DOT){super(e)}}class NO extends be{constructor(e){super("w:spacing"),this.root.push(new Qt({val:di(e)}))}}class FO extends be{constructor(e){super("w:color"),this.root.push(new Qt({val:ga(e)}))}}class PO extends be{constructor(e){super("w:highlight"),this.root.push(new Qt({val:e}))}}class LO extends be{constructor(e){super("w:highlightCs"),this.root.push(new Qt({val:e}))}}const MO=t=>new Ln({name:"w:lang",attributes:{value:{key:"w:val",value:t.value},eastAsia:{key:"w:eastAsia",value:t.eastAsia},bidirectional:{key:"w:bidi",value:t.bidirectional}}});class Vg extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class Nh extends be{constructor(e,n){if(super("w:rFonts"),typeof e=="string"){const r=e;this.root.push(new Vg({ascii:r,cs:r,eastAsia:r,hAnsi:r,hint:n}))}else{const r=e;this.root.push(new Vg(r))}}}let b2=class extends be{constructor(e){super("w:vertAlign"),this.root.push(new Qt({val:e}))}};class CO extends b2{constructor(){super("superscript")}}class AO extends b2{constructor(){super("subscript")}}const x2={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 UO extends be{constructor(e=x2.SINGLE,n){super("w:u"),this.root.push(new Qt({val:e,color:n===void 0?void 0:ga(n)}))}}class wo extends vi{constructor(e){var n,r;if(super("w:rPr"),!e)return;e.noProof!==void 0&&this.push(new Ne("w:noProof",e.noProof)),e.bold!==void 0&&this.push(new Ne("w:b",e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new Ne("w:bCs",(n=e.boldComplexScript)!=null?n:e.bold)),e.italics!==void 0&&this.push(new Ne("w:i",e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new Ne("w:iCs",(r=e.italicsComplexScript)!=null?r:e.italics)),e.underline&&this.push(new UO(e.underline.type,e.underline.color)),e.effect&&this.push(new po("w:effect",e.effect)),e.emphasisMark&&this.push(new IO(e.emphasisMark.type)),e.color&&this.push(new FO(e.color)),e.kern&&this.push(new Ih("w:kern",e.kern)),e.position&&this.push(new po("w:position",e.position)),e.size!==void 0&&this.push(new Ih("w:sz",e.size));const i=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;i&&this.push(new Ih("w:szCs",i)),e.rightToLeft!==void 0&&this.push(new Ne("w:rtl",e.rightToLeft)),e.smallCaps!==void 0?this.push(new Ne("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new Ne("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new Ne("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new Ne("w:dstrike",e.doubleStrike)),e.subScript&&this.push(new AO),e.superScript&&this.push(new CO),e.style&&this.push(new po("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(new Nh(e.font)):"name"in e.font?this.push(new Nh(e.font.name,e.font.hint)):this.push(new Nh(e.font))),e.highlight&&this.push(new PO(e.highlight));const o=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;o&&this.push(new LO(o)),e.characterSpacing&&this.push(new NO(e.characterSpacing)),e.emboss!==void 0&&this.push(new Ne("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new Ne("w:imprint",e.imprint)),e.shading&&this.push(new Vu(e.shading)),e.revision&&this.push(new WO(e.revision)),e.border&&this.push(new Ot("w:bdr",e.border)),e.snapToGrid!==void 0&&this.push(new Ne("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new Ne("w:vanish",e.vanish)),e.specVanish&&this.push(new Ne("w:specVanish",e.vanish)),e.scale!==void 0&&this.push(new wf("w:w",e.scale)),e.language&&this.push(MO(e.language)),e.math&&this.push(new Ne("w:oMath",e.math))}push(e){this.root.push(e)}}class WO extends be{constructor(e){super("w:rPrChange"),this.root.push(new _O({id:e.id,author:e.author,date:e.date})),this.addChildElement(new wo(e))}}class Dd extends be{constructor(e){var n;return super("w:t"),typeof e=="string"?(this.root.push(new Ra({space:ma.PRESERVE})),this.root.push(e),this):(this.root.push(new Ra({space:(n=e.space)!=null?n:ma.DEFAULT})),this.root.push(e.text),this)}}const Fc={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class Xs extends be{constructor(e){if(super("w:r"),xe(this,"properties"),this.properties=new wo(e),this.root.push(this.properties),e.break)for(let n=0;n<e.break;n++)this.root.push(new bO);if(e.children)for(const n of e.children){if(typeof n=="string"){switch(n){case Fc.CURRENT:this.root.push(new Ec),this.root.push(new xO),this.root.push(new Ic),this.root.push(new Nc);break;case Fc.TOTAL_PAGES:this.root.push(new Ec),this.root.push(new wO),this.root.push(new Ic),this.root.push(new Nc);break;case Fc.TOTAL_PAGES_IN_SECTION:this.root.push(new Ec),this.root.push(new TO),this.root.push(new Ic),this.root.push(new Nc);break;case Fc.CURRENT_SECTION:this.root.push(new Ec),this.root.push(new SO),this.root.push(new Ic),this.root.push(new Nc);break;default:this.root.push(new Dd(n));break}continue}this.root.push(n)}else e.text&&this.root.push(new Dd(e.text))}}class ua extends Xs{constructor(e){if(typeof e=="string")return super({}),this.root.push(new Dd(e)),this;super(e)}}let XO="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",VO=(t,e=21)=>(n=e)=>{let r="",i=n;for(;i--;)r+=t[Math.random()*t.length|0];return r},YO=(t=21)=>{let e="",n=t;for(;n--;)e+=XO[Math.random()*64|0];return e};const Ir=t=>Math.floor(t*72*20),Yu=(t=0)=>{let e=t;return()=>++e},BO=()=>Yu(),kO=()=>Yu(1),ZO=()=>Yu(),QO=()=>Yu(),w2=()=>YO().toLowerCase(),$a=t=>VO("1234567890abcdef",t)(),KO=()=>`${$a(8)}-${$a(4)}-${$a(4)}-${$a(4)}-${$a(12)}`,HO={CHARACTER:"character",COLUMN:"column",INSIDE_MARGIN:"insideMargin",LEFT_MARGIN:"leftMargin",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",RIGHT_MARGIN:"rightMargin"},GO={BOTTOM_MARGIN:"bottomMargin",INSIDE_MARGIN:"insideMargin",LINE:"line",MARGIN:"margin",OUTSIDE_MARGIN:"outsideMargin",PAGE:"page",PARAGRAPH:"paragraph",TOP_MARGIN:"topMargin"};class JO extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{x:"x",y:"y"})}}class zO extends be{constructor(){super("wp:simplePos"),this.root.push(new JO({x:0,y:0}))}}class T2 extends be{constructor(e){super("wp:align"),this.root.push(e)}}class S2 extends be{constructor(e){super("wp:posOffset"),this.root.push(e.toString())}}class $O extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{relativeFrom:"relativeFrom"})}}class jO extends be{constructor(e){if(super("wp:positionH"),this.root.push(new $O({relativeFrom:e.relative||HO.PAGE})),e.align)this.root.push(new T2(e.align));else if(e.offset!==void 0)this.root.push(new S2(e.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}}class qO extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{relativeFrom:"relativeFrom"})}}class eE extends be{constructor(e){if(super("wp:positionV"),this.root.push(new qO({relativeFrom:e.relative||GO.PAGE})),e.align)this.root.push(new T2(e.align));else if(e.offset!==void 0)this.root.push(new S2(e.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}}class tE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{uri:"uri"})}}class nE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{embed:"r:embed",cstate:"cstate"})}}class rE extends be{constructor(e){super("a:blip"),this.root.push(new nE({embed:`rId{${e.fileName}}`,cstate:"none"}))}}class iE extends be{constructor(){super("a:srcRect")}}class oE extends be{constructor(){super("a:fillRect")}}class aE extends be{constructor(){super("a:stretch"),this.root.push(new oE)}}class sE extends be{constructor(e){super("pic:blipFill"),this.root.push(new rE(e)),this.root.push(new iE),this.root.push(new aE)}}class cE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}}class uE extends be{constructor(){super("a:picLocks"),this.root.push(new cE({noChangeAspect:1,noChangeArrowheads:1}))}}class lE extends be{constructor(){super("pic:cNvPicPr"),this.root.push(new uE)}}const D2=(t,e)=>new Ln({name:"a:hlinkClick",attributes:fa(dt({},e?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{id:{key:"r:id",value:`rId${t}`}})});class hE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}}class dE extends be{constructor(){super("pic:cNvPr"),this.root.push(new hE({id:0,name:"",descr:""}))}prepForXml(e){for(let n=e.stack.length-1;n>=0;n--){const r=e.stack[n];if(r instanceof _f){this.root.push(D2(r.linkId,!1));break}}return super.prepForXml(e)}}class fE extends be{constructor(){super("pic:nvPicPr"),this.root.push(new dE),this.root.push(new lE)}}class pE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{xmlns:"xmlns:pic"})}}class gE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class mE extends be{constructor(e,n){super("a:ext"),xe(this,"attributes"),this.attributes=new gE({cx:e,cy:n}),this.root.push(this.attributes)}}class RE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{x:"x",y:"y"})}}class yE extends be{constructor(){super("a:off"),this.root.push(new RE({x:0,y:0}))}}class vE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}}class bE extends be{constructor(e){var n,r;super("a:xfrm"),xe(this,"extents"),this.root.push(new vE({flipVertical:(n=e.flip)==null?void 0:n.vertical,flipHorizontal:(r=e.flip)==null?void 0:r.horizontal,rotation:e.rotation})),this.extents=new mE(e.emus.x,e.emus.y),this.root.push(new yE),this.root.push(this.extents)}}const _2=()=>new Ln({name:"a:noFill"}),xE=t=>new Ln({name:"a:schemeClr",attributes:{value:{key:"val",value:t.value}}}),wE=t=>new Ln({name:"a:srgbClr",attributes:{value:{key:"val",value:t.value}}}),Yg=t=>new Ln({name:"a:solidFill",children:[t.type==="rgb"?wE(t):xE(t)]}),TE=t=>new Ln({name:"a:ln",attributes:{width:{key:"w",value:t.width},cap:{key:"cap",value:t.cap},compoundLine:{key:"cmpd",value:t.compoundLine},align:{key:"algn",value:t.align}},children:[t.type==="noFill"?_2():t.solidFillType==="rgb"?Yg({type:"rgb",value:t.value}):Yg({type:"scheme",value:t.value})]});class SE extends be{constructor(){super("a:avLst")}}class DE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{prst:"prst"})}}class _E extends be{constructor(){super("a:prstGeom"),this.root.push(new DE({prst:"rect"})),this.root.push(new SE)}}class OE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{bwMode:"bwMode"})}}class EE extends be{constructor({outline:e,transform:n}){super("pic:spPr"),xe(this,"form"),this.root.push(new OE({bwMode:"auto"})),this.form=new bE(n),this.root.push(this.form),this.root.push(new _E),e&&(this.root.push(_2()),this.root.push(TE(e)))}}class IE extends be{constructor({mediaData:e,transform:n,outline:r}){super("pic:pic"),this.root.push(new pE({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new fE),this.root.push(new sE(e)),this.root.push(new EE({transform:n,outline:r}))}}class NE extends be{constructor({mediaData:e,transform:n,outline:r}){super("a:graphicData"),xe(this,"pic"),this.root.push(new tE({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new IE({mediaData:e,transform:n,outline:r}),this.root.push(this.pic)}}class FE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{a:"xmlns:a"})}}class O2 extends be{constructor({mediaData:e,transform:n,outline:r}){super("a:graphic"),xe(this,"data"),this.root.push(new FE({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new NE({mediaData:e,transform:n,outline:r}),this.root.push(this.data)}}const Pc={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3},PE={BOTH_SIDES:"bothSides",LEFT:"left",RIGHT:"right",LARGEST:"largest"};class Bg extends be{constructor(){super("wp:wrapNone")}}class LE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"})}}class ME extends be{constructor(e,n={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare"),this.root.push(new LE({wrapText:e.side||PE.BOTH_SIDES,distT:n.top,distB:n.bottom,distL:n.left,distR:n.right}))}}class CE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class AE extends be{constructor(e={top:0,bottom:0}){super("wp:wrapTight"),this.root.push(new CE({distT:e.top,distB:e.bottom}))}}class UE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class WE extends be{constructor(e={top:0,bottom:0}){super("wp:wrapTopAndBottom"),this.root.push(new UE({distT:e.top,distB:e.bottom}))}}class E2 extends be{constructor({name:e,description:n,title:r}={name:"",description:"",title:""}){super("wp:docPr"),xe(this,"docPropertiesUniqueNumericId",ZO()),this.root.push(new bi({id:{key:"id",value:this.docPropertiesUniqueNumericId()},name:{key:"name",value:e},description:{key:"descr",value:n},title:{key:"title",value:r}}))}prepForXml(e){for(let n=e.stack.length-1;n>=0;n--){const r=e.stack[n];if(r instanceof _f){this.root.push(D2(r.linkId,!0));break}}return super.prepForXml(e)}}const I2=({top:t,right:e,bottom:n,left:r})=>new Ln({name:"wp:effectExtent",attributes:{top:{key:"t",value:t},right:{key:"r",value:e},bottom:{key:"b",value:n},left:{key:"l",value:r}}});class XE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class N2 extends be{constructor(e,n){super("wp:extent"),xe(this,"attributes"),this.attributes=new XE({cx:e,cy:n}),this.root.push(this.attributes)}}class VE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}}class YE extends be{constructor(){super("a:graphicFrameLocks"),this.root.push(new VE({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}}class F2 extends be{constructor(){super("wp:cNvGraphicFramePr"),this.root.push(new YE)}}class BE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}}class kE extends be{constructor({mediaData:e,transform:n,drawingOptions:r}){super("wp:anchor");const i=dt({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},r.floating);if(this.root.push(new BE({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:n.emus.y})),this.root.push(new zO),this.root.push(new jO(i.horizontalPosition)),this.root.push(new eE(i.verticalPosition)),this.root.push(new N2(n.emus.x,n.emus.y)),this.root.push(I2({top:0,right:0,bottom:0,left:0})),r.floating!==void 0&&r.floating.wrap!==void 0)switch(r.floating.wrap.type){case Pc.SQUARE:this.root.push(new ME(r.floating.wrap,r.floating.margins));break;case Pc.TIGHT:this.root.push(new AE(r.floating.margins));break;case Pc.TOP_AND_BOTTOM:this.root.push(new WE(r.floating.margins));break;case Pc.NONE:default:this.root.push(new Bg)}else this.root.push(new Bg);this.root.push(new E2(r.docProperties)),this.root.push(new F2),this.root.push(new O2({mediaData:e,transform:n,outline:r.outline}))}}const ZE=({mediaData:t,transform:e,docProperties:n,outline:r})=>{var i,o,a,s;return new Ln({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 N2(e.emus.x,e.emus.y),I2(r?{top:((i=r.width)!=null?i:9525)*2,right:((o=r.width)!=null?o:9525)*2,bottom:((a=r.width)!=null?a:9525)*2,left:((s=r.width)!=null?s:9525)*2}:{top:0,right:0,bottom:0,left:0}),new E2(n),new F2,new O2({mediaData:t,transform:e,outline:r})]})};class QE extends be{constructor(e,n={}){super("w:drawing"),n.floating?this.root.push(new kE({mediaData:e,transform:e.transformation,drawingOptions:n})):this.root.push(ZE({mediaData:e,transform:e.transformation,docProperties:n.docProperties,outline:n.outline}))}}class KE extends Xs{constructor(e){super({}),xe(this,"key",`${w2()}.png`),xe(this,"imageData");const n=typeof e.data=="string"?this.convertDataURIToBinary(e.data):e.data;this.imageData={stream:n,fileName:this.key,transformation:{pixels:{x:Math.round(e.transformation.width),y:Math.round(e.transformation.height)},emus:{x:Math.round(e.transformation.width*9525),y:Math.round(e.transformation.height*9525)},flip:e.transformation.flip,rotation:e.transformation.rotation?e.transformation.rotation*6e4:void 0}};const r=new QE(this.imageData,{floating:e.floating,docProperties:e.altText,outline:e.outline});this.root.push(r)}prepForXml(e){return e.file.Media.addImage(this.key,this.imageData),super.prepForXml(e)}convertDataURIToBinary(e){if(typeof atob=="function"){const n=";base64,",r=e.indexOf(n),i=r===-1?0:r+n.length;return new Uint8Array(atob(e.substring(i)).split("").map(o=>o.charCodeAt(0)))}else{const n=require("buffer");return new n.Buffer(e,"base64")}}}class HE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class GE extends Ue{constructor(){super(...arguments),xe(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 JE extends be{constructor({id:e,initials:n,author:r,date:i=new Date,children:o}){super("w:comment"),this.root.push(new HE({id:e,initials:n,author:r,date:i.toISOString()}));for(const a of o)this.root.push(a)}}class zE extends be{constructor({children:e}){super("w:comments"),this.root.push(new GE({"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 n of e)this.root.push(new JE(n))}}class $E extends fO{constructor(){super("w:tab")}}class jE extends be{constructor(){super("w:pageBreakBefore")}}const _d={AT_LEAST:"atLeast",EXACTLY:"exactly",EXACT:"exact",AUTO:"auto"};class qE extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule"})}}class e3 extends be{constructor(e){super("w:spacing"),this.root.push(new qE(e))}}const Co={HEADING_1:"Heading1",HEADING_2:"Heading2",HEADING_3:"Heading3",HEADING_4:"Heading4",HEADING_5:"Heading5",HEADING_6:"Heading6",TITLE:"Title"};let Lc=class extends be{constructor(e){super("w:pStyle"),this.root.push(new Qt({val:e}))}};class t3 extends be{constructor(e){super("w:tabs");for(const n of e)this.root.push(new r3(n))}}const kg={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"};class n3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class r3 extends be{constructor({type:e,position:n,leader:r}){super("w:tab"),this.root.push(new n3({val:e,pos:n,leader:r}))}}class Zg extends be{constructor(e,n){super("w:numPr"),this.root.push(new i3(n)),this.root.push(new o3(e))}}class i3 extends be{constructor(e){if(super("w:ilvl"),e>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 Qt({val:e}))}}class o3 extends be{constructor(e){super("w:numId"),this.root.push(new Qt({val:typeof e=="string"?`{${e}}`:e}))}}class P2 extends be{constructor(){super(...arguments),xe(this,"fileChild",Symbol())}}class a3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const s3={EXTERNAL:"External"};class c3 extends be{constructor(e,n,r,i){super("Relationship"),this.root.push(new a3({id:e,type:n,target:r,targetMode:i}))}}class u3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class _f extends be{constructor(e,n,r){super("w:hyperlink"),xe(this,"linkId"),this.linkId=n;const i={history:1,anchor:r||void 0,id:r?void 0:`rId${this.linkId}`},o=new u3(i);this.root.push(o),e.forEach(a=>{this.root.push(a)})}}class L2 extends be{constructor(e){super("w:externalHyperlink"),this.options=e}}class l3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class h3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{id:"w:id"})}}class d3{constructor(e){xe(this,"bookmarkUniqueNumericId",QO()),xe(this,"start"),xe(this,"children"),xe(this,"end");const n=this.bookmarkUniqueNumericId();this.start=new f3(e.id,n),this.children=e.children,this.end=new p3(n)}}class f3 extends be{constructor(e,n){super("w:bookmarkStart");const r=new l3({name:e,id:n});this.root.push(r)}}class p3 extends be{constructor(e){super("w:bookmarkEnd");const n=new h3({id:e});this.root.push(n)}}class g3 extends be{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new Qt({val:e}))}}class m3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{verticalAlign:"w:val"})}}class M2 extends be{constructor(e){super("w:vAlign"),this.root.push(new m3({verticalAlign:e}))}}const la={DEFAULT:"default",FIRST:"first",EVEN:"even"};class R3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const Qg={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class Fh extends be{constructor(e,n){super(e),this.root.push(new R3({type:n.type||la.DEFAULT,id:`rId${n.id}`}))}}class y3 extends be{constructor({space:e,count:n,separate:r,equalWidth:i,children:o}){super("w:cols"),this.root.push(new bi({space:{key:"w:space",value:e===void 0?void 0:Tn(e)},count:{key:"w:num",value:n===void 0?void 0:Pn(n)},separate:{key:"w:sep",value:r},equalWidth:{key:"w:equalWidth",value:i}})),!i&&o&&o.forEach(a=>this.addChildElement(a))}}class v3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}}class b3 extends be{constructor(e,n,r){super("w:docGrid"),this.root.push(new v3({type:r,linePitch:Pn(e),charSpace:n?Pn(n):void 0}))}}const x3=({countBy:t,start:e,restart:n,distance:r})=>new Ln({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:t===void 0?void 0:Pn(t)},start:{key:"w:start",value:e===void 0?void 0:Pn(e)},restart:{key:"w:restart",value:n},distance:{key:"w:distance",value:r===void 0?void 0:Tn(r)}}});class Kg extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class w3 extends vi{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new Kg({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new Kg({})),e.pageBorderTop&&this.root.push(new Ot("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new Ot("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new Ot("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new Ot("w:right",e.pageBorderRight))}}class T3 extends be{constructor(e,n,r,i,o,a,s){super("w:pgMar"),this.root.push(new bi({top:{key:"w:top",value:di(e)},right:{key:"w:right",value:Tn(n)},bottom:{key:"w:bottom",value:di(r)},left:{key:"w:left",value:Tn(i)},header:{key:"w:header",value:Tn(o)},footer:{key:"w:footer",value:Tn(a)},gutter:{key:"w:gutter",value:Tn(s)}}))}}class S3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class D3 extends be{constructor({start:e,formatType:n,separator:r}){super("w:pgNumType"),this.root.push(new S3({start:e===void 0?void 0:Pn(e),formatType:n,separator:r}))}}const C2={PORTRAIT:"portrait",LANDSCAPE:"landscape"};class _3 extends be{constructor(e,n,r){super("w:pgSz");const i=r===C2.LANDSCAPE,o=Tn(e),a=Tn(n);this.root.push(new bi({width:{key:"w:w",value:i?a:o},height:{key:"w:h",value:i?o:a},orientation:{key:"w:orient",value:r}}))}}class O3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{val:"w:val"})}}class E3 extends be{constructor(e){super("w:textDirection"),this.root.push(new O3({val:e}))}}class I3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{val:"w:val"})}}class N3 extends be{constructor(e){super("w:type"),this.root.push(new I3({val:e}))}}const to={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},Ph={WIDTH:11906,HEIGHT:16838,ORIENTATION:C2.PORTRAIT};class F3 extends be{constructor({page:{size:{width:e=Ph.WIDTH,height:n=Ph.HEIGHT,orientation:r=Ph.ORIENTATION}={},margin:{top:i=to.TOP,right:o=to.RIGHT,bottom:a=to.BOTTOM,left:s=to.LEFT,header:c=to.HEADER,footer:u=to.FOOTER,gutter:l=to.GUTTER}={},pageNumbers:h={},borders:f,textDirection:d}={},grid:{linePitch:p=360,charSpace:g,type:y}={},headerWrapperGroup:R={},footerWrapperGroup:m={},lineNumbers:v,titlePage:x,verticalAlign:_,column:E,type:N}={}){super("w:sectPr"),this.addHeaderFooterGroup(Qg.HEADER,R),this.addHeaderFooterGroup(Qg.FOOTER,m),N&&this.root.push(new N3(N)),this.root.push(new _3(e,n,r)),this.root.push(new T3(i,o,a,s,c,u,l)),f&&this.root.push(new w3(f)),v&&this.root.push(x3(v)),this.root.push(new D3(h)),E&&this.root.push(new y3(E)),_&&this.root.push(new M2(_)),x!==void 0&&this.root.push(new Ne("w:titlePg",x)),d&&this.root.push(new E3(d)),this.root.push(new b3(p,g,y))}addHeaderFooterGroup(e,n){n.default&&this.root.push(new Fh(e,{type:la.DEFAULT,id:n.default.View.ReferenceId})),n.first&&this.root.push(new Fh(e,{type:la.FIRST,id:n.first.View.ReferenceId})),n.even&&this.root.push(new Fh(e,{type:la.EVEN,id:n.even.View.ReferenceId}))}}class P3 extends be{constructor(){super("w:body"),xe(this,"sections",[])}addSection(e){const n=this.sections.pop();this.root.push(this.createSectionParagraph(n)),this.sections.push(new F3(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){const n=new Wi({}),r=new ya({});return r.push(e),n.addChildElement(r),n}}class Vs extends Ue{constructor(){super(...arguments),xe(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 L3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class M3 extends be{constructor(e){super("w:background"),this.root.push(new L3({color:e.color===void 0?void 0:ga(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:Xg(e.themeShade),themeTint:e.themeTint===void 0?void 0:Xg(e.themeTint)}))}}class C3 extends be{constructor(e){super("w:document"),xe(this,"body"),this.root.push(new Vs({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 P3,e.background&&this.root.push(new M3(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}}class A3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{xmlns:"xmlns"})}}class Na extends be{constructor(){super("Relationships"),this.root.push(new A3({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,n,r,i){const o=new c3(`rId${e}`,n,r,i);return this.root.push(o),o}get RelationshipCount(){return this.root.length-1}}class A2{constructor(e){xe(this,"document"),xe(this,"relationships"),this.document=new C3(e),this.relationships=new Na}get View(){return this.document}get Relationships(){return this.relationships}}class U3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{val:"w:val"})}}class W3 extends be{constructor(){super("w:wordWrap"),this.root.push(new U3({val:0}))}}const X3=t=>{var e,n;return new Ln({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:t.anchorLock},dropCap:{key:"w:dropCap",value:t.dropCap},width:{key:"w:w",value:t.width},height:{key:"w:h",value:t.height},x:{key:"w:x",value:t.position?t.position.x:void 0},y:{key:"w:y",value:t.position?t.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:t.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:t.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(e=t.space)==null?void 0:e.horizontal},spaceVertical:{key:"w:vSpace",value:(n=t.space)==null?void 0:n.vertical},rule:{key:"w:hRule",value:t.rule},alignmentX:{key:"w:xAlign",value:t.alignment?t.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:t.alignment?t.alignment.y:void 0},lines:{key:"w:lines",value:t.lines},wrap:{key:"w:wrap",value:t.wrap}}})};class ya extends vi{constructor(e){var n,r;if(super("w:pPr"),xe(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new Lc(e.heading)),e.bullet&&this.push(new Lc("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(new Lc("ListParagraph"))),e.style&&this.push(new Lc(e.style)),e.keepNext!==void 0&&this.push(new Ne("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new Ne("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new jE),e.frame&&this.push(X3(e.frame)),e.widowControl!==void 0&&this.push(new Ne("w:widowControl",e.widowControl)),e.bullet&&this.push(new Zg(1,e.bullet.level)),e.numbering&&(this.numberingReferences.push({reference:e.numbering.reference,instance:(n=e.numbering.instance)!=null?n:0}),this.push(new Zg(`${e.numbering.reference}-${(r=e.numbering.instance)!=null?r:0}`,e.numbering.level))),e.border&&this.push(new RO(e.border)),e.thematicBreak&&this.push(new yO),e.shading&&this.push(new Vu(e.shading)),e.wordWrap&&this.push(new W3),e.overflowPunctuation&&this.push(new Ne("w:overflowPunct",e.overflowPunctuation));const i=[...e.rightTabStop!==void 0?[{type:kg.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:kg.LEFT,position:e.leftTabStop}]:[]];i.length>0&&this.push(new t3(i)),e.bidirectional!==void 0&&this.push(new Ne("w:bidi",e.bidirectional)),e.spacing&&this.push(new e3(e.spacing)),e.indent&&this.push(new vO(e.indent)),e.contextualSpacing!==void 0&&this.push(new Ne("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new v2(e.alignment)),e.outlineLevel!==void 0&&this.push(new g3(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new Ne("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new Ne("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new wo(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof A2)for(const n of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(n.reference,n.instance);return super.prepForXml(e)}}class Wi extends P2{constructor(e){if(super("w:p"),xe(this,"properties"),typeof e=="string")return this.properties=new ya({}),this.root.push(this.properties),this.root.push(new ua(e)),this;if(this.properties=new ya(e),this.root.push(this.properties),e.text&&this.root.push(new ua(e.text)),e.children)for(const n of e.children){if(n instanceof d3){this.root.push(n.start);for(const r of n.children)this.root.push(r);this.root.push(n.end);continue}this.root.push(n)}}prepForXml(e){for(const n of this.root)if(n instanceof L2){const r=this.root.indexOf(n),i=new _f(n.options.children,w2());e.viewWrapper.Relationships.createRelationship(i.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",n.options.link,s3.EXTERNAL),this.root[r]=i}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}}class V3 extends be{constructor(e){super("m:t"),this.root.push(e)}}class Y3 extends be{constructor(e){super("m:r"),this.root.push(new V3(e))}}class B3 extends be{constructor(e){super("w:tblGrid");for(const n of e)this.root.push(new k3(n))}}class k3 extends be{constructor(e){super("w:gridCol"),e!==void 0&&this.root.push(new bi({width:{key:"w:w",value:Tn(e)}}))}}const U2={TABLE:"w:tblCellMar",TABLE_CELL:"w:tcMar"};class W2 extends vi{constructor(e,{marginUnitType:n=yu.DXA,top:r,left:i,bottom:o,right:a}){super(e),r!==void 0&&this.root.push(new uo("w:top",{type:n,size:r})),i!==void 0&&this.root.push(new uo("w:left",{type:n,size:i})),o!==void 0&&this.root.push(new uo("w:bottom",{type:n,size:o})),a!==void 0&&this.root.push(new uo("w:right",{type:n,size:a}))}}const yu={AUTO:"auto",DXA:"dxa",NIL:"nil",PERCENTAGE:"pct"};class uo extends be{constructor(e,{type:n=yu.AUTO,size:r}){super(e);let i=r;n===yu.PERCENTAGE&&typeof r=="number"&&(i=`${r}%`),this.root.push(new bi({type:{key:"w:type",value:n},size:{key:"w:w",value:uO(i)}}))}}class Z3 extends vi{constructor(e){super("w:tcBorders"),e.top&&this.root.push(new Ot("w:top",e.top)),e.start&&this.root.push(new Ot("w:start",e.start)),e.left&&this.root.push(new Ot("w:left",e.left)),e.bottom&&this.root.push(new Ot("w:bottom",e.bottom)),e.end&&this.root.push(new Ot("w:end",e.end)),e.right&&this.root.push(new Ot("w:right",e.right))}}class Q3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{val:"w:val"})}}class K3 extends be{constructor(e){super("w:gridSpan"),this.root.push(new Q3({val:Pn(e)}))}}const X2={CONTINUE:"continue",RESTART:"restart"};class H3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{val:"w:val"})}}class Hg extends be{constructor(e){super("w:vMerge"),this.root.push(new H3({val:e}))}}class G3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{val:"w:val"})}}class J3 extends be{constructor(e){super("w:textDirection"),this.root.push(new G3({val:e}))}}class z3 extends vi{constructor(e){super("w:tcPr"),e.width&&this.root.push(new uo("w:tcW",e.width)),e.columnSpan&&this.root.push(new K3(e.columnSpan)),e.verticalMerge?this.root.push(new Hg(e.verticalMerge)):e.rowSpan&&e.rowSpan>1&&this.root.push(new Hg(X2.RESTART)),e.borders&&this.root.push(new Z3(e.borders)),e.shading&&this.root.push(new Vu(e.shading)),e.margins&&this.root.push(new W2(U2.TABLE_CELL,e.margins)),e.textDirection&&this.root.push(new J3(e.textDirection)),e.verticalAlign&&this.root.push(new M2(e.verticalAlign))}}class Of extends be{constructor(e){super("w:tc"),this.options=e,this.root.push(new z3(e));for(const n of e.children)this.root.push(n)}prepForXml(e){return this.root[this.root.length-1]instanceof Wi||this.root.push(new Wi({})),super.prepForXml(e)}}const Ao={style:Tf.NONE,size:0,color:"auto"},Uo={style:Tf.SINGLE,size:4,color:"auto"};class V2 extends be{constructor(e){super("w:tblBorders"),e.top?this.root.push(new Ot("w:top",e.top)):this.root.push(new Ot("w:top",Uo)),e.left?this.root.push(new Ot("w:left",e.left)):this.root.push(new Ot("w:left",Uo)),e.bottom?this.root.push(new Ot("w:bottom",e.bottom)):this.root.push(new Ot("w:bottom",Uo)),e.right?this.root.push(new Ot("w:right",e.right)):this.root.push(new Ot("w:right",Uo)),e.insideHorizontal?this.root.push(new Ot("w:insideH",e.insideHorizontal)):this.root.push(new Ot("w:insideH",Uo)),e.insideVertical?this.root.push(new Ot("w:insideV",e.insideVertical)):this.root.push(new Ot("w:insideV",Uo))}}xe(V2,"NONE",{top:Ao,bottom:Ao,left:Ao,right:Ao,insideHorizontal:Ao,insideVertical:Ao});class $3 extends be{constructor({horizontalAnchor:e,verticalAnchor:n,absoluteHorizontalPosition:r,relativeHorizontalPosition:i,absoluteVerticalPosition:o,relativeVerticalPosition:a,bottomFromText:s,topFromText:c,leftFromText:u,rightFromText:l,overlap:h}){super("w:tblpPr"),this.root.push(new bi({leftFromText:{key:"w:leftFromText",value:u===void 0?void 0:Tn(u)},rightFromText:{key:"w:rightFromText",value:l===void 0?void 0:Tn(l)},topFromText:{key:"w:topFromText",value:c===void 0?void 0:Tn(c)},bottomFromText:{key:"w:bottomFromText",value:s===void 0?void 0:Tn(s)},absoluteHorizontalPosition:{key:"w:tblpX",value:r===void 0?void 0:di(r)},absoluteVerticalPosition:{key:"w:tblpY",value:o===void 0?void 0:di(o)},horizontalAnchor:{key:"w:horzAnchor",value:e===void 0?void 0:e},relativeHorizontalPosition:{key:"w:tblpXSpec",value:i},relativeVerticalPosition:{key:"w:tblpYSpec",value:a},verticalAnchor:{key:"w:vertAnchor",value:n}})),h&&this.root.push(new pO("w:tblOverlap",h))}}class j3 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{type:"w:type"})}}class q3 extends be{constructor(e){super("w:tblLayout"),this.root.push(new j3({type:e}))}}class eI extends vi{constructor(e){super("w:tblPr"),e.style&&this.root.push(new po("w:tblStyle",e.style)),e.float&&this.root.push(new $3(e.float)),e.visuallyRightToLeft!==void 0&&this.root.push(new Ne("w:bidiVisual",e.visuallyRightToLeft)),e.width&&this.root.push(new uo("w:tblW",e.width)),e.alignment&&this.root.push(new v2(e.alignment)),e.indent&&this.root.push(new uo("w:tblInd",e.indent)),e.borders&&this.root.push(new V2(e.borders)),e.shading&&this.root.push(new Vu(e.shading)),e.layout&&this.root.push(new q3(e.layout)),e.cellMargin&&this.root.push(new W2(U2.TABLE,e.cellMargin))}}class tI extends P2{constructor({rows:e,width:n,columnWidths:r=Array(Math.max(...e.map(f=>f.CellCount))).fill(100),margins:i,indent:o,float:a,layout:s,style:c,borders:u,alignment:l,visuallyRightToLeft:h}){super("w:tbl"),this.root.push(new eI({borders:u!=null?u:{},width:n!=null?n:{size:100},indent:o,float:a,layout:s,style:c,alignment:l,cellMargin:i,visuallyRightToLeft:h})),this.root.push(new B3(r));for(const f of e)this.root.push(f);e.forEach((f,d)=>{if(d===e.length-1)return;let p=0;f.cells.forEach(g=>{if(g.options.rowSpan&&g.options.rowSpan>1){const y=new Of({rowSpan:g.options.rowSpan-1,columnSpan:g.options.columnSpan,borders:g.options.borders,children:[],verticalMerge:X2.CONTINUE});e[d+1].addCellToColumnIndex(y,p)}p+=g.options.columnSpan||1})})}}class nI extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{value:"w:val",rule:"w:hRule"})}}class rI extends be{constructor(e,n){super("w:trHeight"),this.root.push(new nI({value:Tn(e),rule:n}))}}class iI extends vi{constructor(e){super("w:trPr"),e.cantSplit!==void 0&&this.root.push(new Ne("w:cantSplit",e.cantSplit)),e.tableHeader!==void 0&&this.root.push(new Ne("w:tblHeader",e.tableHeader)),e.height&&this.root.push(new rI(e.height.value,e.height.rule))}}class oI extends be{constructor(e){super("w:tr"),this.options=e,this.root.push(new iI(e));for(const n of e.children)this.root.push(n)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(e=>e instanceof Of)}addCellToIndex(e,n){this.root.splice(n+1,0,e)}addCellToColumnIndex(e,n){const r=this.columnIndexToRootIndex(n,!0);this.addCellToIndex(e,r-1)}rootIndexToColumnIndex(e){if(e<1||e>=this.root.length)throw new Error(`cell 'rootIndex' should between 1 to ${this.root.length-1}`);let n=0;for(let r=1;r<e;r++)n+=this.root[r].options.columnSpan||1;return n}columnIndexToRootIndex(e,n=!1){if(e<0)throw new Error("cell 'columnIndex' should not less than zero");let r=0,i=1;for(;r<=e;){if(i>=this.root.length){if(n)return this.root.length;throw new Error(`cell 'columnIndex' should not great than ${r-1}`)}const o=this.root[i];i+=1,r+=o&&o.options.columnSpan||1}return i-1}}class aI extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class sI extends be{constructor(){super("Properties"),this.root.push(new aI({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class cI extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{xmlns:"xmlns"})}}class uI extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class Oi extends be{constructor(e,n){super("Default"),this.root.push(new uI({contentType:e,extension:n}))}}class lI extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class Rr extends be{constructor(e,n){super("Override"),this.root.push(new lI({contentType:e,partName:n}))}}class hI extends be{constructor(){super("Types"),this.root.push(new cI({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new Oi("image/png","png")),this.root.push(new Oi("image/jpeg","jpeg")),this.root.push(new Oi("image/jpeg","jpg")),this.root.push(new Oi("image/bmp","bmp")),this.root.push(new Oi("image/gif","gif")),this.root.push(new Oi("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new Oi("application/xml","xml")),this.root.push(new Oi("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new Rr("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new Rr("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new Rr("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new Rr("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new Rr("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new Rr("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new Rr("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new Rr("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new Rr("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new Rr("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(new Rr("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new Rr("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}}class dI extends be{constructor(e){super("cp:coreProperties"),this.root.push(new Vs({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"})),e.title&&this.root.push(new eo("dc:title",e.title)),e.subject&&this.root.push(new eo("dc:subject",e.subject)),e.creator&&this.root.push(new eo("dc:creator",e.creator)),e.keywords&&this.root.push(new eo("cp:keywords",e.keywords)),e.description&&this.root.push(new eo("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new eo("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new eo("cp:revision",String(e.revision))),this.root.push(new Gg("dcterms:created")),this.root.push(new Gg("dcterms:modified"))}}class Gg extends be{constructor(e){super(e),this.root.push(new Vs({type:"dcterms:W3CDTF"})),this.root.push(dO(new Date))}}class fI extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class pI extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class gI extends be{constructor(e,n){super("property"),this.root.push(new pI({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:n.name})),this.root.push(new mI(n.value))}}class mI extends be{constructor(e){super("vt:lpwstr"),this.root.push(e)}}class RI extends be{constructor(e){super("Properties"),xe(this,"nextId"),xe(this,"properties",[]),this.root.push(new fI({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const n of e)this.addCustomProperty(n)}prepForXml(e){return this.properties.forEach(n=>this.root.push(n)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new gI(this.nextId++,e))}}class yI extends Ue{constructor(){super(...arguments),xe(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 vI=class extends m2{constructor(e,n){super("w:ftr",n),xe(this,"refId"),this.refId=e,n||this.root.push(new yI({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(e){this.root.push(e)}};class bI{constructor(e,n,r){xe(this,"footer"),xe(this,"relationships"),this.media=e,this.footer=new vI(n,r),this.relationships=new Na}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class xI extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class wI extends be{constructor(){super("w:footnoteRef")}}class TI extends Xs{constructor(){super({style:"FootnoteReference"}),this.root.push(new wI)}}const Jg={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class Lh extends be{constructor(e){super("w:footnote"),this.root.push(new xI({type:e.type,id:e.id}));for(let n=0;n<e.children.length;n++){const r=e.children[n];n===0&&r.addRunToFront(new TI),this.root.push(r)}}}class SI extends be{constructor(){super("w:continuationSeparator")}}class DI extends Xs{constructor(){super({}),this.root.push(new SI)}}class _I extends be{constructor(){super("w:separator")}}class OI extends Xs{constructor(){super({}),this.root.push(new _I)}}class EI extends Ue{constructor(){super(...arguments),xe(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 II extends be{constructor(){super("w:footnotes"),this.root.push(new EI({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 Lh({id:-1,type:Jg.SEPERATOR,children:[new Wi({spacing:{after:0,line:240,lineRule:_d.AUTO},children:[new OI]})]});this.root.push(e);const n=new Lh({id:0,type:Jg.CONTINUATION_SEPERATOR,children:[new Wi({spacing:{after:0,line:240,lineRule:_d.AUTO},children:[new DI]})]});this.root.push(n)}createFootNote(e,n){const r=new Lh({id:e,children:n});this.root.push(r)}}class NI{constructor(){xe(this,"footnotess"),xe(this,"relationships"),this.footnotess=new II,this.relationships=new Na}get View(){return this.footnotess}get Relationships(){return this.relationships}}class FI extends Ue{constructor(){super(...arguments),xe(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 PI=class extends m2{constructor(e,n){super("w:hdr",n),xe(this,"refId"),this.refId=e,n||this.root.push(new FI({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(e){this.root.push(e)}};class LI{constructor(e,n,r){xe(this,"header"),xe(this,"relationships"),this.media=e,this.header=new PI(n,r),this.relationships=new Na}add(e){return this.header.add(e),this}addChildElement(e){this.header.addChildElement(e)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}}class MI{constructor(){xe(this,"map"),this.map=new Map}addImage(e,n){this.map.set(e,n)}get Array(){return Array.from(this.map.values())}}const ci={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 CI extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}}class AI extends be{constructor(e){super("w:numFmt"),this.root.push(new Qt({val:e}))}}class UI extends be{constructor(e){super("w:lvlText"),this.root.push(new Qt({val:e}))}}class WI extends be{constructor(e){super("w:lvlJc"),this.root.push(new Qt({val:e}))}}class XI extends be{constructor(e){super("w:suff"),this.root.push(new Qt({val:e}))}}class VI extends be{constructor(){super("w:isLgl")}}class YI extends be{constructor({level:e,format:n,text:r,alignment:i=Vr.START,start:o=1,style:a,suffix:s,isLegalNumberingStyle:c}){if(super("w:lvl"),xe(this,"paragraphProperties"),xe(this,"runProperties"),this.root.push(new wf("w:start",Pn(o))),n&&this.root.push(new AI(n)),s&&this.root.push(new XI(s)),c&&this.root.push(new VI),r&&this.root.push(new UI(r)),this.root.push(new WI(i)),this.paragraphProperties=new ya(a&&a.paragraph),this.runProperties=new wo(a&&a.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),e>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 CI({ilvl:Pn(e),tentative:1}))}}class BI extends YI{}class kI extends be{constructor(e){super("w:multiLevelType"),this.root.push(new Qt({val:e}))}}class ZI extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class zg extends be{constructor(e,n){super("w:abstractNum"),xe(this,"id"),this.root.push(new ZI({abstractNumId:Pn(e),restartNumberingAfterBreak:0})),this.root.push(new kI("hybridMultilevel")),this.id=e;for(const r of n)this.root.push(new BI(r))}}class QI extends be{constructor(e){super("w:abstractNumId"),this.root.push(new Qt({val:e}))}}class KI extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{numId:"w:numId"})}}class $g extends be{constructor(e){if(super("w:num"),xe(this,"numId"),xe(this,"reference"),xe(this,"instance"),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new KI({numId:Pn(e.numId)})),this.root.push(new QI(Pn(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const n of e.overrideLevels)this.root.push(new GI(n.num,n.start))}}class HI extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{ilvl:"w:ilvl"})}}class GI extends be{constructor(e,n){super("w:lvlOverride"),this.root.push(new HI({ilvl:e})),n!==void 0&&this.root.push(new zI(n))}}class JI extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{val:"w:val"})}}class zI extends be{constructor(e){super("w:startOverride"),this.root.push(new JI({val:e}))}}class $I extends be{constructor(e){super("w:numbering"),xe(this,"abstractNumberingMap",new Map),xe(this,"concreteNumberingMap",new Map),xe(this,"referenceConfigMap",new Map),xe(this,"abstractNumUniqueNumericId",BO()),xe(this,"concreteNumUniqueNumericId",kO()),this.root.push(new Vs({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 n=new zg(this.abstractNumUniqueNumericId(),[{level:0,format:ci.BULLET,text:"\u25CF",alignment:Vr.LEFT,style:{paragraph:{indent:{left:Ir(.5),hanging:Ir(.25)}}}},{level:1,format:ci.BULLET,text:"\u25CB",alignment:Vr.LEFT,style:{paragraph:{indent:{left:Ir(1),hanging:Ir(.25)}}}},{level:2,format:ci.BULLET,text:"\u25A0",alignment:Vr.LEFT,style:{paragraph:{indent:{left:2160,hanging:Ir(.25)}}}},{level:3,format:ci.BULLET,text:"\u25CF",alignment:Vr.LEFT,style:{paragraph:{indent:{left:2880,hanging:Ir(.25)}}}},{level:4,format:ci.BULLET,text:"\u25CB",alignment:Vr.LEFT,style:{paragraph:{indent:{left:3600,hanging:Ir(.25)}}}},{level:5,format:ci.BULLET,text:"\u25A0",alignment:Vr.LEFT,style:{paragraph:{indent:{left:4320,hanging:Ir(.25)}}}},{level:6,format:ci.BULLET,text:"\u25CF",alignment:Vr.LEFT,style:{paragraph:{indent:{left:5040,hanging:Ir(.25)}}}},{level:7,format:ci.BULLET,text:"\u25CF",alignment:Vr.LEFT,style:{paragraph:{indent:{left:5760,hanging:Ir(.25)}}}},{level:8,format:ci.BULLET,text:"\u25CF",alignment:Vr.LEFT,style:{paragraph:{indent:{left:6480,hanging:Ir(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new $g({numId:1,abstractNumId:n.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",n);for(const r of e.config)this.abstractNumberingMap.set(r.reference,new zg(this.abstractNumUniqueNumericId(),r.levels)),this.referenceConfigMap.set(r.reference,r.levels)}prepForXml(e){for(const n of this.abstractNumberingMap.values())this.root.push(n);for(const n of this.concreteNumberingMap.values())this.root.push(n);return super.prepForXml(e)}createConcreteNumberingInstance(e,n){const r=this.abstractNumberingMap.get(e);if(!r)return;const i=`${e}-${n}`;if(this.concreteNumberingMap.has(i))return;const o=this.referenceConfigMap.get(e),a=o&&o[0].start,s={numId:this.concreteNumUniqueNumericId(),abstractNumId:r.id,reference:e,instance:n,overrideLevels:[a&&Number.isInteger(a)?{num:0,start:a}:{num:0,start:1}]};this.concreteNumberingMap.set(i,new $g(s))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class jI extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class qI extends be{constructor(e){super("w:compatSetting"),this.root.push(new jI({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class eN extends be{constructor(e){super("w:compat"),e.version&&this.root.push(new qI(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new Ne("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new Ne("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new Ne("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new Ne("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new Ne("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new Ne("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new Ne("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new Ne("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new Ne("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new Ne("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new Ne("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new Ne("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new Ne("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new Ne("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new Ne("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new Ne("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new Ne("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new Ne("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new Ne("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new Ne("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new Ne("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new Ne("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new Ne("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new Ne("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new Ne("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new Ne("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new Ne("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new Ne("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new Ne("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new Ne("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new Ne("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new Ne("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new Ne("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new Ne("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new Ne("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new Ne("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new Ne("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new Ne("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new Ne("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new Ne("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new Ne("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new Ne("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new Ne("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new Ne("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new Ne("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new Ne("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new Ne("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new Ne("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new Ne("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new Ne("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new Ne("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new Ne("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new Ne("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new Ne("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new Ne("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new Ne("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new Ne("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new Ne("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new Ne("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new Ne("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new Ne("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new Ne("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new Ne("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new Ne("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new Ne("w:cachedColBalance",e.cachedColumnBalance))}}class tN extends Ue{constructor(){super(...arguments),xe(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 nN extends be{constructor(e){var n,r,i,o;super("w:settings"),this.root.push(new tN({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 Ne("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new Ne("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new Ne("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new Ne("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new wf("w:defaultTabStop",e.defaultTabStop)),this.root.push(new eN(fa(dt({},(n=e.compatibility)!=null?n:{}),{version:(o=(i=(r=e.compatibility)==null?void 0:r.version)!=null?i:e.compatibilityModeVersion)!=null?o:15})))}}class Y2 extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{val:"w:val"})}}class rN extends be{constructor(e){super("w:name"),this.root.push(new Y2({val:e}))}}class iN extends be{constructor(e){super("w:uiPriority"),this.root.push(new Y2({val:Pn(e)}))}}class oN extends Ue{constructor(){super(...arguments),xe(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class B2 extends be{constructor(e,n){super("w:style"),this.root.push(new oN(e)),n.name&&this.root.push(new rN(n.name)),n.basedOn&&this.root.push(new po("w:basedOn",n.basedOn)),n.next&&this.root.push(new po("w:next",n.next)),n.link&&this.root.push(new po("w:link",n.link)),n.uiPriority!==void 0&&this.root.push(new iN(n.uiPriority)),n.semiHidden!==void 0&&this.root.push(new Ne("w:semiHidden",n.semiHidden)),n.unhideWhenUsed!==void 0&&this.root.push(new Ne("w:unhideWhenUsed",n.unhideWhenUsed)),n.quickFormat!==void 0&&this.root.push(new Ne("w:qFormat",n.quickFormat))}}class Bu extends B2{constructor(e){super({type:"paragraph",styleId:e.id},e),xe(this,"paragraphProperties"),xe(this,"runProperties"),this.paragraphProperties=new ya(e.paragraph),this.runProperties=new wo(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class ku extends B2{constructor(e){super({type:"character",styleId:e.id},dt({uiPriority:99,unhideWhenUsed:!0},e)),xe(this,"runProperties"),this.runProperties=new wo(e.run),this.root.push(this.runProperties)}}class Zi extends Bu{constructor(e){super(dt({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}}class aN extends Zi{constructor(e){super(dt({id:"Title",name:"Title"},e))}}class sN extends Zi{constructor(e){super(dt({id:"Heading1",name:"Heading 1"},e))}}class cN extends Zi{constructor(e){super(dt({id:"Heading2",name:"Heading 2"},e))}}class uN extends Zi{constructor(e){super(dt({id:"Heading3",name:"Heading 3"},e))}}class lN extends Zi{constructor(e){super(dt({id:"Heading4",name:"Heading 4"},e))}}class hN extends Zi{constructor(e){super(dt({id:"Heading5",name:"Heading 5"},e))}}class dN extends Zi{constructor(e){super(dt({id:"Heading6",name:"Heading 6"},e))}}class fN extends Zi{constructor(e){super(dt({id:"Strong",name:"Strong"},e))}}class pN extends Bu{constructor(e){super(dt({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}}class gN extends Bu{constructor(e){super(dt({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:_d.AUTO}},run:{size:20}},e))}}class mN extends ku{constructor(e){super(dt({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}}class RN extends ku{constructor(e){super(dt({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}}class yN extends ku{constructor(e){super(dt({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:x2.SINGLE}}},e))}}class Od extends be{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const n of e.importedStyles)this.root.push(n);if(e.paragraphStyles)for(const n of e.paragraphStyles)this.root.push(new Bu(n));if(e.characterStyles)for(const n of e.characterStyles)this.root.push(new ku(n))}}class vN extends be{constructor(e){super("w:pPrDefault"),this.root.push(new ya(e))}}class bN extends be{constructor(e){super("w:rPrDefault"),this.root.push(new wo(e))}}class xN extends be{constructor(e){super("w:docDefaults"),xe(this,"runPropertiesDefaults"),xe(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new bN(e.run),this.paragraphPropertiesDefaults=new vN(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class wN{newInstance(e){const n=g2.xml2js(e,{compact:!1});let r;for(const a of n.elements||[])a.name==="w:styles"&&(r=a);if(r===void 0)throw new Error("can not find styles element");const i=r.elements||[];return new Od({initialStyles:new aO(r.attributes),importedStyles:i.map(a=>bf(a))})}}class jg{newInstance(e={}){var n;return{initialStyles:new Vs({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 xN((n=e.document)!=null?n:{}),new aN(dt({run:{size:56}},e.title)),new sN(dt({run:{color:"2E74B5",size:32}},e.heading1)),new cN(dt({run:{color:"2E74B5",size:26}},e.heading2)),new uN(dt({run:{color:"1F4D78",size:24}},e.heading3)),new lN(dt({run:{color:"2E74B5",italics:!0}},e.heading4)),new hN(dt({run:{color:"2E74B5"}},e.heading5)),new dN(dt({run:{color:"1F4D78"}},e.heading6)),new fN(dt({run:{bold:!0}},e.strong)),new pN(e.listParagraph||{}),new yN(e.hyperlink||{}),new mN(e.footnoteReference||{}),new gN(e.footnoteText||{}),new RN(e.footnoteTextChar||{})]}}}const Mc=({id:t,fontKey:e,subsetted:n},r)=>new Ln({name:r,attributes:dt({id:{key:"r:id",value:t}},e?{fontKey:{key:"w:fontKey",value:`{${e}}`}}:{}),children:[...n?[new Ne("w:subsetted",n)]:[]]}),TN=({name:t,altName:e,panose1:n,charset:r,family:i,notTrueType:o,pitch:a,sig:s,embedRegular:c,embedBold:u,embedItalic:l,embedBoldItalic:h})=>new Ln({name:"w:font",attributes:{name:{key:"w:name",value:t}},children:[...e?[za("w:altName",e)]:[],...n?[za("w:panose1",n)]:[],...r?[za("w:charset",r)]:[],...i?[za("w:family",i)]:[],...o?[new Ne("w:notTrueType",o)]:[],...a?[za("w:pitch",a)]:[],...s?[new Ln({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}}})]:[],...c?[Mc(c,"w:embedRegular")]:[],...u?[Mc(u,"w:embedBold")]:[],...l?[Mc(l,"w:embedItalic")]:[],...h?[Mc(h,"w:embedBoldItalic")]:[]]}),SN=({name:t,index:e,fontKey:n,characterSet:r})=>TN({name:t,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:r,family:"auto",pitch:"variable",embedRegular:{fontKey:n,id:`rId${e}`}}),DN=t=>new Ln({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:t.map((e,n)=>SN({name:e.name,index:n+1,fontKey:e.fontKey}))});class _N{constructor(e){xe(this,"fontTable"),xe(this,"relationships"),xe(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(n=>fa(dt({},n),{fontKey:KO()})),this.fontTable=DN(this.fontOptionsWithKey),this.relationships=new Na;for(let n=0;n<e.length;n++)this.relationships.createRelationship(n+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/${e[n].name}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}}class ON{constructor(e){xe(this,"currentRelationshipId",1),xe(this,"documentWrapper"),xe(this,"headers",[]),xe(this,"footers",[]),xe(this,"coreProperties"),xe(this,"numbering"),xe(this,"media"),xe(this,"fileRelationships"),xe(this,"footnotesWrapper"),xe(this,"settings"),xe(this,"contentTypes"),xe(this,"customProperties"),xe(this,"appProperties"),xe(this,"styles"),xe(this,"comments"),xe(this,"fontWrapper");var n,r,i,o,a,s,c,u;if(this.coreProperties=new dI(fa(dt({},e),{creator:(n=e.creator)!=null?n:"Un-named",revision:(r=e.revision)!=null?r:1,lastModifiedBy:(i=e.lastModifiedBy)!=null?i:"Un-named"})),this.numbering=new $I(e.numbering?e.numbering:{config:[]}),this.comments=new zE((o=e.comments)!=null?o:{children:[]}),this.fileRelationships=new Na,this.customProperties=new RI((a=e.customProperties)!=null?a:[]),this.appProperties=new sI,this.footnotesWrapper=new NI,this.contentTypes=new hI,this.documentWrapper=new A2({background:e.background}),this.settings=new nN({compatibilityModeVersion:e.compatabilityModeVersion,compatibility:e.compatibility,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,trackRevisions:(s=e.features)==null?void 0:s.trackRevisions,updateFields:(c=e.features)==null?void 0:c.updateFields,defaultTabStop:e.defaultTabStop}),this.media=new MI,e.externalStyles){const l=new wN;this.styles=l.newInstance(e.externalStyles)}else if(e.styles){const h=new jg().newInstance(e.styles.default);this.styles=new Od(dt(dt({},h),e.styles))}else{const l=new jg;this.styles=new Od(l.newInstance())}this.addDefaultRelationships();for(const l of e.sections)this.addSection(l);if(e.footnotes)for(const l in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(l),e.footnotes[l].children);this.fontWrapper=new _N((u=e.fonts)!=null?u:[])}addSection({headers:e={},footers:n={},children:r,properties:i}){this.documentWrapper.View.Body.addSection(fa(dt({},i),{headerWrapperGroup:{default:e.default?this.createHeader(e.default):void 0,first:e.first?this.createHeader(e.first):void 0,even:e.even?this.createHeader(e.even):void 0},footerWrapperGroup:{default:n.default?this.createFooter(n.default):void 0,first:n.first?this.createFooter(n.first):void 0,even:n.even?this.createFooter(n.even):void 0}}));for(const o of r)this.documentWrapper.View.add(o)}createHeader(e){const n=new LI(this.media,this.currentRelationshipId++);for(const r of e.options.children)n.add(r);return this.addHeaderToDocument(n),n}createFooter(e){const n=new bI(this.media,this.currentRelationshipId++);for(const r of e.options.children)n.add(r);return this.addFooterToDocument(n),n}addHeaderToDocument(e,n=la.DEFAULT){this.headers.push({header:e,type:n}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(e,n=la.DEFAULT){this.footers.push({footer:e,type:n}),this.documentWrapper.Relationships.createRelationship(e.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(e=>e.header)}get Footers(){return this.footers.map(e=>e.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 EN{constructor(e={children:[]}){xe(this,"options"),this.options=e}}class IN{constructor(e={children:[]}){xe(this,"options"),this.options=e}}function Cc(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var k2={exports:{}};(function(t,e){(function(n){t.exports=n()})(function(){return function n(r,i,o){function a(u,l){if(!i[u]){if(!r[u]){var h=typeof Cc=="function"&&Cc;if(!l&&h)return h(u,!0);if(s)return s(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var d=i[u]={exports:{}};r[u][0].call(d.exports,function(p){var g=r[u][1][p];return a(g||p)},d,d.exports,n,r,i,o)}return i[u].exports}for(var s=typeof Cc=="function"&&Cc,c=0;c<o.length;c++)a(o[c]);return a}({1:[function(n,r,i){var o=n("./utils"),a=n("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(c){for(var u,l,h,f,d,p,g,y=[],R=0,m=c.length,v=m,x=o.getTypeOf(c)!=="string";R<c.length;)v=m-R,h=x?(u=c[R++],l=R<m?c[R++]:0,R<m?c[R++]:0):(u=c.charCodeAt(R++),l=R<m?c.charCodeAt(R++):0,R<m?c.charCodeAt(R++):0),f=u>>2,d=(3&u)<<4|l>>4,p=1<v?(15&l)<<2|h>>6:64,g=2<v?63&h:64,y.push(s.charAt(f)+s.charAt(d)+s.charAt(p)+s.charAt(g));return y.join("")},i.decode=function(c){var u,l,h,f,d,p,g=0,y=0,R="data:";if(c.substr(0,R.length)===R)throw new Error("Invalid base64 input, it looks like a data url.");var m,v=3*(c=c.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(c.charAt(c.length-1)===s.charAt(64)&&v--,c.charAt(c.length-2)===s.charAt(64)&&v--,v%1!=0)throw new Error("Invalid base64 input, bad content length.");for(m=a.uint8array?new Uint8Array(0|v):new Array(0|v);g<c.length;)u=s.indexOf(c.charAt(g++))<<2|(f=s.indexOf(c.charAt(g++)))>>4,l=(15&f)<<4|(d=s.indexOf(c.charAt(g++)))>>2,h=(3&d)<<6|(p=s.indexOf(c.charAt(g++))),m[y++]=u,d!==64&&(m[y++]=l),p!==64&&(m[y++]=h);return m}},{"./support":30,"./utils":32}],2:[function(n,r,i){var o=n("./external"),a=n("./stream/DataWorker"),s=n("./stream/Crc32Probe"),c=n("./stream/DataLengthProbe");function u(l,h,f,d,p){this.compressedSize=l,this.uncompressedSize=h,this.crc32=f,this.compression=d,this.compressedContent=p}u.prototype={getContentWorker:function(){var l=new a(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),h=this;return l.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new a(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},u.createWorkerFrom=function(l,h,f){return l.pipe(new s).pipe(new c("uncompressedSize")).pipe(h.compressWorker(f)).pipe(new c("compressedSize")).withStreamInfo("compression",h)},r.exports=u},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var o=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var o=n("./utils"),a=function(){for(var s,c=[],u=0;u<256;u++){s=u;for(var l=0;l<8;l++)s=1&s?3988292384^s>>>1:s>>>1;c[u]=s}return c}();r.exports=function(s,c){return s!==void 0&&s.length?o.getTypeOf(s)!=="string"?function(u,l,h,f){var d=a,p=f+h;u^=-1;for(var g=f;g<p;g++)u=u>>>8^d[255&(u^l[g])];return-1^u}(0|c,s,s.length,0):function(u,l,h,f){var d=a,p=f+h;u^=-1;for(var g=f;g<p;g++)u=u>>>8^d[255&(u^l.charCodeAt(g))];return-1^u}(0|c,s,s.length,0):0}},{"./utils":32}],5:[function(n,r,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(n,r,i){var o=null;o=typeof Promise!="undefined"?Promise:n("lie"),r.exports={Promise:o}},{lie:37}],7:[function(n,r,i){var o=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",a=n("pako"),s=n("./utils"),c=n("./stream/GenericWorker"),u=o?"uint8array":"array";function l(h,f){c.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=f,this.meta={}}i.magic="\b\0",s.inherits(l,c),l.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(u,h.data),!1)},l.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(f){h.push({data:f,meta:h.meta})}},i.compressWorker=function(h){return new l("Deflate",h)},i.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function o(d,p){var g,y="";for(g=0;g<p;g++)y+=String.fromCharCode(255&d),d>>>=8;return y}function a(d,p,g,y,R,m){var v,x,_=d.file,E=d.compression,N=m!==u.utf8encode,U=s.transformTo("string",m(_.name)),O=s.transformTo("string",u.utf8encode(_.name)),Q=_.comment,ne=s.transformTo("string",m(Q)),T=s.transformTo("string",u.utf8encode(Q)),I=O.length!==_.name.length,b=T.length!==Q.length,M="",C="",F="",A=_.dir,B=_.date,$={crc32:0,compressedSize:0,uncompressedSize:0};p&&!g||($.crc32=d.crc32,$.compressedSize=d.compressedSize,$.uncompressedSize=d.uncompressedSize);var V=0;p&&(V|=8),N||!I&&!b||(V|=2048);var L=0,z=0;A&&(L|=16),R==="UNIX"?(z=798,L|=function(se,ae){var Y=se;return se||(Y=ae?16893:33204),(65535&Y)<<16}(_.unixPermissions,A)):(z=20,L|=function(se){return 63&(se||0)}(_.dosPermissions)),v=B.getUTCHours(),v<<=6,v|=B.getUTCMinutes(),v<<=5,v|=B.getUTCSeconds()/2,x=B.getUTCFullYear()-1980,x<<=4,x|=B.getUTCMonth()+1,x<<=5,x|=B.getUTCDate(),I&&(C=o(1,1)+o(l(U),4)+O,M+="up"+o(C.length,2)+C),b&&(F=o(1,1)+o(l(ne),4)+T,M+="uc"+o(F.length,2)+F);var q="";return q+=`
|
|
\0`,q+=o(V,2),q+=E.magic,q+=o(v,2),q+=o(x,2),q+=o($.crc32,4),q+=o($.compressedSize,4),q+=o($.uncompressedSize,4),q+=o(U.length,2),q+=o(M.length,2),{fileRecord:h.LOCAL_FILE_HEADER+q+U+M,dirRecord:h.CENTRAL_FILE_HEADER+o(z,2)+q+o(ne.length,2)+"\0\0\0\0"+o(L,4)+o(y,4)+U+M+ne}}var s=n("../utils"),c=n("../stream/GenericWorker"),u=n("../utf8"),l=n("../crc32"),h=n("../signature");function f(d,p,g,y){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=g,this.encodeFileName=y,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(f,c),f.prototype.push=function(d){var p=d.meta.percent||0,g=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,c.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:g?(p+100*(g-y-1))/g:100}}))},f.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var p=this.streamFiles&&!d.file.dir;if(p){var g=a(d,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(d){this.accumulate=!1;var p=this.streamFiles&&!d.file.dir,g=a(d,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),p)this.push({data:function(y){return h.DATA_DESCRIPTOR+o(y.crc32,4)+o(y.compressedSize,4)+o(y.uncompressedSize,4)}(d),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var d=this.bytesWritten,p=0;p<this.dirRecords.length;p++)this.push({data:this.dirRecords[p],meta:{percent:100}});var g=this.bytesWritten-d,y=function(R,m,v,x,_){var E=s.transformTo("string",_(x));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(R,2)+o(R,2)+o(m,4)+o(v,4)+o(E.length,2)+E}(this.dirRecords.length,g,d,this.zipComment,this.encodeFileName);this.push({data:y,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(d){this._sources.push(d);var p=this;return d.on("data",function(g){p.processChunk(g)}),d.on("end",function(){p.closedSource(p.previous.streamInfo),p._sources.length?p.prepareNextSource():p.end()}),d.on("error",function(g){p.error(g)}),this},f.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(d){var p=this._sources;if(!c.prototype.error.call(this,d))return!1;for(var g=0;g<p.length;g++)try{p[g].error(d)}catch{}return!0},f.prototype.lock=function(){c.prototype.lock.call(this);for(var d=this._sources,p=0;p<d.length;p++)d[p].lock()},r.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var o=n("../compressions"),a=n("./ZipFileWorker");i.generateWorker=function(s,c,u){var l=new a(c.streamFiles,u,c.platform,c.encodeFileName),h=0;try{s.forEach(function(f,d){h++;var p=function(m,v){var x=m||v,_=o[x];if(!_)throw new Error(x+" is not a valid compression method !");return _}(d.options.compression,c.compression),g=d.options.compressionOptions||c.compressionOptions||{},y=d.dir,R=d.date;d._compressWorker(p,g).withStreamInfo("file",{name:f,dir:y,date:R,comment:d.comment||"",unixPermissions:d.unixPermissions,dosPermissions:d.dosPermissions}).pipe(l)}),l.entriesCount=h}catch(f){l.error(f)}return l}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,i){function o(){if(!(this instanceof o))return new o;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 a=new o;for(var s in this)typeof this[s]!="function"&&(a[s]=this[s]);return a}}(o.prototype=n("./object")).loadAsync=n("./load"),o.support=n("./support"),o.defaults=n("./defaults"),o.version="3.10.1",o.loadAsync=function(a,s){return new o().loadAsync(a,s)},o.external=n("./external"),r.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,i){var o=n("./utils"),a=n("./external"),s=n("./utf8"),c=n("./zipEntries"),u=n("./stream/Crc32Probe"),l=n("./nodejsUtils");function h(f){return new a.Promise(function(d,p){var g=f.decompressed.getContentWorker().pipe(new u);g.on("error",function(y){p(y)}).on("end",function(){g.streamInfo.crc32!==f.decompressed.crc32?p(new Error("Corrupted zip : CRC32 mismatch")):d()}).resume()})}r.exports=function(f,d){var p=this;return d=o.extend(d||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),l.isNode&&l.isStream(f)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",f,!0,d.optimizedBinaryString,d.base64).then(function(g){var y=new c(d);return y.load(g),y}).then(function(g){var y=[a.Promise.resolve(g)],R=g.files;if(d.checkCRC32)for(var m=0;m<R.length;m++)y.push(h(R[m]));return a.Promise.all(y)}).then(function(g){for(var y=g.shift(),R=y.files,m=0;m<R.length;m++){var v=R[m],x=v.fileNameStr,_=o.resolve(v.fileNameStr);p.file(_,v.decompressed,{binary:!0,optimizedBinaryString:!0,date:v.date,dir:v.dir,comment:v.fileCommentStr.length?v.fileCommentStr:null,unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions,createFolders:d.createFolders}),v.dir||(p.file(_).unsafeOriginalName=x)}return y.zipComment.length&&(p.comment=y.zipComment),p})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var o=n("../utils"),a=n("../stream/GenericWorker");function s(c,u){a.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(u)}o.inherits(s,a),s.prototype._bindStream=function(c){var u=this;(this._stream=c).pause(),c.on("data",function(l){u.push({data:l,meta:{percent:0}})}).on("error",function(l){u.isPaused?this.generatedError=l:u.error(l)}).on("end",function(){u.isPaused?u._upstreamEnded=!0:u.end()})},s.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,i){var o=n("readable-stream").Readable;function a(s,c,u){o.call(this,c),this._helper=s;var l=this;s.on("data",function(h,f){l.push(h)||l._helper.pause(),u&&u(f)}).on("error",function(h){l.emit("error",h)}).on("end",function(){l.push(null)})}n("../utils").inherits(a,o),a.prototype._read=function(){this._helper.resume()},r.exports=a},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer!="undefined",newBufferFrom:function(o,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(o,a);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new Buffer(o,a)},allocBuffer:function(o){if(Buffer.alloc)return Buffer.alloc(o);var a=new Buffer(o);return a.fill(0),a},isBuffer:function(o){return Buffer.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(n,r,i){function o(_,E,N){var U,O=s.getTypeOf(E),Q=s.extend(N||{},l);Q.date=Q.date||new Date,Q.compression!==null&&(Q.compression=Q.compression.toUpperCase()),typeof Q.unixPermissions=="string"&&(Q.unixPermissions=parseInt(Q.unixPermissions,8)),Q.unixPermissions&&16384&Q.unixPermissions&&(Q.dir=!0),Q.dosPermissions&&16&Q.dosPermissions&&(Q.dir=!0),Q.dir&&(_=R(_)),Q.createFolders&&(U=y(_))&&m.call(this,U,!0);var ne=O==="string"&&Q.binary===!1&&Q.base64===!1;N&&N.binary!==void 0||(Q.binary=!ne),(E instanceof h&&E.uncompressedSize===0||Q.dir||!E||E.length===0)&&(Q.base64=!1,Q.binary=!0,E="",Q.compression="STORE",O="string");var T=null;T=E instanceof h||E instanceof c?E:p.isNode&&p.isStream(E)?new g(_,E):s.prepareContent(_,E,Q.binary,Q.optimizedBinaryString,Q.base64);var I=new f(_,T,Q);this.files[_]=I}var a=n("./utf8"),s=n("./utils"),c=n("./stream/GenericWorker"),u=n("./stream/StreamHelper"),l=n("./defaults"),h=n("./compressedObject"),f=n("./zipObject"),d=n("./generate"),p=n("./nodejsUtils"),g=n("./nodejs/NodejsStreamInputAdapter"),y=function(_){_.slice(-1)==="/"&&(_=_.substring(0,_.length-1));var E=_.lastIndexOf("/");return 0<E?_.substring(0,E):""},R=function(_){return _.slice(-1)!=="/"&&(_+="/"),_},m=function(_,E){return E=E!==void 0?E:l.createFolders,_=R(_),this.files[_]||o.call(this,_,null,{dir:!0,createFolders:E}),this.files[_]};function v(_){return Object.prototype.toString.call(_)==="[object RegExp]"}var x={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(_){var E,N,U;for(E in this.files)U=this.files[E],(N=E.slice(this.root.length,E.length))&&E.slice(0,this.root.length)===this.root&&_(N,U)},filter:function(_){var E=[];return this.forEach(function(N,U){_(N,U)&&E.push(U)}),E},file:function(_,E,N){if(arguments.length!==1)return _=this.root+_,o.call(this,_,E,N),this;if(v(_)){var U=_;return this.filter(function(Q,ne){return!ne.dir&&U.test(Q)})}var O=this.files[this.root+_];return O&&!O.dir?O:null},folder:function(_){if(!_)return this;if(v(_))return this.filter(function(O,Q){return Q.dir&&_.test(O)});var E=this.root+_,N=m.call(this,E),U=this.clone();return U.root=N.name,U},remove:function(_){_=this.root+_;var E=this.files[_];if(E||(_.slice(-1)!=="/"&&(_+="/"),E=this.files[_]),E&&!E.dir)delete this.files[_];else for(var N=this.filter(function(O,Q){return Q.name.slice(0,_.length)===_}),U=0;U<N.length;U++)delete this.files[N[U].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 E,N={};try{if((N=s.extend(_||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=N.type.toLowerCase(),N.compression=N.compression.toUpperCase(),N.type==="binarystring"&&(N.type="string"),!N.type)throw new Error("No output type specified.");s.checkSupport(N.type),N.platform!=="darwin"&&N.platform!=="freebsd"&&N.platform!=="linux"&&N.platform!=="sunos"||(N.platform="UNIX"),N.platform==="win32"&&(N.platform="DOS");var U=N.comment||this.comment||"";E=d.generateWorker(this,N,U)}catch(O){(E=new c("error")).error(O)}return new u(E,N.type||"string",N.mimeType)},generateAsync:function(_,E){return this.generateInternalStream(_).accumulate(E)},generateNodeStream:function(_,E){return(_=_||{}).type||(_.type="nodebuffer"),this.generateInternalStream(_).toNodejsStream(E)}};r.exports=x},{"./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(n,r,i){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,i){var o=n("./DataReader");function a(s){o.call(this,s);for(var c=0;c<this.data.length;c++)s[c]=255&s[c]}n("../utils").inherits(a,o),a.prototype.byteAt=function(s){return this.data[this.zero+s]},a.prototype.lastIndexOfSignature=function(s){for(var c=s.charCodeAt(0),u=s.charCodeAt(1),l=s.charCodeAt(2),h=s.charCodeAt(3),f=this.length-4;0<=f;--f)if(this.data[f]===c&&this.data[f+1]===u&&this.data[f+2]===l&&this.data[f+3]===h)return f-this.zero;return-1},a.prototype.readAndCheckSignature=function(s){var c=s.charCodeAt(0),u=s.charCodeAt(1),l=s.charCodeAt(2),h=s.charCodeAt(3),f=this.readData(4);return c===f[0]&&u===f[1]&&l===f[2]&&h===f[3]},a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=a},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var o=n("../utils");function a(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}a.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 c,u=0;for(this.checkOffset(s),c=this.index+s-1;c>=this.index;c--)u=(u<<8)+this.byteAt(c);return this.index+=s,u},readString:function(s){return o.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))}},r.exports=a},{"../utils":32}],19:[function(n,r,i){var o=n("./Uint8ArrayReader");function a(s){o.call(this,s)}n("../utils").inherits(a,o),a.prototype.readData=function(s){this.checkOffset(s);var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var o=n("./DataReader");function a(s){o.call(this,s)}n("../utils").inherits(a,o),a.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},a.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},a.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},a.prototype.readData=function(s){this.checkOffset(s);var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=a},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var o=n("./ArrayReader");function a(s){o.call(this,s)}n("../utils").inherits(a,o),a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var o=n("../utils"),a=n("../support"),s=n("./ArrayReader"),c=n("./StringReader"),u=n("./NodeBufferReader"),l=n("./Uint8ArrayReader");r.exports=function(h){var f=o.getTypeOf(h);return o.checkSupport(f),f!=="string"||a.uint8array?f==="nodebuffer"?new u(h):a.uint8array?new l(o.transformTo("uint8array",h)):new s(o.transformTo("array",h)):new c(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,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(n,r,i){var o=n("./GenericWorker"),a=n("../utils");function s(c){o.call(this,"ConvertWorker to "+c),this.destType=c}a.inherits(s,o),s.prototype.processChunk=function(c){this.push({data:a.transformTo(this.destType,c.data),meta:c.meta})},r.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var o=n("./GenericWorker"),a=n("../crc32");function s(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(s,o),s.prototype.processChunk=function(c){this.streamInfo.crc32=a(c.data,this.streamInfo.crc32||0),this.push(c)},r.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var o=n("../utils"),a=n("./GenericWorker");function s(c){a.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}o.inherits(s,a),s.prototype.processChunk=function(c){if(c){var u=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=u+c.data.length}a.prototype.processChunk.call(this,c)},r.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var o=n("../utils"),a=n("./GenericWorker");function s(c){a.call(this,"DataWorker");var u=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(l){u.dataIsReady=!0,u.data=l,u.max=l&&l.length||0,u.type=o.getTypeOf(l),u.isPaused||u._tickAndRepeat()},function(l){u.error(l)})}o.inherits(s,a),s.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,u=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,u);break;case"uint8array":c=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":c=this.data.slice(this.index,u)}return this.index=u,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function o(a){this.name=a||"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}o.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,s){return this._listeners[a].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,s){if(this._listeners[a])for(var c=0;c<this._listeners[a].length;c++)this._listeners[a][c].call(this,s)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var s=this;return a.on("data",function(c){s.processChunk(c)}),a.on("end",function(){s.end()}),a.on("error",function(c){s.error(c)}),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 a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,s){return this.extraStreamInfo[a]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},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 a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},r.exports=o},{}],29:[function(n,r,i){var o=n("../utils"),a=n("./ConvertWorker"),s=n("./GenericWorker"),c=n("../base64"),u=n("../support"),l=n("../external"),h=null;if(u.nodestream)try{h=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(p,g){return new l.Promise(function(y,R){var m=[],v=p._internalType,x=p._outputType,_=p._mimeType;p.on("data",function(E,N){m.push(E),g&&g(N)}).on("error",function(E){m=[],R(E)}).on("end",function(){try{var E=function(N,U,O){switch(N){case"blob":return o.newBlob(o.transformTo("arraybuffer",U),O);case"base64":return c.encode(U);default:return o.transformTo(N,U)}}(x,function(N,U){var O,Q=0,ne=null,T=0;for(O=0;O<U.length;O++)T+=U[O].length;switch(N){case"string":return U.join("");case"array":return Array.prototype.concat.apply([],U);case"uint8array":for(ne=new Uint8Array(T),O=0;O<U.length;O++)ne.set(U[O],Q),Q+=U[O].length;return ne;case"nodebuffer":return Buffer.concat(U);default:throw new Error("concat : unsupported type '"+N+"'")}}(v,m),_);y(E)}catch(N){R(N)}m=[]}).resume()})}function d(p,g,y){var R=g;switch(g){case"blob":case"arraybuffer":R="uint8array";break;case"base64":R="string"}try{this._internalType=R,this._outputType=g,this._mimeType=y,o.checkSupport(R),this._worker=p.pipe(new a(R)),p.lock()}catch(m){this._worker=new s("error"),this._worker.error(m)}}d.prototype={accumulate:function(p){return f(this,p)},on:function(p,g){var y=this;return p==="data"?this._worker.on(p,function(R){g.call(y,R.data,R.meta)}):this._worker.on(p,function(){o.delay(g,arguments,y)}),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(p){if(o.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:this._outputType!=="nodebuffer"},p)}},r.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,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 o=new ArrayBuffer(0);try{i.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(o),i.blob=a.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,i){for(var o=n("./utils"),a=n("./support"),s=n("./nodejsUtils"),c=n("./stream/GenericWorker"),u=new Array(256),l=0;l<256;l++)u[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;u[254]=u[254]=1;function h(){c.call(this,"utf-8 decode"),this.leftOver=null}function f(){c.call(this,"utf-8 encode")}i.utf8encode=function(d){return a.nodebuffer?s.newBufferFrom(d,"utf-8"):function(p){var g,y,R,m,v,x=p.length,_=0;for(m=0;m<x;m++)(64512&(y=p.charCodeAt(m)))==55296&&m+1<x&&(64512&(R=p.charCodeAt(m+1)))==56320&&(y=65536+(y-55296<<10)+(R-56320),m++),_+=y<128?1:y<2048?2:y<65536?3:4;for(g=a.uint8array?new Uint8Array(_):new Array(_),m=v=0;v<_;m++)(64512&(y=p.charCodeAt(m)))==55296&&m+1<x&&(64512&(R=p.charCodeAt(m+1)))==56320&&(y=65536+(y-55296<<10)+(R-56320),m++),y<128?g[v++]=y:(y<2048?g[v++]=192|y>>>6:(y<65536?g[v++]=224|y>>>12:(g[v++]=240|y>>>18,g[v++]=128|y>>>12&63),g[v++]=128|y>>>6&63),g[v++]=128|63&y);return g}(d)},i.utf8decode=function(d){return a.nodebuffer?o.transformTo("nodebuffer",d).toString("utf-8"):function(p){var g,y,R,m,v=p.length,x=new Array(2*v);for(g=y=0;g<v;)if((R=p[g++])<128)x[y++]=R;else if(4<(m=u[R]))x[y++]=65533,g+=m-1;else{for(R&=m===2?31:m===3?15:7;1<m&&g<v;)R=R<<6|63&p[g++],m--;1<m?x[y++]=65533:R<65536?x[y++]=R:(R-=65536,x[y++]=55296|R>>10&1023,x[y++]=56320|1023&R)}return x.length!==y&&(x.subarray?x=x.subarray(0,y):x.length=y),o.applyFromCharCode(x)}(d=o.transformTo(a.uint8array?"uint8array":"array",d))},o.inherits(h,c),h.prototype.processChunk=function(d){var p=o.transformTo(a.uint8array?"uint8array":"array",d.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var g=p;(p=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),p.set(g,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var y=function(m,v){var x;for((v=v||m.length)>m.length&&(v=m.length),x=v-1;0<=x&&(192&m[x])==128;)x--;return x<0||x===0?v:x+u[m[x]]>v?x:v}(p),R=p;y!==p.length&&(a.uint8array?(R=p.subarray(0,y),this.leftOver=p.subarray(y,p.length)):(R=p.slice(0,y),this.leftOver=p.slice(y,p.length))),this.push({data:i.utf8decode(R),meta:d.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=h,o.inherits(f,c),f.prototype.processChunk=function(d){this.push({data:i.utf8encode(d.data),meta:d.meta})},i.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var o=n("./support"),a=n("./base64"),s=n("./nodejsUtils"),c=n("./external");function u(g){return g}function l(g,y){for(var R=0;R<g.length;++R)y[R]=255&g.charCodeAt(R);return y}n("setimmediate"),i.newBlob=function(g,y){i.checkSupport("blob");try{return new Blob([g],{type:y})}catch{try{var R=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return R.append(g),R.getBlob(y)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(g,y,R){var m=[],v=0,x=g.length;if(x<=R)return String.fromCharCode.apply(null,g);for(;v<x;)y==="array"||y==="nodebuffer"?m.push(String.fromCharCode.apply(null,g.slice(v,Math.min(v+R,x)))):m.push(String.fromCharCode.apply(null,g.subarray(v,Math.min(v+R,x)))),v+=R;return m.join("")},stringifyByChar:function(g){for(var y="",R=0;R<g.length;R++)y+=String.fromCharCode(g[R]);return y},applyCanBeUsed:{uint8array:function(){try{return o.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return o.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}}()}};function f(g){var y=65536,R=i.getTypeOf(g),m=!0;if(R==="uint8array"?m=h.applyCanBeUsed.uint8array:R==="nodebuffer"&&(m=h.applyCanBeUsed.nodebuffer),m)for(;1<y;)try{return h.stringifyByChunk(g,R,y)}catch{y=Math.floor(y/2)}return h.stringifyByChar(g)}function d(g,y){for(var R=0;R<g.length;R++)y[R]=g[R];return y}i.applyFromCharCode=f;var p={};p.string={string:u,array:function(g){return l(g,new Array(g.length))},arraybuffer:function(g){return p.string.uint8array(g).buffer},uint8array:function(g){return l(g,new Uint8Array(g.length))},nodebuffer:function(g){return l(g,s.allocBuffer(g.length))}},p.array={string:f,array:u,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return s.newBufferFrom(g)}},p.arraybuffer={string:function(g){return f(new Uint8Array(g))},array:function(g){return d(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:u,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return s.newBufferFrom(new Uint8Array(g))}},p.uint8array={string:f,array:function(g){return d(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:u,nodebuffer:function(g){return s.newBufferFrom(g)}},p.nodebuffer={string:f,array:function(g){return d(g,new Array(g.length))},arraybuffer:function(g){return p.nodebuffer.uint8array(g).buffer},uint8array:function(g){return d(g,new Uint8Array(g.length))},nodebuffer:u},i.transformTo=function(g,y){if(y=y||"",!g)return y;i.checkSupport(g);var R=i.getTypeOf(y);return p[R][g](y)},i.resolve=function(g){for(var y=g.split("/"),R=[],m=0;m<y.length;m++){var v=y[m];v==="."||v===""&&m!==0&&m!==y.length-1||(v===".."?R.pop():R.push(v))}return R.join("/")},i.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":o.nodebuffer&&s.isBuffer(g)?"nodebuffer":o.uint8array&&g instanceof Uint8Array?"uint8array":o.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(g){if(!o[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(g){var y,R,m="";for(R=0;R<(g||"").length;R++)m+="\\x"+((y=g.charCodeAt(R))<16?"0":"")+y.toString(16).toUpperCase();return m},i.delay=function(g,y,R){setImmediate(function(){g.apply(R||null,y||[])})},i.inherits=function(g,y){function R(){}R.prototype=y.prototype,g.prototype=new R},i.extend=function(){var g,y,R={};for(g=0;g<arguments.length;g++)for(y in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],y)&&R[y]===void 0&&(R[y]=arguments[g][y]);return R},i.prepareContent=function(g,y,R,m,v){return c.Promise.resolve(y).then(function(x){return o.blob&&(x instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(x))!==-1)&&typeof FileReader!="undefined"?new c.Promise(function(_,E){var N=new FileReader;N.onload=function(U){_(U.target.result)},N.onerror=function(U){E(U.target.error)},N.readAsArrayBuffer(x)}):x}).then(function(x){var _=i.getTypeOf(x);return _?(_==="arraybuffer"?x=i.transformTo("uint8array",x):_==="string"&&(v?x=a.decode(x):R&&m!==!0&&(x=function(E){return l(E,o.uint8array?new Uint8Array(E.length):new Array(E.length))}(x))),x):c.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(n,r,i){var o=n("./reader/readerFor"),a=n("./utils"),s=n("./signature"),c=n("./zipEntry"),u=n("./support");function l(h){this.files=[],this.loadOptions=h}l.prototype={checkSignature:function(h){if(!this.reader.readAndCheckSignature(h)){this.reader.index-=4;var f=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(f)+", expected "+a.pretty(h)+")")}},isSignature:function(h,f){var d=this.reader.index;this.reader.setIndex(h);var p=this.reader.readString(4)===f;return this.reader.setIndex(d),p},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 h=this.reader.readData(this.zipCommentLength),f=u.uint8array?"uint8array":"array",d=a.transformTo(f,h);this.zipComment=this.loadOptions.decodeFileName(d)},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 h,f,d,p=this.zip64EndOfCentralSize-44;0<p;)h=this.reader.readInt(2),f=this.reader.readInt(4),d=this.reader.readData(f),this.zip64ExtensibleData[h]={id:h,length:f,value:d}},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 h,f;for(h=0;h<this.files.length;h++)f=this.files[h],this.reader.setIndex(f.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),f.readLocalPart(this.reader),f.handleUTF8(),f.processAttributes()},readCentralDir:function(){var h;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(h=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(h);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 h=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(h<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(h);var f=h;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(h=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(h),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 d=this.centralDirOffset+this.centralDirSize;this.zip64&&(d+=20,d+=12+this.zip64EndOfCentralSize);var p=f-d;if(0<p)this.isSignature(f,s.CENTRAL_FILE_HEADER)||(this.reader.zero=p);else if(p<0)throw new Error("Corrupted zip: missing "+Math.abs(p)+" bytes.")},prepareReader:function(h){this.reader=o(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var o=n("./reader/readerFor"),a=n("./utils"),s=n("./compressedObject"),c=n("./crc32"),u=n("./utf8"),l=n("./compressions"),h=n("./support");function f(d,p){this.options=d,this.loadOptions=p}f.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(d){var p,g;if(d.skip(22),this.fileNameLength=d.readInt(2),g=d.readInt(2),this.fileName=d.readData(this.fileNameLength),d.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((p=function(y){for(var R in l)if(Object.prototype.hasOwnProperty.call(l,R)&&l[R].magic===y)return l[R];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,p,d.readData(this.compressedSize))},readCentralPart:function(d){this.versionMadeBy=d.readInt(2),d.skip(2),this.bitFlag=d.readInt(2),this.compressionMethod=d.readString(2),this.date=d.readDate(),this.crc32=d.readInt(4),this.compressedSize=d.readInt(4),this.uncompressedSize=d.readInt(4);var p=d.readInt(2);if(this.extraFieldsLength=d.readInt(2),this.fileCommentLength=d.readInt(2),this.diskNumberStart=d.readInt(2),this.internalFileAttributes=d.readInt(2),this.externalFileAttributes=d.readInt(4),this.localHeaderOffset=d.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");d.skip(p),this.readExtraFields(d),this.parseZIP64ExtraField(d),this.fileComment=d.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var d=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),d==0&&(this.dosPermissions=63&this.externalFileAttributes),d==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var d=o(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=d.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=d.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=d.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=d.readInt(4))}},readExtraFields:function(d){var p,g,y,R=d.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});d.index+4<R;)p=d.readInt(2),g=d.readInt(2),y=d.readData(g),this.extraFields[p]={id:p,length:g,value:y};d.setIndex(R)},handleUTF8:function(){var d=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=u.utf8decode(this.fileName),this.fileCommentStr=u.utf8decode(this.fileComment);else{var p=this.findExtraFieldUnicodePath();if(p!==null)this.fileNameStr=p;else{var g=a.transformTo(d,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var y=this.findExtraFieldUnicodeComment();if(y!==null)this.fileCommentStr=y;else{var R=a.transformTo(d,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(R)}}},findExtraFieldUnicodePath:function(){var d=this.extraFields[28789];if(d){var p=o(d.value);return p.readInt(1)!==1||c(this.fileName)!==p.readInt(4)?null:u.utf8decode(p.readData(d.length-5))}return null},findExtraFieldUnicodeComment:function(){var d=this.extraFields[25461];if(d){var p=o(d.value);return p.readInt(1)!==1||c(this.fileComment)!==p.readInt(4)?null:u.utf8decode(p.readData(d.length-5))}return null}},r.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,i){function o(p,g,y){this.name=p,this.dir=y.dir,this.date=y.date,this.comment=y.comment,this.unixPermissions=y.unixPermissions,this.dosPermissions=y.dosPermissions,this._data=g,this._dataBinary=y.binary,this.options={compression:y.compression,compressionOptions:y.compressionOptions}}var a=n("./stream/StreamHelper"),s=n("./stream/DataWorker"),c=n("./utf8"),u=n("./compressedObject"),l=n("./stream/GenericWorker");o.prototype={internalStream:function(p){var g=null,y="string";try{if(!p)throw new Error("No output type specified.");var R=(y=p.toLowerCase())==="string"||y==="text";y!=="binarystring"&&y!=="text"||(y="string"),g=this._decompressWorker();var m=!this._dataBinary;m&&!R&&(g=g.pipe(new c.Utf8EncodeWorker)),!m&&R&&(g=g.pipe(new c.Utf8DecodeWorker))}catch(v){(g=new l("error")).error(v)}return new a(g,y,"")},async:function(p,g){return this.internalStream(p).accumulate(g)},nodeStream:function(p,g){return this.internalStream(p||"nodebuffer").toNodejsStream(g)},_compressWorker:function(p,g){if(this._data instanceof u&&this._data.compression.magic===p.magic)return this._data.getCompressedWorker();var y=this._decompressWorker();return this._dataBinary||(y=y.pipe(new c.Utf8EncodeWorker)),u.createWorkerFrom(y,p,g)},_decompressWorker:function(){return this._data instanceof u?this._data.getContentWorker():this._data instanceof l?this._data:new s(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<h.length;d++)o.prototype[h[d]]=f;r.exports=o},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,i){(function(o){var a,s,c=o.MutationObserver||o.WebKitMutationObserver;if(c){var u=0,l=new c(p),h=o.document.createTextNode("");l.observe(h,{characterData:!0}),a=function(){h.data=u=++u%2}}else if(o.setImmediate||o.MessageChannel===void 0)a="document"in o&&"onreadystatechange"in o.document.createElement("script")?function(){var g=o.document.createElement("script");g.onreadystatechange=function(){p(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},o.document.documentElement.appendChild(g)}:function(){setTimeout(p,0)};else{var f=new o.MessageChannel;f.port1.onmessage=p,a=function(){f.port2.postMessage(0)}}var d=[];function p(){var g,y;s=!0;for(var R=d.length;R;){for(y=d,d=[],g=-1;++g<R;)y[g]();R=d.length}s=!1}r.exports=function(g){d.push(g)!==1||s||a()}}).call(this,typeof Kr!="undefined"?Kr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(n,r,i){var o=n("immediate");function a(){}var s={},c=["REJECTED"],u=["FULFILLED"],l=["PENDING"];function h(R){if(typeof R!="function")throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,R!==a&&g(this,R)}function f(R,m,v){this.promise=R,typeof m=="function"&&(this.onFulfilled=m,this.callFulfilled=this.otherCallFulfilled),typeof v=="function"&&(this.onRejected=v,this.callRejected=this.otherCallRejected)}function d(R,m,v){o(function(){var x;try{x=m(v)}catch(_){return s.reject(R,_)}x===R?s.reject(R,new TypeError("Cannot resolve promise with itself")):s.resolve(R,x)})}function p(R){var m=R&&R.then;if(R&&(typeof R=="object"||typeof R=="function")&&typeof m=="function")return function(){m.apply(R,arguments)}}function g(R,m){var v=!1;function x(N){v||(v=!0,s.reject(R,N))}function _(N){v||(v=!0,s.resolve(R,N))}var E=y(function(){m(_,x)});E.status==="error"&&x(E.value)}function y(R,m){var v={};try{v.value=R(m),v.status="success"}catch(x){v.status="error",v.value=x}return v}(r.exports=h).prototype.finally=function(R){if(typeof R!="function")return this;var m=this.constructor;return this.then(function(v){return m.resolve(R()).then(function(){return v})},function(v){return m.resolve(R()).then(function(){throw v})})},h.prototype.catch=function(R){return this.then(null,R)},h.prototype.then=function(R,m){if(typeof R!="function"&&this.state===u||typeof m!="function"&&this.state===c)return this;var v=new this.constructor(a);return this.state!==l?d(v,this.state===u?R:m,this.outcome):this.queue.push(new f(v,R,m)),v},f.prototype.callFulfilled=function(R){s.resolve(this.promise,R)},f.prototype.otherCallFulfilled=function(R){d(this.promise,this.onFulfilled,R)},f.prototype.callRejected=function(R){s.reject(this.promise,R)},f.prototype.otherCallRejected=function(R){d(this.promise,this.onRejected,R)},s.resolve=function(R,m){var v=y(p,m);if(v.status==="error")return s.reject(R,v.value);var x=v.value;if(x)g(R,x);else{R.state=u,R.outcome=m;for(var _=-1,E=R.queue.length;++_<E;)R.queue[_].callFulfilled(m)}return R},s.reject=function(R,m){R.state=c,R.outcome=m;for(var v=-1,x=R.queue.length;++v<x;)R.queue[v].callRejected(m);return R},h.resolve=function(R){return R instanceof this?R:s.resolve(new this(a),R)},h.reject=function(R){var m=new this(a);return s.reject(m,R)},h.all=function(R){var m=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=R.length,x=!1;if(!v)return this.resolve([]);for(var _=new Array(v),E=0,N=-1,U=new this(a);++N<v;)O(R[N],N);return U;function O(Q,ne){m.resolve(Q).then(function(T){_[ne]=T,++E!==v||x||(x=!0,s.resolve(U,_))},function(T){x||(x=!0,s.reject(U,T))})}},h.race=function(R){var m=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=R.length,x=!1;if(!v)return this.resolve([]);for(var _=-1,E=new this(a);++_<v;)N=R[_],m.resolve(N).then(function(U){x||(x=!0,s.resolve(E,U))},function(U){x||(x=!0,s.reject(E,U))});var N;return E}},{immediate:36}],38:[function(n,r,i){var o={};(0,n("./lib/utils/common").assign)(o,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,i){var o=n("./zlib/deflate"),a=n("./utils/common"),s=n("./utils/strings"),c=n("./zlib/messages"),u=n("./zlib/zstream"),l=Object.prototype.toString,h=0,f=-1,d=0,p=8;function g(R){if(!(this instanceof g))return new g(R);this.options=a.assign({level:f,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},R||{});var m=this.options;m.raw&&0<m.windowBits?m.windowBits=-m.windowBits:m.gzip&&0<m.windowBits&&m.windowBits<16&&(m.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var v=o.deflateInit2(this.strm,m.level,m.method,m.windowBits,m.memLevel,m.strategy);if(v!==h)throw new Error(c[v]);if(m.header&&o.deflateSetHeader(this.strm,m.header),m.dictionary){var x;if(x=typeof m.dictionary=="string"?s.string2buf(m.dictionary):l.call(m.dictionary)==="[object ArrayBuffer]"?new Uint8Array(m.dictionary):m.dictionary,(v=o.deflateSetDictionary(this.strm,x))!==h)throw new Error(c[v]);this._dict_set=!0}}function y(R,m){var v=new g(m);if(v.push(R,!0),v.err)throw v.msg||c[v.err];return v.result}g.prototype.push=function(R,m){var v,x,_=this.strm,E=this.options.chunkSize;if(this.ended)return!1;x=m===~~m?m:m===!0?4:0,typeof R=="string"?_.input=s.string2buf(R):l.call(R)==="[object ArrayBuffer]"?_.input=new Uint8Array(R):_.input=R,_.next_in=0,_.avail_in=_.input.length;do{if(_.avail_out===0&&(_.output=new a.Buf8(E),_.next_out=0,_.avail_out=E),(v=o.deflate(_,x))!==1&&v!==h)return this.onEnd(v),!(this.ended=!0);_.avail_out!==0&&(_.avail_in!==0||x!==4&&x!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(a.shrinkBuf(_.output,_.next_out))):this.onData(a.shrinkBuf(_.output,_.next_out)))}while((0<_.avail_in||_.avail_out===0)&&v!==1);return x===4?(v=o.deflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===h):x!==2||(this.onEnd(h),!(_.avail_out=0))},g.prototype.onData=function(R){this.chunks.push(R)},g.prototype.onEnd=function(R){R===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=R,this.msg=this.strm.msg},i.Deflate=g,i.deflate=y,i.deflateRaw=function(R,m){return(m=m||{}).raw=!0,y(R,m)},i.gzip=function(R,m){return(m=m||{}).gzip=!0,y(R,m)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,i){var o=n("./zlib/inflate"),a=n("./utils/common"),s=n("./utils/strings"),c=n("./zlib/constants"),u=n("./zlib/messages"),l=n("./zlib/zstream"),h=n("./zlib/gzheader"),f=Object.prototype.toString;function d(g){if(!(this instanceof d))return new d(g);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},g||{});var y=this.options;y.raw&&0<=y.windowBits&&y.windowBits<16&&(y.windowBits=-y.windowBits,y.windowBits===0&&(y.windowBits=-15)),!(0<=y.windowBits&&y.windowBits<16)||g&&g.windowBits||(y.windowBits+=32),15<y.windowBits&&y.windowBits<48&&(15&y.windowBits)==0&&(y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var R=o.inflateInit2(this.strm,y.windowBits);if(R!==c.Z_OK)throw new Error(u[R]);this.header=new h,o.inflateGetHeader(this.strm,this.header)}function p(g,y){var R=new d(y);if(R.push(g,!0),R.err)throw R.msg||u[R.err];return R.result}d.prototype.push=function(g,y){var R,m,v,x,_,E,N=this.strm,U=this.options.chunkSize,O=this.options.dictionary,Q=!1;if(this.ended)return!1;m=y===~~y?y:y===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof g=="string"?N.input=s.binstring2buf(g):f.call(g)==="[object ArrayBuffer]"?N.input=new Uint8Array(g):N.input=g,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new a.Buf8(U),N.next_out=0,N.avail_out=U),(R=o.inflate(N,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&O&&(E=typeof O=="string"?s.string2buf(O):f.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,R=o.inflateSetDictionary(this.strm,E)),R===c.Z_BUF_ERROR&&Q===!0&&(R=c.Z_OK,Q=!1),R!==c.Z_STREAM_END&&R!==c.Z_OK)return this.onEnd(R),!(this.ended=!0);N.next_out&&(N.avail_out!==0&&R!==c.Z_STREAM_END&&(N.avail_in!==0||m!==c.Z_FINISH&&m!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(v=s.utf8border(N.output,N.next_out),x=N.next_out-v,_=s.buf2string(N.output,v),N.next_out=x,N.avail_out=U-x,x&&a.arraySet(N.output,N.output,v,x,0),this.onData(_)):this.onData(a.shrinkBuf(N.output,N.next_out)))),N.avail_in===0&&N.avail_out===0&&(Q=!0)}while((0<N.avail_in||N.avail_out===0)&&R!==c.Z_STREAM_END);return R===c.Z_STREAM_END&&(m=c.Z_FINISH),m===c.Z_FINISH?(R=o.inflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===c.Z_OK):m!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(N.avail_out=0))},d.prototype.onData=function(g){this.chunks.push(g)},d.prototype.onEnd=function(g){g===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},i.Inflate=d,i.inflate=p,i.inflateRaw=function(g,y){return(y=y||{}).raw=!0,p(g,y)},i.ungzip=p},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,i){var o=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";i.assign=function(c){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var l=u.shift();if(l){if(typeof l!="object")throw new TypeError(l+"must be non-object");for(var h in l)l.hasOwnProperty(h)&&(c[h]=l[h])}}return c},i.shrinkBuf=function(c,u){return c.length===u?c:c.subarray?c.subarray(0,u):(c.length=u,c)};var a={arraySet:function(c,u,l,h,f){if(u.subarray&&c.subarray)c.set(u.subarray(l,l+h),f);else for(var d=0;d<h;d++)c[f+d]=u[l+d]},flattenChunks:function(c){var u,l,h,f,d,p;for(u=h=0,l=c.length;u<l;u++)h+=c[u].length;for(p=new Uint8Array(h),u=f=0,l=c.length;u<l;u++)d=c[u],p.set(d,f),f+=d.length;return p}},s={arraySet:function(c,u,l,h,f){for(var d=0;d<h;d++)c[f+d]=u[l+d]},flattenChunks:function(c){return[].concat.apply([],c)}};i.setTyped=function(c){c?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,a)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,s))},i.setTyped(o)},{}],42:[function(n,r,i){var o=n("./common"),a=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var c=new o.Buf8(256),u=0;u<256;u++)c[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;function l(h,f){if(f<65537&&(h.subarray&&s||!h.subarray&&a))return String.fromCharCode.apply(null,o.shrinkBuf(h,f));for(var d="",p=0;p<f;p++)d+=String.fromCharCode(h[p]);return d}c[254]=c[254]=1,i.string2buf=function(h){var f,d,p,g,y,R=h.length,m=0;for(g=0;g<R;g++)(64512&(d=h.charCodeAt(g)))==55296&&g+1<R&&(64512&(p=h.charCodeAt(g+1)))==56320&&(d=65536+(d-55296<<10)+(p-56320),g++),m+=d<128?1:d<2048?2:d<65536?3:4;for(f=new o.Buf8(m),g=y=0;y<m;g++)(64512&(d=h.charCodeAt(g)))==55296&&g+1<R&&(64512&(p=h.charCodeAt(g+1)))==56320&&(d=65536+(d-55296<<10)+(p-56320),g++),d<128?f[y++]=d:(d<2048?f[y++]=192|d>>>6:(d<65536?f[y++]=224|d>>>12:(f[y++]=240|d>>>18,f[y++]=128|d>>>12&63),f[y++]=128|d>>>6&63),f[y++]=128|63&d);return f},i.buf2binstring=function(h){return l(h,h.length)},i.binstring2buf=function(h){for(var f=new o.Buf8(h.length),d=0,p=f.length;d<p;d++)f[d]=h.charCodeAt(d);return f},i.buf2string=function(h,f){var d,p,g,y,R=f||h.length,m=new Array(2*R);for(d=p=0;d<R;)if((g=h[d++])<128)m[p++]=g;else if(4<(y=c[g]))m[p++]=65533,d+=y-1;else{for(g&=y===2?31:y===3?15:7;1<y&&d<R;)g=g<<6|63&h[d++],y--;1<y?m[p++]=65533:g<65536?m[p++]=g:(g-=65536,m[p++]=55296|g>>10&1023,m[p++]=56320|1023&g)}return l(m,p)},i.utf8border=function(h,f){var d;for((f=f||h.length)>h.length&&(f=h.length),d=f-1;0<=d&&(192&h[d])==128;)d--;return d<0||d===0?f:d+c[h[d]]>f?d:f}},{"./common":41}],43:[function(n,r,i){r.exports=function(o,a,s,c){for(var u=65535&o|0,l=o>>>16&65535|0,h=0;s!==0;){for(s-=h=2e3<s?2e3:s;l=l+(u=u+a[c++]|0)|0,--h;);u%=65521,l%=65521}return u|l<<16|0}},{}],44:[function(n,r,i){r.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(n,r,i){var o=function(){for(var a,s=[],c=0;c<256;c++){a=c;for(var u=0;u<8;u++)a=1&a?3988292384^a>>>1:a>>>1;s[c]=a}return s}();r.exports=function(a,s,c,u){var l=o,h=u+c;a^=-1;for(var f=u;f<h;f++)a=a>>>8^l[255&(a^s[f])];return-1^a}},{}],46:[function(n,r,i){var o,a=n("../utils/common"),s=n("./trees"),c=n("./adler32"),u=n("./crc32"),l=n("./messages"),h=0,f=4,d=0,p=-2,g=-1,y=4,R=2,m=8,v=9,x=286,_=30,E=19,N=2*x+1,U=15,O=3,Q=258,ne=Q+O+1,T=42,I=113,b=1,M=2,C=3,F=4;function A(D,oe){return D.msg=l[oe],oe}function B(D){return(D<<1)-(4<D?9:0)}function $(D){for(var oe=D.length;0<=--oe;)D[oe]=0}function V(D){var oe=D.state,W=oe.pending;W>D.avail_out&&(W=D.avail_out),W!==0&&(a.arraySet(D.output,oe.pending_buf,oe.pending_out,W,D.next_out),D.next_out+=W,oe.pending_out+=W,D.total_out+=W,D.avail_out-=W,oe.pending-=W,oe.pending===0&&(oe.pending_out=0))}function L(D,oe){s._tr_flush_block(D,0<=D.block_start?D.block_start:-1,D.strstart-D.block_start,oe),D.block_start=D.strstart,V(D.strm)}function z(D,oe){D.pending_buf[D.pending++]=oe}function q(D,oe){D.pending_buf[D.pending++]=oe>>>8&255,D.pending_buf[D.pending++]=255&oe}function se(D,oe){var W,w,S=D.max_chain_length,P=D.strstart,J=D.prev_length,ie=D.nice_match,K=D.strstart>D.w_size-ne?D.strstart-(D.w_size-ne):0,j=D.window,re=D.w_mask,ce=D.prev,he=D.strstart+Q,ve=j[P+J-1],_e=j[P+J];D.prev_length>=D.good_match&&(S>>=2),ie>D.lookahead&&(ie=D.lookahead);do if(j[(W=oe)+J]===_e&&j[W+J-1]===ve&&j[W]===j[P]&&j[++W]===j[P+1]){P+=2,W++;do;while(j[++P]===j[++W]&&j[++P]===j[++W]&&j[++P]===j[++W]&&j[++P]===j[++W]&&j[++P]===j[++W]&&j[++P]===j[++W]&&j[++P]===j[++W]&&j[++P]===j[++W]&&P<he);if(w=Q-(he-P),P=he-Q,J<w){if(D.match_start=oe,ie<=(J=w))break;ve=j[P+J-1],_e=j[P+J]}}while((oe=ce[oe&re])>K&&--S!=0);return J<=D.lookahead?J:D.lookahead}function ae(D){var oe,W,w,S,P,J,ie,K,j,re,ce=D.w_size;do{if(S=D.window_size-D.lookahead-D.strstart,D.strstart>=ce+(ce-ne)){for(a.arraySet(D.window,D.window,ce,ce,0),D.match_start-=ce,D.strstart-=ce,D.block_start-=ce,oe=W=D.hash_size;w=D.head[--oe],D.head[oe]=ce<=w?w-ce:0,--W;);for(oe=W=ce;w=D.prev[--oe],D.prev[oe]=ce<=w?w-ce:0,--W;);S+=ce}if(D.strm.avail_in===0)break;if(J=D.strm,ie=D.window,K=D.strstart+D.lookahead,j=S,re=void 0,re=J.avail_in,j<re&&(re=j),W=re===0?0:(J.avail_in-=re,a.arraySet(ie,J.input,J.next_in,re,K),J.state.wrap===1?J.adler=c(J.adler,ie,re,K):J.state.wrap===2&&(J.adler=u(J.adler,ie,re,K)),J.next_in+=re,J.total_in+=re,re),D.lookahead+=W,D.lookahead+D.insert>=O)for(P=D.strstart-D.insert,D.ins_h=D.window[P],D.ins_h=(D.ins_h<<D.hash_shift^D.window[P+1])&D.hash_mask;D.insert&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[P+O-1])&D.hash_mask,D.prev[P&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=P,P++,D.insert--,!(D.lookahead+D.insert<O)););}while(D.lookahead<ne&&D.strm.avail_in!==0)}function Y(D,oe){for(var W,w;;){if(D.lookahead<ne){if(ae(D),D.lookahead<ne&&oe===h)return b;if(D.lookahead===0)break}if(W=0,D.lookahead>=O&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+O-1])&D.hash_mask,W=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart),W!==0&&D.strstart-W<=D.w_size-ne&&(D.match_length=se(D,W)),D.match_length>=O)if(w=s._tr_tally(D,D.strstart-D.match_start,D.match_length-O),D.lookahead-=D.match_length,D.match_length<=D.max_lazy_match&&D.lookahead>=O){for(D.match_length--;D.strstart++,D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+O-1])&D.hash_mask,W=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart,--D.match_length!=0;);D.strstart++}else D.strstart+=D.match_length,D.match_length=0,D.ins_h=D.window[D.strstart],D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+1])&D.hash_mask;else w=s._tr_tally(D,0,D.window[D.strstart]),D.lookahead--,D.strstart++;if(w&&(L(D,!1),D.strm.avail_out===0))return b}return D.insert=D.strstart<O-1?D.strstart:O-1,oe===f?(L(D,!0),D.strm.avail_out===0?C:F):D.last_lit&&(L(D,!1),D.strm.avail_out===0)?b:M}function X(D,oe){for(var W,w,S;;){if(D.lookahead<ne){if(ae(D),D.lookahead<ne&&oe===h)return b;if(D.lookahead===0)break}if(W=0,D.lookahead>=O&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+O-1])&D.hash_mask,W=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart),D.prev_length=D.match_length,D.prev_match=D.match_start,D.match_length=O-1,W!==0&&D.prev_length<D.max_lazy_match&&D.strstart-W<=D.w_size-ne&&(D.match_length=se(D,W),D.match_length<=5&&(D.strategy===1||D.match_length===O&&4096<D.strstart-D.match_start)&&(D.match_length=O-1)),D.prev_length>=O&&D.match_length<=D.prev_length){for(S=D.strstart+D.lookahead-O,w=s._tr_tally(D,D.strstart-1-D.prev_match,D.prev_length-O),D.lookahead-=D.prev_length-1,D.prev_length-=2;++D.strstart<=S&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+O-1])&D.hash_mask,W=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart),--D.prev_length!=0;);if(D.match_available=0,D.match_length=O-1,D.strstart++,w&&(L(D,!1),D.strm.avail_out===0))return b}else if(D.match_available){if((w=s._tr_tally(D,0,D.window[D.strstart-1]))&&L(D,!1),D.strstart++,D.lookahead--,D.strm.avail_out===0)return b}else D.match_available=1,D.strstart++,D.lookahead--}return D.match_available&&(w=s._tr_tally(D,0,D.window[D.strstart-1]),D.match_available=0),D.insert=D.strstart<O-1?D.strstart:O-1,oe===f?(L(D,!0),D.strm.avail_out===0?C:F):D.last_lit&&(L(D,!1),D.strm.avail_out===0)?b:M}function k(D,oe,W,w,S){this.good_length=D,this.max_lazy=oe,this.nice_length=W,this.max_chain=w,this.func=S}function G(){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=m,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 a.Buf16(2*N),this.dyn_dtree=new a.Buf16(2*(2*_+1)),this.bl_tree=new a.Buf16(2*(2*E+1)),$(this.dyn_ltree),$(this.dyn_dtree),$(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(U+1),this.heap=new a.Buf16(2*x+1),$(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*x+1),$(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 H(D){var oe;return D&&D.state?(D.total_in=D.total_out=0,D.data_type=R,(oe=D.state).pending=0,oe.pending_out=0,oe.wrap<0&&(oe.wrap=-oe.wrap),oe.status=oe.wrap?T:I,D.adler=oe.wrap===2?0:1,oe.last_flush=h,s._tr_init(oe),d):A(D,p)}function te(D){var oe=H(D);return oe===d&&function(W){W.window_size=2*W.w_size,$(W.head),W.max_lazy_match=o[W.level].max_lazy,W.good_match=o[W.level].good_length,W.nice_match=o[W.level].nice_length,W.max_chain_length=o[W.level].max_chain,W.strstart=0,W.block_start=0,W.lookahead=0,W.insert=0,W.match_length=W.prev_length=O-1,W.match_available=0,W.ins_h=0}(D.state),oe}function pe(D,oe,W,w,S,P){if(!D)return p;var J=1;if(oe===g&&(oe=6),w<0?(J=0,w=-w):15<w&&(J=2,w-=16),S<1||v<S||W!==m||w<8||15<w||oe<0||9<oe||P<0||y<P)return A(D,p);w===8&&(w=9);var ie=new G;return(D.state=ie).strm=D,ie.wrap=J,ie.gzhead=null,ie.w_bits=w,ie.w_size=1<<ie.w_bits,ie.w_mask=ie.w_size-1,ie.hash_bits=S+7,ie.hash_size=1<<ie.hash_bits,ie.hash_mask=ie.hash_size-1,ie.hash_shift=~~((ie.hash_bits+O-1)/O),ie.window=new a.Buf8(2*ie.w_size),ie.head=new a.Buf16(ie.hash_size),ie.prev=new a.Buf16(ie.w_size),ie.lit_bufsize=1<<S+6,ie.pending_buf_size=4*ie.lit_bufsize,ie.pending_buf=new a.Buf8(ie.pending_buf_size),ie.d_buf=1*ie.lit_bufsize,ie.l_buf=3*ie.lit_bufsize,ie.level=oe,ie.strategy=P,ie.method=W,te(D)}o=[new k(0,0,0,0,function(D,oe){var W=65535;for(W>D.pending_buf_size-5&&(W=D.pending_buf_size-5);;){if(D.lookahead<=1){if(ae(D),D.lookahead===0&&oe===h)return b;if(D.lookahead===0)break}D.strstart+=D.lookahead,D.lookahead=0;var w=D.block_start+W;if((D.strstart===0||D.strstart>=w)&&(D.lookahead=D.strstart-w,D.strstart=w,L(D,!1),D.strm.avail_out===0)||D.strstart-D.block_start>=D.w_size-ne&&(L(D,!1),D.strm.avail_out===0))return b}return D.insert=0,oe===f?(L(D,!0),D.strm.avail_out===0?C:F):(D.strstart>D.block_start&&(L(D,!1),D.strm.avail_out),b)}),new k(4,4,8,4,Y),new k(4,5,16,8,Y),new k(4,6,32,32,Y),new k(4,4,16,16,X),new k(8,16,32,32,X),new k(8,16,128,128,X),new k(8,32,128,256,X),new k(32,128,258,1024,X),new k(32,258,258,4096,X)],i.deflateInit=function(D,oe){return pe(D,oe,m,15,8,0)},i.deflateInit2=pe,i.deflateReset=te,i.deflateResetKeep=H,i.deflateSetHeader=function(D,oe){return D&&D.state?D.state.wrap!==2?p:(D.state.gzhead=oe,d):p},i.deflate=function(D,oe){var W,w,S,P;if(!D||!D.state||5<oe||oe<0)return D?A(D,p):p;if(w=D.state,!D.output||!D.input&&D.avail_in!==0||w.status===666&&oe!==f)return A(D,D.avail_out===0?-5:p);if(w.strm=D,W=w.last_flush,w.last_flush=oe,w.status===T)if(w.wrap===2)D.adler=0,z(w,31),z(w,139),z(w,8),w.gzhead?(z(w,(w.gzhead.text?1:0)+(w.gzhead.hcrc?2:0)+(w.gzhead.extra?4:0)+(w.gzhead.name?8:0)+(w.gzhead.comment?16:0)),z(w,255&w.gzhead.time),z(w,w.gzhead.time>>8&255),z(w,w.gzhead.time>>16&255),z(w,w.gzhead.time>>24&255),z(w,w.level===9?2:2<=w.strategy||w.level<2?4:0),z(w,255&w.gzhead.os),w.gzhead.extra&&w.gzhead.extra.length&&(z(w,255&w.gzhead.extra.length),z(w,w.gzhead.extra.length>>8&255)),w.gzhead.hcrc&&(D.adler=u(D.adler,w.pending_buf,w.pending,0)),w.gzindex=0,w.status=69):(z(w,0),z(w,0),z(w,0),z(w,0),z(w,0),z(w,w.level===9?2:2<=w.strategy||w.level<2?4:0),z(w,3),w.status=I);else{var J=m+(w.w_bits-8<<4)<<8;J|=(2<=w.strategy||w.level<2?0:w.level<6?1:w.level===6?2:3)<<6,w.strstart!==0&&(J|=32),J+=31-J%31,w.status=I,q(w,J),w.strstart!==0&&(q(w,D.adler>>>16),q(w,65535&D.adler)),D.adler=1}if(w.status===69)if(w.gzhead.extra){for(S=w.pending;w.gzindex<(65535&w.gzhead.extra.length)&&(w.pending!==w.pending_buf_size||(w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),V(D),S=w.pending,w.pending!==w.pending_buf_size));)z(w,255&w.gzhead.extra[w.gzindex]),w.gzindex++;w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),w.gzindex===w.gzhead.extra.length&&(w.gzindex=0,w.status=73)}else w.status=73;if(w.status===73)if(w.gzhead.name){S=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),V(D),S=w.pending,w.pending===w.pending_buf_size)){P=1;break}P=w.gzindex<w.gzhead.name.length?255&w.gzhead.name.charCodeAt(w.gzindex++):0,z(w,P)}while(P!==0);w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),P===0&&(w.gzindex=0,w.status=91)}else w.status=91;if(w.status===91)if(w.gzhead.comment){S=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),V(D),S=w.pending,w.pending===w.pending_buf_size)){P=1;break}P=w.gzindex<w.gzhead.comment.length?255&w.gzhead.comment.charCodeAt(w.gzindex++):0,z(w,P)}while(P!==0);w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),P===0&&(w.status=103)}else w.status=103;if(w.status===103&&(w.gzhead.hcrc?(w.pending+2>w.pending_buf_size&&V(D),w.pending+2<=w.pending_buf_size&&(z(w,255&D.adler),z(w,D.adler>>8&255),D.adler=0,w.status=I)):w.status=I),w.pending!==0){if(V(D),D.avail_out===0)return w.last_flush=-1,d}else if(D.avail_in===0&&B(oe)<=B(W)&&oe!==f)return A(D,-5);if(w.status===666&&D.avail_in!==0)return A(D,-5);if(D.avail_in!==0||w.lookahead!==0||oe!==h&&w.status!==666){var ie=w.strategy===2?function(K,j){for(var re;;){if(K.lookahead===0&&(ae(K),K.lookahead===0)){if(j===h)return b;break}if(K.match_length=0,re=s._tr_tally(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++,re&&(L(K,!1),K.strm.avail_out===0))return b}return K.insert=0,j===f?(L(K,!0),K.strm.avail_out===0?C:F):K.last_lit&&(L(K,!1),K.strm.avail_out===0)?b:M}(w,oe):w.strategy===3?function(K,j){for(var re,ce,he,ve,_e=K.window;;){if(K.lookahead<=Q){if(ae(K),K.lookahead<=Q&&j===h)return b;if(K.lookahead===0)break}if(K.match_length=0,K.lookahead>=O&&0<K.strstart&&(ce=_e[he=K.strstart-1])===_e[++he]&&ce===_e[++he]&&ce===_e[++he]){ve=K.strstart+Q;do;while(ce===_e[++he]&&ce===_e[++he]&&ce===_e[++he]&&ce===_e[++he]&&ce===_e[++he]&&ce===_e[++he]&&ce===_e[++he]&&ce===_e[++he]&&he<ve);K.match_length=Q-(ve-he),K.match_length>K.lookahead&&(K.match_length=K.lookahead)}if(K.match_length>=O?(re=s._tr_tally(K,1,K.match_length-O),K.lookahead-=K.match_length,K.strstart+=K.match_length,K.match_length=0):(re=s._tr_tally(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++),re&&(L(K,!1),K.strm.avail_out===0))return b}return K.insert=0,j===f?(L(K,!0),K.strm.avail_out===0?C:F):K.last_lit&&(L(K,!1),K.strm.avail_out===0)?b:M}(w,oe):o[w.level].func(w,oe);if(ie!==C&&ie!==F||(w.status=666),ie===b||ie===C)return D.avail_out===0&&(w.last_flush=-1),d;if(ie===M&&(oe===1?s._tr_align(w):oe!==5&&(s._tr_stored_block(w,0,0,!1),oe===3&&($(w.head),w.lookahead===0&&(w.strstart=0,w.block_start=0,w.insert=0))),V(D),D.avail_out===0))return w.last_flush=-1,d}return oe!==f?d:w.wrap<=0?1:(w.wrap===2?(z(w,255&D.adler),z(w,D.adler>>8&255),z(w,D.adler>>16&255),z(w,D.adler>>24&255),z(w,255&D.total_in),z(w,D.total_in>>8&255),z(w,D.total_in>>16&255),z(w,D.total_in>>24&255)):(q(w,D.adler>>>16),q(w,65535&D.adler)),V(D),0<w.wrap&&(w.wrap=-w.wrap),w.pending!==0?d:1)},i.deflateEnd=function(D){var oe;return D&&D.state?(oe=D.state.status)!==T&&oe!==69&&oe!==73&&oe!==91&&oe!==103&&oe!==I&&oe!==666?A(D,p):(D.state=null,oe===I?A(D,-3):d):p},i.deflateSetDictionary=function(D,oe){var W,w,S,P,J,ie,K,j,re=oe.length;if(!D||!D.state||(P=(W=D.state).wrap)===2||P===1&&W.status!==T||W.lookahead)return p;for(P===1&&(D.adler=c(D.adler,oe,re,0)),W.wrap=0,re>=W.w_size&&(P===0&&($(W.head),W.strstart=0,W.block_start=0,W.insert=0),j=new a.Buf8(W.w_size),a.arraySet(j,oe,re-W.w_size,W.w_size,0),oe=j,re=W.w_size),J=D.avail_in,ie=D.next_in,K=D.input,D.avail_in=re,D.next_in=0,D.input=oe,ae(W);W.lookahead>=O;){for(w=W.strstart,S=W.lookahead-(O-1);W.ins_h=(W.ins_h<<W.hash_shift^W.window[w+O-1])&W.hash_mask,W.prev[w&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=w,w++,--S;);W.strstart=w,W.lookahead=O-1,ae(W)}return W.strstart+=W.lookahead,W.block_start=W.strstart,W.insert=W.lookahead,W.lookahead=0,W.match_length=W.prev_length=O-1,W.match_available=0,D.next_in=ie,D.input=K,D.avail_in=J,W.wrap=P,d},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,i){r.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(n,r,i){r.exports=function(o,a){var s,c,u,l,h,f,d,p,g,y,R,m,v,x,_,E,N,U,O,Q,ne,T,I,b,M;s=o.state,c=o.next_in,b=o.input,u=c+(o.avail_in-5),l=o.next_out,M=o.output,h=l-(a-o.avail_out),f=l+(o.avail_out-257),d=s.dmax,p=s.wsize,g=s.whave,y=s.wnext,R=s.window,m=s.hold,v=s.bits,x=s.lencode,_=s.distcode,E=(1<<s.lenbits)-1,N=(1<<s.distbits)-1;e:do{v<15&&(m+=b[c++]<<v,v+=8,m+=b[c++]<<v,v+=8),U=x[m&E];t:for(;;){if(m>>>=O=U>>>24,v-=O,(O=U>>>16&255)===0)M[l++]=65535&U;else{if(!(16&O)){if((64&O)==0){U=x[(65535&U)+(m&(1<<O)-1)];continue t}if(32&O){s.mode=12;break e}o.msg="invalid literal/length code",s.mode=30;break e}Q=65535&U,(O&=15)&&(v<O&&(m+=b[c++]<<v,v+=8),Q+=m&(1<<O)-1,m>>>=O,v-=O),v<15&&(m+=b[c++]<<v,v+=8,m+=b[c++]<<v,v+=8),U=_[m&N];n:for(;;){if(m>>>=O=U>>>24,v-=O,!(16&(O=U>>>16&255))){if((64&O)==0){U=_[(65535&U)+(m&(1<<O)-1)];continue n}o.msg="invalid distance code",s.mode=30;break e}if(ne=65535&U,v<(O&=15)&&(m+=b[c++]<<v,(v+=8)<O&&(m+=b[c++]<<v,v+=8)),d<(ne+=m&(1<<O)-1)){o.msg="invalid distance too far back",s.mode=30;break e}if(m>>>=O,v-=O,(O=l-h)<ne){if(g<(O=ne-O)&&s.sane){o.msg="invalid distance too far back",s.mode=30;break e}if(I=R,(T=0)===y){if(T+=p-O,O<Q){for(Q-=O;M[l++]=R[T++],--O;);T=l-ne,I=M}}else if(y<O){if(T+=p+y-O,(O-=y)<Q){for(Q-=O;M[l++]=R[T++],--O;);if(T=0,y<Q){for(Q-=O=y;M[l++]=R[T++],--O;);T=l-ne,I=M}}}else if(T+=y-O,O<Q){for(Q-=O;M[l++]=R[T++],--O;);T=l-ne,I=M}for(;2<Q;)M[l++]=I[T++],M[l++]=I[T++],M[l++]=I[T++],Q-=3;Q&&(M[l++]=I[T++],1<Q&&(M[l++]=I[T++]))}else{for(T=l-ne;M[l++]=M[T++],M[l++]=M[T++],M[l++]=M[T++],2<(Q-=3););Q&&(M[l++]=M[T++],1<Q&&(M[l++]=M[T++]))}break}}break}}while(c<u&&l<f);c-=Q=v>>3,m&=(1<<(v-=Q<<3))-1,o.next_in=c,o.next_out=l,o.avail_in=c<u?u-c+5:5-(c-u),o.avail_out=l<f?f-l+257:257-(l-f),s.hold=m,s.bits=v}},{}],49:[function(n,r,i){var o=n("../utils/common"),a=n("./adler32"),s=n("./crc32"),c=n("./inffast"),u=n("./inftrees"),l=1,h=2,f=0,d=-2,p=1,g=852,y=592;function R(T){return(T>>>24&255)+(T>>>8&65280)+((65280&T)<<8)+((255&T)<<24)}function m(){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 o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(T){var I;return T&&T.state?(I=T.state,T.total_in=T.total_out=I.total=0,T.msg="",I.wrap&&(T.adler=1&I.wrap),I.mode=p,I.last=0,I.havedict=0,I.dmax=32768,I.head=null,I.hold=0,I.bits=0,I.lencode=I.lendyn=new o.Buf32(g),I.distcode=I.distdyn=new o.Buf32(y),I.sane=1,I.back=-1,f):d}function x(T){var I;return T&&T.state?((I=T.state).wsize=0,I.whave=0,I.wnext=0,v(T)):d}function _(T,I){var b,M;return T&&T.state?(M=T.state,I<0?(b=0,I=-I):(b=1+(I>>4),I<48&&(I&=15)),I&&(I<8||15<I)?d:(M.window!==null&&M.wbits!==I&&(M.window=null),M.wrap=b,M.wbits=I,x(T))):d}function E(T,I){var b,M;return T?(M=new m,(T.state=M).window=null,(b=_(T,I))!==f&&(T.state=null),b):d}var N,U,O=!0;function Q(T){if(O){var I;for(N=new o.Buf32(512),U=new o.Buf32(32),I=0;I<144;)T.lens[I++]=8;for(;I<256;)T.lens[I++]=9;for(;I<280;)T.lens[I++]=7;for(;I<288;)T.lens[I++]=8;for(u(l,T.lens,0,288,N,0,T.work,{bits:9}),I=0;I<32;)T.lens[I++]=5;u(h,T.lens,0,32,U,0,T.work,{bits:5}),O=!1}T.lencode=N,T.lenbits=9,T.distcode=U,T.distbits=5}function ne(T,I,b,M){var C,F=T.state;return F.window===null&&(F.wsize=1<<F.wbits,F.wnext=0,F.whave=0,F.window=new o.Buf8(F.wsize)),M>=F.wsize?(o.arraySet(F.window,I,b-F.wsize,F.wsize,0),F.wnext=0,F.whave=F.wsize):(M<(C=F.wsize-F.wnext)&&(C=M),o.arraySet(F.window,I,b-M,C,F.wnext),(M-=C)?(o.arraySet(F.window,I,b-M,M,0),F.wnext=M,F.whave=F.wsize):(F.wnext+=C,F.wnext===F.wsize&&(F.wnext=0),F.whave<F.wsize&&(F.whave+=C))),0}i.inflateReset=x,i.inflateReset2=_,i.inflateResetKeep=v,i.inflateInit=function(T){return E(T,15)},i.inflateInit2=E,i.inflate=function(T,I){var b,M,C,F,A,B,$,V,L,z,q,se,ae,Y,X,k,G,H,te,pe,D,oe,W,w,S=0,P=new o.Buf8(4),J=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!T||!T.state||!T.output||!T.input&&T.avail_in!==0)return d;(b=T.state).mode===12&&(b.mode=13),A=T.next_out,C=T.output,$=T.avail_out,F=T.next_in,M=T.input,B=T.avail_in,V=b.hold,L=b.bits,z=B,q=$,oe=f;e:for(;;)switch(b.mode){case p:if(b.wrap===0){b.mode=13;break}for(;L<16;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if(2&b.wrap&&V===35615){P[b.check=0]=255&V,P[1]=V>>>8&255,b.check=s(b.check,P,2,0),L=V=0,b.mode=2;break}if(b.flags=0,b.head&&(b.head.done=!1),!(1&b.wrap)||(((255&V)<<8)+(V>>8))%31){T.msg="incorrect header check",b.mode=30;break}if((15&V)!=8){T.msg="unknown compression method",b.mode=30;break}if(L-=4,D=8+(15&(V>>>=4)),b.wbits===0)b.wbits=D;else if(D>b.wbits){T.msg="invalid window size",b.mode=30;break}b.dmax=1<<D,T.adler=b.check=1,b.mode=512&V?10:12,L=V=0;break;case 2:for(;L<16;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if(b.flags=V,(255&b.flags)!=8){T.msg="unknown compression method",b.mode=30;break}if(57344&b.flags){T.msg="unknown header flags set",b.mode=30;break}b.head&&(b.head.text=V>>8&1),512&b.flags&&(P[0]=255&V,P[1]=V>>>8&255,b.check=s(b.check,P,2,0)),L=V=0,b.mode=3;case 3:for(;L<32;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}b.head&&(b.head.time=V),512&b.flags&&(P[0]=255&V,P[1]=V>>>8&255,P[2]=V>>>16&255,P[3]=V>>>24&255,b.check=s(b.check,P,4,0)),L=V=0,b.mode=4;case 4:for(;L<16;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}b.head&&(b.head.xflags=255&V,b.head.os=V>>8),512&b.flags&&(P[0]=255&V,P[1]=V>>>8&255,b.check=s(b.check,P,2,0)),L=V=0,b.mode=5;case 5:if(1024&b.flags){for(;L<16;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}b.length=V,b.head&&(b.head.extra_len=V),512&b.flags&&(P[0]=255&V,P[1]=V>>>8&255,b.check=s(b.check,P,2,0)),L=V=0}else b.head&&(b.head.extra=null);b.mode=6;case 6:if(1024&b.flags&&(B<(se=b.length)&&(se=B),se&&(b.head&&(D=b.head.extra_len-b.length,b.head.extra||(b.head.extra=new Array(b.head.extra_len)),o.arraySet(b.head.extra,M,F,se,D)),512&b.flags&&(b.check=s(b.check,M,se,F)),B-=se,F+=se,b.length-=se),b.length))break e;b.length=0,b.mode=7;case 7:if(2048&b.flags){if(B===0)break e;for(se=0;D=M[F+se++],b.head&&D&&b.length<65536&&(b.head.name+=String.fromCharCode(D)),D&&se<B;);if(512&b.flags&&(b.check=s(b.check,M,se,F)),B-=se,F+=se,D)break e}else b.head&&(b.head.name=null);b.length=0,b.mode=8;case 8:if(4096&b.flags){if(B===0)break e;for(se=0;D=M[F+se++],b.head&&D&&b.length<65536&&(b.head.comment+=String.fromCharCode(D)),D&&se<B;);if(512&b.flags&&(b.check=s(b.check,M,se,F)),B-=se,F+=se,D)break e}else b.head&&(b.head.comment=null);b.mode=9;case 9:if(512&b.flags){for(;L<16;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if(V!==(65535&b.check)){T.msg="header crc mismatch",b.mode=30;break}L=V=0}b.head&&(b.head.hcrc=b.flags>>9&1,b.head.done=!0),T.adler=b.check=0,b.mode=12;break;case 10:for(;L<32;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}T.adler=b.check=R(V),L=V=0,b.mode=11;case 11:if(b.havedict===0)return T.next_out=A,T.avail_out=$,T.next_in=F,T.avail_in=B,b.hold=V,b.bits=L,2;T.adler=b.check=1,b.mode=12;case 12:if(I===5||I===6)break e;case 13:if(b.last){V>>>=7&L,L-=7&L,b.mode=27;break}for(;L<3;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}switch(b.last=1&V,L-=1,3&(V>>>=1)){case 0:b.mode=14;break;case 1:if(Q(b),b.mode=20,I!==6)break;V>>>=2,L-=2;break e;case 2:b.mode=17;break;case 3:T.msg="invalid block type",b.mode=30}V>>>=2,L-=2;break;case 14:for(V>>>=7&L,L-=7&L;L<32;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if((65535&V)!=(V>>>16^65535)){T.msg="invalid stored block lengths",b.mode=30;break}if(b.length=65535&V,L=V=0,b.mode=15,I===6)break e;case 15:b.mode=16;case 16:if(se=b.length){if(B<se&&(se=B),$<se&&(se=$),se===0)break e;o.arraySet(C,M,F,se,A),B-=se,F+=se,$-=se,A+=se,b.length-=se;break}b.mode=12;break;case 17:for(;L<14;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if(b.nlen=257+(31&V),V>>>=5,L-=5,b.ndist=1+(31&V),V>>>=5,L-=5,b.ncode=4+(15&V),V>>>=4,L-=4,286<b.nlen||30<b.ndist){T.msg="too many length or distance symbols",b.mode=30;break}b.have=0,b.mode=18;case 18:for(;b.have<b.ncode;){for(;L<3;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}b.lens[J[b.have++]]=7&V,V>>>=3,L-=3}for(;b.have<19;)b.lens[J[b.have++]]=0;if(b.lencode=b.lendyn,b.lenbits=7,W={bits:b.lenbits},oe=u(0,b.lens,0,19,b.lencode,0,b.work,W),b.lenbits=W.bits,oe){T.msg="invalid code lengths set",b.mode=30;break}b.have=0,b.mode=19;case 19:for(;b.have<b.nlen+b.ndist;){for(;k=(S=b.lencode[V&(1<<b.lenbits)-1])>>>16&255,G=65535&S,!((X=S>>>24)<=L);){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if(G<16)V>>>=X,L-=X,b.lens[b.have++]=G;else{if(G===16){for(w=X+2;L<w;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if(V>>>=X,L-=X,b.have===0){T.msg="invalid bit length repeat",b.mode=30;break}D=b.lens[b.have-1],se=3+(3&V),V>>>=2,L-=2}else if(G===17){for(w=X+3;L<w;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}L-=X,D=0,se=3+(7&(V>>>=X)),V>>>=3,L-=3}else{for(w=X+7;L<w;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}L-=X,D=0,se=11+(127&(V>>>=X)),V>>>=7,L-=7}if(b.have+se>b.nlen+b.ndist){T.msg="invalid bit length repeat",b.mode=30;break}for(;se--;)b.lens[b.have++]=D}}if(b.mode===30)break;if(b.lens[256]===0){T.msg="invalid code -- missing end-of-block",b.mode=30;break}if(b.lenbits=9,W={bits:b.lenbits},oe=u(l,b.lens,0,b.nlen,b.lencode,0,b.work,W),b.lenbits=W.bits,oe){T.msg="invalid literal/lengths set",b.mode=30;break}if(b.distbits=6,b.distcode=b.distdyn,W={bits:b.distbits},oe=u(h,b.lens,b.nlen,b.ndist,b.distcode,0,b.work,W),b.distbits=W.bits,oe){T.msg="invalid distances set",b.mode=30;break}if(b.mode=20,I===6)break e;case 20:b.mode=21;case 21:if(6<=B&&258<=$){T.next_out=A,T.avail_out=$,T.next_in=F,T.avail_in=B,b.hold=V,b.bits=L,c(T,q),A=T.next_out,C=T.output,$=T.avail_out,F=T.next_in,M=T.input,B=T.avail_in,V=b.hold,L=b.bits,b.mode===12&&(b.back=-1);break}for(b.back=0;k=(S=b.lencode[V&(1<<b.lenbits)-1])>>>16&255,G=65535&S,!((X=S>>>24)<=L);){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if(k&&(240&k)==0){for(H=X,te=k,pe=G;k=(S=b.lencode[pe+((V&(1<<H+te)-1)>>H)])>>>16&255,G=65535&S,!(H+(X=S>>>24)<=L);){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}V>>>=H,L-=H,b.back+=H}if(V>>>=X,L-=X,b.back+=X,b.length=G,k===0){b.mode=26;break}if(32&k){b.back=-1,b.mode=12;break}if(64&k){T.msg="invalid literal/length code",b.mode=30;break}b.extra=15&k,b.mode=22;case 22:if(b.extra){for(w=b.extra;L<w;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}b.length+=V&(1<<b.extra)-1,V>>>=b.extra,L-=b.extra,b.back+=b.extra}b.was=b.length,b.mode=23;case 23:for(;k=(S=b.distcode[V&(1<<b.distbits)-1])>>>16&255,G=65535&S,!((X=S>>>24)<=L);){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if((240&k)==0){for(H=X,te=k,pe=G;k=(S=b.distcode[pe+((V&(1<<H+te)-1)>>H)])>>>16&255,G=65535&S,!(H+(X=S>>>24)<=L);){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}V>>>=H,L-=H,b.back+=H}if(V>>>=X,L-=X,b.back+=X,64&k){T.msg="invalid distance code",b.mode=30;break}b.offset=G,b.extra=15&k,b.mode=24;case 24:if(b.extra){for(w=b.extra;L<w;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}b.offset+=V&(1<<b.extra)-1,V>>>=b.extra,L-=b.extra,b.back+=b.extra}if(b.offset>b.dmax){T.msg="invalid distance too far back",b.mode=30;break}b.mode=25;case 25:if($===0)break e;if(se=q-$,b.offset>se){if((se=b.offset-se)>b.whave&&b.sane){T.msg="invalid distance too far back",b.mode=30;break}ae=se>b.wnext?(se-=b.wnext,b.wsize-se):b.wnext-se,se>b.length&&(se=b.length),Y=b.window}else Y=C,ae=A-b.offset,se=b.length;for($<se&&(se=$),$-=se,b.length-=se;C[A++]=Y[ae++],--se;);b.length===0&&(b.mode=21);break;case 26:if($===0)break e;C[A++]=b.length,$--,b.mode=21;break;case 27:if(b.wrap){for(;L<32;){if(B===0)break e;B--,V|=M[F++]<<L,L+=8}if(q-=$,T.total_out+=q,b.total+=q,q&&(T.adler=b.check=b.flags?s(b.check,C,q,A-q):a(b.check,C,q,A-q)),q=$,(b.flags?V:R(V))!==b.check){T.msg="incorrect data check",b.mode=30;break}L=V=0}b.mode=28;case 28:if(b.wrap&&b.flags){for(;L<32;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if(V!==(4294967295&b.total)){T.msg="incorrect length check",b.mode=30;break}L=V=0}b.mode=29;case 29:oe=1;break e;case 30:oe=-3;break e;case 31:return-4;case 32:default:return d}return T.next_out=A,T.avail_out=$,T.next_in=F,T.avail_in=B,b.hold=V,b.bits=L,(b.wsize||q!==T.avail_out&&b.mode<30&&(b.mode<27||I!==4))&&ne(T,T.output,T.next_out,q-T.avail_out)?(b.mode=31,-4):(z-=T.avail_in,q-=T.avail_out,T.total_in+=z,T.total_out+=q,b.total+=q,b.wrap&&q&&(T.adler=b.check=b.flags?s(b.check,C,q,T.next_out-q):a(b.check,C,q,T.next_out-q)),T.data_type=b.bits+(b.last?64:0)+(b.mode===12?128:0)+(b.mode===20||b.mode===15?256:0),(z==0&&q===0||I===4)&&oe===f&&(oe=-5),oe)},i.inflateEnd=function(T){if(!T||!T.state)return d;var I=T.state;return I.window&&(I.window=null),T.state=null,f},i.inflateGetHeader=function(T,I){var b;return T&&T.state?(2&(b=T.state).wrap)==0?d:((b.head=I).done=!1,f):d},i.inflateSetDictionary=function(T,I){var b,M=I.length;return T&&T.state?(b=T.state).wrap!==0&&b.mode!==11?d:b.mode===11&&a(1,I,M,0)!==b.check?-3:ne(T,I,M,M)?(b.mode=31,-4):(b.havedict=1,f):d},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,i){var o=n("../utils/common"),a=[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],c=[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],u=[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];r.exports=function(l,h,f,d,p,g,y,R){var m,v,x,_,E,N,U,O,Q,ne=R.bits,T=0,I=0,b=0,M=0,C=0,F=0,A=0,B=0,$=0,V=0,L=null,z=0,q=new o.Buf16(16),se=new o.Buf16(16),ae=null,Y=0;for(T=0;T<=15;T++)q[T]=0;for(I=0;I<d;I++)q[h[f+I]]++;for(C=ne,M=15;1<=M&&q[M]===0;M--);if(M<C&&(C=M),M===0)return p[g++]=20971520,p[g++]=20971520,R.bits=1,0;for(b=1;b<M&&q[b]===0;b++);for(C<b&&(C=b),T=B=1;T<=15;T++)if(B<<=1,(B-=q[T])<0)return-1;if(0<B&&(l===0||M!==1))return-1;for(se[1]=0,T=1;T<15;T++)se[T+1]=se[T]+q[T];for(I=0;I<d;I++)h[f+I]!==0&&(y[se[h[f+I]]++]=I);if(N=l===0?(L=ae=y,19):l===1?(L=a,z-=257,ae=s,Y-=257,256):(L=c,ae=u,-1),T=b,E=g,A=I=V=0,x=-1,_=($=1<<(F=C))-1,l===1&&852<$||l===2&&592<$)return 1;for(;;){for(U=T-A,Q=y[I]<N?(O=0,y[I]):y[I]>N?(O=ae[Y+y[I]],L[z+y[I]]):(O=96,0),m=1<<T-A,b=v=1<<F;p[E+(V>>A)+(v-=m)]=U<<24|O<<16|Q|0,v!==0;);for(m=1<<T-1;V&m;)m>>=1;if(m!==0?(V&=m-1,V+=m):V=0,I++,--q[T]==0){if(T===M)break;T=h[f+y[I]]}if(C<T&&(V&_)!==x){for(A===0&&(A=C),E+=b,B=1<<(F=T-A);F+A<M&&!((B-=q[F+A])<=0);)F++,B<<=1;if($+=1<<F,l===1&&852<$||l===2&&592<$)return 1;p[x=V&_]=C<<24|F<<16|E-g|0}}return V!==0&&(p[E+V]=T-A<<24|64<<16|0),R.bits=C,0}},{"../utils/common":41}],51:[function(n,r,i){r.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(n,r,i){var o=n("../utils/common"),a=0,s=1;function c(S){for(var P=S.length;0<=--P;)S[P]=0}var u=0,l=29,h=256,f=h+1+l,d=30,p=19,g=2*f+1,y=15,R=16,m=7,v=256,x=16,_=17,E=18,N=[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],U=[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],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ne=new Array(2*(f+2));c(ne);var T=new Array(2*d);c(T);var I=new Array(512);c(I);var b=new Array(256);c(b);var M=new Array(l);c(M);var C,F,A,B=new Array(d);function $(S,P,J,ie,K){this.static_tree=S,this.extra_bits=P,this.extra_base=J,this.elems=ie,this.max_length=K,this.has_stree=S&&S.length}function V(S,P){this.dyn_tree=S,this.max_code=0,this.stat_desc=P}function L(S){return S<256?I[S]:I[256+(S>>>7)]}function z(S,P){S.pending_buf[S.pending++]=255&P,S.pending_buf[S.pending++]=P>>>8&255}function q(S,P,J){S.bi_valid>R-J?(S.bi_buf|=P<<S.bi_valid&65535,z(S,S.bi_buf),S.bi_buf=P>>R-S.bi_valid,S.bi_valid+=J-R):(S.bi_buf|=P<<S.bi_valid&65535,S.bi_valid+=J)}function se(S,P,J){q(S,J[2*P],J[2*P+1])}function ae(S,P){for(var J=0;J|=1&S,S>>>=1,J<<=1,0<--P;);return J>>>1}function Y(S,P,J){var ie,K,j=new Array(y+1),re=0;for(ie=1;ie<=y;ie++)j[ie]=re=re+J[ie-1]<<1;for(K=0;K<=P;K++){var ce=S[2*K+1];ce!==0&&(S[2*K]=ae(j[ce]++,ce))}}function X(S){var P;for(P=0;P<f;P++)S.dyn_ltree[2*P]=0;for(P=0;P<d;P++)S.dyn_dtree[2*P]=0;for(P=0;P<p;P++)S.bl_tree[2*P]=0;S.dyn_ltree[2*v]=1,S.opt_len=S.static_len=0,S.last_lit=S.matches=0}function k(S){8<S.bi_valid?z(S,S.bi_buf):0<S.bi_valid&&(S.pending_buf[S.pending++]=S.bi_buf),S.bi_buf=0,S.bi_valid=0}function G(S,P,J,ie){var K=2*P,j=2*J;return S[K]<S[j]||S[K]===S[j]&&ie[P]<=ie[J]}function H(S,P,J){for(var ie=S.heap[J],K=J<<1;K<=S.heap_len&&(K<S.heap_len&&G(P,S.heap[K+1],S.heap[K],S.depth)&&K++,!G(P,ie,S.heap[K],S.depth));)S.heap[J]=S.heap[K],J=K,K<<=1;S.heap[J]=ie}function te(S,P,J){var ie,K,j,re,ce=0;if(S.last_lit!==0)for(;ie=S.pending_buf[S.d_buf+2*ce]<<8|S.pending_buf[S.d_buf+2*ce+1],K=S.pending_buf[S.l_buf+ce],ce++,ie===0?se(S,K,P):(se(S,(j=b[K])+h+1,P),(re=N[j])!==0&&q(S,K-=M[j],re),se(S,j=L(--ie),J),(re=U[j])!==0&&q(S,ie-=B[j],re)),ce<S.last_lit;);se(S,v,P)}function pe(S,P){var J,ie,K,j=P.dyn_tree,re=P.stat_desc.static_tree,ce=P.stat_desc.has_stree,he=P.stat_desc.elems,ve=-1;for(S.heap_len=0,S.heap_max=g,J=0;J<he;J++)j[2*J]!==0?(S.heap[++S.heap_len]=ve=J,S.depth[J]=0):j[2*J+1]=0;for(;S.heap_len<2;)j[2*(K=S.heap[++S.heap_len]=ve<2?++ve:0)]=1,S.depth[K]=0,S.opt_len--,ce&&(S.static_len-=re[2*K+1]);for(P.max_code=ve,J=S.heap_len>>1;1<=J;J--)H(S,j,J);for(K=he;J=S.heap[1],S.heap[1]=S.heap[S.heap_len--],H(S,j,1),ie=S.heap[1],S.heap[--S.heap_max]=J,S.heap[--S.heap_max]=ie,j[2*K]=j[2*J]+j[2*ie],S.depth[K]=(S.depth[J]>=S.depth[ie]?S.depth[J]:S.depth[ie])+1,j[2*J+1]=j[2*ie+1]=K,S.heap[1]=K++,H(S,j,1),2<=S.heap_len;);S.heap[--S.heap_max]=S.heap[1],function(_e,Fe){var Xe,Qe,Ge,Ve,at,It,Rt=Fe.dyn_tree,On=Fe.max_code,or=Fe.stat_desc.static_tree,qt=Fe.stat_desc.has_stree,ar=Fe.stat_desc.extra_bits,Kn=Fe.stat_desc.extra_base,en=Fe.stat_desc.max_length,hn=0;for(Ve=0;Ve<=y;Ve++)_e.bl_count[Ve]=0;for(Rt[2*_e.heap[_e.heap_max]+1]=0,Xe=_e.heap_max+1;Xe<g;Xe++)en<(Ve=Rt[2*Rt[2*(Qe=_e.heap[Xe])+1]+1]+1)&&(Ve=en,hn++),Rt[2*Qe+1]=Ve,On<Qe||(_e.bl_count[Ve]++,at=0,Kn<=Qe&&(at=ar[Qe-Kn]),It=Rt[2*Qe],_e.opt_len+=It*(Ve+at),qt&&(_e.static_len+=It*(or[2*Qe+1]+at)));if(hn!==0){do{for(Ve=en-1;_e.bl_count[Ve]===0;)Ve--;_e.bl_count[Ve]--,_e.bl_count[Ve+1]+=2,_e.bl_count[en]--,hn-=2}while(0<hn);for(Ve=en;Ve!==0;Ve--)for(Qe=_e.bl_count[Ve];Qe!==0;)On<(Ge=_e.heap[--Xe])||(Rt[2*Ge+1]!==Ve&&(_e.opt_len+=(Ve-Rt[2*Ge+1])*Rt[2*Ge],Rt[2*Ge+1]=Ve),Qe--)}}(S,P),Y(j,ve,S.bl_count)}function D(S,P,J){var ie,K,j=-1,re=P[1],ce=0,he=7,ve=4;for(re===0&&(he=138,ve=3),P[2*(J+1)+1]=65535,ie=0;ie<=J;ie++)K=re,re=P[2*(ie+1)+1],++ce<he&&K===re||(ce<ve?S.bl_tree[2*K]+=ce:K!==0?(K!==j&&S.bl_tree[2*K]++,S.bl_tree[2*x]++):ce<=10?S.bl_tree[2*_]++:S.bl_tree[2*E]++,j=K,ve=(ce=0)===re?(he=138,3):K===re?(he=6,3):(he=7,4))}function oe(S,P,J){var ie,K,j=-1,re=P[1],ce=0,he=7,ve=4;for(re===0&&(he=138,ve=3),ie=0;ie<=J;ie++)if(K=re,re=P[2*(ie+1)+1],!(++ce<he&&K===re)){if(ce<ve)for(;se(S,K,S.bl_tree),--ce!=0;);else K!==0?(K!==j&&(se(S,K,S.bl_tree),ce--),se(S,x,S.bl_tree),q(S,ce-3,2)):ce<=10?(se(S,_,S.bl_tree),q(S,ce-3,3)):(se(S,E,S.bl_tree),q(S,ce-11,7));j=K,ve=(ce=0)===re?(he=138,3):K===re?(he=6,3):(he=7,4)}}c(B);var W=!1;function w(S,P,J,ie){q(S,(u<<1)+(ie?1:0),3),function(K,j,re,ce){k(K),ce&&(z(K,re),z(K,~re)),o.arraySet(K.pending_buf,K.window,j,re,K.pending),K.pending+=re}(S,P,J,!0)}i._tr_init=function(S){W||(function(){var P,J,ie,K,j,re=new Array(y+1);for(K=ie=0;K<l-1;K++)for(M[K]=ie,P=0;P<1<<N[K];P++)b[ie++]=K;for(b[ie-1]=K,K=j=0;K<16;K++)for(B[K]=j,P=0;P<1<<U[K];P++)I[j++]=K;for(j>>=7;K<d;K++)for(B[K]=j<<7,P=0;P<1<<U[K]-7;P++)I[256+j++]=K;for(J=0;J<=y;J++)re[J]=0;for(P=0;P<=143;)ne[2*P+1]=8,P++,re[8]++;for(;P<=255;)ne[2*P+1]=9,P++,re[9]++;for(;P<=279;)ne[2*P+1]=7,P++,re[7]++;for(;P<=287;)ne[2*P+1]=8,P++,re[8]++;for(Y(ne,f+1,re),P=0;P<d;P++)T[2*P+1]=5,T[2*P]=ae(P,5);C=new $(ne,N,h+1,f,y),F=new $(T,U,0,d,y),A=new $(new Array(0),O,0,p,m)}(),W=!0),S.l_desc=new V(S.dyn_ltree,C),S.d_desc=new V(S.dyn_dtree,F),S.bl_desc=new V(S.bl_tree,A),S.bi_buf=0,S.bi_valid=0,X(S)},i._tr_stored_block=w,i._tr_flush_block=function(S,P,J,ie){var K,j,re=0;0<S.level?(S.strm.data_type===2&&(S.strm.data_type=function(ce){var he,ve=4093624447;for(he=0;he<=31;he++,ve>>>=1)if(1&ve&&ce.dyn_ltree[2*he]!==0)return a;if(ce.dyn_ltree[18]!==0||ce.dyn_ltree[20]!==0||ce.dyn_ltree[26]!==0)return s;for(he=32;he<h;he++)if(ce.dyn_ltree[2*he]!==0)return s;return a}(S)),pe(S,S.l_desc),pe(S,S.d_desc),re=function(ce){var he;for(D(ce,ce.dyn_ltree,ce.l_desc.max_code),D(ce,ce.dyn_dtree,ce.d_desc.max_code),pe(ce,ce.bl_desc),he=p-1;3<=he&&ce.bl_tree[2*Q[he]+1]===0;he--);return ce.opt_len+=3*(he+1)+5+5+4,he}(S),K=S.opt_len+3+7>>>3,(j=S.static_len+3+7>>>3)<=K&&(K=j)):K=j=J+5,J+4<=K&&P!==-1?w(S,P,J,ie):S.strategy===4||j===K?(q(S,2+(ie?1:0),3),te(S,ne,T)):(q(S,4+(ie?1:0),3),function(ce,he,ve,_e){var Fe;for(q(ce,he-257,5),q(ce,ve-1,5),q(ce,_e-4,4),Fe=0;Fe<_e;Fe++)q(ce,ce.bl_tree[2*Q[Fe]+1],3);oe(ce,ce.dyn_ltree,he-1),oe(ce,ce.dyn_dtree,ve-1)}(S,S.l_desc.max_code+1,S.d_desc.max_code+1,re+1),te(S,S.dyn_ltree,S.dyn_dtree)),X(S),ie&&k(S)},i._tr_tally=function(S,P,J){return S.pending_buf[S.d_buf+2*S.last_lit]=P>>>8&255,S.pending_buf[S.d_buf+2*S.last_lit+1]=255&P,S.pending_buf[S.l_buf+S.last_lit]=255&J,S.last_lit++,P===0?S.dyn_ltree[2*J]++:(S.matches++,P--,S.dyn_ltree[2*(b[J]+h+1)]++,S.dyn_dtree[2*L(P)]++),S.last_lit===S.lit_bufsize-1},i._tr_align=function(S){q(S,2,3),se(S,v,ne),function(P){P.bi_valid===16?(z(P,P.bi_buf),P.bi_buf=0,P.bi_valid=0):8<=P.bi_valid&&(P.pending_buf[P.pending++]=255&P.bi_buf,P.bi_buf>>=8,P.bi_valid-=8)}(S)}},{"../utils/common":41}],53:[function(n,r,i){r.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(n,r,i){(function(o){(function(a,s){if(!a.setImmediate){var c,u,l,h,f=1,d={},p=!1,g=a.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(a);y=y&&y.setTimeout?y:a,c={}.toString.call(a.process)==="[object process]"?function(x){nt.nextTick(function(){m(x)})}:function(){if(a.postMessage&&!a.importScripts){var x=!0,_=a.onmessage;return a.onmessage=function(){x=!1},a.postMessage("","*"),a.onmessage=_,x}}()?(h="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",v,!1):a.attachEvent("onmessage",v),function(x){a.postMessage(h+x,"*")}):a.MessageChannel?((l=new MessageChannel).port1.onmessage=function(x){m(x.data)},function(x){l.port2.postMessage(x)}):g&&"onreadystatechange"in g.createElement("script")?(u=g.documentElement,function(x){var _=g.createElement("script");_.onreadystatechange=function(){m(x),_.onreadystatechange=null,u.removeChild(_),_=null},u.appendChild(_)}):function(x){setTimeout(m,0,x)},y.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var _=new Array(arguments.length-1),E=0;E<_.length;E++)_[E]=arguments[E+1];var N={callback:x,args:_};return d[f]=N,c(f),f++},y.clearImmediate=R}function R(x){delete d[x]}function m(x){if(p)setTimeout(m,0,x);else{var _=d[x];if(_){p=!0;try{(function(E){var N=E.callback,U=E.args;switch(U.length){case 0:N();break;case 1:N(U[0]);break;case 2:N(U[0],U[1]);break;case 3:N(U[0],U[1],U[2]);break;default:N.apply(s,U)}})(_)}finally{R(x),p=!1}}}}function v(x){x.source===a&&typeof x.data=="string"&&x.data.indexOf(h)===0&&m(+x.data.slice(h.length))}})(typeof self=="undefined"?o===void 0?this:o:self)}).call(this,typeof Kr!="undefined"?Kr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})})(k2);var NN=k2.exports;const FN=FR(NN);var vu={exports:{}},PN={"&":"&",'"':""","'":"'","<":"<",">":">"};function LN(t){return t&&t.replace?t.replace(/([&"<>'])/g,function(e,n){return PN[n]}):t}var MN=LN,Ed=MN,qg=gf.Stream,CN=" ";function AN(t,e){typeof e!="object"&&(e={indent:e});var n=e.stream?new qg:null,r="",i=!1,o=e.indent?e.indent===!0?CN:e.indent:"",a=!0;function s(f){a?nt.nextTick(f):f()}function c(f,d){if(d!==void 0&&(r+=d),f&&!i&&(n=n||new qg,i=!0),f&&i){var p=r;s(function(){n.emit("data",p)}),r=""}}function u(f,d){Ef(c,bu(f,o,o?1:0),d)}function l(){if(n){var f=r;s(function(){n.emit("data",f),n.emit("end"),n.readable=!1,n.emit("close")})}}function h(f){var d=f.encoding||"UTF-8",p={version:"1.0",encoding:d};f.standalone&&(p.standalone=f.standalone),u({"?xml":{_attr:p}}),r=r.replace("/>","?>")}return s(function(){a=!1}),e.declaration&&h(e.declaration),t&&t.forEach?t.forEach(function(f,d){var p;d+1===t.length&&(p=l),u(f,p)}):u(t,l),n?(n.readable=!0,n):r}function UN(){var t=Array.prototype.slice.call(arguments),e={_elem:bu(t)};return e.push=function(n){if(!this.append)throw new Error("not assigned to a parent!");var r=this,i=this._elem.indent;Ef(this.append,bu(n,i,this._elem.icount+(i?1:0)),function(){r.append(!0)})},e.close=function(n){n!==void 0&&this.push(n),this.end&&this.end()},e}function WN(t,e){return new Array(e||0).join(t||"")}function bu(t,e,n){n=n||0;var r=WN(e,n),i,o=t,a=!1;if(typeof t=="object"){var s=Object.keys(t);if(i=s[0],o=t[i],o&&o._elem)return o._elem.name=i,o._elem.icount=n,o._elem.indent=e,o._elem.indents=r,o._elem.interrupt=o,o._elem}var c=[],u=[],l;function h(f){var d=Object.keys(f);d.forEach(function(p){c.push(XN(p,f[p]))})}switch(typeof o){case"object":if(o===null)break;o._attr&&h(o._attr),o._cdata&&u.push(("<![CDATA["+o._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),o.forEach&&(l=!1,u.push(""),o.forEach(function(f){if(typeof f=="object"){var d=Object.keys(f)[0];d=="_attr"?h(f._attr):u.push(bu(f,e,n+1))}else u.pop(),l=!0,u.push(Ed(f))}),l||u.push(""));break;default:u.push(Ed(o))}return{name:i,interrupt:a,attributes:c,content:u,icount:n,indents:r,indent:e}}function Ef(t,e,n){if(typeof e!="object")return t(!1,e);var r=e.interrupt?1:e.content.length;function i(){for(;e.content.length;){var a=e.content.shift();if(a!==void 0){if(o(a))return;Ef(t,a)}}t(!1,(r>1?e.indents:"")+(e.name?"</"+e.name+">":"")+(e.indent&&!n?`
|
|
`:"")),n&&n()}function o(a){return a.interrupt?(a.interrupt.append=t,a.interrupt.end=i,a.interrupt=!1,t(!0),!0):!1}if(t(!1,e.indents+(e.name?"<"+e.name:"")+(e.attributes.length?" "+e.attributes.join(" "):"")+(r?e.name?">":"":e.name?"/>":"")+(e.indent&&r>1?`
|
|
`:"")),!r)return t(!1,e.indent?`
|
|
`:"");o(e)||i()}function XN(t,e){return t+'="'+Ed(e)+'"'}vu.exports=AN;vu.exports.element=vu.exports.Element=UN;var VN=vu.exports;const Ht=FR(VN),e0=0,t0=32,YN=32,BN=(t,e)=>{const n=e.replace(/-/g,"");if(n.length!==YN)throw new Error(`Error: Cannot extract GUID from font filename: ${e}`);const i=n.replace(/(..)/g,"$1 ").trim().split(" ").map(c=>parseInt(c,16));i.reverse();const a=t.slice(e0,t0).map((c,u)=>c^i[u%i.length]);return Buffer.concat([t.slice(0,e0),a,t.slice(t0)])};class kN{format(e,n={stack:[]}){const r=e.prepForXml(n);if(r)return r;throw Error("XMLComponent did not format correctly")}}class ZN{replace(e,n,r){let i=e;return n.forEach((o,a)=>{i=i.replace(new RegExp(`{${o.fileName}}`,"g"),(r+a).toString())}),i}getMediaData(e,n){return n.Array.filter(r=>e.search(`{${r.fileName}}`)>0)}}class QN{replace(e,n){let r=e;for(const i of n)r=r.replace(new RegExp(`{${i.reference}-${i.instance}}`,"g"),i.numId.toString());return r}}class KN{constructor(){xe(this,"formatter"),xe(this,"imageReplacer"),xe(this,"numberingReplacer"),this.formatter=new kN,this.imageReplacer=new ZN,this.numberingReplacer=new QN}compile(e,n){const r=new FN,i=this.xmlifyFile(e,n),o=new Map(Object.entries(i));for(const[,a]of o)if(Array.isArray(a))for(const s of a)r.file(s.path,s.data);else r.file(a.path,a.data);for(const{stream:a,fileName:s}of e.Media.Array)r.file(`word/media/${s}`,a);for(const{data:a,name:s,fontKey:c}of e.FontTable.fontOptionsWithKey){const[u]=s.split(".");r.file(`word/fonts/${u}.odttf`,BN(a,c))}return r}xmlifyFile(e,n){const r=e.Document.Relationships.RelationshipCount+1,i=Ht(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),o=this.imageReplacer.getMediaData(i,e.Media);return{Relationships:{data:(()=>(o.forEach((a,s)=>{e.Document.Relationships.createRelationship(r+s,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${a.fileName}`)}),Ht(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}})))(),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const a=this.imageReplacer.replace(i,o,r);return this.numberingReplacer.replace(a,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const a=Ht(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(a,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:Ht(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:Ht(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:Ht(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((a,s)=>{const c=Ht(this.formatter.format(a.View,{viewWrapper:a,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,e.Media).forEach((l,h)=>{a.Relationships.createRelationship(h,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${l.fileName}`)}),{data:Ht(this.formatter.format(a.Relationships,{viewWrapper:a,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${s+1}.xml.rels`}}),FooterRelationships:e.Footers.map((a,s)=>{const c=Ht(this.formatter.format(a.View,{viewWrapper:a,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,e.Media).forEach((l,h)=>{a.Relationships.createRelationship(h,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${l.fileName}`)}),{data:Ht(this.formatter.format(a.Relationships,{viewWrapper:a,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${s+1}.xml.rels`}}),Headers:e.Headers.map((a,s)=>{const c=Ht(this.formatter.format(a.View,{viewWrapper:a,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),u=this.imageReplacer.getMediaData(c,e.Media),l=this.imageReplacer.replace(c,u,0);return{data:this.numberingReplacer.replace(l,e.Numbering.ConcreteNumbering),path:`word/header${s+1}.xml`}}),Footers:e.Footers.map((a,s)=>{const c=Ht(this.formatter.format(a.View,{viewWrapper:a,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),u=this.imageReplacer.getMediaData(c,e.Media),l=this.imageReplacer.replace(c,u,0);return{data:this.numberingReplacer.replace(l,e.Numbering.ConcreteNumbering),path:`word/footer${s+1}.xml`}}),ContentTypes:{data:Ht(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Ht(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:Ht(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:Ht(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Ht(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:Ht(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:Ht(this.formatter.format(e.Comments,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:Ht(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:(()=>Ht(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:n,declaration:{encoding:"UTF-8"}}))(),path:"word/_rels/fontTable.xml.rels"}}}}const HN={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},ja=t=>t===!0?HN.WITH_2_BLANKS:t===!1?void 0:t;class nu{static toString(e,n){return Dc(this,null,function*(){return yield this.compiler.compile(e,ja(n)).generateAsync({type:"string",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBuffer(e,n){return Dc(this,null,function*(){return yield this.compiler.compile(e,ja(n)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBase64String(e,n){return Dc(this,null,function*(){return yield this.compiler.compile(e,ja(n)).generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBlob(e,n){return Dc(this,null,function*(){return yield this.compiler.compile(e,ja(n)).generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toStream(e,n){const r=new gf.Stream;return this.compiler.compile(e,ja(n)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(o=>{r.emit("data",o),r.emit("end")}),r}}xe(nu,"compiler",new KN);function GN(t,e){const n=document.createElement("a");n.href=window.URL.createObjectURL(t),n.download=e,n.click(),window.URL.revokeObjectURL(n.href)}const JN={[mt.FIRST]:Co.HEADING_1,[mt.SECOND]:Co.HEADING_2,[mt.THIRD]:Co.HEADING_3,[mt.FOURTH]:Co.HEADING_4,[mt.FIFTH]:Co.HEADING_5,[mt.SIXTH]:Co.HEADING_6};function Mh(t){var e;return t.type===fe.IMAGE?new KE({data:t.value,transformation:{width:t.width,height:t.height}}):t.type===fe.HYPERLINK?new L2({children:[new ua({text:(e=t.valueList)==null?void 0:e.map(n=>n.value).join(""),style:"Hyperlink"})],link:t.url}):t.type===fe.TAB?new ua({children:[new $E]}):t.type===fe.LATEX?new Y3(t.value):new ua({font:t.font,text:t.value,bold:t.bold,size:`${(t.size||16)/.75}pt`,color:Z1(t.color).hex()||"#000000",italics:t.italic,strike:t.strikeout,highlight:t.highlight?Z1(t.highlight).hex():void 0,superScript:t.type===fe.SUPERSCRIPT,subScript:t.type===fe.SUBSCRIPT,underline:t.underline?{}:void 0})}function ru(t){var i,o,a;const e=[];let n=[];function r(){n.length&&(e.push(new Wi({children:n})),n=[])}for(let s=0;s<t.length;s++){const c=t[s];if(c.type===fe.TITLE)r(),e.push(new Wi({heading:JN[c.level],children:((i=c.valueList)==null?void 0:i.map(u=>Mh(u)))||[]}));else if(c.type===fe.LIST){r();const u=((o=c.valueList)==null?void 0:o.map(l=>l.value).join("").split(`
|
|
`).map((l,h)=>new Wi({children:[new ua({text:`${!c.listStyle||c.listStyle===ur.DECIMAL?`${h+1}. `:"\u2022 "}${l}`})]})))||[];e.push(...u)}else if(c.type===fe.TABLE){r();const{trList:u}=c,l=[];for(let h=0;h<u.length;h++){const f=u[h].tdList,d=[];for(let p=0;p<f.length;p++){const g=f[p];d.push(new Of({columnSpan:g.colspan,rowSpan:g.rowspan,children:ru(g.value)||[]}))}l.push(new oI({children:d}))}e.push(new tI({rows:l,width:{size:"100%",type:yu.PERCENTAGE}}))}else c.type===fe.DATE?n.push(...((a=c.valueList)==null?void 0:a.map(u=>Mh(u)))||[]):(/^\n/.test(c.value)&&(r(),c.value=c.value.replace(/^\n/,"")),n.push(Mh(c)))}return r(),e}function zN(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=function(i){const o=i.target.result.split(";base64,");e(o[1])},r.onerror=function(i){n(i)},r.readAsDataURL(t)})}function n0(t,e,n){const{data:{header:r,main:i,footer:o}}=t.getValue(),a=new ON({sections:[{headers:{default:new EN({children:ru(r||[])})},footers:{default:new IN({children:ru(o||[])})},children:ru(i||[])}]});return n==="blob"?nu.toBlob(a):n==="base64"?new Promise((s,c)=>{nu.toBlob(a).then(u=>{zN(u).then(l=>{s(l)}).catch(l=>{c(l)})}).catch(u=>{c(u)})}):new Promise((s,c)=>{nu.toBlob(a).then(u=>{GN(u,`${e}.docx`),s()}).catch(c)})}var Cr={},Kt={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(qe,function(){var n="1.13.6",r=typeof self=="object"&&self.self===self&&self||typeof qe=="object"&&qe.global===qe&&qe||Function("return this")()||{},i=Array.prototype,o=Object.prototype,a=typeof Symbol!="undefined"?Symbol.prototype:null,s=i.push,c=i.slice,u=o.toString,l=o.hasOwnProperty,h=typeof ArrayBuffer!="undefined",f=typeof DataView!="undefined",d=Array.isArray,p=Object.keys,g=Object.create,y=h&&ArrayBuffer.isView,R=isNaN,m=isFinite,v=!{toString:null}.propertyIsEnumerable("toString"),x=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],_=Math.pow(2,53)-1;function E(Z,ee){return ee=ee==null?Z.length-1:+ee,function(){for(var le=Math.max(arguments.length-ee,0),de=Array(le),Re=0;Re<le;Re++)de[Re]=arguments[Re+ee];switch(ee){case 0:return Z.call(this,de);case 1:return Z.call(this,arguments[0],de);case 2:return Z.call(this,arguments[0],arguments[1],de)}var me=Array(ee+1);for(Re=0;Re<ee;Re++)me[Re]=arguments[Re];return me[ee]=de,Z.apply(this,me)}}function N(Z){var ee=typeof Z;return ee==="function"||ee==="object"&&!!Z}function U(Z){return Z===null}function O(Z){return Z===void 0}function Q(Z){return Z===!0||Z===!1||u.call(Z)==="[object Boolean]"}function ne(Z){return!!(Z&&Z.nodeType===1)}function T(Z){var ee="[object "+Z+"]";return function(le){return u.call(le)===ee}}var I=T("String"),b=T("Number"),M=T("Date"),C=T("RegExp"),F=T("Error"),A=T("Symbol"),B=T("ArrayBuffer"),$=T("Function"),V=r.document&&r.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof V!="function"&&($=function(Z){return typeof Z=="function"||!1});var L=$,z=T("Object"),q=f&&z(new DataView(new ArrayBuffer(8))),se=typeof Map!="undefined"&&z(new Map),ae=T("DataView");function Y(Z){return Z!=null&&L(Z.getInt8)&&B(Z.buffer)}var X=q?Y:ae,k=d||T("Array");function G(Z,ee){return Z!=null&&l.call(Z,ee)}var H=T("Arguments");(function(){H(arguments)||(H=function(Z){return G(Z,"callee")})})();var te=H;function pe(Z){return!A(Z)&&m(Z)&&!isNaN(parseFloat(Z))}function D(Z){return b(Z)&&R(Z)}function oe(Z){return function(){return Z}}function W(Z){return function(ee){var le=Z(ee);return typeof le=="number"&&le>=0&&le<=_}}function w(Z){return function(ee){return ee==null?void 0:ee[Z]}}var S=w("byteLength"),P=W(S),J=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function ie(Z){return y?y(Z)&&!X(Z):P(Z)&&J.test(u.call(Z))}var K=h?ie:oe(!1),j=w("length");function re(Z){for(var ee={},le=Z.length,de=0;de<le;++de)ee[Z[de]]=!0;return{contains:function(Re){return ee[Re]===!0},push:function(Re){return ee[Re]=!0,Z.push(Re)}}}function ce(Z,ee){ee=re(ee);var le=x.length,de=Z.constructor,Re=L(de)&&de.prototype||o,me="constructor";for(G(Z,me)&&!ee.contains(me)&&ee.push(me);le--;)me=x[le],me in Z&&Z[me]!==Re[me]&&!ee.contains(me)&&ee.push(me)}function he(Z){if(!N(Z))return[];if(p)return p(Z);var ee=[];for(var le in Z)G(Z,le)&&ee.push(le);return v&&ce(Z,ee),ee}function ve(Z){if(Z==null)return!0;var ee=j(Z);return typeof ee=="number"&&(k(Z)||I(Z)||te(Z))?ee===0:j(he(Z))===0}function _e(Z,ee){var le=he(ee),de=le.length;if(Z==null)return!de;for(var Re=Object(Z),me=0;me<de;me++){var Oe=le[me];if(ee[Oe]!==Re[Oe]||!(Oe in Re))return!1}return!0}function Fe(Z){if(Z instanceof Fe)return Z;if(!(this instanceof Fe))return new Fe(Z);this._wrapped=Z}Fe.VERSION=n,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 Xe(Z){return new Uint8Array(Z.buffer||Z,Z.byteOffset||0,S(Z))}var Qe="[object DataView]";function Ge(Z,ee,le,de){if(Z===ee)return Z!==0||1/Z===1/ee;if(Z==null||ee==null)return!1;if(Z!==Z)return ee!==ee;var Re=typeof Z;return Re!=="function"&&Re!=="object"&&typeof ee!="object"?!1:Ve(Z,ee,le,de)}function Ve(Z,ee,le,de){Z instanceof Fe&&(Z=Z._wrapped),ee instanceof Fe&&(ee=ee._wrapped);var Re=u.call(Z);if(Re!==u.call(ee))return!1;if(q&&Re=="[object Object]"&&X(Z)){if(!X(ee))return!1;Re=Qe}switch(Re){case"[object RegExp]":case"[object String]":return""+Z==""+ee;case"[object Number]":return+Z!=+Z?+ee!=+ee:+Z==0?1/+Z===1/ee:+Z==+ee;case"[object Date]":case"[object Boolean]":return+Z==+ee;case"[object Symbol]":return a.valueOf.call(Z)===a.valueOf.call(ee);case"[object ArrayBuffer]":case Qe:return Ve(Xe(Z),Xe(ee),le,de)}var me=Re==="[object Array]";if(!me&&K(Z)){var Oe=S(Z);if(Oe!==S(ee))return!1;if(Z.buffer===ee.buffer&&Z.byteOffset===ee.byteOffset)return!0;me=!0}if(!me){if(typeof Z!="object"||typeof ee!="object")return!1;var Ce=Z.constructor,et=ee.constructor;if(Ce!==et&&!(L(Ce)&&Ce instanceof Ce&&L(et)&&et instanceof et)&&"constructor"in Z&&"constructor"in ee)return!1}le=le||[],de=de||[];for(var $e=le.length;$e--;)if(le[$e]===Z)return de[$e]===ee;if(le.push(Z),de.push(ee),me){if($e=Z.length,$e!==ee.length)return!1;for(;$e--;)if(!Ge(Z[$e],ee[$e],le,de))return!1}else{var dn=he(Z),Wn;if($e=dn.length,he(ee).length!==$e)return!1;for(;$e--;)if(Wn=dn[$e],!(G(ee,Wn)&&Ge(Z[Wn],ee[Wn],le,de)))return!1}return le.pop(),de.pop(),!0}function at(Z,ee){return Ge(Z,ee)}function It(Z){if(!N(Z))return[];var ee=[];for(var le in Z)ee.push(le);return v&&ce(Z,ee),ee}function Rt(Z){var ee=j(Z);return function(le){if(le==null)return!1;var de=It(le);if(j(de))return!1;for(var Re=0;Re<ee;Re++)if(!L(le[Z[Re]]))return!1;return Z!==en||!L(le[On])}}var On="forEach",or="has",qt=["clear","delete"],ar=["get",or,"set"],Kn=qt.concat(On,ar),en=qt.concat(ar),hn=["add"].concat(qt,On,or),Oo=se?Rt(Kn):T("Map"),wl=se?Rt(en):T("WeakMap"),Tl=se?Rt(hn):T("Set"),hc=T("WeakSet");function oi(Z){for(var ee=he(Z),le=ee.length,de=Array(le),Re=0;Re<le;Re++)de[Re]=Z[ee[Re]];return de}function Eo(Z){for(var ee=he(Z),le=ee.length,de=Array(le),Re=0;Re<le;Re++)de[Re]=[ee[Re],Z[ee[Re]]];return de}function Ba(Z){for(var ee={},le=he(Z),de=0,Re=le.length;de<Re;de++)ee[Z[le[de]]]=le[de];return ee}function Gi(Z){var ee=[];for(var le in Z)L(Z[le])&&ee.push(le);return ee.sort()}function Io(Z,ee){return function(le){var de=arguments.length;if(ee&&(le=Object(le)),de<2||le==null)return le;for(var Re=1;Re<de;Re++)for(var me=arguments[Re],Oe=Z(me),Ce=Oe.length,et=0;et<Ce;et++){var $e=Oe[et];(!ee||le[$e]===void 0)&&(le[$e]=me[$e])}return le}}var No=Io(It),Fo=Io(he),ka=Io(It,!0);function dc(){return function(){}}function Ji(Z){if(!N(Z))return{};if(g)return g(Z);var ee=dc();ee.prototype=Z;var le=new ee;return ee.prototype=null,le}function fc(Z,ee){var le=Ji(Z);return ee&&Fo(le,ee),le}function pc(Z){return N(Z)?k(Z)?Z.slice():No({},Z):Z}function Si(Z,ee){return ee(Z),Z}function gc(Z){return k(Z)?Z:[Z]}Fe.toPath=gc;function Di(Z){return Fe.toPath(Z)}function Za(Z,ee){for(var le=ee.length,de=0;de<le;de++){if(Z==null)return;Z=Z[ee[de]]}return le?Z:void 0}function mc(Z,ee,le){var de=Za(Z,Di(ee));return O(de)?le:de}function Sl(Z,ee){ee=Di(ee);for(var le=ee.length,de=0;de<le;de++){var Re=ee[de];if(!G(Z,Re))return!1;Z=Z[Re]}return!!le}function Po(Z){return Z}function _i(Z){return Z=Fo({},Z),function(ee){return _e(ee,Z)}}function Qa(Z){return Z=Di(Z),function(ee){return Za(ee,Z)}}function zi(Z,ee,le){if(ee===void 0)return Z;switch(le==null?3:le){case 1:return function(de){return Z.call(ee,de)};case 3:return function(de,Re,me){return Z.call(ee,de,Re,me)};case 4:return function(de,Re,me,Oe){return Z.call(ee,de,Re,me,Oe)}}return function(){return Z.apply(ee,arguments)}}function Ka(Z,ee,le){return Z==null?Po:L(Z)?zi(Z,ee,le):N(Z)&&!k(Z)?_i(Z):Qa(Z)}function ge(Z,ee){return Ka(Z,ee,1/0)}Fe.iteratee=ge;function we(Z,ee,le){return Fe.iteratee!==ge?Fe.iteratee(Z,ee):Ka(Z,ee,le)}function Ee(Z,ee,le){ee=we(ee,le);for(var de=he(Z),Re=de.length,me={},Oe=0;Oe<Re;Oe++){var Ce=de[Oe];me[Ce]=ee(Z[Ce],Ce,Z)}return me}function Pe(){}function Ie(Z){return Z==null?Pe:function(ee){return mc(Z,ee)}}function Ae(Z,ee,le){var de=Array(Math.max(0,Z));ee=zi(ee,le,1);for(var Re=0;Re<Z;Re++)de[Re]=ee(Re);return de}function ke(Z,ee){return ee==null&&(ee=Z,Z=0),Z+Math.floor(Math.random()*(ee-Z+1))}var ze=Date.now||function(){return new Date().getTime()};function tt(Z){var ee=function(me){return Z[me]},le="(?:"+he(Z).join("|")+")",de=RegExp(le),Re=RegExp(le,"g");return function(me){return me=me==null?"":""+me,de.test(me)?me.replace(Re,ee):me}}var xt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Nt=tt(xt),mr=Ba(xt),$i=tt(mr),nn=Fe.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Dl=/(.)^/,Pb={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Lb=/\\|'|\r|\n|\u2028|\u2029/g;function Mb(Z){return"\\"+Pb[Z]}var Cb=/^\s*(\w|\$)+\s*$/;function Ab(Z,ee,le){!ee&&le&&(ee=le),ee=ka({},ee,Fe.templateSettings);var de=RegExp([(ee.escape||Dl).source,(ee.interpolate||Dl).source,(ee.evaluate||Dl).source].join("|")+"|$","g"),Re=0,me="__p+='";Z.replace(de,function($e,dn,Wn,T1,S1){return me+=Z.slice(Re,S1).replace(Lb,Mb),Re=S1+$e.length,dn?me+=`'+
|
|
((__t=(`+dn+`))==null?'':_.escape(__t))+
|
|
'`:Wn?me+=`'+
|
|
((__t=(`+Wn+`))==null?'':__t)+
|
|
'`:T1&&(me+=`';
|
|
`+T1+`
|
|
__p+='`),$e}),me+=`';
|
|
`;var Oe=ee.variable;if(Oe){if(!Cb.test(Oe))throw new Error("variable is not a bare identifier: "+Oe)}else me=`with(obj||{}){
|
|
`+me+`}
|
|
`,Oe="obj";me=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
|
|
`+me+`return __p;
|
|
`;var Ce;try{Ce=new Function(Oe,"_",me)}catch($e){throw $e.source=me,$e}var et=function($e){return Ce.call(this,$e,Fe)};return et.source="function("+Oe+`){
|
|
`+me+"}",et}function Ub(Z,ee,le){ee=Di(ee);var de=ee.length;if(!de)return L(le)?le.call(Z):le;for(var Re=0;Re<de;Re++){var me=Z==null?void 0:Z[ee[Re]];me===void 0&&(me=le,Re=de),Z=L(me)?me.call(Z):me}return Z}var Wb=0;function Xb(Z){var ee=++Wb+"";return Z?Z+ee:ee}function Vb(Z){var ee=Fe(Z);return ee._chain=!0,ee}function n1(Z,ee,le,de,Re){if(!(de instanceof ee))return Z.apply(le,Re);var me=Ji(Z.prototype),Oe=Z.apply(me,Re);return N(Oe)?Oe:me}var Lo=E(function(Z,ee){var le=Lo.placeholder,de=function(){for(var Re=0,me=ee.length,Oe=Array(me),Ce=0;Ce<me;Ce++)Oe[Ce]=ee[Ce]===le?arguments[Re++]:ee[Ce];for(;Re<arguments.length;)Oe.push(arguments[Re++]);return n1(Z,de,this,this,Oe)};return de});Lo.placeholder=Fe;var r1=E(function(Z,ee,le){if(!L(Z))throw new TypeError("Bind must be called on a function");var de=E(function(Re){return n1(Z,de,ee,this,le.concat(Re))});return de}),sr=W(j);function ji(Z,ee,le,de){if(de=de||[],!ee&&ee!==0)ee=1/0;else if(ee<=0)return de.concat(Z);for(var Re=de.length,me=0,Oe=j(Z);me<Oe;me++){var Ce=Z[me];if(sr(Ce)&&(k(Ce)||te(Ce)))if(ee>1)ji(Ce,ee-1,le,de),Re=de.length;else for(var et=0,$e=Ce.length;et<$e;)de[Re++]=Ce[et++];else le||(de[Re++]=Ce)}return de}var Yb=E(function(Z,ee){ee=ji(ee,!1,!1);var le=ee.length;if(le<1)throw new Error("bindAll must be passed function names");for(;le--;){var de=ee[le];Z[de]=r1(Z[de],Z)}return Z});function Bb(Z,ee){var le=function(de){var Re=le.cache,me=""+(ee?ee.apply(this,arguments):de);return G(Re,me)||(Re[me]=Z.apply(this,arguments)),Re[me]};return le.cache={},le}var i1=E(function(Z,ee,le){return setTimeout(function(){return Z.apply(null,le)},ee)}),kb=Lo(i1,Fe,1);function Zb(Z,ee,le){var de,Re,me,Oe,Ce=0;le||(le={});var et=function(){Ce=le.leading===!1?0:ze(),de=null,Oe=Z.apply(Re,me),de||(Re=me=null)},$e=function(){var dn=ze();!Ce&&le.leading===!1&&(Ce=dn);var Wn=ee-(dn-Ce);return Re=this,me=arguments,Wn<=0||Wn>ee?(de&&(clearTimeout(de),de=null),Ce=dn,Oe=Z.apply(Re,me),de||(Re=me=null)):!de&&le.trailing!==!1&&(de=setTimeout(et,Wn)),Oe};return $e.cancel=function(){clearTimeout(de),Ce=0,de=Re=me=null},$e}function Qb(Z,ee,le){var de,Re,me,Oe,Ce,et=function(){var dn=ze()-Re;ee>dn?de=setTimeout(et,ee-dn):(de=null,le||(Oe=Z.apply(Ce,me)),de||(me=Ce=null))},$e=E(function(dn){return Ce=this,me=dn,Re=ze(),de||(de=setTimeout(et,ee),le&&(Oe=Z.apply(Ce,me))),Oe});return $e.cancel=function(){clearTimeout(de),de=me=Ce=null},$e}function Kb(Z,ee){return Lo(ee,Z)}function _l(Z){return function(){return!Z.apply(this,arguments)}}function Hb(){var Z=arguments,ee=Z.length-1;return function(){for(var le=ee,de=Z[ee].apply(this,arguments);le--;)de=Z[le].call(this,de);return de}}function Gb(Z,ee){return function(){if(--Z<1)return ee.apply(this,arguments)}}function o1(Z,ee){var le;return function(){return--Z>0&&(le=ee.apply(this,arguments)),Z<=1&&(ee=null),le}}var Jb=Lo(o1,2);function a1(Z,ee,le){ee=we(ee,le);for(var de=he(Z),Re,me=0,Oe=de.length;me<Oe;me++)if(Re=de[me],ee(Z[Re],Re,Z))return Re}function s1(Z){return function(ee,le,de){le=we(le,de);for(var Re=j(ee),me=Z>0?0:Re-1;me>=0&&me<Re;me+=Z)if(le(ee[me],me,ee))return me;return-1}}var Ol=s1(1),c1=s1(-1);function u1(Z,ee,le,de){le=we(le,de,1);for(var Re=le(ee),me=0,Oe=j(Z);me<Oe;){var Ce=Math.floor((me+Oe)/2);le(Z[Ce])<Re?me=Ce+1:Oe=Ce}return me}function l1(Z,ee,le){return function(de,Re,me){var Oe=0,Ce=j(de);if(typeof me=="number")Z>0?Oe=me>=0?me:Math.max(me+Ce,Oe):Ce=me>=0?Math.min(me+1,Ce):me+Ce+1;else if(le&&me&&Ce)return me=le(de,Re),de[me]===Re?me:-1;if(Re!==Re)return me=ee(c.call(de,Oe,Ce),D),me>=0?me+Oe:-1;for(me=Z>0?Oe:Ce-1;me>=0&&me<Ce;me+=Z)if(de[me]===Re)return me;return-1}}var h1=l1(1,Ol,u1),zb=l1(-1,c1);function El(Z,ee,le){var de=sr(Z)?Ol:a1,Re=de(Z,ee,le);if(Re!==void 0&&Re!==-1)return Z[Re]}function $b(Z,ee){return El(Z,_i(ee))}function ai(Z,ee,le){ee=zi(ee,le);var de,Re;if(sr(Z))for(de=0,Re=Z.length;de<Re;de++)ee(Z[de],de,Z);else{var me=he(Z);for(de=0,Re=me.length;de<Re;de++)ee(Z[me[de]],me[de],Z)}return Z}function qi(Z,ee,le){ee=we(ee,le);for(var de=!sr(Z)&&he(Z),Re=(de||Z).length,me=Array(Re),Oe=0;Oe<Re;Oe++){var Ce=de?de[Oe]:Oe;me[Oe]=ee(Z[Ce],Ce,Z)}return me}function d1(Z){var ee=function(le,de,Re,me){var Oe=!sr(le)&&he(le),Ce=(Oe||le).length,et=Z>0?0:Ce-1;for(me||(Re=le[Oe?Oe[et]:et],et+=Z);et>=0&&et<Ce;et+=Z){var $e=Oe?Oe[et]:et;Re=de(Re,le[$e],$e,le)}return Re};return function(le,de,Re,me){var Oe=arguments.length>=3;return ee(le,zi(de,me,4),Re,Oe)}}var Il=d1(1),f1=d1(-1);function Mo(Z,ee,le){var de=[];return ee=we(ee,le),ai(Z,function(Re,me,Oe){ee(Re,me,Oe)&&de.push(Re)}),de}function jb(Z,ee,le){return Mo(Z,_l(we(ee)),le)}function p1(Z,ee,le){ee=we(ee,le);for(var de=!sr(Z)&&he(Z),Re=(de||Z).length,me=0;me<Re;me++){var Oe=de?de[me]:me;if(!ee(Z[Oe],Oe,Z))return!1}return!0}function g1(Z,ee,le){ee=we(ee,le);for(var de=!sr(Z)&&he(Z),Re=(de||Z).length,me=0;me<Re;me++){var Oe=de?de[me]:me;if(ee(Z[Oe],Oe,Z))return!0}return!1}function si(Z,ee,le,de){return sr(Z)||(Z=oi(Z)),(typeof le!="number"||de)&&(le=0),h1(Z,ee,le)>=0}var qb=E(function(Z,ee,le){var de,Re;return L(ee)?Re=ee:(ee=Di(ee),de=ee.slice(0,-1),ee=ee[ee.length-1]),qi(Z,function(me){var Oe=Re;if(!Oe){if(de&&de.length&&(me=Za(me,de)),me==null)return;Oe=me[ee]}return Oe==null?Oe:Oe.apply(me,le)})});function Nl(Z,ee){return qi(Z,Qa(ee))}function ex(Z,ee){return Mo(Z,_i(ee))}function m1(Z,ee,le){var de=-1/0,Re=-1/0,me,Oe;if(ee==null||typeof ee=="number"&&typeof Z[0]!="object"&&Z!=null){Z=sr(Z)?Z:oi(Z);for(var Ce=0,et=Z.length;Ce<et;Ce++)me=Z[Ce],me!=null&&me>de&&(de=me)}else ee=we(ee,le),ai(Z,function($e,dn,Wn){Oe=ee($e,dn,Wn),(Oe>Re||Oe===-1/0&&de===-1/0)&&(de=$e,Re=Oe)});return de}function tx(Z,ee,le){var de=1/0,Re=1/0,me,Oe;if(ee==null||typeof ee=="number"&&typeof Z[0]!="object"&&Z!=null){Z=sr(Z)?Z:oi(Z);for(var Ce=0,et=Z.length;Ce<et;Ce++)me=Z[Ce],me!=null&&me<de&&(de=me)}else ee=we(ee,le),ai(Z,function($e,dn,Wn){Oe=ee($e,dn,Wn),(Oe<Re||Oe===1/0&&de===1/0)&&(de=$e,Re=Oe)});return de}var nx=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function R1(Z){return Z?k(Z)?c.call(Z):I(Z)?Z.match(nx):sr(Z)?qi(Z,Po):oi(Z):[]}function y1(Z,ee,le){if(ee==null||le)return sr(Z)||(Z=oi(Z)),Z[ke(Z.length-1)];var de=R1(Z),Re=j(de);ee=Math.max(Math.min(ee,Re),0);for(var me=Re-1,Oe=0;Oe<ee;Oe++){var Ce=ke(Oe,me),et=de[Oe];de[Oe]=de[Ce],de[Ce]=et}return de.slice(0,ee)}function rx(Z){return y1(Z,1/0)}function ix(Z,ee,le){var de=0;return ee=we(ee,le),Nl(qi(Z,function(Re,me,Oe){return{value:Re,index:de++,criteria:ee(Re,me,Oe)}}).sort(function(Re,me){var Oe=Re.criteria,Ce=me.criteria;if(Oe!==Ce){if(Oe>Ce||Oe===void 0)return 1;if(Oe<Ce||Ce===void 0)return-1}return Re.index-me.index}),"value")}function Rc(Z,ee){return function(le,de,Re){var me=ee?[[],[]]:{};return de=we(de,Re),ai(le,function(Oe,Ce){var et=de(Oe,Ce,le);Z(me,Oe,et)}),me}}var ox=Rc(function(Z,ee,le){G(Z,le)?Z[le].push(ee):Z[le]=[ee]}),ax=Rc(function(Z,ee,le){Z[le]=ee}),sx=Rc(function(Z,ee,le){G(Z,le)?Z[le]++:Z[le]=1}),cx=Rc(function(Z,ee,le){Z[le?0:1].push(ee)},!0);function ux(Z){return Z==null?0:sr(Z)?Z.length:he(Z).length}function lx(Z,ee,le){return ee in le}var v1=E(function(Z,ee){var le={},de=ee[0];if(Z==null)return le;L(de)?(ee.length>1&&(de=zi(de,ee[1])),ee=It(Z)):(de=lx,ee=ji(ee,!1,!1),Z=Object(Z));for(var Re=0,me=ee.length;Re<me;Re++){var Oe=ee[Re],Ce=Z[Oe];de(Ce,Oe,Z)&&(le[Oe]=Ce)}return le}),hx=E(function(Z,ee){var le=ee[0],de;return L(le)?(le=_l(le),ee.length>1&&(de=ee[1])):(ee=qi(ji(ee,!1,!1),String),le=function(Re,me){return!si(ee,me)}),v1(Z,le,de)});function b1(Z,ee,le){return c.call(Z,0,Math.max(0,Z.length-(ee==null||le?1:ee)))}function Fl(Z,ee,le){return Z==null||Z.length<1?ee==null||le?void 0:[]:ee==null||le?Z[0]:b1(Z,Z.length-ee)}function yc(Z,ee,le){return c.call(Z,ee==null||le?1:ee)}function dx(Z,ee,le){return Z==null||Z.length<1?ee==null||le?void 0:[]:ee==null||le?Z[Z.length-1]:yc(Z,Math.max(0,Z.length-ee))}function fx(Z){return Mo(Z,Boolean)}function px(Z,ee){return ji(Z,ee,!1)}var x1=E(function(Z,ee){return ee=ji(ee,!0,!0),Mo(Z,function(le){return!si(ee,le)})}),gx=E(function(Z,ee){return x1(Z,ee)});function Pl(Z,ee,le,de){Q(ee)||(de=le,le=ee,ee=!1),le!=null&&(le=we(le,de));for(var Re=[],me=[],Oe=0,Ce=j(Z);Oe<Ce;Oe++){var et=Z[Oe],$e=le?le(et,Oe,Z):et;ee&&!le?((!Oe||me!==$e)&&Re.push(et),me=$e):le?si(me,$e)||(me.push($e),Re.push(et)):si(Re,et)||Re.push(et)}return Re}var mx=E(function(Z){return Pl(ji(Z,!0,!0))});function Rx(Z){for(var ee=[],le=arguments.length,de=0,Re=j(Z);de<Re;de++){var me=Z[de];if(!si(ee,me)){var Oe;for(Oe=1;Oe<le&&si(arguments[Oe],me);Oe++);Oe===le&&ee.push(me)}}return ee}function Ll(Z){for(var ee=Z&&m1(Z,j).length||0,le=Array(ee),de=0;de<ee;de++)le[de]=Nl(Z,de);return le}var yx=E(Ll);function vx(Z,ee){for(var le={},de=0,Re=j(Z);de<Re;de++)ee?le[Z[de]]=ee[de]:le[Z[de][0]]=Z[de][1];return le}function bx(Z,ee,le){ee==null&&(ee=Z||0,Z=0),le||(le=ee<Z?-1:1);for(var de=Math.max(Math.ceil((ee-Z)/le),0),Re=Array(de),me=0;me<de;me++,Z+=le)Re[me]=Z;return Re}function xx(Z,ee){if(ee==null||ee<1)return[];for(var le=[],de=0,Re=Z.length;de<Re;)le.push(c.call(Z,de,de+=ee));return le}function Ml(Z,ee){return Z._chain?Fe(ee).chain():ee}function w1(Z){return ai(Gi(Z),function(ee){var le=Fe[ee]=Z[ee];Fe.prototype[ee]=function(){var de=[this._wrapped];return s.apply(de,arguments),Ml(this,le.apply(Fe,de))}}),Fe}ai(["pop","push","reverse","shift","sort","splice","unshift"],function(Z){var ee=i[Z];Fe.prototype[Z]=function(){var le=this._wrapped;return le!=null&&(ee.apply(le,arguments),(Z==="shift"||Z==="splice")&&le.length===0&&delete le[0]),Ml(this,le)}}),ai(["concat","join","slice"],function(Z){var ee=i[Z];Fe.prototype[Z]=function(){var le=this._wrapped;return le!=null&&(le=ee.apply(le,arguments)),Ml(this,le)}});var wx={__proto__:null,VERSION:n,restArguments:E,isObject:N,isNull:U,isUndefined:O,isBoolean:Q,isElement:ne,isString:I,isNumber:b,isDate:M,isRegExp:C,isError:F,isSymbol:A,isArrayBuffer:B,isDataView:X,isArray:k,isFunction:L,isArguments:te,isFinite:pe,isNaN:D,isTypedArray:K,isEmpty:ve,isMatch:_e,isEqual:at,isMap:Oo,isWeakMap:wl,isSet:Tl,isWeakSet:hc,keys:he,allKeys:It,values:oi,pairs:Eo,invert:Ba,functions:Gi,methods:Gi,extend:No,extendOwn:Fo,assign:Fo,defaults:ka,create:fc,clone:pc,tap:Si,get:mc,has:Sl,mapObject:Ee,identity:Po,constant:oe,noop:Pe,toPath:gc,property:Qa,propertyOf:Ie,matcher:_i,matches:_i,times:Ae,random:ke,now:ze,escape:Nt,unescape:$i,templateSettings:nn,template:Ab,result:Ub,uniqueId:Xb,chain:Vb,iteratee:ge,partial:Lo,bind:r1,bindAll:Yb,memoize:Bb,delay:i1,defer:kb,throttle:Zb,debounce:Qb,wrap:Kb,negate:_l,compose:Hb,after:Gb,before:o1,once:Jb,findKey:a1,findIndex:Ol,findLastIndex:c1,sortedIndex:u1,indexOf:h1,lastIndexOf:zb,find:El,detect:El,findWhere:$b,each:ai,forEach:ai,map:qi,collect:qi,reduce:Il,foldl:Il,inject:Il,reduceRight:f1,foldr:f1,filter:Mo,select:Mo,reject:jb,every:p1,all:p1,some:g1,any:g1,contains:si,includes:si,include:si,invoke:qb,pluck:Nl,where:ex,max:m1,min:tx,shuffle:rx,sample:y1,sortBy:ix,groupBy:ox,indexBy:ax,countBy:sx,partition:cx,toArray:R1,size:ux,pick:v1,omit:hx,first:Fl,head:Fl,take:Fl,initial:b1,last:dx,rest:yc,tail:yc,drop:yc,compact:fx,flatten:px,without:gx,uniq:Pl,unique:Pl,union:mx,intersection:Rx,difference:x1,unzip:Ll,transpose:Ll,zip:yx,object:vx,range:bx,chunk:xx,mixin:w1,default:Fe},Cl=w1(wx);return Cl._=Cl,Cl})})(Kt);var If={},vn={},Z2={exports:{}},Bi={exports:{}},Ch=function(){return this===void 0}();if(Ch)Bi.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:Ch,propertyIsWritable:function(t,e){var n=Object.getOwnPropertyDescriptor(t,e);return!!(!n||n.writable||n.set)}};else{var $N={}.hasOwnProperty,jN={}.toString,qN={}.constructor.prototype,r0=function(t){var e=[];for(var n in t)$N.call(t,n)&&e.push(n);return e},eF=function(t,e){return{value:t[e]}},tF=function(t,e,n){return t[e]=n.value,t},nF=function(t){return t},rF=function(t){try{return Object(t).constructor.prototype}catch{return qN}},iF=function(t){try{return jN.call(t)==="[object Array]"}catch{return!1}};Bi.exports={isArray:iF,keys:r0,names:r0,defineProperty:tF,getDescriptor:eF,freeze:nF,getPrototypeOf:rF,isES5:Ch,propertyIsWritable:function(){return!0}}}var jn=Bi.exports,oF=typeof navigator=="undefined",Id={e:{}},Nd,aF=typeof self!="undefined"?self:typeof window!="undefined"?window:typeof qe!="undefined"||qe!==void 0?qe:null;function sF(){try{var t=Nd;return Nd=null,t.apply(this,arguments)}catch(e){return Id.e=e,Id}}function cF(t){return Nd=t,sF}var uF=function(t,e){var n={}.hasOwnProperty;function r(){this.constructor=t,this.constructor$=e;for(var i in e.prototype)n.call(e.prototype,i)&&i.charAt(i.length-1)!=="$"&&(this[i+"$"]=e.prototype[i])}return r.prototype=e.prototype,t.prototype=new r,t.prototype};function Nf(t){return t==null||t===!0||t===!1||typeof t=="string"||typeof t=="number"}function lF(t){return typeof t=="function"||typeof t=="object"&&t!==null}function hF(t){return Nf(t)?new Error(xu(t)):t}function dF(t,e){var n=t.length,r=new Array(n+1),i;for(i=0;i<n;++i)r[i]=t[i];return r[i]=e,r}function fF(t,e,n){if(jn.isES5){var r=Object.getOwnPropertyDescriptor(t,e);if(r!=null)return r.get==null&&r.set==null?r.value:n}else return{}.hasOwnProperty.call(t,e)?t[e]:void 0}function Q2(t,e,n){if(Nf(t))return t;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return jn.defineProperty(t,e,r),t}function pF(t){throw t}var gF=function(){var t=[Array.prototype,Object.prototype,Function.prototype],e=function(i){for(var o=0;o<t.length;++o)if(t[o]===i)return!0;return!1};if(jn.isES5){var n=Object.getOwnPropertyNames;return function(i){for(var o=[],a=Object.create(null);i!=null&&!e(i);){var s;try{s=n(i)}catch{return o}for(var c=0;c<s.length;++c){var u=s[c];if(!a[u]){a[u]=!0;var l=Object.getOwnPropertyDescriptor(i,u);l!=null&&l.get==null&&l.set==null&&o.push(u)}}i=jn.getPrototypeOf(i)}return o}}else{var r={}.hasOwnProperty;return function(i){if(e(i))return[];var o=[];e:for(var a in i)if(r.call(i,a))o.push(a);else{for(var s=0;s<t.length;++s)if(r.call(t[s],a))continue e;o.push(a)}return o}}}(),mF=/this\s*\.\s*\S+\s*=/;function RF(t){try{if(typeof t=="function"){var e=jn.names(t.prototype),n=jn.isES5&&e.length>1,r=e.length>0&&!(e.length===1&&e[0]==="constructor"),i=mF.test(t+"")&&jn.names(t).length>0;if(n||r||i)return!0}return!1}catch{return!1}}function yF(t){return t}var vF=/^[a-z$_][a-z$_0-9]*$/i;function bF(t){return vF.test(t)}function xF(t,e,n){for(var r=new Array(t),i=0;i<t;++i)r[i]=e+i+n;return r}function xu(t){try{return t+""}catch{return"[no string representation]"}}function K2(t){return t!==null&&typeof t=="object"&&typeof t.message=="string"&&typeof t.name=="string"}function wF(t){try{Q2(t,"isOperational",!0)}catch{}}function TF(t){return t==null?!1:t instanceof Error.__BluebirdErrorTypes__.OperationalError||t.isOperational===!0}function Fd(t){return K2(t)&&jn.propertyIsWritable(t,"stack")}var SF=function(){return"stack"in new Error?function(t){return Fd(t)?t:new Error(xu(t))}:function(t){if(Fd(t))return t;try{throw new Error(xu(t))}catch(e){return e}}}();function H2(t){return{}.toString.call(t)}function DF(t,e,n){for(var r=jn.names(t),i=0;i<r.length;++i){var o=r[i];if(n(o))try{jn.defineProperty(e,o,jn.getDescriptor(t,o))}catch{}}}var G2=function(t){return jn.isArray(t)?t:null};if(typeof Symbol!="undefined"&&Symbol.iterator){var _F=typeof Array.from=="function"?function(t){return Array.from(t)}:function(t){for(var e=[],n=t[Symbol.iterator](),r;!(r=n.next()).done;)e.push(r.value);return e};G2=function(t){return jn.isArray(t)?t:t!=null&&typeof t[Symbol.iterator]=="function"?_F(t):null}}var OF=typeof process!="undefined"&&H2(process).toLowerCase()==="[object process]",J2=typeof process!="undefined"&&typeof process.env!="undefined";function EF(t){return J2?process.env[t]:void 0}function IF(){if(typeof Promise=="function")try{var t=new Promise(function(){});if({}.toString.call(t)==="[object Promise]")return Promise}catch{}}function NF(t,e){return t.bind(e)}var va={isClass:RF,isIdentifier:bF,inheritedDataKeys:gF,getDataPropertyOrDefault:fF,thrower:pF,isArray:jn.isArray,asArray:G2,notEnumerableProp:Q2,isPrimitive:Nf,isObject:lF,isError:K2,canEvaluate:oF,errorObj:Id,tryCatch:cF,inherits:uF,withAppended:dF,maybeWrapAsError:hF,toFastProperties:yF,filledRange:xF,toString:xu,canAttachTrace:Fd,ensureErrorObject:SF,originatesFromRejection:TF,markAsOriginatingFromRejection:wF,classString:H2,copyDescriptors:DF,hasDevTools:typeof chrome!="undefined"&&chrome&&typeof chrome.loadTimes=="function",isNode:OF,hasEnvVariables:J2,env:EF,global:aF,getNativePromise:IF,domainBind:NF};va.isRecentNode=va.isNode&&function(){var t=process.versions.node.split(".").map(Number);return t[0]===0&&t[1]>10||t[0]>0}();va.isNode&&va.toFastProperties(process);try{throw new Error}catch(t){va.lastLineError=t}var At=va,Ff={exports:{}},Pd=At,io,FF=function(){throw new Error(`No async scheduler available
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`)},Ah=Pd.getNativePromise();if(Pd.isNode&&typeof MutationObserver=="undefined"){var PF=qe.setImmediate,LF=process.nextTick;io=Pd.isRecentNode?function(t){PF.call(qe,t)}:function(t){LF.call(process,t)}}else if(typeof Ah=="function"&&typeof Ah.resolve=="function"){var MF=Ah.resolve();io=function(t){MF.then(t)}}else typeof MutationObserver!="undefined"&&!(typeof window!="undefined"&&window.navigator&&(window.navigator.standalone||window.cordova))?io=function(){var t=document.createElement("div"),e={attributes:!0},n=!1,r=document.createElement("div"),i=new MutationObserver(function(){t.classList.toggle("foo"),n=!1});i.observe(r,e);var o=function(){n||(n=!0,r.classList.toggle("foo"))};return function(s){var c=new MutationObserver(function(){c.disconnect(),s()});c.observe(t,e),o()}}():typeof setImmediate!="undefined"?io=function(t){setImmediate(t)}:typeof setTimeout!="undefined"?io=function(t){setTimeout(t,0)}:io=FF;var CF=io;function AF(t,e,n,r,i){for(var o=0;o<i;++o)n[o+r]=t[o+e],t[o+e]=void 0}function Qi(t){this._capacity=t,this._length=0,this._front=0}Qi.prototype._willBeOverCapacity=function(t){return this._capacity<t};Qi.prototype._pushOne=function(t){var e=this.length();this._checkCapacity(e+1);var n=this._front+e&this._capacity-1;this[n]=t,this._length=e+1};Qi.prototype.push=function(t,e,n){var r=this.length()+3;if(this._willBeOverCapacity(r)){this._pushOne(t),this._pushOne(e),this._pushOne(n);return}var i=this._front+r-3;this._checkCapacity(r);var o=this._capacity-1;this[i+0&o]=t,this[i+1&o]=e,this[i+2&o]=n,this._length=r};Qi.prototype.shift=function(){var t=this._front,e=this[t];return this[t]=void 0,this._front=t+1&this._capacity-1,this._length--,e};Qi.prototype.length=function(){return this._length};Qi.prototype._checkCapacity=function(t){this._capacity<t&&this._resizeTo(this._capacity<<1)};Qi.prototype._resizeTo=function(t){var e=this._capacity;this._capacity=t;var n=this._front,r=this._length,i=n+r&e-1;AF(this,0,this,e,i)};var UF=Qi,z2;try{throw new Error}catch(t){z2=t}var WF=CF,i0=UF,$2=At;function Rn(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new i0(16),this._normalQueue=new i0(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var t=this;this.drainQueues=function(){t._drainQueues()},this._schedule=WF}Rn.prototype.setScheduler=function(t){var e=this._schedule;return this._schedule=t,this._customScheduler=!0,e};Rn.prototype.hasCustomScheduler=function(){return this._customScheduler};Rn.prototype.enableTrampoline=function(){this._trampolineEnabled=!0};Rn.prototype.disableTrampolineIfNecessary=function(){$2.hasDevTools&&(this._trampolineEnabled=!1)};Rn.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};Rn.prototype.fatalError=function(t,e){e?(process.stderr.write("Fatal "+(t instanceof Error?t.stack:t)+`
|
|
`),process.exit(2)):this.throwLater(t)};Rn.prototype.throwLater=function(t,e){if(arguments.length===1&&(e=t,t=function(){throw e}),typeof setTimeout!="undefined")setTimeout(function(){t(e)},0);else try{this._schedule(function(){t(e)})}catch{throw new Error(`No async scheduler available
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`)}};function o0(t,e,n){this._lateQueue.push(t,e,n),this._queueTick()}function a0(t,e,n){this._normalQueue.push(t,e,n),this._queueTick()}function s0(t){this._normalQueue._pushOne(t),this._queueTick()}$2.hasDevTools?(Rn.prototype.invokeLater=function(t,e,n){this._trampolineEnabled?o0.call(this,t,e,n):this._schedule(function(){setTimeout(function(){t.call(e,n)},100)})},Rn.prototype.invoke=function(t,e,n){this._trampolineEnabled?a0.call(this,t,e,n):this._schedule(function(){t.call(e,n)})},Rn.prototype.settlePromises=function(t){this._trampolineEnabled?s0.call(this,t):this._schedule(function(){t._settlePromises()})}):(Rn.prototype.invokeLater=o0,Rn.prototype.invoke=a0,Rn.prototype.settlePromises=s0);Rn.prototype._drainQueue=function(t){for(;t.length()>0;){var e=t.shift();if(typeof e!="function"){e._settlePromises();continue}var n=t.shift(),r=t.shift();e.call(n,r)}};Rn.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)};Rn.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))};Rn.prototype._reset=function(){this._isTickUsed=!1};Ff.exports=Rn;Ff.exports.firstLineError=z2;var Pf=Bi.exports,XF=Pf.freeze,j2=At,q2=j2.inherits,$o=j2.notEnumerableProp;function ba(t,e){function n(r){if(!(this instanceof n))return new n(r);$o(this,"message",typeof r=="string"?r:e),$o(this,"name",t),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return q2(n,Error),n}var Ld,Md,VF=ba("Warning","warning"),YF=ba("CancellationError","cancellation error"),BF=ba("TimeoutError","timeout error"),Ys=ba("AggregateError","aggregate error");try{Ld=TypeError,Md=RangeError}catch{Ld=ba("TypeError","type error"),Md=ba("RangeError","range error")}var Ac="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" ");for(var qa=0;qa<Ac.length;++qa)typeof Array.prototype[Ac[qa]]=="function"&&(Ys.prototype[Ac[qa]]=Array.prototype[Ac[qa]]);Pf.defineProperty(Ys.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0});Ys.prototype.isOperational=!0;var Uc=0;Ys.prototype.toString=function(){var t=Array(Uc*4+1).join(" "),e=`
|
|
`+t+`AggregateError of:
|
|
`;Uc++,t=Array(Uc*4+1).join(" ");for(var n=0;n<this.length;++n){for(var r=this[n]===this?"[Circular AggregateError]":this[n]+"",i=r.split(`
|
|
`),o=0;o<i.length;++o)i[o]=t+i[o];r=i.join(`
|
|
`),e+=r+`
|
|
`}return Uc--,e};function Os(t){if(!(this instanceof Os))return new Os(t);$o(this,"name","OperationalError"),$o(this,"message",t),this.cause=t,this.isOperational=!0,t instanceof Error?($o(this,"message",t.message),$o(this,"stack",t.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}q2(Os,Error);var lo=Error.__BluebirdErrorTypes__;lo||(lo=XF({CancellationError:YF,TimeoutError:BF,OperationalError:Os,RejectionError:Os,AggregateError:Ys}),Pf.defineProperty(Error,"__BluebirdErrorTypes__",{value:lo,writable:!1,enumerable:!1,configurable:!1}));var ki={Error,TypeError:Ld,RangeError:Md,CancellationError:lo.CancellationError,OperationalError:lo.OperationalError,TimeoutError:lo.TimeoutError,AggregateError:lo.AggregateError,Warning:VF},kF=function(t,e){var n=At,r=n.errorObj,i=n.isObject;function o(h,f){if(i(h)){if(h instanceof t)return h;var d=s(h);if(d===r){f&&f._pushContext();var p=t.reject(d.e);return f&&f._popContext(),p}else if(typeof d=="function"){if(u(h)){var p=new t(e);return h._then(p._fulfill,p._reject,void 0,p,null),p}return l(h,d,f)}}return h}function a(h){return h.then}function s(h){try{return a(h)}catch(f){return r.e=f,r}}var c={}.hasOwnProperty;function u(h){try{return c.call(h,"_promise0")}catch{return!1}}function l(h,f,d){var p=new t(e),g=p;d&&d._pushContext(),p._captureStackTrace(),d&&d._popContext();var y=!0,R=n.tryCatch(f).call(h,m,v);y=!1,p&&R===r&&(p._rejectCallback(R.e,!0,!0),p=null);function m(x){!p||(p._resolveCallback(x),p=null)}function v(x){!p||(p._rejectCallback(x,y,!0),p=null)}return g}return o},ZF=function(t,e,n,r,i){var o=At;o.isArray;function a(c){switch(c){case-2:return[];case-3:return{}}}function s(c){var u=this._promise=new t(e);c instanceof t&&u._propagateFrom(c,3),u._setOnCancel(this),this._values=c,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return o.inherits(s,i),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function c(u,l){var h=n(this._values,this._promise);if(h instanceof t){h=h._target();var f=h._bitField;if(this._values=h,(f&50397184)===0)return this._promise._setAsyncGuaranteed(),h._then(c,this._reject,void 0,this,l);if((f&33554432)!==0)h=h._value();else return(f&16777216)!==0?this._reject(h._reason()):this._cancel()}if(h=o.asArray(h),h===null){var d=r("expecting an array or an iterable object but got "+o.classString(h)).reason();this._promise._rejectCallback(d,!1);return}if(h.length===0){l===-5?this._resolveEmptyArray():this._resolve(a(l));return}this._iterate(h)},s.prototype._iterate=function(c){var u=this.getActualLength(c.length);this._length=u,this._values=this.shouldCopyValues()?new Array(u):this._values;for(var l=this._promise,h=!1,f=null,d=0;d<u;++d){var p=n(c[d],l);p instanceof t?(p=p._target(),f=p._bitField):f=null,h?f!==null&&p.suppressUnhandledRejections():f!==null?(f&50397184)===0?(p._proxy(this,d),this._values[d]=p):(f&33554432)!==0?h=this._promiseFulfilled(p._value(),d):(f&16777216)!==0?h=this._promiseRejected(p._reason(),d):h=this._promiseCancelled(d):h=this._promiseFulfilled(p,d)}h||l._setAsyncGuaranteed()},s.prototype._isResolved=function(){return this._values===null},s.prototype._resolve=function(c){this._values=null,this._promise._fulfill(c)},s.prototype._cancel=function(){this._isResolved()||!this._promise._isCancellable()||(this._values=null,this._promise._cancel())},s.prototype._reject=function(c){this._values=null,this._promise._rejectCallback(c,!1)},s.prototype._promiseFulfilled=function(c,u){this._values[u]=c;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(c){return this._totalResolved++,this._reject(c),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var c=this._values;if(this._cancel(),c instanceof t)c.cancel();else for(var u=0;u<c.length;++u)c[u]instanceof t&&c[u].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(c){return c},s},QF=function(t){var e=!1,n=[];t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){};function r(){this._trace=new r.CapturedTrace(o())}r.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(this._trace!==void 0){var a=n.pop(),s=a._promiseCreated;return a._promiseCreated=null,s}return null};function i(){if(e)return new r}function o(){var a=n.length-1;if(a>=0)return n[a]}return r.CapturedTrace=null,r.create=i,r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var a=t.prototype._pushContext,s=t.prototype._popContext,c=t._peekContext,u=t.prototype._peekContext,l=t.prototype._promiseCreated;r.deactivateLongStackTraces=function(){t.prototype._pushContext=a,t.prototype._popContext=s,t._peekContext=c,t.prototype._peekContext=u,t.prototype._promiseCreated=l,e=!1},e=!0,t.prototype._pushContext=r.prototype._pushContext,t.prototype._popContext=r.prototype._popContext,t._peekContext=t.prototype._peekContext=o,t.prototype._promiseCreated=function(){var h=this._peekContext();h&&h._promiseCreated==null&&(h._promiseCreated=this)}},r},KF=function(t,e){var n=t._getDomain,r=t._async,i=ki.Warning,o=At,a=o.canAttachTrace,s,c,u=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,l=/\((?:timers\.js):\d+:\d+\)/,h=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,f=null,d=null,p=!1,g,y=!!(o.env("BLUEBIRD_DEBUG")!=0&&(o.env("BLUEBIRD_DEBUG")||o.env("NODE_ENV")==="development")),R=!!(o.env("BLUEBIRD_WARNINGS")!=0&&(y||o.env("BLUEBIRD_WARNINGS"))),m=!!(o.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(y||o.env("BLUEBIRD_LONG_STACK_TRACES"))),v=o.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(R||!!o.env("BLUEBIRD_W_FORGOTTEN_RETURN"));t.prototype.suppressUnhandledRejections=function(){var j=this._target();j._bitField=j._bitField&-1048577|524288},t.prototype._ensurePossibleRejectionHandled=function(){(this._bitField&524288)===0&&(this._setRejectionIsUnhandled(),r.invokeLater(this._notifyUnhandledRejection,this,void 0))},t.prototype._notifyUnhandledRejectionIsHandled=function(){te("rejectionHandled",s,void 0,this)},t.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456},t.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0},t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var j=this._settledValue();this._setUnhandledRejectionIsNotified(),te("unhandledRejection",c,j,this)}},t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144},t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},t.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0},t.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576},t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},t.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0},t.prototype._warn=function(j,re,ce){return q(j,re,ce||this)},t.onPossiblyUnhandledRejection=function(j){var re=n();c=typeof j=="function"?re===null?j:o.domainBind(re,j):void 0},t.onUnhandledRejectionHandled=function(j){var re=n();s=typeof j=="function"?re===null?j:o.domainBind(re,j):void 0};var x=function(){};t.longStackTraces=function(){if(r.haveItemsQueued()&&!K.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`);if(!K.longStackTraces&&oe()){var j=t.prototype._captureStackTrace,re=t.prototype._attachExtraTrace;K.longStackTraces=!0,x=function(){if(r.haveItemsQueued()&&!K.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`);t.prototype._captureStackTrace=j,t.prototype._attachExtraTrace=re,e.deactivateLongStackTraces(),r.enableTrampoline(),K.longStackTraces=!1},t.prototype._captureStackTrace=$,t.prototype._attachExtraTrace=V,e.activateLongStackTraces(),r.disableTrampolineIfNecessary()}},t.hasLongStackTraces=function(){return K.longStackTraces&&oe()};var _=function(){try{if(typeof CustomEvent=="function"){var j=new CustomEvent("CustomEvent");return o.global.dispatchEvent(j),function(re,ce){var he=new CustomEvent(re.toLowerCase(),{detail:ce,cancelable:!0});return!o.global.dispatchEvent(he)}}else if(typeof Event=="function"){var j=new Event("CustomEvent");return o.global.dispatchEvent(j),function(ce,he){var ve=new Event(ce.toLowerCase(),{cancelable:!0});return ve.detail=he,!o.global.dispatchEvent(ve)}}else{var j=document.createEvent("CustomEvent");return j.initCustomEvent("testingtheevent",!1,!0,{}),o.global.dispatchEvent(j),function(ce,he){var ve=document.createEvent("CustomEvent");return ve.initCustomEvent(ce.toLowerCase(),!1,!0,he),!o.global.dispatchEvent(ve)}}}catch{}return function(){return!1}}(),E=function(){return o.isNode?function(){return process.emit.apply(process,arguments)}:o.global?function(j){var re="on"+j.toLowerCase(),ce=o.global[re];return ce?(ce.apply(o.global,[].slice.call(arguments,1)),!0):!1}:function(){return!1}}();function N(j,re){return{promise:re}}var U={promiseCreated:N,promiseFulfilled:N,promiseRejected:N,promiseResolved:N,promiseCancelled:N,promiseChained:function(j,re,ce){return{promise:re,child:ce}},warning:function(j,re){return{warning:re}},unhandledRejection:function(j,re,ce){return{reason:re,promise:ce}},rejectionHandled:N},O=function(j){var re=!1;try{re=E.apply(null,arguments)}catch(he){r.throwLater(he),re=!0}var ce=!1;try{ce=_(j,U[j].apply(null,arguments))}catch(he){r.throwLater(he),ce=!0}return ce||re};t.config=function(j){if(j=Object(j),"longStackTraces"in j&&(j.longStackTraces?t.longStackTraces():!j.longStackTraces&&t.hasLongStackTraces()&&x()),"warnings"in j){var re=j.warnings;K.warnings=!!re,v=K.warnings,o.isObject(re)&&"wForgottenReturn"in re&&(v=!!re.wForgottenReturn)}if("cancellation"in j&&j.cancellation&&!K.cancellation){if(r.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");t.prototype._clearCancellationData=M,t.prototype._propagateFrom=C,t.prototype._onCancel=I,t.prototype._setOnCancel=b,t.prototype._attachCancellationCallback=T,t.prototype._execute=ne,A=C,K.cancellation=!0}return"monitoring"in j&&(j.monitoring&&!K.monitoring?(K.monitoring=!0,t.prototype._fireEvent=O):!j.monitoring&&K.monitoring&&(K.monitoring=!1,t.prototype._fireEvent=Q)),t};function Q(){return!1}t.prototype._fireEvent=Q,t.prototype._execute=function(j,re,ce){try{j(re,ce)}catch(he){return he}},t.prototype._onCancel=function(){},t.prototype._setOnCancel=function(j){},t.prototype._attachCancellationCallback=function(j){},t.prototype._captureStackTrace=function(){},t.prototype._attachExtraTrace=function(){},t.prototype._clearCancellationData=function(){},t.prototype._propagateFrom=function(j,re){};function ne(j,re,ce){var he=this;try{j(re,ce,function(ve){if(typeof ve!="function")throw new TypeError("onCancel must be a function, got: "+o.toString(ve));he._attachCancellationCallback(ve)})}catch(ve){return ve}}function T(j){if(!this._isCancellable())return this;var re=this._onCancel();re!==void 0?o.isArray(re)?re.push(j):this._setOnCancel([re,j]):this._setOnCancel(j)}function I(){return this._onCancelField}function b(j){this._onCancelField=j}function M(){this._cancellationParent=void 0,this._onCancelField=void 0}function C(j,re){if((re&1)!==0){this._cancellationParent=j;var ce=j._branchesRemainingToCancel;ce===void 0&&(ce=0),j._branchesRemainingToCancel=ce+1}(re&2)!==0&&j._isBound()&&this._setBoundTo(j._boundTo)}function F(j,re){(re&2)!==0&&j._isBound()&&this._setBoundTo(j._boundTo)}var A=F;function B(){var j=this._boundTo;return j!==void 0&&j instanceof t?j.isFulfilled()?j.value():void 0:j}function $(){this._trace=new J(this._peekContext())}function V(j,re){if(a(j)){var ce=this._trace;if(ce!==void 0&&re&&(ce=ce._parent),ce!==void 0)ce.attachExtraTrace(j);else if(!j.__stackCleaned__){var he=G(j);o.notEnumerableProp(j,"stack",he.message+`
|
|
`+he.stack.join(`
|
|
`)),o.notEnumerableProp(j,"__stackCleaned__",!0)}}}function L(j,re,ce,he,ve){if(j===void 0&&re!==null&&v){if(ve!==void 0&&ve._returnedNonUndefined()||(he._bitField&65535)===0)return;ce&&(ce=ce+" ");var _e="",Fe="";if(re._trace){for(var Xe=re._trace.stack.split(`
|
|
`),Qe=X(Xe),Ge=Qe.length-1;Ge>=0;--Ge){var Ve=Qe[Ge];if(!l.test(Ve)){var at=Ve.match(h);at&&(_e="at "+at[1]+":"+at[2]+":"+at[3]+" ");break}}if(Qe.length>0){for(var It=Qe[0],Ge=0;Ge<Xe.length;++Ge)if(Xe[Ge]===It){Ge>0&&(Fe=`
|
|
`+Xe[Ge-1]);break}}}var Rt="a promise was created in a "+ce+"handler "+_e+"but was not returned from it, see http://goo.gl/rRqMUw"+Fe;he._warn(Rt,!0,re)}}function z(j,re){var ce=j+" is deprecated and will be removed in a future version.";return re&&(ce+=" Use "+re+" instead."),q(ce)}function q(j,re,ce){if(!!K.warnings){var he=new i(j),ve;if(re)ce._attachExtraTrace(he);else if(K.longStackTraces&&(ve=t._peekContext()))ve.attachExtraTrace(he);else{var _e=G(he);he.stack=_e.message+`
|
|
`+_e.stack.join(`
|
|
`)}O("warning",he)||H(he,"",!0)}}function se(j,re){for(var ce=0;ce<re.length-1;++ce)re[ce].push("From previous event:"),re[ce]=re[ce].join(`
|
|
`);return ce<re.length&&(re[ce]=re[ce].join(`
|
|
`)),j+`
|
|
`+re.join(`
|
|
`)}function ae(j){for(var re=0;re<j.length;++re)(j[re].length===0||re+1<j.length&&j[re][0]===j[re+1][0])&&(j.splice(re,1),re--)}function Y(j){for(var re=j[0],ce=1;ce<j.length;++ce){for(var he=j[ce],ve=re.length-1,_e=re[ve],Fe=-1,Xe=he.length-1;Xe>=0;--Xe)if(he[Xe]===_e){Fe=Xe;break}for(var Xe=Fe;Xe>=0;--Xe){var Qe=he[Xe];if(re[ve]===Qe)re.pop(),ve--;else break}re=he}}function X(j){for(var re=[],ce=0;ce<j.length;++ce){var he=j[ce],ve=he===" (No stack trace)"||f.test(he),_e=ve&&W(he);ve&&!_e&&(p&&he.charAt(0)!==" "&&(he=" "+he),re.push(he))}return re}function k(j){for(var re=j.stack.replace(/\s+$/g,"").split(`
|
|
`),ce=0;ce<re.length;++ce){var he=re[ce];if(he===" (No stack trace)"||f.test(he))break}return ce>0&&j.name!="SyntaxError"&&(re=re.slice(ce)),re}function G(j){var re=j.stack,ce=j.toString();return re=typeof re=="string"&&re.length>0?k(j):[" (No stack trace)"],{message:ce,stack:j.name=="SyntaxError"?re:X(re)}}function H(j,re,ce){if(typeof console!="undefined"){var he;if(o.isObject(j)){var ve=j.stack;he=re+d(ve,j)}else he=re+String(j);typeof g=="function"?g(he,ce):(typeof console.log=="function"||typeof console.log=="object")&&console.log(he)}}function te(j,re,ce,he){var ve=!1;try{typeof re=="function"&&(ve=!0,j==="rejectionHandled"?re(he):re(ce,he))}catch(_e){r.throwLater(_e)}j==="unhandledRejection"?!O(j,ce,he)&&!ve&&H(ce,"Unhandled rejection "):O(j,he)}function pe(j){var re;if(typeof j=="function")re="[function "+(j.name||"anonymous")+"]";else{re=j&&typeof j.toString=="function"?j.toString():o.toString(j);var ce=/\[object [a-zA-Z0-9$_]+\]/;if(ce.test(re))try{var he=JSON.stringify(j);re=he}catch{}re.length===0&&(re="(empty array)")}return"(<"+D(re)+">, no stack trace)"}function D(j){var re=41;return j.length<re?j:j.substr(0,re-3)+"..."}function oe(){return typeof ie=="function"}var W=function(){return!1},w=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function S(j){var re=j.match(w);if(re)return{fileName:re[1],line:parseInt(re[2],10)}}function P(j,re){if(!!oe()){for(var ce=j.stack.split(`
|
|
`),he=re.stack.split(`
|
|
`),ve=-1,_e=-1,Fe,Xe,Qe=0;Qe<ce.length;++Qe){var Ge=S(ce[Qe]);if(Ge){Fe=Ge.fileName,ve=Ge.line;break}}for(var Qe=0;Qe<he.length;++Qe){var Ge=S(he[Qe]);if(Ge){Xe=Ge.fileName,_e=Ge.line;break}}ve<0||_e<0||!Fe||!Xe||Fe!==Xe||ve>=_e||(W=function(Ve){if(u.test(Ve))return!0;var at=S(Ve);return!!(at&&at.fileName===Fe&&ve<=at.line&&at.line<=_e)})}}function J(j){this._parent=j,this._promisesCreated=0;var re=this._length=1+(j===void 0?0:j._length);ie(this,J),re>32&&this.uncycle()}o.inherits(J,Error),e.CapturedTrace=J,J.prototype.uncycle=function(){var j=this._length;if(!(j<2)){for(var re=[],ce={},he=0,ve=this;ve!==void 0;++he)re.push(ve),ve=ve._parent;j=this._length=he;for(var he=j-1;he>=0;--he){var _e=re[he].stack;ce[_e]===void 0&&(ce[_e]=he)}for(var he=0;he<j;++he){var Fe=re[he].stack,Xe=ce[Fe];if(Xe!==void 0&&Xe!==he){Xe>0&&(re[Xe-1]._parent=void 0,re[Xe-1]._length=1),re[he]._parent=void 0,re[he]._length=1;var Qe=he>0?re[he-1]:this;Xe<j-1?(Qe._parent=re[Xe+1],Qe._parent.uncycle(),Qe._length=Qe._parent._length+1):(Qe._parent=void 0,Qe._length=1);for(var Ge=Qe._length+1,Ve=he-2;Ve>=0;--Ve)re[Ve]._length=Ge,Ge++;return}}}},J.prototype.attachExtraTrace=function(j){if(!j.__stackCleaned__){this.uncycle();for(var re=G(j),ce=re.message,he=[re.stack],ve=this;ve!==void 0;)he.push(X(ve.stack.split(`
|
|
`))),ve=ve._parent;Y(he),ae(he),o.notEnumerableProp(j,"stack",se(ce,he)),o.notEnumerableProp(j,"__stackCleaned__",!0)}};var ie=function(){var re=/^\s*at\s*/,ce=function(Fe,Xe){return typeof Fe=="string"?Fe:Xe.name!==void 0&&Xe.message!==void 0?Xe.toString():pe(Xe)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,f=re,d=ce;var he=Error.captureStackTrace;return W=function(Fe){return u.test(Fe)},function(Fe,Xe){Error.stackTraceLimit+=6,he(Fe,Xe),Error.stackTraceLimit-=6}}var ve=new Error;if(typeof ve.stack=="string"&&ve.stack.split(`
|
|
`)[0].indexOf("stackDetection@")>=0)return f=/@/,d=ce,p=!0,function(Xe){Xe.stack=new Error().stack};var _e;try{throw new Error}catch(Fe){_e="stack"in Fe}return!("stack"in ve)&&_e&&typeof Error.stackTraceLimit=="number"?(f=re,d=ce,function(Xe){Error.stackTraceLimit+=6;try{throw new Error}catch(Qe){Xe.stack=Qe.stack}Error.stackTraceLimit-=6}):(d=function(Fe,Xe){return typeof Fe=="string"?Fe:(typeof Xe=="object"||typeof Xe=="function")&&Xe.name!==void 0&&Xe.message!==void 0?Xe.toString():pe(Xe)},null)}();typeof console!="undefined"&&typeof console.warn!="undefined"&&(g=function(j){console.warn(j)},o.isNode&&process.stderr.isTTY?g=function(j,re){var ce=re?"\x1B[33m":"\x1B[31m";console.warn(ce+j+`\x1B[0m
|
|
`)}:!o.isNode&&typeof new Error().stack=="string"&&(g=function(j,re){console.warn("%c"+j,re?"color: darkorange":"color: red")}));var K={warnings:R,longStackTraces:!1,cancellation:!1,monitoring:!1};return m&&t.longStackTraces(),{longStackTraces:function(){return K.longStackTraces},warnings:function(){return K.warnings},cancellation:function(){return K.cancellation},monitoring:function(){return K.monitoring},propagateFromFunction:function(){return A},boundValueFunction:function(){return B},checkForgottenReturns:L,setBounds:P,warn:q,deprecated:z,CapturedTrace:J,fireDomEvent:_,fireGlobalEvent:E}},HF=function(t,e){var n=At,r=t.CancellationError,i=n.errorObj;function o(h,f,d){this.promise=h,this.type=f,this.handler=d,this.called=!1,this.cancelPromise=null}o.prototype.isFinallyHandler=function(){return this.type===0};function a(h){this.finallyHandler=h}a.prototype._resultCancelled=function(){s(this.finallyHandler)};function s(h,f){return h.cancelPromise!=null?(arguments.length>1?h.cancelPromise._reject(f):h.cancelPromise._cancel(),h.cancelPromise=null,!0):!1}function c(){return l.call(this,this.promise._target()._settledValue())}function u(h){if(!s(this,h))return i.e=h,i}function l(h){var f=this.promise,d=this.handler;if(!this.called){this.called=!0;var p=this.isFinallyHandler()?d.call(f._boundValue()):d.call(f._boundValue(),h);if(p!==void 0){f._setReturnedNonUndefined();var g=e(p,f);if(g instanceof t){if(this.cancelPromise!=null)if(g._isCancelled()){var y=new r("late cancellation observer");return f._attachExtraTrace(y),i.e=y,i}else g.isPending()&&g._attachCancellationCallback(new a(this));return g._then(c,u,void 0,this,void 0)}}}return f.isRejected()?(s(this),i.e=h,i):(s(this),h)}return t.prototype._passThrough=function(h,f,d,p){return typeof h!="function"?this.then():this._then(d,p,void 0,new o(this,f,h),void 0)},t.prototype.lastly=t.prototype.finally=function(h){return this._passThrough(h,0,l,l)},t.prototype.tap=function(h){return this._passThrough(h,1,l)},o},GF=function(t){var e=At,n=Bi.exports.keys,r=e.tryCatch,i=e.errorObj;function o(a,s,c){return function(u){var l=c._boundValue();e:for(var h=0;h<a.length;++h){var f=a[h];if(f===Error||f!=null&&f.prototype instanceof Error){if(u instanceof f)return r(s).call(l,u)}else if(typeof f=="function"){var d=r(f).call(l,u);if(d===i)return d;if(d)return r(s).call(l,u)}else if(e.isObject(u)){for(var p=n(f),g=0;g<p.length;++g){var y=p[g];if(f[y]!=u[y])continue e}return r(s).call(l,u)}}return t}}return o},ey=At,JF=ey.maybeWrapAsError,zF=ki,$F=zF.OperationalError,ty=Bi.exports;function jF(t){return t instanceof Error&&ty.getPrototypeOf(t)===Error.prototype}var qF=/^(?:name|message|stack|cause)$/;function eP(t){var e;if(jF(t)){e=new $F(t),e.name=t.name,e.message=t.message,e.stack=t.stack;for(var n=ty.keys(t),r=0;r<n.length;++r){var i=n[r];qF.test(i)||(e[i]=t[i])}return e}return ey.markAsOriginatingFromRejection(t),t}function tP(t,e){return function(n,r){if(t!==null){if(n){var i=eP(JF(n));t._attachExtraTrace(i),t._reject(i)}else if(!e)t._fulfill(r);else{for(var o=arguments.length,a=new Array(Math.max(o-1,0)),s=1;s<o;++s)a[s-1]=arguments[s];t._fulfill(a)}t=null}}}var ny=tP,nP=function(t,e,n,r,i){var o=At,a=o.tryCatch;t.method=function(s){if(typeof s!="function")throw new t.TypeError("expecting a function but got "+o.classString(s));return function(){var c=new t(e);c._captureStackTrace(),c._pushContext();var u=a(s).apply(this,arguments),l=c._popContext();return i.checkForgottenReturns(u,l,"Promise.method",c),c._resolveFromSyncValue(u),c}},t.attempt=t.try=function(s){if(typeof s!="function")return r("expecting a function but got "+o.classString(s));var c=new t(e);c._captureStackTrace(),c._pushContext();var u;if(arguments.length>1){i.deprecated("calling Promise.try with more than 1 argument");var l=arguments[1],h=arguments[2];u=o.isArray(l)?a(s).apply(h,l):a(s).call(h,l)}else u=a(s)();var f=c._popContext();return i.checkForgottenReturns(u,f,"Promise.try",c),c._resolveFromSyncValue(u),c},t.prototype._resolveFromSyncValue=function(s){s===o.errorObj?this._rejectCallback(s.e,!1):this._resolveCallback(s,!0)}},rP=function(t,e,n,r){var i=!1,o=function(u,l){this._reject(l)},a=function(u,l){l.promiseRejectionQueued=!0,l.bindingPromise._then(o,o,null,this,u)},s=function(u,l){(this._bitField&50397184)===0&&this._resolveCallback(l.target)},c=function(u,l){l.promiseRejectionQueued||this._reject(u)};t.prototype.bind=function(u){i||(i=!0,t.prototype._propagateFrom=r.propagateFromFunction(),t.prototype._boundValue=r.boundValueFunction());var l=n(u),h=new t(e);h._propagateFrom(this,1);var f=this._target();if(h._setBoundTo(l),l instanceof t){var d={promiseRejectionQueued:!1,promise:h,target:f,bindingPromise:l};f._then(e,a,void 0,h,d),l._then(s,c,void 0,h,d),h._setOnCancel(l)}else h._resolveCallback(f);return h},t.prototype._setBoundTo=function(u){u!==void 0?(this._bitField=this._bitField|2097152,this._boundTo=u):this._bitField=this._bitField&-2097153},t.prototype._isBound=function(){return(this._bitField&2097152)===2097152},t.bind=function(u,l){return t.resolve(l).bind(u)}},iP=function(t,e,n,r){var i=At,o=i.tryCatch,a=i.errorObj,s=t._async;t.prototype.break=t.prototype.cancel=function(){if(!r.cancellation())return this._warn("cancellation is disabled");for(var c=this,u=c;c._isCancellable();){if(!c._cancelBy(u)){u._isFollowing()?u._followee().cancel():u._cancelBranched();break}var l=c._cancellationParent;if(l==null||!l._isCancellable()){c._isFollowing()?c._followee().cancel():c._cancelBranched();break}else c._isFollowing()&&c._followee().cancel(),c._setWillBeCancelled(),u=c,c=l}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(c){return c===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1)},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){!this._isCancellable()||(this._setCancelled(),s.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(c,u){if(i.isArray(c))for(var l=0;l<c.length;++l)this._doInvokeOnCancel(c[l],u);else if(c!==void 0)if(typeof c=="function"){if(!u){var h=o(c).call(this._boundValue());h===a&&(this._attachExtraTrace(h.e),s.throwLater(h.e))}}else c._resultCancelled(this)},t.prototype._invokeOnCancel=function(){var c=this._onCancel();this._unsetOnCancel(),s.invoke(this._doInvokeOnCancel,this,c)},t.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},t.prototype._resultCancelled=function(){this.cancel()}},oP=function(t){function e(){return this.value}function n(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(r){return r instanceof t&&r.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:r},void 0)},t.prototype.throw=t.prototype.thenThrow=function(r){return this._then(n,void 0,void 0,{reason:r},void 0)},t.prototype.catchThrow=function(r){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:r},void 0);var i=arguments[1],o=function(){throw i};return this.caught(r,o)},t.prototype.catchReturn=function(r){if(arguments.length<=1)return r instanceof t&&r.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:r},void 0);var i=arguments[1];i instanceof t&&i.suppressUnhandledRejections();var o=function(){return i};return this.caught(r,o)}},aP=function(t){function e(c){c!==void 0?(c=c._target(),this._bitField=c._bitField,this._settledValueField=c._isFateSealed()?c._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}e.prototype._settledValue=function(){return this._settledValueField};var n=e.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()},r=e.prototype.error=e.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=e.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},o=e.prototype.isRejected=function(){return(this._bitField&16777216)!==0},a=e.prototype.isPending=function(){return(this._bitField&50397184)===0},s=e.prototype.isResolved=function(){return(this._bitField&50331648)!==0};e.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},t.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},t.prototype._isCancelled=function(){return this._target().__isCancelled()},t.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},t.prototype.isPending=function(){return a.call(this._target())},t.prototype.isRejected=function(){return o.call(this._target())},t.prototype.isFulfilled=function(){return i.call(this._target())},t.prototype.isResolved=function(){return s.call(this._target())},t.prototype.value=function(){return n.call(this._target())},t.prototype.reason=function(){var c=this._target();return c._unsetRejectionIsUnhandled(),r.call(c)},t.prototype._value=function(){return this._settledValue()},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=e},sP=function(t,e,n,r,i,o){var a=At,s=a.canEvaluate,c=a.tryCatch,u=a.errorObj,l;if(s){for(var h=function(m){return new Function("value","holder",`
|
|
'use strict';
|
|
holder.pIndex = value;
|
|
holder.checkFulfillment(this);
|
|
`.replace(/Index/g,m))},f=function(m){return new Function("promise","holder",`
|
|
'use strict';
|
|
holder.pIndex = promise;
|
|
`.replace(/Index/g,m))},d=function(m){for(var v=new Array(m),x=0;x<v.length;++x)v[x]="this.p"+(x+1);var _=v.join(" = ")+" = null;",E=`var promise;
|
|
`+v.map(function(Q){return`
|
|
promise = `+Q+`;
|
|
if (promise instanceof Promise) {
|
|
promise.cancel();
|
|
}
|
|
`}).join(`
|
|
`),N=v.join(", "),U="Holder$"+m,O=`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 O=O.replace(/\[TheName\]/g,U).replace(/\[TheTotal\]/g,m).replace(/\[ThePassedArguments\]/g,N).replace(/\[TheProperties\]/g,_).replace(/\[CancellationCode\]/g,E),new Function("tryCatch","errorObj","Promise","async",O)(c,u,t,i)},p=[],g=[],y=[],R=0;R<8;++R)p.push(d(R+1)),g.push(h(R+1)),y.push(f(R+1));l=function(m){this._reject(m)}}t.join=function(){var m=arguments.length-1,v;if(m>0&&typeof arguments[m]=="function"&&(v=arguments[m],m<=8&&s)){var b=new t(r);b._captureStackTrace();for(var x=p[m-1],_=new x(v),E=g,N=0;N<m;++N){var U=n(arguments[N],b);if(U instanceof t){U=U._target();var O=U._bitField;(O&50397184)===0?(U._then(E[N],l,void 0,b,_),y[N](U,_),_.asyncNeeded=!1):(O&33554432)!==0?E[N].call(b,U._value(),_):(O&16777216)!==0?b._reject(U._reason()):b._cancel()}else E[N].call(b,U,_)}if(!b._isFateSealed()){if(_.asyncNeeded){var Q=o();Q!==null&&(_.fn=a.domainBind(Q,_.fn))}b._setAsyncGuaranteed(),b._setOnCancel(_)}return b}for(var ne=arguments.length,T=new Array(ne),I=0;I<ne;++I)T[I]=arguments[I];v&&T.pop();var b=new e(T).promise();return v!==void 0?b.spread(v):b}},cP=function(t,e,n,r,i,o){var a=t._getDomain,s=At,c=s.tryCatch,u=s.errorObj,l=t._async;function h(d,p,g,y){this.constructor$(d),this._promise._captureStackTrace();var R=a();this._callback=R===null?p:s.domainBind(R,p),this._preservedValues=y===i?new Array(this.length()):null,this._limit=g,this._inFlight=0,this._queue=[],l.invoke(this._asyncInit,this,void 0)}s.inherits(h,e),h.prototype._asyncInit=function(){this._init$(void 0,-2)},h.prototype._init=function(){},h.prototype._promiseFulfilled=function(d,p){var g=this._values,y=this.length(),R=this._preservedValues,m=this._limit;if(p<0){if(p=p*-1-1,g[p]=d,m>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(m>=1&&this._inFlight>=m)return g[p]=d,this._queue.push(p),!1;R!==null&&(R[p]=d);var v=this._promise,x=this._callback,_=v._boundValue();v._pushContext();var E=c(x).call(_,d,p,y),N=v._popContext();if(o.checkForgottenReturns(E,N,R!==null?"Promise.filter":"Promise.map",v),E===u)return this._reject(E.e),!0;var U=r(E,this._promise);if(U instanceof t){U=U._target();var O=U._bitField;if((O&50397184)===0)return m>=1&&this._inFlight++,g[p]=U,U._proxy(this,(p+1)*-1),!1;if((O&33554432)!==0)E=U._value();else return(O&16777216)!==0?(this._reject(U._reason()),!0):(this._cancel(),!0)}g[p]=E}var Q=++this._totalResolved;return Q>=y?(R!==null?this._filter(g,R):this._resolve(g),!0):!1},h.prototype._drainQueue=function(){for(var d=this._queue,p=this._limit,g=this._values;d.length>0&&this._inFlight<p;){if(this._isResolved())return;var y=d.pop();this._promiseFulfilled(g[y],y)}},h.prototype._filter=function(d,p){for(var g=p.length,y=new Array(g),R=0,m=0;m<g;++m)d[m]&&(y[R++]=p[m]);y.length=R,this._resolve(y)},h.prototype.preservedValues=function(){return this._preservedValues};function f(d,p,g,y){if(typeof p!="function")return n("expecting a function but got "+s.classString(p));var R=0;if(g!==void 0)if(typeof g=="object"&&g!==null){if(typeof g.concurrency!="number")return t.reject(new TypeError("'concurrency' must be a number but it is "+s.classString(g.concurrency)));R=g.concurrency}else return t.reject(new TypeError("options argument must be an object but it is "+s.classString(g)));return R=typeof R=="number"&&isFinite(R)&&R>=1?R:0,new h(d,p,R,y).promise()}t.prototype.map=function(d,p){return f(this,d,p,null)},t.map=function(d,p,g,y){return f(d,p,g,y)}},Uh=Object.create;if(Uh){var ry=Uh(null),iy=Uh(null);ry[" size"]=iy[" size"]=0}var uP=function(t){var e=At,n=e.canEvaluate,r=e.isIdentifier,i,o;{var a=function(d){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,d))(u)},s=function(d){return new Function("obj",`
|
|
'use strict';
|
|
return obj.propertyName;
|
|
`.replace("propertyName",d))},c=function(d,p,g){var y=g[d];if(typeof y!="function"){if(!r(d))return null;if(y=p(d),g[d]=y,g[" size"]++,g[" size"]>512){for(var R=Object.keys(g),m=0;m<256;++m)delete g[R[m]];g[" size"]=R.length-256}}return y};i=function(d){return c(d,a,ry)},o=function(d){return c(d,s,iy)}}function u(d,p){var g;if(d!=null&&(g=d[p]),typeof g!="function"){var y="Object "+e.classString(d)+" has no method '"+e.toString(p)+"'";throw new t.TypeError(y)}return g}function l(d){var p=this.pop(),g=u(d,p);return g.apply(d,this)}t.prototype.call=function(d){for(var p=arguments.length,g=new Array(Math.max(p-1,0)),y=1;y<p;++y)g[y-1]=arguments[y];if(n){var R=i(d);if(R!==null)return this._then(R,void 0,void 0,g,void 0)}return g.push(d),this._then(l,void 0,void 0,g,void 0)};function h(d){return d[this]}function f(d){var p=+this;return p<0&&(p=Math.max(0,p+d.length)),d[p]}t.prototype.get=function(d){var p=typeof d=="number",g;if(p)g=f;else if(n){var y=o(d);g=y!==null?y:h}else g=h;return this._then(g,void 0,void 0,d,void 0)}},lP=function(t,e,n,r,i,o){var a=At,s=ki.TypeError,c=At.inherits,u=a.errorObj,l=a.tryCatch,h={};function f(v){setTimeout(function(){throw v},0)}function d(v){var x=n(v);return x!==v&&typeof v._isDisposable=="function"&&typeof v._getDisposer=="function"&&v._isDisposable()&&x._setDisposable(v._getDisposer()),x}function p(v,x){var _=0,E=v.length,N=new t(i);function U(){if(_>=E)return N._fulfill();var O=d(v[_++]);if(O instanceof t&&O._isDisposable()){try{O=n(O._getDisposer().tryDispose(x),v.promise)}catch(Q){return f(Q)}if(O instanceof t)return O._then(U,f,null,null,null)}U()}return U(),N}function g(v,x,_){this._data=v,this._promise=x,this._context=_}g.prototype.data=function(){return this._data},g.prototype.promise=function(){return this._promise},g.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():h},g.prototype.tryDispose=function(v){var x=this.resource(),_=this._context;_!==void 0&&_._pushContext();var E=x!==h?this.doDispose(x,v):null;return _!==void 0&&_._popContext(),this._promise._unsetDisposable(),this._data=null,E},g.isDisposer=function(v){return v!=null&&typeof v.resource=="function"&&typeof v.tryDispose=="function"};function y(v,x,_){this.constructor$(v,x,_)}c(y,g),y.prototype.doDispose=function(v,x){var _=this.data();return _.call(v,v,x)};function R(v){return g.isDisposer(v)?(this.resources[this.index]._setDisposable(v),v.promise()):v}function m(v){this.length=v,this.promise=null,this[v-1]=null}m.prototype._resultCancelled=function(){for(var v=this.length,x=0;x<v;++x){var _=this[x];_ instanceof t&&_.cancel()}},t.using=function(){var v=arguments.length;if(v<2)return e("you must pass at least 2 arguments to Promise.using");var x=arguments[v-1];if(typeof x!="function")return e("expecting a function but got "+a.classString(x));var _,E=!0;v===2&&Array.isArray(arguments[0])?(_=arguments[0],v=_.length,E=!1):(_=arguments,v--);for(var N=new m(v),U=0;U<v;++U){var O=_[U];if(g.isDisposer(O)){var Q=O;O=O.promise(),O._setDisposable(Q)}else{var ne=n(O);ne instanceof t&&(O=ne._then(R,null,null,{resources:N,index:U},void 0))}N[U]=O}for(var T=new Array(N.length),U=0;U<T.length;++U)T[U]=t.resolve(N[U]).reflect();var I=t.all(T).then(function(M){for(var C=0;C<M.length;++C){var F=M[C];if(F.isRejected())return u.e=F.error(),u;if(!F.isFulfilled()){I.cancel();return}M[C]=F.value()}b._pushContext(),x=l(x);var A=E?x.apply(void 0,M):x(M),B=b._popContext();return o.checkForgottenReturns(A,B,"Promise.using",b),A}),b=I.lastly(function(){var M=new t.PromiseInspection(I);return p(N,M)});return N.promise=b,b._setOnCancel(N),b},t.prototype._setDisposable=function(v){this._bitField=this._bitField|131072,this._disposer=v},t.prototype._isDisposable=function(){return(this._bitField&131072)>0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},t.prototype.disposer=function(v){if(typeof v=="function")return new y(v,this,r());throw new s}},hP=function(t,e,n){var r=At,i=t.TimeoutError;function o(h){this.handle=h}o.prototype._resultCancelled=function(){clearTimeout(this.handle)};var a=function(h){return s(+this).thenReturn(h)},s=t.delay=function(h,f){var d,p;return f!==void 0?(d=t.resolve(f)._then(a,null,null,h,void 0),n.cancellation()&&f instanceof t&&d._setOnCancel(f)):(d=new t(e),p=setTimeout(function(){d._fulfill()},+h),n.cancellation()&&d._setOnCancel(new o(p)),d._captureStackTrace()),d._setAsyncGuaranteed(),d};t.prototype.delay=function(h){return s(h,this)};var c=function(h,f,d){var p;typeof f!="string"?f instanceof Error?p=f:p=new i("operation timed out"):p=new i(f),r.markAsOriginatingFromRejection(p),h._attachExtraTrace(p),h._reject(p),d!=null&&d.cancel()};function u(h){return clearTimeout(this.handle),h}function l(h){throw clearTimeout(this.handle),h}t.prototype.timeout=function(h,f){h=+h;var d,p,g=new o(setTimeout(function(){d.isPending()&&c(d,f,p)},h));return n.cancellation()?(p=this.then(),d=p._then(u,l,void 0,g,void 0),d._setOnCancel(g)):d=this._then(u,l,void 0,g,void 0),d}},dP=function(t,e,n,r,i,o){var a=ki,s=a.TypeError,c=At,u=c.errorObj,l=c.tryCatch,h=[];function f(p,g,y){for(var R=0;R<g.length;++R){y._pushContext();var m=l(g[R])(p);if(y._popContext(),m===u){y._pushContext();var v=t.reject(u.e);return y._popContext(),v}var x=r(m,y);if(x instanceof t)return x}return null}function d(p,g,y,R){if(o.cancellation()){var m=new t(n),v=this._finallyPromise=new t(n);this._promise=m.lastly(function(){return v}),m._captureStackTrace(),m._setOnCancel(this)}else{var x=this._promise=new t(n);x._captureStackTrace()}this._stack=R,this._generatorFunction=p,this._receiver=g,this._generator=void 0,this._yieldHandlers=typeof y=="function"?[y].concat(h):h,this._yieldedPromise=null,this._cancellationPhase=!1}c.inherits(d,i),d.prototype._isResolved=function(){return this._promise===null},d.prototype._cleanup=function(){this._promise=this._generator=null,o.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},d.prototype._promiseCancelled=function(){if(!this._isResolved()){var p=typeof this._generator.return!="undefined",g;if(p)this._promise._pushContext(),g=l(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var y=new t.CancellationError("generator .return() sentinel");t.coroutine.returnSentinel=y,this._promise._attachExtraTrace(y),this._promise._pushContext(),g=l(this._generator.throw).call(this._generator,y),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(g)}},d.prototype._promiseFulfilled=function(p){this._yieldedPromise=null,this._promise._pushContext();var g=l(this._generator.next).call(this._generator,p);this._promise._popContext(),this._continue(g)},d.prototype._promiseRejected=function(p){this._yieldedPromise=null,this._promise._attachExtraTrace(p),this._promise._pushContext();var g=l(this._generator.throw).call(this._generator,p);this._promise._popContext(),this._continue(g)},d.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof t){var p=this._yieldedPromise;this._yieldedPromise=null,p.cancel()}},d.prototype.promise=function(){return this._promise},d.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},d.prototype._continue=function(p){var g=this._promise;if(p===u)return this._cleanup(),this._cancellationPhase?g.cancel():g._rejectCallback(p.e,!1);var y=p.value;if(p.done===!0)return this._cleanup(),this._cancellationPhase?g.cancel():g._resolveCallback(y);var R=r(y,this._promise);if(!(R instanceof t)&&(R=f(R,this._yieldHandlers,this._promise),R===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",y)+`From coroutine:
|
|
`+this._stack.split(`
|
|
`).slice(1,-7).join(`
|
|
`)));return}R=R._target();var m=R._bitField;(m&50397184)===0?(this._yieldedPromise=R,R._proxy(this,null)):(m&33554432)!==0?t._async.invoke(this._promiseFulfilled,this,R._value()):(m&16777216)!==0?t._async.invoke(this._promiseRejected,this,R._reason()):this._promiseCancelled()},t.coroutine=function(p,g){if(typeof p!="function")throw new s(`generatorFunction must be a function
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`);var y=Object(g).yieldHandler,R=d,m=new Error().stack;return function(){var v=p.apply(this,arguments),x=new R(void 0,void 0,y,m),_=x.promise();return x._generator=v,x._promiseFulfilled(void 0),_}},t.coroutine.addYieldHandler=function(p){if(typeof p!="function")throw new s("expecting a function but got "+c.classString(p));h.push(p)},t.spawn=function(p){if(o.deprecated("Promise.spawn()","Promise.coroutine()"),typeof p!="function")return e(`generatorFunction must be a function
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`);var g=new d(p,this),y=g.promise();return g._run(t.spawn),y}},fP=function(t){var e=At,n=t._async,r=e.tryCatch,i=e.errorObj;function o(c,u){var l=this;if(!e.isArray(c))return a.call(l,c,u);var h=r(u).apply(l._boundValue(),[null].concat(c));h===i&&n.throwLater(h.e)}function a(c,u){var l=this,h=l._boundValue(),f=c===void 0?r(u).call(h,null):r(u).call(h,null,c);f===i&&n.throwLater(f.e)}function s(c,u){var l=this;if(!c){var h=new Error(c+"");h.cause=c,c=h}var f=r(u).call(l._boundValue(),c);f===i&&n.throwLater(f.e)}t.prototype.asCallback=t.prototype.nodeify=function(c,u){if(typeof c=="function"){var l=a;u!==void 0&&Object(u).spread&&(l=o),this._then(l,s,void 0,this,c)}return this}},pP=function(t,e){var n={},r=At,i=ny,o=r.withAppended,a=r.maybeWrapAsError,s=r.canEvaluate,c=ki.TypeError,u="Async",l={__isPromisified__:!0},h=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],f=new RegExp("^(?:"+h.join("|")+")$"),d=function(I){return r.isIdentifier(I)&&I.charAt(0)!=="_"&&I!=="constructor"};function p(I){return!f.test(I)}function g(I){try{return I.__isPromisified__===!0}catch{return!1}}function y(I,b,M){var C=r.getDataPropertyOrDefault(I,b+M,l);return C?g(C):!1}function R(I,b,M){for(var C=0;C<I.length;C+=2){var F=I[C];if(M.test(F)){for(var A=F.replace(M,""),B=0;B<I.length;B+=2)if(I[B]===A)throw new c(`Cannot promisify an API that has normal methods with '%s'-suffix
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`.replace("%s",b))}}}function m(I,b,M,C){for(var F=r.inheritedDataKeys(I),A=[],B=0;B<F.length;++B){var $=F[B],V=I[$],L=C===d?!0:d($);typeof V=="function"&&!g(V)&&!y(I,$,b)&&C($,V,I,L)&&A.push($,V)}return R(A,b,M),A}var v=function(I){return I.replace(/([$])/,"\\$")},x;{var _=function(I){for(var b=[I],M=Math.max(0,I-1-3),C=I-1;C>=M;--C)b.push(C);for(var C=I+1;C<=3;++C)b.push(C);return b},E=function(I){return r.filledRange(I,"_arg","")},N=function(I){return r.filledRange(Math.max(I,3),"_arg","")},U=function(I){return typeof I.length=="number"?Math.max(Math.min(I.length,1024),0):0};x=function(I,b,M,C,F,A){var B=Math.max(0,U(C)-1),$=_(B),V=typeof I=="string"||b===n;function L(ae){var Y=E(ae).join(", "),X=ae>0?", ":"",k;return V?k=`ret = callback.call(this, {{args}}, nodeback); break;
|
|
`:k=b===void 0?`ret = callback({{args}}, nodeback); break;
|
|
`:`ret = callback.call(receiver, {{args}}, nodeback); break;
|
|
`,k.replace("{{args}}",Y).replace(", ",X)}function z(){for(var ae="",Y=0;Y<$.length;++Y)ae+="case "+$[Y]+":"+L($[Y]);return ae+=`
|
|
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]",V?`ret = callback.apply(this, args);
|
|
`:`ret = callback.apply(receiver, args);
|
|
`),ae}var q=typeof I=="string"?"this != null ? this['"+I+"'] : fn":"fn",se=`'use strict';
|
|
var ret = function (Parameters) {
|
|
'use strict';
|
|
var len = arguments.length;
|
|
var promise = new Promise(INTERNAL);
|
|
promise._captureStackTrace();
|
|
var nodeback = nodebackForPromise(promise, `+A+`);
|
|
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]",z()).replace("[GetFunctionCode]",q);return se=se.replace("Parameters",N(B)),new Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",se)(t,C,b,o,a,i,r.tryCatch,r.errorObj,r.notEnumerableProp,e)}}function O(I,b,M,C,F,A){var B=function(){return this}(),$=I;typeof $=="string"&&(I=C);function V(){var L=b;b===n&&(L=this);var z=new t(e);z._captureStackTrace();var q=typeof $=="string"&&this!==B?this[$]:I,se=i(z,A);try{q.apply(L,o(arguments,se))}catch(ae){z._rejectCallback(a(ae),!0,!0)}return z._isFateSealed()||z._setAsyncGuaranteed(),z}return r.notEnumerableProp(V,"__isPromisified__",!0),V}var Q=s?x:O;function ne(I,b,M,C,F){for(var A=new RegExp(v(b)+"$"),B=m(I,b,A,M),$=0,V=B.length;$<V;$+=2){var L=B[$],z=B[$+1],q=L+b;if(C===Q)I[q]=Q(L,n,L,z,b,F);else{var se=C(z,function(){return Q(L,n,L,z,b,F)});r.notEnumerableProp(se,"__isPromisified__",!0),I[q]=se}}return r.toFastProperties(I),I}function T(I,b,M){return Q(I,b,void 0,I,null,M)}t.promisify=function(I,b){if(typeof I!="function")throw new c("expecting a function but got "+r.classString(I));if(g(I))return I;b=Object(b);var M=b.context===void 0?n:b.context,C=!!b.multiArgs,F=T(I,M,C);return r.copyDescriptors(I,F,p),F},t.promisifyAll=function(I,b){if(typeof I!="function"&&typeof I!="object")throw new c(`the target of promisifyAll must be an object or a function
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`);b=Object(b);var M=!!b.multiArgs,C=b.suffix;typeof C!="string"&&(C=u);var F=b.filter;typeof F!="function"&&(F=d);var A=b.promisifier;if(typeof A!="function"&&(A=Q),!r.isIdentifier(C))throw new RangeError(`suffix must be a valid identifier
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`);for(var B=r.inheritedDataKeys(I),$=0;$<B.length;++$){var V=I[B[$]];B[$]!=="constructor"&&r.isClass(V)&&(ne(V.prototype,C,F,A,M),ne(V,C,F,A,M))}return ne(I,C,F,A,M)}},gP=function(t,e,n,r){var i=At,o=i.isObject,a=Bi.exports,s;typeof Map=="function"&&(s=Map);var c=function(){var f=0,d=0;function p(g,y){this[f]=g,this[f+d]=y,f++}return function(y){d=y.size,f=0;var R=new Array(y.size*2);return y.forEach(p,R),R}}(),u=function(f){for(var d=new s,p=f.length/2|0,g=0;g<p;++g){var y=f[p+g],R=f[g];d.set(y,R)}return d};function l(f){var d=!1,p;if(s!==void 0&&f instanceof s)p=c(f),d=!0;else{var g=a.keys(f),y=g.length;p=new Array(y*2);for(var R=0;R<y;++R){var m=g[R];p[R]=f[m],p[R+y]=m}}this.constructor$(p),this._isMap=d,this._init$(void 0,-3)}i.inherits(l,e),l.prototype._init=function(){},l.prototype._promiseFulfilled=function(f,d){this._values[d]=f;var p=++this._totalResolved;if(p>=this._length){var g;if(this._isMap)g=u(this._values);else{g={};for(var y=this.length(),R=0,m=this.length();R<m;++R)g[this._values[R+y]]=this._values[R]}return this._resolve(g),!0}return!1},l.prototype.shouldCopyValues=function(){return!1},l.prototype.getActualLength=function(f){return f>>1};function h(f){var d,p=n(f);if(o(p))p instanceof t?d=p._then(t.props,void 0,void 0,void 0,void 0):d=new l(p).promise();else return r(`cannot await properties of a non-object
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`);return p instanceof t&&d._propagateFrom(p,2),d}t.prototype.props=function(){return h(this)},t.props=function(f){return h(f)}},mP=function(t,e,n,r){var i=At,o=function(s){return s.then(function(c){return a(c,s)})};function a(s,c){var u=n(s);if(u instanceof t)return o(u);if(s=i.asArray(s),s===null)return r("expecting an array or an iterable object but got "+i.classString(s));var l=new t(e);c!==void 0&&l._propagateFrom(c,3);for(var h=l._fulfill,f=l._reject,d=0,p=s.length;d<p;++d){var g=s[d];g===void 0&&!(d in s)||t.cast(g)._then(h,f,void 0,l,null)}return l}t.race=function(s){return a(s,void 0)},t.prototype.race=function(){return a(this,void 0)}},RP=function(t,e,n,r,i,o){var a=t._getDomain,s=At,c=s.tryCatch;function u(p,g,y,R){this.constructor$(p);var m=a();this._fn=m===null?g:s.domainBind(m,g),y!==void 0&&(y=t.resolve(y),y._attachCancellationCallback(this)),this._initialValue=y,this._currentCancellable=null,R===i?this._eachValues=Array(this._length):R===0?this._eachValues=null:this._eachValues=void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}s.inherits(u,e),u.prototype._gotAccum=function(p){this._eachValues!==void 0&&this._eachValues!==null&&p!==i&&this._eachValues.push(p)},u.prototype._eachComplete=function(p){return this._eachValues!==null&&this._eachValues.push(p),this._eachValues},u.prototype._init=function(){},u.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},u.prototype.shouldCopyValues=function(){return!1},u.prototype._resolve=function(p){this._promise._resolveCallback(p),this._values=null},u.prototype._resultCancelled=function(p){if(p===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof t&&this._currentCancellable.cancel(),this._initialValue instanceof t&&this._initialValue.cancel())},u.prototype._iterate=function(p){this._values=p;var g,y,R=p.length;if(this._initialValue!==void 0?(g=this._initialValue,y=0):(g=t.resolve(p[0]),y=1),this._currentCancellable=g,!g.isRejected())for(;y<R;++y){var m={accum:null,value:p[y],index:y,length:R,array:this};g=g._then(f,void 0,void 0,m,void 0)}this._eachValues!==void 0&&(g=g._then(this._eachComplete,void 0,void 0,this,void 0)),g._then(l,l,void 0,g,this)},t.prototype.reduce=function(p,g){return h(this,p,g,null)},t.reduce=function(p,g,y,R){return h(p,g,y,R)};function l(p,g){this.isFulfilled()?g._resolve(p):g._reject(p)}function h(p,g,y,R){if(typeof g!="function")return n("expecting a function but got "+s.classString(g));var m=new u(p,g,y,R);return m.promise()}function f(p){this.accum=p,this.array._gotAccum(p);var g=r(this.value,this.array._promise);return g instanceof t?(this.array._currentCancellable=g,g._then(d,void 0,void 0,this,void 0)):d.call(this,g)}function d(p){var g=this.array,y=g._promise,R=c(g._fn);y._pushContext();var m;g._eachValues!==void 0?m=R.call(y._boundValue(),p,this.index,this.length):m=R.call(y._boundValue(),this.accum,p,this.index,this.length),m instanceof t&&(g._currentCancellable=m);var v=y._popContext();return o.checkForgottenReturns(m,v,g._eachValues!==void 0?"Promise.each":"Promise.reduce",y),m}},yP=function(t,e,n){var r=t.PromiseInspection,i=At;function o(a){this.constructor$(a)}i.inherits(o,e),o.prototype._promiseResolved=function(a,s){this._values[a]=s;var c=++this._totalResolved;return c>=this._length?(this._resolve(this._values),!0):!1},o.prototype._promiseFulfilled=function(a,s){var c=new r;return c._bitField=33554432,c._settledValueField=a,this._promiseResolved(s,c)},o.prototype._promiseRejected=function(a,s){var c=new r;return c._bitField=16777216,c._settledValueField=a,this._promiseResolved(s,c)},t.settle=function(a){return n.deprecated(".settle()",".reflect()"),new o(a).promise()},t.prototype.settle=function(){return t.settle(this)}},vP=function(t,e,n){var r=At,i=ki.RangeError,o=ki.AggregateError,a=r.isArray,s={};function c(l){this.constructor$(l),this._howMany=0,this._unwrap=!1,this._initialized=!1}r.inherits(c,e),c.prototype._init=function(){if(!!this._initialized){if(this._howMany===0){this._resolve([]);return}this._init$(void 0,-5);var l=a(this._values);!this._isResolved()&&l&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},c.prototype.init=function(){this._initialized=!0,this._init()},c.prototype.setUnwrap=function(){this._unwrap=!0},c.prototype.howMany=function(){return this._howMany},c.prototype.setHowMany=function(l){this._howMany=l},c.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},c.prototype._promiseRejected=function(l){return this._addRejected(l),this._checkOutcome()},c.prototype._promiseCancelled=function(){return this._values instanceof t||this._values==null?this._cancel():(this._addRejected(s),this._checkOutcome())},c.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var l=new o,h=this.length();h<this._values.length;++h)this._values[h]!==s&&l.push(this._values[h]);return l.length>0?this._reject(l):this._cancel(),!0}return!1},c.prototype._fulfilled=function(){return this._totalResolved},c.prototype._rejected=function(){return this._values.length-this.length()},c.prototype._addRejected=function(l){this._values.push(l)},c.prototype._addFulfilled=function(l){this._values[this._totalResolved++]=l},c.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},c.prototype._getRangeError=function(l){var h="Input array must contain at least "+this._howMany+" items but contains only "+l+" items";return new i(h)},c.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function u(l,h){if((h|0)!==h||h<0)return n(`expecting a positive integer
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`);var f=new c(l),d=f.promise();return f.setHowMany(h),f.init(),d}t.some=function(l,h){return u(l,h)},t.prototype.some=function(l){return u(this,l)},t._SomePromiseArray=c},bP=function(t,e){var n=t.map;t.prototype.filter=function(r,i){return n(this,r,i,e)},t.filter=function(r,i,o){return n(r,i,o,e)}},xP=function(t,e){var n=t.reduce,r=t.all;function i(){return r(this)}function o(a,s){return n(a,s,e,e)}t.prototype.each=function(a){return n(this,a,e,0)._then(i,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(a){return n(this,a,e,e)},t.each=function(a,s){return n(a,s,e,0)._then(i,void 0,void 0,a,void 0)},t.mapSeries=o},wP=function(t){var e=t._SomePromiseArray;function n(r){var i=new e(r),o=i.promise();return i.setHowMany(1),i.setUnwrap(),i.init(),o}t.any=function(r){return n(r)},t.prototype.any=function(){return n(this)}};(function(t){t.exports=function(){var e=function(){return new f(`circular promise resolution chain
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`)},n=function(){return new T.PromiseInspection(this._target())},r=function(C){return T.reject(new f(C))};function i(){}var o={},a=At,s;a.isNode?s=function(){var C=process.domain;return C===void 0&&(C=null),C}:s=function(){return null},a.notEnumerableProp(T,"_getDomain",s);var c=Bi.exports,u=Ff.exports,l=new u;c.defineProperty(T,"_async",{value:l});var h=ki,f=T.TypeError=h.TypeError;T.RangeError=h.RangeError;var d=T.CancellationError=h.CancellationError;T.TimeoutError=h.TimeoutError,T.OperationalError=h.OperationalError,T.RejectionError=h.OperationalError,T.AggregateError=h.AggregateError;var p=function(){},g={},y={},R=kF(T,p),m=ZF(T,p,R,r,i),v=QF(T),x=v.create,_=KF(T,v);_.CapturedTrace;var E=HF(T,R),N=GF(y),U=ny,O=a.errorObj,Q=a.tryCatch;function ne(C,F){if(typeof F!="function")throw new f("expecting a function but got "+a.classString(F));if(C.constructor!==T)throw new f(`the promise constructor cannot be invoked directly
|
|
|
|
See http://goo.gl/MqrFmX
|
|
`)}function T(C){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,C!==p&&(ne(this,C),this._resolveFromExecutor(C)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}T.prototype.toString=function(){return"[object Promise]"},T.prototype.caught=T.prototype.catch=function(C){var F=arguments.length;if(F>1){var A=new Array(F-1),B=0,$;for($=0;$<F-1;++$){var V=arguments[$];if(a.isObject(V))A[B++]=V;else return r("expecting an object but got A catch statement predicate "+a.classString(V))}return A.length=B,C=arguments[$],this.then(void 0,N(A,C,this))}return this.then(void 0,C)},T.prototype.reflect=function(){return this._then(n,n,void 0,this,void 0)},T.prototype.then=function(C,F){if(_.warnings()&&arguments.length>0&&typeof C!="function"&&typeof F!="function"){var A=".then() only accepts functions but was passed: "+a.classString(C);arguments.length>1&&(A+=", "+a.classString(F)),this._warn(A)}return this._then(C,F,void 0,void 0,void 0)},T.prototype.done=function(C,F){var A=this._then(C,F,void 0,void 0,void 0);A._setIsFinal()},T.prototype.spread=function(C){return typeof C!="function"?r("expecting a function but got "+a.classString(C)):this.all()._then(C,void 0,void 0,g,void 0)},T.prototype.toJSON=function(){var C={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(C.fulfillmentValue=this.value(),C.isFulfilled=!0):this.isRejected()&&(C.rejectionReason=this.reason(),C.isRejected=!0),C},T.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new m(this).promise()},T.prototype.error=function(C){return this.caught(a.originatesFromRejection,C)},T.getNewLibraryCopy=t.exports,T.is=function(C){return C instanceof T},T.fromNode=T.fromCallback=function(C){var F=new T(p);F._captureStackTrace();var A=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,B=Q(C)(U(F,A));return B===O&&F._rejectCallback(B.e,!0),F._isFateSealed()||F._setAsyncGuaranteed(),F},T.all=function(C){return new m(C).promise()},T.cast=function(C){var F=R(C);return F instanceof T||(F=new T(p),F._captureStackTrace(),F._setFulfilled(),F._rejectionHandler0=C),F},T.resolve=T.fulfilled=T.cast,T.reject=T.rejected=function(C){var F=new T(p);return F._captureStackTrace(),F._rejectCallback(C,!0),F},T.setScheduler=function(C){if(typeof C!="function")throw new f("expecting a function but got "+a.classString(C));return l.setScheduler(C)},T.prototype._then=function(C,F,A,B,$){var V=$!==void 0,L=V?$:new T(p),z=this._target(),q=z._bitField;V||(L._propagateFrom(this,3),L._captureStackTrace(),B===void 0&&(this._bitField&2097152)!==0&&((q&50397184)!==0?B=this._boundValue():B=z===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,L));var se=s();if((q&50397184)!==0){var ae,Y,X=z._settlePromiseCtx;(q&33554432)!==0?(Y=z._rejectionHandler0,ae=C):(q&16777216)!==0?(Y=z._fulfillmentHandler0,ae=F,z._unsetRejectionIsUnhandled()):(X=z._settlePromiseLateCancellationObserver,Y=new d("late cancellation observer"),z._attachExtraTrace(Y),ae=F),l.invoke(X,z,{handler:se===null?ae:typeof ae=="function"&&a.domainBind(se,ae),promise:L,receiver:B,value:Y})}else z._addCallbacks(C,F,L,B,se);return L},T.prototype._length=function(){return this._bitField&65535},T.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},T.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},T.prototype._setLength=function(C){this._bitField=this._bitField&-65536|C&65535},T.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},T.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},T.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},T.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},T.prototype._isFinal=function(){return(this._bitField&4194304)>0},T.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},T.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},T.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},T.prototype._setAsyncGuaranteed=function(){l.hasCustomScheduler()||(this._bitField=this._bitField|134217728)},T.prototype._receiverAt=function(C){var F=C===0?this._receiver0:this[C*4-4+3];if(F!==o)return F===void 0&&this._isBound()?this._boundValue():F},T.prototype._promiseAt=function(C){return this[C*4-4+2]},T.prototype._fulfillmentHandlerAt=function(C){return this[C*4-4+0]},T.prototype._rejectionHandlerAt=function(C){return this[C*4-4+1]},T.prototype._boundValue=function(){},T.prototype._migrateCallback0=function(C){C._bitField;var F=C._fulfillmentHandler0,A=C._rejectionHandler0,B=C._promise0,$=C._receiverAt(0);$===void 0&&($=o),this._addCallbacks(F,A,B,$,null)},T.prototype._migrateCallbackAt=function(C,F){var A=C._fulfillmentHandlerAt(F),B=C._rejectionHandlerAt(F),$=C._promiseAt(F),V=C._receiverAt(F);V===void 0&&(V=o),this._addCallbacks(A,B,$,V,null)},T.prototype._addCallbacks=function(C,F,A,B,$){var V=this._length();if(V>=65535-4&&(V=0,this._setLength(0)),V===0)this._promise0=A,this._receiver0=B,typeof C=="function"&&(this._fulfillmentHandler0=$===null?C:a.domainBind($,C)),typeof F=="function"&&(this._rejectionHandler0=$===null?F:a.domainBind($,F));else{var L=V*4-4;this[L+2]=A,this[L+3]=B,typeof C=="function"&&(this[L+0]=$===null?C:a.domainBind($,C)),typeof F=="function"&&(this[L+1]=$===null?F:a.domainBind($,F))}return this._setLength(V+1),V},T.prototype._proxy=function(C,F){this._addCallbacks(void 0,void 0,F,C,null)},T.prototype._resolveCallback=function(C,F){if((this._bitField&117506048)===0){if(C===this)return this._rejectCallback(e(),!1);var A=R(C,this);if(!(A instanceof T))return this._fulfill(C);F&&this._propagateFrom(A,2);var B=A._target();if(B===this){this._reject(e());return}var $=B._bitField;if(($&50397184)===0){var V=this._length();V>0&&B._migrateCallback0(this);for(var L=1;L<V;++L)B._migrateCallbackAt(this,L);this._setFollowing(),this._setLength(0),this._setFollowee(B)}else if(($&33554432)!==0)this._fulfill(B._value());else if(($&16777216)!==0)this._reject(B._reason());else{var z=new d("late cancellation observer");B._attachExtraTrace(z),this._reject(z)}}},T.prototype._rejectCallback=function(C,F,A){var B=a.ensureErrorObject(C),$=B===C;if(!$&&!A&&_.warnings()){var V="a promise was rejected with a non-error: "+a.classString(C);this._warn(V,!0)}this._attachExtraTrace(B,F?$:!1),this._reject(C)},T.prototype._resolveFromExecutor=function(C){var F=this;this._captureStackTrace(),this._pushContext();var A=!0,B=this._execute(C,function($){F._resolveCallback($)},function($){F._rejectCallback($,A)});A=!1,this._popContext(),B!==void 0&&F._rejectCallback(B,!0)},T.prototype._settlePromiseFromHandler=function(C,F,A,B){var $=B._bitField;if(($&65536)===0){B._pushContext();var V;F===g?!A||typeof A.length!="number"?(V=O,V.e=new f("cannot .spread() a non-array: "+a.classString(A))):V=Q(C).apply(this._boundValue(),A):V=Q(C).call(F,A);var L=B._popContext();$=B._bitField,($&65536)===0&&(V===y?B._reject(A):V===O?B._rejectCallback(V.e,!1):(_.checkForgottenReturns(V,L,"",B,this),B._resolveCallback(V)))}},T.prototype._target=function(){for(var C=this;C._isFollowing();)C=C._followee();return C},T.prototype._followee=function(){return this._rejectionHandler0},T.prototype._setFollowee=function(C){this._rejectionHandler0=C},T.prototype._settlePromise=function(C,F,A,B){var $=C instanceof T,V=this._bitField,L=(V&134217728)!==0;(V&65536)!==0?($&&C._invokeInternalOnCancel(),A instanceof E&&A.isFinallyHandler()?(A.cancelPromise=C,Q(F).call(A,B)===O&&C._reject(O.e)):F===n?C._fulfill(n.call(A)):A instanceof i?A._promiseCancelled(C):$||C instanceof m?C._cancel():A.cancel()):typeof F=="function"?$?(L&&C._setAsyncGuaranteed(),this._settlePromiseFromHandler(F,A,B,C)):F.call(A,B,C):A instanceof i?A._isResolved()||((V&33554432)!==0?A._promiseFulfilled(B,C):A._promiseRejected(B,C)):$&&(L&&C._setAsyncGuaranteed(),(V&33554432)!==0?C._fulfill(B):C._reject(B))},T.prototype._settlePromiseLateCancellationObserver=function(C){var F=C.handler,A=C.promise,B=C.receiver,$=C.value;typeof F=="function"?A instanceof T?this._settlePromiseFromHandler(F,B,$,A):F.call(B,$,A):A instanceof T&&A._reject($)},T.prototype._settlePromiseCtx=function(C){this._settlePromise(C.promise,C.handler,C.receiver,C.value)},T.prototype._settlePromise0=function(C,F,A){var B=this._promise0,$=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(B,C,$,F)},T.prototype._clearCallbackDataAtIndex=function(C){var F=C*4-4;this[F+2]=this[F+3]=this[F+0]=this[F+1]=void 0},T.prototype._fulfill=function(C){var F=this._bitField;if(!((F&117506048)>>>16)){if(C===this){var A=e();return this._attachExtraTrace(A),this._reject(A)}this._setFulfilled(),this._rejectionHandler0=C,(F&65535)>0&&((F&134217728)!==0?this._settlePromises():l.settlePromises(this))}},T.prototype._reject=function(C){var F=this._bitField;if(!((F&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=C,this._isFinal())return l.fatalError(C,a.isNode);(F&65535)>0?l.settlePromises(this):this._ensurePossibleRejectionHandled()}},T.prototype._fulfillPromises=function(C,F){for(var A=1;A<C;A++){var B=this._fulfillmentHandlerAt(A),$=this._promiseAt(A),V=this._receiverAt(A);this._clearCallbackDataAtIndex(A),this._settlePromise($,B,V,F)}},T.prototype._rejectPromises=function(C,F){for(var A=1;A<C;A++){var B=this._rejectionHandlerAt(A),$=this._promiseAt(A),V=this._receiverAt(A);this._clearCallbackDataAtIndex(A),this._settlePromise($,B,V,F)}},T.prototype._settlePromises=function(){var C=this._bitField,F=C&65535;if(F>0){if((C&16842752)!==0){var A=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,A,C),this._rejectPromises(F,A)}else{var B=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,B,C),this._fulfillPromises(F,B)}this._setLength(0)}this._clearCancellationData()},T.prototype._settledValue=function(){var C=this._bitField;if((C&33554432)!==0)return this._rejectionHandler0;if((C&16777216)!==0)return this._fulfillmentHandler0};function I(C){this.promise._resolveCallback(C)}function b(C){this.promise._rejectCallback(C,!1)}T.defer=T.pending=function(){_.deprecated("Promise.defer","new Promise");var C=new T(p);return{promise:C,resolve:I,reject:b}},a.notEnumerableProp(T,"_makeSelfResolutionError",e),nP(T,p,R,r,_),rP(T,p,R,_),iP(T,m,r,_),oP(T),aP(T),sP(T,m,R,p,l,s),T.Promise=T,T.version="3.4.7",cP(T,m,r,R,p,_),uP(T),lP(T,r,R,x,p,_),hP(T,p,_),dP(T,r,p,R,i,_),fP(T),pP(T,p),gP(T,m,R,r),mP(T,p,R,r),RP(T,m,r,R,p,_),yP(T,m,_),vP(T,m,r),bP(T,p),xP(T,p),wP(T),a.toFastProperties(T),a.toFastProperties(T.prototype);function M(C){var F=new T(p);F._fulfillmentHandler0=C,F._rejectionHandler0=C,F._promise0=C,F._receiver0=C}return M({a:1}),M({b:2}),M({c:3}),M(1),M(function(){}),M(void 0),M(!1),M(new T(p)),_.setBounds(u.firstLineError,a.lastLineError),T}})(Z2);var TP=Kt.exports,qn=Z2.exports();vn.defer=SP;vn.when=qn.resolve;vn.resolve=qn.resolve;vn.all=qn.all;vn.props=qn.props;vn.reject=qn.reject;vn.promisify=qn.promisify;vn.mapSeries=qn.mapSeries;vn.attempt=qn.attempt;vn.nfcall=function(t){var e=Array.prototype.slice.call(arguments,1),n=qn.promisify(t);return n.apply(null,e)};qn.prototype.fail=qn.prototype.caught;qn.prototype.also=function(t){return this.then(function(e){var n=TP.extend({},e,t(e));return qn.props(n)})};function SP(){var t,e,n=new qn.Promise(function(r,i){t=r,e=i});return{resolve:t,reject:e,promise:n}}var ut={},DP=Kt.exports,Mn=ut.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 _P(t,e){return e=e||{},{type:Mn.document,children:t,notes:e.notes||new Zu({}),comments:e.comments||[]}}function OP(t,e){e=e||{};var n=e.indent||{};return{type:Mn.paragraph,children:t,styleId:e.styleId||null,styleName:e.styleName||null,numbering:e.numbering||null,alignment:e.alignment||null,indent:{start:n.start||null,end:n.end||null,firstLine:n.firstLine||null,hanging:n.hanging||null}}}function EP(t,e){return e=e||{},{type:Mn.run,children:t,styleId:e.styleId||null,styleName:e.styleName||null,isBold:!!e.isBold,isUnderline:!!e.isUnderline,isItalic:!!e.isItalic,isStrikethrough:!!e.isStrikethrough,isAllCaps:!!e.isAllCaps,isSmallCaps:!!e.isSmallCaps,verticalAlignment:e.verticalAlignment||oy.baseline,font:e.font||null,fontSize:e.fontSize||null}}var oy={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function IP(t){return{type:Mn.text,value:t}}function NP(){return{type:Mn.tab}}function FP(t,e){return{type:Mn.hyperlink,children:t,href:e.href,anchor:e.anchor,targetFrame:e.targetFrame}}function PP(t){return{type:Mn.noteReference,noteType:t.noteType,noteId:t.noteId}}function Zu(t){this._notes=DP.indexBy(t,function(e){return ay(e.noteType,e.noteId)})}Zu.prototype.resolve=function(t){return this.findNoteByKey(ay(t.noteType,t.noteId))};Zu.prototype.findNoteByKey=function(t){return this._notes[t]||null};function LP(t){return{type:Mn.note,noteType:t.noteType,noteId:t.noteId,body:t.body}}function MP(t){return{type:Mn.commentReference,commentId:t.commentId}}function CP(t){return{type:Mn.comment,commentId:t.commentId,body:t.body,authorName:t.authorName,authorInitials:t.authorInitials}}function ay(t,e){return t+"-"+e}function AP(t){return{type:Mn.image,read:function(e){return e?t.readImage(e):t.readImage().then(function(n){return Buffer.from(n)})},readAsArrayBuffer:function(){return t.readImage()},readAsBase64String:function(){return t.readImage("base64")},readAsBuffer:function(){return t.readImage().then(function(e){return Buffer.from(e)})},altText:t.altText,contentType:t.contentType}}function UP(t,e){return e=e||{},{type:Mn.table,children:t,styleId:e.styleId||null,styleName:e.styleName||null}}function WP(t,e){return e=e||{},{type:Mn.tableRow,children:t,isHeader:e.isHeader||!1}}function XP(t,e){return e=e||{},{type:Mn.tableCell,children:t,colSpan:e.colSpan==null?1:e.colSpan,rowSpan:e.rowSpan==null?1:e.rowSpan}}function Lf(t){return{type:Mn.break,breakType:t}}function VP(t){return{type:Mn.bookmarkStart,name:t.name}}ut.document=ut.Document=_P;ut.paragraph=ut.Paragraph=OP;ut.run=ut.Run=EP;ut.text=ut.Text=IP;ut.tab=ut.Tab=NP;ut.Hyperlink=FP;ut.noteReference=ut.NoteReference=PP;ut.Notes=Zu;ut.Note=LP;ut.commentReference=MP;ut.comment=CP;ut.Image=AP;ut.Table=UP;ut.TableRow=WP;ut.TableCell=XP;ut.lineBreak=Lf("line");ut.pageBreak=Lf("page");ut.columnBreak=Lf("column");ut.BookmarkStart=VP;ut.verticalAlignment=oy;var gr={},Es=Kt.exports;gr.Result=ri;gr.success=YP;gr.warning=BP;gr.error=kP;function ri(t,e){this.value=t,this.messages=e||[]}ri.prototype.map=function(t){return new ri(t(this.value),this.messages)};ri.prototype.flatMap=function(t){var e=t(this.value);return new ri(e.value,Mf([this,e]))};ri.prototype.flatMapThen=function(t){var e=this;return t(this.value).then(function(n){return new ri(n.value,Mf([e,n]))})};ri.combine=function(t){var e=Es.flatten(Es.pluck(t,"value")),n=Mf(t);return new ri(e,n)};function YP(t){return new ri(t,[])}function BP(t){return{type:"warning",message:t}}function kP(t){return{type:"error",message:t.message,error:t}}function Mf(t){var e=[];return Es.flatten(Es.pluck(t,"messages"),!0).forEach(function(n){ZP(e,n)||e.push(n)}),e}function ZP(t,e){return Es.find(t,QP.bind(null,e))!==void 0}function QP(t,e){return t.type===e.type&&t.message===e.message}var Bs={},Qu={};Qu.byteLength=GP;Qu.toByteArray=zP;Qu.fromByteArray=qP;var Qr=[],wr=[],KP=typeof Uint8Array!="undefined"?Uint8Array:Array,Wh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Wo=0,HP=Wh.length;Wo<HP;++Wo)Qr[Wo]=Wh[Wo],wr[Wh.charCodeAt(Wo)]=Wo;wr["-".charCodeAt(0)]=62;wr["_".charCodeAt(0)]=63;function sy(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function GP(t){var e=sy(t),n=e[0],r=e[1];return(n+r)*3/4-r}function JP(t,e,n){return(e+n)*3/4-n}function zP(t){var e,n=sy(t),r=n[0],i=n[1],o=new KP(JP(t,r,i)),a=0,s=i>0?r-4:r,c;for(c=0;c<s;c+=4)e=wr[t.charCodeAt(c)]<<18|wr[t.charCodeAt(c+1)]<<12|wr[t.charCodeAt(c+2)]<<6|wr[t.charCodeAt(c+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=wr[t.charCodeAt(c)]<<2|wr[t.charCodeAt(c+1)]>>4,o[a++]=e&255),i===1&&(e=wr[t.charCodeAt(c)]<<10|wr[t.charCodeAt(c+1)]<<4|wr[t.charCodeAt(c+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function $P(t){return Qr[t>>18&63]+Qr[t>>12&63]+Qr[t>>6&63]+Qr[t&63]}function jP(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push($P(r));return i.join("")}function qP(t){for(var e,n=t.length,r=n%3,i=[],o=16383,a=0,s=n-r;a<s;a+=o)i.push(jP(t,a,a+o>s?s:a+o));return r===1?(e=t[n-1],i.push(Qr[e>>2]+Qr[e<<4&63]+"==")):r===2&&(e=(t[n-2]<<8)+t[n-1],i.push(Qr[e>>10]+Qr[e>>4&63]+Qr[e<<2&63]+"=")),i.join("")}var cy={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(t,e){(function(n){t.exports=n()})(function(){return function n(r,i,o){function a(u,l){if(!i[u]){if(!r[u]){var h=typeof vc=="function"&&vc;if(!l&&h)return h(u,!0);if(s)return s(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var d=i[u]={exports:{}};r[u][0].call(d.exports,function(p){var g=r[u][1][p];return a(g||p)},d,d.exports,n,r,i,o)}return i[u].exports}for(var s=typeof vc=="function"&&vc,c=0;c<o.length;c++)a(o[c]);return a}({1:[function(n,r,i){var o=n("./utils"),a=n("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(c){for(var u,l,h,f,d,p,g,y=[],R=0,m=c.length,v=m,x=o.getTypeOf(c)!=="string";R<c.length;)v=m-R,h=x?(u=c[R++],l=R<m?c[R++]:0,R<m?c[R++]:0):(u=c.charCodeAt(R++),l=R<m?c.charCodeAt(R++):0,R<m?c.charCodeAt(R++):0),f=u>>2,d=(3&u)<<4|l>>4,p=1<v?(15&l)<<2|h>>6:64,g=2<v?63&h:64,y.push(s.charAt(f)+s.charAt(d)+s.charAt(p)+s.charAt(g));return y.join("")},i.decode=function(c){var u,l,h,f,d,p,g=0,y=0,R="data:";if(c.substr(0,R.length)===R)throw new Error("Invalid base64 input, it looks like a data url.");var m,v=3*(c=c.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(c.charAt(c.length-1)===s.charAt(64)&&v--,c.charAt(c.length-2)===s.charAt(64)&&v--,v%1!=0)throw new Error("Invalid base64 input, bad content length.");for(m=a.uint8array?new Uint8Array(0|v):new Array(0|v);g<c.length;)u=s.indexOf(c.charAt(g++))<<2|(f=s.indexOf(c.charAt(g++)))>>4,l=(15&f)<<4|(d=s.indexOf(c.charAt(g++)))>>2,h=(3&d)<<6|(p=s.indexOf(c.charAt(g++))),m[y++]=u,d!==64&&(m[y++]=l),p!==64&&(m[y++]=h);return m}},{"./support":30,"./utils":32}],2:[function(n,r,i){var o=n("./external"),a=n("./stream/DataWorker"),s=n("./stream/Crc32Probe"),c=n("./stream/DataLengthProbe");function u(l,h,f,d,p){this.compressedSize=l,this.uncompressedSize=h,this.crc32=f,this.compression=d,this.compressedContent=p}u.prototype={getContentWorker:function(){var l=new a(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),h=this;return l.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new a(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},u.createWorkerFrom=function(l,h,f){return l.pipe(new s).pipe(new c("uncompressedSize")).pipe(h.compressWorker(f)).pipe(new c("compressedSize")).withStreamInfo("compression",h)},r.exports=u},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var o=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var o=n("./utils"),a=function(){for(var s,c=[],u=0;u<256;u++){s=u;for(var l=0;l<8;l++)s=1&s?3988292384^s>>>1:s>>>1;c[u]=s}return c}();r.exports=function(s,c){return s!==void 0&&s.length?o.getTypeOf(s)!=="string"?function(u,l,h,f){var d=a,p=f+h;u^=-1;for(var g=f;g<p;g++)u=u>>>8^d[255&(u^l[g])];return-1^u}(0|c,s,s.length,0):function(u,l,h,f){var d=a,p=f+h;u^=-1;for(var g=f;g<p;g++)u=u>>>8^d[255&(u^l.charCodeAt(g))];return-1^u}(0|c,s,s.length,0):0}},{"./utils":32}],5:[function(n,r,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(n,r,i){var o=null;o=typeof Promise!="undefined"?Promise:n("lie"),r.exports={Promise:o}},{lie:37}],7:[function(n,r,i){var o=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",a=n("pako"),s=n("./utils"),c=n("./stream/GenericWorker"),u=o?"uint8array":"array";function l(h,f){c.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=f,this.meta={}}i.magic="\b\0",s.inherits(l,c),l.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(u,h.data),!1)},l.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(f){h.push({data:f,meta:h.meta})}},i.compressWorker=function(h){return new l("Deflate",h)},i.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function o(d,p){var g,y="";for(g=0;g<p;g++)y+=String.fromCharCode(255&d),d>>>=8;return y}function a(d,p,g,y,R,m){var v,x,_=d.file,E=d.compression,N=m!==u.utf8encode,U=s.transformTo("string",m(_.name)),O=s.transformTo("string",u.utf8encode(_.name)),Q=_.comment,ne=s.transformTo("string",m(Q)),T=s.transformTo("string",u.utf8encode(Q)),I=O.length!==_.name.length,b=T.length!==Q.length,M="",C="",F="",A=_.dir,B=_.date,$={crc32:0,compressedSize:0,uncompressedSize:0};p&&!g||($.crc32=d.crc32,$.compressedSize=d.compressedSize,$.uncompressedSize=d.uncompressedSize);var V=0;p&&(V|=8),N||!I&&!b||(V|=2048);var L=0,z=0;A&&(L|=16),R==="UNIX"?(z=798,L|=function(se,ae){var Y=se;return se||(Y=ae?16893:33204),(65535&Y)<<16}(_.unixPermissions,A)):(z=20,L|=function(se){return 63&(se||0)}(_.dosPermissions)),v=B.getUTCHours(),v<<=6,v|=B.getUTCMinutes(),v<<=5,v|=B.getUTCSeconds()/2,x=B.getUTCFullYear()-1980,x<<=4,x|=B.getUTCMonth()+1,x<<=5,x|=B.getUTCDate(),I&&(C=o(1,1)+o(l(U),4)+O,M+="up"+o(C.length,2)+C),b&&(F=o(1,1)+o(l(ne),4)+T,M+="uc"+o(F.length,2)+F);var q="";return q+=`
|
|
\0`,q+=o(V,2),q+=E.magic,q+=o(v,2),q+=o(x,2),q+=o($.crc32,4),q+=o($.compressedSize,4),q+=o($.uncompressedSize,4),q+=o(U.length,2),q+=o(M.length,2),{fileRecord:h.LOCAL_FILE_HEADER+q+U+M,dirRecord:h.CENTRAL_FILE_HEADER+o(z,2)+q+o(ne.length,2)+"\0\0\0\0"+o(L,4)+o(y,4)+U+M+ne}}var s=n("../utils"),c=n("../stream/GenericWorker"),u=n("../utf8"),l=n("../crc32"),h=n("../signature");function f(d,p,g,y){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=g,this.encodeFileName=y,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(f,c),f.prototype.push=function(d){var p=d.meta.percent||0,g=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,c.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:g?(p+100*(g-y-1))/g:100}}))},f.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var p=this.streamFiles&&!d.file.dir;if(p){var g=a(d,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(d){this.accumulate=!1;var p=this.streamFiles&&!d.file.dir,g=a(d,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),p)this.push({data:function(y){return h.DATA_DESCRIPTOR+o(y.crc32,4)+o(y.compressedSize,4)+o(y.uncompressedSize,4)}(d),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var d=this.bytesWritten,p=0;p<this.dirRecords.length;p++)this.push({data:this.dirRecords[p],meta:{percent:100}});var g=this.bytesWritten-d,y=function(R,m,v,x,_){var E=s.transformTo("string",_(x));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(R,2)+o(R,2)+o(m,4)+o(v,4)+o(E.length,2)+E}(this.dirRecords.length,g,d,this.zipComment,this.encodeFileName);this.push({data:y,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(d){this._sources.push(d);var p=this;return d.on("data",function(g){p.processChunk(g)}),d.on("end",function(){p.closedSource(p.previous.streamInfo),p._sources.length?p.prepareNextSource():p.end()}),d.on("error",function(g){p.error(g)}),this},f.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(d){var p=this._sources;if(!c.prototype.error.call(this,d))return!1;for(var g=0;g<p.length;g++)try{p[g].error(d)}catch{}return!0},f.prototype.lock=function(){c.prototype.lock.call(this);for(var d=this._sources,p=0;p<d.length;p++)d[p].lock()},r.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var o=n("../compressions"),a=n("./ZipFileWorker");i.generateWorker=function(s,c,u){var l=new a(c.streamFiles,u,c.platform,c.encodeFileName),h=0;try{s.forEach(function(f,d){h++;var p=function(m,v){var x=m||v,_=o[x];if(!_)throw new Error(x+" is not a valid compression method !");return _}(d.options.compression,c.compression),g=d.options.compressionOptions||c.compressionOptions||{},y=d.dir,R=d.date;d._compressWorker(p,g).withStreamInfo("file",{name:f,dir:y,date:R,comment:d.comment||"",unixPermissions:d.unixPermissions,dosPermissions:d.dosPermissions}).pipe(l)}),l.entriesCount=h}catch(f){l.error(f)}return l}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,i){function o(){if(!(this instanceof o))return new o;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 a=new o;for(var s in this)typeof this[s]!="function"&&(a[s]=this[s]);return a}}(o.prototype=n("./object")).loadAsync=n("./load"),o.support=n("./support"),o.defaults=n("./defaults"),o.version="3.10.1",o.loadAsync=function(a,s){return new o().loadAsync(a,s)},o.external=n("./external"),r.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,i){var o=n("./utils"),a=n("./external"),s=n("./utf8"),c=n("./zipEntries"),u=n("./stream/Crc32Probe"),l=n("./nodejsUtils");function h(f){return new a.Promise(function(d,p){var g=f.decompressed.getContentWorker().pipe(new u);g.on("error",function(y){p(y)}).on("end",function(){g.streamInfo.crc32!==f.decompressed.crc32?p(new Error("Corrupted zip : CRC32 mismatch")):d()}).resume()})}r.exports=function(f,d){var p=this;return d=o.extend(d||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),l.isNode&&l.isStream(f)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",f,!0,d.optimizedBinaryString,d.base64).then(function(g){var y=new c(d);return y.load(g),y}).then(function(g){var y=[a.Promise.resolve(g)],R=g.files;if(d.checkCRC32)for(var m=0;m<R.length;m++)y.push(h(R[m]));return a.Promise.all(y)}).then(function(g){for(var y=g.shift(),R=y.files,m=0;m<R.length;m++){var v=R[m],x=v.fileNameStr,_=o.resolve(v.fileNameStr);p.file(_,v.decompressed,{binary:!0,optimizedBinaryString:!0,date:v.date,dir:v.dir,comment:v.fileCommentStr.length?v.fileCommentStr:null,unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions,createFolders:d.createFolders}),v.dir||(p.file(_).unsafeOriginalName=x)}return y.zipComment.length&&(p.comment=y.zipComment),p})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var o=n("../utils"),a=n("../stream/GenericWorker");function s(c,u){a.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(u)}o.inherits(s,a),s.prototype._bindStream=function(c){var u=this;(this._stream=c).pause(),c.on("data",function(l){u.push({data:l,meta:{percent:0}})}).on("error",function(l){u.isPaused?this.generatedError=l:u.error(l)}).on("end",function(){u.isPaused?u._upstreamEnded=!0:u.end()})},s.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,i){var o=n("readable-stream").Readable;function a(s,c,u){o.call(this,c),this._helper=s;var l=this;s.on("data",function(h,f){l.push(h)||l._helper.pause(),u&&u(f)}).on("error",function(h){l.emit("error",h)}).on("end",function(){l.push(null)})}n("../utils").inherits(a,o),a.prototype._read=function(){this._helper.resume()},r.exports=a},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer!="undefined",newBufferFrom:function(o,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(o,a);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new Buffer(o,a)},allocBuffer:function(o){if(Buffer.alloc)return Buffer.alloc(o);var a=new Buffer(o);return a.fill(0),a},isBuffer:function(o){return Buffer.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(n,r,i){function o(_,E,N){var U,O=s.getTypeOf(E),Q=s.extend(N||{},l);Q.date=Q.date||new Date,Q.compression!==null&&(Q.compression=Q.compression.toUpperCase()),typeof Q.unixPermissions=="string"&&(Q.unixPermissions=parseInt(Q.unixPermissions,8)),Q.unixPermissions&&16384&Q.unixPermissions&&(Q.dir=!0),Q.dosPermissions&&16&Q.dosPermissions&&(Q.dir=!0),Q.dir&&(_=R(_)),Q.createFolders&&(U=y(_))&&m.call(this,U,!0);var ne=O==="string"&&Q.binary===!1&&Q.base64===!1;N&&N.binary!==void 0||(Q.binary=!ne),(E instanceof h&&E.uncompressedSize===0||Q.dir||!E||E.length===0)&&(Q.base64=!1,Q.binary=!0,E="",Q.compression="STORE",O="string");var T=null;T=E instanceof h||E instanceof c?E:p.isNode&&p.isStream(E)?new g(_,E):s.prepareContent(_,E,Q.binary,Q.optimizedBinaryString,Q.base64);var I=new f(_,T,Q);this.files[_]=I}var a=n("./utf8"),s=n("./utils"),c=n("./stream/GenericWorker"),u=n("./stream/StreamHelper"),l=n("./defaults"),h=n("./compressedObject"),f=n("./zipObject"),d=n("./generate"),p=n("./nodejsUtils"),g=n("./nodejs/NodejsStreamInputAdapter"),y=function(_){_.slice(-1)==="/"&&(_=_.substring(0,_.length-1));var E=_.lastIndexOf("/");return 0<E?_.substring(0,E):""},R=function(_){return _.slice(-1)!=="/"&&(_+="/"),_},m=function(_,E){return E=E!==void 0?E:l.createFolders,_=R(_),this.files[_]||o.call(this,_,null,{dir:!0,createFolders:E}),this.files[_]};function v(_){return Object.prototype.toString.call(_)==="[object RegExp]"}var x={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(_){var E,N,U;for(E in this.files)U=this.files[E],(N=E.slice(this.root.length,E.length))&&E.slice(0,this.root.length)===this.root&&_(N,U)},filter:function(_){var E=[];return this.forEach(function(N,U){_(N,U)&&E.push(U)}),E},file:function(_,E,N){if(arguments.length!==1)return _=this.root+_,o.call(this,_,E,N),this;if(v(_)){var U=_;return this.filter(function(Q,ne){return!ne.dir&&U.test(Q)})}var O=this.files[this.root+_];return O&&!O.dir?O:null},folder:function(_){if(!_)return this;if(v(_))return this.filter(function(O,Q){return Q.dir&&_.test(O)});var E=this.root+_,N=m.call(this,E),U=this.clone();return U.root=N.name,U},remove:function(_){_=this.root+_;var E=this.files[_];if(E||(_.slice(-1)!=="/"&&(_+="/"),E=this.files[_]),E&&!E.dir)delete this.files[_];else for(var N=this.filter(function(O,Q){return Q.name.slice(0,_.length)===_}),U=0;U<N.length;U++)delete this.files[N[U].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 E,N={};try{if((N=s.extend(_||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=N.type.toLowerCase(),N.compression=N.compression.toUpperCase(),N.type==="binarystring"&&(N.type="string"),!N.type)throw new Error("No output type specified.");s.checkSupport(N.type),N.platform!=="darwin"&&N.platform!=="freebsd"&&N.platform!=="linux"&&N.platform!=="sunos"||(N.platform="UNIX"),N.platform==="win32"&&(N.platform="DOS");var U=N.comment||this.comment||"";E=d.generateWorker(this,N,U)}catch(O){(E=new c("error")).error(O)}return new u(E,N.type||"string",N.mimeType)},generateAsync:function(_,E){return this.generateInternalStream(_).accumulate(E)},generateNodeStream:function(_,E){return(_=_||{}).type||(_.type="nodebuffer"),this.generateInternalStream(_).toNodejsStream(E)}};r.exports=x},{"./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(n,r,i){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,i){var o=n("./DataReader");function a(s){o.call(this,s);for(var c=0;c<this.data.length;c++)s[c]=255&s[c]}n("../utils").inherits(a,o),a.prototype.byteAt=function(s){return this.data[this.zero+s]},a.prototype.lastIndexOfSignature=function(s){for(var c=s.charCodeAt(0),u=s.charCodeAt(1),l=s.charCodeAt(2),h=s.charCodeAt(3),f=this.length-4;0<=f;--f)if(this.data[f]===c&&this.data[f+1]===u&&this.data[f+2]===l&&this.data[f+3]===h)return f-this.zero;return-1},a.prototype.readAndCheckSignature=function(s){var c=s.charCodeAt(0),u=s.charCodeAt(1),l=s.charCodeAt(2),h=s.charCodeAt(3),f=this.readData(4);return c===f[0]&&u===f[1]&&l===f[2]&&h===f[3]},a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=a},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var o=n("../utils");function a(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}a.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 c,u=0;for(this.checkOffset(s),c=this.index+s-1;c>=this.index;c--)u=(u<<8)+this.byteAt(c);return this.index+=s,u},readString:function(s){return o.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))}},r.exports=a},{"../utils":32}],19:[function(n,r,i){var o=n("./Uint8ArrayReader");function a(s){o.call(this,s)}n("../utils").inherits(a,o),a.prototype.readData=function(s){this.checkOffset(s);var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var o=n("./DataReader");function a(s){o.call(this,s)}n("../utils").inherits(a,o),a.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},a.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},a.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},a.prototype.readData=function(s){this.checkOffset(s);var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=a},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var o=n("./ArrayReader");function a(s){o.call(this,s)}n("../utils").inherits(a,o),a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var o=n("../utils"),a=n("../support"),s=n("./ArrayReader"),c=n("./StringReader"),u=n("./NodeBufferReader"),l=n("./Uint8ArrayReader");r.exports=function(h){var f=o.getTypeOf(h);return o.checkSupport(f),f!=="string"||a.uint8array?f==="nodebuffer"?new u(h):a.uint8array?new l(o.transformTo("uint8array",h)):new s(o.transformTo("array",h)):new c(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,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(n,r,i){var o=n("./GenericWorker"),a=n("../utils");function s(c){o.call(this,"ConvertWorker to "+c),this.destType=c}a.inherits(s,o),s.prototype.processChunk=function(c){this.push({data:a.transformTo(this.destType,c.data),meta:c.meta})},r.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var o=n("./GenericWorker"),a=n("../crc32");function s(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(s,o),s.prototype.processChunk=function(c){this.streamInfo.crc32=a(c.data,this.streamInfo.crc32||0),this.push(c)},r.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var o=n("../utils"),a=n("./GenericWorker");function s(c){a.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}o.inherits(s,a),s.prototype.processChunk=function(c){if(c){var u=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=u+c.data.length}a.prototype.processChunk.call(this,c)},r.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var o=n("../utils"),a=n("./GenericWorker");function s(c){a.call(this,"DataWorker");var u=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(l){u.dataIsReady=!0,u.data=l,u.max=l&&l.length||0,u.type=o.getTypeOf(l),u.isPaused||u._tickAndRepeat()},function(l){u.error(l)})}o.inherits(s,a),s.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,u=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,u);break;case"uint8array":c=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":c=this.data.slice(this.index,u)}return this.index=u,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function o(a){this.name=a||"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}o.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,s){return this._listeners[a].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,s){if(this._listeners[a])for(var c=0;c<this._listeners[a].length;c++)this._listeners[a][c].call(this,s)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var s=this;return a.on("data",function(c){s.processChunk(c)}),a.on("end",function(){s.end()}),a.on("error",function(c){s.error(c)}),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 a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,s){return this.extraStreamInfo[a]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},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 a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},r.exports=o},{}],29:[function(n,r,i){var o=n("../utils"),a=n("./ConvertWorker"),s=n("./GenericWorker"),c=n("../base64"),u=n("../support"),l=n("../external"),h=null;if(u.nodestream)try{h=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(p,g){return new l.Promise(function(y,R){var m=[],v=p._internalType,x=p._outputType,_=p._mimeType;p.on("data",function(E,N){m.push(E),g&&g(N)}).on("error",function(E){m=[],R(E)}).on("end",function(){try{var E=function(N,U,O){switch(N){case"blob":return o.newBlob(o.transformTo("arraybuffer",U),O);case"base64":return c.encode(U);default:return o.transformTo(N,U)}}(x,function(N,U){var O,Q=0,ne=null,T=0;for(O=0;O<U.length;O++)T+=U[O].length;switch(N){case"string":return U.join("");case"array":return Array.prototype.concat.apply([],U);case"uint8array":for(ne=new Uint8Array(T),O=0;O<U.length;O++)ne.set(U[O],Q),Q+=U[O].length;return ne;case"nodebuffer":return Buffer.concat(U);default:throw new Error("concat : unsupported type '"+N+"'")}}(v,m),_);y(E)}catch(N){R(N)}m=[]}).resume()})}function d(p,g,y){var R=g;switch(g){case"blob":case"arraybuffer":R="uint8array";break;case"base64":R="string"}try{this._internalType=R,this._outputType=g,this._mimeType=y,o.checkSupport(R),this._worker=p.pipe(new a(R)),p.lock()}catch(m){this._worker=new s("error"),this._worker.error(m)}}d.prototype={accumulate:function(p){return f(this,p)},on:function(p,g){var y=this;return p==="data"?this._worker.on(p,function(R){g.call(y,R.data,R.meta)}):this._worker.on(p,function(){o.delay(g,arguments,y)}),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(p){if(o.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:this._outputType!=="nodebuffer"},p)}},r.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,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 o=new ArrayBuffer(0);try{i.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(o),i.blob=a.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,i){for(var o=n("./utils"),a=n("./support"),s=n("./nodejsUtils"),c=n("./stream/GenericWorker"),u=new Array(256),l=0;l<256;l++)u[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;u[254]=u[254]=1;function h(){c.call(this,"utf-8 decode"),this.leftOver=null}function f(){c.call(this,"utf-8 encode")}i.utf8encode=function(d){return a.nodebuffer?s.newBufferFrom(d,"utf-8"):function(p){var g,y,R,m,v,x=p.length,_=0;for(m=0;m<x;m++)(64512&(y=p.charCodeAt(m)))==55296&&m+1<x&&(64512&(R=p.charCodeAt(m+1)))==56320&&(y=65536+(y-55296<<10)+(R-56320),m++),_+=y<128?1:y<2048?2:y<65536?3:4;for(g=a.uint8array?new Uint8Array(_):new Array(_),m=v=0;v<_;m++)(64512&(y=p.charCodeAt(m)))==55296&&m+1<x&&(64512&(R=p.charCodeAt(m+1)))==56320&&(y=65536+(y-55296<<10)+(R-56320),m++),y<128?g[v++]=y:(y<2048?g[v++]=192|y>>>6:(y<65536?g[v++]=224|y>>>12:(g[v++]=240|y>>>18,g[v++]=128|y>>>12&63),g[v++]=128|y>>>6&63),g[v++]=128|63&y);return g}(d)},i.utf8decode=function(d){return a.nodebuffer?o.transformTo("nodebuffer",d).toString("utf-8"):function(p){var g,y,R,m,v=p.length,x=new Array(2*v);for(g=y=0;g<v;)if((R=p[g++])<128)x[y++]=R;else if(4<(m=u[R]))x[y++]=65533,g+=m-1;else{for(R&=m===2?31:m===3?15:7;1<m&&g<v;)R=R<<6|63&p[g++],m--;1<m?x[y++]=65533:R<65536?x[y++]=R:(R-=65536,x[y++]=55296|R>>10&1023,x[y++]=56320|1023&R)}return x.length!==y&&(x.subarray?x=x.subarray(0,y):x.length=y),o.applyFromCharCode(x)}(d=o.transformTo(a.uint8array?"uint8array":"array",d))},o.inherits(h,c),h.prototype.processChunk=function(d){var p=o.transformTo(a.uint8array?"uint8array":"array",d.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var g=p;(p=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),p.set(g,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var y=function(m,v){var x;for((v=v||m.length)>m.length&&(v=m.length),x=v-1;0<=x&&(192&m[x])==128;)x--;return x<0||x===0?v:x+u[m[x]]>v?x:v}(p),R=p;y!==p.length&&(a.uint8array?(R=p.subarray(0,y),this.leftOver=p.subarray(y,p.length)):(R=p.slice(0,y),this.leftOver=p.slice(y,p.length))),this.push({data:i.utf8decode(R),meta:d.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=h,o.inherits(f,c),f.prototype.processChunk=function(d){this.push({data:i.utf8encode(d.data),meta:d.meta})},i.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var o=n("./support"),a=n("./base64"),s=n("./nodejsUtils"),c=n("./external");function u(g){return g}function l(g,y){for(var R=0;R<g.length;++R)y[R]=255&g.charCodeAt(R);return y}n("setimmediate"),i.newBlob=function(g,y){i.checkSupport("blob");try{return new Blob([g],{type:y})}catch{try{var R=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return R.append(g),R.getBlob(y)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(g,y,R){var m=[],v=0,x=g.length;if(x<=R)return String.fromCharCode.apply(null,g);for(;v<x;)y==="array"||y==="nodebuffer"?m.push(String.fromCharCode.apply(null,g.slice(v,Math.min(v+R,x)))):m.push(String.fromCharCode.apply(null,g.subarray(v,Math.min(v+R,x)))),v+=R;return m.join("")},stringifyByChar:function(g){for(var y="",R=0;R<g.length;R++)y+=String.fromCharCode(g[R]);return y},applyCanBeUsed:{uint8array:function(){try{return o.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return o.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}}()}};function f(g){var y=65536,R=i.getTypeOf(g),m=!0;if(R==="uint8array"?m=h.applyCanBeUsed.uint8array:R==="nodebuffer"&&(m=h.applyCanBeUsed.nodebuffer),m)for(;1<y;)try{return h.stringifyByChunk(g,R,y)}catch{y=Math.floor(y/2)}return h.stringifyByChar(g)}function d(g,y){for(var R=0;R<g.length;R++)y[R]=g[R];return y}i.applyFromCharCode=f;var p={};p.string={string:u,array:function(g){return l(g,new Array(g.length))},arraybuffer:function(g){return p.string.uint8array(g).buffer},uint8array:function(g){return l(g,new Uint8Array(g.length))},nodebuffer:function(g){return l(g,s.allocBuffer(g.length))}},p.array={string:f,array:u,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return s.newBufferFrom(g)}},p.arraybuffer={string:function(g){return f(new Uint8Array(g))},array:function(g){return d(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:u,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return s.newBufferFrom(new Uint8Array(g))}},p.uint8array={string:f,array:function(g){return d(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:u,nodebuffer:function(g){return s.newBufferFrom(g)}},p.nodebuffer={string:f,array:function(g){return d(g,new Array(g.length))},arraybuffer:function(g){return p.nodebuffer.uint8array(g).buffer},uint8array:function(g){return d(g,new Uint8Array(g.length))},nodebuffer:u},i.transformTo=function(g,y){if(y=y||"",!g)return y;i.checkSupport(g);var R=i.getTypeOf(y);return p[R][g](y)},i.resolve=function(g){for(var y=g.split("/"),R=[],m=0;m<y.length;m++){var v=y[m];v==="."||v===""&&m!==0&&m!==y.length-1||(v===".."?R.pop():R.push(v))}return R.join("/")},i.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":o.nodebuffer&&s.isBuffer(g)?"nodebuffer":o.uint8array&&g instanceof Uint8Array?"uint8array":o.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(g){if(!o[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(g){var y,R,m="";for(R=0;R<(g||"").length;R++)m+="\\x"+((y=g.charCodeAt(R))<16?"0":"")+y.toString(16).toUpperCase();return m},i.delay=function(g,y,R){setImmediate(function(){g.apply(R||null,y||[])})},i.inherits=function(g,y){function R(){}R.prototype=y.prototype,g.prototype=new R},i.extend=function(){var g,y,R={};for(g=0;g<arguments.length;g++)for(y in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],y)&&R[y]===void 0&&(R[y]=arguments[g][y]);return R},i.prepareContent=function(g,y,R,m,v){return c.Promise.resolve(y).then(function(x){return o.blob&&(x instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(x))!==-1)&&typeof FileReader!="undefined"?new c.Promise(function(_,E){var N=new FileReader;N.onload=function(U){_(U.target.result)},N.onerror=function(U){E(U.target.error)},N.readAsArrayBuffer(x)}):x}).then(function(x){var _=i.getTypeOf(x);return _?(_==="arraybuffer"?x=i.transformTo("uint8array",x):_==="string"&&(v?x=a.decode(x):R&&m!==!0&&(x=function(E){return l(E,o.uint8array?new Uint8Array(E.length):new Array(E.length))}(x))),x):c.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(n,r,i){var o=n("./reader/readerFor"),a=n("./utils"),s=n("./signature"),c=n("./zipEntry"),u=n("./support");function l(h){this.files=[],this.loadOptions=h}l.prototype={checkSignature:function(h){if(!this.reader.readAndCheckSignature(h)){this.reader.index-=4;var f=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(f)+", expected "+a.pretty(h)+")")}},isSignature:function(h,f){var d=this.reader.index;this.reader.setIndex(h);var p=this.reader.readString(4)===f;return this.reader.setIndex(d),p},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 h=this.reader.readData(this.zipCommentLength),f=u.uint8array?"uint8array":"array",d=a.transformTo(f,h);this.zipComment=this.loadOptions.decodeFileName(d)},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 h,f,d,p=this.zip64EndOfCentralSize-44;0<p;)h=this.reader.readInt(2),f=this.reader.readInt(4),d=this.reader.readData(f),this.zip64ExtensibleData[h]={id:h,length:f,value:d}},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 h,f;for(h=0;h<this.files.length;h++)f=this.files[h],this.reader.setIndex(f.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),f.readLocalPart(this.reader),f.handleUTF8(),f.processAttributes()},readCentralDir:function(){var h;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(h=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(h);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 h=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(h<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(h);var f=h;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(h=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(h),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 d=this.centralDirOffset+this.centralDirSize;this.zip64&&(d+=20,d+=12+this.zip64EndOfCentralSize);var p=f-d;if(0<p)this.isSignature(f,s.CENTRAL_FILE_HEADER)||(this.reader.zero=p);else if(p<0)throw new Error("Corrupted zip: missing "+Math.abs(p)+" bytes.")},prepareReader:function(h){this.reader=o(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var o=n("./reader/readerFor"),a=n("./utils"),s=n("./compressedObject"),c=n("./crc32"),u=n("./utf8"),l=n("./compressions"),h=n("./support");function f(d,p){this.options=d,this.loadOptions=p}f.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(d){var p,g;if(d.skip(22),this.fileNameLength=d.readInt(2),g=d.readInt(2),this.fileName=d.readData(this.fileNameLength),d.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((p=function(y){for(var R in l)if(Object.prototype.hasOwnProperty.call(l,R)&&l[R].magic===y)return l[R];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,p,d.readData(this.compressedSize))},readCentralPart:function(d){this.versionMadeBy=d.readInt(2),d.skip(2),this.bitFlag=d.readInt(2),this.compressionMethod=d.readString(2),this.date=d.readDate(),this.crc32=d.readInt(4),this.compressedSize=d.readInt(4),this.uncompressedSize=d.readInt(4);var p=d.readInt(2);if(this.extraFieldsLength=d.readInt(2),this.fileCommentLength=d.readInt(2),this.diskNumberStart=d.readInt(2),this.internalFileAttributes=d.readInt(2),this.externalFileAttributes=d.readInt(4),this.localHeaderOffset=d.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");d.skip(p),this.readExtraFields(d),this.parseZIP64ExtraField(d),this.fileComment=d.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var d=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),d==0&&(this.dosPermissions=63&this.externalFileAttributes),d==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var d=o(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=d.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=d.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=d.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=d.readInt(4))}},readExtraFields:function(d){var p,g,y,R=d.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});d.index+4<R;)p=d.readInt(2),g=d.readInt(2),y=d.readData(g),this.extraFields[p]={id:p,length:g,value:y};d.setIndex(R)},handleUTF8:function(){var d=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=u.utf8decode(this.fileName),this.fileCommentStr=u.utf8decode(this.fileComment);else{var p=this.findExtraFieldUnicodePath();if(p!==null)this.fileNameStr=p;else{var g=a.transformTo(d,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var y=this.findExtraFieldUnicodeComment();if(y!==null)this.fileCommentStr=y;else{var R=a.transformTo(d,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(R)}}},findExtraFieldUnicodePath:function(){var d=this.extraFields[28789];if(d){var p=o(d.value);return p.readInt(1)!==1||c(this.fileName)!==p.readInt(4)?null:u.utf8decode(p.readData(d.length-5))}return null},findExtraFieldUnicodeComment:function(){var d=this.extraFields[25461];if(d){var p=o(d.value);return p.readInt(1)!==1||c(this.fileComment)!==p.readInt(4)?null:u.utf8decode(p.readData(d.length-5))}return null}},r.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,i){function o(p,g,y){this.name=p,this.dir=y.dir,this.date=y.date,this.comment=y.comment,this.unixPermissions=y.unixPermissions,this.dosPermissions=y.dosPermissions,this._data=g,this._dataBinary=y.binary,this.options={compression:y.compression,compressionOptions:y.compressionOptions}}var a=n("./stream/StreamHelper"),s=n("./stream/DataWorker"),c=n("./utf8"),u=n("./compressedObject"),l=n("./stream/GenericWorker");o.prototype={internalStream:function(p){var g=null,y="string";try{if(!p)throw new Error("No output type specified.");var R=(y=p.toLowerCase())==="string"||y==="text";y!=="binarystring"&&y!=="text"||(y="string"),g=this._decompressWorker();var m=!this._dataBinary;m&&!R&&(g=g.pipe(new c.Utf8EncodeWorker)),!m&&R&&(g=g.pipe(new c.Utf8DecodeWorker))}catch(v){(g=new l("error")).error(v)}return new a(g,y,"")},async:function(p,g){return this.internalStream(p).accumulate(g)},nodeStream:function(p,g){return this.internalStream(p||"nodebuffer").toNodejsStream(g)},_compressWorker:function(p,g){if(this._data instanceof u&&this._data.compression.magic===p.magic)return this._data.getCompressedWorker();var y=this._decompressWorker();return this._dataBinary||(y=y.pipe(new c.Utf8EncodeWorker)),u.createWorkerFrom(y,p,g)},_decompressWorker:function(){return this._data instanceof u?this._data.getContentWorker():this._data instanceof l?this._data:new s(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<h.length;d++)o.prototype[h[d]]=f;r.exports=o},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,i){(function(o){var a,s,c=o.MutationObserver||o.WebKitMutationObserver;if(c){var u=0,l=new c(p),h=o.document.createTextNode("");l.observe(h,{characterData:!0}),a=function(){h.data=u=++u%2}}else if(o.setImmediate||o.MessageChannel===void 0)a="document"in o&&"onreadystatechange"in o.document.createElement("script")?function(){var g=o.document.createElement("script");g.onreadystatechange=function(){p(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},o.document.documentElement.appendChild(g)}:function(){setTimeout(p,0)};else{var f=new o.MessageChannel;f.port1.onmessage=p,a=function(){f.port2.postMessage(0)}}var d=[];function p(){var g,y;s=!0;for(var R=d.length;R;){for(y=d,d=[],g=-1;++g<R;)y[g]();R=d.length}s=!1}r.exports=function(g){d.push(g)!==1||s||a()}}).call(this,typeof qe!="undefined"?qe:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(n,r,i){var o=n("immediate");function a(){}var s={},c=["REJECTED"],u=["FULFILLED"],l=["PENDING"];function h(R){if(typeof R!="function")throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,R!==a&&g(this,R)}function f(R,m,v){this.promise=R,typeof m=="function"&&(this.onFulfilled=m,this.callFulfilled=this.otherCallFulfilled),typeof v=="function"&&(this.onRejected=v,this.callRejected=this.otherCallRejected)}function d(R,m,v){o(function(){var x;try{x=m(v)}catch(_){return s.reject(R,_)}x===R?s.reject(R,new TypeError("Cannot resolve promise with itself")):s.resolve(R,x)})}function p(R){var m=R&&R.then;if(R&&(typeof R=="object"||typeof R=="function")&&typeof m=="function")return function(){m.apply(R,arguments)}}function g(R,m){var v=!1;function x(N){v||(v=!0,s.reject(R,N))}function _(N){v||(v=!0,s.resolve(R,N))}var E=y(function(){m(_,x)});E.status==="error"&&x(E.value)}function y(R,m){var v={};try{v.value=R(m),v.status="success"}catch(x){v.status="error",v.value=x}return v}(r.exports=h).prototype.finally=function(R){if(typeof R!="function")return this;var m=this.constructor;return this.then(function(v){return m.resolve(R()).then(function(){return v})},function(v){return m.resolve(R()).then(function(){throw v})})},h.prototype.catch=function(R){return this.then(null,R)},h.prototype.then=function(R,m){if(typeof R!="function"&&this.state===u||typeof m!="function"&&this.state===c)return this;var v=new this.constructor(a);return this.state!==l?d(v,this.state===u?R:m,this.outcome):this.queue.push(new f(v,R,m)),v},f.prototype.callFulfilled=function(R){s.resolve(this.promise,R)},f.prototype.otherCallFulfilled=function(R){d(this.promise,this.onFulfilled,R)},f.prototype.callRejected=function(R){s.reject(this.promise,R)},f.prototype.otherCallRejected=function(R){d(this.promise,this.onRejected,R)},s.resolve=function(R,m){var v=y(p,m);if(v.status==="error")return s.reject(R,v.value);var x=v.value;if(x)g(R,x);else{R.state=u,R.outcome=m;for(var _=-1,E=R.queue.length;++_<E;)R.queue[_].callFulfilled(m)}return R},s.reject=function(R,m){R.state=c,R.outcome=m;for(var v=-1,x=R.queue.length;++v<x;)R.queue[v].callRejected(m);return R},h.resolve=function(R){return R instanceof this?R:s.resolve(new this(a),R)},h.reject=function(R){var m=new this(a);return s.reject(m,R)},h.all=function(R){var m=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=R.length,x=!1;if(!v)return this.resolve([]);for(var _=new Array(v),E=0,N=-1,U=new this(a);++N<v;)O(R[N],N);return U;function O(Q,ne){m.resolve(Q).then(function(T){_[ne]=T,++E!==v||x||(x=!0,s.resolve(U,_))},function(T){x||(x=!0,s.reject(U,T))})}},h.race=function(R){var m=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=R.length,x=!1;if(!v)return this.resolve([]);for(var _=-1,E=new this(a);++_<v;)N=R[_],m.resolve(N).then(function(U){x||(x=!0,s.resolve(E,U))},function(U){x||(x=!0,s.reject(E,U))});var N;return E}},{immediate:36}],38:[function(n,r,i){var o={};(0,n("./lib/utils/common").assign)(o,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,i){var o=n("./zlib/deflate"),a=n("./utils/common"),s=n("./utils/strings"),c=n("./zlib/messages"),u=n("./zlib/zstream"),l=Object.prototype.toString,h=0,f=-1,d=0,p=8;function g(R){if(!(this instanceof g))return new g(R);this.options=a.assign({level:f,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},R||{});var m=this.options;m.raw&&0<m.windowBits?m.windowBits=-m.windowBits:m.gzip&&0<m.windowBits&&m.windowBits<16&&(m.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var v=o.deflateInit2(this.strm,m.level,m.method,m.windowBits,m.memLevel,m.strategy);if(v!==h)throw new Error(c[v]);if(m.header&&o.deflateSetHeader(this.strm,m.header),m.dictionary){var x;if(x=typeof m.dictionary=="string"?s.string2buf(m.dictionary):l.call(m.dictionary)==="[object ArrayBuffer]"?new Uint8Array(m.dictionary):m.dictionary,(v=o.deflateSetDictionary(this.strm,x))!==h)throw new Error(c[v]);this._dict_set=!0}}function y(R,m){var v=new g(m);if(v.push(R,!0),v.err)throw v.msg||c[v.err];return v.result}g.prototype.push=function(R,m){var v,x,_=this.strm,E=this.options.chunkSize;if(this.ended)return!1;x=m===~~m?m:m===!0?4:0,typeof R=="string"?_.input=s.string2buf(R):l.call(R)==="[object ArrayBuffer]"?_.input=new Uint8Array(R):_.input=R,_.next_in=0,_.avail_in=_.input.length;do{if(_.avail_out===0&&(_.output=new a.Buf8(E),_.next_out=0,_.avail_out=E),(v=o.deflate(_,x))!==1&&v!==h)return this.onEnd(v),!(this.ended=!0);_.avail_out!==0&&(_.avail_in!==0||x!==4&&x!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(a.shrinkBuf(_.output,_.next_out))):this.onData(a.shrinkBuf(_.output,_.next_out)))}while((0<_.avail_in||_.avail_out===0)&&v!==1);return x===4?(v=o.deflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===h):x!==2||(this.onEnd(h),!(_.avail_out=0))},g.prototype.onData=function(R){this.chunks.push(R)},g.prototype.onEnd=function(R){R===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=R,this.msg=this.strm.msg},i.Deflate=g,i.deflate=y,i.deflateRaw=function(R,m){return(m=m||{}).raw=!0,y(R,m)},i.gzip=function(R,m){return(m=m||{}).gzip=!0,y(R,m)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,i){var o=n("./zlib/inflate"),a=n("./utils/common"),s=n("./utils/strings"),c=n("./zlib/constants"),u=n("./zlib/messages"),l=n("./zlib/zstream"),h=n("./zlib/gzheader"),f=Object.prototype.toString;function d(g){if(!(this instanceof d))return new d(g);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},g||{});var y=this.options;y.raw&&0<=y.windowBits&&y.windowBits<16&&(y.windowBits=-y.windowBits,y.windowBits===0&&(y.windowBits=-15)),!(0<=y.windowBits&&y.windowBits<16)||g&&g.windowBits||(y.windowBits+=32),15<y.windowBits&&y.windowBits<48&&(15&y.windowBits)==0&&(y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var R=o.inflateInit2(this.strm,y.windowBits);if(R!==c.Z_OK)throw new Error(u[R]);this.header=new h,o.inflateGetHeader(this.strm,this.header)}function p(g,y){var R=new d(y);if(R.push(g,!0),R.err)throw R.msg||u[R.err];return R.result}d.prototype.push=function(g,y){var R,m,v,x,_,E,N=this.strm,U=this.options.chunkSize,O=this.options.dictionary,Q=!1;if(this.ended)return!1;m=y===~~y?y:y===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof g=="string"?N.input=s.binstring2buf(g):f.call(g)==="[object ArrayBuffer]"?N.input=new Uint8Array(g):N.input=g,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new a.Buf8(U),N.next_out=0,N.avail_out=U),(R=o.inflate(N,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&O&&(E=typeof O=="string"?s.string2buf(O):f.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,R=o.inflateSetDictionary(this.strm,E)),R===c.Z_BUF_ERROR&&Q===!0&&(R=c.Z_OK,Q=!1),R!==c.Z_STREAM_END&&R!==c.Z_OK)return this.onEnd(R),!(this.ended=!0);N.next_out&&(N.avail_out!==0&&R!==c.Z_STREAM_END&&(N.avail_in!==0||m!==c.Z_FINISH&&m!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(v=s.utf8border(N.output,N.next_out),x=N.next_out-v,_=s.buf2string(N.output,v),N.next_out=x,N.avail_out=U-x,x&&a.arraySet(N.output,N.output,v,x,0),this.onData(_)):this.onData(a.shrinkBuf(N.output,N.next_out)))),N.avail_in===0&&N.avail_out===0&&(Q=!0)}while((0<N.avail_in||N.avail_out===0)&&R!==c.Z_STREAM_END);return R===c.Z_STREAM_END&&(m=c.Z_FINISH),m===c.Z_FINISH?(R=o.inflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===c.Z_OK):m!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(N.avail_out=0))},d.prototype.onData=function(g){this.chunks.push(g)},d.prototype.onEnd=function(g){g===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},i.Inflate=d,i.inflate=p,i.inflateRaw=function(g,y){return(y=y||{}).raw=!0,p(g,y)},i.ungzip=p},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,i){var o=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";i.assign=function(c){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var l=u.shift();if(l){if(typeof l!="object")throw new TypeError(l+"must be non-object");for(var h in l)l.hasOwnProperty(h)&&(c[h]=l[h])}}return c},i.shrinkBuf=function(c,u){return c.length===u?c:c.subarray?c.subarray(0,u):(c.length=u,c)};var a={arraySet:function(c,u,l,h,f){if(u.subarray&&c.subarray)c.set(u.subarray(l,l+h),f);else for(var d=0;d<h;d++)c[f+d]=u[l+d]},flattenChunks:function(c){var u,l,h,f,d,p;for(u=h=0,l=c.length;u<l;u++)h+=c[u].length;for(p=new Uint8Array(h),u=f=0,l=c.length;u<l;u++)d=c[u],p.set(d,f),f+=d.length;return p}},s={arraySet:function(c,u,l,h,f){for(var d=0;d<h;d++)c[f+d]=u[l+d]},flattenChunks:function(c){return[].concat.apply([],c)}};i.setTyped=function(c){c?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,a)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,s))},i.setTyped(o)},{}],42:[function(n,r,i){var o=n("./common"),a=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var c=new o.Buf8(256),u=0;u<256;u++)c[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;function l(h,f){if(f<65537&&(h.subarray&&s||!h.subarray&&a))return String.fromCharCode.apply(null,o.shrinkBuf(h,f));for(var d="",p=0;p<f;p++)d+=String.fromCharCode(h[p]);return d}c[254]=c[254]=1,i.string2buf=function(h){var f,d,p,g,y,R=h.length,m=0;for(g=0;g<R;g++)(64512&(d=h.charCodeAt(g)))==55296&&g+1<R&&(64512&(p=h.charCodeAt(g+1)))==56320&&(d=65536+(d-55296<<10)+(p-56320),g++),m+=d<128?1:d<2048?2:d<65536?3:4;for(f=new o.Buf8(m),g=y=0;y<m;g++)(64512&(d=h.charCodeAt(g)))==55296&&g+1<R&&(64512&(p=h.charCodeAt(g+1)))==56320&&(d=65536+(d-55296<<10)+(p-56320),g++),d<128?f[y++]=d:(d<2048?f[y++]=192|d>>>6:(d<65536?f[y++]=224|d>>>12:(f[y++]=240|d>>>18,f[y++]=128|d>>>12&63),f[y++]=128|d>>>6&63),f[y++]=128|63&d);return f},i.buf2binstring=function(h){return l(h,h.length)},i.binstring2buf=function(h){for(var f=new o.Buf8(h.length),d=0,p=f.length;d<p;d++)f[d]=h.charCodeAt(d);return f},i.buf2string=function(h,f){var d,p,g,y,R=f||h.length,m=new Array(2*R);for(d=p=0;d<R;)if((g=h[d++])<128)m[p++]=g;else if(4<(y=c[g]))m[p++]=65533,d+=y-1;else{for(g&=y===2?31:y===3?15:7;1<y&&d<R;)g=g<<6|63&h[d++],y--;1<y?m[p++]=65533:g<65536?m[p++]=g:(g-=65536,m[p++]=55296|g>>10&1023,m[p++]=56320|1023&g)}return l(m,p)},i.utf8border=function(h,f){var d;for((f=f||h.length)>h.length&&(f=h.length),d=f-1;0<=d&&(192&h[d])==128;)d--;return d<0||d===0?f:d+c[h[d]]>f?d:f}},{"./common":41}],43:[function(n,r,i){r.exports=function(o,a,s,c){for(var u=65535&o|0,l=o>>>16&65535|0,h=0;s!==0;){for(s-=h=2e3<s?2e3:s;l=l+(u=u+a[c++]|0)|0,--h;);u%=65521,l%=65521}return u|l<<16|0}},{}],44:[function(n,r,i){r.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(n,r,i){var o=function(){for(var a,s=[],c=0;c<256;c++){a=c;for(var u=0;u<8;u++)a=1&a?3988292384^a>>>1:a>>>1;s[c]=a}return s}();r.exports=function(a,s,c,u){var l=o,h=u+c;a^=-1;for(var f=u;f<h;f++)a=a>>>8^l[255&(a^s[f])];return-1^a}},{}],46:[function(n,r,i){var o,a=n("../utils/common"),s=n("./trees"),c=n("./adler32"),u=n("./crc32"),l=n("./messages"),h=0,f=4,d=0,p=-2,g=-1,y=4,R=2,m=8,v=9,x=286,_=30,E=19,N=2*x+1,U=15,O=3,Q=258,ne=Q+O+1,T=42,I=113,b=1,M=2,C=3,F=4;function A(D,oe){return D.msg=l[oe],oe}function B(D){return(D<<1)-(4<D?9:0)}function $(D){for(var oe=D.length;0<=--oe;)D[oe]=0}function V(D){var oe=D.state,W=oe.pending;W>D.avail_out&&(W=D.avail_out),W!==0&&(a.arraySet(D.output,oe.pending_buf,oe.pending_out,W,D.next_out),D.next_out+=W,oe.pending_out+=W,D.total_out+=W,D.avail_out-=W,oe.pending-=W,oe.pending===0&&(oe.pending_out=0))}function L(D,oe){s._tr_flush_block(D,0<=D.block_start?D.block_start:-1,D.strstart-D.block_start,oe),D.block_start=D.strstart,V(D.strm)}function z(D,oe){D.pending_buf[D.pending++]=oe}function q(D,oe){D.pending_buf[D.pending++]=oe>>>8&255,D.pending_buf[D.pending++]=255&oe}function se(D,oe){var W,w,S=D.max_chain_length,P=D.strstart,J=D.prev_length,ie=D.nice_match,K=D.strstart>D.w_size-ne?D.strstart-(D.w_size-ne):0,j=D.window,re=D.w_mask,ce=D.prev,he=D.strstart+Q,ve=j[P+J-1],_e=j[P+J];D.prev_length>=D.good_match&&(S>>=2),ie>D.lookahead&&(ie=D.lookahead);do if(j[(W=oe)+J]===_e&&j[W+J-1]===ve&&j[W]===j[P]&&j[++W]===j[P+1]){P+=2,W++;do;while(j[++P]===j[++W]&&j[++P]===j[++W]&&j[++P]===j[++W]&&j[++P]===j[++W]&&j[++P]===j[++W]&&j[++P]===j[++W]&&j[++P]===j[++W]&&j[++P]===j[++W]&&P<he);if(w=Q-(he-P),P=he-Q,J<w){if(D.match_start=oe,ie<=(J=w))break;ve=j[P+J-1],_e=j[P+J]}}while((oe=ce[oe&re])>K&&--S!=0);return J<=D.lookahead?J:D.lookahead}function ae(D){var oe,W,w,S,P,J,ie,K,j,re,ce=D.w_size;do{if(S=D.window_size-D.lookahead-D.strstart,D.strstart>=ce+(ce-ne)){for(a.arraySet(D.window,D.window,ce,ce,0),D.match_start-=ce,D.strstart-=ce,D.block_start-=ce,oe=W=D.hash_size;w=D.head[--oe],D.head[oe]=ce<=w?w-ce:0,--W;);for(oe=W=ce;w=D.prev[--oe],D.prev[oe]=ce<=w?w-ce:0,--W;);S+=ce}if(D.strm.avail_in===0)break;if(J=D.strm,ie=D.window,K=D.strstart+D.lookahead,j=S,re=void 0,re=J.avail_in,j<re&&(re=j),W=re===0?0:(J.avail_in-=re,a.arraySet(ie,J.input,J.next_in,re,K),J.state.wrap===1?J.adler=c(J.adler,ie,re,K):J.state.wrap===2&&(J.adler=u(J.adler,ie,re,K)),J.next_in+=re,J.total_in+=re,re),D.lookahead+=W,D.lookahead+D.insert>=O)for(P=D.strstart-D.insert,D.ins_h=D.window[P],D.ins_h=(D.ins_h<<D.hash_shift^D.window[P+1])&D.hash_mask;D.insert&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[P+O-1])&D.hash_mask,D.prev[P&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=P,P++,D.insert--,!(D.lookahead+D.insert<O)););}while(D.lookahead<ne&&D.strm.avail_in!==0)}function Y(D,oe){for(var W,w;;){if(D.lookahead<ne){if(ae(D),D.lookahead<ne&&oe===h)return b;if(D.lookahead===0)break}if(W=0,D.lookahead>=O&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+O-1])&D.hash_mask,W=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart),W!==0&&D.strstart-W<=D.w_size-ne&&(D.match_length=se(D,W)),D.match_length>=O)if(w=s._tr_tally(D,D.strstart-D.match_start,D.match_length-O),D.lookahead-=D.match_length,D.match_length<=D.max_lazy_match&&D.lookahead>=O){for(D.match_length--;D.strstart++,D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+O-1])&D.hash_mask,W=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart,--D.match_length!=0;);D.strstart++}else D.strstart+=D.match_length,D.match_length=0,D.ins_h=D.window[D.strstart],D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+1])&D.hash_mask;else w=s._tr_tally(D,0,D.window[D.strstart]),D.lookahead--,D.strstart++;if(w&&(L(D,!1),D.strm.avail_out===0))return b}return D.insert=D.strstart<O-1?D.strstart:O-1,oe===f?(L(D,!0),D.strm.avail_out===0?C:F):D.last_lit&&(L(D,!1),D.strm.avail_out===0)?b:M}function X(D,oe){for(var W,w,S;;){if(D.lookahead<ne){if(ae(D),D.lookahead<ne&&oe===h)return b;if(D.lookahead===0)break}if(W=0,D.lookahead>=O&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+O-1])&D.hash_mask,W=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart),D.prev_length=D.match_length,D.prev_match=D.match_start,D.match_length=O-1,W!==0&&D.prev_length<D.max_lazy_match&&D.strstart-W<=D.w_size-ne&&(D.match_length=se(D,W),D.match_length<=5&&(D.strategy===1||D.match_length===O&&4096<D.strstart-D.match_start)&&(D.match_length=O-1)),D.prev_length>=O&&D.match_length<=D.prev_length){for(S=D.strstart+D.lookahead-O,w=s._tr_tally(D,D.strstart-1-D.prev_match,D.prev_length-O),D.lookahead-=D.prev_length-1,D.prev_length-=2;++D.strstart<=S&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+O-1])&D.hash_mask,W=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart),--D.prev_length!=0;);if(D.match_available=0,D.match_length=O-1,D.strstart++,w&&(L(D,!1),D.strm.avail_out===0))return b}else if(D.match_available){if((w=s._tr_tally(D,0,D.window[D.strstart-1]))&&L(D,!1),D.strstart++,D.lookahead--,D.strm.avail_out===0)return b}else D.match_available=1,D.strstart++,D.lookahead--}return D.match_available&&(w=s._tr_tally(D,0,D.window[D.strstart-1]),D.match_available=0),D.insert=D.strstart<O-1?D.strstart:O-1,oe===f?(L(D,!0),D.strm.avail_out===0?C:F):D.last_lit&&(L(D,!1),D.strm.avail_out===0)?b:M}function k(D,oe,W,w,S){this.good_length=D,this.max_lazy=oe,this.nice_length=W,this.max_chain=w,this.func=S}function G(){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=m,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 a.Buf16(2*N),this.dyn_dtree=new a.Buf16(2*(2*_+1)),this.bl_tree=new a.Buf16(2*(2*E+1)),$(this.dyn_ltree),$(this.dyn_dtree),$(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(U+1),this.heap=new a.Buf16(2*x+1),$(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*x+1),$(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 H(D){var oe;return D&&D.state?(D.total_in=D.total_out=0,D.data_type=R,(oe=D.state).pending=0,oe.pending_out=0,oe.wrap<0&&(oe.wrap=-oe.wrap),oe.status=oe.wrap?T:I,D.adler=oe.wrap===2?0:1,oe.last_flush=h,s._tr_init(oe),d):A(D,p)}function te(D){var oe=H(D);return oe===d&&function(W){W.window_size=2*W.w_size,$(W.head),W.max_lazy_match=o[W.level].max_lazy,W.good_match=o[W.level].good_length,W.nice_match=o[W.level].nice_length,W.max_chain_length=o[W.level].max_chain,W.strstart=0,W.block_start=0,W.lookahead=0,W.insert=0,W.match_length=W.prev_length=O-1,W.match_available=0,W.ins_h=0}(D.state),oe}function pe(D,oe,W,w,S,P){if(!D)return p;var J=1;if(oe===g&&(oe=6),w<0?(J=0,w=-w):15<w&&(J=2,w-=16),S<1||v<S||W!==m||w<8||15<w||oe<0||9<oe||P<0||y<P)return A(D,p);w===8&&(w=9);var ie=new G;return(D.state=ie).strm=D,ie.wrap=J,ie.gzhead=null,ie.w_bits=w,ie.w_size=1<<ie.w_bits,ie.w_mask=ie.w_size-1,ie.hash_bits=S+7,ie.hash_size=1<<ie.hash_bits,ie.hash_mask=ie.hash_size-1,ie.hash_shift=~~((ie.hash_bits+O-1)/O),ie.window=new a.Buf8(2*ie.w_size),ie.head=new a.Buf16(ie.hash_size),ie.prev=new a.Buf16(ie.w_size),ie.lit_bufsize=1<<S+6,ie.pending_buf_size=4*ie.lit_bufsize,ie.pending_buf=new a.Buf8(ie.pending_buf_size),ie.d_buf=1*ie.lit_bufsize,ie.l_buf=3*ie.lit_bufsize,ie.level=oe,ie.strategy=P,ie.method=W,te(D)}o=[new k(0,0,0,0,function(D,oe){var W=65535;for(W>D.pending_buf_size-5&&(W=D.pending_buf_size-5);;){if(D.lookahead<=1){if(ae(D),D.lookahead===0&&oe===h)return b;if(D.lookahead===0)break}D.strstart+=D.lookahead,D.lookahead=0;var w=D.block_start+W;if((D.strstart===0||D.strstart>=w)&&(D.lookahead=D.strstart-w,D.strstart=w,L(D,!1),D.strm.avail_out===0)||D.strstart-D.block_start>=D.w_size-ne&&(L(D,!1),D.strm.avail_out===0))return b}return D.insert=0,oe===f?(L(D,!0),D.strm.avail_out===0?C:F):(D.strstart>D.block_start&&(L(D,!1),D.strm.avail_out),b)}),new k(4,4,8,4,Y),new k(4,5,16,8,Y),new k(4,6,32,32,Y),new k(4,4,16,16,X),new k(8,16,32,32,X),new k(8,16,128,128,X),new k(8,32,128,256,X),new k(32,128,258,1024,X),new k(32,258,258,4096,X)],i.deflateInit=function(D,oe){return pe(D,oe,m,15,8,0)},i.deflateInit2=pe,i.deflateReset=te,i.deflateResetKeep=H,i.deflateSetHeader=function(D,oe){return D&&D.state?D.state.wrap!==2?p:(D.state.gzhead=oe,d):p},i.deflate=function(D,oe){var W,w,S,P;if(!D||!D.state||5<oe||oe<0)return D?A(D,p):p;if(w=D.state,!D.output||!D.input&&D.avail_in!==0||w.status===666&&oe!==f)return A(D,D.avail_out===0?-5:p);if(w.strm=D,W=w.last_flush,w.last_flush=oe,w.status===T)if(w.wrap===2)D.adler=0,z(w,31),z(w,139),z(w,8),w.gzhead?(z(w,(w.gzhead.text?1:0)+(w.gzhead.hcrc?2:0)+(w.gzhead.extra?4:0)+(w.gzhead.name?8:0)+(w.gzhead.comment?16:0)),z(w,255&w.gzhead.time),z(w,w.gzhead.time>>8&255),z(w,w.gzhead.time>>16&255),z(w,w.gzhead.time>>24&255),z(w,w.level===9?2:2<=w.strategy||w.level<2?4:0),z(w,255&w.gzhead.os),w.gzhead.extra&&w.gzhead.extra.length&&(z(w,255&w.gzhead.extra.length),z(w,w.gzhead.extra.length>>8&255)),w.gzhead.hcrc&&(D.adler=u(D.adler,w.pending_buf,w.pending,0)),w.gzindex=0,w.status=69):(z(w,0),z(w,0),z(w,0),z(w,0),z(w,0),z(w,w.level===9?2:2<=w.strategy||w.level<2?4:0),z(w,3),w.status=I);else{var J=m+(w.w_bits-8<<4)<<8;J|=(2<=w.strategy||w.level<2?0:w.level<6?1:w.level===6?2:3)<<6,w.strstart!==0&&(J|=32),J+=31-J%31,w.status=I,q(w,J),w.strstart!==0&&(q(w,D.adler>>>16),q(w,65535&D.adler)),D.adler=1}if(w.status===69)if(w.gzhead.extra){for(S=w.pending;w.gzindex<(65535&w.gzhead.extra.length)&&(w.pending!==w.pending_buf_size||(w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),V(D),S=w.pending,w.pending!==w.pending_buf_size));)z(w,255&w.gzhead.extra[w.gzindex]),w.gzindex++;w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),w.gzindex===w.gzhead.extra.length&&(w.gzindex=0,w.status=73)}else w.status=73;if(w.status===73)if(w.gzhead.name){S=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),V(D),S=w.pending,w.pending===w.pending_buf_size)){P=1;break}P=w.gzindex<w.gzhead.name.length?255&w.gzhead.name.charCodeAt(w.gzindex++):0,z(w,P)}while(P!==0);w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),P===0&&(w.gzindex=0,w.status=91)}else w.status=91;if(w.status===91)if(w.gzhead.comment){S=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),V(D),S=w.pending,w.pending===w.pending_buf_size)){P=1;break}P=w.gzindex<w.gzhead.comment.length?255&w.gzhead.comment.charCodeAt(w.gzindex++):0,z(w,P)}while(P!==0);w.gzhead.hcrc&&w.pending>S&&(D.adler=u(D.adler,w.pending_buf,w.pending-S,S)),P===0&&(w.status=103)}else w.status=103;if(w.status===103&&(w.gzhead.hcrc?(w.pending+2>w.pending_buf_size&&V(D),w.pending+2<=w.pending_buf_size&&(z(w,255&D.adler),z(w,D.adler>>8&255),D.adler=0,w.status=I)):w.status=I),w.pending!==0){if(V(D),D.avail_out===0)return w.last_flush=-1,d}else if(D.avail_in===0&&B(oe)<=B(W)&&oe!==f)return A(D,-5);if(w.status===666&&D.avail_in!==0)return A(D,-5);if(D.avail_in!==0||w.lookahead!==0||oe!==h&&w.status!==666){var ie=w.strategy===2?function(K,j){for(var re;;){if(K.lookahead===0&&(ae(K),K.lookahead===0)){if(j===h)return b;break}if(K.match_length=0,re=s._tr_tally(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++,re&&(L(K,!1),K.strm.avail_out===0))return b}return K.insert=0,j===f?(L(K,!0),K.strm.avail_out===0?C:F):K.last_lit&&(L(K,!1),K.strm.avail_out===0)?b:M}(w,oe):w.strategy===3?function(K,j){for(var re,ce,he,ve,_e=K.window;;){if(K.lookahead<=Q){if(ae(K),K.lookahead<=Q&&j===h)return b;if(K.lookahead===0)break}if(K.match_length=0,K.lookahead>=O&&0<K.strstart&&(ce=_e[he=K.strstart-1])===_e[++he]&&ce===_e[++he]&&ce===_e[++he]){ve=K.strstart+Q;do;while(ce===_e[++he]&&ce===_e[++he]&&ce===_e[++he]&&ce===_e[++he]&&ce===_e[++he]&&ce===_e[++he]&&ce===_e[++he]&&ce===_e[++he]&&he<ve);K.match_length=Q-(ve-he),K.match_length>K.lookahead&&(K.match_length=K.lookahead)}if(K.match_length>=O?(re=s._tr_tally(K,1,K.match_length-O),K.lookahead-=K.match_length,K.strstart+=K.match_length,K.match_length=0):(re=s._tr_tally(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++),re&&(L(K,!1),K.strm.avail_out===0))return b}return K.insert=0,j===f?(L(K,!0),K.strm.avail_out===0?C:F):K.last_lit&&(L(K,!1),K.strm.avail_out===0)?b:M}(w,oe):o[w.level].func(w,oe);if(ie!==C&&ie!==F||(w.status=666),ie===b||ie===C)return D.avail_out===0&&(w.last_flush=-1),d;if(ie===M&&(oe===1?s._tr_align(w):oe!==5&&(s._tr_stored_block(w,0,0,!1),oe===3&&($(w.head),w.lookahead===0&&(w.strstart=0,w.block_start=0,w.insert=0))),V(D),D.avail_out===0))return w.last_flush=-1,d}return oe!==f?d:w.wrap<=0?1:(w.wrap===2?(z(w,255&D.adler),z(w,D.adler>>8&255),z(w,D.adler>>16&255),z(w,D.adler>>24&255),z(w,255&D.total_in),z(w,D.total_in>>8&255),z(w,D.total_in>>16&255),z(w,D.total_in>>24&255)):(q(w,D.adler>>>16),q(w,65535&D.adler)),V(D),0<w.wrap&&(w.wrap=-w.wrap),w.pending!==0?d:1)},i.deflateEnd=function(D){var oe;return D&&D.state?(oe=D.state.status)!==T&&oe!==69&&oe!==73&&oe!==91&&oe!==103&&oe!==I&&oe!==666?A(D,p):(D.state=null,oe===I?A(D,-3):d):p},i.deflateSetDictionary=function(D,oe){var W,w,S,P,J,ie,K,j,re=oe.length;if(!D||!D.state||(P=(W=D.state).wrap)===2||P===1&&W.status!==T||W.lookahead)return p;for(P===1&&(D.adler=c(D.adler,oe,re,0)),W.wrap=0,re>=W.w_size&&(P===0&&($(W.head),W.strstart=0,W.block_start=0,W.insert=0),j=new a.Buf8(W.w_size),a.arraySet(j,oe,re-W.w_size,W.w_size,0),oe=j,re=W.w_size),J=D.avail_in,ie=D.next_in,K=D.input,D.avail_in=re,D.next_in=0,D.input=oe,ae(W);W.lookahead>=O;){for(w=W.strstart,S=W.lookahead-(O-1);W.ins_h=(W.ins_h<<W.hash_shift^W.window[w+O-1])&W.hash_mask,W.prev[w&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=w,w++,--S;);W.strstart=w,W.lookahead=O-1,ae(W)}return W.strstart+=W.lookahead,W.block_start=W.strstart,W.insert=W.lookahead,W.lookahead=0,W.match_length=W.prev_length=O-1,W.match_available=0,D.next_in=ie,D.input=K,D.avail_in=J,W.wrap=P,d},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,i){r.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(n,r,i){r.exports=function(o,a){var s,c,u,l,h,f,d,p,g,y,R,m,v,x,_,E,N,U,O,Q,ne,T,I,b,M;s=o.state,c=o.next_in,b=o.input,u=c+(o.avail_in-5),l=o.next_out,M=o.output,h=l-(a-o.avail_out),f=l+(o.avail_out-257),d=s.dmax,p=s.wsize,g=s.whave,y=s.wnext,R=s.window,m=s.hold,v=s.bits,x=s.lencode,_=s.distcode,E=(1<<s.lenbits)-1,N=(1<<s.distbits)-1;e:do{v<15&&(m+=b[c++]<<v,v+=8,m+=b[c++]<<v,v+=8),U=x[m&E];t:for(;;){if(m>>>=O=U>>>24,v-=O,(O=U>>>16&255)===0)M[l++]=65535&U;else{if(!(16&O)){if((64&O)==0){U=x[(65535&U)+(m&(1<<O)-1)];continue t}if(32&O){s.mode=12;break e}o.msg="invalid literal/length code",s.mode=30;break e}Q=65535&U,(O&=15)&&(v<O&&(m+=b[c++]<<v,v+=8),Q+=m&(1<<O)-1,m>>>=O,v-=O),v<15&&(m+=b[c++]<<v,v+=8,m+=b[c++]<<v,v+=8),U=_[m&N];n:for(;;){if(m>>>=O=U>>>24,v-=O,!(16&(O=U>>>16&255))){if((64&O)==0){U=_[(65535&U)+(m&(1<<O)-1)];continue n}o.msg="invalid distance code",s.mode=30;break e}if(ne=65535&U,v<(O&=15)&&(m+=b[c++]<<v,(v+=8)<O&&(m+=b[c++]<<v,v+=8)),d<(ne+=m&(1<<O)-1)){o.msg="invalid distance too far back",s.mode=30;break e}if(m>>>=O,v-=O,(O=l-h)<ne){if(g<(O=ne-O)&&s.sane){o.msg="invalid distance too far back",s.mode=30;break e}if(I=R,(T=0)===y){if(T+=p-O,O<Q){for(Q-=O;M[l++]=R[T++],--O;);T=l-ne,I=M}}else if(y<O){if(T+=p+y-O,(O-=y)<Q){for(Q-=O;M[l++]=R[T++],--O;);if(T=0,y<Q){for(Q-=O=y;M[l++]=R[T++],--O;);T=l-ne,I=M}}}else if(T+=y-O,O<Q){for(Q-=O;M[l++]=R[T++],--O;);T=l-ne,I=M}for(;2<Q;)M[l++]=I[T++],M[l++]=I[T++],M[l++]=I[T++],Q-=3;Q&&(M[l++]=I[T++],1<Q&&(M[l++]=I[T++]))}else{for(T=l-ne;M[l++]=M[T++],M[l++]=M[T++],M[l++]=M[T++],2<(Q-=3););Q&&(M[l++]=M[T++],1<Q&&(M[l++]=M[T++]))}break}}break}}while(c<u&&l<f);c-=Q=v>>3,m&=(1<<(v-=Q<<3))-1,o.next_in=c,o.next_out=l,o.avail_in=c<u?u-c+5:5-(c-u),o.avail_out=l<f?f-l+257:257-(l-f),s.hold=m,s.bits=v}},{}],49:[function(n,r,i){var o=n("../utils/common"),a=n("./adler32"),s=n("./crc32"),c=n("./inffast"),u=n("./inftrees"),l=1,h=2,f=0,d=-2,p=1,g=852,y=592;function R(T){return(T>>>24&255)+(T>>>8&65280)+((65280&T)<<8)+((255&T)<<24)}function m(){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 o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(T){var I;return T&&T.state?(I=T.state,T.total_in=T.total_out=I.total=0,T.msg="",I.wrap&&(T.adler=1&I.wrap),I.mode=p,I.last=0,I.havedict=0,I.dmax=32768,I.head=null,I.hold=0,I.bits=0,I.lencode=I.lendyn=new o.Buf32(g),I.distcode=I.distdyn=new o.Buf32(y),I.sane=1,I.back=-1,f):d}function x(T){var I;return T&&T.state?((I=T.state).wsize=0,I.whave=0,I.wnext=0,v(T)):d}function _(T,I){var b,M;return T&&T.state?(M=T.state,I<0?(b=0,I=-I):(b=1+(I>>4),I<48&&(I&=15)),I&&(I<8||15<I)?d:(M.window!==null&&M.wbits!==I&&(M.window=null),M.wrap=b,M.wbits=I,x(T))):d}function E(T,I){var b,M;return T?(M=new m,(T.state=M).window=null,(b=_(T,I))!==f&&(T.state=null),b):d}var N,U,O=!0;function Q(T){if(O){var I;for(N=new o.Buf32(512),U=new o.Buf32(32),I=0;I<144;)T.lens[I++]=8;for(;I<256;)T.lens[I++]=9;for(;I<280;)T.lens[I++]=7;for(;I<288;)T.lens[I++]=8;for(u(l,T.lens,0,288,N,0,T.work,{bits:9}),I=0;I<32;)T.lens[I++]=5;u(h,T.lens,0,32,U,0,T.work,{bits:5}),O=!1}T.lencode=N,T.lenbits=9,T.distcode=U,T.distbits=5}function ne(T,I,b,M){var C,F=T.state;return F.window===null&&(F.wsize=1<<F.wbits,F.wnext=0,F.whave=0,F.window=new o.Buf8(F.wsize)),M>=F.wsize?(o.arraySet(F.window,I,b-F.wsize,F.wsize,0),F.wnext=0,F.whave=F.wsize):(M<(C=F.wsize-F.wnext)&&(C=M),o.arraySet(F.window,I,b-M,C,F.wnext),(M-=C)?(o.arraySet(F.window,I,b-M,M,0),F.wnext=M,F.whave=F.wsize):(F.wnext+=C,F.wnext===F.wsize&&(F.wnext=0),F.whave<F.wsize&&(F.whave+=C))),0}i.inflateReset=x,i.inflateReset2=_,i.inflateResetKeep=v,i.inflateInit=function(T){return E(T,15)},i.inflateInit2=E,i.inflate=function(T,I){var b,M,C,F,A,B,$,V,L,z,q,se,ae,Y,X,k,G,H,te,pe,D,oe,W,w,S=0,P=new o.Buf8(4),J=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!T||!T.state||!T.output||!T.input&&T.avail_in!==0)return d;(b=T.state).mode===12&&(b.mode=13),A=T.next_out,C=T.output,$=T.avail_out,F=T.next_in,M=T.input,B=T.avail_in,V=b.hold,L=b.bits,z=B,q=$,oe=f;e:for(;;)switch(b.mode){case p:if(b.wrap===0){b.mode=13;break}for(;L<16;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if(2&b.wrap&&V===35615){P[b.check=0]=255&V,P[1]=V>>>8&255,b.check=s(b.check,P,2,0),L=V=0,b.mode=2;break}if(b.flags=0,b.head&&(b.head.done=!1),!(1&b.wrap)||(((255&V)<<8)+(V>>8))%31){T.msg="incorrect header check",b.mode=30;break}if((15&V)!=8){T.msg="unknown compression method",b.mode=30;break}if(L-=4,D=8+(15&(V>>>=4)),b.wbits===0)b.wbits=D;else if(D>b.wbits){T.msg="invalid window size",b.mode=30;break}b.dmax=1<<D,T.adler=b.check=1,b.mode=512&V?10:12,L=V=0;break;case 2:for(;L<16;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if(b.flags=V,(255&b.flags)!=8){T.msg="unknown compression method",b.mode=30;break}if(57344&b.flags){T.msg="unknown header flags set",b.mode=30;break}b.head&&(b.head.text=V>>8&1),512&b.flags&&(P[0]=255&V,P[1]=V>>>8&255,b.check=s(b.check,P,2,0)),L=V=0,b.mode=3;case 3:for(;L<32;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}b.head&&(b.head.time=V),512&b.flags&&(P[0]=255&V,P[1]=V>>>8&255,P[2]=V>>>16&255,P[3]=V>>>24&255,b.check=s(b.check,P,4,0)),L=V=0,b.mode=4;case 4:for(;L<16;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}b.head&&(b.head.xflags=255&V,b.head.os=V>>8),512&b.flags&&(P[0]=255&V,P[1]=V>>>8&255,b.check=s(b.check,P,2,0)),L=V=0,b.mode=5;case 5:if(1024&b.flags){for(;L<16;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}b.length=V,b.head&&(b.head.extra_len=V),512&b.flags&&(P[0]=255&V,P[1]=V>>>8&255,b.check=s(b.check,P,2,0)),L=V=0}else b.head&&(b.head.extra=null);b.mode=6;case 6:if(1024&b.flags&&(B<(se=b.length)&&(se=B),se&&(b.head&&(D=b.head.extra_len-b.length,b.head.extra||(b.head.extra=new Array(b.head.extra_len)),o.arraySet(b.head.extra,M,F,se,D)),512&b.flags&&(b.check=s(b.check,M,se,F)),B-=se,F+=se,b.length-=se),b.length))break e;b.length=0,b.mode=7;case 7:if(2048&b.flags){if(B===0)break e;for(se=0;D=M[F+se++],b.head&&D&&b.length<65536&&(b.head.name+=String.fromCharCode(D)),D&&se<B;);if(512&b.flags&&(b.check=s(b.check,M,se,F)),B-=se,F+=se,D)break e}else b.head&&(b.head.name=null);b.length=0,b.mode=8;case 8:if(4096&b.flags){if(B===0)break e;for(se=0;D=M[F+se++],b.head&&D&&b.length<65536&&(b.head.comment+=String.fromCharCode(D)),D&&se<B;);if(512&b.flags&&(b.check=s(b.check,M,se,F)),B-=se,F+=se,D)break e}else b.head&&(b.head.comment=null);b.mode=9;case 9:if(512&b.flags){for(;L<16;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if(V!==(65535&b.check)){T.msg="header crc mismatch",b.mode=30;break}L=V=0}b.head&&(b.head.hcrc=b.flags>>9&1,b.head.done=!0),T.adler=b.check=0,b.mode=12;break;case 10:for(;L<32;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}T.adler=b.check=R(V),L=V=0,b.mode=11;case 11:if(b.havedict===0)return T.next_out=A,T.avail_out=$,T.next_in=F,T.avail_in=B,b.hold=V,b.bits=L,2;T.adler=b.check=1,b.mode=12;case 12:if(I===5||I===6)break e;case 13:if(b.last){V>>>=7&L,L-=7&L,b.mode=27;break}for(;L<3;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}switch(b.last=1&V,L-=1,3&(V>>>=1)){case 0:b.mode=14;break;case 1:if(Q(b),b.mode=20,I!==6)break;V>>>=2,L-=2;break e;case 2:b.mode=17;break;case 3:T.msg="invalid block type",b.mode=30}V>>>=2,L-=2;break;case 14:for(V>>>=7&L,L-=7&L;L<32;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if((65535&V)!=(V>>>16^65535)){T.msg="invalid stored block lengths",b.mode=30;break}if(b.length=65535&V,L=V=0,b.mode=15,I===6)break e;case 15:b.mode=16;case 16:if(se=b.length){if(B<se&&(se=B),$<se&&(se=$),se===0)break e;o.arraySet(C,M,F,se,A),B-=se,F+=se,$-=se,A+=se,b.length-=se;break}b.mode=12;break;case 17:for(;L<14;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if(b.nlen=257+(31&V),V>>>=5,L-=5,b.ndist=1+(31&V),V>>>=5,L-=5,b.ncode=4+(15&V),V>>>=4,L-=4,286<b.nlen||30<b.ndist){T.msg="too many length or distance symbols",b.mode=30;break}b.have=0,b.mode=18;case 18:for(;b.have<b.ncode;){for(;L<3;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}b.lens[J[b.have++]]=7&V,V>>>=3,L-=3}for(;b.have<19;)b.lens[J[b.have++]]=0;if(b.lencode=b.lendyn,b.lenbits=7,W={bits:b.lenbits},oe=u(0,b.lens,0,19,b.lencode,0,b.work,W),b.lenbits=W.bits,oe){T.msg="invalid code lengths set",b.mode=30;break}b.have=0,b.mode=19;case 19:for(;b.have<b.nlen+b.ndist;){for(;k=(S=b.lencode[V&(1<<b.lenbits)-1])>>>16&255,G=65535&S,!((X=S>>>24)<=L);){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if(G<16)V>>>=X,L-=X,b.lens[b.have++]=G;else{if(G===16){for(w=X+2;L<w;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if(V>>>=X,L-=X,b.have===0){T.msg="invalid bit length repeat",b.mode=30;break}D=b.lens[b.have-1],se=3+(3&V),V>>>=2,L-=2}else if(G===17){for(w=X+3;L<w;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}L-=X,D=0,se=3+(7&(V>>>=X)),V>>>=3,L-=3}else{for(w=X+7;L<w;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}L-=X,D=0,se=11+(127&(V>>>=X)),V>>>=7,L-=7}if(b.have+se>b.nlen+b.ndist){T.msg="invalid bit length repeat",b.mode=30;break}for(;se--;)b.lens[b.have++]=D}}if(b.mode===30)break;if(b.lens[256]===0){T.msg="invalid code -- missing end-of-block",b.mode=30;break}if(b.lenbits=9,W={bits:b.lenbits},oe=u(l,b.lens,0,b.nlen,b.lencode,0,b.work,W),b.lenbits=W.bits,oe){T.msg="invalid literal/lengths set",b.mode=30;break}if(b.distbits=6,b.distcode=b.distdyn,W={bits:b.distbits},oe=u(h,b.lens,b.nlen,b.ndist,b.distcode,0,b.work,W),b.distbits=W.bits,oe){T.msg="invalid distances set",b.mode=30;break}if(b.mode=20,I===6)break e;case 20:b.mode=21;case 21:if(6<=B&&258<=$){T.next_out=A,T.avail_out=$,T.next_in=F,T.avail_in=B,b.hold=V,b.bits=L,c(T,q),A=T.next_out,C=T.output,$=T.avail_out,F=T.next_in,M=T.input,B=T.avail_in,V=b.hold,L=b.bits,b.mode===12&&(b.back=-1);break}for(b.back=0;k=(S=b.lencode[V&(1<<b.lenbits)-1])>>>16&255,G=65535&S,!((X=S>>>24)<=L);){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if(k&&(240&k)==0){for(H=X,te=k,pe=G;k=(S=b.lencode[pe+((V&(1<<H+te)-1)>>H)])>>>16&255,G=65535&S,!(H+(X=S>>>24)<=L);){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}V>>>=H,L-=H,b.back+=H}if(V>>>=X,L-=X,b.back+=X,b.length=G,k===0){b.mode=26;break}if(32&k){b.back=-1,b.mode=12;break}if(64&k){T.msg="invalid literal/length code",b.mode=30;break}b.extra=15&k,b.mode=22;case 22:if(b.extra){for(w=b.extra;L<w;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}b.length+=V&(1<<b.extra)-1,V>>>=b.extra,L-=b.extra,b.back+=b.extra}b.was=b.length,b.mode=23;case 23:for(;k=(S=b.distcode[V&(1<<b.distbits)-1])>>>16&255,G=65535&S,!((X=S>>>24)<=L);){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if((240&k)==0){for(H=X,te=k,pe=G;k=(S=b.distcode[pe+((V&(1<<H+te)-1)>>H)])>>>16&255,G=65535&S,!(H+(X=S>>>24)<=L);){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}V>>>=H,L-=H,b.back+=H}if(V>>>=X,L-=X,b.back+=X,64&k){T.msg="invalid distance code",b.mode=30;break}b.offset=G,b.extra=15&k,b.mode=24;case 24:if(b.extra){for(w=b.extra;L<w;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}b.offset+=V&(1<<b.extra)-1,V>>>=b.extra,L-=b.extra,b.back+=b.extra}if(b.offset>b.dmax){T.msg="invalid distance too far back",b.mode=30;break}b.mode=25;case 25:if($===0)break e;if(se=q-$,b.offset>se){if((se=b.offset-se)>b.whave&&b.sane){T.msg="invalid distance too far back",b.mode=30;break}ae=se>b.wnext?(se-=b.wnext,b.wsize-se):b.wnext-se,se>b.length&&(se=b.length),Y=b.window}else Y=C,ae=A-b.offset,se=b.length;for($<se&&(se=$),$-=se,b.length-=se;C[A++]=Y[ae++],--se;);b.length===0&&(b.mode=21);break;case 26:if($===0)break e;C[A++]=b.length,$--,b.mode=21;break;case 27:if(b.wrap){for(;L<32;){if(B===0)break e;B--,V|=M[F++]<<L,L+=8}if(q-=$,T.total_out+=q,b.total+=q,q&&(T.adler=b.check=b.flags?s(b.check,C,q,A-q):a(b.check,C,q,A-q)),q=$,(b.flags?V:R(V))!==b.check){T.msg="incorrect data check",b.mode=30;break}L=V=0}b.mode=28;case 28:if(b.wrap&&b.flags){for(;L<32;){if(B===0)break e;B--,V+=M[F++]<<L,L+=8}if(V!==(4294967295&b.total)){T.msg="incorrect length check",b.mode=30;break}L=V=0}b.mode=29;case 29:oe=1;break e;case 30:oe=-3;break e;case 31:return-4;case 32:default:return d}return T.next_out=A,T.avail_out=$,T.next_in=F,T.avail_in=B,b.hold=V,b.bits=L,(b.wsize||q!==T.avail_out&&b.mode<30&&(b.mode<27||I!==4))&&ne(T,T.output,T.next_out,q-T.avail_out)?(b.mode=31,-4):(z-=T.avail_in,q-=T.avail_out,T.total_in+=z,T.total_out+=q,b.total+=q,b.wrap&&q&&(T.adler=b.check=b.flags?s(b.check,C,q,T.next_out-q):a(b.check,C,q,T.next_out-q)),T.data_type=b.bits+(b.last?64:0)+(b.mode===12?128:0)+(b.mode===20||b.mode===15?256:0),(z==0&&q===0||I===4)&&oe===f&&(oe=-5),oe)},i.inflateEnd=function(T){if(!T||!T.state)return d;var I=T.state;return I.window&&(I.window=null),T.state=null,f},i.inflateGetHeader=function(T,I){var b;return T&&T.state?(2&(b=T.state).wrap)==0?d:((b.head=I).done=!1,f):d},i.inflateSetDictionary=function(T,I){var b,M=I.length;return T&&T.state?(b=T.state).wrap!==0&&b.mode!==11?d:b.mode===11&&a(1,I,M,0)!==b.check?-3:ne(T,I,M,M)?(b.mode=31,-4):(b.havedict=1,f):d},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,i){var o=n("../utils/common"),a=[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],c=[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],u=[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];r.exports=function(l,h,f,d,p,g,y,R){var m,v,x,_,E,N,U,O,Q,ne=R.bits,T=0,I=0,b=0,M=0,C=0,F=0,A=0,B=0,$=0,V=0,L=null,z=0,q=new o.Buf16(16),se=new o.Buf16(16),ae=null,Y=0;for(T=0;T<=15;T++)q[T]=0;for(I=0;I<d;I++)q[h[f+I]]++;for(C=ne,M=15;1<=M&&q[M]===0;M--);if(M<C&&(C=M),M===0)return p[g++]=20971520,p[g++]=20971520,R.bits=1,0;for(b=1;b<M&&q[b]===0;b++);for(C<b&&(C=b),T=B=1;T<=15;T++)if(B<<=1,(B-=q[T])<0)return-1;if(0<B&&(l===0||M!==1))return-1;for(se[1]=0,T=1;T<15;T++)se[T+1]=se[T]+q[T];for(I=0;I<d;I++)h[f+I]!==0&&(y[se[h[f+I]]++]=I);if(N=l===0?(L=ae=y,19):l===1?(L=a,z-=257,ae=s,Y-=257,256):(L=c,ae=u,-1),T=b,E=g,A=I=V=0,x=-1,_=($=1<<(F=C))-1,l===1&&852<$||l===2&&592<$)return 1;for(;;){for(U=T-A,Q=y[I]<N?(O=0,y[I]):y[I]>N?(O=ae[Y+y[I]],L[z+y[I]]):(O=96,0),m=1<<T-A,b=v=1<<F;p[E+(V>>A)+(v-=m)]=U<<24|O<<16|Q|0,v!==0;);for(m=1<<T-1;V&m;)m>>=1;if(m!==0?(V&=m-1,V+=m):V=0,I++,--q[T]==0){if(T===M)break;T=h[f+y[I]]}if(C<T&&(V&_)!==x){for(A===0&&(A=C),E+=b,B=1<<(F=T-A);F+A<M&&!((B-=q[F+A])<=0);)F++,B<<=1;if($+=1<<F,l===1&&852<$||l===2&&592<$)return 1;p[x=V&_]=C<<24|F<<16|E-g|0}}return V!==0&&(p[E+V]=T-A<<24|64<<16|0),R.bits=C,0}},{"../utils/common":41}],51:[function(n,r,i){r.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(n,r,i){var o=n("../utils/common"),a=0,s=1;function c(S){for(var P=S.length;0<=--P;)S[P]=0}var u=0,l=29,h=256,f=h+1+l,d=30,p=19,g=2*f+1,y=15,R=16,m=7,v=256,x=16,_=17,E=18,N=[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],U=[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],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ne=new Array(2*(f+2));c(ne);var T=new Array(2*d);c(T);var I=new Array(512);c(I);var b=new Array(256);c(b);var M=new Array(l);c(M);var C,F,A,B=new Array(d);function $(S,P,J,ie,K){this.static_tree=S,this.extra_bits=P,this.extra_base=J,this.elems=ie,this.max_length=K,this.has_stree=S&&S.length}function V(S,P){this.dyn_tree=S,this.max_code=0,this.stat_desc=P}function L(S){return S<256?I[S]:I[256+(S>>>7)]}function z(S,P){S.pending_buf[S.pending++]=255&P,S.pending_buf[S.pending++]=P>>>8&255}function q(S,P,J){S.bi_valid>R-J?(S.bi_buf|=P<<S.bi_valid&65535,z(S,S.bi_buf),S.bi_buf=P>>R-S.bi_valid,S.bi_valid+=J-R):(S.bi_buf|=P<<S.bi_valid&65535,S.bi_valid+=J)}function se(S,P,J){q(S,J[2*P],J[2*P+1])}function ae(S,P){for(var J=0;J|=1&S,S>>>=1,J<<=1,0<--P;);return J>>>1}function Y(S,P,J){var ie,K,j=new Array(y+1),re=0;for(ie=1;ie<=y;ie++)j[ie]=re=re+J[ie-1]<<1;for(K=0;K<=P;K++){var ce=S[2*K+1];ce!==0&&(S[2*K]=ae(j[ce]++,ce))}}function X(S){var P;for(P=0;P<f;P++)S.dyn_ltree[2*P]=0;for(P=0;P<d;P++)S.dyn_dtree[2*P]=0;for(P=0;P<p;P++)S.bl_tree[2*P]=0;S.dyn_ltree[2*v]=1,S.opt_len=S.static_len=0,S.last_lit=S.matches=0}function k(S){8<S.bi_valid?z(S,S.bi_buf):0<S.bi_valid&&(S.pending_buf[S.pending++]=S.bi_buf),S.bi_buf=0,S.bi_valid=0}function G(S,P,J,ie){var K=2*P,j=2*J;return S[K]<S[j]||S[K]===S[j]&&ie[P]<=ie[J]}function H(S,P,J){for(var ie=S.heap[J],K=J<<1;K<=S.heap_len&&(K<S.heap_len&&G(P,S.heap[K+1],S.heap[K],S.depth)&&K++,!G(P,ie,S.heap[K],S.depth));)S.heap[J]=S.heap[K],J=K,K<<=1;S.heap[J]=ie}function te(S,P,J){var ie,K,j,re,ce=0;if(S.last_lit!==0)for(;ie=S.pending_buf[S.d_buf+2*ce]<<8|S.pending_buf[S.d_buf+2*ce+1],K=S.pending_buf[S.l_buf+ce],ce++,ie===0?se(S,K,P):(se(S,(j=b[K])+h+1,P),(re=N[j])!==0&&q(S,K-=M[j],re),se(S,j=L(--ie),J),(re=U[j])!==0&&q(S,ie-=B[j],re)),ce<S.last_lit;);se(S,v,P)}function pe(S,P){var J,ie,K,j=P.dyn_tree,re=P.stat_desc.static_tree,ce=P.stat_desc.has_stree,he=P.stat_desc.elems,ve=-1;for(S.heap_len=0,S.heap_max=g,J=0;J<he;J++)j[2*J]!==0?(S.heap[++S.heap_len]=ve=J,S.depth[J]=0):j[2*J+1]=0;for(;S.heap_len<2;)j[2*(K=S.heap[++S.heap_len]=ve<2?++ve:0)]=1,S.depth[K]=0,S.opt_len--,ce&&(S.static_len-=re[2*K+1]);for(P.max_code=ve,J=S.heap_len>>1;1<=J;J--)H(S,j,J);for(K=he;J=S.heap[1],S.heap[1]=S.heap[S.heap_len--],H(S,j,1),ie=S.heap[1],S.heap[--S.heap_max]=J,S.heap[--S.heap_max]=ie,j[2*K]=j[2*J]+j[2*ie],S.depth[K]=(S.depth[J]>=S.depth[ie]?S.depth[J]:S.depth[ie])+1,j[2*J+1]=j[2*ie+1]=K,S.heap[1]=K++,H(S,j,1),2<=S.heap_len;);S.heap[--S.heap_max]=S.heap[1],function(_e,Fe){var Xe,Qe,Ge,Ve,at,It,Rt=Fe.dyn_tree,On=Fe.max_code,or=Fe.stat_desc.static_tree,qt=Fe.stat_desc.has_stree,ar=Fe.stat_desc.extra_bits,Kn=Fe.stat_desc.extra_base,en=Fe.stat_desc.max_length,hn=0;for(Ve=0;Ve<=y;Ve++)_e.bl_count[Ve]=0;for(Rt[2*_e.heap[_e.heap_max]+1]=0,Xe=_e.heap_max+1;Xe<g;Xe++)en<(Ve=Rt[2*Rt[2*(Qe=_e.heap[Xe])+1]+1]+1)&&(Ve=en,hn++),Rt[2*Qe+1]=Ve,On<Qe||(_e.bl_count[Ve]++,at=0,Kn<=Qe&&(at=ar[Qe-Kn]),It=Rt[2*Qe],_e.opt_len+=It*(Ve+at),qt&&(_e.static_len+=It*(or[2*Qe+1]+at)));if(hn!==0){do{for(Ve=en-1;_e.bl_count[Ve]===0;)Ve--;_e.bl_count[Ve]--,_e.bl_count[Ve+1]+=2,_e.bl_count[en]--,hn-=2}while(0<hn);for(Ve=en;Ve!==0;Ve--)for(Qe=_e.bl_count[Ve];Qe!==0;)On<(Ge=_e.heap[--Xe])||(Rt[2*Ge+1]!==Ve&&(_e.opt_len+=(Ve-Rt[2*Ge+1])*Rt[2*Ge],Rt[2*Ge+1]=Ve),Qe--)}}(S,P),Y(j,ve,S.bl_count)}function D(S,P,J){var ie,K,j=-1,re=P[1],ce=0,he=7,ve=4;for(re===0&&(he=138,ve=3),P[2*(J+1)+1]=65535,ie=0;ie<=J;ie++)K=re,re=P[2*(ie+1)+1],++ce<he&&K===re||(ce<ve?S.bl_tree[2*K]+=ce:K!==0?(K!==j&&S.bl_tree[2*K]++,S.bl_tree[2*x]++):ce<=10?S.bl_tree[2*_]++:S.bl_tree[2*E]++,j=K,ve=(ce=0)===re?(he=138,3):K===re?(he=6,3):(he=7,4))}function oe(S,P,J){var ie,K,j=-1,re=P[1],ce=0,he=7,ve=4;for(re===0&&(he=138,ve=3),ie=0;ie<=J;ie++)if(K=re,re=P[2*(ie+1)+1],!(++ce<he&&K===re)){if(ce<ve)for(;se(S,K,S.bl_tree),--ce!=0;);else K!==0?(K!==j&&(se(S,K,S.bl_tree),ce--),se(S,x,S.bl_tree),q(S,ce-3,2)):ce<=10?(se(S,_,S.bl_tree),q(S,ce-3,3)):(se(S,E,S.bl_tree),q(S,ce-11,7));j=K,ve=(ce=0)===re?(he=138,3):K===re?(he=6,3):(he=7,4)}}c(B);var W=!1;function w(S,P,J,ie){q(S,(u<<1)+(ie?1:0),3),function(K,j,re,ce){k(K),ce&&(z(K,re),z(K,~re)),o.arraySet(K.pending_buf,K.window,j,re,K.pending),K.pending+=re}(S,P,J,!0)}i._tr_init=function(S){W||(function(){var P,J,ie,K,j,re=new Array(y+1);for(K=ie=0;K<l-1;K++)for(M[K]=ie,P=0;P<1<<N[K];P++)b[ie++]=K;for(b[ie-1]=K,K=j=0;K<16;K++)for(B[K]=j,P=0;P<1<<U[K];P++)I[j++]=K;for(j>>=7;K<d;K++)for(B[K]=j<<7,P=0;P<1<<U[K]-7;P++)I[256+j++]=K;for(J=0;J<=y;J++)re[J]=0;for(P=0;P<=143;)ne[2*P+1]=8,P++,re[8]++;for(;P<=255;)ne[2*P+1]=9,P++,re[9]++;for(;P<=279;)ne[2*P+1]=7,P++,re[7]++;for(;P<=287;)ne[2*P+1]=8,P++,re[8]++;for(Y(ne,f+1,re),P=0;P<d;P++)T[2*P+1]=5,T[2*P]=ae(P,5);C=new $(ne,N,h+1,f,y),F=new $(T,U,0,d,y),A=new $(new Array(0),O,0,p,m)}(),W=!0),S.l_desc=new V(S.dyn_ltree,C),S.d_desc=new V(S.dyn_dtree,F),S.bl_desc=new V(S.bl_tree,A),S.bi_buf=0,S.bi_valid=0,X(S)},i._tr_stored_block=w,i._tr_flush_block=function(S,P,J,ie){var K,j,re=0;0<S.level?(S.strm.data_type===2&&(S.strm.data_type=function(ce){var he,ve=4093624447;for(he=0;he<=31;he++,ve>>>=1)if(1&ve&&ce.dyn_ltree[2*he]!==0)return a;if(ce.dyn_ltree[18]!==0||ce.dyn_ltree[20]!==0||ce.dyn_ltree[26]!==0)return s;for(he=32;he<h;he++)if(ce.dyn_ltree[2*he]!==0)return s;return a}(S)),pe(S,S.l_desc),pe(S,S.d_desc),re=function(ce){var he;for(D(ce,ce.dyn_ltree,ce.l_desc.max_code),D(ce,ce.dyn_dtree,ce.d_desc.max_code),pe(ce,ce.bl_desc),he=p-1;3<=he&&ce.bl_tree[2*Q[he]+1]===0;he--);return ce.opt_len+=3*(he+1)+5+5+4,he}(S),K=S.opt_len+3+7>>>3,(j=S.static_len+3+7>>>3)<=K&&(K=j)):K=j=J+5,J+4<=K&&P!==-1?w(S,P,J,ie):S.strategy===4||j===K?(q(S,2+(ie?1:0),3),te(S,ne,T)):(q(S,4+(ie?1:0),3),function(ce,he,ve,_e){var Fe;for(q(ce,he-257,5),q(ce,ve-1,5),q(ce,_e-4,4),Fe=0;Fe<_e;Fe++)q(ce,ce.bl_tree[2*Q[Fe]+1],3);oe(ce,ce.dyn_ltree,he-1),oe(ce,ce.dyn_dtree,ve-1)}(S,S.l_desc.max_code+1,S.d_desc.max_code+1,re+1),te(S,S.dyn_ltree,S.dyn_dtree)),X(S),ie&&k(S)},i._tr_tally=function(S,P,J){return S.pending_buf[S.d_buf+2*S.last_lit]=P>>>8&255,S.pending_buf[S.d_buf+2*S.last_lit+1]=255&P,S.pending_buf[S.l_buf+S.last_lit]=255&J,S.last_lit++,P===0?S.dyn_ltree[2*J]++:(S.matches++,P--,S.dyn_ltree[2*(b[J]+h+1)]++,S.dyn_dtree[2*L(P)]++),S.last_lit===S.lit_bufsize-1},i._tr_align=function(S){q(S,2,3),se(S,v,ne),function(P){P.bi_valid===16?(z(P,P.bi_buf),P.bi_buf=0,P.bi_valid=0):8<=P.bi_valid&&(P.pending_buf[P.pending++]=255&P.bi_buf,P.bi_buf>>=8,P.bi_valid-=8)}(S)}},{"../utils/common":41}],53:[function(n,r,i){r.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(n,r,i){(function(o){(function(a,s){if(!a.setImmediate){var c,u,l,h,f=1,d={},p=!1,g=a.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(a);y=y&&y.setTimeout?y:a,c={}.toString.call(a.process)==="[object process]"?function(x){process.nextTick(function(){m(x)})}:function(){if(a.postMessage&&!a.importScripts){var x=!0,_=a.onmessage;return a.onmessage=function(){x=!1},a.postMessage("","*"),a.onmessage=_,x}}()?(h="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",v,!1):a.attachEvent("onmessage",v),function(x){a.postMessage(h+x,"*")}):a.MessageChannel?((l=new MessageChannel).port1.onmessage=function(x){m(x.data)},function(x){l.port2.postMessage(x)}):g&&"onreadystatechange"in g.createElement("script")?(u=g.documentElement,function(x){var _=g.createElement("script");_.onreadystatechange=function(){m(x),_.onreadystatechange=null,u.removeChild(_),_=null},u.appendChild(_)}):function(x){setTimeout(m,0,x)},y.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var _=new Array(arguments.length-1),E=0;E<_.length;E++)_[E]=arguments[E+1];var N={callback:x,args:_};return d[f]=N,c(f),f++},y.clearImmediate=R}function R(x){delete d[x]}function m(x){if(p)setTimeout(m,0,x);else{var _=d[x];if(_){p=!0;try{(function(E){var N=E.callback,U=E.args;switch(U.length){case 0:N();break;case 1:N(U[0]);break;case 2:N(U[0],U[1]);break;case 3:N(U[0],U[1],U[2]);break;default:N.apply(s,U)}})(_)}finally{R(x),p=!1}}}}function v(x){x.source===a&&typeof x.data=="string"&&x.data.indexOf(h)===0&&m(+x.data.slice(h.length))}})(typeof self=="undefined"?o===void 0?this:o:self)}).call(this,typeof qe!="undefined"?qe:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})})(cy);var eL=Qu,tL=cy.exports;Bs.openArrayBuffer=nL;Bs.splitPath=rL;Bs.joinPath=iL;function nL(t){return tL.loadAsync(t).then(function(e){function n(a){return e.file(a)!==null}function r(a,s){return e.file(a).async("uint8array").then(function(c){if(s==="base64")return eL.fromByteArray(c);if(s){var u=new TextDecoder(s);return u.decode(c)}else return c})}function i(a,s){e.file(a,s)}function o(){return e.generateAsync({type:"arraybuffer"})}return{exists:n,read:r,write:i,toArrayBuffer:o}})}function rL(t){var e=t.lastIndexOf("/");return e===-1?{dirname:"",basename:t}:{dirname:t.substring(0,e),basename:t.substring(e+1)}}function iL(){var t=Array.prototype.filter.call(arguments,function(n){return n}),e=[];return t.forEach(function(n){/^\//.test(n)?e=[n]:e.push(n)}),e.join("/")}var Cf={},To={},ks={},Ku=Kt.exports;ks.Element=Fa;ks.element=function(t,e,n){return new Fa(t,e,n)};ks.text=function(t){return{type:"text",value:t}};var uy={first:function(){return null},firstOrEmpty:function(){return uy},attributes:{}};function Fa(t,e,n){this.type="element",this.name=t,this.attributes=e||{},this.children=n||[]}Fa.prototype.first=function(t){return Ku.find(this.children,function(e){return e.name===t})};Fa.prototype.firstOrEmpty=function(t){return this.first(t)||uy};Fa.prototype.getElementsByTagName=function(t){var e=Ku.filter(this.children,function(n){return n.name===t});return ly(e)};Fa.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 oL={getElementsByTagName:function(t){return ly(Ku.flatten(this.map(function(e){return e.getElementsByTagName(t)},!0)))}};function ly(t){return Ku.extend(t,oL)}var hy={},Af={},Hu={},ii={},wi={};function aL(t,e,n){if(n===void 0&&(n=Array.prototype),t&&typeof n.find=="function")return n.find.call(t,e);for(var r=0;r<t.length;r++)if(Object.prototype.hasOwnProperty.call(t,r)){var i=t[r];if(e.call(void 0,i,r,t))return i}}function Uf(t,e){return e===void 0&&(e=Object),e&&typeof e.freeze=="function"?e.freeze(t):t}function sL(t,e){if(t===null||typeof t!="object")throw new TypeError("target is not an object");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var dy=Uf({HTML:"text/html",isHTML:function(t){return t===dy.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),fy=Uf({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===fy.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});wi.assign=sL;wi.find=aL;wi.freeze=Uf;wi.MIME_TYPE=dy;wi.NAMESPACE=fy;var py=wi,jr=py.find,Is=py.NAMESPACE;function cL(t){return t!==""}function uL(t){return t?t.split(/[\t\n\f\r ]+/).filter(cL):[]}function lL(t,e){return t.hasOwnProperty(e)||(t[e]=!0),t}function c0(t){if(!t)return[];var e=uL(t);return Object.keys(e.reduce(lL,{}))}function hL(t){return function(e){return t&&t.indexOf(e)!==-1}}function Zs(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}function er(t,e){var n=t.prototype;if(!(n instanceof e)){let i=function(){};var r=i;i.prototype=e.prototype,i=new i,Zs(n,i),t.prototype=n=i}n.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),n.constructor=t)}var tr={},Lr=tr.ELEMENT_NODE=1,xa=tr.ATTRIBUTE_NODE=2,wu=tr.TEXT_NODE=3,gy=tr.CDATA_SECTION_NODE=4,my=tr.ENTITY_REFERENCE_NODE=5,dL=tr.ENTITY_NODE=6,Ry=tr.PROCESSING_INSTRUCTION_NODE=7,yy=tr.COMMENT_NODE=8,vy=tr.DOCUMENT_NODE=9,by=tr.DOCUMENT_TYPE_NODE=10,mi=tr.DOCUMENT_FRAGMENT_NODE=11,fL=tr.NOTATION_NODE=12,Cn={},yn={};Cn.INDEX_SIZE_ERR=(yn[1]="Index size error",1);Cn.DOMSTRING_SIZE_ERR=(yn[2]="DOMString size error",2);var Jn=Cn.HIERARCHY_REQUEST_ERR=(yn[3]="Hierarchy request error",3);Cn.WRONG_DOCUMENT_ERR=(yn[4]="Wrong document",4);Cn.INVALID_CHARACTER_ERR=(yn[5]="Invalid character",5);Cn.NO_DATA_ALLOWED_ERR=(yn[6]="No data allowed",6);Cn.NO_MODIFICATION_ALLOWED_ERR=(yn[7]="No modification allowed",7);var xy=Cn.NOT_FOUND_ERR=(yn[8]="Not found",8);Cn.NOT_SUPPORTED_ERR=(yn[9]="Not supported",9);var u0=Cn.INUSE_ATTRIBUTE_ERR=(yn[10]="Attribute in use",10);Cn.INVALID_STATE_ERR=(yn[11]="Invalid state",11);Cn.SYNTAX_ERR=(yn[12]="Syntax error",12);Cn.INVALID_MODIFICATION_ERR=(yn[13]="Invalid modification",13);Cn.NAMESPACE_ERR=(yn[14]="Invalid namespace",14);Cn.INVALID_ACCESS_ERR=(yn[15]="Invalid access",15);function zt(t,e){if(e instanceof Error)var n=e;else n=this,Error.call(this,yn[t]),this.message=yn[t],Error.captureStackTrace&&Error.captureStackTrace(this,zt);return n.code=t,e&&(this.message=this.message+": "+e),n}zt.prototype=Error.prototype;Zs(Cn,zt);function pi(){}pi.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t,e){for(var n=[],r=0;r<this.length;r++)jo(this[r],n,t,e);return n.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}};function wa(t,e){this._node=t,this._refresh=e,Wf(this)}function Wf(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==e){var n=t._refresh(t._node);if(Ly(t,"length",n.length),!t.$$length||n.length<t.$$length)for(var r=n.length;r in t;r++)Object.prototype.hasOwnProperty.call(t,r)&&delete t[r];Zs(n,t),t._inc=e}}wa.prototype.item=function(t){return Wf(this),this[t]||null};er(wa,pi);function Tu(){}function wy(t,e){for(var n=t.length;n--;)if(t[n]===e)return n}function l0(t,e,n,r){if(r?e[wy(e,r)]=n:e[e.length++]=n,t){n.ownerElement=t;var i=t.ownerDocument;i&&(r&&Dy(i,t,r),pL(i,t,n))}}function h0(t,e,n){var r=wy(e,n);if(r>=0){for(var i=e.length-1;r<i;)e[r]=e[++r];if(e.length=i,t){var o=t.ownerDocument;o&&(Dy(o,t,n),n.ownerElement=null)}}else throw new zt(xy,new Error(t.tagName+"@"+n))}Tu.prototype={length:0,item:pi.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var n=this[e];if(n.nodeName==t)return n}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new zt(u0);var n=this.getNamedItem(t.nodeName);return l0(this._ownerElement,this,t,n),n},setNamedItemNS:function(t){var e=t.ownerElement,n;if(e&&e!=this._ownerElement)throw new zt(u0);return n=this.getNamedItemNS(t.namespaceURI,t.localName),l0(this._ownerElement,this,t,n),n},removeNamedItem:function(t){var e=this.getNamedItem(t);return h0(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var n=this.getNamedItemNS(t,e);return h0(this._ownerElement,this,n),n},getNamedItemNS:function(t,e){for(var n=this.length;n--;){var r=this[n];if(r.localName==e&&r.namespaceURI==t)return r}return null}};function Ty(){}Ty.prototype={hasFeature:function(t,e){return!0},createDocument:function(t,e,n){var r=new Qs;if(r.implementation=this,r.childNodes=new pi,r.doctype=n||null,n&&r.appendChild(n),e){var i=r.createElementNS(t,e);r.appendChild(i)}return r},createDocumentType:function(t,e,n){var r=new Gu;return r.name=t,r.nodeName=t,r.publicId=e||"",r.systemId=n||"",r}};function Dt(){}Dt.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return Su(this,t,e)},replaceChild:function(t,e){Su(this,t,e,Oy),e&&this.removeChild(e)},removeChild:function(t){return _y(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(t){return Cd(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==wu&&t.nodeType==wu?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var n=e._nsMap;if(n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&n[r]===t)return r}e=e.nodeType==xa?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var n=e._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,t))return n[t];e=e.nodeType==xa?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){var e=this.lookupPrefix(t);return e==null}};function Sy(t){return t=="<"&&"<"||t==">"&&">"||t=="&"&&"&"||t=='"'&&"""||"&#"+t.charCodeAt()+";"}Zs(tr,Dt);Zs(tr,Dt.prototype);function Ns(t,e){if(e(t))return!0;if(t=t.firstChild)do if(Ns(t,e))return!0;while(t=t.nextSibling)}function Qs(){this.ownerDocument=this}function pL(t,e,n){t&&t._inc++;var r=n.namespaceURI;r===Is.XMLNS&&(e._nsMap[n.prefix?n.localName:""]=n.value)}function Dy(t,e,n,r){t&&t._inc++;var i=n.namespaceURI;i===Is.XMLNS&&delete e._nsMap[n.prefix?n.localName:""]}function Xf(t,e,n){if(t&&t._inc){t._inc++;var r=e.childNodes;if(n)r[r.length++]=n;else{for(var i=e.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o,delete r[r.length]}}}function _y(t,e){var n=e.previousSibling,r=e.nextSibling;return n?n.nextSibling=r:t.firstChild=r,r?r.previousSibling=n:t.lastChild=n,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,Xf(t.ownerDocument,t),e}function gL(t){return t&&(t.nodeType===Dt.DOCUMENT_NODE||t.nodeType===Dt.DOCUMENT_FRAGMENT_NODE||t.nodeType===Dt.ELEMENT_NODE)}function mL(t){return t&&(qr(t)||Vf(t)||Ri(t)||t.nodeType===Dt.DOCUMENT_FRAGMENT_NODE||t.nodeType===Dt.COMMENT_NODE||t.nodeType===Dt.PROCESSING_INSTRUCTION_NODE)}function Ri(t){return t&&t.nodeType===Dt.DOCUMENT_TYPE_NODE}function qr(t){return t&&t.nodeType===Dt.ELEMENT_NODE}function Vf(t){return t&&t.nodeType===Dt.TEXT_NODE}function d0(t,e){var n=t.childNodes||[];if(jr(n,qr)||Ri(e))return!1;var r=jr(n,Ri);return!(e&&r&&n.indexOf(r)>n.indexOf(e))}function f0(t,e){var n=t.childNodes||[];function r(o){return qr(o)&&o!==e}if(jr(n,r))return!1;var i=jr(n,Ri);return!(e&&i&&n.indexOf(i)>n.indexOf(e))}function RL(t,e,n){if(!gL(t))throw new zt(Jn,"Unexpected parent node type "+t.nodeType);if(n&&n.parentNode!==t)throw new zt(xy,"child not in parent");if(!mL(e)||Ri(e)&&t.nodeType!==Dt.DOCUMENT_NODE)throw new zt(Jn,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType)}function yL(t,e,n){var r=t.childNodes||[],i=e.childNodes||[];if(e.nodeType===Dt.DOCUMENT_FRAGMENT_NODE){var o=i.filter(qr);if(o.length>1||jr(i,Vf))throw new zt(Jn,"More than one element or text in fragment");if(o.length===1&&!d0(t,n))throw new zt(Jn,"Element in fragment can not be inserted before doctype")}if(qr(e)&&!d0(t,n))throw new zt(Jn,"Only one element can be added and only after doctype");if(Ri(e)){if(jr(r,Ri))throw new zt(Jn,"Only one doctype is allowed");var a=jr(r,qr);if(n&&r.indexOf(a)<r.indexOf(n))throw new zt(Jn,"Doctype can only be inserted before an element");if(!n&&a)throw new zt(Jn,"Doctype can not be appended since element is present")}}function Oy(t,e,n){var r=t.childNodes||[],i=e.childNodes||[];if(e.nodeType===Dt.DOCUMENT_FRAGMENT_NODE){var o=i.filter(qr);if(o.length>1||jr(i,Vf))throw new zt(Jn,"More than one element or text in fragment");if(o.length===1&&!f0(t,n))throw new zt(Jn,"Element in fragment can not be inserted before doctype")}if(qr(e)&&!f0(t,n))throw new zt(Jn,"Only one element can be added and only after doctype");if(Ri(e)){let c=function(u){return Ri(u)&&u!==n};var s=c;if(jr(r,c))throw new zt(Jn,"Only one doctype is allowed");var a=jr(r,qr);if(n&&r.indexOf(a)<r.indexOf(n))throw new zt(Jn,"Doctype can only be inserted before an element")}}function Su(t,e,n,r){RL(t,e,n),t.nodeType===Dt.DOCUMENT_NODE&&(r||yL)(t,e,n);var i=e.parentNode;if(i&&i.removeChild(e),e.nodeType===mi){var o=e.firstChild;if(o==null)return e;var a=e.lastChild}else o=a=e;var s=n?n.previousSibling:t.lastChild;o.previousSibling=s,a.nextSibling=n,s?s.nextSibling=o:t.firstChild=o,n==null?t.lastChild=a:n.previousSibling=a;do o.parentNode=t;while(o!==a&&(o=o.nextSibling));return Xf(t.ownerDocument||t,t),e.nodeType==mi&&(e.firstChild=e.lastChild=null),e}function vL(t,e){return e.parentNode&&e.parentNode.removeChild(e),e.parentNode=t,e.previousSibling=t.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:t.firstChild=e,t.lastChild=e,Xf(t.ownerDocument,t,e),e}Qs.prototype={nodeName:"#document",nodeType:vy,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==mi){for(var n=t.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,e),n=r}return t}return Su(this,t,e),t.ownerDocument=this,this.documentElement===null&&t.nodeType===Lr&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),_y(this,t)},replaceChild:function(t,e){Su(this,t,e,Oy),t.ownerDocument=this,e&&this.removeChild(e),qr(t)&&(this.documentElement=t)},importNode:function(t,e){return Py(this,t,e)},getElementById:function(t){var e=null;return Ns(this.documentElement,function(n){if(n.nodeType==Lr&&n.getAttribute("id")==t)return e=n,!0}),e},getElementsByClassName:function(t){var e=c0(t);return new wa(this,function(n){var r=[];return e.length>0&&Ns(n.documentElement,function(i){if(i!==n&&i.nodeType===Lr){var o=i.getAttribute("class");if(o){var a=t===o;if(!a){var s=c0(o);a=e.every(hL(s))}a&&r.push(i)}}}),r})},createElement:function(t){var e=new yo;e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new pi;var n=e.attributes=new Tu;return n._ownerElement=e,e},createDocumentFragment:function(){var t=new Ju;return t.ownerDocument=this,t.childNodes=new pi,t},createTextNode:function(t){var e=new Yf;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new Bf;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new kf;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new Qf;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new Du;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new Zf;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new yo,r=e.split(":"),i=n.attributes=new Tu;return n.childNodes=new pi,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=t,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=e,i._ownerElement=n,n},createAttributeNS:function(t,e){var n=new Du,r=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=t,n.specified=!0,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=e,n}};er(Qs,Dt);function yo(){this._nsMap={}}yo.prototype={nodeType:Lr,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var n=this.ownerDocument.createAttribute(t);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===mi?this.insertBefore(t,null):vL(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);n&&this.removeAttributeNode(n)},hasAttributeNS:function(t,e){return this.getAttributeNodeNS(t,e)!=null},getAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);return n&&n.value||""},setAttributeNS:function(t,e,n){var r=this.ownerDocument.createAttributeNS(t,e);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new wa(this,function(e){var n=[];return Ns(e,function(r){r!==e&&r.nodeType==Lr&&(t==="*"||r.tagName==t)&&n.push(r)}),n})},getElementsByTagNameNS:function(t,e){return new wa(this,function(n){var r=[];return Ns(n,function(i){i!==n&&i.nodeType===Lr&&(t==="*"||i.namespaceURI===t)&&(e==="*"||i.localName==e)&&r.push(i)}),r})}};Qs.prototype.getElementsByTagName=yo.prototype.getElementsByTagName;Qs.prototype.getElementsByTagNameNS=yo.prototype.getElementsByTagNameNS;er(yo,Dt);function Du(){}Du.prototype.nodeType=xa;er(Du,Dt);function Ks(){}Ks.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(yn[Jn])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,n){var r=this.data.substring(0,t),i=this.data.substring(t+e);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}};er(Ks,Dt);function Yf(){}Yf.prototype={nodeName:"#text",nodeType:wu,splitText:function(t){var e=this.data,n=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}};er(Yf,Ks);function Bf(){}Bf.prototype={nodeName:"#comment",nodeType:yy};er(Bf,Ks);function kf(){}kf.prototype={nodeName:"#cdata-section",nodeType:gy};er(kf,Ks);function Gu(){}Gu.prototype.nodeType=by;er(Gu,Dt);function Ey(){}Ey.prototype.nodeType=fL;er(Ey,Dt);function Iy(){}Iy.prototype.nodeType=dL;er(Iy,Dt);function Zf(){}Zf.prototype.nodeType=my;er(Zf,Dt);function Ju(){}Ju.prototype.nodeName="#document-fragment";Ju.prototype.nodeType=mi;er(Ju,Dt);function Qf(){}Qf.prototype.nodeType=Ry;er(Qf,Dt);function Ny(){}Ny.prototype.serializeToString=function(t,e,n){return Fy.call(t,e,n)};Dt.prototype.toString=Fy;function Fy(t,e){var n=[],r=this.nodeType==9&&this.documentElement||this,i=r.prefix,o=r.namespaceURI;if(o&&i==null){var i=r.lookupPrefix(o);if(i==null)var a=[{namespace:o,prefix:null}]}return jo(this,n,t,e,a),n.join("")}function p0(t,e,n){var r=t.prefix||"",i=t.namespaceURI;if(!i||r==="xml"&&i===Is.XML||i===Is.XMLNS)return!1;for(var o=n.length;o--;){var a=n[o];if(a.prefix===r)return a.namespace!==i}return!0}function Xh(t,e,n){t.push(" ",e,'="',n.replace(/[<>&"\t\n\r]/g,Sy),'"')}function jo(t,e,n,r,i){if(i||(i=[]),r)if(t=r(t),t){if(typeof t=="string"){e.push(t);return}}else return;switch(t.nodeType){case Lr:var o=t.attributes,a=o.length,R=t.firstChild,s=t.tagName;n=Is.isHTML(t.namespaceURI)||n;var c=s;if(!n&&!t.prefix&&t.namespaceURI){for(var u,l=0;l<o.length;l++)if(o.item(l).name==="xmlns"){u=o.item(l).value;break}if(!u)for(var h=i.length-1;h>=0;h--){var f=i[h];if(f.prefix===""&&f.namespace===t.namespaceURI){u=f.namespace;break}}if(u!==t.namespaceURI)for(var h=i.length-1;h>=0;h--){var f=i[h];if(f.namespace===t.namespaceURI){f.prefix&&(c=f.prefix+":"+s);break}}}e.push("<",c);for(var d=0;d<a;d++){var p=o.item(d);p.prefix=="xmlns"?i.push({prefix:p.localName,namespace:p.value}):p.nodeName=="xmlns"&&i.push({prefix:"",namespace:p.value})}for(var d=0;d<a;d++){var p=o.item(d);if(p0(p,n,i)){var g=p.prefix||"",y=p.namespaceURI;Xh(e,g?"xmlns:"+g:"xmlns",y),i.push({prefix:g,namespace:y})}jo(p,e,n,r,i)}if(s===c&&p0(t,n,i)){var g=t.prefix||"",y=t.namespaceURI;Xh(e,g?"xmlns:"+g:"xmlns",y),i.push({prefix:g,namespace:y})}if(R||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(s)){if(e.push(">"),n&&/^script$/i.test(s))for(;R;)R.data?e.push(R.data):jo(R,e,n,r,i.slice()),R=R.nextSibling;else for(;R;)jo(R,e,n,r,i.slice()),R=R.nextSibling;e.push("</",c,">")}else e.push("/>");return;case vy:case mi:for(var R=t.firstChild;R;)jo(R,e,n,r,i.slice()),R=R.nextSibling;return;case xa:return Xh(e,t.name,t.value);case wu:return e.push(t.data.replace(/[<&>]/g,Sy));case gy:return e.push("<![CDATA[",t.data,"]]>");case yy:return e.push("<!--",t.data,"-->");case by:var m=t.publicId,v=t.systemId;if(e.push("<!DOCTYPE ",t.name),m)e.push(" PUBLIC ",m),v&&v!="."&&e.push(" ",v),e.push(">");else if(v&&v!=".")e.push(" SYSTEM ",v,">");else{var x=t.internalSubset;x&&e.push(" [",x,"]"),e.push(">")}return;case Ry:return e.push("<?",t.target," ",t.data,"?>");case my:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function Py(t,e,n){var r;switch(e.nodeType){case Lr:r=e.cloneNode(!1),r.ownerDocument=t;case mi:break;case xa:n=!0;break}if(r||(r=e.cloneNode(!1)),r.ownerDocument=t,r.parentNode=null,n)for(var i=e.firstChild;i;)r.appendChild(Py(t,i,n)),i=i.nextSibling;return r}function Cd(t,e,n){var r=new e.constructor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=e[i];typeof o!="object"&&o!=r[i]&&(r[i]=o)}switch(e.childNodes&&(r.childNodes=new pi),r.ownerDocument=t,r.nodeType){case Lr:var a=e.attributes,s=r.attributes=new Tu,c=a.length;s._ownerElement=r;for(var u=0;u<c;u++)r.setAttributeNode(Cd(t,a.item(u),!0));break;case xa:n=!0}if(n)for(var l=e.firstChild;l;)r.appendChild(Cd(t,l,n)),l=l.nextSibling;return r}function Ly(t,e,n){t[e]=n}try{if(Object.defineProperty){let t=function(e){switch(e.nodeType){case Lr:case mi:var n=[];for(e=e.firstChild;e;)e.nodeType!==7&&e.nodeType!==8&&n.push(t(e)),e=e.nextSibling;return n.join("");default:return e.nodeValue}};var getTextContent=t;Object.defineProperty(wa.prototype,"length",{get:function(){return Wf(this),this.$$length}}),Object.defineProperty(Dt.prototype,"textContent",{get:function(){return t(this)},set:function(e){switch(this.nodeType){case Lr:case mi:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Ly=function(e,n,r){e["$$"+n]=r}}}catch{}ii.DocumentType=Gu;ii.DOMException=zt;ii.DOMImplementation=Ty;ii.Element=yo;ii.Node=Dt;ii.NodeList=pi;ii.XMLSerializer=Ny;var zu={},My={};(function(t){var e=wi.freeze;t.XML_ENTITIES=e({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=e({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"}),t.entityMap=t.HTML_ENTITIES})(My);var Kf={},Fs=wi.NAMESPACE,Ad=/[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]/,g0=new RegExp("[\\-\\.0-9"+Ad.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),m0=new RegExp("^"+Ad.source+g0.source+"*(?::"+Ad.source+g0.source+"*)?$"),es=0,Ei=1,Xo=2,ts=3,Vo=4,Yo=5,ns=6,Wc=7;function Ta(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,Ta)}Ta.prototype=new Error;Ta.prototype.name=Ta.name;function Cy(){}Cy.prototype={parse:function(t,e,n){var r=this.domBuilder;r.startDocument(),Ay(e,e={}),bL(t,e,n,r,this.errorHandler),r.endDocument()}};function bL(t,e,n,r,i){function o(C){if(C>65535){C-=65536;var F=55296+(C>>10),A=56320+(C&1023);return String.fromCharCode(F,A)}else return String.fromCharCode(C)}function a(C){var F=C.slice(1,-1);return Object.hasOwnProperty.call(n,F)?n[F]:F.charAt(0)==="#"?o(parseInt(F.substr(1).replace("x","0x"))):(i.error("entity not found:"+C),C)}function s(C){if(C>g){var F=t.substring(g,C).replace(/&#?\w+;/g,a);f&&c(g),r.characters(F,0,C-g),g=C}}function c(C,F){for(;C>=l&&(F=h.exec(t));)u=F.index,l=u+F[0].length,f.lineNumber++;f.columnNumber=C-u+1}for(var u=0,l=0,h=/.*(?:\r\n?|\n)|.*$/g,f=r.locator,d=[{currentNSMap:e}],p={},g=0;;){try{var y=t.indexOf("<",g);if(y<0){if(!t.substr(g).match(/^\s*$/)){var R=r.doc,m=R.createTextNode(t.substr(g));R.appendChild(m),r.currentElement=m}return}switch(y>g&&s(y),t.charAt(y+1)){case"/":var ne=t.indexOf(">",y+3),v=t.substring(y+2,ne).replace(/[ \t\n\r]+$/g,""),x=d.pop();ne<0?(v=t.substring(y+2).replace(/[\s<].*/,""),i.error("end tag name: "+v+" is not complete:"+x.tagName),ne=y+1+v.length):v.match(/\s</)&&(v=v.replace(/[\s<].*/,""),i.error("end tag name: "+v+" maybe not complete"),ne=y+1+v.length);var _=x.localNSMap,E=x.tagName==v,N=E||x.tagName&&x.tagName.toLowerCase()==v.toLowerCase();if(N){if(r.endElement(x.uri,x.localName,v),_)for(var U in _)Object.prototype.hasOwnProperty.call(_,U)&&r.endPrefixMapping(U);E||i.fatalError("end tag name: "+v+" is not match the current start tagName:"+x.tagName)}else d.push(x);ne++;break;case"?":f&&c(y),ne=DL(t,y,r);break;case"!":f&&c(y),ne=SL(t,y,r,i);break;default:f&&c(y);var O=new Uy,Q=d[d.length-1].currentNSMap,ne=xL(t,y,O,Q,a,i),T=O.length;if(!O.closed&&TL(t,ne,O.tagName,p)&&(O.closed=!0,n.nbsp||i.warning("unclosed xml attribute")),f&&T){for(var I=R0(f,{}),b=0;b<T;b++){var M=O[b];c(M.offset),M.locator=R0(f,{})}r.locator=I,y0(O,r,Q)&&d.push(O),r.locator=f}else y0(O,r,Q)&&d.push(O);Fs.isHTML(O.uri)&&!O.closed?ne=wL(t,ne,O.tagName,a,r):ne++}}catch(C){if(C instanceof Ta)throw C;i.error("element parse error: "+C),ne=-1}ne>g?g=ne:s(Math.max(y,g)+1)}}function R0(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function xL(t,e,n,r,i,o){function a(f,d,p){n.attributeNames.hasOwnProperty(f)&&o.fatalError("Attribute "+f+" redefined"),n.addValue(f,d.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,i),p)}for(var s,c,u=++e,l=es;;){var h=t.charAt(u);switch(h){case"=":if(l===Ei)s=t.slice(e,u),l=ts;else if(l===Xo)l=ts;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(l===ts||l===Ei)if(l===Ei&&(o.warning('attribute value must after "="'),s=t.slice(e,u)),e=u+1,u=t.indexOf(h,e),u>0)c=t.slice(e,u),a(s,c,e-1),l=Yo;else throw new Error("attribute value no end '"+h+"' match");else if(l==Vo)c=t.slice(e,u),a(s,c,e),o.warning('attribute "'+s+'" missed start quot('+h+")!!"),e=u+1,l=Yo;else throw new Error('attribute value must after "="');break;case"/":switch(l){case es:n.setTagName(t.slice(e,u));case Yo:case ns:case Wc:l=Wc,n.closed=!0;case Vo:case Ei:break;case Xo:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),l==es&&n.setTagName(t.slice(e,u)),u;case">":switch(l){case es:n.setTagName(t.slice(e,u));case Yo:case ns:case Wc:break;case Vo:case Ei:c=t.slice(e,u),c.slice(-1)==="/"&&(n.closed=!0,c=c.slice(0,-1));case Xo:l===Xo&&(c=s),l==Vo?(o.warning('attribute "'+c+'" missed quot(")!'),a(s,c,e)):((!Fs.isHTML(r[""])||!c.match(/^(?:disabled|checked|selected)$/i))&&o.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),a(c,c,e));break;case ts:throw new Error("attribute value missed!!")}return u;case"\x80":h=" ";default:if(h<=" ")switch(l){case es:n.setTagName(t.slice(e,u)),l=ns;break;case Ei:s=t.slice(e,u),l=Xo;break;case Vo:var c=t.slice(e,u);o.warning('attribute "'+c+'" missed quot(")!!'),a(s,c,e);case Yo:l=ns;break}else switch(l){case Xo:n.tagName,(!Fs.isHTML(r[""])||!s.match(/^(?:disabled|checked|selected)$/i))&&o.warning('attribute "'+s+'" missed value!! "'+s+'" instead2!!'),a(s,s,e),e=u,l=Ei;break;case Yo:o.warning('attribute space is required"'+s+'"!!');case ns:l=Ei,e=u;break;case ts:l=Vo,e=u;break;case Wc:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function y0(t,e,n){for(var r=t.tagName,i=null,h=t.length;h--;){var o=t[h],a=o.qName,s=o.value,f=a.indexOf(":");if(f>0)var c=o.prefix=a.slice(0,f),u=a.slice(f+1),l=c==="xmlns"&&u;else u=a,c=null,l=a==="xmlns"&&"";o.localName=u,l!==!1&&(i==null&&(i={},Ay(n,n={})),n[l]=i[l]=s,o.uri=Fs.XMLNS,e.startPrefixMapping(l,s))}for(var h=t.length;h--;){o=t[h];var c=o.prefix;c&&(c==="xml"&&(o.uri=Fs.XML),c!=="xmlns"&&(o.uri=n[c||""]))}var f=r.indexOf(":");f>0?(c=t.prefix=r.slice(0,f),u=t.localName=r.slice(f+1)):(c=null,u=t.localName=r);var d=t.uri=n[c||""];if(e.startElement(d,u,r,t),t.closed){if(e.endElement(d,u,r),i)for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&e.endPrefixMapping(c)}else return t.currentNSMap=n,t.localNSMap=i,!0}function wL(t,e,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=t.indexOf("</"+n+">",e),a=t.substring(e+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,r),i.characters(a,0,a.length),o)}return e+1}function TL(t,e,n,r){var i=r[n];return i==null&&(i=t.lastIndexOf("</"+n+">"),i<e&&(i=t.lastIndexOf("</"+n)),r[n]=i),i<e}function Ay(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}function SL(t,e,n,r){var i=t.charAt(e+2);switch(i){case"-":if(t.charAt(e+3)==="-"){var o=t.indexOf("-->",e+4);return o>e?(n.comment(t,e+4,o-e-4),o+3):(r.error("Unclosed comment"),-1)}else return-1;default:if(t.substr(e+3,6)=="CDATA["){var o=t.indexOf("]]>",e+9);return n.startCDATA(),n.characters(t,e+9,o-e-9),n.endCDATA(),o+3}var a=_L(t,e),s=a.length;if(s>1&&/!doctype/i.test(a[0][0])){var c=a[1][0],u=!1,l=!1;s>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],l=s>4&&a[4][0]):/^system$/i.test(a[2][0])&&(l=a[3][0]));var h=a[s-1];return n.startDTD(c,u,l),n.endDTD(),h.index+h[0].length}}return-1}function DL(t,e,n){var r=t.indexOf("?>",e);if(r){var i=t.substring(e,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return i?(i[0].length,n.processingInstruction(i[1],i[2]),r+2):-1}return-1}function Uy(){this.attributeNames={}}Uy.prototype={setTagName:function(t){if(!m0.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,n){if(!m0.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};function _L(t,e){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=e,i.exec(t);n=i.exec(t);)if(r.push(n),n[1])return r}Kf.XMLReader=Cy;Kf.ParseError=Ta;var OL=wi,EL=ii,v0=My,Wy=Kf,IL=EL.DOMImplementation,b0=OL.NAMESPACE,NL=Wy.ParseError,FL=Wy.XMLReader;function Xy(t){return t.replace(/\r[\n\u0085]/g,`
|
|
`).replace(/[\r\u0085\u2028]/g,`
|
|
`)}function Vy(t){this.options=t||{locator:{}}}Vy.prototype.parseFromString=function(t,e){var n=this.options,r=new FL,i=n.domBuilder||new Hs,o=n.errorHandler,a=n.locator,s=n.xmlns||{},c=/\/x?html?$/.test(e),u=c?v0.HTML_ENTITIES:v0.XML_ENTITIES;a&&i.setDocumentLocator(a),r.errorHandler=PL(o,i,a),r.domBuilder=n.domBuilder||i,c&&(s[""]=b0.HTML),s.xml=s.xml||b0.XML;var l=n.normalizeLineEndings||Xy;return t&&typeof t=="string"?r.parse(l(t),s,u):r.errorHandler.error("invalid doc source"),i.doc};function PL(t,e,n){if(!t){if(e instanceof Hs)return e;t=e}var r={},i=t instanceof Function;n=n||{};function o(a){var s=t[a];!s&&i&&(s=t.length==2?function(c){t(a,c)}:t),r[a]=s&&function(c){s("[xmldom "+a+"] "+c+Ud(n))}||function(){}}return o("warning"),o("error"),o("fatalError"),r}function Hs(){this.cdata=!1}function Bo(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}Hs.prototype={startDocument:function(){this.doc=new IL().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,n,r){var i=this.doc,o=i.createElementNS(t,n||e),a=r.length;Xc(this,o),this.currentElement=o,this.locator&&Bo(this.locator,o);for(var s=0;s<a;s++){var t=r.getURI(s),c=r.getValue(s),n=r.getQName(s),u=i.createAttributeNS(t,n);this.locator&&Bo(r.getLocator(s),u),u.value=u.nodeValue=c,o.setAttributeNode(u)}},endElement:function(t,e,n){var r=this.currentElement;r.tagName,this.currentElement=r.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var n=this.doc.createProcessingInstruction(t,e);this.locator&&Bo(this.locator,n),Xc(this,n)},ignorableWhitespace:function(t,e,n){},characters:function(t,e,n){if(t=x0.apply(this,arguments),t){if(this.cdata)var r=this.doc.createCDATASection(t);else var r=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(t)&&this.doc.appendChild(r),this.locator&&Bo(this.locator,r)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,n){t=x0.apply(this,arguments);var r=this.doc.createComment(t);this.locator&&Bo(this.locator,r),Xc(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(t,e,n);this.locator&&Bo(this.locator,i),Xc(this,i),this.doc.doctype=i}},warning:function(t){console.warn("[xmldom warning] "+t,Ud(this.locator))},error:function(t){console.error("[xmldom error] "+t,Ud(this.locator))},fatalError:function(t){throw new NL(t,this.locator)}};function Ud(t){if(t)return`
|
|
@`+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function x0(t,e,n){return typeof t=="string"?t.substr(e,n):t.length>=e+n||e?new java.lang.String(t,e,n)+"":t}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){Hs.prototype[t]=function(){return null}});function Xc(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}zu.__DOMHandler=Hs;zu.normalizeLineEndings=Xy;zu.DOMParser=Vy;var Yy=ii;Hu.DOMImplementation=Yy.DOMImplementation;Hu.XMLSerializer=Yy.XMLSerializer;Hu.DOMParser=zu.DOMParser;var LL=Hu,ML=ii;function CL(t){var e=null,n=new LL.DOMParser({errorHandler:function(i,o){e={level:i,message:o}}}),r=n.parseFromString(t);if(e===null)return r;throw new Error(e.level+": "+e.message)}Af.parseFromString=CL;Af.Node=ML.Node;var Vh=vn,w0=Kt.exports,By=Af,ky=ks,AL=ky.Element;hy.readString=UL;var T0=By.Node;function UL(t,e){e=e||{};try{var n=By.parseFromString(t,"text/xml")}catch(a){return Vh.reject(a)}if(n.documentElement.tagName==="parsererror")return Vh.resolve(new Error(n.documentElement.textContent));function r(a){switch(a.nodeType){case T0.ELEMENT_NODE:return i(a);case T0.TEXT_NODE:return ky.text(a.nodeValue)}}function i(a){var s=o(a),c=[];w0.forEach(a.childNodes,function(l){var h=r(l);h&&c.push(h)});var u={};return w0.forEach(a.attributes,function(l){u[o(l)]=l.value}),new AL(s,u,c)}function o(a){if(a.namespaceURI){var s=e[a.namespaceURI],c;return s?c=s+":":c="{"+a.namespaceURI+"}",c+a.localName}else return a.localName}return Vh.resolve(r(n.documentElement))}var Zy={},ds={},Zn={};(function(){var t,e,n,r,i,o,a,s=[].slice,c={}.hasOwnProperty;t=function(){var u,l,h,f,d,p;if(p=arguments[0],d=2<=arguments.length?s.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(u=0,h=d.length;u<h;u++)if(f=d[u],f!=null)for(l in f)!c.call(f,l)||(p[l]=f[l]);return p},i=function(u){return!!u&&Object.prototype.toString.call(u)==="[object Function]"},o=function(u){var l;return!!u&&((l=typeof u)=="function"||l==="object")},n=function(u){return i(Array.isArray)?Array.isArray(u):Object.prototype.toString.call(u)==="[object Array]"},r=function(u){var l;if(n(u))return!u.length;for(l in u)if(!!c.call(u,l))return!1;return!0},a=function(u){var l,h;return o(u)&&(h=Object.getPrototypeOf(u))&&(l=h.constructor)&&typeof l=="function"&&l instanceof l&&Function.prototype.toString.call(l)===Function.prototype.toString.call(Object)},e=function(u){return i(u.valueOf)?u.valueOf():u},Zn.assign=t,Zn.isFunction=i,Zn.isObject=o,Zn.isArray=n,Zn.isEmpty=r,Zn.isPlainObject=a,Zn.getValue=e}).call(qe);var Qy={exports:{}},Qn={exports:{}},Gs={exports:{}},Hf={exports:{}};(function(){Hf.exports=function(){function t(e,n,r){if(this.options=e.options,this.stringify=e.stringify,this.parent=e,n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));if(r==null)throw new Error("Missing attribute value. "+this.debugInfo(n));this.name=this.stringify.attName(n),this.value=this.stringify.attValue(r)}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).attribute(this)},t.prototype.debugInfo=function(e){return e=e||this.name,e==null?"parent: <"+this.parent.name+">":"attribute: {"+e+"}, parent: <"+this.parent.name+">"},t}()}).call(qe);(function(){var t,e,n,r,i,o,a=function(c,u){for(var l in u)s.call(u,l)&&(c[l]=u[l]);function h(){this.constructor=c}return h.prototype=u.prototype,c.prototype=new h,c.__super__=u.prototype,c},s={}.hasOwnProperty;o=Zn,i=o.isObject,r=o.isFunction,n=o.getValue,e=Qn.exports,t=Hf.exports,Gs.exports=function(c){a(u,c);function u(l,h,f){if(u.__super__.constructor.call(this,l),h==null)throw new Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(h),this.attributes={},f!=null&&this.attribute(f),l.isDocument&&(this.isRoot=!0,this.documentObject=l,l.rootObject=this)}return u.prototype.clone=function(){var l,h,f,d;f=Object.create(this),f.isRoot&&(f.documentObject=null),f.attributes={},d=this.attributes;for(h in d)!s.call(d,h)||(l=d[h],f.attributes[h]=l.clone());return f.children=[],this.children.forEach(function(p){var g;return g=p.clone(),g.parent=f,f.children.push(g)}),f},u.prototype.attribute=function(l,h){var f,d;if(l!=null&&(l=n(l)),i(l))for(f in l)!s.call(l,f)||(d=l[f],this.attribute(f,d));else r(h)&&(h=h.apply()),(!this.options.skipNullAttributes||h!=null)&&(this.attributes[l]=new t(this,l,h));return this},u.prototype.removeAttribute=function(l){var h,f,d;if(l==null)throw new Error("Missing attribute name. "+this.debugInfo());if(l=n(l),Array.isArray(l))for(f=0,d=l.length;f<d;f++)h=l[f],delete this.attributes[h];else delete this.attributes[l];return this},u.prototype.toString=function(l){return this.options.writer.set(l).element(this)},u.prototype.att=function(l,h){return this.attribute(l,h)},u.prototype.a=function(l,h){return this.attribute(l,h)},u}(e)}).call(qe);var Js={exports:{}};(function(){var t,e=function(r,i){for(var o in i)n.call(i,o)&&(r[o]=i[o]);function a(){this.constructor=r}return a.prototype=i.prototype,r.prototype=new a,r.__super__=i.prototype,r},n={}.hasOwnProperty;t=Qn.exports,Js.exports=function(r){e(i,r);function i(o,a){if(i.__super__.constructor.call(this,o),a==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(a)}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(o){return this.options.writer.set(o).cdata(this)},i}(t)}).call(qe);var zs={exports:{}};(function(){var t,e=function(r,i){for(var o in i)n.call(i,o)&&(r[o]=i[o]);function a(){this.constructor=r}return a.prototype=i.prototype,r.prototype=new a,r.__super__=i.prototype,r},n={}.hasOwnProperty;t=Qn.exports,zs.exports=function(r){e(i,r);function i(o,a){if(i.__super__.constructor.call(this,o),a==null)throw new Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(a)}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(o){return this.options.writer.set(o).comment(this)},i}(t)}).call(qe);var $s={exports:{}};(function(){var t,e,n=function(i,o){for(var a in o)r.call(o,a)&&(i[a]=o[a]);function s(){this.constructor=i}return s.prototype=o.prototype,i.prototype=new s,i.__super__=o.prototype,i},r={}.hasOwnProperty;e=Zn.isObject,t=Qn.exports,$s.exports=function(i){n(o,i);function o(a,s,c,u){var l;o.__super__.constructor.call(this,a),e(s)&&(l=s,s=l.version,c=l.encoding,u=l.standalone),s||(s="1.0"),this.version=this.stringify.xmlVersion(s),c!=null&&(this.encoding=this.stringify.xmlEncoding(c)),u!=null&&(this.standalone=this.stringify.xmlStandalone(u))}return o.prototype.toString=function(a){return this.options.writer.set(a).declaration(this)},o}(t)}).call(qe);var js={exports:{}},qs={exports:{}};(function(){var t,e=function(r,i){for(var o in i)n.call(i,o)&&(r[o]=i[o]);function a(){this.constructor=r}return a.prototype=i.prototype,r.prototype=new a,r.__super__=i.prototype,r},n={}.hasOwnProperty;t=Qn.exports,qs.exports=function(r){e(i,r);function i(o,a,s,c,u,l){if(i.__super__.constructor.call(this,o),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(s==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(a));if(!c)throw new Error("Missing DTD attribute type. "+this.debugInfo(a));if(!u)throw new Error("Missing DTD attribute default. "+this.debugInfo(a));if(u.indexOf("#")!==0&&(u="#"+u),!u.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(a));if(l&&!u.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(a));this.elementName=this.stringify.eleName(a),this.attributeName=this.stringify.attName(s),this.attributeType=this.stringify.dtdAttType(c),this.defaultValue=this.stringify.dtdAttDefault(l),this.defaultValueType=u}return i.prototype.toString=function(o){return this.options.writer.set(o).dtdAttList(this)},i}(t)}).call(qe);var ec={exports:{}};(function(){var t,e,n=function(i,o){for(var a in o)r.call(o,a)&&(i[a]=o[a]);function s(){this.constructor=i}return s.prototype=o.prototype,i.prototype=new s,i.__super__=o.prototype,i},r={}.hasOwnProperty;e=Zn.isObject,t=Qn.exports,ec.exports=function(i){n(o,i);function o(a,s,c,u){if(o.__super__.constructor.call(this,a),c==null)throw new Error("Missing DTD entity name. "+this.debugInfo(c));if(u==null)throw new Error("Missing DTD entity value. "+this.debugInfo(c));if(this.pe=!!s,this.name=this.stringify.eleName(c),!e(u))this.value=this.stringify.dtdEntityValue(u);else{if(!u.pubID&&!u.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(c));if(u.pubID&&!u.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(c));if(u.pubID!=null&&(this.pubID=this.stringify.dtdPubID(u.pubID)),u.sysID!=null&&(this.sysID=this.stringify.dtdSysID(u.sysID)),u.nData!=null&&(this.nData=this.stringify.dtdNData(u.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(c))}}return o.prototype.toString=function(a){return this.options.writer.set(a).dtdEntity(this)},o}(t)}).call(qe);var tc={exports:{}};(function(){var t,e=function(r,i){for(var o in i)n.call(i,o)&&(r[o]=i[o]);function a(){this.constructor=r}return a.prototype=i.prototype,r.prototype=new a,r.__super__=i.prototype,r},n={}.hasOwnProperty;t=Qn.exports,tc.exports=function(r){e(i,r);function i(o,a,s){if(i.__super__.constructor.call(this,o),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());s||(s="(#PCDATA)"),Array.isArray(s)&&(s="("+s.join(",")+")"),this.name=this.stringify.eleName(a),this.value=this.stringify.dtdElementValue(s)}return i.prototype.toString=function(o){return this.options.writer.set(o).dtdElement(this)},i}(t)}).call(qe);var nc={exports:{}};(function(){var t,e=function(r,i){for(var o in i)n.call(i,o)&&(r[o]=i[o]);function a(){this.constructor=r}return a.prototype=i.prototype,r.prototype=new a,r.__super__=i.prototype,r},n={}.hasOwnProperty;t=Qn.exports,nc.exports=function(r){e(i,r);function i(o,a,s){if(i.__super__.constructor.call(this,o),a==null)throw new Error("Missing DTD notation name. "+this.debugInfo(a));if(!s.pubID&&!s.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(a));this.name=this.stringify.eleName(a),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(o){return this.options.writer.set(o).dtdNotation(this)},i}(t)}).call(qe);(function(){var t,e,n,r,i,o,a=function(c,u){for(var l in u)s.call(u,l)&&(c[l]=u[l]);function h(){this.constructor=c}return h.prototype=u.prototype,c.prototype=new h,c.__super__=u.prototype,c},s={}.hasOwnProperty;o=Zn.isObject,i=Qn.exports,t=qs.exports,n=ec.exports,e=tc.exports,r=nc.exports,js.exports=function(c){a(u,c);function u(l,h,f){var d,p;u.__super__.constructor.call(this,l),this.name="!DOCTYPE",this.documentObject=l,o(h)&&(d=h,h=d.pubID,f=d.sysID),f==null&&(p=[h,f],f=p[0],h=p[1]),h!=null&&(this.pubID=this.stringify.dtdPubID(h)),f!=null&&(this.sysID=this.stringify.dtdSysID(f))}return u.prototype.element=function(l,h){var f;return f=new e(this,l,h),this.children.push(f),this},u.prototype.attList=function(l,h,f,d,p){var g;return g=new t(this,l,h,f,d,p),this.children.push(g),this},u.prototype.entity=function(l,h){var f;return f=new n(this,!1,l,h),this.children.push(f),this},u.prototype.pEntity=function(l,h){var f;return f=new n(this,!0,l,h),this.children.push(f),this},u.prototype.notation=function(l,h){var f;return f=new r(this,l,h),this.children.push(f),this},u.prototype.toString=function(l){return this.options.writer.set(l).docType(this)},u.prototype.ele=function(l,h){return this.element(l,h)},u.prototype.att=function(l,h,f,d,p){return this.attList(l,h,f,d,p)},u.prototype.ent=function(l,h){return this.entity(l,h)},u.prototype.pent=function(l,h){return this.pEntity(l,h)},u.prototype.not=function(l,h){return this.notation(l,h)},u.prototype.up=function(){return this.root()||this.documentObject},u}(i)}).call(qe);var rc={exports:{}};(function(){var t,e=function(r,i){for(var o in i)n.call(i,o)&&(r[o]=i[o]);function a(){this.constructor=r}return a.prototype=i.prototype,r.prototype=new a,r.__super__=i.prototype,r},n={}.hasOwnProperty;t=Qn.exports,rc.exports=function(r){e(i,r);function i(o,a){if(i.__super__.constructor.call(this,o),a==null)throw new Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(a)}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(o){return this.options.writer.set(o).raw(this)},i}(t)}).call(qe);var ic={exports:{}};(function(){var t,e=function(r,i){for(var o in i)n.call(i,o)&&(r[o]=i[o]);function a(){this.constructor=r}return a.prototype=i.prototype,r.prototype=new a,r.__super__=i.prototype,r},n={}.hasOwnProperty;t=Qn.exports,ic.exports=function(r){e(i,r);function i(o,a){if(i.__super__.constructor.call(this,o),a==null)throw new Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(a)}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(o){return this.options.writer.set(o).text(this)},i}(t)}).call(qe);var oc={exports:{}};(function(){var t,e=function(r,i){for(var o in i)n.call(i,o)&&(r[o]=i[o]);function a(){this.constructor=r}return a.prototype=i.prototype,r.prototype=new a,r.__super__=i.prototype,r},n={}.hasOwnProperty;t=Qn.exports,oc.exports=function(r){e(i,r);function i(o,a,s){if(i.__super__.constructor.call(this,o),a==null)throw new Error("Missing instruction target. "+this.debugInfo());this.target=this.stringify.insTarget(a),s&&(this.value=this.stringify.insValue(s))}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(o){return this.options.writer.set(o).processingInstruction(this)},i}(t)}).call(qe);var $u={exports:{}};(function(){var t,e=function(r,i){for(var o in i)n.call(i,o)&&(r[o]=i[o]);function a(){this.constructor=r}return a.prototype=i.prototype,r.prototype=new a,r.__super__=i.prototype,r},n={}.hasOwnProperty;t=Qn.exports,$u.exports=function(r){e(i,r);function i(o){i.__super__.constructor.call(this,o),this.isDummy=!0}return i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(o){return""},i}(t)}).call(qe);(function(){var t,e,n,r,i,o,a,s,c,u,l,h,f,d,p={}.hasOwnProperty;d=Zn,f=d.isObject,h=d.isFunction,l=d.isEmpty,u=d.getValue,o=null,t=null,e=null,n=null,r=null,s=null,c=null,a=null,i=null,Qn.exports=function(){function g(y){this.parent=y,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],o||(o=Gs.exports,t=Js.exports,e=zs.exports,n=$s.exports,r=js.exports,s=rc.exports,c=ic.exports,a=oc.exports,i=$u.exports)}return g.prototype.element=function(y,R,m){var v,x,_,E,N,U,O,Q,ne,T,I;if(U=null,R===null&&m==null&&(ne=[{},null],R=ne[0],m=ne[1]),R==null&&(R={}),R=u(R),f(R)||(T=[R,m],m=T[0],R=T[1]),y!=null&&(y=u(y)),Array.isArray(y))for(_=0,O=y.length;_<O;_++)x=y[_],U=this.element(x);else if(h(y))U=this.element(y.apply());else if(f(y)){for(N in y)if(!!p.call(y,N))if(I=y[N],h(I)&&(I=I.apply()),f(I)&&l(I)&&(I=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&N.indexOf(this.stringify.convertAttKey)===0)U=this.attribute(N.substr(this.stringify.convertAttKey.length),I);else if(!this.options.separateArrayItems&&Array.isArray(I))for(E=0,Q=I.length;E<Q;E++)x=I[E],v={},v[N]=x,U=this.element(v);else f(I)?(U=this.element(N),U.element(I)):U=this.element(N,I)}else this.options.skipNullNodes&&m===null?U=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&y.indexOf(this.stringify.convertTextKey)===0?U=this.text(m):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&y.indexOf(this.stringify.convertCDataKey)===0?U=this.cdata(m):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&y.indexOf(this.stringify.convertCommentKey)===0?U=this.comment(m):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&y.indexOf(this.stringify.convertRawKey)===0?U=this.raw(m):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&y.indexOf(this.stringify.convertPIKey)===0?U=this.instruction(y.substr(this.stringify.convertPIKey.length),m):U=this.node(y,R,m);if(U==null)throw new Error("Could not create any elements with: "+y+". "+this.debugInfo());return U},g.prototype.insertBefore=function(y,R,m){var v,x,_;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(y));return x=this.parent.children.indexOf(this),_=this.parent.children.splice(x),v=this.parent.element(y,R,m),Array.prototype.push.apply(this.parent.children,_),v},g.prototype.insertAfter=function(y,R,m){var v,x,_;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(y));return x=this.parent.children.indexOf(this),_=this.parent.children.splice(x+1),v=this.parent.element(y,R,m),Array.prototype.push.apply(this.parent.children,_),v},g.prototype.remove=function(){var y;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return y=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[y,y-y+1].concat([])),this.parent},g.prototype.node=function(y,R,m){var v,x;return y!=null&&(y=u(y)),R||(R={}),R=u(R),f(R)||(x=[R,m],m=x[0],R=x[1]),v=new o(this,y,R),m!=null&&v.text(m),this.children.push(v),v},g.prototype.text=function(y){var R;return R=new c(this,y),this.children.push(R),this},g.prototype.cdata=function(y){var R;return R=new t(this,y),this.children.push(R),this},g.prototype.comment=function(y){var R;return R=new e(this,y),this.children.push(R),this},g.prototype.commentBefore=function(y){var R,m;return R=this.parent.children.indexOf(this),m=this.parent.children.splice(R),this.parent.comment(y),Array.prototype.push.apply(this.parent.children,m),this},g.prototype.commentAfter=function(y){var R,m;return R=this.parent.children.indexOf(this),m=this.parent.children.splice(R+1),this.parent.comment(y),Array.prototype.push.apply(this.parent.children,m),this},g.prototype.raw=function(y){var R;return R=new s(this,y),this.children.push(R),this},g.prototype.dummy=function(){var y;return y=new i(this),this.children.push(y),y},g.prototype.instruction=function(y,R){var m,v,x,_,E;if(y!=null&&(y=u(y)),R!=null&&(R=u(R)),Array.isArray(y))for(_=0,E=y.length;_<E;_++)m=y[_],this.instruction(m);else if(f(y))for(m in y)!p.call(y,m)||(v=y[m],this.instruction(m,v));else h(R)&&(R=R.apply()),x=new a(this,y,R),this.children.push(x);return this},g.prototype.instructionBefore=function(y,R){var m,v;return m=this.parent.children.indexOf(this),v=this.parent.children.splice(m),this.parent.instruction(y,R),Array.prototype.push.apply(this.parent.children,v),this},g.prototype.instructionAfter=function(y,R){var m,v;return m=this.parent.children.indexOf(this),v=this.parent.children.splice(m+1),this.parent.instruction(y,R),Array.prototype.push.apply(this.parent.children,v),this},g.prototype.declaration=function(y,R,m){var v,x;return v=this.document(),x=new n(v,y,R,m),v.children[0]instanceof n?v.children[0]=x:v.children.unshift(x),v.root()||v},g.prototype.doctype=function(y,R){var m,v,x,_,E,N,U,O,Q,ne;for(v=this.document(),x=new r(v,y,R),Q=v.children,_=E=0,U=Q.length;E<U;_=++E)if(m=Q[_],m instanceof r)return v.children[_]=x,x;for(ne=v.children,_=N=0,O=ne.length;N<O;_=++N)if(m=ne[_],m.isRoot)return v.children.splice(_,0,x),x;return v.children.push(x),x},g.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},g.prototype.root=function(){var y;for(y=this;y;){if(y.isDocument)return y.rootObject;if(y.isRoot)return y;y=y.parent}},g.prototype.document=function(){var y;for(y=this;y;){if(y.isDocument)return y;y=y.parent}},g.prototype.end=function(y){return this.document().end(y)},g.prototype.prev=function(){var y;for(y=this.parent.children.indexOf(this);y>0&&this.parent.children[y-1].isDummy;)y=y-1;if(y<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[y-1]},g.prototype.next=function(){var y;for(y=this.parent.children.indexOf(this);y<this.parent.children.length-1&&this.parent.children[y+1].isDummy;)y=y+1;if(y===-1||y===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[y+1]},g.prototype.importDocument=function(y){var R;return R=y.root().clone(),R.parent=this,R.isRoot=!1,this.children.push(R),this},g.prototype.debugInfo=function(y){var R,m;return y=y||this.name,y==null&&!((R=this.parent)!=null&&R.name)?"":y==null?"parent: <"+this.parent.name+">":(m=this.parent)!=null&&m.name?"node: <"+y+">, parent: <"+this.parent.name+">":"node: <"+y+">"},g.prototype.ele=function(y,R,m){return this.element(y,R,m)},g.prototype.nod=function(y,R,m){return this.node(y,R,m)},g.prototype.txt=function(y){return this.text(y)},g.prototype.dat=function(y){return this.cdata(y)},g.prototype.com=function(y){return this.comment(y)},g.prototype.ins=function(y,R){return this.instruction(y,R)},g.prototype.doc=function(){return this.document()},g.prototype.dec=function(y,R,m){return this.declaration(y,R,m)},g.prototype.dtd=function(y,R){return this.doctype(y,R)},g.prototype.e=function(y,R,m){return this.element(y,R,m)},g.prototype.n=function(y,R,m){return this.node(y,R,m)},g.prototype.t=function(y){return this.text(y)},g.prototype.d=function(y){return this.cdata(y)},g.prototype.c=function(y){return this.comment(y)},g.prototype.r=function(y){return this.raw(y)},g.prototype.i=function(y,R){return this.instruction(y,R)},g.prototype.u=function(){return this.up()},g.prototype.importXMLBuilder=function(y){return this.importDocument(y)},g}()}).call(qe);var Gf={exports:{}};(function(){var t=function(n,r){return function(){return n.apply(r,arguments)}},e={}.hasOwnProperty;Gf.exports=function(){function n(r){this.assertLegalChar=t(this.assertLegalChar,this);var i,o,a;r||(r={}),this.noDoubleEncoding=r.noDoubleEncoding,o=r.stringify||{};for(i in o)!e.call(o,i)||(a=o[i],this[i]=a)}return n.prototype.eleName=function(r){return r=""+r||"",this.assertLegalChar(r)},n.prototype.eleText=function(r){return r=""+r||"",this.assertLegalChar(this.elEscape(r))},n.prototype.cdata=function(r){return r=""+r||"",r=r.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(r)},n.prototype.comment=function(r){if(r=""+r||"",r.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+r);return this.assertLegalChar(r)},n.prototype.raw=function(r){return""+r||""},n.prototype.attName=function(r){return r=""+r||""},n.prototype.attValue=function(r){return r=""+r||"",this.attEscape(r)},n.prototype.insTarget=function(r){return""+r||""},n.prototype.insValue=function(r){if(r=""+r||"",r.match(/\?>/))throw new Error("Invalid processing instruction value: "+r);return r},n.prototype.xmlVersion=function(r){if(r=""+r||"",!r.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+r);return r},n.prototype.xmlEncoding=function(r){if(r=""+r||"",!r.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+r);return r},n.prototype.xmlStandalone=function(r){return r?"yes":"no"},n.prototype.dtdPubID=function(r){return""+r||""},n.prototype.dtdSysID=function(r){return""+r||""},n.prototype.dtdElementValue=function(r){return""+r||""},n.prototype.dtdAttType=function(r){return""+r||""},n.prototype.dtdAttDefault=function(r){return r!=null?""+r||"":r},n.prototype.dtdEntityValue=function(r){return""+r||""},n.prototype.dtdNData=function(r){return""+r||""},n.prototype.convertAttKey="@",n.prototype.convertPIKey="?",n.prototype.convertTextKey="#text",n.prototype.convertCDataKey="#cdata",n.prototype.convertCommentKey="#comment",n.prototype.convertRawKey="#raw",n.prototype.assertLegalChar=function(r){var i;if(i=r.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),i)throw new Error("Invalid character in string: "+r+" at index "+i.index);return r},n.prototype.elEscape=function(r){var i;return i=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,r.replace(i,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},n.prototype.attEscape=function(r){var i;return i=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,r.replace(i,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},n}()}).call(qe);var ju={exports:{}},Jf={exports:{}};(function(){var t={}.hasOwnProperty;Jf.exports=function(){function e(n){var r,i,o,a,s,c,u,l,h;n||(n={}),this.pretty=n.pretty||!1,this.allowEmpty=(i=n.allowEmpty)!=null?i:!1,this.pretty?(this.indent=(o=n.indent)!=null?o:" ",this.newline=(a=n.newline)!=null?a:`
|
|
`,this.offset=(s=n.offset)!=null?s:0,this.dontprettytextnodes=(c=n.dontprettytextnodes)!=null?c:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(u=n.spacebeforeslash)!=null?u:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,l=n.writer||{};for(r in l)!t.call(l,r)||(h=l[r],this[r]=h)}return e.prototype.set=function(n){var r,i,o;n||(n={}),"pretty"in n&&(this.pretty=n.pretty),"allowEmpty"in n&&(this.allowEmpty=n.allowEmpty),this.pretty?(this.indent="indent"in n?n.indent:" ",this.newline="newline"in n?n.newline:`
|
|
`,this.offset="offset"in n?n.offset:0,this.dontprettytextnodes="dontprettytextnodes"in n?n.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in n?n.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,i=n.writer||{};for(r in i)!t.call(i,r)||(o=i[r],this[r]=o);return this},e.prototype.space=function(n){var r;return this.pretty?(r=(n||0)+this.offset+1,r>0?new Array(r).join(this.indent):""):""},e}()}).call(qe);(function(){var t,e,n,r,i,o,a,s,c,u,l,h,f,d,p=function(y,R){for(var m in R)g.call(R,m)&&(y[m]=R[m]);function v(){this.constructor=y}return v.prototype=R.prototype,y.prototype=new v,y.__super__=R.prototype,y},g={}.hasOwnProperty;a=$s.exports,s=js.exports,t=Js.exports,e=zs.exports,u=Gs.exports,h=rc.exports,f=ic.exports,l=oc.exports,c=$u.exports,n=qs.exports,r=tc.exports,i=ec.exports,o=nc.exports,d=Jf.exports,ju.exports=function(y){p(R,y);function R(m){R.__super__.constructor.call(this,m)}return R.prototype.document=function(m){var v,x,_,E,N;for(this.textispresent=!1,E="",N=m.children,x=0,_=N.length;x<_;x++)v=N[x],!(v instanceof c)&&(E+=function(){switch(!1){case!(v instanceof a):return this.declaration(v);case!(v instanceof s):return this.docType(v);case!(v instanceof e):return this.comment(v);case!(v instanceof l):return this.processingInstruction(v);default:return this.element(v,0)}}.call(this));return this.pretty&&E.slice(-this.newline.length)===this.newline&&(E=E.slice(0,-this.newline.length)),E},R.prototype.attribute=function(m){return" "+m.name+'="'+m.value+'"'},R.prototype.cdata=function(m,v){return this.space(v)+"<![CDATA["+m.text+"]]>"+this.newline},R.prototype.comment=function(m,v){return this.space(v)+"<!-- "+m.text+" -->"+this.newline},R.prototype.declaration=function(m,v){var x;return x=this.space(v),x+='<?xml version="'+m.version+'"',m.encoding!=null&&(x+=' encoding="'+m.encoding+'"'),m.standalone!=null&&(x+=' standalone="'+m.standalone+'"'),x+=this.spacebeforeslash+"?>",x+=this.newline,x},R.prototype.docType=function(m,v){var x,_,E,N,U;if(v||(v=0),N=this.space(v),N+="<!DOCTYPE "+m.root().name,m.pubID&&m.sysID?N+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(N+=' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(N+=" [",N+=this.newline,U=m.children,_=0,E=U.length;_<E;_++)x=U[_],N+=function(){switch(!1){case!(x instanceof n):return this.dtdAttList(x,v+1);case!(x instanceof r):return this.dtdElement(x,v+1);case!(x instanceof i):return this.dtdEntity(x,v+1);case!(x instanceof o):return this.dtdNotation(x,v+1);case!(x instanceof t):return this.cdata(x,v+1);case!(x instanceof e):return this.comment(x,v+1);case!(x instanceof l):return this.processingInstruction(x,v+1);default:throw new Error("Unknown DTD node type: "+x.constructor.name)}}.call(this);N+="]"}return N+=this.spacebeforeslash+">",N+=this.newline,N},R.prototype.element=function(m,v){var x,_,E,N,U,O,Q,ne,T,I,b,M,C;v||(v=0),C=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),M=this.space(v),ne="",ne+=M+"<"+m.name,T=m.attributes;for(Q in T)!g.call(T,Q)||(x=T[Q],ne+=this.attribute(x));if(m.children.length===0||m.children.every(function(F){return F.value===""}))this.allowEmpty?ne+="></"+m.name+">"+this.newline:ne+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)ne+=">",ne+=m.children[0].value,ne+="</"+m.name+">"+this.newline;else{if(this.dontprettytextnodes){for(I=m.children,E=0,U=I.length;E<U;E++)if(_=I[E],_.value!=null){this.textispresent++,C=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,M=this.space(v)),ne+=">"+this.newline,b=m.children,N=0,O=b.length;N<O;N++)_=b[N],ne+=function(){switch(!1){case!(_ instanceof t):return this.cdata(_,v+1);case!(_ instanceof e):return this.comment(_,v+1);case!(_ instanceof u):return this.element(_,v+1);case!(_ instanceof h):return this.raw(_,v+1);case!(_ instanceof f):return this.text(_,v+1);case!(_ instanceof l):return this.processingInstruction(_,v+1);case!(_ instanceof c):return"";default:throw new Error("Unknown XML node type: "+_.constructor.name)}}.call(this);C&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),ne+=M+"</"+m.name+">"+this.newline}return ne},R.prototype.processingInstruction=function(m,v){var x;return x=this.space(v)+"<?"+m.target,m.value&&(x+=" "+m.value),x+=this.spacebeforeslash+"?>"+this.newline,x},R.prototype.raw=function(m,v){return this.space(v)+m.value+this.newline},R.prototype.text=function(m,v){return this.space(v)+m.value+this.newline},R.prototype.dtdAttList=function(m,v){var x;return x=this.space(v)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType,m.defaultValueType!=="#DEFAULT"&&(x+=" "+m.defaultValueType),m.defaultValue&&(x+=' "'+m.defaultValue+'"'),x+=this.spacebeforeslash+">"+this.newline,x},R.prototype.dtdElement=function(m,v){return this.space(v)+"<!ELEMENT "+m.name+" "+m.value+this.spacebeforeslash+">"+this.newline},R.prototype.dtdEntity=function(m,v){var x;return x=this.space(v)+"<!ENTITY",m.pe&&(x+=" %"),x+=" "+m.name,m.value?x+=' "'+m.value+'"':(m.pubID&&m.sysID?x+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(x+=' SYSTEM "'+m.sysID+'"'),m.nData&&(x+=" NDATA "+m.nData)),x+=this.spacebeforeslash+">"+this.newline,x},R.prototype.dtdNotation=function(m,v){var x;return x=this.space(v)+"<!NOTATION "+m.name,m.pubID&&m.sysID?x+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.pubID?x+=' PUBLIC "'+m.pubID+'"':m.sysID&&(x+=' SYSTEM "'+m.sysID+'"'),x+=this.spacebeforeslash+">"+this.newline,x},R.prototype.openNode=function(m,v){var x,_,E,N;if(v||(v=0),m instanceof u){E=this.space(v)+"<"+m.name,N=m.attributes;for(_ in N)!g.call(N,_)||(x=N[_],E+=this.attribute(x));return E+=(m.children?">":"/>")+this.newline,E}else return E=this.space(v)+"<!DOCTYPE "+m.rootNodeName,m.pubID&&m.sysID?E+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(E+=' SYSTEM "'+m.sysID+'"'),E+=(m.children?" [":">")+this.newline,E},R.prototype.closeNode=function(m,v){switch(v||(v=0),!1){case!(m instanceof u):return this.space(v)+"</"+m.name+">"+this.newline;case!(m instanceof s):return this.space(v)+"]>"+this.newline}},R}(d)}).call(qe);(function(){var t,e,n,r,i=function(a,s){for(var c in s)o.call(s,c)&&(a[c]=s[c]);function u(){this.constructor=a}return u.prototype=s.prototype,a.prototype=new u,a.__super__=s.prototype,a},o={}.hasOwnProperty;r=Zn.isPlainObject,t=Qn.exports,n=Gf.exports,e=ju.exports,Qy.exports=function(a){i(s,a);function s(c){s.__super__.constructor.call(this,null),this.name="?xml",c||(c={}),c.writer||(c.writer=new e),this.options=c,this.stringify=new n(c),this.isDocument=!0}return s.prototype.end=function(c){var u;return c?r(c)&&(u=c,c=this.options.writer.set(u)):c=this.options.writer,c.document(this)},s.prototype.toString=function(c){return this.options.writer.set(c).document(this)},s}(t)}).call(qe);var Ky={exports:{}};(function(){var t,e,n,r,i,o,a,s,c,u,l,h,f,d,p,g,y,R,m,v,x={}.hasOwnProperty;v=Zn,R=v.isObject,y=v.isFunction,m=v.isPlainObject,g=v.getValue,u=Gs.exports,e=Js.exports,n=zs.exports,h=rc.exports,p=ic.exports,l=oc.exports,s=$s.exports,c=js.exports,r=qs.exports,o=ec.exports,i=tc.exports,a=nc.exports,t=Hf.exports,d=Gf.exports,f=ju.exports,Ky.exports=function(){function _(E,N,U){var O;this.name="?xml",E||(E={}),E.writer?m(E.writer)&&(O=E.writer,E.writer=new f(O)):E.writer=new f(E),this.options=E,this.writer=E.writer,this.stringify=new d(E),this.onDataCallback=N||function(){},this.onEndCallback=U||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return _.prototype.node=function(E,N,U){var O,Q;if(E==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(E));return this.openCurrent(),E=g(E),N===null&&U==null&&(O=[{},null],N=O[0],U=O[1]),N==null&&(N={}),N=g(N),R(N)||(Q=[N,U],U=Q[0],N=Q[1]),this.currentNode=new u(this,E,N),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,U!=null&&this.text(U),this},_.prototype.element=function(E,N,U){return this.currentNode&&this.currentNode instanceof c?this.dtdElement.apply(this,arguments):this.node(E,N,U)},_.prototype.attribute=function(E,N){var U,O;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(E));if(E!=null&&(E=g(E)),R(E))for(U in E)!x.call(E,U)||(O=E[U],this.attribute(U,O));else y(N)&&(N=N.apply()),(!this.options.skipNullAttributes||N!=null)&&(this.currentNode.attributes[E]=new t(this,E,N));return this},_.prototype.text=function(E){var N;return this.openCurrent(),N=new p(this,E),this.onData(this.writer.text(N,this.currentLevel+1),this.currentLevel+1),this},_.prototype.cdata=function(E){var N;return this.openCurrent(),N=new e(this,E),this.onData(this.writer.cdata(N,this.currentLevel+1),this.currentLevel+1),this},_.prototype.comment=function(E){var N;return this.openCurrent(),N=new n(this,E),this.onData(this.writer.comment(N,this.currentLevel+1),this.currentLevel+1),this},_.prototype.raw=function(E){var N;return this.openCurrent(),N=new h(this,E),this.onData(this.writer.raw(N,this.currentLevel+1),this.currentLevel+1),this},_.prototype.instruction=function(E,N){var U,O,Q,ne,T;if(this.openCurrent(),E!=null&&(E=g(E)),N!=null&&(N=g(N)),Array.isArray(E))for(U=0,ne=E.length;U<ne;U++)O=E[U],this.instruction(O);else if(R(E))for(O in E)!x.call(E,O)||(Q=E[O],this.instruction(O,Q));else y(N)&&(N=N.apply()),T=new l(this,E,N),this.onData(this.writer.processingInstruction(T,this.currentLevel+1),this.currentLevel+1);return this},_.prototype.declaration=function(E,N,U){var O;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return O=new s(this,E,N,U),this.onData(this.writer.declaration(O,this.currentLevel+1),this.currentLevel+1),this},_.prototype.doctype=function(E,N,U){if(this.openCurrent(),E==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 c(this,N,U),this.currentNode.rootNodeName=E,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},_.prototype.dtdElement=function(E,N){var U;return this.openCurrent(),U=new i(this,E,N),this.onData(this.writer.dtdElement(U,this.currentLevel+1),this.currentLevel+1),this},_.prototype.attList=function(E,N,U,O,Q){var ne;return this.openCurrent(),ne=new r(this,E,N,U,O,Q),this.onData(this.writer.dtdAttList(ne,this.currentLevel+1),this.currentLevel+1),this},_.prototype.entity=function(E,N){var U;return this.openCurrent(),U=new o(this,!1,E,N),this.onData(this.writer.dtdEntity(U,this.currentLevel+1),this.currentLevel+1),this},_.prototype.pEntity=function(E,N){var U;return this.openCurrent(),U=new o(this,!0,E,N),this.onData(this.writer.dtdEntity(U,this.currentLevel+1),this.currentLevel+1),this},_.prototype.notation=function(E,N){var U;return this.openCurrent(),U=new a(this,E,N),this.onData(this.writer.dtdNotation(U,this.currentLevel+1),this.currentLevel+1),this},_.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},_.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},_.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},_.prototype.openNode=function(E){if(!E.isOpen)return!this.root&&this.currentLevel===0&&E instanceof u&&(this.root=E),this.onData(this.writer.openNode(E,this.currentLevel),this.currentLevel),E.isOpen=!0},_.prototype.closeNode=function(E){if(!E.isClosed)return this.onData(this.writer.closeNode(E,this.currentLevel),this.currentLevel),E.isClosed=!0},_.prototype.onData=function(E,N){return this.documentStarted=!0,this.onDataCallback(E,N+1)},_.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},_.prototype.debugInfo=function(E){return E==null?"":"node: <"+E+">"},_.prototype.ele=function(){return this.element.apply(this,arguments)},_.prototype.nod=function(E,N,U){return this.node(E,N,U)},_.prototype.txt=function(E){return this.text(E)},_.prototype.dat=function(E){return this.cdata(E)},_.prototype.com=function(E){return this.comment(E)},_.prototype.ins=function(E,N){return this.instruction(E,N)},_.prototype.dec=function(E,N,U){return this.declaration(E,N,U)},_.prototype.dtd=function(E,N,U){return this.doctype(E,N,U)},_.prototype.e=function(E,N,U){return this.element(E,N,U)},_.prototype.n=function(E,N,U){return this.node(E,N,U)},_.prototype.t=function(E){return this.text(E)},_.prototype.d=function(E){return this.cdata(E)},_.prototype.c=function(E){return this.comment(E)},_.prototype.r=function(E){return this.raw(E)},_.prototype.i=function(E,N){return this.instruction(E,N)},_.prototype.att=function(){return this.currentNode&&this.currentNode instanceof c?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},_.prototype.a=function(){return this.currentNode&&this.currentNode instanceof c?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},_.prototype.ent=function(E,N){return this.entity(E,N)},_.prototype.pent=function(E,N){return this.pEntity(E,N)},_.prototype.not=function(E,N){return this.notation(E,N)},_}()}).call(qe);var Hy={exports:{}};(function(){var t,e,n,r,i,o,a,s,c,u,l,h,f,d,p=function(y,R){for(var m in R)g.call(R,m)&&(y[m]=R[m]);function v(){this.constructor=y}return v.prototype=R.prototype,y.prototype=new v,y.__super__=R.prototype,y},g={}.hasOwnProperty;a=$s.exports,s=js.exports,t=Js.exports,e=zs.exports,u=Gs.exports,h=rc.exports,f=ic.exports,l=oc.exports,c=$u.exports,n=qs.exports,r=tc.exports,i=ec.exports,o=nc.exports,d=Jf.exports,Hy.exports=function(y){p(R,y);function R(m,v){R.__super__.constructor.call(this,v),this.stream=m}return R.prototype.document=function(m){var v,x,_,E,N,U,O,Q;for(U=m.children,x=0,E=U.length;x<E;x++)v=U[x],v.isLastRootNode=!1;for(m.children[m.children.length-1].isLastRootNode=!0,O=m.children,Q=[],_=0,N=O.length;_<N;_++)if(v=O[_],!(v instanceof c))switch(!1){case!(v instanceof a):Q.push(this.declaration(v));break;case!(v instanceof s):Q.push(this.docType(v));break;case!(v instanceof e):Q.push(this.comment(v));break;case!(v instanceof l):Q.push(this.processingInstruction(v));break;default:Q.push(this.element(v))}return Q},R.prototype.attribute=function(m){return this.stream.write(" "+m.name+'="'+m.value+'"')},R.prototype.cdata=function(m,v){return this.stream.write(this.space(v)+"<![CDATA["+m.text+"]]>"+this.endline(m))},R.prototype.comment=function(m,v){return this.stream.write(this.space(v)+"<!-- "+m.text+" -->"+this.endline(m))},R.prototype.declaration=function(m,v){return this.stream.write(this.space(v)),this.stream.write('<?xml version="'+m.version+'"'),m.encoding!=null&&this.stream.write(' encoding="'+m.encoding+'"'),m.standalone!=null&&this.stream.write(' standalone="'+m.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(m))},R.prototype.docType=function(m,v){var x,_,E,N;if(v||(v=0),this.stream.write(this.space(v)),this.stream.write("<!DOCTYPE "+m.root().name),m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(m)),N=m.children,_=0,E=N.length;_<E;_++)switch(x=N[_],!1){case!(x instanceof n):this.dtdAttList(x,v+1);break;case!(x instanceof r):this.dtdElement(x,v+1);break;case!(x instanceof i):this.dtdEntity(x,v+1);break;case!(x instanceof o):this.dtdNotation(x,v+1);break;case!(x instanceof t):this.cdata(x,v+1);break;case!(x instanceof e):this.comment(x,v+1);break;case!(x instanceof l):this.processingInstruction(x,v+1);break;default:throw new Error("Unknown DTD node type: "+x.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(m))},R.prototype.element=function(m,v){var x,_,E,N,U,O,Q,ne;v||(v=0),ne=this.space(v),this.stream.write(ne+"<"+m.name),O=m.attributes;for(U in O)!g.call(O,U)||(x=O[U],this.attribute(x));if(m.children.length===0||m.children.every(function(T){return T.value===""}))this.allowEmpty?this.stream.write("></"+m.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)this.stream.write(">"),this.stream.write(m.children[0].value),this.stream.write("</"+m.name+">");else{for(this.stream.write(">"+this.newline),Q=m.children,E=0,N=Q.length;E<N;E++)switch(_=Q[E],!1){case!(_ instanceof t):this.cdata(_,v+1);break;case!(_ instanceof e):this.comment(_,v+1);break;case!(_ instanceof u):this.element(_,v+1);break;case!(_ instanceof h):this.raw(_,v+1);break;case!(_ instanceof f):this.text(_,v+1);break;case!(_ instanceof l):this.processingInstruction(_,v+1);break;case!(_ instanceof c):break;default:throw new Error("Unknown XML node type: "+_.constructor.name)}this.stream.write(ne+"</"+m.name+">")}return this.stream.write(this.endline(m))},R.prototype.processingInstruction=function(m,v){return this.stream.write(this.space(v)+"<?"+m.target),m.value&&this.stream.write(" "+m.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(m))},R.prototype.raw=function(m,v){return this.stream.write(this.space(v)+m.value+this.endline(m))},R.prototype.text=function(m,v){return this.stream.write(this.space(v)+m.value+this.endline(m))},R.prototype.dtdAttList=function(m,v){return this.stream.write(this.space(v)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType),m.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+m.defaultValueType),m.defaultValue&&this.stream.write(' "'+m.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},R.prototype.dtdElement=function(m,v){return this.stream.write(this.space(v)+"<!ELEMENT "+m.name+" "+m.value),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},R.prototype.dtdEntity=function(m,v){return this.stream.write(this.space(v)+"<!ENTITY"),m.pe&&this.stream.write(" %"),this.stream.write(" "+m.name),m.value?this.stream.write(' "'+m.value+'"'):(m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),m.nData&&this.stream.write(" NDATA "+m.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},R.prototype.dtdNotation=function(m,v){return this.stream.write(this.space(v)+"<!NOTATION "+m.name),m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.pubID?this.stream.write(' PUBLIC "'+m.pubID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},R.prototype.endline=function(m){return m.isLastRootNode?"":this.newline},R}(d)}).call(qe);(function(){var t,e,n,r,i,o,a;a=Zn,i=a.assign,o=a.isFunction,t=Qy.exports,e=Ky.exports,r=ju.exports,n=Hy.exports,ds.create=function(s,c,u,l){var h,f;if(s==null)throw new Error("Root element needs a name.");return l=i({},c,u,l),h=new t(l),f=h.element(s),l.headless||(h.declaration(l),(l.pubID!=null||l.sysID!=null)&&h.doctype(l)),f},ds.begin=function(s,c,u){var l;return o(s)&&(l=[s,c],c=l[0],u=l[1],s={}),c?new e(s,c,u):new t(s)},ds.stringWriter=function(s){return new r(s)},ds.streamWriter=function(s,c){return new n(s,c)}}).call(qe);var S0=Kt.exports,WL=ds;Zy.writeString=XL;function XL(t,e){var n=S0.invert(e),r={element:o,text:VL};function i(c,u){return r[u.type](c,u)}function o(c,u){var l=c.element(a(u.name),u.attributes);u.children.forEach(function(h){i(l,h)})}function a(c){var u=/^\{(.*)\}(.*)$/.exec(c);if(u){var l=n[u[1]];return l+(l===""?"":":")+u[2]}else return c}function s(c){var u=WL.create(a(c.name),{version:"1.0",encoding:"UTF-8",standalone:!0});return S0.forEach(e,function(l,h){var f="xmlns"+(h===""?"":":"+h);u.attribute(f,l)}),c.children.forEach(function(l){i(u,l)}),u.end()}return s(t)}function VL(t,e){t.text(e.value)}var zf=ks;To.Element=zf.Element;To.element=zf.element;To.text=zf.text;To.readString=hy.readString;To.writeString=Zy.writeString;var YL=Kt.exports,BL=vn,kL=To;Cf.read=Gy;Cf.readXmlFromZipFile=QL;var ZL={"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 Gy(t){return kL.readString(t,ZL).then(function(e){return Jy(e)[0]})}function QL(t,e){return t.exists(e)?t.read(e,"utf-8").then(KL).then(Gy):BL.resolve(null)}function KL(t){return t.replace(/^\uFEFF/g,"")}function Jy(t){return t.type==="element"?t.name==="mc:AlternateContent"?t.first("mc:Fallback").children:(t.children=YL.flatten(t.children.map(Jy,!0)),[t]):[t]}var $f={},Xi={},jf={};Object.defineProperty(jf,"__esModule",{value:!0});var HL=[{"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"}];jf.default=HL;var GL=qe&&qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.hex=Xi.dec=Xi.codePoint=void 0;var JL=GL(jf),zy={},zL=String.fromCodePoint?String.fromCodePoint:eM;for(var Yh=0,D0=JL.default;Yh<D0.length;Yh++){var Bh=D0[Yh],_0=parseInt(Bh["Unicode dec"],10),$L={codePoint:_0,string:zL(_0)};zy[Bh["Typeface name"].toUpperCase()+"_"+Bh["Dingbat dec"]]=$L}function qf(t,e){return zy[t.toUpperCase()+"_"+e]}Xi.codePoint=qf;function jL(t,e){return qf(t,parseInt(e,10))}Xi.dec=jL;function qL(t,e){return qf(t,parseInt(e,16))}Xi.hex=qL;function eM(t){if(t<=65535)return String.fromCharCode(t);var e=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(e,n)}var ep={};ep.uriToZipEntryName=tM;ep.replaceFragment=nM;function tM(t,e){return e.charAt(0)==="/"?e.substr(1):t+"/"+e}function nM(t,e){var n=t.indexOf("#");return n!==-1&&(t=t.substring(0,n)),t+"#"+e}$f.createBodyReader=rM;$f._readNumberingProperties=jy;var O0=Xi,Sr=Kt.exports,Gt=ut,$y=gr.Result,ui=gr.warning,E0=ep;function rM(t){return{readXmlElement:function(e){return new I0(t).readXmlElement(e)},readXmlElements:function(e){return new I0(t).readXmlElements(e)}}}function I0(t){var e=[],n=[],r=[],i=t.relationships,o=t.contentTypes,a=t.docxFile,s=t.files,c=t.numbering,u=t.styles;function l(k){var G=k.map(h);return N0(G)}function h(k){if(k.type==="element"){var G=b[k.name];if(G)return G(k);if(!Object.prototype.hasOwnProperty.call(oM,k.name)){var H=ui("An unrecognised element was ignored: "+k.name);return rs([H])}}return is()}function f(k){return R(k).map(function(G){return{type:"paragraphProperties",styleId:G.styleId,styleName:G.name,alignment:k.firstOrEmpty("w:jc").attributes["w:val"],numbering:jy(G.styleId,k.firstOrEmpty("w:numPr"),c),indent:d(k.firstOrEmpty("w:ind"))}})}function d(k){return{start:k.attributes["w:start"]||k.attributes["w:left"],end:k.attributes["w:end"]||k.attributes["w:right"],firstLine:k.attributes["w:firstLine"],hanging:k.attributes["w:hanging"]}}function p(k){return m(k).map(function(G){var H=k.firstOrEmpty("w:sz").attributes["w:val"],te=/^[0-9]+$/.test(H)?parseInt(H,10)/2:null;return{type:"runProperties",styleId:G.styleId,styleName:G.name,verticalAlignment:k.firstOrEmpty("w:vertAlign").attributes["w:val"],font:k.firstOrEmpty("w:rFonts").attributes["w:ascii"],fontSize:te,isBold:y(k.first("w:b")),isUnderline:g(k.first("w:u")),isItalic:y(k.first("w:i")),isStrikethrough:y(k.first("w:strike")),isAllCaps:y(k.first("w:caps")),isSmallCaps:y(k.first("w:smallCaps"))}})}function g(k){if(k){var G=k.attributes["w:val"];return G!==void 0&&G!=="false"&&G!=="0"&&G!=="none"}else return!1}function y(k){if(k){var G=k.attributes["w:val"];return G!=="false"&&G!=="0"}else return!1}function R(k){return x(k,"w:pStyle","Paragraph",u.findParagraphStyleById)}function m(k){return x(k,"w:rStyle","Run",u.findCharacterStyleById)}function v(k){return x(k,"w:tblStyle","Table",u.findTableStyleById)}function x(k,G,H,te){var pe=[],D=k.first(G),oe=null,W=null;if(D&&(oe=D.attributes["w:val"],oe)){var w=te(oe);w?W=w.name:pe.push(X(H,oe))}return Vc({styleId:oe,name:W},pe)}var _={type:"unknown"};function E(k){var G=k.attributes["w:fldCharType"];if(G==="begin")e.push(_),n=[];else if(G==="end")e.pop();else if(G==="separate"){var H=U(n.join("")),te=H===null?_:{type:"hyperlink",options:H};e.pop(),e.push(te)}return is()}function N(){var k=Sr.last(e.filter(function(G){return G.type==="hyperlink"}));return k?k.options:null}function U(k){var G=/\s*HYPERLINK "(.*)"/.exec(k);if(G)return{href:G[1]};var H=/\s*HYPERLINK\s+\\l\s+"(.*)"/.exec(k);return H?{anchor:H[1]}:null}function O(k){return n.push(k.text()),is()}function Q(k){var G=k.attributes["w:font"],H=k.attributes["w:char"],te=O0.hex(G,H);return te==null&&/^F0..$/.test(H)&&(te=O0.hex(G,H.substring(2))),te==null?rs([ui("A w:sym element with an unsupported character was ignored: char "+H+" in font "+G)]):yr(new Gt.Text(te.string))}function ne(k){return function(G){var H=G.attributes["w:id"];return yr(new Gt.NoteReference({noteType:k,noteId:H}))}}function T(k){return yr(Gt.commentReference({commentId:k.attributes["w:id"]}))}function I(k){return l(k.children)}var b={"w:p":function(k){var G=k.firstOrEmpty("w:pPr"),H=!!G.firstOrEmpty("w:rPr").first("w:del");if(H)return k.children.forEach(function(pe){r.push(pe)}),is();var te=k.children;return r.length>0&&(te=r.concat(te),r=[]),_n.map(f(G),l(te),function(pe,D){return new Gt.Paragraph(D,pe)}).insertExtra()},"w:r":function(k){return _n.map(p(k.firstOrEmpty("w:rPr")),l(k.children),function(G,H){var te=N();return te!==null&&(H=[new Gt.Hyperlink(H,te)]),new Gt.Run(H,G)})},"w:fldChar":E,"w:instrText":O,"w:t":function(k){return yr(new Gt.Text(k.text()))},"w:tab":function(k){return yr(new Gt.Tab)},"w:noBreakHyphen":function(){return yr(new Gt.Text("\u2011"))},"w:softHyphen":function(k){return yr(new Gt.Text("\xAD"))},"w:sym":Q,"w:hyperlink":function(k){var G=k.attributes["r:id"],H=k.attributes["w:anchor"];return l(k.children).map(function(te){function pe(oe){var W=k.attributes["w:tgtFrame"]||null;return new Gt.Hyperlink(te,Sr.extend({targetFrame:W},oe))}if(G){var D=i.findTargetByRelationshipId(G);return H&&(D=E0.replaceFragment(D,H)),pe({href:D})}else return H?pe({anchor:H}):te})},"w:tbl":M,"w:tr":F,"w:tc":A,"w:footnoteReference":ne("footnote"),"w:endnoteReference":ne("endnote"),"w:commentReference":T,"w:br":function(k){var G=k.attributes["w:type"];return G==null||G==="textWrapping"?yr(Gt.lineBreak):G==="page"?yr(Gt.pageBreak):G==="column"?yr(Gt.columnBreak):rs([ui("Unsupported break type: "+G)])},"w:bookmarkStart":function(k){var G=k.attributes["w:name"];return G==="_GoBack"?is():yr(new Gt.BookmarkStart({name:G}))},"mc:AlternateContent":function(k){return I(k.first("mc:Fallback"))},"w:sdt":function(k){return l(k.firstOrEmpty("w:sdtContent").children)},"w:ins":I,"w:object":I,"w:smartTag":I,"w:drawing":I,"w:pict":function(k){return I(k).toExtra()},"v:roundrect":I,"v:shape":I,"v:textbox":I,"w:txbxContent":I,"wp:inline":V,"wp:anchor":V,"v:imagedata":se,"v:group":I,"v:rect":I};return{readXmlElement:h,readXmlElements:l};function M(k){var G=C(k.firstOrEmpty("w:tblPr"));return l(k.children).flatMap($).flatMap(function(H){return G.map(function(te){return Gt.Table(H,te)})})}function C(k){return v(k).map(function(G){return{styleId:G.styleId,styleName:G.name}})}function F(k){var G=k.firstOrEmpty("w:trPr"),H=!!G.first("w:tblHeader");return l(k.children).map(function(te){return Gt.TableRow(te,{isHeader:H})})}function A(k){return l(k.children).map(function(G){var H=k.firstOrEmpty("w:tcPr"),te=H.firstOrEmpty("w:gridSpan").attributes["w:val"],pe=te?parseInt(te,10):1,D=Gt.TableCell(G,{colSpan:pe});return D._vMerge=B(H),D})}function B(k){var G=k.first("w:vMerge");if(G){var H=G.attributes["w:val"];return H==="continue"||!H}else return null}function $(k){var G=Sr.any(k,function(pe){return pe.type!==Gt.types.tableRow});if(G)return Vc(k,[ui("unexpected non-row element in table, cell merging may be incorrect")]);var H=Sr.any(k,function(pe){return Sr.any(pe.children,function(D){return D.type!==Gt.types.tableCell})});if(H)return Vc(k,[ui("unexpected non-cell element in table row, cell merging may be incorrect")]);var te={};return k.forEach(function(pe){var D=0;pe.children.forEach(function(oe){oe._vMerge&&te[D]?te[D].rowSpan++:(te[D]=oe,oe._vMerge=!1),D+=oe.colSpan})}),k.forEach(function(pe){pe.children=pe.children.filter(function(D){return!D._vMerge}),pe.children.forEach(function(D){delete D._vMerge})}),yr(k)}function V(k){var G=k.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return N0(G.map(L.bind(null,k)))}function L(k,G){var H=k.first("wp:docPr").attributes,te=z(H.descr)?H.title:H.descr,pe=q(G);return pe===null?rs([ui("Could not find image file for a:blip element")]):Y(pe,te)}function z(k){return k==null||/^\s*$/.test(k)}function q(k){var G=k.attributes["r:embed"],H=k.attributes["r:link"];if(G)return ae(G);if(H){var te=i.findTargetByRelationshipId(H);return{path:te,read:s.read.bind(s,te)}}else return null}function se(k){var G=k.attributes["r:id"];return G?Y(ae(G),k.attributes["o:title"]):rs([ui("A v:imagedata element without a relationship ID was ignored")])}function ae(k){var G=E0.uriToZipEntryName("word",i.findTargetByRelationshipId(k));return{path:G,read:a.read.bind(a,G)}}function Y(k,G){var H=o.findContentType(k.path),te=Gt.Image({readImage:k.read,altText:G,contentType:H}),pe=iM[H]?[]:ui("Image of type "+H+" is unlikely to display in web browsers");return Vc(te,pe)}function X(k,G){return ui(k+" style with ID "+G+" was referenced but not defined in the document")}}function jy(t,e,n){var r=e.firstOrEmpty("w:ilvl").attributes["w:val"],i=e.firstOrEmpty("w:numId").attributes["w:val"];if(r!==void 0&&i!==void 0)return n.findLevel(i,r);if(t!=null){var o=n.findLevelByParagraphStyleId(t);if(o!=null)return o}return null}var iM={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},oM={"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 rs(t){return new _n(null,null,t)}function is(){return new _n(null)}function yr(t){return new _n(t)}function Vc(t,e){return new _n(t,null,e)}function _n(t,e,n){this.value=t||[],this.extra=e||[],this._result=new $y({element:this.value,extra:e},n),this.messages=this._result.messages}_n.prototype.toExtra=function(){return new _n(null,qu(this.extra,this.value),this.messages)};_n.prototype.insertExtra=function(){var t=this.extra;return t&&t.length?new _n(qu(this.value,t),null,this.messages):this};_n.prototype.map=function(t){var e=this._result.map(function(n){return t(n.element)});return new _n(e.value,this.extra,e.messages)};_n.prototype.flatMap=function(t){var e=this._result.flatMap(function(n){return t(n.element)._result});return new _n(e.value.element,qu(this.extra,e.value.extra),e.messages)};_n.map=function(t,e,n){return new _n(n(t.value,e.value),qu(t.extra,e.extra),t.messages.concat(e.messages))};function N0(t){var e=$y.combine(Sr.pluck(t,"_result"));return new _n(Sr.flatten(Sr.pluck(e.value,"element")),Sr.filter(Sr.flatten(Sr.pluck(e.value,"extra")),aM),e.messages)}function qu(t,e){return Sr.flatten([t,e])}function aM(t){return t}var qy={};qy.DocumentXmlReader=uM;var sM=ut,cM=gr.Result;function uM(t){var e=t.bodyReader;function n(r){var i=r.first("w:body");if(i==null)throw new Error("Could not find the body element: are you sure this is a docx file?");var o=e.readXmlElements(i.children).map(function(a){return new sM.Document(a,{notes:t.notes,comments:t.comments})});return new cM(o.value,o.messages)}return{convertXmlToDocument:n}}var el={};el.readRelationships=lM;el.defaultValue=new tp([]);el.Relationships=tp;function lM(t){var e=[];return t.children.forEach(function(n){if(n.name==="relationships:Relationship"){var r={relationshipId:n.attributes.Id,target:n.attributes.Target,type:n.attributes.Type};e.push(r)}}),new tp(e)}function tp(t){var e={};t.forEach(function(r){e[r.relationshipId]=r.target});var n={};return t.forEach(function(r){n[r.type]||(n[r.type]=[]),n[r.type].push(r.target)}),{findTargetByRelationshipId:function(r){return e[r]},findTargetsByType:function(r){return n[r]||[]}}}var np={};np.readContentTypesFromXml=dM;var hM={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};np.defaultContentTypes=ev({},{});function dM(t){var e={},n={};return t.children.forEach(function(r){if(r.name==="content-types:Default"&&(e[r.attributes.Extension]=r.attributes.ContentType),r.name==="content-types:Override"){var i=r.attributes.PartName;i.charAt(0)==="/"&&(i=i.substring(1)),n[i]=r.attributes.ContentType}}),ev(n,e)}function ev(t,e){return{findContentType:function(n){var r=t[n];if(r)return r;var i=n.split("."),o=i[i.length-1];if(e.hasOwnProperty(o))return e[o];var a=hM[o.toLowerCase()];return a?"image/"+a:null}}}var tl={},Yc=Kt.exports;tl.readNumberingXml=fM;tl.Numbering=rp;tl.defaultNumbering=new rp({},{});function rp(t,e,n){var r=Yc.flatten(Yc.values(e).map(function(s){return Yc.values(s.levels)})),i=Yc.indexBy(r.filter(function(s){return s.paragraphStyleId!=null}),"paragraphStyleId");function o(s,c){var u=t[s];if(u){var l=e[u.abstractNumId];if(l){if(l.numStyleLink==null)return e[u.abstractNumId].levels[c];var h=n.findNumberingStyleById(l.numStyleLink);return o(h.numId,c)}else return null}else return null}function a(s){return i[s]||null}return{findLevel:o,findLevelByParagraphStyleId:a}}function fM(t,e){if(!e||!e.styles)throw new Error("styles is missing");var n=pM(t),r=mM(t);return new rp(r,n,e.styles)}function pM(t){var e={};return t.getElementsByTagName("w:abstractNum").forEach(function(n){var r=n.attributes["w:abstractNumId"];e[r]=gM(n)}),e}function gM(t){var e={};t.getElementsByTagName("w:lvl").forEach(function(r){var i=r.attributes["w:ilvl"],o=r.firstOrEmpty("w:numFmt").attributes["w:val"],a=r.firstOrEmpty("w:pStyle").attributes["w:val"];e[i]={isOrdered:o!=="bullet",level:i,paragraphStyleId:a}});var n=t.firstOrEmpty("w:numStyleLink").attributes["w:val"];return{levels:e,numStyleLink:n}}function mM(t){var e={};return t.getElementsByTagName("w:num").forEach(function(n){var r=n.attributes["w:numId"],i=n.first("w:abstractNumId").attributes["w:val"];e[r]={abstractNumId:i}}),e}var nl={};nl.readStylesXml=RM;nl.Styles=Ps;nl.defaultStyles=new Ps({},{});function Ps(t,e,n,r){return{findParagraphStyleById:function(i){return t[i]},findCharacterStyleById:function(i){return e[i]},findTableStyleById:function(i){return n[i]},findNumberingStyleById:function(i){return r[i]}}}Ps.EMPTY=new Ps({},{},{},{});function RM(t){var e={},n={},r={},i={},o={paragraph:e,character:n,table:r};return t.getElementsByTagName("w:style").forEach(function(a){var s=yM(a);if(s.type==="numbering")i[s.styleId]=bM(a);else{var c=o[s.type];c&&(c[s.styleId]=s)}}),new Ps(e,n,r,i)}function yM(t){var e=t.attributes["w:type"],n=t.attributes["w:styleId"],r=vM(t);return{type:e,styleId:n,name:r}}function vM(t){var e=t.first("w:name");return e?e.attributes["w:val"]:null}function bM(t){var e=t.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{numId:e}}var ip={},xM=ut,wM=gr.Result;ip.createFootnotesReader=tv.bind(qe,"footnote");ip.createEndnotesReader=tv.bind(qe,"endnote");function tv(t,e){function n(o){return wM.combine(o.getElementsByTagName("w:"+t).filter(r).map(i))}function r(o){var a=o.attributes["w:type"];return a!=="continuationSeparator"&&a!=="separator"}function i(o){var a=o.attributes["w:id"];return e.readXmlElements(o.children).map(function(s){return xM.Note({noteType:t,noteId:a,body:s})})}return n}var nv={},TM=ut,SM=gr.Result;function DM(t){function e(r){return SM.combine(r.getElementsByTagName("w:comment").map(n))}function n(r){var i=r.attributes["w:id"];function o(a){return(r.attributes[a]||"").trim()||null}return t.readXmlElements(r.children).map(function(a){return TM.comment({commentId:i,body:a,authorName:o("w:author"),authorInitials:o("w:initials")})})}return e}nv.createCommentsReader=DM;var rv={},_M=vn;rv.Files=OM;function OM(){function t(e){return _M.reject(new Error("could not open external image: '"+e+`'
|
|
cannot open linked files from a web browser`))}return{read:t}}If.read=LM;If._findPartPaths=ov;var EM=vn,IM=ut,kh=gr.Result,_u=Bs,iv=Cf.readXmlFromZipFile,NM=$f.createBodyReader,FM=qy.DocumentXmlReader,Sa=el,F0=np,P0=tl,L0=nl,M0=ip,PM=nv,C0=rv.Files;function LM(t,e){return e=e||{},EM.props({contentTypes:CM(t),partPaths:ov(t),docxFile:t,files:e.path?C0.relativeToFile(e.path):new C0(null)}).also(function(n){return{styles:UM(t,n.partPaths.styles)}}).also(function(n){return{numbering:AM(t,n.partPaths.numbering,n.styles)}}).also(function(n){return{footnotes:Bc(n.partPaths.footnotes,n,function(r,i){return i?M0.createFootnotesReader(r)(i):new kh([])}),endnotes:Bc(n.partPaths.endnotes,n,function(r,i){return i?M0.createEndnotesReader(r)(i):new kh([])}),comments:Bc(n.partPaths.comments,n,function(r,i){return i?PM.createCommentsReader(r)(i):new kh([])})}}).also(function(n){return{notes:n.footnotes.flatMap(function(r){return n.endnotes.map(function(i){return new IM.Notes(r.concat(i))})})}}).then(function(n){return Bc(n.partPaths.mainDocument,n,function(r,i){return n.notes.flatMap(function(o){return n.comments.flatMap(function(a){var s=new FM({bodyReader:r,notes:o,comments:a});return s.convertXmlToDocument(i)})})})})}function ov(t){return WM(t).then(function(e){var n=A0({docxFile:t,relationships:e,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!t.exists(n))throw new Error("Could not find main document part. Are you sure this is a valid .docx file?");return Pa({filename:av(n),readElement:Sa.readRelationships,defaultValue:Sa.defaultValue})(t).then(function(r){function i(o){return A0({docxFile:t,relationships:r,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+o,basePath:_u.splitPath(n).dirname,fallbackPath:"word/"+o+".xml"})}return{mainDocument:n,comments:i("comments"),endnotes:i("endnotes"),footnotes:i("footnotes"),numbering:i("numbering"),styles:i("styles")}})})}function A0(t){var e=t.docxFile,n=t.relationships,r=t.relationshipType,i=t.basePath,o=t.fallbackPath,a=n.findTargetsByType(r),s=a.map(function(u){return MM(_u.joinPath(i,u),"/")}),c=s.filter(function(u){return e.exists(u)});return c.length===0?o:c[0]}function MM(t,e){return t.substring(0,e.length)===e?t.substring(e.length):t}function Pa(t){return function(e){return iv(e,t.filename).then(function(n){return n?t.readElement(n):t.defaultValue})}}function Bc(t,e,n){var r=Pa({filename:av(t),readElement:Sa.readRelationships,defaultValue:Sa.defaultValue});return r(e.docxFile).then(function(i){var o=new NM({relationships:i,contentTypes:e.contentTypes,docxFile:e.docxFile,numbering:e.numbering,styles:e.styles,files:e.files});return iv(e.docxFile,t).then(function(a){return n(o,a)})})}function av(t){var e=_u.splitPath(t);return _u.joinPath(e.dirname,"_rels",e.basename+".rels")}var CM=Pa({filename:"[Content_Types].xml",readElement:F0.readContentTypesFromXml,defaultValue:F0.defaultContentTypes});function AM(t,e,n){return Pa({filename:e,readElement:function(r){return P0.readNumberingXml(r,{styles:n})},defaultValue:P0.defaultNumbering})(t)}function UM(t,e){return Pa({filename:e,readElement:L0.readStylesXml,defaultValue:L0.defaultStyles})(t)}var WM=Pa({filename:"_rels/.rels",readElement:Sa.readRelationships,defaultValue:Sa.defaultValue}),op={},XM=Kt.exports,VM=vn,Ls=To;op.writeStyleMap=BM;op.readStyleMap=QM;var YM="http://schemas.zwobble.org/mammoth/style-map",Ou="mammoth/style-map",sv="/"+Ou;function BM(t,e){return t.write(Ou,e),kM(t).then(function(){return ZM(t)})}function kM(t){var e="word/_rels/document.xml.rels",n="http://schemas.openxmlformats.org/package/2006/relationships",r="{"+n+"}Relationship";return t.read(e,"utf8").then(Ls.readString).then(function(i){var o=i.children;cv(o,r,"Id",{Id:"rMammothStyleMap",Type:YM,Target:sv});var a={"":n};return t.write(e,Ls.writeString(i,a))})}function ZM(t){var e="[Content_Types].xml",n="http://schemas.openxmlformats.org/package/2006/content-types",r="{"+n+"}Override";return t.read(e,"utf8").then(Ls.readString).then(function(i){var o=i.children;cv(o,r,"PartName",{PartName:sv,ContentType:"text/prs.mammoth.style-map"});var a={"":n};return t.write(e,Ls.writeString(i,a))})}function cv(t,e,n,r){var i=XM.find(t,function(o){return o.name===e&&o.attributes[n]===r[n]});i?i.attributes=r:t.push(Ls.element(e,r))}function QM(t){return t.exists(Ou)?t.read(Ou,"utf8"):VM.resolve(null)}var ap={},Ti={},Ar={},Ki={},uv=Ti;function KM(t,e,n){return sp(uv.element(t,e,{fresh:!1}),n)}function HM(t,e,n){var r=uv.element(t,e,{fresh:!0});return sp(r,n)}function sp(t,e){return{type:"element",tag:t,children:e||[]}}function GM(t){return{type:"text",value:t}}var JM={type:"forceWrite"};Ki.freshElement=HM;Ki.nonFreshElement=KM;Ki.elementWithTag=sp;Ki.text=GM;Ki.forceWrite=JM;var zM={br:!0,hr:!0,img:!0};function $M(t){return t.children.length===0&&zM[t.tag.tagName]}Ki.isVoidElement=$M;var U0=Kt.exports,Eu=Ki;function jM(t){return lv(hv(t))}function lv(t){var e=[];return t.map(qM).forEach(function(n){Wd(e,n)}),e}function qM(t){return eC[t.type](t)}var eC={element:tC,text:W0,forceWrite:W0};function tC(t){return Eu.elementWithTag(t.tag,lv(t.children))}function W0(t){return t}function Wd(t,e){var n=t[t.length-1];e.type==="element"&&!e.tag.fresh&&n&&n.type==="element"&&e.tag.matchesElement(n.tag)?(e.tag.separator&&Wd(n.children,Eu.text(e.tag.separator)),e.children.forEach(function(r){Wd(n.children,r)})):t.push(e)}function hv(t){return nC(t,function(e){return rC[e.type](e)})}function nC(t,e){return U0.flatten(U0.map(t,e),!0)}var rC={element:oC,text:aC,forceWrite:iC};function iC(t){return[t]}function oC(t){var e=hv(t.children);return e.length===0&&!Eu.isVoidElement(t)?[]:[Eu.elementWithTag(t.tag,e)]}function aC(t){return t.value.length===0?[]:[t]}var sC=jM,La=Ki;Ar.freshElement=La.freshElement;Ar.nonFreshElement=La.nonFreshElement;Ar.elementWithTag=La.elementWithTag;Ar.text=La.text;Ar.forceWrite=La.forceWrite;Ar.simplify=sC;function dv(t,e){e.forEach(function(n){cC(t,n)})}function cC(t,e){uC[e.type](t,e)}var uC={element:lC,text:hC,forceWrite:function(){}};function lC(t,e){La.isVoidElement(e)?t.selfClosing(e.tag.tagName,e.tag.attributes):(t.open(e.tag.tagName,e.tag.attributes),dv(t,e.children),t.close(e.tag.tagName))}function hC(t,e){t.text(e.value)}Ar.write=dv;var cp=Kt.exports,dC=Ar;Ti.topLevelElement=fC;Ti.elements=up;Ti.element=lp;function fC(t,e){return up([lp(t,e,{fresh:!0})])}function up(t){return new fv(t.map(function(e){return cp.isString(e)?lp(e):e}))}function fv(t){this._elements=t}fv.prototype.wrap=function(e){for(var n=e(),r=this._elements.length-1;r>=0;r--)n=this._elements[r].wrapNodes(n);return n};function lp(t,e,n){return n=n||{},new rl(t,e,n)}function rl(t,e,n){var r={};cp.isArray(t)?(t.forEach(function(i){r[i]=!0}),t=t[0]):r[t]=!0,this.tagName=t,this.tagNames=r,this.attributes=e||{},this.fresh=n.fresh,this.separator=n.separator}rl.prototype.matchesElement=function(t){return this.tagNames[t.tagName]&&cp.isEqual(this.attributes||{},t.attributes||{})};rl.prototype.wrap=function(e){return this.wrapNodes(e())};rl.prototype.wrapNodes=function(e){return[dC.elementWithTag(this,e)]};Ti.empty=up([]);Ti.ignore={wrap:function(){return[]}};var hp={};(function(t){var e=Kt.exports,n=vn,r=Ar;t.imgElement=i;function i(o){return function(a,s){return n.when(o(a)).then(function(c){var u={};return a.altText&&(u.alt=a.altText),e.extend(u,c),[r.freshElement("img",u)]})}}t.inline=t.imgElement,t.dataUri=i(function(o){return o.readAsBase64String().then(function(a){return{src:"data:"+o.contentType+";base64,"+a}})})})(hp);var pv={},gv={},mv=Kt.exports;gv.writer=pC;function pC(t){return t=t||{},t.prettyPrint?gC():Rv()}var kc={div:!0,p:!0,ul:!0,li:!0};function gC(){var t=0,e=" ",n=[],r=!0,i=!1,o=Rv();function a(p,g){kc[p]&&f(),n.push(p),o.open(p,g),kc[p]&&t++,r=!1}function s(p){kc[p]&&(t--,f()),n.pop(),o.close(p)}function c(p){h();var g=d()?p:p.replace(`
|
|
`,`
|
|
`+e);o.text(g)}function u(p,g){f(),o.selfClosing(p,g)}function l(){return n.length===0||kc[n[n.length-1]]}function h(){i||(f(),i=!0)}function f(){if(i=!1,!r&&l()&&!d()){o._append(`
|
|
`);for(var p=0;p<t;p++)o._append(e)}}function d(){return mv.some(n,function(p){return p==="pre"})}return{asString:o.asString,open:a,close:s,text:c,selfClosing:u}}function Rv(){var t=[];function e(c,u){var l=i(u);t.push("<"+c+l+">")}function n(c){t.push("</"+c+">")}function r(c,u){var l=i(u);t.push("<"+c+l+" />")}function i(c){return mv.map(c,function(u,l){return" "+l+'="'+RC(u)+'"'}).join("")}function o(c){t.push(mC(c))}function a(c){t.push(c)}function s(){return t.join("")}return{asString:s,open:e,close:n,text:o,selfClosing:r,_append:a}}function mC(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function RC(t){return t.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}var yv={},yC=Kt.exports;function X0(t){return Iu(t,t)}function Iu(t,e){return function(){return{start:t,end:e}}}function vC(t){var e=t.href||"";return e?{start:"[",end:"]("+e+")",anchorPosition:"before"}:{}}function bC(t){var e=t.src||"",n=t.alt||"";return e||n?{start:""}:{}}function V0(t){return function(e,n){return{start:n?`
|
|
`:"",end:n?"":`
|
|
`,list:{isOrdered:t.isOrdered,indent:n?n.indent+1:0,count:0}}}}function xC(t,e,n){e=e||{indent:0,isOrdered:!1,count:0},e.count++,n.hasClosed=!1;var r=e.isOrdered?e.count+".":"-",i=bv(" ",e.indent)+r+" ";return{start:i,end:function(){if(!n.hasClosed)return n.hasClosed=!0,`
|
|
`}}}var vv={p:Iu("",`
|
|
|
|
`),br:Iu("",`
|
|
`),ul:V0({isOrdered:!1}),ol:V0({isOrdered:!0}),li:xC,strong:X0("__"),em:X0("*"),a:vC,img:bC};(function(){for(var t=1;t<=6;t++)vv["h"+t]=Iu(bv("#",t)+" ",`
|
|
|
|
`)})();function bv(t,e){return new Array(e+1).join(t)}function wC(){var t=[],e=[],n=null,r={};function i(l,h){h=h||{};var f=vv[l]||function(){return{}},d=f(h,n,r);e.push({end:d.end,list:n}),d.list&&(n=d.list);var p=d.anchorPosition==="before";p&&o(h),t.push(d.start||""),p||o(h)}function o(l){l.id&&t.push('<a id="'+l.id+'"></a>')}function a(l){var h=e.pop();n=h.list;var f=yC.isFunction(h.end)?h.end():h.end;t.push(f||"")}function s(l,h){i(l,h),a()}function c(l){t.push(TC(l))}function u(){return t.join("")}return{asString:u,open:i,close:a,text:c,selfClosing:s}}yv.writer=wC;function TC(t){return t.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}var SC=gv,DC=yv;pv.writer=_C;function _C(t){return t=t||{},t.outputFormat==="markdown"?DC.writer():SC.writer(t)}var Pi=Kt.exports,Y0=vn,iu=ut,vr=Ti,Xd=gr,OC=hp,ct=Ar,EC=pv;ap.DocumentConverter=IC;function IC(t){return{convertToHtml:function(e){var n=Pi.indexBy(e.type===iu.types.document?e.comments:[],"commentId"),r=new NC(t,n);return r.convertToHtml(e)}}}function NC(t,e){var n=1,r=[],i=[];t=Pi.extend({ignoreEmptyParagraphs:!0},t);var o=t.idPrefix===void 0?"":t.idPrefix,a=t.ignoreEmptyParagraphs,s=vr.topLevelElement("p"),c=t.styleMap||[];function u(A){var B=[],$=h(A,B,{}),V=[];xv($,function(z){z.type==="deferred"&&V.push(z)});var L={};return Y0.mapSeries(V,function(z){return z.value().then(function(q){L[z.id]=q})}).then(function(){function z(se){return Zh(se,function(ae){return ae.type==="deferred"?L[ae.id]:ae.children?[Pi.extend({},ae,{children:z(ae.children)})]:[ae]})}var q=EC.writer({prettyPrint:t.prettyPrint,outputFormat:t.outputFormat});return ct.write(q,ct.simplify(z($))),new Xd.Result(q.asString(),B)})}function l(A,B,$){return Zh(A,function(V){return h(V,B,$)})}function h(A,B,$){if(!$)throw new Error("options not set");var V=F[A.type];return V?V(A,B,$):[]}function f(A,B,$){return d(A,B).wrap(function(){var V=l(A.children,B,$);return a?V:[ct.forceWrite].concat(V)})}function d(A,B){var $=R(A);return $?$.to:(A.styleId&&B.push(B0("paragraph",A)),s)}function p(A,B,$){var V=function(){return l(A.children,B,$)},L=[];A.isSmallCaps&&L.push(g("smallCaps")),A.isAllCaps&&L.push(g("allCaps")),A.isStrikethrough&&L.push(g("strikethrough","s")),A.isUnderline&&L.push(g("underline")),A.verticalAlignment===iu.verticalAlignment.subscript&&L.push(vr.element("sub",{},{fresh:!1})),A.verticalAlignment===iu.verticalAlignment.superscript&&L.push(vr.element("sup",{},{fresh:!1})),A.isItalic&&L.push(g("italic","em")),A.isBold&&L.push(g("bold","strong"));var z=vr.empty,q=R(A);return q?z=q.to:A.styleId&&B.push(B0("run",A)),L.push(z),L.forEach(function(se){V=se.wrap.bind(se,V)}),V()}function g(A,B){var $=y({type:A});return $||(B?vr.element(B,{},{fresh:!1}):vr.empty)}function y(A,B){var $=R(A);return $?$.to:B}function R(A){for(var B=0;B<c.length;B++)if(c[B].from.matches(A))return c[B]}function m(A){return function(B,$){return Y0.attempt(function(){return A(B,$)}).caught(function(V){return $.push(Xd.error(V)),[]})}}function v(A){return _(A.noteType,A.noteId)}function x(A){return E(A.noteType,A.noteId)}function _(A,B){return N(A+"-"+B)}function E(A,B){return N(A+"-ref-"+B)}function N(A){return o+A}var U=vr.elements([vr.element("table",{},{fresh:!0})]);function O(A,B,$){return y(A,U).wrap(function(){return Q(A,B,$)})}function Q(A,B,$){var V=Pi.findIndex(A.children,function(se){return!se.type===iu.types.tableRow||!se.isHeader});V===-1&&(V=A.children.length);var L;if(V===0)L=l(A.children,B,Pi.extend({},$,{isTableHeader:!1}));else{var z=l(A.children.slice(0,V),B,Pi.extend({},$,{isTableHeader:!0})),q=l(A.children.slice(V),B,Pi.extend({},$,{isTableHeader:!1}));L=[ct.freshElement("thead",{},z),ct.freshElement("tbody",{},q)]}return[ct.forceWrite].concat(L)}function ne(A,B,$){var V=l(A.children,B,$);return[ct.freshElement("tr",{},[ct.forceWrite].concat(V))]}function T(A,B,$){var V=$.isTableHeader?"th":"td",L=l(A.children,B,$),z={};return A.colSpan!==1&&(z.colspan=A.colSpan.toString()),A.rowSpan!==1&&(z.rowspan=A.rowSpan.toString()),[ct.freshElement(V,z,[ct.forceWrite].concat(L))]}function I(A,B,$){return y(A,vr.ignore).wrap(function(){var V=e[A.commentId],L=i.length+1,z="["+LC(V)+L+"]";return i.push({label:z,comment:V}),[ct.freshElement("a",{href:"#"+_("comment",A.commentId),id:E("comment",A.commentId)},[ct.text(z)])]})}function b(A,B,$){var V=A.label,L=A.comment,z=l(L.body,B,$).concat([ct.nonFreshElement("p",{},[ct.text(" "),ct.freshElement("a",{href:"#"+E("comment",L.commentId)},[ct.text("\u2191")])])]);return[ct.freshElement("dt",{id:_("comment",L.commentId)},[ct.text("Comment "+V)]),ct.freshElement("dd",{},z)]}function M(A,B,$){return C(A).wrap(function(){return[]})}function C(A){var B=R(A);return B?B.to:A.breakType==="line"?vr.topLevelElement("br"):vr.empty}var F={document:function(A,B,$){var V=l(A.children,B,$),L=r.map(function(q){return A.notes.resolve(q)}),z=l(L,B,$);return V.concat([ct.freshElement("ol",{},z),ct.freshElement("dl",{},Zh(i,function(q){return b(q,B,$)}))])},paragraph:f,run:p,text:function(A,B,$){return[ct.text(A.value)]},tab:function(A,B,$){return[ct.text(" ")]},hyperlink:function(A,B,$){var V=A.anchor?"#"+N(A.anchor):A.href,L={href:V};A.targetFrame!=null&&(L.target=A.targetFrame);var z=l(A.children,B,$);return[ct.nonFreshElement("a",L,z)]},bookmarkStart:function(A,B,$){var V=ct.freshElement("a",{id:N(A.name)},[ct.forceWrite]);return[V]},noteReference:function(A,B,$){r.push(A);var V=ct.freshElement("a",{href:"#"+v(A),id:x(A)},[ct.text("["+n+++"]")]);return[ct.freshElement("sup",{},[V])]},note:function(A,B,$){var V=l(A.body,B,$),L=ct.elementWithTag(vr.element("p",{},{fresh:!1}),[ct.text(" "),ct.freshElement("a",{href:"#"+x(A)},[ct.text("\u2191")])]),z=V.concat([L]);return ct.freshElement("li",{id:v(A)},z)},commentReference:I,comment:b,image:PC(m(t.convertImage||OC.dataUri)),table:O,tableRow:ne,tableCell:T,break:M};return{convertToHtml:u}}var FC=1;function PC(t){return function(e,n,r){return[{type:"deferred",id:FC++,value:function(){return t(e,n,r)}}]}}function B0(t,e){return Xd.warning("Unrecognised "+t+" style: '"+e.styleName+"' (Style ID: "+e.styleId+")")}function Zh(t,e){return Pi.flatten(t.map(e),!0)}function xv(t,e){t.forEach(function(n){e(n),n.children&&xv(n.children,e)})}var LC=ap.commentAuthorLabel=function(e){return e.authorInitials||""},wv={},MC=ut;function Tv(t){if(t.type==="text")return t.value;if(t.type===MC.types.tab)return" ";var e=t.type==="paragraph"?`
|
|
|
|
`:"";return(t.children||[]).map(Tv).join("")+e}wv.convertElementToRawText=Tv;var il={},Ur={},Sv={},Dv={exports:{}},Da=Dv.exports=function(t,e){this._tokens=t,this._startIndex=e||0};Da.prototype.head=function(){return this._tokens[this._startIndex]};Da.prototype.tail=function(t){return new Da(this._tokens,this._startIndex+1)};Da.prototype.toArray=function(){return this._tokens.slice(this._startIndex)};Da.prototype.end=function(){return this._tokens[this._tokens.length-1]};Da.prototype.to=function(t){var e=this.head().source,n=t.head()||t.end();return e.to(n.source)};var CC=Dv.exports;Sv.Parser=function(t){var e=function(n,r){return n(new CC(r))};return{parseTokens:e}};var dp={},_v={};(function(t){t.none=Object.create({value:function(){throw new Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return t.none},flatMap:function(){return t.none},filter:function(){return t.none},toArray:function(){return[]},orElse:e,valueOrElse:e});function e(r){return typeof r=="function"?r():r}t.some=function(r){return new n(r)};var n=function(r){this._value=r};n.prototype.value=function(){return this._value},n.prototype.isNone=function(){return!1},n.prototype.isSome=function(){return!0},n.prototype.map=function(r){return new n(r(this._value))},n.prototype.flatMap=function(r){return r(this._value)},n.prototype.filter=function(r){return r(this._value)?this:t.none},n.prototype.toArray=function(){return[this._value]},n.prototype.orElse=function(r){return this},n.prototype.valueOrElse=function(r){return this._value},t.isOption=function(r){return r===t.none||r instanceof n},t.fromNullable=function(r){return r==null?t.none:new n(r)}})(_v);var fp={failure:function(t,e){if(t.length<1)throw new Error("Failure must have errors");return new In({status:"failure",remaining:e,errors:t})},error:function(t,e){if(t.length<1)throw new Error("Failure must have errors");return new In({status:"error",remaining:e,errors:t})},success:function(t,e,n){return new In({status:"success",value:t,source:n,remaining:e,errors:[]})},cut:function(t){return new In({status:"cut",remaining:t,errors:[]})}},In=function(t){this._value=t.value,this._status=t.status,this._hasValue=t.value!==void 0,this._remaining=t.remaining,this._source=t.source,this._errors=t.errors};In.prototype.map=function(t){return this._hasValue?new In({value:t(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors}):this};In.prototype.changeRemaining=function(t){return new In({value:this._value,status:this._status,remaining:t,source:this._source,errors:this._errors})};In.prototype.isSuccess=function(){return this._status==="success"||this._status==="cut"};In.prototype.isFailure=function(){return this._status==="failure"};In.prototype.isError=function(){return this._status==="error"};In.prototype.isCut=function(){return this._status==="cut"};In.prototype.value=function(){return this._value};In.prototype.remaining=function(){return this._remaining};In.prototype.source=function(){return this._source};In.prototype.errors=function(){return this._errors};var pp={};pp.error=function(t){return new ol(t)};var ol=function(t){this.expected=t.expected,this.actual=t.actual,this._location=t.location};ol.prototype.describe=function(){var t=this._location?this._location.describe()+`:
|
|
`:"";return t+"Expected "+this.expected+`
|
|
but got `+this.actual};ol.prototype.lineNumber=function(){return this._location.lineNumber()};ol.prototype.characterNumber=function(){return this._location.characterNumber()};var Ov={};Ov.fromArray=function(t){var e=0,n=function(){return e<t.length};return new vo({hasNext:n,next:function(){if(n())return t[e++];throw new Error("No more elements")}})};var vo=function(t){this._iterator=t};vo.prototype.map=function(t){var e=this._iterator;return new vo({hasNext:function(){return e.hasNext()},next:function(){return t(e.next())}})};vo.prototype.filter=function(t){var e=this._iterator,n=!1,r=!1,i,o=function(){if(!n)for(n=!0,r=!1;e.hasNext()&&!r;)i=e.next(),r=t(i)};return new vo({hasNext:function(){return o(),r},next:function(){o();var a=i;return n=!1,a}})};vo.prototype.first=function(){var t=this._iterator;return this._iterator.hasNext()?t.next():null};vo.prototype.toArray=function(){for(var t=[];this._iterator.hasNext();)t.push(this._iterator.next());return t};(function(t){var e=Kt.exports,n=_v,r=fp,i=pp,o=Ov;t.token=function(f,d){var p=d!==void 0;return function(g){var y=g.head();if(y&&y.name===f&&(!p||y.value===d))return r.success(y.value,g.tail(),y.source);var R=l({name:f,value:d});return h(g,R)}},t.tokenOfType=function(f){return t.token(f)},t.firstOf=function(f,d){return e.isArray(d)||(d=Array.prototype.slice.call(arguments,1)),function(p){return o.fromArray(d).map(function(g){return g(p)}).filter(function(g){return g.isSuccess()||g.isError()}).first()||h(p,f)}},t.then=function(f,d){return function(p){var g=f(p);return g.map||console.log(g),g.map(d)}},t.sequence=function(){var f=Array.prototype.slice.call(arguments,0),d=function(g){var y=e.foldl(f,function(m,v){var x=m.result,_=m.hasCut;if(!x.isSuccess())return{result:x,hasCut:_};var E=v(x.remaining());if(E.isCut())return{result:x,hasCut:!0};if(E.isSuccess()){var N;v.isCaptured?N=x.value().withValue(v,E.value()):N=x.value();var U=E.remaining(),O=g.to(U);return{result:r.success(N,U,O),hasCut:_}}else return _?{result:r.error(E.errors(),E.remaining()),hasCut:_}:{result:E,hasCut:_}},{result:r.success(new a,g),hasCut:!1}).result,R=g.to(y.remaining());return y.map(function(m){return m.withValue(t.sequence.source,R)})};d.head=function(){var g=e.find(f,p);return t.then(d,t.sequence.extract(g))},d.map=function(g){return t.then(d,function(y){return g.apply(this,y.toArray())})};function p(g){return g.isCaptured}return d};var a=function(f,d){this._values=f||{},this._valuesArray=d||[]};a.prototype.withValue=function(f,d){if(f.captureName&&f.captureName in this._values)throw new Error('Cannot add second value for capture "'+f.captureName+'"');var p=e.clone(this._values);p[f.captureName]=d;var g=this._valuesArray.concat([d]);return new a(p,g)},a.prototype.get=function(f){if(f.captureName in this._values)return this._values[f.captureName];throw new Error('No value for capture "'+f.captureName+'"')},a.prototype.toArray=function(){return this._valuesArray},t.sequence.capture=function(f,d){var p=function(){return f.apply(this,arguments)};return p.captureName=d,p.isCaptured=!0,p},t.sequence.extract=function(f){return function(d){return d.get(f)}},t.sequence.applyValues=function(f){var d=Array.prototype.slice.call(arguments,1);return function(p){var g=d.map(function(y){return p.get(y)});return f.apply(this,g)}},t.sequence.source={captureName:"\u2603source\u2603"},t.sequence.cut=function(){return function(f){return r.cut(f)}},t.optional=function(f){return function(d){var p=f(d);return p.isSuccess()?p.map(n.some):p.isFailure()?r.success(n.none,d):p}},t.zeroOrMoreWithSeparator=function(f,d){return u(f,d,!1)},t.oneOrMoreWithSeparator=function(f,d){return u(f,d,!0)};var s=t.zeroOrMore=function(f){return function(d){for(var p=[],g;(g=f(d))&&g.isSuccess();)d=g.remaining(),p.push(g.value());return g.isError()?g:r.success(p,d)}};t.oneOrMore=function(f){return t.oneOrMoreWithSeparator(f,c)};function c(f){return r.success(null,f)}var u=function(f,d,p){return function(g){var y=f(g);if(y.isSuccess()){var R=t.sequence.capture(f,"main"),m=s(t.then(t.sequence(d,R),t.sequence.extract(R))),v=m(y.remaining());return r.success([y.value()].concat(v.value()),v.remaining())}else return p||y.isError()?y:r.success([],g)}};t.leftAssociative=function(f,d,p){var g;p?g=[{func:p,rule:d}]:g=d,g=g.map(function(R){return t.then(R.rule,function(m){return function(v,x){return R.func(v,m,x)}})});var y=t.firstOf.apply(null,["rules"].concat(g));return function(R){var m=R,v=f(R);if(!v.isSuccess())return v;for(var x=y(v.remaining());x.isSuccess();){var _=x.remaining(),E=m.to(x.remaining()),N=x.value();v=r.success(N(v.value(),E),_,E),x=y(v.remaining())}return x.isError()?x:v}},t.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},t.nonConsuming=function(f){return function(d){return f(d).changeRemaining(d)}};var l=function(f){return f.value?f.name+' "'+f.value+'"':f.name};function h(f,d){var p,g=f.head();return g?p=i.error({expected:d,actual:l(g),location:g.source}):p=i.error({expected:d,actual:"end of tokens"}),r.failure([p],f)}})(dp);var gp={exports:{}},AC=new Proxy({},{get(){throw new Error('Module "util" has been externalized for browser compatibility and cannot be accessed in client code.')}}),UC=Object.freeze(Object.defineProperty({__proto__:null,default:AC},Symbol.toStringTag,{value:"Module"})),WC=Zm(UC),XC=WC;gp.exports=function(t,e){var n={asString:function(){return t},range:function(r,i){return new bo(t,e,r,i)}};return n};var bo=function(t,e,n,r){this._string=t,this._description=e,this._startIndex=n,this._endIndex=r};bo.prototype.to=function(t){return new bo(this._string,this._description,this._startIndex,t._endIndex)};bo.prototype.describe=function(){var t=this._position(),e=this._description?this._description+`
|
|
`:"";return XC.format(`%sLine number: %s
|
|
Character number: %s`,e,t.lineNumber,t.characterNumber)};bo.prototype.lineNumber=function(){return this._position().lineNumber};bo.prototype.characterNumber=function(){return this._position().characterNumber};bo.prototype._position=function(){for(var t=this,e=0,n=function(){return t._string.indexOf(`
|
|
`,e)},r=1;n()!==-1&&n()<this._startIndex;)e=n()+1,r+=1;var i=this._startIndex-e+1;return{lineNumber:r,characterNumber:i}};var Ev=function(t,e,n){this.name=t,this.value=e,n&&(this.source=n)},Iv={};(function(t){var e=dp,n=fp;t.parser=function(o,a,s){var c={rule:f,leftAssociative:d,rightAssociative:p},u=new r(s.map(h)),l=e.firstOf(o,a);function h(R){return{name:R.name,rule:i(R.ruleBuilder.bind(null,c))}}function f(){return g(u)}function d(R){return g(u.untilExclusive(R))}function p(R){return g(u.untilInclusive(R))}function g(R){return y.bind(null,R)}function y(R,m){var v=l(m);return v.isSuccess()?R.apply(v):v}return c};function r(o){function a(h){return new r(o.slice(0,c().indexOf(h)))}function s(h){return new r(o.slice(0,c().indexOf(h)+1))}function c(){return o.map(function(h){return h.name})}function u(h){for(var f,d;;)if(f=l(h.remaining()),f.isSuccess())d=h.source().to(f.source()),h=n.success(f.value()(h.value(),d),f.remaining(),d);else return f.isFailure()?h:f}function l(h){return e.firstOf("infix",o.map(function(f){return f.rule}))(h)}return{apply:u,untilExclusive:a,untilInclusive:s}}t.infix=function(o,a){function s(c){return t.infix(o,function(u){var l=a(u);return function(h){var f=l(h);return f.map(function(d){return function(p,g){return c(p,d,g)}})}})}return{name:o,ruleBuilder:a,map:s}};var i=function(o){var a;return function(s){return a||(a=o()),a(s)}}})(Iv);var Nv={},Qh=Ev,VC=gp.exports;Nv.RegexTokeniser=YC;function YC(t){t=t.map(function(i){return{name:i.name,regex:new RegExp(i.regex.source,"g")}});function e(i,o){for(var a=new VC(i,o),s=0,c=[];s<i.length;){var u=n(i,s,a);s=u.endIndex,c.push(u.token)}return c.push(r(i,a)),c}function n(i,o,a){for(var s=0;s<t.length;s++){var c=t[s].regex;c.lastIndex=o;var u=c.exec(i);if(u){var h=o+u[0].length;if(u.index===o&&h>o){var l=u[1],f=new Qh(t[s].name,l,a.range(o,h));return{token:f,endIndex:h}}}}var h=o+1,f=new Qh("unrecognisedCharacter",i.substring(o,h),a.range(o,h));return{token:f,endIndex:h}}function r(i,o){return new Qh("end",null,o.range(i.length,i.length))}return{tokenise:e}}Ur.Parser=Sv.Parser;Ur.rules=dp;Ur.errors=pp;Ur.results=fp;Ur.StringSource=gp.exports;Ur.Token=Ev;Ur.bottomUp=Iv;Ur.RegexTokeniser=Nv.RegexTokeniser;Ur.rule=function(t){var e;return function(n){return e||(e=t()),e(n)}};var An={};An.paragraph=BC;An.run=kC;An.table=ZC;An.bold=new nr("bold");An.italic=new nr("italic");An.underline=new nr("underline");An.strikethrough=new nr("strikethrough");An.allCaps=new nr("allCaps");An.smallCaps=new nr("smallCaps");An.commentReference=new nr("commentReference");An.lineBreak=new nr("break",{breakType:"line"});An.pageBreak=new nr("break",{breakType:"page"});An.columnBreak=new nr("break",{breakType:"column"});An.equalTo=KC;An.startsWith=HC;function BC(t){return new nr("paragraph",t)}function kC(t){return new nr("run",t)}function ZC(t){return new nr("table",t)}function nr(t,e){e=e||{},this._elementType=t,this._styleId=e.styleId,this._styleName=e.styleName,e.list&&(this._listIndex=e.list.levelIndex,this._listIsOrdered=e.list.isOrdered)}nr.prototype.matches=function(t){return t.type===this._elementType&&(this._styleId===void 0||t.styleId===this._styleId)&&(this._styleName===void 0||t.styleName&&this._styleName.operator(this._styleName.operand,t.styleName))&&(this._listIndex===void 0||QC(t,this._listIndex,this._listIsOrdered))&&(this._breakType===void 0||this._breakType===t.breakType)};function QC(t,e,n){return t.numbering&&t.numbering.level==e&&t.numbering.isOrdered==n}function KC(t){return{operator:GC,operand:t}}function HC(t){return{operator:JC,operand:t}}function GC(t,e){return t.toUpperCase()===e.toUpperCase()}function JC(t,e){return e.toUpperCase().indexOf(t.toUpperCase())===0}var Fv={},zC=Ur,$C=zC.RegexTokeniser;Fv.tokenise=jC;var k0="'((?:\\\\.|[^'])*)";function jC(t){var e="(?:[a-zA-Z\\-_]|\\\\.)",n=new $C([{name:"identifier",regex:new RegExp("("+e+"(?:"+e+"|[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(k0+"'")},{name:"unterminated-string",regex:new RegExp(k0)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]);return n.tokenise(t)}var qC=Kt.exports,Le=Ur,Vn=An,ou=Ti,eA=Fv.tokenise,Kh=gr;il.readHtmlPath=iA;il.readDocumentMatcher=rA;il.readStyle=tA;function tA(t){return mp(dA,t)}function nA(){return Le.rules.sequence(Le.rules.sequence.capture(Pv()),Le.rules.tokenOfType("whitespace"),Le.rules.tokenOfType("arrow"),Le.rules.sequence.capture(Le.rules.optional(Le.rules.sequence(Le.rules.tokenOfType("whitespace"),Le.rules.sequence.capture(Lv())).head())),Le.rules.tokenOfType("end")).map(function(t,e){return{from:t,to:e.valueOrElse(ou.empty)}})}function rA(t){return mp(Pv(),t)}function Pv(){var t=Le.rules.sequence,e=function(_,E){return Le.rules.then(Le.rules.token("identifier",_),function(){return E})},n=e("p",Vn.paragraph),r=e("r",Vn.run),i=Le.rules.firstOf("p or r or table",n,r),o=Le.rules.sequence(Le.rules.tokenOfType("dot"),Le.rules.sequence.cut(),Le.rules.sequence.capture(al)).map(function(_){return{styleId:_}}),a=Le.rules.firstOf("style name matcher",Le.rules.then(Le.rules.sequence(Le.rules.tokenOfType("equals"),Le.rules.sequence.cut(),Le.rules.sequence.capture(xs)).head(),function(_){return{styleName:Vn.equalTo(_)}}),Le.rules.then(Le.rules.sequence(Le.rules.tokenOfType("startsWith"),Le.rules.sequence.cut(),Le.rules.sequence.capture(xs)).head(),function(_){return{styleName:Vn.startsWith(_)}})),s=Le.rules.sequence(Le.rules.tokenOfType("open-square-bracket"),Le.rules.sequence.cut(),Le.rules.token("identifier","style-name"),Le.rules.sequence.capture(a),Le.rules.tokenOfType("close-square-bracket")).head(),c=Le.rules.firstOf("list type",e("ordered-list",{isOrdered:!0}),e("unordered-list",{isOrdered:!1})),u=t(Le.rules.tokenOfType("colon"),t.capture(c),t.cut(),Le.rules.tokenOfType("open-paren"),t.capture(oA),Le.rules.tokenOfType("close-paren")).map(function(_,E){return{list:{isOrdered:_.isOrdered,levelIndex:E-1}}});function l(_){var E=Le.rules.firstOf.apply(Le.rules.firstOf,["matcher suffix"].concat(_)),N=Le.rules.zeroOrMore(E);return Le.rules.then(N,function(U){var O={};return U.forEach(function(Q){qC.extend(O,Q)}),O})}var h=t(t.capture(i),t.capture(l([o,s,u]))).map(function(_,E){return _(E)}),f=t(Le.rules.token("identifier","table"),t.capture(l([o,s]))).map(function(_){return Vn.table(_)}),d=e("b",Vn.bold),p=e("i",Vn.italic),g=e("u",Vn.underline),y=e("strike",Vn.strikethrough),R=e("all-caps",Vn.allCaps),m=e("small-caps",Vn.smallCaps),v=e("comment-reference",Vn.commentReference),x=t(Le.rules.token("identifier","br"),t.cut(),Le.rules.tokenOfType("open-square-bracket"),Le.rules.token("identifier","type"),Le.rules.tokenOfType("equals"),t.capture(xs),Le.rules.tokenOfType("close-square-bracket")).map(function(_){switch(_){case"line":return Vn.lineBreak;case"page":return Vn.pageBreak;case"column":return Vn.columnBreak}});return Le.rules.firstOf("element type",h,f,d,p,g,y,R,m,v,x)}function iA(t){return mp(Lv(),t)}function Lv(){var t=Le.rules.sequence.capture,e=Le.rules.tokenOfType("whitespace"),n=Le.rules.then(Le.rules.optional(Le.rules.sequence(Le.rules.tokenOfType("colon"),Le.rules.token("identifier","fresh"))),function(a){return a.map(function(){return!0}).valueOrElse(!1)}),r=Le.rules.then(Le.rules.optional(Le.rules.sequence(Le.rules.tokenOfType("colon"),Le.rules.token("identifier","separator"),Le.rules.tokenOfType("open-paren"),t(xs),Le.rules.tokenOfType("close-paren")).head()),function(a){return a.valueOrElse("")}),i=Le.rules.oneOrMoreWithSeparator(al,Le.rules.tokenOfType("choice")),o=Le.rules.sequence(t(i),t(Le.rules.zeroOrMore(uA)),t(n),t(r)).map(function(a,s,c,u){var l={},h={};return s.forEach(function(f){f.append&&l[f.name]?l[f.name]+=" "+f.value:l[f.name]=f.value}),c&&(h.fresh=!0),u&&(h.separator=u),ou.element(a,l,h)});return Le.rules.firstOf("html path",Le.rules.then(Le.rules.tokenOfType("bang"),function(){return ou.ignore}),Le.rules.then(Le.rules.zeroOrMoreWithSeparator(o,Le.rules.sequence(e,Le.rules.tokenOfType("gt"),e)),ou.elements))}var al=Le.rules.then(Le.rules.tokenOfType("identifier"),Mv),oA=Le.rules.tokenOfType("integer"),xs=Le.rules.then(Le.rules.tokenOfType("string"),Mv),aA={n:`
|
|
`,r:"\r",t:" "};function Mv(t){return t.replace(/\\(.)/g,function(e,n){return aA[n]||n})}var sA=Le.rules.sequence(Le.rules.tokenOfType("open-square-bracket"),Le.rules.sequence.cut(),Le.rules.sequence.capture(al),Le.rules.tokenOfType("equals"),Le.rules.sequence.capture(xs),Le.rules.tokenOfType("close-square-bracket")).map(function(t,e){return{name:t,value:e,append:!1}}),cA=Le.rules.sequence(Le.rules.tokenOfType("dot"),Le.rules.sequence.cut(),Le.rules.sequence.capture(al)).map(function(t){return{name:"class",value:t,append:!0}}),uA=Le.rules.firstOf("attribute or class",sA,cA);function mp(t,e){var n=eA(e),r=Le.Parser(),i=r.parseTokens(t,n);return i.isSuccess()?Kh.success(i.value()):new Kh.Result(null,[Kh.warning(lA(e,i))])}function lA(t,e){return"Did not understand this style mapping, so ignored it: "+t+`
|
|
`+e.errors().map(hA).join(`
|
|
`)}function hA(t){return"Error was at character number "+t.characterNumber()+": Expected "+t.expected+" but got "+t.actual}var dA=nA(),sl={};sl.readOptions=gA;var Cv=Kt.exports,fA=sl._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"],pA=sl._standardOptions={transformDocument:mA,includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function gA(t){return t=t||{},Cv.extend({},pA,t,{customStyleMap:Z0(t.styleMap),readStyleMap:function(){var e=this.customStyleMap;return this.includeEmbeddedStyleMap&&(e=e.concat(Z0(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(e=e.concat(fA)),e}})}function Z0(t){return t?Cv.isString(t)?t.split(`
|
|
`).map(function(e){return e.trim()}).filter(function(e){return e!==""&&e.charAt(0)!=="#"}):t:[]}function mA(t){return t}var Av={},Q0=vn,RA=Bs;Av.openZip=yA;function yA(t){return t.arrayBuffer?Q0.resolve(RA.openArrayBuffer(t.arrayBuffer)):Q0.reject(new Error("Could not find file in options"))}var Ma={},K0=Kt.exports;Ma.paragraph=vA;Ma.run=bA;Ma._elements=Wv;Ma.getDescendantsOfType=xA;Ma.getDescendants=Xv;function vA(t){return Uv("paragraph",t)}function bA(t){return Uv("run",t)}function Uv(t,e){return Wv(function(n){return n.type===t?e(n):n})}function Wv(t){return function e(n){if(n.children){var r=K0.map(n.children,e);n=K0.extend(n,{children:r})}return t(n)}}function xA(t,e){return Xv(t).filter(function(n){return n.type===e})}function Xv(t){var e=[];return Vv(t,function(n){e.push(n)}),e}function Vv(t,e){t.children&&t.children.forEach(function(n){Vv(n,e),e(n)})}var Yv={},wA=Ti,TA=Ar;Yv.element=SA;function SA(t){return function(e){return TA.elementWithTag(wA.element(t),[e])}}var DA=Kt.exports,Bv=If,Rp=op,_A=ap.DocumentConverter,OA=wv.convertElementToRawText,EA=il.readStyle,IA=sl.readOptions,cl=Av,NA=gr.Result;Cr.convertToHtml=FA;Cr.convertToMarkdown=PA;Cr.convert=yp;Cr.extractRawText=AA;Cr.images=hp;Cr.transforms=Ma;Cr.underline=Yv;Cr.embedStyleMap=UA;Cr.readEmbeddedStyleMap=LA;function FA(t,e){return yp(t,e)}function PA(t,e){var n=Object.create(e||{});return n.outputFormat="markdown",yp(t,n)}function yp(t,e){return e=IA(e),cl.openZip(t).tap(function(n){return Rp.readStyleMap(n).then(function(r){e.embeddedStyleMap=r})}).then(function(n){return Bv.read(n,t).then(function(r){return r.map(e.transformDocument)}).then(function(r){return MA(r,e)})})}function LA(t){return cl.openZip(t).then(Rp.readStyleMap)}function MA(t,e){var n=CA(e.readStyleMap()),r=DA.extend({},e,{styleMap:n.value}),i=new _A(r);return t.flatMapThen(function(o){return n.flatMapThen(function(a){return i.convertToHtml(o)})})}function CA(t){return NA.combine((t||[]).map(EA)).map(function(e){return e.filter(function(n){return!!n})})}function AA(t){return cl.openZip(t).then(Bv.read).then(function(e){return e.map(OA)})}function UA(t,e){return cl.openZip(t).tap(function(n){return Rp.writeStyleMap(n,e)}).then(function(n){return n.toArrayBuffer()}).then(function(n){return{toArrayBuffer:function(){return n},toBuffer:function(){return Buffer.from(n)}}})}Cr.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")`)};async function Hh(t,e){const{arrayBuffer:n}=e,r=await Cr.convertToHtml({arrayBuffer:n});t.executeSetHTML({main:r.value})}var vp={},ul={},rr={};Object.defineProperty(rr,"__esModule",{value:!0});function WA(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var XA=function t(e,n){WA(this,t),this.data=e,this.text=n.text||e,this.options=n};rr.default=XA;Object.defineProperty(ul,"__esModule",{value:!0});ul.CODE39=void 0;var VA=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),YA=rr,BA=kA(YA);function kA(t){return t&&t.__esModule?t:{default:t}}function ZA(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QA(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function KA(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var HA=function(t){KA(e,t);function e(n,r){return ZA(this,e),n=n.toUpperCase(),r.mod43&&(n+=zA($A(n))),QA(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return VA(e,[{key:"encode",value:function(){for(var r=Gh("*"),i=0;i<this.data.length;i++)r+=Gh(this.data[i])+"0";return r+=Gh("*"),{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),e}(BA.default),kv=["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","-","."," ","$","/","+","%","*"],GA=[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 Gh(t){return JA(Zv(t))}function JA(t){return GA[t].toString(2)}function zA(t){return kv[t]}function Zv(t){return kv.indexOf(t)}function $A(t){for(var e=0,n=0;n<t.length;n++)e+=Zv(t[n]);return e=e%43,e}ul.CODE39=HA;var Hr={},bp={},Ca={},Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});var os;function Jh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qv=Vt.SET_A=0,Kv=Vt.SET_B=1,Hv=Vt.SET_C=2;Vt.SHIFT=98;var jA=Vt.START_A=103,qA=Vt.START_B=104,eU=Vt.START_C=105;Vt.MODULO=103;Vt.STOP=106;Vt.FNC1=207;Vt.SET_BY_CODE=(os={},Jh(os,jA,Qv),Jh(os,qA,Kv),Jh(os,eU,Hv),os);Vt.SWAP={101:Qv,100:Kv,99:Hv};Vt.A_START_CHAR=String.fromCharCode(208);Vt.B_START_CHAR=String.fromCharCode(209);Vt.C_START_CHAR=String.fromCharCode(210);Vt.A_CHARS="[\0-_\xC8-\xCF]";Vt.B_CHARS="[ -\x7F\xC8-\xCF]";Vt.C_CHARS="(\xCF*[0-9]{2}\xCF*)";Vt.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(Ca,"__esModule",{value:!0});var tU=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),nU=rr,rU=iU(nU),cr=Vt;function iU(t){return t&&t.__esModule?t:{default:t}}function oU(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aU(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function sU(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var cU=function(t){sU(e,t);function e(n,r){oU(this,e);var i=aU(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n.substring(1),r));return i.bytes=n.split("").map(function(o){return o.charCodeAt(0)}),i}return tU(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.bytes,i=r.shift()-105,o=cr.SET_BY_CODE[i];if(o===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&r.unshift(cr.FNC1);var a=e.next(r,1,o);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(i)+a.result+e.getBar((a.checksum+i)%cr.MODULO)+e.getBar(cr.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var r=this.options.ean128||!1;return typeof r=="string"&&(r=r.toLowerCase()==="true"),r}}],[{key:"getBar",value:function(r){return cr.BARS[r]?cr.BARS[r].toString():""}},{key:"correctIndex",value:function(r,i){if(i===cr.SET_A){var o=r.shift();return o<32?o+64:o-32}else return i===cr.SET_B?r.shift()-32:(r.shift()-48)*10+r.shift()-48}},{key:"next",value:function(r,i,o){if(!r.length)return{result:"",checksum:0};var a=void 0,s=void 0;if(r[0]>=200){s=r.shift()-105;var c=cr.SWAP[s];c!==void 0?a=e.next(r,i+1,c):((o===cr.SET_A||o===cr.SET_B)&&s===cr.SHIFT&&(r[0]=o===cr.SET_A?r[0]>95?r[0]-96:r[0]:r[0]<32?r[0]+96:r[0]),a=e.next(r,i+1,o))}else s=e.correctIndex(r,o),a=e.next(r,i+1,o);var u=e.getBar(s),l=s*i;return{result:u+a.result,checksum:l+a.checksum}}}]),e}(rU.default);Ca.default=cU;var xp={};Object.defineProperty(xp,"__esModule",{value:!0});var Vi=Vt,Gv=function(e){return e.match(new RegExp("^"+Vi.A_CHARS+"*"))[0].length},Jv=function(e){return e.match(new RegExp("^"+Vi.B_CHARS+"*"))[0].length},zv=function(e){return e.match(new RegExp("^"+Vi.C_CHARS+"*"))[0]};function wp(t,e){var n=e?Vi.A_CHARS:Vi.B_CHARS,r=t.match(new RegExp("^("+n+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+String.fromCharCode(204)+$v(t.substring(r[1].length));var i=t.match(new RegExp("^"+n+"+"))[0];return i.length===t.length?t:i+String.fromCharCode(e?205:206)+wp(t.substring(i.length),!e)}function $v(t){var e=zv(t),n=e.length;if(n===t.length)return t;t=t.substring(n);var r=Gv(t)>=Jv(t);return e+String.fromCharCode(r?206:205)+wp(t,r)}xp.default=function(t){var e=void 0,n=zv(t).length;if(n>=2)e=Vi.C_START_CHAR+$v(t);else{var r=Gv(t)>Jv(t);e=(r?Vi.A_START_CHAR:Vi.B_START_CHAR)+wp(t,r)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(i,o){return String.fromCharCode(203)+o})};Object.defineProperty(bp,"__esModule",{value:!0});var uU=Ca,lU=jv(uU),hU=xp,dU=jv(hU);function jv(t){return t&&t.__esModule?t:{default:t}}function fU(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zh(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function pU(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var gU=function(t){pU(e,t);function e(n,r){if(fU(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(n))var i=zh(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,dU.default)(n),r));else var i=zh(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));return zh(i)}return e}(lU.default);bp.default=gU;var Tp={};Object.defineProperty(Tp,"__esModule",{value:!0});var mU=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),RU=Ca,yU=vU(RU),H0=Vt;function vU(t){return t&&t.__esModule?t:{default:t}}function bU(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xU(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function wU(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var TU=function(t){wU(e,t);function e(n,r){return bU(this,e),xU(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,H0.A_START_CHAR+n,r))}return mU(e,[{key:"valid",value:function(){return new RegExp("^"+H0.A_CHARS+"+$").test(this.data)}}]),e}(yU.default);Tp.default=TU;var Sp={};Object.defineProperty(Sp,"__esModule",{value:!0});var SU=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),DU=Ca,_U=OU(DU),G0=Vt;function OU(t){return t&&t.__esModule?t:{default:t}}function EU(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function IU(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function NU(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var FU=function(t){NU(e,t);function e(n,r){return EU(this,e),IU(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,G0.B_START_CHAR+n,r))}return SU(e,[{key:"valid",value:function(){return new RegExp("^"+G0.B_CHARS+"+$").test(this.data)}}]),e}(_U.default);Sp.default=FU;var Dp={};Object.defineProperty(Dp,"__esModule",{value:!0});var PU=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),LU=Ca,MU=CU(LU),J0=Vt;function CU(t){return t&&t.__esModule?t:{default:t}}function AU(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function UU(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function WU(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var XU=function(t){WU(e,t);function e(n,r){return AU(this,e),UU(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,J0.C_START_CHAR+n,r))}return PU(e,[{key:"valid",value:function(){return new RegExp("^"+J0.C_CHARS+"+$").test(this.data)}}]),e}(MU.default);Dp.default=XU;Object.defineProperty(Hr,"__esModule",{value:!0});Hr.CODE128C=Hr.CODE128B=Hr.CODE128A=Hr.CODE128=void 0;var VU=bp,YU=ll(VU),BU=Tp,kU=ll(BU),ZU=Sp,QU=ll(ZU),KU=Dp,HU=ll(KU);function ll(t){return t&&t.__esModule?t:{default:t}}Hr.CODE128=YU.default;Hr.CODE128A=kU.default;Hr.CODE128B=QU.default;Hr.CODE128C=HU.default;var zn={},_p={},Er={};Object.defineProperty(Er,"__esModule",{value:!0});Er.SIDE_BIN="101";Er.MIDDLE_BIN="01010";Er.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"]};Er.EAN2_STRUCTURE=["LL","LG","GL","GG"];Er.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"];Er.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var hl={},So={};Object.defineProperty(So,"__esModule",{value:!0});var GU=Er,JU=function(e,n,r){var i=e.split("").map(function(a,s){return GU.BINARIES[n[s]]}).map(function(a,s){return a?a[e[s]]:""});if(r){var o=e.length-1;i=i.map(function(a,s){return s<o?a+r:a})}return i.join("")};So.default=JU;Object.defineProperty(hl,"__esModule",{value:!0});var zU=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),ko=Er,$U=So,z0=qv($U),jU=rr,qU=qv(jU);function qv(t){return t&&t.__esModule?t:{default:t}}function e8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function t8(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function n8(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var r8=function(t){n8(e,t);function e(n,r){e8(this,e);var i=t8(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));return i.fontSize=!r.flat&&r.fontSize>r.width*10?r.width*10:r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return zU(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(r,i){return this.text.substr(r,i)}},{key:"leftEncode",value:function(r,i){return(0,z0.default)(r,i)}},{key:"rightText",value:function(r,i){return this.text.substr(r,i)}},{key:"rightEncode",value:function(r,i){return(0,z0.default)(r,i)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},i={height:this.guardHeight};return[{data:ko.SIDE_BIN,options:i},{data:this.leftEncode(),text:this.leftText(),options:r},{data:ko.MIDDLE_BIN,options:i},{data:this.rightEncode(),text:this.rightText(),options:r},{data:ko.SIDE_BIN,options:i}]}},{key:"encodeFlat",value:function(){var r=[ko.SIDE_BIN,this.leftEncode(),ko.MIDDLE_BIN,this.rightEncode(),ko.SIDE_BIN];return{data:r.join(""),text:this.text}}}]),e}(qU.default);hl.default=r8;Object.defineProperty(_p,"__esModule",{value:!0});var i8=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),as=function t(e,n,r){e===null&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(i===void 0){var o=Object.getPrototypeOf(e);return o===null?void 0:t(o,n,r)}else{if("value"in i)return i.value;var a=i.get;return a===void 0?void 0:a.call(r)}},o8=Er,a8=hl,s8=c8(a8);function c8(t){return t&&t.__esModule?t:{default:t}}function u8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l8(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function h8(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var $0=function(e){var n=e.substr(0,12).split("").map(function(r){return+r}).reduce(function(r,i,o){return o%2?r+i*3:r+i},0);return(10-n%10)%10},d8=function(t){h8(e,t);function e(n,r){u8(this,e),n.search(/^[0-9]{12}$/)!==-1&&(n+=$0(n));var i=l8(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));return i.lastChar=r.lastChar,i}return i8(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===$0(this.data)}},{key:"leftText",value:function(){return as(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var r=this.data.substr(1,6),i=o8.EAN13_STRUCTURE[this.data[0]];return as(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,i)}},{key:"rightText",value:function(){return as(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var r=this.data.substr(7,6);return as(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRRRR")}},{key:"encodeGuarded",value:function(){var r=as(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(r.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(r.push({data:"00"}),r.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),r}}]),e}(s8.default);_p.default=d8;var Op={};Object.defineProperty(Op,"__esModule",{value:!0});var f8=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Zc=function t(e,n,r){e===null&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(i===void 0){var o=Object.getPrototypeOf(e);return o===null?void 0:t(o,n,r)}else{if("value"in i)return i.value;var a=i.get;return a===void 0?void 0:a.call(r)}},p8=hl,g8=m8(p8);function m8(t){return t&&t.__esModule?t:{default:t}}function R8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y8(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function v8(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var j0=function(e){var n=e.substr(0,7).split("").map(function(r){return+r}).reduce(function(r,i,o){return o%2?r+i:r+i*3},0);return(10-n%10)%10},b8=function(t){v8(e,t);function e(n,r){return R8(this,e),n.search(/^[0-9]{7}$/)!==-1&&(n+=j0(n)),y8(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return f8(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===j0(this.data)}},{key:"leftText",value:function(){return Zc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var r=this.data.substr(0,4);return Zc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,"LLLL")}},{key:"rightText",value:function(){return Zc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var r=this.data.substr(4,4);return Zc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRR")}}]),e}(g8.default);Op.default=b8;var Ep={};Object.defineProperty(Ep,"__esModule",{value:!0});var x8=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),w8=Er,T8=So,S8=eb(T8),D8=rr,_8=eb(D8);function eb(t){return t&&t.__esModule?t:{default:t}}function O8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E8(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function I8(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var N8=function(e){var n=e.split("").map(function(r){return+r}).reduce(function(r,i,o){return o%2?r+i*9:r+i*3},0);return n%10},F8=function(t){I8(e,t);function e(n,r){return O8(this,e),E8(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return x8(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var r=w8.EAN5_STRUCTURE[N8(this.data)];return{data:"1011"+(0,S8.default)(this.data,r,"01"),text:this.text}}}]),e}(_8.default);Ep.default=F8;var Ip={};Object.defineProperty(Ip,"__esModule",{value:!0});var P8=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),L8=Er,M8=So,C8=tb(M8),A8=rr,U8=tb(A8);function tb(t){return t&&t.__esModule?t:{default:t}}function W8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function X8(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function V8(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Y8=function(t){V8(e,t);function e(n,r){return W8(this,e),X8(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return P8(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var r=L8.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,C8.default)(this.data,r,"01"),text:this.text}}}]),e}(U8.default);Ip.default=Y8;var ac={};Object.defineProperty(ac,"__esModule",{value:!0});var B8=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();ac.checksum=Vd;var k8=So,Zo=nb(k8),Z8=rr,Q8=nb(Z8);function nb(t){return t&&t.__esModule?t:{default:t}}function K8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function H8(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function G8(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var J8=function(t){G8(e,t);function e(n,r){K8(this,e),n.search(/^[0-9]{11}$/)!==-1&&(n+=Vd(n));var i=H8(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));return i.displayValue=r.displayValue,r.fontSize>r.width*10?i.fontSize=r.width*10:i.fontSize=r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return B8(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==Vd(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=(0,Zo.default)(this.data.substr(0,6),"LLLLLL"),r+="01010",r+=(0,Zo.default)(this.data.substr(6,6),"RRRRRR"),r+="101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101"+(0,Zo.default)(this.data[0],"L"),options:{height:this.guardHeight}}),r.push({data:(0,Zo.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),r.push({data:"01010",options:{height:this.guardHeight}}),r.push({data:(0,Zo.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),r.push({data:(0,Zo.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),r}}]),e}(Q8.default);function Vd(t){var e=0,n;for(n=1;n<11;n+=2)e+=parseInt(t[n]);for(n=0;n<11;n+=2)e+=parseInt(t[n])*3;return(10-e%10)%10}ac.default=J8;var Np={};Object.defineProperty(Np,"__esModule",{value:!0});var z8=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),$8=So,j8=rb($8),q8=rr,e5=rb(q8),t5=ac;function rb(t){return t&&t.__esModule?t:{default:t}}function n5(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function r5(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i5=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],o5=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],a5=function(t){r5(e,t);function e(n,r){n5(this,e);var i=$h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));if(i.isValid=!1,n.search(/^[0-9]{6}$/)!==-1)i.middleDigits=n,i.upcA=q0(n,"0"),i.text=r.text||""+i.upcA[0]+n+i.upcA[i.upcA.length-1],i.isValid=!0;else if(n.search(/^[01][0-9]{7}$/)!==-1)if(i.middleDigits=n.substring(1,n.length-1),i.upcA=q0(i.middleDigits,n[0]),i.upcA[i.upcA.length-1]===n[n.length-1])i.isValid=!0;else return $h(i);else return $h(i);return i.displayValue=r.displayValue,r.fontSize>r.width*10?i.fontSize=r.width*10:i.fontSize=r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return z8(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=this.encodeMiddleDigits(),r+="010101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101",options:{height:this.guardHeight}}),r.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),r.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),r}},{key:"encodeMiddleDigits",value:function(){var r=this.upcA[0],i=this.upcA[this.upcA.length-1],o=o5[parseInt(i)][parseInt(r)];return(0,j8.default)(this.middleDigits,o)}}]),e}(e5.default);function q0(t,e){for(var n=parseInt(t[t.length-1]),r=i5[n],i="",o=0,a=0;a<r.length;a++){var s=r[a];s==="X"?i+=t[o++]:i+=s}return i=""+e+i,""+i+(0,t5.checksum)(i)}Np.default=a5;Object.defineProperty(zn,"__esModule",{value:!0});zn.UPCE=zn.UPC=zn.EAN2=zn.EAN5=zn.EAN8=zn.EAN13=void 0;var s5=_p,c5=Aa(s5),u5=Op,l5=Aa(u5),h5=Ep,d5=Aa(h5),f5=Ip,p5=Aa(f5),g5=ac,m5=Aa(g5),R5=Np,y5=Aa(R5);function Aa(t){return t&&t.__esModule?t:{default:t}}zn.EAN13=c5.default;zn.EAN8=l5.default;zn.EAN5=d5.default;zn.EAN2=p5.default;zn.UPC=m5.default;zn.UPCE=y5.default;var _a={},dl={},sc={};Object.defineProperty(sc,"__esModule",{value:!0});sc.START_BIN="1010";sc.END_BIN="11101";sc.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"];Object.defineProperty(dl,"__esModule",{value:!0});var v5=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Qc=sc,b5=rr,x5=w5(b5);function w5(t){return t&&t.__esModule?t:{default:t}}function T5(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S5(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function D5(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _5=function(t){D5(e,t);function e(){return T5(this,e),S5(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return v5(e,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var r=this,i=this.data.match(/.{2}/g).map(function(o){return r.encodePair(o)}).join("");return{data:Qc.START_BIN+i+Qc.END_BIN,text:this.text}}},{key:"encodePair",value:function(r){var i=Qc.BINARIES[r[1]];return Qc.BINARIES[r[0]].split("").map(function(o,a){return(o==="1"?"111":"1")+(i[a]==="1"?"000":"0")}).join("")}}]),e}(x5.default);dl.default=_5;var Fp={};Object.defineProperty(Fp,"__esModule",{value:!0});var O5=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),E5=dl,I5=N5(E5);function N5(t){return t&&t.__esModule?t:{default:t}}function F5(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P5(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function L5(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var em=function(e){var n=e.substr(0,13).split("").map(function(r){return parseInt(r,10)}).reduce(function(r,i,o){return r+i*(3-o%2*2)},0);return Math.ceil(n/10)*10-n},M5=function(t){L5(e,t);function e(n,r){return F5(this,e),n.search(/^[0-9]{13}$/)!==-1&&(n+=em(n)),P5(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return O5(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===em(this.data)}}]),e}(I5.default);Fp.default=M5;Object.defineProperty(_a,"__esModule",{value:!0});_a.ITF14=_a.ITF=void 0;var C5=dl,A5=ib(C5),U5=Fp,W5=ib(U5);function ib(t){return t&&t.__esModule?t:{default:t}}_a.ITF=A5.default;_a.ITF14=W5.default;var Dr={},Do={};Object.defineProperty(Do,"__esModule",{value:!0});var X5=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),V5=rr,Y5=B5(V5);function B5(t){return t&&t.__esModule?t:{default:t}}function k5(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Z5(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Q5(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var K5=function(t){Q5(e,t);function e(n,r){return k5(this,e),Z5(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return X5(e,[{key:"encode",value:function(){for(var r="110",i=0;i<this.data.length;i++){var o=parseInt(this.data[i]),a=o.toString(2);a=H5(a,4-a.length);for(var s=0;s<a.length;s++)r+=a[s]=="0"?"100":"110"}return r+="1001",{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),e}(Y5.default);function H5(t,e){for(var n=0;n<e;n++)t="0"+t;return t}Do.default=K5;var Pp={},_o={};Object.defineProperty(_o,"__esModule",{value:!0});_o.mod10=G5;_o.mod11=J5;function G5(t){for(var e=0,n=0;n<t.length;n++){var r=parseInt(t[n]);(n+t.length)%2===0?e+=r:e+=r*2%10+Math.floor(r*2/10)}return(10-e%10)%10}function J5(t){for(var e=0,n=[2,3,4,5,6,7],r=0;r<t.length;r++){var i=parseInt(t[t.length-1-r]);e+=n[r%n.length]*i}return(11-e%11)%11}Object.defineProperty(Pp,"__esModule",{value:!0});var z5=Do,$5=q5(z5),j5=_o;function q5(t){return t&&t.__esModule?t:{default:t}}function e6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function t6(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function n6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var r6=function(t){n6(e,t);function e(n,r){return e6(this,e),t6(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n+(0,j5.mod10)(n),r))}return e}($5.default);Pp.default=r6;var Lp={};Object.defineProperty(Lp,"__esModule",{value:!0});var i6=Do,o6=s6(i6),a6=_o;function s6(t){return t&&t.__esModule?t:{default:t}}function c6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u6(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function l6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h6=function(t){l6(e,t);function e(n,r){return c6(this,e),u6(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n+(0,a6.mod11)(n),r))}return e}(o6.default);Lp.default=h6;var Mp={};Object.defineProperty(Mp,"__esModule",{value:!0});var d6=Do,f6=p6(d6),tm=_o;function p6(t){return t&&t.__esModule?t:{default:t}}function g6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m6(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function R6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y6=function(t){R6(e,t);function e(n,r){return g6(this,e),n+=(0,tm.mod10)(n),n+=(0,tm.mod10)(n),m6(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return e}(f6.default);Mp.default=y6;var Cp={};Object.defineProperty(Cp,"__esModule",{value:!0});var v6=Do,b6=x6(v6),nm=_o;function x6(t){return t&&t.__esModule?t:{default:t}}function w6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function T6(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function S6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var D6=function(t){S6(e,t);function e(n,r){return w6(this,e),n+=(0,nm.mod11)(n),n+=(0,nm.mod10)(n),T6(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return e}(b6.default);Cp.default=D6;Object.defineProperty(Dr,"__esModule",{value:!0});Dr.MSI1110=Dr.MSI1010=Dr.MSI11=Dr.MSI10=Dr.MSI=void 0;var _6=Do,O6=cc(_6),E6=Pp,I6=cc(E6),N6=Lp,F6=cc(N6),P6=Mp,L6=cc(P6),M6=Cp,C6=cc(M6);function cc(t){return t&&t.__esModule?t:{default:t}}Dr.MSI=O6.default;Dr.MSI10=I6.default;Dr.MSI11=F6.default;Dr.MSI1010=L6.default;Dr.MSI1110=C6.default;var fl={};Object.defineProperty(fl,"__esModule",{value:!0});fl.pharmacode=void 0;var A6=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),U6=rr,W6=X6(U6);function X6(t){return t&&t.__esModule?t:{default:t}}function V6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Y6(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function B6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var k6=function(t){B6(e,t);function e(n,r){V6(this,e);var i=Y6(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r));return i.number=parseInt(n,10),i}return A6(e,[{key:"encode",value:function(){for(var r=this.number,i="";!isNaN(r)&&r!=0;)r%2===0?(i="11100"+i,r=(r-2)/2):(i="100"+i,r=(r-1)/2);return i=i.slice(0,-2),{data:i,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(W6.default);fl.pharmacode=k6;var pl={};Object.defineProperty(pl,"__esModule",{value:!0});pl.codabar=void 0;var Z6=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Q6=rr,K6=H6(Q6);function H6(t){return t&&t.__esModule?t:{default:t}}function G6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function J6(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function z6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var $6=function(t){z6(e,t);function e(n,r){G6(this,e),n.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(n="A"+n+"A");var i=J6(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n.toUpperCase(),r));return i.text=i.options.text||i.text.replace(/[A-D]/g,""),i}return Z6(e,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var r=[],i=this.getEncodings(),o=0;o<this.data.length;o++)r.push(i[this.data.charAt(o)]),o!==this.data.length-1&&r.push("0");return{text:this.text,data:r.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"}}}]),e}(K6.default);pl.codabar=$6;var gl={};Object.defineProperty(gl,"__esModule",{value:!0});gl.GenericBarcode=void 0;var j6=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),q6=rr,e4=t4(q6);function t4(t){return t&&t.__esModule?t:{default:t}}function n4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r4(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function i4(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o4=function(t){i4(e,t);function e(n,r){return n4(this,e),r4(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n,r))}return j6(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(e4.default);gl.GenericBarcode=o4;Object.defineProperty(vp,"__esModule",{value:!0});var a4=ul,Kc=Hr,Qo=zn,rm=_a,ss=Dr,s4=fl,c4=pl,u4=gl;vp.default={CODE39:a4.CODE39,CODE128:Kc.CODE128,CODE128A:Kc.CODE128A,CODE128B:Kc.CODE128B,CODE128C:Kc.CODE128C,EAN13:Qo.EAN13,EAN8:Qo.EAN8,EAN5:Qo.EAN5,EAN2:Qo.EAN2,UPC:Qo.UPC,UPCE:Qo.UPCE,ITF14:rm.ITF14,ITF:rm.ITF,MSI:ss.MSI,MSI10:ss.MSI10,MSI11:ss.MSI11,MSI1010:ss.MSI1010,MSI1110:ss.MSI1110,pharmacode:s4.pharmacode,codabar:c4.codabar,GenericBarcode:u4.GenericBarcode};var Ua={};Object.defineProperty(Ua,"__esModule",{value:!0});var l4=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};Ua.default=function(t,e){return l4({},t,e)};var Ap={};Object.defineProperty(Ap,"__esModule",{value:!0});Ap.default=h4;function h4(t){var e=[];function n(r){if(Array.isArray(r))for(var i=0;i<r.length;i++)n(r[i]);else r.text=r.text||"",r.data=r.data||"",e.push(r)}return n(t),e}var Up={};Object.defineProperty(Up,"__esModule",{value:!0});Up.default=d4;function d4(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}var Wp={},Xp={},ml={};Object.defineProperty(ml,"__esModule",{value:!0});ml.default=f4;function f4(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var n in e)e.hasOwnProperty(n)&&(n=e[n],typeof t[n]=="string"&&(t[n]=parseInt(t[n],10)));return typeof t.displayValue=="string"&&(t.displayValue=t.displayValue!="false"),t}var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});var p4={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(){}};Rl.default=p4;Object.defineProperty(Xp,"__esModule",{value:!0});var g4=ml,m4=ob(g4),R4=Rl,im=ob(R4);function ob(t){return t&&t.__esModule?t:{default:t}}function y4(t){var e={};for(var n in im.default)im.default.hasOwnProperty(n)&&(t.hasAttribute("jsbarcode-"+n.toLowerCase())&&(e[n]=t.getAttribute("jsbarcode-"+n.toLowerCase())),t.hasAttribute("data-"+n.toLowerCase())&&(e[n]=t.getAttribute("data-"+n.toLowerCase())));return e.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),e=(0,m4.default)(e),e}Xp.default=y4;var Vp={},Yp={},hr={};Object.defineProperty(hr,"__esModule",{value:!0});hr.getTotalWidthOfEncodings=hr.calculateEncodingAttributes=hr.getBarcodePadding=hr.getEncodingHeight=hr.getMaximumHeightOfEncodings=void 0;var v4=Ua,b4=x4(v4);function x4(t){return t&&t.__esModule?t:{default:t}}function ab(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function sb(t,e,n){if(n.displayValue&&e<t){if(n.textAlign=="center")return Math.floor((t-e)/2);if(n.textAlign=="left")return 0;if(n.textAlign=="right")return Math.floor(t-e)}return 0}function w4(t,e,n){for(var r=0;r<t.length;r++){var i=t[r],o=(0,b4.default)(e,i.options),a;o.displayValue?a=D4(i.text,o,n):a=0;var s=i.data.length*o.width;i.width=Math.ceil(Math.max(a,s)),i.height=ab(i,o),i.barcodePadding=sb(a,s,o)}}function T4(t){for(var e=0,n=0;n<t.length;n++)e+=t[n].width;return e}function S4(t){for(var e=0,n=0;n<t.length;n++)t[n].height>e&&(e=t[n].height);return e}function D4(t,e,n){var r;if(n)r=n;else if(typeof document!="undefined")r=document.createElement("canvas").getContext("2d");else return 0;r.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var i=r.measureText(t);if(!i)return 0;var o=i.width;return o}hr.getMaximumHeightOfEncodings=S4;hr.getEncodingHeight=ab;hr.getBarcodePadding=sb;hr.calculateEncodingAttributes=w4;hr.getTotalWidthOfEncodings=T4;Object.defineProperty(Yp,"__esModule",{value:!0});var _4=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),O4=Ua,E4=I4(O4),jh=hr;function I4(t){return t&&t.__esModule?t:{default:t}}function N4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var F4=function(){function t(e,n,r){N4(this,t),this.canvas=e,this.encodings=n,this.options=r}return _4(t,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var n=0;n<this.encodings.length;n++){var r=(0,E4.default)(this.options,this.encodings[n].options);this.drawCanvasBarcode(r,this.encodings[n]),this.drawCanvasText(r,this.encodings[n]),this.moveCanvasDrawing(this.encodings[n])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var n=this.canvas.getContext("2d");n.save(),(0,jh.calculateEncodingAttributes)(this.encodings,this.options,n);var r=(0,jh.getTotalWidthOfEncodings)(this.encodings),i=(0,jh.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=r+this.options.marginLeft+this.options.marginRight,this.canvas.height=i,n.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(n.fillStyle=this.options.background,n.fillRect(0,0,this.canvas.width,this.canvas.height)),n.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(n,r){var i=this.canvas.getContext("2d"),o=r.data,a;n.textPosition=="top"?a=n.marginTop+n.fontSize+n.textMargin:a=n.marginTop,i.fillStyle=n.lineColor;for(var s=0;s<o.length;s++){var c=s*n.width+r.barcodePadding;o[s]==="1"?i.fillRect(c,a,n.width,n.height):o[s]&&i.fillRect(c,a,n.width,n.height*o[s])}}},{key:"drawCanvasText",value:function(n,r){var i=this.canvas.getContext("2d"),o=n.fontOptions+" "+n.fontSize+"px "+n.font;if(n.displayValue){var a,s;n.textPosition=="top"?s=n.marginTop+n.fontSize-n.textMargin:s=n.height+n.textMargin+n.marginTop+n.fontSize,i.font=o,n.textAlign=="left"||r.barcodePadding>0?(a=0,i.textAlign="left"):n.textAlign=="right"?(a=r.width-1,i.textAlign="right"):(a=r.width/2,i.textAlign="center"),i.fillText(r.text,a,s)}}},{key:"moveCanvasDrawing",value:function(n){var r=this.canvas.getContext("2d");r.translate(n.width,0)}},{key:"restoreCanvas",value:function(){var n=this.canvas.getContext("2d");n.restore()}}]),t}();Yp.default=F4;var Bp={};Object.defineProperty(Bp,"__esModule",{value:!0});var P4=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),L4=Ua,M4=C4(L4),qh=hr;function C4(t){return t&&t.__esModule?t:{default:t}}function A4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Hc="http://www.w3.org/2000/svg",U4=function(){function t(e,n,r){A4(this,t),this.svg=e,this.encodings=n,this.options=r,this.document=r.xmlDocument||document}return P4(t,[{key:"render",value:function(){var n=this.options.marginLeft;this.prepareSVG();for(var r=0;r<this.encodings.length;r++){var i=this.encodings[r],o=(0,M4.default)(this.options,i.options),a=this.createGroup(n,o.marginTop,this.svg);this.setGroupOptions(a,o),this.drawSvgBarcode(a,o,i),this.drawSVGText(a,o,i),n+=i.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,qh.calculateEncodingAttributes)(this.encodings,this.options);var n=(0,qh.getTotalWidthOfEncodings)(this.encodings),r=(0,qh.getMaximumHeightOfEncodings)(this.encodings),i=n+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(i,r),this.options.background&&this.drawRect(0,0,i,r,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(n,r,i){var o=i.data,a;r.textPosition=="top"?a=r.fontSize+r.textMargin:a=0;for(var s=0,c=0,u=0;u<o.length;u++)c=u*r.width+i.barcodePadding,o[u]==="1"?s++:s>0&&(this.drawRect(c-r.width*s,a,r.width*s,r.height,n),s=0);s>0&&this.drawRect(c-r.width*(s-1),a,r.width*s,r.height,n)}},{key:"drawSVGText",value:function(n,r,i){var o=this.document.createElementNS(Hc,"text");if(r.displayValue){var a,s;o.setAttribute("style","font:"+r.fontOptions+" "+r.fontSize+"px "+r.font),r.textPosition=="top"?s=r.fontSize-r.textMargin:s=r.height+r.textMargin+r.fontSize,r.textAlign=="left"||i.barcodePadding>0?(a=0,o.setAttribute("text-anchor","start")):r.textAlign=="right"?(a=i.width-1,o.setAttribute("text-anchor","end")):(a=i.width/2,o.setAttribute("text-anchor","middle")),o.setAttribute("x",a),o.setAttribute("y",s),o.appendChild(this.document.createTextNode(i.text)),n.appendChild(o)}}},{key:"setSvgAttributes",value:function(n,r){var i=this.svg;i.setAttribute("width",n+"px"),i.setAttribute("height",r+"px"),i.setAttribute("x","0px"),i.setAttribute("y","0px"),i.setAttribute("viewBox","0 0 "+n+" "+r),i.setAttribute("xmlns",Hc),i.setAttribute("version","1.1"),i.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(n,r,i){var o=this.document.createElementNS(Hc,"g");return o.setAttribute("transform","translate("+n+", "+r+")"),i.appendChild(o),o}},{key:"setGroupOptions",value:function(n,r){n.setAttribute("style","fill:"+r.lineColor+";")}},{key:"drawRect",value:function(n,r,i,o,a){var s=this.document.createElementNS(Hc,"rect");return s.setAttribute("x",n),s.setAttribute("y",r),s.setAttribute("width",i),s.setAttribute("height",o),a.appendChild(s),s}}]),t}();Bp.default=U4;var kp={};Object.defineProperty(kp,"__esModule",{value:!0});var W4=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function X4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var V4=function(){function t(e,n,r){X4(this,t),this.object=e,this.encodings=n,this.options=r}return W4(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();kp.default=V4;Object.defineProperty(Vp,"__esModule",{value:!0});var Y4=Yp,B4=Zp(Y4),k4=Bp,Z4=Zp(k4),Q4=kp,K4=Zp(Q4);function Zp(t){return t&&t.__esModule?t:{default:t}}Vp.default={CanvasRenderer:B4.default,SVGRenderer:Z4.default,ObjectRenderer:K4.default};var Wa={};Object.defineProperty(Wa,"__esModule",{value:!0});function Qp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kp(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Hp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var H4=function(t){Hp(e,t);function e(n,r){Qp(this,e);var i=Kp(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.name="InvalidInputException",i.symbology=n,i.input=r,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return e}(Error),G4=function(t){Hp(e,t);function e(){Qp(this,e);var n=Kp(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.name="InvalidElementException",n.message="Not supported type to render on",n}return e}(Error),J4=function(t){Hp(e,t);function e(){Qp(this,e);var n=Kp(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.name="NoElementException",n.message="No element to render on.",n}return e}(Error);Wa.InvalidInputException=H4;Wa.InvalidElementException=G4;Wa.NoElementException=J4;Object.defineProperty(Wp,"__esModule",{value:!0});var z4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$4=Xp,Yd=cb($4),j4=Vp,fs=cb(j4),q4=Wa;function cb(t){return t&&t.__esModule?t:{default:t}}function Gp(t){if(typeof t=="string")return eW(t);if(Array.isArray(t)){for(var e=[],n=0;n<t.length;n++)e.push(Gp(t[n]));return e}else{if(typeof HTMLCanvasElement!="undefined"&&t instanceof HTMLImageElement)return tW(t);if(t&&t.nodeName&&t.nodeName.toLowerCase()==="svg"||typeof SVGElement!="undefined"&&t instanceof SVGElement)return{element:t,options:(0,Yd.default)(t),renderer:fs.default.SVGRenderer};if(typeof HTMLCanvasElement!="undefined"&&t instanceof HTMLCanvasElement)return{element:t,options:(0,Yd.default)(t),renderer:fs.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:fs.default.CanvasRenderer};if(t&&(typeof t=="undefined"?"undefined":z4(t))==="object"&&!t.nodeName)return{element:t,renderer:fs.default.ObjectRenderer};throw new q4.InvalidElementException}}function eW(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var n=[],r=0;r<e.length;r++)n.push(Gp(e[r]));return n}}function tW(t){var e=document.createElement("canvas");return{element:e,options:(0,Yd.default)(t),renderer:fs.default.CanvasRenderer,afterRender:function(){t.setAttribute("src",e.toDataURL())}}}Wp.default=Gp;var Jp={};Object.defineProperty(Jp,"__esModule",{value:!0});var nW=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function rW(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var iW=function(){function t(e){rW(this,t),this.api=e}return nW(t,[{key:"handleCatch",value:function(n){if(n.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw n.message;else throw n;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(n){try{var r=n.apply(void 0,arguments);return this.api._options.valid(!0),r}catch(i){return this.handleCatch(i),this.api}}}]),t}();Jp.default=iW;var oW=vp,go=Hi(oW),aW=Ua,uc=Hi(aW),sW=Ap,ub=Hi(sW),cW=Up,om=Hi(cW),uW=Wp,lW=Hi(uW),hW=ml,dW=Hi(hW),fW=Jp,pW=Hi(fW),lb=Wa,gW=Rl,hb=Hi(gW);function Hi(t){return t&&t.__esModule?t:{default:t}}var gi=function(){},yl=function(e,n,r){var i=new gi;if(typeof e=="undefined")throw Error("No element to render on was provided.");return i._renderProperties=(0,lW.default)(e),i._encodings=[],i._options=hb.default,i._errorHandler=new pW.default(i),typeof n!="undefined"&&(r=r||{},r.format||(r.format=fb()),i.options(r)[r.format](n,r).render()),i};yl.getModule=function(t){return go.default[t]};for(var am in go.default)go.default.hasOwnProperty(am)&&mW(go.default,am);function mW(t,e){gi.prototype[e]=gi.prototype[e.toUpperCase()]=gi.prototype[e.toLowerCase()]=function(n,r){var i=this;return i._errorHandler.wrapBarcodeCall(function(){r.text=typeof r.text=="undefined"?void 0:""+r.text;var o=(0,uc.default)(i._options,r);o=(0,dW.default)(o);var a=t[e],s=db(n,a,o);return i._encodings.push(s),i})}}function db(t,e,n){t=""+t;var r=new e(t,n);if(!r.valid())throw new lb.InvalidInputException(r.constructor.name,t);var i=r.encode();i=(0,ub.default)(i);for(var o=0;o<i.length;o++)i[o].options=(0,uc.default)(n,i[o].options);return i}function fb(){return go.default.CODE128?"CODE128":Object.keys(go.default)[0]}gi.prototype.options=function(t){return this._options=(0,uc.default)(this._options,t),this};gi.prototype.blank=function(t){var e=new Array(t+1).join("0");return this._encodings.push({data:e}),this};gi.prototype.init=function(){if(!!this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var t;for(var e in this._renderProperties){t=this._renderProperties[e];var n=(0,uc.default)(this._options,t.options);n.format=="auto"&&(n.format=fb()),this._errorHandler.wrapBarcodeCall(function(){var r=n.value,i=go.default[n.format.toUpperCase()],o=db(r,i,n);Bd(t,o,n)})}}};gi.prototype.render=function(){if(!this._renderProperties)throw new lb.NoElementException;if(Array.isArray(this._renderProperties))for(var t=0;t<this._renderProperties.length;t++)Bd(this._renderProperties[t],this._encodings,this._options);else Bd(this._renderProperties,this._encodings,this._options);return this};gi.prototype._defaults=hb.default;function Bd(t,e,n){e=(0,ub.default)(e);for(var r=0;r<e.length;r++)e[r].options=(0,uc.default)(n,e[r].options),(0,om.default)(e[r].options);(0,om.default)(n);var i=t.renderer,o=new i(t.element,e,n);o.render(),t.afterRender&&t.afterRender()}typeof window!="undefined"&&(window.JsBarcode=yl);typeof jQuery!="undefined"&&(jQuery.fn.JsBarcode=function(t,e){var n=[];return jQuery(this).each(function(){n.push(this)}),yl(n,t,e)});var RW=yl;function yW(t){return`data:image/svg+xml;base64,${btoa(decodeURIComponent(t.outerHTML))}`}function vW(t,e){const n=document.createElement("svg");RW(n,e.content),t.executeInsertElementList([{type:fe.IMAGE,value:yW(n),width:e.width,height:e.height}])}function bW(t,e){var n=Object.setPrototypeOf;n?n(t,e):t.__proto__=e}function xW(t,e){e===void 0&&(e=t.constructor);var n=Error.captureStackTrace;n&&n(t,e)}var wW=function(){var t=function(n,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a])},t(n,r)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),TW=function(t){wW(e,t);function e(n,r){var i=this.constructor,o=t.call(this,n,r)||this;return Object.defineProperty(o,"name",{value:i.name,enumerable:!1,configurable:!0}),bW(o,i.prototype),xW(o),o}return e}(Error),SW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ir=function(t){SW(e,t);function e(n){n===void 0&&(n=void 0);var r=t.call(this,n)||this;return r.message=n,r}return e.prototype.getKind=function(){var n=this.constructor;return n.kind},e.kind="Exception",e}(TW),DW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jt=function(t){DW(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ArgumentException",e}(ir),_W=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Je=function(t){_W(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="IllegalArgumentException",e}(ir),pb=function(){function t(e){if(this.binarizer=e,e===null)throw new Je("Binarizer must be non-null.")}return t.prototype.getWidth=function(){return this.binarizer.getWidth()},t.prototype.getHeight=function(){return this.binarizer.getHeight()},t.prototype.getBlackRow=function(e,n){return this.binarizer.getBlackRow(e,n)},t.prototype.getBlackMatrix=function(){return(this.matrix===null||this.matrix===void 0)&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},t.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},t.prototype.crop=function(e,n,r,i){var o=this.binarizer.getLuminanceSource().crop(e,n,r,i);return new t(this.binarizer.createBinarizer(o))},t.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},t.prototype.rotateCounterClockwise=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new t(this.binarizer.createBinarizer(e))},t.prototype.rotateCounterClockwise45=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new t(this.binarizer.createBinarizer(e))},t.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch{return""}},t}(),OW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),tn=function(t){OW(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.getChecksumInstance=function(){return new e},e.kind="ChecksumException",e}(ir),EW=function(){function t(e){this.source=e}return t.prototype.getLuminanceSource=function(){return this.source},t.prototype.getWidth=function(){return this.source.getWidth()},t.prototype.getHeight=function(){return this.source.getHeight()},t}(),Mt=function(){function t(){}return t.arraycopy=function(e,n,r,i,o){for(;o--;)r[i++]=e[n++]},t.currentTimeMillis=function(){return Date.now()},t}(),IW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zp=function(t){IW(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="IndexOutOfBoundsException",e}(ir),NW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),sm=function(t){NW(e,t);function e(n,r){n===void 0&&(n=void 0),r===void 0&&(r=void 0);var i=t.call(this,r)||this;return i.index=n,i.message=r,i}return e.kind="ArrayIndexOutOfBoundsException",e}(zp),FW=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},un=function(){function t(){}return t.fill=function(e,n){for(var r=0,i=e.length;r<i;r++)e[r]=n},t.fillWithin=function(e,n,r,i){t.rangeCheck(e.length,n,r);for(var o=n;o<r;o++)e[o]=i},t.rangeCheck=function(e,n,r){if(n>r)throw new Je("fromIndex("+n+") > toIndex("+r+")");if(n<0)throw new sm(n);if(r>e)throw new sm(r)},t.asList=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e},t.create=function(e,n,r){var i=Array.from({length:e});return i.map(function(o){return Array.from({length:n}).fill(r)})},t.createInt32Array=function(e,n,r){var i=Array.from({length:e});return i.map(function(o){return Int32Array.from({length:n}).fill(r)})},t.equals=function(e,n){if(!e||!n||!e.length||!n.length||e.length!==n.length)return!1;for(var r=0,i=e.length;r<i;r++)if(e[r]!==n[r])return!1;return!0},t.hashCode=function(e){var n,r;if(e===null)return 0;var i=1;try{for(var o=FW(e),a=o.next();!a.done;a=o.next()){var s=a.value;i=31*i+s}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},t.fillUint8Array=function(e,n){for(var r=0;r!==e.length;r++)e[r]=n},t.copyOf=function(e,n){return e.slice(0,n)},t.copyOfUint8Array=function(e,n){if(e.length<=n){var r=new Uint8Array(n);return r.set(e),r}return e.slice(0,n)},t.copyOfRange=function(e,n,r){var i=r-n,o=new Int32Array(i);return Mt.arraycopy(e,n,o,0,i),o},t.binarySearch=function(e,n,r){r===void 0&&(r=t.numberComparator);for(var i=0,o=e.length-1;i<=o;){var a=o+i>>1,s=r(n,e[a]);if(s>0)i=a+1;else if(s<0)o=a-1;else return a}return-i-1},t.numberComparator=function(e,n){return e-n},t}(),$t=function(){function t(){}return t.numberOfTrailingZeros=function(e){var n;if(e===0)return 32;var r=31;return n=e<<16,n!==0&&(r-=16,e=n),n=e<<8,n!==0&&(r-=8,e=n),n=e<<4,n!==0&&(r-=4,e=n),n=e<<2,n!==0&&(r-=2,e=n),r-(e<<1>>>31)},t.numberOfLeadingZeros=function(e){if(e===0)return 32;var n=1;return e>>>16===0&&(n+=16,e<<=16),e>>>24===0&&(n+=8,e<<=8),e>>>28===0&&(n+=4,e<<=4),e>>>30===0&&(n+=2,e<<=2),n-=e>>>31,n},t.toHexString=function(e){return e.toString(16)},t.toBinaryString=function(e){return String(parseInt(String(e),2))},t.bitCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),e=e+(e>>>4)&252645135,e=e+(e>>>8),e=e+(e>>>16),e&63},t.truncDivision=function(e,n){return Math.trunc(e/n)},t.parseInt=function(e,n){return n===void 0&&(n=void 0),parseInt(e,n)},t.MIN_VALUE_32_BITS=-2147483648,t.MAX_VALUE=Number.MAX_SAFE_INTEGER,t}(),$n=function(){function t(e,n){e===void 0?(this.size=0,this.bits=new Int32Array(1)):(this.size=e,n==null?this.bits=t.makeArray(e):this.bits=n)}return t.prototype.getSize=function(){return this.size},t.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},t.prototype.ensureCapacity=function(e){if(e>this.bits.length*32){var n=t.makeArray(e);Mt.arraycopy(this.bits,0,n,0,this.bits.length),this.bits=n}},t.prototype.get=function(e){return(this.bits[Math.floor(e/32)]&1<<(e&31))!==0},t.prototype.set=function(e){this.bits[Math.floor(e/32)]|=1<<(e&31)},t.prototype.flip=function(e){this.bits[Math.floor(e/32)]^=1<<(e&31)},t.prototype.getNextSet=function(e){var n=this.size;if(e>=n)return n;var r=this.bits,i=Math.floor(e/32),o=r[i];o&=~((1<<(e&31))-1);for(var a=r.length;o===0;){if(++i===a)return n;o=r[i]}var s=i*32+$t.numberOfTrailingZeros(o);return s>n?n:s},t.prototype.getNextUnset=function(e){var n=this.size;if(e>=n)return n;var r=this.bits,i=Math.floor(e/32),o=~r[i];o&=~((1<<(e&31))-1);for(var a=r.length;o===0;){if(++i===a)return n;o=~r[i]}var s=i*32+$t.numberOfTrailingZeros(o);return s>n?n:s},t.prototype.setBulk=function(e,n){this.bits[Math.floor(e/32)]=n},t.prototype.setRange=function(e,n){if(n<e||e<0||n>this.size)throw new Je;if(n!==e){n--;for(var r=Math.floor(e/32),i=Math.floor(n/32),o=this.bits,a=r;a<=i;a++){var s=a>r?0:e&31,c=a<i?31:n&31,u=(2<<c)-(1<<s);o[a]|=u}}},t.prototype.clear=function(){for(var e=this.bits.length,n=this.bits,r=0;r<e;r++)n[r]=0},t.prototype.isRange=function(e,n,r){if(n<e||e<0||n>this.size)throw new Je;if(n===e)return!0;n--;for(var i=Math.floor(e/32),o=Math.floor(n/32),a=this.bits,s=i;s<=o;s++){var c=s>i?0:e&31,u=s<o?31:n&31,l=(2<<u)-(1<<c)&4294967295;if((a[s]&l)!==(r?l:0))return!1}return!0},t.prototype.appendBit=function(e){this.ensureCapacity(this.size+1),e&&(this.bits[Math.floor(this.size/32)]|=1<<(this.size&31)),this.size++},t.prototype.appendBits=function(e,n){if(n<0||n>32)throw new Je("Num bits must be between 0 and 32");this.ensureCapacity(this.size+n);for(var r=n;r>0;r--)this.appendBit((e>>r-1&1)===1)},t.prototype.appendBitArray=function(e){var n=e.size;this.ensureCapacity(this.size+n);for(var r=0;r<n;r++)this.appendBit(e.get(r))},t.prototype.xor=function(e){if(this.size!==e.size)throw new Je("Sizes don't match");for(var n=this.bits,r=0,i=n.length;r<i;r++)n[r]^=e.bits[r]},t.prototype.toBytes=function(e,n,r,i){for(var o=0;o<i;o++){for(var a=0,s=0;s<8;s++)this.get(e)&&(a|=1<<7-s),e++;n[r+o]=a}},t.prototype.getBitArray=function(){return this.bits},t.prototype.reverse=function(){for(var e=new Int32Array(this.bits.length),n=Math.floor((this.size-1)/32),r=n+1,i=this.bits,o=0;o<r;o++){var a=i[o];a=a>>1&1431655765|(a&1431655765)<<1,a=a>>2&858993459|(a&858993459)<<2,a=a>>4&252645135|(a&252645135)<<4,a=a>>8&16711935|(a&16711935)<<8,a=a>>16&65535|(a&65535)<<16,e[n-o]=a}if(this.size!==r*32){for(var s=r*32-this.size,c=e[0]>>>s,o=1;o<r;o++){var u=e[o];c|=u<<32-s,e[o-1]=c,c=u>>>s}e[r-1]=c}this.bits=e},t.makeArray=function(e){return new Int32Array(Math.floor((e+31)/32))},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.size===n.size&&un.equals(this.bits,n.bits)},t.prototype.hashCode=function(){return 31*this.size+un.hashCode(this.bits)},t.prototype.toString=function(){for(var e="",n=0,r=this.size;n<r;n++)(n&7)===0&&(e+=" "),e+=this.get(n)?"X":".";return e},t.prototype.clone=function(){return new t(this.size,this.bits.slice())},t.prototype.toArray=function(){for(var e=[],n=0,r=this.size;n<r;n++)e.push(this.get(n));return e},t}(),kd;(function(t){t[t.OTHER=0]="OTHER",t[t.PURE_BARCODE=1]="PURE_BARCODE",t[t.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS",t[t.TRY_HARDER=3]="TRY_HARDER",t[t.CHARACTER_SET=4]="CHARACTER_SET",t[t.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS",t[t.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT",t[t.ENABLE_CODE_39_EXTENDED_MODE=7]="ENABLE_CODE_39_EXTENDED_MODE",t[t.ASSUME_GS1=8]="ASSUME_GS1",t[t.RETURN_CODABAR_START_END=9]="RETURN_CODABAR_START_END",t[t.NEED_RESULT_POINT_CALLBACK=10]="NEED_RESULT_POINT_CALLBACK",t[t.ALLOWED_EAN_EXTENSIONS=11]="ALLOWED_EAN_EXTENSIONS"})(kd||(kd={}));var Ct=kd,PW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Me=function(t){PW(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.getFormatInstance=function(){return new e},e.kind="FormatException",e}(ir),LW=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Tt;(function(t){t[t.Cp437=0]="Cp437",t[t.ISO8859_1=1]="ISO8859_1",t[t.ISO8859_2=2]="ISO8859_2",t[t.ISO8859_3=3]="ISO8859_3",t[t.ISO8859_4=4]="ISO8859_4",t[t.ISO8859_5=5]="ISO8859_5",t[t.ISO8859_6=6]="ISO8859_6",t[t.ISO8859_7=7]="ISO8859_7",t[t.ISO8859_8=8]="ISO8859_8",t[t.ISO8859_9=9]="ISO8859_9",t[t.ISO8859_10=10]="ISO8859_10",t[t.ISO8859_11=11]="ISO8859_11",t[t.ISO8859_13=12]="ISO8859_13",t[t.ISO8859_14=13]="ISO8859_14",t[t.ISO8859_15=14]="ISO8859_15",t[t.ISO8859_16=15]="ISO8859_16",t[t.SJIS=16]="SJIS",t[t.Cp1250=17]="Cp1250",t[t.Cp1251=18]="Cp1251",t[t.Cp1252=19]="Cp1252",t[t.Cp1256=20]="Cp1256",t[t.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",t[t.UTF8=22]="UTF8",t[t.ASCII=23]="ASCII",t[t.Big5=24]="Big5",t[t.GB18030=25]="GB18030",t[t.EUC_KR=26]="EUC_KR"})(Tt||(Tt={}));var cn=function(){function t(e,n,r){for(var i,o,a=[],s=3;s<arguments.length;s++)a[s-3]=arguments[s];this.valueIdentifier=e,this.name=r,typeof n=="number"?this.values=Int32Array.from([n]):this.values=n,this.otherEncodingNames=a,t.VALUE_IDENTIFIER_TO_ECI.set(e,this),t.NAME_TO_ECI.set(r,this);for(var c=this.values,u=0,l=c.length;u!==l;u++){var h=c[u];t.VALUES_TO_ECI.set(h,this)}try{for(var f=LW(a),d=f.next();!d.done;d=f.next()){var p=d.value;t.NAME_TO_ECI.set(p,this)}}catch(g){i={error:g}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}}return t.prototype.getValueIdentifier=function(){return this.valueIdentifier},t.prototype.getName=function(){return this.name},t.prototype.getValue=function(){return this.values[0]},t.getCharacterSetECIByValue=function(e){if(e<0||e>=900)throw new Me("incorect value");var n=t.VALUES_TO_ECI.get(e);if(n===void 0)throw new Me("incorect value");return n},t.getCharacterSetECIByName=function(e){var n=t.NAME_TO_ECI.get(e);if(n===void 0)throw new Me("incorect value");return n},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.getName()===n.getName()},t.VALUE_IDENTIFIER_TO_ECI=new Map,t.VALUES_TO_ECI=new Map,t.NAME_TO_ECI=new Map,t.Cp437=new t(Tt.Cp437,Int32Array.from([0,2]),"Cp437"),t.ISO8859_1=new t(Tt.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),t.ISO8859_2=new t(Tt.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),t.ISO8859_3=new t(Tt.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),t.ISO8859_4=new t(Tt.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),t.ISO8859_5=new t(Tt.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),t.ISO8859_6=new t(Tt.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),t.ISO8859_7=new t(Tt.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),t.ISO8859_8=new t(Tt.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),t.ISO8859_9=new t(Tt.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),t.ISO8859_10=new t(Tt.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),t.ISO8859_11=new t(Tt.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),t.ISO8859_13=new t(Tt.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),t.ISO8859_14=new t(Tt.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),t.ISO8859_15=new t(Tt.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),t.ISO8859_16=new t(Tt.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),t.SJIS=new t(Tt.SJIS,20,"SJIS","Shift_JIS"),t.Cp1250=new t(Tt.Cp1250,21,"Cp1250","windows-1250"),t.Cp1251=new t(Tt.Cp1251,22,"Cp1251","windows-1251"),t.Cp1252=new t(Tt.Cp1252,23,"Cp1252","windows-1252"),t.Cp1256=new t(Tt.Cp1256,24,"Cp1256","windows-1256"),t.UnicodeBigUnmarked=new t(Tt.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),t.UTF8=new t(Tt.UTF8,26,"UTF8","UTF-8"),t.ASCII=new t(Tt.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),t.Big5=new t(Tt.Big5,28,"Big5"),t.GB18030=new t(Tt.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),t.EUC_KR=new t(Tt.EUC_KR,30,"EUC_KR","EUC-KR"),t}(),MW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),au=function(t){MW(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="UnsupportedOperationException",e}(ir),_r=function(){function t(){}return t.decode=function(e,n){var r=this.encodingName(n);return this.customDecoder?this.customDecoder(e,r):typeof TextDecoder=="undefined"||this.shouldDecodeOnFallback(r)?this.decodeFallback(e,r):new TextDecoder(r).decode(e)},t.shouldDecodeOnFallback=function(e){return!t.isBrowser()&&e==="ISO-8859-1"},t.encode=function(e,n){var r=this.encodingName(n);return this.customEncoder?this.customEncoder(e,r):typeof TextEncoder=="undefined"?this.encodeFallback(e):new TextEncoder().encode(e)},t.isBrowser=function(){return typeof window!="undefined"&&{}.toString.call(window)==="[object Window]"},t.encodingName=function(e){return typeof e=="string"?e:e.getName()},t.encodingCharacterSet=function(e){return e instanceof cn?e:cn.getCharacterSetECIByName(e)},t.decodeFallback=function(e,n){var r=this.encodingCharacterSet(n);if(t.isDecodeFallbackSupported(r)){for(var i="",o=0,a=e.length;o<a;o++){var s=e[o].toString(16);s.length<2&&(s="0"+s),i+="%"+s}return decodeURIComponent(i)}if(r.equals(cn.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(e.buffer));throw new au("Encoding "+this.encodingName(n)+" not supported by fallback.")},t.isDecodeFallbackSupported=function(e){return e.equals(cn.UTF8)||e.equals(cn.ISO8859_1)||e.equals(cn.ASCII)},t.encodeFallback=function(e){for(var n=btoa(unescape(encodeURIComponent(e))),r=n.split(""),i=[],o=0;o<r.length;o++)i.push(r[o].charCodeAt(0));return new Uint8Array(i)},t}(),Lt=function(){function t(){}return t.castAsNonUtf8Char=function(e,n){n===void 0&&(n=null);var r=n?n.getName():this.ISO88591;return _r.decode(new Uint8Array([e]),r)},t.guessEncoding=function(e,n){if(n!=null&&n.get(Ct.CHARACTER_SET)!==void 0)return n.get(Ct.CHARACTER_SET).toString();for(var r=e.length,i=!0,o=!0,a=!0,s=0,c=0,u=0,l=0,h=0,f=0,d=0,p=0,g=0,y=0,R=0,m=e.length>3&&e[0]===239&&e[1]===187&&e[2]===191,v=0;v<r&&(i||o||a);v++){var x=e[v]&255;a&&(s>0?(x&128)===0?a=!1:s--:(x&128)!==0&&((x&64)===0?a=!1:(s++,(x&32)===0?c++:(s++,(x&16)===0?u++:(s++,(x&8)===0?l++:a=!1))))),i&&(x>127&&x<160?i=!1:x>159&&(x<192||x===215||x===247)&&R++),o&&(h>0?x<64||x===127||x>252?o=!1:h--:x===128||x===160||x>239?o=!1:x>160&&x<224?(f++,p=0,d++,d>g&&(g=d)):x>127?(h++,d=0,p++,p>y&&(y=p)):(d=0,p=0))}return a&&s>0&&(a=!1),o&&h>0&&(o=!1),a&&(m||c+u+l>0)?t.UTF8:o&&(t.ASSUME_SHIFT_JIS||g>=3||y>=3)?t.SHIFT_JIS:i&&o?g===2&&f===2||R*10>=r?t.SHIFT_JIS:t.ISO88591:i?t.ISO88591:o?t.SHIFT_JIS:a?t.UTF8:t.PLATFORM_DEFAULT_ENCODING},t.format=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=-1;function o(s,c,u,l,h,f){if(s==="%%")return"%";if(n[++i]!==void 0){s=l?parseInt(l.substr(1)):void 0;var d=h?parseInt(h.substr(1)):void 0,p;switch(f){case"s":p=n[i];break;case"c":p=n[i][0];break;case"f":p=parseFloat(n[i]).toFixed(s);break;case"p":p=parseFloat(n[i]).toPrecision(s);break;case"e":p=parseFloat(n[i]).toExponential(s);break;case"x":p=parseInt(n[i]).toString(d||16);break;case"d":p=parseFloat(parseInt(n[i],d||10).toPrecision(s)).toFixed(0);break}p=typeof p=="object"?JSON.stringify(p):(+p).toString(d);for(var g=parseInt(u),y=u&&u[0]+""=="0"?"0":" ";p.length<g;)p=c!==void 0?p+y:y+p;return p}}var a=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return e.replace(a,o)},t.getBytes=function(e,n){return _r.encode(e,n)},t.getCharCode=function(e,n){return n===void 0&&(n=0),e.charCodeAt(n)},t.getCharAt=function(e){return String.fromCharCode(e)},t.SHIFT_JIS=cn.SJIS.getName(),t.GB2312="GB2312",t.ISO88591=cn.ISO8859_1.getName(),t.EUC_JP="EUC_JP",t.UTF8=cn.UTF8.getName(),t.PLATFORM_DEFAULT_ENCODING=t.UTF8,t.ASSUME_SHIFT_JIS=!1,t}(),rt=function(){function t(e){e===void 0&&(e=""),this.value=e}return t.prototype.enableDecoding=function(e){return this.encoding=e,this},t.prototype.append=function(e){return typeof e=="string"?this.value+=e.toString():this.encoding?this.value+=Lt.castAsNonUtf8Char(e,this.encoding):this.value+=String.fromCharCode(e),this},t.prototype.appendChars=function(e,n,r){for(var i=n;n<n+r;i++)this.append(e[i]);return this},t.prototype.length=function(){return this.value.length},t.prototype.charAt=function(e){return this.value.charAt(e)},t.prototype.deleteCharAt=function(e){this.value=this.value.substr(0,e)+this.value.substring(e+1)},t.prototype.setCharAt=function(e,n){this.value=this.value.substr(0,e)+n+this.value.substr(e+1)},t.prototype.substring=function(e,n){return this.value.substring(e,n)},t.prototype.setLengthToZero=function(){this.value=""},t.prototype.toString=function(){return this.value},t.prototype.insert=function(e,n){this.value=this.value.substring(0,e)+n+this.value.substring(e)},t}(),yi=function(){function t(e,n,r,i){if(this.width=e,this.height=n,this.rowSize=r,this.bits=i,n==null&&(n=e),this.height=n,e<1||n<1)throw new Je("Both dimensions must be greater than 0");r==null&&(r=Math.floor((e+31)/32)),this.rowSize=r,i==null&&(this.bits=new Int32Array(this.rowSize*this.height))}return t.parseFromBooleanArray=function(e){for(var n=e.length,r=e[0].length,i=new t(r,n),o=0;o<n;o++)for(var a=e[o],s=0;s<r;s++)a[s]&&i.set(s,o);return i},t.parseFromString=function(e,n,r){if(e===null)throw new Je("stringRepresentation cannot be null");for(var i=new Array(e.length),o=0,a=0,s=-1,c=0,u=0;u<e.length;)if(e.charAt(u)===`
|
|
`||e.charAt(u)==="\r"){if(o>a){if(s===-1)s=o-a;else if(o-a!==s)throw new Je("row lengths do not match");a=o,c++}u++}else if(e.substring(u,u+n.length)===n)u+=n.length,i[o]=!0,o++;else if(e.substring(u,u+r.length)===r)u+=r.length,i[o]=!1,o++;else throw new Je("illegal character encountered: "+e.substring(u));if(o>a){if(s===-1)s=o-a;else if(o-a!==s)throw new Je("row lengths do not match");c++}for(var l=new t(s,c),h=0;h<o;h++)i[h]&&l.set(Math.floor(h%s),Math.floor(h/s));return l},t.prototype.get=function(e,n){var r=n*this.rowSize+Math.floor(e/32);return(this.bits[r]>>>(e&31)&1)!==0},t.prototype.set=function(e,n){var r=n*this.rowSize+Math.floor(e/32);this.bits[r]|=1<<(e&31)&4294967295},t.prototype.unset=function(e,n){var r=n*this.rowSize+Math.floor(e/32);this.bits[r]&=~(1<<(e&31)&4294967295)},t.prototype.flip=function(e,n){var r=n*this.rowSize+Math.floor(e/32);this.bits[r]^=1<<(e&31)&4294967295},t.prototype.xor=function(e){if(this.width!==e.getWidth()||this.height!==e.getHeight()||this.rowSize!==e.getRowSize())throw new Je("input matrix dimensions do not match");for(var n=new $n(Math.floor(this.width/32)+1),r=this.rowSize,i=this.bits,o=0,a=this.height;o<a;o++)for(var s=o*r,c=e.getRow(o,n).getBitArray(),u=0;u<r;u++)i[s+u]^=c[u]},t.prototype.clear=function(){for(var e=this.bits,n=e.length,r=0;r<n;r++)e[r]=0},t.prototype.setRegion=function(e,n,r,i){if(n<0||e<0)throw new Je("Left and top must be nonnegative");if(i<1||r<1)throw new Je("Height and width must be at least 1");var o=e+r,a=n+i;if(a>this.height||o>this.width)throw new Je("The region must fit inside the matrix");for(var s=this.rowSize,c=this.bits,u=n;u<a;u++)for(var l=u*s,h=e;h<o;h++)c[l+Math.floor(h/32)]|=1<<(h&31)&4294967295},t.prototype.getRow=function(e,n){n==null||n.getSize()<this.width?n=new $n(this.width):n.clear();for(var r=this.rowSize,i=this.bits,o=e*r,a=0;a<r;a++)n.setBulk(a*32,i[o+a]);return n},t.prototype.setRow=function(e,n){Mt.arraycopy(n.getBitArray(),0,this.bits,e*this.rowSize,this.rowSize)},t.prototype.rotate180=function(){for(var e=this.getWidth(),n=this.getHeight(),r=new $n(e),i=new $n(e),o=0,a=Math.floor((n+1)/2);o<a;o++)r=this.getRow(o,r),i=this.getRow(n-1-o,i),r.reverse(),i.reverse(),this.setRow(o,i),this.setRow(n-1-o,r)},t.prototype.getEnclosingRectangle=function(){for(var e=this.width,n=this.height,r=this.rowSize,i=this.bits,o=e,a=n,s=-1,c=-1,u=0;u<n;u++)for(var l=0;l<r;l++){var h=i[u*r+l];if(h!==0){if(u<a&&(a=u),u>c&&(c=u),l*32<o){for(var f=0;(h<<31-f&4294967295)===0;)f++;l*32+f<o&&(o=l*32+f)}if(l*32+31>s){for(var f=31;h>>>f===0;)f--;l*32+f>s&&(s=l*32+f)}}}return s<o||c<a?null:Int32Array.from([o,a,s-o+1,c-a+1])},t.prototype.getTopLeftOnBit=function(){for(var e=this.rowSize,n=this.bits,r=0;r<n.length&&n[r]===0;)r++;if(r===n.length)return null;for(var i=r/e,o=r%e*32,a=n[r],s=0;(a<<31-s&4294967295)===0;)s++;return o+=s,Int32Array.from([o,i])},t.prototype.getBottomRightOnBit=function(){for(var e=this.rowSize,n=this.bits,r=n.length-1;r>=0&&n[r]===0;)r--;if(r<0)return null;for(var i=Math.floor(r/e),o=Math.floor(r%e)*32,a=n[r],s=31;a>>>s===0;)s--;return o+=s,Int32Array.from([o,i])},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRowSize=function(){return this.rowSize},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.width===n.width&&this.height===n.height&&this.rowSize===n.rowSize&&un.equals(this.bits,n.bits)},t.prototype.hashCode=function(){var e=this.width;return e=31*e+this.width,e=31*e+this.height,e=31*e+this.rowSize,e=31*e+un.hashCode(this.bits),e},t.prototype.toString=function(e,n,r){return e===void 0&&(e="X "),n===void 0&&(n=" "),r===void 0&&(r=`
|
|
`),this.buildToString(e,n,r)},t.prototype.buildToString=function(e,n,r){for(var i=new rt,o=0,a=this.height;o<a;o++){for(var s=0,c=this.width;s<c;s++)i.append(this.get(s,o)?e:n);i.append(r)}return i.toString()},t.prototype.clone=function(){return new t(this.width,this.height,this.rowSize,this.bits.slice())},t}(),CW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),De=function(t){CW(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.getNotFoundInstance=function(){return new e},e.kind="NotFoundException",e}(ir),AW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),UW=function(t){AW(e,t);function e(n){var r=t.call(this,n)||this;return r.luminances=e.EMPTY,r.buckets=new Int32Array(e.LUMINANCE_BUCKETS),r}return e.prototype.getBlackRow=function(n,r){var i=this.getLuminanceSource(),o=i.getWidth();r==null||r.getSize()<o?r=new $n(o):r.clear(),this.initArrays(o);for(var a=i.getRow(n,this.luminances),s=this.buckets,c=0;c<o;c++)s[(a[c]&255)>>e.LUMINANCE_SHIFT]++;var u=e.estimateBlackPoint(s);if(o<3)for(var c=0;c<o;c++)(a[c]&255)<u&&r.set(c);else for(var l=a[0]&255,h=a[1]&255,c=1;c<o-1;c++){var f=a[c+1]&255;(h*4-l-f)/2<u&&r.set(c),l=h,h=f}return r},e.prototype.getBlackMatrix=function(){var n=this.getLuminanceSource(),r=n.getWidth(),i=n.getHeight(),o=new yi(r,i);this.initArrays(r);for(var a=this.buckets,s=1;s<5;s++)for(var c=Math.floor(i*s/5),u=n.getRow(c,this.luminances),l=Math.floor(r*4/5),h=Math.floor(r/5);h<l;h++){var f=u[h]&255;a[f>>e.LUMINANCE_SHIFT]++}for(var d=e.estimateBlackPoint(a),p=n.getMatrix(),s=0;s<i;s++)for(var g=s*r,h=0;h<r;h++){var f=p[g+h]&255;f<d&&o.set(h,s)}return o},e.prototype.createBinarizer=function(n){return new e(n)},e.prototype.initArrays=function(n){this.luminances.length<n&&(this.luminances=new Uint8ClampedArray(n));for(var r=this.buckets,i=0;i<e.LUMINANCE_BUCKETS;i++)r[i]=0},e.estimateBlackPoint=function(n){for(var r=n.length,i=0,o=0,a=0,s=0;s<r;s++)n[s]>a&&(o=s,a=n[s]),n[s]>i&&(i=n[s]);for(var c=0,u=0,s=0;s<r;s++){var l=s-o,h=n[s]*l*l;h>u&&(c=s,u=h)}if(o>c){var f=o;o=c,c=f}if(c-o<=r/16)throw new De;for(var d=c-1,p=-1,s=c-1;s>o;s--){var g=s-o,h=g*g*(c-s)*(i-n[s]);h>p&&(d=s,p=h)}return d<<e.LUMINANCE_SHIFT},e.LUMINANCE_BITS=5,e.LUMINANCE_SHIFT=8-e.LUMINANCE_BITS,e.LUMINANCE_BUCKETS=1<<e.LUMINANCE_BITS,e.EMPTY=Uint8ClampedArray.from([0]),e}(EW),WW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),gb=function(t){WW(e,t);function e(n){var r=t.call(this,n)||this;return r.matrix=null,r}return e.prototype.getBlackMatrix=function(){if(this.matrix!==null)return this.matrix;var n=this.getLuminanceSource(),r=n.getWidth(),i=n.getHeight();if(r>=e.MINIMUM_DIMENSION&&i>=e.MINIMUM_DIMENSION){var o=n.getMatrix(),a=r>>e.BLOCK_SIZE_POWER;(r&e.BLOCK_SIZE_MASK)!==0&&a++;var s=i>>e.BLOCK_SIZE_POWER;(i&e.BLOCK_SIZE_MASK)!==0&&s++;var c=e.calculateBlackPoints(o,a,s,r,i),u=new yi(r,i);e.calculateThresholdForBlock(o,a,s,r,i,c,u),this.matrix=u}else this.matrix=t.prototype.getBlackMatrix.call(this);return this.matrix},e.prototype.createBinarizer=function(n){return new e(n)},e.calculateThresholdForBlock=function(n,r,i,o,a,s,c){for(var u=a-e.BLOCK_SIZE,l=o-e.BLOCK_SIZE,h=0;h<i;h++){var f=h<<e.BLOCK_SIZE_POWER;f>u&&(f=u);for(var d=e.cap(h,2,i-3),p=0;p<r;p++){var g=p<<e.BLOCK_SIZE_POWER;g>l&&(g=l);for(var y=e.cap(p,2,r-3),R=0,m=-2;m<=2;m++){var v=s[d+m];R+=v[y-2]+v[y-1]+v[y]+v[y+1]+v[y+2]}var x=R/25;e.thresholdBlock(n,g,f,x,o,c)}}},e.cap=function(n,r,i){return n<r?r:n>i?i:n},e.thresholdBlock=function(n,r,i,o,a,s){for(var c=0,u=i*a+r;c<e.BLOCK_SIZE;c++,u+=a)for(var l=0;l<e.BLOCK_SIZE;l++)(n[u+l]&255)<=o&&s.set(r+l,i+c)},e.calculateBlackPoints=function(n,r,i,o,a){for(var s=a-e.BLOCK_SIZE,c=o-e.BLOCK_SIZE,u=new Array(i),l=0;l<i;l++){u[l]=new Int32Array(r);var h=l<<e.BLOCK_SIZE_POWER;h>s&&(h=s);for(var f=0;f<r;f++){var d=f<<e.BLOCK_SIZE_POWER;d>c&&(d=c);for(var p=0,g=255,y=0,R=0,m=h*o+d;R<e.BLOCK_SIZE;R++,m+=o){for(var v=0;v<e.BLOCK_SIZE;v++){var x=n[m+v]&255;p+=x,x<g&&(g=x),x>y&&(y=x)}if(y-g>e.MIN_DYNAMIC_RANGE)for(R++,m+=o;R<e.BLOCK_SIZE;R++,m+=o)for(var v=0;v<e.BLOCK_SIZE;v++)p+=n[m+v]&255}var _=p>>e.BLOCK_SIZE_POWER*2;if(y-g<=e.MIN_DYNAMIC_RANGE&&(_=g/2,l>0&&f>0)){var E=(u[l-1][f]+2*u[l][f-1]+u[l-1][f-1])/4;g<E&&(_=E)}u[l][f]=_}}return u},e.BLOCK_SIZE_POWER=3,e.BLOCK_SIZE=1<<e.BLOCK_SIZE_POWER,e.BLOCK_SIZE_MASK=e.BLOCK_SIZE-1,e.MINIMUM_DIMENSION=e.BLOCK_SIZE*5,e.MIN_DYNAMIC_RANGE=24,e}(UW),lc=function(){function t(e,n){this.width=e,this.height=n}return t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.isCropSupported=function(){return!1},t.prototype.crop=function(e,n,r,i){throw new au("This luminance source does not support cropping.")},t.prototype.isRotateSupported=function(){return!1},t.prototype.rotateCounterClockwise=function(){throw new au("This luminance source does not support rotation by 90 degrees.")},t.prototype.rotateCounterClockwise45=function(){throw new au("This luminance source does not support rotation by 45 degrees.")},t.prototype.toString=function(){for(var e=new Uint8ClampedArray(this.width),n=new rt,r=0;r<this.height;r++){for(var i=this.getRow(r,e),o=0;o<this.width;o++){var a=i[o]&255,s=void 0;a<64?s="#":a<128?s="+":a<192?s=".":s=" ",n.append(s)}n.append(`
|
|
`)}return n.toString()},t}(),XW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),vl=function(t){XW(e,t);function e(n){var r=t.call(this,n.getWidth(),n.getHeight())||this;return r.delegate=n,r}return e.prototype.getRow=function(n,r){for(var i=this.delegate.getRow(n,r),o=this.getWidth(),a=0;a<o;a++)i[a]=255-(i[a]&255);return i},e.prototype.getMatrix=function(){for(var n=this.delegate.getMatrix(),r=this.getWidth()*this.getHeight(),i=new Uint8ClampedArray(r),o=0;o<r;o++)i[o]=255-(n[o]&255);return i},e.prototype.isCropSupported=function(){return this.delegate.isCropSupported()},e.prototype.crop=function(n,r,i,o){return new e(this.delegate.crop(n,r,i,o))},e.prototype.isRotateSupported=function(){return this.delegate.isRotateSupported()},e.prototype.invert=function(){return this.delegate},e.prototype.rotateCounterClockwise=function(){return new e(this.delegate.rotateCounterClockwise())},e.prototype.rotateCounterClockwise45=function(){return new e(this.delegate.rotateCounterClockwise45())},e}(lc),VW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),YW=function(t){VW(e,t);function e(n){var r=t.call(this,n.width,n.height)||this;return r.canvas=n,r.tempCanvasElement=null,r.buffer=e.makeBufferFromCanvasImageData(n),r}return e.makeBufferFromCanvasImageData=function(n){var r=n.getContext("2d").getImageData(0,0,n.width,n.height);return e.toGrayscaleBuffer(r.data,n.width,n.height)},e.toGrayscaleBuffer=function(n,r,i){var o=new Uint8ClampedArray(r*i);if(e.FRAME_INDEX=!e.FRAME_INDEX,e.FRAME_INDEX)for(var a=0,s=0,c=n.length;a<c;a+=4,s++){var u=void 0,l=n[a+3];if(l===0)u=255;else{var h=n[a],f=n[a+1],d=n[a+2];u=306*h+601*f+117*d+512>>10}o[s]=u}else for(var a=0,s=0,p=n.length;a<p;a+=4,s++){var u=void 0,l=n[a+3];if(l===0)u=255;else{var h=n[a],f=n[a+1],d=n[a+2];u=306*h+601*f+117*d+512>>10}o[s]=255-u}return o},e.prototype.getRow=function(n,r){if(n<0||n>=this.getHeight())throw new Je("Requested row is outside the image: "+n);var i=this.getWidth(),o=n*i;return r===null?r=this.buffer.slice(o,o+i):(r.length<i&&(r=new Uint8ClampedArray(i)),r.set(this.buffer.slice(o,o+i))),r},e.prototype.getMatrix=function(){return this.buffer},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(n,r,i,o){return t.prototype.crop.call(this,n,r,i,o),this},e.prototype.isRotateSupported=function(){return!0},e.prototype.rotateCounterClockwise=function(){return this.rotate(-90),this},e.prototype.rotateCounterClockwise45=function(){return this.rotate(-45),this},e.prototype.getTempCanvasElement=function(){if(this.tempCanvasElement===null){var n=this.canvas.ownerDocument.createElement("canvas");n.width=this.canvas.width,n.height=this.canvas.height,this.tempCanvasElement=n}return this.tempCanvasElement},e.prototype.rotate=function(n){var r=this.getTempCanvasElement(),i=r.getContext("2d"),o=n*e.DEGREE_TO_RADIANS,a=this.canvas.width,s=this.canvas.height,c=Math.ceil(Math.abs(Math.cos(o))*a+Math.abs(Math.sin(o))*s),u=Math.ceil(Math.abs(Math.sin(o))*a+Math.abs(Math.cos(o))*s);return r.width=c,r.height=u,i.translate(c/2,u/2),i.rotate(o),i.drawImage(this.canvas,a/-2,s/-2),this.buffer=e.makeBufferFromCanvasImageData(r),this},e.prototype.invert=function(){return new vl(this)},e.DEGREE_TO_RADIANS=Math.PI/180,e.FRAME_INDEX=!0,e}(lc),BW=function(){function t(e,n,r){this.deviceId=e,this.label=n,this.kind="videoinput",this.groupId=r||void 0}return t.prototype.toJSON=function(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}},t}(),Yn=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{u(r.next(l))}catch(h){a(h)}}function c(l){try{u(r.throw(l))}catch(h){a(h)}}function u(l){l.done?o(l.value):i(l.value).then(s,c)}u((r=r.apply(t,e||[])).next())})},Bn=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(l){return c([u,l])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(l){u=[6,l],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},kW=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Xa=function(){function t(e,n,r){n===void 0&&(n=500),this.reader=e,this.timeBetweenScansMillis=n,this._hints=r,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}return Object.defineProperty(t.prototype,"hasNavigator",{get:function(){return typeof navigator!="undefined"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMediaDevicesSuported",{get:function(){return this.hasNavigator&&!!navigator.mediaDevices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canEnumerateDevices",{get:function(){return!!(this.isMediaDevicesSuported&&navigator.mediaDevices.enumerateDevices)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeBetweenDecodingAttempts",{get:function(){return this._timeBetweenDecodingAttempts},set:function(e){this._timeBetweenDecodingAttempts=e<0?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hints",{get:function(){return this._hints},set:function(e){this._hints=e||null},enumerable:!1,configurable:!0}),t.prototype.listVideoInputDevices=function(){return Yn(this,void 0,void 0,function(){var e,n,r,i,o,a,s,c,u,l,h,f;return Bn(this,function(d){switch(d.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:e=d.sent(),n=[];try{for(r=kW(e),i=r.next();!i.done;i=r.next())o=i.value,a=o.kind==="video"?"videoinput":o.kind,a==="videoinput"&&(s=o.deviceId||o.id,c=o.label||"Video device "+(n.length+1),u=o.groupId,l={deviceId:s,label:c,kind:a,groupId:u},n.push(l))}catch(p){h={error:p}}finally{try{i&&!i.done&&(f=r.return)&&f.call(r)}finally{if(h)throw h.error}}return[2,n]}})})},t.prototype.getVideoInputDevices=function(){return Yn(this,void 0,void 0,function(){var e;return Bn(this,function(n){switch(n.label){case 0:return[4,this.listVideoInputDevices()];case 1:return e=n.sent(),[2,e.map(function(r){return new BW(r.deviceId,r.label)})]}})})},t.prototype.findDeviceById=function(e){return Yn(this,void 0,void 0,function(){var n;return Bn(this,function(r){switch(r.label){case 0:return[4,this.listVideoInputDevices()];case 1:return n=r.sent(),n?[2,n.find(function(i){return i.deviceId===e})]:[2,null]}})})},t.prototype.decodeFromInputVideoDevice=function(e,n){return Yn(this,void 0,void 0,function(){return Bn(this,function(r){switch(r.label){case 0:return[4,this.decodeOnceFromVideoDevice(e,n)];case 1:return[2,r.sent()]}})})},t.prototype.decodeOnceFromVideoDevice=function(e,n){return Yn(this,void 0,void 0,function(){var r,i;return Bn(this,function(o){switch(o.label){case 0:return this.reset(),e?r={deviceId:{exact:e}}:r={facingMode:"environment"},i={video:r},[4,this.decodeOnceFromConstraints(i,n)];case 1:return[2,o.sent()]}})})},t.prototype.decodeOnceFromConstraints=function(e,n){return Yn(this,void 0,void 0,function(){var r;return Bn(this,function(i){switch(i.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return r=i.sent(),[4,this.decodeOnceFromStream(r,n)];case 2:return[2,i.sent()]}})})},t.prototype.decodeOnceFromStream=function(e,n){return Yn(this,void 0,void 0,function(){var r,i;return Bn(this,function(o){switch(o.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,n)];case 1:return r=o.sent(),[4,this.decodeOnce(r)];case 2:return i=o.sent(),[2,i]}})})},t.prototype.decodeFromInputVideoDeviceContinuously=function(e,n,r){return Yn(this,void 0,void 0,function(){return Bn(this,function(i){switch(i.label){case 0:return[4,this.decodeFromVideoDevice(e,n,r)];case 1:return[2,i.sent()]}})})},t.prototype.decodeFromVideoDevice=function(e,n,r){return Yn(this,void 0,void 0,function(){var i,o;return Bn(this,function(a){switch(a.label){case 0:return e?i={deviceId:{exact:e}}:i={facingMode:"environment"},o={video:i},[4,this.decodeFromConstraints(o,n,r)];case 1:return[2,a.sent()]}})})},t.prototype.decodeFromConstraints=function(e,n,r){return Yn(this,void 0,void 0,function(){var i;return Bn(this,function(o){switch(o.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return i=o.sent(),[4,this.decodeFromStream(i,n,r)];case 2:return[2,o.sent()]}})})},t.prototype.decodeFromStream=function(e,n,r){return Yn(this,void 0,void 0,function(){var i;return Bn(this,function(o){switch(o.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,n)];case 1:return i=o.sent(),[4,this.decodeContinuously(i,r)];case 2:return[2,o.sent()]}})})},t.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},t.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},t.prototype.attachStreamToVideo=function(e,n){return Yn(this,void 0,void 0,function(){var r;return Bn(this,function(i){switch(i.label){case 0:return r=this.prepareVideoElement(n),this.addVideoSource(r,e),this.videoElement=r,this.stream=e,[4,this.playVideoOnLoadAsync(r)];case 1:return i.sent(),[2,r]}})})},t.prototype.playVideoOnLoadAsync=function(e){var n=this;return new Promise(function(r,i){return n.playVideoOnLoad(e,function(){return r()})})},t.prototype.playVideoOnLoad=function(e,n){var r=this;this.videoEndedListener=function(){return r.stopStreams()},this.videoCanPlayListener=function(){return r.tryPlayVideo(e)},e.addEventListener("ended",this.videoEndedListener),e.addEventListener("canplay",this.videoCanPlayListener),e.addEventListener("playing",n),this.tryPlayVideo(e)},t.prototype.isVideoPlaying=function(e){return e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2},t.prototype.tryPlayVideo=function(e){return Yn(this,void 0,void 0,function(){return Bn(this,function(n){switch(n.label){case 0:if(this.isVideoPlaying(e))return console.warn("Trying to play video that is already playing."),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,e.play()];case 2:return n.sent(),[3,4];case 3:return n.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}})})},t.prototype.getMediaElement=function(e,n){var r=document.getElementById(e);if(!r)throw new Jt("element with id '"+e+"' not found");if(r.nodeName.toLowerCase()!==n.toLowerCase())throw new Jt("element with id '"+e+"' must be an "+n+" element");return r},t.prototype.decodeFromImage=function(e,n){if(!e&&!n)throw new Jt("either imageElement with a src set or an url must be provided");return n&&!e?this.decodeFromImageUrl(n):this.decodeFromImageElement(e)},t.prototype.decodeFromVideo=function(e,n){if(!e&&!n)throw new Jt("Either an element with a src set or an URL must be provided");return n&&!e?this.decodeFromVideoUrl(n):this.decodeFromVideoElement(e)},t.prototype.decodeFromVideoContinuously=function(e,n,r){if(e===void 0&&n===void 0)throw new Jt("Either an element with a src set or an URL must be provided");return n&&!e?this.decodeFromVideoUrlContinuously(n,r):this.decodeFromVideoElementContinuously(e,r)},t.prototype.decodeFromImageElement=function(e){if(!e)throw new Jt("An image element must be provided.");this.reset();var n=this.prepareImageElement(e);this.imageElement=n;var r;return this.isImageLoaded(n)?r=this.decodeOnce(n,!1,!0):r=this._decodeOnLoadImage(n),r},t.prototype.decodeFromVideoElement=function(e){var n=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideo(n)},t.prototype.decodeFromVideoElementContinuously=function(e,n){var r=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideoContinuously(r,n)},t.prototype._decodeFromVideoElementSetup=function(e){if(!e)throw new Jt("A video element must be provided.");this.reset();var n=this.prepareVideoElement(e);return this.videoElement=n,n},t.prototype.decodeFromImageUrl=function(e){if(!e)throw new Jt("An URL must be provided.");this.reset();var n=this.prepareImageElement();this.imageElement=n;var r=this._decodeOnLoadImage(n);return n.src=e,r},t.prototype.decodeFromVideoUrl=function(e){if(!e)throw new Jt("An URL must be provided.");this.reset();var n=this.prepareVideoElement(),r=this.decodeFromVideoElement(n);return n.src=e,r},t.prototype.decodeFromVideoUrlContinuously=function(e,n){if(!e)throw new Jt("An URL must be provided.");this.reset();var r=this.prepareVideoElement(),i=this.decodeFromVideoElementContinuously(r,n);return r.src=e,i},t.prototype._decodeOnLoadImage=function(e){var n=this;return new Promise(function(r,i){n.imageLoadedListener=function(){return n.decodeOnce(e,!1,!0).then(r,i)},e.addEventListener("load",n.imageLoadedListener)})},t.prototype._decodeOnLoadVideo=function(e){return Yn(this,void 0,void 0,function(){return Bn(this,function(n){switch(n.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return n.sent(),[4,this.decodeOnce(e)];case 2:return[2,n.sent()]}})})},t.prototype._decodeOnLoadVideoContinuously=function(e,n){return Yn(this,void 0,void 0,function(){return Bn(this,function(r){switch(r.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return r.sent(),this.decodeContinuously(e,n),[2]}})})},t.prototype.isImageLoaded=function(e){return!(!e.complete||e.naturalWidth===0)},t.prototype.prepareImageElement=function(e){var n;return typeof e=="undefined"&&(n=document.createElement("img"),n.width=200,n.height=200),typeof e=="string"&&(n=this.getMediaElement(e,"img")),e instanceof HTMLImageElement&&(n=e),n},t.prototype.prepareVideoElement=function(e){var n;return!e&&typeof document!="undefined"&&(n=document.createElement("video"),n.width=200,n.height=200),typeof e=="string"&&(n=this.getMediaElement(e,"video")),e instanceof HTMLVideoElement&&(n=e),n.setAttribute("autoplay","true"),n.setAttribute("muted","true"),n.setAttribute("playsinline","true"),n},t.prototype.decodeOnce=function(e,n,r){var i=this;n===void 0&&(n=!0),r===void 0&&(r=!0),this._stopAsyncDecode=!1;var o=function(a,s){if(i._stopAsyncDecode){s(new De("Video stream has ended before any code could be detected.")),i._stopAsyncDecode=void 0;return}try{var c=i.decode(e);a(c)}catch(f){var u=n&&f instanceof De,l=f instanceof tn||f instanceof Me,h=l&&r;if(u||h)return setTimeout(o,i._timeBetweenDecodingAttempts,a,s);s(f)}};return new Promise(function(a,s){return o(a,s)})},t.prototype.decodeContinuously=function(e,n){var r=this;this._stopContinuousDecode=!1;var i=function(){if(r._stopContinuousDecode){r._stopContinuousDecode=void 0;return}try{var o=r.decode(e);n(o,null),setTimeout(i,r.timeBetweenScansMillis)}catch(c){n(null,c);var a=c instanceof tn||c instanceof Me,s=c instanceof De;(a||s)&&setTimeout(i,r._timeBetweenDecodingAttempts)}};i()},t.prototype.decode=function(e){var n=this.createBinaryBitmap(e);return this.decodeBitmap(n)},t.prototype.createBinaryBitmap=function(e){this.getCaptureCanvasContext(e),e instanceof HTMLVideoElement?this.drawFrameOnCanvas(e):this.drawImageOnCanvas(e);var n=this.getCaptureCanvas(e),r=new YW(n),i=new gb(r);return new pb(i)},t.prototype.getCaptureCanvasContext=function(e){if(!this.captureCanvasContext){var n=this.getCaptureCanvas(e),r=void 0;try{r=n.getContext("2d",{willReadFrequently:!0})}catch{r=n.getContext("2d")}this.captureCanvasContext=r}return this.captureCanvasContext},t.prototype.getCaptureCanvas=function(e){if(!this.captureCanvas){var n=this.createCaptureCanvas(e);this.captureCanvas=n}return this.captureCanvas},t.prototype.drawFrameOnCanvas=function(e,n,r){n===void 0&&(n={sx:0,sy:0,sWidth:e.videoWidth,sHeight:e.videoHeight,dx:0,dy:0,dWidth:e.videoWidth,dHeight:e.videoHeight}),r===void 0&&(r=this.captureCanvasContext),r.drawImage(e,n.sx,n.sy,n.sWidth,n.sHeight,n.dx,n.dy,n.dWidth,n.dHeight)},t.prototype.drawImageOnCanvas=function(e,n,r){n===void 0&&(n={sx:0,sy:0,sWidth:e.naturalWidth,sHeight:e.naturalHeight,dx:0,dy:0,dWidth:e.naturalWidth,dHeight:e.naturalHeight}),r===void 0&&(r=this.captureCanvasContext),r.drawImage(e,n.sx,n.sy,n.sWidth,n.sHeight,n.dx,n.dy,n.dWidth,n.dHeight)},t.prototype.decodeBitmap=function(e){return this.reader.decode(e,this._hints)},t.prototype.createCaptureCanvas=function(e){if(typeof document=="undefined")return this._destroyCaptureCanvas(),null;var n=document.createElement("canvas"),r,i;return typeof e!="undefined"&&(e instanceof HTMLVideoElement?(r=e.videoWidth,i=e.videoHeight):e instanceof HTMLImageElement&&(r=e.naturalWidth||e.width,i=e.naturalHeight||e.height)),n.style.width=r+"px",n.style.height=i+"px",n.width=r,n.height=i,n},t.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach(function(e){return e.stop()}),this.stream=void 0),this._stopAsyncDecode===!1&&this.stopAsyncDecode(),this._stopContinuousDecode===!1&&this.stopContinuousDecode()},t.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},t.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)},t.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)},t.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},t.prototype.addVideoSource=function(e,n){try{e.srcObject=n}catch{e.src=URL.createObjectURL(n)}},t.prototype.cleanVideoSource=function(e){try{e.srcObject=null}catch{e.src=""}this.videoElement.removeAttribute("src")},t}(),Un=function(){function t(e,n,r,i,o,a){r===void 0&&(r=n==null?0:8*n.length),a===void 0&&(a=Mt.currentTimeMillis()),this.text=e,this.rawBytes=n,this.numBits=r,this.resultPoints=i,this.format=o,this.timestamp=a,this.text=e,this.rawBytes=n,r==null?this.numBits=n==null?0:8*n.length:this.numBits=r,this.resultPoints=i,this.format=o,this.resultMetadata=null,a==null?this.timestamp=Mt.currentTimeMillis():this.timestamp=a}return t.prototype.getText=function(){return this.text},t.prototype.getRawBytes=function(){return this.rawBytes},t.prototype.getNumBits=function(){return this.numBits},t.prototype.getResultPoints=function(){return this.resultPoints},t.prototype.getBarcodeFormat=function(){return this.format},t.prototype.getResultMetadata=function(){return this.resultMetadata},t.prototype.putMetadata=function(e,n){this.resultMetadata===null&&(this.resultMetadata=new Map),this.resultMetadata.set(e,n)},t.prototype.putAllMetadata=function(e){e!==null&&(this.resultMetadata===null?this.resultMetadata=e:this.resultMetadata=new Map(e))},t.prototype.addResultPoints=function(e){var n=this.resultPoints;if(n===null)this.resultPoints=e;else if(e!==null&&e.length>0){var r=new Array(n.length+e.length);Mt.arraycopy(n,0,r,0,n.length),Mt.arraycopy(e,0,r,n.length,e.length),this.resultPoints=r}},t.prototype.getTimestamp=function(){return this.timestamp},t.prototype.toString=function(){return this.text},t}(),Zd;(function(t){t[t.AZTEC=0]="AZTEC",t[t.CODABAR=1]="CODABAR",t[t.CODE_39=2]="CODE_39",t[t.CODE_93=3]="CODE_93",t[t.CODE_128=4]="CODE_128",t[t.DATA_MATRIX=5]="DATA_MATRIX",t[t.EAN_8=6]="EAN_8",t[t.EAN_13=7]="EAN_13",t[t.ITF=8]="ITF",t[t.MAXICODE=9]="MAXICODE",t[t.PDF_417=10]="PDF_417",t[t.QR_CODE=11]="QR_CODE",t[t.RSS_14=12]="RSS_14",t[t.RSS_EXPANDED=13]="RSS_EXPANDED",t[t.UPC_A=14]="UPC_A",t[t.UPC_E=15]="UPC_E",t[t.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"})(Zd||(Zd={}));var He=Zd,Qd;(function(t){t[t.OTHER=0]="OTHER",t[t.ORIENTATION=1]="ORIENTATION",t[t.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",t[t.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",t[t.ISSUE_NUMBER=4]="ISSUE_NUMBER",t[t.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",t[t.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",t[t.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",t[t.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",t[t.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",t[t.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"})(Qd||(Qd={}));var Dn=Qd,bl=function(){function t(e,n,r,i,o,a){o===void 0&&(o=-1),a===void 0&&(a=-1),this.rawBytes=e,this.text=n,this.byteSegments=r,this.ecLevel=i,this.structuredAppendSequenceNumber=o,this.structuredAppendParity=a,this.numBits=e==null?0:8*e.length}return t.prototype.getRawBytes=function(){return this.rawBytes},t.prototype.getNumBits=function(){return this.numBits},t.prototype.setNumBits=function(e){this.numBits=e},t.prototype.getText=function(){return this.text},t.prototype.getByteSegments=function(){return this.byteSegments},t.prototype.getECLevel=function(){return this.ecLevel},t.prototype.getErrorsCorrected=function(){return this.errorsCorrected},t.prototype.setErrorsCorrected=function(e){this.errorsCorrected=e},t.prototype.getErasures=function(){return this.erasures},t.prototype.setErasures=function(e){this.erasures=e},t.prototype.getOther=function(){return this.other},t.prototype.setOther=function(e){this.other=e},t.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},t.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},t.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},t}(),ps=function(){function t(){}return t.prototype.exp=function(e){return this.expTable[e]},t.prototype.log=function(e){if(e===0)throw new Je;return this.logTable[e]},t.addOrSubtract=function(e,n){return e^n},t}(),Yi=function(){function t(e,n){if(n.length===0)throw new Je;this.field=e;var r=n.length;if(r>1&&n[0]===0){for(var i=1;i<r&&n[i]===0;)i++;i===r?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(r-i),Mt.arraycopy(n,i,this.coefficients,0,this.coefficients.length))}else this.coefficients=n}return t.prototype.getCoefficients=function(){return this.coefficients},t.prototype.getDegree=function(){return this.coefficients.length-1},t.prototype.isZero=function(){return this.coefficients[0]===0},t.prototype.getCoefficient=function(e){return this.coefficients[this.coefficients.length-1-e]},t.prototype.evaluateAt=function(e){if(e===0)return this.getCoefficient(0);var n=this.coefficients,r;if(e===1){r=0;for(var i=0,o=n.length;i!==o;i++){var a=n[i];r=ps.addOrSubtract(r,a)}return r}r=n[0];for(var s=n.length,c=this.field,i=1;i<s;i++)r=ps.addOrSubtract(c.multiply(e,r),n[i]);return r},t.prototype.addOrSubtract=function(e){if(!this.field.equals(e.field))throw new Je("GenericGFPolys do not have same GenericGF field");if(this.isZero())return e;if(e.isZero())return this;var n=this.coefficients,r=e.coefficients;if(n.length>r.length){var i=n;n=r,r=i}var o=new Int32Array(r.length),a=r.length-n.length;Mt.arraycopy(r,0,o,0,a);for(var s=a;s<r.length;s++)o[s]=ps.addOrSubtract(n[s-a],r[s]);return new t(this.field,o)},t.prototype.multiply=function(e){if(!this.field.equals(e.field))throw new Je("GenericGFPolys do not have same GenericGF field");if(this.isZero()||e.isZero())return this.field.getZero();for(var n=this.coefficients,r=n.length,i=e.coefficients,o=i.length,a=new Int32Array(r+o-1),s=this.field,c=0;c<r;c++)for(var u=n[c],l=0;l<o;l++)a[c+l]=ps.addOrSubtract(a[c+l],s.multiply(u,i[l]));return new t(s,a)},t.prototype.multiplyScalar=function(e){if(e===0)return this.field.getZero();if(e===1)return this;for(var n=this.coefficients.length,r=this.field,i=new Int32Array(n),o=this.coefficients,a=0;a<n;a++)i[a]=r.multiply(o[a],e);return new t(r,i)},t.prototype.multiplyByMonomial=function(e,n){if(e<0)throw new Je;if(n===0)return this.field.getZero();for(var r=this.coefficients,i=r.length,o=new Int32Array(i+e),a=this.field,s=0;s<i;s++)o[s]=a.multiply(r[s],n);return new t(a,o)},t.prototype.divide=function(e){if(!this.field.equals(e.field))throw new Je("GenericGFPolys do not have same GenericGF field");if(e.isZero())throw new Je("Divide by 0");for(var n=this.field,r=n.getZero(),i=this,o=e.getCoefficient(e.getDegree()),a=n.inverse(o);i.getDegree()>=e.getDegree()&&!i.isZero();){var s=i.getDegree()-e.getDegree(),c=n.multiply(i.getCoefficient(i.getDegree()),a),u=e.multiplyByMonomial(s,c),l=n.buildMonomial(s,c);r=r.addOrSubtract(l),i=i.addOrSubtract(u)}return[r,i]},t.prototype.toString=function(){for(var e="",n=this.getDegree();n>=0;n--){var r=this.getCoefficient(n);if(r!==0){if(r<0?(e+=" - ",r=-r):e.length>0&&(e+=" + "),n===0||r!==1){var i=this.field.log(r);i===0?e+="1":i===1?e+="a":(e+="a^",e+=i)}n!==0&&(n===1?e+="x":(e+="x^",e+=n))}}return e},t}(),ZW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),mb=function(t){ZW(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ArithmeticException",e}(ir),QW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),fi=function(t){QW(e,t);function e(n,r,i){var o=t.call(this)||this;o.primitive=n,o.size=r,o.generatorBase=i;for(var a=new Int32Array(r),s=1,c=0;c<r;c++)a[c]=s,s*=2,s>=r&&(s^=n,s&=r-1);o.expTable=a;for(var u=new Int32Array(r),c=0;c<r-1;c++)u[a[c]]=c;return o.logTable=u,o.zero=new Yi(o,Int32Array.from([0])),o.one=new Yi(o,Int32Array.from([1])),o}return e.prototype.getZero=function(){return this.zero},e.prototype.getOne=function(){return this.one},e.prototype.buildMonomial=function(n,r){if(n<0)throw new Je;if(r===0)return this.zero;var i=new Int32Array(n+1);return i[0]=r,new Yi(this,i)},e.prototype.inverse=function(n){if(n===0)throw new mb;return this.expTable[this.size-this.logTable[n]-1]},e.prototype.multiply=function(n,r){return n===0||r===0?0:this.expTable[(this.logTable[n]+this.logTable[r])%(this.size-1)]},e.prototype.getSize=function(){return this.size},e.prototype.getGeneratorBase=function(){return this.generatorBase},e.prototype.toString=function(){return"GF(0x"+$t.toHexString(this.primitive)+","+this.size+")"},e.prototype.equals=function(n){return n===this},e.AZTEC_DATA_12=new e(4201,4096,1),e.AZTEC_DATA_10=new e(1033,1024,1),e.AZTEC_DATA_6=new e(67,64,1),e.AZTEC_PARAM=new e(19,16,1),e.QR_CODE_FIELD_256=new e(285,256,0),e.DATA_MATRIX_FIELD_256=new e(301,256,1),e.AZTEC_DATA_8=e.DATA_MATRIX_FIELD_256,e.MAXICODE_FIELD_64=e.AZTEC_DATA_6,e}(ps),KW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gc=function(t){KW(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ReedSolomonException",e}(ir),HW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Va=function(t){HW(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="IllegalStateException",e}(ir),xl=function(){function t(e){this.field=e}return t.prototype.decode=function(e,n){for(var r=this.field,i=new Yi(r,e),o=new Int32Array(n),a=!0,s=0;s<n;s++){var c=i.evaluateAt(r.exp(s+r.getGeneratorBase()));o[o.length-1-s]=c,c!==0&&(a=!1)}if(!a)for(var u=new Yi(r,o),l=this.runEuclideanAlgorithm(r.buildMonomial(n,1),u,n),h=l[0],f=l[1],d=this.findErrorLocations(h),p=this.findErrorMagnitudes(f,d),s=0;s<d.length;s++){var g=e.length-1-r.log(d[s]);if(g<0)throw new Gc("Bad error location");e[g]=fi.addOrSubtract(e[g],p[s])}},t.prototype.runEuclideanAlgorithm=function(e,n,r){if(e.getDegree()<n.getDegree()){var i=e;e=n,n=i}for(var o=this.field,a=e,s=n,c=o.getZero(),u=o.getOne();s.getDegree()>=(r/2|0);){var l=a,h=c;if(a=s,c=u,a.isZero())throw new Gc("r_{i-1} was zero");s=l;for(var f=o.getZero(),d=a.getCoefficient(a.getDegree()),p=o.inverse(d);s.getDegree()>=a.getDegree()&&!s.isZero();){var g=s.getDegree()-a.getDegree(),y=o.multiply(s.getCoefficient(s.getDegree()),p);f=f.addOrSubtract(o.buildMonomial(g,y)),s=s.addOrSubtract(a.multiplyByMonomial(g,y))}if(u=f.multiply(c).addOrSubtract(h),s.getDegree()>=a.getDegree())throw new Va("Division algorithm failed to reduce polynomial?")}var R=u.getCoefficient(0);if(R===0)throw new Gc("sigmaTilde(0) was zero");var m=o.inverse(R),v=u.multiplyScalar(m),x=s.multiplyScalar(m);return[v,x]},t.prototype.findErrorLocations=function(e){var n=e.getDegree();if(n===1)return Int32Array.from([e.getCoefficient(1)]);for(var r=new Int32Array(n),i=0,o=this.field,a=1;a<o.getSize()&&i<n;a++)e.evaluateAt(a)===0&&(r[i]=o.inverse(a),i++);if(i!==n)throw new Gc("Error locator degree does not match number of roots");return r},t.prototype.findErrorMagnitudes=function(e,n){for(var r=n.length,i=new Int32Array(r),o=this.field,a=0;a<r;a++){for(var s=o.inverse(n[a]),c=1,u=0;u<r;u++)if(a!==u){var l=o.multiply(n[u],s),h=(l&1)===0?l|1:l&-2;c=o.multiply(c,h)}i[a]=o.multiply(e.evaluateAt(s),o.inverse(c)),o.getGeneratorBase()!==0&&(i[a]=o.multiply(i[a],s))}return i},t}(),bn;(function(t){t[t.UPPER=0]="UPPER",t[t.LOWER=1]="LOWER",t[t.MIXED=2]="MIXED",t[t.DIGIT=3]="DIGIT",t[t.PUNCT=4]="PUNCT",t[t.BINARY=5]="BINARY"})(bn||(bn={}));var cm=function(){function t(){}return t.prototype.decode=function(e){this.ddata=e;var n=e.getBits(),r=this.extractBits(n),i=this.correctBits(r),o=t.convertBoolArrayToByteArray(i),a=t.getEncodedData(i),s=new bl(o,a,null,null);return s.setNumBits(i.length),s},t.highLevelDecode=function(e){return this.getEncodedData(e)},t.getEncodedData=function(e){for(var n=e.length,r=bn.UPPER,i=bn.UPPER,o="",a=0;a<n;)if(i===bn.BINARY){if(n-a<5)break;var s=t.readCode(e,a,5);if(a+=5,s===0){if(n-a<11)break;s=t.readCode(e,a,11)+31,a+=11}for(var c=0;c<s;c++){if(n-a<8){a=n;break}var u=t.readCode(e,a,8);o+=Lt.castAsNonUtf8Char(u),a+=8}i=r}else{var l=i===bn.DIGIT?4:5;if(n-a<l)break;var u=t.readCode(e,a,l);a+=l;var h=t.getCharacter(i,u);h.startsWith("CTRL_")?(r=i,i=t.getTable(h.charAt(5)),h.charAt(6)==="L"&&(r=i)):(o+=h,i=r)}return o},t.getTable=function(e){switch(e){case"L":return bn.LOWER;case"P":return bn.PUNCT;case"M":return bn.MIXED;case"D":return bn.DIGIT;case"B":return bn.BINARY;case"U":default:return bn.UPPER}},t.getCharacter=function(e,n){switch(e){case bn.UPPER:return t.UPPER_TABLE[n];case bn.LOWER:return t.LOWER_TABLE[n];case bn.MIXED:return t.MIXED_TABLE[n];case bn.PUNCT:return t.PUNCT_TABLE[n];case bn.DIGIT:return t.DIGIT_TABLE[n];default:throw new Va("Bad table")}},t.prototype.correctBits=function(e){var n,r;this.ddata.getNbLayers()<=2?(r=6,n=fi.AZTEC_DATA_6):this.ddata.getNbLayers()<=8?(r=8,n=fi.AZTEC_DATA_8):this.ddata.getNbLayers()<=22?(r=10,n=fi.AZTEC_DATA_10):(r=12,n=fi.AZTEC_DATA_12);var i=this.ddata.getNbDatablocks(),o=e.length/r;if(o<i)throw new Me;for(var a=e.length%r,s=new Int32Array(o),c=0;c<o;c++,a+=r)s[c]=t.readCode(e,a,r);try{var u=new xl(n);u.decode(s,o-i)}catch(y){throw new Me(y)}for(var l=(1<<r)-1,h=0,c=0;c<i;c++){var f=s[c];if(f===0||f===l)throw new Me;(f===1||f===l-1)&&h++}for(var d=new Array(i*r-h),p=0,c=0;c<i;c++){var f=s[c];if(f===1||f===l-1)d.fill(f>1,p,p+r-1),p+=r-1;else for(var g=r-1;g>=0;--g)d[p++]=(f&1<<g)!==0}return d},t.prototype.extractBits=function(e){var n=this.ddata.isCompact(),r=this.ddata.getNbLayers(),i=(n?11:14)+r*4,o=new Int32Array(i),a=new Array(this.totalBitsInLayer(r,n));if(n)for(var s=0;s<o.length;s++)o[s]=s;else for(var c=i+1+2*$t.truncDivision($t.truncDivision(i,2)-1,15),u=i/2,l=$t.truncDivision(c,2),s=0;s<u;s++){var h=s+$t.truncDivision(s,15);o[u-s-1]=l-h-1,o[u+s]=l+h+1}for(var s=0,f=0;s<r;s++){for(var d=(r-s)*4+(n?9:12),p=s*2,g=i-1-p,y=0;y<d;y++)for(var R=y*2,m=0;m<2;m++)a[f+R+m]=e.get(o[p+m],o[p+y]),a[f+2*d+R+m]=e.get(o[p+y],o[g-m]),a[f+4*d+R+m]=e.get(o[g-m],o[g-y]),a[f+6*d+R+m]=e.get(o[g-y],o[p+m]);f+=d*8}return a},t.readCode=function(e,n,r){for(var i=0,o=n;o<n+r;o++)i<<=1,e[o]&&(i|=1);return i},t.readByte=function(e,n){var r=e.length-n;return r>=8?t.readCode(e,n,8):t.readCode(e,n,r)<<8-r},t.convertBoolArrayToByteArray=function(e){for(var n=new Uint8Array((e.length+7)/8),r=0;r<n.length;r++)n[r]=t.readByte(e,8*r);return n},t.prototype.totalBitsInLayer=function(e,n){return((n?88:112)+16*e)*e},t.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"],t.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"],t.MIXED_TABLE=["CTRL_PS"," ","\\1","\\2","\\3","\\4","\\5","\\6","\\7","\b"," ",`
|
|
`,"\\13","\f","\r","\\33","\\34","\\35","\\36","\\37","@","\\","^","_","`","|","~","\\177","CTRL_LL","CTRL_UL","CTRL_PL","CTRL_BS"],t.PUNCT_TABLE=["","\r",`\r
|
|
`,". ",", ",": ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}","CTRL_UL"],t.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"],t}(),ft=function(){function t(){}return t.round=function(e){return isNaN(e)?0:e<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:e>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:e+(e<0?-.5:.5)|0},t.distance=function(e,n,r,i){var o=e-r,a=n-i;return Math.sqrt(o*o+a*a)},t.sum=function(e){for(var n=0,r=0,i=e.length;r!==i;r++){var o=e[r];n+=o}return n},t}(),Kd=function(){function t(){}return t.floatToIntBits=function(e){return e},t.MAX_VALUE=Number.MAX_SAFE_INTEGER,t}(),Ye=function(){function t(e,n){this.x=e,this.y=n}return t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t.prototype.equals=function(e){if(e instanceof t){var n=e;return this.x===n.x&&this.y===n.y}return!1},t.prototype.hashCode=function(){return 31*Kd.floatToIntBits(this.x)+Kd.floatToIntBits(this.y)},t.prototype.toString=function(){return"("+this.x+","+this.y+")"},t.orderBestPatterns=function(e){var n=this.distance(e[0],e[1]),r=this.distance(e[1],e[2]),i=this.distance(e[0],e[2]),o,a,s;if(r>=n&&r>=i?(a=e[0],o=e[1],s=e[2]):i>=r&&i>=n?(a=e[1],o=e[0],s=e[2]):(a=e[2],o=e[0],s=e[1]),this.crossProductZ(o,a,s)<0){var c=o;o=s,s=c}e[0]=o,e[1]=a,e[2]=s},t.distance=function(e,n){return ft.distance(e.x,e.y,n.x,n.y)},t.crossProductZ=function(e,n,r){var i=n.x,o=n.y;return(r.x-i)*(e.y-o)-(r.y-o)*(e.x-i)},t}(),$p=function(){function t(e,n){this.bits=e,this.points=n}return t.prototype.getBits=function(){return this.bits},t.prototype.getPoints=function(){return this.points},t}(),GW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),JW=function(t){GW(e,t);function e(n,r,i,o,a){var s=t.call(this,n,r)||this;return s.compact=i,s.nbDatablocks=o,s.nbLayers=a,s}return e.prototype.getNbLayers=function(){return this.nbLayers},e.prototype.getNbDatablocks=function(){return this.nbDatablocks},e.prototype.isCompact=function(){return this.compact},e}($p),Hd=function(){function t(e,n,r,i){this.image=e,this.height=e.getHeight(),this.width=e.getWidth(),n==null&&(n=t.INIT_SIZE),r==null&&(r=e.getWidth()/2|0),i==null&&(i=e.getHeight()/2|0);var o=n/2|0;if(this.leftInit=r-o,this.rightInit=r+o,this.upInit=i-o,this.downInit=i+o,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new De}return t.prototype.detect=function(){for(var e=this.leftInit,n=this.rightInit,r=this.upInit,i=this.downInit,o=!1,a=!0,s=!1,c=!1,u=!1,l=!1,h=!1,f=this.width,d=this.height;a;){a=!1;for(var p=!0;(p||!c)&&n<f;)p=this.containsBlackPoint(r,i,n,!1),p?(n++,a=!0,c=!0):c||n++;if(n>=f){o=!0;break}for(var g=!0;(g||!u)&&i<d;)g=this.containsBlackPoint(e,n,i,!0),g?(i++,a=!0,u=!0):u||i++;if(i>=d){o=!0;break}for(var y=!0;(y||!l)&&e>=0;)y=this.containsBlackPoint(r,i,e,!1),y?(e--,a=!0,l=!0):l||e--;if(e<0){o=!0;break}for(var R=!0;(R||!h)&&r>=0;)R=this.containsBlackPoint(e,n,r,!0),R?(r--,a=!0,h=!0):h||r--;if(r<0){o=!0;break}a&&(s=!0)}if(!o&&s){for(var m=n-e,v=null,x=1;v===null&&x<m;x++)v=this.getBlackPointOnSegment(e,i-x,e+x,i);if(v==null)throw new De;for(var _=null,x=1;_===null&&x<m;x++)_=this.getBlackPointOnSegment(e,r+x,e+x,r);if(_==null)throw new De;for(var E=null,x=1;E===null&&x<m;x++)E=this.getBlackPointOnSegment(n,r+x,n-x,r);if(E==null)throw new De;for(var N=null,x=1;N===null&&x<m;x++)N=this.getBlackPointOnSegment(n,i-x,n-x,i);if(N==null)throw new De;return this.centerEdges(N,v,E,_)}else throw new De},t.prototype.getBlackPointOnSegment=function(e,n,r,i){for(var o=ft.round(ft.distance(e,n,r,i)),a=(r-e)/o,s=(i-n)/o,c=this.image,u=0;u<o;u++){var l=ft.round(e+u*a),h=ft.round(n+u*s);if(c.get(l,h))return new Ye(l,h)}return null},t.prototype.centerEdges=function(e,n,r,i){var o=e.getX(),a=e.getY(),s=n.getX(),c=n.getY(),u=r.getX(),l=r.getY(),h=i.getX(),f=i.getY(),d=t.CORR;return o<this.width/2?[new Ye(h-d,f+d),new Ye(s+d,c+d),new Ye(u-d,l-d),new Ye(o+d,a-d)]:[new Ye(h+d,f+d),new Ye(s+d,c-d),new Ye(u-d,l+d),new Ye(o-d,a-d)]},t.prototype.containsBlackPoint=function(e,n,r,i){var o=this.image;if(i){for(var a=e;a<=n;a++)if(o.get(a,r))return!0}else for(var s=e;s<=n;s++)if(o.get(r,s))return!0;return!1},t.INIT_SIZE=10,t.CORR=1,t}(),um=function(){function t(){}return t.checkAndNudgePoints=function(e,n){for(var r=e.getWidth(),i=e.getHeight(),o=!0,a=0;a<n.length&&o;a+=2){var s=Math.floor(n[a]),c=Math.floor(n[a+1]);if(s<-1||s>r||c<-1||c>i)throw new De;o=!1,s===-1?(n[a]=0,o=!0):s===r&&(n[a]=r-1,o=!0),c===-1?(n[a+1]=0,o=!0):c===i&&(n[a+1]=i-1,o=!0)}o=!0;for(var a=n.length-2;a>=0&&o;a-=2){var s=Math.floor(n[a]),c=Math.floor(n[a+1]);if(s<-1||s>r||c<-1||c>i)throw new De;o=!1,s===-1?(n[a]=0,o=!0):s===r&&(n[a]=r-1,o=!0),c===-1?(n[a+1]=0,o=!0):c===i&&(n[a+1]=i-1,o=!0)}},t}(),Rb=function(){function t(e,n,r,i,o,a,s,c,u){this.a11=e,this.a21=n,this.a31=r,this.a12=i,this.a22=o,this.a32=a,this.a13=s,this.a23=c,this.a33=u}return t.quadrilateralToQuadrilateral=function(e,n,r,i,o,a,s,c,u,l,h,f,d,p,g,y){var R=t.quadrilateralToSquare(e,n,r,i,o,a,s,c),m=t.squareToQuadrilateral(u,l,h,f,d,p,g,y);return m.times(R)},t.prototype.transformPoints=function(e){for(var n=e.length,r=this.a11,i=this.a12,o=this.a13,a=this.a21,s=this.a22,c=this.a23,u=this.a31,l=this.a32,h=this.a33,f=0;f<n;f+=2){var d=e[f],p=e[f+1],g=o*d+c*p+h;e[f]=(r*d+a*p+u)/g,e[f+1]=(i*d+s*p+l)/g}},t.prototype.transformPointsWithValues=function(e,n){for(var r=this.a11,i=this.a12,o=this.a13,a=this.a21,s=this.a22,c=this.a23,u=this.a31,l=this.a32,h=this.a33,f=e.length,d=0;d<f;d++){var p=e[d],g=n[d],y=o*p+c*g+h;e[d]=(r*p+a*g+u)/y,n[d]=(i*p+s*g+l)/y}},t.squareToQuadrilateral=function(e,n,r,i,o,a,s,c){var u=e-r+o-s,l=n-i+a-c;if(u===0&&l===0)return new t(r-e,o-r,e,i-n,a-i,n,0,0,1);var h=r-o,f=s-o,d=i-a,p=c-a,g=h*p-f*d,y=(u*p-f*l)/g,R=(h*l-u*d)/g;return new t(r-e+y*r,s-e+R*s,e,i-n+y*i,c-n+R*c,n,y,R,1)},t.quadrilateralToSquare=function(e,n,r,i,o,a,s,c){return t.squareToQuadrilateral(e,n,r,i,o,a,s,c).buildAdjoint()},t.prototype.buildAdjoint=function(){return new t(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)},t.prototype.times=function(e){return new t(this.a11*e.a11+this.a21*e.a12+this.a31*e.a13,this.a11*e.a21+this.a21*e.a22+this.a31*e.a23,this.a11*e.a31+this.a21*e.a32+this.a31*e.a33,this.a12*e.a11+this.a22*e.a12+this.a32*e.a13,this.a12*e.a21+this.a22*e.a22+this.a32*e.a23,this.a12*e.a31+this.a22*e.a32+this.a32*e.a33,this.a13*e.a11+this.a23*e.a12+this.a33*e.a13,this.a13*e.a21+this.a23*e.a22+this.a33*e.a23,this.a13*e.a31+this.a23*e.a32+this.a33*e.a33)},t}(),zW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$W=function(t){zW(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.sampleGrid=function(n,r,i,o,a,s,c,u,l,h,f,d,p,g,y,R,m,v,x){var _=Rb.quadrilateralToQuadrilateral(o,a,s,c,u,l,h,f,d,p,g,y,R,m,v,x);return this.sampleGridWithTransform(n,r,i,_)},e.prototype.sampleGridWithTransform=function(n,r,i,o){if(r<=0||i<=0)throw new De;for(var a=new yi(r,i),s=new Float32Array(2*r),c=0;c<i;c++){for(var u=s.length,l=c+.5,h=0;h<u;h+=2)s[h]=h/2+.5,s[h+1]=l;o.transformPoints(s),um.checkAndNudgePoints(n,s);try{for(var h=0;h<u;h+=2)n.get(Math.floor(s[h]),Math.floor(s[h+1]))&&a.set(h/2,c)}catch{throw new De}}return a},e}(um),jp=function(){function t(){}return t.setGridSampler=function(e){t.gridSampler=e},t.getInstance=function(){return t.gridSampler},t.gridSampler=new $W,t}(),Hn=function(){function t(e,n){this.x=e,this.y=n}return t.prototype.toResultPoint=function(){return new Ye(this.getX(),this.getY())},t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t}(),jW=function(){function t(e){this.EXPECTED_CORNER_BITS=new Int32Array([3808,476,2107,1799]),this.image=e}return t.prototype.detect=function(){return this.detectMirror(!1)},t.prototype.detectMirror=function(e){var n=this.getMatrixCenter(),r=this.getBullsEyeCorners(n);if(e){var i=r[0];r[0]=r[2],r[2]=i}this.extractParameters(r);var o=this.sampleGrid(this.image,r[this.shift%4],r[(this.shift+1)%4],r[(this.shift+2)%4],r[(this.shift+3)%4]),a=this.getMatrixCornerPoints(r);return new JW(o,a,this.compact,this.nbDataBlocks,this.nbLayers)},t.prototype.extractParameters=function(e){if(!this.isValidPoint(e[0])||!this.isValidPoint(e[1])||!this.isValidPoint(e[2])||!this.isValidPoint(e[3]))throw new De;var n=2*this.nbCenterLayers,r=new Int32Array([this.sampleLine(e[0],e[1],n),this.sampleLine(e[1],e[2],n),this.sampleLine(e[2],e[3],n),this.sampleLine(e[3],e[0],n)]);this.shift=this.getRotation(r,n);for(var i=0,o=0;o<4;o++){var a=r[(this.shift+o)%4];this.compact?(i<<=7,i+=a>>1&127):(i<<=10,i+=(a>>2&31<<5)+(a>>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)},t.prototype.getRotation=function(e,n){var r=0;e.forEach(function(o,a,s){var c=(o>>n-2<<1)+(o&1);r=(r<<3)+c}),r=((r&1)<<11)+(r>>1);for(var i=0;i<4;i++)if($t.bitCount(r^this.EXPECTED_CORNER_BITS[i])<=2)return i;throw new De},t.prototype.getCorrectedParameterData=function(e,n){var r,i;n?(r=7,i=2):(r=10,i=4);for(var o=r-i,a=new Int32Array(r),s=r-1;s>=0;--s)a[s]=e&15,e>>=4;try{var c=new xl(fi.AZTEC_PARAM);c.decode(a,o)}catch{throw new De}for(var u=0,s=0;s<i;s++)u=(u<<4)+a[s];return u},t.prototype.getBullsEyeCorners=function(e){var n=e,r=e,i=e,o=e,a=!0;for(this.nbCenterLayers=1;this.nbCenterLayers<9;this.nbCenterLayers++){var s=this.getFirstDifferent(n,a,1,-1),c=this.getFirstDifferent(r,a,1,1),u=this.getFirstDifferent(i,a,-1,1),l=this.getFirstDifferent(o,a,-1,-1);if(this.nbCenterLayers>2){var h=this.distancePoint(l,s)*this.nbCenterLayers/(this.distancePoint(o,n)*(this.nbCenterLayers+2));if(h<.75||h>1.25||!this.isWhiteOrBlackRectangle(s,c,u,l))break}n=s,r=c,i=u,o=l,a=!a}if(this.nbCenterLayers!==5&&this.nbCenterLayers!==7)throw new De;this.compact=this.nbCenterLayers===5;var f=new Ye(n.getX()+.5,n.getY()-.5),d=new Ye(r.getX()+.5,r.getY()+.5),p=new Ye(i.getX()-.5,i.getY()+.5),g=new Ye(o.getX()-.5,o.getY()-.5);return this.expandSquare([f,d,p,g],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},t.prototype.getMatrixCenter=function(){var e,n,r,i;try{var o=new Hd(this.image).detect();e=o[0],n=o[1],r=o[2],i=o[3]}catch{var a=this.image.getWidth()/2,s=this.image.getHeight()/2;e=this.getFirstDifferent(new Hn(a+7,s-7),!1,1,-1).toResultPoint(),n=this.getFirstDifferent(new Hn(a+7,s+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new Hn(a-7,s+7),!1,-1,1).toResultPoint(),i=this.getFirstDifferent(new Hn(a-7,s-7),!1,-1,-1).toResultPoint()}var c=ft.round((e.getX()+i.getX()+n.getX()+r.getX())/4),u=ft.round((e.getY()+i.getY()+n.getY()+r.getY())/4);try{var o=new Hd(this.image,15,c,u).detect();e=o[0],n=o[1],r=o[2],i=o[3]}catch{e=this.getFirstDifferent(new Hn(c+7,u-7),!1,1,-1).toResultPoint(),n=this.getFirstDifferent(new Hn(c+7,u+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new Hn(c-7,u+7),!1,-1,1).toResultPoint(),i=this.getFirstDifferent(new Hn(c-7,u-7),!1,-1,-1).toResultPoint()}return c=ft.round((e.getX()+i.getX()+n.getX()+r.getX())/4),u=ft.round((e.getY()+i.getY()+n.getY()+r.getY())/4),new Hn(c,u)},t.prototype.getMatrixCornerPoints=function(e){return this.expandSquare(e,2*this.nbCenterLayers,this.getDimension())},t.prototype.sampleGrid=function(e,n,r,i,o){var a=jp.getInstance(),s=this.getDimension(),c=s/2-this.nbCenterLayers,u=s/2+this.nbCenterLayers;return a.sampleGrid(e,s,s,c,c,u,c,u,u,c,u,n.getX(),n.getY(),r.getX(),r.getY(),i.getX(),i.getY(),o.getX(),o.getY())},t.prototype.sampleLine=function(e,n,r){for(var i=0,o=this.distanceResultPoint(e,n),a=o/r,s=e.getX(),c=e.getY(),u=a*(n.getX()-e.getX())/o,l=a*(n.getY()-e.getY())/o,h=0;h<r;h++)this.image.get(ft.round(s+h*u),ft.round(c+h*l))&&(i|=1<<r-h-1);return i},t.prototype.isWhiteOrBlackRectangle=function(e,n,r,i){var o=3;e=new Hn(e.getX()-o,e.getY()+o),n=new Hn(n.getX()-o,n.getY()-o),r=new Hn(r.getX()+o,r.getY()-o),i=new Hn(i.getX()+o,i.getY()+o);var a=this.getColor(i,e);if(a===0)return!1;var s=this.getColor(e,n);return s!==a||(s=this.getColor(n,r),s!==a)?!1:(s=this.getColor(r,i),s===a)},t.prototype.getColor=function(e,n){for(var r=this.distancePoint(e,n),i=(n.getX()-e.getX())/r,o=(n.getY()-e.getY())/r,a=0,s=e.getX(),c=e.getY(),u=this.image.get(e.getX(),e.getY()),l=Math.ceil(r),h=0;h<l;h++)s+=i,c+=o,this.image.get(ft.round(s),ft.round(c))!==u&&a++;var f=a/r;return f>.1&&f<.9?0:f<=.1===u?1:-1},t.prototype.getFirstDifferent=function(e,n,r,i){for(var o=e.getX()+r,a=e.getY()+i;this.isValid(o,a)&&this.image.get(o,a)===n;)o+=r,a+=i;for(o-=r,a-=i;this.isValid(o,a)&&this.image.get(o,a)===n;)o+=r;for(o-=r;this.isValid(o,a)&&this.image.get(o,a)===n;)a+=i;return a-=i,new Hn(o,a)},t.prototype.expandSquare=function(e,n,r){var i=r/(2*n),o=e[0].getX()-e[2].getX(),a=e[0].getY()-e[2].getY(),s=(e[0].getX()+e[2].getX())/2,c=(e[0].getY()+e[2].getY())/2,u=new Ye(s+i*o,c+i*a),l=new Ye(s-i*o,c-i*a);o=e[1].getX()-e[3].getX(),a=e[1].getY()-e[3].getY(),s=(e[1].getX()+e[3].getX())/2,c=(e[1].getY()+e[3].getY())/2;var h=new Ye(s+i*o,c+i*a),f=new Ye(s-i*o,c-i*a),d=[u,h,l,f];return d},t.prototype.isValid=function(e,n){return e>=0&&e<this.image.getWidth()&&n>0&&n<this.image.getHeight()},t.prototype.isValidPoint=function(e){var n=ft.round(e.getX()),r=ft.round(e.getY());return this.isValid(n,r)},t.prototype.distancePoint=function(e,n){return ft.distance(e.getX(),e.getY(),n.getX(),n.getY())},t.prototype.distanceResultPoint=function(e,n){return ft.distance(e.getX(),e.getY(),n.getX(),n.getY())},t.prototype.getDimension=function(){return this.compact?4*this.nbLayers+11:this.nbLayers<=4?4*this.nbLayers+15:4*this.nbLayers+2*($t.truncDivision(this.nbLayers-4,8)+1)+15},t}(),Nu=function(){function t(){}return t.prototype.decode=function(e,n){n===void 0&&(n=null);var r=null,i=new jW(e.getBlackMatrix()),o=null,a=null;try{var s=i.detectMirror(!1);o=s.getPoints(),this.reportFoundResultPoints(n,o),a=new cm().decode(s)}catch(h){r=h}if(a==null)try{var s=i.detectMirror(!0);o=s.getPoints(),this.reportFoundResultPoints(n,o),a=new cm().decode(s)}catch(h){throw r!=null?r:h}var c=new Un(a.getText(),a.getRawBytes(),a.getNumBits(),o,He.AZTEC,Mt.currentTimeMillis()),u=a.getByteSegments();u!=null&&c.putMetadata(Dn.BYTE_SEGMENTS,u);var l=a.getECLevel();return l!=null&&c.putMetadata(Dn.ERROR_CORRECTION_LEVEL,l),c},t.prototype.reportFoundResultPoints=function(e,n){if(e!=null){var r=e.get(Ct.NEED_RESULT_POINT_CALLBACK);r!=null&&n.forEach(function(i,o,a){r.foundPossibleResultPoint(i)})}},t.prototype.reset=function(){},t}(),qW=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){qW(e,t);function e(n){return n===void 0&&(n=500),t.call(this,new Nu,n)||this}return e})(Xa);var ln=function(){function t(){}return t.prototype.decode=function(e,n){try{return this.doDecode(e,n)}catch{var r=n&&n.get(Ct.TRY_HARDER)===!0;if(r&&e.isRotateSupported()){var i=e.rotateCounterClockwise(),o=this.doDecode(i,n),a=o.getResultMetadata(),s=270;a!==null&&a.get(Dn.ORIENTATION)===!0&&(s=s+a.get(Dn.ORIENTATION)%360),o.putMetadata(Dn.ORIENTATION,s);var c=o.getResultPoints();if(c!==null)for(var u=i.getHeight(),l=0;l<c.length;l++)c[l]=new Ye(u-c[l].getY()-1,c[l].getX());return o}else throw new De}},t.prototype.reset=function(){},t.prototype.doDecode=function(e,n){var r=e.getWidth(),i=e.getHeight(),o=new $n(r),a=n&&n.get(Ct.TRY_HARDER)===!0,s=Math.max(1,i>>(a?8:5)),c;a?c=i:c=15;for(var u=Math.trunc(i/2),l=0;l<c;l++){var h=Math.trunc((l+1)/2),f=(l&1)===0,d=u+s*(f?h:-h);if(d<0||d>=i)break;try{o=e.getBlackRow(d,o)}catch{continue}for(var p=function(m){if(m===1&&(o.reverse(),n&&n.get(Ct.NEED_RESULT_POINT_CALLBACK)===!0)){var v=new Map;n.forEach(function(E,N){return v.set(N,E)}),v.delete(Ct.NEED_RESULT_POINT_CALLBACK),n=v}try{var x=g.decodeRow(d,o,n);if(m===1){x.putMetadata(Dn.ORIENTATION,180);var _=x.getResultPoints();_!==null&&(_[0]=new Ye(r-_[0].getX()-1,_[0].getY()),_[1]=new Ye(r-_[1].getX()-1,_[1].getY()))}return{value:x}}catch{}},g=this,y=0;y<2;y++){var R=p(y);if(typeof R=="object")return R.value}}throw new De},t.recordPattern=function(e,n,r){for(var i=r.length,o=0;o<i;o++)r[o]=0;var a=e.getSize();if(n>=a)throw new De;for(var s=!e.get(n),c=0,u=n;u<a;){if(e.get(u)!==s)r[c]++;else{if(++c===i)break;r[c]=1,s=!s}u++}if(!(c===i||c===i-1&&u===a))throw new De},t.recordPatternInReverse=function(e,n,r){for(var i=r.length,o=e.get(n);n>0&&i>=0;)e.get(--n)!==o&&(i--,o=!o);if(i>=0)throw new De;t.recordPattern(e,n+1,r)},t.patternMatchVariance=function(e,n,r){for(var i=e.length,o=0,a=0,s=0;s<i;s++)o+=e[s],a+=n[s];if(o<a)return Number.POSITIVE_INFINITY;var c=o/a;r*=c;for(var u=0,l=0;l<i;l++){var h=e[l],f=n[l]*c,d=h>f?h-f:f-h;if(d>r)return Number.POSITIVE_INFINITY;u+=d}return u/o},t}(),eX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),lm=function(t){eX(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.findStartPattern=function(n){for(var r=n.getSize(),i=n.getNextSet(0),o=0,a=Int32Array.from([0,0,0,0,0,0]),s=i,c=!1,u=6,l=i;l<r;l++)if(n.get(l)!==c)a[o]++;else{if(o===u-1){for(var h=e.MAX_AVG_VARIANCE,f=-1,d=e.CODE_START_A;d<=e.CODE_START_C;d++){var p=ln.patternMatchVariance(a,e.CODE_PATTERNS[d],e.MAX_INDIVIDUAL_VARIANCE);p<h&&(h=p,f=d)}if(f>=0&&n.isRange(Math.max(0,s-(l-s)/2),s,!1))return Int32Array.from([s,l,f]);s+=a[0]+a[1],a=a.slice(2,a.length),a[o-1]=0,a[o]=0,o--}else o++;a[o]=1,c=!c}throw new De},e.decodeCode=function(n,r,i){ln.recordPattern(n,i,r);for(var o=e.MAX_AVG_VARIANCE,a=-1,s=0;s<e.CODE_PATTERNS.length;s++){var c=e.CODE_PATTERNS[s],u=this.patternMatchVariance(r,c,e.MAX_INDIVIDUAL_VARIANCE);u<o&&(o=u,a=s)}if(a>=0)return a;throw new De},e.prototype.decodeRow=function(n,r,i){var o=i&&i.get(Ct.ASSUME_GS1)===!0,a=e.findStartPattern(r),s=a[2],c=0,u=new Uint8Array(20);u[c++]=s;var l;switch(s){case e.CODE_START_A:l=e.CODE_CODE_A;break;case e.CODE_START_B:l=e.CODE_CODE_B;break;case e.CODE_START_C:l=e.CODE_CODE_C;break;default:throw new Me}for(var h=!1,f=!1,d="",p=a[0],g=a[1],y=Int32Array.from([0,0,0,0,0,0]),R=0,m=0,v=s,x=0,_=!0,E=!1,N=!1;!h;){var U=f;switch(f=!1,R=m,m=e.decodeCode(r,y,g),u[c++]=m,m!==e.CODE_STOP&&(_=!0),m!==e.CODE_STOP&&(x++,v+=x*m),p=g,g+=y.reduce(function(F,A){return F+A},0),m){case e.CODE_START_A:case e.CODE_START_B:case e.CODE_START_C:throw new Me}switch(l){case e.CODE_CODE_A:if(m<64)N===E?d+=String.fromCharCode(" ".charCodeAt(0)+m):d+=String.fromCharCode(" ".charCodeAt(0)+m+128),N=!1;else if(m<96)N===E?d+=String.fromCharCode(m-64):d+=String.fromCharCode(m+64),N=!1;else switch(m!==e.CODE_STOP&&(_=!1),m){case e.CODE_FNC_1:o&&(d.length===0?d+="]C1":d+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_A:!E&&N?(E=!0,N=!1):E&&N?(E=!1,N=!1):N=!0;break;case e.CODE_SHIFT:f=!0,l=e.CODE_CODE_B;break;case e.CODE_CODE_B:l=e.CODE_CODE_B;break;case e.CODE_CODE_C:l=e.CODE_CODE_C;break;case e.CODE_STOP:h=!0;break}break;case e.CODE_CODE_B:if(m<96)N===E?d+=String.fromCharCode(" ".charCodeAt(0)+m):d+=String.fromCharCode(" ".charCodeAt(0)+m+128),N=!1;else switch(m!==e.CODE_STOP&&(_=!1),m){case e.CODE_FNC_1:o&&(d.length===0?d+="]C1":d+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_B:!E&&N?(E=!0,N=!1):E&&N?(E=!1,N=!1):N=!0;break;case e.CODE_SHIFT:f=!0,l=e.CODE_CODE_A;break;case e.CODE_CODE_A:l=e.CODE_CODE_A;break;case e.CODE_CODE_C:l=e.CODE_CODE_C;break;case e.CODE_STOP:h=!0;break}break;case e.CODE_CODE_C:if(m<100)m<10&&(d+="0"),d+=m;else switch(m!==e.CODE_STOP&&(_=!1),m){case e.CODE_FNC_1:o&&(d.length===0?d+="]C1":d+=String.fromCharCode(29));break;case e.CODE_CODE_A:l=e.CODE_CODE_A;break;case e.CODE_CODE_B:l=e.CODE_CODE_B;break;case e.CODE_STOP:h=!0;break}break}U&&(l=l===e.CODE_CODE_A?e.CODE_CODE_B:e.CODE_CODE_A)}var O=g-p;if(g=r.getNextUnset(g),!r.isRange(g,Math.min(r.getSize(),g+(g-p)/2),!1))throw new De;if(v-=x*R,v%103!==R)throw new tn;var Q=d.length;if(Q===0)throw new De;Q>0&&_&&(l===e.CODE_CODE_C?d=d.substring(0,Q-2):d=d.substring(0,Q-1));for(var ne=(a[1]+a[0])/2,T=p+O/2,I=u.length,b=new Uint8Array(I),M=0;M<I;M++)b[M]=u[M];var C=[new Ye(ne,n),new Ye(T,n)];return new Un(d,b,0,C,He.CODE_128,new Date().getTime())},e.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])],e.MAX_AVG_VARIANCE=.25,e.MAX_INDIVIDUAL_VARIANCE=.7,e.CODE_SHIFT=98,e.CODE_CODE_C=99,e.CODE_CODE_B=100,e.CODE_CODE_A=101,e.CODE_FNC_1=102,e.CODE_FNC_2=97,e.CODE_FNC_3=96,e.CODE_FNC_4_A=101,e.CODE_FNC_4_B=100,e.CODE_START_A=103,e.CODE_START_B=104,e.CODE_START_C=105,e.CODE_STOP=106,e}(ln),tX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ed=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},hm=function(t){tX(e,t);function e(n,r){n===void 0&&(n=!1),r===void 0&&(r=!1);var i=t.call(this)||this;return i.usingCheckDigit=n,i.extendedMode=r,i.decodeRowResult="",i.counters=new Int32Array(9),i}return e.prototype.decodeRow=function(n,r,i){var o,a,s,c,u=this.counters;u.fill(0),this.decodeRowResult="";var l=e.findAsteriskPattern(r,u),h=r.getNextSet(l[1]),f=r.getSize(),d,p;do{e.recordPattern(r,h,u);var g=e.toNarrowWidePattern(u);if(g<0)throw new De;d=e.patternToChar(g),this.decodeRowResult+=d,p=h;try{for(var y=(o=void 0,ed(u)),R=y.next();!R.done;R=y.next()){var m=R.value;h+=m}}catch(I){o={error:I}}finally{try{R&&!R.done&&(a=y.return)&&a.call(y)}finally{if(o)throw o.error}}h=r.getNextSet(h)}while(d!=="*");this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var v=0;try{for(var x=ed(u),_=x.next();!_.done;_=x.next()){var m=_.value;v+=m}}catch(I){s={error:I}}finally{try{_&&!_.done&&(c=x.return)&&c.call(x)}finally{if(s)throw s.error}}var E=h-p-v;if(h!==f&&E*2<v)throw new De;if(this.usingCheckDigit){for(var N=this.decodeRowResult.length-1,U=0,O=0;O<N;O++)U+=e.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(O));if(this.decodeRowResult.charAt(N)!==e.ALPHABET_STRING.charAt(U%43))throw new tn;this.decodeRowResult=this.decodeRowResult.substring(0,N)}if(this.decodeRowResult.length===0)throw new De;var Q;this.extendedMode?Q=e.decodeExtended(this.decodeRowResult):Q=this.decodeRowResult;var ne=(l[1]+l[0])/2,T=p+v/2;return new Un(Q,null,0,[new Ye(ne,n),new Ye(T,n)],He.CODE_39,new Date().getTime())},e.findAsteriskPattern=function(n,r){for(var i=n.getSize(),o=n.getNextSet(0),a=0,s=o,c=!1,u=r.length,l=o;l<i;l++)if(n.get(l)!==c)r[a]++;else{if(a===u-1){if(this.toNarrowWidePattern(r)===e.ASTERISK_ENCODING&&n.isRange(Math.max(0,s-Math.floor((l-s)/2)),s,!1))return[s,l];s+=r[0]+r[1],r.copyWithin(0,2,2+a-1),r[a-1]=0,r[a]=0,a--}else a++;r[a]=1,c=!c}throw new De},e.toNarrowWidePattern=function(n){var r,i,o=n.length,a=0,s;do{var c=2147483647;try{for(var u=(r=void 0,ed(n)),l=u.next();!l.done;l=u.next()){var h=l.value;h<c&&h>a&&(c=h)}}catch(g){r={error:g}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}a=c,s=0;for(var f=0,d=0,p=0;p<o;p++){var h=n[p];h>a&&(d|=1<<o-1-p,s++,f+=h)}if(s===3){for(var p=0;p<o&&s>0;p++){var h=n[p];if(h>a&&(s--,h*2>=f))return-1}return d}}while(s>3);return-1},e.patternToChar=function(n){for(var r=0;r<e.CHARACTER_ENCODINGS.length;r++)if(e.CHARACTER_ENCODINGS[r]===n)return e.ALPHABET_STRING.charAt(r);if(n===e.ASTERISK_ENCODING)return"*";throw new De},e.decodeExtended=function(n){for(var r=n.length,i="",o=0;o<r;o++){var a=n.charAt(o);if(a==="+"||a==="$"||a==="%"||a==="/"){var s=n.charAt(o+1),c="\0";switch(a){case"+":if(s>="A"&&s<="Z")c=String.fromCharCode(s.charCodeAt(0)+32);else throw new Me;break;case"$":if(s>="A"&&s<="Z")c=String.fromCharCode(s.charCodeAt(0)-64);else throw new Me;break;case"%":if(s>="A"&&s<="E")c=String.fromCharCode(s.charCodeAt(0)-38);else if(s>="F"&&s<="J")c=String.fromCharCode(s.charCodeAt(0)-11);else if(s>="K"&&s<="O")c=String.fromCharCode(s.charCodeAt(0)+16);else if(s>="P"&&s<="T")c=String.fromCharCode(s.charCodeAt(0)+43);else if(s==="U")c="\0";else if(s==="V")c="@";else if(s==="W")c="`";else if(s==="X"||s==="Y"||s==="Z")c="\x7F";else throw new Me;break;case"/":if(s>="A"&&s<="O")c=String.fromCharCode(s.charCodeAt(0)-32);else if(s==="Z")c=":";else throw new Me;break}i+=c,o++}else i+=a}return i},e.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",e.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],e.ASTERISK_ENCODING=148,e}(ln),nX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),td=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},dm=function(t){nX(e,t);function e(){var n=t.call(this)||this;return n.decodeRowResult="",n.counters=new Int32Array(6),n}return e.prototype.decodeRow=function(n,r,i){var o,a,s,c,u=this.findAsteriskPattern(r),l=r.getNextSet(u[1]),h=r.getSize(),f=this.counters;f.fill(0),this.decodeRowResult="";var d,p;do{e.recordPattern(r,l,f);var g=this.toPattern(f);if(g<0)throw new De;d=this.patternToChar(g),this.decodeRowResult+=d,p=l;try{for(var y=(o=void 0,td(f)),R=y.next();!R.done;R=y.next()){var m=R.value;l+=m}}catch(O){o={error:O}}finally{try{R&&!R.done&&(a=y.return)&&a.call(y)}finally{if(o)throw o.error}}l=r.getNextSet(l)}while(d!=="*");this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var v=0;try{for(var x=td(f),_=x.next();!_.done;_=x.next()){var m=_.value;v+=m}}catch(O){s={error:O}}finally{try{_&&!_.done&&(c=x.return)&&c.call(x)}finally{if(s)throw s.error}}if(l===h||!r.get(l))throw new De;if(this.decodeRowResult.length<2)throw new De;this.checkChecksums(this.decodeRowResult),this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-2);var E=this.decodeExtended(this.decodeRowResult),N=(u[1]+u[0])/2,U=p+v/2;return new Un(E,null,0,[new Ye(N,n),new Ye(U,n)],He.CODE_93,new Date().getTime())},e.prototype.findAsteriskPattern=function(n){var r=n.getSize(),i=n.getNextSet(0);this.counters.fill(0);for(var o=this.counters,a=i,s=!1,c=o.length,u=0,l=i;l<r;l++)if(n.get(l)!==s)o[u]++;else{if(u===c-1){if(this.toPattern(o)===e.ASTERISK_ENCODING)return new Int32Array([a,l]);a+=o[0]+o[1],o.copyWithin(0,2,2+u-1),o[u-1]=0,o[u]=0,u--}else u++;o[u]=1,s=!s}throw new De},e.prototype.toPattern=function(n){var r,i,o=0;try{for(var a=td(n),s=a.next();!s.done;s=a.next()){var c=s.value;o+=c}}catch(p){r={error:p}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}for(var u=0,l=n.length,h=0;h<l;h++){var f=Math.round(n[h]*9/o);if(f<1||f>4)return-1;if((h&1)===0)for(var d=0;d<f;d++)u=u<<1|1;else u<<=f}return u},e.prototype.patternToChar=function(n){for(var r=0;r<e.CHARACTER_ENCODINGS.length;r++)if(e.CHARACTER_ENCODINGS[r]===n)return e.ALPHABET_STRING.charAt(r);throw new De},e.prototype.decodeExtended=function(n){for(var r=n.length,i="",o=0;o<r;o++){var a=n.charAt(o);if(a>="a"&&a<="d"){if(o>=r-1)throw new Me;var s=n.charAt(o+1),c="\0";switch(a){case"d":if(s>="A"&&s<="Z")c=String.fromCharCode(s.charCodeAt(0)+32);else throw new Me;break;case"a":if(s>="A"&&s<="Z")c=String.fromCharCode(s.charCodeAt(0)-64);else throw new Me;break;case"b":if(s>="A"&&s<="E")c=String.fromCharCode(s.charCodeAt(0)-38);else if(s>="F"&&s<="J")c=String.fromCharCode(s.charCodeAt(0)-11);else if(s>="K"&&s<="O")c=String.fromCharCode(s.charCodeAt(0)+16);else if(s>="P"&&s<="T")c=String.fromCharCode(s.charCodeAt(0)+43);else if(s==="U")c="\0";else if(s==="V")c="@";else if(s==="W")c="`";else if(s>="X"&&s<="Z")c=String.fromCharCode(127);else throw new Me;break;case"c":if(s>="A"&&s<="O")c=String.fromCharCode(s.charCodeAt(0)-32);else if(s==="Z")c=":";else throw new Me;break}i+=c,o++}else i+=a}return i},e.prototype.checkChecksums=function(n){var r=n.length;this.checkOneChecksum(n,r-2,20),this.checkOneChecksum(n,r-1,15)},e.prototype.checkOneChecksum=function(n,r,i){for(var o=1,a=0,s=r-1;s>=0;s--)a+=o*e.ALPHABET_STRING.indexOf(n.charAt(s)),++o>i&&(o=1);if(n.charAt(r)!==e.ALPHABET_STRING[a%47])throw new tn},e.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*",e.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],e.ASTERISK_ENCODING=e.CHARACTER_ENCODINGS[47],e}(ln),rX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),iX=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},fm=function(t){rX(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.narrowLineWidth=-1,n}return e.prototype.decodeRow=function(n,r,i){var o,a,s=this.decodeStart(r),c=this.decodeEnd(r),u=new rt;e.decodeMiddle(r,s[1],c[0],u);var l=u.toString(),h=null;i!=null&&(h=i.get(Ct.ALLOWED_LENGTHS)),h==null&&(h=e.DEFAULT_ALLOWED_LENGTHS);var f=l.length,d=!1,p=0;try{for(var g=iX(h),y=g.next();!y.done;y=g.next()){var R=y.value;if(f===R){d=!0;break}R>p&&(p=R)}}catch(x){o={error:x}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}if(!d&&f>p&&(d=!0),!d)throw new Me;var m=[new Ye(s[1],n),new Ye(c[0],n)],v=new Un(l,null,0,m,He.ITF,new Date().getTime());return v},e.decodeMiddle=function(n,r,i,o){var a=new Int32Array(10),s=new Int32Array(5),c=new Int32Array(5);for(a.fill(0),s.fill(0),c.fill(0);r<i;){ln.recordPattern(n,r,a);for(var u=0;u<5;u++){var l=2*u;s[u]=a[l],c[u]=a[l+1]}var h=e.decodeDigit(s);o.append(h.toString()),h=this.decodeDigit(c),o.append(h.toString()),a.forEach(function(f){r+=f})}},e.prototype.decodeStart=function(n){var r=e.skipWhiteSpace(n),i=e.findGuardPattern(n,r,e.START_PATTERN);return this.narrowLineWidth=(i[1]-i[0])/4,this.validateQuietZone(n,i[0]),i},e.prototype.validateQuietZone=function(n,r){var i=this.narrowLineWidth*10;i=i<r?i:r;for(var o=r-1;i>0&&o>=0&&!n.get(o);o--)i--;if(i!==0)throw new De},e.skipWhiteSpace=function(n){var r=n.getSize(),i=n.getNextSet(0);if(i===r)throw new De;return i},e.prototype.decodeEnd=function(n){n.reverse();try{var r=e.skipWhiteSpace(n),i=void 0;try{i=e.findGuardPattern(n,r,e.END_PATTERN_REVERSED[0])}catch(a){a instanceof De&&(i=e.findGuardPattern(n,r,e.END_PATTERN_REVERSED[1]))}this.validateQuietZone(n,i[0]);var o=i[0];return i[0]=n.getSize()-i[1],i[1]=n.getSize()-o,i}finally{n.reverse()}},e.findGuardPattern=function(n,r,i){var o=i.length,a=new Int32Array(o),s=n.getSize(),c=!1,u=0,l=r;a.fill(0);for(var h=r;h<s;h++)if(n.get(h)!==c)a[u]++;else{if(u===o-1){if(ln.patternMatchVariance(a,i,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return[l,h];l+=a[0]+a[1],Mt.arraycopy(a,2,a,0,u-1),a[u-1]=0,a[u]=0,u--}else u++;a[u]=1,c=!c}throw new De},e.decodeDigit=function(n){for(var r=e.MAX_AVG_VARIANCE,i=-1,o=e.PATTERNS.length,a=0;a<o;a++){var s=e.PATTERNS[a],c=ln.patternMatchVariance(n,s,e.MAX_INDIVIDUAL_VARIANCE);c<r?(r=c,i=a):c===r&&(i=-1)}if(i>=0)return i%10;throw new De},e.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])],e.MAX_AVG_VARIANCE=.38,e.MAX_INDIVIDUAL_VARIANCE=.5,e.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],e.START_PATTERN=Int32Array.from([1,1,1,1]),e.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])],e}(ln),oX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oa=function(t){oX(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.decodeRowStringBuffer="",n}return e.findStartGuardPattern=function(n){for(var r=!1,i,o=0,a=Int32Array.from([0,0,0]);!r;){a=Int32Array.from([0,0,0]),i=e.findGuardPattern(n,o,!1,this.START_END_PATTERN,a);var s=i[0];o=i[1];var c=s-(o-s);c>=0&&(r=n.isRange(c,s,!1))}return i},e.checkChecksum=function(n){return e.checkStandardUPCEANChecksum(n)},e.checkStandardUPCEANChecksum=function(n){var r=n.length;if(r===0)return!1;var i=parseInt(n.charAt(r-1),10);return e.getStandardUPCEANChecksum(n.substring(0,r-1))===i},e.getStandardUPCEANChecksum=function(n){for(var r=n.length,i=0,o=r-1;o>=0;o-=2){var a=n.charAt(o).charCodeAt(0)-"0".charCodeAt(0);if(a<0||a>9)throw new Me;i+=a}i*=3;for(var o=r-2;o>=0;o-=2){var a=n.charAt(o).charCodeAt(0)-"0".charCodeAt(0);if(a<0||a>9)throw new Me;i+=a}return(1e3-i)%10},e.decodeEnd=function(n,r){return e.findGuardPattern(n,r,!1,e.START_END_PATTERN,new Int32Array(e.START_END_PATTERN.length).fill(0))},e.findGuardPatternWithoutCounters=function(n,r,i,o){return this.findGuardPattern(n,r,i,o,new Int32Array(o.length))},e.findGuardPattern=function(n,r,i,o,a){var s=n.getSize();r=i?n.getNextUnset(r):n.getNextSet(r);for(var c=0,u=r,l=o.length,h=i,f=r;f<s;f++)if(n.get(f)!==h)a[c]++;else{if(c===l-1){if(ln.patternMatchVariance(a,o,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return Int32Array.from([u,f]);u+=a[0]+a[1];for(var d=a.slice(2,a.length),p=0;p<c-1;p++)a[p]=d[p];a[c-1]=0,a[c]=0,c--}else c++;a[c]=1,h=!h}throw new De},e.decodeDigit=function(n,r,i,o){this.recordPattern(n,i,r);for(var a=this.MAX_AVG_VARIANCE,s=-1,c=o.length,u=0;u<c;u++){var l=o[u],h=ln.patternMatchVariance(r,l,e.MAX_INDIVIDUAL_VARIANCE);h<a&&(a=h,s=u)}if(s>=0)return s;throw new De},e.MAX_AVG_VARIANCE=.48,e.MAX_INDIVIDUAL_VARIANCE=.7,e.START_END_PATTERN=Int32Array.from([1,1,1]),e.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),e.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),e.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])],e}(ln),aX=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},sX=function(){function t(){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 t.prototype.decodeRow=function(e,n,r){var i=this.decodeRowStringBuffer,o=this.decodeMiddle(n,r,i),a=i.toString(),s=t.parseExtensionString(a),c=[new Ye((r[0]+r[1])/2,e),new Ye(o,e)],u=new Un(a,null,0,c,He.UPC_EAN_EXTENSION,new Date().getTime());return s!=null&&u.putAllMetadata(s),u},t.prototype.decodeMiddle=function(e,n,r){var i,o,a=this.decodeMiddleCounters;a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=e.getSize(),c=n[1],u=0,l=0;l<5&&c<s;l++){var h=Oa.decodeDigit(e,a,c,Oa.L_AND_G_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+h%10);try{for(var f=(i=void 0,aX(a)),d=f.next();!d.done;d=f.next()){var p=d.value;c+=p}}catch(y){i={error:y}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}h>=10&&(u|=1<<4-l),l!==4&&(c=e.getNextSet(c),c=e.getNextUnset(c))}if(r.length!==5)throw new De;var g=this.determineCheckDigit(u);if(t.extensionChecksum(r.toString())!==g)throw new De;return c},t.extensionChecksum=function(e){for(var n=e.length,r=0,i=n-2;i>=0;i-=2)r+=e.charAt(i).charCodeAt(0)-"0".charCodeAt(0);r*=3;for(var i=n-1;i>=0;i-=2)r+=e.charAt(i).charCodeAt(0)-"0".charCodeAt(0);return r*=3,r%10},t.prototype.determineCheckDigit=function(e){for(var n=0;n<10;n++)if(e===this.CHECK_DIGIT_ENCODINGS[n])return n;throw new De},t.parseExtensionString=function(e){if(e.length!==5)return null;var n=t.parseExtension5String(e);return n==null?null:new Map([[Dn.SUGGESTED_PRICE,n]])},t.parseExtension5String=function(e){var n;switch(e.charAt(0)){case"0":n="\xA3";break;case"5":n="$";break;case"9":switch(e){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}n="";break;default:n="";break}var r=parseInt(e.substring(1)),i=(r/100).toString(),o=r%100,a=o<10?"0"+o:o.toString();return n+i+"."+a},t}(),cX=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},uX=function(){function t(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return t.prototype.decodeRow=function(e,n,r){var i=this.decodeRowStringBuffer,o=this.decodeMiddle(n,r,i),a=i.toString(),s=t.parseExtensionString(a),c=[new Ye((r[0]+r[1])/2,e),new Ye(o,e)],u=new Un(a,null,0,c,He.UPC_EAN_EXTENSION,new Date().getTime());return s!=null&&u.putAllMetadata(s),u},t.prototype.decodeMiddle=function(e,n,r){var i,o,a=this.decodeMiddleCounters;a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=e.getSize(),c=n[1],u=0,l=0;l<2&&c<s;l++){var h=Oa.decodeDigit(e,a,c,Oa.L_AND_G_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+h%10);try{for(var f=(i=void 0,cX(a)),d=f.next();!d.done;d=f.next()){var p=d.value;c+=p}}catch(g){i={error:g}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}h>=10&&(u|=1<<1-l),l!==1&&(c=e.getNextSet(c),c=e.getNextUnset(c))}if(r.length!==2)throw new De;if(parseInt(r.toString())%4!==u)throw new De;return c},t.parseExtensionString=function(e){return e.length!==2?null:new Map([[Dn.ISSUE_NUMBER,parseInt(e)]])},t}(),lX=function(){function t(){}return t.decodeRow=function(e,n,r){var i=Oa.findGuardPattern(n,r,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{var o=new sX;return o.decodeRow(e,n,i)}catch{var a=new uX;return a.decodeRow(e,n,i)}},t.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),t}(),hX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),sn=function(t){hX(e,t);function e(){var n=t.call(this)||this;n.decodeRowStringBuffer="",e.L_AND_G_PATTERNS=e.L_PATTERNS.map(function(s){return Int32Array.from(s)});for(var r=10;r<20;r++){for(var i=e.L_PATTERNS[r-10],o=new Int32Array(i.length),a=0;a<i.length;a++)o[a]=i[i.length-a-1];e.L_AND_G_PATTERNS[r]=o}return n}return e.prototype.decodeRow=function(n,r,i){var o=e.findStartGuardPattern(r),a=i==null?null:i.get(Ct.NEED_RESULT_POINT_CALLBACK);if(a!=null){var s=new Ye((o[0]+o[1])/2,n);a.foundPossibleResultPoint(s)}var c=this.decodeMiddle(r,o,this.decodeRowStringBuffer),u=c.rowOffset,l=c.resultString;if(a!=null){var h=new Ye(u,n);a.foundPossibleResultPoint(h)}var f=e.decodeEnd(r,u);if(a!=null){var d=new Ye((f[0]+f[1])/2,n);a.foundPossibleResultPoint(d)}var p=f[1],g=p+(p-f[0]);if(g>=r.getSize()||!r.isRange(p,g,!1))throw new De;var y=l.toString();if(y.length<8)throw new Me;if(!e.checkChecksum(y))throw new tn;var R=(o[1]+o[0])/2,m=(f[1]+f[0])/2,v=this.getBarcodeFormat(),x=[new Ye(R,n),new Ye(m,n)],_=new Un(y,null,0,x,v,new Date().getTime()),E=0;try{var N=lX.decodeRow(n,r,f[1]);_.putMetadata(Dn.UPC_EAN_EXTENSION,N.getText()),_.putAllMetadata(N.getResultMetadata()),_.addResultPoints(N.getResultPoints()),E=N.getText().length}catch{}var U=i==null?null:i.get(Ct.ALLOWED_EAN_EXTENSIONS);if(U!=null){var O=!1;for(var Q in U)if(E.toString()===Q){O=!0;break}if(!O)throw new De}return v===He.EAN_13||He.UPC_A,_},e.checkChecksum=function(n){return e.checkStandardUPCEANChecksum(n)},e.checkStandardUPCEANChecksum=function(n){var r=n.length;if(r===0)return!1;var i=parseInt(n.charAt(r-1),10);return e.getStandardUPCEANChecksum(n.substring(0,r-1))===i},e.getStandardUPCEANChecksum=function(n){for(var r=n.length,i=0,o=r-1;o>=0;o-=2){var a=n.charAt(o).charCodeAt(0)-"0".charCodeAt(0);if(a<0||a>9)throw new Me;i+=a}i*=3;for(var o=r-2;o>=0;o-=2){var a=n.charAt(o).charCodeAt(0)-"0".charCodeAt(0);if(a<0||a>9)throw new Me;i+=a}return(1e3-i)%10},e.decodeEnd=function(n,r){return e.findGuardPattern(n,r,!1,e.START_END_PATTERN,new Int32Array(e.START_END_PATTERN.length).fill(0))},e}(Oa),dX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),pm=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Gd=function(t){dX(e,t);function e(){var n=t.call(this)||this;return n.decodeMiddleCounters=Int32Array.from([0,0,0,0]),n}return e.prototype.decodeMiddle=function(n,r,i){var o,a,s,c,u=this.decodeMiddleCounters;u[0]=0,u[1]=0,u[2]=0,u[3]=0;for(var l=n.getSize(),h=r[1],f=0,d=0;d<6&&h<l;d++){var p=sn.decodeDigit(n,u,h,sn.L_AND_G_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+p%10);try{for(var g=(o=void 0,pm(u)),y=g.next();!y.done;y=g.next()){var R=y.value;h+=R}}catch(_){o={error:_}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}p>=10&&(f|=1<<5-d)}i=e.determineFirstDigit(i,f);var m=sn.findGuardPattern(n,h,!0,sn.MIDDLE_PATTERN,new Int32Array(sn.MIDDLE_PATTERN.length).fill(0));h=m[1];for(var d=0;d<6&&h<l;d++){var p=sn.decodeDigit(n,u,h,sn.L_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+p);try{for(var v=(s=void 0,pm(u)),x=v.next();!x.done;x=v.next()){var R=x.value;h+=R}}catch(N){s={error:N}}finally{try{x&&!x.done&&(c=v.return)&&c.call(v)}finally{if(s)throw s.error}}}return{rowOffset:h,resultString:i}},e.prototype.getBarcodeFormat=function(){return He.EAN_13},e.determineFirstDigit=function(n,r){for(var i=0;i<10;i++)if(r===this.FIRST_DIGIT_ENCODINGS[i])return n=String.fromCharCode("0".charCodeAt(0)+i)+n,n;throw new De},e.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26],e}(sn),fX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),gm=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},mm=function(t){fX(e,t);function e(){var n=t.call(this)||this;return n.decodeMiddleCounters=Int32Array.from([0,0,0,0]),n}return e.prototype.decodeMiddle=function(n,r,i){var o,a,s,c,u=this.decodeMiddleCounters;u[0]=0,u[1]=0,u[2]=0,u[3]=0;for(var l=n.getSize(),h=r[1],f=0;f<4&&h<l;f++){var d=sn.decodeDigit(n,u,h,sn.L_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+d);try{for(var p=(o=void 0,gm(u)),g=p.next();!g.done;g=p.next()){var y=g.value;h+=y}}catch(x){o={error:x}}finally{try{g&&!g.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}}var R=sn.findGuardPattern(n,h,!0,sn.MIDDLE_PATTERN,new Int32Array(sn.MIDDLE_PATTERN.length).fill(0));h=R[1];for(var f=0;f<4&&h<l;f++){var d=sn.decodeDigit(n,u,h,sn.L_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+d);try{for(var m=(s=void 0,gm(u)),v=m.next();!v.done;v=m.next()){var y=v.value;h+=y}}catch(E){s={error:E}}finally{try{v&&!v.done&&(c=m.return)&&c.call(m)}finally{if(s)throw s.error}}}return{rowOffset:h,resultString:i}},e.prototype.getBarcodeFormat=function(){return He.EAN_8},e}(sn),pX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rm=function(t){pX(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ean13Reader=new Gd,n}return e.prototype.getBarcodeFormat=function(){return He.UPC_A},e.prototype.decode=function(n,r){return this.maybeReturnResult(this.ean13Reader.decode(n))},e.prototype.decodeRow=function(n,r,i){return this.maybeReturnResult(this.ean13Reader.decodeRow(n,r,i))},e.prototype.decodeMiddle=function(n,r,i){return this.ean13Reader.decodeMiddle(n,r,i)},e.prototype.maybeReturnResult=function(n){var r=n.getText();if(r.charAt(0)==="0"){var i=new Un(r.substring(1),null,null,n.getResultPoints(),He.UPC_A);return n.getResultMetadata()!=null&&i.putAllMetadata(n.getResultMetadata()),i}else throw new De},e.prototype.reset=function(){this.ean13Reader.reset()},e}(sn),gX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),mX=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ym=function(t){gX(e,t);function e(){var n=t.call(this)||this;return n.decodeMiddleCounters=new Int32Array(4),n}return e.prototype.decodeMiddle=function(n,r,i){var o,a,s=this.decodeMiddleCounters.map(function(y){return y});s[0]=0,s[1]=0,s[2]=0,s[3]=0;for(var c=n.getSize(),u=r[1],l=0,h=0;h<6&&u<c;h++){var f=e.decodeDigit(n,s,u,e.L_AND_G_PATTERNS);i+=String.fromCharCode("0".charCodeAt(0)+f%10);try{for(var d=(o=void 0,mX(s)),p=d.next();!p.done;p=d.next()){var g=p.value;u+=g}}catch(y){o={error:y}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}f>=10&&(l|=1<<5-h)}return e.determineNumSysAndCheckDigit(new rt(i),l),u},e.prototype.decodeEnd=function(n,r){return e.findGuardPatternWithoutCounters(n,r,!0,e.MIDDLE_END_PATTERN)},e.prototype.checkChecksum=function(n){return sn.checkChecksum(e.convertUPCEtoUPCA(n))},e.determineNumSysAndCheckDigit=function(n,r){for(var i=0;i<=1;i++)for(var o=0;o<10;o++)if(r===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[i][o]){n.insert(0,"0"+i),n.append("0"+o);return}throw De.getNotFoundInstance()},e.prototype.getBarcodeFormat=function(){return He.UPC_E},e.convertUPCEtoUPCA=function(n){var r=n.slice(1,7).split("").map(function(a){return a.charCodeAt(0)}),i=new rt;i.append(n.charAt(0));var o=r[5];switch(o){case 0:case 1:case 2:i.appendChars(r,0,2),i.append(o),i.append("0000"),i.appendChars(r,2,3);break;case 3:i.appendChars(r,0,3),i.append("00000"),i.appendChars(r,3,2);break;case 4:i.appendChars(r,0,4),i.append("00000"),i.append(r[4]);break;default:i.appendChars(r,0,5),i.append("0000"),i.append(o);break}return n.length>=8&&i.append(n.charAt(7)),i.toString()},e.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),e.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])],e}(sn),RX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),vm=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},nd=function(t){RX(e,t);function e(n){var r=t.call(this)||this,i=n==null?null:n.get(Ct.POSSIBLE_FORMATS),o=[];return i!=null&&(i.indexOf(He.EAN_13)>-1&&o.push(new Gd),i.indexOf(He.UPC_A)>-1&&o.push(new Rm),i.indexOf(He.EAN_8)>-1&&o.push(new mm),i.indexOf(He.UPC_E)>-1&&o.push(new ym)),o.length===0&&(o.push(new Gd),o.push(new Rm),o.push(new mm),o.push(new ym)),r.readers=o,r}return e.prototype.decodeRow=function(n,r,i){var o,a;try{for(var s=vm(this.readers),c=s.next();!c.done;c=s.next()){var u=c.value;try{var l=u.decodeRow(n,r,i),h=l.getBarcodeFormat()===He.EAN_13&&l.getText().charAt(0)==="0",f=i==null?null:i.get(Ct.POSSIBLE_FORMATS),d=f==null||f.includes(He.UPC_A);if(h&&d){var p=l.getRawBytes(),g=new Un(l.getText().substring(1),p,p?p.length:null,l.getResultPoints(),He.UPC_A);return g.putAllMetadata(l.getResultMetadata()),g}return l}catch{}}}catch(y){o={error:y}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}throw new De},e.prototype.reset=function(){var n,r;try{for(var i=vm(this.readers),o=i.next();!o.done;o=i.next()){var a=o.value;a.reset()}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(ln),yX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),vX=function(t){yX(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.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"},n}return e.prototype.decodeRow=function(n,r,i){var o=this.getValidRowData(r);if(!o)throw new De;var a=this.codaBarDecodeRow(o.row);if(!a)throw new De;return new Un(a,null,0,[new Ye(o.left,n),new Ye(o.right,n)],He.CODABAR,new Date().getTime())},e.prototype.getValidRowData=function(n){var r=n.toArray(),i=r.indexOf(!0);if(i===-1)return null;var o=r.lastIndexOf(!0);if(o<=i)return null;r=r.slice(i,o+1);for(var a=[],s=r[0],c=1,u=1;u<r.length;u++)r[u]===s?c++:(s=r[u],a.push(c),c=1);return a.push(c),a.length<23&&(a.length+1)%8!==0?null:{row:a,left:i,right:o}},e.prototype.codaBarDecodeRow=function(n){for(var r=[],i=Math.ceil(n.reduce(function(c,u){return(c+u)/2},0));n.length>0;){var o=n.splice(0,8).splice(0,7),a=o.map(function(c){return c<i?"n":"w"}).join("");if(this.CODA_BAR_CHAR_SET[a]===void 0)return null;r.push(this.CODA_BAR_CHAR_SET[a])}var s=r.join("");return this.validCodaBarString(s)?s:null},e.prototype.validCodaBarString=function(n){var r=/^[A-D].{1,}[A-D]$/;return r.test(n)},e}(ln),bX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xX=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},oo=function(t){bX(e,t);function e(){var n=t.call(this)||this;return n.decodeFinderCounters=new Int32Array(4),n.dataCharacterCounters=new Int32Array(8),n.oddRoundingErrors=new Array(4),n.evenRoundingErrors=new Array(4),n.oddCounts=new Array(n.dataCharacterCounters.length/2),n.evenCounts=new Array(n.dataCharacterCounters.length/2),n}return e.prototype.getDecodeFinderCounters=function(){return this.decodeFinderCounters},e.prototype.getDataCharacterCounters=function(){return this.dataCharacterCounters},e.prototype.getOddRoundingErrors=function(){return this.oddRoundingErrors},e.prototype.getEvenRoundingErrors=function(){return this.evenRoundingErrors},e.prototype.getOddCounts=function(){return this.oddCounts},e.prototype.getEvenCounts=function(){return this.evenCounts},e.prototype.parseFinderValue=function(n,r){for(var i=0;i<r.length;i++)if(ln.patternMatchVariance(n,r[i],e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return i;throw new De},e.count=function(n){return ft.sum(new Int32Array(n))},e.increment=function(n,r){for(var i=0,o=r[0],a=1;a<n.length;a++)r[a]>o&&(o=r[a],i=a);n[i]++},e.decrement=function(n,r){for(var i=0,o=r[0],a=1;a<n.length;a++)r[a]<o&&(o=r[a],i=a);n[i]--},e.isFinderPattern=function(n){var r,i,o=n[0]+n[1],a=o+n[2]+n[3],s=o/a;if(s>=e.MIN_FINDER_PATTERN_RATIO&&s<=e.MAX_FINDER_PATTERN_RATIO){var c=Number.MAX_SAFE_INTEGER,u=Number.MIN_SAFE_INTEGER;try{for(var l=xX(n),h=l.next();!h.done;h=l.next()){var f=h.value;f>u&&(u=f),f<c&&(c=f)}}catch(d){r={error:d}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return u<10*c}return!1},e.MAX_AVG_VARIANCE=.2,e.MAX_INDIVIDUAL_VARIANCE=.45,e.MIN_FINDER_PATTERN_RATIO=9.5/12,e.MAX_FINDER_PATTERN_RATIO=12.5/14,e}(ln),Fu=function(){function t(e,n){this.value=e,this.checksumPortion=n}return t.prototype.getValue=function(){return this.value},t.prototype.getChecksumPortion=function(){return this.checksumPortion},t.prototype.toString=function(){return this.value+"("+this.checksumPortion+")"},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.value===n.value&&this.checksumPortion===n.checksumPortion},t.prototype.hashCode=function(){return this.value^this.checksumPortion},t}(),yb=function(){function t(e,n,r,i,o){this.value=e,this.startEnd=n,this.value=e,this.startEnd=n,this.resultPoints=new Array,this.resultPoints.push(new Ye(r,o)),this.resultPoints.push(new Ye(i,o))}return t.prototype.getValue=function(){return this.value},t.prototype.getStartEnd=function(){return this.startEnd},t.prototype.getResultPoints=function(){return this.resultPoints},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.value===n.value},t.prototype.hashCode=function(){return this.value},t}(),wX=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},qo=function(){function t(){}return t.getRSSvalue=function(e,n,r){var i,o,a=0;try{for(var s=wX(e),c=s.next();!c.done;c=s.next()){var u=c.value;a+=u}}catch(m){i={error:m}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}for(var l=0,h=0,f=e.length,d=0;d<f-1;d++){var p=void 0;for(p=1,h|=1<<d;p<e[d];p++,h&=~(1<<d)){var g=t.combins(a-p-1,f-d-2);if(r&&h===0&&a-p-(f-d-1)>=f-d-1&&(g-=t.combins(a-p-(f-d),f-d-2)),f-d-1>1){for(var y=0,R=a-p-(f-d-2);R>n;R--)y+=t.combins(a-p-R-1,f-d-3);g-=y*(f-1-d)}else a-p>n&&g--;l+=g}a-=p}return l},t.combins=function(e,n){var r,i;e-n>n?(i=n,r=e-n):(i=e-n,r=n);for(var o=1,a=1,s=e;s>r;s--)o*=s,a<=i&&(o/=a,a++);for(;a<=i;)o/=a,a++;return o},t}(),TX=function(){function t(){}return t.buildBitArray=function(e){var n=e.length*2-1;e[e.length-1].getRightChar()==null&&(n-=1);for(var r=12*n,i=new $n(r),o=0,a=e[0],s=a.getRightChar().getValue(),c=11;c>=0;--c)(s&1<<c)!==0&&i.set(o),o++;for(var c=1;c<e.length;++c){for(var u=e[c],l=u.getLeftChar().getValue(),h=11;h>=0;--h)(l&1<<h)!==0&&i.set(o),o++;if(u.getRightChar()!==null)for(var f=u.getRightChar().getValue(),h=11;h>=0;--h)(f&1<<h)!==0&&i.set(o),o++}return i},t}(),no=function(){function t(e,n){n?this.decodedInformation=null:(this.finished=e,this.decodedInformation=n)}return t.prototype.getDecodedInformation=function(){return this.decodedInformation},t.prototype.isFinished=function(){return this.finished},t}(),qp=function(){function t(e){this.newPosition=e}return t.prototype.getNewPosition=function(){return this.newPosition},t}(),SX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nr=function(t){SX(e,t);function e(n,r){var i=t.call(this,n)||this;return i.value=r,i}return e.prototype.getValue=function(){return this.value},e.prototype.isFNC1=function(){return this.value===e.FNC1},e.FNC1="$",e}(qp),DX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ro=function(t){DX(e,t);function e(n,r,i){var o=t.call(this,n)||this;return i?(o.remaining=!0,o.remainingValue=o.remainingValue):(o.remaining=!1,o.remainingValue=0),o.newString=r,o}return e.prototype.getNewString=function(){return this.newString},e.prototype.isRemaining=function(){return this.remaining},e.prototype.getRemainingValue=function(){return this.remainingValue},e}(qp),_X=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ko=function(t){_X(e,t);function e(n,r,i){var o=t.call(this,n)||this;if(r<0||r>10||i<0||i>10)throw new Me;return o.firstDigit=r,o.secondDigit=i,o}return e.prototype.getFirstDigit=function(){return this.firstDigit},e.prototype.getSecondDigit=function(){return this.secondDigit},e.prototype.getValue=function(){return this.firstDigit*10+this.secondDigit},e.prototype.isFirstDigitFNC1=function(){return this.firstDigit===e.FNC1},e.prototype.isSecondDigitFNC1=function(){return this.secondDigit===e.FNC1},e.prototype.isAnyFNC1=function(){return this.firstDigit===e.FNC1||this.secondDigit===e.FNC1},e.FNC1=10,e}(qp),Jc=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},OX=function(){function t(){}return t.parseFieldsInGeneralPurpose=function(e){var n,r,i,o,a,s,c,u;if(!e)return null;if(e.length<2)throw new De;var l=e.substring(0,2);try{for(var h=Jc(t.TWO_DIGIT_DATA_LENGTH),f=h.next();!f.done;f=h.next()){var d=f.value;if(d[0]===l)return d[1]===t.VARIABLE_LENGTH?t.processVariableAI(2,d[2],e):t.processFixedAI(2,d[1],e)}}catch(E){n={error:E}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}if(e.length<3)throw new De;var p=e.substring(0,3);try{for(var g=Jc(t.THREE_DIGIT_DATA_LENGTH),y=g.next();!y.done;y=g.next()){var d=y.value;if(d[0]===p)return d[1]===t.VARIABLE_LENGTH?t.processVariableAI(3,d[2],e):t.processFixedAI(3,d[1],e)}}catch(E){i={error:E}}finally{try{y&&!y.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}try{for(var R=Jc(t.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),m=R.next();!m.done;m=R.next()){var d=m.value;if(d[0]===p)return d[1]===t.VARIABLE_LENGTH?t.processVariableAI(4,d[2],e):t.processFixedAI(4,d[1],e)}}catch(E){a={error:E}}finally{try{m&&!m.done&&(s=R.return)&&s.call(R)}finally{if(a)throw a.error}}if(e.length<4)throw new De;var v=e.substring(0,4);try{for(var x=Jc(t.FOUR_DIGIT_DATA_LENGTH),_=x.next();!_.done;_=x.next()){var d=_.value;if(d[0]===v)return d[1]===t.VARIABLE_LENGTH?t.processVariableAI(4,d[2],e):t.processFixedAI(4,d[1],e)}}catch(E){c={error:E}}finally{try{_&&!_.done&&(u=x.return)&&u.call(x)}finally{if(c)throw c.error}}throw new De},t.processFixedAI=function(e,n,r){if(r.length<e)throw new De;var i=r.substring(0,e);if(r.length<e+n)throw new De;var o=r.substring(e,e+n),a=r.substring(e+n),s="("+i+")"+o,c=t.parseFieldsInGeneralPurpose(a);return c==null?s:s+c},t.processVariableAI=function(e,n,r){var i=r.substring(0,e),o;r.length<e+n?o=r.length:o=e+n;var a=r.substring(e,o),s=r.substring(o),c="("+i+")"+a,u=t.parseFieldsInGeneralPurpose(s);return u==null?c:c+u},t.VARIABLE_LENGTH=[],t.TWO_DIGIT_DATA_LENGTH=[["00",18],["01",14],["02",14],["10",t.VARIABLE_LENGTH,20],["11",6],["12",6],["13",6],["15",6],["17",6],["20",2],["21",t.VARIABLE_LENGTH,20],["22",t.VARIABLE_LENGTH,29],["30",t.VARIABLE_LENGTH,8],["37",t.VARIABLE_LENGTH,8],["90",t.VARIABLE_LENGTH,30],["91",t.VARIABLE_LENGTH,30],["92",t.VARIABLE_LENGTH,30],["93",t.VARIABLE_LENGTH,30],["94",t.VARIABLE_LENGTH,30],["95",t.VARIABLE_LENGTH,30],["96",t.VARIABLE_LENGTH,30],["97",t.VARIABLE_LENGTH,3],["98",t.VARIABLE_LENGTH,30],["99",t.VARIABLE_LENGTH,30]],t.THREE_DIGIT_DATA_LENGTH=[["240",t.VARIABLE_LENGTH,30],["241",t.VARIABLE_LENGTH,30],["242",t.VARIABLE_LENGTH,6],["250",t.VARIABLE_LENGTH,30],["251",t.VARIABLE_LENGTH,30],["253",t.VARIABLE_LENGTH,17],["254",t.VARIABLE_LENGTH,20],["400",t.VARIABLE_LENGTH,30],["401",t.VARIABLE_LENGTH,30],["402",17],["403",t.VARIABLE_LENGTH,30],["410",13],["411",13],["412",13],["413",13],["414",13],["420",t.VARIABLE_LENGTH,20],["421",t.VARIABLE_LENGTH,15],["422",3],["423",t.VARIABLE_LENGTH,15],["424",3],["425",3],["426",3]],t.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",t.VARIABLE_LENGTH,15],["391",t.VARIABLE_LENGTH,18],["392",t.VARIABLE_LENGTH,15],["393",t.VARIABLE_LENGTH,18],["703",t.VARIABLE_LENGTH,30]],t.FOUR_DIGIT_DATA_LENGTH=[["7001",13],["7002",t.VARIABLE_LENGTH,30],["7003",10],["8001",14],["8002",t.VARIABLE_LENGTH,20],["8003",t.VARIABLE_LENGTH,30],["8004",t.VARIABLE_LENGTH,30],["8005",6],["8006",18],["8007",t.VARIABLE_LENGTH,30],["8008",t.VARIABLE_LENGTH,12],["8018",18],["8020",t.VARIABLE_LENGTH,25],["8100",6],["8101",10],["8102",2],["8110",t.VARIABLE_LENGTH,70],["8200",t.VARIABLE_LENGTH,70]],t}(),su=function(){function t(e){this.buffer=new rt,this.information=e}return t.prototype.decodeAllCodes=function(e,n){var r=n,i=null;do{var o=this.decodeGeneralPurposeField(r,i),a=OX.parseFieldsInGeneralPurpose(o.getNewString());if(a!=null&&e.append(a),o.isRemaining()?i=""+o.getRemainingValue():i=null,r===o.getNewPosition())break;r=o.getNewPosition()}while(!0);return e.toString()},t.prototype.isStillNumeric=function(e){if(e+7>this.information.getSize())return e+4<=this.information.getSize();for(var n=e;n<e+3;++n)if(this.information.get(n))return!0;return this.information.get(e+3)},t.prototype.decodeNumeric=function(e){if(e+7>this.information.getSize()){var n=this.extractNumericValueFromBitArray(e,4);return n===0?new Ko(this.information.getSize(),Ko.FNC1,Ko.FNC1):new Ko(this.information.getSize(),n-1,Ko.FNC1)}var r=this.extractNumericValueFromBitArray(e,7),i=(r-8)/11,o=(r-8)%11;return new Ko(e+7,i,o)},t.prototype.extractNumericValueFromBitArray=function(e,n){return t.extractNumericValueFromBitArray(this.information,e,n)},t.extractNumericValueFromBitArray=function(e,n,r){for(var i=0,o=0;o<r;++o)e.get(n+o)&&(i|=1<<r-o-1);return i},t.prototype.decodeGeneralPurposeField=function(e,n){this.buffer.setLengthToZero(),n!=null&&this.buffer.append(n),this.current.setPosition(e);var r=this.parseBlocks();return r!=null&&r.isRemaining()?new ro(this.current.getPosition(),this.buffer.toString(),r.getRemainingValue()):new ro(this.current.getPosition(),this.buffer.toString())},t.prototype.parseBlocks=function(){var e,n;do{var r=this.current.getPosition();this.current.isAlpha()?(n=this.parseAlphaBlock(),e=n.isFinished()):this.current.isIsoIec646()?(n=this.parseIsoIec646Block(),e=n.isFinished()):(n=this.parseNumericBlock(),e=n.isFinished());var i=r!==this.current.getPosition();if(!i&&!e)break}while(!e);return n.getDecodedInformation()},t.prototype.parseNumericBlock=function(){for(;this.isStillNumeric(this.current.getPosition());){var e=this.decodeNumeric(this.current.getPosition());if(this.current.setPosition(e.getNewPosition()),e.isFirstDigitFNC1()){var n=void 0;return e.isSecondDigitFNC1()?n=new ro(this.current.getPosition(),this.buffer.toString()):n=new ro(this.current.getPosition(),this.buffer.toString(),e.getSecondDigit()),new no(!0,n)}if(this.buffer.append(e.getFirstDigit()),e.isSecondDigitFNC1()){var n=new ro(this.current.getPosition(),this.buffer.toString());return new no(!0,n)}this.buffer.append(e.getSecondDigit())}return this.isNumericToAlphaNumericLatch(this.current.getPosition())&&(this.current.setAlpha(),this.current.incrementPosition(4)),new no(!1)},t.prototype.parseIsoIec646Block=function(){for(;this.isStillIsoIec646(this.current.getPosition());){var e=this.decodeIsoIec646(this.current.getPosition());if(this.current.setPosition(e.getNewPosition()),e.isFNC1()){var n=new ro(this.current.getPosition(),this.buffer.toString());return new no(!0,n)}this.buffer.append(e.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 no(!1)},t.prototype.parseAlphaBlock=function(){for(;this.isStillAlpha(this.current.getPosition());){var e=this.decodeAlphanumeric(this.current.getPosition());if(this.current.setPosition(e.getNewPosition()),e.isFNC1()){var n=new ro(this.current.getPosition(),this.buffer.toString());return new no(!0,n)}this.buffer.append(e.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 no(!1)},t.prototype.isStillIsoIec646=function(e){if(e+5>this.information.getSize())return!1;var n=this.extractNumericValueFromBitArray(e,5);if(n>=5&&n<16)return!0;if(e+7>this.information.getSize())return!1;var r=this.extractNumericValueFromBitArray(e,7);if(r>=64&&r<116)return!0;if(e+8>this.information.getSize())return!1;var i=this.extractNumericValueFromBitArray(e,8);return i>=232&&i<253},t.prototype.decodeIsoIec646=function(e){var n=this.extractNumericValueFromBitArray(e,5);if(n===15)return new Nr(e+5,Nr.FNC1);if(n>=5&&n<15)return new Nr(e+5,"0"+(n-5));var r=this.extractNumericValueFromBitArray(e,7);if(r>=64&&r<90)return new Nr(e+7,""+(r+1));if(r>=90&&r<116)return new Nr(e+7,""+(r+7));var i=this.extractNumericValueFromBitArray(e,8),o;switch(i){case 232:o="!";break;case 233:o='"';break;case 234:o="%";break;case 235:o="&";break;case 236:o="'";break;case 237:o="(";break;case 238:o=")";break;case 239:o="*";break;case 240:o="+";break;case 241:o=",";break;case 242:o="-";break;case 243:o=".";break;case 244:o="/";break;case 245:o=":";break;case 246:o=";";break;case 247:o="<";break;case 248:o="=";break;case 249:o=">";break;case 250:o="?";break;case 251:o="_";break;case 252:o=" ";break;default:throw new Me}return new Nr(e+8,o)},t.prototype.isStillAlpha=function(e){if(e+5>this.information.getSize())return!1;var n=this.extractNumericValueFromBitArray(e,5);if(n>=5&&n<16)return!0;if(e+6>this.information.getSize())return!1;var r=this.extractNumericValueFromBitArray(e,6);return r>=16&&r<63},t.prototype.decodeAlphanumeric=function(e){var n=this.extractNumericValueFromBitArray(e,5);if(n===15)return new Nr(e+5,Nr.FNC1);if(n>=5&&n<15)return new Nr(e+5,"0"+(n-5));var r=this.extractNumericValueFromBitArray(e,6);if(r>=32&&r<58)return new Nr(e+6,""+(r+33));var i;switch(r){case 58:i="*";break;case 59:i=",";break;case 60:i="-";break;case 61:i=".";break;case 62:i="/";break;default:throw new Va("Decoding invalid alphanumeric value: "+r)}return new Nr(e+6,i)},t.prototype.isAlphaTo646ToAlphaLatch=function(e){if(e+1>this.information.getSize())return!1;for(var n=0;n<5&&n+e<this.information.getSize();++n)if(n===2){if(!this.information.get(e+2))return!1}else if(this.information.get(e+n))return!1;return!0},t.prototype.isAlphaOr646ToNumericLatch=function(e){if(e+3>this.information.getSize())return!1;for(var n=e;n<e+3;++n)if(this.information.get(n))return!1;return!0},t.prototype.isNumericToAlphaNumericLatch=function(e){if(e+1>this.information.getSize())return!1;for(var n=0;n<4&&n+e<this.information.getSize();++n)if(this.information.get(e+n))return!1;return!0},t}(),vb=function(){function t(e){this.information=e,this.generalDecoder=new su(e)}return t.prototype.getInformation=function(){return this.information},t.prototype.getGeneralDecoder=function(){return this.generalDecoder},t}(),EX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fr=function(t){EX(e,t);function e(n){return t.call(this,n)||this}return e.prototype.encodeCompressedGtin=function(n,r){n.append("(01)");var i=n.length();n.append("9"),this.encodeCompressedGtinWithoutAI(n,r,i)},e.prototype.encodeCompressedGtinWithoutAI=function(n,r,i){for(var o=0;o<4;++o){var a=this.getGeneralDecoder().extractNumericValueFromBitArray(r+10*o,10);a/100===0&&n.append("0"),a/10===0&&n.append("0"),n.append(a)}e.appendCheckDigit(n,i)},e.appendCheckDigit=function(n,r){for(var i=0,o=0;o<13;o++){var a=n.charAt(o+r).charCodeAt(0)-"0".charCodeAt(0);i+=(o&1)===0?3*a:a}i=10-i%10,i===10&&(i=0),n.append(i)},e.GTIN_SIZE=40,e}(vb),IX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),NX=function(t){IX(e,t);function e(n){return t.call(this,n)||this}return e.prototype.parseInformation=function(){var n=new rt;n.append("(01)");var r=n.length(),i=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE,4);return n.append(i),this.encodeCompressedGtinWithoutAI(n,e.HEADER_SIZE+4,r),this.getGeneralDecoder().decodeAllCodes(n,e.HEADER_SIZE+44)},e.HEADER_SIZE=1+1+2,e}(Fr),FX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),PX=function(t){FX(e,t);function e(n){return t.call(this,n)||this}return e.prototype.parseInformation=function(){var n=new rt;return this.getGeneralDecoder().decodeAllCodes(n,e.HEADER_SIZE)},e.HEADER_SIZE=2+1+2,e}(vb),LX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),cu=function(t){LX(e,t);function e(n){return t.call(this,n)||this}return e.prototype.encodeCompressedWeight=function(n,r,i){var o=this.getGeneralDecoder().extractNumericValueFromBitArray(r,i);this.addWeightCode(n,o);for(var a=this.checkWeight(o),s=1e5,c=0;c<5;++c)a/s===0&&n.append("0"),s/=10;n.append(a)},e}(Fr),MX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),bb=function(t){MX(e,t);function e(n){return t.call(this,n)||this}return e.prototype.parseInformation=function(){if(this.getInformation().getSize()!==e.HEADER_SIZE+cu.GTIN_SIZE+e.WEIGHT_SIZE)throw new De;var n=new rt;return this.encodeCompressedGtin(n,e.HEADER_SIZE),this.encodeCompressedWeight(n,e.HEADER_SIZE+cu.GTIN_SIZE,e.WEIGHT_SIZE),n.toString()},e.HEADER_SIZE=4+1,e.WEIGHT_SIZE=15,e}(cu),CX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),AX=function(t){CX(e,t);function e(n){return t.call(this,n)||this}return e.prototype.addWeightCode=function(n,r){n.append("(3103)")},e.prototype.checkWeight=function(n){return n},e}(bb),UX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),WX=function(t){UX(e,t);function e(n){return t.call(this,n)||this}return e.prototype.addWeightCode=function(n,r){r<1e4?n.append("(3202)"):n.append("(3203)")},e.prototype.checkWeight=function(n){return n<1e4?n:n-1e4},e}(bb),XX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),VX=function(t){XX(e,t);function e(n){return t.call(this,n)||this}return e.prototype.parseInformation=function(){if(this.getInformation().getSize()<e.HEADER_SIZE+Fr.GTIN_SIZE)throw new De;var n=new rt;this.encodeCompressedGtin(n,e.HEADER_SIZE);var r=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+Fr.GTIN_SIZE,e.LAST_DIGIT_SIZE);n.append("(392"),n.append(r),n.append(")");var i=this.getGeneralDecoder().decodeGeneralPurposeField(e.HEADER_SIZE+Fr.GTIN_SIZE+e.LAST_DIGIT_SIZE,null);return n.append(i.getNewString()),n.toString()},e.HEADER_SIZE=5+1+2,e.LAST_DIGIT_SIZE=2,e}(Fr),YX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),BX=function(t){YX(e,t);function e(n){return t.call(this,n)||this}return e.prototype.parseInformation=function(){if(this.getInformation().getSize()<e.HEADER_SIZE+Fr.GTIN_SIZE)throw new De;var n=new rt;this.encodeCompressedGtin(n,e.HEADER_SIZE);var r=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+Fr.GTIN_SIZE,e.LAST_DIGIT_SIZE);n.append("(393"),n.append(r),n.append(")");var i=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+Fr.GTIN_SIZE+e.LAST_DIGIT_SIZE,e.FIRST_THREE_DIGITS_SIZE);i/100===0&&n.append("0"),i/10===0&&n.append("0"),n.append(i);var o=this.getGeneralDecoder().decodeGeneralPurposeField(e.HEADER_SIZE+Fr.GTIN_SIZE+e.LAST_DIGIT_SIZE+e.FIRST_THREE_DIGITS_SIZE,null);return n.append(o.getNewString()),n.toString()},e.HEADER_SIZE=5+1+2,e.LAST_DIGIT_SIZE=2,e.FIRST_THREE_DIGITS_SIZE=10,e}(Fr),kX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ii=function(t){kX(e,t);function e(n,r,i){var o=t.call(this,n)||this;return o.dateCode=i,o.firstAIdigits=r,o}return e.prototype.parseInformation=function(){if(this.getInformation().getSize()!==e.HEADER_SIZE+e.GTIN_SIZE+e.WEIGHT_SIZE+e.DATE_SIZE)throw new De;var n=new rt;return this.encodeCompressedGtin(n,e.HEADER_SIZE),this.encodeCompressedWeight(n,e.HEADER_SIZE+e.GTIN_SIZE,e.WEIGHT_SIZE),this.encodeCompressedDate(n,e.HEADER_SIZE+e.GTIN_SIZE+e.WEIGHT_SIZE),n.toString()},e.prototype.encodeCompressedDate=function(n,r){var i=this.getGeneralDecoder().extractNumericValueFromBitArray(r,e.DATE_SIZE);if(i!==38400){n.append("("),n.append(this.dateCode),n.append(")");var o=i%32;i/=32;var a=i%12+1;i/=12;var s=i;s/10===0&&n.append("0"),n.append(s),a/10===0&&n.append("0"),n.append(a),o/10===0&&n.append("0"),n.append(o)}},e.prototype.addWeightCode=function(n,r){n.append("("),n.append(this.firstAIdigits),n.append(r/1e5),n.append(")")},e.prototype.checkWeight=function(n){return n%1e5},e.HEADER_SIZE=7+1,e.WEIGHT_SIZE=20,e.DATE_SIZE=16,e}(cu);function ZX(t){try{if(t.get(1))return new NX(t);if(!t.get(2))return new PX(t);var e=su.extractNumericValueFromBitArray(t,1,4);switch(e){case 4:return new AX(t);case 5:return new WX(t)}var n=su.extractNumericValueFromBitArray(t,1,5);switch(n){case 12:return new VX(t);case 13:return new BX(t)}var r=su.extractNumericValueFromBitArray(t,1,7);switch(r){case 56:return new Ii(t,"310","11");case 57:return new Ii(t,"320","11");case 58:return new Ii(t,"310","13");case 59:return new Ii(t,"320","13");case 60:return new Ii(t,"310","15");case 61:return new Ii(t,"320","15");case 62:return new Ii(t,"310","17");case 63:return new Ii(t,"320","17")}}catch(i){throw console.log(i),new Va("unknown decoder: "+t)}}var bm=function(){function t(e,n,r,i){this.leftchar=e,this.rightchar=n,this.finderpattern=r,this.maybeLast=i}return t.prototype.mayBeLast=function(){return this.maybeLast},t.prototype.getLeftChar=function(){return this.leftchar},t.prototype.getRightChar=function(){return this.rightchar},t.prototype.getFinderPattern=function(){return this.finderpattern},t.prototype.mustBeLast=function(){return this.rightchar==null},t.prototype.toString=function(){return"[ "+this.leftchar+", "+this.rightchar+" : "+(this.finderpattern==null?"null":this.finderpattern.getValue())+" ]"},t.equals=function(e,n){return e instanceof t?t.equalsOrNull(e.leftchar,n.leftchar)&&t.equalsOrNull(e.rightchar,n.rightchar)&&t.equalsOrNull(e.finderpattern,n.finderpattern):!1},t.equalsOrNull=function(e,n){return e===null?n===null:t.equals(e,n)},t.prototype.hashCode=function(){var e=this.leftchar.getValue()^this.rightchar.getValue()^this.finderpattern.getValue();return e},t}(),QX=function(){function t(e,n,r){this.pairs=e,this.rowNumber=n,this.wasReversed=r}return t.prototype.getPairs=function(){return this.pairs},t.prototype.getRowNumber=function(){return this.rowNumber},t.prototype.isReversed=function(){return this.wasReversed},t.prototype.isEquivalent=function(e){return this.checkEqualitity(this,e)},t.prototype.toString=function(){return"{ "+this.pairs+" }"},t.prototype.equals=function(e,n){return e instanceof t?this.checkEqualitity(e,n)&&e.wasReversed===n.wasReversed:!1},t.prototype.checkEqualitity=function(e,n){if(!(!e||!n)){var r;return e.forEach(function(i,o){n.forEach(function(a){i.getLeftChar().getValue()===a.getLeftChar().getValue()&&i.getRightChar().getValue()===a.getRightChar().getValue()&&i.getFinderPatter().getValue()===a.getFinderPatter().getValue()&&(r=!0)})}),r}},t}(),KX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ni=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},HX=function(t){KX(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.pairs=new Array(e.MAX_PAIRS),n.rows=new Array,n.startEnd=[2],n}return e.prototype.decodeRow=function(n,r,i){this.pairs.length=0,this.startFromEven=!1;try{return e.constructResult(this.decodeRow2pairs(n,r))}catch{}return this.pairs.length=0,this.startFromEven=!0,e.constructResult(this.decodeRow2pairs(n,r))},e.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},e.prototype.decodeRow2pairs=function(n,r){for(var i=!1;!i;)try{this.pairs.push(this.retrieveNextPair(r,this.pairs,n))}catch(s){if(s instanceof De){if(!this.pairs.length)throw new De;i=!0}}if(this.checkChecksum())return this.pairs;var o;if(this.rows.length?o=!0:o=!1,this.storeRow(n,!1),o){var a=this.checkRowsBoolean(!1);if(a!=null||(a=this.checkRowsBoolean(!0),a!=null))return a}throw new De},e.prototype.checkRowsBoolean=function(n){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,n&&(this.rows=this.rows.reverse());var r=null;try{r=this.checkRows(new Array,0)}catch(i){console.log(i)}return n&&(this.rows=this.rows.reverse()),r},e.prototype.checkRows=function(n,r){for(var i,o,a=r;a<this.rows.length;a++){var s=this.rows[a];this.pairs.length=0;try{for(var c=(i=void 0,Ni(n)),u=c.next();!u.done;u=c.next()){var l=u.value;this.pairs.push(l.getPairs())}}catch(f){i={error:f}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}if(this.pairs.push(s.getPairs()),!!e.isValidSequence(this.pairs)){if(this.checkChecksum())return this.pairs;var h=new Array(n);h.push(s);try{return this.checkRows(h,a+1)}catch(f){console.log(f)}}}throw new De},e.isValidSequence=function(n){var r,i;try{for(var o=Ni(e.FINDER_PATTERN_SEQUENCES),a=o.next();!a.done;a=o.next()){var s=a.value;if(!(n.length>s.length)){for(var c=!0,u=0;u<n.length;u++)if(n[u].getFinderPattern().getValue()!==s[u]){c=!1;break}if(c)return!0}}}catch(l){r={error:l}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return!1},e.prototype.storeRow=function(n,r){for(var i=0,o=!1,a=!1;i<this.rows.length;){var s=this.rows[i];if(s.getRowNumber()>n){a=s.isEquivalent(this.pairs);break}o=s.isEquivalent(this.pairs),i++}a||o||e.isPartialRow(this.pairs,this.rows)||(this.rows.push(i,new QX(this.pairs,n,r)),this.removePartialRows(this.pairs,this.rows))},e.prototype.removePartialRows=function(n,r){var i,o,a,s,c,u;try{for(var l=Ni(r),h=l.next();!h.done;h=l.next()){var f=h.value;if(f.getPairs().length!==n.length){var d=!0;try{for(var p=(a=void 0,Ni(f.getPairs())),g=p.next();!g.done;g=p.next()){var y=g.value,R=!1;try{for(var m=(c=void 0,Ni(n)),v=m.next();!v.done;v=m.next()){var x=v.value;if(bm.equals(y,x)){R=!0;break}}}catch(_){c={error:_}}finally{try{v&&!v.done&&(u=m.return)&&u.call(m)}finally{if(c)throw c.error}}R||(d=!1)}}catch(_){a={error:_}}finally{try{g&&!g.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}}}}catch(_){i={error:_}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}},e.isPartialRow=function(n,r){var i,o,a,s,c,u;try{for(var l=Ni(r),h=l.next();!h.done;h=l.next()){var f=h.value,d=!0;try{for(var p=(a=void 0,Ni(n)),g=p.next();!g.done;g=p.next()){var y=g.value,R=!1;try{for(var m=(c=void 0,Ni(f.getPairs())),v=m.next();!v.done;v=m.next()){var x=v.value;if(y.equals(x)){R=!0;break}}}catch(_){c={error:_}}finally{try{v&&!v.done&&(u=m.return)&&u.call(m)}finally{if(c)throw c.error}}if(!R){d=!1;break}}}catch(_){a={error:_}}finally{try{g&&!g.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}if(d)return!0}}catch(_){i={error:_}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}return!1},e.prototype.getRows=function(){return this.rows},e.constructResult=function(n){var r=TX.buildBitArray(n),i=ZX(r),o=i.parseInformation(),a=n[0].getFinderPattern().getResultPoints(),s=n[n.length-1].getFinderPattern().getResultPoints(),c=[a[0],a[1],s[0],s[1]];return new Un(o,null,null,c,He.RSS_EXPANDED,null)},e.prototype.checkChecksum=function(){var n=this.pairs.get(0),r=n.getLeftChar(),i=n.getRightChar();if(i===null)return!1;for(var o=i.getChecksumPortion(),a=2,s=1;s<this.pairs.size();++s){var c=this.pairs.get(s);o+=c.getLeftChar().getChecksumPortion(),a++;var u=c.getRightChar();u!=null&&(o+=u.getChecksumPortion(),a++)}o%=211;var l=211*(a-4)+o;return l===r.getValue()},e.getNextSecondBar=function(n,r){var i;return n.get(r)?(i=n.getNextUnset(r),i=n.getNextSet(i)):(i=n.getNextSet(r),i=n.getNextUnset(i)),i},e.prototype.retrieveNextPair=function(n,r,i){var o=r.length%2===0;this.startFromEven&&(o=!o);var a,s=!0,c=-1;do this.findNextPair(n,r,c),a=this.parseFoundFinderPattern(n,i,o),a===null?c=e.getNextSecondBar(n,this.startEnd[0]):s=!1;while(s);var u=this.decodeDataCharacter(n,a,o,!0);if(!this.isEmptyPair(r)&&r[r.length-1].mustBeLast())throw new De;var l;try{l=this.decodeDataCharacter(n,a,o,!1)}catch(h){l=null,console.log(h)}return new bm(u,l,a,!0)},e.prototype.isEmptyPair=function(n){return n.length===0},e.prototype.findNextPair=function(n,r,i){var o=this.getDecodeFinderCounters();o[0]=0,o[1]=0,o[2]=0,o[3]=0;var a=n.getSize(),s;if(i>=0)s=i;else if(this.isEmptyPair(r))s=0;else{var c=r[r.length-1];s=c.getFinderPattern().getStartEnd()[1]}var u=r.length%2!==0;this.startFromEven&&(u=!u);for(var l=!1;s<a&&(l=!n.get(s),!!l);)s++;for(var h=0,f=s,d=s;d<a;d++)if(n.get(d)!==l)o[h]++;else{if(h===3){if(u&&e.reverseCounters(o),e.isFinderPattern(o)){this.startEnd[0]=f,this.startEnd[1]=d;return}u&&e.reverseCounters(o),f+=o[0]+o[1],o[0]=o[2],o[1]=o[3],o[2]=0,o[3]=0,h--}else h++;o[h]=1,l=!l}throw new De},e.reverseCounters=function(n){for(var r=n.length,i=0;i<r/2;++i){var o=n[i];n[i]=n[r-i-1],n[r-i-1]=o}},e.prototype.parseFoundFinderPattern=function(n,r,i){var o,a,s;if(i){for(var c=this.startEnd[0]-1;c>=0&&!n.get(c);)c--;c++,o=this.startEnd[0]-c,a=c,s=this.startEnd[1]}else a=this.startEnd[0],s=n.getNextUnset(this.startEnd[1]+1),o=s-this.startEnd[1];var u=this.getDecodeFinderCounters();Mt.arraycopy(u,0,u,1,u.length-1),u[0]=o;var l;try{l=this.parseFinderValue(u,e.FINDER_PATTERNS)}catch{return null}return new yb(l,[a,s],a,s,r)},e.prototype.decodeDataCharacter=function(n,r,i,o){for(var a=this.getDataCharacterCounters(),s=0;s<a.length;s++)a[s]=0;if(o)e.recordPatternInReverse(n,r.getStartEnd()[0],a);else{e.recordPattern(n,r.getStartEnd()[1],a);for(var c=0,u=a.length-1;c<u;c++,u--){var l=a[c];a[c]=a[u],a[u]=l}}var h=17,f=ft.sum(new Int32Array(a))/h,d=(r.getStartEnd()[1]-r.getStartEnd()[0])/15;if(Math.abs(f-d)/d>.3)throw new De;for(var p=this.getOddCounts(),g=this.getEvenCounts(),y=this.getOddRoundingErrors(),R=this.getEvenRoundingErrors(),c=0;c<a.length;c++){var m=1*a[c]/f,v=m+.5;if(v<1){if(m<.3)throw new De;v=1}else if(v>8){if(m>8.7)throw new De;v=8}var x=c/2;(c&1)===0?(p[x]=v,y[x]=m-v):(g[x]=v,R[x]=m-v)}this.adjustOddEvenCounts(h);for(var _=4*r.getValue()+(i?0:2)+(o?0:1)-1,E=0,N=0,c=p.length-1;c>=0;c--){if(e.isNotA1left(r,i,o)){var U=e.WEIGHTS[_][2*c];N+=p[c]*U}E+=p[c]}for(var O=0,c=g.length-1;c>=0;c--)if(e.isNotA1left(r,i,o)){var U=e.WEIGHTS[_][2*c+1];O+=g[c]*U}var Q=N+O;if((E&1)!==0||E>13||E<4)throw new De;var ne=(13-E)/2,T=e.SYMBOL_WIDEST[ne],I=9-T,b=qo.getRSSvalue(p,T,!0),M=qo.getRSSvalue(g,I,!1),C=e.EVEN_TOTAL_SUBSET[ne],F=e.GSUM[ne],A=b*C+M+F;return new Fu(A,Q)},e.isNotA1left=function(n,r,i){return!(n.getValue()===0&&r&&i)},e.prototype.adjustOddEvenCounts=function(n){var r=ft.sum(new Int32Array(this.getOddCounts())),i=ft.sum(new Int32Array(this.getEvenCounts())),o=!1,a=!1;r>13?a=!0:r<4&&(o=!0);var s=!1,c=!1;i>13?c=!0:i<4&&(s=!0);var u=r+i-n,l=(r&1)===1,h=(i&1)===0;if(u===1)if(l){if(h)throw new De;a=!0}else{if(!h)throw new De;c=!0}else if(u===-1)if(l){if(h)throw new De;o=!0}else{if(!h)throw new De;s=!0}else if(u===0){if(l){if(!h)throw new De;r<i?(o=!0,c=!0):(a=!0,s=!0)}else if(h)throw new De}else throw new De;if(o){if(a)throw new De;e.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(a&&e.decrement(this.getOddCounts(),this.getOddRoundingErrors()),s){if(c)throw new De;e.increment(this.getEvenCounts(),this.getOddRoundingErrors())}c&&e.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},e.SYMBOL_WIDEST=[7,5,4,3,1],e.EVEN_TOTAL_SUBSET=[4,20,52,104,204],e.GSUM=[0,348,1388,2948,3988],e.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])],e.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]],e.FINDER_PAT_A=0,e.FINDER_PAT_B=1,e.FINDER_PAT_C=2,e.FINDER_PAT_D=3,e.FINDER_PAT_E=4,e.FINDER_PAT_F=5,e.FINDER_PATTERN_SEQUENCES=[[e.FINDER_PAT_A,e.FINDER_PAT_A],[e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B],[e.FINDER_PAT_A,e.FINDER_PAT_C,e.FINDER_PAT_B,e.FINDER_PAT_D],[e.FINDER_PAT_A,e.FINDER_PAT_E,e.FINDER_PAT_B,e.FINDER_PAT_D,e.FINDER_PAT_C],[e.FINDER_PAT_A,e.FINDER_PAT_E,e.FINDER_PAT_B,e.FINDER_PAT_D,e.FINDER_PAT_D,e.FINDER_PAT_F],[e.FINDER_PAT_A,e.FINDER_PAT_E,e.FINDER_PAT_B,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_F,e.FINDER_PAT_F],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_D],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_E],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_F,e.FINDER_PAT_F],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_E,e.FINDER_PAT_F,e.FINDER_PAT_F]],e.MAX_PAIRS=11,e}(oo),GX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),JX=function(t){GX(e,t);function e(n,r,i){var o=t.call(this,n,r)||this;return o.count=0,o.finderPattern=i,o}return e.prototype.getFinderPattern=function(){return this.finderPattern},e.prototype.getCount=function(){return this.count},e.prototype.incrementCount=function(){this.count++},e}(Fu),zX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),rd=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},xm=function(t){zX(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.possibleLeftPairs=[],n.possibleRightPairs=[],n}return e.prototype.decodeRow=function(n,r,i){var o,a,s,c,u=this.decodePair(r,!1,n,i);e.addOrTally(this.possibleLeftPairs,u),r.reverse();var l=this.decodePair(r,!0,n,i);e.addOrTally(this.possibleRightPairs,l),r.reverse();try{for(var h=rd(this.possibleLeftPairs),f=h.next();!f.done;f=h.next()){var d=f.value;if(d.getCount()>1)try{for(var p=(s=void 0,rd(this.possibleRightPairs)),g=p.next();!g.done;g=p.next()){var y=g.value;if(y.getCount()>1&&e.checkChecksum(d,y))return e.constructResult(d,y)}}catch(R){s={error:R}}finally{try{g&&!g.done&&(c=p.return)&&c.call(p)}finally{if(s)throw s.error}}}}catch(R){o={error:R}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}throw new De},e.addOrTally=function(n,r){var i,o;if(r!=null){var a=!1;try{for(var s=rd(n),c=s.next();!c.done;c=s.next()){var u=c.value;if(u.getValue()===r.getValue()){u.incrementCount(),a=!0;break}}}catch(l){i={error:l}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}a||n.push(r)}},e.prototype.reset=function(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0},e.constructResult=function(n,r){for(var i=4537077*n.getValue()+r.getValue(),o=new String(i).toString(),a=new rt,s=13-o.length;s>0;s--)a.append("0");a.append(o);for(var c=0,s=0;s<13;s++){var u=a.charAt(s).charCodeAt(0)-"0".charCodeAt(0);c+=(s&1)===0?3*u:u}c=10-c%10,c===10&&(c=0),a.append(c.toString());var l=n.getFinderPattern().getResultPoints(),h=r.getFinderPattern().getResultPoints();return new Un(a.toString(),null,0,[l[0],l[1],h[0],h[1]],He.RSS_14,new Date().getTime())},e.checkChecksum=function(n,r){var i=(n.getChecksumPortion()+16*r.getChecksumPortion())%79,o=9*n.getFinderPattern().getValue()+r.getFinderPattern().getValue();return o>72&&o--,o>8&&o--,i===o},e.prototype.decodePair=function(n,r,i,o){try{var a=this.findFinderPattern(n,r),s=this.parseFoundFinderPattern(n,i,r,a),c=o==null?null:o.get(Ct.NEED_RESULT_POINT_CALLBACK);if(c!=null){var u=(a[0]+a[1])/2;r&&(u=n.getSize()-1-u),c.foundPossibleResultPoint(new Ye(u,i))}var l=this.decodeDataCharacter(n,s,!0),h=this.decodeDataCharacter(n,s,!1);return new JX(1597*l.getValue()+h.getValue(),l.getChecksumPortion()+4*h.getChecksumPortion(),s)}catch{return null}},e.prototype.decodeDataCharacter=function(n,r,i){for(var o=this.getDataCharacterCounters(),a=0;a<o.length;a++)o[a]=0;if(i)ln.recordPatternInReverse(n,r.getStartEnd()[0],o);else{ln.recordPattern(n,r.getStartEnd()[1]+1,o);for(var s=0,c=o.length-1;s<c;s++,c--){var u=o[s];o[s]=o[c],o[c]=u}}for(var l=i?16:15,h=ft.sum(new Int32Array(o))/l,f=this.getOddCounts(),d=this.getEvenCounts(),p=this.getOddRoundingErrors(),g=this.getEvenRoundingErrors(),s=0;s<o.length;s++){var y=o[s]/h,R=Math.floor(y+.5);R<1?R=1:R>8&&(R=8);var m=Math.floor(s/2);(s&1)===0?(f[m]=R,p[m]=y-R):(d[m]=R,g[m]=y-R)}this.adjustOddEvenCounts(i,l);for(var v=0,x=0,s=f.length-1;s>=0;s--)x*=9,x+=f[s],v+=f[s];for(var _=0,E=0,s=d.length-1;s>=0;s--)_*=9,_+=d[s],E+=d[s];var N=x+3*_;if(i){if((v&1)!==0||v>12||v<4)throw new De;var U=(12-v)/2,O=e.OUTSIDE_ODD_WIDEST[U],Q=9-O,ne=qo.getRSSvalue(f,O,!1),T=qo.getRSSvalue(d,Q,!0),I=e.OUTSIDE_EVEN_TOTAL_SUBSET[U],b=e.OUTSIDE_GSUM[U];return new Fu(ne*I+T+b,N)}else{if((E&1)!==0||E>10||E<4)throw new De;var U=(10-E)/2,O=e.INSIDE_ODD_WIDEST[U],Q=9-O,ne=qo.getRSSvalue(f,O,!0),T=qo.getRSSvalue(d,Q,!1),M=e.INSIDE_ODD_TOTAL_SUBSET[U],b=e.INSIDE_GSUM[U];return new Fu(T*M+ne+b,N)}},e.prototype.findFinderPattern=function(n,r){var i=this.getDecodeFinderCounters();i[0]=0,i[1]=0,i[2]=0,i[3]=0;for(var o=n.getSize(),a=!1,s=0;s<o&&(a=!n.get(s),r!==a);)s++;for(var c=0,u=s,l=s;l<o;l++)if(n.get(l)!==a)i[c]++;else{if(c===3){if(oo.isFinderPattern(i))return[u,l];u+=i[0]+i[1],i[0]=i[2],i[1]=i[3],i[2]=0,i[3]=0,c--}else c++;i[c]=1,a=!a}throw new De},e.prototype.parseFoundFinderPattern=function(n,r,i,o){for(var a=n.get(o[0]),s=o[0]-1;s>=0&&a!==n.get(s);)s--;s++;var c=o[0]-s,u=this.getDecodeFinderCounters(),l=new Int32Array(u.length);Mt.arraycopy(u,0,l,1,u.length-1),l[0]=c;var h=this.parseFinderValue(l,e.FINDER_PATTERNS),f=s,d=o[1];return i&&(f=n.getSize()-1-f,d=n.getSize()-1-d),new yb(h,[s,o[1]],f,d,r)},e.prototype.adjustOddEvenCounts=function(n,r){var i=ft.sum(new Int32Array(this.getOddCounts())),o=ft.sum(new Int32Array(this.getEvenCounts())),a=!1,s=!1,c=!1,u=!1;n?(i>12?s=!0:i<4&&(a=!0),o>12?u=!0:o<4&&(c=!0)):(i>11?s=!0:i<5&&(a=!0),o>10?u=!0:o<4&&(c=!0));var l=i+o-r,h=(i&1)===(n?1:0),f=(o&1)===1;if(l===1)if(h){if(f)throw new De;s=!0}else{if(!f)throw new De;u=!0}else if(l===-1)if(h){if(f)throw new De;a=!0}else{if(!f)throw new De;c=!0}else if(l===0){if(h){if(!f)throw new De;i<o?(a=!0,u=!0):(s=!0,c=!0)}else if(f)throw new De}else throw new De;if(a){if(s)throw new De;oo.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(s&&oo.decrement(this.getOddCounts(),this.getOddRoundingErrors()),c){if(u)throw new De;oo.increment(this.getEvenCounts(),this.getOddRoundingErrors())}u&&oo.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},e.OUTSIDE_EVEN_TOTAL_SUBSET=[1,10,34,70,126],e.INSIDE_ODD_TOTAL_SUBSET=[4,20,48,81],e.OUTSIDE_GSUM=[0,161,961,2015,2715],e.INSIDE_GSUM=[0,336,1036,1516],e.OUTSIDE_ODD_WIDEST=[8,6,4,3,1],e.INSIDE_ODD_WIDEST=[2,4,6,8],e.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])],e}(oo),$X=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ea=function(t){$X(e,t);function e(n){var r=t.call(this)||this;r.readers=[];var i=n?n.get(Ct.POSSIBLE_FORMATS):null,o=n&&n.get(Ct.ASSUME_CODE_39_CHECK_DIGIT)!==void 0,a=n&&n.get(Ct.ENABLE_CODE_39_EXTENDED_MODE)!==void 0;return i&&((i.includes(He.EAN_13)||i.includes(He.UPC_A)||i.includes(He.EAN_8)||i.includes(He.UPC_E))&&r.readers.push(new nd(n)),i.includes(He.CODE_39)&&r.readers.push(new hm(o,a)),i.includes(He.CODE_93)&&r.readers.push(new dm),i.includes(He.CODE_128)&&r.readers.push(new lm),i.includes(He.ITF)&&r.readers.push(new fm),i.includes(He.CODABAR)&&r.readers.push(new vX),i.includes(He.RSS_14)&&r.readers.push(new xm),i.includes(He.RSS_EXPANDED)&&(console.warn("RSS Expanded reader IS NOT ready for production yet! use at your own risk."),r.readers.push(new HX))),r.readers.length===0&&(r.readers.push(new nd(n)),r.readers.push(new hm),r.readers.push(new dm),r.readers.push(new nd(n)),r.readers.push(new lm),r.readers.push(new fm),r.readers.push(new xm)),r}return e.prototype.decodeRow=function(n,r,i){for(var o=0;o<this.readers.length;o++)try{return this.readers[o].decodeRow(n,r,i)}catch{}throw new De},e.prototype.reset=function(){this.readers.forEach(function(n){return n.reset()})},e}(ln),jX=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){jX(e,t);function e(n,r){return n===void 0&&(n=500),t.call(this,new ea(r),n,r)||this}return e})(Xa);var wm=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},yt=function(){function t(e,n,r){this.ecCodewords=e,this.ecBlocks=[n],r&&this.ecBlocks.push(r)}return t.prototype.getECCodewords=function(){return this.ecCodewords},t.prototype.getECBlocks=function(){return this.ecBlocks},t}(),pt=function(){function t(e,n){this.count=e,this.dataCodewords=n}return t.prototype.getCount=function(){return this.count},t.prototype.getDataCodewords=function(){return this.dataCodewords},t}(),qX=function(){function t(e,n,r,i,o,a){var s,c;this.versionNumber=e,this.symbolSizeRows=n,this.symbolSizeColumns=r,this.dataRegionSizeRows=i,this.dataRegionSizeColumns=o,this.ecBlocks=a;var u=0,l=a.getECCodewords(),h=a.getECBlocks();try{for(var f=wm(h),d=f.next();!d.done;d=f.next()){var p=d.value;u+=p.getCount()*(p.getDataCodewords()+l)}}catch(g){s={error:g}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(s)throw s.error}}this.totalCodewords=u}return t.prototype.getVersionNumber=function(){return this.versionNumber},t.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},t.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},t.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},t.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},t.prototype.getTotalCodewords=function(){return this.totalCodewords},t.prototype.getECBlocks=function(){return this.ecBlocks},t.getVersionForDimensions=function(e,n){var r,i;if((e&1)!==0||(n&1)!==0)throw new Me;try{for(var o=wm(t.VERSIONS),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.symbolSizeRows===e&&s.symbolSizeColumns===n)return s}}catch(c){r={error:c}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}throw new Me},t.prototype.toString=function(){return""+this.versionNumber},t.buildVersions=function(){return[new t(1,10,10,8,8,new yt(5,new pt(1,3))),new t(2,12,12,10,10,new yt(7,new pt(1,5))),new t(3,14,14,12,12,new yt(10,new pt(1,8))),new t(4,16,16,14,14,new yt(12,new pt(1,12))),new t(5,18,18,16,16,new yt(14,new pt(1,18))),new t(6,20,20,18,18,new yt(18,new pt(1,22))),new t(7,22,22,20,20,new yt(20,new pt(1,30))),new t(8,24,24,22,22,new yt(24,new pt(1,36))),new t(9,26,26,24,24,new yt(28,new pt(1,44))),new t(10,32,32,14,14,new yt(36,new pt(1,62))),new t(11,36,36,16,16,new yt(42,new pt(1,86))),new t(12,40,40,18,18,new yt(48,new pt(1,114))),new t(13,44,44,20,20,new yt(56,new pt(1,144))),new t(14,48,48,22,22,new yt(68,new pt(1,174))),new t(15,52,52,24,24,new yt(42,new pt(2,102))),new t(16,64,64,14,14,new yt(56,new pt(2,140))),new t(17,72,72,16,16,new yt(36,new pt(4,92))),new t(18,80,80,18,18,new yt(48,new pt(4,114))),new t(19,88,88,20,20,new yt(56,new pt(4,144))),new t(20,96,96,22,22,new yt(68,new pt(4,174))),new t(21,104,104,24,24,new yt(56,new pt(6,136))),new t(22,120,120,18,18,new yt(68,new pt(6,175))),new t(23,132,132,20,20,new yt(62,new pt(8,163))),new t(24,144,144,22,22,new yt(62,new pt(8,156),new pt(2,155))),new t(25,8,18,6,16,new yt(7,new pt(1,5))),new t(26,8,32,6,14,new yt(11,new pt(1,10))),new t(27,12,26,10,24,new yt(14,new pt(1,16))),new t(28,12,36,10,16,new yt(18,new pt(1,22))),new t(29,16,36,14,16,new yt(24,new pt(1,32))),new t(30,16,48,14,22,new yt(28,new pt(1,49)))]},t.VERSIONS=t.buildVersions(),t}(),e7=function(){function t(e){var n=e.getHeight();if(n<8||n>144||(n&1)!==0)throw new Me;this.version=t.readVersion(e),this.mappingBitMatrix=this.extractDataRegion(e),this.readMappingMatrix=new yi(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return t.prototype.getVersion=function(){return this.version},t.readVersion=function(e){var n=e.getHeight(),r=e.getWidth();return qX.getVersionForDimensions(n,r)},t.prototype.readCodewords=function(){var e=new Int8Array(this.version.getTotalCodewords()),n=0,r=4,i=0,o=this.mappingBitMatrix.getHeight(),a=this.mappingBitMatrix.getWidth(),s=!1,c=!1,u=!1,l=!1;do if(r===o&&i===0&&!s)e[n++]=this.readCorner1(o,a)&255,r-=2,i+=2,s=!0;else if(r===o-2&&i===0&&(a&3)!==0&&!c)e[n++]=this.readCorner2(o,a)&255,r-=2,i+=2,c=!0;else if(r===o+4&&i===2&&(a&7)===0&&!u)e[n++]=this.readCorner3(o,a)&255,r-=2,i+=2,u=!0;else if(r===o-2&&i===0&&(a&7)===4&&!l)e[n++]=this.readCorner4(o,a)&255,r-=2,i+=2,l=!0;else{do r<o&&i>=0&&!this.readMappingMatrix.get(i,r)&&(e[n++]=this.readUtah(r,i,o,a)&255),r-=2,i+=2;while(r>=0&&i<a);r+=1,i+=3;do r>=0&&i<a&&!this.readMappingMatrix.get(i,r)&&(e[n++]=this.readUtah(r,i,o,a)&255),r+=2,i-=2;while(r<o&&i>=0);r+=3,i+=1}while(r<o||i<a);if(n!==this.version.getTotalCodewords())throw new Me;return e},t.prototype.readModule=function(e,n,r,i){return e<0&&(e+=r,n+=4-(r+4&7)),n<0&&(n+=i,e+=4-(i+4&7)),this.readMappingMatrix.set(n,e),this.mappingBitMatrix.get(n,e)},t.prototype.readUtah=function(e,n,r,i){var o=0;return this.readModule(e-2,n-2,r,i)&&(o|=1),o<<=1,this.readModule(e-2,n-1,r,i)&&(o|=1),o<<=1,this.readModule(e-1,n-2,r,i)&&(o|=1),o<<=1,this.readModule(e-1,n-1,r,i)&&(o|=1),o<<=1,this.readModule(e-1,n,r,i)&&(o|=1),o<<=1,this.readModule(e,n-2,r,i)&&(o|=1),o<<=1,this.readModule(e,n-1,r,i)&&(o|=1),o<<=1,this.readModule(e,n,r,i)&&(o|=1),o},t.prototype.readCorner1=function(e,n){var r=0;return this.readModule(e-1,0,e,n)&&(r|=1),r<<=1,this.readModule(e-1,1,e,n)&&(r|=1),r<<=1,this.readModule(e-1,2,e,n)&&(r|=1),r<<=1,this.readModule(0,n-2,e,n)&&(r|=1),r<<=1,this.readModule(0,n-1,e,n)&&(r|=1),r<<=1,this.readModule(1,n-1,e,n)&&(r|=1),r<<=1,this.readModule(2,n-1,e,n)&&(r|=1),r<<=1,this.readModule(3,n-1,e,n)&&(r|=1),r},t.prototype.readCorner2=function(e,n){var r=0;return this.readModule(e-3,0,e,n)&&(r|=1),r<<=1,this.readModule(e-2,0,e,n)&&(r|=1),r<<=1,this.readModule(e-1,0,e,n)&&(r|=1),r<<=1,this.readModule(0,n-4,e,n)&&(r|=1),r<<=1,this.readModule(0,n-3,e,n)&&(r|=1),r<<=1,this.readModule(0,n-2,e,n)&&(r|=1),r<<=1,this.readModule(0,n-1,e,n)&&(r|=1),r<<=1,this.readModule(1,n-1,e,n)&&(r|=1),r},t.prototype.readCorner3=function(e,n){var r=0;return this.readModule(e-1,0,e,n)&&(r|=1),r<<=1,this.readModule(e-1,n-1,e,n)&&(r|=1),r<<=1,this.readModule(0,n-3,e,n)&&(r|=1),r<<=1,this.readModule(0,n-2,e,n)&&(r|=1),r<<=1,this.readModule(0,n-1,e,n)&&(r|=1),r<<=1,this.readModule(1,n-3,e,n)&&(r|=1),r<<=1,this.readModule(1,n-2,e,n)&&(r|=1),r<<=1,this.readModule(1,n-1,e,n)&&(r|=1),r},t.prototype.readCorner4=function(e,n){var r=0;return this.readModule(e-3,0,e,n)&&(r|=1),r<<=1,this.readModule(e-2,0,e,n)&&(r|=1),r<<=1,this.readModule(e-1,0,e,n)&&(r|=1),r<<=1,this.readModule(0,n-2,e,n)&&(r|=1),r<<=1,this.readModule(0,n-1,e,n)&&(r|=1),r<<=1,this.readModule(1,n-1,e,n)&&(r|=1),r<<=1,this.readModule(2,n-1,e,n)&&(r|=1),r<<=1,this.readModule(3,n-1,e,n)&&(r|=1),r},t.prototype.extractDataRegion=function(e){var n=this.version.getSymbolSizeRows(),r=this.version.getSymbolSizeColumns();if(e.getHeight()!==n)throw new Je("Dimension of bitMatrix must match the version size");for(var i=this.version.getDataRegionSizeRows(),o=this.version.getDataRegionSizeColumns(),a=n/i|0,s=r/o|0,c=a*i,u=s*o,l=new yi(u,c),h=0;h<a;++h)for(var f=h*i,d=0;d<s;++d)for(var p=d*o,g=0;g<i;++g)for(var y=h*(i+2)+1+g,R=f+g,m=0;m<o;++m){var v=d*(o+2)+1+m;if(e.get(v,y)){var x=p+m;l.set(x,R)}}return l},t}(),Tm=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},t7=function(){function t(e,n){this.numDataCodewords=e,this.codewords=n}return t.getDataBlocks=function(e,n){var r,i,o,a,s=n.getECBlocks(),c=0,u=s.getECBlocks();try{for(var l=Tm(u),h=l.next();!h.done;h=l.next()){var f=h.value;c+=f.getCount()}}catch(b){r={error:b}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}var d=new Array(c),p=0;try{for(var g=Tm(u),y=g.next();!y.done;y=g.next())for(var f=y.value,R=0;R<f.getCount();R++){var m=f.getDataCodewords(),v=s.getECCodewords()+m;d[p++]=new t(m,new Uint8Array(v))}}catch(b){o={error:b}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}for(var x=d[0].codewords.length,_=x-s.getECCodewords(),E=_-1,N=0,R=0;R<E;R++)for(var U=0;U<p;U++)d[U].codewords[R]=e[N++];for(var O=n.getVersionNumber()===24,Q=O?8:p,U=0;U<Q;U++)d[U].codewords[_-1]=e[N++];for(var ne=d[0].codewords.length,R=_;R<ne;R++)for(var U=0;U<p;U++){var T=O?(U+8)%p:U,I=O&&T>7?R-1:R;d[T].codewords[I]=e[N++]}if(N!==e.length)throw new Je;return d},t.prototype.getNumDataCodewords=function(){return this.numDataCodewords},t.prototype.getCodewords=function(){return this.codewords},t}(),xb=function(){function t(e){this.bytes=e,this.byteOffset=0,this.bitOffset=0}return t.prototype.getBitOffset=function(){return this.bitOffset},t.prototype.getByteOffset=function(){return this.byteOffset},t.prototype.readBits=function(e){if(e<1||e>32||e>this.available())throw new Je(""+e);var n=0,r=this.bitOffset,i=this.byteOffset,o=this.bytes;if(r>0){var a=8-r,s=e<a?e:a,c=a-s,u=255>>8-s<<c;n=(o[i]&u)>>c,e-=s,r+=s,r===8&&(r=0,i++)}if(e>0){for(;e>=8;)n=n<<8|o[i]&255,i++,e-=8;if(e>0){var c=8-e,u=255>>c<<c;n=n<<e|(o[i]&u)>>c,r+=e}}return this.bitOffset=r,this.byteOffset=i,n},t.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},t}(),on;(function(t){t[t.PAD_ENCODE=0]="PAD_ENCODE",t[t.ASCII_ENCODE=1]="ASCII_ENCODE",t[t.C40_ENCODE=2]="C40_ENCODE",t[t.TEXT_ENCODE=3]="TEXT_ENCODE",t[t.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",t[t.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",t[t.BASE256_ENCODE=6]="BASE256_ENCODE"})(on||(on={}));var n7=function(){function t(){}return t.decode=function(e){var n=new xb(e),r=new rt,i=new rt,o=new Array,a=on.ASCII_ENCODE;do if(a===on.ASCII_ENCODE)a=this.decodeAsciiSegment(n,r,i);else{switch(a){case on.C40_ENCODE:this.decodeC40Segment(n,r);break;case on.TEXT_ENCODE:this.decodeTextSegment(n,r);break;case on.ANSIX12_ENCODE:this.decodeAnsiX12Segment(n,r);break;case on.EDIFACT_ENCODE:this.decodeEdifactSegment(n,r);break;case on.BASE256_ENCODE:this.decodeBase256Segment(n,r,o);break;default:throw new Me}a=on.ASCII_ENCODE}while(a!==on.PAD_ENCODE&&n.available()>0);return i.length()>0&&r.append(i.toString()),new bl(e,r.toString(),o.length===0?null:o,null)},t.decodeAsciiSegment=function(e,n,r){var i=!1;do{var o=e.readBits(8);if(o===0)throw new Me;if(o<=128)return i&&(o+=128),n.append(String.fromCharCode(o-1)),on.ASCII_ENCODE;if(o===129)return on.PAD_ENCODE;if(o<=229){var a=o-130;a<10&&n.append("0"),n.append(""+a)}else switch(o){case 230:return on.C40_ENCODE;case 231:return on.BASE256_ENCODE;case 232:n.append(String.fromCharCode(29));break;case 233:case 234:break;case 235:i=!0;break;case 236:n.append("[)>05"),r.insert(0,"");break;case 237:n.append("[)>06"),r.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(o!==254||e.available()!==0)throw new Me;break}}while(e.available()>0);return on.ASCII_ENCODE},t.decodeC40Segment=function(e,n){var r=!1,i=[],o=0;do{if(e.available()===8)return;var a=e.readBits(8);if(a===254)return;this.parseTwoBytes(a,e.readBits(8),i);for(var s=0;s<3;s++){var c=i[s];switch(o){case 0:if(c<3)o=c+1;else if(c<this.C40_BASIC_SET_CHARS.length){var u=this.C40_BASIC_SET_CHARS[c];r?(n.append(String.fromCharCode(u.charCodeAt(0)+128)),r=!1):n.append(u)}else throw new Me;break;case 1:r?(n.append(String.fromCharCode(c+128)),r=!1):n.append(String.fromCharCode(c)),o=0;break;case 2:if(c<this.C40_SHIFT2_SET_CHARS.length){var u=this.C40_SHIFT2_SET_CHARS[c];r?(n.append(String.fromCharCode(u.charCodeAt(0)+128)),r=!1):n.append(u)}else switch(c){case 27:n.append(String.fromCharCode(29));break;case 30:r=!0;break;default:throw new Me}o=0;break;case 3:r?(n.append(String.fromCharCode(c+224)),r=!1):n.append(String.fromCharCode(c+96)),o=0;break;default:throw new Me}}}while(e.available()>0)},t.decodeTextSegment=function(e,n){var r=!1,i=[],o=0;do{if(e.available()===8)return;var a=e.readBits(8);if(a===254)return;this.parseTwoBytes(a,e.readBits(8),i);for(var s=0;s<3;s++){var c=i[s];switch(o){case 0:if(c<3)o=c+1;else if(c<this.TEXT_BASIC_SET_CHARS.length){var u=this.TEXT_BASIC_SET_CHARS[c];r?(n.append(String.fromCharCode(u.charCodeAt(0)+128)),r=!1):n.append(u)}else throw new Me;break;case 1:r?(n.append(String.fromCharCode(c+128)),r=!1):n.append(String.fromCharCode(c)),o=0;break;case 2:if(c<this.TEXT_SHIFT2_SET_CHARS.length){var u=this.TEXT_SHIFT2_SET_CHARS[c];r?(n.append(String.fromCharCode(u.charCodeAt(0)+128)),r=!1):n.append(u)}else switch(c){case 27:n.append(String.fromCharCode(29));break;case 30:r=!0;break;default:throw new Me}o=0;break;case 3:if(c<this.TEXT_SHIFT3_SET_CHARS.length){var u=this.TEXT_SHIFT3_SET_CHARS[c];r?(n.append(String.fromCharCode(u.charCodeAt(0)+128)),r=!1):n.append(u),o=0}else throw new Me;break;default:throw new Me}}}while(e.available()>0)},t.decodeAnsiX12Segment=function(e,n){var r=[];do{if(e.available()===8)return;var i=e.readBits(8);if(i===254)return;this.parseTwoBytes(i,e.readBits(8),r);for(var o=0;o<3;o++){var a=r[o];switch(a){case 0:n.append("\r");break;case 1:n.append("*");break;case 2:n.append(">");break;case 3:n.append(" ");break;default:if(a<14)n.append(String.fromCharCode(a+44));else if(a<40)n.append(String.fromCharCode(a+51));else throw new Me;break}}}while(e.available()>0)},t.parseTwoBytes=function(e,n,r){var i=(e<<8)+n-1,o=Math.floor(i/1600);r[0]=o,i-=o*1600,o=Math.floor(i/40),r[1]=o,r[2]=i-o*40},t.decodeEdifactSegment=function(e,n){do{if(e.available()<=16)return;for(var r=0;r<4;r++){var i=e.readBits(6);if(i===31){var o=8-e.getBitOffset();o!==8&&e.readBits(o);return}(i&32)===0&&(i|=64),n.append(String.fromCharCode(i))}}while(e.available()>0)},t.decodeBase256Segment=function(e,n,r){var i=1+e.getByteOffset(),o=this.unrandomize255State(e.readBits(8),i++),a;if(o===0?a=e.available()/8|0:o<250?a=o:a=250*(o-249)+this.unrandomize255State(e.readBits(8),i++),a<0)throw new Me;for(var s=new Uint8Array(a),c=0;c<a;c++){if(e.available()<8)throw new Me;s[c]=this.unrandomize255State(e.readBits(8),i++)}r.push(s);try{n.append(_r.decode(s,Lt.ISO88591))}catch(u){throw new Va("Platform does not support required encoding: "+u.message)}},t.unrandomize255State=function(e,n){var r=149*n%255+1,i=e-r;return i>=0?i:i+256},t.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"],t.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],t.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"],t.TEXT_SHIFT2_SET_CHARS=t.C40_SHIFT2_SET_CHARS,t.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)],t}(),r7=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i7=function(){function t(){this.rsDecoder=new xl(fi.DATA_MATRIX_FIELD_256)}return t.prototype.decode=function(e){var n,r,i=new e7(e),o=i.getVersion(),a=i.readCodewords(),s=t7.getDataBlocks(a,o),c=0;try{for(var u=r7(s),l=u.next();!l.done;l=u.next()){var h=l.value;c+=h.getNumDataCodewords()}}catch(v){n={error:v}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}for(var f=new Uint8Array(c),d=s.length,p=0;p<d;p++){var g=s[p],y=g.getCodewords(),R=g.getNumDataCodewords();this.correctErrors(y,R);for(var m=0;m<R;m++)f[m*d+p]=y[m]}return n7.decode(f)},t.prototype.correctErrors=function(e,n){var r=new Int32Array(e);try{this.rsDecoder.decode(r,e.length-n)}catch{throw new tn}for(var i=0;i<n;i++)e[i]=r[i]},t}(),o7=function(){function t(e){this.image=e,this.rectangleDetector=new Hd(this.image)}return t.prototype.detect=function(){var e=this.rectangleDetector.detect(),n=this.detectSolid1(e);if(n=this.detectSolid2(n),n[3]=this.correctTopRight(n),!n[3])throw new De;n=this.shiftToModuleCenter(n);var r=n[0],i=n[1],o=n[2],a=n[3],s=this.transitionsBetween(r,a)+1,c=this.transitionsBetween(o,a)+1;(s&1)===1&&(s+=1),(c&1)===1&&(c+=1),4*s<7*c&&4*c<7*s&&(s=c=Math.max(s,c));var u=t.sampleGrid(this.image,r,i,o,a,s,c);return new $p(u,[r,i,o,a])},t.shiftPoint=function(e,n,r){var i=(n.getX()-e.getX())/(r+1),o=(n.getY()-e.getY())/(r+1);return new Ye(e.getX()+i,e.getY()+o)},t.moveAway=function(e,n,r){var i=e.getX(),o=e.getY();return i<n?i-=1:i+=1,o<r?o-=1:o+=1,new Ye(i,o)},t.prototype.detectSolid1=function(e){var n=e[0],r=e[1],i=e[3],o=e[2],a=this.transitionsBetween(n,r),s=this.transitionsBetween(r,i),c=this.transitionsBetween(i,o),u=this.transitionsBetween(o,n),l=a,h=[o,n,r,i];return l>s&&(l=s,h[0]=n,h[1]=r,h[2]=i,h[3]=o),l>c&&(l=c,h[0]=r,h[1]=i,h[2]=o,h[3]=n),l>u&&(h[0]=i,h[1]=o,h[2]=n,h[3]=r),h},t.prototype.detectSolid2=function(e){var n=e[0],r=e[1],i=e[2],o=e[3],a=this.transitionsBetween(n,o),s=t.shiftPoint(r,i,(a+1)*4),c=t.shiftPoint(i,r,(a+1)*4),u=this.transitionsBetween(s,n),l=this.transitionsBetween(c,o);return u<l?(e[0]=n,e[1]=r,e[2]=i,e[3]=o):(e[0]=r,e[1]=i,e[2]=o,e[3]=n),e},t.prototype.correctTopRight=function(e){var n=e[0],r=e[1],i=e[2],o=e[3],a=this.transitionsBetween(n,o),s=this.transitionsBetween(r,o),c=t.shiftPoint(n,r,(s+1)*4),u=t.shiftPoint(i,r,(a+1)*4);a=this.transitionsBetween(c,o),s=this.transitionsBetween(u,o);var l=new Ye(o.getX()+(i.getX()-r.getX())/(a+1),o.getY()+(i.getY()-r.getY())/(a+1)),h=new Ye(o.getX()+(n.getX()-r.getX())/(s+1),o.getY()+(n.getY()-r.getY())/(s+1));if(!this.isValid(l))return this.isValid(h)?h:null;if(!this.isValid(h))return l;var f=this.transitionsBetween(c,l)+this.transitionsBetween(u,l),d=this.transitionsBetween(c,h)+this.transitionsBetween(u,h);return f>d?l:h},t.prototype.shiftToModuleCenter=function(e){var n=e[0],r=e[1],i=e[2],o=e[3],a=this.transitionsBetween(n,o)+1,s=this.transitionsBetween(i,o)+1,c=t.shiftPoint(n,r,s*4),u=t.shiftPoint(i,r,a*4);a=this.transitionsBetween(c,o)+1,s=this.transitionsBetween(u,o)+1,(a&1)===1&&(a+=1),(s&1)===1&&(s+=1);var l=(n.getX()+r.getX()+i.getX()+o.getX())/4,h=(n.getY()+r.getY()+i.getY()+o.getY())/4;n=t.moveAway(n,l,h),r=t.moveAway(r,l,h),i=t.moveAway(i,l,h),o=t.moveAway(o,l,h);var f,d;return c=t.shiftPoint(n,r,s*4),c=t.shiftPoint(c,o,a*4),f=t.shiftPoint(r,n,s*4),f=t.shiftPoint(f,i,a*4),u=t.shiftPoint(i,o,s*4),u=t.shiftPoint(u,r,a*4),d=t.shiftPoint(o,i,s*4),d=t.shiftPoint(d,n,a*4),[c,f,u,d]},t.prototype.isValid=function(e){return e.getX()>=0&&e.getX()<this.image.getWidth()&&e.getY()>0&&e.getY()<this.image.getHeight()},t.sampleGrid=function(e,n,r,i,o,a,s){var c=jp.getInstance();return c.sampleGrid(e,a,s,.5,.5,a-.5,.5,a-.5,s-.5,.5,s-.5,n.getX(),n.getY(),o.getX(),o.getY(),i.getX(),i.getY(),r.getX(),r.getY())},t.prototype.transitionsBetween=function(e,n){var r=Math.trunc(e.getX()),i=Math.trunc(e.getY()),o=Math.trunc(n.getX()),a=Math.trunc(n.getY()),s=Math.abs(a-i)>Math.abs(o-r);if(s){var c=r;r=i,i=c,c=o,o=a,a=c}for(var u=Math.abs(o-r),l=Math.abs(a-i),h=-u/2,f=i<a?1:-1,d=r<o?1:-1,p=0,g=this.image.get(s?i:r,s?r:i),y=r,R=i;y!==o;y+=d){var m=this.image.get(s?R:y,s?y:R);if(m!==g&&(p++,g=m),h+=l,h>0){if(R===a)break;R+=f,h-=u}}return p},t}(),Pu=function(){function t(){this.decoder=new i7}return t.prototype.decode=function(e,n){n===void 0&&(n=null);var r,i;if(n!=null&&n.has(Ct.PURE_BARCODE)){var o=t.extractPureBits(e.getBlackMatrix());r=this.decoder.decode(o),i=t.NO_POINTS}else{var a=new o7(e.getBlackMatrix()).detect();r=this.decoder.decode(a.getBits()),i=a.getPoints()}var s=r.getRawBytes(),c=new Un(r.getText(),s,8*s.length,i,He.DATA_MATRIX,Mt.currentTimeMillis()),u=r.getByteSegments();u!=null&&c.putMetadata(Dn.BYTE_SEGMENTS,u);var l=r.getECLevel();return l!=null&&c.putMetadata(Dn.ERROR_CORRECTION_LEVEL,l),c},t.prototype.reset=function(){},t.extractPureBits=function(e){var n=e.getTopLeftOnBit(),r=e.getBottomRightOnBit();if(n==null||r==null)throw new De;var i=this.moduleSize(n,e),o=n[1],a=r[1],s=n[0],c=r[0],u=(c-s+1)/i,l=(a-o+1)/i;if(u<=0||l<=0)throw new De;var h=i/2;o+=h,s+=h;for(var f=new yi(u,l),d=0;d<l;d++)for(var p=o+d*i,g=0;g<u;g++)e.get(s+g*i,p)&&f.set(g,d);return f},t.moduleSize=function(e,n){for(var r=n.getWidth(),i=e[0],o=e[1];i<r&&n.get(i,o);)i++;if(i===r)throw new De;var a=i-e[0];if(a===0)throw new De;return a},t.NO_POINTS=[],t}(),a7=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){a7(e,t);function e(n){return n===void 0&&(n=500),t.call(this,new Pu,n)||this}return e})(Xa);var ta;(function(t){t[t.L=0]="L",t[t.M=1]="M",t[t.Q=2]="Q",t[t.H=3]="H"})(ta||(ta={}));var Jd=function(){function t(e,n,r){this.value=e,this.stringValue=n,this.bits=r,t.FOR_BITS.set(r,this),t.FOR_VALUE.set(e,this)}return t.prototype.getValue=function(){return this.value},t.prototype.getBits=function(){return this.bits},t.fromString=function(e){switch(e){case"L":return t.L;case"M":return t.M;case"Q":return t.Q;case"H":return t.H;default:throw new Jt(e+"not available")}},t.prototype.toString=function(){return this.stringValue},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.value===n.value},t.forBits=function(e){if(e<0||e>=t.FOR_BITS.size)throw new Je;return t.FOR_BITS.get(e)},t.FOR_BITS=new Map,t.FOR_VALUE=new Map,t.L=new t(ta.L,"L",1),t.M=new t(ta.M,"M",0),t.Q=new t(ta.Q,"Q",3),t.H=new t(ta.H,"H",2),t}(),s7=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},wb=function(){function t(e){this.errorCorrectionLevel=Jd.forBits(e>>3&3),this.dataMask=e&7}return t.numBitsDiffering=function(e,n){return $t.bitCount(e^n)},t.decodeFormatInformation=function(e,n){var r=t.doDecodeFormatInformation(e,n);return r!==null?r:t.doDecodeFormatInformation(e^t.FORMAT_INFO_MASK_QR,n^t.FORMAT_INFO_MASK_QR)},t.doDecodeFormatInformation=function(e,n){var r,i,o=Number.MAX_SAFE_INTEGER,a=0;try{for(var s=s7(t.FORMAT_INFO_DECODE_LOOKUP),c=s.next();!c.done;c=s.next()){var u=c.value,l=u[0];if(l===e||l===n)return new t(u[1]);var h=t.numBitsDiffering(e,l);h<o&&(a=u[1],o=h),e!==n&&(h=t.numBitsDiffering(n,l),h<o&&(a=u[1],o=h))}}catch(f){r={error:f}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o<=3?new t(a):null},t.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},t.prototype.getDataMask=function(){return this.dataMask},t.prototype.hashCode=function(){return this.errorCorrectionLevel.getBits()<<3|this.dataMask},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.errorCorrectionLevel===n.errorCorrectionLevel&&this.dataMask===n.dataMask},t.FORMAT_INFO_MASK_QR=21522,t.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])],t}(),c7=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ye=function(){function t(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.ecCodewordsPerBlock=e,this.ecBlocks=n}return t.prototype.getECCodewordsPerBlock=function(){return this.ecCodewordsPerBlock},t.prototype.getNumBlocks=function(){var e,n,r=0,i=this.ecBlocks;try{for(var o=c7(i),a=o.next();!a.done;a=o.next()){var s=a.value;r+=s.getCount()}}catch(c){e={error:c}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},t.prototype.getTotalECCodewords=function(){return this.ecCodewordsPerBlock*this.getNumBlocks()},t.prototype.getECBlocks=function(){return this.ecBlocks},t}(),ue=function(){function t(e,n){this.count=e,this.dataCodewords=n}return t.prototype.getCount=function(){return this.count},t.prototype.getDataCodewords=function(){return this.dataCodewords},t}(),u7=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},mo=function(){function t(e,n){for(var r,i,o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];this.versionNumber=e,this.alignmentPatternCenters=n,this.ecBlocks=o;var s=0,c=o[0].getECCodewordsPerBlock(),u=o[0].getECBlocks();try{for(var l=u7(u),h=l.next();!h.done;h=l.next()){var f=h.value;s+=f.getCount()*(f.getDataCodewords()+c)}}catch(d){r={error:d}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}this.totalCodewords=s}return t.prototype.getVersionNumber=function(){return this.versionNumber},t.prototype.getAlignmentPatternCenters=function(){return this.alignmentPatternCenters},t.prototype.getTotalCodewords=function(){return this.totalCodewords},t.prototype.getDimensionForVersion=function(){return 17+4*this.versionNumber},t.prototype.getECBlocksForLevel=function(e){return this.ecBlocks[e.getValue()]},t.getProvisionalVersionForDimension=function(e){if(e%4!==1)throw new Me;try{return this.getVersionForNumber((e-17)/4)}catch{throw new Me}},t.getVersionForNumber=function(e){if(e<1||e>40)throw new Je;return t.VERSIONS[e-1]},t.decodeVersionInformation=function(e){for(var n=Number.MAX_SAFE_INTEGER,r=0,i=0;i<t.VERSION_DECODE_INFO.length;i++){var o=t.VERSION_DECODE_INFO[i];if(o===e)return t.getVersionForNumber(i+7);var a=wb.numBitsDiffering(e,o);a<n&&(r=i+7,n=a)}return n<=3?t.getVersionForNumber(r):null},t.prototype.buildFunctionPattern=function(){var e=this.getDimensionForVersion(),n=new yi(e);n.setRegion(0,0,9,9),n.setRegion(e-8,0,8,9),n.setRegion(0,e-8,9,8);for(var r=this.alignmentPatternCenters.length,i=0;i<r;i++)for(var o=this.alignmentPatternCenters[i]-2,a=0;a<r;a++)i===0&&(a===0||a===r-1)||i===r-1&&a===0||n.setRegion(this.alignmentPatternCenters[a]-2,o,5,5);return n.setRegion(6,9,1,e-17),n.setRegion(9,6,e-17,1),this.versionNumber>6&&(n.setRegion(e-11,0,3,6),n.setRegion(0,e-11,6,3)),n},t.prototype.toString=function(){return""+this.versionNumber},t.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]),t.VERSIONS=[new t(1,new Int32Array(0),new ye(7,new ue(1,19)),new ye(10,new ue(1,16)),new ye(13,new ue(1,13)),new ye(17,new ue(1,9))),new t(2,Int32Array.from([6,18]),new ye(10,new ue(1,34)),new ye(16,new ue(1,28)),new ye(22,new ue(1,22)),new ye(28,new ue(1,16))),new t(3,Int32Array.from([6,22]),new ye(15,new ue(1,55)),new ye(26,new ue(1,44)),new ye(18,new ue(2,17)),new ye(22,new ue(2,13))),new t(4,Int32Array.from([6,26]),new ye(20,new ue(1,80)),new ye(18,new ue(2,32)),new ye(26,new ue(2,24)),new ye(16,new ue(4,9))),new t(5,Int32Array.from([6,30]),new ye(26,new ue(1,108)),new ye(24,new ue(2,43)),new ye(18,new ue(2,15),new ue(2,16)),new ye(22,new ue(2,11),new ue(2,12))),new t(6,Int32Array.from([6,34]),new ye(18,new ue(2,68)),new ye(16,new ue(4,27)),new ye(24,new ue(4,19)),new ye(28,new ue(4,15))),new t(7,Int32Array.from([6,22,38]),new ye(20,new ue(2,78)),new ye(18,new ue(4,31)),new ye(18,new ue(2,14),new ue(4,15)),new ye(26,new ue(4,13),new ue(1,14))),new t(8,Int32Array.from([6,24,42]),new ye(24,new ue(2,97)),new ye(22,new ue(2,38),new ue(2,39)),new ye(22,new ue(4,18),new ue(2,19)),new ye(26,new ue(4,14),new ue(2,15))),new t(9,Int32Array.from([6,26,46]),new ye(30,new ue(2,116)),new ye(22,new ue(3,36),new ue(2,37)),new ye(20,new ue(4,16),new ue(4,17)),new ye(24,new ue(4,12),new ue(4,13))),new t(10,Int32Array.from([6,28,50]),new ye(18,new ue(2,68),new ue(2,69)),new ye(26,new ue(4,43),new ue(1,44)),new ye(24,new ue(6,19),new ue(2,20)),new ye(28,new ue(6,15),new ue(2,16))),new t(11,Int32Array.from([6,30,54]),new ye(20,new ue(4,81)),new ye(30,new ue(1,50),new ue(4,51)),new ye(28,new ue(4,22),new ue(4,23)),new ye(24,new ue(3,12),new ue(8,13))),new t(12,Int32Array.from([6,32,58]),new ye(24,new ue(2,92),new ue(2,93)),new ye(22,new ue(6,36),new ue(2,37)),new ye(26,new ue(4,20),new ue(6,21)),new ye(28,new ue(7,14),new ue(4,15))),new t(13,Int32Array.from([6,34,62]),new ye(26,new ue(4,107)),new ye(22,new ue(8,37),new ue(1,38)),new ye(24,new ue(8,20),new ue(4,21)),new ye(22,new ue(12,11),new ue(4,12))),new t(14,Int32Array.from([6,26,46,66]),new ye(30,new ue(3,115),new ue(1,116)),new ye(24,new ue(4,40),new ue(5,41)),new ye(20,new ue(11,16),new ue(5,17)),new ye(24,new ue(11,12),new ue(5,13))),new t(15,Int32Array.from([6,26,48,70]),new ye(22,new ue(5,87),new ue(1,88)),new ye(24,new ue(5,41),new ue(5,42)),new ye(30,new ue(5,24),new ue(7,25)),new ye(24,new ue(11,12),new ue(7,13))),new t(16,Int32Array.from([6,26,50,74]),new ye(24,new ue(5,98),new ue(1,99)),new ye(28,new ue(7,45),new ue(3,46)),new ye(24,new ue(15,19),new ue(2,20)),new ye(30,new ue(3,15),new ue(13,16))),new t(17,Int32Array.from([6,30,54,78]),new ye(28,new ue(1,107),new ue(5,108)),new ye(28,new ue(10,46),new ue(1,47)),new ye(28,new ue(1,22),new ue(15,23)),new ye(28,new ue(2,14),new ue(17,15))),new t(18,Int32Array.from([6,30,56,82]),new ye(30,new ue(5,120),new ue(1,121)),new ye(26,new ue(9,43),new ue(4,44)),new ye(28,new ue(17,22),new ue(1,23)),new ye(28,new ue(2,14),new ue(19,15))),new t(19,Int32Array.from([6,30,58,86]),new ye(28,new ue(3,113),new ue(4,114)),new ye(26,new ue(3,44),new ue(11,45)),new ye(26,new ue(17,21),new ue(4,22)),new ye(26,new ue(9,13),new ue(16,14))),new t(20,Int32Array.from([6,34,62,90]),new ye(28,new ue(3,107),new ue(5,108)),new ye(26,new ue(3,41),new ue(13,42)),new ye(30,new ue(15,24),new ue(5,25)),new ye(28,new ue(15,15),new ue(10,16))),new t(21,Int32Array.from([6,28,50,72,94]),new ye(28,new ue(4,116),new ue(4,117)),new ye(26,new ue(17,42)),new ye(28,new ue(17,22),new ue(6,23)),new ye(30,new ue(19,16),new ue(6,17))),new t(22,Int32Array.from([6,26,50,74,98]),new ye(28,new ue(2,111),new ue(7,112)),new ye(28,new ue(17,46)),new ye(30,new ue(7,24),new ue(16,25)),new ye(24,new ue(34,13))),new t(23,Int32Array.from([6,30,54,78,102]),new ye(30,new ue(4,121),new ue(5,122)),new ye(28,new ue(4,47),new ue(14,48)),new ye(30,new ue(11,24),new ue(14,25)),new ye(30,new ue(16,15),new ue(14,16))),new t(24,Int32Array.from([6,28,54,80,106]),new ye(30,new ue(6,117),new ue(4,118)),new ye(28,new ue(6,45),new ue(14,46)),new ye(30,new ue(11,24),new ue(16,25)),new ye(30,new ue(30,16),new ue(2,17))),new t(25,Int32Array.from([6,32,58,84,110]),new ye(26,new ue(8,106),new ue(4,107)),new ye(28,new ue(8,47),new ue(13,48)),new ye(30,new ue(7,24),new ue(22,25)),new ye(30,new ue(22,15),new ue(13,16))),new t(26,Int32Array.from([6,30,58,86,114]),new ye(28,new ue(10,114),new ue(2,115)),new ye(28,new ue(19,46),new ue(4,47)),new ye(28,new ue(28,22),new ue(6,23)),new ye(30,new ue(33,16),new ue(4,17))),new t(27,Int32Array.from([6,34,62,90,118]),new ye(30,new ue(8,122),new ue(4,123)),new ye(28,new ue(22,45),new ue(3,46)),new ye(30,new ue(8,23),new ue(26,24)),new ye(30,new ue(12,15),new ue(28,16))),new t(28,Int32Array.from([6,26,50,74,98,122]),new ye(30,new ue(3,117),new ue(10,118)),new ye(28,new ue(3,45),new ue(23,46)),new ye(30,new ue(4,24),new ue(31,25)),new ye(30,new ue(11,15),new ue(31,16))),new t(29,Int32Array.from([6,30,54,78,102,126]),new ye(30,new ue(7,116),new ue(7,117)),new ye(28,new ue(21,45),new ue(7,46)),new ye(30,new ue(1,23),new ue(37,24)),new ye(30,new ue(19,15),new ue(26,16))),new t(30,Int32Array.from([6,26,52,78,104,130]),new ye(30,new ue(5,115),new ue(10,116)),new ye(28,new ue(19,47),new ue(10,48)),new ye(30,new ue(15,24),new ue(25,25)),new ye(30,new ue(23,15),new ue(25,16))),new t(31,Int32Array.from([6,30,56,82,108,134]),new ye(30,new ue(13,115),new ue(3,116)),new ye(28,new ue(2,46),new ue(29,47)),new ye(30,new ue(42,24),new ue(1,25)),new ye(30,new ue(23,15),new ue(28,16))),new t(32,Int32Array.from([6,34,60,86,112,138]),new ye(30,new ue(17,115)),new ye(28,new ue(10,46),new ue(23,47)),new ye(30,new ue(10,24),new ue(35,25)),new ye(30,new ue(19,15),new ue(35,16))),new t(33,Int32Array.from([6,30,58,86,114,142]),new ye(30,new ue(17,115),new ue(1,116)),new ye(28,new ue(14,46),new ue(21,47)),new ye(30,new ue(29,24),new ue(19,25)),new ye(30,new ue(11,15),new ue(46,16))),new t(34,Int32Array.from([6,34,62,90,118,146]),new ye(30,new ue(13,115),new ue(6,116)),new ye(28,new ue(14,46),new ue(23,47)),new ye(30,new ue(44,24),new ue(7,25)),new ye(30,new ue(59,16),new ue(1,17))),new t(35,Int32Array.from([6,30,54,78,102,126,150]),new ye(30,new ue(12,121),new ue(7,122)),new ye(28,new ue(12,47),new ue(26,48)),new ye(30,new ue(39,24),new ue(14,25)),new ye(30,new ue(22,15),new ue(41,16))),new t(36,Int32Array.from([6,24,50,76,102,128,154]),new ye(30,new ue(6,121),new ue(14,122)),new ye(28,new ue(6,47),new ue(34,48)),new ye(30,new ue(46,24),new ue(10,25)),new ye(30,new ue(2,15),new ue(64,16))),new t(37,Int32Array.from([6,28,54,80,106,132,158]),new ye(30,new ue(17,122),new ue(4,123)),new ye(28,new ue(29,46),new ue(14,47)),new ye(30,new ue(49,24),new ue(10,25)),new ye(30,new ue(24,15),new ue(46,16))),new t(38,Int32Array.from([6,32,58,84,110,136,162]),new ye(30,new ue(4,122),new ue(18,123)),new ye(28,new ue(13,46),new ue(32,47)),new ye(30,new ue(48,24),new ue(14,25)),new ye(30,new ue(42,15),new ue(32,16))),new t(39,Int32Array.from([6,26,54,82,110,138,166]),new ye(30,new ue(20,117),new ue(4,118)),new ye(28,new ue(40,47),new ue(7,48)),new ye(30,new ue(43,24),new ue(22,25)),new ye(30,new ue(10,15),new ue(67,16))),new t(40,Int32Array.from([6,30,58,86,114,142,170]),new ye(30,new ue(19,118),new ue(6,119)),new ye(28,new ue(18,47),new ue(31,48)),new ye(30,new ue(34,24),new ue(34,25)),new ye(30,new ue(20,15),new ue(61,16)))],t}(),pn;(function(t){t[t.DATA_MASK_000=0]="DATA_MASK_000",t[t.DATA_MASK_001=1]="DATA_MASK_001",t[t.DATA_MASK_010=2]="DATA_MASK_010",t[t.DATA_MASK_011=3]="DATA_MASK_011",t[t.DATA_MASK_100=4]="DATA_MASK_100",t[t.DATA_MASK_101=5]="DATA_MASK_101",t[t.DATA_MASK_110=6]="DATA_MASK_110",t[t.DATA_MASK_111=7]="DATA_MASK_111"})(pn||(pn={}));var Sm=function(){function t(e,n){this.value=e,this.isMasked=n}return t.prototype.unmaskBitMatrix=function(e,n){for(var r=0;r<n;r++)for(var i=0;i<n;i++)this.isMasked(r,i)&&e.flip(i,r)},t.values=new Map([[pn.DATA_MASK_000,new t(pn.DATA_MASK_000,function(e,n){return(e+n&1)===0})],[pn.DATA_MASK_001,new t(pn.DATA_MASK_001,function(e,n){return(e&1)===0})],[pn.DATA_MASK_010,new t(pn.DATA_MASK_010,function(e,n){return n%3===0})],[pn.DATA_MASK_011,new t(pn.DATA_MASK_011,function(e,n){return(e+n)%3===0})],[pn.DATA_MASK_100,new t(pn.DATA_MASK_100,function(e,n){return(Math.floor(e/2)+Math.floor(n/3)&1)===0})],[pn.DATA_MASK_101,new t(pn.DATA_MASK_101,function(e,n){return e*n%6===0})],[pn.DATA_MASK_110,new t(pn.DATA_MASK_110,function(e,n){return e*n%6<3})],[pn.DATA_MASK_111,new t(pn.DATA_MASK_111,function(e,n){return(e+n+e*n%3&1)===0})]]),t}(),l7=function(){function t(e){var n=e.getHeight();if(n<21||(n&3)!==1)throw new Me;this.bitMatrix=e}return t.prototype.readFormatInformation=function(){if(this.parsedFormatInfo!==null&&this.parsedFormatInfo!==void 0)return this.parsedFormatInfo;for(var e=0,n=0;n<6;n++)e=this.copyBit(n,8,e);e=this.copyBit(7,8,e),e=this.copyBit(8,8,e),e=this.copyBit(8,7,e);for(var r=5;r>=0;r--)e=this.copyBit(8,r,e);for(var i=this.bitMatrix.getHeight(),o=0,a=i-7,r=i-1;r>=a;r--)o=this.copyBit(8,r,o);for(var n=i-8;n<i;n++)o=this.copyBit(n,8,o);if(this.parsedFormatInfo=wb.decodeFormatInformation(e,o),this.parsedFormatInfo!==null)return this.parsedFormatInfo;throw new Me},t.prototype.readVersion=function(){if(this.parsedVersion!==null&&this.parsedVersion!==void 0)return this.parsedVersion;var e=this.bitMatrix.getHeight(),n=Math.floor((e-17)/4);if(n<=6)return mo.getVersionForNumber(n);for(var r=0,i=e-11,o=5;o>=0;o--)for(var a=e-9;a>=i;a--)r=this.copyBit(a,o,r);var s=mo.decodeVersionInformation(r);if(s!==null&&s.getDimensionForVersion()===e)return this.parsedVersion=s,s;r=0;for(var a=5;a>=0;a--)for(var o=e-9;o>=i;o--)r=this.copyBit(a,o,r);if(s=mo.decodeVersionInformation(r),s!==null&&s.getDimensionForVersion()===e)return this.parsedVersion=s,s;throw new Me},t.prototype.copyBit=function(e,n,r){var i=this.isMirror?this.bitMatrix.get(n,e):this.bitMatrix.get(e,n);return i?r<<1|1:r<<1},t.prototype.readCodewords=function(){var e=this.readFormatInformation(),n=this.readVersion(),r=Sm.values.get(e.getDataMask()),i=this.bitMatrix.getHeight();r.unmaskBitMatrix(this.bitMatrix,i);for(var o=n.buildFunctionPattern(),a=!0,s=new Uint8Array(n.getTotalCodewords()),c=0,u=0,l=0,h=i-1;h>0;h-=2){h===6&&h--;for(var f=0;f<i;f++)for(var d=a?i-1-f:f,p=0;p<2;p++)o.get(h-p,d)||(l++,u<<=1,this.bitMatrix.get(h-p,d)&&(u|=1),l===8&&(s[c++]=u,l=0,u=0));a=!a}if(c!==n.getTotalCodewords())throw new Me;return s},t.prototype.remask=function(){if(this.parsedFormatInfo!==null){var e=Sm.values[this.parsedFormatInfo.getDataMask()],n=this.bitMatrix.getHeight();e.unmaskBitMatrix(this.bitMatrix,n)}},t.prototype.setMirror=function(e){this.parsedVersion=null,this.parsedFormatInfo=null,this.isMirror=e},t.prototype.mirror=function(){for(var e=this.bitMatrix,n=0,r=e.getWidth();n<r;n++)for(var i=n+1,o=e.getHeight();i<o;i++)e.get(n,i)!==e.get(i,n)&&(e.flip(i,n),e.flip(n,i))},t}(),Dm=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},h7=function(){function t(e,n){this.numDataCodewords=e,this.codewords=n}return t.getDataBlocks=function(e,n,r){var i,o,a,s;if(e.length!==n.getTotalCodewords())throw new Je;var c=n.getECBlocksForLevel(r),u=0,l=c.getECBlocks();try{for(var h=Dm(l),f=h.next();!f.done;f=h.next()){var d=f.value;u+=d.getCount()}}catch(I){i={error:I}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}var p=new Array(u),g=0;try{for(var y=Dm(l),R=y.next();!R.done;R=y.next())for(var d=R.value,m=0;m<d.getCount();m++){var v=d.getDataCodewords(),x=c.getECCodewordsPerBlock()+v;p[g++]=new t(v,new Uint8Array(x))}}catch(I){a={error:I}}finally{try{R&&!R.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}for(var _=p[0].codewords.length,E=p.length-1;E>=0;){var N=p[E].codewords.length;if(N===_)break;E--}E++;for(var U=_-c.getECCodewordsPerBlock(),O=0,m=0;m<U;m++)for(var Q=0;Q<g;Q++)p[Q].codewords[m]=e[O++];for(var Q=E;Q<g;Q++)p[Q].codewords[U]=e[O++];for(var ne=p[0].codewords.length,m=U;m<ne;m++)for(var Q=0;Q<g;Q++){var T=Q<E?m:m+1;p[Q].codewords[T]=e[O++]}return p},t.prototype.getNumDataCodewords=function(){return this.numDataCodewords},t.prototype.getCodewords=function(){return this.codewords},t}(),br;(function(t){t[t.TERMINATOR=0]="TERMINATOR",t[t.NUMERIC=1]="NUMERIC",t[t.ALPHANUMERIC=2]="ALPHANUMERIC",t[t.STRUCTURED_APPEND=3]="STRUCTURED_APPEND",t[t.BYTE=4]="BYTE",t[t.ECI=5]="ECI",t[t.KANJI=6]="KANJI",t[t.FNC1_FIRST_POSITION=7]="FNC1_FIRST_POSITION",t[t.FNC1_SECOND_POSITION=8]="FNC1_SECOND_POSITION",t[t.HANZI=9]="HANZI"})(br||(br={}));var Wt=function(){function t(e,n,r,i){this.value=e,this.stringValue=n,this.characterCountBitsForVersions=r,this.bits=i,t.FOR_BITS.set(i,this),t.FOR_VALUE.set(e,this)}return t.forBits=function(e){var n=t.FOR_BITS.get(e);if(n===void 0)throw new Je;return n},t.prototype.getCharacterCountBits=function(e){var n=e.getVersionNumber(),r;return n<=9?r=0:n<=26?r=1:r=2,this.characterCountBitsForVersions[r]},t.prototype.getValue=function(){return this.value},t.prototype.getBits=function(){return this.bits},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.value===n.value},t.prototype.toString=function(){return this.stringValue},t.FOR_BITS=new Map,t.FOR_VALUE=new Map,t.TERMINATOR=new t(br.TERMINATOR,"TERMINATOR",Int32Array.from([0,0,0]),0),t.NUMERIC=new t(br.NUMERIC,"NUMERIC",Int32Array.from([10,12,14]),1),t.ALPHANUMERIC=new t(br.ALPHANUMERIC,"ALPHANUMERIC",Int32Array.from([9,11,13]),2),t.STRUCTURED_APPEND=new t(br.STRUCTURED_APPEND,"STRUCTURED_APPEND",Int32Array.from([0,0,0]),3),t.BYTE=new t(br.BYTE,"BYTE",Int32Array.from([8,16,16]),4),t.ECI=new t(br.ECI,"ECI",Int32Array.from([0,0,0]),7),t.KANJI=new t(br.KANJI,"KANJI",Int32Array.from([8,10,12]),8),t.FNC1_FIRST_POSITION=new t(br.FNC1_FIRST_POSITION,"FNC1_FIRST_POSITION",Int32Array.from([0,0,0]),5),t.FNC1_SECOND_POSITION=new t(br.FNC1_SECOND_POSITION,"FNC1_SECOND_POSITION",Int32Array.from([0,0,0]),9),t.HANZI=new t(br.HANZI,"HANZI",Int32Array.from([8,10,12]),13),t}(),d7=function(){function t(){}return t.decode=function(e,n,r,i){var o=new xb(e),a=new rt,s=new Array,c=-1,u=-1;try{var l=null,h=!1,f=void 0;do{if(o.available()<4)f=Wt.TERMINATOR;else{var d=o.readBits(4);f=Wt.forBits(d)}switch(f){case Wt.TERMINATOR:break;case Wt.FNC1_FIRST_POSITION:case Wt.FNC1_SECOND_POSITION:h=!0;break;case Wt.STRUCTURED_APPEND:if(o.available()<16)throw new Me;c=o.readBits(8),u=o.readBits(8);break;case Wt.ECI:var p=t.parseECIValue(o);if(l=cn.getCharacterSetECIByValue(p),l===null)throw new Me;break;case Wt.HANZI:var g=o.readBits(4),y=o.readBits(f.getCharacterCountBits(n));g===t.GB2312_SUBSET&&t.decodeHanziSegment(o,a,y);break;default:var R=o.readBits(f.getCharacterCountBits(n));switch(f){case Wt.NUMERIC:t.decodeNumericSegment(o,a,R);break;case Wt.ALPHANUMERIC:t.decodeAlphanumericSegment(o,a,R,h);break;case Wt.BYTE:t.decodeByteSegment(o,a,R,l,s,i);break;case Wt.KANJI:t.decodeKanjiSegment(o,a,R);break;default:throw new Me}break}}while(f!==Wt.TERMINATOR)}catch{throw new Me}return new bl(e,a.toString(),s.length===0?null:s,r===null?null:r.toString(),c,u)},t.decodeHanziSegment=function(e,n,r){if(r*13>e.available())throw new Me;for(var i=new Uint8Array(2*r),o=0;r>0;){var a=e.readBits(13),s=a/96<<8&4294967295|a%96;s<959?s+=41377:s+=42657,i[o]=s>>8&255,i[o+1]=s&255,o+=2,r--}try{n.append(_r.decode(i,Lt.GB2312))}catch(c){throw new Me(c)}},t.decodeKanjiSegment=function(e,n,r){if(r*13>e.available())throw new Me;for(var i=new Uint8Array(2*r),o=0;r>0;){var a=e.readBits(13),s=a/192<<8&4294967295|a%192;s<7936?s+=33088:s+=49472,i[o]=s>>8,i[o+1]=s,o+=2,r--}try{n.append(_r.decode(i,Lt.SHIFT_JIS))}catch(c){throw new Me(c)}},t.decodeByteSegment=function(e,n,r,i,o,a){if(8*r>e.available())throw new Me;for(var s=new Uint8Array(r),c=0;c<r;c++)s[c]=e.readBits(8);var u;i===null?u=Lt.guessEncoding(s,a):u=i.getName();try{n.append(_r.decode(s,u))}catch(l){throw new Me(l)}o.push(s)},t.toAlphaNumericChar=function(e){if(e>=t.ALPHANUMERIC_CHARS.length)throw new Me;return t.ALPHANUMERIC_CHARS[e]},t.decodeAlphanumericSegment=function(e,n,r,i){for(var o=n.length();r>1;){if(e.available()<11)throw new Me;var a=e.readBits(11);n.append(t.toAlphaNumericChar(Math.floor(a/45))),n.append(t.toAlphaNumericChar(a%45)),r-=2}if(r===1){if(e.available()<6)throw new Me;n.append(t.toAlphaNumericChar(e.readBits(6)))}if(i)for(var s=o;s<n.length();s++)n.charAt(s)==="%"&&(s<n.length()-1&&n.charAt(s+1)==="%"?n.deleteCharAt(s+1):n.setCharAt(s,String.fromCharCode(29)))},t.decodeNumericSegment=function(e,n,r){for(;r>=3;){if(e.available()<10)throw new Me;var i=e.readBits(10);if(i>=1e3)throw new Me;n.append(t.toAlphaNumericChar(Math.floor(i/100))),n.append(t.toAlphaNumericChar(Math.floor(i/10)%10)),n.append(t.toAlphaNumericChar(i%10)),r-=3}if(r===2){if(e.available()<7)throw new Me;var o=e.readBits(7);if(o>=100)throw new Me;n.append(t.toAlphaNumericChar(Math.floor(o/10))),n.append(t.toAlphaNumericChar(o%10))}else if(r===1){if(e.available()<4)throw new Me;var a=e.readBits(4);if(a>=10)throw new Me;n.append(t.toAlphaNumericChar(a))}},t.parseECIValue=function(e){var n=e.readBits(8);if((n&128)===0)return n&127;if((n&192)===128){var r=e.readBits(8);return(n&63)<<8&4294967295|r}if((n&224)===192){var i=e.readBits(16);return(n&31)<<16&4294967295|i}throw new Me},t.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",t.GB2312_SUBSET=1,t}(),Tb=function(){function t(e){this.mirrored=e}return t.prototype.isMirrored=function(){return this.mirrored},t.prototype.applyMirroredCorrection=function(e){if(!(!this.mirrored||e===null||e.length<3)){var n=e[0];e[0]=e[2],e[2]=n}},t}(),_m=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},f7=function(){function t(){this.rsDecoder=new xl(fi.QR_CODE_FIELD_256)}return t.prototype.decodeBooleanArray=function(e,n){return this.decodeBitMatrix(yi.parseFromBooleanArray(e),n)},t.prototype.decodeBitMatrix=function(e,n){var r=new l7(e),i=null;try{return this.decodeBitMatrixParser(r,n)}catch(a){i=a}try{r.remask(),r.setMirror(!0),r.readVersion(),r.readFormatInformation(),r.mirror();var o=this.decodeBitMatrixParser(r,n);return o.setOther(new Tb(!0)),o}catch(a){throw i!==null?i:a}},t.prototype.decodeBitMatrixParser=function(e,n){var r,i,o,a,s=e.readVersion(),c=e.readFormatInformation().getErrorCorrectionLevel(),u=e.readCodewords(),l=h7.getDataBlocks(u,s,c),h=0;try{for(var f=_m(l),d=f.next();!d.done;d=f.next()){var p=d.value;h+=p.getNumDataCodewords()}}catch(E){r={error:E}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}var g=new Uint8Array(h),y=0;try{for(var R=_m(l),m=R.next();!m.done;m=R.next()){var p=m.value,v=p.getCodewords(),x=p.getNumDataCodewords();this.correctErrors(v,x);for(var _=0;_<x;_++)g[y++]=v[_]}}catch(E){o={error:E}}finally{try{m&&!m.done&&(a=R.return)&&a.call(R)}finally{if(o)throw o.error}}return d7.decode(g,s,c,n)},t.prototype.correctErrors=function(e,n){var r=new Int32Array(e);try{this.rsDecoder.decode(r,e.length-n)}catch{throw new tn}for(var i=0;i<n;i++)e[i]=r[i]},t}(),p7=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),g7=function(t){p7(e,t);function e(n,r,i){var o=t.call(this,n,r)||this;return o.estimatedModuleSize=i,o}return e.prototype.aboutEquals=function(n,r,i){if(Math.abs(r-this.getY())<=n&&Math.abs(i-this.getX())<=n){var o=Math.abs(n-this.estimatedModuleSize);return o<=1||o<=this.estimatedModuleSize}return!1},e.prototype.combineEstimate=function(n,r,i){var o=(this.getX()+r)/2,a=(this.getY()+n)/2,s=(this.estimatedModuleSize+i)/2;return new e(o,a,s)},e}(Ye),m7=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},R7=function(){function t(e,n,r,i,o,a,s){this.image=e,this.startX=n,this.startY=r,this.width=i,this.height=o,this.moduleSize=a,this.resultPointCallback=s,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}return t.prototype.find=function(){for(var e=this.startX,n=this.height,r=this.width,i=e+r,o=this.startY+n/2,a=new Int32Array(3),s=this.image,c=0;c<n;c++){var u=o+((c&1)===0?Math.floor((c+1)/2):-Math.floor((c+1)/2));a[0]=0,a[1]=0,a[2]=0;for(var l=e;l<i&&!s.get(l,u);)l++;for(var h=0;l<i;){if(s.get(l,u))if(h===1)a[1]++;else if(h===2){if(this.foundPatternCross(a)){var f=this.handlePossibleCenter(a,u,l);if(f!==null)return f}a[0]=a[2],a[1]=1,a[2]=0,h=1}else a[++h]++;else h===1&&h++,a[h]++;l++}if(this.foundPatternCross(a)){var f=this.handlePossibleCenter(a,u,i);if(f!==null)return f}}if(this.possibleCenters.length!==0)return this.possibleCenters[0];throw new De},t.centerFromEnd=function(e,n){return n-e[2]-e[1]/2},t.prototype.foundPatternCross=function(e){for(var n=this.moduleSize,r=n/2,i=0;i<3;i++)if(Math.abs(n-e[i])>=r)return!1;return!0},t.prototype.crossCheckVertical=function(e,n,r,i){var o=this.image,a=o.getHeight(),s=this.crossCheckStateCount;s[0]=0,s[1]=0,s[2]=0;for(var c=e;c>=0&&o.get(n,c)&&s[1]<=r;)s[1]++,c--;if(c<0||s[1]>r)return NaN;for(;c>=0&&!o.get(n,c)&&s[0]<=r;)s[0]++,c--;if(s[0]>r)return NaN;for(c=e+1;c<a&&o.get(n,c)&&s[1]<=r;)s[1]++,c++;if(c===a||s[1]>r)return NaN;for(;c<a&&!o.get(n,c)&&s[2]<=r;)s[2]++,c++;if(s[2]>r)return NaN;var u=s[0]+s[1]+s[2];return 5*Math.abs(u-i)>=2*i?NaN:this.foundPatternCross(s)?t.centerFromEnd(s,c):NaN},t.prototype.handlePossibleCenter=function(e,n,r){var i,o,a=e[0]+e[1]+e[2],s=t.centerFromEnd(e,r),c=this.crossCheckVertical(n,s,2*e[1],a);if(!isNaN(c)){var u=(e[0]+e[1]+e[2])/3;try{for(var l=m7(this.possibleCenters),h=l.next();!h.done;h=l.next()){var f=h.value;if(f.aboutEquals(u,c,s))return f.combineEstimate(c,s,u)}}catch(p){i={error:p}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}var d=new g7(s,c,u);this.possibleCenters.push(d),this.resultPointCallback!==null&&this.resultPointCallback!==void 0&&this.resultPointCallback.foundPossibleResultPoint(d)}return null},t}(),y7=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),v7=function(t){y7(e,t);function e(n,r,i,o){var a=t.call(this,n,r)||this;return a.estimatedModuleSize=i,a.count=o,o===void 0&&(a.count=1),a}return e.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},e.prototype.getCount=function(){return this.count},e.prototype.aboutEquals=function(n,r,i){if(Math.abs(r-this.getY())<=n&&Math.abs(i-this.getX())<=n){var o=Math.abs(n-this.estimatedModuleSize);return o<=1||o<=this.estimatedModuleSize}return!1},e.prototype.combineEstimate=function(n,r,i){var o=this.count+1,a=(this.count*this.getX()+r)/o,s=(this.count*this.getY()+n)/o,c=(this.count*this.estimatedModuleSize+i)/o;return new e(a,s,c,o)},e}(Ye),b7=function(){function t(e){this.bottomLeft=e[0],this.topLeft=e[1],this.topRight=e[2]}return t.prototype.getBottomLeft=function(){return this.bottomLeft},t.prototype.getTopLeft=function(){return this.topLeft},t.prototype.getTopRight=function(){return this.topRight},t}(),cs=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},x7=function(){function t(e,n){this.image=e,this.resultPointCallback=n,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=n}return t.prototype.getImage=function(){return this.image},t.prototype.getPossibleCenters=function(){return this.possibleCenters},t.prototype.find=function(e){var n=e!=null&&e.get(Ct.TRY_HARDER)!==void 0,r=e!=null&&e.get(Ct.PURE_BARCODE)!==void 0,i=this.image,o=i.getHeight(),a=i.getWidth(),s=Math.floor(3*o/(4*t.MAX_MODULES));(s<t.MIN_SKIP||n)&&(s=t.MIN_SKIP);for(var c=!1,u=new Int32Array(5),l=s-1;l<o&&!c;l+=s){u[0]=0,u[1]=0,u[2]=0,u[3]=0,u[4]=0;for(var h=0,f=0;f<a;f++)if(i.get(f,l))(h&1)===1&&h++,u[h]++;else if((h&1)===0)if(h===4)if(t.foundPatternCross(u)){var d=this.handlePossibleCenter(u,l,f,r);if(d===!0)if(s=2,this.hasSkipped===!0)c=this.haveMultiplyConfirmedCenters();else{var p=this.findRowSkip();p>u[2]&&(l+=p-u[2]-s,f=a-1)}else{u[0]=u[2],u[1]=u[3],u[2]=u[4],u[3]=1,u[4]=0,h=3;continue}h=0,u[0]=0,u[1]=0,u[2]=0,u[3]=0,u[4]=0}else u[0]=u[2],u[1]=u[3],u[2]=u[4],u[3]=1,u[4]=0,h=3;else u[++h]++;else u[h]++;if(t.foundPatternCross(u)){var d=this.handlePossibleCenter(u,l,a,r);d===!0&&(s=u[0],this.hasSkipped&&(c=this.haveMultiplyConfirmedCenters()))}}var g=this.selectBestPatterns();return Ye.orderBestPatterns(g),new b7(g)},t.centerFromEnd=function(e,n){return n-e[4]-e[3]-e[2]/2},t.foundPatternCross=function(e){for(var n=0,r=0;r<5;r++){var i=e[r];if(i===0)return!1;n+=i}if(n<7)return!1;var o=n/7,a=o/2;return Math.abs(o-e[0])<a&&Math.abs(o-e[1])<a&&Math.abs(3*o-e[2])<3*a&&Math.abs(o-e[3])<a&&Math.abs(o-e[4])<a},t.prototype.getCrossCheckStateCount=function(){var e=this.crossCheckStateCount;return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e},t.prototype.crossCheckDiagonal=function(e,n,r,i){for(var o=this.getCrossCheckStateCount(),a=0,s=this.image;e>=a&&n>=a&&s.get(n-a,e-a);)o[2]++,a++;if(e<a||n<a)return!1;for(;e>=a&&n>=a&&!s.get(n-a,e-a)&&o[1]<=r;)o[1]++,a++;if(e<a||n<a||o[1]>r)return!1;for(;e>=a&&n>=a&&s.get(n-a,e-a)&&o[0]<=r;)o[0]++,a++;if(o[0]>r)return!1;var c=s.getHeight(),u=s.getWidth();for(a=1;e+a<c&&n+a<u&&s.get(n+a,e+a);)o[2]++,a++;if(e+a>=c||n+a>=u)return!1;for(;e+a<c&&n+a<u&&!s.get(n+a,e+a)&&o[3]<r;)o[3]++,a++;if(e+a>=c||n+a>=u||o[3]>=r)return!1;for(;e+a<c&&n+a<u&&s.get(n+a,e+a)&&o[4]<r;)o[4]++,a++;if(o[4]>=r)return!1;var l=o[0]+o[1]+o[2]+o[3]+o[4];return Math.abs(l-i)<2*i&&t.foundPatternCross(o)},t.prototype.crossCheckVertical=function(e,n,r,i){for(var o=this.image,a=o.getHeight(),s=this.getCrossCheckStateCount(),c=e;c>=0&&o.get(n,c);)s[2]++,c--;if(c<0)return NaN;for(;c>=0&&!o.get(n,c)&&s[1]<=r;)s[1]++,c--;if(c<0||s[1]>r)return NaN;for(;c>=0&&o.get(n,c)&&s[0]<=r;)s[0]++,c--;if(s[0]>r)return NaN;for(c=e+1;c<a&&o.get(n,c);)s[2]++,c++;if(c===a)return NaN;for(;c<a&&!o.get(n,c)&&s[3]<r;)s[3]++,c++;if(c===a||s[3]>=r)return NaN;for(;c<a&&o.get(n,c)&&s[4]<r;)s[4]++,c++;if(s[4]>=r)return NaN;var u=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(u-i)>=2*i?NaN:t.foundPatternCross(s)?t.centerFromEnd(s,c):NaN},t.prototype.crossCheckHorizontal=function(e,n,r,i){for(var o=this.image,a=o.getWidth(),s=this.getCrossCheckStateCount(),c=e;c>=0&&o.get(c,n);)s[2]++,c--;if(c<0)return NaN;for(;c>=0&&!o.get(c,n)&&s[1]<=r;)s[1]++,c--;if(c<0||s[1]>r)return NaN;for(;c>=0&&o.get(c,n)&&s[0]<=r;)s[0]++,c--;if(s[0]>r)return NaN;for(c=e+1;c<a&&o.get(c,n);)s[2]++,c++;if(c===a)return NaN;for(;c<a&&!o.get(c,n)&&s[3]<r;)s[3]++,c++;if(c===a||s[3]>=r)return NaN;for(;c<a&&o.get(c,n)&&s[4]<r;)s[4]++,c++;if(s[4]>=r)return NaN;var u=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(u-i)>=i?NaN:t.foundPatternCross(s)?t.centerFromEnd(s,c):NaN},t.prototype.handlePossibleCenter=function(e,n,r,i){var o=e[0]+e[1]+e[2]+e[3]+e[4],a=t.centerFromEnd(e,r),s=this.crossCheckVertical(n,Math.floor(a),e[2],o);if(!isNaN(s)&&(a=this.crossCheckHorizontal(Math.floor(a),Math.floor(s),e[2],o),!isNaN(a)&&(!i||this.crossCheckDiagonal(Math.floor(s),Math.floor(a),e[2],o)))){for(var c=o/7,u=!1,l=this.possibleCenters,h=0,f=l.length;h<f;h++){var d=l[h];if(d.aboutEquals(c,s,a)){l[h]=d.combineEstimate(s,a,c),u=!0;break}}if(!u){var p=new v7(a,s,c);l.push(p),this.resultPointCallback!==null&&this.resultPointCallback!==void 0&&this.resultPointCallback.foundPossibleResultPoint(p)}return!0}return!1},t.prototype.findRowSkip=function(){var e,n,r=this.possibleCenters.length;if(r<=1)return 0;var i=null;try{for(var o=cs(this.possibleCenters),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.getCount()>=t.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(c){e={error:c}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return 0},t.prototype.haveMultiplyConfirmedCenters=function(){var e,n,r,i,o=0,a=0,s=this.possibleCenters.length;try{for(var c=cs(this.possibleCenters),u=c.next();!u.done;u=c.next()){var l=u.value;l.getCount()>=t.CENTER_QUORUM&&(o++,a+=l.getEstimatedModuleSize())}}catch(g){e={error:g}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}if(o<3)return!1;var h=a/s,f=0;try{for(var d=cs(this.possibleCenters),p=d.next();!p.done;p=d.next()){var l=p.value;f+=Math.abs(l.getEstimatedModuleSize()-h)}}catch(g){r={error:g}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}return f<=.05*a},t.prototype.selectBestPatterns=function(){var e,n,r,i,o=this.possibleCenters.length;if(o<3)throw new De;var a=this.possibleCenters,s;if(o>3){var c=0,u=0;try{for(var l=cs(this.possibleCenters),h=l.next();!h.done;h=l.next()){var f=h.value,d=f.getEstimatedModuleSize();c+=d,u+=d*d}}catch(_){e={error:_}}finally{try{h&&!h.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}s=c/o;var p=Math.sqrt(u/o-s*s);a.sort(function(_,E){var N=Math.abs(E.getEstimatedModuleSize()-s),U=Math.abs(_.getEstimatedModuleSize()-s);return N<U?-1:N>U?1:0});for(var g=Math.max(.2*s,p),y=0;y<a.length&&a.length>3;y++){var R=a[y];Math.abs(R.getEstimatedModuleSize()-s)>g&&(a.splice(y,1),y--)}}if(a.length>3){var c=0;try{for(var m=cs(a),v=m.next();!v.done;v=m.next()){var x=v.value;c+=x.getEstimatedModuleSize()}}catch(E){r={error:E}}finally{try{v&&!v.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}s=c/a.length,a.sort(function(E,N){if(N.getCount()===E.getCount()){var U=Math.abs(N.getEstimatedModuleSize()-s),O=Math.abs(E.getEstimatedModuleSize()-s);return U<O?1:U>O?-1:0}else return N.getCount()-E.getCount()}),a.splice(3)}return[a[0],a[1],a[2]]},t.CENTER_QUORUM=2,t.MIN_SKIP=3,t.MAX_MODULES=57,t}(),w7=function(){function t(e){this.image=e}return t.prototype.getImage=function(){return this.image},t.prototype.getResultPointCallback=function(){return this.resultPointCallback},t.prototype.detect=function(e){this.resultPointCallback=e==null?null:e.get(Ct.NEED_RESULT_POINT_CALLBACK);var n=new x7(this.image,this.resultPointCallback),r=n.find(e);return this.processFinderPatternInfo(r)},t.prototype.processFinderPatternInfo=function(e){var n=e.getTopLeft(),r=e.getTopRight(),i=e.getBottomLeft(),o=this.calculateModuleSize(n,r,i);if(o<1)throw new De("No pattern found in proccess finder.");var a=t.computeDimension(n,r,i,o),s=mo.getProvisionalVersionForDimension(a),c=s.getDimensionForVersion()-7,u=null;if(s.getAlignmentPatternCenters().length>0)for(var l=r.getX()-n.getX()+i.getX(),h=r.getY()-n.getY()+i.getY(),f=1-3/c,d=Math.floor(n.getX()+f*(l-n.getX())),p=Math.floor(n.getY()+f*(h-n.getY())),g=4;g<=16;g<<=1)try{u=this.findAlignmentInRegion(o,d,p,g);break}catch(v){if(!(v instanceof De))throw v}var y=t.createTransform(n,r,i,u,a),R=t.sampleGrid(this.image,y,a),m;return u===null?m=[i,n,r]:m=[i,n,r,u],new $p(R,m)},t.createTransform=function(e,n,r,i,o){var a=o-3.5,s,c,u,l;return i!==null?(s=i.getX(),c=i.getY(),u=a-3,l=u):(s=n.getX()-e.getX()+r.getX(),c=n.getY()-e.getY()+r.getY(),u=a,l=a),Rb.quadrilateralToQuadrilateral(3.5,3.5,a,3.5,u,l,3.5,a,e.getX(),e.getY(),n.getX(),n.getY(),s,c,r.getX(),r.getY())},t.sampleGrid=function(e,n,r){var i=jp.getInstance();return i.sampleGridWithTransform(e,r,r,n)},t.computeDimension=function(e,n,r,i){var o=ft.round(Ye.distance(e,n)/i),a=ft.round(Ye.distance(e,r)/i),s=Math.floor((o+a)/2)+7;switch(s&3){case 0:s++;break;case 2:s--;break;case 3:throw new De("Dimensions could be not found.")}return s},t.prototype.calculateModuleSize=function(e,n,r){return(this.calculateModuleSizeOneWay(e,n)+this.calculateModuleSizeOneWay(e,r))/2},t.prototype.calculateModuleSizeOneWay=function(e,n){var r=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(n.getX()),Math.floor(n.getY())),i=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(n.getX()),Math.floor(n.getY()),Math.floor(e.getX()),Math.floor(e.getY()));return isNaN(r)?i/7:isNaN(i)?r/7:(r+i)/14},t.prototype.sizeOfBlackWhiteBlackRunBothWays=function(e,n,r,i){var o=this.sizeOfBlackWhiteBlackRun(e,n,r,i),a=1,s=e-(r-e);s<0?(a=e/(e-s),s=0):s>=this.image.getWidth()&&(a=(this.image.getWidth()-1-e)/(s-e),s=this.image.getWidth()-1);var c=Math.floor(n-(i-n)*a);return a=1,c<0?(a=n/(n-c),c=0):c>=this.image.getHeight()&&(a=(this.image.getHeight()-1-n)/(c-n),c=this.image.getHeight()-1),s=Math.floor(e+(s-e)*a),o+=this.sizeOfBlackWhiteBlackRun(e,n,s,c),o-1},t.prototype.sizeOfBlackWhiteBlackRun=function(e,n,r,i){var o=Math.abs(i-n)>Math.abs(r-e);if(o){var a=e;e=n,n=a,a=r,r=i,i=a}for(var s=Math.abs(r-e),c=Math.abs(i-n),u=-s/2,l=e<r?1:-1,h=n<i?1:-1,f=0,d=r+l,p=e,g=n;p!==d;p+=l){var y=o?g:p,R=o?p:g;if(f===1===this.image.get(y,R)){if(f===2)return ft.distance(p,g,e,n);f++}if(u+=c,u>0){if(g===i)break;g+=h,u-=s}}return f===2?ft.distance(r+l,i,e,n):NaN},t.prototype.findAlignmentInRegion=function(e,n,r,i){var o=Math.floor(i*e),a=Math.max(0,n-o),s=Math.min(this.image.getWidth()-1,n+o);if(s-a<e*3)throw new De("Alignment top exceeds estimated module size.");var c=Math.max(0,r-o),u=Math.min(this.image.getHeight()-1,r+o);if(u-c<e*3)throw new De("Alignment bottom exceeds estimated module size.");var l=new R7(this.image,a,c,s-a,u-c,e,this.resultPointCallback);return l.find()},t}(),Lu=function(){function t(){this.decoder=new f7}return t.prototype.getDecoder=function(){return this.decoder},t.prototype.decode=function(e,n){var r,i;if(n!=null&&n.get(Ct.PURE_BARCODE)!==void 0){var o=t.extractPureBits(e.getBlackMatrix());r=this.decoder.decodeBitMatrix(o,n),i=t.NO_POINTS}else{var a=new w7(e.getBlackMatrix()).detect(n);r=this.decoder.decodeBitMatrix(a.getBits(),n),i=a.getPoints()}r.getOther()instanceof Tb&&r.getOther().applyMirroredCorrection(i);var s=new Un(r.getText(),r.getRawBytes(),void 0,i,He.QR_CODE,void 0),c=r.getByteSegments();c!==null&&s.putMetadata(Dn.BYTE_SEGMENTS,c);var u=r.getECLevel();return u!==null&&s.putMetadata(Dn.ERROR_CORRECTION_LEVEL,u),r.hasStructuredAppend()&&(s.putMetadata(Dn.STRUCTURED_APPEND_SEQUENCE,r.getStructuredAppendSequenceNumber()),s.putMetadata(Dn.STRUCTURED_APPEND_PARITY,r.getStructuredAppendParity())),s},t.prototype.reset=function(){},t.extractPureBits=function(e){var n=e.getTopLeftOnBit(),r=e.getBottomRightOnBit();if(n===null||r===null)throw new De;var i=this.moduleSize(n,e),o=n[1],a=r[1],s=n[0],c=r[0];if(s>=c||o>=a)throw new De;if(a-o!==c-s&&(c=s+(a-o),c>=e.getWidth()))throw new De;var u=Math.round((c-s+1)/i),l=Math.round((a-o+1)/i);if(u<=0||l<=0)throw new De;if(l!==u)throw new De;var h=Math.floor(i/2);o+=h,s+=h;var f=s+Math.floor((u-1)*i)-c;if(f>0){if(f>h)throw new De;s-=f}var d=o+Math.floor((l-1)*i)-a;if(d>0){if(d>h)throw new De;o-=d}for(var p=new yi(u,l),g=0;g<l;g++)for(var y=o+Math.floor(g*i),R=0;R<u;R++)e.get(s+Math.floor(R*i),y)&&p.set(R,g);return p},t.moduleSize=function(e,n){for(var r=n.getHeight(),i=n.getWidth(),o=e[0],a=e[1],s=!0,c=0;o<i&&a<r;){if(s!==n.get(o,a)){if(++c===5)break;s=!s}o++,a++}if(o===i||a===r)throw new De;return(o-e[0])/7},t.NO_POINTS=new Array,t}(),T7=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},lt=function(){function t(){}return t.prototype.PDF417Common=function(){},t.getBitCountSum=function(e){return ft.sum(e)},t.toIntArray=function(e){var n,r;if(e==null||!e.length)return t.EMPTY_INT_ARRAY;var i=new Int32Array(e.length),o=0;try{for(var a=T7(e),s=a.next();!s.done;s=a.next()){var c=s.value;i[o++]=c}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},t.getCodeword=function(e){var n=un.binarySearch(t.SYMBOL_TABLE,e&262143);return n<0?-1:(t.CODEWORD_TABLE[n]-1)%t.NUMBER_OF_CODEWORDS},t.NUMBER_OF_CODEWORDS=929,t.MAX_CODEWORDS_IN_BARCODE=t.NUMBER_OF_CODEWORDS-1,t.MIN_ROWS_IN_BARCODE=3,t.MAX_ROWS_IN_BARCODE=90,t.MODULES_IN_CODEWORD=17,t.MODULES_IN_STOP_PATTERN=18,t.BARS_IN_MODULE=8,t.EMPTY_INT_ARRAY=new Int32Array([]),t.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]),t.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]),t}(),S7=function(){function t(e,n){this.bits=e,this.points=n}return t.prototype.getBits=function(){return this.bits},t.prototype.getPoints=function(){return this.points},t}(),D7=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},_7=function(){function t(){}return t.detectMultiple=function(e,n,r){var i=e.getBlackMatrix(),o=t.detect(r,i);return o.length||(i=i.clone(),i.rotate180(),o=t.detect(r,i)),new S7(i,o)},t.detect=function(e,n){for(var r,i,o=new Array,a=0,s=0,c=!1;a<n.getHeight();){var u=t.findVertices(n,a,s);if(u[0]==null&&u[3]==null){if(!c)break;c=!1,s=0;try{for(var l=(r=void 0,D7(o)),h=l.next();!h.done;h=l.next()){var f=h.value;f[1]!=null&&(a=Math.trunc(Math.max(a,f[1].getY()))),f[3]!=null&&(a=Math.max(a,Math.trunc(f[3].getY())))}}catch(d){r={error:d}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}a+=t.ROW_STEP;continue}if(c=!0,o.push(u),!e)break;u[2]!=null?(s=Math.trunc(u[2].getX()),a=Math.trunc(u[2].getY())):(s=Math.trunc(u[4].getX()),a=Math.trunc(u[4].getY()))}return o},t.findVertices=function(e,n,r){var i=e.getHeight(),o=e.getWidth(),a=new Array(8);return t.copyToResult(a,t.findRowsWithPattern(e,i,o,n,r,t.START_PATTERN),t.INDEXES_START_PATTERN),a[4]!=null&&(r=Math.trunc(a[4].getX()),n=Math.trunc(a[4].getY())),t.copyToResult(a,t.findRowsWithPattern(e,i,o,n,r,t.STOP_PATTERN),t.INDEXES_STOP_PATTERN),a},t.copyToResult=function(e,n,r){for(var i=0;i<r.length;i++)e[r[i]]=n[i]},t.findRowsWithPattern=function(e,n,r,i,o,a){for(var s=new Array(4),c=!1,u=new Int32Array(a.length);i<n;i+=t.ROW_STEP){var l=t.findGuardPattern(e,o,i,r,!1,a,u);if(l!=null){for(;i>0;){var h=t.findGuardPattern(e,o,--i,r,!1,a,u);if(h!=null)l=h;else{i++;break}}s[0]=new Ye(l[0],i),s[1]=new Ye(l[1],i),c=!0;break}}var f=i+1;if(c){for(var d=0,h=Int32Array.from([Math.trunc(s[0].getX()),Math.trunc(s[1].getX())]);f<n;f++){var l=t.findGuardPattern(e,h[0],f,r,!1,a,u);if(l!=null&&Math.abs(h[0]-l[0])<t.MAX_PATTERN_DRIFT&&Math.abs(h[1]-l[1])<t.MAX_PATTERN_DRIFT)h=l,d=0;else{if(d>t.SKIPPED_ROW_COUNT_MAX)break;d++}}f-=d+1,s[2]=new Ye(h[0],f),s[3]=new Ye(h[1],f)}return f-i<t.BARCODE_MIN_HEIGHT&&un.fill(s,null),s},t.findGuardPattern=function(e,n,r,i,o,a,s){un.fillWithin(s,0,s.length,0);for(var c=n,u=0;e.get(c,r)&&c>0&&u++<t.MAX_PIXEL_DRIFT;)c--;for(var l=c,h=0,f=a.length,d=o;l<i;l++){var p=e.get(l,r);if(p!==d)s[h]++;else{if(h===f-1){if(t.patternMatchVariance(s,a,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE)return new Int32Array([c,l]);c+=s[0]+s[1],Mt.arraycopy(s,2,s,0,h-1),s[h-1]=0,s[h]=0,h--}else h++;s[h]=1,d=!d}}return h===f-1&&t.patternMatchVariance(s,a,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE?new Int32Array([c,l-1]):null},t.patternMatchVariance=function(e,n,r){for(var i=e.length,o=0,a=0,s=0;s<i;s++)o+=e[s],a+=n[s];if(o<a)return 1/0;var c=o/a;r*=c;for(var u=0,l=0;l<i;l++){var h=e[l],f=n[l]*c,d=h>f?h-f:f-h;if(d>r)return 1/0;u+=d}return u/o},t.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),t.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),t.MAX_AVG_VARIANCE=.42,t.MAX_INDIVIDUAL_VARIANCE=.8,t.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),t.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),t.MAX_PIXEL_DRIFT=3,t.MAX_PATTERN_DRIFT=5,t.SKIPPED_ROW_COUNT_MAX=25,t.ROW_STEP=5,t.BARCODE_MIN_HEIGHT=10,t}(),O7=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ho=function(){function t(e,n){if(n.length===0)throw new Je;this.field=e;var r=n.length;if(r>1&&n[0]===0){for(var i=1;i<r&&n[i]===0;)i++;i===r?this.coefficients=new Int32Array([0]):(this.coefficients=new Int32Array(r-i),Mt.arraycopy(n,i,this.coefficients,0,this.coefficients.length))}else this.coefficients=n}return t.prototype.getCoefficients=function(){return this.coefficients},t.prototype.getDegree=function(){return this.coefficients.length-1},t.prototype.isZero=function(){return this.coefficients[0]===0},t.prototype.getCoefficient=function(e){return this.coefficients[this.coefficients.length-1-e]},t.prototype.evaluateAt=function(e){var n,r;if(e===0)return this.getCoefficient(0);if(e===1){var i=0;try{for(var o=O7(this.coefficients),a=o.next();!a.done;a=o.next()){var s=a.value;i=this.field.add(i,s)}}catch(h){n={error:h}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}for(var c=this.coefficients[0],u=this.coefficients.length,l=1;l<u;l++)c=this.field.add(this.field.multiply(e,c),this.coefficients[l]);return c},t.prototype.add=function(e){if(!this.field.equals(e.field))throw new Je("ModulusPolys do not have same ModulusGF field");if(this.isZero())return e;if(e.isZero())return this;var n=this.coefficients,r=e.coefficients;if(n.length>r.length){var i=n;n=r,r=i}var o=new Int32Array(r.length),a=r.length-n.length;Mt.arraycopy(r,0,o,0,a);for(var s=a;s<r.length;s++)o[s]=this.field.add(n[s-a],r[s]);return new t(this.field,o)},t.prototype.subtract=function(e){if(!this.field.equals(e.field))throw new Je("ModulusPolys do not have same ModulusGF field");return e.isZero()?this:this.add(e.negative())},t.prototype.multiply=function(e){return e instanceof t?this.multiplyOther(e):this.multiplyScalar(e)},t.prototype.multiplyOther=function(e){if(!this.field.equals(e.field))throw new Je("ModulusPolys do not have same ModulusGF field");if(this.isZero()||e.isZero())return new t(this.field,new Int32Array([0]));for(var n=this.coefficients,r=n.length,i=e.coefficients,o=i.length,a=new Int32Array(r+o-1),s=0;s<r;s++)for(var c=n[s],u=0;u<o;u++)a[s+u]=this.field.add(a[s+u],this.field.multiply(c,i[u]));return new t(this.field,a)},t.prototype.negative=function(){for(var e=this.coefficients.length,n=new Int32Array(e),r=0;r<e;r++)n[r]=this.field.subtract(0,this.coefficients[r]);return new t(this.field,n)},t.prototype.multiplyScalar=function(e){if(e===0)return new t(this.field,new Int32Array([0]));if(e===1)return this;for(var n=this.coefficients.length,r=new Int32Array(n),i=0;i<n;i++)r[i]=this.field.multiply(this.coefficients[i],e);return new t(this.field,r)},t.prototype.multiplyByMonomial=function(e,n){if(e<0)throw new Je;if(n===0)return new t(this.field,new Int32Array([0]));for(var r=this.coefficients.length,i=new Int32Array(r+e),o=0;o<r;o++)i[o]=this.field.multiply(this.coefficients[o],n);return new t(this.field,i)},t.prototype.toString=function(){for(var e=new rt,n=this.getDegree();n>=0;n--){var r=this.getCoefficient(n);r!==0&&(r<0?(e.append(" - "),r=-r):e.length()>0&&e.append(" + "),(n===0||r!==1)&&e.append(r),n!==0&&(n===1?e.append("x"):(e.append("x^"),e.append(n))))}return e.toString()},t}(),E7=function(){function t(){}return t.prototype.add=function(e,n){return(e+n)%this.modulus},t.prototype.subtract=function(e,n){return(this.modulus+e-n)%this.modulus},t.prototype.exp=function(e){return this.expTable[e]},t.prototype.log=function(e){if(e===0)throw new Je;return this.logTable[e]},t.prototype.inverse=function(e){if(e===0)throw new mb;return this.expTable[this.modulus-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.modulus-1)]},t.prototype.getSize=function(){return this.modulus},t.prototype.equals=function(e){return e===this},t}(),I7=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),N7=function(t){I7(e,t);function e(n,r){var i=t.call(this)||this;i.modulus=n,i.expTable=new Int32Array(n),i.logTable=new Int32Array(n);for(var o=1,a=0;a<n;a++)i.expTable[a]=o,o=o*r%n;for(var a=0;a<n-1;a++)i.logTable[i.expTable[a]]=a;return i.zero=new ho(i,new Int32Array([0])),i.one=new ho(i,new Int32Array([1])),i}return e.prototype.getZero=function(){return this.zero},e.prototype.getOne=function(){return this.one},e.prototype.buildMonomial=function(n,r){if(n<0)throw new Je;if(r===0)return this.zero;var i=new Int32Array(n+1);return i[0]=r,new ho(this,i)},e.PDF417_GF=new e(lt.NUMBER_OF_CODEWORDS,3),e}(E7),F7=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},P7=function(){function t(){this.field=N7.PDF417_GF}return t.prototype.decode=function(e,n,r){for(var i,o,a=new ho(this.field,e),s=new Int32Array(n),c=!1,u=n;u>0;u--){var l=a.evaluateAt(this.field.exp(u));s[n-u]=l,l!==0&&(c=!0)}if(!c)return 0;var h=this.field.getOne();if(r!=null)try{for(var f=F7(r),d=f.next();!d.done;d=f.next()){var p=d.value,g=this.field.exp(e.length-1-p),y=new ho(this.field,new Int32Array([this.field.subtract(0,g),1]));h=h.multiply(y)}}catch(U){i={error:U}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}for(var R=new ho(this.field,s),m=this.runEuclideanAlgorithm(this.field.buildMonomial(n,1),R,n),v=m[0],x=m[1],_=this.findErrorLocations(v),E=this.findErrorMagnitudes(x,v,_),u=0;u<_.length;u++){var N=e.length-1-this.field.log(_[u]);if(N<0)throw tn.getChecksumInstance();e[N]=this.field.subtract(e[N],E[u])}return _.length},t.prototype.runEuclideanAlgorithm=function(e,n,r){if(e.getDegree()<n.getDegree()){var i=e;e=n,n=i}for(var o=e,a=n,s=this.field.getZero(),c=this.field.getOne();a.getDegree()>=Math.round(r/2);){var u=o,l=s;if(o=a,s=c,o.isZero())throw tn.getChecksumInstance();a=u;for(var h=this.field.getZero(),f=o.getCoefficient(o.getDegree()),d=this.field.inverse(f);a.getDegree()>=o.getDegree()&&!a.isZero();){var p=a.getDegree()-o.getDegree(),g=this.field.multiply(a.getCoefficient(a.getDegree()),d);h=h.add(this.field.buildMonomial(p,g)),a=a.subtract(o.multiplyByMonomial(p,g))}c=h.multiply(s).subtract(l).negative()}var y=c.getCoefficient(0);if(y===0)throw tn.getChecksumInstance();var R=this.field.inverse(y),m=c.multiply(R),v=a.multiply(R);return[m,v]},t.prototype.findErrorLocations=function(e){for(var n=e.getDegree(),r=new Int32Array(n),i=0,o=1;o<this.field.getSize()&&i<n;o++)e.evaluateAt(o)===0&&(r[i]=this.field.inverse(o),i++);if(i!==n)throw tn.getChecksumInstance();return r},t.prototype.findErrorMagnitudes=function(e,n,r){for(var i=n.getDegree(),o=new Int32Array(i),a=1;a<=i;a++)o[i-a]=this.field.multiply(a,n.getCoefficient(a));for(var s=new ho(this.field,o),c=r.length,u=new Int32Array(c),a=0;a<c;a++){var l=this.field.inverse(r[a]),h=this.field.subtract(0,e.evaluateAt(l)),f=this.field.inverse(s.evaluateAt(l));u[a]=this.field.multiply(h,f)}return u},t}(),zd=function(){function t(e,n,r,i,o){e instanceof t?this.constructor_2(e):this.constructor_1(e,n,r,i,o)}return t.prototype.constructor_1=function(e,n,r,i,o){var a=n==null||r==null,s=i==null||o==null;if(a&&s)throw new De;a?(n=new Ye(0,i.getY()),r=new Ye(0,o.getY())):s&&(i=new Ye(e.getWidth()-1,n.getY()),o=new Ye(e.getWidth()-1,r.getY())),this.image=e,this.topLeft=n,this.bottomLeft=r,this.topRight=i,this.bottomRight=o,this.minX=Math.trunc(Math.min(n.getX(),r.getX())),this.maxX=Math.trunc(Math.max(i.getX(),o.getX())),this.minY=Math.trunc(Math.min(n.getY(),i.getY())),this.maxY=Math.trunc(Math.max(r.getY(),o.getY()))},t.prototype.constructor_2=function(e){this.image=e.image,this.topLeft=e.getTopLeft(),this.bottomLeft=e.getBottomLeft(),this.topRight=e.getTopRight(),this.bottomRight=e.getBottomRight(),this.minX=e.getMinX(),this.maxX=e.getMaxX(),this.minY=e.getMinY(),this.maxY=e.getMaxY()},t.merge=function(e,n){return e==null?n:n==null?e:new t(e.image,e.topLeft,e.bottomLeft,n.topRight,n.bottomRight)},t.prototype.addMissingRows=function(e,n,r){var i=this.topLeft,o=this.bottomLeft,a=this.topRight,s=this.bottomRight;if(e>0){var c=r?this.topLeft:this.topRight,u=Math.trunc(c.getY()-e);u<0&&(u=0);var l=new Ye(c.getX(),u);r?i=l:a=l}if(n>0){var h=r?this.bottomLeft:this.bottomRight,f=Math.trunc(h.getY()+n);f>=this.image.getHeight()&&(f=this.image.getHeight()-1);var d=new Ye(h.getX(),f);r?o=d:s=d}return new t(this.image,i,o,a,s)},t.prototype.getMinX=function(){return this.minX},t.prototype.getMaxX=function(){return this.maxX},t.prototype.getMinY=function(){return this.minY},t.prototype.getMaxY=function(){return this.maxY},t.prototype.getTopLeft=function(){return this.topLeft},t.prototype.getTopRight=function(){return this.topRight},t.prototype.getBottomLeft=function(){return this.bottomLeft},t.prototype.getBottomRight=function(){return this.bottomRight},t}(),L7=function(){function t(e,n,r,i){this.columnCount=e,this.errorCorrectionLevel=i,this.rowCountUpperPart=n,this.rowCountLowerPart=r,this.rowCount=n+r}return t.prototype.getColumnCount=function(){return this.columnCount},t.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},t.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},t}(),e1=function(){function t(){this.buffer=""}return t.form=function(e,n){var r=-1;function i(a,s,c,u,l,h){if(a==="%%")return"%";if(n[++r]!==void 0){a=u?parseInt(u.substr(1)):void 0;var f=l?parseInt(l.substr(1)):void 0,d;switch(h){case"s":d=n[r];break;case"c":d=n[r][0];break;case"f":d=parseFloat(n[r]).toFixed(a);break;case"p":d=parseFloat(n[r]).toPrecision(a);break;case"e":d=parseFloat(n[r]).toExponential(a);break;case"x":d=parseInt(n[r]).toString(f||16);break;case"d":d=parseFloat(parseInt(n[r],f||10).toPrecision(a)).toFixed(0);break}d=typeof d=="object"?JSON.stringify(d):(+d).toString(f);for(var p=parseInt(c),g=c&&c[0]+""=="0"?"0":" ";d.length<p;)d=s!==void 0?d+g:g+d;return d}}var o=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return e.replace(o,i)},t.prototype.format=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.buffer+=t.form(e,n)},t.prototype.toString=function(){return this.buffer},t}(),M7=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Sb=function(){function t(e){this.boundingBox=new zd(e),this.codewords=new Array(e.getMaxY()-e.getMinY()+1)}return t.prototype.getCodewordNearby=function(e){var n=this.getCodeword(e);if(n!=null)return n;for(var r=1;r<t.MAX_NEARBY_DISTANCE;r++){var i=this.imageRowToCodewordIndex(e)-r;if(i>=0&&(n=this.codewords[i],n!=null)||(i=this.imageRowToCodewordIndex(e)+r,i<this.codewords.length&&(n=this.codewords[i],n!=null)))return n}return null},t.prototype.imageRowToCodewordIndex=function(e){return e-this.boundingBox.getMinY()},t.prototype.setCodeword=function(e,n){this.codewords[this.imageRowToCodewordIndex(e)]=n},t.prototype.getCodeword=function(e){return this.codewords[this.imageRowToCodewordIndex(e)]},t.prototype.getBoundingBox=function(){return this.boundingBox},t.prototype.getCodewords=function(){return this.codewords},t.prototype.toString=function(){var e,n,r=new e1,i=0;try{for(var o=M7(this.codewords),a=o.next();!a.done;a=o.next()){var s=a.value;if(s==null){r.format("%3d: | %n",i++);continue}r.format("%3d: %3d|%3d%n",i++,s.getRowNumber(),s.getValue())}}catch(c){e={error:c}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r.toString()},t.MAX_NEARBY_DISTANCE=5,t}(),C7=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},A7=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},gs=function(){function t(){this.values=new Map}return t.prototype.setValue=function(e){e=Math.trunc(e);var n=this.values.get(e);n==null&&(n=0),n++,this.values.set(e,n)},t.prototype.getValue=function(){var e,n,r=-1,i=new Array,o=function(h,f){var d={getKey:function(){return h},getValue:function(){return f}};d.getValue()>r?(r=d.getValue(),i=[],i.push(d.getKey())):d.getValue()===r&&i.push(d.getKey())};try{for(var a=C7(this.values.entries()),s=a.next();!s.done;s=a.next()){var c=A7(s.value,2),u=c[0],l=c[1];o(u,l)}}catch(h){e={error:h}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return lt.toIntArray(i)},t.prototype.getConfidence=function(e){return this.values.get(e)},t}(),U7=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),id=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Om=function(t){U7(e,t);function e(n,r){var i=t.call(this,n)||this;return i._isLeft=r,i}return e.prototype.setRowNumbers=function(){var n,r;try{for(var i=id(this.getCodewords()),o=i.next();!o.done;o=i.next()){var a=o.value;a!=null&&a.setRowNumberAsRowIndicatorColumn()}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.adjustCompleteIndicatorColumnRowNumbers=function(n){var r=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(r,n);for(var i=this.getBoundingBox(),o=this._isLeft?i.getTopLeft():i.getTopRight(),a=this._isLeft?i.getBottomLeft():i.getBottomRight(),s=this.imageRowToCodewordIndex(Math.trunc(o.getY())),c=this.imageRowToCodewordIndex(Math.trunc(a.getY())),u=-1,l=1,h=0,f=s;f<c;f++)if(r[f]!=null){var d=r[f],p=d.getRowNumber()-u;if(p===0)h++;else if(p===1)l=Math.max(l,h),h=1,u=d.getRowNumber();else if(p<0||d.getRowNumber()>=n.getRowCount()||p>f)r[f]=null;else{var g=void 0;l>2?g=(l-2)*p:g=p;for(var y=g>=f,R=1;R<=g&&!y;R++)y=r[f-R]!=null;y?r[f]=null:(u=d.getRowNumber(),h=1)}}},e.prototype.getRowHeights=function(){var n,r,i=this.getBarcodeMetadata();if(i==null)return null;this.adjustIncompleteIndicatorColumnRowNumbers(i);var o=new Int32Array(i.getRowCount());try{for(var a=id(this.getCodewords()),s=a.next();!s.done;s=a.next()){var c=s.value;if(c!=null){var u=c.getRowNumber();if(u>=o.length)continue;o[u]++}}}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},e.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(n){for(var r=this.getBoundingBox(),i=this._isLeft?r.getTopLeft():r.getTopRight(),o=this._isLeft?r.getBottomLeft():r.getBottomRight(),a=this.imageRowToCodewordIndex(Math.trunc(i.getY())),s=this.imageRowToCodewordIndex(Math.trunc(o.getY())),c=this.getCodewords(),u=-1,l=a;l<s;l++)if(c[l]!=null){var h=c[l];h.setRowNumberAsRowIndicatorColumn();var f=h.getRowNumber()-u;f===0||(f===1?u=h.getRowNumber():h.getRowNumber()>=n.getRowCount()?c[l]=null:u=h.getRowNumber())}},e.prototype.getBarcodeMetadata=function(){var n,r,i=this.getCodewords(),o=new gs,a=new gs,s=new gs,c=new gs;try{for(var u=id(i),l=u.next();!l.done;l=u.next()){var h=l.value;if(h!=null){h.setRowNumberAsRowIndicatorColumn();var f=h.getValue()%30,d=h.getRowNumber();switch(this._isLeft||(d+=2),d%3){case 0:a.setValue(f*3+1);break;case 1:c.setValue(f/3),s.setValue(f%3);break;case 2:o.setValue(f+1);break}}}}catch(g){n={error:g}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(o.getValue().length===0||a.getValue().length===0||s.getValue().length===0||c.getValue().length===0||o.getValue()[0]<1||a.getValue()[0]+s.getValue()[0]<lt.MIN_ROWS_IN_BARCODE||a.getValue()[0]+s.getValue()[0]>lt.MAX_ROWS_IN_BARCODE)return null;var p=new L7(o.getValue()[0],a.getValue()[0],s.getValue()[0],c.getValue()[0]);return this.removeIncorrectCodewords(i,p),p},e.prototype.removeIncorrectCodewords=function(n,r){for(var i=0;i<n.length;i++){var o=n[i];if(n[i]!=null){var a=o.getValue()%30,s=o.getRowNumber();if(s>r.getRowCount()){n[i]=null;continue}switch(this._isLeft||(s+=2),s%3){case 0:a*3+1!==r.getRowCountUpperPart()&&(n[i]=null);break;case 1:(Math.trunc(a/3)!==r.getErrorCorrectionLevel()||a%3!==r.getRowCountLowerPart())&&(n[i]=null);break;case 2:a+1!==r.getColumnCount()&&(n[i]=null);break}}}},e.prototype.isLeft=function(){return this._isLeft},e.prototype.toString=function(){return"IsLeft: "+this._isLeft+`
|
|
`+t.prototype.toString.call(this)},e}(Sb),W7=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},X7=function(){function t(e,n){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=e,this.barcodeColumnCount=e.getColumnCount(),this.boundingBox=n,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return t.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var e=lt.MAX_CODEWORDS_IN_BARCODE,n;do n=e,e=this.adjustRowNumbersAndGetCount();while(e>0&&e<n);return this.detectionResultColumns},t.prototype.adjustIndicatorColumnRowNumbers=function(e){e!=null&&e.adjustCompleteIndicatorColumnRowNumbers(this.barcodeMetadata)},t.prototype.adjustRowNumbersAndGetCount=function(){var e=this.adjustRowNumbersByRow();if(e===0)return 0;for(var n=1;n<this.barcodeColumnCount+1;n++)for(var r=this.detectionResultColumns[n].getCodewords(),i=0;i<r.length;i++)r[i]!=null&&(r[i].hasValidRowNumber()||this.adjustRowNumbers(n,i,r));return e},t.prototype.adjustRowNumbersByRow=function(){this.adjustRowNumbersFromBothRI();var e=this.adjustRowNumbersFromLRI();return e+this.adjustRowNumbersFromRRI()},t.prototype.adjustRowNumbersFromBothRI=function(){if(!(this.detectionResultColumns[0]==null||this.detectionResultColumns[this.barcodeColumnCount+1]==null)){for(var e=this.detectionResultColumns[0].getCodewords(),n=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),r=0;r<e.length;r++)if(e[r]!=null&&n[r]!=null&&e[r].getRowNumber()===n[r].getRowNumber())for(var i=1;i<=this.barcodeColumnCount;i++){var o=this.detectionResultColumns[i].getCodewords()[r];o!=null&&(o.setRowNumber(e[r].getRowNumber()),o.hasValidRowNumber()||(this.detectionResultColumns[i].getCodewords()[r]=null))}}},t.prototype.adjustRowNumbersFromRRI=function(){if(this.detectionResultColumns[this.barcodeColumnCount+1]==null)return 0;for(var e=0,n=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),r=0;r<n.length;r++)if(n[r]!=null)for(var i=n[r].getRowNumber(),o=0,a=this.barcodeColumnCount+1;a>0&&o<this.ADJUST_ROW_NUMBER_SKIP;a--){var s=this.detectionResultColumns[a].getCodewords()[r];s!=null&&(o=t.adjustRowNumberIfValid(i,o,s),s.hasValidRowNumber()||e++)}return e},t.prototype.adjustRowNumbersFromLRI=function(){if(this.detectionResultColumns[0]==null)return 0;for(var e=0,n=this.detectionResultColumns[0].getCodewords(),r=0;r<n.length;r++)if(n[r]!=null)for(var i=n[r].getRowNumber(),o=0,a=1;a<this.barcodeColumnCount+1&&o<this.ADJUST_ROW_NUMBER_SKIP;a++){var s=this.detectionResultColumns[a].getCodewords()[r];s!=null&&(o=t.adjustRowNumberIfValid(i,o,s),s.hasValidRowNumber()||e++)}return e},t.adjustRowNumberIfValid=function(e,n,r){return r==null||r.hasValidRowNumber()||(r.isValidRowNumber(e)?(r.setRowNumber(e),n=0):++n),n},t.prototype.adjustRowNumbers=function(e,n,r){var i,o;if(this.detectionResultColumns[e-1]!=null){var a=r[n],s=this.detectionResultColumns[e-1].getCodewords(),c=s;this.detectionResultColumns[e+1]!=null&&(c=this.detectionResultColumns[e+1].getCodewords());var u=new Array(14);u[2]=s[n],u[3]=c[n],n>0&&(u[0]=r[n-1],u[4]=s[n-1],u[5]=c[n-1]),n>1&&(u[8]=r[n-2],u[10]=s[n-2],u[11]=c[n-2]),n<r.length-1&&(u[1]=r[n+1],u[6]=s[n+1],u[7]=c[n+1]),n<r.length-2&&(u[9]=r[n+2],u[12]=s[n+2],u[13]=c[n+2]);try{for(var l=W7(u),h=l.next();!h.done;h=l.next()){var f=h.value;if(t.adjustRowNumber(a,f))return}}catch(d){i={error:d}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}}},t.adjustRowNumber=function(e,n){return n==null?!1:n.hasValidRowNumber()&&n.getBucket()===e.getBucket()?(e.setRowNumber(n.getRowNumber()),!0):!1},t.prototype.getBarcodeColumnCount=function(){return this.barcodeColumnCount},t.prototype.getBarcodeRowCount=function(){return this.barcodeMetadata.getRowCount()},t.prototype.getBarcodeECLevel=function(){return this.barcodeMetadata.getErrorCorrectionLevel()},t.prototype.setBoundingBox=function(e){this.boundingBox=e},t.prototype.getBoundingBox=function(){return this.boundingBox},t.prototype.setDetectionResultColumn=function(e,n){this.detectionResultColumns[e]=n},t.prototype.getDetectionResultColumn=function(e){return this.detectionResultColumns[e]},t.prototype.toString=function(){var e=this.detectionResultColumns[0];e==null&&(e=this.detectionResultColumns[this.barcodeColumnCount+1]);for(var n=new e1,r=0;r<e.getCodewords().length;r++){n.format("CW %3d:",r);for(var i=0;i<this.barcodeColumnCount+2;i++){if(this.detectionResultColumns[i]==null){n.format(" | ");continue}var o=this.detectionResultColumns[i].getCodewords()[r];if(o==null){n.format(" | ");continue}n.format(" %3d|%3d",o.getRowNumber(),o.getValue())}n.format("%n")}return n.toString()},t}(),V7=function(){function t(e,n,r,i){this.rowNumber=t.BARCODE_ROW_UNKNOWN,this.startX=Math.trunc(e),this.endX=Math.trunc(n),this.bucket=Math.trunc(r),this.value=Math.trunc(i)}return t.prototype.hasValidRowNumber=function(){return this.isValidRowNumber(this.rowNumber)},t.prototype.isValidRowNumber=function(e){return e!==t.BARCODE_ROW_UNKNOWN&&this.bucket===e%3*3},t.prototype.setRowNumberAsRowIndicatorColumn=function(){this.rowNumber=Math.trunc(Math.trunc(this.value/30)*3+Math.trunc(this.bucket/3))},t.prototype.getWidth=function(){return this.endX-this.startX},t.prototype.getStartX=function(){return this.startX},t.prototype.getEndX=function(){return this.endX},t.prototype.getBucket=function(){return this.bucket},t.prototype.getValue=function(){return this.value},t.prototype.getRowNumber=function(){return this.rowNumber},t.prototype.setRowNumber=function(e){this.rowNumber=e},t.prototype.toString=function(){return this.rowNumber+"|"+this.value},t.BARCODE_ROW_UNKNOWN=-1,t}(),Y7=function(){function t(){}return t.initialize=function(){for(var e=0;e<lt.SYMBOL_TABLE.length;e++)for(var n=lt.SYMBOL_TABLE[e],r=n&1,i=0;i<lt.BARS_IN_MODULE;i++){for(var o=0;(n&1)===r;)o+=1,n>>=1;r=n&1,t.RATIOS_TABLE[e]||(t.RATIOS_TABLE[e]=new Array(lt.BARS_IN_MODULE)),t.RATIOS_TABLE[e][lt.BARS_IN_MODULE-i-1]=Math.fround(o/lt.MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},t.getDecodedValue=function(e){var n=t.getDecodedCodewordValue(t.sampleBitCounts(e));return n!==-1?n:t.getClosestDecodedValue(e)},t.sampleBitCounts=function(e){for(var n=ft.sum(e),r=new Int32Array(lt.BARS_IN_MODULE),i=0,o=0,a=0;a<lt.MODULES_IN_CODEWORD;a++){var s=n/(2*lt.MODULES_IN_CODEWORD)+a*n/lt.MODULES_IN_CODEWORD;o+e[i]<=s&&(o+=e[i],i++),r[i]++}return r},t.getDecodedCodewordValue=function(e){var n=t.getBitValue(e);return lt.getCodeword(n)===-1?-1:n},t.getBitValue=function(e){for(var n=0,r=0;r<e.length;r++)for(var i=0;i<e[r];i++)n=n<<1|(r%2===0?1:0);return Math.trunc(n)},t.getClosestDecodedValue=function(e){var n=ft.sum(e),r=new Array(lt.BARS_IN_MODULE);if(n>1)for(var i=0;i<r.length;i++)r[i]=Math.fround(e[i]/n);var o=Kd.MAX_VALUE,a=-1;this.bSymbolTableReady||t.initialize();for(var s=0;s<t.RATIOS_TABLE.length;s++){for(var c=0,u=t.RATIOS_TABLE[s],l=0;l<lt.BARS_IN_MODULE;l++){var h=Math.fround(u[l]-r[l]);if(c+=Math.fround(h*h),c>=o)break}c<o&&(o=c,a=lt.SYMBOL_TABLE[s])}return a},t.bSymbolTableReady=!1,t.RATIOS_TABLE=new Array(lt.SYMBOL_TABLE.length).map(function(e){return new Array(lt.BARS_IN_MODULE)}),t}(),B7=function(){function t(){this.segmentCount=-1,this.fileSize=-1,this.timestamp=-1,this.checksum=-1}return t.prototype.getSegmentIndex=function(){return this.segmentIndex},t.prototype.setSegmentIndex=function(e){this.segmentIndex=e},t.prototype.getFileId=function(){return this.fileId},t.prototype.setFileId=function(e){this.fileId=e},t.prototype.getOptionalData=function(){return this.optionalData},t.prototype.setOptionalData=function(e){this.optionalData=e},t.prototype.isLastSegment=function(){return this.lastSegment},t.prototype.setLastSegment=function(e){this.lastSegment=e},t.prototype.getSegmentCount=function(){return this.segmentCount},t.prototype.setSegmentCount=function(e){this.segmentCount=e},t.prototype.getSender=function(){return this.sender||null},t.prototype.setSender=function(e){this.sender=e},t.prototype.getAddressee=function(){return this.addressee||null},t.prototype.setAddressee=function(e){this.addressee=e},t.prototype.getFileName=function(){return this.fileName},t.prototype.setFileName=function(e){this.fileName=e},t.prototype.getFileSize=function(){return this.fileSize},t.prototype.setFileSize=function(e){this.fileSize=e},t.prototype.getChecksum=function(){return this.checksum},t.prototype.setChecksum=function(e){this.checksum=e},t.prototype.getTimestamp=function(){return this.timestamp},t.prototype.setTimestamp=function(e){this.timestamp=e},t}(),Em=function(){function t(){}return t.parseLong=function(e,n){return n===void 0&&(n=void 0),parseInt(e,n)},t}(),k7=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Z7=function(t){k7(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="NullPointerException",e}(ir),Q7=function(){function t(){}return t.prototype.writeBytes=function(e){this.writeBytesOffset(e,0,e.length)},t.prototype.writeBytesOffset=function(e,n,r){if(e==null)throw new Z7;if(n<0||n>e.length||r<0||n+r>e.length||n+r<0)throw new zp;if(r===0)return;for(var i=0;i<r;i++)this.write(e[n+i])},t.prototype.flush=function(){},t.prototype.close=function(){},t}(),K7=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),H7=function(t){K7(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ir),G7=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),J7=function(t){G7(e,t);function e(n){n===void 0&&(n=32);var r=t.call(this)||this;if(r.count=0,n<0)throw new Je("Negative initial size: "+n);return r.buf=new Uint8Array(n),r}return e.prototype.ensureCapacity=function(n){n-this.buf.length>0&&this.grow(n)},e.prototype.grow=function(n){var r=this.buf.length,i=r<<1;if(i-n<0&&(i=n),i<0){if(n<0)throw new H7;i=$t.MAX_VALUE}this.buf=un.copyOfUint8Array(this.buf,i)},e.prototype.write=function(n){this.ensureCapacity(this.count+1),this.buf[this.count]=n,this.count+=1},e.prototype.writeBytesOffset=function(n,r,i){if(r<0||r>n.length||i<0||r+i-n.length>0)throw new zp;this.ensureCapacity(this.count+i),Mt.arraycopy(n,r,this.buf,this.count,i),this.count+=i},e.prototype.writeTo=function(n){n.writeBytesOffset(this.buf,0,this.count)},e.prototype.reset=function(){this.count=0},e.prototype.toByteArray=function(){return un.copyOfUint8Array(this.buf,this.count)},e.prototype.size=function(){return this.count},e.prototype.toString=function(n){return n?typeof n=="string"?this.toString_string(n):this.toString_number(n):this.toString_void()},e.prototype.toString_void=function(){return new String(this.buf).toString()},e.prototype.toString_string=function(n){return new String(this.buf).toString()},e.prototype.toString_number=function(n){return new String(this.buf).toString()},e.prototype.close=function(){},e}(Q7),_t;(function(t){t[t.ALPHA=0]="ALPHA",t[t.LOWER=1]="LOWER",t[t.MIXED=2]="MIXED",t[t.PUNCT=3]="PUNCT",t[t.ALPHA_SHIFT=4]="ALPHA_SHIFT",t[t.PUNCT_SHIFT=5]="PUNCT_SHIFT"})(_t||(_t={}));function Db(){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 zc;function Li(t){if(typeof zc=="undefined"&&(zc=Db()),zc===null)throw new Error("BigInt is not supported!");return zc(t)}function z7(){var t=[];t[0]=Li(1);var e=Li(900);t[1]=e;for(var n=2;n<16;n++)t[n]=t[n-1]*e;return t}var $7=function(){function t(){}return t.decode=function(e,n){var r=new rt(""),i=cn.ISO8859_1;r.enableDecoding(i);for(var o=1,a=e[o++],s=new B7;o<e[0];){switch(a){case t.TEXT_COMPACTION_MODE_LATCH:o=t.textCompaction(e,o,r);break;case t.BYTE_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:o=t.byteCompaction(a,e,i,o,r);break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r.append(e[o++]);break;case t.NUMERIC_COMPACTION_MODE_LATCH:o=t.numericCompaction(e,o,r);break;case t.ECI_CHARSET:cn.getCharacterSetECIByValue(e[o++]);break;case t.ECI_GENERAL_PURPOSE:o+=2;break;case t.ECI_USER_DEFINED:o++;break;case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:o=t.decodeMacroBlock(e,o,s);break;case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:throw new Me;default:o--,o=t.textCompaction(e,o,r);break}if(o<e.length)a=e[o++];else throw Me.getFormatInstance()}if(r.length()===0)throw Me.getFormatInstance();var c=new bl(null,r.toString(),null,n);return c.setOther(s),c},t.decodeMacroBlock=function(e,n,r){if(n+t.NUMBER_OF_SEQUENCE_CODEWORDS>e[0])throw Me.getFormatInstance();for(var i=new Int32Array(t.NUMBER_OF_SEQUENCE_CODEWORDS),o=0;o<t.NUMBER_OF_SEQUENCE_CODEWORDS;o++,n++)i[o]=e[n];r.setSegmentIndex($t.parseInt(t.decodeBase900toBase10(i,t.NUMBER_OF_SEQUENCE_CODEWORDS)));var a=new rt;n=t.textCompaction(e,n,a),r.setFileId(a.toString());var s=-1;for(e[n]===t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD&&(s=n+1);n<e[0];)switch(e[n]){case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:switch(n++,e[n]){case t.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME:var c=new rt;n=t.textCompaction(e,n+1,c),r.setFileName(c.toString());break;case t.MACRO_PDF417_OPTIONAL_FIELD_SENDER:var u=new rt;n=t.textCompaction(e,n+1,u),r.setSender(u.toString());break;case t.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE:var l=new rt;n=t.textCompaction(e,n+1,l),r.setAddressee(l.toString());break;case t.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT:var h=new rt;n=t.numericCompaction(e,n+1,h),r.setSegmentCount($t.parseInt(h.toString()));break;case t.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP:var f=new rt;n=t.numericCompaction(e,n+1,f),r.setTimestamp(Em.parseLong(f.toString()));break;case t.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM:var d=new rt;n=t.numericCompaction(e,n+1,d),r.setChecksum($t.parseInt(d.toString()));break;case t.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE:var p=new rt;n=t.numericCompaction(e,n+1,p),r.setFileSize(Em.parseLong(p.toString()));break;default:throw Me.getFormatInstance()}break;case t.MACRO_PDF417_TERMINATOR:n++,r.setLastSegment(!0);break;default:throw Me.getFormatInstance()}if(s!==-1){var g=n-s;r.isLastSegment()&&g--,r.setOptionalData(un.copyOfRange(e,s,s+g))}return n},t.textCompaction=function(e,n,r){for(var i=new Int32Array((e[0]-n)*2),o=new Int32Array((e[0]-n)*2),a=0,s=!1;n<e[0]&&!s;){var c=e[n++];if(c<t.TEXT_COMPACTION_MODE_LATCH)i[a]=c/30,i[a+1]=c%30,a+=2;else switch(c){case t.TEXT_COMPACTION_MODE_LATCH:i[a++]=t.TEXT_COMPACTION_MODE_LATCH;break;case t.BYTE_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:case t.NUMERIC_COMPACTION_MODE_LATCH:case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:n--,s=!0;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i[a]=t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE,c=e[n++],o[a]=c,a++;break}}return t.decodeTextCompaction(i,o,a,r),n},t.decodeTextCompaction=function(e,n,r,i){for(var o=_t.ALPHA,a=_t.ALPHA,s=0;s<r;){var c=e[s],u="";switch(o){case _t.ALPHA:if(c<26)u=String.fromCharCode(65+c);else switch(c){case 26:u=" ";break;case t.LL:o=_t.LOWER;break;case t.ML:o=_t.MIXED;break;case t.PS:a=o,o=_t.PUNCT_SHIFT;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=_t.ALPHA;break}break;case _t.LOWER:if(c<26)u=String.fromCharCode(97+c);else switch(c){case 26:u=" ";break;case t.AS:a=o,o=_t.ALPHA_SHIFT;break;case t.ML:o=_t.MIXED;break;case t.PS:a=o,o=_t.PUNCT_SHIFT;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=_t.ALPHA;break}break;case _t.MIXED:if(c<t.PL)u=t.MIXED_CHARS[c];else switch(c){case t.PL:o=_t.PUNCT;break;case 26:u=" ";break;case t.LL:o=_t.LOWER;break;case t.AL:o=_t.ALPHA;break;case t.PS:a=o,o=_t.PUNCT_SHIFT;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=_t.ALPHA;break}break;case _t.PUNCT:if(c<t.PAL)u=t.PUNCT_CHARS[c];else switch(c){case t.PAL:o=_t.ALPHA;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=_t.ALPHA;break}break;case _t.ALPHA_SHIFT:if(o=a,c<26)u=String.fromCharCode(65+c);else switch(c){case 26:u=" ";break;case t.TEXT_COMPACTION_MODE_LATCH:o=_t.ALPHA;break}break;case _t.PUNCT_SHIFT:if(o=a,c<t.PAL)u=t.PUNCT_CHARS[c];else switch(c){case t.PAL:o=_t.ALPHA;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(n[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=_t.ALPHA;break}break}u!==""&&i.append(u),s++}},t.byteCompaction=function(e,n,r,i,o){var a=new J7,s=0,c=0,u=!1;switch(e){case t.BYTE_COMPACTION_MODE_LATCH:for(var l=new Int32Array(6),h=n[i++];i<n[0]&&!u;)switch(l[s++]=h,c=900*c+h,h=n[i++],h){case t.TEXT_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH:case t.NUMERIC_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:i--,u=!0;break;default:if(s%5===0&&s>0){for(var f=0;f<6;++f)a.write(Number(Li(c)>>Li(8*(5-f))));c=0,s=0}break}i===n[0]&&h<t.TEXT_COMPACTION_MODE_LATCH&&(l[s++]=h);for(var d=0;d<s;d++)a.write(l[d]);break;case t.BYTE_COMPACTION_MODE_LATCH_6:for(;i<n[0]&&!u;){var p=n[i++];if(p<t.TEXT_COMPACTION_MODE_LATCH)s++,c=900*c+p;else switch(p){case t.TEXT_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH:case t.NUMERIC_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:i--,u=!0;break}if(s%5===0&&s>0){for(var f=0;f<6;++f)a.write(Number(Li(c)>>Li(8*(5-f))));c=0,s=0}}break}return o.append(_r.decode(a.toByteArray(),r)),i},t.numericCompaction=function(e,n,r){for(var i=0,o=!1,a=new Int32Array(t.MAX_NUMERIC_CODEWORDS);n<e[0]&&!o;){var s=e[n++];if(n===e[0]&&(o=!0),s<t.TEXT_COMPACTION_MODE_LATCH)a[i]=s,i++;else switch(s){case t.TEXT_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:n--,o=!0;break}(i%t.MAX_NUMERIC_CODEWORDS===0||s===t.NUMERIC_COMPACTION_MODE_LATCH||o)&&i>0&&(r.append(t.decodeBase900toBase10(a,i)),i=0)}return n},t.decodeBase900toBase10=function(e,n){for(var r=Li(0),i=0;i<n;i++)r+=t.EXP900[n-i-1]*Li(e[i]);var o=r.toString();if(o.charAt(0)!=="1")throw new Me;return o.substring(1)},t.TEXT_COMPACTION_MODE_LATCH=900,t.BYTE_COMPACTION_MODE_LATCH=901,t.NUMERIC_COMPACTION_MODE_LATCH=902,t.BYTE_COMPACTION_MODE_LATCH_6=924,t.ECI_USER_DEFINED=925,t.ECI_GENERAL_PURPOSE=926,t.ECI_CHARSET=927,t.BEGIN_MACRO_PDF417_CONTROL_BLOCK=928,t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD=923,t.MACRO_PDF417_TERMINATOR=922,t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE=913,t.MAX_NUMERIC_CODEWORDS=15,t.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME=0,t.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT=1,t.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP=2,t.MACRO_PDF417_OPTIONAL_FIELD_SENDER=3,t.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE=4,t.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE=5,t.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM=6,t.PL=25,t.LL=27,t.AS=27,t.ML=28,t.AL=28,t.PS=29,t.PAL=29,t.PUNCT_CHARS=`;<>@[\\]_\`~!\r ,:
|
|
-.$/"|*()?{}'`,t.MIXED_CHARS="0123456789&\r ,:#-.$/+%*=^",t.EXP900=Db()?z7():[],t.NUMBER_OF_SEQUENCE_CODEWORDS=2,t}(),us=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},j7=function(){function t(){}return t.decode=function(e,n,r,i,o,a,s){for(var c=new zd(e,n,r,i,o),u=null,l=null,h,f=!0;;f=!1){if(n!=null&&(u=t.getRowIndicatorColumn(e,c,n,!0,a,s)),i!=null&&(l=t.getRowIndicatorColumn(e,c,i,!1,a,s)),h=t.merge(u,l),h==null)throw De.getNotFoundInstance();var d=h.getBoundingBox();if(f&&d!=null&&(d.getMinY()<c.getMinY()||d.getMaxY()>c.getMaxY()))c=d;else break}h.setBoundingBox(c);var p=h.getBarcodeColumnCount()+1;h.setDetectionResultColumn(0,u),h.setDetectionResultColumn(p,l);for(var g=u!=null,y=1;y<=p;y++){var R=g?y:p-y;if(h.getDetectionResultColumn(R)===void 0){var m=void 0;R===0||R===p?m=new Om(c,R===0):m=new Sb(c),h.setDetectionResultColumn(R,m);for(var v=-1,x=v,_=c.getMinY();_<=c.getMaxY();_++){if(v=t.getStartColumn(h,R,_,g),v<0||v>c.getMaxX()){if(x===-1)continue;v=x}var E=t.detectCodeword(e,c.getMinX(),c.getMaxX(),g,v,_,a,s);E!=null&&(m.setCodeword(_,E),x=v,a=Math.min(a,E.getWidth()),s=Math.max(s,E.getWidth()))}}}return t.createDecoderResult(h)},t.merge=function(e,n){if(e==null&&n==null)return null;var r=t.getBarcodeMetadata(e,n);if(r==null)return null;var i=zd.merge(t.adjustBoundingBox(e),t.adjustBoundingBox(n));return new X7(r,i)},t.adjustBoundingBox=function(e){var n,r;if(e==null)return null;var i=e.getRowHeights();if(i==null)return null;var o=t.getMax(i),a=0;try{for(var s=us(i),c=s.next();!c.done;c=s.next()){var u=c.value;if(a+=o-u,u>0)break}}catch(d){n={error:d}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}for(var l=e.getCodewords(),h=0;a>0&&l[h]==null;h++)a--;for(var f=0,h=i.length-1;h>=0&&(f+=o-i[h],!(i[h]>0));h--);for(var h=l.length-1;f>0&&l[h]==null;h--)f--;return e.getBoundingBox().addMissingRows(a,f,e.isLeft())},t.getMax=function(e){var n,r,i=-1;try{for(var o=us(e),a=o.next();!a.done;a=o.next()){var s=a.value;i=Math.max(i,s)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},t.getBarcodeMetadata=function(e,n){var r;if(e==null||(r=e.getBarcodeMetadata())==null)return n==null?null:n.getBarcodeMetadata();var i;return n==null||(i=n.getBarcodeMetadata())==null?r:r.getColumnCount()!==i.getColumnCount()&&r.getErrorCorrectionLevel()!==i.getErrorCorrectionLevel()&&r.getRowCount()!==i.getRowCount()?null:r},t.getRowIndicatorColumn=function(e,n,r,i,o,a){for(var s=new Om(n,i),c=0;c<2;c++)for(var u=c===0?1:-1,l=Math.trunc(Math.trunc(r.getX())),h=Math.trunc(Math.trunc(r.getY()));h<=n.getMaxY()&&h>=n.getMinY();h+=u){var f=t.detectCodeword(e,0,e.getWidth(),i,l,h,o,a);f!=null&&(s.setCodeword(h,f),i?l=f.getStartX():l=f.getEndX())}return s},t.adjustCodewordCount=function(e,n){var r=n[0][1],i=r.getValue(),o=e.getBarcodeColumnCount()*e.getBarcodeRowCount()-t.getNumberOfECCodeWords(e.getBarcodeECLevel());if(i.length===0){if(o<1||o>lt.MAX_CODEWORDS_IN_BARCODE)throw De.getNotFoundInstance();r.setValue(o)}else i[0]!==o&&r.setValue(o)},t.createDecoderResult=function(e){var n=t.createBarcodeMatrix(e);t.adjustCodewordCount(e,n);for(var r=new Array,i=new Int32Array(e.getBarcodeRowCount()*e.getBarcodeColumnCount()),o=[],a=new Array,s=0;s<e.getBarcodeRowCount();s++)for(var c=0;c<e.getBarcodeColumnCount();c++){var u=n[s][c+1].getValue(),l=s*e.getBarcodeColumnCount()+c;u.length===0?r.push(l):u.length===1?i[l]=u[0]:(a.push(l),o.push(u))}for(var h=new Array(o.length),f=0;f<h.length;f++)h[f]=o[f];return t.createDecoderResultFromAmbiguousValues(e.getBarcodeECLevel(),i,lt.toIntArray(r),lt.toIntArray(a),h)},t.createDecoderResultFromAmbiguousValues=function(e,n,r,i,o){for(var a=new Int32Array(i.length),s=100;s-- >0;){for(var c=0;c<a.length;c++)n[i[c]]=o[c][a[c]];try{return t.decodeCodewords(n,e,r)}catch(l){var u=l instanceof tn;if(!u)throw l}if(a.length===0)throw tn.getChecksumInstance();for(var c=0;c<a.length;c++)if(a[c]<o[c].length-1){a[c]++;break}else if(a[c]=0,c===a.length-1)throw tn.getChecksumInstance()}throw tn.getChecksumInstance()},t.createBarcodeMatrix=function(e){for(var n,r,i,o,a=Array.from({length:e.getBarcodeRowCount()},function(){return new Array(e.getBarcodeColumnCount()+2)}),s=0;s<a.length;s++)for(var c=0;c<a[s].length;c++)a[s][c]=new gs;var u=0;try{for(var l=us(e.getDetectionResultColumns()),h=l.next();!h.done;h=l.next()){var f=h.value;if(f!=null)try{for(var d=(i=void 0,us(f.getCodewords())),p=d.next();!p.done;p=d.next()){var g=p.value;if(g!=null){var y=g.getRowNumber();if(y>=0){if(y>=a.length)continue;a[y][u].setValue(g.getValue())}}}}catch(R){i={error:R}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}u++}}catch(R){n={error:R}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return a},t.isValidBarcodeColumn=function(e,n){return n>=0&&n<=e.getBarcodeColumnCount()+1},t.getStartColumn=function(e,n,r,i){var o,a,s=i?1:-1,c=null;if(t.isValidBarcodeColumn(e,n-s)&&(c=e.getDetectionResultColumn(n-s).getCodeword(r)),c!=null)return i?c.getEndX():c.getStartX();if(c=e.getDetectionResultColumn(n).getCodewordNearby(r),c!=null)return i?c.getStartX():c.getEndX();if(t.isValidBarcodeColumn(e,n-s)&&(c=e.getDetectionResultColumn(n-s).getCodewordNearby(r)),c!=null)return i?c.getEndX():c.getStartX();for(var u=0;t.isValidBarcodeColumn(e,n-s);){n-=s;try{for(var l=(o=void 0,us(e.getDetectionResultColumn(n).getCodewords())),h=l.next();!h.done;h=l.next()){var f=h.value;if(f!=null)return(i?f.getEndX():f.getStartX())+s*u*(f.getEndX()-f.getStartX())}}catch(d){o={error:d}}finally{try{h&&!h.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}u++}return i?e.getBoundingBox().getMinX():e.getBoundingBox().getMaxX()},t.detectCodeword=function(e,n,r,i,o,a,s,c){o=t.adjustCodewordStartColumn(e,n,r,i,o,a);var u=t.getModuleBitCount(e,n,r,i,o,a);if(u==null)return null;var l,h=ft.sum(u);if(i)l=o+h;else{for(var f=0;f<u.length/2;f++){var d=u[f];u[f]=u[u.length-1-f],u[u.length-1-f]=d}l=o,o=l-h}if(!t.checkCodewordSkew(h,s,c))return null;var p=Y7.getDecodedValue(u),g=lt.getCodeword(p);return g===-1?null:new V7(o,l,t.getCodewordBucketNumber(p),g)},t.getModuleBitCount=function(e,n,r,i,o,a){for(var s=o,c=new Int32Array(8),u=0,l=i?1:-1,h=i;(i?s<r:s>=n)&&u<c.length;)e.get(s,a)===h?(c[u]++,s+=l):(u++,h=!h);return u===c.length||s===(i?r:n)&&u===c.length-1?c:null},t.getNumberOfECCodeWords=function(e){return 2<<e},t.adjustCodewordStartColumn=function(e,n,r,i,o,a){for(var s=o,c=i?-1:1,u=0;u<2;u++){for(;(i?s>=n:s<r)&&i===e.get(s,a);){if(Math.abs(o-s)>t.CODEWORD_SKEW_SIZE)return o;s+=c}c=-c,i=!i}return s},t.checkCodewordSkew=function(e,n,r){return n-t.CODEWORD_SKEW_SIZE<=e&&e<=r+t.CODEWORD_SKEW_SIZE},t.decodeCodewords=function(e,n,r){if(e.length===0)throw Me.getFormatInstance();var i=1<<n+1,o=t.correctErrors(e,r,i);t.verifyCodewordCount(e,i);var a=$7.decode(e,""+n);return a.setErrorsCorrected(o),a.setErasures(r.length),a},t.correctErrors=function(e,n,r){if(n!=null&&n.length>r/2+t.MAX_ERRORS||r<0||r>t.MAX_EC_CODEWORDS)throw tn.getChecksumInstance();return t.errorCorrection.decode(e,r,n)},t.verifyCodewordCount=function(e,n){if(e.length<4)throw Me.getFormatInstance();var r=e[0];if(r>e.length)throw Me.getFormatInstance();if(r===0)if(n<e.length)e[0]=e.length-n;else throw Me.getFormatInstance()},t.getBitCountForCodeword=function(e){for(var n=new Int32Array(8),r=0,i=n.length-1;!((e&1)!==r&&(r=e&1,i--,i<0));)n[i]++,e>>=1;return n},t.getCodewordBucketNumber=function(e){return e instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(e):this.getCodewordBucketNumber_number(e)},t.getCodewordBucketNumber_number=function(e){return t.getCodewordBucketNumber(t.getBitCountForCodeword(e))},t.getCodewordBucketNumber_Int32Array=function(e){return(e[0]-e[2]+e[4]-e[6]+9)%9},t.toString=function(e){for(var n=new e1,r=0;r<e.length;r++){n.format("Row %2d: ",r);for(var i=0;i<e[r].length;i++){var o=e[r][i];o.getValue().length===0?n.format(" ",null):n.format("%4d(%2d)",o.getValue()[0],o.getConfidence(o.getValue()[0]))}n.format("%n")}return n.toString()},t.CODEWORD_SKEW_SIZE=2,t.MAX_ERRORS=3,t.MAX_EC_CODEWORDS=512,t.errorCorrection=new P7,t}(),q7=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Mu=function(){function t(){}return t.prototype.decode=function(e,n){n===void 0&&(n=null);var r=t.decode(e,n,!1);if(r==null||r.length===0||r[0]==null)throw De.getNotFoundInstance();return r[0]},t.prototype.decodeMultiple=function(e,n){n===void 0&&(n=null);try{return t.decode(e,n,!0)}catch(r){throw r instanceof Me||r instanceof tn?De.getNotFoundInstance():r}},t.decode=function(e,n,r){var i,o,a=new Array,s=_7.detectMultiple(e,n,r);try{for(var c=q7(s.getPoints()),u=c.next();!u.done;u=c.next()){var l=u.value,h=j7.decode(s.getBits(),l[4],l[5],l[6],l[7],t.getMinCodewordWidth(l),t.getMaxCodewordWidth(l)),f=new Un(h.getText(),h.getRawBytes(),void 0,l,He.PDF_417);f.putMetadata(Dn.ERROR_CORRECTION_LEVEL,h.getECLevel());var d=h.getOther();d!=null&&f.putMetadata(Dn.PDF417_EXTRA_METADATA,d),a.push(f)}}catch(p){i={error:p}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return a.map(function(p){return p})},t.getMaxWidth=function(e,n){return e==null||n==null?0:Math.trunc(Math.abs(e.getX()-n.getX()))},t.getMinWidth=function(e,n){return e==null||n==null?$t.MAX_VALUE:Math.trunc(Math.abs(e.getX()-n.getX()))},t.getMaxCodewordWidth=function(e){return Math.floor(Math.max(Math.max(t.getMaxWidth(e[0],e[4]),t.getMaxWidth(e[6],e[2])*lt.MODULES_IN_CODEWORD/lt.MODULES_IN_STOP_PATTERN),Math.max(t.getMaxWidth(e[1],e[5]),t.getMaxWidth(e[7],e[3])*lt.MODULES_IN_CODEWORD/lt.MODULES_IN_STOP_PATTERN)))},t.getMinCodewordWidth=function(e){return Math.floor(Math.min(Math.min(t.getMinWidth(e[0],e[4]),t.getMinWidth(e[6],e[2])*lt.MODULES_IN_CODEWORD/lt.MODULES_IN_STOP_PATTERN),Math.min(t.getMinWidth(e[1],e[5]),t.getMinWidth(e[7],e[3])*lt.MODULES_IN_CODEWORD/lt.MODULES_IN_STOP_PATTERN)))},t.prototype.reset=function(){},t}(),eV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Im=function(t){eV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ReaderException",e}(ir),Nm=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},_b=function(){function t(){}return t.prototype.decode=function(e,n){return this.setHints(n),this.decodeInternal(e)},t.prototype.decodeWithState=function(e){return(this.readers===null||this.readers===void 0)&&this.setHints(null),this.decodeInternal(e)},t.prototype.setHints=function(e){this.hints=e;var n=e!=null&&e.get(Ct.TRY_HARDER)!==void 0,r=e==null?null:e.get(Ct.POSSIBLE_FORMATS),i=new Array;if(r!=null){var o=r.some(function(a){return a===He.UPC_A||a===He.UPC_E||a===He.EAN_13||a===He.EAN_8||a===He.CODABAR||a===He.CODE_39||a===He.CODE_93||a===He.CODE_128||a===He.ITF||a===He.RSS_14||a===He.RSS_EXPANDED});o&&!n&&i.push(new ea(e)),r.includes(He.QR_CODE)&&i.push(new Lu),r.includes(He.DATA_MATRIX)&&i.push(new Pu),r.includes(He.AZTEC)&&i.push(new Nu),r.includes(He.PDF_417)&&i.push(new Mu),o&&n&&i.push(new ea(e))}i.length===0&&(n||i.push(new ea(e)),i.push(new Lu),i.push(new Pu),i.push(new Nu),i.push(new Mu),n&&i.push(new ea(e))),this.readers=i},t.prototype.reset=function(){var e,n;if(this.readers!==null)try{for(var r=Nm(this.readers),i=r.next();!i.done;i=r.next()){var o=i.value;o.reset()}}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.decodeInternal=function(e){var n,r;if(this.readers===null)throw new Im("No readers where selected, nothing can be read.");try{for(var i=Nm(this.readers),o=i.next();!o.done;o=i.next()){var a=o.value;try{return a.decode(e,this.hints)}catch(s){if(s instanceof Im)continue}}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}throw new De("No MultiFormat Readers were able to detect the code.")},t}(),tV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){tV(e,t);function e(n,r){n===void 0&&(n=null),r===void 0&&(r=500);var i=this,o=new _b;return o.setHints(n),i=t.call(this,o,r)||this,i}return e.prototype.decodeBitmap=function(n){return this.reader.decodeWithState(n)},e})(Xa);var nV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){nV(e,t);function e(n){return n===void 0&&(n=500),t.call(this,new Mu,n)||this}return e})(Xa);var rV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){rV(e,t);function e(n){return n===void 0&&(n=500),t.call(this,new Lu,n)||this}return e})(Xa);var $d;(function(t){t[t.ERROR_CORRECTION=0]="ERROR_CORRECTION",t[t.CHARACTER_SET=1]="CHARACTER_SET",t[t.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",t[t.DATA_MATRIX_COMPACT=3]="DATA_MATRIX_COMPACT",t[t.MIN_SIZE=4]="MIN_SIZE",t[t.MAX_SIZE=5]="MAX_SIZE",t[t.MARGIN=6]="MARGIN",t[t.PDF417_COMPACT=7]="PDF417_COMPACT",t[t.PDF417_COMPACTION=8]="PDF417_COMPACTION",t[t.PDF417_DIMENSIONS=9]="PDF417_DIMENSIONS",t[t.AZTEC_LAYERS=10]="AZTEC_LAYERS",t[t.QR_VERSION=11]="QR_VERSION",t[t.GS1_FORMAT=12]="GS1_FORMAT",t[t.FORCE_C40=13]="FORCE_C40"})($d||($d={}));var Gr=$d,iV=function(){function t(e){this.field=e,this.cachedGenerators=[],this.cachedGenerators.push(new Yi(e,Int32Array.from([1])))}return t.prototype.buildGenerator=function(e){var n=this.cachedGenerators;if(e>=n.length)for(var r=n[n.length-1],i=this.field,o=n.length;o<=e;o++){var a=r.multiply(new Yi(i,Int32Array.from([1,i.exp(o-1+i.getGeneratorBase())])));n.push(a),r=a}return n[e]},t.prototype.encode=function(e,n){if(n===0)throw new Je("No error correction bytes");var r=e.length-n;if(r<=0)throw new Je("No data bytes provided");var i=this.buildGenerator(n),o=new Int32Array(r);Mt.arraycopy(e,0,o,0,r);var a=new Yi(this.field,o);a=a.multiplyByMonomial(n,1);for(var s=a.divide(i)[1],c=s.getCoefficients(),u=n-c.length,l=0;l<u;l++)e[r+l]=0;Mt.arraycopy(c,0,e,r+u,c.length)},t}(),ms=function(){function t(){}return t.applyMaskPenaltyRule1=function(e){return t.applyMaskPenaltyRule1Internal(e,!0)+t.applyMaskPenaltyRule1Internal(e,!1)},t.applyMaskPenaltyRule2=function(e){for(var n=0,r=e.getArray(),i=e.getWidth(),o=e.getHeight(),a=0;a<o-1;a++)for(var s=r[a],c=0;c<i-1;c++){var u=s[c];u===s[c+1]&&u===r[a+1][c]&&u===r[a+1][c+1]&&n++}return t.N2*n},t.applyMaskPenaltyRule3=function(e){for(var n=0,r=e.getArray(),i=e.getWidth(),o=e.getHeight(),a=0;a<o;a++)for(var s=0;s<i;s++){var c=r[a];s+6<i&&c[s]===1&&c[s+1]===0&&c[s+2]===1&&c[s+3]===1&&c[s+4]===1&&c[s+5]===0&&c[s+6]===1&&(t.isWhiteHorizontal(c,s-4,s)||t.isWhiteHorizontal(c,s+7,s+11))&&n++,a+6<o&&r[a][s]===1&&r[a+1][s]===0&&r[a+2][s]===1&&r[a+3][s]===1&&r[a+4][s]===1&&r[a+5][s]===0&&r[a+6][s]===1&&(t.isWhiteVertical(r,s,a-4,a)||t.isWhiteVertical(r,s,a+7,a+11))&&n++}return n*t.N3},t.isWhiteHorizontal=function(e,n,r){n=Math.max(n,0),r=Math.min(r,e.length);for(var i=n;i<r;i++)if(e[i]===1)return!1;return!0},t.isWhiteVertical=function(e,n,r,i){r=Math.max(r,0),i=Math.min(i,e.length);for(var o=r;o<i;o++)if(e[o][n]===1)return!1;return!0},t.applyMaskPenaltyRule4=function(e){for(var n=0,r=e.getArray(),i=e.getWidth(),o=e.getHeight(),a=0;a<o;a++)for(var s=r[a],c=0;c<i;c++)s[c]===1&&n++;var u=e.getHeight()*e.getWidth(),l=Math.floor(Math.abs(n*2-u)*10/u);return l*t.N4},t.getDataMaskBit=function(e,n,r){var i,o;switch(e){case 0:i=r+n&1;break;case 1:i=r&1;break;case 2:i=n%3;break;case 3:i=(r+n)%3;break;case 4:i=Math.floor(r/2)+Math.floor(n/3)&1;break;case 5:o=r*n,i=(o&1)+o%3;break;case 6:o=r*n,i=(o&1)+o%3&1;break;case 7:o=r*n,i=o%3+(r+n&1)&1;break;default:throw new Je("Invalid mask pattern: "+e)}return i===0},t.applyMaskPenaltyRule1Internal=function(e,n){for(var r=0,i=n?e.getHeight():e.getWidth(),o=n?e.getWidth():e.getHeight(),a=e.getArray(),s=0;s<i;s++){for(var c=0,u=-1,l=0;l<o;l++){var h=n?a[s][l]:a[l][s];h===u?c++:(c>=5&&(r+=t.N1+(c-5)),c=1,u=h)}c>=5&&(r+=t.N1+(c-5))}return r},t.N1=3,t.N2=3,t.N3=40,t.N4=10,t}(),oV=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},aV=function(){function t(e,n){this.width=e,this.height=n;for(var r=new Array(n),i=0;i!==n;i++)r[i]=new Uint8Array(e);this.bytes=r}return t.prototype.getHeight=function(){return this.height},t.prototype.getWidth=function(){return this.width},t.prototype.get=function(e,n){return this.bytes[n][e]},t.prototype.getArray=function(){return this.bytes},t.prototype.setNumber=function(e,n,r){this.bytes[n][e]=r},t.prototype.setBoolean=function(e,n,r){this.bytes[n][e]=r?1:0},t.prototype.clear=function(e){var n,r;try{for(var i=oV(this.bytes),o=i.next();!o.done;o=i.next()){var a=o.value;un.fill(a,e)}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;if(this.width!==n.width||this.height!==n.height)return!1;for(var r=0,i=this.height;r<i;++r)for(var o=this.bytes[r],a=n.bytes[r],s=0,c=this.width;s<c;++s)if(o[s]!==a[s])return!1;return!0},t.prototype.toString=function(){for(var e=new rt,n=0,r=this.height;n<r;++n){for(var i=this.bytes[n],o=0,a=this.width;o<a;++o)switch(i[o]){case 0:e.append(" 0");break;case 1:e.append(" 1");break;default:e.append(" ");break}e.append(`
|
|
`)}return e.toString()},t}(),jd=function(){function t(){this.maskPattern=-1}return t.prototype.getMode=function(){return this.mode},t.prototype.getECLevel=function(){return this.ecLevel},t.prototype.getVersion=function(){return this.version},t.prototype.getMaskPattern=function(){return this.maskPattern},t.prototype.getMatrix=function(){return this.matrix},t.prototype.toString=function(){var e=new rt;return e.append(`<<
|
|
`),e.append(" mode: "),e.append(this.mode?this.mode.toString():"null"),e.append(`
|
|
ecLevel: `),e.append(this.ecLevel?this.ecLevel.toString():"null"),e.append(`
|
|
version: `),e.append(this.version?this.version.toString():"null"),e.append(`
|
|
maskPattern: `),e.append(this.maskPattern.toString()),this.matrix?(e.append(`
|
|
matrix:
|
|
`),e.append(this.matrix.toString())):e.append(`
|
|
matrix: null
|
|
`),e.append(`>>
|
|
`),e.toString()},t.prototype.setMode=function(e){this.mode=e},t.prototype.setECLevel=function(e){this.ecLevel=e},t.prototype.setVersion=function(e){this.version=e},t.prototype.setMaskPattern=function(e){this.maskPattern=e},t.prototype.setMatrix=function(e){this.matrix=e},t.isValidMaskPattern=function(e){return e>=0&&e<t.NUM_MASK_PATTERNS},t.NUM_MASK_PATTERNS=8,t}(),sV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ut=function(t){sV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="WriterException",e}(ir),Fm=function(){function t(){}return t.clearMatrix=function(e){e.clear(255)},t.buildMatrix=function(e,n,r,i,o){t.clearMatrix(o),t.embedBasicPatterns(r,o),t.embedTypeInfo(n,i,o),t.maybeEmbedVersionInfo(r,o),t.embedDataBits(e,i,o)},t.embedBasicPatterns=function(e,n){t.embedPositionDetectionPatternsAndSeparators(n),t.embedDarkDotAtLeftBottomCorner(n),t.maybeEmbedPositionAdjustmentPatterns(e,n),t.embedTimingPatterns(n)},t.embedTypeInfo=function(e,n,r){var i=new $n;t.makeTypeInfoBits(e,n,i);for(var o=0,a=i.getSize();o<a;++o){var s=i.get(i.getSize()-1-o),c=t.TYPE_INFO_COORDINATES[o],u=c[0],l=c[1];if(r.setBoolean(u,l,s),o<8){var h=r.getWidth()-o-1,f=8;r.setBoolean(h,f,s)}else{var h=8,f=r.getHeight()-7+(o-8);r.setBoolean(h,f,s)}}},t.maybeEmbedVersionInfo=function(e,n){if(!(e.getVersionNumber()<7)){var r=new $n;t.makeVersionInfoBits(e,r);for(var i=6*3-1,o=0;o<6;++o)for(var a=0;a<3;++a){var s=r.get(i);i--,n.setBoolean(o,n.getHeight()-11+a,s),n.setBoolean(n.getHeight()-11+a,o,s)}}},t.embedDataBits=function(e,n,r){for(var i=0,o=-1,a=r.getWidth()-1,s=r.getHeight()-1;a>0;){for(a===6&&(a-=1);s>=0&&s<r.getHeight();){for(var c=0;c<2;++c){var u=a-c;if(!!t.isEmpty(r.get(u,s))){var l=void 0;i<e.getSize()?(l=e.get(i),++i):l=!1,n!==255&&ms.getDataMaskBit(n,u,s)&&(l=!l),r.setBoolean(u,s,l)}}s+=o}o=-o,s+=o,a-=2}if(i!==e.getSize())throw new Ut("Not all bits consumed: "+i+"/"+e.getSize())},t.findMSBSet=function(e){return 32-$t.numberOfLeadingZeros(e)},t.calculateBCHCode=function(e,n){if(n===0)throw new Je("0 polynomial");var r=t.findMSBSet(n);for(e<<=r-1;t.findMSBSet(e)>=r;)e^=n<<t.findMSBSet(e)-r;return e},t.makeTypeInfoBits=function(e,n,r){if(!jd.isValidMaskPattern(n))throw new Ut("Invalid mask pattern");var i=e.getBits()<<3|n;r.appendBits(i,5);var o=t.calculateBCHCode(i,t.TYPE_INFO_POLY);r.appendBits(o,10);var a=new $n;if(a.appendBits(t.TYPE_INFO_MASK_PATTERN,15),r.xor(a),r.getSize()!==15)throw new Ut("should not happen but we got: "+r.getSize())},t.makeVersionInfoBits=function(e,n){n.appendBits(e.getVersionNumber(),6);var r=t.calculateBCHCode(e.getVersionNumber(),t.VERSION_INFO_POLY);if(n.appendBits(r,12),n.getSize()!==18)throw new Ut("should not happen but we got: "+n.getSize())},t.isEmpty=function(e){return e===255},t.embedTimingPatterns=function(e){for(var n=8;n<e.getWidth()-8;++n){var r=(n+1)%2;t.isEmpty(e.get(n,6))&&e.setNumber(n,6,r),t.isEmpty(e.get(6,n))&&e.setNumber(6,n,r)}},t.embedDarkDotAtLeftBottomCorner=function(e){if(e.get(8,e.getHeight()-8)===0)throw new Ut;e.setNumber(8,e.getHeight()-8,1)},t.embedHorizontalSeparationPattern=function(e,n,r){for(var i=0;i<8;++i){if(!t.isEmpty(r.get(e+i,n)))throw new Ut;r.setNumber(e+i,n,0)}},t.embedVerticalSeparationPattern=function(e,n,r){for(var i=0;i<7;++i){if(!t.isEmpty(r.get(e,n+i)))throw new Ut;r.setNumber(e,n+i,0)}},t.embedPositionAdjustmentPattern=function(e,n,r){for(var i=0;i<5;++i)for(var o=t.POSITION_ADJUSTMENT_PATTERN[i],a=0;a<5;++a)r.setNumber(e+a,n+i,o[a])},t.embedPositionDetectionPattern=function(e,n,r){for(var i=0;i<7;++i)for(var o=t.POSITION_DETECTION_PATTERN[i],a=0;a<7;++a)r.setNumber(e+a,n+i,o[a])},t.embedPositionDetectionPatternsAndSeparators=function(e){var n=t.POSITION_DETECTION_PATTERN[0].length;t.embedPositionDetectionPattern(0,0,e),t.embedPositionDetectionPattern(e.getWidth()-n,0,e),t.embedPositionDetectionPattern(0,e.getWidth()-n,e);var r=8;t.embedHorizontalSeparationPattern(0,r-1,e),t.embedHorizontalSeparationPattern(e.getWidth()-r,r-1,e),t.embedHorizontalSeparationPattern(0,e.getWidth()-r,e);var i=7;t.embedVerticalSeparationPattern(i,0,e),t.embedVerticalSeparationPattern(e.getHeight()-i-1,0,e),t.embedVerticalSeparationPattern(i,e.getHeight()-i,e)},t.maybeEmbedPositionAdjustmentPatterns=function(e,n){if(!(e.getVersionNumber()<2))for(var r=e.getVersionNumber()-1,i=t.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[r],o=0,a=i.length;o!==a;o++){var s=i[o];if(s>=0)for(var c=0;c!==a;c++){var u=i[c];u>=0&&t.isEmpty(n.get(u,s))&&t.embedPositionAdjustmentPattern(u-2,s-2,n)}}},t.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])]),t.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])]),t.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])]),t.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])]),t.VERSION_INFO_POLY=7973,t.TYPE_INFO_POLY=1335,t.TYPE_INFO_MASK_PATTERN=21522,t}(),cV=function(){function t(e,n){this.dataBytes=e,this.errorCorrectionBytes=n}return t.prototype.getDataBytes=function(){return this.dataBytes},t.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},t}(),Pm=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},uV=function(){function t(){}return t.calculateMaskPenalty=function(e){return ms.applyMaskPenaltyRule1(e)+ms.applyMaskPenaltyRule2(e)+ms.applyMaskPenaltyRule3(e)+ms.applyMaskPenaltyRule4(e)},t.encode=function(e,n,r){r===void 0&&(r=null);var i=t.DEFAULT_BYTE_MODE_ENCODING,o=r!==null&&r.get(Gr.CHARACTER_SET)!==void 0;o&&(i=r.get(Gr.CHARACTER_SET).toString());var a=this.chooseMode(e,i),s=new $n;if(a===Wt.BYTE&&(o||t.DEFAULT_BYTE_MODE_ENCODING!==i)){var c=cn.getCharacterSetECIByName(i);c!==void 0&&this.appendECI(c,s)}this.appendModeInfo(a,s);var u=new $n;this.appendBytes(e,a,u,i);var l;if(r!==null&&r.get(Gr.QR_VERSION)!==void 0){var h=Number.parseInt(r.get(Gr.QR_VERSION).toString(),10);l=mo.getVersionForNumber(h);var f=this.calculateBitsNeeded(a,s,u,l);if(!this.willFit(f,l,n))throw new Ut("Data too big for requested version")}else l=this.recommendVersion(n,a,s,u);var d=new $n;d.appendBitArray(s);var p=a===Wt.BYTE?u.getSizeInBytes():e.length;this.appendLengthInfo(p,l,a,d),d.appendBitArray(u);var g=l.getECBlocksForLevel(n),y=l.getTotalCodewords()-g.getTotalECCodewords();this.terminateBits(y,d);var R=this.interleaveWithECBytes(d,l.getTotalCodewords(),y,g.getNumBlocks()),m=new jd;m.setECLevel(n),m.setMode(a),m.setVersion(l);var v=l.getDimensionForVersion(),x=new aV(v,v),_=this.chooseMaskPattern(R,n,l,x);return m.setMaskPattern(_),Fm.buildMatrix(R,n,l,_,x),m.setMatrix(x),m},t.recommendVersion=function(e,n,r,i){var o=this.calculateBitsNeeded(n,r,i,mo.getVersionForNumber(1)),a=this.chooseVersion(o,e),s=this.calculateBitsNeeded(n,r,i,a);return this.chooseVersion(s,e)},t.calculateBitsNeeded=function(e,n,r,i){return n.getSize()+e.getCharacterCountBits(i)+r.getSize()},t.getAlphanumericCode=function(e){return e<t.ALPHANUMERIC_TABLE.length?t.ALPHANUMERIC_TABLE[e]:-1},t.chooseMode=function(e,n){if(n===void 0&&(n=null),cn.SJIS.getName()===n&&this.isOnlyDoubleByteKanji(e))return Wt.KANJI;for(var r=!1,i=!1,o=0,a=e.length;o<a;++o){var s=e.charAt(o);if(t.isDigit(s))r=!0;else if(this.getAlphanumericCode(s.charCodeAt(0))!==-1)i=!0;else return Wt.BYTE}return i?Wt.ALPHANUMERIC:r?Wt.NUMERIC:Wt.BYTE},t.isOnlyDoubleByteKanji=function(e){var n;try{n=_r.encode(e,cn.SJIS)}catch{return!1}var r=n.length;if(r%2!==0)return!1;for(var i=0;i<r;i+=2){var o=n[i]&255;if((o<129||o>159)&&(o<224||o>235))return!1}return!0},t.chooseMaskPattern=function(e,n,r,i){for(var o=Number.MAX_SAFE_INTEGER,a=-1,s=0;s<jd.NUM_MASK_PATTERNS;s++){Fm.buildMatrix(e,n,r,s,i);var c=this.calculateMaskPenalty(i);c<o&&(o=c,a=s)}return a},t.chooseVersion=function(e,n){for(var r=1;r<=40;r++){var i=mo.getVersionForNumber(r);if(t.willFit(e,i,n))return i}throw new Ut("Data too big")},t.willFit=function(e,n,r){var i=n.getTotalCodewords(),o=n.getECBlocksForLevel(r),a=o.getTotalECCodewords(),s=i-a,c=(e+7)/8;return s>=c},t.terminateBits=function(e,n){var r=e*8;if(n.getSize()>r)throw new Ut("data bits cannot fit in the QR Code"+n.getSize()+" > "+r);for(var i=0;i<4&&n.getSize()<r;++i)n.appendBit(!1);var o=n.getSize()&7;if(o>0)for(var i=o;i<8;i++)n.appendBit(!1);for(var a=e-n.getSizeInBytes(),i=0;i<a;++i)n.appendBits((i&1)===0?236:17,8);if(n.getSize()!==r)throw new Ut("Bits size does not equal capacity")},t.getNumDataBytesAndNumECBytesForBlockID=function(e,n,r,i,o,a){if(i>=r)throw new Ut("Block ID too large");var s=e%r,c=r-s,u=Math.floor(e/r),l=u+1,h=Math.floor(n/r),f=h+1,d=u-h,p=l-f;if(d!==p)throw new Ut("EC bytes mismatch");if(r!==c+s)throw new Ut("RS blocks mismatch");if(e!==(h+d)*c+(f+p)*s)throw new Ut("Total bytes mismatch");i<c?(o[0]=h,a[0]=d):(o[0]=f,a[0]=p)},t.interleaveWithECBytes=function(e,n,r,i){var o,a,s,c;if(e.getSizeInBytes()!==r)throw new Ut("Number of bits and data bytes does not match");for(var u=0,l=0,h=0,f=new Array,d=0;d<i;++d){var p=new Int32Array(1),g=new Int32Array(1);t.getNumDataBytesAndNumECBytesForBlockID(n,r,i,d,p,g);var y=p[0],R=new Uint8Array(y);e.toBytes(8*u,R,0,y);var m=t.generateECBytes(R,g[0]);f.push(new cV(R,m)),l=Math.max(l,y),h=Math.max(h,m.length),u+=p[0]}if(r!==u)throw new Ut("Data bytes does not match offset");for(var v=new $n,d=0;d<l;++d)try{for(var x=(o=void 0,Pm(f)),_=x.next();!_.done;_=x.next()){var E=_.value,R=E.getDataBytes();d<R.length&&v.appendBits(R[d],8)}}catch(Q){o={error:Q}}finally{try{_&&!_.done&&(a=x.return)&&a.call(x)}finally{if(o)throw o.error}}for(var d=0;d<h;++d)try{for(var N=(s=void 0,Pm(f)),U=N.next();!U.done;U=N.next()){var E=U.value,m=E.getErrorCorrectionBytes();d<m.length&&v.appendBits(m[d],8)}}catch(Q){s={error:Q}}finally{try{U&&!U.done&&(c=N.return)&&c.call(N)}finally{if(s)throw s.error}}if(n!==v.getSizeInBytes())throw new Ut("Interleaving error: "+n+" and "+v.getSizeInBytes()+" differ.");return v},t.generateECBytes=function(e,n){for(var r=e.length,i=new Int32Array(r+n),o=0;o<r;o++)i[o]=e[o]&255;new iV(fi.QR_CODE_FIELD_256).encode(i,n);for(var a=new Uint8Array(n),o=0;o<n;o++)a[o]=i[r+o];return a},t.appendModeInfo=function(e,n){n.appendBits(e.getBits(),4)},t.appendLengthInfo=function(e,n,r,i){var o=r.getCharacterCountBits(n);if(e>=1<<o)throw new Ut(e+" is bigger than "+((1<<o)-1));i.appendBits(e,o)},t.appendBytes=function(e,n,r,i){switch(n){case Wt.NUMERIC:t.appendNumericBytes(e,r);break;case Wt.ALPHANUMERIC:t.appendAlphanumericBytes(e,r);break;case Wt.BYTE:t.append8BitBytes(e,r,i);break;case Wt.KANJI:t.appendKanjiBytes(e,r);break;default:throw new Ut("Invalid mode: "+n)}},t.getDigit=function(e){return e.charCodeAt(0)-48},t.isDigit=function(e){var n=t.getDigit(e);return n>=0&&n<=9},t.appendNumericBytes=function(e,n){for(var r=e.length,i=0;i<r;){var o=t.getDigit(e.charAt(i));if(i+2<r){var a=t.getDigit(e.charAt(i+1)),s=t.getDigit(e.charAt(i+2));n.appendBits(o*100+a*10+s,10),i+=3}else if(i+1<r){var a=t.getDigit(e.charAt(i+1));n.appendBits(o*10+a,7),i+=2}else n.appendBits(o,4),i++}},t.appendAlphanumericBytes=function(e,n){for(var r=e.length,i=0;i<r;){var o=t.getAlphanumericCode(e.charCodeAt(i));if(o===-1)throw new Ut;if(i+1<r){var a=t.getAlphanumericCode(e.charCodeAt(i+1));if(a===-1)throw new Ut;n.appendBits(o*45+a,11),i+=2}else n.appendBits(o,6),i++}},t.append8BitBytes=function(e,n,r){var i;try{i=_r.encode(e,r)}catch(c){throw new Ut(c)}for(var o=0,a=i.length;o!==a;o++){var s=i[o];n.appendBits(s,8)}},t.appendKanjiBytes=function(e,n){var r;try{r=_r.encode(e,cn.SJIS)}catch(h){throw new Ut(h)}for(var i=r.length,o=0;o<i;o+=2){var a=r[o]&255,s=r[o+1]&255,c=a<<8&4294967295|s,u=-1;if(c>=33088&&c<=40956?u=c-33088:c>=57408&&c<=60351&&(u=c-49472),u===-1)throw new Ut("Invalid byte sequence");var l=(u>>8)*192+(u&255);n.appendBits(l,13)}},t.appendECI=function(e,n){n.appendBits(Wt.ECI.getBits(),4),n.appendBits(e.getValue(),8)},t.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]),t.DEFAULT_BYTE_MODE_ENCODING=cn.UTF8.getName(),t}(),lV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){lV(e,t);function e(n,r,i,o,a,s,c,u){var l=t.call(this,s,c)||this;if(l.yuvData=n,l.dataWidth=r,l.dataHeight=i,l.left=o,l.top=a,o+s>r||a+c>i)throw new Je("Crop rectangle does not fit within image data.");return u&&l.reverseHorizontal(s,c),l}return e.prototype.getRow=function(n,r){if(n<0||n>=this.getHeight())throw new Je("Requested row is outside the image: "+n);var i=this.getWidth();(r==null||r.length<i)&&(r=new Uint8ClampedArray(i));var o=(n+this.top)*this.dataWidth+this.left;return Mt.arraycopy(this.yuvData,o,r,0,i),r},e.prototype.getMatrix=function(){var n=this.getWidth(),r=this.getHeight();if(n===this.dataWidth&&r===this.dataHeight)return this.yuvData;var i=n*r,o=new Uint8ClampedArray(i),a=this.top*this.dataWidth+this.left;if(n===this.dataWidth)return Mt.arraycopy(this.yuvData,a,o,0,i),o;for(var s=0;s<r;s++){var c=s*n;Mt.arraycopy(this.yuvData,a,o,c,n),a+=this.dataWidth}return o},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(n,r,i,o){return new e(this.yuvData,this.dataWidth,this.dataHeight,this.left+n,this.top+r,i,o,!1)},e.prototype.renderThumbnail=function(){for(var n=this.getWidth()/e.THUMBNAIL_SCALE_FACTOR,r=this.getHeight()/e.THUMBNAIL_SCALE_FACTOR,i=new Int32Array(n*r),o=this.yuvData,a=this.top*this.dataWidth+this.left,s=0;s<r;s++){for(var c=s*n,u=0;u<n;u++){var l=o[a+u*e.THUMBNAIL_SCALE_FACTOR]&255;i[c+u]=4278190080|l*65793}a+=this.dataWidth*e.THUMBNAIL_SCALE_FACTOR}return i},e.prototype.getThumbnailWidth=function(){return this.getWidth()/e.THUMBNAIL_SCALE_FACTOR},e.prototype.getThumbnailHeight=function(){return this.getHeight()/e.THUMBNAIL_SCALE_FACTOR},e.prototype.reverseHorizontal=function(n,r){for(var i=this.yuvData,o=0,a=this.top*this.dataWidth+this.left;o<r;o++,a+=this.dataWidth)for(var s=a+n/2,c=a,u=a+n-1;c<s;c++,u--){var l=i[c];i[c]=i[u],i[u]=l}},e.prototype.invert=function(){return new vl(this)},e.THUMBNAIL_SCALE_FACTOR=2,e})(lc);var hV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){hV(e,t);function e(n,r,i,o,a,s,c){var u=t.call(this,r,i)||this;if(u.dataWidth=o,u.dataHeight=a,u.left=s,u.top=c,n.BYTES_PER_ELEMENT===4){for(var l=r*i,h=new Uint8ClampedArray(l),f=0;f<l;f++){var d=n[f],p=d>>16&255,g=d>>7&510,y=d&255;h[f]=(p+g+y)/4&255}u.luminances=h}else u.luminances=n;if(o===void 0&&(u.dataWidth=r),a===void 0&&(u.dataHeight=i),s===void 0&&(u.left=0),c===void 0&&(u.top=0),u.left+r>u.dataWidth||u.top+i>u.dataHeight)throw new Je("Crop rectangle does not fit within image data.");return u}return e.prototype.getRow=function(n,r){if(n<0||n>=this.getHeight())throw new Je("Requested row is outside the image: "+n);var i=this.getWidth();(r==null||r.length<i)&&(r=new Uint8ClampedArray(i));var o=(n+this.top)*this.dataWidth+this.left;return Mt.arraycopy(this.luminances,o,r,0,i),r},e.prototype.getMatrix=function(){var n=this.getWidth(),r=this.getHeight();if(n===this.dataWidth&&r===this.dataHeight)return this.luminances;var i=n*r,o=new Uint8ClampedArray(i),a=this.top*this.dataWidth+this.left;if(n===this.dataWidth)return Mt.arraycopy(this.luminances,a,o,0,i),o;for(var s=0;s<r;s++){var c=s*n;Mt.arraycopy(this.luminances,a,o,c,n),a+=this.dataWidth}return o},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(n,r,i,o){return new e(this.luminances,i,o,this.dataWidth,this.dataHeight,this.left+n,this.top+r)},e.prototype.invert=function(){return new vl(this)},e})(lc);var dV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),fV=function(t){dV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.forName=function(n){return this.getCharacterSetECIByName(n)},e}(cn),pV=function(){function t(){}return t.ISO_8859_1=cn.ISO8859_1,t}(),qd,gV=301,mV=function(t,e){for(var n=1,r=0;r<255;r++)e[r]=n,t[n]=r,n*=2,n>=256&&(n^=gV);return{LOG:t,ALOG:e}};qd=mV([],[]),qd.LOG;qd.ALOG;var Lm;(function(t){t[t.FORCE_NONE=0]="FORCE_NONE",t[t.FORCE_SQUARE=1]="FORCE_SQUARE",t[t.FORCE_RECTANGLE=2]="FORCE_RECTANGLE"})(Lm||(Lm={}));var Mm=129,Ob=230,RV=231,yV=235,vV=236,bV=237,xV=238,wV=239,TV=240,od=254,SV=254,Cm="[)>05",Am="[)>06",Um="",St=0,xn=1,kn=2,an=3,gn=4,En=5,DV=function(){function t(){}return t.prototype.getEncodingMode=function(){return St},t.prototype.encode=function(e){var n=Pr.determineConsecutiveDigitCount(e.getMessage(),e.pos);if(n>=2)e.writeCodeword(this.encodeASCIIDigits(e.getMessage().charCodeAt(e.pos),e.getMessage().charCodeAt(e.pos+1))),e.pos+=2;else{var r=e.getCurrentChar(),i=Pr.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(i!==this.getEncodingMode())switch(i){case En:e.writeCodeword(RV),e.signalEncoderChange(En);return;case xn:e.writeCodeword(Ob),e.signalEncoderChange(xn);return;case an:e.writeCodeword(xV),e.signalEncoderChange(an);break;case kn:e.writeCodeword(wV),e.signalEncoderChange(kn);break;case gn:e.writeCodeword(TV),e.signalEncoderChange(gn);break;default:throw new Error("Illegal mode: "+i)}else Pr.isExtendedASCII(r)?(e.writeCodeword(yV),e.writeCodeword(r-128+1),e.pos++):(e.writeCodeword(r+1),e.pos++)}},t.prototype.encodeASCIIDigits=function(e,n){if(Pr.isDigit(e)&&Pr.isDigit(n)){var r=(e-48)*10+(n-48);return r+130}throw new Error("not digits: "+e+n)},t}(),_V=function(){function t(){}return t.prototype.getEncodingMode=function(){return En},t.prototype.encode=function(e){var n=new rt;for(n.append(0);e.hasMoreCharacters();){var r=e.getCurrentChar();n.append(r),e.pos++;var i=Pr.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(i!==this.getEncodingMode()){e.signalEncoderChange(St);break}}var o=n.length()-1,a=1,s=e.getCodewordCount()+o+a;e.updateSymbolInfo(s);var c=e.getSymbolInfo().getDataCapacity()-s>0;if(e.hasMoreCharacters()||c)if(o<=249)n.setCharAt(0,Lt.getCharAt(o));else if(o<=1555)n.setCharAt(0,Lt.getCharAt(Math.floor(o/250)+249)),n.insert(1,Lt.getCharAt(o%250));else throw new Error("Message length not in valid ranges: "+o);for(var u=0,r=n.length();u<r;u++)e.writeCodeword(this.randomize255State(n.charAt(u).charCodeAt(0),e.getCodewordCount()+1))},t.prototype.randomize255State=function(e,n){var r=149*n%255+1,i=e+r;return i<=255?i:i-256},t}(),t1=function(){function t(){}return t.prototype.getEncodingMode=function(){return xn},t.prototype.encodeMaximal=function(e){for(var n=new rt,r=0,i=e.pos,o=0;e.hasMoreCharacters();){var a=e.getCurrentChar();e.pos++,r=this.encodeChar(a,n),n.length()%3===0&&(i=e.pos,o=n.length())}if(o!==n.length()){var s=Math.floor(n.length()/3*2),c=Math.floor(e.getCodewordCount()+s+1);e.updateSymbolInfo(c);var u=e.getSymbolInfo().getDataCapacity()-c,l=Math.floor(n.length()%3);(l===2&&u!==2||l===1&&(r>3||u!==1))&&(e.pos=i)}n.length()>0&&e.writeCodeword(Ob),this.handleEOD(e,n)},t.prototype.encode=function(e){for(var n=new rt;e.hasMoreCharacters();){var r=e.getCurrentChar();e.pos++;var i=this.encodeChar(r,n),o=Math.floor(n.length()/3)*2,a=e.getCodewordCount()+o;e.updateSymbolInfo(a);var s=e.getSymbolInfo().getDataCapacity()-a;if(!e.hasMoreCharacters()){var c=new rt;for(n.length()%3===2&&s!==2&&(i=this.backtrackOneCharacter(e,n,c,i));n.length()%3===1&&(i>3||s!==1);)i=this.backtrackOneCharacter(e,n,c,i);break}var u=n.length();if(u%3===0){var l=Pr.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(l!==this.getEncodingMode()){e.signalEncoderChange(St);break}}}this.handleEOD(e,n)},t.prototype.backtrackOneCharacter=function(e,n,r,i){var o=n.length(),a=n.toString().substring(0,o-i);n.setLengthToZero(),n.append(a),e.pos--;var s=e.getCurrentChar();return i=this.encodeChar(s,r),e.resetSymbolInfo(),i},t.prototype.writeNextTriplet=function(e,n){e.writeCodewords(this.encodeToCodewords(n.toString()));var r=n.toString().substring(3);n.setLengthToZero(),n.append(r)},t.prototype.handleEOD=function(e,n){var r=Math.floor(n.length()/3*2),i=n.length()%3,o=e.getCodewordCount()+r;e.updateSymbolInfo(o);var a=e.getSymbolInfo().getDataCapacity()-o;if(i===2){for(n.append("\0");n.length()>=3;)this.writeNextTriplet(e,n);e.hasMoreCharacters()&&e.writeCodeword(od)}else if(a===1&&i===1){for(;n.length()>=3;)this.writeNextTriplet(e,n);e.hasMoreCharacters()&&e.writeCodeword(od),e.pos--}else if(i===0){for(;n.length()>=3;)this.writeNextTriplet(e,n);(a>0||e.hasMoreCharacters())&&e.writeCodeword(od)}else throw new Error("Unexpected case. Please report!");e.signalEncoderChange(St)},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-65+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))return n.append(1),n.append(e-91+22),2;if(e<=127)return n.append(2),n.append(e-96),2;n.append(1+"");var r=2;return r+=this.encodeChar(e-128,n),r},t.prototype.encodeToCodewords=function(e){var n=1600*e.charCodeAt(0)+40*e.charCodeAt(1)+e.charCodeAt(2)+1,r=n/256,i=n%256,o=new rt;return o.append(r),o.append(i),o.toString()},t}(),OV=function(){function t(){}return t.prototype.getEncodingMode=function(){return gn},t.prototype.encode=function(e){for(var n=new rt;e.hasMoreCharacters();){var r=e.getCurrentChar();this.encodeChar(r,n),e.pos++;var i=n.length();if(i>=4){e.writeCodewords(this.encodeToCodewords(n.toString()));var o=n.toString().substring(4);n.setLengthToZero(),n.append(o);var a=Pr.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(a!==this.getEncodingMode()){e.signalEncoderChange(St);break}}}n.append(Lt.getCharAt(31)),this.handleEOD(e,n)},t.prototype.handleEOD=function(e,n){try{var r=n.length();if(r===0)return;if(r===1){e.updateSymbolInfo();var i=e.getSymbolInfo().getDataCapacity()-e.getCodewordCount(),o=e.getRemainingCharacters();if(o>i&&(e.updateSymbolInfo(e.getCodewordCount()+1),i=e.getSymbolInfo().getDataCapacity()-e.getCodewordCount()),o<=i&&i<=2)return}if(r>4)throw new Error("Count must not exceed 4");var a=r-1,s=this.encodeToCodewords(n.toString()),c=!e.hasMoreCharacters(),u=c&&a<=2;if(a<=2){e.updateSymbolInfo(e.getCodewordCount()+a);var i=e.getSymbolInfo().getDataCapacity()-e.getCodewordCount();i>=3&&(u=!1,e.updateSymbolInfo(e.getCodewordCount()+s.length))}u?(e.resetSymbolInfo(),e.pos-=a):e.writeCodewords(s)}finally{e.signalEncoderChange(St)}},t.prototype.encodeChar=function(e,n){e>=" ".charCodeAt(0)&&e<="?".charCodeAt(0)?n.append(e):e>="@".charCodeAt(0)&&e<="^".charCodeAt(0)?n.append(Lt.getCharAt(e-64)):Pr.illegalCharacter(Lt.getCharAt(e))},t.prototype.encodeToCodewords=function(e){var n=e.length;if(n===0)throw new Error("StringBuilder must not be empty");var r=e.charAt(0).charCodeAt(0),i=n>=2?e.charAt(1).charCodeAt(0):0,o=n>=3?e.charAt(2).charCodeAt(0):0,a=n>=4?e.charAt(3).charCodeAt(0):0,s=(r<<18)+(i<<12)+(o<<6)+a,c=s>>16&255,u=s>>8&255,l=s&255,h=new rt;return h.append(c),n>=2&&h.append(u),n>=3&&h.append(l),h.toString()},t}(),EV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),IV=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},gt=function(){function t(e,n,r,i,o,a,s,c){s===void 0&&(s=0),c===void 0&&(c=0),this.rectangular=e,this.dataCapacity=n,this.errorCodewords=r,this.matrixWidth=i,this.matrixHeight=o,this.dataRegions=a,this.rsBlockData=s,this.rsBlockError=c}return t.lookup=function(e,n,r,i,o){var a,s;n===void 0&&(n=0),r===void 0&&(r=null),i===void 0&&(i=null),o===void 0&&(o=!0);try{for(var c=IV(FV),u=c.next();!u.done;u=c.next()){var l=u.value;if(!(n===1&&l.rectangular)&&!(n===2&&!l.rectangular)&&!(r!=null&&(l.getSymbolWidth()<r.getWidth()||l.getSymbolHeight()<r.getHeight()))&&!(i!=null&&(l.getSymbolWidth()>i.getWidth()||l.getSymbolHeight()>i.getHeight()))&&e<=l.dataCapacity)return l}}catch(h){a={error:h}}finally{try{u&&!u.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}if(o)throw new Error("Can't find a symbol arrangement that matches the message. Data codewords: "+e);return null},t.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")}},t.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")}},t.prototype.getSymbolDataWidth=function(){return this.getHorizontalDataRegions()*this.matrixWidth},t.prototype.getSymbolDataHeight=function(){return this.getVerticalDataRegions()*this.matrixHeight},t.prototype.getSymbolWidth=function(){return this.getSymbolDataWidth()+this.getHorizontalDataRegions()*2},t.prototype.getSymbolHeight=function(){return this.getSymbolDataHeight()+this.getVerticalDataRegions()*2},t.prototype.getCodewordCount=function(){return this.dataCapacity+this.errorCodewords},t.prototype.getInterleavedBlockCount=function(){return this.rsBlockData?this.dataCapacity/this.rsBlockData:1},t.prototype.getDataCapacity=function(){return this.dataCapacity},t.prototype.getErrorCodewords=function(){return this.errorCodewords},t.prototype.getDataLengthForInterleavedBlock=function(e){return this.rsBlockData},t.prototype.getErrorLengthForInterleavedBlock=function(e){return this.rsBlockError},t}(),NV=function(t){EV(e,t);function e(){return t.call(this,!1,1558,620,22,22,36,-1,62)||this}return e.prototype.getInterleavedBlockCount=function(){return 10},e.prototype.getDataLengthForInterleavedBlock=function(n){return n<=8?156:155},e}(gt),FV=[new gt(!1,3,5,8,8,1),new gt(!1,5,7,10,10,1),new gt(!0,5,7,16,6,1),new gt(!1,8,10,12,12,1),new gt(!0,10,11,14,6,2),new gt(!1,12,12,14,14,1),new gt(!0,16,14,24,10,1),new gt(!1,18,14,16,16,1),new gt(!1,22,18,18,18,1),new gt(!0,22,18,16,10,2),new gt(!1,30,20,20,20,1),new gt(!0,32,24,16,14,2),new gt(!1,36,24,22,22,1),new gt(!1,44,28,24,24,1),new gt(!0,49,28,22,14,2),new gt(!1,62,36,14,14,4),new gt(!1,86,42,16,16,4),new gt(!1,114,48,18,18,4),new gt(!1,144,56,20,20,4),new gt(!1,174,68,22,22,4),new gt(!1,204,84,24,24,4,102,42),new gt(!1,280,112,14,14,16,140,56),new gt(!1,368,144,16,16,16,92,36),new gt(!1,456,192,18,18,16,114,48),new gt(!1,576,224,20,20,16,144,56),new gt(!1,696,272,22,22,16,174,68),new gt(!1,816,336,24,24,16,136,56),new gt(!1,1050,408,18,18,36,175,68),new gt(!1,1304,496,20,20,36,163,62),new NV],PV=function(){function t(e){this.msg=e,this.pos=0,this.skipAtEnd=0;for(var n=e.split("").map(function(s){return s.charCodeAt(0)}),r=new rt,i=0,o=n.length;i<o;i++){var a=String.fromCharCode(n[i]&255);if(a==="?"&&e.charAt(i)!=="?")throw new Error("Message contains characters outside ISO-8859-1 encoding.");r.append(a)}this.msg=r.toString(),this.shape=0,this.codewords=new rt,this.newEncoding=-1}return t.prototype.setSymbolShape=function(e){this.shape=e},t.prototype.setSizeConstraints=function(e,n){this.minSize=e,this.maxSize=n},t.prototype.getMessage=function(){return this.msg},t.prototype.setSkipAtEnd=function(e){this.skipAtEnd=e},t.prototype.getCurrentChar=function(){return this.msg.charCodeAt(this.pos)},t.prototype.getCurrent=function(){return this.msg.charCodeAt(this.pos)},t.prototype.getCodewords=function(){return this.codewords},t.prototype.writeCodewords=function(e){this.codewords.append(e)},t.prototype.writeCodeword=function(e){this.codewords.append(e)},t.prototype.getCodewordCount=function(){return this.codewords.length()},t.prototype.getNewEncoding=function(){return this.newEncoding},t.prototype.signalEncoderChange=function(e){this.newEncoding=e},t.prototype.resetEncoderSignal=function(){this.newEncoding=-1},t.prototype.hasMoreCharacters=function(){return this.pos<this.getTotalMessageCharCount()},t.prototype.getTotalMessageCharCount=function(){return this.msg.length-this.skipAtEnd},t.prototype.getRemainingCharacters=function(){return this.getTotalMessageCharCount()-this.pos},t.prototype.getSymbolInfo=function(){return this.symbolInfo},t.prototype.updateSymbolInfo=function(e){e===void 0&&(e=this.getCodewordCount()),(this.symbolInfo==null||e>this.symbolInfo.getDataCapacity())&&(this.symbolInfo=gt.lookup(e,this.shape,this.minSize,this.maxSize,!0))},t.prototype.resetSymbolInfo=function(){this.symbolInfo=null},t}(),LV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),MV=function(t){LV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getEncodingMode=function(){return an},e.prototype.encode=function(n){for(var r=new rt;n.hasMoreCharacters();){var i=n.getCurrentChar();n.pos++,this.encodeChar(i,r);var o=r.length();if(o%3===0){this.writeNextTriplet(n,r);var a=Pr.lookAheadTest(n.getMessage(),n.pos,this.getEncodingMode());if(a!==this.getEncodingMode()){n.signalEncoderChange(St);break}}}this.handleEOD(n,r)},e.prototype.encodeChar=function(n,r){switch(n){case 13:r.append(0);break;case"*".charCodeAt(0):r.append(1);break;case">".charCodeAt(0):r.append(2);break;case" ".charCodeAt(0):r.append(3);break;default:n>="0".charCodeAt(0)&&n<="9".charCodeAt(0)?r.append(n-48+4):n>="A".charCodeAt(0)&&n<="Z".charCodeAt(0)?r.append(n-65+14):Pr.illegalCharacter(Lt.getCharAt(n));break}return 1},e.prototype.handleEOD=function(n,r){n.updateSymbolInfo();var i=n.getSymbolInfo().getDataCapacity()-n.getCodewordCount(),o=r.length();n.pos-=o,(n.getRemainingCharacters()>1||i>1||n.getRemainingCharacters()!==i)&&n.writeCodeword(SV),n.getNewEncoding()<0&&n.signalEncoderChange(St)},e}(t1),CV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),AV=function(t){CV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getEncodingMode=function(){return kn},e.prototype.encodeChar=function(n,r){if(n===" ".charCodeAt(0))return r.append(3),1;if(n>="0".charCodeAt(0)&&n<="9".charCodeAt(0))return r.append(n-48+4),1;if(n>="a".charCodeAt(0)&&n<="z".charCodeAt(0))return r.append(n-97+14),1;if(n<" ".charCodeAt(0))return r.append(0),r.append(n),2;if(n<="/".charCodeAt(0))return r.append(1),r.append(n-33),2;if(n<="@".charCodeAt(0))return r.append(1),r.append(n-58+15),2;if(n>="[".charCodeAt(0)&&n<="_".charCodeAt(0))return r.append(1),r.append(n-91+22),2;if(n==="`".charCodeAt(0))return r.append(2),r.append(0),2;if(n<="Z".charCodeAt(0))return r.append(2),r.append(n-65+1),2;if(n<=127)return r.append(2),r.append(n-123+27),2;r.append(1+"");var i=2;return i+=this.encodeChar(n-128,r),i},e}(t1),UV=function(){function t(){}return t.randomize253State=function(e){var n=149*e%253+1,r=Mm+n;return r<=254?r:r-254},t.encodeHighLevel=function(e,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=null),i===void 0&&(i=null),o===void 0&&(o=!1);var a=new t1,s=[new DV,a,new AV,new MV,new OV,new _V],c=new PV(e);c.setSymbolShape(n),c.setSizeConstraints(r,i),e.startsWith(Cm)&&e.endsWith(Um)?(c.writeCodeword(vV),c.setSkipAtEnd(2),c.pos+=Cm.length):e.startsWith(Am)&&e.endsWith(Um)&&(c.writeCodeword(bV),c.setSkipAtEnd(2),c.pos+=Am.length);var u=St;for(o&&(a.encodeMaximal(c),u=c.getNewEncoding(),c.resetEncoderSignal());c.hasMoreCharacters();)s[u].encode(c),c.getNewEncoding()>=0&&(u=c.getNewEncoding(),c.resetEncoderSignal());var l=c.getCodewordCount();c.updateSymbolInfo();var h=c.getSymbolInfo().getDataCapacity();l<h&&u!==St&&u!==En&&u!==gn&&c.writeCodeword("\xFE");var f=c.getCodewords();for(f.length()<h&&f.append(Mm);f.length()<h;)f.append(this.randomize253State(f.length()+1));return c.getCodewords().toString()},t.lookAheadTest=function(e,n,r){var i=this.lookAheadTestIntern(e,n,r);if(r===an&&i===an){for(var o=Math.min(n+3,e.length),a=n;a<o;a++)if(!this.isNativeX12(e.charCodeAt(a)))return St}else if(r===gn&&i===gn){for(var o=Math.min(n+4,e.length),a=n;a<o;a++)if(!this.isNativeEDIFACT(e.charCodeAt(a)))return St}return i},t.lookAheadTestIntern=function(e,n,r){if(n>=e.length)return r;var i;r===St?i=[0,1,1,1,1,1.25]:(i=[1,2,2,2,2,2.25],i[r]=0);for(var o=0,a=new Uint8Array(6),s=[];;){if(n+o===e.length){un.fill(a,0),un.fill(s,0);var c=this.findMinimums(i,s,$t.MAX_VALUE,a),u=this.getMinimumCount(a);if(s[St]===c)return St;if(u===1){if(a[En]>0)return En;if(a[gn]>0)return gn;if(a[kn]>0)return kn;if(a[an]>0)return an}return xn}var l=e.charCodeAt(n+o);if(o++,this.isDigit(l)?i[St]+=.5:this.isExtendedASCII(l)?(i[St]=Math.ceil(i[St]),i[St]+=2):(i[St]=Math.ceil(i[St]),i[St]++),this.isNativeC40(l)?i[xn]+=2/3:this.isExtendedASCII(l)?i[xn]+=8/3:i[xn]+=4/3,this.isNativeText(l)?i[kn]+=2/3:this.isExtendedASCII(l)?i[kn]+=8/3:i[kn]+=4/3,this.isNativeX12(l)?i[an]+=2/3:this.isExtendedASCII(l)?i[an]+=13/3:i[an]+=10/3,this.isNativeEDIFACT(l)?i[gn]+=3/4:this.isExtendedASCII(l)?i[gn]+=17/4:i[gn]+=13/4,this.isSpecialB256(l)?i[En]+=4:i[En]++,o>=4){if(un.fill(a,0),un.fill(s,0),this.findMinimums(i,s,$t.MAX_VALUE,a),s[St]<this.min(s[En],s[xn],s[kn],s[an],s[gn]))return St;if(s[En]<s[St]||s[En]+1<this.min(s[xn],s[kn],s[an],s[gn]))return En;if(s[gn]+1<this.min(s[En],s[xn],s[kn],s[an],s[St]))return gn;if(s[kn]+1<this.min(s[En],s[xn],s[gn],s[an],s[St]))return kn;if(s[an]+1<this.min(s[En],s[xn],s[gn],s[kn],s[St]))return an;if(s[xn]+1<this.min(s[St],s[En],s[gn],s[kn])){if(s[xn]<s[an])return xn;if(s[xn]===s[an]){for(var h=n+o+1;h<e.length;){var f=e.charCodeAt(h);if(this.isX12TermSep(f))return an;if(!this.isNativeX12(f))break;h++}return xn}}}}},t.min=function(e,n,r,i,o){var a=Math.min(e,Math.min(n,Math.min(r,i)));return o===void 0?a:Math.min(a,o)},t.findMinimums=function(e,n,r,i){for(var o=0;o<6;o++){var a=n[o]=Math.ceil(e[o]);r>a&&(r=a,un.fill(i,0)),r===a&&(i[o]=i[o]+1)}return r},t.getMinimumCount=function(e){for(var n=0,r=0;r<6;r++)n+=e[r];return n||0},t.isDigit=function(e){return e>="0".charCodeAt(0)&&e<="9".charCodeAt(0)},t.isExtendedASCII=function(e){return e>=128&&e<=255},t.isNativeC40=function(e){return e===" ".charCodeAt(0)||e>="0".charCodeAt(0)&&e<="9".charCodeAt(0)||e>="A".charCodeAt(0)&&e<="Z".charCodeAt(0)},t.isNativeText=function(e){return e===" ".charCodeAt(0)||e>="0".charCodeAt(0)&&e<="9".charCodeAt(0)||e>="a".charCodeAt(0)&&e<="z".charCodeAt(0)},t.isNativeX12=function(e){return this.isX12TermSep(e)||e===" ".charCodeAt(0)||e>="0".charCodeAt(0)&&e<="9".charCodeAt(0)||e>="A".charCodeAt(0)&&e<="Z".charCodeAt(0)},t.isX12TermSep=function(e){return e===13||e==="*".charCodeAt(0)||e===">".charCodeAt(0)},t.isNativeEDIFACT=function(e){return e>=" ".charCodeAt(0)&&e<="^".charCodeAt(0)},t.isSpecialB256=function(e){return!1},t.determineConsecutiveDigitCount=function(e,n){n===void 0&&(n=0);for(var r=e.length,i=n;i<r&&this.isDigit(e.charCodeAt(i));)i++;return i-n},t.illegalCharacter=function(e){var n=$t.toHexString(e.charCodeAt(0));throw n="0000".substring(0,4-n.length)+n,new Error("Illegal character: "+e+" (0x"+n+")")},t}(),Pr=UV,ad=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Wm=function(){function t(e){this.charset=e,this.name=e.name}return t.prototype.canEncode=function(e){try{return _r.encode(e,this.charset)!=null}catch{return!1}},t}(),WV=function(){function t(e,n,r){var i,o,a,s,c,u;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(O){return new Wm(fV.forName(O))}),this.encoders=[];var l=[];l.push(new Wm(pV.ISO_8859_1));for(var h=n!=null&&n.name.startsWith("UTF"),f=0;f<e.length;f++){var d=!1;try{for(var p=(i=void 0,ad(l)),g=p.next();!g.done;g=p.next()){var y=g.value,R=e.charAt(f),m=R.charCodeAt(0);if(m===r||y.canEncode(R)){d=!0;break}}}catch(O){i={error:O}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}if(!d)try{for(var v=(a=void 0,ad(this.ENCODERS)),x=v.next();!x.done;x=v.next()){var y=x.value;if(y.canEncode(e.charAt(f))){l.push(y),d=!0;break}}}catch(O){a={error:O}}finally{try{x&&!x.done&&(s=v.return)&&s.call(v)}finally{if(a)throw a.error}}d||(h=!0)}if(l.length===1&&!h)this.encoders=[l[0]];else{this.encoders=[];var _=0;try{for(var E=ad(l),N=E.next();!N.done;N=E.next()){var y=N.value;this.encoders[_++]=y}}catch(O){c={error:O}}finally{try{N&&!N.done&&(u=E.return)&&u.call(E)}finally{if(c)throw c.error}}}var U=-1;if(n!=null){for(var f=0;f<this.encoders.length;f++)if(this.encoders[f]!=null&&n.name===this.encoders[f].name){U=f;break}}this.priorityEncoderIndex=U}return t.prototype.length=function(){return this.encoders.length},t.prototype.getCharsetName=function(e){if(!(e<this.length()))throw new Error("index must be less than length");return this.encoders[e].name},t.prototype.getCharset=function(e){if(!(e<this.length()))throw new Error("index must be less than length");return this.encoders[e].charset},t.prototype.getECIValue=function(e){return this.encoders[e].charset.getValueIdentifier()},t.prototype.getPriorityEncoderIndex=function(){return this.priorityEncoderIndex},t.prototype.canEncode=function(e,n){if(!(n<this.length()))throw new Error("index must be less than length");return!0},t.prototype.encode=function(e,n){if(!(n<this.length()))throw new Error("index must be less than length");return _r.encode(Lt.getCharAt(e),this.encoders[n].name)},t}(),XV=3,VV=function(){function t(e,n,r){this.fnc1=r;var i=new WV(e,n,r);if(i.length()===1)for(var o=0;o<this.bytes.length;o++){var a=e.charAt(o).charCodeAt(0);this.bytes[o]=a===r?1e3:a}else this.bytes=this.encodeMinimally(e,i,r)}return t.prototype.getFNC1Character=function(){return this.fnc1},t.prototype.length=function(){return this.bytes.length},t.prototype.haveNCharacters=function(e,n){if(e+n-1>=this.bytes.length)return!1;for(var r=0;r<n;r++)if(this.isECI(e+r))return!1;return!0},t.prototype.charAt=function(e){if(e<0||e>=this.length())throw new Error(""+e);if(this.isECI(e))throw new Error("value at "+e+" is not a character but an ECI");return this.isFNC1(e)?this.fnc1:this.bytes[e]},t.prototype.subSequence=function(e,n){if(e<0||e>n||n>this.length())throw new Error(""+e);for(var r=new rt,i=e;i<n;i++){if(this.isECI(i))throw new Error("value at "+i+" is not a character but an ECI");r.append(this.charAt(i))}return r.toString()},t.prototype.isECI=function(e){if(e<0||e>=this.length())throw new Error(""+e);return this.bytes[e]>255&&this.bytes[e]<=999},t.prototype.isFNC1=function(e){if(e<0||e>=this.length())throw new Error(""+e);return this.bytes[e]===1e3},t.prototype.getECIValue=function(e){if(e<0||e>=this.length())throw new Error(""+e);if(!this.isECI(e))throw new Error("value at "+e+" is not an ECI but a character");return this.bytes[e]-256},t.prototype.addEdge=function(e,n,r){(e[n][r.encoderIndex]==null||e[n][r.encoderIndex].cachedTotalSize>r.cachedTotalSize)&&(e[n][r.encoderIndex]=r)},t.prototype.addEdges=function(e,n,r,i,o,a){var s=e.charAt(i).charCodeAt(0),c=0,u=n.length();n.getPriorityEncoderIndex()>=0&&(s===a||n.canEncode(s,n.getPriorityEncoderIndex()))&&(c=n.getPriorityEncoderIndex(),u=c+1);for(var l=c;l<u;l++)(s===a||n.canEncode(s,l))&&this.addEdge(r,i+1,new Xm(s,n,l,o,a))},t.prototype.encodeMinimally=function(e,n,r){var i=e.length,o=new Xm[i+1][n.length()];this.addEdges(e,n,o,0,null,r);for(var a=1;a<=i;a++){for(var s=0;s<n.length();s++)o[a][s]!=null&&a<i&&this.addEdges(e,n,o,a,o[a][s],r);for(var s=0;s<n.length();s++)o[a-1][s]=null}for(var c=-1,u=$t.MAX_VALUE,s=0;s<n.length();s++)if(o[i][s]!=null){var l=o[i][s];l.cachedTotalSize<u&&(u=l.cachedTotalSize,c=s)}if(c<0)throw new Error('Failed to encode "'+e+'"');for(var h=[],f=o[i][c];f!=null;){if(f.isFNC1())h.unshift(1e3);else for(var d=n.encode(f.c,f.encoderIndex),a=d.length-1;a>=0;a--)h.unshift(d[a]&255);var p=f.previous===null?0:f.previous.encoderIndex;p!==f.encoderIndex&&h.unshift(256+n.getECIValue(f.encoderIndex)),f=f.previous}for(var g=[],a=0;a<g.length;a++)g[a]=h[a];return g},t}(),Xm=function(){function t(e,n,r,i,o){this.c=e,this.encoderSet=n,this.encoderIndex=r,this.previous=i,this.fnc1=o,this.c=e===o?1e3:e;var a=this.isFNC1()?1:n.encode(e,r).length,s=i===null?0:i.encoderIndex;s!==r&&(a+=XV),i!=null&&(a+=i.cachedTotalSize),this.cachedTotalSize=a}return t.prototype.isFNC1=function(){return this.c===1e3},t}(),YV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();globalThis&&globalThis.__values;var BV=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o};globalThis&&globalThis.__spread;var Vm;(function(t){t[t.ASCII=0]="ASCII",t[t.C40=1]="C40",t[t.TEXT=2]="TEXT",t[t.X12=3]="X12",t[t.EDF=4]="EDF",t[t.B256=5]="B256"})(Vm||(Vm={}));(function(t){YV(e,t);function e(n,r,i,o,a){var s=t.call(this,n,r,i)||this;return s.shape=o,s.macroId=a,s}return e.prototype.getMacroId=function(){return this.macroId},e.prototype.getShapeHint=function(){return this.shape},e})(VV);var kV=function(){function t(e){this.previous=e}return t.prototype.getPrevious=function(){return this.previous},t}(),ZV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Eb=function(t){ZV(e,t);function e(n,r,i){var o=t.call(this,n)||this;return o.value=r,o.bitCount=i,o}return e.prototype.appendTo=function(n,r){n.appendBits(this.value,this.bitCount)},e.prototype.add=function(n,r){return new e(this,n,r)},e.prototype.addBinaryShift=function(n,r){return console.warn("addBinaryShift on SimpleToken, this simply returns a copy of this token"),new e(this,n,r)},e.prototype.toString=function(){var n=this.value&(1<<this.bitCount)-1;return n|=1<<this.bitCount,"<"+$t.toBinaryString(n|1<<this.bitCount).substring(1)+">"},e}(kV),QV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){QV(e,t);function e(n,r,i){var o=t.call(this,n,0,0)||this;return o.binaryShiftStart=r,o.binaryShiftByteCount=i,o}return e.prototype.appendTo=function(n,r){for(var i=0;i<this.binaryShiftByteCount;i++)(i===0||i===31&&this.binaryShiftByteCount<=62)&&(n.appendBits(31,5),this.binaryShiftByteCount>62?n.appendBits(this.binaryShiftByteCount-31,16):i===0?n.appendBits(Math.min(this.binaryShiftByteCount,31),5):n.appendBits(this.binaryShiftByteCount-31,5)),n.appendBits(r[this.binaryShiftStart+i],8)},e.prototype.addBinaryShift=function(n,r){return new e(this,n,r)},e.prototype.toString=function(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"},e})(Eb);var ws=0,Cu=1,na=2,Ib=3,Rs=4;new Eb(null,0,0);var KV=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function HV(t){var e,n;try{for(var r=KV(t),i=r.next();!i.done;i=r.next()){var o=i.value;un.fill(o,-1)}}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return t[ws][Rs]=0,t[Cu][Rs]=0,t[Cu][ws]=28,t[Ib][Rs]=0,t[na][Rs]=0,t[na][ws]=15,t}HV(un.createInt32Array(6,6));globalThis&&globalThis.__values;function GV(t){var e=Lt.getCharCode(" "),n=Lt.getCharCode("."),r=Lt.getCharCode(",");t[ws][e]=1;for(var i=Lt.getCharCode("Z"),o=Lt.getCharCode("A"),a=o;a<=i;a++)t[ws][a]=a-o+2;t[Cu][e]=1;for(var s=Lt.getCharCode("z"),c=Lt.getCharCode("a"),a=c;a<=s;a++)t[Cu][a]=a-c+2;t[na][e]=1;for(var u=Lt.getCharCode("9"),l=Lt.getCharCode("0"),a=l;a<=u;a++)t[na][a]=a-l+2;t[na][r]=12,t[na][n]=13;for(var h=["\0"," ","","","","","","","\x07","\b"," ",`
|
|
`,"\v","\f","\r","\x1B","","","","","@","\\","^","_","`","|","~","\x7F"],f=0;f<h.length;f++)t[Ib][Lt.getCharCode(h[f])]=f;for(var d=["\0","\r","\0","\0","\0","\0","!","'","#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}"],f=0;f<d.length;f++)Lt.getCharCode(d[f])>0&&(t[Rs][Lt.getCharCode(d[f])]=f);return t}GV(un.createInt32Array(5,256));globalThis&&globalThis.__values;globalThis&&globalThis.__values;var JV=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zV=function(t){JV(e,t);function e(n){var r=t.call(this,n.width,n.height)||this;return r.canvas=n,r.tempCanvasElement=null,r.buffer=e.makeBufferFromCanvasImageData(n),r}return e.makeBufferFromCanvasImageData=function(n){var r;try{r=n.getContext("2d",{willReadFrequently:!0})}catch{r=n.getContext("2d")}if(!r)throw new Error("Couldn't get canvas context.");var i=r.getImageData(0,0,n.width,n.height);return e.toGrayscaleBuffer(i.data,n.width,n.height)},e.toGrayscaleBuffer=function(n,r,i){for(var o=new Uint8ClampedArray(r*i),a=0,s=0,c=n.length;a<c;a+=4,s++){var u=void 0,l=n[a+3];if(l===0)u=255;else{var h=n[a],f=n[a+1],d=n[a+2];u=306*h+601*f+117*d+512>>10}o[s]=u}return o},e.prototype.getRow=function(n,r){if(n<0||n>=this.getHeight())throw new Je("Requested row is outside the image: "+n);var i=this.getWidth(),o=n*i;return r===null?r=this.buffer.slice(o,o+i):(r.length<i&&(r=new Uint8ClampedArray(i)),r.set(this.buffer.slice(o,o+i))),r},e.prototype.getMatrix=function(){return this.buffer},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(n,r,i,o){return t.prototype.crop.call(this,n,r,i,o),this},e.prototype.isRotateSupported=function(){return!0},e.prototype.rotateCounterClockwise=function(){return this.rotate(-90),this},e.prototype.rotateCounterClockwise45=function(){return this.rotate(-45),this},e.prototype.invert=function(){return new vl(this)},e.prototype.getTempCanvasElement=function(){if(this.tempCanvasElement===null){var n=this.canvas.ownerDocument.createElement("canvas");n.width=this.canvas.width,n.height=this.canvas.height,this.tempCanvasElement=n}return this.tempCanvasElement},e.prototype.rotate=function(n){var r=this.getTempCanvasElement();if(!r)throw new Error("Could not create a Canvas element.");var i=n*e.DEGREE_TO_RADIANS,o=this.canvas.width,a=this.canvas.height,s=Math.ceil(Math.abs(Math.cos(i))*o+Math.abs(Math.sin(i))*a),c=Math.ceil(Math.abs(Math.sin(i))*o+Math.abs(Math.cos(i))*a);r.width=s,r.height=c;var u=r.getContext("2d");if(!u)throw new Error("Could not create a Canvas Context element.");return u.translate(s/2,c/2),u.rotate(i),u.drawImage(this.canvas,o/-2,a/-2),this.buffer=e.makeBufferFromCanvasImageData(r),this},e.DEGREE_TO_RADIANS=Math.PI/180,e}(lc);function Nb(){return typeof navigator!="undefined"}function $V(){return Nb()&&!!navigator.mediaDevices}function jV(){return!!($V()&&navigator.mediaDevices.enumerateDevices)}var ra=globalThis&&globalThis.__assign||function(){return ra=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},ra.apply(this,arguments)},Yt=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{u(r.next(l))}catch(h){a(h)}}function c(l){try{u(r.throw(l))}catch(h){a(h)}}function u(l){l.done?o(l.value):i(l.value).then(s,c)}u((r=r.apply(t,e||[])).next())})},Bt=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(l){return c([u,l])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(l){u=[6,l],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},sd=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},qV={delayBetweenScanAttempts:500,delayBetweenScanSuccess:500,tryPlayVideoTimeout:5e3},Ya=function(){function t(e,n,r){n===void 0&&(n=new Map),r===void 0&&(r={}),this.reader=e,this.hints=n,this.options=ra(ra({},qV),r)}return Object.defineProperty(t.prototype,"possibleFormats",{set:function(e){this.hints.set(Ct.POSSIBLE_FORMATS,e)},enumerable:!1,configurable:!0}),t.addVideoSource=function(e,n){try{e.srcObject=n}catch{console.error("got interrupted by new loading request")}},t.mediaStreamSetTorch=function(e,n){return Yt(this,void 0,void 0,function(){return Bt(this,function(r){switch(r.label){case 0:return[4,e.applyConstraints({advanced:[{fillLightMode:n?"flash":"off",torch:!!n}]})];case 1:return r.sent(),[2]}})})},t.mediaStreamIsTorchCompatible=function(e){var n,r,i=e.getVideoTracks();try{for(var o=sd(i),a=o.next();!a.done;a=o.next()){var s=a.value;if(t.mediaStreamIsTorchCompatibleTrack(s))return!0}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1},t.mediaStreamIsTorchCompatibleTrack=function(e){try{var n=e.getCapabilities();return"torch"in n}catch(r){return console.error(r),console.warn("Your browser may be not fully compatible with WebRTC and/or ImageCapture specs. Torch will not be available."),!1}},t.isVideoPlaying=function(e){return e.currentTime>0&&!e.paused&&e.readyState>2},t.getMediaElement=function(e,n){var r=document.getElementById(e);if(!r)throw new Jt("element with id '".concat(e,"' not found"));if(r.nodeName.toLowerCase()!==n.toLowerCase())throw new Jt("element with id '".concat(e,"' must be an ").concat(n," element"));return r},t.createVideoElement=function(e){if(e instanceof HTMLVideoElement)return e;if(typeof e=="string")return t.getMediaElement(e,"video");if(!e&&typeof document!="undefined"){var n=document.createElement("video");return n.width=200,n.height=200,n}throw new Error("Couldn't get videoElement from videoSource!")},t.prepareImageElement=function(e){if(e instanceof HTMLImageElement)return e;if(typeof e=="string")return t.getMediaElement(e,"img");if(typeof e=="undefined"){var n=document.createElement("img");return n.width=200,n.height=200,n}throw new Error("Couldn't get imageElement from imageSource!")},t.prepareVideoElement=function(e){var n=t.createVideoElement(e);return n.setAttribute("autoplay","true"),n.setAttribute("muted","true"),n.setAttribute("playsinline","true"),n},t.isImageLoaded=function(e){return!(!e.complete||e.naturalWidth===0)},t.createBinaryBitmapFromCanvas=function(e){var n=new zV(e),r=new gb(n);return new pb(r)},t.drawImageOnCanvas=function(e,n){e.drawImage(n,0,0)},t.getMediaElementDimensions=function(e){if(e instanceof HTMLVideoElement)return{height:e.videoHeight,width:e.videoWidth};if(e instanceof HTMLImageElement)return{height:e.naturalHeight||e.height,width:e.naturalWidth||e.width};throw new Error("Couldn't find the Source's dimensions!")},t.createCaptureCanvas=function(e){if(!e)throw new Jt("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 n=document.createElement("canvas"),r=t.getMediaElementDimensions(e),i=r.width,o=r.height;return n.style.width=i+"px",n.style.height=o+"px",n.width=i,n.height=o,n},t.tryPlayVideo=function(e){return Yt(this,void 0,void 0,function(){var n;return Bt(this,function(r){switch(r.label){case 0:if(e!=null&&e.ended)return console.error("Trying to play video that has ended."),[2,!1];if(t.isVideoPlaying(e))return console.warn("Trying to play video that is already playing."),[2,!0];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.play()];case 2:return r.sent(),[2,!0];case 3:return n=r.sent(),console.warn("It was not possible to play the video.",n),[2,!1];case 4:return[2]}})})},t.createCanvasFromMediaElement=function(e){var n=t.createCaptureCanvas(e),r=n.getContext("2d");if(!r)throw new Error("Couldn't find Canvas 2D Context.");return t.drawImageOnCanvas(r,e),n},t.createBinaryBitmapFromMediaElem=function(e){var n=t.createCanvasFromMediaElement(e);return t.createBinaryBitmapFromCanvas(n)},t.destroyImageElement=function(e){e.src="",e.removeAttribute("src"),e=void 0},t.listVideoInputDevices=function(){return Yt(this,void 0,void 0,function(){var e,n,r,i,o,a,s,c,u,l,h,f;return Bt(this,function(d){switch(d.label){case 0:if(!Nb())throw new Error("Can't enumerate devices, navigator is not present.");if(!jV())throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:e=d.sent(),n=[];try{for(r=sd(e),i=r.next();!i.done;i=r.next())o=i.value,a=o.kind==="video"?"videoinput":o.kind,a==="videoinput"&&(s=o.deviceId||o.id,c=o.label||"Video device ".concat(n.length+1),u=o.groupId,l={deviceId:s,label:c,kind:a,groupId:u},n.push(l))}catch(p){h={error:p}}finally{try{i&&!i.done&&(f=r.return)&&f.call(r)}finally{if(h)throw h.error}}return[2,n]}})})},t.findDeviceById=function(e){return Yt(this,void 0,void 0,function(){var n;return Bt(this,function(r){switch(r.label){case 0:return[4,t.listVideoInputDevices()];case 1:return n=r.sent(),n?[2,n.find(function(i){return i.deviceId===e})]:[2]}})})},t.cleanVideoSource=function(e){if(!!e){try{e.srcObject=null}catch{e.src=""}e&&e.removeAttribute("src")}},t.releaseAllStreams=function(){t.streamTracker.length!==0&&t.streamTracker.forEach(function(e){e.getTracks().forEach(function(n){return n.stop()})}),t.streamTracker=[]},t.playVideoOnLoadAsync=function(e,n){return Yt(this,void 0,void 0,function(){var r;return Bt(this,function(i){switch(i.label){case 0:return[4,t.tryPlayVideo(e)];case 1:return r=i.sent(),r?[2,!0]:[2,new Promise(function(o,a){var s=setTimeout(function(){t.isVideoPlaying(e)||(a(!1),e.removeEventListener("canplay",c))},n),c=function(){t.tryPlayVideo(e).then(function(u){clearTimeout(s),e.removeEventListener("canplay",c),o(u)})};e.addEventListener("canplay",c)})]}})})},t.attachStreamToVideo=function(e,n,r){return r===void 0&&(r=5e3),Yt(this,void 0,void 0,function(){var i;return Bt(this,function(o){switch(o.label){case 0:return i=t.prepareVideoElement(n),t.addVideoSource(i,e),[4,t.playVideoOnLoadAsync(i,r)];case 1:return o.sent(),[2,i]}})})},t._waitImageLoad=function(e){return new Promise(function(n,r){var i=1e4,o=setTimeout(function(){t.isImageLoaded(e)||(e.removeEventListener("load",a),r())},i),a=function(){clearTimeout(o),e.removeEventListener("load",a),n()};e.addEventListener("load",a)})},t.checkCallbackFnOrThrow=function(e){if(!e)throw new Jt("`callbackFn` is a required parameter, you cannot capture results without it.")},t.disposeMediaStream=function(e){e.getVideoTracks().forEach(function(n){return n.stop()}),e=void 0},t.prototype.decode=function(e){var n=t.createCanvasFromMediaElement(e);return this.decodeFromCanvas(n)},t.prototype.decodeBitmap=function(e){return this.reader.decode(e,this.hints)},t.prototype.decodeFromCanvas=function(e){var n=t.createBinaryBitmapFromCanvas(e);return this.decodeBitmap(n)},t.prototype.decodeFromImageElement=function(e){return Yt(this,void 0,void 0,function(){var n;return Bt(this,function(r){switch(r.label){case 0:if(!e)throw new Jt("An image element must be provided.");return n=t.prepareImageElement(e),[4,this._decodeOnLoadImage(n)];case 1:return[2,r.sent()]}})})},t.prototype.decodeFromImageUrl=function(e){return Yt(this,void 0,void 0,function(){var n;return Bt(this,function(r){switch(r.label){case 0:if(!e)throw new Jt("An URL must be provided.");n=t.prepareImageElement(),n.src=e,r.label=1;case 1:return r.trys.push([1,,3,4]),[4,this.decodeFromImageElement(n)];case 2:return[2,r.sent()];case 3:return t.destroyImageElement(n),[7];case 4:return[2]}})})},t.prototype.decodeFromConstraints=function(e,n,r){return Yt(this,void 0,void 0,function(){var i,o;return Bt(this,function(a){switch(a.label){case 0:return t.checkCallbackFnOrThrow(r),[4,this.getUserMedia(e)];case 1:i=a.sent(),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.decodeFromStream(i,n,r)];case 3:return[2,a.sent()];case 4:throw o=a.sent(),t.disposeMediaStream(i),o;case 5:return[2]}})})},t.prototype.decodeFromStream=function(e,n,r){return Yt(this,void 0,void 0,function(){var i,o,a,s,c,u,l,h,f,d=this;return Bt(this,function(p){switch(p.label){case 0:return t.checkCallbackFnOrThrow(r),i=this.options.tryPlayVideoTimeout,[4,t.attachStreamToVideo(e,n,i)];case 1:return o=p.sent(),a=function(){t.disposeMediaStream(e),t.cleanVideoSource(o)},s=this.scan(o,r,a),c=e.getVideoTracks(),u=ra(ra({},s),{stop:function(){s.stop()},streamVideoConstraintsApply:function(g,y){return Yt(this,void 0,void 0,function(){var R,m,v,x,_,E,N;return Bt(this,function(U){switch(U.label){case 0:R=y?c.filter(y):c,U.label=1;case 1:U.trys.push([1,6,7,8]),m=sd(R),v=m.next(),U.label=2;case 2:return v.done?[3,5]:(x=v.value,[4,x.applyConstraints(g)]);case 3:U.sent(),U.label=4;case 4:return v=m.next(),[3,2];case 5:return[3,8];case 6:return _=U.sent(),E={error:_},[3,8];case 7:try{v&&!v.done&&(N=m.return)&&N.call(m)}finally{if(E)throw E.error}return[7];case 8:return[2]}})})},streamVideoConstraintsGet:function(g){return c.find(g).getConstraints()},streamVideoSettingsGet:function(g){return c.find(g).getSettings()},streamVideoCapabilitiesGet:function(g){return c.find(g).getCapabilities()}}),l=t.mediaStreamIsTorchCompatible(e),l&&(h=c==null?void 0:c.find(function(g){return t.mediaStreamIsTorchCompatibleTrack(g)}),f=function(g){return Yt(d,void 0,void 0,function(){return Bt(this,function(y){switch(y.label){case 0:return[4,t.mediaStreamSetTorch(h,g)];case 1:return y.sent(),[2]}})})},u.switchTorch=f,u.stop=function(){return Yt(d,void 0,void 0,function(){return Bt(this,function(g){switch(g.label){case 0:return s.stop(),[4,f(!1)];case 1:return g.sent(),[2]}})})}),[2,u]}})})},t.prototype.decodeFromVideoDevice=function(e,n,r){return Yt(this,void 0,void 0,function(){var i,o;return Bt(this,function(a){switch(a.label){case 0:return t.checkCallbackFnOrThrow(r),e?i={deviceId:{exact:e}}:i={facingMode:"environment"},o={video:i},[4,this.decodeFromConstraints(o,n,r)];case 1:return[2,a.sent()]}})})},t.prototype.decodeFromVideoElement=function(e,n){return Yt(this,void 0,void 0,function(){var r,i;return Bt(this,function(o){switch(o.label){case 0:if(t.checkCallbackFnOrThrow(n),!e)throw new Jt("A video element must be provided.");return r=t.prepareVideoElement(e),i=this.options.tryPlayVideoTimeout,[4,t.playVideoOnLoadAsync(r,i)];case 1:return o.sent(),[2,this.scan(r,n)]}})})},t.prototype.decodeFromVideoUrl=function(e,n){return Yt(this,void 0,void 0,function(){var r,i,o,a;return Bt(this,function(s){switch(s.label){case 0:if(t.checkCallbackFnOrThrow(n),!e)throw new Jt("An URL must be provided.");return r=t.prepareVideoElement(),r.src=e,i=function(){t.cleanVideoSource(r)},o=this.options.tryPlayVideoTimeout,[4,t.playVideoOnLoadAsync(r,o)];case 1:return s.sent(),a=this.scan(r,n,i),[2,a]}})})},t.prototype.decodeOnceFromConstraints=function(e,n){return Yt(this,void 0,void 0,function(){var r;return Bt(this,function(i){switch(i.label){case 0:return[4,this.getUserMedia(e)];case 1:return r=i.sent(),[4,this.decodeOnceFromStream(r,n)];case 2:return[2,i.sent()]}})})},t.prototype.decodeOnceFromStream=function(e,n){return Yt(this,void 0,void 0,function(){var r,i,o;return Bt(this,function(a){switch(a.label){case 0:return r=Boolean(n),[4,t.attachStreamToVideo(e,n)];case 1:i=a.sent(),a.label=2;case 2:return a.trys.push([2,,4,5]),[4,this.scanOneResult(i)];case 3:return o=a.sent(),[2,o];case 4:return r||t.cleanVideoSource(i),[7];case 5:return[2]}})})},t.prototype.decodeOnceFromVideoDevice=function(e,n){return Yt(this,void 0,void 0,function(){var r,i;return Bt(this,function(o){switch(o.label){case 0:return e?r={deviceId:{exact:e}}:r={facingMode:"environment"},i={video:r},[4,this.decodeOnceFromConstraints(i,n)];case 1:return[2,o.sent()]}})})},t.prototype.decodeOnceFromVideoElement=function(e){return Yt(this,void 0,void 0,function(){var n,r;return Bt(this,function(i){switch(i.label){case 0:if(!e)throw new Jt("A video element must be provided.");return n=t.prepareVideoElement(e),r=this.options.tryPlayVideoTimeout,[4,t.playVideoOnLoadAsync(n,r)];case 1:return i.sent(),[4,this.scanOneResult(n)];case 2:return[2,i.sent()]}})})},t.prototype.decodeOnceFromVideoUrl=function(e){return Yt(this,void 0,void 0,function(){var n,r;return Bt(this,function(i){switch(i.label){case 0:if(!e)throw new Jt("An URL must be provided.");n=t.prepareVideoElement(),n.src=e,r=this.decodeOnceFromVideoElement(n),i.label=1;case 1:return i.trys.push([1,,3,4]),[4,r];case 2:return[2,i.sent()];case 3:return t.cleanVideoSource(n),[7];case 4:return[2]}})})},t.prototype.scanOneResult=function(e,n,r,i){var o=this;return n===void 0&&(n=!0),r===void 0&&(r=!0),i===void 0&&(i=!0),new Promise(function(a,s){o.scan(e,function(c,u,l){if(c){a(c),l.stop();return}if(u){if(u instanceof De&&n||u instanceof tn&&r||u instanceof Me&&i)return;l.stop(),s(u)}})})},t.prototype.scan=function(e,n,r){var i=this;t.checkCallbackFnOrThrow(n);var o=t.createCaptureCanvas(e),a;try{a=o.getContext("2d",{willReadFrequently:!0})}catch{a=o.getContext("2d")}if(!a)throw new Error("Couldn't create canvas for visual element scan.");var s=function(){a=void 0,o=void 0},c=!1,u,l=function(){c=!0,clearTimeout(u),s(),r&&r()},h={stop:l},f=function(){if(!c)try{t.drawImageOnCanvas(a,e);var d=i.decodeFromCanvas(o);n(d,void 0,h),u=setTimeout(f,i.options.delayBetweenScanSuccess)}catch(R){n(void 0,R,h);var p=R instanceof tn,g=R instanceof Me,y=R instanceof De;if(p||g||y){u=setTimeout(f,i.options.delayBetweenScanAttempts);return}s(),r&&r(R)}};return f(),h},t.prototype._decodeOnLoadImage=function(e){return Yt(this,void 0,void 0,function(){var n;return Bt(this,function(r){switch(r.label){case 0:return n=t.isImageLoaded(e),n?[3,2]:[4,t._waitImageLoad(e)];case 1:r.sent(),r.label=2;case 2:return[2,this.decode(e)]}})})},t.prototype.getUserMedia=function(e){return Yt(this,void 0,void 0,function(){var n;return Bt(this,function(r){switch(r.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return n=r.sent(),t.streamTracker.push(n),[2,n]}})})},t.streamTracker=[],t}(),e9=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){e9(e,t);function e(n,r){return t.call(this,new Nu,n,r)||this}return e})(Ya);var t9=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){t9(e,t);function e(n,r){return t.call(this,new ea(n),n,r)||this}return e})(Ya);var n9=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){n9(e,t);function e(n,r){return t.call(this,new Pu,n,r)||this}return e})(Ya);var r9=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){r9(e,t);function e(n,r){var i=this,o=new _b;return o.setHints(n),i=t.call(this,o,n,r)||this,i.reader=o,i}return Object.defineProperty(e.prototype,"possibleFormats",{set:function(n){this.hints.set(Ct.POSSIBLE_FORMATS,n),this.reader.setHints(this.hints)},enumerable:!1,configurable:!0}),e.prototype.decodeBitmap=function(n){return this.reader.decodeWithState(n)},e.prototype.setHints=function(n){this.hints=n,this.reader.setHints(this.hints)},e})(Ya);var i9=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){i9(e,t);function e(n,r){return t.call(this,new Mu,n,r)||this}return e})(Ya);var o9=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),a9=function(t){o9(e,t);function e(n,r){return t.call(this,new Lu,n,r)||this}return e}(Ya),Ym="http://www.w3.org/2000/svg",s9=function(){function t(){}return t.prototype.write=function(e,n,r,i){if(e.length===0)throw new Je("Found empty contents");if(n<0||r<0)throw new Je("Requested dimensions are too small: "+n+"x"+r);var o=Jd.L,a=t.QUIET_ZONE_SIZE;if(i){if(i.get(Gr.ERROR_CORRECTION)!==void 0){var s=i.get(Gr.ERROR_CORRECTION).toString();o=Jd.fromString(s)}i.get(Gr.MARGIN)!==void 0&&(a=Number.parseInt(i.get(Gr.MARGIN).toString(),10))}var c=uV.encode(e,o,i);return this.renderResult(c,n,r,a)},t.prototype.writeToDom=function(e,n,r,i,o){if(typeof e=="string"){var a=document.querySelector(e);if(!a)throw new Error("Could no find the target HTML element.");e=a}var s=this.write(n,r,i,o);e instanceof HTMLElement&&e.appendChild(s)},t.prototype.renderResult=function(e,n,r,i){var o=e.getMatrix();if(o===null)throw new Va;for(var a=o.getWidth(),s=o.getHeight(),c=a+i*2,u=s+i*2,l=Math.max(n,c),h=Math.max(r,u),f=Math.min(Math.floor(l/c),Math.floor(h/u)),d=Math.floor((l-a*f)/2),p=Math.floor((h-s*f)/2),g=this.createSVGElement(l,h),y=0,R=p;y<s;y++,R+=f)for(var m=0,v=d;m<a;m++,v+=f)if(o.get(m,y)===1){var x=this.createSvgRectElement(v,R,f,f);g.appendChild(x)}return g},t.prototype.createSVGElement=function(e,n){var r=document.createElementNS(Ym,"svg"),i=e.toString(),o=n.toString();return r.setAttribute("height",o),r.setAttribute("width",i),r.setAttribute("viewBox","0 0 "+i+" "+o),r},t.prototype.createSvgRectElement=function(e,n,r,i){var o=document.createElementNS(Ym,"rect");return o.setAttribute("x",e.toString()),o.setAttribute("y",n.toString()),o.setAttribute("height",r.toString()),o.setAttribute("width",i.toString()),o.setAttribute("fill","#000000"),o},t.QUIET_ZONE_SIZE=4,t}();function c9(t){return`data:image/svg+xml;base64,${btoa(decodeURIComponent(t.outerHTML))}`}function u9(t,e){const n=new s9;e.hints||(e.hints=new Map),e.hints.has(Gr.MARGIN)||e.hints.set(Gr.MARGIN,0);const r=n.write(e.content,e.width,e.height,e.hints);r.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.executeInsertElementList([{type:fe.IMAGE,value:c9(r),width:e.width,height:e.height}])}function l9(t){t.register.contextMenuList([{name:"\u8BC6\u522B\u4E8C\u7EF4\u7801",icon:"qrcode",when:e=>{var n;return e.startElement===e.endElement&&((n=e.startElement)==null?void 0:n.type)===fe.IMAGE},callback:async(e,n)=>{var i;const r=(i=n.startElement)==null?void 0:i.value;if(!!r)try{const s=(await new a9().decodeFromImageUrl(r)).getText();new fn({title:"\u8BC6\u522B\u7ED3\u679C",data:[{type:"textarea",label:"\u5185\u5BB9",height:100,name:"value",value:s}],onConfirm:c=>{console.log(c)}})}catch(o){console.log(o),alert("\u8BC6\u522B\u5931\u8D25")}}}])}var Fb={exports:{}};/*! Pickr 1.9.1 MIT | https://github.com/Simonwep/pickr */(function(t,e){(function(n,r){t.exports=r()})(self,()=>(()=>{var n={d:(C,F)=>{for(var A in F)n.o(F,A)&&!n.o(C,A)&&Object.defineProperty(C,A,{enumerable:!0,get:F[A]})},o:(C,F)=>Object.prototype.hasOwnProperty.call(C,F),r:C=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})}},r={};n.d(r,{default:()=>b});var i={};function o(C,F,A,B,$={}){F instanceof HTMLCollection||F instanceof NodeList?F=Array.from(F):Array.isArray(F)||(F=[F]),Array.isArray(A)||(A=[A]);for(const V of F)for(const L of A)V[C](L,B,{capture:!1,...$});return Array.prototype.slice.call(arguments,1)}n.r(i),n.d(i,{adjustableInputNumbers:()=>f,createElementFromString:()=>c,createFromTemplate:()=>u,eventPath:()=>l,off:()=>s,on:()=>a,resolveElement:()=>h});const a=o.bind(null,"addEventListener"),s=o.bind(null,"removeEventListener");function c(C){const F=document.createElement("div");return F.innerHTML=C.trim(),F.firstElementChild}function u(C){const F=(B,$)=>{const V=B.getAttribute($);return B.removeAttribute($),V},A=(B,$={})=>{const V=F(B,":obj"),L=F(B,":ref"),z=V?$[V]={}:$;L&&($[L]=B);for(const q of Array.from(B.children)){const se=F(q,":arr"),ae=A(q,se?{}:z);se&&(z[se]||(z[se]=[])).push(Object.keys(ae).length?ae:q)}return $};return A(c(C))}function l(C){let F=C.path||C.composedPath&&C.composedPath();if(F)return F;let A=C.target.parentElement;for(F=[C.target,A];A=A.parentElement;)F.push(A);return F.push(document,window),F}function h(C){return C instanceof Element?C:typeof C=="string"?C.split(/>>/g).reduce((F,A,B,$)=>(F=F.querySelector(A),B<$.length-1?F.shadowRoot:F),document):null}function f(C,F=A=>A){function A(B){const $=[.001,.01,.1][Number(B.shiftKey||2*B.ctrlKey)]*(B.deltaY<0?1:-1);let V=0,L=C.selectionStart;C.value=C.value.replace(/[\d.]+/g,(z,q)=>q<=L&&q+z.length>=L?(L=q,F(Number(z),$,V)):(V++,z)),C.focus(),C.setSelectionRange(L,L),B.preventDefault(),C.dispatchEvent(new Event("input"))}a(C,"focus",()=>a(window,"wheel",A,{passive:!1})),a(C,"blur",()=>s(window,"wheel",A))}const{min:d,max:p,floor:g,round:y}=Math;function R(C,F,A){F/=100,A/=100;const B=g(C=C/360*6),$=C-B,V=A*(1-F),L=A*(1-$*F),z=A*(1-(1-$)*F),q=B%6;return[255*[A,L,V,V,z,A][q],255*[z,A,A,L,V,V][q],255*[V,V,z,A,A,L][q]]}function m(C,F,A){const B=(2-(F/=100))*(A/=100)/2;return B!==0&&(F=B===1?0:B<.5?F*A/(2*B):F*A/(2-2*B)),[C,100*F,100*B]}function v(C,F,A){const B=d(C/=255,F/=255,A/=255),$=p(C,F,A),V=$-B;let L,z;if(V===0)L=z=0;else{z=V/$;const q=(($-C)/6+V/2)/V,se=(($-F)/6+V/2)/V,ae=(($-A)/6+V/2)/V;C===$?L=ae-se:F===$?L=1/3+q-ae:A===$&&(L=2/3+se-q),L<0?L+=1:L>1&&(L-=1)}return[360*L,100*z,100*$]}function x(C,F,A,B){return F/=100,A/=100,[...v(255*(1-d(1,(C/=100)*(1-(B/=100))+B)),255*(1-d(1,F*(1-B)+B)),255*(1-d(1,A*(1-B)+B)))]}function _(C,F,A){F/=100;const B=2*(F*=(A/=100)<.5?A:1-A)/(A+F)*100,$=100*(A+F);return[C,isNaN(B)?0:B,$]}function E(C){return v(...C.match(/.{2}/g).map(F=>parseInt(F,16)))}function N(C){C=C.match(/^[a-zA-Z]+$/)?function($){if($.toLowerCase()==="black")return"#000";const V=document.createElement("canvas").getContext("2d");return V.fillStyle=$,V.fillStyle==="#000"?null:V.fillStyle}(C):C;const F={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},A=$=>$.map(V=>/^(|\d+)\.\d+|\d+$/.test(V)?Number(V):void 0);let B;e:for(const $ in F)if(B=F[$].exec(C))switch($){case"cmyk":{const[,V,L,z,q]=A(B);if(V>100||L>100||z>100||q>100)break e;return{values:x(V,L,z,q),type:$}}case"rgba":{let[,V,,L,,z,,,q]=A(B);if(V=B[2]==="%"?V/100*255:V,L=B[4]==="%"?L/100*255:L,z=B[6]==="%"?z/100*255:z,q=B[9]==="%"?q/100:q,V>255||L>255||z>255||q<0||q>1)break e;return{values:[...v(V,L,z),q],a:q,type:$}}case"hexa":{let[,V]=B;V.length!==4&&V.length!==3||(V=V.split("").map(q=>q+q).join(""));const L=V.substring(0,6);let z=V.substring(6);return z=z?parseInt(z,16)/255:void 0,{values:[...E(L),z],a:z,type:$}}case"hsla":{let[,V,L,z,,q]=A(B);if(q=B[6]==="%"?q/100:q,V>360||L>100||z>100||q<0||q>1)break e;return{values:[..._(V,L,z),q],a:q,type:$}}case"hsva":{let[,V,L,z,,q]=A(B);if(q=B[6]==="%"?q/100:q,V>360||L>100||z>100||q<0||q>1)break e;return{values:[V,L,z,q],a:q,type:$}}}return{values:null,type:null}}function U(C=0,F=0,A=0,B=1){const $=(L,z)=>(q=-1)=>z(~q?L.map(se=>Number(se.toFixed(q))):L),V={h:C,s:F,v:A,a:B,toHSVA(){const L=[V.h,V.s,V.v,V.a];return L.toString=$(L,z=>`hsva(${z[0]}, ${z[1]}%, ${z[2]}%, ${V.a})`),L},toHSLA(){const L=[...m(V.h,V.s,V.v),V.a];return L.toString=$(L,z=>`hsla(${z[0]}, ${z[1]}%, ${z[2]}%, ${V.a})`),L},toRGBA(){const L=[...R(V.h,V.s,V.v),V.a];return L.toString=$(L,z=>`rgba(${z[0]}, ${z[1]}, ${z[2]}, ${V.a})`),L},toCMYK(){const L=function(z,q,se){const ae=R(z,q,se),Y=ae[0]/255,X=ae[1]/255,k=ae[2]/255,G=d(1-Y,1-X,1-k);return[100*(G===1?0:(1-Y-G)/(1-G)),100*(G===1?0:(1-X-G)/(1-G)),100*(G===1?0:(1-k-G)/(1-G)),100*G]}(V.h,V.s,V.v);return L.toString=$(L,z=>`cmyk(${z[0]}%, ${z[1]}%, ${z[2]}%, ${z[3]}%)`),L},toHEXA(){const L=function(q,se,ae){return R(q,se,ae).map(Y=>y(Y).toString(16).padStart(2,"0"))}(V.h,V.s,V.v),z=V.a>=1?"":Number((255*V.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return z&&L.push(z),L.toString=()=>`#${L.join("").toUpperCase()}`,L},clone:()=>U(V.h,V.s,V.v,V.a)};return V}const O=C=>Math.max(Math.min(C,1),0);function Q(C){const F={options:Object.assign({lock:null,onchange:()=>0,onstop:()=>0},C),_keyboard(V){const{options:L}=F,{type:z,key:q}=V;if(document.activeElement===L.wrapper){const{lock:se}=F.options,ae=q==="ArrowUp",Y=q==="ArrowRight",X=q==="ArrowDown",k=q==="ArrowLeft";if(z==="keydown"&&(ae||Y||X||k)){let G=0,H=0;se==="v"?G=ae||Y?1:-1:se==="h"?G=ae||Y?-1:1:(H=ae?-1:X?1:0,G=k?-1:Y?1:0),F.update(O(F.cache.x+.01*G),O(F.cache.y+.01*H)),V.preventDefault()}else q.startsWith("Arrow")&&(F.options.onstop(),V.preventDefault())}},_tapstart(V){a(document,["mouseup","touchend","touchcancel"],F._tapstop),a(document,["mousemove","touchmove"],F._tapmove),V.cancelable&&V.preventDefault(),F._tapmove(V)},_tapmove(V){const{options:L,cache:z}=F,{lock:q,element:se,wrapper:ae}=L,Y=ae.getBoundingClientRect();let X=0,k=0;if(V){const te=V&&V.touches&&V.touches[0];X=V?(te||V).clientX:0,k=V?(te||V).clientY:0,X<Y.left?X=Y.left:X>Y.left+Y.width&&(X=Y.left+Y.width),k<Y.top?k=Y.top:k>Y.top+Y.height&&(k=Y.top+Y.height),X-=Y.left,k-=Y.top}else z&&(X=z.x*Y.width,k=z.y*Y.height);q!=="h"&&(se.style.left=`calc(${X/Y.width*100}% - ${se.offsetWidth/2}px)`),q!=="v"&&(se.style.top=`calc(${k/Y.height*100}% - ${se.offsetHeight/2}px)`),F.cache={x:X/Y.width,y:k/Y.height};const G=O(X/Y.width),H=O(k/Y.height);switch(q){case"v":return L.onchange(G);case"h":return L.onchange(H);default:return L.onchange(G,H)}},_tapstop(){F.options.onstop(),s(document,["mouseup","touchend","touchcancel"],F._tapstop),s(document,["mousemove","touchmove"],F._tapmove)},trigger(){F._tapmove()},update(V=0,L=0){const{left:z,top:q,width:se,height:ae}=F.options.wrapper.getBoundingClientRect();F.options.lock==="h"&&(L=V),F._tapmove({clientX:z+se*V,clientY:q+ae*L})},destroy(){const{options:V,_tapstart:L,_keyboard:z}=F;s(document,["keydown","keyup"],z),s([V.wrapper,V.element],"mousedown",L),s([V.wrapper,V.element],"touchstart",L,{passive:!1})}},{options:A,_tapstart:B,_keyboard:$}=F;return a([A.wrapper,A.element],"mousedown",B),a([A.wrapper,A.element],"touchstart",B,{passive:!1}),a(document,["keydown","keyup"],$),F}function ne(C={}){C=Object.assign({onchange:()=>0,className:"",elements:[]},C);const F=a(C.elements,"click",A=>{C.elements.forEach(B=>B.classList[A.target===B?"add":"remove"](C.className)),C.onchange(A),A.stopPropagation()});return{destroy:()=>s(...F)}}const T={variantFlipOrder:{start:"sme",middle:"mse",end:"ems"},positionFlipOrder:{top:"tbrl",right:"rltb",bottom:"btrl",left:"lrbt"},position:"bottom",margin:8,padding:0},I=(C,F,A)=>{const B=typeof C!="object"||C instanceof HTMLElement?{reference:C,popper:F,...A}:C;return{update($=B){const{reference:V,popper:L}=Object.assign(B,$);if(!L||!V)throw new Error("Popper- or reference-element missing.");return((z,q,se)=>{const{container:ae,arrow:Y,margin:X,padding:k,position:G,variantFlipOrder:H,positionFlipOrder:te}={container:document.documentElement.getBoundingClientRect(),...T,...se},{left:pe,top:D}=q.style;q.style.left="0",q.style.top="0";const oe=z.getBoundingClientRect(),W=q.getBoundingClientRect(),w={t:oe.top-W.height-X,b:oe.bottom+X,r:oe.right+X,l:oe.left-W.width-X},S={vs:oe.left,vm:oe.left+oe.width/2-W.width/2,ve:oe.left+oe.width-W.width,hs:oe.top,hm:oe.bottom-oe.height/2-W.height/2,he:oe.bottom-W.height},[P,J="middle"]=G.split("-"),ie=te[P],K=H[J],{top:j,left:re,bottom:ce,right:he}=ae;for(const ve of ie){const _e=ve==="t"||ve==="b";let Fe=w[ve];const[Xe,Qe]=_e?["top","left"]:["left","top"],[Ge,Ve]=_e?[W.height,W.width]:[W.width,W.height],[at,It]=_e?[ce,he]:[he,ce],[Rt,On]=_e?[j,re]:[re,j];if(!(Fe<Rt||Fe+Ge+k>at))for(const or of K){let qt=S[(_e?"v":"h")+or];if(!(qt<On||qt+Ve+k>It)){if(qt-=W[Qe],Fe-=W[Xe],q.style[Qe]=`${qt}px`,q.style[Xe]=`${Fe}px`,Y){const ar=_e?oe.width/2:oe.height/2,Kn=Ve/2,en=ar>Kn,hn=qt+{s:en?Kn:ar,m:Kn,e:en?Kn:Ve-ar}[or],Oo=Fe+{t:Ge,b:0,r:0,l:Ge}[ve];Y.style[Qe]=`${hn}px`,Y.style[Xe]=`${Oo}px`}return ve+or}}}return q.style.left=pe,q.style.top=D,null})(V,L,B)}}},M=class{constructor(F){Xn(this,"_initializingActive",!0);Xn(this,"_recalc",!0);Xn(this,"_nanopop",null);Xn(this,"_root",null);Xn(this,"_color",U());Xn(this,"_lastColor",U());Xn(this,"_swatchColors",[]);Xn(this,"_setupAnimationFrame",null);Xn(this,"_eventListener",{init:[],save:[],hide:[],show:[],clear:[],change:[],changestop:[],cancel:[],swatchselect:[]});this.options=F=Object.assign({...M.DEFAULT_OPTIONS},F);const{swatches:A,components:B,theme:$,sliders:V,lockOpacity:L,padding:z}=F;["nano","monolith"].includes($)&&!V&&(F.sliders="h"),B.interaction||(B.interaction={});const{preview:q,opacity:se,hue:ae,palette:Y}=B;B.opacity=!L&&se,B.palette=Y||q||se||ae,this._preBuild(),this._buildComponents(),this._bindEvents(),this._finalBuild(),A&&A.length&&A.forEach(H=>this.addSwatch(H));const{button:X,app:k}=this._root;this._nanopop=I(X,k,{margin:z}),X.setAttribute("role","button"),X.setAttribute("aria-label",this._t("btn:toggle"));const G=this;this._setupAnimationFrame=requestAnimationFrame(function H(){if(!k.offsetWidth)return requestAnimationFrame(H);G.setColor(F.default),G._rePositioningPicker(),F.defaultRepresentation&&(G._representation=F.defaultRepresentation,G.setColorRepresentation(G._representation)),F.showAlways&&G.show(),G._initializingActive=!1,G._emit("init")})}_preBuild(){const{options:F}=this;for(const A of["el","container"])F[A]=h(F[A]);this._root=(A=>{const{components:B,useAsButton:$,inline:V,appClass:L,theme:z,lockOpacity:q}=A.options,se=k=>k?"":'style="display:none" hidden',ae=k=>A._t(k),Y=u(`
|
|
<div :ref="root" class="pickr">
|
|
|
|
${$?"":'<button type="button" :ref="button" class="pcr-button"></button>'}
|
|
|
|
<div :ref="app" class="pcr-app ${L||""}" data-theme="${z}" ${V?'style="position: unset"':""} aria-label="${ae("ui:dialog")}" role="window">
|
|
<div class="pcr-selection" ${se(B.palette)}>
|
|
<div :obj="preview" class="pcr-color-preview" ${se(B.preview)}>
|
|
<button type="button" :ref="lastColor" class="pcr-last-color" aria-label="${ae("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="${ae("aria:palette")}" role="listbox"></div>
|
|
</div>
|
|
|
|
<div :obj="hue" class="pcr-color-chooser" ${se(B.hue)}>
|
|
<div :ref="picker" class="pcr-picker"></div>
|
|
<div :ref="slider" class="pcr-hue pcr-slider" tabindex="0" aria-label="${ae("aria:hue")}" role="slider"></div>
|
|
</div>
|
|
|
|
<div :obj="opacity" class="pcr-color-opacity" ${se(B.opacity)}>
|
|
<div :ref="picker" class="pcr-picker"></div>
|
|
<div :ref="slider" class="pcr-opacity pcr-slider" tabindex="0" aria-label="${ae("aria:opacity")}" role="slider"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="pcr-swatches ${B.palette?"":"pcr-last"}" :ref="swatches"></div>
|
|
|
|
<div :obj="interaction" class="pcr-interaction" ${se(Object.keys(B.interaction).length)}>
|
|
<input :ref="result" class="pcr-result" type="text" spellcheck="false" ${se(B.interaction.input)} aria-label="${ae("aria:input")}">
|
|
|
|
<input :arr="options" class="pcr-type" data-type="HEXA" value="${q?"HEX":"HEXA"}" type="button" ${se(B.interaction.hex)}>
|
|
<input :arr="options" class="pcr-type" data-type="RGBA" value="${q?"RGB":"RGBA"}" type="button" ${se(B.interaction.rgba)}>
|
|
<input :arr="options" class="pcr-type" data-type="HSLA" value="${q?"HSL":"HSLA"}" type="button" ${se(B.interaction.hsla)}>
|
|
<input :arr="options" class="pcr-type" data-type="HSVA" value="${q?"HSV":"HSVA"}" type="button" ${se(B.interaction.hsva)}>
|
|
<input :arr="options" class="pcr-type" data-type="CMYK" value="CMYK" type="button" ${se(B.interaction.cmyk)}>
|
|
|
|
<input :ref="save" class="pcr-save" value="${ae("btn:save")}" type="button" ${se(B.interaction.save)} aria-label="${ae("aria:btn:save")}">
|
|
<input :ref="cancel" class="pcr-cancel" value="${ae("btn:cancel")}" type="button" ${se(B.interaction.cancel)} aria-label="${ae("aria:btn:cancel")}">
|
|
<input :ref="clear" class="pcr-clear" value="${ae("btn:clear")}" type="button" ${se(B.interaction.clear)} aria-label="${ae("aria:btn:clear")}">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`),X=Y.interaction;return X.options.find(k=>!k.hidden&&!k.classList.add("active")),X.type=()=>X.options.find(k=>k.classList.contains("active")),Y})(this),F.useAsButton&&(this._root.button=F.el),F.container.appendChild(this._root.root)}_finalBuild(){const F=this.options,A=this._root;if(F.container.removeChild(A.root),F.inline){const B=F.el.parentElement;F.el.nextSibling?B.insertBefore(A.app,F.el.nextSibling):B.appendChild(A.app)}else F.container.appendChild(A.app);F.useAsButton?F.inline&&F.el.remove():F.el.parentNode.replaceChild(A.root,F.el),F.disabled&&this.disable(),F.comparison||(A.button.style.transition="none",F.useAsButton||(A.preview.lastColor.style.transition="none")),this.hide()}_buildComponents(){const F=this,A=this.options.components,B=(F.options.sliders||"v").repeat(2),[$,V]=B.match(/^[vh]+$/g)?B:[],L=()=>this._color||(this._color=this._lastColor.clone()),z={palette:Q({element:F._root.palette.picker,wrapper:F._root.palette.palette,onstop:()=>F._emit("changestop","slider",F),onchange(q,se){if(!A.palette)return;const ae=L(),{_root:Y,options:X}=F,{lastColor:k,currentColor:G}=Y.preview;F._recalc&&(ae.s=100*q,ae.v=100-100*se,ae.v<0&&(ae.v=0),F._updateOutput("slider"));const H=ae.toRGBA().toString(0);this.element.style.background=H,this.wrapper.style.background=`
|
|
linear-gradient(to top, rgba(0, 0, 0, ${ae.a}), transparent),
|
|
linear-gradient(to left, hsla(${ae.h}, 100%, 50%, ${ae.a}), rgba(255, 255, 255, ${ae.a}))
|
|
`,X.comparison?X.useAsButton||F._lastColor||k.style.setProperty("--pcr-color",H):(Y.button.style.setProperty("--pcr-color",H),Y.button.classList.remove("clear"));const te=ae.toHEXA().toString();for(const{el:pe,color:D}of F._swatchColors)pe.classList[te===D.toHEXA().toString()?"add":"remove"]("pcr-active");G.style.setProperty("--pcr-color",H)}}),hue:Q({lock:V==="v"?"h":"v",element:F._root.hue.picker,wrapper:F._root.hue.slider,onstop:()=>F._emit("changestop","slider",F),onchange(q){if(!A.hue||!A.palette)return;const se=L();F._recalc&&(se.h=360*q),this.element.style.backgroundColor=`hsl(${se.h}, 100%, 50%)`,z.palette.trigger()}}),opacity:Q({lock:$==="v"?"h":"v",element:F._root.opacity.picker,wrapper:F._root.opacity.slider,onstop:()=>F._emit("changestop","slider",F),onchange(q){if(!A.opacity||!A.palette)return;const se=L();F._recalc&&(se.a=Math.round(100*q)/100),this.element.style.background=`rgba(0, 0, 0, ${se.a})`,z.palette.trigger()}}),selectable:ne({elements:F._root.interaction.options,className:"active",onchange(q){F._representation=q.target.getAttribute("data-type").toUpperCase(),F._recalc&&F._updateOutput("swatch")}})};this._components=z}_bindEvents(){const{_root:F,options:A}=this,B=[a(F.interaction.clear,"click",()=>this._clearColor()),a([F.interaction.cancel,F.preview.lastColor],"click",()=>{this.setHSVA(...(this._lastColor||this._color).toHSVA(),!0),this._emit("cancel")}),a(F.interaction.save,"click",()=>{!this.applyColor()&&!A.showAlways&&this.hide()}),a(F.interaction.result,["keyup","input"],$=>{this.setColor($.target.value,!0)&&!this._initializingActive&&(this._emit("change",this._color,"input",this),this._emit("changestop","input",this)),$.stopImmediatePropagation()}),a(F.interaction.result,["focus","blur"],$=>{this._recalc=$.type==="blur",this._recalc&&this._updateOutput(null)}),a([F.palette.palette,F.palette.picker,F.hue.slider,F.hue.picker,F.opacity.slider,F.opacity.picker],["mousedown","touchstart"],()=>this._recalc=!0,{passive:!0})];if(!A.showAlways){const $=A.closeWithKey;B.push(a(F.button,"click",()=>this.isOpen()?this.hide():this.show()),a(document,"keyup",V=>this.isOpen()&&(V.key===$||V.code===$)&&this.hide()),a(document,["touchstart","mousedown"],V=>{this.isOpen()&&!l(V).some(L=>L===F.app||L===F.button)&&this.hide()},{capture:!0}))}if(A.adjustableNumbers){const $={rgba:[255,255,255,1],hsva:[360,100,100,1],hsla:[360,100,100,1],cmyk:[100,100,100,100]};f(F.interaction.result,(V,L,z)=>{const q=$[this.getColorRepresentation().toLowerCase()];if(q){const se=q[z],ae=V+(se>=100?1e3*L:L);return ae<=0?0:Number((ae<se?ae:se).toPrecision(3))}return V})}if(A.autoReposition&&!A.inline){let $=null;const V=this;B.push(a(window,["scroll","resize"],()=>{V.isOpen()&&(A.closeOnScroll&&V.hide(),$===null?($=setTimeout(()=>$=null,100),requestAnimationFrame(function L(){V._rePositioningPicker(),$!==null&&requestAnimationFrame(L)})):(clearTimeout($),$=setTimeout(()=>$=null,100)))},{capture:!0}))}this._eventBindings=B}_rePositioningPicker(){const{options:F}=this;if(!F.inline&&!this._nanopop.update({container:document.body.getBoundingClientRect(),position:F.position})){const A=this._root.app,B=A.getBoundingClientRect();A.style.top=(window.innerHeight-B.height)/2+"px",A.style.left=(window.innerWidth-B.width)/2+"px"}}_updateOutput(F){const{_root:A,_color:B,options:$}=this;if(A.interaction.type()){const V=`to${A.interaction.type().getAttribute("data-type")}`;A.interaction.result.value=typeof B[V]=="function"?B[V]().toString($.outputPrecision):""}!this._initializingActive&&this._recalc&&this._emit("change",B,F,this)}_clearColor(F=!1){const{_root:A,options:B}=this;B.useAsButton||A.button.style.setProperty("--pcr-color","rgba(0, 0, 0, 0.15)"),A.button.classList.add("clear"),B.showAlways||this.hide(),this._lastColor=null,this._initializingActive||F||(this._emit("save",null),this._emit("clear"))}_parseLocalColor(F){const{values:A,type:B,a:$}=N(F),{lockOpacity:V}=this.options,L=$!==void 0&&$!==1;return A&&A.length===3&&(A[3]=void 0),{values:!A||V&&L?null:A,type:B}}_t(F){return this.options.i18n[F]||M.I18N_DEFAULTS[F]}_emit(F,...A){this._eventListener[F].forEach(B=>B(...A,this))}on(F,A){return this._eventListener[F].push(A),this}off(F,A){const B=this._eventListener[F]||[],$=B.indexOf(A);return~$&&B.splice($,1),this}addSwatch(F){const{values:A}=this._parseLocalColor(F);if(A){const{_swatchColors:B,_root:$}=this,V=U(...A),L=c(`<button type="button" style="--pcr-color: ${V.toRGBA().toString(0)}" aria-label="${this._t("btn:swatch")}"/>`);return $.swatches.appendChild(L),B.push({el:L,color:V}),this._eventBindings.push(a(L,"click",()=>{this.setHSVA(...V.toHSVA(),!0),this._emit("swatchselect",V),this._emit("change",V,"swatch",this)})),!0}return!1}removeSwatch(F){const A=this._swatchColors[F];if(A){const{el:B}=A;return this._root.swatches.removeChild(B),this._swatchColors.splice(F,1),!0}return!1}applyColor(F=!1){const{preview:A,button:B}=this._root,$=this._color.toRGBA().toString(0);return A.lastColor.style.setProperty("--pcr-color",$),this.options.useAsButton||B.style.setProperty("--pcr-color",$),B.classList.remove("clear"),this._lastColor=this._color.clone(),this._initializingActive||F||this._emit("save",this._color),this}destroy(){cancelAnimationFrame(this._setupAnimationFrame),this._eventBindings.forEach(F=>s(...F)),Object.keys(this._components).forEach(F=>this._components[F].destroy())}destroyAndRemove(){this.destroy();const{root:F,app:A}=this._root;F.parentElement&&F.parentElement.removeChild(F),A.parentElement.removeChild(A),Object.keys(this).forEach(B=>this[B]=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(F=360,A=0,B=0,$=1,V=!1){const L=this._recalc;if(this._recalc=!1,F<0||F>360||A<0||A>100||B<0||B>100||$<0||$>1)return!1;this._color=U(F,A,B,$);const{hue:z,opacity:q,palette:se}=this._components;return z.update(F/360),q.update($),se.update(A/100,1-B/100),V||this.applyColor(),L&&this._updateOutput(),this._recalc=L,!0}setColor(F,A=!1){if(F===null)return this._clearColor(A),!0;const{values:B,type:$}=this._parseLocalColor(F);if(B){const V=$.toUpperCase(),{options:L}=this._root.interaction,z=L.find(q=>q.getAttribute("data-type")===V);if(z&&!z.hidden)for(const q of L)q.classList[q===z?"add":"remove"]("active");return!!this.setHSVA(...B,A)&&this.setColorRepresentation(V)}return!1}setColorRepresentation(F){return F=F.toUpperCase(),!!this._root.interaction.options.find(A=>A.getAttribute("data-type").startsWith(F)&&!A.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 b=M;return Xn(b,"utils",i),Xn(b,"version","1.9.1"),Xn(b,"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"}),Xn(b,"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"}),Xn(b,"create",F=>new M(F)),r=r.default})())})(Fb);var h9=Ex(Fb.exports);var li=(t=>(t.SIZE_ADD="size-add",t.SIZE_MINUS="size-minus",t.BOLD="bold",t.ITALIC="italic",t.UNDERLINE="underline",t.STRIKEOUT="strikeout",t.COLOR="color",t.HIGHLIGHT="highlight",t))(li||{});const Jr="ce";function Bm(t,e,n){const r=document.createElement("div");r.classList.add(`${Jr}-picker`),r.classList.add(`${Jr}-${e}`);const i=document.createElement("div");i.classList.add(`${Jr}-picker-container`);const o=document.createElement("div");i.append(o),r.append(i),t.append(r);const a="#000000",s=new h9({el:o,theme:"nano",useAsButton:!0,inline:!0,default:a,i18n:{"btn:save":"\u2713"},components:{preview:!0,opacity:!0,hue:!0,interaction:{input:!0,save:!0}}}),c=document.createElement("i");r.append(c);const u=document.createElement("span");u.style.backgroundColor=a,r.append(u),r.onclick=l=>{const h=l.target;i!==h&&!i.contains(h)&&s.show()},s.on("save",l=>{s.hide();const h=l.toHEXA().toString();u.style.backgroundColor=h,n(h)})}const d9=[{key:li.SIZE_ADD,callback(t){t.command.executeSizeAdd()}},{key:li.SIZE_MINUS,callback(t){t.command.executeSizeMinus()}},{isDivider:!0},{key:li.BOLD,callback(t){t.command.executeBold()}},{key:li.ITALIC,callback(t){t.command.executeItalic()}},{key:li.UNDERLINE,callback(t){t.command.executeUnderline()}},{key:li.STRIKEOUT,callback(t){t.command.executeStrikeout()}},{isDivider:!0},{render(t,e){Bm(t,li.COLOR,n=>{e.command.executeColor(n)})}},{render(t,e){Bm(t,li.HIGHLIGHT,n=>{e.command.executeHighlight(n)})}}];function f9(t){const e=document.createElement("div");e.classList.add(`${Jr}-floating-toolbar`);for(const n of d9)if(n.render)n.render(e,t);else if(n.isDivider){const r=document.createElement("div");r.classList.add(`${Jr}-divider`),e.append(r)}else{const{key:r,callback:i}=n,o=document.createElement("div");o.classList.add(`${Jr}-${r}`);const a=document.createElement("i");o.append(a),o.onclick=()=>{i==null||i(t)},e.append(o)}return e}function cd(t,e){e?t.classList.remove("hide"):t.classList.add("hide")}function $c(t,e){e?t.classList.add("active"):t.classList.remove("active")}function p9(t){const e=f9(t);t.command.getContainer().append(e),t.eventBus.on("rangeStyleChange",r=>{if(r.type===null){cd(e,!1);return}const i=t.command.getRangeContext();if(!i||i.isCollapsed||!i.rangeRects[0]){cd(e,!1);return}const o=i.rangeRects[0];e.style.left=`${o.x}px`,e.style.top=`${o.y+o.height}px`;const a=e.querySelector(`.${Jr}-bold`);a&&$c(a,r.bold);const s=e.querySelector(`.${Jr}-italic`);s&&$c(s,r.italic);const c=e.querySelector(`.${Jr}-underline`);c&&$c(c,r.underline);const u=e.querySelector(`.${Jr}-strikeout`);u&&$c(u,r.strikeout),cd(e,!0)})}var ef={exports:{}},g9=new Proxy({},{get(){throw new Error('Module "" has been externalized for browser compatibility and cannot be accessed in client code.')}}),m9=Object.freeze(Object.defineProperty({__proto__:null,default:g9},Symbol.toStringTag,{value:"Module"})),km=Zm(m9);/**
|
|
* [js-md5]{@link https://github.com/emn178/js-md5}
|
|
*
|
|
* @namespace md5
|
|
* @version 0.8.3
|
|
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
* @copyright Chen, Yi-Cyuan 2014-2023
|
|
* @license MIT
|
|
*/(function(t){(function(){var e="input is invalid type",n="finalize already called",r=typeof window=="object",i=r?window:{};i.JS_MD5_NO_WINDOW&&(r=!1);var o=!r&&typeof self=="object",a=!i.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;a?i=qe:o&&(i=self);var s=!i.JS_MD5_NO_COMMON_JS&&!0&&t.exports,c=!i.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",u="0123456789abcdef".split(""),l=[128,32768,8388608,-2147483648],h=[0,8,16,24],f=["hex","array","digest","buffer","arrayBuffer","base64"],d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),p=[],g;if(c){var y=new ArrayBuffer(68);g=new Uint8Array(y),p=new Uint32Array(y)}var R=Array.isArray;(i.JS_MD5_NO_NODE_JS||!R)&&(R=function(T){return Object.prototype.toString.call(T)==="[object Array]"});var m=ArrayBuffer.isView;c&&(i.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!m)&&(m=function(T){return typeof T=="object"&&T.buffer&&T.buffer.constructor===ArrayBuffer});var v=function(T){var I=typeof T;if(I==="string")return[T,!0];if(I!=="object"||T===null)throw new Error(e);if(c&&T.constructor===ArrayBuffer)return[new Uint8Array(T),!1];if(!R(T)&&!m(T))throw new Error(e);return[T,!1]},x=function(T){return function(I){return new O(!0).update(I)[T]()}},_=function(){var T=x("hex");a&&(T=E(T)),T.create=function(){return new O},T.update=function(M){return T.create().update(M)};for(var I=0;I<f.length;++I){var b=f[I];T[b]=x(b)}return T},E=function(T){var I=km,b=km.Buffer,M;b.from&&!i.JS_MD5_NO_BUFFER_FROM?M=b.from:M=function(F){return new b(F)};var C=function(F){if(typeof F=="string")return I.createHash("md5").update(F,"utf8").digest("hex");if(F==null)throw new Error(e);return F.constructor===ArrayBuffer&&(F=new Uint8Array(F)),R(F)||m(F)||F.constructor===b?I.createHash("md5").update(M(F)).digest("hex"):T(F)};return C},N=function(T){return function(I,b){return new Q(I,!0).update(b)[T]()}},U=function(){var T=N("hex");T.create=function(M){return new Q(M)},T.update=function(M,C){return T.create(M).update(C)};for(var I=0;I<f.length;++I){var b=f[I];T[b]=N(b)}return T};function O(T){if(T)p[0]=p[16]=p[1]=p[2]=p[3]=p[4]=p[5]=p[6]=p[7]=p[8]=p[9]=p[10]=p[11]=p[12]=p[13]=p[14]=p[15]=0,this.blocks=p,this.buffer8=g;else if(c){var I=new ArrayBuffer(68);this.buffer8=new Uint8Array(I),this.blocks=new Uint32Array(I)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}O.prototype.update=function(T){if(this.finalized)throw new Error(n);var I=v(T);T=I[0];for(var b=I[1],M,C=0,F,A=T.length,B=this.blocks,$=this.buffer8;C<A;){if(this.hashed&&(this.hashed=!1,B[0]=B[16],B[16]=B[1]=B[2]=B[3]=B[4]=B[5]=B[6]=B[7]=B[8]=B[9]=B[10]=B[11]=B[12]=B[13]=B[14]=B[15]=0),b)if(c)for(F=this.start;C<A&&F<64;++C)M=T.charCodeAt(C),M<128?$[F++]=M:M<2048?($[F++]=192|M>>>6,$[F++]=128|M&63):M<55296||M>=57344?($[F++]=224|M>>>12,$[F++]=128|M>>>6&63,$[F++]=128|M&63):(M=65536+((M&1023)<<10|T.charCodeAt(++C)&1023),$[F++]=240|M>>>18,$[F++]=128|M>>>12&63,$[F++]=128|M>>>6&63,$[F++]=128|M&63);else for(F=this.start;C<A&&F<64;++C)M=T.charCodeAt(C),M<128?B[F>>>2]|=M<<h[F++&3]:M<2048?(B[F>>>2]|=(192|M>>>6)<<h[F++&3],B[F>>>2]|=(128|M&63)<<h[F++&3]):M<55296||M>=57344?(B[F>>>2]|=(224|M>>>12)<<h[F++&3],B[F>>>2]|=(128|M>>>6&63)<<h[F++&3],B[F>>>2]|=(128|M&63)<<h[F++&3]):(M=65536+((M&1023)<<10|T.charCodeAt(++C)&1023),B[F>>>2]|=(240|M>>>18)<<h[F++&3],B[F>>>2]|=(128|M>>>12&63)<<h[F++&3],B[F>>>2]|=(128|M>>>6&63)<<h[F++&3],B[F>>>2]|=(128|M&63)<<h[F++&3]);else if(c)for(F=this.start;C<A&&F<64;++C)$[F++]=T[C];else for(F=this.start;C<A&&F<64;++C)B[F>>>2]|=T[C]<<h[F++&3];this.lastByteIndex=F,this.bytes+=F-this.start,F>=64?(this.start=F-64,this.hash(),this.hashed=!0):this.start=F}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},O.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var T=this.blocks,I=this.lastByteIndex;T[I>>>2]|=l[I&3],I>=56&&(this.hashed||this.hash(),T[0]=T[16],T[16]=T[1]=T[2]=T[3]=T[4]=T[5]=T[6]=T[7]=T[8]=T[9]=T[10]=T[11]=T[12]=T[13]=T[14]=T[15]=0),T[14]=this.bytes<<3,T[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},O.prototype.hash=function(){var T,I,b,M,C,F,A=this.blocks;this.first?(T=A[0]-680876937,T=(T<<7|T>>>25)-271733879<<0,M=(-1732584194^T&2004318071)+A[1]-117830708,M=(M<<12|M>>>20)+T<<0,b=(-271733879^M&(T^-271733879))+A[2]-1126478375,b=(b<<17|b>>>15)+M<<0,I=(T^b&(M^T))+A[3]-1316259209,I=(I<<22|I>>>10)+b<<0):(T=this.h0,I=this.h1,b=this.h2,M=this.h3,T+=(M^I&(b^M))+A[0]-680876936,T=(T<<7|T>>>25)+I<<0,M+=(b^T&(I^b))+A[1]-389564586,M=(M<<12|M>>>20)+T<<0,b+=(I^M&(T^I))+A[2]+606105819,b=(b<<17|b>>>15)+M<<0,I+=(T^b&(M^T))+A[3]-1044525330,I=(I<<22|I>>>10)+b<<0),T+=(M^I&(b^M))+A[4]-176418897,T=(T<<7|T>>>25)+I<<0,M+=(b^T&(I^b))+A[5]+1200080426,M=(M<<12|M>>>20)+T<<0,b+=(I^M&(T^I))+A[6]-1473231341,b=(b<<17|b>>>15)+M<<0,I+=(T^b&(M^T))+A[7]-45705983,I=(I<<22|I>>>10)+b<<0,T+=(M^I&(b^M))+A[8]+1770035416,T=(T<<7|T>>>25)+I<<0,M+=(b^T&(I^b))+A[9]-1958414417,M=(M<<12|M>>>20)+T<<0,b+=(I^M&(T^I))+A[10]-42063,b=(b<<17|b>>>15)+M<<0,I+=(T^b&(M^T))+A[11]-1990404162,I=(I<<22|I>>>10)+b<<0,T+=(M^I&(b^M))+A[12]+1804603682,T=(T<<7|T>>>25)+I<<0,M+=(b^T&(I^b))+A[13]-40341101,M=(M<<12|M>>>20)+T<<0,b+=(I^M&(T^I))+A[14]-1502002290,b=(b<<17|b>>>15)+M<<0,I+=(T^b&(M^T))+A[15]+1236535329,I=(I<<22|I>>>10)+b<<0,T+=(b^M&(I^b))+A[1]-165796510,T=(T<<5|T>>>27)+I<<0,M+=(I^b&(T^I))+A[6]-1069501632,M=(M<<9|M>>>23)+T<<0,b+=(T^I&(M^T))+A[11]+643717713,b=(b<<14|b>>>18)+M<<0,I+=(M^T&(b^M))+A[0]-373897302,I=(I<<20|I>>>12)+b<<0,T+=(b^M&(I^b))+A[5]-701558691,T=(T<<5|T>>>27)+I<<0,M+=(I^b&(T^I))+A[10]+38016083,M=(M<<9|M>>>23)+T<<0,b+=(T^I&(M^T))+A[15]-660478335,b=(b<<14|b>>>18)+M<<0,I+=(M^T&(b^M))+A[4]-405537848,I=(I<<20|I>>>12)+b<<0,T+=(b^M&(I^b))+A[9]+568446438,T=(T<<5|T>>>27)+I<<0,M+=(I^b&(T^I))+A[14]-1019803690,M=(M<<9|M>>>23)+T<<0,b+=(T^I&(M^T))+A[3]-187363961,b=(b<<14|b>>>18)+M<<0,I+=(M^T&(b^M))+A[8]+1163531501,I=(I<<20|I>>>12)+b<<0,T+=(b^M&(I^b))+A[13]-1444681467,T=(T<<5|T>>>27)+I<<0,M+=(I^b&(T^I))+A[2]-51403784,M=(M<<9|M>>>23)+T<<0,b+=(T^I&(M^T))+A[7]+1735328473,b=(b<<14|b>>>18)+M<<0,I+=(M^T&(b^M))+A[12]-1926607734,I=(I<<20|I>>>12)+b<<0,C=I^b,T+=(C^M)+A[5]-378558,T=(T<<4|T>>>28)+I<<0,M+=(C^T)+A[8]-2022574463,M=(M<<11|M>>>21)+T<<0,F=M^T,b+=(F^I)+A[11]+1839030562,b=(b<<16|b>>>16)+M<<0,I+=(F^b)+A[14]-35309556,I=(I<<23|I>>>9)+b<<0,C=I^b,T+=(C^M)+A[1]-1530992060,T=(T<<4|T>>>28)+I<<0,M+=(C^T)+A[4]+1272893353,M=(M<<11|M>>>21)+T<<0,F=M^T,b+=(F^I)+A[7]-155497632,b=(b<<16|b>>>16)+M<<0,I+=(F^b)+A[10]-1094730640,I=(I<<23|I>>>9)+b<<0,C=I^b,T+=(C^M)+A[13]+681279174,T=(T<<4|T>>>28)+I<<0,M+=(C^T)+A[0]-358537222,M=(M<<11|M>>>21)+T<<0,F=M^T,b+=(F^I)+A[3]-722521979,b=(b<<16|b>>>16)+M<<0,I+=(F^b)+A[6]+76029189,I=(I<<23|I>>>9)+b<<0,C=I^b,T+=(C^M)+A[9]-640364487,T=(T<<4|T>>>28)+I<<0,M+=(C^T)+A[12]-421815835,M=(M<<11|M>>>21)+T<<0,F=M^T,b+=(F^I)+A[15]+530742520,b=(b<<16|b>>>16)+M<<0,I+=(F^b)+A[2]-995338651,I=(I<<23|I>>>9)+b<<0,T+=(b^(I|~M))+A[0]-198630844,T=(T<<6|T>>>26)+I<<0,M+=(I^(T|~b))+A[7]+1126891415,M=(M<<10|M>>>22)+T<<0,b+=(T^(M|~I))+A[14]-1416354905,b=(b<<15|b>>>17)+M<<0,I+=(M^(b|~T))+A[5]-57434055,I=(I<<21|I>>>11)+b<<0,T+=(b^(I|~M))+A[12]+1700485571,T=(T<<6|T>>>26)+I<<0,M+=(I^(T|~b))+A[3]-1894986606,M=(M<<10|M>>>22)+T<<0,b+=(T^(M|~I))+A[10]-1051523,b=(b<<15|b>>>17)+M<<0,I+=(M^(b|~T))+A[1]-2054922799,I=(I<<21|I>>>11)+b<<0,T+=(b^(I|~M))+A[8]+1873313359,T=(T<<6|T>>>26)+I<<0,M+=(I^(T|~b))+A[15]-30611744,M=(M<<10|M>>>22)+T<<0,b+=(T^(M|~I))+A[6]-1560198380,b=(b<<15|b>>>17)+M<<0,I+=(M^(b|~T))+A[13]+1309151649,I=(I<<21|I>>>11)+b<<0,T+=(b^(I|~M))+A[4]-145523070,T=(T<<6|T>>>26)+I<<0,M+=(I^(T|~b))+A[11]-1120210379,M=(M<<10|M>>>22)+T<<0,b+=(T^(M|~I))+A[2]+718787259,b=(b<<15|b>>>17)+M<<0,I+=(M^(b|~T))+A[9]-343485551,I=(I<<21|I>>>11)+b<<0,this.first?(this.h0=T+1732584193<<0,this.h1=I-271733879<<0,this.h2=b-1732584194<<0,this.h3=M+271733878<<0,this.first=!1):(this.h0=this.h0+T<<0,this.h1=this.h1+I<<0,this.h2=this.h2+b<<0,this.h3=this.h3+M<<0)},O.prototype.hex=function(){this.finalize();var T=this.h0,I=this.h1,b=this.h2,M=this.h3;return u[T>>>4&15]+u[T&15]+u[T>>>12&15]+u[T>>>8&15]+u[T>>>20&15]+u[T>>>16&15]+u[T>>>28&15]+u[T>>>24&15]+u[I>>>4&15]+u[I&15]+u[I>>>12&15]+u[I>>>8&15]+u[I>>>20&15]+u[I>>>16&15]+u[I>>>28&15]+u[I>>>24&15]+u[b>>>4&15]+u[b&15]+u[b>>>12&15]+u[b>>>8&15]+u[b>>>20&15]+u[b>>>16&15]+u[b>>>28&15]+u[b>>>24&15]+u[M>>>4&15]+u[M&15]+u[M>>>12&15]+u[M>>>8&15]+u[M>>>20&15]+u[M>>>16&15]+u[M>>>28&15]+u[M>>>24&15]},O.prototype.toString=O.prototype.hex,O.prototype.digest=function(){this.finalize();var T=this.h0,I=this.h1,b=this.h2,M=this.h3;return[T&255,T>>>8&255,T>>>16&255,T>>>24&255,I&255,I>>>8&255,I>>>16&255,I>>>24&255,b&255,b>>>8&255,b>>>16&255,b>>>24&255,M&255,M>>>8&255,M>>>16&255,M>>>24&255]},O.prototype.array=O.prototype.digest,O.prototype.arrayBuffer=function(){this.finalize();var T=new ArrayBuffer(16),I=new Uint32Array(T);return I[0]=this.h0,I[1]=this.h1,I[2]=this.h2,I[3]=this.h3,T},O.prototype.buffer=O.prototype.arrayBuffer,O.prototype.base64=function(){for(var T,I,b,M="",C=this.array(),F=0;F<15;)T=C[F++],I=C[F++],b=C[F++],M+=d[T>>>2]+d[(T<<4|I>>>4)&63]+d[(I<<2|b>>>6)&63]+d[b&63];return T=C[F],M+=d[T>>>2]+d[T<<4&63]+"==",M};function Q(T,I){var b,M=v(T);if(T=M[0],M[1]){var C=[],F=T.length,A=0,B;for(b=0;b<F;++b)B=T.charCodeAt(b),B<128?C[A++]=B:B<2048?(C[A++]=192|B>>>6,C[A++]=128|B&63):B<55296||B>=57344?(C[A++]=224|B>>>12,C[A++]=128|B>>>6&63,C[A++]=128|B&63):(B=65536+((B&1023)<<10|T.charCodeAt(++b)&1023),C[A++]=240|B>>>18,C[A++]=128|B>>>12&63,C[A++]=128|B>>>6&63,C[A++]=128|B&63);T=C}T.length>64&&(T=new O(!0).update(T).array());var $=[],V=[];for(b=0;b<64;++b){var L=T[b]||0;$[b]=92^L,V[b]=54^L}O.call(this,I),this.update(V),this.oKeyPad=$,this.inner=!0,this.sharedMemory=I}Q.prototype=new O,Q.prototype.finalize=function(){if(O.prototype.finalize.call(this),this.inner){this.inner=!1;var T=this.array();O.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(T),O.prototype.finalize.call(this)}};var ne=_();ne.md5=ne,ne.md5.hmac=U(),s?t.exports=ne:i.md5=ne})()})(ef);window.onload=function(){const t=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent);let e="\u672A\u547D\u540D\u6587\u7A3F";const n=document.querySelector(".editor"),r=new wD(n,{header:[{value:"",size:16,rowFlex:st.CENTER}],main:_x,footer:[{value:"",size:12}]},Ox);Reflect.set(window,"editor",r),window.addEventListener("click",ge=>{const we=document.querySelector(".visible");!we||we.contains(ge.target)||we.classList.remove("visible")},{capture:!0});const i=document.querySelector(".menu-item__undo");i.title=`\u64A4\u9500(${t?"\u2318":"Ctrl"}+Z)`,i.onclick=function(){console.log("undo"),r.command.executeUndo()};const o=document.querySelector(".menu-item__redo");o.title=`\u91CD\u505A(${t?"\u2318":"Ctrl"}+Y)`,o.onclick=function(){console.log("redo"),r.command.executeRedo()};const a=document.querySelector(".menu-item__painter");let s=!0,c;a.onclick=function(){s?(s=!1,c=window.setTimeout(()=>{console.log("painter-click"),s=!0,r.command.executePainter({isDblclick:!1})},200)):window.clearTimeout(c)},a.ondblclick=function(){console.log("painter-dblclick"),s=!0,window.clearTimeout(c),r.command.executePainter({isDblclick:!0})},document.querySelector(".menu-item__format").onclick=function(){console.log("format"),r.command.executeFormat()};const u=document.querySelector(".menu-item__font"),l=u.querySelector(".select"),h=u.querySelector(".options");u.onclick=function(){console.log("font"),h.classList.toggle("visible")},h.onclick=function(ge){const we=ge.target;r.command.executeFont(we.dataset.family)};const f=document.querySelector(".menu-item__size"),d=f.querySelector(".select"),p=f.querySelector(".options");f.title="\u8BBE\u7F6E\u5B57\u53F7",f.onclick=function(){console.log("size"),p.classList.toggle("visible")},p.onclick=function(ge){const we=ge.target;r.command.executeSize(Number(we.dataset.size))};const g=document.querySelector(".menu-item__size-add");g.title=`\u589E\u5927\u5B57\u53F7(${t?"\u2318":"Ctrl"}+[)`,g.onclick=function(){console.log("size-add"),r.command.executeSizeAdd()};const y=document.querySelector(".menu-item__size-minus");y.title=`\u51CF\u5C0F\u5B57\u53F7(${t?"\u2318":"Ctrl"}+])`,y.onclick=function(){console.log("size-minus"),r.command.executeSizeMinus()};const R=document.querySelector(".menu-item__bold");R.title=`\u52A0\u7C97(${t?"\u2318":"Ctrl"}+B)`,R.onclick=function(){console.log("bold"),r.command.executeBold()};const m=document.querySelector(".menu-item__italic");m.title=`\u659C\u4F53(${t?"\u2318":"Ctrl"}+I)`,m.onclick=function(){console.log("italic"),r.command.executeItalic()};const v=document.querySelector(".menu-item__underline");v.title=`\u4E0B\u5212\u7EBF(${t?"\u2318":"Ctrl"}+U)`;const x=v.querySelector(".options");v.querySelector(".select").onclick=function(){x.classList.toggle("visible")},v.querySelector("i").onclick=function(){console.log("underline"),r.command.executeUnderline(),x.classList.remove("visible")},v.querySelector("ul").onmousedown=function(ge){const Ee=ge.target.dataset.decorationStyle;r.command.executeUnderline({style:Ee}),x.classList.remove("visible")};const _=document.querySelector(".menu-item__strikeout");_.onclick=function(){console.log("strikeout"),r.command.executeStrikeout()};const E=document.querySelector(".menu-item__superscript");E.title=`\u4E0A\u6807(${t?"\u2318":"Ctrl"}+Shift+,)`,E.onclick=function(){console.log("superscript"),r.command.executeSuperscript()};const N=document.querySelector(".menu-item__subscript");N.title=`\u4E0B\u6807(${t?"\u2318":"Ctrl"}+Shift+.)`,N.onclick=function(){console.log("subscript"),r.command.executeSubscript()};const U=document.querySelector("#color");U.oninput=function(){r.command.executeColor(U.value)};const O=document.querySelector(".menu-item__color"),Q=O.querySelector("span");O.onclick=function(){console.log("color"),U.click()};const ne=document.querySelector("#highlight");ne.oninput=function(){r.command.executeHighlight(ne.value)};const T=document.querySelector(".menu-item__highlight"),I=T.querySelector("span");T.onclick=function(){console.log("highlight"),ne==null||ne.click()};const b=document.querySelector(".menu-item__title"),M=b.querySelector(".select"),C=b.querySelector(".options");C.querySelectorAll("li").forEach((ge,we)=>{ge.title=`Ctrl+${t?"Option":"Alt"}+${we}`}),b.onclick=function(){console.log("title"),C.classList.toggle("visible")},C.onclick=function(ge){const Ee=ge.target.dataset.level;r.command.executeTitle(Ee||null)};const F=document.querySelector(".menu-item__left");F.title=`\u5DE6\u5BF9\u9F50(${t?"\u2318":"Ctrl"}+L)`,F.onclick=function(){console.log("left"),r.command.executeRowFlex(st.LEFT)};const A=document.querySelector(".menu-item__center");A.title=`\u5C45\u4E2D\u5BF9\u9F50(${t?"\u2318":"Ctrl"}+E)`,A.onclick=function(){console.log("center"),r.command.executeRowFlex(st.CENTER)};const B=document.querySelector(".menu-item__right");B.title=`\u53F3\u5BF9\u9F50(${t?"\u2318":"Ctrl"}+R)`,B.onclick=function(){console.log("right"),r.command.executeRowFlex(st.RIGHT)};const $=document.querySelector(".menu-item__alignment");$.title=`\u4E24\u7AEF\u5BF9\u9F50(${t?"\u2318":"Ctrl"}+J)`,$.onclick=function(){console.log("alignment"),r.command.executeRowFlex(st.ALIGNMENT)};const V=document.querySelector(".menu-item__justify");V.title=`\u5206\u6563\u5BF9\u9F50(${t?"\u2318":"Ctrl"}+Shift+J)`,V.onclick=function(){console.log("justify"),r.command.executeRowFlex(st.JUSTIFY)};const L=document.querySelector(".menu-item__row-margin"),z=L.querySelector(".options");L.onclick=function(){console.log("row-margin"),z.classList.toggle("visible")},z.onclick=function(ge){const we=ge.target;r.command.executeRowMargin(Number(we.dataset.rowmargin))};const q=document.querySelector(".menu-item__list");q.title=`\u5217\u8868(${t?"\u2318":"Ctrl"}+Shift+U)`;const se=q.querySelector(".options");q.onclick=function(){console.log("list"),se.classList.toggle("visible")},se.onclick=function(ge){const we=ge.target,Ee=we.dataset.listType||null,Pe=we.dataset.listStyle;r.command.executeList(Ee,Pe)};const ae=document.querySelector(".menu-item__table"),Y=document.querySelector(".menu-item__table__collapse"),X=document.querySelector(".table-close"),k=document.querySelector(".table-select"),G=document.querySelector(".table-panel"),H=[];for(let ge=0;ge<10;ge++){const we=document.createElement("tr");we.classList.add("table-row");const Ee=[];for(let Pe=0;Pe<10;Pe++){const Ie=document.createElement("td");Ie.classList.add("table-cel"),we.append(Ie),Ee.push(Ie)}G.append(we),H.push(Ee)}let te=0,pe=0;function D(){H.forEach(ge=>{ge.forEach(we=>we.classList.remove("active"))})}function oe(ge){k.innerText=ge}function W(){D(),oe("\u63D2\u5165"),te=0,pe=0,Y.style.display="none"}ae.onclick=function(){console.log("table"),Y.style.display="block"},G.onmousemove=function(ge){const{offsetX:Ie,offsetY:Ae}=ge;D(),te=Math.ceil(Ie/(16+6))||1,pe=Math.ceil(Ae/(16+10))||1,H.forEach((ke,ze)=>{ke.forEach((tt,xt)=>{xt<te&&ze<pe&&tt.classList.add("active")})}),oe(`${pe}\xD7${te}`)},X.onclick=function(){W()},G.onclick=function(){r.command.executeInsertTable(pe,te),W()};const w=document.querySelector(".menu-item__image"),S=document.querySelector("#image");w.onclick=function(){S.click()},S.onchange=function(){const ge=S.files[0],we=new FileReader;we.readAsDataURL(ge),we.onload=function(){const Ee=new Image,Pe=we.result;Ee.src=Pe,Ee.onload=function(){r.command.executeImage({value:Pe,width:Ee.width,height:Ee.height}),S.value=""}}};const P=document.querySelector(".menu-item__hyperlink");P.onclick=function(){console.log("hyperlink"),new fn({title:"\u8D85\u94FE\u63A5",data:[{type:"text",label:"\u6587\u672C",name:"name",required:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u672C",value:r.command.getRangeText()},{type:"text",label:"\u94FE\u63A5",name:"url",required:!0,placeholder:"\u8BF7\u8F93\u5165\u94FE\u63A5"}],onConfirm:ge=>{var Pe,Ie;const we=(Pe=ge.find(Ae=>Ae.name==="name"))==null?void 0:Pe.value;if(!we)return;const Ee=(Ie=ge.find(Ae=>Ae.name==="url"))==null?void 0:Ie.value;!Ee||r.command.executeHyperlink({type:fe.HYPERLINK,value:"",url:Ee,valueList:Tr(we).map(Ae=>({value:Ae,size:16}))})}})};const J=document.querySelector(".menu-item__separator"),ie=J.querySelector(".options");J.onclick=function(){console.log("separator"),ie.classList.toggle("visible")},ie.onmousedown=function(ge){var Ie;let we=[];const Pe=(Ie=ge.target.dataset.separator)==null?void 0:Ie.split(",").map(Number);Pe&&(Pe.every(ke=>ke===0)||(we=Pe)),r.command.executeSeparator(we)};const K=document.querySelector(".menu-item__page-break");K.onclick=function(){console.log("pageBreak"),r.command.executePageBreak()};const j=document.querySelector(".menu-item__watermark"),re=j.querySelector(".options");j.onclick=function(){console.log("watermark"),re.classList.toggle("visible")},re.onmousedown=function(ge){const Ee=ge.target.dataset.menu;re.classList.toggle("visible"),Ee==="add"?new fn({title:"\u6C34\u5370",data:[{type:"text",label:"\u5185\u5BB9",name:"data",required:!0,placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},{type:"color",label:"\u989C\u8272",name:"color",required:!0,value:"#AEB5C0"},{type:"number",label:"\u5B57\u4F53\u5927\u5C0F",name:"size",required:!0,value:"120"}],onConfirm:Pe=>{if(~Pe.findIndex(ke=>!ke.value))return;const Ae=Pe.reduce((ke,ze)=>(ke[ze.name]=ze.value,ke),{});r.command.executeAddWatermark({data:Ae.data,color:Ae.color,size:Number(Ae.size)})}}):r.command.executeDeleteWatermark()};const ce=document.querySelector(".menu-item__codeblock");ce.onclick=function(){console.log("codeblock"),new fn({title:"\u4EE3\u7801\u5757",data:[{type:"textarea",name:"codeblock",placeholder:"\u8BF7\u8F93\u5165\u4EE3\u7801",width:500,height:300}],onConfirm:ge=>{var Ae;const we=(Ae=ge.find(ke=>ke.name==="codeblock"))==null?void 0:Ae.value;if(!we)return;const Ee=_1.tokenize(we,_1.languages.javascript),Pe=SD(Ee),Ie=[];for(let ke=0;ke<Pe.length;ke++){const ze=Pe[ke],tt=Tr(ze.content);for(let xt=0;xt<tt.length;xt++){const mr={value:tt[xt]};ze.color&&(mr.color=ze.color),ze.bold&&(mr.bold=!0),ze.italic&&(mr.italic=!0),Ie.push(mr)}}Ie.unshift({value:`
|
|
`}),r.command.executeInsertElementList(Ie)}})};const he=document.querySelector(".menu-item__control"),ve=he.querySelector(".options");he.onclick=function(){console.log("control"),ve.classList.toggle("visible")},ve.onmousedown=function(ge){ve.classList.toggle("visible");const Ee=ge.target.dataset.control;switch(Ee){case vt.TEXT:new fn({title:"\u6587\u672C\u63A7\u4EF6",data:[{type:"text",label:"\u5360\u4F4D\u7B26",name:"placeholder",required:!0,placeholder:"\u8BF7\u8F93\u5165\u5360\u4F4D\u7B26"},{type:"text",label:"\u9ED8\u8BA4\u503C",name:"value",placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u503C"}],onConfirm:Pe=>{var ke,ze;const Ie=(ke=Pe.find(tt=>tt.name==="placeholder"))==null?void 0:ke.value;if(!Ie)return;const Ae=((ze=Pe.find(tt=>tt.name==="value"))==null?void 0:ze.value)||"";r.command.executeInsertElementList([{type:fe.CONTROL,value:"",control:{type:Ee,value:Ae?[{value:Ae}]:null,placeholder:Ie}}])}});break;case vt.SELECT:new fn({title:"\u5217\u4E3E\u63A7\u4EF6",data:[{type:"text",label:"\u5360\u4F4D\u7B26",name:"placeholder",required:!0,placeholder:"\u8BF7\u8F93\u5165\u5360\u4F4D\u7B26"},{type:"text",label:"\u9ED8\u8BA4\u503C",name:"code",placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u503C"},{type:"textarea",label:"\u503C\u96C6",name:"valueSets",required:!0,height:100,placeholder:`\u8BF7\u8F93\u5165\u503C\u96C6JSON\uFF0C\u4F8B\uFF1A
|
|
[{
|
|
"value":"\u6709",
|
|
"code":"98175"
|
|
}]`}],onConfirm:Pe=>{var ze,tt,xt;const Ie=(ze=Pe.find(Nt=>Nt.name==="placeholder"))==null?void 0:ze.value;if(!Ie)return;const Ae=(tt=Pe.find(Nt=>Nt.name==="valueSets"))==null?void 0:tt.value;if(!Ae)return;const ke=(xt=Pe.find(Nt=>Nt.name==="code"))==null?void 0:xt.value;r.command.executeInsertElementList([{type:fe.CONTROL,value:"",control:{type:Ee,code:ke,value:null,placeholder:Ie,valueSets:JSON.parse(Ae)}}])}});break;case vt.CHECKBOX:new fn({title:"\u590D\u9009\u6846\u63A7\u4EF6",data:[{type:"text",label:"\u9ED8\u8BA4\u503C",name:"code",placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u503C\uFF0C\u591A\u4E2A\u503C\u4EE5\u82F1\u6587\u9017\u53F7\u5206\u5272"},{type:"textarea",label:"\u503C\u96C6",name:"valueSets",required:!0,height:100,placeholder:`\u8BF7\u8F93\u5165\u503C\u96C6JSON\uFF0C\u4F8B\uFF1A
|
|
[{
|
|
"value":"\u6709",
|
|
"code":"98175"
|
|
}]`}],onConfirm:Pe=>{var ke,ze;const Ie=(ke=Pe.find(tt=>tt.name==="valueSets"))==null?void 0:ke.value;if(!Ie)return;const Ae=(ze=Pe.find(tt=>tt.name==="code"))==null?void 0:ze.value;r.command.executeInsertElementList([{type:fe.CONTROL,value:"",control:{type:Ee,code:Ae,value:null,valueSets:JSON.parse(Ie)}}])}});break;case vt.RADIO:new fn({title:"\u5355\u9009\u6846\u63A7\u4EF6",data:[{type:"text",label:"\u9ED8\u8BA4\u503C",name:"code",placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u503C"},{type:"textarea",label:"\u503C\u96C6",name:"valueSets",required:!0,height:100,placeholder:`\u8BF7\u8F93\u5165\u503C\u96C6JSON\uFF0C\u4F8B\uFF1A
|
|
[{
|
|
"value":"\u6709",
|
|
"code":"98175"
|
|
}]`}],onConfirm:Pe=>{var ke,ze;const Ie=(ke=Pe.find(tt=>tt.name==="valueSets"))==null?void 0:ke.value;if(!Ie)return;const Ae=(ze=Pe.find(tt=>tt.name==="code"))==null?void 0:ze.value;r.command.executeInsertElementList([{type:fe.CONTROL,value:"",control:{type:Ee,code:Ae,value:null,valueSets:JSON.parse(Ie)}}])}});break;case vt.DATE:new fn({title:"\u65E5\u671F\u63A7\u4EF6",data:[{type:"text",label:"\u5360\u4F4D\u7B26",name:"placeholder",required:!0,placeholder:"\u8BF7\u8F93\u5165\u5360\u4F4D\u7B26"},{type:"text",label:"\u9ED8\u8BA4\u503C",name:"value",placeholder:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u503C"},{type:"select",label:"\u65E5\u671F\u683C\u5F0F",name:"dateFormat",value:"yyyy-MM-dd hh:mm:ss",required:!0,options:[{label:"yyyy-MM-dd hh:mm:ss",value:"yyyy-MM-dd hh:mm:ss"},{label:"yyyy-MM-dd",value:"yyyy-MM-dd"}]}],onConfirm:Pe=>{var ze,tt,xt;const Ie=(ze=Pe.find(Nt=>Nt.name==="placeholder"))==null?void 0:ze.value;if(!Ie)return;const Ae=((tt=Pe.find(Nt=>Nt.name==="value"))==null?void 0:tt.value)||"",ke=((xt=Pe.find(Nt=>Nt.name==="dateFormat"))==null?void 0:xt.value)||"";r.command.executeInsertElementList([{type:fe.CONTROL,value:"",control:{type:Ee,dateFormat:ke,value:Ae?[{value:Ae}]:null,placeholder:Ie}}])}});break}};const _e=document.querySelector(".menu-item__checkbox");_e.onclick=function(){console.log("checkbox"),r.command.executeInsertElementList([{type:fe.CHECKBOX,checkbox:{value:!1},value:""}])};const Fe=document.querySelector(".menu-item__radio");Fe.onclick=function(){console.log("radio"),r.command.executeInsertElementList([{type:fe.RADIO,checkbox:{value:!1},value:""}])};const Xe=document.querySelector(".menu-item__latex");Xe.onclick=function(){console.log("LaTeX"),new fn({title:"LaTeX",data:[{type:"textarea",height:100,name:"value",placeholder:"\u8BF7\u8F93\u5165LaTeX\u6587\u672C"}],onConfirm:ge=>{var Ee;const we=(Ee=ge.find(Pe=>Pe.name==="value"))==null?void 0:Ee.value;!we||r.command.executeInsertElementList([{type:fe.LATEX,value:we}])}})};const Qe=document.querySelector(".menu-item__date"),Ge=Qe.querySelector(".options");Qe.onclick=function(){console.log("date"),Ge.classList.toggle("visible");const ge=document.body.getBoundingClientRect(),we=Ge.getBoundingClientRect();we.left+we.width>ge.width?(Ge.style.right="0px",Ge.style.left="unset"):(Ge.style.right="unset",Ge.style.left="0px");const Ee=new Date,Pe=Ee.getFullYear().toString(),Ie=(Ee.getMonth()+1).toString().padStart(2,"0"),Ae=Ee.getDate().toString().padStart(2,"0"),ke=Ee.getHours().toString().padStart(2,"0"),ze=Ee.getMinutes().toString().padStart(2,"0"),tt=Ee.getSeconds().toString().padStart(2,"0"),xt=`${Pe}-${Ie}-${Ae}`,Nt=`${xt} ${ke}:${ze}:${tt}`;Ge.querySelector("li:first-child").innerText=xt,Ge.querySelector("li:last-child").innerText=Nt},Ge.onmousedown=function(ge){const we=ge.target,Ee=we.dataset.format;Ge.classList.toggle("visible"),r.command.executeInsertElementList([{type:fe.DATE,value:"",dateFormat:Ee,valueList:[{value:we.innerText.trim()}]}])};const Ve=document.querySelector(".menu-item__block");Ve.onclick=function(){console.log("block"),new fn({title:"\u5185\u5BB9\u5757",data:[{type:"select",label:"\u7C7B\u578B",name:"type",value:"iframe",required:!0,options:[{label:"\u7F51\u5740",value:"iframe"},{label:"\u89C6\u9891",value:"video"}]},{type:"number",label:"\u5BBD\u5EA6",name:"width",placeholder:"\u8BF7\u8F93\u5165\u5BBD\u5EA6\uFF08\u9ED8\u8BA4\u9875\u9762\u5185\u5BBD\u5EA6\uFF09"},{type:"number",label:"\u9AD8\u5EA6",name:"height",required:!0,placeholder:"\u8BF7\u8F93\u5165\u9AD8\u5EA6"},{type:"input",label:"\u5730\u5740",name:"src",required:!1,placeholder:"\u8BF7\u8F93\u5165\u5730\u5740"},{type:"textarea",label:"HTML",height:100,name:"srcdoc",required:!1,placeholder:"\u8BF7\u8F93\u5165HTML\u4EE3\u7801\uFF08\u4EC5\u7F51\u5740\u7C7B\u578B\u6709\u6548\uFF09"}],onConfirm:ge=>{var tt,xt,Nt,mr,$i;const we=(tt=ge.find(nn=>nn.name==="type"))==null?void 0:tt.value;if(!we)return;const Ee=(xt=ge.find(nn=>nn.name==="width"))==null?void 0:xt.value,Pe=(Nt=ge.find(nn=>nn.name==="height"))==null?void 0:Nt.value;if(!Pe)return;const Ie=(mr=ge.find(nn=>nn.name==="src"))==null?void 0:mr.value,Ae=($i=ge.find(nn=>nn.name==="srcdoc"))==null?void 0:$i.value,ke={type:we};if(ke.type===Ds.IFRAME){if(!Ie&&!Ae)return;ke.iframeBlock={src:Ie,srcdoc:Ae}}else if(ke.type===Ds.VIDEO){if(!Ie)return;ke.videoBlock={src:Ie}}const ze={type:fe.BLOCK,value:"",height:Number(Pe),block:ke};Ee&&(ze.width=Number(Ee)),r.command.executeInsertElementList([ze])}})};const at=document.querySelector(".menu-item__search__collapse"),It=document.querySelector(".menu-item__search__collapse__search input"),Rt=document.querySelector(".menu-item__search__collapse__replace input"),On=document.querySelector(".menu-item__search");On.title=`\u641C\u7D22\u4E0E\u66FF\u6362(${t?"\u2318":"Ctrl"}+F)`;const or=at.querySelector(".search-result");function qt(){const ge=r.command.getSearchNavigateInfo();if(ge){const{index:we,count:Ee}=ge;or.innerText=`${we}/${Ee}`}else or.innerText=""}On.onclick=function(){console.log("search"),at.style.display="block";const ge=document.body.getBoundingClientRect(),we=On.getBoundingClientRect(),Ee=at.getBoundingClientRect();we.left+Ee.width>ge.width?(at.style.right="0px",at.style.left="unset"):at.style.right="unset",It.focus()},at.querySelector("span").onclick=function(){at.style.display="none",It.value="",Rt.value="",r.command.executeSearch(null),qt()},It.oninput=function(){r.command.executeSearch(It.value||null),qt()},It.onkeydown=function(ge){ge.key==="Enter"&&(r.command.executeSearch(It.value||null),qt())},at.querySelector("button").onclick=function(){const ge=It.value,we=Rt.value;ge&&we&&ge!==we&&r.command.executeReplace(we)},at.querySelector(".arrow-left").onclick=function(){r.command.executeSearchNavigatePre(),qt()},at.querySelector(".arrow-right").onclick=function(){r.command.executeSearchNavigateNext(),qt()};const ar=document.querySelector(".menu-item__print");ar.title=`\u6253\u5370(${t?"\u2318":"Ctrl"}+P)`,ar.onclick=function(){console.log("print"),r.command.executePrint()};const Kn=document.querySelector(".editor-option");Kn.onclick=function(){const ge=r.command.getOptions();new fn({title:"\u7F16\u8F91\u5668\u914D\u7F6E",data:[{type:"textarea",name:"option",width:350,height:300,required:!0,value:JSON.stringify(ge,null,2),placeholder:"\u8BF7\u8F93\u5165\u7F16\u8F91\u5668\u914D\u7F6E"}],onConfirm:we=>{var Ie;const Ee=(Ie=we.find(Ae=>Ae.name==="option"))==null?void 0:Ie.value;if(!Ee)return;const Pe=JSON.parse(Ee);r.command.executeUpdateOptions(Pe)}})};async function en(){const ge=await r.command.getCatalog(),we=document.querySelector(".catalog__main");if(we.innerHTML="",ge){const Ee=(Pe,Ie)=>{for(let Ae=0;Ae<Ie.length;Ae++){const ke=Ie[Ae],ze=document.createElement("div");ze.classList.add("catalog-item");const tt=document.createElement("div");tt.classList.add("catalog-item__content");const xt=document.createElement("span");xt.innerText=ke.name,tt.append(xt),tt.onclick=()=>{r.command.executeLocationCatalog(ke.id)},ze.append(tt),ke.subCatalog&&ke.subCatalog.length&&Ee(ze,ke.subCatalog),Pe.append(ze)}};Ee(we,ge)}}let hn=!0;const Oo=document.querySelector(".catalog"),wl=document.querySelector(".catalog-mode"),Tl=document.querySelector(".catalog__header__close"),hc=()=>{hn=!hn,hn?(Oo.style.display="block",en()):Oo.style.display="none"};wl.onclick=hc,Tl.onclick=hc;const oi=document.querySelector(".page-mode"),Eo=oi.querySelector(".options");oi.onclick=function(){Eo.classList.toggle("visible")},Eo.onclick=function(ge){const we=ge.target;r.command.executePageMode(we.dataset.pageMode)},document.querySelector(".page-scale-percentage").onclick=function(){console.log("page-scale-recovery"),r.command.executePageScaleRecovery()},document.querySelector(".page-scale-minus").onclick=function(){console.log("page-scale-minus"),r.command.executePageScaleMinus()},document.querySelector(".page-scale-add").onclick=function(){console.log("page-scale-add"),r.command.executePageScaleAdd()};const Ba=document.querySelector(".paper-size"),Gi=Ba.querySelector(".options");Ba.onclick=function(){Gi.classList.toggle("visible")},Gi.onclick=function(ge){const we=ge.target,Ee=we.dataset.paperSize,[Pe,Ie]=Ee.split("*").map(Number);r.command.executePaperSize(Pe,Ie),Gi.querySelectorAll("li").forEach(Ae=>Ae.classList.remove("active")),we.classList.add("active")};const Io=document.querySelector(".paper-direction"),No=Io.querySelector(".options");Io.onclick=function(){No.classList.toggle("visible")},No.onclick=function(ge){const we=ge.target,Ee=we.dataset.paperDirection;r.command.executePaperDirection(Ee),No.querySelectorAll("li").forEach(Pe=>Pe.classList.remove("active")),we.classList.add("active")};const Fo=document.querySelector(".paper-margin");Fo.onclick=function(){const[ge,we,Ee,Pe]=r.command.getPaperMargin();new fn({title:"\u9875\u8FB9\u8DDD",data:[{type:"text",label:"\u4E0A\u8FB9\u8DDD",name:"top",required:!0,value:`${ge}`,placeholder:"\u8BF7\u8F93\u5165\u4E0A\u8FB9\u8DDD"},{type:"text",label:"\u4E0B\u8FB9\u8DDD",name:"bottom",required:!0,value:`${Ee}`,placeholder:"\u8BF7\u8F93\u5165\u4E0B\u8FB9\u8DDD"},{type:"text",label:"\u5DE6\u8FB9\u8DDD",name:"left",required:!0,value:`${Pe}`,placeholder:"\u8BF7\u8F93\u5165\u5DE6\u8FB9\u8DDD"},{type:"text",label:"\u53F3\u8FB9\u8DDD",name:"right",required:!0,value:`${we}`,placeholder:"\u8BF7\u8F93\u5165\u53F3\u8FB9\u8DDD"}],onConfirm:Ie=>{var xt,Nt,mr,$i;const Ae=(xt=Ie.find(nn=>nn.name==="top"))==null?void 0:xt.value;if(!Ae)return;const ke=(Nt=Ie.find(nn=>nn.name==="bottom"))==null?void 0:Nt.value;if(!ke)return;const ze=(mr=Ie.find(nn=>nn.name==="left"))==null?void 0:mr.value;if(!ze)return;const tt=($i=Ie.find(nn=>nn.name==="right"))==null?void 0:$i.value;!tt||r.command.executeSetPaperMargin([Number(Ae),Number(tt),Number(ke),Number(ze)])}})};const ka=document.querySelector(".fullscreen");ka.onclick=dc,window.addEventListener("keydown",ge=>{ge.key==="F11"&&(dc(),ge.preventDefault())}),document.addEventListener("fullscreenchange",()=>{ka.classList.toggle("exist")});function dc(){console.log("fullscreen"),document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()}let Ji=0;const fc=[{mode:kt.EDIT,name:"\u7F16\u8F91\u6A21\u5F0F"},{mode:kt.CLEAN,name:"\u6E05\u6D01\u6A21\u5F0F"},{mode:kt.READONLY,name:"\u53EA\u8BFB\u6A21\u5F0F"},{mode:kt.FORM,name:"\u8868\u5355\u6A21\u5F0F"},{mode:kt.PRINT,name:"\u6253\u5370\u6A21\u5F0F"}],pc=document.querySelector(".editor-mode");pc.onclick=function(){Ji===fc.length-1?Ji=0:Ji++;const{name:ge,mode:we}=fc[Ji];pc.innerText=ge,r.command.executeMode(we);const Ee=we===kt.READONLY,Pe=["search","print"];document.querySelectorAll(".menu-item>div").forEach(Ie=>{const Ae=Ie.dataset.menu;Ee&&(!Ae||!Pe.includes(Ae))?Ie.classList.add("disable"):Ie.classList.remove("disable")})};const Si=document.querySelector(".comment");async function gc(){const ge=await r.command.getGroupIds();for(const we of D1){const Ee=Si.querySelector(`.comment-item[data-id='${we.id}']`);if(ge.includes(we.id)){if(!Ee){const Pe=document.createElement("div");Pe.classList.add("comment-item"),Pe.setAttribute("data-id",we.id),Pe.onclick=()=>{r.command.executeLocationGroup(we.id)},Si.append(Pe);const Ie=document.createElement("div");Ie.classList.add("comment-item__title"),Ie.append(document.createElement("span"));const Ae=document.createElement("span");Ae.innerText=we.rangeText,Ie.append(Ae);const ke=document.createElement("i");ke.onclick=()=>{r.command.executeDeleteGroup(we.id)},Ie.append(ke),Pe.append(Ie);const ze=document.createElement("div");ze.classList.add("comment-item__info");const tt=document.createElement("span");tt.innerText=we.userName;const xt=document.createElement("span");xt.innerText=we.createdDate,ze.append(tt),ze.append(xt),Pe.append(ze);const Nt=document.createElement("div");Nt.classList.add("comment-item__content"),Nt.innerText=we.content,Pe.append(Nt),Si.append(Pe)}}else Ee==null||Ee.remove()}}r.listener.rangeStyleChange=function(ge){if(ge.type===fe.SUBSCRIPT?N.classList.add("active"):N.classList.remove("active"),ge.type===fe.SUPERSCRIPT?E.classList.add("active"):E.classList.remove("active"),ge.type===fe.SEPARATOR?J.classList.add("active"):J.classList.remove("active"),ie.querySelectorAll("li").forEach(Ie=>Ie.classList.remove("active")),ge.type===fe.SEPARATOR){const Ie=ge.dashArray.join(",")||"0,0",Ae=ie.querySelector(`[data-separator='${Ie}']`);Ae&&Ae.classList.add("active")}h.querySelectorAll("li").forEach(Ie=>Ie.classList.remove("active"));const we=h.querySelector(`[data-family='${ge.font}']`);we&&(l.innerText=we.innerText,l.style.fontFamily=ge.font,we.classList.add("active")),p.querySelectorAll("li").forEach(Ie=>Ie.classList.remove("active"));const Ee=p.querySelector(`[data-size='${ge.size}']`);if(Ee?(d.innerText=Ee.innerText,Ee.classList.add("active")):d.innerText=`${ge.size}`,ge.bold?R.classList.add("active"):R.classList.remove("active"),ge.italic?m.classList.add("active"):m.classList.remove("active"),ge.underline?v.classList.add("active"):v.classList.remove("active"),ge.strikeout?_.classList.add("active"):_.classList.remove("active"),ge.color?(O.classList.add("active"),U.value=ge.color,Q.style.backgroundColor=ge.color):(O.classList.remove("active"),U.value="#000000",Q.style.backgroundColor="#000000"),ge.highlight?(T.classList.add("active"),ne.value=ge.highlight,I.style.backgroundColor=ge.highlight):(T.classList.remove("active"),ne.value="#ffff00",I.style.backgroundColor="#ffff00"),F.classList.remove("active"),A.classList.remove("active"),B.classList.remove("active"),$.classList.remove("active"),V.classList.remove("active"),ge.rowFlex&&ge.rowFlex==="right"?B.classList.add("active"):ge.rowFlex&&ge.rowFlex==="center"?A.classList.add("active"):ge.rowFlex&&ge.rowFlex==="alignment"?$.classList.add("active"):ge.rowFlex&&ge.rowFlex==="justify"?V.classList.add("active"):F.classList.add("active"),z.querySelectorAll("li").forEach(Ie=>Ie.classList.remove("active")),z.querySelector(`[data-rowmargin='${ge.rowMargin}']`).classList.add("active"),ge.undo?i.classList.remove("no-allow"):i.classList.add("no-allow"),ge.redo?o.classList.remove("no-allow"):o.classList.add("no-allow"),ge.painter?a.classList.add("active"):a.classList.remove("active"),C.querySelectorAll("li").forEach(Ie=>Ie.classList.remove("active")),ge.level){const Ie=C.querySelector(`[data-level='${ge.level}']`);M.innerText=Ie.innerText,Ie.classList.add("active")}else M.innerText="\u6B63\u6587",C.querySelector("li:first-child").classList.add("active");if(se.querySelectorAll("li").forEach(Ie=>Ie.classList.remove("active")),ge.listType){q.classList.add("active");const Ie=ge.listType,Ae=ge.listType===ti.OL?ur.DECIMAL:ge.listType,ke=se.querySelector(`[data-list-type='${Ie}'][data-list-style='${Ae}']`);ke&&ke.classList.add("active")}else q.classList.remove("active");if(Si.querySelectorAll(".comment-item").forEach(Ie=>{Ie.classList.remove("active")}),ge.groupIds){const[Ie]=ge.groupIds,Ae=Si.querySelector(`.comment-item[data-id='${Ie}']`);Ae&&(Ae.classList.add("active"),OD(Si,Ae))}},r.listener.visiblePageNoListChange=function(ge){const we=ge.map(Ee=>Ee+1).join("\u3001");document.querySelector(".page-no-list").innerText=we},r.listener.pageSizeChange=function(ge){document.querySelector(".page-size").innerText=`${ge}`},r.listener.intersectionPageNoChange=function(ge){document.querySelector(".page-no").innerText=`${ge+1}`},r.listener.pageScaleChange=function(ge){document.querySelector(".page-scale-percentage").innerText=`${Math.floor(ge*10*10)}%`},r.listener.controlChange=function(ge){["table","hyperlink","separator","page-break","control"].forEach(Ee=>{const Pe=document.querySelector(`.menu-item__${Ee}`);ge?Pe.classList.add("disable"):Pe.classList.remove("disable")})},r.listener.pageModeChange=function(ge){const we=Eo.querySelector(`[data-page-mode='${ge}']`);Eo.querySelectorAll("li").forEach(Ee=>Ee.classList.remove("active")),we.classList.add("active")};const Di=async function(){const ge=await r.command.getWordCount();document.querySelector(".word-count").innerText=`${ge||0}`,hn&&B1(()=>{en()}),B1(()=>{gc()})};r.listener.contentChange=_D(Di,200),Di();const Za=document.querySelector(".menu-item__import");Za.onclick=()=>{const ge=document.querySelector("#file-docx");ge.click(),ge.onchange=()=>{var Pe;const we=(Pe=ge==null?void 0:ge.files)==null?void 0:Pe[0];if(!we)return;const Ee=new FileReader;Ee.onload=Ie=>{var ke;const Ae=(ke=Ie==null?void 0:Ie.target)==null?void 0:ke.result;Ae instanceof ArrayBuffer&&Hh(r.command,{arrayBuffer:Ae}),e=we.name.substring(0,we.name.lastIndexOf("."))},Ee.readAsArrayBuffer(we)}};const mc=document.querySelector(".menu-item__export");mc.onclick=()=>{new fn({title:"\u8F93\u5165\u6587\u4EF6\u540D",data:[{type:"input",label:"\u6587\u4EF6\u540D",height:40,name:"value",value:e,required:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D"}],onConfirm:ge=>{var Ee;const we=(Ee=ge.find(Pe=>Pe.name==="value"))==null?void 0:Ee.value;!we||n0(r.command,we,"file")}})};const Sl=document.querySelector(".menu-item__save");Sl.onclick=()=>{Po()},r.register.contextMenuList([{name:"\u6279\u6CE8",when:ge=>!ge.isReadonly&&ge.editorHasSelection&&ge.zone===it.MAIN,callback:ge=>{new fn({title:"\u6279\u6CE8",data:[{type:"textarea",label:"\u6279\u6CE8",height:100,name:"value",required:!0,placeholder:"\u8BF7\u8F93\u5165\u6279\u6CE8"}],onConfirm:we=>{var Ie;const Ee=(Ie=we.find(Ae=>Ae.name==="value"))==null?void 0:Ie.value;if(!Ee)return;const Pe=ge.executeSetGroup();!Pe||D1.push({id:Pe,content:Ee,userName:"Hufe",rangeText:ge.getRangeText(),createdDate:new Date().toLocaleString()})}})}},{name:"\u7B7E\u540D",icon:"signature",when:ge=>!ge.isReadonly&&ge.editorTextFocus,callback:ge=>{new DD({onConfirm(we){if(!we)return;const{value:Ee,width:Pe,height:Ie}=we;!Ee||!Pe||!Ie||ge.executeInsertElementList([{value:Ee,width:Pe,height:Ie,type:fe.IMAGE}])}})}},{name:"\u63D2\u5165\u6761\u5F62\u7801",when:ge=>!ge.isReadonly&&ge.editorTextFocus,callback:ge=>{new fn({title:"\u63D2\u5165\u6761\u5F62\u7801",data:[{type:"textarea",label:"\u5185\u5BB9",height:100,name:"value",required:!0,placeholder:"\u8BF7\u8F93\u5165\u5F62\u7801\u5185\u5BB9"}],onConfirm:we=>{var Pe;const Ee=(Pe=we.find(Ie=>Ie.name==="value"))==null?void 0:Pe.value;!Ee||vW(ge,{content:Ee,width:200,height:100})}})}},{name:"\u63D2\u5165\u4E8C\u7EF4\u7801",when:ge=>!ge.isReadonly&&ge.editorTextFocus,callback:ge=>{new fn({title:"\u63D2\u5165\u4E8C\u7EF4\u7801",data:[{type:"textarea",label:"\u5185\u5BB9",height:100,name:"value",required:!0,placeholder:"\u8BF7\u8F93\u5165\u4E8C\u7EF4\u7801\u5185\u5BB9"}],onConfirm:we=>{var Pe;const Ee=(Pe=we.find(Ie=>Ie.name==="value"))==null?void 0:Pe.value;!Ee||u9(ge,{content:Ee,width:120,height:120})}})}},{name:"\u683C\u5F0F\u6574\u7406",icon:"word-tool",when:ge=>!ge.isReadonly,callback:ge=>{ge.executeWordTool()}}]),l9(r),p9(r),r.register.shortcutList([{key:Ke.P,mod:!0,isGlobal:!0,callback:ge=>{ge.executePrint()}},{key:Ke.F,mod:!0,isGlobal:!0,callback:ge=>{const we=ge.getRangeText();On.click(),we&&(It.value=we,r.command.executeSearch(we),qt())}},{key:Ke.MINUS,ctrl:!0,isGlobal:!0,callback:ge=>{ge.executePageScaleMinus()}},{key:Ke.EQUAL,ctrl:!0,isGlobal:!0,callback:ge=>{ge.executePageScaleAdd()}},{key:Ke.ZERO,ctrl:!0,isGlobal:!0,callback:ge=>{ge.executePageScaleRecovery()}}]),r.listener.saved=function(ge){console.log("elementList: ",ge),Po()};async function Po(){new fn({title:"\u8F93\u5165\u6587\u4EF6\u540D",data:[{type:"input",label:"\u6587\u4EF6\u540D",height:40,name:"value",value:e,required:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D"}],onConfirm:async ge=>{var Ae;const we=(Ae=ge.find(ke=>ke.name==="value"))==null?void 0:Ae.value;if(!we)return;const Ee=await n0(r.command,we,"base64"),Pe="docx_"+ef.exports.md5(Ee);localStorage.setItem(Pe,JSON.stringify(r.command.getValue()));const Ie={data:JSON.stringify({content:Ee,title:we}),type:"exportDocx"};window.parent.postMessage(Ie,"*")}})}function _i(ge){return ge.indexOf(".")>-1?ge.substring(0,ge.lastIndexOf(".")):ge}function Qa(ge){if(ge===""||ge.trim()==="")return!1;try{return btoa(atob(ge))==ge}catch{return!1}}function zi(ge){ge=ge.replace(/\=+$/,"");const we=window.atob(ge),Ee=we.length,Pe=new Uint8Array(Ee);for(let Ie=0;Ie<Ee;Ie++)Pe[Ie]=we.charCodeAt(Ie);return Pe.buffer}const Ka=ge=>{const we=ge.data;if(we.type==="start"&&we.title&&(e=_i(we.title)),we.type==="init"){const Ee=we.data;if(!Ee||!Ee.title)return;if(e=_i(Ee.title),Ee.content){if(typeof Ee.content=="string"&&Qa(Ee.content)){const Pe="docx_"+ef.exports.md5(Ee.content),Ie=localStorage.getItem(Pe);if(Ie){const Ae=JSON.parse(Ie);r.command.executeSetValue(Ae.data)}else{const Ae=zi(Ee.content);Hh(r.command,{arrayBuffer:Ae})}}Ee.content instanceof ArrayBuffer&&Hh(r.command,{arrayBuffer:Ee.content})}}};window.parent.postMessage({type:"initSuccess"},"*"),window.addEventListener("message",Ka),window.addEventListener("unload",()=>{window.removeEventListener("message",Ka)})};
|