eslint-plugin-qwik 2.0.0-alpha.8 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -3
- package/dist/index.js +88 -55
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -1,6 +1,102 @@
|
|
|
1
1
|
# eslint-plugin-qwik
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Qwik comes with its own set of ESLint rules to help developers write better code.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
Install the plugin:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm add -D eslint-plugin-qwik
|
|
11
|
+
pnpm add -D eslint-plugin-qwik
|
|
12
|
+
yarn add -D eslint-plugin-qwik
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
> `eslint-plugin-qwik` uses the tsc typechecker to type information. You must include the `tsconfigRootDir` in the `parserOptions`.
|
|
16
|
+
|
|
17
|
+
## Configurations
|
|
18
|
+
|
|
19
|
+
### Flat config (recommended)
|
|
20
|
+
|
|
21
|
+
```js
|
|
22
|
+
// eslint.config.js
|
|
23
|
+
import js from '@eslint/js';
|
|
24
|
+
import globals from 'globals';
|
|
25
|
+
import tseslint from 'typescript-eslint';
|
|
26
|
+
import { globalIgnores } from 'eslint/config';
|
|
27
|
+
import { qwikEslint9Plugin } from 'eslint-plugin-qwik';
|
|
28
|
+
|
|
29
|
+
export const qwikConfig = tseslint.config(
|
|
30
|
+
globalIgnores(['node_modules/*', 'dist/*', 'server/*', 'tmp/*']),
|
|
31
|
+
js.configs.recommended,
|
|
32
|
+
tseslint.configs.recommended,
|
|
33
|
+
qwikEslint9Plugin.configs.recommended,
|
|
34
|
+
{
|
|
35
|
+
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
|
|
36
|
+
languageOptions: {
|
|
37
|
+
globals: {
|
|
38
|
+
...globals.serviceworker,
|
|
39
|
+
...globals.browser,
|
|
40
|
+
...globals.node,
|
|
41
|
+
},
|
|
42
|
+
parserOptions: {
|
|
43
|
+
projectService: true,
|
|
44
|
+
tsconfigRootDir: import.meta.dirname,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Legacy config (`eslint < 9`)
|
|
52
|
+
|
|
53
|
+
```js
|
|
54
|
+
// .eslintrc.js
|
|
55
|
+
module.exports = {
|
|
56
|
+
env: {
|
|
57
|
+
browser: true,
|
|
58
|
+
es2021: true,
|
|
59
|
+
node: true,
|
|
60
|
+
},
|
|
61
|
+
extends: [
|
|
62
|
+
'eslint:recommended',
|
|
63
|
+
'plugin:@typescript-eslint/recommended',
|
|
64
|
+
'plugin:qwik/recommended',
|
|
65
|
+
],
|
|
66
|
+
parser: '@typescript-eslint/parser',
|
|
67
|
+
parserOptions: {
|
|
68
|
+
tsconfigRootDir: __dirname,
|
|
69
|
+
project: ['./tsconfig.json'],
|
|
70
|
+
ecmaVersion: 2021,
|
|
71
|
+
sourceType: 'module',
|
|
72
|
+
ecmaFeatures: {
|
|
73
|
+
jsx: true,
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
plugins: ['@typescript-eslint'],
|
|
77
|
+
};
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
> To ignore files, you must use the `.eslintignore` file.
|
|
81
|
+
|
|
82
|
+
## List of supported rules
|
|
83
|
+
|
|
84
|
+
- **Warn** in 'recommended' ruleset — ✔️
|
|
85
|
+
- **Error** in 'recommended' ruleset — ✅
|
|
86
|
+
- **Warn** in 'strict' ruleset — 🔒
|
|
87
|
+
- **Error** in 'strict' ruleset — 🔐
|
|
88
|
+
- **Typecheck** — 💭
|
|
89
|
+
|
|
90
|
+
| Rule | Description | Ruleset |
|
|
91
|
+
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
|
|
92
|
+
| [`qwik/valid-lexical-scope`](https://qwik.dev/docs/advanced/eslint/#valid-lexical-scope) | Used the tsc typechecker to detect the capture of unserializable data in dollar `($)` scopes. | ✅ 🔐 💭 |
|
|
93
|
+
| [`qwik/use-method-usage`](https://qwik.dev/docs/advanced/eslint/#use-method-usage) | Detect invalid use of use hook. | ✅ 🔐 |
|
|
94
|
+
| [`qwik/no-react-props`](https://qwik.dev/docs/advanced/eslint/#no-react-props) | Disallow usage of React-specific `className/htmlFor` props. | ✅ 🔐 |
|
|
95
|
+
| [`qwik/loader-location`](https://qwik.dev/docs/advanced/eslint/#loader-location) | Detect declaration location of `loader$`. | ✔️ 🔐 |
|
|
96
|
+
| [`qwik/prefer-classlist`](https://qwik.dev/docs/advanced/eslint/#prefer-classlist) | Enforce using the `classlist` prop over importing a `classnames` helper. The `classlist` prop accepts an object `{ [class: string]: boolean }` just like `classnames`. | ✔️ 🔐 |
|
|
97
|
+
| [`qwik/jsx-no-script-url`](https://qwik.dev/docs/advanced/eslint/#jsx-no-script-url) | Disallow javascript: URLs. | ✔️ 🔐 |
|
|
98
|
+
| [`qwik/jsx-key`](https://qwik.dev/docs/advanced/eslint/#jsx-key) | Disallow missing `key` props in iterators/collection literals. | ✔️ 🔐 |
|
|
99
|
+
| [`qwik/unused-server`](https://qwik.dev/docs/advanced/eslint/#unused-server) | Detect unused `server$()` functions. | ✅ 🔐 |
|
|
100
|
+
| [`qwik/jsx-img`](https://qwik.dev/docs/advanced/eslint/#jsx-img) | For performance reasons, always provide width and height attributes for `<img>` elements, it will help to prevent layout shifts. | ✔️ 🔐 |
|
|
101
|
+
| [`qwik/jsx-a`](https://qwik.dev/docs/advanced/eslint/#jsx-a) | For a perfect SEO score, always provide href attribute for `<a>` elements. | ✔️ 🔐 |
|
|
102
|
+
| [`qwik/no-use-visible-task`](https://qwik.dev/docs/advanced/eslint/#no-use-visible-task) | Detect `useVisibleTask$()` functions. | ✔️ 🔒 |
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
"use strict";var Rl=Object.create;var Ce=Object.defineProperty;var Ll=Object.getOwnPropertyDescriptor;var Ml=Object.getOwnPropertyNames;var Vl=Object.getPrototypeOf,Ul=Object.prototype.hasOwnProperty;var s=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Dl=(r,e)=>{for(var t in e)Ce(r,t,{get:e[t],enumerable:!0})},Tn=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ml(e))!Ul.call(r,o)&&o!==t&&Ce(r,o,{get:()=>e[o],enumerable:!(n=Ll(e,o))||n.enumerable});return r};var Y=(r,e,t)=>(t=r!=null?Rl(Vl(r)):{},Tn(e||!r||!r.__esModule?Ce(t,"default",{value:r,enumerable:!0}):t,r)),Jl=r=>Tn(Ce({},"__esModule",{value:!0}),r);var Fe=s(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.default=Wl;function Wl(){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 $n=s(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.default=vr;fe.hasAnyProp=Hl;fe.hasEveryProp=Kl;var Gl=Fe(),On=Xl(Gl);function Xl(r){return r&&r.__esModule?r:{default:r}}var gr={spreadStrict:!0,ignoreCase:!0};function vr(){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]:gr,n=t.ignoreCase?e.toUpperCase():e;return r.some(function(o){if(o.type==="JSXSpreadAttribute")return!t.spreadStrict;var i=t.ignoreCase?(0,On.default)(o).toUpperCase():(0,On.default)(o);return n===i})}function Hl(){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]:gr,n=typeof e=="string"?e.split(" "):e;return n.some(function(o){return vr(r,o,t)})}function Kl(){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]:gr,n=typeof e=="string"?e.split(" "):e;return n.every(function(o){return vr(r,o,t)})}});var _n=s(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.default=zl;function In(){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"?In(r.object,r.property)+"."+e.name:r.name+"."+e.name}function zl(){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 In(n,i)}return e.type==="JSXNamespacedName"?e.namespace.name+":"+e.name.name:r.name.name}});var br=s((Yv,Cn)=>{"use strict";var kn=Object.prototype.toString;Cn.exports=function(e){var t=kn.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&kn.call(e.callee)==="[object Function]"),n}});var Dn=s((Zv,Un)=>{"use strict";var Vn;Object.keys||(de=Object.prototype.hasOwnProperty,xr=Object.prototype.toString,Fn=br(),Sr=Object.prototype.propertyIsEnumerable,Nn=!Sr.call({toString:null},"toString"),jn=Sr.call(function(){},"prototype"),me=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Ne=function(r){var e=r.constructor;return e&&e.prototype===r},Rn={$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},Ln=function(){if(typeof window>"u")return!1;for(var r in window)try{if(!Rn["$"+r]&&de.call(window,r)&&window[r]!==null&&typeof window[r]=="object")try{Ne(window[r])}catch{return!0}}catch{return!0}return!1}(),Mn=function(r){if(typeof window>"u"||!Ln)return Ne(r);try{return Ne(r)}catch{return!1}},Vn=function(e){var t=e!==null&&typeof e=="object",n=xr.call(e)==="[object Function]",o=Fn(e),i=t&&xr.call(e)==="[object String]",a=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var u=jn&&n;if(i&&e.length>0&&!de.call(e,0))for(var l=0;l<e.length;++l)a.push(String(l));if(o&&e.length>0)for(var y=0;y<e.length;++y)a.push(String(y));else for(var m in e)!(u&&m==="prototype")&&de.call(e,m)&&a.push(String(m));if(Nn)for(var f=Mn(e),c=0;c<me.length;++c)!(f&&me[c]==="constructor")&&de.call(e,me[c])&&a.push(me[c]);return a});var de,xr,Fn,Sr,Nn,jn,me,Ne,Rn,Ln,Mn;Un.exports=Vn});var Er=s((eh,Wn)=>{"use strict";var Ql=Array.prototype.slice,Yl=br(),Jn=Object.keys,je=Jn?function(e){return Jn(e)}:Dn(),Bn=Object.keys;je.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 Yl(n)?Bn(Ql.call(n)):Bn(n)})}else Object.keys=je;return Object.keys||je};Wn.exports=je});var Xn=s((rh,Gn)=>{"use strict";Gn.exports=Error});var Kn=s((th,Hn)=>{"use strict";Hn.exports=EvalError});var wr=s((nh,zn)=>{"use strict";zn.exports=RangeError});var Yn=s((oh,Qn)=>{"use strict";Qn.exports=ReferenceError});var ye=s((ih,Zn)=>{"use strict";Zn.exports=SyntaxError});var b=s((ah,eo)=>{"use strict";eo.exports=TypeError});var to=s((sh,ro)=>{"use strict";ro.exports=URIError});var Re=s((uh,no)=>{"use strict";no.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(t 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 i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==o||a.enumerable!==!0)return!1}return!0}});var qr=s((lh,io)=>{"use strict";var oo=typeof Symbol<"u"&&Symbol,Zl=Re();io.exports=function(){return typeof oo!="function"||typeof Symbol!="function"||typeof oo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Zl()}});var Ar=s((ph,ao)=>{"use strict";var Tr={__proto__:null,foo:{}},ep=Object;ao.exports=function(){return{__proto__:Tr}.foo===Tr.foo&&!(Tr instanceof ep)}});var lo=s((ch,uo)=>{"use strict";var rp="Function.prototype.bind called on incompatible ",tp=Object.prototype.toString,np=Math.max,op="[object Function]",so=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},ip=function(e,t){for(var n=[],o=t||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},ap=function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t};uo.exports=function(e){var t=this;if(typeof t!="function"||tp.apply(t)!==op)throw new TypeError(rp+t);for(var n=ip(arguments,1),o,i=function(){if(this instanceof o){var m=t.apply(this,so(n,arguments));return Object(m)===m?m:this}return t.apply(e,so(n,arguments))},a=np(0,t.length-n.length),u=[],l=0;l<a;l++)u[l]="$"+l;if(o=Function("binder","return function ("+ap(u,",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var y=function(){};y.prototype=t.prototype,o.prototype=new y,y.prototype=null}return o}});var Le=s((fh,po)=>{"use strict";var sp=lo();po.exports=Function.prototype.bind||sp});var X=s((dh,co)=>{"use strict";var up=Function.prototype.call,lp=Object.prototype.hasOwnProperty,pp=Le();co.exports=pp.call(up,lp)});var P=s((mh,vo)=>{"use strict";var v,cp=Xn(),fp=Kn(),dp=wr(),mp=Yn(),te=ye(),re=b(),yp=to(),go=Function,Pr=function(r){try{return go('"use strict"; return ('+r+").constructor;")()}catch{}},H=Object.getOwnPropertyDescriptor;if(H)try{H({},"")}catch{H=null}var Or=function(){throw new re},gp=H?function(){try{return arguments.callee,Or}catch{try{return H(arguments,"callee").get}catch{return Or}}}():Or,Z=qr()(),vp=Ar()(),T=Object.getPrototypeOf||(vp?function(r){return r.__proto__}:null),ee={},hp=typeof Uint8Array>"u"||!T?v:T(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?v:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?v:ArrayBuffer,"%ArrayIteratorPrototype%":Z&&T?T([][Symbol.iterator]()):v,"%AsyncFromSyncIteratorPrototype%":v,"%AsyncFunction%":ee,"%AsyncGenerator%":ee,"%AsyncGeneratorFunction%":ee,"%AsyncIteratorPrototype%":ee,"%Atomics%":typeof Atomics>"u"?v:Atomics,"%BigInt%":typeof BigInt>"u"?v:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?v:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?v:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?v:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":cp,"%eval%":eval,"%EvalError%":fp,"%Float32Array%":typeof Float32Array>"u"?v:Float32Array,"%Float64Array%":typeof Float64Array>"u"?v:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?v:FinalizationRegistry,"%Function%":go,"%GeneratorFunction%":ee,"%Int8Array%":typeof Int8Array>"u"?v:Int8Array,"%Int16Array%":typeof Int16Array>"u"?v:Int16Array,"%Int32Array%":typeof Int32Array>"u"?v:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Z&&T?T(T([][Symbol.iterator]())):v,"%JSON%":typeof JSON=="object"?JSON:v,"%Map%":typeof Map>"u"?v:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Z||!T?v:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?v:Promise,"%Proxy%":typeof Proxy>"u"?v:Proxy,"%RangeError%":dp,"%ReferenceError%":mp,"%Reflect%":typeof Reflect>"u"?v:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?v:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Z||!T?v:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?v:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Z&&T?T(""[Symbol.iterator]()):v,"%Symbol%":Z?Symbol:v,"%SyntaxError%":te,"%ThrowTypeError%":gp,"%TypedArray%":hp,"%TypeError%":re,"%Uint8Array%":typeof Uint8Array>"u"?v:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?v:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?v:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?v:Uint32Array,"%URIError%":yp,"%WeakMap%":typeof WeakMap>"u"?v:WeakMap,"%WeakRef%":typeof WeakRef>"u"?v:WeakRef,"%WeakSet%":typeof WeakSet>"u"?v:WeakSet};if(T)try{null.error}catch(r){fo=T(T(r)),K["%Error.prototype%"]=fo}var fo,bp=function r(e){var t;if(e==="%AsyncFunction%")t=Pr("async function () {}");else if(e==="%GeneratorFunction%")t=Pr("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Pr("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 K[e]=t,t},mo={__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"]},ge=Le(),Me=X(),xp=ge.call(Function.call,Array.prototype.concat),Sp=ge.call(Function.apply,Array.prototype.splice),yo=ge.call(Function.call,String.prototype.replace),Ve=ge.call(Function.call,String.prototype.slice),Ep=ge.call(Function.call,RegExp.prototype.exec),wp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,qp=/\\(\\)?/g,Tp=function(e){var t=Ve(e,0,1),n=Ve(e,-1);if(t==="%"&&n!=="%")throw new te("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new te("invalid intrinsic syntax, expected opening `%`");var o=[];return yo(e,wp,function(i,a,u,l){o[o.length]=u?yo(l,qp,"$1"):a||i}),o},Ap=function(e,t){var n=e,o;if(Me(mo,n)&&(o=mo[n],n="%"+o[0]+"%"),Me(K,n)){var i=K[n];if(i===ee&&(i=bp(n)),typeof i>"u"&&!t)throw new re("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new te("intrinsic "+e+" does not exist!")};vo.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new re("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new re('"allowMissing" argument must be a boolean');if(Ep(/^%?[^%]*%?$/,e)===null)throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Tp(e),o=n.length>0?n[0]:"",i=Ap("%"+o+"%",t),a=i.name,u=i.value,l=!1,y=i.alias;y&&(o=y[0],Sp(n,xp([0,1],y)));for(var m=1,f=!0;m<n.length;m+=1){var c=n[m],h=Ve(c,0,1),S=Ve(c,-1);if((h==='"'||h==="'"||h==="`"||S==='"'||S==="'"||S==="`")&&h!==S)throw new te("property names with quotes must have matching quotes");if((c==="constructor"||!f)&&(l=!0),o+="."+c,a="%"+o+"%",Me(K,a))u=K[a];else if(u!=null){if(!(c in u)){if(!t)throw new re("base intrinsic for "+e+" exists, but the property is not available.");return}if(H&&m+1>=n.length){var p=H(u,c);f=!!p,f&&"get"in p&&!("originalValue"in p.get)?u=p.get:u=u[c]}else f=Me(u,c),u=u[c];f&&!l&&(K[a]=u)}}return u}});var ve=s((yh,ho)=>{"use strict";var Pp=P(),Ue=Pp("%Object.defineProperty%",!0)||!1;if(Ue)try{Ue({},"a",{value:1})}catch{Ue=!1}ho.exports=Ue});var Je=s((gh,bo)=>{"use strict";var Op=P(),De=Op("%Object.getOwnPropertyDescriptor%",!0);if(De)try{De([],"length")}catch{De=null}bo.exports=De});var $r=s((vh,Eo)=>{"use strict";var xo=ve(),$p=ye(),ne=b(),So=Je();Eo.exports=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new ne("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new ne("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ne("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ne("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ne("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ne("`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,l=!!So&&So(e,t);if(xo)xo(e,t,{configurable:a===null&&l?l.configurable:!a,enumerable:o===null&&l?l.enumerable:!o,value:n,writable:i===null&&l?l.writable:!i});else if(u||!o&&!i&&!a)e[t]=n;else throw new $p("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Be=s((hh,qo)=>{"use strict";var Ir=ve(),wo=function(){return!!Ir};wo.hasArrayLengthDefineBug=function(){if(!Ir)return null;try{return Ir([],"length",{value:1}).length!==1}catch{return!0}};qo.exports=wo});var R=s((bh,Oo)=>{"use strict";var Ip=Er(),_p=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",kp=Object.prototype.toString,Cp=Array.prototype.concat,To=$r(),Fp=function(r){return typeof r=="function"&&kp.call(r)==="[object Function]"},Ao=Be()(),Np=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!Fp(n)||!n())return}Ao?To(r,e,t,!0):To(r,e,t)},Po=function(r,e){var t=arguments.length>2?arguments[2]:{},n=Ip(e);_p&&(n=Cp.call(n,Object.getOwnPropertySymbols(e)));for(var o=0;o<n.length;o+=1)Np(r,n[o],e[n[o]],t[n[o]])};Po.supportsDescriptors=!!Ao;Oo.exports=Po});var Co=s((xh,ko)=>{"use strict";var jp=P(),$o=$r(),Rp=Be()(),Io=Je(),_o=b(),Lp=jp("%Math.floor%");ko.exports=function(e,t){if(typeof e!="function")throw new _o("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||Lp(t)!==t)throw new _o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in e&&Io){var a=Io(e,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!n)&&(Rp?$o(e,"length",t,!0,!0):$o(e,"length",t)),e}});var oe=s((Sh,We)=>{"use strict";var _r=Le(),Ge=P(),Mp=Co(),Vp=b(),jo=Ge("%Function.prototype.apply%"),Ro=Ge("%Function.prototype.call%"),Lo=Ge("%Reflect.apply%",!0)||_r.call(Ro,jo),Fo=ve(),Up=Ge("%Math.max%");We.exports=function(e){if(typeof e!="function")throw new Vp("a function is required");var t=Lo(_r,Ro,arguments);return Mp(t,1+Up(0,e.length-(arguments.length-1)),!0)};var No=function(){return Lo(_r,jo,arguments)};Fo?Fo(We.exports,"apply",{value:No}):We.exports.apply=No});var he=s((Eh,Mo)=>{"use strict";Mo.exports=Number.isNaN||function(e){return e!==e}});var kr=s((wh,Vo)=>{"use strict";var Dp=he();Vo.exports=function(r){return(typeof r=="number"||typeof r=="bigint")&&!Dp(r)&&r!==1/0&&r!==-1/0}});var Cr=s((qh,Do)=>{"use strict";var Uo=P(),Jp=Uo("%Math.abs%"),Bp=Uo("%Math.floor%"),Wp=he(),Gp=kr();Do.exports=function(e){if(typeof e!="number"||Wp(e)||!Gp(e))return!1;var t=Jp(e);return Bp(t)===t}});var Xo=s((Th,Go)=>{"use strict";var Wo=P(),Jo=Wo("%Array.prototype%"),Xp=wr(),Hp=ye(),Kp=b(),zp=Cr(),Qp=Math.pow(2,32)-1,Yp=Ar()(),Bo=Wo("%Object.setPrototypeOf%",!0)||(Yp?function(r,e){return r.__proto__=e,r}:null);Go.exports=function(e){if(!zp(e)||e<0)throw new Kp("Assertion failed: `length` must be an integer Number >= 0");if(e>Qp)throw new Xp("length is greater than (2**32 - 1)");var t=arguments.length>1?arguments[1]:Jo,n=[];if(t!==Jo){if(!Bo)throw new Hp("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");Bo(n,t)}return e!==0&&(n.length=e),n}});var Ko=s((Ah,Ho)=>{Ho.exports=require("util").inspect});var yi=s((Ph,mi)=>{var Jr=typeof Map=="function"&&Map.prototype,Fr=Object.getOwnPropertyDescriptor&&Jr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,He=Jr&&Fr&&typeof Fr.get=="function"?Fr.get:null,zo=Jr&&Map.prototype.forEach,Br=typeof Set=="function"&&Set.prototype,Nr=Object.getOwnPropertyDescriptor&&Br?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ke=Br&&Nr&&typeof Nr.get=="function"?Nr.get:null,Qo=Br&&Set.prototype.forEach,Zp=typeof WeakMap=="function"&&WeakMap.prototype,xe=Zp?WeakMap.prototype.has:null,ec=typeof WeakSet=="function"&&WeakSet.prototype,Se=ec?WeakSet.prototype.has:null,rc=typeof WeakRef=="function"&&WeakRef.prototype,Yo=rc?WeakRef.prototype.deref:null,tc=Boolean.prototype.valueOf,nc=Object.prototype.toString,oc=Function.prototype.toString,ic=String.prototype.match,Wr=String.prototype.slice,V=String.prototype.replace,ac=String.prototype.toUpperCase,Zo=String.prototype.toLowerCase,ui=RegExp.prototype.test,ei=Array.prototype.concat,k=Array.prototype.join,sc=Array.prototype.slice,ri=Math.floor,Lr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,jr=Object.getOwnPropertySymbols,Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ie=typeof Symbol=="function"&&typeof Symbol.iterator=="object",O=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ie||!0)?Symbol.toStringTag:null,li=Object.prototype.propertyIsEnumerable,ti=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function ni(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||ui.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-ri(-r):ri(r);if(n!==r){var o=String(n),i=Wr.call(e,o.length+1);return V.call(o,t,"$&_")+"."+V.call(V.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return V.call(e,t,"$&_")}var Vr=Ko(),oi=Vr.custom,ii=ci(oi)?oi:null;mi.exports=function r(e,t,n,o){var i=t||{};if(M(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(M(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=M(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(M(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(M(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 di(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return u?ni(e,l):l}if(typeof e=="bigint"){var y=String(e)+"n";return u?ni(e,y):y}var m=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=m&&m>0&&typeof e=="object")return Ur(e)?"[Array]":"[Object]";var f=Tc(i,n);if(typeof o>"u")o=[];else if(fi(o,e)>=0)return"[Circular]";function c(Q,ke,jl){if(ke&&(o=sc.call(o),o.push(ke)),jl){var qn={depth:i.depth};return M(i,"quoteStyle")&&(qn.quoteStyle=i.quoteStyle),r(Q,qn,n+1,o)}return r(Q,i,n+1,o)}if(typeof e=="function"&&!ai(e)){var h=gc(e),S=Xe(e,c);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(S.length>0?" { "+k.call(S,", ")+" }":"")}if(ci(e)){var p=ie?V.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Mr.call(e);return typeof e=="object"&&!ie?be(p):p}if(Ec(e)){for(var d="<"+Zo.call(String(e.nodeName)),E=e.attributes||[],g=0;g<E.length;g++)d+=" "+E[g].name+"="+pi(uc(E[g].value),"double",i);return d+=">",e.childNodes&&e.childNodes.length&&(d+="..."),d+="</"+Zo.call(String(e.nodeName))+">",d}if(Ur(e)){if(e.length===0)return"[]";var w=Xe(e,c);return f&&!qc(w)?"["+Dr(w,f)+"]":"[ "+k.call(w,", ")+" ]"}if(pc(e)){var _=Xe(e,c);return!("cause"in Error.prototype)&&"cause"in e&&!li.call(e,"cause")?"{ ["+String(e)+"] "+k.call(ei.call("[cause]: "+c(e.cause),_),", ")+" }":_.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+k.call(_,", ")+" }"}if(typeof e=="object"&&a){if(ii&&typeof e[ii]=="function"&&Vr)return Vr(e,{depth:m-n});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(vc(e)){var $=[];return zo&&zo.call(e,function(Q,ke){$.push(c(ke,e,!0)+" => "+c(Q,e))}),si("Map",He.call(e),$,f)}if(xc(e)){var _e=[];return Qo&&Qo.call(e,function(Q){_e.push(c(Q,e))}),si("Set",Ke.call(e),_e,f)}if(hc(e))return Rr("WeakMap");if(Sc(e))return Rr("WeakSet");if(bc(e))return Rr("WeakRef");if(fc(e))return be(c(Number(e)));if(mc(e))return be(c(Lr.call(e)));if(dc(e))return be(tc.call(e));if(cc(e))return be(c(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===global)return"{ [object globalThis] }";if(!lc(e)&&!ai(e)){var j=Xe(e,c),ce=ti?ti(e)===Object.prototype:e instanceof Object||e.constructor===Object,dr=e instanceof Object?"":"null prototype",wn=!ce&&O&&Object(e)===e&&O in e?Wr.call(U(e),8,-1):dr?"Object":"",Nl=ce||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",mr=Nl+(wn||dr?"["+k.call(ei.call([],wn||[],dr||[]),": ")+"] ":"");return j.length===0?mr+"{}":f?mr+"{"+Dr(j,f)+"}":mr+"{ "+k.call(j,", ")+" }"}return String(e)};function pi(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function uc(r){return V.call(String(r),/"/g,""")}function Ur(r){return U(r)==="[object Array]"&&(!O||!(typeof r=="object"&&O in r))}function lc(r){return U(r)==="[object Date]"&&(!O||!(typeof r=="object"&&O in r))}function ai(r){return U(r)==="[object RegExp]"&&(!O||!(typeof r=="object"&&O in r))}function pc(r){return U(r)==="[object Error]"&&(!O||!(typeof r=="object"&&O in r))}function cc(r){return U(r)==="[object String]"&&(!O||!(typeof r=="object"&&O in r))}function fc(r){return U(r)==="[object Number]"&&(!O||!(typeof r=="object"&&O in r))}function dc(r){return U(r)==="[object Boolean]"&&(!O||!(typeof r=="object"&&O in r))}function ci(r){if(ie)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!Mr)return!1;try{return Mr.call(r),!0}catch{}return!1}function mc(r){if(!r||typeof r!="object"||!Lr)return!1;try{return Lr.call(r),!0}catch{}return!1}var yc=Object.prototype.hasOwnProperty||function(r){return r in this};function M(r,e){return yc.call(r,e)}function U(r){return nc.call(r)}function gc(r){if(r.name)return r.name;var e=ic.call(oc.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function fi(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 vc(r){if(!He||!r||typeof r!="object")return!1;try{He.call(r);try{Ke.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function hc(r){if(!xe||!r||typeof r!="object")return!1;try{xe.call(r,xe);try{Se.call(r,Se)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function bc(r){if(!Yo||!r||typeof r!="object")return!1;try{return Yo.call(r),!0}catch{}return!1}function xc(r){if(!Ke||!r||typeof r!="object")return!1;try{Ke.call(r);try{He.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function Sc(r){if(!Se||!r||typeof r!="object")return!1;try{Se.call(r,Se);try{xe.call(r,xe)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function Ec(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function di(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return di(Wr.call(r,0,e.maxStringLength),e)+n}var o=V.call(V.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,wc);return pi(o,"single",e)}function wc(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":"")+ac.call(e.toString(16))}function be(r){return"Object("+r+")"}function Rr(r){return r+" { ? }"}function si(r,e,t,n){var o=n?Dr(t,n):k.call(t,", ");return r+" ("+e+") {"+o+"}"}function qc(r){for(var e=0;e<r.length;e++)if(fi(r[e],`
|
|
2
|
-
`)>=0)return!1;return!0}function
|
|
3
|
-
`+e.prev+e.base;return t+
|
|
4
|
-
`+e.prev}function Xe(r,e){var t=Ur(r),n=[];if(t){n.length=r.length;for(var o=0;o<r.length;o++)n[o]=M(r,o)?e(r[o],r):""}var i=typeof jr=="function"?jr(r):[],a;if(ie){a={};for(var u=0;u<i.length;u++)a["$"+i[u]]=i[u]}for(var l in r)M(r,l)&&(t&&String(Number(l))===l&&l<r.length||ie&&a["$"+l]instanceof Symbol||(ui.call(/[^\w$]/,l)?n.push(e(l,r)+": "+e(r[l],r)):n.push(l+": "+e(r[l],r))));if(typeof jr=="function")for(var y=0;y<i.length;y++)li.call(r,i[y])&&n.push("["+e(i[y])+"]: "+e(r[i[y]],r));return n}});var D=s((Oh,gi)=>{"use strict";gi.exports=function(e){return typeof e=="string"||typeof e=="symbol"}});var hi=s(($h,vi)=>{"use strict";vi.exports=function(e){if(e===null)return"Null";if(typeof e>"u")return"Undefined";if(typeof e=="function"||typeof e=="object")return"Object";if(typeof e=="number")return"Number";if(typeof e=="boolean")return"Boolean";if(typeof e=="string")return"String"}});var I=s((Ih,bi)=>{"use strict";var Ac=hi();bi.exports=function(e){return typeof e=="symbol"?"Symbol":typeof e=="bigint"?"BigInt":Ac(e)}});var Ee=s((_h,Si)=>{"use strict";var xi=b(),Pc=yi(),Oc=D(),$c=I();Si.exports=function(e,t){if($c(e)!=="Object")throw new xi("Assertion failed: Type(O) is not Object");if(!Oc(t))throw new xi("Assertion failed: IsPropertyKey(P) is not true, got "+Pc(t));return e[t]}});var C=s((kh,qi)=>{"use strict";var Ei=P(),wi=oe(),Ic=wi(Ei("String.prototype.indexOf"));qi.exports=function(e,t){var n=Ei(e,!!t);return typeof n=="function"&&Ic(e,".prototype.")>-1?wi(n):n}});var Gr=s((Ch,Ai)=>{"use strict";var _c=P(),Ti=_c("%Array%"),kc=!Ti.isArray&&C()("Object.prototype.toString");Ai.exports=Ti.isArray||function(e){return kc(e)==="[object Array]"}});var ze=s((Fh,Pi)=>{"use strict";Pi.exports=Gr()});var $i=s((Nh,Oi)=>{"use strict";Oi.exports=P()});var L=s((jh,Ii)=>{"use strict";var Cc=b(),we=X(),Fc={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};Ii.exports=function(e){if(!e||typeof e!="object")return!1;for(var t in e)if(we(e,t)&&!Fc[t])return!1;var n=we(e,"[[Value]]")||we(e,"[[Writable]]"),o=we(e,"[[Get]]")||we(e,"[[Set]]");if(n&&o)throw new Cc("Property Descriptors may not be both accessor and data descriptors");return!0}});var Xr=s((Rh,Ci)=>{"use strict";var Nc=Be(),_i=ve(),ki=Nc.hasArrayLengthDefineBug(),jc=ki&&Gr(),Rc=C(),Lc=Rc("Object.prototype.propertyIsEnumerable");Ci.exports=function(e,t,n,o,i,a){if(!_i){if(!e(a)||!a["[[Configurable]]"]||!a["[[Writable]]"]||i in o&&Lc(o,i)!==!!a["[[Enumerable]]"])return!1;var u=a["[[Value]]"];return o[i]=u,t(o[i],u)}return ki&&i==="length"&&"[[Value]]"in a&&jc(o)&&o.length!==a["[[Value]]"]?(o.length=a["[[Value]]"],o.length===a["[[Value]]"]):(_i(o,i,n(a)),!0)}});var Ni=s((Lh,Fi)=>{"use strict";Fi.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 Hr=s((Mh,ji)=>{"use strict";var Mc=b(),Vc=L(),Uc=Ni();ji.exports=function(e){if(typeof e<"u"&&!Vc(e))throw new Mc("Assertion failed: `Desc` must be a Property Descriptor");return Uc(e)}});var Qe=s((Vh,Li)=>{"use strict";var Dc=b(),Ri=X(),Jc=L();Li.exports=function(e){if(typeof e>"u")return!1;if(!Jc(e))throw new Dc("Assertion failed: `Desc` must be a Property Descriptor");return!(!Ri(e,"[[Value]]")&&!Ri(e,"[[Writable]]"))}});var Ye=s((Uh,Vi)=>{"use strict";var Mi=he();Vi.exports=function(e,t){return e===t?e===0?1/e===1/t:!0:Mi(e)&&Mi(t)}});var Di=s((Dh,Ui)=>{"use strict";Ui.exports=function(e){return!!e}});var Zr=s((Jh,Wi)=>{"use strict";var Bi=Function.prototype.toString,ae=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,zr,Ze;if(typeof ae=="function"&&typeof Object.defineProperty=="function")try{zr=Object.defineProperty({},"length",{get:function(){throw Ze}}),Ze={},ae(function(){throw 42},null,zr)}catch(r){r!==Ze&&(ae=null)}else ae=null;var Bc=/^\s*class\b/,Qr=function(e){try{var t=Bi.call(e);return Bc.test(t)}catch{return!1}},Kr=function(e){try{return Qr(e)?!1:(Bi.call(e),!0)}catch{return!1}},er=Object.prototype.toString,Wc="[object Object]",Gc="[object Function]",Xc="[object GeneratorFunction]",Hc="[object HTMLAllCollection]",Kc="[object HTML document.all class]",zc="[object HTMLCollection]",Qc=typeof Symbol=="function"&&!!Symbol.toStringTag,Yc=!(0 in[,]),Yr=function(){return!1};typeof document=="object"&&(Ji=document.all,er.call(Ji)===er.call(document.all)&&(Yr=function(e){if((Yc||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=er.call(e);return(t===Hc||t===Kc||t===zc||t===Wc)&&e("")==null}catch{}return!1}));var Ji;Wi.exports=ae?function(e){if(Yr(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{ae(e,null,zr)}catch(t){if(t!==Ze)return!1}return!Qr(e)&&Kr(e)}:function(e){if(Yr(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(Qc)return Kr(e);if(Qr(e))return!1;var t=er.call(e);return t!==Gc&&t!==Xc&&!/^\[object HTML/.test(t)?!1:Kr(e)}});var Xi=s((Bh,Gi)=>{"use strict";Gi.exports=Zr()});var rt=s((Wh,Ki)=>{"use strict";var F=X(),rr=b(),Zc=I(),et=Di(),Hi=Xi();Ki.exports=function(e){if(Zc(e)!=="Object")throw new rr("ToPropertyDescriptor requires an object");var t={};if(F(e,"enumerable")&&(t["[[Enumerable]]"]=et(e.enumerable)),F(e,"configurable")&&(t["[[Configurable]]"]=et(e.configurable)),F(e,"value")&&(t["[[Value]]"]=e.value),F(e,"writable")&&(t["[[Writable]]"]=et(e.writable)),F(e,"get")){var n=e.get;if(typeof n<"u"&&!Hi(n))throw new rr("getter must be a function");t["[[Get]]"]=n}if(F(e,"set")){var o=e.set;if(typeof o<"u"&&!Hi(o))throw new rr("setter must be a function");t["[[Set]]"]=o}if((F(t,"[[Get]]")||F(t,"[[Set]]"))&&(F(t,"[[Value]]")||F(t,"[[Writable]]")))throw new rr("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}});var Yi=s((Gh,Qi)=>{"use strict";var tt=b(),zi=L(),ef=Xr(),rf=Hr(),tf=Qe(),nf=D(),of=Ye(),af=rt(),sf=I();Qi.exports=function(e,t,n){if(sf(e)!=="Object")throw new tt("Assertion failed: Type(O) is not Object");if(!nf(t))throw new tt("Assertion failed: IsPropertyKey(P) is not true");var o=zi(n)?n:af(n);if(!zi(o))throw new tt("Assertion failed: Desc is not a valid Property Descriptor");return ef(tf,of,rf,e,t,o)}});var ea=s((Xh,it)=>{"use strict";var uf=$i(),Zi=uf("%Reflect.construct%",!0),tr=Yi();try{tr({},"",{"[[Get]]":function(){}})}catch{tr=null}tr&&Zi?(nt={},ot={},tr(ot,"length",{"[[Get]]":function(){throw nt},"[[Enumerable]]":!0}),it.exports=function(e){try{Zi(e,ot)}catch(t){return t===nt}}):it.exports=function(e){return typeof e=="function"&&!!e.prototype};var nt,ot});var aa=s((Hh,ia)=>{"use strict";var lf=P(),ra=lf("%Symbol.species%",!0),ta=b(),na=Xo(),oa=Ee(),pf=ze(),cf=ea(),ff=I(),df=Cr();ia.exports=function(e,t){if(!df(t)||t<0)throw new ta("Assertion failed: length must be an integer >= 0");var n=pf(e);if(!n)return na(t);var o=oa(e,"constructor");if(ra&&ff(o)==="Object"&&(o=oa(o,ra),o===null&&(o=void 0)),typeof o>"u")return na(t);if(!cf(o))throw new ta("C must be a constructor");return new o(t)}});var at=s((Kh,sa)=>{"use strict";sa.exports=Number.MAX_SAFE_INTEGER||9007199254740991});var la=s((zh,ua)=>{"use strict";var mf=P(),yf=C(),gf=b(),vf=ze(),hf=mf("%Reflect.apply%",!0)||yf("Function.prototype.apply");ua.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!vf(n))throw new gf("Assertion failed: optional `argumentsList`, if provided, must be a List");return hf(e,t,n)}});var nr=s((Qh,ca)=>{"use strict";var bf=b(),pa=X(),xf=L();ca.exports=function(e){if(typeof e>"u")return!1;if(!xf(e))throw new bf("Assertion failed: `Desc` must be a Property Descriptor");return!(!pa(e,"[[Get]]")&&!pa(e,"[[Set]]"))}});var st=s((Yh,fa)=>{"use strict";fa.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var ga=s((Zh,ya)=>{"use strict";var ma=P(),Sf=ma("%Object.preventExtensions%",!0),Ef=ma("%Object.isExtensible%",!0),da=st();ya.exports=Sf?function(e){return!da(e)&&Ef(e)}:function(e){return!da(e)}});var ha=s((eb,va)=>{"use strict";var wf=L();va.exports=function(e,t){return wf(t)&&typeof t=="object"&&"[[Enumerable]]"in t&&"[[Configurable]]"in t&&(e.IsAccessorDescriptor(t)||e.IsDataDescriptor(t))}});var xa=s((rb,ba)=>{"use strict";var qf=b(),Tf=nr(),Af=Qe(),Pf=L();ba.exports=function(e){if(typeof e>"u")return!1;if(!Pf(e))throw new qf("Assertion failed: `Desc` must be a Property Descriptor");return!Tf(e)&&!Af(e)}});var wa=s((tb,Ea)=>{"use strict";var se=b(),qe=Xr(),Of=ha(),Sa=L(),Te=Hr(),z=nr(),J=Qe(),$f=xa(),If=D(),N=Ye(),_f=I();Ea.exports=function(e,t,n,o,i){var a=_f(e);if(a!=="Undefined"&&a!=="Object")throw new se("Assertion failed: O must be undefined or an Object");if(!If(t))throw new se("Assertion failed: P must be a Property Key");if(typeof n!="boolean")throw new se("Assertion failed: extensible must be a Boolean");if(!Sa(o))throw new se("Assertion failed: Desc must be a Property Descriptor");if(typeof i<"u"&&!Sa(i))throw new se("Assertion failed: current must be a Property Descriptor, or undefined");if(typeof i>"u")return n?a==="Undefined"?!0:z(o)?qe(J,N,Te,e,t,o):qe(J,N,Te,e,t,{"[[Configurable]]":!!o["[[Configurable]]"],"[[Enumerable]]":!!o["[[Enumerable]]"],"[[Value]]":o["[[Value]]"],"[[Writable]]":!!o["[[Writable]]"]}):!1;if(!Of({IsAccessorDescriptor:z,IsDataDescriptor:J},i))throw new se("`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]]"])||!$f(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(a!=="Undefined"){var u,l;return J(i)&&z(o)?(u=("[[Configurable]]"in o?o:i)["[[Configurable]]"],l=("[[Enumerable]]"in o?o:i)["[[Enumerable]]"],qe(J,N,Te,e,t,{"[[Configurable]]":!!u,"[[Enumerable]]":!!l,"[[Get]]":("[[Get]]"in o?o:i)["[[Get]]"],"[[Set]]":("[[Set]]"in o?o:i)["[[Set]]"]})):z(i)&&J(o)?(u=("[[Configurable]]"in o?o:i)["[[Configurable]]"],l=("[[Enumerable]]"in o?o:i)["[[Enumerable]]"],qe(J,N,Te,e,t,{"[[Configurable]]":!!u,"[[Enumerable]]":!!l,"[[Value]]":("[[Value]]"in o?o:i)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in o?o:i)["[[Writable]]"]})):qe(J,N,Te,e,t,o)}return!0}});var Pa=s((nb,Aa)=>{"use strict";var qa=Je(),Ta=ye(),ut=b(),kf=L(),Cf=nr(),Ff=ga(),Nf=D(),jf=rt(),Rf=Ye(),Lf=I(),Mf=wa();Aa.exports=function(e,t,n){if(Lf(e)!=="Object")throw new ut("Assertion failed: O must be an Object");if(!Nf(t))throw new ut("Assertion failed: P must be a Property Key");if(!kf(n))throw new ut("Assertion failed: Desc must be a Property Descriptor");if(!qa){if(Cf(n))throw new Ta("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]]"],Rf(e[t],n["[[Value]]"]);throw new Ta("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var a=qa(e,t),u=a&&jf(a),l=Ff(e);return Mf(e,t,l,n,u)}});var Ia=s((ob,$a)=>{"use strict";var Oa=b(),Vf=D(),Uf=Pa(),Df=I();$a.exports=function(e,t,n){if(Df(e)!=="Object")throw new Oa("Assertion failed: Type(O) is not Object");if(!Vf(t))throw new Oa("Assertion failed: IsPropertyKey(P) is not true");var o={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":n,"[[Writable]]":!0};return Uf(e,t,o)}});var ka=s((ib,_a)=>{"use strict";var lt=b(),Jf=Ia(),Bf=D(),Wf=I();_a.exports=function(e,t,n){if(Wf(e)!=="Object")throw new lt("Assertion failed: Type(O) is not Object");if(!Bf(t))throw new lt("Assertion failed: IsPropertyKey(P) is not true");var o=Jf(e,t,n);if(!o)throw new lt("unable to create data property")}});var Na=s((ab,Fa)=>{"use strict";var Ca=b(),Gf=D(),Xf=I();Fa.exports=function(e,t){if(Xf(e)!=="Object")throw new Ca("Assertion failed: `O` must be an Object");if(!Gf(t))throw new Ca("Assertion failed: `P` must be a Property Key");return t in e}});var Ra=s((sb,ja)=>{"use strict";ja.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var pt=s((ub,La)=>{"use strict";var Hf=Re();La.exports=function(){return Hf()&&!!Symbol.toStringTag}});var Va=s((lb,Ma)=>{"use strict";var Kf=Date.prototype.getDay,zf=function(e){try{return Kf.call(e),!0}catch{return!1}},Qf=Object.prototype.toString,Yf="[object Date]",Zf=pt()();Ma.exports=function(e){return typeof e!="object"||e===null?!1:Zf?zf(e):Qf.call(e)===Yf}});var Ba=s((pb,ct)=>{"use strict";var ed=Object.prototype.toString,rd=qr()();rd?(Ua=Symbol.prototype.toString,Da=/^Symbol\(.*\)$/,Ja=function(e){return typeof e.valueOf()!="symbol"?!1:Da.test(Ua.call(e))},ct.exports=function(e){if(typeof e=="symbol")return!0;if(ed.call(e)!=="[object Symbol]")return!1;try{return Ja(e)}catch{return!1}}):ct.exports=function(e){return!1};var Ua,Da,Ja});var Ha=s((cb,Xa)=>{"use strict";var td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",ft=Ra(),Ga=Zr(),nd=Va(),Wa=Ba(),od=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]],Ga(o)&&(i=o.call(e),ft(i)))return i;throw new TypeError("No default value")},id=function(e,t){var n=e[t];if(n!==null&&typeof n<"u"){if(!Ga(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}};Xa.exports=function(e){if(ft(e))return e;var t="default";arguments.length>1&&(arguments[1]===String?t="string":arguments[1]===Number&&(t="number"));var n;if(td&&(Symbol.toPrimitive?n=id(e,Symbol.toPrimitive):Wa(e)&&(n=Symbol.prototype.valueOf)),typeof n<"u"){var o=n.call(e,t);if(ft(o))return o;throw new TypeError("unable to convert exotic object to primitive")}return t==="default"&&(nd(e)||Wa(e))&&(t="string"),od(e,t==="default"?"number":t)}});var Qa=s((fb,za)=>{"use strict";var Ka=Ha();za.exports=function(e){return arguments.length>1?Ka(e,arguments[1]):Ka(e)}});var ts=s((db,rs)=>{"use strict";var dt=C(),Ya=pt()(),Za,es,mt,yt;Ya&&(Za=dt("Object.prototype.hasOwnProperty"),es=dt("RegExp.prototype.exec"),mt={},or=function(){throw mt},yt={toString:or,valueOf:or},typeof Symbol.toPrimitive=="symbol"&&(yt[Symbol.toPrimitive]=or));var or,ad=dt("Object.prototype.toString"),sd=Object.getOwnPropertyDescriptor,ud="[object RegExp]";rs.exports=Ya?function(e){if(!e||typeof e!="object")return!1;var t=sd(e,"lastIndex"),n=t&&Za(t,"value");if(!n)return!1;try{es(e,yt)}catch(o){return o===mt}}:function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:ad(e)===ud}});var os=s((mb,ns)=>{"use strict";var ld=C(),pd=ts(),cd=ld("RegExp.prototype.exec"),fd=b();ns.exports=function(e){if(!pd(e))throw new fd("`regex` must be a RegExp");return function(n){return cd(e,n)!==null}}});var Ae=s((yb,is)=>{"use strict";var dd=b();is.exports=function(e){if(e==null)throw new dd(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}});var ss=s((gb,as)=>{"use strict";var md=P(),yd=md("%String%"),gd=b();as.exports=function(e){if(typeof e=="symbol")throw new gd("Cannot convert a Symbol value to a string");return yd(e)}});var gt=s((vb,ps)=>{"use strict";var vd=Ae(),hd=ss(),bd=C(),us=bd("String.prototype.replace"),ls=/^\s$/.test("\u180E"),xd=ls?/^[\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]+/,Sd=ls?/[\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]+$/;ps.exports=function(){var e=hd(vd(this));return us(us(e,xd,""),Sd,"")}});var vt=s((hb,fs)=>{"use strict";var Ed=gt(),cs="\u200B",ue="\u180E";fs.exports=function(){return String.prototype.trim&&cs.trim()===cs&&ue.trim()===ue&&("_"+ue).trim()==="_"+ue&&(ue+"_").trim()===ue+"_"?String.prototype.trim:Ed}});var ms=s((bb,ds)=>{"use strict";var wd=R(),qd=vt();ds.exports=function(){var e=qd();return wd(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}});var hs=s((xb,vs)=>{"use strict";var Td=oe(),Ad=R(),Pd=Ae(),Od=gt(),ys=vt(),$d=ms(),Id=Td(ys()),gs=function(e){return Pd(e),Id(e)};Ad(gs,{getPolyfill:ys,implementation:Od,shim:$d});vs.exports=gs});var Es=s((Sb,Ss)=>{"use strict";var bt=P(),ht=bt("%Number%"),_d=bt("%RegExp%"),kd=b(),bs=bt("%parseInt%"),Cd=C(),ir=os(),xs=Cd("String.prototype.slice"),Fd=ir(/^0b[01]+$/i),Nd=ir(/^0o[0-7]+$/i),jd=ir(/^[-+]0x[0-9a-f]+$/i),Rd=["\x85","\u200B","\uFFFE"].join(""),Ld=new _d("["+Rd+"]","g"),Md=ir(Ld),Vd=hs();Ss.exports=function r(e){if(typeof e!="string")throw new kd("Assertion failed: `argument` is not a String");if(Fd(e))return ht(bs(xs(e,2),2));if(Nd(e))return ht(bs(xs(e,2),8));if(Md(e)||jd(e))return NaN;var t=Vd(e);return t!==e?r(t):ht(e)}});var As=s((Eb,Ts)=>{"use strict";var Ud=P(),ws=b(),qs=Ud("%Number%"),Dd=st(),Jd=Qa(),Bd=Es();Ts.exports=function(e){var t=Dd(e)?e:Jd(e,qs);if(typeof t=="symbol")throw new ws("Cannot convert a Symbol value to a number");if(typeof t=="bigint")throw new ws("Conversion from 'BigInt' to 'number' is not allowed.");return typeof t=="string"?Bd(t):qs(t)}});var Os=s((wb,Ps)=>{"use strict";var Wd=Math.floor;Ps.exports=function(e){return typeof e=="bigint"?e:Wd(e)}});var _s=s((qb,Is)=>{"use strict";var $s=Os(),Gd=b();Is.exports=function(e){if(typeof e!="number"&&typeof e!="bigint")throw new Gd("argument must be a Number or a BigInt");var t=e<0?-$s(-e):$s(e);return t===0?0:t}});var xt=s((Tb,ks)=>{"use strict";var Xd=As(),Hd=_s(),Kd=he(),zd=kr();ks.exports=function(e){var t=Xd(e);return Kd(t)||t===0?0:zd(t)?Hd(t):t}});var St=s((Ab,Fs)=>{"use strict";var Cs=at(),Qd=xt();Fs.exports=function(e){var t=Qd(e);return t<=0?0:t>Cs?Cs:t}});var js=s((Pb,Ns)=>{"use strict";var Yd=b(),Zd=Ee(),em=St(),rm=I();Ns.exports=function(e){if(rm(e)!=="Object")throw new Yd("Assertion failed: `obj` must be an Object");return em(Zd(e,"length"))}});var Ls=s((Ob,Rs)=>{"use strict";var tm=P(),nm=tm("%String%"),om=b();Rs.exports=function(e){if(typeof e=="symbol")throw new om("Cannot convert a Symbol value to a string");return nm(e)}});var Ds=s(($b,Us)=>{"use strict";var Ms=b(),im=at(),am=la(),sm=ka(),um=Ee(),lm=Na(),pm=ze(),cm=js(),Vs=Ls();Us.exports=function r(e,t,n,o,i){var a;arguments.length>5&&(a=arguments[5]);for(var u=o,l=0;l<n;){var y=Vs(l),m=lm(t,y);if(m===!0){var f=um(t,y);if(typeof a<"u"){if(arguments.length<=6)throw new Ms("Assertion failed: thisArg is required when mapperFunction is provided");f=am(a,arguments[6],[f,l,t])}var c=!1;if(i>0&&(c=pm(f)),c){var h=cm(f);u=r(e,f,h,u,i-1)}else{if(u>=im)throw new Ms("index too large");sm(e,Vs(u),f),u+=1}}l+=1}return u}});var Bs=s((Ib,Js)=>{"use strict";Js.exports=Object});var Gs=s((_b,Ws)=>{"use strict";var fm=Bs(),dm=Ae();Ws.exports=function(e){return dm(e),fm(e)}});var Hs=s((kb,Xs)=>{"use strict";Xs.exports=Gs()});var Et=s((Cb,Ks)=>{"use strict";var mm=aa(),ym=Ds(),gm=Ee(),vm=xt(),hm=St(),bm=Hs();Ks.exports=function(){var e=bm(this),t=hm(gm(e,"length")),n=1;arguments.length>0&&typeof arguments[0]<"u"&&(n=vm(arguments[0]));var o=mm(e,0);return ym(o,e,t,0,n),o}});var wt=s((Fb,zs)=>{"use strict";var xm=Et();zs.exports=function(){return Array.prototype.flat||xm}});var eu=s((Nb,Zs)=>{"use strict";var Sm=X(),Ys=typeof Symbol=="function"&&typeof Symbol.unscopables=="symbol",Em=Ys&&Array.prototype[Symbol.unscopables],Qs=TypeError;Zs.exports=function(e){if(typeof e!="string"||!e)throw new Qs("method must be a non-empty string");if(!Sm(Array.prototype,e))throw new Qs("method must be on Array.prototype");Ys&&(Em[e]=!0)}});var tu=s((jb,ru)=>{"use strict";var wm=R(),qm=eu(),Tm=wt();ru.exports=function(){var e=Tm();return wm(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),qm("flat"),e}});var au=s((Rb,iu)=>{"use strict";var Am=R(),Pm=oe(),Om=Et(),nu=wt(),$m=nu(),Im=tu(),ou=Pm($m);Am(ou,{getPolyfill:nu,implementation:Om,shim:Im});iu.exports=ou});var qt=s((Lb,uu)=>{"use strict";var _m=Ae(),su=C(),km=su("Object.prototype.propertyIsEnumerable"),Cm=su("Array.prototype.push");uu.exports=function(e){var t=_m(e),n=[];for(var o in t)km(t,o)&&Cm(n,t[o]);return n}});var Tt=s((Mb,lu)=>{"use strict";var Fm=qt();lu.exports=function(){return typeof Object.values=="function"?Object.values:Fm}});var cu=s((Vb,pu)=>{"use strict";var Nm=Tt(),jm=R();pu.exports=function(){var e=Nm();return jm(Object,{values:e},{values:function(){return Object.values!==e}}),e}});var yu=s((Ub,mu)=>{"use strict";var Rm=R(),Lm=oe(),Mm=qt(),fu=Tt(),Vm=cu(),du=Lm(fu(),Object);Rm(du,{getPolyfill:fu,implementation:Mm,shim:Vm});mu.exports=du});var hu=s(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.eventHandlersByType=void 0;var Um=au(),Dm=gu(Um),Jm=yu(),Bm=gu(Jm);function gu(r){return r&&r.__esModule?r:{default:r}}var vu={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"]};Pe.default=(0,Dm.default)((0,Bm.default)(vu));Pe.eventHandlersByType=vu});var xu=s(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});var Wm=function(){function r(e,t){var n=[],o=!0,i=!1,a=void 0;try{for(var u=e[Symbol.iterator](),l;!(o=(l=u.next()).done)&&(n.push(l.value),!(t&&n.length===t));o=!0);}catch(y){i=!0,a=y}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")}}(),le=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};Pt.default=zm;var Gm=Fe(),Xm=Hm(Gm);function Hm(r){return r&&r.__esModule?r:{default:r}}function bu(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 Km={ignoreCase:!0};function zm(){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]:Km;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,Xm.default)(u))});return a&&a.type==="JSXSpreadAttribute"?Qm(a.argument.properties.find(i)):a}function Qm(r){var e=r.key,t=r.value;return le({type:"JSXAttribute",name:le({type:"JSXIdentifier",name:e.name},At(e)),value:t.type==="Literal"?Oe(t):le({type:"JSXExpressionContainer",expression:Ym(t)},At(t))},At(r))}function Oe(r){var e=r.range||[r.start,r.end],t=Wm(e,2),n=t[0],o=t[1];return le({},r,{end:void 0,range:[n,o],start:void 0})}function Ym(r){var e=r.expressions,t=r.quasis,n=bu(r,["expressions","quasis"]);return le({},Oe(n),e?{expressions:e.map(Oe)}:{},t?{quasis:t.map(Oe)}:{})}function At(r){var e=r.loc,t=bu(r,["loc"]),n=Oe(t),o=n.range;return{loc:Zm(e),range:o}}function Zm(r){var e=r.start,t=r.end,n=r.source,o=r.filename;return le({start:e,end:t},n!==void 0?{source:n}:{},o!==void 0?{filename:o}:{})}});var $t=s(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.default=ey;function ey(r){var e=r.value,t=typeof e=="string"&&e.toLowerCase();return t==="true"?!0:t==="false"?!1:e}});var _t=s(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.default=ry;function ry(r){var e=ar().default,t=r.openingElement.name.name;return r.openingElement.selfClosing?"<"+t+" />":"<"+t+">"+[].concat(r.children).map(function(n){return e(n)}).join("")+"</"+t+">"}});var Ct=s(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.default=ty;function ty(r){return r.raw}});var Nt=s(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.default=ny;function ny(r){var e=ar().default;return r.children.length===0?"<></>":"<>"+[].concat(r.children).map(function(t){return e(t)}).join("")+"</>"}});var Eu=s(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.default=oy;var Su={Array,Date,Infinity:1/0,Math,Number,Object,String,undefined:void 0};function oy(r){var e=r.name;return Object.hasOwnProperty.call(Su,e)?Su[e]:e}});var Lt=s(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.default=ay;function iy(r,e){return(r.range?r.range[0]:r.start)-(e.range?e.range[0]:e.start)}function ay(r){var e=r.quasis,t=r.expressions,n=e.concat(t);return n.sort(iy).map(function(o){var i=o.type,a=o.value;a=a===void 0?{}:a;var u=a.raw,l=o.name;return i==="TemplateElement"?u:i==="Identifier"?l==="undefined"?l:"{"+l+"}":i.indexOf("Expression")>-1?"{"+i+"}":""}).join("")}});var wu=s(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.default=py;var sy=Lt(),uy=ly(sy);function ly(r){return r&&r.__esModule?r:{default:r}}function py(r){return(0,uy.default)(r.quasi)}});var qu=s(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.default=cy;function cy(r){return function(){return r}}});var Tu=s(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.default=fy;function fy(r){var e=A().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 Au=s(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.default=dy;function dy(r){var e=A().default;return""+e(r.object)+(r.optional?"?.":".")+e(r.property)}});var Pu=s(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.default=my;function my(r){var e=A().default;return e(r.expression||r)}});var Ou=s(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.default=yy;function yy(r){var e=A().default;return e(r.callee)+"?.("+r.arguments.map(function(t){return e(t)}).join(", ")+")"}});var $u=s(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.default=gy;function gy(r){var e=A().default;return e(r.object)+"?."+e(r.property)}});var Xt=s(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.default=vy;function vy(r){var e=A().default,t=Array.isArray(r.arguments)?r.arguments.map(function(n){return e(n)}).join(", "):"";return""+e(r.callee)+(r.optional?"?.":"")+"("+t+")"}});var Iu=s(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.default=hy;function hy(r){var e=A().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 zt=s(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.default=by;function by(){return"this"}});var _u=s(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.default=xy;function xy(r){var e=A().default,t=r.test,n=r.alternate,o=r.consequent;return e(t)?e(o):e(n)}});var ku=s(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.default=Sy;function Sy(r){var e=A().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 Zt=s((ux,Ru)=>{"use strict";var Ey=Er(),Nu=Re()(),ju=C(),Cu=Object,wy=ju("Array.prototype.push"),Fu=ju("Object.prototype.propertyIsEnumerable"),qy=Nu?Object.getOwnPropertySymbols:null;Ru.exports=function(e,t){if(e==null)throw new TypeError("target must be an object");var n=Cu(e);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var i=Cu(arguments[o]),a=Ey(i),u=Nu&&(Object.getOwnPropertySymbols||qy);if(u)for(var l=u(i),y=0;y<l.length;++y){var m=l[y];Fu(i,m)&&wy(a,m)}for(var f=0;f<a.length;++f){var c=a[f];if(Fu(i,c)){var h=i[c];n[c]=h}}}return n}});var rn=s((lx,Lu)=>{"use strict";var en=Zt(),Ty=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},Ay=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};Lu.exports=function(){return!Object.assign||Ty()||Ay()?en:Object.assign}});var Vu=s((px,Mu)=>{"use strict";var Py=R(),Oy=rn();Mu.exports=function(){var e=Oy();return Py(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}});var Bu=s((cx,Ju)=>{"use strict";var $y=R(),Iy=oe(),_y=Zt(),Uu=rn(),ky=Vu(),Cy=Iy.apply(Uu()),Du=function(e,t){return Cy(Object,arguments)};$y(Du,{getPolyfill:Uu,implementation:_y,shim:ky});Ju.exports=Du});var Xu=s(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.default=Gu;var Fy=Bu(),Wu=Ny(Fy);function Ny(r){return r&&r.__esModule?r:{default:r}}function jy(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Gu(r){var e=A().default;return r.properties.reduce(function(t,n){if(/^(?:Experimental)?Spread(?:Property|Element)$/.test(n.type)){if(n.argument.type==="ObjectExpression")return(0,Wu.default)({},t,Gu(n.argument))}else return(0,Wu.default)({},t,jy({},e(n.key),e(n.value)));return t},{})}});var Hu=s(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.default=Ry;function Ry(){return new Object}});var Ku=s(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.default=Ly;function Ly(r){var e=A().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 zu=s(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.default=My;function My(r){var e=A().default;return r.elements.map(function(t){if(t!==null)return e(t)})}});var Qu=s(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.default=Vy;function Vy(r){var e=A().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 Yu=s(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.default=Uy;function Uy(){}});var Zu=s(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.default=Dy;function Dy(r){var e=A().default;return e(r.expression)}});var el=s(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.default=Jy;function Jy(r){var e=A().default;return r.expressions.map(function(t){return e(t)})}});var tl=s(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.default=B;var By=zt().default,Wy=Xt().default;function rl(r,e,t){return t.computed?t.optional?r+"?.["+e+"]":r+"["+e+"]":t.optional?r+"?."+e:r+"."+e}function B(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 B(r.expression);if(r.type==="CallExpression")return Wy(r);if(r.type==="ThisExpression")return By();if(r.type==="TSNonNullExpression"&&(!r.extra||r.extra.parenthesized===!1)){var n=r.expression;return B(n)+"!"}if(r.type==="TSNonNullExpression"&&r.extra&&r.extra.parenthesized===!0){var o=r.expression;return"("+B(o)+"!)"}if(r.type==="MemberExpression"){if(!r.extra||r.extra.parenthesized===!1)return rl(B(r.object),B(r.property),r);if(r.extra&&r.extra.parenthesized===!0){var i=rl(B(r.object),B(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 nl=s(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.default=Gy;function Gy(r){var e=A().default;return e(r.left)+" "+r.operator+" "+e(r.right)}});var A=s(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});var Xy=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};sr.default=Kg;sr.extractLiteral=zg;var Hy=$t(),Ky=x(Hy),zy=_t(),Qy=x(zy),Yy=Nt(),Zy=x(Yy),eg=Ct(),rg=x(eg),tg=Eu(),ng=x(tg),og=wu(),ig=x(og),ag=Lt(),sg=x(ag),ug=qu(),ol=x(ug),lg=Tu(),pg=x(lg),cg=Au(),fg=x(cg),dg=Pu(),mg=x(dg),yg=Ou(),gg=x(yg),vg=$u(),hg=x(vg),bg=Xt(),xg=x(bg),Sg=Iu(),Eg=x(Sg),wg=zt(),qg=x(wg),Tg=_u(),Ag=x(Tg),Pg=ku(),Og=x(Pg),$g=Xu(),Ig=x($g),_g=Hu(),kg=x(_g),Cg=Ku(),Fg=x(Cg),Ng=zu(),jg=x(Ng),Rg=Qu(),Lg=x(Rg),Mg=Yu(),Vg=x(Mg),Ug=Zu(),Dg=x(Ug),Jg=el(),Bg=x(Jg),Wg=tl(),Gg=x(Wg),Xg=nl(),Hg=x(Xg);function x(r){return r&&r.__esModule?r:{default:r}}var W={Identifier:ng.default,Literal:Ky.default,JSXElement:Qy.default,JSXFragment:Zy.default,JSXText:rg.default,TaggedTemplateExpression:ig.default,TemplateLiteral:sg.default,ArrowFunctionExpression:ol.default,FunctionExpression:ol.default,LogicalExpression:pg.default,MemberExpression:fg.default,ChainExpression:mg.default,OptionalCallExpression:gg.default,OptionalMemberExpression:hg.default,CallExpression:xg.default,UnaryExpression:Eg.default,ThisExpression:qg.default,ConditionalExpression:Ag.default,BinaryExpression:Og.default,ObjectExpression:Ig.default,NewExpression:kg.default,UpdateExpression:Fg.default,ArrayExpression:jg.default,BindExpression:Lg.default,SpreadElement:Vg.default,TypeCastExpression:Dg.default,SequenceExpression:Bg.default,TSNonNullExpression:Gg.default,AssignmentExpression:Hg.default},q=function(){return null},al=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 Kg(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 W[n]===void 0?(console.error(al(n)),null):W[n](e)}var il=Xy({},W,{Literal:function(e){var t=W.Literal.call(void 0,e),n=t===null;return n?"null":t},Identifier:function(e){var t=W.Identifier.call(void 0,e)===void 0;return t?void 0:null},JSXElement:q,JSXFragment:q,JSXText:q,ArrowFunctionExpression:q,FunctionExpression:q,LogicalExpression:q,MemberExpression:q,OptionalCallExpression:q,OptionalMemberExpression:q,CallExpression:q,UnaryExpression:function(e){var t=W.UnaryExpression.call(void 0,e);return t===void 0?null:t},UpdateExpression:function(e){var t=W.UpdateExpression.call(void 0,e);return t===void 0?null:t},ThisExpression:q,ConditionalExpression:q,BinaryExpression:q,ObjectExpression:q,NewExpression:q,ArrayExpression:function(e){var t=W.ArrayExpression.call(void 0,e);return t.filter(function(n){return n!==null})},BindExpression:q,SpreadElement:q,TSNonNullExpression:q,TSAsExpression:q,TypeCastExpression:q,SequenceExpression:q,ChainExpression:q});function zg(r){var e=r.expression||r,t=e.type;return il[t]===void 0?(console.error(al(t)),null):il[t](e)}});var ar=s(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});var Qg=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};ur.default=uv;ur.getLiteralValue=lv;var Yg=$t(),Zg=$e(Yg),ev=_t(),rv=$e(ev),tv=Ct(),nv=$e(tv),ov=Nt(),iv=$e(ov),sl=A(),av=$e(sl);function $e(r){return r&&r.__esModule?r:{default:r}}var dn={Literal:Zg.default,JSXElement:rv.default,JSXExpressionContainer:av.default,JSXText:nv.default,JSXFragment:iv.default},sv=Qg({},dn,{JSXElement:function(){return null},JSXExpressionContainer:sl.extractLiteral});function uv(r){return dn[r.type]||console.log(r.type),dn[r.type](r)}function lv(r){return sv[r.type](r)}});var pl=s(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.default=fv;lr.getLiteralPropValue=dv;var ul=ar(),pv=cv(ul);function cv(r){return r&&r.__esModule?r:{default:r}}var ll=function(e,t){if(e&&e.type==="JSXAttribute")return e.value===null?!0:t(e.value)};function fv(r){return ll(r,pv.default)}function dv(r){return ll(r,ul.getLiteralValue)}});var pr=s((Tx,dl)=>{"use strict";var mn=$n(),mv=pe(mn),yv=_n(),gv=pe(yv),cl=hu(),vv=pe(cl),hv=xu(),bv=pe(hv),fl=pl(),xv=pe(fl),Sv=Fe(),Ev=pe(Sv);function pe(r){return r&&r.__esModule?r:{default:r}}dl.exports={hasProp:mv.default,hasAnyProp:mn.hasAnyProp,hasEveryProp:mn.hasEveryProp,elementType:gv.default,eventHandlers:vv.default,eventHandlersByType:cl.eventHandlersByType,getProp:bv.default,getPropValue:xv.default,getLiteralPropValue:fl.getLiteralPropValue,propName:Ev.default}});var ql=s((yS,wl)=>{"use strict";wl.exports=r=>{let e=r.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((t,n)=>Math.min(t,n.length),1/0):0}});var Wv={};Dl(Wv,{configs:()=>Jv,qwikEslint9Plugin:()=>Bv,rules:()=>kl});module.exports=Jl(Wv);var An=require("@typescript-eslint/utils"),Bl=An.ESLintUtils.RuleCreator(()=>"https://qwik.dev/docs/advanced/dollar/"),Pn=Bl({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 $l=require("@typescript-eslint/utils");var gn=Y(pr());function yn(r){return r.type==="FunctionExpression"||r.type==="ArrowFunctionExpression"}var cr={checkFragmentShorthand:!1,checkKeyMustBeforeSpread:!1,warnOnDuplicates:!1},wv={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"},ml={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:wv,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((r.sourceCode??r.getSourceCode()).getAllComments().some(p=>p.value.includes("@jsxImportSource")))return{};let n=Object.assign({},cr,r.options[0]),o=n.checkFragmentShorthand,i=n.checkKeyMustBeforeSpread,a=n.warnOnDuplicates;function u(p){p.type==="JSXElement"&&!gn.default.hasProp(p.openingElement.attributes,"key")?r.report({node:p,messageId:"missingIterKey"}):o&&p.type==="JSXFragment"&&r.report({node:p,messageId:"missingIterKeyUsePrag"})}function l(p,d=[]){return p.type==="IfStatement"?(p.consequent&&l(p.consequent,d),p.alternate&&l(p.alternate,d)):Array.isArray(p.body)&&p.body.forEach(E=>{E.type==="IfStatement"&&l(E,d),E.type==="ReturnStatement"&&d.push(E)}),d}function y(p){let d=!1;return p.some(E=>E.type==="JSXSpreadAttribute"?(d=!0,!1):E.type!=="JSXAttribute"?!1:d&&gn.default.propName(E)==="key")}function m(p){yn(p)&&p.body.type==="BlockStatement"&&l(p.body).filter(d=>d&&d.argument).forEach(d=>{u(d.argument)})}function f(p){let d=p&&p.type==="ArrowFunctionExpression",E=g=>g&&(g.type==="JSXElement"||g.type==="JSXFragment");d&&E(p.body)&&u(p.body),p.body.type==="ConditionalExpression"?(E(p.body.consequent)&&u(p.body.consequent),E(p.body.alternate)&&u(p.body.alternate)):p.body.type==="LogicalExpression"&&E(p.body.right)&&u(p.body.right)}let c=`:matches(
|
|
1
|
+
"use strict";var Bl=Object.create;var _e=Object.defineProperty;var Jl=Object.getOwnPropertyDescriptor;var Wl=Object.getOwnPropertyNames;var Gl=Object.getPrototypeOf,Hl=Object.prototype.hasOwnProperty;var s=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Xl=(r,e)=>{for(var t in e)_e(r,t,{get:e[t],enumerable:!0})},In=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Wl(e))!Hl.call(r,o)&&o!==t&&_e(r,o,{get:()=>e[o],enumerable:!(n=Jl(e,o))||n.enumerable});return r};var ee=(r,e,t)=>(t=r!=null?Bl(Gl(r)):{},In(e||!r||!r.__esModule?_e(t,"default",{value:r,enumerable:!0}):t,r)),zl=r=>In(_e({},"__esModule",{value:!0}),r);var Fe=s(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.default=ep;function ep(){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 Fn=s(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.default=vr;de.hasAnyProp=np;de.hasEveryProp=op;var rp=Fe(),_n=tp(rp);function tp(r){return r&&r.__esModule?r:{default:r}}var gr={spreadStrict:!0,ignoreCase:!0};function vr(){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]:gr,n=t.ignoreCase?e.toUpperCase():e;return r.some(function(o){if(o.type==="JSXSpreadAttribute")return!t.spreadStrict;var i=t.ignoreCase?(0,_n.default)(o).toUpperCase():(0,_n.default)(o);return n===i})}function np(){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]:gr,n=typeof e=="string"?e.split(" "):e;return n.some(function(o){return vr(r,o,t)})}function op(){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]:gr,n=typeof e=="string"?e.split(" "):e;return n.every(function(o){return vr(r,o,t)})}});var jn=s(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.default=ip;function Nn(){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"?Nn(r.object,r.property)+"."+e.name:r.name+"."+e.name}function ip(){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 Nn(n,i)}return e.type==="JSXNamespacedName"?e.namespace.name+":"+e.name.name:r.name.name}});var br=s((yh,Mn)=>{"use strict";var Rn=Object.prototype.toString;Mn.exports=function(e){var t=Rn.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Rn.call(e.callee)==="[object Function]"),n}});var Hn=s((gh,Gn)=>{"use strict";var Wn;Object.keys||(me=Object.prototype.hasOwnProperty,Sr=Object.prototype.toString,Ln=br(),xr=Object.prototype.propertyIsEnumerable,Un=!xr.call({toString:null},"toString"),Vn=xr.call(function(){},"prototype"),ye=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Ne=function(r){var e=r.constructor;return e&&e.prototype===r},Dn={$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},Bn=function(){if(typeof window>"u")return!1;for(var r in window)try{if(!Dn["$"+r]&&me.call(window,r)&&window[r]!==null&&typeof window[r]=="object")try{Ne(window[r])}catch{return!0}}catch{return!0}return!1}(),Jn=function(r){if(typeof window>"u"||!Bn)return Ne(r);try{return Ne(r)}catch{return!1}},Wn=function(e){var t=e!==null&&typeof e=="object",n=Sr.call(e)==="[object Function]",o=Ln(e),i=t&&Sr.call(e)==="[object String]",a=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var u=Vn&&n;if(i&&e.length>0&&!me.call(e,0))for(var p=0;p<e.length;++p)a.push(String(p));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")&&me.call(e,d)&&a.push(String(d));if(Un)for(var f=Jn(e),m=0;m<ye.length;++m)!(f&&ye[m]==="constructor")&&me.call(e,ye[m])&&a.push(ye[m]);return a});var me,Sr,Ln,xr,Un,Vn,ye,Ne,Dn,Bn,Jn;Gn.exports=Wn});var Er=s((vh,Kn)=>{"use strict";var ap=Array.prototype.slice,sp=br(),Xn=Object.keys,je=Xn?function(e){return Xn(e)}:Hn(),zn=Object.keys;je.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 sp(n)?zn(ap.call(n)):zn(n)})}else Object.keys=je;return Object.keys||je};Kn.exports=je});var Yn=s((hh,Qn)=>{"use strict";Qn.exports=Error});var eo=s((bh,Zn)=>{"use strict";Zn.exports=EvalError});var wr=s((Sh,ro)=>{"use strict";ro.exports=RangeError});var no=s((xh,to)=>{"use strict";to.exports=ReferenceError});var ge=s((Eh,oo)=>{"use strict";oo.exports=SyntaxError});var x=s((wh,io)=>{"use strict";io.exports=TypeError});var so=s((qh,ao)=>{"use strict";ao.exports=URIError});var Re=s((Th,uo)=>{"use strict";uo.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(t 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 i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==o||a.enumerable!==!0)return!1}return!0}});var qr=s((Ah,po)=>{"use strict";var lo=typeof Symbol<"u"&&Symbol,up=Re();po.exports=function(){return typeof lo!="function"||typeof Symbol!="function"||typeof lo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:up()}});var Ar=s((Ph,co)=>{"use strict";var Tr={__proto__:null,foo:{}},lp=Object;co.exports=function(){return{__proto__:Tr}.foo===Tr.foo&&!(Tr instanceof lp)}});var yo=s((Ih,mo)=>{"use strict";var pp="Function.prototype.bind called on incompatible ",cp=Object.prototype.toString,fp=Math.max,dp="[object Function]",fo=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},mp=function(e,t){for(var n=[],o=t||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},yp=function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t};mo.exports=function(e){var t=this;if(typeof t!="function"||cp.apply(t)!==dp)throw new TypeError(pp+t);for(var n=mp(arguments,1),o,i=function(){if(this instanceof o){var d=t.apply(this,fo(n,arguments));return Object(d)===d?d:this}return t.apply(e,fo(n,arguments))},a=fp(0,t.length-n.length),u=[],p=0;p<a;p++)u[p]="$"+p;if(o=Function("binder","return function ("+yp(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 Me=s((Oh,go)=>{"use strict";var gp=yo();go.exports=Function.prototype.bind||gp});var X=s(($h,vo)=>{"use strict";var vp=Function.prototype.call,hp=Object.prototype.hasOwnProperty,bp=Me();vo.exports=bp.call(vp,hp)});var I=s((kh,Eo)=>{"use strict";var S,Sp=Yn(),xp=eo(),Ep=wr(),wp=no(),oe=ge(),ne=x(),qp=so(),xo=Function,Pr=function(r){try{return xo('"use strict"; return ('+r+").constructor;")()}catch{}},z=Object.getOwnPropertyDescriptor;if(z)try{z({},"")}catch{z=null}var Ir=function(){throw new ne},Tp=z?function(){try{return arguments.callee,Ir}catch{try{return z(arguments,"callee").get}catch{return Ir}}}():Ir,re=qr()(),Ap=Ar()(),A=Object.getPrototypeOf||(Ap?function(r){return r.__proto__}:null),te={},Pp=typeof Uint8Array>"u"||!A?S:A(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?S:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?S:ArrayBuffer,"%ArrayIteratorPrototype%":re&&A?A([][Symbol.iterator]()):S,"%AsyncFromSyncIteratorPrototype%":S,"%AsyncFunction%":te,"%AsyncGenerator%":te,"%AsyncGeneratorFunction%":te,"%AsyncIteratorPrototype%":te,"%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%":Sp,"%eval%":eval,"%EvalError%":xp,"%Float32Array%":typeof Float32Array>"u"?S:Float32Array,"%Float64Array%":typeof Float64Array>"u"?S:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?S:FinalizationRegistry,"%Function%":xo,"%GeneratorFunction%":te,"%Int8Array%":typeof Int8Array>"u"?S:Int8Array,"%Int16Array%":typeof Int16Array>"u"?S:Int16Array,"%Int32Array%":typeof Int32Array>"u"?S:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":re&&A?A(A([][Symbol.iterator]())):S,"%JSON%":typeof JSON=="object"?JSON:S,"%Map%":typeof Map>"u"?S:Map,"%MapIteratorPrototype%":typeof Map>"u"||!re||!A?S:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?S:Promise,"%Proxy%":typeof Proxy>"u"?S:Proxy,"%RangeError%":Ep,"%ReferenceError%":wp,"%Reflect%":typeof Reflect>"u"?S:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?S:Set,"%SetIteratorPrototype%":typeof Set>"u"||!re||!A?S:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?S:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":re&&A?A(""[Symbol.iterator]()):S,"%Symbol%":re?Symbol:S,"%SyntaxError%":oe,"%ThrowTypeError%":Tp,"%TypedArray%":Pp,"%TypeError%":ne,"%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%":qp,"%WeakMap%":typeof WeakMap>"u"?S:WeakMap,"%WeakRef%":typeof WeakRef>"u"?S:WeakRef,"%WeakSet%":typeof WeakSet>"u"?S:WeakSet};if(A)try{null.error}catch(r){ho=A(A(r)),K["%Error.prototype%"]=ho}var ho,Ip=function r(e){var t;if(e==="%AsyncFunction%")t=Pr("async function () {}");else if(e==="%GeneratorFunction%")t=Pr("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Pr("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 K[e]=t,t},bo={__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"]},ve=Me(),Le=X(),Op=ve.call(Function.call,Array.prototype.concat),$p=ve.call(Function.apply,Array.prototype.splice),So=ve.call(Function.call,String.prototype.replace),Ue=ve.call(Function.call,String.prototype.slice),kp=ve.call(Function.call,RegExp.prototype.exec),Cp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_p=/\\(\\)?/g,Fp=function(e){var t=Ue(e,0,1),n=Ue(e,-1);if(t==="%"&&n!=="%")throw new oe("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new oe("invalid intrinsic syntax, expected opening `%`");var o=[];return So(e,Cp,function(i,a,u,p){o[o.length]=u?So(p,_p,"$1"):a||i}),o},Np=function(e,t){var n=e,o;if(Le(bo,n)&&(o=bo[n],n="%"+o[0]+"%"),Le(K,n)){var i=K[n];if(i===te&&(i=Ip(n)),typeof i>"u"&&!t)throw new ne("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new oe("intrinsic "+e+" does not exist!")};Eo.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new ne("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new ne('"allowMissing" argument must be a boolean');if(kp(/^%?[^%]*%?$/,e)===null)throw new oe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Fp(e),o=n.length>0?n[0]:"",i=Np("%"+o+"%",t),a=i.name,u=i.value,p=!1,l=i.alias;l&&(o=l[0],$p(n,Op([0,1],l)));for(var d=1,f=!0;d<n.length;d+=1){var m=n[d],y=Ue(m,0,1),v=Ue(m,-1);if((y==='"'||y==="'"||y==="`"||v==='"'||v==="'"||v==="`")&&y!==v)throw new oe("property names with quotes must have matching quotes");if((m==="constructor"||!f)&&(p=!0),o+="."+m,a="%"+o+"%",Le(K,a))u=K[a];else if(u!=null){if(!(m in u)){if(!t)throw new ne("base intrinsic for "+e+" exists, but the property is not available.");return}if(z&&d+1>=n.length){var c=z(u,m);f=!!c,f&&"get"in c&&!("originalValue"in c.get)?u=c.get:u=u[m]}else f=Le(u,m),u=u[m];f&&!p&&(K[a]=u)}}return u}});var he=s((Ch,wo)=>{"use strict";var jp=I(),Ve=jp("%Object.defineProperty%",!0)||!1;if(Ve)try{Ve({},"a",{value:1})}catch{Ve=!1}wo.exports=Ve});var Be=s((_h,qo)=>{"use strict";var Rp=I(),De=Rp("%Object.getOwnPropertyDescriptor%",!0);if(De)try{De([],"length")}catch{De=null}qo.exports=De});var Or=s((Fh,Po)=>{"use strict";var To=he(),Mp=ge(),ie=x(),Ao=Be();Po.exports=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new ie("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new ie("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ie("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ie("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ie("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ie("`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,p=!!Ao&&Ao(e,t);if(To)To(e,t,{configurable:a===null&&p?p.configurable:!a,enumerable:o===null&&p?p.enumerable:!o,value:n,writable:i===null&&p?p.writable:!i});else if(u||!o&&!i&&!a)e[t]=n;else throw new Mp("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Je=s((Nh,Oo)=>{"use strict";var $r=he(),Io=function(){return!!$r};Io.hasArrayLengthDefineBug=function(){if(!$r)return null;try{return $r([],"length",{value:1}).length!==1}catch{return!0}};Oo.exports=Io});var j=s((jh,_o)=>{"use strict";var Lp=Er(),Up=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Vp=Object.prototype.toString,Dp=Array.prototype.concat,$o=Or(),Bp=function(r){return typeof r=="function"&&Vp.call(r)==="[object Function]"},ko=Je()(),Jp=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!Bp(n)||!n())return}ko?$o(r,e,t,!0):$o(r,e,t)},Co=function(r,e){var t=arguments.length>2?arguments[2]:{},n=Lp(e);Up&&(n=Dp.call(n,Object.getOwnPropertySymbols(e)));for(var o=0;o<n.length;o+=1)Jp(r,n[o],e[n[o]],t[n[o]])};Co.supportsDescriptors=!!ko;_o.exports=Co});var Mo=s((Rh,Ro)=>{"use strict";var Wp=I(),Fo=Or(),Gp=Je()(),No=Be(),jo=x(),Hp=Wp("%Math.floor%");Ro.exports=function(e,t){if(typeof e!="function")throw new jo("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||Hp(t)!==t)throw new jo("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in e&&No){var a=No(e,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!n)&&(Gp?Fo(e,"length",t,!0,!0):Fo(e,"length",t)),e}});var ae=s((Mh,We)=>{"use strict";var kr=Me(),Ge=I(),Xp=Mo(),zp=x(),Vo=Ge("%Function.prototype.apply%"),Do=Ge("%Function.prototype.call%"),Bo=Ge("%Reflect.apply%",!0)||kr.call(Do,Vo),Lo=he(),Kp=Ge("%Math.max%");We.exports=function(e){if(typeof e!="function")throw new zp("a function is required");var t=Bo(kr,Do,arguments);return Xp(t,1+Kp(0,e.length-(arguments.length-1)),!0)};var Uo=function(){return Bo(kr,Vo,arguments)};Lo?Lo(We.exports,"apply",{value:Uo}):We.exports.apply=Uo});var be=s((Lh,Jo)=>{"use strict";Jo.exports=Number.isNaN||function(e){return e!==e}});var Cr=s((Uh,Wo)=>{"use strict";var Qp=be();Wo.exports=function(r){return(typeof r=="number"||typeof r=="bigint")&&!Qp(r)&&r!==1/0&&r!==-1/0}});var _r=s((Vh,Ho)=>{"use strict";var Go=I(),Yp=Go("%Math.abs%"),Zp=Go("%Math.floor%"),ec=be(),rc=Cr();Ho.exports=function(e){if(typeof e!="number"||ec(e)||!rc(e))return!1;var t=Yp(e);return Zp(t)===t}});var Yo=s((Dh,Qo)=>{"use strict";var Ko=I(),Xo=Ko("%Array.prototype%"),tc=wr(),nc=ge(),oc=x(),ic=_r(),ac=Math.pow(2,32)-1,sc=Ar()(),zo=Ko("%Object.setPrototypeOf%",!0)||(sc?function(r,e){return r.__proto__=e,r}:null);Qo.exports=function(e){if(!ic(e)||e<0)throw new oc("Assertion failed: `length` must be an integer Number >= 0");if(e>ac)throw new tc("length is greater than (2**32 - 1)");var t=arguments.length>1?arguments[1]:Xo,n=[];if(t!==Xo){if(!zo)throw new nc("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");zo(n,t)}return e!==0&&(n.length=e),n}});var ei=s((Bh,Zo)=>{Zo.exports=require("util").inspect});var Si=s((Jh,bi)=>{var Br=typeof Map=="function"&&Map.prototype,Fr=Object.getOwnPropertyDescriptor&&Br?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Xe=Br&&Fr&&typeof Fr.get=="function"?Fr.get:null,ri=Br&&Map.prototype.forEach,Jr=typeof Set=="function"&&Set.prototype,Nr=Object.getOwnPropertyDescriptor&&Jr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ze=Jr&&Nr&&typeof Nr.get=="function"?Nr.get:null,ti=Jr&&Set.prototype.forEach,uc=typeof WeakMap=="function"&&WeakMap.prototype,xe=uc?WeakMap.prototype.has:null,lc=typeof WeakSet=="function"&&WeakSet.prototype,Ee=lc?WeakSet.prototype.has:null,pc=typeof WeakRef=="function"&&WeakRef.prototype,ni=pc?WeakRef.prototype.deref:null,cc=Boolean.prototype.valueOf,fc=Object.prototype.toString,dc=Function.prototype.toString,mc=String.prototype.match,Wr=String.prototype.slice,U=String.prototype.replace,yc=String.prototype.toUpperCase,oi=String.prototype.toLowerCase,di=RegExp.prototype.test,ii=Array.prototype.concat,C=Array.prototype.join,gc=Array.prototype.slice,ai=Math.floor,Mr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,jr=Object.getOwnPropertySymbols,Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,se=typeof Symbol=="function"&&typeof Symbol.iterator=="object",O=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===se||!0)?Symbol.toStringTag:null,mi=Object.prototype.propertyIsEnumerable,si=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function ui(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||di.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-ai(-r):ai(r);if(n!==r){var o=String(n),i=Wr.call(e,o.length+1);return U.call(o,t,"$&_")+"."+U.call(U.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return U.call(e,t,"$&_")}var Ur=ei(),li=Ur.custom,pi=gi(li)?li:null;bi.exports=function r(e,t,n,o){var i=t||{};if(L(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(L(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=L(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(L(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(L(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 hi(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var p=String(e);return u?ui(e,p):p}if(typeof e=="bigint"){var l=String(e)+"n";return u?ui(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 Vr(e)?"[Array]":"[Object]";var f=Fc(i,n);if(typeof o>"u")o=[];else if(vi(o,e)>=0)return"[Circular]";function m(Z,Ce,Dl){if(Ce&&(o=gc.call(o),o.push(Ce)),Dl){var Pn={depth:i.depth};return L(i,"quoteStyle")&&(Pn.quoteStyle=i.quoteStyle),r(Z,Pn,n+1,o)}return r(Z,i,n+1,o)}if(typeof e=="function"&&!ci(e)){var y=Tc(e),v=He(e,m);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(v.length>0?" { "+C.call(v,", ")+" }":"")}if(gi(e)){var c=se?U.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Lr.call(e);return typeof e=="object"&&!se?Se(c):c}if(kc(e)){for(var g="<"+oi.call(String(e.nodeName)),h=e.attributes||[],b=0;b<h.length;b++)g+=" "+h[b].name+"="+yi(vc(h[b].value),"double",i);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+oi.call(String(e.nodeName))+">",g}if(Vr(e)){if(e.length===0)return"[]";var T=He(e,m);return f&&!_c(T)?"["+Dr(T,f)+"]":"[ "+C.call(T,", ")+" ]"}if(bc(e)){var $=He(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!mi.call(e,"cause")?"{ ["+String(e)+"] "+C.call(ii.call("[cause]: "+m(e.cause),$),", ")+" }":$.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+C.call($,", ")+" }"}if(typeof e=="object"&&a){if(pi&&typeof e[pi]=="function"&&Ur)return Ur(e,{depth:d-n});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Ac(e)){var H=[];return ri&&ri.call(e,function(Z,Ce){H.push(m(Ce,e,!0)+" => "+m(Z,e))}),fi("Map",Xe.call(e),H,f)}if(Oc(e)){var M=[];return ti&&ti.call(e,function(Z){M.push(m(Z,e))}),fi("Set",ze.call(e),M,f)}if(Pc(e))return Rr("WeakMap");if($c(e))return Rr("WeakSet");if(Ic(e))return Rr("WeakRef");if(xc(e))return Se(m(Number(e)));if(wc(e))return Se(m(Mr.call(e)));if(Ec(e))return Se(cc.call(e));if(Sc(e))return Se(m(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===global)return"{ [object globalThis] }";if(!hc(e)&&!ci(e)){var Y=He(e,m),Tn=si?si(e)===Object.prototype:e instanceof Object||e.constructor===Object,dr=e instanceof Object?"":"null prototype",An=!Tn&&O&&Object(e)===e&&O in e?Wr.call(V(e),8,-1):dr?"Object":"",Vl=Tn||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",mr=Vl+(An||dr?"["+C.call(ii.call([],An||[],dr||[]),": ")+"] ":"");return Y.length===0?mr+"{}":f?mr+"{"+Dr(Y,f)+"}":mr+"{ "+C.call(Y,", ")+" }"}return String(e)};function yi(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function vc(r){return U.call(String(r),/"/g,""")}function Vr(r){return V(r)==="[object Array]"&&(!O||!(typeof r=="object"&&O in r))}function hc(r){return V(r)==="[object Date]"&&(!O||!(typeof r=="object"&&O in r))}function ci(r){return V(r)==="[object RegExp]"&&(!O||!(typeof r=="object"&&O in r))}function bc(r){return V(r)==="[object Error]"&&(!O||!(typeof r=="object"&&O in r))}function Sc(r){return V(r)==="[object String]"&&(!O||!(typeof r=="object"&&O in r))}function xc(r){return V(r)==="[object Number]"&&(!O||!(typeof r=="object"&&O in r))}function Ec(r){return V(r)==="[object Boolean]"&&(!O||!(typeof r=="object"&&O in r))}function gi(r){if(se)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!Lr)return!1;try{return Lr.call(r),!0}catch{}return!1}function wc(r){if(!r||typeof r!="object"||!Mr)return!1;try{return Mr.call(r),!0}catch{}return!1}var qc=Object.prototype.hasOwnProperty||function(r){return r in this};function L(r,e){return qc.call(r,e)}function V(r){return fc.call(r)}function Tc(r){if(r.name)return r.name;var e=mc.call(dc.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function vi(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 Ac(r){if(!Xe||!r||typeof r!="object")return!1;try{Xe.call(r);try{ze.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function Pc(r){if(!xe||!r||typeof r!="object")return!1;try{xe.call(r,xe);try{Ee.call(r,Ee)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function Ic(r){if(!ni||!r||typeof r!="object")return!1;try{return ni.call(r),!0}catch{}return!1}function Oc(r){if(!ze||!r||typeof r!="object")return!1;try{ze.call(r);try{Xe.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function $c(r){if(!Ee||!r||typeof r!="object")return!1;try{Ee.call(r,Ee);try{xe.call(r,xe)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function kc(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function hi(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return hi(Wr.call(r,0,e.maxStringLength),e)+n}var o=U.call(U.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Cc);return yi(o,"single",e)}function Cc(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":"")+yc.call(e.toString(16))}function Se(r){return"Object("+r+")"}function Rr(r){return r+" { ? }"}function fi(r,e,t,n){var o=n?Dr(t,n):C.call(t,", ");return r+" ("+e+") {"+o+"}"}function _c(r){for(var e=0;e<r.length;e++)if(vi(r[e],`
|
|
2
|
+
`)>=0)return!1;return!0}function Fc(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=C.call(Array(r.indent+1)," ");else return null;return{base:t,prev:C.call(Array(e+1),t)}}function Dr(r,e){if(r.length===0)return"";var t=`
|
|
3
|
+
`+e.prev+e.base;return t+C.call(r,","+t)+`
|
|
4
|
+
`+e.prev}function He(r,e){var t=Vr(r),n=[];if(t){n.length=r.length;for(var o=0;o<r.length;o++)n[o]=L(r,o)?e(r[o],r):""}var i=typeof jr=="function"?jr(r):[],a;if(se){a={};for(var u=0;u<i.length;u++)a["$"+i[u]]=i[u]}for(var p in r)L(r,p)&&(t&&String(Number(p))===p&&p<r.length||se&&a["$"+p]instanceof Symbol||(di.call(/[^\w$]/,p)?n.push(e(p,r)+": "+e(r[p],r)):n.push(p+": "+e(r[p],r))));if(typeof jr=="function")for(var l=0;l<i.length;l++)mi.call(r,i[l])&&n.push("["+e(i[l])+"]: "+e(r[i[l]],r));return n}});var D=s((Wh,xi)=>{"use strict";xi.exports=function(e){return typeof e=="string"||typeof e=="symbol"}});var wi=s((Gh,Ei)=>{"use strict";Ei.exports=function(e){if(e===null)return"Null";if(typeof e>"u")return"Undefined";if(typeof e=="function"||typeof e=="object")return"Object";if(typeof e=="number")return"Number";if(typeof e=="boolean")return"Boolean";if(typeof e=="string")return"String"}});var k=s((Hh,qi)=>{"use strict";var Nc=wi();qi.exports=function(e){return typeof e=="symbol"?"Symbol":typeof e=="bigint"?"BigInt":Nc(e)}});var we=s((Xh,Ai)=>{"use strict";var Ti=x(),jc=Si(),Rc=D(),Mc=k();Ai.exports=function(e,t){if(Mc(e)!=="Object")throw new Ti("Assertion failed: Type(O) is not Object");if(!Rc(t))throw new Ti("Assertion failed: IsPropertyKey(P) is not true, got "+jc(t));return e[t]}});var _=s((zh,Oi)=>{"use strict";var Pi=I(),Ii=ae(),Lc=Ii(Pi("String.prototype.indexOf"));Oi.exports=function(e,t){var n=Pi(e,!!t);return typeof n=="function"&&Lc(e,".prototype.")>-1?Ii(n):n}});var Gr=s((Kh,ki)=>{"use strict";var Uc=I(),$i=Uc("%Array%"),Vc=!$i.isArray&&_()("Object.prototype.toString");ki.exports=$i.isArray||function(e){return Vc(e)==="[object Array]"}});var Ke=s((Qh,Ci)=>{"use strict";Ci.exports=Gr()});var Fi=s((Yh,_i)=>{"use strict";_i.exports=I()});var R=s((Zh,Ni)=>{"use strict";var Dc=x(),qe=X(),Bc={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};Ni.exports=function(e){if(!e||typeof e!="object")return!1;for(var t in e)if(qe(e,t)&&!Bc[t])return!1;var n=qe(e,"[[Value]]")||qe(e,"[[Writable]]"),o=qe(e,"[[Get]]")||qe(e,"[[Set]]");if(n&&o)throw new Dc("Property Descriptors may not be both accessor and data descriptors");return!0}});var Hr=s((eb,Mi)=>{"use strict";var Jc=Je(),ji=he(),Ri=Jc.hasArrayLengthDefineBug(),Wc=Ri&&Gr(),Gc=_(),Hc=Gc("Object.prototype.propertyIsEnumerable");Mi.exports=function(e,t,n,o,i,a){if(!ji){if(!e(a)||!a["[[Configurable]]"]||!a["[[Writable]]"]||i in o&&Hc(o,i)!==!!a["[[Enumerable]]"])return!1;var u=a["[[Value]]"];return o[i]=u,t(o[i],u)}return Ri&&i==="length"&&"[[Value]]"in a&&Wc(o)&&o.length!==a["[[Value]]"]?(o.length=a["[[Value]]"],o.length===a["[[Value]]"]):(ji(o,i,n(a)),!0)}});var Ui=s((rb,Li)=>{"use strict";Li.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 Xr=s((tb,Vi)=>{"use strict";var Xc=x(),zc=R(),Kc=Ui();Vi.exports=function(e){if(typeof e<"u"&&!zc(e))throw new Xc("Assertion failed: `Desc` must be a Property Descriptor");return Kc(e)}});var Qe=s((nb,Bi)=>{"use strict";var Qc=x(),Di=X(),Yc=R();Bi.exports=function(e){if(typeof e>"u")return!1;if(!Yc(e))throw new Qc("Assertion failed: `Desc` must be a Property Descriptor");return!(!Di(e,"[[Value]]")&&!Di(e,"[[Writable]]"))}});var Ye=s((ob,Wi)=>{"use strict";var Ji=be();Wi.exports=function(e,t){return e===t?e===0?1/e===1/t:!0:Ji(e)&&Ji(t)}});var Hi=s((ib,Gi)=>{"use strict";Gi.exports=function(e){return!!e}});var Zr=s((ab,Ki)=>{"use strict";var zi=Function.prototype.toString,ue=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Kr,Ze;if(typeof ue=="function"&&typeof Object.defineProperty=="function")try{Kr=Object.defineProperty({},"length",{get:function(){throw Ze}}),Ze={},ue(function(){throw 42},null,Kr)}catch(r){r!==Ze&&(ue=null)}else ue=null;var Zc=/^\s*class\b/,Qr=function(e){try{var t=zi.call(e);return Zc.test(t)}catch{return!1}},zr=function(e){try{return Qr(e)?!1:(zi.call(e),!0)}catch{return!1}},er=Object.prototype.toString,ef="[object Object]",rf="[object Function]",tf="[object GeneratorFunction]",nf="[object HTMLAllCollection]",of="[object HTML document.all class]",af="[object HTMLCollection]",sf=typeof Symbol=="function"&&!!Symbol.toStringTag,uf=!(0 in[,]),Yr=function(){return!1};typeof document=="object"&&(Xi=document.all,er.call(Xi)===er.call(document.all)&&(Yr=function(e){if((uf||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=er.call(e);return(t===nf||t===of||t===af||t===ef)&&e("")==null}catch{}return!1}));var Xi;Ki.exports=ue?function(e){if(Yr(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{ue(e,null,Kr)}catch(t){if(t!==Ze)return!1}return!Qr(e)&&zr(e)}:function(e){if(Yr(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(sf)return zr(e);if(Qr(e))return!1;var t=er.call(e);return t!==rf&&t!==tf&&!/^\[object HTML/.test(t)?!1:zr(e)}});var Yi=s((sb,Qi)=>{"use strict";Qi.exports=Zr()});var rt=s((ub,ea)=>{"use strict";var F=X(),rr=x(),lf=k(),et=Hi(),Zi=Yi();ea.exports=function(e){if(lf(e)!=="Object")throw new rr("ToPropertyDescriptor requires an object");var t={};if(F(e,"enumerable")&&(t["[[Enumerable]]"]=et(e.enumerable)),F(e,"configurable")&&(t["[[Configurable]]"]=et(e.configurable)),F(e,"value")&&(t["[[Value]]"]=e.value),F(e,"writable")&&(t["[[Writable]]"]=et(e.writable)),F(e,"get")){var n=e.get;if(typeof n<"u"&&!Zi(n))throw new rr("getter must be a function");t["[[Get]]"]=n}if(F(e,"set")){var o=e.set;if(typeof o<"u"&&!Zi(o))throw new rr("setter must be a function");t["[[Set]]"]=o}if((F(t,"[[Get]]")||F(t,"[[Set]]"))&&(F(t,"[[Value]]")||F(t,"[[Writable]]")))throw new rr("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}});var na=s((lb,ta)=>{"use strict";var tt=x(),ra=R(),pf=Hr(),cf=Xr(),ff=Qe(),df=D(),mf=Ye(),yf=rt(),gf=k();ta.exports=function(e,t,n){if(gf(e)!=="Object")throw new tt("Assertion failed: Type(O) is not Object");if(!df(t))throw new tt("Assertion failed: IsPropertyKey(P) is not true");var o=ra(n)?n:yf(n);if(!ra(o))throw new tt("Assertion failed: Desc is not a valid Property Descriptor");return pf(ff,mf,cf,e,t,o)}});var ia=s((pb,it)=>{"use strict";var vf=Fi(),oa=vf("%Reflect.construct%",!0),tr=na();try{tr({},"",{"[[Get]]":function(){}})}catch{tr=null}tr&&oa?(nt={},ot={},tr(ot,"length",{"[[Get]]":function(){throw nt},"[[Enumerable]]":!0}),it.exports=function(e){try{oa(e,ot)}catch(t){return t===nt}}):it.exports=function(e){return typeof e=="function"&&!!e.prototype};var nt,ot});var ca=s((cb,pa)=>{"use strict";var hf=I(),aa=hf("%Symbol.species%",!0),sa=x(),ua=Yo(),la=we(),bf=Ke(),Sf=ia(),xf=k(),Ef=_r();pa.exports=function(e,t){if(!Ef(t)||t<0)throw new sa("Assertion failed: length must be an integer >= 0");var n=bf(e);if(!n)return ua(t);var o=la(e,"constructor");if(aa&&xf(o)==="Object"&&(o=la(o,aa),o===null&&(o=void 0)),typeof o>"u")return ua(t);if(!Sf(o))throw new sa("C must be a constructor");return new o(t)}});var at=s((fb,fa)=>{"use strict";fa.exports=Number.MAX_SAFE_INTEGER||9007199254740991});var ma=s((db,da)=>{"use strict";var wf=I(),qf=_(),Tf=x(),Af=Ke(),Pf=wf("%Reflect.apply%",!0)||qf("Function.prototype.apply");da.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!Af(n))throw new Tf("Assertion failed: optional `argumentsList`, if provided, must be a List");return Pf(e,t,n)}});var nr=s((mb,ga)=>{"use strict";var If=x(),ya=X(),Of=R();ga.exports=function(e){if(typeof e>"u")return!1;if(!Of(e))throw new If("Assertion failed: `Desc` must be a Property Descriptor");return!(!ya(e,"[[Get]]")&&!ya(e,"[[Set]]"))}});var st=s((yb,va)=>{"use strict";va.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var xa=s((gb,Sa)=>{"use strict";var ba=I(),$f=ba("%Object.preventExtensions%",!0),kf=ba("%Object.isExtensible%",!0),ha=st();Sa.exports=$f?function(e){return!ha(e)&&kf(e)}:function(e){return!ha(e)}});var wa=s((vb,Ea)=>{"use strict";var Cf=R();Ea.exports=function(e,t){return Cf(t)&&typeof t=="object"&&"[[Enumerable]]"in t&&"[[Configurable]]"in t&&(e.IsAccessorDescriptor(t)||e.IsDataDescriptor(t))}});var Ta=s((hb,qa)=>{"use strict";var _f=x(),Ff=nr(),Nf=Qe(),jf=R();qa.exports=function(e){if(typeof e>"u")return!1;if(!jf(e))throw new _f("Assertion failed: `Desc` must be a Property Descriptor");return!Ff(e)&&!Nf(e)}});var Ia=s((bb,Pa)=>{"use strict";var le=x(),Te=Hr(),Rf=wa(),Aa=R(),Ae=Xr(),Q=nr(),B=Qe(),Mf=Ta(),Lf=D(),N=Ye(),Uf=k();Pa.exports=function(e,t,n,o,i){var a=Uf(e);if(a!=="Undefined"&&a!=="Object")throw new le("Assertion failed: O must be undefined or an Object");if(!Lf(t))throw new le("Assertion failed: P must be a Property Key");if(typeof n!="boolean")throw new le("Assertion failed: extensible must be a Boolean");if(!Aa(o))throw new le("Assertion failed: Desc must be a Property Descriptor");if(typeof i<"u"&&!Aa(i))throw new le("Assertion failed: current must be a Property Descriptor, or undefined");if(typeof i>"u")return n?a==="Undefined"?!0:Q(o)?Te(B,N,Ae,e,t,o):Te(B,N,Ae,e,t,{"[[Configurable]]":!!o["[[Configurable]]"],"[[Enumerable]]":!!o["[[Enumerable]]"],"[[Value]]":o["[[Value]]"],"[[Writable]]":!!o["[[Writable]]"]}):!1;if(!Rf({IsAccessorDescriptor:Q,IsDataDescriptor:B},i))throw new le("`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]]"])||!Mf(o)&&!N(Q(o),Q(i)))return!1;if(Q(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(a!=="Undefined"){var u,p;return B(i)&&Q(o)?(u=("[[Configurable]]"in o?o:i)["[[Configurable]]"],p=("[[Enumerable]]"in o?o:i)["[[Enumerable]]"],Te(B,N,Ae,e,t,{"[[Configurable]]":!!u,"[[Enumerable]]":!!p,"[[Get]]":("[[Get]]"in o?o:i)["[[Get]]"],"[[Set]]":("[[Set]]"in o?o:i)["[[Set]]"]})):Q(i)&&B(o)?(u=("[[Configurable]]"in o?o:i)["[[Configurable]]"],p=("[[Enumerable]]"in o?o:i)["[[Enumerable]]"],Te(B,N,Ae,e,t,{"[[Configurable]]":!!u,"[[Enumerable]]":!!p,"[[Value]]":("[[Value]]"in o?o:i)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in o?o:i)["[[Writable]]"]})):Te(B,N,Ae,e,t,o)}return!0}});var Ca=s((Sb,ka)=>{"use strict";var Oa=Be(),$a=ge(),ut=x(),Vf=R(),Df=nr(),Bf=xa(),Jf=D(),Wf=rt(),Gf=Ye(),Hf=k(),Xf=Ia();ka.exports=function(e,t,n){if(Hf(e)!=="Object")throw new ut("Assertion failed: O must be an Object");if(!Jf(t))throw new ut("Assertion failed: P must be a Property Key");if(!Vf(n))throw new ut("Assertion failed: Desc must be a Property Descriptor");if(!Oa){if(Df(n))throw new $a("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]]"],Gf(e[t],n["[[Value]]"]);throw new $a("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var a=Oa(e,t),u=a&&Wf(a),p=Bf(e);return Xf(e,t,p,n,u)}});var Na=s((xb,Fa)=>{"use strict";var _a=x(),zf=D(),Kf=Ca(),Qf=k();Fa.exports=function(e,t,n){if(Qf(e)!=="Object")throw new _a("Assertion failed: Type(O) is not Object");if(!zf(t))throw new _a("Assertion failed: IsPropertyKey(P) is not true");var o={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":n,"[[Writable]]":!0};return Kf(e,t,o)}});var Ra=s((Eb,ja)=>{"use strict";var lt=x(),Yf=Na(),Zf=D(),ed=k();ja.exports=function(e,t,n){if(ed(e)!=="Object")throw new lt("Assertion failed: Type(O) is not Object");if(!Zf(t))throw new lt("Assertion failed: IsPropertyKey(P) is not true");var o=Yf(e,t,n);if(!o)throw new lt("unable to create data property")}});var Ua=s((wb,La)=>{"use strict";var Ma=x(),rd=D(),td=k();La.exports=function(e,t){if(td(e)!=="Object")throw new Ma("Assertion failed: `O` must be an Object");if(!rd(t))throw new Ma("Assertion failed: `P` must be a Property Key");return t in e}});var Da=s((qb,Va)=>{"use strict";Va.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var pt=s((Tb,Ba)=>{"use strict";var nd=Re();Ba.exports=function(){return nd()&&!!Symbol.toStringTag}});var Wa=s((Ab,Ja)=>{"use strict";var od=Date.prototype.getDay,id=function(e){try{return od.call(e),!0}catch{return!1}},ad=Object.prototype.toString,sd="[object Date]",ud=pt()();Ja.exports=function(e){return typeof e!="object"||e===null?!1:ud?id(e):ad.call(e)===sd}});var za=s((Pb,ct)=>{"use strict";var ld=Object.prototype.toString,pd=qr()();pd?(Ga=Symbol.prototype.toString,Ha=/^Symbol\(.*\)$/,Xa=function(e){return typeof e.valueOf()!="symbol"?!1:Ha.test(Ga.call(e))},ct.exports=function(e){if(typeof e=="symbol")return!0;if(ld.call(e)!=="[object Symbol]")return!1;try{return Xa(e)}catch{return!1}}):ct.exports=function(e){return!1};var Ga,Ha,Xa});var Za=s((Ib,Ya)=>{"use strict";var cd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",ft=Da(),Qa=Zr(),fd=Wa(),Ka=za(),dd=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]],Qa(o)&&(i=o.call(e),ft(i)))return i;throw new TypeError("No default value")},md=function(e,t){var n=e[t];if(n!==null&&typeof n<"u"){if(!Qa(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}};Ya.exports=function(e){if(ft(e))return e;var t="default";arguments.length>1&&(arguments[1]===String?t="string":arguments[1]===Number&&(t="number"));var n;if(cd&&(Symbol.toPrimitive?n=md(e,Symbol.toPrimitive):Ka(e)&&(n=Symbol.prototype.valueOf)),typeof n<"u"){var o=n.call(e,t);if(ft(o))return o;throw new TypeError("unable to convert exotic object to primitive")}return t==="default"&&(fd(e)||Ka(e))&&(t="string"),dd(e,t==="default"?"number":t)}});var ts=s((Ob,rs)=>{"use strict";var es=Za();rs.exports=function(e){return arguments.length>1?es(e,arguments[1]):es(e)}});var ss=s(($b,as)=>{"use strict";var dt=_(),ns=pt()(),os,is,mt,yt;ns&&(os=dt("Object.prototype.hasOwnProperty"),is=dt("RegExp.prototype.exec"),mt={},or=function(){throw mt},yt={toString:or,valueOf:or},typeof Symbol.toPrimitive=="symbol"&&(yt[Symbol.toPrimitive]=or));var or,yd=dt("Object.prototype.toString"),gd=Object.getOwnPropertyDescriptor,vd="[object RegExp]";as.exports=ns?function(e){if(!e||typeof e!="object")return!1;var t=gd(e,"lastIndex"),n=t&&os(t,"value");if(!n)return!1;try{is(e,yt)}catch(o){return o===mt}}:function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:yd(e)===vd}});var ls=s((kb,us)=>{"use strict";var hd=_(),bd=ss(),Sd=hd("RegExp.prototype.exec"),xd=x();us.exports=function(e){if(!bd(e))throw new xd("`regex` must be a RegExp");return function(n){return Sd(e,n)!==null}}});var Pe=s((Cb,ps)=>{"use strict";var Ed=x();ps.exports=function(e){if(e==null)throw new Ed(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}});var fs=s((_b,cs)=>{"use strict";var wd=I(),qd=wd("%String%"),Td=x();cs.exports=function(e){if(typeof e=="symbol")throw new Td("Cannot convert a Symbol value to a string");return qd(e)}});var gt=s((Fb,ys)=>{"use strict";var Ad=Pe(),Pd=fs(),Id=_(),ds=Id("String.prototype.replace"),ms=/^\s$/.test("\u180E"),Od=ms?/^[\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]+/,$d=ms?/[\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]+$/;ys.exports=function(){var e=Pd(Ad(this));return ds(ds(e,Od,""),$d,"")}});var vt=s((Nb,vs)=>{"use strict";var kd=gt(),gs="\u200B",pe="\u180E";vs.exports=function(){return String.prototype.trim&&gs.trim()===gs&&pe.trim()===pe&&("_"+pe).trim()==="_"+pe&&(pe+"_").trim()===pe+"_"?String.prototype.trim:kd}});var bs=s((jb,hs)=>{"use strict";var Cd=j(),_d=vt();hs.exports=function(){var e=_d();return Cd(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}});var ws=s((Rb,Es)=>{"use strict";var Fd=ae(),Nd=j(),jd=Pe(),Rd=gt(),Ss=vt(),Md=bs(),Ld=Fd(Ss()),xs=function(e){return jd(e),Ld(e)};Nd(xs,{getPolyfill:Ss,implementation:Rd,shim:Md});Es.exports=xs});var Ps=s((Mb,As)=>{"use strict";var bt=I(),ht=bt("%Number%"),Ud=bt("%RegExp%"),Vd=x(),qs=bt("%parseInt%"),Dd=_(),ir=ls(),Ts=Dd("String.prototype.slice"),Bd=ir(/^0b[01]+$/i),Jd=ir(/^0o[0-7]+$/i),Wd=ir(/^[-+]0x[0-9a-f]+$/i),Gd=["\x85","\u200B","\uFFFE"].join(""),Hd=new Ud("["+Gd+"]","g"),Xd=ir(Hd),zd=ws();As.exports=function r(e){if(typeof e!="string")throw new Vd("Assertion failed: `argument` is not a String");if(Bd(e))return ht(qs(Ts(e,2),2));if(Jd(e))return ht(qs(Ts(e,2),8));if(Xd(e)||Wd(e))return NaN;var t=zd(e);return t!==e?r(t):ht(e)}});var ks=s((Lb,$s)=>{"use strict";var Kd=I(),Is=x(),Os=Kd("%Number%"),Qd=st(),Yd=ts(),Zd=Ps();$s.exports=function(e){var t=Qd(e)?e:Yd(e,Os);if(typeof t=="symbol")throw new Is("Cannot convert a Symbol value to a number");if(typeof t=="bigint")throw new Is("Conversion from 'BigInt' to 'number' is not allowed.");return typeof t=="string"?Zd(t):Os(t)}});var _s=s((Ub,Cs)=>{"use strict";var em=Math.floor;Cs.exports=function(e){return typeof e=="bigint"?e:em(e)}});var js=s((Vb,Ns)=>{"use strict";var Fs=_s(),rm=x();Ns.exports=function(e){if(typeof e!="number"&&typeof e!="bigint")throw new rm("argument must be a Number or a BigInt");var t=e<0?-Fs(-e):Fs(e);return t===0?0:t}});var St=s((Db,Rs)=>{"use strict";var tm=ks(),nm=js(),om=be(),im=Cr();Rs.exports=function(e){var t=tm(e);return om(t)||t===0?0:im(t)?nm(t):t}});var xt=s((Bb,Ls)=>{"use strict";var Ms=at(),am=St();Ls.exports=function(e){var t=am(e);return t<=0?0:t>Ms?Ms:t}});var Vs=s((Jb,Us)=>{"use strict";var sm=x(),um=we(),lm=xt(),pm=k();Us.exports=function(e){if(pm(e)!=="Object")throw new sm("Assertion failed: `obj` must be an Object");return lm(um(e,"length"))}});var Bs=s((Wb,Ds)=>{"use strict";var cm=I(),fm=cm("%String%"),dm=x();Ds.exports=function(e){if(typeof e=="symbol")throw new dm("Cannot convert a Symbol value to a string");return fm(e)}});var Hs=s((Gb,Gs)=>{"use strict";var Js=x(),mm=at(),ym=ma(),gm=Ra(),vm=we(),hm=Ua(),bm=Ke(),Sm=Vs(),Ws=Bs();Gs.exports=function r(e,t,n,o,i){var a;arguments.length>5&&(a=arguments[5]);for(var u=o,p=0;p<n;){var l=Ws(p),d=hm(t,l);if(d===!0){var f=vm(t,l);if(typeof a<"u"){if(arguments.length<=6)throw new Js("Assertion failed: thisArg is required when mapperFunction is provided");f=ym(a,arguments[6],[f,p,t])}var m=!1;if(i>0&&(m=bm(f)),m){var y=Sm(f);u=r(e,f,y,u,i-1)}else{if(u>=mm)throw new Js("index too large");gm(e,Ws(u),f),u+=1}}p+=1}return u}});var zs=s((Hb,Xs)=>{"use strict";Xs.exports=Object});var Qs=s((Xb,Ks)=>{"use strict";var xm=zs(),Em=Pe();Ks.exports=function(e){return Em(e),xm(e)}});var Zs=s((zb,Ys)=>{"use strict";Ys.exports=Qs()});var Et=s((Kb,eu)=>{"use strict";var wm=ca(),qm=Hs(),Tm=we(),Am=St(),Pm=xt(),Im=Zs();eu.exports=function(){var e=Im(this),t=Pm(Tm(e,"length")),n=1;arguments.length>0&&typeof arguments[0]<"u"&&(n=Am(arguments[0]));var o=wm(e,0);return qm(o,e,t,0,n),o}});var wt=s((Qb,ru)=>{"use strict";var Om=Et();ru.exports=function(){return Array.prototype.flat||Om}});var iu=s((Yb,ou)=>{"use strict";var $m=X(),nu=typeof Symbol=="function"&&typeof Symbol.unscopables=="symbol",km=nu&&Array.prototype[Symbol.unscopables],tu=TypeError;ou.exports=function(e){if(typeof e!="string"||!e)throw new tu("method must be a non-empty string");if(!$m(Array.prototype,e))throw new tu("method must be on Array.prototype");nu&&(km[e]=!0)}});var su=s((Zb,au)=>{"use strict";var Cm=j(),_m=iu(),Fm=wt();au.exports=function(){var e=Fm();return Cm(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),_m("flat"),e}});var cu=s((eS,pu)=>{"use strict";var Nm=j(),jm=ae(),Rm=Et(),uu=wt(),Mm=uu(),Lm=su(),lu=jm(Mm);Nm(lu,{getPolyfill:uu,implementation:Rm,shim:Lm});pu.exports=lu});var qt=s((rS,du)=>{"use strict";var Um=Pe(),fu=_(),Vm=fu("Object.prototype.propertyIsEnumerable"),Dm=fu("Array.prototype.push");du.exports=function(e){var t=Um(e),n=[];for(var o in t)Vm(t,o)&&Dm(n,t[o]);return n}});var Tt=s((tS,mu)=>{"use strict";var Bm=qt();mu.exports=function(){return typeof Object.values=="function"?Object.values:Bm}});var gu=s((nS,yu)=>{"use strict";var Jm=Tt(),Wm=j();yu.exports=function(){var e=Jm();return Wm(Object,{values:e},{values:function(){return Object.values!==e}}),e}});var Su=s((oS,bu)=>{"use strict";var Gm=j(),Hm=ae(),Xm=qt(),vu=Tt(),zm=gu(),hu=Hm(vu(),Object);Gm(hu,{getPolyfill:vu,implementation:Xm,shim:zm});bu.exports=hu});var wu=s(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.eventHandlersByType=void 0;var Km=cu(),Qm=xu(Km),Ym=Su(),Zm=xu(Ym);function xu(r){return r&&r.__esModule?r:{default:r}}var Eu={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"]};Ie.default=(0,Qm.default)((0,Zm.default)(Eu));Ie.eventHandlersByType=Eu});var Tu=s(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});var ey=function(){function r(e,t){var n=[],o=!0,i=!1,a=void 0;try{for(var u=e[Symbol.iterator](),p;!(o=(p=u.next()).done)&&(n.push(p.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")}}(),ce=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};Pt.default=iy;var ry=Fe(),ty=ny(ry);function ny(r){return r&&r.__esModule?r:{default:r}}function qu(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 oy={ignoreCase:!0};function iy(){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]:oy;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,ty.default)(u))});return a&&a.type==="JSXSpreadAttribute"?ay(a.argument.properties.find(i)):a}function ay(r){var e=r.key,t=r.value;return ce({type:"JSXAttribute",name:ce({type:"JSXIdentifier",name:e.name},At(e)),value:t.type==="Literal"?Oe(t):ce({type:"JSXExpressionContainer",expression:sy(t)},At(t))},At(r))}function Oe(r){var e=r.range||[r.start,r.end],t=ey(e,2),n=t[0],o=t[1];return ce({},r,{end:void 0,range:[n,o],start:void 0})}function sy(r){var e=r.expressions,t=r.quasis,n=qu(r,["expressions","quasis"]);return ce({},Oe(n),e?{expressions:e.map(Oe)}:{},t?{quasis:t.map(Oe)}:{})}function At(r){var e=r.loc,t=qu(r,["loc"]),n=Oe(t),o=n.range;return{loc:uy(e),range:o}}function uy(r){var e=r.start,t=r.end,n=r.source,o=r.filename;return ce({start:e,end:t},n!==void 0?{source:n}:{},o!==void 0?{filename:o}:{})}});var Ot=s(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.default=ly;function ly(r){var e=r.value,t=typeof e=="string"&&e.toLowerCase();return t==="true"?!0:t==="false"?!1:e}});var kt=s($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.default=py;function py(r){var e=ar().default,t=r.openingElement.name.name;return r.openingElement.selfClosing?"<"+t+" />":"<"+t+">"+[].concat(r.children).map(function(n){return e(n)}).join("")+"</"+t+">"}});var _t=s(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.default=cy;function cy(r){return r.raw}});var Nt=s(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.default=fy;function fy(r){var e=ar().default;return r.children.length===0?"<></>":"<>"+[].concat(r.children).map(function(t){return e(t)}).join("")+"</>"}});var Pu=s(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.default=dy;var Au={Array,Date,Infinity:1/0,Math,Number,Object,String,undefined:void 0};function dy(r){var e=r.name;return Object.hasOwnProperty.call(Au,e)?Au[e]:e}});var Mt=s(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.default=yy;function my(r,e){return(r.range?r.range[0]:r.start)-(e.range?e.range[0]:e.start)}function yy(r){var e=r.quasis,t=r.expressions,n=e.concat(t);return n.sort(my).map(function(o){var i=o.type,a=o.value;a=a===void 0?{}:a;var u=a.raw,p=o.name;return i==="TemplateElement"?u:i==="Identifier"?p==="undefined"?p:"{"+p+"}":i.indexOf("Expression")>-1?"{"+i+"}":""}).join("")}});var Iu=s(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.default=by;var gy=Mt(),vy=hy(gy);function hy(r){return r&&r.__esModule?r:{default:r}}function by(r){return(0,vy.default)(r.quasi)}});var Ou=s(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.default=Sy;function Sy(r){return function(){return r}}});var $u=s(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.default=xy;function xy(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 ku=s(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.default=Ey;function Ey(r){var e=P().default;return""+e(r.object)+(r.optional?"?.":".")+e(r.property)}});var Cu=s(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.default=wy;function wy(r){var e=P().default;return e(r.expression||r)}});var _u=s(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.default=qy;function qy(r){var e=P().default;return e(r.callee)+"?.("+r.arguments.map(function(t){return e(t)}).join(", ")+")"}});var Fu=s(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.default=Ty;function Ty(r){var e=P().default;return e(r.object)+"?."+e(r.property)}});var Ht=s(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.default=Ay;function Ay(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 Nu=s(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.default=Py;function Py(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 Kt=s(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.default=Iy;function Iy(){return"this"}});var ju=s(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.default=Oy;function Oy(r){var e=P().default,t=r.test,n=r.alternate,o=r.consequent;return e(t)?e(o):e(n)}});var Ru=s(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.default=$y;function $y(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 Zt=s((TS,Du)=>{"use strict";var ky=Er(),Uu=Re()(),Vu=_(),Mu=Object,Cy=Vu("Array.prototype.push"),Lu=Vu("Object.prototype.propertyIsEnumerable"),_y=Uu?Object.getOwnPropertySymbols:null;Du.exports=function(e,t){if(e==null)throw new TypeError("target must be an object");var n=Mu(e);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var i=Mu(arguments[o]),a=ky(i),u=Uu&&(Object.getOwnPropertySymbols||_y);if(u)for(var p=u(i),l=0;l<p.length;++l){var d=p[l];Lu(i,d)&&Cy(a,d)}for(var f=0;f<a.length;++f){var m=a[f];if(Lu(i,m)){var y=i[m];n[m]=y}}}return n}});var rn=s((AS,Bu)=>{"use strict";var en=Zt(),Fy=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},Ny=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};Bu.exports=function(){return!Object.assign||Fy()||Ny()?en:Object.assign}});var Wu=s((PS,Ju)=>{"use strict";var jy=j(),Ry=rn();Ju.exports=function(){var e=Ry();return jy(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}});var zu=s((IS,Xu)=>{"use strict";var My=j(),Ly=ae(),Uy=Zt(),Gu=rn(),Vy=Wu(),Dy=Ly.apply(Gu()),Hu=function(e,t){return Dy(Object,arguments)};My(Hu,{getPolyfill:Gu,implementation:Uy,shim:Vy});Xu.exports=Hu});var Yu=s(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.default=Qu;var By=zu(),Ku=Jy(By);function Jy(r){return r&&r.__esModule?r:{default:r}}function Wy(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Qu(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,Ku.default)({},t,Qu(n.argument))}else return(0,Ku.default)({},t,Wy({},e(n.key),e(n.value)));return t},{})}});var Zu=s(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.default=Gy;function Gy(){return new Object}});var el=s(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.default=Hy;function Hy(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 rl=s(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.default=Xy;function Xy(r){var e=P().default;return r.elements.map(function(t){if(t!==null)return e(t)})}});var tl=s(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.default=zy;function zy(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 nl=s(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.default=Ky;function Ky(){}});var ol=s(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.default=Qy;function Qy(r){var e=P().default;return e(r.expression)}});var il=s(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.default=Yy;function Yy(r){var e=P().default;return r.expressions.map(function(t){return e(t)})}});var sl=s(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.default=J;var Zy=Kt().default,eg=Ht().default;function al(r,e,t){return t.computed?t.optional?r+"?.["+e+"]":r+"["+e+"]":t.optional?r+"?."+e:r+"."+e}function J(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 J(r.expression);if(r.type==="CallExpression")return eg(r);if(r.type==="ThisExpression")return Zy();if(r.type==="TSNonNullExpression"&&(!r.extra||r.extra.parenthesized===!1)){var n=r.expression;return J(n)+"!"}if(r.type==="TSNonNullExpression"&&r.extra&&r.extra.parenthesized===!0){var o=r.expression;return"("+J(o)+"!)"}if(r.type==="MemberExpression"){if(!r.extra||r.extra.parenthesized===!1)return al(J(r.object),J(r.property),r);if(r.extra&&r.extra.parenthesized===!0){var i=al(J(r.object),J(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 ul=s(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.default=rg;function rg(r){var e=P().default;return e(r.left)+" "+r.operator+" "+e(r.right)}});var P=s(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});var tg=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};sr.default=ov;sr.extractLiteral=iv;var ng=Ot(),og=E(ng),ig=kt(),ag=E(ig),sg=Nt(),ug=E(sg),lg=_t(),pg=E(lg),cg=Pu(),fg=E(cg),dg=Iu(),mg=E(dg),yg=Mt(),gg=E(yg),vg=Ou(),ll=E(vg),hg=$u(),bg=E(hg),Sg=ku(),xg=E(Sg),Eg=Cu(),wg=E(Eg),qg=_u(),Tg=E(qg),Ag=Fu(),Pg=E(Ag),Ig=Ht(),Og=E(Ig),$g=Nu(),kg=E($g),Cg=Kt(),_g=E(Cg),Fg=ju(),Ng=E(Fg),jg=Ru(),Rg=E(jg),Mg=Yu(),Lg=E(Mg),Ug=Zu(),Vg=E(Ug),Dg=el(),Bg=E(Dg),Jg=rl(),Wg=E(Jg),Gg=tl(),Hg=E(Gg),Xg=nl(),zg=E(Xg),Kg=ol(),Qg=E(Kg),Yg=il(),Zg=E(Yg),ev=sl(),rv=E(ev),tv=ul(),nv=E(tv);function E(r){return r&&r.__esModule?r:{default:r}}var W={Identifier:fg.default,Literal:og.default,JSXElement:ag.default,JSXFragment:ug.default,JSXText:pg.default,TaggedTemplateExpression:mg.default,TemplateLiteral:gg.default,ArrowFunctionExpression:ll.default,FunctionExpression:ll.default,LogicalExpression:bg.default,MemberExpression:xg.default,ChainExpression:wg.default,OptionalCallExpression:Tg.default,OptionalMemberExpression:Pg.default,CallExpression:Og.default,UnaryExpression:kg.default,ThisExpression:_g.default,ConditionalExpression:Ng.default,BinaryExpression:Rg.default,ObjectExpression:Lg.default,NewExpression:Vg.default,UpdateExpression:Bg.default,ArrayExpression:Wg.default,BindExpression:Hg.default,SpreadElement:zg.default,TypeCastExpression:Qg.default,SequenceExpression:Zg.default,TSNonNullExpression:rv.default,AssignmentExpression:nv.default},w=function(){return null},cl=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 ov(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 W[n]===void 0?(console.error(cl(n)),null):W[n](e)}var pl=tg({},W,{Literal:function(e){var t=W.Literal.call(void 0,e),n=t===null;return n?"null":t},Identifier:function(e){var t=W.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=W.UnaryExpression.call(void 0,e);return t===void 0?null:t},UpdateExpression:function(e){var t=W.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=W.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 iv(r){var e=r.expression||r,t=e.type;return pl[t]===void 0?(console.error(cl(t)),null):pl[t](e)}});var ar=s(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});var av=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};ur.default=vv;ur.getLiteralValue=hv;var sv=Ot(),uv=$e(sv),lv=kt(),pv=$e(lv),cv=_t(),fv=$e(cv),dv=Nt(),mv=$e(dv),fl=P(),yv=$e(fl);function $e(r){return r&&r.__esModule?r:{default:r}}var dn={Literal:uv.default,JSXElement:pv.default,JSXExpressionContainer:yv.default,JSXText:fv.default,JSXFragment:mv.default},gv=av({},dn,{JSXElement:function(){return null},JSXExpressionContainer:fl.extractLiteral});function vv(r){return dn[r.type]||console.log(r.type),dn[r.type](r)}function hv(r){return gv[r.type](r)}});var yl=s(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.default=xv;lr.getLiteralPropValue=Ev;var dl=ar(),bv=Sv(dl);function Sv(r){return r&&r.__esModule?r:{default:r}}var ml=function(e,t){if(e&&e.type==="JSXAttribute")return e.value===null?!0:t(e.value)};function xv(r){return ml(r,bv.default)}function Ev(r){return ml(r,dl.getLiteralValue)}});var pr=s((DS,hl)=>{"use strict";var mn=Fn(),wv=fe(mn),qv=jn(),Tv=fe(qv),gl=wu(),Av=fe(gl),Pv=Tu(),Iv=fe(Pv),vl=yl(),Ov=fe(vl),$v=Fe(),kv=fe($v);function fe(r){return r&&r.__esModule?r:{default:r}}hl.exports={hasProp:wv.default,hasAnyProp:mn.hasAnyProp,hasEveryProp:mn.hasEveryProp,elementType:Tv.default,eventHandlers:Av.default,eventHandlersByType:gl.eventHandlersByType,getProp:Iv.default,getPropValue:Ov.default,getLiteralPropValue:vl.getLiteralPropValue,propName:kv.default}});var $l=s((xx,Ol)=>{"use strict";Ol.exports=r=>{let e=r.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((t,n)=>Math.min(t,n.length),1/0):0}});var th={};Xl(th,{configs:()=>Zv,qwikEslint9Plugin:()=>qn,rules:()=>Ml});module.exports=zl(th);var On=require("@typescript-eslint/utils"),Kl=On.ESLintUtils.RuleCreator(()=>"https://qwik.dev/docs/advanced/dollar/"),$n=Kl({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 kn=require("@typescript-eslint/utils"),Ql=kn.ESLintUtils.RuleCreator(r=>`https://qwik.dev/docs/advanced/eslint/#${r}`),Cn=Ql({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
|
+
|
|
6
|
+
import {{importName}} from '{{importSrc}}';
|
|
7
|
+
<{{importName}} />
|
|
8
|
+
|
|
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 p=`~/media${a.value}?jsx`,l=Yl(a.value);r.report({node:n,messageId:"noLocalSrc",data:{importSrc:p,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"})}}}}}),sh=`
|
|
11
|
+
import Image from '~/media/image.png';
|
|
12
|
+
<Image />`.trim(),uh=`
|
|
13
|
+
<img src="/image.png">`.trim(),lh=`
|
|
14
|
+
<img width="200" height="600" src="/static/images/portrait-01.webp">`.trim(),ph=`
|
|
15
|
+
<img src="/static/images/portrait-01.webp">`.trim();function Yl(r){let e=r.lastIndexOf("."),t=r.lastIndexOf("/");return r=r.substring(t+1,e),`Img${Zl(r)}`}function Zl(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 gn=ee(pr());function yn(r){return r.type==="FunctionExpression"||r.type==="ArrowFunctionExpression"}var cr={checkFragmentShorthand:!1,checkKeyMustBeforeSpread:!1,warnOnDuplicates:!1},Cv={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"},bl={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:Cv,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((r.sourceCode??r.getSourceCode()).getAllComments().some(c=>c.value.includes("@jsxImportSource")))return{};let n=Object.assign({},cr,r.options[0]),o=n.checkFragmentShorthand,i=n.checkKeyMustBeforeSpread,a=n.warnOnDuplicates;function u(c){c.type==="JSXElement"&&!gn.default.hasProp(c.openingElement.attributes,"key")?r.report({node:c,messageId:"missingIterKey"}):o&&c.type==="JSXFragment"&&r.report({node:c,messageId:"missingIterKeyUsePrag"})}function p(c,g=[]){return c.type==="IfStatement"?(c.consequent&&p(c.consequent,g),c.alternate&&p(c.alternate,g)):Array.isArray(c.body)&&c.body.forEach(h=>{h.type==="IfStatement"&&p(h,g),h.type==="ReturnStatement"&&g.push(h)}),g}function l(c){let g=!1;return c.some(h=>h.type==="JSXSpreadAttribute"?(g=!0,!1):h.type!=="JSXAttribute"?!1:g&&gn.default.propName(h)==="key")}function d(c){yn(c)&&c.body.type==="BlockStatement"&&p(c.body).filter(g=>g&&g.argument).forEach(g=>{u(g.argument)})}function f(c){let g=c&&c.type==="ArrowFunctionExpression",h=b=>b&&(b.type==="JSXElement"||b.type==="JSXFragment");g&&h(c.body)&&u(c.body),c.body.type==="ConditionalExpression"?(h(c.body.consequent)&&u(c.body.consequent),h(c.body.alternate)&&u(c.body.alternate)):c.body.type==="LogicalExpression"&&h(c.body.right)&&u(c.body.right)}let m=`:matches(
|
|
5
16
|
CallExpression
|
|
6
17
|
[callee.object.object.name=Fragment]
|
|
7
18
|
[callee.object.property.name=Children]
|
|
@@ -9,7 +20,7 @@
|
|
|
9
20
|
CallExpression
|
|
10
21
|
[callee.object.name=Children]
|
|
11
22
|
[callee.property.name=toArray]
|
|
12
|
-
)`.replace(/\s/g,""),
|
|
23
|
+
)`.replace(/\s/g,""),y=!1,v=new WeakSet;return{[m](){y=!0},[`${m}:exit`](){y=!1},"ArrayExpression, JSXElement > JSXElement"(c){if(y)return;let g=(c.type==="ArrayExpression"?c.elements:c.parent.children).filter(b=>b&&b.type==="JSXElement");if(g.length===0)return;let h={};g.forEach(b=>{b.openingElement.attributes.filter(H=>H.name&&H.name.name==="key").length===0&&c.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(c){!o||y||c.parent.type==="ArrayExpression"&&r.report({node:c,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"]'(c){if(y)return;let g=c.arguments.length>0&&c.arguments[0];!g||!yn(g)||(f(g),d(g))},'CallExpression[callee.type="MemberExpression"][callee.property.name="from"]'(c){if(y)return;let g=c.arguments.length>1&&c.arguments[1];yn(g)&&(f(g),d(g))}}}},BS=`
|
|
13
24
|
import { component$ } from '@qwik.dev/core';
|
|
14
25
|
|
|
15
26
|
export const Person = component$(() => {
|
|
@@ -26,7 +37,7 @@ export const Person = component$(() => {
|
|
|
26
37
|
)}
|
|
27
38
|
</ul>
|
|
28
39
|
);
|
|
29
|
-
});`.trim()
|
|
40
|
+
});`.trim(),JS=`
|
|
30
41
|
import { component$ } from '@qwik.dev/core';
|
|
31
42
|
|
|
32
43
|
export const Person = component$(() => {
|
|
@@ -43,7 +54,7 @@ export const Person = component$(() => {
|
|
|
43
54
|
)}
|
|
44
55
|
</ul>
|
|
45
56
|
);
|
|
46
|
-
});`.trim(),
|
|
57
|
+
});`.trim(),WS=`
|
|
47
58
|
import { component$ } from '@qwik.dev/core';
|
|
48
59
|
import Card from './Card';
|
|
49
60
|
import Summary from './Summary';
|
|
@@ -63,7 +74,7 @@ export const Person = component$(() => {
|
|
|
63
74
|
</Fragment>
|
|
64
75
|
)}
|
|
65
76
|
);
|
|
66
|
-
});`.trim(),
|
|
77
|
+
});`.trim(),GS=`
|
|
67
78
|
import { component$ } from '@qwik.dev/core';
|
|
68
79
|
import Card from './Card';
|
|
69
80
|
import Summary from './Summary';
|
|
@@ -83,7 +94,7 @@ export const Person = component$(() => {
|
|
|
83
94
|
</>
|
|
84
95
|
)}
|
|
85
96
|
);
|
|
86
|
-
});`.trim(),
|
|
97
|
+
});`.trim(),HS=`
|
|
87
98
|
import { component$ } from '@qwik.dev/core';
|
|
88
99
|
|
|
89
100
|
export const ColorList = component$(() => {
|
|
@@ -96,7 +107,7 @@ export const ColorList = component$(() => {
|
|
|
96
107
|
)}
|
|
97
108
|
</ul>
|
|
98
109
|
);
|
|
99
|
-
});`.trim(),
|
|
110
|
+
});`.trim(),XS=`
|
|
100
111
|
import { component$ } from '@qwik.dev/core';
|
|
101
112
|
|
|
102
113
|
export const ColorList = component$(() => {
|
|
@@ -109,7 +120,7 @@ export const ColorList = component$(() => {
|
|
|
109
120
|
)}
|
|
110
121
|
</ul>
|
|
111
122
|
);
|
|
112
|
-
});`.trim(),
|
|
123
|
+
});`.trim(),zS=`
|
|
113
124
|
import { component$, Fragment } from '@qwik.dev/core';
|
|
114
125
|
|
|
115
126
|
export const ColorList = component$(() => {
|
|
@@ -123,7 +134,7 @@ export const ColorList = component$(() => {
|
|
|
123
134
|
</Fragment>
|
|
124
135
|
)}
|
|
125
136
|
);
|
|
126
|
-
});`.trim(),
|
|
137
|
+
});`.trim(),KS=`
|
|
127
138
|
import { component$ } from '@qwik.dev/core';
|
|
128
139
|
|
|
129
140
|
export const ColorList = component$(() => {
|
|
@@ -137,7 +148,7 @@ export const ColorList = component$(() => {
|
|
|
137
148
|
</>
|
|
138
149
|
)}
|
|
139
150
|
);
|
|
140
|
-
});`.trim();var
|
|
151
|
+
});`.trim();var QS=`
|
|
141
152
|
import { component$ } from '@qwik.dev/core';
|
|
142
153
|
|
|
143
154
|
export const ColorList = component$(() => {
|
|
@@ -150,9 +161,9 @@ export const ColorList = component$(() => {
|
|
|
150
161
|
)}
|
|
151
162
|
</ul>
|
|
152
163
|
);
|
|
153
|
-
});`.trim();var
|
|
154
|
-
<button onClick$={() => alert('open the door please')>ring</button>`.trim(),
|
|
155
|
-
<button onClick$="javascript:alert('open the door please')">ring</button>`.trim();var
|
|
164
|
+
});`.trim();var Sl=require("@typescript-eslint/utils"),{getStaticValue:_v}=Sl.ASTUtils,Fv=/^[\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,xl={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=_v(t.value.type==="JSXExpressionContainer"?t.value.expression:t.value,e.getScope?e.getScope(t):r.getScope());n&&typeof n.value=="string"&&Fv.test(n.value)&&r.report({node:t.value,messageId:"noJSURL"})}}}}},ZS=`
|
|
165
|
+
<button onClick$={() => alert('open the door please')>ring</button>`.trim(),ex=`
|
|
166
|
+
<button onClick$="javascript:alert('open the door please')">ring</button>`.trim();var El={loader$:!0,routeLoader$:!0,routeAction$:!0,routeHandler$:!0},Nv={...El,action$:!0,globalAction$:!0},wl={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
|
|
156
167
|
(docs: https://qwik.dev/docs/route-loader/).
|
|
157
168
|
|
|
158
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.
|
|
@@ -160,28 +171,28 @@ This {{fnName}}() is declared outside of the route boundaries. This may be usefu
|
|
|
160
171
|
|
|
161
172
|
If you understand this, you can disable this warning with:
|
|
162
173
|
// eslint-disable-next-line qwik/loader-location
|
|
163
|
-
`,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 l
|
|
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 p,l;let e=((l=(p=r.options)==null?void 0:p[0])==null?void 0:l.routesDir)??"src/routes",t=jv(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(!Nv[f])return;if(!u&&El[f]){r.report({node:d.callee,messageId:"invalidLoaderLocation",data:{routesDir:e,fnName:f,path:t}});return}let m=d.parent;if(m.type!=="VariableDeclarator"){r.report({node:d.callee,messageId:"missingExport",data:{fnName:f,id:"useStuff"}});return}if(m.id.type!=="Identifier"){r.report({node:d.callee,messageId:"missingExport",data:{fnName:f,id:"useStuff"}});return}if(!/^use/.test(m.id.name)){let y="use"+m.id.name[0].toUpperCase()+m.id.name.slice(1);r.report({node:m.id,messageId:"wrongName",data:{fnName:f,id:m.id.name,fixed:y}});return}if(!Rv(m)){r.report({node:m.id,messageId:"missingExport",data:{fnName:f,id:m.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:m.id.name,arg:d.arguments[0].name}});return}}}}};function jv(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 tx=`
|
|
164
175
|
import { routeLoader$ } from '@qwik.dev/router';
|
|
165
176
|
|
|
166
177
|
export const useProductDetails = routeLoader$(async (requestEvent) => {
|
|
167
178
|
const res = await fetch(\`https://.../products/\${requestEvent.params.productId}\`);
|
|
168
179
|
const product = await res.json();
|
|
169
180
|
return product as Product;
|
|
170
|
-
});`.trim();var
|
|
181
|
+
});`.trim();var nx=`
|
|
171
182
|
import { routeLoader$ } from '@qwik.dev/router';
|
|
172
183
|
|
|
173
184
|
const useProductDetails = routeLoader$(async (requestEvent) => {
|
|
174
185
|
const res = await fetch(\`https://.../products/\${requestEvent.params.productId}\`);
|
|
175
186
|
const product = await res.json();
|
|
176
187
|
return product as Product;
|
|
177
|
-
});`.trim();var
|
|
188
|
+
});`.trim();var ox=`
|
|
178
189
|
import { routeLoader$ } from '@qwik.dev/router';
|
|
179
190
|
|
|
180
191
|
export const getProductDetails = routeLoader$(async (requestEvent) => {
|
|
181
192
|
const res = await fetch(\`https://.../products/\${requestEvent.params.productId}\`);
|
|
182
193
|
const product = await res.json();
|
|
183
194
|
return product as Product;
|
|
184
|
-
});`.trim();var
|
|
195
|
+
});`.trim();var ix=`
|
|
185
196
|
import { routeLoader$ } from '@qwik.dev/router';
|
|
186
197
|
|
|
187
198
|
async function fetcher() {
|
|
@@ -191,9 +202,9 @@ async function fetcher() {
|
|
|
191
202
|
}
|
|
192
203
|
|
|
193
204
|
export const useProductDetails = routeLoader$(fetcher);
|
|
194
|
-
`.trim();function
|
|
195
|
-
<MyReactComponent class="foo" for="#password" />;`.trim(),
|
|
196
|
-
<MyReactComponent className="foo" htmlFor="#password" />;`.trim();var
|
|
205
|
+
`.trim();function Rv(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=Mv(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 p=a[u];if(p.type=="ExportSpecifier"&&p.exported.type=="Identifier"&&p.exported.name===t)return!0}}}}}return!1}function Mv(r){let e=r;for(;e.type!=="Program";)e=e.parent;return e.body}var vn=ee(pr()),Lv=[{from:"className",to:"class"},{from:"htmlFor",to:"for"}];var ql={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 Lv){let i=vn.default.getProp(t.attributes,n);if(i){let a=vn.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})}}}}}},sx=`
|
|
206
|
+
<MyReactComponent class="foo" for="#password" />;`.trim(),ux=`
|
|
207
|
+
<MyReactComponent className="foo" htmlFor="#password" />;`.trim();var Tl={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 hn=ee(pr()),Al={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(hn.default.propName(o))===-1||hn.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:p=>{let l=o.range,d=u.arguments[0].range;return[p.replaceTextRange([l[0],d[0]],"classlist={"),p.replaceTextRange([d[1],l[1]],"}")]}})}}}}},cx=`
|
|
197
208
|
import { component$ } from '@qwik.dev/core';
|
|
198
209
|
import styles from './MyComponent.module.css';
|
|
199
210
|
|
|
@@ -211,7 +222,7 @@ export default component$((props) => {
|
|
|
211
222
|
'text-green-500': props.isHighAttention,
|
|
212
223
|
'p-4': true
|
|
213
224
|
}}>Hello world</div>;
|
|
214
|
-
});`.trim(),
|
|
225
|
+
});`.trim(),fx=`
|
|
215
226
|
import { component$ } from '@qwik.dev/core';
|
|
216
227
|
import classnames from 'classnames';
|
|
217
228
|
import styles from './MyComponent.module.css';
|
|
@@ -226,10 +237,10 @@ export default component$((props) => {
|
|
|
226
237
|
},
|
|
227
238
|
{ active: true}
|
|
228
239
|
)}>Hello world</div>;
|
|
229
|
-
});`.trim();var
|
|
240
|
+
});`.trim();var Pl={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:
|
|
230
241
|
|
|
231
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$(...);
|
|
232
|
-
await serverFn(...);`}})}}}}},
|
|
243
|
+
await serverFn(...);`}})}}}}},mx=`
|
|
233
244
|
import { component$ } from '@qwik.dev/core';
|
|
234
245
|
import { server$ } from '@qwik.dev/router';
|
|
235
246
|
|
|
@@ -248,7 +259,7 @@ export default component$(() => (
|
|
|
248
259
|
greet
|
|
249
260
|
</button>
|
|
250
261
|
);
|
|
251
|
-
);`.trim(),
|
|
262
|
+
);`.trim(),yx=`
|
|
252
263
|
import { component$ } from '@qwik.dev/core';
|
|
253
264
|
import { server$ } from '@qwik.dev/router';
|
|
254
265
|
|
|
@@ -267,35 +278,35 @@ export default component$(() => (
|
|
|
267
278
|
greet
|
|
268
279
|
</button>
|
|
269
280
|
);
|
|
270
|
-
);`.trim();var
|
|
281
|
+
);`.trim();var Il={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}}}}},vx=`
|
|
271
282
|
export const Counter = component$(() => {
|
|
272
283
|
const count = useSignal(0);
|
|
273
284
|
});
|
|
274
|
-
`.trim(),
|
|
285
|
+
`.trim(),hx=`
|
|
275
286
|
export const useCounter = () => {
|
|
276
287
|
const count = useSignal(0);
|
|
277
288
|
return count;
|
|
278
289
|
};
|
|
279
|
-
`.trim(),
|
|
290
|
+
`.trim(),bx=`
|
|
280
291
|
export const Counter = (() => {
|
|
281
292
|
const count = useSignal(0);
|
|
282
293
|
});
|
|
283
|
-
`.trim();var fr=
|
|
294
|
+
`.trim();var fr=ee(require("@typescript-eslint/utils/eslint-utils")),G=ee(require("typescript"));var kl=ee($l(),1);function bn(r){let e=(0,kl.default)(r);if(e===0)return r;let t=new RegExp(`^[ \\t]{${e}}`,"gm");return r.replace(t,"")}function Sn(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 xn(r,e=0,t={}){return Sn(bn(r),e,t)}var Uv=fr.RuleCreator(r=>`https://qwik.dev/docs/advanced/eslint/#${r}`),Cl=Uv({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"}},default:{allowAny:!0}}],messages:{referencesOutside:`When referencing "{{varName}}" inside a different scope ({{dollarName}}), Qwik needs to serialize the value, however {{reason}}.
|
|
284
295
|
Check out https://qwik.dev/docs/advanced/dollar/ for more details.`,invalidJsxDollar:`Using "{{varName}}" as an event handler, however functions are not serializable.
|
|
285
296
|
Did you mean to wrap it in \`$()\`?
|
|
286
297
|
|
|
287
298
|
{{solution}}
|
|
288
299
|
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.
|
|
289
|
-
Check out https://qwik.dev/docs/advanced/dollar/ for more details.`}},create(r){var
|
|
290
|
-
${
|
|
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=fr.getParserServices(r),i=o.esTreeNodeToTSNodeMap,a=o.program.getTypeChecker(),u=new Map;function p(d){d.references.forEach(f=>{var v,c;let m=f.resolved,y=(v=f.resolved)==null?void 0:v.scope;if(m&&y){let g=(c=m.defs.at(0))==null?void 0:c.type;if(g==="Type"||g==="ImportBinding"||Hv(m,r))return;let h=f.from,b;for(;h&&(b=u.get(h),!b);)h=h.upper;if(h&&b){let T=y.type;if(T==="global"||T==="module")return;let $=f.identifier,H=i.get($),M=y;for(;M&&!u.has(M);)M=M.upper;if(M!==h){$.parent&&$.parent.type==="AssignmentExpression"&&$.parent.left===$&&r.report({messageId:"mutableIdentifier",node:f.identifier,data:{varName:f.identifier.name,dollarName:b}});let Y=Vv(r,a,H,f.identifier,t);Y&&r.report({messageId:"referencesOutside",node:f.identifier,data:{varName:f.identifier.name,dollarName:b,reason:Dv(Y)}})}}}}),d.childScopes.forEach(p)}return{CallExpression(d){if(d.callee.type==="Identifier"&&d.callee.name.endsWith("$")){let f=d.arguments.at(0);if(f&&f.type==="ArrowFunctionExpression"){let m=n.acquire(f);m&&u.set(m,d.callee.name)}}},JSXAttribute(d){var y;let f=d.name,m=f.type==="JSXIdentifier"?f.name:f.name.name;if(m.endsWith("$")){let v=d.value;if(v&&v.type==="JSXExpressionContainer"){let c=n.acquire(v.expression);if(c)u.set(c,m);else if(v.expression.type==="Identifier"){let g=i.get(v.expression),h=a.getTypeAtLocation(g).getNonNullableType();if(!_l(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(((y=h.symbol)==null?void 0:y.name)==="PropFnInterface")return;r.report({messageId:"invalidJsxDollar",node:v.expression,data:{varName:v.expression.name,solution:`const ${v.expression.name} = $(
|
|
301
|
+
${Fl(h.symbol,r.sourceCode.text)}
|
|
291
302
|
);
|
|
292
|
-
`}})}}}}},Program(
|
|
293
|
-
${
|
|
294
|
-
);`;
|
|
303
|
+
`}})}}}}},Program(d){let f=i.get(d),m=a.getSymbolAtLocation(f);m&&(exports=a.getExportsOfModule(m))},"Program:exit"(){p(n.globalScope)}}}});function Vv(r,e,t,n,o){let i=e.getTypeAtLocation(t);return Bv(r,e,i,t,n,o,new Set)}function Dv(r){let e="";return r.location?e+=`"${r.location}" `:e+="it ",e+=`${r.reason}`,e}function Bv(r,e,t,n,o,i,a){let u=ke(r,e,t,n,i,0,a);if(u){let p=u.location;return p&&(u.location=`${o.name}.${p}`),u}return u}function ke(r,e,t,n,o,i,a){var y;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&G.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 p=t.flags&G.default.TypeFlags.Any;if(!o.allowAny&&p)return{type:t,typeStr:e.typeToString(t),reason:"is any, which is not serializable"};if(t.flags&G.default.TypeFlags.ESSymbolLike)return{type:t,typeStr:e.typeToString(t),reason:"is Symbol, which is not serializable"};if(t.flags&G.default.TypeFlags.Enum)return{type:t,typeStr:e.typeToString(t),reason:"is an enum, use an string or a number instead"};if(_l(t)||((y=t.symbol)==null?void 0:y.name)==="JSXNode")return;if(t.getCallSignatures().length>0){let v=t.symbol.name;if(v==="PropFnInterface"||v==="RefFnInterface"||v==="bivarianceHack"||v==="FunctionComponent")return;let c="is a function, which is not serializable";if(i===0&&G.default.isIdentifier(n)){let g=`const ${n.text} = $(
|
|
304
|
+
${Fl(t.symbol,r.sourceCode.text)}
|
|
305
|
+
);`;c+=`.
|
|
295
306
|
Did you mean to wrap it in \`$()\`?
|
|
296
307
|
|
|
297
|
-
${
|
|
298
|
-
`}return{type:t,typeStr:e.typeToString(t),reason:
|
|
308
|
+
${g}
|
|
309
|
+
`}return{type:t,typeStr:e.typeToString(t),reason:c}}if(t.isUnion()){for(let v of t.types){let c=ke(r,e,v,n,o,i+1,a);if(c)return c}return}if((t.flags&G.default.TypeFlags.Object)!==0){let v=Wv(t,e);if(v)return ke(r,e,v,n,o,i+1,a);let c=Gv(t,e);if(c){for(let b of c){let T=ke(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 zv)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=Jv(r,e,b,n,o,i+1,a);if(T){let $=T.location;return T.location=`${b.name}${$?`.${$}`:""}`,T}}}}function Jv(r,e,t,n,o,i,a){let u=e.getTypeOfSymbolAtLocation(t,n);return ke(r,e,u,n,o,i,a)}function Wv(r,e){return e.getElementTypeOfArrayType(r)}function Gv(r,e){return e.isTupleType(r)?e.getTypeArguments(r):void 0}function _l(r){return!!(r.flags&G.default.TypeFlags.Any)||!!r.getNonNullableType().getProperty("__brand__QRL__")}function Fl(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 xn(n,2)}return""}function Hv(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)&&Xv(a.resolved)}return!1}function Xv(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 zv={Promise:!0,URL:!0,RegExp:!0,Date:!0,FormData:!0,URLSearchParams:!0,Error:!0,Set:!0,Map:!0,Uint8Array:!0},Ix=`
|
|
299
310
|
import { component$, useTask$, $ } from '@qwik.dev/core';
|
|
300
311
|
|
|
301
312
|
export const HelloWorld = component$(() => {
|
|
@@ -308,7 +319,7 @@ export const HelloWorld = component$(() => {
|
|
|
308
319
|
});
|
|
309
320
|
|
|
310
321
|
return <h1>Hello</h1>;
|
|
311
|
-
});`.trim(),
|
|
322
|
+
});`.trim(),Ox=`
|
|
312
323
|
import { component$, useTask$ } from '@qwik.dev/core';
|
|
313
324
|
|
|
314
325
|
export const HelloWorld = component$(() => {
|
|
@@ -321,7 +332,7 @@ export const HelloWorld = component$(() => {
|
|
|
321
332
|
});
|
|
322
333
|
|
|
323
334
|
return <h1>Hello</h1>;
|
|
324
|
-
});`.trim()
|
|
335
|
+
});`.trim(),$x=`
|
|
325
336
|
import { component$, $ } from '@qwik.dev/core';
|
|
326
337
|
|
|
327
338
|
export const HelloWorld = component$(() => {
|
|
@@ -329,7 +340,7 @@ export const HelloWorld = component$(() => {
|
|
|
329
340
|
return (
|
|
330
341
|
<button onClick$={click}>log it</button>
|
|
331
342
|
);
|
|
332
|
-
});`.trim(),
|
|
343
|
+
});`.trim(),kx=`
|
|
333
344
|
import { component$ } from '@qwik.dev/core';
|
|
334
345
|
|
|
335
346
|
export const HelloWorld = component$(() => {
|
|
@@ -337,7 +348,7 @@ export const HelloWorld = component$(() => {
|
|
|
337
348
|
return (
|
|
338
349
|
<button onClick$={click}>log it</button>
|
|
339
350
|
);
|
|
340
|
-
});`.trim(),
|
|
351
|
+
});`.trim(),Cx=`
|
|
341
352
|
import { component$ } from '@qwik.dev/core';
|
|
342
353
|
|
|
343
354
|
export const HelloWorld = component$(() => {
|
|
@@ -350,7 +361,7 @@ export const HelloWorld = component$(() => {
|
|
|
350
361
|
{person.name}
|
|
351
362
|
</button>
|
|
352
363
|
);
|
|
353
|
-
});`.trim()
|
|
364
|
+
});`.trim(),_x=`
|
|
354
365
|
import { component$ } from '@qwik.dev/core';
|
|
355
366
|
|
|
356
367
|
export const HelloWorld = component$(() => {
|
|
@@ -363,15 +374,37 @@ export const HelloWorld = component$(() => {
|
|
|
363
374
|
{personName}
|
|
364
375
|
</button>
|
|
365
376
|
);
|
|
366
|
-
});`.trim();var
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
377
|
+
});`.trim();var Nl=require("@typescript-eslint/utils"),Kv=Nl.ESLintUtils.RuleCreator(r=>`https://qwik.dev/docs/advanced/eslint/#${r}`),jl=Kv({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 p(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(p):f&&typeof f=="object"&&(f.parent=l,p(f))}}}return n.type==="BlockStatement"?n.body.forEach(p):p(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(p=>p.type==="Property"&&p.key.type==="Identifier"&&p.key.name==="update"),u=i.properties.find(p=>p.type==="Property"&&p.key.type==="Identifier"&&p.key.name==="deserialize");if(a&&u){let p=a.value,l=u.value;if((p.type==="ArrowFunctionExpression"||p.type==="FunctionExpression")&&(l.type==="ArrowFunctionExpression"||l.type==="FunctionExpression")){let d=t(p.body),f=t(l.body),m=Array.from(d).filter(c=>!f.has(c)),y=Array.from(f).filter(c=>!d.has(c)),v=[...m,...y];v.length>0&&r.report({node:a,messageId:"serializerSignalMismatch",data:{signals:v.join(", ")}})}}}}}}}}}),jx=`
|
|
378
|
+
import { useSignal, useSerializer$ } from '@qwik.dev/core';
|
|
379
|
+
import MyClass from './my-class';
|
|
380
|
+
|
|
381
|
+
export default component$(() => {
|
|
382
|
+
const countSignal = useSignal(0);
|
|
383
|
+
|
|
384
|
+
useSerializer$(() => ({
|
|
385
|
+
deserialize: () => new MyClass(countSignal.value),
|
|
386
|
+
update: (myClass) => {
|
|
387
|
+
myClass.count = countSignal.value;
|
|
388
|
+
return myClass;
|
|
389
|
+
}
|
|
390
|
+
}));
|
|
391
|
+
|
|
392
|
+
return <div>{myClass.count}</div>;
|
|
393
|
+
});`.trim(),Rx=`
|
|
394
|
+
import { useSignal, useSerializer$ } from '@qwik.dev/core';
|
|
395
|
+
import MyClass from './my-class';
|
|
396
|
+
|
|
397
|
+
export default component$(() => {
|
|
398
|
+
const countSignal = useSignal(0);
|
|
399
|
+
|
|
400
|
+
useSerializer$(() => ({
|
|
401
|
+
deserialize: (count) => new MyClass(count),
|
|
402
|
+
initial: 2,
|
|
403
|
+
update: (myClass) => {
|
|
404
|
+
myClass.count = countSignal.value;
|
|
405
|
+
return myClass;
|
|
406
|
+
}
|
|
407
|
+
}));
|
|
408
|
+
|
|
409
|
+
return <div>{myClass.count}</div>;
|
|
410
|
+
});`.trim();var En={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.1",author:"Qwik Team",bugs:"https://github.com/QwikDev/qwik/issues",dependencies:{"@typescript-eslint/utils":"^8.31.0","jsx-ast-utils":"^3.3.5"},devDependencies:{"@qwik.dev/core":"workspace:*","@qwik.dev/router":"workspace:*","@types/estree":"1.0.5","@typescript-eslint/rule-tester":"8.14.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"),Yv="isServer";function wn(r,e){if(!e)return!1;let t=r.parent;for(;t;){if(t===e)return!0;t=t.parent}return!1}var Rl={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=Yv,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 m=f;if(wn(l,m.consequent)||l===m.consequent){let y=m.test;if(y.type===q.AST_NODE_TYPES.Identifier&&y.name===n||y.type===q.AST_NODE_TYPES.BinaryExpression&&y.operator==="==="&&(y.left.type===q.AST_NODE_TYPES.Identifier&&y.left.name===n&&y.right.type===q.AST_NODE_TYPES.Literal&&y.right.value===!0||y.right.type===q.AST_NODE_TYPES.Identifier&&y.right.name===n&&y.left.type===q.AST_NODE_TYPES.Literal&&y.left.value===!0)||y.type===q.AST_NODE_TYPES.UnaryExpression&&y.operator==="!"&&y.argument.type===q.AST_NODE_TYPES.UnaryExpression&&y.argument.operator==="!"&&y.argument.argument.type===q.AST_NODE_TYPES.Identifier&&y.argument.argument.name===n)return!0}}f=f.parent}return!1}function u(l){let d=o.getScope(l),f=null,m=d;for(;m;){let y=m.variables.find(v=>v.name===l.name);if(y){f=y;break}if(m.type==="global"){f=m.variables.find(v=>v.name===l.name);break}m=m.upper}return!f||f.defs.length===0?!1:f.defs.some(y=>y.type==="Variable"||y.type==="Parameter"||y.type==="FunctionName"||y.type==="ClassName"||y.type==="ImportBinding")}function p(l,d,f){function m(y){var v;if(!y)return!1;if(y.type===q.AST_NODE_TYPES.Identifier&&t.has(y.name)&&!u(y)&&!a(y,d))return r.report({node:f,messageId:"unsafeApiUsageInCalledFunction",data:{apiName:y.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 c in y){if(c==="parent"||c==="range"||c==="loc")continue;let g=y[c];if(Array.isArray(g)){for(let h of g)if(h&&typeof h=="object"&&"type"in h&&m(h))return!0}else if(g&&typeof g=="object"&&"type"in g&&m(g))return!0}return!1}m(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&&!wn(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&&wn(l,i.body)&&!a(l,i)&&l.callee.type===q.AST_NODE_TYPES.Identifier){let d=l.callee,f=o.getScope(d),m=null,y=f.references.find(c=>c.identifier===d);if(y&&y.resolved)m=y.resolved;else{let c=f;for(;c;){let g=c.variables.find(h=>h.name===d.name);if(g&&g.defs.length>0){m=g;break}if(c.type==="global"&&!g){let h=c.type==="global"?c.variables.find(b=>b.name===d.name):null;h&&(m=h);break}if(!c.upper)break;c=c.upper}}let v=m;if(v&&v.defs.length>0){let c=v.defs[0],g=null;if(c.node.type===q.AST_NODE_TYPES.FunctionDeclaration?g=c.node:c.node.type===q.AST_NODE_TYPES.VariableDeclarator&&c.node.init&&(c.node.init.type===q.AST_NODE_TYPES.FunctionExpression||c.node.init.type===q.AST_NODE_TYPES.ArrowFunctionExpression)&&(g=c.node.init),g){let h=(g.body.type===q.AST_NODE_TYPES.BlockStatement,g.body);p(h,g,l)}}}}}}};var Ml={"valid-lexical-scope":Cl,"use-method-usage":Il,"no-react-props":ql,"loader-location":wl,"prefer-classlist":Al,"jsx-no-script-url":xl,"jsx-key":bl,"unused-server":Pl,"jsx-img":Cn,"jsx-a":$n,"no-use-visible-task":Tl,"serializer-signal-usage":jl,"scope-use-task":Rl},Ll={"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"},Ul={"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"},Zv={recommended:{plugins:["qwik"],rules:Ll},strict:{plugins:["qwik"],rules:Ul}},qn={configs:{get recommended(){return eh},get strict(){return rh}},meta:{name:En.name,version:En.version},rules:Ml},eh=[{plugins:{qwik:qn},rules:Ll}],rh=[{plugins:{qwik:qn},rules:Ul}];0&&(module.exports={configs,qwikEslint9Plugin,rules});
|
package/package.json
CHANGED
|
@@ -1,20 +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-
|
|
4
|
+
"version": "2.0.0-beta.1",
|
|
5
5
|
"author": "Qwik Team",
|
|
6
6
|
"bugs": "https://github.com/QwikDev/qwik/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@typescript-eslint/utils": "^8.
|
|
8
|
+
"@typescript-eslint/utils": "^8.31.0",
|
|
9
9
|
"jsx-ast-utils": "^3.3.5"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@types/eslint": "9.6.1",
|
|
13
12
|
"@types/estree": "1.0.5",
|
|
14
13
|
"@typescript-eslint/rule-tester": "8.14.0",
|
|
15
14
|
"redent": "4.0.0",
|
|
16
|
-
"@qwik.dev/core": "2.0.0-
|
|
17
|
-
"@qwik.dev/router": "2.0.0-
|
|
15
|
+
"@qwik.dev/core": "2.0.0-beta.1",
|
|
16
|
+
"@qwik.dev/router": "2.0.0-beta.1"
|
|
18
17
|
},
|
|
19
18
|
"engines": {
|
|
20
19
|
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
|
@@ -25,12 +24,14 @@
|
|
|
25
24
|
],
|
|
26
25
|
"homepage": "https://github.com/QwikDev/qwik#readme",
|
|
27
26
|
"keywords": [
|
|
28
|
-
"builder.io",
|
|
29
27
|
"eslint",
|
|
30
28
|
"qwik"
|
|
31
29
|
],
|
|
32
30
|
"license": "MIT",
|
|
33
31
|
"main": "dist/index.js",
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"eslint": "^8.57.0 || ^9.0.0"
|
|
34
|
+
},
|
|
34
35
|
"repository": {
|
|
35
36
|
"type": "git",
|
|
36
37
|
"url": "https://github.com/QwikDev/qwik.git",
|