@topwrite/cli 1.0.79-alpha.0 → 1.0.79-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/ttx.js +2 -2
  2. package/package.json +3 -3
package/bin/ttx.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #! /usr/bin/env node
2
- "use strict";var e=require("commander"),t=require("tmp"),r=require("path"),n=require("consola"),i=require("lodash"),o=require("process"),a=require("url"),s=require("assert"),c=require("http"),l=require("https"),u=require("stream"),h=require("zlib"),p=require("cross-spawn"),f=require("fs"),d=require("vm2"),m=require("js-yaml"),g=require("canvas"),E=require("fs-extra"),T=require("pinyin-pro"),y=require("fstream-ignore"),v=require("archiver"),_=require("tar-pack"),b=require("ejs"),A=require("lookpath"),S=require("jsdom"),k=require("mime-types"),C=require("os"),x=require("constants"),w=require("util"),O=require("events"),N=require("crypto");require("node:path");var P=require("puppeteer"),R=require("node:querystring");function I(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function L(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var D=I(t),M=I(r),F=I(n),H=I(i),B=I(o),U=I(a),j=I(s),q=I(c),z=I(l),G=I(u),K=I(h),$=I(p),V=L(f),Q=I(f),W=I(m),Y=I(E),X=I(y),J=I(v),Z=I(b),ee=I(S),te=I(k),re=I(C),ne=I(x),ie=I(w),oe=I(O),ae=I(N),se=I(P),ce=L(R);const le=F.default.create({});var ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function he(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}var pe={},fe={exports:{}};!function(e){function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,i=1;i<n;++i)t[i]=t[i].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function i(e){return e.toUpperCase()}function o(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function a(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function s(e){var n="[A-Za-z]",i="[0-9]",o=t(i,"[A-Fa-f]"),a=r(r("%[EFef]"+o+"%"+o+o+"%"+o+o)+"|"+r("%[89A-Fa-f]"+o+"%"+o+o)+"|"+r("%"+o+o)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",s),l=e?"[\\uE000-\\uF8FF]":"[]",u=t(n,i,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");r(n+t(n,i,"[\\+\\-\\.]")+"*"),r(r(a+"|"+t(u,s,"[\\:]"))+"*");var h=r(r("25[0-5]")+"|"+r("2[0-4]"+i)+"|"+r("1"+i+i)+"|"+r("0?[1-9]"+i)+"|0?0?"+i),p=r(h+"\\."+h+"\\."+h+"\\."+h),f=r(o+"{1,4}"),d=r(r(f+"\\:"+f)+"|"+p),m=r(r(f+"\\:")+"{6}"+d),g=r("\\:\\:"+r(f+"\\:")+"{5}"+d),E=r(r(f)+"?\\:\\:"+r(f+"\\:")+"{4}"+d),T=r(r(r(f+"\\:")+"{0,1}"+f)+"?\\:\\:"+r(f+"\\:")+"{3}"+d),y=r(r(r(f+"\\:")+"{0,2}"+f)+"?\\:\\:"+r(f+"\\:")+"{2}"+d),v=r(r(r(f+"\\:")+"{0,3}"+f)+"?\\:\\:"+f+"\\:"+d),_=r(r(r(f+"\\:")+"{0,4}"+f)+"?\\:\\:"+d),b=r(r(r(f+"\\:")+"{0,5}"+f)+"?\\:\\:"+f),A=r(r(r(f+"\\:")+"{0,6}"+f)+"?\\:\\:"),S=r([m,g,E,T,y,v,_,b,A].join("|")),k=r(r(u+"|"+a)+"+");r("[vV]"+o+"+\\."+t(u,s,"[\\:]")+"+"),r(r(a+"|"+t(u,s))+"*");var C=r(a+"|"+t(u,s,"[\\:\\@]"));return r(r(a+"|"+t(u,s,"[\\@]"))+"+"),r(r(C+"|"+t("[\\/\\?]",l))+"*"),{NOT_SCHEME:new RegExp(t("[^]",n,i,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",u,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",u,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",u,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",u,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",u,s),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",u,c),"g"),PCT_ENCODED:new RegExp(a,"g"),IPV4ADDRESS:new RegExp("^("+p+")$"),IPV6ADDRESS:new RegExp("^\\[?("+S+")"+r(r("\\%25|\\%(?!"+o+"{2})")+"("+k+")")+"?\\]?$")}}var c=s(!1),l=s(!0),u=function(){function e(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},p=2147483647,f=36,d=1,m=26,g=38,E=700,T=72,y=128,v="-",_=/^xn--/,b=/[^\0-\x7E]/,A=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=f-d,C=Math.floor,x=String.fromCharCode;function w(e){throw new RangeError(S[e])}function O(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function N(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+O((e=e.replace(A,".")).split("."),t).join(".")}function P(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=e.charCodeAt(r++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),r--)}else t.push(i)}return t}var R=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:f},I=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},L=function(e,t,r){var n=0;for(e=r?C(e/E):e>>1,e+=C(e/t);e>k*m>>1;n+=f)e=C(e/k);return C(n+(k+1)*e/(e+g))},D=function(e){var t=[],r=e.length,n=0,i=y,o=T,a=e.lastIndexOf(v);a<0&&(a=0);for(var s=0;s<a;++s)e.charCodeAt(s)>=128&&w("not-basic"),t.push(e.charCodeAt(s));for(var c=a>0?a+1:0;c<r;){for(var l=n,u=1,h=f;;h+=f){c>=r&&w("invalid-input");var g=R(e.charCodeAt(c++));(g>=f||g>C((p-n)/u))&&w("overflow"),n+=g*u;var E=h<=o?d:h>=o+m?m:h-o;if(g<E)break;var _=f-E;u>C(p/_)&&w("overflow"),u*=_}var b=t.length+1;o=L(n-l,b,0==l),C(n/b)>p-i&&w("overflow"),i+=C(n/b),n%=b,t.splice(n++,0,i)}return String.fromCodePoint.apply(String,t)},M=function(e){var t=[],r=(e=P(e)).length,n=y,i=0,o=T,a=!0,s=!1,c=void 0;try{for(var l,u=e[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var h=l.value;h<128&&t.push(x(h))}}catch(e){s=!0,c=e}finally{try{!a&&u.return&&u.return()}finally{if(s)throw c}}var g=t.length,E=g;for(g&&t.push(v);E<r;){var _=p,b=!0,A=!1,S=void 0;try{for(var k,O=e[Symbol.iterator]();!(b=(k=O.next()).done);b=!0){var N=k.value;N>=n&&N<_&&(_=N)}}catch(e){A=!0,S=e}finally{try{!b&&O.return&&O.return()}finally{if(A)throw S}}var R=E+1;_-n>C((p-i)/R)&&w("overflow"),i+=(_-n)*R,n=_;var D=!0,M=!1,F=void 0;try{for(var H,B=e[Symbol.iterator]();!(D=(H=B.next()).done);D=!0){var U=H.value;if(U<n&&++i>p&&w("overflow"),U==n){for(var j=i,q=f;;q+=f){var z=q<=o?d:q>=o+m?m:q-o;if(j<z)break;var G=j-z,K=f-z;t.push(x(I(z+G%K,0))),j=C(G/K)}t.push(x(I(j,0))),o=L(i,R,E==g),i=0,++E}}}catch(e){M=!0,F=e}finally{try{!D&&B.return&&B.return()}finally{if(M)throw F}}++i,++n}return t.join("")},F=function(e){return N(e,(function(e){return _.test(e)?D(e.slice(4).toLowerCase()):e}))},H=function(e){return N(e,(function(e){return b.test(e)?"xn--"+M(e):e}))},B={version:"2.1.0",ucs2:{decode:P,encode:function(e){return String.fromCodePoint.apply(String,h(e))}},decode:D,encode:M,toASCII:H,toUnicode:F},U={};function j(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function q(e){for(var t="",r=0,n=e.length;r<n;){var i=parseInt(e.substr(r+1,2),16);if(i<128)t+=String.fromCharCode(i),r+=3;else if(i>=194&&i<224){if(n-r>=6){var o=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&i)<<6|63&o)}else t+=e.substr(r,6);r+=6}else if(i>=224){if(n-r>=9){var a=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&i)<<12|(63&a)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function z(e,t){function r(e){var r=q(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,j).replace(t.PCT_ENCODED,i)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,j).replace(t.PCT_ENCODED,i)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,j).replace(t.PCT_ENCODED,i)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,j).replace(t.PCT_ENCODED,i)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,j).replace(t.PCT_ENCODED,i)),e}function G(e){return e.replace(/^0*(.*)/,"$1")||"0"}function K(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=u(r,2)[1];return n?n.split(".").map(G).join("."):e}function $(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=u(r,3),i=n[1],o=n[2];if(i){for(var a=i.toLowerCase().split("::").reverse(),s=u(a,2),c=s[0],l=s[1],h=l?l.split(":").map(G):[],p=c.split(":").map(G),f=t.IPV4ADDRESS.test(p[p.length-1]),d=f?7:8,m=p.length-d,g=Array(d),E=0;E<d;++E)g[E]=h[E]||p[m+E]||"";f&&(g[d-1]=K(g[d-1],t));var T=g.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]),y=T.sort((function(e,t){return t.length-e.length}))[0],v=void 0;if(y&&y.length>1){var _=g.slice(0,y.index),b=g.slice(y.index+y.length);v=_.join(":")+"::"+b.join(":")}else v=g.join(":");return o&&(v+="%"+o),v}return e}var V=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Q=void 0==="".match(/(){0}/)[1];function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?l:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var i=e.match(V);if(i){Q?(r.scheme=i[1],r.userinfo=i[3],r.host=i[4],r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=i[7],r.fragment=i[8],isNaN(r.port)&&(r.port=i[5])):(r.scheme=i[1]||void 0,r.userinfo=-1!==e.indexOf("@")?i[3]:void 0,r.host=-1!==e.indexOf("//")?i[4]:void 0,r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=-1!==e.indexOf("?")?i[7]:void 0,r.fragment=-1!==e.indexOf("#")?i[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),r.host&&(r.host=$(K(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var o=U[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)z(r,n);else{if(r.host&&(t.domainHost||o&&o.domainHost))try{r.host=B.toASCII(r.host.replace(n.PCT_ENCODED,q).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}z(r,c)}o&&o.parse&&o.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Y(e,t){var r=!1!==t.iri?l:c,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push($(K(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var X=/^\.\.?\//,J=/^\/\.(\/|$)/,Z=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(X))e=e.replace(X,"");else if(e.match(J))e=e.replace(J,"/");else if(e.match(Z))e=e.replace(Z,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?l:c,n=[],i=U[(t.scheme||e.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||i&&i.domainHost)try{e.host=t.iri?B.toUnicode(e.host):B.toASCII(e.host.replace(r.PCT_ENCODED,q).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}z(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var o=Y(e,t);if(void 0!==o&&("suffix"!==t.reference&&n.push("//"),n.push(o),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var a=e.path;t.absolutePath||i&&i.absolutePath||(a=te(a)),void 0===o&&(a=a.replace(/^\/\//,"/%2F")),n.push(a)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=W(re(e,r),r),t=W(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function ie(e,t,r){var n=a({scheme:"null"},r);return re(ne(W(e,n),W(t,n),n,!0),n)}function oe(e,t){return"string"==typeof e?e=re(W(e,t),t):"object"===n(e)&&(e=W(re(e,t),t)),e}function ae(e,t,r){return"string"==typeof e?e=re(W(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(W(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?l.ESCAPE:c.ESCAPE,j)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?l.PCT_ENCODED:c.PCT_ENCODED,q)}var le={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},ue={scheme:"https",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize};function he(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var pe={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=he(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(he(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=u(r,2),i=n[0],o=n[1];e.path=i&&"/"!==i?i:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},fe={scheme:"wss",domainHost:pe.domainHost,parse:pe.parse,serialize:pe.serialize},de={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",Ee=r(r("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+r("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+r("%"+ge+ge)),Te="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",ye=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),ve="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",_e=new RegExp(me,"g"),be=new RegExp(Ee,"g"),Ae=new RegExp(t("[^]",Te,"[\\.]",'[\\"]',ye),"g"),Se=new RegExp(t("[^]",me,ve),"g"),ke=Se;function Ce(e){var t=q(e);return t.match(_e)?t:e}var xe={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var i=!1,o={},a=r.query.split("&"),s=0,c=a.length;s<c;++s){var l=a[s].split("=");switch(l[0]){case"to":for(var u=l[1].split(","),h=0,p=u.length;h<p;++h)n.push(u[h]);break;case"subject":r.subject=ce(l[1],t);break;case"body":r.body=ce(l[1],t);break;default:i=!0,o[ce(l[0],t)]=ce(l[1],t)}}i&&(r.headers=o)}r.query=void 0;for(var f=0,d=n.length;f<d;++f){var m=n[f].split("@");if(m[0]=ce(m[0]),t.unicodeSupport)m[1]=ce(m[1],t).toLowerCase();else try{m[1]=B.toASCII(ce(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[f]=m.join("@")}return r},serialize:function(e,t){var r=e,n=o(e.to);if(n){for(var a=0,s=n.length;a<s;++a){var c=String(n[a]),l=c.lastIndexOf("@"),u=c.slice(0,l).replace(be,Ce).replace(be,i).replace(Ae,j),h=c.slice(l+1);try{h=t.iri?B.toUnicode(h):B.toASCII(ce(h,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[a]=u+"@"+h}r.path=n.join(",")}var p=e.headers=e.headers||{};e.subject&&(p.subject=e.subject),e.body&&(p.body=e.body);var f=[];for(var d in p)p[d]!==de[d]&&f.push(d.replace(be,Ce).replace(be,i).replace(Se,j)+"="+p[d].replace(be,Ce).replace(be,i).replace(ke,j));return f.length&&(r.query=f.join("&")),r}},we=/^([^\:]+)\:(.*)/,Oe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(we),n=e;if(r){var i=t.scheme||n.scheme||"urn",o=r[1].toLowerCase(),a=r[2],s=i+":"+(t.nid||o),c=U[s];n.nid=o,n.nss=a,n.path=void 0,c&&(n=c.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,i=r+":"+(t.nid||n),o=U[i];o&&(e=o.serialize(e,t));var a=e,s=e.nss;return a.path=(n||t.nid)+":"+s,a}},Ne=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Pe={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(Ne)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};U[le.scheme]=le,U[ue.scheme]=ue,U[pe.scheme]=pe,U[fe.scheme]=fe,U[xe.scheme]=xe,U[Oe.scheme]=Oe,U[Pe.scheme]=Pe,e.SCHEMES=U,e.pctEncChar=j,e.pctDecChars=q,e.parse=W,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=ie,e.normalize=oe,e.equal=ae,e.escapeComponent=se,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(fe.exports);var de=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r},me={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:ge,checkDataTypes:function(e,t,r){if(1===e.length)return ge(e[0],t,r,!0);var n="",i=Te(e);for(var o in i.array&&i.object&&(n=i.null?"(":"(!"+t+" || ",n+="typeof "+t+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer,i)n+=(n?" && ":"")+ge(o,t,r,!0);return n},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var i=t[n];(Ee[i]||"array"===e&&"array"===i)&&(r[r.length]=i)}if(r.length)return r}else{if(Ee[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:Te,getProperty:_e,escapeQuotes:be,equal:de,ucs2length:function(e){for(var t,r=0,n=e.length,i=0;i<n;)r++,(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<n&&56320==(64512&(t=e.charCodeAt(i)))&&i++;return r},varOccurences:function(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var n in e)if(n!=r&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var r in e)if(!t[r])return r},toQuotedString:Ae,getPathExpr:function(e,t,r,n){var i=r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'";return Ce(e,i)},getPath:function(e,t,r){var n=Ae(r?"/"+xe(t):_e(t));return Ce(e,n)},getData:function(e,t,r){var n,i,o,a;if(""===e)return"rootData";if("/"==e[0]){if(!Se.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,o="rootData"}else{if(!(a=e.match(ke)))throw new Error("Invalid JSON-pointer: "+e);if(n=+a[1],"#"==(i=a[2])){if(n>=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(o="data"+(t-n||""),!i)return o}for(var s=o,c=i.split("/"),l=0;l<c.length;l++){var u=c[l];u&&(s+=" && "+(o+=_e(we(u))))}return s},unescapeFragment:function(e){return we(decodeURIComponent(e))},unescapeJsonPointer:we,escapeFragment:function(e){return encodeURIComponent(xe(e))},escapeJsonPointer:xe};function ge(e,t,r,n){var i=n?" !== ":" === ",o=n?" || ":" && ",a=n?"!":"",s=n?"":"!";switch(e){case"null":return t+i+"null";case"array":return a+"Array.isArray("+t+")";case"object":return"("+a+t+o+"typeof "+t+i+'"object"'+o+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+o+s+"("+t+" % 1)"+o+t+i+t+(r?o+a+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(r?o+a+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}var Ee=Te(["string","number","integer","boolean","null"]);function Te(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var ye=/^[a-z$_][a-z$_0-9]*$/i,ve=/'|\\/g;function _e(e){return"number"==typeof e?"["+e+"]":ye.test(e)?"."+e:"['"+be(e)+"']"}function be(e){return e.replace(ve,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function Ae(e){return"'"+be(e)+"'"}var Se=/^\/(?:[^~]|~0|~1)*$/,ke=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Ce(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function xe(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function we(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}var Oe=me,Ne=function(e){Oe.copy(e,this)};var Pe={exports:{}},Re=Pe.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),Ie(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function Ie(e,t,r,n,i,o,a,s,c,l){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var u in t(n,i,o,a,s,c,l),n){var h=n[u];if(Array.isArray(h)){if(u in Re.arrayKeywords)for(var p=0;p<h.length;p++)Ie(e,t,r,h[p],i+"/"+u+"/"+p,o,i,u,n,p)}else if(u in Re.propsKeywords){if(h&&"object"==typeof h)for(var f in h)Ie(e,t,r,h[f],i+"/"+u+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),o,i,u,n,f)}else(u in Re.keywords||e.allKeys&&!(u in Re.skipKeywords))&&Ie(e,t,r,h,i+"/"+u,o,i,u,n)}r(n,i,o,a,s,c,l)}}Re.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},Re.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},Re.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},Re.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};var Le=fe.exports,De=de,Me=me,Fe=Ne,He=Pe.exports,Be=Ue;function Ue(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return Ue.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof Fe)return $e(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var i,o,a,s=je.call(this,t,r);return s&&(i=s.schema,t=s.root,a=s.baseId),i instanceof Fe?o=i.validate||e.call(this,i.schema,t,void 0,a):void 0!==i&&(o=$e(i,this._opts.inlineRefs)?i:e.call(this,i,t,void 0,a)),o}function je(e,t){var r=Le.parse(t),n=Ye(r),i=We(this._getId(e.schema));if(0===Object.keys(e.schema).length||n!==i){var o=Je(n),a=this._refs[o];if("string"==typeof a)return qe.call(this,e,a,r);if(a instanceof Fe)a.validate||this._compile(a),e=a;else{if(!((a=this._schemas[o])instanceof Fe))return;if(a.validate||this._compile(a),o==Je(t))return{schema:a,root:e,baseId:i};e=a}if(!e.schema)return;i=We(this._getId(e.schema))}return Ge.call(this,r,i,e.schema,e)}function qe(e,t,r){var n=je.call(this,e,t);if(n){var i=n.schema,o=n.baseId;e=n.root;var a=this._getId(i);return a&&(o=Ze(o,a)),Ge.call(this,r,o,i,e)}}Ue.normalizeId=Je,Ue.fullPath=We,Ue.url=Ze,Ue.ids=function(e){var t=Je(this._getId(e)),r={"":t},n={"":We(t,!1)},i={},o=this;return He(e,{allKeys:!0},(function(e,t,a,s,c,l,u){if(""!==t){var h=o._getId(e),p=r[s],f=n[s]+"/"+c;if(void 0!==u&&(f+="/"+("number"==typeof u?u:Me.escapeFragment(u))),"string"==typeof h){h=p=Je(p?Le.resolve(p,h):h);var d=o._refs[h];if("string"==typeof d&&(d=o._refs[d]),d&&d.schema){if(!De(e,d.schema))throw new Error('id "'+h+'" resolves to more than one schema')}else if(h!=Je(f))if("#"==h[0]){if(i[h]&&!De(e,i[h]))throw new Error('id "'+h+'" resolves to more than one schema');i[h]=e}else o._refs[h]=f}r[t]=p,n[t]=f}})),i},Ue.inlineRef=$e,Ue.schema=je;var ze=Me.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Ge(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var i=e.fragment.split("/"),o=1;o<i.length;o++){var a=i[o];if(a){if(void 0===(r=r[a=Me.unescapeFragment(a)]))break;var s;if(!ze[a]&&((s=this._getId(r))&&(t=Ze(t,s)),r.$ref)){var c=Ze(t,r.$ref),l=je.call(this,n,c);l&&(r=l.schema,n=l.root,t=l.baseId)}}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var Ke=Me.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function $e(e,t){return!1!==t&&(void 0===t||!0===t?Ve(e):t?Qe(e)<=t:void 0)}function Ve(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!Ve(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!Ve(t))return!1}return!0}function Qe(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=Qe(t)),r==1/0)return 1/0}else for(var i in e){if("$ref"==i)return 1/0;if(Ke[i])r++;else if("object"==typeof(t=e[i])&&(r+=Qe(t)+1),r==1/0)return 1/0}return r}function We(e,t){return!1!==t&&(e=Je(e)),Ye(Le.parse(e))}function Ye(e){return Le.serialize(e).split("#")[0]+"#"}var Xe=/#\/?$/;function Je(e){return e?e.replace(Xe,""):""}function Ze(e,t){return t=Je(t),Le.resolve(e,t)}var et=Be,tt={Validation:nt((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:nt(rt)};function rt(e,t,r){this.message=r||rt.message(e,t),this.missingRef=et.url(e,t),this.missingSchema=et.normalizeId(et.fullPath(this.missingRef))}function nt(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}rt.message=function(e,t){return"can't resolve reference "+t+" from id "+e};var it=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&function(e){return function(t){return function(r,n){var i={key:r,value:t[r]},o={key:n,value:t[n]};return e(i,o)}}}(t.cmp),i=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var o,a;if(Array.isArray(t)){for(a="[",o=0;o<t.length;o++)o&&(a+=","),a+=e(t[o])||"null";return a+"]"}if(null===t)return"null";if(-1!==i.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=i.push(t)-1,c=Object.keys(t).sort(n&&n(t));for(a="",o=0;o<c.length;o++){var l=c[o],u=e(t[l]);u&&(a&&(a+=","),a+=JSON.stringify(l)+":"+u)}return i.splice(s,1),"{"+a+"}"}}(e)},ot=function(e,t,r){var n="",i=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),a=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var c="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(c);e.logger.warn(c)}}if(e.isTop&&(n+=" var validate = ",i&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+a+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){t="false schema";var l=e.level,u=e.dataLevel,h=e.schema[t],p=e.schemaPath+e.util.getProperty(t),f=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,m="data"+(u||""),g="valid"+l;if(!1===e.schema){e.isTop?d=!0:n+=" var "+g+" = false; ",(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";var E=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=i?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var T=e.isTop;l=e.level=0,u=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var y="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(y);e.logger.warn(y)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{l=e.level,m="data"+((u=e.dataLevel)||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),i&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+l+" = errors;"}g="valid"+l,d=!e.opts.allErrors;var v="",_="",b=e.schema.type,A=Array.isArray(b);if(b&&e.opts.nullable&&!0===e.schema.nullable&&(A?-1==b.indexOf("null")&&(b=b.concat("null")):"null"!=b&&(b=[b,"null"],A=!0)),A&&1==b.length&&(b=b[0],A=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),b){if(e.opts.coerceTypes)var S=e.util.coerceToTypes(e.opts.coerceTypes,b);var k=e.RULES.types[b];if(S||A||!0===k||k&&!X(k)){p=e.schemaPath+".type",f=e.errSchemaPath+"/type",p=e.schemaPath+".type",f=e.errSchemaPath+"/type";var C=A?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[C](b,m,e.opts.strictNumbers,!0)+") { ",S){var x="dataType"+l,w="coerced"+l;n+=" var "+x+" = typeof "+m+"; var "+w+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+x+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+x+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+w+" = "+m+"; } "),n+=" if ("+w+" !== undefined) ; ";var O=S;if(O)for(var N,P=-1,R=O.length-1;P<R;)"string"==(N=O[P+=1])?n+=" else if ("+x+" == 'number' || "+x+" == 'boolean') "+w+" = '' + "+m+"; else if ("+m+" === null) "+w+" = ''; ":"number"==N||"integer"==N?(n+=" else if ("+x+" == 'boolean' || "+m+" === null || ("+x+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==N&&(n+=" && !("+m+" % 1)"),n+=")) "+w+" = +"+m+"; "):"boolean"==N?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+w+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+w+" = true; ":"null"==N?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+w+" = null; ":"array"==e.opts.coerceTypes&&"array"==N&&(n+=" else if ("+x+" == 'string' || "+x+" == 'number' || "+x+" == 'boolean' || "+m+" == null) "+w+" = ["+m+"]; ");n+=" else { ",(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=A?""+b.join(","):""+b,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=A?""+b.join(","):""+b,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";E=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } if ("+w+" !== undefined) { ";var I=u?"data"+(u-1||""):"parentData";n+=" "+m+" = "+w+"; ",u||(n+="if ("+I+" !== undefined)"),n+=" "+I+"["+(u?e.dataPathArr[u]:"parentDataProperty")+"] = "+w+"; } "}else{(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=A?""+b.join(","):""+b,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=A?""+b.join(","):""+b,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";E=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } "}}if(e.schema.$ref&&!o)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",d&&(n+=" } if (errors === ",n+=T?"0":"errs_"+l,n+=") { ",_+="}");else{var L=e.RULES;if(L)for(var D=-1,M=L.length-1;D<M;)if(X(k=L[D+=1])){if(k.type&&(n+=" if ("+e.util.checkDataType(k.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==k.type&&e.schema.properties){h=e.schema.properties;var F=Object.keys(h);if(F)for(var H,B=-1,U=F.length-1;B<U;){if(void 0!==(z=h[H=F[B+=1]]).default){var j=m+e.util.getProperty(H);if(e.compositeRule){if(e.opts.strictDefaults){y="default is ignored for: "+j;if("log"!==e.opts.strictDefaults)throw new Error(y);e.logger.warn(y)}}else n+=" if ("+j+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+j+" === null || "+j+" === '' "),n+=" ) "+j+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(z.default)+" ":n+=" "+JSON.stringify(z.default)+" ",n+="; "}}}else if("array"==k.type&&Array.isArray(e.schema.items)){var q=e.schema.items;if(q){P=-1;for(var z,G=q.length-1;P<G;)if(void 0!==(z=q[P+=1]).default){j=m+"["+P+"]";if(e.compositeRule){if(e.opts.strictDefaults){y="default is ignored for: "+j;if("log"!==e.opts.strictDefaults)throw new Error(y);e.logger.warn(y)}}else n+=" if ("+j+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+j+" === null || "+j+" === '' "),n+=" ) "+j+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(z.default)+" ":n+=" "+JSON.stringify(z.default)+" ",n+="; "}}}var K=k.rules;if(K)for(var $,V=-1,Q=K.length-1;V<Q;)if(J($=K[V+=1])){var W=$.code(e,$.keyword,k.type);W&&(n+=" "+W+" ",d&&(v+="}"))}if(d&&(n+=" "+v+" ",v=""),k.type&&(n+=" } ",b&&b===k.type&&!S)){n+=" else { ";var Y;p=e.schemaPath+".type",f=e.errSchemaPath+"/type";(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=A?""+b.join(","):""+b,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=A?""+b.join(","):""+b,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";E=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } "}d&&(n+=" if (errors === ",n+=T?"0":"errs_"+l,n+=") { ",_+="}")}}function X(e){for(var t=e.rules,r=0;r<t.length;r++)if(J(t[r]))return!0}function J(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var r=t.implements,n=0;n<r.length;n++)if(void 0!==e.schema[r[n]])return!0}(t)}return d&&(n+=" "+_+" "),T?(i?(n+=" if (errors === 0) return data; ",n+=" else throw new ValidationError(vErrors); "):(n+=" validate.errors = vErrors; ",n+=" return errors === 0; "),n+=" }; return validate;"):n+=" var "+g+" = errors === errs_"+l+";",n},at=Be,st=me,ct=tt,lt=it,ut=ot,ht=st.ucs2length,pt=de,ft=ct.Validation,dt=function e(t,r,n,i){var o=this,a=this._opts,s=[void 0],c={},l=[],u={},h=[],p={},f=[];r=r||{schema:t,refVal:s,refs:c};var d=mt.call(this,t,r,i),m=this._compilations[d.index];if(d.compiling)return m.callValidate=function e(){var t=m.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var g=this._formats,E=this.RULES;try{var T=v(t,r,n,i);m.validate=T;var y=m.callValidate;return y&&(y.schema=T.schema,y.errors=null,y.refs=T.refs,y.refVal=T.refVal,y.root=T.root,y.$async=T.$async,a.sourceCode&&(y.source=T.source)),T}finally{gt.call(this,t,r,i)}function v(t,n,i,u){var p=!n||n&&n.schema==t;if(n.schema!=r.schema)return e.call(o,t,n,i,u);var d,m=!0===t.$async,T=ut({isTop:!0,schema:t,isRoot:p,baseId:u,root:n,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:ct.MissingRef,RULES:E,validate:ut,util:st,resolve:at,resolveRef:_,usePattern:S,useDefault:k,useCustomRule:C,opts:a,formats:g,logger:o.logger,self:o});T=bt(s,vt)+bt(l,Tt)+bt(h,yt)+bt(f,_t)+T,a.processCode&&(T=a.processCode(T,t));try{d=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",T)(o,E,g,r,s,h,f,pt,ht,ft),s[0]=d}catch(e){throw o.logger.error("Error compiling schema, function code:",T),e}return d.schema=t,d.errors=null,d.refs=c,d.refVal=s,d.root=p?d:n,m&&(d.$async=!0),!0===a.sourceCode&&(d.source={code:T,patterns:l,defaults:h}),d}function _(t,i,l){i=at.url(t,i);var u,h,p=c[i];if(void 0!==p)return A(u=s[p],h="refVal["+p+"]");if(!l&&r.refs){var f=r.refs[i];if(void 0!==f)return A(u=r.refVal[f],h=b(i,u))}h=b(i);var d=at.call(o,v,r,i);if(void 0===d){var m=n&&n[i];m&&(d=at.inlineRef(m,a.inlineRefs)?m:e.call(o,m,r,n,t))}if(void 0!==d)return function(e,t){var r=c[e];s[r]=t}(i,d),A(d,h);!function(e){delete c[e]}(i)}function b(e,t){var r=s.length;return s[r]=t,c[e]=r,"refVal"+r}function A(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function S(e){var t=u[e];return void 0===t&&(t=u[e]=l.length,l[t]=e),"pattern"+t}function k(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return st.toQuotedString(e);case"object":if(null===e)return"null";var t=lt(e),r=p[t];return void 0===r&&(r=p[t]=h.length,h[r]=e),"default"+r}}function C(e,t,r,n){if(!1!==o._opts.validateSchema){var i=e.definition.dependencies;if(i&&!i.every((function(e){return Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have all required keywords: "+i.join(","));var s=e.definition.validateSchema;if(s)if(!s(t)){var c="keyword schema is invalid: "+o.errorsText(s.errors);if("log"!=o._opts.validateSchema)throw new Error(c);o.logger.error(c)}}var l,u=e.definition.compile,h=e.definition.inline,p=e.definition.macro;if(u)l=u.call(o,t,r,n);else if(p)l=p.call(o,t,r,n),!1!==a.validateSchema&&o.validateSchema(l,!0);else if(h)l=h.call(o,n,e.keyword,t,r);else if(!(l=e.definition.validate))return;if(void 0===l)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var d=f.length;return f[d]=l,{code:"customRule"+d,validate:l}}};function mt(e,t,r){var n=Et.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function gt(e,t,r){var n=Et.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function Et(e,t,r){for(var n=0;n<this._compilations.length;n++){var i=this._compilations[n];if(i.schema==e&&i.root==t&&i.baseId==r)return n}return-1}function Tt(e,t){return"var pattern"+e+" = new RegExp("+st.toQuotedString(t[e])+");"}function yt(e){return"var default"+e+" = defaults["+e+"];"}function vt(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function _t(e){return"var customRule"+e+" = customRules["+e+"];"}function bt(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}var At={exports:{}},St=At.exports=function(){this._cache={}};St.prototype.put=function(e,t){this._cache[e]=t},St.prototype.get=function(e){return this._cache[e]},St.prototype.del=function(e){delete this._cache[e]},St.prototype.clear=function(){this._cache={}};var kt=me,Ct=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,xt=[0,31,28,31,30,31,30,31,31,30,31,30,31],wt=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Ot=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,Nt=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Pt=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Rt=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,It=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Lt=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Dt=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Mt=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,Ft=Ht;function Ht(e){return e="full"==e?"full":"fast",kt.copy(Ht[e])}function Bt(e){var t=e.match(Ct);if(!t)return!1;var r=+t[1],n=+t[2],i=+t[3];return n>=1&&n<=12&&i>=1&&i<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:xt[n])}function Ut(e,t){var r=e.match(wt);if(!r)return!1;var n=r[1],i=r[2],o=r[3],a=r[5];return(n<=23&&i<=59&&o<=59||23==n&&59==i&&60==o)&&(!t||a)}Ht.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":Pt,url:Rt,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:Ot,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Gt,uuid:It,"json-pointer":Lt,"json-pointer-uri-fragment":Dt,"relative-json-pointer":Mt},Ht.full={date:Bt,time:Ut,"date-time":function(e){var t=e.split(jt);return 2==t.length&&Bt(t[0])&&Ut(t[1],!0)},uri:function(e){return qt.test(e)&&Nt.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":Pt,url:Rt,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:Ot,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Gt,uuid:It,"json-pointer":Lt,"json-pointer-uri-fragment":Dt,"relative-json-pointer":Mt};var jt=/t|\s/i;var qt=/\/|:/;var zt=/[^\\]\\Z/;function Gt(e){if(zt.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}var Kt=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),p=e.opts.$data&&s&&s.$data;p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s;var f="maximum"==t,d=f?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[d],g=e.opts.$data&&m&&m.$data,E=f?"<":">",T=f?">":"<",y=void 0;if(!p&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(d+" must be number or boolean");if(g){var v=e.util.getData(m.$data,a,e.dataPathArr),_="exclusive"+o,b="exclType"+o,A="exclIsNumber"+o,S="' + "+(x="op"+o)+" + '";i+=" var schemaExcl"+o+" = "+v+"; ",i+=" var "+_+"; var "+b+" = typeof "+(v="schemaExcl"+o)+"; if ("+b+" != 'boolean' && "+b+" != 'undefined' && "+b+" != 'number') { ";var k;y=d;(k=k||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(y||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(i+=" , message: '"+d+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var C=i;i=k.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+C+"]); ":i+=" validate.errors = ["+C+"]; return false; ":i+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+b+" == 'number' ? ( ("+_+" = "+n+" === undefined || "+v+" "+E+"= "+n+") ? "+h+" "+T+"= "+v+" : "+h+" "+T+" "+n+" ) : ( ("+_+" = "+v+" === true) ? "+h+" "+T+"= "+n+" : "+h+" "+T+" "+n+" ) || "+h+" !== "+h+") { var op"+o+" = "+_+" ? '"+E+"' : '"+E+"='; ",void 0===s&&(y=d,l=e.errSchemaPath+"/"+d,n=v,p=g)}else{S=E;if((A="number"==typeof m)&&p){var x="'"+S+"'";i+=" if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" ( "+n+" === undefined || "+m+" "+E+"= "+n+" ? "+h+" "+T+"= "+m+" : "+h+" "+T+" "+n+" ) || "+h+" !== "+h+") { "}else{A&&void 0===s?(_=!0,y=d,l=e.errSchemaPath+"/"+d,n=m,T+="="):(A&&(n=Math[f?"min":"max"](m,s)),m===(!A||n)?(_=!0,y=d,l=e.errSchemaPath+"/"+d,T+="="):(_=!1,S+="="));x="'"+S+"'";i+=" if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+h+" "+T+" "+n+" || "+h+" !== "+h+") { "}}y=y||t,(k=k||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(y||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+x+", limit: "+n+", exclusive: "+_+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be "+S+" ",i+=p?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";C=i;return i=k.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+C+"]); ":i+=" validate.errors = ["+C+"]; return false; ":i+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { "),i},$t=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+h+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var f=t,d=d||[];d.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(f||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==t?"more":"fewer",i+=" than ",i+=p?"' + "+n+" + '":""+s,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var m=i;return i=d.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i},Vt=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");var f="maxLength"==t?">":"<";i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?i+=" "+h+".length ":i+=" ucs2length("+h+") ",i+=" "+f+" "+n+") { ";var d=t,m=m||[];m.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==t?"longer":"shorter",i+=" than ",i+=p?"' + "+n+" + '":""+s,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var g=i;return i=m.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i},Qt=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" Object.keys("+h+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var f=t,d=d||[];d.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(f||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==t?"more":"fewer",i+=" than ",i+=p?"' + "+n+" + '":""+s,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var m=i;return i=d.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i},Wt={$ref:function(e,t,r){var n,i,o=" ",a=e.level,s=e.dataLevel,c=e.schema[t],l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(s||""),p="valid"+a;if("#"==c||"#/"==c)e.isRoot?(n=e.async,i="validate"):(n=!0===e.root.schema.$async,i="root.refVal[0]");else{var f=e.resolveRef(e.baseId,c,e.isRoot);if(void 0===f){var d=e.MissingRefError.message(e.baseId,c);if("fail"==e.opts.missingRefs){e.logger.error(d),(T=T||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",!1!==e.opts.messages&&(o+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(o+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),o+=" } "):o+=" {} ";var m=o;o=T.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(o+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,d);e.logger.warn(d),u&&(o+=" if (true) { ")}}else if(f.inline){var g=e.util.copy(e);g.level++;var E="valid"+g.level;g.schema=f.schema,g.schemaPath="",g.errSchemaPath=c,o+=" "+e.validate(g).replace(/validate\.schema/g,f.code)+" ",u&&(o+=" if ("+E+") { ")}else n=!0===f.$async||e.async&&!1!==f.$async,i=f.code}if(i){var T;(T=T||[]).push(o),o="",e.opts.passContext?o+=" "+i+".call(this, ":o+=" "+i+"( ",o+=" "+h+", (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var y=o+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(o=T.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(o+=" var "+p+"; "),o+=" try { await "+y+"; ",u&&(o+=" "+p+" = true; "),o+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(o+=" "+p+" = false; "),o+=" } ",u&&(o+=" if ("+p+") { ")}else o+=" if (!"+y+") { if (vErrors === null) vErrors = "+i+".errors; else vErrors = vErrors.concat("+i+".errors); errors = vErrors.length; } ",u&&(o+=" else { ")}return o},allOf:function(e,t,r){var n=" ",i=e.schema[t],o=e.schemaPath+e.util.getProperty(t),a=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,c=e.util.copy(e),l="";c.level++;var u="valid"+c.level,h=c.baseId,p=!0,f=i;if(f)for(var d,m=-1,g=f.length-1;m<g;)d=f[m+=1],(e.opts.strictKeywords?"object"==typeof d&&Object.keys(d).length>0||!1===d:e.util.schemaHasRules(d,e.RULES.all))&&(p=!1,c.schema=d,c.schemaPath=o+"["+m+"]",c.errSchemaPath=a+"/"+m,n+=" "+e.validate(c)+" ",c.baseId=h,s&&(n+=" if ("+u+") { ",l+="}"));return s&&(n+=p?" if (true) { ":" "+l.slice(0,-1)+" "),n},anyOf:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g=a.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(g){var E=f.baseId;n+=" var "+p+" = errors; var "+h+" = false; ";var T=e.compositeRule;e.compositeRule=f.compositeRule=!0;var y=a;if(y)for(var v,_=-1,b=y.length-1;_<b;)v=y[_+=1],f.schema=v,f.schemaPath=s+"["+_+"]",f.errSchemaPath=c+"/"+_,n+=" "+e.validate(f)+" ",f.baseId=E,n+=" "+h+" = "+h+" || "+m+"; if (!"+h+") { ",d+="}";e.compositeRule=f.compositeRule=T,n+=" "+d+" if (!"+h+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else l&&(n+=" if (true) { ");return n},$comment:function(e,t,r){var n=" ",i=e.schema[t],o=e.errSchemaPath+"/"+t;e.opts.allErrors;var a=e.util.toQuotedString(i);return!0===e.opts.$comment?n+=" console.log("+a+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+a+", "+e.util.toQuotedString(o)+", validate.root.schema);"),n},const:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p=e.opts.$data&&a&&a.$data;p&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; "),p||(n+=" var schema"+i+" = validate.schema"+s+";"),n+="var "+h+" = equal("+u+", schema"+i+"); if (!"+h+") { ";var f=f||[];f.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var d=n;return n=f.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+d+"]); ":n+=" validate.errors = ["+d+"]; return false; ":n+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",l&&(n+=" else { "),n},contains:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p="errs__"+i,f=e.util.copy(e);f.level++;var d="valid"+f.level,m="i"+i,g=f.dataLevel=e.dataLevel+1,E="data"+g,T=e.baseId,y=e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all);if(n+="var "+p+" = errors;var "+h+";",y){var v=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=a,f.schemaPath=s,f.errSchemaPath=c,n+=" var "+d+" = false; for (var "+m+" = 0; "+m+" < "+u+".length; "+m+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var _=u+"["+m+"]";f.dataPathArr[g]=m;var b=e.validate(f);f.baseId=T,e.util.varOccurences(b,E)<2?n+=" "+e.util.varReplace(b,E,_)+" ":n+=" var "+E+" = "+_+"; "+b+" ",n+=" if ("+d+") break; } ",e.compositeRule=f.compositeRule=v,n+=" if (!"+d+") {"}else n+=" if ("+u+".length == 0) {";var A=A||[];A.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var S=n;return n=A.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",y&&(n+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n},dependencies:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="errs__"+i,p=e.util.copy(e),f="";p.level++;var d="valid"+p.level,m={},g={},E=e.opts.ownProperties;for(_ in a)if("__proto__"!=_){var T=a[_],y=Array.isArray(T)?g:m;y[_]=T}n+="var "+h+" = errors;";var v=e.errorPath;for(var _ in n+="var missing"+i+";",g)if((y=g[_]).length){if(n+=" if ( "+u+e.util.getProperty(_)+" !== undefined ",E&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(_)+"') "),l){n+=" && ( ";var b=y;if(b)for(var A=-1,S=b.length-1;A<S;){N=b[A+=1],A&&(n+=" || "),n+=" ( ( "+(L=u+(I=e.util.getProperty(N)))+" === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(N)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?N:I)+") ) "}n+=")) { ";var k="missing"+i,C="' + "+k+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(v,k,!0):v+" + "+k);var x=x||[];x.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(_)+"', missingProperty: '"+C+"', depsCount: "+y.length+", deps: '"+e.util.escapeQuotes(1==y.length?y[0]:y.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==y.length?n+="property "+e.util.escapeQuotes(y[0]):n+="properties "+e.util.escapeQuotes(y.join(", ")),n+=" when property "+e.util.escapeQuotes(_)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var w=n;n=x.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+w+"]); ":n+=" validate.errors = ["+w+"]; return false; ":n+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var O=y;if(O)for(var N,P=-1,R=O.length-1;P<R;){N=O[P+=1];var I=e.util.getProperty(N),L=(C=e.util.escapeQuotes(N),u+I);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(v,N,e.opts.jsonPointers)),n+=" if ( "+L+" === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(N)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(_)+"', missingProperty: '"+C+"', depsCount: "+y.length+", deps: '"+e.util.escapeQuotes(1==y.length?y[0]:y.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==y.length?n+="property "+e.util.escapeQuotes(y[0]):n+="properties "+e.util.escapeQuotes(y.join(", ")),n+=" when property "+e.util.escapeQuotes(_)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",l&&(f+="}",n+=" else { ")}e.errorPath=v;var D=p.baseId;for(var _ in m){T=m[_];(e.opts.strictKeywords?"object"==typeof T&&Object.keys(T).length>0||!1===T:e.util.schemaHasRules(T,e.RULES.all))&&(n+=" "+d+" = true; if ( "+u+e.util.getProperty(_)+" !== undefined ",E&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(_)+"') "),n+=") { ",p.schema=T,p.schemaPath=s+e.util.getProperty(_),p.errSchemaPath=c+"/"+e.util.escapeFragment(_),n+=" "+e.validate(p)+" ",p.baseId=D,n+=" } ",l&&(n+=" if ("+d+") { ",f+="}"))}return l&&(n+=" "+f+" if ("+h+" == errors) {"),n},enum:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p=e.opts.$data&&a&&a.$data;p&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ");var f="i"+i,d="schema"+i;p||(n+=" var "+d+" = validate.schema"+s+";"),n+="var "+h+";",p&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=h+" = false;for (var "+f+"=0; "+f+"<"+d+".length; "+f+"++) if (equal("+u+", "+d+"["+f+"])) { "+h+" = true; break; }",p&&(n+=" } "),n+=" if (!"+h+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",l&&(n+=" else { "),n},format:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||"");if(!1===e.opts.format)return l&&(n+=" if (true) { "),n;var h,p=e.opts.$data&&a&&a.$data;p?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",h="schema"+i):h=a;var f=e.opts.unknownFormats,d=Array.isArray(f);if(p){n+=" var "+(m="format"+i)+" = formats["+h+"]; var "+(g="isObject"+i)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(E="formatType"+i)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+i+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",p&&(n+=" ("+h+" !== undefined && typeof "+h+" != 'string') || "),n+=" (","ignore"!=f&&(n+=" ("+h+" && !"+m+" ",d&&(n+=" && self._opts.unknownFormats.indexOf("+h+") == -1 "),n+=") || "),n+=" ("+m+" && "+E+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+i+" ? await "+m+"("+u+") : "+m+"("+u+")) ":n+=" "+m+"("+u+") ",n+=" : "+m+".test("+u+"))))) {"}else{var m;if(!(m=e.formats[a])){if("ignore"==f)return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),l&&(n+=" if (true) { "),n;if(d&&f.indexOf(a)>=0)return l&&(n+=" if (true) { "),n;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,E=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var T=!0===m.async;m=m.validate}if(E!=r)return l&&(n+=" if (true) { "),n;if(T){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(y="formats"+e.util.getProperty(a)+".validate")+"("+u+"))) { "}else{n+=" if (! ";var y="formats"+e.util.getProperty(a);g&&(y+=".validate"),n+="function"==typeof m?" "+y+"("+u+") ":" "+y+".test("+u+") ",n+=") { "}}var v=v||[];v.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",n+=p?""+h:""+e.util.toQuotedString(a),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=p?"' + "+h+" + '":""+e.util.escapeQuotes(a),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=p?"validate.schema"+s:""+e.util.toQuotedString(a),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var _=n;return n=v.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+_+"]); ":n+=" validate.errors = ["+_+"]; return false; ":n+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",l&&(n+=" else { "),n},if:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p="errs__"+i,f=e.util.copy(e);f.level++;var d="valid"+f.level,m=e.schema.then,g=e.schema.else,E=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),T=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),y=f.baseId;if(E||T){var v;f.createErrors=!1,f.schema=a,f.schemaPath=s,f.errSchemaPath=c,n+=" var "+p+" = errors; var "+h+" = true; ";var _=e.compositeRule;e.compositeRule=f.compositeRule=!0,n+=" "+e.validate(f)+" ",f.baseId=y,f.createErrors=!0,n+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.compositeRule=f.compositeRule=_,E?(n+=" if ("+d+") { ",f.schema=e.schema.then,f.schemaPath=e.schemaPath+".then",f.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(f)+" ",f.baseId=y,n+=" "+h+" = "+d+"; ",E&&T?n+=" var "+(v="ifClause"+i)+" = 'then'; ":v="'then'",n+=" } ",T&&(n+=" else { ")):n+=" if (!"+d+") { ",T&&(f.schema=e.schema.else,f.schemaPath=e.schemaPath+".else",f.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(f)+" ",f.baseId=y,n+=" "+h+" = "+d+"; ",E&&T?n+=" var "+(v="ifClause"+i)+" = 'else'; ":v="'else'",n+=" } "),n+=" if (!"+h+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+v+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+v+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",l&&(n+=" else { ")}else l&&(n+=" if (true) { ");return n},items:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g="i"+i,E=f.dataLevel=e.dataLevel+1,T="data"+E,y=e.baseId;if(n+="var "+p+" = errors;var "+h+";",Array.isArray(a)){var v=e.schema.additionalItems;if(!1===v){n+=" "+h+" = "+u+".length <= "+a.length+"; ";var _=c;c=e.errSchemaPath+"/additionalItems",n+=" if (!"+h+") { ";var b=b||[];b.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+a.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+a.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var A=n;n=b.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+A+"]); ":n+=" validate.errors = ["+A+"]; return false; ":n+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c=_,l&&(d+="}",n+=" else { ")}var S=a;if(S)for(var k,C=-1,x=S.length-1;C<x;)if(k=S[C+=1],e.opts.strictKeywords?"object"==typeof k&&Object.keys(k).length>0||!1===k:e.util.schemaHasRules(k,e.RULES.all)){n+=" "+m+" = true; if ("+u+".length > "+C+") { ";var w=u+"["+C+"]";f.schema=k,f.schemaPath=s+"["+C+"]",f.errSchemaPath=c+"/"+C,f.errorPath=e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers,!0),f.dataPathArr[E]=C;var O=e.validate(f);f.baseId=y,e.util.varOccurences(O,T)<2?n+=" "+e.util.varReplace(O,T,w)+" ":n+=" var "+T+" = "+w+"; "+O+" ",n+=" } ",l&&(n+=" if ("+m+") { ",d+="}")}if("object"==typeof v&&(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all))){f.schema=v,f.schemaPath=e.schemaPath+".additionalItems",f.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+u+".length > "+a.length+") { for (var "+g+" = "+a.length+"; "+g+" < "+u+".length; "+g+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);w=u+"["+g+"]";f.dataPathArr[E]=g;O=e.validate(f);f.baseId=y,e.util.varOccurences(O,T)<2?n+=" "+e.util.varReplace(O,T,w)+" ":n+=" var "+T+" = "+w+"; "+O+" ",l&&(n+=" if (!"+m+") break; "),n+=" } } ",l&&(n+=" if ("+m+") { ",d+="}")}}else if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){f.schema=a,f.schemaPath=s,f.errSchemaPath=c,n+=" for (var "+g+" = 0; "+g+" < "+u+".length; "+g+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);w=u+"["+g+"]";f.dataPathArr[E]=g;O=e.validate(f);f.baseId=y,e.util.varOccurences(O,T)<2?n+=" "+e.util.varReplace(O,T,w)+" ":n+=" var "+T+" = "+w+"; "+O+" ",l&&(n+=" if (!"+m+") break; "),n+=" }"}return l&&(n+=" "+d+" if ("+p+" == errors) {"),n},maximum:Kt,minimum:Kt,maxItems:$t,minItems:$t,maxLength:Vt,minLength:Vt,maxProperties:Qt,minProperties:Qt,multipleOf:function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");i+="var division"+o+";if (",p&&(i+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),i+=" (division"+o+" = "+h+" / "+n+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+o+" !== parseInt(division"+o+") ",i+=" ) ",p&&(i+=" ) "),i+=" ) { ";var f=f||[];f.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be multiple of ",i+=p?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var d=i;return i=f.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+d+"]); ":i+=" validate.errors = ["+d+"]; return false; ":i+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i},not:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="errs__"+i,p=e.util.copy(e);p.level++;var f="valid"+p.level;if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+h+" = errors; ";var d,m=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1,p.opts.allErrors&&(d=p.opts.allErrors,p.opts.allErrors=!1),n+=" "+e.validate(p)+" ",p.createErrors=!0,d&&(p.opts.allErrors=d),e.compositeRule=p.compositeRule=m,n+=" if ("+f+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var E=n;n=g.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(n+=" if (false) { ");return n},oneOf:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g=f.baseId,E="prevValid"+i,T="passingSchemas"+i;n+="var "+p+" = errors , "+E+" = false , "+h+" = false , "+T+" = null; ";var y=e.compositeRule;e.compositeRule=f.compositeRule=!0;var v=a;if(v)for(var _,b=-1,A=v.length-1;b<A;)_=v[b+=1],(e.opts.strictKeywords?"object"==typeof _&&Object.keys(_).length>0||!1===_:e.util.schemaHasRules(_,e.RULES.all))?(f.schema=_,f.schemaPath=s+"["+b+"]",f.errSchemaPath=c+"/"+b,n+=" "+e.validate(f)+" ",f.baseId=g):n+=" var "+m+" = true; ",b&&(n+=" if ("+m+" && "+E+") { "+h+" = false; "+T+" = ["+T+", "+b+"]; } else { ",d+="}"),n+=" if ("+m+") { "+h+" = "+E+" = true; "+T+" = "+b+"; }";return e.compositeRule=f.compositeRule=y,n+=d+"if (!"+h+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+T+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n},pattern:function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),p=e.opts.$data&&s&&s.$data;p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),i+=" !"+(p?"(new RegExp("+n+"))":e.usePattern(s))+".test("+h+") ) { ";var f=f||[];f.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { pattern: ",i+=p?""+n:""+e.util.toQuotedString(s),i+=" } ",!1!==e.opts.messages&&(i+=" , message: 'should match pattern \"",i+=p?"' + "+n+" + '":""+e.util.escapeQuotes(s),i+="\"' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+e.util.toQuotedString(s),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var d=i;return i=f.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+d+"]); ":i+=" validate.errors = ["+d+"]; return false; ":i+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i},properties:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="errs__"+i,p=e.util.copy(e),f="";p.level++;var d="valid"+p.level,m="key"+i,g="idx"+i,E=p.dataLevel=e.dataLevel+1,T="data"+E,y="dataProperties"+i,v=Object.keys(a||{}).filter(I),_=e.schema.patternProperties||{},b=Object.keys(_).filter(I),A=e.schema.additionalProperties,S=v.length||b.length,k=!1===A,C="object"==typeof A&&Object.keys(A).length,x=e.opts.removeAdditional,w=k||C||x,O=e.opts.ownProperties,N=e.baseId,P=e.schema.required;if(P&&(!e.opts.$data||!P.$data)&&P.length<e.opts.loopRequired)var R=e.util.toHash(P);function I(e){return"__proto__"!==e}if(n+="var "+h+" = errors;var "+d+" = true;",O&&(n+=" var "+y+" = undefined;"),w){if(n+=O?" "+y+" = "+y+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+y+".length; "+g+"++) { var "+m+" = "+y+"["+g+"]; ":" for (var "+m+" in "+u+") { ",S){if(n+=" var isAdditional"+i+" = !(false ",v.length)if(v.length>8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var L=v;if(L)for(var D=-1,M=L.length-1;D<M;)W=L[D+=1],n+=" || "+m+" == "+e.util.toQuotedString(W)+" "}if(b.length){var F=b;if(F)for(var H=-1,B=F.length-1;H<B;)oe=F[H+=1],n+=" || "+e.usePattern(oe)+".test("+m+") "}n+=" ); if (isAdditional"+i+") { "}if("all"==x)n+=" delete "+u+"["+m+"]; ";else{var U=e.errorPath,j="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),k)if(x)n+=" delete "+u+"["+m+"]; ";else{n+=" "+d+" = false; ";var q=c;c=e.errSchemaPath+"/additionalProperties",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { additionalProperty: '"+j+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var z=n;n=re.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+z+"]); ":n+=" validate.errors = ["+z+"]; return false; ":n+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=q,l&&(n+=" break; ")}else if(C)if("failing"==x){n+=" var "+h+" = errors; ";var G=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=A,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var K=u+"["+m+"]";p.dataPathArr[E]=m;var $=e.validate(p);p.baseId=N,e.util.varOccurences($,T)<2?n+=" "+e.util.varReplace($,T,K)+" ":n+=" var "+T+" = "+K+"; "+$+" ",n+=" if (!"+d+") { errors = "+h+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+m+"]; } ",e.compositeRule=p.compositeRule=G}else{p.schema=A,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);K=u+"["+m+"]";p.dataPathArr[E]=m;$=e.validate(p);p.baseId=N,e.util.varOccurences($,T)<2?n+=" "+e.util.varReplace($,T,K)+" ":n+=" var "+T+" = "+K+"; "+$+" ",l&&(n+=" if (!"+d+") break; ")}e.errorPath=U}S&&(n+=" } "),n+=" } ",l&&(n+=" if ("+d+") { ",f+="}")}var V=e.opts.useDefaults&&!e.compositeRule;if(v.length){var Q=v;if(Q)for(var W,Y=-1,X=Q.length-1;Y<X;){var J=a[W=Q[Y+=1]];if(e.opts.strictKeywords?"object"==typeof J&&Object.keys(J).length>0||!1===J:e.util.schemaHasRules(J,e.RULES.all)){var Z=e.util.getProperty(W),ee=(K=u+Z,V&&void 0!==J.default);p.schema=J,p.schemaPath=s+Z,p.errSchemaPath=c+"/"+e.util.escapeFragment(W),p.errorPath=e.util.getPath(e.errorPath,W,e.opts.jsonPointers),p.dataPathArr[E]=e.util.toQuotedString(W);$=e.validate(p);if(p.baseId=N,e.util.varOccurences($,T)<2){$=e.util.varReplace($,T,K);var te=K}else{te=T;n+=" var "+T+" = "+K+"; "}if(ee)n+=" "+$+" ";else{if(R&&R[W]){n+=" if ( "+te+" === undefined ",O&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(W)+"') "),n+=") { "+d+" = false; ";U=e.errorPath,q=c;var re,ne=e.util.escapeQuotes(W);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(U,W,e.opts.jsonPointers)),c=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";z=n;n=re.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+z+"]); ":n+=" validate.errors = ["+z+"]; return false; ":n+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=q,e.errorPath=U,n+=" } else { "}else l?(n+=" if ( "+te+" === undefined ",O&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(W)+"') "),n+=") { "+d+" = true; } else { "):(n+=" if ("+te+" !== undefined ",O&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(W)+"') "),n+=" ) { ");n+=" "+$+" } "}}l&&(n+=" if ("+d+") { ",f+="}")}}if(b.length){var ie=b;if(ie)for(var oe,ae=-1,se=ie.length-1;ae<se;){J=_[oe=ie[ae+=1]];if(e.opts.strictKeywords?"object"==typeof J&&Object.keys(J).length>0||!1===J:e.util.schemaHasRules(J,e.RULES.all)){p.schema=J,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(oe),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(oe),n+=O?" "+y+" = "+y+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+y+".length; "+g+"++) { var "+m+" = "+y+"["+g+"]; ":" for (var "+m+" in "+u+") { ",n+=" if ("+e.usePattern(oe)+".test("+m+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);K=u+"["+m+"]";p.dataPathArr[E]=m;$=e.validate(p);p.baseId=N,e.util.varOccurences($,T)<2?n+=" "+e.util.varReplace($,T,K)+" ":n+=" var "+T+" = "+K+"; "+$+" ",l&&(n+=" if (!"+d+") break; "),n+=" } ",l&&(n+=" else "+d+" = true; "),n+=" } ",l&&(n+=" if ("+d+") { ",f+="}")}}}return l&&(n+=" "+f+" if ("+h+" == errors) {"),n},propertyNames:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="errs__"+i,p=e.util.copy(e);p.level++;var f="valid"+p.level;if(n+="var "+h+" = errors;",e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=c;var d="key"+i,m="idx"+i,g="i"+i,E="' + "+d+" + '",T="data"+(p.dataLevel=e.dataLevel+1),y="dataProperties"+i,v=e.opts.ownProperties,_=e.baseId;v&&(n+=" var "+y+" = undefined; "),n+=v?" "+y+" = "+y+" || Object.keys("+u+"); for (var "+m+"=0; "+m+"<"+y+".length; "+m+"++) { var "+d+" = "+y+"["+m+"]; ":" for (var "+d+" in "+u+") { ",n+=" var startErrs"+i+" = errors; ";var b=d,A=e.compositeRule;e.compositeRule=p.compositeRule=!0;var S=e.validate(p);p.baseId=_,e.util.varOccurences(S,T)<2?n+=" "+e.util.varReplace(S,T,b)+" ":n+=" var "+T+" = "+b+"; "+S+" ",e.compositeRule=p.compositeRule=A,n+=" if (!"+f+") { for (var "+g+"=startErrs"+i+"; "+g+"<errors; "+g+"++) { vErrors["+g+"].propertyName = "+d+"; } var err = ",!1!==e.createErrors?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+E+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+E+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),l&&(n+=" break; "),n+=" } }"}return l&&(n+=" if ("+h+" == errors) {"),n},required:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p=e.opts.$data&&a&&a.$data;p&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ");var f="schema"+i;if(!p)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var d=[],m=a;if(m)for(var g,E=-1,T=m.length-1;E<T;){g=m[E+=1];var y=e.schema.properties[g];y&&(e.opts.strictKeywords?"object"==typeof y&&Object.keys(y).length>0||!1===y:e.util.schemaHasRules(y,e.RULES.all))||(d[d.length]=g)}}else d=a;if(p||d.length){var v=e.errorPath,_=p||d.length>=e.opts.loopRequired,b=e.opts.ownProperties;if(l)if(n+=" var missing"+i+"; ",_){p||(n+=" var "+f+" = validate.schema"+s+"; ");var A="' + "+(O="schema"+i+"["+(C="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(v,O,e.opts.jsonPointers)),n+=" var "+h+" = true; ",p&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=" for (var "+C+" = 0; "+C+" < "+f+".length; "+C+"++) { "+h+" = "+u+"["+f+"["+C+"]] !== undefined ",b&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", "+f+"["+C+"]) "),n+="; if (!"+h+") break; } ",p&&(n+=" } "),n+=" if (!"+h+") { ",(w=w||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var S=n;n=w.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var k=d;if(k)for(var C=-1,x=k.length-1;C<x;){P=k[C+=1],C&&(n+=" || "),n+=" ( ( "+(D=u+(L=e.util.getProperty(P)))+" === undefined ",b&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(P)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?P:L)+") ) "}n+=") { ";var w;A="' + "+(O="missing"+i)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(v,O,!0):v+" + "+O),(w=w||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";S=n;n=w.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(_){p||(n+=" var "+f+" = validate.schema"+s+"; ");var O;A="' + "+(O="schema"+i+"["+(C="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(v,O,e.opts.jsonPointers)),p&&(n+=" if ("+f+" && !Array.isArray("+f+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+f+" !== undefined) { "),n+=" for (var "+C+" = 0; "+C+" < "+f+".length; "+C+"++) { if ("+u+"["+f+"["+C+"]] === undefined ",b&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+f+"["+C+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(n+=" } ")}else{var N=d;if(N)for(var P,R=-1,I=N.length-1;R<I;){P=N[R+=1];var L=e.util.getProperty(P),D=(A=e.util.escapeQuotes(P),u+L);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(v,P,e.opts.jsonPointers)),n+=" if ( "+D+" === undefined ",b&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(P)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=v}else l&&(n+=" if (true) {");return n},uniqueItems:function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),p="valid"+o,f=e.opts.$data&&s&&s.$data;if(f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,(s||f)&&!1!==e.opts.uniqueItems){f&&(i+=" var "+p+"; if ("+n+" === false || "+n+" === undefined) "+p+" = true; else if (typeof "+n+" != 'boolean') "+p+" = false; else { "),i+=" var i = "+h+".length , "+p+" = true , j; if (i > 1) { ";var d=e.schema.items&&e.schema.items.type,m=Array.isArray(d);if(!d||"object"==d||"array"==d||m&&(d.indexOf("object")>=0||d.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+h+"[i], "+h+"[j])) { "+p+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+h+"[i]; ";var g="checkDataType"+(m?"s":"");i+=" if ("+e.util[g](d,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(i+=" if (typeof item == 'string') item = '\"' + item; "),i+=" if (typeof itemIndices[item] == 'number') { "+p+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",f&&(i+=" } "),i+=" if (!"+p+") { ";var E=E||[];E.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var T=i;i=E.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+T+"]); ":i+=" validate.errors = ["+T+"]; return false; ":i+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { ")}else u&&(i+=" if (true) { ");return i},validate:ot},Yt=Wt,Xt=me.toHash,Jt=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"],Zt=tt.MissingRef,er=function e(t,r,n){var i=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(n=r,r=void 0);var o=a(t).then((function(){var e=i._addSchema(t,void 0,r);return e.validate||s(e)}));n&&o.then((function(e){n(null,e)}),n);return o;function a(t){var r=t.$schema;return r&&!i.getSchema(r)?e.call(i,{$ref:r},!0):Promise.resolve()}function s(e){try{return i._compile(e)}catch(t){if(t instanceof Zt)return function(t){var n=t.missingSchema;if(l(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var o=i._loadingSchemas[n];o||(o=i._loadingSchemas[n]=i._opts.loadSchema(n)).then(c,c);return o.then((function(e){if(!l(n))return a(e).then((function(){l(n)||i.addSchema(e,n,void 0,r)}))})).then((function(){return s(e)}));function c(){delete i._loadingSchemas[n]}function l(e){return i._refs[e]||i._schemas[e]}}(t);throw t}}};var tr={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0},rr=tr,nr={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:rr.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:rr.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}},ir=/^[a-z_$][a-z0-9_$-]*$/i,or=function(e,t,r){var n,i,o=" ",a=e.level,s=e.dataLevel,c=e.schema[t],l=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,p="data"+(s||""),f="valid"+a,d="errs__"+a,m=e.opts.$data&&c&&c.$data;m?(o+=" var schema"+a+" = "+e.util.getData(c.$data,s,e.dataPathArr)+"; ",i="schema"+a):i=c;var g,E,T,y,v,_=this,b="definition"+a,A=_.definition,S="";if(m&&A.$data){v="keywordValidate"+a;var k=A.validateSchema;o+=" var "+b+" = RULES.custom['"+t+"'].definition; var "+v+" = "+b+".validate;"}else{if(!(y=e.useCustomRule(_,c,e.schema,e)))return;i="validate.schema"+l,v=y.code,g=A.compile,E=A.inline,T=A.macro}var C=v+".errors",x="i"+a,w="ruleErr"+a,O=A.async;if(O&&!e.async)throw new Error("async keyword in sync schema");if(E||T||(o+=C+" = null;"),o+="var "+d+" = errors;var "+f+";",m&&A.$data&&(S+="}",o+=" if ("+i+" === undefined) { "+f+" = true; } else { ",k&&(S+="}",o+=" "+f+" = "+b+".validateSchema("+i+"); if ("+f+") { ")),E)A.statements?o+=" "+y.validate+" ":o+=" "+f+" = "+y.validate+"; ";else if(T){var N=e.util.copy(e);S="";N.level++;var P="valid"+N.level;N.schema=y.validate,N.schemaPath="";var R=e.compositeRule;e.compositeRule=N.compositeRule=!0;var I=e.validate(N).replace(/validate\.schema/g,v);e.compositeRule=N.compositeRule=R,o+=" "+I}else{(F=F||[]).push(o),o="",o+=" "+v+".call( ",e.opts.passContext?o+="this":o+="self",g||!1===A.schema?o+=" , "+p+" ":o+=" , "+i+" , "+p+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var L=s?"data"+(s-1||""):"parentData",D=s?e.dataPathArr[s]:"parentDataProperty",M=o+=" , "+L+" , "+D+" , rootData ) ";o=F.pop(),!1===A.errors?(o+=" "+f+" = ",O&&(o+="await "),o+=M+"; "):o+=O?" var "+(C="customErrors"+a)+" = null; try { "+f+" = await "+M+"; } catch (e) { "+f+" = false; if (e instanceof ValidationError) "+C+" = e.errors; else throw e; } ":" "+C+" = null; "+f+" = "+M+"; "}if(A.modifying&&(o+=" if ("+L+") "+p+" = "+L+"["+D+"];"),o+=""+S,A.valid)h&&(o+=" if (true) { ");else{var F;o+=" if ( ",void 0===A.valid?(o+=" !",o+=T?""+P:""+f):o+=" "+!A.valid+" ",o+=") { ",n=_.keyword,(F=F||[]).push(o),o="",(F=F||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+_.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+_.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),o+=" } "):o+=" {} ";var H=o;o=F.pop(),!e.compositeRule&&h?e.async?o+=" throw new ValidationError(["+H+"]); ":o+=" validate.errors = ["+H+"]; return false; ":o+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var B=o;o=F.pop(),E?A.errors?"full"!=A.errors&&(o+=" for (var "+x+"="+d+"; "+x+"<errors; "+x+"++) { var "+w+" = vErrors["+x+"]; if ("+w+".dataPath === undefined) "+w+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+w+".schemaPath === undefined) { "+w+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(o+=" "+w+".schema = "+i+"; "+w+".data = "+p+"; "),o+=" } "):!1===A.errors?o+=" "+B+" ":(o+=" if ("+d+" == errors) { "+B+" } else { for (var "+x+"="+d+"; "+x+"<errors; "+x+"++) { var "+w+" = vErrors["+x+"]; if ("+w+".dataPath === undefined) "+w+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+w+".schemaPath === undefined) { "+w+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(o+=" "+w+".schema = "+i+"; "+w+".data = "+p+"; "),o+=" } } "):T?(o+=" var err = ",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+_.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+_.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&h&&(e.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; ")):!1===A.errors?o+=" "+B+" ":(o+=" if (Array.isArray("+C+")) { if (vErrors === null) vErrors = "+C+"; else vErrors = vErrors.concat("+C+"); errors = vErrors.length; for (var "+x+"="+d+"; "+x+"<errors; "+x+"++) { var "+w+" = vErrors["+x+"]; if ("+w+".dataPath === undefined) "+w+".dataPath = (dataPath || '') + "+e.errorPath+"; "+w+'.schemaPath = "'+u+'"; ',e.opts.verbose&&(o+=" "+w+".schema = "+i+"; "+w+".data = "+p+"; "),o+=" } } else { "+B+" } "),o+=" } ",h&&(o+=" else { ")}return o},ar=nr,sr={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!ir.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var n=t.type;if(Array.isArray(n))for(var i=0;i<n.length;i++)a(e,n[i],t);else a(e,n,t);var o=t.metaSchema;o&&(t.$data&&this._opts.$data&&(o={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(o,!0))}function a(e,t,n){for(var i,o=0;o<r.length;o++){var a=r[o];if(a.type==t){i=a;break}}i||(i={type:t,rules:[]},r.push(i));var s={keyword:e,definition:n,custom:!0,code:or,implements:n.implements};i.rules.push(s),r.custom[e]=s}return r.keywords[e]=r.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var n=t[r].rules,i=0;i<n.length;i++)if(n[i].keyword==e){n.splice(i,1);break}return this},validate:function e(t,r){e.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(ar,!0);if(n(t))return!0;if(e.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}};var cr={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},lr=dt,ur=Be,hr=At.exports,pr=Ne,fr=it,dr=Ft,mr=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=Xt(t),e.types=Xt(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var n;if("object"==typeof r){var i=Object.keys(r)[0];n=r[i],r=i,n.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:Yt[r],implements:n}})),e.all.$comment={keyword:"$comment",code:Yt.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=Xt(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e},gr=function(e,t){for(var r=0;r<t.length;r++){e=JSON.parse(JSON.stringify(e));var n,i=t[r].split("/"),o=e;for(n=1;n<i.length;n++)o=o[i[n]];for(n=0;n<Jt.length;n++){var a=Jt[n],s=o[a];s&&(o[a]={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e},Er=me,Tr=Sr;Sr.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var i=r(t);!0!==r.$async&&(this.errors=r.errors);return i},Sr.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},Sr.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],void 0,r,n);return this}var o=this._getId(e);if(void 0!==o&&"string"!=typeof o)throw new Error("schema id must be string");return Nr(this,t=ur.normalizeId(t||o)),this._schemas[t]=this._addSchema(e,r,n,!0),this},Sr.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},Sr.prototype.validateSchema=function(e,t){var r=e.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(_r)?_r:void 0,e._opts.defaultMeta}(this),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,e);if(!n&&t){var i="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(i);this.logger.error(i)}return n},Sr.prototype.getSchema=function(e){var t=kr(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var r=ur.schema.call(e,{schema:{}},t);if(r){var n=r.schema,i=r.root,o=r.baseId,a=lr.call(e,n,i,void 0,o);return e._fragments[t]=new pr({ref:t,fragment:!0,schema:n,root:i,baseId:o,validate:a}),a}}(this,e)}},Sr.prototype.removeSchema=function(e){if(e instanceof RegExp)return Cr(this,this._schemas,e),Cr(this,this._refs,e),this;switch(typeof e){case"undefined":return Cr(this,this._schemas),Cr(this,this._refs),this._cache.clear(),this;case"string":var t=kr(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var r=this._opts.serialize,n=r?r(e):e;this._cache.del(n);var i=this._getId(e);i&&(i=ur.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this},Sr.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},Sr.prototype.errorsText=function(e,t){if(e=e||this.errors,!e)return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,i="",o=0;o<e.length;o++){var a=e[o];a&&(i+=n+a.dataPath+" "+a.message+r)}return i.slice(0,-r.length)},Sr.prototype._addSchema=function(e,t,r,n){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var i=this._opts.serialize,o=i?i(e):e,a=this._cache.get(o);if(a)return a;n=n||!1!==this._opts.addUsedSchema;var s=ur.normalizeId(this._getId(e));s&&n&&Nr(this,s);var c,l=!1!==this._opts.validateSchema&&!t;l&&!(c=s&&s==ur.normalizeId(e.$schema))&&this.validateSchema(e,!0);var u=ur.ids.call(this,e),h=new pr({id:s,schema:e,localRefs:u,cacheKey:o,meta:r});"#"!=s[0]&&n&&(this._refs[s]=h);this._cache.put(o,h),l&&c&&this.validateSchema(e,!0);return h},Sr.prototype._compile=function(e,t){if(e.compiling)return e.validate=i,i.schema=e.schema,i.errors=null,i.root=t||i,!0===e.schema.$async&&(i.$async=!0),i;var r,n;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{n=lr.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=n,e.refs=n.refs,e.refVal=n.refVal,e.root=n.root,n;function i(){var t=e.validate,r=t.apply(this,arguments);return i.errors=t.errors,r}},Sr.prototype.compileAsync=er;var yr=sr;Sr.prototype.addKeyword=yr.add,Sr.prototype.getKeyword=yr.get,Sr.prototype.removeKeyword=yr.remove,Sr.prototype.validateKeyword=yr.validate;var vr=tt;Sr.ValidationError=vr.Validation,Sr.MissingRefError=vr.MissingRef,Sr.$dataMetaSchema=gr;var _r="http://json-schema.org/draft-07/schema",br=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Ar=["/properties"];function Sr(e){if(!(this instanceof Sr))return new Sr(e);e=this._opts=Er.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:Pr,warn:Pr,error:Pr};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=dr(e.format),this._cache=e.cache||new hr,this._loadingSchemas={},this._compilations=[],this.RULES=mr(),this._getId=function(e){switch(e.schemaId){case"auto":return Or;case"id":return xr;default:return wr}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=fr),this._metaOpts=function(e){for(var t=Er.copy(e._opts),r=0;r<br.length;r++)delete t[br[r]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var r=e._opts.formats[t];e.addFormat(t,r)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var r=e._opts.keywords[t];e.addKeyword(t,r)}}(this),function(e){var t;e._opts.$data&&(t=cr,e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var r=tr;e._opts.$data&&(r=gr(r,Ar));e.addMetaSchema(r,_r,!0),e._refs["http://json-schema.org/schema"]=_r}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var r in t)e.addSchema(t[r],r)}(this)}function kr(e,t){return t=ur.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function Cr(e,t,r){for(var n in t){var i=t[n];i.meta||r&&!r.test(n)||(e._cache.del(i.cacheKey),delete t[n])}}function xr(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function wr(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function Or(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function Nr(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function Pr(){}var Rr,Ir={exports:{}},Lr={exports:{}};Lr.exports=(Rr=Rr||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==ue&&ue.crypto&&(r=ue.crypto),!r)try{r=require("crypto")}catch(e){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),o={},a=o.lib={},s=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=s.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)t[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new c.init(t,e)}}),l=o.enc={},u=l.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},h=l.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},p=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*l,o);if(l){for(var h=0;h<l;h+=a)this._doProcessBlock(i,h);r=i.splice(0,l),n.sigBytes-=u}return new c.init(r,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=f.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new d.HMAC.init(e,r).finalize(t)}}});var d=o.algo={};return o}(Math),Rr);var Dr={exports:{}};Dr.exports=function(e){return function(){var t=e,r=t.lib.WordArray;function n(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}t.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(Lr.exports);var Mr={exports:{}};Mr.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],f=e[t+2],d=e[t+3],m=e[t+4],g=e[t+5],E=e[t+6],T=e[t+7],y=e[t+8],v=e[t+9],_=e[t+10],b=e[t+11],A=e[t+12],S=e[t+13],k=e[t+14],C=e[t+15],x=o[0],w=o[1],O=o[2],N=o[3];x=l(x,w,O,N,a,7,s[0]),N=l(N,x,w,O,c,12,s[1]),O=l(O,N,x,w,f,17,s[2]),w=l(w,O,N,x,d,22,s[3]),x=l(x,w,O,N,m,7,s[4]),N=l(N,x,w,O,g,12,s[5]),O=l(O,N,x,w,E,17,s[6]),w=l(w,O,N,x,T,22,s[7]),x=l(x,w,O,N,y,7,s[8]),N=l(N,x,w,O,v,12,s[9]),O=l(O,N,x,w,_,17,s[10]),w=l(w,O,N,x,b,22,s[11]),x=l(x,w,O,N,A,7,s[12]),N=l(N,x,w,O,S,12,s[13]),O=l(O,N,x,w,k,17,s[14]),x=u(x,w=l(w,O,N,x,C,22,s[15]),O,N,c,5,s[16]),N=u(N,x,w,O,E,9,s[17]),O=u(O,N,x,w,b,14,s[18]),w=u(w,O,N,x,a,20,s[19]),x=u(x,w,O,N,g,5,s[20]),N=u(N,x,w,O,_,9,s[21]),O=u(O,N,x,w,C,14,s[22]),w=u(w,O,N,x,m,20,s[23]),x=u(x,w,O,N,v,5,s[24]),N=u(N,x,w,O,k,9,s[25]),O=u(O,N,x,w,d,14,s[26]),w=u(w,O,N,x,y,20,s[27]),x=u(x,w,O,N,S,5,s[28]),N=u(N,x,w,O,f,9,s[29]),O=u(O,N,x,w,T,14,s[30]),x=h(x,w=u(w,O,N,x,A,20,s[31]),O,N,g,4,s[32]),N=h(N,x,w,O,y,11,s[33]),O=h(O,N,x,w,b,16,s[34]),w=h(w,O,N,x,k,23,s[35]),x=h(x,w,O,N,c,4,s[36]),N=h(N,x,w,O,m,11,s[37]),O=h(O,N,x,w,T,16,s[38]),w=h(w,O,N,x,_,23,s[39]),x=h(x,w,O,N,S,4,s[40]),N=h(N,x,w,O,a,11,s[41]),O=h(O,N,x,w,d,16,s[42]),w=h(w,O,N,x,E,23,s[43]),x=h(x,w,O,N,v,4,s[44]),N=h(N,x,w,O,A,11,s[45]),O=h(O,N,x,w,C,16,s[46]),x=p(x,w=h(w,O,N,x,f,23,s[47]),O,N,a,6,s[48]),N=p(N,x,w,O,T,10,s[49]),O=p(O,N,x,w,k,15,s[50]),w=p(w,O,N,x,g,21,s[51]),x=p(x,w,O,N,A,6,s[52]),N=p(N,x,w,O,d,10,s[53]),O=p(O,N,x,w,_,15,s[54]),w=p(w,O,N,x,c,21,s[55]),x=p(x,w,O,N,y,6,s[56]),N=p(N,x,w,O,C,10,s[57]),O=p(O,N,x,w,E,15,s[58]),w=p(w,O,N,x,S,21,s[59]),x=p(x,w,O,N,m,6,s[60]),N=p(N,x,w,O,b,10,s[61]),O=p(O,N,x,w,f,15,s[62]),w=p(w,O,N,x,v,21,s[63]),o[0]=o[0]+x|0,o[1]=o[1]+w|0,o[2]=o[2]+O|0,o[3]=o[3]+N|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function p(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}r.MD5=o._createHelper(c),r.HmacMD5=o._createHmacHelper(c)}(Math),e.MD5}(Lr.exports);var Fr={exports:{}},Hr={exports:{}};Hr.exports=function(e){return r=(t=e).lib,n=r.WordArray,i=r.Hasher,o=t.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],c=r[4],l=0;l<80;l++){if(l<16)a[l]=0|e[t+l];else{var u=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=u<<1|u>>>31}var h=(n<<5|n>>>27)+c+a[l];h+=l<20?1518500249+(i&o|~i&s):l<40?1859775393+(i^o^s):l<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,c=s,s=o,o=i<<30|i>>>2,i=n,n=h}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s),e.SHA1;var t,r,n,i,o,a,s}(Lr.exports);var Br={exports:{}};Br.exports=function(e){var t,r,n;r=(t=e).lib.Base,n=t.enc.Utf8,t.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,c=a.words,l=0;l<r;l++)s[l]^=1549556828,c[l]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})}(Lr.exports),Fr.exports=function(e){return r=(t=e).lib,n=r.Base,i=r.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),a=i.create(),s=a.words,c=n.keySize,l=n.iterations;s.length<c;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var u=1;u<l;u++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*c,a}}),t.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)},e.EvpKDF;var t,r,n,i,o,a,s}(Lr.exports);var Ur={exports:{}};Ur.exports=function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,s=r.enc;s.Utf8;var c=s.Base64,l=r.algo.EvpKDF,u=n.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?y:E}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var h=r.mode={},p=n.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),f=h.CBC=function(){var e=p.extend();function r(e,r,n){var i,o=this._iv;o?(i=o,this._iv=t):i=this._prevBlock;for(var a=0;a<n;a++)e[r+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);n.decryptBlock(e,t),r.call(this,e,t,i),this._prevBlock=o}}),e}(),d=(r.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,a=[],s=0;s<n;s+=4)a.push(i);var c=o.create(a,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:d}),reset:function(){var e;u.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(r.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?o.create([1398893684,1701076831]).concat(r).concat(t):t).toString(c)},parse:function(e){var t,r=c.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),m.create({ciphertext:r,salt:t})}},E=n.SerializableCipher=i.extend({cfg:i.extend({format:g}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return m.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),T=(r.kdf={}).OpenSSL={execute:function(e,t,r,n){n||(n=o.random(8));var i=l.create({keySize:t+r}).compute(e,n),a=o.create(i.words.slice(t),4*r);return i.sigBytes=4*t,m.create({key:i,iv:a,salt:n})}},y=n.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:T}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=E.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=i.iv,E.decrypt.call(this,e,t,i.key,n)}})}()}(Lr.exports),Ir.exports=function(e){return function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],h=[],p=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[r]=d,o[d]=r;var m=e[r],g=e[m],E=e[g],T=257*e[d]^16843008*d;a[r]=T<<24|T>>>8,s[r]=T<<16|T>>>16,c[r]=T<<8|T>>>24,l[r]=T,T=16843009*E^65537*g^257*m^16843008*r,u[d]=T<<24|T>>>8,h[d]=T<<16|T>>>16,p[d]=T<<8|T>>>24,f[d]=T,r?(r=m^e[e[e[E^m]]],n^=e[e[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(l=o[a-1],a%r?r>6&&a%r==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=d[a/r|0]<<24),o[a]=o[a-r]^l);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var l=o[a];else l=o[a-4];s[c]=c<4||a<=4?l:u[i[l>>>24]]^h[i[l>>>16&255]]^p[i[l>>>8&255]]^f[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,h,p,f,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],h=e[t+2]^r[2],p=e[t+3]^r[3],f=4,d=1;d<c;d++){var m=n[l>>>24]^i[u>>>16&255]^o[h>>>8&255]^a[255&p]^r[f++],g=n[u>>>24]^i[h>>>16&255]^o[p>>>8&255]^a[255&l]^r[f++],E=n[h>>>24]^i[p>>>16&255]^o[l>>>8&255]^a[255&u]^r[f++],T=n[p>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&h]^r[f++];l=m,u=g,h=E,p=T}m=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&p])^r[f++],g=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[p>>>8&255]<<8|s[255&l])^r[f++],E=(s[h>>>24]<<24|s[p>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[f++],T=(s[p>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^r[f++],e[t]=m,e[t+1]=g,e[t+2]=E,e[t+3]=T},keySize:8});t.AES=r._createHelper(m)}(),e.AES}(Lr.exports);var jr={exports:{}};jr.exports=function(e){return e.enc.Utf8}(Lr.exports);const qr={},zr={};function Gr(e,t){let r=t;for(let t=0;t<e.length;t++){const n=t===e.length-1,i=e.charAt(t),o=r[i]||(r[i]={chars:{}});n&&(o.self=e),r=o.chars}}function Kr(e){if(0===e.length)return qr;const t={};for(const r of e)Gr(r,t);return t}function $r(e){if(0===e.length)return zr;const t={};for(const r of e)t[r]=!0;return t}const Vr={},Qr={type:"String",optional:!0};function Wr(e){const t={optional:!1};function r(e){if(t.type&&t.type!==e)throw new Error(`Conflicting pseudo-class argument type: "${t.type}" vs "${e}".`);t.type=e}for(const n of e)"NoArgument"===n&&(t.optional=!0),"Formula"===n&&r("Formula"),"FormulaOfSelector"===n&&(r("Formula"),t.ofSelector=!0),"String"===n&&r("String"),"Selector"===n&&r("Selector");return t}function Yr(e){const t=function(e){const t={};for(const r of Object.keys(e)){const n=e[r];if(n)for(const e of n)(t[e]||(t[e]=[])).push(r)}return t}(e),r={};for(const e of Object.keys(t)){const n=t[e];n&&(r[e]=Wr(n))}return r}const Xr={},Jr={wildcard:!0};function Zr(e){return e?"boolean"==typeof e?Jr:e:Xr}function en(e,t){const r={...e};if("tag"in t)if(t.tag){r.tag={...Zr(e.tag)};const n=Zr(t.tag);"wildcard"in n&&(r.tag.wildcard=n.wildcard)}else r.tag=void 0;if("ids"in t&&(r.ids=t.ids),"classNames"in t&&(r.classNames=t.classNames),"namespace"in t)if(t.namespace){r.namespace={...Zr(e.namespace)};const n=Zr(t.namespace);"wildcard"in n&&(r.namespace.wildcard=n.wildcard)}else r.namespace=void 0;if("combinators"in t&&(t.combinators?r.combinators=r.combinators?r.combinators.concat(t.combinators):t.combinators:r.combinators=void 0),"attributes"in t&&(t.attributes?(r.attributes={...e.attributes},"unknownCaseSensitivityModifiers"in t.attributes&&(r.attributes.unknownCaseSensitivityModifiers=t.attributes.unknownCaseSensitivityModifiers),"operators"in t.attributes&&(r.attributes.operators=t.attributes.operators?r.attributes.operators?r.attributes.operators.concat(t.attributes.operators):t.attributes.operators:void 0),"caseSensitivityModifiers"in t.attributes&&(r.attributes.caseSensitivityModifiers=t.attributes.caseSensitivityModifiers?r.attributes.caseSensitivityModifiers?r.attributes.caseSensitivityModifiers.concat(t.attributes.caseSensitivityModifiers):t.attributes.caseSensitivityModifiers:void 0)):r.attributes=void 0),"pseudoElements"in t&&(t.pseudoElements?(r.pseudoElements={...e.pseudoElements},"unknown"in t.pseudoElements&&(r.pseudoElements.unknown=t.pseudoElements.unknown),"notation"in t.pseudoElements&&(r.pseudoElements.notation=t.pseudoElements.notation),"definitions"in t.pseudoElements&&(r.pseudoElements.definitions=t.pseudoElements.definitions?r.pseudoElements.definitions?r.pseudoElements.definitions.concat(t.pseudoElements.definitions):t.pseudoElements.definitions:void 0)):r.pseudoElements=void 0),"pseudoClasses"in t)if(t.pseudoClasses){if(r.pseudoClasses={...e.pseudoClasses},"unknown"in t.pseudoClasses&&(r.pseudoClasses.unknown=t.pseudoClasses.unknown),"definitions"in t.pseudoClasses){const e=t.pseudoClasses.definitions;if(e){r.pseudoClasses.definitions={...r.pseudoClasses.definitions};const t=r.pseudoClasses.definitions;for(const r of Object.keys(e)){const n=e[r],i=t[r];t[r]=n?i?i.concat(n):n:void 0}}else r.pseudoClasses.definitions=void 0}}else r.pseudoClasses=void 0;return r}const tn={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},rn=en(tn,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),nn=en(rn,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),on=en(nn,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has"]}}}),an={css1:tn,css2:rn,css3:nn,"selectors-3":nn,"selectors-4":on,latest:on,progressive:en(on,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}})};function sn(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"-"===e||"_"===e}function cn(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}const ln={n:"\n",r:"\r",t:"\t",f:"\f","\\":"\\"},un={" ":!0,"\t":!0,"\n":!0,"\r":!0,"\f":!0},hn={'"':!0,"'":!0},pn={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},fn="css-selector-parser parse error: ";const dn=function(e={}){const{syntax:t="latest",substitutes:r,strict:n=!0}=e;let i="string"==typeof t?an[t]:t;i.baseSyntax&&(i=en(an[i.baseSyntax],i));const[o,a]=i.tag?[!0,Boolean(Zr(i.tag).wildcard)]:[!1,!1],s=Boolean(i.ids),c=Boolean(i.classNames),l=Boolean(i.namespace),u=i.namespace&&(!0===i.namespace||!0===i.namespace.wildcard);if(l&&!o)throw new Error(`${fn}Namespaces cannot be enabled while tags are disabled.`);const h=Boolean(r),p=i.combinators?Kr(i.combinators):qr,[f,d,m,g]=i.attributes?[!0,i.attributes.operators?Kr(i.attributes.operators):qr,i.attributes.caseSensitivityModifiers?$r(i.attributes.caseSensitivityModifiers):zr,"accept"===i.attributes.unknownCaseSensitivityModifiers]:[!1,qr,zr,!1],E=g||Object.keys(m).length>0,[T,y,v]=i.pseudoClasses?[!0,i.pseudoClasses.definitions?Yr(i.pseudoClasses.definitions):Vr,"accept"===i.pseudoClasses.unknown]:[!1,Vr,!1],[_,b,A,S,k]=i.pseudoElements?[!0,"singleColon"===i.pseudoElements.notation||"both"===i.pseudoElements.notation,!i.pseudoElements.notation||"doubleColon"===i.pseudoElements.notation||"both"===i.pseudoElements.notation,i.pseudoElements.definitions?$r(i.pseudoElements.definitions):zr,"accept"===i.pseudoElements.unknown]:[!1,!1,!1,zr,!1];let C="",x=C.length,w=0,O="";const N=e=>O===e,P=()=>N("*")||sn(O)||N("\\"),R=e=>{w=e,O=C.charAt(w)},I=()=>{w++,O=C.charAt(w)},L=()=>{const e=O;return w++,O=C.charAt(w),e};function D(e){const t=Math.min(x-1,w),r=new Error(`${fn}${e} Pos: ${t}.`);throw r.position=t,r.name="ParserError",r}function M(e,t){if(!e)return D(t)}const F=()=>{M(w<x,"Unexpected end of input.")},H=()=>w>=x,B=e=>{M(w<x,`Expected "${e}" but end of input reached.`),M(O===e,`Expected "${e}" but "${O}" found.`),w++,O=C.charAt(w)};function U(e){const t=j(e,w);if(t)return w+=t.length,O=C.charAt(w),t}function j(e,t){const r=e[C.charAt(t)];if(r){const e=j(r.chars,t+1);if(e)return e;if(r.self)return r.self}}function q(){let e=L();for(;cn(O);)e+=L();return N(" ")&&I(),String.fromCharCode(parseInt(e,16))}function z(e){let t="";for(B(e);w<x;){if(N(e))return I(),t;if(N("\\")){let r;if(I(),N(e))t+=e;else if(void 0!==(r=ln[O]))t+=r;else{if(cn(O)){t+=q();continue}t+=O}}else t+=O;I()}return t}function G(){let e="";for(;w<x;)if((t=O)>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||"-"===t||"_"===t)e+=L();else{if(!N("\\"))return e;I(),F(),cn(O)?e+=q():e+=L()}var t;return e}function K(){let e="";for(;w<x&&!N(")");)if(N("\\")){if(I(),H()&&!n)return(e+"\\").trim();F(),cn(O)?e+=q():e+=L()}else e+=L();return e.trim()}function $(){for(;un[O];)I()}function V(e=!1){$();const t=[ee(e)];for(;N(",");)I(),$(),t.push(ee(e));return{type:"Selector",rules:t}}function Q(){let e;if(B("["),$(),N("|"))M(l,"Namespaces are not enabled."),I(),e={type:"Attribute",name:G(),namespace:{type:"NoNamespace"}};else if(N("*"))M(l,"Namespaces are not enabled."),M(u,"Wildcard namespace is not enabled."),I(),B("|"),e={type:"Attribute",name:G(),namespace:{type:"WildcardNamespace"}};else{const t=G();if(e={type:"Attribute",name:t},N("|")){const r=w;I(),sn(O)||N("\\")?(M(l,"Namespaces are not enabled."),e={type:"Attribute",name:G(),namespace:{type:"NamespaceName",name:t}}):R(r)}}if(M(e.name,"Expected attribute name."),$(),H()&&!n)return e;if(N("]"))I();else{if(e.operator=U(d),M(e.operator,"Expected a valid attribute selector operator."),$(),F(),hn[O]?e.value={type:"String",value:z(O)}:h&&N("$")?(I(),e.value={type:"Substitution",name:G()},M(e.value.name,"Expected substitute name.")):(e.value={type:"String",value:G()},M(e.value.value,"Expected attribute value.")),$(),H()&&!n)return e;if(!N("]")&&(e.caseSensitivityModifier=G(),M(e.caseSensitivityModifier,"Expected end of attribute selector."),M(E,"Attribute case sensitivity modifiers are not enabled."),M(g||m[e.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),$(),H()&&!n))return e;B("]")}return e}function W(){let e="";for(;pn[O];)e+=L();return M(""!==e,"Formula parse error."),parseInt(e)}const Y=()=>N("-")||N("+")||pn[O];function X(e){const t={type:"PseudoClass",name:e};let r=y[e];if(!r&&v&&(r=Qr),M(r,`Unknown pseudo-class: "${e}".`),N("(")){if(I(),$(),h&&N("$"))I(),t.argument={type:"Substitution",name:G()},M(t.argument.name,"Expected substitute name.");else if("String"===r.type)t.argument={type:"String",value:K()},M(t.argument.value,"Expected pseudo-class argument value.");else if("Selector"===r.type)t.argument=V(!0);else{if("Formula"!==r.type)return D("Invalid pseudo-class signature.");{const[e,n]=function(){if(N("e")||N("o")){const e=G();if("even"===e)return $(),[2,0];if("odd"===e)return $(),[2,1]}let e,t=null,r=1;if(N("-")&&(I(),r=-1),Y()&&(N("+")&&I(),t=W(),!N("\\")&&!N("n")))return[0,t*r];if(null===t&&(t=1),t*=r,N("\\")?(I(),e=cn(O)?q():L()):e=L(),M("n"===e,'Formula parse error: expected "n".'),$(),N("+")||N("-")){const e=N("+")?1:-1;return I(),$(),[t,e*W()]}return[t,0]}();if(t.argument={type:"Formula",a:e,b:n},r.ofSelector&&($(),N("o")||N("\\"))){M("of"===G(),"Formula of selector parse error."),$(),t.argument={type:"FormulaOfSelector",a:e,b:n,selector:ee()}}}}if($(),H()&&!n)return t;B(")")}else M(r.optional,`Argument is required for pseudo-class "${e}".`);return t}function J(){return N("*")?(M(a,"Wildcard tag name is not enabled."),I(),{type:"WildcardTag"}):sn(O)||N("\\")?(M(o,"Tag names are not enabled."),{type:"TagName",name:G()}):D("Expected tag name.")}function Z(){if(N("*")){const e=w;if(I(),!N("|"))return R(e),J();if(I(),!P())return R(e),J();M(l,"Namespaces are not enabled."),M(u,"Wildcard namespace is not enabled.");const t=J();return t.namespace={type:"WildcardNamespace"},t}if(N("|")){M(l,"Namespaces are not enabled."),I();const e=J();return e.namespace={type:"NoNamespace"},e}if(sn(O)||N("\\")){const e=G();if(!N("|"))return M(o,"Tag names are not enabled."),{type:"TagName",name:e};const t=w;if(I(),!P())return R(t),{type:"TagName",name:e};M(l,"Namespaces are not enabled.");const r=J();return r.namespace={type:"NamespaceName",name:e},r}return D("Expected tag name.")}function ee(e=!1){const t={};let r=!0;if(e){const e=U(p);e&&(t.combinator=e,$())}for(;w<x;){if(P())M(r,"Unexpected tag/namespace start."),t.tag=Z();else if(N("|")){const e=w;if(I(),!P()){R(e);break}M(r,"Unexpected tag/namespace start."),R(e),t.tag=Z()}else if(N(".")){M(c,"Class names are not enabled."),I();const e=G();M(e,"Expected class name."),(t.classNames=t.classNames||[]).push(e)}else if(N("#")){M(s,"IDs are not enabled."),I();const e=G();M(e,"Expected ID name."),(t.ids=t.ids||[]).push(e)}else if(N("["))M(f,"Attributes are not enabled."),(t.attributes=t.attributes||[]).push(Q());else{if(!N(":"))break;{let e=!1,r=!1;I(),N(":")&&(M(_,"Pseudo elements are not enabled."),M(A,"Pseudo elements double colon notation is not enabled."),e=!0,I());const n=G();if(M(e||n,"Expected pseudo-class name."),M(!e||n,"Expected pseudo-element name."),M(!e||k||S[n],`Unknown pseudo-element "${n}".`),r=_&&(e||!e&&b&&S[n]),r){if(t.pseudoElement=n,!(un[O]||N(",")||N(")")||H()))return D("Pseudo-element should be the last component of a CSS selector rule.")}else M(T,"Pseudo classes are not enabled."),(t.pseudoClasses=t.pseudoClasses||[]).push(X(n))}}r=!1}if(r)return H()?D("Expected rule but end of input reached."):D(`Expected rule but "${O}" found.`);if(t.type="Rule",$(),!H()&&!N(",")&&!N(")")){const e=U(p);$(),t.nestedRule=ee(),t.nestedRule.combinator=e}return t}return e=>{if("string"!=typeof e)throw new Error(`${fn}Expected string input.`);return C=e,x=C.length,w=0,O=C.charAt(0),V()}}({syntax:"selectors-4"});function mn(e){if("string"!=typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return dn(e)}function gn(e){return Array.isArray(e.children)}const En={}.hasOwnProperty;function Tn(e,t){const r=t||{};function n(t,...r){let i=n.invalid;const o=n.handlers;if(t&&En.call(t,e)){const r=String(t[e]);i=En.call(o,r)?o[r]:n.unknown}if(i)return i.call(this,t,...r)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const yn=Tn("operator",{unknown:function(e){throw new Error("Unknown operator `"+e.operator+"`")},invalid:vn,handlers:{"=":function(e,t){const r=_n(e);return vn(e,t)&&String(t[e.name])===r},"^=":function(e,t){const r=t[e.name],n=_n(e);return Boolean(e.value&&"string"==typeof r&&r.slice(0,n.length)===n)},"$=":function(e,t){const r=t[e.name],n=_n(e);return Boolean(e.value&&"string"==typeof r&&r.slice(-n.length)===n)},"*=":function(e,t){const r=t[e.name],n=_n(e);return Boolean("string"==typeof r&&n&&r.includes(n))},"~=":function(e,t){const r=t[e.name];if(null==r)return!1;const n=_n(e);if(Array.isArray(r)&&r.includes(n))return!0;return String(r)===n}}});function vn(e,t){return null!==t[e.name]&&void 0!==t[e.name]}function _n(e){const t=e.value;return t.type,t.value}const bn=new Set([9,10,12,13,32]),An="0".charCodeAt(0),Sn="9".charCodeAt(0);var kn={trueFunc:function(){return!0},falseFunc:function(){return!1}};function Cn(e){return function(e){const t=e[0],r=e[1]-1;if(r<0&&t<=0)return kn.falseFunc;if(-1===t)return e=>e<=r;if(0===t)return e=>e===r;if(1===t)return r<0?kn.trueFunc:e=>e>=r;const n=Math.abs(t),i=(r%n+n)%n;return t>1?e=>e>=r&&e%n===i:e=>e<=r&&e%n===i}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];let t=0,r=0,n=o(),i=a();if(t<e.length&&"n"===e.charAt(t)&&(t++,r=n*(null!=i?i:1),s(),t<e.length?(n=o(),s(),i=a()):n=i=0),null===i||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[r,n*i];function o(){return"-"===e.charAt(t)?(t++,-1):("+"===e.charAt(t)&&t++,1)}function a(){const r=t;let n=0;for(;t<e.length&&e.charCodeAt(t)>=An&&e.charCodeAt(t)<=Sn;)n=10*n+(e.charCodeAt(t)-An),t++;return t===r?null:n}function s(){for(;t<e.length&&bn.has(e.charCodeAt(t));)t++}}(e))}const xn=Cn.default||Cn,wn=Tn("name",{unknown:function(e){throw new Error("Unknown pseudo-selector `"+e.name+"`")},invalid:function(){throw new Error("Invalid pseudo-selector")},handlers:{is:Pn,blank:Nn,empty:Nn,"first-child":function(e,t,r,n,i){return Rn(i,e),0===i.nodeIndex},"first-of-type":function(e,t,r,n,i){return Rn(i,e),0===i.typeIndex},has:function(e,t,r,n,i){const o=e.argument;!o||o.type;const a={type:"root",children:gn(t)?t.children:[]},s={...i,found:!1,shallow:!1,one:!0,scopeNodes:[t],results:[],rootQuery:o};return Mn(s,a),s.results.length>0},"last-child":function(e,t,r,n,i){return Rn(i,e),"number"==typeof i.nodeCount&&i.nodeIndex===i.nodeCount-1},"last-of-type":function(e,t,r,n,i){return Rn(i,e),"number"==typeof i.typeCount&&i.typeIndex===i.typeCount-1},not:function(e,t,r,n,i){return!Pn(e,t,r,n,i)},"nth-child":function(e,t,r,n,i){const o=In(e);return Rn(i,e),"number"==typeof i.nodeIndex&&o(i.nodeIndex)},"nth-last-child":function(e,t,r,n,i){const o=In(e);return Rn(i,e),"number"==typeof i.nodeCount&&"number"==typeof i.nodeIndex&&o(i.nodeCount-i.nodeIndex-1)},"nth-of-type":function(e,t,r,n,i){const o=In(e);return Rn(i,e),"number"==typeof i.typeIndex&&o(i.typeIndex)},"nth-last-of-type":function(e,t,r,n,i){const o=In(e);return Rn(i,e),"number"==typeof i.typeIndex&&"number"==typeof i.typeCount&&o(i.typeCount-1-i.typeIndex)},"only-child":function(e,t,r,n,i){return Rn(i,e),1===i.nodeCount},"only-of-type":function(e,t,r,n,i){return Rn(i,e),1===i.typeCount},root:function(e,t,r,n){return t&&!n},scope:function(e,t,r,n,i){return t&&i.scopeNodes.includes(t)}}});function On(e,t,r,n,i){let o=-1;if(e.pseudoClasses)for(;++o<e.pseudoClasses.length;)if(!wn(e.pseudoClasses[o],t,r,n,i))return!1;return!0}function Nn(e,t){return gn(t)?0===t.children.length:!("value"in t)}function Pn(e,t,r,n,i){const o=e.argument;!o||o.type;const a={...i,found:!1,shallow:!1,one:!0,scopeNodes:[t],results:[],rootQuery:o};return Mn(a,t),a.results[0]===t}function Rn(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function In(e){let t=e._cachedFn;if(!t){const r=e.argument;!r||r.type,t=xn(r.a+"n+"+r.b),e._cachedFn=t}return t}function Ln(e,t,r,n,i){if(e.ids)throw new Error("Invalid selector: id");if(e.classNames)throw new Error("Invalid selector: class");if(e.pseudoElement)throw new Error("Invalid selector: `::"+e.pseudoElement+"`");return Boolean(t&&(!e.tag||"WildcardTag"===e.tag.type||e.tag.name===t.type)&&(!e.attributes||function(e,t){let r=-1;if(e.attributes)for(;++r<e.attributes.length;)if(!yn(e.attributes[r],t))return!1;return!0}(e,t))&&(!e.pseudoClasses||On(e,t,r,n,i)))}On.needsIndex=["any","first-child","first-of-type","last-child","last-of-type","is","not","nth-child","nth-last-child","nth-of-type","nth-last-of-type","only-child","only-of-type"];const Dn=[];function Mn(e,t){t&&Fn(e,[],t,void 0,void 0,t)}function Fn(e,t,r,n,i,o){let a={directChild:void 0,descendant:void 0,adjacentSibling:void 0,generalSibling:void 0},s=e.rootQuery.rules;return i&&i!==o&&(s=e.rootQuery.rules.filter((e=>void 0===e.combinator||">"===e.combinator&&i===o))),a=function(e,t,r,n,i){const o={directChild:void 0,descendant:void 0,adjacentSibling:void 0,generalSibling:void 0};let a=-1;for(;++a<t.length;){const s=t[a];if(e.one&&e.found)break;if(e.shallow&&s.nestedRule)throw new Error("Expected selector without nesting");if(Ln(s,r,n,i,e)){const t=s.nestedRule;if(t){Bn(o,"+"===t.combinator?"adjacentSibling":"~"===t.combinator?"generalSibling":">"===t.combinator?"directChild":"descendant",t)}else e.found=!0,e.results.includes(r)||e.results.push(r)}void 0===s.combinator?Bn(o,"descendant",s):"~"===s.combinator&&Bn(o,"generalSibling",s)}return o}(e,Hn(t,s),r,n,i),!gn(r)||e.shallow||e.one&&e.found||function(e,t,r,n){const i=Hn(t.descendant,t.directChild);let o,a=-1;const s={count:0,types:new Map},c={count:0,types:new Map};for(;++a<r.children.length;)Un(s,r.children[a]);a=-1;for(;++a<r.children.length;){const t=r.children[a].type.toUpperCase();e.nodeIndex=c.count,e.typeIndex=c.types.get(t)||0,e.nodeCount=s.count,e.typeCount=s.types.get(t);const l=Fn(e,Hn(i,o),r.children[a],a,r,n);if(o=Hn(l.generalSibling,l.adjacentSibling),e.one&&e.found)break;Un(c,r.children[a])}}(e,a,r,o),a}function Hn(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:Dn}function Bn(e,t,r){const n=e[t];n?n.push(r):e[t]=[r]}function Un(e,t){const r=t.type.toUpperCase(),n=(e.types.get(r)||0)+1;e.count++,e.types.set(r,n)}function jn(e,t){return{rootQuery:mn(e),results:[],scopeNodes:t?!gn(t)||"RootNode"!==t.type&&"root"!==t.type?[t]:t.children:[],one:!1,shallow:!1,found:!1,typeIndex:void 0,nodeIndex:void 0,typeCount:void 0,nodeCount:void 0}}var qn=Object.freeze({__proto__:null,matches:function(e,t){const r=jn(e,t);return r.one=!0,r.shallow=!0,Mn(r,t||void 0),r.results.length>0},select:function(e,t){const r=jn(e,t);return r.one=!0,Mn(r,t||void 0),r.results[0]},selectAll:function(e,t){const r=jn(e,t);return Mn(r,t||void 0),r.results}}),zn=he(qn);function Gn(e){if(e)throw e}
2
+ "use strict";var e=require("commander"),t=require("tmp"),r=require("path"),n=require("consola"),i=require("lodash"),o=require("process"),a=require("url"),s=require("assert"),c=require("http"),l=require("https"),u=require("stream"),h=require("zlib"),p=require("cross-spawn"),f=require("fs"),d=require("vm2"),m=require("js-yaml"),g=require("canvas"),E=require("fs-extra"),T=require("pinyin-pro"),y=require("fstream-ignore"),v=require("archiver"),_=require("tar-pack"),b=require("ejs"),A=require("lookpath"),S=require("jsdom"),k=require("mime-types"),C=require("os"),x=require("constants"),w=require("util"),O=require("events"),N=require("crypto");require("node:path");var P=require("puppeteer-core"),R=require("node:querystring");function I(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function L(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var D=I(t),M=I(r),F=I(n),H=I(i),B=I(o),U=I(a),j=I(s),q=I(c),z=I(l),G=I(u),K=I(h),$=I(p),V=L(f),Q=I(f),W=I(m),Y=I(E),X=I(y),J=I(v),Z=I(b),ee=I(S),te=I(k),re=I(C),ne=I(x),ie=I(w),oe=I(O),ae=I(N),se=I(P),ce=L(R);const le=F.default.create({});var ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function he(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}var pe={},fe={exports:{}};!function(e){function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,i=1;i<n;++i)t[i]=t[i].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function i(e){return e.toUpperCase()}function o(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function a(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function s(e){var n="[A-Za-z]",i="[0-9]",o=t(i,"[A-Fa-f]"),a=r(r("%[EFef]"+o+"%"+o+o+"%"+o+o)+"|"+r("%[89A-Fa-f]"+o+"%"+o+o)+"|"+r("%"+o+o)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",s),l=e?"[\\uE000-\\uF8FF]":"[]",u=t(n,i,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");r(n+t(n,i,"[\\+\\-\\.]")+"*"),r(r(a+"|"+t(u,s,"[\\:]"))+"*");var h=r(r("25[0-5]")+"|"+r("2[0-4]"+i)+"|"+r("1"+i+i)+"|"+r("0?[1-9]"+i)+"|0?0?"+i),p=r(h+"\\."+h+"\\."+h+"\\."+h),f=r(o+"{1,4}"),d=r(r(f+"\\:"+f)+"|"+p),m=r(r(f+"\\:")+"{6}"+d),g=r("\\:\\:"+r(f+"\\:")+"{5}"+d),E=r(r(f)+"?\\:\\:"+r(f+"\\:")+"{4}"+d),T=r(r(r(f+"\\:")+"{0,1}"+f)+"?\\:\\:"+r(f+"\\:")+"{3}"+d),y=r(r(r(f+"\\:")+"{0,2}"+f)+"?\\:\\:"+r(f+"\\:")+"{2}"+d),v=r(r(r(f+"\\:")+"{0,3}"+f)+"?\\:\\:"+f+"\\:"+d),_=r(r(r(f+"\\:")+"{0,4}"+f)+"?\\:\\:"+d),b=r(r(r(f+"\\:")+"{0,5}"+f)+"?\\:\\:"+f),A=r(r(r(f+"\\:")+"{0,6}"+f)+"?\\:\\:"),S=r([m,g,E,T,y,v,_,b,A].join("|")),k=r(r(u+"|"+a)+"+");r("[vV]"+o+"+\\."+t(u,s,"[\\:]")+"+"),r(r(a+"|"+t(u,s))+"*");var C=r(a+"|"+t(u,s,"[\\:\\@]"));return r(r(a+"|"+t(u,s,"[\\@]"))+"+"),r(r(C+"|"+t("[\\/\\?]",l))+"*"),{NOT_SCHEME:new RegExp(t("[^]",n,i,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",u,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",u,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",u,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",u,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",u,s),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",u,c),"g"),PCT_ENCODED:new RegExp(a,"g"),IPV4ADDRESS:new RegExp("^("+p+")$"),IPV6ADDRESS:new RegExp("^\\[?("+S+")"+r(r("\\%25|\\%(?!"+o+"{2})")+"("+k+")")+"?\\]?$")}}var c=s(!1),l=s(!0),u=function(){function e(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},p=2147483647,f=36,d=1,m=26,g=38,E=700,T=72,y=128,v="-",_=/^xn--/,b=/[^\0-\x7E]/,A=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=f-d,C=Math.floor,x=String.fromCharCode;function w(e){throw new RangeError(S[e])}function O(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function N(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+O((e=e.replace(A,".")).split("."),t).join(".")}function P(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=e.charCodeAt(r++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),r--)}else t.push(i)}return t}var R=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:f},I=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},L=function(e,t,r){var n=0;for(e=r?C(e/E):e>>1,e+=C(e/t);e>k*m>>1;n+=f)e=C(e/k);return C(n+(k+1)*e/(e+g))},D=function(e){var t=[],r=e.length,n=0,i=y,o=T,a=e.lastIndexOf(v);a<0&&(a=0);for(var s=0;s<a;++s)e.charCodeAt(s)>=128&&w("not-basic"),t.push(e.charCodeAt(s));for(var c=a>0?a+1:0;c<r;){for(var l=n,u=1,h=f;;h+=f){c>=r&&w("invalid-input");var g=R(e.charCodeAt(c++));(g>=f||g>C((p-n)/u))&&w("overflow"),n+=g*u;var E=h<=o?d:h>=o+m?m:h-o;if(g<E)break;var _=f-E;u>C(p/_)&&w("overflow"),u*=_}var b=t.length+1;o=L(n-l,b,0==l),C(n/b)>p-i&&w("overflow"),i+=C(n/b),n%=b,t.splice(n++,0,i)}return String.fromCodePoint.apply(String,t)},M=function(e){var t=[],r=(e=P(e)).length,n=y,i=0,o=T,a=!0,s=!1,c=void 0;try{for(var l,u=e[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var h=l.value;h<128&&t.push(x(h))}}catch(e){s=!0,c=e}finally{try{!a&&u.return&&u.return()}finally{if(s)throw c}}var g=t.length,E=g;for(g&&t.push(v);E<r;){var _=p,b=!0,A=!1,S=void 0;try{for(var k,O=e[Symbol.iterator]();!(b=(k=O.next()).done);b=!0){var N=k.value;N>=n&&N<_&&(_=N)}}catch(e){A=!0,S=e}finally{try{!b&&O.return&&O.return()}finally{if(A)throw S}}var R=E+1;_-n>C((p-i)/R)&&w("overflow"),i+=(_-n)*R,n=_;var D=!0,M=!1,F=void 0;try{for(var H,B=e[Symbol.iterator]();!(D=(H=B.next()).done);D=!0){var U=H.value;if(U<n&&++i>p&&w("overflow"),U==n){for(var j=i,q=f;;q+=f){var z=q<=o?d:q>=o+m?m:q-o;if(j<z)break;var G=j-z,K=f-z;t.push(x(I(z+G%K,0))),j=C(G/K)}t.push(x(I(j,0))),o=L(i,R,E==g),i=0,++E}}}catch(e){M=!0,F=e}finally{try{!D&&B.return&&B.return()}finally{if(M)throw F}}++i,++n}return t.join("")},F=function(e){return N(e,(function(e){return _.test(e)?D(e.slice(4).toLowerCase()):e}))},H=function(e){return N(e,(function(e){return b.test(e)?"xn--"+M(e):e}))},B={version:"2.1.0",ucs2:{decode:P,encode:function(e){return String.fromCodePoint.apply(String,h(e))}},decode:D,encode:M,toASCII:H,toUnicode:F},U={};function j(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function q(e){for(var t="",r=0,n=e.length;r<n;){var i=parseInt(e.substr(r+1,2),16);if(i<128)t+=String.fromCharCode(i),r+=3;else if(i>=194&&i<224){if(n-r>=6){var o=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&i)<<6|63&o)}else t+=e.substr(r,6);r+=6}else if(i>=224){if(n-r>=9){var a=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&i)<<12|(63&a)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function z(e,t){function r(e){var r=q(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,j).replace(t.PCT_ENCODED,i)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,j).replace(t.PCT_ENCODED,i)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,j).replace(t.PCT_ENCODED,i)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,j).replace(t.PCT_ENCODED,i)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,j).replace(t.PCT_ENCODED,i)),e}function G(e){return e.replace(/^0*(.*)/,"$1")||"0"}function K(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=u(r,2)[1];return n?n.split(".").map(G).join("."):e}function $(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=u(r,3),i=n[1],o=n[2];if(i){for(var a=i.toLowerCase().split("::").reverse(),s=u(a,2),c=s[0],l=s[1],h=l?l.split(":").map(G):[],p=c.split(":").map(G),f=t.IPV4ADDRESS.test(p[p.length-1]),d=f?7:8,m=p.length-d,g=Array(d),E=0;E<d;++E)g[E]=h[E]||p[m+E]||"";f&&(g[d-1]=K(g[d-1],t));var T=g.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]),y=T.sort((function(e,t){return t.length-e.length}))[0],v=void 0;if(y&&y.length>1){var _=g.slice(0,y.index),b=g.slice(y.index+y.length);v=_.join(":")+"::"+b.join(":")}else v=g.join(":");return o&&(v+="%"+o),v}return e}var V=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Q=void 0==="".match(/(){0}/)[1];function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?l:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var i=e.match(V);if(i){Q?(r.scheme=i[1],r.userinfo=i[3],r.host=i[4],r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=i[7],r.fragment=i[8],isNaN(r.port)&&(r.port=i[5])):(r.scheme=i[1]||void 0,r.userinfo=-1!==e.indexOf("@")?i[3]:void 0,r.host=-1!==e.indexOf("//")?i[4]:void 0,r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=-1!==e.indexOf("?")?i[7]:void 0,r.fragment=-1!==e.indexOf("#")?i[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),r.host&&(r.host=$(K(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var o=U[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)z(r,n);else{if(r.host&&(t.domainHost||o&&o.domainHost))try{r.host=B.toASCII(r.host.replace(n.PCT_ENCODED,q).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}z(r,c)}o&&o.parse&&o.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Y(e,t){var r=!1!==t.iri?l:c,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push($(K(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var X=/^\.\.?\//,J=/^\/\.(\/|$)/,Z=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(X))e=e.replace(X,"");else if(e.match(J))e=e.replace(J,"/");else if(e.match(Z))e=e.replace(Z,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?l:c,n=[],i=U[(t.scheme||e.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||i&&i.domainHost)try{e.host=t.iri?B.toUnicode(e.host):B.toASCII(e.host.replace(r.PCT_ENCODED,q).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}z(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var o=Y(e,t);if(void 0!==o&&("suffix"!==t.reference&&n.push("//"),n.push(o),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var a=e.path;t.absolutePath||i&&i.absolutePath||(a=te(a)),void 0===o&&(a=a.replace(/^\/\//,"/%2F")),n.push(a)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=W(re(e,r),r),t=W(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function ie(e,t,r){var n=a({scheme:"null"},r);return re(ne(W(e,n),W(t,n),n,!0),n)}function oe(e,t){return"string"==typeof e?e=re(W(e,t),t):"object"===n(e)&&(e=W(re(e,t),t)),e}function ae(e,t,r){return"string"==typeof e?e=re(W(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(W(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?l.ESCAPE:c.ESCAPE,j)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?l.PCT_ENCODED:c.PCT_ENCODED,q)}var le={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},ue={scheme:"https",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize};function he(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var pe={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=he(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(he(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=u(r,2),i=n[0],o=n[1];e.path=i&&"/"!==i?i:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},fe={scheme:"wss",domainHost:pe.domainHost,parse:pe.parse,serialize:pe.serialize},de={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",Ee=r(r("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+r("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+r("%"+ge+ge)),Te="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",ye=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),ve="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",_e=new RegExp(me,"g"),be=new RegExp(Ee,"g"),Ae=new RegExp(t("[^]",Te,"[\\.]",'[\\"]',ye),"g"),Se=new RegExp(t("[^]",me,ve),"g"),ke=Se;function Ce(e){var t=q(e);return t.match(_e)?t:e}var xe={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var i=!1,o={},a=r.query.split("&"),s=0,c=a.length;s<c;++s){var l=a[s].split("=");switch(l[0]){case"to":for(var u=l[1].split(","),h=0,p=u.length;h<p;++h)n.push(u[h]);break;case"subject":r.subject=ce(l[1],t);break;case"body":r.body=ce(l[1],t);break;default:i=!0,o[ce(l[0],t)]=ce(l[1],t)}}i&&(r.headers=o)}r.query=void 0;for(var f=0,d=n.length;f<d;++f){var m=n[f].split("@");if(m[0]=ce(m[0]),t.unicodeSupport)m[1]=ce(m[1],t).toLowerCase();else try{m[1]=B.toASCII(ce(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[f]=m.join("@")}return r},serialize:function(e,t){var r=e,n=o(e.to);if(n){for(var a=0,s=n.length;a<s;++a){var c=String(n[a]),l=c.lastIndexOf("@"),u=c.slice(0,l).replace(be,Ce).replace(be,i).replace(Ae,j),h=c.slice(l+1);try{h=t.iri?B.toUnicode(h):B.toASCII(ce(h,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[a]=u+"@"+h}r.path=n.join(",")}var p=e.headers=e.headers||{};e.subject&&(p.subject=e.subject),e.body&&(p.body=e.body);var f=[];for(var d in p)p[d]!==de[d]&&f.push(d.replace(be,Ce).replace(be,i).replace(Se,j)+"="+p[d].replace(be,Ce).replace(be,i).replace(ke,j));return f.length&&(r.query=f.join("&")),r}},we=/^([^\:]+)\:(.*)/,Oe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(we),n=e;if(r){var i=t.scheme||n.scheme||"urn",o=r[1].toLowerCase(),a=r[2],s=i+":"+(t.nid||o),c=U[s];n.nid=o,n.nss=a,n.path=void 0,c&&(n=c.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,i=r+":"+(t.nid||n),o=U[i];o&&(e=o.serialize(e,t));var a=e,s=e.nss;return a.path=(n||t.nid)+":"+s,a}},Ne=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Pe={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(Ne)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};U[le.scheme]=le,U[ue.scheme]=ue,U[pe.scheme]=pe,U[fe.scheme]=fe,U[xe.scheme]=xe,U[Oe.scheme]=Oe,U[Pe.scheme]=Pe,e.SCHEMES=U,e.pctEncChar=j,e.pctDecChars=q,e.parse=W,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=ie,e.normalize=oe,e.equal=ae,e.escapeComponent=se,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(fe.exports);var de=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r},me={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:ge,checkDataTypes:function(e,t,r){if(1===e.length)return ge(e[0],t,r,!0);var n="",i=Te(e);for(var o in i.array&&i.object&&(n=i.null?"(":"(!"+t+" || ",n+="typeof "+t+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer,i)n+=(n?" && ":"")+ge(o,t,r,!0);return n},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var i=t[n];(Ee[i]||"array"===e&&"array"===i)&&(r[r.length]=i)}if(r.length)return r}else{if(Ee[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:Te,getProperty:_e,escapeQuotes:be,equal:de,ucs2length:function(e){for(var t,r=0,n=e.length,i=0;i<n;)r++,(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<n&&56320==(64512&(t=e.charCodeAt(i)))&&i++;return r},varOccurences:function(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var n in e)if(n!=r&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var r in e)if(!t[r])return r},toQuotedString:Ae,getPathExpr:function(e,t,r,n){var i=r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'";return Ce(e,i)},getPath:function(e,t,r){var n=Ae(r?"/"+xe(t):_e(t));return Ce(e,n)},getData:function(e,t,r){var n,i,o,a;if(""===e)return"rootData";if("/"==e[0]){if(!Se.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,o="rootData"}else{if(!(a=e.match(ke)))throw new Error("Invalid JSON-pointer: "+e);if(n=+a[1],"#"==(i=a[2])){if(n>=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(o="data"+(t-n||""),!i)return o}for(var s=o,c=i.split("/"),l=0;l<c.length;l++){var u=c[l];u&&(s+=" && "+(o+=_e(we(u))))}return s},unescapeFragment:function(e){return we(decodeURIComponent(e))},unescapeJsonPointer:we,escapeFragment:function(e){return encodeURIComponent(xe(e))},escapeJsonPointer:xe};function ge(e,t,r,n){var i=n?" !== ":" === ",o=n?" || ":" && ",a=n?"!":"",s=n?"":"!";switch(e){case"null":return t+i+"null";case"array":return a+"Array.isArray("+t+")";case"object":return"("+a+t+o+"typeof "+t+i+'"object"'+o+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+o+s+"("+t+" % 1)"+o+t+i+t+(r?o+a+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(r?o+a+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}var Ee=Te(["string","number","integer","boolean","null"]);function Te(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var ye=/^[a-z$_][a-z$_0-9]*$/i,ve=/'|\\/g;function _e(e){return"number"==typeof e?"["+e+"]":ye.test(e)?"."+e:"['"+be(e)+"']"}function be(e){return e.replace(ve,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function Ae(e){return"'"+be(e)+"'"}var Se=/^\/(?:[^~]|~0|~1)*$/,ke=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Ce(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function xe(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function we(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}var Oe=me,Ne=function(e){Oe.copy(e,this)};var Pe={exports:{}},Re=Pe.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),Ie(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function Ie(e,t,r,n,i,o,a,s,c,l){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var u in t(n,i,o,a,s,c,l),n){var h=n[u];if(Array.isArray(h)){if(u in Re.arrayKeywords)for(var p=0;p<h.length;p++)Ie(e,t,r,h[p],i+"/"+u+"/"+p,o,i,u,n,p)}else if(u in Re.propsKeywords){if(h&&"object"==typeof h)for(var f in h)Ie(e,t,r,h[f],i+"/"+u+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),o,i,u,n,f)}else(u in Re.keywords||e.allKeys&&!(u in Re.skipKeywords))&&Ie(e,t,r,h,i+"/"+u,o,i,u,n)}r(n,i,o,a,s,c,l)}}Re.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},Re.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},Re.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},Re.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};var Le=fe.exports,De=de,Me=me,Fe=Ne,He=Pe.exports,Be=Ue;function Ue(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return Ue.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof Fe)return $e(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var i,o,a,s=je.call(this,t,r);return s&&(i=s.schema,t=s.root,a=s.baseId),i instanceof Fe?o=i.validate||e.call(this,i.schema,t,void 0,a):void 0!==i&&(o=$e(i,this._opts.inlineRefs)?i:e.call(this,i,t,void 0,a)),o}function je(e,t){var r=Le.parse(t),n=Ye(r),i=We(this._getId(e.schema));if(0===Object.keys(e.schema).length||n!==i){var o=Je(n),a=this._refs[o];if("string"==typeof a)return qe.call(this,e,a,r);if(a instanceof Fe)a.validate||this._compile(a),e=a;else{if(!((a=this._schemas[o])instanceof Fe))return;if(a.validate||this._compile(a),o==Je(t))return{schema:a,root:e,baseId:i};e=a}if(!e.schema)return;i=We(this._getId(e.schema))}return Ge.call(this,r,i,e.schema,e)}function qe(e,t,r){var n=je.call(this,e,t);if(n){var i=n.schema,o=n.baseId;e=n.root;var a=this._getId(i);return a&&(o=Ze(o,a)),Ge.call(this,r,o,i,e)}}Ue.normalizeId=Je,Ue.fullPath=We,Ue.url=Ze,Ue.ids=function(e){var t=Je(this._getId(e)),r={"":t},n={"":We(t,!1)},i={},o=this;return He(e,{allKeys:!0},(function(e,t,a,s,c,l,u){if(""!==t){var h=o._getId(e),p=r[s],f=n[s]+"/"+c;if(void 0!==u&&(f+="/"+("number"==typeof u?u:Me.escapeFragment(u))),"string"==typeof h){h=p=Je(p?Le.resolve(p,h):h);var d=o._refs[h];if("string"==typeof d&&(d=o._refs[d]),d&&d.schema){if(!De(e,d.schema))throw new Error('id "'+h+'" resolves to more than one schema')}else if(h!=Je(f))if("#"==h[0]){if(i[h]&&!De(e,i[h]))throw new Error('id "'+h+'" resolves to more than one schema');i[h]=e}else o._refs[h]=f}r[t]=p,n[t]=f}})),i},Ue.inlineRef=$e,Ue.schema=je;var ze=Me.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Ge(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var i=e.fragment.split("/"),o=1;o<i.length;o++){var a=i[o];if(a){if(void 0===(r=r[a=Me.unescapeFragment(a)]))break;var s;if(!ze[a]&&((s=this._getId(r))&&(t=Ze(t,s)),r.$ref)){var c=Ze(t,r.$ref),l=je.call(this,n,c);l&&(r=l.schema,n=l.root,t=l.baseId)}}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var Ke=Me.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function $e(e,t){return!1!==t&&(void 0===t||!0===t?Ve(e):t?Qe(e)<=t:void 0)}function Ve(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!Ve(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!Ve(t))return!1}return!0}function Qe(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=Qe(t)),r==1/0)return 1/0}else for(var i in e){if("$ref"==i)return 1/0;if(Ke[i])r++;else if("object"==typeof(t=e[i])&&(r+=Qe(t)+1),r==1/0)return 1/0}return r}function We(e,t){return!1!==t&&(e=Je(e)),Ye(Le.parse(e))}function Ye(e){return Le.serialize(e).split("#")[0]+"#"}var Xe=/#\/?$/;function Je(e){return e?e.replace(Xe,""):""}function Ze(e,t){return t=Je(t),Le.resolve(e,t)}var et=Be,tt={Validation:nt((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:nt(rt)};function rt(e,t,r){this.message=r||rt.message(e,t),this.missingRef=et.url(e,t),this.missingSchema=et.normalizeId(et.fullPath(this.missingRef))}function nt(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}rt.message=function(e,t){return"can't resolve reference "+t+" from id "+e};var it=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&function(e){return function(t){return function(r,n){var i={key:r,value:t[r]},o={key:n,value:t[n]};return e(i,o)}}}(t.cmp),i=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var o,a;if(Array.isArray(t)){for(a="[",o=0;o<t.length;o++)o&&(a+=","),a+=e(t[o])||"null";return a+"]"}if(null===t)return"null";if(-1!==i.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=i.push(t)-1,c=Object.keys(t).sort(n&&n(t));for(a="",o=0;o<c.length;o++){var l=c[o],u=e(t[l]);u&&(a&&(a+=","),a+=JSON.stringify(l)+":"+u)}return i.splice(s,1),"{"+a+"}"}}(e)},ot=function(e,t,r){var n="",i=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),a=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var c="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(c);e.logger.warn(c)}}if(e.isTop&&(n+=" var validate = ",i&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+a+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){t="false schema";var l=e.level,u=e.dataLevel,h=e.schema[t],p=e.schemaPath+e.util.getProperty(t),f=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,m="data"+(u||""),g="valid"+l;if(!1===e.schema){e.isTop?d=!0:n+=" var "+g+" = false; ",(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";var E=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=i?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var T=e.isTop;l=e.level=0,u=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var y="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(y);e.logger.warn(y)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{l=e.level,m="data"+((u=e.dataLevel)||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),i&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+l+" = errors;"}g="valid"+l,d=!e.opts.allErrors;var v="",_="",b=e.schema.type,A=Array.isArray(b);if(b&&e.opts.nullable&&!0===e.schema.nullable&&(A?-1==b.indexOf("null")&&(b=b.concat("null")):"null"!=b&&(b=[b,"null"],A=!0)),A&&1==b.length&&(b=b[0],A=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),b){if(e.opts.coerceTypes)var S=e.util.coerceToTypes(e.opts.coerceTypes,b);var k=e.RULES.types[b];if(S||A||!0===k||k&&!X(k)){p=e.schemaPath+".type",f=e.errSchemaPath+"/type",p=e.schemaPath+".type",f=e.errSchemaPath+"/type";var C=A?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[C](b,m,e.opts.strictNumbers,!0)+") { ",S){var x="dataType"+l,w="coerced"+l;n+=" var "+x+" = typeof "+m+"; var "+w+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+x+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+x+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+w+" = "+m+"; } "),n+=" if ("+w+" !== undefined) ; ";var O=S;if(O)for(var N,P=-1,R=O.length-1;P<R;)"string"==(N=O[P+=1])?n+=" else if ("+x+" == 'number' || "+x+" == 'boolean') "+w+" = '' + "+m+"; else if ("+m+" === null) "+w+" = ''; ":"number"==N||"integer"==N?(n+=" else if ("+x+" == 'boolean' || "+m+" === null || ("+x+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==N&&(n+=" && !("+m+" % 1)"),n+=")) "+w+" = +"+m+"; "):"boolean"==N?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+w+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+w+" = true; ":"null"==N?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+w+" = null; ":"array"==e.opts.coerceTypes&&"array"==N&&(n+=" else if ("+x+" == 'string' || "+x+" == 'number' || "+x+" == 'boolean' || "+m+" == null) "+w+" = ["+m+"]; ");n+=" else { ",(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=A?""+b.join(","):""+b,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=A?""+b.join(","):""+b,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";E=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } if ("+w+" !== undefined) { ";var I=u?"data"+(u-1||""):"parentData";n+=" "+m+" = "+w+"; ",u||(n+="if ("+I+" !== undefined)"),n+=" "+I+"["+(u?e.dataPathArr[u]:"parentDataProperty")+"] = "+w+"; } "}else{(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=A?""+b.join(","):""+b,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=A?""+b.join(","):""+b,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";E=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } "}}if(e.schema.$ref&&!o)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",d&&(n+=" } if (errors === ",n+=T?"0":"errs_"+l,n+=") { ",_+="}");else{var L=e.RULES;if(L)for(var D=-1,M=L.length-1;D<M;)if(X(k=L[D+=1])){if(k.type&&(n+=" if ("+e.util.checkDataType(k.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==k.type&&e.schema.properties){h=e.schema.properties;var F=Object.keys(h);if(F)for(var H,B=-1,U=F.length-1;B<U;){if(void 0!==(z=h[H=F[B+=1]]).default){var j=m+e.util.getProperty(H);if(e.compositeRule){if(e.opts.strictDefaults){y="default is ignored for: "+j;if("log"!==e.opts.strictDefaults)throw new Error(y);e.logger.warn(y)}}else n+=" if ("+j+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+j+" === null || "+j+" === '' "),n+=" ) "+j+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(z.default)+" ":n+=" "+JSON.stringify(z.default)+" ",n+="; "}}}else if("array"==k.type&&Array.isArray(e.schema.items)){var q=e.schema.items;if(q){P=-1;for(var z,G=q.length-1;P<G;)if(void 0!==(z=q[P+=1]).default){j=m+"["+P+"]";if(e.compositeRule){if(e.opts.strictDefaults){y="default is ignored for: "+j;if("log"!==e.opts.strictDefaults)throw new Error(y);e.logger.warn(y)}}else n+=" if ("+j+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+j+" === null || "+j+" === '' "),n+=" ) "+j+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(z.default)+" ":n+=" "+JSON.stringify(z.default)+" ",n+="; "}}}var K=k.rules;if(K)for(var $,V=-1,Q=K.length-1;V<Q;)if(J($=K[V+=1])){var W=$.code(e,$.keyword,k.type);W&&(n+=" "+W+" ",d&&(v+="}"))}if(d&&(n+=" "+v+" ",v=""),k.type&&(n+=" } ",b&&b===k.type&&!S)){n+=" else { ";var Y;p=e.schemaPath+".type",f=e.errSchemaPath+"/type";(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=A?""+b.join(","):""+b,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=A?""+b.join(","):""+b,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";E=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } "}d&&(n+=" if (errors === ",n+=T?"0":"errs_"+l,n+=") { ",_+="}")}}function X(e){for(var t=e.rules,r=0;r<t.length;r++)if(J(t[r]))return!0}function J(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var r=t.implements,n=0;n<r.length;n++)if(void 0!==e.schema[r[n]])return!0}(t)}return d&&(n+=" "+_+" "),T?(i?(n+=" if (errors === 0) return data; ",n+=" else throw new ValidationError(vErrors); "):(n+=" validate.errors = vErrors; ",n+=" return errors === 0; "),n+=" }; return validate;"):n+=" var "+g+" = errors === errs_"+l+";",n},at=Be,st=me,ct=tt,lt=it,ut=ot,ht=st.ucs2length,pt=de,ft=ct.Validation,dt=function e(t,r,n,i){var o=this,a=this._opts,s=[void 0],c={},l=[],u={},h=[],p={},f=[];r=r||{schema:t,refVal:s,refs:c};var d=mt.call(this,t,r,i),m=this._compilations[d.index];if(d.compiling)return m.callValidate=function e(){var t=m.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var g=this._formats,E=this.RULES;try{var T=v(t,r,n,i);m.validate=T;var y=m.callValidate;return y&&(y.schema=T.schema,y.errors=null,y.refs=T.refs,y.refVal=T.refVal,y.root=T.root,y.$async=T.$async,a.sourceCode&&(y.source=T.source)),T}finally{gt.call(this,t,r,i)}function v(t,n,i,u){var p=!n||n&&n.schema==t;if(n.schema!=r.schema)return e.call(o,t,n,i,u);var d,m=!0===t.$async,T=ut({isTop:!0,schema:t,isRoot:p,baseId:u,root:n,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:ct.MissingRef,RULES:E,validate:ut,util:st,resolve:at,resolveRef:_,usePattern:S,useDefault:k,useCustomRule:C,opts:a,formats:g,logger:o.logger,self:o});T=bt(s,vt)+bt(l,Tt)+bt(h,yt)+bt(f,_t)+T,a.processCode&&(T=a.processCode(T,t));try{d=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",T)(o,E,g,r,s,h,f,pt,ht,ft),s[0]=d}catch(e){throw o.logger.error("Error compiling schema, function code:",T),e}return d.schema=t,d.errors=null,d.refs=c,d.refVal=s,d.root=p?d:n,m&&(d.$async=!0),!0===a.sourceCode&&(d.source={code:T,patterns:l,defaults:h}),d}function _(t,i,l){i=at.url(t,i);var u,h,p=c[i];if(void 0!==p)return A(u=s[p],h="refVal["+p+"]");if(!l&&r.refs){var f=r.refs[i];if(void 0!==f)return A(u=r.refVal[f],h=b(i,u))}h=b(i);var d=at.call(o,v,r,i);if(void 0===d){var m=n&&n[i];m&&(d=at.inlineRef(m,a.inlineRefs)?m:e.call(o,m,r,n,t))}if(void 0!==d)return function(e,t){var r=c[e];s[r]=t}(i,d),A(d,h);!function(e){delete c[e]}(i)}function b(e,t){var r=s.length;return s[r]=t,c[e]=r,"refVal"+r}function A(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function S(e){var t=u[e];return void 0===t&&(t=u[e]=l.length,l[t]=e),"pattern"+t}function k(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return st.toQuotedString(e);case"object":if(null===e)return"null";var t=lt(e),r=p[t];return void 0===r&&(r=p[t]=h.length,h[r]=e),"default"+r}}function C(e,t,r,n){if(!1!==o._opts.validateSchema){var i=e.definition.dependencies;if(i&&!i.every((function(e){return Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have all required keywords: "+i.join(","));var s=e.definition.validateSchema;if(s)if(!s(t)){var c="keyword schema is invalid: "+o.errorsText(s.errors);if("log"!=o._opts.validateSchema)throw new Error(c);o.logger.error(c)}}var l,u=e.definition.compile,h=e.definition.inline,p=e.definition.macro;if(u)l=u.call(o,t,r,n);else if(p)l=p.call(o,t,r,n),!1!==a.validateSchema&&o.validateSchema(l,!0);else if(h)l=h.call(o,n,e.keyword,t,r);else if(!(l=e.definition.validate))return;if(void 0===l)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var d=f.length;return f[d]=l,{code:"customRule"+d,validate:l}}};function mt(e,t,r){var n=Et.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function gt(e,t,r){var n=Et.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function Et(e,t,r){for(var n=0;n<this._compilations.length;n++){var i=this._compilations[n];if(i.schema==e&&i.root==t&&i.baseId==r)return n}return-1}function Tt(e,t){return"var pattern"+e+" = new RegExp("+st.toQuotedString(t[e])+");"}function yt(e){return"var default"+e+" = defaults["+e+"];"}function vt(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function _t(e){return"var customRule"+e+" = customRules["+e+"];"}function bt(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}var At={exports:{}},St=At.exports=function(){this._cache={}};St.prototype.put=function(e,t){this._cache[e]=t},St.prototype.get=function(e){return this._cache[e]},St.prototype.del=function(e){delete this._cache[e]},St.prototype.clear=function(){this._cache={}};var kt=me,Ct=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,xt=[0,31,28,31,30,31,30,31,31,30,31,30,31],wt=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Ot=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,Nt=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Pt=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Rt=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,It=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Lt=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Dt=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Mt=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,Ft=Ht;function Ht(e){return e="full"==e?"full":"fast",kt.copy(Ht[e])}function Bt(e){var t=e.match(Ct);if(!t)return!1;var r=+t[1],n=+t[2],i=+t[3];return n>=1&&n<=12&&i>=1&&i<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:xt[n])}function Ut(e,t){var r=e.match(wt);if(!r)return!1;var n=r[1],i=r[2],o=r[3],a=r[5];return(n<=23&&i<=59&&o<=59||23==n&&59==i&&60==o)&&(!t||a)}Ht.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":Pt,url:Rt,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:Ot,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Gt,uuid:It,"json-pointer":Lt,"json-pointer-uri-fragment":Dt,"relative-json-pointer":Mt},Ht.full={date:Bt,time:Ut,"date-time":function(e){var t=e.split(jt);return 2==t.length&&Bt(t[0])&&Ut(t[1],!0)},uri:function(e){return qt.test(e)&&Nt.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":Pt,url:Rt,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:Ot,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Gt,uuid:It,"json-pointer":Lt,"json-pointer-uri-fragment":Dt,"relative-json-pointer":Mt};var jt=/t|\s/i;var qt=/\/|:/;var zt=/[^\\]\\Z/;function Gt(e){if(zt.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}var Kt=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),p=e.opts.$data&&s&&s.$data;p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s;var f="maximum"==t,d=f?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[d],g=e.opts.$data&&m&&m.$data,E=f?"<":">",T=f?">":"<",y=void 0;if(!p&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(d+" must be number or boolean");if(g){var v=e.util.getData(m.$data,a,e.dataPathArr),_="exclusive"+o,b="exclType"+o,A="exclIsNumber"+o,S="' + "+(x="op"+o)+" + '";i+=" var schemaExcl"+o+" = "+v+"; ",i+=" var "+_+"; var "+b+" = typeof "+(v="schemaExcl"+o)+"; if ("+b+" != 'boolean' && "+b+" != 'undefined' && "+b+" != 'number') { ";var k;y=d;(k=k||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(y||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(i+=" , message: '"+d+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var C=i;i=k.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+C+"]); ":i+=" validate.errors = ["+C+"]; return false; ":i+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+b+" == 'number' ? ( ("+_+" = "+n+" === undefined || "+v+" "+E+"= "+n+") ? "+h+" "+T+"= "+v+" : "+h+" "+T+" "+n+" ) : ( ("+_+" = "+v+" === true) ? "+h+" "+T+"= "+n+" : "+h+" "+T+" "+n+" ) || "+h+" !== "+h+") { var op"+o+" = "+_+" ? '"+E+"' : '"+E+"='; ",void 0===s&&(y=d,l=e.errSchemaPath+"/"+d,n=v,p=g)}else{S=E;if((A="number"==typeof m)&&p){var x="'"+S+"'";i+=" if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" ( "+n+" === undefined || "+m+" "+E+"= "+n+" ? "+h+" "+T+"= "+m+" : "+h+" "+T+" "+n+" ) || "+h+" !== "+h+") { "}else{A&&void 0===s?(_=!0,y=d,l=e.errSchemaPath+"/"+d,n=m,T+="="):(A&&(n=Math[f?"min":"max"](m,s)),m===(!A||n)?(_=!0,y=d,l=e.errSchemaPath+"/"+d,T+="="):(_=!1,S+="="));x="'"+S+"'";i+=" if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+h+" "+T+" "+n+" || "+h+" !== "+h+") { "}}y=y||t,(k=k||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(y||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+x+", limit: "+n+", exclusive: "+_+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be "+S+" ",i+=p?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";C=i;return i=k.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+C+"]); ":i+=" validate.errors = ["+C+"]; return false; ":i+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { "),i},$t=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+h+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var f=t,d=d||[];d.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(f||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==t?"more":"fewer",i+=" than ",i+=p?"' + "+n+" + '":""+s,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var m=i;return i=d.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i},Vt=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");var f="maxLength"==t?">":"<";i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?i+=" "+h+".length ":i+=" ucs2length("+h+") ",i+=" "+f+" "+n+") { ";var d=t,m=m||[];m.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==t?"longer":"shorter",i+=" than ",i+=p?"' + "+n+" + '":""+s,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var g=i;return i=m.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i},Qt=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" Object.keys("+h+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var f=t,d=d||[];d.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(f||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==t?"more":"fewer",i+=" than ",i+=p?"' + "+n+" + '":""+s,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var m=i;return i=d.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i},Wt={$ref:function(e,t,r){var n,i,o=" ",a=e.level,s=e.dataLevel,c=e.schema[t],l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(s||""),p="valid"+a;if("#"==c||"#/"==c)e.isRoot?(n=e.async,i="validate"):(n=!0===e.root.schema.$async,i="root.refVal[0]");else{var f=e.resolveRef(e.baseId,c,e.isRoot);if(void 0===f){var d=e.MissingRefError.message(e.baseId,c);if("fail"==e.opts.missingRefs){e.logger.error(d),(T=T||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",!1!==e.opts.messages&&(o+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(o+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),o+=" } "):o+=" {} ";var m=o;o=T.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(o+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,d);e.logger.warn(d),u&&(o+=" if (true) { ")}}else if(f.inline){var g=e.util.copy(e);g.level++;var E="valid"+g.level;g.schema=f.schema,g.schemaPath="",g.errSchemaPath=c,o+=" "+e.validate(g).replace(/validate\.schema/g,f.code)+" ",u&&(o+=" if ("+E+") { ")}else n=!0===f.$async||e.async&&!1!==f.$async,i=f.code}if(i){var T;(T=T||[]).push(o),o="",e.opts.passContext?o+=" "+i+".call(this, ":o+=" "+i+"( ",o+=" "+h+", (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var y=o+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(o=T.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(o+=" var "+p+"; "),o+=" try { await "+y+"; ",u&&(o+=" "+p+" = true; "),o+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(o+=" "+p+" = false; "),o+=" } ",u&&(o+=" if ("+p+") { ")}else o+=" if (!"+y+") { if (vErrors === null) vErrors = "+i+".errors; else vErrors = vErrors.concat("+i+".errors); errors = vErrors.length; } ",u&&(o+=" else { ")}return o},allOf:function(e,t,r){var n=" ",i=e.schema[t],o=e.schemaPath+e.util.getProperty(t),a=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,c=e.util.copy(e),l="";c.level++;var u="valid"+c.level,h=c.baseId,p=!0,f=i;if(f)for(var d,m=-1,g=f.length-1;m<g;)d=f[m+=1],(e.opts.strictKeywords?"object"==typeof d&&Object.keys(d).length>0||!1===d:e.util.schemaHasRules(d,e.RULES.all))&&(p=!1,c.schema=d,c.schemaPath=o+"["+m+"]",c.errSchemaPath=a+"/"+m,n+=" "+e.validate(c)+" ",c.baseId=h,s&&(n+=" if ("+u+") { ",l+="}"));return s&&(n+=p?" if (true) { ":" "+l.slice(0,-1)+" "),n},anyOf:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g=a.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(g){var E=f.baseId;n+=" var "+p+" = errors; var "+h+" = false; ";var T=e.compositeRule;e.compositeRule=f.compositeRule=!0;var y=a;if(y)for(var v,_=-1,b=y.length-1;_<b;)v=y[_+=1],f.schema=v,f.schemaPath=s+"["+_+"]",f.errSchemaPath=c+"/"+_,n+=" "+e.validate(f)+" ",f.baseId=E,n+=" "+h+" = "+h+" || "+m+"; if (!"+h+") { ",d+="}";e.compositeRule=f.compositeRule=T,n+=" "+d+" if (!"+h+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else l&&(n+=" if (true) { ");return n},$comment:function(e,t,r){var n=" ",i=e.schema[t],o=e.errSchemaPath+"/"+t;e.opts.allErrors;var a=e.util.toQuotedString(i);return!0===e.opts.$comment?n+=" console.log("+a+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+a+", "+e.util.toQuotedString(o)+", validate.root.schema);"),n},const:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p=e.opts.$data&&a&&a.$data;p&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; "),p||(n+=" var schema"+i+" = validate.schema"+s+";"),n+="var "+h+" = equal("+u+", schema"+i+"); if (!"+h+") { ";var f=f||[];f.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var d=n;return n=f.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+d+"]); ":n+=" validate.errors = ["+d+"]; return false; ":n+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",l&&(n+=" else { "),n},contains:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p="errs__"+i,f=e.util.copy(e);f.level++;var d="valid"+f.level,m="i"+i,g=f.dataLevel=e.dataLevel+1,E="data"+g,T=e.baseId,y=e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all);if(n+="var "+p+" = errors;var "+h+";",y){var v=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=a,f.schemaPath=s,f.errSchemaPath=c,n+=" var "+d+" = false; for (var "+m+" = 0; "+m+" < "+u+".length; "+m+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var _=u+"["+m+"]";f.dataPathArr[g]=m;var b=e.validate(f);f.baseId=T,e.util.varOccurences(b,E)<2?n+=" "+e.util.varReplace(b,E,_)+" ":n+=" var "+E+" = "+_+"; "+b+" ",n+=" if ("+d+") break; } ",e.compositeRule=f.compositeRule=v,n+=" if (!"+d+") {"}else n+=" if ("+u+".length == 0) {";var A=A||[];A.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var S=n;return n=A.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",y&&(n+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n},dependencies:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="errs__"+i,p=e.util.copy(e),f="";p.level++;var d="valid"+p.level,m={},g={},E=e.opts.ownProperties;for(_ in a)if("__proto__"!=_){var T=a[_],y=Array.isArray(T)?g:m;y[_]=T}n+="var "+h+" = errors;";var v=e.errorPath;for(var _ in n+="var missing"+i+";",g)if((y=g[_]).length){if(n+=" if ( "+u+e.util.getProperty(_)+" !== undefined ",E&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(_)+"') "),l){n+=" && ( ";var b=y;if(b)for(var A=-1,S=b.length-1;A<S;){N=b[A+=1],A&&(n+=" || "),n+=" ( ( "+(L=u+(I=e.util.getProperty(N)))+" === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(N)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?N:I)+") ) "}n+=")) { ";var k="missing"+i,C="' + "+k+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(v,k,!0):v+" + "+k);var x=x||[];x.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(_)+"', missingProperty: '"+C+"', depsCount: "+y.length+", deps: '"+e.util.escapeQuotes(1==y.length?y[0]:y.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==y.length?n+="property "+e.util.escapeQuotes(y[0]):n+="properties "+e.util.escapeQuotes(y.join(", ")),n+=" when property "+e.util.escapeQuotes(_)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var w=n;n=x.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+w+"]); ":n+=" validate.errors = ["+w+"]; return false; ":n+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var O=y;if(O)for(var N,P=-1,R=O.length-1;P<R;){N=O[P+=1];var I=e.util.getProperty(N),L=(C=e.util.escapeQuotes(N),u+I);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(v,N,e.opts.jsonPointers)),n+=" if ( "+L+" === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(N)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(_)+"', missingProperty: '"+C+"', depsCount: "+y.length+", deps: '"+e.util.escapeQuotes(1==y.length?y[0]:y.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==y.length?n+="property "+e.util.escapeQuotes(y[0]):n+="properties "+e.util.escapeQuotes(y.join(", ")),n+=" when property "+e.util.escapeQuotes(_)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",l&&(f+="}",n+=" else { ")}e.errorPath=v;var D=p.baseId;for(var _ in m){T=m[_];(e.opts.strictKeywords?"object"==typeof T&&Object.keys(T).length>0||!1===T:e.util.schemaHasRules(T,e.RULES.all))&&(n+=" "+d+" = true; if ( "+u+e.util.getProperty(_)+" !== undefined ",E&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(_)+"') "),n+=") { ",p.schema=T,p.schemaPath=s+e.util.getProperty(_),p.errSchemaPath=c+"/"+e.util.escapeFragment(_),n+=" "+e.validate(p)+" ",p.baseId=D,n+=" } ",l&&(n+=" if ("+d+") { ",f+="}"))}return l&&(n+=" "+f+" if ("+h+" == errors) {"),n},enum:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p=e.opts.$data&&a&&a.$data;p&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ");var f="i"+i,d="schema"+i;p||(n+=" var "+d+" = validate.schema"+s+";"),n+="var "+h+";",p&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=h+" = false;for (var "+f+"=0; "+f+"<"+d+".length; "+f+"++) if (equal("+u+", "+d+"["+f+"])) { "+h+" = true; break; }",p&&(n+=" } "),n+=" if (!"+h+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",l&&(n+=" else { "),n},format:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||"");if(!1===e.opts.format)return l&&(n+=" if (true) { "),n;var h,p=e.opts.$data&&a&&a.$data;p?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",h="schema"+i):h=a;var f=e.opts.unknownFormats,d=Array.isArray(f);if(p){n+=" var "+(m="format"+i)+" = formats["+h+"]; var "+(g="isObject"+i)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(E="formatType"+i)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+i+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",p&&(n+=" ("+h+" !== undefined && typeof "+h+" != 'string') || "),n+=" (","ignore"!=f&&(n+=" ("+h+" && !"+m+" ",d&&(n+=" && self._opts.unknownFormats.indexOf("+h+") == -1 "),n+=") || "),n+=" ("+m+" && "+E+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+i+" ? await "+m+"("+u+") : "+m+"("+u+")) ":n+=" "+m+"("+u+") ",n+=" : "+m+".test("+u+"))))) {"}else{var m;if(!(m=e.formats[a])){if("ignore"==f)return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),l&&(n+=" if (true) { "),n;if(d&&f.indexOf(a)>=0)return l&&(n+=" if (true) { "),n;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,E=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var T=!0===m.async;m=m.validate}if(E!=r)return l&&(n+=" if (true) { "),n;if(T){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(y="formats"+e.util.getProperty(a)+".validate")+"("+u+"))) { "}else{n+=" if (! ";var y="formats"+e.util.getProperty(a);g&&(y+=".validate"),n+="function"==typeof m?" "+y+"("+u+") ":" "+y+".test("+u+") ",n+=") { "}}var v=v||[];v.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",n+=p?""+h:""+e.util.toQuotedString(a),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=p?"' + "+h+" + '":""+e.util.escapeQuotes(a),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=p?"validate.schema"+s:""+e.util.toQuotedString(a),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var _=n;return n=v.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+_+"]); ":n+=" validate.errors = ["+_+"]; return false; ":n+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",l&&(n+=" else { "),n},if:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p="errs__"+i,f=e.util.copy(e);f.level++;var d="valid"+f.level,m=e.schema.then,g=e.schema.else,E=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),T=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),y=f.baseId;if(E||T){var v;f.createErrors=!1,f.schema=a,f.schemaPath=s,f.errSchemaPath=c,n+=" var "+p+" = errors; var "+h+" = true; ";var _=e.compositeRule;e.compositeRule=f.compositeRule=!0,n+=" "+e.validate(f)+" ",f.baseId=y,f.createErrors=!0,n+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.compositeRule=f.compositeRule=_,E?(n+=" if ("+d+") { ",f.schema=e.schema.then,f.schemaPath=e.schemaPath+".then",f.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(f)+" ",f.baseId=y,n+=" "+h+" = "+d+"; ",E&&T?n+=" var "+(v="ifClause"+i)+" = 'then'; ":v="'then'",n+=" } ",T&&(n+=" else { ")):n+=" if (!"+d+") { ",T&&(f.schema=e.schema.else,f.schemaPath=e.schemaPath+".else",f.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(f)+" ",f.baseId=y,n+=" "+h+" = "+d+"; ",E&&T?n+=" var "+(v="ifClause"+i)+" = 'else'; ":v="'else'",n+=" } "),n+=" if (!"+h+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+v+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+v+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",l&&(n+=" else { ")}else l&&(n+=" if (true) { ");return n},items:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g="i"+i,E=f.dataLevel=e.dataLevel+1,T="data"+E,y=e.baseId;if(n+="var "+p+" = errors;var "+h+";",Array.isArray(a)){var v=e.schema.additionalItems;if(!1===v){n+=" "+h+" = "+u+".length <= "+a.length+"; ";var _=c;c=e.errSchemaPath+"/additionalItems",n+=" if (!"+h+") { ";var b=b||[];b.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+a.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+a.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var A=n;n=b.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+A+"]); ":n+=" validate.errors = ["+A+"]; return false; ":n+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c=_,l&&(d+="}",n+=" else { ")}var S=a;if(S)for(var k,C=-1,x=S.length-1;C<x;)if(k=S[C+=1],e.opts.strictKeywords?"object"==typeof k&&Object.keys(k).length>0||!1===k:e.util.schemaHasRules(k,e.RULES.all)){n+=" "+m+" = true; if ("+u+".length > "+C+") { ";var w=u+"["+C+"]";f.schema=k,f.schemaPath=s+"["+C+"]",f.errSchemaPath=c+"/"+C,f.errorPath=e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers,!0),f.dataPathArr[E]=C;var O=e.validate(f);f.baseId=y,e.util.varOccurences(O,T)<2?n+=" "+e.util.varReplace(O,T,w)+" ":n+=" var "+T+" = "+w+"; "+O+" ",n+=" } ",l&&(n+=" if ("+m+") { ",d+="}")}if("object"==typeof v&&(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all))){f.schema=v,f.schemaPath=e.schemaPath+".additionalItems",f.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+u+".length > "+a.length+") { for (var "+g+" = "+a.length+"; "+g+" < "+u+".length; "+g+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);w=u+"["+g+"]";f.dataPathArr[E]=g;O=e.validate(f);f.baseId=y,e.util.varOccurences(O,T)<2?n+=" "+e.util.varReplace(O,T,w)+" ":n+=" var "+T+" = "+w+"; "+O+" ",l&&(n+=" if (!"+m+") break; "),n+=" } } ",l&&(n+=" if ("+m+") { ",d+="}")}}else if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){f.schema=a,f.schemaPath=s,f.errSchemaPath=c,n+=" for (var "+g+" = 0; "+g+" < "+u+".length; "+g+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);w=u+"["+g+"]";f.dataPathArr[E]=g;O=e.validate(f);f.baseId=y,e.util.varOccurences(O,T)<2?n+=" "+e.util.varReplace(O,T,w)+" ":n+=" var "+T+" = "+w+"; "+O+" ",l&&(n+=" if (!"+m+") break; "),n+=" }"}return l&&(n+=" "+d+" if ("+p+" == errors) {"),n},maximum:Kt,minimum:Kt,maxItems:$t,minItems:$t,maxLength:Vt,minLength:Vt,maxProperties:Qt,minProperties:Qt,multipleOf:function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!p&&"number"!=typeof s)throw new Error(t+" must be number");i+="var division"+o+";if (",p&&(i+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),i+=" (division"+o+" = "+h+" / "+n+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+o+" !== parseInt(division"+o+") ",i+=" ) ",p&&(i+=" ) "),i+=" ) { ";var f=f||[];f.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be multiple of ",i+=p?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var d=i;return i=f.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+d+"]); ":i+=" validate.errors = ["+d+"]; return false; ":i+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i},not:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="errs__"+i,p=e.util.copy(e);p.level++;var f="valid"+p.level;if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+h+" = errors; ";var d,m=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1,p.opts.allErrors&&(d=p.opts.allErrors,p.opts.allErrors=!1),n+=" "+e.validate(p)+" ",p.createErrors=!0,d&&(p.opts.allErrors=d),e.compositeRule=p.compositeRule=m,n+=" if ("+f+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var E=n;n=g.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(n+=" if (false) { ");return n},oneOf:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g=f.baseId,E="prevValid"+i,T="passingSchemas"+i;n+="var "+p+" = errors , "+E+" = false , "+h+" = false , "+T+" = null; ";var y=e.compositeRule;e.compositeRule=f.compositeRule=!0;var v=a;if(v)for(var _,b=-1,A=v.length-1;b<A;)_=v[b+=1],(e.opts.strictKeywords?"object"==typeof _&&Object.keys(_).length>0||!1===_:e.util.schemaHasRules(_,e.RULES.all))?(f.schema=_,f.schemaPath=s+"["+b+"]",f.errSchemaPath=c+"/"+b,n+=" "+e.validate(f)+" ",f.baseId=g):n+=" var "+m+" = true; ",b&&(n+=" if ("+m+" && "+E+") { "+h+" = false; "+T+" = ["+T+", "+b+"]; } else { ",d+="}"),n+=" if ("+m+") { "+h+" = "+E+" = true; "+T+" = "+b+"; }";return e.compositeRule=f.compositeRule=y,n+=d+"if (!"+h+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+T+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n},pattern:function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),p=e.opts.$data&&s&&s.$data;p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),i+=" !"+(p?"(new RegExp("+n+"))":e.usePattern(s))+".test("+h+") ) { ";var f=f||[];f.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { pattern: ",i+=p?""+n:""+e.util.toQuotedString(s),i+=" } ",!1!==e.opts.messages&&(i+=" , message: 'should match pattern \"",i+=p?"' + "+n+" + '":""+e.util.escapeQuotes(s),i+="\"' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+e.util.toQuotedString(s),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var d=i;return i=f.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+d+"]); ":i+=" validate.errors = ["+d+"]; return false; ":i+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i},properties:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="errs__"+i,p=e.util.copy(e),f="";p.level++;var d="valid"+p.level,m="key"+i,g="idx"+i,E=p.dataLevel=e.dataLevel+1,T="data"+E,y="dataProperties"+i,v=Object.keys(a||{}).filter(I),_=e.schema.patternProperties||{},b=Object.keys(_).filter(I),A=e.schema.additionalProperties,S=v.length||b.length,k=!1===A,C="object"==typeof A&&Object.keys(A).length,x=e.opts.removeAdditional,w=k||C||x,O=e.opts.ownProperties,N=e.baseId,P=e.schema.required;if(P&&(!e.opts.$data||!P.$data)&&P.length<e.opts.loopRequired)var R=e.util.toHash(P);function I(e){return"__proto__"!==e}if(n+="var "+h+" = errors;var "+d+" = true;",O&&(n+=" var "+y+" = undefined;"),w){if(n+=O?" "+y+" = "+y+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+y+".length; "+g+"++) { var "+m+" = "+y+"["+g+"]; ":" for (var "+m+" in "+u+") { ",S){if(n+=" var isAdditional"+i+" = !(false ",v.length)if(v.length>8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var L=v;if(L)for(var D=-1,M=L.length-1;D<M;)W=L[D+=1],n+=" || "+m+" == "+e.util.toQuotedString(W)+" "}if(b.length){var F=b;if(F)for(var H=-1,B=F.length-1;H<B;)oe=F[H+=1],n+=" || "+e.usePattern(oe)+".test("+m+") "}n+=" ); if (isAdditional"+i+") { "}if("all"==x)n+=" delete "+u+"["+m+"]; ";else{var U=e.errorPath,j="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),k)if(x)n+=" delete "+u+"["+m+"]; ";else{n+=" "+d+" = false; ";var q=c;c=e.errSchemaPath+"/additionalProperties",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { additionalProperty: '"+j+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var z=n;n=re.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+z+"]); ":n+=" validate.errors = ["+z+"]; return false; ":n+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=q,l&&(n+=" break; ")}else if(C)if("failing"==x){n+=" var "+h+" = errors; ";var G=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=A,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var K=u+"["+m+"]";p.dataPathArr[E]=m;var $=e.validate(p);p.baseId=N,e.util.varOccurences($,T)<2?n+=" "+e.util.varReplace($,T,K)+" ":n+=" var "+T+" = "+K+"; "+$+" ",n+=" if (!"+d+") { errors = "+h+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+m+"]; } ",e.compositeRule=p.compositeRule=G}else{p.schema=A,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);K=u+"["+m+"]";p.dataPathArr[E]=m;$=e.validate(p);p.baseId=N,e.util.varOccurences($,T)<2?n+=" "+e.util.varReplace($,T,K)+" ":n+=" var "+T+" = "+K+"; "+$+" ",l&&(n+=" if (!"+d+") break; ")}e.errorPath=U}S&&(n+=" } "),n+=" } ",l&&(n+=" if ("+d+") { ",f+="}")}var V=e.opts.useDefaults&&!e.compositeRule;if(v.length){var Q=v;if(Q)for(var W,Y=-1,X=Q.length-1;Y<X;){var J=a[W=Q[Y+=1]];if(e.opts.strictKeywords?"object"==typeof J&&Object.keys(J).length>0||!1===J:e.util.schemaHasRules(J,e.RULES.all)){var Z=e.util.getProperty(W),ee=(K=u+Z,V&&void 0!==J.default);p.schema=J,p.schemaPath=s+Z,p.errSchemaPath=c+"/"+e.util.escapeFragment(W),p.errorPath=e.util.getPath(e.errorPath,W,e.opts.jsonPointers),p.dataPathArr[E]=e.util.toQuotedString(W);$=e.validate(p);if(p.baseId=N,e.util.varOccurences($,T)<2){$=e.util.varReplace($,T,K);var te=K}else{te=T;n+=" var "+T+" = "+K+"; "}if(ee)n+=" "+$+" ";else{if(R&&R[W]){n+=" if ( "+te+" === undefined ",O&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(W)+"') "),n+=") { "+d+" = false; ";U=e.errorPath,q=c;var re,ne=e.util.escapeQuotes(W);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(U,W,e.opts.jsonPointers)),c=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";z=n;n=re.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+z+"]); ":n+=" validate.errors = ["+z+"]; return false; ":n+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=q,e.errorPath=U,n+=" } else { "}else l?(n+=" if ( "+te+" === undefined ",O&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(W)+"') "),n+=") { "+d+" = true; } else { "):(n+=" if ("+te+" !== undefined ",O&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(W)+"') "),n+=" ) { ");n+=" "+$+" } "}}l&&(n+=" if ("+d+") { ",f+="}")}}if(b.length){var ie=b;if(ie)for(var oe,ae=-1,se=ie.length-1;ae<se;){J=_[oe=ie[ae+=1]];if(e.opts.strictKeywords?"object"==typeof J&&Object.keys(J).length>0||!1===J:e.util.schemaHasRules(J,e.RULES.all)){p.schema=J,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(oe),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(oe),n+=O?" "+y+" = "+y+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+y+".length; "+g+"++) { var "+m+" = "+y+"["+g+"]; ":" for (var "+m+" in "+u+") { ",n+=" if ("+e.usePattern(oe)+".test("+m+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);K=u+"["+m+"]";p.dataPathArr[E]=m;$=e.validate(p);p.baseId=N,e.util.varOccurences($,T)<2?n+=" "+e.util.varReplace($,T,K)+" ":n+=" var "+T+" = "+K+"; "+$+" ",l&&(n+=" if (!"+d+") break; "),n+=" } ",l&&(n+=" else "+d+" = true; "),n+=" } ",l&&(n+=" if ("+d+") { ",f+="}")}}}return l&&(n+=" "+f+" if ("+h+" == errors) {"),n},propertyNames:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="errs__"+i,p=e.util.copy(e);p.level++;var f="valid"+p.level;if(n+="var "+h+" = errors;",e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=c;var d="key"+i,m="idx"+i,g="i"+i,E="' + "+d+" + '",T="data"+(p.dataLevel=e.dataLevel+1),y="dataProperties"+i,v=e.opts.ownProperties,_=e.baseId;v&&(n+=" var "+y+" = undefined; "),n+=v?" "+y+" = "+y+" || Object.keys("+u+"); for (var "+m+"=0; "+m+"<"+y+".length; "+m+"++) { var "+d+" = "+y+"["+m+"]; ":" for (var "+d+" in "+u+") { ",n+=" var startErrs"+i+" = errors; ";var b=d,A=e.compositeRule;e.compositeRule=p.compositeRule=!0;var S=e.validate(p);p.baseId=_,e.util.varOccurences(S,T)<2?n+=" "+e.util.varReplace(S,T,b)+" ":n+=" var "+T+" = "+b+"; "+S+" ",e.compositeRule=p.compositeRule=A,n+=" if (!"+f+") { for (var "+g+"=startErrs"+i+"; "+g+"<errors; "+g+"++) { vErrors["+g+"].propertyName = "+d+"; } var err = ",!1!==e.createErrors?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+E+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+E+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),l&&(n+=" break; "),n+=" } }"}return l&&(n+=" if ("+h+" == errors) {"),n},required:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p=e.opts.$data&&a&&a.$data;p&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ");var f="schema"+i;if(!p)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var d=[],m=a;if(m)for(var g,E=-1,T=m.length-1;E<T;){g=m[E+=1];var y=e.schema.properties[g];y&&(e.opts.strictKeywords?"object"==typeof y&&Object.keys(y).length>0||!1===y:e.util.schemaHasRules(y,e.RULES.all))||(d[d.length]=g)}}else d=a;if(p||d.length){var v=e.errorPath,_=p||d.length>=e.opts.loopRequired,b=e.opts.ownProperties;if(l)if(n+=" var missing"+i+"; ",_){p||(n+=" var "+f+" = validate.schema"+s+"; ");var A="' + "+(O="schema"+i+"["+(C="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(v,O,e.opts.jsonPointers)),n+=" var "+h+" = true; ",p&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=" for (var "+C+" = 0; "+C+" < "+f+".length; "+C+"++) { "+h+" = "+u+"["+f+"["+C+"]] !== undefined ",b&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", "+f+"["+C+"]) "),n+="; if (!"+h+") break; } ",p&&(n+=" } "),n+=" if (!"+h+") { ",(w=w||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var S=n;n=w.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var k=d;if(k)for(var C=-1,x=k.length-1;C<x;){P=k[C+=1],C&&(n+=" || "),n+=" ( ( "+(D=u+(L=e.util.getProperty(P)))+" === undefined ",b&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(P)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?P:L)+") ) "}n+=") { ";var w;A="' + "+(O="missing"+i)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(v,O,!0):v+" + "+O),(w=w||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";S=n;n=w.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(_){p||(n+=" var "+f+" = validate.schema"+s+"; ");var O;A="' + "+(O="schema"+i+"["+(C="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(v,O,e.opts.jsonPointers)),p&&(n+=" if ("+f+" && !Array.isArray("+f+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+f+" !== undefined) { "),n+=" for (var "+C+" = 0; "+C+" < "+f+".length; "+C+"++) { if ("+u+"["+f+"["+C+"]] === undefined ",b&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+f+"["+C+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(n+=" } ")}else{var N=d;if(N)for(var P,R=-1,I=N.length-1;R<I;){P=N[R+=1];var L=e.util.getProperty(P),D=(A=e.util.escapeQuotes(P),u+L);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(v,P,e.opts.jsonPointers)),n+=" if ( "+D+" === undefined ",b&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(P)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=v}else l&&(n+=" if (true) {");return n},uniqueItems:function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),p="valid"+o,f=e.opts.$data&&s&&s.$data;if(f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,(s||f)&&!1!==e.opts.uniqueItems){f&&(i+=" var "+p+"; if ("+n+" === false || "+n+" === undefined) "+p+" = true; else if (typeof "+n+" != 'boolean') "+p+" = false; else { "),i+=" var i = "+h+".length , "+p+" = true , j; if (i > 1) { ";var d=e.schema.items&&e.schema.items.type,m=Array.isArray(d);if(!d||"object"==d||"array"==d||m&&(d.indexOf("object")>=0||d.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+h+"[i], "+h+"[j])) { "+p+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+h+"[i]; ";var g="checkDataType"+(m?"s":"");i+=" if ("+e.util[g](d,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(i+=" if (typeof item == 'string') item = '\"' + item; "),i+=" if (typeof itemIndices[item] == 'number') { "+p+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",f&&(i+=" } "),i+=" if (!"+p+") { ";var E=E||[];E.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var T=i;i=E.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+T+"]); ":i+=" validate.errors = ["+T+"]; return false; ":i+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { ")}else u&&(i+=" if (true) { ");return i},validate:ot},Yt=Wt,Xt=me.toHash,Jt=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"],Zt=tt.MissingRef,er=function e(t,r,n){var i=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(n=r,r=void 0);var o=a(t).then((function(){var e=i._addSchema(t,void 0,r);return e.validate||s(e)}));n&&o.then((function(e){n(null,e)}),n);return o;function a(t){var r=t.$schema;return r&&!i.getSchema(r)?e.call(i,{$ref:r},!0):Promise.resolve()}function s(e){try{return i._compile(e)}catch(t){if(t instanceof Zt)return function(t){var n=t.missingSchema;if(l(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var o=i._loadingSchemas[n];o||(o=i._loadingSchemas[n]=i._opts.loadSchema(n)).then(c,c);return o.then((function(e){if(!l(n))return a(e).then((function(){l(n)||i.addSchema(e,n,void 0,r)}))})).then((function(){return s(e)}));function c(){delete i._loadingSchemas[n]}function l(e){return i._refs[e]||i._schemas[e]}}(t);throw t}}};var tr={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0},rr=tr,nr={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:rr.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:rr.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}},ir=/^[a-z_$][a-z0-9_$-]*$/i,or=function(e,t,r){var n,i,o=" ",a=e.level,s=e.dataLevel,c=e.schema[t],l=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,p="data"+(s||""),f="valid"+a,d="errs__"+a,m=e.opts.$data&&c&&c.$data;m?(o+=" var schema"+a+" = "+e.util.getData(c.$data,s,e.dataPathArr)+"; ",i="schema"+a):i=c;var g,E,T,y,v,_=this,b="definition"+a,A=_.definition,S="";if(m&&A.$data){v="keywordValidate"+a;var k=A.validateSchema;o+=" var "+b+" = RULES.custom['"+t+"'].definition; var "+v+" = "+b+".validate;"}else{if(!(y=e.useCustomRule(_,c,e.schema,e)))return;i="validate.schema"+l,v=y.code,g=A.compile,E=A.inline,T=A.macro}var C=v+".errors",x="i"+a,w="ruleErr"+a,O=A.async;if(O&&!e.async)throw new Error("async keyword in sync schema");if(E||T||(o+=C+" = null;"),o+="var "+d+" = errors;var "+f+";",m&&A.$data&&(S+="}",o+=" if ("+i+" === undefined) { "+f+" = true; } else { ",k&&(S+="}",o+=" "+f+" = "+b+".validateSchema("+i+"); if ("+f+") { ")),E)A.statements?o+=" "+y.validate+" ":o+=" "+f+" = "+y.validate+"; ";else if(T){var N=e.util.copy(e);S="";N.level++;var P="valid"+N.level;N.schema=y.validate,N.schemaPath="";var R=e.compositeRule;e.compositeRule=N.compositeRule=!0;var I=e.validate(N).replace(/validate\.schema/g,v);e.compositeRule=N.compositeRule=R,o+=" "+I}else{(F=F||[]).push(o),o="",o+=" "+v+".call( ",e.opts.passContext?o+="this":o+="self",g||!1===A.schema?o+=" , "+p+" ":o+=" , "+i+" , "+p+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var L=s?"data"+(s-1||""):"parentData",D=s?e.dataPathArr[s]:"parentDataProperty",M=o+=" , "+L+" , "+D+" , rootData ) ";o=F.pop(),!1===A.errors?(o+=" "+f+" = ",O&&(o+="await "),o+=M+"; "):o+=O?" var "+(C="customErrors"+a)+" = null; try { "+f+" = await "+M+"; } catch (e) { "+f+" = false; if (e instanceof ValidationError) "+C+" = e.errors; else throw e; } ":" "+C+" = null; "+f+" = "+M+"; "}if(A.modifying&&(o+=" if ("+L+") "+p+" = "+L+"["+D+"];"),o+=""+S,A.valid)h&&(o+=" if (true) { ");else{var F;o+=" if ( ",void 0===A.valid?(o+=" !",o+=T?""+P:""+f):o+=" "+!A.valid+" ",o+=") { ",n=_.keyword,(F=F||[]).push(o),o="",(F=F||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+_.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+_.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),o+=" } "):o+=" {} ";var H=o;o=F.pop(),!e.compositeRule&&h?e.async?o+=" throw new ValidationError(["+H+"]); ":o+=" validate.errors = ["+H+"]; return false; ":o+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var B=o;o=F.pop(),E?A.errors?"full"!=A.errors&&(o+=" for (var "+x+"="+d+"; "+x+"<errors; "+x+"++) { var "+w+" = vErrors["+x+"]; if ("+w+".dataPath === undefined) "+w+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+w+".schemaPath === undefined) { "+w+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(o+=" "+w+".schema = "+i+"; "+w+".data = "+p+"; "),o+=" } "):!1===A.errors?o+=" "+B+" ":(o+=" if ("+d+" == errors) { "+B+" } else { for (var "+x+"="+d+"; "+x+"<errors; "+x+"++) { var "+w+" = vErrors["+x+"]; if ("+w+".dataPath === undefined) "+w+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+w+".schemaPath === undefined) { "+w+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(o+=" "+w+".schema = "+i+"; "+w+".data = "+p+"; "),o+=" } } "):T?(o+=" var err = ",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+_.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+_.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&h&&(e.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; ")):!1===A.errors?o+=" "+B+" ":(o+=" if (Array.isArray("+C+")) { if (vErrors === null) vErrors = "+C+"; else vErrors = vErrors.concat("+C+"); errors = vErrors.length; for (var "+x+"="+d+"; "+x+"<errors; "+x+"++) { var "+w+" = vErrors["+x+"]; if ("+w+".dataPath === undefined) "+w+".dataPath = (dataPath || '') + "+e.errorPath+"; "+w+'.schemaPath = "'+u+'"; ',e.opts.verbose&&(o+=" "+w+".schema = "+i+"; "+w+".data = "+p+"; "),o+=" } } else { "+B+" } "),o+=" } ",h&&(o+=" else { ")}return o},ar=nr,sr={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!ir.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var n=t.type;if(Array.isArray(n))for(var i=0;i<n.length;i++)a(e,n[i],t);else a(e,n,t);var o=t.metaSchema;o&&(t.$data&&this._opts.$data&&(o={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(o,!0))}function a(e,t,n){for(var i,o=0;o<r.length;o++){var a=r[o];if(a.type==t){i=a;break}}i||(i={type:t,rules:[]},r.push(i));var s={keyword:e,definition:n,custom:!0,code:or,implements:n.implements};i.rules.push(s),r.custom[e]=s}return r.keywords[e]=r.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var n=t[r].rules,i=0;i<n.length;i++)if(n[i].keyword==e){n.splice(i,1);break}return this},validate:function e(t,r){e.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(ar,!0);if(n(t))return!0;if(e.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}};var cr={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},lr=dt,ur=Be,hr=At.exports,pr=Ne,fr=it,dr=Ft,mr=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=Xt(t),e.types=Xt(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var n;if("object"==typeof r){var i=Object.keys(r)[0];n=r[i],r=i,n.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:Yt[r],implements:n}})),e.all.$comment={keyword:"$comment",code:Yt.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=Xt(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e},gr=function(e,t){for(var r=0;r<t.length;r++){e=JSON.parse(JSON.stringify(e));var n,i=t[r].split("/"),o=e;for(n=1;n<i.length;n++)o=o[i[n]];for(n=0;n<Jt.length;n++){var a=Jt[n],s=o[a];s&&(o[a]={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e},Er=me,Tr=Sr;Sr.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var i=r(t);!0!==r.$async&&(this.errors=r.errors);return i},Sr.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},Sr.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],void 0,r,n);return this}var o=this._getId(e);if(void 0!==o&&"string"!=typeof o)throw new Error("schema id must be string");return Nr(this,t=ur.normalizeId(t||o)),this._schemas[t]=this._addSchema(e,r,n,!0),this},Sr.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},Sr.prototype.validateSchema=function(e,t){var r=e.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(_r)?_r:void 0,e._opts.defaultMeta}(this),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,e);if(!n&&t){var i="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(i);this.logger.error(i)}return n},Sr.prototype.getSchema=function(e){var t=kr(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var r=ur.schema.call(e,{schema:{}},t);if(r){var n=r.schema,i=r.root,o=r.baseId,a=lr.call(e,n,i,void 0,o);return e._fragments[t]=new pr({ref:t,fragment:!0,schema:n,root:i,baseId:o,validate:a}),a}}(this,e)}},Sr.prototype.removeSchema=function(e){if(e instanceof RegExp)return Cr(this,this._schemas,e),Cr(this,this._refs,e),this;switch(typeof e){case"undefined":return Cr(this,this._schemas),Cr(this,this._refs),this._cache.clear(),this;case"string":var t=kr(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var r=this._opts.serialize,n=r?r(e):e;this._cache.del(n);var i=this._getId(e);i&&(i=ur.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this},Sr.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},Sr.prototype.errorsText=function(e,t){if(e=e||this.errors,!e)return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,i="",o=0;o<e.length;o++){var a=e[o];a&&(i+=n+a.dataPath+" "+a.message+r)}return i.slice(0,-r.length)},Sr.prototype._addSchema=function(e,t,r,n){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var i=this._opts.serialize,o=i?i(e):e,a=this._cache.get(o);if(a)return a;n=n||!1!==this._opts.addUsedSchema;var s=ur.normalizeId(this._getId(e));s&&n&&Nr(this,s);var c,l=!1!==this._opts.validateSchema&&!t;l&&!(c=s&&s==ur.normalizeId(e.$schema))&&this.validateSchema(e,!0);var u=ur.ids.call(this,e),h=new pr({id:s,schema:e,localRefs:u,cacheKey:o,meta:r});"#"!=s[0]&&n&&(this._refs[s]=h);this._cache.put(o,h),l&&c&&this.validateSchema(e,!0);return h},Sr.prototype._compile=function(e,t){if(e.compiling)return e.validate=i,i.schema=e.schema,i.errors=null,i.root=t||i,!0===e.schema.$async&&(i.$async=!0),i;var r,n;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{n=lr.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=n,e.refs=n.refs,e.refVal=n.refVal,e.root=n.root,n;function i(){var t=e.validate,r=t.apply(this,arguments);return i.errors=t.errors,r}},Sr.prototype.compileAsync=er;var yr=sr;Sr.prototype.addKeyword=yr.add,Sr.prototype.getKeyword=yr.get,Sr.prototype.removeKeyword=yr.remove,Sr.prototype.validateKeyword=yr.validate;var vr=tt;Sr.ValidationError=vr.Validation,Sr.MissingRefError=vr.MissingRef,Sr.$dataMetaSchema=gr;var _r="http://json-schema.org/draft-07/schema",br=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Ar=["/properties"];function Sr(e){if(!(this instanceof Sr))return new Sr(e);e=this._opts=Er.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:Pr,warn:Pr,error:Pr};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=dr(e.format),this._cache=e.cache||new hr,this._loadingSchemas={},this._compilations=[],this.RULES=mr(),this._getId=function(e){switch(e.schemaId){case"auto":return Or;case"id":return xr;default:return wr}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=fr),this._metaOpts=function(e){for(var t=Er.copy(e._opts),r=0;r<br.length;r++)delete t[br[r]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var r=e._opts.formats[t];e.addFormat(t,r)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var r=e._opts.keywords[t];e.addKeyword(t,r)}}(this),function(e){var t;e._opts.$data&&(t=cr,e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var r=tr;e._opts.$data&&(r=gr(r,Ar));e.addMetaSchema(r,_r,!0),e._refs["http://json-schema.org/schema"]=_r}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var r in t)e.addSchema(t[r],r)}(this)}function kr(e,t){return t=ur.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function Cr(e,t,r){for(var n in t){var i=t[n];i.meta||r&&!r.test(n)||(e._cache.del(i.cacheKey),delete t[n])}}function xr(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function wr(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function Or(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function Nr(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function Pr(){}var Rr,Ir={exports:{}},Lr={exports:{}};Lr.exports=(Rr=Rr||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==ue&&ue.crypto&&(r=ue.crypto),!r)try{r=require("crypto")}catch(e){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),o={},a=o.lib={},s=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=s.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)t[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new c.init(t,e)}}),l=o.enc={},u=l.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},h=l.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},p=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*l,o);if(l){for(var h=0;h<l;h+=a)this._doProcessBlock(i,h);r=i.splice(0,l),n.sigBytes-=u}return new c.init(r,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=f.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new d.HMAC.init(e,r).finalize(t)}}});var d=o.algo={};return o}(Math),Rr);var Dr={exports:{}};Dr.exports=function(e){return function(){var t=e,r=t.lib.WordArray;function n(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}t.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(Lr.exports);var Mr={exports:{}};Mr.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],f=e[t+2],d=e[t+3],m=e[t+4],g=e[t+5],E=e[t+6],T=e[t+7],y=e[t+8],v=e[t+9],_=e[t+10],b=e[t+11],A=e[t+12],S=e[t+13],k=e[t+14],C=e[t+15],x=o[0],w=o[1],O=o[2],N=o[3];x=l(x,w,O,N,a,7,s[0]),N=l(N,x,w,O,c,12,s[1]),O=l(O,N,x,w,f,17,s[2]),w=l(w,O,N,x,d,22,s[3]),x=l(x,w,O,N,m,7,s[4]),N=l(N,x,w,O,g,12,s[5]),O=l(O,N,x,w,E,17,s[6]),w=l(w,O,N,x,T,22,s[7]),x=l(x,w,O,N,y,7,s[8]),N=l(N,x,w,O,v,12,s[9]),O=l(O,N,x,w,_,17,s[10]),w=l(w,O,N,x,b,22,s[11]),x=l(x,w,O,N,A,7,s[12]),N=l(N,x,w,O,S,12,s[13]),O=l(O,N,x,w,k,17,s[14]),x=u(x,w=l(w,O,N,x,C,22,s[15]),O,N,c,5,s[16]),N=u(N,x,w,O,E,9,s[17]),O=u(O,N,x,w,b,14,s[18]),w=u(w,O,N,x,a,20,s[19]),x=u(x,w,O,N,g,5,s[20]),N=u(N,x,w,O,_,9,s[21]),O=u(O,N,x,w,C,14,s[22]),w=u(w,O,N,x,m,20,s[23]),x=u(x,w,O,N,v,5,s[24]),N=u(N,x,w,O,k,9,s[25]),O=u(O,N,x,w,d,14,s[26]),w=u(w,O,N,x,y,20,s[27]),x=u(x,w,O,N,S,5,s[28]),N=u(N,x,w,O,f,9,s[29]),O=u(O,N,x,w,T,14,s[30]),x=h(x,w=u(w,O,N,x,A,20,s[31]),O,N,g,4,s[32]),N=h(N,x,w,O,y,11,s[33]),O=h(O,N,x,w,b,16,s[34]),w=h(w,O,N,x,k,23,s[35]),x=h(x,w,O,N,c,4,s[36]),N=h(N,x,w,O,m,11,s[37]),O=h(O,N,x,w,T,16,s[38]),w=h(w,O,N,x,_,23,s[39]),x=h(x,w,O,N,S,4,s[40]),N=h(N,x,w,O,a,11,s[41]),O=h(O,N,x,w,d,16,s[42]),w=h(w,O,N,x,E,23,s[43]),x=h(x,w,O,N,v,4,s[44]),N=h(N,x,w,O,A,11,s[45]),O=h(O,N,x,w,C,16,s[46]),x=p(x,w=h(w,O,N,x,f,23,s[47]),O,N,a,6,s[48]),N=p(N,x,w,O,T,10,s[49]),O=p(O,N,x,w,k,15,s[50]),w=p(w,O,N,x,g,21,s[51]),x=p(x,w,O,N,A,6,s[52]),N=p(N,x,w,O,d,10,s[53]),O=p(O,N,x,w,_,15,s[54]),w=p(w,O,N,x,c,21,s[55]),x=p(x,w,O,N,y,6,s[56]),N=p(N,x,w,O,C,10,s[57]),O=p(O,N,x,w,E,15,s[58]),w=p(w,O,N,x,S,21,s[59]),x=p(x,w,O,N,m,6,s[60]),N=p(N,x,w,O,b,10,s[61]),O=p(O,N,x,w,f,15,s[62]),w=p(w,O,N,x,v,21,s[63]),o[0]=o[0]+x|0,o[1]=o[1]+w|0,o[2]=o[2]+O|0,o[3]=o[3]+N|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function p(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}r.MD5=o._createHelper(c),r.HmacMD5=o._createHmacHelper(c)}(Math),e.MD5}(Lr.exports);var Fr={exports:{}},Hr={exports:{}};Hr.exports=function(e){return r=(t=e).lib,n=r.WordArray,i=r.Hasher,o=t.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],c=r[4],l=0;l<80;l++){if(l<16)a[l]=0|e[t+l];else{var u=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=u<<1|u>>>31}var h=(n<<5|n>>>27)+c+a[l];h+=l<20?1518500249+(i&o|~i&s):l<40?1859775393+(i^o^s):l<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,c=s,s=o,o=i<<30|i>>>2,i=n,n=h}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s),e.SHA1;var t,r,n,i,o,a,s}(Lr.exports);var Br={exports:{}};Br.exports=function(e){var t,r,n;r=(t=e).lib.Base,n=t.enc.Utf8,t.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,c=a.words,l=0;l<r;l++)s[l]^=1549556828,c[l]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})}(Lr.exports),Fr.exports=function(e){return r=(t=e).lib,n=r.Base,i=r.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),a=i.create(),s=a.words,c=n.keySize,l=n.iterations;s.length<c;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var u=1;u<l;u++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*c,a}}),t.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)},e.EvpKDF;var t,r,n,i,o,a,s}(Lr.exports);var Ur={exports:{}};Ur.exports=function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,s=r.enc;s.Utf8;var c=s.Base64,l=r.algo.EvpKDF,u=n.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?y:E}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var h=r.mode={},p=n.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),f=h.CBC=function(){var e=p.extend();function r(e,r,n){var i,o=this._iv;o?(i=o,this._iv=t):i=this._prevBlock;for(var a=0;a<n;a++)e[r+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);n.decryptBlock(e,t),r.call(this,e,t,i),this._prevBlock=o}}),e}(),d=(r.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,a=[],s=0;s<n;s+=4)a.push(i);var c=o.create(a,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:d}),reset:function(){var e;u.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(r.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?o.create([1398893684,1701076831]).concat(r).concat(t):t).toString(c)},parse:function(e){var t,r=c.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),m.create({ciphertext:r,salt:t})}},E=n.SerializableCipher=i.extend({cfg:i.extend({format:g}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return m.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),T=(r.kdf={}).OpenSSL={execute:function(e,t,r,n){n||(n=o.random(8));var i=l.create({keySize:t+r}).compute(e,n),a=o.create(i.words.slice(t),4*r);return i.sigBytes=4*t,m.create({key:i,iv:a,salt:n})}},y=n.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:T}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=E.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=i.iv,E.decrypt.call(this,e,t,i.key,n)}})}()}(Lr.exports),Ir.exports=function(e){return function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],h=[],p=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[r]=d,o[d]=r;var m=e[r],g=e[m],E=e[g],T=257*e[d]^16843008*d;a[r]=T<<24|T>>>8,s[r]=T<<16|T>>>16,c[r]=T<<8|T>>>24,l[r]=T,T=16843009*E^65537*g^257*m^16843008*r,u[d]=T<<24|T>>>8,h[d]=T<<16|T>>>16,p[d]=T<<8|T>>>24,f[d]=T,r?(r=m^e[e[e[E^m]]],n^=e[e[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(l=o[a-1],a%r?r>6&&a%r==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=d[a/r|0]<<24),o[a]=o[a-r]^l);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var l=o[a];else l=o[a-4];s[c]=c<4||a<=4?l:u[i[l>>>24]]^h[i[l>>>16&255]]^p[i[l>>>8&255]]^f[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,h,p,f,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],h=e[t+2]^r[2],p=e[t+3]^r[3],f=4,d=1;d<c;d++){var m=n[l>>>24]^i[u>>>16&255]^o[h>>>8&255]^a[255&p]^r[f++],g=n[u>>>24]^i[h>>>16&255]^o[p>>>8&255]^a[255&l]^r[f++],E=n[h>>>24]^i[p>>>16&255]^o[l>>>8&255]^a[255&u]^r[f++],T=n[p>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&h]^r[f++];l=m,u=g,h=E,p=T}m=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&p])^r[f++],g=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[p>>>8&255]<<8|s[255&l])^r[f++],E=(s[h>>>24]<<24|s[p>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[f++],T=(s[p>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^r[f++],e[t]=m,e[t+1]=g,e[t+2]=E,e[t+3]=T},keySize:8});t.AES=r._createHelper(m)}(),e.AES}(Lr.exports);var jr={exports:{}};jr.exports=function(e){return e.enc.Utf8}(Lr.exports);const qr={},zr={};function Gr(e,t){let r=t;for(let t=0;t<e.length;t++){const n=t===e.length-1,i=e.charAt(t),o=r[i]||(r[i]={chars:{}});n&&(o.self=e),r=o.chars}}function Kr(e){if(0===e.length)return qr;const t={};for(const r of e)Gr(r,t);return t}function $r(e){if(0===e.length)return zr;const t={};for(const r of e)t[r]=!0;return t}const Vr={},Qr={type:"String",optional:!0};function Wr(e){const t={optional:!1};function r(e){if(t.type&&t.type!==e)throw new Error(`Conflicting pseudo-class argument type: "${t.type}" vs "${e}".`);t.type=e}for(const n of e)"NoArgument"===n&&(t.optional=!0),"Formula"===n&&r("Formula"),"FormulaOfSelector"===n&&(r("Formula"),t.ofSelector=!0),"String"===n&&r("String"),"Selector"===n&&r("Selector");return t}function Yr(e){const t=function(e){const t={};for(const r of Object.keys(e)){const n=e[r];if(n)for(const e of n)(t[e]||(t[e]=[])).push(r)}return t}(e),r={};for(const e of Object.keys(t)){const n=t[e];n&&(r[e]=Wr(n))}return r}const Xr={},Jr={wildcard:!0};function Zr(e){return e?"boolean"==typeof e?Jr:e:Xr}function en(e,t){const r={...e};if("tag"in t)if(t.tag){r.tag={...Zr(e.tag)};const n=Zr(t.tag);"wildcard"in n&&(r.tag.wildcard=n.wildcard)}else r.tag=void 0;if("ids"in t&&(r.ids=t.ids),"classNames"in t&&(r.classNames=t.classNames),"namespace"in t)if(t.namespace){r.namespace={...Zr(e.namespace)};const n=Zr(t.namespace);"wildcard"in n&&(r.namespace.wildcard=n.wildcard)}else r.namespace=void 0;if("combinators"in t&&(t.combinators?r.combinators=r.combinators?r.combinators.concat(t.combinators):t.combinators:r.combinators=void 0),"attributes"in t&&(t.attributes?(r.attributes={...e.attributes},"unknownCaseSensitivityModifiers"in t.attributes&&(r.attributes.unknownCaseSensitivityModifiers=t.attributes.unknownCaseSensitivityModifiers),"operators"in t.attributes&&(r.attributes.operators=t.attributes.operators?r.attributes.operators?r.attributes.operators.concat(t.attributes.operators):t.attributes.operators:void 0),"caseSensitivityModifiers"in t.attributes&&(r.attributes.caseSensitivityModifiers=t.attributes.caseSensitivityModifiers?r.attributes.caseSensitivityModifiers?r.attributes.caseSensitivityModifiers.concat(t.attributes.caseSensitivityModifiers):t.attributes.caseSensitivityModifiers:void 0)):r.attributes=void 0),"pseudoElements"in t&&(t.pseudoElements?(r.pseudoElements={...e.pseudoElements},"unknown"in t.pseudoElements&&(r.pseudoElements.unknown=t.pseudoElements.unknown),"notation"in t.pseudoElements&&(r.pseudoElements.notation=t.pseudoElements.notation),"definitions"in t.pseudoElements&&(r.pseudoElements.definitions=t.pseudoElements.definitions?r.pseudoElements.definitions?r.pseudoElements.definitions.concat(t.pseudoElements.definitions):t.pseudoElements.definitions:void 0)):r.pseudoElements=void 0),"pseudoClasses"in t)if(t.pseudoClasses){if(r.pseudoClasses={...e.pseudoClasses},"unknown"in t.pseudoClasses&&(r.pseudoClasses.unknown=t.pseudoClasses.unknown),"definitions"in t.pseudoClasses){const e=t.pseudoClasses.definitions;if(e){r.pseudoClasses.definitions={...r.pseudoClasses.definitions};const t=r.pseudoClasses.definitions;for(const r of Object.keys(e)){const n=e[r],i=t[r];t[r]=n?i?i.concat(n):n:void 0}}else r.pseudoClasses.definitions=void 0}}else r.pseudoClasses=void 0;return r}const tn={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},rn=en(tn,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),nn=en(rn,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),on=en(nn,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has"]}}}),an={css1:tn,css2:rn,css3:nn,"selectors-3":nn,"selectors-4":on,latest:on,progressive:en(on,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}})};function sn(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"-"===e||"_"===e}function cn(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}const ln={n:"\n",r:"\r",t:"\t",f:"\f","\\":"\\"},un={" ":!0,"\t":!0,"\n":!0,"\r":!0,"\f":!0},hn={'"':!0,"'":!0},pn={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},fn="css-selector-parser parse error: ";const dn=function(e={}){const{syntax:t="latest",substitutes:r,strict:n=!0}=e;let i="string"==typeof t?an[t]:t;i.baseSyntax&&(i=en(an[i.baseSyntax],i));const[o,a]=i.tag?[!0,Boolean(Zr(i.tag).wildcard)]:[!1,!1],s=Boolean(i.ids),c=Boolean(i.classNames),l=Boolean(i.namespace),u=i.namespace&&(!0===i.namespace||!0===i.namespace.wildcard);if(l&&!o)throw new Error(`${fn}Namespaces cannot be enabled while tags are disabled.`);const h=Boolean(r),p=i.combinators?Kr(i.combinators):qr,[f,d,m,g]=i.attributes?[!0,i.attributes.operators?Kr(i.attributes.operators):qr,i.attributes.caseSensitivityModifiers?$r(i.attributes.caseSensitivityModifiers):zr,"accept"===i.attributes.unknownCaseSensitivityModifiers]:[!1,qr,zr,!1],E=g||Object.keys(m).length>0,[T,y,v]=i.pseudoClasses?[!0,i.pseudoClasses.definitions?Yr(i.pseudoClasses.definitions):Vr,"accept"===i.pseudoClasses.unknown]:[!1,Vr,!1],[_,b,A,S,k]=i.pseudoElements?[!0,"singleColon"===i.pseudoElements.notation||"both"===i.pseudoElements.notation,!i.pseudoElements.notation||"doubleColon"===i.pseudoElements.notation||"both"===i.pseudoElements.notation,i.pseudoElements.definitions?$r(i.pseudoElements.definitions):zr,"accept"===i.pseudoElements.unknown]:[!1,!1,!1,zr,!1];let C="",x=C.length,w=0,O="";const N=e=>O===e,P=()=>N("*")||sn(O)||N("\\"),R=e=>{w=e,O=C.charAt(w)},I=()=>{w++,O=C.charAt(w)},L=()=>{const e=O;return w++,O=C.charAt(w),e};function D(e){const t=Math.min(x-1,w),r=new Error(`${fn}${e} Pos: ${t}.`);throw r.position=t,r.name="ParserError",r}function M(e,t){if(!e)return D(t)}const F=()=>{M(w<x,"Unexpected end of input.")},H=()=>w>=x,B=e=>{M(w<x,`Expected "${e}" but end of input reached.`),M(O===e,`Expected "${e}" but "${O}" found.`),w++,O=C.charAt(w)};function U(e){const t=j(e,w);if(t)return w+=t.length,O=C.charAt(w),t}function j(e,t){const r=e[C.charAt(t)];if(r){const e=j(r.chars,t+1);if(e)return e;if(r.self)return r.self}}function q(){let e=L();for(;cn(O);)e+=L();return N(" ")&&I(),String.fromCharCode(parseInt(e,16))}function z(e){let t="";for(B(e);w<x;){if(N(e))return I(),t;if(N("\\")){let r;if(I(),N(e))t+=e;else if(void 0!==(r=ln[O]))t+=r;else{if(cn(O)){t+=q();continue}t+=O}}else t+=O;I()}return t}function G(){let e="";for(;w<x;)if((t=O)>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||"-"===t||"_"===t)e+=L();else{if(!N("\\"))return e;I(),F(),cn(O)?e+=q():e+=L()}var t;return e}function K(){let e="";for(;w<x&&!N(")");)if(N("\\")){if(I(),H()&&!n)return(e+"\\").trim();F(),cn(O)?e+=q():e+=L()}else e+=L();return e.trim()}function $(){for(;un[O];)I()}function V(e=!1){$();const t=[ee(e)];for(;N(",");)I(),$(),t.push(ee(e));return{type:"Selector",rules:t}}function Q(){let e;if(B("["),$(),N("|"))M(l,"Namespaces are not enabled."),I(),e={type:"Attribute",name:G(),namespace:{type:"NoNamespace"}};else if(N("*"))M(l,"Namespaces are not enabled."),M(u,"Wildcard namespace is not enabled."),I(),B("|"),e={type:"Attribute",name:G(),namespace:{type:"WildcardNamespace"}};else{const t=G();if(e={type:"Attribute",name:t},N("|")){const r=w;I(),sn(O)||N("\\")?(M(l,"Namespaces are not enabled."),e={type:"Attribute",name:G(),namespace:{type:"NamespaceName",name:t}}):R(r)}}if(M(e.name,"Expected attribute name."),$(),H()&&!n)return e;if(N("]"))I();else{if(e.operator=U(d),M(e.operator,"Expected a valid attribute selector operator."),$(),F(),hn[O]?e.value={type:"String",value:z(O)}:h&&N("$")?(I(),e.value={type:"Substitution",name:G()},M(e.value.name,"Expected substitute name.")):(e.value={type:"String",value:G()},M(e.value.value,"Expected attribute value.")),$(),H()&&!n)return e;if(!N("]")&&(e.caseSensitivityModifier=G(),M(e.caseSensitivityModifier,"Expected end of attribute selector."),M(E,"Attribute case sensitivity modifiers are not enabled."),M(g||m[e.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),$(),H()&&!n))return e;B("]")}return e}function W(){let e="";for(;pn[O];)e+=L();return M(""!==e,"Formula parse error."),parseInt(e)}const Y=()=>N("-")||N("+")||pn[O];function X(e){const t={type:"PseudoClass",name:e};let r=y[e];if(!r&&v&&(r=Qr),M(r,`Unknown pseudo-class: "${e}".`),N("(")){if(I(),$(),h&&N("$"))I(),t.argument={type:"Substitution",name:G()},M(t.argument.name,"Expected substitute name.");else if("String"===r.type)t.argument={type:"String",value:K()},M(t.argument.value,"Expected pseudo-class argument value.");else if("Selector"===r.type)t.argument=V(!0);else{if("Formula"!==r.type)return D("Invalid pseudo-class signature.");{const[e,n]=function(){if(N("e")||N("o")){const e=G();if("even"===e)return $(),[2,0];if("odd"===e)return $(),[2,1]}let e,t=null,r=1;if(N("-")&&(I(),r=-1),Y()&&(N("+")&&I(),t=W(),!N("\\")&&!N("n")))return[0,t*r];if(null===t&&(t=1),t*=r,N("\\")?(I(),e=cn(O)?q():L()):e=L(),M("n"===e,'Formula parse error: expected "n".'),$(),N("+")||N("-")){const e=N("+")?1:-1;return I(),$(),[t,e*W()]}return[t,0]}();if(t.argument={type:"Formula",a:e,b:n},r.ofSelector&&($(),N("o")||N("\\"))){M("of"===G(),"Formula of selector parse error."),$(),t.argument={type:"FormulaOfSelector",a:e,b:n,selector:ee()}}}}if($(),H()&&!n)return t;B(")")}else M(r.optional,`Argument is required for pseudo-class "${e}".`);return t}function J(){return N("*")?(M(a,"Wildcard tag name is not enabled."),I(),{type:"WildcardTag"}):sn(O)||N("\\")?(M(o,"Tag names are not enabled."),{type:"TagName",name:G()}):D("Expected tag name.")}function Z(){if(N("*")){const e=w;if(I(),!N("|"))return R(e),J();if(I(),!P())return R(e),J();M(l,"Namespaces are not enabled."),M(u,"Wildcard namespace is not enabled.");const t=J();return t.namespace={type:"WildcardNamespace"},t}if(N("|")){M(l,"Namespaces are not enabled."),I();const e=J();return e.namespace={type:"NoNamespace"},e}if(sn(O)||N("\\")){const e=G();if(!N("|"))return M(o,"Tag names are not enabled."),{type:"TagName",name:e};const t=w;if(I(),!P())return R(t),{type:"TagName",name:e};M(l,"Namespaces are not enabled.");const r=J();return r.namespace={type:"NamespaceName",name:e},r}return D("Expected tag name.")}function ee(e=!1){const t={};let r=!0;if(e){const e=U(p);e&&(t.combinator=e,$())}for(;w<x;){if(P())M(r,"Unexpected tag/namespace start."),t.tag=Z();else if(N("|")){const e=w;if(I(),!P()){R(e);break}M(r,"Unexpected tag/namespace start."),R(e),t.tag=Z()}else if(N(".")){M(c,"Class names are not enabled."),I();const e=G();M(e,"Expected class name."),(t.classNames=t.classNames||[]).push(e)}else if(N("#")){M(s,"IDs are not enabled."),I();const e=G();M(e,"Expected ID name."),(t.ids=t.ids||[]).push(e)}else if(N("["))M(f,"Attributes are not enabled."),(t.attributes=t.attributes||[]).push(Q());else{if(!N(":"))break;{let e=!1,r=!1;I(),N(":")&&(M(_,"Pseudo elements are not enabled."),M(A,"Pseudo elements double colon notation is not enabled."),e=!0,I());const n=G();if(M(e||n,"Expected pseudo-class name."),M(!e||n,"Expected pseudo-element name."),M(!e||k||S[n],`Unknown pseudo-element "${n}".`),r=_&&(e||!e&&b&&S[n]),r){if(t.pseudoElement=n,!(un[O]||N(",")||N(")")||H()))return D("Pseudo-element should be the last component of a CSS selector rule.")}else M(T,"Pseudo classes are not enabled."),(t.pseudoClasses=t.pseudoClasses||[]).push(X(n))}}r=!1}if(r)return H()?D("Expected rule but end of input reached."):D(`Expected rule but "${O}" found.`);if(t.type="Rule",$(),!H()&&!N(",")&&!N(")")){const e=U(p);$(),t.nestedRule=ee(),t.nestedRule.combinator=e}return t}return e=>{if("string"!=typeof e)throw new Error(`${fn}Expected string input.`);return C=e,x=C.length,w=0,O=C.charAt(0),V()}}({syntax:"selectors-4"});function mn(e){if("string"!=typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return dn(e)}function gn(e){return Array.isArray(e.children)}const En={}.hasOwnProperty;function Tn(e,t){const r=t||{};function n(t,...r){let i=n.invalid;const o=n.handlers;if(t&&En.call(t,e)){const r=String(t[e]);i=En.call(o,r)?o[r]:n.unknown}if(i)return i.call(this,t,...r)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const yn=Tn("operator",{unknown:function(e){throw new Error("Unknown operator `"+e.operator+"`")},invalid:vn,handlers:{"=":function(e,t){const r=_n(e);return vn(e,t)&&String(t[e.name])===r},"^=":function(e,t){const r=t[e.name],n=_n(e);return Boolean(e.value&&"string"==typeof r&&r.slice(0,n.length)===n)},"$=":function(e,t){const r=t[e.name],n=_n(e);return Boolean(e.value&&"string"==typeof r&&r.slice(-n.length)===n)},"*=":function(e,t){const r=t[e.name],n=_n(e);return Boolean("string"==typeof r&&n&&r.includes(n))},"~=":function(e,t){const r=t[e.name];if(null==r)return!1;const n=_n(e);if(Array.isArray(r)&&r.includes(n))return!0;return String(r)===n}}});function vn(e,t){return null!==t[e.name]&&void 0!==t[e.name]}function _n(e){const t=e.value;return t.type,t.value}const bn=new Set([9,10,12,13,32]),An="0".charCodeAt(0),Sn="9".charCodeAt(0);var kn={trueFunc:function(){return!0},falseFunc:function(){return!1}};function Cn(e){return function(e){const t=e[0],r=e[1]-1;if(r<0&&t<=0)return kn.falseFunc;if(-1===t)return e=>e<=r;if(0===t)return e=>e===r;if(1===t)return r<0?kn.trueFunc:e=>e>=r;const n=Math.abs(t),i=(r%n+n)%n;return t>1?e=>e>=r&&e%n===i:e=>e<=r&&e%n===i}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];let t=0,r=0,n=o(),i=a();if(t<e.length&&"n"===e.charAt(t)&&(t++,r=n*(null!=i?i:1),s(),t<e.length?(n=o(),s(),i=a()):n=i=0),null===i||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[r,n*i];function o(){return"-"===e.charAt(t)?(t++,-1):("+"===e.charAt(t)&&t++,1)}function a(){const r=t;let n=0;for(;t<e.length&&e.charCodeAt(t)>=An&&e.charCodeAt(t)<=Sn;)n=10*n+(e.charCodeAt(t)-An),t++;return t===r?null:n}function s(){for(;t<e.length&&bn.has(e.charCodeAt(t));)t++}}(e))}const xn=Cn.default||Cn,wn=Tn("name",{unknown:function(e){throw new Error("Unknown pseudo-selector `"+e.name+"`")},invalid:function(){throw new Error("Invalid pseudo-selector")},handlers:{is:Pn,blank:Nn,empty:Nn,"first-child":function(e,t,r,n,i){return Rn(i,e),0===i.nodeIndex},"first-of-type":function(e,t,r,n,i){return Rn(i,e),0===i.typeIndex},has:function(e,t,r,n,i){const o=e.argument;!o||o.type;const a={type:"root",children:gn(t)?t.children:[]},s={...i,found:!1,shallow:!1,one:!0,scopeNodes:[t],results:[],rootQuery:o};return Mn(s,a),s.results.length>0},"last-child":function(e,t,r,n,i){return Rn(i,e),"number"==typeof i.nodeCount&&i.nodeIndex===i.nodeCount-1},"last-of-type":function(e,t,r,n,i){return Rn(i,e),"number"==typeof i.typeCount&&i.typeIndex===i.typeCount-1},not:function(e,t,r,n,i){return!Pn(e,t,r,n,i)},"nth-child":function(e,t,r,n,i){const o=In(e);return Rn(i,e),"number"==typeof i.nodeIndex&&o(i.nodeIndex)},"nth-last-child":function(e,t,r,n,i){const o=In(e);return Rn(i,e),"number"==typeof i.nodeCount&&"number"==typeof i.nodeIndex&&o(i.nodeCount-i.nodeIndex-1)},"nth-of-type":function(e,t,r,n,i){const o=In(e);return Rn(i,e),"number"==typeof i.typeIndex&&o(i.typeIndex)},"nth-last-of-type":function(e,t,r,n,i){const o=In(e);return Rn(i,e),"number"==typeof i.typeIndex&&"number"==typeof i.typeCount&&o(i.typeCount-1-i.typeIndex)},"only-child":function(e,t,r,n,i){return Rn(i,e),1===i.nodeCount},"only-of-type":function(e,t,r,n,i){return Rn(i,e),1===i.typeCount},root:function(e,t,r,n){return t&&!n},scope:function(e,t,r,n,i){return t&&i.scopeNodes.includes(t)}}});function On(e,t,r,n,i){let o=-1;if(e.pseudoClasses)for(;++o<e.pseudoClasses.length;)if(!wn(e.pseudoClasses[o],t,r,n,i))return!1;return!0}function Nn(e,t){return gn(t)?0===t.children.length:!("value"in t)}function Pn(e,t,r,n,i){const o=e.argument;!o||o.type;const a={...i,found:!1,shallow:!1,one:!0,scopeNodes:[t],results:[],rootQuery:o};return Mn(a,t),a.results[0]===t}function Rn(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function In(e){let t=e._cachedFn;if(!t){const r=e.argument;!r||r.type,t=xn(r.a+"n+"+r.b),e._cachedFn=t}return t}function Ln(e,t,r,n,i){if(e.ids)throw new Error("Invalid selector: id");if(e.classNames)throw new Error("Invalid selector: class");if(e.pseudoElement)throw new Error("Invalid selector: `::"+e.pseudoElement+"`");return Boolean(t&&(!e.tag||"WildcardTag"===e.tag.type||e.tag.name===t.type)&&(!e.attributes||function(e,t){let r=-1;if(e.attributes)for(;++r<e.attributes.length;)if(!yn(e.attributes[r],t))return!1;return!0}(e,t))&&(!e.pseudoClasses||On(e,t,r,n,i)))}On.needsIndex=["any","first-child","first-of-type","last-child","last-of-type","is","not","nth-child","nth-last-child","nth-of-type","nth-last-of-type","only-child","only-of-type"];const Dn=[];function Mn(e,t){t&&Fn(e,[],t,void 0,void 0,t)}function Fn(e,t,r,n,i,o){let a={directChild:void 0,descendant:void 0,adjacentSibling:void 0,generalSibling:void 0},s=e.rootQuery.rules;return i&&i!==o&&(s=e.rootQuery.rules.filter((e=>void 0===e.combinator||">"===e.combinator&&i===o))),a=function(e,t,r,n,i){const o={directChild:void 0,descendant:void 0,adjacentSibling:void 0,generalSibling:void 0};let a=-1;for(;++a<t.length;){const s=t[a];if(e.one&&e.found)break;if(e.shallow&&s.nestedRule)throw new Error("Expected selector without nesting");if(Ln(s,r,n,i,e)){const t=s.nestedRule;if(t){Bn(o,"+"===t.combinator?"adjacentSibling":"~"===t.combinator?"generalSibling":">"===t.combinator?"directChild":"descendant",t)}else e.found=!0,e.results.includes(r)||e.results.push(r)}void 0===s.combinator?Bn(o,"descendant",s):"~"===s.combinator&&Bn(o,"generalSibling",s)}return o}(e,Hn(t,s),r,n,i),!gn(r)||e.shallow||e.one&&e.found||function(e,t,r,n){const i=Hn(t.descendant,t.directChild);let o,a=-1;const s={count:0,types:new Map},c={count:0,types:new Map};for(;++a<r.children.length;)Un(s,r.children[a]);a=-1;for(;++a<r.children.length;){const t=r.children[a].type.toUpperCase();e.nodeIndex=c.count,e.typeIndex=c.types.get(t)||0,e.nodeCount=s.count,e.typeCount=s.types.get(t);const l=Fn(e,Hn(i,o),r.children[a],a,r,n);if(o=Hn(l.generalSibling,l.adjacentSibling),e.one&&e.found)break;Un(c,r.children[a])}}(e,a,r,o),a}function Hn(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:Dn}function Bn(e,t,r){const n=e[t];n?n.push(r):e[t]=[r]}function Un(e,t){const r=t.type.toUpperCase(),n=(e.types.get(r)||0)+1;e.count++,e.types.set(r,n)}function jn(e,t){return{rootQuery:mn(e),results:[],scopeNodes:t?!gn(t)||"RootNode"!==t.type&&"root"!==t.type?[t]:t.children:[],one:!1,shallow:!1,found:!1,typeIndex:void 0,nodeIndex:void 0,typeCount:void 0,nodeCount:void 0}}var qn=Object.freeze({__proto__:null,matches:function(e,t){const r=jn(e,t);return r.one=!0,r.shallow=!0,Mn(r,t||void 0),r.results.length>0},select:function(e,t){const r=jn(e,t);return r.one=!0,Mn(r,t||void 0),r.results[0]},selectAll:function(e,t){const r=jn(e,t);return Mn(r,t||void 0),r.results}}),zn=he(qn);function Gn(e){if(e)throw e}
3
3
  /*!
4
4
  * Determine if an object is a Buffer
5
5
  *
@@ -17,4 +17,4 @@
17
17
  * @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
18
18
  * @see http://sites.google.com/site/murmurhash/
19
19
  */
20
- !function(e){!function(){var t;function r(e,n){var i=this instanceof r?this:t;if(i.reset(n),"string"==typeof e&&e.length>0&&i.hash(e),i!==this)return i}r.prototype.hash=function(e){var t,r,n,i,o;switch(o=e.length,this.len+=o,r=this.k1,n=0,this.rem){case 0:r^=o>n?65535&e.charCodeAt(n++):0;case 1:r^=o>n?(65535&e.charCodeAt(n++))<<8:0;case 2:r^=o>n?(65535&e.charCodeAt(n++))<<16:0;case 3:r^=o>n?(255&e.charCodeAt(n))<<24:0,r^=o>n?(65280&e.charCodeAt(n++))>>8:0}if(this.rem=o+this.rem&3,(o-=this.rem)>0){for(t=this.h1;t=5*(t=(t^=r=13715*(r=(r=11601*r+3432906752*(65535&r)&4294967295)<<15|r>>>17)+461832192*(65535&r)&4294967295)<<13|t>>>19)+3864292196&4294967295,!(n>=o);)r=65535&e.charCodeAt(n++)^(65535&e.charCodeAt(n++))<<8^(65535&e.charCodeAt(n++))<<16,r^=(255&(i=e.charCodeAt(n++)))<<24^(65280&i)>>8;switch(r=0,this.rem){case 3:r^=(65535&e.charCodeAt(n+2))<<16;case 2:r^=(65535&e.charCodeAt(n+1))<<8;case 1:r^=65535&e.charCodeAt(n)}this.h1=t}return this.k1=r,this},r.prototype.result=function(){var e,t;return e=this.k1,t=this.h1,e>0&&(t^=e=13715*(e=(e=11601*e+3432906752*(65535&e)&4294967295)<<15|e>>>17)+461832192*(65535&e)&4294967295),t^=this.len,t=51819*(t^=t>>>16)+2246770688*(65535&t)&4294967295,t=44597*(t^=t>>>13)+3266445312*(65535&t)&4294967295,(t^=t>>>16)>>>0},r.prototype.reset=function(e){return this.h1="number"==typeof e?e:0,this.rem=this.k1=this.len=0,this},t=new r,e.exports=r}()}(Xf);var Jf={exports:{}},Zf={exports:{}};!function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}(Zf);var ed=ue.process;const td=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on};if(td(ed)){var rd,nd=j.default,id=Zf.exports,od=/^win/i.test(ed.platform),ad=oe.default;"function"!=typeof ad&&(ad=ad.EventEmitter),ed.__signal_exit_emitter__?rd=ed.__signal_exit_emitter__:((rd=ed.__signal_exit_emitter__=new ad).count=0,rd.emitted={}),rd.infinite||(rd.setMaxListeners(1/0),rd.infinite=!0),Jf.exports=function(e,t){if(!td(ue.process))return function(){};nd.equal(typeof e,"function","a callback must be provided for exit handler"),!1===ud&&hd();var r="exit";t&&t.alwaysLast&&(r="afterexit");return rd.on(r,e),function(){rd.removeListener(r,e),0===rd.listeners("exit").length&&0===rd.listeners("afterexit").length&&sd()}};var sd=function(){ud&&td(ue.process)&&(ud=!1,id.forEach((function(e){try{ed.removeListener(e,ld[e])}catch(e){}})),ed.emit=dd,ed.reallyExit=pd,rd.count-=1)};Jf.exports.unload=sd;var cd=function(e,t,r){rd.emitted[e]||(rd.emitted[e]=!0,rd.emit(e,t,r))},ld={};id.forEach((function(e){ld[e]=function(){td(ue.process)&&(ed.listeners(e).length===rd.count&&(sd(),cd("exit",null,e),cd("afterexit",null,e),od&&"SIGHUP"===e&&(e="SIGINT"),ed.kill(ed.pid,e)))}})),Jf.exports.signals=function(){return id};var ud=!1,hd=function(){!ud&&td(ue.process)&&(ud=!0,rd.count+=1,id=id.filter((function(e){try{return ed.on(e,ld[e]),!0}catch(e){return!1}})),ed.emit=md,ed.reallyExit=fd)};Jf.exports.load=hd;var pd=ed.reallyExit,fd=function(e){td(ue.process)&&(ed.exitCode=e||0,cd("exit",ed.exitCode,null),cd("afterexit",ed.exitCode,null),pd.call(ed,ed.exitCode))},dd=ed.emit,md=function(e,t){if("exit"===e&&td(ue.process)){void 0!==t&&(ed.exitCode=t);var r=dd.apply(this,arguments);return cd("exit",ed.exitCode,null),cd("afterexit",ed.exitCode,null),r}return dd.apply(this,arguments)}}else Jf.exports=function(){return function(){}};var gd=yd;yd.strict=vd,yd.loose=_d;var Ed=Object.prototype.toString,Td={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function yd(e){return vd(e)||_d(e)}function vd(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function _d(e){return Td[Ed.call(e)]}var bd=gd.strict;Yf.exports=function(e,t,r,n){r instanceof Function&&(n=r,r={});const i=async function(e,t,r={}){"string"==typeof r&&(r={encoding:r});let n,i;const o=kd(Ld((()=>i))),a=Cd.resolve(e);try{await function(e){return new Promise((t=>{Nd[e]||(Nd[e]=[]),Nd[e].push(t),1===Nd[e].length&&t()}))}(a);const o=await Od(Ad.realpath)(e).catch((()=>e));if(i=Id(o),!r.mode||!r.chown){const e=await Od(Ad.stat)(o).catch((()=>{}));e&&(null==r.mode&&(r.mode=e.mode),null==r.chown&&process.getuid&&(r.chown={uid:e.uid,gid:e.gid}))}n=await Od(Ad.open)(i,"w",r.mode),r.tmpfileCreated&&await r.tmpfileCreated(i),xd(t)&&(t=wd(t)),Buffer.isBuffer(t)?await Od(Ad.write)(n,t,0,t.length,0):null!=t&&await Od(Ad.write)(n,String(t),0,String(r.encoding||"utf8")),!1!==r.fsync&&await Od(Ad.fsync)(n),await Od(Ad.close)(n),n=null,r.chown&&await Od(Ad.chown)(i,r.chown.uid,r.chown.gid).catch((e=>{if(!Dd(e))throw e})),r.mode&&await Od(Ad.chmod)(i,r.mode).catch((e=>{if(!Dd(e))throw e})),await Od(Ad.rename)(i,o)}finally{n&&await Od(Ad.close)(n).catch((()=>{})),o(),await Od(Ad.unlink)(i).catch((()=>{})),Nd[a].shift(),Nd[a].length>0?Nd[a][0]():delete Nd[a]}}(e,t,r);n&&i.then(n,n);return i},Yf.exports.sync=function(e,t,r){"string"==typeof r?r={encoding:r}:r||(r={});try{e=Ad.realpathSync(e)}catch(e){}const n=Id(e);if(!r.mode||!r.chown)try{const t=Ad.statSync(e);(r=Object.assign({},r)).mode||(r.mode=t.mode),!r.chown&&process.getuid&&(r.chown={uid:t.uid,gid:t.gid})}catch(e){}let i;const o=Ld(n),a=kd(o);let s=!0;try{if(i=Ad.openSync(n,"w",r.mode||438),r.tmpfileCreated&&r.tmpfileCreated(n),xd(t)&&(t=wd(t)),Buffer.isBuffer(t)?Ad.writeSync(i,t,0,t.length,0):null!=t&&Ad.writeSync(i,String(t),0,String(r.encoding||"utf8")),!1!==r.fsync&&Ad.fsyncSync(i),Ad.closeSync(i),i=null,r.chown)try{Ad.chownSync(n,r.chown.uid,r.chown.gid)}catch(e){if(!Dd(e))throw e}if(r.mode)try{Ad.chmodSync(n,r.mode)}catch(e){if(!Dd(e))throw e}Ad.renameSync(n,e),s=!1}finally{if(i)try{Ad.closeSync(i)}catch(e){}a(),s&&o()}},Yf.exports._getTmpname=Id,Yf.exports._cleanupOnExit=Ld;const Ad=Q.default,Sd=Xf.exports,kd=Jf.exports,Cd=M.default,xd=gd,wd=function(e){if(bd(e)){var t=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}return Buffer.from(e)},{promisify:Od}=ie.default,Nd={},Pd=function(){try{return require("worker_threads").threadId}catch(e){return 0}}();let Rd=0;function Id(e){return e+"."+Sd(__filename).hash(String(process.pid)).hash(String(Pd)).hash(String(++Rd)).result()}function Ld(e){return()=>{try{Ad.unlinkSync("function"==typeof e?e():e)}catch(e){}}}function Dd(e){if("ENOSYS"===e.code)return!0;return!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var Md=Yf.exports;const Fd=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},Hd=new Set(["__proto__","prototype","constructor"]),Bd=e=>!e.some((e=>Hd.has(e)));function Ud(e){const t=e.split("."),r=[];for(let e=0;e<t.length;e++){let n=t[e];for(;"\\"===n[n.length-1]&&void 0!==t[e+1];)n=n.slice(0,-1)+".",n+=t[++e];r.push(n)}return Bd(r)?r:[]}var jd={get(e,t,r){if(!Fd(e)||"string"!=typeof t)return void 0===r?e:r;const n=Ud(t);if(0!==n.length){for(let t=0;t<n.length;t++)if(null==(e=e[n[t]])){if(t!==n.length-1)return r;break}return void 0===e?r:e}},set(e,t,r){if(!Fd(e)||"string"!=typeof t)return e;const n=e,i=Ud(t);for(let t=0;t<i.length;t++){const n=i[t];Fd(e[n])||(e[n]={}),t===i.length-1&&(e[n]=r),e=e[n]}return n},delete(e,t){if(!Fd(e)||"string"!=typeof t)return!1;const r=Ud(t);for(let t=0;t<r.length;t++){const n=r[t];if(t===r.length-1)return delete e[n],!0;if(e=e[n],!Fd(e))return!1}},has(e,t){if(!Fd(e)||"string"!=typeof t)return!1;const r=Ud(t);if(0===r.length)return!1;for(let t=0;t<r.length;t++){if(!Fd(e))return!1;if(!(r[t]in e))return!1;e=e[r[t]]}return!0}};const qd=w.promisify(ae.default.randomBytes),zd="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~".split(""),Gd="0123456789".split(""),Kd="CDEHKMPRTUWXY012458".split(""),$d="!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~".split(""),Vd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Qd=new Set([void 0,"hex","base64","url-safe","numeric","distinguishable","ascii-printable","alphanumeric"]),Wd=(e,t)=>({length:r,type:n,characters:i})=>{if(!(r>=0&&Number.isFinite(r)))throw new TypeError("Expected a `length` to be a non-negative finite number");if(void 0!==n&&void 0!==i)throw new TypeError("Expected either `type` or `characters`");if(void 0!==i&&"string"!=typeof i)throw new TypeError("Expected `characters` to be string");if(!Qd.has(n))throw new TypeError(`Unknown type: ${n}`);if(void 0===n&&void 0===i&&(n="hex"),"hex"===n||void 0===n&&void 0===i)return t(Math.ceil(.5*r),"hex",r);if("base64"===n)return t(Math.ceil(.75*r),"base64",r);if("url-safe"===n)return e(r,zd);if("numeric"===n)return e(r,Gd);if("distinguishable"===n)return e(r,Kd);if("ascii-printable"===n)return e(r,$d);if("alphanumeric"===n)return e(r,Vd);if(0===i.length)throw new TypeError("Expected `characters` string length to be greater than or equal to 1");if(i.length>65536)throw new TypeError("Expected `characters` string length to be less or equal to 65536");return e(r,i.split(""))},Yd=Wd(((e,t)=>{const r=t.length,n=Math.floor(65536/r)*r-1,i=2*Math.ceil(1.1*e);let o="",a=0;for(;a<e;){const s=ae.default.randomBytes(i);let c=0;for(;c<i&&a<e;){const e=s.readUInt16LE(c);c+=2,e>n||(o+=t[e%r],a++)}}return o}),((e,t,r)=>ae.default.randomBytes(e).toString(t).slice(0,r)));Yd.async=Wd((async(e,t)=>{const r=t.length,n=Math.floor(65536/r)*r-1,i=2*Math.ceil(1.1*e);let o="",a=0;for(;a<e;){const s=await qd(i);let c=0;for(;c<i&&a<e;){const e=s.readUInt16LE(c);c+=2,e>n||(o+=t[e%r],a++)}}return o}),(async(e,t,r)=>(await qd(e)).toString(t).slice(0,r)));const Xd=Vf||M.default.join(re.default.tmpdir(),Yd({length:32})),Jd="You don't have access to this file.",Zd={mode:448,recursive:!0},em={mode:384};const tm=new class{constructor(e,t,r={}){const n=r.globalConfigPath?M.default.join(e,"config.json"):M.default.join("configstore",`${e}.json`);this._path=r.configPath||M.default.join(Xd,n),t&&(this.all={...t,...this.all})}get all(){try{return JSON.parse(zf.readFileSync(this._path,"utf8"))}catch(e){if("ENOENT"===e.code)return{};if("EACCES"===e.code&&(e.message=`${e.message}\n${Jd}\n`),"SyntaxError"===e.name)return Md.sync(this._path,"",em),{};throw e}}set all(e){try{zf.mkdirSync(M.default.dirname(this._path),Zd),Md.sync(this._path,JSON.stringify(e,void 0,"\t"),em)}catch(e){throw"EACCES"===e.code&&(e.message=`${e.message}\n${Jd}\n`),e}}get size(){return Object.keys(this.all||{}).length}get(e){return jd.get(this.all,e)}set(e,t){const r=this.all;if(1===arguments.length)for(const t of Object.keys(e))jd.set(r,t,e[t]);else jd.set(r,e,t);this.all=r}has(e){return jd.has(this.all,e)}delete(e){const t=this.all;jd.delete(t,e),this.all=t}clear(){this.all={}}get path(){return this._path}}("ttx",{plugins_host:"https://plugins.x.topthink.com"});function rm(e){return e?tm.get(e):tm.all}const nm={json:tf,html:nf,ebook:class extends nf{format="ebook";async initPlugins(){this.book.config.setValue("theme","ebook"),this.options.plugins.preset["theme-ebook"]={},await super.initPlugins()}async createDOM(e,t){const r=new sf,n=new S.VirtualConsole;n.on("error",(e=>{le.error(e)}));let i=!1,o=0;const a=new S.JSDOM(e,{virtualConsole:n,url:`file:///${this.tmpFS.resolve(t.path)}`,runScripts:"dangerously",resources:r,pretendToBeVisual:!0,beforeParse(e){e.SC_DISABLE_SPEEDY=!0;const{document:t}=e,r={attributes:!0,childList:!0,subtree:!0};e.addEventListener("load",(()=>{const n=new e.MutationObserver((function(e){for(const t of e)"childList"===t.type&&t.addedNodes.forEach((e=>{if("SCRIPT"===e.nodeName){++o;e.addEventListener("load",(()=>{--o}))}}))}));n.observe(t.head,r)})),e.addEventListener("bootstrapped",(()=>{i=!0}))}});return await af((()=>{if(!i||o>0)throw new Error("render html timeout")}),{stopAfter:5e3,tryEvery:100}),a}async renderFile(e,t){const r=await super.renderFile(e,t),n=await this.createDOM(r,e);await async function(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:i}={}){return new Promise(((o,a)=>{if(void 0===e[Symbol.iterator]&&void 0===e[Symbol.asyncIterator])throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if("function"!=typeof t)throw new TypeError("Mapper function is required");if(!Number.isSafeInteger(r)&&r!==Number.POSITIVE_INFINITY||!(r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const s=[],c=[],l=new Map;let u=!1,h=!1,p=!1,f=0,d=0;const m=void 0===e[Symbol.iterator]?e[Symbol.asyncIterator]():e[Symbol.iterator](),g=e=>{u=!0,h=!0,a(e)};i&&(i.aborted&&g(df(i)),i.addEventListener("abort",(()=>{g(df(i))})));const E=async()=>{if(h)return;const e=await m.next(),r=d;if(d++,e.done){if(p=!0,0===f&&!h){if(!n&&c.length>0)return void g(new hf(c));if(h=!0,0===l.size)return void o(s);const e=[];for(const[t,r]of s.entries())l.get(t)!==mf&&e.push(r);o(e)}}else f++,(async()=>{try{const n=await e.value;if(h)return;const i=await t(n,r);i===mf&&l.set(r,i),s[r]=i,f--,await E()}catch(e){if(n)g(e);else{c.push(e),f--;try{await E()}catch(e){g(e)}}}})()};(async()=>{for(let e=0;e<r;e++){try{await E()}catch(e){g(e);break}if(p||u)break}})()}))}(Array.from(n.window.document.images),(async(t,r)=>{if(t.src){const n=a.parse(t.src);if(n.protocol?.startsWith("http"))try{le.info(`fetch image#${r}: ${t.src}`),t.src=await this.fetchImage(e,t.src),le.info(`image#${r} fetch succeed`)}catch{le.warn(`image#${r} ${t.src} fetch failed`)}}}),{concurrency:3});for(const e of Array.from(n.window.document.scripts))e.remove();return n.serialize()}async fetchImage(e,t){const r=await pe.request.get(t,{responseType:"stream",timeout:5e3,headers:{"User-Agent":`TopWriteBuilder/${this.version}`}});let n=`_images/${pe.md5(t)}`;const i=te.default.extension(r.headers["content-type"]);i&&(n+=`.${i}`);const o=this.tmpFS.createWriteStream(n);return new Promise(((t,i)=>{r.data.pipe(o),o.on("error",(e=>{o.close(),i(e)})),o.on("close",(()=>{t(e.relative(n))}))}))}async getConvertOptions(e){const{config:t}=this.book,r={title:t.getValue("title"),"book-producer":"TopWrite",publisher:"TopWrite",chapter:"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-chapter')]","level1-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level1-toc')]","level2-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level2-toc')]","level3-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level3-toc')]","max-toc-links":"0","max-levels":"1","no-chapters-in-toc":!0,"breadth-first":!0,"disable-font-rescaling":!0};switch(e){case"docx":r["docx-no-toc"]=!0;break;case"epub":r["dont-split-on-page-breaks"]=!0;break;case"pdf":const e={poweredBy:this.options.poweredBy},n=await Z.default.renderFile(M.default.resolve(__dirname,"../templates/pdf-header.ejs"),e,{rmWhitespace:!0}),i=await Z.default.renderFile(M.default.resolve(__dirname,"../templates/pdf-footer.ejs"),e,{rmWhitespace:!0});r["chapter-mark"]=t.getValue(["pdf","chapterMark"]),r["page-breaks-before"]=t.getValue(["pdf","pageBreaksBefore"]),r["pdf-page-margin-left"]=t.getValue(["pdf","margin","left"]),r["pdf-page-margin-right"]=t.getValue(["pdf","margin","right"]),r["pdf-page-margin-top"]=t.getValue(["pdf","margin","top"]),r["pdf-page-margin-bottom"]=t.getValue(["pdf","margin","bottom"]),r["pdf-serif-family"]=t.getValue(["pdf","fontFamily"]),r["paper-size"]=t.getValue(["pdf","paperSize"]),r["pdf-custom-size"]=t.getValue(["pdf","customSize"]),r.unit="millimeter",r["pdf-page-numbers"]=t.getValue(["pdf","pageNumbers"]),r["preserve-cover-aspect-ratio"]=!0,r["pdf-header-template"]=n,r["pdf-footer-template"]=i}return r}async packBook(){const e=M.default.extname(this.dest).substr(1);if(!["pdf","docx","epub"].includes(e))return super.packBook();const t=await A.lookpath("ebook-convert");if(!t)throw new Error("Install ebook-convert from Calibre: https://calibre-ebook.com");const r=function(e,t){const r=[];let n=[],i=[];t={useEquals:!0,shortFlag:!0,...t};const o=(e,n)=>{const i=t.shortFlag&&1===e.length?"-":"--",o=t.allowCamelCase?e:e.replace(/[A-Z]/g,"-$&").toLowerCase();e=i+o,t.useEquals?r.push(e+(n?`=${n}`:"")):(r.push(e),n&&r.push(n))},a=(e,t)=>{r.push(`-${e}`),t&&r.push(t)};for(let[r,s]of Object.entries(e)){let e=o;if((!Array.isArray(t.excludes)||!of(t.excludes,r))&&(!Array.isArray(t.includes)||of(t.includes,r)))if("object"==typeof t.aliases&&t.aliases[r]&&(r=t.aliases[r],e=a),"--"!==r)if("_"!==r){if(!0!==s||t.ignoreTrue||e(r,""),!1!==s||t.ignoreFalse||e(`no-${r}`),"string"==typeof s&&e(r,s),"number"!=typeof s||Number.isNaN(s)||e(r,String(s)),Array.isArray(s))for(const t of s)e(r,t)}else{if(!Array.isArray(s))throw new TypeError("Expected key `_` to be Array, got "+typeof s);n=s}else{if(!Array.isArray(s))throw new TypeError("Expected key `--` to be Array, got "+typeof s);i=s}}for(const e of n)r.push(String(e));i.length>0&&r.push("--");for(const e of i)r.push(String(e));return r}(await this.getConvertOptions(e)),n=this.tmpFS.resolve("index.html");return r.unshift(n,this.dest),new Promise(((e,i)=>{le.info("convert book ...");const o=$.default(t,r,{stdio:["inherit"],cwd:this.tmpFS.root}),a=["^Conversion options ","^ \\w+: ","^Blocking URL ","^Ignoring CSS ","^Ignoring internal ","^CSSStyleDeclaration: ","^CSSStylesheet: ","^PropertyValue: ","^CSSVariable: ",gf(n),gf(this.dest)].map((e=>`(${e})`)).join("|"),s=new RegExp(`(${a})`);o.stdout?.on("data",(e=>{e.toString().replace(/[\r\n]*$/,"").split("\n").forEach((e=>{if(e){const t=e.trim();e.match(s)?le.debug({message:t,type:"log"}):le.log(t)}}))})),o.stderr?.on("data",(e=>{le.error(e.toString().trimEnd())})),o.on("close",(t=>{0!==t?i("Convert failed"):e()}))}))}}};const im=100,om=/[\u0000-\u001F\u0080-\u009F]/g,am=/^\.+(\\|\/)|^\.+$/,sm=/\.+$/;function cm(e,t={}){if("string"!=typeof e)throw new TypeError("Expected a string");const r=void 0===t.replacement?"!":t.replacement;if(/[<>:"/\\|?*\u0000-\u001F]/g.test(r)&&om.test(r))throw new Error("Replacement string cannot contain reserved filename characters");if(e=(e=(e=(e=(e=e.normalize("NFD")).replace(am,r)).replace(/[<>:"/\\|?*\u0000-\u001F]/g,r)).replace(om,r)).replace(sm,""),r.length>0){const t="."===e[0];e=function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected a string");const r=new RegExp(`(?:${ns(t)}){2,}`,"g");return e.replace(r,t)}(e,r),e=e.length>1?function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected a string");return e.startsWith(t)&&(e=e.slice(t.length)),e.endsWith(t)&&(e=e.slice(0,-t.length)),e}(e,r):e,t||"."!==e[0]||(e=r+e),"."===e[e.length-1]&&(e+=r)}e=/^(con|prn|aux|nul|com\d|lpt\d)$/i.test(e)?e+r:e;const n="number"==typeof t.maxLength?t.maxLength:im;if(e.length>n){const t=e.lastIndexOf(".");if(-1===t)e=e.slice(0,n);else{const r=e.slice(0,t),i=e.slice(t);e=r.slice(0,Math.max(1,n-i.length))+i}}return e}class lm{source;destFS;contentFS;filenames=[];constructor(e,t){this.source=e,this.destFS=new rf(t);const r=D.default.dirSync({unsafeCleanup:!0}).name;this.contentFS=new rf(r)}generateFilename(e){const t=cm(e);let r=t,n=1;for(;!r||this.filenames.includes(r);)r=t+"_"+n,n++;return this.filenames.push(r),r}}var um={};const hm=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];um.REPLACEMENT_CHARACTER="�",um.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},um.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},um.isSurrogate=function(e){return e>=55296&&e<=57343},um.isSurrogatePair=function(e){return e>=56320&&e<=57343},um.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},um.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},um.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||hm.indexOf(e)>-1};var pm={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const fm=um,dm=pm,mm=fm.CODE_POINTS;var gm=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(fm.isSurrogatePair(t))return this.pos++,this._addGap(),fm.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,mm.EOF;return this._err(dm.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,mm.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===mm.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===mm.CARRIAGE_RETURN)return this.skipNextNewLine=!0,mm.LINE_FEED;this.skipNextNewLine=!1,fm.isSurrogate(e)&&(e=this._processSurrogate(e));return e>31&&e<127||e===mm.LINE_FEED||e===mm.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){fm.isControlCodePoint(e)?this._err(dm.controlCharacterInInputStream):fm.isUndefinedCodePoint(e)&&this._err(dm.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}},Em=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const Tm=gm,ym=um,vm=Em,_m=pm,bm=ym.CODE_POINTS,Am=ym.CODE_POINT_SEQUENCES,Sm={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},km="DATA_STATE",Cm="RCDATA_STATE",xm="RAWTEXT_STATE",wm="SCRIPT_DATA_STATE",Om="PLAINTEXT_STATE",Nm="TAG_OPEN_STATE",Pm="END_TAG_OPEN_STATE",Rm="TAG_NAME_STATE",Im="RCDATA_LESS_THAN_SIGN_STATE",Lm="RCDATA_END_TAG_OPEN_STATE",Dm="RCDATA_END_TAG_NAME_STATE",Mm="RAWTEXT_LESS_THAN_SIGN_STATE",Fm="RAWTEXT_END_TAG_OPEN_STATE",Hm="RAWTEXT_END_TAG_NAME_STATE",Bm="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Um="SCRIPT_DATA_END_TAG_OPEN_STATE",jm="SCRIPT_DATA_END_TAG_NAME_STATE",qm="SCRIPT_DATA_ESCAPE_START_STATE",zm="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Gm="SCRIPT_DATA_ESCAPED_STATE",Km="SCRIPT_DATA_ESCAPED_DASH_STATE",$m="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",Vm="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",Qm="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",Wm="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",Ym="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Xm="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",Jm="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",Zm="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",eg="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",tg="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",rg="BEFORE_ATTRIBUTE_NAME_STATE",ng="ATTRIBUTE_NAME_STATE",ig="AFTER_ATTRIBUTE_NAME_STATE",og="BEFORE_ATTRIBUTE_VALUE_STATE",ag="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",sg="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",cg="ATTRIBUTE_VALUE_UNQUOTED_STATE",lg="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",ug="SELF_CLOSING_START_TAG_STATE",hg="BOGUS_COMMENT_STATE",pg="MARKUP_DECLARATION_OPEN_STATE",fg="COMMENT_START_STATE",dg="COMMENT_START_DASH_STATE",mg="COMMENT_STATE",gg="COMMENT_LESS_THAN_SIGN_STATE",Eg="COMMENT_LESS_THAN_SIGN_BANG_STATE",Tg="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",yg="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",vg="COMMENT_END_DASH_STATE",_g="COMMENT_END_STATE",bg="COMMENT_END_BANG_STATE",Ag="DOCTYPE_STATE",Sg="BEFORE_DOCTYPE_NAME_STATE",kg="DOCTYPE_NAME_STATE",Cg="AFTER_DOCTYPE_NAME_STATE",xg="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",wg="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Og="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",Ng="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Pg="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Rg="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",Ig="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Lg="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Dg="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Mg="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Fg="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Hg="BOGUS_DOCTYPE_STATE",Bg="CDATA_SECTION_STATE",Ug="CDATA_SECTION_BRACKET_STATE",jg="CDATA_SECTION_END_STATE",qg="CHARACTER_REFERENCE_STATE",zg="NAMED_CHARACTER_REFERENCE_STATE",Gg="AMBIGUOS_AMPERSAND_STATE",Kg="NUMERIC_CHARACTER_REFERENCE_STATE",$g="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Vg="DECIMAL_CHARACTER_REFERENCE_START_STATE",Qg="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Wg="DECIMAL_CHARACTER_REFERENCE_STATE",Yg="NUMERIC_CHARACTER_REFERENCE_END_STATE";function Xg(e){return e===bm.SPACE||e===bm.LINE_FEED||e===bm.TABULATION||e===bm.FORM_FEED}function Jg(e){return e>=bm.DIGIT_0&&e<=bm.DIGIT_9}function Zg(e){return e>=bm.LATIN_CAPITAL_A&&e<=bm.LATIN_CAPITAL_Z}function eE(e){return e>=bm.LATIN_SMALL_A&&e<=bm.LATIN_SMALL_Z}function tE(e){return eE(e)||Zg(e)}function rE(e){return tE(e)||Jg(e)}function nE(e){return e>=bm.LATIN_CAPITAL_A&&e<=bm.LATIN_CAPITAL_F}function iE(e){return e>=bm.LATIN_SMALL_A&&e<=bm.LATIN_SMALL_F}function oE(e){return e+32}function aE(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function sE(e){return String.fromCharCode(oE(e))}function cE(e,t){const r=vm[++e];let n=++e,i=n+r-1;for(;n<=i;){const e=n+i>>>1,o=vm[e];if(o<t)n=e+1;else{if(!(o>t))return vm[e+r];i=e-1}}return-1}class lE{constructor(){this.preprocessor=new Tm,this.tokenQueue=[],this.allowCDATA=!1,this.state=km,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:lE.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,r){let n=0,i=!0;const o=e.length;let a,s=0,c=t;for(;s<o;s++){if(s>0&&(c=this._consume(),n++),c===bm.EOF){i=!1;break}if(a=e[s],c!==a&&(r||c!==oE(a))){i=!1;break}}if(!i)for(;n--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==Am.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==Am.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:lE.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:lE.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:lE.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:lE.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:lE.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===lE.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err(_m.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===lE.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===lE.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(_m.endTagWithAttributes),e.selfClosing&&this._err(_m.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=lE.CHARACTER_TOKEN;Xg(e)?t=lE.WHITESPACE_CHARACTER_TOKEN:e===bm.NULL&&(t=lE.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,aE(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(lE.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,r=1,n=cE(0,e);for(this.tempBuff.push(e);n>-1;){const e=vm[n],i=e<7;i&&1&e&&(t=2&e?[vm[++n],vm[++n]]:[vm[++n]],r=0);const o=this._consume();if(this.tempBuff.push(o),r++,o===bm.EOF)break;n=i?4&e?cE(n,o):-1:o===e?++n:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===ag||this.returnState===sg||this.returnState===cg}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===bm.EQUALS_SIGN||rE(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=aE(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[km](e){this.preprocessor.dropParsedChunk(),e===bm.LESS_THAN_SIGN?this.state=Nm:e===bm.AMPERSAND?(this.returnState=km,this.state=qg):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this._emitCodePoint(e)):e===bm.EOF?this._emitEOFToken():this._emitCodePoint(e)}[Cm](e){this.preprocessor.dropParsedChunk(),e===bm.AMPERSAND?(this.returnState=Cm,this.state=qg):e===bm.LESS_THAN_SIGN?this.state=Im:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?this._emitEOFToken():this._emitCodePoint(e)}[xm](e){this.preprocessor.dropParsedChunk(),e===bm.LESS_THAN_SIGN?this.state=Mm:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?this._emitEOFToken():this._emitCodePoint(e)}[wm](e){this.preprocessor.dropParsedChunk(),e===bm.LESS_THAN_SIGN?this.state=Bm:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?this._emitEOFToken():this._emitCodePoint(e)}[Om](e){this.preprocessor.dropParsedChunk(),e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?this._emitEOFToken():this._emitCodePoint(e)}[Nm](e){e===bm.EXCLAMATION_MARK?this.state=pg:e===bm.SOLIDUS?this.state=Pm:tE(e)?(this._createStartTagToken(),this._reconsumeInState(Rm)):e===bm.QUESTION_MARK?(this._err(_m.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(hg)):e===bm.EOF?(this._err(_m.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(_m.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(km))}[Pm](e){tE(e)?(this._createEndTagToken(),this._reconsumeInState(Rm)):e===bm.GREATER_THAN_SIGN?(this._err(_m.missingEndTagName),this.state=km):e===bm.EOF?(this._err(_m.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(_m.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(hg))}[Rm](e){Xg(e)?this.state=rg:e===bm.SOLIDUS?this.state=ug:e===bm.GREATER_THAN_SIGN?(this.state=km,this._emitCurrentToken()):Zg(e)?this.currentToken.tagName+=sE(e):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentToken.tagName+=ym.REPLACEMENT_CHARACTER):e===bm.EOF?(this._err(_m.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=aE(e)}[Im](e){e===bm.SOLIDUS?(this.tempBuff=[],this.state=Lm):(this._emitChars("<"),this._reconsumeInState(Cm))}[Lm](e){tE(e)?(this._createEndTagToken(),this._reconsumeInState(Dm)):(this._emitChars("</"),this._reconsumeInState(Cm))}[Dm](e){if(Zg(e))this.currentToken.tagName+=sE(e),this.tempBuff.push(e);else if(eE(e))this.currentToken.tagName+=aE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Xg(e))return void(this.state=rg);if(e===bm.SOLIDUS)return void(this.state=ug);if(e===bm.GREATER_THAN_SIGN)return this.state=km,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Cm)}}[Mm](e){e===bm.SOLIDUS?(this.tempBuff=[],this.state=Fm):(this._emitChars("<"),this._reconsumeInState(xm))}[Fm](e){tE(e)?(this._createEndTagToken(),this._reconsumeInState(Hm)):(this._emitChars("</"),this._reconsumeInState(xm))}[Hm](e){if(Zg(e))this.currentToken.tagName+=sE(e),this.tempBuff.push(e);else if(eE(e))this.currentToken.tagName+=aE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Xg(e))return void(this.state=rg);if(e===bm.SOLIDUS)return void(this.state=ug);if(e===bm.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=km)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(xm)}}[Bm](e){e===bm.SOLIDUS?(this.tempBuff=[],this.state=Um):e===bm.EXCLAMATION_MARK?(this.state=qm,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(wm))}[Um](e){tE(e)?(this._createEndTagToken(),this._reconsumeInState(jm)):(this._emitChars("</"),this._reconsumeInState(wm))}[jm](e){if(Zg(e))this.currentToken.tagName+=sE(e),this.tempBuff.push(e);else if(eE(e))this.currentToken.tagName+=aE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Xg(e))return void(this.state=rg);if(e===bm.SOLIDUS)return void(this.state=ug);if(e===bm.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=km)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(wm)}}[qm](e){e===bm.HYPHEN_MINUS?(this.state=zm,this._emitChars("-")):this._reconsumeInState(wm)}[zm](e){e===bm.HYPHEN_MINUS?(this.state=$m,this._emitChars("-")):this._reconsumeInState(wm)}[Gm](e){e===bm.HYPHEN_MINUS?(this.state=Km,this._emitChars("-")):e===bm.LESS_THAN_SIGN?this.state=Vm:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?(this._err(_m.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[Km](e){e===bm.HYPHEN_MINUS?(this.state=$m,this._emitChars("-")):e===bm.LESS_THAN_SIGN?this.state=Vm:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.state=Gm,this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?(this._err(_m.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Gm,this._emitCodePoint(e))}[$m](e){e===bm.HYPHEN_MINUS?this._emitChars("-"):e===bm.LESS_THAN_SIGN?this.state=Vm:e===bm.GREATER_THAN_SIGN?(this.state=wm,this._emitChars(">")):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.state=Gm,this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?(this._err(_m.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Gm,this._emitCodePoint(e))}[Vm](e){e===bm.SOLIDUS?(this.tempBuff=[],this.state=Qm):tE(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(Ym)):(this._emitChars("<"),this._reconsumeInState(Gm))}[Qm](e){tE(e)?(this._createEndTagToken(),this._reconsumeInState(Wm)):(this._emitChars("</"),this._reconsumeInState(Gm))}[Wm](e){if(Zg(e))this.currentToken.tagName+=sE(e),this.tempBuff.push(e);else if(eE(e))this.currentToken.tagName+=aE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Xg(e))return void(this.state=rg);if(e===bm.SOLIDUS)return void(this.state=ug);if(e===bm.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=km)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Gm)}}[Ym](e){Xg(e)||e===bm.SOLIDUS||e===bm.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Xm:Gm,this._emitCodePoint(e)):Zg(e)?(this.tempBuff.push(oE(e)),this._emitCodePoint(e)):eE(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(Gm)}[Xm](e){e===bm.HYPHEN_MINUS?(this.state=Jm,this._emitChars("-")):e===bm.LESS_THAN_SIGN?(this.state=eg,this._emitChars("<")):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?(this._err(_m.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[Jm](e){e===bm.HYPHEN_MINUS?(this.state=Zm,this._emitChars("-")):e===bm.LESS_THAN_SIGN?(this.state=eg,this._emitChars("<")):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.state=Xm,this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?(this._err(_m.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Xm,this._emitCodePoint(e))}[Zm](e){e===bm.HYPHEN_MINUS?this._emitChars("-"):e===bm.LESS_THAN_SIGN?(this.state=eg,this._emitChars("<")):e===bm.GREATER_THAN_SIGN?(this.state=wm,this._emitChars(">")):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.state=Xm,this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?(this._err(_m.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Xm,this._emitCodePoint(e))}[eg](e){e===bm.SOLIDUS?(this.tempBuff=[],this.state=tg,this._emitChars("/")):this._reconsumeInState(Xm)}[tg](e){Xg(e)||e===bm.SOLIDUS||e===bm.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Gm:Xm,this._emitCodePoint(e)):Zg(e)?(this.tempBuff.push(oE(e)),this._emitCodePoint(e)):eE(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(Xm)}[rg](e){Xg(e)||(e===bm.SOLIDUS||e===bm.GREATER_THAN_SIGN||e===bm.EOF?this._reconsumeInState(ig):e===bm.EQUALS_SIGN?(this._err(_m.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ng):(this._createAttr(""),this._reconsumeInState(ng)))}[ng](e){Xg(e)||e===bm.SOLIDUS||e===bm.GREATER_THAN_SIGN||e===bm.EOF?(this._leaveAttrName(ig),this._unconsume()):e===bm.EQUALS_SIGN?this._leaveAttrName(og):Zg(e)?this.currentAttr.name+=sE(e):e===bm.QUOTATION_MARK||e===bm.APOSTROPHE||e===bm.LESS_THAN_SIGN?(this._err(_m.unexpectedCharacterInAttributeName),this.currentAttr.name+=aE(e)):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentAttr.name+=ym.REPLACEMENT_CHARACTER):this.currentAttr.name+=aE(e)}[ig](e){Xg(e)||(e===bm.SOLIDUS?this.state=ug:e===bm.EQUALS_SIGN?this.state=og:e===bm.GREATER_THAN_SIGN?(this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(ng)))}[og](e){Xg(e)||(e===bm.QUOTATION_MARK?this.state=ag:e===bm.APOSTROPHE?this.state=sg:e===bm.GREATER_THAN_SIGN?(this._err(_m.missingAttributeValue),this.state=km,this._emitCurrentToken()):this._reconsumeInState(cg))}[ag](e){e===bm.QUOTATION_MARK?this.state=lg:e===bm.AMPERSAND?(this.returnState=ag,this.state=qg):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentAttr.value+=ym.REPLACEMENT_CHARACTER):e===bm.EOF?(this._err(_m.eofInTag),this._emitEOFToken()):this.currentAttr.value+=aE(e)}[sg](e){e===bm.APOSTROPHE?this.state=lg:e===bm.AMPERSAND?(this.returnState=sg,this.state=qg):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentAttr.value+=ym.REPLACEMENT_CHARACTER):e===bm.EOF?(this._err(_m.eofInTag),this._emitEOFToken()):this.currentAttr.value+=aE(e)}[cg](e){Xg(e)?this._leaveAttrValue(rg):e===bm.AMPERSAND?(this.returnState=cg,this.state=qg):e===bm.GREATER_THAN_SIGN?(this._leaveAttrValue(km),this._emitCurrentToken()):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentAttr.value+=ym.REPLACEMENT_CHARACTER):e===bm.QUOTATION_MARK||e===bm.APOSTROPHE||e===bm.LESS_THAN_SIGN||e===bm.EQUALS_SIGN||e===bm.GRAVE_ACCENT?(this._err(_m.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=aE(e)):e===bm.EOF?(this._err(_m.eofInTag),this._emitEOFToken()):this.currentAttr.value+=aE(e)}[lg](e){Xg(e)?this._leaveAttrValue(rg):e===bm.SOLIDUS?this._leaveAttrValue(ug):e===bm.GREATER_THAN_SIGN?(this._leaveAttrValue(km),this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInTag),this._emitEOFToken()):(this._err(_m.missingWhitespaceBetweenAttributes),this._reconsumeInState(rg))}[ug](e){e===bm.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInTag),this._emitEOFToken()):(this._err(_m.unexpectedSolidusInTag),this._reconsumeInState(rg))}[hg](e){e===bm.GREATER_THAN_SIGN?(this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentToken.data+=ym.REPLACEMENT_CHARACTER):this.currentToken.data+=aE(e)}[pg](e){this._consumeSequenceIfMatch(Am.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=fg):this._consumeSequenceIfMatch(Am.DOCTYPE_STRING,e,!1)?this.state=Ag:this._consumeSequenceIfMatch(Am.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=Bg:(this._err(_m.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=hg):this._ensureHibernation()||(this._err(_m.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(hg))}[fg](e){e===bm.HYPHEN_MINUS?this.state=dg:e===bm.GREATER_THAN_SIGN?(this._err(_m.abruptClosingOfEmptyComment),this.state=km,this._emitCurrentToken()):this._reconsumeInState(mg)}[dg](e){e===bm.HYPHEN_MINUS?this.state=_g:e===bm.GREATER_THAN_SIGN?(this._err(_m.abruptClosingOfEmptyComment),this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(mg))}[mg](e){e===bm.HYPHEN_MINUS?this.state=vg:e===bm.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=gg):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentToken.data+=ym.REPLACEMENT_CHARACTER):e===bm.EOF?(this._err(_m.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=aE(e)}[gg](e){e===bm.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=Eg):e===bm.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(mg)}[Eg](e){e===bm.HYPHEN_MINUS?this.state=Tg:this._reconsumeInState(mg)}[Tg](e){e===bm.HYPHEN_MINUS?this.state=yg:this._reconsumeInState(vg)}[yg](e){e!==bm.GREATER_THAN_SIGN&&e!==bm.EOF&&this._err(_m.nestedComment),this._reconsumeInState(_g)}[vg](e){e===bm.HYPHEN_MINUS?this.state=_g:e===bm.EOF?(this._err(_m.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(mg))}[_g](e){e===bm.GREATER_THAN_SIGN?(this.state=km,this._emitCurrentToken()):e===bm.EXCLAMATION_MARK?this.state=bg:e===bm.HYPHEN_MINUS?this.currentToken.data+="-":e===bm.EOF?(this._err(_m.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(mg))}[bg](e){e===bm.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=vg):e===bm.GREATER_THAN_SIGN?(this._err(_m.incorrectlyClosedComment),this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(mg))}[Ag](e){Xg(e)?this.state=Sg:e===bm.GREATER_THAN_SIGN?this._reconsumeInState(Sg):e===bm.EOF?(this._err(_m.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(_m.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(Sg))}[Sg](e){Xg(e)||(Zg(e)?(this._createDoctypeToken(sE(e)),this.state=kg):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this._createDoctypeToken(ym.REPLACEMENT_CHARACTER),this.state=kg):e===bm.GREATER_THAN_SIGN?(this._err(_m.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=km):e===bm.EOF?(this._err(_m.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(aE(e)),this.state=kg))}[kg](e){Xg(e)?this.state=Cg:e===bm.GREATER_THAN_SIGN?(this.state=km,this._emitCurrentToken()):Zg(e)?this.currentToken.name+=sE(e):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentToken.name+=ym.REPLACEMENT_CHARACTER):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=aE(e)}[Cg](e){Xg(e)||(e===bm.GREATER_THAN_SIGN?(this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(Am.PUBLIC_STRING,e,!1)?this.state=xg:this._consumeSequenceIfMatch(Am.SYSTEM_STRING,e,!1)?this.state=Ig:this._ensureHibernation()||(this._err(_m.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hg)))}[xg](e){Xg(e)?this.state=wg:e===bm.QUOTATION_MARK?(this._err(_m.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Og):e===bm.APOSTROPHE?(this._err(_m.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Ng):e===bm.GREATER_THAN_SIGN?(this._err(_m.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(_m.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hg))}[wg](e){Xg(e)||(e===bm.QUOTATION_MARK?(this.currentToken.publicId="",this.state=Og):e===bm.APOSTROPHE?(this.currentToken.publicId="",this.state=Ng):e===bm.GREATER_THAN_SIGN?(this._err(_m.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(_m.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hg)))}[Og](e){e===bm.QUOTATION_MARK?this.state=Pg:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentToken.publicId+=ym.REPLACEMENT_CHARACTER):e===bm.GREATER_THAN_SIGN?(this._err(_m.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=km):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=aE(e)}[Ng](e){e===bm.APOSTROPHE?this.state=Pg:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentToken.publicId+=ym.REPLACEMENT_CHARACTER):e===bm.GREATER_THAN_SIGN?(this._err(_m.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=km):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=aE(e)}[Pg](e){Xg(e)?this.state=Rg:e===bm.GREATER_THAN_SIGN?(this.state=km,this._emitCurrentToken()):e===bm.QUOTATION_MARK?(this._err(_m.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Dg):e===bm.APOSTROPHE?(this._err(_m.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Mg):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(_m.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hg))}[Rg](e){Xg(e)||(e===bm.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=km):e===bm.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Dg):e===bm.APOSTROPHE?(this.currentToken.systemId="",this.state=Mg):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(_m.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hg)))}[Ig](e){Xg(e)?this.state=Lg:e===bm.QUOTATION_MARK?(this._err(_m.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Dg):e===bm.APOSTROPHE?(this._err(_m.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Mg):e===bm.GREATER_THAN_SIGN?(this._err(_m.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(_m.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hg))}[Lg](e){Xg(e)||(e===bm.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Dg):e===bm.APOSTROPHE?(this.currentToken.systemId="",this.state=Mg):e===bm.GREATER_THAN_SIGN?(this._err(_m.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(_m.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hg)))}[Dg](e){e===bm.QUOTATION_MARK?this.state=Fg:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentToken.systemId+=ym.REPLACEMENT_CHARACTER):e===bm.GREATER_THAN_SIGN?(this._err(_m.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=km):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=aE(e)}[Mg](e){e===bm.APOSTROPHE?this.state=Fg:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentToken.systemId+=ym.REPLACEMENT_CHARACTER):e===bm.GREATER_THAN_SIGN?(this._err(_m.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=km):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=aE(e)}[Fg](e){Xg(e)||(e===bm.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=km):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(_m.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Hg)))}[Hg](e){e===bm.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=km):e===bm.NULL?this._err(_m.unexpectedNullCharacter):e===bm.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Bg](e){e===bm.RIGHT_SQUARE_BRACKET?this.state=Ug:e===bm.EOF?(this._err(_m.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[Ug](e){e===bm.RIGHT_SQUARE_BRACKET?this.state=jg:(this._emitChars("]"),this._reconsumeInState(Bg))}[jg](e){e===bm.GREATER_THAN_SIGN?this.state=km:e===bm.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Bg))}[qg](e){this.tempBuff=[bm.AMPERSAND],e===bm.NUMBER_SIGN?(this.tempBuff.push(e),this.state=Kg):rE(e)?this._reconsumeInState(zg):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[zg](e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[bm.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===bm.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(_m.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Gg}[Gg](e){rE(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=aE(e):this._emitCodePoint(e):(e===bm.SEMICOLON&&this._err(_m.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Kg](e){this.charRefCode=0,e===bm.LATIN_SMALL_X||e===bm.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=$g):this._reconsumeInState(Vg)}[$g](e){!function(e){return Jg(e)||nE(e)||iE(e)}(e)?(this._err(_m.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState(Qg)}[Vg](e){Jg(e)?this._reconsumeInState(Wg):(this._err(_m.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Qg](e){nE(e)?this.charRefCode=16*this.charRefCode+e-55:iE(e)?this.charRefCode=16*this.charRefCode+e-87:Jg(e)?this.charRefCode=16*this.charRefCode+e-48:e===bm.SEMICOLON?this.state=Yg:(this._err(_m.missingSemicolonAfterCharacterReference),this._reconsumeInState(Yg))}[Wg](e){Jg(e)?this.charRefCode=10*this.charRefCode+e-48:e===bm.SEMICOLON?this.state=Yg:(this._err(_m.missingSemicolonAfterCharacterReference),this._reconsumeInState(Yg))}[Yg](){if(this.charRefCode===bm.NULL)this._err(_m.nullCharacterReference),this.charRefCode=bm.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(_m.characterReferenceOutsideUnicodeRange),this.charRefCode=bm.REPLACEMENT_CHARACTER;else if(ym.isSurrogate(this.charRefCode))this._err(_m.surrogateCharacterReference),this.charRefCode=bm.REPLACEMENT_CHARACTER;else if(ym.isUndefinedCodePoint(this.charRefCode))this._err(_m.noncharacterCharacterReference);else if(ym.isControlCodePoint(this.charRefCode)||this.charRefCode===bm.CARRIAGE_RETURN){this._err(_m.controlCharacterReference);const e=Sm[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}lE.CHARACTER_TOKEN="CHARACTER_TOKEN",lE.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",lE.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",lE.START_TAG_TOKEN="START_TAG_TOKEN",lE.END_TAG_TOKEN="END_TAG_TOKEN",lE.COMMENT_TOKEN="COMMENT_TOKEN",lE.DOCTYPE_TOKEN="DOCTYPE_TOKEN",lE.EOF_TOKEN="EOF_TOKEN",lE.HIBERNATION_TOKEN="HIBERNATION_TOKEN",lE.MODE={DATA:km,RCDATA:Cm,RAWTEXT:xm,SCRIPT_DATA:wm,PLAINTEXT:Om},lE.getTokenAttr=function(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null};var uE=lE,hE={};const pE=hE.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};hE.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},hE.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const fE=hE.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};hE.SPECIAL_ELEMENTS={[pE.HTML]:{[fE.ADDRESS]:!0,[fE.APPLET]:!0,[fE.AREA]:!0,[fE.ARTICLE]:!0,[fE.ASIDE]:!0,[fE.BASE]:!0,[fE.BASEFONT]:!0,[fE.BGSOUND]:!0,[fE.BLOCKQUOTE]:!0,[fE.BODY]:!0,[fE.BR]:!0,[fE.BUTTON]:!0,[fE.CAPTION]:!0,[fE.CENTER]:!0,[fE.COL]:!0,[fE.COLGROUP]:!0,[fE.DD]:!0,[fE.DETAILS]:!0,[fE.DIR]:!0,[fE.DIV]:!0,[fE.DL]:!0,[fE.DT]:!0,[fE.EMBED]:!0,[fE.FIELDSET]:!0,[fE.FIGCAPTION]:!0,[fE.FIGURE]:!0,[fE.FOOTER]:!0,[fE.FORM]:!0,[fE.FRAME]:!0,[fE.FRAMESET]:!0,[fE.H1]:!0,[fE.H2]:!0,[fE.H3]:!0,[fE.H4]:!0,[fE.H5]:!0,[fE.H6]:!0,[fE.HEAD]:!0,[fE.HEADER]:!0,[fE.HGROUP]:!0,[fE.HR]:!0,[fE.HTML]:!0,[fE.IFRAME]:!0,[fE.IMG]:!0,[fE.INPUT]:!0,[fE.LI]:!0,[fE.LINK]:!0,[fE.LISTING]:!0,[fE.MAIN]:!0,[fE.MARQUEE]:!0,[fE.MENU]:!0,[fE.META]:!0,[fE.NAV]:!0,[fE.NOEMBED]:!0,[fE.NOFRAMES]:!0,[fE.NOSCRIPT]:!0,[fE.OBJECT]:!0,[fE.OL]:!0,[fE.P]:!0,[fE.PARAM]:!0,[fE.PLAINTEXT]:!0,[fE.PRE]:!0,[fE.SCRIPT]:!0,[fE.SECTION]:!0,[fE.SELECT]:!0,[fE.SOURCE]:!0,[fE.STYLE]:!0,[fE.SUMMARY]:!0,[fE.TABLE]:!0,[fE.TBODY]:!0,[fE.TD]:!0,[fE.TEMPLATE]:!0,[fE.TEXTAREA]:!0,[fE.TFOOT]:!0,[fE.TH]:!0,[fE.THEAD]:!0,[fE.TITLE]:!0,[fE.TR]:!0,[fE.TRACK]:!0,[fE.UL]:!0,[fE.WBR]:!0,[fE.XMP]:!0},[pE.MATHML]:{[fE.MI]:!0,[fE.MO]:!0,[fE.MN]:!0,[fE.MS]:!0,[fE.MTEXT]:!0,[fE.ANNOTATION_XML]:!0},[pE.SVG]:{[fE.TITLE]:!0,[fE.FOREIGN_OBJECT]:!0,[fE.DESC]:!0}};const dE=hE,mE=dE.TAG_NAMES,gE=dE.NAMESPACES;function EE(e){switch(e.length){case 1:return e===mE.P;case 2:return e===mE.RB||e===mE.RP||e===mE.RT||e===mE.DD||e===mE.DT||e===mE.LI;case 3:return e===mE.RTC;case 6:return e===mE.OPTION;case 8:return e===mE.OPTGROUP}return!1}function TE(e){switch(e.length){case 1:return e===mE.P;case 2:return e===mE.RB||e===mE.RP||e===mE.RT||e===mE.DD||e===mE.DT||e===mE.LI||e===mE.TD||e===mE.TH||e===mE.TR;case 3:return e===mE.RTC;case 5:return e===mE.TBODY||e===mE.TFOOT||e===mE.THEAD;case 6:return e===mE.OPTION;case 7:return e===mE.CAPTION;case 8:return e===mE.OPTGROUP||e===mE.COLGROUP}return!1}function yE(e,t){switch(e.length){case 2:if(e===mE.TD||e===mE.TH)return t===gE.HTML;if(e===mE.MI||e===mE.MO||e===mE.MN||e===mE.MS)return t===gE.MATHML;break;case 4:if(e===mE.HTML)return t===gE.HTML;if(e===mE.DESC)return t===gE.SVG;break;case 5:if(e===mE.TABLE)return t===gE.HTML;if(e===mE.MTEXT)return t===gE.MATHML;if(e===mE.TITLE)return t===gE.SVG;break;case 6:return(e===mE.APPLET||e===mE.OBJECT)&&t===gE.HTML;case 7:return(e===mE.CAPTION||e===mE.MARQUEE)&&t===gE.HTML;case 8:return e===mE.TEMPLATE&&t===gE.HTML;case 13:return e===mE.FOREIGN_OBJECT&&t===gE.SVG;case 14:return e===mE.ANNOTATION_XML&&t===gE.MATHML}return!1}var vE=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===e){t=r;break}return t}_isInTemplate(){return this.currentTagName===mE.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===gE.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const r=this._indexOf(e)+1;this.items.splice(r,0,t),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&r===gE.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===mE.H1||e===mE.H2||e===mE.H3||e===mE.H4||e===mE.H5||e===mE.H6&&t===gE.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===mE.TD||e===mE.TH&&t===gE.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==mE.TABLE&&this.currentTagName!==mE.TEMPLATE&&this.currentTagName!==mE.HTML||this.treeAdapter.getNamespaceURI(this.current)!==gE.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==mE.TBODY&&this.currentTagName!==mE.TFOOT&&this.currentTagName!==mE.THEAD&&this.currentTagName!==mE.TEMPLATE&&this.currentTagName!==mE.HTML||this.treeAdapter.getNamespaceURI(this.current)!==gE.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==mE.TR&&this.currentTagName!==mE.TEMPLATE&&this.currentTagName!==mE.HTML||this.treeAdapter.getNamespaceURI(this.current)!==gE.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===mE.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===mE.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===gE.HTML)return!0;if(yE(r,n))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===mE.H1||t===mE.H2||t===mE.H3||t===mE.H4||t===mE.H5||t===mE.H6)&&r===gE.HTML)return!0;if(yE(t,r))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===gE.HTML)return!0;if((r===mE.UL||r===mE.OL)&&n===gE.HTML||yE(r,n))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===gE.HTML)return!0;if(r===mE.BUTTON&&n===gE.HTML||yE(r,n))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===gE.HTML){if(r===e)return!0;if(r===mE.TABLE||r===mE.TEMPLATE||r===mE.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===gE.HTML){if(t===mE.TBODY||t===mE.THEAD||t===mE.TFOOT)return!0;if(t===mE.TABLE||t===mE.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===gE.HTML){if(r===e)return!0;if(r!==mE.OPTION&&r!==mE.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;EE(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;TE(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;EE(this.currentTagName)&&this.currentTagName!==e;)this.pop()}};class _E{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const t=[];if(this.length>=3){const r=this.treeAdapter.getAttrList(e).length,n=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const o=this.entries[e];if(o.type===_E.MARKER_ENTRY)break;const a=o.element,s=this.treeAdapter.getAttrList(a);this.treeAdapter.getTagName(a)===n&&this.treeAdapter.getNamespaceURI(a)===i&&s.length===r&&t.push({idx:e,attrs:s})}}return t.length<3?[]:t}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let r=t.length;if(r){const n=this.treeAdapter.getAttrList(e),i=n.length,o=Object.create(null);for(let e=0;e<i;e++){const t=n[e];o[t.name]=t.value}for(let e=0;e<i;e++)for(let n=0;n<r;n++){const i=t[n].attrs[e];if(o[i.name]!==i.value&&(t.splice(n,1),r--),t.length<3)return}for(let e=r-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:_E.MARKER_ENTRY}),this.length++}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:_E.ELEMENT_ENTRY,element:e,token:t}),this.length++}insertElementAfterBookmark(e,t){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:_E.ELEMENT_ENTRY,element:e,token:t}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===_E.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let t=this.length-1;t>=0;t--){const r=this.entries[t];if(r.type===_E.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let t=this.length-1;t>=0;t--){const r=this.entries[t];if(r.type===_E.ELEMENT_ENTRY&&r.element===e)return r}return null}}_E.MARKER_ENTRY="MARKER_ENTRY",_E.ELEMENT_ENTRY="ELEMENT_ENTRY";var bE=_E;class AE{constructor(e){const t={},r=this._getOverriddenMethods(this,t);for(const n of Object.keys(r))"function"==typeof r[n]&&(t[n]=e[n],e[n]=r[n])}_getOverriddenMethods(){throw new Error("Not implemented")}}AE.install=function(e,t,r){e.__mixins||(e.__mixins=[]);for(let r=0;r<e.__mixins.length;r++)if(e.__mixins[r].constructor===t)return e.__mixins[r];const n=new t(e,r);return e.__mixins.push(n),n};var SE=AE;const kE=SE;var CE=class extends kE{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const r=this.pos+1,n=this.html[r];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=r),("\n"===n||"\r"===n&&"\n"!==this.html[r+1])&&(e.isEol=!0),e.col=r-e.lineStartPos+1,e.offset=e.droppedBufferSize+r,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const r=this.pos;t.dropParsedChunk.call(this);const n=r-this.pos;e.lineStartPos-=n,e.droppedBufferSize+=n,e.offset=e.droppedBufferSize+this.pos}}}};const xE=SE,wE=uE,OE=CE;var NE=class extends xE{constructor(e){super(e),this.tokenizer=e,this.posTracker=xE.install(e.preprocessor,OE),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const r={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(r){t._createDoctypeToken.call(this,r),this.currentToken.location=e.ctLoc},_createCharacterToken(r,n){t._createCharacterToken.call(this,r,n),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(r){t._createAttr.call(this,r),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(r){t._leaveAttrName.call(this,r),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(r){t._leaveAttrValue.call(this,r),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const r=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=r.startLine,this.currentCharacterToken.location.endCol=r.startCol,this.currentCharacterToken.location.endOffset=r.startOffset),this.currentToken.type===wE.EOF_TOKEN?(r.endLine=r.startLine,r.endCol=r.startCol,r.endOffset=r.startOffset):(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col+1,r.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const r=this.currentCharacterToken&&this.currentCharacterToken.location;r&&-1===r.endOffset&&(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col,r.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(wE.MODE).forEach((n=>{const i=wE.MODE[n];r[i]=function(r){e.ctLoc=e._getCurrentLocation(),t[i].call(this,r)}})),r}};const PE=SE;var RE=class extends PE{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(r){e.onItemPop(this.current),t.remove.call(this,r)}}}};const IE=SE,LE=uE,DE=NE,ME=RE,FE=hE.TAG_NAMES;var HE=class extends IE{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const r=t.location,n=this.treeAdapter.getTagName(e),i={};t.type===LE.END_TAG_TOKEN&&n===t.tagName?(i.endTag=Object.assign({},r),i.endLine=r.endLine,i.endCol=r.endCol,i.endOffset=r.endOffset):(i.endLine=r.startLine,i.endCol=r.startCol,i.endOffset=r.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}_getOverriddenMethods(e,t){return{_bootstrap(r,n){t._bootstrap.call(this,r,n),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const i=IE.install(this.tokenizer,DE);e.posTracker=i.posTracker,IE.install(this.openElements,ME,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(r){t._runParsingLoop.call(this,r);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(r){e.currentToken=r,t._processTokenInForeignContent.call(this,r)},_processToken(r){e.currentToken=r,t._processToken.call(this,r);if(r.type===LE.END_TAG_TOKEN&&(r.tagName===FE.HTML||r.tagName===FE.BODY&&this.openElements.hasInScope(FE.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];if(this.treeAdapter.getTagName(n)===r.tagName){e._setEndLocation(n,r);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const r=this.treeAdapter.getChildNodes(this.document),n=r.length;for(let t=0;t<n;t++){const n=r[t];if(this.treeAdapter.isDocumentTypeNode(n)){this.treeAdapter.setNodeSourceCodeLocation(n,e.location);break}}},_attachElementToTree(r){e._setStartLocation(r),e.lastStartTagToken=null,t._attachElementToTree.call(this,r)},_appendElement(r,n){e.lastStartTagToken=r,t._appendElement.call(this,r,n)},_insertElement(r,n){e.lastStartTagToken=r,t._insertElement.call(this,r,n)},_insertTemplate(r){e.lastStartTagToken=r,t._insertTemplate.call(this,r);const n=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(n,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,r){t._appendCommentNode.call(this,e,r);const n=this.treeAdapter.getChildNodes(r),i=n[n.length-1];this.treeAdapter.setNodeSourceCodeLocation(i,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(r){t._insertCharacters.call(this,r);const n=this._shouldFosterParentOnInsertion(),i=n&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,o=this.treeAdapter.getChildNodes(i),a=n&&e.lastFosterParentingLocation.beforeElement?o.indexOf(e.lastFosterParentingLocation.beforeElement)-1:o.length-1,s=o[a];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:e,endCol:t,endOffset:n}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:e,endCol:t,endOffset:n})}else this.treeAdapter.setNodeSourceCodeLocation(s,r.location)}}}};const BE=SE;var UE=class extends BE{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}};const jE=UE,qE=CE,zE=SE;var GE=class extends jE{constructor(e,t){super(e,t),this.posTracker=zE.install(e,qE),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}};const KE=UE,$E=GE,VE=SE;var QE=class extends KE{constructor(e,t){super(e,t);const r=VE.install(e.preprocessor,$E,t);this.posTracker=r.posTracker}};const WE=UE,YE=QE,XE=NE,JE=SE;var ZE=class extends WE{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(r,n){t._bootstrap.call(this,r,n),JE.install(this.tokenizer,YE,e.opts),JE.install(this.tokenizer,XE)},_processInputToken(r){e.ctLoc=r.location,t._processInputToken.call(this,r)},_err(t,r){e.locBeforeToken=r&&r.beforeToken,e._reportError(t)}}}},eT={};const{DOCUMENT_MODE:tT}=hE;eT.createDocument=function(){return{nodeName:"#document",mode:tT.NO_QUIRKS,childNodes:[]}},eT.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},eT.createElement=function(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},eT.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const rT=function(e){return{nodeName:"#text",value:e,parentNode:null}},nT=eT.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},iT=eT.insertBefore=function(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e};eT.setTemplateContent=function(e,t){e.content=t},eT.getTemplateContent=function(e){return e.content},eT.setDocumentType=function(e,t,r,n){let i=null;for(let t=0;t<e.childNodes.length;t++)if("#documentType"===e.childNodes[t].nodeName){i=e.childNodes[t];break}i?(i.name=t,i.publicId=r,i.systemId=n):nT(e,{nodeName:"#documentType",name:t,publicId:r,systemId:n})},eT.setDocumentMode=function(e,t){e.mode=t},eT.getDocumentMode=function(e){return e.mode},eT.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},eT.insertText=function(e,t){if(e.childNodes.length){const r=e.childNodes[e.childNodes.length-1];if("#text"===r.nodeName)return void(r.value+=t)}nT(e,rT(t))},eT.insertTextBefore=function(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&"#text"===n.nodeName?n.value+=t:iT(e,rT(t),r)},eT.adoptAttributes=function(e,t){const r=[];for(let t=0;t<e.attrs.length;t++)r.push(e.attrs[t].name);for(let n=0;n<t.length;n++)-1===r.indexOf(t[n].name)&&e.attrs.push(t[n])},eT.getFirstChild=function(e){return e.childNodes[0]},eT.getChildNodes=function(e){return e.childNodes},eT.getParentNode=function(e){return e.parentNode},eT.getAttrList=function(e){return e.attrs},eT.getTagName=function(e){return e.tagName},eT.getNamespaceURI=function(e){return e.namespaceURI},eT.getTextNodeContent=function(e){return e.value},eT.getCommentNodeContent=function(e){return e.data},eT.getDocumentTypeNodeName=function(e){return e.name},eT.getDocumentTypeNodePublicId=function(e){return e.publicId},eT.getDocumentTypeNodeSystemId=function(e){return e.systemId},eT.isTextNode=function(e){return"#text"===e.nodeName},eT.isCommentNode=function(e){return"#comment"===e.nodeName},eT.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},eT.isElementNode=function(e){return!!e.tagName},eT.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},eT.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation},eT.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)};var oT={};const{DOCUMENT_MODE:aT}=hE,sT="html",cT=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],lT=cT.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),uT=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],hT=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],pT=hT.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function fT(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function dT(e,t){for(let r=0;r<t.length;r++)if(0===e.indexOf(t[r]))return!0;return!1}oT.isConforming=function(e){return e.name===sT&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},oT.getDocumentMode=function(e){if(e.name!==sT)return aT.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return aT.QUIRKS;let r=e.publicId;if(null!==r){if(r=r.toLowerCase(),uT.indexOf(r)>-1)return aT.QUIRKS;let e=null===t?lT:cT;if(dT(r,e))return aT.QUIRKS;if(e=null===t?hT:pT,dT(r,e))return aT.LIMITED_QUIRKS}return aT.NO_QUIRKS},oT.serializeContent=function(e,t,r){let n="!DOCTYPE ";return e&&(n+=e),t?n+=" PUBLIC "+fT(t):r&&(n+=" SYSTEM"),null!==r&&(n+=" "+fT(r)),n};var mT={};const gT=uE,ET=hE,TT=ET.TAG_NAMES,yT=ET.NAMESPACES,vT=ET.ATTRS,_T={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},bT={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},AT={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:yT.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:yT.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:yT.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:yT.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:yT.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:yT.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:yT.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:yT.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:yT.XML},"xml:space":{prefix:"xml",name:"space",namespace:yT.XML},xmlns:{prefix:"",name:"xmlns",namespace:yT.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:yT.XMLNS}},ST=mT.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},kT={[TT.B]:!0,[TT.BIG]:!0,[TT.BLOCKQUOTE]:!0,[TT.BODY]:!0,[TT.BR]:!0,[TT.CENTER]:!0,[TT.CODE]:!0,[TT.DD]:!0,[TT.DIV]:!0,[TT.DL]:!0,[TT.DT]:!0,[TT.EM]:!0,[TT.EMBED]:!0,[TT.H1]:!0,[TT.H2]:!0,[TT.H3]:!0,[TT.H4]:!0,[TT.H5]:!0,[TT.H6]:!0,[TT.HEAD]:!0,[TT.HR]:!0,[TT.I]:!0,[TT.IMG]:!0,[TT.LI]:!0,[TT.LISTING]:!0,[TT.MENU]:!0,[TT.META]:!0,[TT.NOBR]:!0,[TT.OL]:!0,[TT.P]:!0,[TT.PRE]:!0,[TT.RUBY]:!0,[TT.S]:!0,[TT.SMALL]:!0,[TT.SPAN]:!0,[TT.STRONG]:!0,[TT.STRIKE]:!0,[TT.SUB]:!0,[TT.SUP]:!0,[TT.TABLE]:!0,[TT.TT]:!0,[TT.U]:!0,[TT.UL]:!0,[TT.VAR]:!0};mT.causesExit=function(e){const t=e.tagName;return!!(t===TT.FONT&&(null!==gT.getTokenAttr(e,vT.COLOR)||null!==gT.getTokenAttr(e,vT.SIZE)||null!==gT.getTokenAttr(e,vT.FACE)))||kT[t]},mT.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},mT.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const r=bT[e.attrs[t].name];r&&(e.attrs[t].name=r)}},mT.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const r=AT[e.attrs[t].name];r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}},mT.adjustTokenSVGTagName=function(e){const t=ST[e.tagName];t&&(e.tagName=t)},mT.isIntegrationPoint=function(e,t,r,n){return!(n&&n!==yT.HTML||!function(e,t,r){if(t===yT.MATHML&&e===TT.ANNOTATION_XML)for(let e=0;e<r.length;e++)if(r[e].name===vT.ENCODING){const t=r[e].value.toLowerCase();return t===_T.TEXT_HTML||t===_T.APPLICATION_XML}return t===yT.SVG&&(e===TT.FOREIGN_OBJECT||e===TT.DESC||e===TT.TITLE)}(e,t,r))||!(n&&n!==yT.MATHML||!function(e,t){return t===yT.MATHML&&(e===TT.MI||e===TT.MO||e===TT.MN||e===TT.MS||e===TT.MTEXT)}(e,t))};const CT=uE,xT=vE,wT=bE,OT=HE,NT=ZE,PT=SE,RT=eT,IT=function(e,t){return[e,t=t||Object.create(null)].reduce(((e,t)=>(Object.keys(t).forEach((r=>{e[r]=t[r]})),e)),Object.create(null))},LT=oT,DT=mT,MT=pm,FT=um,HT=hE,BT=HT.TAG_NAMES,UT=HT.NAMESPACES,jT=HT.ATTRS,qT={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:RT},zT="hidden",GT=8,KT=3,$T="INITIAL_MODE",VT="BEFORE_HTML_MODE",QT="BEFORE_HEAD_MODE",WT="IN_HEAD_MODE",YT="IN_HEAD_NO_SCRIPT_MODE",XT="AFTER_HEAD_MODE",JT="IN_BODY_MODE",ZT="TEXT_MODE",ey="IN_TABLE_MODE",ty="IN_TABLE_TEXT_MODE",ry="IN_CAPTION_MODE",ny="IN_COLUMN_GROUP_MODE",iy="IN_TABLE_BODY_MODE",oy="IN_ROW_MODE",ay="IN_CELL_MODE",sy="IN_SELECT_MODE",cy="IN_SELECT_IN_TABLE_MODE",ly="IN_TEMPLATE_MODE",uy="AFTER_BODY_MODE",hy="IN_FRAMESET_MODE",py="AFTER_FRAMESET_MODE",fy="AFTER_AFTER_BODY_MODE",dy="AFTER_AFTER_FRAMESET_MODE",my={[BT.TR]:oy,[BT.TBODY]:iy,[BT.THEAD]:iy,[BT.TFOOT]:iy,[BT.CAPTION]:ry,[BT.COLGROUP]:ny,[BT.TABLE]:ey,[BT.BODY]:JT,[BT.FRAMESET]:hy},gy={[BT.CAPTION]:ey,[BT.COLGROUP]:ey,[BT.TBODY]:ey,[BT.TFOOT]:ey,[BT.THEAD]:ey,[BT.COL]:ny,[BT.TR]:iy,[BT.TD]:oy,[BT.TH]:oy},Ey={[$T]:{[CT.CHARACTER_TOKEN]:Ry,[CT.NULL_CHARACTER_TOKEN]:Ry,[CT.WHITESPACE_CHARACTER_TOKEN]:Cy,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const r=t.forceQuirks?HT.DOCUMENT_MODE.QUIRKS:LT.getDocumentMode(t);LT.isConforming(t)||e._err(MT.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=VT},[CT.START_TAG_TOKEN]:Ry,[CT.END_TAG_TOKEN]:Ry,[CT.EOF_TOKEN]:Ry},[VT]:{[CT.CHARACTER_TOKEN]:Iy,[CT.NULL_CHARACTER_TOKEN]:Iy,[CT.WHITESPACE_CHARACTER_TOKEN]:Cy,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){t.tagName===BT.HTML?(e._insertElement(t,UT.HTML),e.insertionMode=QT):Iy(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r!==BT.HTML&&r!==BT.HEAD&&r!==BT.BODY&&r!==BT.BR||Iy(e,t)},[CT.EOF_TOKEN]:Iy},[QT]:{[CT.CHARACTER_TOKEN]:Ly,[CT.NULL_CHARACTER_TOKEN]:Ly,[CT.WHITESPACE_CHARACTER_TOKEN]:Cy,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:xy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.HEAD?(e._insertElement(t,UT.HTML),e.headElement=e.openElements.current,e.insertionMode=WT):Ly(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.HEAD||r===BT.BODY||r===BT.HTML||r===BT.BR?Ly(e,t):e._err(MT.endTagWithoutMatchingOpenElement)},[CT.EOF_TOKEN]:Ly},[WT]:{[CT.CHARACTER_TOKEN]:Fy,[CT.NULL_CHARACTER_TOKEN]:Fy,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:xy,[CT.START_TAG_TOKEN]:Dy,[CT.END_TAG_TOKEN]:My,[CT.EOF_TOKEN]:Fy},[YT]:{[CT.CHARACTER_TOKEN]:Hy,[CT.NULL_CHARACTER_TOKEN]:Hy,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:xy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.BASEFONT||r===BT.BGSOUND||r===BT.HEAD||r===BT.LINK||r===BT.META||r===BT.NOFRAMES||r===BT.STYLE?Dy(e,t):r===BT.NOSCRIPT?e._err(MT.nestedNoscriptInHead):Hy(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.NOSCRIPT?(e.openElements.pop(),e.insertionMode=WT):r===BT.BR?Hy(e,t):e._err(MT.endTagWithoutMatchingOpenElement)},[CT.EOF_TOKEN]:Hy},[XT]:{[CT.CHARACTER_TOKEN]:By,[CT.NULL_CHARACTER_TOKEN]:By,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:xy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.BODY?(e._insertElement(t,UT.HTML),e.framesetOk=!1,e.insertionMode=JT):r===BT.FRAMESET?(e._insertElement(t,UT.HTML),e.insertionMode=hy):r===BT.BASE||r===BT.BASEFONT||r===BT.BGSOUND||r===BT.LINK||r===BT.META||r===BT.NOFRAMES||r===BT.SCRIPT||r===BT.STYLE||r===BT.TEMPLATE||r===BT.TITLE?(e._err(MT.abandonedHeadElementChild),e.openElements.push(e.headElement),Dy(e,t),e.openElements.remove(e.headElement)):r===BT.HEAD?e._err(MT.misplacedStartTagForHeadElement):By(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.BODY||r===BT.HTML||r===BT.BR?By(e,t):r===BT.TEMPLATE?My(e,t):e._err(MT.endTagWithoutMatchingOpenElement)},[CT.EOF_TOKEN]:By},[JT]:{[CT.CHARACTER_TOKEN]:jy,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Uy,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:Jy,[CT.END_TAG_TOKEN]:rv,[CT.EOF_TOKEN]:nv},[ZT]:{[CT.CHARACTER_TOKEN]:Ny,[CT.NULL_CHARACTER_TOKEN]:Ny,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:Cy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:Cy,[CT.END_TAG_TOKEN]:function(e,t){t.tagName===BT.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[CT.EOF_TOKEN]:function(e,t){e._err(MT.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[ey]:{[CT.CHARACTER_TOKEN]:iv,[CT.NULL_CHARACTER_TOKEN]:iv,[CT.WHITESPACE_CHARACTER_TOKEN]:iv,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:ov,[CT.END_TAG_TOKEN]:av,[CT.EOF_TOKEN]:nv},[ty]:{[CT.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[CT.COMMENT_TOKEN]:cv,[CT.DOCTYPE_TOKEN]:cv,[CT.START_TAG_TOKEN]:cv,[CT.END_TAG_TOKEN]:cv,[CT.EOF_TOKEN]:cv},[ry]:{[CT.CHARACTER_TOKEN]:jy,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Uy,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.CAPTION||r===BT.COL||r===BT.COLGROUP||r===BT.TBODY||r===BT.TD||r===BT.TFOOT||r===BT.TH||r===BT.THEAD||r===BT.TR?e.openElements.hasInTableScope(BT.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(BT.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ey,e._processToken(t)):Jy(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.CAPTION||r===BT.TABLE?e.openElements.hasInTableScope(BT.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(BT.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ey,r===BT.TABLE&&e._processToken(t)):r!==BT.BODY&&r!==BT.COL&&r!==BT.COLGROUP&&r!==BT.HTML&&r!==BT.TBODY&&r!==BT.TD&&r!==BT.TFOOT&&r!==BT.TH&&r!==BT.THEAD&&r!==BT.TR&&rv(e,t)},[CT.EOF_TOKEN]:nv},[ny]:{[CT.CHARACTER_TOKEN]:lv,[CT.NULL_CHARACTER_TOKEN]:lv,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.COL?(e._appendElement(t,UT.HTML),t.ackSelfClosing=!0):r===BT.TEMPLATE?Dy(e,t):lv(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.COLGROUP?e.openElements.currentTagName===BT.COLGROUP&&(e.openElements.pop(),e.insertionMode=ey):r===BT.TEMPLATE?My(e,t):r!==BT.COL&&lv(e,t)},[CT.EOF_TOKEN]:nv},[iy]:{[CT.CHARACTER_TOKEN]:iv,[CT.NULL_CHARACTER_TOKEN]:iv,[CT.WHITESPACE_CHARACTER_TOKEN]:iv,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,UT.HTML),e.insertionMode=oy):r===BT.TH||r===BT.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(BT.TR),e.insertionMode=oy,e._processToken(t)):r===BT.CAPTION||r===BT.COL||r===BT.COLGROUP||r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ey,e._processToken(t)):ov(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD?e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ey):r===BT.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ey,e._processToken(t)):(r!==BT.BODY&&r!==BT.CAPTION&&r!==BT.COL&&r!==BT.COLGROUP||r!==BT.HTML&&r!==BT.TD&&r!==BT.TH&&r!==BT.TR)&&av(e,t)},[CT.EOF_TOKEN]:nv},[oy]:{[CT.CHARACTER_TOKEN]:iv,[CT.NULL_CHARACTER_TOKEN]:iv,[CT.WHITESPACE_CHARACTER_TOKEN]:iv,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.TH||r===BT.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,UT.HTML),e.insertionMode=ay,e.activeFormattingElements.insertMarker()):r===BT.CAPTION||r===BT.COL||r===BT.COLGROUP||r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD||r===BT.TR?e.openElements.hasInTableScope(BT.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=iy,e._processToken(t)):ov(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.TR?e.openElements.hasInTableScope(BT.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=iy):r===BT.TABLE?e.openElements.hasInTableScope(BT.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=iy,e._processToken(t)):r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD?(e.openElements.hasInTableScope(r)||e.openElements.hasInTableScope(BT.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=iy,e._processToken(t)):(r!==BT.BODY&&r!==BT.CAPTION&&r!==BT.COL&&r!==BT.COLGROUP||r!==BT.HTML&&r!==BT.TD&&r!==BT.TH)&&av(e,t)},[CT.EOF_TOKEN]:nv},[ay]:{[CT.CHARACTER_TOKEN]:jy,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Uy,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.CAPTION||r===BT.COL||r===BT.COLGROUP||r===BT.TBODY||r===BT.TD||r===BT.TFOOT||r===BT.TH||r===BT.THEAD||r===BT.TR?(e.openElements.hasInTableScope(BT.TD)||e.openElements.hasInTableScope(BT.TH))&&(e._closeTableCell(),e._processToken(t)):Jy(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.TD||r===BT.TH?e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=oy):r===BT.TABLE||r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD||r===BT.TR?e.openElements.hasInTableScope(r)&&(e._closeTableCell(),e._processToken(t)):r!==BT.BODY&&r!==BT.CAPTION&&r!==BT.COL&&r!==BT.COLGROUP&&r!==BT.HTML&&rv(e,t)},[CT.EOF_TOKEN]:nv},[sy]:{[CT.CHARACTER_TOKEN]:Ny,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:uv,[CT.END_TAG_TOKEN]:hv,[CT.EOF_TOKEN]:nv},[cy]:{[CT.CHARACTER_TOKEN]:Ny,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.CAPTION||r===BT.TABLE||r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD||r===BT.TR||r===BT.TD||r===BT.TH?(e.openElements.popUntilTagNamePopped(BT.SELECT),e._resetInsertionMode(),e._processToken(t)):uv(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.CAPTION||r===BT.TABLE||r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD||r===BT.TR||r===BT.TD||r===BT.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(BT.SELECT),e._resetInsertionMode(),e._processToken(t)):hv(e,t)},[CT.EOF_TOKEN]:nv},[ly]:{[CT.CHARACTER_TOKEN]:jy,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Uy,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;if(r===BT.BASE||r===BT.BASEFONT||r===BT.BGSOUND||r===BT.LINK||r===BT.META||r===BT.NOFRAMES||r===BT.SCRIPT||r===BT.STYLE||r===BT.TEMPLATE||r===BT.TITLE)Dy(e,t);else{const n=gy[r]||JT;e._popTmplInsertionMode(),e._pushTmplInsertionMode(n),e.insertionMode=n,e._processToken(t)}},[CT.END_TAG_TOKEN]:function(e,t){t.tagName===BT.TEMPLATE&&My(e,t)},[CT.EOF_TOKEN]:pv},[uy]:{[CT.CHARACTER_TOKEN]:fv,[CT.NULL_CHARACTER_TOKEN]:fv,[CT.WHITESPACE_CHARACTER_TOKEN]:Uy,[CT.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){t.tagName===BT.HTML?Jy(e,t):fv(e,t)},[CT.END_TAG_TOKEN]:function(e,t){t.tagName===BT.HTML?e.fragmentContext||(e.insertionMode=fy):fv(e,t)},[CT.EOF_TOKEN]:Py},[hy]:{[CT.CHARACTER_TOKEN]:Cy,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.FRAMESET?e._insertElement(t,UT.HTML):r===BT.FRAME?(e._appendElement(t,UT.HTML),t.ackSelfClosing=!0):r===BT.NOFRAMES&&Dy(e,t)},[CT.END_TAG_TOKEN]:function(e,t){t.tagName!==BT.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===BT.FRAMESET||(e.insertionMode=py))},[CT.EOF_TOKEN]:Py},[py]:{[CT.CHARACTER_TOKEN]:Cy,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.NOFRAMES&&Dy(e,t)},[CT.END_TAG_TOKEN]:function(e,t){t.tagName===BT.HTML&&(e.insertionMode=dy)},[CT.EOF_TOKEN]:Py},[fy]:{[CT.CHARACTER_TOKEN]:dv,[CT.NULL_CHARACTER_TOKEN]:dv,[CT.WHITESPACE_CHARACTER_TOKEN]:Uy,[CT.COMMENT_TOKEN]:Oy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){t.tagName===BT.HTML?Jy(e,t):dv(e,t)},[CT.END_TAG_TOKEN]:dv,[CT.EOF_TOKEN]:Py},[dy]:{[CT.CHARACTER_TOKEN]:Cy,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Uy,[CT.COMMENT_TOKEN]:Oy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.NOFRAMES&&Dy(e,t)},[CT.END_TAG_TOKEN]:Cy,[CT.EOF_TOKEN]:Py}};var Ty=class{constructor(e){this.options=IT(qT,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&PT.install(this,OT),this.options.onParseError&&PT.install(this,NT,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(BT.TEMPLATE,UT.HTML,[]));const r=this.treeAdapter.createElement("documentmock",UT.HTML,[]);this._bootstrap(r,t),this.treeAdapter.getTagName(t)===BT.TEMPLATE&&this._pushTmplInsertionMode(ly),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const n=this.treeAdapter.getFirstChild(r),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(n,i),i}_bootstrap(e,t){this.tokenizer=new CT(this.options),this.stopped=!1,this.insertionMode=$T,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new xT(this.document,this.treeAdapter),this.activeFormattingElements=new wT(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===CT.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===CT.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==UT.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,UT.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=ZT}switchToPlaintextParsing(){this.insertionMode=ZT,this.originalInsertionMode=JT,this.tokenizer.state=CT.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===BT.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===UT.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===BT.TITLE||e===BT.TEXTAREA?this.tokenizer.state=CT.MODE.RCDATA:e===BT.STYLE||e===BT.XMP||e===BT.IFRAME||e===BT.NOEMBED||e===BT.NOFRAMES||e===BT.NOSCRIPT?this.tokenizer.state=CT.MODE.RAWTEXT:e===BT.SCRIPT?this.tokenizer.state=CT.MODE.SCRIPT_DATA:e===BT.PLAINTEXT&&(this.tokenizer.state=CT.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",n=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,r,n)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r)}_insertElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,UT.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,UT.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(BT.HTML,UT.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(t);if(r===UT.HTML)return!1;if(this.treeAdapter.getTagName(t)===BT.ANNOTATION_XML&&r===UT.MATHML&&e.type===CT.START_TAG_TOKEN&&e.tagName===BT.SVG)return!1;const n=e.type===CT.CHARACTER_TOKEN||e.type===CT.NULL_CHARACTER_TOKEN||e.type===CT.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===CT.START_TAG_TOKEN&&e.tagName!==BT.MGLYPH&&e.tagName!==BT.MALIGNMARK)&&!n||!this._isIntegrationPoint(t,UT.MATHML))&&((e.type!==CT.START_TAG_TOKEN&&!n||!this._isIntegrationPoint(t,UT.HTML))&&e.type!==CT.EOF_TOKEN)}_processToken(e){Ey[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){Ey[JT][e.type](this,e)}_processTokenInForeignContent(e){e.type===CT.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===CT.NULL_CHARACTER_TOKEN?function(e,t){t.chars=FT.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===CT.WHITESPACE_CHARACTER_TOKEN?Ny(this,e):e.type===CT.COMMENT_TOKEN?wy(this,e):e.type===CT.START_TAG_TOKEN?function(e,t){if(DT.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==UT.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===UT.MATHML?DT.adjustTokenMathMLAttrs(t):n===UT.SVG&&(DT.adjustTokenSVGTagName(t),DT.adjustTokenSVGAttrs(t)),DT.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}(this,e):e.type===CT.END_TAG_TOKEN&&function(e,t){for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===UT.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(n).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(n);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===CT.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(MT.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const r=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return DT.isIntegrationPoint(r,n,i,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,r=null;do{if(t--,r=this.activeFormattingElements.entries[t],r.type===wT.MARKER_ENTRY||this.openElements.contains(r.element)){t++;break}}while(t>0);for(let n=t;n<e;n++)r=this.activeFormattingElements.entries[n],this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=oy}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(BT.P),this.openElements.popUntilTagNamePopped(BT.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let r=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(r=this.fragmentContext));const n=this.treeAdapter.getTagName(r),i=my[n];if(i){this.insertionMode=i;break}if(!(t||n!==BT.TD&&n!==BT.TH)){this.insertionMode=ay;break}if(!t&&n===BT.HEAD){this.insertionMode=WT;break}if(n===BT.SELECT){this._resetInsertionModeForSelect(e);break}if(n===BT.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(n===BT.HTML){this.insertionMode=this.headElement?XT:QT;break}if(t){this.insertionMode=JT;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],r=this.treeAdapter.getTagName(e);if(r===BT.TEMPLATE)break;if(r===BT.TABLE)return void(this.insertionMode=cy)}this.insertionMode=sy}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===BT.TABLE||t===BT.TBODY||t===BT.TFOOT||t===BT.THEAD||t===BT.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t],n=this.treeAdapter.getTagName(r),i=this.treeAdapter.getNamespaceURI(r);if(n===BT.TEMPLATE&&i===UT.HTML){e.parent=this.treeAdapter.getTemplateContent(r);break}if(n===BT.TABLE){e.parent=this.treeAdapter.getParentNode(r),e.parent?e.beforeElement=r:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e);return HT.SPECIAL_ELEMENTS[r][t]}};function yy(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagName)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):tv(e,t),r}function vy(e,t){let r=null;for(let n=e.openElements.stackTop;n>=0;n--){const i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i)&&(r=i)}return r||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),r}function _y(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==r;o++,a=i){i=e.openElements.getCommonAncestor(a);const r=e.activeFormattingElements.getElementEntry(a),s=r&&o>=KT;!r||s?(s&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(a)):(a=by(e,r),n===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(a,n),n=a)}return n}function by(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function Ay(e,t,r){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(r);else{const n=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);n===BT.TEMPLATE&&i===UT.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Sy(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),i=r.token,o=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,r.token),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,o)}function ky(e,t){let r;for(let n=0;n<GT&&(r=yy(e,t),r);n++){const t=vy(e,r);if(!t)break;e.activeFormattingElements.bookmark=r;const n=_y(e,t,r.element),i=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(n),Ay(e,i,n),Sy(e,t,r)}}function Cy(){}function xy(e){e._err(MT.misplacedDoctype)}function wy(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function Oy(e,t){e._appendCommentNode(t,e.document)}function Ny(e,t){e._insertCharacters(t)}function Py(e){e.stopped=!0}function Ry(e,t){e._err(MT.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,HT.DOCUMENT_MODE.QUIRKS),e.insertionMode=VT,e._processToken(t)}function Iy(e,t){e._insertFakeRootElement(),e.insertionMode=QT,e._processToken(t)}function Ly(e,t){e._insertFakeElement(BT.HEAD),e.headElement=e.openElements.current,e.insertionMode=WT,e._processToken(t)}function Dy(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.BASE||r===BT.BASEFONT||r===BT.BGSOUND||r===BT.LINK||r===BT.META?(e._appendElement(t,UT.HTML),t.ackSelfClosing=!0):r===BT.TITLE?e._switchToTextParsing(t,CT.MODE.RCDATA):r===BT.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,CT.MODE.RAWTEXT):(e._insertElement(t,UT.HTML),e.insertionMode=YT):r===BT.NOFRAMES||r===BT.STYLE?e._switchToTextParsing(t,CT.MODE.RAWTEXT):r===BT.SCRIPT?e._switchToTextParsing(t,CT.MODE.SCRIPT_DATA):r===BT.TEMPLATE?(e._insertTemplate(t,UT.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=ly,e._pushTmplInsertionMode(ly)):r===BT.HEAD?e._err(MT.misplacedStartTagForHeadElement):Fy(e,t)}function My(e,t){const r=t.tagName;r===BT.HEAD?(e.openElements.pop(),e.insertionMode=XT):r===BT.BODY||r===BT.BR||r===BT.HTML?Fy(e,t):r===BT.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==BT.TEMPLATE&&e._err(MT.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(BT.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(MT.endTagWithoutMatchingOpenElement)}function Fy(e,t){e.openElements.pop(),e.insertionMode=XT,e._processToken(t)}function Hy(e,t){const r=t.type===CT.EOF_TOKEN?MT.openElementsLeftAfterEof:MT.disallowedContentInNoscriptInHead;e._err(r),e.openElements.pop(),e.insertionMode=WT,e._processToken(t)}function By(e,t){e._insertFakeElement(BT.BODY),e.insertionMode=JT,e._processToken(t)}function Uy(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function jy(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function qy(e,t){e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._insertElement(t,UT.HTML)}function zy(e,t){e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._insertElement(t,UT.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Gy(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,UT.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ky(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,UT.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function $y(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,UT.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Vy(e,t){e._appendElement(t,UT.HTML),t.ackSelfClosing=!0}function Qy(e,t){e._switchToTextParsing(t,CT.MODE.RAWTEXT)}function Wy(e,t){e.openElements.currentTagName===BT.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,UT.HTML)}function Yy(e,t){e.openElements.hasInScope(BT.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,UT.HTML)}function Xy(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,UT.HTML)}function Jy(e,t){const r=t.tagName;switch(r.length){case 1:r===BT.I||r===BT.S||r===BT.B||r===BT.U?Gy(e,t):r===BT.P?qy(e,t):r===BT.A?function(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(BT.A);r&&(ky(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,UT.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):Xy(e,t);break;case 2:r===BT.DL||r===BT.OL||r===BT.UL?qy(e,t):r===BT.H1||r===BT.H2||r===BT.H3||r===BT.H4||r===BT.H5||r===BT.H6?function(e,t){e.openElements.hasInButtonScope(BT.P)&&e._closePElement();const r=e.openElements.currentTagName;r!==BT.H1&&r!==BT.H2&&r!==BT.H3&&r!==BT.H4&&r!==BT.H5&&r!==BT.H6||e.openElements.pop(),e._insertElement(t,UT.HTML)}(e,t):r===BT.LI||r===BT.DD||r===BT.DT?function(e,t){e.framesetOk=!1;const r=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){const n=e.openElements.items[t],i=e.treeAdapter.getTagName(n);let o=null;if(r===BT.LI&&i===BT.LI?o=BT.LI:r!==BT.DD&&r!==BT.DT||i!==BT.DD&&i!==BT.DT||(o=i),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(i!==BT.ADDRESS&&i!==BT.DIV&&i!==BT.P&&e._isSpecialElement(n))break}e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._insertElement(t,UT.HTML)}(e,t):r===BT.EM||r===BT.TT?Gy(e,t):r===BT.BR?$y(e,t):r===BT.HR?function(e,t){e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._appendElement(t,UT.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t):r===BT.RB?Yy(e,t):r===BT.RT||r===BT.RP?function(e,t){e.openElements.hasInScope(BT.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(BT.RTC),e._insertElement(t,UT.HTML)}(e,t):r!==BT.TH&&r!==BT.TD&&r!==BT.TR&&Xy(e,t);break;case 3:r===BT.DIV||r===BT.DIR||r===BT.NAV?qy(e,t):r===BT.PRE?zy(e,t):r===BT.BIG?Gy(e,t):r===BT.IMG||r===BT.WBR?$y(e,t):r===BT.XMP?function(e,t){e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,CT.MODE.RAWTEXT)}(e,t):r===BT.SVG?function(e,t){e._reconstructActiveFormattingElements(),DT.adjustTokenSVGAttrs(t),DT.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,UT.SVG):e._insertElement(t,UT.SVG),t.ackSelfClosing=!0}(e,t):r===BT.RTC?Yy(e,t):r!==BT.COL&&Xy(e,t);break;case 4:r===BT.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):r===BT.BASE||r===BT.LINK||r===BT.META?Dy(e,t):r===BT.BODY?function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}(e,t):r===BT.MAIN||r===BT.MENU?qy(e,t):r===BT.FORM?function(e,t){const r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._insertElement(t,UT.HTML),r||(e.formElement=e.openElements.current))}(e,t):r===BT.CODE||r===BT.FONT?Gy(e,t):r===BT.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(BT.NOBR)&&(ky(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,UT.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):r===BT.AREA?$y(e,t):r===BT.MATH?function(e,t){e._reconstructActiveFormattingElements(),DT.adjustTokenMathMLAttrs(t),DT.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,UT.MATHML):e._insertElement(t,UT.MATHML),t.ackSelfClosing=!0}(e,t):r===BT.MENU?function(e,t){e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._insertElement(t,UT.HTML)}(e,t):r!==BT.HEAD&&Xy(e,t);break;case 5:r===BT.STYLE||r===BT.TITLE?Dy(e,t):r===BT.ASIDE?qy(e,t):r===BT.SMALL?Gy(e,t):r===BT.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==HT.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._insertElement(t,UT.HTML),e.framesetOk=!1,e.insertionMode=ey}(e,t):r===BT.EMBED?$y(e,t):r===BT.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,UT.HTML);const r=CT.getTokenAttr(t,jT.TYPE);r&&r.toLowerCase()===zT||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):r===BT.PARAM||r===BT.TRACK?Vy(e,t):r===BT.IMAGE?function(e,t){t.tagName=BT.IMG,$y(e,t)}(e,t):r!==BT.FRAME&&r!==BT.TBODY&&r!==BT.TFOOT&&r!==BT.THEAD&&Xy(e,t);break;case 6:r===BT.SCRIPT?Dy(e,t):r===BT.CENTER||r===BT.FIGURE||r===BT.FOOTER||r===BT.HEADER||r===BT.HGROUP||r===BT.DIALOG?qy(e,t):r===BT.BUTTON?function(e,t){e.openElements.hasInScope(BT.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(BT.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,UT.HTML),e.framesetOk=!1}(e,t):r===BT.STRIKE||r===BT.STRONG?Gy(e,t):r===BT.APPLET||r===BT.OBJECT?Ky(e,t):r===BT.KEYGEN?$y(e,t):r===BT.SOURCE?Vy(e,t):r===BT.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,CT.MODE.RAWTEXT)}(e,t):r===BT.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,UT.HTML),e.framesetOk=!1,e.insertionMode===ey||e.insertionMode===ry||e.insertionMode===iy||e.insertionMode===oy||e.insertionMode===ay?e.insertionMode=cy:e.insertionMode=sy}(e,t):r===BT.OPTION?Wy(e,t):Xy(e,t);break;case 7:r===BT.BGSOUND?Dy(e,t):r===BT.DETAILS||r===BT.ADDRESS||r===BT.ARTICLE||r===BT.SECTION||r===BT.SUMMARY?qy(e,t):r===BT.LISTING?zy(e,t):r===BT.MARQUEE?Ky(e,t):r===BT.NOEMBED?Qy(e,t):r!==BT.CAPTION&&Xy(e,t);break;case 8:r===BT.BASEFONT?Dy(e,t):r===BT.FRAMESET?function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,UT.HTML),e.insertionMode=hy)}(e,t):r===BT.FIELDSET?qy(e,t):r===BT.TEXTAREA?function(e,t){e._insertElement(t,UT.HTML),e.skipNextNewLine=!0,e.tokenizer.state=CT.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=ZT}(e,t):r===BT.TEMPLATE?Dy(e,t):r===BT.NOSCRIPT?e.options.scriptingEnabled?Qy(e,t):Xy(e,t):r===BT.OPTGROUP?Wy(e,t):r!==BT.COLGROUP&&Xy(e,t);break;case 9:r===BT.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._insertElement(t,UT.HTML),e.tokenizer.state=CT.MODE.PLAINTEXT}(e,t):Xy(e,t);break;case 10:r===BT.BLOCKQUOTE||r===BT.FIGCAPTION?qy(e,t):Xy(e,t);break;default:Xy(e,t)}}function Zy(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function ev(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function tv(e,t){const r=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){const n=e.openElements.items[t];if(e.treeAdapter.getTagName(n)===r){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilElementPopped(n);break}if(e._isSpecialElement(n))break}}function rv(e,t){const r=t.tagName;switch(r.length){case 1:r===BT.A||r===BT.B||r===BT.I||r===BT.S||r===BT.U?ky(e,t):r===BT.P?function(e){e.openElements.hasInButtonScope(BT.P)||e._insertFakeElement(BT.P),e._closePElement()}(e):tv(e,t);break;case 2:r===BT.DL||r===BT.UL||r===BT.OL?Zy(e,t):r===BT.LI?function(e){e.openElements.hasInListItemScope(BT.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(BT.LI),e.openElements.popUntilTagNamePopped(BT.LI))}(e):r===BT.DD||r===BT.DT?function(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}(e,t):r===BT.H1||r===BT.H2||r===BT.H3||r===BT.H4||r===BT.H5||r===BT.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):r===BT.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(BT.BR),e.openElements.pop(),e.framesetOk=!1}(e):r===BT.EM||r===BT.TT?ky(e,t):tv(e,t);break;case 3:r===BT.BIG?ky(e,t):r===BT.DIR||r===BT.DIV||r===BT.NAV||r===BT.PRE?Zy(e,t):tv(e,t);break;case 4:r===BT.BODY?function(e){e.openElements.hasInScope(BT.BODY)&&(e.insertionMode=uy)}(e):r===BT.HTML?function(e,t){e.openElements.hasInScope(BT.BODY)&&(e.insertionMode=uy,e._processToken(t))}(e,t):r===BT.FORM?function(e){const t=e.openElements.tmplCount>0,r=e.formElement;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(BT.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(BT.FORM):e.openElements.remove(r))}(e):r===BT.CODE||r===BT.FONT||r===BT.NOBR?ky(e,t):r===BT.MAIN||r===BT.MENU?Zy(e,t):tv(e,t);break;case 5:r===BT.ASIDE?Zy(e,t):r===BT.SMALL?ky(e,t):tv(e,t);break;case 6:r===BT.CENTER||r===BT.FIGURE||r===BT.FOOTER||r===BT.HEADER||r===BT.HGROUP||r===BT.DIALOG?Zy(e,t):r===BT.APPLET||r===BT.OBJECT?ev(e,t):r===BT.STRIKE||r===BT.STRONG?ky(e,t):tv(e,t);break;case 7:r===BT.ADDRESS||r===BT.ARTICLE||r===BT.DETAILS||r===BT.SECTION||r===BT.SUMMARY||r===BT.LISTING?Zy(e,t):r===BT.MARQUEE?ev(e,t):tv(e,t);break;case 8:r===BT.FIELDSET?Zy(e,t):r===BT.TEMPLATE?My(e,t):tv(e,t);break;case 10:r===BT.BLOCKQUOTE||r===BT.FIGCAPTION?Zy(e,t):tv(e,t);break;default:tv(e,t)}}function nv(e,t){e.tmplInsertionModeStackTop>-1?pv(e,t):e.stopped=!0}function iv(e,t){const r=e.openElements.currentTagName;r===BT.TABLE||r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD||r===BT.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ty,e._processToken(t)):sv(e,t)}function ov(e,t){const r=t.tagName;switch(r.length){case 2:r===BT.TD||r===BT.TH||r===BT.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(BT.TBODY),e.insertionMode=iy,e._processToken(t)}(e,t):sv(e,t);break;case 3:r===BT.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(BT.COLGROUP),e.insertionMode=ny,e._processToken(t)}(e,t):sv(e,t);break;case 4:r===BT.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,UT.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):sv(e,t);break;case 5:r===BT.TABLE?function(e,t){e.openElements.hasInTableScope(BT.TABLE)&&(e.openElements.popUntilTagNamePopped(BT.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):r===BT.STYLE?Dy(e,t):r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,UT.HTML),e.insertionMode=iy}(e,t):r===BT.INPUT?function(e,t){const r=CT.getTokenAttr(t,jT.TYPE);r&&r.toLowerCase()===zT?e._appendElement(t,UT.HTML):sv(e,t),t.ackSelfClosing=!0}(e,t):sv(e,t);break;case 6:r===BT.SCRIPT?Dy(e,t):sv(e,t);break;case 7:r===BT.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,UT.HTML),e.insertionMode=ry}(e,t):sv(e,t);break;case 8:r===BT.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,UT.HTML),e.insertionMode=ny}(e,t):r===BT.TEMPLATE?Dy(e,t):sv(e,t);break;default:sv(e,t)}}function av(e,t){const r=t.tagName;r===BT.TABLE?e.openElements.hasInTableScope(BT.TABLE)&&(e.openElements.popUntilTagNamePopped(BT.TABLE),e._resetInsertionMode()):r===BT.TEMPLATE?My(e,t):r!==BT.BODY&&r!==BT.CAPTION&&r!==BT.COL&&r!==BT.COLGROUP&&r!==BT.HTML&&r!==BT.TBODY&&r!==BT.TD&&r!==BT.TFOOT&&r!==BT.TH&&r!==BT.THEAD&&r!==BT.TR&&sv(e,t)}function sv(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=r}function cv(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)sv(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function lv(e,t){e.openElements.currentTagName===BT.COLGROUP&&(e.openElements.pop(),e.insertionMode=ey,e._processToken(t))}function uv(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.OPTION?(e.openElements.currentTagName===BT.OPTION&&e.openElements.pop(),e._insertElement(t,UT.HTML)):r===BT.OPTGROUP?(e.openElements.currentTagName===BT.OPTION&&e.openElements.pop(),e.openElements.currentTagName===BT.OPTGROUP&&e.openElements.pop(),e._insertElement(t,UT.HTML)):r===BT.INPUT||r===BT.KEYGEN||r===BT.TEXTAREA||r===BT.SELECT?e.openElements.hasInSelectScope(BT.SELECT)&&(e.openElements.popUntilTagNamePopped(BT.SELECT),e._resetInsertionMode(),r!==BT.SELECT&&e._processToken(t)):r!==BT.SCRIPT&&r!==BT.TEMPLATE||Dy(e,t)}function hv(e,t){const r=t.tagName;if(r===BT.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],r=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===BT.OPTION&&r===BT.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===BT.OPTGROUP&&e.openElements.pop()}else r===BT.OPTION?e.openElements.currentTagName===BT.OPTION&&e.openElements.pop():r===BT.SELECT&&e.openElements.hasInSelectScope(BT.SELECT)?(e.openElements.popUntilTagNamePopped(BT.SELECT),e._resetInsertionMode()):r===BT.TEMPLATE&&My(e,t)}function pv(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(BT.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function fv(e,t){e.insertionMode=JT,e._processToken(t)}function dv(e,t){e.insertionMode=JT,e._processToken(t)}var mv=Ty;class gv{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}function Ev(e,t){const r={},n={};let i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new gv(r,n,t)}function Tv(e){return e.toLowerCase()}gv.prototype.property={},gv.prototype.normal={},gv.prototype.space=null;class yv{constructor(e,t){this.property=e,this.attribute=t}}yv.prototype.space=null,yv.prototype.boolean=!1,yv.prototype.booleanish=!1,yv.prototype.overloadedBoolean=!1,yv.prototype.number=!1,yv.prototype.commaSeparated=!1,yv.prototype.spaceSeparated=!1,yv.prototype.commaOrSpaceSeparated=!1,yv.prototype.mustUseProperty=!1,yv.prototype.defined=!1;let vv=0;const _v=wv(),bv=wv(),Av=wv(),Sv=wv(),kv=wv(),Cv=wv(),xv=wv();function wv(){return 2**++vv}var Ov=Object.freeze({__proto__:null,boolean:_v,booleanish:bv,overloadedBoolean:Av,number:Sv,spaceSeparated:kv,commaSeparated:Cv,commaOrSpaceSeparated:xv});const Nv=Object.keys(Ov);class Pv extends yv{constructor(e,t,r,n){let i=-1;if(super(e,t),Rv(this,"space",n),"number"==typeof r)for(;++i<Nv.length;){const e=Nv[i];Rv(this,Nv[i],(r&Ov[e])===Ov[e])}}}function Rv(e,t,r){r&&(e[t]=r)}Pv.prototype.defined=!0;const Iv={}.hasOwnProperty;function Lv(e){const t={},r={};let n;for(n in e.properties)if(Iv.call(e.properties,n)){const i=e.properties[n],o=new Pv(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[Tv(n)]=n,r[Tv(o.attribute)]=n}return new gv(t,r,e.space)}const Dv=Lv({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Mv=Lv({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Fv(e,t){return t in e?e[t]:t}function Hv(e,t){return Fv(e,t.toLowerCase())}const Bv=Lv({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Hv,properties:{xmlns:null,xmlnsXLink:null}}),Uv=Lv({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:bv,ariaAutoComplete:null,ariaBusy:bv,ariaChecked:bv,ariaColCount:Sv,ariaColIndex:Sv,ariaColSpan:Sv,ariaControls:kv,ariaCurrent:null,ariaDescribedBy:kv,ariaDetails:null,ariaDisabled:bv,ariaDropEffect:kv,ariaErrorMessage:null,ariaExpanded:bv,ariaFlowTo:kv,ariaGrabbed:bv,ariaHasPopup:null,ariaHidden:bv,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kv,ariaLevel:Sv,ariaLive:null,ariaModal:bv,ariaMultiLine:bv,ariaMultiSelectable:bv,ariaOrientation:null,ariaOwns:kv,ariaPlaceholder:null,ariaPosInSet:Sv,ariaPressed:bv,ariaReadOnly:bv,ariaRelevant:null,ariaRequired:bv,ariaRoleDescription:kv,ariaRowCount:Sv,ariaRowIndex:Sv,ariaRowSpan:Sv,ariaSelected:bv,ariaSetSize:Sv,ariaSort:null,ariaValueMax:Sv,ariaValueMin:Sv,ariaValueNow:Sv,ariaValueText:null,role:null}}),jv=Lv({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Hv,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Cv,acceptCharset:kv,accessKey:kv,action:null,allow:null,allowFullScreen:_v,allowPaymentRequest:_v,allowUserMedia:_v,alt:null,as:null,async:_v,autoCapitalize:null,autoComplete:kv,autoFocus:_v,autoPlay:_v,capture:_v,charSet:null,checked:_v,cite:null,className:kv,cols:Sv,colSpan:null,content:null,contentEditable:bv,controls:_v,controlsList:kv,coords:Sv|Cv,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_v,defer:_v,dir:null,dirName:null,disabled:_v,download:Av,draggable:bv,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_v,formTarget:null,headers:kv,height:Sv,hidden:_v,high:Sv,href:null,hrefLang:null,htmlFor:kv,httpEquiv:kv,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:_v,itemId:null,itemProp:kv,itemRef:kv,itemScope:_v,itemType:kv,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_v,low:Sv,manifest:null,max:null,maxLength:Sv,media:null,method:null,min:null,minLength:Sv,multiple:_v,muted:_v,name:null,nonce:null,noModule:_v,noValidate:_v,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:_v,optimum:Sv,pattern:null,ping:kv,placeholder:null,playsInline:_v,poster:null,preload:null,readOnly:_v,referrerPolicy:null,rel:kv,required:_v,reversed:_v,rows:Sv,rowSpan:Sv,sandbox:kv,scope:null,scoped:_v,seamless:_v,selected:_v,shape:null,size:Sv,sizes:null,slot:null,span:Sv,spellCheck:bv,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Sv,step:null,style:null,tabIndex:Sv,target:null,title:null,translate:null,type:null,typeMustMatch:_v,useMap:null,value:bv,width:Sv,wrap:null,align:null,aLink:null,archive:kv,axis:null,background:null,bgColor:null,border:Sv,borderColor:null,bottomMargin:Sv,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_v,declare:_v,event:null,face:null,frame:null,frameBorder:null,hSpace:Sv,leftMargin:Sv,link:null,longDesc:null,lowSrc:null,marginHeight:Sv,marginWidth:Sv,noResize:_v,noHref:_v,noShade:_v,noWrap:_v,object:null,profile:null,prompt:null,rev:null,rightMargin:Sv,rules:null,scheme:null,scrolling:bv,standby:null,summary:null,text:null,topMargin:Sv,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Sv,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_v,disableRemotePlayback:_v,prefix:null,property:null,results:Sv,security:null,unselectable:null}}),qv=Lv({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Fv,properties:{about:xv,accentHeight:Sv,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Sv,amplitude:Sv,arabicForm:null,ascent:Sv,attributeName:null,attributeType:null,azimuth:Sv,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Sv,by:null,calcMode:null,capHeight:Sv,className:kv,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Sv,diffuseConstant:Sv,direction:null,display:null,dur:null,divisor:Sv,dominantBaseline:null,download:_v,dx:null,dy:null,edgeMode:null,editable:null,elevation:Sv,enableBackground:null,end:null,event:null,exponent:Sv,externalResourcesRequired:null,fill:null,fillOpacity:Sv,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Cv,g2:Cv,glyphName:Cv,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Sv,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Sv,horizOriginX:Sv,horizOriginY:Sv,id:null,ideographic:Sv,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Sv,k:Sv,k1:Sv,k2:Sv,k3:Sv,k4:Sv,kernelMatrix:xv,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Sv,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Sv,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Sv,overlineThickness:Sv,paintOrder:null,panose1:null,path:null,pathLength:Sv,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:kv,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Sv,pointsAtY:Sv,pointsAtZ:Sv,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xv,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xv,rev:xv,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xv,requiredFeatures:xv,requiredFonts:xv,requiredFormats:xv,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Sv,specularExponent:Sv,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Sv,strikethroughThickness:Sv,string:null,stroke:null,strokeDashArray:xv,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Sv,strokeOpacity:Sv,strokeWidth:null,style:null,surfaceScale:Sv,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xv,tabIndex:Sv,tableValues:null,target:null,targetX:Sv,targetY:Sv,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xv,to:null,transform:null,u1:null,u2:null,underlinePosition:Sv,underlineThickness:Sv,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Sv,values:null,vAlphabetic:Sv,vMathematical:Sv,vectorEffect:null,vHanging:Sv,vIdeographic:Sv,version:null,vertAdvY:Sv,vertOriginX:Sv,vertOriginY:Sv,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Sv,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),zv=/^data[-\w.:]+$/i,Gv=/-[a-z]/g,Kv=/[A-Z]/g;function $v(e,t){const r=Tv(t);let n=t,i=yv;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&"data"===r.slice(0,4)&&zv.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Gv,Qv);n="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Gv.test(e)){let r=e.replace(Kv,Vv);"-"!==r.charAt(0)&&(r="-"+r),t="data"+r}}i=Pv}return new i(n,t)}function Vv(e){return"-"+e.toLowerCase()}function Qv(e){return e.charAt(1).toUpperCase()}const Wv=Ev([Mv,Dv,Bv,Uv,jv],"html"),Yv=Ev([Mv,Dv,Bv,Uv,qv],"svg"),Xv=/[#.]/g;function Jv(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Zv(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,o=!1;for(;!o;){-1===n&&(n=r.length,o=!0);const e=r.slice(i,n).trim();!e&&o||t.push(e),i=n+1,n=r.indexOf(",",i)}return t}const e_=new Set(["menu","submit","reset","button"]),t_={}.hasOwnProperty;function r_(e,t,r){const n=r&&function(e){const t={};let r=-1;for(;++r<e.length;)t[e[r].toLowerCase()]=e[r];return t}(r);return function(r,i,...o){let a,s=-1;if(null==r)a={type:"root",children:[]},o.unshift(i);else if(a=function(e,t){const r=e||"",n={};let i,o,a=0;for(;a<r.length;){Xv.lastIndex=a;const e=Xv.exec(r),t=r.slice(a,e?e.index:r.length);t&&(i?"#"===i?n.id=t:Array.isArray(n.className)?n.className.push(t):n.className=[t]:o=t,a+=t.length),e&&(i=e[0],a++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}(r,t),a.tagName=a.tagName.toLowerCase(),n&&t_.call(n,a.tagName)&&(a.tagName=n[a.tagName]),function(e,t){if(null==e||"object"!=typeof e||Array.isArray(e))return!1;if("input"===t||!e.type||"string"!=typeof e.type)return!0;if("children"in e&&Array.isArray(e.children))return!1;if("button"===t)return e_.has(e.type.toLowerCase());return!("value"in e)}(i,a.tagName)){let t;for(t in i)t_.call(i,t)&&n_(e,a.properties,t,i[t])}else o.unshift(i);for(;++s<o.length;)i_(a.children,o[s]);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function n_(e,t,r,n){const i=$v(e,r);let o,a=-1;if(null!=n){if("number"==typeof n){if(Number.isNaN(n))return;o=n}else o="boolean"==typeof n?n:"string"==typeof n?i.spaceSeparated?Jv(n):i.commaSeparated?Zv(n):i.commaOrSpaceSeparated?Jv(Zv(n).join(" ")):o_(i,i.property,n):Array.isArray(n)?n.concat():"style"===i.property?function(e){const t=[];let r;for(r in e)t_.call(e,r)&&t.push([r,e[r]].join(": "));return t.join("; ")}(n):String(n);if(Array.isArray(o)){const e=[];for(;++a<o.length;)e[a]=o_(i,i.property,o[a]);o=e}"className"===i.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function i_(e,t){let r=-1;if(null==t);else if("string"==typeof t||"number"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++r<t.length;)i_(e,t[r]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?i_(e,t.children):e.push(t)}}function o_(e,t,r){if("string"==typeof r){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(""===r||Tv(r)===Tv(t)))return!0}return r}const a_=r_(Wv,"div"),s_=r_(Yv,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);const c_={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},l_={}.hasOwnProperty,u_=Object.prototype;function h_(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},f_(e,n,r),r}case"#document":case"#document-fragment":{const n=t,i="mode"in n&&("quirks"===n.mode||"limited-quirks"===n.mode);if(r={type:"root",children:p_(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const t=String(e.file),n=function(e){const t=String(e),r=[],n=/\r?\n|\r/g;for(;n.test(t);)r.push(n.lastIndex);return r.push(t.length+1),{toPoint:function(e){let t=-1;if("number"==typeof e&&e>-1&&e<r[r.length-1])for(;++t<r.length;)if(r[t]>e)return{line:t+1,column:e-(t>0?r[t-1]:0)+1,offset:e};return{line:void 0,column:void 0,offset:void 0}},toOffset:function(e){const t=e&&e.line,n=e&&e.column;if("number"==typeof t&&"number"==typeof n&&!Number.isNaN(t)&&!Number.isNaN(n)&&t-1 in r){const e=(r[t-2]||0)+n-1||0;if(e>-1&&e<r[r.length-1])return e}return-1}}}(t),i=n.toPoint(0),o=n.toPoint(t.length);r.position={start:i,end:o}}return r}case"#documentType":return r={type:"doctype"},f_(e,t,r),r;case"#text":{const n=t;return r={type:"text",value:n.value},f_(e,n,r),r}default:return r=function(e,t){const r=e.schema;e.schema=t.namespaceURI===c_.svg?Yv:Wv;let n=-1;const i={};for(;++n<t.attrs.length;){const e=t.attrs[n],r=(e.prefix?e.prefix+":":"")+e.name;l_.call(u_,r)||(i[r]=e.value)}const o="svg"===e.schema.space?s_:a_,a=o(t.tagName,i,p_(e,t.childNodes));if(f_(e,t,a),"template"===a.tagName){const r=t,n=r.sourceCodeLocation,i=n&&n.startTag&&m_(n.startTag),o=n&&n.endTag&&m_(n.endTag),s=h_(e,r.content);i&&o&&e.file&&(s.position={start:i.end,end:o.start}),a.content=s}return e.schema=r,a}(e,t),r}}function p_(e,t){let r=-1;const n=[];for(;++r<t.length;)n[r]=h_(e,t[r]);return n}function f_(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=d_(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function d_(e,t,r){const n=m_(r);if("element"===t.type){const i=t.children[t.children.length-1];if(n&&!r.endTag&&i&&i.position&&i.position.end&&(n.end=Object.assign({},i.position.end)),e.verbose){const n={};let i;if(r.attrs)for(i in r.attrs)l_.call(r.attrs,i)&&(n[$v(e.schema,i).property]=m_(r.attrs[i]));t.data={position:{opening:m_(r.startTag),closing:r.endTag?m_(r.endTag):null,properties:n}}}}return n}function m_(e){const t=g_({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=g_({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function g_(e){return e.line&&e.column?e:void 0}const E_={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `\x3c!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `\x3c!--`. Expected `--\x3e`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},T_="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",y_={2:!0,1:!1,0:null};const v_=function(e,t,r,n,i){const o=__(t);if(null!=r&&("number"!=typeof r||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index for child node");if(!(null==n||n.type&&n.children))throw new Error("Expected parent node");if(!e||!e.type||"string"!=typeof e.type)return!1;if(null==n!=(null==r))throw new Error("Expected both parent and index");return o.call(i,e,r,n)},__=function(e){if(null==e)return A_;if("string"==typeof e)return function(e){return t;function t(t){return A_(t)&&t.tagName===e}}(e);if("object"==typeof e)return function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=__(e[r]);return b_(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].call(this,...e))return!0;return!1}}(e);if("function"==typeof e)return b_(e);throw new Error("Expected function, string, or array as test")};function b_(e){return function(t,...r){return A_(t)&&Boolean(e.call(this,t,...r))}}function A_(e){return Boolean(e&&"object"==typeof e&&"element"===e.type&&"string"==typeof e.tagName)}const S_=__(["audio","canvas","embed","iframe","img","math","object","picture","svg","video"]);const k_=["address","article","aside","blockquote","body","br","caption","center","col","colgroup","dd","dialog","dir","div","dl","dt","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","legend","li","li","listing","main","menu","nav","ol","optgroup","option","p","plaintext","pre","section","summary","table","tbody","td","td","tfoot","th","th","thead","tr","ul","wbr","xmp"],C_=["button","input","select","textarea"],x_=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"],w_=is(["doctype","comment"]);function O_(e={}){const t=function(e){return t;function t(t){return String(t).replace(/[\t\n\v\f\r ]+/g,e)}}(e.newlines?F_:H_);return e=>{N_(e,{collapse:t,whitespace:"normal"})}}function N_(e,t){if("children"in e){const r=Object.assign({},t);return("root"===e.type||L_(e))&&(r.before=!0,r.after=!0),r.whitespace=function(e,t){if("tagName"in e&&e.properties)switch(e.tagName){case"listing":case"plaintext":case"script":case"style":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return e.properties.wrap?"pre-wrap":"pre";case"td":case"th":return e.properties.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}return t.whitespace}(e,t),function(e,t){let r=t.before;const n=t.after,i=e.children;let o=i.length,a=-1;for(;++a<o;){const e=N_(i[a],Object.assign({},t,{before:r,after:P_(i,a,n)}));e.remove?(i.splice(a,1),a--,o--):e.ignore||(r=e.stripAtStart),I_(i[a])&&(r=!1)}return{remove:!1,ignore:!1,stripAtStart:Boolean(r||n)}}(e,r)}if("text"===e.type){if("normal"===t.whitespace)return function(e,t){const r=t.collapse(e.value),n={remove:!1,ignore:!1,stripAtStart:!1};let i=0,o=r.length;t.before&&M_(r.charAt(0))&&i++;i!==o&&M_(r.charAt(o-1))&&(t.after?o--:n.stripAtStart=!0);i===o?n.remove=!0:e.value=r.slice(i,o);return n}(e,t);"nowrap"===t.whitespace&&(e.value=t.collapse(e.value))}return{remove:!1,ignore:w_(e),stripAtStart:!1}}function P_(e,t,r){for(;++t<e.length;){const r=e[t];let n=R_(r);if(void 0===n&&"children"in r&&!D_(r)&&(n=P_(r.children,-1)),"boolean"==typeof n)return n}return r}function R_(e){if("element"===e.type){if(I_(e))return!1;if(L_(e))return!0}else if("text"===e.type){if(!function(e){const t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}(e))return!1}else if(!w_(e))return!1}function I_(e){return S_(e)||v_(e,C_)}function L_(e){return v_(e,k_)}function D_(e){return Boolean("properties"in e&&e.properties&&e.properties.hidden)||w_(e)||v_(e,x_)}function M_(e){return" "===e||"\n"===e}function F_(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function H_(){return" "}function B_(e,t){const r=t.children||[],n=[];let i=-1;for(;++i<r.length;){const o=q_(e,r[i],t);Array.isArray(o)?n.push(...o):o&&n.push(o)}let o=0,a=n.length;for(;o<a&&"break"===n[o].type;)o++;for(;a>o&&"break"===n[a-1].type;)a--;return 0===o&&a===n.length?n:n.slice(o,a)}const U_={}.hasOwnProperty;function j_(e,t){return e.wrapText?t:t.replace(/\r?\n|\r/g," ")}function q_(e,t,r){let n;if("element"===t.type){if(t.properties&&"ignore"===t.properties.dataMdast)return;U_.call(e.handlers,t.tagName)&&(n=e.handlers[t.tagName])}else U_.call(e.handlers,t.type)&&(n=e.handlers[t.type]);return"function"==typeof n?n(e,t,r):function(e,t){if("string"==typeof t.value)return e(t,"text",j_(e,t.value));return B_(e,t)}(e,t)}const z_={}.hasOwnProperty;function G_(e,t){const r="string"==typeof t&&function(e){return Boolean(e&&"object"==typeof e&&"type"in e)}(e)&&"element"===e.type&&e.properties&&z_.call(e.properties,t)&&e.properties[t];return null!=r&&!1!==r}const K_=new Set(["pingback","prefetch","stylesheet"]);const $_=__(["a","abbr","area","b","bdi","bdo","br","button","cite","code","data","datalist","del","dfn","em","i","input","ins","kbd","keygen","label","map","mark","meter","noscript","output","progress","q","ruby","s","samp","script","select","small","span","strong","sub","sup","template","textarea","time","u","var","wbr"]),V_=__("meta");function Q_(e){return Boolean(function(e){return e&&"object"==typeof e&&"type"in e}(e)&&("text"===e.type||$_(e)||S_(e)||function(e){if(!v_(e,"link"))return!1;if(G_(e,"itemProp"))return!0;const t=(e.properties||{}).rel||[];let r=-1;if(!Array.isArray(t)||0===t.length)return!1;for(;++r<t.length;)if(!K_.has(String(t[r])))return!1;return!0}(e)||V_(e)&&G_(e,"itemProp")))}const W_=is(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function Y_(e){return J_(e,(function(e){const t=e[0];if(1===e.length&&"text"===t.type&&(" "===t.value||"\n"===t.value))return[];return{type:"paragraph",children:e}}))}function X_(e){let t,r=-1;for(;++r<e.length;)if(t=e[r],!eb(t)||"children"in t&&X_(t.children))return!0;return!1}function J_(e,t,r){const n=r||tb,i=function(e){let t,r=[],n=-1;for(;++n<e.length;)t=e[n],"delete"!==t.type&&"link"!==t.type||!X_(t.children)?r.push(t):r=r.concat(Z_(t));return r}(e);let o,a,s=[],c=-1;for(;++c<i.length;)a=i[c],eb(a)?(o||(o=[]),o.push(a)):(o&&(s=s.concat(t(o)),o=void 0),s=s.concat(n(a)));return o&&(s=s.concat(t(o))),s}function Z_(e){return J_(e.children,(function(t){const{children:r,...n}=e;return{...ei(!0,{},n),children:t}}),(function(t){if("children"in t&&"children"in e){const{children:r,...n}=e;return{...t,children:[{...ei(!0,{},n),children:t.children}]}}return{...t}}))}function eb(e){return e.data&&e.data.hName?Q_({type:"element",tagName:e.data.hName,properties:{},children:[]}):W_(e)}function tb(e){return e}function rb(e,t){return Y_(B_(e,t))}function nb(e,t){return null==t?"":e.frozenBaseUrl?String(new URL(t,e.frozenBaseUrl)):t}const ib=function(e,t,r){const n=is(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t];return null},ob=/\n/g,ab=/[\t ]+/g,sb=__("br"),cb=__("p"),lb=__(["th","td"]),ub=__("tr"),hb=__(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),pb=__(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function fb(e,t={}){const r="children"in e?e.children:[],n=pb(e),i=Eb(e,{whitespace:t.whitespace||"normal",breakBefore:!1,breakAfter:!1}),o=[];"text"!==e.type&&"comment"!==e.type||o.push(...mb(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let a=-1;for(;++a<r.length;)o.push(...db(r[a],e,{whitespace:i,breakBefore:a?void 0:n,breakAfter:a<r.length-1?sb(r[a+1]):n}));const s=[];let c;for(a=-1;++a<o.length;){const e=o[a];"number"==typeof e?void 0!==c&&e>c&&(c=e):e&&(void 0!==c&&c>-1&&s.push("\n".repeat(c)||" "),c=-1,s.push(e))}return s.join("")}function db(e,t,r){return"element"===e.type?function(e,t,r){const n=Eb(e,r),i=e.children||[];let o,a,s=-1,c=[];if(hb(e))return c;sb(e)||ub(e)&&ib(t,e,ub)?a="\n":cb(e)?(o=2,a=2):pb(e)&&(o=1,a=1);for(;++s<i.length;)c=c.concat(db(i[s],e,{whitespace:n,breakBefore:s?void 0:o,breakAfter:s<i.length-1?sb(i[s+1]):a}));lb(e)&&ib(t,e,lb)&&c.push("\t");o&&c.unshift(o);a&&c.push(a);return c}(e,t,r):"text"===e.type?"normal"===r.whitespace?mb(e,r):function(e){return[String(e.value)]}(e):[]}function mb(e,t){const r=String(e.value),n=[],i=[];let o=0;for(;o<=r.length;){ob.lastIndex=o;const e=ob.exec(r),i=e&&"index"in e?e.index:r.length;n.push(gb(r.slice(o,i).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==o||t.breakBefore,i!==r.length||t.breakAfter)),o=i+1}let a,s=-1;for(;++s<n.length;)8203===n[s].charCodeAt(n[s].length-1)||s<n.length-1&&8203===n[s+1].charCodeAt(0)?(i.push(n[s]),a=void 0):n[s]?("number"==typeof a&&i.push(a),i.push(n[s]),a=0):0!==s&&s!==n.length-1||i.push(0);return i}function gb(e,t,r){const n=[];let i,o=0;for(;o<e.length;){ab.lastIndex=o;const r=ab.exec(e);i=r?r.index:e.length,o||i||!r||t||n.push(""),o!==i&&n.push(e.slice(o,i)),o=r?i+r[0].length:i}return o===i||r||n.push(""),n.join(" ")}function Eb(e,t){if("element"===e.type){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}const Tb="language-",yb=__("pre"),vb=__("code");function _b(e,t){const r=t.children;let n,i,o=-1;if(yb(t))for(;++o<r.length;){const e=r[o];if(vb(e)&&e.properties&&e.properties.className&&Array.isArray(e.properties.className)){n=e.properties.className;break}}if(n)for(o=-1;++o<n.length;)if(String(n[o]).slice(0,Tb.length)===Tb){i=String(n[o]).slice(Tb.length);break}return e(t,"code",{lang:i||null,meta:null},function(e){const t=String(e);let r=t.length;for(;r>0;){const e=t.codePointAt(r-1);if(void 0===e||10!==e&&13!==e)break;r--}return t.slice(0,r)}(j_(e,fb(t))))}function bb(e,t){return e(t,"delete",B_(e,t))}function Ab(e){let t=-1;if(e.length>1)for(;++t<e.length;)if(e[t].spread)return!0;return!1}function Sb(e,t){const r=B_(e,t);let n=-1;for(;++n<r.length;){const e=r[n];"listItem"!==e.type&&(r[n]={type:"listItem",spread:!1,checked:null,children:[e]})}return r}const kb=__("div"),Cb=__("dt"),xb=__("dd");function wb(e,t){const r=Sb(e,{type:"element",tagName:"x",children:t});return 0===r.length?[]:1===r.length?r[0].children:[{type:"list",ordered:!1,start:null,spread:Ab(r),children:r}]}function Ob(e,t){return e(t,"emphasis",B_(e,t))}function Nb(e,t){const r=Number(t.tagName.charAt(1))||1,n=e.wrapText;e.wrapText=!1;const i=e(t,"heading",{depth:r},B_(e,t));return e.wrapText=n,i}function Pb(e,t){const r=t.properties;return e(t,"image",{url:nb(e,String(r.src||"")||null),title:r.title||null,alt:r.alt||""})}function Rb(e,t){return e(t,"inlineCode",j_(e,fb(t)))}const Ib=__("option");function Lb(e,t,r){const n=r||t.properties;let i=Db(t);const o=Math.min(Number.parseInt(String(n.size),10),0)||(n.multiple?4:1);let a=-1;const s=[],c=[];for(;++a<i.length;)G_(i[a],"selected")&&s.push(i[a]);for(i=(s.length>0?s:i).slice(0,o),a=-1;++a<i.length;){const t=i[a],r=j_(e,fb(t)),n=t.properties,o=r||String(n.label||""),s=String(n.value||"")||r;c.push([s,o===s?null:o])}return c}function Db(e){const t=e.children;let r,n=-1,i=[];for(;++n<t.length;)r=t[n],Array.isArray(r.children)&&(i=i.concat(Db(r))),Ib(r)&&!G_(r,"disabled")&&i.push(r);return i}const Mb=__("datalist");const Fb=__("p"),Hb=__("input");function Bb(e,t){const r=t.children[0];let n,i,o=null;Fb(r)&&(n=r.children[0],Hb(n)&&n.properties&&("checkbox"===n.properties.type||"radio"===n.properties.type)&&(o=Boolean(n.properties.checked),i={...t,children:[{...r,children:r.children.slice(1)},...t.children.slice(1)]}));const a=rb(e,i||t);return e(t,"listItem",{spread:a.length>1,checked:o},a)}const Ub=__("ol");function jb(e,t){const r=Ub(t),n=Sb(e,t);let i=null;return r&&(i=G_(t,"start")?Number.parseInt(String(t.properties.start),10):1),e(t,"list",{ordered:r,start:i,spread:Ab(n)},n)}const qb=__("source"),zb=__("video");function Gb(e,t){let r=B_(e,t);const n=t.properties,i=zb(t)&&String(n.poster||"");let o,a=String(n.src||""),s=-1,c=!1;if(fc({type:"root",children:r},"link",(function(){return c=!0,ls})),c||X_(r))return r;for(;!a&&++s<t.children.length;)o=t.children[s],qb(o)&&(a=String(o.properties.src||""));return i&&(r=[{type:"image",title:null,url:nb(e,i),alt:Si({children:r})}]),{type:"link",title:t.properties.title||null,url:nb(e,a),children:r}}function Kb(e,t){const r=B_(e,t);if(r.length>0)return e(t,"paragraph",r)}function $b(e,t){return e(t,"strong",B_(e,t))}function Vb(e,t){const r=e.wrapText;e.wrapText=!1;const n=e(t,"tableCell",B_(e,t));if(t.properties&&(t.properties.rowSpan||t.properties.colSpan)){const e=n.data||(n.data={});t.properties.rowSpan&&(e.rowSpan=t.properties.rowSpan),t.properties.colSpan&&(e.colSpan=t.properties.colSpan)}return e.wrapText=r,n}const Qb=__("thead"),Wb=__("tr"),Yb=__(["th","td"]);function Xb(e){const t=[];let r,n,i=-1;for(;++i<e.length;)r=e[i],"tableCell"===r.type?(n&&(r.children.unshift(...n),n=void 0),t.push(r)):(n||(n=[]),n.push(r));return n&&(r=t[t.length-1],r||(r={type:"tableCell",children:[]},t.push(r)),r.children.push(...n)),t}const Jb={root:function(e,t){let r=B_(e,t);return(e.document||X_(r))&&(r=Y_(r)),e(t,"root",r)},text:function(e,t){return e(t,"text",j_(e,t.value))},comment:function(e,t){return e(t,"html","\x3c!--"+j_(e,t.value)+"--\x3e")},doctype:Zb,applet:Zb,area:Zb,basefont:Zb,bgsound:Zb,caption:Zb,col:Zb,colgroup:Zb,command:Zb,content:Zb,datalist:Zb,dialog:Zb,element:Zb,embed:Zb,frame:Zb,frameset:Zb,isindex:Zb,keygen:Zb,link:Zb,math:Zb,menu:Zb,menuitem:Zb,meta:Zb,nextid:Zb,noembed:Zb,noframes:Zb,optgroup:Zb,option:Zb,param:Zb,script:Zb,shadow:Zb,source:Zb,spacer:Zb,style:Zb,svg:Zb,template:Zb,title:Zb,track:Zb,abbr:B_,acronym:B_,bdi:B_,bdo:B_,big:B_,blink:B_,button:B_,canvas:B_,cite:B_,data:B_,details:B_,dfn:B_,font:B_,ins:B_,label:B_,map:B_,marquee:B_,meter:B_,nobr:B_,noscript:B_,object:B_,output:B_,progress:B_,rb:B_,rbc:B_,rp:B_,rt:B_,rtc:B_,ruby:B_,slot:B_,small:B_,span:B_,sup:B_,sub:B_,tbody:B_,tfoot:B_,thead:B_,time:B_,address:rb,article:rb,aside:rb,body:rb,center:rb,div:rb,fieldset:rb,figcaption:rb,figure:rb,form:rb,footer:rb,header:rb,hgroup:rb,html:rb,legend:rb,main:rb,multicol:rb,nav:rb,picture:rb,section:rb,a:function(e,t){const r=t.properties;return e(t,"link",{title:r.title||null,url:nb(e,String(r.href||"")||null)},B_(e,t))},audio:Gb,b:$b,base:function(e,t){e.baseFound||(e.frozenBaseUrl=String(t.properties&&t.properties.href||"")||null,e.baseFound=!0)},blockquote:function(e,t){return e(t,"blockquote",rb(e,t))},br:function(e,t){return e.wrapText?e(t,"break"):e(t,"text"," ")},code:Rb,dir:jb,dl:function(e,t){const r=t.children;let n=-1,i=[];const o=[];let a,s,c={titles:[],definitions:[]};for(;++n<r.length;)a=r[n],i=i.concat(kb(a)?a.children:a);for(n=-1;++n<i.length;)a=i[n],Cb(a)?(xb(i[n-1])&&(o.push(c),c={titles:[],definitions:[]}),c.titles.push(a)):c.definitions.push(a);o.push(c),n=-1;const l=[];for(;++n<o.length;)s=[...wb(e,o[n].titles),...wb(e,o[n].definitions)],s.length>0&&l.push({type:"listItem",spread:s.length>1,checked:null,children:s});if(l.length>0)return e(t,"list",{ordered:!1,start:null,spread:Ab(l)},l)},dt:Bb,dd:Bb,del:bb,em:Ob,h1:Nb,h2:Nb,h3:Nb,h4:Nb,h5:Nb,h6:Nb,hr:function(e,t){return e(t,"thematicBreak")},i:Ob,iframe:function(e,t){const r=t.properties,n=String(r.src||""),i=String(r.title||"");if(n&&i)return{type:"link",title:null,url:nb(e,n),children:[{type:"text",value:j_(e,i)}]}},img:Pb,image:Pb,input:function(e,t){const r=t.properties;let n=String(r.value||r.placeholder||"");const i=[],o=[];let a,s=[],c=-1;if(!r.disabled&&"hidden"!==r.type&&"file"!==r.type){if("checkbox"===r.type||"radio"===r.type)return e(t,"text",j_(e,e[r.checked?"checked":"unchecked"]));if("image"===r.type)return r.alt||n?e(t,"image",{url:nb(e,String(r.src||"")||null),title:j_(e,String(r.title||""))||null,alt:j_(e,String(r.alt||n))}):[];if(n?s=[[n,null]]:"password"!==r.type&&"file"!==r.type&&"submit"!==r.type&&"reset"!==r.type&&"button"!==r.type&&r.list&&(a=String(r.list).toUpperCase(),U_.call(e.nodeById,a)&&Mb(e.nodeById[a])&&(s=Lb(e,e.nodeById[a],r))),0!==s.length){if("password"===r.type&&(s[0]=["•".repeat(s[0][0].length),null]),"url"===r.type||"email"===r.type){for(;++c<s.length;)n=nb(e,s[c][0]),i.push(e(t,"link",{title:null,url:j_(e,"email"===r.type?"mailto:"+n:n)},[{type:"text",value:j_(e,s[c][1]||n)}])),c!==s.length-1&&i.push({type:"text",value:", "});return i}for(;++c<s.length;)o.push(s[c][1]?s[c][1]+" ("+s[c][0]+")":s[c][0]);return e(t,"text",j_(e,o.join(", ")))}}},kbd:Rb,li:Bb,listing:_b,mark:Ob,ol:jb,p:Kb,plaintext:_b,pre:_b,q:function(e,t){const r=e.quotes[e.qNesting%e.quotes.length];e.qNesting++;const n=B_(e,t);return e.qNesting--,n.unshift({type:"text",value:r.charAt(0)}),n.push({type:"text",value:r.length>1?r.charAt(1):r}),n},s:bb,samp:Rb,select:function(e,t){const r=Lb(e,t);let n=-1;const i=[];let o;for(;++n<r.length;)o=r[n],i.push(o[1]?o[1]+" ("+o[0]+")":o[0]);if(i.length>0)return e(t,"text",j_(e,i.join(", ")))},strike:bb,strong:$b,summary:Kb,table:function(e,t){if(e.inTable)return e(t,"text",j_(e,fb(t)));e.inTable=!0;const{headless:r,align:n}=function(e){let t=!0,r=0,n=0;const i=[null];return fc(e,"element",(o=>{if("table"===o.tagName&&e!==o)return us;Yb(o)&&o.properties?(i[n]||(i[n]=String(o.properties.align||"")||null),t&&r<2&&"th"===o.tagName&&(t=!1),n++):Qb(o)?t=!1:Wb(o)&&(r++,n=0)})),{align:i,headless:t}}(t),i=function(e,t){let r=-1;const n=[];let i;t&&n.push({type:"tableRow",children:[]});for(;++r<e.length;){const t=e[r];"tableRow"===t.type?(i&&(t.children.unshift(...i),i=void 0),n.push(t)):(i||(i=[]),i.push(t))}i&&n[n.length-1].children.push(...i);r=-1;for(;++r<n.length;)n[r].children=Xb(n[r].children);return n}(B_(e,t),r);let o=1,a=-1;for(;++a<i.length;){const e=i[a].children;let t=-1;for(;++t<e.length;){const r=e[t];if(r.data){const e=Number.parseInt(String(r.data.colSpan),10)||1,n=Number.parseInt(String(r.data.rowSpan),10)||1;if(e>1||n>1){let r=a-1;for(;++r<a+n;){let n=t-1;for(;++n<t+e&&i[r];){const e=[];r===a&&n===t||e.push({type:"tableCell",children:[]}),i[r].children.splice(n,0,...e)}}}"colSpan"in r.data&&delete r.data.colSpan,"rowSpan"in r.data&&delete r.data.rowSpan,0===Object.keys(r.data).length&&delete r.data}}e.length>o&&(o=e.length)}for(a=-1;++a<i.length;){const e=i[a].children;let t=e.length-1;for(;++t<o;)e.push({type:"tableCell",children:[]})}let s=n.length-1;for(;++s<o;)n.push(null);return e.inTable=!1,e(t,"table",{align:n},i)},td:Vb,textarea:function(e,t){return e(t,"text",j_(e,fb(t)))},th:Vb,tr:function(e,t){return e(t,"tableRow",B_(e,t))},tt:Rb,u:Ob,ul:jb,var:Rb,video:Gb,wbr:function(e,t){return e(t,"text","​")},xmp:_b};function Zb(){}const eA=is(["heading","paragraph","root"]);function tA(e,t={}){const r={};let n;const i=Object.assign(((e,t,r,n)=>{let i;"string"==typeof r||Array.isArray(r)?(n=r,i={}):i=r;const o={type:t,...i};return"string"==typeof n?o.value=n:n&&(o.children=n),e.position&&(o.position=e.position),o}),{nodeById:r,baseFound:!1,inTable:!1,wrapText:!0,frozenBaseUrl:null,qNesting:0,handlers:t.handlers?{...Jb,...t.handlers}:Jb,document:t.document,checked:t.checked||"[x]",unchecked:t.unchecked||"[ ]",quotes:t.quotes||['"']});fc(e,"element",(e=>{const t=e.properties&&"id"in e.properties&&String(e.properties.id).toUpperCase();t&&!U_.call(r,t)&&(r[t]=e)})),O_({newlines:!0===t.newlines})(e);const o=q_(i,e,void 0);return n=o?Array.isArray(o)?{type:"root",children:o}:o:{type:"root",children:[]},fc(n,"text",(function(e,t,r){if(null===t||!r)return;const n=r.children[t-1];if(n&&n.type===e.type)return n.value+=e.value,r.children.splice(t,1),n.position&&e.position&&(n.position.end=e.position.end),t-1;e.value=e.value.replace(/[\t ]*(\r?\n|\r)[\t ]*/,"$1"),r&&eA(r)&&(t||(e.value=e.value.replace(/^[\t ]+/,"")),t===r.children.length-1&&(e.value=e.value.replace(/[\t ]+$/,"")));if(!e.value)return r.children.splice(t,1),t})),n}var rA=function(e,t){let r,n;return"function"==typeof e?(n=e,r=t||{}):r=e||{},void 0!==r.document&&null!==r.document||(r=Object.assign({},r,{document:!0})),n?function(e,t){return(r,n,i)=>{e.run(tA(r,t),n,(e=>{i(e)}))}}(n,r):function(e={}){return t=>tA(t,e)}(r)};function nA(e,t){let r,n=-1;if(t.extensions)for(;++n<t.extensions.length;)nA(e,t.extensions[n]);for(r in t)"extensions"===r||("unsafe"===r||"join"===r?e[r]=[...e[r]||[],...t[r]||[]]:"handlers"===r?e[r]=Object.assign(e[r],t[r]||{}):e.options[r]=t[r]);return e}function iA(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if("\n"===r.unsafe[i].character&&Ns(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return"\\\n"}function oA(e,t){return Boolean(!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function aA(e,t,r){return(r?"":" ")+e}function sA(e,t,r,n){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(r),o=r.enter("emphasis"),a=r.createTracker(n);let s=a.move(i);return s+=a.move(r.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}function cA(e){return e.value||""}function lA(e,t,r,n){const i=e.referenceType,o=r.enter("imageReference");let a=r.enter("label");const s=r.createTracker(n);let c=s.move("![");const l=r.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const u=r.stack;r.stack=[],a=r.enter("reference");const h=r.safe(r.associationId(e),{before:c,after:"]",...s.current()});return a(),r.stack=u,o(),"full"!==i&&l&&l===h?"shortcut"===i?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(h+"]"),c}function uA(e,t){const r=Si(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function hA(e,t,r,n){const i=Hc(r),o='"'===i?"Quote":"Apostrophe",a=r.createTracker(n);let s,c;if(uA(e,r)){const t=r.stack;r.stack=[],s=r.enter("autolink");let n=a.move("<");return n+=a.move(r.containerPhrasing(e,{before:n,after:">",...a.current()})),n+=a.move(">"),s(),r.stack=t,n}s=r.enter("link"),c=r.enter("label");let l=a.move("[");return l+=a.move(r.containerPhrasing(e,{before:l,after:"](",...a.current()})),l+=a.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=r.enter("destinationLiteral"),l+=a.move("<"),l+=a.move(r.safe(e.url,{before:l,after:">",...a.current()})),l+=a.move(">")):(c=r.enter("destinationRaw"),l+=a.move(r.safe(e.url,{before:l,after:e.title?" ":")",...a.current()}))),c(),e.title&&(c=r.enter(`title${o}`),l+=a.move(" "+i),l+=a.move(r.safe(e.title,{before:l,after:i,...a.current()})),l+=a.move(i),c()),l+=a.move(")"),s(),l}function pA(e,t,r,n){const i=e.referenceType,o=r.enter("linkReference");let a=r.enter("label");const s=r.createTracker(n);let c=s.move("[");const l=r.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const u=r.stack;r.stack=[],a=r.enter("reference");const h=r.safe(r.associationId(e),{before:c,after:"]",...s.current()});return a(),r.stack=u,o(),"full"!==i&&l&&l===h?"shortcut"===i?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(h+"]"),c}function fA(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function dA(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function mA(e,t,r,n){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(r),o=r.enter("strong"),a=r.createTracker(n);let s=a.move(i+i);return s+=a.move(r.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s}sA.peek=function(e,t,r){return r.options.emphasis||"*"},cA.peek=function(){return"<"},lA.peek=function(){return"!"},hA.peek=function(e,t,r){return uA(e,r)?"<":"["},pA.peek=function(){return"["},mA.peek=function(e,t,r){return r.options.strong||"*"};const gA={blockquote:ol,break:iA,code:function(e,t,r,n){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(r),o=e.value||"",a="`"===i?"GraveAccent":"Tilde";if(oA(e,r)){const e=r.enter("codeIndented"),t=r.indentLines(o,aA);return e(),t}const s=r.createTracker(n),c=i.repeat(Math.max(function(e,t){const r=String(e);let n=r.indexOf(t),i=n,o=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==n;)n===i?++o>a&&(a=o):o=1,i=n+t.length,n=r.indexOf(t,i);return a}(o,i)+1,3)),l=r.enter("codeFenced");let u=s.move(c);if(e.lang){const t=r.enter(`codeFencedLang${a}`);u+=s.move(r.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=r.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(r.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(c),l(),u},definition:function(e,t,r,n){const i=Hc(r),o='"'===i?"Quote":"Apostrophe",a=r.enter("definition");let s=r.enter("label");const c=r.createTracker(n);let l=c.move("[");return l+=c.move(r.safe(r.associationId(e),{before:l,after:"]",...c.current()})),l+=c.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(r.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=r.enter("destinationRaw"),l+=c.move(r.safe(e.url,{before:l,after:e.title?" ":"\n",...c.current()}))),s(),e.title&&(s=r.enter(`title${o}`),l+=c.move(" "+i),l+=c.move(r.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),a(),l},emphasis:sA,hardBreak:iA,heading:rl,html:cA,image:Bc,imageReference:lA,inlineCode:Xs,link:hA,linkReference:pA,list:function(e,t,r,n){const i=r.enter("list"),o=r.bulletCurrent;let a=e.ordered?fA(r):ac(r);const s=e.ordered?function(e){const t=fA(e),r=e.options.bulletOrderedOther;if(!r)return"."===t?")":".";if("."!==r&&")"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrderedOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bulletOrdered` (`"+t+"`) and `bulletOrderedOther` (`"+r+"`) to be different");return r}(r):function(e){const t=ac(e),r=e.options.bulletOther;if(!r)return"*"===t?"-":"*";if("*"!==r&&"+"!==r&&"-"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}(r),c=r.bulletLastUsed;let l=!1;if(t&&(e.ordered?r.options.bulletOrderedOther:r.options.bulletOther)&&c&&a===c&&(l=!0),!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==r.stack[r.stack.length-1]||"listItem"!==r.stack[r.stack.length-2]||"list"!==r.stack[r.stack.length-3]||"listItem"!==r.stack[r.stack.length-4]||0!==r.indexStack[r.indexStack.length-1]||0!==r.indexStack[r.indexStack.length-2]||0!==r.indexStack[r.indexStack.length-3]||(l=!0),dA(r)===a&&t){let t=-1;for(;++t<e.children.length;){const r=e.children[t];if(r&&"listItem"===r.type&&r.children&&r.children[0]&&"thematicBreak"===r.children[0].type){l=!0;break}}}}l&&(a=s),r.bulletCurrent=a;const u=r.containerFlow(e,n);return r.bulletLastUsed=a,r.bulletCurrent=o,i(),u},listItem:sc,paragraph:Zc,root:function(e,t,r,n){return(e.children.some((e=>W_(e)))?r.containerPhrasing:r.containerFlow).call(r,e,n)},strong:mA,text:function(e,t,r,n){return r.safe(e.value,n)},thematicBreak:function(e,t,r){const n=(dA(r)+(r.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(r));return r.options.ruleSpaces?n.slice(0,-1):n}},EA=[function(e,t,r,n){if("code"===t.type&&oA(t,n)&&("list"===e.type||e.type===t.type&&oA(e,n)))return!1;if("list"===e.type&&e.type===t.type&&Boolean(e.ordered)===Boolean(t.ordered)&&!(e.ordered?n.options.bulletOrderedOther:n.options.bulletOther))return!1;if("spread"in r&&"boolean"==typeof r.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&tl(t,n)))return;return r.spread?1:0}}];const TA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],yA=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:TA},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:TA},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:TA},{atBreak:!0,character:"+",after:"(?:[ \t\r\n])"},{atBreak:!0,character:"-",after:"(?:[ \t\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:TA},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:TA},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:TA},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:TA},{atBreak:!0,character:"~"}];function vA(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function _A(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function bA(e,t){if("definition"===e.type&&e.type===t.type)return 0}function AA(e,t){return Vs(e,this,t)}function SA(e,t){return ks(e,this,t)}function kA(e,t){return Rs(this,e,t)}const CA=di().use((function(e){const t=this.data("settings"),r=Object.assign({},t,e);Object.assign(this,{Parser:function(e,t){const n=r.fragment?"parseFragment":"parse",i=r.emitParseErrors?function(n){const i=n.code,o=function(e){return e.replace(/-[a-z]/g,(e=>e.charAt(1).toUpperCase()))}(i),a=r[o],s=null==a||a,c="number"==typeof s?s:s?1:0,l={line:n.startLine,column:n.startCol,offset:n.startOffset},u={line:n.endLine,column:n.endCol,offset:n.endOffset};if(c){const e=E_[o]||{reason:"",description:"",url:""},r=t.message(h(e.reason),{start:l,end:u});r.source="parse-error",r.ruleId=i,r.fatal=y_[c],r.note=h(e.description),r.url="url"in e&&!1===e.url?null:T_+i}function h(t){return t.replace(/%c(?:-(\d+))?/g,((t,r)=>{const i=r?-Number.parseInt(r,10):0,o=e.charAt(n.startOffset+i);return"`"===o?"` ` `":o})).replace(/%x/g,(()=>"0x"+e.charCodeAt(n.startOffset).toString(16).toUpperCase()))}}:null;return function(e,t){const r=t||{};let n,i;return function(e){return"messages"in e}(r)?(i=r,n={}):(i=r.file||void 0,n=r),h_({schema:"svg"===n.space?Yv:Wv,file:i,verbose:n.verbose,location:!1},e)}(new mv({sourceCodeLocationInfo:!0,onParseError:i,scriptingEnabled:!1})[n](e),{space:r.space,file:t,verbose:r.verbose})}})})).use(hc).use(rA).use((function(e){Object.assign(this,{Compiler:t=>{const r=this.data("settings");return function(e,t={}){const r={enter:function(e){return r.stack.push(e),function(){r.stack.pop()}},indentLines:ws,associationId:Ss,containerPhrasing:AA,containerFlow:SA,createTracker:Ds,safe:kA,stack:[],unsafe:[],join:[],handlers:{},options:{},indexStack:[],handle:void 0};nA(r,{unsafe:yA,join:EA,handlers:gA}),nA(r,t),r.options.tightDefinitions&&nA(r,{join:[bA]}),r.handle=Tn("type",{invalid:vA,unknown:_A,handlers:r.handlers});let n=r.handle(e,void 0,r,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});return n&&10!==n.charCodeAt(n.length-1)&&13!==n.charCodeAt(n.length-1)&&(n+="\n"),n}(t,Object.assign({},r,e,{extensions:this.data("toMarkdownExtensions")||[]}))}})}),{bullet:"*",listItemIndent:"one",fences:!0,handlers:{html:e=>{const t=e.value;return t.startsWith("\x3c!--")?"":t||""}}});const xA={website:class extends lm{async convert(){const e=await se.default.launch({headless:!0});try{const t=await e.newPage();t.on("console",(e=>console.log(e.text()))),await t.setViewport({width:1920,height:1080}),await t.goto(new URL(this.source.url).toString());const r=await t.evaluate((()=>{const e=document.querySelector("meta[name=generator]");return e?e.getAttribute("content"):null}));if(!0===r?.startsWith("Docusaurus")){const e=await this.getArticles(t),r=await this.buildFiles(t,e),n=Y.default.createWriteStream(this.destFS.resolve("files.tar.gz"));await this.contentFS.archive(n),await this.destFS.writeFile("summary.json",JSON.stringify(r))}}finally{await e.close()}}async buildFiles(e,t){const r=[];for(const n of t){const t={title:n.title,ref:"",children:[]};if("#"!==n.url){await e.goto(new URL(n.url,this.source.url).toString());const r=await e.$("article .markdown");if(r){const e=await r.evaluate((e=>{const t=e.querySelectorAll("a");for(const e of Array.from(t))e.getAttribute("href")?.startsWith("#")&&e.remove();return e.innerHTML})),i=CA.processSync(e).toString(),o=this.generateFilename(n.title)+".md";await this.contentFS.writeFile(o,i),t.ref=o}}n.children.length>0&&(t.children=await this.buildFiles(e,n.children)),r.push(t)}return r}async getArticles(e){return await e.addScriptTag({content:af.toString()}),e.evaluate((async()=>{const e=document.querySelector("aside nav>ul");if(e){const t=async e=>{const r=e.querySelectorAll("&>li"),n=[];for(const e of Array.from(r)){const r=e.querySelector("a");if(r){let i=[];if(r.className.includes("menu__link--sublist")){r.click();try{const r=await af((()=>{const t=e.querySelector("&>ul");if(!t)throw new Error("render html timeout");return t}),{stopAfter:5e3,tryEvery:200});i=await t(r)}catch(e){console.log(e.message)}}n.push({title:r.textContent?.trim()||"未命名",url:r.getAttribute("href")||"#",children:i})}}return n};return await t(e)}return[]}))}}};const wA=require("../package.json"),OA=new e.Command;OA.version(wA.version),OA.name("ttx"),OA.option("-d, --debug","output extra debugging"),OA.on("option:debug",(function(){le.level=n.LogLevel.Debug})),OA.command("build <dir> <format> [dest]").option("--sha <sha>","book hash value").option("--no-clean","not clean").description("build book").action((async function(e,t,r,n){n.clean&&D.default.setGracefulCleanup(),le.info(`cli version ${wA.version}`);const i=M.default.resolve(e);r=r?M.default.resolve(r):M.default.join(i,"book.tar.gz");try{const i=await async function(e,t,r,n,i){if(void 0===nm[t])throw new Error("unsupported format: "+t);const o=nm[t],a=new rf(e),s=await a.readAsObject("ttxconfig.json");le.debug("read options form ttxconfig.json"),le.debug(s);const c=pe.Config.createFromObject(await a.readAsObject(pe.Config.file)),l=a.resolve(c.getValue("root","")),u=D.default.dirSync({unsafeCleanup:!0}).name,h=new rf(u);await Y.default.copy(l,u),await Y.default.copy(M.default.resolve(__dirname,"../templates/.bookignore"),h.resolve(".bookignore"));const p={plugins:{host:rm("plugins_host"),preset:{},...s.plugins},poweredBy:{name:"顶想云",link:"https://www.topthink.com"},asset:s.asset||"local"};void 0!==s.poweredBy&&(p.poweredBy=s.poweredBy),s.lfs&&(p.lfs={url:s.lfs,files:{}});const f=s.id||"unknown";let d;d=h.exist(pe.Summary.file.json)?await h.readAsObject(pe.Summary.file.json,[]):await h.readAsString(pe.Summary.file.markdown);const m=pe.Summary.create(d);return new o(new pe.Book(f,c,m,i),a,h,p,r,n)}(e,t,r,wA.version,n.sha);await i.generate(),process.exit(0)}catch(e){le.error(e),process.exit(1)}})),OA.command("convert").requiredOption("--type <type>","").requiredOption("--source <source>","",(function(e,t={}){return{...ce.parse(e),...t}})).option("--dest <dest>").option("--no-clean","not clean").description("convert book").action((async function({type:e,source:t,dest:r=".",clean:n}){n&&D.default.setGracefulCleanup(),r=M.default.resolve(r);try{const n=await async function(e,t,r){if(void 0===xA[e])throw new Error("unsupported type: "+e);return new(0,xA[e])(t,r)}(e,t,r);await n.convert(),process.exit(0)}catch(e){le.error(e),process.exit(1)}}));const NA=OA.command("config");NA.command("list").action((function(){console.log(rm())})),NA.command("set <key> <value>").action((function(e,t){!function(e,t){tm.set(e,t)}(e,t)})),OA.parse(process.argv);
20
+ !function(e){!function(){var t;function r(e,n){var i=this instanceof r?this:t;if(i.reset(n),"string"==typeof e&&e.length>0&&i.hash(e),i!==this)return i}r.prototype.hash=function(e){var t,r,n,i,o;switch(o=e.length,this.len+=o,r=this.k1,n=0,this.rem){case 0:r^=o>n?65535&e.charCodeAt(n++):0;case 1:r^=o>n?(65535&e.charCodeAt(n++))<<8:0;case 2:r^=o>n?(65535&e.charCodeAt(n++))<<16:0;case 3:r^=o>n?(255&e.charCodeAt(n))<<24:0,r^=o>n?(65280&e.charCodeAt(n++))>>8:0}if(this.rem=o+this.rem&3,(o-=this.rem)>0){for(t=this.h1;t=5*(t=(t^=r=13715*(r=(r=11601*r+3432906752*(65535&r)&4294967295)<<15|r>>>17)+461832192*(65535&r)&4294967295)<<13|t>>>19)+3864292196&4294967295,!(n>=o);)r=65535&e.charCodeAt(n++)^(65535&e.charCodeAt(n++))<<8^(65535&e.charCodeAt(n++))<<16,r^=(255&(i=e.charCodeAt(n++)))<<24^(65280&i)>>8;switch(r=0,this.rem){case 3:r^=(65535&e.charCodeAt(n+2))<<16;case 2:r^=(65535&e.charCodeAt(n+1))<<8;case 1:r^=65535&e.charCodeAt(n)}this.h1=t}return this.k1=r,this},r.prototype.result=function(){var e,t;return e=this.k1,t=this.h1,e>0&&(t^=e=13715*(e=(e=11601*e+3432906752*(65535&e)&4294967295)<<15|e>>>17)+461832192*(65535&e)&4294967295),t^=this.len,t=51819*(t^=t>>>16)+2246770688*(65535&t)&4294967295,t=44597*(t^=t>>>13)+3266445312*(65535&t)&4294967295,(t^=t>>>16)>>>0},r.prototype.reset=function(e){return this.h1="number"==typeof e?e:0,this.rem=this.k1=this.len=0,this},t=new r,e.exports=r}()}(Xf);var Jf={exports:{}},Zf={exports:{}};!function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}(Zf);var ed=ue.process;const td=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on};if(td(ed)){var rd,nd=j.default,id=Zf.exports,od=/^win/i.test(ed.platform),ad=oe.default;"function"!=typeof ad&&(ad=ad.EventEmitter),ed.__signal_exit_emitter__?rd=ed.__signal_exit_emitter__:((rd=ed.__signal_exit_emitter__=new ad).count=0,rd.emitted={}),rd.infinite||(rd.setMaxListeners(1/0),rd.infinite=!0),Jf.exports=function(e,t){if(!td(ue.process))return function(){};nd.equal(typeof e,"function","a callback must be provided for exit handler"),!1===ud&&hd();var r="exit";t&&t.alwaysLast&&(r="afterexit");return rd.on(r,e),function(){rd.removeListener(r,e),0===rd.listeners("exit").length&&0===rd.listeners("afterexit").length&&sd()}};var sd=function(){ud&&td(ue.process)&&(ud=!1,id.forEach((function(e){try{ed.removeListener(e,ld[e])}catch(e){}})),ed.emit=dd,ed.reallyExit=pd,rd.count-=1)};Jf.exports.unload=sd;var cd=function(e,t,r){rd.emitted[e]||(rd.emitted[e]=!0,rd.emit(e,t,r))},ld={};id.forEach((function(e){ld[e]=function(){td(ue.process)&&(ed.listeners(e).length===rd.count&&(sd(),cd("exit",null,e),cd("afterexit",null,e),od&&"SIGHUP"===e&&(e="SIGINT"),ed.kill(ed.pid,e)))}})),Jf.exports.signals=function(){return id};var ud=!1,hd=function(){!ud&&td(ue.process)&&(ud=!0,rd.count+=1,id=id.filter((function(e){try{return ed.on(e,ld[e]),!0}catch(e){return!1}})),ed.emit=md,ed.reallyExit=fd)};Jf.exports.load=hd;var pd=ed.reallyExit,fd=function(e){td(ue.process)&&(ed.exitCode=e||0,cd("exit",ed.exitCode,null),cd("afterexit",ed.exitCode,null),pd.call(ed,ed.exitCode))},dd=ed.emit,md=function(e,t){if("exit"===e&&td(ue.process)){void 0!==t&&(ed.exitCode=t);var r=dd.apply(this,arguments);return cd("exit",ed.exitCode,null),cd("afterexit",ed.exitCode,null),r}return dd.apply(this,arguments)}}else Jf.exports=function(){return function(){}};var gd=yd;yd.strict=vd,yd.loose=_d;var Ed=Object.prototype.toString,Td={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function yd(e){return vd(e)||_d(e)}function vd(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function _d(e){return Td[Ed.call(e)]}var bd=gd.strict;Yf.exports=function(e,t,r,n){r instanceof Function&&(n=r,r={});const i=async function(e,t,r={}){"string"==typeof r&&(r={encoding:r});let n,i;const o=kd(Ld((()=>i))),a=Cd.resolve(e);try{await function(e){return new Promise((t=>{Nd[e]||(Nd[e]=[]),Nd[e].push(t),1===Nd[e].length&&t()}))}(a);const o=await Od(Ad.realpath)(e).catch((()=>e));if(i=Id(o),!r.mode||!r.chown){const e=await Od(Ad.stat)(o).catch((()=>{}));e&&(null==r.mode&&(r.mode=e.mode),null==r.chown&&process.getuid&&(r.chown={uid:e.uid,gid:e.gid}))}n=await Od(Ad.open)(i,"w",r.mode),r.tmpfileCreated&&await r.tmpfileCreated(i),xd(t)&&(t=wd(t)),Buffer.isBuffer(t)?await Od(Ad.write)(n,t,0,t.length,0):null!=t&&await Od(Ad.write)(n,String(t),0,String(r.encoding||"utf8")),!1!==r.fsync&&await Od(Ad.fsync)(n),await Od(Ad.close)(n),n=null,r.chown&&await Od(Ad.chown)(i,r.chown.uid,r.chown.gid).catch((e=>{if(!Dd(e))throw e})),r.mode&&await Od(Ad.chmod)(i,r.mode).catch((e=>{if(!Dd(e))throw e})),await Od(Ad.rename)(i,o)}finally{n&&await Od(Ad.close)(n).catch((()=>{})),o(),await Od(Ad.unlink)(i).catch((()=>{})),Nd[a].shift(),Nd[a].length>0?Nd[a][0]():delete Nd[a]}}(e,t,r);n&&i.then(n,n);return i},Yf.exports.sync=function(e,t,r){"string"==typeof r?r={encoding:r}:r||(r={});try{e=Ad.realpathSync(e)}catch(e){}const n=Id(e);if(!r.mode||!r.chown)try{const t=Ad.statSync(e);(r=Object.assign({},r)).mode||(r.mode=t.mode),!r.chown&&process.getuid&&(r.chown={uid:t.uid,gid:t.gid})}catch(e){}let i;const o=Ld(n),a=kd(o);let s=!0;try{if(i=Ad.openSync(n,"w",r.mode||438),r.tmpfileCreated&&r.tmpfileCreated(n),xd(t)&&(t=wd(t)),Buffer.isBuffer(t)?Ad.writeSync(i,t,0,t.length,0):null!=t&&Ad.writeSync(i,String(t),0,String(r.encoding||"utf8")),!1!==r.fsync&&Ad.fsyncSync(i),Ad.closeSync(i),i=null,r.chown)try{Ad.chownSync(n,r.chown.uid,r.chown.gid)}catch(e){if(!Dd(e))throw e}if(r.mode)try{Ad.chmodSync(n,r.mode)}catch(e){if(!Dd(e))throw e}Ad.renameSync(n,e),s=!1}finally{if(i)try{Ad.closeSync(i)}catch(e){}a(),s&&o()}},Yf.exports._getTmpname=Id,Yf.exports._cleanupOnExit=Ld;const Ad=Q.default,Sd=Xf.exports,kd=Jf.exports,Cd=M.default,xd=gd,wd=function(e){if(bd(e)){var t=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}return Buffer.from(e)},{promisify:Od}=ie.default,Nd={},Pd=function(){try{return require("worker_threads").threadId}catch(e){return 0}}();let Rd=0;function Id(e){return e+"."+Sd(__filename).hash(String(process.pid)).hash(String(Pd)).hash(String(++Rd)).result()}function Ld(e){return()=>{try{Ad.unlinkSync("function"==typeof e?e():e)}catch(e){}}}function Dd(e){if("ENOSYS"===e.code)return!0;return!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var Md=Yf.exports;const Fd=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},Hd=new Set(["__proto__","prototype","constructor"]),Bd=e=>!e.some((e=>Hd.has(e)));function Ud(e){const t=e.split("."),r=[];for(let e=0;e<t.length;e++){let n=t[e];for(;"\\"===n[n.length-1]&&void 0!==t[e+1];)n=n.slice(0,-1)+".",n+=t[++e];r.push(n)}return Bd(r)?r:[]}var jd={get(e,t,r){if(!Fd(e)||"string"!=typeof t)return void 0===r?e:r;const n=Ud(t);if(0!==n.length){for(let t=0;t<n.length;t++)if(null==(e=e[n[t]])){if(t!==n.length-1)return r;break}return void 0===e?r:e}},set(e,t,r){if(!Fd(e)||"string"!=typeof t)return e;const n=e,i=Ud(t);for(let t=0;t<i.length;t++){const n=i[t];Fd(e[n])||(e[n]={}),t===i.length-1&&(e[n]=r),e=e[n]}return n},delete(e,t){if(!Fd(e)||"string"!=typeof t)return!1;const r=Ud(t);for(let t=0;t<r.length;t++){const n=r[t];if(t===r.length-1)return delete e[n],!0;if(e=e[n],!Fd(e))return!1}},has(e,t){if(!Fd(e)||"string"!=typeof t)return!1;const r=Ud(t);if(0===r.length)return!1;for(let t=0;t<r.length;t++){if(!Fd(e))return!1;if(!(r[t]in e))return!1;e=e[r[t]]}return!0}};const qd=w.promisify(ae.default.randomBytes),zd="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~".split(""),Gd="0123456789".split(""),Kd="CDEHKMPRTUWXY012458".split(""),$d="!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~".split(""),Vd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Qd=new Set([void 0,"hex","base64","url-safe","numeric","distinguishable","ascii-printable","alphanumeric"]),Wd=(e,t)=>({length:r,type:n,characters:i})=>{if(!(r>=0&&Number.isFinite(r)))throw new TypeError("Expected a `length` to be a non-negative finite number");if(void 0!==n&&void 0!==i)throw new TypeError("Expected either `type` or `characters`");if(void 0!==i&&"string"!=typeof i)throw new TypeError("Expected `characters` to be string");if(!Qd.has(n))throw new TypeError(`Unknown type: ${n}`);if(void 0===n&&void 0===i&&(n="hex"),"hex"===n||void 0===n&&void 0===i)return t(Math.ceil(.5*r),"hex",r);if("base64"===n)return t(Math.ceil(.75*r),"base64",r);if("url-safe"===n)return e(r,zd);if("numeric"===n)return e(r,Gd);if("distinguishable"===n)return e(r,Kd);if("ascii-printable"===n)return e(r,$d);if("alphanumeric"===n)return e(r,Vd);if(0===i.length)throw new TypeError("Expected `characters` string length to be greater than or equal to 1");if(i.length>65536)throw new TypeError("Expected `characters` string length to be less or equal to 65536");return e(r,i.split(""))},Yd=Wd(((e,t)=>{const r=t.length,n=Math.floor(65536/r)*r-1,i=2*Math.ceil(1.1*e);let o="",a=0;for(;a<e;){const s=ae.default.randomBytes(i);let c=0;for(;c<i&&a<e;){const e=s.readUInt16LE(c);c+=2,e>n||(o+=t[e%r],a++)}}return o}),((e,t,r)=>ae.default.randomBytes(e).toString(t).slice(0,r)));Yd.async=Wd((async(e,t)=>{const r=t.length,n=Math.floor(65536/r)*r-1,i=2*Math.ceil(1.1*e);let o="",a=0;for(;a<e;){const s=await qd(i);let c=0;for(;c<i&&a<e;){const e=s.readUInt16LE(c);c+=2,e>n||(o+=t[e%r],a++)}}return o}),(async(e,t,r)=>(await qd(e)).toString(t).slice(0,r)));const Xd=Vf||M.default.join(re.default.tmpdir(),Yd({length:32})),Jd="You don't have access to this file.",Zd={mode:448,recursive:!0},em={mode:384};const tm=new class{constructor(e,t,r={}){const n=r.globalConfigPath?M.default.join(e,"config.json"):M.default.join("configstore",`${e}.json`);this._path=r.configPath||M.default.join(Xd,n),t&&(this.all={...t,...this.all})}get all(){try{return JSON.parse(zf.readFileSync(this._path,"utf8"))}catch(e){if("ENOENT"===e.code)return{};if("EACCES"===e.code&&(e.message=`${e.message}\n${Jd}\n`),"SyntaxError"===e.name)return Md.sync(this._path,"",em),{};throw e}}set all(e){try{zf.mkdirSync(M.default.dirname(this._path),Zd),Md.sync(this._path,JSON.stringify(e,void 0,"\t"),em)}catch(e){throw"EACCES"===e.code&&(e.message=`${e.message}\n${Jd}\n`),e}}get size(){return Object.keys(this.all||{}).length}get(e){return jd.get(this.all,e)}set(e,t){const r=this.all;if(1===arguments.length)for(const t of Object.keys(e))jd.set(r,t,e[t]);else jd.set(r,e,t);this.all=r}has(e){return jd.has(this.all,e)}delete(e){const t=this.all;jd.delete(t,e),this.all=t}clear(){this.all={}}get path(){return this._path}}("ttx",{plugins_host:"https://plugins.x.topthink.com"});function rm(e){return e?tm.get(e):tm.all}const nm={json:tf,html:nf,ebook:class extends nf{format="ebook";async initPlugins(){this.book.config.setValue("theme","ebook"),this.options.plugins.preset["theme-ebook"]={},await super.initPlugins()}async createDOM(e,t){const r=new sf,n=new S.VirtualConsole;n.on("error",(e=>{le.error(e)}));let i=!1,o=0;const a=new S.JSDOM(e,{virtualConsole:n,url:`file:///${this.tmpFS.resolve(t.path)}`,runScripts:"dangerously",resources:r,pretendToBeVisual:!0,beforeParse(e){e.SC_DISABLE_SPEEDY=!0;const{document:t}=e,r={attributes:!0,childList:!0,subtree:!0};e.addEventListener("load",(()=>{const n=new e.MutationObserver((function(e){for(const t of e)"childList"===t.type&&t.addedNodes.forEach((e=>{if("SCRIPT"===e.nodeName){++o;e.addEventListener("load",(()=>{--o}))}}))}));n.observe(t.head,r)})),e.addEventListener("bootstrapped",(()=>{i=!0}))}});return await af((()=>{if(!i||o>0)throw new Error("render html timeout")}),{stopAfter:5e3,tryEvery:100}),a}async renderFile(e,t){const r=await super.renderFile(e,t),n=await this.createDOM(r,e);await async function(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:i}={}){return new Promise(((o,a)=>{if(void 0===e[Symbol.iterator]&&void 0===e[Symbol.asyncIterator])throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if("function"!=typeof t)throw new TypeError("Mapper function is required");if(!Number.isSafeInteger(r)&&r!==Number.POSITIVE_INFINITY||!(r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const s=[],c=[],l=new Map;let u=!1,h=!1,p=!1,f=0,d=0;const m=void 0===e[Symbol.iterator]?e[Symbol.asyncIterator]():e[Symbol.iterator](),g=e=>{u=!0,h=!0,a(e)};i&&(i.aborted&&g(df(i)),i.addEventListener("abort",(()=>{g(df(i))})));const E=async()=>{if(h)return;const e=await m.next(),r=d;if(d++,e.done){if(p=!0,0===f&&!h){if(!n&&c.length>0)return void g(new hf(c));if(h=!0,0===l.size)return void o(s);const e=[];for(const[t,r]of s.entries())l.get(t)!==mf&&e.push(r);o(e)}}else f++,(async()=>{try{const n=await e.value;if(h)return;const i=await t(n,r);i===mf&&l.set(r,i),s[r]=i,f--,await E()}catch(e){if(n)g(e);else{c.push(e),f--;try{await E()}catch(e){g(e)}}}})()};(async()=>{for(let e=0;e<r;e++){try{await E()}catch(e){g(e);break}if(p||u)break}})()}))}(Array.from(n.window.document.images),(async(t,r)=>{if(t.src){const n=a.parse(t.src);if(n.protocol?.startsWith("http"))try{le.info(`fetch image#${r}: ${t.src}`),t.src=await this.fetchImage(e,t.src),le.info(`image#${r} fetch succeed`)}catch{le.warn(`image#${r} ${t.src} fetch failed`)}}}),{concurrency:3});for(const e of Array.from(n.window.document.scripts))e.remove();return n.serialize()}async fetchImage(e,t){const r=await pe.request.get(t,{responseType:"stream",timeout:5e3,headers:{"User-Agent":`TopWriteBuilder/${this.version}`}});let n=`_images/${pe.md5(t)}`;const i=te.default.extension(r.headers["content-type"]);i&&(n+=`.${i}`);const o=this.tmpFS.createWriteStream(n);return new Promise(((t,i)=>{r.data.pipe(o),o.on("error",(e=>{o.close(),i(e)})),o.on("close",(()=>{t(e.relative(n))}))}))}async getConvertOptions(e){const{config:t}=this.book,r={title:t.getValue("title"),"book-producer":"TopWrite",publisher:"TopWrite",chapter:"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-chapter')]","level1-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level1-toc')]","level2-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level2-toc')]","level3-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level3-toc')]","max-toc-links":"0","max-levels":"1","no-chapters-in-toc":!0,"breadth-first":!0,"disable-font-rescaling":!0};switch(e){case"docx":r["docx-no-toc"]=!0;break;case"epub":r["dont-split-on-page-breaks"]=!0;break;case"pdf":const e={poweredBy:this.options.poweredBy},n=await Z.default.renderFile(M.default.resolve(__dirname,"../templates/pdf-header.ejs"),e,{rmWhitespace:!0}),i=await Z.default.renderFile(M.default.resolve(__dirname,"../templates/pdf-footer.ejs"),e,{rmWhitespace:!0});r["chapter-mark"]=t.getValue(["pdf","chapterMark"]),r["page-breaks-before"]=t.getValue(["pdf","pageBreaksBefore"]),r["pdf-page-margin-left"]=t.getValue(["pdf","margin","left"]),r["pdf-page-margin-right"]=t.getValue(["pdf","margin","right"]),r["pdf-page-margin-top"]=t.getValue(["pdf","margin","top"]),r["pdf-page-margin-bottom"]=t.getValue(["pdf","margin","bottom"]),r["pdf-serif-family"]=t.getValue(["pdf","fontFamily"]),r["paper-size"]=t.getValue(["pdf","paperSize"]),r["pdf-custom-size"]=t.getValue(["pdf","customSize"]),r.unit="millimeter",r["pdf-page-numbers"]=t.getValue(["pdf","pageNumbers"]),r["preserve-cover-aspect-ratio"]=!0,r["pdf-header-template"]=n,r["pdf-footer-template"]=i}return r}async packBook(){const e=M.default.extname(this.dest).substr(1);if(!["pdf","docx","epub"].includes(e))return super.packBook();const t=await A.lookpath("ebook-convert");if(!t)throw new Error("Install ebook-convert from Calibre: https://calibre-ebook.com");const r=function(e,t){const r=[];let n=[],i=[];t={useEquals:!0,shortFlag:!0,...t};const o=(e,n)=>{const i=t.shortFlag&&1===e.length?"-":"--",o=t.allowCamelCase?e:e.replace(/[A-Z]/g,"-$&").toLowerCase();e=i+o,t.useEquals?r.push(e+(n?`=${n}`:"")):(r.push(e),n&&r.push(n))},a=(e,t)=>{r.push(`-${e}`),t&&r.push(t)};for(let[r,s]of Object.entries(e)){let e=o;if((!Array.isArray(t.excludes)||!of(t.excludes,r))&&(!Array.isArray(t.includes)||of(t.includes,r)))if("object"==typeof t.aliases&&t.aliases[r]&&(r=t.aliases[r],e=a),"--"!==r)if("_"!==r){if(!0!==s||t.ignoreTrue||e(r,""),!1!==s||t.ignoreFalse||e(`no-${r}`),"string"==typeof s&&e(r,s),"number"!=typeof s||Number.isNaN(s)||e(r,String(s)),Array.isArray(s))for(const t of s)e(r,t)}else{if(!Array.isArray(s))throw new TypeError("Expected key `_` to be Array, got "+typeof s);n=s}else{if(!Array.isArray(s))throw new TypeError("Expected key `--` to be Array, got "+typeof s);i=s}}for(const e of n)r.push(String(e));i.length>0&&r.push("--");for(const e of i)r.push(String(e));return r}(await this.getConvertOptions(e)),n=this.tmpFS.resolve("index.html");return r.unshift(n,this.dest),new Promise(((e,i)=>{le.info("convert book ...");const o=$.default(t,r,{stdio:["inherit"],cwd:this.tmpFS.root}),a=["^Conversion options ","^ \\w+: ","^Blocking URL ","^Ignoring CSS ","^Ignoring internal ","^CSSStyleDeclaration: ","^CSSStylesheet: ","^PropertyValue: ","^CSSVariable: ",gf(n),gf(this.dest)].map((e=>`(${e})`)).join("|"),s=new RegExp(`(${a})`);o.stdout?.on("data",(e=>{e.toString().replace(/[\r\n]*$/,"").split("\n").forEach((e=>{if(e){const t=e.trim();e.match(s)?le.debug({message:t,type:"log"}):le.log(t)}}))})),o.stderr?.on("data",(e=>{le.error(e.toString().trimEnd())})),o.on("close",(t=>{0!==t?i("Convert failed"):e()}))}))}}};const im=100,om=/[\u0000-\u001F\u0080-\u009F]/g,am=/^\.+(\\|\/)|^\.+$/,sm=/\.+$/;function cm(e,t={}){if("string"!=typeof e)throw new TypeError("Expected a string");const r=void 0===t.replacement?"!":t.replacement;if(/[<>:"/\\|?*\u0000-\u001F]/g.test(r)&&om.test(r))throw new Error("Replacement string cannot contain reserved filename characters");if(e=(e=(e=(e=(e=e.normalize("NFD")).replace(am,r)).replace(/[<>:"/\\|?*\u0000-\u001F]/g,r)).replace(om,r)).replace(sm,""),r.length>0){const t="."===e[0];e=function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected a string");const r=new RegExp(`(?:${ns(t)}){2,}`,"g");return e.replace(r,t)}(e,r),e=e.length>1?function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected a string");return e.startsWith(t)&&(e=e.slice(t.length)),e.endsWith(t)&&(e=e.slice(0,-t.length)),e}(e,r):e,t||"."!==e[0]||(e=r+e),"."===e[e.length-1]&&(e+=r)}e=/^(con|prn|aux|nul|com\d|lpt\d)$/i.test(e)?e+r:e;const n="number"==typeof t.maxLength?t.maxLength:im;if(e.length>n){const t=e.lastIndexOf(".");if(-1===t)e=e.slice(0,n);else{const r=e.slice(0,t),i=e.slice(t);e=r.slice(0,Math.max(1,n-i.length))+i}}return e}class lm{source;destFS;contentFS;filenames=[];constructor(e,t){this.source=e,this.destFS=new rf(t);const r=D.default.dirSync({unsafeCleanup:!0}).name;this.contentFS=new rf(r)}generateFilename(e){const t=cm(e);let r=t,n=1;for(;!r||this.filenames.includes(r);)r=t+"_"+n,n++;return this.filenames.push(r),r}}var um={};const hm=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];um.REPLACEMENT_CHARACTER="�",um.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},um.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},um.isSurrogate=function(e){return e>=55296&&e<=57343},um.isSurrogatePair=function(e){return e>=56320&&e<=57343},um.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},um.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},um.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||hm.indexOf(e)>-1};var pm={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const fm=um,dm=pm,mm=fm.CODE_POINTS;var gm=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(fm.isSurrogatePair(t))return this.pos++,this._addGap(),fm.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,mm.EOF;return this._err(dm.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,mm.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===mm.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===mm.CARRIAGE_RETURN)return this.skipNextNewLine=!0,mm.LINE_FEED;this.skipNextNewLine=!1,fm.isSurrogate(e)&&(e=this._processSurrogate(e));return e>31&&e<127||e===mm.LINE_FEED||e===mm.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){fm.isControlCodePoint(e)?this._err(dm.controlCharacterInInputStream):fm.isUndefinedCodePoint(e)&&this._err(dm.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}},Em=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const Tm=gm,ym=um,vm=Em,_m=pm,bm=ym.CODE_POINTS,Am=ym.CODE_POINT_SEQUENCES,Sm={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},km="DATA_STATE",Cm="RCDATA_STATE",xm="RAWTEXT_STATE",wm="SCRIPT_DATA_STATE",Om="PLAINTEXT_STATE",Nm="TAG_OPEN_STATE",Pm="END_TAG_OPEN_STATE",Rm="TAG_NAME_STATE",Im="RCDATA_LESS_THAN_SIGN_STATE",Lm="RCDATA_END_TAG_OPEN_STATE",Dm="RCDATA_END_TAG_NAME_STATE",Mm="RAWTEXT_LESS_THAN_SIGN_STATE",Fm="RAWTEXT_END_TAG_OPEN_STATE",Hm="RAWTEXT_END_TAG_NAME_STATE",Bm="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Um="SCRIPT_DATA_END_TAG_OPEN_STATE",jm="SCRIPT_DATA_END_TAG_NAME_STATE",qm="SCRIPT_DATA_ESCAPE_START_STATE",zm="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Gm="SCRIPT_DATA_ESCAPED_STATE",Km="SCRIPT_DATA_ESCAPED_DASH_STATE",$m="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",Vm="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",Qm="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",Wm="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",Ym="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Xm="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",Jm="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",Zm="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",eg="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",tg="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",rg="BEFORE_ATTRIBUTE_NAME_STATE",ng="ATTRIBUTE_NAME_STATE",ig="AFTER_ATTRIBUTE_NAME_STATE",og="BEFORE_ATTRIBUTE_VALUE_STATE",ag="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",sg="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",cg="ATTRIBUTE_VALUE_UNQUOTED_STATE",lg="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",ug="SELF_CLOSING_START_TAG_STATE",hg="BOGUS_COMMENT_STATE",pg="MARKUP_DECLARATION_OPEN_STATE",fg="COMMENT_START_STATE",dg="COMMENT_START_DASH_STATE",mg="COMMENT_STATE",gg="COMMENT_LESS_THAN_SIGN_STATE",Eg="COMMENT_LESS_THAN_SIGN_BANG_STATE",Tg="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",yg="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",vg="COMMENT_END_DASH_STATE",_g="COMMENT_END_STATE",bg="COMMENT_END_BANG_STATE",Ag="DOCTYPE_STATE",Sg="BEFORE_DOCTYPE_NAME_STATE",kg="DOCTYPE_NAME_STATE",Cg="AFTER_DOCTYPE_NAME_STATE",xg="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",wg="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Og="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",Ng="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Pg="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Rg="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",Ig="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Lg="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Dg="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Mg="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Fg="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Hg="BOGUS_DOCTYPE_STATE",Bg="CDATA_SECTION_STATE",Ug="CDATA_SECTION_BRACKET_STATE",jg="CDATA_SECTION_END_STATE",qg="CHARACTER_REFERENCE_STATE",zg="NAMED_CHARACTER_REFERENCE_STATE",Gg="AMBIGUOS_AMPERSAND_STATE",Kg="NUMERIC_CHARACTER_REFERENCE_STATE",$g="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Vg="DECIMAL_CHARACTER_REFERENCE_START_STATE",Qg="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Wg="DECIMAL_CHARACTER_REFERENCE_STATE",Yg="NUMERIC_CHARACTER_REFERENCE_END_STATE";function Xg(e){return e===bm.SPACE||e===bm.LINE_FEED||e===bm.TABULATION||e===bm.FORM_FEED}function Jg(e){return e>=bm.DIGIT_0&&e<=bm.DIGIT_9}function Zg(e){return e>=bm.LATIN_CAPITAL_A&&e<=bm.LATIN_CAPITAL_Z}function eE(e){return e>=bm.LATIN_SMALL_A&&e<=bm.LATIN_SMALL_Z}function tE(e){return eE(e)||Zg(e)}function rE(e){return tE(e)||Jg(e)}function nE(e){return e>=bm.LATIN_CAPITAL_A&&e<=bm.LATIN_CAPITAL_F}function iE(e){return e>=bm.LATIN_SMALL_A&&e<=bm.LATIN_SMALL_F}function oE(e){return e+32}function aE(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function sE(e){return String.fromCharCode(oE(e))}function cE(e,t){const r=vm[++e];let n=++e,i=n+r-1;for(;n<=i;){const e=n+i>>>1,o=vm[e];if(o<t)n=e+1;else{if(!(o>t))return vm[e+r];i=e-1}}return-1}class lE{constructor(){this.preprocessor=new Tm,this.tokenQueue=[],this.allowCDATA=!1,this.state=km,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:lE.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,r){let n=0,i=!0;const o=e.length;let a,s=0,c=t;for(;s<o;s++){if(s>0&&(c=this._consume(),n++),c===bm.EOF){i=!1;break}if(a=e[s],c!==a&&(r||c!==oE(a))){i=!1;break}}if(!i)for(;n--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==Am.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==Am.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:lE.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:lE.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:lE.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:lE.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:lE.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===lE.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err(_m.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===lE.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===lE.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(_m.endTagWithAttributes),e.selfClosing&&this._err(_m.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=lE.CHARACTER_TOKEN;Xg(e)?t=lE.WHITESPACE_CHARACTER_TOKEN:e===bm.NULL&&(t=lE.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,aE(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(lE.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,r=1,n=cE(0,e);for(this.tempBuff.push(e);n>-1;){const e=vm[n],i=e<7;i&&1&e&&(t=2&e?[vm[++n],vm[++n]]:[vm[++n]],r=0);const o=this._consume();if(this.tempBuff.push(o),r++,o===bm.EOF)break;n=i?4&e?cE(n,o):-1:o===e?++n:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===ag||this.returnState===sg||this.returnState===cg}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===bm.EQUALS_SIGN||rE(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=aE(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[km](e){this.preprocessor.dropParsedChunk(),e===bm.LESS_THAN_SIGN?this.state=Nm:e===bm.AMPERSAND?(this.returnState=km,this.state=qg):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this._emitCodePoint(e)):e===bm.EOF?this._emitEOFToken():this._emitCodePoint(e)}[Cm](e){this.preprocessor.dropParsedChunk(),e===bm.AMPERSAND?(this.returnState=Cm,this.state=qg):e===bm.LESS_THAN_SIGN?this.state=Im:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?this._emitEOFToken():this._emitCodePoint(e)}[xm](e){this.preprocessor.dropParsedChunk(),e===bm.LESS_THAN_SIGN?this.state=Mm:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?this._emitEOFToken():this._emitCodePoint(e)}[wm](e){this.preprocessor.dropParsedChunk(),e===bm.LESS_THAN_SIGN?this.state=Bm:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?this._emitEOFToken():this._emitCodePoint(e)}[Om](e){this.preprocessor.dropParsedChunk(),e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?this._emitEOFToken():this._emitCodePoint(e)}[Nm](e){e===bm.EXCLAMATION_MARK?this.state=pg:e===bm.SOLIDUS?this.state=Pm:tE(e)?(this._createStartTagToken(),this._reconsumeInState(Rm)):e===bm.QUESTION_MARK?(this._err(_m.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(hg)):e===bm.EOF?(this._err(_m.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(_m.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(km))}[Pm](e){tE(e)?(this._createEndTagToken(),this._reconsumeInState(Rm)):e===bm.GREATER_THAN_SIGN?(this._err(_m.missingEndTagName),this.state=km):e===bm.EOF?(this._err(_m.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(_m.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(hg))}[Rm](e){Xg(e)?this.state=rg:e===bm.SOLIDUS?this.state=ug:e===bm.GREATER_THAN_SIGN?(this.state=km,this._emitCurrentToken()):Zg(e)?this.currentToken.tagName+=sE(e):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentToken.tagName+=ym.REPLACEMENT_CHARACTER):e===bm.EOF?(this._err(_m.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=aE(e)}[Im](e){e===bm.SOLIDUS?(this.tempBuff=[],this.state=Lm):(this._emitChars("<"),this._reconsumeInState(Cm))}[Lm](e){tE(e)?(this._createEndTagToken(),this._reconsumeInState(Dm)):(this._emitChars("</"),this._reconsumeInState(Cm))}[Dm](e){if(Zg(e))this.currentToken.tagName+=sE(e),this.tempBuff.push(e);else if(eE(e))this.currentToken.tagName+=aE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Xg(e))return void(this.state=rg);if(e===bm.SOLIDUS)return void(this.state=ug);if(e===bm.GREATER_THAN_SIGN)return this.state=km,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Cm)}}[Mm](e){e===bm.SOLIDUS?(this.tempBuff=[],this.state=Fm):(this._emitChars("<"),this._reconsumeInState(xm))}[Fm](e){tE(e)?(this._createEndTagToken(),this._reconsumeInState(Hm)):(this._emitChars("</"),this._reconsumeInState(xm))}[Hm](e){if(Zg(e))this.currentToken.tagName+=sE(e),this.tempBuff.push(e);else if(eE(e))this.currentToken.tagName+=aE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Xg(e))return void(this.state=rg);if(e===bm.SOLIDUS)return void(this.state=ug);if(e===bm.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=km)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(xm)}}[Bm](e){e===bm.SOLIDUS?(this.tempBuff=[],this.state=Um):e===bm.EXCLAMATION_MARK?(this.state=qm,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(wm))}[Um](e){tE(e)?(this._createEndTagToken(),this._reconsumeInState(jm)):(this._emitChars("</"),this._reconsumeInState(wm))}[jm](e){if(Zg(e))this.currentToken.tagName+=sE(e),this.tempBuff.push(e);else if(eE(e))this.currentToken.tagName+=aE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Xg(e))return void(this.state=rg);if(e===bm.SOLIDUS)return void(this.state=ug);if(e===bm.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=km)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(wm)}}[qm](e){e===bm.HYPHEN_MINUS?(this.state=zm,this._emitChars("-")):this._reconsumeInState(wm)}[zm](e){e===bm.HYPHEN_MINUS?(this.state=$m,this._emitChars("-")):this._reconsumeInState(wm)}[Gm](e){e===bm.HYPHEN_MINUS?(this.state=Km,this._emitChars("-")):e===bm.LESS_THAN_SIGN?this.state=Vm:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?(this._err(_m.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[Km](e){e===bm.HYPHEN_MINUS?(this.state=$m,this._emitChars("-")):e===bm.LESS_THAN_SIGN?this.state=Vm:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.state=Gm,this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?(this._err(_m.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Gm,this._emitCodePoint(e))}[$m](e){e===bm.HYPHEN_MINUS?this._emitChars("-"):e===bm.LESS_THAN_SIGN?this.state=Vm:e===bm.GREATER_THAN_SIGN?(this.state=wm,this._emitChars(">")):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.state=Gm,this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?(this._err(_m.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Gm,this._emitCodePoint(e))}[Vm](e){e===bm.SOLIDUS?(this.tempBuff=[],this.state=Qm):tE(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(Ym)):(this._emitChars("<"),this._reconsumeInState(Gm))}[Qm](e){tE(e)?(this._createEndTagToken(),this._reconsumeInState(Wm)):(this._emitChars("</"),this._reconsumeInState(Gm))}[Wm](e){if(Zg(e))this.currentToken.tagName+=sE(e),this.tempBuff.push(e);else if(eE(e))this.currentToken.tagName+=aE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Xg(e))return void(this.state=rg);if(e===bm.SOLIDUS)return void(this.state=ug);if(e===bm.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=km)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Gm)}}[Ym](e){Xg(e)||e===bm.SOLIDUS||e===bm.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Xm:Gm,this._emitCodePoint(e)):Zg(e)?(this.tempBuff.push(oE(e)),this._emitCodePoint(e)):eE(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(Gm)}[Xm](e){e===bm.HYPHEN_MINUS?(this.state=Jm,this._emitChars("-")):e===bm.LESS_THAN_SIGN?(this.state=eg,this._emitChars("<")):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?(this._err(_m.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[Jm](e){e===bm.HYPHEN_MINUS?(this.state=Zm,this._emitChars("-")):e===bm.LESS_THAN_SIGN?(this.state=eg,this._emitChars("<")):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.state=Xm,this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?(this._err(_m.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Xm,this._emitCodePoint(e))}[Zm](e){e===bm.HYPHEN_MINUS?this._emitChars("-"):e===bm.LESS_THAN_SIGN?(this.state=eg,this._emitChars("<")):e===bm.GREATER_THAN_SIGN?(this.state=wm,this._emitChars(">")):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.state=Xm,this._emitChars(ym.REPLACEMENT_CHARACTER)):e===bm.EOF?(this._err(_m.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Xm,this._emitCodePoint(e))}[eg](e){e===bm.SOLIDUS?(this.tempBuff=[],this.state=tg,this._emitChars("/")):this._reconsumeInState(Xm)}[tg](e){Xg(e)||e===bm.SOLIDUS||e===bm.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Gm:Xm,this._emitCodePoint(e)):Zg(e)?(this.tempBuff.push(oE(e)),this._emitCodePoint(e)):eE(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(Xm)}[rg](e){Xg(e)||(e===bm.SOLIDUS||e===bm.GREATER_THAN_SIGN||e===bm.EOF?this._reconsumeInState(ig):e===bm.EQUALS_SIGN?(this._err(_m.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ng):(this._createAttr(""),this._reconsumeInState(ng)))}[ng](e){Xg(e)||e===bm.SOLIDUS||e===bm.GREATER_THAN_SIGN||e===bm.EOF?(this._leaveAttrName(ig),this._unconsume()):e===bm.EQUALS_SIGN?this._leaveAttrName(og):Zg(e)?this.currentAttr.name+=sE(e):e===bm.QUOTATION_MARK||e===bm.APOSTROPHE||e===bm.LESS_THAN_SIGN?(this._err(_m.unexpectedCharacterInAttributeName),this.currentAttr.name+=aE(e)):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentAttr.name+=ym.REPLACEMENT_CHARACTER):this.currentAttr.name+=aE(e)}[ig](e){Xg(e)||(e===bm.SOLIDUS?this.state=ug:e===bm.EQUALS_SIGN?this.state=og:e===bm.GREATER_THAN_SIGN?(this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(ng)))}[og](e){Xg(e)||(e===bm.QUOTATION_MARK?this.state=ag:e===bm.APOSTROPHE?this.state=sg:e===bm.GREATER_THAN_SIGN?(this._err(_m.missingAttributeValue),this.state=km,this._emitCurrentToken()):this._reconsumeInState(cg))}[ag](e){e===bm.QUOTATION_MARK?this.state=lg:e===bm.AMPERSAND?(this.returnState=ag,this.state=qg):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentAttr.value+=ym.REPLACEMENT_CHARACTER):e===bm.EOF?(this._err(_m.eofInTag),this._emitEOFToken()):this.currentAttr.value+=aE(e)}[sg](e){e===bm.APOSTROPHE?this.state=lg:e===bm.AMPERSAND?(this.returnState=sg,this.state=qg):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentAttr.value+=ym.REPLACEMENT_CHARACTER):e===bm.EOF?(this._err(_m.eofInTag),this._emitEOFToken()):this.currentAttr.value+=aE(e)}[cg](e){Xg(e)?this._leaveAttrValue(rg):e===bm.AMPERSAND?(this.returnState=cg,this.state=qg):e===bm.GREATER_THAN_SIGN?(this._leaveAttrValue(km),this._emitCurrentToken()):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentAttr.value+=ym.REPLACEMENT_CHARACTER):e===bm.QUOTATION_MARK||e===bm.APOSTROPHE||e===bm.LESS_THAN_SIGN||e===bm.EQUALS_SIGN||e===bm.GRAVE_ACCENT?(this._err(_m.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=aE(e)):e===bm.EOF?(this._err(_m.eofInTag),this._emitEOFToken()):this.currentAttr.value+=aE(e)}[lg](e){Xg(e)?this._leaveAttrValue(rg):e===bm.SOLIDUS?this._leaveAttrValue(ug):e===bm.GREATER_THAN_SIGN?(this._leaveAttrValue(km),this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInTag),this._emitEOFToken()):(this._err(_m.missingWhitespaceBetweenAttributes),this._reconsumeInState(rg))}[ug](e){e===bm.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInTag),this._emitEOFToken()):(this._err(_m.unexpectedSolidusInTag),this._reconsumeInState(rg))}[hg](e){e===bm.GREATER_THAN_SIGN?(this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentToken.data+=ym.REPLACEMENT_CHARACTER):this.currentToken.data+=aE(e)}[pg](e){this._consumeSequenceIfMatch(Am.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=fg):this._consumeSequenceIfMatch(Am.DOCTYPE_STRING,e,!1)?this.state=Ag:this._consumeSequenceIfMatch(Am.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=Bg:(this._err(_m.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=hg):this._ensureHibernation()||(this._err(_m.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(hg))}[fg](e){e===bm.HYPHEN_MINUS?this.state=dg:e===bm.GREATER_THAN_SIGN?(this._err(_m.abruptClosingOfEmptyComment),this.state=km,this._emitCurrentToken()):this._reconsumeInState(mg)}[dg](e){e===bm.HYPHEN_MINUS?this.state=_g:e===bm.GREATER_THAN_SIGN?(this._err(_m.abruptClosingOfEmptyComment),this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(mg))}[mg](e){e===bm.HYPHEN_MINUS?this.state=vg:e===bm.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=gg):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentToken.data+=ym.REPLACEMENT_CHARACTER):e===bm.EOF?(this._err(_m.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=aE(e)}[gg](e){e===bm.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=Eg):e===bm.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(mg)}[Eg](e){e===bm.HYPHEN_MINUS?this.state=Tg:this._reconsumeInState(mg)}[Tg](e){e===bm.HYPHEN_MINUS?this.state=yg:this._reconsumeInState(vg)}[yg](e){e!==bm.GREATER_THAN_SIGN&&e!==bm.EOF&&this._err(_m.nestedComment),this._reconsumeInState(_g)}[vg](e){e===bm.HYPHEN_MINUS?this.state=_g:e===bm.EOF?(this._err(_m.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(mg))}[_g](e){e===bm.GREATER_THAN_SIGN?(this.state=km,this._emitCurrentToken()):e===bm.EXCLAMATION_MARK?this.state=bg:e===bm.HYPHEN_MINUS?this.currentToken.data+="-":e===bm.EOF?(this._err(_m.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(mg))}[bg](e){e===bm.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=vg):e===bm.GREATER_THAN_SIGN?(this._err(_m.incorrectlyClosedComment),this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(mg))}[Ag](e){Xg(e)?this.state=Sg:e===bm.GREATER_THAN_SIGN?this._reconsumeInState(Sg):e===bm.EOF?(this._err(_m.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(_m.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(Sg))}[Sg](e){Xg(e)||(Zg(e)?(this._createDoctypeToken(sE(e)),this.state=kg):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this._createDoctypeToken(ym.REPLACEMENT_CHARACTER),this.state=kg):e===bm.GREATER_THAN_SIGN?(this._err(_m.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=km):e===bm.EOF?(this._err(_m.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(aE(e)),this.state=kg))}[kg](e){Xg(e)?this.state=Cg:e===bm.GREATER_THAN_SIGN?(this.state=km,this._emitCurrentToken()):Zg(e)?this.currentToken.name+=sE(e):e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentToken.name+=ym.REPLACEMENT_CHARACTER):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=aE(e)}[Cg](e){Xg(e)||(e===bm.GREATER_THAN_SIGN?(this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(Am.PUBLIC_STRING,e,!1)?this.state=xg:this._consumeSequenceIfMatch(Am.SYSTEM_STRING,e,!1)?this.state=Ig:this._ensureHibernation()||(this._err(_m.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hg)))}[xg](e){Xg(e)?this.state=wg:e===bm.QUOTATION_MARK?(this._err(_m.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Og):e===bm.APOSTROPHE?(this._err(_m.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Ng):e===bm.GREATER_THAN_SIGN?(this._err(_m.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(_m.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hg))}[wg](e){Xg(e)||(e===bm.QUOTATION_MARK?(this.currentToken.publicId="",this.state=Og):e===bm.APOSTROPHE?(this.currentToken.publicId="",this.state=Ng):e===bm.GREATER_THAN_SIGN?(this._err(_m.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(_m.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hg)))}[Og](e){e===bm.QUOTATION_MARK?this.state=Pg:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentToken.publicId+=ym.REPLACEMENT_CHARACTER):e===bm.GREATER_THAN_SIGN?(this._err(_m.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=km):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=aE(e)}[Ng](e){e===bm.APOSTROPHE?this.state=Pg:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentToken.publicId+=ym.REPLACEMENT_CHARACTER):e===bm.GREATER_THAN_SIGN?(this._err(_m.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=km):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=aE(e)}[Pg](e){Xg(e)?this.state=Rg:e===bm.GREATER_THAN_SIGN?(this.state=km,this._emitCurrentToken()):e===bm.QUOTATION_MARK?(this._err(_m.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Dg):e===bm.APOSTROPHE?(this._err(_m.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Mg):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(_m.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hg))}[Rg](e){Xg(e)||(e===bm.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=km):e===bm.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Dg):e===bm.APOSTROPHE?(this.currentToken.systemId="",this.state=Mg):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(_m.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hg)))}[Ig](e){Xg(e)?this.state=Lg:e===bm.QUOTATION_MARK?(this._err(_m.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Dg):e===bm.APOSTROPHE?(this._err(_m.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Mg):e===bm.GREATER_THAN_SIGN?(this._err(_m.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(_m.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hg))}[Lg](e){Xg(e)||(e===bm.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Dg):e===bm.APOSTROPHE?(this.currentToken.systemId="",this.state=Mg):e===bm.GREATER_THAN_SIGN?(this._err(_m.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=km,this._emitCurrentToken()):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(_m.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hg)))}[Dg](e){e===bm.QUOTATION_MARK?this.state=Fg:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentToken.systemId+=ym.REPLACEMENT_CHARACTER):e===bm.GREATER_THAN_SIGN?(this._err(_m.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=km):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=aE(e)}[Mg](e){e===bm.APOSTROPHE?this.state=Fg:e===bm.NULL?(this._err(_m.unexpectedNullCharacter),this.currentToken.systemId+=ym.REPLACEMENT_CHARACTER):e===bm.GREATER_THAN_SIGN?(this._err(_m.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=km):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=aE(e)}[Fg](e){Xg(e)||(e===bm.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=km):e===bm.EOF?(this._err(_m.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(_m.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Hg)))}[Hg](e){e===bm.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=km):e===bm.NULL?this._err(_m.unexpectedNullCharacter):e===bm.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Bg](e){e===bm.RIGHT_SQUARE_BRACKET?this.state=Ug:e===bm.EOF?(this._err(_m.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[Ug](e){e===bm.RIGHT_SQUARE_BRACKET?this.state=jg:(this._emitChars("]"),this._reconsumeInState(Bg))}[jg](e){e===bm.GREATER_THAN_SIGN?this.state=km:e===bm.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Bg))}[qg](e){this.tempBuff=[bm.AMPERSAND],e===bm.NUMBER_SIGN?(this.tempBuff.push(e),this.state=Kg):rE(e)?this._reconsumeInState(zg):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[zg](e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[bm.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===bm.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(_m.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Gg}[Gg](e){rE(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=aE(e):this._emitCodePoint(e):(e===bm.SEMICOLON&&this._err(_m.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Kg](e){this.charRefCode=0,e===bm.LATIN_SMALL_X||e===bm.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=$g):this._reconsumeInState(Vg)}[$g](e){!function(e){return Jg(e)||nE(e)||iE(e)}(e)?(this._err(_m.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState(Qg)}[Vg](e){Jg(e)?this._reconsumeInState(Wg):(this._err(_m.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Qg](e){nE(e)?this.charRefCode=16*this.charRefCode+e-55:iE(e)?this.charRefCode=16*this.charRefCode+e-87:Jg(e)?this.charRefCode=16*this.charRefCode+e-48:e===bm.SEMICOLON?this.state=Yg:(this._err(_m.missingSemicolonAfterCharacterReference),this._reconsumeInState(Yg))}[Wg](e){Jg(e)?this.charRefCode=10*this.charRefCode+e-48:e===bm.SEMICOLON?this.state=Yg:(this._err(_m.missingSemicolonAfterCharacterReference),this._reconsumeInState(Yg))}[Yg](){if(this.charRefCode===bm.NULL)this._err(_m.nullCharacterReference),this.charRefCode=bm.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(_m.characterReferenceOutsideUnicodeRange),this.charRefCode=bm.REPLACEMENT_CHARACTER;else if(ym.isSurrogate(this.charRefCode))this._err(_m.surrogateCharacterReference),this.charRefCode=bm.REPLACEMENT_CHARACTER;else if(ym.isUndefinedCodePoint(this.charRefCode))this._err(_m.noncharacterCharacterReference);else if(ym.isControlCodePoint(this.charRefCode)||this.charRefCode===bm.CARRIAGE_RETURN){this._err(_m.controlCharacterReference);const e=Sm[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}lE.CHARACTER_TOKEN="CHARACTER_TOKEN",lE.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",lE.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",lE.START_TAG_TOKEN="START_TAG_TOKEN",lE.END_TAG_TOKEN="END_TAG_TOKEN",lE.COMMENT_TOKEN="COMMENT_TOKEN",lE.DOCTYPE_TOKEN="DOCTYPE_TOKEN",lE.EOF_TOKEN="EOF_TOKEN",lE.HIBERNATION_TOKEN="HIBERNATION_TOKEN",lE.MODE={DATA:km,RCDATA:Cm,RAWTEXT:xm,SCRIPT_DATA:wm,PLAINTEXT:Om},lE.getTokenAttr=function(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null};var uE=lE,hE={};const pE=hE.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};hE.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},hE.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const fE=hE.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};hE.SPECIAL_ELEMENTS={[pE.HTML]:{[fE.ADDRESS]:!0,[fE.APPLET]:!0,[fE.AREA]:!0,[fE.ARTICLE]:!0,[fE.ASIDE]:!0,[fE.BASE]:!0,[fE.BASEFONT]:!0,[fE.BGSOUND]:!0,[fE.BLOCKQUOTE]:!0,[fE.BODY]:!0,[fE.BR]:!0,[fE.BUTTON]:!0,[fE.CAPTION]:!0,[fE.CENTER]:!0,[fE.COL]:!0,[fE.COLGROUP]:!0,[fE.DD]:!0,[fE.DETAILS]:!0,[fE.DIR]:!0,[fE.DIV]:!0,[fE.DL]:!0,[fE.DT]:!0,[fE.EMBED]:!0,[fE.FIELDSET]:!0,[fE.FIGCAPTION]:!0,[fE.FIGURE]:!0,[fE.FOOTER]:!0,[fE.FORM]:!0,[fE.FRAME]:!0,[fE.FRAMESET]:!0,[fE.H1]:!0,[fE.H2]:!0,[fE.H3]:!0,[fE.H4]:!0,[fE.H5]:!0,[fE.H6]:!0,[fE.HEAD]:!0,[fE.HEADER]:!0,[fE.HGROUP]:!0,[fE.HR]:!0,[fE.HTML]:!0,[fE.IFRAME]:!0,[fE.IMG]:!0,[fE.INPUT]:!0,[fE.LI]:!0,[fE.LINK]:!0,[fE.LISTING]:!0,[fE.MAIN]:!0,[fE.MARQUEE]:!0,[fE.MENU]:!0,[fE.META]:!0,[fE.NAV]:!0,[fE.NOEMBED]:!0,[fE.NOFRAMES]:!0,[fE.NOSCRIPT]:!0,[fE.OBJECT]:!0,[fE.OL]:!0,[fE.P]:!0,[fE.PARAM]:!0,[fE.PLAINTEXT]:!0,[fE.PRE]:!0,[fE.SCRIPT]:!0,[fE.SECTION]:!0,[fE.SELECT]:!0,[fE.SOURCE]:!0,[fE.STYLE]:!0,[fE.SUMMARY]:!0,[fE.TABLE]:!0,[fE.TBODY]:!0,[fE.TD]:!0,[fE.TEMPLATE]:!0,[fE.TEXTAREA]:!0,[fE.TFOOT]:!0,[fE.TH]:!0,[fE.THEAD]:!0,[fE.TITLE]:!0,[fE.TR]:!0,[fE.TRACK]:!0,[fE.UL]:!0,[fE.WBR]:!0,[fE.XMP]:!0},[pE.MATHML]:{[fE.MI]:!0,[fE.MO]:!0,[fE.MN]:!0,[fE.MS]:!0,[fE.MTEXT]:!0,[fE.ANNOTATION_XML]:!0},[pE.SVG]:{[fE.TITLE]:!0,[fE.FOREIGN_OBJECT]:!0,[fE.DESC]:!0}};const dE=hE,mE=dE.TAG_NAMES,gE=dE.NAMESPACES;function EE(e){switch(e.length){case 1:return e===mE.P;case 2:return e===mE.RB||e===mE.RP||e===mE.RT||e===mE.DD||e===mE.DT||e===mE.LI;case 3:return e===mE.RTC;case 6:return e===mE.OPTION;case 8:return e===mE.OPTGROUP}return!1}function TE(e){switch(e.length){case 1:return e===mE.P;case 2:return e===mE.RB||e===mE.RP||e===mE.RT||e===mE.DD||e===mE.DT||e===mE.LI||e===mE.TD||e===mE.TH||e===mE.TR;case 3:return e===mE.RTC;case 5:return e===mE.TBODY||e===mE.TFOOT||e===mE.THEAD;case 6:return e===mE.OPTION;case 7:return e===mE.CAPTION;case 8:return e===mE.OPTGROUP||e===mE.COLGROUP}return!1}function yE(e,t){switch(e.length){case 2:if(e===mE.TD||e===mE.TH)return t===gE.HTML;if(e===mE.MI||e===mE.MO||e===mE.MN||e===mE.MS)return t===gE.MATHML;break;case 4:if(e===mE.HTML)return t===gE.HTML;if(e===mE.DESC)return t===gE.SVG;break;case 5:if(e===mE.TABLE)return t===gE.HTML;if(e===mE.MTEXT)return t===gE.MATHML;if(e===mE.TITLE)return t===gE.SVG;break;case 6:return(e===mE.APPLET||e===mE.OBJECT)&&t===gE.HTML;case 7:return(e===mE.CAPTION||e===mE.MARQUEE)&&t===gE.HTML;case 8:return e===mE.TEMPLATE&&t===gE.HTML;case 13:return e===mE.FOREIGN_OBJECT&&t===gE.SVG;case 14:return e===mE.ANNOTATION_XML&&t===gE.MATHML}return!1}var vE=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===e){t=r;break}return t}_isInTemplate(){return this.currentTagName===mE.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===gE.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const r=this._indexOf(e)+1;this.items.splice(r,0,t),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&r===gE.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===mE.H1||e===mE.H2||e===mE.H3||e===mE.H4||e===mE.H5||e===mE.H6&&t===gE.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===mE.TD||e===mE.TH&&t===gE.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==mE.TABLE&&this.currentTagName!==mE.TEMPLATE&&this.currentTagName!==mE.HTML||this.treeAdapter.getNamespaceURI(this.current)!==gE.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==mE.TBODY&&this.currentTagName!==mE.TFOOT&&this.currentTagName!==mE.THEAD&&this.currentTagName!==mE.TEMPLATE&&this.currentTagName!==mE.HTML||this.treeAdapter.getNamespaceURI(this.current)!==gE.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==mE.TR&&this.currentTagName!==mE.TEMPLATE&&this.currentTagName!==mE.HTML||this.treeAdapter.getNamespaceURI(this.current)!==gE.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===mE.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===mE.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===gE.HTML)return!0;if(yE(r,n))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===mE.H1||t===mE.H2||t===mE.H3||t===mE.H4||t===mE.H5||t===mE.H6)&&r===gE.HTML)return!0;if(yE(t,r))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===gE.HTML)return!0;if((r===mE.UL||r===mE.OL)&&n===gE.HTML||yE(r,n))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===gE.HTML)return!0;if(r===mE.BUTTON&&n===gE.HTML||yE(r,n))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===gE.HTML){if(r===e)return!0;if(r===mE.TABLE||r===mE.TEMPLATE||r===mE.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===gE.HTML){if(t===mE.TBODY||t===mE.THEAD||t===mE.TFOOT)return!0;if(t===mE.TABLE||t===mE.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===gE.HTML){if(r===e)return!0;if(r!==mE.OPTION&&r!==mE.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;EE(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;TE(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;EE(this.currentTagName)&&this.currentTagName!==e;)this.pop()}};class _E{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const t=[];if(this.length>=3){const r=this.treeAdapter.getAttrList(e).length,n=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const o=this.entries[e];if(o.type===_E.MARKER_ENTRY)break;const a=o.element,s=this.treeAdapter.getAttrList(a);this.treeAdapter.getTagName(a)===n&&this.treeAdapter.getNamespaceURI(a)===i&&s.length===r&&t.push({idx:e,attrs:s})}}return t.length<3?[]:t}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let r=t.length;if(r){const n=this.treeAdapter.getAttrList(e),i=n.length,o=Object.create(null);for(let e=0;e<i;e++){const t=n[e];o[t.name]=t.value}for(let e=0;e<i;e++)for(let n=0;n<r;n++){const i=t[n].attrs[e];if(o[i.name]!==i.value&&(t.splice(n,1),r--),t.length<3)return}for(let e=r-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:_E.MARKER_ENTRY}),this.length++}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:_E.ELEMENT_ENTRY,element:e,token:t}),this.length++}insertElementAfterBookmark(e,t){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:_E.ELEMENT_ENTRY,element:e,token:t}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===_E.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let t=this.length-1;t>=0;t--){const r=this.entries[t];if(r.type===_E.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let t=this.length-1;t>=0;t--){const r=this.entries[t];if(r.type===_E.ELEMENT_ENTRY&&r.element===e)return r}return null}}_E.MARKER_ENTRY="MARKER_ENTRY",_E.ELEMENT_ENTRY="ELEMENT_ENTRY";var bE=_E;class AE{constructor(e){const t={},r=this._getOverriddenMethods(this,t);for(const n of Object.keys(r))"function"==typeof r[n]&&(t[n]=e[n],e[n]=r[n])}_getOverriddenMethods(){throw new Error("Not implemented")}}AE.install=function(e,t,r){e.__mixins||(e.__mixins=[]);for(let r=0;r<e.__mixins.length;r++)if(e.__mixins[r].constructor===t)return e.__mixins[r];const n=new t(e,r);return e.__mixins.push(n),n};var SE=AE;const kE=SE;var CE=class extends kE{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const r=this.pos+1,n=this.html[r];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=r),("\n"===n||"\r"===n&&"\n"!==this.html[r+1])&&(e.isEol=!0),e.col=r-e.lineStartPos+1,e.offset=e.droppedBufferSize+r,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const r=this.pos;t.dropParsedChunk.call(this);const n=r-this.pos;e.lineStartPos-=n,e.droppedBufferSize+=n,e.offset=e.droppedBufferSize+this.pos}}}};const xE=SE,wE=uE,OE=CE;var NE=class extends xE{constructor(e){super(e),this.tokenizer=e,this.posTracker=xE.install(e.preprocessor,OE),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const r={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(r){t._createDoctypeToken.call(this,r),this.currentToken.location=e.ctLoc},_createCharacterToken(r,n){t._createCharacterToken.call(this,r,n),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(r){t._createAttr.call(this,r),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(r){t._leaveAttrName.call(this,r),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(r){t._leaveAttrValue.call(this,r),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const r=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=r.startLine,this.currentCharacterToken.location.endCol=r.startCol,this.currentCharacterToken.location.endOffset=r.startOffset),this.currentToken.type===wE.EOF_TOKEN?(r.endLine=r.startLine,r.endCol=r.startCol,r.endOffset=r.startOffset):(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col+1,r.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const r=this.currentCharacterToken&&this.currentCharacterToken.location;r&&-1===r.endOffset&&(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col,r.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(wE.MODE).forEach((n=>{const i=wE.MODE[n];r[i]=function(r){e.ctLoc=e._getCurrentLocation(),t[i].call(this,r)}})),r}};const PE=SE;var RE=class extends PE{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(r){e.onItemPop(this.current),t.remove.call(this,r)}}}};const IE=SE,LE=uE,DE=NE,ME=RE,FE=hE.TAG_NAMES;var HE=class extends IE{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const r=t.location,n=this.treeAdapter.getTagName(e),i={};t.type===LE.END_TAG_TOKEN&&n===t.tagName?(i.endTag=Object.assign({},r),i.endLine=r.endLine,i.endCol=r.endCol,i.endOffset=r.endOffset):(i.endLine=r.startLine,i.endCol=r.startCol,i.endOffset=r.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}_getOverriddenMethods(e,t){return{_bootstrap(r,n){t._bootstrap.call(this,r,n),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const i=IE.install(this.tokenizer,DE);e.posTracker=i.posTracker,IE.install(this.openElements,ME,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(r){t._runParsingLoop.call(this,r);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(r){e.currentToken=r,t._processTokenInForeignContent.call(this,r)},_processToken(r){e.currentToken=r,t._processToken.call(this,r);if(r.type===LE.END_TAG_TOKEN&&(r.tagName===FE.HTML||r.tagName===FE.BODY&&this.openElements.hasInScope(FE.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];if(this.treeAdapter.getTagName(n)===r.tagName){e._setEndLocation(n,r);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const r=this.treeAdapter.getChildNodes(this.document),n=r.length;for(let t=0;t<n;t++){const n=r[t];if(this.treeAdapter.isDocumentTypeNode(n)){this.treeAdapter.setNodeSourceCodeLocation(n,e.location);break}}},_attachElementToTree(r){e._setStartLocation(r),e.lastStartTagToken=null,t._attachElementToTree.call(this,r)},_appendElement(r,n){e.lastStartTagToken=r,t._appendElement.call(this,r,n)},_insertElement(r,n){e.lastStartTagToken=r,t._insertElement.call(this,r,n)},_insertTemplate(r){e.lastStartTagToken=r,t._insertTemplate.call(this,r);const n=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(n,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,r){t._appendCommentNode.call(this,e,r);const n=this.treeAdapter.getChildNodes(r),i=n[n.length-1];this.treeAdapter.setNodeSourceCodeLocation(i,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(r){t._insertCharacters.call(this,r);const n=this._shouldFosterParentOnInsertion(),i=n&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,o=this.treeAdapter.getChildNodes(i),a=n&&e.lastFosterParentingLocation.beforeElement?o.indexOf(e.lastFosterParentingLocation.beforeElement)-1:o.length-1,s=o[a];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:e,endCol:t,endOffset:n}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:e,endCol:t,endOffset:n})}else this.treeAdapter.setNodeSourceCodeLocation(s,r.location)}}}};const BE=SE;var UE=class extends BE{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}};const jE=UE,qE=CE,zE=SE;var GE=class extends jE{constructor(e,t){super(e,t),this.posTracker=zE.install(e,qE),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}};const KE=UE,$E=GE,VE=SE;var QE=class extends KE{constructor(e,t){super(e,t);const r=VE.install(e.preprocessor,$E,t);this.posTracker=r.posTracker}};const WE=UE,YE=QE,XE=NE,JE=SE;var ZE=class extends WE{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(r,n){t._bootstrap.call(this,r,n),JE.install(this.tokenizer,YE,e.opts),JE.install(this.tokenizer,XE)},_processInputToken(r){e.ctLoc=r.location,t._processInputToken.call(this,r)},_err(t,r){e.locBeforeToken=r&&r.beforeToken,e._reportError(t)}}}},eT={};const{DOCUMENT_MODE:tT}=hE;eT.createDocument=function(){return{nodeName:"#document",mode:tT.NO_QUIRKS,childNodes:[]}},eT.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},eT.createElement=function(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},eT.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const rT=function(e){return{nodeName:"#text",value:e,parentNode:null}},nT=eT.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},iT=eT.insertBefore=function(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e};eT.setTemplateContent=function(e,t){e.content=t},eT.getTemplateContent=function(e){return e.content},eT.setDocumentType=function(e,t,r,n){let i=null;for(let t=0;t<e.childNodes.length;t++)if("#documentType"===e.childNodes[t].nodeName){i=e.childNodes[t];break}i?(i.name=t,i.publicId=r,i.systemId=n):nT(e,{nodeName:"#documentType",name:t,publicId:r,systemId:n})},eT.setDocumentMode=function(e,t){e.mode=t},eT.getDocumentMode=function(e){return e.mode},eT.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},eT.insertText=function(e,t){if(e.childNodes.length){const r=e.childNodes[e.childNodes.length-1];if("#text"===r.nodeName)return void(r.value+=t)}nT(e,rT(t))},eT.insertTextBefore=function(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&"#text"===n.nodeName?n.value+=t:iT(e,rT(t),r)},eT.adoptAttributes=function(e,t){const r=[];for(let t=0;t<e.attrs.length;t++)r.push(e.attrs[t].name);for(let n=0;n<t.length;n++)-1===r.indexOf(t[n].name)&&e.attrs.push(t[n])},eT.getFirstChild=function(e){return e.childNodes[0]},eT.getChildNodes=function(e){return e.childNodes},eT.getParentNode=function(e){return e.parentNode},eT.getAttrList=function(e){return e.attrs},eT.getTagName=function(e){return e.tagName},eT.getNamespaceURI=function(e){return e.namespaceURI},eT.getTextNodeContent=function(e){return e.value},eT.getCommentNodeContent=function(e){return e.data},eT.getDocumentTypeNodeName=function(e){return e.name},eT.getDocumentTypeNodePublicId=function(e){return e.publicId},eT.getDocumentTypeNodeSystemId=function(e){return e.systemId},eT.isTextNode=function(e){return"#text"===e.nodeName},eT.isCommentNode=function(e){return"#comment"===e.nodeName},eT.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},eT.isElementNode=function(e){return!!e.tagName},eT.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},eT.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation},eT.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)};var oT={};const{DOCUMENT_MODE:aT}=hE,sT="html",cT=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],lT=cT.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),uT=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],hT=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],pT=hT.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function fT(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function dT(e,t){for(let r=0;r<t.length;r++)if(0===e.indexOf(t[r]))return!0;return!1}oT.isConforming=function(e){return e.name===sT&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},oT.getDocumentMode=function(e){if(e.name!==sT)return aT.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return aT.QUIRKS;let r=e.publicId;if(null!==r){if(r=r.toLowerCase(),uT.indexOf(r)>-1)return aT.QUIRKS;let e=null===t?lT:cT;if(dT(r,e))return aT.QUIRKS;if(e=null===t?hT:pT,dT(r,e))return aT.LIMITED_QUIRKS}return aT.NO_QUIRKS},oT.serializeContent=function(e,t,r){let n="!DOCTYPE ";return e&&(n+=e),t?n+=" PUBLIC "+fT(t):r&&(n+=" SYSTEM"),null!==r&&(n+=" "+fT(r)),n};var mT={};const gT=uE,ET=hE,TT=ET.TAG_NAMES,yT=ET.NAMESPACES,vT=ET.ATTRS,_T={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},bT={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},AT={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:yT.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:yT.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:yT.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:yT.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:yT.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:yT.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:yT.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:yT.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:yT.XML},"xml:space":{prefix:"xml",name:"space",namespace:yT.XML},xmlns:{prefix:"",name:"xmlns",namespace:yT.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:yT.XMLNS}},ST=mT.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},kT={[TT.B]:!0,[TT.BIG]:!0,[TT.BLOCKQUOTE]:!0,[TT.BODY]:!0,[TT.BR]:!0,[TT.CENTER]:!0,[TT.CODE]:!0,[TT.DD]:!0,[TT.DIV]:!0,[TT.DL]:!0,[TT.DT]:!0,[TT.EM]:!0,[TT.EMBED]:!0,[TT.H1]:!0,[TT.H2]:!0,[TT.H3]:!0,[TT.H4]:!0,[TT.H5]:!0,[TT.H6]:!0,[TT.HEAD]:!0,[TT.HR]:!0,[TT.I]:!0,[TT.IMG]:!0,[TT.LI]:!0,[TT.LISTING]:!0,[TT.MENU]:!0,[TT.META]:!0,[TT.NOBR]:!0,[TT.OL]:!0,[TT.P]:!0,[TT.PRE]:!0,[TT.RUBY]:!0,[TT.S]:!0,[TT.SMALL]:!0,[TT.SPAN]:!0,[TT.STRONG]:!0,[TT.STRIKE]:!0,[TT.SUB]:!0,[TT.SUP]:!0,[TT.TABLE]:!0,[TT.TT]:!0,[TT.U]:!0,[TT.UL]:!0,[TT.VAR]:!0};mT.causesExit=function(e){const t=e.tagName;return!!(t===TT.FONT&&(null!==gT.getTokenAttr(e,vT.COLOR)||null!==gT.getTokenAttr(e,vT.SIZE)||null!==gT.getTokenAttr(e,vT.FACE)))||kT[t]},mT.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},mT.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const r=bT[e.attrs[t].name];r&&(e.attrs[t].name=r)}},mT.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const r=AT[e.attrs[t].name];r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}},mT.adjustTokenSVGTagName=function(e){const t=ST[e.tagName];t&&(e.tagName=t)},mT.isIntegrationPoint=function(e,t,r,n){return!(n&&n!==yT.HTML||!function(e,t,r){if(t===yT.MATHML&&e===TT.ANNOTATION_XML)for(let e=0;e<r.length;e++)if(r[e].name===vT.ENCODING){const t=r[e].value.toLowerCase();return t===_T.TEXT_HTML||t===_T.APPLICATION_XML}return t===yT.SVG&&(e===TT.FOREIGN_OBJECT||e===TT.DESC||e===TT.TITLE)}(e,t,r))||!(n&&n!==yT.MATHML||!function(e,t){return t===yT.MATHML&&(e===TT.MI||e===TT.MO||e===TT.MN||e===TT.MS||e===TT.MTEXT)}(e,t))};const CT=uE,xT=vE,wT=bE,OT=HE,NT=ZE,PT=SE,RT=eT,IT=function(e,t){return[e,t=t||Object.create(null)].reduce(((e,t)=>(Object.keys(t).forEach((r=>{e[r]=t[r]})),e)),Object.create(null))},LT=oT,DT=mT,MT=pm,FT=um,HT=hE,BT=HT.TAG_NAMES,UT=HT.NAMESPACES,jT=HT.ATTRS,qT={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:RT},zT="hidden",GT=8,KT=3,$T="INITIAL_MODE",VT="BEFORE_HTML_MODE",QT="BEFORE_HEAD_MODE",WT="IN_HEAD_MODE",YT="IN_HEAD_NO_SCRIPT_MODE",XT="AFTER_HEAD_MODE",JT="IN_BODY_MODE",ZT="TEXT_MODE",ey="IN_TABLE_MODE",ty="IN_TABLE_TEXT_MODE",ry="IN_CAPTION_MODE",ny="IN_COLUMN_GROUP_MODE",iy="IN_TABLE_BODY_MODE",oy="IN_ROW_MODE",ay="IN_CELL_MODE",sy="IN_SELECT_MODE",cy="IN_SELECT_IN_TABLE_MODE",ly="IN_TEMPLATE_MODE",uy="AFTER_BODY_MODE",hy="IN_FRAMESET_MODE",py="AFTER_FRAMESET_MODE",fy="AFTER_AFTER_BODY_MODE",dy="AFTER_AFTER_FRAMESET_MODE",my={[BT.TR]:oy,[BT.TBODY]:iy,[BT.THEAD]:iy,[BT.TFOOT]:iy,[BT.CAPTION]:ry,[BT.COLGROUP]:ny,[BT.TABLE]:ey,[BT.BODY]:JT,[BT.FRAMESET]:hy},gy={[BT.CAPTION]:ey,[BT.COLGROUP]:ey,[BT.TBODY]:ey,[BT.TFOOT]:ey,[BT.THEAD]:ey,[BT.COL]:ny,[BT.TR]:iy,[BT.TD]:oy,[BT.TH]:oy},Ey={[$T]:{[CT.CHARACTER_TOKEN]:Ry,[CT.NULL_CHARACTER_TOKEN]:Ry,[CT.WHITESPACE_CHARACTER_TOKEN]:Cy,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const r=t.forceQuirks?HT.DOCUMENT_MODE.QUIRKS:LT.getDocumentMode(t);LT.isConforming(t)||e._err(MT.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=VT},[CT.START_TAG_TOKEN]:Ry,[CT.END_TAG_TOKEN]:Ry,[CT.EOF_TOKEN]:Ry},[VT]:{[CT.CHARACTER_TOKEN]:Iy,[CT.NULL_CHARACTER_TOKEN]:Iy,[CT.WHITESPACE_CHARACTER_TOKEN]:Cy,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){t.tagName===BT.HTML?(e._insertElement(t,UT.HTML),e.insertionMode=QT):Iy(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r!==BT.HTML&&r!==BT.HEAD&&r!==BT.BODY&&r!==BT.BR||Iy(e,t)},[CT.EOF_TOKEN]:Iy},[QT]:{[CT.CHARACTER_TOKEN]:Ly,[CT.NULL_CHARACTER_TOKEN]:Ly,[CT.WHITESPACE_CHARACTER_TOKEN]:Cy,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:xy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.HEAD?(e._insertElement(t,UT.HTML),e.headElement=e.openElements.current,e.insertionMode=WT):Ly(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.HEAD||r===BT.BODY||r===BT.HTML||r===BT.BR?Ly(e,t):e._err(MT.endTagWithoutMatchingOpenElement)},[CT.EOF_TOKEN]:Ly},[WT]:{[CT.CHARACTER_TOKEN]:Fy,[CT.NULL_CHARACTER_TOKEN]:Fy,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:xy,[CT.START_TAG_TOKEN]:Dy,[CT.END_TAG_TOKEN]:My,[CT.EOF_TOKEN]:Fy},[YT]:{[CT.CHARACTER_TOKEN]:Hy,[CT.NULL_CHARACTER_TOKEN]:Hy,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:xy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.BASEFONT||r===BT.BGSOUND||r===BT.HEAD||r===BT.LINK||r===BT.META||r===BT.NOFRAMES||r===BT.STYLE?Dy(e,t):r===BT.NOSCRIPT?e._err(MT.nestedNoscriptInHead):Hy(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.NOSCRIPT?(e.openElements.pop(),e.insertionMode=WT):r===BT.BR?Hy(e,t):e._err(MT.endTagWithoutMatchingOpenElement)},[CT.EOF_TOKEN]:Hy},[XT]:{[CT.CHARACTER_TOKEN]:By,[CT.NULL_CHARACTER_TOKEN]:By,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:xy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.BODY?(e._insertElement(t,UT.HTML),e.framesetOk=!1,e.insertionMode=JT):r===BT.FRAMESET?(e._insertElement(t,UT.HTML),e.insertionMode=hy):r===BT.BASE||r===BT.BASEFONT||r===BT.BGSOUND||r===BT.LINK||r===BT.META||r===BT.NOFRAMES||r===BT.SCRIPT||r===BT.STYLE||r===BT.TEMPLATE||r===BT.TITLE?(e._err(MT.abandonedHeadElementChild),e.openElements.push(e.headElement),Dy(e,t),e.openElements.remove(e.headElement)):r===BT.HEAD?e._err(MT.misplacedStartTagForHeadElement):By(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.BODY||r===BT.HTML||r===BT.BR?By(e,t):r===BT.TEMPLATE?My(e,t):e._err(MT.endTagWithoutMatchingOpenElement)},[CT.EOF_TOKEN]:By},[JT]:{[CT.CHARACTER_TOKEN]:jy,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Uy,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:Jy,[CT.END_TAG_TOKEN]:rv,[CT.EOF_TOKEN]:nv},[ZT]:{[CT.CHARACTER_TOKEN]:Ny,[CT.NULL_CHARACTER_TOKEN]:Ny,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:Cy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:Cy,[CT.END_TAG_TOKEN]:function(e,t){t.tagName===BT.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[CT.EOF_TOKEN]:function(e,t){e._err(MT.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[ey]:{[CT.CHARACTER_TOKEN]:iv,[CT.NULL_CHARACTER_TOKEN]:iv,[CT.WHITESPACE_CHARACTER_TOKEN]:iv,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:ov,[CT.END_TAG_TOKEN]:av,[CT.EOF_TOKEN]:nv},[ty]:{[CT.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[CT.COMMENT_TOKEN]:cv,[CT.DOCTYPE_TOKEN]:cv,[CT.START_TAG_TOKEN]:cv,[CT.END_TAG_TOKEN]:cv,[CT.EOF_TOKEN]:cv},[ry]:{[CT.CHARACTER_TOKEN]:jy,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Uy,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.CAPTION||r===BT.COL||r===BT.COLGROUP||r===BT.TBODY||r===BT.TD||r===BT.TFOOT||r===BT.TH||r===BT.THEAD||r===BT.TR?e.openElements.hasInTableScope(BT.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(BT.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ey,e._processToken(t)):Jy(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.CAPTION||r===BT.TABLE?e.openElements.hasInTableScope(BT.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(BT.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ey,r===BT.TABLE&&e._processToken(t)):r!==BT.BODY&&r!==BT.COL&&r!==BT.COLGROUP&&r!==BT.HTML&&r!==BT.TBODY&&r!==BT.TD&&r!==BT.TFOOT&&r!==BT.TH&&r!==BT.THEAD&&r!==BT.TR&&rv(e,t)},[CT.EOF_TOKEN]:nv},[ny]:{[CT.CHARACTER_TOKEN]:lv,[CT.NULL_CHARACTER_TOKEN]:lv,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.COL?(e._appendElement(t,UT.HTML),t.ackSelfClosing=!0):r===BT.TEMPLATE?Dy(e,t):lv(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.COLGROUP?e.openElements.currentTagName===BT.COLGROUP&&(e.openElements.pop(),e.insertionMode=ey):r===BT.TEMPLATE?My(e,t):r!==BT.COL&&lv(e,t)},[CT.EOF_TOKEN]:nv},[iy]:{[CT.CHARACTER_TOKEN]:iv,[CT.NULL_CHARACTER_TOKEN]:iv,[CT.WHITESPACE_CHARACTER_TOKEN]:iv,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,UT.HTML),e.insertionMode=oy):r===BT.TH||r===BT.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(BT.TR),e.insertionMode=oy,e._processToken(t)):r===BT.CAPTION||r===BT.COL||r===BT.COLGROUP||r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ey,e._processToken(t)):ov(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD?e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ey):r===BT.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ey,e._processToken(t)):(r!==BT.BODY&&r!==BT.CAPTION&&r!==BT.COL&&r!==BT.COLGROUP||r!==BT.HTML&&r!==BT.TD&&r!==BT.TH&&r!==BT.TR)&&av(e,t)},[CT.EOF_TOKEN]:nv},[oy]:{[CT.CHARACTER_TOKEN]:iv,[CT.NULL_CHARACTER_TOKEN]:iv,[CT.WHITESPACE_CHARACTER_TOKEN]:iv,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.TH||r===BT.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,UT.HTML),e.insertionMode=ay,e.activeFormattingElements.insertMarker()):r===BT.CAPTION||r===BT.COL||r===BT.COLGROUP||r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD||r===BT.TR?e.openElements.hasInTableScope(BT.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=iy,e._processToken(t)):ov(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.TR?e.openElements.hasInTableScope(BT.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=iy):r===BT.TABLE?e.openElements.hasInTableScope(BT.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=iy,e._processToken(t)):r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD?(e.openElements.hasInTableScope(r)||e.openElements.hasInTableScope(BT.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=iy,e._processToken(t)):(r!==BT.BODY&&r!==BT.CAPTION&&r!==BT.COL&&r!==BT.COLGROUP||r!==BT.HTML&&r!==BT.TD&&r!==BT.TH)&&av(e,t)},[CT.EOF_TOKEN]:nv},[ay]:{[CT.CHARACTER_TOKEN]:jy,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Uy,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.CAPTION||r===BT.COL||r===BT.COLGROUP||r===BT.TBODY||r===BT.TD||r===BT.TFOOT||r===BT.TH||r===BT.THEAD||r===BT.TR?(e.openElements.hasInTableScope(BT.TD)||e.openElements.hasInTableScope(BT.TH))&&(e._closeTableCell(),e._processToken(t)):Jy(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.TD||r===BT.TH?e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=oy):r===BT.TABLE||r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD||r===BT.TR?e.openElements.hasInTableScope(r)&&(e._closeTableCell(),e._processToken(t)):r!==BT.BODY&&r!==BT.CAPTION&&r!==BT.COL&&r!==BT.COLGROUP&&r!==BT.HTML&&rv(e,t)},[CT.EOF_TOKEN]:nv},[sy]:{[CT.CHARACTER_TOKEN]:Ny,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:uv,[CT.END_TAG_TOKEN]:hv,[CT.EOF_TOKEN]:nv},[cy]:{[CT.CHARACTER_TOKEN]:Ny,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.CAPTION||r===BT.TABLE||r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD||r===BT.TR||r===BT.TD||r===BT.TH?(e.openElements.popUntilTagNamePopped(BT.SELECT),e._resetInsertionMode(),e._processToken(t)):uv(e,t)},[CT.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.CAPTION||r===BT.TABLE||r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD||r===BT.TR||r===BT.TD||r===BT.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(BT.SELECT),e._resetInsertionMode(),e._processToken(t)):hv(e,t)},[CT.EOF_TOKEN]:nv},[ly]:{[CT.CHARACTER_TOKEN]:jy,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Uy,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;if(r===BT.BASE||r===BT.BASEFONT||r===BT.BGSOUND||r===BT.LINK||r===BT.META||r===BT.NOFRAMES||r===BT.SCRIPT||r===BT.STYLE||r===BT.TEMPLATE||r===BT.TITLE)Dy(e,t);else{const n=gy[r]||JT;e._popTmplInsertionMode(),e._pushTmplInsertionMode(n),e.insertionMode=n,e._processToken(t)}},[CT.END_TAG_TOKEN]:function(e,t){t.tagName===BT.TEMPLATE&&My(e,t)},[CT.EOF_TOKEN]:pv},[uy]:{[CT.CHARACTER_TOKEN]:fv,[CT.NULL_CHARACTER_TOKEN]:fv,[CT.WHITESPACE_CHARACTER_TOKEN]:Uy,[CT.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){t.tagName===BT.HTML?Jy(e,t):fv(e,t)},[CT.END_TAG_TOKEN]:function(e,t){t.tagName===BT.HTML?e.fragmentContext||(e.insertionMode=fy):fv(e,t)},[CT.EOF_TOKEN]:Py},[hy]:{[CT.CHARACTER_TOKEN]:Cy,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.FRAMESET?e._insertElement(t,UT.HTML):r===BT.FRAME?(e._appendElement(t,UT.HTML),t.ackSelfClosing=!0):r===BT.NOFRAMES&&Dy(e,t)},[CT.END_TAG_TOKEN]:function(e,t){t.tagName!==BT.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===BT.FRAMESET||(e.insertionMode=py))},[CT.EOF_TOKEN]:Py},[py]:{[CT.CHARACTER_TOKEN]:Cy,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Ny,[CT.COMMENT_TOKEN]:wy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.NOFRAMES&&Dy(e,t)},[CT.END_TAG_TOKEN]:function(e,t){t.tagName===BT.HTML&&(e.insertionMode=dy)},[CT.EOF_TOKEN]:Py},[fy]:{[CT.CHARACTER_TOKEN]:dv,[CT.NULL_CHARACTER_TOKEN]:dv,[CT.WHITESPACE_CHARACTER_TOKEN]:Uy,[CT.COMMENT_TOKEN]:Oy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){t.tagName===BT.HTML?Jy(e,t):dv(e,t)},[CT.END_TAG_TOKEN]:dv,[CT.EOF_TOKEN]:Py},[dy]:{[CT.CHARACTER_TOKEN]:Cy,[CT.NULL_CHARACTER_TOKEN]:Cy,[CT.WHITESPACE_CHARACTER_TOKEN]:Uy,[CT.COMMENT_TOKEN]:Oy,[CT.DOCTYPE_TOKEN]:Cy,[CT.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.NOFRAMES&&Dy(e,t)},[CT.END_TAG_TOKEN]:Cy,[CT.EOF_TOKEN]:Py}};var Ty=class{constructor(e){this.options=IT(qT,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&PT.install(this,OT),this.options.onParseError&&PT.install(this,NT,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(BT.TEMPLATE,UT.HTML,[]));const r=this.treeAdapter.createElement("documentmock",UT.HTML,[]);this._bootstrap(r,t),this.treeAdapter.getTagName(t)===BT.TEMPLATE&&this._pushTmplInsertionMode(ly),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const n=this.treeAdapter.getFirstChild(r),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(n,i),i}_bootstrap(e,t){this.tokenizer=new CT(this.options),this.stopped=!1,this.insertionMode=$T,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new xT(this.document,this.treeAdapter),this.activeFormattingElements=new wT(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===CT.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===CT.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==UT.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,UT.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=ZT}switchToPlaintextParsing(){this.insertionMode=ZT,this.originalInsertionMode=JT,this.tokenizer.state=CT.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===BT.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===UT.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===BT.TITLE||e===BT.TEXTAREA?this.tokenizer.state=CT.MODE.RCDATA:e===BT.STYLE||e===BT.XMP||e===BT.IFRAME||e===BT.NOEMBED||e===BT.NOFRAMES||e===BT.NOSCRIPT?this.tokenizer.state=CT.MODE.RAWTEXT:e===BT.SCRIPT?this.tokenizer.state=CT.MODE.SCRIPT_DATA:e===BT.PLAINTEXT&&(this.tokenizer.state=CT.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",n=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,r,n)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r)}_insertElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,UT.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,UT.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(BT.HTML,UT.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(t);if(r===UT.HTML)return!1;if(this.treeAdapter.getTagName(t)===BT.ANNOTATION_XML&&r===UT.MATHML&&e.type===CT.START_TAG_TOKEN&&e.tagName===BT.SVG)return!1;const n=e.type===CT.CHARACTER_TOKEN||e.type===CT.NULL_CHARACTER_TOKEN||e.type===CT.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===CT.START_TAG_TOKEN&&e.tagName!==BT.MGLYPH&&e.tagName!==BT.MALIGNMARK)&&!n||!this._isIntegrationPoint(t,UT.MATHML))&&((e.type!==CT.START_TAG_TOKEN&&!n||!this._isIntegrationPoint(t,UT.HTML))&&e.type!==CT.EOF_TOKEN)}_processToken(e){Ey[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){Ey[JT][e.type](this,e)}_processTokenInForeignContent(e){e.type===CT.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===CT.NULL_CHARACTER_TOKEN?function(e,t){t.chars=FT.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===CT.WHITESPACE_CHARACTER_TOKEN?Ny(this,e):e.type===CT.COMMENT_TOKEN?wy(this,e):e.type===CT.START_TAG_TOKEN?function(e,t){if(DT.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==UT.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===UT.MATHML?DT.adjustTokenMathMLAttrs(t):n===UT.SVG&&(DT.adjustTokenSVGTagName(t),DT.adjustTokenSVGAttrs(t)),DT.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}(this,e):e.type===CT.END_TAG_TOKEN&&function(e,t){for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===UT.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(n).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(n);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===CT.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(MT.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const r=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return DT.isIntegrationPoint(r,n,i,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,r=null;do{if(t--,r=this.activeFormattingElements.entries[t],r.type===wT.MARKER_ENTRY||this.openElements.contains(r.element)){t++;break}}while(t>0);for(let n=t;n<e;n++)r=this.activeFormattingElements.entries[n],this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=oy}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(BT.P),this.openElements.popUntilTagNamePopped(BT.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let r=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(r=this.fragmentContext));const n=this.treeAdapter.getTagName(r),i=my[n];if(i){this.insertionMode=i;break}if(!(t||n!==BT.TD&&n!==BT.TH)){this.insertionMode=ay;break}if(!t&&n===BT.HEAD){this.insertionMode=WT;break}if(n===BT.SELECT){this._resetInsertionModeForSelect(e);break}if(n===BT.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(n===BT.HTML){this.insertionMode=this.headElement?XT:QT;break}if(t){this.insertionMode=JT;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],r=this.treeAdapter.getTagName(e);if(r===BT.TEMPLATE)break;if(r===BT.TABLE)return void(this.insertionMode=cy)}this.insertionMode=sy}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===BT.TABLE||t===BT.TBODY||t===BT.TFOOT||t===BT.THEAD||t===BT.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t],n=this.treeAdapter.getTagName(r),i=this.treeAdapter.getNamespaceURI(r);if(n===BT.TEMPLATE&&i===UT.HTML){e.parent=this.treeAdapter.getTemplateContent(r);break}if(n===BT.TABLE){e.parent=this.treeAdapter.getParentNode(r),e.parent?e.beforeElement=r:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e);return HT.SPECIAL_ELEMENTS[r][t]}};function yy(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagName)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):tv(e,t),r}function vy(e,t){let r=null;for(let n=e.openElements.stackTop;n>=0;n--){const i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i)&&(r=i)}return r||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),r}function _y(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==r;o++,a=i){i=e.openElements.getCommonAncestor(a);const r=e.activeFormattingElements.getElementEntry(a),s=r&&o>=KT;!r||s?(s&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(a)):(a=by(e,r),n===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(a,n),n=a)}return n}function by(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function Ay(e,t,r){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(r);else{const n=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);n===BT.TEMPLATE&&i===UT.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Sy(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),i=r.token,o=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,r.token),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,o)}function ky(e,t){let r;for(let n=0;n<GT&&(r=yy(e,t),r);n++){const t=vy(e,r);if(!t)break;e.activeFormattingElements.bookmark=r;const n=_y(e,t,r.element),i=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(n),Ay(e,i,n),Sy(e,t,r)}}function Cy(){}function xy(e){e._err(MT.misplacedDoctype)}function wy(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function Oy(e,t){e._appendCommentNode(t,e.document)}function Ny(e,t){e._insertCharacters(t)}function Py(e){e.stopped=!0}function Ry(e,t){e._err(MT.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,HT.DOCUMENT_MODE.QUIRKS),e.insertionMode=VT,e._processToken(t)}function Iy(e,t){e._insertFakeRootElement(),e.insertionMode=QT,e._processToken(t)}function Ly(e,t){e._insertFakeElement(BT.HEAD),e.headElement=e.openElements.current,e.insertionMode=WT,e._processToken(t)}function Dy(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.BASE||r===BT.BASEFONT||r===BT.BGSOUND||r===BT.LINK||r===BT.META?(e._appendElement(t,UT.HTML),t.ackSelfClosing=!0):r===BT.TITLE?e._switchToTextParsing(t,CT.MODE.RCDATA):r===BT.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,CT.MODE.RAWTEXT):(e._insertElement(t,UT.HTML),e.insertionMode=YT):r===BT.NOFRAMES||r===BT.STYLE?e._switchToTextParsing(t,CT.MODE.RAWTEXT):r===BT.SCRIPT?e._switchToTextParsing(t,CT.MODE.SCRIPT_DATA):r===BT.TEMPLATE?(e._insertTemplate(t,UT.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=ly,e._pushTmplInsertionMode(ly)):r===BT.HEAD?e._err(MT.misplacedStartTagForHeadElement):Fy(e,t)}function My(e,t){const r=t.tagName;r===BT.HEAD?(e.openElements.pop(),e.insertionMode=XT):r===BT.BODY||r===BT.BR||r===BT.HTML?Fy(e,t):r===BT.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==BT.TEMPLATE&&e._err(MT.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(BT.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(MT.endTagWithoutMatchingOpenElement)}function Fy(e,t){e.openElements.pop(),e.insertionMode=XT,e._processToken(t)}function Hy(e,t){const r=t.type===CT.EOF_TOKEN?MT.openElementsLeftAfterEof:MT.disallowedContentInNoscriptInHead;e._err(r),e.openElements.pop(),e.insertionMode=WT,e._processToken(t)}function By(e,t){e._insertFakeElement(BT.BODY),e.insertionMode=JT,e._processToken(t)}function Uy(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function jy(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function qy(e,t){e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._insertElement(t,UT.HTML)}function zy(e,t){e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._insertElement(t,UT.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Gy(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,UT.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ky(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,UT.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function $y(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,UT.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Vy(e,t){e._appendElement(t,UT.HTML),t.ackSelfClosing=!0}function Qy(e,t){e._switchToTextParsing(t,CT.MODE.RAWTEXT)}function Wy(e,t){e.openElements.currentTagName===BT.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,UT.HTML)}function Yy(e,t){e.openElements.hasInScope(BT.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,UT.HTML)}function Xy(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,UT.HTML)}function Jy(e,t){const r=t.tagName;switch(r.length){case 1:r===BT.I||r===BT.S||r===BT.B||r===BT.U?Gy(e,t):r===BT.P?qy(e,t):r===BT.A?function(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(BT.A);r&&(ky(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,UT.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):Xy(e,t);break;case 2:r===BT.DL||r===BT.OL||r===BT.UL?qy(e,t):r===BT.H1||r===BT.H2||r===BT.H3||r===BT.H4||r===BT.H5||r===BT.H6?function(e,t){e.openElements.hasInButtonScope(BT.P)&&e._closePElement();const r=e.openElements.currentTagName;r!==BT.H1&&r!==BT.H2&&r!==BT.H3&&r!==BT.H4&&r!==BT.H5&&r!==BT.H6||e.openElements.pop(),e._insertElement(t,UT.HTML)}(e,t):r===BT.LI||r===BT.DD||r===BT.DT?function(e,t){e.framesetOk=!1;const r=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){const n=e.openElements.items[t],i=e.treeAdapter.getTagName(n);let o=null;if(r===BT.LI&&i===BT.LI?o=BT.LI:r!==BT.DD&&r!==BT.DT||i!==BT.DD&&i!==BT.DT||(o=i),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(i!==BT.ADDRESS&&i!==BT.DIV&&i!==BT.P&&e._isSpecialElement(n))break}e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._insertElement(t,UT.HTML)}(e,t):r===BT.EM||r===BT.TT?Gy(e,t):r===BT.BR?$y(e,t):r===BT.HR?function(e,t){e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._appendElement(t,UT.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t):r===BT.RB?Yy(e,t):r===BT.RT||r===BT.RP?function(e,t){e.openElements.hasInScope(BT.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(BT.RTC),e._insertElement(t,UT.HTML)}(e,t):r!==BT.TH&&r!==BT.TD&&r!==BT.TR&&Xy(e,t);break;case 3:r===BT.DIV||r===BT.DIR||r===BT.NAV?qy(e,t):r===BT.PRE?zy(e,t):r===BT.BIG?Gy(e,t):r===BT.IMG||r===BT.WBR?$y(e,t):r===BT.XMP?function(e,t){e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,CT.MODE.RAWTEXT)}(e,t):r===BT.SVG?function(e,t){e._reconstructActiveFormattingElements(),DT.adjustTokenSVGAttrs(t),DT.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,UT.SVG):e._insertElement(t,UT.SVG),t.ackSelfClosing=!0}(e,t):r===BT.RTC?Yy(e,t):r!==BT.COL&&Xy(e,t);break;case 4:r===BT.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):r===BT.BASE||r===BT.LINK||r===BT.META?Dy(e,t):r===BT.BODY?function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}(e,t):r===BT.MAIN||r===BT.MENU?qy(e,t):r===BT.FORM?function(e,t){const r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._insertElement(t,UT.HTML),r||(e.formElement=e.openElements.current))}(e,t):r===BT.CODE||r===BT.FONT?Gy(e,t):r===BT.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(BT.NOBR)&&(ky(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,UT.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):r===BT.AREA?$y(e,t):r===BT.MATH?function(e,t){e._reconstructActiveFormattingElements(),DT.adjustTokenMathMLAttrs(t),DT.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,UT.MATHML):e._insertElement(t,UT.MATHML),t.ackSelfClosing=!0}(e,t):r===BT.MENU?function(e,t){e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._insertElement(t,UT.HTML)}(e,t):r!==BT.HEAD&&Xy(e,t);break;case 5:r===BT.STYLE||r===BT.TITLE?Dy(e,t):r===BT.ASIDE?qy(e,t):r===BT.SMALL?Gy(e,t):r===BT.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==HT.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._insertElement(t,UT.HTML),e.framesetOk=!1,e.insertionMode=ey}(e,t):r===BT.EMBED?$y(e,t):r===BT.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,UT.HTML);const r=CT.getTokenAttr(t,jT.TYPE);r&&r.toLowerCase()===zT||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):r===BT.PARAM||r===BT.TRACK?Vy(e,t):r===BT.IMAGE?function(e,t){t.tagName=BT.IMG,$y(e,t)}(e,t):r!==BT.FRAME&&r!==BT.TBODY&&r!==BT.TFOOT&&r!==BT.THEAD&&Xy(e,t);break;case 6:r===BT.SCRIPT?Dy(e,t):r===BT.CENTER||r===BT.FIGURE||r===BT.FOOTER||r===BT.HEADER||r===BT.HGROUP||r===BT.DIALOG?qy(e,t):r===BT.BUTTON?function(e,t){e.openElements.hasInScope(BT.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(BT.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,UT.HTML),e.framesetOk=!1}(e,t):r===BT.STRIKE||r===BT.STRONG?Gy(e,t):r===BT.APPLET||r===BT.OBJECT?Ky(e,t):r===BT.KEYGEN?$y(e,t):r===BT.SOURCE?Vy(e,t):r===BT.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,CT.MODE.RAWTEXT)}(e,t):r===BT.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,UT.HTML),e.framesetOk=!1,e.insertionMode===ey||e.insertionMode===ry||e.insertionMode===iy||e.insertionMode===oy||e.insertionMode===ay?e.insertionMode=cy:e.insertionMode=sy}(e,t):r===BT.OPTION?Wy(e,t):Xy(e,t);break;case 7:r===BT.BGSOUND?Dy(e,t):r===BT.DETAILS||r===BT.ADDRESS||r===BT.ARTICLE||r===BT.SECTION||r===BT.SUMMARY?qy(e,t):r===BT.LISTING?zy(e,t):r===BT.MARQUEE?Ky(e,t):r===BT.NOEMBED?Qy(e,t):r!==BT.CAPTION&&Xy(e,t);break;case 8:r===BT.BASEFONT?Dy(e,t):r===BT.FRAMESET?function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,UT.HTML),e.insertionMode=hy)}(e,t):r===BT.FIELDSET?qy(e,t):r===BT.TEXTAREA?function(e,t){e._insertElement(t,UT.HTML),e.skipNextNewLine=!0,e.tokenizer.state=CT.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=ZT}(e,t):r===BT.TEMPLATE?Dy(e,t):r===BT.NOSCRIPT?e.options.scriptingEnabled?Qy(e,t):Xy(e,t):r===BT.OPTGROUP?Wy(e,t):r!==BT.COLGROUP&&Xy(e,t);break;case 9:r===BT.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(BT.P)&&e._closePElement(),e._insertElement(t,UT.HTML),e.tokenizer.state=CT.MODE.PLAINTEXT}(e,t):Xy(e,t);break;case 10:r===BT.BLOCKQUOTE||r===BT.FIGCAPTION?qy(e,t):Xy(e,t);break;default:Xy(e,t)}}function Zy(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function ev(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function tv(e,t){const r=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){const n=e.openElements.items[t];if(e.treeAdapter.getTagName(n)===r){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilElementPopped(n);break}if(e._isSpecialElement(n))break}}function rv(e,t){const r=t.tagName;switch(r.length){case 1:r===BT.A||r===BT.B||r===BT.I||r===BT.S||r===BT.U?ky(e,t):r===BT.P?function(e){e.openElements.hasInButtonScope(BT.P)||e._insertFakeElement(BT.P),e._closePElement()}(e):tv(e,t);break;case 2:r===BT.DL||r===BT.UL||r===BT.OL?Zy(e,t):r===BT.LI?function(e){e.openElements.hasInListItemScope(BT.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(BT.LI),e.openElements.popUntilTagNamePopped(BT.LI))}(e):r===BT.DD||r===BT.DT?function(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}(e,t):r===BT.H1||r===BT.H2||r===BT.H3||r===BT.H4||r===BT.H5||r===BT.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):r===BT.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(BT.BR),e.openElements.pop(),e.framesetOk=!1}(e):r===BT.EM||r===BT.TT?ky(e,t):tv(e,t);break;case 3:r===BT.BIG?ky(e,t):r===BT.DIR||r===BT.DIV||r===BT.NAV||r===BT.PRE?Zy(e,t):tv(e,t);break;case 4:r===BT.BODY?function(e){e.openElements.hasInScope(BT.BODY)&&(e.insertionMode=uy)}(e):r===BT.HTML?function(e,t){e.openElements.hasInScope(BT.BODY)&&(e.insertionMode=uy,e._processToken(t))}(e,t):r===BT.FORM?function(e){const t=e.openElements.tmplCount>0,r=e.formElement;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(BT.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(BT.FORM):e.openElements.remove(r))}(e):r===BT.CODE||r===BT.FONT||r===BT.NOBR?ky(e,t):r===BT.MAIN||r===BT.MENU?Zy(e,t):tv(e,t);break;case 5:r===BT.ASIDE?Zy(e,t):r===BT.SMALL?ky(e,t):tv(e,t);break;case 6:r===BT.CENTER||r===BT.FIGURE||r===BT.FOOTER||r===BT.HEADER||r===BT.HGROUP||r===BT.DIALOG?Zy(e,t):r===BT.APPLET||r===BT.OBJECT?ev(e,t):r===BT.STRIKE||r===BT.STRONG?ky(e,t):tv(e,t);break;case 7:r===BT.ADDRESS||r===BT.ARTICLE||r===BT.DETAILS||r===BT.SECTION||r===BT.SUMMARY||r===BT.LISTING?Zy(e,t):r===BT.MARQUEE?ev(e,t):tv(e,t);break;case 8:r===BT.FIELDSET?Zy(e,t):r===BT.TEMPLATE?My(e,t):tv(e,t);break;case 10:r===BT.BLOCKQUOTE||r===BT.FIGCAPTION?Zy(e,t):tv(e,t);break;default:tv(e,t)}}function nv(e,t){e.tmplInsertionModeStackTop>-1?pv(e,t):e.stopped=!0}function iv(e,t){const r=e.openElements.currentTagName;r===BT.TABLE||r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD||r===BT.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ty,e._processToken(t)):sv(e,t)}function ov(e,t){const r=t.tagName;switch(r.length){case 2:r===BT.TD||r===BT.TH||r===BT.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(BT.TBODY),e.insertionMode=iy,e._processToken(t)}(e,t):sv(e,t);break;case 3:r===BT.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(BT.COLGROUP),e.insertionMode=ny,e._processToken(t)}(e,t):sv(e,t);break;case 4:r===BT.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,UT.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):sv(e,t);break;case 5:r===BT.TABLE?function(e,t){e.openElements.hasInTableScope(BT.TABLE)&&(e.openElements.popUntilTagNamePopped(BT.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):r===BT.STYLE?Dy(e,t):r===BT.TBODY||r===BT.TFOOT||r===BT.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,UT.HTML),e.insertionMode=iy}(e,t):r===BT.INPUT?function(e,t){const r=CT.getTokenAttr(t,jT.TYPE);r&&r.toLowerCase()===zT?e._appendElement(t,UT.HTML):sv(e,t),t.ackSelfClosing=!0}(e,t):sv(e,t);break;case 6:r===BT.SCRIPT?Dy(e,t):sv(e,t);break;case 7:r===BT.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,UT.HTML),e.insertionMode=ry}(e,t):sv(e,t);break;case 8:r===BT.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,UT.HTML),e.insertionMode=ny}(e,t):r===BT.TEMPLATE?Dy(e,t):sv(e,t);break;default:sv(e,t)}}function av(e,t){const r=t.tagName;r===BT.TABLE?e.openElements.hasInTableScope(BT.TABLE)&&(e.openElements.popUntilTagNamePopped(BT.TABLE),e._resetInsertionMode()):r===BT.TEMPLATE?My(e,t):r!==BT.BODY&&r!==BT.CAPTION&&r!==BT.COL&&r!==BT.COLGROUP&&r!==BT.HTML&&r!==BT.TBODY&&r!==BT.TD&&r!==BT.TFOOT&&r!==BT.TH&&r!==BT.THEAD&&r!==BT.TR&&sv(e,t)}function sv(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=r}function cv(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)sv(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function lv(e,t){e.openElements.currentTagName===BT.COLGROUP&&(e.openElements.pop(),e.insertionMode=ey,e._processToken(t))}function uv(e,t){const r=t.tagName;r===BT.HTML?Jy(e,t):r===BT.OPTION?(e.openElements.currentTagName===BT.OPTION&&e.openElements.pop(),e._insertElement(t,UT.HTML)):r===BT.OPTGROUP?(e.openElements.currentTagName===BT.OPTION&&e.openElements.pop(),e.openElements.currentTagName===BT.OPTGROUP&&e.openElements.pop(),e._insertElement(t,UT.HTML)):r===BT.INPUT||r===BT.KEYGEN||r===BT.TEXTAREA||r===BT.SELECT?e.openElements.hasInSelectScope(BT.SELECT)&&(e.openElements.popUntilTagNamePopped(BT.SELECT),e._resetInsertionMode(),r!==BT.SELECT&&e._processToken(t)):r!==BT.SCRIPT&&r!==BT.TEMPLATE||Dy(e,t)}function hv(e,t){const r=t.tagName;if(r===BT.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],r=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===BT.OPTION&&r===BT.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===BT.OPTGROUP&&e.openElements.pop()}else r===BT.OPTION?e.openElements.currentTagName===BT.OPTION&&e.openElements.pop():r===BT.SELECT&&e.openElements.hasInSelectScope(BT.SELECT)?(e.openElements.popUntilTagNamePopped(BT.SELECT),e._resetInsertionMode()):r===BT.TEMPLATE&&My(e,t)}function pv(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(BT.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function fv(e,t){e.insertionMode=JT,e._processToken(t)}function dv(e,t){e.insertionMode=JT,e._processToken(t)}var mv=Ty;class gv{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}function Ev(e,t){const r={},n={};let i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new gv(r,n,t)}function Tv(e){return e.toLowerCase()}gv.prototype.property={},gv.prototype.normal={},gv.prototype.space=null;class yv{constructor(e,t){this.property=e,this.attribute=t}}yv.prototype.space=null,yv.prototype.boolean=!1,yv.prototype.booleanish=!1,yv.prototype.overloadedBoolean=!1,yv.prototype.number=!1,yv.prototype.commaSeparated=!1,yv.prototype.spaceSeparated=!1,yv.prototype.commaOrSpaceSeparated=!1,yv.prototype.mustUseProperty=!1,yv.prototype.defined=!1;let vv=0;const _v=wv(),bv=wv(),Av=wv(),Sv=wv(),kv=wv(),Cv=wv(),xv=wv();function wv(){return 2**++vv}var Ov=Object.freeze({__proto__:null,boolean:_v,booleanish:bv,overloadedBoolean:Av,number:Sv,spaceSeparated:kv,commaSeparated:Cv,commaOrSpaceSeparated:xv});const Nv=Object.keys(Ov);class Pv extends yv{constructor(e,t,r,n){let i=-1;if(super(e,t),Rv(this,"space",n),"number"==typeof r)for(;++i<Nv.length;){const e=Nv[i];Rv(this,Nv[i],(r&Ov[e])===Ov[e])}}}function Rv(e,t,r){r&&(e[t]=r)}Pv.prototype.defined=!0;const Iv={}.hasOwnProperty;function Lv(e){const t={},r={};let n;for(n in e.properties)if(Iv.call(e.properties,n)){const i=e.properties[n],o=new Pv(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[Tv(n)]=n,r[Tv(o.attribute)]=n}return new gv(t,r,e.space)}const Dv=Lv({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Mv=Lv({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Fv(e,t){return t in e?e[t]:t}function Hv(e,t){return Fv(e,t.toLowerCase())}const Bv=Lv({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Hv,properties:{xmlns:null,xmlnsXLink:null}}),Uv=Lv({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:bv,ariaAutoComplete:null,ariaBusy:bv,ariaChecked:bv,ariaColCount:Sv,ariaColIndex:Sv,ariaColSpan:Sv,ariaControls:kv,ariaCurrent:null,ariaDescribedBy:kv,ariaDetails:null,ariaDisabled:bv,ariaDropEffect:kv,ariaErrorMessage:null,ariaExpanded:bv,ariaFlowTo:kv,ariaGrabbed:bv,ariaHasPopup:null,ariaHidden:bv,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kv,ariaLevel:Sv,ariaLive:null,ariaModal:bv,ariaMultiLine:bv,ariaMultiSelectable:bv,ariaOrientation:null,ariaOwns:kv,ariaPlaceholder:null,ariaPosInSet:Sv,ariaPressed:bv,ariaReadOnly:bv,ariaRelevant:null,ariaRequired:bv,ariaRoleDescription:kv,ariaRowCount:Sv,ariaRowIndex:Sv,ariaRowSpan:Sv,ariaSelected:bv,ariaSetSize:Sv,ariaSort:null,ariaValueMax:Sv,ariaValueMin:Sv,ariaValueNow:Sv,ariaValueText:null,role:null}}),jv=Lv({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Hv,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Cv,acceptCharset:kv,accessKey:kv,action:null,allow:null,allowFullScreen:_v,allowPaymentRequest:_v,allowUserMedia:_v,alt:null,as:null,async:_v,autoCapitalize:null,autoComplete:kv,autoFocus:_v,autoPlay:_v,capture:_v,charSet:null,checked:_v,cite:null,className:kv,cols:Sv,colSpan:null,content:null,contentEditable:bv,controls:_v,controlsList:kv,coords:Sv|Cv,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_v,defer:_v,dir:null,dirName:null,disabled:_v,download:Av,draggable:bv,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_v,formTarget:null,headers:kv,height:Sv,hidden:_v,high:Sv,href:null,hrefLang:null,htmlFor:kv,httpEquiv:kv,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:_v,itemId:null,itemProp:kv,itemRef:kv,itemScope:_v,itemType:kv,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_v,low:Sv,manifest:null,max:null,maxLength:Sv,media:null,method:null,min:null,minLength:Sv,multiple:_v,muted:_v,name:null,nonce:null,noModule:_v,noValidate:_v,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:_v,optimum:Sv,pattern:null,ping:kv,placeholder:null,playsInline:_v,poster:null,preload:null,readOnly:_v,referrerPolicy:null,rel:kv,required:_v,reversed:_v,rows:Sv,rowSpan:Sv,sandbox:kv,scope:null,scoped:_v,seamless:_v,selected:_v,shape:null,size:Sv,sizes:null,slot:null,span:Sv,spellCheck:bv,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Sv,step:null,style:null,tabIndex:Sv,target:null,title:null,translate:null,type:null,typeMustMatch:_v,useMap:null,value:bv,width:Sv,wrap:null,align:null,aLink:null,archive:kv,axis:null,background:null,bgColor:null,border:Sv,borderColor:null,bottomMargin:Sv,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_v,declare:_v,event:null,face:null,frame:null,frameBorder:null,hSpace:Sv,leftMargin:Sv,link:null,longDesc:null,lowSrc:null,marginHeight:Sv,marginWidth:Sv,noResize:_v,noHref:_v,noShade:_v,noWrap:_v,object:null,profile:null,prompt:null,rev:null,rightMargin:Sv,rules:null,scheme:null,scrolling:bv,standby:null,summary:null,text:null,topMargin:Sv,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Sv,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_v,disableRemotePlayback:_v,prefix:null,property:null,results:Sv,security:null,unselectable:null}}),qv=Lv({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Fv,properties:{about:xv,accentHeight:Sv,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Sv,amplitude:Sv,arabicForm:null,ascent:Sv,attributeName:null,attributeType:null,azimuth:Sv,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Sv,by:null,calcMode:null,capHeight:Sv,className:kv,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Sv,diffuseConstant:Sv,direction:null,display:null,dur:null,divisor:Sv,dominantBaseline:null,download:_v,dx:null,dy:null,edgeMode:null,editable:null,elevation:Sv,enableBackground:null,end:null,event:null,exponent:Sv,externalResourcesRequired:null,fill:null,fillOpacity:Sv,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Cv,g2:Cv,glyphName:Cv,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Sv,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Sv,horizOriginX:Sv,horizOriginY:Sv,id:null,ideographic:Sv,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Sv,k:Sv,k1:Sv,k2:Sv,k3:Sv,k4:Sv,kernelMatrix:xv,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Sv,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Sv,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Sv,overlineThickness:Sv,paintOrder:null,panose1:null,path:null,pathLength:Sv,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:kv,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Sv,pointsAtY:Sv,pointsAtZ:Sv,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xv,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xv,rev:xv,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xv,requiredFeatures:xv,requiredFonts:xv,requiredFormats:xv,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Sv,specularExponent:Sv,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Sv,strikethroughThickness:Sv,string:null,stroke:null,strokeDashArray:xv,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Sv,strokeOpacity:Sv,strokeWidth:null,style:null,surfaceScale:Sv,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xv,tabIndex:Sv,tableValues:null,target:null,targetX:Sv,targetY:Sv,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xv,to:null,transform:null,u1:null,u2:null,underlinePosition:Sv,underlineThickness:Sv,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Sv,values:null,vAlphabetic:Sv,vMathematical:Sv,vectorEffect:null,vHanging:Sv,vIdeographic:Sv,version:null,vertAdvY:Sv,vertOriginX:Sv,vertOriginY:Sv,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Sv,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),zv=/^data[-\w.:]+$/i,Gv=/-[a-z]/g,Kv=/[A-Z]/g;function $v(e,t){const r=Tv(t);let n=t,i=yv;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&"data"===r.slice(0,4)&&zv.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Gv,Qv);n="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Gv.test(e)){let r=e.replace(Kv,Vv);"-"!==r.charAt(0)&&(r="-"+r),t="data"+r}}i=Pv}return new i(n,t)}function Vv(e){return"-"+e.toLowerCase()}function Qv(e){return e.charAt(1).toUpperCase()}const Wv=Ev([Mv,Dv,Bv,Uv,jv],"html"),Yv=Ev([Mv,Dv,Bv,Uv,qv],"svg"),Xv=/[#.]/g;function Jv(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Zv(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,o=!1;for(;!o;){-1===n&&(n=r.length,o=!0);const e=r.slice(i,n).trim();!e&&o||t.push(e),i=n+1,n=r.indexOf(",",i)}return t}const e_=new Set(["menu","submit","reset","button"]),t_={}.hasOwnProperty;function r_(e,t,r){const n=r&&function(e){const t={};let r=-1;for(;++r<e.length;)t[e[r].toLowerCase()]=e[r];return t}(r);return function(r,i,...o){let a,s=-1;if(null==r)a={type:"root",children:[]},o.unshift(i);else if(a=function(e,t){const r=e||"",n={};let i,o,a=0;for(;a<r.length;){Xv.lastIndex=a;const e=Xv.exec(r),t=r.slice(a,e?e.index:r.length);t&&(i?"#"===i?n.id=t:Array.isArray(n.className)?n.className.push(t):n.className=[t]:o=t,a+=t.length),e&&(i=e[0],a++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}(r,t),a.tagName=a.tagName.toLowerCase(),n&&t_.call(n,a.tagName)&&(a.tagName=n[a.tagName]),function(e,t){if(null==e||"object"!=typeof e||Array.isArray(e))return!1;if("input"===t||!e.type||"string"!=typeof e.type)return!0;if("children"in e&&Array.isArray(e.children))return!1;if("button"===t)return e_.has(e.type.toLowerCase());return!("value"in e)}(i,a.tagName)){let t;for(t in i)t_.call(i,t)&&n_(e,a.properties,t,i[t])}else o.unshift(i);for(;++s<o.length;)i_(a.children,o[s]);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function n_(e,t,r,n){const i=$v(e,r);let o,a=-1;if(null!=n){if("number"==typeof n){if(Number.isNaN(n))return;o=n}else o="boolean"==typeof n?n:"string"==typeof n?i.spaceSeparated?Jv(n):i.commaSeparated?Zv(n):i.commaOrSpaceSeparated?Jv(Zv(n).join(" ")):o_(i,i.property,n):Array.isArray(n)?n.concat():"style"===i.property?function(e){const t=[];let r;for(r in e)t_.call(e,r)&&t.push([r,e[r]].join(": "));return t.join("; ")}(n):String(n);if(Array.isArray(o)){const e=[];for(;++a<o.length;)e[a]=o_(i,i.property,o[a]);o=e}"className"===i.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function i_(e,t){let r=-1;if(null==t);else if("string"==typeof t||"number"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++r<t.length;)i_(e,t[r]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?i_(e,t.children):e.push(t)}}function o_(e,t,r){if("string"==typeof r){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(""===r||Tv(r)===Tv(t)))return!0}return r}const a_=r_(Wv,"div"),s_=r_(Yv,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);const c_={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},l_={}.hasOwnProperty,u_=Object.prototype;function h_(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},f_(e,n,r),r}case"#document":case"#document-fragment":{const n=t,i="mode"in n&&("quirks"===n.mode||"limited-quirks"===n.mode);if(r={type:"root",children:p_(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const t=String(e.file),n=function(e){const t=String(e),r=[],n=/\r?\n|\r/g;for(;n.test(t);)r.push(n.lastIndex);return r.push(t.length+1),{toPoint:function(e){let t=-1;if("number"==typeof e&&e>-1&&e<r[r.length-1])for(;++t<r.length;)if(r[t]>e)return{line:t+1,column:e-(t>0?r[t-1]:0)+1,offset:e};return{line:void 0,column:void 0,offset:void 0}},toOffset:function(e){const t=e&&e.line,n=e&&e.column;if("number"==typeof t&&"number"==typeof n&&!Number.isNaN(t)&&!Number.isNaN(n)&&t-1 in r){const e=(r[t-2]||0)+n-1||0;if(e>-1&&e<r[r.length-1])return e}return-1}}}(t),i=n.toPoint(0),o=n.toPoint(t.length);r.position={start:i,end:o}}return r}case"#documentType":return r={type:"doctype"},f_(e,t,r),r;case"#text":{const n=t;return r={type:"text",value:n.value},f_(e,n,r),r}default:return r=function(e,t){const r=e.schema;e.schema=t.namespaceURI===c_.svg?Yv:Wv;let n=-1;const i={};for(;++n<t.attrs.length;){const e=t.attrs[n],r=(e.prefix?e.prefix+":":"")+e.name;l_.call(u_,r)||(i[r]=e.value)}const o="svg"===e.schema.space?s_:a_,a=o(t.tagName,i,p_(e,t.childNodes));if(f_(e,t,a),"template"===a.tagName){const r=t,n=r.sourceCodeLocation,i=n&&n.startTag&&m_(n.startTag),o=n&&n.endTag&&m_(n.endTag),s=h_(e,r.content);i&&o&&e.file&&(s.position={start:i.end,end:o.start}),a.content=s}return e.schema=r,a}(e,t),r}}function p_(e,t){let r=-1;const n=[];for(;++r<t.length;)n[r]=h_(e,t[r]);return n}function f_(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=d_(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function d_(e,t,r){const n=m_(r);if("element"===t.type){const i=t.children[t.children.length-1];if(n&&!r.endTag&&i&&i.position&&i.position.end&&(n.end=Object.assign({},i.position.end)),e.verbose){const n={};let i;if(r.attrs)for(i in r.attrs)l_.call(r.attrs,i)&&(n[$v(e.schema,i).property]=m_(r.attrs[i]));t.data={position:{opening:m_(r.startTag),closing:r.endTag?m_(r.endTag):null,properties:n}}}}return n}function m_(e){const t=g_({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=g_({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function g_(e){return e.line&&e.column?e:void 0}const E_={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `\x3c!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `\x3c!--`. Expected `--\x3e`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},T_="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",y_={2:!0,1:!1,0:null};const v_=function(e,t,r,n,i){const o=__(t);if(null!=r&&("number"!=typeof r||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index for child node");if(!(null==n||n.type&&n.children))throw new Error("Expected parent node");if(!e||!e.type||"string"!=typeof e.type)return!1;if(null==n!=(null==r))throw new Error("Expected both parent and index");return o.call(i,e,r,n)},__=function(e){if(null==e)return A_;if("string"==typeof e)return function(e){return t;function t(t){return A_(t)&&t.tagName===e}}(e);if("object"==typeof e)return function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=__(e[r]);return b_(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].call(this,...e))return!0;return!1}}(e);if("function"==typeof e)return b_(e);throw new Error("Expected function, string, or array as test")};function b_(e){return function(t,...r){return A_(t)&&Boolean(e.call(this,t,...r))}}function A_(e){return Boolean(e&&"object"==typeof e&&"element"===e.type&&"string"==typeof e.tagName)}const S_=__(["audio","canvas","embed","iframe","img","math","object","picture","svg","video"]);const k_=["address","article","aside","blockquote","body","br","caption","center","col","colgroup","dd","dialog","dir","div","dl","dt","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","legend","li","li","listing","main","menu","nav","ol","optgroup","option","p","plaintext","pre","section","summary","table","tbody","td","td","tfoot","th","th","thead","tr","ul","wbr","xmp"],C_=["button","input","select","textarea"],x_=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"],w_=is(["doctype","comment"]);function O_(e={}){const t=function(e){return t;function t(t){return String(t).replace(/[\t\n\v\f\r ]+/g,e)}}(e.newlines?F_:H_);return e=>{N_(e,{collapse:t,whitespace:"normal"})}}function N_(e,t){if("children"in e){const r=Object.assign({},t);return("root"===e.type||L_(e))&&(r.before=!0,r.after=!0),r.whitespace=function(e,t){if("tagName"in e&&e.properties)switch(e.tagName){case"listing":case"plaintext":case"script":case"style":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return e.properties.wrap?"pre-wrap":"pre";case"td":case"th":return e.properties.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}return t.whitespace}(e,t),function(e,t){let r=t.before;const n=t.after,i=e.children;let o=i.length,a=-1;for(;++a<o;){const e=N_(i[a],Object.assign({},t,{before:r,after:P_(i,a,n)}));e.remove?(i.splice(a,1),a--,o--):e.ignore||(r=e.stripAtStart),I_(i[a])&&(r=!1)}return{remove:!1,ignore:!1,stripAtStart:Boolean(r||n)}}(e,r)}if("text"===e.type){if("normal"===t.whitespace)return function(e,t){const r=t.collapse(e.value),n={remove:!1,ignore:!1,stripAtStart:!1};let i=0,o=r.length;t.before&&M_(r.charAt(0))&&i++;i!==o&&M_(r.charAt(o-1))&&(t.after?o--:n.stripAtStart=!0);i===o?n.remove=!0:e.value=r.slice(i,o);return n}(e,t);"nowrap"===t.whitespace&&(e.value=t.collapse(e.value))}return{remove:!1,ignore:w_(e),stripAtStart:!1}}function P_(e,t,r){for(;++t<e.length;){const r=e[t];let n=R_(r);if(void 0===n&&"children"in r&&!D_(r)&&(n=P_(r.children,-1)),"boolean"==typeof n)return n}return r}function R_(e){if("element"===e.type){if(I_(e))return!1;if(L_(e))return!0}else if("text"===e.type){if(!function(e){const t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}(e))return!1}else if(!w_(e))return!1}function I_(e){return S_(e)||v_(e,C_)}function L_(e){return v_(e,k_)}function D_(e){return Boolean("properties"in e&&e.properties&&e.properties.hidden)||w_(e)||v_(e,x_)}function M_(e){return" "===e||"\n"===e}function F_(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function H_(){return" "}function B_(e,t){const r=t.children||[],n=[];let i=-1;for(;++i<r.length;){const o=q_(e,r[i],t);Array.isArray(o)?n.push(...o):o&&n.push(o)}let o=0,a=n.length;for(;o<a&&"break"===n[o].type;)o++;for(;a>o&&"break"===n[a-1].type;)a--;return 0===o&&a===n.length?n:n.slice(o,a)}const U_={}.hasOwnProperty;function j_(e,t){return e.wrapText?t:t.replace(/\r?\n|\r/g," ")}function q_(e,t,r){let n;if("element"===t.type){if(t.properties&&"ignore"===t.properties.dataMdast)return;U_.call(e.handlers,t.tagName)&&(n=e.handlers[t.tagName])}else U_.call(e.handlers,t.type)&&(n=e.handlers[t.type]);return"function"==typeof n?n(e,t,r):function(e,t){if("string"==typeof t.value)return e(t,"text",j_(e,t.value));return B_(e,t)}(e,t)}const z_={}.hasOwnProperty;function G_(e,t){const r="string"==typeof t&&function(e){return Boolean(e&&"object"==typeof e&&"type"in e)}(e)&&"element"===e.type&&e.properties&&z_.call(e.properties,t)&&e.properties[t];return null!=r&&!1!==r}const K_=new Set(["pingback","prefetch","stylesheet"]);const $_=__(["a","abbr","area","b","bdi","bdo","br","button","cite","code","data","datalist","del","dfn","em","i","input","ins","kbd","keygen","label","map","mark","meter","noscript","output","progress","q","ruby","s","samp","script","select","small","span","strong","sub","sup","template","textarea","time","u","var","wbr"]),V_=__("meta");function Q_(e){return Boolean(function(e){return e&&"object"==typeof e&&"type"in e}(e)&&("text"===e.type||$_(e)||S_(e)||function(e){if(!v_(e,"link"))return!1;if(G_(e,"itemProp"))return!0;const t=(e.properties||{}).rel||[];let r=-1;if(!Array.isArray(t)||0===t.length)return!1;for(;++r<t.length;)if(!K_.has(String(t[r])))return!1;return!0}(e)||V_(e)&&G_(e,"itemProp")))}const W_=is(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function Y_(e){return J_(e,(function(e){const t=e[0];if(1===e.length&&"text"===t.type&&(" "===t.value||"\n"===t.value))return[];return{type:"paragraph",children:e}}))}function X_(e){let t,r=-1;for(;++r<e.length;)if(t=e[r],!eb(t)||"children"in t&&X_(t.children))return!0;return!1}function J_(e,t,r){const n=r||tb,i=function(e){let t,r=[],n=-1;for(;++n<e.length;)t=e[n],"delete"!==t.type&&"link"!==t.type||!X_(t.children)?r.push(t):r=r.concat(Z_(t));return r}(e);let o,a,s=[],c=-1;for(;++c<i.length;)a=i[c],eb(a)?(o||(o=[]),o.push(a)):(o&&(s=s.concat(t(o)),o=void 0),s=s.concat(n(a)));return o&&(s=s.concat(t(o))),s}function Z_(e){return J_(e.children,(function(t){const{children:r,...n}=e;return{...ei(!0,{},n),children:t}}),(function(t){if("children"in t&&"children"in e){const{children:r,...n}=e;return{...t,children:[{...ei(!0,{},n),children:t.children}]}}return{...t}}))}function eb(e){return e.data&&e.data.hName?Q_({type:"element",tagName:e.data.hName,properties:{},children:[]}):W_(e)}function tb(e){return e}function rb(e,t){return Y_(B_(e,t))}function nb(e,t){return null==t?"":e.frozenBaseUrl?String(new URL(t,e.frozenBaseUrl)):t}const ib=function(e,t,r){const n=is(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t];return null},ob=/\n/g,ab=/[\t ]+/g,sb=__("br"),cb=__("p"),lb=__(["th","td"]),ub=__("tr"),hb=__(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),pb=__(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function fb(e,t={}){const r="children"in e?e.children:[],n=pb(e),i=Eb(e,{whitespace:t.whitespace||"normal",breakBefore:!1,breakAfter:!1}),o=[];"text"!==e.type&&"comment"!==e.type||o.push(...mb(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let a=-1;for(;++a<r.length;)o.push(...db(r[a],e,{whitespace:i,breakBefore:a?void 0:n,breakAfter:a<r.length-1?sb(r[a+1]):n}));const s=[];let c;for(a=-1;++a<o.length;){const e=o[a];"number"==typeof e?void 0!==c&&e>c&&(c=e):e&&(void 0!==c&&c>-1&&s.push("\n".repeat(c)||" "),c=-1,s.push(e))}return s.join("")}function db(e,t,r){return"element"===e.type?function(e,t,r){const n=Eb(e,r),i=e.children||[];let o,a,s=-1,c=[];if(hb(e))return c;sb(e)||ub(e)&&ib(t,e,ub)?a="\n":cb(e)?(o=2,a=2):pb(e)&&(o=1,a=1);for(;++s<i.length;)c=c.concat(db(i[s],e,{whitespace:n,breakBefore:s?void 0:o,breakAfter:s<i.length-1?sb(i[s+1]):a}));lb(e)&&ib(t,e,lb)&&c.push("\t");o&&c.unshift(o);a&&c.push(a);return c}(e,t,r):"text"===e.type?"normal"===r.whitespace?mb(e,r):function(e){return[String(e.value)]}(e):[]}function mb(e,t){const r=String(e.value),n=[],i=[];let o=0;for(;o<=r.length;){ob.lastIndex=o;const e=ob.exec(r),i=e&&"index"in e?e.index:r.length;n.push(gb(r.slice(o,i).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==o||t.breakBefore,i!==r.length||t.breakAfter)),o=i+1}let a,s=-1;for(;++s<n.length;)8203===n[s].charCodeAt(n[s].length-1)||s<n.length-1&&8203===n[s+1].charCodeAt(0)?(i.push(n[s]),a=void 0):n[s]?("number"==typeof a&&i.push(a),i.push(n[s]),a=0):0!==s&&s!==n.length-1||i.push(0);return i}function gb(e,t,r){const n=[];let i,o=0;for(;o<e.length;){ab.lastIndex=o;const r=ab.exec(e);i=r?r.index:e.length,o||i||!r||t||n.push(""),o!==i&&n.push(e.slice(o,i)),o=r?i+r[0].length:i}return o===i||r||n.push(""),n.join(" ")}function Eb(e,t){if("element"===e.type){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}const Tb="language-",yb=__("pre"),vb=__("code");function _b(e,t){const r=t.children;let n,i,o=-1;if(yb(t))for(;++o<r.length;){const e=r[o];if(vb(e)&&e.properties&&e.properties.className&&Array.isArray(e.properties.className)){n=e.properties.className;break}}if(n)for(o=-1;++o<n.length;)if(String(n[o]).slice(0,Tb.length)===Tb){i=String(n[o]).slice(Tb.length);break}return e(t,"code",{lang:i||null,meta:null},function(e){const t=String(e);let r=t.length;for(;r>0;){const e=t.codePointAt(r-1);if(void 0===e||10!==e&&13!==e)break;r--}return t.slice(0,r)}(j_(e,fb(t))))}function bb(e,t){return e(t,"delete",B_(e,t))}function Ab(e){let t=-1;if(e.length>1)for(;++t<e.length;)if(e[t].spread)return!0;return!1}function Sb(e,t){const r=B_(e,t);let n=-1;for(;++n<r.length;){const e=r[n];"listItem"!==e.type&&(r[n]={type:"listItem",spread:!1,checked:null,children:[e]})}return r}const kb=__("div"),Cb=__("dt"),xb=__("dd");function wb(e,t){const r=Sb(e,{type:"element",tagName:"x",children:t});return 0===r.length?[]:1===r.length?r[0].children:[{type:"list",ordered:!1,start:null,spread:Ab(r),children:r}]}function Ob(e,t){return e(t,"emphasis",B_(e,t))}function Nb(e,t){const r=Number(t.tagName.charAt(1))||1,n=e.wrapText;e.wrapText=!1;const i=e(t,"heading",{depth:r},B_(e,t));return e.wrapText=n,i}function Pb(e,t){const r=t.properties;return e(t,"image",{url:nb(e,String(r.src||"")||null),title:r.title||null,alt:r.alt||""})}function Rb(e,t){return e(t,"inlineCode",j_(e,fb(t)))}const Ib=__("option");function Lb(e,t,r){const n=r||t.properties;let i=Db(t);const o=Math.min(Number.parseInt(String(n.size),10),0)||(n.multiple?4:1);let a=-1;const s=[],c=[];for(;++a<i.length;)G_(i[a],"selected")&&s.push(i[a]);for(i=(s.length>0?s:i).slice(0,o),a=-1;++a<i.length;){const t=i[a],r=j_(e,fb(t)),n=t.properties,o=r||String(n.label||""),s=String(n.value||"")||r;c.push([s,o===s?null:o])}return c}function Db(e){const t=e.children;let r,n=-1,i=[];for(;++n<t.length;)r=t[n],Array.isArray(r.children)&&(i=i.concat(Db(r))),Ib(r)&&!G_(r,"disabled")&&i.push(r);return i}const Mb=__("datalist");const Fb=__("p"),Hb=__("input");function Bb(e,t){const r=t.children[0];let n,i,o=null;Fb(r)&&(n=r.children[0],Hb(n)&&n.properties&&("checkbox"===n.properties.type||"radio"===n.properties.type)&&(o=Boolean(n.properties.checked),i={...t,children:[{...r,children:r.children.slice(1)},...t.children.slice(1)]}));const a=rb(e,i||t);return e(t,"listItem",{spread:a.length>1,checked:o},a)}const Ub=__("ol");function jb(e,t){const r=Ub(t),n=Sb(e,t);let i=null;return r&&(i=G_(t,"start")?Number.parseInt(String(t.properties.start),10):1),e(t,"list",{ordered:r,start:i,spread:Ab(n)},n)}const qb=__("source"),zb=__("video");function Gb(e,t){let r=B_(e,t);const n=t.properties,i=zb(t)&&String(n.poster||"");let o,a=String(n.src||""),s=-1,c=!1;if(fc({type:"root",children:r},"link",(function(){return c=!0,ls})),c||X_(r))return r;for(;!a&&++s<t.children.length;)o=t.children[s],qb(o)&&(a=String(o.properties.src||""));return i&&(r=[{type:"image",title:null,url:nb(e,i),alt:Si({children:r})}]),{type:"link",title:t.properties.title||null,url:nb(e,a),children:r}}function Kb(e,t){const r=B_(e,t);if(r.length>0)return e(t,"paragraph",r)}function $b(e,t){return e(t,"strong",B_(e,t))}function Vb(e,t){const r=e.wrapText;e.wrapText=!1;const n=e(t,"tableCell",B_(e,t));if(t.properties&&(t.properties.rowSpan||t.properties.colSpan)){const e=n.data||(n.data={});t.properties.rowSpan&&(e.rowSpan=t.properties.rowSpan),t.properties.colSpan&&(e.colSpan=t.properties.colSpan)}return e.wrapText=r,n}const Qb=__("thead"),Wb=__("tr"),Yb=__(["th","td"]);function Xb(e){const t=[];let r,n,i=-1;for(;++i<e.length;)r=e[i],"tableCell"===r.type?(n&&(r.children.unshift(...n),n=void 0),t.push(r)):(n||(n=[]),n.push(r));return n&&(r=t[t.length-1],r||(r={type:"tableCell",children:[]},t.push(r)),r.children.push(...n)),t}const Jb={root:function(e,t){let r=B_(e,t);return(e.document||X_(r))&&(r=Y_(r)),e(t,"root",r)},text:function(e,t){return e(t,"text",j_(e,t.value))},comment:function(e,t){return e(t,"html","\x3c!--"+j_(e,t.value)+"--\x3e")},doctype:Zb,applet:Zb,area:Zb,basefont:Zb,bgsound:Zb,caption:Zb,col:Zb,colgroup:Zb,command:Zb,content:Zb,datalist:Zb,dialog:Zb,element:Zb,embed:Zb,frame:Zb,frameset:Zb,isindex:Zb,keygen:Zb,link:Zb,math:Zb,menu:Zb,menuitem:Zb,meta:Zb,nextid:Zb,noembed:Zb,noframes:Zb,optgroup:Zb,option:Zb,param:Zb,script:Zb,shadow:Zb,source:Zb,spacer:Zb,style:Zb,svg:Zb,template:Zb,title:Zb,track:Zb,abbr:B_,acronym:B_,bdi:B_,bdo:B_,big:B_,blink:B_,button:B_,canvas:B_,cite:B_,data:B_,details:B_,dfn:B_,font:B_,ins:B_,label:B_,map:B_,marquee:B_,meter:B_,nobr:B_,noscript:B_,object:B_,output:B_,progress:B_,rb:B_,rbc:B_,rp:B_,rt:B_,rtc:B_,ruby:B_,slot:B_,small:B_,span:B_,sup:B_,sub:B_,tbody:B_,tfoot:B_,thead:B_,time:B_,address:rb,article:rb,aside:rb,body:rb,center:rb,div:rb,fieldset:rb,figcaption:rb,figure:rb,form:rb,footer:rb,header:rb,hgroup:rb,html:rb,legend:rb,main:rb,multicol:rb,nav:rb,picture:rb,section:rb,a:function(e,t){const r=t.properties;return e(t,"link",{title:r.title||null,url:nb(e,String(r.href||"")||null)},B_(e,t))},audio:Gb,b:$b,base:function(e,t){e.baseFound||(e.frozenBaseUrl=String(t.properties&&t.properties.href||"")||null,e.baseFound=!0)},blockquote:function(e,t){return e(t,"blockquote",rb(e,t))},br:function(e,t){return e.wrapText?e(t,"break"):e(t,"text"," ")},code:Rb,dir:jb,dl:function(e,t){const r=t.children;let n=-1,i=[];const o=[];let a,s,c={titles:[],definitions:[]};for(;++n<r.length;)a=r[n],i=i.concat(kb(a)?a.children:a);for(n=-1;++n<i.length;)a=i[n],Cb(a)?(xb(i[n-1])&&(o.push(c),c={titles:[],definitions:[]}),c.titles.push(a)):c.definitions.push(a);o.push(c),n=-1;const l=[];for(;++n<o.length;)s=[...wb(e,o[n].titles),...wb(e,o[n].definitions)],s.length>0&&l.push({type:"listItem",spread:s.length>1,checked:null,children:s});if(l.length>0)return e(t,"list",{ordered:!1,start:null,spread:Ab(l)},l)},dt:Bb,dd:Bb,del:bb,em:Ob,h1:Nb,h2:Nb,h3:Nb,h4:Nb,h5:Nb,h6:Nb,hr:function(e,t){return e(t,"thematicBreak")},i:Ob,iframe:function(e,t){const r=t.properties,n=String(r.src||""),i=String(r.title||"");if(n&&i)return{type:"link",title:null,url:nb(e,n),children:[{type:"text",value:j_(e,i)}]}},img:Pb,image:Pb,input:function(e,t){const r=t.properties;let n=String(r.value||r.placeholder||"");const i=[],o=[];let a,s=[],c=-1;if(!r.disabled&&"hidden"!==r.type&&"file"!==r.type){if("checkbox"===r.type||"radio"===r.type)return e(t,"text",j_(e,e[r.checked?"checked":"unchecked"]));if("image"===r.type)return r.alt||n?e(t,"image",{url:nb(e,String(r.src||"")||null),title:j_(e,String(r.title||""))||null,alt:j_(e,String(r.alt||n))}):[];if(n?s=[[n,null]]:"password"!==r.type&&"file"!==r.type&&"submit"!==r.type&&"reset"!==r.type&&"button"!==r.type&&r.list&&(a=String(r.list).toUpperCase(),U_.call(e.nodeById,a)&&Mb(e.nodeById[a])&&(s=Lb(e,e.nodeById[a],r))),0!==s.length){if("password"===r.type&&(s[0]=["•".repeat(s[0][0].length),null]),"url"===r.type||"email"===r.type){for(;++c<s.length;)n=nb(e,s[c][0]),i.push(e(t,"link",{title:null,url:j_(e,"email"===r.type?"mailto:"+n:n)},[{type:"text",value:j_(e,s[c][1]||n)}])),c!==s.length-1&&i.push({type:"text",value:", "});return i}for(;++c<s.length;)o.push(s[c][1]?s[c][1]+" ("+s[c][0]+")":s[c][0]);return e(t,"text",j_(e,o.join(", ")))}}},kbd:Rb,li:Bb,listing:_b,mark:Ob,ol:jb,p:Kb,plaintext:_b,pre:_b,q:function(e,t){const r=e.quotes[e.qNesting%e.quotes.length];e.qNesting++;const n=B_(e,t);return e.qNesting--,n.unshift({type:"text",value:r.charAt(0)}),n.push({type:"text",value:r.length>1?r.charAt(1):r}),n},s:bb,samp:Rb,select:function(e,t){const r=Lb(e,t);let n=-1;const i=[];let o;for(;++n<r.length;)o=r[n],i.push(o[1]?o[1]+" ("+o[0]+")":o[0]);if(i.length>0)return e(t,"text",j_(e,i.join(", ")))},strike:bb,strong:$b,summary:Kb,table:function(e,t){if(e.inTable)return e(t,"text",j_(e,fb(t)));e.inTable=!0;const{headless:r,align:n}=function(e){let t=!0,r=0,n=0;const i=[null];return fc(e,"element",(o=>{if("table"===o.tagName&&e!==o)return us;Yb(o)&&o.properties?(i[n]||(i[n]=String(o.properties.align||"")||null),t&&r<2&&"th"===o.tagName&&(t=!1),n++):Qb(o)?t=!1:Wb(o)&&(r++,n=0)})),{align:i,headless:t}}(t),i=function(e,t){let r=-1;const n=[];let i;t&&n.push({type:"tableRow",children:[]});for(;++r<e.length;){const t=e[r];"tableRow"===t.type?(i&&(t.children.unshift(...i),i=void 0),n.push(t)):(i||(i=[]),i.push(t))}i&&n[n.length-1].children.push(...i);r=-1;for(;++r<n.length;)n[r].children=Xb(n[r].children);return n}(B_(e,t),r);let o=1,a=-1;for(;++a<i.length;){const e=i[a].children;let t=-1;for(;++t<e.length;){const r=e[t];if(r.data){const e=Number.parseInt(String(r.data.colSpan),10)||1,n=Number.parseInt(String(r.data.rowSpan),10)||1;if(e>1||n>1){let r=a-1;for(;++r<a+n;){let n=t-1;for(;++n<t+e&&i[r];){const e=[];r===a&&n===t||e.push({type:"tableCell",children:[]}),i[r].children.splice(n,0,...e)}}}"colSpan"in r.data&&delete r.data.colSpan,"rowSpan"in r.data&&delete r.data.rowSpan,0===Object.keys(r.data).length&&delete r.data}}e.length>o&&(o=e.length)}for(a=-1;++a<i.length;){const e=i[a].children;let t=e.length-1;for(;++t<o;)e.push({type:"tableCell",children:[]})}let s=n.length-1;for(;++s<o;)n.push(null);return e.inTable=!1,e(t,"table",{align:n},i)},td:Vb,textarea:function(e,t){return e(t,"text",j_(e,fb(t)))},th:Vb,tr:function(e,t){return e(t,"tableRow",B_(e,t))},tt:Rb,u:Ob,ul:jb,var:Rb,video:Gb,wbr:function(e,t){return e(t,"text","​")},xmp:_b};function Zb(){}const eA=is(["heading","paragraph","root"]);function tA(e,t={}){const r={};let n;const i=Object.assign(((e,t,r,n)=>{let i;"string"==typeof r||Array.isArray(r)?(n=r,i={}):i=r;const o={type:t,...i};return"string"==typeof n?o.value=n:n&&(o.children=n),e.position&&(o.position=e.position),o}),{nodeById:r,baseFound:!1,inTable:!1,wrapText:!0,frozenBaseUrl:null,qNesting:0,handlers:t.handlers?{...Jb,...t.handlers}:Jb,document:t.document,checked:t.checked||"[x]",unchecked:t.unchecked||"[ ]",quotes:t.quotes||['"']});fc(e,"element",(e=>{const t=e.properties&&"id"in e.properties&&String(e.properties.id).toUpperCase();t&&!U_.call(r,t)&&(r[t]=e)})),O_({newlines:!0===t.newlines})(e);const o=q_(i,e,void 0);return n=o?Array.isArray(o)?{type:"root",children:o}:o:{type:"root",children:[]},fc(n,"text",(function(e,t,r){if(null===t||!r)return;const n=r.children[t-1];if(n&&n.type===e.type)return n.value+=e.value,r.children.splice(t,1),n.position&&e.position&&(n.position.end=e.position.end),t-1;e.value=e.value.replace(/[\t ]*(\r?\n|\r)[\t ]*/,"$1"),r&&eA(r)&&(t||(e.value=e.value.replace(/^[\t ]+/,"")),t===r.children.length-1&&(e.value=e.value.replace(/[\t ]+$/,"")));if(!e.value)return r.children.splice(t,1),t})),n}var rA=function(e,t){let r,n;return"function"==typeof e?(n=e,r=t||{}):r=e||{},void 0!==r.document&&null!==r.document||(r=Object.assign({},r,{document:!0})),n?function(e,t){return(r,n,i)=>{e.run(tA(r,t),n,(e=>{i(e)}))}}(n,r):function(e={}){return t=>tA(t,e)}(r)};function nA(e,t){let r,n=-1;if(t.extensions)for(;++n<t.extensions.length;)nA(e,t.extensions[n]);for(r in t)"extensions"===r||("unsafe"===r||"join"===r?e[r]=[...e[r]||[],...t[r]||[]]:"handlers"===r?e[r]=Object.assign(e[r],t[r]||{}):e.options[r]=t[r]);return e}function iA(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if("\n"===r.unsafe[i].character&&Ns(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return"\\\n"}function oA(e,t){return Boolean(!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function aA(e,t,r){return(r?"":" ")+e}function sA(e,t,r,n){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(r),o=r.enter("emphasis"),a=r.createTracker(n);let s=a.move(i);return s+=a.move(r.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}function cA(e){return e.value||""}function lA(e,t,r,n){const i=e.referenceType,o=r.enter("imageReference");let a=r.enter("label");const s=r.createTracker(n);let c=s.move("![");const l=r.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const u=r.stack;r.stack=[],a=r.enter("reference");const h=r.safe(r.associationId(e),{before:c,after:"]",...s.current()});return a(),r.stack=u,o(),"full"!==i&&l&&l===h?"shortcut"===i?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(h+"]"),c}function uA(e,t){const r=Si(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function hA(e,t,r,n){const i=Hc(r),o='"'===i?"Quote":"Apostrophe",a=r.createTracker(n);let s,c;if(uA(e,r)){const t=r.stack;r.stack=[],s=r.enter("autolink");let n=a.move("<");return n+=a.move(r.containerPhrasing(e,{before:n,after:">",...a.current()})),n+=a.move(">"),s(),r.stack=t,n}s=r.enter("link"),c=r.enter("label");let l=a.move("[");return l+=a.move(r.containerPhrasing(e,{before:l,after:"](",...a.current()})),l+=a.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=r.enter("destinationLiteral"),l+=a.move("<"),l+=a.move(r.safe(e.url,{before:l,after:">",...a.current()})),l+=a.move(">")):(c=r.enter("destinationRaw"),l+=a.move(r.safe(e.url,{before:l,after:e.title?" ":")",...a.current()}))),c(),e.title&&(c=r.enter(`title${o}`),l+=a.move(" "+i),l+=a.move(r.safe(e.title,{before:l,after:i,...a.current()})),l+=a.move(i),c()),l+=a.move(")"),s(),l}function pA(e,t,r,n){const i=e.referenceType,o=r.enter("linkReference");let a=r.enter("label");const s=r.createTracker(n);let c=s.move("[");const l=r.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const u=r.stack;r.stack=[],a=r.enter("reference");const h=r.safe(r.associationId(e),{before:c,after:"]",...s.current()});return a(),r.stack=u,o(),"full"!==i&&l&&l===h?"shortcut"===i?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(h+"]"),c}function fA(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function dA(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function mA(e,t,r,n){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(r),o=r.enter("strong"),a=r.createTracker(n);let s=a.move(i+i);return s+=a.move(r.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s}sA.peek=function(e,t,r){return r.options.emphasis||"*"},cA.peek=function(){return"<"},lA.peek=function(){return"!"},hA.peek=function(e,t,r){return uA(e,r)?"<":"["},pA.peek=function(){return"["},mA.peek=function(e,t,r){return r.options.strong||"*"};const gA={blockquote:ol,break:iA,code:function(e,t,r,n){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(r),o=e.value||"",a="`"===i?"GraveAccent":"Tilde";if(oA(e,r)){const e=r.enter("codeIndented"),t=r.indentLines(o,aA);return e(),t}const s=r.createTracker(n),c=i.repeat(Math.max(function(e,t){const r=String(e);let n=r.indexOf(t),i=n,o=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==n;)n===i?++o>a&&(a=o):o=1,i=n+t.length,n=r.indexOf(t,i);return a}(o,i)+1,3)),l=r.enter("codeFenced");let u=s.move(c);if(e.lang){const t=r.enter(`codeFencedLang${a}`);u+=s.move(r.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=r.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(r.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(c),l(),u},definition:function(e,t,r,n){const i=Hc(r),o='"'===i?"Quote":"Apostrophe",a=r.enter("definition");let s=r.enter("label");const c=r.createTracker(n);let l=c.move("[");return l+=c.move(r.safe(r.associationId(e),{before:l,after:"]",...c.current()})),l+=c.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(r.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=r.enter("destinationRaw"),l+=c.move(r.safe(e.url,{before:l,after:e.title?" ":"\n",...c.current()}))),s(),e.title&&(s=r.enter(`title${o}`),l+=c.move(" "+i),l+=c.move(r.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),a(),l},emphasis:sA,hardBreak:iA,heading:rl,html:cA,image:Bc,imageReference:lA,inlineCode:Xs,link:hA,linkReference:pA,list:function(e,t,r,n){const i=r.enter("list"),o=r.bulletCurrent;let a=e.ordered?fA(r):ac(r);const s=e.ordered?function(e){const t=fA(e),r=e.options.bulletOrderedOther;if(!r)return"."===t?")":".";if("."!==r&&")"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrderedOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bulletOrdered` (`"+t+"`) and `bulletOrderedOther` (`"+r+"`) to be different");return r}(r):function(e){const t=ac(e),r=e.options.bulletOther;if(!r)return"*"===t?"-":"*";if("*"!==r&&"+"!==r&&"-"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}(r),c=r.bulletLastUsed;let l=!1;if(t&&(e.ordered?r.options.bulletOrderedOther:r.options.bulletOther)&&c&&a===c&&(l=!0),!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==r.stack[r.stack.length-1]||"listItem"!==r.stack[r.stack.length-2]||"list"!==r.stack[r.stack.length-3]||"listItem"!==r.stack[r.stack.length-4]||0!==r.indexStack[r.indexStack.length-1]||0!==r.indexStack[r.indexStack.length-2]||0!==r.indexStack[r.indexStack.length-3]||(l=!0),dA(r)===a&&t){let t=-1;for(;++t<e.children.length;){const r=e.children[t];if(r&&"listItem"===r.type&&r.children&&r.children[0]&&"thematicBreak"===r.children[0].type){l=!0;break}}}}l&&(a=s),r.bulletCurrent=a;const u=r.containerFlow(e,n);return r.bulletLastUsed=a,r.bulletCurrent=o,i(),u},listItem:sc,paragraph:Zc,root:function(e,t,r,n){return(e.children.some((e=>W_(e)))?r.containerPhrasing:r.containerFlow).call(r,e,n)},strong:mA,text:function(e,t,r,n){return r.safe(e.value,n)},thematicBreak:function(e,t,r){const n=(dA(r)+(r.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(r));return r.options.ruleSpaces?n.slice(0,-1):n}},EA=[function(e,t,r,n){if("code"===t.type&&oA(t,n)&&("list"===e.type||e.type===t.type&&oA(e,n)))return!1;if("list"===e.type&&e.type===t.type&&Boolean(e.ordered)===Boolean(t.ordered)&&!(e.ordered?n.options.bulletOrderedOther:n.options.bulletOther))return!1;if("spread"in r&&"boolean"==typeof r.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&tl(t,n)))return;return r.spread?1:0}}];const TA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],yA=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:TA},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:TA},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:TA},{atBreak:!0,character:"+",after:"(?:[ \t\r\n])"},{atBreak:!0,character:"-",after:"(?:[ \t\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:TA},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:TA},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:TA},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:TA},{atBreak:!0,character:"~"}];function vA(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function _A(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function bA(e,t){if("definition"===e.type&&e.type===t.type)return 0}function AA(e,t){return Vs(e,this,t)}function SA(e,t){return ks(e,this,t)}function kA(e,t){return Rs(this,e,t)}const CA=di().use((function(e){const t=this.data("settings"),r=Object.assign({},t,e);Object.assign(this,{Parser:function(e,t){const n=r.fragment?"parseFragment":"parse",i=r.emitParseErrors?function(n){const i=n.code,o=function(e){return e.replace(/-[a-z]/g,(e=>e.charAt(1).toUpperCase()))}(i),a=r[o],s=null==a||a,c="number"==typeof s?s:s?1:0,l={line:n.startLine,column:n.startCol,offset:n.startOffset},u={line:n.endLine,column:n.endCol,offset:n.endOffset};if(c){const e=E_[o]||{reason:"",description:"",url:""},r=t.message(h(e.reason),{start:l,end:u});r.source="parse-error",r.ruleId=i,r.fatal=y_[c],r.note=h(e.description),r.url="url"in e&&!1===e.url?null:T_+i}function h(t){return t.replace(/%c(?:-(\d+))?/g,((t,r)=>{const i=r?-Number.parseInt(r,10):0,o=e.charAt(n.startOffset+i);return"`"===o?"` ` `":o})).replace(/%x/g,(()=>"0x"+e.charCodeAt(n.startOffset).toString(16).toUpperCase()))}}:null;return function(e,t){const r=t||{};let n,i;return function(e){return"messages"in e}(r)?(i=r,n={}):(i=r.file||void 0,n=r),h_({schema:"svg"===n.space?Yv:Wv,file:i,verbose:n.verbose,location:!1},e)}(new mv({sourceCodeLocationInfo:!0,onParseError:i,scriptingEnabled:!1})[n](e),{space:r.space,file:t,verbose:r.verbose})}})})).use(hc).use(rA).use((function(e){Object.assign(this,{Compiler:t=>{const r=this.data("settings");return function(e,t={}){const r={enter:function(e){return r.stack.push(e),function(){r.stack.pop()}},indentLines:ws,associationId:Ss,containerPhrasing:AA,containerFlow:SA,createTracker:Ds,safe:kA,stack:[],unsafe:[],join:[],handlers:{},options:{},indexStack:[],handle:void 0};nA(r,{unsafe:yA,join:EA,handlers:gA}),nA(r,t),r.options.tightDefinitions&&nA(r,{join:[bA]}),r.handle=Tn("type",{invalid:vA,unknown:_A,handlers:r.handlers});let n=r.handle(e,void 0,r,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});return n&&10!==n.charCodeAt(n.length-1)&&13!==n.charCodeAt(n.length-1)&&(n+="\n"),n}(t,Object.assign({},r,e,{extensions:this.data("toMarkdownExtensions")||[]}))}})}),{bullet:"*",listItemIndent:"one",fences:!0,handlers:{html:e=>{const t=e.value;return t.startsWith("\x3c!--")?"":t||""}}});const xA={website:class extends lm{async convert(){const e=await se.default.launch({headless:!0,executablePath:process.env.PUPPETEER_EXECUTABLE_PATH,args:["--no-sandbox"]});try{const t=await e.newPage();t.on("console",(e=>console.log(e.text()))),await t.setViewport({width:1920,height:1080}),await t.goto(new URL(this.source.url).toString());const r=await t.evaluate((()=>{const e=document.querySelector("meta[name=generator]");return e?e.getAttribute("content"):null}));if(!0===r?.startsWith("Docusaurus")){const e=await this.getArticles(t),r=await this.buildFiles(t,e),n=Y.default.createWriteStream(this.destFS.resolve("files.tar.gz"));await this.contentFS.archive(n),await this.destFS.writeFile("summary.json",JSON.stringify(r))}}finally{await e.close()}}async buildFiles(e,t){const r=[];for(const n of t){const t={title:n.title,ref:"",children:[]};if("#"!==n.url){await e.goto(new URL(n.url,this.source.url).toString());const r=await e.$("article .markdown");if(r){const e=await r.evaluate((e=>{const t=e.querySelectorAll("a");for(const e of Array.from(t))e.getAttribute("href")?.startsWith("#")&&e.remove();return e.innerHTML})),i=CA.processSync(e).toString(),o=this.generateFilename(n.title)+".md";await this.contentFS.writeFile(o,i),t.ref=o}}n.children.length>0&&(t.children=await this.buildFiles(e,n.children)),r.push(t)}return r}async getArticles(e){return await e.addScriptTag({content:af.toString()}),e.evaluate((async()=>{const e=document.querySelector("aside nav>ul");if(e){const t=async e=>{const r=e.querySelectorAll("&>li"),n=[];for(const e of Array.from(r)){const r=e.querySelector("a");if(r){let i=[];if(r.className.includes("menu__link--sublist")){r.click();try{const r=await af((()=>{const t=e.querySelector("&>ul");if(!t)throw new Error("render html timeout");return t}),{stopAfter:5e3,tryEvery:200});i=await t(r)}catch(e){console.log(e.message)}}n.push({title:r.textContent?.trim()||"未命名",url:r.getAttribute("href")||"#",children:i})}}return n};return await t(e)}return[]}))}}};const wA=require("../package.json"),OA=new e.Command;OA.version(wA.version),OA.name("ttx"),OA.option("-d, --debug","output extra debugging"),OA.on("option:debug",(function(){le.level=n.LogLevel.Debug})),OA.command("build <dir> <format> [dest]").option("--sha <sha>","book hash value").option("--no-clean","not clean").description("build book").action((async function(e,t,r,n){n.clean&&D.default.setGracefulCleanup(),le.info(`cli version ${wA.version}`);const i=M.default.resolve(e);r=r?M.default.resolve(r):M.default.join(i,"book.tar.gz");try{const i=await async function(e,t,r,n,i){if(void 0===nm[t])throw new Error("unsupported format: "+t);const o=nm[t],a=new rf(e),s=await a.readAsObject("ttxconfig.json");le.debug("read options form ttxconfig.json"),le.debug(s);const c=pe.Config.createFromObject(await a.readAsObject(pe.Config.file)),l=a.resolve(c.getValue("root","")),u=D.default.dirSync({unsafeCleanup:!0}).name,h=new rf(u);await Y.default.copy(l,u),await Y.default.copy(M.default.resolve(__dirname,"../templates/.bookignore"),h.resolve(".bookignore"));const p={plugins:{host:rm("plugins_host"),preset:{},...s.plugins},poweredBy:{name:"顶想云",link:"https://www.topthink.com"},asset:s.asset||"local"};void 0!==s.poweredBy&&(p.poweredBy=s.poweredBy),s.lfs&&(p.lfs={url:s.lfs,files:{}});const f=s.id||"unknown";let d;d=h.exist(pe.Summary.file.json)?await h.readAsObject(pe.Summary.file.json,[]):await h.readAsString(pe.Summary.file.markdown);const m=pe.Summary.create(d);return new o(new pe.Book(f,c,m,i),a,h,p,r,n)}(e,t,r,wA.version,n.sha);await i.generate(),process.exit(0)}catch(e){le.error(e),process.exit(1)}})),OA.command("convert").requiredOption("--type <type>","").requiredOption("--source <source>","",(function(e,t={}){return{...ce.parse(e),...t}})).option("--dest <dest>").option("--no-clean","not clean").description("convert book").action((async function({type:e,source:t,dest:r=".",clean:n}){n&&D.default.setGracefulCleanup(),r=M.default.resolve(r);try{const n=await async function(e,t,r){if(void 0===xA[e])throw new Error("unsupported type: "+e);return new(0,xA[e])(t,r)}(e,t,r);await n.convert(),process.exit(0)}catch(e){le.error(e),process.exit(1)}}));const NA=OA.command("config");NA.command("list").action((function(){console.log(rm())})),NA.command("set <key> <value>").action((function(e,t){!function(e,t){tm.set(e,t)}(e,t)})),OA.parse(process.argv);