@unizap/unicss 1.1.15 → 1.1.16

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -53,7 +53,7 @@ ${e}`,i}}}});var xg=k(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{v
53
53
 
54
54
  return ${Vi(i)};
55
55
  })(${Pg(this.node)})
56
- `;return this.replaceWith(c)[0].get("arguments.0")}function fX(t){let e=t.params.findIndex(r=>KJ(r)||WJ(r));return e===-1?t.params.length:e}});var _g=k(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct._guessExecutionStatusRelativeTo=DX;ct._resolve=Og;ct.canHaveVariableDeclarationOrExpression=AX;ct.canSwapBetweenExpressionAndStatement=wX;ct.getSource=NX;ct.isCompletionRecord=CX;ct.isConstantExpression=BX;ct.isInStrictMode=jX;ct.isNodeType=vX;ct.isStatementOrBlock=IX;ct.isStatic=PX;ct.matchesPattern=EX;ct.referencesImport=kX;ct.resolve=FX;ct.willIMaybeExecuteBefore=OX;var hX=Ne(),{STATEMENT_OR_BLOCK_KEYS:dX,VISITOR_KEYS:mX,isBlockStatement:Ng,isExpression:yX,isIdentifier:TX,isLiteral:xX,isStringLiteral:gX,isType:bX,matchesPattern:SX}=hX;function EX(t,e){return SX(this.node,t,e)}ct.has=function(e){var r;let i=(r=this.node)==null?void 0:r[e];return i&&Array.isArray(i)?!!i.length:!!i};function PX(){return this.scope.isStatic(this.node)}ct.is=ct.has,ct.isnt=function(e){return!this.has(e)},ct.equals=function(e,r){return this.node[e]===r};function vX(t){return bX(this.type,t)}function AX(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function wX(t){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?Ng(t):this.isBlockStatement()?yX(t):!1}function CX(t){let e=this,r=!0;do{let{type:i,container:s}=e;if(!r&&(e.isFunction()||i==="StaticBlock"))return!!t;if(r=!1,Array.isArray(s)&&e.key!==s.length-1)return!1}while((e=e.parentPath)&&!e.isProgram()&&!e.isDoExpression());return!0}function IX(){return this.parentPath.isLabeledStatement()||Ng(this.container)?!1:dX.includes(this.key)}function kX(t,e){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===e||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?gX(this.node.property,{value:e}):this.node.property.name===e)){let n=this.get("object");return n.isReferencedIdentifier()&&n.referencesImport(t,"*")}return!1}let r=this.scope.getBinding(this.node.name);if(!r||r.kind!=="module")return!1;let i=r.path,s=i.parentPath;if(!s.isImportDeclaration())return!1;if(s.node.source.value===t){if(!e)return!0}else return!1;return!!(i.isImportDefaultSpecifier()&&e==="default"||i.isImportNamespaceSpecifier()&&e==="*"||i.isImportSpecifier()&&TX(i.node.imported,{name:e}))}function NX(){let t=this.node;if(t.end){let e=this.hub.getCode();if(e)return e.slice(t.start,t.end)}return""}function OX(t){return this._guessExecutionStatusRelativeTo(t)!=="after"}function Cg(t){return t.isProgram()?t:(t.parentPath.scope.getFunctionParent()||t.parentPath.scope.getProgramParent()).path}function _X(t,e){switch(t){case"LogicalExpression":return e==="right";case"ConditionalExpression":case"IfStatement":return e==="consequent"||e==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return e==="body";case"ForStatement":return e==="body"||e==="update";case"SwitchStatement":return e==="cases";case"TryStatement":return e==="handler";case"AssignmentPattern":return e==="right";case"OptionalMemberExpression":return e==="property";case"OptionalCallExpression":return e==="arguments";default:return!1}}function Ig(t,e){for(let r=0;r<e;r++){let i=t[r];if(_X(i.parent.type,i.parentKey))return!0}return!1}var kg=Symbol();function DX(t){return eh(this,t,new Map)}function eh(t,e,r){let i={this:Cg(t),target:Cg(e)};if(i.target.node!==i.this.node)return MX(t,i.target,r);let s={target:e.getAncestry(),this:t.getAncestry()};if(s.target.includes(t))return"after";if(s.this.includes(e))return"before";let n,a={target:0,this:0};for(;!n&&a.this<s.this.length;){let u=s.this[a.this];a.target=s.target.indexOf(u),a.target>=0?n=u:a.this++}if(!n)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(Ig(s.this,a.this-1)||Ig(s.target,a.target-1))return"unknown";let o={this:s.this[a.this-1],target:s.target[a.target-1]};if(o.target.listKey&&o.this.listKey&&o.target.container===o.this.container)return o.target.key>o.this.key?"before":"after";let l=mX[n.type],c={this:l.indexOf(o.this.parentKey),target:l.indexOf(o.target.parentKey)};return c.target>c.this?"before":"after"}function LX(t,e,r){if(e.isFunctionDeclaration()){if(e.parentPath.isExportDeclaration())return"unknown"}else return eh(t,e,r)==="before"?"before":"unknown";let i=e.scope.getBinding(e.node.id.name);if(!i.references)return"before";let s=i.referencePaths,n;for(let a of s){if(!!a.find(c=>c.node===e.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";let l=eh(t,a,r);if(n&&n!==l)return"unknown";n=l}return n}function MX(t,e,r){let i=r.get(t.node),s;if(!i)r.set(t.node,i=new Map);else if(s=i.get(e.node))return s===kg?"unknown":s;i.set(e.node,kg);let n=LX(t,e,r);return i.set(e.node,n),n}function FX(t,e){return Og.call(this,t,e)||this}function Og(t,e){var r;if(!((r=e)!=null&&r.includes(this)))if(e=e||[],e.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(t,e)}else if(this.isReferencedIdentifier()){let i=this.scope.getBinding(this.node.name);if(!i||!i.constant||i.kind==="module")return;if(i.path!==this){let s=i.path.resolve(t,e);return this.find(n=>n.node===s.node)?void 0:s}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(t,e);if(t&&this.isMemberExpression()){let i=this.toComputedKey();if(!xX(i))return;let s=i.value,n=this.get("object").resolve(t,e);if(n.isObjectExpression()){let a=n.get("properties");for(let o of a){if(!o.isProperty())continue;let l=o.get("key"),c=o.isnt("computed")&&l.isIdentifier({name:s});if(c=c||l.isLiteral({value:s}),c)return o.get("value").resolve(t,e)}}else if(n.isArrayExpression()&&!isNaN(+s)){let o=n.get("elements")[s];if(o)return o.resolve(t,e)}}}}function BX(){if(this.isIdentifier()){let t=this.scope.getBinding(this.node.name);return t?t.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(t=>t.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:t}=this.node;return t!=="in"&&t!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function jX(){return!!(this.isProgram()?this:this.parentPath).find(r=>{if(r.isProgram({sourceType:"module"})||r.isClass())return!0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return!1;let i;if(r.isFunction())i=r.node.body;else if(r.isProgram())i=r.node;else return!1;for(let s of i.directives)if(s.value.value==="use strict")return!0})}});var Bg=k(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At._getKey=Mg;At._getPattern=Fg;At.get=tH;At.getAllNextSiblings=ZX;At.getAllPrevSiblings=eH;At.getAssignmentIdentifiers=rH;At.getBindingIdentifierPaths=nH;At.getBindingIdentifiers=iH;At.getCompletionRecords=XX;At.getNextSibling=QX;At.getOpposite=YX;At.getOuterBindingIdentifierPaths=aH;At.getOuterBindingIdentifiers=sH;At.getPrevSibling=GX;At.getSibling=HX;var rh=zr(),RX=Ne(),{getAssignmentIdentifiers:qX,getBindingIdentifiers:Lg,getOuterBindingIdentifiers:UX,numericLiteral:$X,unaryExpression:KX}=RX,ih=0,Un=1;function WX(t){return{type:ih,path:t}}function VX(t){return{type:Un,path:t}}function YX(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function Is(t,e,r){return t&&e.push(...ks(t,r)),e}function zX(t,e,r){let i=[];for(let s=0;s<t.length;s++){let n=t[s],a=ks(n,r),o=[],l=[];for(let c of a)c.type===ih&&o.push(c),c.type===Un&&l.push(c);o.length&&(i=o),e.push(...l)}return e.push(...i),e}function JX(t){t.forEach(e=>{e.type=Un})}function th(t,e){t.forEach(r=>{r.path.isBreakStatement({label:null})&&(e?r.path.replaceWith(KX("void",$X(0))):r.path.remove())})}function Dg(t,e){let r=[];if(e.canHaveBreak){let i=[];for(let s=0;s<t.length;s++){let n=t[s],a=Object.assign({},e,{inCaseClause:!1});n.isBlockStatement()&&(e.inCaseClause||e.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let o=ks(n,a);if(o.length>0&&o.every(l=>l.type===Un)){i.length>0&&o.every(l=>l.path.isBreakStatement({label:null}))?(JX(i),r.push(...i),i.some(l=>l.path.isDeclaration())&&(r.push(...o),e.shouldPreserveBreak||th(o,!0)),e.shouldPreserveBreak||th(o,!1)):(r.push(...o),!e.shouldPopulateBreak&&!e.shouldPreserveBreak&&th(o,!0));break}if(s===t.length-1)r.push(...o);else{i=[];for(let l=0;l<o.length;l++){let c=o[l];c.type===Un&&r.push(c),c.type===ih&&i.push(c)}}}}else if(t.length)for(let i=t.length-1;i>=0;i--){let s=ks(t[i],e);if(s.length>1||s.length===1&&!s[0].path.isVariableDeclaration()&&!s[0].path.isEmptyStatement()){r.push(...s);break}}return r}function ks(t,e){let r=[];if(t.isIfStatement())r=Is(t.get("consequent"),r,e),r=Is(t.get("alternate"),r,e);else{if(t.isDoExpression()||t.isFor()||t.isWhile()||t.isLabeledStatement())return Is(t.get("body"),r,e);if(t.isProgram()||t.isBlockStatement())return Dg(t.get("body"),e);if(t.isFunction())return ks(t.get("body"),e);if(t.isTryStatement())r=Is(t.get("block"),r,e),r=Is(t.get("handler"),r,e);else{if(t.isCatchClause())return Is(t.get("body"),r,e);if(t.isSwitchStatement())return zX(t.get("cases"),r,e);if(t.isSwitchCase())return Dg(t.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:e.shouldPreserveBreak});t.isBreakStatement()?r.push(VX(t)):r.push(WX(t))}}return r}function XX(t=!1){return ks(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:t}).map(r=>r.path)}function HX(t){return rh.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:t}).setContext(this.context)}function GX(){return this.getSibling(this.key-1)}function QX(){return this.getSibling(this.key+1)}function ZX(){let t=this.key,e=this.getSibling(++t),r=[];for(;e.node;)r.push(e),e=this.getSibling(++t);return r}function eH(){let t=this.key,e=this.getSibling(--t),r=[];for(;e.node;)r.push(e),e=this.getSibling(--t);return r}function tH(t,e=!0){e===!0&&(e=this.context);let r=t.split(".");return r.length===1?Mg.call(this,t,e):Fg.call(this,r,e)}function Mg(t,e){let r=this.node,i=r[t];return Array.isArray(i)?i.map((s,n)=>rh.default.get({listKey:t,parentPath:this,parent:r,container:i,key:n}).setContext(e)):rh.default.get({parentPath:this,parent:r,container:r,key:t}).setContext(e)}function Fg(t,e){let r=this;for(let i of t)i==="."?r=r.parentPath:Array.isArray(r)?r=r[i]:r=r.get(i,e);return r}function rH(){return qX(this.node)}function iH(t){return Lg(this.node,t)}function sH(t){return UX(this.node,t)}function nH(t=!1,e=!1){let i=[this],s=Object.create(null);for(;i.length;){let n=i.shift();if(!n||!n.node)continue;let a=Lg.keys[n.node.type];if(n.isIdentifier()){t?(s[n.node.name]=s[n.node.name]||[]).push(n):s[n.node.name]=n;continue}if(n.isExportDeclaration()){let o=n.get("declaration");o.isDeclaration()&&i.push(o);continue}if(e){if(n.isFunctionDeclaration()){i.push(n.get("id"));continue}if(n.isFunctionExpression())continue}if(a)for(let o=0;o<a.length;o++){let l=a[o],c=n.get(l);Array.isArray(c)?i.push(...c):c.node&&i.push(c)}}return s}function aH(t=!1){return this.getBindingIdentifierPaths(t,!0)}});var Rg=k($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.addComment=pH;$n.addComments=fH;$n.shareCommentsWithSiblings=uH;var oH=Ne(),{addComment:lH,addComments:cH}=oH;function uH(){if(typeof this.key=="string")return;let t=this.node;if(!t)return;let e=t.trailingComments,r=t.leadingComments;if(!e&&!r)return;let i=this.getSibling(this.key-1),s=this.getSibling(this.key+1),n=!!i.node,a=!!s.node;n&&(r&&i.addComments("trailing",jg(r,i.node.trailingComments)),e&&!a&&i.addComments("trailing",e)),a&&(e&&s.addComments("leading",jg(e,s.node.leadingComments)),r&&!n&&s.addComments("leading",r))}function jg(t,e){if(!(e!=null&&e.length))return t;let r=new Set(e);return t.filter(i=>!r.has(i))}function pH(t,e,r){lH(this.node,t,e,r)}function fH(t,e){cH(this.node,t,e)}});var zr=k(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.default=Mr.SHOULD_STOP=Mr.SHOULD_SKIP=Mr.REMOVED=void 0;var hH=mc(),dH=cm(),mH=In(),yH=_p(),$g=Ne(),Xo=$g,TH=Bi(),xH=Z0(),Dr=ex(),Ns=bx(),Os=Cf(),qg=ng(),Yi=wg(),ht=_g(),Kg=Tr(),ut=Kg,_s=qo(),Lr=Uo(),qt=Bg(),sh=Rg(),gH=Ap(),{validate:bH}=$g,Ug=dH("babel"),Soe=Mr.REMOVED=1,Eoe=Mr.SHOULD_STOP=2,Poe=Mr.SHOULD_SKIP=4,Xr=Mr.default=class Wg{constructor(e,r){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=r,this.hub=e,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:e,parentPath:r,parent:i,container:s,listKey:n,key:a}){if(!e&&r&&(e=r.hub),!i)throw new Error("To get a node path the parent needs to exist");let o=s[a],l=TH.getOrCreateCachedPaths(i,r),c=l.get(o);return c||(c=new Wg(e,i),o&&l.set(o,c)),Kg.setup.call(c,r,s,n,a),c}getScope(e){return this.isScope()?new yH.default(this):e}setData(e,r){return this.data==null&&(this.data=Object.create(null)),this.data[e]=r}getData(e,r){this.data==null&&(this.data=Object.create(null));let i=this.data[e];return i===void 0&&r!==void 0&&(i=this.data[e]=r),i}hasNode(){return this.node!=null}buildCodeFrameError(e,r=SyntaxError){return this.hub.buildError(this.node,e,r)}traverse(e,r){(0,mH.default)(this.node,e,this.scope,r,this)}set(e,r){bH(this.node,e,r),this.node[e]=r}getPathLocation(){let e=[],r=this;do{let i=r.key;r.inList&&(i=`${r.listKey}[${i}]`),e.unshift(i)}while(r=r.parentPath);return e.join(".")}debug(e){Ug.enabled&&Ug(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,xH.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},SH={findParent:Dr.findParent,find:Dr.find,getFunctionParent:Dr.getFunctionParent,getStatementParent:Dr.getStatementParent,getEarliestCommonAncestorFrom:Dr.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:Dr.getDeepestCommonAncestorFrom,getAncestry:Dr.getAncestry,isAncestor:Dr.isAncestor,isDescendant:Dr.isDescendant,inType:Dr.inType,getTypeAnnotation:Ns.getTypeAnnotation,isBaseType:Ns.isBaseType,couldBeBaseType:Ns.couldBeBaseType,baseTypeStrictlyMatches:Ns.baseTypeStrictlyMatches,isGenericType:Ns.isGenericType,replaceWithMultiple:Os.replaceWithMultiple,replaceWithSourceString:Os.replaceWithSourceString,replaceWith:Os.replaceWith,replaceExpressionWithStatements:Os.replaceExpressionWithStatements,replaceInline:Os.replaceInline,evaluateTruthy:qg.evaluateTruthy,evaluate:qg.evaluate,toComputedKey:Yi.toComputedKey,ensureBlock:Yi.ensureBlock,unwrapFunctionEnvironment:Yi.unwrapFunctionEnvironment,arrowFunctionToExpression:Yi.arrowFunctionToExpression,splitExportDeclaration:Yi.splitExportDeclaration,ensureFunctionName:Yi.ensureFunctionName,matchesPattern:ht.matchesPattern,isStatic:ht.isStatic,isNodeType:ht.isNodeType,canHaveVariableDeclarationOrExpression:ht.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:ht.canSwapBetweenExpressionAndStatement,isCompletionRecord:ht.isCompletionRecord,isStatementOrBlock:ht.isStatementOrBlock,referencesImport:ht.referencesImport,getSource:ht.getSource,willIMaybeExecuteBefore:ht.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:ht._guessExecutionStatusRelativeTo,resolve:ht.resolve,isConstantExpression:ht.isConstantExpression,isInStrictMode:ht.isInStrictMode,isDenylisted:ut.isDenylisted,visit:ut.visit,skip:ut.skip,skipKey:ut.skipKey,stop:ut.stop,setContext:ut.setContext,requeue:ut.requeue,requeueComputedKeyAndDecorators:ut.requeueComputedKeyAndDecorators,remove:_s.remove,insertBefore:Lr.insertBefore,insertAfter:Lr.insertAfter,unshiftContainer:Lr.unshiftContainer,pushContainer:Lr.pushContainer,getOpposite:qt.getOpposite,getCompletionRecords:qt.getCompletionRecords,getSibling:qt.getSibling,getPrevSibling:qt.getPrevSibling,getNextSibling:qt.getNextSibling,getAllNextSiblings:qt.getAllNextSiblings,getAllPrevSiblings:qt.getAllPrevSiblings,get:qt.get,getAssignmentIdentifiers:qt.getAssignmentIdentifiers,getBindingIdentifiers:qt.getBindingIdentifiers,getOuterBindingIdentifiers:qt.getOuterBindingIdentifiers,getBindingIdentifierPaths:qt.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:qt.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:sh.shareCommentsWithSiblings,addComment:sh.addComment,addComments:sh.addComments};Object.assign(Xr.prototype,SH);Xr.prototype.arrowFunctionToShadowed=Yi.arrowFunctionToShadowed,Object.assign(Xr.prototype,{has:ht.has,is:ht.is,isnt:ht.isnt,equals:ht.equals,hoist:Lr.hoist,updateSiblingKeys:Lr.updateSiblingKeys,call:ut.call,isBlacklisted:ut.isBlacklisted,setScope:ut.setScope,resync:ut.resync,popContext:ut.popContext,pushContext:ut.pushContext,setup:ut.setup,setKey:ut.setKey});Xr.prototype._guessExecutionStatusRelativeToDifferentFunctions=ht._guessExecutionStatusRelativeTo,Xr.prototype._guessExecutionStatusRelativeToDifferentFunctions=ht._guessExecutionStatusRelativeTo,Object.assign(Xr.prototype,{_getTypeAnnotation:Ns._getTypeAnnotation,_replaceWith:Os._replaceWith,_resolve:ht._resolve,_call:ut._call,_resyncParent:ut._resyncParent,_resyncKey:ut._resyncKey,_resyncList:ut._resyncList,_resyncRemoved:ut._resyncRemoved,_getQueueContexts:ut._getQueueContexts,_removeFromScope:_s._removeFromScope,_callRemovalHooks:_s._callRemovalHooks,_remove:_s._remove,_markRemoved:_s._markRemoved,_assertUnremoved:_s._assertUnremoved,_containerInsert:Lr._containerInsert,_containerInsertBefore:Lr._containerInsertBefore,_containerInsertAfter:Lr._containerInsertAfter,_verifyNodeList:Lr._verifyNodeList,_getKey:qt._getKey,_getPattern:qt._getPattern});for(let t of Xo.TYPES){let e=`is${t}`,r=Xo[e];Xr.prototype[e]=function(i){return r(this.node,i)},Xr.prototype[`assert${t}`]=function(i){if(!r(this.node,i))throw new TypeError(`Expected node path of type ${t}`)}}Object.assign(Xr.prototype,gH);for(let t of Object.keys(hH))t[0]!=="_"&&(Xo.TYPES.includes(t)||Xo.TYPES.push(t))});var Vg=k(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.default=void 0;var EH=zr(),PH=Ne(),nh=Tr(),{VISITOR_KEYS:vH}=PH,ah=class{constructor(e,r,i,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=e,this.state=i,this.opts=r}shouldVisit(e){let r=this.opts;if(r.enter||r.exit||r[e.type])return!0;let i=vH[e.type];if(!(i!=null&&i.length))return!1;for(let s of i)if(e[s])return!0;return!1}create(e,r,i,s){return EH.default.get({parentPath:this.parentPath,parent:e,container:r,key:i,listKey:s})}maybeQueue(e,r){this.queue&&(r?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,r,i){if(e.length===0)return!1;let s=[];for(let n=0;n<e.length;n++){let a=e[n];a&&this.shouldVisit(a)&&s.push(this.create(r,e,n,i))}return this.visitQueue(s)}visitSingle(e,r){return this.shouldVisit(e[r])?this.visitQueue([this.create(e,e,r)]):!1}visitQueue(e){this.queue=e,this.priorityQueue=[];let r=new WeakSet,i=!1,s=0;for(;s<e.length;){let n=e[s];if(s++,nh.resync.call(n),(n.contexts.length===0||n.contexts[n.contexts.length-1]!==this)&&nh.pushContext.call(n,this),n.key===null)continue;let{node:a}=n;if(!r.has(a)){if(a&&r.add(a),n.visit()){i=!0;break}if(this.priorityQueue.length&&(i=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,i))break}}for(let n=0;n<s;n++)nh.popContext.call(e[n]);return this.queue=null,i}visit(e,r){let i=e[r];return i?Array.isArray(i)?this.visitMultiple(i,e,r):this.visitSingle(e,r):!1}};Ho.default=ah});var ho=k(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.traverseNode=IH;var AH=Vg(),woe=zr(),wH=Ne(),Coe=Tr(),{VISITOR_KEYS:CH}=wH;function IH(t,e,r,i,s,n,a){let o=CH[t.type];if(!o)return!1;let l=new AH.default(r,e,i,s);if(a)return n!=null&&n[s.parentKey]?!1:l.visitQueue([s]);for(let c of o)if(!(n!=null&&n[c])&&l.visit(t,c))return!0;return!1}});var Tr=k(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt._call=ch;nt._getQueueContexts=WH;nt._resyncKey=Gg;nt._resyncList=Qg;nt._resyncParent=Hg;nt._resyncRemoved=jH;nt.call=lh;nt.isDenylisted=Jg;nt.popContext=RH;nt.pushContext=qH;nt.requeue=$H;nt.requeueComputedKeyAndDecorators=KH;nt.resync=BH;nt.setContext=FH;nt.setKey=Go;nt.setScope=Xg;nt.setup=UH;nt.skip=DH;nt.skipKey=LH;nt.stop=MH;nt.visit=_H;var kH=ho(),Yg=zr(),NH=qo(),OH=Ne();function lh(t){let e=this.opts;if(this.debug(t),this.node&&ch.call(this,e[t]))return!0;if(this.node){var r;return ch.call(this,(r=e[this.node.type])==null?void 0:r[t])}return!1}function ch(t){if(!t)return!1;for(let e of t){if(!e)continue;let r=this.node;if(!r)return!0;let i=e.call(this.state,this,this.state);if(i&&typeof i=="object"&&typeof i.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(i)throw new Error(`Unexpected return value from visitor method ${e}`);if(this.node!==r||this._traverseFlags>0)return!0}return!1}function Jg(){var t;let e=(t=this.opts.denylist)!=null?t:this.opts.blacklist;return e?.includes(this.node.type)}nt.isBlacklisted=Jg;function zg(t,e){t.context!==e&&(t.context=e,t.state=e.state,t.opts=e.opts)}function _H(){var t,e;if(!this.node||this.isDenylisted()||(t=(e=this.opts).shouldSkip)!=null&&t.call(e,this))return!1;let r=this.context;return this.shouldSkip||lh.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(zg(this,r),this.debug("Recursing into..."),this.shouldStop=(0,kH.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),zg(this,r),lh.call(this,"exit"),this.shouldStop)}function DH(){this.shouldSkip=!0}function LH(t){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[t]=!0}function MH(){this._traverseFlags|=Yg.SHOULD_SKIP|Yg.SHOULD_STOP}function Xg(){var t,e;if((t=this.opts)!=null&&t.noScope)return;let r=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&r.isMethod()||this.key==="discriminant"&&r.isSwitchStatement())&&(r=r.parentPath);let i;for(;r&&!i;){var s;if((s=r.opts)!=null&&s.noScope)return;i=r.scope,r=r.parentPath}this.scope=this.getScope(i),(e=this.scope)==null||e.init()}function FH(t){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,t&&(this.context=t,this.state=t.state,this.opts=t.opts),Xg.call(this),this}function BH(){this.removed||(Hg.call(this),Qg.call(this),Gg.call(this))}function Hg(){this.parentPath&&(this.parent=this.parentPath.node)}function Gg(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let t=0;t<this.container.length;t++)if(this.container[t]===this.node){Go.call(this,t);return}}else for(let t of Object.keys(this.container))if(this.container[t]===this.node){Go.call(this,t);return}this.key=null}}function Qg(){if(!this.parent||!this.inList)return;let t=this.parent[this.listKey];this.container!==t&&(this.container=t||null)}function jH(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&NH._markRemoved.call(this)}function RH(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function qH(t){this.contexts.push(t),this.setContext(t)}function UH(t,e,r,i){this.listKey=r,this.container=e,this.parentPath=t||this.parentPath,Go.call(this,i)}function Go(t){var e;this.key=t,this.node=this.container[this.key],this.type=(e=this.node)==null?void 0:e.type}function $H(t=this){if(t.removed)return;let e=this.contexts;for(let r of e)r.maybeQueue(t)}function KH(){let{context:t,node:e}=this;if(!OH.isPrivate(e)&&e.computed&&t.maybeQueue(this.get("key")),e.decorators)for(let r of this.get("decorators"))t.maybeQueue(r)}function WH(){let t=this,e=this.contexts;for(;!e.length&&(t=t.parentPath,!!t);)e=t.contexts;return e}});var Zg=k(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=void 0;var uh=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,r,i=TypeError){return new i(r)}};Qo.default=uh});var In=k(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Object.defineProperty(Hr,"Hub",{enumerable:!0,get:function(){return XH.default}});Object.defineProperty(Hr,"NodePath",{enumerable:!0,get:function(){return zH.default}});Object.defineProperty(Hr,"Scope",{enumerable:!0,get:function(){return JH.default}});Hr.visitors=Hr.default=void 0;Tr();var Wn=uo();Hr.visitors=Wn;var VH=Ne(),YH=Bi(),eb=ho(),zH=zr(),JH=_p(),XH=Zg(),{VISITOR_KEYS:HH,removeProperties:GH,traverseFast:Kn}=VH;function Sr(t,e={},r,i,s,n){if(t){if(!e.noScope&&!r&&t.type!=="Program"&&t.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${t.type} node without passing scope and parentPath.`);if(!s&&n)throw new Error("visitSelf can only be used when providing a NodePath.");HH[t.type]&&(Wn.explode(e),(0,eb.traverseNode)(t,e,r,i,s,null,n))}}var Ooe=Hr.default=Sr;Sr.visitors=Wn;Sr.verify=Wn.verify;Sr.explode=Wn.explode;Sr.cheap=function(t,e){Kn(t,e)};Sr.node=function(t,e,r,i,s,n){(0,eb.traverseNode)(t,e,r,i,s,n)};Sr.clearNode=function(t,e){GH(t,e)};Sr.removeProperties=function(t,e){return Kn(t,Sr.clearNode,e),t};Sr.hasType=function(t,e,r){return r!=null&&r.includes(t.type)?!1:t.type===e?!0:Kn(t,function(i){if(r!=null&&r.includes(i.type))return Kn.skip;if(i.type===e)return Kn.stop})};Sr.cache=YH});var rb=k((Doe,tb)=>{var QH=require("fs"),ZH=Fa(),eG=In().default;function tG(t){let e=QH.readFileSync(t,"utf-8"),r=new Set,i,s={};try{i=ZH.parse(e,{sourceType:"module",plugins:["jsx","typescript","classProperties","objectRestSpread","optionalChaining","nullishCoalescingOperator"]})}catch{return[]}function n(o){o&&(o.type==="StringLiteral"||o.type==="Literal"?o.value.split(/\s+/).forEach(l=>r.add(l)):o.type==="ArrayExpression"?o.elements.forEach(l=>n(l)):o.type==="TemplateLiteral"?(o.quasis.forEach(l=>l.value.cooked.split(/\s+/).forEach(c=>r.add(c))),o.expressions.forEach(l=>n(l))):o.type==="Identifier"&&s[o.name]?s[o.name].forEach(l=>r.add(l)):o.type==="BinaryExpression"&&o.operator==="+"?(n(o.left),n(o.right)):o.type==="ConditionalExpression"?(n(o.consequent),n(o.alternate)):o.type==="LogicalExpression"&&(n(o.left),n(o.right)))}function a(o){o&&(o.type==="ObjectExpression"?o.properties.forEach(l=>{l&&l.key&&((l.key.type==="Identifier"&&l.key.name==="className"||l.key.type==="StringLiteral"&&l.key.value==="className")&&l.value.type==="ArrayExpression"&&l.value.elements.forEach(c=>{c&&c.type==="StringLiteral"&&c.value.split(/\s+/).forEach(u=>r.add(u))}),a(l.value))}):o.type==="ArrayExpression"&&o.elements.forEach(l=>a(l)))}return eG(i,{VariableDeclarator(o){if(o.node.init&&o.node.id.type==="Identifier"){if(o.node.init.type==="ArrayExpression"||o.node.init.type==="StringLiteral"){let l=[];o.node.init.type==="ArrayExpression"?o.node.init.elements.forEach(c=>{c&&c.type==="StringLiteral"&&c.value.split(/\s+/).forEach(u=>l.push(u))}):o.node.init.type==="StringLiteral"&&o.node.init.value.split(/\s+/).forEach(c=>l.push(c)),s[o.node.id.name]=l.filter(Boolean)}(o.node.init.type==="ArrayExpression"||o.node.init.type==="ObjectExpression")&&a(o.node.init)}},JSXAttribute(o){if(typeof o.node.name.name=="string"&&/^(class(Name)?|.*[cC]lass)$/.test(o.node.name.name)){let l=o.node.value;l&&(l.type==="StringLiteral"?l.value.split(/\s+/).forEach(c=>r.add(c)):l.type==="JSXExpressionContainer"&&function c(u){u&&(u.type==="StringLiteral"||u.type==="Literal"?u.value.split(/\s+/).forEach(d=>r.add(d)):u.type==="TemplateLiteral"?(u.quasis.forEach(d=>d.value.cooked.split(/\s+/).forEach(x=>r.add(x))),u.expressions.forEach(d=>c(d))):u.type==="ArrayExpression"?u.elements.forEach(d=>c(d)):u.type==="ObjectExpression"?u.properties.forEach(d=>c(d.value)):u.type==="ArrowFunctionExpression"||u.type==="FunctionExpression"?c(u.body):u.type==="BlockStatement"?u.body.forEach(c):u.type==="ReturnStatement"?c(u.argument):(u.type==="ConditionalExpression"||u.type==="LogicalExpression"||u.type==="BinaryExpression")&&(c(u.left),c(u.right),u.consequent&&c(u.consequent),u.alternate&&c(u.alternate)))}(l.expression))}},ObjectProperty(o){o.node.value&&(o.node.value.type==="StringLiteral"||o.node.value.type==="Literal")&&o.node.value.value.split(/\s+/).forEach(l=>r.add(l))},ReturnStatement(o){o.node.argument&&(o.node.argument.type==="StringLiteral"||o.node.argument.type==="Literal")&&o.node.argument.value.split(/\s+/).forEach(l=>r.add(l))},AssignmentExpression(o){o.node.operator==="+="&&o.node.right&&(o.node.right.type==="StringLiteral"||o.node.right.type==="Literal")&&o.node.right.value.split(/\s+/).forEach(l=>r.add(l))}}),a(i),function o(l){l&&(Array.isArray(l)?l.forEach(o):typeof l=="object"&&(l.type==="ObjectExpression"?l.properties.forEach(c=>{var u;(u=c.key)&&(u.type==="Identifier"?/class(Name)?$/i.test(u.name):u.type==="StringLiteral"&&/class(Name)?$/i.test(u.value))&&(c.value.type==="StringLiteral"?c.value.value.split(/\s+/).forEach(d=>r.add(d)):c.value.type==="ArrayExpression"&&c.value.elements.forEach(d=>{d&&d.type==="StringLiteral"&&d.value.split(/\s+/).forEach(x=>r.add(x))})),o(c.value)}):Object.values(l).forEach(o)))}(i),Array.from(r).filter(Boolean)}tb.exports=tG});var cb=require("fs"),rG=require("path"),iG=bh(),sG=Ed(),nG=wd(),aG=rb(),oG=(t,e)=>nG(t,e||{},{arrayMerge:(r,i)=>i}),lG=()=>{let t=rG.resolve(process.cwd(),"unicss.config.js");try{return require(t)}catch{return{}}},cG=oG(iG,lG()),Nt=t=>/\[.*\]/.test(t)?t.replace(/([:\/\.\[\]\(\)\?\=\&\,\'\;\+\"#%\*!])/g,"\\$1"):t.replace(/([:\/\.\[\]\(\)\?\=\&\,\'\"#%\*!])/g,"\\$1").replace(/^([0-9])|\.(\d)/g,"\\$1$2"),B=(t,e)=>{let r=t.replace(/[\[\]]/g,"");return e==="bg-image"||e==="mask-image"||e==="list-image"?/^url\(/i.test(r.trim())?r:r.replace(/_/g," "):e==="list-image"?r:r.replace(/_/g," ")},ib=t=>(cb.readFileSync(t,"utf-8").match(/(?:class|className|\w*[Cc]lass)=["']([\s\S]*?)["']/g)||[]).map(e=>e.replace(/(?:class|className|\w*[Cc]lass)=["']/,"").replace(/["']$/,"").split(/\s+/)).flat().filter(Boolean),ph={first:"first-child",last:"last-child","not-first":"not(:first-child)","not-last":"not(:last-child)",odd:"nth-child(odd)",even:"nth-child(even)",placeholder:":placeholder",file:":file-selector-button",marker:":marker",selection:":selection","first-line":":first-line","first-letter":":first-letter",backdrop:":backdrop","has-checked":"has(:checked)","peer-hover":":hover","peer-focus":":focus","peer-active":":active","peer-invalid":":invalid","peer-checked":":checked","peer-disabled":":disabled","peer-required":":required","peer-read-only":":read-only","peer-indeterminate":":indeterminate"},fh=t=>{if(t.startsWith("group-hover/"))return`is(:where(.group\\/${t.replace("group-hover/","")}):hover *)`;if(t==="group-hover")return"is(:where(.group):hover *)";if(t.startsWith("peer-")&&t.includes("/")){let[e,r]=t.split("/");return`.peer\\/${r}${ph[`peer-${e}`]||`:${e.replace("peer-","")}`} ~ `}return t.startsWith("peer-")?`.peer${ph[t]||`:${t.replace("peer-","")}`} ~ `:ph[t]||`${t}`},Ee=t=>{t=t.replace(/[\[\]]/g,"");let e=t.match(/^rgb\((\d+)_(\d+)_(\d+)(?:_\/(\d+))?\)$/);if(e){let[,i,s,n,a]=e,o=a?parseInt(a,10)/100:1;return`rgba(${i},${s},${n},${o})`}let r=t.match(/^rgb\((\d+),(\d+),(\d+)(?:,(\d*\.?\d+))?\)$/);if(r){let[,i,s,n,a]=r;return`rgba(${i},${s},${n},${a||1})`}if(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{3}$/.test(t))return t;if(t.includes("/")){let[i,s]=t.split("/");if(i.startsWith("#")){let n=i.replace("#","");n.length===3&&(n=n.split("").map(c=>c+c).join(""));let a=parseInt(n.substring(0,2),16),o=parseInt(n.substring(2,4),16),l=parseInt(n.substring(4,6),16);return`rgba(${a},${o},${l},${parseInt(s,10)/100})`}return`color-mix(in srgb, var(--color-${i}) ${parseInt(s,10)}%, transparent)`}return`var(--color-${t})`},ye=t=>/^\d+\/\d+$/.test(t)?`${t.replace(/^(\d+)\/(\d+)$/,(e,r,i)=>`${parseInt(r,10)/parseInt(i,10)*100}%`)}`:`var(--${t})`,ze=t=>/^\d+\/\d+$/.test(t)?`-${t.replace(/^(\d+)\/(\d+)$/,(e,r,i)=>`${parseInt(r,10)/parseInt(i,10)*100}%`)}`:`calc(-1 * var(--${t}))`,uG=t=>{let e=t.split(" ");if(e.length===1){let r=ye(e[0]);return`${r} ${r}`}return e.map(ye).join(" ")},pG=t=>{let e=t.split(" ");if(e.length===1){let r=ze(e[0]);return`${r} ${r}`}return e.map(ze).join(" ")},sb=["--uni-blur","--uni-drop-shadow","--uni-brightness","--uni-contrast","--uni-grayscale","--uni-hue-rotate","--uni-invert","--uni-saturate","--uni-sepia"],nb=["--uni-backdrop-blur","--uni-backdrop-brightness","--uni-backdrop-contrast","--uni-backdrop-grayscale","--uni-backdrop-hue-rotate","--uni-backdrop-invert","--uni-backdrop-saturate","--uni-backdrop-opacity","--uni-backdrop-sepia"],fG=["--uni-shadow","--uni-shadow-color","--uni-inset-shadow-color","--uni-ring-shadow","--uni-ring-color","--uni-inset-ring-shadow","--uni-ring-inset","--uni-inset-shadow","--uni-inset-ring-shadow"],ab=["--uni-rotate-x","--uni-rotate-y","--uni-rotate-z","--uni-skew-x","--uni-skew-y"],ob=["--uni-scale-x","--uni-scale-y"],lb=["--uni-translate-x","--uni-translate-y","--uni-translate-z"],Jt=(t,e,r,i,s=null,n=null,a=!1)=>{let o=Nt(t),l=a?`.${o} > *`:s&&(s.startsWith("peer-")||s.includes("peer-"))?`${fh(s)}.${o}`:s?`.${o}:${fh(s)}`:`.${o}`,c=sb.includes(r),u=nb.includes(r),d=fG.includes(r),x=ab.includes(r),E=ob.includes(r),v=lb.includes(r),A=typeof i=="object"?Object.entries(i).map(([I,O])=>`${I}: ${O}`).join("; "):Array.isArray(r)?r.map(I=>`${I}: ${i}`).join("; "):`${r}: ${i}`;return c?{selector:l,rule:`${l} { ${A}; filter: ${sb.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:u?{selector:l,rule:`${l} { ${A}; backdrop-filter: ${nb.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:d?{selector:l,rule:`${l} { ${A}; box-shadow: var(--uni-inset-shadow, 0 0 #0000), var(--uni-inset-ring-shadow, 0 0 #0000), var(--uni-ring-shadow, 0 0 #0000), var(--uni-shadow, 0 0 #0000); }`,screen:n}:x?{selector:l,rule:`${l} { ${A}; transform: ${ab.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:E?{selector:l,rule:`${l} { ${A}; scale: ${ob.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:v?{selector:l,rule:`${l} { ${A}; translate: ${lb.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:{selector:l,rule:`${l} { ${A} }`,screen:n}};function hG(){let{sizing:t={},spacing:e={},colors:r={},breakpoints:i={},layout:s={},flexGrid:n={},typography:a={},background:o={},border:l={},effects:c={},filters:u={},table:d={},transition:x={},transforms:E={},interactivity:v={},svg:A={},rootClass:I={}}=cG.theme.extend,O=["html","js","jsx","ts","tsx","vue"].flatMap(h=>sG.sync(`**/*.${h}`,{cwd:process.cwd(),absolute:!0,ignore:["**/node_modules/**","**/dist/**","**/build/**"]})).filter(h=>cb.statSync(h).isFile()),j=Array.from(new Set(O.flatMap(h=>{if(!(h.endsWith(".js")||h.endsWith(".jsx")||h.endsWith(".ts")||h.endsWith(".tsx")))return ib(h);try{return aG(h)}catch{return ib(h)}}))),U={main:`
56
+ `;return this.replaceWith(c)[0].get("arguments.0")}function fX(t){let e=t.params.findIndex(r=>KJ(r)||WJ(r));return e===-1?t.params.length:e}});var _g=k(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct._guessExecutionStatusRelativeTo=DX;ct._resolve=Og;ct.canHaveVariableDeclarationOrExpression=AX;ct.canSwapBetweenExpressionAndStatement=wX;ct.getSource=NX;ct.isCompletionRecord=CX;ct.isConstantExpression=BX;ct.isInStrictMode=jX;ct.isNodeType=vX;ct.isStatementOrBlock=IX;ct.isStatic=PX;ct.matchesPattern=EX;ct.referencesImport=kX;ct.resolve=FX;ct.willIMaybeExecuteBefore=OX;var hX=Ne(),{STATEMENT_OR_BLOCK_KEYS:dX,VISITOR_KEYS:mX,isBlockStatement:Ng,isExpression:yX,isIdentifier:TX,isLiteral:xX,isStringLiteral:gX,isType:bX,matchesPattern:SX}=hX;function EX(t,e){return SX(this.node,t,e)}ct.has=function(e){var r;let i=(r=this.node)==null?void 0:r[e];return i&&Array.isArray(i)?!!i.length:!!i};function PX(){return this.scope.isStatic(this.node)}ct.is=ct.has,ct.isnt=function(e){return!this.has(e)},ct.equals=function(e,r){return this.node[e]===r};function vX(t){return bX(this.type,t)}function AX(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function wX(t){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?Ng(t):this.isBlockStatement()?yX(t):!1}function CX(t){let e=this,r=!0;do{let{type:i,container:s}=e;if(!r&&(e.isFunction()||i==="StaticBlock"))return!!t;if(r=!1,Array.isArray(s)&&e.key!==s.length-1)return!1}while((e=e.parentPath)&&!e.isProgram()&&!e.isDoExpression());return!0}function IX(){return this.parentPath.isLabeledStatement()||Ng(this.container)?!1:dX.includes(this.key)}function kX(t,e){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===e||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?gX(this.node.property,{value:e}):this.node.property.name===e)){let n=this.get("object");return n.isReferencedIdentifier()&&n.referencesImport(t,"*")}return!1}let r=this.scope.getBinding(this.node.name);if(!r||r.kind!=="module")return!1;let i=r.path,s=i.parentPath;if(!s.isImportDeclaration())return!1;if(s.node.source.value===t){if(!e)return!0}else return!1;return!!(i.isImportDefaultSpecifier()&&e==="default"||i.isImportNamespaceSpecifier()&&e==="*"||i.isImportSpecifier()&&TX(i.node.imported,{name:e}))}function NX(){let t=this.node;if(t.end){let e=this.hub.getCode();if(e)return e.slice(t.start,t.end)}return""}function OX(t){return this._guessExecutionStatusRelativeTo(t)!=="after"}function Cg(t){return t.isProgram()?t:(t.parentPath.scope.getFunctionParent()||t.parentPath.scope.getProgramParent()).path}function _X(t,e){switch(t){case"LogicalExpression":return e==="right";case"ConditionalExpression":case"IfStatement":return e==="consequent"||e==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return e==="body";case"ForStatement":return e==="body"||e==="update";case"SwitchStatement":return e==="cases";case"TryStatement":return e==="handler";case"AssignmentPattern":return e==="right";case"OptionalMemberExpression":return e==="property";case"OptionalCallExpression":return e==="arguments";default:return!1}}function Ig(t,e){for(let r=0;r<e;r++){let i=t[r];if(_X(i.parent.type,i.parentKey))return!0}return!1}var kg=Symbol();function DX(t){return eh(this,t,new Map)}function eh(t,e,r){let i={this:Cg(t),target:Cg(e)};if(i.target.node!==i.this.node)return MX(t,i.target,r);let s={target:e.getAncestry(),this:t.getAncestry()};if(s.target.includes(t))return"after";if(s.this.includes(e))return"before";let n,a={target:0,this:0};for(;!n&&a.this<s.this.length;){let u=s.this[a.this];a.target=s.target.indexOf(u),a.target>=0?n=u:a.this++}if(!n)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(Ig(s.this,a.this-1)||Ig(s.target,a.target-1))return"unknown";let o={this:s.this[a.this-1],target:s.target[a.target-1]};if(o.target.listKey&&o.this.listKey&&o.target.container===o.this.container)return o.target.key>o.this.key?"before":"after";let l=mX[n.type],c={this:l.indexOf(o.this.parentKey),target:l.indexOf(o.target.parentKey)};return c.target>c.this?"before":"after"}function LX(t,e,r){if(e.isFunctionDeclaration()){if(e.parentPath.isExportDeclaration())return"unknown"}else return eh(t,e,r)==="before"?"before":"unknown";let i=e.scope.getBinding(e.node.id.name);if(!i.references)return"before";let s=i.referencePaths,n;for(let a of s){if(!!a.find(c=>c.node===e.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";let l=eh(t,a,r);if(n&&n!==l)return"unknown";n=l}return n}function MX(t,e,r){let i=r.get(t.node),s;if(!i)r.set(t.node,i=new Map);else if(s=i.get(e.node))return s===kg?"unknown":s;i.set(e.node,kg);let n=LX(t,e,r);return i.set(e.node,n),n}function FX(t,e){return Og.call(this,t,e)||this}function Og(t,e){var r;if(!((r=e)!=null&&r.includes(this)))if(e=e||[],e.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(t,e)}else if(this.isReferencedIdentifier()){let i=this.scope.getBinding(this.node.name);if(!i||!i.constant||i.kind==="module")return;if(i.path!==this){let s=i.path.resolve(t,e);return this.find(n=>n.node===s.node)?void 0:s}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(t,e);if(t&&this.isMemberExpression()){let i=this.toComputedKey();if(!xX(i))return;let s=i.value,n=this.get("object").resolve(t,e);if(n.isObjectExpression()){let a=n.get("properties");for(let o of a){if(!o.isProperty())continue;let l=o.get("key"),c=o.isnt("computed")&&l.isIdentifier({name:s});if(c=c||l.isLiteral({value:s}),c)return o.get("value").resolve(t,e)}}else if(n.isArrayExpression()&&!isNaN(+s)){let o=n.get("elements")[s];if(o)return o.resolve(t,e)}}}}function BX(){if(this.isIdentifier()){let t=this.scope.getBinding(this.node.name);return t?t.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(t=>t.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:t}=this.node;return t!=="in"&&t!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function jX(){return!!(this.isProgram()?this:this.parentPath).find(r=>{if(r.isProgram({sourceType:"module"})||r.isClass())return!0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return!1;let i;if(r.isFunction())i=r.node.body;else if(r.isProgram())i=r.node;else return!1;for(let s of i.directives)if(s.value.value==="use strict")return!0})}});var Bg=k(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At._getKey=Mg;At._getPattern=Fg;At.get=tH;At.getAllNextSiblings=ZX;At.getAllPrevSiblings=eH;At.getAssignmentIdentifiers=rH;At.getBindingIdentifierPaths=nH;At.getBindingIdentifiers=iH;At.getCompletionRecords=XX;At.getNextSibling=QX;At.getOpposite=YX;At.getOuterBindingIdentifierPaths=aH;At.getOuterBindingIdentifiers=sH;At.getPrevSibling=GX;At.getSibling=HX;var rh=zr(),RX=Ne(),{getAssignmentIdentifiers:qX,getBindingIdentifiers:Lg,getOuterBindingIdentifiers:UX,numericLiteral:$X,unaryExpression:KX}=RX,ih=0,Un=1;function WX(t){return{type:ih,path:t}}function VX(t){return{type:Un,path:t}}function YX(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function Is(t,e,r){return t&&e.push(...ks(t,r)),e}function zX(t,e,r){let i=[];for(let s=0;s<t.length;s++){let n=t[s],a=ks(n,r),o=[],l=[];for(let c of a)c.type===ih&&o.push(c),c.type===Un&&l.push(c);o.length&&(i=o),e.push(...l)}return e.push(...i),e}function JX(t){t.forEach(e=>{e.type=Un})}function th(t,e){t.forEach(r=>{r.path.isBreakStatement({label:null})&&(e?r.path.replaceWith(KX("void",$X(0))):r.path.remove())})}function Dg(t,e){let r=[];if(e.canHaveBreak){let i=[];for(let s=0;s<t.length;s++){let n=t[s],a=Object.assign({},e,{inCaseClause:!1});n.isBlockStatement()&&(e.inCaseClause||e.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let o=ks(n,a);if(o.length>0&&o.every(l=>l.type===Un)){i.length>0&&o.every(l=>l.path.isBreakStatement({label:null}))?(JX(i),r.push(...i),i.some(l=>l.path.isDeclaration())&&(r.push(...o),e.shouldPreserveBreak||th(o,!0)),e.shouldPreserveBreak||th(o,!1)):(r.push(...o),!e.shouldPopulateBreak&&!e.shouldPreserveBreak&&th(o,!0));break}if(s===t.length-1)r.push(...o);else{i=[];for(let l=0;l<o.length;l++){let c=o[l];c.type===Un&&r.push(c),c.type===ih&&i.push(c)}}}}else if(t.length)for(let i=t.length-1;i>=0;i--){let s=ks(t[i],e);if(s.length>1||s.length===1&&!s[0].path.isVariableDeclaration()&&!s[0].path.isEmptyStatement()){r.push(...s);break}}return r}function ks(t,e){let r=[];if(t.isIfStatement())r=Is(t.get("consequent"),r,e),r=Is(t.get("alternate"),r,e);else{if(t.isDoExpression()||t.isFor()||t.isWhile()||t.isLabeledStatement())return Is(t.get("body"),r,e);if(t.isProgram()||t.isBlockStatement())return Dg(t.get("body"),e);if(t.isFunction())return ks(t.get("body"),e);if(t.isTryStatement())r=Is(t.get("block"),r,e),r=Is(t.get("handler"),r,e);else{if(t.isCatchClause())return Is(t.get("body"),r,e);if(t.isSwitchStatement())return zX(t.get("cases"),r,e);if(t.isSwitchCase())return Dg(t.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:e.shouldPreserveBreak});t.isBreakStatement()?r.push(VX(t)):r.push(WX(t))}}return r}function XX(t=!1){return ks(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:t}).map(r=>r.path)}function HX(t){return rh.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:t}).setContext(this.context)}function GX(){return this.getSibling(this.key-1)}function QX(){return this.getSibling(this.key+1)}function ZX(){let t=this.key,e=this.getSibling(++t),r=[];for(;e.node;)r.push(e),e=this.getSibling(++t);return r}function eH(){let t=this.key,e=this.getSibling(--t),r=[];for(;e.node;)r.push(e),e=this.getSibling(--t);return r}function tH(t,e=!0){e===!0&&(e=this.context);let r=t.split(".");return r.length===1?Mg.call(this,t,e):Fg.call(this,r,e)}function Mg(t,e){let r=this.node,i=r[t];return Array.isArray(i)?i.map((s,n)=>rh.default.get({listKey:t,parentPath:this,parent:r,container:i,key:n}).setContext(e)):rh.default.get({parentPath:this,parent:r,container:r,key:t}).setContext(e)}function Fg(t,e){let r=this;for(let i of t)i==="."?r=r.parentPath:Array.isArray(r)?r=r[i]:r=r.get(i,e);return r}function rH(){return qX(this.node)}function iH(t){return Lg(this.node,t)}function sH(t){return UX(this.node,t)}function nH(t=!1,e=!1){let i=[this],s=Object.create(null);for(;i.length;){let n=i.shift();if(!n||!n.node)continue;let a=Lg.keys[n.node.type];if(n.isIdentifier()){t?(s[n.node.name]=s[n.node.name]||[]).push(n):s[n.node.name]=n;continue}if(n.isExportDeclaration()){let o=n.get("declaration");o.isDeclaration()&&i.push(o);continue}if(e){if(n.isFunctionDeclaration()){i.push(n.get("id"));continue}if(n.isFunctionExpression())continue}if(a)for(let o=0;o<a.length;o++){let l=a[o],c=n.get(l);Array.isArray(c)?i.push(...c):c.node&&i.push(c)}}return s}function aH(t=!1){return this.getBindingIdentifierPaths(t,!0)}});var Rg=k($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.addComment=pH;$n.addComments=fH;$n.shareCommentsWithSiblings=uH;var oH=Ne(),{addComment:lH,addComments:cH}=oH;function uH(){if(typeof this.key=="string")return;let t=this.node;if(!t)return;let e=t.trailingComments,r=t.leadingComments;if(!e&&!r)return;let i=this.getSibling(this.key-1),s=this.getSibling(this.key+1),n=!!i.node,a=!!s.node;n&&(r&&i.addComments("trailing",jg(r,i.node.trailingComments)),e&&!a&&i.addComments("trailing",e)),a&&(e&&s.addComments("leading",jg(e,s.node.leadingComments)),r&&!n&&s.addComments("leading",r))}function jg(t,e){if(!(e!=null&&e.length))return t;let r=new Set(e);return t.filter(i=>!r.has(i))}function pH(t,e,r){lH(this.node,t,e,r)}function fH(t,e){cH(this.node,t,e)}});var zr=k(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.default=Mr.SHOULD_STOP=Mr.SHOULD_SKIP=Mr.REMOVED=void 0;var hH=mc(),dH=cm(),mH=In(),yH=_p(),$g=Ne(),Xo=$g,TH=Bi(),xH=Z0(),Dr=ex(),Ns=bx(),Os=Cf(),qg=ng(),Yi=wg(),ht=_g(),Kg=Tr(),ut=Kg,_s=qo(),Lr=Uo(),qt=Bg(),sh=Rg(),gH=Ap(),{validate:bH}=$g,Ug=dH("babel"),Soe=Mr.REMOVED=1,Eoe=Mr.SHOULD_STOP=2,Poe=Mr.SHOULD_SKIP=4,Xr=Mr.default=class Wg{constructor(e,r){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=r,this.hub=e,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:e,parentPath:r,parent:i,container:s,listKey:n,key:a}){if(!e&&r&&(e=r.hub),!i)throw new Error("To get a node path the parent needs to exist");let o=s[a],l=TH.getOrCreateCachedPaths(i,r),c=l.get(o);return c||(c=new Wg(e,i),o&&l.set(o,c)),Kg.setup.call(c,r,s,n,a),c}getScope(e){return this.isScope()?new yH.default(this):e}setData(e,r){return this.data==null&&(this.data=Object.create(null)),this.data[e]=r}getData(e,r){this.data==null&&(this.data=Object.create(null));let i=this.data[e];return i===void 0&&r!==void 0&&(i=this.data[e]=r),i}hasNode(){return this.node!=null}buildCodeFrameError(e,r=SyntaxError){return this.hub.buildError(this.node,e,r)}traverse(e,r){(0,mH.default)(this.node,e,this.scope,r,this)}set(e,r){bH(this.node,e,r),this.node[e]=r}getPathLocation(){let e=[],r=this;do{let i=r.key;r.inList&&(i=`${r.listKey}[${i}]`),e.unshift(i)}while(r=r.parentPath);return e.join(".")}debug(e){Ug.enabled&&Ug(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,xH.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},SH={findParent:Dr.findParent,find:Dr.find,getFunctionParent:Dr.getFunctionParent,getStatementParent:Dr.getStatementParent,getEarliestCommonAncestorFrom:Dr.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:Dr.getDeepestCommonAncestorFrom,getAncestry:Dr.getAncestry,isAncestor:Dr.isAncestor,isDescendant:Dr.isDescendant,inType:Dr.inType,getTypeAnnotation:Ns.getTypeAnnotation,isBaseType:Ns.isBaseType,couldBeBaseType:Ns.couldBeBaseType,baseTypeStrictlyMatches:Ns.baseTypeStrictlyMatches,isGenericType:Ns.isGenericType,replaceWithMultiple:Os.replaceWithMultiple,replaceWithSourceString:Os.replaceWithSourceString,replaceWith:Os.replaceWith,replaceExpressionWithStatements:Os.replaceExpressionWithStatements,replaceInline:Os.replaceInline,evaluateTruthy:qg.evaluateTruthy,evaluate:qg.evaluate,toComputedKey:Yi.toComputedKey,ensureBlock:Yi.ensureBlock,unwrapFunctionEnvironment:Yi.unwrapFunctionEnvironment,arrowFunctionToExpression:Yi.arrowFunctionToExpression,splitExportDeclaration:Yi.splitExportDeclaration,ensureFunctionName:Yi.ensureFunctionName,matchesPattern:ht.matchesPattern,isStatic:ht.isStatic,isNodeType:ht.isNodeType,canHaveVariableDeclarationOrExpression:ht.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:ht.canSwapBetweenExpressionAndStatement,isCompletionRecord:ht.isCompletionRecord,isStatementOrBlock:ht.isStatementOrBlock,referencesImport:ht.referencesImport,getSource:ht.getSource,willIMaybeExecuteBefore:ht.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:ht._guessExecutionStatusRelativeTo,resolve:ht.resolve,isConstantExpression:ht.isConstantExpression,isInStrictMode:ht.isInStrictMode,isDenylisted:ut.isDenylisted,visit:ut.visit,skip:ut.skip,skipKey:ut.skipKey,stop:ut.stop,setContext:ut.setContext,requeue:ut.requeue,requeueComputedKeyAndDecorators:ut.requeueComputedKeyAndDecorators,remove:_s.remove,insertBefore:Lr.insertBefore,insertAfter:Lr.insertAfter,unshiftContainer:Lr.unshiftContainer,pushContainer:Lr.pushContainer,getOpposite:qt.getOpposite,getCompletionRecords:qt.getCompletionRecords,getSibling:qt.getSibling,getPrevSibling:qt.getPrevSibling,getNextSibling:qt.getNextSibling,getAllNextSiblings:qt.getAllNextSiblings,getAllPrevSiblings:qt.getAllPrevSiblings,get:qt.get,getAssignmentIdentifiers:qt.getAssignmentIdentifiers,getBindingIdentifiers:qt.getBindingIdentifiers,getOuterBindingIdentifiers:qt.getOuterBindingIdentifiers,getBindingIdentifierPaths:qt.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:qt.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:sh.shareCommentsWithSiblings,addComment:sh.addComment,addComments:sh.addComments};Object.assign(Xr.prototype,SH);Xr.prototype.arrowFunctionToShadowed=Yi.arrowFunctionToShadowed,Object.assign(Xr.prototype,{has:ht.has,is:ht.is,isnt:ht.isnt,equals:ht.equals,hoist:Lr.hoist,updateSiblingKeys:Lr.updateSiblingKeys,call:ut.call,isBlacklisted:ut.isBlacklisted,setScope:ut.setScope,resync:ut.resync,popContext:ut.popContext,pushContext:ut.pushContext,setup:ut.setup,setKey:ut.setKey});Xr.prototype._guessExecutionStatusRelativeToDifferentFunctions=ht._guessExecutionStatusRelativeTo,Xr.prototype._guessExecutionStatusRelativeToDifferentFunctions=ht._guessExecutionStatusRelativeTo,Object.assign(Xr.prototype,{_getTypeAnnotation:Ns._getTypeAnnotation,_replaceWith:Os._replaceWith,_resolve:ht._resolve,_call:ut._call,_resyncParent:ut._resyncParent,_resyncKey:ut._resyncKey,_resyncList:ut._resyncList,_resyncRemoved:ut._resyncRemoved,_getQueueContexts:ut._getQueueContexts,_removeFromScope:_s._removeFromScope,_callRemovalHooks:_s._callRemovalHooks,_remove:_s._remove,_markRemoved:_s._markRemoved,_assertUnremoved:_s._assertUnremoved,_containerInsert:Lr._containerInsert,_containerInsertBefore:Lr._containerInsertBefore,_containerInsertAfter:Lr._containerInsertAfter,_verifyNodeList:Lr._verifyNodeList,_getKey:qt._getKey,_getPattern:qt._getPattern});for(let t of Xo.TYPES){let e=`is${t}`,r=Xo[e];Xr.prototype[e]=function(i){return r(this.node,i)},Xr.prototype[`assert${t}`]=function(i){if(!r(this.node,i))throw new TypeError(`Expected node path of type ${t}`)}}Object.assign(Xr.prototype,gH);for(let t of Object.keys(hH))t[0]!=="_"&&(Xo.TYPES.includes(t)||Xo.TYPES.push(t))});var Vg=k(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.default=void 0;var EH=zr(),PH=Ne(),nh=Tr(),{VISITOR_KEYS:vH}=PH,ah=class{constructor(e,r,i,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=e,this.state=i,this.opts=r}shouldVisit(e){let r=this.opts;if(r.enter||r.exit||r[e.type])return!0;let i=vH[e.type];if(!(i!=null&&i.length))return!1;for(let s of i)if(e[s])return!0;return!1}create(e,r,i,s){return EH.default.get({parentPath:this.parentPath,parent:e,container:r,key:i,listKey:s})}maybeQueue(e,r){this.queue&&(r?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,r,i){if(e.length===0)return!1;let s=[];for(let n=0;n<e.length;n++){let a=e[n];a&&this.shouldVisit(a)&&s.push(this.create(r,e,n,i))}return this.visitQueue(s)}visitSingle(e,r){return this.shouldVisit(e[r])?this.visitQueue([this.create(e,e,r)]):!1}visitQueue(e){this.queue=e,this.priorityQueue=[];let r=new WeakSet,i=!1,s=0;for(;s<e.length;){let n=e[s];if(s++,nh.resync.call(n),(n.contexts.length===0||n.contexts[n.contexts.length-1]!==this)&&nh.pushContext.call(n,this),n.key===null)continue;let{node:a}=n;if(!r.has(a)){if(a&&r.add(a),n.visit()){i=!0;break}if(this.priorityQueue.length&&(i=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,i))break}}for(let n=0;n<s;n++)nh.popContext.call(e[n]);return this.queue=null,i}visit(e,r){let i=e[r];return i?Array.isArray(i)?this.visitMultiple(i,e,r):this.visitSingle(e,r):!1}};Ho.default=ah});var ho=k(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.traverseNode=IH;var AH=Vg(),woe=zr(),wH=Ne(),Coe=Tr(),{VISITOR_KEYS:CH}=wH;function IH(t,e,r,i,s,n,a){let o=CH[t.type];if(!o)return!1;let l=new AH.default(r,e,i,s);if(a)return n!=null&&n[s.parentKey]?!1:l.visitQueue([s]);for(let c of o)if(!(n!=null&&n[c])&&l.visit(t,c))return!0;return!1}});var Tr=k(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt._call=ch;nt._getQueueContexts=WH;nt._resyncKey=Gg;nt._resyncList=Qg;nt._resyncParent=Hg;nt._resyncRemoved=jH;nt.call=lh;nt.isDenylisted=Jg;nt.popContext=RH;nt.pushContext=qH;nt.requeue=$H;nt.requeueComputedKeyAndDecorators=KH;nt.resync=BH;nt.setContext=FH;nt.setKey=Go;nt.setScope=Xg;nt.setup=UH;nt.skip=DH;nt.skipKey=LH;nt.stop=MH;nt.visit=_H;var kH=ho(),Yg=zr(),NH=qo(),OH=Ne();function lh(t){let e=this.opts;if(this.debug(t),this.node&&ch.call(this,e[t]))return!0;if(this.node){var r;return ch.call(this,(r=e[this.node.type])==null?void 0:r[t])}return!1}function ch(t){if(!t)return!1;for(let e of t){if(!e)continue;let r=this.node;if(!r)return!0;let i=e.call(this.state,this,this.state);if(i&&typeof i=="object"&&typeof i.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(i)throw new Error(`Unexpected return value from visitor method ${e}`);if(this.node!==r||this._traverseFlags>0)return!0}return!1}function Jg(){var t;let e=(t=this.opts.denylist)!=null?t:this.opts.blacklist;return e?.includes(this.node.type)}nt.isBlacklisted=Jg;function zg(t,e){t.context!==e&&(t.context=e,t.state=e.state,t.opts=e.opts)}function _H(){var t,e;if(!this.node||this.isDenylisted()||(t=(e=this.opts).shouldSkip)!=null&&t.call(e,this))return!1;let r=this.context;return this.shouldSkip||lh.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(zg(this,r),this.debug("Recursing into..."),this.shouldStop=(0,kH.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),zg(this,r),lh.call(this,"exit"),this.shouldStop)}function DH(){this.shouldSkip=!0}function LH(t){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[t]=!0}function MH(){this._traverseFlags|=Yg.SHOULD_SKIP|Yg.SHOULD_STOP}function Xg(){var t,e;if((t=this.opts)!=null&&t.noScope)return;let r=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&r.isMethod()||this.key==="discriminant"&&r.isSwitchStatement())&&(r=r.parentPath);let i;for(;r&&!i;){var s;if((s=r.opts)!=null&&s.noScope)return;i=r.scope,r=r.parentPath}this.scope=this.getScope(i),(e=this.scope)==null||e.init()}function FH(t){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,t&&(this.context=t,this.state=t.state,this.opts=t.opts),Xg.call(this),this}function BH(){this.removed||(Hg.call(this),Qg.call(this),Gg.call(this))}function Hg(){this.parentPath&&(this.parent=this.parentPath.node)}function Gg(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let t=0;t<this.container.length;t++)if(this.container[t]===this.node){Go.call(this,t);return}}else for(let t of Object.keys(this.container))if(this.container[t]===this.node){Go.call(this,t);return}this.key=null}}function Qg(){if(!this.parent||!this.inList)return;let t=this.parent[this.listKey];this.container!==t&&(this.container=t||null)}function jH(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&NH._markRemoved.call(this)}function RH(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function qH(t){this.contexts.push(t),this.setContext(t)}function UH(t,e,r,i){this.listKey=r,this.container=e,this.parentPath=t||this.parentPath,Go.call(this,i)}function Go(t){var e;this.key=t,this.node=this.container[this.key],this.type=(e=this.node)==null?void 0:e.type}function $H(t=this){if(t.removed)return;let e=this.contexts;for(let r of e)r.maybeQueue(t)}function KH(){let{context:t,node:e}=this;if(!OH.isPrivate(e)&&e.computed&&t.maybeQueue(this.get("key")),e.decorators)for(let r of this.get("decorators"))t.maybeQueue(r)}function WH(){let t=this,e=this.contexts;for(;!e.length&&(t=t.parentPath,!!t);)e=t.contexts;return e}});var Zg=k(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=void 0;var uh=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,r,i=TypeError){return new i(r)}};Qo.default=uh});var In=k(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Object.defineProperty(Hr,"Hub",{enumerable:!0,get:function(){return XH.default}});Object.defineProperty(Hr,"NodePath",{enumerable:!0,get:function(){return zH.default}});Object.defineProperty(Hr,"Scope",{enumerable:!0,get:function(){return JH.default}});Hr.visitors=Hr.default=void 0;Tr();var Wn=uo();Hr.visitors=Wn;var VH=Ne(),YH=Bi(),eb=ho(),zH=zr(),JH=_p(),XH=Zg(),{VISITOR_KEYS:HH,removeProperties:GH,traverseFast:Kn}=VH;function Sr(t,e={},r,i,s,n){if(t){if(!e.noScope&&!r&&t.type!=="Program"&&t.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${t.type} node without passing scope and parentPath.`);if(!s&&n)throw new Error("visitSelf can only be used when providing a NodePath.");HH[t.type]&&(Wn.explode(e),(0,eb.traverseNode)(t,e,r,i,s,null,n))}}var Ooe=Hr.default=Sr;Sr.visitors=Wn;Sr.verify=Wn.verify;Sr.explode=Wn.explode;Sr.cheap=function(t,e){Kn(t,e)};Sr.node=function(t,e,r,i,s,n){(0,eb.traverseNode)(t,e,r,i,s,n)};Sr.clearNode=function(t,e){GH(t,e)};Sr.removeProperties=function(t,e){return Kn(t,Sr.clearNode,e),t};Sr.hasType=function(t,e,r){return r!=null&&r.includes(t.type)?!1:t.type===e?!0:Kn(t,function(i){if(r!=null&&r.includes(i.type))return Kn.skip;if(i.type===e)return Kn.stop})};Sr.cache=YH});var rb=k((Doe,tb)=>{var QH=require("fs"),ZH=Fa(),eG=In().default;function tG(t){let e=QH.readFileSync(t,"utf-8"),r=new Set,i,s={};try{i=ZH.parse(e,{sourceType:"module",plugins:["jsx","typescript","classProperties","objectRestSpread","optionalChaining","nullishCoalescingOperator"]})}catch{return[]}function n(o){o&&(o.type==="StringLiteral"||o.type==="Literal"?o.value.split(/\s+/).forEach(l=>r.add(l)):o.type==="ArrayExpression"?o.elements.forEach(l=>n(l)):o.type==="TemplateLiteral"?(o.quasis.forEach(l=>l.value.cooked.split(/\s+/).forEach(c=>r.add(c))),o.expressions.forEach(l=>n(l))):o.type==="Identifier"&&s[o.name]?s[o.name].forEach(l=>r.add(l)):o.type==="BinaryExpression"&&o.operator==="+"?(n(o.left),n(o.right)):o.type==="ConditionalExpression"?(n(o.consequent),n(o.alternate)):o.type==="LogicalExpression"&&(n(o.left),n(o.right)))}function a(o){o&&(o.type==="ObjectExpression"?o.properties.forEach(l=>{l&&l.key&&((l.key.type==="Identifier"&&l.key.name==="className"||l.key.type==="StringLiteral"&&l.key.value==="className")&&l.value.type==="ArrayExpression"&&l.value.elements.forEach(c=>{c&&c.type==="StringLiteral"&&c.value.split(/\s+/).forEach(u=>r.add(u))}),a(l.value))}):o.type==="ArrayExpression"&&o.elements.forEach(l=>a(l)))}return eG(i,{VariableDeclarator(o){if(o.node.init&&o.node.id&&o.node.id.type==="Identifier"){let l=[];o.node.init.type==="ArrayExpression"?o.node.init.elements.forEach(c=>{c&&c.type==="StringLiteral"&&c.value.split(/\s+/).forEach(u=>l.push(u))}):o.node.init.type==="StringLiteral"&&(o.node.init.value.split(/\s+/).forEach(c=>l.push(c)),o.node.init.value.split(/\s+/).forEach(c=>r.add(c))),s[o.node.id.name]=l.filter(Boolean)}(o.node.init.type==="ArrayExpression"||o.node.init.type==="ObjectExpression")&&a(o.node.init)},JSXAttribute(o){if(typeof o.node.name.name=="string"&&/^(class(Name)?|.*[cC]lass)$/.test(o.node.name.name)){let l=o.node.value;l&&(l.type==="StringLiteral"?l.value.split(/\s+/).forEach(c=>r.add(c)):l.type==="JSXExpressionContainer"&&function c(u){u&&(u.type==="StringLiteral"||u.type==="Literal"?u.value.split(/\s+/).forEach(d=>r.add(d)):u.type==="TemplateLiteral"?(u.quasis.forEach(d=>d.value.cooked.split(/\s+/).forEach(x=>r.add(x))),u.expressions.forEach(d=>c(d))):u.type==="ArrayExpression"?u.elements.forEach(d=>c(d)):u.type==="ObjectExpression"?u.properties.forEach(d=>c(d.value)):u.type==="ArrowFunctionExpression"||u.type==="FunctionExpression"?c(u.body):u.type==="BlockStatement"?u.body.forEach(c):u.type==="ReturnStatement"?c(u.argument):(u.type==="ConditionalExpression"||u.type==="LogicalExpression"||u.type==="BinaryExpression")&&(c(u.left),c(u.right),u.consequent&&c(u.consequent),u.alternate&&c(u.alternate)))}(l.expression))}},ObjectProperty(o){o.node.value&&(o.node.value.type==="StringLiteral"||o.node.value.type==="Literal")&&o.node.value.value.split(/\s+/).forEach(l=>r.add(l))},ReturnStatement(o){o.node.argument&&(o.node.argument.type==="StringLiteral"||o.node.argument.type==="Literal")&&o.node.argument.value.split(/\s+/).forEach(l=>r.add(l))},AssignmentExpression(o){o.node.operator==="+="&&o.node.right&&(o.node.right.type==="StringLiteral"||o.node.right.type==="Literal")&&o.node.right.value.split(/\s+/).forEach(l=>r.add(l))}}),a(i),function o(l){l&&(Array.isArray(l)?l.forEach(o):typeof l=="object"&&(l.type==="ObjectExpression"?l.properties.forEach(c=>{var u;(u=c.key)&&(u.type==="Identifier"?/class(Name)?$/i.test(u.name):u.type==="StringLiteral"&&/class(Name)?$/i.test(u.value))&&(c.value.type==="StringLiteral"?c.value.value.split(/\s+/).forEach(d=>r.add(d)):c.value.type==="ArrayExpression"&&c.value.elements.forEach(d=>{d&&d.type==="StringLiteral"&&d.value.split(/\s+/).forEach(x=>r.add(x))})),o(c.value)}):Object.values(l).forEach(o)))}(i),Array.from(r).filter(Boolean)}tb.exports=tG});var cb=require("fs"),rG=require("path"),iG=bh(),sG=Ed(),nG=wd(),aG=rb(),oG=(t,e)=>nG(t,e||{},{arrayMerge:(r,i)=>i}),lG=()=>{let t=rG.resolve(process.cwd(),"unicss.config.js");try{return require(t)}catch{return{}}},cG=oG(iG,lG()),Nt=t=>/\[.*\]/.test(t)?t.replace(/([:\/\.\[\]\(\)\?\=\&\,\'\;\+\"#%\*!])/g,"\\$1"):t.replace(/([:\/\.\[\]\(\)\?\=\&\,\'\"#%\*!])/g,"\\$1").replace(/^([0-9])|\.(\d)/g,"\\$1$2"),B=(t,e)=>{let r=t.replace(/[\[\]]/g,"");return e==="bg-image"||e==="mask-image"||e==="list-image"?/^url\(/i.test(r.trim())?r:r.replace(/_/g," "):e==="list-image"?r:r.replace(/_/g," ")},ib=t=>(cb.readFileSync(t,"utf-8").match(/(?:class|className|\w*[Cc]lass)=["']([\s\S]*?)["']/g)||[]).map(e=>e.replace(/(?:class|className|\w*[Cc]lass)=["']/,"").replace(/["']$/,"").split(/\s+/)).flat().filter(Boolean),ph={first:"first-child",last:"last-child","not-first":"not(:first-child)","not-last":"not(:last-child)",odd:"nth-child(odd)",even:"nth-child(even)",placeholder:":placeholder",file:":file-selector-button",marker:":marker",selection:":selection","first-line":":first-line","first-letter":":first-letter",backdrop:":backdrop","has-checked":"has(:checked)","peer-hover":":hover","peer-focus":":focus","peer-active":":active","peer-invalid":":invalid","peer-checked":":checked","peer-disabled":":disabled","peer-required":":required","peer-read-only":":read-only","peer-indeterminate":":indeterminate"},fh=t=>{if(t.startsWith("group-hover/"))return`is(:where(.group\\/${t.replace("group-hover/","")}):hover *)`;if(t==="group-hover")return"is(:where(.group):hover *)";if(t.startsWith("peer-")&&t.includes("/")){let[e,r]=t.split("/");return`.peer\\/${r}${ph[`peer-${e}`]||`:${e.replace("peer-","")}`} ~ `}return t.startsWith("peer-")?`.peer${ph[t]||`:${t.replace("peer-","")}`} ~ `:ph[t]||`${t}`},Ee=t=>{t=t.replace(/[\[\]]/g,"");let e=t.match(/^rgb\((\d+)_(\d+)_(\d+)(?:_\/(\d+))?\)$/);if(e){let[,i,s,n,a]=e,o=a?parseInt(a,10)/100:1;return`rgba(${i},${s},${n},${o})`}let r=t.match(/^rgb\((\d+),(\d+),(\d+)(?:,(\d*\.?\d+))?\)$/);if(r){let[,i,s,n,a]=r;return`rgba(${i},${s},${n},${a||1})`}if(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{3}$/.test(t))return t;if(t.includes("/")){let[i,s]=t.split("/");if(i.startsWith("#")){let n=i.replace("#","");n.length===3&&(n=n.split("").map(c=>c+c).join(""));let a=parseInt(n.substring(0,2),16),o=parseInt(n.substring(2,4),16),l=parseInt(n.substring(4,6),16);return`rgba(${a},${o},${l},${parseInt(s,10)/100})`}return`color-mix(in srgb, var(--color-${i}) ${parseInt(s,10)}%, transparent)`}return`var(--color-${t})`},ye=t=>/^\d+\/\d+$/.test(t)?`${t.replace(/^(\d+)\/(\d+)$/,(e,r,i)=>`${parseInt(r,10)/parseInt(i,10)*100}%`)}`:`var(--${t})`,ze=t=>/^\d+\/\d+$/.test(t)?`-${t.replace(/^(\d+)\/(\d+)$/,(e,r,i)=>`${parseInt(r,10)/parseInt(i,10)*100}%`)}`:`calc(-1 * var(--${t}))`,uG=t=>{let e=t.split(" ");if(e.length===1){let r=ye(e[0]);return`${r} ${r}`}return e.map(ye).join(" ")},pG=t=>{let e=t.split(" ");if(e.length===1){let r=ze(e[0]);return`${r} ${r}`}return e.map(ze).join(" ")},sb=["--uni-blur","--uni-drop-shadow","--uni-brightness","--uni-contrast","--uni-grayscale","--uni-hue-rotate","--uni-invert","--uni-saturate","--uni-sepia"],nb=["--uni-backdrop-blur","--uni-backdrop-brightness","--uni-backdrop-contrast","--uni-backdrop-grayscale","--uni-backdrop-hue-rotate","--uni-backdrop-invert","--uni-backdrop-saturate","--uni-backdrop-opacity","--uni-backdrop-sepia"],fG=["--uni-shadow","--uni-shadow-color","--uni-inset-shadow-color","--uni-ring-shadow","--uni-ring-color","--uni-inset-ring-shadow","--uni-ring-inset","--uni-inset-shadow","--uni-inset-ring-shadow"],ab=["--uni-rotate-x","--uni-rotate-y","--uni-rotate-z","--uni-skew-x","--uni-skew-y"],ob=["--uni-scale-x","--uni-scale-y"],lb=["--uni-translate-x","--uni-translate-y","--uni-translate-z"],Jt=(t,e,r,i,s=null,n=null,a=!1)=>{let o=Nt(t),l=a?`.${o} > *`:s&&(s.startsWith("peer-")||s.includes("peer-"))?`${fh(s)}.${o}`:s?`.${o}:${fh(s)}`:`.${o}`,c=sb.includes(r),u=nb.includes(r),d=fG.includes(r),x=ab.includes(r),E=ob.includes(r),v=lb.includes(r),A=typeof i=="object"?Object.entries(i).map(([I,O])=>`${I}: ${O}`).join("; "):Array.isArray(r)?r.map(I=>`${I}: ${i}`).join("; "):`${r}: ${i}`;return c?{selector:l,rule:`${l} { ${A}; filter: ${sb.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:u?{selector:l,rule:`${l} { ${A}; backdrop-filter: ${nb.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:d?{selector:l,rule:`${l} { ${A}; box-shadow: var(--uni-inset-shadow, 0 0 #0000), var(--uni-inset-ring-shadow, 0 0 #0000), var(--uni-ring-shadow, 0 0 #0000), var(--uni-shadow, 0 0 #0000); }`,screen:n}:x?{selector:l,rule:`${l} { ${A}; transform: ${ab.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:E?{selector:l,rule:`${l} { ${A}; scale: ${ob.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:v?{selector:l,rule:`${l} { ${A}; translate: ${lb.map(I=>`var(${I})`).join(" ")}; }`,screen:n}:{selector:l,rule:`${l} { ${A} }`,screen:n}};function hG(){let{sizing:t={},spacing:e={},colors:r={},breakpoints:i={},layout:s={},flexGrid:n={},typography:a={},background:o={},border:l={},effects:c={},filters:u={},table:d={},transition:x={},transforms:E={},interactivity:v={},svg:A={},rootClass:I={}}=cG.theme.extend,O=["html","js","jsx","ts","tsx","vue"].flatMap(h=>sG.sync(`**/*.${h}`,{cwd:process.cwd(),absolute:!0,ignore:["**/node_modules/**","**/dist/**","**/build/**"]})).filter(h=>cb.statSync(h).isFile()),j=Array.from(new Set(O.flatMap(h=>{if(!(h.endsWith(".js")||h.endsWith(".jsx")||h.endsWith(".ts")||h.endsWith(".tsx")))return ib(h);try{return aG(h)}catch{return ib(h)}}))),U={main:`
57
57
  *,::after,::before,::backdrop,::file-selector-button {margin: 0; padding: 0; box-sizing: border-box; border: 0 solid; outline: 0 solid;}
58
58
  h1,h2,h3,h4,h5,h6 {font-size: inherit;font-weight: inherit;}
59
59
  ol,ul,menu {list-style: none;}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unizap/unicss",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "description": "Unicss: Build sleek interfaces straight from your markup. Fast, modern, utility-first CSS framework for rapid UI development.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {