windi-live-transform
Version:
1 lines • 243 kB
JavaScript
var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};function e(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}function r(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t}function i(t){return Array.isArray(t)?t:[t]}function n(t){for(var e=5381,r=(t=t.replace(/\r/g,"")).length;r--;)e=(e<<5)-e^t.charCodeAt(r);return(e>>>0).toString(36)}function a(t,e,r,i,n){return void 0===e&&(e="{"),void 0===r&&(r="}"),void 0===i&&(i=2),void 0===n&&(n=!1),n?""+e+t+r:e+"\n"+function(t,e){void 0===e&&(e=2);var r=Array(e).fill(" ").join("");return t.split("\n").map((function(t){return r+t})).join("\n")}(t,i)+"\n"+r}function o(t){return t.replace(/([A-Z])/g,"-$1").replace(/^ms-/,"-ms-").toLowerCase()}function l(t,e,r,i){void 0===r&&(r=0);var n=t.substring(r,i).search(e);return-1===n?-1:r+n}function s(t,e,i){return void 0===i&&(i=!0),i?r(r([],null!=t?t:[]),null!=e?e:[]):r(r([],null!=e?e:[]),null!=t?t:[])}function u(t){return Array.isArray(t)?t.map((function(t){return u(t)})):t instanceof Date?new Date(t.getTime()):t&&"object"==typeof t?Object.getOwnPropertyNames(t).reduce((function(e,r){var i=Object.getOwnPropertyDescriptor(t,r);return i&&(Object.defineProperty(e,r,i),t&&"object"==typeof t&&(e[r]=u(t[r]))),e}),Object.create(Object.getPrototypeOf(t))):t}function c(t,e){void 0===e&&(e=0);for(var r=e,i=-1,n=!1,a=!1,o=!1,l=!1;r<t.length;){switch(t.charAt(r)){case"\\":l=!l;break;case"'":a||o||l||(n=!n),l=!1;break;case'"':n||o||l||(a=!a),l=!1;break;case"(":o||n||a||l||(o=!0),l=!1;break;case")":o&&!l&&(o=!1),l=!1;break;case";":l||n||a||o||(i=r),l=!1;break;default:l=!1}if(-1!==i)break;r++}return i}var d,p=function(){function t(t,e,r,i){void 0===i&&(i=!1),this.meta={type:"utilities",group:"plugin",order:0,offset:0,corePlugin:!1},this.name=t,this.value=e,this.comment=r,this.important=i}return t._singleParse=function(e){if(e=e.trim()){if("@"===e.charAt(0))return f.parse(e);var r=e.search(":"),i=c(e);if(-1!==r){var n=!1,a=e.substring(r+1,-1===i?void 0:i).trim();return/!important;?$/.test(a)&&(n=!0,a=a.replace(/!important/,"").trimRight()),new t(e.substring(0,r).trim(),a,void 0,n)}}},t.parse=function(t){/;\s*$/.test(t)||(t+=";");for(var e=[],r=0,i=c(t,r);-1!==i;){var n=this._singleParse(t.substring(l(t,/\S/,r),i+1));n&&e.push(n),i=c(t,r=i+1)}var a=e.length;return a>1?e:1===a?e[0]:void 0},t.prototype.clone=function(){return u(this)},t.prototype.toStyle=function(t){var e=new m(t,this,this.important);return e.meta=this.meta,e},t.prototype.build=function(t){var e=this;void 0===t&&(t=!1);var r=function(r,i){if(t)return r+":"+i+(e.important?"!important":"")+";";var n=r+": "+i+(e.important?" !important":"")+";";return e.comment?n+" /* "+e.comment+" */":n};return this.value?"string"==typeof this.name?r(this.name,this.value):this.name.map((function(t){return r(t,e.value)})).join(t?"":"\n"):""},t.prototype.updateMeta=function(t,e,r,i,n){return void 0===i&&(i=0),void 0===n&&(n=!1),this.meta={type:t,group:e,order:r,offset:i,corePlugin:n},this},t}(),f=function(t){function r(e,r,i){void 0===i&&(i=!1);var n=t.call(this,e,r,void 0,i)||this;return n.name=e,n}return e(r,t),r.parse=function(t){var e,i=t.match(/@[^\s;{}]+/);if(i){var n=i[0].substring(1),a=!1,o=void 0!==i.index?null===(e=t.substring(i.index+n.length+1).match(/(?:(['"]).*?\1|[^;])*/))||void 0===e?void 0:e[0].trim():void 0;return o&&/!important;?$/.test(o)&&(a=!0,o=o.replace(/!important/,"").trimRight()),new r(n,""===o?void 0:o,a)}},r.prototype.build=function(){return this.value?"@"+this.name+" "+this.value+(this.important?" !important":"")+";":"@"+this.name+(this.important?" !important":"")+";"},r}(p),m=function(){function t(t,e,r){void 0===r&&(r=!1),this.meta={type:"components",group:"plugin",order:0,offset:0,corePlugin:!1},this.selector=t,this.important=r,this.property=i(e||[])}return Object.defineProperty(t.prototype,"rule",{get:function(){var t,e,r,i=this,n=(null!==(t=this.selector)&&void 0!==t?t:"").trim().split(/\s*,\s*/g);return this._parentSelectors&&(n=n.map((function(t){var e;return(null===(e=i._parentSelectors)||void 0===e?void 0:e.join(" "))+" "+t}))),(null!==(e=this._wrapSelectors)&&void 0!==e?e:[]).forEach((function(t){return n=n.map((function(e){return t(e)}))})),this._pseudoClasses&&(n=n.map((function(t){var e;return t+":"+(null===(e=i._pseudoClasses)||void 0===e?void 0:e.join(":"))}))),this._pseudoElements&&(n=n.map((function(t){var e;return t+"::"+(null===(e=i._pseudoElements)||void 0===e?void 0:e.join("::"))}))),this._brotherSelectors&&(n=n.map((function(t){var e;return t+"."+(null===(e=i._brotherSelectors)||void 0===e?void 0:e.join("."))}))),this._childSelectors&&(n=n.map((function(t){var e;return t+" "+(null===(e=i._childSelectors)||void 0===e?void 0:e.join(" "))}))),(null!==(r=this._wrapRules)&&void 0!==r?r:[]).forEach((function(t){return n=n.map((function(e){return t(e)}))})),n.join(", ")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pseudoClasses",{get:function(){return this._pseudoClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pseudoElements",{get:function(){return this._pseudoElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentSelectors",{get:function(){return this._parentSelectors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childSelectors",{get:function(){return this._childSelectors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"brotherSelectors",{get:function(){return this._brotherSelectors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapProperties",{get:function(){return this._wrapProperties},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapSelectors",{get:function(){return this._wrapSelectors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapRules",{get:function(){return this._wrapRules},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"simple",{get:function(){return!(this.atRules||this._pseudoClasses||this._pseudoElements||this._parentSelectors||this._childSelectors||this._brotherSelectors||this._wrapProperties||this._wrapSelectors||this._wrapRules)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAtrule",{get:function(){return!(void 0===this.atRules||0===this.atRules.length)},enumerable:!1,configurable:!0}),t.generate=function(e,r,i){i||(i=(null==e?void 0:e.startsWith("@"))?(new t).atRule(e):new t(e));for(var n=[],a=function(e,r){if("string"==typeof r)i.add(new p(o(e),r));else if(Array.isArray(r))r.map((function(t){return null==i?void 0:i.add(new p(o(e),t))}));else{var a=u(i);a.property=[];var l=void 0;e.startsWith("@")?l=a.atRule(e,!1):void 0===a.selector?(a.selector=e,l=a):/^[a-z]+$/.test(e)&&!["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embd","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"].includes(e)?(a.wrapProperty((function(t){return e+"-"+t})),l=a):(a.wrapSelector((function(t){return t.trim().split(/\s*,\s*/g).map((function(t){return e.split(/\s*,\s*/g).map((function(e){return function(t,e){return(/&/.test(e)?e:"& "+e).replace("&",t)}(t,e)})).join(", ")})).join(", ")})),l=a),n=n.concat(t.generate(e.startsWith("@")?void 0:e,r,l))}},l=0,s=Object.entries(null!=r?r:{});l<s.length;l++){var c=s[l];a(c[0],c[1])}return i.property.length>0&&n.unshift(i),n},t.prototype.atRule=function(t,e){return void 0===e&&(e=!0),t?(this.atRules?e?this.atRules.push(t):this.atRules.unshift(t):this.atRules=[t],this):this},t.prototype.pseudoClass=function(t){return this._pseudoClasses?this._pseudoClasses.push(t):this._pseudoClasses=[t],this},t.prototype.pseudoElement=function(t){return this._pseudoElements?this._pseudoElements.push(t):this._pseudoElements=[t],this},t.prototype.brother=function(t){return this._brotherSelectors?this._brotherSelectors.push(t):this._brotherSelectors=[t],this},t.prototype.parent=function(t){return this._parentSelectors?this._parentSelectors.push(t):this._parentSelectors=[t],this},t.prototype.child=function(t){return this._childSelectors?this._childSelectors.push(t):this._childSelectors=[t],this},t.prototype.wrapProperty=function(t){return this._wrapProperties?this._wrapProperties.push(t):this._wrapProperties=[t],this},t.prototype.wrapSelector=function(t){return this._wrapSelectors?this._wrapSelectors.push(t):this._wrapSelectors=[t],this},t.prototype.wrapRule=function(t){return this._wrapRules?this._wrapRules.push(t):this._wrapRules=[t],this},t.prototype.add=function(t){return t=i(t),this.important&&t.forEach((function(t){return t.important=!0})),this.property=r(r([],this.property),t),this},t.prototype.extend=function(t,e,r){if(void 0===e&&(e=!1),void 0===r&&(r=!0),!t)return this;if(t.wrapProperties){var i=[];t.property.forEach((function(e){var r,n=new p(e.name,e.value,e.comment);null===(r=t.wrapProperties)||void 0===r||r.forEach((function(t){n.name=Array.isArray(n.name)?n.name.map((function(e){return t(e)})):t(n.name)})),t.important&&(n.important=!0),i.push(n)})),this.property=s(this.property,i,r)}else t.important&&t.property.forEach((function(t){return t.important=!0})),this.property=s(this.property,t.property,r);return e||(t.selector&&(this.selector=t.selector),this.meta=t.meta,t.atRules&&(this.atRules=s(t.atRules,this.atRules,r)),t._brotherSelectors&&(this._brotherSelectors=s(this._brotherSelectors,t._brotherSelectors,r)),t._childSelectors&&(this._childSelectors=s(this._childSelectors,t._childSelectors,r)),t._parentSelectors&&(this._parentSelectors=s(this._parentSelectors,t._parentSelectors,r)),t._pseudoClasses&&(this._pseudoClasses=s(this._pseudoClasses,t._pseudoClasses,r)),t._pseudoElements&&(this._pseudoElements=s(this._pseudoElements,t._pseudoElements,r)),t._wrapRules&&(this._wrapRules=s(this._wrapRules,t._wrapRules,r)),t._wrapSelectors&&(this._wrapSelectors=s(this._wrapSelectors,t._wrapSelectors,r))),this},t.prototype.clean=function(){var t=[],e=[];return this.property.forEach((function(r){var i=r.build();e.includes(i)||(e.push(i),t.push(r))})),this.property=t,this},t.prototype.flat=function(){var t=[];return this.property.forEach((function(e){Array.isArray(e.name)?e.name.forEach((function(r){t.push(new p(r,e.value,e.comment))})):t.push(e)})),this.property=t,this},t.prototype.clone=function(t,e){var r=u(this);return t&&(r.selector=t),e&&(r.property=Array.isArray(e)?e:[e]),r},t.prototype.sort=function(){return this.property=this.property.sort((function(t,e){return(""+t.name).substring(0,2)>(""+e.name).substring(0,2)?1:-1})),this},t.prototype.build=function(t,e){var r=this;void 0===t&&(t=!1),void 0===e&&(e=!0);var i=this.property;e||(i=i.filter((function(t){return!(t.value&&/-(webkit|ms|moz|o)-/.test(t.value)||(Array.isArray(t.name)?(t.name=t.name.filter((function(t){return!/^-(webkit|ms|moz|o)-/.test(t)})),0):/^-(webkit|ms|moz|o)-/.test(t.name)))})));var n=i.map((function(e){if(r._wrapProperties){var i=e.name;return r._wrapProperties.forEach((function(t){return i=Array.isArray(i)?i.map((function(e){return t(e)})):t(i)})),new p(i,e.value,e.comment,!!r.important||e.important).build(t)}return r.important?new p(e.name,e.value,e.comment,!0).build(t):e.build(t)})).join(t?"":"\n");if(!this.selector&&!this.atRules)return n.replace(/;}/g,"}");if(this.selector&&(n=(t?this.rule.replace(/,\s/g,","):this.rule+" ")+a(n,void 0,void 0,void 0,""===n||t)),this.atRules)for(var o=0,l=this.atRules;o<l.length;o++){var s=l[o];n=t?""+s.replace(/\s/g,"")+a(n,void 0,void 0,void 0,t):s+" "+a(n,void 0,void 0,void 0,""===n||t)}return t?n.replace(/;}/g,"}"):n},t.prototype.updateMeta=function(t,e,r,i,n,a){return void 0===i&&(i=0),void 0===n&&(n=!1),void 0===a&&(a=!1),this.meta={type:t,group:e,order:r,offset:i,corePlugin:n,respectSelector:a},this},t}();e((function(t,e,r){return d.call(this,t,e,r)||this}),d=m),function(t){function i(e,r,i){return t.call(this,e,r,i)||this}e(i,t),i.generate=function(t,e,n,a){void 0===a&&(a=!0);for(var o=[],l=[],s=0,u=Object.entries(e);s<u.length;s++){for(var c=u[s],d=c[0],f=c[1],m=new i(d).atRule("@keyframes "+t),h=new i(d).atRule("@-webkit-keyframes "+t),g=0,b=Object.entries(f);g<b.length;g++){var y=b[g],v=y[0],w=y[1],x=v;"transform"===v?x=a?["-webkit-transform","transform"]:"transform":["animationTimingFunction","animation-timing-function"].includes(v)&&(x=a?["-webkit-animation-timing-function","animation-timing-function"]:"animation-timing-function"),m.add(new p(x,w)),h.add(new p(x,w))}o.push(m),a&&l.push(h)}return r(r([],o),l)}}(m),function(t){e((function(e,r,i){return t.call(this,e,r,i)||this}),t)}(m);var h=/(!?\(\s*min(-device-)?-width).+\(\s*max(-device)?-width/i,g=/(!?\(\s*max(-device)?-width).+\(\s*min(-device)?-width/i,b=F(h,g,/\(\s*min(-device)?-width/i),y=F(g,h,/\(\s*max(-device)?-width/i),v=/(!?\(\s*min(-device)?-height).+\(\s*max(-device)?-height/i,w=/(!?\(\s*max(-device)?-height).+\(\s*min(-device)?-height/i,x=F(v,w,/\(\s*min(-device)?-height/i),k=F(w,v,/\(\s*max(-device)?-height/i),S=/print/i,_=/^print\$/i,C=/^\s*@/i,O=/^\s*@media/i,A=Number.MAX_VALUE;function j(t){var e=/(-?\d*\.?\d+)(ch|em|ex|px|rpx|rem)/.exec(t);if(null===e)return A;var r=e[1];switch(e[2]){case"ch":return 8.8984375*parseFloat(r);case"em":case"rem":return 16*parseFloat(r);case"ex":return 8.296875*parseFloat(r);case"px":case"rpx":return parseFloat(r)}return+r}function F(t,e,r){return function(i){return!!t.test(i)||!e.test(i)&&r.test(i)}}function M(t){var e=t.charAt(0),r=t.charAt(1);return":"===e&&":"===r?59:"#"===e?500:"."!==e?e.charCodeAt(0):499}function P(t,e){var r,i,n,a;return"base"===t.meta.type&&"base"===e.meta.type?M(null!==(r=t.selector)&&void 0!==r?r:"")-M(null!==(i=e.selector)&&void 0!==i?i:""):function(t,e){var r=function(t,e){var r=O.test(t),i=O.test(e);if(r&&i)return null;var n=C.test(t),a=C.test(e);return n?1:a?-1:0}(t,e);if(null!==r)return r;var i=function(t,e){var r=S.test(t),i=_.test(t),n=S.test(e),a=_.test(e);return r&&n?!i&&a?1:i&&!a?-1:t.localeCompare(e):r?1:n?-1:null}(t,e);if(null!==i)return i;var n=b(t)||x(t),a=y(t)||k(t),o=b(e)||x(e),l=y(e)||k(e);if(n&&l)return-1;if(a&&o)return 1;var s=j(t),u=j(e);return s===A&&u===A?t.localeCompare(e):s===A?1:u===A?-1:s>u?a?-1:1:s<u?a?1:-1:t.localeCompare(e)}((null===(n=t.meta.variants)||void 0===n?void 0:n[0])||"",(null===(a=e.meta.variants)||void 0===a?void 0:a[0])||"")||t.meta.order-e.meta.order||t.meta.offset-e.meta.offset||+e.meta.corePlugin-+t.meta.corePlugin}function E(t,e,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!0),t+(r?"":" ")+a(z(e,r,i),void 0,void 0,void 0,r)}function z(t,e,r){var i,n;void 0===e&&(e=!1),void 0===r&&(r=!0);for(var a=[],o=[],l=function(t){if(t.isAtrule){n&&(o.push(n.clean().build(e,r)),n=void 0);var l=t.atRules.pop();i?i===l&&"@font-face"!==l?a.push(t):(o.push(E(i,a,e,r)),i=l,a=[t]):(i=l,a=[t])}else i&&(o.push(E(i,a,e,r)),i=void 0,a=[]),n?t.rule===n.rule?(t.important&&t.property.forEach((function(t){return t.important=!0})),t.wrapProperties&&t.property.forEach((function(e){var r;return null===(r=t.wrapProperties)||void 0===r?void 0:r.forEach((function(t){return e.name=Array.isArray(e.name)?e.name.map((function(e){return t(e)})):t(e.name)}))})),n.add(t.property)):(o.push(n.clean().build(e,r)),n=t):n=t},s=0,u=t;s<u.length;s++)l(u[s]);return i&&o.push(E(i,a,e,r)),n&&o.push(n.clean().build(e,r)),o.join(e?"":"\n")}var B=function(){function t(t){this.prefixer=!0,this.children=t||[]}return t.prototype.add=function(t){return t?(Array.isArray(t)?this.children=r(r([],this.children),t):this.children.push(t),this):this},t.prototype.extend=function(t,e,i){if(void 0===e&&(e=!0),void 0===i&&(i=!1),t){var a=t.children;if(i){var o=a.map((function(t){return n(t.build())}));a=a.filter((function(t){return!o.includes(n(t.build()))}))}this.prefixer=t.prefixer,this.children=e?r(r([],this.children),a):r(r([],a),this.children)}return this},t.prototype.combine=function(){var t={};return this.children.forEach((function(e,r){var i,a=n(e.atRules+e.rule);a in t?(null===(i=e.atRules)||void 0===i?void 0:i.includes("@font-face"))?t[a+r]=e:t[a]=t[a].extend(e,!0):t[a]=e})),this.children=Object.values(t).map((function(t){return t.clean()})),this},t.prototype.layer=function(e){var r=new t(this.children.filter((function(t){return t.meta.type===e})));return r.prefixer=this.prefixer,r},t.prototype.split=function(){return{base:this.layer("base"),components:this.layer("components"),utilities:this.layer("utilities")}},t.prototype.clone=function(){return u(this)},t.prototype.sort=function(){return this.children=this.children.sort(P),this},t.prototype.sortby=function(t){return this.children=this.children.sort(t),this},t.prototype.build=function(t){return void 0===t&&(t=!1),function(t,e,r){return void 0===e&&(e=!1),void 0===r&&(r=!0),z(u(t),e,r)}(this.children,t,this.prefixer)},t}(),D=function(t,e){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},D(t,e)};function R(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var I=function(){return I=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},I.apply(this,arguments)};function W(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t}function N(t){return Array.isArray(t)?t:[t]}function T(t){for(var e=5381,r=(t=t.replace(/\r/g,"")).length;r--;)e=(e<<5)-e^t.charCodeAt(r);return(e>>>0).toString(36)}function L(t,e,r,i,n){return void 0===e&&(e="{"),void 0===r&&(r="}"),void 0===i&&(i=2),void 0===n&&(n=!1),n?""+e+t+r:e+"\n"+function(t,e){void 0===e&&(e=2);var r=Array(e).fill(" ").join("");return t.split("\n").map((function(t){return r+t})).join("\n")}(t,i)+"\n"+r}function U(t,e,r,i){void 0===e&&(e=-1/0),void 0===r&&(r=1/0),void 0===i&&(i="int");var n=/^-?\d+$/.test(t);if("int"===i){if(!n)return!1}else{var a=/^-?\d+\.\d+$/.test(t);if(!n&&!a)return!1}var o=parseFloat(t);return o>=e&&o<=r}function V(t,e){return void 0===e&&(e=0),e=Math.pow(10,e),Math.round(t*e)/e}function q(t){var e=String(t).match(/^#?(?:([\da-f]{3})[\da-f]?|([\da-f]{6})(?:[\da-f]{2})?)$/i)||[],r=e[1],i=e[2];if(i){var n=Number.parseInt(i,16);return[n>>16,n>>8&255,255&n]}if(r)return Array.from(r,(function(t){return Number.parseInt(t,16)})).map((function(t){return t<<4|t}))}function $(t){return t.replace(/([A-Z])/g,"-$1").replace(/^ms-/,"-ms-").toLowerCase()}function X(t,e){var r=e.match(/^[^.[]+/);if(r){var i=t[r[0]];if(i){for(var n=r[0].length;n<e.length;){var a=e.slice(n).match(/\[[^\s\]]+?\]/),o=e.slice(n).match(/\.[^.[]+$|\.[^.[]+(?=\.)/);if(!a&&!o||void 0===(null==a?void 0:a.index)&&void 0===(null==o?void 0:o.index))return i;if("object"!=typeof i)return;o&&void 0!==o.index&&(void 0===(null==a?void 0:a.index)||o.index<a.index)?(i=i[o[0].slice(1)],n+=o.index+o[0].length):a&&void 0!==a.index&&(i=i[a[0].slice(1,-1).trim().replace(/^['"]+|['"]+$/g,"")],n+=a.index+a[0].length)}return i}}}function Y(t){return/(^0\w)|(^-)|(^0$)/.test(t)?t:"-"+t}function H(t,e,r,i){void 0===r&&(r=0);var n=t.substring(r,i).search(e);return-1===n?-1:r+n}function G(t,e,r){return void 0===r&&(r=!0),r?W(W([],null!=t?t:[]),null!=e?e:[]):W(W([],null!=e?e:[]),null!=t?t:[])}function Z(t,e){switch(e){case"object":return t&&"object"==typeof t?t:{};case"string":if("string"==typeof t)return t;break;case"number":if("number"==typeof t)return t}}function J(t){return Array.isArray(t)?t.map((function(t){return J(t)})):t instanceof Date?new Date(t.getTime()):t&&"object"==typeof t?Object.getOwnPropertyNames(t).reduce((function(e,r){var i=Object.getOwnPropertyDescriptor(t,r);return i&&(Object.defineProperty(e,r,i),t&&"object"==typeof t&&(e[r]=J(t[r]))),e}),Object.create(Object.getPrototypeOf(t))):t}function K(t,e){for(var r={},i=0,n=Object.entries(t);i<n.length;i++){var a=n[i],o=a[0],l=a[1];"string"==typeof l||"function"==typeof l?r[e&&"DEFAULT"===o?e:e?e+"-"+o:o]=l:r=I(I({},r),K(l,e?e+"-"+o:o))}return r}function Q(t,e){for(var r=0,i=e;r<i.length;r++)if(i[r].test(t))return!0;return!1}function tt(t,e){void 0===e&&(e=0);for(var r=e,i=-1,n=!1,a=!1,o=!1,l=!1;r<t.length;){switch(t.charAt(r)){case"\\":l=!l;break;case"'":a||o||l||(n=!n),l=!1;break;case'"':n||o||l||(a=!a),l=!1;break;case"(":o||n||a||l||(o=!0),l=!1;break;case")":o&&!l&&(o=!1),l=!1;break;case";":l||n||a||o||(i=r),l=!1;break;default:l=!1}if(-1!==i)break;r++}return i}function et(t,e){void 0===e&&(e=["{"]),Array.isArray(e)||(e=[e]);for(var r=0;r<t.length;){if(e.includes(t.charAt(r))&&"\\"!==t.charAt(r-1))return r;r++}return-1}function rt(t){var e;if(t.indexOf(",")>=0)return function(t){for(var e=[],r=0,i=0,n="",a=0,o=t.length;a<o;a++){var l=t[a];if("("===l)r+=1;else if(")"===l)r-=1;else if("["===l)i+=1;else if("]"===l)i-=1;else if(","===l&&!r&&!i){e.push(n.trim()),n="";continue}n+=l}return e.push(n.trim()),e}(t).map((function(t){return rt(t)}));if("."!==t.charAt(0)||et(t,["[",">","+","~"])>=0||t.trim().indexOf(" ")>=0||et(t.slice(1),".")>=0)return{selector:t,isClass:!1};var r=et(t,":"),i=((null===(e=t.match(/^\.([\w-]|(\\\W))+/))||void 0===e?void 0:e[0].slice(1))||"").replace(/\\/g,"");return-1===r?{selector:i,isClass:!0}:{selector:i,isClass:!0,pseudo:t.slice(r)}}function it(t,e){var r;if("number"==typeof t)return t+e;var i=(null===(r=t.match(/^-?[0-9]+\.?[0-9]*/))||void 0===r?void 0:r[0])||"",n=t.slice(i.length),a=parseFloat(i)+e;return Number.isNaN(a)?t:a+n}var nt=function(){function t(t,e,r,i){void 0===i&&(i=!1),this.meta={type:"utilities",group:"plugin",order:0,offset:0,corePlugin:!1},this.name=t,this.value=e,this.comment=r,this.important=i}return t._singleParse=function(e){if(e=e.trim()){if("@"===e.charAt(0))return at.parse(e);var r=e.search(":"),i=tt(e);if(-1!==r){var n=!1,a=e.substring(r+1,-1===i?void 0:i).trim();return/!important;?$/.test(a)&&(n=!0,a=a.replace(/!important/,"").trimRight()),new t(e.substring(0,r).trim(),a,void 0,n)}}},t.parse=function(t){/;\s*$/.test(t)||(t+=";");for(var e=[],r=0,i=tt(t,r);-1!==i;){var n=this._singleParse(t.substring(H(t,/\S/,r),i+1));n&&e.push(n),i=tt(t,r=i+1)}var a=e.length;return a>1?e:1===a?e[0]:void 0},t.prototype.clone=function(){return J(this)},t.prototype.toStyle=function(t){var e=new ot(t,this,this.important);return e.meta=this.meta,e},t.prototype.build=function(t){var e=this;void 0===t&&(t=!1);var r=function(r,i){if(t)return r+":"+i+(e.important?"!important":"")+";";var n=r+": "+i+(e.important?" !important":"")+";";return e.comment?n+" /* "+e.comment+" */":n};return this.value?"string"==typeof this.name?r(this.name,this.value):this.name.map((function(t){return r(t,e.value)})).join(t?"":"\n"):""},t.prototype.updateMeta=function(t,e,r,i,n){return void 0===i&&(i=0),void 0===n&&(n=!1),this.meta={type:t,group:e,order:r,offset:i,corePlugin:n},this},t}(),at=function(t){function e(e,r,i){void 0===i&&(i=!1);var n=t.call(this,e,r,void 0,i)||this;return n.name=e,n}return R(e,t),e.parse=function(t){var r,i=t.match(/@[^\s;{}]+/);if(i){var n=i[0].substring(1),a=!1,o=void 0!==i.index?null===(r=t.substring(i.index+n.length+1).match(/(?:(['"]).*?\1|[^;])*/))||void 0===r?void 0:r[0].trim():void 0;return o&&/!important;?$/.test(o)&&(a=!0,o=o.replace(/!important/,"").trimRight()),new e(n,""===o?void 0:o,a)}},e.prototype.build=function(){return this.value?"@"+this.name+" "+this.value+(this.important?" !important":"")+";":"@"+this.name+(this.important?" !important":"")+";"},e}(nt),ot=function(){function t(t,e,r){void 0===r&&(r=!1),this.meta={type:"components",group:"plugin",order:0,offset:0,corePlugin:!1},this.selector=t,this.important=r,this.property=N(e||[])}return Object.defineProperty(t.prototype,"rule",{get:function(){var t,e,r,i=this,n=(null!==(t=this.selector)&&void 0!==t?t:"").trim().split(/\s*,\s*/g);return this._parentSelectors&&(n=n.map((function(t){var e;return(null===(e=i._parentSelectors)||void 0===e?void 0:e.join(" "))+" "+t}))),(null!==(e=this._wrapSelectors)&&void 0!==e?e:[]).forEach((function(t){return n=n.map((function(e){return t(e)}))})),this._pseudoClasses&&(n=n.map((function(t){var e;return t+":"+(null===(e=i._pseudoClasses)||void 0===e?void 0:e.join(":"))}))),this._pseudoElements&&(n=n.map((function(t){var e;return t+"::"+(null===(e=i._pseudoElements)||void 0===e?void 0:e.join("::"))}))),this._brotherSelectors&&(n=n.map((function(t){var e;return t+"."+(null===(e=i._brotherSelectors)||void 0===e?void 0:e.join("."))}))),this._childSelectors&&(n=n.map((function(t){var e;return t+" "+(null===(e=i._childSelectors)||void 0===e?void 0:e.join(" "))}))),(null!==(r=this._wrapRules)&&void 0!==r?r:[]).forEach((function(t){return n=n.map((function(e){return t(e)}))})),n.join(", ")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pseudoClasses",{get:function(){return this._pseudoClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pseudoElements",{get:function(){return this._pseudoElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentSelectors",{get:function(){return this._parentSelectors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childSelectors",{get:function(){return this._childSelectors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"brotherSelectors",{get:function(){return this._brotherSelectors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapProperties",{get:function(){return this._wrapProperties},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapSelectors",{get:function(){return this._wrapSelectors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapRules",{get:function(){return this._wrapRules},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"simple",{get:function(){return!(this.atRules||this._pseudoClasses||this._pseudoElements||this._parentSelectors||this._childSelectors||this._brotherSelectors||this._wrapProperties||this._wrapSelectors||this._wrapRules)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAtrule",{get:function(){return!(void 0===this.atRules||0===this.atRules.length)},enumerable:!1,configurable:!0}),t.generate=function(e,r,i){i||(i=(null==e?void 0:e.startsWith("@"))?(new t).atRule(e):new t(e));for(var n=[],a=function(e,r){if("string"==typeof r)i.add(new nt($(e),r));else if(Array.isArray(r))r.map((function(t){return null==i?void 0:i.add(new nt($(e),t))}));else{var a=J(i);a.property=[];var o=void 0;e.startsWith("@")?o=a.atRule(e,!1):void 0===a.selector?(a.selector=e,o=a):/^[a-z]+$/.test(e)&&!["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embd","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"].includes(e)?(a.wrapProperty((function(t){return e+"-"+t})),o=a):(a.wrapSelector((function(t){return t.trim().split(/\s*,\s*/g).map((function(t){return e.split(/\s*,\s*/g).map((function(e){return function(t,e){return(/&/.test(e)?e:"& "+e).replace("&",t)}(t,e)})).join(", ")})).join(", ")})),o=a),n=n.concat(t.generate(e.startsWith("@")?void 0:e,r,o))}},o=0,l=Object.entries(null!=r?r:{});o<l.length;o++){var s=l[o];a(s[0],s[1])}return i.property.length>0&&n.unshift(i),n},t.prototype.atRule=function(t,e){return void 0===e&&(e=!0),t?(this.atRules?e?this.atRules.push(t):this.atRules.unshift(t):this.atRules=[t],this):this},t.prototype.pseudoClass=function(t){return this._pseudoClasses?this._pseudoClasses.push(t):this._pseudoClasses=[t],this},t.prototype.pseudoElement=function(t){return this._pseudoElements?this._pseudoElements.push(t):this._pseudoElements=[t],this},t.prototype.brother=function(t){return this._brotherSelectors?this._brotherSelectors.push(t):this._brotherSelectors=[t],this},t.prototype.parent=function(t){return this._parentSelectors?this._parentSelectors.push(t):this._parentSelectors=[t],this},t.prototype.child=function(t){return this._childSelectors?this._childSelectors.push(t):this._childSelectors=[t],this},t.prototype.wrapProperty=function(t){return this._wrapProperties?this._wrapProperties.push(t):this._wrapProperties=[t],this},t.prototype.wrapSelector=function(t){return this._wrapSelectors?this._wrapSelectors.push(t):this._wrapSelectors=[t],this},t.prototype.wrapRule=function(t){return this._wrapRules?this._wrapRules.push(t):this._wrapRules=[t],this},t.prototype.add=function(t){return t=N(t),this.important&&t.forEach((function(t){return t.important=!0})),this.property=W(W([],this.property),t),this},t.prototype.extend=function(t,e,r){if(void 0===e&&(e=!1),void 0===r&&(r=!0),!t)return this;if(t.wrapProperties){var i=[];t.property.forEach((function(e){var r,n=new nt(e.name,e.value,e.comment);null===(r=t.wrapProperties)||void 0===r||r.forEach((function(t){n.name=Array.isArray(n.name)?n.name.map((function(e){return t(e)})):t(n.name)})),t.important&&(n.important=!0),i.push(n)})),this.property=G(this.property,i,r)}else t.important&&t.property.forEach((function(t){return t.important=!0})),this.property=G(this.property,t.property,r);return e||(t.selector&&(this.selector=t.selector),this.meta=t.meta,t.atRules&&(this.atRules=G(t.atRules,this.atRules,r)),t._brotherSelectors&&(this._brotherSelectors=G(this._brotherSelectors,t._brotherSelectors,r)),t._childSelectors&&(this._childSelectors=G(this._childSelectors,t._childSelectors,r)),t._parentSelectors&&(this._parentSelectors=G(this._parentSelectors,t._parentSelectors,r)),t._pseudoClasses&&(this._pseudoClasses=G(this._pseudoClasses,t._pseudoClasses,r)),t._pseudoElements&&(this._pseudoElements=G(this._pseudoElements,t._pseudoElements,r)),t._wrapRules&&(this._wrapRules=G(this._wrapRules,t._wrapRules,r)),t._wrapSelectors&&(this._wrapSelectors=G(this._wrapSelectors,t._wrapSelectors,r))),this},t.prototype.clean=function(){var t=[],e=[];return this.property.forEach((function(r){var i=r.build();e.includes(i)||(e.push(i),t.push(r))})),this.property=t,this},t.prototype.flat=function(){var t=[];return this.property.forEach((function(e){Array.isArray(e.name)?e.name.forEach((function(r){t.push(new nt(r,e.value,e.comment))})):t.push(e)})),this.property=t,this},t.prototype.clone=function(t,e){var r=J(this);return t&&(r.selector=t),e&&(r.property=Array.isArray(e)?e:[e]),r},t.prototype.sort=function(){return this.property=this.property.sort((function(t,e){return(""+t.name).substring(0,2)>(""+e.name).substring(0,2)?1:-1})),this},t.prototype.build=function(t,e){var r=this;void 0===t&&(t=!1),void 0===e&&(e=!0);var i=this.property;e||(i=i.filter((function(t){return!(t.value&&/-(webkit|ms|moz|o)-/.test(t.value)||(Array.isArray(t.name)?(t.name=t.name.filter((function(t){return!/^-(webkit|ms|moz|o)-/.test(t)})),0):/^-(webkit|ms|moz|o)-/.test(t.name)))})));var n=i.map((function(e){if(r._wrapProperties){var i=e.name;return r._wrapProperties.forEach((function(t){return i=Array.isArray(i)?i.map((function(e){return t(e)})):t(i)})),new nt(i,e.value,e.comment,!!r.important||e.important).build(t)}return r.important?new nt(e.name,e.value,e.comment,!0).build(t):e.build(t)})).join(t?"":"\n");if(!this.selector&&!this.atRules)return n.replace(/;}/g,"}");if(this.selector&&(n=(t?this.rule.replace(/,\s/g,","):this.rule+" ")+L(n,void 0,void 0,void 0,""===n||t)),this.atRules)for(var a=0,o=this.atRules;a<o.length;a++){var l=o[a];n=t?""+l.replace(/\s/g,"")+L(n,void 0,void 0,void 0,t):l+" "+L(n,void 0,void 0,void 0,""===n||t)}return t?n.replace(/;}/g,"}"):n},t.prototype.updateMeta=function(t,e,r,i,n,a){return void 0===i&&(i=0),void 0===n&&(n=!1),void 0===a&&(a=!1),this.meta={type:t,group:e,order:r,offset:i,corePlugin:n,respectSelector:a},this},t}();!function(t){R((function(e,r,i){return t.call(this,e,r,i)||this}),t)}(ot);var lt=function(t){function e(e,r,i){return t.call(this,e,r,i)||this}return R(e,t),e.generate=function(t,r,i,n){void 0===n&&(n=!0);for(var a=[],o=[],l=0,s=Object.entries(r);l<s.length;l++){for(var u=s[l],c=u[0],d=u[1],p=new e(c).atRule("@keyframes "+t),f=new e(c).atRule("@-webkit-keyframes "+t),m=0,h=Object.entries(d);m<h.length;m++){var g=h[m],b=g[0],y=g[1],v=b;"transform"===b?v=n?["-webkit-transform","transform"]:"transform":["animationTimingFunction","animation-timing-function"].includes(b)&&(v=n?["-webkit-animation-timing-function","animation-timing-function"]:"animation-timing-function"),p.add(new nt(v,y)),f.add(new nt(v,y))}a.push(p),n&&o.push(f)}return W(W([],a),o)},e}(ot),st=function(t){function e(e,r,i){return t.call(this,e,r,i)||this}return R(e,t),e}(ot),ut=/(!?\(\s*min(-device-)?-width).+\(\s*max(-device)?-width/i,ct=/(!?\(\s*max(-device)?-width).+\(\s*min(-device)?-width/i,dt=St(ut,ct,/\(\s*min(-device)?-width/i),pt=St(ct,ut,/\(\s*max(-device)?-width/i),ft=/(!?\(\s*min(-device)?-height).+\(\s*max(-device)?-height/i,mt=/(!?\(\s*max(-device)?-height).+\(\s*min(-device)?-height/i,ht=St(ft,mt,/\(\s*min(-device)?-height/i),gt=St(mt,ft,/\(\s*max(-device)?-height/i),bt=/print/i,yt=/^print\$/i,vt=/^\s*@/i,wt=/^\s*@media/i,xt=Number.MAX_VALUE;function kt(t){var e=/(-?\d*\.?\d+)(ch|em|ex|px|rpx|rem)/.exec(t);if(null===e)return xt;var r=e[1];switch(e[2]){case"ch":return 8.8984375*parseFloat(r);case"em":case"rem":return 16*parseFloat(r);case"ex":return 8.296875*parseFloat(r);case"px":case"rpx":return parseFloat(r)}return+r}function St(t,e,r){return function(i){return!!t.test(i)||!e.test(i)&&r.test(i)}}function _t(t,e){var r=function(t,e){var r=wt.test(t),i=wt.test(e);if(r&&i)return null;var n=vt.test(t),a=vt.test(e);return n?1:a?-1:0}(t,e);if(null!==r)return r;var i=function(t,e){var r=bt.test(t),i=yt.test(t),n=bt.test(e),a=yt.test(e);return r&&n?!i&&a?1:i&&!a?-1:t.localeCompare(e):r?1:n?-1:null}(t,e);if(null!==i)return i;var n=dt(t)||ht(t),a=pt(t)||gt(t),o=dt(e)||ht(e),l=pt(e)||gt(e);if(n&&l)return-1;if(a&&o)return 1;var s=kt(t),u=kt(e);return s===xt&&u===xt?t.localeCompare(e):s===xt?1:u===xt?-1:s>u?a?-1:1:s<u?a?1:-1:t.localeCompare(e)}function Ct(t){var e=t.charAt(0),r=t.charAt(1);return":"===e&&":"===r?59:"#"===e?500:"."!==e?e.charCodeAt(0):499}function Ot(t,e){var r,i,n,a;return"base"===t.meta.type&&"base"===e.meta.type?Ct(null!==(r=t.selector)&&void 0!==r?r:"")-Ct(null!==(i=e.selector)&&void 0!==i?i:""):_t((null===(n=t.meta.variants)||void 0===n?void 0:n[0])||"",(null===(a=e.meta.variants)||void 0===a?void 0:a[0])||"")||t.meta.order-e.meta.order||t.meta.offset-e.meta.offset||+e.meta.corePlugin-+t.meta.corePlugin}function At(t,e){var r,i;return _t((null===(r=t.meta.variants)||void 0===r?void 0:r[0])||"",(null===(i=e.meta.variants)||void 0===i?void 0:i[0])||"")||t.meta.order-e.meta.order}function jt(t,e,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!0),t+(r?"":" ")+L(Ft(e,r,i),void 0,void 0,void 0,r)}function Ft(t,e,r){var i,n;void 0===e&&(e=!1),void 0===r&&(r=!0);for(var a=[],o=[],l=function(t){if(t.isAtrule){n&&(o.push(n.clean().build(e,r)),n=void 0);var l=t.atRules.pop();i?i===l&&"@font-face"!==l?a.push(t):(o.push(jt(i,a,e,r)),i=l,a=[t]):(i=l,a=[t])}else i&&(o.push(jt(i,a,e,r)),i=void 0,a=[]),n?t.rule===n.rule?(t.important&&t.property.forEach((function(t){return t.important=!0})),t.wrapProperties&&t.property.forEach((function(e){var r;return null===(r=t.wrapProperties)||void 0===r?void 0:r.forEach((function(t){return e.name=Array.isArray(e.name)?e.name.map((function(e){return t(e)})):t(e.name)}))})),n.add(t.property)):(o.push(n.clean().build(e,r)),n=t):n=t},s=0,u=t;s<u.length;s++)l(u[s]);return i&&o.push(jt(i,a,e,r)),n&&o.push(n.clean().build(e,r)),o.join(e?"":"\n")}var Mt=function(){function t(t){this.prefixer=!0,this.children=t||[]}return t.prototype.add=function(t){return t?(Array.isArray(t)?this.children=W(W([],this.children),t):this.children.push(t),this):this},t.prototype.extend=function(t,e,r){if(void 0===e&&(e=!0),void 0===r&&(r=!1),t){var i=t.children;if(r){var n=i.map((function(t){return T(t.build())}));i=i.filter((function(t){return!n.includes(T(t.build()))}))}this.prefixer=t.prefixer,this.children=e?W(W([],this.children),i):W(W([],i),this.children)}return this},t.prototype.combine=function(){var t={};return this.children.forEach((function(e,r){var i,n=T(e.atRules+e.rule);n in t?(null===(i=e.atRules)||void 0===i?void 0:i.includes("@font-face"))?t[n+r]=e:t[n]=t[n].extend(e,!0):t[n]=e})),this.children=Object.values(t).map((function(t){return t.clean()})),this},t.prototype.layer=function(e){var r=new t(this.children.filter((function(t){return t.meta.type===e})));return r.prefixer=this.prefixer,r},t.prototype.split=function(){return{base:this.layer("base"),components:this.layer("components"),utilities:this.layer("utilities")}},t.prototype.clone=function(){return J(this)},t.prototype.sort=function(){return this.children=this.children.sort(Ot),this},t.prototype.sortby=function(t){return this.children=this.children.sort(t),this},t.prototype.build=function(t){return void 0===t&&(t=!1),function(t,e,r){return void 0===e&&(e=!1),void 0===r&&(r=!0),Ft(J(t),e,r)}(this.children,t,this.prefixer)},t}();function Pt(t){return"string"==typeof t}function Et(t){return Object.keys(t).filter((function(e){return"0"!==t[e]})).reduce((function(e,r){var i;return I(I({},e),((i={})["-"+r]=Y(t[r]),i))}),{})}function zt(t){return void 0===t&&(t={}),Object.keys(t).filter((function(e){return"string"==typeof t[e]})).reduce((function(e,r){var i;return I(I({},e),((i={})["screen-"+r]=t[r],i))}),{})}function Bt(t,e){void 0===e&&(e=!1);var r={"":["*"],y:["top","bottom"],x:["left","right"],t:e?["top-left","top-right"]:["top"],r:e?["top-right","bottom-right"]:["right"],b:e?["bottom-right","bottom-left"]:["bottom"],l:e?["top-left","bottom-left"]:["left"],tl:["top-left"],tr:["top-right"],br:["bottom-right"],bl:["bottom-left"]};if(t in r)return r[t]}function Dt(t,e,r){return void 0===r&&(r=!1),r?[new ot(t,e).pseudoElement("-webkit-input-placeholder"),new ot(t,e).pseudoElement("-moz-placeholder"),new ot(t,e).pseudoClass("-ms-input-placeholder"),new ot(t,e).pseudoElement("-ms-input-placeholder"),new ot(t,e).pseudoElement("placeholder")]:[new ot(t,e).pseudoElement("placeholder")]}function Rt(t){var e={exports:{}};return t(e,e.exports),e.exports}var It={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Wt=Rt((function(t){var e=Array.prototype.concat,r=Array.prototype.slice,i=t.exports=function(t){for(var i,n=[],a=0,o=t.length;a<o;a++){var l=t[a];(i=l)&&"string"!=typeof i&&(i instanceof Array||Array.isArray(i)||i.length>=0&&(i.splice instanceof Function||Object.getOwnPropertyDescriptor(i,i.length-1)&&"String"!==i.constructor.name))?n=e.call(n,r.call(l)):n.push(l)}return n};i.wrap=function(t){return function(){return t(i(arguments))}}})),Nt=Rt((function(t){var e={};for(var r in It)It.hasOwnProperty(r)&&(e[It[r]]=r);var i=t.exports={to:{},get:{}};function n(t,e,r){return Math.min(Math.max(e,t),r)}function a(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}i.get=function(t){var e,r;switch(t.substring(0,3).toLowerCase()){case"hsl":e=i.get.hsl(t),r="hsl";break;case"hwb":e=i.get.hwb(t),r="hwb";break;default:e=i.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},i.get.rgb=function(t){if(!t)return null;var e,r,i,a=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=e[2],e=e[1],r=0;r<3;r++){var o=2*r;a[r]=parseInt(e.slice(o,o+2),16)}i&&(a[3]=parseInt(i,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(i=(e=e[1])[3],r=0;r<3;r++)a[r]=parseInt(e[r]+e[r],16);i&&(a[3]=parseInt(i+i,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(r=0;r<3;r++)a[r]=parseInt(e[r+1],0);e[4]&&(a[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(e=t.match(/(\D+)/))?"transparent"===e[1]?[0,0,0,0]:(a=It[e[1]])?(a[3]=1,a):null:null;for(r=0;r<3;r++)a[r]=Math.round(2.55*parseFloat(e[r+1]));e[4]&&(a[3]=parseFloat(e[4]))}for(r=0;r<3;r++)a[r]=n(a[r],0,255);return a[3]=n(a[3],0,1),a},i.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])+360)%360,n(parseFloat(e[2]),0,100),n(parseFloat(e[3]),0,100),n(isNaN(r)?1:r,0,1)]}return null},i.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,n(parseFloat(e[2]),0,100),n(parseFloat(e[3]),0,100),n(isNaN(r)?1:r,0,1)]}return null},i.to.hex=function(){var t=Wt(arguments);return"#"+a(t[0])+a(t[1])+a(t[2])+(t[3]<1?a(Math.round(255*t[3])):"")},i.to.rgb=function(){var t=Wt(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},i.to.rgb.percent=function(){var t=Wt(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+i+"%)":"rgba("+e+"%, "+r+"%, "+i+"%, "+t[3]+")"},i.to.hsl=function(){var t=Wt(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},i.to.hwb=function(){var t=Wt(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},i.to.keyword=function(t){return e[t.slice(0,3)]}}));function Tt(t,e,r){e/=100,r/=100,t>=360&&(t%=360);var i=(1-Math.abs(2*r-1))*e,n=i*(1-Math.abs(t/60%2-1)),a=r-i/2,o=0,l=0,s=0;return 0<=t&&t<60?(o=i,l=n,s=0):60<=t&&t<120?(o=n,l=i,s=0):120<=t&&t<180?(o=0,l=i,s=n):180<=t&&t<240?(o=0,l=n,s=i):240<=t&&t<300?(o=n,l=0,s=i):300<=t&&t<360&&(o=i,l=0,s=n),[o=Math.round(255*(o+a)),l=Math.round(255*(l+a)),s=Math.round(255*(s+a))]}function Lt(t){var e=function(t){var e;if(/^hsla?/.test(t)){if(!(r=Nt.get.hsl(t)))return;return W(W([],Tt(r[0],r[1],r[2])),[r[3]])}if(/^rgba?/.test(t)){if(!(r=Nt.get.rgb(t)))return;return r}if(t.startsWith("hwb")){var r;if(!(r=Nt.get.hwb(t)))return;return W(W([],function(t,e,r){for(var i=Tt(t,100,50),n=0;n<3;++n){var a=i[n]/255;a*=1-e/100-r/100,a+=e/100,i[n]=Math.round(255*a)}return i}(r[0],r[1],r[2])),[r[3]])}return null===(e=Nt.get(t))||void 0===e?void 0:e.value}(t);return{color:e?e.slice(0,3).join(", "):t,opacity:e?e[3].toString():"1"}}function Ut(t){var e={},r=Object.entries(t).sort((function(t,e){var r=t[1],i=e[1];return qt(r)-qt(i)}));return r.forEach((function(t,i){var n=t[0],a=t[1];if(Pt(a)){var o=(r[i+1]||[])[1];e[n]=Vt({min:a}),e["<"+n]=Vt({max:it(a,-.1)}),e["@"+n]=Vt(o?{min:a,max:it(o,-.1)}:{min:a}),e["-"+n]=Vt({max:a}),e["+"+n]=Vt(o?{min:a,max:o}:{min:a})}else e[n]=Vt(a)})),e}function Vt(t){var e="raw"in t?t.raw:[t.min&&"(min-width: "+t.min+")",t.max&&"(max-width: "+t.max+")"].filter((function(t){return t})).join(" and ");return function(){return(new ot).atRule("@media "+e)}}function qt(t){return Pt(t)?parseInt(t):Number.NEGATIVE_INFINITY}var $t,Xt,Yt=[{keys:["root"],global:!0,selector:":root",properties:{"-moz-tab-size":function(t){return t("tabSize.DEFAULT","4")},"-o-tab-size":function(t){return t("tabSize.DEFAULT","4")},"tab-size":function(t){return t("tabSize.DEFAULT","4")}}},{keys:["html"],global:!0,selector:"html",properties:{"-webkit-text-size-adjust":"100%"}},{keys:["body"],global:!0,selector:"body",properties:{margin:"0"}},{keys:["hr"],properties:{height:"0",color:"inherit"}},{keys:["title"],global:!0,selector:"abbr[title]",properties:{"-webkit-text-decoration":"underline dotted","text-decoration":"underline dotted"}},{keys:["b","strong"],properties:{"font-weight":"bolder"}},{keys:["code","kbd","samp","pre"],properties:{"font-size":"1em"}},{keys:["small"],properties:{"font-size":"80%"}},{keys:["sub","sup"],properties:{"font-size":"75%","line-height":"0",position:"relative","vertical-align":"baseline"}},{keys:["sub"],properties:{bottom:"-0.25em"}},{keys:["sup"],properties:{top:"-0.5em"}},{keys:["table"],properties:{"text-indent":"0","border-color":"inherit"}},{keys:["button","input","optgroup","select","textarea"],properties:{"font-family":"inherit","font-size":"100%","line-height":"1.15",margin:"0"}},{keys:["button","select"],properties:{"text-transform":"none"}},{keys:["button"],selector:"button, [type='button'], [type='reset'], [type='submit']",properties:{"-webkit-appearance":"button"}},{keys:["inner"],global:!0,selector:"::moz-focus-inner",properties:{"border-style":"none",padding:"0"}},{keys:["focusring"],global:!0,selector:":-moz-focusring",properties:{outline:"1px dotted ButtonText"}},{keys:["invalid"],global:!0,selector:":-moz-ui-invalid",properties:{"box-shadow":"none"}},{keys:["legend"],properties:{padding:"0"}},{keys:["progress"],properties:{"vertical-align":"baseline"}},{keys:["spin"],global:!0,selector:"::-webkit-inner-spin-button, ::-webkit-outer-spin-button",properties:{height:"auto"}},{keys:["search"],global:!0,selector:"[type='search']",properties:{"-webkit-appearance":"textfield","outline-offset":"-2px"}},{keys:["search"],global:!