Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-qwik

Package Overview
Dependencies
Maintainers
2
Versions
264
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-qwik - npm Package Compare versions

Comparing version 1.0.0-dev20230506121511 to 1.0.0-dev20230509192029

12

index.js

@@ -1,2 +0,2 @@

"use strict";var Cn=Object.create;var K=Object.defineProperty;var Nn=Object.getOwnPropertyDescriptor;var Mn=Object.getOwnPropertyNames;var kn=Object.getPrototypeOf,Rn=Object.prototype.hasOwnProperty;var l=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Un=(e,r)=>{for(var t in r)K(e,t,{get:r[t],enumerable:!0})},Pr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Mn(r))!Rn.call(e,o)&&o!==t&&K(e,o,{get:()=>r[o],enumerable:!(n=Nn(r,o))||n.enumerable});return e};var D=(e,r,t)=>(t=e!=null?Cn(kn(e)):{},Pr(r||!e||!e.__esModule?K(t,"default",{value:e,enumerable:!0}):t,e)),$n=e=>Pr(K({},"__esModule",{value:!0}),e);var wr=l((gs,Or)=>{"use strict";Or.exports=e=>{let r=e.match(/^[ \t]*(?=\S)/gm);return r?r.reduce((t,n)=>Math.min(t,n.length),1/0):0}});var H=l(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.default=Hn;function Hn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!e.type||e.type!=="JSXAttribute")throw new Error("The prop must be a JSXAttribute collected by the AST parser.");return e.name.type==="JSXNamespacedName"?e.name.namespace.name+":"+e.name.name.name:e.name.name}});var Mr=l(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.default=xe;X.hasAnyProp=Zn;X.hasEveryProp=eo;var Yn=H(),Nr=Qn(Yn);function Qn(e){return e&&e.__esModule?e:{default:e}}var ve={spreadStrict:!0,ignoreCase:!0};function xe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ve,n=t.ignoreCase?r.toUpperCase():r;return e.some(function(o){if(o.type==="JSXSpreadAttribute")return!t.spreadStrict;var a=t.ignoreCase?(0,Nr.default)(o).toUpperCase():(0,Nr.default)(o);return n===a})}function Zn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ve,n=typeof r=="string"?r.split(" "):r;return n.some(function(o){return xe(e,o,t)})}function eo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ve,n=typeof r=="string"?r.split(" "):r;return n.every(function(o){return xe(e,o,t)})}});var Rr=l(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.default=ro;function kr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.type==="JSXMemberExpression"?kr(e.object,e.property)+"."+r.name:e.name+"."+r.name}function ro(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.name;if(e.type==="JSXOpeningFragment")return"<>";if(!r)throw new Error("The argument provided is not a JSXElement node.");if(r.type==="JSXMemberExpression"){var t=r.object,n=t===void 0?{}:t,o=r.property,a=o===void 0?{}:o;return kr(n,a)}return r.type==="JSXNamespacedName"?r.namespace.name+":"+r.name.name:e.name.name}});var Ur=l(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var be={clipboard:["onCopy","onCut","onPaste"],composition:["onCompositionEnd","onCompositionStart","onCompositionUpdate"],keyboard:["onKeyDown","onKeyPress","onKeyUp"],focus:["onFocus","onBlur"],form:["onChange","onInput","onSubmit"],mouse:["onClick","onContextMenu","onDblClick","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],selection:["onSelect"],touch:["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],ui:["onScroll"],wheel:["onWheel"],media:["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],image:["onLoad","onError"],animation:["onAnimationStart","onAnimationEnd","onAnimationIteration"],transition:["onTransitionEnd"]},to=Object.keys(be).reduce(function(e,r){return e.concat(be[r])},[]);Y.default=to;Y.eventHandlersByType=be});var Lr=l(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});var no=function(){function e(r,t){var n=[],o=!0,a=!1,i=void 0;try{for(var s=r[Symbol.iterator](),f;!(o=(f=s.next()).done)&&(n.push(f.value),!(t&&n.length===t));o=!0);}catch(d){a=!0,i=d}finally{try{!o&&s.return&&s.return()}finally{if(a)throw i}}return n}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),q=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};Se.default=uo;var oo=H(),ao=io(oo);function io(e){return e&&e.__esModule?e:{default:e}}function $r(e,r){var t={};for(var n in e)r.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var so={ignoreCase:!0};function uo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:so;function n(s){return t.ignoreCase?s.toUpperCase():s}var o=n(r);function a(s){return s.type==="Property"&&s.key.type==="Identifier"&&o===n(s.key.name)}var i=e.find(function(s){return s.type==="JSXSpreadAttribute"?s.argument.type==="ObjectExpression"&&o!==n("key")&&s.argument.properties.some(a):o===n((0,ao.default)(s))});return i&&i.type==="JSXSpreadAttribute"?lo(i.argument.properties.find(a)):i}function lo(e){var r=e.key,t=e.value;return q({type:"JSXAttribute",name:q({type:"JSXIdentifier",name:r.name},Ee(r)),value:t.type==="Literal"?B(t):q({type:"JSXExpressionContainer",expression:po(t)},Ee(t))},Ee(e))}function B(e){var r=e.range||[e.start,e.end],t=no(r,2),n=t[0],o=t[1];return q({},e,{end:void 0,range:[n,o],start:void 0})}function po(e){var r=e.expressions,t=e.quasis,n=$r(e,["expressions","quasis"]);return q({},B(n),r?{expressions:r.map(B)}:{},t?{quasis:t.map(B)}:{})}function Ee(e){var r=e.loc,t=$r(e,["loc"]),n=B(t),o=n.range;return{loc:co(r),range:o}}function co(e){var r=e.start,t=e.end,n=e.source,o=e.filename;return q({start:r,end:t},n!==void 0?{source:n}:{},o!==void 0?{filename:o}:{})}});var Pe=l(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.default=fo;function fo(e){var r=e.value,t=typeof r=="string"&&r.toLowerCase();return t==="true"?!0:t==="false"?!1:r}});var we=l(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.default=yo;function yo(e){var r=Q().default,t=e.openingElement.name.name;return e.openingElement.selfClosing?"<"+t+" />":"<"+t+">"+[].concat(e.children).map(function(n){return r(n)}).join("")+"</"+t+">"}});var Te=l(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.default=mo;function mo(e){return e.raw}});var Vr=l(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.default=go;function go(e){var r=Q().default;return e.children.length===0?"<></>":"<>"+[].concat(e.children).map(function(t){return r(t)}).join("")+"</>"}});var Jr=l(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.default=vo;var Dr={Array,Date,Infinity:1/0,Math,Number,Object,String,undefined:void 0};function vo(e){var r=e.name;return Object.hasOwnProperty.call(Dr,r)?Dr[r]:r}});var qe=l(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.default=ho;function xo(e,r){return(e.range?e.range[0]:e.start)-(r.range?r.range[0]:r.start)}function ho(e){var r=e.quasis,t=e.expressions,n=r.concat(t);return n.sort(xo).reduce(function(o,a){var i=a.type;return i==="TemplateElement"?o+a.value.raw:i==="Identifier"?a.name==="undefined"?""+o+a.name:o+"{"+a.name+"}":i.indexOf("Expression")>-1?o+"{"+i+"}":o},"")}});var Xr=l(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.default=Ao;var bo=qe(),Eo=So(bo);function So(e){return e&&e.__esModule?e:{default:e}}function Ao(e){return(0,Eo.default)(e.quasi)}});var Br=l(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.default=Po;function Po(e){return function(){return e}}});var Wr=l(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.default=Oo;function Oo(e){var r=A().default,t=e.operator,n=e.left,o=e.right,a=r(n),i=r(o);return t==="&&"?a&&i:t==="??"?a===null||typeof a>"u"?i:a:a||i}});var zr=l(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.default=wo;function wo(e){var r=A().default;return""+r(e.object)+(e.optional?"?.":".")+r(e.property)}});var Gr=l(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.default=_o;function _o(e){var r=A().default;return r(e.expression||e)}});var Kr=l(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=To;function To(e){var r=A().default;return r(e.callee)+"?.("+e.arguments.map(function(t){return r(t)}).join(", ")+")"}});var Hr=l($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.default=jo;function jo(e){var r=A().default;return r(e.object)+"?."+r(e.property)}});var Yr=l(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.default=Io;function Io(e){var r=A().default,t=Array.isArray(e.arguments)?e.arguments.map(function(n){return r(n)}).join(", "):"";return""+r(e.callee)+(e.optional?"?.":"")+"("+t+")"}});var Qr=l(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.default=Fo;function Fo(e){var r=A().default,t=e.operator,n=e.argument;switch(t){case"-":return-r(n);case"+":return+r(n);case"!":return!r(n);case"~":return~r(n);case"delete":return!0;case"typeof":case"void":default:return}}});var Je=l(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.default=qo;function qo(){return"this"}});var Zr=l(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.default=Co;function Co(e){var r=A().default,t=e.test,n=e.alternate,o=e.consequent;return r(t)?r(o):r(n)}});var et=l(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.default=No;function No(e){var r=A().default,t=e.operator,n=e.left,o=e.right,a=r(n),i=r(o);switch(t){case"==":return a==i;case"!=":return a!=i;case"===":return a===i;case"!==":return a!==i;case"<":return a<i;case"<=":return a<=i;case">":return a>i;case">=":return a>=i;case"<<":return a<<i;case">>":return a>>i;case">>>":return a>>>i;case"+":return a+i;case"-":return a-i;case"*":return a*i;case"/":return a/i;case"%":return a%i;case"|":return a|i;case"^":return a^i;case"&":return a&i;case"in":try{return a in i}catch{return!1}case"instanceof":return typeof i!="function"?!1:a instanceof i;default:return}}});var We=l((Ks,tt)=>{"use strict";var rt=Object.prototype.toString;tt.exports=function(r){var t=rt.call(r),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&rt.call(r.callee)==="[object Function]"),n}});var ct=l((Hs,pt)=>{"use strict";var lt;Object.keys||(W=Object.prototype.hasOwnProperty,ze=Object.prototype.toString,nt=We(),Ge=Object.prototype.propertyIsEnumerable,ot=!Ge.call({toString:null},"toString"),at=Ge.call(function(){},"prototype"),z=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Z=function(e){var r=e.constructor;return r&&r.prototype===e},it={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},st=function(){if(typeof window>"u")return!1;for(var e in window)try{if(!it["$"+e]&&W.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Z(window[e])}catch{return!0}}catch{return!0}return!1}(),ut=function(e){if(typeof window>"u"||!st)return Z(e);try{return Z(e)}catch{return!1}},lt=function(r){var t=r!==null&&typeof r=="object",n=ze.call(r)==="[object Function]",o=nt(r),a=t&&ze.call(r)==="[object String]",i=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var s=at&&n;if(a&&r.length>0&&!W.call(r,0))for(var f=0;f<r.length;++f)i.push(String(f));if(o&&r.length>0)for(var d=0;d<r.length;++d)i.push(String(d));else for(var g in r)!(s&&g==="prototype")&&W.call(r,g)&&i.push(String(g));if(ot)for(var v=ut(r),p=0;p<z.length;++p)!(v&&z[p]==="constructor")&&W.call(r,z[p])&&i.push(z[p]);return i});var W,ze,nt,Ge,ot,at,z,Z,it,st,ut;pt.exports=lt});var Ke=l((Ys,yt)=>{"use strict";var Mo=Array.prototype.slice,ko=We(),ft=Object.keys,ee=ft?function(r){return ft(r)}:ct(),dt=Object.keys;ee.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(n){return ko(n)?dt(Mo.call(n)):dt(n)})}else Object.keys=ee;return Object.keys||ee};yt.exports=ee});var He=l((Qs,mt)=>{"use strict";mt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;r[t]=o;for(t in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var a=Object.getOwnPropertySymbols(r);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(r,t);if(i.value!==o||i.enumerable!==!0)return!1}return!0}});var xt=l((Zs,vt)=>{"use strict";var gt=typeof Symbol<"u"&&Symbol,Ro=He();vt.exports=function(){return typeof gt!="function"||typeof Symbol!="function"||typeof gt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Ro()}});var bt=l((eu,ht)=>{"use strict";var Uo="Function.prototype.bind called on incompatible ",Ye=Array.prototype.slice,$o=Object.prototype.toString,Lo="[object Function]";ht.exports=function(r){var t=this;if(typeof t!="function"||$o.call(t)!==Lo)throw new TypeError(Uo+t);for(var n=Ye.call(arguments,1),o,a=function(){if(this instanceof o){var g=t.apply(this,n.concat(Ye.call(arguments)));return Object(g)===g?g:this}else return t.apply(r,n.concat(Ye.call(arguments)))},i=Math.max(0,t.length-n.length),s=[],f=0;f<i;f++)s.push("$"+f);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var d=function(){};d.prototype=t.prototype,o.prototype=new d,d.prototype=null}return o}});var re=l((ru,Et)=>{"use strict";var Vo=bt();Et.exports=Function.prototype.bind||Vo});var At=l((tu,St)=>{"use strict";var Do=re();St.exports=Do.call(Function.call,Object.prototype.hasOwnProperty)});var oe=l((nu,Tt)=>{"use strict";var y,k=SyntaxError,_t=Function,M=TypeError,Qe=function(e){try{return _t('"use strict"; return ('+e+").constructor;")()}catch{}},j=Object.getOwnPropertyDescriptor;if(j)try{j({},"")}catch{j=null}var Ze=function(){throw new M},Jo=j?function(){try{return arguments.callee,Ze}catch{try{return j(arguments,"callee").get}catch{return Ze}}}():Ze,C=xt()(),O=Object.getPrototypeOf||function(e){return e.__proto__},N={},Xo=typeof Uint8Array>"u"?y:O(Uint8Array),I={"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":C?O([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":typeof Atomics>"u"?y:Atomics,"%BigInt%":typeof BigInt>"u"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?y:FinalizationRegistry,"%Function%":_t,"%GeneratorFunction%":N,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C?O(O([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!C?y:O(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?y:Promise,"%Proxy%":typeof Proxy>"u"?y:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!C?y:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C?O(""[Symbol.iterator]()):y,"%Symbol%":C?Symbol:y,"%SyntaxError%":k,"%ThrowTypeError%":Jo,"%TypedArray%":Xo,"%TypeError%":M,"%Uint8Array%":typeof Uint8Array>"u"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?y:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?y:WeakSet};try{null.error}catch(e){Pt=O(O(e)),I["%Error.prototype%"]=Pt}var Pt,Bo=function e(r){var t;if(r==="%AsyncFunction%")t=Qe("async function () {}");else if(r==="%GeneratorFunction%")t=Qe("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=Qe("async function* () {}");else if(r==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(r==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&(t=O(o.prototype))}return I[r]=t,t},Ot={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},G=re(),te=At(),Wo=G.call(Function.call,Array.prototype.concat),zo=G.call(Function.apply,Array.prototype.splice),wt=G.call(Function.call,String.prototype.replace),ne=G.call(Function.call,String.prototype.slice),Go=G.call(Function.call,RegExp.prototype.exec),Ko=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ho=/\\(\\)?/g,Yo=function(r){var t=ne(r,0,1),n=ne(r,-1);if(t==="%"&&n!=="%")throw new k("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new k("invalid intrinsic syntax, expected opening `%`");var o=[];return wt(r,Ko,function(a,i,s,f){o[o.length]=s?wt(f,Ho,"$1"):i||a}),o},Qo=function(r,t){var n=r,o;if(te(Ot,n)&&(o=Ot[n],n="%"+o[0]+"%"),te(I,n)){var a=I[n];if(a===N&&(a=Bo(n)),typeof a>"u"&&!t)throw new M("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new k("intrinsic "+r+" does not exist!")};Tt.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new M("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new M('"allowMissing" argument must be a boolean');if(Go(/^%?[^%]*%?$/,r)===null)throw new k("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Yo(r),o=n.length>0?n[0]:"",a=Qo("%"+o+"%",t),i=a.name,s=a.value,f=!1,d=a.alias;d&&(o=d[0],zo(n,Wo([0,1],d)));for(var g=1,v=!0;g<n.length;g+=1){var p=n[g],h=ne(p,0,1),u=ne(p,-1);if((h==='"'||h==="'"||h==="`"||u==='"'||u==="'"||u==="`")&&h!==u)throw new k("property names with quotes must have matching quotes");if((p==="constructor"||!v)&&(f=!0),o+="."+p,i="%"+o+"%",te(I,i))s=I[i];else if(s!=null){if(!(p in s)){if(!t)throw new M("base intrinsic for "+r+" exists, but the property is not available.");return}if(j&&g+1>=n.length){var c=j(s,p);v=!!c,v&&"get"in c&&!("originalValue"in c.get)?s=c.get:s=s[p]}else v=te(s,p),s=s[p];v&&!f&&(I[i]=s)}}return s}});var It=l((ou,jt)=>{"use strict";var Zo=oe(),er=Zo("%Object.defineProperty%",!0),rr=function(){if(er)try{return er({},"a",{value:1}),!0}catch{return!1}return!1};rr.hasArrayLengthDefineBug=function(){if(!rr())return null;try{return er([],"length",{value:1}).length!==1}catch{return!0}};jt.exports=rr});var tr=l((au,Nt)=>{"use strict";var ea=Ke(),ra=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",ta=Object.prototype.toString,na=Array.prototype.concat,Ft=Object.defineProperty,oa=function(e){return typeof e=="function"&&ta.call(e)==="[object Function]"},aa=It()(),qt=Ft&&aa,ia=function(e,r,t,n){if(r in e){if(n===!0){if(e[r]===t)return}else if(!oa(n)||!n())return}qt?Ft(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},Ct=function(e,r){var t=arguments.length>2?arguments[2]:{},n=ea(r);ra&&(n=na.call(n,Object.getOwnPropertySymbols(r)));for(var o=0;o<n.length;o+=1)ia(e,n[o],r[n[o]],t[n[o]])};Ct.supportsDescriptors=!!qt;Nt.exports=Ct});var or=l((iu,ae)=>{"use strict";var nr=re(),R=oe(),Rt=R("%Function.prototype.apply%"),Ut=R("%Function.prototype.call%"),$t=R("%Reflect.apply%",!0)||nr.call(Ut,Rt),Mt=R("%Object.getOwnPropertyDescriptor%",!0),F=R("%Object.defineProperty%",!0),sa=R("%Math.max%");if(F)try{F({},"a",{value:1})}catch{F=null}ae.exports=function(r){var t=$t(nr,Ut,arguments);if(Mt&&F){var n=Mt(t,"length");n.configurable&&F(t,"length",{value:1+sa(0,r.length-(arguments.length-1))})}return t};var kt=function(){return $t(nr,Rt,arguments)};F?F(ae.exports,"apply",{value:kt}):ae.exports.apply=kt});var Jt=l((su,Dt)=>{"use strict";var Lt=oe(),Vt=or(),ua=Vt(Lt("String.prototype.indexOf"));Dt.exports=function(r,t){var n=Lt(r,!!t);return typeof n=="function"&&ua(r,".prototype.")>-1?Vt(n):n}});var ar=l((uu,Gt)=>{"use strict";var la=Ke(),Wt=He()(),zt=Jt(),Xt=Object,pa=zt("Array.prototype.push"),Bt=zt("Object.prototype.propertyIsEnumerable"),ca=Wt?Object.getOwnPropertySymbols:null;Gt.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var n=Xt(r);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var a=Xt(arguments[o]),i=la(a),s=Wt&&(Object.getOwnPropertySymbols||ca);if(s)for(var f=s(a),d=0;d<f.length;++d){var g=f[d];Bt(a,g)&&pa(i,g)}for(var v=0;v<i.length;++v){var p=i[v];if(Bt(a,p)){var h=a[p];n[p]=h}}}return n}});var sr=l((lu,Kt)=>{"use strict";var ir=ar(),fa=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},n=0;n<r.length;++n)t[r[n]]=r[n];var o=Object.assign({},t),a="";for(var i in o)a+=i;return e!==a},da=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1};Kt.exports=function(){return!Object.assign||fa()||da()?ir:Object.assign}});var Yt=l((pu,Ht)=>{"use strict";var ya=tr(),ma=sr();Ht.exports=function(){var r=ma();return ya(Object,{assign:r},{assign:function(){return Object.assign!==r}}),r}});var rn=l((cu,en)=>{"use strict";var ga=tr(),va=or(),xa=ar(),Qt=sr(),ha=Yt(),ba=va.apply(Qt()),Zt=function(r,t){return ba(Object,arguments)};ga(Zt,{getPolyfill:Qt,implementation:xa,shim:ha});en.exports=Zt});var nn=l(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});var Ea=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};ur.default=tn;var Sa=rn(),Aa=Pa(Sa);function Pa(e){return e&&e.__esModule?e:{default:e}}function tn(e){var r=A().default;return e.properties.reduce(function(t,n){var o=Ea({},t);if(/^(?:Experimental)?Spread(?:Property|Element)$/.test(n.type)){if(n.argument.type==="ObjectExpression")return(0,Aa.default)(o,tn(n.argument))}else o[r(n.key)]=r(n.value);return o},{})}});var on=l(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.default=Oa;function Oa(){return new Object}});var an=l(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.default=wa;function wa(e){var r=A().default,t=e.operator,n=e.argument,o=e.prefix,a=r(n);switch(t){case"++":return o?++a:a++;case"--":return o?--a:a--;default:return}}});var sn=l(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.default=_a;function _a(e){var r=A().default;return e.elements.map(function(t){if(t!==null)return r(t)})}});var un=l(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.default=Ta;function Ta(e){var r=A().default,t=r(e.callee),n=e.object===null?r(e.callee.object):r(e.object);return e.object&&e.object.property?n+"."+t+".bind("+n+")":t+".bind("+n+")"}});var ln=l(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.default=ja;function ja(){}});var pn=l(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.default=Ia;function Ia(e){var r=A().default;return r(e.expression)}});var cn=l(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.default=Fa;function Fa(e){var r=A().default;return e.expressions.map(function(t){return r(t)})}});var dn=l(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.default=_;var qa=Je().default;function fn(e,r,t){return t.computed?t.optional?e+"?.["+r+"]":e+"["+r+"]":t.optional?e+"?."+r:e+"."+r}function _(e){var r="The prop value with an expression type of TSNonNullExpression could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately.";if(e.type==="Identifier"){var t=e.name;return t}if(e.type==="Literal")return e.value;if(e.type==="TSAsExpression")return _(e.expression);if(e.type==="ThisExpression")return qa();if(e.type==="TSNonNullExpression"&&(!e.extra||e.extra.parenthesized===!1)){var n=e.expression;return _(n)+"!"}if(e.type==="TSNonNullExpression"&&e.extra&&e.extra.parenthesized===!0){var o=e.expression;return"("+_(o)+"!)"}if(e.type==="MemberExpression"){if(!e.extra||e.extra.parenthesized===!1)return fn(_(e.object),_(e.property),e);if(e.extra&&e.extra.parenthesized===!0){var a=fn(_(e.object),_(e.property),e);return"("+a+")"}}if(e.expression)for(var i=e.expression;i;){if(i.type==="Identifier")return console.error(r),i.name;var s=i;i=s.expression}return console.error(r),""}});var yn=l(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.default=Ca;function Ca(e){var r=A().default;return r(e.left)+" "+e.operator+" "+r(e.right)}});var A=l(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});var Na=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};ie.default=ki;ie.extractLiteral=Ri;var Ma=Pe(),ka=x(Ma),Ra=we(),Ua=x(Ra),$a=Vr(),La=x($a),Va=Te(),Da=x(Va),Ja=Jr(),Xa=x(Ja),Ba=Xr(),Wa=x(Ba),za=qe(),Ga=x(za),Ka=Br(),mn=x(Ka),Ha=Wr(),Ya=x(Ha),Qa=zr(),Za=x(Qa),ei=Gr(),ri=x(ei),ti=Kr(),ni=x(ti),oi=Hr(),ai=x(oi),ii=Yr(),si=x(ii),ui=Qr(),li=x(ui),pi=Je(),ci=x(pi),fi=Zr(),di=x(fi),yi=et(),mi=x(yi),gi=nn(),vi=x(gi),xi=on(),hi=x(xi),bi=an(),Ei=x(bi),Si=sn(),Ai=x(Si),Pi=un(),Oi=x(Pi),wi=ln(),_i=x(wi),Ti=pn(),ji=x(Ti),Ii=cn(),Fi=x(Ii),qi=dn(),Ci=x(qi),Ni=yn(),Mi=x(Ni);function x(e){return e&&e.__esModule?e:{default:e}}var T={Identifier:Xa.default,Literal:ka.default,JSXElement:Ua.default,JSXFragment:La.default,JSXText:Da.default,TaggedTemplateExpression:Wa.default,TemplateLiteral:Ga.default,ArrowFunctionExpression:mn.default,FunctionExpression:mn.default,LogicalExpression:Ya.default,MemberExpression:Za.default,ChainExpression:ri.default,OptionalCallExpression:ni.default,OptionalMemberExpression:ai.default,CallExpression:si.default,UnaryExpression:li.default,ThisExpression:ci.default,ConditionalExpression:di.default,BinaryExpression:mi.default,ObjectExpression:vi.default,NewExpression:hi.default,UpdateExpression:Ei.default,ArrayExpression:Ai.default,BindExpression:Oi.default,SpreadElement:_i.default,TypeCastExpression:ji.default,SequenceExpression:Fi.default,TSNonNullExpression:Ci.default,AssignmentExpression:Mi.default},S=function(){return null},vn=function(r){return"The prop value with an expression type of "+r+" could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately."};function ki(e){var r=void 0;typeof e.expression!="boolean"&&e.expression?r=e.expression:r=e;var t=r,n=t.type;for(r.object&&r.object.type==="TSNonNullExpression"&&(n="TSNonNullExpression");n==="TSAsExpression";){var o=r;if(n=o.type,r.expression){var a=r;r=a.expression}}return T[n]===void 0?(console.error(vn(n)),null):T[n](r)}var gn=Na({},T,{Literal:function(r){var t=T.Literal.call(void 0,r),n=t===null;return n?"null":t},Identifier:function(r){var t=T.Identifier.call(void 0,r)===void 0;return t?void 0:null},JSXElement:S,JSXFragment:S,JSXText:S,ArrowFunctionExpression:S,FunctionExpression:S,LogicalExpression:S,MemberExpression:S,OptionalCallExpression:S,OptionalMemberExpression:S,CallExpression:S,UnaryExpression:function(r){var t=T.UnaryExpression.call(void 0,r);return t===void 0?null:t},UpdateExpression:function(r){var t=T.UpdateExpression.call(void 0,r);return t===void 0?null:t},ThisExpression:S,ConditionalExpression:S,BinaryExpression:S,ObjectExpression:S,NewExpression:S,ArrayExpression:function(r){var t=T.ArrayExpression.call(void 0,r);return t.filter(function(n){return n!==null})},BindExpression:S,SpreadElement:S,TSNonNullExpression:S,TSAsExpression:S,TypeCastExpression:S,SequenceExpression:S,ChainExpression:S});function Ri(e){var r=e.expression||e,t=r.type;return gn[t]===void 0?(console.error(vn(t)),null):gn[t](r)}});var Q=l(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var Ui=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};ue.default=zi;ue.getLiteralValue=Gi;var $i=Pe(),Li=se($i),Vi=we(),Di=se(Vi),Ji=Te(),Xi=se(Ji),xn=A(),Bi=se(xn);function se(e){return e&&e.__esModule?e:{default:e}}var hn={Literal:Li.default,JSXElement:Di.default,JSXExpressionContainer:Bi.default,JSXText:Xi.default},Wi=Ui({},hn,{JSXElement:function(){return null},JSXExpressionContainer:xn.extractLiteral});function zi(e){return hn[e.type](e)}function Gi(e){return Wi[e.type](e)}});var Sn=l(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.default=Yi;le.getLiteralPropValue=Qi;var bn=Q(),Ki=Hi(bn);function Hi(e){return e&&e.__esModule?e:{default:e}}var En=function(r,t){if(r&&r.type==="JSXAttribute")return r.value===null?!0:t(r.value)};function Yi(e){return En(e,Ki.default)}function Qi(e){return En(e,bn.getLiteralValue)}});var pe=l((Ou,On)=>{"use strict";var xr=Mr(),Zi=U(xr),es=Rr(),rs=U(es),An=Ur(),ts=U(An),ns=Lr(),os=U(ns),Pn=Sn(),as=U(Pn),is=H(),ss=U(is);function U(e){return e&&e.__esModule?e:{default:e}}On.exports={hasProp:Zi.default,hasAnyProp:xr.hasAnyProp,hasEveryProp:xr.hasEveryProp,elementType:rs.default,eventHandlers:ts.default,eventHandlersByType:An.eventHandlersByType,getProp:os.default,getPropValue:as.default,getLiteralPropValue:Pn.getLiteralPropValue,propName:ss.default}});var ys={};Un(ys,{configs:()=>ds,rules:()=>fs});module.exports=$n(ys);var me=require("@typescript-eslint/utils"),P=D(require("typescript"));var _r=D(wr(),1);function fe(e){let r=(0,_r.default)(e);if(r===0)return e;let t=new RegExp(`^[ \\t]{${r}}`,"gm");return e.replace(t,"")}function de(e,r=1,t={}){let{indent:n=" ",includeEmptyLines:o=!1}=t;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof r!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof r}\``);if(r<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${r}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(r===0)return e;let a=o?/^/gm:/^(?!\s*$)/gm;return e.replace(a,n.repeat(r))}function ye(e,r=0,t={}){return de(fe(e),r,t)}var Ln=me.ESLintUtils.RuleCreator(()=>"https://qwik.builder.io/docs/advanced/dollar/"),Tr=Ln({name:"valid-lexical-scope",defaultOptions:[{allowAny:!0}],meta:{type:"problem",docs:{description:"Used the tsc typechecker to detect the capture of unserializable data in dollar ($) scopes.",recommended:"error"},schema:[{type:"object",properties:{allowAny:{type:"boolean"}},default:{allowAny:!0}}],messages:{referencesOutside:`Seems like you are referencing "{{varName}}" inside a different scope ({{dollarName}}), when this happens, Qwik needs to serialize the value, however {{reason}}.
"use strict";var kn=Object.create;var K=Object.defineProperty;var Mn=Object.getOwnPropertyDescriptor;var Rn=Object.getOwnPropertyNames;var Un=Object.getPrototypeOf,$n=Object.prototype.hasOwnProperty;var l=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Jn=(e,r)=>{for(var t in r)K(e,t,{get:r[t],enumerable:!0})},wr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Rn(r))!$n.call(e,o)&&o!==t&&K(e,o,{get:()=>r[o],enumerable:!(n=Mn(r,o))||n.enumerable});return e};var V=(e,r,t)=>(t=e!=null?kn(Un(e)):{},wr(r||!e||!e.__esModule?K(t,"default",{value:e,enumerable:!0}):t,e)),Ln=e=>wr(K({},"__esModule",{value:!0}),e);var Or=l((hs,Pr)=>{"use strict";Pr.exports=e=>{let r=e.match(/^[ \t]*(?=\S)/gm);return r?r.reduce((t,n)=>Math.min(t,n.length),1/0):0}});var H=l(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.default=Qn;function Qn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!e.type||e.type!=="JSXAttribute")throw new Error("The prop must be a JSXAttribute collected by the AST parser.");return e.name.type==="JSXNamespacedName"?e.name.namespace.name+":"+e.name.name.name:e.name.name}});var kr=l(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.default=xe;X.hasAnyProp=ro;X.hasEveryProp=to;var Zn=H(),Nr=eo(Zn);function eo(e){return e&&e.__esModule?e:{default:e}}var ve={spreadStrict:!0,ignoreCase:!0};function xe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ve,n=t.ignoreCase?r.toUpperCase():r;return e.some(function(o){if(o.type==="JSXSpreadAttribute")return!t.spreadStrict;var a=t.ignoreCase?(0,Nr.default)(o).toUpperCase():(0,Nr.default)(o);return n===a})}function ro(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ve,n=typeof r=="string"?r.split(" "):r;return n.some(function(o){return xe(e,o,t)})}function to(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ve,n=typeof r=="string"?r.split(" "):r;return n.every(function(o){return xe(e,o,t)})}});var Rr=l(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.default=no;function Mr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.type==="JSXMemberExpression"?Mr(e.object,e.property)+"."+r.name:e.name+"."+r.name}function no(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.name;if(e.type==="JSXOpeningFragment")return"<>";if(!r)throw new Error("The argument provided is not a JSXElement node.");if(r.type==="JSXMemberExpression"){var t=r.object,n=t===void 0?{}:t,o=r.property,a=o===void 0?{}:o;return Mr(n,a)}return r.type==="JSXNamespacedName"?r.namespace.name+":"+r.name.name:e.name.name}});var Ur=l(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var be={clipboard:["onCopy","onCut","onPaste"],composition:["onCompositionEnd","onCompositionStart","onCompositionUpdate"],keyboard:["onKeyDown","onKeyPress","onKeyUp"],focus:["onFocus","onBlur"],form:["onChange","onInput","onSubmit"],mouse:["onClick","onContextMenu","onDblClick","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],selection:["onSelect"],touch:["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],ui:["onScroll"],wheel:["onWheel"],media:["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],image:["onLoad","onError"],animation:["onAnimationStart","onAnimationEnd","onAnimationIteration"],transition:["onTransitionEnd"]},oo=Object.keys(be).reduce(function(e,r){return e.concat(be[r])},[]);Y.default=oo;Y.eventHandlersByType=be});var Jr=l(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});var ao=function(){function e(r,t){var n=[],o=!0,a=!1,i=void 0;try{for(var s=r[Symbol.iterator](),f;!(o=(f=s.next()).done)&&(n.push(f.value),!(t&&n.length===t));o=!0);}catch(d){a=!0,i=d}finally{try{!o&&s.return&&s.return()}finally{if(a)throw i}}return n}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),q=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};Ee.default=po;var io=H(),so=uo(io);function uo(e){return e&&e.__esModule?e:{default:e}}function $r(e,r){var t={};for(var n in e)r.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var lo={ignoreCase:!0};function po(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lo;function n(s){return t.ignoreCase?s.toUpperCase():s}var o=n(r);function a(s){return s.type==="Property"&&s.key.type==="Identifier"&&o===n(s.key.name)}var i=e.find(function(s){return s.type==="JSXSpreadAttribute"?s.argument.type==="ObjectExpression"&&o!==n("key")&&s.argument.properties.some(a):o===n((0,so.default)(s))});return i&&i.type==="JSXSpreadAttribute"?co(i.argument.properties.find(a)):i}function co(e){var r=e.key,t=e.value;return q({type:"JSXAttribute",name:q({type:"JSXIdentifier",name:r.name},Se(r)),value:t.type==="Literal"?B(t):q({type:"JSXExpressionContainer",expression:fo(t)},Se(t))},Se(e))}function B(e){var r=e.range||[e.start,e.end],t=ao(r,2),n=t[0],o=t[1];return q({},e,{end:void 0,range:[n,o],start:void 0})}function fo(e){var r=e.expressions,t=e.quasis,n=$r(e,["expressions","quasis"]);return q({},B(n),r?{expressions:r.map(B)}:{},t?{quasis:t.map(B)}:{})}function Se(e){var r=e.loc,t=$r(e,["loc"]),n=B(t),o=n.range;return{loc:yo(r),range:o}}function yo(e){var r=e.start,t=e.end,n=e.source,o=e.filename;return q({start:r,end:t},n!==void 0?{source:n}:{},o!==void 0?{filename:o}:{})}});var we=l(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.default=mo;function mo(e){var r=e.value,t=typeof r=="string"&&r.toLowerCase();return t==="true"?!0:t==="false"?!1:r}});var Oe=l(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.default=go;function go(e){var r=Q().default,t=e.openingElement.name.name;return e.openingElement.selfClosing?"<"+t+" />":"<"+t+">"+[].concat(e.children).map(function(n){return r(n)}).join("")+"</"+t+">"}});var Te=l(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.default=vo;function vo(e){return e.raw}});var Lr=l(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.default=xo;function xo(e){var r=Q().default;return e.children.length===0?"<></>":"<>"+[].concat(e.children).map(function(t){return r(t)}).join("")+"</>"}});var Dr=l(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.default=ho;var Vr={Array,Date,Infinity:1/0,Math,Number,Object,String,undefined:void 0};function ho(e){var r=e.name;return Object.hasOwnProperty.call(Vr,r)?Vr[r]:r}});var qe=l(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.default=So;function bo(e,r){return(e.range?e.range[0]:e.start)-(r.range?r.range[0]:r.start)}function So(e){var r=e.quasis,t=e.expressions,n=r.concat(t);return n.sort(bo).reduce(function(o,a){var i=a.type;return i==="TemplateElement"?o+a.value.raw:i==="Identifier"?a.name==="undefined"?""+o+a.name:o+"{"+a.name+"}":i.indexOf("Expression")>-1?o+"{"+i+"}":o},"")}});var Xr=l(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.default=Po;var Eo=qe(),Ao=wo(Eo);function wo(e){return e&&e.__esModule?e:{default:e}}function Po(e){return(0,Ao.default)(e.quasi)}});var Br=l(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.default=Oo;function Oo(e){return function(){return e}}});var Wr=l(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.default=_o;function _o(e){var r=A().default,t=e.operator,n=e.left,o=e.right,a=r(n),i=r(o);return t==="&&"?a&&i:t==="??"?a===null||typeof a>"u"?i:a:a||i}});var zr=l(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.default=To;function To(e){var r=A().default;return""+r(e.object)+(e.optional?"?.":".")+r(e.property)}});var Gr=l(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.default=jo;function jo(e){var r=A().default;return r(e.expression||e)}});var Kr=l(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=Io;function Io(e){var r=A().default;return r(e.callee)+"?.("+e.arguments.map(function(t){return r(t)}).join(", ")+")"}});var Hr=l($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.default=Fo;function Fo(e){var r=A().default;return r(e.object)+"?."+r(e.property)}});var Yr=l(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.default=qo;function qo(e){var r=A().default,t=Array.isArray(e.arguments)?e.arguments.map(function(n){return r(n)}).join(", "):"";return""+r(e.callee)+(e.optional?"?.":"")+"("+t+")"}});var Qr=l(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.default=Co;function Co(e){var r=A().default,t=e.operator,n=e.argument;switch(t){case"-":return-r(n);case"+":return+r(n);case"!":return!r(n);case"~":return~r(n);case"delete":return!0;case"typeof":case"void":default:return}}});var De=l(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.default=No;function No(){return"this"}});var Zr=l(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.default=ko;function ko(e){var r=A().default,t=e.test,n=e.alternate,o=e.consequent;return r(t)?r(o):r(n)}});var et=l(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.default=Mo;function Mo(e){var r=A().default,t=e.operator,n=e.left,o=e.right,a=r(n),i=r(o);switch(t){case"==":return a==i;case"!=":return a!=i;case"===":return a===i;case"!==":return a!==i;case"<":return a<i;case"<=":return a<=i;case">":return a>i;case">=":return a>=i;case"<<":return a<<i;case">>":return a>>i;case">>>":return a>>>i;case"+":return a+i;case"-":return a-i;case"*":return a*i;case"/":return a/i;case"%":return a%i;case"|":return a|i;case"^":return a^i;case"&":return a&i;case"in":try{return a in i}catch{return!1}case"instanceof":return typeof i!="function"?!1:a instanceof i;default:return}}});var We=l((Qs,tt)=>{"use strict";var rt=Object.prototype.toString;tt.exports=function(r){var t=rt.call(r),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&rt.call(r.callee)==="[object Function]"),n}});var ct=l((Zs,pt)=>{"use strict";var lt;Object.keys||(W=Object.prototype.hasOwnProperty,ze=Object.prototype.toString,nt=We(),Ge=Object.prototype.propertyIsEnumerable,ot=!Ge.call({toString:null},"toString"),at=Ge.call(function(){},"prototype"),z=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Z=function(e){var r=e.constructor;return r&&r.prototype===e},it={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},st=function(){if(typeof window>"u")return!1;for(var e in window)try{if(!it["$"+e]&&W.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Z(window[e])}catch{return!0}}catch{return!0}return!1}(),ut=function(e){if(typeof window>"u"||!st)return Z(e);try{return Z(e)}catch{return!1}},lt=function(r){var t=r!==null&&typeof r=="object",n=ze.call(r)==="[object Function]",o=nt(r),a=t&&ze.call(r)==="[object String]",i=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var s=at&&n;if(a&&r.length>0&&!W.call(r,0))for(var f=0;f<r.length;++f)i.push(String(f));if(o&&r.length>0)for(var d=0;d<r.length;++d)i.push(String(d));else for(var g in r)!(s&&g==="prototype")&&W.call(r,g)&&i.push(String(g));if(ot)for(var v=ut(r),p=0;p<z.length;++p)!(v&&z[p]==="constructor")&&W.call(r,z[p])&&i.push(z[p]);return i});var W,ze,nt,Ge,ot,at,z,Z,it,st,ut;pt.exports=lt});var Ke=l((eu,yt)=>{"use strict";var Ro=Array.prototype.slice,Uo=We(),ft=Object.keys,ee=ft?function(r){return ft(r)}:ct(),dt=Object.keys;ee.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(n){return Uo(n)?dt(Ro.call(n)):dt(n)})}else Object.keys=ee;return Object.keys||ee};yt.exports=ee});var He=l((ru,mt)=>{"use strict";mt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;r[t]=o;for(t in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var a=Object.getOwnPropertySymbols(r);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(r,t);if(i.value!==o||i.enumerable!==!0)return!1}return!0}});var xt=l((tu,vt)=>{"use strict";var gt=typeof Symbol<"u"&&Symbol,$o=He();vt.exports=function(){return typeof gt!="function"||typeof Symbol!="function"||typeof gt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:$o()}});var bt=l((nu,ht)=>{"use strict";var Jo="Function.prototype.bind called on incompatible ",Ye=Array.prototype.slice,Lo=Object.prototype.toString,Vo="[object Function]";ht.exports=function(r){var t=this;if(typeof t!="function"||Lo.call(t)!==Vo)throw new TypeError(Jo+t);for(var n=Ye.call(arguments,1),o,a=function(){if(this instanceof o){var g=t.apply(this,n.concat(Ye.call(arguments)));return Object(g)===g?g:this}else return t.apply(r,n.concat(Ye.call(arguments)))},i=Math.max(0,t.length-n.length),s=[],f=0;f<i;f++)s.push("$"+f);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var d=function(){};d.prototype=t.prototype,o.prototype=new d,d.prototype=null}return o}});var re=l((ou,St)=>{"use strict";var Do=bt();St.exports=Function.prototype.bind||Do});var At=l((au,Et)=>{"use strict";var Xo=re();Et.exports=Xo.call(Function.call,Object.prototype.hasOwnProperty)});var oe=l((iu,Tt)=>{"use strict";var y,M=SyntaxError,_t=Function,k=TypeError,Qe=function(e){try{return _t('"use strict"; return ('+e+").constructor;")()}catch{}},j=Object.getOwnPropertyDescriptor;if(j)try{j({},"")}catch{j=null}var Ze=function(){throw new k},Bo=j?function(){try{return arguments.callee,Ze}catch{try{return j(arguments,"callee").get}catch{return Ze}}}():Ze,C=xt()(),P=Object.getPrototypeOf||function(e){return e.__proto__},N={},Wo=typeof Uint8Array>"u"?y:P(Uint8Array),I={"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":C?P([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":typeof Atomics>"u"?y:Atomics,"%BigInt%":typeof BigInt>"u"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?y:FinalizationRegistry,"%Function%":_t,"%GeneratorFunction%":N,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C?P(P([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!C?y:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?y:Promise,"%Proxy%":typeof Proxy>"u"?y:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!C?y:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C?P(""[Symbol.iterator]()):y,"%Symbol%":C?Symbol:y,"%SyntaxError%":M,"%ThrowTypeError%":Bo,"%TypedArray%":Wo,"%TypeError%":k,"%Uint8Array%":typeof Uint8Array>"u"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?y:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?y:WeakSet};try{null.error}catch(e){wt=P(P(e)),I["%Error.prototype%"]=wt}var wt,zo=function e(r){var t;if(r==="%AsyncFunction%")t=Qe("async function () {}");else if(r==="%GeneratorFunction%")t=Qe("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=Qe("async function* () {}");else if(r==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(r==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&(t=P(o.prototype))}return I[r]=t,t},Pt={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},G=re(),te=At(),Go=G.call(Function.call,Array.prototype.concat),Ko=G.call(Function.apply,Array.prototype.splice),Ot=G.call(Function.call,String.prototype.replace),ne=G.call(Function.call,String.prototype.slice),Ho=G.call(Function.call,RegExp.prototype.exec),Yo=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Qo=/\\(\\)?/g,Zo=function(r){var t=ne(r,0,1),n=ne(r,-1);if(t==="%"&&n!=="%")throw new M("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new M("invalid intrinsic syntax, expected opening `%`");var o=[];return Ot(r,Yo,function(a,i,s,f){o[o.length]=s?Ot(f,Qo,"$1"):i||a}),o},ea=function(r,t){var n=r,o;if(te(Pt,n)&&(o=Pt[n],n="%"+o[0]+"%"),te(I,n)){var a=I[n];if(a===N&&(a=zo(n)),typeof a>"u"&&!t)throw new k("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new M("intrinsic "+r+" does not exist!")};Tt.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new k("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new k('"allowMissing" argument must be a boolean');if(Ho(/^%?[^%]*%?$/,r)===null)throw new M("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Zo(r),o=n.length>0?n[0]:"",a=ea("%"+o+"%",t),i=a.name,s=a.value,f=!1,d=a.alias;d&&(o=d[0],Ko(n,Go([0,1],d)));for(var g=1,v=!0;g<n.length;g+=1){var p=n[g],h=ne(p,0,1),u=ne(p,-1);if((h==='"'||h==="'"||h==="`"||u==='"'||u==="'"||u==="`")&&h!==u)throw new M("property names with quotes must have matching quotes");if((p==="constructor"||!v)&&(f=!0),o+="."+p,i="%"+o+"%",te(I,i))s=I[i];else if(s!=null){if(!(p in s)){if(!t)throw new k("base intrinsic for "+r+" exists, but the property is not available.");return}if(j&&g+1>=n.length){var c=j(s,p);v=!!c,v&&"get"in c&&!("originalValue"in c.get)?s=c.get:s=s[p]}else v=te(s,p),s=s[p];v&&!f&&(I[i]=s)}}return s}});var It=l((su,jt)=>{"use strict";var ra=oe(),er=ra("%Object.defineProperty%",!0),rr=function(){if(er)try{return er({},"a",{value:1}),!0}catch{return!1}return!1};rr.hasArrayLengthDefineBug=function(){if(!rr())return null;try{return er([],"length",{value:1}).length!==1}catch{return!0}};jt.exports=rr});var tr=l((uu,Nt)=>{"use strict";var ta=Ke(),na=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",oa=Object.prototype.toString,aa=Array.prototype.concat,Ft=Object.defineProperty,ia=function(e){return typeof e=="function"&&oa.call(e)==="[object Function]"},sa=It()(),qt=Ft&&sa,ua=function(e,r,t,n){if(r in e){if(n===!0){if(e[r]===t)return}else if(!ia(n)||!n())return}qt?Ft(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},Ct=function(e,r){var t=arguments.length>2?arguments[2]:{},n=ta(r);na&&(n=aa.call(n,Object.getOwnPropertySymbols(r)));for(var o=0;o<n.length;o+=1)ua(e,n[o],r[n[o]],t[n[o]])};Ct.supportsDescriptors=!!qt;Nt.exports=Ct});var or=l((lu,ae)=>{"use strict";var nr=re(),R=oe(),Rt=R("%Function.prototype.apply%"),Ut=R("%Function.prototype.call%"),$t=R("%Reflect.apply%",!0)||nr.call(Ut,Rt),kt=R("%Object.getOwnPropertyDescriptor%",!0),F=R("%Object.defineProperty%",!0),la=R("%Math.max%");if(F)try{F({},"a",{value:1})}catch{F=null}ae.exports=function(r){var t=$t(nr,Ut,arguments);if(kt&&F){var n=kt(t,"length");n.configurable&&F(t,"length",{value:1+la(0,r.length-(arguments.length-1))})}return t};var Mt=function(){return $t(nr,Rt,arguments)};F?F(ae.exports,"apply",{value:Mt}):ae.exports.apply=Mt});var Dt=l((pu,Vt)=>{"use strict";var Jt=oe(),Lt=or(),pa=Lt(Jt("String.prototype.indexOf"));Vt.exports=function(r,t){var n=Jt(r,!!t);return typeof n=="function"&&pa(r,".prototype.")>-1?Lt(n):n}});var ar=l((cu,Gt)=>{"use strict";var ca=Ke(),Wt=He()(),zt=Dt(),Xt=Object,fa=zt("Array.prototype.push"),Bt=zt("Object.prototype.propertyIsEnumerable"),da=Wt?Object.getOwnPropertySymbols:null;Gt.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var n=Xt(r);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var a=Xt(arguments[o]),i=ca(a),s=Wt&&(Object.getOwnPropertySymbols||da);if(s)for(var f=s(a),d=0;d<f.length;++d){var g=f[d];Bt(a,g)&&fa(i,g)}for(var v=0;v<i.length;++v){var p=i[v];if(Bt(a,p)){var h=a[p];n[p]=h}}}return n}});var sr=l((fu,Kt)=>{"use strict";var ir=ar(),ya=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},n=0;n<r.length;++n)t[r[n]]=r[n];var o=Object.assign({},t),a="";for(var i in o)a+=i;return e!==a},ma=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1};Kt.exports=function(){return!Object.assign||ya()||ma()?ir:Object.assign}});var Yt=l((du,Ht)=>{"use strict";var ga=tr(),va=sr();Ht.exports=function(){var r=va();return ga(Object,{assign:r},{assign:function(){return Object.assign!==r}}),r}});var rn=l((yu,en)=>{"use strict";var xa=tr(),ha=or(),ba=ar(),Qt=sr(),Sa=Yt(),Ea=ha.apply(Qt()),Zt=function(r,t){return Ea(Object,arguments)};xa(Zt,{getPolyfill:Qt,implementation:ba,shim:Sa});en.exports=Zt});var nn=l(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});var Aa=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};ur.default=tn;var wa=rn(),Pa=Oa(wa);function Oa(e){return e&&e.__esModule?e:{default:e}}function tn(e){var r=A().default;return e.properties.reduce(function(t,n){var o=Aa({},t);if(/^(?:Experimental)?Spread(?:Property|Element)$/.test(n.type)){if(n.argument.type==="ObjectExpression")return(0,Pa.default)(o,tn(n.argument))}else o[r(n.key)]=r(n.value);return o},{})}});var on=l(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.default=_a;function _a(){return new Object}});var an=l(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.default=Ta;function Ta(e){var r=A().default,t=e.operator,n=e.argument,o=e.prefix,a=r(n);switch(t){case"++":return o?++a:a++;case"--":return o?--a:a--;default:return}}});var sn=l(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.default=ja;function ja(e){var r=A().default;return e.elements.map(function(t){if(t!==null)return r(t)})}});var un=l(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.default=Ia;function Ia(e){var r=A().default,t=r(e.callee),n=e.object===null?r(e.callee.object):r(e.object);return e.object&&e.object.property?n+"."+t+".bind("+n+")":t+".bind("+n+")"}});var ln=l(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.default=Fa;function Fa(){}});var pn=l(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.default=qa;function qa(e){var r=A().default;return r(e.expression)}});var cn=l(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.default=Ca;function Ca(e){var r=A().default;return e.expressions.map(function(t){return r(t)})}});var dn=l(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.default=_;var Na=De().default;function fn(e,r,t){return t.computed?t.optional?e+"?.["+r+"]":e+"["+r+"]":t.optional?e+"?."+r:e+"."+r}function _(e){var r="The prop value with an expression type of TSNonNullExpression could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately.";if(e.type==="Identifier"){var t=e.name;return t}if(e.type==="Literal")return e.value;if(e.type==="TSAsExpression")return _(e.expression);if(e.type==="ThisExpression")return Na();if(e.type==="TSNonNullExpression"&&(!e.extra||e.extra.parenthesized===!1)){var n=e.expression;return _(n)+"!"}if(e.type==="TSNonNullExpression"&&e.extra&&e.extra.parenthesized===!0){var o=e.expression;return"("+_(o)+"!)"}if(e.type==="MemberExpression"){if(!e.extra||e.extra.parenthesized===!1)return fn(_(e.object),_(e.property),e);if(e.extra&&e.extra.parenthesized===!0){var a=fn(_(e.object),_(e.property),e);return"("+a+")"}}if(e.expression)for(var i=e.expression;i;){if(i.type==="Identifier")return console.error(r),i.name;var s=i;i=s.expression}return console.error(r),""}});var yn=l(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.default=ka;function ka(e){var r=A().default;return r(e.left)+" "+e.operator+" "+r(e.right)}});var A=l(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});var Ma=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};ie.default=Ui;ie.extractLiteral=$i;var Ra=we(),Ua=x(Ra),$a=Oe(),Ja=x($a),La=Lr(),Va=x(La),Da=Te(),Xa=x(Da),Ba=Dr(),Wa=x(Ba),za=Xr(),Ga=x(za),Ka=qe(),Ha=x(Ka),Ya=Br(),mn=x(Ya),Qa=Wr(),Za=x(Qa),ei=zr(),ri=x(ei),ti=Gr(),ni=x(ti),oi=Kr(),ai=x(oi),ii=Hr(),si=x(ii),ui=Yr(),li=x(ui),pi=Qr(),ci=x(pi),fi=De(),di=x(fi),yi=Zr(),mi=x(yi),gi=et(),vi=x(gi),xi=nn(),hi=x(xi),bi=on(),Si=x(bi),Ei=an(),Ai=x(Ei),wi=sn(),Pi=x(wi),Oi=un(),_i=x(Oi),Ti=ln(),ji=x(Ti),Ii=pn(),Fi=x(Ii),qi=cn(),Ci=x(qi),Ni=dn(),ki=x(Ni),Mi=yn(),Ri=x(Mi);function x(e){return e&&e.__esModule?e:{default:e}}var T={Identifier:Wa.default,Literal:Ua.default,JSXElement:Ja.default,JSXFragment:Va.default,JSXText:Xa.default,TaggedTemplateExpression:Ga.default,TemplateLiteral:Ha.default,ArrowFunctionExpression:mn.default,FunctionExpression:mn.default,LogicalExpression:Za.default,MemberExpression:ri.default,ChainExpression:ni.default,OptionalCallExpression:ai.default,OptionalMemberExpression:si.default,CallExpression:li.default,UnaryExpression:ci.default,ThisExpression:di.default,ConditionalExpression:mi.default,BinaryExpression:vi.default,ObjectExpression:hi.default,NewExpression:Si.default,UpdateExpression:Ai.default,ArrayExpression:Pi.default,BindExpression:_i.default,SpreadElement:ji.default,TypeCastExpression:Fi.default,SequenceExpression:Ci.default,TSNonNullExpression:ki.default,AssignmentExpression:Ri.default},E=function(){return null},vn=function(r){return"The prop value with an expression type of "+r+" could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately."};function Ui(e){var r=void 0;typeof e.expression!="boolean"&&e.expression?r=e.expression:r=e;var t=r,n=t.type;for(r.object&&r.object.type==="TSNonNullExpression"&&(n="TSNonNullExpression");n==="TSAsExpression";){var o=r;if(n=o.type,r.expression){var a=r;r=a.expression}}return T[n]===void 0?(console.error(vn(n)),null):T[n](r)}var gn=Ma({},T,{Literal:function(r){var t=T.Literal.call(void 0,r),n=t===null;return n?"null":t},Identifier:function(r){var t=T.Identifier.call(void 0,r)===void 0;return t?void 0:null},JSXElement:E,JSXFragment:E,JSXText:E,ArrowFunctionExpression:E,FunctionExpression:E,LogicalExpression:E,MemberExpression:E,OptionalCallExpression:E,OptionalMemberExpression:E,CallExpression:E,UnaryExpression:function(r){var t=T.UnaryExpression.call(void 0,r);return t===void 0?null:t},UpdateExpression:function(r){var t=T.UpdateExpression.call(void 0,r);return t===void 0?null:t},ThisExpression:E,ConditionalExpression:E,BinaryExpression:E,ObjectExpression:E,NewExpression:E,ArrayExpression:function(r){var t=T.ArrayExpression.call(void 0,r);return t.filter(function(n){return n!==null})},BindExpression:E,SpreadElement:E,TSNonNullExpression:E,TSAsExpression:E,TypeCastExpression:E,SequenceExpression:E,ChainExpression:E});function $i(e){var r=e.expression||e,t=r.type;return gn[t]===void 0?(console.error(vn(t)),null):gn[t](r)}});var Q=l(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var Ji=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};ue.default=Ki;ue.getLiteralValue=Hi;var Li=we(),Vi=se(Li),Di=Oe(),Xi=se(Di),Bi=Te(),Wi=se(Bi),xn=A(),zi=se(xn);function se(e){return e&&e.__esModule?e:{default:e}}var hn={Literal:Vi.default,JSXElement:Xi.default,JSXExpressionContainer:zi.default,JSXText:Wi.default},Gi=Ji({},hn,{JSXElement:function(){return null},JSXExpressionContainer:xn.extractLiteral});function Ki(e){return hn[e.type](e)}function Hi(e){return Gi[e.type](e)}});var En=l(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.default=Zi;le.getLiteralPropValue=es;var bn=Q(),Yi=Qi(bn);function Qi(e){return e&&e.__esModule?e:{default:e}}var Sn=function(r,t){if(r&&r.type==="JSXAttribute")return r.value===null?!0:t(r.value)};function Zi(e){return Sn(e,Yi.default)}function es(e){return Sn(e,bn.getLiteralValue)}});var pe=l((Tu,Pn)=>{"use strict";var xr=kr(),rs=U(xr),ts=Rr(),ns=U(ts),An=Ur(),os=U(An),as=Jr(),is=U(as),wn=En(),ss=U(wn),us=H(),ls=U(us);function U(e){return e&&e.__esModule?e:{default:e}}Pn.exports={hasProp:rs.default,hasAnyProp:xr.hasAnyProp,hasEveryProp:xr.hasEveryProp,elementType:ns.default,eventHandlers:os.default,eventHandlersByType:An.eventHandlersByType,getProp:is.default,getPropValue:ss.default,getLiteralPropValue:wn.getLiteralPropValue,propName:ls.default}});var vs={};Jn(vs,{configs:()=>gs,rules:()=>ms});module.exports=Ln(vs);var me=require("@typescript-eslint/utils"),w=V(require("typescript"));var _r=V(Or(),1);function fe(e){let r=(0,_r.default)(e);if(r===0)return e;let t=new RegExp(`^[ \\t]{${r}}`,"gm");return e.replace(t,"")}function de(e,r=1,t={}){let{indent:n=" ",includeEmptyLines:o=!1}=t;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof r!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof r}\``);if(r<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${r}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(r===0)return e;let a=o?/^/gm:/^(?!\s*$)/gm;return e.replace(a,n.repeat(r))}function ye(e,r=0,t={}){return de(fe(e),r,t)}var Vn=me.ESLintUtils.RuleCreator(()=>"https://qwik.builder.io/docs/advanced/dollar/"),Tr=Vn({name:"valid-lexical-scope",defaultOptions:[{allowAny:!0}],meta:{type:"problem",docs:{description:"Used the tsc typechecker to detect the capture of unserializable data in dollar ($) scopes.",recommended:"error"},schema:[{type:"object",properties:{allowAny:{type:"boolean"}},default:{allowAny:!0}}],messages:{referencesOutside:`Seems like you are referencing "{{varName}}" inside a different scope ({{dollarName}}), when this happens, Qwik needs to serialize the value, however {{reason}}.
Check out https://qwik.builder.io/docs/advanced/dollar/ for more details.`,invalidJsxDollar:`Seems like you are using "{{varName}}" as an event handler, however functions are not serializable.

@@ -7,6 +7,6 @@ Did you mean to wrap it in \`$()\`?

Check out https://qwik.builder.io/docs/advanced/dollar/ for more details.`,mutableIdentifier:`Seems like you are mutating the value of ("{{varName}}"), but this is not possible when captured by the ({{dollarName}}) closure, instead create an object and mutate one of its properties.
Check out https://qwik.builder.io/docs/advanced/dollar/ for more details.`}},create(e){var g;let t={allowAny:((g=e.options[0])==null?void 0:g.allowAny)??!0},n=e.getSourceCode().scopeManager,o=me.ESLintUtils.getParserServices(e),a=o.esTreeNodeToTSNodeMap,i=o.program.getTypeChecker(),s=new Map,f=[];function d(v){v.references.forEach(p=>{var c,E;let h=p.resolved,u=(c=p.resolved)==null?void 0:c.scope;if(h&&u){let m=(E=h.defs.at(0))==null?void 0:E.type;if(m==="Type"||m==="ImportBinding")return;let b=p.from,w;for(;b&&(w=s.get(b),!w);)b=b.upper;if(b&&w){let $=u.type;if($==="global"||$==="module")return;let L=p.identifier,qn=a.get(L),V=u;for(;V&&!s.has(V);)V=V.upper;if(V!==b){L.parent&&L.parent.type==="AssignmentExpression"&&L.parent.left===L&&e.report({messageId:"mutableIdentifier",node:p.identifier,data:{varName:p.identifier.name,dollarName:w}});let Ar=Vn(e,i,qn,p.identifier,t);Ar&&e.report({messageId:"referencesOutside",node:p.identifier,data:{varName:p.identifier.name,dollarName:w,reason:Dn(Ar)}})}}}}),v.childScopes.forEach(d)}return{CallExpression(v){if(v.callee.type==="Identifier"&&v.callee.name.endsWith("$")){let p=v.arguments.at(0);if(p&&p.type==="ArrowFunctionExpression"){let h=n.acquire(p);h&&s.set(h,v.callee.name)}}},JSXAttribute(v){let p=v.name,h=p.type==="JSXIdentifier"?p.name:p.name.name;if(h.endsWith("$")){let u=v.value;if(u&&u.type==="JSXExpressionContainer"){let c=n.acquire(u.expression);if(c)s.set(c,h);else if(u.expression.type==="Identifier"){let E=a.get(u.expression),m=i.getTypeAtLocation(E);if(!jr(m))if(m.isUnionOrIntersection())m.types.every(b=>b.symbol?b.symbol.name==="PropFnInterface":!!(b.flags&(P.default.TypeFlags.Undefined|P.default.TypeFlags.Null)))||e.report({messageId:"invalidJsxDollar",node:u.expression,data:{varName:u.expression.name,solution:`Fix the type of ${u.expression.name} to be PropFunction`}});else{if(m.symbol.name==="PropFnInterface")return;e.report({messageId:"invalidJsxDollar",node:u.expression,data:{varName:u.expression.name,solution:`const ${u.expression.name} = $(
Check out https://qwik.builder.io/docs/advanced/dollar/ for more details.`}},create(e){var g;let t={allowAny:((g=e.options[0])==null?void 0:g.allowAny)??!0},n=e.getSourceCode().scopeManager,o=me.ESLintUtils.getParserServices(e),a=o.esTreeNodeToTSNodeMap,i=o.program.getTypeChecker(),s=new Map,f=[];function d(v){v.references.forEach(p=>{var c,S;let h=p.resolved,u=(c=p.resolved)==null?void 0:c.scope;if(h&&u){let m=(S=h.defs.at(0))==null?void 0:S.type;if(m==="Type"||m==="ImportBinding")return;let b=p.from,O;for(;b&&(O=s.get(b),!O);)b=b.upper;if(b&&O){let $=u.type;if($==="global"||$==="module")return;let J=p.identifier,Nn=a.get(J),L=u;for(;L&&!s.has(L);)L=L.upper;if(L!==b){J.parent&&J.parent.type==="AssignmentExpression"&&J.parent.left===J&&e.report({messageId:"mutableIdentifier",node:p.identifier,data:{varName:p.identifier.name,dollarName:O}});let Ar=Dn(e,i,Nn,p.identifier,t);Ar&&e.report({messageId:"referencesOutside",node:p.identifier,data:{varName:p.identifier.name,dollarName:O,reason:Xn(Ar)}})}}}}),v.childScopes.forEach(d)}return{CallExpression(v){if(v.callee.type==="Identifier"&&v.callee.name.endsWith("$")){let p=v.arguments.at(0);if(p&&p.type==="ArrowFunctionExpression"){let h=n.acquire(p);h&&s.set(h,v.callee.name)}}},JSXAttribute(v){let p=v.name,h=p.type==="JSXIdentifier"?p.name:p.name.name;if(h.endsWith("$")){let u=v.value;if(u&&u.type==="JSXExpressionContainer"){let c=n.acquire(u.expression);if(c)s.set(c,h);else if(u.expression.type==="Identifier"){let S=a.get(u.expression),m=i.getTypeAtLocation(S);if(!jr(m))if(m.isUnionOrIntersection())m.types.every(b=>b.symbol?b.symbol.name==="PropFnInterface":!!(b.flags&(w.default.TypeFlags.Undefined|w.default.TypeFlags.Null)))||e.report({messageId:"invalidJsxDollar",node:u.expression,data:{varName:u.expression.name,solution:`Fix the type of ${u.expression.name} to be PropFunction`}});else{if(m.symbol.name==="PropFnInterface")return;e.report({messageId:"invalidJsxDollar",node:u.expression,data:{varName:u.expression.name,solution:`const ${u.expression.name} = $(
${Ir(m.symbol,e.getSourceCode().text)}
);
`}})}}}}},Program(v){let p=a.get(v),h=i.getSymbolAtLocation(p);h&&(f=i.getExportsOfModule(h))},"Program:exit"(){d(n.globalScope)}}}});function Vn(e,r,t,n,o){let a=r.getTypeAtLocation(t);return Jn(e,r,a,t,n,o,new Set)}function Dn(e){let r="";return e.location?r+=`"${e.location}" `:r+="it ",r+=`${e.reason}`,r}function Jn(e,r,t,n,o,a,i){let s=J(e,r,t,n,a,0,i);if(s){let f=s.location;return f&&(s.location=`${o.name}.${f}`),s}return s}function J(e,r,t,n,o,a,i){if(i.has(t)||(i.add(t),t.getProperty("__no_serialize__")))return;if(t.flags&P.default.TypeFlags.Unknown)return{type:t,typeStr:r.typeToString(t),reason:"is unknown, which could be serializable or not, please make the type for specific"};let f=t.flags&P.default.TypeFlags.Any;if(!o.allowAny&&f)return{type:t,typeStr:r.typeToString(t),reason:"is any, which is not serializable"};if(t.flags&P.default.TypeFlags.ESSymbolLike)return{type:t,typeStr:r.typeToString(t),reason:"is Symbol, which is not serializable"};if(t.flags&P.default.TypeFlags.Enum)return{type:t,typeStr:r.typeToString(t),reason:"is an enum, use an string or a number instead"};if(jr(t))return;if(t.getCallSignatures().length>0){if(t.symbol.name==="PropFnInterface")return;let u="is a function, which is not serializable";if(a===0&&P.default.isIdentifier(n)){let c=`const ${n.text} = $(
`}})}}}}},Program(v){let p=a.get(v),h=i.getSymbolAtLocation(p);h&&(f=i.getExportsOfModule(h))},"Program:exit"(){d(n.globalScope)}}}});function Dn(e,r,t,n,o){let a=r.getTypeAtLocation(t);return Bn(e,r,a,t,n,o,new Set)}function Xn(e){let r="";return e.location?r+=`"${e.location}" `:r+="it ",r+=`${e.reason}`,r}function Bn(e,r,t,n,o,a,i){let s=D(e,r,t,n,a,0,i);if(s){let f=s.location;return f&&(s.location=`${o.name}.${f}`),s}return s}function D(e,r,t,n,o,a,i){if(i.has(t)||(i.add(t),t.getProperty("__no_serialize__")))return;if(t.flags&w.default.TypeFlags.Unknown)return{type:t,typeStr:r.typeToString(t),reason:"is unknown, which could be serializable or not, please make the type for specific"};let f=t.flags&w.default.TypeFlags.Any;if(!o.allowAny&&f)return{type:t,typeStr:r.typeToString(t),reason:"is any, which is not serializable"};if(t.flags&w.default.TypeFlags.ESSymbolLike)return{type:t,typeStr:r.typeToString(t),reason:"is Symbol, which is not serializable"};if(t.flags&w.default.TypeFlags.Enum)return{type:t,typeStr:r.typeToString(t),reason:"is an enum, use an string or a number instead"};if(jr(t))return;if(t.getCallSignatures().length>0){if(t.symbol.name==="PropFnInterface")return;let u="is a function, which is not serializable";if(a===0&&w.default.isIdentifier(n)){let c=`const ${n.text} = $(
${Ir(t.symbol,e.getSourceCode().text)}

@@ -17,3 +17,3 @@ );`;u+=`.

${c}
`}return{type:t,typeStr:r.typeToString(t),reason:u}}if(t.isUnion()){for(let h of t.types){let u=J(e,r,h,n,o,a+1,i);if(u)return u}return}if((t.flags&P.default.TypeFlags.Object)!==0){let h=Bn(t,r);if(h)return J(e,r,h,n,o,a+1,i);let u=Wn(t,r);if(u){for(let m of u){let b=J(e,r,m,n,o,a+1,i);if(b)return b}return}let c=t.symbol.name;if(t.getProperty("nextElementSibling")||t.getProperty("activeElement")||zn[c])return;if(t.isClass())return{type:t,typeStr:r.typeToString(t),reason:`is an instance of the "${t.symbol.name}" class, which is not serializable. Use a simple object literal instead`};let E=t.getProperty("prototype");if(E){let m=r.getTypeOfSymbolAtLocation(E,n);if(m.isClass())return{type:m,typeStr:r.typeToString(m),reason:"is a class constructor, which is not serializable"}}if(!c.startsWith("__")&&t.symbol.valueDeclaration)return{type:t,typeStr:r.typeToString(t),reason:`is an instance of the "${t.symbol.name}" class, which is not serializable`};for(let m of t.getProperties()){let b=Xn(e,r,m,n,o,a+1,i);if(b){let w=b.location;return b.location=`${m.name}${w?`.${w}`:""}`,b}}}}function Xn(e,r,t,n,o,a,i){let s=r.getTypeOfSymbolAtLocation(t,n);return J(e,r,s,n,o,a,i)}function Bn(e,r){return r.getElementTypeOfArrayType(e)}function Wn(e,r){return r.isTupleType(e)?r.getTypeArguments(e):void 0}function jr(e){return!!(e.flags&P.default.TypeFlags.Any)||!!e.getProperty("__brand__QRL__")}function Ir(e,r){if(e.declarations&&e.declarations.length>0){let t=e.declarations[0],n=r.slice(t.pos,t.end).replace(/^\s*$/gm,"");return ye(n,2)}return""}var zn={Promise:!0,URL:!0,RegExp:!0,Date:!0,FormData:!0,URLSearchParams:!0,Error:!0};var Fr={meta:{type:"problem",docs:{description:"Object destructuring is not recommended for component$",category:"Variables",recommended:!0,url:"https://github.com/BuilderIO/qwik"},messages:{"use-after-await":"Calling use* methods after await is not safe.","use-wrong-function":"Calling use* methods in wrong function.","use-not-root":"Calling use* methods in non-root component."}},create(e){if(e.getSourceCode().getAllComments().some(n=>n.value.includes("@jsxImportSource")))return{};let t=[];return{ArrowFunctionExpression(){t.push({await:!1})},"ArrowFunctionExpression:exit"(n){t.pop()},AwaitExpression(){let n=t[t.length-1];n&&(n.await=!0)},"CallExpression[callee.name=/^use[A-Z]/]"(n){var i,s;let o=t[t.length-1];o&&o.await&&e.report({node:n,messageId:"use-after-await"});let a=n;for(;a=a.parent;)switch(a.type){case"VariableDeclarator":case"VariableDeclaration":case"ExpressionStatement":case"MemberExpression":case"BinaryExpression":case"UnaryExpression":case"ReturnStatement":case"BlockStatement":case"ChainExpression":case"Property":case"ObjectExpression":case"CallExpression":break;case"ArrowFunctionExpression":case"FunctionExpression":if(a.parent.type==="VariableDeclarator"&&((i=a.parent.id)==null?void 0:i.type)==="Identifier"&&a.parent.id.name.startsWith("use")||a.parent.type==="CallExpression"&&a.parent.callee.type==="Identifier"&&a.parent.callee.name==="component$")return;e.report({node:n,messageId:"use-wrong-function"});return;case"FunctionDeclaration":(s=a.id)!=null&&s.name.startsWith("use")||e.report({node:n,messageId:"use-wrong-function"});return;default:e.report({node:n,messageId:"use-not-root"});return}}}}};var qr={loader$:!0,routeLoader$:!0,routeAction$:!0,routeHandler$:!0},Gn={...qr,action$:!0,globalAction$:!0},Cr={meta:{type:"problem",docs:{description:"Detect declaration location of loader$",recommended:!0,url:"https://github.com/BuilderIO/qwik"},messages:{invalidLoaderLocation:'`{{fnName}}()` can only be declared in `layout.tsx`, `index.tsx` and `plugin.tsx` inside the `src/routes` directory, instead it was declared in "{{path}}".\nPlease check the docs: https://qwik.builder.io/qwikcity/loader',missingExport:"The return of `{{fnName}}()` needs to be exported in the same module, like this\n```\nexport const {{id}} = {{fnName}}(() => { ... });\n```",wrongName:"The named export of `{{fnName}}()` needs to follow the `use*` naming convention. It must start with `use`, like this:\n```\nexport const {{fixed}} = {{fnName}}(() => { ... });\n```\nInstead it was named:\n```\nexport const {{id}} = ...\n```",recommendedValue:"For `{{fnName}}()` it is recommended to inline the arrow function. Instead of:\n```\nexport const {{id}} = {{fnName}}({{arg}});\n```\nDo this:\n```\nexport const {{id}} = {{fnName}}(() => { ...logic here... });\n```\nThis will help the optimizer make sure that no server code is leaked to the client build."}},create(e){let r=Kn(e.getFilename()),t=/\/layout(|!|-.+)\.tsx?$/.test(r),n=/\/index(|!|@.+)\.tsx?$/.test(r),o=/\/plugin(|@.+)\.tsx?$/.test(r),i=/\/src\/routes\//.test(r)&&(n||t||o);return{CallExpression(s){if(s.callee.type!=="Identifier")return;let f=s.callee.name;if(!Gn[f])return;if(!i&&qr[f]){e.report({node:s.callee,messageId:"invalidLoaderLocation",data:{fnName:f,path:r}});return}let d=s.parent;if(d.type!=="VariableDeclarator"){e.report({node:s.callee,messageId:"missingExport",data:{fnName:f,id:"useStuff"}});return}if(d.id.type!=="Identifier"){e.report({node:s.callee,messageId:"missingExport",data:{fnName:f,id:"useStuff"}});return}if(!/^use/.test(d.id.name)){let g="use"+d.id.name[0].toUpperCase()+d.id.name.slice(1);e.report({node:d.id,messageId:"wrongName",data:{fnName:f,id:d.id.name,fixed:g}});return}if(d.parent.parent.type!=="ExportNamedDeclaration"){e.report({node:d.id,messageId:"missingExport",data:{fnName:f,id:d.id.name}});return}if(s.arguments.length>0&&s.arguments[0].type==="Identifier"){e.report({node:s.arguments[0],messageId:"recommendedValue",data:{fnName:f,id:d.id.name,arg:s.arguments[0].name}});return}}}}};function Kn(e){let r=/^\\\\\?\\/.test(e),t=/[^\u0000-\u0080]+/.test(e);return r||t||(e=e.replace(/\\/g,"/"),e.endsWith("/")&&(e=e.slice(0,e.length-1))),e}var hr=D(pe()),us=[{from:"className",to:"class"},{from:"htmlFor",to:"for"}];var wn={meta:{type:"problem",docs:{recommended:"warn",description:"Disallow usage of React-specific `className`/`htmlFor` props."},fixable:"code",schema:[],messages:{prefer:"Prefer the `{{ to }}` prop over the deprecated `{{ from }}` prop."}},create(e){return e.getSourceCode().getAllComments().some(t=>t.value.includes("@jsxImportSource"))?{}:{JSXOpeningElement(t){for(let{from:n,to:o}of us){let a=hr.default.getProp(t.attributes,n);if(a){let i=hr.default.hasProp(t.attributes,o,{ignoreCase:!1})?void 0:s=>s.replaceText(a.name,o);e.report({node:a,messageId:"prefer",data:{from:n,to:o},fix:i})}}}}}};var br=D(pe()),_n={meta:{type:"problem",docs:{recommended:!1,description:"Enforce using the classlist prop over importing a classnames helper. The classlist prop accepts an object `{ [class: string]: boolean }` just like classnames."},fixable:"code",schema:[{type:"object",properties:{classnames:{type:"array",description:"An array of names to treat as `classnames` functions",default:["cn","clsx","classnames"],items:{type:"string",minItems:1,uniqueItems:!0}}},additionalProperties:!1}],messages:{preferClasslist:"The classlist prop should be used instead of {{ classnames }} to efficiently set classes based on an object."}},create(e){var n;if(e.getSourceCode().getAllComments().some(o=>o.value.includes("@jsxImportSource")))return{};let t=((n=e.options[0])==null?void 0:n.classnames)??["cn","clsx","classnames"];return{JSXAttribute(o){var a,i;if(!(["class","className"].indexOf(br.default.propName(o))===-1||br.default.hasProp((a=o.parent)==null?void 0:a.attributes,"classlist",{ignoreCase:!1}))&&((i=o.value)==null?void 0:i.type)==="JSXExpressionContainer"){let s=o.value.expression;s.type==="CallExpression"&&s.callee.type==="Identifier"&&t.indexOf(s.callee.name)!==-1&&s.arguments.length===1&&s.arguments[0].type==="ObjectExpression"&&e.report({node:o,messageId:"preferClasslist",data:{classnames:s.callee.name},fix:f=>{let d=o.range,g=s.arguments[0].range;return[f.replaceTextRange([d[0],g[0]],"classlist={"),f.replaceTextRange([g[1],d[1]],"}")]}})}}}}};var Tn=require("@typescript-eslint/utils"),{getStaticValue:ls}=Tn.ASTUtils,ps=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,jn={meta:{type:"problem",docs:{recommended:"error",description:"Disallow javascript: URLs.",url:"https://github.com/solidjs-community/eslint-plugin-solid/blob/main/docs/jsx-no-script-url.md"},schema:[],messages:{noJSURL:"For security, don't use javascript: URLs. Use event handlers instead if you can."}},create(e){return{JSXAttribute(r){if(r.name.type==="JSXIdentifier"&&r.value){let t=ls(r.value.type==="JSXExpressionContainer"?r.value.expression:r.value,e.getScope());t&&typeof t.value=="string"&&ps.test(t.value)&&e.report({node:r.value,messageId:"noJSURL"})}}}}};var Sr=D(pe());function Er(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"}var ce={checkFragmentShorthand:!1,checkKeyMustBeforeSpread:!1,warnOnDuplicates:!1},cs={missingIterKey:'Missing "key" prop for element in iterator',missingIterKeyUsePrag:'Missing "key" prop for element in iterator. The key prop allows for improved rendering performance. Shorthand fragment syntax does not support providing keys. Use <Fragment> instead',missingArrayKey:'Missing "key" prop for element in array. The key prop allows for improved rendering performance.',missingArrayKeyUsePrag:'Missing "key" prop for element in array. The key prop allows for improved rendering performance. Shorthand fragment syntax does not support providing keys. Use <Fragment> instead',nonUniqueKeys:"`key` prop must be unique"},In={meta:{docs:{description:"Disallow missing `key` props in iterators/collection literals",category:"Possible Errors",recommended:!0},messages:cs,schema:[{type:"object",properties:{checkFragmentShorthand:{type:"boolean",default:ce.checkFragmentShorthand},checkKeyMustBeforeSpread:{type:"boolean",default:ce.checkKeyMustBeforeSpread},warnOnDuplicates:{type:"boolean",default:ce.warnOnDuplicates}},additionalProperties:!1}]},create(e){if(e.getSourceCode().getAllComments().some(u=>u.value.includes("@jsxImportSource")))return{};let t=Object.assign({},ce,e.options[0]),n=t.checkFragmentShorthand,o=t.checkKeyMustBeforeSpread,a=t.warnOnDuplicates;function i(u){u.type==="JSXElement"&&!Sr.default.hasProp(u.openingElement.attributes,"key")?e.report({node:u,messageId:"missingIterKey"}):n&&u.type==="JSXFragment"&&e.report({node:u,messageId:"missingIterKeyUsePrag"})}function s(u,c=[]){return u.type==="IfStatement"?(u.consequent&&s(u.consequent,c),u.alternate&&s(u.alternate,c)):Array.isArray(u.body)&&u.body.forEach(E=>{E.type==="IfStatement"&&s(E,c),E.type==="ReturnStatement"&&c.push(E)}),c}function f(u){let c=!1;return u.some(E=>E.type==="JSXSpreadAttribute"?(c=!0,!1):E.type!=="JSXAttribute"?!1:c&&Sr.default.propName(E)==="key")}function d(u){Er(u)&&u.body.type==="BlockStatement"&&s(u.body).filter(c=>c&&c.argument).forEach(c=>{i(c.argument)})}function g(u){let c=u&&u.type==="ArrowFunctionExpression",E=m=>m&&(m.type==="JSXElement"||m.type==="JSXFragment");c&&E(u.body)&&i(u.body),u.body.type==="ConditionalExpression"?(E(u.body.consequent)&&i(u.body.consequent),E(u.body.alternate)&&i(u.body.alternate)):u.body.type==="LogicalExpression"&&E(u.body.right)&&i(u.body.right)}let v=`:matches(
`}return{type:t,typeStr:r.typeToString(t),reason:u}}if(t.isUnion()){for(let h of t.types){let u=D(e,r,h,n,o,a+1,i);if(u)return u}return}if((t.flags&w.default.TypeFlags.Object)!==0){let h=zn(t,r);if(h)return D(e,r,h,n,o,a+1,i);let u=Gn(t,r);if(u){for(let m of u){let b=D(e,r,m,n,o,a+1,i);if(b)return b}return}let c=t.symbol.name;if(t.getProperty("nextElementSibling")||t.getProperty("activeElement")||Kn[c])return;if(t.isClass())return{type:t,typeStr:r.typeToString(t),reason:`is an instance of the "${t.symbol.name}" class, which is not serializable. Use a simple object literal instead`};let S=t.getProperty("prototype");if(S){let m=r.getTypeOfSymbolAtLocation(S,n);if(m.isClass())return{type:m,typeStr:r.typeToString(m),reason:"is a class constructor, which is not serializable"}}if(!c.startsWith("__")&&t.symbol.valueDeclaration)return{type:t,typeStr:r.typeToString(t),reason:`is an instance of the "${t.symbol.name}" class, which is not serializable`};for(let m of t.getProperties()){let b=Wn(e,r,m,n,o,a+1,i);if(b){let O=b.location;return b.location=`${m.name}${O?`.${O}`:""}`,b}}}}function Wn(e,r,t,n,o,a,i){let s=r.getTypeOfSymbolAtLocation(t,n);return D(e,r,s,n,o,a,i)}function zn(e,r){return r.getElementTypeOfArrayType(e)}function Gn(e,r){return r.isTupleType(e)?r.getTypeArguments(e):void 0}function jr(e){return!!(e.flags&w.default.TypeFlags.Any)||!!e.getProperty("__brand__QRL__")}function Ir(e,r){if(e.declarations&&e.declarations.length>0){let t=e.declarations[0],n=r.slice(t.pos,t.end).replace(/^\s*$/gm,"");return ye(n,2)}return""}var Kn={Promise:!0,URL:!0,RegExp:!0,Date:!0,FormData:!0,URLSearchParams:!0,Error:!0};var Fr={meta:{type:"problem",docs:{description:"Object destructuring is not recommended for component$",category:"Variables",recommended:!0,url:"https://github.com/BuilderIO/qwik"},messages:{"use-after-await":"Calling use* methods after await is not safe.","use-wrong-function":"Calling use* methods in wrong function.","use-not-root":"Calling use* methods in non-root component."}},create(e){if(e.getSourceCode().getAllComments().some(n=>n.value.includes("@jsxImportSource")))return{};let t=[];return{ArrowFunctionExpression(){t.push({await:!1})},"ArrowFunctionExpression:exit"(n){t.pop()},AwaitExpression(){let n=t[t.length-1];n&&(n.await=!0)},"CallExpression[callee.name=/^use[A-Z]/]"(n){var i,s;let o=t[t.length-1];o&&o.await&&e.report({node:n,messageId:"use-after-await"});let a=n;for(;a=a.parent;)switch(a.type){case"VariableDeclarator":case"VariableDeclaration":case"ExpressionStatement":case"MemberExpression":case"BinaryExpression":case"UnaryExpression":case"ReturnStatement":case"BlockStatement":case"ChainExpression":case"Property":case"ObjectExpression":case"CallExpression":break;case"ArrowFunctionExpression":case"FunctionExpression":if(a.parent.type==="VariableDeclarator"&&((i=a.parent.id)==null?void 0:i.type)==="Identifier"&&a.parent.id.name.startsWith("use")||a.parent.type==="CallExpression"&&a.parent.callee.type==="Identifier"&&a.parent.callee.name==="component$")return;e.report({node:n,messageId:"use-wrong-function"});return;case"FunctionDeclaration":(s=a.id)!=null&&s.name.startsWith("use")||e.report({node:n,messageId:"use-wrong-function"});return;default:e.report({node:n,messageId:"use-not-root"});return}}}}};var qr={loader$:!0,routeLoader$:!0,routeAction$:!0,routeHandler$:!0},Hn={...qr,action$:!0,globalAction$:!0},Cr={meta:{type:"problem",docs:{description:"Detect declaration location of loader$",recommended:!0,url:"https://github.com/BuilderIO/qwik"},messages:{invalidLoaderLocation:'`{{fnName}}()` can only be declared in `layout.tsx`, `index.tsx` and `plugin.tsx` inside the `src/routes` directory, instead it was declared in "{{path}}".\nPlease check the docs: https://qwik.builder.io/qwikcity/loader',missingExport:"The return of `{{fnName}}()` needs to be exported in the same module, like this\n```\nexport const {{id}} = {{fnName}}(() => { ... });\n```",wrongName:"The named export of `{{fnName}}()` needs to follow the `use*` naming convention. It must start with `use`, like this:\n```\nexport const {{fixed}} = {{fnName}}(() => { ... });\n```\nInstead it was named:\n```\nexport const {{id}} = ...\n```",recommendedValue:"For `{{fnName}}()` it is recommended to inline the arrow function. Instead of:\n```\nexport const {{id}} = {{fnName}}({{arg}});\n```\nDo this:\n```\nexport const {{id}} = {{fnName}}(() => { ...logic here... });\n```\nThis will help the optimizer make sure that no server code is leaked to the client build."}},create(e){let r=Yn(e.getFilename()),t=/\/layout(|!|-.+)\.tsx?$/.test(r),n=/\/index(|!|@.+)\.tsx?$/.test(r),o=/\/plugin(|@.+)\.tsx?$/.test(r),i=/\/src\/routes\//.test(r)&&(n||t||o);return{CallExpression(s){if(s.callee.type!=="Identifier")return;let f=s.callee.name;if(!Hn[f])return;if(!i&&qr[f]){e.report({node:s.callee,messageId:"invalidLoaderLocation",data:{fnName:f,path:r}});return}let d=s.parent;if(d.type!=="VariableDeclarator"){e.report({node:s.callee,messageId:"missingExport",data:{fnName:f,id:"useStuff"}});return}if(d.id.type!=="Identifier"){e.report({node:s.callee,messageId:"missingExport",data:{fnName:f,id:"useStuff"}});return}if(!/^use/.test(d.id.name)){let g="use"+d.id.name[0].toUpperCase()+d.id.name.slice(1);e.report({node:d.id,messageId:"wrongName",data:{fnName:f,id:d.id.name,fixed:g}});return}if(d.parent.parent.type!=="ExportNamedDeclaration"){e.report({node:d.id,messageId:"missingExport",data:{fnName:f,id:d.id.name}});return}if(s.arguments.length>0&&s.arguments[0].type==="Identifier"){e.report({node:s.arguments[0],messageId:"recommendedValue",data:{fnName:f,id:d.id.name,arg:s.arguments[0].name}});return}}}}};function Yn(e){let r=/^\\\\\?\\/.test(e),t=/[^\u0000-\u0080]+/.test(e);return r||t||(e=e.replace(/\\/g,"/"),e.endsWith("/")&&(e=e.slice(0,e.length-1))),e}var hr=V(pe()),ps=[{from:"className",to:"class"},{from:"htmlFor",to:"for"}];var On={meta:{type:"problem",docs:{recommended:"warn",description:"Disallow usage of React-specific `className`/`htmlFor` props."},fixable:"code",schema:[],messages:{prefer:"Prefer the `{{ to }}` prop over the deprecated `{{ from }}` prop."}},create(e){return e.getSourceCode().getAllComments().some(t=>t.value.includes("@jsxImportSource"))?{}:{JSXOpeningElement(t){for(let{from:n,to:o}of ps){let a=hr.default.getProp(t.attributes,n);if(a){let i=hr.default.hasProp(t.attributes,o,{ignoreCase:!1})?void 0:s=>s.replaceText(a.name,o);e.report({node:a,messageId:"prefer",data:{from:n,to:o},fix:i})}}}}}};var br=V(pe()),_n={meta:{type:"problem",docs:{recommended:!1,description:"Enforce using the classlist prop over importing a classnames helper. The classlist prop accepts an object `{ [class: string]: boolean }` just like classnames."},fixable:"code",schema:[{type:"object",properties:{classnames:{type:"array",description:"An array of names to treat as `classnames` functions",default:["cn","clsx","classnames"],items:{type:"string",minItems:1,uniqueItems:!0}}},additionalProperties:!1}],messages:{preferClasslist:"The classlist prop should be used instead of {{ classnames }} to efficiently set classes based on an object."}},create(e){var n;if(e.getSourceCode().getAllComments().some(o=>o.value.includes("@jsxImportSource")))return{};let t=((n=e.options[0])==null?void 0:n.classnames)??["cn","clsx","classnames"];return{JSXAttribute(o){var a,i;if(!(["class","className"].indexOf(br.default.propName(o))===-1||br.default.hasProp((a=o.parent)==null?void 0:a.attributes,"classlist",{ignoreCase:!1}))&&((i=o.value)==null?void 0:i.type)==="JSXExpressionContainer"){let s=o.value.expression;s.type==="CallExpression"&&s.callee.type==="Identifier"&&t.indexOf(s.callee.name)!==-1&&s.arguments.length===1&&s.arguments[0].type==="ObjectExpression"&&e.report({node:o,messageId:"preferClasslist",data:{classnames:s.callee.name},fix:f=>{let d=o.range,g=s.arguments[0].range;return[f.replaceTextRange([d[0],g[0]],"classlist={"),f.replaceTextRange([g[1],d[1]],"}")]}})}}}}};var Tn=require("@typescript-eslint/utils"),{getStaticValue:cs}=Tn.ASTUtils,fs=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,jn={meta:{type:"problem",docs:{recommended:"error",description:"Disallow javascript: URLs.",url:"https://github.com/solidjs-community/eslint-plugin-solid/blob/main/docs/jsx-no-script-url.md"},schema:[],messages:{noJSURL:"For security, don't use javascript: URLs. Use event handlers instead if you can."}},create(e){return{JSXAttribute(r){if(r.name.type==="JSXIdentifier"&&r.value){let t=cs(r.value.type==="JSXExpressionContainer"?r.value.expression:r.value,e.getScope());t&&typeof t.value=="string"&&fs.test(t.value)&&e.report({node:r.value,messageId:"noJSURL"})}}}}};var Er=V(pe());function Sr(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"}var ce={checkFragmentShorthand:!1,checkKeyMustBeforeSpread:!1,warnOnDuplicates:!1},ds={missingIterKey:'Missing "key" prop for element in iterator',missingIterKeyUsePrag:'Missing "key" prop for element in iterator. The key prop allows for improved rendering performance. Shorthand fragment syntax does not support providing keys. Use <Fragment> instead',missingArrayKey:'Missing "key" prop for element in array. The key prop allows for improved rendering performance.',missingArrayKeyUsePrag:'Missing "key" prop for element in array. The key prop allows for improved rendering performance. Shorthand fragment syntax does not support providing keys. Use <Fragment> instead',nonUniqueKeys:"`key` prop must be unique"},In={meta:{docs:{description:"Disallow missing `key` props in iterators/collection literals",category:"Possible Errors",recommended:!0},messages:ds,schema:[{type:"object",properties:{checkFragmentShorthand:{type:"boolean",default:ce.checkFragmentShorthand},checkKeyMustBeforeSpread:{type:"boolean",default:ce.checkKeyMustBeforeSpread},warnOnDuplicates:{type:"boolean",default:ce.warnOnDuplicates}},additionalProperties:!1}]},create(e){if(e.getSourceCode().getAllComments().some(u=>u.value.includes("@jsxImportSource")))return{};let t=Object.assign({},ce,e.options[0]),n=t.checkFragmentShorthand,o=t.checkKeyMustBeforeSpread,a=t.warnOnDuplicates;function i(u){u.type==="JSXElement"&&!Er.default.hasProp(u.openingElement.attributes,"key")?e.report({node:u,messageId:"missingIterKey"}):n&&u.type==="JSXFragment"&&e.report({node:u,messageId:"missingIterKeyUsePrag"})}function s(u,c=[]){return u.type==="IfStatement"?(u.consequent&&s(u.consequent,c),u.alternate&&s(u.alternate,c)):Array.isArray(u.body)&&u.body.forEach(S=>{S.type==="IfStatement"&&s(S,c),S.type==="ReturnStatement"&&c.push(S)}),c}function f(u){let c=!1;return u.some(S=>S.type==="JSXSpreadAttribute"?(c=!0,!1):S.type!=="JSXAttribute"?!1:c&&Er.default.propName(S)==="key")}function d(u){Sr(u)&&u.body.type==="BlockStatement"&&s(u.body).filter(c=>c&&c.argument).forEach(c=>{i(c.argument)})}function g(u){let c=u&&u.type==="ArrowFunctionExpression",S=m=>m&&(m.type==="JSXElement"||m.type==="JSXFragment");c&&S(u.body)&&i(u.body),u.body.type==="ConditionalExpression"?(S(u.body.consequent)&&i(u.body.consequent),S(u.body.alternate)&&i(u.body.alternate)):u.body.type==="LogicalExpression"&&S(u.body.right)&&i(u.body.right)}let v=`:matches(
CallExpression

@@ -26,5 +26,5 @@ [callee.object.object.name=Fragment]

[callee.property.name=toArray]
)`.replace(/\s/g,""),p=!1,h=new WeakSet;return{[v](){p=!0},[`${v}:exit`](){p=!1},"ArrayExpression, JSXElement > JSXElement"(u){if(p)return;let c=(u.type==="ArrayExpression"?u.elements:u.parent.children).filter(m=>m&&m.type==="JSXElement");if(c.length===0)return;let E={};c.forEach(m=>{m.openingElement.attributes.filter($=>$.name&&$.name.name==="key").length===0&&u.type==="ArrayExpression"&&e.report({node:m,messageId:"missingArrayKey"})}),a&&Object.values(E).filter(m=>m.length>1).forEach(m=>{m.forEach(b=>{h.has(b)||(h.add(b),e.report({node:b,messageId:"nonUniqueKeys"}))})})},JSXFragment(u){!n||p||u.parent.type==="ArrayExpression"&&e.report({node:u,messageId:"missingArrayKeyUsePrag"})},'CallExpression[callee.type="MemberExpression"][callee.property.name="map"], CallExpression[callee.type="OptionalMemberExpression"][callee.property.name="map"], OptionalCallExpression[callee.type="MemberExpression"][callee.property.name="map"], OptionalCallExpression[callee.type="OptionalMemberExpression"][callee.property.name="map"]'(u){if(p)return;let c=u.arguments.length>0&&u.arguments[0];!c||!Er(c)||(g(c),d(c))},'CallExpression[callee.type="MemberExpression"][callee.property.name="from"]'(u){if(p)return;let c=u.arguments.length>1&&u.arguments[1];Er(c)&&(g(c),d(c))}}}};var Fn={meta:{type:"problem",docs:{description:"Detect unused server$() functions",recommended:!0,url:"https://github.com/BuilderIO/qwik"},messages:{unusedServer:`Unused server$(). Seems like you are declaring a new server$ function, but you are never calling it. You might want to do:
)`.replace(/\s/g,""),p=!1,h=new WeakSet;return{[v](){p=!0},[`${v}:exit`](){p=!1},"ArrayExpression, JSXElement > JSXElement"(u){if(p)return;let c=(u.type==="ArrayExpression"?u.elements:u.parent.children).filter(m=>m&&m.type==="JSXElement");if(c.length===0)return;let S={};c.forEach(m=>{m.openingElement.attributes.filter($=>$.name&&$.name.name==="key").length===0&&u.type==="ArrayExpression"&&e.report({node:m,messageId:"missingArrayKey"})}),a&&Object.values(S).filter(m=>m.length>1).forEach(m=>{m.forEach(b=>{h.has(b)||(h.add(b),e.report({node:b,messageId:"nonUniqueKeys"}))})})},JSXFragment(u){!n||p||u.parent.type==="ArrayExpression"&&e.report({node:u,messageId:"missingArrayKeyUsePrag"})},'CallExpression[callee.type="MemberExpression"][callee.property.name="map"], CallExpression[callee.type="OptionalMemberExpression"][callee.property.name="map"], OptionalCallExpression[callee.type="MemberExpression"][callee.property.name="map"], OptionalCallExpression[callee.type="OptionalMemberExpression"][callee.property.name="map"]'(u){if(p)return;let c=u.arguments.length>0&&u.arguments[0];!c||!Sr(c)||(g(c),d(c))},'CallExpression[callee.type="MemberExpression"][callee.property.name="from"]'(u){if(p)return;let c=u.arguments.length>1&&u.arguments[1];Sr(c)&&(g(c),d(c))}}}};var Fn={meta:{type:"problem",docs:{description:"Detect unused server$() functions",recommended:!0,url:"https://github.com/BuilderIO/qwik"},messages:{unusedServer:`Unused server$(). Seems like you are declaring a new server$ function, but you are never calling it. You might want to do:
{{ suggestion }}`}},create(e){return{CallExpression(r){if(r.callee.type!=="Identifier")return;if(r.callee.name==="server$"){let n=!1;if((r.parent.type==="ExpressionStatement"||r.parent.type==="AwaitExpression"&&r.parent.parent.type==="ExpressionStatement")&&(n=!0),n){let o=`const serverFn = server$(...);
await serverFn(...);`;e.report({node:r.callee,messageId:"unusedServer",data:{suggestion:o}})}}}}}};var fs={"use-method-usage":Fr,"valid-lexical-scope":Tr,"loader-location":Cr,"no-react-props":wn,"prefer-classlist":_n,"jsx-no-script-url":jn,"jsx-key":In,"unused-server":Fn},ds={recommended:{plugins:["qwik"],rules:{"qwik/use-method-usage":"error","qwik/valid-lexical-scope":"error","qwik/no-react-props":"error","qwik/prefer-classlist":"warn","qwik/jsx-no-script-url":"warn","qwik/loader-location":"warn","qwik/jsx-key":"warn","qwik/unused-server":"error"}},strict:{plugins:["qwik"],rules:{"qwik/valid-lexical-scope":"error","qwik/use-method-usage":"error","qwik/loader-location":"error","qwik/no-react-props":"error","qwik/prefer-classlist":"error","qwik/jsx-no-script-url":"error","qwik/jsx-key":"error","qwik/unused-server":"error"}}};0&&(module.exports={configs,rules});
await serverFn(...);`;e.report({node:r.callee,messageId:"unusedServer",data:{suggestion:o}})}}}}}};var qn=require("@typescript-eslint/utils"),ys=qn.ESLintUtils.RuleCreator(()=>"https://qwik.builder.io/docs/advanced/dollar/"),Cn=ys({defaultOptions:[],name:"jsx-img",meta:{type:"problem",docs:{description:"For performance reasons, always provide width and height attributes for <img> elements, it will help to prevent layout shifts.",recommended:"warn"},fixable:"code",schema:[],messages:{noWidthHeight:"For performance reasons, always provide width and height attributes for <img> elements, it will help to prevent layout shifts."}},create(e){return{JSXElement(r){if(r.openingElement.name.type==="JSXIdentifier"&&r.openingElement.name.name==="img"&&!r.openingElement.attributes.some(n=>n.type==="JSXSpreadAttribute")){let n=r.openingElement.attributes.some(a=>a.type==="JSXAttribute"&&a.name.type==="JSXIdentifier"&&a.name.name==="width"),o=r.openingElement.attributes.some(a=>a.type==="JSXAttribute"&&a.name.type==="JSXIdentifier"&&a.name.name==="height");(!n||!o)&&e.report({node:r,messageId:"noWidthHeight"})}}}}});var ms={"use-method-usage":Fr,"valid-lexical-scope":Tr,"loader-location":Cr,"no-react-props":On,"prefer-classlist":_n,"jsx-no-script-url":jn,"jsx-key":In,"unused-server":Fn,"jsx-img":Cn},gs={recommended:{plugins:["qwik"],rules:{"qwik/use-method-usage":"error","qwik/valid-lexical-scope":"error","qwik/no-react-props":"error","qwik/prefer-classlist":"warn","qwik/jsx-no-script-url":"warn","qwik/loader-location":"warn","qwik/jsx-key":"warn","qwik/unused-server":"error","qwik/jsx-img":"warn"}},strict:{plugins:["qwik"],rules:{"qwik/valid-lexical-scope":"error","qwik/use-method-usage":"error","qwik/loader-location":"error","qwik/no-react-props":"error","qwik/prefer-classlist":"error","qwik/jsx-no-script-url":"error","qwik/jsx-key":"error","qwik/unused-server":"error","qwik/jsx-img":"error"}}};0&&(module.exports={configs,rules});
{
"name": "eslint-plugin-qwik",
"version": "1.0.0-dev20230506121511",
"version": "1.0.0-dev20230509192029",
"description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc