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