archgine 1.0.4 → 1.0.6
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.
- package/lib/environment.worker.js +1 -1
- package/lib/index.d.ts +5 -0
- package/lib/index.mjs +4474 -0
- package/lib/index.umd.js +5 -0
- package/package.json +12 -4
- package/lib/archgine.d.ts +0 -21
- package/lib/archgine.esm.js +0 -8155
- package/lib/archgine.mjs +0 -8155
- package/lib/archgine.umd.js +0 -31
package/lib/index.umd.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
(function(U,K){typeof exports=="object"&&typeof module<"u"?K(exports):typeof define=="function"&&define.amd?define(["exports"],K):(U=typeof globalThis<"u"?globalThis:U||self,K(U.archgine={}))})(this,function(U){"use strict";const K={name:"TinyEngine",containerId:"tinyEngine",canvas:"tinyEngine",width:0,height:0,aspect:1,dpr:1,alpha:!1,color:"#232323",fps:60,syncDelay:800,animateDuration:1e3,usedCache:!1,showPoints:!1,wireframe:!1,castShadow:!1,workerRender:!1,monitorDuration:1e4,light:{color:"#f2f2f2",position:[-6,6,0],castShadow:!0,shadowBlur:16},camera:{left:-1,right:1,top:1,bottom:-1,aspect:1,eye:[0,0,0],up:[0,0,1],helperEnable:!0},controls:{target:[0,0,0],minDistance:.1,maxDistance:1e3,enablePan:!0,enableRotate:!0,enableZoom:!0,focusMode:!0,autoRotate:!1,autoRotateSpeed:.5,enableDamping:!0,dampingFactor:.2},gridHelper:{fill:"#e3e3e3"},axesHelper:{},displayUnits:"",tooltip:!0,assetType:"rm",zoomToSelectEnable:!1,selectEnable:!1,multiSelectEnable:!1,socialDistanceEnable:!1,socialDistance:{radius:3}};function Ju(e,u){const r=e.x*Math.cos(u)-e.y*Math.sin(u),t=e.y*Math.cos(u)+e.x*Math.sin(u);e.x=r,e.y=t}function He(e,u,r){e.x+=u,e.y+=r}function Ku(e,u){e.x*=u,e.y*=u}class uu{commands;constructor(u){this.commands=[],u&&u instanceof uu?this.commands.push(...u.commands):u&&(this.commands=Ye(u))}addPath(u){u&&u instanceof uu&&this.commands.push(...u.commands)}moveTo(u,r){this.commands.push(["M",u,r])}lineTo(u,r){this.commands.push(["L",u,r])}arc(u,r,t,n,a,o){this.commands.push(["AC",u,r,t,n,a,!!o])}arcTo(u,r,t,n,a){this.commands.push(["AT",u,r,t,n,a])}ellipse(u,r,t,n,a,o,s,l){this.commands.push(["E",u,r,t,n,a,o,s,!!l])}closePath(){this.commands.push(["Z"])}bezierCurveTo(u,r,t,n,a,o){this.commands.push(["C",u,r,t,n,a,o])}quadraticCurveTo(u,r,t,n){this.commands.push(["Q",u,r,t,n])}rect(u,r,t,n){this.commands.push(["R",u,r,t,n])}roundRect(u,r,t,n,a){typeof a>"u"?this.commands.push(["RR",u,r,t,n,0]):this.commands.push(["RR",u,r,t,n,a])}}function Lu(e,u){let r=0,t=0,n,a,o,s,l,c,p,D,f,b,T,v,g,h,w,C,F,S,L,cu,yu,E=null,q=null,m=null,N=null,H=null,I=null;e.beginPath();for(let A=0;A<u.length;++A){S=u[A][0],S!=="S"&&S!=="s"&&S!=="C"&&S!=="c"&&(E=null,q=null),S!=="T"&&S!=="t"&&S!=="Q"&&S!=="q"&&(m=null,N=null);let i;switch(S){case"m":case"M":i=u[A],S==="m"?(r+=i[1],t+=i[2]):(r=i[1],t=i[2]),(S==="M"||!H)&&(H={x:r,y:t}),e.moveTo(r,t);break;case"l":i=u[A],r+=i[1],t+=i[2],e.lineTo(r,t);break;case"L":i=u[A],r=i[1],t=i[2],e.lineTo(r,t);break;case"H":i=u[A],r=i[1],e.lineTo(r,t);break;case"h":i=u[A],r+=i[1],e.lineTo(r,t);break;case"V":i=u[A],t=i[1],e.lineTo(r,t);break;case"v":i=u[A],t+=i[1],e.lineTo(r,t);break;case"a":case"A":if(i=u[A],I===null)throw new Error("This should never happen");S==="a"?(r+=i[6],t+=i[7]):(r=i[6],t=i[7]),h=i[1],w=i[2],p=i[3]*Math.PI/180,o=!!i[4],s=!!i[5],l={x:r,y:t},c={x:(I.x-l.x)/2,y:(I.y-l.y)/2},Ju(c,-p),D=c.x*c.x/(h*h)+c.y*c.y/(w*w),D>1&&(D=Math.sqrt(D),h*=D,w*=D),L={x:h*c.y/w,y:-(w*c.x)/h},f=h*h*w*w,b=h*h*c.y*c.y+w*w*c.x*c.x,s!==o?Ku(L,Math.sqrt((f-b)/b)||0):Ku(L,-Math.sqrt((f-b)/b)||0),a=Math.atan2((c.y-L.y)/w,(c.x-L.x)/h),n=Math.atan2(-(c.y+L.y)/w,-(c.x+L.x)/h),Ju(L,p),He(L,(l.x+I.x)/2,(l.y+I.y)/2),e.save(),e.translate(L.x,L.y),e.rotate(p),e.scale(h,w),e.arc(0,0,1,a,n,!s),e.restore();break;case"C":i=u[A],E=i[3],q=i[4],r=i[5],t=i[6],e.bezierCurveTo(i[1],i[2],E,q,r,t);break;case"c":i=u[A],e.bezierCurveTo(i[1]+r,i[2]+t,i[3]+r,i[4]+t,i[5]+r,i[6]+t),E=i[3]+r,q=i[4]+t,r+=i[5],t+=i[6];break;case"S":i=u[A],(E===null||q===null)&&(E=r,q=t),e.bezierCurveTo(2*r-E,2*t-q,i[1],i[2],i[3],i[4]),E=i[1],q=i[2],r=i[3],t=i[4];break;case"s":i=u[A],(E===null||q===null)&&(E=r,q=t),e.bezierCurveTo(2*r-E,2*t-q,i[1]+r,i[2]+t,i[3]+r,i[4]+t),E=i[1]+r,q=i[2]+t,r+=i[3],t+=i[4];break;case"Q":i=u[A],m=i[1],N=i[2],r=i[3],t=i[4],e.quadraticCurveTo(m,N,r,t);break;case"q":i=u[A],m=i[1]+r,N=i[2]+t,r+=i[3],t+=i[4],e.quadraticCurveTo(m,N,r,t);break;case"T":i=u[A],(m===null||N===null)&&(m=r,N=t),m=2*r-m,N=2*t-N,r=i[1],t=i[2],e.quadraticCurveTo(m,N,r,t);break;case"t":i=u[A],(m===null||N===null)&&(m=r,N=t),m=2*r-m,N=2*t-N,r+=i[1],t+=i[2],e.quadraticCurveTo(m,N,r,t);break;case"z":case"Z":H&&(r=H.x,t=H.y),H=null,e.closePath();break;case"AC":i=u[A],r=i[1],t=i[2],g=i[3],a=i[4],n=i[5],cu=i[6],e.arc(r,t,g,a,n,cu);break;case"AT":i=u[A],T=i[1],v=i[2],r=i[3],t=i[4],g=i[5],e.arcTo(T,v,r,t,g);break;case"E":i=u[A],r=i[1],t=i[2],h=i[3],w=i[4],p=i[5],a=i[6],n=i[7],cu=i[8],e.save(),e.translate(r,t),e.rotate(p),e.scale(h,w),e.arc(0,0,1,a,n,cu),e.restore();break;case"R":i=u[A],r=i[1],t=i[2],C=i[3],F=i[4],H={x:r,y:t},e.rect(r,t,C,F);break;case"RR":i=u[A],r=i[1],t=i[2],C=i[3],F=i[4],yu=i[5],H={x:r,y:t},e.roundRect(r,t,C,F,yu);break}I?(I.x=r,I.y=t):I={x:r,y:t}}}function ze(e){if(!e||!e.CanvasRenderingContext2D||e.Path2D)return;const{CanvasRenderingContext2D:u}=e,r=u==null?void 0:u.prototype.fill,t=u==null?void 0:u.prototype.stroke,n=u==null?void 0:u.prototype.isPointInPath;u.prototype.fill=function(...o){if(o[0]instanceof uu){const s=o[0],l=o[1]||"nonzero";Lu(this,s.commands),r.apply(this,[l])}else{const s=o[0]||"nonzero";return r.apply(this,[s])}},u.prototype.stroke=function(o){o&&Lu(this,o.commands),t.apply(this)},u.prototype.isPointInPath=function(...o){if(o[0]instanceof uu){const s=o[0],l=o[1],c=o[2],p=o[3]||"nonzero";return Lu(this,s.commands),n.apply(this,[l,c,p])}else return n.apply(this,o)},e.Path2D=uu}const pu={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},$e=/([astvzqmhlc])([^astvzqmhlc]*)/gi,je=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Xe(e){const u=e.match(je);return u?u.map(Number):[]}function Ye(e){const u=[],r=String(e).trim();return r[0]!=="M"&&r[0]!=="m"||r.replace($e,(t,n,a)=>{const o=Xe(a);let s=n.toLowerCase(),l=n;if(s==="m"&&o.length>2&&(u.push([l,...o.splice(0,2)]),s="l",l=l==="m"?"l":"L"),o.length<pu[s])return"";for(u.push([l,...o.splice(0,pu[s])]);o.length>=pu[s]&&o.length&&pu[s];)u.push([l,...o.splice(0,pu[s])]);return""}),u}var W={},z={};function We(e,u,r){if(r===void 0&&(r=Array.prototype),e&&typeof r.find=="function")return r.find.call(e,u);for(var t=0;t<e.length;t++)if(Object.prototype.hasOwnProperty.call(e,t)){var n=e[t];if(u.call(void 0,n,t,e))return n}}function Iu(e,u){return u===void 0&&(u=Object),u&&typeof u.freeze=="function"?u.freeze(e):e}function Ze(e,u){if(e===null||typeof e!="object")throw new TypeError("target is not an object");for(var r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);return e}var ue=Iu({HTML:"text/html",isHTML:function(e){return e===ue.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),ee=Iu({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===ee.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});z.assign=Ze,z.find=We,z.freeze=Iu,z.MIME_TYPE=ue,z.NAMESPACE=ee;var re=z,V=re.find,hu=re.NAMESPACE;function Qe(e){return e!==""}function Je(e){return e?e.split(/[\t\n\f\r ]+/).filter(Qe):[]}function Ke(e,u){return e.hasOwnProperty(u)||(e[u]=!0),e}function te(e){if(!e)return[];var u=Je(e);return Object.keys(u.reduce(Ke,{}))}function ur(e){return function(u){return e&&e.indexOf(u)!==-1}}function fu(e,u){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(u[r]=e[r])}function k(e,u){var r=e.prototype;if(!(r instanceof u)){let t=function(){};t.prototype=u.prototype,t=new t,fu(r,t),e.prototype=r=t}r.constructor!=e&&(typeof e!="function"&&console.error("unknown Class:"+e),r.constructor=e)}var R={},_=R.ELEMENT_NODE=1,eu=R.ATTRIBUTE_NODE=2,wu=R.TEXT_NODE=3,ne=R.CDATA_SECTION_NODE=4,ie=R.ENTITY_REFERENCE_NODE=5,er=R.ENTITY_NODE=6,ae=R.PROCESSING_INSTRUCTION_NODE=7,oe=R.COMMENT_NODE=8,se=R.DOCUMENT_NODE=9,le=R.DOCUMENT_TYPE_NODE=10,$=R.DOCUMENT_FRAGMENT_NODE=11,rr=R.NOTATION_NODE=12,x={},B={};x.INDEX_SIZE_ERR=(B[1]="Index size error",1),x.DOMSTRING_SIZE_ERR=(B[2]="DOMString size error",2);var O=x.HIERARCHY_REQUEST_ERR=(B[3]="Hierarchy request error",3);x.WRONG_DOCUMENT_ERR=(B[4]="Wrong document",4),x.INVALID_CHARACTER_ERR=(B[5]="Invalid character",5),x.NO_DATA_ALLOWED_ERR=(B[6]="No data allowed",6),x.NO_MODIFICATION_ALLOWED_ERR=(B[7]="No modification allowed",7);var ce=x.NOT_FOUND_ERR=(B[8]="Not found",8);x.NOT_SUPPORTED_ERR=(B[9]="Not supported",9);var pe=x.INUSE_ATTRIBUTE_ERR=(B[10]="Attribute in use",10);x.INVALID_STATE_ERR=(B[11]="Invalid state",11),x.SYNTAX_ERR=(B[12]="Syntax error",12),x.INVALID_MODIFICATION_ERR=(B[13]="Invalid modification",13),x.NAMESPACE_ERR=(B[14]="Invalid namespace",14),x.INVALID_ACCESS_ERR=(B[15]="Invalid access",15);function y(e,u){if(u instanceof Error)var r=u;else r=this,Error.call(this,B[e]),this.message=B[e],Error.captureStackTrace&&Error.captureStackTrace(this,y);return r.code=e,u&&(this.message=this.message+": "+u),r}y.prototype=Error.prototype,fu(x,y);function j(){}j.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,u){for(var r=[],t=0;t<this.length;t++)tu(this[t],r,e,u);return r.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}};function ru(e,u){this._node=e,this._refresh=u,Mu(this)}function Mu(e){var u=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==u){var r=e._refresh(e._node);if(Fe(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var t=r.length;t in e;t++)Object.prototype.hasOwnProperty.call(e,t)&&delete e[t];fu(r,e),e._inc=u}}ru.prototype.item=function(e){return Mu(this),this[e]||null},k(ru,j);function Bu(){}function he(e,u){for(var r=e.length;r--;)if(e[r]===u)return r}function fe(e,u,r,t){if(t?u[he(u,t)]=r:u[u.length++]=r,e){r.ownerElement=e;var n=e.ownerDocument;n&&(t&&ge(n,e,t),tr(n,e,r))}}function De(e,u,r){var t=he(u,r);if(t>=0){for(var n=u.length-1;t<n;)u[t]=u[++t];if(u.length=n,e){var a=e.ownerDocument;a&&(ge(a,e,r),r.ownerElement=null)}}else throw new y(ce,new Error(e.tagName+"@"+r))}Bu.prototype={length:0,item:j.prototype.item,getNamedItem:function(e){for(var u=this.length;u--;){var r=this[u];if(r.nodeName==e)return r}},setNamedItem:function(e){var u=e.ownerElement;if(u&&u!=this._ownerElement)throw new y(pe);var r=this.getNamedItem(e.nodeName);return fe(this._ownerElement,this,e,r),r},setNamedItemNS:function(e){var u=e.ownerElement,r;if(u&&u!=this._ownerElement)throw new y(pe);return r=this.getNamedItemNS(e.namespaceURI,e.localName),fe(this._ownerElement,this,e,r),r},removeNamedItem:function(e){var u=this.getNamedItem(e);return De(this._ownerElement,this,u),u},removeNamedItemNS:function(e,u){var r=this.getNamedItemNS(e,u);return De(this._ownerElement,this,r),r},getNamedItemNS:function(e,u){for(var r=this.length;r--;){var t=this[r];if(t.localName==u&&t.namespaceURI==e)return t}return null}};function me(){}me.prototype={hasFeature:function(e,u){return!0},createDocument:function(e,u,r){var t=new mu;if(t.implementation=this,t.childNodes=new j,t.doctype=r||null,r&&t.appendChild(r),u){var n=t.createElementNS(e,u);t.appendChild(n)}return t},createDocumentType:function(e,u,r){var t=new Fu;return t.name=e,t.nodeName=e,t.publicId=u||"",t.systemId=r||"",t}};function d(){}d.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,u){return Nu(this,e,u)},replaceChild:function(e,u){Nu(this,e,u,Ce),u&&this.removeChild(u)},removeChild:function(e){return Ae(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return ju(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var u=e.nextSibling;u&&u.nodeType==wu&&e.nodeType==wu?(this.removeChild(u),e.appendData(u.data)):(e.normalize(),e=u)}},isSupported:function(e,u){return this.ownerDocument.implementation.hasFeature(e,u)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var u=this;u;){var r=u._nsMap;if(r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&r[t]===e)return t}u=u.nodeType==eu?u.ownerDocument:u.parentNode}return null},lookupNamespaceURI:function(e){for(var u=this;u;){var r=u._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];u=u.nodeType==eu?u.ownerDocument:u.parentNode}return null},isDefaultNamespace:function(e){var u=this.lookupPrefix(e);return u==null}};function de(e){return e=="<"&&"<"||e==">"&&">"||e=="&"&&"&"||e=='"'&&"""||"&#"+e.charCodeAt()+";"}fu(R,d),fu(R,d.prototype);function Du(e,u){if(u(e))return!0;if(e=e.firstChild)do if(Du(e,u))return!0;while(e=e.nextSibling)}function mu(){this.ownerDocument=this}function tr(e,u,r){e&&e._inc++;var t=r.namespaceURI;t===hu.XMLNS&&(u._nsMap[r.prefix?r.localName:""]=r.value)}function ge(e,u,r,t){e&&e._inc++;var n=r.namespaceURI;n===hu.XMLNS&&delete u._nsMap[r.prefix?r.localName:""]}function _u(e,u,r){if(e&&e._inc){e._inc++;var t=u.childNodes;if(r)t[t.length++]=r;else{for(var n=u.firstChild,a=0;n;)t[a++]=n,n=n.nextSibling;t.length=a,delete t[t.length]}}}function Ae(e,u){var r=u.previousSibling,t=u.nextSibling;return r?r.nextSibling=t:e.firstChild=t,t?t.previousSibling=r:e.lastChild=r,u.parentNode=null,u.previousSibling=null,u.nextSibling=null,_u(e.ownerDocument,e),u}function nr(e){return e&&(e.nodeType===d.DOCUMENT_NODE||e.nodeType===d.DOCUMENT_FRAGMENT_NODE||e.nodeType===d.ELEMENT_NODE)}function ir(e){return e&&(G(e)||Pu(e)||X(e)||e.nodeType===d.DOCUMENT_FRAGMENT_NODE||e.nodeType===d.COMMENT_NODE||e.nodeType===d.PROCESSING_INSTRUCTION_NODE)}function X(e){return e&&e.nodeType===d.DOCUMENT_TYPE_NODE}function G(e){return e&&e.nodeType===d.ELEMENT_NODE}function Pu(e){return e&&e.nodeType===d.TEXT_NODE}function Ee(e,u){var r=e.childNodes||[];if(V(r,G)||X(u))return!1;var t=V(r,X);return!(u&&t&&r.indexOf(t)>r.indexOf(u))}function be(e,u){var r=e.childNodes||[];function t(a){return G(a)&&a!==u}if(V(r,t))return!1;var n=V(r,X);return!(u&&n&&r.indexOf(n)>r.indexOf(u))}function ar(e,u,r){if(!nr(e))throw new y(O,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new y(ce,"child not in parent");if(!ir(u)||X(u)&&e.nodeType!==d.DOCUMENT_NODE)throw new y(O,"Unexpected node type "+u.nodeType+" for parent node type "+e.nodeType)}function or(e,u,r){var t=e.childNodes||[],n=u.childNodes||[];if(u.nodeType===d.DOCUMENT_FRAGMENT_NODE){var a=n.filter(G);if(a.length>1||V(n,Pu))throw new y(O,"More than one element or text in fragment");if(a.length===1&&!Ee(e,r))throw new y(O,"Element in fragment can not be inserted before doctype")}if(G(u)&&!Ee(e,r))throw new y(O,"Only one element can be added and only after doctype");if(X(u)){if(V(t,X))throw new y(O,"Only one doctype is allowed");var o=V(t,G);if(r&&t.indexOf(o)<t.indexOf(r))throw new y(O,"Doctype can only be inserted before an element");if(!r&&o)throw new y(O,"Doctype can not be appended since element is present")}}function Ce(e,u,r){var t=e.childNodes||[],n=u.childNodes||[];if(u.nodeType===d.DOCUMENT_FRAGMENT_NODE){var a=n.filter(G);if(a.length>1||V(n,Pu))throw new y(O,"More than one element or text in fragment");if(a.length===1&&!be(e,r))throw new y(O,"Element in fragment can not be inserted before doctype")}if(G(u)&&!be(e,r))throw new y(O,"Only one element can be added and only after doctype");if(X(u)){if(V(t,function(l){return X(l)&&l!==r}))throw new y(O,"Only one doctype is allowed");var o=V(t,G);if(r&&t.indexOf(o)<t.indexOf(r))throw new y(O,"Doctype can only be inserted before an element")}}function Nu(e,u,r,t){ar(e,u,r),e.nodeType===d.DOCUMENT_NODE&&(t||or)(e,u,r);var n=u.parentNode;if(n&&n.removeChild(u),u.nodeType===$){var a=u.firstChild;if(a==null)return u;var o=u.lastChild}else a=o=u;var s=r?r.previousSibling:e.lastChild;a.previousSibling=s,o.nextSibling=r,s?s.nextSibling=a:e.firstChild=a,r==null?e.lastChild=o:r.previousSibling=o;do a.parentNode=e;while(a!==o&&(a=a.nextSibling));return _u(e.ownerDocument||e,e),u.nodeType==$&&(u.firstChild=u.lastChild=null),u}function sr(e,u){return u.parentNode&&u.parentNode.removeChild(u),u.parentNode=e,u.previousSibling=e.lastChild,u.nextSibling=null,u.previousSibling?u.previousSibling.nextSibling=u:e.firstChild=u,e.lastChild=u,_u(e.ownerDocument,e,u),u}mu.prototype={nodeName:"#document",nodeType:se,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,u){if(e.nodeType==$){for(var r=e.firstChild;r;){var t=r.nextSibling;this.insertBefore(r,u),r=t}return e}return Nu(this,e,u),e.ownerDocument=this,this.documentElement===null&&e.nodeType===_&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),Ae(this,e)},replaceChild:function(e,u){Nu(this,e,u,Ce),e.ownerDocument=this,u&&this.removeChild(u),G(e)&&(this.documentElement=e)},importNode:function(e,u){return Te(this,e,u)},getElementById:function(e){var u=null;return Du(this.documentElement,function(r){if(r.nodeType==_&&r.getAttribute("id")==e)return u=r,!0}),u},getElementsByClassName:function(e){var u=te(e);return new ru(this,function(r){var t=[];return u.length>0&&Du(r.documentElement,function(n){if(n!==r&&n.nodeType===_){var a=n.getAttribute("class");if(a){var o=e===a;if(!o){var s=te(a);o=u.every(ur(s))}o&&t.push(n)}}}),t})},createElement:function(e){var u=new J;u.ownerDocument=this,u.nodeName=e,u.tagName=e,u.localName=e,u.childNodes=new j;var r=u.attributes=new Bu;return r._ownerElement=u,u},createDocumentFragment:function(){var e=new Su;return e.ownerDocument=this,e.childNodes=new j,e},createTextNode:function(e){var u=new Uu;return u.ownerDocument=this,u.appendData(e),u},createComment:function(e){var u=new Vu;return u.ownerDocument=this,u.appendData(e),u},createCDATASection:function(e){var u=new Gu;return u.ownerDocument=this,u.appendData(e),u},createProcessingInstruction:function(e,u){var r=new zu;return r.ownerDocument=this,r.tagName=r.nodeName=r.target=e,r.nodeValue=r.data=u,r},createAttribute:function(e){var u=new Tu;return u.ownerDocument=this,u.name=e,u.nodeName=e,u.localName=e,u.specified=!0,u},createEntityReference:function(e){var u=new Hu;return u.ownerDocument=this,u.nodeName=e,u},createElementNS:function(e,u){var r=new J,t=u.split(":"),n=r.attributes=new Bu;return r.childNodes=new j,r.ownerDocument=this,r.nodeName=u,r.tagName=u,r.namespaceURI=e,t.length==2?(r.prefix=t[0],r.localName=t[1]):r.localName=u,n._ownerElement=r,r},createAttributeNS:function(e,u){var r=new Tu,t=u.split(":");return r.ownerDocument=this,r.nodeName=u,r.name=u,r.namespaceURI=e,r.specified=!0,t.length==2?(r.prefix=t[0],r.localName=t[1]):r.localName=u,r}},k(mu,d);function J(){this._nsMap={}}J.prototype={nodeType:_,hasAttribute:function(e){return this.getAttributeNode(e)!=null},getAttribute:function(e){var u=this.getAttributeNode(e);return u&&u.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,u){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+u,this.setAttributeNode(r)},removeAttribute:function(e){var u=this.getAttributeNode(e);u&&this.removeAttributeNode(u)},appendChild:function(e){return e.nodeType===$?this.insertBefore(e,null):sr(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,u){var r=this.getAttributeNodeNS(e,u);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,u){return this.getAttributeNodeNS(e,u)!=null},getAttributeNS:function(e,u){var r=this.getAttributeNodeNS(e,u);return r&&r.value||""},setAttributeNS:function(e,u,r){var t=this.ownerDocument.createAttributeNS(e,u);t.value=t.nodeValue=""+r,this.setAttributeNode(t)},getAttributeNodeNS:function(e,u){return this.attributes.getNamedItemNS(e,u)},getElementsByTagName:function(e){return new ru(this,function(u){var r=[];return Du(u,function(t){t!==u&&t.nodeType==_&&(e==="*"||t.tagName==e)&&r.push(t)}),r})},getElementsByTagNameNS:function(e,u){return new ru(this,function(r){var t=[];return Du(r,function(n){n!==r&&n.nodeType===_&&(e==="*"||n.namespaceURI===e)&&(u==="*"||n.localName==u)&&t.push(n)}),t})}},mu.prototype.getElementsByTagName=J.prototype.getElementsByTagName,mu.prototype.getElementsByTagNameNS=J.prototype.getElementsByTagNameNS,k(J,d);function Tu(){}Tu.prototype.nodeType=eu,k(Tu,d);function du(){}du.prototype={data:"",substringData:function(e,u){return this.data.substring(e,e+u)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,u){this.replaceData(e,0,u)},appendChild:function(e){throw new Error(B[O])},deleteData:function(e,u){this.replaceData(e,u,"")},replaceData:function(e,u,r){var t=this.data.substring(0,e),n=this.data.substring(e+u);r=t+r+n,this.nodeValue=this.data=r,this.length=r.length}},k(du,d);function Uu(){}Uu.prototype={nodeName:"#text",nodeType:wu,splitText:function(e){var u=this.data,r=u.substring(e);u=u.substring(0,e),this.data=this.nodeValue=u,this.length=u.length;var t=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling),t}},k(Uu,du);function Vu(){}Vu.prototype={nodeName:"#comment",nodeType:oe},k(Vu,du);function Gu(){}Gu.prototype={nodeName:"#cdata-section",nodeType:ne},k(Gu,du);function Fu(){}Fu.prototype.nodeType=le,k(Fu,d);function ve(){}ve.prototype.nodeType=rr,k(ve,d);function ye(){}ye.prototype.nodeType=er,k(ye,d);function Hu(){}Hu.prototype.nodeType=ie,k(Hu,d);function Su(){}Su.prototype.nodeName="#document-fragment",Su.prototype.nodeType=$,k(Su,d);function zu(){}zu.prototype.nodeType=ae,k(zu,d);function we(){}we.prototype.serializeToString=function(e,u,r){return Be.call(e,u,r)},d.prototype.toString=Be;function Be(e,u){var r=[],t=this.nodeType==9&&this.documentElement||this,n=t.prefix,a=t.namespaceURI;if(a&&n==null){var n=t.lookupPrefix(a);if(n==null)var o=[{namespace:a,prefix:null}]}return tu(this,r,e,u,o),r.join("")}function Ne(e,u,r){var t=e.prefix||"",n=e.namespaceURI;if(!n||t==="xml"&&n===hu.XML||n===hu.XMLNS)return!1;for(var a=r.length;a--;){var o=r[a];if(o.prefix===t)return o.namespace!==n}return!0}function $u(e,u,r){e.push(" ",u,'="',r.replace(/[<>&"\t\n\r]/g,de),'"')}function tu(e,u,r,t,n){if(n||(n=[]),t)if(e=t(e),e){if(typeof e=="string"){u.push(e);return}}else return;switch(e.nodeType){case _:var a=e.attributes,o=a.length,h=e.firstChild,s=e.tagName;r=hu.isHTML(e.namespaceURI)||r;var l=s;if(!r&&!e.prefix&&e.namespaceURI){for(var c,p=0;p<a.length;p++)if(a.item(p).name==="xmlns"){c=a.item(p).value;break}if(!c)for(var D=n.length-1;D>=0;D--){var f=n[D];if(f.prefix===""&&f.namespace===e.namespaceURI){c=f.namespace;break}}if(c!==e.namespaceURI)for(var D=n.length-1;D>=0;D--){var f=n[D];if(f.namespace===e.namespaceURI){f.prefix&&(l=f.prefix+":"+s);break}}}u.push("<",l);for(var b=0;b<o;b++){var T=a.item(b);T.prefix=="xmlns"?n.push({prefix:T.localName,namespace:T.value}):T.nodeName=="xmlns"&&n.push({prefix:"",namespace:T.value})}for(var b=0;b<o;b++){var T=a.item(b);if(Ne(T,r,n)){var v=T.prefix||"",g=T.namespaceURI;$u(u,v?"xmlns:"+v:"xmlns",g),n.push({prefix:v,namespace:g})}tu(T,u,r,t,n)}if(s===l&&Ne(e,r,n)){var v=e.prefix||"",g=e.namespaceURI;$u(u,v?"xmlns:"+v:"xmlns",g),n.push({prefix:v,namespace:g})}if(h||r&&!/^(?:meta|link|img|br|hr|input)$/i.test(s)){if(u.push(">"),r&&/^script$/i.test(s))for(;h;)h.data?u.push(h.data):tu(h,u,r,t,n.slice()),h=h.nextSibling;else for(;h;)tu(h,u,r,t,n.slice()),h=h.nextSibling;u.push("</",l,">")}else u.push("/>");return;case se:case $:for(var h=e.firstChild;h;)tu(h,u,r,t,n.slice()),h=h.nextSibling;return;case eu:return $u(u,e.name,e.value);case wu:return u.push(e.data.replace(/[<&>]/g,de));case ne:return u.push("<![CDATA[",e.data,"]]>");case oe:return u.push("<!--",e.data,"-->");case le:var w=e.publicId,C=e.systemId;if(u.push("<!DOCTYPE ",e.name),w)u.push(" PUBLIC ",w),C&&C!="."&&u.push(" ",C),u.push(">");else if(C&&C!=".")u.push(" SYSTEM ",C,">");else{var F=e.internalSubset;F&&u.push(" [",F,"]"),u.push(">")}return;case ae:return u.push("<?",e.target," ",e.data,"?>");case ie:return u.push("&",e.nodeName,";");default:u.push("??",e.nodeName)}}function Te(e,u,r){var t;switch(u.nodeType){case _:t=u.cloneNode(!1),t.ownerDocument=e;case $:break;case eu:r=!0;break}if(t||(t=u.cloneNode(!1)),t.ownerDocument=e,t.parentNode=null,r)for(var n=u.firstChild;n;)t.appendChild(Te(e,n,r)),n=n.nextSibling;return t}function ju(e,u,r){var t=new u.constructor;for(var n in u)if(Object.prototype.hasOwnProperty.call(u,n)){var a=u[n];typeof a!="object"&&a!=t[n]&&(t[n]=a)}switch(u.childNodes&&(t.childNodes=new j),t.ownerDocument=e,t.nodeType){case _:var o=u.attributes,s=t.attributes=new Bu,l=o.length;s._ownerElement=t;for(var c=0;c<l;c++)t.setAttributeNode(ju(e,o.item(c),!0));break;case eu:r=!0}if(r)for(var p=u.firstChild;p;)t.appendChild(ju(e,p,r)),p=p.nextSibling;return t}function Fe(e,u,r){e[u]=r}try{if(Object.defineProperty){let e=function(u){switch(u.nodeType){case _:case $:var r=[];for(u=u.firstChild;u;)u.nodeType!==7&&u.nodeType!==8&&r.push(e(u)),u=u.nextSibling;return r.join("");default:return u.nodeValue}};Object.defineProperty(ru.prototype,"length",{get:function(){return Mu(this),this.$$length}}),Object.defineProperty(d.prototype,"textContent",{get:function(){return e(this)},set:function(u){switch(this.nodeType){case _:case $:for(;this.firstChild;)this.removeChild(this.firstChild);(u||String(u))&&this.appendChild(this.ownerDocument.createTextNode(u));break;default:this.data=u,this.value=u,this.nodeValue=u}}}),Fe=function(u,r,t){u["$$"+r]=t}}}catch{}W.DocumentType=Fu,W.DOMException=y,W.DOMImplementation=me,W.Element=J,W.Node=d,W.NodeList=j,W.XMLSerializer=we;var xu={},Se={};(function(e){var u=z.freeze;e.XML_ENTITIES=u({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=u({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
2
|
+
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),e.entityMap=e.HTML_ENTITIES})(Se);var Xu={},gu=z.NAMESPACE,Yu=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,xe=new RegExp("[\\-\\.0-9"+Yu.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),qe=new RegExp("^"+Yu.source+xe.source+"*(?::"+Yu.source+xe.source+"*)?$"),Au=0,Z=1,nu=2,Eu=3,iu=4,au=5,bu=6,qu=7;function ou(e,u){this.message=e,this.locator=u,Error.captureStackTrace&&Error.captureStackTrace(this,ou)}ou.prototype=new Error,ou.prototype.name=ou.name;function ke(){}ke.prototype={parse:function(e,u,r){var t=this.domBuilder;t.startDocument(),Le(u,u={}),lr(e,u,r,t,this.errorHandler),t.endDocument()}};function lr(e,u,r,t,n){function a(i){if(i>65535){i-=65536;var M=55296+(i>>10),qr=56320+(i&1023);return String.fromCharCode(M,qr)}else return String.fromCharCode(i)}function o(i){var M=i.slice(1,-1);return Object.hasOwnProperty.call(r,M)?r[M]:M.charAt(0)==="#"?a(parseInt(M.substr(1).replace("x","0x"))):(n.error("entity not found:"+i),i)}function s(i){if(i>v){var M=e.substring(v,i).replace(/&#?\w+;/g,o);f&&l(v),t.characters(M,0,i-v),v=i}}function l(i,M){for(;i>=p&&(M=D.exec(e));)c=M.index,p=c+M[0].length,f.lineNumber++;f.columnNumber=i-c+1}for(var c=0,p=0,D=/.*(?:\r\n?|\n)|.*$/g,f=t.locator,b=[{currentNSMap:u}],T={},v=0;;){try{var g=e.indexOf("<",v);if(g<0){if(!e.substr(v).match(/^\s*$/)){var h=t.doc,w=h.createTextNode(e.substr(v));h.appendChild(w),t.currentElement=w}return}switch(g>v&&s(g),e.charAt(g+1)){case"/":var m=e.indexOf(">",g+3),C=e.substring(g+2,m).replace(/[ \t\n\r]+$/g,""),F=b.pop();m<0?(C=e.substring(g+2).replace(/[\s<].*/,""),n.error("end tag name: "+C+" is not complete:"+F.tagName),m=g+1+C.length):C.match(/\s</)&&(C=C.replace(/[\s<].*/,""),n.error("end tag name: "+C+" maybe not complete"),m=g+1+C.length);var S=F.localNSMap,L=F.tagName==C,cu=L||F.tagName&&F.tagName.toLowerCase()==C.toLowerCase();if(cu){if(t.endElement(F.uri,F.localName,C),S)for(var yu in S)Object.prototype.hasOwnProperty.call(S,yu)&&t.endPrefixMapping(yu);L||n.fatalError("end tag name: "+C+" is not match the current start tagName:"+F.tagName)}else b.push(F);m++;break;case"?":f&&l(g),m=Dr(e,g,t);break;case"!":f&&l(g),m=fr(e,g,t,n);break;default:f&&l(g);var E=new Ie,q=b[b.length-1].currentNSMap,m=cr(e,g,E,q,o,n),N=E.length;if(!E.closed&&hr(e,m,E.tagName,T)&&(E.closed=!0,r.nbsp||n.warning("unclosed xml attribute")),f&&N){for(var H=Re(f,{}),I=0;I<N;I++){var A=E[I];l(A.offset),A.locator=Re(f,{})}t.locator=H,Oe(E,t,q)&&b.push(E),t.locator=f}else Oe(E,t,q)&&b.push(E);gu.isHTML(E.uri)&&!E.closed?m=pr(e,m,E.tagName,o,t):m++}}catch(i){if(i instanceof ou)throw i;n.error("element parse error: "+i),m=-1}m>v?v=m:s(Math.max(g,v)+1)}}function Re(e,u){return u.lineNumber=e.lineNumber,u.columnNumber=e.columnNumber,u}function cr(e,u,r,t,n,a){function o(f,b,T){r.attributeNames.hasOwnProperty(f)&&a.fatalError("Attribute "+f+" redefined"),r.addValue(f,b.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,n),T)}for(var s,l,c=++u,p=Au;;){var D=e.charAt(c);switch(D){case"=":if(p===Z)s=e.slice(u,c),p=Eu;else if(p===nu)p=Eu;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(p===Eu||p===Z)if(p===Z&&(a.warning('attribute value must after "="'),s=e.slice(u,c)),u=c+1,c=e.indexOf(D,u),c>0)l=e.slice(u,c),o(s,l,u-1),p=au;else throw new Error("attribute value no end '"+D+"' match");else if(p==iu)l=e.slice(u,c),o(s,l,u),a.warning('attribute "'+s+'" missed start quot('+D+")!!"),u=c+1,p=au;else throw new Error('attribute value must after "="');break;case"/":switch(p){case Au:r.setTagName(e.slice(u,c));case au:case bu:case qu:p=qu,r.closed=!0;case iu:case Z:break;case nu:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),p==Au&&r.setTagName(e.slice(u,c)),c;case">":switch(p){case Au:r.setTagName(e.slice(u,c));case au:case bu:case qu:break;case iu:case Z:l=e.slice(u,c),l.slice(-1)==="/"&&(r.closed=!0,l=l.slice(0,-1));case nu:p===nu&&(l=s),p==iu?(a.warning('attribute "'+l+'" missed quot(")!'),o(s,l,u)):((!gu.isHTML(t[""])||!l.match(/^(?:disabled|checked|selected)$/i))&&a.warning('attribute "'+l+'" missed value!! "'+l+'" instead!!'),o(l,l,u));break;case Eu:throw new Error("attribute value missed!!")}return c;case"":D=" ";default:if(D<=" ")switch(p){case Au:r.setTagName(e.slice(u,c)),p=bu;break;case Z:s=e.slice(u,c),p=nu;break;case iu:var l=e.slice(u,c);a.warning('attribute "'+l+'" missed quot(")!!'),o(s,l,u);case au:p=bu;break}else switch(p){case nu:r.tagName,(!gu.isHTML(t[""])||!s.match(/^(?:disabled|checked|selected)$/i))&&a.warning('attribute "'+s+'" missed value!! "'+s+'" instead2!!'),o(s,s,u),u=c,p=Z;break;case au:a.warning('attribute space is required"'+s+'"!!');case bu:p=Z,u=c;break;case Eu:p=iu,u=c;break;case qu:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function Oe(e,u,r){for(var t=e.tagName,n=null,D=e.length;D--;){var a=e[D],o=a.qName,s=a.value,f=o.indexOf(":");if(f>0)var l=a.prefix=o.slice(0,f),c=o.slice(f+1),p=l==="xmlns"&&c;else c=o,l=null,p=o==="xmlns"&&"";a.localName=c,p!==!1&&(n==null&&(n={},Le(r,r={})),r[p]=n[p]=s,a.uri=gu.XMLNS,u.startPrefixMapping(p,s))}for(var D=e.length;D--;){a=e[D];var l=a.prefix;l&&(l==="xml"&&(a.uri=gu.XML),l!=="xmlns"&&(a.uri=r[l||""]))}var f=t.indexOf(":");f>0?(l=e.prefix=t.slice(0,f),c=e.localName=t.slice(f+1)):(l=null,c=e.localName=t);var b=e.uri=r[l||""];if(u.startElement(b,c,t,e),e.closed){if(u.endElement(b,c,t),n)for(l in n)Object.prototype.hasOwnProperty.call(n,l)&&u.endPrefixMapping(l)}else return e.currentNSMap=r,e.localNSMap=n,!0}function pr(e,u,r,t,n){if(/^(?:script|textarea)$/i.test(r)){var a=e.indexOf("</"+r+">",u),o=e.substring(u+1,a);if(/[&<]/.test(o))return/^script$/i.test(r)?(n.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,t),n.characters(o,0,o.length),a)}return u+1}function hr(e,u,r,t){var n=t[r];return n==null&&(n=e.lastIndexOf("</"+r+">"),n<u&&(n=e.lastIndexOf("</"+r)),t[r]=n),n<u}function Le(e,u){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(u[r]=e[r])}function fr(e,u,r,t){var n=e.charAt(u+2);switch(n){case"-":if(e.charAt(u+3)==="-"){var a=e.indexOf("-->",u+4);return a>u?(r.comment(e,u+4,a-u-4),a+3):(t.error("Unclosed comment"),-1)}else return-1;default:if(e.substr(u+3,6)=="CDATA["){var a=e.indexOf("]]>",u+9);return r.startCDATA(),r.characters(e,u+9,a-u-9),r.endCDATA(),a+3}var o=mr(e,u),s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var l=o[1][0],c=!1,p=!1;s>3&&(/^public$/i.test(o[2][0])?(c=o[3][0],p=s>4&&o[4][0]):/^system$/i.test(o[2][0])&&(p=o[3][0]));var D=o[s-1];return r.startDTD(l,c,p),r.endDTD(),D.index+D[0].length}}return-1}function Dr(e,u,r){var t=e.indexOf("?>",u);if(t){var n=e.substring(u,t).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return n?(n[0].length,r.processingInstruction(n[1],n[2]),t+2):-1}return-1}function Ie(){this.attributeNames={}}Ie.prototype={setTagName:function(e){if(!qe.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,u,r){if(!qe.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:u,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}};function mr(e,u){var r,t=[],n=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(n.lastIndex=u,n.exec(e);r=n.exec(e);)if(t.push(r),r[1])return t}Xu.XMLReader=ke,Xu.ParseError=ou;var dr=z,gr=W,Me=Se,_e=Xu,Ar=gr.DOMImplementation,Pe=dr.NAMESPACE,Er=_e.ParseError,br=_e.XMLReader;function Ue(e){return e.replace(/\r[\n\u0085]/g,`
|
|
3
|
+
`).replace(/[\r\u0085\u2028]/g,`
|
|
4
|
+
`)}function Ve(e){this.options=e||{locator:{}}}Ve.prototype.parseFromString=function(e,u){var r=this.options,t=new br,n=r.domBuilder||new Cu,a=r.errorHandler,o=r.locator,s=r.xmlns||{},l=/\/x?html?$/.test(u),c=l?Me.HTML_ENTITIES:Me.XML_ENTITIES;o&&n.setDocumentLocator(o),t.errorHandler=Cr(a,n,o),t.domBuilder=r.domBuilder||n,l&&(s[""]=Pe.HTML),s.xml=s.xml||Pe.XML;var p=r.normalizeLineEndings||Ue;return e&&typeof e=="string"?t.parse(p(e),s,c):t.errorHandler.error("invalid doc source"),n.doc};function Cr(e,u,r){if(!e){if(u instanceof Cu)return u;e=u}var t={},n=e instanceof Function;r=r||{};function a(o){var s=e[o];!s&&n&&(s=e.length==2?function(l){e(o,l)}:e),t[o]=s&&function(l){s("[xmldom "+o+"] "+l+Wu(r))}||function(){}}return a("warning"),a("error"),a("fatalError"),t}function Cu(){this.cdata=!1}function su(e,u){u.lineNumber=e.lineNumber,u.columnNumber=e.columnNumber}Cu.prototype={startDocument:function(){this.doc=new Ar().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,u,r,t){var n=this.doc,a=n.createElementNS(e,r||u),o=t.length;ku(this,a),this.currentElement=a,this.locator&&su(this.locator,a);for(var s=0;s<o;s++){var e=t.getURI(s),l=t.getValue(s),r=t.getQName(s),c=n.createAttributeNS(e,r);this.locator&&su(t.getLocator(s),c),c.value=c.nodeValue=l,a.setAttributeNode(c)}},endElement:function(e,u,r){var t=this.currentElement;t.tagName,this.currentElement=t.parentNode},startPrefixMapping:function(e,u){},endPrefixMapping:function(e){},processingInstruction:function(e,u){var r=this.doc.createProcessingInstruction(e,u);this.locator&&su(this.locator,r),ku(this,r)},ignorableWhitespace:function(e,u,r){},characters:function(e,u,r){if(e=Ge.apply(this,arguments),e){if(this.cdata)var t=this.doc.createCDATASection(e);else var t=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(t):/^\s*$/.test(e)&&this.doc.appendChild(t),this.locator&&su(this.locator,t)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,u,r){e=Ge.apply(this,arguments);var t=this.doc.createComment(e);this.locator&&su(this.locator,t),ku(this,t)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,u,r){var t=this.doc.implementation;if(t&&t.createDocumentType){var n=t.createDocumentType(e,u,r);this.locator&&su(this.locator,n),ku(this,n),this.doc.doctype=n}},warning:function(e){console.warn("[xmldom warning] "+e,Wu(this.locator))},error:function(e){console.error("[xmldom error] "+e,Wu(this.locator))},fatalError:function(e){throw new Er(e,this.locator)}};function Wu(e){if(e)return`
|
|
5
|
+
@`+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function Ge(e,u,r){return typeof e=="string"?e.substr(u,r):e.length>=u+r||u?new java.lang.String(e,u,r)+"":e}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){Cu.prototype[e]=function(){return null}});function ku(e,u){e.currentElement?e.currentElement.appendChild(u):e.doc.appendChild(u)}xu.__DOMHandler=Cu,xu.normalizeLineEndings=Ue,xu.DOMParser=Ve;var vr=xu.DOMParser;const yr="1.0.6";function wr(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}const lu=typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{document:void 0,tinyEngine:void 0};lu.Path2D||ze(lu),lu.DOMParser||(lu.DOMParser=vr);const Br={window:lu,version:yr,isBrowser:wr(),dpr:typeof window<"u"&&window.devicePixelRatio||1,document:lu.document,time:0,deltaTime:0,config:K},vu=(e,u,r)=>Math.max(u,Math.min(r,e)),Nr=(e,u)=>(e%u+u)%u,Zu=(e,u,r)=>(1-r)*e+r*u,Tr={transparent:"rgba(1, 1, 1, 0)",green:"#45b787",darkGreen:"#314a43",blue:"#6e9bc5",darkBlue:"#2775b6",red:"#F26666",darkRed:"#D95970",brown:"#ECD2B9",darkBrown:"#BF9D8A",yellow:"#ECDEC0",darkYellow:"#D0AC57",lightGray:"#e0e0e0",gray:"#beb6b6",darkGray:"#918883",white:"#F2F2F2",darkWhite:"#ececec",lightBlack:"#2E3032",black:"#182327",blackAlpha5:"rgba(0, 0, 0, 0.5)"},Fr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},P={h:0,s:0,l:0},Ru={h:0,s:0,l:0};function Qu(e,u,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(u-e)*6*r:r<1/2?u:r<2/3?e+(u-e)*6*(2/3-r):e}const Sr=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3}|[A-Fa-f0-9]{8})$|rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)|rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*[\d.]+\s*\)/;class Y{isColor=!0;r=1;g=1;b=1;a=1;constructor(u,r,t,n){return r===void 0&&t===void 0?this.set(u):this.setRGBA(u,r,t,n)}static isColor(u){return typeof u=="string"?Sr.test(u):typeof u=="number"?u>=0&&u<=16777215:!1}static getRandomStyle(){return Q.random().getStyle()}static getDarken(u,r=.8){return Q.set(u).getHSL(Ou),Q.setHSL(Ou.h,Ou.s,Ou.l*r).getStyle()}static getLighten(u,r=1.2){return this.getDarken(u,r)}static getContrast(u){return Q.set(u),Q.getContrastString()}static getArray(u){return Q.set(u).toArray()}static getComplementary(u){return Q.set(u),Q.getComplementaryString()}set(u){return u&&u.isColor?this.copy(u):typeof u=="number"?this.setHex(u):typeof u=="string"&&this.setStyle(u),this}random(){return this.setHex(Math.floor(Math.random()*(1<<24)))}setScalar(u){return this.r=u,this.g=u,this.b=u,this.a=1,this}setHex(u){return u=Math.floor(u),this.r=(u>>16&255)/255,this.g=(u>>8&255)/255,this.b=(u&255)/255,this.a=1,this}setR(u){return this.r=u,this}setG(u){return this.g=u,this}setB(u){return this.b=u,this}setA(u){return this.a=u,this}setRGB(u,r,t){return this.setRGBA(u,r,t,this.a)}setRGBA(u,r,t,n=1){return this.r=u,this.g=r,this.b=t,this.a=n,this}setHSL(u,r,t,n=1){if(u=Nr(u,1),r=vu(r,0,1),t=vu(t,0,1),r===0)this.r=this.g=this.b=t;else{const a=t<=.5?t*(1+r):t+r-t*r,o=2*t-a;this.r=Qu(o,a,u+1/3),this.g=Qu(o,a,u),this.b=Qu(o,a,u-1/3)}return this.a=n,this}setStyle(u){let r;if(r=/^((?:rgb|hsl)a?)\(([^\)]*)\)/.exec(u)){let t;const n=r[1],a=r[2];switch(n){case"rgb":case"rgba":if(t=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(255,parseInt(t[1],10))/255,this.g=Math.min(255,parseInt(t[2],10))/255,this.b=Math.min(255,parseInt(t[3],10))/255,this.a=Math.max(Math.min(1,t[4]!==void 0?parseFloat(t[4]):1),0),this;if(t=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(100,parseInt(t[1],10))/100,this.g=Math.min(100,parseInt(t[2],10))/100,this.b=Math.min(100,parseInt(t[3],10))/100,this.a=Math.max(Math.min(1,t[4]!==void 0?parseFloat(t[4]):1),0),this;break;case"hsl":case"hsla":if(t=/^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a)){const o=parseFloat(t[1])/360,s=parseInt(t[2],10)/100,l=parseInt(t[3],10)/100,c=Math.max(Math.min(1,t[4]!==void 0?parseFloat(t[4]):1),0);return this.setHSL(o,s,l,c)}break}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(u)){const t=r[1],n=t.length;if(n===3)return this.r=parseInt(t.charAt(0)+t.charAt(0),16)/255,this.g=parseInt(t.charAt(1)+t.charAt(1),16)/255,this.b=parseInt(t.charAt(2)+t.charAt(2),16)/255,this.a=1,this;if(n===6)return this.r=parseInt(t.charAt(0)+t.charAt(1),16)/255,this.g=parseInt(t.charAt(2)+t.charAt(3),16)/255,this.b=parseInt(t.charAt(4)+t.charAt(5),16)/255,this.a=1,this}return u&&u.length>0?this.setColorName(u):this}setColorName(u){const r=Fr[u.toLowerCase()];return r!==void 0?this.setHex(r):console.warn("Color: Unknown color "+u),this}clone(){return new Y(this.r,this.g,this.b,this.a)}copy(u){return this.r=u.r,this.g=u.g,this.b=u.b,this.a=u.a,this}getRGB(u=new Y){return u.setRGB(this.r,this.g,this.b)}getRGBByBg(u=new Y){const r=this.a,t=r*this.r+(1-r)*u.r,n=r*this.g+(1-r)*u.g,a=r*this.b+(1-r)*u.b;return new Y(t,n,a)}getHex(){return vu(this.r*255,0,255)<<16^vu(this.g*255,0,255)<<8^vu(this.b*255,0,255)<<0}getHSL(u){const r=this.r,t=this.g,n=this.b,a=Math.max(r,t,n),o=Math.min(r,t,n);let s=0,l;const c=(o+a)/2;if(o===a)s=0,l=0;else{const p=a-o;switch(l=c<=.5?p/(a+o):p/(2-a-o),a){case r:s=(t-n)/p+(t<n?6:0);break;case t:s=(n-r)/p+2;break;case n:s=(r-t)/p+4;break}s/=6}return u.h=s,u.s=l,u.l=c,u}getStyle(){return this.a===1?`rgb(${this.r*255|0},${this.g*255|0},${this.b*255|0})`:`rgba(${this.r*255|0},${this.g*255|0},${this.b*255|0},${this.a||1})`}getHexString(){return"#"+("000000"+this.getHex().toString(16)).slice(-6)}getBrightness(){let u=(this.r*255*299+this.g*255*587+this.b*255*144)/1e3;return u+=(255-u)*(255-this.a*255)/255,u}getContrastString(){return this.getBrightness()>125?"#2f2f2f":"#f2f2f2"}getComplementary(u=new Y){const r=this.toArray(),t=[0,0,0,1];for(let n=0;n<r.length;n++)if(n<3)t[n]=1-r[n];else if(n===3)r[n]>1||r[n]<=0?t[n]=1:t[n]=Math.max(Math.min(parseFloat(r[n].toFixed(2)),1),0);else continue;return u.setRGBA(t[0],t[1],t[2],parseFloat(t[3].toFixed(2)))}getComplementaryString(){return this.getComplementary().getStyle()}getLightenOrDarken(u){if(typeof u>"u"||u>=1)return this.getHexString();const r=this.getRGBByBg(),t=r.r*u+(1-u),n=r.g*u+(1-u),a=r.b*u+(1-u);return new Y(t,n,a).getHexString()}getNormalized(){return[parseFloat(Math.max(Math.min(this.r,1),0).toFixed(2)),parseFloat(Math.max(Math.min(this.g,1),0).toFixed(2)),parseFloat(Math.max(Math.min(this.b,1),0).toFixed(2)),parseFloat(Math.max(Math.min(this.a,1),0).toFixed(2))]}getNormalized3(){return[parseFloat(Math.max(Math.min(this.r,1),0).toFixed(2)),parseFloat(Math.max(Math.min(this.g,1),0).toFixed(2)),parseFloat(Math.max(Math.min(this.b,1),0).toFixed(2))]}offsetHSL(u,r,t){return this.getHSL(P),P.h+=u,P.s+=r,P.l+=t,this.setHSL(P.h,P.s,P.l),this}add(u){return this.r+=u.r,this.g+=u.g,this.b+=u.b,this}addColors(u,r){return this.r=u.r+r.r,this.g=u.g+r.g,this.b=u.b+r.b,this}addScalar(u){return this.r+=u,this.g+=u,this.b+=u,this}sub(u){return this.r=Math.max(0,this.r-u.r),this.g=Math.max(0,this.g-u.g),this.b=Math.max(0,this.b-u.b),this}multiply(u){return this.r*=u.r,this.g*=u.g,this.b*=u.b,this}multiplyScalar(u){return this.r*=u,this.g*=u,this.b*=u,this}lerp(u,r){return this.r+=(u.r-this.r)*r,this.g+=(u.g-this.g)*r,this.b+=(u.b-this.b)*r,this}lerpColors(u,r,t){return this.r=u.r+(r.r-u.r)*t,this.g=u.g+(r.g-u.g)*t,this.b=u.b+(r.b-u.b)*t,this}lerpHSL(u,r){this.getHSL(P),u.getHSL(Ru);const t=Zu(P.h,Ru.h,r),n=Zu(P.s,Ru.s,r),a=Zu(P.l,Ru.l,r);return this.setHSL(t,n,a),this}equals(u){return u.r===this.r&&u.g===this.g&&u.b===this.b}fromArray(u,r=0){return this.r=u[r],this.g=u[r+1],this.b=u[r+2],this.a=u[r+3],this}toArray(u=[0,0,0,0],r=0){return u[r]=this.r,u[r+1]=this.g,u[r+2]=this.b,u[r+3]=this.a,u}fromBufferAttribute(u,r){return this.r=u.getX(r),this.g=u.getY(r),this.b=u.getZ(r),u.normalized===!0&&(this.r/=255,this.g/=255,this.b/=255),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const Q=new Y,Ou={h:0,s:0,l:0};function xr(e){return new Worker("/environment.worker.js",{type:"module",name:e==null?void 0:e.name})}U.Color=Y,U.ColorsEnum=Tr,U.EnvironmentWorker=xr,U.GLOB=Br,U.defaultConfig=K,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "archgine",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "A simple rendering engine developed by archbds.",
|
|
5
5
|
"author": "diozhu@163.com",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"files": [
|
|
8
8
|
"lib"
|
|
9
9
|
],
|
|
10
|
-
"main": "./lib/
|
|
11
|
-
"module": "./lib/
|
|
12
|
-
"typings": "./lib/
|
|
10
|
+
"main": "./lib/index.umd.js",
|
|
11
|
+
"module": "./lib/index.mjs",
|
|
12
|
+
"typings": "./lib/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./lib/index.mjs",
|
|
16
|
+
"require": "./lib/index.umd.js",
|
|
17
|
+
"types": "./lib/index.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./lib/index.d.ts": "./lib/index.d.ts"
|
|
20
|
+
},
|
|
13
21
|
"scripts": {
|
|
14
22
|
"dev": "vite",
|
|
15
23
|
"build": "tsc && vite build",
|
package/lib/archgine.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Color } from './math/color.js';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
window: any;
|
|
4
|
-
version: string;
|
|
5
|
-
isBrowser: boolean;
|
|
6
|
-
dpr: number;
|
|
7
|
-
document: any;
|
|
8
|
-
time: number;
|
|
9
|
-
deltaTime: number;
|
|
10
|
-
config: any;
|
|
11
|
-
} & {
|
|
12
|
-
Color: typeof Color;
|
|
13
|
-
ColorsEnum: any;
|
|
14
|
-
extras: {
|
|
15
|
-
defaultConfig: any;
|
|
16
|
-
EnvironmentWorker: new (options?: {
|
|
17
|
-
name?: string;
|
|
18
|
-
}) => Worker;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|