salve-annos
Version:
A fork with support for documentation of Salve, a Javascript library which implements a validator able to validate an XML document on the basis of a subset of RelaxNG.
2 lines • 308 kB
JavaScript
/*! For license information please see salve.min.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["salve-annos"]=t():e["salve-annos"]=t()}(self,(()=>(()=>{var e={31:function(e,t,r){"use strict";var n,u=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var u=Object.getOwnPropertyDescriptor(t,r);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,u)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),s=0;s<r.length;s++)"default"!==r[s]&&u(t,e,r[s]);return a(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.DatatypeProcessor=void 0,t.localName=l,t.fromQNameToURI=f;const d=s(r(116)),i=r(774),o=r(5555),c=["ENTITY","ENTITIES"];function l(e){const t=e.indexOf(":");return-1===t?e:e.slice(t+1)}function f(e,t){const r=e.indexOf(":");let n;if(-1===r){if(function(e){let t=e;for(;void 0!==t;){if("attribute"===t.local)return!0;t=t.parent}return!1}(t))return"";n=""}else if(n=e.substr(0,r),e.lastIndexOf(":")!==r)throw new Error("invalid name");if(""===n)return t.mustGetAttribute("ns");const u=t.resolve(n);if(void 0===u)throw new Error(`cannot resolve prefix: ${n}`);return u}t.DatatypeProcessor=class{constructor(){this.warnings=[]}walk(e){let t,r;switch(e.local){case"value":{let n=e.text;r=e.mustGetAttribute("type"),t=e.mustGetAttribute("datatypeLibrary");let u=e.mustGetAttribute("ns");const a=d.registry.find(t);if(void 0===a)throw new d.ValueValidationError(e.path,[new d.ValueError(`unknown datatype library: ${t}`)]);const s=a.types[r];if(void 0===s)throw new d.ValueValidationError(e.path,[new d.ValueError(`unknown datatype ${r} in ${""===t?"default library":`library ${t}`}`)]);if(s.needsContext&&("http://www.w3.org/2001/XMLSchema-datatypes"!==t||"QName"!==r&&"NOTATION"!==r))throw new Error("datatype needs context but is not QName or NOTATION form the XML Schema library: don't know how to handle");s.needsContext&&(u=f(n,e),n=l(n),e.setAttribute("ns",u),e.replaceContent([new o.Text(n)]));new i.Value(e.path,n,r,t,u,e.documentation).value;break}case"data":{const n=0!==e.children.length&&"except"===e.children[e.children.length-1].local;r=e.mustGetAttribute("type"),t=e.mustGetAttribute("datatypeLibrary");const u=d.registry.find(t);if(void 0===u)throw new d.ValueValidationError(e.path,[new d.ValueError(`unknown datatype library: ${t}`)]);if(void 0===u.types[r])throw new d.ValueValidationError(e.path,[new d.ValueError(`unknown datatype ${r} in ${""===t?"default library":`library ${t}`}`)]);const a=e.children.slice(0,n?e.children.length-1:void 0).map((e=>({name:e.mustGetAttribute("name"),value:e.text})));new i.Data(e.path,r,t,a).params;break}}"http://www.w3.org/2001/XMLSchema-datatypes"===t&&c.includes(r)&&this.warnings.push(`WARNING: ${e.path} uses the ${r} type in library ${t}`);for(const n of e.children)(0,o.isElement)(n)&&this.walk(n)}}},36:(e,t,r)=>{"use strict";r(1091)({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:r(9197)})},43:(e,t,r)=>{"use strict";var n=r(4018),u=String,a=TypeError;e.exports=function(e){if(n(e))return e;throw new a("Can't set "+u(e)+" as a prototype")}},116:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueError=t.ValueValidationError=t.ParameterParsingError=t.registry=t.Registry=void 0;const n=r(6108),u=r(9405);class a{constructor(){this.libraries=Object.create(null)}add(e){const t=e.uri;if(t in this.libraries)throw new Error(`URI clash: ${t}`);this.libraries[t]=e}find(e){return this.libraries[e]}get(e){const t=this.find(e);if(void 0===t)throw new Error(`can't get library with URI: ${e}`);return t}}t.Registry=a,t.registry=new a,t.registry.add(n.builtin),t.registry.add(u.xmlschema);var s=r(9140);Object.defineProperty(t,"ParameterParsingError",{enumerable:!0,get:function(){return s.ParameterParsingError}}),Object.defineProperty(t,"ValueValidationError",{enumerable:!0,get:function(){return s.ValueValidationError}}),Object.defineProperty(t,"ValueError",{enumerable:!0,get:function(){return s.ValueError}})},129:(e,t,r)=>{e.exports=r(1086)},149:(e,t,r)=>{"use strict";r(8218);var n=r(2046).Object;e.exports=function(e,t){return n.create(e,t)}},154:(e,t,r)=>{"use strict";var n=r(1549),u=r(6624),a=r(9367);e.exports=function(e,t,r){var s,d;u(e);try{if(!(s=a(e,"return"))){if("throw"===t)throw r;return r}s=n(s,e)}catch(i){d=!0,s=i}if("throw"===t)throw r;if(d)throw s;return u(s),r}},160:(e,t,r)=>{"use strict";var n=r(3948),u=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return u(e)}},183:(e,t,r)=>{"use strict";var n=r(1091),u=r(1549),a=r(7376),s=r(6833),d=r(2250),i=r(7181),o=r(5972),c=r(9192),l=r(4840),f=r(1626),h=r(8055),p=r(6264),m=r(3742),b=r(5116),g=s.PROPER,v=s.CONFIGURABLE,w=b.IteratorPrototype,y=b.BUGGY_SAFARI_ITERATORS,x=p("iterator"),E="keys",F="values",A="entries",_=function(){return this};e.exports=function(e,t,r,s,p,b,S){i(r,t,s);var N,I,k,C=function(e){if(e===p&&M)return M;if(!y&&e&&e in O)return O[e];switch(e){case E:case F:case A:return function(){return new r(this,e)}}return function(){return new r(this)}},D=t+" Iterator",P=!1,O=e.prototype,T=O[x]||O["@@iterator"]||p&&O[p],M=!y&&T||C(p),R="Array"===t&&O.entries||T;if(R&&(N=o(R.call(new e)))!==Object.prototype&&N.next&&(a||o(N)===w||(c?c(N,w):d(N[x])||h(N,x,_)),l(N,D,!0,!0),a&&(m[D]=_)),g&&p===F&&T&&T.name!==F&&(!a&&v?f(O,"name",F):(P=!0,M=function(){return u(T,this)})),p)if(I={values:C(F),keys:b?M:C(E),entries:C(A)},S)for(k in I)(y||P||!(k in O))&&h(O,k,I[k]);else n({target:t,proto:!0,forced:y||P},I);return a&&!S||O[x]===M||h(O,x,M,{name:p}),m[t]=M,I}},237:()=>{},300:(e,t,r)=>{"use strict";var n=r(1549),u=r(2159),a=r(6624),s=r(4640),d=r(3448),i=TypeError;e.exports=function(e,t){var r=arguments.length<2?d(e):t;if(u(r))return a(n(r,e));throw new i(s(e)+" is not iterable")}},303:(e,t,r)=>{"use strict";var n=r(8280),u=r(5265),a=Array.prototype;e.exports=function(e){var t=e.slice;return e===a||n(a,e)&&t===a.slice?u:t}},359:(e,t,r)=>{"use strict";r(366)("replaceAll")},360:e=>{"use strict";e.exports=JSON.parse('{"v":3,"o":1,"d":[15,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[8,2],[8,3]]],[8,4]]],[8,5]]],[8,6]]],[8,7]]],[8,8]]],[8,9]]],[8,10]]],[8,11]]],[8,12]]],[8,13]]],[8,14]]],[8,15]]],[8,16]]],[8,17]]],[8,18]]],[8,19]]],[8,20]]],[0,[14,21,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","start"],[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","combine"],[0,[10,[0,[5,"choice"],[5,"interleave"]]]]]]],[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[8,2],[8,3]]],[8,4]]],[8,5]]],[8,6]]],[8,7]]],[8,8]]],[8,9]]],[8,10]]],[8,11]]],[8,12]]],[8,13]]],[8,14]]],[8,15]]],[8,16]]],[8,17]]],[8,18]]],[8,19]]],[8,20]]]]]]]]]]],[14,22,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","define"],[0,[11,[0,[11,[0,[11,[0,[12,[18,"","name"],[0,[2,"NCName","http://www.w3.org/2001/XMLSchema-datatypes"]]],[10,[0,[1],[12,[18,"","combine"],[0,[10,[0,[5,"choice"],[5,"interleave"]]]]]]]]],[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[9,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[8,2],[8,3]]],[8,4]]],[8,5]]],[8,6]]],[8,7]]],[8,8]]],[8,9]]],[8,10]]],[8,11]]],[8,12]]],[8,13]]],[8,14]]],[8,15]]],[8,16]]],[8,17]]],[8,18]]],[8,19]]],[8,20]]]]]]]]]]]]],[14,27,[0,[13,[21],[0,[10,[0,[1],[9,[0,[10,[0,[10,[0,[12,[21],[0,[7]]],[7]]],[8,27]]]]]]]]]]],[14,2,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","element"],[0,[11,[0,[11,[0,[10,[0,[12,[18,"","name"],[0,[2,"QName","http://www.w3.org/2001/XMLSchema-datatypes"]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[10,[0,[10,[0,[10,[0,[8,23],[8,24]]],[8,25]]],[8,26]]]]]]],[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[9,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[8,2],[8,3]]],[8,4]]],[8,5]]],[8,6]]],[8,7]]],[8,8]]],[8,9]]],[8,10]]],[8,11]]],[8,12]]],[8,13]]],[8,14]]],[8,15]]],[8,16]]],[8,17]]],[8,18]]],[8,19]]],[8,20]]]]]]]]]]]]],[14,3,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","attribute"],[0,[11,[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[10,[0,[12,[18,"","name"],[0,[2,"QName","http://www.w3.org/2001/XMLSchema-datatypes"]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[10,[0,[10,[0,[10,[0,[8,23],[8,24]]],[8,25]]],[8,26]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[10,[0,[1],[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[8,2],[8,3]]],[8,4]]],[8,5]]],[8,6]]],[8,7]]],[8,8]]],[8,9]]],[8,10]]],[8,11]]],[8,12]]],[8,13]]],[8,14]]],[8,15]]],[8,16]]],[8,17]]],[8,18]]],[8,19]]],[8,20]]]]]]]]]]]]],[14,4,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","group"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[9,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[8,2],[8,3]]],[8,4]]],[8,5]]],[8,6]]],[8,7]]],[8,8]]],[8,9]]],[8,10]]],[8,11]]],[8,12]]],[8,13]]],[8,14]]],[8,15]]],[8,16]]],[8,17]]],[8,18]]],[8,19]]],[8,20]]]]]]]]]]]]],[14,5,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","interleave"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[9,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[8,2],[8,3]]],[8,4]]],[8,5]]],[8,6]]],[8,7]]],[8,8]]],[8,9]]],[8,10]]],[8,11]]],[8,12]]],[8,13]]],[8,14]]],[8,15]]],[8,16]]],[8,17]]],[8,18]]],[8,19]]],[8,20]]]]]]]]]]]]],[14,6,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","choice"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[9,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[8,2],[8,3]]],[8,4]]],[8,5]]],[8,6]]],[8,7]]],[8,8]]],[8,9]]],[8,10]]],[8,11]]],[8,12]]],[8,13]]],[8,14]]],[8,15]]],[8,16]]],[8,17]]],[8,18]]],[8,19]]],[8,20]]]]]]]]]]]]],[14,7,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","optional"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[9,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[8,2],[8,3]]],[8,4]]],[8,5]]],[8,6]]],[8,7]]],[8,8]]],[8,9]]],[8,10]]],[8,11]]],[8,12]]],[8,13]]],[8,14]]],[8,15]]],[8,16]]],[8,17]]],[8,18]]],[8,19]]],[8,20]]]]]]]]]]]]],[14,8,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","zeroOrMore"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[9,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[8,2],[8,3]]],[8,4]]],[8,5]]],[8,6]]],[8,7]]],[8,8]]],[8,9]]],[8,10]]],[8,11]]],[8,12]]],[8,13]]],[8,14]]],[8,15]]],[8,16]]],[8,17]]],[8,18]]],[8,19]]],[8,20]]]]]]]]]]]]],[14,9,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","oneOrMore"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[9,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[8,2],[8,3]]],[8,4]]],[8,5]]],[8,6]]],[8,7]]],[8,8]]],[8,9]]],[8,10]]],[8,11]]],[8,12]]],[8,13]]],[8,14]]],[8,15]]],[8,16]]],[8,17]]],[8,18]]],[8,19]]],[8,20]]]]]]]]]]]]],[14,10,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","list"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[9,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[8,2],[8,3]]],[8,4]]],[8,5]]],[8,6]]],[8,7]]],[8,8]]],[8,9]]],[8,10]]],[8,11]]],[8,12]]],[8,13]]],[8,14]]],[8,15]]],[8,16]]],[8,17]]],[8,18]]],[8,19]]],[8,20]]]]]]]]]]]]],[14,11,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","mixed"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[9,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[8,2],[8,3]]],[8,4]]],[8,5]]],[8,6]]],[8,7]]],[8,8]]],[8,9]]],[8,10]]],[8,11]]],[8,12]]],[8,13]]],[8,14]]],[8,15]]],[8,16]]],[8,17]]],[8,18]]],[8,19]]],[8,20]]]]]]]]]]]]],[14,12,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","ref"],[0,[11,[0,[12,[18,"","name"],[0,[2,"NCName","http://www.w3.org/2001/XMLSchema-datatypes"]]],[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]]]]]]]],[14,13,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","parentRef"],[0,[11,[0,[12,[18,"","name"],[0,[2,"NCName","http://www.w3.org/2001/XMLSchema-datatypes"]]],[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]]]]]]]],[14,14,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","empty"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[10,[0,[1],[9,[0,[8,1]]]]]]]]]]],[14,15,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","text"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[10,[0,[1],[9,[0,[8,1]]]]]]]]]]],[14,16,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","value"],[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","type"],[0,[2,"NCName","http://www.w3.org/2001/XMLSchema-datatypes"]]]]],[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]]]],[7]]]]]]],[14,17,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","data"],[0,[11,[0,[11,[0,[12,[18,"","type"],[0,[2,"NCName","http://www.w3.org/2001/XMLSchema-datatypes"]]],[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[11,[0,[10,[0,[1],[9,[0,[8,32]]]]],[10,[0,[1],[8,33]]]]]]]]]]]]],[14,32,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","param"],[0,[11,[0,[12,[18,"","name"],[0,[2,"NCName","http://www.w3.org/2001/XMLSchema-datatypes"]]],[7]]]]]]],[14,33,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","except"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[9,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[10,[0,[8,2],[8,3]]],[8,4]]],[8,5]]],[8,6]]],[8,7]]],[8,8]]],[8,9]]],[8,10]]],[8,11]]],[8,12]]],[8,13]]],[8,14]]],[8,15]]],[8,16]]],[8,17]]],[8,18]]],[8,19]]],[8,20]]]]]]]]]]]]],[14,18,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","notAllowed"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[10,[0,[1],[9,[0,[8,1]]]]]]]]]]],[14,19,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","externalRef"],[0,[11,[0,[11,[0,[12,[18,"","href"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]],[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]]]],[10,[0,[1],[9,[0,[8,1]]]]]]]]]]],[14,20,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","grammar"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[10,[0,[1],[9,[0,[10,[0,[10,[0,[10,[0,[8,21],[8,22]]],[8,28]]],[8,29]]]]]]]]]]]]]]],[14,28,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","div"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[10,[0,[1],[9,[0,[10,[0,[10,[0,[10,[0,[8,21],[8,22]]],[8,28]]],[8,29]]]]]]]]]]]]]]],[14,29,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","include"],[0,[11,[0,[11,[0,[12,[18,"","href"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]],[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[10,[0,[1],[9,[0,[10,[0,[10,[0,[8,21],[8,22]]],[8,30]]]]]]]]]]]]]]],[14,30,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","div"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[10,[0,[1],[9,[0,[10,[0,[10,[0,[8,21],[8,22]]],[8,30]]]]]]]]]]]]]]],[14,23,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","name"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[2,"QName","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[14,24,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","anyName"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[10,[0,[1],[8,31]]]]]]]]]]],[14,25,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","nsName"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[10,[0,[1],[8,31]]]]]]]]]]],[14,26,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","choice"],[0,[11,[0,[11,[0,[11,[0,[10,[0,[1],[12,[18,"","ns"],[0,[7]]]]],[10,[0,[1],[12,[18,"","datatypeLibrary"],[0,[2,"anyURI","http://www.w3.org/2001/XMLSchema-datatypes"]]]]]]],[10,[0,[1],[9,[0,[12,[21,[19,[0,[20,"http://relaxng.org/ns/structure/1.0"],[20,""]]]],[0,[7]]]]]]]]],[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[9,[0,[10,[0,[10,[0,[10,[0,[8,23],[8,24]]],[8,25]]],[8,26]]]]]]]]]]]]],[14,31,[0,[13,[18,"http://relaxng.org/ns/structure/1.0","except"],[0,[17,[0,[10,[0,[1],[9,[0,[8,1]]]]],[9,[0,[10,[0,[10,[0,[10,[0,[8,23],[8,24]]],[8,25]]],[8,26]]]]]]]]]]],[14,1,[0,[13,[21,[20,"http://relaxng.org/ns/structure/1.0"]],[0,[10,[0,[1],[9,[0,[10,[0,[10,[0,[12,[21],[0,[7]]],[7]]],[8,27]]]]]]]]]]]]]}')},365:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultNameResolver=void 0;const n=r(4173),u=r(7707);class a{constructor(e){this._contextStack=void 0!==e?e._contextStack.slice():[{forward:new Map([["xml",u.XML1_NAMESPACE],["xmlns",u.XMLNS_NAMESPACE]]),backwards:new Map([[u.XML1_NAMESPACE,["xml"]],[u.XMLNS_NAMESPACE,["xmlns"]]])}]}clone(){return new a(this)}definePrefix(e,t){if("xmlns"===e)throw new Error("trying to define 'xmlns' but the XML Namespaces standard stipulates that 'xmlns' cannot be declared (= \"defined\")");if("xml"===e&&t!==u.XML1_NAMESPACE)throw new Error("trying to define 'xml' to an incorrect URI");const r=this._contextStack[this._contextStack.length-1];r.forward.set(e,t);let n=r.backwards.get(t);void 0===n?(n=[e],r.backwards.set(t,n)):""===e?n.unshift(""):n.push(e)}enterContext(){this._contextStack.push({forward:new Map,backwards:new Map})}enterContextWithMapping(e){if(void 0!==e.xmlns)throw new Error("trying to define 'xmlns' but the XML Namespaces standard stipulates that 'xmlns' cannot be declared (= \"defined\")");const t=e.xml;if(void 0!==t&&t!==u.XML1_NAMESPACE)throw new Error("trying to define 'xml' to an incorrect URI");const r=new Map,n=new Map;for(const u of Object.keys(e)){const t=e[u];r.set(u,t);let a=n.get(t);void 0===a?(a=[u],n.set(t,a)):""===u?a.unshift(""):a.push(u)}this._contextStack.push({forward:r,backwards:n})}leaveContext(){if(!(this._contextStack.length>1))throw new Error("trying to leave the default context");this._contextStack.pop()}resolveName(e,t=!1){const r=e.indexOf(":");let u,a;if(-1===r){if(t)return new n.EName("",e);u="",a=e}else if(u=e.substr(0,r),a=e.substr(r+1),a.includes(":"))throw new Error("invalid name passed to resolveName");for(let s=this._contextStack.length-1;s>=0;--s){const e=this._contextStack[s].forward.get(u);if(void 0!==e)return new n.EName(e,a)}return""===u?new n.EName("",a):void 0}unresolveName(e,t){if(""===e)return t;let r;for(let u=this._contextStack.length-1;void 0===r&&u>=0;--u)r=this._contextStack[u].backwards.get(e);if(void 0===r)return;const n=r[0];return""!==n?`${n}:${t}`:t}prefixFromURI(e){let t;for(let r=this._contextStack.length-1;void 0===t&&r>=0;--r)t=this._contextStack[r].backwards.get(e);if(void 0!==t)return t[0]}}t.DefaultNameResolver=a},366:(e,t,r)=>{"use strict";var n=r(2046),u=r(9724),a=r(560),s=r(4284).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});u(t,e)||s(t,e,{value:a.f(e)})}},373:(e,t,r)=>{"use strict";e.exports=r(5899)},376:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},426:(e,t,r)=>{var n=r(5186),u=r(2014),a=r(1607);e.exports=function(e,t){if(e){var r;if("string"==typeof e)return a(e,t);var s=n(r={}.toString.call(e)).call(r,8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?u(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?a(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},446:(e,t)=>{"use strict";function r(e){return e>=65&&e<=90||95===e||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(t,"__esModule",{value:!0}),t.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",t.NC_NAME_CHAR="-"+t.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",t.NC_NAME_START_CHAR_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]$","u"),t.NC_NAME_CHAR_RE=new RegExp("^["+t.NC_NAME_CHAR+"]$","u"),t.NC_NAME_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]["+t.NC_NAME_CHAR+"]*$","u"),t.isNCNameStartChar=r,t.isNCNameChar=function(e){return r(e)||45===e||46===e||e>=48&&e<=57||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},470:(e,t,r)=>{"use strict";var n=r(6028),u=r(5594);e.exports=function(e){var t=n(e,"string");return u(t)?t:t+""}},473:(e,t,r)=>{"use strict";var n=r(6264)("iterator"),u=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){u=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(d){}e.exports=function(e,t){try{if(!t&&!u)return!1}catch(d){return!1}var r=!1;try{var a={};a[n]=function(){return{next:function(){return{done:r=!0}}}},e(a)}catch(d){}return r}},530:(e,t,r)=>{"use strict";var n=r(5837);e.exports=n},551:(e,t,r)=>{"use strict";var n=r(5951),u=r(2250),a=n.WeakMap;e.exports=u(a)&&/native code/.test(String(a))},560:(e,t,r)=>{"use strict";var n=r(6264);t.f=n},575:(e,t,r)=>{"use strict";var n=r(3121);e.exports=function(e){return n(e.length)}},581:(e,t,r)=>{"use strict";var n=r(1549),u=r(2250),a=r(6285),s=TypeError;e.exports=function(e,t){var r,d;if("string"===t&&u(r=e.toString)&&!a(d=n(r,e)))return d;if(u(r=e.valueOf)&&!a(d=n(r,e)))return d;if("string"!==t&&u(r=e.toString)&&!a(d=n(r,e)))return d;throw new s("Can't convert object to primitive value")}},663:(e,t,r)=>{"use strict";var n=r(1549),u=r(9724),a=r(8280),s=r(5606),d=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in d||u(e,"flags")||!a(d,e)?t:n(s,e)}},700:(e,t,r)=>{"use strict";r(9363),r(7057);var n=r(300);e.exports=n},726:(e,t,r)=>{"use strict";var n=r(8311),u=r(1907),a=r(6946),s=r(9298),d=r(575),i=r(6968),o=u([].push),c=function(e){var t=1===e,r=2===e,u=3===e,c=4===e,l=6===e,f=7===e,h=5===e||l;return function(p,m,b,g){for(var v,w,y=s(p),x=a(y),E=d(x),F=n(m,b),A=0,_=g||i,S=t?_(p,E):r||f?_(p,0):void 0;E>A;A++)if((h||A in x)&&(w=F(v=x[A],A,y),e))if(t)S[A]=w;else if(w)switch(e){case 3:return!0;case 5:return v;case 6:return A;case 2:o(S,v)}else switch(e){case 4:return!1;case 7:o(S,v)}return l?-1:u||c?c:S}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},751:(e,t,r)=>{"use strict";var n=r(1091),u=r(9724),a=r(5594),s=r(4640),d=r(5816),i=r(4411),o=d("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!i},{keyFor:function(e){if(!a(e))throw new TypeError(s(e)+" is not a symbol");if(u(o,e))return o[e]}})},768:(e,t,r)=>{"use strict";var n=r(6264),u=r(4284).f,a=n("metadata"),s=Function.prototype;void 0===s[a]&&u(s,a,{value:null})},772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Value=void 0;const n=r(116),u=r(4173),a=r(1394),s=r(1632),d=r(9216);class i extends d.Pattern{constructor(e,t,r="token",u="",a="",s){if(super(e),this.type=r,this.datatypeLibrary=u,this.ns=a,this.datatype=n.registry.get(this.datatypeLibrary).types[this.type],void 0===this.datatype)throw new Error(`unknown type: ${r}`);this.rawValue=t,this.documentation=s}get value(){let e,t=this._value;return null!=t||(this.datatype.needsContext&&(e={resolver:{resolveName:e=>new u.EName(this.ns,e),clone(){throw new Error("cannot clone this resolver")}}}),t=this._value=this.datatype.parseValue(this.xmlPath,this.rawValue,e)),t}hasEmptyPattern(){return""===this.rawValue}newWalker(){const e=this.hasEmptyPattern();return new o(this,!1,e,e)}}t.Value=i;class o{constructor(e,t,r,n){this.el=e,this.matched=t,this.canEndAttribute=r,this.canEnd=n}clone(){return new o(this.el,this.matched,this.canEndAttribute,this.canEnd)}possible(){return new Set(this.matched?void 0:[new s.TextEvent(this.el.rawValue,this.el.documentation)])}possibleAttributes(){return new Set}fireEvent(e,t,r){return this.matched||"text"!==e||!this.el.datatype.equal(t[0],this.el.value,{resolver:r})?new d.InternalFireEventResult(!1):(this.matched=!0,this.canEndAttribute=this.canEnd=!0,new d.InternalFireEventResult(!0))}end(){return!this.canEnd&&[new a.ValidationError(`value required: ${this.el.rawValue}`)]}endAttributes(){return!this.canEndAttribute&&[new a.ValidationError(`value required: ${this.el.rawValue}`)]}}},774:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GrammarWalker=t.Grammar=t.Pattern=t.BasePattern=t.eventsToTreeString=t.AnyName=t.NsName=t.NameChoice=t.Name=t.Ref=t.Value=t.Text=t.Param=t.OneOrMore=t.NotAllowed=t.List=t.Interleave=t.Group=t.Empty=t.Element=t.Define=t.Data=t.Choice=t.Attribute=t.EName=void 0;var n=r(4173);Object.defineProperty(t,"EName",{enumerable:!0,get:function(){return n.EName}});var u=r(8317);Object.defineProperty(t,"Attribute",{enumerable:!0,get:function(){return u.Attribute}});var a=r(7662);Object.defineProperty(t,"Choice",{enumerable:!0,get:function(){return a.Choice}});var s=r(7065);Object.defineProperty(t,"Data",{enumerable:!0,get:function(){return s.Data}});var d=r(3378);Object.defineProperty(t,"Define",{enumerable:!0,get:function(){return d.Define}});var i=r(7377);Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return i.Element}});var o=r(4200);Object.defineProperty(t,"Empty",{enumerable:!0,get:function(){return o.Empty}});var c=r(5146);Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return c.Group}});var l=r(1912);Object.defineProperty(t,"Interleave",{enumerable:!0,get:function(){return l.Interleave}});var f=r(6573);Object.defineProperty(t,"List",{enumerable:!0,get:function(){return f.List}});var h=r(2339);Object.defineProperty(t,"NotAllowed",{enumerable:!0,get:function(){return h.NotAllowed}});var p=r(4253);Object.defineProperty(t,"OneOrMore",{enumerable:!0,get:function(){return p.OneOrMore}});var m=r(5692);Object.defineProperty(t,"Param",{enumerable:!0,get:function(){return m.Param}});var b=r(8470);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return b.Text}});var g=r(772);Object.defineProperty(t,"Value",{enumerable:!0,get:function(){return g.Value}});var v=r(3492);Object.defineProperty(t,"Ref",{enumerable:!0,get:function(){return v.Ref}});var w=r(5926);Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return w.Name}}),Object.defineProperty(t,"NameChoice",{enumerable:!0,get:function(){return w.NameChoice}}),Object.defineProperty(t,"NsName",{enumerable:!0,get:function(){return w.NsName}}),Object.defineProperty(t,"AnyName",{enumerable:!0,get:function(){return w.AnyName}});var y=r(9216);Object.defineProperty(t,"eventsToTreeString",{enumerable:!0,get:function(){return y.eventsToTreeString}}),Object.defineProperty(t,"BasePattern",{enumerable:!0,get:function(){return y.BasePattern}}),Object.defineProperty(t,"Pattern",{enumerable:!0,get:function(){return y.Pattern}});var x=r(3580);Object.defineProperty(t,"Grammar",{enumerable:!0,get:function(){return x.Grammar}}),Object.defineProperty(t,"GrammarWalker",{enumerable:!0,get:function(){return x.GrammarWalker}})},798:(e,t,r)=>{"use strict";var n,u,a=r(5951),s=r(6794),d=a.process,i=a.Deno,o=d&&d.versions||i&&i.version,c=o&&o.v8;c&&(u=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!u&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(u=+n[1]),e.exports=u},974:(e,t,r)=>{"use strict";var n=r(8280),u=r(8804),a=RegExp.prototype;e.exports=function(e){return e===a||n(a,e)?u(e):e.flags}},1028:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makePatternFromSimplifiedSchema=function(e){const t=a(e);if(!(t instanceof u.Grammar))throw new Error("tree did not produce a Grammar!");return t};const n=r(5926),u=r(774);function a(e){switch(e.local){case"grammar":return new u.Grammar(e.path,a(e.children[0]),e.children.slice(1).map((e=>a(e))));case"except":case"start":return a(e.children[0]);case"define":return new u.Define(e.path,e.mustGetAttribute("name"),a(e.children[0]));case"ref":return new u.Ref(e.path,e.mustGetAttribute("name"));case"value":return new u.Value(e.path,e.text,e.mustGetAttribute("type"),e.mustGetAttribute("datatypeLibrary"),e.mustGetAttribute("ns"),e.documentation);case"data":const t=e.children,r=t.length,n=t[r-1],d=0!==r&&"except"===n.local?n:void 0,i=(void 0===d?t:t.slice(0,-1)).map((e=>({name:e.mustGetAttribute("name"),value:e.children[0].text})));return new u.Data(e.path,e.mustGetAttribute("type"),e.mustGetAttribute("datatypeLibrary"),i,void 0!==d?a(d):void 0);case"group":return new u.Group(e.path,a(e.children[0]),a(e.children[1]));case"interleave":return new u.Interleave(e.path,a(e.children[0]),a(e.children[1]));case"choice":return new u.Choice(e.path,a(e.children[0]),a(e.children[1]));case"oneOrMore":return new u.OneOrMore(e.path,a(e.children[0]));case"element":return new u.Element(e.path,s(e.children[0]),a(e.children[1]));case"attribute":return new u.Attribute(e.path,s(e.children[0]),a(e.children[1]));case"empty":return new u.Empty(e.path);case"text":return new u.Text(e.path);case"list":return new u.List(e.path,a(e.children[0]));case"notAllowed":return new u.NotAllowed(e.path);default:throw new Error(`unexpected local name: ${e.local}`)}}function s(e){switch(e.local){case"choice":return new n.NameChoice(s(e.children[0]),s(e.children[1]));case"name":return new n.Name(e.mustGetAttribute("ns"),e.text,e.documentation);case"nsName":return new n.NsName(e.mustGetAttribute("ns"),0!==e.children.length?s(e.children[0]):void 0);case"anyName":return new n.AnyName(0!==e.children.length?s(e.children[0]):void 0);case"except":return s(e.children[0]);default:throw new Error(`unexpected local name: ${e.local}`)}}},1033:(e,t,r)=>{"use strict";var n=r(700);r(2560),e.exports=n},1086:(e,t,r)=>{"use strict";var n=r(2757);e.exports=n},1091:(e,t,r)=>{"use strict";var n=r(5951),u=r(6024),a=r(2361),s=r(2250),d=r(3846).f,i=r(7463),o=r(2046),c=r(8311),l=r(1626),f=r(9724);r(6128);var h=function(e){var t=function(r,n,a){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,a)}return u(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,u,p,m,b,g,v,w,y,x=e.target,E=e.global,F=e.stat,A=e.proto,_=E?n:F?n[x]:n[x]&&n[x].prototype,S=E?o:o[x]||l(o,x,{})[x],N=S.prototype;for(m in t)u=!(r=i(E?m:x+(F?".":"#")+m,e.forced))&&_&&f(_,m),g=S[m],u&&(v=e.dontCallGetSet?(y=d(_,m))&&y.value:_[m]),b=u&&v?v:t[m],(r||A||typeof g!=typeof b)&&(w=e.bind&&u?c(b,n):e.wrap&&u?h(b):A&&s(b)?a(b):b,(e.sham||b&&b.sham||g&&g.sham)&&l(w,"sham",!0),l(S,m,w),A&&(f(o,p=x+"Prototype")||l(o,p,{}),l(o[p],m,b),e.real&&N&&(r||!N[m])&&l(N,m,b)))}},1127:(e,t,r)=>{"use strict";r(5745);var n=r(1747);e.exports=n("Array","push")},1175:(e,t,r)=>{"use strict";var n=r(9846);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1176:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},1229:(e,t,r)=>{"use strict";var n=r(8311),u=r(1549),a=r(9298),s=r(6818),d=r(7812),i=r(5468),o=r(575),c=r(5543),l=r(300),f=r(3448),h=Array;e.exports=function(e){var t=a(e),r=i(this),p=arguments.length,m=p>1?arguments[1]:void 0,b=void 0!==m;b&&(m=n(m,p>2?arguments[2]:void 0));var g,v,w,y,x,E,F=f(t),A=0;if(!F||this===h&&d(F))for(g=o(t),v=r?new this(g):h(g);g>A;A++)E=b?m(t[A],A):t[A],c(v,A,E);else for(v=r?new this:[],x=(y=l(t,F)).next;!(w=u(x,y)).done;A++)E=b?s(y,m,[w.value,A],!0):w.value,c(v,A,E);return v.length=A,v}},1238:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(u,a){function s(e){try{i(n.next(e))}catch(t){a(t)}}function d(e){try{i(n.throw(e))}catch(t){a(t)}}function i(e){var t;e.done?u(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,d)}i((n=n.apply(e,t||[])).next())}))};if(Object.defineProperty(t,"__esModule",{value:!0}),t.FetchResourceLoader=t.FetchResource=void 0,"undefined"==typeof fetch)throw new Error("trying to load the fetch loader when fetch is absent");class n{constructor(e,t){this.url=e,this.response=t}getText(){return r(this,void 0,void 0,(function*(){return this.response.text()}))}}t.FetchResource=n;t.FetchResourceLoader=class{load(e){return r(this,void 0,void 0,(function*(){if("file:"===e.protocol)throw new Error("this loader cannot load from the file system");const t=yield fetch(e.toString());if(!t.ok)throw new Error(`unable to fetch ${e}`);return new n(e,t)}))}}},1251:(e,t,r)=>{var n=r(2382);e.exports=function(e){if(n(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},1263:(e,t,r)=>{"use strict";r(6737);var n=r(1747);e.exports=n("Array","sort")},1362:(e,t,r)=>{"use strict";r(9748);var n=r(1747);e.exports=n("Array","includes")},1372:(e,t,r)=>{"use strict";r(366)("metadata")},1393:(e,t,r)=>{e.exports=r(530)},1394:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChoiceError=t.ElementNameError=t.AttributeValueError=t.AttributeNameError=t.SingleNameError=t.ValidationError=void 0;class r{constructor(e){this.msg=e}toString(){return this.toStringWithNames(this.getNames())}getNames(){return[]}toStringWithNames(e){return this.msg}equals(e){return this===e||this.toString()===e.toString()}}t.ValidationError=r;class n extends r{constructor(e,t){super(e),this.name=t}getNames(){return[this.name]}toStringWithNames(e){return`${this.msg}: ${e[0].toString()}`}}t.SingleNameError=n;t.AttributeNameError=class extends n{};t.AttributeValueError=class extends n{};t.ElementNameError=class extends n{};t.ChoiceError=class extends r{constructor(e,t){super(""),this.namesA=e,this.namesB=t}getNames(){return this.namesA.concat(this.namesB)}toStringWithNames(e){const t=e.slice(0,this.namesA.length),r=e.slice(this.namesA.length);return`must choose either ${t.join(", ")} or ${r.join(", ")}`}}},1470:(e,t,r)=>{"use strict";var n=r(1907),u=r(5482),a=r(160),s=r(4239),d=n("".charAt),i=n("".charCodeAt),o=n("".slice),c=function(e){return function(t,r){var n,c,l=a(s(t)),f=u(r),h=l.length;return f<0||f>=h?e?"":void 0:(n=i(l,f))<55296||n>56319||f+1===h||(c=i(l,f+1))<56320||c>57343?e?d(l,f):n:e?o(l,f,f+2):c-56320+(n-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},1487:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR="\t\n\r --�𐀀-",t.S=" \t\r\n",t.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",t.NAME_CHAR="-"+t.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",t.CHAR_RE=new RegExp("^["+t.CHAR+"]$","u"),t.S_RE=new RegExp("^["+t.S+"]+$","u"),t.NAME_START_CHAR_RE=new RegExp("^["+t.NAME_START_CHAR+"]$","u"),t.NAME_CHAR_RE=new RegExp("^["+t.NAME_CHAR+"]$","u"),t.NAME_RE=new RegExp("^["+t.NAME_START_CHAR+"]["+t.NAME_CHAR+"]*$","u"),t.NMTOKEN_RE=new RegExp("^["+t.NAME_CHAR+"]+$","u");function r(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}t.S_LIST=[32,10,13,9],t.isChar=function(e){return e>=32&&e<=55295||10===e||13===e||9===e||e>=57344&&e<=65533||e>=65536&&e<=1114111},t.isS=function(e){return 32===e||10===e||13===e||9===e},t.isNameStartChar=r,t.isNameChar=function(e){return r(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},1505:(e,t,r)=>{"use strict";var n=r(8828);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1519:(e,t,r)=>{"use strict";e.exports=r(9029)},1549:(e,t,r)=>{"use strict";var n=r(1505),u=Function.prototype.call;e.exports=n?u.bind(u):function(){return u.apply(u,arguments)}},1564:(e,t,r)=>{"use strict";var n=r(7725);e.exports=n},1607:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},1626:(e,t,r)=>{"use strict";var n=r(9447),u=r(4284),a=r(5817);e.exports=n?function(e,t,r){return u.f(e,t,a(1,r))}:function(e,t,r){return e[t]=r,e}},1632:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextEvent=t.AttributeValueEvent=t.ValueEvent=t.AttributeNameEvent=t.EndTagEvent=t.LeaveStartTagEvent=t.EnterStartTagEvent=t.NamePatternEvent=t.Event=void 0;class r{}t.Event=r;class n extends r{constructor(e,t){super(),this.name=e,this.namePattern=t}get param(){return this.namePattern}get params(){return[this.name,this.namePattern]}equals(e){return this.name===e.name&&this.namePattern.toString()===e.namePattern.toString()}toString(){return`Event: ${this.name}, ${this.namePattern}`}}t.NamePatternEvent=n;t.EnterStartTagEvent=class extends n{constructor(e){super("enterStartTag",e),this.isAttributeEvent=!1}};t.LeaveStartTagEvent=class extends r{constructor(){super(...arguments),this.name="leaveStartTag",this.isAttributeEvent=!1,this.param=null}get params(){return["leaveStartTag"]}equals(e){return this.name===e.name}toString(){return`Event: ${this.name}`}};t.EndTagEvent=class extends n{constructor(e){super("endTag",e),this.isAttributeEvent=!1}};t.AttributeNameEvent=class extends n{constructor(e){super("attributeName",e),this.isAttributeEvent=!0}};class u extends r{constructor(e,t,r){super(),this.name=e,this.value=t,this.documentation=r}get params(){return[this.name,this.value]}get param(){return this.value}equals(e){return this.name===e.name&&this.value.toString()===e.value.toString()}toString(){return`Event: ${this.name}, ${this.value}`}}t.ValueEvent=u;t.AttributeValueEvent=class extends u{constructor(e,t){super("attributeValue",e,t),this.isAttributeEvent=!0}};t.TextEvent=class extends u{constructor(e,t){super("text",e,t),this.isAttributeEvent=!1}}},1660:(e,t,r)=>{"use strict";r(366)("species")},1697:(e,t,r)=>{"use strict";r(366)("customMatcher")},1746:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.step9=function e(t){for(let r=0;r<t.children.length;++r){const u=t.children[r];(0,n.isElement)(u)&&("div"===u.local?(u.children.length>0&&t.insertAt(r+1,u.children.slice()),t.removeChildAt(r),--r):e(u))}return t};const n=r(5555)},1747:(e,t,r)=>{"use strict";var n=r(5951),u=r(2046);e.exports=function(e,t){var r=u[e+"Prototype"],a=r&&r[t];if(a)return a;var s=n[e],d=s&&s.prototype;return d&&d[t]}},1785:(e,t,r)=>{"use strict";r(1091)({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:r(9197)})},1793:(e,t,r)=>{"use strict";var n=r(5807);e.exports=Array.isArray||function(e){return"Array"===n(e)}},1871:(e,t,r)=>{"use strict";var n=r(1907),u=r(2159);e.exports=function(e,t,r){try{return n(u(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(a){}}},1907:(e,t,r)=>{"use strict";var n=r(1505),u=Function.prototype,a=u.call,s=n&&u.bind.bind(a,a);e.exports=n?s:function(e){return function(){return a.apply(e,arguments)}}},1912:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Interleave=void 0;const n=r(6641),u=r(9216);class a extends u.TwoSubpatterns{_computeHasEmptyPattern(){return this.patA.hasEmptyPattern()&&this.patB.hasEmptyPattern()}newWalker(){const e=this.hasAttrs(),t=this.patA.newWalker(),r=this.patB.newWalker();return new s(this,t,r,e,!1,!e||t.canEndAttribute&&r.canEndAttribute,t.canEnd&&r.canEnd)}}t.Interleave=a;class s{constructor(e,t,r,n,u,a,s){this.el=e,this.walkerA=t,this.walkerB=r,this.hasAttrs=n,this.ended=u,this.canEndAttribute=a,this.canEnd=s}clone(){return new s(this.el,this.walkerA.clone(),this.walkerB.clone(),this.hasAttrs,this.ended,this.canEndAttribute,this.canEnd)}possible(){if(this.ended)return new Set;const e=this.walkerA.possible();return(0,n.union)(e,this.walkerB.possible()),e}possibleAttributes(){if(this.ended)return new Set;const e=this.walkerA.possibleAttributes();return(0,n.union)(e,this.walkerB.possibleAttributes()),e}fireEvent(e,t,r){if(!this.hasAttrs&&(0,u.isAttributeEvent)(e))return new u.InternalFireEventResult(!1);const{walkerA:n,walkerB:a}=this,s=n.fireEvent(e,t,r);if(s.matched)return this.canEndAttribute=n.canEndAttribute&&a.canEndAttribute,this.canEnd=n.canEnd&&a.canEnd,s;const d=a.fireEvent(e,t,r);return d.matched?(this.canEndAttribute=n.canEndAttribute&&a.canEndAttribute,this.canEnd=n.canEnd&&a.canEnd,d):new u.InternalFireEventResult(!1)}end(){if(this.ended)return!1;if(this.canEnd)return this.ended=!0,!1;const e=this.walkerA.end(),t=this.walkerB.end();return e?t?e.concat(t):e:t}endAttributes(){if(this.canEndAttribute)return!1;const e=this.walkerA.endAttributes(),t=this.walkerB.endAttributes();return e?t?e.concat(t):e:t}}},1921:(e,t,r)=>{"use strict";var n=r(4326);e.exports=n},1926:(e,t,r)=>{"use strict";r(6750);var n=r(2046).Object,u=e.exports=function(e,t,r){return n.defineProperty(e,t,r)};n.defineProperty.sham&&(u.sham=!0)},1958:(e,t,r)=>{"use strict";e.exports=r(3520)},1969:(e,t,r)=>{"use strict";var n=r(2092);e.exports=n},2014:(e,t,r)=>{"use strict";e.exports=r(8980)},2046:e=>{"use strict";e.exports={}},2074:(e,t,r)=>{"use strict";var n=r(2087),u=TypeError;e.exports=function(e){if(n(e))throw new u("The method doesn't accept regular expressions");return e}},2085:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAvailableSimplifiers=function(){return Object.keys(r)},t.isAvailable=function(e){return void 0!==r[e]},t.registerSimplifier=function(e,t){r[e]=t},t.makeSimplifier=function(e,t){const n=r[e];if(void 0===n)throw new Error(`unknown simplifier name: ${e}`);return new n(t)};const r=Object.create(null)},2087:(e,t,r)=>{"use strict";var n=r(6285),u=r(5807),a=r(6264)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[a])?!!t:"RegExp"===u(e))}},2092:(e,t,r)=>{"use strict";r(5650);var n=r(1747);e.exports=n("Array","forEach")},2099:(e,t,r)=>{"use strict";var n=r(1091),u=r(1793),a=r(5468),s=r(6285),d=r(4849),i=r(575),o=r(7374),c=r(5543),l=r(6264),f=r(7171),h=r(3427),p=f("slice"),m=l("species"),b=Array,g=Math.max;n({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var r,n,l,f=o(this),p=i(f),v=d(e,p),w=d(void 0===t?p:t,p);if(u(f)&&(r=f.constructor,(a(r)&&(r===b||u(r.prototype))||s(r)&&null===(r=r[m]))&&(r=void 0),r===b||void 0===r))return h(f,v,w);for(n=new(void 0===r?b:r)(g(w-v,0)),l=0;v<w;v++,l++)v in f&&c(n,l,f[v]);return n.length=l,n}})},2156:e=>{"use strict";e.exports=function(){}},2159:(e,t,r)=>{"use strict";var n=r(2250),u=r(4640),a=TypeError;e.exports=function(e){if(n(e))return e;throw new a(u(e)+" is not a function")}},2193:(e,t,r)=>{"use strict";var n=r(1091),u=r(2778);n({global:!0,forced:parseInt!==u},{parseInt:u})},2220:(e,t,r)=>{"use strict";var n=r(9447),u=r(8661),a=r(4284),s=r(6624),d=r(7374),i=r(2875);t.f=n&&!u?Object.defineProperties:function(e,t){s(e);for(var r,n=d(t),u=i(t),o=u.length,c=0;o>c;)a.f(e,r=u[c++],n[r]);return