@byteluck-fe/model-driven-engine 5.6.0-1-beta4 → 5.6.0-1-beta5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -53,4 +53,4 @@ You tried to parse Less with the standard CSS parser; try again with the postcss
53
53
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
54
54
  https://www.w3ctech.com/topic/2226`));let a=r(...o);return a.postcssPlugin=e,a.postcssVersion=new zo().version,a}let u;return Object.defineProperty(i,"postcss",{get(){return u||(u=i()),u}}),i.process=function(o,a,s){return ge([i(s)]).process(o,a)},i},ge.stringify=RF,ge.parse=NF,ge.fromJSON=MF,ge.list=IF,ge.comment=t=>new Hc(t),ge.atRule=t=>new Gc(t),ge.decl=t=>new Qc(t),ge.rule=t=>new Xc(t),ge.root=t=>new Zc(t),ge.document=t=>new Jc(t),ge.CssSyntaxError=OF,ge.Declaration=Qc,ge.Container=SF,ge.Processor=zo,ge.Document=Jc,ge.Comment=Hc,ge.Warning=LF,ge.AtRule=Gc,ge.Result=$F,ge.Input=xF,ge.Rule=Xc,ge.Root=Zc,ge.Node=PF,TF.registerPostcss(ge);var Ce=ge;ge.default=ge,Ce.stringify,Ce.fromJSON,Ce.plugin,Ce.parse,Ce.list,Ce.document,Ce.comment,Ce.atRule,Ce.rule,Ce.decl,Ce.root,Ce.CssSyntaxError,Ce.Declaration,Ce.Container,Ce.Processor,Ce.Document,Ce.Comment,Ce.Warning,Ce.AtRule,Ce.Result,Ce.Input,Ce.Rule,Ce.Root,Ce.Node;const Kc=(t={})=>{const e=t.prefix,r=/\s+$/.test(e)?e:`${e} `,n=t.ignoreFiles?[].concat(t.ignoreFiles):[],i=t.includeFiles?[].concat(t.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(u){const o=u.root,a=o.source.input.file;if(!(n.length&&a&&Yc(a,n))&&!(i.length&&a&&!Yc(a,i)))return{Rule(s,{result:l}){const c=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];s.parent&&c.includes(s.parent.name)||(s.selectors=s.selectors.map(f=>t.exclude&&kF(f,t.exclude)?f:t.transform?t.transform(e,f,r+f,o.source.input.file,s):[":root","body","html"].some(h=>f.startsWith(h))?t.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,e):r+f))}}}}};function Yc(t,e){return e.some(r=>r instanceof RegExp?r.test(t):t.includes(r))}function kF(t,e){return e.some(r=>r instanceof RegExp?r.test(t):t===r)}Kc.postcss=!0;var qF=Kc,Go={exports:{}},Ho={exports:{}},Qo={exports:{}},Jo={exports:{}},Mi={exports:{}},yn={exports:{}},kt={exports:{}},ft={},xi={exports:{}};(function(t,e){e.__esModule=!0,e.default=i;function r(u){for(var o=u.toLowerCase(),a="",s=!1,l=0;l<6&&o[l]!==void 0;l++){var c=o.charCodeAt(l),f=c>=97&&c<=102||c>=48&&c<=57;if(s=c===32,!f)break;a+=o[l]}if(a.length!==0){var h=parseInt(a,16),g=h>=55296&&h<=57343;return g||h===0||h>1114111?["\uFFFD",a.length+(s?1:0)]:[String.fromCodePoint(h),a.length+(s?1:0)]}}var n=/\\/;function i(u){var o=n.test(u);if(!o)return u;for(var a="",s=0;s<u.length;s++){if(u[s]==="\\"){var l=r(u.slice(s+1,s+7));if(l!==void 0){a+=l[0],s+=l[1];continue}if(u[s+1]==="\\"){a+="\\",s++;continue}u.length===s+1&&(a+=u[s]);continue}a+=u[s]}return a}t.exports=e.default})(xi,xi.exports);var Zo={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i=arguments.length,u=new Array(i>1?i-1:0),o=1;o<i;o++)u[o-1]=arguments[o];for(;u.length>0;){var a=u.shift();if(!n[a])return;n=n[a]}return n}t.exports=e.default})(Zo,Zo.exports);var Xo={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i=arguments.length,u=new Array(i>1?i-1:0),o=1;o<i;o++)u[o-1]=arguments[o];for(;u.length>0;){var a=u.shift();n[a]||(n[a]={}),n=n[a]}}t.exports=e.default})(Xo,Xo.exports);var Ko={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i="",u=n.indexOf("/*"),o=0;u>=0;){i=i+n.slice(o,u);var a=n.indexOf("*/",u+2);if(a<0)return i;o=a+2,u=n.indexOf("/*",o)}return i=i+n.slice(o),i}t.exports=e.default})(Ko,Ko.exports),ft.__esModule=!0,ft.unesc=ft.stripComments=ft.getProp=ft.ensureObject=void 0;var jF=Ti(xi.exports);ft.unesc=jF.default;var UF=Ti(Zo.exports);ft.getProp=UF.default;var VF=Ti(Xo.exports);ft.ensureObject=VF.default;var WF=Ti(Ko.exports);ft.stripComments=WF.default;function Ti(t){return t&&t.__esModule?t:{default:t}}(function(t,e){e.__esModule=!0,e.default=void 0;var r=ft;function n(a,s){for(var l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}}function i(a,s,l){return s&&n(a.prototype,s),l&&n(a,l),Object.defineProperty(a,"prototype",{writable:!1}),a}var u=function a(s,l){if(typeof s!="object"||s===null)return s;var c=new s.constructor;for(var f in s)if(!!s.hasOwnProperty(f)){var h=s[f],g=typeof h;f==="parent"&&g==="object"?l&&(c[f]=l):h instanceof Array?c[f]=h.map(function(y){return a(y,c)}):c[f]=a(h,c)}return c},o=function(){function a(l){l===void 0&&(l={}),Object.assign(this,l),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var s=a.prototype;return s.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},s.replaceWith=function(){if(this.parent){for(var c in arguments)this.parent.insertBefore(this,arguments[c]);this.remove()}return this},s.next=function(){return this.parent.at(this.parent.index(this)+1)},s.prev=function(){return this.parent.at(this.parent.index(this)-1)},s.clone=function(c){c===void 0&&(c={});var f=u(this);for(var h in c)f[h]=c[h];return f},s.appendToPropertyAndEscape=function(c,f,h){this.raws||(this.raws={});var g=this[c],y=this.raws[c];this[c]=g+f,y||h!==f?this.raws[c]=(y||g)+h:delete this.raws[c]},s.setPropertyAndEscape=function(c,f,h){this.raws||(this.raws={}),this[c]=f,this.raws[c]=h},s.setPropertyWithoutEscape=function(c,f){this[c]=f,this.raws&&delete this.raws[c]},s.isAtPosition=function(c,f){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>c||this.source.end.line<c||this.source.start.line===c&&this.source.start.column>f||this.source.end.line===c&&this.source.end.column<f)},s.stringifyProperty=function(c){return this.raws&&this.raws[c]||this[c]},s.valueToString=function(){return String(this.stringifyProperty("value"))},s.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},i(a,[{key:"rawSpaceBefore",get:function(){var c=this.raws&&this.raws.spaces&&this.raws.spaces.before;return c===void 0&&(c=this.spaces&&this.spaces.before),c||""},set:function(c){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=c}},{key:"rawSpaceAfter",get:function(){var c=this.raws&&this.raws.spaces&&this.raws.spaces.after;return c===void 0&&(c=this.spaces.after),c||""},set:function(c){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=c}}]),a}();e.default=o,t.exports=e.default})(kt,kt.exports);var se={};se.__esModule=!0,se.UNIVERSAL=se.TAG=se.STRING=se.SELECTOR=se.ROOT=se.PSEUDO=se.NESTING=se.ID=se.COMMENT=se.COMBINATOR=se.CLASS=se.ATTRIBUTE=void 0;var zF="tag";se.TAG=zF;var GF="string";se.STRING=GF;var HF="selector";se.SELECTOR=HF;var QF="root";se.ROOT=QF;var JF="pseudo";se.PSEUDO=JF;var ZF="nesting";se.NESTING=ZF;var XF="id";se.ID=XF;var KF="comment";se.COMMENT=KF;var YF="combinator";se.COMBINATOR=YF;var e6="class";se.CLASS=e6;var t6="attribute";se.ATTRIBUTE=t6;var r6="universal";se.UNIVERSAL=r6,function(t,e){e.__esModule=!0,e.default=void 0;var r=o(kt.exports),n=u(se);function i(d){if(typeof WeakMap!="function")return null;var m=new WeakMap,p=new WeakMap;return(i=function(D){return D?p:m})(d)}function u(d,m){if(!m&&d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var p=i(m);if(p&&p.has(d))return p.get(d);var v={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in d)if(E!=="default"&&Object.prototype.hasOwnProperty.call(d,E)){var w=D?Object.getOwnPropertyDescriptor(d,E):null;w&&(w.get||w.set)?Object.defineProperty(v,E,w):v[E]=d[E]}return v.default=d,p&&p.set(d,v),v}function o(d){return d&&d.__esModule?d:{default:d}}function a(d,m){var p=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(p)return(p=p.call(d)).next.bind(p);if(Array.isArray(d)||(p=s(d))||m&&d&&typeof d.length=="number"){p&&(d=p);var v=0;return function(){return v>=d.length?{done:!0}:{done:!1,value:d[v++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
55
55
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(d,m){if(!!d){if(typeof d=="string")return l(d,m);var p=Object.prototype.toString.call(d).slice(8,-1);if(p==="Object"&&d.constructor&&(p=d.constructor.name),p==="Map"||p==="Set")return Array.from(d);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return l(d,m)}}function l(d,m){(m==null||m>d.length)&&(m=d.length);for(var p=0,v=new Array(m);p<m;p++)v[p]=d[p];return v}function c(d,m){for(var p=0;p<m.length;p++){var v=m[p];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(d,v.key,v)}}function f(d,m,p){return m&&c(d.prototype,m),p&&c(d,p),Object.defineProperty(d,"prototype",{writable:!1}),d}function h(d,m){d.prototype=Object.create(m.prototype),d.prototype.constructor=d,g(d,m)}function g(d,m){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,D){return v.__proto__=D,v},g(d,m)}var y=function(d){h(m,d);function m(v){var D;return D=d.call(this,v)||this,D.nodes||(D.nodes=[]),D}var p=m.prototype;return p.append=function(D){return D.parent=this,this.nodes.push(D),this},p.prepend=function(D){D.parent=this,this.nodes.unshift(D);for(var E in this.indexes)this.indexes[E]++;return this},p.at=function(D){return this.nodes[D]},p.index=function(D){return typeof D=="number"?D:this.nodes.indexOf(D)},p.removeChild=function(D){D=this.index(D),this.at(D).parent=void 0,this.nodes.splice(D,1);var E;for(var w in this.indexes)E=this.indexes[w],E>=D&&(this.indexes[w]=E-1);return this},p.removeAll=function(){for(var D=a(this.nodes),E;!(E=D()).done;){var w=E.value;w.parent=void 0}return this.nodes=[],this},p.empty=function(){return this.removeAll()},p.insertAfter=function(D,E){var w;E.parent=this;for(var _=this.index(D),O=[],C=2;C<arguments.length;C++)O.push(arguments[C]);(w=this.nodes).splice.apply(w,[_+1,0,E].concat(O)),E.parent=this;var b;for(var S in this.indexes)b=this.indexes[S],_<b&&(this.indexes[S]=b+arguments.length-1);return this},p.insertBefore=function(D,E){var w;E.parent=this;for(var _=this.index(D),O=[],C=2;C<arguments.length;C++)O.push(arguments[C]);(w=this.nodes).splice.apply(w,[_,0,E].concat(O)),E.parent=this;var b;for(var S in this.indexes)b=this.indexes[S],b>=_&&(this.indexes[S]=b+arguments.length-1);return this},p._findChildAtPosition=function(D,E){var w=void 0;return this.each(function(_){if(_.atPosition){var O=_.atPosition(D,E);if(O)return w=O,!1}else if(_.isAtPosition(D,E))return w=_,!1}),w},p.atPosition=function(D,E){if(this.isAtPosition(D,E))return this._findChildAtPosition(D,E)||this},p._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},p.each=function(D){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var E=this.lastEach;if(this.indexes[E]=0,!!this.length){for(var w,_;this.indexes[E]<this.length&&(w=this.indexes[E],_=D(this.at(w),w),_!==!1);)this.indexes[E]+=1;if(delete this.indexes[E],_===!1)return!1}},p.walk=function(D){return this.each(function(E,w){var _=D(E,w);if(_!==!1&&E.length&&(_=E.walk(D)),_===!1)return!1})},p.walkAttributes=function(D){var E=this;return this.walk(function(w){if(w.type===n.ATTRIBUTE)return D.call(E,w)})},p.walkClasses=function(D){var E=this;return this.walk(function(w){if(w.type===n.CLASS)return D.call(E,w)})},p.walkCombinators=function(D){var E=this;return this.walk(function(w){if(w.type===n.COMBINATOR)return D.call(E,w)})},p.walkComments=function(D){var E=this;return this.walk(function(w){if(w.type===n.COMMENT)return D.call(E,w)})},p.walkIds=function(D){var E=this;return this.walk(function(w){if(w.type===n.ID)return D.call(E,w)})},p.walkNesting=function(D){var E=this;return this.walk(function(w){if(w.type===n.NESTING)return D.call(E,w)})},p.walkPseudos=function(D){var E=this;return this.walk(function(w){if(w.type===n.PSEUDO)return D.call(E,w)})},p.walkTags=function(D){var E=this;return this.walk(function(w){if(w.type===n.TAG)return D.call(E,w)})},p.walkUniversals=function(D){var E=this;return this.walk(function(w){if(w.type===n.UNIVERSAL)return D.call(E,w)})},p.split=function(D){var E=this,w=[];return this.reduce(function(_,O,C){var b=D.call(E,O);return w.push(O),b?(_.push(w),w=[]):C===E.length-1&&_.push(w),_},[])},p.map=function(D){return this.nodes.map(D)},p.reduce=function(D,E){return this.nodes.reduce(D,E)},p.every=function(D){return this.nodes.every(D)},p.some=function(D){return this.nodes.some(D)},p.filter=function(D){return this.nodes.filter(D)},p.sort=function(D){return this.nodes.sort(D)},p.toString=function(){return this.map(String).join("")},f(m,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),m}(r.default);e.default=y,t.exports=e.default}(yn,yn.exports),function(t,e){e.__esModule=!0,e.default=void 0;var r=i(yn.exports),n=se;function i(c){return c&&c.__esModule?c:{default:c}}function u(c,f){for(var h=0;h<f.length;h++){var g=f[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(c,g.key,g)}}function o(c,f,h){return f&&u(c.prototype,f),h&&u(c,h),Object.defineProperty(c,"prototype",{writable:!1}),c}function a(c,f){c.prototype=Object.create(f.prototype),c.prototype.constructor=c,s(c,f)}function s(c,f){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,y){return g.__proto__=y,g},s(c,f)}var l=function(c){a(f,c);function f(g){var y;return y=c.call(this,g)||this,y.type=n.ROOT,y}var h=f.prototype;return h.toString=function(){var y=this.reduce(function(d,m){return d.push(String(m)),d},[]).join(",");return this.trailingComma?y+",":y},h.error=function(y,d){return this._error?this._error(y,d):new Error(y)},o(f,[{key:"errorGenerator",set:function(y){this._error=y}}]),f}(r.default);e.default=l,t.exports=e.default}(Mi,Mi.exports);var Ii={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(yn.exports),n=se;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,l)}var a=function(s){u(l,s);function l(c){var f;return f=s.call(this,c)||this,f.type=n.SELECTOR,f}return l}(r.default);e.default=a,t.exports=e.default})(Ii,Ii.exports);var Pi={exports:{}};/*! https://mths.be/cssesc v3.0.0 by @mathias */var n6={},i6=n6.hasOwnProperty,u6=function(e,r){if(!e)return r;var n={};for(var i in r)n[i]=i6.call(e,i)?e[i]:r[i];return n},o6=/[ -,\.\/:-@\[-\^`\{-~]/,s6=/[ -,\.\/:-@\[\]\^`\{-~]/,a6=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Yo=function t(e,r){r=u6(r,t.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",i=r.isIdentifier,u=e.charAt(0),o="",a=0,s=e.length;a<s;){var l=e.charAt(a++),c=l.charCodeAt(),f=void 0;if(c<32||c>126){if(c>=55296&&c<=56319&&a<s){var h=e.charCodeAt(a++);(h&64512)==56320?c=((c&1023)<<10)+(h&1023)+65536:a--}f="\\"+c.toString(16).toUpperCase()+" "}else r.escapeEverything?o6.test(l)?f="\\"+l:f="\\"+c.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?f="\\"+c.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&n==l||l=="'"&&n==l)||i&&s6.test(l)?f="\\"+l:f=l;o+=f}return i&&(/^-[-\d]/.test(o)?o="\\-"+o.slice(1):/\d/.test(u)&&(o="\\3"+u+" "+o.slice(1))),o=o.replace(a6,function(g,y,d){return y&&y.length%2?g:(y||"")+d}),!i&&r.wrap?n+o+n:o};Yo.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},Yo.version="3.0.0";var es=Yo;(function(t,e){e.__esModule=!0,e.default=void 0;var r=o(es),n=ft,i=o(kt.exports),u=se;function o(h){return h&&h.__esModule?h:{default:h}}function a(h,g){for(var y=0;y<g.length;y++){var d=g[y];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(h,d.key,d)}}function s(h,g,y){return g&&a(h.prototype,g),y&&a(h,y),Object.defineProperty(h,"prototype",{writable:!1}),h}function l(h,g){h.prototype=Object.create(g.prototype),h.prototype.constructor=h,c(h,g)}function c(h,g){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,m){return d.__proto__=m,d},c(h,g)}var f=function(h){l(g,h);function g(d){var m;return m=h.call(this,d)||this,m.type=u.CLASS,m._constructed=!0,m}var y=g.prototype;return y.valueToString=function(){return"."+h.prototype.valueToString.call(this)},s(g,[{key:"value",get:function(){return this._value},set:function(m){if(this._constructed){var p=(0,r.default)(m,{isIdentifier:!0});p!==m?((0,n.ensureObject)(this,"raws"),this.raws.value=p):this.raws&&delete this.raws.value}this._value=m}}]),g}(i.default);e.default=f,t.exports=e.default})(Pi,Pi.exports);var Ni={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(kt.exports),n=se;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,l)}var a=function(s){u(l,s);function l(c){var f;return f=s.call(this,c)||this,f.type=n.COMMENT,f}return l}(r.default);e.default=a,t.exports=e.default})(Ni,Ni.exports);var $i={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(kt.exports),n=se;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,l)}var a=function(s){u(l,s);function l(f){var h;return h=s.call(this,f)||this,h.type=n.ID,h}var c=l.prototype;return c.valueToString=function(){return"#"+s.prototype.valueToString.call(this)},l}(r.default);e.default=a,t.exports=e.default})($i,$i.exports);var Ri={exports:{}},Dn={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=u(es),n=ft,i=u(kt.exports);function u(f){return f&&f.__esModule?f:{default:f}}function o(f,h){for(var g=0;g<h.length;g++){var y=h[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(f,y.key,y)}}function a(f,h,g){return h&&o(f.prototype,h),g&&o(f,g),Object.defineProperty(f,"prototype",{writable:!1}),f}function s(f,h){f.prototype=Object.create(h.prototype),f.prototype.constructor=f,l(f,h)}function l(f,h){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,d){return y.__proto__=d,y},l(f,h)}var c=function(f){s(h,f);function h(){return f.apply(this,arguments)||this}var g=h.prototype;return g.qualifiedName=function(d){return this.namespace?this.namespaceString+"|"+d:d},g.valueToString=function(){return this.qualifiedName(f.prototype.valueToString.call(this))},a(h,[{key:"namespace",get:function(){return this._namespace},set:function(d){if(d===!0||d==="*"||d==="&"){this._namespace=d,this.raws&&delete this.raws.namespace;return}var m=(0,r.default)(d,{isIdentifier:!0});this._namespace=d,m!==d?((0,n.ensureObject)(this,"raws"),this.raws.namespace=m):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(d){this.namespace=d}},{key:"namespaceString",get:function(){if(this.namespace){var d=this.stringifyProperty("namespace");return d===!0?"":d}else return""}}]),h}(i.default);e.default=c,t.exports=e.default})(Dn,Dn.exports),function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Dn.exports),n=se;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,l)}var a=function(s){u(l,s);function l(c){var f;return f=s.call(this,c)||this,f.type=n.TAG,f}return l}(r.default);e.default=a,t.exports=e.default}(Ri,Ri.exports);var Li={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(kt.exports),n=se;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,l)}var a=function(s){u(l,s);function l(c){var f;return f=s.call(this,c)||this,f.type=n.STRING,f}return l}(r.default);e.default=a,t.exports=e.default})(Li,Li.exports);var ki={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(yn.exports),n=se;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,l)}var a=function(s){u(l,s);function l(f){var h;return h=s.call(this,f)||this,h.type=n.PSEUDO,h}var c=l.prototype;return c.toString=function(){var h=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),h,this.rawSpaceAfter].join("")},l}(r.default);e.default=a,t.exports=e.default})(ki,ki.exports);var ts={},l6=yf.default.deprecate;(function(t){t.__esModule=!0,t.default=void 0,t.unescapeValue=m;var e=o(es),r=o(xi.exports),n=o(Dn.exports),i=se,u;function o(w){return w&&w.__esModule?w:{default:w}}function a(w,_){for(var O=0;O<_.length;O++){var C=_[O];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(w,C.key,C)}}function s(w,_,O){return _&&a(w.prototype,_),O&&a(w,O),Object.defineProperty(w,"prototype",{writable:!1}),w}function l(w,_){w.prototype=Object.create(_.prototype),w.prototype.constructor=w,c(w,_)}function c(w,_){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,b){return C.__proto__=b,C},c(w,_)}var f=l6,h=/^('|")([^]*)\1$/,g=f(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),y=f(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),d=f(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function m(w){var _=!1,O=null,C=w,b=C.match(h);return b&&(O=b[1],C=b[2]),C=(0,r.default)(C),C!==w&&(_=!0),{deprecatedUsage:_,unescaped:C,quoteMark:O}}function p(w){if(w.quoteMark!==void 0||w.value===void 0)return w;d();var _=m(w.value),O=_.quoteMark,C=_.unescaped;return w.raws||(w.raws={}),w.raws.value===void 0&&(w.raws.value=w.value),w.value=C,w.quoteMark=O,w}var v=function(w){l(_,w);function _(C){var b;return C===void 0&&(C={}),b=w.call(this,p(C))||this,b.type=i.ATTRIBUTE,b.raws=b.raws||{},Object.defineProperty(b.raws,"unquoted",{get:f(function(){return b.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:f(function(){return b.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),b._constructed=!0,b}var O=_.prototype;return O.getQuotedValue=function(b){b===void 0&&(b={});var S=this._determineQuoteMark(b),F=D[S],R=(0,e.default)(this._value,F);return R},O._determineQuoteMark=function(b){return b.smart?this.smartQuoteMark(b):this.preferredQuoteMark(b)},O.setValue=function(b,S){S===void 0&&(S={}),this._value=b,this._quoteMark=this._determineQuoteMark(S),this._syncRawValue()},O.smartQuoteMark=function(b){var S=this.value,F=S.replace(/[^']/g,"").length,R=S.replace(/[^"]/g,"").length;if(F+R===0){var X=(0,e.default)(S,{isIdentifier:!0});if(X===S)return _.NO_QUOTE;var Y=this.preferredQuoteMark(b);if(Y===_.NO_QUOTE){var Z=this.quoteMark||b.quoteMark||_.DOUBLE_QUOTE,j=D[Z],Ie=(0,e.default)(S,j);if(Ie.length<X.length)return Z}return Y}else return R===F?this.preferredQuoteMark(b):R<F?_.DOUBLE_QUOTE:_.SINGLE_QUOTE},O.preferredQuoteMark=function(b){var S=b.preferCurrentQuoteMark?this.quoteMark:b.quoteMark;return S===void 0&&(S=b.preferCurrentQuoteMark?b.quoteMark:this.quoteMark),S===void 0&&(S=_.DOUBLE_QUOTE),S},O._syncRawValue=function(){var b=(0,e.default)(this._value,D[this.quoteMark]);b===this._value?this.raws&&delete this.raws.value:this.raws.value=b},O._handleEscapes=function(b,S){if(this._constructed){var F=(0,e.default)(S,{isIdentifier:!0});F!==S?this.raws[b]=F:delete this.raws[b]}},O._spacesFor=function(b){var S={before:"",after:""},F=this.spaces[b]||{},R=this.raws.spaces&&this.raws.spaces[b]||{};return Object.assign(S,F,R)},O._stringFor=function(b,S,F){S===void 0&&(S=b),F===void 0&&(F=E);var R=this._spacesFor(S);return F(this.stringifyProperty(b),R)},O.offsetOf=function(b){var S=1,F=this._spacesFor("attribute");if(S+=F.before.length,b==="namespace"||b==="ns")return this.namespace?S:-1;if(b==="attributeNS"||(S+=this.namespaceString.length,this.namespace&&(S+=1),b==="attribute"))return S;S+=this.stringifyProperty("attribute").length,S+=F.after.length;var R=this._spacesFor("operator");S+=R.before.length;var X=this.stringifyProperty("operator");if(b==="operator")return X?S:-1;S+=X.length,S+=R.after.length;var Y=this._spacesFor("value");S+=Y.before.length;var Z=this.stringifyProperty("value");if(b==="value")return Z?S:-1;S+=Z.length,S+=Y.after.length;var j=this._spacesFor("insensitive");return S+=j.before.length,b==="insensitive"&&this.insensitive?S:-1},O.toString=function(){var b=this,S=[this.rawSpaceBefore,"["];return S.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(S.push(this._stringFor("operator")),S.push(this._stringFor("value")),S.push(this._stringFor("insensitiveFlag","insensitive",function(F,R){return F.length>0&&!b.quoted&&R.before.length===0&&!(b.spaces.value&&b.spaces.value.after)&&(R.before=" "),E(F,R)}))),S.push("]"),S.push(this.rawSpaceAfter),S.join("")},s(_,[{key:"quoted",get:function(){var b=this.quoteMark;return b==="'"||b==='"'},set:function(b){y()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(b){if(!this._constructed){this._quoteMark=b;return}this._quoteMark!==b&&(this._quoteMark=b,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(b){if(this._constructed){var S=m(b),F=S.deprecatedUsage,R=S.unescaped,X=S.quoteMark;if(F&&g(),R===this._value&&X===this._quoteMark)return;this._value=R,this._quoteMark=X,this._syncRawValue()}else this._value=b}},{key:"insensitive",get:function(){return this._insensitive},set:function(b){b||(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")&&(this.raws.insensitiveFlag=void 0)),this._insensitive=b}},{key:"attribute",get:function(){return this._attribute},set:function(b){this._handleEscapes("attribute",b),this._attribute=b}}]),_}(n.default);t.default=v,v.NO_QUOTE=null,v.SINGLE_QUOTE="'",v.DOUBLE_QUOTE='"';var D=(u={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},u[null]={isIdentifier:!0},u);function E(w,_){return""+_.before+w+_.after}})(ts);var qi={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Dn.exports),n=se;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,l)}var a=function(s){u(l,s);function l(c){var f;return f=s.call(this,c)||this,f.type=n.UNIVERSAL,f.value="*",f}return l}(r.default);e.default=a,t.exports=e.default})(qi,qi.exports);var ji={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(kt.exports),n=se;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,l)}var a=function(s){u(l,s);function l(c){var f;return f=s.call(this,c)||this,f.type=n.COMBINATOR,f}return l}(r.default);e.default=a,t.exports=e.default})(ji,ji.exports);var Ui={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(kt.exports),n=se;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,o(s,l)}function o(s,l){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,l)}var a=function(s){u(l,s);function l(c){var f;return f=s.call(this,c)||this,f.type=n.NESTING,f.value="&",f}return l}(r.default);e.default=a,t.exports=e.default})(Ui,Ui.exports);var rs={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){return n.sort(function(i,u){return i-u})}t.exports=e.default})(rs,rs.exports);var ef={},H={};H.__esModule=!0,H.word=H.tilde=H.tab=H.str=H.space=H.slash=H.singleQuote=H.semicolon=H.plus=H.pipe=H.openSquare=H.openParenthesis=H.newline=H.greaterThan=H.feed=H.equals=H.doubleQuote=H.dollar=H.cr=H.comment=H.comma=H.combinator=H.colon=H.closeSquare=H.closeParenthesis=H.caret=H.bang=H.backslash=H.at=H.asterisk=H.ampersand=void 0;var c6=38;H.ampersand=c6;var f6=42;H.asterisk=f6;var h6=64;H.at=h6;var d6=44;H.comma=d6;var p6=58;H.colon=p6;var g6=59;H.semicolon=g6;var v6=40;H.openParenthesis=v6;var m6=41;H.closeParenthesis=m6;var y6=91;H.openSquare=y6;var D6=93;H.closeSquare=D6;var E6=36;H.dollar=E6;var w6=126;H.tilde=w6;var C6=94;H.caret=C6;var A6=43;H.plus=A6;var b6=61;H.equals=b6;var F6=124;H.pipe=F6;var _6=62;H.greaterThan=_6;var B6=32;H.space=B6;var tf=39;H.singleQuote=tf;var S6=34;H.doubleQuote=S6;var O6=47;H.slash=O6;var M6=33;H.bang=M6;var x6=92;H.backslash=x6;var T6=13;H.cr=T6;var I6=12;H.feed=I6;var P6=10;H.newline=P6;var N6=9;H.tab=N6;var $6=tf;H.str=$6;var R6=-1;H.comment=R6;var L6=-2;H.word=L6;var k6=-3;H.combinator=k6,function(t){t.__esModule=!0,t.FIELDS=void 0,t.default=y;var e=u(H),r,n;function i(d){if(typeof WeakMap!="function")return null;var m=new WeakMap,p=new WeakMap;return(i=function(D){return D?p:m})(d)}function u(d,m){if(!m&&d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var p=i(m);if(p&&p.has(d))return p.get(d);var v={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in d)if(E!=="default"&&Object.prototype.hasOwnProperty.call(d,E)){var w=D?Object.getOwnPropertyDescriptor(d,E):null;w&&(w.get||w.set)?Object.defineProperty(v,E,w):v[E]=d[E]}return v.default=d,p&&p.set(d,v),v}for(var o=(r={},r[e.tab]=!0,r[e.newline]=!0,r[e.cr]=!0,r[e.feed]=!0,r),a=(n={},n[e.space]=!0,n[e.tab]=!0,n[e.newline]=!0,n[e.cr]=!0,n[e.feed]=!0,n[e.ampersand]=!0,n[e.asterisk]=!0,n[e.bang]=!0,n[e.comma]=!0,n[e.colon]=!0,n[e.semicolon]=!0,n[e.openParenthesis]=!0,n[e.closeParenthesis]=!0,n[e.openSquare]=!0,n[e.closeSquare]=!0,n[e.singleQuote]=!0,n[e.doubleQuote]=!0,n[e.plus]=!0,n[e.pipe]=!0,n[e.tilde]=!0,n[e.greaterThan]=!0,n[e.equals]=!0,n[e.dollar]=!0,n[e.caret]=!0,n[e.slash]=!0,n),s={},l="0123456789abcdefABCDEF",c=0;c<l.length;c++)s[l.charCodeAt(c)]=!0;function f(d,m){var p=m,v;do{if(v=d.charCodeAt(p),a[v])return p-1;v===e.backslash?p=h(d,p)+1:p++}while(p<d.length);return p-1}function h(d,m){var p=m,v=d.charCodeAt(p+1);if(!o[v])if(s[v]){var D=0;do p++,D++,v=d.charCodeAt(p+1);while(s[v]&&D<6);D<6&&v===e.space&&p++}else p++;return p}var g={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};t.FIELDS=g;function y(d){var m=[],p=d.css.valueOf(),v=p,D=v.length,E=-1,w=1,_=0,O=0,C,b,S,F,R,X,Y,Z,j,Ie,wt,Dr,Ct;function G(J,z){if(d.safe)p+=z,j=p.length-1;else throw d.error("Unclosed "+J,w,_-E,_)}for(;_<D;){switch(C=p.charCodeAt(_),C===e.newline&&(E=_,w+=1),C){case e.space:case e.tab:case e.newline:case e.cr:case e.feed:j=_;do j+=1,C=p.charCodeAt(j),C===e.newline&&(E=j,w+=1);while(C===e.space||C===e.newline||C===e.tab||C===e.cr||C===e.feed);Ct=e.space,F=w,S=j-E-1,O=j;break;case e.plus:case e.greaterThan:case e.tilde:case e.pipe:j=_;do j+=1,C=p.charCodeAt(j);while(C===e.plus||C===e.greaterThan||C===e.tilde||C===e.pipe);Ct=e.combinator,F=w,S=_-E,O=j;break;case e.asterisk:case e.ampersand:case e.bang:case e.comma:case e.equals:case e.dollar:case e.caret:case e.openSquare:case e.closeSquare:case e.colon:case e.semicolon:case e.openParenthesis:case e.closeParenthesis:j=_,Ct=C,F=w,S=_-E,O=j+1;break;case e.singleQuote:case e.doubleQuote:Dr=C===e.singleQuote?"'":'"',j=_;do for(R=!1,j=p.indexOf(Dr,j+1),j===-1&&G("quote",Dr),X=j;p.charCodeAt(X-1)===e.backslash;)X-=1,R=!R;while(R);Ct=e.str,F=w,S=_-E,O=j+1;break;default:C===e.slash&&p.charCodeAt(_+1)===e.asterisk?(j=p.indexOf("*/",_+2)+1,j===0&&G("comment","*/"),b=p.slice(_,j+1),Z=b.split(`
56
- `),Y=Z.length-1,Y>0?(Ie=w+Y,wt=j-Z[Y].length):(Ie=w,wt=E),Ct=e.comment,w=Ie,F=Ie,S=j-wt):C===e.slash?(j=_,Ct=C,F=w,S=_-E,O=j+1):(j=f(p,_),Ct=e.word,F=w,S=j-E),O=j+1;break}m.push([Ct,w,_-E,F,S,_,O]),wt&&(E=wt,wt=null),_=O}return m}}(ef),function(t,e){e.__esModule=!0,e.default=void 0;var r=O(Mi.exports),n=O(Ii.exports),i=O(Pi.exports),u=O(Ni.exports),o=O($i.exports),a=O(Ri.exports),s=O(Li.exports),l=O(ki.exports),c=_(ts),f=O(qi.exports),h=O(ji.exports),g=O(Ui.exports),y=O(rs.exports),d=_(ef),m=_(H),p=_(se),v=ft,D,E;function w(G){if(typeof WeakMap!="function")return null;var J=new WeakMap,z=new WeakMap;return(w=function(U){return U?z:J})(G)}function _(G,J){if(!J&&G&&G.__esModule)return G;if(G===null||typeof G!="object"&&typeof G!="function")return{default:G};var z=w(J);if(z&&z.has(G))return z.get(G);var x={},U=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var te in G)if(te!=="default"&&Object.prototype.hasOwnProperty.call(G,te)){var I=U?Object.getOwnPropertyDescriptor(G,te):null;I&&(I.get||I.set)?Object.defineProperty(x,te,I):x[te]=G[te]}return x.default=G,z&&z.set(G,x),x}function O(G){return G&&G.__esModule?G:{default:G}}function C(G,J){for(var z=0;z<J.length;z++){var x=J[z];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(G,x.key,x)}}function b(G,J,z){return J&&C(G.prototype,J),z&&C(G,z),Object.defineProperty(G,"prototype",{writable:!1}),G}var S=(D={},D[m.space]=!0,D[m.cr]=!0,D[m.feed]=!0,D[m.newline]=!0,D[m.tab]=!0,D),F=Object.assign({},S,(E={},E[m.comment]=!0,E));function R(G){return{line:G[d.FIELDS.START_LINE],column:G[d.FIELDS.START_COL]}}function X(G){return{line:G[d.FIELDS.END_LINE],column:G[d.FIELDS.END_COL]}}function Y(G,J,z,x){return{start:{line:G,column:J},end:{line:z,column:x}}}function Z(G){return Y(G[d.FIELDS.START_LINE],G[d.FIELDS.START_COL],G[d.FIELDS.END_LINE],G[d.FIELDS.END_COL])}function j(G,J){if(!!G)return Y(G[d.FIELDS.START_LINE],G[d.FIELDS.START_COL],J[d.FIELDS.END_LINE],J[d.FIELDS.END_COL])}function Ie(G,J){var z=G[J];if(typeof z=="string")return z.indexOf("\\")!==-1&&((0,v.ensureObject)(G,"raws"),G[J]=(0,v.unesc)(z),G.raws[J]===void 0&&(G.raws[J]=z)),G}function wt(G,J){for(var z=-1,x=[];(z=G.indexOf(J,z+1))!==-1;)x.push(z);return x}function Dr(){var G=Array.prototype.concat.apply([],arguments);return G.filter(function(J,z){return z===G.indexOf(J)})}var Ct=function(){function G(z,x){x===void 0&&(x={}),this.rule=z,this.options=Object.assign({lossy:!1,safe:!1},x),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,d.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var U=j(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:U}),this.root.errorGenerator=this._errorGenerator();var te=new n.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(te),this.current=te,this.loop()}var J=G.prototype;return J._errorGenerator=function(){var x=this;return function(U,te){return typeof x.rule=="string"?new Error(U):x.rule.error(U,te)}},J.attribute=function(){var x=[],U=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[d.FIELDS.TYPE]!==m.closeSquare;)x.push(this.currToken),this.position++;if(this.currToken[d.FIELDS.TYPE]!==m.closeSquare)return this.expected("closing square bracket",this.currToken[d.FIELDS.START_POS]);var te=x.length,I={source:Y(U[1],U[2],this.currToken[3],this.currToken[4]),sourceIndex:U[d.FIELDS.START_POS]};if(te===1&&!~[m.word].indexOf(x[0][d.FIELDS.TYPE]))return this.expected("attribute",x[0][d.FIELDS.START_POS]);for(var oe=0,fe="",le="",ne=null,De=!1;oe<te;){var Ne=x[oe],ue=this.content(Ne),Be=x[oe+1];switch(Ne[d.FIELDS.TYPE]){case m.space:if(De=!0,this.options.lossy)break;if(ne){(0,v.ensureObject)(I,"spaces",ne);var At=I.spaces[ne].after||"";I.spaces[ne].after=At+ue;var ht=(0,v.getProp)(I,"raws","spaces",ne,"after")||null;ht&&(I.raws.spaces[ne].after=ht+ue)}else fe=fe+ue,le=le+ue;break;case m.asterisk:if(Be[d.FIELDS.TYPE]===m.equals)I.operator=ue,ne="operator";else if((!I.namespace||ne==="namespace"&&!De)&&Be){fe&&((0,v.ensureObject)(I,"spaces","attribute"),I.spaces.attribute.before=fe,fe=""),le&&((0,v.ensureObject)(I,"raws","spaces","attribute"),I.raws.spaces.attribute.before=fe,le=""),I.namespace=(I.namespace||"")+ue;var Qe=(0,v.getProp)(I,"raws","namespace")||null;Qe&&(I.raws.namespace+=ue),ne="namespace"}De=!1;break;case m.dollar:if(ne==="value"){var je=(0,v.getProp)(I,"raws","value");I.value+="$",je&&(I.raws.value=je+"$");break}case m.caret:Be[d.FIELDS.TYPE]===m.equals&&(I.operator=ue,ne="operator"),De=!1;break;case m.combinator:if(ue==="~"&&Be[d.FIELDS.TYPE]===m.equals&&(I.operator=ue,ne="operator"),ue!=="|"){De=!1;break}Be[d.FIELDS.TYPE]===m.equals?(I.operator=ue,ne="operator"):!I.namespace&&!I.attribute&&(I.namespace=!0),De=!1;break;case m.word:if(Be&&this.content(Be)==="|"&&x[oe+2]&&x[oe+2][d.FIELDS.TYPE]!==m.equals&&!I.operator&&!I.namespace)I.namespace=ue,ne="namespace";else if(!I.attribute||ne==="attribute"&&!De){fe&&((0,v.ensureObject)(I,"spaces","attribute"),I.spaces.attribute.before=fe,fe=""),le&&((0,v.ensureObject)(I,"raws","spaces","attribute"),I.raws.spaces.attribute.before=le,le=""),I.attribute=(I.attribute||"")+ue;var dt=(0,v.getProp)(I,"raws","attribute")||null;dt&&(I.raws.attribute+=ue),ne="attribute"}else if(!I.value&&I.value!==""||ne==="value"&&!(De||I.quoteMark)){var pt=(0,v.unesc)(ue),Mt=(0,v.getProp)(I,"raws","value")||"",A=I.value||"";I.value=A+pt,I.quoteMark=null,(pt!==ue||Mt)&&((0,v.ensureObject)(I,"raws"),I.raws.value=(Mt||A)+ue),ne="value"}else{var B=ue==="i"||ue==="I";(I.value||I.value==="")&&(I.quoteMark||De)?(I.insensitive=B,(!B||ue==="I")&&((0,v.ensureObject)(I,"raws"),I.raws.insensitiveFlag=ue),ne="insensitive",fe&&((0,v.ensureObject)(I,"spaces","insensitive"),I.spaces.insensitive.before=fe,fe=""),le&&((0,v.ensureObject)(I,"raws","spaces","insensitive"),I.raws.spaces.insensitive.before=le,le="")):(I.value||I.value==="")&&(ne="value",I.value+=ue,I.raws.value&&(I.raws.value+=ue))}De=!1;break;case m.str:if(!I.attribute||!I.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:Ne[d.FIELDS.START_POS]});var M=(0,c.unescapeValue)(ue),P=M.unescaped,L=M.quoteMark;I.value=P,I.quoteMark=L,ne="value",(0,v.ensureObject)(I,"raws"),I.raws.value=ue,De=!1;break;case m.equals:if(!I.attribute)return this.expected("attribute",Ne[d.FIELDS.START_POS],ue);if(I.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:Ne[d.FIELDS.START_POS]});I.operator=I.operator?I.operator+ue:ue,ne="operator",De=!1;break;case m.comment:if(ne)if(De||Be&&Be[d.FIELDS.TYPE]===m.space||ne==="insensitive"){var N=(0,v.getProp)(I,"spaces",ne,"after")||"",V=(0,v.getProp)(I,"raws","spaces",ne,"after")||N;(0,v.ensureObject)(I,"raws","spaces",ne),I.raws.spaces[ne].after=V+ue}else{var q=I[ne]||"",W=(0,v.getProp)(I,"raws",ne)||q;(0,v.ensureObject)(I,"raws"),I.raws[ne]=W+ue}else le=le+ue;break;default:return this.error('Unexpected "'+ue+'" found.',{index:Ne[d.FIELDS.START_POS]})}oe++}Ie(I,"attribute"),Ie(I,"namespace"),this.newNode(new c.default(I)),this.position++},J.parseWhitespaceEquivalentTokens=function(x){x<0&&(x=this.tokens.length);var U=this.position,te=[],I="",oe=void 0;do if(S[this.currToken[d.FIELDS.TYPE]])this.options.lossy||(I+=this.content());else if(this.currToken[d.FIELDS.TYPE]===m.comment){var fe={};I&&(fe.before=I,I=""),oe=new u.default({value:this.content(),source:Z(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS],spaces:fe}),te.push(oe)}while(++this.position<x);if(I){if(oe)oe.spaces.after=I;else if(!this.options.lossy){var le=this.tokens[U],ne=this.tokens[this.position-1];te.push(new s.default({value:"",source:Y(le[d.FIELDS.START_LINE],le[d.FIELDS.START_COL],ne[d.FIELDS.END_LINE],ne[d.FIELDS.END_COL]),sourceIndex:le[d.FIELDS.START_POS],spaces:{before:I,after:""}}))}}return te},J.convertWhitespaceNodesToSpace=function(x,U){var te=this;U===void 0&&(U=!1);var I="",oe="";x.forEach(function(le){var ne=te.lossySpace(le.spaces.before,U),De=te.lossySpace(le.rawSpaceBefore,U);I+=ne+te.lossySpace(le.spaces.after,U&&ne.length===0),oe+=ne+le.value+te.lossySpace(le.rawSpaceAfter,U&&De.length===0)}),oe===I&&(oe=void 0);var fe={space:I,rawSpace:oe};return fe},J.isNamedCombinator=function(x){return x===void 0&&(x=this.position),this.tokens[x+0]&&this.tokens[x+0][d.FIELDS.TYPE]===m.slash&&this.tokens[x+1]&&this.tokens[x+1][d.FIELDS.TYPE]===m.word&&this.tokens[x+2]&&this.tokens[x+2][d.FIELDS.TYPE]===m.slash},J.namedCombinator=function(){if(this.isNamedCombinator()){var x=this.content(this.tokens[this.position+1]),U=(0,v.unesc)(x).toLowerCase(),te={};U!==x&&(te.value="/"+x+"/");var I=new h.default({value:"/"+U+"/",source:Y(this.currToken[d.FIELDS.START_LINE],this.currToken[d.FIELDS.START_COL],this.tokens[this.position+2][d.FIELDS.END_LINE],this.tokens[this.position+2][d.FIELDS.END_COL]),sourceIndex:this.currToken[d.FIELDS.START_POS],raws:te});return this.position=this.position+3,I}else this.unexpected()},J.combinator=function(){var x=this;if(this.content()==="|")return this.namespace();var U=this.locateNextMeaningfulToken(this.position);if(U<0||this.tokens[U][d.FIELDS.TYPE]===m.comma||this.tokens[U][d.FIELDS.TYPE]===m.closeParenthesis){var te=this.parseWhitespaceEquivalentTokens(U);if(te.length>0){var I=this.current.last;if(I){var oe=this.convertWhitespaceNodesToSpace(te),fe=oe.space,le=oe.rawSpace;le!==void 0&&(I.rawSpaceAfter+=le),I.spaces.after+=fe}else te.forEach(function(Mt){return x.newNode(Mt)})}return}var ne=this.currToken,De=void 0;U>this.position&&(De=this.parseWhitespaceEquivalentTokens(U));var Ne;if(this.isNamedCombinator()?Ne=this.namedCombinator():this.currToken[d.FIELDS.TYPE]===m.combinator?(Ne=new h.default({value:this.content(),source:Z(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS]}),this.position++):S[this.currToken[d.FIELDS.TYPE]]||De||this.unexpected(),Ne){if(De){var ue=this.convertWhitespaceNodesToSpace(De),Be=ue.space,At=ue.rawSpace;Ne.spaces.before=Be,Ne.rawSpaceBefore=At}}else{var ht=this.convertWhitespaceNodesToSpace(De,!0),Qe=ht.space,je=ht.rawSpace;je||(je=Qe);var dt={},pt={spaces:{}};Qe.endsWith(" ")&&je.endsWith(" ")?(dt.before=Qe.slice(0,Qe.length-1),pt.spaces.before=je.slice(0,je.length-1)):Qe.startsWith(" ")&&je.startsWith(" ")?(dt.after=Qe.slice(1),pt.spaces.after=je.slice(1)):pt.value=je,Ne=new h.default({value:" ",source:j(ne,this.tokens[this.position-1]),sourceIndex:ne[d.FIELDS.START_POS],spaces:dt,raws:pt})}return this.currToken&&this.currToken[d.FIELDS.TYPE]===m.space&&(Ne.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(Ne)},J.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var x=new n.default({source:{start:R(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][d.FIELDS.START_POS]});this.current.parent.append(x),this.current=x,this.position++},J.comment=function(){var x=this.currToken;this.newNode(new u.default({value:this.content(),source:Z(x),sourceIndex:x[d.FIELDS.START_POS]})),this.position++},J.error=function(x,U){throw this.root.error(x,U)},J.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[d.FIELDS.START_POS]})},J.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[d.FIELDS.START_POS])},J.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[d.FIELDS.START_POS])},J.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[d.FIELDS.START_POS])},J.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[d.FIELDS.START_POS])},J.namespace=function(){var x=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[d.FIELDS.TYPE]===m.word)return this.position++,this.word(x);if(this.nextToken[d.FIELDS.TYPE]===m.asterisk)return this.position++,this.universal(x);this.unexpectedPipe()},J.nesting=function(){if(this.nextToken){var x=this.content(this.nextToken);if(x==="|"){this.position++;return}}var U=this.currToken;this.newNode(new g.default({value:this.content(),source:Z(U),sourceIndex:U[d.FIELDS.START_POS]})),this.position++},J.parentheses=function(){var x=this.current.last,U=1;if(this.position++,x&&x.type===p.PSEUDO){var te=new n.default({source:{start:R(this.tokens[this.position])},sourceIndex:this.tokens[this.position][d.FIELDS.START_POS]}),I=this.current;for(x.append(te),this.current=te;this.position<this.tokens.length&&U;)this.currToken[d.FIELDS.TYPE]===m.openParenthesis&&U++,this.currToken[d.FIELDS.TYPE]===m.closeParenthesis&&U--,U?this.parse():(this.current.source.end=X(this.currToken),this.current.parent.source.end=X(this.currToken),this.position++);this.current=I}else{for(var oe=this.currToken,fe="(",le;this.position<this.tokens.length&&U;)this.currToken[d.FIELDS.TYPE]===m.openParenthesis&&U++,this.currToken[d.FIELDS.TYPE]===m.closeParenthesis&&U--,le=this.currToken,fe+=this.parseParenthesisToken(this.currToken),this.position++;x?x.appendToPropertyAndEscape("value",fe,fe):this.newNode(new s.default({value:fe,source:Y(oe[d.FIELDS.START_LINE],oe[d.FIELDS.START_COL],le[d.FIELDS.END_LINE],le[d.FIELDS.END_COL]),sourceIndex:oe[d.FIELDS.START_POS]}))}if(U)return this.expected("closing parenthesis",this.currToken[d.FIELDS.START_POS])},J.pseudo=function(){for(var x=this,U="",te=this.currToken;this.currToken&&this.currToken[d.FIELDS.TYPE]===m.colon;)U+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[d.FIELDS.TYPE]===m.word)this.splitWord(!1,function(I,oe){U+=I,x.newNode(new l.default({value:U,source:j(te,x.currToken),sourceIndex:te[d.FIELDS.START_POS]})),oe>1&&x.nextToken&&x.nextToken[d.FIELDS.TYPE]===m.openParenthesis&&x.error("Misplaced parenthesis.",{index:x.nextToken[d.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[d.FIELDS.START_POS])},J.space=function(){var x=this.content();this.position===0||this.prevToken[d.FIELDS.TYPE]===m.comma||this.prevToken[d.FIELDS.TYPE]===m.openParenthesis||this.current.nodes.every(function(U){return U.type==="comment"})?(this.spaces=this.optionalSpace(x),this.position++):this.position===this.tokens.length-1||this.nextToken[d.FIELDS.TYPE]===m.comma||this.nextToken[d.FIELDS.TYPE]===m.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(x),this.position++):this.combinator()},J.string=function(){var x=this.currToken;this.newNode(new s.default({value:this.content(),source:Z(x),sourceIndex:x[d.FIELDS.START_POS]})),this.position++},J.universal=function(x){var U=this.nextToken;if(U&&this.content(U)==="|")return this.position++,this.namespace();var te=this.currToken;this.newNode(new f.default({value:this.content(),source:Z(te),sourceIndex:te[d.FIELDS.START_POS]}),x),this.position++},J.splitWord=function(x,U){for(var te=this,I=this.nextToken,oe=this.content();I&&~[m.dollar,m.caret,m.equals,m.word].indexOf(I[d.FIELDS.TYPE]);){this.position++;var fe=this.content();if(oe+=fe,fe.lastIndexOf("\\")===fe.length-1){var le=this.nextToken;le&&le[d.FIELDS.TYPE]===m.space&&(oe+=this.requiredSpace(this.content(le)),this.position++)}I=this.nextToken}var ne=wt(oe,".").filter(function(Be){var At=oe[Be-1]==="\\",ht=/^\d+\.\d+%$/.test(oe);return!At&&!ht}),De=wt(oe,"#").filter(function(Be){return oe[Be-1]!=="\\"}),Ne=wt(oe,"#{");Ne.length&&(De=De.filter(function(Be){return!~Ne.indexOf(Be)}));var ue=(0,y.default)(Dr([0].concat(ne,De)));ue.forEach(function(Be,At){var ht=ue[At+1]||oe.length,Qe=oe.slice(Be,ht);if(At===0&&U)return U.call(te,Qe,ue.length);var je,dt=te.currToken,pt=dt[d.FIELDS.START_POS]+ue[At],Mt=Y(dt[1],dt[2]+Be,dt[3],dt[2]+(ht-1));if(~ne.indexOf(Be)){var A={value:Qe.slice(1),source:Mt,sourceIndex:pt};je=new i.default(Ie(A,"value"))}else if(~De.indexOf(Be)){var B={value:Qe.slice(1),source:Mt,sourceIndex:pt};je=new o.default(Ie(B,"value"))}else{var M={value:Qe,source:Mt,sourceIndex:pt};Ie(M,"value"),je=new a.default(M)}te.newNode(je,x),x=null}),this.position++},J.word=function(x){var U=this.nextToken;return U&&this.content(U)==="|"?(this.position++,this.namespace()):this.splitWord(x)},J.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},J.parse=function(x){switch(this.currToken[d.FIELDS.TYPE]){case m.space:this.space();break;case m.comment:this.comment();break;case m.openParenthesis:this.parentheses();break;case m.closeParenthesis:x&&this.missingParenthesis();break;case m.openSquare:this.attribute();break;case m.dollar:case m.caret:case m.equals:case m.word:this.word();break;case m.colon:this.pseudo();break;case m.comma:this.comma();break;case m.asterisk:this.universal();break;case m.ampersand:this.nesting();break;case m.slash:case m.combinator:this.combinator();break;case m.str:this.string();break;case m.closeSquare:this.missingSquareBracket();case m.semicolon:this.missingBackslash();default:this.unexpected()}},J.expected=function(x,U,te){if(Array.isArray(x)){var I=x.pop();x=x.join(", ")+" or "+I}var oe=/^[aeiou]/.test(x[0])?"an":"a";return te?this.error("Expected "+oe+" "+x+', found "'+te+'" instead.',{index:U}):this.error("Expected "+oe+" "+x+".",{index:U})},J.requiredSpace=function(x){return this.options.lossy?" ":x},J.optionalSpace=function(x){return this.options.lossy?"":x},J.lossySpace=function(x,U){return this.options.lossy?U?" ":"":x},J.parseParenthesisToken=function(x){var U=this.content(x);return x[d.FIELDS.TYPE]===m.space?this.requiredSpace(U):U},J.newNode=function(x,U){return U&&(/^ +$/.test(U)&&(this.options.lossy||(this.spaces=(this.spaces||"")+U),U=!0),x.namespace=U,Ie(x,"namespace")),this.spaces&&(x.spaces.before=this.spaces,this.spaces=""),this.current.append(x)},J.content=function(x){return x===void 0&&(x=this.currToken),this.css.slice(x[d.FIELDS.START_POS],x[d.FIELDS.END_POS])},J.locateNextMeaningfulToken=function(x){x===void 0&&(x=this.position+1);for(var U=x;U<this.tokens.length;)if(F[this.tokens[U][d.FIELDS.TYPE]]){U++;continue}else return U;return-1},b(G,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),G}();e.default=Ct,t.exports=e.default}(Jo,Jo.exports),function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Jo.exports);function n(u){return u&&u.__esModule?u:{default:u}}var i=function(){function u(a,s){this.func=a||function(){},this.funcRes=null,this.options=s}var o=u.prototype;return o._shouldUpdateSelector=function(s,l){l===void 0&&(l={});var c=Object.assign({},this.options,l);return c.updateSelector===!1?!1:typeof s!="string"},o._isLossy=function(s){s===void 0&&(s={});var l=Object.assign({},this.options,s);return l.lossless===!1},o._root=function(s,l){l===void 0&&(l={});var c=new r.default(s,this._parseOptions(l));return c.root},o._parseOptions=function(s){return{lossy:this._isLossy(s)}},o._run=function(s,l){var c=this;return l===void 0&&(l={}),new Promise(function(f,h){try{var g=c._root(s,l);Promise.resolve(c.func(g)).then(function(y){var d=void 0;return c._shouldUpdateSelector(s,l)&&(d=g.toString(),s.selector=d),{transform:y,root:g,string:d}}).then(f,h)}catch(y){h(y);return}})},o._runSync=function(s,l){l===void 0&&(l={});var c=this._root(s,l),f=this.func(c);if(f&&typeof f.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var h=void 0;return l.updateSelector&&typeof s!="string"&&(h=c.toString(),s.selector=h),{transform:f,root:c,string:h}},o.ast=function(s,l){return this._run(s,l).then(function(c){return c.root})},o.astSync=function(s,l){return this._runSync(s,l).root},o.transform=function(s,l){return this._run(s,l).then(function(c){return c.transform})},o.transformSync=function(s,l){return this._runSync(s,l).transform},o.process=function(s,l){return this._run(s,l).then(function(c){return c.string||c.root.toString()})},o.processSync=function(s,l){var c=this._runSync(s,l);return c.string||c.root.toString()},u}();e.default=i,t.exports=e.default}(Qo,Qo.exports);var rf={},Ae={};Ae.__esModule=!0,Ae.universal=Ae.tag=Ae.string=Ae.selector=Ae.root=Ae.pseudo=Ae.nesting=Ae.id=Ae.comment=Ae.combinator=Ae.className=Ae.attribute=void 0;var q6=Dt(ts),j6=Dt(Pi.exports),U6=Dt(ji.exports),V6=Dt(Ni.exports),W6=Dt($i.exports),z6=Dt(Ui.exports),G6=Dt(ki.exports),H6=Dt(Mi.exports),Q6=Dt(Ii.exports),J6=Dt(Li.exports),Z6=Dt(Ri.exports),X6=Dt(qi.exports);function Dt(t){return t&&t.__esModule?t:{default:t}}var K6=function(e){return new q6.default(e)};Ae.attribute=K6;var Y6=function(e){return new j6.default(e)};Ae.className=Y6;var e_=function(e){return new U6.default(e)};Ae.combinator=e_;var t_=function(e){return new V6.default(e)};Ae.comment=t_;var r_=function(e){return new W6.default(e)};Ae.id=r_;var n_=function(e){return new z6.default(e)};Ae.nesting=n_;var i_=function(e){return new G6.default(e)};Ae.pseudo=i_;var u_=function(e){return new H6.default(e)};Ae.root=u_;var o_=function(e){return new Q6.default(e)};Ae.selector=o_;var s_=function(e){return new J6.default(e)};Ae.string=s_;var a_=function(e){return new Z6.default(e)};Ae.tag=a_;var l_=function(e){return new X6.default(e)};Ae.universal=l_;var de={};de.__esModule=!0,de.isComment=de.isCombinator=de.isClassName=de.isAttribute=void 0,de.isContainer=w_,de.isIdentifier=void 0,de.isNamespace=C_,de.isNesting=void 0,de.isNode=ns,de.isPseudo=void 0,de.isPseudoClass=E_,de.isPseudoElement=of,de.isUniversal=de.isTag=de.isString=de.isSelector=de.isRoot=void 0;var Se=se,rt,c_=(rt={},rt[Se.ATTRIBUTE]=!0,rt[Se.CLASS]=!0,rt[Se.COMBINATOR]=!0,rt[Se.COMMENT]=!0,rt[Se.ID]=!0,rt[Se.NESTING]=!0,rt[Se.PSEUDO]=!0,rt[Se.ROOT]=!0,rt[Se.SELECTOR]=!0,rt[Se.STRING]=!0,rt[Se.TAG]=!0,rt[Se.UNIVERSAL]=!0,rt);function ns(t){return typeof t=="object"&&c_[t.type]}function Et(t,e){return ns(e)&&e.type===t}var nf=Et.bind(null,Se.ATTRIBUTE);de.isAttribute=nf;var f_=Et.bind(null,Se.CLASS);de.isClassName=f_;var h_=Et.bind(null,Se.COMBINATOR);de.isCombinator=h_;var d_=Et.bind(null,Se.COMMENT);de.isComment=d_;var p_=Et.bind(null,Se.ID);de.isIdentifier=p_;var g_=Et.bind(null,Se.NESTING);de.isNesting=g_;var is=Et.bind(null,Se.PSEUDO);de.isPseudo=is;var v_=Et.bind(null,Se.ROOT);de.isRoot=v_;var m_=Et.bind(null,Se.SELECTOR);de.isSelector=m_;var y_=Et.bind(null,Se.STRING);de.isString=y_;var uf=Et.bind(null,Se.TAG);de.isTag=uf;var D_=Et.bind(null,Se.UNIVERSAL);de.isUniversal=D_;function of(t){return is(t)&&t.value&&(t.value.startsWith("::")||t.value.toLowerCase()===":before"||t.value.toLowerCase()===":after"||t.value.toLowerCase()===":first-letter"||t.value.toLowerCase()===":first-line")}function E_(t){return is(t)&&!of(t)}function w_(t){return!!(ns(t)&&t.walk)}function C_(t){return nf(t)||uf(t)}(function(t){t.__esModule=!0;var e=se;Object.keys(e).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===e[i]||(t[i]=e[i])});var r=Ae;Object.keys(r).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===r[i]||(t[i]=r[i])});var n=de;Object.keys(n).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===n[i]||(t[i]=n[i])})})(rf),function(t,e){e.__esModule=!0,e.default=void 0;var r=o(Qo.exports),n=u(rf);function i(l){if(typeof WeakMap!="function")return null;var c=new WeakMap,f=new WeakMap;return(i=function(g){return g?f:c})(l)}function u(l,c){if(!c&&l&&l.__esModule)return l;if(l===null||typeof l!="object"&&typeof l!="function")return{default:l};var f=i(c);if(f&&f.has(l))return f.get(l);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in l)if(y!=="default"&&Object.prototype.hasOwnProperty.call(l,y)){var d=g?Object.getOwnPropertyDescriptor(l,y):null;d&&(d.get||d.set)?Object.defineProperty(h,y,d):h[y]=l[y]}return h.default=l,f&&f.set(l,h),h}function o(l){return l&&l.__esModule?l:{default:l}}var a=function(c){return new r.default(c)};Object.assign(a,n),delete a.__esModule;var s=a;e.default=s,t.exports=e.default}(Ho,Ho.exports);const{AtRule:A_,Rule:sf}=Ce;let af=Ho.exports;function us(t,e){let r;try{af(n=>{r=n}).processSync(t)}catch(n){throw t.includes(":")?e?e.error("Missed semicolon"):n:e?e.error(n.message):n}return r.at(0)}function lf(t,e){let r=!1;return t.each(n=>{if(n.type==="nesting"){let i=e.clone({});n.value!=="&"?n.replaceWith(us(n.value.replace("&",i.toString()))):n.replaceWith(i),r=!0}else"nodes"in n&&n.nodes&&lf(n,e)&&(r=!0)}),r}function cf(t,e){let r=[];for(let n of t.selectors){let i=us(n,t);for(let u of e.selectors){if(!u)continue;let o=us(u,e);lf(o,i)||(o.prepend(af.combinator({value:" "})),o.prepend(i.clone({}))),r.push(o.toString())}}return r}function Vi(t,e){var i;if(((i=t.prev())==null?void 0:i.type)!=="comment")return e.after(t),t;let r=t.prev(),n=/[*]\/ *\n.*{/;return t.parent.toString().match(n)?e.after(t).after(r):e.after(t),t}function b_(t){return function e(r,n,i,u=i){let o=[];if(n.each(a=>{a.type==="rule"&&i?u&&(a.selectors=cf(r,a)):a.type==="atrule"&&a.nodes?t[a.name]?e(r,a,u):n[ss]!==!1&&o.push(a):o.push(a)}),i&&o.length){let a=r.clone({nodes:[]});for(let s of o)a.append(s);n.prepend(a)}}}function F_(t,e,r){let n=new sf({nodes:[],selector:t});return n.append(e),r.after(n),n}function os(t,e,r,n=!0){return e.length?(r=F_(t,e,r),n&&(e=[]),[r,e]):[r,e]}function ff(t,e=""){let r=t.concat(e),n={};for(let i of r)n[i.replace(/^@/,"")]=!0;return n}function __(t){t=t.trim();let e=t.match(/^\((.*)\)$/);if(!e)return{selector:t,type:"basic"};let r=e[1].match(/^(with(?:out)?):(.+)$/);if(r){let n=r[1]==="with",i=Object.fromEntries(r[2].trim().split(/\s+/).map(o=>[o,!0]));if(n&&i.all)return{type:"noop"};let u=o=>!!i[o];return i.all?u=()=>!0:n&&(u=o=>o==="all"?!1:!i[o]),{escapes:u,type:"withrules"}}return{type:"unknown"}}function B_(t){let e=[],r=t.parent;for(;r&&r instanceof A_;)e.push(r),r=r.parent;return e}function S_(t){let e=t[hf];if(!e)t.after(t.nodes);else{let r=t.nodes,n,i=-1,u,o,a,s=B_(t);if(s.forEach((l,c)=>{if(e(l.name))n=l,i=c,o=a;else{let f=a;a=l.clone({nodes:[]}),f&&a.append(f),u=u||a}}),n?o?(u.append(r),n.after(o)):n.after(r):t.after(r),t.next()&&n){let l;s.slice(0,i+1).forEach((c,f,h)=>{let g=l;l=c.clone({nodes:[]}),g&&l.append(g);let y=[],m=(h[f-1]||t).next();for(;m;)y.push(m),m=m.next();l.append(y)}),l&&(o||r[r.length-1]).after(l)}}t.remove()}const ss=Symbol("rootRuleMergeSel"),hf=Symbol("rootRuleEscapes");function O_(t){let{params:e}=t,{escapes:r,selector:n,type:i}=__(e);if(i==="unknown")throw t.error(`Unknown @${t.name} parameter ${JSON.stringify(e)}`);if(i==="basic"&&n){let u=new sf({nodes:t.nodes,selector:n});t.removeAll(),t.append(u)}t[hf]=r,t[ss]=r?!r("all"):i==="noop"}const as=Symbol("hasRootRule");Go.exports=(t={})=>{let e=ff(["media","supports","layer","container","starting-style"],t.bubble),r=b_(e),n=ff(["document","font-face","keyframes","-webkit-keyframes","-moz-keyframes"],t.unwrap),i=(t.rootRuleName||"at-root").replace(/^@/,""),u=t.preserveEmpty;return{Once(o){o.walkAtRules(i,a=>{O_(a),o[as]=!0})},postcssPlugin:"postcss-nested",RootExit(o){!o[as]||(o.walkAtRules(i,S_),o[as]=!1)},Rule(o){let a=!1,s=o,l=!1,c=[];o.each(f=>{switch(f.type){case"atrule":[s,c]=os(o.selector,c,s),f.name===i?(a=!0,r(o,f,!0,f[ss]),s=Vi(f,s)):e[f.name]?(l=!0,a=!0,r(o,f,!0),s=Vi(f,s)):n[f.name]?(l=!0,a=!0,r(o,f,!1),s=Vi(f,s)):l&&c.push(f);break;case"decl":l&&c.push(f);break;case"rule":[s,c]=os(o.selector,c,s),l=!0,a=!0,f.selectors=cf(o,f),s=Vi(f,s);break}}),os(o.selector,c,s,!1),a&&u!==!0&&(o.raws.semicolon=!0,o.nodes.length===0&&o.remove())}}},Go.exports.postcss=!0;var M_=Go.exports;class x_{constructor(e,r=!0){this.config=e,this.isPc=r}apply(e){var a,s,l;this.engine=e;const r=(s=(a=this.config)==null?void 0:a.source)!=null?s:"";let n=document.createElement("style");n.className="edit-css-"+e.id;let i=document.querySelector("head");i==null||i.appendChild(n);const u=[M_()];this.isPc&&u.push(qF({prefix:`.render-engine-${(l=this.engine)==null?void 0:l.id}`,transform(c,f){return f.startsWith(c)?f:`${c} ${f}`}}));const o=Ce(u).process(r,{from:void 0}).css;n.appendChild(document.createTextNode(o))}}ie.CalcPlugin=kA,ie.ControlsEventPlugin=YC,ie.ES6ModulePlugin=ZC,ie.Engine=Hu,ie.LifecycleEventPlugin=KC,ie.Plugin=JC,ie.StylePlugin=x_,ie.buildUUID=Yr,ie.hasChildrenControl=kn,ie.loopDataViewControl=hr,ie.loopFormControl=fr,ie.parseModule=xa,Object.defineProperty(ie,"__esModule",{value:!0})});
56
+ `),Y=Z.length-1,Y>0?(Ie=w+Y,wt=j-Z[Y].length):(Ie=w,wt=E),Ct=e.comment,w=Ie,F=Ie,S=j-wt):C===e.slash?(j=_,Ct=C,F=w,S=_-E,O=j+1):(j=f(p,_),Ct=e.word,F=w,S=j-E),O=j+1;break}m.push([Ct,w,_-E,F,S,_,O]),wt&&(E=wt,wt=null),_=O}return m}}(ef),function(t,e){e.__esModule=!0,e.default=void 0;var r=O(Mi.exports),n=O(Ii.exports),i=O(Pi.exports),u=O(Ni.exports),o=O($i.exports),a=O(Ri.exports),s=O(Li.exports),l=O(ki.exports),c=_(ts),f=O(qi.exports),h=O(ji.exports),g=O(Ui.exports),y=O(rs.exports),d=_(ef),m=_(H),p=_(se),v=ft,D,E;function w(G){if(typeof WeakMap!="function")return null;var J=new WeakMap,z=new WeakMap;return(w=function(U){return U?z:J})(G)}function _(G,J){if(!J&&G&&G.__esModule)return G;if(G===null||typeof G!="object"&&typeof G!="function")return{default:G};var z=w(J);if(z&&z.has(G))return z.get(G);var x={},U=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var te in G)if(te!=="default"&&Object.prototype.hasOwnProperty.call(G,te)){var I=U?Object.getOwnPropertyDescriptor(G,te):null;I&&(I.get||I.set)?Object.defineProperty(x,te,I):x[te]=G[te]}return x.default=G,z&&z.set(G,x),x}function O(G){return G&&G.__esModule?G:{default:G}}function C(G,J){for(var z=0;z<J.length;z++){var x=J[z];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(G,x.key,x)}}function b(G,J,z){return J&&C(G.prototype,J),z&&C(G,z),Object.defineProperty(G,"prototype",{writable:!1}),G}var S=(D={},D[m.space]=!0,D[m.cr]=!0,D[m.feed]=!0,D[m.newline]=!0,D[m.tab]=!0,D),F=Object.assign({},S,(E={},E[m.comment]=!0,E));function R(G){return{line:G[d.FIELDS.START_LINE],column:G[d.FIELDS.START_COL]}}function X(G){return{line:G[d.FIELDS.END_LINE],column:G[d.FIELDS.END_COL]}}function Y(G,J,z,x){return{start:{line:G,column:J},end:{line:z,column:x}}}function Z(G){return Y(G[d.FIELDS.START_LINE],G[d.FIELDS.START_COL],G[d.FIELDS.END_LINE],G[d.FIELDS.END_COL])}function j(G,J){if(!!G)return Y(G[d.FIELDS.START_LINE],G[d.FIELDS.START_COL],J[d.FIELDS.END_LINE],J[d.FIELDS.END_COL])}function Ie(G,J){var z=G[J];if(typeof z=="string")return z.indexOf("\\")!==-1&&((0,v.ensureObject)(G,"raws"),G[J]=(0,v.unesc)(z),G.raws[J]===void 0&&(G.raws[J]=z)),G}function wt(G,J){for(var z=-1,x=[];(z=G.indexOf(J,z+1))!==-1;)x.push(z);return x}function Dr(){var G=Array.prototype.concat.apply([],arguments);return G.filter(function(J,z){return z===G.indexOf(J)})}var Ct=function(){function G(z,x){x===void 0&&(x={}),this.rule=z,this.options=Object.assign({lossy:!1,safe:!1},x),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,d.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var U=j(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new r.default({source:U}),this.root.errorGenerator=this._errorGenerator();var te=new n.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(te),this.current=te,this.loop()}var J=G.prototype;return J._errorGenerator=function(){var x=this;return function(U,te){return typeof x.rule=="string"?new Error(U):x.rule.error(U,te)}},J.attribute=function(){var x=[],U=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[d.FIELDS.TYPE]!==m.closeSquare;)x.push(this.currToken),this.position++;if(this.currToken[d.FIELDS.TYPE]!==m.closeSquare)return this.expected("closing square bracket",this.currToken[d.FIELDS.START_POS]);var te=x.length,I={source:Y(U[1],U[2],this.currToken[3],this.currToken[4]),sourceIndex:U[d.FIELDS.START_POS]};if(te===1&&!~[m.word].indexOf(x[0][d.FIELDS.TYPE]))return this.expected("attribute",x[0][d.FIELDS.START_POS]);for(var oe=0,fe="",le="",ne=null,De=!1;oe<te;){var Ne=x[oe],ue=this.content(Ne),Be=x[oe+1];switch(Ne[d.FIELDS.TYPE]){case m.space:if(De=!0,this.options.lossy)break;if(ne){(0,v.ensureObject)(I,"spaces",ne);var At=I.spaces[ne].after||"";I.spaces[ne].after=At+ue;var ht=(0,v.getProp)(I,"raws","spaces",ne,"after")||null;ht&&(I.raws.spaces[ne].after=ht+ue)}else fe=fe+ue,le=le+ue;break;case m.asterisk:if(Be[d.FIELDS.TYPE]===m.equals)I.operator=ue,ne="operator";else if((!I.namespace||ne==="namespace"&&!De)&&Be){fe&&((0,v.ensureObject)(I,"spaces","attribute"),I.spaces.attribute.before=fe,fe=""),le&&((0,v.ensureObject)(I,"raws","spaces","attribute"),I.raws.spaces.attribute.before=fe,le=""),I.namespace=(I.namespace||"")+ue;var Qe=(0,v.getProp)(I,"raws","namespace")||null;Qe&&(I.raws.namespace+=ue),ne="namespace"}De=!1;break;case m.dollar:if(ne==="value"){var je=(0,v.getProp)(I,"raws","value");I.value+="$",je&&(I.raws.value=je+"$");break}case m.caret:Be[d.FIELDS.TYPE]===m.equals&&(I.operator=ue,ne="operator"),De=!1;break;case m.combinator:if(ue==="~"&&Be[d.FIELDS.TYPE]===m.equals&&(I.operator=ue,ne="operator"),ue!=="|"){De=!1;break}Be[d.FIELDS.TYPE]===m.equals?(I.operator=ue,ne="operator"):!I.namespace&&!I.attribute&&(I.namespace=!0),De=!1;break;case m.word:if(Be&&this.content(Be)==="|"&&x[oe+2]&&x[oe+2][d.FIELDS.TYPE]!==m.equals&&!I.operator&&!I.namespace)I.namespace=ue,ne="namespace";else if(!I.attribute||ne==="attribute"&&!De){fe&&((0,v.ensureObject)(I,"spaces","attribute"),I.spaces.attribute.before=fe,fe=""),le&&((0,v.ensureObject)(I,"raws","spaces","attribute"),I.raws.spaces.attribute.before=le,le=""),I.attribute=(I.attribute||"")+ue;var dt=(0,v.getProp)(I,"raws","attribute")||null;dt&&(I.raws.attribute+=ue),ne="attribute"}else if(!I.value&&I.value!==""||ne==="value"&&!(De||I.quoteMark)){var pt=(0,v.unesc)(ue),Mt=(0,v.getProp)(I,"raws","value")||"",A=I.value||"";I.value=A+pt,I.quoteMark=null,(pt!==ue||Mt)&&((0,v.ensureObject)(I,"raws"),I.raws.value=(Mt||A)+ue),ne="value"}else{var B=ue==="i"||ue==="I";(I.value||I.value==="")&&(I.quoteMark||De)?(I.insensitive=B,(!B||ue==="I")&&((0,v.ensureObject)(I,"raws"),I.raws.insensitiveFlag=ue),ne="insensitive",fe&&((0,v.ensureObject)(I,"spaces","insensitive"),I.spaces.insensitive.before=fe,fe=""),le&&((0,v.ensureObject)(I,"raws","spaces","insensitive"),I.raws.spaces.insensitive.before=le,le="")):(I.value||I.value==="")&&(ne="value",I.value+=ue,I.raws.value&&(I.raws.value+=ue))}De=!1;break;case m.str:if(!I.attribute||!I.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:Ne[d.FIELDS.START_POS]});var M=(0,c.unescapeValue)(ue),P=M.unescaped,L=M.quoteMark;I.value=P,I.quoteMark=L,ne="value",(0,v.ensureObject)(I,"raws"),I.raws.value=ue,De=!1;break;case m.equals:if(!I.attribute)return this.expected("attribute",Ne[d.FIELDS.START_POS],ue);if(I.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:Ne[d.FIELDS.START_POS]});I.operator=I.operator?I.operator+ue:ue,ne="operator",De=!1;break;case m.comment:if(ne)if(De||Be&&Be[d.FIELDS.TYPE]===m.space||ne==="insensitive"){var N=(0,v.getProp)(I,"spaces",ne,"after")||"",V=(0,v.getProp)(I,"raws","spaces",ne,"after")||N;(0,v.ensureObject)(I,"raws","spaces",ne),I.raws.spaces[ne].after=V+ue}else{var q=I[ne]||"",W=(0,v.getProp)(I,"raws",ne)||q;(0,v.ensureObject)(I,"raws"),I.raws[ne]=W+ue}else le=le+ue;break;default:return this.error('Unexpected "'+ue+'" found.',{index:Ne[d.FIELDS.START_POS]})}oe++}Ie(I,"attribute"),Ie(I,"namespace"),this.newNode(new c.default(I)),this.position++},J.parseWhitespaceEquivalentTokens=function(x){x<0&&(x=this.tokens.length);var U=this.position,te=[],I="",oe=void 0;do if(S[this.currToken[d.FIELDS.TYPE]])this.options.lossy||(I+=this.content());else if(this.currToken[d.FIELDS.TYPE]===m.comment){var fe={};I&&(fe.before=I,I=""),oe=new u.default({value:this.content(),source:Z(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS],spaces:fe}),te.push(oe)}while(++this.position<x);if(I){if(oe)oe.spaces.after=I;else if(!this.options.lossy){var le=this.tokens[U],ne=this.tokens[this.position-1];te.push(new s.default({value:"",source:Y(le[d.FIELDS.START_LINE],le[d.FIELDS.START_COL],ne[d.FIELDS.END_LINE],ne[d.FIELDS.END_COL]),sourceIndex:le[d.FIELDS.START_POS],spaces:{before:I,after:""}}))}}return te},J.convertWhitespaceNodesToSpace=function(x,U){var te=this;U===void 0&&(U=!1);var I="",oe="";x.forEach(function(le){var ne=te.lossySpace(le.spaces.before,U),De=te.lossySpace(le.rawSpaceBefore,U);I+=ne+te.lossySpace(le.spaces.after,U&&ne.length===0),oe+=ne+le.value+te.lossySpace(le.rawSpaceAfter,U&&De.length===0)}),oe===I&&(oe=void 0);var fe={space:I,rawSpace:oe};return fe},J.isNamedCombinator=function(x){return x===void 0&&(x=this.position),this.tokens[x+0]&&this.tokens[x+0][d.FIELDS.TYPE]===m.slash&&this.tokens[x+1]&&this.tokens[x+1][d.FIELDS.TYPE]===m.word&&this.tokens[x+2]&&this.tokens[x+2][d.FIELDS.TYPE]===m.slash},J.namedCombinator=function(){if(this.isNamedCombinator()){var x=this.content(this.tokens[this.position+1]),U=(0,v.unesc)(x).toLowerCase(),te={};U!==x&&(te.value="/"+x+"/");var I=new h.default({value:"/"+U+"/",source:Y(this.currToken[d.FIELDS.START_LINE],this.currToken[d.FIELDS.START_COL],this.tokens[this.position+2][d.FIELDS.END_LINE],this.tokens[this.position+2][d.FIELDS.END_COL]),sourceIndex:this.currToken[d.FIELDS.START_POS],raws:te});return this.position=this.position+3,I}else this.unexpected()},J.combinator=function(){var x=this;if(this.content()==="|")return this.namespace();var U=this.locateNextMeaningfulToken(this.position);if(U<0||this.tokens[U][d.FIELDS.TYPE]===m.comma||this.tokens[U][d.FIELDS.TYPE]===m.closeParenthesis){var te=this.parseWhitespaceEquivalentTokens(U);if(te.length>0){var I=this.current.last;if(I){var oe=this.convertWhitespaceNodesToSpace(te),fe=oe.space,le=oe.rawSpace;le!==void 0&&(I.rawSpaceAfter+=le),I.spaces.after+=fe}else te.forEach(function(Mt){return x.newNode(Mt)})}return}var ne=this.currToken,De=void 0;U>this.position&&(De=this.parseWhitespaceEquivalentTokens(U));var Ne;if(this.isNamedCombinator()?Ne=this.namedCombinator():this.currToken[d.FIELDS.TYPE]===m.combinator?(Ne=new h.default({value:this.content(),source:Z(this.currToken),sourceIndex:this.currToken[d.FIELDS.START_POS]}),this.position++):S[this.currToken[d.FIELDS.TYPE]]||De||this.unexpected(),Ne){if(De){var ue=this.convertWhitespaceNodesToSpace(De),Be=ue.space,At=ue.rawSpace;Ne.spaces.before=Be,Ne.rawSpaceBefore=At}}else{var ht=this.convertWhitespaceNodesToSpace(De,!0),Qe=ht.space,je=ht.rawSpace;je||(je=Qe);var dt={},pt={spaces:{}};Qe.endsWith(" ")&&je.endsWith(" ")?(dt.before=Qe.slice(0,Qe.length-1),pt.spaces.before=je.slice(0,je.length-1)):Qe[0]===" "&&je[0]===" "?(dt.after=Qe.slice(1),pt.spaces.after=je.slice(1)):pt.value=je,Ne=new h.default({value:" ",source:j(ne,this.tokens[this.position-1]),sourceIndex:ne[d.FIELDS.START_POS],spaces:dt,raws:pt})}return this.currToken&&this.currToken[d.FIELDS.TYPE]===m.space&&(Ne.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(Ne)},J.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var x=new n.default({source:{start:R(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][d.FIELDS.START_POS]});this.current.parent.append(x),this.current=x,this.position++},J.comment=function(){var x=this.currToken;this.newNode(new u.default({value:this.content(),source:Z(x),sourceIndex:x[d.FIELDS.START_POS]})),this.position++},J.error=function(x,U){throw this.root.error(x,U)},J.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[d.FIELDS.START_POS]})},J.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[d.FIELDS.START_POS])},J.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[d.FIELDS.START_POS])},J.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[d.FIELDS.START_POS])},J.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[d.FIELDS.START_POS])},J.namespace=function(){var x=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[d.FIELDS.TYPE]===m.word)return this.position++,this.word(x);if(this.nextToken[d.FIELDS.TYPE]===m.asterisk)return this.position++,this.universal(x);this.unexpectedPipe()},J.nesting=function(){if(this.nextToken){var x=this.content(this.nextToken);if(x==="|"){this.position++;return}}var U=this.currToken;this.newNode(new g.default({value:this.content(),source:Z(U),sourceIndex:U[d.FIELDS.START_POS]})),this.position++},J.parentheses=function(){var x=this.current.last,U=1;if(this.position++,x&&x.type===p.PSEUDO){var te=new n.default({source:{start:R(this.tokens[this.position])},sourceIndex:this.tokens[this.position][d.FIELDS.START_POS]}),I=this.current;for(x.append(te),this.current=te;this.position<this.tokens.length&&U;)this.currToken[d.FIELDS.TYPE]===m.openParenthesis&&U++,this.currToken[d.FIELDS.TYPE]===m.closeParenthesis&&U--,U?this.parse():(this.current.source.end=X(this.currToken),this.current.parent.source.end=X(this.currToken),this.position++);this.current=I}else{for(var oe=this.currToken,fe="(",le;this.position<this.tokens.length&&U;)this.currToken[d.FIELDS.TYPE]===m.openParenthesis&&U++,this.currToken[d.FIELDS.TYPE]===m.closeParenthesis&&U--,le=this.currToken,fe+=this.parseParenthesisToken(this.currToken),this.position++;x?x.appendToPropertyAndEscape("value",fe,fe):this.newNode(new s.default({value:fe,source:Y(oe[d.FIELDS.START_LINE],oe[d.FIELDS.START_COL],le[d.FIELDS.END_LINE],le[d.FIELDS.END_COL]),sourceIndex:oe[d.FIELDS.START_POS]}))}if(U)return this.expected("closing parenthesis",this.currToken[d.FIELDS.START_POS])},J.pseudo=function(){for(var x=this,U="",te=this.currToken;this.currToken&&this.currToken[d.FIELDS.TYPE]===m.colon;)U+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[d.FIELDS.TYPE]===m.word)this.splitWord(!1,function(I,oe){U+=I,x.newNode(new l.default({value:U,source:j(te,x.currToken),sourceIndex:te[d.FIELDS.START_POS]})),oe>1&&x.nextToken&&x.nextToken[d.FIELDS.TYPE]===m.openParenthesis&&x.error("Misplaced parenthesis.",{index:x.nextToken[d.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[d.FIELDS.START_POS])},J.space=function(){var x=this.content();this.position===0||this.prevToken[d.FIELDS.TYPE]===m.comma||this.prevToken[d.FIELDS.TYPE]===m.openParenthesis||this.current.nodes.every(function(U){return U.type==="comment"})?(this.spaces=this.optionalSpace(x),this.position++):this.position===this.tokens.length-1||this.nextToken[d.FIELDS.TYPE]===m.comma||this.nextToken[d.FIELDS.TYPE]===m.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(x),this.position++):this.combinator()},J.string=function(){var x=this.currToken;this.newNode(new s.default({value:this.content(),source:Z(x),sourceIndex:x[d.FIELDS.START_POS]})),this.position++},J.universal=function(x){var U=this.nextToken;if(U&&this.content(U)==="|")return this.position++,this.namespace();var te=this.currToken;this.newNode(new f.default({value:this.content(),source:Z(te),sourceIndex:te[d.FIELDS.START_POS]}),x),this.position++},J.splitWord=function(x,U){for(var te=this,I=this.nextToken,oe=this.content();I&&~[m.dollar,m.caret,m.equals,m.word].indexOf(I[d.FIELDS.TYPE]);){this.position++;var fe=this.content();if(oe+=fe,fe.lastIndexOf("\\")===fe.length-1){var le=this.nextToken;le&&le[d.FIELDS.TYPE]===m.space&&(oe+=this.requiredSpace(this.content(le)),this.position++)}I=this.nextToken}var ne=wt(oe,".").filter(function(Be){var At=oe[Be-1]==="\\",ht=/^\d+\.\d+%$/.test(oe);return!At&&!ht}),De=wt(oe,"#").filter(function(Be){return oe[Be-1]!=="\\"}),Ne=wt(oe,"#{");Ne.length&&(De=De.filter(function(Be){return!~Ne.indexOf(Be)}));var ue=(0,y.default)(Dr([0].concat(ne,De)));ue.forEach(function(Be,At){var ht=ue[At+1]||oe.length,Qe=oe.slice(Be,ht);if(At===0&&U)return U.call(te,Qe,ue.length);var je,dt=te.currToken,pt=dt[d.FIELDS.START_POS]+ue[At],Mt=Y(dt[1],dt[2]+Be,dt[3],dt[2]+(ht-1));if(~ne.indexOf(Be)){var A={value:Qe.slice(1),source:Mt,sourceIndex:pt};je=new i.default(Ie(A,"value"))}else if(~De.indexOf(Be)){var B={value:Qe.slice(1),source:Mt,sourceIndex:pt};je=new o.default(Ie(B,"value"))}else{var M={value:Qe,source:Mt,sourceIndex:pt};Ie(M,"value"),je=new a.default(M)}te.newNode(je,x),x=null}),this.position++},J.word=function(x){var U=this.nextToken;return U&&this.content(U)==="|"?(this.position++,this.namespace()):this.splitWord(x)},J.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},J.parse=function(x){switch(this.currToken[d.FIELDS.TYPE]){case m.space:this.space();break;case m.comment:this.comment();break;case m.openParenthesis:this.parentheses();break;case m.closeParenthesis:x&&this.missingParenthesis();break;case m.openSquare:this.attribute();break;case m.dollar:case m.caret:case m.equals:case m.word:this.word();break;case m.colon:this.pseudo();break;case m.comma:this.comma();break;case m.asterisk:this.universal();break;case m.ampersand:this.nesting();break;case m.slash:case m.combinator:this.combinator();break;case m.str:this.string();break;case m.closeSquare:this.missingSquareBracket();case m.semicolon:this.missingBackslash();default:this.unexpected()}},J.expected=function(x,U,te){if(Array.isArray(x)){var I=x.pop();x=x.join(", ")+" or "+I}var oe=/^[aeiou]/.test(x[0])?"an":"a";return te?this.error("Expected "+oe+" "+x+', found "'+te+'" instead.',{index:U}):this.error("Expected "+oe+" "+x+".",{index:U})},J.requiredSpace=function(x){return this.options.lossy?" ":x},J.optionalSpace=function(x){return this.options.lossy?"":x},J.lossySpace=function(x,U){return this.options.lossy?U?" ":"":x},J.parseParenthesisToken=function(x){var U=this.content(x);return x[d.FIELDS.TYPE]===m.space?this.requiredSpace(U):U},J.newNode=function(x,U){return U&&(/^ +$/.test(U)&&(this.options.lossy||(this.spaces=(this.spaces||"")+U),U=!0),x.namespace=U,Ie(x,"namespace")),this.spaces&&(x.spaces.before=this.spaces,this.spaces=""),this.current.append(x)},J.content=function(x){return x===void 0&&(x=this.currToken),this.css.slice(x[d.FIELDS.START_POS],x[d.FIELDS.END_POS])},J.locateNextMeaningfulToken=function(x){x===void 0&&(x=this.position+1);for(var U=x;U<this.tokens.length;)if(F[this.tokens[U][d.FIELDS.TYPE]]){U++;continue}else return U;return-1},b(G,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),G}();e.default=Ct,t.exports=e.default}(Jo,Jo.exports),function(t,e){e.__esModule=!0,e.default=void 0;var r=n(Jo.exports);function n(u){return u&&u.__esModule?u:{default:u}}var i=function(){function u(a,s){this.func=a||function(){},this.funcRes=null,this.options=s}var o=u.prototype;return o._shouldUpdateSelector=function(s,l){l===void 0&&(l={});var c=Object.assign({},this.options,l);return c.updateSelector===!1?!1:typeof s!="string"},o._isLossy=function(s){s===void 0&&(s={});var l=Object.assign({},this.options,s);return l.lossless===!1},o._root=function(s,l){l===void 0&&(l={});var c=new r.default(s,this._parseOptions(l));return c.root},o._parseOptions=function(s){return{lossy:this._isLossy(s)}},o._run=function(s,l){var c=this;return l===void 0&&(l={}),new Promise(function(f,h){try{var g=c._root(s,l);Promise.resolve(c.func(g)).then(function(y){var d=void 0;return c._shouldUpdateSelector(s,l)&&(d=g.toString(),s.selector=d),{transform:y,root:g,string:d}}).then(f,h)}catch(y){h(y);return}})},o._runSync=function(s,l){l===void 0&&(l={});var c=this._root(s,l),f=this.func(c);if(f&&typeof f.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var h=void 0;return l.updateSelector&&typeof s!="string"&&(h=c.toString(),s.selector=h),{transform:f,root:c,string:h}},o.ast=function(s,l){return this._run(s,l).then(function(c){return c.root})},o.astSync=function(s,l){return this._runSync(s,l).root},o.transform=function(s,l){return this._run(s,l).then(function(c){return c.transform})},o.transformSync=function(s,l){return this._runSync(s,l).transform},o.process=function(s,l){return this._run(s,l).then(function(c){return c.string||c.root.toString()})},o.processSync=function(s,l){var c=this._runSync(s,l);return c.string||c.root.toString()},u}();e.default=i,t.exports=e.default}(Qo,Qo.exports);var rf={},Ae={};Ae.__esModule=!0,Ae.universal=Ae.tag=Ae.string=Ae.selector=Ae.root=Ae.pseudo=Ae.nesting=Ae.id=Ae.comment=Ae.combinator=Ae.className=Ae.attribute=void 0;var q6=Dt(ts),j6=Dt(Pi.exports),U6=Dt(ji.exports),V6=Dt(Ni.exports),W6=Dt($i.exports),z6=Dt(Ui.exports),G6=Dt(ki.exports),H6=Dt(Mi.exports),Q6=Dt(Ii.exports),J6=Dt(Li.exports),Z6=Dt(Ri.exports),X6=Dt(qi.exports);function Dt(t){return t&&t.__esModule?t:{default:t}}var K6=function(e){return new q6.default(e)};Ae.attribute=K6;var Y6=function(e){return new j6.default(e)};Ae.className=Y6;var e_=function(e){return new U6.default(e)};Ae.combinator=e_;var t_=function(e){return new V6.default(e)};Ae.comment=t_;var r_=function(e){return new W6.default(e)};Ae.id=r_;var n_=function(e){return new z6.default(e)};Ae.nesting=n_;var i_=function(e){return new G6.default(e)};Ae.pseudo=i_;var u_=function(e){return new H6.default(e)};Ae.root=u_;var o_=function(e){return new Q6.default(e)};Ae.selector=o_;var s_=function(e){return new J6.default(e)};Ae.string=s_;var a_=function(e){return new Z6.default(e)};Ae.tag=a_;var l_=function(e){return new X6.default(e)};Ae.universal=l_;var de={};de.__esModule=!0,de.isComment=de.isCombinator=de.isClassName=de.isAttribute=void 0,de.isContainer=w_,de.isIdentifier=void 0,de.isNamespace=C_,de.isNesting=void 0,de.isNode=ns,de.isPseudo=void 0,de.isPseudoClass=E_,de.isPseudoElement=of,de.isUniversal=de.isTag=de.isString=de.isSelector=de.isRoot=void 0;var Se=se,rt,c_=(rt={},rt[Se.ATTRIBUTE]=!0,rt[Se.CLASS]=!0,rt[Se.COMBINATOR]=!0,rt[Se.COMMENT]=!0,rt[Se.ID]=!0,rt[Se.NESTING]=!0,rt[Se.PSEUDO]=!0,rt[Se.ROOT]=!0,rt[Se.SELECTOR]=!0,rt[Se.STRING]=!0,rt[Se.TAG]=!0,rt[Se.UNIVERSAL]=!0,rt);function ns(t){return typeof t=="object"&&c_[t.type]}function Et(t,e){return ns(e)&&e.type===t}var nf=Et.bind(null,Se.ATTRIBUTE);de.isAttribute=nf;var f_=Et.bind(null,Se.CLASS);de.isClassName=f_;var h_=Et.bind(null,Se.COMBINATOR);de.isCombinator=h_;var d_=Et.bind(null,Se.COMMENT);de.isComment=d_;var p_=Et.bind(null,Se.ID);de.isIdentifier=p_;var g_=Et.bind(null,Se.NESTING);de.isNesting=g_;var is=Et.bind(null,Se.PSEUDO);de.isPseudo=is;var v_=Et.bind(null,Se.ROOT);de.isRoot=v_;var m_=Et.bind(null,Se.SELECTOR);de.isSelector=m_;var y_=Et.bind(null,Se.STRING);de.isString=y_;var uf=Et.bind(null,Se.TAG);de.isTag=uf;var D_=Et.bind(null,Se.UNIVERSAL);de.isUniversal=D_;function of(t){return is(t)&&t.value&&(t.value.startsWith("::")||t.value.toLowerCase()===":before"||t.value.toLowerCase()===":after"||t.value.toLowerCase()===":first-letter"||t.value.toLowerCase()===":first-line")}function E_(t){return is(t)&&!of(t)}function w_(t){return!!(ns(t)&&t.walk)}function C_(t){return nf(t)||uf(t)}(function(t){t.__esModule=!0;var e=se;Object.keys(e).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===e[i]||(t[i]=e[i])});var r=Ae;Object.keys(r).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===r[i]||(t[i]=r[i])});var n=de;Object.keys(n).forEach(function(i){i==="default"||i==="__esModule"||i in t&&t[i]===n[i]||(t[i]=n[i])})})(rf),function(t,e){e.__esModule=!0,e.default=void 0;var r=o(Qo.exports),n=u(rf);function i(l){if(typeof WeakMap!="function")return null;var c=new WeakMap,f=new WeakMap;return(i=function(g){return g?f:c})(l)}function u(l,c){if(!c&&l&&l.__esModule)return l;if(l===null||typeof l!="object"&&typeof l!="function")return{default:l};var f=i(c);if(f&&f.has(l))return f.get(l);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in l)if(y!=="default"&&Object.prototype.hasOwnProperty.call(l,y)){var d=g?Object.getOwnPropertyDescriptor(l,y):null;d&&(d.get||d.set)?Object.defineProperty(h,y,d):h[y]=l[y]}return h.default=l,f&&f.set(l,h),h}function o(l){return l&&l.__esModule?l:{default:l}}var a=function(c){return new r.default(c)};Object.assign(a,n),delete a.__esModule;var s=a;e.default=s,t.exports=e.default}(Ho,Ho.exports);const{AtRule:A_,Rule:sf}=Ce;let af=Ho.exports;function us(t,e){let r;try{af(n=>{r=n}).processSync(t)}catch(n){throw t.includes(":")?e?e.error("Missed semicolon"):n:e?e.error(n.message):n}return r.at(0)}function lf(t,e){let r=!1;return t.each(n=>{if(n.type==="nesting"){let i=e.clone({});n.value!=="&"?n.replaceWith(us(n.value.replace("&",i.toString()))):n.replaceWith(i),r=!0}else"nodes"in n&&n.nodes&&lf(n,e)&&(r=!0)}),r}function cf(t,e){let r=[];for(let n of t.selectors){let i=us(n,t);for(let u of e.selectors){if(!u)continue;let o=us(u,e);lf(o,i)||(o.prepend(af.combinator({value:" "})),o.prepend(i.clone({}))),r.push(o.toString())}}return r}function Vi(t,e){var i;if(((i=t.prev())==null?void 0:i.type)!=="comment")return e.after(t),t;let r=t.prev(),n=/[*]\/ *\n.*{/;return t.parent.toString().match(n)?e.after(t).after(r):e.after(t),t}function b_(t){return function e(r,n,i,u=i){let o=[];if(n.each(a=>{a.type==="rule"&&i?u&&(a.selectors=cf(r,a)):a.type==="atrule"&&a.nodes?t[a.name]?e(r,a,u):n[ss]!==!1&&o.push(a):o.push(a)}),i&&o.length){let a=r.clone({nodes:[]});for(let s of o)a.append(s);n.prepend(a)}}}function F_(t,e,r){let n=new sf({nodes:[],selector:t});return n.append(e),r.after(n),n}function os(t,e,r,n=!0){return e.length?(r=F_(t,e,r),n&&(e=[]),[r,e]):[r,e]}function ff(t,e=""){let r=t.concat(e),n={};for(let i of r)n[i.replace(/^@/,"")]=!0;return n}function __(t){t=t.trim();let e=t.match(/^\((.*)\)$/);if(!e)return{selector:t,type:"basic"};let r=e[1].match(/^(with(?:out)?):(.+)$/);if(r){let n=r[1]==="with",i=Object.fromEntries(r[2].trim().split(/\s+/).map(o=>[o,!0]));if(n&&i.all)return{type:"noop"};let u=o=>!!i[o];return i.all?u=()=>!0:n&&(u=o=>o==="all"?!1:!i[o]),{escapes:u,type:"withrules"}}return{type:"unknown"}}function B_(t){let e=[],r=t.parent;for(;r&&r instanceof A_;)e.push(r),r=r.parent;return e}function S_(t){let e=t[hf];if(!e)t.after(t.nodes);else{let r=t.nodes,n,i=-1,u,o,a,s=B_(t);if(s.forEach((l,c)=>{if(e(l.name))n=l,i=c,o=a;else{let f=a;a=l.clone({nodes:[]}),f&&a.append(f),u=u||a}}),n?o?(u.append(r),n.after(o)):n.after(r):t.after(r),t.next()&&n){let l;s.slice(0,i+1).forEach((c,f,h)=>{let g=l;l=c.clone({nodes:[]}),g&&l.append(g);let y=[],m=(h[f-1]||t).next();for(;m;)y.push(m),m=m.next();l.append(y)}),l&&(o||r[r.length-1]).after(l)}}t.remove()}const ss=Symbol("rootRuleMergeSel"),hf=Symbol("rootRuleEscapes");function O_(t){let{params:e}=t,{escapes:r,selector:n,type:i}=__(e);if(i==="unknown")throw t.error(`Unknown @${t.name} parameter ${JSON.stringify(e)}`);if(i==="basic"&&n){let u=new sf({nodes:t.nodes,selector:n});t.removeAll(),t.append(u)}t[hf]=r,t[ss]=r?!r("all"):i==="noop"}const as=Symbol("hasRootRule");Go.exports=(t={})=>{let e=ff(["media","supports","layer","container","starting-style"],t.bubble),r=b_(e),n=ff(["document","font-face","keyframes","-webkit-keyframes","-moz-keyframes"],t.unwrap),i=(t.rootRuleName||"at-root").replace(/^@/,""),u=t.preserveEmpty;return{Once(o){o.walkAtRules(i,a=>{O_(a),o[as]=!0})},postcssPlugin:"postcss-nested",RootExit(o){!o[as]||(o.walkAtRules(i,S_),o[as]=!1)},Rule(o){let a=!1,s=o,l=!1,c=[];o.each(f=>{switch(f.type){case"atrule":[s,c]=os(o.selector,c,s),f.name===i?(a=!0,r(o,f,!0,f[ss]),s=Vi(f,s)):e[f.name]?(l=!0,a=!0,r(o,f,!0),s=Vi(f,s)):n[f.name]?(l=!0,a=!0,r(o,f,!1),s=Vi(f,s)):l&&c.push(f);break;case"decl":l&&c.push(f);break;case"rule":[s,c]=os(o.selector,c,s),l=!0,a=!0,f.selectors=cf(o,f),s=Vi(f,s);break}}),os(o.selector,c,s,!1),a&&u!==!0&&(o.raws.semicolon=!0,o.nodes.length===0&&o.remove())}}},Go.exports.postcss=!0;var M_=Go.exports;class x_{constructor(e,r=!0){this.config=e,this.isPc=r}apply(e){var a,s,l;this.engine=e;const r=(s=(a=this.config)==null?void 0:a.source)!=null?s:"";let n=document.createElement("style");n.className="edit-css-"+e.id;let i=document.querySelector("head");i==null||i.appendChild(n);const u=[M_()];this.isPc&&u.push(qF({prefix:`.render-engine-${(l=this.engine)==null?void 0:l.id}`,transform(c,f){return f.startsWith(c)?f:`${c} ${f}`}}));const o=Ce(u).process(r,{from:void 0}).css;n.appendChild(document.createTextNode(o))}}ie.CalcPlugin=kA,ie.ControlsEventPlugin=YC,ie.ES6ModulePlugin=ZC,ie.Engine=Hu,ie.LifecycleEventPlugin=KC,ie.Plugin=JC,ie.StylePlugin=x_,ie.buildUUID=Yr,ie.hasChildrenControl=kn,ie.loopDataViewControl=hr,ie.loopFormControl=fr,ie.parseModule=xa,Object.defineProperty(ie,"__esModule",{value:!0})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-engine",
3
- "version": "5.6.0-1-beta4",
3
+ "version": "5.6.0-1-beta5",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -26,7 +26,7 @@
26
26
  "postpublish": "node ../../scripts/postpublish.js"
27
27
  },
28
28
  "dependencies": {
29
- "@byteluck-fe/model-driven-core": "5.5.0-1-beta2",
29
+ "@byteluck-fe/model-driven-core": "5.6.0-horizon-1",
30
30
  "@byteluck-fe/model-driven-shared": "5.5.0-1-beta2",
31
31
  "@types/mathjs": "^9.4.2",
32
32
  "mathjs": "^11.3.3",
@@ -38,5 +38,5 @@
38
38
  "@types/postcss-prefix-selector": "^1.16.3",
39
39
  "postcss-nested": "^7.0.2"
40
40
  },
41
- "gitHead": "715881b5fcecf6c8819e7da18241524c6e2c2a6e"
41
+ "gitHead": "6a65399b408d1fcd6212f60cc9c41da2717b8f50"
42
42
  }