@scalar/components 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +0,0 @@
1
- "use strict";var U={},L={};function Te(e,t){return t===void 0&&(t=Object),t&&typeof t.freeze=="function"?t.freeze(e):e}function _t(e,t){if(e===null||typeof e!="object")throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var He=Te({HTML:"text/html",isHTML:function(e){return e===He.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),qe=Te({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===qe.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});L.assign=_t;L.freeze=Te;L.MIME_TYPE=He;L.NAMESPACE=qe;var bt=L,K=bt.NAMESPACE;function Ot(e){return e!==""}function At(e){return e?e.split(/[\t\n\f\r ]+/).filter(Ot):[]}function xt(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function Me(e){if(!e)return[];var t=At(e);return Object.keys(t.reduce(xt,{}))}function It(e){return function(t){return e&&e.indexOf(t)!==-1}}function te(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function b(e,t){var n=e.prototype;if(!(n instanceof t)){let r=function(){};r.prototype=t.prototype,r=new r,te(n,r),e.prototype=n=r}n.constructor!=e&&(typeof e!="function"&&console.error("unknown Class:"+e),n.constructor=e)}var O={},S=O.ELEMENT_NODE=1,Y=O.ATTRIBUTE_NODE=2,ue=O.TEXT_NODE=3,Be=O.CDATA_SECTION_NODE=4,Qe=O.ENTITY_REFERENCE_NODE=5,St=O.ENTITY_NODE=6,We=O.PROCESSING_INSTRUCTION_NODE=7,Ze=O.COMMENT_NODE=8,Ke=O.DOCUMENT_NODE=9,Je=O.DOCUMENT_TYPE_NODE=10,M=O.DOCUMENT_FRAGMENT_NODE=11,Ct=O.NOTATION_NODE=12,D={},T={};D.INDEX_SIZE_ERR=(T[1]="Index size error",1);D.DOMSTRING_SIZE_ERR=(T[2]="DOMString size error",2);var C=D.HIERARCHY_REQUEST_ERR=(T[3]="Hierarchy request error",3);D.WRONG_DOCUMENT_ERR=(T[4]="Wrong document",4);D.INVALID_CHARACTER_ERR=(T[5]="Invalid character",5);D.NO_DATA_ALLOWED_ERR=(T[6]="No data allowed",6);D.NO_MODIFICATION_ALLOWED_ERR=(T[7]="No modification allowed",7);var et=D.NOT_FOUND_ERR=(T[8]="Not found",8);D.NOT_SUPPORTED_ERR=(T[9]="Not supported",9);var Pe=D.INUSE_ATTRIBUTE_ERR=(T[10]="Attribute in use",10);D.INVALID_STATE_ERR=(T[11]="Invalid state",11);D.SYNTAX_ERR=(T[12]="Syntax error",12);D.INVALID_MODIFICATION_ERR=(T[13]="Invalid modification",13);D.NAMESPACE_ERR=(T[14]="Invalid namespace",14);D.INVALID_ACCESS_ERR=(T[15]="Invalid access",15);function y(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,T[e]),this.message=T[e],Error.captureStackTrace&&Error.captureStackTrace(this,y);return n.code=e,t&&(this.message=this.message+": "+t),n}y.prototype=Error.prototype;te(D,y);function R(){}R.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)V(this[r],n,e,t);return n.join("")},find:function(e){return Array.prototype.find.call(this,e)},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}};function H(e,t){this._node=e,this._refresh=t,ye(this)}function ye(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);ht(e,"length",n.length),te(n,e),e._inc=t}}H.prototype.item=function(e){return ye(this),this[e]};b(H,R);function se(){}function tt(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function Ue(e,t,n,r){if(r?t[tt(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&it(i,e,r),Rt(i,e,n))}}function Le(e,t,n){var r=tt(t,n);if(r>=0){for(var i=t.length-1;r<i;)t[r]=t[++r];if(t.length=i,e){var a=e.ownerDocument;a&&(it(a,e,n),n.ownerElement=null)}}else throw new y(et,new Error(e.tagName+"@"+n))}se.prototype={length:0,item:R.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new y(Pe);var n=this.getNamedItem(e.nodeName);return Ue(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t=e.ownerElement,n;if(t&&t!=this._ownerElement)throw new y(Pe);return n=this.getNamedItemNS(e.namespaceURI,e.localName),Ue(this._ownerElement,this,e,n),n},removeNamedItem:function(e){var t=this.getNamedItem(e);return Le(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return Le(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}};function nt(){}nt.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=new ne;if(r.implementation=this,r.childNodes=new R,r.doctype=n||null,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new le;return r.name=e,r.nodeName=e,r.publicId=t||"",r.systemId=n||"",r}};function p(){}p.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,t){return ut(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return at(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return Ne(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==ue&&e.nodeType==ue?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&n[r]===e)return r}t=t.nodeType==Y?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==Y?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return t==null}};function rt(e){return e=="<"&&"&lt;"||e==">"&&"&gt;"||e=="&"&&"&amp;"||e=='"'&&"&quot;"||"&#"+e.charCodeAt()+";"}te(O,p);te(O,p.prototype);function J(e,t){if(t(e))return!0;if(e=e.firstChild)do if(J(e,t))return!0;while(e=e.nextSibling)}function ne(){}function Rt(e,t,n){e&&e._inc++;var r=n.namespaceURI;r===K.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function it(e,t,n,r){e&&e._inc++;var i=n.namespaceURI;i===K.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function De(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var i=t.firstChild,a=0;i;)r[a++]=i,i=i.nextSibling;r.length=a,delete r[r.length]}}}function at(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,De(e.ownerDocument,e),t}function Mt(e){return e&&(e.nodeType===p.DOCUMENT_NODE||e.nodeType===p.DOCUMENT_FRAGMENT_NODE||e.nodeType===p.ELEMENT_NODE)}function Pt(e){return e&&(j(e)||ot(e)||G(e)||e.nodeType===p.DOCUMENT_FRAGMENT_NODE||e.nodeType===p.COMMENT_NODE||e.nodeType===p.PROCESSING_INSTRUCTION_NODE)}function G(e){return e&&e.nodeType===p.DOCUMENT_TYPE_NODE}function j(e){return e&&e.nodeType===p.ELEMENT_NODE}function ot(e){return e&&e.nodeType===p.TEXT_NODE}function ke(e,t){var n=e.childNodes||[];if(n.find(j)||G(t))return!1;var r=n.find(G);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function ut(e,t,n){if(!Mt(e))throw new y(C,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new y(et,"child not in parent");if(!Pt(t)||G(t)&&e.nodeType!==p.DOCUMENT_NODE)throw new y(C,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType);var r=e.childNodes||[],i=t.childNodes||[];if(e.nodeType===p.DOCUMENT_NODE){if(t.nodeType===p.DOCUMENT_FRAGMENT_NODE){let c=i.filter(j);if(c.length>1||i.find(ot))throw new y(C,"More than one element or text in fragment");if(c.length===1&&!ke(e,n))throw new y(C,"Element in fragment can not be inserted before doctype")}if(j(t)&&(r.find(j)||!ke(e,n)))throw new y(C,"Only one element can be added and only after doctype");if(G(t)){if(r.find(G))throw new y(C,"Only one doctype is allowed");let c=r.find(j);if(n&&r.indexOf(c)<r.indexOf(n))throw new y(C,"Doctype can only be inserted before an element");if(!n&&c)throw new y(C,"Doctype can not be appended since element is present")}}var a=t.parentNode;if(a&&a.removeChild(t),t.nodeType===M){var o=t.firstChild;if(o==null)return t;var s=t.lastChild}else o=s=t;var u=n?n.previousSibling:e.lastChild;o.previousSibling=u,s.nextSibling=n,u?u.nextSibling=o:e.firstChild=o,n==null?e.lastChild=s:n.previousSibling=s;do o.parentNode=e;while(o!==s&&(o=o.nextSibling));return De(e.ownerDocument||e,e),t.nodeType==M&&(t.firstChild=t.lastChild=null),t}function Ut(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,De(e.ownerDocument,e,t),t}ne.prototype={nodeName:"#document",nodeType:Ke,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==M){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return ut(this,e,t),e.ownerDocument=this,this.documentElement===null&&e.nodeType===S&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),at(this,e)},importNode:function(e,t){return pt(this,e,t)},getElementById:function(e){var t=null;return J(this.documentElement,function(n){if(n.nodeType==S&&n.getAttribute("id")==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=Me(e);return new H(this,function(n){var r=[];return t.length>0&&J(n.documentElement,function(i){if(i!==n&&i.nodeType===S){var a=i.getAttribute("class");if(a){var o=e===a;if(!o){var s=Me(a);o=t.every(It(s))}o&&r.push(i)}}}),r})},createElement:function(e){var t=new k;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new R;var n=t.attributes=new se;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new fe;return e.ownerDocument=this,e.childNodes=new R,e},createTextNode:function(e){var t=new we;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new _e;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new be;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Ae;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new ce;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new Oe;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new k,r=t.split(":"),i=n.attributes=new se;return n.childNodes=new R,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new ce,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}};b(ne,p);function k(){this._nsMap={}}k.prototype={nodeType:S,hasAttribute:function(e){return this.getAttributeNode(e)!=null},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===M?this.insertBefore(e,null):Ut(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,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return this.getAttributeNodeNS(e,t)!=null},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new H(this,function(t){var n=[];return J(t,function(r){r!==t&&r.nodeType==S&&(e==="*"||r.tagName==e)&&n.push(r)}),n})},getElementsByTagNameNS:function(e,t){return new H(this,function(n){var r=[];return J(n,function(i){i!==n&&i.nodeType===S&&(e==="*"||i.namespaceURI===e)&&(t==="*"||i.localName==t)&&r.push(i)}),r})}};ne.prototype.getElementsByTagName=k.prototype.getElementsByTagName;ne.prototype.getElementsByTagNameNS=k.prototype.getElementsByTagNameNS;b(k,p);function ce(){}ce.prototype.nodeType=Y;b(ce,p);function re(){}re.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(T[C])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){var r=this.data.substring(0,e),i=this.data.substring(e+t);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}};b(re,p);function we(){}we.prototype={nodeName:"#text",nodeType:ue,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}};b(we,re);function _e(){}_e.prototype={nodeName:"#comment",nodeType:Ze};b(_e,re);function be(){}be.prototype={nodeName:"#cdata-section",nodeType:Be};b(be,re);function le(){}le.prototype.nodeType=Je;b(le,p);function st(){}st.prototype.nodeType=Ct;b(st,p);function ct(){}ct.prototype.nodeType=St;b(ct,p);function Oe(){}Oe.prototype.nodeType=Qe;b(Oe,p);function fe(){}fe.prototype.nodeName="#document-fragment";fe.prototype.nodeType=M;b(fe,p);function Ae(){}Ae.prototype.nodeType=We;b(Ae,p);function lt(){}lt.prototype.serializeToString=function(e,t,n){return ft.call(e,t,n)};p.prototype.toString=ft;function ft(e,t){var n=[],r=this.nodeType==9&&this.documentElement||this,i=r.prefix,a=r.namespaceURI;if(a&&i==null){var i=r.lookupPrefix(a);if(i==null)var o=[{namespace:a,prefix:null}]}return V(this,n,e,t,o),n.join("")}function $e(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!i||r==="xml"&&i===K.XML||i===K.XMLNS)return!1;for(var a=n.length;a--;){var o=n[a];if(o.prefix===r)return o.namespace!==i}return!0}function Ee(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,rt),'"')}function V(e,t,n,r,i){if(i||(i=[]),r)if(e=r(e),e){if(typeof e=="string"){t.push(e);return}}else return;switch(e.nodeType){case S:var a=e.attributes,o=a.length,d=e.firstChild,s=e.tagName;n=K.isHTML(e.namespaceURI)||n;var u=s;if(!n&&!e.prefix&&e.namespaceURI){for(var c,l=0;l<a.length;l++)if(a.item(l).name==="xmlns"){c=a.item(l).value;break}if(!c)for(var h=i.length-1;h>=0;h--){var f=i[h];if(f.prefix===""&&f.namespace===e.namespaceURI){c=f.namespace;break}}if(c!==e.namespaceURI)for(var h=i.length-1;h>=0;h--){var f=i[h];if(f.namespace===e.namespaceURI){f.prefix&&(u=f.prefix+":"+s);break}}}t.push("<",u);for(var N=0;N<o;N++){var _=a.item(N);_.prefix=="xmlns"?i.push({prefix:_.localName,namespace:_.value}):_.nodeName=="xmlns"&&i.push({prefix:"",namespace:_.value})}for(var N=0;N<o;N++){var _=a.item(N);if($e(_,n,i)){var E=_.prefix||"",m=_.namespaceURI;Ee(t,E?"xmlns:"+E:"xmlns",m),i.push({prefix:E,namespace:m})}V(_,t,n,r,i)}if(s===u&&$e(e,n,i)){var E=e.prefix||"",m=e.namespaceURI;Ee(t,E?"xmlns:"+E:"xmlns",m),i.push({prefix:E,namespace:m})}if(d||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(s)){if(t.push(">"),n&&/^script$/i.test(s))for(;d;)d.data?t.push(d.data):V(d,t,n,r,i.slice()),d=d.nextSibling;else for(;d;)V(d,t,n,r,i.slice()),d=d.nextSibling;t.push("</",u,">")}else t.push("/>");return;case Ke:case M:for(var d=e.firstChild;d;)V(d,t,n,r,i.slice()),d=d.nextSibling;return;case Y:return Ee(t,e.name,e.value);case ue:return t.push(e.data.replace(/[<&>]/g,rt));case Be:return t.push("<![CDATA[",e.data,"]]>");case Ze:return t.push("<!--",e.data,"-->");case Je:var B=e.publicId,g=e.systemId;if(t.push("<!DOCTYPE ",e.name),B)t.push(" PUBLIC ",B),g&&g!="."&&t.push(" ",g),t.push(">");else if(g&&g!=".")t.push(" SYSTEM ",g,">");else{var x=e.internalSubset;x&&t.push(" [",x,"]"),t.push(">")}return;case We:return t.push("<?",e.target," ",e.data,"?>");case Qe:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function pt(e,t,n){var r;switch(t.nodeType){case S:r=t.cloneNode(!1),r.ownerDocument=e;case M:break;case Y:n=!0;break}if(r||(r=t.cloneNode(!1)),r.ownerDocument=e,r.parentNode=null,n)for(var i=t.firstChild;i;)r.appendChild(pt(e,i,n)),i=i.nextSibling;return r}function Ne(e,t,n){var r=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=t[i];typeof a!="object"&&a!=r[i]&&(r[i]=a)}switch(t.childNodes&&(r.childNodes=new R),r.ownerDocument=e,r.nodeType){case S:var o=t.attributes,s=r.attributes=new se,u=o.length;s._ownerElement=r;for(var c=0;c<u;c++)r.setAttributeNode(Ne(e,o.item(c),!0));break;case Y:n=!0}if(n)for(var l=t.firstChild;l;)r.appendChild(Ne(e,l,n)),l=l.nextSibling;return r}function ht(e,t,n){e[t]=n}try{if(Object.defineProperty){let e=function(t){switch(t.nodeType){case S:case M:var n=[];for(t=t.firstChild;t;)t.nodeType!==7&&t.nodeType!==8&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}};Object.defineProperty(H.prototype,"length",{get:function(){return ye(this),this.$$length}}),Object.defineProperty(p.prototype,"textContent",{get:function(){return e(this)},set:function(t){switch(this.nodeType){case S:case M:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),ht=function(t,n,r){t["$$"+n]=r}}}catch{}U.DocumentType=le;U.DOMException=y;U.DOMImplementation=nt;U.Element=k;U.Node=p;U.NodeList=R;U.XMLSerializer=lt;var pe={},mt={};(function(e){var t=L.freeze;e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),e.entityMap=e.HTML_ENTITIES})(mt);var xe={},ee=L.NAMESPACE,de=/[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"+de.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),ze=new RegExp("^"+de.source+Xe.source+"*(?::"+de.source+Xe.source+"*)?$"),Q=0,P=1,$=2,W=3,X=4,z=5,Z=6,ae=7;function q(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,q)}q.prototype=new Error;q.prototype.name=q.name;function vt(){}vt.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),Et(t,t={}),Lt(e,t,n,r,this.errorHandler),r.endDocument()}};function Lt(e,t,n,r,i){function a(v){if(v>65535){v-=65536;var I=55296+(v>>10),wt=56320+(v&1023);return String.fromCharCode(I,wt)}else return String.fromCharCode(v)}function o(v){var I=v.slice(1,-1);return Object.hasOwnProperty.call(n,I)?n[I]:I.charAt(0)==="#"?a(parseInt(I.substr(1).replace("x","0x"))):(i.error("entity not found:"+v),v)}function s(v){if(v>E){var I=e.substring(E,v).replace(/&#?\w+;/g,o);f&&u(E),r.characters(I,0,v-E),E=v}}function u(v,I){for(;v>=l&&(I=h.exec(e));)c=I.index,l=c+I[0].length,f.lineNumber++;f.columnNumber=v-c+1}for(var c=0,l=0,h=/.*(?:\r\n?|\n)|.*$/g,f=r.locator,N=[{currentNSMap:t}],_={},E=0;;){try{var m=e.indexOf("<",E);if(m<0){if(!e.substr(E).match(/^\s*$/)){var d=r.doc,B=d.createTextNode(e.substr(E));d.appendChild(B),r.currentElement=B}return}switch(m>E&&s(m),e.charAt(m+1)){case"/":var w=e.indexOf(">",m+3),g=e.substring(m+2,w).replace(/[ \t\n\r]+$/g,""),x=N.pop();w<0?(g=e.substring(m+2).replace(/[\s<].*/,""),i.error("end tag name: "+g+" is not complete:"+x.tagName),w=m+1+g.length):g.match(/\s</)&&(g=g.replace(/[\s<].*/,""),i.error("end tag name: "+g+" maybe not complete"),w=m+1+g.length);var he=x.localNSMap,Ie=x.tagName==g,yt=Ie||x.tagName&&x.tagName.toLowerCase()==g.toLowerCase();if(yt){if(r.endElement(x.uri,x.localName,g),he)for(var Se in he)Object.prototype.hasOwnProperty.call(he,Se)&&r.endPrefixMapping(Se);Ie||i.fatalError("end tag name: "+g+" is not match the current start tagName:"+x.tagName)}else N.push(x);w++;break;case"?":f&&u(m),w=Ft(e,m,r);break;case"!":f&&u(m),w=zt(e,m,r,i);break;default:f&&u(m);var A=new Nt,me=N[N.length-1].currentNSMap,w=kt(e,m,A,me,o,i),Ce=A.length;if(!A.closed&&Xt(e,w,A.tagName,_)&&(A.closed=!0,n.nbsp||i.warning("unclosed xml attribute")),f&&Ce){for(var Dt=Fe(f,{}),ve=0;ve<Ce;ve++){var Re=A[ve];u(Re.offset),Re.locator=Fe(f,{})}r.locator=Dt,je(A,r,me)&&N.push(A),r.locator=f}else je(A,r,me)&&N.push(A);ee.isHTML(A.uri)&&!A.closed?w=$t(e,w,A.tagName,o,r):w++}}catch(v){if(v instanceof q)throw v;i.error("element parse error: "+v),w=-1}w>E?E=w:s(Math.max(m,E)+1)}}function Fe(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function kt(e,t,n,r,i,a){function o(f,N,_){n.attributeNames.hasOwnProperty(f)&&a.fatalError("Attribute "+f+" redefined"),n.addValue(f,N.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,i),_)}for(var s,u,c=++t,l=Q;;){var h=e.charAt(c);switch(h){case"=":if(l===P)s=e.slice(t,c),l=W;else if(l===$)l=W;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(l===W||l===P)if(l===P&&(a.warning('attribute value must after "="'),s=e.slice(t,c)),t=c+1,c=e.indexOf(h,t),c>0)u=e.slice(t,c),o(s,u,t-1),l=z;else throw new Error("attribute value no end '"+h+"' match");else if(l==X)u=e.slice(t,c),o(s,u,t),a.warning('attribute "'+s+'" missed start quot('+h+")!!"),t=c+1,l=z;else throw new Error('attribute value must after "="');break;case"/":switch(l){case Q:n.setTagName(e.slice(t,c));case z:case Z:case ae:l=ae,n.closed=!0;case X:case P:case $:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),l==Q&&n.setTagName(e.slice(t,c)),c;case">":switch(l){case Q:n.setTagName(e.slice(t,c));case z:case Z:case ae:break;case X:case P:u=e.slice(t,c),u.slice(-1)==="/"&&(n.closed=!0,u=u.slice(0,-1));case $:l===$&&(u=s),l==X?(a.warning('attribute "'+u+'" missed quot(")!'),o(s,u,t)):((!ee.isHTML(r[""])||!u.match(/^(?:disabled|checked|selected)$/i))&&a.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),o(u,u,t));break;case W:throw new Error("attribute value missed!!")}return c;case"€":h=" ";default:if(h<=" ")switch(l){case Q:n.setTagName(e.slice(t,c)),l=Z;break;case P:s=e.slice(t,c),l=$;break;case X:var u=e.slice(t,c);a.warning('attribute "'+u+'" missed quot(")!!'),o(s,u,t);case z:l=Z;break}else switch(l){case $:n.tagName,(!ee.isHTML(r[""])||!s.match(/^(?:disabled|checked|selected)$/i))&&a.warning('attribute "'+s+'" missed value!! "'+s+'" instead2!!'),o(s,s,t),t=c,l=P;break;case z:a.warning('attribute space is required"'+s+'"!!');case Z:l=P,t=c;break;case W:l=X,t=c;break;case ae:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function je(e,t,n){for(var r=e.tagName,i=null,h=e.length;h--;){var a=e[h],o=a.qName,s=a.value,f=o.indexOf(":");if(f>0)var u=a.prefix=o.slice(0,f),c=o.slice(f+1),l=u==="xmlns"&&c;else c=o,u=null,l=o==="xmlns"&&"";a.localName=c,l!==!1&&(i==null&&(i={},Et(n,n={})),n[l]=i[l]=s,a.uri=ee.XMLNS,t.startPrefixMapping(l,s))}for(var h=e.length;h--;){a=e[h];var u=a.prefix;u&&(u==="xml"&&(a.uri=ee.XML),u!=="xmlns"&&(a.uri=n[u||""]))}var f=r.indexOf(":");f>0?(u=e.prefix=r.slice(0,f),c=e.localName=r.slice(f+1)):(u=null,c=e.localName=r);var N=e.uri=n[u||""];if(t.startElement(N,c,r,e),e.closed){if(t.endElement(N,c,r),i)for(u in i)Object.prototype.hasOwnProperty.call(i,u)&&t.endPrefixMapping(u)}else return e.currentNSMap=n,e.localNSMap=i,!0}function $t(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var a=e.indexOf("</"+n+">",t),o=e.substring(t+1,a);if(/[&<]/.test(o))return/^script$/i.test(n)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,r),i.characters(o,0,o.length),a)}return t+1}function Xt(e,t,n,r){var i=r[n];return i==null&&(i=e.lastIndexOf("</"+n+">"),i<t&&(i=e.lastIndexOf("</"+n)),r[n]=i),i<t}function Et(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function zt(e,t,n,r){var i=e.charAt(t+2);switch(i){case"-":if(e.charAt(t+3)==="-"){var a=e.indexOf("-->",t+4);return a>t?(n.comment(e,t+4,a-t-4),a+3):(r.error("Unclosed comment"),-1)}else return-1;default:if(e.substr(t+3,6)=="CDATA["){var a=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,a-t-9),n.endCDATA(),a+3}var o=jt(e,t),s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var u=o[1][0],c=!1,l=!1;s>3&&(/^public$/i.test(o[2][0])?(c=o[3][0],l=s>4&&o[4][0]):/^system$/i.test(o[2][0])&&(l=o[3][0]));var h=o[s-1];return n.startDTD(u,c,l),n.endDTD(),h.index+h[0].length}}return-1}function Ft(e,t,n){var r=e.indexOf("?>",t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return i?(i[0].length,n.processingInstruction(i[1],i[2]),r+2):-1}return-1}function Nt(){this.attributeNames={}}Nt.prototype={setTagName:function(e){if(!ze.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!ze.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},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 jt(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=t,i.exec(e);n=i.exec(e);)if(r.push(n),n[1])return r}xe.XMLReader=vt;xe.ParseError=q;var Vt=L,Gt=U,Ve=mt,dt=xe,Yt=Gt.DOMImplementation,Ge=Vt.NAMESPACE,Ht=dt.ParseError,qt=dt.XMLReader;function gt(e){return e.replace(/\r[\n\u0085]/g,`
2
- `).replace(/[\r\u0085\u2028]/g,`
3
- `)}function Tt(e){this.options=e||{locator:{}}}Tt.prototype.parseFromString=function(e,t){var n=this.options,r=new qt,i=n.domBuilder||new ie,a=n.errorHandler,o=n.locator,s=n.xmlns||{},u=/\/x?html?$/.test(t),c=u?Ve.HTML_ENTITIES:Ve.XML_ENTITIES;o&&i.setDocumentLocator(o),r.errorHandler=Bt(a,i,o),r.domBuilder=n.domBuilder||i,u&&(s[""]=Ge.HTML),s.xml=s.xml||Ge.XML;var l=n.normalizeLineEndings||gt;return e&&typeof e=="string"?r.parse(l(e),s,c):r.errorHandler.error("invalid doc source"),i.doc};function Bt(e,t,n){if(!e){if(t instanceof ie)return t;e=t}var r={},i=e instanceof Function;n=n||{};function a(o){var s=e[o];!s&&i&&(s=e.length==2?function(u){e(o,u)}:e),r[o]=s&&function(u){s("[xmldom "+o+"] "+u+ge(n))}||function(){}}return a("warning"),a("error"),a("fatalError"),r}function ie(){this.cdata=!1}function F(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}ie.prototype={startDocument:function(){this.doc=new Yt().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,a=i.createElementNS(e,n||t),o=r.length;oe(this,a),this.currentElement=a,this.locator&&F(this.locator,a);for(var s=0;s<o;s++){var e=r.getURI(s),u=r.getValue(s),n=r.getQName(s),c=i.createAttributeNS(e,n);this.locator&&F(r.getLocator(s),c),c.value=c.nodeValue=u,a.setAttributeNode(c)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName,this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&F(this.locator,n),oe(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=Ye.apply(this,arguments),e){if(this.cdata)var r=this.doc.createCDATASection(e);else var r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&F(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=Ye.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&F(this.locator,r),oe(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&F(this.locator,i),oe(this,i),this.doc.doctype=i}},warning:function(e){console.warn("[xmldom warning] "+e,ge(this.locator))},error:function(e){console.error("[xmldom error] "+e,ge(this.locator))},fatalError:function(e){throw new Ht(e,this.locator)}};function ge(e){if(e)return`
4
- @`+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function Ye(e,t,n){return typeof e=="string"?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){ie.prototype[e]=function(){return null}});function oe(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}pe.__DOMHandler=ie;pe.normalizeLineEndings=gt;pe.DOMParser=Tt;var Qt=pe.DOMParser;const Wt=Object.freeze(Object.defineProperty({__proto__:null,DOMParser:Qt},Symbol.toStringTag,{value:"Module"}));exports.index=Wt;
@@ -1 +0,0 @@
1
- export * from './tailwind.theme.ts'
@@ -1,18 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- @layer base {
6
- html {
7
- font-family: var(--theme-font, var(--default-theme-font));
8
- }
9
- }
10
-
11
- @layer utilities {
12
- .row {
13
- @apply flex flex-row;
14
- }
15
- .col {
16
- @apply flex flex-col;
17
- }
18
- }
@@ -1,65 +0,0 @@
1
- export const theme = {
2
- boxShadow: {
3
- DEFAULT: 'var(--theme-shadow-1, var(--default-theme-shadow-1))',
4
- md: 'var(--theme-shadow-2, var(--default-theme-shadow-2))',
5
- sm: 'rgba(0, 0, 0, 0.09) 0px 1px 4px',
6
- none: '0 0 #0000',
7
- },
8
- colors: {
9
- 'fore-1': 'var(--theme-color-1, var(--default-theme-color-1))',
10
- 'fore-2': 'var(--theme-color-2, var(--default-theme-color-2))',
11
- 'fore-3': 'var(--theme-color-3, var(--default-theme-color-3))',
12
- 'accent': 'var(--theme-color-accent, var(--default-theme-color-accent))',
13
- 'back-1': 'var(--theme-background-1, var(--default-theme-background-1))',
14
- 'back-2': 'var(--theme-background-2, var(--default-theme-background-2))',
15
- 'back-3': 'var(--theme-background-3, var(--default-theme-background-3))',
16
- 'back-accent':
17
- 'var(--theme-background-accent, var(--default-theme-background-accent))',
18
-
19
- 'backdrop': 'rgba(0, 0, 0, 0.44)',
20
- 'border': 'var(--theme-border-color, var(--default-theme-border-color))',
21
-
22
- 'back-btn-1': 'var(--theme-button-1, var(--default-theme-button-1))',
23
- 'fore-btn-1':
24
- 'var(--theme-button-1-color, var(--default-theme-button-1-color))',
25
- 'hover-btn-1':
26
- 'var(--theme-button-1-hover, var(--default-theme-button-1-hover))',
27
-
28
- 'white': '#FFF',
29
- 'green': 'var(--theme-color-green, var(--default-theme-color-green))',
30
- 'red': 'var(--theme-color-red, var(--default-theme-color-red))',
31
- 'yellow': 'var(--theme-color-yellow, var(--default-theme-color-yellow))',
32
- 'blue': 'var(--theme-color-blue, var(--default-theme-color-blue))',
33
- 'orange': 'var(--theme-color-orange, var(--default-theme-color-orange))',
34
- 'purple': 'var(--theme-color-purple, var(--default-theme-color-purple))',
35
- 'error': 'var(--theme-error-color, var(--default-theme-color-red))',
36
- 'ghost': 'var(--theme-color-ghost, var(--default-theme-color-ghost))',
37
- 'transparent': 'transparent',
38
- },
39
- fontSize: {
40
- xxs: 'var(--theme-micro, var(--default-theme-micro, var(--theme-font-size-5, var(--default-theme-font-size-5))))',
41
- xs: 'var(--theme-mini, var(--default-theme-mini, var(--theme-font-size-4, var(--default-theme-font-size-4))))',
42
- sm: 'var(--theme-small, var(--default-theme-small, var(--theme-font-size-3, var(--default-theme-font-size-3))))',
43
- base: 'var(--theme-paragraph, var(--default-theme-paragraph, var(--theme-font-size-2, var(--default-theme-font-size-2))))',
44
- lg: 'var(--theme-font-size-1, var(--default-theme-font-size-1))',
45
- },
46
- } as const
47
-
48
- export const extend = {
49
- borderRadius: {
50
- DEFAULT: 'var(--theme-radius, var(--default-theme-radius))',
51
- md: 'var(--theme-radius, var(--default-theme-radius))',
52
- lg: 'var(--theme-radius-lg, var(--default-theme-radius-lg))',
53
- xl: 'var(--theme-radius-xl, var(--default-theme-radius-xl))',
54
- },
55
- fontWeight: {
56
- medium: 'var(--theme-font-medium, var(--default-theme-font-medium))',
57
- bold: 'var(-theme-font-bold, var(--default-theme-font-bold))',
58
- },
59
- maxWidth: {
60
- 'screen-xs': '480px',
61
- 'screen-sm': '540px',
62
- 'screen-md': '640px',
63
- 'screen-lg': '800px',
64
- },
65
- } as const