eslint-plugin-qwik 2.0.0-beta.9 → 2.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +77 -78
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
- "use strict";var Vp=Object.create;var Ve=Object.defineProperty;var Dp=Object.getOwnPropertyDescriptor;var Up=Object.getOwnPropertyNames;var Bp=Object.getPrototypeOf,Jp=Object.prototype.hasOwnProperty;var s=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Wp=(r,e)=>{for(var t in e)Ve(r,t,{get:e[t],enumerable:!0})},Mn=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Up(e))!Jp.call(r,o)&&o!==t&&Ve(r,o,{get:()=>e[o],enumerable:!(n=Dp(e,o))||n.enumerable});return r};var ee=(r,e,t)=>(t=r!=null?Vp(Bp(r)):{},Mn(e||!r||!r.__esModule?Ve(t,"default",{value:r,enumerable:!0}):t,r)),Gp=r=>Mn(Ve({},"__esModule",{value:!0}),r);var De=s(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.default=Qp;function Qp(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!r.type||r.type!=="JSXAttribute")throw new Error("The prop must be a JSXAttribute collected by the AST parser.");return r.name.type==="JSXNamespacedName"?r.name.namespace.name+":"+r.name.name.name:r.name.name}});var Jn=s(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.default=Tr;ge.hasAnyProp=ec;ge.hasEveryProp=rc;var Yp=De(),Bn=Zp(Yp);function Zp(r){return r&&r.__esModule?r:{default:r}}var qr={spreadStrict:!0,ignoreCase:!0};function Tr(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qr,n=t.ignoreCase?e.toUpperCase():e;return r.some(function(o){if(o.type==="JSXSpreadAttribute")return!t.spreadStrict;var i=t.ignoreCase?(0,Bn.default)(o).toUpperCase():(0,Bn.default)(o);return n===i})}function ec(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qr,n=typeof e=="string"?e.split(" "):e;return n.some(function(o){return Tr(r,o,t)})}function rc(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qr,n=typeof e=="string"?e.split(" "):e;return n.every(function(o){return Tr(r,o,t)})}});var Gn=s(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.default=tc;function Wn(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.type==="JSXMemberExpression"?Wn(r.object,r.property)+"."+e.name:r.name+"."+e.name}function tc(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.name;if(r.type==="JSXOpeningFragment")return"<>";if(!e)throw new Error("The argument provided is not a JSXElement node.");if(e.type==="JSXMemberExpression"){var t=e.object,n=t===void 0?{}:t,o=e.property,i=o===void 0?{}:o;return Wn(n,i)}return e.type==="JSXNamespacedName"?e.namespace.name+":"+e.name.name:r.name.name}});var Pr=s((Rb,Xn)=>{"use strict";var Hn=Object.prototype.toString;Xn.exports=function(e){var t=Hn.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Hn.call(e.callee)==="[object Function]"),n}});var no=s((jb,to)=>{"use strict";var ro;Object.keys||(ve=Object.prototype.hasOwnProperty,Or=Object.prototype.toString,zn=Pr(),$r=Object.prototype.propertyIsEnumerable,Kn=!$r.call({toString:null},"toString"),Qn=$r.call(function(){},"prototype"),he=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Ue=function(r){var e=r.constructor;return e&&e.prototype===r},Yn={$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},Zn=function(){if(typeof window>"u")return!1;for(var r in window)try{if(!Yn["$"+r]&&ve.call(window,r)&&window[r]!==null&&typeof window[r]=="object")try{Ue(window[r])}catch{return!0}}catch{return!0}return!1}(),eo=function(r){if(typeof window>"u"||!Zn)return Ue(r);try{return Ue(r)}catch{return!1}},ro=function(e){var t=e!==null&&typeof e=="object",n=Or.call(e)==="[object Function]",o=zn(e),i=t&&Or.call(e)==="[object String]",a=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var u=Qn&&n;if(i&&e.length>0&&!ve.call(e,0))for(var c=0;c<e.length;++c)a.push(String(c));if(o&&e.length>0)for(var l=0;l<e.length;++l)a.push(String(l));else for(var d in e)!(u&&d==="prototype")&&ve.call(e,d)&&a.push(String(d));if(Kn)for(var f=eo(e),y=0;y<he.length;++y)!(f&&he[y]==="constructor")&&ve.call(e,he[y])&&a.push(he[y]);return a});var ve,Or,zn,$r,Kn,Qn,he,Ue,Yn,Zn,eo;to.exports=ro});var _r=s((Mb,ao)=>{"use strict";var nc=Array.prototype.slice,oc=Pr(),oo=Object.keys,Be=oo?function(e){return oo(e)}:no(),io=Object.keys;Be.shim=function(){if(Object.keys){var e=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);e||(Object.keys=function(n){return oc(n)?io(nc.call(n)):io(n)})}else Object.keys=Be;return Object.keys||Be};ao.exports=Be});var re=s((Lb,so)=>{"use strict";var Je=Object.defineProperty||!1;if(Je)try{Je({},"a",{value:1})}catch{Je=!1}so.exports=Je});var be=s((Vb,uo)=>{"use strict";uo.exports=SyntaxError});var x=s((Db,lo)=>{"use strict";lo.exports=TypeError});var co=s((Ub,po)=>{"use strict";po.exports=Object.getOwnPropertyDescriptor});var M=s((Bb,fo)=>{"use strict";var We=co();if(We)try{We([],"length")}catch{We=null}fo.exports=We});var Ge=s((Jb,go)=>{"use strict";var yo=re(),ic=be(),te=x(),mo=M();go.exports=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new te("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new te("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new te("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new te("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new te("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new te("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,c=!!mo&&mo(e,t);if(yo)yo(e,t,{configurable:a===null&&c?c.configurable:!a,enumerable:o===null&&c?c.enumerable:!o,value:n,writable:i===null&&c?c.writable:!i});else if(u||!o&&!i&&!a)e[t]=n;else throw new ic("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Se=s((Wb,ho)=>{"use strict";var kr=re(),vo=function(){return!!kr};vo.hasArrayLengthDefineBug=function(){if(!kr)return null;try{return kr([],"length",{value:1}).length!==1}catch{return!0}};ho.exports=vo});var L=s((Gb,Eo)=>{"use strict";var ac=_r(),sc=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",uc=Object.prototype.toString,lc=Array.prototype.concat,bo=Ge(),pc=function(r){return typeof r=="function"&&uc.call(r)==="[object Function]"},So=Se()(),cc=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!pc(n)||!n())return}So?bo(r,e,t,!0):bo(r,e,t)},xo=function(r,e){var t=arguments.length>2?arguments[2]:{},n=ac(e);sc&&(n=lc.call(n,Object.getOwnPropertySymbols(e)));for(var o=0;o<n.length;o+=1)cc(r,n[o],e[n[o]],t[n[o]])};xo.supportsDescriptors=!!So;Eo.exports=xo});var ne=s((Hb,wo)=>{"use strict";wo.exports=Object});var To=s((Xb,qo)=>{"use strict";qo.exports=Error});var Po=s((zb,Ao)=>{"use strict";Ao.exports=EvalError});var Ir=s((Kb,Oo)=>{"use strict";Oo.exports=RangeError});var _o=s((Qb,$o)=>{"use strict";$o.exports=ReferenceError});var Io=s((Yb,ko)=>{"use strict";ko.exports=URIError});var Cr=s((Zb,Co)=>{"use strict";Co.exports=Math.abs});var He=s((eS,Fo)=>{"use strict";Fo.exports=Math.floor});var Ro=s((rS,No)=>{"use strict";No.exports=Math.max});var Mo=s((tS,jo)=>{"use strict";jo.exports=Math.min});var Vo=s((nS,Lo)=>{"use strict";Lo.exports=Math.pow});var Uo=s((oS,Do)=>{"use strict";Do.exports=Math.round});var oe=s((iS,Bo)=>{"use strict";Bo.exports=Number.isNaN||function(e){return e!==e}});var Wo=s((aS,Jo)=>{"use strict";var fc=oe();Jo.exports=function(e){return fc(e)||e===0?e:e<0?-1:1}});var Xe=s((sS,Go)=>{"use strict";Go.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},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;e[t]=o;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,t);if(u.value!==o||u.enumerable!==!0)return!1}return!0}});var Fr=s((uS,Xo)=>{"use strict";var Ho=typeof Symbol<"u"&&Symbol,dc=Xe();Xo.exports=function(){return typeof Ho!="function"||typeof Symbol!="function"||typeof Ho("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:dc()}});var Nr=s((lS,zo)=>{"use strict";zo.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Rr=s((pS,Ko)=>{"use strict";var yc=ne();Ko.exports=yc.getPrototypeOf||null});var Zo=s((cS,Yo)=>{"use strict";var mc="Function.prototype.bind called on incompatible ",gc=Object.prototype.toString,vc=Math.max,hc="[object Function]",Qo=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},bc=function(e,t){for(var n=[],o=t||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},Sc=function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t};Yo.exports=function(e){var t=this;if(typeof t!="function"||gc.apply(t)!==hc)throw new TypeError(mc+t);for(var n=bc(arguments,1),o,i=function(){if(this instanceof o){var d=t.apply(this,Qo(n,arguments));return Object(d)===d?d:this}return t.apply(e,Qo(n,arguments))},a=vc(0,t.length-n.length),u=[],c=0;c<a;c++)u[c]="$"+c;if(o=Function("binder","return function ("+Sc(u,",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var l=function(){};l.prototype=t.prototype,o.prototype=new l,l.prototype=null}return o}});var ie=s((fS,ei)=>{"use strict";var xc=Zo();ei.exports=Function.prototype.bind||xc});var ze=s((dS,ri)=>{"use strict";ri.exports=Function.prototype.call});var Ke=s((yS,ti)=>{"use strict";ti.exports=Function.prototype.apply});var oi=s((mS,ni)=>{"use strict";ni.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var jr=s((gS,ii)=>{"use strict";var Ec=ie(),wc=Ke(),qc=ze(),Tc=oi();ii.exports=Tc||Ec.call(qc,wc)});var xe=s((vS,ai)=>{"use strict";var Ac=ie(),Pc=x(),Oc=ze(),$c=jr();ai.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new Pc("a function is required");return $c(Ac,Oc,e)}});var fi=s((hS,ci)=>{"use strict";var _c=xe(),si=M(),li;try{li=[].__proto__===Array.prototype}catch(r){if(!r||typeof r!="object"||!("code"in r)||r.code!=="ERR_PROTO_ACCESS")throw r}var Mr=!!li&&si&&si(Object.prototype,"__proto__"),pi=Object,ui=pi.getPrototypeOf;ci.exports=Mr&&typeof Mr.get=="function"?_c([Mr.get]):typeof ui=="function"?function(e){return ui(e==null?e:pi(e))}:!1});var vi=s((bS,gi)=>{"use strict";var di=Nr(),yi=Rr(),mi=fi();gi.exports=di?function(e){return di(e)}:yi?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return yi(e)}:mi?function(e){return mi(e)}:null});var V=s((SS,hi)=>{"use strict";var kc=Function.prototype.call,Ic=Object.prototype.hasOwnProperty,Cc=ie();hi.exports=Cc.call(kc,Ic)});var $=s((xS,qi)=>{"use strict";var S,Fc=ne(),Nc=To(),Rc=Po(),jc=Ir(),Mc=_o(),le=be(),ue=x(),Lc=Io(),Vc=Cr(),Dc=He(),Uc=Ro(),Bc=Mo(),Jc=Vo(),Wc=Uo(),Gc=Wo(),Ei=Function,Lr=function(r){try{return Ei('"use strict"; return ('+r+").constructor;")()}catch{}},Ee=M(),Hc=re(),Vr=function(){throw new ue},Xc=Ee?function(){try{return arguments.callee,Vr}catch{try{return Ee(arguments,"callee").get}catch{return Vr}}}():Vr,ae=Fr()(),A=vi(),zc=Rr(),Kc=Nr(),wi=Ke(),we=ze(),se={},Qc=typeof Uint8Array>"u"||!A?S:A(Uint8Array),z={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?S:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?S:ArrayBuffer,"%ArrayIteratorPrototype%":ae&&A?A([][Symbol.iterator]()):S,"%AsyncFromSyncIteratorPrototype%":S,"%AsyncFunction%":se,"%AsyncGenerator%":se,"%AsyncGeneratorFunction%":se,"%AsyncIteratorPrototype%":se,"%Atomics%":typeof Atomics>"u"?S:Atomics,"%BigInt%":typeof BigInt>"u"?S:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?S:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?S:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?S:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Nc,"%eval%":eval,"%EvalError%":Rc,"%Float16Array%":typeof Float16Array>"u"?S:Float16Array,"%Float32Array%":typeof Float32Array>"u"?S:Float32Array,"%Float64Array%":typeof Float64Array>"u"?S:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?S:FinalizationRegistry,"%Function%":Ei,"%GeneratorFunction%":se,"%Int8Array%":typeof Int8Array>"u"?S:Int8Array,"%Int16Array%":typeof Int16Array>"u"?S:Int16Array,"%Int32Array%":typeof Int32Array>"u"?S:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ae&&A?A(A([][Symbol.iterator]())):S,"%JSON%":typeof JSON=="object"?JSON:S,"%Map%":typeof Map>"u"?S:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ae||!A?S:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Fc,"%Object.getOwnPropertyDescriptor%":Ee,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?S:Promise,"%Proxy%":typeof Proxy>"u"?S:Proxy,"%RangeError%":jc,"%ReferenceError%":Mc,"%Reflect%":typeof Reflect>"u"?S:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?S:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ae||!A?S:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?S:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ae&&A?A(""[Symbol.iterator]()):S,"%Symbol%":ae?Symbol:S,"%SyntaxError%":le,"%ThrowTypeError%":Xc,"%TypedArray%":Qc,"%TypeError%":ue,"%Uint8Array%":typeof Uint8Array>"u"?S:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?S:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?S:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?S:Uint32Array,"%URIError%":Lc,"%WeakMap%":typeof WeakMap>"u"?S:WeakMap,"%WeakRef%":typeof WeakRef>"u"?S:WeakRef,"%WeakSet%":typeof WeakSet>"u"?S:WeakSet,"%Function.prototype.call%":we,"%Function.prototype.apply%":wi,"%Object.defineProperty%":Hc,"%Object.getPrototypeOf%":zc,"%Math.abs%":Vc,"%Math.floor%":Dc,"%Math.max%":Uc,"%Math.min%":Bc,"%Math.pow%":Jc,"%Math.round%":Wc,"%Math.sign%":Gc,"%Reflect.getPrototypeOf%":Kc};if(A)try{null.error}catch(r){bi=A(A(r)),z["%Error.prototype%"]=bi}var bi,Yc=function r(e){var t;if(e==="%AsyncFunction%")t=Lr("async function () {}");else if(e==="%GeneratorFunction%")t=Lr("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Lr("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=r("%AsyncGenerator%");o&&A&&(t=A(o.prototype))}return z[e]=t,t},Si={__proto__:null,"%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"]},qe=ie(),Qe=V(),Zc=qe.call(we,Array.prototype.concat),ef=qe.call(wi,Array.prototype.splice),xi=qe.call(we,String.prototype.replace),Ye=qe.call(we,String.prototype.slice),rf=qe.call(we,RegExp.prototype.exec),tf=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,nf=/\\(\\)?/g,of=function(e){var t=Ye(e,0,1),n=Ye(e,-1);if(t==="%"&&n!=="%")throw new le("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new le("invalid intrinsic syntax, expected opening `%`");var o=[];return xi(e,tf,function(i,a,u,c){o[o.length]=u?xi(c,nf,"$1"):a||i}),o},af=function(e,t){var n=e,o;if(Qe(Si,n)&&(o=Si[n],n="%"+o[0]+"%"),Qe(z,n)){var i=z[n];if(i===se&&(i=Yc(n)),typeof i>"u"&&!t)throw new ue("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new le("intrinsic "+e+" does not exist!")};qi.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new ue("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new ue('"allowMissing" argument must be a boolean');if(rf(/^%?[^%]*%?$/,e)===null)throw new le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=of(e),o=n.length>0?n[0]:"",i=af("%"+o+"%",t),a=i.name,u=i.value,c=!1,l=i.alias;l&&(o=l[0],ef(n,Zc([0,1],l)));for(var d=1,f=!0;d<n.length;d+=1){var y=n[d],m=Ye(y,0,1),v=Ye(y,-1);if((m==='"'||m==="'"||m==="`"||v==='"'||v==="'"||v==="`")&&m!==v)throw new le("property names with quotes must have matching quotes");if((y==="constructor"||!f)&&(c=!0),o+="."+y,a="%"+o+"%",Qe(z,a))u=z[a];else if(u!=null){if(!(y in u)){if(!t)throw new ue("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ee&&d+1>=n.length){var p=Ee(u,y);f=!!p,f&&"get"in p&&!("originalValue"in p.get)?u=p.get:u=u[y]}else f=Qe(u,y),u=u[y];f&&!c&&(z[a]=u)}}return u}});var $i=s((ES,Oi)=>{"use strict";var sf=$(),Ti=Ge(),uf=Se()(),Ai=M(),Pi=x(),lf=sf("%Math.floor%");Oi.exports=function(e,t){if(typeof e!="function")throw new Pi("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||lf(t)!==t)throw new Pi("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in e&&Ai){var a=Ai(e,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!n)&&(uf?Ti(e,"length",t,!0,!0):Ti(e,"length",t)),e}});var ki=s((wS,_i)=>{"use strict";var pf=ie(),cf=Ke(),ff=jr();_i.exports=function(){return ff(pf,cf,arguments)}});var Te=s((qS,Ze)=>{"use strict";var df=$i(),Ii=re(),yf=xe(),Ci=ki();Ze.exports=function(e){var t=yf(arguments),n=e.length-(arguments.length-1);return df(t,1+(n>0?n:0),!0)};Ii?Ii(Ze.exports,"apply",{value:Ci}):Ze.exports.apply=Ci});var Dr=s((TS,Fi)=>{"use strict";var mf=oe();Fi.exports=function(e){return(typeof e=="number"||typeof e=="bigint")&&!mf(e)&&e!==1/0&&e!==-1/0}});var Ur=s((AS,Ni)=>{"use strict";var gf=Cr(),vf=He(),hf=oe(),bf=Dr();Ni.exports=function(e){if(typeof e!="number"||hf(e)||!bf(e))return!1;var t=gf(e);return vf(t)===t}});var k=s((PS,Ri)=>{"use strict";Ri.exports=function(e){return!!e&&(typeof e=="function"||typeof e=="object")}});var Mi=s((OS,ji)=>{"use strict";ji.exports=4294967295});var Vi=s(($S,Li)=>{"use strict";Li.exports=typeof Reflect<"u"&&Reflect.setPrototypeOf||null});var Ui=s((_S,Di)=>{"use strict";var Sf=ne();Di.exports=Sf.setPrototypeOf||null});var Gi=s((kS,Wi)=>{"use strict";var xf=xe(),Bi=M(),Ef=x(),Ji={};try{Ji.__proto__=null}catch(r){if(!r||typeof r!="object"||!("code"in r)||r.code!=="ERR_PROTO_ACCESS")throw r}var wf=!("toString"in Ji),Br=Bi&&Bi(Object.prototype,"__proto__");Wi.exports=wf&&(!!Br&&typeof Br.set=="function"&&xf([Br.set])||function(e,t){if(e==null)throw new Ef("set Object.prototype.__proto__ called on null or undefined");return e.__proto__=t,t})});var Ki=s((IS,zi)=>{"use strict";var Hi=Vi(),qf=Ui(),Xi=Gi(),Tf=x();zi.exports=Hi?function(e,t){if(Hi(e,t))return e;throw new Tf("Reflect.setPrototypeOf: failed to set [[Prototype]]")}:qf||(Xi?function(e,t){return Xi(e,t),e}:null)});var ea=s((CS,Zi)=>{"use strict";var Af=$(),Qi=Af("%Array.prototype%"),Pf=Ir(),Of=be(),$f=x(),_f=Ur(),kf=Mi(),Yi=Ki();Zi.exports=function(e){if(!_f(e)||e<0)throw new $f("Assertion failed: `length` must be an integer Number >= 0");if(e>kf)throw new Pf("length is greater than (2**32 - 1)");var t=arguments.length>1?arguments[1]:Qi,n=[];if(t!==Qi){if(!Yi)throw new Of("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");Yi(n,t)}return e!==0&&(n.length=e),n}});var ta=s((FS,ra)=>{ra.exports=require("util").inspect});var wa=s((NS,Ea)=>{var Zr=typeof Map=="function"&&Map.prototype,Jr=Object.getOwnPropertyDescriptor&&Zr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,rr=Zr&&Jr&&typeof Jr.get=="function"?Jr.get:null,na=Zr&&Map.prototype.forEach,et=typeof Set=="function"&&Set.prototype,Wr=Object.getOwnPropertyDescriptor&&et?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,tr=et&&Wr&&typeof Wr.get=="function"?Wr.get:null,oa=et&&Set.prototype.forEach,If=typeof WeakMap=="function"&&WeakMap.prototype,Pe=If?WeakMap.prototype.has:null,Cf=typeof WeakSet=="function"&&WeakSet.prototype,Oe=Cf?WeakSet.prototype.has:null,Ff=typeof WeakRef=="function"&&WeakRef.prototype,ia=Ff?WeakRef.prototype.deref:null,Nf=Boolean.prototype.valueOf,Rf=Object.prototype.toString,jf=Function.prototype.toString,Mf=String.prototype.match,rt=String.prototype.slice,D=String.prototype.replace,Lf=String.prototype.toUpperCase,aa=String.prototype.toLowerCase,ma=RegExp.prototype.test,sa=Array.prototype.concat,I=Array.prototype.join,Vf=Array.prototype.slice,ua=Math.floor,Xr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Gr=Object.getOwnPropertySymbols,zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,pe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",$e=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===pe||!0)?Symbol.toStringTag:null,ga=Object.prototype.propertyIsEnumerable,la=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function pa(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||ma.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-ua(-r):ua(r);if(n!==r){var o=String(n),i=rt.call(e,o.length+1);return D.call(o,t,"$&_")+"."+D.call(D.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D.call(e,t,"$&_")}var Kr=ta(),ca=Kr.custom,fa=ba(ca)?ca:null,va={__proto__:null,double:'"',single:"'"},Df={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ea.exports=function r(e,t,n,o){var i=t||{};if(N(i,"quoteStyle")&&!N(va,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(N(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=N(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(N(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(N(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return xa(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return u?pa(e,c):c}if(typeof e=="bigint"){var l=String(e)+"n";return u?pa(e,l):l}var d=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof e=="object")return Qr(e)?"[Array]":"[Object]";var f=id(i,n);if(typeof o>"u")o=[];else if(Sa(o,e)>=0)return"[Circular]";function y(Z,Le,Lp){if(Le&&(o=Vf.call(o),o.push(Le)),Lp){var jn={depth:i.depth};return N(i,"quoteStyle")&&(jn.quoteStyle=i.quoteStyle),r(Z,jn,n+1,o)}return r(Z,i,n+1,o)}if(typeof e=="function"&&!da(e)){var m=Kf(e),v=er(e,y);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(v.length>0?" { "+I.call(v,", ")+" }":"")}if(ba(e)){var p=pe?D.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):zr.call(e);return typeof e=="object"&&!pe?Ae(p):p}if(td(e)){for(var g="<"+aa.call(String(e.nodeName)),h=e.attributes||[],b=0;b<h.length;b++)g+=" "+h[b].name+"="+ha(Uf(h[b].value),"double",i);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+aa.call(String(e.nodeName))+">",g}if(Qr(e)){if(e.length===0)return"[]";var T=er(e,y);return f&&!od(T)?"["+Yr(T,f)+"]":"[ "+I.call(T,", ")+" ]"}if(Jf(e)){var O=er(e,y);return!("cause"in Error.prototype)&&"cause"in e&&!ga.call(e,"cause")?"{ ["+String(e)+"] "+I.call(sa.call("[cause]: "+y(e.cause),O),", ")+" }":O.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+I.call(O,", ")+" }"}if(typeof e=="object"&&a){if(fa&&typeof e[fa]=="function"&&Kr)return Kr(e,{depth:d-n});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Qf(e)){var X=[];return na&&na.call(e,function(Z,Le){X.push(y(Le,e,!0)+" => "+y(Z,e))}),ya("Map",rr.call(e),X,f)}if(ed(e)){var j=[];return oa&&oa.call(e,function(Z){j.push(y(Z,e))}),ya("Set",tr.call(e),j,f)}if(Yf(e))return Hr("WeakMap");if(rd(e))return Hr("WeakSet");if(Zf(e))return Hr("WeakRef");if(Gf(e))return Ae(y(Number(e)));if(Xf(e))return Ae(y(Xr.call(e)));if(Hf(e))return Ae(Nf.call(e));if(Wf(e))return Ae(y(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!Bf(e)&&!da(e)){var Y=er(e,y),Nn=la?la(e)===Object.prototype:e instanceof Object||e.constructor===Object,xr=e instanceof Object?"":"null prototype",Rn=!Nn&&$e&&Object(e)===e&&$e in e?rt.call(U(e),8,-1):xr?"Object":"",Mp=Nn||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Er=Mp+(Rn||xr?"["+I.call(sa.call([],Rn||[],xr||[]),": ")+"] ":"");return Y.length===0?Er+"{}":f?Er+"{"+Yr(Y,f)+"}":Er+"{ "+I.call(Y,", ")+" }"}return String(e)};function ha(r,e,t){var n=t.quoteStyle||e,o=va[n];return o+r+o}function Uf(r){return D.call(String(r),/"/g,"&quot;")}function K(r){return!$e||!(typeof r=="object"&&($e in r||typeof r[$e]<"u"))}function Qr(r){return U(r)==="[object Array]"&&K(r)}function Bf(r){return U(r)==="[object Date]"&&K(r)}function da(r){return U(r)==="[object RegExp]"&&K(r)}function Jf(r){return U(r)==="[object Error]"&&K(r)}function Wf(r){return U(r)==="[object String]"&&K(r)}function Gf(r){return U(r)==="[object Number]"&&K(r)}function Hf(r){return U(r)==="[object Boolean]"&&K(r)}function ba(r){if(pe)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!zr)return!1;try{return zr.call(r),!0}catch{}return!1}function Xf(r){if(!r||typeof r!="object"||!Xr)return!1;try{return Xr.call(r),!0}catch{}return!1}var zf=Object.prototype.hasOwnProperty||function(r){return r in this};function N(r,e){return zf.call(r,e)}function U(r){return Rf.call(r)}function Kf(r){if(r.name)return r.name;var e=Mf.call(jf.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function Sa(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function Qf(r){if(!rr||!r||typeof r!="object")return!1;try{rr.call(r);try{tr.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function Yf(r){if(!Pe||!r||typeof r!="object")return!1;try{Pe.call(r,Pe);try{Oe.call(r,Oe)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function Zf(r){if(!ia||!r||typeof r!="object")return!1;try{return ia.call(r),!0}catch{}return!1}function ed(r){if(!tr||!r||typeof r!="object")return!1;try{tr.call(r);try{rr.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function rd(r){if(!Oe||!r||typeof r!="object")return!1;try{Oe.call(r,Oe);try{Pe.call(r,Pe)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function td(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function xa(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return xa(rt.call(r,0,e.maxStringLength),e)+n}var o=Df[e.quoteStyle||"single"];o.lastIndex=0;var i=D.call(D.call(r,o,"\\$1"),/[\x00-\x1f]/g,nd);return ha(i,"single",e)}function nd(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+Lf.call(e.toString(16))}function Ae(r){return"Object("+r+")"}function Hr(r){return r+" { ? }"}function ya(r,e,t,n){var o=n?Yr(t,n):I.call(t,", ");return r+" ("+e+") {"+o+"}"}function od(r){for(var e=0;e<r.length;e++)if(Sa(r[e],`
2
- `)>=0)return!1;return!0}function id(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=I.call(Array(r.indent+1)," ");else return null;return{base:t,prev:I.call(Array(e+1),t)}}function Yr(r,e){if(r.length===0)return"";var t=`
3
- `+e.prev+e.base;return t+I.call(r,","+t)+`
4
- `+e.prev}function er(r,e){var t=Qr(r),n=[];if(t){n.length=r.length;for(var o=0;o<r.length;o++)n[o]=N(r,o)?e(r[o],r):""}var i=typeof Gr=="function"?Gr(r):[],a;if(pe){a={};for(var u=0;u<i.length;u++)a["$"+i[u]]=i[u]}for(var c in r)N(r,c)&&(t&&String(Number(c))===c&&c<r.length||pe&&a["$"+c]instanceof Symbol||(ma.call(/[^\w$]/,c)?n.push(e(c,r)+": "+e(r[c],r)):n.push(c+": "+e(r[c],r))));if(typeof Gr=="function")for(var l=0;l<i.length;l++)ga.call(r,i[l])&&n.push("["+e(i[l])+"]: "+e(r[i[l]],r));return n}});var B=s((RS,qa)=>{"use strict";qa.exports=function(e){return typeof e=="string"||typeof e=="symbol"}});var _e=s((jS,Aa)=>{"use strict";var Ta=x(),ad=wa(),sd=B(),ud=k();Aa.exports=function(e,t){if(!ud(e))throw new Ta("Assertion failed: Type(O) is not Object");if(!sd(t))throw new Ta("Assertion failed: P is not a Property Key, got "+ad(t));return e[t]}});var _=s((MS,$a)=>{"use strict";var Pa=$(),Oa=xe(),ld=Oa([Pa("%String.prototype.indexOf%")]);$a.exports=function(e,t){var n=Pa(e,!!t);return typeof n=="function"&&ld(e,".prototype.")>-1?Oa([n]):n}});var tt=s((LS,ka)=>{"use strict";var pd=$(),_a=pd("%Array%"),cd=!_a.isArray&&_()("Object.prototype.toString");ka.exports=_a.isArray||function(e){return cd(e)==="[object Array]"}});var nr=s((VS,Ia)=>{"use strict";Ia.exports=tt()});var Fa=s((DS,Ca)=>{"use strict";Ca.exports=$()});var R=s((US,Na)=>{"use strict";var fd=x(),ke=V(),dd={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};Na.exports=function(e){if(!e||typeof e!="object")return!1;for(var t in e)if(ke(e,t)&&!dd[t])return!1;var n=ke(e,"[[Value]]")||ke(e,"[[Writable]]"),o=ke(e,"[[Get]]")||ke(e,"[[Set]]");if(n&&o)throw new fd("Property Descriptors may not be both accessor and data descriptors");return!0}});var nt=s((BS,Ma)=>{"use strict";var yd=Se(),Ra=re(),ja=yd.hasArrayLengthDefineBug(),md=ja&&tt(),gd=_(),vd=gd("Object.prototype.propertyIsEnumerable");Ma.exports=function(e,t,n,o,i,a){if(!Ra){if(!e(a)||!a["[[Configurable]]"]||!a["[[Writable]]"]||i in o&&vd(o,i)!==!!a["[[Enumerable]]"])return!1;var u=a["[[Value]]"];return o[i]=u,t(o[i],u)}return ja&&i==="length"&&"[[Value]]"in a&&md(o)&&o.length!==a["[[Value]]"]?(o.length=a["[[Value]]"],o.length===a["[[Value]]"]):(Ra(o,i,n(a)),!0)}});var Va=s((JS,La)=>{"use strict";La.exports=function(e){if(typeof e>"u")return e;var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=!!e["[[Configurable]]"]),t}});var ot=s((WS,Da)=>{"use strict";var hd=x(),bd=R(),Sd=Va();Da.exports=function(e){if(typeof e<"u"&&!bd(e))throw new hd("Assertion failed: `Desc` must be a Property Descriptor");return Sd(e)}});var or=s((GS,Ba)=>{"use strict";var xd=x(),Ua=V(),Ed=R();Ba.exports=function(e){if(typeof e>"u")return!1;if(!Ed(e))throw new xd("Assertion failed: `Desc` must be a Property Descriptor");return!(!Ua(e,"[[Value]]")&&!Ua(e,"[[Writable]]"))}});var ir=s((HS,Wa)=>{"use strict";var Ja=oe();Wa.exports=function(e,t){return e===t?e===0?1/e===1/t:!0:Ja(e)&&Ja(t)}});var lt=s((XS,Xa)=>{"use strict";var Ha=Function.prototype.toString,ce=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,at,ar;if(typeof ce=="function"&&typeof Object.defineProperty=="function")try{at=Object.defineProperty({},"length",{get:function(){throw ar}}),ar={},ce(function(){throw 42},null,at)}catch(r){r!==ar&&(ce=null)}else ce=null;var wd=/^\s*class\b/,st=function(e){try{var t=Ha.call(e);return wd.test(t)}catch{return!1}},it=function(e){try{return st(e)?!1:(Ha.call(e),!0)}catch{return!1}},sr=Object.prototype.toString,qd="[object Object]",Td="[object Function]",Ad="[object GeneratorFunction]",Pd="[object HTMLAllCollection]",Od="[object HTML document.all class]",$d="[object HTMLCollection]",_d=typeof Symbol=="function"&&!!Symbol.toStringTag,kd=!(0 in[,]),ut=function(){return!1};typeof document=="object"&&(Ga=document.all,sr.call(Ga)===sr.call(document.all)&&(ut=function(e){if((kd||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=sr.call(e);return(t===Pd||t===Od||t===$d||t===qd)&&e("")==null}catch{}return!1}));var Ga;Xa.exports=ce?function(e){if(ut(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{ce(e,null,at)}catch(t){if(t!==ar)return!1}return!st(e)&&it(e)}:function(e){if(ut(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(_d)return it(e);if(st(e))return!1;var t=sr.call(e);return t!==Td&&t!==Ad&&!/^\[object HTML/.test(t)?!1:it(e)}});var Ka=s((zS,za)=>{"use strict";za.exports=lt()});var Ya=s((KS,Qa)=>{"use strict";Qa.exports=function(e){return!!e}});var ct=s((QS,es)=>{"use strict";var C=V(),ur=x(),Id=k(),Za=Ka(),pt=Ya();es.exports=function(e){if(!Id(e))throw new ur("ToPropertyDescriptor requires an object");var t={};if(C(e,"enumerable")&&(t["[[Enumerable]]"]=pt(e.enumerable)),C(e,"configurable")&&(t["[[Configurable]]"]=pt(e.configurable)),C(e,"value")&&(t["[[Value]]"]=e.value),C(e,"writable")&&(t["[[Writable]]"]=pt(e.writable)),C(e,"get")){var n=e.get;if(typeof n<"u"&&!Za(n))throw new ur("getter must be a function");t["[[Get]]"]=n}if(C(e,"set")){var o=e.set;if(typeof o<"u"&&!Za(o))throw new ur("setter must be a function");t["[[Set]]"]=o}if((C(t,"[[Get]]")||C(t,"[[Set]]"))&&(C(t,"[[Value]]")||C(t,"[[Writable]]")))throw new ur("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}});var ns=s((YS,ts)=>{"use strict";var ft=x(),Cd=k(),rs=R(),Fd=nt(),Nd=ot(),Rd=or(),jd=B(),Md=ir(),Ld=ct();ts.exports=function(e,t,n){if(!Cd(e))throw new ft("Assertion failed: Type(O) is not Object");if(!jd(t))throw new ft("Assertion failed: P is not a Property Key");var o=rs(n)?n:Ld(n);if(!rs(o))throw new ft("Assertion failed: Desc is not a valid Property Descriptor");return Fd(Rd,Md,Nd,e,t,o)}});var is=s((ZS,mt)=>{"use strict";var Vd=Fa(),os=Vd("%Reflect.construct%",!0),lr=ns();try{lr({},"",{"[[Get]]":function(){}})}catch{lr=null}lr&&os?(dt={},yt={},lr(yt,"length",{"[[Get]]":function(){throw dt},"[[Enumerable]]":!0}),mt.exports=function(e){try{os(e,yt)}catch(t){return t===dt}}):mt.exports=function(e){return typeof e=="function"&&!!e.prototype};var dt,yt});var cs=s((ex,ps)=>{"use strict";var Dd=$(),as=Dd("%Symbol.species%",!0),ss=x(),Ud=Ur(),Bd=k(),us=ea(),ls=_e(),Jd=nr(),Wd=is();ps.exports=function(e,t){if(!Ud(t)||t<0)throw new ss("Assertion failed: length must be an integer >= 0");var n=Jd(e);if(!n)return us(t);var o=ls(e,"constructor");if(as&&Bd(o)&&(o=ls(o,as),o===null&&(o=void 0)),typeof o>"u")return us(t);if(!Wd(o))throw new ss("C must be a constructor");return new o(t)}});var gt=s((rx,fs)=>{"use strict";fs.exports=Number.MAX_SAFE_INTEGER||9007199254740991});var ys=s((tx,ds)=>{"use strict";var Gd=$(),Hd=_(),Xd=x(),zd=nr(),Kd=Gd("%Reflect.apply%",!0)||Hd("Function.prototype.apply");ds.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!zd(n))throw new Xd("Assertion failed: optional `argumentsList`, if provided, must be a List");return Kd(e,t,n)}});var pr=s((nx,gs)=>{"use strict";var Qd=x(),ms=V(),Yd=R();gs.exports=function(e){if(typeof e>"u")return!1;if(!Yd(e))throw new Qd("Assertion failed: `Desc` must be a Property Descriptor");return!(!ms(e,"[[Get]]")&&!ms(e,"[[Set]]"))}});var vt=s((ox,vs)=>{"use strict";vs.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var xs=s((ix,Ss)=>{"use strict";var bs=$(),Zd=bs("%Object.preventExtensions%",!0),ey=bs("%Object.isExtensible%",!0),hs=vt();Ss.exports=Zd?function(e){return!hs(e)&&ey(e)}:function(e){return!hs(e)}});var ws=s((ax,Es)=>{"use strict";var ry=R();Es.exports=function(e,t){return ry(t)&&"[[Enumerable]]"in t&&"[[Configurable]]"in t&&(e.IsAccessorDescriptor(t)||e.IsDataDescriptor(t))}});var Ts=s((sx,qs)=>{"use strict";var ty=x(),ny=pr(),oy=or(),iy=R();qs.exports=function(e){if(typeof e>"u")return!1;if(!iy(e))throw new ty("Assertion failed: `Desc` must be a Property Descriptor");return!ny(e)&&!oy(e)}});var Os=s((ux,Ps)=>{"use strict";var fe=x(),ay=k(),Ie=nt(),sy=ws(),As=R(),Ce=ot(),Q=pr(),J=or(),uy=Ts(),ly=B(),F=ir();Ps.exports=function(e,t,n,o,i){if(typeof e<"u"&&!ay(e))throw new fe("Assertion failed: O must be undefined or an Object");if(!ly(t))throw new fe("Assertion failed: P must be a Property Key");if(typeof n!="boolean")throw new fe("Assertion failed: extensible must be a Boolean");if(!As(o))throw new fe("Assertion failed: Desc must be a Property Descriptor");if(typeof i<"u"&&!As(i))throw new fe("Assertion failed: current must be a Property Descriptor, or undefined");if(typeof i>"u")return n?typeof e>"u"?!0:Q(o)?Ie(J,F,Ce,e,t,o):Ie(J,F,Ce,e,t,{"[[Configurable]]":!!o["[[Configurable]]"],"[[Enumerable]]":!!o["[[Enumerable]]"],"[[Value]]":o["[[Value]]"],"[[Writable]]":!!o["[[Writable]]"]}):!1;if(!sy({IsAccessorDescriptor:Q,IsDataDescriptor:J},i))throw new fe("`current`, when present, must be a fully populated and valid Property Descriptor");if(!i["[[Configurable]]"]){if("[[Configurable]]"in o&&o["[[Configurable]]"]||"[[Enumerable]]"in o&&!F(o["[[Enumerable]]"],i["[[Enumerable]]"])||!uy(o)&&!F(Q(o),Q(i)))return!1;if(Q(i)){if("[[Get]]"in o&&!F(o["[[Get]]"],i["[[Get]]"])||"[[Set]]"in o&&!F(o["[[Set]]"],i["[[Set]]"]))return!1}else if(!i["[[Writable]]"]&&("[[Writable]]"in o&&o["[[Writable]]"]||"[[Value]]"in o&&!F(o["[[Value]]"],i["[[Value]]"])))return!1}if(typeof e<"u"){var a,u;return J(i)&&Q(o)?(a=("[[Configurable]]"in o?o:i)["[[Configurable]]"],u=("[[Enumerable]]"in o?o:i)["[[Enumerable]]"],Ie(J,F,Ce,e,t,{"[[Configurable]]":!!a,"[[Enumerable]]":!!u,"[[Get]]":("[[Get]]"in o?o:i)["[[Get]]"],"[[Set]]":("[[Set]]"in o?o:i)["[[Set]]"]})):Q(i)&&J(o)?(a=("[[Configurable]]"in o?o:i)["[[Configurable]]"],u=("[[Enumerable]]"in o?o:i)["[[Enumerable]]"],Ie(J,F,Ce,e,t,{"[[Configurable]]":!!a,"[[Enumerable]]":!!u,"[[Value]]":("[[Value]]"in o?o:i)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in o?o:i)["[[Writable]]"]})):Ie(J,F,Ce,e,t,o)}return!0}});var Is=s((lx,ks)=>{"use strict";var $s=M(),_s=be(),ht=x(),py=k(),cy=R(),fy=pr(),dy=xs(),yy=B(),my=ct(),gy=ir(),vy=Os();ks.exports=function(e,t,n){if(!py(e))throw new ht("Assertion failed: O must be an Object");if(!yy(t))throw new ht("Assertion failed: P must be a Property Key");if(!cy(n))throw new ht("Assertion failed: Desc must be a Property Descriptor");if(!$s){if(fy(n))throw new _s("This environment does not support accessor property descriptors.");var o=!(t in e)&&n["[[Writable]]"]&&n["[[Enumerable]]"]&&n["[[Configurable]]"]&&"[[Value]]"in n,i=t in e&&(!("[[Configurable]]"in n)||n["[[Configurable]]"])&&(!("[[Enumerable]]"in n)||n["[[Enumerable]]"])&&(!("[[Writable]]"in n)||n["[[Writable]]"])&&"[[Value]]"in n;if(o||i)return e[t]=n["[[Value]]"],gy(e[t],n["[[Value]]"]);throw new _s("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var a=$s(e,t),u=a&&my(a),c=dy(e);return vy(e,t,c,n,u)}});var Ns=s((px,Fs)=>{"use strict";var Cs=x(),hy=k(),by=B(),Sy=Is();Fs.exports=function(e,t,n){if(!hy(e))throw new Cs("Assertion failed: Type(O) is not Object");if(!by(t))throw new Cs("Assertion failed: P is not a Property Key");var o={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":n,"[[Writable]]":!0};return Sy(e,t,o)}});var js=s((cx,Rs)=>{"use strict";var bt=x(),xy=k(),Ey=Ns(),wy=B();Rs.exports=function(e,t,n){if(!xy(e))throw new bt("Assertion failed: Type(O) is not Object");if(!wy(t))throw new bt("Assertion failed: P is not a Property Key");var o=Ey(e,t,n);if(!o)throw new bt("unable to create data property")}});var Vs=s((fx,Ls)=>{"use strict";var Ms=x(),qy=k(),Ty=B();Ls.exports=function(e,t){if(!qy(e))throw new Ms("Assertion failed: `O` must be an Object");if(!Ty(t))throw new Ms("Assertion failed: `P` must be a Property Key");return t in e}});var Us=s((dx,Ds)=>{"use strict";Ds.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var St=s((yx,Bs)=>{"use strict";var Ay=Xe();Bs.exports=function(){return Ay()&&!!Symbol.toStringTag}});var Gs=s((mx,Ws)=>{"use strict";var Js=_(),Py=Js("Date.prototype.getDay"),Oy=function(e){try{return Py(e),!0}catch{return!1}},$y=Js("Object.prototype.toString"),_y="[object Date]",ky=St()();Ws.exports=function(e){return typeof e!="object"||e===null?!1:ky?Oy(e):$y(e)===_y}});var Ys=s((gx,Qs)=>{"use strict";var Hs=_(),Iy=St()(),Cy=V(),Fy=M(),wt;Iy?(Xs=Hs("RegExp.prototype.exec"),xt={},cr=function(){throw xt},Et={toString:cr,valueOf:cr},typeof Symbol.toPrimitive=="symbol"&&(Et[Symbol.toPrimitive]=cr),wt=function(e){if(!e||typeof e!="object")return!1;var t=Fy(e,"lastIndex"),n=t&&Cy(t,"value");if(!n)return!1;try{Xs(e,Et)}catch(o){return o===xt}}):(zs=Hs("Object.prototype.toString"),Ks="[object RegExp]",wt=function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:zs(e)===Ks});var Xs,xt,cr,Et,zs,Ks;Qs.exports=wt});var qt=s((vx,Zs)=>{"use strict";var Ny=_(),Ry=Ys(),jy=Ny("RegExp.prototype.exec"),My=x();Zs.exports=function(e){if(!Ry(e))throw new My("`regex` must be a RegExp");return function(n){return jy(e,n)!==null}}});var ou=s((hx,Tt)=>{"use strict";var nu=_(),Ly=nu("Object.prototype.toString"),Vy=Fr()(),Dy=qt();Vy?(eu=nu("Symbol.prototype.toString"),ru=Dy(/^Symbol\(.*\)$/),tu=function(e){return typeof e.valueOf()!="symbol"?!1:ru(eu(e))},Tt.exports=function(e){if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||Ly(e)!=="[object Symbol]")return!1;try{return tu(e)}catch{return!1}}):Tt.exports=function(e){return!1};var eu,ru,tu});var uu=s((bx,su)=>{"use strict";var Uy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",At=Us(),au=lt(),By=Gs(),iu=ou(),Jy=function(e,t){if(typeof e>"u"||e===null)throw new TypeError("Cannot call method on "+e);if(typeof t!="string"||t!=="number"&&t!=="string")throw new TypeError('hint must be "string" or "number"');var n=t==="string"?["toString","valueOf"]:["valueOf","toString"],o,i,a;for(a=0;a<n.length;++a)if(o=e[n[a]],au(o)&&(i=o.call(e),At(i)))return i;throw new TypeError("No default value")},Wy=function(e,t){var n=e[t];if(n!==null&&typeof n<"u"){if(!au(n))throw new TypeError(n+" returned for property "+String(t)+" of object "+e+" is not a function");return n}};su.exports=function(e){if(At(e))return e;var t="default";arguments.length>1&&(arguments[1]===String?t="string":arguments[1]===Number&&(t="number"));var n;if(Uy&&(Symbol.toPrimitive?n=Wy(e,Symbol.toPrimitive):iu(e)&&(n=Symbol.prototype.valueOf)),typeof n<"u"){var o=n.call(e,t);if(At(o))return o;throw new TypeError("unable to convert exotic object to primitive")}return t==="default"&&(By(e)||iu(e))&&(t="string"),Jy(e,t==="default"?"number":t)}});var cu=s((Sx,pu)=>{"use strict";var lu=uu();pu.exports=function(e){return arguments.length>1?lu(e,arguments[1]):lu(e)}});var Fe=s((xx,fu)=>{"use strict";var Gy=x();fu.exports=function(e){if(e==null)throw new Gy(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}});var Pt=s((Ex,du)=>{"use strict";var Hy=$(),Xy=Hy("%String%"),zy=x();du.exports=function(e){if(typeof e=="symbol")throw new zy("Cannot convert a Symbol value to a string");return Xy(e)}});var Ot=s((wx,gu)=>{"use strict";var Ky=Fe(),Qy=Pt(),Yy=_(),yu=Yy("String.prototype.replace"),mu=/^\s$/.test("\u180E"),Zy=mu?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,em=mu?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;gu.exports=function(){var e=Qy(Ky(this));return yu(yu(e,Zy,""),em,"")}});var $t=s((qx,hu)=>{"use strict";var rm=Ot(),vu="\u200B",de="\u180E";hu.exports=function(){return String.prototype.trim&&vu.trim()===vu&&de.trim()===de&&("_"+de).trim()==="_"+de&&(de+"_").trim()===de+"_"?String.prototype.trim:rm}});var xu=s((Tx,Su)=>{"use strict";var tm=Se()(),bu=Ge(),nm=$t();Su.exports=function(){var e=nm();return String.prototype.trim!==e&&(tm?bu(String.prototype,"trim",e,!0):bu(String.prototype,"trim",e)),e}});var Tu=s((Ax,qu)=>{"use strict";var om=Te(),im=L(),am=Fe(),sm=Ot(),Eu=$t(),um=xu(),lm=om(Eu()),wu=function(e){return am(e),lm(e)};im(wu,{getPolyfill:Eu,implementation:sm,shim:um});qu.exports=wu});var _u=s((Px,$u)=>{"use strict";var Ou=$(),pm=Ou("%RegExp%"),cm=x(),Au=Ou("%parseInt%"),fm=_(),fr=qt(),Pu=fm("String.prototype.slice"),dm=fr(/^0b[01]+$/i),ym=fr(/^0o[0-7]+$/i),mm=fr(/^[-+]0x[0-9a-f]+$/i),gm=["\x85","\u200B","\uFFFE"].join(""),vm=new pm("["+gm+"]","g"),hm=fr(vm),bm=Tu();$u.exports=function r(e){if(typeof e!="string")throw new cm("Assertion failed: `argument` is not a String");if(dm(e))return+Au(Pu(e,2),2);if(ym(e))return+Au(Pu(e,2),8);if(hm(e)||mm(e))return NaN;var t=bm(e);return t!==e?r(t):+e}});var Cu=s((Ox,Iu)=>{"use strict";var Sm=$(),ku=x(),xm=Sm("%Number%"),Em=vt(),wm=cu(),qm=_u();Iu.exports=function(e){var t=Em(e)?e:wm(e,xm);if(typeof t=="symbol")throw new ku("Cannot convert a Symbol value to a number");if(typeof t=="bigint")throw new ku("Conversion from 'BigInt' to 'number' is not allowed.");return typeof t=="string"?qm(t):+t}});var Nu=s(($x,Fu)=>{"use strict";var Tm=He();Fu.exports=function(e){return typeof e=="bigint"?e:Tm(e)}});var Mu=s((_x,ju)=>{"use strict";var Ru=Nu(),Am=x();ju.exports=function(e){if(typeof e!="number"&&typeof e!="bigint")throw new Am("argument must be a Number or a BigInt");var t=e<0?-Ru(-e):Ru(e);return t===0?0:t}});var _t=s((kx,Lu)=>{"use strict";var Pm=Cu(),Om=Mu(),$m=oe(),_m=Dr();Lu.exports=function(e){var t=Pm(e);return $m(t)||t===0?0:_m(t)?Om(t):t}});var kt=s((Ix,Du)=>{"use strict";var Vu=gt(),km=_t();Du.exports=function(e){var t=km(e);return t<=0?0:t>Vu?Vu:t}});var Bu=s((Cx,Uu)=>{"use strict";var Im=x(),Cm=k(),Fm=_e(),Nm=kt();Uu.exports=function(e){if(!Cm(e))throw new Im("Assertion failed: `obj` must be an Object");return Nm(Fm(e,"length"))}});var Hu=s((Fx,Gu)=>{"use strict";var Ju=x(),Rm=gt(),jm=ys(),Mm=js(),Lm=_e(),Vm=Vs(),Dm=nr(),Um=Bu(),Wu=Pt();Gu.exports=function r(e,t,n,o,i){var a;arguments.length>5&&(a=arguments[5]);for(var u=o,c=0;c<n;){var l=Wu(c),d=Vm(t,l);if(d===!0){var f=Lm(t,l);if(typeof a<"u"){if(arguments.length<=6)throw new Ju("Assertion failed: thisArg is required when mapperFunction is provided");f=jm(a,arguments[6],[f,c,t])}var y=!1;if(i>0&&(y=Dm(f)),y){var m=Um(f);u=r(e,f,m,u,i-1)}else{if(u>=Rm)throw new Ju("index too large");Mm(e,Wu(u),f),u+=1}}c+=1}return u}});var zu=s((Nx,Xu)=>{"use strict";var Bm=ne(),Jm=Fe();Xu.exports=function(e){return Jm(e),Bm(e)}});var Qu=s((Rx,Ku)=>{"use strict";Ku.exports=zu()});var It=s((jx,Yu)=>{"use strict";var Wm=cs(),Gm=Hu(),Hm=_e(),Xm=_t(),zm=kt(),Km=Qu();Yu.exports=function(){var e=Km(this),t=zm(Hm(e,"length")),n=1;arguments.length>0&&typeof arguments[0]<"u"&&(n=Xm(arguments[0]));var o=Wm(e,0);return Gm(o,e,t,0,n),o}});var Ct=s((Mx,Zu)=>{"use strict";var Qm=It();Zu.exports=function(){return Array.prototype.flat||Qm}});var ol=s((Lx,nl)=>{"use strict";var Ym=V(),tl=typeof Symbol=="function"&&typeof Symbol.unscopables=="symbol",el=tl&&Array.prototype[Symbol.unscopables],rl=TypeError;nl.exports=function(e){if(typeof e!="string"||!e)throw new rl("method must be a non-empty string");if(!Ym(Array.prototype,e))throw new rl("method must be on Array.prototype");tl&&el&&(el[e]=!0)}});var al=s((Vx,il)=>{"use strict";var Zm=L(),eg=ol(),rg=Ct();il.exports=function(){var e=rg();return Zm(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),eg("flat"),e}});var pl=s((Dx,ll)=>{"use strict";var tg=L(),ng=Te(),og=It(),sl=Ct(),ig=sl(),ag=al(),ul=ng(ig);tg(ul,{getPolyfill:sl,implementation:og,shim:ag});ll.exports=ul});var Ft=s((Ux,cl)=>{"use strict";var sg=Fe(),ug=_(),lg=ug("Object.prototype.propertyIsEnumerable");cl.exports=function(e){var t=sg(e),n=[];for(var o in t)lg(t,o)&&(n[n.length]=t[o]);return n}});var Nt=s((Bx,fl)=>{"use strict";var pg=Ft();fl.exports=function(){return typeof Object.values=="function"?Object.values:pg}});var yl=s((Jx,dl)=>{"use strict";var cg=Nt(),fg=L();dl.exports=function(){var e=cg();return fg(Object,{values:e},{values:function(){return Object.values!==e}}),e}});var hl=s((Wx,vl)=>{"use strict";var dg=L(),yg=Te(),mg=Ft(),ml=Nt(),gg=yl(),gl=yg(ml(),Object);dg(gl,{getPolyfill:ml,implementation:mg,shim:gg});vl.exports=gl});var xl=s(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.eventHandlersByType=void 0;var vg=pl(),hg=bl(vg),bg=hl(),Sg=bl(bg);function bl(r){return r&&r.__esModule?r:{default:r}}var Sl={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"]};Ne.default=(0,hg.default)((0,Sg.default)(Sl));Ne.eventHandlersByType=Sl});var wl=s(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});var xg=function(){function r(e,t){var n=[],o=!0,i=!1,a=void 0;try{for(var u=e[Symbol.iterator](),c;!(o=(c=u.next()).done)&&(n.push(c.value),!(t&&n.length===t));o=!0);}catch(l){i=!0,a=l}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}return n}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ye=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r};jt.default=Ag;var Eg=De(),wg=qg(Eg);function qg(r){return r&&r.__esModule?r:{default:r}}function El(r,e){var t={};for(var n in r)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t}var Tg={ignoreCase:!0};function Ag(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Tg;function n(u){return t.ignoreCase?u.toUpperCase():u}var o=n(e);function i(u){return u.type==="Property"&&u.key.type==="Identifier"&&o===n(u.key.name)}var a=r.find(function(u){return u.type==="JSXSpreadAttribute"?u.argument.type==="ObjectExpression"&&o!==n("key")&&u.argument.properties.some(i):o===n((0,wg.default)(u))});return a&&a.type==="JSXSpreadAttribute"?Pg(a.argument.properties.find(i)):a}function Pg(r){var e=r.key,t=r.value;return ye({type:"JSXAttribute",name:ye({type:"JSXIdentifier",name:e.name},Rt(e)),value:t.type==="Literal"?Re(t):ye({type:"JSXExpressionContainer",expression:Og(t)},Rt(t))},Rt(r))}function Re(r){var e=r.range||[r.start,r.end],t=xg(e,2),n=t[0],o=t[1];return ye({},r,{end:void 0,range:[n,o],start:void 0})}function Og(r){var e=r.expressions,t=r.quasis,n=El(r,["expressions","quasis"]);return ye({},Re(n),e?{expressions:e.map(Re)}:{},t?{quasis:t.map(Re)}:{})}function Rt(r){var e=r.loc,t=El(r,["loc"]),n=Re(t),o=n.range;return{loc:$g(e),range:o}}function $g(r){var e=r.start,t=r.end,n=r.source,o=r.filename;return ye({start:e,end:t},n!==void 0?{source:n}:{},o!==void 0?{filename:o}:{})}});var Lt=s(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.default=_g;function _g(r){var e=r.value,t=typeof e=="string"&&e.toLowerCase();return t==="true"?!0:t==="false"?!1:e}});var Dt=s(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.default=kg;function kg(r){var e=dr().default,t=r.openingElement.name.name;return r.openingElement.selfClosing?"<"+t+" />":"<"+t+">"+[].concat(r.children).map(function(n){return e(n)}).join("")+"</"+t+">"}});var Bt=s(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.default=Ig;function Ig(r){return r.raw}});var Wt=s(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.default=Cg;function Cg(r){var e=dr().default;return r.children.length===0?"<></>":"<>"+[].concat(r.children).map(function(t){return e(t)}).join("")+"</>"}});var Tl=s(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.default=Fg;var ql={Array,Date,Infinity:1/0,Math,Number,Object,String,undefined:void 0};function Fg(r){var e=r.name;return Object.hasOwnProperty.call(ql,e)?ql[e]:e}});var Xt=s(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.default=Rg;function Ng(r,e){return(r.range?r.range[0]:r.start)-(e.range?e.range[0]:e.start)}function Rg(r){var e=r.quasis,t=r.expressions,n=e.concat(t);return n.sort(Ng).map(function(o){var i=o.type,a=o.value;a=a===void 0?{}:a;var u=a.raw,c=o.name;return i==="TemplateElement"?u:i==="Identifier"?c==="undefined"?c:"{"+c+"}":i.indexOf("Expression")>-1?"{"+i+"}":""}).join("")}});var Al=s(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.default=Vg;var jg=Xt(),Mg=Lg(jg);function Lg(r){return r&&r.__esModule?r:{default:r}}function Vg(r){return(0,Mg.default)(r.quasi)}});var Pl=s(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.default=Dg;function Dg(r){return function(){return r}}});var Ol=s(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.default=Ug;function Ug(r){var e=P().default,t=r.operator,n=r.left,o=r.right,i=e(n),a=e(o);return t==="&&"?i&&a:t==="??"?i===null||typeof i>"u"?a:i:i||a}});var $l=s(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.default=Bg;function Bg(r){var e=P().default;return""+e(r.object)+(r.optional?"?.":".")+e(r.property)}});var _l=s(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.default=Jg;function Jg(r){var e=P().default;return e(r.expression||r)}});var kl=s(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.default=Wg;function Wg(r){var e=P().default;return e(r.callee)+"?.("+r.arguments.map(function(t){return e(t)}).join(", ")+")"}});var Il=s(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.default=Gg;function Gg(r){var e=P().default;return e(r.object)+"?."+e(r.property)}});var nn=s(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.default=Hg;function Hg(r){var e=P().default,t=Array.isArray(r.arguments)?r.arguments.map(function(n){return e(n)}).join(", "):"";return""+e(r.callee)+(r.optional?"?.":"")+"("+t+")"}});var Cl=s(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.default=Xg;function Xg(r){var e=P().default,t=r.operator,n=r.argument;switch(t){case"-":return-e(n);case"+":return+e(n);case"!":return!e(n);case"~":return~e(n);case"delete":return!0;case"typeof":case"void":default:return}}});var sn=s(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.default=zg;function zg(){return"this"}});var Fl=s(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.default=Kg;function Kg(r){var e=P().default,t=r.test,n=r.alternate,o=r.consequent;return e(t)?e(o):e(n)}});var Nl=s(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.default=Qg;function Qg(r){var e=P().default,t=r.operator,n=r.left,o=r.right,i=e(n),a=e(o);switch(t){case"==":return i==a;case"!=":return i!=a;case"===":return i===a;case"!==":return i!==a;case"<":return i<a;case"<=":return i<=a;case">":return i>a;case">=":return i>=a;case"<<":return i<<a;case">>":return i>>a;case">>>":return i>>>a;case"+":return i+a;case"-":return i-a;case"*":return i*a;case"/":return i/a;case"%":return i%a;case"|":return i|a;case"^":return i^a;case"&":return i&a;case"in":try{return i in a}catch{return!1}case"instanceof":return typeof a!="function"?!1:i instanceof a;default:return}}});var pn=s((fE,Ll)=>{"use strict";var Yg=_r(),jl=Xe()(),Ml=_(),yr=ne(),Zg=Ml("Array.prototype.push"),Rl=Ml("Object.prototype.propertyIsEnumerable"),ev=jl?yr.getOwnPropertySymbols:null;Ll.exports=function(e,t){if(e==null)throw new TypeError("target must be an object");var n=yr(e);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var i=yr(arguments[o]),a=Yg(i),u=jl&&(yr.getOwnPropertySymbols||ev);if(u)for(var c=u(i),l=0;l<c.length;++l){var d=c[l];Rl(i,d)&&Zg(a,d)}for(var f=0;f<a.length;++f){var y=a[f];if(Rl(i,y)){var m=i[y];n[y]=m}}}return n}});var fn=s((dE,Vl)=>{"use strict";var cn=pn(),rv=function(){if(!Object.assign)return!1;for(var r="abcdefghijklmnopqrst",e=r.split(""),t={},n=0;n<e.length;++n)t[e[n]]=e[n];var o=Object.assign({},t),i="";for(var a in o)i+=a;return r!==i},tv=function(){if(!Object.assign||!Object.preventExtensions)return!1;var r=Object.preventExtensions({1:2});try{Object.assign(r,"xy")}catch{return r[1]==="y"}return!1};Vl.exports=function(){return!Object.assign||rv()||tv()?cn:Object.assign}});var Ul=s((yE,Dl)=>{"use strict";var nv=L(),ov=fn();Dl.exports=function(){var e=ov();return nv(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}});var Gl=s((mE,Wl)=>{"use strict";var iv=L(),av=Te(),sv=pn(),Bl=fn(),uv=Ul(),lv=av.apply(Bl()),Jl=function(e,t){return lv(Object,arguments)};iv(Jl,{getPolyfill:Bl,implementation:sv,shim:uv});Wl.exports=Jl});var zl=s(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.default=Xl;var pv=Gl(),Hl=cv(pv);function cv(r){return r&&r.__esModule?r:{default:r}}function fv(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Xl(r){var e=P().default;return r.properties.reduce(function(t,n){if(/^(?:Experimental)?Spread(?:Property|Element)$/.test(n.type)){if(n.argument.type==="ObjectExpression")return(0,Hl.default)({},t,Xl(n.argument))}else return(0,Hl.default)({},t,fv({},e(n.key),e(n.value)));return t},{})}});var Kl=s(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.default=dv;function dv(){return new Object}});var Ql=s(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.default=yv;function yv(r){var e=P().default,t=r.operator,n=r.argument,o=r.prefix,i=e(n);switch(t){case"++":return o?++i:i++;case"--":return o?--i:i--;default:return}}});var Yl=s(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.default=mv;function mv(r){var e=P().default;return r.elements.map(function(t){if(t!==null)return e(t)})}});var Zl=s(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.default=gv;function gv(r){var e=P().default,t=e(r.callee),n=r.object===null?e(r.callee.object):e(r.object);return r.object&&r.object.property?n+"."+t+".bind("+n+")":t+".bind("+n+")"}});var ep=s(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.default=vv;function vv(){}});var rp=s(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.default=hv;function hv(r){var e=P().default;return e(r.expression)}});var tp=s(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.default=bv;function bv(r){var e=P().default;return r.expressions.map(function(t){return e(t)})}});var op=s(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.default=W;var Sv=sn().default,xv=nn().default;function np(r,e,t){return t.computed?t.optional?r+"?.["+e+"]":r+"["+e+"]":t.optional?r+"?."+e:r+"."+e}function W(r){var e="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(r.type==="Identifier"){var t=r.name;return t}if(r.type==="Literal")return r.value;if(r.type==="TSAsExpression")return W(r.expression);if(r.type==="CallExpression")return xv(r);if(r.type==="ThisExpression")return Sv();if(r.type==="TSNonNullExpression"&&(!r.extra||r.extra.parenthesized===!1)){var n=r.expression;return W(n)+"!"}if(r.type==="TSNonNullExpression"&&r.extra&&r.extra.parenthesized===!0){var o=r.expression;return"("+W(o)+"!)"}if(r.type==="MemberExpression"){if(!r.extra||r.extra.parenthesized===!1)return np(W(r.object),W(r.property),r);if(r.extra&&r.extra.parenthesized===!0){var i=np(W(r.object),W(r.property),r);return"("+i+")"}}if(r.expression)for(var a=r.expression;a;){if(a.type==="Identifier")return console.error(e),a.name;var u=a;a=u.expression}return console.error(e),""}});var ip=s(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.default=Ev;function Ev(r){var e=P().default;return e(r.left)+" "+r.operator+" "+e(r.right)}});var P=s(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});var wv=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r};mr.default=Th;mr.extractLiteral=Ah;var qv=Lt(),Tv=E(qv),Av=Dt(),Pv=E(Av),Ov=Wt(),$v=E(Ov),_v=Bt(),kv=E(_v),Iv=Tl(),Cv=E(Iv),Fv=Al(),Nv=E(Fv),Rv=Xt(),jv=E(Rv),Mv=Pl(),ap=E(Mv),Lv=Ol(),Vv=E(Lv),Dv=$l(),Uv=E(Dv),Bv=_l(),Jv=E(Bv),Wv=kl(),Gv=E(Wv),Hv=Il(),Xv=E(Hv),zv=nn(),Kv=E(zv),Qv=Cl(),Yv=E(Qv),Zv=sn(),eh=E(Zv),rh=Fl(),th=E(rh),nh=Nl(),oh=E(nh),ih=zl(),ah=E(ih),sh=Kl(),uh=E(sh),lh=Ql(),ph=E(lh),ch=Yl(),fh=E(ch),dh=Zl(),yh=E(dh),mh=ep(),gh=E(mh),vh=rp(),hh=E(vh),bh=tp(),Sh=E(bh),xh=op(),Eh=E(xh),wh=ip(),qh=E(wh);function E(r){return r&&r.__esModule?r:{default:r}}var G={Identifier:Cv.default,Literal:Tv.default,JSXElement:Pv.default,JSXFragment:$v.default,JSXText:kv.default,TaggedTemplateExpression:Nv.default,TemplateLiteral:jv.default,ArrowFunctionExpression:ap.default,FunctionExpression:ap.default,LogicalExpression:Vv.default,MemberExpression:Uv.default,ChainExpression:Jv.default,OptionalCallExpression:Gv.default,OptionalMemberExpression:Xv.default,CallExpression:Kv.default,UnaryExpression:Yv.default,ThisExpression:eh.default,ConditionalExpression:th.default,BinaryExpression:oh.default,ObjectExpression:ah.default,NewExpression:uh.default,UpdateExpression:ph.default,ArrayExpression:fh.default,BindExpression:yh.default,SpreadElement:gh.default,TypeCastExpression:hh.default,SequenceExpression:Sh.default,TSNonNullExpression:Eh.default,AssignmentExpression:qh.default},w=function(){return null},up=function(e){return"The prop value with an expression type of "+e+" could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately."};function Th(r){var e=void 0;typeof r.expression!="boolean"&&r.expression?e=r.expression:e=r;var t=e,n=t.type;for(e.object&&e.object.type==="TSNonNullExpression"&&(n="TSNonNullExpression");n==="TSAsExpression";){var o=e;if(n=o.type,e.expression){var i=e;e=i.expression}}return G[n]===void 0?(console.error(up(n)),null):G[n](e)}var sp=wv({},G,{Literal:function(e){var t=G.Literal.call(void 0,e),n=t===null;return n?"null":t},Identifier:function(e){var t=G.Identifier.call(void 0,e)===void 0;return t?void 0:null},JSXElement:w,JSXFragment:w,JSXText:w,ArrowFunctionExpression:w,FunctionExpression:w,LogicalExpression:w,MemberExpression:w,OptionalCallExpression:w,OptionalMemberExpression:w,CallExpression:w,UnaryExpression:function(e){var t=G.UnaryExpression.call(void 0,e);return t===void 0?null:t},UpdateExpression:function(e){var t=G.UpdateExpression.call(void 0,e);return t===void 0?null:t},ThisExpression:w,ConditionalExpression:w,BinaryExpression:w,ObjectExpression:w,NewExpression:w,ArrayExpression:function(e){var t=G.ArrayExpression.call(void 0,e);return t.filter(function(n){return n!==null})},BindExpression:w,SpreadElement:w,TSNonNullExpression:w,TSAsExpression:w,TypeCastExpression:w,SequenceExpression:w,ChainExpression:w});function Ah(r){var e=r.expression||r,t=e.type;return sp[t]===void 0?(console.error(up(t)),null):sp[t](e)}});var dr=s(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});var Ph=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r};gr.default=Mh;gr.getLiteralValue=Lh;var Oh=Lt(),$h=je(Oh),_h=Dt(),kh=je(_h),Ih=Bt(),Ch=je(Ih),Fh=Wt(),Nh=je(Fh),lp=P(),Rh=je(lp);function je(r){return r&&r.__esModule?r:{default:r}}var wn={Literal:$h.default,JSXElement:kh.default,JSXExpressionContainer:Rh.default,JSXText:Ch.default,JSXFragment:Nh.default},jh=Ph({},wn,{JSXElement:function(){return null},JSXExpressionContainer:lp.extractLiteral});function Mh(r){return wn[r.type]||console.log(r.type),wn[r.type](r)}function Lh(r){return jh[r.type](r)}});var fp=s(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.default=Uh;vr.getLiteralPropValue=Bh;var pp=dr(),Vh=Dh(pp);function Dh(r){return r&&r.__esModule?r:{default:r}}var cp=function(e,t){if(e&&e.type==="JSXAttribute")return e.value===null?!0:t(e.value)};function Uh(r){return cp(r,Vh.default)}function Bh(r){return cp(r,pp.getLiteralValue)}});var hr=s(($E,mp)=>{"use strict";var qn=Jn(),Jh=me(qn),Wh=Gn(),Gh=me(Wh),dp=xl(),Hh=me(dp),Xh=wl(),zh=me(Xh),yp=fp(),Kh=me(yp),Qh=De(),Yh=me(Qh);function me(r){return r&&r.__esModule?r:{default:r}}mp.exports={hasProp:Jh.default,hasAnyProp:qn.hasAnyProp,hasEveryProp:qn.hasEveryProp,elementType:Gh.default,eventHandlers:Hh.default,eventHandlersByType:dp.eventHandlersByType,getProp:zh.default,getPropValue:Kh.default,getLiteralPropValue:yp.getLiteralPropValue,propName:Yh.default}});var Pp=s((uw,Ap)=>{"use strict";Ap.exports=r=>{let e=r.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((t,n)=>Math.min(t,n.length),1/0):0}});var wb={};Wp(wb,{configs:()=>Sb,qwikEslint9Plugin:()=>Fn,rules:()=>Np});module.exports=Gp(wb);var Ln=require("@typescript-eslint/utils"),Hp=Ln.ESLintUtils.RuleCreator(()=>"https://qwik.dev/docs/advanced/dollar/"),Vn=Hp({defaultOptions:[],name:"jsx-a-tag",meta:{type:"problem",docs:{description:"For a perfect SEO score, always provide href attribute for <a> elements.",recommended:"warn"},fixable:"code",schema:[],messages:{noHref:"For a perfect SEO score, always provide href attribute for <a> elements."}},create(r){return{JSXElement(e){e.openingElement.name.type==="JSXIdentifier"&&e.openingElement.name.name==="a"&&(e.openingElement.attributes.some(n=>n.type==="JSXSpreadAttribute")||e.openingElement.attributes.some(o=>o.type==="JSXAttribute"&&o.name.type==="JSXIdentifier"&&o.name.name==="href")||r.report({node:e,messageId:"noHref"}))}}}});var Dn=require("@typescript-eslint/utils"),Xp=Dn.ESLintUtils.RuleCreator(r=>`https://qwik.dev/docs/advanced/eslint/#${r}`),Un=Xp({defaultOptions:[],name:"jsx-img",meta:{type:"problem",docs:{description:"For performance reasons, always provide width and height attributes for <img> elements, it will help to prevent layout shifts.",recommended:"warn"},fixable:"code",schema:[],messages:{noLocalSrc:`Local images can be optimized by importing using ESM, like this:
1
+ "use strict";var vc=Object.create;var Je=Object.defineProperty;var Sc=Object.getOwnPropertyDescriptor;var hc=Object.getOwnPropertyNames;var bc=Object.getPrototypeOf,xc=Object.prototype.hasOwnProperty;var s=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},Ec=(r,e)=>{for(var t in e)Je(r,t,{get:e[t],enumerable:!0})},Qn=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of hc(e))!xc.call(r,o)&&o!==t&&Je(r,o,{get:()=>e[o],enumerable:!(n=Sc(e,o))||n.enumerable});return r};var re=(r,e,t)=>(t=r!=null?vc(bc(r)):{},Qn(e||!r||!r.__esModule?Je(t,"default",{value:r,enumerable:!0}):t,r)),wc=r=>Qn(Je({},"__esModule",{value:!0}),r);var He=s(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.default=Cc;function Cc(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!r.type||r.type!=="JSXAttribute")throw new Error("The prop must be a JSXAttribute collected by the AST parser.");return r.name.type==="JSXNamespacedName"?r.name.namespace.name+":"+r.name.name.name:r.name.name}});var so=s(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.default=Dr;be.hasAnyProp=Fc;be.hasEveryProp=_c;var Oc=He(),ao=$c(Oc);function $c(r){return r&&r.__esModule?r:{default:r}}var jr={spreadStrict:!0,ignoreCase:!0};function Dr(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:jr,n=t.ignoreCase?e.toUpperCase():e;return r.some(function(o){if(o.type==="JSXSpreadAttribute")return!t.spreadStrict;var i=t.ignoreCase?(0,ao.default)(o).toUpperCase():(0,ao.default)(o);return n===i})}function Fc(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:jr,n=typeof e=="string"?e.split(" "):e;return n.some(function(o){return Dr(r,o,t)})}function _c(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:jr,n=typeof e=="string"?e.split(" "):e;return n.every(function(o){return Dr(r,o,t)})}});var lo=s(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.default=Nc;function uo(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.type==="JSXMemberExpression"?uo(r.object,r.property)+"."+e.name:r.name+"."+e.name}function Nc(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.name;if(r.type==="JSXOpeningFragment")return"<>";if(!e)throw new Error("The argument provided is not a JSXElement node.");if(e.type==="JSXMemberExpression"){var t=e.object,n=t===void 0?{}:t,o=e.property,i=o===void 0?{}:o;return uo(n,i)}return e.type==="JSXNamespacedName"?e.namespace.name+":"+e.name.name:r.name.name}});var Ur=s((Wb,co)=>{"use strict";var po=Object.prototype.toString;co.exports=function(e){var t=po.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&po.call(e.callee)==="[object Function]"),n}});var xo=s((Gb,bo)=>{"use strict";var ho;Object.keys||(xe=Object.prototype.hasOwnProperty,Br=Object.prototype.toString,fo=Ur(),Jr=Object.prototype.propertyIsEnumerable,mo=!Jr.call({toString:null},"toString"),yo=Jr.call(function(){},"prototype"),Ee=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ze=function(r){var e=r.constructor;return e&&e.prototype===r},go={$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},vo=(function(){if(typeof window>"u")return!1;for(var r in window)try{if(!go["$"+r]&&xe.call(window,r)&&window[r]!==null&&typeof window[r]=="object")try{ze(window[r])}catch{return!0}}catch{return!0}return!1})(),So=function(r){if(typeof window>"u"||!vo)return ze(r);try{return ze(r)}catch{return!1}},ho=function(e){var t=e!==null&&typeof e=="object",n=Br.call(e)==="[object Function]",o=fo(e),i=t&&Br.call(e)==="[object String]",a=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var u=yo&&n;if(i&&e.length>0&&!xe.call(e,0))for(var c=0;c<e.length;++c)a.push(String(c));if(o&&e.length>0)for(var p=0;p<e.length;++p)a.push(String(p));else for(var m in e)!(u&&m==="prototype")&&xe.call(e,m)&&a.push(String(m));if(mo)for(var l=So(e),f=0;f<Ee.length;++f)!(l&&Ee[f]==="constructor")&&xe.call(e,Ee[f])&&a.push(Ee[f]);return a});var xe,Br,fo,Jr,mo,yo,Ee,ze,go,vo,So;bo.exports=ho});var Wr=s((Xb,To)=>{"use strict";var Rc=Array.prototype.slice,Lc=Ur(),Eo=Object.keys,Ke=Eo?function(e){return Eo(e)}:xo(),wo=Object.keys;Ke.shim=function(){if(Object.keys){var e=(function(){var t=Object.keys(arguments);return t&&t.length===arguments.length})(1,2);e||(Object.keys=function(n){return Lc(n)?wo(Rc.call(n)):wo(n)})}else Object.keys=Ke;return Object.keys||Ke};To.exports=Ke});var ne=s((Hb,qo)=>{"use strict";var Qe=Object.defineProperty||!1;if(Qe)try{Qe({},"a",{value:1})}catch{Qe=!1}qo.exports=Qe});var we=s((zb,Ao)=>{"use strict";Ao.exports=SyntaxError});var v=s((Kb,Po)=>{"use strict";Po.exports=TypeError});var ko=s((Qb,Io)=>{"use strict";Io.exports=Object.getOwnPropertyDescriptor});var U=s((Yb,Co)=>{"use strict";var Ye=ko();if(Ye)try{Ye([],"length")}catch{Ye=null}Co.exports=Ye});var Ze=s((Zb,Fo)=>{"use strict";var Oo=ne(),Mc=we(),oe=v(),$o=U();Fo.exports=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new oe("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new oe("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new oe("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new oe("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new oe("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new oe("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,c=!!$o&&$o(e,t);if(Oo)Oo(e,t,{configurable:a===null&&c?c.configurable:!a,enumerable:o===null&&c?c.enumerable:!o,value:n,writable:i===null&&c?c.writable:!i});else if(u||!o&&!i&&!a)e[t]=n;else throw new Mc("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Te=s((ex,No)=>{"use strict";var Gr=ne(),_o=function(){return!!Gr};_o.hasArrayLengthDefineBug=function(){if(!Gr)return null;try{return Gr([],"length",{value:1}).length!==1}catch{return!0}};No.exports=_o});var B=s((rx,jo)=>{"use strict";var jc=Wr(),Dc=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Vc=Object.prototype.toString,Uc=Array.prototype.concat,Ro=Ze(),Bc=function(r){return typeof r=="function"&&Vc.call(r)==="[object Function]"},Lo=Te()(),Jc=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!Bc(n)||!n())return}Lo?Ro(r,e,t,!0):Ro(r,e,t)},Mo=function(r,e){var t=arguments.length>2?arguments[2]:{},n=jc(e);Dc&&(n=Uc.call(n,Object.getOwnPropertySymbols(e)));for(var o=0;o<n.length;o+=1)Jc(r,n[o],e[n[o]],t[n[o]])};Mo.supportsDescriptors=!!Lo;jo.exports=Mo});var ie=s((tx,Do)=>{"use strict";Do.exports=Object});var Uo=s((nx,Vo)=>{"use strict";Vo.exports=Error});var Jo=s((ox,Bo)=>{"use strict";Bo.exports=EvalError});var Xr=s((ix,Wo)=>{"use strict";Wo.exports=RangeError});var Xo=s((ax,Go)=>{"use strict";Go.exports=ReferenceError});var zo=s((sx,Ho)=>{"use strict";Ho.exports=URIError});var Hr=s((ux,Ko)=>{"use strict";Ko.exports=Math.abs});var er=s((lx,Qo)=>{"use strict";Qo.exports=Math.floor});var Zo=s((px,Yo)=>{"use strict";Yo.exports=Math.max});var ri=s((cx,ei)=>{"use strict";ei.exports=Math.min});var ni=s((fx,ti)=>{"use strict";ti.exports=Math.pow});var ii=s((dx,oi)=>{"use strict";oi.exports=Math.round});var ae=s((mx,ai)=>{"use strict";ai.exports=Number.isNaN||function(e){return e!==e}});var ui=s((yx,si)=>{"use strict";var Wc=ae();si.exports=function(e){return Wc(e)||e===0?e:e<0?-1:1}});var rr=s((gx,li)=>{"use strict";li.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},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;e[t]=o;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,t);if(u.value!==o||u.enumerable!==!0)return!1}return!0}});var zr=s((vx,ci)=>{"use strict";var pi=typeof Symbol<"u"&&Symbol,Gc=rr();ci.exports=function(){return typeof pi!="function"||typeof Symbol!="function"||typeof pi("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Gc()}});var Kr=s((Sx,fi)=>{"use strict";fi.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Qr=s((hx,di)=>{"use strict";var Xc=ie();di.exports=Xc.getPrototypeOf||null});var gi=s((bx,yi)=>{"use strict";var Hc="Function.prototype.bind called on incompatible ",zc=Object.prototype.toString,Kc=Math.max,Qc="[object Function]",mi=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},Yc=function(e,t){for(var n=[],o=t||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},Zc=function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t};yi.exports=function(e){var t=this;if(typeof t!="function"||zc.apply(t)!==Qc)throw new TypeError(Hc+t);for(var n=Yc(arguments,1),o,i=function(){if(this instanceof o){var m=t.apply(this,mi(n,arguments));return Object(m)===m?m:this}return t.apply(e,mi(n,arguments))},a=Kc(0,t.length-n.length),u=[],c=0;c<a;c++)u[c]="$"+c;if(o=Function("binder","return function ("+Zc(u,",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var p=function(){};p.prototype=t.prototype,o.prototype=new p,p.prototype=null}return o}});var se=s((xx,vi)=>{"use strict";var ef=gi();vi.exports=Function.prototype.bind||ef});var tr=s((Ex,Si)=>{"use strict";Si.exports=Function.prototype.call});var nr=s((wx,hi)=>{"use strict";hi.exports=Function.prototype.apply});var xi=s((Tx,bi)=>{"use strict";bi.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Yr=s((qx,Ei)=>{"use strict";var rf=se(),tf=nr(),nf=tr(),of=xi();Ei.exports=of||rf.call(nf,tf)});var qe=s((Ax,wi)=>{"use strict";var af=se(),sf=v(),uf=tr(),lf=Yr();wi.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new sf("a function is required");return lf(af,uf,e)}});var ki=s((Px,Ii)=>{"use strict";var pf=qe(),Ti=U(),Ai;try{Ai=[].__proto__===Array.prototype}catch(r){if(!r||typeof r!="object"||!("code"in r)||r.code!=="ERR_PROTO_ACCESS")throw r}var Zr=!!Ai&&Ti&&Ti(Object.prototype,"__proto__"),Pi=Object,qi=Pi.getPrototypeOf;Ii.exports=Zr&&typeof Zr.get=="function"?pf([Zr.get]):typeof qi=="function"?function(e){return qi(e==null?e:Pi(e))}:!1});var _i=s((Ix,Fi)=>{"use strict";var Ci=Kr(),Oi=Qr(),$i=ki();Fi.exports=Ci?function(e){return Ci(e)}:Oi?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return Oi(e)}:$i?function(e){return $i(e)}:null});var J=s((kx,Ni)=>{"use strict";var cf=Function.prototype.call,ff=Object.prototype.hasOwnProperty,df=se();Ni.exports=df.call(cf,ff)});var k=s((Cx,Vi)=>{"use strict";var g,mf=ie(),yf=Uo(),gf=Jo(),vf=Xr(),Sf=Xo(),ce=we(),pe=v(),hf=zo(),bf=Hr(),xf=er(),Ef=Zo(),wf=ri(),Tf=ni(),qf=ii(),Af=ui(),ji=Function,et=function(r){try{return ji('"use strict"; return ('+r+").constructor;")()}catch{}},Ae=U(),Pf=ne(),rt=function(){throw new pe},If=Ae?(function(){try{return arguments.callee,rt}catch{try{return Ae(arguments,"callee").get}catch{return rt}}})():rt,ue=zr()(),T=_i(),kf=Qr(),Cf=Kr(),Di=nr(),Pe=tr(),le={},Of=typeof Uint8Array>"u"||!T?g:T(Uint8Array),Q={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?g:ArrayBuffer,"%ArrayIteratorPrototype%":ue&&T?T([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":le,"%AsyncGenerator%":le,"%AsyncGeneratorFunction%":le,"%AsyncIteratorPrototype%":le,"%Atomics%":typeof Atomics>"u"?g:Atomics,"%BigInt%":typeof BigInt>"u"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":yf,"%eval%":eval,"%EvalError%":gf,"%Float16Array%":typeof Float16Array>"u"?g:Float16Array,"%Float32Array%":typeof Float32Array>"u"?g:Float32Array,"%Float64Array%":typeof Float64Array>"u"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?g:FinalizationRegistry,"%Function%":ji,"%GeneratorFunction%":le,"%Int8Array%":typeof Int8Array>"u"?g:Int8Array,"%Int16Array%":typeof Int16Array>"u"?g:Int16Array,"%Int32Array%":typeof Int32Array>"u"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ue&&T?T(T([][Symbol.iterator]())):g,"%JSON%":typeof JSON=="object"?JSON:g,"%Map%":typeof Map>"u"?g:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ue||!T?g:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":mf,"%Object.getOwnPropertyDescriptor%":Ae,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?g:Promise,"%Proxy%":typeof Proxy>"u"?g:Proxy,"%RangeError%":vf,"%ReferenceError%":Sf,"%Reflect%":typeof Reflect>"u"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?g:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ue||!T?g:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ue&&T?T(""[Symbol.iterator]()):g,"%Symbol%":ue?Symbol:g,"%SyntaxError%":ce,"%ThrowTypeError%":If,"%TypedArray%":Of,"%TypeError%":pe,"%Uint8Array%":typeof Uint8Array>"u"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?g:Uint32Array,"%URIError%":hf,"%WeakMap%":typeof WeakMap>"u"?g:WeakMap,"%WeakRef%":typeof WeakRef>"u"?g:WeakRef,"%WeakSet%":typeof WeakSet>"u"?g:WeakSet,"%Function.prototype.call%":Pe,"%Function.prototype.apply%":Di,"%Object.defineProperty%":Pf,"%Object.getPrototypeOf%":kf,"%Math.abs%":bf,"%Math.floor%":xf,"%Math.max%":Ef,"%Math.min%":wf,"%Math.pow%":Tf,"%Math.round%":qf,"%Math.sign%":Af,"%Reflect.getPrototypeOf%":Cf};if(T)try{null.error}catch(r){Ri=T(T(r)),Q["%Error.prototype%"]=Ri}var Ri,$f=function r(e){var t;if(e==="%AsyncFunction%")t=et("async function () {}");else if(e==="%GeneratorFunction%")t=et("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=et("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=r("%AsyncGenerator%");o&&T&&(t=T(o.prototype))}return Q[e]=t,t},Li={__proto__:null,"%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"]},Ie=se(),or=J(),Ff=Ie.call(Pe,Array.prototype.concat),_f=Ie.call(Di,Array.prototype.splice),Mi=Ie.call(Pe,String.prototype.replace),ir=Ie.call(Pe,String.prototype.slice),Nf=Ie.call(Pe,RegExp.prototype.exec),Rf=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Lf=/\\(\\)?/g,Mf=function(e){var t=ir(e,0,1),n=ir(e,-1);if(t==="%"&&n!=="%")throw new ce("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new ce("invalid intrinsic syntax, expected opening `%`");var o=[];return Mi(e,Rf,function(i,a,u,c){o[o.length]=u?Mi(c,Lf,"$1"):a||i}),o},jf=function(e,t){var n=e,o;if(or(Li,n)&&(o=Li[n],n="%"+o[0]+"%"),or(Q,n)){var i=Q[n];if(i===le&&(i=$f(n)),typeof i>"u"&&!t)throw new pe("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new ce("intrinsic "+e+" does not exist!")};Vi.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new pe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new pe('"allowMissing" argument must be a boolean');if(Nf(/^%?[^%]*%?$/,e)===null)throw new ce("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Mf(e),o=n.length>0?n[0]:"",i=jf("%"+o+"%",t),a=i.name,u=i.value,c=!1,p=i.alias;p&&(o=p[0],_f(n,Ff([0,1],p)));for(var m=1,l=!0;m<n.length;m+=1){var f=n[m],d=ir(f,0,1),y=ir(f,-1);if((d==='"'||d==="'"||d==="`"||y==='"'||y==="'"||y==="`")&&d!==y)throw new ce("property names with quotes must have matching quotes");if((f==="constructor"||!l)&&(c=!0),o+="."+f,a="%"+o+"%",or(Q,a))u=Q[a];else if(u!=null){if(!(f in u)){if(!t)throw new pe("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ae&&m+1>=n.length){var S=Ae(u,f);l=!!S,l&&"get"in S&&!("originalValue"in S.get)?u=S.get:u=u[f]}else l=or(u,f),u=u[f];l&&!c&&(Q[a]=u)}}return u}});var Gi=s((Ox,Wi)=>{"use strict";var Df=k(),Ui=Ze(),Vf=Te()(),Bi=U(),Ji=v(),Uf=Df("%Math.floor%");Wi.exports=function(e,t){if(typeof e!="function")throw new Ji("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||Uf(t)!==t)throw new Ji("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in e&&Bi){var a=Bi(e,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!n)&&(Vf?Ui(e,"length",t,!0,!0):Ui(e,"length",t)),e}});var Hi=s(($x,Xi)=>{"use strict";var Bf=se(),Jf=nr(),Wf=Yr();Xi.exports=function(){return Wf(Bf,Jf,arguments)}});var ke=s((Fx,ar)=>{"use strict";var Gf=Gi(),zi=ne(),Xf=qe(),Ki=Hi();ar.exports=function(e){var t=Xf(arguments),n=1+e.length-(arguments.length-1);return Gf(t,n>0?n:0,!0)};zi?zi(ar.exports,"apply",{value:Ki}):ar.exports.apply=Ki});var tt=s((_x,Qi)=>{"use strict";var Hf=ae();Qi.exports=function(e){return(typeof e=="number"||typeof e=="bigint")&&!Hf(e)&&e!==1/0&&e!==-1/0}});var nt=s((Nx,Yi)=>{"use strict";var zf=Hr(),Kf=er(),Qf=ae(),Yf=tt();Yi.exports=function(e){if(typeof e!="number"||Qf(e)||!Yf(e))return!1;var t=zf(e);return Kf(t)===t}});var O=s((Rx,Zi)=>{"use strict";Zi.exports=function(e){return!!e&&(typeof e=="function"||typeof e=="object")}});var ra=s((Lx,ea)=>{"use strict";ea.exports=4294967295});var na=s((Mx,ta)=>{"use strict";ta.exports=typeof Reflect<"u"&&Reflect.setPrototypeOf||null});var ia=s((jx,oa)=>{"use strict";var Zf=ie();oa.exports=Zf.setPrototypeOf||null});var la=s((Dx,ua)=>{"use strict";var ed=qe(),aa=U(),rd=v(),sa={};try{sa.__proto__=null}catch(r){if(!r||typeof r!="object"||!("code"in r)||r.code!=="ERR_PROTO_ACCESS")throw r}var td=!("toString"in sa),ot=aa&&aa(Object.prototype,"__proto__");ua.exports=td&&(!!ot&&typeof ot.set=="function"&&ed([ot.set])||function(e,t){if(e==null)throw new rd("set Object.prototype.__proto__ called on null or undefined");return e.__proto__=t,t})});var da=s((Vx,fa)=>{"use strict";var pa=na(),nd=ia(),ca=la(),od=v();fa.exports=pa?function(e,t){if(pa(e,t))return e;throw new od("Reflect.setPrototypeOf: failed to set [[Prototype]]")}:nd||(ca?function(e,t){return ca(e,t),e}:null)});var va=s((Ux,ga)=>{"use strict";var id=k(),ma=id("%Array.prototype%"),ad=Xr(),sd=we(),ud=v(),ld=nt(),pd=ra(),ya=da();ga.exports=function(e){if(!ld(e)||e<0)throw new ud("Assertion failed: `length` must be an integer Number >= 0");if(e>pd)throw new ad("length is greater than (2**32 - 1)");var t=arguments.length>1?arguments[1]:ma,n=[];if(t!==ma){if(!ya)throw new sd("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");ya(n,t)}return e!==0&&(n.length=e),n}});var ha=s((Bx,Sa)=>{Sa.exports=require("util").inspect});var pr=s((Jx,ja)=>{var mt=typeof Map=="function"&&Map.prototype,it=Object.getOwnPropertyDescriptor&&mt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ur=mt&&it&&typeof it.get=="function"?it.get:null,ba=mt&&Map.prototype.forEach,yt=typeof Set=="function"&&Set.prototype,at=Object.getOwnPropertyDescriptor&&yt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,lr=yt&&at&&typeof at.get=="function"?at.get:null,xa=yt&&Set.prototype.forEach,cd=typeof WeakMap=="function"&&WeakMap.prototype,Oe=cd?WeakMap.prototype.has:null,fd=typeof WeakSet=="function"&&WeakSet.prototype,$e=fd?WeakSet.prototype.has:null,dd=typeof WeakRef=="function"&&WeakRef.prototype,Ea=dd?WeakRef.prototype.deref:null,md=Boolean.prototype.valueOf,yd=Object.prototype.toString,gd=Function.prototype.toString,vd=String.prototype.match,gt=String.prototype.slice,W=String.prototype.replace,Sd=String.prototype.toUpperCase,wa=String.prototype.toLowerCase,$a=RegExp.prototype.test,Ta=Array.prototype.concat,F=Array.prototype.join,hd=Array.prototype.slice,qa=Math.floor,lt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,st=Object.getOwnPropertySymbols,pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,fe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Fe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===fe||!0)?Symbol.toStringTag:null,Fa=Object.prototype.propertyIsEnumerable,Aa=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function Pa(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||$a.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-qa(-r):qa(r);if(n!==r){var o=String(n),i=gt.call(e,o.length+1);return W.call(o,t,"$&_")+"."+W.call(W.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return W.call(e,t,"$&_")}var ct=ha(),Ia=ct.custom,ka=Ra(Ia)?Ia:null,_a={__proto__:null,double:'"',single:"'"},bd={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};ja.exports=function r(e,t,n,o){var i=t||{};if(R(i,"quoteStyle")&&!R(_a,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(R(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=R(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(R(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(R(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Ma(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return u?Pa(e,c):c}if(typeof e=="bigint"){var p=String(e)+"n";return u?Pa(e,p):p}var m=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=m&&m>0&&typeof e=="object")return ft(e)?"[Array]":"[Object]";var l=Md(i,n);if(typeof o>"u")o=[];else if(La(o,e)>=0)return"[Circular]";function f(ee,Be,gc){if(Be&&(o=hd.call(o),o.push(Be)),gc){var Kn={depth:i.depth};return R(i,"quoteStyle")&&(Kn.quoteStyle=i.quoteStyle),r(ee,Kn,n+1,o)}return r(ee,i,n+1,o)}if(typeof e=="function"&&!Ca(e)){var d=kd(e),y=sr(e,f);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+F.call(y,", ")+" }":"")}if(Ra(e)){var S=fe?W.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):pt.call(e);return typeof e=="object"&&!fe?Ce(S):S}if(Nd(e)){for(var A="<"+wa.call(String(e.nodeName)),P=e.attributes||[],j=0;j<P.length;j++)A+=" "+P[j].name+"="+Na(xd(P[j].value),"double",i);return A+=">",e.childNodes&&e.childNodes.length&&(A+="..."),A+="</"+wa.call(String(e.nodeName))+">",A}if(ft(e)){if(e.length===0)return"[]";var w=sr(e,f);return l&&!Ld(w)?"["+dt(w,l)+"]":"[ "+F.call(w,", ")+" ]"}if(wd(e)){var I=sr(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!Fa.call(e,"cause")?"{ ["+String(e)+"] "+F.call(Ta.call("[cause]: "+f(e.cause),I),", ")+" }":I.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+F.call(I,", ")+" }"}if(typeof e=="object"&&a){if(ka&&typeof e[ka]=="function"&&ct)return ct(e,{depth:m-n});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Cd(e)){var Se=[];return ba&&ba.call(e,function(ee,Be){Se.push(f(Be,e,!0)+" => "+f(ee,e))}),Oa("Map",ur.call(e),Se,l)}if(Fd(e)){var Xn=[];return xa&&xa.call(e,function(ee){Xn.push(f(ee,e))}),Oa("Set",lr.call(e),Xn,l)}if(Od(e))return ut("WeakMap");if(_d(e))return ut("WeakSet");if($d(e))return ut("WeakRef");if(qd(e))return Ce(f(Number(e)));if(Pd(e))return Ce(f(lt.call(e)));if(Ad(e))return Ce(md.call(e));if(Td(e))return Ce(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!Ed(e)&&!Ca(e)){var $r=sr(e,f),Hn=Aa?Aa(e)===Object.prototype:e instanceof Object||e.constructor===Object,Fr=e instanceof Object?"":"null prototype",zn=!Hn&&Fe&&Object(e)===e&&Fe in e?gt.call(G(e),8,-1):Fr?"Object":"",yc=Hn||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",_r=yc+(zn||Fr?"["+F.call(Ta.call([],zn||[],Fr||[]),": ")+"] ":"");return $r.length===0?_r+"{}":l?_r+"{"+dt($r,l)+"}":_r+"{ "+F.call($r,", ")+" }"}return String(e)};function Na(r,e,t){var n=t.quoteStyle||e,o=_a[n];return o+r+o}function xd(r){return W.call(String(r),/"/g,"&quot;")}function Y(r){return!Fe||!(typeof r=="object"&&(Fe in r||typeof r[Fe]<"u"))}function ft(r){return G(r)==="[object Array]"&&Y(r)}function Ed(r){return G(r)==="[object Date]"&&Y(r)}function Ca(r){return G(r)==="[object RegExp]"&&Y(r)}function wd(r){return G(r)==="[object Error]"&&Y(r)}function Td(r){return G(r)==="[object String]"&&Y(r)}function qd(r){return G(r)==="[object Number]"&&Y(r)}function Ad(r){return G(r)==="[object Boolean]"&&Y(r)}function Ra(r){if(fe)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!pt)return!1;try{return pt.call(r),!0}catch{}return!1}function Pd(r){if(!r||typeof r!="object"||!lt)return!1;try{return lt.call(r),!0}catch{}return!1}var Id=Object.prototype.hasOwnProperty||function(r){return r in this};function R(r,e){return Id.call(r,e)}function G(r){return yd.call(r)}function kd(r){if(r.name)return r.name;var e=vd.call(gd.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function La(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function Cd(r){if(!ur||!r||typeof r!="object")return!1;try{ur.call(r);try{lr.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function Od(r){if(!Oe||!r||typeof r!="object")return!1;try{Oe.call(r,Oe);try{$e.call(r,$e)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function $d(r){if(!Ea||!r||typeof r!="object")return!1;try{return Ea.call(r),!0}catch{}return!1}function Fd(r){if(!lr||!r||typeof r!="object")return!1;try{lr.call(r);try{ur.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function _d(r){if(!$e||!r||typeof r!="object")return!1;try{$e.call(r,$e);try{Oe.call(r,Oe)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function Nd(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function Ma(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return Ma(gt.call(r,0,e.maxStringLength),e)+n}var o=bd[e.quoteStyle||"single"];o.lastIndex=0;var i=W.call(W.call(r,o,"\\$1"),/[\x00-\x1f]/g,Rd);return Na(i,"single",e)}function Rd(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+Sd.call(e.toString(16))}function Ce(r){return"Object("+r+")"}function ut(r){return r+" { ? }"}function Oa(r,e,t,n){var o=n?dt(t,n):F.call(t,", ");return r+" ("+e+") {"+o+"}"}function Ld(r){for(var e=0;e<r.length;e++)if(La(r[e],`
2
+ `)>=0)return!1;return!0}function Md(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=F.call(Array(r.indent+1)," ");else return null;return{base:t,prev:F.call(Array(e+1),t)}}function dt(r,e){if(r.length===0)return"";var t=`
3
+ `+e.prev+e.base;return t+F.call(r,","+t)+`
4
+ `+e.prev}function sr(r,e){var t=ft(r),n=[];if(t){n.length=r.length;for(var o=0;o<r.length;o++)n[o]=R(r,o)?e(r[o],r):""}var i=typeof st=="function"?st(r):[],a;if(fe){a={};for(var u=0;u<i.length;u++)a["$"+i[u]]=i[u]}for(var c in r)R(r,c)&&(t&&String(Number(c))===c&&c<r.length||fe&&a["$"+c]instanceof Symbol||($a.call(/[^\w$]/,c)?n.push(e(c,r)+": "+e(r[c],r)):n.push(c+": "+e(r[c],r))));if(typeof st=="function")for(var p=0;p<i.length;p++)Fa.call(r,i[p])&&n.push("["+e(i[p])+"]: "+e(r[i[p]],r));return n}});var X=s((Wx,Da)=>{"use strict";Da.exports=function(e){return typeof e=="string"||typeof e=="symbol"}});var _e=s((Gx,Ua)=>{"use strict";var Va=v(),jd=pr(),Dd=X(),Vd=O();Ua.exports=function(e,t){if(!Vd(e))throw new Va("Assertion failed: Type(O) is not Object");if(!Dd(t))throw new Va("Assertion failed: P is not a Property Key, got "+jd(t));return e[t]}});var C=s((Xx,Wa)=>{"use strict";var Ba=k(),Ja=qe(),Ud=Ja([Ba("%String.prototype.indexOf%")]);Wa.exports=function(e,t){var n=Ba(e,!!t);return typeof n=="function"&&Ud(e,".prototype.")>-1?Ja([n]):n}});var vt=s((Hx,Xa)=>{"use strict";var Bd=k(),Ga=Bd("%Array%"),Jd=!Ga.isArray&&C()("Object.prototype.toString");Xa.exports=Ga.isArray||function(e){return Jd(e)==="[object Array]"}});var cr=s((zx,Ha)=>{"use strict";Ha.exports=vt()});var Ka=s((Kx,za)=>{"use strict";za.exports=k()});var L=s((Qx,Qa)=>{"use strict";var Wd=v(),Ne=J(),Gd={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};Qa.exports=function(e){if(!e||typeof e!="object")return!1;for(var t in e)if(Ne(e,t)&&!Gd[t])return!1;var n=Ne(e,"[[Value]]")||Ne(e,"[[Writable]]"),o=Ne(e,"[[Get]]")||Ne(e,"[[Set]]");if(n&&o)throw new Wd("Property Descriptors may not be both accessor and data descriptors");return!0}});var St=s((Yx,es)=>{"use strict";var Xd=Te(),Ya=ne(),Za=Xd.hasArrayLengthDefineBug(),Hd=Za&&vt(),zd=C(),Kd=zd("Object.prototype.propertyIsEnumerable");es.exports=function(e,t,n,o,i,a){if(!Ya){if(!e(a)||!a["[[Configurable]]"]||!a["[[Writable]]"]||i in o&&Kd(o,i)!==!!a["[[Enumerable]]"])return!1;var u=a["[[Value]]"];return o[i]=u,t(o[i],u)}return Za&&i==="length"&&"[[Value]]"in a&&Hd(o)&&o.length!==a["[[Value]]"]?(o.length=a["[[Value]]"],o.length===a["[[Value]]"]):(Ya(o,i,n(a)),!0)}});var ts=s((Zx,rs)=>{"use strict";rs.exports=function(e){if(typeof e>"u")return e;var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=!!e["[[Configurable]]"]),t}});var ht=s((eE,ns)=>{"use strict";var Qd=v(),Yd=L(),Zd=ts();ns.exports=function(e){if(typeof e<"u"&&!Yd(e))throw new Qd("Assertion failed: `Desc` must be a Property Descriptor");return Zd(e)}});var fr=s((rE,is)=>{"use strict";var em=v(),os=J(),rm=L();is.exports=function(e){if(typeof e>"u")return!1;if(!rm(e))throw new em("Assertion failed: `Desc` must be a Property Descriptor");return!(!os(e,"[[Value]]")&&!os(e,"[[Writable]]"))}});var dr=s((tE,ss)=>{"use strict";var as=ae();ss.exports=function(e,t){return e===t?e===0?1/e===1/t:!0:as(e)&&as(t)}});var gr=s((nE,ps)=>{"use strict";var ls=Function.prototype.toString,de=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,xt,mr;if(typeof de=="function"&&typeof Object.defineProperty=="function")try{xt=Object.defineProperty({},"length",{get:function(){throw mr}}),mr={},de(function(){throw 42},null,xt)}catch(r){r!==mr&&(de=null)}else de=null;var tm=/^\s*class\b/,Et=function(e){try{var t=ls.call(e);return tm.test(t)}catch{return!1}},bt=function(e){try{return Et(e)?!1:(ls.call(e),!0)}catch{return!1}},yr=Object.prototype.toString,nm="[object Object]",om="[object Function]",im="[object GeneratorFunction]",am="[object HTMLAllCollection]",sm="[object HTML document.all class]",um="[object HTMLCollection]",lm=typeof Symbol=="function"&&!!Symbol.toStringTag,pm=!(0 in[,]),wt=function(){return!1};typeof document=="object"&&(us=document.all,yr.call(us)===yr.call(document.all)&&(wt=function(e){if((pm||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=yr.call(e);return(t===am||t===sm||t===um||t===nm)&&e("")==null}catch{}return!1}));var us;ps.exports=de?function(e){if(wt(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{de(e,null,xt)}catch(t){if(t!==mr)return!1}return!Et(e)&&bt(e)}:function(e){if(wt(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(lm)return bt(e);if(Et(e))return!1;var t=yr.call(e);return t!==om&&t!==im&&!/^\[object HTML/.test(t)?!1:bt(e)}});var fs=s((oE,cs)=>{"use strict";cs.exports=gr()});var ms=s((iE,ds)=>{"use strict";ds.exports=function(e){return!!e}});var qt=s((aE,gs)=>{"use strict";var _=J(),vr=v(),cm=O(),ys=fs(),Tt=ms();gs.exports=function(e){if(!cm(e))throw new vr("ToPropertyDescriptor requires an object");var t={};if(_(e,"enumerable")&&(t["[[Enumerable]]"]=Tt(e.enumerable)),_(e,"configurable")&&(t["[[Configurable]]"]=Tt(e.configurable)),_(e,"value")&&(t["[[Value]]"]=e.value),_(e,"writable")&&(t["[[Writable]]"]=Tt(e.writable)),_(e,"get")){var n=e.get;if(typeof n<"u"&&!ys(n))throw new vr("getter must be a function");t["[[Get]]"]=n}if(_(e,"set")){var o=e.set;if(typeof o<"u"&&!ys(o))throw new vr("setter must be a function");t["[[Set]]"]=o}if((_(t,"[[Get]]")||_(t,"[[Set]]"))&&(_(t,"[[Value]]")||_(t,"[[Writable]]")))throw new vr("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}});var hs=s((sE,Ss)=>{"use strict";var At=v(),fm=O(),vs=L(),dm=St(),mm=ht(),ym=fr(),gm=X(),vm=dr(),Sm=qt();Ss.exports=function(e,t,n){if(!fm(e))throw new At("Assertion failed: Type(O) is not Object");if(!gm(t))throw new At("Assertion failed: P is not a Property Key");var o=vs(n)?n:Sm(n);if(!vs(o))throw new At("Assertion failed: Desc is not a valid Property Descriptor");return dm(ym,vm,mm,e,t,o)}});var xs=s((uE,kt)=>{"use strict";var hm=Ka(),bs=hm("%Reflect.construct%",!0),Sr=hs();try{Sr({},"",{"[[Get]]":function(){}})}catch{Sr=null}Sr&&bs?(Pt={},It={},Sr(It,"length",{"[[Get]]":function(){throw Pt},"[[Enumerable]]":!0}),kt.exports=function(e){try{bs(e,It)}catch(t){return t===Pt}}):kt.exports=function(e){return typeof e=="function"&&!!e.prototype};var Pt,It});var Ps=s((lE,As)=>{"use strict";var bm=k(),Es=bm("%Symbol.species%",!0),ws=v(),xm=nt(),Em=O(),Ts=va(),qs=_e(),wm=cr(),Tm=xs();As.exports=function(e,t){if(!xm(t)||t<0)throw new ws("Assertion failed: length must be an integer >= 0");var n=wm(e);if(!n)return Ts(t);var o=qs(e,"constructor");if(Es&&Em(o)&&(o=qs(o,Es),o===null&&(o=void 0)),typeof o>"u")return Ts(t);if(!Tm(o))throw new ws("C must be a constructor");return new o(t)}});var Ct=s((pE,Is)=>{"use strict";Is.exports=Number.MAX_SAFE_INTEGER||9007199254740991});var Cs=s((cE,ks)=>{"use strict";var qm=k(),Am=C(),Pm=v(),Im=cr(),km=qm("%Reflect.apply%",!0)||Am("Function.prototype.apply");ks.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!Im(n))throw new Pm("Assertion failed: optional `argumentsList`, if provided, must be a List");return km(e,t,n)}});var hr=s((fE,$s)=>{"use strict";var Cm=v(),Os=J(),Om=L();$s.exports=function(e){if(typeof e>"u")return!1;if(!Om(e))throw new Cm("Assertion failed: `Desc` must be a Property Descriptor");return!(!Os(e,"[[Get]]")&&!Os(e,"[[Set]]"))}});var Ot=s((dE,Fs)=>{"use strict";Fs.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var Ls=s((mE,Rs)=>{"use strict";var Ns=k(),$m=Ns("%Object.preventExtensions%",!0),Fm=Ns("%Object.isExtensible%",!0),_s=Ot();Rs.exports=$m?function(e){return!_s(e)&&Fm(e)}:function(e){return!_s(e)}});var js=s((yE,Ms)=>{"use strict";var _m=L();Ms.exports=function(e,t){return _m(t)&&"[[Enumerable]]"in t&&"[[Configurable]]"in t&&(e.IsAccessorDescriptor(t)||e.IsDataDescriptor(t))}});var Vs=s((gE,Ds)=>{"use strict";var Nm=v(),Rm=hr(),Lm=fr(),Mm=L();Ds.exports=function(e){if(typeof e>"u")return!1;if(!Mm(e))throw new Nm("Assertion failed: `Desc` must be a Property Descriptor");return!Rm(e)&&!Lm(e)}});var Js=s((vE,Bs)=>{"use strict";var me=v(),jm=O(),Re=St(),Dm=js(),Us=L(),Le=ht(),Z=hr(),H=fr(),Vm=Vs(),Um=X(),N=dr();Bs.exports=function(e,t,n,o,i){if(typeof e<"u"&&!jm(e))throw new me("Assertion failed: O must be undefined or an Object");if(!Um(t))throw new me("Assertion failed: P must be a Property Key");if(typeof n!="boolean")throw new me("Assertion failed: extensible must be a Boolean");if(!Us(o))throw new me("Assertion failed: Desc must be a Property Descriptor");if(typeof i<"u"&&!Us(i))throw new me("Assertion failed: current must be a Property Descriptor, or undefined");if(typeof i>"u")return n?typeof e>"u"?!0:Z(o)?Re(H,N,Le,e,t,o):Re(H,N,Le,e,t,{"[[Configurable]]":!!o["[[Configurable]]"],"[[Enumerable]]":!!o["[[Enumerable]]"],"[[Value]]":o["[[Value]]"],"[[Writable]]":!!o["[[Writable]]"]}):!1;if(!Dm({IsAccessorDescriptor:Z,IsDataDescriptor:H},i))throw new me("`current`, when present, must be a fully populated and valid Property Descriptor");if(!i["[[Configurable]]"]){if("[[Configurable]]"in o&&o["[[Configurable]]"]||"[[Enumerable]]"in o&&!N(o["[[Enumerable]]"],i["[[Enumerable]]"])||!Vm(o)&&!N(Z(o),Z(i)))return!1;if(Z(i)){if("[[Get]]"in o&&!N(o["[[Get]]"],i["[[Get]]"])||"[[Set]]"in o&&!N(o["[[Set]]"],i["[[Set]]"]))return!1}else if(!i["[[Writable]]"]&&("[[Writable]]"in o&&o["[[Writable]]"]||"[[Value]]"in o&&!N(o["[[Value]]"],i["[[Value]]"])))return!1}if(typeof e<"u"){var a,u;return H(i)&&Z(o)?(a=("[[Configurable]]"in o?o:i)["[[Configurable]]"],u=("[[Enumerable]]"in o?o:i)["[[Enumerable]]"],Re(H,N,Le,e,t,{"[[Configurable]]":!!a,"[[Enumerable]]":!!u,"[[Get]]":("[[Get]]"in o?o:i)["[[Get]]"],"[[Set]]":("[[Set]]"in o?o:i)["[[Set]]"]})):Z(i)&&H(o)?(a=("[[Configurable]]"in o?o:i)["[[Configurable]]"],u=("[[Enumerable]]"in o?o:i)["[[Enumerable]]"],Re(H,N,Le,e,t,{"[[Configurable]]":!!a,"[[Enumerable]]":!!u,"[[Value]]":("[[Value]]"in o?o:i)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in o?o:i)["[[Writable]]"]})):Re(H,N,Le,e,t,o)}return!0}});var Hs=s((SE,Xs)=>{"use strict";var Ws=U(),Gs=we(),$t=v(),Bm=O(),Jm=L(),Wm=hr(),Gm=Ls(),Xm=X(),Hm=qt(),zm=dr(),Km=Js();Xs.exports=function(e,t,n){if(!Bm(e))throw new $t("Assertion failed: O must be an Object");if(!Xm(t))throw new $t("Assertion failed: P must be a Property Key");if(!Jm(n))throw new $t("Assertion failed: Desc must be a Property Descriptor");if(!Ws){if(Wm(n))throw new Gs("This environment does not support accessor property descriptors.");var o=!(t in e)&&n["[[Writable]]"]&&n["[[Enumerable]]"]&&n["[[Configurable]]"]&&"[[Value]]"in n,i=t in e&&(!("[[Configurable]]"in n)||n["[[Configurable]]"])&&(!("[[Enumerable]]"in n)||n["[[Enumerable]]"])&&(!("[[Writable]]"in n)||n["[[Writable]]"])&&"[[Value]]"in n;if(o||i)return e[t]=n["[[Value]]"],zm(e[t],n["[[Value]]"]);throw new Gs("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var a=Ws(e,t),u=a&&Hm(a),c=Gm(e);return Km(e,t,c,n,u)}});var Qs=s((hE,Ks)=>{"use strict";var zs=v(),Qm=O(),Ym=X(),Zm=Hs();Ks.exports=function(e,t,n){if(!Qm(e))throw new zs("Assertion failed: Type(O) is not Object");if(!Ym(t))throw new zs("Assertion failed: P is not a Property Key");var o={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":n,"[[Writable]]":!0};return Zm(e,t,o)}});var Zs=s((bE,Ys)=>{"use strict";var Ft=v(),ey=O(),ry=Qs(),ty=X();Ys.exports=function(e,t,n){if(!ey(e))throw new Ft("Assertion failed: Type(O) is not Object");if(!ty(t))throw new Ft("Assertion failed: P is not a Property Key");var o=ry(e,t,n);if(!o)throw new Ft("unable to create data property")}});var tu=s((xE,ru)=>{"use strict";var eu=v(),ny=O(),oy=X();ru.exports=function(e,t){if(!ny(e))throw new eu("Assertion failed: `O` must be an Object");if(!oy(t))throw new eu("Assertion failed: `P` must be a Property Key");return t in e}});var _t=s((EE,nu)=>{"use strict";var iy=rr();nu.exports=function(){return iy()&&!!Symbol.toStringTag}});var au=s((wE,iu)=>{"use strict";var ou=C(),ay=ou("Date.prototype.getDay"),sy=function(e){try{return ay(e),!0}catch{return!1}},uy=ou("Object.prototype.toString"),ly="[object Date]",py=_t()();iu.exports=function(e){return typeof e!="object"||e===null?!1:py?sy(e):uy(e)===ly}});var fu=s((TE,cu)=>{"use strict";var su=C(),cy=_t()(),fy=J(),dy=U(),Lt;cy?(uu=su("RegExp.prototype.exec"),Nt={},br=function(){throw Nt},Rt={toString:br,valueOf:br},typeof Symbol.toPrimitive=="symbol"&&(Rt[Symbol.toPrimitive]=br),Lt=function(e){if(!e||typeof e!="object")return!1;var t=dy(e,"lastIndex"),n=t&&fy(t,"value");if(!n)return!1;try{uu(e,Rt)}catch(o){return o===Nt}}):(lu=su("Object.prototype.toString"),pu="[object RegExp]",Lt=function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:lu(e)===pu});var uu,Nt,br,Rt,lu,pu;cu.exports=Lt});var xr=s((qE,du)=>{"use strict";var my=C(),yy=fu(),gy=my("RegExp.prototype.exec"),vy=v();du.exports=function(e){if(!yy(e))throw new vy("`regex` must be a RegExp");return function(n){return gy(e,n)!==null}}});var Su=s((AE,Mt)=>{"use strict";var vu=C(),Sy=vu("Object.prototype.toString"),hy=zr()(),by=xr();hy?(mu=vu("Symbol.prototype.toString"),yu=by(/^Symbol\(.*\)$/),gu=function(e){return typeof e.valueOf()!="symbol"?!1:yu(mu(e))},Mt.exports=function(e){if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||Sy(e)!=="[object Symbol]")return!1;try{return gu(e)}catch{return!1}}):Mt.exports=function(e){return!1};var mu,yu,gu});var bu=s((PE,hu)=>{"use strict";hu.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var jt=s((IE,xu)=>{"use strict";xu.exports=function(e){return typeof e=="string"||typeof e=="symbol"}});var wu=s((kE,Eu)=>{"use strict";var xy=v(),Ey=pr(),wy=jt();Eu.exports=function(e,t){if(!wy(t))throw new xy("Assertion failed: P is not a Property Key, got "+Ey(t));return e[t]}});var Pu=s((CE,Au)=>{"use strict";var Tu=v(),Ty=gr(),qu=pr(),qy=wu(),Ay=jt();Au.exports=function(e,t){if(!Ay(t))throw new Tu("Assertion failed: P is not a Property Key");var n=qy(e,t);if(n!=null){if(!Ty(n))throw new Tu(qu(t)+" is not a function: "+qu(n));return n}}});var Cu=s((OE,ku)=>{"use strict";var Py=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",Iy=gr(),ky=au(),Iu=Su(),Er=v(),Dt=bu();function Cy(r,e){if(typeof r>"u"||r===null)throw new Er("Cannot call method on "+r);if(typeof e!="string"||e!=="number"&&e!=="string")throw new Er('hint must be "string" or "number"');var t=e==="string"?["toString","valueOf"]:["valueOf","toString"],n,o,i;for(i=0;i<t.length;++i)if(n=r[t[i]],Iy(n)&&(o=n.call(r),Dt(o)))return o;throw new Er("No default value")}var Oy=Pu();ku.exports=function(e){if(Dt(e))return e;var t="default";arguments.length>1&&(arguments[1]===String?t="string":arguments[1]===Number&&(t="number"));var n;if(Py&&(Symbol.toPrimitive?n=Oy(e,Symbol.toPrimitive):Iu(e)&&(n=Symbol.prototype.valueOf)),typeof n<"u"){var o=n.call(e,t);if(Dt(o))return o;throw new Er("unable to convert exotic object to primitive")}return t==="default"&&(ky(e)||Iu(e))&&(t="string"),Cy(e,t==="default"?"number":t)}});var Fu=s(($E,$u)=>{"use strict";var Ou=Cu();$u.exports=function(e){return arguments.length>1?Ou(e,arguments[1]):Ou(e)}});var Me=s((FE,_u)=>{"use strict";var $y=v();_u.exports=function(e){if(e==null)throw new $y(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}});var Ru=s((_E,Nu)=>{"use strict";var Fy=k(),_y=Fy("%String%"),Ny=v();Nu.exports=function(e){if(typeof e=="symbol")throw new Ny("Cannot convert a Symbol value to a string");return _y(e)}});var Ut=s((NE,Mu)=>{"use strict";var Ry=Me(),Ly=Ru(),Vt=C(),My=xr(),jy=Vt("String.prototype.replace"),Dy=Vt("String.prototype.charAt"),Vy=Vt("String.prototype.slice"),Lu=/^\s$/.test("\u180E"),Uy=Lu?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,By=My(Lu?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]$/);Mu.exports=function(){for(var e=jy(Ly(Ry(this)),Uy,""),t=e.length;t>0&&By(Dy(e,t-1));)t-=1;return Vy(e,0,t)}});var Bt=s((RE,Du)=>{"use strict";var Jy=Ut(),ju="\u200B",ye="\u180E";Du.exports=function(){return String.prototype.trim&&ju.trim()===ju&&ye.trim()===ye&&("_"+ye).trim()==="_"+ye&&(ye+"_").trim()===ye+"_"?String.prototype.trim:Jy}});var Bu=s((LE,Uu)=>{"use strict";var Wy=Te()(),Vu=Ze(),Gy=Bt();Uu.exports=function(){var e=Gy();return String.prototype.trim!==e&&(Wy?Vu(String.prototype,"trim",e,!0):Vu(String.prototype,"trim",e)),e}});var Xu=s((ME,Gu)=>{"use strict";var Xy=ke(),Hy=B(),zy=Me(),Ky=Ut(),Ju=Bt(),Qy=Bu(),Yy=Xy(Ju()),Wu=function(e){return zy(e),Yy(e)};Hy(Wu,{getPolyfill:Ju,implementation:Ky,shim:Qy});Gu.exports=Wu});var Yu=s((jE,Qu)=>{"use strict";var Ku=k(),Zy=Ku("%RegExp%"),eg=v(),Hu=Ku("%parseInt%"),rg=C(),wr=xr(),zu=rg("String.prototype.slice"),tg=wr(/^0b[01]+$/i),ng=wr(/^0o[0-7]+$/i),og=wr(/^[-+]0x[0-9a-f]+$/i),ig=["\x85","\u200B","\uFFFE"].join(""),ag=new Zy("["+ig+"]","g"),sg=wr(ag),ug=Xu();Qu.exports=function r(e){if(typeof e!="string")throw new eg("Assertion failed: `argument` is not a String");if(tg(e))return+Hu(zu(e,2),2);if(ng(e))return+Hu(zu(e,2),8);if(sg(e)||og(e))return NaN;var t=ug(e);return t!==e?r(t):+e}});var rl=s((DE,el)=>{"use strict";var lg=k(),Zu=v(),pg=lg("%Number%"),cg=Ot(),fg=Fu(),dg=Yu();el.exports=function(e){var t=cg(e)?e:fg(e,pg);if(typeof t=="symbol")throw new Zu("Cannot convert a Symbol value to a number");if(typeof t=="bigint")throw new Zu("Conversion from 'BigInt' to 'number' is not allowed.");return typeof t=="string"?dg(t):+t}});var nl=s((VE,tl)=>{"use strict";var mg=er();tl.exports=function(e){return typeof e=="bigint"?e:mg(e)}});var al=s((UE,il)=>{"use strict";var ol=nl(),yg=v();il.exports=function(e){if(typeof e!="number"&&typeof e!="bigint")throw new yg("argument must be a Number or a BigInt");var t=e<0?-ol(-e):ol(e);return t===0?0:t}});var Jt=s((BE,sl)=>{"use strict";var gg=rl(),vg=al(),Sg=ae(),hg=tt();sl.exports=function(e){var t=gg(e);return Sg(t)||t===0?0:hg(t)?vg(t):t}});var Wt=s((JE,ll)=>{"use strict";var ul=Ct(),bg=Jt();ll.exports=function(e){var t=bg(e);return t<=0?0:t>ul?ul:t}});var cl=s((WE,pl)=>{"use strict";var xg=v(),Eg=O(),wg=_e(),Tg=Wt();pl.exports=function(e){if(!Eg(e))throw new xg("Assertion failed: `obj` must be an Object");return Tg(wg(e,"length"))}});var dl=s((GE,fl)=>{"use strict";var qg=k(),Ag=qg("%String%"),Pg=v();fl.exports=function(e){if(typeof e=="symbol")throw new Pg("Cannot convert a Symbol value to a string");return Ag(e)}});var vl=s((XE,gl)=>{"use strict";var ml=v(),Ig=Ct(),kg=Cs(),Cg=Zs(),Og=_e(),$g=tu(),Fg=cr(),_g=cl(),yl=dl();gl.exports=function r(e,t,n,o,i){var a;arguments.length>5&&(a=arguments[5]);for(var u=o,c=0;c<n;){var p=yl(c),m=$g(t,p);if(m===!0){var l=Og(t,p);if(typeof a<"u"){if(arguments.length<=6)throw new ml("Assertion failed: thisArg is required when mapperFunction is provided");l=kg(a,arguments[6],[l,c,t])}var f=!1;if(i>0&&(f=Fg(l)),f){var d=_g(l);u=r(e,l,d,u,i-1)}else{if(u>=Ig)throw new ml("index too large");Cg(e,yl(u),l),u+=1}}c+=1}return u}});var hl=s((HE,Sl)=>{"use strict";var Ng=ie(),Rg=Me();Sl.exports=function(e){return Rg(e),Ng(e)}});var xl=s((zE,bl)=>{"use strict";bl.exports=hl()});var Gt=s((KE,El)=>{"use strict";var Lg=Ps(),Mg=vl(),jg=_e(),Dg=Jt(),Vg=Wt(),Ug=xl();El.exports=function(){var e=Ug(this),t=Vg(jg(e,"length")),n=1;arguments.length>0&&typeof arguments[0]<"u"&&(n=Dg(arguments[0]));var o=Lg(e,0);return Mg(o,e,t,0,n),o}});var Xt=s((QE,wl)=>{"use strict";var Bg=Gt();wl.exports=function(){return Array.prototype.flat||Bg}});var Il=s((YE,Pl)=>{"use strict";var Jg=J(),Al=typeof Symbol=="function"&&typeof Symbol.unscopables=="symbol",Tl=Al&&Array.prototype[Symbol.unscopables],ql=TypeError;Pl.exports=function(e){if(typeof e!="string"||!e)throw new ql("method must be a non-empty string");if(!Jg(Array.prototype,e))throw new ql("method must be on Array.prototype");Al&&Tl&&(Tl[e]=!0)}});var Cl=s((ZE,kl)=>{"use strict";var Wg=B(),Gg=Il(),Xg=Xt();kl.exports=function(){var e=Xg();return Wg(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),Gg("flat"),e}});var _l=s((ew,Fl)=>{"use strict";var Hg=B(),zg=ke(),Kg=Gt(),Ol=Xt(),Qg=Ol(),Yg=Cl(),$l=zg(Qg);Hg($l,{getPolyfill:Ol,implementation:Kg,shim:Yg});Fl.exports=$l});var Ht=s((rw,Nl)=>{"use strict";var Zg=Me(),ev=C(),rv=ev("Object.prototype.propertyIsEnumerable");Nl.exports=function(e){var t=Zg(e),n=[];for(var o in t)rv(t,o)&&(n[n.length]=t[o]);return n}});var zt=s((tw,Rl)=>{"use strict";var tv=Ht();Rl.exports=function(){return typeof Object.values=="function"?Object.values:tv}});var Ml=s((nw,Ll)=>{"use strict";var nv=zt(),ov=B();Ll.exports=function(){var e=nv();return ov(Object,{values:e},{values:function(){return Object.values!==e}}),e}});var Ul=s((ow,Vl)=>{"use strict";var iv=B(),av=ke(),sv=Ht(),jl=zt(),uv=Ml(),Dl=av(jl(),Object);iv(Dl,{getPolyfill:jl,implementation:sv,shim:uv});Vl.exports=Dl});var Wl=s(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.eventHandlersByType=void 0;var lv=_l(),pv=Bl(lv),cv=Ul(),fv=Bl(cv);function Bl(r){return r&&r.__esModule?r:{default:r}}var Jl={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"]};je.default=(0,pv.default)((0,fv.default)(Jl));je.eventHandlersByType=Jl});var Xl=s(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});var dv=(function(){function r(e,t){var n=[],o=!0,i=!1,a=void 0;try{for(var u=e[Symbol.iterator](),c;!(o=(c=u.next()).done)&&(n.push(c.value),!(t&&n.length===t));o=!0);}catch(p){i=!0,a=p}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}return n}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),ge=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r};Qt.default=Sv;var mv=He(),yv=gv(mv);function gv(r){return r&&r.__esModule?r:{default:r}}function Gl(r,e){var t={};for(var n in r)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t}var vv={ignoreCase:!0};function Sv(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vv;function n(u){return t.ignoreCase?u.toUpperCase():u}var o=n(e);function i(u){return u.type==="Property"&&u.key.type==="Identifier"&&o===n(u.key.name)}var a=r.find(function(u){return u.type==="JSXSpreadAttribute"?u.argument.type==="ObjectExpression"&&o!==n("key")&&u.argument.properties.some(i):o===n((0,yv.default)(u))});return a&&a.type==="JSXSpreadAttribute"?hv(a.argument.properties.find(i)):a}function hv(r){var e=r.key,t=r.value;return ge({type:"JSXAttribute",name:ge({type:"JSXIdentifier",name:e.name},Kt(e)),value:t.type==="Literal"?De(t):ge({type:"JSXExpressionContainer",expression:bv(t)},Kt(t))},Kt(r))}function De(r){var e=r.range||[r.start,r.end],t=dv(e,2),n=t[0],o=t[1];return ge({},r,{end:void 0,range:[n,o],start:void 0})}function bv(r){var e=r.expressions,t=r.quasis,n=Gl(r,["expressions","quasis"]);return ge({},De(n),e?{expressions:e.map(De)}:{},t?{quasis:t.map(De)}:{})}function Kt(r){var e=r.loc,t=Gl(r,["loc"]),n=De(t),o=n.range;return{loc:xv(e),range:o}}function xv(r){var e=r.start,t=r.end,n=r.source,o=r.filename;return ge({start:e,end:t},n!==void 0?{source:n}:{},o!==void 0?{filename:o}:{})}});var Zt=s(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.default=Ev;function Ev(r){var e=r.value,t=typeof e=="string"&&e.toLowerCase();return t==="true"?!0:t==="false"?!1:e}});var rn=s(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.default=wv;function wv(r){var e=Tr().default,t=r.openingElement.name.name;return r.openingElement.selfClosing?"<"+t+" />":"<"+t+">"+[].concat(r.children).map(function(n){return e(n)}).join("")+"</"+t+">"}});var nn=s(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.default=Tv;function Tv(r){return r.raw}});var an=s(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.default=qv;function qv(r){var e=Tr().default;return r.children.length===0?"<></>":"<>"+[].concat(r.children).map(function(t){return e(t)}).join("")+"</>"}});var zl=s(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.default=Av;var Hl={Array,Date,Infinity:1/0,Math,Number,Object,String,undefined:void 0};function Av(r){var e=r.name;return Object.hasOwnProperty.call(Hl,e)?Hl[e]:e}});var ln=s(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.default=Iv;function Pv(r,e){return(r.range?r.range[0]:r.start)-(e.range?e.range[0]:e.start)}function Iv(r){var e=r.quasis,t=r.expressions,n=e.concat(t);return n.sort(Pv).map(function(o){var i=o.type,a=o.value;a=a===void 0?{}:a;var u=a.raw,c=o.name;return i==="TemplateElement"?u:i==="Identifier"?c==="undefined"?c:"{"+c+"}":i.indexOf("Expression")>-1?"{"+i+"}":""}).join("")}});var Kl=s(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.default=$v;var kv=ln(),Cv=Ov(kv);function Ov(r){return r&&r.__esModule?r:{default:r}}function $v(r){return(0,Cv.default)(r.quasi)}});var Ql=s(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.default=Fv;function Fv(r){return function(){return r}}});var Yl=s(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.default=_v;function _v(r){var e=q().default,t=r.operator,n=r.left,o=r.right,i=e(n),a=e(o);return t==="&&"?i&&a:t==="??"?i===null||typeof i>"u"?a:i:i||a}});var Zl=s(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.default=Nv;function Nv(r){var e=q().default;return""+e(r.object)+(r.optional?"?.":".")+e(r.property)}});var ep=s(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.default=Rv;function Rv(r){var e=q().default;return e(r.expression||r)}});var rp=s(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.default=Lv;function Lv(r){var e=q().default;return e(r.callee)+"?.("+r.arguments.map(function(t){return e(t)}).join(", ")+")"}});var tp=s(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.default=Mv;function Mv(r){var e=q().default;return e(r.object)+"?."+e(r.property)}});var Sn=s(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.default=jv;function jv(r){var e=q().default,t=Array.isArray(r.arguments)?r.arguments.map(function(n){return e(n)}).join(", "):"";return""+e(r.callee)+(r.optional?"?.":"")+"("+t+")"}});var np=s(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.default=Dv;function Dv(r){var e=q().default,t=r.operator,n=r.argument;switch(t){case"-":return-e(n);case"+":return+e(n);case"!":return!e(n);case"~":return~e(n);case"delete":return!0;default:return}}});var xn=s(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.default=Vv;function Vv(){return"this"}});var op=s(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.default=Uv;function Uv(r){var e=q().default,t=r.test,n=r.alternate,o=r.consequent;return e(t)?e(o):e(n)}});var ip=s(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.default=Bv;function Bv(r){var e=q().default,t=r.operator,n=r.left,o=r.right,i=e(n),a=e(o);switch(t){case"==":return i==a;case"!=":return i!=a;case"===":return i===a;case"!==":return i!==a;case"<":return i<a;case"<=":return i<=a;case">":return i>a;case">=":return i>=a;case"<<":return i<<a;case">>":return i>>a;case">>>":return i>>>a;case"+":return i+a;case"-":return i-a;case"*":return i*a;case"/":return i/a;case"%":return i%a;case"|":return i|a;case"^":return i^a;case"&":return i&a;case"in":try{return i in a}catch{return!1}case"instanceof":return typeof a!="function"?!1:i instanceof a;default:return}}});var Tn=s((qw,lp)=>{"use strict";var Jv=Wr(),sp=rr()(),up=C(),qr=ie(),Wv=up("Array.prototype.push"),ap=up("Object.prototype.propertyIsEnumerable"),Gv=sp?qr.getOwnPropertySymbols:null;lp.exports=function(e,t){if(e==null)throw new TypeError("target must be an object");var n=qr(e);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var i=qr(arguments[o]),a=Jv(i),u=sp&&(qr.getOwnPropertySymbols||Gv);if(u)for(var c=u(i),p=0;p<c.length;++p){var m=c[p];ap(i,m)&&Wv(a,m)}for(var l=0;l<a.length;++l){var f=a[l];if(ap(i,f)){var d=i[f];n[f]=d}}}return n}});var An=s((Aw,pp)=>{"use strict";var qn=Tn(),Xv=function(){if(!Object.assign)return!1;for(var r="abcdefghijklmnopqrst",e=r.split(""),t={},n=0;n<e.length;++n)t[e[n]]=e[n];var o=Object.assign({},t),i="";for(var a in o)i+=a;return r!==i},Hv=function(){if(!Object.assign||!Object.preventExtensions)return!1;var r=Object.preventExtensions({1:2});try{Object.assign(r,"xy")}catch{return r[1]==="y"}return!1};pp.exports=function(){return!Object.assign||Xv()||Hv()?qn:Object.assign}});var fp=s((Pw,cp)=>{"use strict";var zv=B(),Kv=An();cp.exports=function(){var e=Kv();return zv(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}});var gp=s((Iw,yp)=>{"use strict";var Qv=B(),Yv=ke(),Zv=Tn(),dp=An(),eS=fp(),rS=Yv.apply(dp()),mp=function(e,t){return rS(Object,arguments)};Qv(mp,{getPolyfill:dp,implementation:Zv,shim:eS});yp.exports=mp});var hp=s(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.default=Sp;var tS=gp(),vp=nS(tS);function nS(r){return r&&r.__esModule?r:{default:r}}function oS(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Sp(r){var e=q().default;return r.properties.reduce(function(t,n){if(/^(?:Experimental)?Spread(?:Property|Element)$/.test(n.type)){if(n.argument.type==="ObjectExpression")return(0,vp.default)({},t,Sp(n.argument))}else return(0,vp.default)({},t,oS({},e(n.key),e(n.value)));return t},{})}});var bp=s(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.default=iS;function iS(){return new Object}});var xp=s(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.default=aS;function aS(r){var e=q().default,t=r.operator,n=r.argument,o=r.prefix,i=e(n);switch(t){case"++":return o?++i:i++;case"--":return o?--i:i--;default:return}}});var Ep=s(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.default=sS;function sS(r){var e=q().default;return r.elements.map(function(t){if(t!==null)return e(t)})}});var wp=s(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.default=uS;function uS(r){var e=q().default,t=e(r.callee),n=r.object===null?e(r.callee.object):e(r.object);return r.object&&r.object.property?n+"."+t+".bind("+n+")":t+".bind("+n+")"}});var Tp=s($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.default=lS;function lS(){}});var qp=s(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.default=pS;function pS(r){var e=q().default;return e(r.expression)}});var Ap=s(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.default=cS;function cS(r){var e=q().default;return r.expressions.map(function(t){return e(t)})}});var Ip=s(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.default=z;var fS=xn().default,dS=Sn().default;function Pp(r,e,t){return t.computed?t.optional?r+"?.["+e+"]":r+"["+e+"]":t.optional?r+"?."+e:r+"."+e}function z(r){var e="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(r.type==="Identifier"){var t=r.name;return t}if(r.type==="Literal")return r.value;if(r.type==="TSAsExpression")return z(r.expression);if(r.type==="CallExpression")return dS(r);if(r.type==="ThisExpression")return fS();if(r.type==="TSNonNullExpression"&&(!r.extra||r.extra.parenthesized===!1)){var n=r.expression;return z(n)+"!"}if(r.type==="TSNonNullExpression"&&r.extra&&r.extra.parenthesized===!0){var o=r.expression;return"("+z(o)+"!)"}if(r.type==="MemberExpression"){if(!r.extra||r.extra.parenthesized===!1)return Pp(z(r.object),z(r.property),r);if(r.extra&&r.extra.parenthesized===!0){var i=Pp(z(r.object),z(r.property),r);return"("+i+")"}}if(r.expression)for(var a=r.expression;a;){if(a.type==="Identifier")return console.error(e),a.name;var u=a;a=u.expression}return console.error(e),""}});var kp=s(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.default=mS;function mS(r){var e=q().default;return e(r.left)+" "+r.operator+" "+e(r.right)}});var q=s(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});var yS=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r};Ar.default=vh;Ar.extractLiteral=Sh;var gS=Zt(),vS=b(gS),SS=rn(),hS=b(SS),bS=an(),xS=b(bS),ES=nn(),wS=b(ES),TS=zl(),qS=b(TS),AS=Kl(),PS=b(AS),IS=ln(),kS=b(IS),CS=Ql(),Cp=b(CS),OS=Yl(),$S=b(OS),FS=Zl(),_S=b(FS),NS=ep(),RS=b(NS),LS=rp(),MS=b(LS),jS=tp(),DS=b(jS),VS=Sn(),US=b(VS),BS=np(),JS=b(BS),WS=xn(),GS=b(WS),XS=op(),HS=b(XS),zS=ip(),KS=b(zS),QS=hp(),YS=b(QS),ZS=bp(),eh=b(ZS),rh=xp(),th=b(rh),nh=Ep(),oh=b(nh),ih=wp(),ah=b(ih),sh=Tp(),uh=b(sh),lh=qp(),ph=b(lh),ch=Ap(),fh=b(ch),dh=Ip(),mh=b(dh),yh=kp(),gh=b(yh);function b(r){return r&&r.__esModule?r:{default:r}}var K={Identifier:qS.default,Literal:vS.default,JSXElement:hS.default,JSXFragment:xS.default,JSXText:wS.default,TaggedTemplateExpression:PS.default,TemplateLiteral:kS.default,ArrowFunctionExpression:Cp.default,FunctionExpression:Cp.default,LogicalExpression:$S.default,MemberExpression:_S.default,ChainExpression:RS.default,OptionalCallExpression:MS.default,OptionalMemberExpression:DS.default,CallExpression:US.default,UnaryExpression:JS.default,ThisExpression:GS.default,ConditionalExpression:HS.default,BinaryExpression:KS.default,ObjectExpression:YS.default,NewExpression:eh.default,UpdateExpression:th.default,ArrayExpression:oh.default,BindExpression:ah.default,SpreadElement:uh.default,TypeCastExpression:ph.default,SequenceExpression:fh.default,TSNonNullExpression:mh.default,AssignmentExpression:gh.default},x=function(){return null},$p=function(e){return"The prop value with an expression type of "+e+" could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately."};function vh(r){var e=void 0;typeof r.expression!="boolean"&&r.expression?e=r.expression:e=r;var t=e,n=t.type;for(e.object&&e.object.type==="TSNonNullExpression"&&(n="TSNonNullExpression");n==="TSAsExpression";){var o=e;if(n=o.type,e.expression){var i=e;e=i.expression}}return K[n]===void 0?(console.error($p(n)),null):K[n](e)}var Op=yS({},K,{Literal:function(e){var t=K.Literal.call(void 0,e),n=t===null;return n?"null":t},Identifier:function(e){var t=K.Identifier.call(void 0,e)===void 0;return t?void 0:null},JSXElement:x,JSXFragment:x,JSXText:x,ArrowFunctionExpression:x,FunctionExpression:x,LogicalExpression:x,MemberExpression:x,OptionalCallExpression:x,OptionalMemberExpression:x,CallExpression:x,UnaryExpression:function(e){var t=K.UnaryExpression.call(void 0,e);return t===void 0?null:t},UpdateExpression:function(e){var t=K.UpdateExpression.call(void 0,e);return t===void 0?null:t},ThisExpression:x,ConditionalExpression:x,BinaryExpression:x,ObjectExpression:x,NewExpression:x,ArrayExpression:function(e){var t=K.ArrayExpression.call(void 0,e);return t.filter(function(n){return n!==null})},BindExpression:x,SpreadElement:x,TSNonNullExpression:x,TSAsExpression:x,TypeCastExpression:x,SequenceExpression:x,ChainExpression:x});function Sh(r){var e=r.expression||r,t=e.type;return Op[t]===void 0?(console.error($p(t)),null):Op[t](e)}});var Tr=s(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});var hh=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r};Pr.default=Ch;Pr.getLiteralValue=Oh;var bh=Zt(),xh=Ve(bh),Eh=rn(),wh=Ve(Eh),Th=nn(),qh=Ve(Th),Ah=an(),Ph=Ve(Ah),Fp=q(),Ih=Ve(Fp);function Ve(r){return r&&r.__esModule?r:{default:r}}var Ln={Literal:xh.default,JSXElement:wh.default,JSXExpressionContainer:Ih.default,JSXText:qh.default,JSXFragment:Ph.default},kh=hh({},Ln,{JSXElement:function(){return null},JSXExpressionContainer:Fp.extractLiteral});function Ch(r){return Ln[r.type]||console.log(r.type),Ln[r.type](r)}function Oh(r){return kh[r.type](r)}});var Rp=s(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.default=_h;Ir.getLiteralPropValue=Nh;var _p=Tr(),$h=Fh(_p);function Fh(r){return r&&r.__esModule?r:{default:r}}var Np=function(e,t){if(e&&e.type==="JSXAttribute")return e.value===null?!0:t(e.value)};function _h(r){return Np(r,$h.default)}function Nh(r){return Np(r,_p.getLiteralValue)}});var kr=s((Uw,jp)=>{"use strict";var Mn=so(),Rh=ve(Mn),Lh=lo(),Mh=ve(Lh),Lp=Wl(),jh=ve(Lp),Dh=Xl(),Vh=ve(Dh),Mp=Rp(),Uh=ve(Mp),Bh=He(),Jh=ve(Bh);function ve(r){return r&&r.__esModule?r:{default:r}}jp.exports={hasProp:Rh.default,hasAnyProp:Mn.hasAnyProp,hasEveryProp:Mn.hasEveryProp,elementType:Mh.default,eventHandlers:jh.default,eventHandlersByType:Lp.eventHandlersByType,getProp:Vh.default,getPropValue:Uh.default,getLiteralPropValue:Mp.getLiteralPropValue,propName:Jh.default}});var kb={};Ec(kb,{configs:()=>Ab,qwikEslint9Plugin:()=>dc,rules:()=>pc});module.exports=wc(kb);var to=require("@typescript-eslint/utils");var Tc=["@qwik.dev/core","@qwik.dev/router","@builder.io/qwik","@builder.io/qwik-city"];function D(r){return r.sourceCode.getAllComments().some(e=>e.value.includes("@jsxImportSource"))}function Yn(r){return!!r&&typeof r=="object"&&typeof r.type=="string"}function Zn(r,e){for(let[t,n]of Object.entries(r))if(!(t==="parent"||t==="range"||t==="loc")){if(Array.isArray(n)){for(let o of n)if(Yn(o)&&e(o))return!0;continue}if(Yn(n)&&e(n))return!0}return!1}function te(r,e){return e(r)?!0:Zn(r,t=>te(t,e))}function Nr(r,e,t=null){return e(r,t)?!0:Zn(r,n=>Nr(n,e,r))}function We(r,e){let t=r.parent;for(;t;){if(t===e)return!0;t=t.parent}return!1}function V(r,e){let t=r.sourceCode.getScope(e),n=t.references.find(i=>i.identifier===e);if(n?.resolved)return n.resolved;let o=t;for(;o;){let i=o.variables.find(a=>a.name===e.name);if(i)return i;o=o.upper}return null}function Ge(r){return!!r?.defs.some(e=>{if(e.type!=="ImportBinding")return!1;let t=e.parent.source.value;return typeof t=="string"&&Tc.some(n=>t.startsWith(n))})}function eo(r,e){return e?.type==="Identifier"&&e.name.endsWith("$")&&Ge(V(r,e))}function qc(r){let e=r.type==="JSXAttribute"?r.name:r.key;return e.type==="Identifier"||e.type==="JSXIdentifier"?e.name:e.type==="Literal"?String(e.value):null}function Rr(r,e){return r.properties.find(t=>t.type==="Property"&&!t.computed&&qc(t)===e)}function Xe(r){return r?.type==="ArrowFunctionExpression"||r?.type==="FunctionExpression"}function Lr(r,e){return r.find(t=>t.type==="JSXAttribute"&&t.name.type==="JSXIdentifier"&&t.name.name===e)}function he(r,e){return!!Lr(r,e)}function ro(r){let e=r;for(;e;){if(e.type==="ArrowFunctionExpression"||e.type==="FunctionDeclaration"||e.type==="FunctionExpression")return e;e=e.parent}return null}var Ac=to.ESLintUtils.RuleCreator(()=>"https://qwik.dev/docs/advanced/dollar/"),no=Ac({defaultOptions:[],name:"jsx-a-tag",meta:{type:"problem",docs:{description:"For a perfect SEO score, always provide href attribute for <a> elements."},fixable:"code",schema:[],messages:{noHref:"For a perfect SEO score, always provide href attribute for <a> elements."}},create(r){return{JSXElement(e){e.openingElement.name.type==="JSXIdentifier"&&e.openingElement.name.name==="a"&&(e.openingElement.attributes.some(n=>n.type==="JSXSpreadAttribute")||he(e.openingElement.attributes,"href")||r.report({node:e,messageId:"noHref"}))}}}});var oo=require("@typescript-eslint/utils");var Pc=oo.ESLintUtils.RuleCreator(r=>`https://qwik.dev/docs/advanced/eslint/#${r}`),io=Pc({defaultOptions:[],name:"jsx-img",meta:{type:"problem",docs:{description:"For performance reasons, always provide width and height attributes for <img> elements, it will help to prevent layout shifts.",recommended:"warn"},fixable:"code",schema:[],messages:{noLocalSrc:`Local images can be optimized by importing using ESM, like this:
5
5
 
6
6
  import {{importName}} from '{{importSrc}}';
7
7
  <{{importName}} />
8
8
 
9
9
  See https://qwik.dev/docs/integrations/image-optimization/#responsive-images`,noWidthHeight:`Missing "width" or "height" attribute.
10
- For performance reasons, always provide width and height attributes for <img> elements, it will prevent layout shifts, boosting performance and UX.`}},create(r){return{JSXElement(e){if(e.openingElement.name.type==="JSXIdentifier"&&e.openingElement.name.name==="img"&&!e.openingElement.attributes.some(n=>n.type==="JSXSpreadAttribute")){let n=e.openingElement.attributes.find(a=>a.type==="JSXAttribute"&&a.name.type==="JSXIdentifier"&&a.name.name==="src");if(n&&n.value){let a=n.value.type==="Literal"?n.value:n.value.type==="JSXExpressionContainer"&&n.value.expression.type==="Literal"?n.value.expression:void 0;if(a&&typeof a.value=="string"&&a.value.startsWith("/")){let c=`~/media${a.value}?jsx`,l=zp(a.value);r.report({node:n,messageId:"noLocalSrc",data:{importSrc:c,importName:l}});return}}let o=e.openingElement.attributes.some(a=>a.type==="JSXAttribute"&&a.name.type==="JSXIdentifier"&&a.name.name==="width"),i=e.openingElement.attributes.some(a=>a.type==="JSXAttribute"&&a.name.type==="JSXIdentifier"&&a.name.name==="height");(!o||!i)&&r.report({node:e,messageId:"noWidthHeight"})}}}}}),Ob=`
10
+ For performance reasons, always provide width and height attributes for <img> elements, it will prevent layout shifts, boosting performance and UX.`}},create(r){return{JSXElement(e){if(e.openingElement.name.type==="JSXIdentifier"&&e.openingElement.name.name==="img"&&!e.openingElement.attributes.some(n=>n.type==="JSXSpreadAttribute")){let n=Lr(e.openingElement.attributes,"src");if(n&&n.value){let a=n.value.type==="Literal"?n.value:n.value.type==="JSXExpressionContainer"&&n.value.expression.type==="Literal"?n.value.expression:void 0;if(a&&typeof a.value=="string"&&a.value.startsWith("/")){let c=`~/media${a.value}?jsx`,p=Ic(a.value);r.report({node:n,messageId:"noLocalSrc",data:{importSrc:c,importName:p}});return}}let o=he(e.openingElement.attributes,"width"),i=he(e.openingElement.attributes,"height");(!o||!i)&&r.report({node:e,messageId:"noWidthHeight"})}}}}}),Lb=`
11
11
  import Image from '~/media/image.png';
12
- <Image />`.trim(),$b=`
13
- <img src="/image.png">`.trim(),_b=`
14
- <img width="200" height="600" src="/static/images/portrait-01.webp">`.trim(),kb=`
15
- <img src="/static/images/portrait-01.webp">`.trim();function zp(r){let e=r.lastIndexOf("."),t=r.lastIndexOf("/");return r=r.substring(t+1,e),`Img${Kp(r)}`}function Kp(r){return`${r}`.toLowerCase().replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(e,t,n)=>`${t.toUpperCase()+n}`).replace(new RegExp(/\w/),e=>e.toUpperCase())}var An=ee(hr());function Tn(r){return r.type==="FunctionExpression"||r.type==="ArrowFunctionExpression"}var br={checkFragmentShorthand:!1,checkKeyMustBeforeSpread:!1,warnOnDuplicates:!1},Zh={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"},gp={meta:{docs:{description:"Disallow missing `key` props in iterators/collection literals",category:"Possible Errors",recommended:!0,url:"https://qwik.dev/docs/advanced/eslint/#jsx-key"},messages:Zh,schema:[{type:"object",properties:{checkFragmentShorthand:{type:"boolean",default:br.checkFragmentShorthand},checkKeyMustBeforeSpread:{type:"boolean",default:br.checkKeyMustBeforeSpread},warnOnDuplicates:{type:"boolean",default:br.warnOnDuplicates}},additionalProperties:!1}]},create(r){if((r.sourceCode??r.getSourceCode()).getAllComments().some(p=>p.value.includes("@jsxImportSource")))return{};let n=Object.assign({},br,r.options[0]),o=n.checkFragmentShorthand,i=n.checkKeyMustBeforeSpread,a=n.warnOnDuplicates;function u(p){p.type==="JSXElement"&&!An.default.hasProp(p.openingElement.attributes,"key")?r.report({node:p,messageId:"missingIterKey"}):o&&p.type==="JSXFragment"&&r.report({node:p,messageId:"missingIterKeyUsePrag"})}function c(p,g=[]){return p.type==="IfStatement"?(p.consequent&&c(p.consequent,g),p.alternate&&c(p.alternate,g)):Array.isArray(p.body)&&p.body.forEach(h=>{h.type==="IfStatement"&&c(h,g),h.type==="ReturnStatement"&&g.push(h)}),g}function l(p){let g=!1;return p.some(h=>h.type==="JSXSpreadAttribute"?(g=!0,!1):h.type!=="JSXAttribute"?!1:g&&An.default.propName(h)==="key")}function d(p){Tn(p)&&p.body.type==="BlockStatement"&&c(p.body).filter(g=>g&&g.argument).forEach(g=>{u(g.argument)})}function f(p){let g=p&&p.type==="ArrowFunctionExpression",h=b=>b&&(b.type==="JSXElement"||b.type==="JSXFragment");g&&h(p.body)&&u(p.body),p.body.type==="ConditionalExpression"?(h(p.body.consequent)&&u(p.body.consequent),h(p.body.alternate)&&u(p.body.alternate)):p.body.type==="LogicalExpression"&&h(p.body.right)&&u(p.body.right)}let y=`:matches(
12
+ <Image />`.trim(),Mb=`
13
+ <img src="/image.png">`.trim(),jb=`
14
+ <img width="200" height="600" src="/static/images/portrait-01.webp">`.trim(),Db=`
15
+ <img src="/static/images/portrait-01.webp">`.trim();function Ic(r){let e=r.lastIndexOf("."),t=r.lastIndexOf("/");return r=r.substring(t+1,e),`Img${kc(r)}`}function kc(r){return`${r}`.toLowerCase().replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(e,t,n)=>`${t.toUpperCase()+n}`).replace(new RegExp(/\w/),e=>e.toUpperCase())}var Dp=re(kr());function jn(r){return r?.type==="FunctionExpression"||r?.type==="ArrowFunctionExpression"}var Cr={checkFragmentShorthand:!1,checkKeyMustBeforeSpread:!1,warnOnDuplicates:!1},Wh={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"},Vp={meta:{docs:{description:"Disallow missing `key` props in iterators/collection literals",category:"Possible Errors",recommended:!0,url:"https://qwik.dev/docs/advanced/eslint/#jsx-key"},messages:Wh,schema:[{type:"object",properties:{checkFragmentShorthand:{type:"boolean",default:Cr.checkFragmentShorthand},checkKeyMustBeforeSpread:{type:"boolean",default:Cr.checkKeyMustBeforeSpread},warnOnDuplicates:{type:"boolean",default:Cr.warnOnDuplicates}},additionalProperties:!1}]},create(r){if(D(r))return{};let e=Object.assign({},Cr,r.options[0]),t=e.checkFragmentShorthand,n=e.warnOnDuplicates;function o(l){l.type==="JSXElement"&&!Dp.default.hasProp(l.openingElement.attributes,"key")?r.report({node:l,messageId:"missingIterKey"}):t&&l.type==="JSXFragment"&&r.report({node:l,messageId:"missingIterKeyUsePrag"})}function i(l,f=[]){return l.type==="IfStatement"?(l.consequent&&i(l.consequent,f),l.alternate&&i(l.alternate,f)):l.type==="BlockStatement"&&l.body.forEach(d=>{d.type==="IfStatement"&&i(d,f),d.type==="ReturnStatement"&&f.push(d)}),f}function a(l){jn(l)&&l.body.type==="BlockStatement"&&i(l.body).filter(f=>f&&f.argument).forEach(f=>{o(f.argument)})}function u(l){let f=l.type==="ArrowFunctionExpression",d=y=>!!y&&(y.type==="JSXElement"||y.type==="JSXFragment");f&&d(l.body)&&o(l.body),l.body.type==="ConditionalExpression"?(d(l.body.consequent)&&o(l.body.consequent),d(l.body.alternate)&&o(l.body.alternate)):l.body.type==="LogicalExpression"&&d(l.body.right)&&o(l.body.right)}let c=`:matches(
16
16
  CallExpression
17
17
  [callee.object.object.name=Fragment]
18
18
  [callee.object.property.name=Children]
@@ -20,7 +20,7 @@ import Image from '~/media/image.png';
20
20
  CallExpression
21
21
  [callee.object.name=Children]
22
22
  [callee.property.name=toArray]
23
- )`.replace(/\s/g,""),m=!1,v=new WeakSet;return{[y](){m=!0},[`${y}:exit`](){m=!1},"ArrayExpression, JSXElement > JSXElement"(p){if(m)return;let g=(p.type==="ArrayExpression"?p.elements:p.parent.children).filter(b=>b&&b.type==="JSXElement");if(g.length===0)return;let h={};g.forEach(b=>{b.openingElement.attributes.filter(X=>X.name&&X.name.name==="key").length===0&&p.type==="ArrayExpression"&&r.report({node:b,messageId:"missingArrayKey"})}),a&&Object.values(h).filter(b=>b.length>1).forEach(b=>{b.forEach(T=>{v.has(T)||(v.add(T),r.report({node:T,messageId:"nonUniqueKeys"}))})})},JSXFragment(p){!o||m||p.parent.type==="ArrayExpression"&&r.report({node:p,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"]'(p){if(m)return;let g=p.arguments.length>0&&p.arguments[0];!g||!Tn(g)||(f(g),d(g))},'CallExpression[callee.type="MemberExpression"][callee.property.name="from"]'(p){if(m)return;let g=p.arguments.length>1&&p.arguments[1];Tn(g)&&(f(g),d(g))}}}},_E=`
23
+ )`.replace(/\s/g,""),p=!1,m=new WeakSet;return{[c](){p=!0},[`${c}:exit`](){p=!1},"ArrayExpression, JSXElement > JSXElement"(l){if(p)return;let f=(l.type==="ArrayExpression"?l.elements:l.parent.children).filter(y=>!!y&&y.type==="JSXElement");if(f.length===0)return;let d=new Map;if(f.forEach(y=>{y.openingElement.attributes.filter(P=>P.type==="JSXAttribute"&&P.name.type==="JSXIdentifier"&&P.name.name==="key").length===0&&l.type==="ArrayExpression"&&r.report({node:y,messageId:"missingArrayKey"})}),n)for(let y of d.values())y.length>1&&y.forEach(S=>{m.has(S)||(m.add(S),r.report({node:S,messageId:"nonUniqueKeys"}))})},JSXFragment(l){!t||p||l.parent.type==="ArrayExpression"&&r.report({node:l,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"]'(l){if(p)return;let f=l.arguments.length>0&&l.arguments[0];!f||!jn(f)||(u(f),a(f))},'CallExpression[callee.type="MemberExpression"][callee.property.name="from"]'(l){if(p)return;let f=l.arguments.length>1&&l.arguments[1];jn(f)&&(u(f),a(f))}}}},Jw=`
24
24
  import { component$ } from '@qwik.dev/core';
25
25
 
26
26
  export const Person = component$(() => {
@@ -34,10 +34,10 @@ export const Person = component$(() => {
34
34
  <ul>
35
35
  {Object.keys(person).map((color) => (
36
36
  <li key={\`person-\${key}\`}>{person[key]}</li>
37
- )}
37
+ ))}
38
38
  </ul>
39
39
  );
40
- });`.trim(),kE=`
40
+ });`.trim(),Ww=`
41
41
  import { component$ } from '@qwik.dev/core';
42
42
 
43
43
  export const Person = component$(() => {
@@ -51,10 +51,10 @@ export const Person = component$(() => {
51
51
  <ul>
52
52
  {Object.keys(person).map((color) => (
53
53
  <li>{person[key]}</li>
54
- )}
54
+ ))}
55
55
  </ul>
56
56
  );
57
- });`.trim(),IE=`
57
+ });`.trim(),Gw=`
58
58
  import { component$ } from '@qwik.dev/core';
59
59
  import Card from './Card';
60
60
  import Summary from './Summary';
@@ -72,9 +72,9 @@ export const Person = component$(() => {
72
72
  <Card value={person[key]} />
73
73
  <Summary value={person[key]} />
74
74
  </Fragment>
75
- )}
75
+ ))}
76
76
  );
77
- });`.trim(),CE=`
77
+ });`.trim(),Xw=`
78
78
  import { component$ } from '@qwik.dev/core';
79
79
  import Card from './Card';
80
80
  import Summary from './Summary';
@@ -92,9 +92,9 @@ export const Person = component$(() => {
92
92
  <Card value={person[key]} />
93
93
  <Summary value={person[key]} />
94
94
  </>
95
- )}
95
+ ))}
96
96
  );
97
- });`.trim(),FE=`
97
+ });`.trim(),Hw=`
98
98
  import { component$ } from '@qwik.dev/core';
99
99
 
100
100
  export const ColorList = component$(() => {
@@ -104,10 +104,10 @@ export const ColorList = component$(() => {
104
104
  <ul>
105
105
  {colors.map((color) => (
106
106
  <li key={\`color-\${color}\`}>{color}</li>
107
- )}
107
+ ))}
108
108
  </ul>
109
109
  );
110
- });`.trim(),NE=`
110
+ });`.trim(),zw=`
111
111
  import { component$ } from '@qwik.dev/core';
112
112
 
113
113
  export const ColorList = component$(() => {
@@ -117,10 +117,10 @@ export const ColorList = component$(() => {
117
117
  <ul>
118
118
  {colors.map((color) => (
119
119
  <li>{color}</li>
120
- )}
120
+ ))}
121
121
  </ul>
122
122
  );
123
- });`.trim(),RE=`
123
+ });`.trim(),Kw=`
124
124
  import { component$, Fragment } from '@qwik.dev/core';
125
125
 
126
126
  export const ColorList = component$(() => {
@@ -132,9 +132,9 @@ export const ColorList = component$(() => {
132
132
  <h2>{color}</h2>
133
133
  <p>The color "\${color}" is a great color.</p>
134
134
  </Fragment>
135
- )}
135
+ ))}
136
136
  );
137
- });`.trim(),jE=`
137
+ });`.trim(),Qw=`
138
138
  import { component$ } from '@qwik.dev/core';
139
139
 
140
140
  export const ColorList = component$(() => {
@@ -146,9 +146,9 @@ export const ColorList = component$(() => {
146
146
  <h2>{color}</h2>
147
147
  <p>The color "\${color}" is a great color.</p>
148
148
  </>
149
- )}
149
+ ))}
150
150
  );
151
- });`.trim();var ME=`
151
+ });`.trim();var Yw=`
152
152
  import { component$ } from '@qwik.dev/core';
153
153
 
154
154
  export const ColorList = component$(() => {
@@ -158,12 +158,12 @@ export const ColorList = component$(() => {
158
158
  <ul>
159
159
  {colors.map((color) => (
160
160
  <li key="not-a-good-idea">{color}</li>
161
- )}
161
+ ))}
162
162
  </ul>
163
163
  );
164
- });`.trim();var vp=require("@typescript-eslint/utils"),{getStaticValue:eb}=vp.ASTUtils,rb=/^[\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,hp={meta:{type:"problem",docs:{recommended:"error",description:"Disallow javascript: URLs.",url:"https://qwik.dev/docs/advanced/eslint/#jsx-no-script-url"},schema:[],messages:{noJSURL:"For security, don't use javascript: URLs. Use event handlers instead if you can."}},create(r){let e=r.sourceCode??r.getSourceCode();return{JSXAttribute(t){if(t.name.type==="JSXIdentifier"&&t.value){let n=eb(t.value.type==="JSXExpressionContainer"?t.value.expression:t.value,e.getScope?e.getScope(t):r.getScope());n&&typeof n.value=="string"&&rb.test(n.value)&&r.report({node:t.value,messageId:"noJSURL"})}}}}},VE=`
165
- <button onClick$={() => alert('open the door please')>ring</button>`.trim(),DE=`
166
- <button onClick$="javascript:alert('open the door please')">ring</button>`.trim();var bp={loader$:!0,routeLoader$:!0,routeAction$:!0,routeHandler$:!0},tb={...bp,action$:!0,globalAction$:!0},Sp={meta:{type:"problem",docs:{description:"Detect declaration location of loader$.",recommended:!0,url:"https://qwik.dev/docs/advanced/eslint/#loader-location"},schema:[{type:"object",properties:{routesDir:{type:"string",default:"src/routes"}},additionalProperties:!1}],messages:{invalidLoaderLocation:`'{{fnName}}() are typically declared in route boundary files such as layout.tsx, index.tsx and plugin.tsx inside the {{routesDir}} directory
164
+ });`.trim();var Up=require("@typescript-eslint/utils"),{getStaticValue:Gh}=Up.ASTUtils,Xh=/^[\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,Bp={meta:{type:"problem",docs:{recommended:"error",description:"Disallow javascript: URLs.",url:"https://qwik.dev/docs/advanced/eslint/#jsx-no-script-url"},schema:[],messages:{noJSURL:"For security, don't use javascript: URLs. Use event handlers instead if you can."}},create(r){let e=r.sourceCode??r.getSourceCode();return{JSXAttribute(t){if(t.name.type==="JSXIdentifier"&&t.value){let n=Gh(t.value.type==="JSXExpressionContainer"?t.value.expression:t.value,e.getScope?e.getScope(t):r.getScope());n&&typeof n.value=="string"&&Xh.test(n.value)&&r.report({node:t.value,messageId:"noJSURL"})}}}}},eT=`
165
+ <button onClick$={() => alert('open the door please')}>ring</button>`.trim(),rT=`
166
+ <button onClick$="javascript:alert('open the door please')">ring</button>`.trim();var Jp={loader$:!0,routeLoader$:!0,routeAction$:!0,routeHandler$:!0},Hh={...Jp,action$:!0,globalAction$:!0},Wp={meta:{type:"problem",docs:{description:"Detect declaration location of loader$.",recommended:!0,url:"https://qwik.dev/docs/advanced/eslint/#loader-location"},schema:[{type:"object",properties:{routesDir:{type:"string",default:"src/routes"}},additionalProperties:!1}],messages:{invalidLoaderLocation:`'{{fnName}}() are typically declared in route boundary files such as layout.tsx, index.tsx and plugin.tsx inside the {{routesDir}} directory
167
167
  (docs: https://qwik.dev/docs/route-loader/).
168
168
 
169
169
  This {{fnName}}() is declared outside of the route boundaries. This may be useful when you want to create reusable logic or a library. In such a case, it is essential that this function is re-exported from within the router boundary otherwise it will not run.
@@ -171,28 +171,28 @@ This {{fnName}}() is declared outside of the route boundaries. This may be usefu
171
171
 
172
172
  If you understand this, you can disable this warning with:
173
173
  // eslint-disable-next-line qwik/loader-location
174
- `,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(r){var c,l;let e=((l=(c=r.options)==null?void 0:c[0])==null?void 0:l.routesDir)??"src/routes",t=nb(r.filename??r.getFilename()),n=/\/layout(|!|-[^/]+)\.(j|t)sx?$/.test(t),o=/\/index(|!|@[^/]+)\.(j|t)sx?$/.test(t),i=/\/plugin(|@[^/]+)\.(j|t)sx?$/.test(t),u=new RegExp(`/${e}/`).test(t)&&(o||n||i);return{CallExpression(d){if(d.callee.type!=="Identifier")return;let f=d.callee.name;if(!tb[f])return;if(!u&&bp[f]){r.report({node:d.callee,messageId:"invalidLoaderLocation",data:{routesDir:e,fnName:f,path:t}});return}let y=d.parent;if(y.type!=="VariableDeclarator"){r.report({node:d.callee,messageId:"missingExport",data:{fnName:f,id:"useStuff"}});return}if(y.id.type!=="Identifier"){r.report({node:d.callee,messageId:"missingExport",data:{fnName:f,id:"useStuff"}});return}if(!/^use/.test(y.id.name)){let m="use"+y.id.name[0].toUpperCase()+y.id.name.slice(1);r.report({node:y.id,messageId:"wrongName",data:{fnName:f,id:y.id.name,fixed:m}});return}if(!ob(y)){r.report({node:y.id,messageId:"missingExport",data:{fnName:f,id:y.id.name}});return}if(d.arguments.length>0&&d.arguments[0].type==="Identifier"){r.report({node:d.arguments[0],messageId:"recommendedValue",data:{fnName:f,id:y.id.name,arg:d.arguments[0].name}});return}}}}};function nb(r){let e=/^\\\\\?\\/.test(r),t=/[^\u0000-\u0080]+/.test(r);return e||t||(r=r.replace(/\\/g,"/"),r.endsWith("/")&&(r=r.slice(0,r.length-1))),r}var BE=`
174
+ `,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(r){let e=r.options?.[0]?.routesDir??"src/routes",t=zh(r.filename),n=/\/layout(|!|-[^/]+)\.(j|t)sx?$/.test(t),o=/\/index(|!|@[^/]+)\.(j|t)sx?$/.test(t),i=/\/plugin(|@[^/]+)\.(j|t)sx?$/.test(t),u=new RegExp(`/${e}/`).test(t)&&(o||n||i);return{CallExpression(c){if(c.callee.type!=="Identifier")return;let p=c.callee.name;if(!Hh[p])return;if(!u&&Jp[p]){r.report({node:c.callee,messageId:"invalidLoaderLocation",data:{routesDir:e,fnName:p,path:t}});return}let m=c.parent;if(m.type!=="VariableDeclarator"){r.report({node:c.callee,messageId:"missingExport",data:{fnName:p,id:"useStuff"}});return}if(m.id.type!=="Identifier"){r.report({node:c.callee,messageId:"missingExport",data:{fnName:p,id:"useStuff"}});return}if(!/^use/.test(m.id.name)){let l="use"+m.id.name[0].toUpperCase()+m.id.name.slice(1);r.report({node:m.id,messageId:"wrongName",data:{fnName:p,id:m.id.name,fixed:l}});return}if(!Kh(m)){r.report({node:m.id,messageId:"missingExport",data:{fnName:p,id:m.id.name}});return}if(c.arguments.length>0&&c.arguments[0].type==="Identifier"){r.report({node:c.arguments[0],messageId:"recommendedValue",data:{fnName:p,id:m.id.name,arg:c.arguments[0].name}});return}}}}};function zh(r){let e=/^\\\\\?\\/.test(r),t=/[^\u0000-\u0080]+/.test(r);return e||t||(r=r.replace(/\\/g,"/"),r.endsWith("/")&&(r=r.slice(0,r.length-1))),r}var nT=`
175
175
  import { routeLoader$ } from '@qwik.dev/router';
176
176
 
177
177
  export const useProductDetails = routeLoader$(async (requestEvent) => {
178
178
  const res = await fetch(\`https://.../products/\${requestEvent.params.productId}\`);
179
179
  const product = await res.json();
180
180
  return product as Product;
181
- });`.trim();var JE=`
181
+ });`.trim();var oT=`
182
182
  import { routeLoader$ } from '@qwik.dev/router';
183
183
 
184
184
  const useProductDetails = routeLoader$(async (requestEvent) => {
185
185
  const res = await fetch(\`https://.../products/\${requestEvent.params.productId}\`);
186
186
  const product = await res.json();
187
187
  return product as Product;
188
- });`.trim();var WE=`
188
+ });`.trim();var iT=`
189
189
  import { routeLoader$ } from '@qwik.dev/router';
190
190
 
191
191
  export const getProductDetails = routeLoader$(async (requestEvent) => {
192
192
  const res = await fetch(\`https://.../products/\${requestEvent.params.productId}\`);
193
193
  const product = await res.json();
194
194
  return product as Product;
195
- });`.trim();var GE=`
195
+ });`.trim();var aT=`
196
196
  import { routeLoader$ } from '@qwik.dev/router';
197
197
 
198
198
  async function fetcher() {
@@ -202,9 +202,9 @@ async function fetcher() {
202
202
  }
203
203
 
204
204
  export const useProductDetails = routeLoader$(fetcher);
205
- `.trim();function ob(r){if(r.parent.parent.type==="ExportNamedDeclaration")return!0;if(r.type==="VariableDeclarator"){let e=r.id;if("name"in e){let t=e.name,n=ib(r);for(let o=0;o<n.length;o++){let i=n[o];if(i.type=="ExportNamedDeclaration"){let a=i.specifiers;for(let u=0;u<a.length;u++){let c=a[u];if(c.type=="ExportSpecifier"&&c.exported.type=="Identifier"&&c.exported.name===t)return!0}}}}}return!1}function ib(r){let e=r;for(;e.type!=="Program";)e=e.parent;return e.body}var Pn=ee(hr()),ab=[{from:"className",to:"class"},{from:"htmlFor",to:"for"}];var xp={meta:{type:"problem",docs:{recommended:"warn",description:"Disallow usage of React-specific `className`/`htmlFor` props.",url:"https://qwik.dev/docs/advanced/eslint/#no-react-props"},fixable:"code",schema:[],messages:{prefer:"Prefer the `{{ to }}` prop over the deprecated `{{ from }}` prop."}},create(r){return r.sourceCode.getAllComments().some(t=>t.value.includes("@jsxImportSource"))?{}:{JSXOpeningElement(t){for(let{from:n,to:o}of ab){let i=Pn.default.getProp(t.attributes,n);if(i){let a=Pn.default.hasProp(t.attributes,o,{ignoreCase:!1})?void 0:u=>u.replaceText(i.name,o);r.report({node:i,messageId:"prefer",data:{from:n,to:o},fix:a})}}}}}},XE=`
206
- <MyReactComponent class="foo" for="#password" />;`.trim(),zE=`
207
- <MyReactComponent className="foo" htmlFor="#password" />;`.trim();var Ep={meta:{type:"suggestion",docs:{description:"Detect useVisibleTask$() functions.",recommended:!0,url:"https://qwik.dev/docs/guides/best-practices/#use-usevisibletask-as-a-last-resort"},messages:{noUseVisibleTask:"useVisibleTask$() runs eagerly and blocks the main thread, preventing user interaction until the task is finished. Consider using useTask$(), useOn(), useOnDocument(), or useOnWindow() instead. If you have to use a useVisibleTask$(), you can disable the warning with a '// eslint-disable-next-line qwik/no-use-visible-task' comment."}},create(r){return{CallExpression(e){if(e.callee.type!=="Identifier")return;e.callee.name==="useVisibleTask$"&&r.report({node:e.callee,messageId:"noUseVisibleTask"})}}}};var On=ee(hr()),wp={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.",url:"https://qwik.dev/docs/advanced/eslint/#prefer-classlist"},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(r){var n;if(r.sourceCode.getAllComments().some(o=>o.value.includes("@jsxImportSource")))return{};let t=((n=r.options[0])==null?void 0:n.classnames)??["cn","clsx","classnames"];return{JSXAttribute(o){var i,a;if(!(["class","className"].indexOf(On.default.propName(o))===-1||On.default.hasProp((i=o.parent)==null?void 0:i.attributes,"classlist",{ignoreCase:!1}))&&((a=o.value)==null?void 0:a.type)==="JSXExpressionContainer"){let u=o.value.expression;u.type==="CallExpression"&&u.callee.type==="Identifier"&&t.indexOf(u.callee.name)!==-1&&u.arguments.length===1&&u.arguments[0].type==="ObjectExpression"&&r.report({node:o,messageId:"preferClasslist",data:{classnames:u.callee.name},fix:c=>{let l=o.range,d=u.arguments[0].range;return[c.replaceTextRange([l[0],d[0]],"classlist={"),c.replaceTextRange([d[1],l[1]],"}")]}})}}}}},YE=`
205
+ `.trim();function Kh(r){if(r.parent.parent.type==="ExportNamedDeclaration")return!0;if(r.type==="VariableDeclarator"){let e=r.id;if("name"in e){let t=e.name,n=Qh(r);for(let o=0;o<n.length;o++){let i=n[o];if(i.type=="ExportNamedDeclaration"){let a=i.specifiers;for(let u=0;u<a.length;u++){let c=a[u];if(c.type=="ExportSpecifier"&&c.exported.type=="Identifier"&&c.exported.name===t)return!0}}}}}return!1}function Qh(r){let e=r;for(;e.type!=="Program";)e=e.parent;return e.body}var Dn=re(kr());var Yh=[{from:"className",to:"class"},{from:"htmlFor",to:"for"}];var Gp={meta:{type:"problem",docs:{recommended:"warn",description:"Disallow usage of React-specific `className`/`htmlFor` props.",url:"https://qwik.dev/docs/advanced/eslint/#no-react-props"},fixable:"code",schema:[],messages:{prefer:"Prefer the `{{ to }}` prop over the deprecated `{{ from }}` prop."}},create(r){return D(r)?{}:{JSXOpeningElement(e){for(let{from:t,to:n}of Yh){let o=Dn.default.getProp(e.attributes,t);if(o){let i=Dn.default.hasProp(e.attributes,n,{ignoreCase:!1})?void 0:a=>a.replaceText(o.name,n);r.report({node:o,messageId:"prefer",data:{from:t,to:n},fix:i})}}}}}},lT=`
206
+ <MyReactComponent class="foo" for="#password" />;`.trim(),pT=`
207
+ <MyReactComponent className="foo" htmlFor="#password" />;`.trim();var Xp={meta:{type:"suggestion",docs:{description:"Detect useVisibleTask$() functions.",recommended:!0,url:"https://qwik.dev/docs/guides/best-practices/#use-usevisibletask-as-a-last-resort"},messages:{noUseVisibleTask:"useVisibleTask$() runs eagerly and blocks the main thread, preventing user interaction until the task is finished. Consider using useTask$(), useOn(), useOnDocument(), or useOnWindow() instead. If you have to use a useVisibleTask$(), you can disable the warning with a '// eslint-disable-next-line qwik/no-use-visible-task' comment."}},create(r){return{CallExpression(e){if(e.callee.type!=="Identifier")return;e.callee.name==="useVisibleTask$"&&r.report({node:e.callee,messageId:"noUseVisibleTask"})}}}};var Vn=re(kr());var Hp={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.",url:"https://qwik.dev/docs/advanced/eslint/#prefer-classlist"},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(r){if(D(r))return{};let e=r.options[0]?.classnames??["cn","clsx","classnames"];return{JSXAttribute(t){if(!(["class","className"].indexOf(Vn.default.propName(t))===-1||Vn.default.hasProp(t.parent?.attributes,"classlist",{ignoreCase:!1}))&&t.value?.type==="JSXExpressionContainer"){let n=t.value.expression;n.type==="CallExpression"&&n.callee.type==="Identifier"&&e.indexOf(n.callee.name)!==-1&&n.arguments.length===1&&n.arguments[0].type==="ObjectExpression"&&r.report({node:t,messageId:"preferClasslist",data:{classnames:n.callee.name},fix:o=>{let i=t.range,a=n.arguments[0].range;return[o.replaceTextRange([i[0],a[0]],"classlist={"),o.replaceTextRange([a[1],i[1]],"}")]}})}}}}},mT=`
208
208
  import { component$ } from '@qwik.dev/core';
209
209
  import styles from './MyComponent.module.css';
210
210
 
@@ -222,7 +222,7 @@ export default component$((props) => {
222
222
  'text-green-500': props.isHighAttention,
223
223
  'p-4': true
224
224
  }}>Hello world</div>;
225
- });`.trim(),ZE=`
225
+ });`.trim(),yT=`
226
226
  import { component$ } from '@qwik.dev/core';
227
227
  import classnames from 'classnames';
228
228
  import styles from './MyComponent.module.css';
@@ -237,10 +237,10 @@ export default component$((props) => {
237
237
  },
238
238
  { active: true}
239
239
  )}>Hello world</div>;
240
- });`.trim();var qp={meta:{type:"problem",docs:{description:"Detect unused server$() functions.",recommended:!0,url:"https://qwik.dev/docs/advanced/eslint/#unused-server"},messages:{unusedServer:`Unused server$(). Seems like you are declaring a new server$ function, but you are never calling it. You might want to do:
240
+ });`.trim();var zp={meta:{type:"problem",docs:{description:"Detect unused server$() functions.",recommended:!0,url:"https://qwik.dev/docs/advanced/eslint/#unused-server"},messages:{unusedServer:`Unused server$(). Seems like you are declaring a new server$ function, but you are never calling it. You might want to do:
241
241
 
242
242
  {{ suggestion }}`}},create(r){return{CallExpression(e){if(e.callee.type!=="Identifier")return;if(e.callee.name==="server$"){let n=!1;(e.parent.type==="ExpressionStatement"||e.parent.type==="AwaitExpression"&&e.parent.parent.type==="ExpressionStatement")&&(n=!0),n&&r.report({node:e.callee,messageId:"unusedServer",data:{suggestion:`const serverFn = server$(...);
243
- await serverFn(...);`}})}}}}},rw=`
243
+ await serverFn(...);`}})}}}}},vT=`
244
244
  import { component$ } from '@qwik.dev/core';
245
245
  import { server$ } from '@qwik.dev/router';
246
246
 
@@ -250,16 +250,15 @@ const serverGreeter = server$((firstName: string, lastName: string) => {
250
250
  });
251
251
 
252
252
  export default component$(() => (
253
- <button
254
- onClick$={async () => {
255
- const greeting = await serverGreeter('John', 'Doe');
256
- alert(greeting);
257
- }}
258
- >
259
- greet
260
- </button>
261
- );
262
- );`.trim(),tw=`
253
+ <button
254
+ onClick$={async () => {
255
+ const greeting = await serverGreeter('John', 'Doe');
256
+ alert(greeting);
257
+ }}
258
+ >
259
+ greet
260
+ </button>
261
+ ));`.trim(),ST=`
263
262
  import { component$ } from '@qwik.dev/core';
264
263
  import { server$ } from '@qwik.dev/router';
265
264
 
@@ -269,44 +268,43 @@ const serverGreeter = server$((firstName: string, lastName: string) => {
269
268
  });
270
269
 
271
270
  export default component$(() => (
272
- <button
273
- onClick$={async () => {
274
- const greeting = 'not using the server$ function';
275
- alert(greeting);
276
- }}
277
- >
278
- greet
279
- </button>
280
- );
281
- );`.trim();var Tp={meta:{type:"problem",docs:{description:"Detect invalid use of use hooks.",category:"Variables",recommended:!0,url:"https://qwik.dev/docs/advanced/eslint/#use-method-usage"},messages:{useWrongFunction:"Calling use* methods in wrong function."}},create(r){return(r.sourceCode??r.getSourceCode()).getAllComments().some(n=>n.value.includes("@jsxImportSource"))?{}:{"CallExpression[callee.name=/^use[A-Z]/]"(n){var i,a;let o=n;for(;o=o.parent;)switch(o.type){case"VariableDeclarator":case"VariableDeclaration":case"ExpressionStatement":case"MemberExpression":case"BinaryExpression":case"UnaryExpression":case"ReturnStatement":case"BlockStatement":case"ChainExpression":case"Property":case"ObjectExpression":case"CallExpression":case"TSAsExpression":break;case"ArrowFunctionExpression":case"FunctionExpression":if(o.parent.type==="VariableDeclarator"&&((i=o.parent.id)==null?void 0:i.type)==="Identifier"&&o.parent.id.name.startsWith("use")||o.parent.type==="CallExpression"&&o.parent.callee.type==="Identifier"&&o.parent.callee.name==="component$")return;r.report({node:n,messageId:"useWrongFunction"});return;case"FunctionDeclaration":(a=o.id)!=null&&a.name.startsWith("use")||r.report({node:n,messageId:"useWrongFunction"});return;default:r.report({node:n,messageId:"useWrongFunction"});return}}}}},ow=`
271
+ <button
272
+ onClick$={async () => {
273
+ const greeting = 'not using the server$ function';
274
+ alert(greeting);
275
+ }}
276
+ >
277
+ greet
278
+ </button>
279
+ ));`.trim();var Kp={meta:{type:"problem",docs:{description:"Detect invalid use of use hooks.",category:"Variables",recommended:!0,url:"https://qwik.dev/docs/advanced/eslint/#use-method-usage"},messages:{useWrongFunction:"Calling use* methods in wrong function."}},create(r){return D(r)?{}:{"CallExpression[callee.name=/^use[A-Z]/]"(e){let t=e;for(;t=t.parent;)switch(t.type){case"VariableDeclarator":case"VariableDeclaration":case"ExpressionStatement":case"MemberExpression":case"BinaryExpression":case"UnaryExpression":case"ReturnStatement":case"BlockStatement":case"ChainExpression":case"Property":case"ObjectExpression":case"CallExpression":case"TSAsExpression":break;case"ArrowFunctionExpression":case"FunctionExpression":if(t.parent.type==="VariableDeclarator"&&t.parent.id?.type==="Identifier"&&t.parent.id.name.startsWith("use")||t.parent.type==="CallExpression"&&t.parent.callee.type==="Identifier"&&(t.parent.callee.name==="component$"||t.parent.callee.name==="renderHook"))return;r.report({node:e,messageId:"useWrongFunction"});return;case"FunctionDeclaration":t.id?.name.startsWith("use")||r.report({node:e,messageId:"useWrongFunction"});return;default:r.report({node:e,messageId:"useWrongFunction"});return}}}}},xT=`
282
280
  export const Counter = component$(() => {
283
281
  const count = useSignal(0);
284
282
  });
285
- `.trim(),iw=`
283
+ `.trim(),ET=`
286
284
  export const useCounter = () => {
287
285
  const count = useSignal(0);
288
286
  return count;
289
287
  };
290
- `.trim(),aw=`
288
+ `.trim(),wT=`
291
289
  export const Counter = (() => {
292
290
  const count = useSignal(0);
293
291
  });
294
- `.trim();var Sr=ee(require("@typescript-eslint/utils/eslint-utils")),H=ee(require("typescript"));var Op=ee(Pp(),1);function $n(r){let e=(0,Op.default)(r);if(e===0)return r;let t=new RegExp(`^[ \\t]{${e}}`,"gm");return r.replace(t,"")}function _n(r,e=1,t={}){let{indent:n=" ",includeEmptyLines:o=!1}=t;if(typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof e!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``);if(e<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${e}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(e===0)return r;let i=o?/^/gm:/^(?!\s*$)/gm;return r.replace(i,n.repeat(e))}function kn(r,e=0,t={}){return _n($n(r),e,t)}var sb=Sr.RuleCreator(r=>`https://qwik.dev/docs/advanced/eslint/#${r}`),$p=sb({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:"recommended"},schema:[{type:"object",properties:{allowAny:{type:"boolean"}},additionalProperties:!1,default:{allowAny:!0}}],messages:{referencesOutside:`When referencing "{{varName}}" inside a different scope ({{dollarName}}), Qwik needs to serialize the value, however {{reason}}.
292
+ `.trim();var Or=re(require("@typescript-eslint/utils/eslint-utils")),M=re(require("typescript"));function Un(r){let e=r.match(/^[ \t]*(?=\S)/gm);if(!e)return r;let t=Number.POSITIVE_INFINITY;for(let n of e)t=Math.min(t,n.length);return t===0||t===Number.POSITIVE_INFINITY?r:r.replace(new RegExp(`^[ \\t]{${t}}`,"gm"),"")}function Bn(r,e=1,t={}){let{indent:n=" ",includeEmptyLines:o=!1}=t;if(typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof e!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``);if(e<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${e}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(e===0)return r;let i=o?/^/gm:/^(?!\s*$)/gm;return r.replace(i,n.repeat(e))}function Jn(r,e=0,t={}){return Bn(Un(r),e,t)}var Zh=Or.RuleCreator(r=>`https://qwik.dev/docs/advanced/eslint/#${r}`),Qp=Zh({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:"recommended"},schema:[{type:"object",properties:{allowAny:{type:"boolean"}},additionalProperties:!1,default:{allowAny:!0}}],messages:{referencesOutside:`When referencing "{{varName}}" inside a different scope ({{dollarName}}), Qwik needs to serialize the value, however {{reason}}.
295
293
  Check out https://qwik.dev/docs/advanced/dollar/ for more details.`,invalidJsxDollar:`Using "{{varName}}" as an event handler, however functions are not serializable.
296
294
  Did you mean to wrap it in \`$()\`?
297
295
 
298
296
  {{solution}}
299
297
  Check out https://qwik.dev/docs/advanced/dollar/ for more details.`,mutableIdentifier:`Mutating let "{{varName}}" within the ({{dollarName}}) closure is not allowed, instead create an object/store/signal and mutate one of its properties.
300
- Check out https://qwik.dev/docs/advanced/dollar/ for more details.`}},create(r){var l;let t={allowAny:((l=r.options[0])==null?void 0:l.allowAny)??!0},n=r.sourceCode.scopeManager,o=Sr.getParserServices(r),i=o.esTreeNodeToTSNodeMap,a=o.program.getTypeChecker(),u=new Map;function c(d){d.references.forEach(f=>{var v,p;let y=f.resolved,m=(v=f.resolved)==null?void 0:v.scope;if(y&&m){let g=(p=y.defs.at(0))==null?void 0:p.type;if(g==="Type"||g==="ImportBinding"||yb(y,r))return;let h=f.from,b;for(;h&&(b=u.get(h),!b);)h=h.upper;if(h&&b){let T=m.type;if(T==="global"||T==="module")return;let O=f.identifier,X=i.get(O),j=m;for(;j&&!u.has(j);)j=j.upper;if(j!==h){O.parent&&O.parent.type==="AssignmentExpression"&&O.parent.left===O&&r.report({messageId:"mutableIdentifier",node:f.identifier,data:{varName:f.identifier.name,dollarName:b}});let Y=ub(r,a,X,f.identifier,t);Y&&r.report({messageId:"referencesOutside",node:f.identifier,data:{varName:f.identifier.name,dollarName:b,reason:lb(Y)}})}}}}),d.childScopes.forEach(c)}return{CallExpression(d){if(d.callee.type==="Identifier"&&d.callee.name.endsWith("$")){let f=d.arguments.at(0);if(f&&f.type==="ArrowFunctionExpression"){let y=n.acquire(f);y&&u.set(y,d.callee.name)}}},JSXAttribute(d){var m;let f=d.name,y=f.type==="JSXIdentifier"?f.name:f.name.name;if(y.endsWith("$")){let v=d.value;if(v&&v.type==="JSXExpressionContainer"){let p=n.acquire(v.expression);if(p)u.set(p,y);else if(v.expression.type==="Identifier"){let g=i.get(v.expression),h=a.getTypeAtLocation(g).getNonNullableType();if(!_p(h))if(h.isUnionOrIntersection())h.types.every(b=>b.symbol?b.symbol.name==="Component"||b.symbol.name==="PropFnInterface":!1)||r.report({messageId:"invalidJsxDollar",node:v.expression,data:{varName:v.expression.name,solution:`Fix the type of ${v.expression.name} to be QRL`}});else{if(((m=h.symbol)==null?void 0:m.name)==="PropFnInterface")return;r.report({messageId:"invalidJsxDollar",node:v.expression,data:{varName:v.expression.name,solution:`const ${v.expression.name} = $(
301
- ${kp(h.symbol,r.sourceCode.text)}
298
+ Check out https://qwik.dev/docs/advanced/dollar/ for more details.`}},create(r){let t={allowAny:r.options[0]?.allowAny??!0},n=r.sourceCode.scopeManager,o=Or.getParserServices(r),i=o.esTreeNodeToTSNodeMap,a=o.program.getTypeChecker(),u=new Map;function c(p){p.references.forEach(m=>{let l=m.resolved,f=m.resolved?.scope;if(l&&f){let d=l.defs.at(0)?.type;if(d==="Type"||d==="ImportBinding"||sb(l,r))return;let y=m.from,S;for(;y&&(S=u.get(y),!S);)y=y.upper;if(y&&S){let A=f.type;if(A==="global"||A==="module")return;let P=m.identifier,j=i.get(P),w=f;for(;w&&!u.has(w);)w=w.upper;if(w!==y){P.parent&&P.parent.type==="AssignmentExpression"&&P.parent.left===P&&r.report({messageId:"mutableIdentifier",node:m.identifier,data:{varName:m.identifier.name,dollarName:S}});let I=eb(r,a,j,m.identifier,t);I&&r.report({messageId:"referencesOutside",node:m.identifier,data:{varName:m.identifier.name,dollarName:S,reason:rb(I)}})}}}}),p.childScopes.forEach(c)}return{CallExpression(p){if(p.callee.type==="Identifier"&&p.callee.name.endsWith("$")){let m=p.arguments.at(0);if(m&&m.type==="ArrowFunctionExpression"){let l=n.acquire(m);l&&u.set(l,p.callee.name)}}},JSXAttribute(p){let m=p.name,l=m.type==="JSXIdentifier"?m.name:m.name.name;if(l.endsWith("$")){let f=p.value;if(f&&f.type==="JSXExpressionContainer"){let d=n.acquire(f.expression);if(d)u.set(d,l);else if(f.expression.type==="Identifier"){let y=i.get(f.expression),S=a.getTypeAtLocation(y).getNonNullableType();if(!Yp(S))if(S.isUnionOrIntersection())S.types.every(A=>A.symbol?A.symbol.name==="Component"||A.symbol.name==="PropFnInterface":!1)||r.report({messageId:"invalidJsxDollar",node:f.expression,data:{varName:f.expression.name,solution:`Fix the type of ${f.expression.name} to be QRL`}});else{if(S.symbol?.name==="PropFnInterface")return;r.report({messageId:"invalidJsxDollar",node:f.expression,data:{varName:f.expression.name,solution:`const ${f.expression.name} = $(
299
+ ${Zp(S.symbol,r.sourceCode.text)}
302
300
  );
303
- `}})}}}}},Program(d){let f=i.get(d),y=a.getSymbolAtLocation(f);y&&(exports=a.getExportsOfModule(y))},"Program:exit"(){c(n.globalScope)}}}});function ub(r,e,t,n,o){let i=e.getTypeAtLocation(t);return pb(r,e,i,t,n,o,new Set)}function lb(r){let e="";return r.location?e+=`"${r.location}" `:e+="it ",e+=`${r.reason}`,e}function pb(r,e,t,n,o,i,a){let u=Me(r,e,t,n,i,0,a);if(u){let c=u.location;return c&&(u.location=`${o.name}.${c}`),u}return u}function Me(r,e,t,n,o,i,a){var m;if(a.has(t)||(a.add(t),t.getProperties().some(v=>/(__no_serialize__|__qwik_serializable__|NoSerializeSymbol|SerializerSymbol)/i.test(v.escapedName))))return;if(t.flags&H.default.TypeFlags.Unknown)return{type:t,typeStr:e.typeToString(t),reason:"is unknown, which could be serializable or not, please make the type more specific"};let c=t.flags&H.default.TypeFlags.Any;if(!o.allowAny&&c)return{type:t,typeStr:e.typeToString(t),reason:"is any, which is not serializable"};if(t.flags&H.default.TypeFlags.ESSymbolLike)return{type:t,typeStr:e.typeToString(t),reason:"is Symbol, which is not serializable"};if(t.flags&H.default.TypeFlags.Enum)return{type:t,typeStr:e.typeToString(t),reason:"is an enum, use an string or a number instead"};if(_p(t)||((m=t.symbol)==null?void 0:m.name)==="JSXNode")return;if(t.getCallSignatures().length>0){let v=t.symbol.name;if(v==="PropFnInterface"||v==="RefFnInterface"||v==="bivarianceHack"||v==="FunctionComponent")return;let p="is a function, which is not serializable";if(i===0&&H.default.isIdentifier(n)){let g=`const ${n.text} = $(
304
- ${kp(t.symbol,r.sourceCode.text)}
305
- );`;p+=`.
301
+ `}})}}}}},Program(p){let m=i.get(p),l=a.getSymbolAtLocation(m);l&&(exports=a.getExportsOfModule(l))},"Program:exit"(){c(n.globalScope)}}}});function eb(r,e,t,n,o){let i=e.getTypeAtLocation(t);return tb(r,e,i,t,n,o,new Set)}function rb(r){let e="";return r.location?e+=`"${r.location}" `:e+="it ",e+=`${r.reason}`,e}function tb(r,e,t,n,o,i,a){let u=Ue(r,e,t,n,i,0,a);if(u){let c=u.location;return c&&(u.location=`${o.name}.${c}`),u}return u}function Ue(r,e,t,n,o,i,a){if(a.has(t)||(a.add(t),t.getProperties().some(d=>/(__no_serialize__|__qwik_serializable__|NoSerializeSymbol|SerializerSymbol)/i.test(d.escapedName))))return;if(t.flags&M.default.TypeFlags.Unknown)return{type:t,typeStr:e.typeToString(t),reason:"is unknown, which could be serializable or not, please make the type more specific"};let c=t.flags&M.default.TypeFlags.Any;if(!o.allowAny&&c)return{type:t,typeStr:e.typeToString(t),reason:"is any, which is not serializable"};if(t.flags&M.default.TypeFlags.ESSymbolLike)return{type:t,typeStr:e.typeToString(t),reason:"is Symbol, which is not serializable"};if(t.flags&M.default.TypeFlags.Enum)return{type:t,typeStr:e.typeToString(t),reason:"is an enum, use an string or a number instead"};if(Yp(t)||t.symbol?.name==="JSXNode")return;if(t.getCallSignatures().length>0){let d=t.symbol.name;if(d==="PropFnInterface"||d==="RefFnInterface"||d==="bivarianceHack"||d==="FunctionComponent")return;let y="is a function, which is not serializable";if(i===0&&M.default.isIdentifier(n)){let S=`const ${n.text} = $(
302
+ ${Zp(t.symbol,r.sourceCode.text)}
303
+ );`;y+=`.
306
304
  Did you mean to wrap it in \`$()\`?
307
305
 
308
- ${g}
309
- `}return{type:t,typeStr:e.typeToString(t),reason:p}}if(t.isUnion()){for(let v of t.types){let p=Me(r,e,v,n,o,i+1,a);if(p)return p}return}if((t.flags&H.default.TypeFlags.Object)!==0){let v=fb(t,e);if(v)return Me(r,e,v,n,o,i+1,a);let p=db(t,e);if(p){for(let b of p){let T=Me(r,e,b,n,o,i+1,a);if(T)return T}return}let g=t.symbol.name;if(t.getProperty("nextElementSibling")||t.getProperty("activeElement")||g in gb)return;if(t.isClass())return{type:t,typeStr:e.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=e.getTypeOfSymbolAtLocation(h,n);if(b.isClass())return{type:b,typeStr:e.typeToString(b),reason:"is a class constructor, which is not serializable"}}if(!g.startsWith("__")&&t.symbol.valueDeclaration)return{type:t,typeStr:e.typeToString(t),reason:`is an instance of the "${t.symbol.name}" class, which is not serializable`};for(let b of t.getProperties()){let T=cb(r,e,b,n,o,i+1,a);if(T){let O=T.location;return T.location=`${b.name}${O?`.${O}`:""}`,T}}}}function cb(r,e,t,n,o,i,a){let u=e.getTypeOfSymbolAtLocation(t,n);return Me(r,e,u,n,o,i,a)}function fb(r,e){return e.getElementTypeOfArrayType(r)}function db(r,e){return e.isTupleType(r)?e.getTypeArguments(r):void 0}function _p(r){return!!(r.flags&H.default.TypeFlags.Any)||!!r.getNonNullableType().getProperty("__brand__QRL__")}function kp(r,e){if(r&&r.declarations&&r.declarations.length>0){let t=r.declarations[0],n=e.slice(t.pos,t.end).replace(/^\s*$/gm,"");return kn(n,2)}return""}function yb(r,e){let t=r.defs[0];if(!t||t.type!=="Variable")return!1;let n=t.node.init;if((n==null?void 0:n.type)==="CallExpression"&&n.callee.type==="Identifier"&&/^use[A-Z]/.test(n.callee.name)){let o=n.callee.name,a=e.sourceCode.getScope(t.node).references.find(u=>u.identifier.name===o);return(a==null?void 0:a.resolved)&&mb(a.resolved)}return!1}function mb(r){return r.defs.some(e=>{if(e.type!=="ImportBinding")return!1;let t=e.parent.source.value;return t.startsWith("@qwik.dev/core")||t.startsWith("@qwik.dev/router")||t.startsWith("@builder.io/qwik")||t.startsWith("@builder.io/qwik-city")})}var gb={Promise:!0,URL:!0,RegExp:!0,Date:!0,FormData:!0,URLSearchParams:!0,Error:!0,Set:!0,Map:!0,Uint8Array:!0},mw=`
306
+ ${S}
307
+ `}return{type:t,typeStr:e.typeToString(t),reason:y}}if(t.isUnion()){for(let d of t.types){let y=Ue(r,e,d,n,o,i+1,a);if(y)return y}return}if((t.flags&M.default.TypeFlags.Object)!==0){let d=ib(t,e);if(d)return Ue(r,e,d,n,o,i+1,a);let y=ab(t,e);if(y){for(let w of y){let I=Ue(r,e,w,n,o,i+1,a);if(I)return I}return}let S=t.symbol.name;if(t.getProperty("nextElementSibling")||t.getProperty("activeElement")||S in lb)return;if(t.isClass())return{type:t,typeStr:e.typeToString(t),reason:`is an instance of the "${t.symbol.name}" class, which is not serializable. Use a simple object literal instead`};let A=t.getProperty("prototype");if(A){let w=e.getTypeOfSymbolAtLocation(A,n);if(w.isClass())return{type:w,typeStr:e.typeToString(w),reason:"is a class constructor, which is not serializable"}}if(!S.startsWith("__")&&t.symbol.valueDeclaration)return{type:t,typeStr:e.typeToString(t),reason:`is an instance of the "${t.symbol.name}" class, which is not serializable`};let P=ob(t),j=P?[P]:t.getProperties();for(let w of j){let I=nb(r,e,w,n,o,i+1,a);if(I){let Se=I.location;return I.location=`${w.name}${Se?`.${Se}`:""}`,I}}}}function nb(r,e,t,n,o,i,a){let u=e.getTypeOfSymbolAtLocation(t,n);return Ue(r,e,u,n,o,i,a)}function ob(r){let e=r.getProperty("value");if(e){if(r.symbol?.escapedName?.endsWith("Signal"))return e;for(let t of e.declarations??[]){let n=t.parent;if(n&&M.default.isInterfaceDeclaration(n)&&n.name.text.endsWith("Signal"))return e}}}function ib(r,e){return e.getElementTypeOfArrayType(r)}function ab(r,e){return e.isTupleType(r)?e.getTypeArguments(r):void 0}function Yp(r){return!!(r.flags&M.default.TypeFlags.Any)||!!r.getNonNullableType().getProperty("__brand__QRL__")}function Zp(r,e){if(r&&r.declarations&&r.declarations.length>0){let t=r.declarations[0],n=e.slice(t.pos,t.end).replace(/^\s*$/gm,"");return Jn(n,2)}return""}function sb(r,e){let t=r.defs[0];if(!t||t.type!=="Variable")return!1;let n=t.node.init;if(n?.type==="CallExpression"&&n.callee.type==="Identifier"&&/^use[A-Z]/.test(n.callee.name)){let o=n.callee.name,a=e.sourceCode.getScope(t.node).references.find(u=>u.identifier.name===o);return a?.resolved&&ub(a.resolved)}return!1}function ub(r){return r.defs.some(e=>{if(e.type!=="ImportBinding")return!1;let t=e.parent.source.value;return t.startsWith("@qwik.dev/core")||t.startsWith("@qwik.dev/router")||t.startsWith("@builder.io/qwik")||t.startsWith("@builder.io/qwik-city")})}var lb={Promise:!0,URL:!0,RegExp:!0,Date:!0,FormData:!0,URLSearchParams:!0,Error:!0,Set:!0,Map:!0,Uint8Array:!0,Duration:!0,Instant:!0,PlainDate:!0,PlainDateTime:!0,PlainMonthDay:!0,PlainTime:!0,PlainYearMonth:!0,ZonedDateTime:!0},OT=`
310
308
  import { component$, useTask$, $ } from '@qwik.dev/core';
311
309
 
312
310
  export const HelloWorld = component$(() => {
@@ -319,7 +317,7 @@ export const HelloWorld = component$(() => {
319
317
  });
320
318
 
321
319
  return <h1>Hello</h1>;
322
- });`.trim(),gw=`
320
+ });`.trim(),$T=`
323
321
  import { component$, useTask$ } from '@qwik.dev/core';
324
322
 
325
323
  export const HelloWorld = component$(() => {
@@ -332,7 +330,7 @@ export const HelloWorld = component$(() => {
332
330
  });
333
331
 
334
332
  return <h1>Hello</h1>;
335
- });`.trim(),vw=`
333
+ });`.trim(),FT=`
336
334
  import { component$, $ } from '@qwik.dev/core';
337
335
 
338
336
  export const HelloWorld = component$(() => {
@@ -340,7 +338,7 @@ export const HelloWorld = component$(() => {
340
338
  return (
341
339
  <button onClick$={click}>log it</button>
342
340
  );
343
- });`.trim(),hw=`
341
+ });`.trim(),_T=`
344
342
  import { component$ } from '@qwik.dev/core';
345
343
 
346
344
  export const HelloWorld = component$(() => {
@@ -348,7 +346,7 @@ export const HelloWorld = component$(() => {
348
346
  return (
349
347
  <button onClick$={click}>log it</button>
350
348
  );
351
- });`.trim(),bw=`
349
+ });`.trim(),NT=`
352
350
  import { component$ } from '@qwik.dev/core';
353
351
 
354
352
  export const HelloWorld = component$(() => {
@@ -361,7 +359,7 @@ export const HelloWorld = component$(() => {
361
359
  {person.name}
362
360
  </button>
363
361
  );
364
- });`.trim(),Sw=`
362
+ });`.trim(),RT=`
365
363
  import { component$ } from '@qwik.dev/core';
366
364
 
367
365
  export const HelloWorld = component$(() => {
@@ -374,7 +372,7 @@ export const HelloWorld = component$(() => {
374
372
  {personName}
375
373
  </button>
376
374
  );
377
- });`.trim();var Ip=require("@typescript-eslint/utils"),vb=Ip.ESLintUtils.RuleCreator(r=>`https://qwik.dev/docs/advanced/eslint/#${r}`),Cp=vb({name:"serializer-signal-usage",meta:{type:"problem",docs:{description:"Ensure signals used in update() are also used in deserialize()"},schema:[],messages:{serializerSignalMismatch:"Signals/Stores used in update() must also be used in deserialize(). Missing: {{signals}}"}},defaultOptions:[],create(r){function e(n){return n.endsWith("Signal")||n.endsWith("Store")||n==="signal"||n==="store"}function t(n){let o=new Set,i=new WeakSet,a=new Set;"params"in n&&Array.isArray(n.params)&&n.params.forEach(l=>{l.type==="Identifier"&&a.add(l.name)});function u(l){let d=l.parent;return d?d.type==="AssignmentExpression"&&d.left===l||d.type==="UpdateExpression"&&d.argument===l:!1}function c(l){if(!(!l||typeof l!="object"||i.has(l))){i.add(l),l.type==="MemberExpression"&&!u(l)&&l.object.type==="Identifier"&&!a.has(l.object.name)&&(l.property.type==="Identifier"&&l.property.name==="value"?o.add(l.object.name):l.property.type==="Identifier"&&e(l.object.name)&&o.add(`${l.object.name}.${l.property.name}`)),l.type==="Identifier"&&!a.has(l.name)&&e(l.name)&&o.add(l.name);for(let d in l){if(d==="parent")continue;let f=l[d];Array.isArray(f)?f.forEach(c):f&&typeof f=="object"&&(f.parent=l,c(f))}}}return n.type==="BlockStatement"?n.body.forEach(c):c(n),o}return{CallExpression(n){if(n.callee.type==="Identifier"&&(n.callee.name==="useSerializer$"||n.callee.name==="createSerializer$")){let o=n.arguments[0];if(o&&(o.type==="ArrowFunctionExpression"||o.type==="FunctionExpression")){let i;if(o.body.type==="BlockStatement"){let a=o.body.body.find(u=>u.type==="ReturnStatement");a&&a.argument&&a.argument.type==="ObjectExpression"&&(i=a.argument)}else o.body.type==="ObjectExpression"&&(i=o.body);if(i){let a=i.properties.find(c=>c.type==="Property"&&c.key.type==="Identifier"&&c.key.name==="update"),u=i.properties.find(c=>c.type==="Property"&&c.key.type==="Identifier"&&c.key.name==="deserialize");if(a&&u){let c=a.value,l=u.value;if((c.type==="ArrowFunctionExpression"||c.type==="FunctionExpression")&&(l.type==="ArrowFunctionExpression"||l.type==="FunctionExpression")){let d=t(c.body),f=t(l.body),y=Array.from(d).filter(p=>!f.has(p)),m=Array.from(f).filter(p=>!d.has(p)),v=[...y,...m];v.length>0&&r.report({node:a,messageId:"serializerSignalMismatch",data:{signals:v.join(", ")}})}}}}}}}}}),ww=`
375
+ });`.trim();var ec=require("@typescript-eslint/utils");var pb=ec.ESLintUtils.RuleCreator(r=>`https://qwik.dev/docs/advanced/eslint/#${r}`),rc=pb({name:"serializer-signal-usage",meta:{type:"problem",docs:{description:"Ensure signals used in update() are also used in deserialize()"},schema:[],messages:{serializerSignalMismatch:"Signals/Stores used in update() must also be used in deserialize(). Missing: {{signals}}"}},defaultOptions:[],create(r){function e(i){return i.endsWith("Signal")||i.endsWith("Store")||i==="signal"||i==="store"}function t(i,a){return a?a.type==="AssignmentExpression"&&a.left===i||a.type==="UpdateExpression"&&a.argument===i:!1}function n(i){let a=new Set,u=new Set;return Nr(i.body,(c,p)=>{c.type==="MemberExpression"&&!t(c,p)&&c.object.type==="Identifier"&&!u.has(c.object.name)&&(c.property.type==="Identifier"&&c.property.name==="value"?a.add(c.object.name):c.property.type==="Identifier"&&e(c.object.name)&&a.add(`${c.object.name}.${c.property.name}`)),c.type==="Identifier"&&!u.has(c.name)&&e(c.name)&&a.add(c.name)}),a}function o(i){if(i.body.type==="ObjectExpression")return i.body;if(i.body.type!=="BlockStatement")return;let a=i.body.body.find(u=>u.type==="ReturnStatement");return a?.argument?.type==="ObjectExpression"?a.argument:void 0}return{CallExpression(i){if(i.callee.type!=="Identifier"||i.callee.name!=="useSerializer$"&&i.callee.name!=="createSerializer$")return;let a=i.arguments[0];if(!Xe(a))return;let u=o(a);if(!u)return;let c=Rr(u,"update"),p=Rr(u,"deserialize"),m=c?.value,l=p?.value;if(!c||!Xe(m)||!Xe(l))return;let f=n(m),d=n(l),y=[...Array.from(f).filter(S=>!d.has(S)),...Array.from(d).filter(S=>!f.has(S))];y.length>0&&r.report({node:c,messageId:"serializerSignalMismatch",data:{signals:y.join(", ")}})}}}}),DT=`
378
376
  import { useSignal, useSerializer$ } from '@qwik.dev/core';
379
377
  import MyClass from './my-class';
380
378
 
@@ -390,7 +388,7 @@ export default component$(() => {
390
388
  }));
391
389
 
392
390
  return <div>{myClass.count}</div>;
393
- });`.trim(),qw=`
391
+ });`.trim(),VT=`
394
392
  import { useSignal, useSerializer$ } from '@qwik.dev/core';
395
393
  import MyClass from './my-class';
396
394
 
@@ -407,4 +405,5 @@ export default component$(() => {
407
405
  }));
408
406
 
409
407
  return <div>{myClass.count}</div>;
410
- });`.trim();var In={name:"eslint-plugin-qwik",description:"An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",version:"2.0.0-beta.9",author:"Qwik Team",bugs:"https://github.com/QwikDev/qwik/issues",dependencies:{"@typescript-eslint/utils":"^8.38.0","jsx-ast-utils":"^3.3.5"},devDependencies:{"@qwik.dev/core":"workspace:*","@qwik.dev/router":"workspace:*","@types/estree":"1.0.8","@typescript-eslint/rule-tester":"8.38.0",redent:"4.0.0"},engines:{node:"^18.17.0 || ^20.3.0 || >=21.0.0"},files:["README.md","dist"],homepage:"https://github.com/QwikDev/qwik#readme",keywords:["eslint","qwik"],license:"MIT",main:"dist/index.js",peerDependencies:{eslint:"^8.57.0 || ^9.0.0"},repository:{type:"git",url:"https://github.com/QwikDev/qwik.git",directory:"packages/eslint-rules"},scripts:{test:"cd ../..; ./node_modules/.bin/vitest packages/eslint-plugin-qwik/qwik.unit.ts"}};var q=require("@typescript-eslint/utils"),bb="isServer";function Cn(r,e){if(!e)return!1;let t=r.parent;for(;t;){if(t===e)return!0;t=t.parent}return!1}var Fp={meta:{type:"problem",docs:{description:"Disallow direct or indirect (via one-level function call) Node.js API usage in useTask$ without a server guard (e.g., isServer).",category:"Best Practices",recommended:!0,url:""},fixable:void 0,schema:[{type:"object",properties:{forbiddenApis:{type:"array",items:{type:"string"},default:["process","fs","os","path","child_process","http","https","Buffer","__dirname","__filename"]}},additionalProperties:!1}],messages:{unsafeApiUsage:"Node.js API '{{apiName}}' should only be used inside an '{{guardName}}' block within useTask$. Example: if ({{guardName}}) { {{apiName}}.call(); }",unsafeApiUsageInCalledFunction:"Node.js API '{{apiName}}' used in function '{{calledFunctionName}}' (called from useTask$) needs '{{guardName}}' protection. Either guard the call site or protect the API usage within '{{calledFunctionName}}'."}},create(r){let e=r.options[0]||{},t=new Set(e.forbiddenApis||["process","fs","os","path","child_process","http","https","Buffer","__dirname","__filename"]),n=bb,o=r.sourceCode,i=null;function a(l,d){let f=l.parent;for(;f&&f!==d.body&&f!==d;){if(f.type===q.AST_NODE_TYPES.IfStatement){let y=f;if(Cn(l,y.consequent)||l===y.consequent){let m=y.test;if(m.type===q.AST_NODE_TYPES.Identifier&&m.name===n||m.type===q.AST_NODE_TYPES.BinaryExpression&&m.operator==="==="&&(m.left.type===q.AST_NODE_TYPES.Identifier&&m.left.name===n&&m.right.type===q.AST_NODE_TYPES.Literal&&m.right.value===!0||m.right.type===q.AST_NODE_TYPES.Identifier&&m.right.name===n&&m.left.type===q.AST_NODE_TYPES.Literal&&m.left.value===!0)||m.type===q.AST_NODE_TYPES.UnaryExpression&&m.operator==="!"&&m.argument.type===q.AST_NODE_TYPES.UnaryExpression&&m.argument.operator==="!"&&m.argument.argument.type===q.AST_NODE_TYPES.Identifier&&m.argument.argument.name===n)return!0}}f=f.parent}return!1}function u(l){let d=o.getScope(l),f=null,y=d;for(;y;){let m=y.variables.find(v=>v.name===l.name);if(m){f=m;break}if(y.type==="global"){f=y.variables.find(v=>v.name===l.name);break}y=y.upper}return!f||f.defs.length===0?!1:f.defs.some(m=>m.type==="Variable"||m.type==="Parameter"||m.type==="FunctionName"||m.type==="ClassName"||m.type==="ImportBinding")}function c(l,d,f){function y(m){var v;if(!m)return!1;if(m.type===q.AST_NODE_TYPES.Identifier&&t.has(m.name)&&!u(m)&&!a(m,d))return r.report({node:f,messageId:"unsafeApiUsageInCalledFunction",data:{apiName:m.name,calledFunctionName:((v=d.id)==null?void 0:v.name)||(f.type===q.AST_NODE_TYPES.Identifier?f.name:"[anonymous]"),guardName:n}}),!0;for(let p in m){if(p==="parent"||p==="range"||p==="loc")continue;let g=m[p];if(Array.isArray(g)){for(let h of g)if(h&&typeof h=="object"&&"type"in h&&y(h))return!0}else if(g&&typeof g=="object"&&"type"in g&&y(g))return!0}return!1}y(l)}return{":function"(l){let d=l.parent;d&&d.type===q.AST_NODE_TYPES.CallExpression&&d.callee.type===q.AST_NODE_TYPES.Identifier&&d.callee.name==="useTask$"&&d.arguments.length>0&&d.arguments[0]===l&&(i=l)},":function:exit"(l){i===l&&(i=null)},Identifier(l){if(i&&!(i.body!==l&&!Cn(l,i.body))&&!(l.parent&&l.parent.type===q.AST_NODE_TYPES.CallExpression&&l.parent.callee===l)&&t.has(l.name)){if(u(l))return;a(l,i)||r.report({node:l,messageId:"unsafeApiUsage",data:{apiName:l.name,guardName:n}})}},CallExpression(l){if(i&&Cn(l,i.body)&&!a(l,i)&&l.callee.type===q.AST_NODE_TYPES.Identifier){let d=l.callee,f=o.getScope(d),y=null,m=f.references.find(p=>p.identifier===d);if(m&&m.resolved)y=m.resolved;else{let p=f;for(;p;){let g=p.variables.find(h=>h.name===d.name);if(g&&g.defs.length>0){y=g;break}if(p.type==="global"&&!g){let h=p.type==="global"?p.variables.find(b=>b.name===d.name):null;h&&(y=h);break}if(!p.upper)break;p=p.upper}}let v=y;if(v&&v.defs.length>0){let p=v.defs[0],g=null;if(p.node.type===q.AST_NODE_TYPES.FunctionDeclaration?g=p.node:p.node.type===q.AST_NODE_TYPES.VariableDeclarator&&p.node.init&&(p.node.init.type===q.AST_NODE_TYPES.FunctionExpression||p.node.init.type===q.AST_NODE_TYPES.ArrowFunctionExpression)&&(g=p.node.init),g){let h=(g.body.type===q.AST_NODE_TYPES.BlockStatement,g.body);c(h,g,l)}}}}}}};var Np={"valid-lexical-scope":$p,"use-method-usage":Tp,"no-react-props":xp,"loader-location":Sp,"prefer-classlist":wp,"jsx-no-script-url":hp,"jsx-key":gp,"unused-server":qp,"jsx-img":Un,"jsx-a":Vn,"no-use-visible-task":Ep,"serializer-signal-usage":Cp,"scope-use-task":Fp},Rp={"qwik/valid-lexical-scope":"error","qwik/use-method-usage":"error","qwik/no-react-props":"error","qwik/loader-location":"warn","qwik/prefer-classlist":"warn","qwik/jsx-no-script-url":"warn","qwik/jsx-key":"warn","qwik/unused-server":"error","qwik/jsx-img":"warn","qwik/jsx-a":"warn","qwik/no-use-visible-task":"warn","qwik/serializer-signal-usage":"error","qwik/scope-use-task":"error"},jp={"qwik/valid-lexical-scope":"error","qwik/use-method-usage":"error","qwik/no-react-props":"error","qwik/loader-location":"error","qwik/prefer-classlist":"error","qwik/jsx-no-script-url":"error","qwik/jsx-key":"error","qwik/unused-server":"error","qwik/jsx-img":"error","qwik/jsx-a":"error","qwik/no-use-visible-task":"warn","qwik/serializer-signal-usage":"error","qwik/scope-use-task":"error"},Sb={recommended:{plugins:["qwik"],rules:Rp},strict:{plugins:["qwik"],rules:jp}},Fn={configs:{get recommended(){return xb},get strict(){return Eb}},meta:{name:In.name,version:In.version},rules:Np},xb=[{plugins:{qwik:Fn},rules:Rp}],Eb=[{plugins:{qwik:Fn},rules:jp}];0&&(module.exports={configs,qwikEslint9Plugin,rules});
408
+ });`.trim();var tc={meta:{type:"suggestion",docs:{description:"Detect preventDefault in $(()=>{}) Async Functions.",recommended:!0,url:"https://qwik.dev/docs/components/events/#preventdefault--stoppropagation"},messages:{noAsyncPreventDefault:`This is an asynchronous function and does not support preventDefault.
409
+ Use preventDefault attributes instead`}},create(r){return{"CallExpression[callee.property.name='preventDefault']"(e){let t=e.parent;for(;t;){if(t.type==="CallExpression"&&t.callee&&t.callee.type==="Identifier"&&t.callee.name==="$"){r.report({node:e,messageId:"noAsyncPreventDefault"});break}t=t.parent}}}}};var cb=new Set(["useTask$","useTaskQrl"]);function fb(r){return r.callee.type==="Identifier"&&cb.has(r.callee.name)}function db(r){let e=r.arguments[0];return e?.type==="ArrowFunctionExpression"||e?.type==="FunctionExpression"?e:null}function Wn(r){return r?r.type==="AssignmentPattern"?Wn(r.right):r.type==="Literal"&&r.value===!1?!0:r.type==="TSAsExpression"?Wn(r.expression):!1:!1}function mb(r){let e=r.arguments[1];if(!e||e.type!=="ObjectExpression")return!1;for(let t of e.properties){if(t.type!=="Property"||t.computed)continue;let n=t.key;if((n.type==="Identifier"?n.name:n.type==="Literal"?String(n.value):null)==="deferUpdates"&&Wn(t.value))return!0}return!1}function nc(r){let e=new Set;return te(r,t=>{t.type==="VariableDeclarator"&&t.id.type==="Identifier"&&t.init&&t.init.type==="CallExpression"&&t.init.callee.type==="Identifier"&&t.init.callee.name==="useNavigate"&&e.add(t.id.name)}),e}function yb(r){let e=new Set,t=r.parent;for(;t;){if(t.type==="ArrowFunctionExpression"||t.type==="FunctionExpression"){let n=t.parent;if(n?.type==="CallExpression"&&n.callee.type==="Identifier"&&n.callee.name==="component$")for(let o of nc(t))e.add(o)}if(t.type==="Program"){for(let n of nc(t))e.add(n);break}t=t.parent??null}return e}function gb(r,e,t){te(e,n=>{if(n.type==="AwaitExpression"){let o=n.argument;o.type==="CallExpression"&&o.callee.type==="Identifier"&&t.has(o.callee.name)&&r.report({node:n,messageId:"noAwaitBlocking",data:{name:o.callee.name}})}})}var oc={meta:{type:"problem",docs:{description:"Disallow awaiting the function returned by `useNavigate()` inside blocking `useTask$` callbacks.",recommended:!0,url:"https://qwik.dev/docs/advanced/eslint/"},messages:{noAwaitBlocking:"Awaiting `{{name}}()` from `useNavigate()` inside a blocking `useTask$` can deadlock. Remove `await`, or pass `{ deferUpdates: false }` as the second argument to `useTask$`."}},create(r){return{CallExpression(e){if(!fb(e)||mb(e))return;let t=db(e);if(!t)return;let n=yb(e);n.size&&gb(r,t.body,n)}}}};var Gn={name:"eslint-plugin-qwik",description:"An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",version:"2.0.0-rc.2",author:"Qwik Team",bugs:"https://github.com/QwikDev/qwik/issues",dependencies:{"@typescript-eslint/utils":"^8.59.2","jsx-ast-utils":"^3.3.5"},devDependencies:{"@qwik.dev/core":"workspace:*","@qwik.dev/router":"workspace:*","@types/estree":"1.0.8","@typescript-eslint/rule-tester":"8.59.2",redent:"4.0.0"},engines:{node:"^18.17.0 || ^20.3.0 || >=21.0.0"},files:["README.md","dist"],homepage:"https://github.com/QwikDev/qwik#readme",keywords:["eslint","qwik"],license:"MIT",main:"dist/index.js",peerDependencies:{eslint:"^8.57.0 || ^9.0.0 || ^10.0.0"},repository:{type:"git",url:"https://github.com/QwikDev/qwik.git",directory:"packages/eslint-rules"},scripts:{test:"cd ../..; ./node_modules/.bin/vitest packages/eslint-plugin-qwik/qwik.unit.ts"}};var E=require("@typescript-eslint/utils");var Sb="isServer",ic=["process","__dirname","__filename","module"],ac=["fs","os","path","child_process","http","https","Buffer"],sc={meta:{type:"problem",docs:{description:"Disallow direct or indirect (via one-level function call) Node.js API usage in useTask$ without a server guard (e.g., isServer).",url:""},fixable:void 0,schema:[{type:"object",properties:{forbiddenApis:{type:"array",items:{type:"string"},default:ac}},additionalProperties:!1}],messages:{unsafeApiUsage:"Node.js API '{{apiName}}' should only be used inside an '{{guardName}}' block within useTask$. Example: if ({{guardName}}) { {{apiName}}.call(); }",unsafeApiUsageInCalledFunction:"Node.js API '{{apiName}}' used in function '{{calledFunctionName}}' (called from useTask$) needs '{{guardName}}' protection. Either guard the call site or protect the API usage within '{{calledFunctionName}}'."}},create(r){let e=r.options[0]||{},t=new Set(e.forbiddenApis||ac.concat(ic)),n=Sb,o=r.sourceCode,i=null;function a(p,m){let l=p.parent;for(;l&&l!==m.body&&l!==m;){if(l.type===E.AST_NODE_TYPES.IfStatement){let f=l;if(We(p,f.consequent)||p===f.consequent){let d=f.test;if(d.type===E.AST_NODE_TYPES.Identifier&&d.name===n||d.type===E.AST_NODE_TYPES.BinaryExpression&&d.operator==="==="&&(d.left.type===E.AST_NODE_TYPES.Identifier&&d.left.name===n&&d.right.type===E.AST_NODE_TYPES.Literal&&d.right.value===!0||d.right.type===E.AST_NODE_TYPES.Identifier&&d.right.name===n&&d.left.type===E.AST_NODE_TYPES.Literal&&d.left.value===!0)||d.type===E.AST_NODE_TYPES.UnaryExpression&&d.operator==="!"&&d.argument.type===E.AST_NODE_TYPES.UnaryExpression&&d.argument.operator==="!"&&d.argument.argument.type===E.AST_NODE_TYPES.Identifier&&d.argument.argument.name===n)return!0}}l=l.parent}return!1}function u(p){let m=o.getScope(p),l=null,f=m;if(!ic.includes(p.name))return!0;for(;f;){let d=f.variables.find(y=>y.name===p.name);if(d){l=d;break}if(f.type==="global"){l=f.variables.find(y=>y.name===p.name);break}f=f.upper}return!l||l.defs.length===0?!1:l.defs.some(d=>d.type==="Variable"||d.type==="Parameter"||d.type==="FunctionName"||d.type==="ClassName"||d.type==="ImportBinding")}function c(p,m,l){te(p,f=>f.type===E.AST_NODE_TYPES.Identifier&&t.has(f.name)&&!u(f)&&!a(f,m)?(r.report({node:l,messageId:"unsafeApiUsageInCalledFunction",data:{apiName:f.name,calledFunctionName:m.id?.name||(l.type===E.AST_NODE_TYPES.Identifier?l.name:"[anonymous]"),guardName:n}}),!0):!1)}return{":function"(p){let m=p.parent;m&&m.type===E.AST_NODE_TYPES.CallExpression&&m.callee.type===E.AST_NODE_TYPES.Identifier&&m.callee.name==="useTask$"&&m.arguments.length>0&&m.arguments[0]===p&&(i=p)},":function:exit"(p){i===p&&(i=null)},Identifier(p){if(i&&!(i.body!==p&&!We(p,i.body))&&!(p.parent&&p.parent.type===E.AST_NODE_TYPES.CallExpression&&p.parent.callee===p)&&t.has(p.name)){if(u(p))return;a(p,i)||r.report({node:p,messageId:"unsafeApiUsage",data:{apiName:p.name,guardName:n}})}},CallExpression(p){if(i&&We(p,i.body)&&!a(p,i)&&p.callee.type===E.AST_NODE_TYPES.Identifier){let m=p.callee,l=V(r,m);if(l&&l.defs.length>0){let f=l.defs[0],d=null;if(f.node.type===E.AST_NODE_TYPES.FunctionDeclaration?d=f.node:f.node.type===E.AST_NODE_TYPES.VariableDeclarator&&f.node.init&&(f.node.init.type===E.AST_NODE_TYPES.FunctionExpression||f.node.init.type===E.AST_NODE_TYPES.ArrowFunctionExpression)&&(d=f.node.init),d){let y=(d.body.type===E.AST_NODE_TYPES.BlockStatement,d.body);c(y,d,p)}}}}}}};var h=require("@typescript-eslint/utils"),$=re(require("typescript"));function hb(r,e){return eo(r,e)}function uc(r,e){return r==="routeLoader$"||(r==="useComputed$"||r==="createComputed$")&&e}function bb(r){if(r.callee.type!==h.AST_NODE_TYPES.Identifier)return!1;let e=r.arguments[0],t=!!e&&(e.type===h.AST_NODE_TYPES.ArrowFunctionExpression||e.type===h.AST_NODE_TYPES.FunctionExpression)&&e.async;return uc(r.callee.name,t)}function xb(r){if(!$.default.isIdentifier(r.expression))return!1;let e=r.arguments[0],t=!!e&&($.default.isArrowFunction(e)||$.default.isFunctionExpression(e))&&!!e.modifiers?.some(n=>n.kind===$.default.SyntaxKind.AsyncKeyword);return uc(r.expression.text,t)}function Eb(r){let e=r.body[0];if(!e||e.type!==h.AST_NODE_TYPES.ExpressionStatement)return null;let t=e.expression;return t.type===h.AST_NODE_TYPES.MemberExpression&&!t.computed&&t.property.type===h.AST_NODE_TYPES.Identifier&&t.property.name==="value"?e:null}function wb(r,e){let t=V(r,e);if(!t||t.defs&&t.defs.length===0)return!1;let n=h.ESLintUtils.getParserServices(r),o=n?.program?.getTypeChecker(),i=n?.esTreeNodeToTSNodeMap;function a(u){return u?$.default.isVariableDeclaration(u)&&u.initializer&&$.default.isCallExpression(u.initializer)?xb(u.initializer):($.default.isExportSpecifier(u)||$.default.isImportSpecifier(u),!1):!1}for(let u of t.defs){if(u.type==="Variable"&&u.node.type===h.AST_NODE_TYPES.VariableDeclarator){let c=u.node.init;if(c&&c.type===h.AST_NODE_TYPES.CallExpression){let p=c.callee;if(p.type===h.AST_NODE_TYPES.Identifier){if(bb(c)&&Ge(V(r,p)))return!0;let m=V(r,p);if(m&&m.defs){for(let l of m.defs)if(l.type==="Variable"&&l.node.type===h.AST_NODE_TYPES.VariableDeclarator){let f=l.node.init;if(f&&f.type===h.AST_NODE_TYPES.CallExpression){let d=f.callee;if(d.type===h.AST_NODE_TYPES.Identifier&&d.name==="routeLoader$"&&Ge(V(r,d)))return!0}}}}}}if(u.type==="ImportBinding"&&o&&i)try{let c=i.get(e);if(c){let p=o.getSymbolAtLocation(c);if(p&&p.flags&$.default.SymbolFlags.Alias&&(p=o.getAliasedSymbol(p)),p){for(let f of p.declarations??[]){if(a(f))return!0;if($.default.isVariableStatement(f)){for(let d of f.declarationList.declarations)if(a(d))return!0}}let m=o.getTypeOfSymbolAtLocation(p,c),l=o.typeToString(m.getNonNullableType());if(/Async/i.test(l))return!0}}}catch{}}if(o&&i)try{let u=i.get(e),c=o.getTypeAtLocation(u),p=o.typeToString(c.getNonNullableType());if(/Async|LoaderSignal/i.test(p))return!0}catch{}return!1}function Tb(r,e,t){for(let n of r.body){if(n===e)break;if(n.type!==h.AST_NODE_TYPES.ExpressionStatement)continue;let o=n.expression;if(o.type!==h.AST_NODE_TYPES.AwaitExpression)continue;let i=o.argument;if(i.type===h.AST_NODE_TYPES.CallExpression&&(i=i.callee),i.type===h.AST_NODE_TYPES.MemberExpression&&!i.computed&&i.object.type===h.AST_NODE_TYPES.Identifier&&i.object.name===t&&i.property.type===h.AST_NODE_TYPES.Identifier&&i.property.name==="promise")return!0}return!1}function qb(r,e,t){let n=e.parent;if(n&&n.type===h.AST_NODE_TYPES.CallExpression&&n.callee.type===h.AST_NODE_TYPES.Identifier&&hb(r,n.callee)){for(let o of n.arguments)if(o===e)return!0}if(e.async){for(let o of e.params)if(o.type===h.AST_NODE_TYPES.Identifier&&o.name===t.name)return!0}return!1}var lc={meta:{type:"problem",docs:{description:"Warn when an async computed signal '.value' is read not at the top of a QRL callback.",recommended:!1,url:""},schema:[],messages:{asyncComputedNotTop:"Async computed '{{name}}.value' must be first, or use 'await {{name}}.promise()' beforehand."}},create(r){return{MemberExpression(e){if(e.computed||e.property.type!==h.AST_NODE_TYPES.Identifier||e.property.name!=="value")return;let t=e.object;if(t.type!==h.AST_NODE_TYPES.Identifier||!wb(r,t))return;let n=ro(e);if(!n||!qb(r,n,t))return;let o=e.parent;if(!o||o.type!==h.AST_NODE_TYPES.ExpressionStatement&&o.type!==h.AST_NODE_TYPES.ReturnStatement)return;let i=n.body&&n.body.type===h.AST_NODE_TYPES.BlockStatement?n.body:null;if(!i)return n.body.type===h.AST_NODE_TYPES.MemberExpression&&n.body===e,void 0;o.parent!==i||i.body[0]===o||Eb(i)===o||(o.type===h.AST_NODE_TYPES.ExpressionStatement||o.type===h.AST_NODE_TYPES.ReturnStatement)&&Tb(i,o,t.name)||r.report({node:e,messageId:"asyncComputedNotTop",data:{name:t.name}})}}}};var pc={"valid-lexical-scope":Qp,"use-method-usage":Kp,"no-react-props":Gp,"loader-location":Wp,"prefer-classlist":Hp,"jsx-no-script-url":Bp,"jsx-key":Vp,"unused-server":zp,"jsx-img":io,"jsx-a":no,"no-use-visible-task":Xp,"serializer-signal-usage":rc,"scope-use-task":sc,"use-async-top":lc,"no-async-prevent-default":tc,"no-await-navigate-in-use-task":oc},cc={"qwik/valid-lexical-scope":"error","qwik/use-method-usage":"error","qwik/no-react-props":"error","qwik/loader-location":"warn","qwik/prefer-classlist":"warn","qwik/jsx-no-script-url":"warn","qwik/jsx-key":"warn","qwik/unused-server":"error","qwik/jsx-img":"warn","qwik/jsx-a":"warn","qwik/no-use-visible-task":"warn","qwik/serializer-signal-usage":"error","qwik/scope-use-task":"error","qwik/use-async-top":"warn","qwik/no-async-prevent-default":"warn","qwik/no-await-navigate-in-use-task":"warn"},fc={"qwik/valid-lexical-scope":"error","qwik/use-method-usage":"error","qwik/no-react-props":"error","qwik/loader-location":"error","qwik/prefer-classlist":"error","qwik/jsx-no-script-url":"error","qwik/jsx-key":"error","qwik/unused-server":"error","qwik/jsx-img":"error","qwik/jsx-a":"error","qwik/no-use-visible-task":"warn","qwik/serializer-signal-usage":"error","qwik/scope-use-task":"error","qwik/use-async-top":"warn","qwik/no-async-prevent-default":"warn","qwik/no-await-navigate-in-use-task":"warn"},Ab={recommended:{plugins:["qwik"],rules:cc},strict:{plugins:["qwik"],rules:fc}},dc={configs:{get recommended(){return Pb},get strict(){return Ib}},meta:{name:Gn.name,version:Gn.version},rules:pc},mc=r=>[{plugins:{qwik:dc},rules:r}],Pb=mc(cc),Ib=mc(fc);0&&(module.exports={configs,qwikEslint9Plugin,rules});
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "eslint-plugin-qwik",
3
3
  "description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",
4
- "version": "2.0.0-beta.9",
4
+ "version": "2.0.0-rc.2",
5
5
  "author": "Qwik Team",
6
6
  "bugs": "https://github.com/QwikDev/qwik/issues",
7
7
  "dependencies": {
8
- "@typescript-eslint/utils": "^8.38.0",
8
+ "@typescript-eslint/utils": "^8.59.2",
9
9
  "jsx-ast-utils": "^3.3.5"
10
10
  },
11
11
  "devDependencies": {
12
12
  "@types/estree": "1.0.8",
13
- "@typescript-eslint/rule-tester": "8.38.0",
13
+ "@typescript-eslint/rule-tester": "8.59.2",
14
14
  "redent": "4.0.0",
15
- "@qwik.dev/core": "2.0.0-beta.9",
16
- "@qwik.dev/router": "2.0.0-beta.9"
15
+ "@qwik.dev/core": "2.0.0-rc.2",
16
+ "@qwik.dev/router": "2.0.0-rc.2"
17
17
  },
18
18
  "engines": {
19
19
  "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
@@ -30,7 +30,7 @@
30
30
  "license": "MIT",
31
31
  "main": "dist/index.js",
32
32
  "peerDependencies": {
33
- "eslint": "^8.57.0 || ^9.0.0"
33
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0"
34
34
  },
35
35
  "repository": {
36
36
  "type": "git",