(()=>{"use strict";var t,e,o,i,h,n,r,s,a,c=function(t){this.a=t.a,this.r=t.r,this.g=t.g,this.b=t.b,this.value=t.value,this.withAlpha=t.withAlpha,this.withOpacity=t.withOpacity,this.withRed=t.withRed,this.withGreen=t.withGreen,this.withBlue=t.withBlue},l=new(function(){function t(t){var e=t.a,o=void 0===e?1:e,i=t.r,h=void 0===i?255:i,n=t.g,r=void 0===n?255:n,s=t.b,a=void 0===s?255:s;this.White=this.hexToRgb({hex:"FFFFFF"}),this.Black=this.hexToRgb({hex:"000000"}),this.Rose={50:this.hexToRgb({hex:"fff1f2"}),100:this.hexToRgb({hex:"ffe4e6"}),200:this.hexToRgb({hex:"fecdd3"}),300:this.hexToRgb({hex:"fda4af"}),400:this.hexToRgb({hex:"fb7185"}),500:this.hexToRgb({hex:"f43f5e"}),600:this.hexToRgb({hex:"e11d48"}),700:this.hexToRgb({hex:"be123c"}),800:this.hexToRgb({hex:"9f1239"}),900:this.hexToRgb({hex:"881337"})},this.Pink={50:this.hexToRgb({hex:"fdf2f8"}),100:this.hexToRgb({hex:"fce7f3"}),200:this.hexToRgb({hex:"fbcfe8"}),300:this.hexToRgb({hex:"f9a8d4"}),400:this.hexToRgb({hex:"f472b6"}),500:this.hexToRgb({hex:"f472b6"}),600:this.hexToRgb({hex:"db2777"}),700:this.hexToRgb({hex:"be185d"}),800:this.hexToRgb({hex:"9d174d"}),900:this.hexToRgb({hex:"831843"})},this.Fuchsia={50:this.hexToRgb({hex:"fdf4ff"}),100:this.hexToRgb({hex:"f472b6"}),200:this.hexToRgb({hex:"f5d0fe"}),300:this.hexToRgb({hex:"f0abfc"}),400:this.hexToRgb({hex:"e879f9"}),500:this.hexToRgb({hex:"d946ef"}),600:this.hexToRgb({hex:"c026d3"}),700:this.hexToRgb({hex:"a21caf"}),800:this.hexToRgb({hex:"a21caf"}),900:this.hexToRgb({hex:"701a75"})},this.Purple={50:this.hexToRgb({hex:"faf5ff"}),100:this.hexToRgb({hex:"f3e8ff"}),200:this.hexToRgb({hex:"e9d5ff"}),300:this.hexToRgb({hex:"d8b4fe"}),400:this.hexToRgb({hex:"c084fc"}),500:this.hexToRgb({hex:"a855f7"}),600:this.hexToRgb({hex:"9333ea"}),700:this.hexToRgb({hex:"7e22ce"}),800:this.hexToRgb({hex:"6b21a8"}),900:this.hexToRgb({hex:"581c87"})},this.Violet={50:this.hexToRgb({hex:"f5f3ff"}),100:this.hexToRgb({hex:"ede9fe"}),200:this.hexToRgb({hex:"ddd6fe"}),300:this.hexToRgb({hex:"c4b5fd"}),400:this.hexToRgb({hex:"a78bfa"}),500:this.hexToRgb({hex:"8b5cf6"}),600:this.hexToRgb({hex:"7c3aed"}),700:this.hexToRgb({hex:"6d28d9"}),800:this.hexToRgb({hex:"5b21b6"}),900:this.hexToRgb({hex:"4c1d95"})},this.Indigo={50:this.hexToRgb({hex:"eef2ff"}),100:this.hexToRgb({hex:"e0e7ff"}),200:this.hexToRgb({hex:"c7d2fe"}),300:this.hexToRgb({hex:"a5b4fc"}),400:this.hexToRgb({hex:"818cf8"}),500:this.hexToRgb({hex:"6366f1"}),600:this.hexToRgb({hex:"4f46e5"}),700:this.hexToRgb({hex:"4338ca"}),800:this.hexToRgb({hex:"3730a3"}),900:this.hexToRgb({hex:"312e81"})},this.Blue={50:this.hexToRgb({hex:"eff6ff"}),100:this.hexToRgb({hex:"dbeafe"}),200:this.hexToRgb({hex:"bfdbfe"}),300:this.hexToRgb({hex:"93c5fd"}),400:this.hexToRgb({hex:"60a5fa"}),500:this.hexToRgb({hex:"3b82f6"}),600:this.hexToRgb({hex:"2563eb"}),700:this.hexToRgb({hex:"1d4ed8"}),800:this.hexToRgb({hex:"1d4ed8"}),900:this.hexToRgb({hex:"1e3a8a"})},this.Sky={50:this.hexToRgb({hex:"f0f9ff"}),100:this.hexToRgb({hex:"e0f2fe"}),200:this.hexToRgb({hex:"bae6fd"}),300:this.hexToRgb({hex:"7dd3fc"}),400:this.hexToRgb({hex:"38bdf8"}),500:this.hexToRgb({hex:"0ea5e9"}),600:this.hexToRgb({hex:"0284c7"}),700:this.hexToRgb({hex:"0369a1"}),800:this.hexToRgb({hex:"075985"}),900:this.hexToRgb({hex:"0c4a6e"})},this.Cyan={50:this.hexToRgb({hex:"ecfeff"}),100:this.hexToRgb({hex:"cffafe"}),200:this.hexToRgb({hex:"a5f3fc"}),300:this.hexToRgb({hex:"67e8f9"}),400:this.hexToRgb({hex:"22d3ee"}),500:this.hexToRgb({hex:"06b6d4"}),600:this.hexToRgb({hex:"0891b2"}),700:this.hexToRgb({hex:"0e7490"}),800:this.hexToRgb({hex:"155e75"}),900:this.hexToRgb({hex:"164e63"})},this.Teal={50:this.hexToRgb({hex:"f0fdfa"}),100:this.hexToRgb({hex:"ccfbf1"}),200:this.hexToRgb({hex:"99f6e4"}),300:this.hexToRgb({hex:"5eead4"}),400:this.hexToRgb({hex:"2dd4bf"}),500:this.hexToRgb({hex:"14b8a6"}),600:this.hexToRgb({hex:"0d9488"}),700:this.hexToRgb({hex:"0f766e"}),800:this.hexToRgb({hex:"115e59"}),900:this.hexToRgb({hex:"134e4a"})},this.Emerald={50:this.hexToRgb({hex:"ecfdf5"}),100:this.hexToRgb({hex:"d1fae5"}),200:this.hexToRgb({hex:"a7f3d0"}),300:this.hexToRgb({hex:"6ee7b7"}),400:this.hexToRgb({hex:"34d399"}),500:this.hexToRgb({hex:"10b981"}),600:this.hexToRgb({hex:"059669"}),700:this.hexToRgb({hex:"047857"}),800:this.hexToRgb({hex:"065f46"}),900:this.hexToRgb({hex:"064e3b"})},this.Green={50:this.hexToRgb({hex:"f0fdf4"}),100:this.hexToRgb({hex:"dcfce7"}),200:this.hexToRgb({hex:"bbf7d0"}),300:this.hexToRgb({hex:"86efac"}),400:this.hexToRgb({hex:"4ade80"}),500:this.hexToRgb({hex:"22c55e"}),600:this.hexToRgb({hex:"16a34a"}),700:this.hexToRgb({hex:"15803d"}),800:this.hexToRgb({hex:"166534"}),900:this.hexToRgb({hex:"14532d"})},this.Lime={50:this.hexToRgb({hex:"f7fee7"}),100:this.hexToRgb({hex:"ecfccb"}),200:this.hexToRgb({hex:"d9f99d"}),300:this.hexToRgb({hex:"bef264"}),400:this.hexToRgb({hex:"a3e635"}),500:this.hexToRgb({hex:"84cc16"}),600:this.hexToRgb({hex:"65a30d"}),700:this.hexToRgb({hex:"4d7c0f"}),800:this.hexToRgb({hex:"3f6212"}),900:this.hexToRgb({hex:"365314"})},this.Yellow={50:this.hexToRgb({hex:"fefce8"}),100:this.hexToRgb({hex:"fef9c3"}),200:this.hexToRgb({hex:"fef08a"}),300:this.hexToRgb({hex:"fde047"}),400:this.hexToRgb({hex:"facc15"}),500:this.hexToRgb({hex:"eab308"}),600:this.hexToRgb({hex:"ca8a04"}),700:this.hexToRgb({hex:"a16207"}),800:this.hexToRgb({hex:"854d0e"}),900:this.hexToRgb({hex:"713f12"})},this.Amber={50:this.hexToRgb({hex:"fffbeb"}),100:this.hexToRgb({hex:"fef3c7"}),200:this.hexToRgb({hex:"fde68a"}),300:this.hexToRgb({hex:"fcd34d"}),400:this.hexToRgb({hex:"fbbf24"}),500:this.hexToRgb({hex:"f59e0b"}),600:this.hexToRgb({hex:"d97706"}),700:this.hexToRgb({hex:"b45309"}),800:this.hexToRgb({hex:"92400e"}),900:this.hexToRgb({hex:"78350f"})},this.Orange={50:this.hexToRgb({hex:"fff7ed"}),100:this.hexToRgb({hex:"ffedd5"}),200:this.hexToRgb({hex:"fed7aa"}),300:this.hexToRgb({hex:"fdba74"}),400:this.hexToRgb({hex:"fb923c"}),500:this.hexToRgb({hex:"f97316"}),600:this.hexToRgb({hex:"ea580c"}),700:this.hexToRgb({hex:"c2410c"}),800:this.hexToRgb({hex:"9a3412"}),900:this.hexToRgb({hex:"7c2d12"})},this.Red={50:this.hexToRgb({hex:"fef2f2"}),100:this.hexToRgb({hex:"fee2e2"}),200:this.hexToRgb({hex:"fecaca"}),300:this.hexToRgb({hex:"fca5a5"}),400:this.hexToRgb({hex:"f87171"}),500:this.hexToRgb({hex:"ef4444"}),600:this.hexToRgb({hex:"dc2626"}),700:this.hexToRgb({hex:"b91c1c"}),800:this.hexToRgb({hex:"991b1b"}),900:this.hexToRgb({hex:"7f1d1d"})},this.Stone={50:this.hexToRgb({hex:"fafaf9"}),100:this.hexToRgb({hex:"f5f5f4"}),200:this.hexToRgb({hex:"e7e5e4"}),300:this.hexToRgb({hex:"d6d3d1"}),400:this.hexToRgb({hex:"a8a29e"}),500:this.hexToRgb({hex:"78716c"}),600:this.hexToRgb({hex:"57534e"}),700:this.hexToRgb({hex:"44403c"}),800:this.hexToRgb({hex:"292524"}),900:this.hexToRgb({hex:"1c1917"})},this.Neutral={50:this.hexToRgb({hex:"fafafa"}),100:this.hexToRgb({hex:"f5f5f5"}),200:this.hexToRgb({hex:"e5e5e5"}),300:this.hexToRgb({hex:"d4d4d4"}),400:this.hexToRgb({hex:"a3a3a3"}),500:this.hexToRgb({hex:"737373"}),600:this.hexToRgb({hex:"525252"}),700:this.hexToRgb({hex:"404040"}),800:this.hexToRgb({hex:"262626"}),900:this.hexToRgb({hex:"171717"})},this.Zinc={50:this.hexToRgb({hex:"fafafa"}),100:this.hexToRgb({hex:"f4f4f5"}),200:this.hexToRgb({hex:"e4e4e7"}),300:this.hexToRgb({hex:"d4d4d8"}),400:this.hexToRgb({hex:"a1a1aa"}),500:this.hexToRgb({hex:"71717a"}),600:this.hexToRgb({hex:"52525b"}),700:this.hexToRgb({hex:"3f3f46"}),800:this.hexToRgb({hex:"3f3f46"}),900:this.hexToRgb({hex:"18181b"})},this.Gray={50:this.hexToRgb({hex:"f9fafb"}),100:this.hexToRgb({hex:"f3f4f6"}),200:this.hexToRgb({hex:"f3f4f6"}),300:this.hexToRgb({hex:"d1d5db"}),400:this.hexToRgb({hex:"9ca3af"}),500:this.hexToRgb({hex:"6b7280"}),600:this.hexToRgb({hex:"4b5563"}),700:this.hexToRgb({hex:"374151"}),800:this.hexToRgb({hex:"1f2937"}),900:this.hexToRgb({hex:"111827"})},this.Slate={50:this.hexToRgb({hex:"f8fafc"}),100:this.hexToRgb({hex:"f1f5f9"}),200:this.hexToRgb({hex:"e2e8f0"}),300:this.hexToRgb({hex:"cbd5e1"}),400:this.hexToRgb({hex:"94a3b8"}),500:this.hexToRgb({hex:"64748b"}),600:this.hexToRgb({hex:"475569"}),700:this.hexToRgb({hex:"334155"}),800:this.hexToRgb({hex:"1e293b"}),900:this.hexToRgb({hex:"0f172a"})},this.color=new c({r:0,g:0,b:0,a:1}),this.color=this.fromARGB({a:o,r:h,g:r,b:a}),this.color.withAlpha=this.withAlpha,this.color.withOpacity=this.withOpacity,this.color.withRed=this.withRed,this.color.withGreen=this.withGreen,this.color.withBlue=this.withBlue}return t.prototype.fromARGB=function(t){var e=t.a,o=void 0===e?1:e,i=t.r,h=t.g,n=t.b;return this.color=new c({a:o,r:i,g:h,b:n}),this.color.value="rgba(".concat(i,", ").concat(h,", ").concat(n,", ").concat(o,")"),this.color},t.prototype.hexToRgb=function(t){var e=t.hex,o=t.alpha,i=void 0===o?1:o;e=e.replace("#","");var h=parseInt(3==e.length?e.slice(0,1).repeat(2):e.slice(0,2),16),n=parseInt(3==e.length?e.slice(1,2).repeat(2):e.slice(2,4),16),r=parseInt(3==e.length?e.slice(2,3).repeat(2):e.slice(4,6),16);return i?this.fromARGB({r:h,g:n,b:r,a:i}):this.fromARGB({r:h,g:n,b:r})},t.prototype.withAlpha=function(t){return this.fromARGB({r:this.color.r,g:this.color.g,b:this.color.b,a:t}).value},t.prototype.withOpacity=function(t){return this.fromARGB({r:this.color.r,g:this.color.g,b:this.color.b,a:Math.round(255*t)}).value},t.prototype.withRed=function(t){return this.fromARGB({a:this.color.a,r:t,g:this.color.g,b:this.color.b}).value},t.prototype.withGreen=function(t){return this.fromARGB({a:this.color.a,r:this.color.r,g:t,b:this.color.b}).value},t.prototype.withBlue=function(t){return this.fromARGB({a:this.color.a,r:this.color.r,g:this.color.g,b:t}).value},t.prototype.fromUtil=function(t){return this.color.value=t,this.color.value},t}())({});!function(t){t[t.fixed=0]="fixed",t[t.local=1]="local",t[t.scroll=2]="scroll"}(t||(t={})),function(t){t[t.borderBox=0]="borderBox",t[t.paddingBox=1]="paddingBox",t[t.contentBox=2]="contentBox",t[t.text=3]="text"}(e||(e={})),function(t){t[t.borderBox=0]="borderBox",t[t.paddingBox=1]="paddingBox",t[t.contentBox=2]="contentBox"}(o||(o={})),function(t){t[t.bottom=0]="bottom",t[t.center=1]="center",t[t.left=2]="left",t[t.leftBottom=3]="leftBottom",t[t.leftTop=4]="leftTop",t[t.right=5]="right",t[t.rightBottom=6]="rightBottom",t[t.rightTop=7]="rightTop",t[t.top=8]="top"}(i||(i={})),function(t){t[t.repeat=0]="repeat",t[t.noRepeat=1]="noRepeat",t[t.repeatX=2]="repeatX",t[t.repeatY=3]="repeatY",t[t.round=4]="round",t[t.space=5]="space"}(h||(h={})),function(t){t[t.auto=0]="auto",t[t.cover=1]="cover",t[t.contain=2]="contain"}(n||(n={})),function(t){t[t.normal=0]="normal",t[t.italic=1]="italic"}(r||(r={})),function(t){t[t.w100=0]="w100",t[t.w200=1]="w200",t[t.w300=2]="w300",t[t.w400=3]="w400",t[t.w500=4]="w500",t[t.w600=5]="w600",t[t.w700=6]="w700",t[t.w800=7]="w800",t[t.w900=8]="w900",t[t.normal=9]="normal",t[t.bold=10]="bold"}(s||(s={})),function(t){t[t.Horizontal=0]="Horizontal",t[t.Vertical=1]="Vertical"}(a||(a={}));var u=["px","vh","vw","%","pt"],x=function(){function t(t){this.message=t.message,this.type=t.type}return t.prototype.thtrow=function(){throw this},t}(),f=function(){function t(){}return t.prototype.isNumber=function(t){return!!t&&/^-?\d+\.?\d*$/.test(null==t?void 0:t.toString())},t}();function p(t){return(new f).isNumber(t)}var g,b,d,y=function(){function t(){}return t.prototype.toNumber=function(t){var e=this;if(!t)return 0;if(this.val=t,!p(this.val)){var o=this.val;u.forEach((function(t){var i;p(o)?e.val=e.val.toString().split(t).join(""):(i={message:"Invalid Number: "+o.toString()},new x({type:"Conversion Exception",message:i.message}))}))}return Number.parseFloat(this.val.toString())},t.prototype.invertFlex=function(t){return t.includes("items")?t.split("items").join("justify").replace("stretch","evenly").replace("line","around"):t.split("justify").join("items").replace("evenly","stretch").replace("around","line")},t}(),v=(g=function(t,e){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},g(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),R=function(){function t(t){this.bottom=0,this.end=0,this.left=0,this.right=0,this.start=0,this.top=0,this.horizontal=0,this.vertical=0,this.value="",this.bottom=t.bottom,this.end=t.end,this.left=t.left,this.right=t.right,this.top=t.top;var e=new y;return this.horizontal=e.toNumber(this.left)+e.toNumber(this.right)+e.toNumber(this.start)+e.toNumber(this.end),this.vertical=e.toNumber(this.top)+e.toNumber(this.bottom),console.log("1.1->",this.arrayed_value("padding-")),this}return t.prototype.val=function(t){var e;return this.value=["".concat(t,"left:").concat(this.left),"".concat(t,"right:").concat(this.right),"".concat(t,"top:").concat(this.top),"".concat(t,"bottom:").concat(null!==(e=this.bottom)&&void 0!==e?e:this.end)].join(";"),this},t.prototype.arrayed_value=function(t){var e;return["".concat(this.left,"px"),"".concat(this.top,"px"),"".concat(this.right,"px"),"".concat(null!==(e=this.bottom)&&void 0!==e?e:this.end,"px")]},t.prototype.reset=function(){this.left=0,this.right=0,this.top=0,this.bottom=0,this.start=0,this.end=0},t.prototype.along=function(t){switch(t.axis){case a.Horizontal:return this.reset(),this.left=this.horizontal,this.right=this.horizontal,this.start=this.horizontal,this.end=this.horizontal,this;case a.Vertical:return this.reset(),this.top=this.vertical,this.start=this.vertical,this.end=this.vertical,this.bottom=this.vertical,this}},t.prototype.infinity=function(){return this.bottom="100%",this.end="100%",this.left="100%",this.right="100%",this.top="100%",this},t}(),T=new(function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.only=function(t){return new R({left:t.left,top:t.top,right:t.right,bottom:t.bottom})},e.prototype.all=function(t){return this.symmetric({vertical:t,horizontal:t})},e.prototype.symmetric=function(t){return this.reset(),this.only({left:t.vertical,right:t.vertical,top:t.horizontal,bottom:t.horizontal})},e}(R))({propertie:"padding"}),m=new(function(){function t(){this.zero=this.circular(0)}return t.prototype.circular=function(t){return this.value="".concat(t,"px"),this},t.prototype.elliptical=function(t){return this.value="".concat(t,"%"),this},t}()),w=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.only=function(t){var e,o,i,h,n,r,s,a;return this.topLeft=t.topLeft,this.topRight=t.topRight,this.bottomLeft=t.bottomLeft,this.bottomRight=t.bottomRight,this.value=[null!==(o=null===(e=this.topLeft)||void 0===e?void 0:e.value)&&void 0!==o?o:"0px",null!==(h=null===(i=this.topRight)||void 0===i?void 0:i.value)&&void 0!==h?h:"0px",null!==(r=null===(n=this.bottomLeft)||void 0===n?void 0:n.value)&&void 0!==r?r:"0px",null!==(a=null===(s=this.bottomRight)||void 0===s?void 0:s.value)&&void 0!==a?a:"0px"],console.warn(this.value),this},e.prototype.all=function(t){return this.only({topLeft:t,topRight:t,bottomLeft:t,bottomRight:t})},e.prototype.circular=function(t){return this.all(m.circular(t))},e.prototype.vertical=function(t){var e,o,i,h;return console.warn("vertical",t.top,t.bottom),this.only({topLeft:null!==(e=t.top)&&void 0!==e?e:m.zero,topRight:null!==(o=t.top)&&void 0!==o?o:m.zero,bottomLeft:null!==(i=t.bottom)&&void 0!==i?i:m.zero,bottomRight:null!==(h=t.bottom)&&void 0!==h?h:m.zero})},e.prototype.horizontal=function(t){var e,o,i,h;return this.only({topLeft:null!==(e=t.left)&&void 0!==e?e:m.zero,topRight:null!==(o=t.right)&&void 0!==o?o:m.zero,bottomLeft:null!==(i=t.left)&&void 0!==i?i:m.zero,bottomRight:null!==(h=t.right)&&void 0!==h?h:m.zero})},e}((function(){}))),function(t){t.start="flex-start",t.end="flex-end",t.center="center",t.spaceBetween="space-between",t.spaceAround="space-around",t.spaceEvenly="space-evenly"}(b||(b={})),function(t){t.start="start",t.end="end",t.center="center",t.spaceAround="stretch",t.spaceEvenly="items-stretch"}(d||(d={}));var _,S,O,j=function(){function t(t){this._props=t}return t.prototype.apply=function(t){for(var e in this._props){var o=e;t.tag.style[e]=this._props[o],console.log("FROM CSS",e,":",t.tag.style[e])}return t},t}();!function(t){t.centimeters="cm",t.millimeters="mm",t.inches="in",t.pixels="px",t.points="pt",t.picas="pc"}(_||(_={})),(O=S||(S={})).em="em",O.ex="ex",O.ch="ch",O.rem="rem",O.vw="vw",O.vmin="vmin",O.vmax="vmax",O["%"]="%";var A=function(){function t(){}return t.prototype.extractCss=function(t){var e=t.tag.getAttribute("style");return'[key="'.concat(t.tag.getAttribute("key"),'"]{\n\t').concat(null==e?void 0:e.split("; ").join(";\n\t"),"\n}\n")},t}(),C=function(){function t(){}return t.prototype.fromValue=function(t){return t},t.prototype.uuidv4=function(){var t=(new Date).getTime(),e="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(o){var i=16*Math.random();return t>0?(i=(t+i)%16|0,t=Math.floor(t/16)):(i=(e+i)%16|0,e=Math.floor(e/16)),("x"===o?i:3&i|8).toString(16)}))},t.prototype.uid=function(){return Math.round(Math.random()*Math.pow(36,6)).toString(36)},t}(),z=function(){return z=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var h in e=arguments[o])Object.prototype.hasOwnProperty.call(e,h)&&(t[h]=e[h]);return t},z.apply(this,arguments)},k=function(){function t(t){var e,o,i,h,n,r,s,a,c,l,u;this.width="auto",this.height="auto",this.width_size_measurement_unit=S["%"],this.height_size_measurement_unit=S["%"],this.css=new j(z({},null===(e=t.css)||void 0===e?void 0:e._props)),this.tagName=t.tagName,this.key=t.key,this.child=t.child,this.children=t.children,this.parent=t.parent,this.render({tagName:t.tagName,text:t.text,classes:t.classes}),this.text=t.text,this.width=t.width||this.width,this.height=t.height||this.height,this.width_size_measurement_unit=null!==(o=t.width_size_measurement_unit)&&void 0!==o?o:this.width_size_measurement_unit,this.height_size_measurement_unit=null!==(i=t.height_size_measurement_unit)&&void 0!==i?i:this.height_size_measurement_unit,this.boxDecoration=null!==(h=t.boxDecoration)&&void 0!==h?h:this.boxDecoration,this.clip=null!==(n=t.clipBehavior)&&void 0!==n?n:this.clip,t.key?(this.key=t.key,this.setKey(t.key)):(this.key=(new C).uid(),this.setKey(t.key)),this.classes=t.classes;var x=null===(r=t.padding)||void 0===r?void 0:r.arrayed_value("padding");x&&(this.css._props.paddingLeft=x[0],this.css._props.paddingTop=x[1],this.css._props.paddingRight=x[2],this.css._props.paddingBottom=x[3]);var f=null===(s=t.margin)||void 0===s?void 0:s.arrayed_value("margin");return f&&(this.css._props.marginLeft=f[0],this.css._props.marginTop=f[1],this.css._props.marginRight=f[2],this.css._props.marginBottom=f[3]),this.css._props.overflow=t.clipBehavior,(null===(a=t.boxDecoration)||void 0===a?void 0:a.color)&&(this.css._props.backgroundColor=null!==(l=null===(c=t.boxDecoration)||void 0===c?void 0:c.color)&&void 0!==l?l:""),p(t.width)&&(this.css._props.width=t.width.toString()+this.width_size_measurement_unit),p(t.height)&&(this.css._props.height=t.height.toString()+this.height_size_measurement_unit),function(t,e){if(!e)return t;if((null==e?void 0:e.borderRadius)&&(null==e?void 0:e.borderRadius.value)){var o=null==e?void 0:e.borderRadius.value;t.css._props.borderTopLeftRadius=o[0],t.css._props.borderTopRightRadius=o[1],t.css._props.borderBottomLeftRadius=o[2],t.css._props.borderBottomRightRadius=o[3]}e.boxShadow&&(t.css._props.boxShadow=e.boxShadow.map((function(t){return t.value()})).join(", "))}(this,t.boxDecoration),null===(u=this.css)||void 0===u||u.apply(this),this}return t.prototype.setKey=function(t){var e,o;t?null===(e=this.tag)||void 0===e||e.setAttribute("key",t.toString()):null===(o=this.tag)||void 0===o||o.setAttribute("key","".concat(this.tag.tagName.toLowerCase(),"_").concat(this.key.toString()))},t.prototype.bind=function(){window.flutjs||(window.flutjs={}),window.flutjs[this.key.toString()]=this.tag.outerHTML},t.prototype.render=function(t){var e,o,i=this;if(this.tag||(this.tag=document.createElement(t.tagName)),document.body.appendChild(this.tag),t.classes&&(e=this.tag.classList).add.apply(e,t.classes),this.addTextContent({text:t.text}),this.child&&(this.appendChild(this.child.tag),this.extactStyle(this.child),this.child.bind(),t.updating&&(null===(o=document.querySelector('[key="'+this.child.key+'"]'))||void 0===o||o.remove(),this.child.render({tagName:this.child.tagName,classes:this.child.classes,text:this.child.text,updating:t.updating}))),this.children){var h=this;this.children.map((function(e){var o;e&&(e.parent=h.tag,i.extactStyle(e),i.appendChild(e.tag),e.bind(),t.updating&&(null===(o=document.querySelector('[key="'+e.key+'"]'))||void 0===o||o.remove(),e.render({tagName:e.tagName,classes:e.classes,text:e.text,updating:t.updating})))}))}},t.prototype.extactStyle=function(t){this.style||(this.style=this.tag.getAttribute("style")||""),console.log("WIDGET STYLE: ",t.style+this.style),this.style=function(t){return(new A).extractCss(t)}(t),console.log("STYLE2: ",this.style)},t.prototype.addTextContent=function(t){t.text&&t.text.length>0&&(this.tag.textContent=t.text)},t.prototype.appendChild=function(t){var e;null===(e=this.tag)||void 0===e||e.appendChild(t)},t}();const B=k;var P=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();!function(t){function e(e){var o,i=this;return(i=t.call(this,{tagName:"div",children:[e.home],css:new j({background:l.Gray[100].value})})||this).title=e.title,i.theme=e.theme,i.home=e.home,i.tag.style.width="100vw",i.tag.style.height="100vh",i.classes=e.classes,document.title=null!==(o=e.title)&&void 0!==o?o:document.title,e.mounted&&e.mounted(),i}P(e,t),e.prototype.build=function(){return document.body.outerHTML}}(k);var N=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),L=function(t){function e(e){return t.call(this,e)||this}return N(e,t),e.prototype.topLeft=function(){return new e({x:-1,y:-1})},e.prototype.topCenter=function(){return new e({x:0,y:-1})},e.prototype.topRight=function(){return new e({x:1,y:-1})},e.prototype.centerLeft=function(){return new e({x:-1,y:0})},e.prototype.center=function(){return new e({x:0,y:0})},e.prototype.centerRight=function(){return new e({x:1,y:0})},e.prototype.bottomLeft=function(){return new e({x:-1,y:1})},e.prototype.bottomCenter=function(){return new e({x:0,y:1})},e.prototype.bottomRight=function(){return new e({x:1,y:1})},e.prototype.add=function(e){return t.prototype.add.call(this,e)},e}(function(){function t(t){this.x=t.x,this.y=t.y,this.val="".concat(this.x," ").concat(this.y)}return t.prototype.negative=function(){return new t({x:-1*this.x,y:-1*this.y})},t.prototype.add=function(e){return new t({x:this.x+e.x,y:this.y+e.y})},t.prototype.multiply=function(e){return new t({x:this.x*e.x,y:this.y*e.y})},t.prototype.divide=function(e){return new t({x:this.x/e.x,y:this.y/e.y})},t}()),E=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),F=function(t){function e(e){var o,i;return t.call(this,{tagName:"div",children:e.children,css:new j({display:"flex",flexDirection:"row",justifyContent:null!==(o=e.mainAxisAlignment)&&void 0!==o?o:b.start,alignItems:null!==(i=e.crossAxisAlignment)&&void 0!==i?i:d.start})})||this}return E(e,t),e}(B);function G(t){return new F(t)}var D,M=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();M((function(t){var e=D.call(this,{key:t.key,tagName:"button",child:G({children:[t.icon,t.label],mainAxisAlignment:b.center,crossAxisAlignment:d.center}),boxDecoration:t.boxDecoration,padding:t.padding})||this;return e.padding=T.all(8),e.alignment=new L({}).center(),e.alignment=t.alignment,e.iconSize=t.iconSize,e.splashRadius=t.splashRadius,e.color=t.color,e.focusColor=t.focusColor,e.hoverColor=t.hoverColor,e.highlightColor=t.highlightColor,e.splashColor=t.splashColor,e.disabledColor=t.disabledColor,e.onPressed=t.onPressed,e.autofocus=t.autofocus,e.tooltip=t.tooltip,e.icon=t.icon,e.label=t.label,e.tag.addEventListener("click",(function(t){e.onPressed(t)})),e}),D=k);var I=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();!function(t){I((function(e){var o,i;return t.call(this,{tagName:"div",children:e.children,css:new j({display:"flex",flexDirection:"column",justifyContent:null!==(o=e.mainAxisAlignment)&&void 0!==o?o:(new y).invertFlex(b.start),alignItems:null!==(i=e.crossAxisAlignment)&&void 0!==i?i:(new y).invertFlex(d.start)})})||this}),t)}(B);var W=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),H=function(){return H=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var h in e=arguments[o])Object.prototype.hasOwnProperty.call(e,h)&&(t[h]=e[h]);return t},H.apply(this,arguments)};!function(t){W((function(e){return t.call(this,H({tagName:"div"},e))||this}),t)}(k);var V=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();!function(t){V((function(e){var o=t.call(this,{key:e.key,tagName:"div",child:e.child})||this;return o.child&&(o.tag=o.child.tag),o.tag.style.width="100%",o.tag.style.height="100%",e.child.tag.style.width="100%",e.child.tag.style.height="100%",o}),t)}(B),function(){function t(t){this.color=t.color,this.opacity=t.opacity,this.size=t.size}t.prototype.copyWith=function(e){return new t({color:e.color||this.color,opacity:e.opacity||this.opacity,size:e.size||this.size})}}();var Y=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();!function(t){function e(e){var o=t.call(this,{tagName:"img"})||this;return o.excludeFromSemantics=!1,o}Y(e,t),e.prototype.network=function(t,e){var o,i;return this.tag.setAttribute("src",t),e.semanticLabel&&this.tag.setAttribute("label",e.semanticLabel),this.css=new j({backgroundColor:null===(o=e.color)||void 0===o?void 0:o.value,opacity:null===(i=e.opacity)||void 0===i?void 0:i.toString(),objectFit:e.fit,backgroundRepeat:e.repeat,width:"100%",height:"100%"}),e.semanticLabel&&this.tag.setAttribute("label",e.semanticLabel),this.css.apply(this),this}}(B);var K=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();!function(t){K((function(e){return t.call(this,{tagName:"div",child:e.child,padding:e.padding})||this}),t)}(k);var q=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();!function(t){q((function(e){return t.call(this,{tagName:"div",children:e.children,width:100,height:100,width_size_measurement_unit:S["%"],height_size_measurement_unit:S["%"],css:new j({flexDirection:"Stack",position:"relative"})})||this}),t)}(B);var X=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();!function(t){X((function(e){var o,i,h,n,r,s,a,c,l,u,x,f,p=this;return p=t.call(this,{tagName:"p",key:e.key,text:e.text})||this,e&&e.textStyle&&(e.textStyle.color&&(p.tag.style.color=null===(o=e.textStyle)||void 0===o?void 0:o.color),e.textStyle.backgroundColor&&(p.tag.style.backgroundColor=null===(i=e.textStyle)||void 0===i?void 0:i.backgroundColor),e.textStyle.fontSize&&(p.tag.style.fontSize=null===(h=e.textStyle)||void 0===h?void 0:h.fontSize),e.textStyle.fontWeight&&(p.tag.style.fontWeight=null===(n=e.textStyle)||void 0===n?void 0:n.fontWeight),e.textStyle.fontStyle&&(p.tag.style.fontStyle=null===(r=e.textStyle)||void 0===r?void 0:r.fontStyle),e.textStyle.wordSpacing&&(p.tag.style.wordSpacing=null===(s=e.textStyle)||void 0===s?void 0:s.wordSpacing),e.textStyle.height&&(p.tag.style.height=null===(a=e.textStyle)||void 0===a?void 0:a.height),e.textStyle.shadows&&(p.tag.style.boxShadow=null===(c=e.textStyle)||void 0===c?void 0:c.shadows),e.textStyle.fontFamily&&(p.tag.style.fontFamily=null===(l=e.textStyle)||void 0===l?void 0:l.fontFamily),e.textStyle.fontFamilyFallback&&(p.tag.style.fontFamily+=null===(u=e.textStyle)||void 0===u?void 0:u.fontFamilyFallback.join("")),e.textStyle.package&&(p.tag.style.fontFamily+=null===(x=e.textStyle)||void 0===x?void 0:x.package),e.textStyle.overflow&&(p.tag.style.overflow=null===(f=e.textStyle)||void 0===f?void 0:f.overflow)),p}),t)}(k)})();