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 0.101.0 to 0.102.0

18

index.js

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

"use strict";var Cn=Object.create;var K=Object.defineProperty;var Nn=Object.getOwnPropertyDescriptor;var kn=Object.getOwnPropertyNames;var Mn=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 kn(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(Mn(e)):{},Pr(r||!e||!e.__esModule?K(t,"default",{value:e,enumerable:!0}):t,e)),Ln=e=>Pr(K({},"__esModule",{value:!0}),e);var _r=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 kr=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 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 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 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"]},to=Object.keys(be).reduce(function(e,r){return e.concat(be[r])},[]);Y.default=to;Y.eventHandlersByType=be});var $r=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 Lr(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=Lr(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=Lr(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 _e=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(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.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(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.default=Oo;function Oo(e){var r=E().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=_o;function _o(e){var r=E().default;return""+r(e.object)+(e.optional?"?.":".")+r(e.property)}});var Gr=l(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.default=wo;function wo(e){var r=E().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=E().default;return r(e.callee)+"?.("+e.arguments.map(function(t){return r(t)}).join(", ")+")"}});var Hr=l(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.default=jo;function jo(e){var r=E().default;return r(e.object)+"?."+r(e.property)}});var Yr=l($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.default=Io;function Io(e){var r=E().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=E().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=E().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=E().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 x in r)!(s&&x==="prototype")&&W.call(r,x)&&i.push(String(x));if(ot)for(var g=ut(r),c=0;c<z.length;++c)!(g&&z[c]==="constructor")&&W.call(r,z[c])&&i.push(z[c]);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 ko=Array.prototype.slice,Mo=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 Mo(n)?dt(ko.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,Lo=Object.prototype.toString,$o="[object Function]";ht.exports=function(r){var t=this;if(typeof t!="function"||Lo.call(t)!==$o)throw new TypeError(Uo+t);for(var n=Ye.call(arguments,1),o,a=function(){if(this instanceof o){var x=t.apply(this,n.concat(Ye.call(arguments)));return Object(x)===x?x: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,M=SyntaxError,wt=Function,k=TypeError,Qe=function(e){try{return wt('"use strict"; return ('+e+").constructor;")()}catch{}},j=Object.getOwnPropertyDescriptor;if(j)try{j({},"")}catch{j=null}var Ze=function(){throw new k},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%":wt,"%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%":M,"%ThrowTypeError%":Jo,"%TypedArray%":Xo,"%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){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),_t=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 M("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new M("invalid intrinsic syntax, expected opening `%`");var o=[];return _t(r,Ko,function(a,i,s,f){o[o.length]=s?_t(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 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(Go(/^%?[^%]*%?$/,r)===null)throw new M("`%` 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 x=1,g=!0;x<n.length;x+=1){var c=n[x],u=ne(c,0,1),p=ne(c,-1);if((u==='"'||u==="'"||u==="`"||p==='"'||p==="'"||p==="`")&&u!==p)throw new M("property names with quotes must have matching quotes");if((c==="constructor"||!g)&&(f=!0),o+="."+c,i="%"+o+"%",te(I,i))s=I[i];else if(s!=null){if(!(c in s)){if(!t)throw new k("base intrinsic for "+r+" exists, but the property is not available.");return}if(j&&x+1>=n.length){var m=j(s,c);g=!!m,g&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[c]}else g=te(s,c),s=s[c];g&&!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%"),Lt=R("%Reflect.apply%",!0)||nr.call(Ut,Rt),kt=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=Lt(nr,Ut,arguments);if(kt&&F){var n=kt(t,"length");n.configurable&&F(t,"length",{value:1+sa(0,r.length-(arguments.length-1))})}return t};var Mt=function(){return Lt(nr,Rt,arguments)};F?F(ae.exports,"apply",{value:Mt}):ae.exports.apply=Mt});var Jt=l((su,Dt)=>{"use strict";var $t=oe(),Vt=or(),ua=Vt($t("String.prototype.indexOf"));Dt.exports=function(r,t){var n=$t(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 x=f[d];Bt(a,x)&&pa(i,x)}for(var g=0;g<i.length;++g){var c=i[g];if(Bt(a,c)){var u=a[c];n[c]=u}}}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=E().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=_a;function _a(e){var r=E().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=wa;function wa(e){var r=E().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=E().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=E().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=E().default;return e.expressions.map(function(t){return r(t)})}});var dn=l(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.default=w;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 w(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 w(e.expression);if(e.type==="ThisExpression")return qa();if(e.type==="TSNonNullExpression"&&(!e.extra||e.extra.parenthesized===!1)){var n=e.expression;return w(n)+"!"}if(e.type==="TSNonNullExpression"&&e.extra&&e.extra.parenthesized===!0){var o=e.expression;return"("+w(o)+"!)"}if(e.type==="MemberExpression"){if(!e.extra||e.extra.parenthesized===!1)return fn(w(e.object),w(e.property),e);if(e.extra&&e.extra.parenthesized===!0){var a=fn(w(e.object),w(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=E().default;return r(e.left)+" "+e.operator+" "+r(e.right)}});var E=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=Mi;ie.extractLiteral=Ri;var ka=Pe(),Ma=v(ka),Ra=_e(),Ua=v(Ra),La=Vr(),$a=v(La),Va=Te(),Da=v(Va),Ja=Jr(),Xa=v(Ja),Ba=Xr(),Wa=v(Ba),za=qe(),Ga=v(za),Ka=Br(),mn=v(Ka),Ha=Wr(),Ya=v(Ha),Qa=zr(),Za=v(Qa),ei=Gr(),ri=v(ei),ti=Kr(),ni=v(ti),oi=Hr(),ai=v(oi),ii=Yr(),si=v(ii),ui=Qr(),li=v(ui),pi=Je(),ci=v(pi),fi=Zr(),di=v(fi),yi=et(),mi=v(yi),gi=nn(),vi=v(gi),xi=on(),hi=v(xi),bi=an(),Ei=v(bi),Si=sn(),Ai=v(Si),Pi=un(),Oi=v(Pi),_i=ln(),wi=v(_i),Ti=pn(),ji=v(Ti),Ii=cn(),Fi=v(Ii),qi=dn(),Ci=v(qi),Ni=yn(),ki=v(Ni);function v(e){return e&&e.__esModule?e:{default:e}}var T={Identifier:Xa.default,Literal:Ma.default,JSXElement:Ua.default,JSXFragment:$a.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:wi.default,TypeCastExpression:ji.default,SequenceExpression:Fi.default,TSNonNullExpression:Ci.default,AssignmentExpression:ki.default},b=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 Mi(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:b,JSXFragment:b,JSXText:b,ArrowFunctionExpression:b,FunctionExpression:b,LogicalExpression:b,MemberExpression:b,OptionalCallExpression:b,OptionalMemberExpression:b,CallExpression:b,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:b,ConditionalExpression:b,BinaryExpression:b,ObjectExpression:b,NewExpression:b,ArrayExpression:function(r){var t=T.ArrayExpression.call(void 0,r);return t.filter(function(n){return n!==null})},BindExpression:b,SpreadElement:b,TSNonNullExpression:b,TSAsExpression:b,TypeCastExpression:b,SequenceExpression:b,ChainExpression:b});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 Li=Pe(),$i=se(Li),Vi=_e(),Di=se(Vi),Ji=Te(),Xi=se(Ji),xn=E(),Bi=se(xn);function se(e){return e&&e.__esModule?e:{default:e}}var hn={Literal:$i.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=kr(),Zi=U(xr),es=Rr(),rs=U(es),An=Ur(),ts=U(An),ns=$r(),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=Ln(ys);var me=require("@typescript-eslint/utils"),_=D(require("typescript"));var wr=D(_r(),1);function fe(e){let r=(0,wr.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 $n=me.ESLintUtils.RuleCreator(()=>"https://qwik.builder.io/docs/advanced/dollar/"),Tr=$n({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 Cn=Object.create;var K=Object.defineProperty;var Nn=Object.getOwnPropertyDescriptor;var kn=Object.getOwnPropertyNames;var Mn=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 kn(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(Mn(e)):{},Pr(r||!e||!e.__esModule?K(t,"default",{value:e,enumerable:!0}):t,e)),Ln=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 kr=l(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.default=xe;B.hasAnyProp=Zn;B.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 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 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 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"]},to=Object.keys(be).reduce(function(e,r){return e.concat(be[r])},[]);Y.default=to;Y.eventHandlersByType=be});var $r=l(Ee=>{"use strict";Object.defineProperty(Ee,"__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")}}(),C=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=uo;var oo=H(),ao=io(oo);function io(e){return e&&e.__esModule?e:{default:e}}function Lr(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 C({type:"JSXAttribute",name:C({type:"JSXIdentifier",name:r.name},Se(r)),value:t.type==="Literal"?X(t):C({type:"JSXExpressionContainer",expression:po(t)},Se(t))},Se(e))}function X(e){var r=e.range||[e.start,e.end],t=no(r,2),n=t[0],o=t[1];return C({},e,{end:void 0,range:[n,o],start:void 0})}function po(e){var r=e.expressions,t=e.quasis,n=Lr(e,["expressions","quasis"]);return C({},X(n),r?{expressions:r.map(X)}:{},t?{quasis:t.map(X)}:{})}function Se(e){var r=e.loc,t=Lr(e,["loc"]),n=X(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 C({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 Br=l(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.default=Ao;var bo=qe(),So=Eo(bo);function Eo(e){return e&&e.__esModule?e:{default:e}}function Ao(e){return(0,So.default)(e.quasi)}});var Xr=l(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.default=Po;function Po(e){return function(){return e}}});var Wr=l(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.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(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.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(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.default=jo;function jo(e){var r=A().default;return r(e.object)+"?."+r(e.property)}});var Yr=l($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.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(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.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(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.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 m in r)!(s&&m==="prototype")&&W.call(r,m)&&i.push(String(m));if(ot)for(var g=ut(r),p=0;p<z.length;++p)!(g&&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 ko=Array.prototype.slice,Mo=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 Mo(n)?dt(ko.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,Lo=Object.prototype.toString,$o="[object Function]";ht.exports=function(r){var t=this;if(typeof t!="function"||Lo.call(t)!==$o)throw new TypeError(Uo+t);for(var n=Ye.call(arguments,1),o,a=function(){if(this instanceof o){var m=t.apply(this,n.concat(Ye.call(arguments)));return Object(m)===m?m: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,St)=>{"use strict";var Vo=bt();St.exports=Function.prototype.bind||Vo});var At=l((tu,Et)=>{"use strict";var Do=re();Et.exports=Do.call(Function.call,Object.prototype.hasOwnProperty)});var oe=l((nu,Tt)=>{"use strict";var y,R=SyntaxError,_t=Function,M=TypeError,Qe=function(e){try{return _t('"use strict"; return ('+e+").constructor;")()}catch{}},I=Object.getOwnPropertyDescriptor;if(I)try{I({},"")}catch{I=null}var Ze=function(){throw new M},Jo=I?function(){try{return arguments.callee,Ze}catch{try{return I(arguments,"callee").get}catch{return Ze}}}():Ze,N=xt()(),w=Object.getPrototypeOf||function(e){return e.__proto__},k={},Bo=typeof Uint8Array>"u"?y:w(Uint8Array),F={"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":N?w([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%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%":k,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N?w(w([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!N?y:w(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"||!N?y:w(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N?w(""[Symbol.iterator]()):y,"%Symbol%":N?Symbol:y,"%SyntaxError%":R,"%ThrowTypeError%":Jo,"%TypedArray%":Bo,"%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=w(w(e)),F["%Error.prototype%"]=Pt}var Pt,Xo=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=w(o.prototype))}return F[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 R("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new R("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(F,n)){var a=F[n];if(a===k&&(a=Xo(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 R("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 R("`%` 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 m=1,g=!0;m<n.length;m+=1){var p=n[m],S=ne(p,0,1),u=ne(p,-1);if((S==='"'||S==="'"||S==="`"||u==='"'||u==="'"||u==="`")&&S!==u)throw new R("property names with quotes must have matching quotes");if((p==="constructor"||!g)&&(f=!0),o+="."+p,i="%"+o+"%",te(F,i))s=F[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(I&&m+1>=n.length){var c=I(s,p);g=!!c,g&&"get"in c&&!("originalValue"in c.get)?s=c.get:s=s[p]}else g=te(s,p),s=s[p];g&&!f&&(F[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(),U=oe(),Rt=U("%Function.prototype.apply%"),Ut=U("%Function.prototype.call%"),Lt=U("%Reflect.apply%",!0)||nr.call(Ut,Rt),kt=U("%Object.getOwnPropertyDescriptor%",!0),q=U("%Object.defineProperty%",!0),sa=U("%Math.max%");if(q)try{q({},"a",{value:1})}catch{q=null}ae.exports=function(r){var t=Lt(nr,Ut,arguments);if(kt&&q){var n=kt(t,"length");n.configurable&&q(t,"length",{value:1+sa(0,r.length-(arguments.length-1))})}return t};var Mt=function(){return Lt(nr,Rt,arguments)};q?q(ae.exports,"apply",{value:Mt}):ae.exports.apply=Mt});var Jt=l((su,Dt)=>{"use strict";var $t=oe(),Vt=or(),ua=Vt($t("String.prototype.indexOf"));Dt.exports=function(r,t){var n=$t(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(),Bt=Object,pa=zt("Array.prototype.push"),Xt=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=Bt(r);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var a=Bt(arguments[o]),i=la(a),s=Wt&&(Object.getOwnPropertySymbols||ca);if(s)for(var f=s(a),d=0;d<f.length;++d){var m=f[d];Xt(a,m)&&pa(i,m)}for(var g=0;g<i.length;++g){var p=i[g];if(Xt(a,p)){var S=a[p];n[p]=S}}}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 Sa=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 Ea=rn(),Aa=Pa(Ea);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=Sa({},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=T;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 T(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 T(e.expression);if(e.type==="ThisExpression")return qa();if(e.type==="TSNonNullExpression"&&(!e.extra||e.extra.parenthesized===!1)){var n=e.expression;return T(n)+"!"}if(e.type==="TSNonNullExpression"&&e.extra&&e.extra.parenthesized===!0){var o=e.expression;return"("+T(o)+"!)"}if(e.type==="MemberExpression"){if(!e.extra||e.extra.parenthesized===!1)return fn(T(e.object),T(e.property),e);if(e.extra&&e.extra.parenthesized===!0){var a=fn(T(e.object),T(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=Mi;ie.extractLiteral=Ri;var ka=Pe(),Ma=v(ka),Ra=we(),Ua=v(Ra),La=Vr(),$a=v(La),Va=Te(),Da=v(Va),Ja=Jr(),Ba=v(Ja),Xa=Br(),Wa=v(Xa),za=qe(),Ga=v(za),Ka=Xr(),mn=v(Ka),Ha=Wr(),Ya=v(Ha),Qa=zr(),Za=v(Qa),ei=Gr(),ri=v(ei),ti=Kr(),ni=v(ti),oi=Hr(),ai=v(oi),ii=Yr(),si=v(ii),ui=Qr(),li=v(ui),pi=Je(),ci=v(pi),fi=Zr(),di=v(fi),yi=et(),mi=v(yi),gi=nn(),vi=v(gi),xi=on(),hi=v(xi),bi=an(),Si=v(bi),Ei=sn(),Ai=v(Ei),Pi=un(),Oi=v(Pi),wi=ln(),_i=v(wi),Ti=pn(),ji=v(Ti),Ii=cn(),Fi=v(Ii),qi=dn(),Ci=v(qi),Ni=yn(),ki=v(Ni);function v(e){return e&&e.__esModule?e:{default:e}}var j={Identifier:Ba.default,Literal:Ma.default,JSXElement:Ua.default,JSXFragment:$a.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:Si.default,ArrayExpression:Ai.default,BindExpression:Oi.default,SpreadElement:_i.default,TypeCastExpression:ji.default,SequenceExpression:Fi.default,TSNonNullExpression:Ci.default,AssignmentExpression:ki.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 Mi(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 j[n]===void 0?(console.error(vn(n)),null):j[n](r)}var gn=Na({},j,{Literal:function(r){var t=j.Literal.call(void 0,r),n=t===null;return n?"null":t},Identifier:function(r){var t=j.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=j.UnaryExpression.call(void 0,r);return t===void 0?null:t},UpdateExpression:function(r){var t=j.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=j.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 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 Li=Pe(),$i=se(Li),Vi=we(),Di=se(Vi),Ji=Te(),Bi=se(Ji),xn=A(),Xi=se(xn);function se(e){return e&&e.__esModule?e:{default:e}}var hn={Literal:$i.default,JSXElement:Di.default,JSXExpressionContainer:Xi.default,JSXText:Bi.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 En=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 Sn=function(r,t){if(r&&r.type==="JSXAttribute")return r.value===null?!0:t(r.value)};function Yi(e){return Sn(e,Ki.default)}function Qi(e){return Sn(e,bn.getLiteralValue)}});var pe=l((Ou,On)=>{"use strict";var xr=kr(),Zi=L(xr),es=Rr(),rs=L(es),An=Ur(),ts=L(An),ns=$r(),os=L(ns),Pn=En(),as=L(Pn),is=H(),ss=L(is);function L(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=Ln(ys);var me=require("@typescript-eslint/utils"),O=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 $n=me.ESLintUtils.RuleCreator(()=>"https://qwik.builder.io/docs/advanced/dollar/"),Tr=$n({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,12 +7,12 @@ 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 x;let t={allowAny:((x=e.options[0])==null?void 0:x.allowAny)??!0},n=e.getSourceCode().scopeManager,o=me.ESLintUtils.getParserServices(e),a=o.esTreeNodeToTSNodeMap,i=o.program.getTypeChecker(),s=new Map,f=[];function d(g){g.references.forEach(c=>{var m,h;let u=c.resolved,p=(m=c.resolved)==null?void 0:m.scope;if(u&&p){let P=(h=u.defs.at(0))==null?void 0:h.type;if(P==="Type"||P==="ImportBinding")return;let S=c.from,A;for(;S&&(A=s.get(S),!A);)S=S.upper;if(S&&A){let L=p.type;if(L==="global"||L==="module")return;let $=c.identifier,qn=a.get($),V=p;for(;V&&!s.has(V);)V=V.upper;if(V!==S){$.parent&&$.parent.type==="AssignmentExpression"&&$.parent.left===$&&e.report({messageId:"mutableIdentifier",node:c.identifier,data:{varName:c.identifier.name,dollarName:A}});let Ar=Vn(e,i,qn,c.identifier,t);Ar&&e.report({messageId:"referencesOutside",node:c.identifier,data:{varName:c.identifier.name,dollarName:A,reason:Dn(Ar)}})}}}}),g.childScopes.forEach(d)}return{CallExpression(g){if(g.callee.type==="Identifier"&&g.callee.name.endsWith("$")){let c=g.arguments.at(0);if(c&&c.type==="ArrowFunctionExpression"){let u=n.acquire(c);u&&s.set(u,g.callee.name)}}},JSXAttribute(g){let c=g.name,u=c.type==="JSXIdentifier"?c.name:c.name.name;if(u.endsWith("$")){let p=g.value;if(p&&p.type==="JSXExpressionContainer"){let m=n.acquire(p.expression);if(m)s.set(m,u);else if(p.expression.type==="Identifier"){let h=a.get(p.expression),P=i.getTypeAtLocation(h);if(!jr(P)){if(P.symbol.name==="PropFnInterface")return;e.report({messageId:"invalidJsxDollar",node:p.expression,data:{varName:p.expression.name,solution:`const ${p.expression.name} = $(
${Ir(P.symbol,e.getSourceCode().text)}
Check out https://qwik.builder.io/docs/advanced/dollar/ for more details.`}},create(e){var m;let t={allowAny:((m=e.options[0])==null?void 0:m.allowAny)??!0},n=e.getSourceCode().scopeManager,o=me.ESLintUtils.getParserServices(e),a=o.esTreeNodeToTSNodeMap,i=o.program.getTypeChecker(),s=new Map,f=[];function d(g){g.references.forEach(p=>{var c,x;let S=p.resolved,u=(c=p.resolved)==null?void 0:c.scope;if(S&&u){let h=(x=S.defs.at(0))==null?void 0:x.type;if(h==="Type"||h==="ImportBinding")return;let b=p.from,P;for(;b&&(P=s.get(b),!P);)b=b.upper;if(b&&P){let _=u.type;if(_==="global"||_==="module")return;let $=p.identifier,qn=a.get($),V=u;for(;V&&!s.has(V);)V=V.upper;if(V!==b){$.parent&&$.parent.type==="AssignmentExpression"&&$.parent.left===$&&e.report({messageId:"mutableIdentifier",node:p.identifier,data:{varName:p.identifier.name,dollarName:P}});let Ar=Vn(e,i,qn,p.identifier,t);Ar&&e.report({messageId:"referencesOutside",node:p.identifier,data:{varName:p.identifier.name,dollarName:P,reason:Dn(Ar)}})}}}}),g.childScopes.forEach(d)}return{CallExpression(g){if(g.callee.type==="Identifier"&&g.callee.name.endsWith("$")){let p=g.arguments.at(0);if(p&&p.type==="ArrowFunctionExpression"){let S=n.acquire(p);S&&s.set(S,g.callee.name)}}},JSXAttribute(g){let p=g.name,S=p.type==="JSXIdentifier"?p.name:p.name.name;if(S.endsWith("$")){let u=g.value;if(u&&u.type==="JSXExpressionContainer"){let c=n.acquire(u.expression);if(c)s.set(c,S);else if(u.expression.type==="Identifier"){let x=a.get(u.expression),h=i.getTypeAtLocation(x);if(!jr(h))if(h.isUnionOrIntersection())h.types.every(b=>b.symbol?b.symbol.name==="PropFnInterface":!!(b.flags&(O.default.TypeFlags.Undefined|O.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(h.symbol.name==="PropFnInterface")return;e.report({messageId:"invalidJsxDollar",node:u.expression,data:{varName:u.expression.name,solution:`const ${u.expression.name} = $(
${Ir(h.symbol,e.getSourceCode().text)}
);
`}})}}}}},Program(g){let c=a.get(g),u=i.getSymbolAtLocation(c);u&&(f=i.getExportsOfModule(u))},"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&_.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&_.default.TypeFlags.Any;if(!o.allowAny&&f)return{type:t,typeStr:r.typeToString(t),reason:"is any, which is not serializable"};if(t.flags&_.default.TypeFlags.BigIntLike)return{type:t,typeStr:r.typeToString(t),reason:"is BigInt and it is not supported yet, use a number instead"};if(t.flags&_.default.TypeFlags.ESSymbolLike)return{type:t,typeStr:r.typeToString(t),reason:"is Symbol, which is not serializable"};if(t.flags&_.default.TypeFlags.EnumLike)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 m="is a function, which is not serializable";if(a===0&&_.default.isIdentifier(n)){let h=`const ${n.text} = $(
`}})}}}}},Program(g){let p=a.get(g),S=i.getSymbolAtLocation(p);S&&(f=i.getExportsOfModule(S))},"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&O.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&O.default.TypeFlags.Any;if(!o.allowAny&&f)return{type:t,typeStr:r.typeToString(t),reason:"is any, which is not serializable"};if(t.flags&O.default.TypeFlags.BigIntLike)return{type:t,typeStr:r.typeToString(t),reason:"is BigInt and it is not supported yet, use a number instead"};if(t.flags&O.default.TypeFlags.ESSymbolLike)return{type:t,typeStr:r.typeToString(t),reason:"is Symbol, which is not serializable"};if(t.flags&O.default.TypeFlags.EnumLike)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 c="is a function, which is not serializable";if(a===0&&O.default.isIdentifier(n)){let x=`const ${n.text} = $(
${Ir(t.symbol,e.getSourceCode().text)}
);`;m+=`.
);`;c+=`.
Did you mean to wrap it in \`$()\`?
${h}
`}return{type:t,typeStr:r.typeToString(t),reason:m}}if(t.isUnion()){for(let p of t.types){let m=J(e,r,p,n,o,a+1,i);if(m)return m}return}if((t.flags&_.default.TypeFlags.Object)!==0){let p=Bn(t,r);if(p)return J(e,r,p,n,o,a+1,i);let m=Wn(t,r);if(m){for(let S of m){let A=J(e,r,S,n,o,a+1,i);if(A)return A}return}let h=t.symbol.name;if(t.getProperty("nextElementSibling")||t.getProperty("activeElement")||zn[h])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 P=t.getProperty("prototype");if(P){let S=r.getTypeOfSymbolAtLocation(P,n);if(S.isClass())return{type:S,typeStr:r.typeToString(S),reason:"is a class constructor, which is not serializable"}}if(!h.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 S of t.getProperties()){let A=Xn(e,r,S,n,o,a+1,i);if(A){let L=A.location;return A.location=`${S.name}${L?`.${L}`:""}`,A}}}}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&_.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"}},create(e){let r=[];return{ArrowFunctionExpression(){r.push({await:!1})},"ArrowFunctionExpression:exit"(){r.pop()},AwaitExpression(){let t=r[r.length-1];t&&(t.await=!0)},"CallExpression[callee.name=/^use[A-Z]/]"(t){let n=r[r.length-1];n&&n.await&&e.report({node:t,message:"Calling use* methods after await is not safe."})}}}};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 x="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:x}});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 _n={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{JSXOpeningElement(r){for(let{from:t,to:n}of us){let o=hr.default.getProp(r.attributes,t);if(o){let a=hr.default.hasProp(r.attributes,n,{ignoreCase:!1})?void 0:i=>i.replaceText(o.name,n);e.report({node:o,messageId:"prefer",data:{from:t,to:n},fix:a})}}}}}};var br=D(pe()),wn={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 t;let r=((t=e.options[0])==null?void 0:t.classnames)??["cn","clsx","classnames"];return{JSXAttribute(n){var o,a;if(!(["class","className"].indexOf(br.default.propName(n))===-1||br.default.hasProp((o=n.parent)==null?void 0:o.attributes,"classlist",{ignoreCase:!1}))&&((a=n.value)==null?void 0:a.type)==="JSXExpressionContainer"){let i=n.value.expression;i.type==="CallExpression"&&i.callee.type==="Identifier"&&r.indexOf(i.callee.name)!==-1&&i.arguments.length===1&&i.arguments[0].type==="ObjectExpression"&&e.report({node:n,messageId:"preferClasslist",data:{classnames:i.callee.name},fix:s=>{let f=n.range,d=i.arguments[0].range;return[s.replaceTextRange([f[0],d[0]],"classlist={"),s.replaceTextRange([d[1],f[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){let r=Object.assign({},ce,e.options[0]),t=r.checkFragmentShorthand,n=r.checkKeyMustBeforeSpread,o=r.warnOnDuplicates;function a(u){u.type==="JSXElement"&&!Sr.default.hasProp(u.openingElement.attributes,"key")?e.report({node:u,messageId:"missingIterKey"}):t&&u.type==="JSXFragment"&&e.report({node:u,messageId:"missingIterKeyUsePrag"})}function i(u,p=[]){return u.type==="IfStatement"?(u.consequent&&i(u.consequent,p),u.alternate&&i(u.alternate,p)):Array.isArray(u.body)&&u.body.forEach(m=>{m.type==="IfStatement"&&i(m,p),m.type==="ReturnStatement"&&p.push(m)}),p}function s(u){let p=!1;return u.some(m=>m.type==="JSXSpreadAttribute"?(p=!0,!1):m.type!=="JSXAttribute"?!1:p&&Sr.default.propName(m)==="key")}function f(u){Er(u)&&u.body.type==="BlockStatement"&&i(u.body).filter(p=>p&&p.argument).forEach(p=>{a(p.argument)})}function d(u){let p=u&&u.type==="ArrowFunctionExpression",m=h=>h&&(h.type==="JSXElement"||h.type==="JSXFragment");p&&m(u.body)&&a(u.body),u.body.type==="ConditionalExpression"?(m(u.body.consequent)&&a(u.body.consequent),m(u.body.alternate)&&a(u.body.alternate)):u.body.type==="LogicalExpression"&&m(u.body.right)&&a(u.body.right)}let x=`:matches(
${x}
`}return{type:t,typeStr:r.typeToString(t),reason:c}}if(t.isUnion()){for(let u of t.types){let c=J(e,r,u,n,o,a+1,i);if(c)return c}return}if((t.flags&O.default.TypeFlags.Object)!==0){let u=Xn(t,r);if(u)return J(e,r,u,n,o,a+1,i);let c=Wn(t,r);if(c){for(let b of c){let P=J(e,r,b,n,o,a+1,i);if(P)return P}return}let x=t.symbol.name;if(t.getProperty("nextElementSibling")||t.getProperty("activeElement")||zn[x])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 h=t.getProperty("prototype");if(h){let b=r.getTypeOfSymbolAtLocation(h,n);if(b.isClass())return{type:b,typeStr:r.typeToString(b),reason:"is a class constructor, which is not serializable"}}if(!x.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 b of t.getProperties()){let P=Bn(e,r,b,n,o,a+1,i);if(P){let _=P.location;return P.location=`${b.name}${_?`.${_}`:""}`,P}}}}function Bn(e,r,t,n,o,a,i){let s=r.getTypeOfSymbolAtLocation(t,n);return J(e,r,s,n,o,a,i)}function Xn(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&O.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"BlockStatement":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":if(!((s=a.id)!=null&&s.name.startsWith("use"))){e.report({node:n,messageId:"use-wrong-function"});return}break;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 m="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:m}});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,m=s.arguments[0].range;return[f.replaceTextRange([d[0],m[0]],"classlist={"),f.replaceTextRange([m[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 Er=D(pe());function Sr(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"&&!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(x=>{x.type==="IfStatement"&&s(x,c),x.type==="ReturnStatement"&&c.push(x)}),c}function f(u){let c=!1;return u.some(x=>x.type==="JSXSpreadAttribute"?(c=!0,!1):x.type!=="JSXAttribute"?!1:c&&Er.default.propName(x)==="key")}function d(u){Sr(u)&&u.body.type==="BlockStatement"&&s(u.body).filter(c=>c&&c.argument).forEach(c=>{i(c.argument)})}function m(u){let c=u&&u.type==="ArrowFunctionExpression",x=h=>h&&(h.type==="JSXElement"||h.type==="JSXFragment");c&&x(u.body)&&i(u.body),u.body.type==="ConditionalExpression"?(x(u.body.consequent)&&i(u.body.consequent),x(u.body.alternate)&&i(u.body.alternate)):u.body.type==="LogicalExpression"&&x(u.body.right)&&i(u.body.right)}let g=`:matches(
CallExpression

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

[callee.property.name=toArray]
)`.replace(/\s/g,""),g=!1,c=new WeakSet;return{[x](){g=!0},[`${x}:exit`](){g=!1},"ArrayExpression, JSXElement > JSXElement"(u){if(g)return;let p=(u.type==="ArrayExpression"?u.elements:u.parent.children).filter(h=>h&&h.type==="JSXElement");if(p.length===0)return;let m={};p.forEach(h=>{h.openingElement.attributes.filter(A=>A.name&&A.name.name==="key").length===0&&u.type==="ArrayExpression"&&e.report({node:h,messageId:"missingArrayKey"})}),o&&Object.values(m).filter(h=>h.length>1).forEach(h=>{h.forEach(P=>{c.has(P)||(c.add(P),e.report({node:P,messageId:"nonUniqueKeys"}))})})},JSXFragment(u){!t||g||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(g)return;let p=u.arguments.length>0&&u.arguments[0];!p||!Er(p)||(d(p),f(p))},'CallExpression[callee.type="MemberExpression"][callee.property.name="from"]'(u){if(g)return;let p=u.arguments.length>1&&u.arguments[1];Er(p)&&(d(p),f(p))}}}};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,S=new WeakSet;return{[g](){p=!0},[`${g}:exit`](){p=!1},"ArrayExpression, JSXElement > JSXElement"(u){if(p)return;let c=(u.type==="ArrayExpression"?u.elements:u.parent.children).filter(h=>h&&h.type==="JSXElement");if(c.length===0)return;let x={};c.forEach(h=>{h.openingElement.attributes.filter(_=>_.name&&_.name.name==="key").length===0&&u.type==="ArrayExpression"&&e.report({node:h,messageId:"missingArrayKey"})}),a&&Object.values(x).filter(h=>h.length>1).forEach(h=>{h.forEach(b=>{S.has(b)||(S.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)||(m(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)&&(m(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={"no-use-after-await":Fr,"valid-lexical-scope":Tr,"loader-location":Cr,"no-react-props":_n,"prefer-classlist":wn,"jsx-no-script-url":jn,"jsx-key":In,"unused-server":Fn},ds={recommended:{plugins:["qwik"],rules:{"qwik/no-use-after-await":"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/no-use-after-await":"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 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});
{
"name": "eslint-plugin-qwik",
"version": "0.101.0",
"version": "0.102.0",
"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